@zeniai/web-cockpit-ui 1.15.16-dev → 1.15.17-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 (290) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-CwAQrPpG.js → ACHDetailsPage-cAgIhKJs-bGTsqigs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-BEYLvxG6.js → AIPerformancePage-BPwI4kZG-BTP4khzH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-fpNJ2YsG.js → AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-BkStU3hi.js → AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-DTTeCxce.js → AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js} +5 -5
  7. package/dist/assets/{AccountRow-Bk_25FCy-BSk-hvqy.js → AccountRow-C9lnDVNf-86hTjbuw.js} +8 -8
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-BvuQll0f.js → AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-BQwLxI1X.js → AddToWalletPage-CgCHdO6c-CiVYqd0C.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-CTkT1Zm8.js → AgingReportsPage-B0NKfFq5-Bk4x7HpE.js} +4 -4
  12. package/dist/assets/{AllUserItems-XWDuiug6-DLAl8Xcx.js → AllUserItems-D6uMCcjF-CS_wO3mh.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-DPf2WuMd.js → ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js} +2 -2
  14. package/dist/assets/{AppBasePage-B7_L4R6d-BHqVR5DP.js → AppBasePage-BnfCjFJA-CQeMBbMI.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DSX1364T-pcNTv-EE.js → AppDrawerContent-CwBFjBnr-CKjzuecx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-C5ILQVYd.js → ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js} +2 -2
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-DBWSBarK.js → ArAgingChart-6qcRcKoz-MYhKnyKG.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-G9J2gxqo.js → ArAgingDetailPage-DmUWtQsX-KXzejd7L.js} +2 -2
  19. package/dist/assets/{AttachmentView-Bsa0u92o-CQtMxB6c.js → AttachmentView-B0oZITps-CNLEqH0L.js} +2 -2
  20. package/dist/assets/{BankAccountSection-BkOlwayA-gKroDONq.js → BankAccountSection-C8G2PrLh-OgTv2VaB.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-uMOXLH0B-Dmm_2ZeO.js → BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-BLDqC2se.js → BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-QONja72z.js → BillDetailPage-BuCOe4eB-DBZDvMBw.js} +4 -4
  24. package/dist/assets/BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-DhCNQwaz.js → BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-CH-kAnh9.js → BillPayPromoPage-Dcly8epm-DNaDxuq-.js} +3 -3
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-BAILYdpq.js → BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BygJjDSp-ZMuXzR1y.js → BillingSettingsPage-Djx3EUQO-2EyCLMZp.js} +11 -11
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-Cq3ZfsO5.js → BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-Dz-uzrl9.js → BoxItem-ClRdlCWM-B_aqSV-L.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-C63pUk4d-CY7SQzHf.js → BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-S0p2Dvhi.js → CardNumberSubText-CHr49_cJ-9Ya6XjXp.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-C2QB22yP.js → CashbackDetailPage-BNHzTYwa-BdAtNCNi.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-Cbmrl3gL.js → ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js} +34 -34
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-DQe2h7t9.js → ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-CXpYrtrT.js → ChargeCardListTable-DBYEXr_N-7b006WJ7.js} +28 -28
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-CtFjNufh.js → ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js} +18 -18
  38. package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-DW3nMBQs.js → ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-D3csdiBJ.js → ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js} +6 -6
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-B_co6EhK.js → CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js} +9 -9
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-CTcsoqje.js → CollapsableReportTable-3luMEAJg-BroWF-FL.js} +60 -60
  43. package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-CBJ-_ogf.js → CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-gEElvrvK.js → CompanyPassportCard-FgYHweiL-B5gr1lJ_.js} +6 -6
  45. package/dist/assets/{CompanyPassportPage-D2ALJDF_-B6f-pO9X.js → CompanyPassportPage-B8LoE1o9-B6zE-V-E.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-1FrtaPxU.js → CompleteProfile-6pDQ6JjU-C7odNMQ5.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DxHzdDPp-Be75-rA7.js → ConfettiBurst-BAIozwVU-BMA4g7cW.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DePlTE9o.js → ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-Cw0_CLuv.js → CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CprMPTAM.js → CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js} +5 -5
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-XRHzVtOt.js → CurrencySelectField-DL4q5vKR-DqpW0Wz5.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-CzGOfqlu.js → CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BsLS_Cn1.js → CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-C5ajOfPI.js → CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-BrVAkLSK.js → CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js} +7 -7
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js +202 -0
  58. package/dist/assets/{Dashboard-CCV0_aCP-BXhr1WNF.js → Dashboard-DAP7UzjW-DBsJoK5k.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-DJMMkkGF.js → DashboardReportPage-iAA_QiN2-BfmuWrMe.js} +10 -10
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-BAKkeTFg.js → DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-cYRUSlBG.js → DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js} +2 -2
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-C_3AVCeF.js → DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-uEIGVaj9.js → DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-BLty8T-n.js → DownloadOverlay-C8byijvE-DCI_09Q4.js} +1 -1
  65. package/dist/assets/{DrawerPage-Clki97FA-BA9PorYC.js → DrawerPage-DMQ5MoIw-BlXGV-xV.js} +12 -12
  66. package/dist/assets/{EditPeoplePage-CKS_aEZm-D119ukKN.js → EditPeoplePage-D7TQFFBG-Djz1uJLh.js} +3 -3
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-DpLpJWez.js → EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js} +1 -1
  68. package/dist/assets/EntityDetailPage-20BKV_TK-B5sqJOYK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-t3_MJbgk.js → EntitySummarySection-6JSSyIPA-K01fPehF.js} +24 -24
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-CJviw0EF.js → ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js} +8 -8
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-DDA_nGZx.js → ExpenseAutomationPage--kONBcsX-DlY4RThk.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-BPs_d41G.js → ExpressPayPage-a31-5Bgz-B-4aw0li.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-BflQGHBv.js → FeaturePreviewPage-z8BJQeL--ChibcOOA.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-CiBKuMZv.js → FollowStepsSection-Bl933px0-DXKlKasr.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-2_WHm0aW.js → GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js} +7 -7
  76. package/dist/assets/{InformationCardStack-CU4Moqky--vtJfmXM.js → InformationCardStack-BTWe4X6t-DdN7cWvp.js} +2 -2
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ--_fLkoGW.js → InsightsCardStack-CoSz_FKI-xRb_a3yi.js} +8 -8
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-NjJemZo-.js → InsightsSection-DEnkGYD8-BV7sZQsr.js} +4 -4
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-BeC7UsBa.js → IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-C4XmzhP5.js → InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js} +6 -6
  81. package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-Ca744cyt.js → InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js} +2 -2
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-C2ITeVTl.js → InviteFormPage-B2Rl23Qb-D49rnAc4.js} +17 -17
  83. package/dist/assets/{InvitePageListView-DfpJBZru-tcIB_WKy.js → InvitePageListView-E_2j_tF7-BsS6FATD.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-C5Qgk24s-WY8vJMhk.js → InvitePeoplePage-CljSsdaM-DHNLTMCH.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BO1i-e_D-BEHL-1J7.js → InvoiceUploadSection-drGgAU5w-CP2A3IhR.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-x--Yc1yG.js → IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js} +17 -17
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-C-QRaLS5.js → LabeledAddressValue-BjCojNni-CsHQb5xA.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-Chc-QlAF.js → LabeledAddressValueField-DyHTdGlm-CErilABA.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-IUa4evUP.js → LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-DKxnjH2w.js → LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-ZlY5YONf.js → LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js} +5 -5
  92. package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-B17ex07S.js → LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js} +2 -2
  94. package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-ByxiVL3j.js → LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js} +1 -1
  95. package/dist/assets/{LabeledText-38fqkkE--Cee_T29J.js → LabeledText-CRJr2zA8-DRZ423PA.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-BHp0iG9D.js → LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-Dic3e3FJ.js → LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js} +7 -7
  98. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Bsoo2mEs.js → LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js} +1 -1
  99. package/dist/assets/{LockCardPage-BCqN4K17-Cjzeji2k.js → LockCardPage-CgCv-EKl-CipF6lcu.js} +9 -9
  100. package/dist/assets/{LowBalancePopup-BPk1-eAb-DFTxz9st.js → LowBalancePopup-OUWtUPdo-DRkjFCjE.js} +1 -1
  101. package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-BjRMFjlF.js → MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-Dmq45H_s-CjyySHTi.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-CfQVHlUR.js → MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-CT3LLyZc.js → MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-8yBXAre6-DacQsI6-.js → MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js} +4 -4
  110. package/dist/assets/{NavBarWithPicker-C3LVyiC9-etzEx9wd.js → NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js} +4 -4
  111. package/dist/assets/{NavigationArrow-NuJEpE7O-D8kY8llG.js → NavigationArrow-CNO4O4XS-DUm9WGAp.js} +1 -1
  112. package/dist/assets/{NavigationDots-C7Na64B9-CVWaz9qo.js → NavigationDots-BX9DbCj7-RHGokei7.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-FAQYGhqe.js → NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js} +29 -29
  114. package/dist/assets/NoDataChart-JfED3unL-jJumSwoX.js +26 -0
  115. package/dist/assets/NoDataTable-BFpO3ZtS-ubjUd8M_.js +8 -0
  116. package/dist/assets/{NotFoundPage-RjXioqc8-DtIGcQuh.js → NotFoundPage-D_HhIdYv-DyNtigHQ.js} +6 -6
  117. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-CrTfhQjB.js → NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js} +4 -4
  118. package/dist/assets/{NotificationsListConfig-C6_ap0JT-D8w6YoUC.js → NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DOM-Gf5P-DnumyiFl.js → NotificationsPage-7HqRmokr-0AvCCTrK.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CTuBB827-C0LLpOUj.js → OpExByVendorPage-CwD1U9q_-idpf-eH0.js} +1 -1
  121. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2c2jURk.js +11 -0
  122. package/dist/assets/{PandLWithForecastPage-BXaENYdR-D65iSrrB.js → PandLWithForecastPage-CRkDr0QK-D1powlVT.js} +4 -4
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-DFq5LHyH.js → PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js} +6 -6
  124. package/dist/assets/{PeoplePage-BlyVVthI-D_1cj1g5.js → PeoplePage-D5eQETB2-DZx25X-Y.js} +1 -1
  125. package/dist/assets/{Preview-DYusR3hO.js → Preview-Bfns_dDG.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CAcPH--E-Bb_qjCmp.js → ProductsCarousel-BXPXaIWg-Av-oVPlG.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BVwZMVeE-B84_P5r4.js → PromoBaseCards-C-S0ckZq-DcP7gArA.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-CMjuhlXs.js → QBOConnectionDialog-qqbamtpL-BeJJQ440.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DQjol-D0-eqxvZA5D.js → QBOSetupSection-CZu_mtMP-CZBINdYC.js} +4 -4
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js +32 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-CYC590wb.js → ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js} +4 -4
  132. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-wwjwvRb9.js → ReimbursementDetailPage-DXMDyCop-DlZGIADX.js} +4 -4
  133. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-LLEMYe4d.js → ReimbursementPromoPage-DGXHkiBN-DLifue2f.js} +7 -7
  134. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DDKfdVM2.js → ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CF6p2IJ7.js → ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js} +1 -1
  136. package/dist/assets/{ReloadCard-V_tv6YLR-B4Af3G_4.js → ReloadCard-BJke_yPt-D_L8D7X-.js} +6 -6
  137. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-Dlv8mUdn.js → ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js} +3 -3
  138. package/dist/assets/{ReportsPage-BJOH1wgv-CO7zRrKg.js → ReportsPage-bmKftmYF-NgXuxPpu.js} +1 -1
  139. package/dist/assets/{RevenueChart-C_tSBw_N-BD0DJwPU.js → RevenueChart-DjTdsbym-CUUEbo6t.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CScPf4w3-ByB3b1ie.js → ReviewDetailsPage-NFOdusAU-CVH2L4to.js} +6 -6
  141. package/dist/assets/{ReviewOverlay-BQVwPzKa-ddzk5bgf.js → ReviewOverlay-Q8tlLMbm-BLu76gBy.js} +20 -20
  142. package/dist/assets/{RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js → RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js} +3 -3
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-O0hb5LF0.js → ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-DOCtWqTf.js → ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-zvxwe9e1.js → ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js} +14 -14
  146. package/dist/assets/{ScreenRoutes-YzeouUfS.js → ScreenRoutes-0NyWgCAY.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-AVL_16HQ-j-o6nNSY.js → SetUpAccountSection-BCoHzvyG-CzNKWW7X.js} +1 -1
  148. package/dist/assets/{SignIn-BLUwTp1l-BTGTjmO9.js → SignIn-k3DDmpFU-BAnREigf.js} +14 -14
  149. package/dist/assets/SignInScreen-BOrZAIYm.js +1 -0
  150. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-QKyzE-ot.js → SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-CND_3E3i.js → SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js} +16 -16
  152. package/dist/assets/{SpendManagementSection-DZaP5ai6-C9tEMxFA.js → SpendManagementSection-BRp2eDfv-DVKGvM7g.js} +8 -8
  153. package/dist/assets/{StatementItem-D2Fx65LN-CJdCyRP1.js → StatementItem-9DHoMBjx-DlzvIjc2.js} +2 -2
  154. package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +58 -0
  155. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-Dj5TyEni.js → StatusSwitcher-B5nSXHv6-DTMRsMtw.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BXZxKeq9-B2Zwj5g3.js → SubTabSwitcher-BPSCR7GS-CQQ30d6t.js} +3 -3
  157. package/dist/assets/{SummaryCard-194UToy6-UI_LM1oG.js → SummaryCard-DdYMAiws-C4w7QxN_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-zcxDUo0t-Do3_cxqD.js → TaskManagementPage-9OEooDk9-BnhlYqUu.js} +21 -21
  159. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-uGCucrEy.js → TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-Dby2t82a.js → TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js} +6 -6
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-Ba9NENkn.js → TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js} +2 -2
  162. package/dist/assets/{TopExCard-CBua66Cj-iZDx6oGD.js → TopExCard-CDAkgH2B-DQW-zWxw.js} +4 -4
  163. package/dist/assets/{TopExDetailPage-DtMA-XMp-BkiYCTbM.js → TopExDetailPage-BN9IdTkO-DE8PmHT3.js} +11 -11
  164. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-B6EDUUtr.js → TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js} +5 -5
  165. package/dist/assets/{TransactionDetailPage-CeKaduBe-w8WXAz1Q.js → TransactionDetailPage-DSR3itvE-B47s770o.js} +1 -1
  166. package/dist/assets/{TransactionList-CSx8ZCZ--fRx-iJTn.js → TransactionList-wLBz-A1j-R5pqCBUj.js} +7 -7
  167. package/dist/assets/{TransactionListBig-B4cNQY2d-jRs-SXs3.js → TransactionListBig-BA00B8Vn-B52eXfHk.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DHr64V-b-Bgsdc044.js → TransactionListPage-Dyi4SMpD-Bm97EAJv.js} +2 -2
  169. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-fUCL3Z3e.js → TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js} +3 -3
  170. package/dist/assets/{TransferDrawerPage-C91TQwZi-CLRJKfIG.js → TransferDrawerPage-GnqDJJ7x-u45NHhBy.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-BBlPDTVn.js → TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js} +14 -14
  172. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-DJZXY5PM.js → TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-taTRE54D-BRQPl-FH.js → TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-BVmTKq55.js → TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js} +2 -2
  175. package/dist/assets/{TrendChart-DATgAEKG-D5uXuHxg.js → TrendChart-mamZxFEf-DPlJCKYL.js} +2 -2
  176. package/dist/assets/{TrendWithTransactions-DqPFuOvC-4qpshT4h.js → TrendWithTransactions-fGuXIDf7-HyuIbA66.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-B0137uG5.js → UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-Da_V8y5a.js → UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-DXBSIbWE.js → UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BpkAiYTA-52BaGnWz.js → Vendor2FAPopup-BreN6fS3-FjXbhU9D.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DY4iaLtz-BtWSn42W.js → VendorDetailPage-DXKn3qSR-Di8ThCGh.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-BePP9h_p.js → VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-BwVZUQk9.js → VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js} +32 -32
  185. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-Bbp8yC5s.js → VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js} +21 -21
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-CRCBgtxB.js → VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js} +4 -4
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D65ewlO6-C249PD4b.js → VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js} +3 -3
  189. package/dist/assets/{VerifyDevice-B1_jgwgY-CLr_hT2k.js → VerifyDevice-DxoL8hYf-Cowpahhc.js} +1 -1
  190. package/dist/assets/{VideoPlayer-vWSXteQ6-fekEOFO-.js → VideoPlayer-ByXKIag5-BZsoWnFe.js} +2 -2
  191. package/dist/assets/{VideoPopup-CdsmU6H4-BPO5jUC8.js → VideoPopup-DybLGmZL-CNsVI5bc.js} +3 -3
  192. package/dist/assets/{WarningsDrawerPage-CjgOsD00-De28p6M4.js → WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js} +3 -3
  193. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-COe08RHM.js → ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js} +17 -17
  194. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-Ds9pwvuL.js → ZeniAccountListViewPage-CWvKejM--BPGukJA_.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-BqDqY_na.js → ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-BhWQ-XmY.js → ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js} +5 -5
  197. package/dist/assets/{ZeniAccountSetupPage-B20DHYex-D-hB-cgI.js → ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-BROHmszx-BFJ7fRMA.js → ZeniCopyright-CyBZnbZa-D5SmAZYL.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-Cq4B23lv.js → ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-AfkxTSja.js → add-to-wallet-DgdBD8_G-l6e6C-pa.js} +1 -1
  201. package/dist/assets/{analytics-Dz3HJTKp.js → analytics-DGcxWyl6.js} +1 -1
  202. package/dist/assets/analyticsHelper-BcBQi1qY.js +1 -0
  203. package/dist/assets/{analyticsHelper-FJ-cS8qS-D_9plNYH.js → analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DDEpjXQ7.js → arrow-south-east-round-PEovUgvH-C0A9x354.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-CB2yKaeg.js → auto-transfer-rule-mbafm5D3-CC0rbz99.js} +1 -1
  206. package/dist/assets/chartTypes-CnipzTeX-DGSU_TZ0.js +1 -0
  207. package/dist/assets/{commonDimensions-BpYNnQtf-GFURsh40.js → commonDimensions-DmFc7WqO-CxyyXmLy.js} +1 -1
  208. package/dist/assets/{commonTypes-BVbA7QjV-C2OAdMb3.js → commonTypes-CU0qY6Px-ZdnVolMx.js} +1 -1
  209. package/dist/assets/{constants-D8qNj5Es.js → constants-jbgzJYdx.js} +1 -1
  210. package/dist/assets/{core-xud19niX.js → core-BMaLzXUJ.js} +1 -1
  211. package/dist/assets/{dash.all.min-Dmsiq7DL.js → dash.all.min-DmpFQIVa.js} +1 -1
  212. package/dist/assets/{detailCommon-BRja9H93-CS4qaApq.js → detailCommon-x-UFksNz-DKaz3zHe.js} +1 -1
  213. package/dist/assets/{downloadPdf-WDHjFv79-CGfEvBvA.js → downloadPdf-D1grj9oX-Bei5Wpqc.js} +1 -1
  214. package/dist/assets/{empty-BU3-uTyA.js → empty-CxyNypVD.js} +1 -1
  215. package/dist/assets/{empty-ClP26WFk.js → empty-DJguQx7A.js} +1 -1
  216. package/dist/assets/{epic-ff9tSPeN.js → epic-DJmh-RNR.js} +2 -2
  217. package/dist/assets/{gift-box-Cmt9OgIZ-Ba1CSAo6.js → gift-box-Cmt9OgIZ-ZuOwWA2g.js} +1 -1
  218. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CATaPbQ1.js → graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js} +1 -1
  219. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B_yV26zM.js → graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js} +1 -1
  220. package/dist/assets/{handshake-BPg58FML-CxOrxIUO.js → handshake-BPg58FML-DiPOUMao.js} +1 -1
  221. package/dist/assets/{index-CT3iqTha.js → index-C3zM8gb6.js} +1 -1
  222. package/dist/assets/{index-2wNtQNIE.js → index-CQmr12-Z.js} +1 -1
  223. package/dist/assets/{index-_dimXoCh.js → index-DKka6liW.js} +1 -1
  224. package/dist/assets/{index-DJjwW14X.js → index-DPwk4vO3.js} +1 -1
  225. package/dist/assets/{index-D6iLD7c3.js → index-Dw_2FdYw.js} +1 -1
  226. package/dist/assets/{index-6sX8sCRU.js → index-rJQoaAfw.js} +669 -669
  227. package/dist/assets/{index-ovnKg3OB.js → index-tuFs6sMC.js} +1 -1
  228. package/dist/assets/{lexical-CFjIG720.js → lexical-CyZM9SwL.js} +1 -1
  229. package/dist/assets/{liveblocks-BAOmiMpj.js → liveblocks-CohL7dW6.js} +1 -1
  230. package/dist/assets/{lottie-cQKxXDSP.js → lottie-XKgYVRq1.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-DD_ATbZD.js → mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-hwelD0Z1.js → mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-BsRKsR7W.js → mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js +1 -0
  237. package/dist/assets/{mui-BKJrVh4W.js → mui-KNfEk2A1.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D1XFg97i.js → page-detail-CWX5S47F-BLbwsJjf.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-BLfsH1I8.js → panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-CU3HgAhI.js → radio-default-CiSgisfh-_DAtDxCX.js} +1 -1
  241. package/dist/assets/{react-CN5Npsqf.js → react-CPz-xjGo.js} +2 -2
  242. package/dist/assets/{react-CrEDpago.js → react-CX71OnYA.js} +1 -1
  243. package/dist/assets/{react-DsYqgnFz.js → react-Cbh1mkS2.js} +1 -1
  244. package/dist/assets/{react-B_dpn2x_.js → react-CfuDRhRn.js} +1 -1
  245. package/dist/assets/{react-CPPpMWlr.js → react-DOhUJ6O2.js} +1 -1
  246. package/dist/assets/{react-CLJLIrqx.js → react-H0CMmi2N.js} +1 -1
  247. package/dist/assets/{react-B_IkKKOF.js → react-KKmCM6TX.js} +1 -1
  248. package/dist/assets/{react-4VjXw9yg.js → react-wx6Np1L0.js} +1 -1
  249. package/dist/assets/{recharts-07URl5uF.js → recharts-D8Mh9GJw.js} +1 -1
  250. package/dist/assets/{sentry-BsWDfhY_.js → sentry-CGE1ab0x.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DW8TK-Jl.js → shield-DOlUxcFf-BeHXxYmi.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +1 -0
  253. package/dist/assets/{toChartData-B3ouXKAd-DqPDcbms.js → toChartData-VTidOIL7-CTZNeqK0.js} +1 -1
  254. package/dist/assets/{uploadAttachment-DNNG-CMy-C0-pn6r-.js → uploadAttachment-CwSRD9la-Dwn2_OC8.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-DDO6BRYH.js → uploadReceipts-Dge0cNF1-COPT6pnG.js} +1 -1
  256. package/dist/assets/{url-B-qq-bwJ.js → url-CxS4k21H.js} +1 -1
  257. package/dist/assets/{url-CPnr4zl0.js → url-D3fzoRiq.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-DDMxNeC6.js → useLongPress-GCK2COYQ-YmFx62lI.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-CIbBacHX.js → usp-line-BBd1wKwW-lvUUHuIi.js} +1 -1
  260. package/dist/assets/{utils-lvnYc7Lx.js → utils-Co3Y654K.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DEUUJaZy.js → zeni-epic-state-CiJSQQSe.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/AccountInfoPage-DF6IU0EG-CpTk1WUV.js +0 -18
  265. package/dist/assets/AddAddressForCardDrawer-DNGQGGYg-Bf67FiSu.js +0 -6
  266. package/dist/assets/BillPayApprovalRuleDetailPage-UeVxIxfF-dC_CchwE.js +0 -27
  267. package/dist/assets/ChargeCardPromoPage-DuQe7BpX-C5KRheHX.js +0 -222
  268. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BoA9sGdB.js +0 -1
  269. package/dist/assets/CustomerOnboardingProductSuitePage-DMYHMJXg-BO7BCZyk.js +0 -202
  270. package/dist/assets/EntityDetailPage-B3TQ5hCP-uPk3J70w.js +0 -18
  271. package/dist/assets/LabeledDocumentField-Bjg8sNsg-Da4_7xZ7.js +0 -41
  272. package/dist/assets/MagicLinkACHDetailsPage-DM7EUUU7-8dRO9py4.js +0 -1
  273. package/dist/assets/MagicLinkDomesticWireDetailsPage-DKrGgFTu-86-Eks-y.js +0 -1
  274. package/dist/assets/MagicLinkInternationalWireDetailsPage-B3OpSWB3-B8JXsL7N.js +0 -1
  275. package/dist/assets/MagicLinkSuccessPage-CphaJa4k-D3EkcDWm.js +0 -31
  276. package/dist/assets/MailingDetailsSection-BJfZvT0b-Dh4yo_Lj.js +0 -21
  277. package/dist/assets/NoDataChart-B3s_7m2n-CAPJcqJ5.js +0 -26
  278. package/dist/assets/NoDataTable-CMpypnTw-DT8ESeaQ.js +0 -8
  279. package/dist/assets/OverlayContainerPage-D4QU0p4o-bJWKRuRf.js +0 -11
  280. package/dist/assets/ReimbursementApprovalRuleDetailPage-llw4ONPo-DU98N3RU.js +0 -32
  281. package/dist/assets/SignInScreen-DEP1cN19.js +0 -1
  282. package/dist/assets/StatementsPage-BCh51lDW-CdawgjO3.js +0 -58
  283. package/dist/assets/VendorACHDetailsPage-tUuZzJnN-BytxtWo8.js +0 -1
  284. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DZabfieM-CGwU72CX.js +0 -1
  285. package/dist/assets/analyticsHelper-C5JtTAtK.js +0 -1
  286. package/dist/assets/chartTypes-DJdbX13L-CYrZAg19.js +0 -1
  287. package/dist/assets/mapTimeframeBalancesToTreeNode-88qIN3FA-DT4qEBfo.js +0 -1
  288. package/dist/assets/mapTimeframeBalancesToTreeNode-AkxvYRty-Btx7Wg6i.js +0 -1
  289. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-KZ9-cjv6.js +0 -1
  290. package/dist/assets/toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,J as O,aD as kn,ay as Lo,dm as jn,dn as Ao,F as B,u as w,dp as Jn,dq as It,dr as Nt,cb as Pt,ds as Ft,y as V,d1 as zt,aw as Qn,aa as Xe,dt as Me,bP as H,T as Bo,d as ce,aV as $,a$ as Zn,du as Xn,an as Le,dv as Wo,dw as le,ca as Tt,b$ as Sn,ai as Oo,am as we,dx as et,dy as Ae,dz as nt,al as _,ci as ne,dA as Mo,b as Vt,dB as Ge,dC as Cn,dD as _n,dE as Io,dF as No,b9 as ei,aW as T,b6 as Po,cz as Dt,cy as Rt,dG as Fo,b7 as ti,cC as ni,bR as zo,dH as To,dI as vn,dJ as $n,dK as Vo,dL as Do,bT as Ro,bK as Go,dM as Eo}from"./index-6sX8sCRU.js";import{n as a,c as P}from"./mui-BKJrVh4W.js";import{a as I,P as Ho}from"./sentry-BsWDfhY_.js";import{E_ as Gt,Fo as Et,Fp as Ie,Fq as Ht,Fr as Kt,Fs as Yt,Ft as Ut,Fu as ii,Fv as Ko,Fb as xt,E$ as Ne,bm as Ln,bg as oi,Fw as ri,Fx as Yo,bo as Uo,Fc as ai}from"./zeni-epic-state-DEUUJaZy.js";import{N as it,D as qo,R as Jo,B as ye,u as v}from"./AccountRow-Bk_25FCy-BSk-hvqy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cd753c29-552f-42e1-90c6-ddc4d1b5fd33",e._sentryDebugIdIdentifier="sentry-dbid-cd753c29-552f-42e1-90c6-ddc4d1b5fd33")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Q(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Qo=a.div`
1
+ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,J as O,aD as kn,ay as Lo,dm as jn,dn as Ao,F as B,u as w,dp as Jn,dq as It,dr as Nt,cb as Pt,ds as Ft,y as V,d1 as zt,aw as Qn,aa as Xe,dt as Me,bP as H,T as Bo,e as ce,aV as $,a$ as Zn,du as Xn,an as Le,dv as Wo,dw as le,ca as Tt,b$ as Sn,ai as Oo,am as we,dx as et,dy as Ae,dz as nt,al as _,ci as ne,dA as Mo,b as Vt,dB as Ee,dC as Cn,dD as _n,dE as Io,dF as No,b9 as ei,aW as T,b6 as Po,cz as Dt,cy as Rt,dG as Fo,b7 as ti,cC as ni,bR as zo,dH as To,dI as vn,dJ as $n,dK as Vo,dL as Do,bT as Ro,bK as Eo,dM as Go}from"./index-rJQoaAfw.js";import{n as a,c as P}from"./mui-KNfEk2A1.js";import{a as I,P as Ho}from"./sentry-CGE1ab0x.js";import{E_ as Et,Fo as Gt,Fp as Ie,Fq as Ht,Fr as Kt,Fs as Yt,Ft as Ut,Fu as ii,Fv as Ko,Fb as xt,E$ as Ne,bm as Ln,bg as oi,Fw as ri,Fx as Yo,bo as Uo,Fc as ai}from"./zeni-epic-state-CiJSQQSe.js";import{N as it,D as qo,R as Jo,B as ye,u as v}from"./AccountRow-C9lnDVNf-86hTjbuw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7e42f1ea-6c95-450b-9482-a440fcfc5e35",e._sentryDebugIdIdentifier="sentry-dbid-7e42f1ea-6c95-450b-9482-a440fcfc5e35")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Q(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Qo=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -125,7 +125,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
125
125
  width: ${v.spacerLineWidth}px;
126
126
  `,Sr=a.div`
127
127
  width: ${v.statusWidth}px;
128
- `,Ee=({title:e,type:n})=>t.jsx(mr,{widthValue:v[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const _r=a.div`
128
+ `,Ge=({title:e,type:n})=>t.jsx(mr,{widthValue:v[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const _r=a.div`
129
129
  display: flex;
130
130
  flex-direction: row;
131
131
  height: ${e=>e.heightValue}px;
@@ -221,7 +221,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
221
221
  color: ${e=>e.textColor.hex()};
222
222
  background-color: ${e=>e.bgColor.hex()};
223
223
  min-width: ${v.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Ir,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Gr,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Nr,{})]})]})})}const Gr=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Er(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Jo,{height:n,accountRecon:o,isLastRow:i,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:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Jr(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 Qr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>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}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Zr=a(_)`
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Ir,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Er,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Nr,{})]})]})})}const Er=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Gr(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Jo,{height:n,accountRecon:o,isLastRow:i,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:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Jr(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 Qr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>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}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Zr=a(_)`
225
225
  margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
226
226
  overflow: hidden;
227
227
  white-space: nowrap;
@@ -249,7 +249,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
249
249
  height: ${s.sp1};
250
250
  `,Be=a.div`
251
251
  display: flex;
252
- `,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(_n,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(_n,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Ge,{depth:n}),t.jsx(Ae,{}),t.jsx(Ge,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ge,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Ge,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Zr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(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 sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
252
+ `,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(_n,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(_n,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Ee,{depth:n}),t.jsx(Ae,{}),t.jsx(Ee,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ee,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Ee,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Zr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(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 sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
253
253
  display: flex;
254
254
  flex: 1 1 auto;
255
255
  max-height: 1px;
@@ -267,8 +267,8 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
267
267
  flex-grow: 1;
268
268
  align-items: center;
269
269
  background-color: ${e=>e.theme.colors.grey4};
270
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
271
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
270
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
271
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
272
272
  ${({isSticky:e})=>e?P`
273
273
  position: -webkit-sticky;
274
274
  position: sticky;
@@ -321,10 +321,10 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
321
321
  justify-content: flex-start;
322
322
  `,yi=a(_)`
323
323
  user-select: none;
324
- min-width: ${G.balanceWidth};
325
- max-width: ${G.balanceWidth};
324
+ min-width: ${E.balanceWidth};
325
+ max-width: ${E.balanceWidth};
326
326
  text-align: right;
327
- margin-left: ${G.balanceLeftMargin};
327
+ margin-left: ${E.balanceLeftMargin};
328
328
  border: 1px solid transparent;
329
329
  color: ${e=>e.theme.colors.hero};
330
330
  cursor: ${e=>e.isClickable?"pointer":"default"};
@@ -347,8 +347,8 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
347
347
  flex-grow: 1;
348
348
  align-items: center;
349
349
  height: ${e=>e.containerHeight}px;
350
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
351
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
350
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
351
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
352
352
  background-color: ${e=>e.bgColor?.hex()};
353
353
  ${({isSticky:e})=>e?P`
354
354
  position: sticky;
@@ -360,7 +360,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
360
360
  &:hover {
361
361
  color: ${e=>e.theme.colors.primary};
362
362
  }
363
- `,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:G.nameLogoWidth.valuePx(u),height:G.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,F=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(E=>t.jsx(ki,{balance:E,isOpen:l},E?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
363
+ `,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,F=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(G=>t.jsx(ki,{balance:G,isOpen:l},G?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
364
364
  user-select: none;
365
365
  display: flex;
366
366
  flex: 1 1 auto;
@@ -380,13 +380,13 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
380
380
  display: flex;
381
381
  max-height: ${s.sp8};
382
382
  min-height: ${s.sp8};
383
- min-width: ${G.balanceWidth};
383
+ min-width: ${E.balanceWidth};
384
384
  justify-content: center;
385
385
  align-items: center;
386
386
  background-color: ${e=>e.theme.colors.background};
387
387
  border: 1px solid ${e=>e.theme.colors.grey3};
388
388
  border-radius: ${s.sp2};
389
- margin-left: ${G.balanceLeftMargin};
389
+ margin-left: ${E.balanceLeftMargin};
390
390
  color: ${e=>e.theme.colors.primary};
391
391
  `,_i=a(_)`
392
392
  display: flex;
@@ -394,8 +394,8 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
394
394
  flex-direction: row;
395
395
  justify-content: center;
396
396
  align-items: center;
397
- height: ${G.balanceHeight};
398
- max-width: ${G.balanceWidth};
397
+ height: ${E.balanceHeight};
398
+ max-width: ${E.balanceWidth};
399
399
  width: 138px;
400
400
  text-align: center;
401
401
  column-gap: ${s.sp1};
@@ -406,7 +406,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
406
406
  display: flex;
407
407
  flex-direction: row;
408
408
  align-items: center;
409
- min-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
409
+ min-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
410
410
  color: ${e=>e.theme.colors.primary};
411
411
  background-color: ${e=>e.bgColor?.hex()};
412
412
  ${e=>e.isSticky?P`
@@ -468,10 +468,10 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
468
468
  justify-content: flex-start;
469
469
  `,Oi=a(_)`
470
470
  user-select: none;
471
- min-width: ${G.balanceWidth};
472
- max-width: ${G.balanceWidth};
471
+ min-width: ${E.balanceWidth};
472
+ max-width: ${E.balanceWidth};
473
473
  text-align: right;
474
- margin-left: ${G.balanceLeftMargin};
474
+ margin-left: ${E.balanceLeftMargin};
475
475
  color: ${e=>e.theme.colors.primary};
476
476
  cursor: ${e=>e.isClickable?"pointer":"default"};
477
477
  `,Wa=a.div`
@@ -481,8 +481,8 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
481
481
  flex-grow: 1;
482
482
  align-items: center;
483
483
  height: ${e=>e.containerHeight-1}px;
484
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
485
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
484
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
485
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
486
486
  background-color: ${e=>e.bgColor?.hex()};
487
487
  ${({isSticky:e})=>e?P`
488
488
  position: sticky;
@@ -499,7 +499,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
499
499
  text-align: left;
500
500
  margin-left: ${e=>$a[e.depth]}px;
501
501
  color: ${e=>e.theme.colors.primary};
502
- width: ${e=>G.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
502
+ width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
503
503
  `,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ia=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Na({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Ia,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(St,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},We=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
504
504
  display: flex;
505
505
  flex: 1 1 auto;
@@ -527,10 +527,10 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
527
527
  justify-content: flex-start;
528
528
  `,Ii=a(ne)`
529
529
  user-select: none;
530
- min-width: ${G.balanceWidth};
531
- max-width: ${G.balanceWidth};
530
+ min-width: ${E.balanceWidth};
531
+ max-width: ${E.balanceWidth};
532
532
  text-align: right;
533
- margin-left: ${G.balanceLeftMargin};
533
+ margin-left: ${E.balanceLeftMargin};
534
534
  color: ${e=>e.theme.colors.primary};
535
535
  border: 1px solid transparent;
536
536
  `,Va=a.div`
@@ -539,8 +539,8 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
539
539
  flex-shrink: 2;
540
540
  flex-grow: 1;
541
541
  align-items: center;
542
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
543
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
542
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
543
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
544
544
  background-color: ${e=>e.bgColor?.hex()};
545
545
  ${({isSticky:e,isIndented:n})=>e&&n?P`
546
546
  position: -webkit-sticky;
@@ -562,7 +562,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
562
562
  text-overflow: ellipsis;
563
563
  text-align: left;
564
564
  color: ${e=>e.theme.colors.primary};
565
- `,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ga,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(va,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,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(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Ja(i,o,n);case"income":return Qa(i,o,n);case"cash_position":return Za(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Jn(Array(n),null)}const sl=a.div`
565
+ `,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ea=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ga({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ea,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(va,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,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(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ga,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Ja(i,o,n);case"income":return Qa(i,o,n);case"cash_position":return Za(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Jn(Array(n),null)}const sl=a.div`
566
566
  display: flex;
567
567
  flex: 1 1 auto;
568
568
  max-height: 1px;
@@ -741,12 +741,12 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
741
741
  max-height: 1px;
742
742
  height: 1px;
743
743
  background-color: ${e=>e.isScrolling?"transparent":e.colour};
744
- `,Gl=a.div`
744
+ `,El=a.div`
745
745
  display: flex;
746
746
  flex: 1 1 auto;
747
747
  max-height: 1px;
748
748
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
749
- `,In=e=>{const n=O(),i=ce();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Gl,{isScrolling:n});case"total_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(El,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const El=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Jl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
749
+ `,In=e=>{const n=O(),i=ce();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(El,{isScrolling:n});case"total_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(Gl,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const Gl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Jl,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
750
750
  display: flex;
751
751
  flex: 1 1 auto;
752
752
  width: fit-content;
@@ -781,7 +781,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
781
781
  z-index: 10;
782
782
  background-color: ${e=>e.theme.colors.grey4};
783
783
  justify-content: flex-start;
784
- `;function Gi({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Ql,{height:e,bgColor:i,children:t.jsxs(Zl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Ei,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Ql=a.div`
784
+ `;function Ei({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Ql,{height:e,bgColor:i,children:t.jsxs(Zl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Gi,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Ql=a.div`
785
785
  display: flex;
786
786
  flex: 1 1 auto;
787
787
  width: fit-content;
@@ -794,7 +794,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
794
794
  display: flex;
795
795
  flex-direction: row;
796
796
  width: 100%;
797
- `,Ei=a.div`
797
+ `,Gi=a.div`
798
798
  display: flex;
799
799
  flex-direction: row;
800
800
  align-items: center;
@@ -807,7 +807,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
807
807
  justify-content: flex-start;
808
808
  }
809
809
  margin-right: ${k.balanceLeftMargin};
810
- `,Xl=a(Ei)`
810
+ `,Xl=a(Gi)`
811
811
  position: sticky;
812
812
  left: ${s.sp0};
813
813
  z-index: 10;
@@ -955,7 +955,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
955
955
  text-align: left;
956
956
  margin-left: 35px;
957
957
  color: ${e=>e.theme.colors.hero};
958
- `,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:Q(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Qn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,F=W?"pointer":"default",z=(K,E)=>{W===!0&&l[l.length-1]!=null&&x?.(K,E,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:F},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,E)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,J)=>{x(o,Y,J)},compareMode:g},E))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const _c=a.div`
958
+ `,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:Q(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Qn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,F=W?"pointer":"default",z=(K,G)=>{W===!0&&l[l.length-1]!=null&&x?.(K,G,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:F},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,G)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,J)=>{x(o,Y,J)},compareMode:g},G))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const _c=a.div`
959
959
  display: flex;
960
960
  flex: 1 1 auto;
961
961
  width: fit-content;
@@ -1088,7 +1088,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1088
1088
  text-align: right;
1089
1089
  margin-left: ${D.balanceLeftMargin};
1090
1090
  color: ${e=>e.theme.colors.brandColorJadeDark};
1091
- `,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:Q(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ic,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Nc,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
1091
+ `,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:Q(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ic,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Nc,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
1092
1092
  display: flex;
1093
1093
  flex: 1 1 auto;
1094
1094
  height: 1px;
@@ -1363,7 +1363,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1363
1363
  ${j.statusContainerWidth} +
1364
1364
  ${j.statusLeftMargin}
1365
1365
  );
1366
- `,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,F]=I.useState(C.length>0),[z,K]=I.useState(!1),E=i.includes(n),Y=!y,J=C.length===on&&!E,he=d?.[0]?.toUpperCase()??"",Z=I.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),F(!0)},onMouseLeave:()=>{K(!1),C.length===0&&F(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(Nt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ns,{}),checked:E,id:l,disabled:J,onChange:Z,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Is,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(_t,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Gs,{windowSize:e,children:[t.jsx(_e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Gs=a.div`
1366
+ `,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,F]=I.useState(C.length>0),[z,K]=I.useState(!1),G=i.includes(n),Y=!y,J=C.length===on&&!G,he=d?.[0]?.toUpperCase()??"",Z=I.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),F(!0)},onMouseLeave:()=>{K(!1),C.length===0&&F(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(Nt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ns,{}),checked:G,id:l,disabled:J,onChange:Z,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Is,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(_t,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Es,{windowSize:e,children:[t.jsx(_e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Es=a.div`
1367
1367
  display: flex;
1368
1368
  flex-direction: row;
1369
1369
  width: 100%;
@@ -1380,7 +1380,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1380
1380
  :first-of-type {
1381
1381
  justify-content: flex-start;
1382
1382
  }
1383
- `,{common:Es,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
1383
+ `,{common:Gs,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
1384
1384
  display: flex;
1385
1385
  flex: 1 1 auto;
1386
1386
  width: fit-content;
@@ -1466,7 +1466,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1466
1466
  margin-left: ${s.sp7};
1467
1467
  flex: 1 1 auto;
1468
1468
  justify-content: flex-end;
1469
- `,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(vt,{isClickable:!1,children:t.jsx(Us,{children:Pe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Qs,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Zs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(vt,{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(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(vt,{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(Js,{children:Es.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
1469
+ `,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(vt,{isClickable:!1,children:t.jsx(Us,{children:Pe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Qs,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Zs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(vt,{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(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(vt,{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(Js,{children:Gs.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
1470
1470
  display: flex;
1471
1471
  flex: 1 1 auto;
1472
1472
  width: fit-content;
@@ -1721,7 +1721,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1721
1721
  justify-content: center;
1722
1722
  align-items: center;
1723
1723
  margin-left: ${s.sp1};
1724
- `,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,F]=I.useState(!1),[z,K]=I.useState(n.length>0),E=n.includes(e),Y=n.includes(e),J=c==="collapsed",he=n.length===on&&E===!1,Z=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{F(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(Nt,{className:"flux-vendor-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:E,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:b,children:[W?t.jsx(Nd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Id,{})}):x.logo!=null?t.jsx(Ft,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(Z,{children:x.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(I.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(_d,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:J},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Gd=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),x=Ji("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ed=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Fe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ne(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(_s,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
1724
+ `,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,F]=I.useState(!1),[z,K]=I.useState(n.length>0),G=n.includes(e),Y=n.includes(e),J=c==="collapsed",he=n.length===on&&G===!1,Z=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{F(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(Nt,{className:"flux-vendor-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:G,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:b,children:[W?t.jsx(Nd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Id,{})}):x.logo!=null?t.jsx(Ft,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(Z,{children:x.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(I.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(_d,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:J},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Ed=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),x=Ji("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Gd=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Fe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ne(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(_s,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
1725
1725
  display: flex;
1726
1726
  flex: 1 1 auto;
1727
1727
  width: fit-content;
@@ -1804,7 +1804,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1804
1804
  max-width: ${M.balanceWidth};
1805
1805
  margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
1806
1806
  border: 1px solid transparent;
1807
- `,Gn=a(_)`
1807
+ `,En=a(_)`
1808
1808
  color: ${e=>e.theme.colors.hero};
1809
1809
  flex-grow: 1;
1810
1810
  -webkit-box-orient: vertical;
@@ -1826,7 +1826,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1826
1826
  left: ${s.sp0};
1827
1827
  z-index: 20;
1828
1828
  `:null}
1829
- `;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
1829
+ `;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
1830
1830
  user-select: none;
1831
1831
  display: flex;
1832
1832
  flex: 1 1 auto;
@@ -1860,7 +1860,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1860
1860
  min-width: ${M.balanceWidth};
1861
1861
  max-width: ${M.balanceWidth};
1862
1862
  border: 1px solid transparent;
1863
- `,En=a(_)`
1863
+ `,Gn=a(_)`
1864
1864
  color: ${e=>e.theme.colors.hero};
1865
1865
  flex-grow: 1;
1866
1866
  -webkit-box-orient: vertical;
@@ -1882,7 +1882,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1882
1882
  left: ${s.sp0};
1883
1883
  z-index: 20;
1884
1884
  `:null}
1885
- `;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
1885
+ `;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
1886
1886
  margin-left: ${s.sp4};
1887
1887
  `,mh=a.div`
1888
1888
  display: flex;
@@ -1912,13 +1912,13 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
1912
1912
  margin-right: ${s.sp2};
1913
1913
  position: relative;
1914
1914
  top: -12px;
1915
- `,bh=a(Eo)`
1915
+ `,bh=a(Go)`
1916
1916
  color: ${e=>e.tagType==="under_review"?X.neutralGrey5Light:e.theme.mode==="light"?X.primaryDark:X.primaryLight};
1917
1917
  border-radius: ${s.sp2};
1918
1918
  padding: 3px 6px;
1919
1919
  margin-left: 12px;
1920
1920
  background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
1921
- `,kh=a(Go)`
1921
+ `,kh=a(Eo)`
1922
1922
  color: ${e=>e.theme.colors.hero};
1923
1923
  margin-left: 5px;
1924
1924
  height: ${s.sp3};
@@ -2088,7 +2088,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2088
2088
  &:hover {
2089
2089
  color: inherit;
2090
2090
  }
2091
- `,Gh=a.div`
2091
+ `,Eh=a.div`
2092
2092
  display: flex;
2093
2093
  flex-direction: row;
2094
2094
  background-color: ${e=>e.bgColor?.hex()};
@@ -2098,7 +2098,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2098
2098
  top: ${s.sp0};
2099
2099
  left: ${s.sp0};
2100
2100
  `:null}
2101
- `,Eh=a.div`
2101
+ `,Gh=a.div`
2102
2102
  display: flex;
2103
2103
  flex-direction: row;
2104
2104
  flex-shrink: 2;
@@ -2120,7 +2120,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2120
2120
  text-overflow: ellipsis;
2121
2121
  text-align: left;
2122
2122
  color: ${e=>e.theme.colors.primary};
2123
- `,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Gh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Eh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
2123
+ `,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Eh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Gh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
2124
2124
  display: flex;
2125
2125
  flex: 1 1 auto;
2126
2126
  width: fit-content;
@@ -2308,7 +2308,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2308
2308
  &:hover {
2309
2309
  color: inherit;
2310
2310
  }
2311
- `,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?vu:uo;return t.jsxs(_u,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",F=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Zn:Xn,E=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:E,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:F},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,J)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},J))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
2311
+ `,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?vu:uo;return t.jsxs(_u,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",F=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Zn:Xn,G=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:G,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:F},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,J)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},J))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
2312
2312
  display: flex;
2313
2313
  flex: 1 1 auto;
2314
2314
  width: fit-content;
@@ -2377,7 +2377,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2377
2377
  &:hover {
2378
2378
  color: inherit;
2379
2379
  }
2380
- `,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[F,z]=I.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Iu,{children:d.map((E,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:E,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ru=a.div`
2380
+ `,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[F,z]=I.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Iu,{children:d.map((G,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:G,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ru=a.div`
2381
2381
  display: flex;
2382
2382
  flex: 1 1 auto;
2383
2383
  width: fit-content;
@@ -2385,14 +2385,14 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2385
2385
  flex-direction: column;
2386
2386
  height: ${e=>e.height}px;
2387
2387
  background-color: ${e=>e.bgColor?.hex()};
2388
- `,Gu=a.div`
2388
+ `,Eu=a.div`
2389
2389
  user-select: none;
2390
2390
  display: flex;
2391
2391
  flex: 1 1 auto;
2392
2392
  flex-flow: row;
2393
2393
  justify-content: flex-start;
2394
2394
  align-items: center;
2395
- `,Eu=a.div`
2395
+ `,Gu=a.div`
2396
2396
  display: flex;
2397
2397
  flex: 1 0 auto;
2398
2398
  flex-direction: row;
@@ -2441,7 +2441,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2441
2441
  &:hover {
2442
2442
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2443
2443
  }
2444
- `,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:Q(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Gu,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Eu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Ju,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Ju({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Qu=a.div`
2444
+ `,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:Q(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Eu,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Gu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Ju,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Ju({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Qu=a.div`
2445
2445
  display: flex;
2446
2446
  flex: 1 1 auto;
2447
2447
  width: fit-content;
@@ -2510,7 +2510,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2510
2510
  border: 1px solid ${e=>e.theme.colors.primary};
2511
2511
  border-radius: ${s.sp1};
2512
2512
  margin: 0 ${s.sp5} 0 ${s.sp3};
2513
- `,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:Q(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,F=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[E,Y]=I.useState(!1),J=b.classAncestorMetadata??[];return t.jsxs(Qu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Zu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:J,depth:S}),t.jsx(rg,{metadata:J[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:E&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),E===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Xu,{children:d.map((he,Z)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},Z))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
2513
+ `,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:Q(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,F=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[G,Y]=I.useState(!1),J=b.classAncestorMetadata??[];return t.jsxs(Qu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Zu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:J,depth:S}),t.jsx(rg,{metadata:J[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:G&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),G===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Xu,{children:d.map((he,Z)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},Z))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
2514
2514
  display: flex;
2515
2515
  flex: 1 1 auto;
2516
2516
  width: fit-content;
@@ -2628,7 +2628,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2628
2628
  clear: both;
2629
2629
  display: inline-block;
2630
2630
  text-align: left;
2631
- `,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):Q(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Qe,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Qe,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),E=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:E;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:F,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((J,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:J,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(Z,ie)=>{C(o,Z,ie)}},he))}):null]}),t.jsx(_g,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function _g({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const vg=[10,14,20,20,20],$g=a.div`
2631
+ `,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):Q(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Qe,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Qe,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),G=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:G;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:F,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((J,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:J,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(Z,ie)=>{C(o,Z,ie)}},he))}):null]}),t.jsx(_g,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function _g({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const vg=[10,14,20,20,20],$g=a.div`
2632
2632
  display: flex;
2633
2633
  flex: 1 1 auto;
2634
2634
  width: fit-content;
@@ -2766,7 +2766,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2766
2766
  justify-content: center;
2767
2767
  align-items: center;
2768
2768
  color: ${e=>e.theme.colors.champion};
2769
- `,Rg=a.div``,Gg=a(_)`
2769
+ `,Rg=a.div``,Eg=a(_)`
2770
2770
  display: flex;
2771
2771
  justify-content: center;
2772
2772
  align-items: center;
@@ -2779,7 +2779,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2779
2779
  color: ${e=>e.theme.colors.primary};
2780
2780
  width: ${k.balanceWidth};
2781
2781
  min-width: ${k.balanceWidth};
2782
- `,Eg=a.div`
2782
+ `,Gg=a.div`
2783
2783
  display: flex;
2784
2784
  width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
2785
2785
  flex-direction: column;
@@ -2787,7 +2787,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2787
2787
  `,Hg=a.div`
2788
2788
  max-height: 54px;
2789
2789
  min-height: 54px;
2790
- `,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Gg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ne(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Jg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,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)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Qg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Ie(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Qg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Jg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Gd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(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??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Gt(e)===!0?Jr(n):Et(e)===!0||Ie(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Ji(n,i):ul(n)}function lp(e,n,i,o){return Gt(e)?Qr(n,o,i):Et(e)||Ie(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
2790
+ `,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Gg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Eg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ne(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Jg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,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)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Qg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Ie(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Qg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Jg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Ed(e,n,o,r,l,u,c,d,h,f,g);case"section":return Gd(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Gr();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(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??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Et(e)===!0?Jr(n):Gt(e)===!0||Ie(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Ji(n,i):ul(n)}function lp(e,n,i,o){return Et(e)?Qr(n,o,i):Gt(e)||Ie(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
2791
2791
  top: 0;
2792
2792
  left: 0;
2793
2793
  position: sticky !important;
@@ -2802,7 +2802,7 @@ import{V as t,b3 as vo,aP as m,bN as pe,aN as U,dl as $o,o as s,p as X,aQ as bn,
2802
2802
  align-items: center;
2803
2803
  background-color: ${e=>e.bgColor?.hex()};
2804
2804
  box-sizing: border-box;
2805
- `;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:F}){const z=I.useRef(null),K=I.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[J,he]=I.useState(0),Z=p??K,ie=u??z,Se=O(),[ae,ue]=I.useState(void 0),[De,fn]=I.useState(!1),[Re,xn]=I.useState(S),mn=(N,te)=>{xn(Object.assign({},Re,{[N]:te})),A?.(N,te)},wn=N=>{if(i.contentNodes.length>0)if(Object.keys(N).length>0){const te={};Object.keys(N).forEach(me=>{te[me]={open:N[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};I.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&Z.current!=null){const N=y?.scrollLeft==null?Se==="small"?0:Z.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:N};ue(te),N!==y?.scrollLeft&&C?.(te)}Z.current.scroll({left:N,top:y?.scrollTop})}},[y]),I.useEffect(()=>{kn(S,Re)||(xn(S),wn(S))},[S]),I.useEffect(()=>{const N=Z.current,te=Lo(()=>{if(N!=null&&(ae==null||N.scrollLeft!==ae.scrollLeft||N.scrollTop!==ae.scrollTop)){const me={scrollLeft:N.scrollLeft,scrollTop:N.scrollTop};ue(me),C?.(me)}},50);return N?.addEventListener("scroll",te),()=>{N?.removeEventListener("scroll",te)}},[Z,ae,C]),I.useEffect(()=>{if(i.contentNodes.length>0){wn(Re);const N=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";N!==De&&fn(N)}},[De,fn,i,ie,Z]),I.useEffect(()=>{(f!=null&&E==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(J+1))},[J,f?.fetchState,f?.isSortApplied,E,Y,f]);const ft=I.useRef(),[jo,So]=I.useState(void 0),Co=()=>{const N=ft.current;N!=null&&N.clientHeight>0&&N.clientHeight!=jo&&(So(N.clientHeight),L?.(N.clientHeight))},yn=I.useCallback(dp(n,i.contentNodes,Re),[n,i]),_o={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:_o,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:N=>t.jsx(Un,{...N,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:N,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:N,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:F})},J)})})}const Mt=I.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=I.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
2805
+ `;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:F}){const z=I.useRef(null),K=I.useRef(null),G=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[J,he]=I.useState(0),Z=p??K,ie=u??z,Se=O(),[ae,ue]=I.useState(void 0),[De,fn]=I.useState(!1),[Re,xn]=I.useState(S),mn=(N,te)=>{xn(Object.assign({},Re,{[N]:te})),A?.(N,te)},wn=N=>{if(i.contentNodes.length>0)if(Object.keys(N).length>0){const te={};Object.keys(N).forEach(me=>{te[me]={open:N[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};I.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&Z.current!=null){const N=y?.scrollLeft==null?Se==="small"?0:Z.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:N};ue(te),N!==y?.scrollLeft&&C?.(te)}Z.current.scroll({left:N,top:y?.scrollTop})}},[y]),I.useEffect(()=>{kn(S,Re)||(xn(S),wn(S))},[S]),I.useEffect(()=>{const N=Z.current,te=Lo(()=>{if(N!=null&&(ae==null||N.scrollLeft!==ae.scrollLeft||N.scrollTop!==ae.scrollTop)){const me={scrollLeft:N.scrollLeft,scrollTop:N.scrollTop};ue(me),C?.(me)}},50);return N?.addEventListener("scroll",te),()=>{N?.removeEventListener("scroll",te)}},[Z,ae,C]),I.useEffect(()=>{if(i.contentNodes.length>0){wn(Re);const N=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";N!==De&&fn(N)}},[De,fn,i,ie,Z]),I.useEffect(()=>{(f!=null&&G==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(J+1))},[J,f?.fetchState,f?.isSortApplied,G,Y,f]);const ft=I.useRef(),[jo,So]=I.useState(void 0),Co=()=>{const N=ft.current;N!=null&&N.clientHeight>0&&N.clientHeight!=jo&&(So(N.clientHeight),L?.(N.clientHeight))},yn=I.useCallback(dp(n,i.contentNodes,Re),[n,i]),_o={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:_o,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:N=>t.jsx(Un,{...N,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:N,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:N,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:F})},J)})})}const Mt=I.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=I.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
2806
2806
  display: flex;
2807
2807
  flex: 1 0 auto;
2808
2808
  width: ${e=>e.width}px;