@zeniai/web-cockpit-ui 1.15.25-qa → 1.15.26-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-oljmG-aN.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BXF0kUqR-TO6NW5Gm.js → AIPerformancePage-BtDuOBey-B5mBQCVW.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-BAuNBIod.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-QMyPHCdY-DRy0EobS.js → AccountInfoPageContent-BLF92_vF-CW7wtofP.js} +15 -15
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-CUepwrH5.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CoXPQka7-aq22NHyy.js → AccountReconDetailsDrawerPage-CkaBrm5K-KV-fem_5.js} +10 -10
  7. package/dist/assets/AccountRow-aEmcYP8T-NzxiJ7E0.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-Dkz2VyEk-De_7d8XV.js → AccountsPromoCardStack-C0At5pn8-BVyntxD9.js} +22 -22
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-DCBhdPbu.js +6 -0
  10. package/dist/assets/{AddToWalletPage-p0T8VFfo-Ctc53U6-.js → AddToWalletPage-CMJwUbgf-CbZx4F8y.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-CTzjRkV2-p7yXZoAe.js → AgingReportsPage-B_BSfude-DZk6eQ7D.js} +15 -15
  12. package/dist/assets/{AllUserItems-Dt9rMGJk-DSR8YYxl.js → AllUserItems-CGlWa60t-Bsvj0Bul.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-71VQk7px-CdRJ5ma9.js → ApAgingDetailPage-DT3vkmLG-hWexPQ-R.js} +7 -7
  14. package/dist/assets/AppBasePage-CDy7wPlv-BdtLe6Er.js +71 -0
  15. package/dist/assets/{AppDrawerContent-ULUH1WZ3-Dz83WLLA.js → AppDrawerContent-CEsXm_i6-DvQRPFBq.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-Ciz-iaE5-B4YKMjoQ.js → ApprovalRulesSettingsPage-CB2_4-2f-DqEewSSN.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DcwM2rpv-DLPBll-h.js → ArAgingChart-qxhWsIQb-BR0MyGhc.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-eGCSFdAM-Bq8gFwY0.js → ArAgingDetailPage-BbzQryp_-si9TyFWf.js} +4 -4
  19. package/dist/assets/{AttachmentView-CA6PRg4p-BM0v2w3b.js → AttachmentView-duTVxc9g-Cx51cWLo.js} +4 -4
  20. package/dist/assets/{BankAccountSection-mWUT-G8y-BgZogOBU.js → BankAccountSection-CAwAf9xK-dEu3iigm.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-IMtILLfL-C1D-TVku.js → BankAccountWarningSection-CaDnP9_--B_s5lRpF.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-COyH3rdC-C92rNnjt.js → BankConnectionsSettingsPage-CDV7O8cl-CKVB9msh.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BR_9uHRC-DOB1o1WS.js → BillDetailPage-DJxh2CIc-BDq5xtCx.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-cRAudMvm-l_SDm_n0.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-DoqAcsu7.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-Cd0aJtip-CocKgiwD.js → BillPayApprovalRulesPage-MM7v8ZMx-BqexuGBp.js} +8 -8
  26. package/dist/assets/{BillPayPromoPage-BYW097HT-B6ysOR5N.js → BillPayPromoPage-JK-VOx4W-CHt5RuWY.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-BahrLUn4-Ci3Jw_jx.js → BillPaySetUpPage-h0uoCWMl-B3vp9xYH.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-sAZcxvhc.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CJ-GbBhL-hKzOTQkg.js → BillsBulkReviewDrawerPage-CPPDFsZt-D7n_HeTo.js} +1 -1
  30. package/dist/assets/{BoxItem-CvhcNreT-BVRPLdci.js → BoxItem-CYe_gTmA-3TpRGAgq.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-tV078-eh.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CfoSPAZU-xAy0dUA_.js → CardNumberSubText-CFDhtij8-Dsv6kEZQ.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-CWlaZrqz-ChzdfET6.js → CashbackDetailPage-BBGGzKh7-DUHJlZVl.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-BNNbd3G1-BqNdRSW1.js → ChargeCardDetailPage-BQhago53-wjHuLhkC.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-BzIvl8RY-Dw3gzYHf.js → ChargeCardListPage-B0E-C3RH-B7k2t4T5.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-D-uQKI4t-djbc_tdw.js → ChargeCardListTable-ByGv0xWl-DMSCDnKA.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DmzlfD-l-3MCUUfVT.js → ChargeCardPaymentHistoryPage-LCY9rFqO-BkZDtpLS.js} +12 -12
  38. package/dist/assets/{ChargeCardPromoPage-DOYqOs6K-CnWSg544.js → ChargeCardPromoPage-CKEnOseD-C5Oe_CBA.js} +11 -11
  39. package/dist/assets/{ChargeCardSetupPage-CSnLMycu-Fc-nV6Xc.js → ChargeCardSetupPage-BHv2VOdc-7YAt9Um1.js} +3 -3
  40. package/dist/assets/ChargeCardStatementsPage-UpRXyPTS-DMihpC1F.js +60 -0
  41. package/dist/assets/{CheckDepositDrawerPage-DN5Ok0Y6-ng0samw3.js → CheckDepositDrawerPage-0zbTQ3Fa-BLYoChOi.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-CncMWpFI-BCZVc9KX.js → CollapsableReportTable-DlYIKSlQ-CcB96aJz.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-BRXSA5bv.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ccw8l9iz-DjuA33CI.js → CompanyPassportCard-DeVPuuje-pYw0P8-e.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DyWAWfST.js +574 -0
  46. package/dist/assets/{CompleteProfile-CQUDJ-nI-D5uRJScE.js → CompleteProfile-Y6HwKtpz-CAD13Y73.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-BH3P6Vot.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DxMMe6gv.js → ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DM90rr4S-C8JUMUxd.js → CreateOrEditVendorPage-BlZe6gmh-CQZW25xI.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Bh0QdxXh-TJCbgx12.js → CreditCardPaymentDrawerPage-flPmyCaF-BN_zrabq.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-BDfEzwpU-CRXhdOB1.js → CurrencySelectField-RiKAivD8-Men9-Qs8.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CJGtq19l-oSOY3-iS.js → CustomerOnboardingActivationPage-B7dLMk4g-9XWjuxWa.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-CAVfCCXg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CWy89yK1.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Dm9ock3U.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-1Q4j5GPR.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-C9Fs1CgW.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CZDipU2j-CY8bWPwX.js → CustomerOnboardingProductSuitePage-DqgoBLWp-CqOyrhHJ.js} +6 -6
  58. package/dist/assets/{Dashboard-DyQZQS2X-BbvnZv_G.js → Dashboard-D0KlujCx-DnjbaQQd.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-Dn7pVdG9-B_qH3ZCe.js → DashboardReportPage-bxKyMsG7-D9LgF6Vc.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-8bPW9HsA.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-DDdkQsmn-BhqvohO1.js → DepositAccTransactionItem-BdZVCAx--B5mbkfQv.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-BHdmR6m5-C42qNt4G.js → DepositAccTransactionListPage-LU0QMdSV-BPGsYfzN.js} +7 -7
  63. package/dist/assets/{DomesticWireDetailsPage-CpwSOc_0-BwoPHjA8.js → DomesticWireDetailsPage-CFt5GgZ1-DPIozVv0.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dhib22Hz-BMigVmXm.js → DownloadOverlay-CH_bA3On-JFXgpsko.js} +11 -11
  65. package/dist/assets/{DrawerPage-nxxj86nQ-V1LIna1_.js → DrawerPage-Cpdp-IFb-6O8ALZwh.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-COJTJTYl.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C2kqq9QP-Br957QFY.js → EditReimbursementDetailPage-DnyyPZ26-CW_m0PAT.js} +73 -73
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-NbMT0IAK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-C29GLBzF-D39CMGzi.js → EntitySummarySection-BFpgAYAM-CKlhnXLV.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B4kcx-VG-DxwDCeEn.js → ExpenseAutomationOverviewPage-YjOVm_Bw-BDJuPgHE.js} +22 -22
  71. package/dist/assets/{ExpenseAutomationPage-DNwnoyPg-SnZAYqgF.js → ExpenseAutomationPage-DlhH-R-e-DCW88pdW.js} +285 -295
  72. package/dist/assets/{ExpressPayPage-K-InpYtZ-aN7mrn0F.js → ExpressPayPage-CKqPEfbR-pk0o4BxB.js} +21 -21
  73. package/dist/assets/{FeaturePreviewPage-IsRBHkoD-TAwTKCM0.js → FeaturePreviewPage-Cs1Y3nP0-BgQT4DqF.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-ClyCs5f_-Cbik-xF_.js → FollowStepsSection-BCyL8Jdr-CPpGgHn-.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-n8XrBXXp-BZ2gMX08.js → GlobalReviewListPage-CBQFcVHd-XH4CFBRM.js} +16 -16
  76. package/dist/assets/{InformationCardStack-BnOF2kCh-BdgYGwde.js → InformationCardStack-nFMetrAy-CMfT3sbg.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bgzkang3-BzYt1Rxu.js → InsightsCardStack-CEMeGJXy-DkdJ-vVc.js} +9 -9
  78. package/dist/assets/InsightsSection-BYiN2xB7-Tq3IZNKc.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-D1QWrVQw-stOpPSQY.js → IntegrationsSettingsPage-BQ7g3a3K-BdOaL4VS.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DNNEqdWS-D1uSKMyM.js → InternationalWireSwiftDetailsPage-BHRYsZgm-DSuBLSD4.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CQvYGebF.js +292 -0
  82. package/dist/assets/{InviteFormPage-C-Io8wxr-DLs7wMBm.js → InviteFormPage-BVXte8w8-MDAVTXGi.js} +21 -21
  83. package/dist/assets/{InvitePageListView-B1PLdKSn--gkO7IR1.js → InvitePageListView-DFPyLLrA-CONqmQCs.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-6b_Qz0Yf.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DhF51Ukp.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-CC6D-uPl-yVNFmovT.js → IssueChargeCardPage-BuLj1bOl-DtlAMUV4.js} +15 -15
  87. package/dist/assets/{LabeledAddressValue-CKZJgaV5-BGReF5ah.js → LabeledAddressValue-D2t8ti-C-Z0RI74Eh.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-N1wb0l0p-BtlFpiVX.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPIIBKMF.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-DaqPO373.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js +59 -0
  93. package/dist/assets/{LabeledText-DiJE8avC-24n-Mx9E.js → LabeledText-zjKn4Cw--WpJNibWz.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLup6THe-DpA0JL_S.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-l_A9LTk7.js} +20 -20
  95. package/dist/assets/{LabeledZeniRolesDropDownField-CVg9PTpl-B6wARtfF.js → LabeledZeniRolesDropDownField-DiBtAWQ3-_N52HAlB.js} +33 -33
  96. package/dist/assets/{LinkJETransactionPage-DaGHGCIJ-Ba3aKUMJ.js → LinkJETransactionPage-D66bzDh_-B4JreFf6.js} +8 -8
  97. package/dist/assets/{LockCardPage-CGYlmPkB-BmKeq5lW.js → LockCardPage-B1g2TZWL-hWz0sEAN.js} +22 -22
  98. package/dist/assets/{LowBalancePopup-YJW7eKud-CTZA7O1Z.js → LowBalancePopup-DbtHeVY--8cU4w1E0.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-7knh_ltw.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-ESO2QI-z.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-COXCHYYI-7TUAwLMH.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-J3sKHPD3.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--B7psstiC.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-CCF7Ahgh-BP7fXimK.js → MagicLinkTitleSection-CqkZ9wOf-BR_t9OGm.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-DRFGCM2W-D_ajBet8.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BJi0owDl-CUk4FnA3.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-DRRK16jW.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BWIla-hh-Xvknm8Hk.js → MyPendingActivationChargeCardListPage-BffxXDZg-DDMywOmd.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-CW5UQDbf.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BGZvvByA-uJYEillO.js → NavBarWithPicker-C4VfP_Kw-BlN6D07W.js} +5 -5
  109. package/dist/assets/{NavigationArrow-C3pN6F3u-D0cIq2JZ.js → NavigationArrow-DCCxx6H7-HhnIS8HH.js} +7 -7
  110. package/dist/assets/{NavigationDots-D1rJnVkZ-lWOs2PbN.js → NavigationDots-tWCw6Bpk-Mo0z1mhF.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-DU2Z_NYb-CKdyBaRw.js → NewGlobalMerchantPage-UIA8zAjd-D_Ilslhf.js} +12 -12
  112. package/dist/assets/{NoDataChart-DuEsebs4-dCa63BXA.js → NoDataChart-Bvetk9za-Dz6Kgiua.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-gmK0ApJv.js +8 -0
  114. package/dist/assets/{NotFoundPage-DLtikmoi-DezEm7uZ.js → NotFoundPage-CdH-3upl-BWvfv-me.js} +6 -6
  115. package/dist/assets/{NotificationSettingsPage-DwsCKyVM-DSXQBvov.js → NotificationSettingsPage-DP2gGIz1-CAx-Ob95.js} +12 -12
  116. package/dist/assets/{NotificationsListConfig-CMtBeX4D-8x056zZE.js → NotificationsListConfig-DG-DH2Aj-B1EWk1B7.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CZrXzWli-CszMkZ09.js → NotificationsPage-CgFMmR2X-DW2MYafR.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-0PLAOQu5-C1H7Eb6W.js → OpExByVendorPage-eUvIAWzt-J9dFs64l.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-CRh-4TRn.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-PkrBqcAR-DeIB5p6W.js → PandLWithForecastPage-8S06Nyi5-Bs1OiKUY.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-CgW6kWBO.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-Cm2cmSqy.js +675 -0
  123. package/dist/assets/{Preview-DaDKYAzg.js → Preview-CyX-vurX.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-fMS3PJAc-BotcQNAa.js → ProductsCarousel-BKSXWnFR-BT4vvSaJ.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-HY42c1kU-BhYjmYvJ.js → PromoBaseCards-BYT9nEJT-1c2PW57m.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-B_AOC_hG-CeVd-SRA.js → QBOConnectionDialog-C2-omQMZ-CW3-Jgl1.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-CQHdqpJF-7U6mrHSv.js → QBOSetupSection-lgv5wVlg-Db43UmDc.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D0oeO5MZ-OtCnB_q6.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-DEQyVs-F.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-Beg7ljMA-B5KQz4js.js → ReimbursementApprovalRulesPage-BuNt-Bmb-qkoyA-iD.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-DBxKNhum-eRxMF0_S.js → ReimbursementDetailPage-CK3-Jqkd-ComGCWG4.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-DxZeTOQW-De_TV65M.js → ReimbursementPromoPage-fptOAJna-UPQyz9k9.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-CN4LhFrS-BtgsPTFS.js → ReimbursementSetUpPage-CidrpT2g-C4LYSo0t.js} +10 -10
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage--6OUmjzW-CEunkPIJ.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DbKZBLTq.js} +1 -1
  134. package/dist/assets/{ReloadCard-BluhBNO--JXB8TN8J.js → ReloadCard-C81rGzOp-DY4k84ea.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-8KYimU0G-YQryAILK.js → ReportTableViewSelector-neRSjrhV-C6WBlOcq.js} +9 -9
  136. package/dist/assets/{ReportsPage-D-UfdQ34-BJylCiUX.js → ReportsPage-BhzQVaer-B4A4M4e5.js} +1 -1
  137. package/dist/assets/{RevenueChart-C9EztEKi-D-GF5bMS.js → RevenueChart-x7uTbFlm-CNwMod8g.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-B6SYtYUA-Bic5mY3s.js → ReviewDetailsPage-jXZCylzg-BIFUDhZH.js} +31 -31
  139. package/dist/assets/{ReviewOverlay-C2enVZqt-CeljToJx.js → ReviewOverlay-nlm2HnGw-9bQU05T1.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-BIz3hnmq.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DmBVVX79-CCSFvhRM.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-BgCHEx2z.js} +8 -8
  142. package/dist/assets/{ScheduleDetailsPage-Bp3d9tdD-q1bZSw14.js → ScheduleDetailsPage-BSZefKOh-6HOYgX85.js} +8 -8
  143. package/dist/assets/ScheduleSequenceTable-BW5M7Zfq-Cc7Psi6L.js +324 -0
  144. package/dist/assets/{ScreenRoutes-BIJj5Saj.js → ScreenRoutes-DOxgrmyz.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DiEFZwFL-BaHFxHp4.js → SetUpAccountSection-C703iFL6-DWHc95vH.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-C-Fq_guN.js +491 -0
  147. package/dist/assets/SignInScreen-pGoo9woj.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-BoWIPx5V-Be8Dc1Y5.js → SpendManagementListViewPage-CBNtC74m-DqpxdGQ6.js} +13 -13
  149. package/dist/assets/{SpendManagementPerTabPage-DRrECrxC-Cm5biaiO.js → SpendManagementPerTabPage-D_sa7WRd-CzMD5xEZ.js} +25 -25
  150. package/dist/assets/{SpendManagementSection-xoH8d-PB-DpntNr3t.js → SpendManagementSection-DpZUTV6m-Dyv3RP83.js} +23 -23
  151. package/dist/assets/StatementItem-DvdSsb8I-4NJSevH0.js +31 -0
  152. package/dist/assets/StatementsPage-73jGj5P2-DfWSq1-t.js +58 -0
  153. package/dist/assets/{StatusSwitcher-C-2QxP_3-CPrG2471.js → StatusSwitcher-hKYgwNLC-CE1foddz.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-D3iTZY-F-Vu8hc56R.js → SubTabSwitcher-aeDd9xiF-D4uOjs0t.js} +2 -2
  155. package/dist/assets/{SummaryCard-BbzDLzif-D9HqINXn.js → SummaryCard-CK8Gxbiu-DemkEVCq.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-DI_lMbra-CVdOpIFG.js → TaskManagementPage-D2Ooq8DR-DrMY4gdr.js} +15 -15
  157. package/dist/assets/{TimeRangeSwitcher-C3mH2YE7-CxdwLD3J.js → TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-C8iVJfJz-r75odRQ8.js → TimeframeSwitcher-BppC6giF-D-wC9bQx.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js +31 -0
  160. package/dist/assets/{TopExCard-DlberdWy-C2q30Aki.js → TopExCard-Cy6tPVSx-B-keVDu8.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-DZyUPQ9i-BLn9-yw3.js → TopExDetailPage-Rtrcdkcp-BJDfbujg.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bpdbc21v-CM1zPkd3.js → TransactionActivityLogPage-DbwSsjPJ-BIwIVqy-.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js +903 -0
  164. package/dist/assets/TransactionList-BruCNjQg-CPy3bOrg.js +153 -0
  165. package/dist/assets/{TransactionListBig-D6Q9QimF-B_YVo6kI.js → TransactionListBig-bp7q3prH-B3o9La4k.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8--vXsSJCl.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-B4A4amjV-BhO2vQ5S.js → TransactionVendorDetailPage-CldkuO2--QReUEWYz.js} +7 -7
  168. package/dist/assets/{TransferDrawerPage-Dfhpu5Yd-BZldmbFB.js → TransferDrawerPage-DswS6KZf-BpK3RBCC.js} +27 -27
  169. package/dist/assets/{TreasuryOverviewPage-B6WhqRDb-DEqeKyOX.js → TreasuryOverviewPage-DWo7iRpO-gYNjYUSH.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-C5DXueHJ-BlBWoLLu.js → TreasuryPromoPage-DQxCF3-4-BI9m1Cpo.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-8qXJLq1U-B1yVK5_e.js → TreasuryStatementsPage-CYkPtmaT-BgyV-fq7.js} +2 -2
  172. package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-Dyk_wpPB.js +58 -0
  173. package/dist/assets/{TrendChart-FPLC1aMv-Dsg7RNKY.js → TrendChart-BMHDaOeh-DUFeSEwp.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-_O4Fz3pt-CY9f274t.js → TrendWithTransactions-DDLrmIrt-D7YkaYJE.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-rdMygvxx-Buu96HmY.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-DxcmP_9M.js} +22 -22
  176. package/dist/assets/{UnitIntegrationPage-WfFukh9_-B5ZkACvG.js → UnitIntegrationPage-DPMy8dXP-Ds2V7iqZ.js} +11 -11
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-xiqklxM_-B0Gp_VuL.js → UploadAdditionalDocumentOverlay-BHpT2al--Bh-cR8rL.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-DnLG0jax.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BnzYtLeS.js +1 -0
  180. package/dist/assets/{VendorDetailPage-Cexet52V-ByQEr6nx.js → VendorDetailPage-BC1FhaQA-BTYI8FHa.js} +25 -25
  181. package/dist/assets/{VendorDomesticWireDetailsPage-DbhChvIp-Gd-LcXBC.js → VendorDomesticWireDetailsPage-CLudahOt-DWedRRGC.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-Bnwp2JiZ-BVK55tl7.js → VendorFiling1099EditablePage-DYyPOA8D-SaXokDu7.js} +38 -38
  183. package/dist/assets/{VendorFirstReviewPage-C_xSf47L-CdUnKlD1.js → VendorFirstReviewPage-Cpmk7rDk-CLDuk2Z1.js} +37 -37
  184. package/dist/assets/{VendorInternationalWireDetailsPage-DVuenbq8-BQJUIatX.js → VendorInternationalWireDetailsPage-CWAWq6kq-BqWv0FEj.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Cnhhvl1i.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DYSlIqnJ-BEEMJGXs.js → VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js} +2 -2
  187. package/dist/assets/{VerifyDevice-MbuunHNJ-DK2vpiqN.js → VerifyDevice-CfMJW1Vh-CQyEdsek.js} +9 -9
  188. package/dist/assets/{VideoPlayer-B-oV4gcS-KQE08Dmc.js → VideoPlayer-BNBpjXJk-S1NV6cBn.js} +2 -2
  189. package/dist/assets/{VideoPopup-DFfn4tne-DCRKhHRK.js → VideoPopup-BF6lmB7l-C8AjwQYx.js} +5 -5
  190. package/dist/assets/{WarningsDrawerPage-C_nKfBpS-DHXk74av.js → WarningsDrawerPage-Crj70lnR-CqPc_yNz.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-jYwDoLiN-CyMF0xwM.js → ZeniAccountDetailPage-CaA6m3tQ-BxjiYTPx.js} +12 -12
  192. package/dist/assets/{ZeniAccountListViewPage-CWiWh2ld-Z2OcnxXS.js → ZeniAccountListViewPage-x_51gDs1-BURzAUSX.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-Dtq04dNH.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-DPab5PDZ-Df3iX_i_.js → ZeniAccountPromoPage-lxKBk2r5-B3car8p6.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Dbqa1LpU-BMCQ0hLC.js → ZeniAccountSetupPage-DUI4-2Zw-CqTcY3yC.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-SDIPg48K-CevhNJoN.js → ZeniCopyright-DxEZ4DiK-Bx5L4V4v.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-Bg59KBt9-CyCGlMPD.js → ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-4MTVGYLk.js → add-to-wallet-DgdBD8_G-Ckn7-tS3.js} +1 -1
  199. package/dist/assets/{analytics-DkApCpAh.js → analytics-DgE91yP9.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DfCXurTN-BrPn0dkx.js → analyticsHelper-CL-t3Y2i-DqLgDKAm.js} +1 -1
  201. package/dist/assets/analyticsHelper-qCgSbR3t.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-sjXlUHVP.js → arrow-south-east-round-PEovUgvH-6_ok8u4n.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-8P5UKTjR.js → auto-transfer-rule-mbafm5D3-DaMjzKK3.js} +1 -1
  204. package/dist/assets/{chartTypes-H306f0ce-MyWtRYTO.js → chartTypes-B3501CSI-Eia1dEGg.js} +1 -1
  205. package/dist/assets/{commonDimensions-CWffpElu-Q8mZH4nJ.js → commonDimensions-YcBBlmYP-HRUAmifl.js} +1 -1
  206. package/dist/assets/{constants-42un7CRh.js → constants-DU2Tv8MD.js} +1 -1
  207. package/dist/assets/{core-DQ8U4CJb.js → core-CEu4PzGb.js} +1 -1
  208. package/dist/assets/{dash.all.min-xDoItceu.js → dash.all.min-wN4tXsVF.js} +1 -1
  209. package/dist/assets/{detailCommon-CfrL4ryy-Drm9_QUO.js → detailCommon-C19MYPnq-B5eEk_1Z.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DccTm81d.js +1 -0
  211. package/dist/assets/{empty-DBMIDect.js → empty-CarmpCiV.js} +1 -1
  212. package/dist/assets/{empty-DMdKDWd5.js → empty-SBaJLmT7.js} +1 -1
  213. package/dist/assets/epic-jB8ji6P2.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CKZgCX5V.js → gift-box-Cmt9OgIZ-Cfao5pzw.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B74xUk4A.js → graphic-no-data-l-DU4J8fDt-CtMgv3E2.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js → graphic-no-data-net-burn-l-CzmycA0m-CxhhGXfI.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-ci6EVnAm.js → handshake-BPg58FML-Cr0KvGET.js} +1 -1
  218. package/dist/assets/{index-DlHdI3-w.js → index-C65pc_ms.js} +1 -1
  219. package/dist/assets/{index-Ci8_ElRT.js → index-CM4tXRl_.js} +1 -1
  220. package/dist/assets/{index-uFwLgEj2.js → index-CTIRcS5n.js} +1 -1
  221. package/dist/assets/{index-CP7n6qbn.js → index-DdSqYqAO.js} +1 -1
  222. package/dist/assets/{index-MLR605z1.js → index-DotN2qpo.js} +1 -1
  223. package/dist/assets/{index-i62ZqD9V.js → index-GSKpJ8ET.js} +4076 -4065
  224. package/dist/assets/{index-C-yZdmSC.js → index-qEET5oej.js} +1 -1
  225. package/dist/assets/{lexical-CvUIM9vD.js → lexical-CnqcqOEB.js} +1 -1
  226. package/dist/assets/{liveblocks-DXGUxn7J.js → liveblocks-D1OOExFG.js} +1 -1
  227. package/dist/assets/{lottie-C1yptpVV.js → lottie-fNTw06NH.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DOYdbM0-.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-C65_6eW3.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-D-fvMaDb.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js +1 -0
  234. package/dist/assets/{mui-rLvQ8A4a.js → mui-DenpH-hx.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-DxBKGqnW.js → page-detail-CWX5S47F-CMu9po0A.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-D50TMWyl.js → radio-default-CiSgisfh--A7TRB5H.js} +1 -1
  238. package/dist/assets/{react-CD-rvAYw.js → react-B5LP5NK7.js} +1 -1
  239. package/dist/assets/{react-XCvfp0dN.js → react-BGO_hhif.js} +1 -1
  240. package/dist/assets/{react-BGRcEI9e.js → react-BNXAqjdV.js} +1 -1
  241. package/dist/assets/{react-CeXW-10t.js → react-BbEkWrBm.js} +1 -1
  242. package/dist/assets/{react-D5l7wk4q.js → react-BbsHWhNi.js} +2 -2
  243. package/dist/assets/{react-CKPzfXiX.js → react-CX4zcxjw.js} +1 -1
  244. package/dist/assets/{react-CaPJ_R38.js → react-D97zLppZ.js} +2 -2
  245. package/dist/assets/{react-BFvwO_Qx.js → react-DvuAhc__.js} +1 -1
  246. package/dist/assets/{recharts-BYppTjSs.js → recharts-9NtTDQfo.js} +1 -1
  247. package/dist/assets/{sentry-DhNwX3jk.js → sentry-BZBky1_g.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-1dcmCA6e.js → shield-DOlUxcFf-DnxNebOP.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js +1 -0
  250. package/dist/assets/{toChartData-ILqaSUrn-DEH7gUMA.js → toChartData-DzatRnt8-Cq2-M4CL.js} +1 -1
  251. package/dist/assets/{uploadAttachment-BO1VJaKW-C7cr9w_9.js → uploadAttachment-Bq8dk-Sm-DirS4o1A.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-CuKjXY6-.js → uploadReceipts-Dge0cNF1-BKdcUL2b.js} +1 -1
  253. package/dist/assets/{url-DrmuGGE4.js → url-0W_uXmZ-.js} +1 -1
  254. package/dist/assets/{url-C7FJoqre.js → url-Z1gMB4SW.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-nce713S8.js → useLongPress-GCK2COYQ-B8bxkfF-.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-BIn3NV9C.js → usp-line-BBd1wKwW-BPsPtX_C.js} +1 -1
  257. package/dist/assets/{utils-BdIPH7k8.js → utils-CHibiken.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwkN4IvA.js → zeni-epic-state-BKgIzPpM.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-Davpg8eW-D4fDLBvb.js +0 -21
  262. package/dist/assets/AccountInfoPage-Cefnidcc-DSwJtSIq.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-BdFY6p56-B0tAnrT1.js +0 -59
  264. package/dist/assets/AccountRow-DHB-ETil-Z8gDYNsd.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CQQ-61A2.js +0 -6
  266. package/dist/assets/AppBasePage-tDs92z31-rHgUU93J.js +0 -71
  267. package/dist/assets/BillingSettingsPage-BjMeQKM0-BoKoI1dh.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-LKrdd6Ej-CfBndZj-.js +0 -138
  269. package/dist/assets/ChargeCardStatementsPage-C82CsaNY-CC2pqnJw.js +0 -60
  270. package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-pW5vmYaZ.js +0 -331
  271. package/dist/assets/CompanyPassportPage-IjpU53y_-DJMDEFNH.js +0 -417
  272. package/dist/assets/ConfettiBurst-C_6Uy7eR-BvE47982.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-DUTuOhqq.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-DIKi33VN.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-Bl2oAvin-QdpSJ3IL.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-BLezpzfb.js +0 -12
  277. package/dist/assets/EditPeoplePage-CG5gmNTR-By4xfZt2.js +0 -55
  278. package/dist/assets/EntityDetailPage-CL0FCU_m-57FjLCVr.js +0 -18
  279. package/dist/assets/InsightsSection-C16f1RZL-CuJbLdqY.js +0 -27
  280. package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-BNUJckvi.js +0 -65
  281. package/dist/assets/InvitePeoplePage-BArxsNxE-3PUmbMCi.js +0 -12
  282. package/dist/assets/InvoiceUploadSection-Eo7dq75t-Cy0Z1dJW.js +0 -140
  283. package/dist/assets/LabeledAddressValueField-DNGOSAvq-ZfEgza85.js +0 -45
  284. package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-pPmmCP0u.js +0 -16
  285. package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DyTmt0bq.js +0 -237
  286. package/dist/assets/LabeledDocumentField-vSq1xSUM-SQWGz5c_.js +0 -41
  287. package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DqyU6pbW.js +0 -59
  288. package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-CY08CjBz.js +0 -1
  289. package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bt-m4lf6.js +0 -1
  290. package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-BuqevIb3.js +0 -31
  291. package/dist/assets/MailingDetailsSection-WMvjKFiS-DrE6z-0r.js +0 -21
  292. package/dist/assets/MyProfileSettingsPage-B0uYhezS-zOi4BtW_.js +0 -85
  293. package/dist/assets/NoDataTable-B7LkfAQX-Bh-1O4BJ.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-rH6NcU1w.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-BhwxbNk-.js +0 -107
  296. package/dist/assets/PeoplePage-PyWOVc5M-DDstQObu.js +0 -727
  297. package/dist/assets/RoleWithToolTip-DA3BIg5j-D1CK22Z-.js +0 -22
  298. package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-mhp0CylL.js +0 -324
  299. package/dist/assets/SignIn-T74bkrxk-C_P0bpoN.js +0 -491
  300. package/dist/assets/SignInScreen-BoQ9lNZS.js +0 -1
  301. package/dist/assets/StatementItem-BthXwXFQ-BNIZCHgX.js +0 -31
  302. package/dist/assets/StatementsPage-FmjXzQ3g-B0d3-aZp.js +0 -58
  303. package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-B8qb2uqc.js +0 -31
  304. package/dist/assets/TransactionDetailPage-CaRcJukf-Bo597BVB.js +0 -903
  305. package/dist/assets/TransactionList-BAziC6eS-BmUgbhkd.js +0 -153
  306. package/dist/assets/TransactionListPage-Ce_lSS6C-DIQhg2cv.js +0 -35
  307. package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-CtelY7nv.js +0 -58
  308. package/dist/assets/Vendor2FAPopup-DK98Bntc-DVN99uTL.js +0 -1
  309. package/dist/assets/VendorACHDetailsPage-Bxo11l9N-k6uIrVLU.js +0 -1
  310. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-ClaB4MmH.js +0 -1
  311. package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BBttD6LN.js +0 -14
  312. package/dist/assets/analyticsHelper-CuSP0M5f.js +0 -1
  313. package/dist/assets/commonTypes-DP3nDhtI-B_y6nYRG.js +0 -1
  314. package/dist/assets/downloadPdf-C1zKY9Rq-CXegp3G4.js +0 -1
  315. package/dist/assets/epic-av5bi8Jm.js +0 -2
  316. package/dist/assets/helper-Byvbf3nO-DBknGFPS.js +0 -223
  317. package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-CtStsMXI.js +0 -1
  318. package/dist/assets/mapSpacerToTreeNode-BCRaNO17-jsRjLpEV.js +0 -1
  319. package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-BW4ULwuZ.js +0 -1
  320. package/dist/assets/mapTimeframeBalancesToTreeNode-DRCseSgo-DGrY-pp2.js +0 -1
  321. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-LIMzcEpN.js +0 -1
  322. package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +0 -3
  323. package/dist/assets/toCOABalancesWithID-BDzeodcz-Sx-7PAVa.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,J as O,aF as kn,az as Lo,dp as jn,dq as Ao,F as B,u as w,dr as Jn,ds as It,dt as Nt,cc as Ft,du as Pt,y as V,d3 as zt,ax as Qn,aa as Xe,co as Me,bQ as H,T as Bo,d as ce,aW as $,b0 as Zn,dv as Xn,ao as Le,dw as Wo,dx as le,cb as Tt,c0 as Sn,aj as Oo,an as we,dy as et,dz as Ae,dA as nt,am as _,cj as ne,dB as Mo,b as Vt,dC as Ee,dD as Cn,dE as _n,dF as Io,dG as No,ba as ei,aX as T,b7 as Fo,cB as Dt,cA as Rt,dH as Po,b8 as ti,cE as ni,bS as zo,dI as To,dJ as vn,dK as $n,dL as Vo,dM as Do,bU as Ro,bL as Eo,dN as Go}from"./index-i62ZqD9V.js";import{n as a,c as F}from"./mui-rLvQ8A4a.js";import{a as I,P as Ho}from"./sentry-DhNwX3jk.js";import{E_ as Et,Fu as Gt,Fv as Ie,Fw as Ht,Fx as Kt,Fy as Yt,Fz as Ut,FA as ii,FB as Ko,Fb as xt,E$ as Ne,bm as Ln,bg as oi,FC as ri,FD as Yo,bo as Uo,Fc as ai}from"./zeni-epic-state-DwkN4IvA.js";import{D as it,R as qo,A as Jo,E as ye,u as v}from"./AccountRow-DHB-ETil-Z8gDYNsd.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]="26d10614-a197-4a4d-8c52-27118d495d2b",e._sentryDebugIdIdentifier="sentry-dbid-26d10614-a197-4a4d-8c52-27118d495d2b")}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 Fe=(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,b4 as vo,aQ as m,bO as pe,aO as U,dn as $o,o as s,p as X,aR as bn,J as O,aE as kn,ay as Lo,dp as jn,dq as Ao,F as B,u as w,dr as Qn,ds as It,dt as Nt,cc as Pt,du as Ft,y as V,d3 as zt,aw as Jn,aa as Xe,dv as Me,bQ as H,T as Bo,e as ce,aW as $,b0 as Zn,dw as Xn,an as Le,dx as Wo,dy as le,cb as Tt,c0 as Sn,ai as Oo,am as we,dz as et,dA as Ae,dB as nt,al as _,cj as ne,dC as Mo,b as Vt,dD as Ee,dE as Cn,dF as _n,dG as Io,dH as No,ba as ei,aX as T,b7 as Po,cA as Dt,cz as Rt,dI as Fo,b8 as ti,cD as ni,bS as zo,dJ as To,dK as vn,dL as $n,dM as Vo,dN as Do,bU as Ro,bL as Eo,dO as Go}from"./index-GSKpJ8ET.js";import{n as a,c as P}from"./mui-DenpH-hx.js";import{a as I,P as Ho}from"./sentry-BZBky1_g.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-BKgIzPpM.js";import{N as it,D as qo,R as Qo,B as ye,u as v}from"./AccountRow-aEmcYP8T-NzxiJ7E0.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]="95ac3914-fdda-4abf-bb89-c8c1f5406942",e._sentryDebugIdIdentifier="sentry-dbid-95ac3914-fdda-4abf-bb89-c8c1f5406942")}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 J(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)}`},Jo=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -60,7 +60,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
60
60
  display: flex;
61
61
  justify-content: center;
62
62
  align-items: center;
63
- `;function cr({height:e}){const n=O();return t.jsx(Qo,{heightValue:e,windowSize:n,children:t.jsxs(Zo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
63
+ `;function cr({height:e}){const n=O();return t.jsx(Jo,{heightValue:e,windowSize:n,children:t.jsxs(Zo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
64
64
  display: flex;
65
65
  flex-direction: row;
66
66
  height: ${e=>e.heightValue}px;
@@ -186,13 +186,13 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
186
186
  width: ${v.statusWidth}px;
187
187
  min-width: ${v.statusWidth}px;
188
188
  height: 1px;
189
- `,Fr=a.div`
189
+ `,Pr=a.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
192
  min-width: ${v.spacerLineWidth}px;
193
193
  width: ${v.spacerLineWidth}px;
194
194
  align-items: center;
195
- `,Pr=a.div`
195
+ `,Fr=a.div`
196
196
  width: 1px;
197
197
  margin-left: ${s.sp3};
198
198
  height: ${e=>e.heightValue}px;
@@ -221,7 +221,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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(Er,{variance:o,variancePercentage:r}),t.jsx(Fr,{children:t.jsx(Pr,{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,index:e.element.index,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(Qo,{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 Qr(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 Jr(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;
@@ -269,7 +269,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
269
269
  background-color: ${e=>e.theme.colors.grey4};
270
270
  width: ${e=>E.titleWidth.valuePx(e.windowSize)};
271
271
  max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
272
- ${({isSticky:e})=>e?F`
272
+ ${({isSticky:e})=>e?P`
273
273
  position: -webkit-sticky;
274
274
  position: sticky;
275
275
  top: ${s.sp0};
@@ -350,7 +350,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
350
350
  width: ${e=>E.titleWidth.valuePx(e.windowSize)};
351
351
  max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
352
352
  background-color: ${e=>e.bgColor?.hex()};
353
- ${({isSticky:e})=>e?F`
353
+ ${({isSticky:e})=>e?P`
354
354
  position: sticky;
355
355
  top: ${s.sp0};
356
356
  left: ${s.sp0};
@@ -360,7 +360,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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(Pt,{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,P=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:P},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`
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;
@@ -409,7 +409,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
409
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
- ${e=>e.isSticky?F`
412
+ ${e=>e.isSticky?P`
413
413
  position: -webkit-sticky;
414
414
  position: sticky;
415
415
  top: ${s.sp0};
@@ -436,13 +436,13 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
436
436
  height: 12px;
437
437
  cursor: pointer;
438
438
  color: ${e=>e.theme.colors.hero};
439
- `,Jt=a(Rt)`
439
+ `,Qt=a(Rt)`
440
440
  width: 12px;
441
441
  height: 12px;
442
- `,Qt=a(Dt)`
442
+ `,Jt=a(Dt)`
443
443
  width: 12px;
444
444
  height: 12px;
445
- `,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Zt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Qt,{}):t.jsx(Jt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Zt(i),e)};return t.jsx(vi,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(_i,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Qt,{}):t.jsx(Jt,{})}),t.jsx(Xe,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Zt(i),"total")};return t.jsx(vi,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(_i,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Qt,{}):t.jsx(Jt,{})})]})})})},_a=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function va({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(_a,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Zt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
445
+ `,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Zt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Zt(i),e)};return t.jsx(vi,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(_i,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})}),t.jsx(Xe,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Zt(i),"total")};return t.jsx(vi,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(_i,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})})]})})})},_a=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function va({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(_a,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Zt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
446
446
  display: flex;
447
447
  flex: 1 1 auto;
448
448
  width: fit-content;
@@ -484,7 +484,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
484
484
  width: ${e=>E.titleWidth.valuePx(e.windowSize)};
485
485
  max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
486
486
  background-color: ${e=>e.bgColor?.hex()};
487
- ${({isSticky:e})=>e?F`
487
+ ${({isSticky:e})=>e?P`
488
488
  position: sticky;
489
489
  top: ${s.sp0};
490
490
  left: ${s.sp0};
@@ -500,7 +500,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
500
500
  margin-left: ${e=>$a[e.depth]}px;
501
501
  color: ${e=>e.theme.colors.primary};
502
502
  width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
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(Fa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Fa({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}},Pa=a.div`
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;
506
506
  width: fit-content;
@@ -542,12 +542,12 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
542
542
  width: ${e=>E.titleWidth.valuePx(e.windowSize)};
543
543
  max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
544
544
  background-color: ${e=>e.bgColor?.hex()};
545
- ${({isSticky:e,isIndented:n})=>e&&n?F`
545
+ ${({isSticky:e,isIndented:n})=>e&&n?P`
546
546
  position: -webkit-sticky;
547
547
  position: sticky;
548
548
  top: ${s.sp0};
549
549
  left: ${s.sp4};
550
- `:e&&!n?F`
550
+ `:e&&!n?P`
551
551
  position: -webkit-sticky;
552
552
  position: sticky;
553
553
  top: ${s.sp0};
@@ -562,7 +562,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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}),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(Pa,{"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=>Fi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Pi(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=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Pi(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 Fi(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 Pi(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 Pe(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 Qa(i,o,n);case"income":return Ja(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},Qa=(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},Ja=(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:Qn(Array(n),null)}const sl=a.div`
566
566
  display: flex;
567
567
  flex: 1 1 auto;
568
568
  max-height: 1px;
@@ -619,7 +619,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
619
619
  color: ${e=>e.theme.colors.hero};
620
620
  max-width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
621
621
  background-color: ${e=>e.bgColor?.hex()};
622
- ${({isSticky:e})=>e?F`
622
+ ${({isSticky:e})=>e?P`
623
623
  position: -webkit-sticky;
624
624
  position: sticky;
625
625
  top: ${s.sp0};
@@ -674,7 +674,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
674
674
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
675
675
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
676
676
  background-color: ${e=>e.bgColor?.hex()};
677
- ${({isSticky:e})=>e?F`
677
+ ${({isSticky:e})=>e?P`
678
678
  position: -webkit-sticky;
679
679
  position: sticky;
680
680
  top: ${s.sp0};
@@ -690,7 +690,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
690
690
  text-overflow: ellipsis;
691
691
  text-align: left;
692
692
  background-color: ${e=>e.bgColor?.hex()};
693
- `,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Q(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(_l,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(vl,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Xt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Il(o,i.acBalanceSelector,e),i};function Il(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Nl(n(o)?.balances??[]));default:return e}}function Nl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Fl=a.div`
693
+ `,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:J(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(_l,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(vl,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Xt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Il(o,i.acBalanceSelector,e),i};function Il(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Nl(n(o)?.balances??[]));default:return e}}function Nl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
694
694
  display: flex;
695
695
  flex: 1 1 auto;
696
696
  max-height: 1px;
@@ -700,7 +700,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
700
700
  flex: 1 1 auto;
701
701
  max-height: 1px;
702
702
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
703
- `,Pl=a.div`
703
+ `,Fl=a.div`
704
704
  display: flex;
705
705
  flex: 1 1 auto;
706
706
  flex-flow: row;
@@ -715,7 +715,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
715
715
  background-color: ${e=>e.theme.colors.grey4};
716
716
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
717
717
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
718
- ${({isSticky:e})=>e?F`
718
+ ${({isSticky:e})=>e?P`
719
719
  position: -webkit-sticky;
720
720
  position: sticky;
721
721
  top: ${s.sp0};
@@ -746,7 +746,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
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(Pl,{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(Fl,{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`
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(Ql,{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;
@@ -762,7 +762,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
762
762
  justify-content: flex-start;
763
763
  align-items: center;
764
764
  min-height: 0;
765
- `,Jl=a.div`
765
+ `,Ql=a.div`
766
766
  display: flex;
767
767
  flex: 1 0 auto;
768
768
  flex-direction: row;
@@ -781,7 +781,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
781
781
  z-index: 10;
782
782
  background-color: ${e=>e.theme.colors.grey4};
783
783
  justify-content: flex-start;
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`
784
+ `;function Ei({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Jl,{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 Jl=a.div`
785
785
  display: flex;
786
786
  flex: 1 1 auto;
787
787
  width: fit-content;
@@ -877,7 +877,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
877
877
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
878
878
  background-color: ${e=>e.bgColor?.hex()};
879
879
  color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
880
- ${({isSticky:e})=>e?F`
880
+ ${({isSticky:e})=>e?P`
881
881
  position: -webkit-sticky;
882
882
  position: sticky;
883
883
  top: ${s.sp0};
@@ -892,7 +892,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
892
892
  text-overflow: ellipsis;
893
893
  text-align: left;
894
894
  margin-left: ${s.sp2};
895
- `,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:Q(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=I.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((P,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:P,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
895
+ `,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=I.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((F,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
896
896
  display: flex;
897
897
  flex: 1 1 auto;
898
898
  width: fit-content;
@@ -939,7 +939,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
939
939
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
940
940
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
941
941
  background-color: ${e=>e.bgColor?.hex()};
942
- ${({isSticky:e})=>e?F`
942
+ ${({isSticky:e})=>e?P`
943
943
  position: -webkit-sticky;
944
944
  position: sticky;
945
945
  top: ${s.sp0};
@@ -955,7 +955,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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,P=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:P},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`
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:J(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=Jn(),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,Q)=>{x(o,Y,Q)},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;
@@ -985,7 +985,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
985
985
  min-width: ${D.balanceWidth};
986
986
  text-align: right;
987
987
  margin-left: ${D.balanceLeftMargin};
988
- `,Fn=a(_)`
988
+ `,Pn=a(_)`
989
989
  user-select: none;
990
990
  max-width: ${D.balanceWidth};
991
991
  min-width: ${D.balanceWidth};
@@ -1005,7 +1005,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1005
1005
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1006
1006
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1007
1007
  background-color: ${e=>e.bgColor?.hex()};
1008
- ${({isSticky:e})=>e?F`
1008
+ ${({isSticky:e})=>e?P`
1009
1009
  position: -webkit-sticky;
1010
1010
  position: sticky;
1011
1011
  top: ${s.sp0};
@@ -1021,7 +1021,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1021
1021
  text-overflow: ellipsis;
1022
1022
  text-align: left;
1023
1023
  margin-left: ${s.sp2};
1024
- `,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:Q(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(Nn,{children:[r!==0?t.jsx(Fn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Fn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=I.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(_c,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(vc,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
1024
+ `,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:J(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(Nn,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=I.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(_c,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(vc,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
1025
1025
  display: flex;
1026
1026
  flex: 1 1 auto;
1027
1027
  width: fit-content;
@@ -1041,7 +1041,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1041
1041
  flex: 1 0 auto;
1042
1042
  flex-direction: row;
1043
1043
  justify-content: flex-end;
1044
- `,Fc=a.div`
1044
+ `,Pc=a.div`
1045
1045
  display: flex;
1046
1046
  flex-direction: row;
1047
1047
  justify-content: flex-start;
@@ -1052,7 +1052,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1052
1052
  text-align: right;
1053
1053
  margin-left: ${D.balanceLeftMargin};
1054
1054
  color: ${e=>e.theme.colors.brandColorJadeDark};
1055
- `,Pc=a(Hi)`
1055
+ `,Fc=a(Hi)`
1056
1056
  color: ${e=>e.theme.colors.hero};
1057
1057
  &:hover {
1058
1058
  color: inherit;
@@ -1066,7 +1066,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1066
1066
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1067
1067
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1068
1068
  background-color: ${e=>e.bgColor?.hex()};
1069
- ${({isSticky:e})=>e?F`
1069
+ ${({isSticky:e})=>e?P`
1070
1070
  position: -webkit-sticky;
1071
1071
  position: sticky;
1072
1072
  top: ${s.sp0};
@@ -1088,7 +1088,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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?Pc:Hi;return t.jsxs(Fc,{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`
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:J(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;
@@ -1097,9 +1097,9 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1097
1097
  display: flex;
1098
1098
  height: 1px;
1099
1099
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
- `;function _t({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Jc=a.div`
1100
+ `;function _t({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
1101
1101
  position: relative;
1102
- `,Qc=a.div`
1102
+ `,Jc=a.div`
1103
1103
  height: ${e=>e.height}px;
1104
1104
  border-left: 1px solid ${e=>e.theme.colors.grey1};
1105
1105
  width: 1px;
@@ -1135,7 +1135,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1135
1135
  border-left: 1px solid ${e=>e.theme.colors.grey1};
1136
1136
  margin-bottom: ${e=>e.height}px;
1137
1137
  width: 1px;
1138
- `,qi=({height:e})=>t.jsx(Jc,{children:t.jsx(Qc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Zc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Ji(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Pn=B.getLocalizedStrings(),rs=a.div`
1138
+ `,qi=({height:e})=>t.jsx(Qc,{children:t.jsx(Jc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Zc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Qi(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Fn=B.getLocalizedStrings(),rs=a.div`
1139
1139
  display: flex;
1140
1140
  flex-shrink: 0;
1141
1141
  width: ${j.varianceContainerWidth};
@@ -1158,7 +1158,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1158
1158
  text-align: center;
1159
1159
  color: ${e=>e.textColor.hex()};
1160
1160
  background-color: ${e=>e.bgColor.hex()};
1161
- `,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${Fo(Math.abs(n)).format(Pn.common.numberFormat.roundedOff)}${Pn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
1161
+ `,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${Po(Math.abs(n)).format(Fn.common.numberFormat.roundedOff)}${Fn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
1162
1162
  display: flex;
1163
1163
  flex: 1 1 auto;
1164
1164
  width: fit-content;
@@ -1175,7 +1175,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1175
1175
  &:hover {
1176
1176
  color: ${e=>e.theme.colors.primary};
1177
1177
  }
1178
- `,Qi=a.div`
1178
+ `,Ji=a.div`
1179
1179
  display: flex;
1180
1180
  flex-direction: column;
1181
1181
  `,Zi=a.div`
@@ -1199,7 +1199,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1199
1199
  width: ${j.categoryClassContainerWidth};
1200
1200
  max-width: ${j.categoryClassContainerWidth};
1201
1201
  padding-left: 67.5px;
1202
- ${({isSticky:e})=>e?F`
1202
+ ${({isSticky:e})=>e?P`
1203
1203
  position: sticky;
1204
1204
  top: ${s.sp0};
1205
1205
  left: ${s.sp0};
@@ -1264,7 +1264,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1264
1264
  display: flex;
1265
1265
  flex: 1;
1266
1266
  justify-content: flex-end;
1267
- `,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Qi,{children:[e?t.jsx(Zi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Qi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Zi,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(_t,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(_t,{isScrolling:e,kind:"account_class_row_separator"}):null}function _s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
1267
+ `,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Ji,{children:[e?t.jsx(Zi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Ji,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Zi,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(_t,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(_t,{isScrolling:e,kind:"account_class_row_separator"}):null}function _s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
1268
1268
  display: flex;
1269
1269
  flex-direction: row;
1270
1270
  width: 100%;
@@ -1326,7 +1326,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1326
1326
  width: ${j.sectionContainerWidth};
1327
1327
  min-width: ${j.sectionContainerWidth};
1328
1328
  background-color: ${e=>e.bgColor?.hex()};
1329
- ${({isSticky:e})=>e&&F`
1329
+ ${({isSticky:e})=>e&&P`
1330
1330
  position: sticky;
1331
1331
  top: ${s.sp0};
1332
1332
  left: ${s.sp0};
@@ -1344,14 +1344,14 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1344
1344
  color: ${e=>e.theme.colors.primary};
1345
1345
  width: ${s.sp3};
1346
1346
  height: ${s.sp3};
1347
- `,Fs=a.div`
1347
+ `,Ps=a.div`
1348
1348
  display: flex;
1349
1349
  &:hover {
1350
1350
  .flux-section-checkbox {
1351
1351
  background-color: transparent;
1352
1352
  }
1353
1353
  }
1354
- `,Ps=a.div`
1354
+ `,Fs=a.div`
1355
1355
  display: flex;
1356
1356
  width: ${s.sp8};
1357
1357
  `,zs=a.div`
@@ -1363,7 +1363,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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,P]=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),P(!0)},onMouseLeave:()=>{K(!1),C.length===0&&P(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Fs,{children:t.jsx(Nt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Ft,{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(Ps,{}),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`
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,Q=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:Q,onChange:Z,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"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%;
@@ -1415,19 +1415,19 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1415
1415
  `,qs=a.div`
1416
1416
  display: flex;
1417
1417
  cursor: pointer;
1418
- `,Js=a.div`
1418
+ `,Qs=a.div`
1419
1419
  display: flex;
1420
1420
  cursor: pointer;
1421
1421
  justify-content: center;
1422
1422
  align-items: center;
1423
1423
  color: ${e=>e.theme.colors.primary};
1424
- `,Qs=a.div`
1424
+ `,Js=a.div`
1425
1425
  display: flex;
1426
1426
  flex-direction: row;
1427
1427
  z-index: 1;
1428
1428
  background-color: ${e=>e.theme.colors.grey4};
1429
1429
  padding-left: ${s.sp8};
1430
- ${({isSticky:e})=>e?F`
1430
+ ${({isSticky:e})=>e?P`
1431
1431
  top: ${s.sp0};
1432
1432
  left: ${s.sp0};
1433
1433
  display: flex;
@@ -1466,7 +1466,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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:Fe(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`
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(Js,{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(Qs,{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;
@@ -1585,7 +1585,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1585
1585
  width: ${j.titleWidth};
1586
1586
  max-width: ${j.titleWidth};
1587
1587
  background-color: ${e=>e.bgColor?.hex()};
1588
- ${({isSticky:e})=>e?F`
1588
+ ${({isSticky:e})=>e?P`
1589
1589
  position: -webkit-sticky;
1590
1590
  position: sticky;
1591
1591
  top: ${s.sp0};
@@ -1618,7 +1618,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1618
1618
  justify-content: flex-end;
1619
1619
  text-align: center;
1620
1620
  align-items: center;
1621
- `;const Cd=a(Po)`
1621
+ `;const Cd=a(Fo)`
1622
1622
  width: 12px;
1623
1623
  height: 12px;
1624
1624
  `;a.div`
@@ -1704,7 +1704,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1704
1704
  text-align: center;
1705
1705
  align-items: center;
1706
1706
  justify-content: center;
1707
- `,Fd=a(Le)`
1707
+ `,Pd=a(Le)`
1708
1708
  display: flex;
1709
1709
  border-radius: ${s.sp1};
1710
1710
  width: ${s.sp4};
@@ -1713,7 +1713,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1713
1713
  align-items: center;
1714
1714
  justify-content: center;
1715
1715
  margin-right: ${s.sp4};
1716
- `,Pd=a(Le)`
1716
+ `,Fd=a(Le)`
1717
1717
  display: flex;
1718
1718
  border-radius: 100px;
1719
1719
  width: 18px;
@@ -1721,14 +1721,14 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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,P]=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:()=>{P(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{P(!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(Ft,{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(Pt,{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(Pd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(I.Fragment,{children:t.jsx(Fd,{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=Pe(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),Q=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:Q},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=Qi("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;
1728
1728
  min-width: 100%;
1729
1729
  flex-direction: column;
1730
1730
  background-color: ${e=>e.bgColor?.hex()};
1731
- `,Jd=a.div`
1731
+ `,Qd=a.div`
1732
1732
  user-select: none;
1733
1733
  display: flex;
1734
1734
  flex: 1 1 auto;
@@ -1737,7 +1737,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1737
1737
  align-items: center;
1738
1738
  height: ${e=>e.height}px;
1739
1739
  margin-left: ${e=>e.level*20}px;
1740
- `,Qd=a.div`
1740
+ `,Jd=a.div`
1741
1741
  display: flex;
1742
1742
  flex-direction: row;
1743
1743
  align-items: center;
@@ -1767,7 +1767,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1767
1767
  color: ${e=>e.theme.colors.primary};
1768
1768
  width: ${s.sp3};
1769
1769
  height: ${s.sp3};
1770
- `;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Jd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Nt,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Ft,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Qd,{children:t.jsxs(Zd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
1770
+ `;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Nt,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Jd,{children:t.jsxs(Zd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
1771
1771
  user-select: none;
1772
1772
  display: flex;
1773
1773
  flex: 1 1 auto;
@@ -1819,7 +1819,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1819
1819
  min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1820
1820
  color: ${e=>e.theme.colors.primary};
1821
1821
  background-color: ${e=>e.bgColor?.hex()};
1822
- ${({isSticky:e})=>e?F`
1822
+ ${({isSticky:e})=>e?P`
1823
1823
  position: -webkit-sticky;
1824
1824
  position: sticky;
1825
1825
  top: ${s.sp0};
@@ -1875,7 +1875,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1875
1875
  min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1876
1876
  color: ${e=>e.theme.colors.primary};
1877
1877
  background-color: ${e=>e.bgColor?.hex()};
1878
- ${({isSticky:e})=>e?F`
1878
+ ${({isSticky:e})=>e?P`
1879
1879
  position: -webkit-sticky;
1880
1880
  position: sticky;
1881
1881
  top: ${s.sp0};
@@ -1924,7 +1924,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1924
1924
  height: ${s.sp3};
1925
1925
  width: ${s.sp3};
1926
1926
  margin-top: ${s.sp1};
1927
- `;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Fe(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
1927
+ `;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Pe(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
1928
1928
  user-select: none;
1929
1929
  display: flex;
1930
1930
  flex: 1 1 auto;
@@ -1968,7 +1968,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
1968
1968
  flex-direction: row;
1969
1969
  z-index: 1;
1970
1970
  background-color: ${e=>e.bgColor?.hex()};
1971
- ${({isSticky:e})=>e?F`
1971
+ ${({isSticky:e})=>e?P`
1972
1972
  position: -webkit-sticky;
1973
1973
  position: sticky;
1974
1974
  top: ${s.sp0};
@@ -2040,17 +2040,17 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2040
2040
  height: 12px;
2041
2041
  cursor: pointer;
2042
2042
  color: ${e=>e.theme.colors.hero};
2043
- `,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(vh,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({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(ro,{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(no,{isClickable:!1,children:t.jsx(io,{children:Fe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Ih=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Nh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(_h,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Ih,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Fh=a.div`
2043
+ `,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(vh,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({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(ro,{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(no,{isClickable:!1,children:t.jsx(io,{children:Pe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Ih=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Nh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(_h,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Ih,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Ph=a.div`
2044
2044
  display: flex;
2045
2045
  flex: 1 1 auto;
2046
2046
  max-height: 1px;
2047
2047
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
2048
- `,Ph=a.div`
2048
+ `,Fh=a.div`
2049
2049
  display: flex;
2050
2050
  flex: 1 1 auto;
2051
2051
  max-height: 1px;
2052
2052
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
2053
- `;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Fh,{isScrolling:n});case"end_row_separator":return t.jsx(Ph,{isScrolling:n})}}const zh=a.div`
2053
+ `;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ph,{isScrolling:n});case"end_row_separator":return t.jsx(Fh,{isScrolling:n})}}const zh=a.div`
2054
2054
  display: flex;
2055
2055
  flex: 1 1 auto;
2056
2056
  width: fit-content;
@@ -2092,7 +2092,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2092
2092
  display: flex;
2093
2093
  flex-direction: row;
2094
2094
  background-color: ${e=>e.bgColor?.hex()};
2095
- ${({isSticky:e})=>e?F`
2095
+ ${({isSticky:e})=>e?P`
2096
2096
  position: -webkit-sticky;
2097
2097
  position: sticky;
2098
2098
  top: ${s.sp0};
@@ -2138,12 +2138,12 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2138
2138
  &:hover {
2139
2139
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2140
2140
  }
2141
- `,Jh=a.div`
2141
+ `,Qh=a.div`
2142
2142
  display: flex;
2143
2143
  flex: 1 0 auto;
2144
2144
  flex-direction: row;
2145
2145
  justify-content: flex-end;
2146
- `,Qh=a.div`
2146
+ `,Jh=a.div`
2147
2147
  display: flex;
2148
2148
  flex-direction: row;
2149
2149
  justify-content: flex-start;
@@ -2163,7 +2163,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2163
2163
  display: flex;
2164
2164
  flex-direction: row;
2165
2165
  background-color: ${e=>e.bgColor?.hex()};
2166
- ${({isSticky:e})=>e?F`
2166
+ ${({isSticky:e})=>e?P`
2167
2167
  position: -webkit-sticky;
2168
2168
  position: sticky;
2169
2169
  top: ${s.sp0};
@@ -2239,7 +2239,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2239
2239
  `,lu=a(_)`
2240
2240
  color: ${e=>e.theme.colors.hero};
2241
2241
  display: none;
2242
- `,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Qh,{children:t.jsx(Zh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Qn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(Pt,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(ve,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Xe,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(ve,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(ve,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Jh,{children:d.map((W,P)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},P))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Pe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ne(u));return t.jsx(Nh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Pe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(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 bu(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 Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],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 ku(e,n){return e.length>0?e:Jn(Array(n),null)}const ju=a.div`
2242
+ `,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Jh,{children:t.jsx(Zh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Jn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(ve,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Xe,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(ve,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(ve,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((W,F)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Fe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ne(u));return t.jsx(Nh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(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 bu(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 Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],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 ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
2243
2243
  display: flex;
2244
2244
  flex: 1 1 auto;
2245
2245
  width: fit-content;
@@ -2287,7 +2287,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2287
2287
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2288
2288
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2289
2289
  background-color: ${e=>e.bgColor?.hex()};
2290
- ${({isSticky:e})=>e?F`
2290
+ ${({isSticky:e})=>e?P`
2291
2291
  position: -webkit-sticky;
2292
2292
  position: sticky;
2293
2293
  top: ${s.sp0};
@@ -2308,7 +2308,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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",P=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:P},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:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(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,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):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;
@@ -2342,12 +2342,12 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2342
2342
  text-align: right;
2343
2343
  margin-left: ${k.balanceLeftMargin};
2344
2344
  color: ${e=>e.theme.colors.primary};
2345
- `,Fu=a(po)`
2345
+ `,Pu=a(po)`
2346
2346
  color: ${e=>e.theme.colors.hero};
2347
2347
  &:hover {
2348
2348
  color: inherit;
2349
2349
  }
2350
- `,Pu=a.div`
2350
+ `,Fu=a.div`
2351
2351
  display: flex;
2352
2352
  flex-direction: row;
2353
2353
  flex-shrink: 2;
@@ -2356,7 +2356,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2356
2356
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2357
2357
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2358
2358
  background-color: ${e=>e.bgColor?.hex()};
2359
- ${({isSticky:e})=>e?F`
2359
+ ${({isSticky:e})=>e?P`
2360
2360
  position: -webkit-sticky;
2361
2361
  position: sticky;
2362
2362
  top: ${s.sp0};
@@ -2377,7 +2377,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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?Fu: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,[P,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(Pu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:P&&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`
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:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(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;
@@ -2421,7 +2421,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2421
2421
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2422
2422
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2423
2423
  background-color: ${e=>e.bgColor?.hex()};
2424
- ${({isSticky:e})=>e?F`
2424
+ ${({isSticky:e})=>e?P`
2425
2425
  position: -webkit-sticky;
2426
2426
  position: sticky;
2427
2427
  top: ${s.sp0};
@@ -2441,7 +2441,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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(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`
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:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(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(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({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 Ju=a.div`
2445
2445
  display: flex;
2446
2446
  flex: 1 1 auto;
2447
2447
  width: fit-content;
@@ -2480,7 +2480,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2480
2480
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2481
2481
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2482
2482
  background-color: ${e=>e.bgColor?.hex()};
2483
- ${({isSticky:e})=>e?F`
2483
+ ${({isSticky:e})=>e?P`
2484
2484
  position: -webkit-sticky;
2485
2485
  position: sticky;
2486
2486
  top: ${s.sp0};
@@ -2510,7 +2510,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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,P=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:P},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`
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:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:J(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),Q=b.classAncestorMetadata??[];return t.jsxs(Ju,{"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:Q,depth:S}),t.jsx(rg,{metadata:Q[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;
@@ -2534,7 +2534,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2534
2534
  display: flex;
2535
2535
  flex-direction: row;
2536
2536
  justify-content: flex-start;
2537
- `,Je=a(_)`
2537
+ `,Qe=a(_)`
2538
2538
  user-select: none;
2539
2539
  max-width: ${k.balanceWidth};
2540
2540
  min-width: ${k.balanceWidth};
@@ -2549,7 +2549,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2549
2549
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2550
2550
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2551
2551
  background-color: ${e=>e.bgColor?.hex()};
2552
- ${({isSticky:e})=>e?F`
2552
+ ${({isSticky:e})=>e?P`
2553
2553
  position: -webkit-sticky;
2554
2554
  position: sticky;
2555
2555
  top: ${s.sp0};
@@ -2565,7 +2565,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2565
2565
  text-overflow: ellipsis;
2566
2566
  text-align: left;
2567
2567
  margin-left: ${s.sp2};
2568
- `,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Je,{style:{color:i},children:q(n)}):t.jsx(Je,{style:{color:i},children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Je,{style:{color:i},children:Q(n)}),t.jsx(Je,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=I.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,P)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},P))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
2568
+ `,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Qe,{style:{color:i},children:q(n)}):t.jsx(Qe,{style:{color:i},children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:i},children:J(n)}),t.jsx(Qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=I.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,F)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
2569
2569
  display: flex;
2570
2570
  flex: 1 1 auto;
2571
2571
  width: fit-content;
@@ -2589,7 +2589,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2589
2589
  display: flex;
2590
2590
  flex-direction: row;
2591
2591
  justify-content: flex-start;
2592
- `,Qe=a(_)`
2592
+ `,Je=a(_)`
2593
2593
  user-select: none;
2594
2594
  min-width: ${k.balanceWidth};
2595
2595
  max-width: ${k.balanceWidth};
@@ -2617,7 +2617,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2617
2617
  &:hover {
2618
2618
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2619
2619
  }
2620
- ${({isSticky:e})=>e?F`
2620
+ ${({isSticky:e})=>e?P`
2621
2621
  position: -webkit-sticky;
2622
2622
  position: sticky;
2623
2623
  top: ${s.sp0};
@@ -2628,7 +2628,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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,P=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:P,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:P,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):J(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(Je,{"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(Je,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Je,{"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((Q,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,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;
@@ -2673,7 +2673,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2673
2673
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2674
2674
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2675
2675
  background-color: ${e=>e.bgColor?.hex()};
2676
- ${({isSticky:e})=>e?F`
2676
+ ${({isSticky:e})=>e?P`
2677
2677
  position: -webkit-sticky;
2678
2678
  position: sticky;
2679
2679
  top: ${s.sp0};
@@ -2690,7 +2690,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2690
2690
  margin-left: ${e=>vg[e.depth]}px;
2691
2691
  color: ${e=>e.theme.colors.primary};
2692
2692
  width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
2693
- `,Ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ng({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ig,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Fg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Fg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Pg=a.div`
2693
+ `,Ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ng({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ig,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Pg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Pg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Fg=a.div`
2694
2694
  user-select: none;
2695
2695
  display: flex;
2696
2696
  flex: 1 1 auto;
@@ -2737,7 +2737,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2737
2737
  color: ${e=>e.theme.colors.grey5};
2738
2738
  background-color: ${e=>e.bgColor?.hex()};
2739
2739
  border: 1px solid ${e=>e.bgColor?.hex()};
2740
- ${({isSticky:e})=>e?F`
2740
+ ${({isSticky:e})=>e?P`
2741
2741
  position: -webkit-sticky;
2742
2742
  position: sticky;
2743
2743
  top: ${s.sp0};
@@ -2787,7 +2787,7 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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:Fe(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:Fe(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(Pg,{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=Pe(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`
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}),Qg=(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(Jg,{...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,Jg=({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 Qg(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?Qr(n):Gt(e)===!0||Ie(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Et(e)?Jr(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,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR 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:P}){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:P})},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),[Q,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(Q+1))},[Q,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})},Q)})})}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;
@@ -2841,4 +2841,4 @@ import{V as t,b4 as vo,ab as m,bO as pe,aP as U,dn as $o,o as s,p as X,aR as bn,
2841
2841
  }
2842
2842
  }
2843
2843
  }
2844
- `;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(vo,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,P,z)=>{P!=null&&z!=null&&c(P,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Fe as V,We as a,ot as l,Yc as n,on as r,sn as x};
2844
+ `;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(vo,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,F,z)=>{F!=null&&z!=null&&c(F,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Pe as V,We as a,ot as l,Yc as n,on as r,sn as x};