@zeniai/web-cockpit-ui 1.13.90-qa → 1.13.91-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/dist/assets/{ACHDetailsPage-ppaaVv4t-DerAWpBF.js → ACHDetailsPage---jqahtW-HkPM6iNK.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-brocrTLA-D-qOCG9N.js → AIPerformancePage-CqtdCyg8-Dj0j3-W5.js} +36 -36
  3. package/dist/assets/{AccountInfoPage-BkqXbGUJ-CPi6xrFM.js → AccountInfoPage-Bj1CYa-r-6hrIafHf.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-DOrQxiUF-eaKGkCbW.js → AccountInfoPageContent-qqbfRfuR-DLDodhYL.js} +20 -20
  5. package/dist/assets/{AccountReconDetailsDrawerPage-i6rVi1gY-JXbUROYY.js → AccountReconDetailsDrawerPage-B4UwcNN9-Crki_oBL.js} +18 -18
  6. package/dist/assets/AccountRow-CPX-627p-B4ZaO0oz.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-BvFE5A3N-ObKkidII.js → AccountsPromoCardStack-DJRAw09x-KYhdIp34.js} +26 -26
  8. package/dist/assets/{AddAddressForCardDrawer-BV2BSzaD-BdS_xiVp.js → AddAddressForCardDrawer-C16ksTIf-_DtEs9T5.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-DTEIuDRq-B2C8ipcJ.js → AddToWalletPage-CDP1oPrv-D581H1KG.js} +18 -18
  10. package/dist/assets/{AgingReportsPage-B8iVxaQX-BHVqW05k.js → AgingReportsPage-BE4plS7V-BI8-4bNE.js} +7 -7
  11. package/dist/assets/{AllUserItems-BepRyHp7-uJhUuJ3f.js → AllUserItems-hoI2_gnV-BVf131yZ.js} +8 -8
  12. package/dist/assets/{ApAgingDetailPage-DOObMUqB-PedjJRg4.js → ApAgingDetailPage-Lxprtz8c-v17bsYA_.js} +3 -3
  13. package/dist/assets/{AppBasePage-Ob8EkU54-B3S_sDum.js → AppBasePage-DNOkJf4q-CMKV9Zw9.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-CNsKktFP-ClFlv3eL.js → AppDrawerContent-DG2Jr298-DulxRmba.js} +10 -10
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bn7LOelK-BW8_3MdX.js → ApprovalRulesSettingsPage-DnKXln0A-Dwcdgf1j.js} +6 -6
  16. package/dist/assets/{ArAgingChart-C0hTtEmV-VmVxz3SE.js → ArAgingChart-BRcy3--o-CqONheoM.js} +7 -7
  17. package/dist/assets/{ArAgingDetailPage-C_E_xPwf-CIbWz25g.js → ArAgingDetailPage-Djsocm6M-DY45zDqC.js} +3 -3
  18. package/dist/assets/{AttachmentView-CATl3tNf-bIcN6zuK.js → AttachmentView-C3AzH7cN-Csi7tXqw.js} +8 -8
  19. package/dist/assets/{BankAccountSection-VSbZyxoY-DFVEfVO4.js → BankAccountSection-6zosSfPV-CL3CT6a1.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-a39s142r-B8eviNRA.js → BankAccountWarningSection-CWeN3me0-QfeSw0RL.js} +6 -6
  21. package/dist/assets/{BankConnectionsSettingsPage-CBavGNdc-UjtlbwmQ.js → BankConnectionsSettingsPage-C6e0pgD4-B1leagLf.js} +22 -22
  22. package/dist/assets/{BillDetailPage-uMG3JJPb-DAfvXj70.js → BillDetailPage-DyIokQbf-BaKgZbi4.js} +9 -9
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-Bmrg1Wxh-2SsyPJ6y.js → BillPayApprovalRuleDetailPage-BOhQfwEj-CAExLIKt.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-BN21qPTb-DE8Fo-0J.js → BillPayApprovalRulesPage-CSua3b4v-Cw1EavO3.js} +7 -7
  25. package/dist/assets/{BillPayPromoPage-DoP2oC8W-DaX8TRVv.js → BillPayPromoPage-CtenNypw-CjfButz0.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-o-V-9aI5-PJo8w9bW.js → BillPaySetUpPage-CAnvQ_-Q-DJBEmdYy.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CX-rbxzB-rBFZmJ_t.js → BillingSettingsPage-CjSAhEFl-tgXS9QLV.js} +4 -4
  28. package/dist/assets/{BillsBulkReviewDrawerPage-_qgURJjv-UExbn0pb.js → BillsBulkReviewDrawerPage-B62rj2kN-BUJLVUNP.js} +1 -1
  29. package/dist/assets/{BoxItem-CHPfWPEF-D1R-06zc.js → BoxItem-Cqmd_7h4-S5g5H_Jr.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-DT24fycp-CWdqg83h.js +140 -0
  31. package/dist/assets/{CardNumberSubText-dxYfM6ph-DEOIkYXa.js → CardNumberSubText-DszoXtgg-ySKglJLN.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-BfTC3IBm-bb4FBcKr.js → CashbackDetailPage-DAwARNZD-3Wx6cNnB.js} +13 -13
  33. package/dist/assets/{ChargeCardDetailPage-npqfreRG-6-EfyUyz.js → ChargeCardDetailPage-BzbR-Z63-7lzvBesN.js} +40 -40
  34. package/dist/assets/{ChargeCardListPage-Dbx1ymB9-DRDAjXYS.js → ChargeCardListPage-DSOp7sFg-CW3N5mrs.js} +10 -10
  35. package/dist/assets/{ChargeCardListTable-qk9tQ6Kb-lo8c0x-v.js → ChargeCardListTable-BE4it4le-6GBRyFGt.js} +10 -10
  36. package/dist/assets/{ChargeCardPromoPage-CsItH2IC-BRai09H4.js → ChargeCardPromoPage-DOibcN9n-8P5nzLqn.js} +4 -4
  37. package/dist/assets/{ChargeCardSetupPage-D5LWY3-P-BFmdbREo.js → ChargeCardSetupPage-Dm_N5oDM-BxIAhVV2.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-vYbnt2WJ-CviaTt41.js → ChargeCardStatementsPage-Dhqs5CF4-Be58aAaq.js} +2 -2
  39. package/dist/assets/{ChargeCardUtils-k5Cmi_bM-uT1V7gQT.js → ChargeCardUtils-oF0M6Gmc-CWcylJdd.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DQz9r9Pp-DwtAFMH1.js → ChaseOverlay-DPgGIuyV-JigHbzQk.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DaaWfNin-BVXQpqWr.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-Dp1985is-CGhJR3X0.js → CollapsableReportTable-DMr2UDgH-cuAz2CYU.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-CGewbsKm-0xbi1fnR.js → CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js} +19 -19
  44. package/dist/assets/{CompanyPassportCard-Dp3a8GH8-B4TBGrw7.js → CompanyPassportCard-CHF83hfN-BGYNkzga.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CS1LPj5f-pnjyNGQL.js → CompanyPassportPage-C5W3KcDY-Bzodetvj.js} +29 -29
  46. package/dist/assets/CompleteProfile-MP9AF8Iu-CvhmGgEz.js +36 -0
  47. package/dist/assets/{ConfettiBurst-DX1P5VT_-CsNzn8F8.js → ConfettiBurst-DVT9EpwF-DHA9TDKH.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BL1BXGvy-CsdFpWXr.js → CreateOrEditVendorPage-DVbYQaWM-DGXxCdMQ.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D6-R3DiA-DUyMEAO8.js → CreditCardPaymentDrawerPage-D2qT7vsE-Bf1M1_AV.js} +10 -10
  50. package/dist/assets/{CreditCardPaymentPlgSection-YcsIIUkG-DrIb0IFd.js → CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-CH65s5Fc-Dcp2BQTf.js → CurrencySelectField-ClhIJFVw-Cum1rEqk.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-DCHbvIb1-DK5c91dn.js → CustomerOnboardingActivationPage-D-Ihd-H0-BECSi6lI.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DO8DpQlg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cz40bZgg-CWu3HzYj.js → CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DrbkKOBx-B_LwgpIq.js → CustomerOnboardingNoStepsPage-B9ts3Tla-CfVcbZOI.js} +4 -4
  56. package/dist/assets/CustomerOnboardingPage-DJbFeXms-BffeJFQv.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DyGs61vw-qL5DHYs8.js → CustomerOnboardingProductSuitePage-iSJtAhvu-CITklSrx.js} +5 -5
  58. package/dist/assets/{Dashboard-beLswUHx-B_MalOUp.js → Dashboard-SKeHZ5QY-pKKhGZuT.js} +38 -38
  59. package/dist/assets/DashboardReportPage-3X6wpJL2-lEFYnnKZ.js +349 -0
  60. package/dist/assets/{DepositAccTransactionItem-CfAjG3HH-D05hSl8p.js → DepositAccTransactionItem-DJNio75H-BszNXL3v.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-Cj1smNoP-BSifWrOr.js → DepositAccTransactionListPage-DTIjlF2l-BqgMCmPb.js} +3 -3
  62. package/dist/assets/{DocumentSecurityBanner-BRFFDueV-Cy6kVOtz.js → DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-D-qwPVDs--Pww9UWD.js +21 -0
  64. package/dist/assets/{DownloadOverlay-Ly2ZesqA-CgW2MbtP.js → DownloadOverlay-BLj0xso_-BlktwxlM.js} +1 -1
  65. package/dist/assets/{DrawerPage-BFIdjtOJ-CoQ0pur4.js → DrawerPage-CEetzMMx-BQrlKpot.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-BPHt33f5-Bk3dHegk.js → EditPeoplePage-DDUuO0Nh-opJ_tpA8.js} +8 -8
  67. package/dist/assets/{EditReimbursementDetailPage-DJ_qNQbh-CHb-02Fa.js → EditReimbursementDetailPage-CT8mqYr5-RAkBtvUB.js} +24 -24
  68. package/dist/assets/{EntityDetailPage-DZ9vXZci-BKxX4N_B.js → EntityDetailPage-DMh6o0bo-D9tSJvlK.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-kCA6OJs0-BxZntEIq.js → EntitySummarySection-tK_X4uAf-DnZqgJgW.js} +9 -9
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B9K2qPQi-CLbWYQAI.js → ExpenseAutomationOverviewPage-CLUiYjKg-Cnf2er5n.js} +18 -18
  71. package/dist/assets/{ExpenseAutomationPage-LoGHiJzr-f6rmnsys.js → ExpenseAutomationPage-C9biTgak-CwmQJIGr.js} +82 -82
  72. package/dist/assets/{ExpressPayPage-B12NaLXN-CCtq8Yhl.js → ExpressPayPage-DpAixmcQ-DHNO4VFc.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-D9_aRmPj-kLENX2WT.js → FeaturePreviewPage-BohUqOFz-CnIenXNU.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BL8sM4vS-NJEQh7fF.js → FollowStepsSection-BAUXUzTr-DcO_IUEM.js} +10 -10
  75. package/dist/assets/{GlobalReviewListPage-DONc_BXP-BqymyO9D.js → GlobalReviewListPage-BxYHNkut-De1zroLC.js} +8 -8
  76. package/dist/assets/{HelpButton-khTPylkl-CC4TQ-Mh.js → HelpButton-8AQIbLQM-Dxn71Y7_.js} +2 -2
  77. package/dist/assets/{InformationCardStack-BtIMGsaQ-DAEXYJ5W.js → InformationCardStack-76GlZ-Bq-CtLoCld8.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-lzduh7aO-aPmBS56j.js → InsightsCardStack-CvOFi2Uu-JAhaDMUB.js} +9 -9
  79. package/dist/assets/{InsightsSection-q1QuO6Z4-BTPE3Xuw.js → InsightsSection-DyF8JZIR-yy37hbXV.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-CpnXcxlz-BHzrWFpH.js → IntegrationsSettingsPage-mys0-i40-D_Td3Eck.js} +4 -4
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BXBsK560-Drhj4I3h.js → InternationalWireSwiftDetailsPage-km4qEcXH-BDq6b8VU.js} +7 -7
  82. package/dist/assets/{InternationalWireVerificationPage-BrnMNFx7-CYsL9FjR.js → InternationalWireVerificationPage-DauhGM3c-CQuc_5ZL.js} +5 -5
  83. package/dist/assets/{InviteFormPage-DQTEQazA-D_TlAyX6.js → InviteFormPage-FSL8fEXT-Dygrs-_-.js} +16 -16
  84. package/dist/assets/{InvitePageListView-C7CaDCYN-DgDyQbel.js → InvitePageListView-zaQ1xEHJ-BmXz06Jr.js} +27 -27
  85. package/dist/assets/{InvitePeoplePage-Ca0ZnNhV-DhNhdRht.js → InvitePeoplePage-BNB36i8Y-COHEYzwz.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-Cm7WlMIS-CgyB8ePg.js → InvoiceUploadSection-FXrB92T6-JqJ7zAlH.js} +6 -6
  87. package/dist/assets/{IssueChargeCardPage-B7w3Xky1-CKvMuV4K.js → IssueChargeCardPage-D3cUp2DE-DFSG2B0F.js} +21 -21
  88. package/dist/assets/{LabeledAddressValue-B5Yv4nig-CNsG-WU7.js → LabeledAddressValue-BF6r800B-CeESX1Hz.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BODlYe8J-CiIDFGvo.js → LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-BBrHodlx-DZSgDuPY.js → LabeledControlledCheckBoxField-B2ATKJBH-CXyWx4Ub.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DBovHkMc-upCPJRUw.js → LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DORRl3DI-WSVu_B_9.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-Tiw-2EM1.js +59 -0
  94. package/dist/assets/{LabeledText-D0aPaE6r-CDASXomo.js → LabeledText-C34I_iEo-DpYgVuJS.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--BtzlqXjH.js → LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9zCwLzE.js} +10 -10
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CcfvYWTB-DW_5XewE.js → LabeledZeniRolesDropDownField-Caj0_1zM-DksZdels.js} +13 -13
  97. package/dist/assets/{LinkJETransactionPage-w2poqqTD-CVvitekI.js → LinkJETransactionPage-DLmZGscZ-DAJUM85q.js} +12 -12
  98. package/dist/assets/{LowBalancePopup-BpFvPcb8-CbbQEMsW.js → LowBalancePopup-ll1SesgY-BWe295aL.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DUyr5VX8-DMGL4iMC.js → MagicLinkACHDetailsPage-DXzjYrdU-DXTf7zdI.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTA58UoF-Bkm4wS65.js → MagicLinkDomesticWireDetailsPage-CUwp46Wf-CEU-wofA.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DDQqyw69-BZXPgm29.js → MagicLinkInternationalWireDetailsPage-B_h0EHoZ-5KHyZ3zZ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-CKKAWryZ-BM1EXsJU.js → MagicLinkSuccessPage-BX4E-l5M-DUEIbM10.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CvW_f4xF-CqZNaUJA.js → MagicLinkTitleSection-DHe9TfVe-xOZGBQNN.js} +2 -2
  104. package/dist/assets/{MailingDetailsSection-Di5KwEqu-B9mhlAae.js → MailingDetailsSection-D8CZart4-D1oBjzV1.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-6yyRBLYC-Bbqtv452.js → MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js} +3 -3
  106. package/dist/assets/{Menu-BOh_KLZu-CFhi0SIh.js → Menu-C9u3eDJk-Dna4rH8W.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BBQ0YN9M-DqTc9oHU.js → MyBankConnectionsSettingsPage-DVp3h4c0-Cn5_bOe_.js} +11 -11
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DcXCxGj2-C4pJ48Rp.js → MyPendingActivationChargeCardListPage-BTk8mY7B-BbdmJXam.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D-lTTFuP-hNTZ9JYo.js → MyProfileSettingsPage-BdcDAwKZ-DhDLZRJB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-CNBOk06R-BZD_yWn9.js → NavBarWithPicker-DbSWvh0o-1EJ8HziX.js} +4 -4
  111. package/dist/assets/{NavigationArrow-B15b66TT-BxpDaopE.js → NavigationArrow-BP8cU19I-DuPgzuQR.js} +1 -1
  112. package/dist/assets/{NavigationDots-5fxvl-4e-xo_TDt3y.js → NavigationDots-nvOimTil-Do5DUslv.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BeP4W8rj-BBX9UZWo.js → NewGlobalMerchantPage-D-imjD0M-pXdB0gKF.js} +6 -6
  114. package/dist/assets/{NoDataChart-edFKx0zh-BcXK0tqt.js → NoDataChart-VE4W-RUu-BjJTQpdm.js} +1 -1
  115. package/dist/assets/{NoDataTable-41nH5trW-pzm1rHwP.js → NoDataTable-d0_62BR0-vyxhk2_b.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CRVGi6Xn-b9DBQuQL.js → NotFoundPage-BydQGX11-BGoiJNRP.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-CiVAtoGY-B2aR003-.js → NotificationSettingsPage-BIzaZFzy-BGkCXx1m.js} +6 -6
  118. package/dist/assets/NotificationsListConfig-DVBOQJZq-BcXyCFD3.js +1 -0
  119. package/dist/assets/{NotificationsPage-DuHUL5V8-l7cXXilr.js → NotificationsPage-BdI4E6uL-DkzIMoYu.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-D611nXIC-DhuOhbiX.js → OpExByVendorPage-Dm90CRYi-fVB-9LNX.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-BL1aeWOM.js → OverlayContainerPage-nhe7xtoR-BxI5uHKy.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cqab0euB-BjlrYFkz.js → PandLWithForecastPage-DhbFHH25-DsvGD_Sy.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cvn1adQb-Y7cu298L.js → PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js} +6 -6
  124. package/dist/assets/{PeoplePage-MCCZAx4z-BY3UpTqg.js → PeoplePage-BACu55RO-BN0ZZ-UI.js} +24 -24
  125. package/dist/assets/{PortfolioAllocationFormPage-Coa0Y4wN-Biro25bf.js → PortfolioAllocationFormPage-Cjz_E3BK-BKc2XOmG.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-C9a0p99e-BupBBmbV.js → PortfolioDetails-CS2st-Mx-B7UFy1Ls.js} +8 -8
  127. package/dist/assets/{ProductsCarousel-B0fHKTa_-DRwb_zg1.js → ProductsCarousel-TB4uKZbg-BDTdHFcB.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-BuCQJuXH-jJQ9UKvZ.js → PromoBaseCards-BMPp9RNQ-B5wN89Pm.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-D-vB9dbo-BMExMhX5.js → QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js} +9 -9
  130. package/dist/assets/{QBOSetupSection-CfficE5p-B9jrvkTN.js → QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js} +7 -7
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cg_pVsAh-DD6eBHFP.js → ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BX1qPBal.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-Dg1b0lJP-BNSHjAMn.js → ReimbursementApprovalRulesPage-DJlNT4Ov-DKT5YJKy.js} +20 -20
  133. package/dist/assets/ReimbursementDetailPage-BQiu7Gts-DqYEtmnq.js +314 -0
  134. package/dist/assets/{ReimbursementPromoPage-MQpz5nNE-B2b8Se26.js → ReimbursementPromoPage-ppaPJby5-CiDmuDvG.js} +16 -16
  135. package/dist/assets/{ReimbursementSetUpPage-BRjWHns_-hYFlsZc3.js → ReimbursementSetUpPage-B6mZrzQB-38calwmF.js} +8 -8
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-wPNRkXt8-C2MKAuWk.js → ReimbursementsBulkReviewDrawerPage-DS55QesG-DWNEdEIB.js} +1 -1
  137. package/dist/assets/{ReloadCard-D5woGDxx-bUwk980b.js → ReloadCard-DDDYlCsI-BiE6_qfW.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-Bss4AtF1-D_wRO_1z.js +133 -0
  139. package/dist/assets/ReportsPage-C-g9588h-XLIvq5EO.js +120 -0
  140. package/dist/assets/{RevenueChart-CS0JmijO-Cw-uHSTf.js → RevenueChart-DPkxzWaE-ClY8SeJE.js} +25 -25
  141. package/dist/assets/{ReviewDetailsPage-C7RbpKwU-D2J8IvQH.js → ReviewDetailsPage-CyF2YP3t-B_CfpE0G.js} +14 -14
  142. package/dist/assets/{ReviewOverlay-BwgzcM9d-BIZud1RE.js → ReviewOverlay-AoSgYufX-BCA64ah8.js} +6 -6
  143. package/dist/assets/{RoleWithToolTip-DkeT6zjW-DB4n5m2x.js → RoleWithToolTip-aoWU03so-Bag-xDLs.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BzZkVg7T-rhB-3onC.js → ScheduleDetailsFixedAssetsPage-Bfj3vclV-biUqkJSS.js} +4 -4
  145. package/dist/assets/{ScheduleDetailsPage-DiXwmlk8-DlOKlput.js → ScheduleDetailsPage-B30aUjKr-VuYOr4oZ.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-CSxFNhoR-B0UeYTos.js → ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js} +22 -22
  147. package/dist/assets/{ScreenRoutes-4bmbtkw-.js → ScreenRoutes-DUx3gCGl.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-CdUpAzlt-C1MgYcT-.js → SetUpAccountSection-nul4pyeP-CLCXvV9l.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection-D4FafmO5-JKsfeRPT.js → SetUpDefaultSection-ByW3h9zl-9i3uOw78.js} +8 -8
  150. package/dist/assets/{SignIn-CAmRcuqx-Dg-rTZ6q.js → SignIn-R1Rsh38G-8L0Hp_zM.js} +18 -18
  151. package/dist/assets/{SignInScreen-DAZJjFZ6.js → SignInScreen-BE18aJB0.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DdpJprAd-B10ZaJRb.js → SpendManagementListViewPage-BqOQ7NY_-DhnClYVW.js} +4 -4
  153. package/dist/assets/{SpendManagementPerTabPage-D2Ri2q6S-BMv0UU_O.js → SpendManagementPerTabPage--2EC1Oz4-DclxNVvC.js} +36 -36
  154. package/dist/assets/{SpendManagementSection-CisJALAC-cZKA8cZE.js → SpendManagementSection-COMVry1E-CYzctw4v.js} +11 -11
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DcJhhfdt-AlupPqQd.js → SpendMgmtSetupAccountSection-fV4qxxEy-ExRAZ_sL.js} +8 -8
  156. package/dist/assets/{StatementItem-BOq_DDMZ-CY3Qpt1a.js → StatementItem-BksIBztP-GeqTXxSG.js} +5 -5
  157. package/dist/assets/{StatementsPage-C9WOCLSj-B-U-sZOJ.js → StatementsPage-DnAoeqze-BOeXA5KM.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-CofdCR_K-BkGUOxFV.js → StatusSwitcher-b1A9RnRP-B052EzJ9.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-BPVG5BHS-DY3CAvRO.js → SubTabSwitcher-CgJW4ZXd-DlWjeTn_.js} +1 -1
  160. package/dist/assets/{SummaryCard-D-me4TrL-3xZv8xrR.js → SummaryCard-sEKhcIH5-DRp31G9t.js} +1 -1
  161. package/dist/assets/TaskManagementPage-z5uvcy81-CPykjrgv.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-BK7gGqaa-d24Db5VO.js → TimeRangeSwitcher-DQ-u6pKk-DC1xB5lv.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-SD5_8TCp-DrzKb54r.js → TimeframeSwitcher-B0yxn0SJ-CwNpTd2S.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-CLuOSbn2.js +31 -0
  165. package/dist/assets/{TopExCard-CDgcQKGp-Bqp10Sn-.js → TopExCard-CTjfWfCk-CAtjOAda.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-CXiEe14r-DVBrKuWG.js → TopExDetailPage-CdpvcVME-J1pxGIiS.js} +6 -6
  167. package/dist/assets/{TransactionDetailPage-IJyZF-Z_-C-Z95BQG.js → TransactionDetailPage-DdF9FS4b-aUNjP2MS.js} +46 -46
  168. package/dist/assets/{TransactionList-C34ivmk5-C5mBiYt3.js → TransactionList-CHq3WONc-CDMTLkl_.js} +13 -13
  169. package/dist/assets/{TransactionListBig-qruiU0xy-tMMTuqzY.js → TransactionListBig-D-Gxd5n0-BYXDLjRx.js} +18 -18
  170. package/dist/assets/{TransactionListPage-C31U97xd-CRQaNpPy.js → TransactionListPage-DK9-YK_1-jSebPnQW.js} +5 -5
  171. package/dist/assets/{TransactionVendorDetailPage-DZsvH-GM-8MuJaqmu.js → TransactionVendorDetailPage-Cc9pTpTw-dOPSJTMD.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-DC5q2Zpv-CmGtL5lc.js → TransferDrawerPage-DoDTECI8-BFP-sFPo.js} +33 -33
  173. package/dist/assets/{TreasuryOverviewPage-DSBqawrH-DycEi82C.js → TreasuryOverviewPage-wlfReqPJ-Dd6DjTk6.js} +14 -14
  174. package/dist/assets/{TreasuryPromoPage-D6WSBxgD-BlvVAiRS.js → TreasuryPromoPage-C9WNRb2_-Bv2i8EfH.js} +8 -8
  175. package/dist/assets/{TreasurySetupPage-BgSq4D0a-ad83A_r3.js → TreasurySetupPage-CjV0cOq9-BmP_R4PT.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-Dj9RAujO-DWwk9wCn.js → TreasuryStatementsPage-DqOWNGB_-hAvO09t_.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-Dw6tL_j9-CkIAlhee.js → TreasuryTaxLetterPage-BWGHcQ-i-DCm4xllr.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-cBHznYnK-BXVAiiS6.js → TreasuryTransferOrReviewPage-CgL8K7N9-BrTZBU_c.js} +19 -19
  179. package/dist/assets/TrendChart-76tuu9Dr-DKqkCwBC.js +16 -0
  180. package/dist/assets/{TrendWithTransactions-BOGQK2Zt-DsTHQyvH.js → TrendWithTransactions-B_fJTS4m-B4jhKCz-.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Ci4VHOLB-BdOVs5yc.js → UncategorizedAccountsMappingPage-DpY1kK_K-CX5FrYpM.js} +7 -7
  182. package/dist/assets/{UnitIntegrationPage-DSMTzyKA-CoAUeDRa.js → UnitIntegrationPage-BTJI7fx3-B4TaSpvh.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CBpLz-gk-Cn-PxzO4.js → UploadAdditionalDocumentOverlay-BH3bRKoG-Cxr-sGAj.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-Be7OBE4e-Dw3MgVFY.js → Vendor2FAPopup-4-XtZDNS-BuVX3Yle.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-LvWgxsF7-CaN7hXyJ.js → VendorACHDetailsPage-B2knDl4H-czLYWWIH.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-C-qpa1GC-OT8_rieb.js → VendorDetailPage-w-tghGpI-CfkAuWGF.js} +17 -17
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Ckoq2I8V-sly11L4e.js → VendorDomesticWireDetailsPage-BXCCdTjh-Di1QWV1S.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-WZMwLILQ-Dvglnl8g.js → VendorFiling1099EditablePage-DGQO9Qqj-CEOM5YEV.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DNhp59d9-6Npfw6ZQ.js → VendorFirstReviewPage-Lblb6X1V-39fudz_L.js} +40 -40
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DuP916gU-CFYN39yL.js → VendorInternationalWireDetailsPage-Bi5RBKxI-CtyyMelR.js} +9 -9
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-CTfDKjHB.js → VendorInternationalWireSwiftDetailsPage-CBZmsXnL-B-d0u1XS.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-C4q6FPlB-Cdm8bQji.js → VendorsAccountsSection-JI0e3gKo-BI5thaS_.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-C162biV8-CyRcKAFE.js → WarningsDrawerPage-BQzUQ5-l-D1cPDLUy.js} +5 -5
  194. package/dist/assets/{ZeniAccountDetailPage-C3NnXuFp-hGf5hhXT.js → ZeniAccountDetailPage-DPJ4mWoO-D2fzjkqw.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-Cn7rYnlu-BZ6tC-rC.js → ZeniAccountListViewPage-iHMJ7FU7-UZUihbgS.js} +23 -23
  196. package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D07e9d9s.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-BGyyQP4l-8aRktQCO.js → ZeniAccountPromoPage-OxQ03DtJ-X6atYnaZ.js} +8 -8
  198. package/dist/assets/{ZeniAccountSetupPage-CIh0isMw-BpYj-zTN.js → ZeniAccountSetupPage-BahzDcmm-B-umC_Qa.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-B83zWEf0-CbbA3mi5.js → ZeniCopyright-Dpqdxu7f-CHOK6b2K.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CPg3o4xG-Cpl4hegF.js → ZeniTransferAmountSlider-DwC6pXnb-BgJArm45.js} +1 -1
  201. package/dist/assets/analytics-BSSiLa6f.js +7 -0
  202. package/dist/assets/{analyticsHelper-Bwye1Yzk.js → analyticsHelper-CPNSDy4Z.js} +1 -1
  203. package/dist/assets/{analyticsHelper-DlYWxxhD-6PX8-p-s.js → analyticsHelper-CZ8c8du5-Ber0nUBK.js} +1 -1
  204. package/dist/assets/{chartTypes-DueLK3Wl-BWSykg1r.js → chartTypes-CWLOazD0-BCrBxX2L.js} +1 -1
  205. package/dist/assets/{commonDimensions-D4uH020E-CzLHHjVa.js → commonDimensions-Cg7EWgSP-ztBpKI_h.js} +1 -1
  206. package/dist/assets/{detailCommon-D5qKBZdS-BpsfjSiy.js → detailCommon-Cp4eknjq-ClKRuZos.js} +7 -7
  207. package/dist/assets/{downloadPdf-s4pLtuS_-DfJmhSyn.js → downloadPdf-f3F0OqWf-DUwLrQQm.js} +1 -1
  208. package/dist/assets/{index-Dc18sb8X.js → index-Dq4DW5h0.js} +3324 -3326
  209. package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-BUGn2yQ6.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-M0QN8LkC-DSfxQmfa.js → mapLoadingInProgressToTreeNode-DCLD3rcY-_6B85me3.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrtVdHui-qBoPPypE.js → mapSectionWithAcOnlyToTreeNode-C-VOXE5I-ChyvQWp0.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-yPPIJHBw-BXxWoQQn.js → mapSpacerToTreeNode-DlDwFA_F-CYv3KN_2.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-px916zpo-CuLGcUKr.js → mapTimeframeBalancesToTreeNode-EEyJwCnX-HEZ0R9-O.js} +1 -1
  214. package/dist/assets/mui-BgvZYSo0.js +22 -0
  215. package/dist/assets/{play-icon-Bih37F_s-C6sD6kbP.js → play-icon-CFa9Uibr-CaxUs2iQ.js} +3 -3
  216. package/dist/assets/{redux-ByjIRbhZ.js → redux-DmDqXYej.js} +1 -1
  217. package/dist/assets/{routing-Cpaypegg.js → routing-BNz5gZgX.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-CAhfOfUa-BLsrlpgK.js → toCOABalancesWithID-DT8-C5u1-CE-3jMAY.js} +1 -1
  219. package/dist/assets/{toChartData-BicnbT0F-CzNzHCD-.js → toChartData-63e3B91H-DoSBXci0.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-A_YlwvaQ-CVHETTwa.js → treasuryColorHelper-BGGfolJy-B6Wl_Wly.js} +1 -1
  221. package/dist/assets/{uploadAttachment-DVoWdoWD-D5s5ylN5.js → uploadAttachment-YcPIDoZ--DIC1ZEM7.js} +19 -19
  222. package/dist/assets/{uploadReceipts-Buvz7DfG-DS0aCuAZ.js → uploadReceipts-BH9fi3Vt-CnyK0TMw.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountRow-D9vDRsjv-XcUg9HnZ.js +0 -298
  226. package/dist/assets/BusinessVerificationPage-YKJ-CZfb-CA1EyVwE.js +0 -140
  227. package/dist/assets/CheckDepositDrawerPage-B1Qp-xbY-CG1lluPq.js +0 -206
  228. package/dist/assets/CompleteProfile-CJOsHnBa-CTqixosH.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-DPk_xOir.js +0 -1
  230. package/dist/assets/CustomerOnboardingPage-CIbBaMcO-D6XARpKC.js +0 -107
  231. package/dist/assets/DashboardReportPage-BM6TqjrJ-CXS5ZOn0.js +0 -349
  232. package/dist/assets/DomesticWireDetailsPage-BZ8jSo8r-CvJ1Feba.js +0 -21
  233. package/dist/assets/LabeledDocumentField-CIlbLPtO-CyOwq3qY.js +0 -41
  234. package/dist/assets/LabeledDropDownFormattedTextField-Dpt7UG-o-BXwTt2kH.js +0 -59
  235. package/dist/assets/NotificationsListConfig-BjItJJe9-DzH6eIvg.js +0 -1
  236. package/dist/assets/ReimbursementDetailPage-CE_jx7cM-NMeD4tV1.js +0 -314
  237. package/dist/assets/ReportTableViewSelector-Bc5xUtnG-B_lLxJq7.js +0 -150
  238. package/dist/assets/ReportsPage-J8DrZz78-BDQBNTzo.js +0 -120
  239. package/dist/assets/TaskManagementPage-BSmG6YR2-DNj3Vzrv.js +0 -508
  240. package/dist/assets/TimeframeSwitcherWithToggle-BwvVsB_p-D2v3J1KI.js +0 -31
  241. package/dist/assets/TrendChart-dARoUu-T-DLWmmph8.js +0 -16
  242. package/dist/assets/ZeniAccountNavBarPieces-DHYLxQKr-i6WaheRu.js +0 -14
  243. package/dist/assets/analytics-DThoELaW.js +0 -7
  244. package/dist/assets/mui-C5LQ0bMa.js +0 -25
@@ -1,4 +1,4 @@
1
- import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,H as co,A as cn,di as so,dj as sn,l as A,M as O,p as w,dk as zo,dl as Lt,ab as _,dm as At,bz as Bt,dn as Ot,C as D,cs as Mt,y as Po,T as qe,dp as To,bg as X,e as dn,u as se,ak as Vo,dq as Do,ac as V,r as Le,dr as hn,ds as ce,by as Wt,bC as ho,w as un,m as we,dt as Je,du as Ae,dv as Xe,s as S,ah as ie,dw as pn,v as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bm as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bt as Cn,b5 as jn,dH as Sn}from"./index-Dc18sb8X.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-D9vDRsjv-XcUg9HnZ.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
1
+ import{j as t,ao as an,Y as m,bf as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,J as co,z as cn,di as so,dj as sn,l as A,M as O,p as w,dk as zo,dl as Lt,ab as _,dm as At,bA as Bt,dn as Ot,C as D,cs as Mt,w as Po,T as qe,dp as To,bh as Q,d as dn,u as se,ak as Vo,dq as Do,ac as V,n as Le,dr as hn,ds as ce,bz as Wt,bD as ho,v as un,f as we,dt as Je,du as Ae,dv as Qe,s as S,ah as ie,dw as pn,q as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bn as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bu as Cn,b6 as jn,dH as Sn}from"./index-Dq4DW5h0.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-CPX-627p-B4ZaO0oz.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -118,14 +118,14 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
118
118
  `,Jn=a.div`
119
119
  width: ${$.clearedBalanceWidth}px;
120
120
  margin-right: ${$.tickLeftMargin}px;
121
- `,Qn=a.div`
121
+ `,Xn=a.div`
122
122
  width: ${$.varianceTimeframeWidth}px;
123
123
  align-self: flex-end;
124
- `,Xn=a.div`
124
+ `,Qn=a.div`
125
125
  width: ${$.spacerLineWidth}px;
126
126
  `,er=a.div`
127
127
  width: ${$.statusWidth}px;
128
- `,De=({title:e,type:o})=>t.jsx(Un,{widthValue:$[o],children:t.jsx(Yn,{children:e})});function tr({sectionTitle:e,height:o,isLoading:i}){const n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Rn,{height:o,children:t.jsxs(Gn,{children:[t.jsx(En,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp4,width:$.leftLabelWidth},children:t.jsx(Kn,{children:e})})}),t.jsxs(Hn,{children:[t.jsx(Zn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(qn,{}),t.jsx(Jn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Qn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Xn,{}),t.jsx(er,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.status,type:"statusTimeframeWidth"})})})]})]})})}const or=a.div`
128
+ `,De=({title:e,type:o})=>t.jsx(Un,{widthValue:$[o],children:t.jsx(Yn,{children:e})});function tr({sectionTitle:e,height:o,isLoading:i}){const n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Rn,{height:o,children:t.jsxs(Gn,{children:[t.jsx(En,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp4,width:$.leftLabelWidth},children:t.jsx(Kn,{children:e})})}),t.jsxs(Hn,{children:[t.jsx(Zn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(qn,{}),t.jsx(Jn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Xn,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Qn,{}),t.jsx(er,{children:t.jsx(ce,{isLoading:i,customStyle:{height:s.sp7,width:$.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(De,{title:n.status,type:"statusTimeframeWidth"})})})]})]})})}const or=a.div`
129
129
  display: flex;
130
130
  flex-direction: row;
131
131
  height: ${e=>e.heightValue}px;
@@ -221,7 +221,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
221
221
  color: ${e=>e.textColor.hex()};
222
222
  background-color: ${e=>e.bgColor.hex()};
223
223
  min-width: ${$.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:xo}}},common:{strings:{percentage:wr,hyphen:Qe}}}=O.getLocalizedStrings();function yr({height:e,sectionData:o}){const i=N(),n=o.totalVariance,r=o.totalVariancePercentage,l=se();return t.jsx(rr,{"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(lr,{children:[t.jsx(ye,{firstLetter:xo.section[o.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(cr,{children:xo.section[o.sectionId].subTitle})]}),t.jsxs(sr,{children:[t.jsx(dr,{children:o.totalBankBalance!=null?U("0,0",o.totalBankBalance):Qe}),t.jsx(hr,{children:o.totalClearedBalance!=null?U("0,0",o.totalClearedBalance):Qe}),t.jsx(br,{variance:n,variancePercentage:r}),t.jsx(pr,{children:t.jsx(gr,{heightValue:e})}),t.jsx(ur,{})]})]})})}const br=({variance:e,variancePercentage:o})=>{const i=se(),n=new _(i.colors.hero),r=new _(i.colors.hero),l=new _(i.colors.background),c=e!=null&&e.amount===0?"0%":o!=null?o===0?"0%":`${o.toFixed(2)}${wr}`:Qe;return t.jsxs(fr,{children:[t.jsx(xr,{textColor:n,children:e!=null?U("0,0",e):Qe}),t.jsx(mr,{textColor:r,bgColor:l,children:c})]})};function kr(){return t.jsx(Dn,{height:et("section")})}function Cr(){return t.jsx(Tn,{height:et("loading_in_progress")})}function jr(e,o){if(e.element.kind!=="timeframe_headers")return null;const i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,n=e.element.data,r=n.accountIDs.length===0;return t.jsx(tr,{sectionTitle:i.section[n.sectionId].title,isLoading:r,isSticky:o,height:et("timeframe_headers")})}const Sr=(e,o,i)=>{const n=e.element.data;return t.jsx(yr,{isSticky:i,height:o,sectionData:n})},vr=(e,o)=>{const i=e.element.data,n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(nr,{height:o,title:n.section[i.sectionId].title})},$r=(e,o,i)=>{const n=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?n.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(_n,{height:o,accountRecon:n,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})},C={balanceHeight:s.sp4,balanceWidth:"166px",balanceWidthInPx:166,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405)};function _r(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":return w[11];case"timeframe_headers_with_forecast":return 98;case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Lr(e,o,i=0){const n=["summary"];switch(e){case"section":return!n.includes(o);case"section_with_ac_only":return!n.includes(o);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(n.includes(o)||o==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(n.includes(o)||o==="detailed"&&i>0);case"title_string_only":return!n.includes(o);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(o==="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}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Uo={emptyLeftContainer:new D(w[0],w[5])},Ar=a(S)`
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:xo}}},common:{strings:{percentage:wr,hyphen:Xe}}}=O.getLocalizedStrings();function yr({height:e,sectionData:o}){const i=N(),n=o.totalVariance,r=o.totalVariancePercentage,l=se();return t.jsx(rr,{"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(lr,{children:[t.jsx(ye,{firstLetter:xo.section[o.sectionId].subTitle.charAt(0),color:new _(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(cr,{children:xo.section[o.sectionId].subTitle})]}),t.jsxs(sr,{children:[t.jsx(dr,{children:o.totalBankBalance!=null?U("0,0",o.totalBankBalance):Xe}),t.jsx(hr,{children:o.totalClearedBalance!=null?U("0,0",o.totalClearedBalance):Xe}),t.jsx(br,{variance:n,variancePercentage:r}),t.jsx(pr,{children:t.jsx(gr,{heightValue:e})}),t.jsx(ur,{})]})]})})}const br=({variance:e,variancePercentage:o})=>{const i=se(),n=new _(i.colors.hero),r=new _(i.colors.hero),l=new _(i.colors.background),c=o!=null?`${o.toFixed(2)}${wr}`:Xe;return t.jsxs(fr,{children:[t.jsx(xr,{textColor:n,children:e!=null?U("0,0",e):Xe}),t.jsx(mr,{textColor:r,bgColor:l,children:c})]})};function kr(){return t.jsx(Dn,{height:et("section")})}function Cr(){return t.jsx(Tn,{height:et("loading_in_progress")})}function jr(e,o){if(e.element.kind!=="timeframe_headers")return null;const i=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,n=e.element.data,r=n.accountIDs.length===0;return t.jsx(tr,{sectionTitle:i.section[n.sectionId].title,isLoading:r,isSticky:o,height:et("timeframe_headers")})}const Sr=(e,o,i)=>{const n=e.element.data;return t.jsx(yr,{isSticky:i,height:o,sectionData:n})},vr=(e,o)=>{const i=e.element.data,n=O.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(nr,{height:o,title:n.section[i.sectionId].title})},$r=(e,o,i)=>{const n=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?n.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(_n,{height:o,accountRecon:n,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})},C={balanceHeight:s.sp4,balanceWidth:"166px",balanceWidthInPx:166,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405)};function _r(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":return w[11];case"timeframe_headers_with_forecast":return 98;case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Lr(e,o,i=0){const n=["summary"];switch(e){case"section":return!n.includes(o);case"section_with_ac_only":return!n.includes(o);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(n.includes(o)||o==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(n.includes(o)||o==="detailed"&&i>0);case"title_string_only":return!n.includes(o);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(o==="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}},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Uo={emptyLeftContainer:new D(w[0],w[5])},Ar=a(S)`
225
225
  margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
226
226
  overflow: hidden;
227
227
  white-space: nowrap;
@@ -249,7 +249,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
249
249
  height: ${s.sp1};
250
250
  `,Be=a.div`
251
251
  display: flex;
252
- `,Ir=({ancestorMetadata:e,depth:o,name:i})=>t.jsx(t.Fragment,{children:o>0?[...Array(o).keys()].map(n=>{const r=e[n];return t.jsxs(Be,{children:[r.depth===0?t.jsx(po,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},n):t.jsx(Xe,{}):null,r.depth>=1?t.jsx(po,{depth:r.depth}):null]},i+n)}):null}),qo=({ancestorMetadata:e,depth:o,name:i})=>{const n=N();return o===0?e[o].hasChildren===!1?t.jsx(Zo,{windowSize:n}):t.jsxs(Be,{children:[t.jsx(Ve,{depth:o}),t.jsx(Ae,{}),t.jsx(Ve,{depth:o+1})]}):t.jsxs(t.Fragment,{children:[[...Array(o+1).keys()].map(r=>{const l=e[r],c=r!==o?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ve,{depth:l.depth}):null,r>=2||r===1&&(o===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?o===1?t.jsx(uo,{index:1}):t.jsx(uo,{index:2}):null,(o===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(Xe,{}),t.jsx(Ve,{depth:l.depth+1})]},i+r)}),o===1&&e[o].hasChildren!=!0?t.jsx(Nr,{}):null]})},Jo=({ancestorMetadata:e,depth:o,name:i})=>o===0?t.jsx(Wr,{}):t.jsx(t.Fragment,{children:[...Array(o).keys()].map(n=>{const r=e[n],l=n!==o?e[n+1]:void 0;return t.jsxs(Be,{children:[r.depth===0?t.jsx(Je,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},n):t.jsx(Xe,{}),t.jsx(Je,{depth:r.depth+1})]},i+n)})}),Fr=({ancestorMetadata:e,depth:o,name:i})=>t.jsx(t.Fragment,{children:o>0?[...Array(o).keys()].map(n=>{const r=e[n];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(Je,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},n):t.jsx(Xe,{}):null,r.depth>=1?t.jsx(Je,{depth:r.depth}):null]},i+n)}):null}),zr=({depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(Mr,{});return e===0&&r&&(d=t.jsx(yn,{collapsed:l,onIconClick:c})),e>0&&(r&&!n&&o&&(d=t.jsx(go,{collapsed:l,onIconClick:c})),i&&n&&o&&(d=t.jsx(fo,{})),i&&n&&!o&&(d=t.jsx(bn,{})),r&&n&&!o&&(d=t.jsx(kn,{collapsed:l,onIconClick:c})),r&&n&&o&&(d=t.jsx(go,{collapsed:l,onIconClick:c})),o&&i&&(d=t.jsx(fo,{}))),d},Pr=({depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(Or,{children:t.jsx(zr,{depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})});function Qo(e){const{displayName:o}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=N();return t.jsxs(Br,{children:[e.classDepth!=null?t.jsx(qo,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Zo,{windowSize:i}):null,t.jsx(Fr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Pr,{...e}),t.jsx(Ar,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:o,children:o})]})}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function Tr(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function Vr(){return!0}const Re=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Dr=a.div`
252
+ `,Ir=({ancestorMetadata:e,depth:o,name:i})=>t.jsx(t.Fragment,{children:o>0?[...Array(o).keys()].map(n=>{const r=e[n];return t.jsxs(Be,{children:[r.depth===0?t.jsx(po,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},n):t.jsx(Qe,{}):null,r.depth>=1?t.jsx(po,{depth:r.depth}):null]},i+n)}):null}),qo=({ancestorMetadata:e,depth:o,name:i})=>{const n=N();return o===0?e[o].hasChildren===!1?t.jsx(Zo,{windowSize:n}):t.jsxs(Be,{children:[t.jsx(Ve,{depth:o}),t.jsx(Ae,{}),t.jsx(Ve,{depth:o+1})]}):t.jsxs(t.Fragment,{children:[[...Array(o+1).keys()].map(r=>{const l=e[r],c=r!==o?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ve,{depth:l.depth}):null,r>=2||r===1&&(o===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?o===1?t.jsx(uo,{index:1}):t.jsx(uo,{index:2}):null,(o===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(Qe,{}),t.jsx(Ve,{depth:l.depth+1})]},i+r)}),o===1&&e[o].hasChildren!=!0?t.jsx(Nr,{}):null]})},Jo=({ancestorMetadata:e,depth:o,name:i})=>o===0?t.jsx(Wr,{}):t.jsx(t.Fragment,{children:[...Array(o).keys()].map(n=>{const r=e[n],l=n!==o?e[n+1]:void 0;return t.jsxs(Be,{children:[r.depth===0?t.jsx(Je,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},n):t.jsx(Qe,{}),t.jsx(Je,{depth:r.depth+1})]},i+n)})}),Fr=({ancestorMetadata:e,depth:o,name:i})=>t.jsx(t.Fragment,{children:o>0?[...Array(o).keys()].map(n=>{const r=e[n];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(Je,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},n):t.jsx(Qe,{}):null,r.depth>=1?t.jsx(Je,{depth:r.depth}):null]},i+n)}):null}),zr=({depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(Mr,{});return e===0&&r&&(d=t.jsx(yn,{collapsed:l,onIconClick:c})),e>0&&(r&&!n&&o&&(d=t.jsx(go,{collapsed:l,onIconClick:c})),i&&n&&o&&(d=t.jsx(fo,{})),i&&n&&!o&&(d=t.jsx(bn,{})),r&&n&&!o&&(d=t.jsx(kn,{collapsed:l,onIconClick:c})),r&&n&&o&&(d=t.jsx(go,{collapsed:l,onIconClick:c})),o&&i&&(d=t.jsx(fo,{}))),d},Pr=({depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(Or,{children:t.jsx(zr,{depth:e,isLastNode:o,isLeaf:i,hasSiblings:n,hasChildren:r,collapsed:l,onIconClick:c})});function Xo(e){const{displayName:o}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=N();return t.jsxs(Br,{children:[e.classDepth!=null?t.jsx(qo,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Zo,{windowSize:i}):null,t.jsx(Fr,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(Pr,{...e}),t.jsx(Ar,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:o,children:o})]})}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function Tr(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function Vr(){return!0}const Re=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Dr=a.div`
253
253
  display: flex;
254
254
  flex: 1 1 auto;
255
255
  max-height: 1px;
@@ -291,7 +291,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
291
291
  max-height: 1px;
292
292
  height: 1px;
293
293
  background-color: ${e=>e.isScrolling?"transparent":e.colour};
294
- `,mo=e=>{const o=N(),i=se();return t.jsxs(Rr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Gr,{windowSize:o,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Er,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:o}),t.jsx(Hr,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Kr,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function mt({kind:e,isScrolling:o,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(mo,{nestingLevel:i?.nestingLevel??0,isScrolling:o,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(Dr,{"data-testid":m("end-row-separator",e),isScrolling:o});case"subtotal_row_separator":return t.jsx(mo,{nestingLevel:i?.nestingLevel??1,isScrolling:o,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const Xo=a.div`
294
+ `,mo=e=>{const o=N(),i=se();return t.jsxs(Rr,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(Gr,{windowSize:o,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Er,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:o}),t.jsx(Hr,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Kr,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function mt({kind:e,isScrolling:o,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(mo,{nestingLevel:i?.nestingLevel??0,isScrolling:o,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(Dr,{"data-testid":m("end-row-separator",e),isScrolling:o});case"subtotal_row_separator":return t.jsx(mo,{nestingLevel:i?.nestingLevel??1,isScrolling:o,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const Qo=a.div`
295
295
  display: flex;
296
296
  flex: 1 1 auto;
297
297
  width: fit-content;
@@ -360,7 +360,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
360
360
  &:hover {
361
361
  color: ${e=>e.theme.colors.primary};
362
362
  }
363
- `,ri=({balance:e,isOpen:o})=>{const i=o?e?.balance:e?.totalBalance;return t.jsx(oi,{children:t.jsx(ii,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ai=({total:e})=>t.jsx(oi,{children:t.jsx(ii,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ur({isSticky:e,height:o,isScrolling:i,isLastNode:n,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=N(),g="default",p=c?.name??"";return t.jsxs(Xo,{"data-testid":m("ap-aging-report-row-root-container",p),containerHeight:o,bgColor:d,windowSize:u,children:[t.jsxs(ei,{"data-testid":m("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:o-1,children:[t.jsxs(ni,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:o-1,children:[c?.logo!=null?t.jsx(Ot,{photoUrl:c.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Mt,{name:p??"",size:s.sp4}),t.jsx(Yr,{children:p})]}),t.jsxs(ti,{"data-testid":m("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(ri,{balance:f,isOpen:!0},f?.period)),t.jsx(ai,{total:l})]})]}),t.jsx(li,{isScrolling:i,isLastNode:n})]})}function Zr({treeNodeId:e,isSticky:o,height:i,isScrolling:n,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:x}){const b=N(),y=g,j=u?.customer.name??"",v=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,M=L,P=M?"pointer":"default",T=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(Xo,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:p,windowSize:b,children:[t.jsxs(ei,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:P},isClickable:M,containerHeight:i-1,children:[t.jsx(ni,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:o,windowSize:b,bgColor:p,containerHeight:i-1,children:t.jsx(Qo,{displayName:j,depth:v,isLastNode:r,hasChildren:L,hasSiblings:B,isLeaf:T,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(ti,{children:[c.map(H=>t.jsx(ri,{balance:H,isOpen:l},H?.period)),t.jsx(ai,{total:l?d:h})]})]}),t.jsx(li,{isScrolling:n,subEntityProps:{nestingLevel:v,isSticky:o,noMarginForEntity:!0}})]})}function li({isScrolling:e,isLastNode:o=!1,subEntityProps:i}){return o?t.jsx(mt,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(mt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const qr=a.div`
363
+ `,ri=({balance:e,isOpen:o})=>{const i=o?e?.balance:e?.totalBalance;return t.jsx(oi,{children:t.jsx(ii,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ai=({total:e})=>t.jsx(oi,{children:t.jsx(ii,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ur({isSticky:e,height:o,isScrolling:i,isLastNode:n,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=N(),g="default",p=c?.name??"";return t.jsxs(Qo,{"data-testid":m("ap-aging-report-row-root-container",p),containerHeight:o,bgColor:d,windowSize:u,children:[t.jsxs(ei,{"data-testid":m("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:o-1,children:[t.jsxs(ni,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:o-1,children:[c?.logo!=null?t.jsx(Ot,{photoUrl:c.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(Mt,{name:p??"",size:s.sp4}),t.jsx(Yr,{children:p})]}),t.jsxs(ti,{"data-testid":m("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(ri,{balance:f,isOpen:!0},f?.period)),t.jsx(ai,{total:l})]})]}),t.jsx(li,{isScrolling:i,isLastNode:n})]})}function Zr({treeNodeId:e,isSticky:o,height:i,isScrolling:n,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:x}){const b=N(),y=g,j=u?.customer.name??"",v=u!=null?u.id.length-1:0,B=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,M=L,P=M?"pointer":"default",T=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(Qo,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:p,windowSize:b,children:[t.jsxs(ei,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:P},isClickable:M,containerHeight:i-1,children:[t.jsx(ni,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:o,windowSize:b,bgColor:p,containerHeight:i-1,children:t.jsx(Xo,{displayName:j,depth:v,isLastNode:r,hasChildren:L,hasSiblings:B,isLeaf:T,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(ti,{children:[c.map(H=>t.jsx(ri,{balance:H,isOpen:l},H?.period)),t.jsx(ai,{total:l?d:h})]})]}),t.jsx(li,{isScrolling:n,subEntityProps:{nestingLevel:v,isSticky:o,noMarginForEntity:!0}})]})}function li({isScrolling:e,isLastNode:o=!1,subEntityProps:i}){return o?t.jsx(mt,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(mt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const qr=a.div`
364
364
  user-select: none;
365
365
  display: flex;
366
366
  flex: 1 1 auto;
@@ -400,7 +400,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
400
400
  text-align: center;
401
401
  column-gap: ${s.sp1};
402
402
  color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
- `,Qr=a.div`
403
+ `,Xr=a.div`
404
404
  max-height: ${s.sp8};
405
405
  min-height: ${s.sp8};
406
406
  display: flex;
@@ -415,7 +415,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
415
415
  top: ${s.sp0};
416
416
  left: ${s.sp0};
417
417
  `:""}
418
- `,Xr=a(S)`
418
+ `,Qr=a(S)`
419
419
  display: flex;
420
420
  align-items: center;
421
421
  cursor: pointer;
@@ -442,7 +442,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
442
442
  `,Tt=a(It)`
443
443
  width: 12px;
444
444
  height: 12px;
445
- `,ea=({reportId:e,sortKey:o,sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{n?.(Vt(i),r)},c=o===r?i:"ascending";return t.jsxs(Xr,{active:o===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?O.getLocalizedStrings().reports.aging.apAging.vendor:O.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(zt,{selectedForSort:o===r,children:t.jsx(hi,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})})}),t.jsx(qe,{controller:o===r,children:t.jsx(ui,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>pi({onSortOrderChanged:n})})})]})},pi=({onSortOrderChanged:e})=>{e?.("descending","total")},ta=({agingPeriod:e,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=o===e?i:"ascending",l=()=>{n?.(Vt(i),e)};return t.jsx(di,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(si,{active:o===e,"data-testid":m("duration-row-timeframe-tick",e),children:[O.getLocalizedStrings().reports.aging.duration[e],t.jsxs(zt,{selectedForSort:o===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx(hi,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})}),t.jsx(qe,{controller:o===e,children:t.jsx(ui,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>pi({onSortOrderChanged:n})})})]})]})})})},gi=({reportId:e,sortKey:o,sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=o==="total"?i:"ascending",l=()=>{n?.(Vt(i),"total")};return t.jsx(di,{"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(si,{active:o==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?O.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:O.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(zt,{selectedForSort:o==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})})]})})})},oa=({reportId:e,agingPeriod:o,sortKey:i="vendor",sortOrder:n="ascending",onSortOrderChanged:r})=>o!=null?t.jsx(ta,{sortKey:i,sortOrder:n,onSortOrderChanged:r,agingPeriod:o}):t.jsx(gi,{reportId:e,sortKey:i,sortOrder:n,onSortOrderChanged:r});function ia({reportId:e,isSticky:o,height:i,agingPeriods:n,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=N();return t.jsxs(qr,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(Qr,{"data-testid":m("duration-row-placeholder-name",e),isSticky:o,windowSize:h,bgColor:c,children:t.jsx(ea,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Jr,{children:[n.map(u=>t.jsx(oa,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(gi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Vt=e=>e==="ascending"?"descending":"ascending",na=[10,14,20,20,20],ra=a.div`
445
+ `,ea=({reportId:e,sortKey:o,sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{n?.(Vt(i),r)},c=o===r?i:"ascending";return t.jsxs(Qr,{active:o===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?O.getLocalizedStrings().reports.aging.apAging.vendor:O.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(zt,{selectedForSort:o===r,children:t.jsx(hi,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})})}),t.jsx(qe,{controller:o===r,children:t.jsx(ui,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>pi({onSortOrderChanged:n})})})]})},pi=({onSortOrderChanged:e})=>{e?.("descending","total")},ta=({agingPeriod:e,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=o===e?i:"ascending",l=()=>{n?.(Vt(i),e)};return t.jsx(di,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(si,{active:o===e,"data-testid":m("duration-row-timeframe-tick",e),children:[O.getLocalizedStrings().reports.aging.duration[e],t.jsxs(zt,{selectedForSort:o===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx(hi,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})}),t.jsx(qe,{controller:o===e,children:t.jsx(ui,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>pi({onSortOrderChanged:n})})})]})]})})})},gi=({reportId:e,sortKey:o,sortOrder:i="ascending",onSortOrderChanged:n})=>{const r=o==="total"?i:"ascending",l=()=>{n?.(Vt(i),"total")};return t.jsx(di,{"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(si,{active:o==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?O.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:O.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(zt,{selectedForSort:o==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Tt,{}):t.jsx(Pt,{})})]})})})},oa=({reportId:e,agingPeriod:o,sortKey:i="vendor",sortOrder:n="ascending",onSortOrderChanged:r})=>o!=null?t.jsx(ta,{sortKey:i,sortOrder:n,onSortOrderChanged:r,agingPeriod:o}):t.jsx(gi,{reportId:e,sortKey:i,sortOrder:n,onSortOrderChanged:r});function ia({reportId:e,isSticky:o,height:i,agingPeriods:n,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=N();return t.jsxs(qr,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(Xr,{"data-testid":m("duration-row-placeholder-name",e),isSticky:o,windowSize:h,bgColor:c,children:t.jsx(ea,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Jr,{children:[n.map(u=>t.jsx(oa,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(gi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Vt=e=>e==="ascending"?"descending":"ascending",na=[10,14,20,20,20],ra=a.div`
446
446
  display: flex;
447
447
  flex: 1 1 auto;
448
448
  width: fit-content;
@@ -634,7 +634,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
634
634
  text-overflow: ellipsis;
635
635
  text-align: left;
636
636
  margin-left: ${s.sp6};
637
- `,Qa=({balance:e})=>t.jsx(Ua,{children:t.jsx(Za,{children:Z(e)})});function Xa({heading:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=N();return t.jsxs(Ha,{"data-testid":m("calculated-section-type-1-root-container-row",n),height:r,bgColor:o,windowSize:u,children:[t.jsxs(Ka,{"data-testid":m("calculated-section-type-1-container-row",n),onClick:()=>h?.(n),children:[t.jsx(qa,{"data-testid":m("calculated-section-type-1-total-container-row",n),bgColor:o,isSticky:i,windowSize:u,children:t.jsx(Ja,{children:e})}),t.jsx(Ya,{children:l.map((g,p)=>t.jsx(Qa,{balance:g},p))})]}),t.jsx(el,{isScrolling:c,isLastNode:d})]})}function el({isScrolling:e,isLastNode:o}){return o===!0?t.jsx(Ra,{isScrolling:e,kind:"heading_row_separator"}):null}const tl=a.div`
637
+ `,Xa=({balance:e})=>t.jsx(Ua,{children:t.jsx(Za,{children:Z(e)})});function Qa({heading:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=N();return t.jsxs(Ha,{"data-testid":m("calculated-section-type-1-root-container-row",n),height:r,bgColor:o,windowSize:u,children:[t.jsxs(Ka,{"data-testid":m("calculated-section-type-1-container-row",n),onClick:()=>h?.(n),children:[t.jsx(qa,{"data-testid":m("calculated-section-type-1-total-container-row",n),bgColor:o,isSticky:i,windowSize:u,children:t.jsx(Ja,{children:e})}),t.jsx(Ya,{children:l.map((g,p)=>t.jsx(Xa,{balance:g},p))})]}),t.jsx(el,{isScrolling:c,isLastNode:d})]})}function el({isScrolling:e,isLastNode:o}){return o===!0?t.jsx(Ra,{isScrolling:e,kind:"heading_row_separator"}):null}const tl=a.div`
638
638
  display: flex;
639
639
  flex: 1 1 auto;
640
640
  width: fit-content;
@@ -690,7 +690,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
690
690
  text-overflow: ellipsis;
691
691
  text-align: left;
692
692
  background-color: ${e=>e.bgColor?.hex()};
693
- `,ll=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n})=>t.jsxs(nl,{"data-testid":m("heading-row-balance-element",e),children:[ae(e)||i?t.jsx(Ge,{"data-testid":m("heading-row-balance-actual",e),children:Z(o)}):t.jsx(Ge,{"data-testid":m("heading-row-balance-forecast",e),children:J(o)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{"data-testid":m("heading-row-balance-forecast",e),children:J(o)}),t.jsx(Ge,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:n==="compare_mode_percent"?de(o):he(o)})]}):null]});function cl({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=N();return t.jsx(tl,{height:r,bgColor:o,"data-testid":m("heading-row-root-container",n),children:t.jsxs(ol,{"data-testid":m("heading-row-container",n),isClickable:!u,onClick:()=>g?.(n),children:[ge(e)===!0?t.jsx(rl,{"data-testid":m("heading-row-heading-container",n),isSticky:i,windowSize:p,bgColor:o,children:t.jsx(al,{children:l})}):null,xe(e)===!0?t.jsx(il,{"data-testid":m("heading-row-balances-container",n),children:c.map((f,x)=>t.jsx(ll,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const sl=(e,o,i,n,r,l,c)=>{if(o.element.kind!="calculated_section_type1"||o.element.data==null)return null;const d=o.element.data,h=te(d,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Xa,{backgroundColor:n,isSticky:r,treeNodeId:e,heading:o.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Dt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="title_string_only")return null;const f=te(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(cl,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{p?.(x)}})};function Si(e,o){return dl(o)}const dl=(e,o)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=n=>n.balancesInTimeframe,i.compactedAccountsSelectorVariant=n=>hl(n,i.acBalanceSelector,e),i};function hl(e,o,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(n=>ul(o(n)?.balances??[]));default:return e}}function ul(e){let o=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){o=!0;break}}return o}const pl=a.div`
693
+ `,ll=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n})=>t.jsxs(nl,{"data-testid":m("heading-row-balance-element",e),children:[ae(e)||i?t.jsx(Ge,{"data-testid":m("heading-row-balance-actual",e),children:Z(o)}):t.jsx(Ge,{"data-testid":m("heading-row-balance-forecast",e),children:J(o)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{"data-testid":m("heading-row-balance-forecast",e),children:J(o)}),t.jsx(Ge,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:n==="compare_mode_percent"?de(o):he(o)})]}):null]});function cl({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=N();return t.jsx(tl,{height:r,bgColor:o,"data-testid":m("heading-row-root-container",n),children:t.jsxs(ol,{"data-testid":m("heading-row-container",n),isClickable:!u,onClick:()=>g?.(n),children:[ge(e)===!0?t.jsx(rl,{"data-testid":m("heading-row-heading-container",n),isSticky:i,windowSize:p,bgColor:o,children:t.jsx(al,{children:l})}):null,xe(e)===!0?t.jsx(il,{"data-testid":m("heading-row-balances-container",n),children:c.map((f,x)=>t.jsx(ll,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const sl=(e,o,i,n,r,l,c)=>{if(o.element.kind!="calculated_section_type1"||o.element.data==null)return null;const d=o.element.data,h=te(d,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Qa,{backgroundColor:n,isSticky:r,treeNodeId:e,heading:o.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Dt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="title_string_only")return null;const f=te(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(cl,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{p?.(x)}})};function Si(e,o){return dl(o)}const dl=(e,o)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=n=>n.balancesInTimeframe,i.compactedAccountsSelectorVariant=n=>hl(n,i.acBalanceSelector,e),i};function hl(e,o,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(n=>ul(o(n)?.balances??[]));default:return e}}function ul(e){let o=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){o=!0;break}}return o}const pl=a.div`
694
694
  display: flex;
695
695
  flex: 1 1 auto;
696
696
  max-height: 1px;
@@ -960,7 +960,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
960
960
  text-align: right;
961
961
  margin-left: ${R.balanceLeftMargin};
962
962
  color: ${e=>e.theme.colors.brandColorJadeDark};
963
- `,Ql=({type:e,balance:o,collapsed:i,compareMode:n})=>{const r=i===!0?Zl:vi;return t.jsxs(Ul,{children:[ae(e)===!0?t.jsx(r,{children:Z(o)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(pt,{children:Z(o)}),t.jsx(pt,{children:J(o)}),t.jsx(pt,{children:n==="compare_mode_percent"?de(o):he(o)})]}):null]})};function Xl({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const g=N(),p=!d,f=p?"pointer":"default";return t.jsx(Hl,{height:r,bgColor:o,windowSize:g,children:t.jsxs(Kl,{style:{cursor:f},isClickable:p,onClick:()=>u?.(n),children:[t.jsx(ql,{bgColor:o,isSticky:i,windowSize:g,children:t.jsx(Jl,{children:l})}),t.jsx(Yl,{children:c.map((x,b)=>t.jsx(Ql,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Et=(e,o)=>e.startsWith("net_burn_or_income")===!0?o!=null?ke.net_burn_or_income[o]:ke.default:e.startsWith("revenue")===!0?o!=null?ke.revenue[o]:ke.default:e.startsWith("cash_in_cash_out")===!0&&o!=null?ke.cash_in_cash_out[o]:ke.default,ec=(e,o,i,n,r,l,c,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=A.isDashboardClassesViewReport(i.config.reportId)===!0?Si("no_filter",i.config.filterAccountsWithNilBalances):tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Il,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,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:p,onAccountBalanceClick:g==null?void 0:(b,y,j)=>{g?.(b,y,j)}})},tc=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(vl,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},$i=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.sectionType),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},oc=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.sectionType),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},_i=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Li=(e,o,i,n,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=te(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Xl,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:n,isLeaf:d,compareMode:c,totalBalances:u.balances})},Ht=20,ic=e=>{const o=[];return e&&Object.values(e).forEach(i=>{o.push(i)}),o.reverse()},nc=a.div`
963
+ `,Xl=({type:e,balance:o,collapsed:i,compareMode:n})=>{const r=i===!0?Zl:vi;return t.jsxs(Ul,{children:[ae(e)===!0?t.jsx(r,{children:Z(o)}):null,Oe(e)?t.jsxs(t.Fragment,{children:[t.jsx(pt,{children:Z(o)}),t.jsx(pt,{children:J(o)}),t.jsx(pt,{children:n==="compare_mode_percent"?de(o):he(o)})]}):null]})};function Ql({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const g=N(),p=!d,f=p?"pointer":"default";return t.jsx(Hl,{height:r,bgColor:o,windowSize:g,children:t.jsxs(Kl,{style:{cursor:f},isClickable:p,onClick:()=>u?.(n),children:[t.jsx(ql,{bgColor:o,isSticky:i,windowSize:g,children:t.jsx(Jl,{children:l})}),t.jsx(Yl,{children:c.map((x,b)=>t.jsx(Xl,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const ke={net_burn_or_income:{income:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},cogs:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},expenses:{color:new _(V.graphColor32),hoverColor:new _(V.graphColor32Dark)},"Gross Burn":{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)},"Net Burn":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)},"Net Income":{color:new _(V.graphColor13),hoverColor:new _(V.graphColor13Dark)}},revenue:{income:{color:new _(V.graphColor28),hoverColor:new _(V.graphColor28Dark)},cogs:{color:new _(V.graphColor17),hoverColor:new _(V.graphColor17Dark)},"Gross Margin":{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new _(V.graphColor33),hoverColor:new _(V.graphColor33Dark)},cash_out:{color:new _(V.graphColor02),hoverColor:new _(V.graphColor02Dark)},"Net Cash Flow":{color:new _(V.graphColor35),hoverColor:new _(V.graphColor35Dark)}},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Et=(e,o)=>e.startsWith("net_burn_or_income")===!0?o!=null?ke.net_burn_or_income[o]:ke.default:e.startsWith("revenue")===!0?o!=null?ke.revenue[o]:ke.default:e.startsWith("cash_in_cash_out")===!0&&o!=null?ke.cash_in_cash_out[o]:ke.default,ec=(e,o,i,n,r,l,c,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=A.isDashboardClassesViewReport(i.config.reportId)===!0?Si("no_filter",i.config.filterAccountsWithNilBalances):tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Il,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,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:p,onAccountBalanceClick:g==null?void 0:(b,y,j)=>{g?.(b,y,j)}})},tc=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(vl,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},$i=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.sectionType),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},oc=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.sectionType),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},_i=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Et(i.config.reportId,i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Gt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:y=>{p?.(y)}})},Li=(e,o,i,n,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=te(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Ql,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:n,isLeaf:d,compareMode:c,totalBalances:u.balances})},Ht=20,ic=e=>{const o=[];return e&&Object.values(e).forEach(i=>{o.push(i)}),o.reverse()},nc=a.div`
964
964
  display: flex;
965
965
  flex: 1 1 auto;
966
966
  height: 1px;
@@ -1136,7 +1136,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
1136
1136
  display: flex;
1137
1137
  flex: 1;
1138
1138
  justify-content: flex-end;
1139
- `,Mc=({isBalanceRowFirstNode:e=!1,balance:o})=>{const i=o!=null;return t.jsxs(Oi,{children:[e?t.jsx(Mi,{}):null,t.jsx(bc,{children:t.jsx(kc,{isClickable:i,children:Z(o)})})]})};function Wc({varianceAmount:e,variancePercentage:o,currency:i,isSticky:n,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=O.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(wc,{children:[t.jsxs(yc,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(Bc,{children:t.jsxs(Cc,{className:"flux-class-and-account-value-container",isSticky:n,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(jc,{children:[t.jsx(Ai,{height:k.lineComponentHeight}),t.jsx(vc,{children:Co.common.texts.category}),t.jsx($c,{children:Co.common.texts.class})]}),t.jsxs(Sc,{children:[y===!0?t.jsx(uc,{height:k.lineLComponentHeight}):t.jsx(pc,{}),t.jsx(_c,{title:x,children:x}),t.jsx(Lc,{title:b,children:b})]})]})}),t.jsx(Oc,{children:t.jsxs(Ac,{children:[r.map((j,v)=>t.jsx(Mc,{balance:j,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},v)),t.jsxs(Oi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Mi,{}),t.jsx(ot,{amount:e,percentage:o,currency:i})]})]})})]}),t.jsx(Nc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Nc({isScrolling:e,isLastNode:o,isParentLastChild:i}){return o&&i?t.jsx(yt,{isScrolling:e,kind:"vendor_separator"}):o?t.jsx(yt,{isScrolling:e,kind:"account_class_row_separator"}):null}function Ic(){return t.jsxs(Fc,{children:[t.jsxs(Pc,{children:[t.jsxs(Ce,{width:k.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(To,{width:w[4],height:w[4]}),t.jsx(X,{width:k.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(Ce,{width:k.categoryRowsSkeletonContainerWidth,children:t.jsx(X,{width:k.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(zc,{children:[t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(X,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(X,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Ce,{width:k.varianceRowSkeletonContainerWidth,children:[t.jsx(X,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(X,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(X,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Fc=a.div`
1139
+ `,Mc=({isBalanceRowFirstNode:e=!1,balance:o})=>{const i=o!=null;return t.jsxs(Oi,{children:[e?t.jsx(Mi,{}):null,t.jsx(bc,{children:t.jsx(kc,{isClickable:i,children:Z(o)})})]})};function Wc({varianceAmount:e,variancePercentage:o,currency:i,isSticky:n,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=O.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:p,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(wc,{children:[t.jsxs(yc,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(Bc,{children:t.jsxs(Cc,{className:"flux-class-and-account-value-container",isSticky:n,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(jc,{children:[t.jsx(Ai,{height:k.lineComponentHeight}),t.jsx(vc,{children:Co.common.texts.category}),t.jsx($c,{children:Co.common.texts.class})]}),t.jsxs(Sc,{children:[y===!0?t.jsx(uc,{height:k.lineLComponentHeight}):t.jsx(pc,{}),t.jsx(_c,{title:x,children:x}),t.jsx(Lc,{title:b,children:b})]})]})}),t.jsx(Oc,{children:t.jsxs(Ac,{children:[r.map((j,v)=>t.jsx(Mc,{balance:j,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},v)),t.jsxs(Oi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Mi,{}),t.jsx(ot,{amount:e,percentage:o,currency:i})]})]})})]}),t.jsx(Nc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Nc({isScrolling:e,isLastNode:o,isParentLastChild:i}){return o&&i?t.jsx(yt,{isScrolling:e,kind:"vendor_separator"}):o?t.jsx(yt,{isScrolling:e,kind:"account_class_row_separator"}):null}function Ic(){return t.jsxs(Fc,{children:[t.jsxs(Pc,{children:[t.jsxs(Ce,{width:k.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(To,{width:w[4],height:w[4]}),t.jsx(Q,{width:k.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(Ce,{width:k.categoryRowsSkeletonContainerWidth,children:t.jsx(Q,{width:k.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(zc,{children:[t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(Q,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(Q,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Ce,{width:k.varianceRowSkeletonContainerWidth,children:[t.jsx(Q,{width:k.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Q,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(Ce,{width:k.titleWidthMedium,children:t.jsx(Q,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Fc=a.div`
1140
1140
  display: flex;
1141
1141
  flex-direction: row;
1142
1142
  width: 100%;
@@ -1235,7 +1235,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
1235
1235
  ${k.statusContainerWidth} +
1236
1236
  ${k.statusLeftMargin}
1237
1237
  );
1238
- `,Zc=({balance:e,color:o})=>t.jsx(Dc,{children:t.jsx(Rc,{color:o,children:Z(e)})}),qc=vn.memo(function({currency:e,sectionId:o,selectedSectionsIds:i,backgroundColor:n,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:j,sectionToggled:v,onSectionCheckboxClick:B}){const L=N(),[M,P]=I.useState(j.length>0),[T,K]=I.useState(!1),H=i.includes(o),Y=!y,q=j.length===Ht&&!H,ue=d?.[0]?.toUpperCase()??"",Q=I.useCallback(ne=>{B?.(o,ne.target.checked)},[o,B]);return t.jsxs(Tc,{heightValue:c,bgColor:n,children:[t.jsxs(Vc,{style:{cursor:Y?"pointer":"default"},onClick:()=>v?.(l),onMouseOver:()=>{K(!0),P(!0)},onMouseLeave:()=>{K(!1),j.length===0&&P(!1)},children:[t.jsxs(Gc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:n,children:[h&&M&&b?t.jsx(Kc,{children:t.jsx(At,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Bt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Hc,{}),checked:H,id:l,disabled:q,onChange:Q,onClick:ne=>ne.stopPropagation(),style:{padding:"20px",pointerEvents:q?"none":"auto"}})}):t.jsx(Yc,{}),t.jsx(ye,{color:_(f),showCollapsedIcon:!b,showIcon:T&&Y,firstLetter:ue}),t.jsx(Ec,{color:f.toString(),children:d})]}),t.jsxs(Uc,{children:[u.map((ne,je)=>t.jsx(Zc,{sectionName:d,balance:ne,color:f.toString()},je)),t.jsx(ot,{amount:g,percentage:p,currency:e})]})]}),t.jsx(Jc,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Jc({isScrolling:e,isLeaf:o,isOpen:i}){return o||!i?t.jsx(yt,{isScrolling:e,kind:"section_row_separator"}):null}function Qc(){const e=N();return t.jsxs(Xc,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:k.vendorContainerWidth,marginRight:0,children:t.jsx(X,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthMedium,marginRight:0,children:t.jsx(X,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthMedium,marginRight:0,children:t.jsx(X,{width:k.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.varianceRowSkeletonContainerWidth,children:t.jsx(X,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthSmall,children:t.jsx(X,{width:k.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Xc=a.div`
1238
+ `,Zc=({balance:e,color:o})=>t.jsx(Dc,{children:t.jsx(Rc,{color:o,children:Z(e)})}),qc=vn.memo(function({currency:e,sectionId:o,selectedSectionsIds:i,backgroundColor:n,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:j,sectionToggled:v,onSectionCheckboxClick:B}){const L=N(),[M,P]=I.useState(j.length>0),[T,K]=I.useState(!1),H=i.includes(o),Y=!y,q=j.length===Ht&&!H,ue=d?.[0]?.toUpperCase()??"",X=I.useCallback(ne=>{B?.(o,ne.target.checked)},[o,B]);return t.jsxs(Tc,{heightValue:c,bgColor:n,children:[t.jsxs(Vc,{style:{cursor:Y?"pointer":"default"},onClick:()=>v?.(l),onMouseOver:()=>{K(!0),P(!0)},onMouseLeave:()=>{K(!1),j.length===0&&P(!1)},children:[t.jsxs(Gc,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:n,children:[h&&M&&b?t.jsx(Kc,{children:t.jsx(At,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Bt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Hc,{}),checked:H,id:l,disabled:q,onChange:X,onClick:ne=>ne.stopPropagation(),style:{padding:"20px",pointerEvents:q?"none":"auto"}})}):t.jsx(Yc,{}),t.jsx(ye,{color:_(f),showCollapsedIcon:!b,showIcon:T&&Y,firstLetter:ue}),t.jsx(Ec,{color:f.toString(),children:d})]}),t.jsxs(Uc,{children:[u.map((ne,je)=>t.jsx(Zc,{sectionName:d,balance:ne,color:f.toString()},je)),t.jsx(ot,{amount:g,percentage:p,currency:e})]})]}),t.jsx(Jc,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Jc({isScrolling:e,isLeaf:o,isOpen:i}){return o||!i?t.jsx(yt,{isScrolling:e,kind:"section_row_separator"}):null}function Xc(){const e=N();return t.jsxs(Qc,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:k.vendorContainerWidth,marginRight:0,children:t.jsx(Q,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthMedium,marginRight:0,children:t.jsx(Q,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthMedium,marginRight:0,children:t.jsx(Q,{width:k.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.varianceRowSkeletonContainerWidth,children:t.jsx(Q,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:k.titleWidthSmall,children:t.jsx(Q,{width:k.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Qc=a.div`
1239
1239
  display: flex;
1240
1240
  flex-direction: row;
1241
1241
  width: 100%;
@@ -1593,7 +1593,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
1593
1593
  justify-content: center;
1594
1594
  align-items: center;
1595
1595
  margin-left: ${s.sp1};
1596
- `,{common:So,expenseAutomation:Us}=O.getLocalizedStrings(),Zs=({balance:e})=>{const o=As;return t.jsx(Ls,{children:t.jsx(o,{children:Z(e)})})};function qs({fluxAnalysisEntityId:e,idsForReview:o,backgroundColor:i,isSticky:n,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:j,onClick:v,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[M,P]=I.useState(!1),[T,K]=I.useState(o.length>0),H=o.includes(e),Y=o.includes(e),q=c==="collapsed",ue=o.length===Ht&&H===!1,Q=Os,ne=le=>{let pe=o;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Pe=>Pe!==e),L?.(pe)},je=()=>{B?.(x)};return t.jsx($s,{heightValue:l,bgColor:i,children:t.jsxs(_s,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>v?.(r),onMouseOver:()=>{P(!0),K(!0),j?.(x.id)},onMouseLeave:()=>{P(!1),o.length===0&&K(!1),j?.(null)},children:[t.jsxs(Bs,{className:"flux-vendor-name-container",bgColor:i,isSticky:n,children:[t.jsx(Ds,{className:"flux-vendor-checkbox-container",children:T?t.jsx(At,{className:"flux-vendor-checkbox",icon:t.jsx(Bt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Rs,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:ne,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(Fs,{isNodeOpen:b,children:[M?t.jsx(Hs,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(jo,{}):t.jsx(Es,{})}):x.logo!=null?t.jsx(Ot,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Mt,{name:x.name,size:s.sp4}),b?t.jsx(Ai,{height:k.vendorLineComponentHeight}):null]}),t.jsxs(Ms,{children:[t.jsxs(Ws,{children:[t.jsx(Q,{children:x.name}),b?null:t.jsx(Ys,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),M?t.jsx(I.Fragment,{children:t.jsx(Ks,{className:"flux-vendor-chevron-icon",onClick:je,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(jo,{})})}):null]})]}),t.jsxs(Is,{children:[g.map((le,pe)=>t.jsx(Zs,{balance:le,collapsed:q},pe)),t.jsx(ot,{amount:d,percentage:h,currency:u}),t.jsx(zs,{children:f==="Pending Review"?t.jsx(Ts,{children:t.jsx(Vs,{children:So.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ps,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Gs,{children:[t.jsx(Ns,{}),Us.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:hn(p)})]}):So.strings.hyphen})})})]})]})})}const vo={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Js=(e,o)=>e.startsWith("flux_analysis_operating_expense")===!0&&o!=null?vo[o]:vo.default,Kt=(e,o)=>{const{element:i}=e;return i.kind===o&&i.data!=null},Wi=e=>ic(e.balancesByMonth),Qs=(e,o,i,n,r,l,c,d,h)=>{if(!Kt(o,"flux_vendor_account_class_row"))return null;const u=o.element.data,g=Wi(u),p=o.element.metadata.vendorId;return t.jsx(Wc,{backgroundColor:i,isSticky:n,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:o.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},Xs=(e,o,i,n,r,l,c,d,h,u,g)=>{if(!Kt(o,"flux_vendor_row"))return null;const p=o.element.data,f=Wi(p),x=Bi("flux_vendor_row",h),b=y=>{g?.(y),o.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(qs,{backgroundColor:i,isSticky:n,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:o.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:o.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:o.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},ed=(e,o,i,n,r,l,c,d,h,u)=>{if(!Kt(o,"section"))return null;const g=Js(o.config.reportId,o.element.sectionType),p=o.element.data,f=x=>{o.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(qc,{backgroundColor:n,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:o.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:o.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:o.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:c,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:o.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},td=(e,o,i)=>{if(e.element.kind!=="timeframe_headers")return null;const n=Ne(e.element.data,e.config.displayOrder),r=n.length>0?n[0].balanceTimeFrame:"month",l=n.map(d=>A.toTimeframeTick(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(gs,{isSticky:i,height:o,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===Ht,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},od=(e,o)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(vs,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:o})},id=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ic,{}),nd=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Qc,{}),rd=a.div`
1596
+ `,{common:So,expenseAutomation:Us}=O.getLocalizedStrings(),Zs=({balance:e})=>{const o=As;return t.jsx(Ls,{children:t.jsx(o,{children:Z(e)})})};function qs({fluxAnalysisEntityId:e,idsForReview:o,backgroundColor:i,isSticky:n,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:j,onClick:v,handleRedirectToVendorDetailPage:B,updateOperatingExpensesIdsForReview:L}){const[M,P]=I.useState(!1),[T,K]=I.useState(o.length>0),H=o.includes(e),Y=o.includes(e),q=c==="collapsed",ue=o.length===Ht&&H===!1,X=Os,ne=le=>{let pe=o;le.target.checked===!0?pe=[...pe,e]:pe=pe.filter(Pe=>Pe!==e),L?.(pe)},je=()=>{B?.(x)};return t.jsx($s,{heightValue:l,bgColor:i,children:t.jsxs(_s,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>v?.(r),onMouseOver:()=>{P(!0),K(!0),j?.(x.id)},onMouseLeave:()=>{P(!1),o.length===0&&K(!1),j?.(null)},children:[t.jsxs(Bs,{className:"flux-vendor-name-container",bgColor:i,isSticky:n,children:[t.jsx(Ds,{className:"flux-vendor-checkbox-container",children:T?t.jsx(At,{className:"flux-vendor-checkbox",icon:t.jsx(Bt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Rs,{}),checked:H,name:x.name,id:e,disabled:ue,onChange:ne,onClick:le=>le.stopPropagation(),style:{padding:"20px",pointerEvents:ue?"none":"auto"}}):null}),t.jsxs(Fs,{isNodeOpen:b,children:[M?t.jsx(Hs,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(jo,{}):t.jsx(Es,{})}):x.logo!=null?t.jsx(Ot,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Mt,{name:x.name,size:s.sp4}),b?t.jsx(Ai,{height:k.vendorLineComponentHeight}):null]}),t.jsxs(Ms,{children:[t.jsxs(Ws,{children:[t.jsx(X,{children:x.name}),b?null:t.jsx(Ys,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),M?t.jsx(I.Fragment,{children:t.jsx(Ks,{className:"flux-vendor-chevron-icon",onClick:je,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(jo,{})})}):null]})]}),t.jsxs(Is,{children:[g.map((le,pe)=>t.jsx(Zs,{balance:le,collapsed:q},pe)),t.jsx(ot,{amount:d,percentage:h,currency:u}),t.jsx(zs,{children:f==="Pending Review"?t.jsx(Ts,{children:t.jsx(Vs,{children:So.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ps,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Gs,{children:[t.jsx(Ns,{}),Us.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:hn(p)})]}):So.strings.hyphen})})})]})]})})}const vo={generalExpense:{color:new _(V.graphColor04),hoverColor:new _(V.graphColor04Dark)},reimbursement:{color:new _(V.graphColor10),hoverColor:new _(V.graphColor10Dark)},default:{color:new _(ee.neutralGrey2Dark),hoverColor:new _(ee.neutralGrey2Dark)}},Js=(e,o)=>e.startsWith("flux_analysis_operating_expense")===!0&&o!=null?vo[o]:vo.default,Kt=(e,o)=>{const{element:i}=e;return i.kind===o&&i.data!=null},Wi=e=>ic(e.balancesByMonth),Xs=(e,o,i,n,r,l,c,d,h)=>{if(!Kt(o,"flux_vendor_account_class_row"))return null;const u=o.element.data,g=Wi(u),p=o.element.metadata.vendorId;return t.jsx(Wc,{backgroundColor:i,isSticky:n,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:o.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},Qs=(e,o,i,n,r,l,c,d,h,u,g)=>{if(!Kt(o,"flux_vendor_row"))return null;const p=o.element.data,f=Wi(p),x=Bi("flux_vendor_row",h),b=y=>{g?.(y),o.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(qs,{backgroundColor:i,isSticky:n,treeNodeId:e,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:o.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:o.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:o.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},ed=(e,o,i,n,r,l,c,d,h,u)=>{if(!Kt(o,"section"))return null;const g=Js(o.config.reportId,o.element.sectionType),p=o.element.data,f=x=>{o.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(qc,{backgroundColor:n,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:o.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:o.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:o.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:c,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:o.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},td=(e,o,i)=>{if(e.element.kind!=="timeframe_headers")return null;const n=Ne(e.element.data,e.config.displayOrder),r=n.length>0?n[0].balanceTimeFrame:"month",l=n.map(d=>A.toTimeframeTick(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(gs,{isSticky:i,height:o,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===Ht,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},od=(e,o)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(vs,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:o})},id=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ic,{}),nd=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Xc,{}),rd=a.div`
1597
1597
  display: flex;
1598
1598
  flex: 1 1 auto;
1599
1599
  width: fit-content;
@@ -1698,7 +1698,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
1698
1698
  left: ${s.sp0};
1699
1699
  z-index: 20;
1700
1700
  `:null}
1701
- `;function yd({backgroundColor:e,isSticky:o,height:i,isAccountColumnShown:n,isClassColumnShown:r,timeframeTicks:l}){const c=N();return l.length>0?t.jsxs(fd,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(wd,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:o,windowSize:c,bgColor:e,children:[t.jsx(To,{width:w[4],height:w[4]}),t.jsx($o,{windowSize:c,isClubbed:!0,children:t.jsx(X,{width:120,height:w[4]})})]}),t.jsxs(md,{children:[n?t.jsx(_o,{windowSize:c,children:t.jsx(X,{width:120,height:w[4]})}):null,r?t.jsx(_o,{windowSize:c,children:t.jsx(X,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx($o,{windowSize:c,children:t.jsx(X,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(xd,{height:i,bgColor:e,children:t.jsx(dn,{size:"Small",start:!0})})}const bd=a.div`
1701
+ `;function yd({backgroundColor:e,isSticky:o,height:i,isAccountColumnShown:n,isClassColumnShown:r,timeframeTicks:l}){const c=N();return l.length>0?t.jsxs(fd,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(wd,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:o,windowSize:c,bgColor:e,children:[t.jsx(To,{width:w[4],height:w[4]}),t.jsx($o,{windowSize:c,isClubbed:!0,children:t.jsx(Q,{width:120,height:w[4]})})]}),t.jsxs(md,{children:[n?t.jsx(_o,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})}):null,r?t.jsx(_o,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx($o,{windowSize:c,children:t.jsx(Q,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(xd,{height:i,bgColor:e,children:t.jsx(dn,{size:"Small",start:!0})})}const bd=a.div`
1702
1702
  user-select: none;
1703
1703
  display: flex;
1704
1704
  flex: 1 1 auto;
@@ -1986,12 +1986,12 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
1986
1986
  margin-left: ${W.balanceLeftMargin};
1987
1987
  color: ${e=>e.theme.colors.primary};
1988
1988
  border: 1px solid transparent;
1989
- `,Qd=a(Ri)`
1989
+ `,Xd=a(Ri)`
1990
1990
  color: ${e=>e.theme.colors.hero};
1991
1991
  &:hover {
1992
1992
  color: inherit;
1993
1993
  }
1994
- `,Xd=a.div`
1994
+ `,Qd=a.div`
1995
1995
  display: flex;
1996
1996
  flex-direction: row;
1997
1997
  background-color: ${e=>e.bgColor?.hex()};
@@ -2023,7 +2023,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2023
2023
  text-overflow: ellipsis;
2024
2024
  text-align: left;
2025
2025
  color: ${e=>e.theme.colors.primary};
2026
- `,oh=({type:e,balance:o,collapsed:i})=>{const n=i===!0?Qd:Ri;return t.jsx(Jd,{children:ae(e)===!0?t.jsx(n,{children:Z(o)}):null})};function ih({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=N();return t.jsxs(Ud,{"data-testid":m("total-row-root-container",n),height:r,bgColor:o,windowSize:p,children:[t.jsxs(Zd,{"data-testid":m("total-row-container",n),onClick:()=>u?.(n),children:[t.jsxs(Xd,{bgColor:o,windowSize:p,isSticky:i,children:[t.jsx(eh,{bgColor:o,windowSize:p,children:t.jsx(th,{children:l})}),d?t.jsx(Ao,{windowSize:p}):null,h?t.jsx(Ao,{windowSize:p}):null]}),t.jsx(qd,{children:c.map((f,x)=>t.jsx(oh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx($t,{isScrolling:g,kind:"vendor_row_separator"})]})}const nh=a.div`
2026
+ `,oh=({type:e,balance:o,collapsed:i})=>{const n=i===!0?Xd:Ri;return t.jsx(Jd,{children:ae(e)===!0?t.jsx(n,{children:Z(o)}):null})};function ih({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=N();return t.jsxs(Ud,{"data-testid":m("total-row-root-container",n),height:r,bgColor:o,windowSize:p,children:[t.jsxs(Zd,{"data-testid":m("total-row-container",n),onClick:()=>u?.(n),children:[t.jsxs(Qd,{bgColor:o,windowSize:p,isSticky:i,children:[t.jsx(eh,{bgColor:o,windowSize:p,children:t.jsx(th,{children:l})}),d?t.jsx(Ao,{windowSize:p}):null,h?t.jsx(Ao,{windowSize:p}):null]}),t.jsx(qd,{children:c.map((f,x)=>t.jsx(oh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx($t,{isScrolling:g,kind:"vendor_row_separator"})]})}const nh=a.div`
2027
2027
  display: flex;
2028
2028
  flex: 1 1 auto;
2029
2029
  width: fit-content;
@@ -2285,12 +2285,12 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2285
2285
  &:hover {
2286
2286
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2287
2287
  }
2288
- `,Qh=a.div`
2288
+ `,Xh=a.div`
2289
2289
  display: flex;
2290
2290
  flex: 1 0 auto;
2291
2291
  flex-direction: row;
2292
2292
  justify-content: flex-end;
2293
- `,Xh=a.div`
2293
+ `,Qh=a.div`
2294
2294
  display: flex;
2295
2295
  flex-direction: row;
2296
2296
  justify-content: flex-start;
@@ -2336,7 +2336,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2336
2336
  &:hover {
2337
2337
  color: inherit;
2338
2338
  }
2339
- `,iu=({type:e,balance:o,collapsed:i,isActualVsForecastOn:n,compareMode:r})=>{const l=i===!0?eu:Yi;return t.jsxs(Xh,{children:[ae(e)===!0||n?t.jsx(l,{children:Z(o)}):t.jsx(l,{children:J(o)}),n?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(o)}),t.jsx(l,{children:r==="compare_mode_percent"?de(o):he(o)})]}):null]})};function nu({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=N(),j=se(),v=!f,B=v?"pointer":"default",L=l==="collapsed",M=L===!0?ou:Ui,[P,T]=I.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(qh,{"data-testid":m("pandl-account-group-row-root-container",n),height:r,bgColor:o,children:[t.jsxs(Jh,{"data-testid":m("pandl-account-group-row-container",n),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:v,onClick:()=>b?.(n),children:[ge(e)===!0?t.jsxs(tu,{bgColor:o,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:P&&v,firstLetter:K,color:_(j.colors.primary)}),t.jsx(M,{children:c})]}):null,xe(e)===!0?t.jsx(Qh,{children:d.map((H,Y)=>t.jsx(iu,{type:e,accountGroupName:c,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(ru,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function ru({isScrolling:e,type:o,isLastNode:i,isOpen:n}){let r="ac_group_row_separator";return i&&!n?r="section_row_separator":n&&(r=ge(o)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(be,{isScrolling:e,kind:r})}const au=a.div`
2339
+ `,iu=({type:e,balance:o,collapsed:i,isActualVsForecastOn:n,compareMode:r})=>{const l=i===!0?eu:Yi;return t.jsxs(Qh,{children:[ae(e)===!0||n?t.jsx(l,{children:Z(o)}):t.jsx(l,{children:J(o)}),n?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(o)}),t.jsx(l,{children:r==="compare_mode_percent"?de(o):he(o)})]}):null]})};function nu({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:x,onClick:b}){const y=N(),j=se(),v=!f,B=v?"pointer":"default",L=l==="collapsed",M=L===!0?ou:Ui,[P,T]=I.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(qh,{"data-testid":m("pandl-account-group-row-root-container",n),height:r,bgColor:o,children:[t.jsxs(Jh,{"data-testid":m("pandl-account-group-row-container",n),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),style:{cursor:B},isClickable:v,onClick:()=>b?.(n),children:[ge(e)===!0?t.jsxs(tu,{bgColor:o,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:P&&v,firstLetter:K,color:_(j.colors.primary)}),t.jsx(M,{children:c})]}):null,xe(e)===!0?t.jsx(Xh,{children:d.map((H,Y)=>t.jsx(iu,{type:e,accountGroupName:c,balance:H,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(ru,{isScrolling:g,type:e,isLeaf:f,isLastNode:x,isOpen:p})]})}function ru({isScrolling:e,type:o,isLastNode:i,isOpen:n}){let r="ac_group_row_separator";return i&&!n?r="section_row_separator":n&&(r=ge(o)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(be,{isScrolling:e,kind:r})}const au=a.div`
2340
2340
  display: flex;
2341
2341
  flex: 1 1 auto;
2342
2342
  width: fit-content;
@@ -2469,7 +2469,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2469
2469
  border: 1px solid ${e=>e.theme.colors.primary};
2470
2470
  border-radius: ${s.sp1};
2471
2471
  margin: 0 ${s.sp5} 0 ${s.sp3};
2472
- `,ju=({metadata:e,depth:o})=>o===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(gn,{}):t.jsx(fn,{}),Su=({type:e,balance:o,color:i,isActualVsForecastOn:n,compareMode:r})=>t.jsxs(wu,{children:[ae(e)===!0||n?t.jsx(Ke,{style:{color:i},children:Z(o)}):t.jsx(Ke,{style:{color:i},children:J(o)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{style:{color:i},children:J(o)}),t.jsx(Ke,{style:{color:i},children:r==="compare_mode_percent"?de(o):he(o)})]}):null]});function vu({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:j,depth:v}){const B=N(),L=se(),M=!x,P=M?"pointer":"default",T=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[H,Y]=I.useState(!1),q=b.classAncestorMetadata??[];return t.jsxs(fu,{"data-testid":m("class-row-root-container",n),height:r,bgColor:o,children:[t.jsxs(xu,{"data-testid":m("class-row-container",n),style:{cursor:P},onClick:()=>j?.(n),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(yu,{isSticky:i,windowSize:B,bgColor:o,children:[t.jsx(Ir,{name:l,ancestorMetadata:q,depth:v}),t.jsx(ju,{metadata:q[v],depth:v}),t.jsx(ye,{color:_(T),showCollapsedIcon:!f,showIcon:H&&M,firstLetter:K,showTreeLine:g}),t.jsx(bu,{children:t.jsx(ku,{style:{color:T},children:l})}),H===!0&&y===!0&&c!==void 0&&t.jsx(Cu,{children:c})]}):null,xe(e)===!0?t.jsx(mu,{children:d.map((ue,Q)=>t.jsx(Su,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},Q))}):null]}),t.jsx($u,{isScrolling:p,isLeaf:x,isOpen:f})]})}function $u({isScrolling:e,isLeaf:o,isOpen:i}){return o||!i?t.jsx(be,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
2472
+ `,ju=({metadata:e,depth:o})=>o===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(gn,{}):t.jsx(fn,{}),Su=({type:e,balance:o,color:i,isActualVsForecastOn:n,compareMode:r})=>t.jsxs(wu,{children:[ae(e)===!0||n?t.jsx(Ke,{style:{color:i},children:Z(o)}):t.jsx(Ke,{style:{color:i},children:J(o)}),n?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{style:{color:i},children:J(o)}),t.jsx(Ke,{style:{color:i},children:r==="compare_mode_percent"?de(o):he(o)})]}):null]});function vu({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:j,depth:v}){const B=N(),L=se(),M=!x,P=M?"pointer":"default",T=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[H,Y]=I.useState(!1),q=b.classAncestorMetadata??[];return t.jsxs(fu,{"data-testid":m("class-row-root-container",n),height:r,bgColor:o,children:[t.jsxs(xu,{"data-testid":m("class-row-container",n),style:{cursor:P},onClick:()=>j?.(n),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(yu,{isSticky:i,windowSize:B,bgColor:o,children:[t.jsx(Ir,{name:l,ancestorMetadata:q,depth:v}),t.jsx(ju,{metadata:q[v],depth:v}),t.jsx(ye,{color:_(T),showCollapsedIcon:!f,showIcon:H&&M,firstLetter:K,showTreeLine:g}),t.jsx(bu,{children:t.jsx(ku,{style:{color:T},children:l})}),H===!0&&y===!0&&c!==void 0&&t.jsx(Cu,{children:c})]}):null,xe(e)===!0?t.jsx(mu,{children:d.map((ue,X)=>t.jsx(Su,{type:e,sectionName:l,balance:ue,isActualVsForecastOn:h,compareMode:u,color:T},X))}):null]}),t.jsx($u,{isScrolling:p,isLeaf:x,isOpen:f})]})}function $u({isScrolling:e,isLeaf:o,isOpen:i}){return o||!i?t.jsx(be,{isScrolling:e,kind:"section_row_separator"}):null}a.div`
2473
2473
  display: flex;
2474
2474
  flex: 1 1 auto;
2475
2475
  width: fit-content;
@@ -2644,7 +2644,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2644
2644
  clear: both;
2645
2645
  display: inline-block;
2646
2646
  text-align: left;
2647
- `,Du=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=o!=null?A.isCalculatedBalanceType(o?.type):!1,h=r!=null&&o!=null&&c!=null&&d!==!0,u=l===!0?Ho(o):Z(o),g=l===!0?xt(o):J(o),p=l===!0?Ko(o):de(o),f=l===!0?Yo(o):he(o);return t.jsxs(Pu,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&o!=null&&c?.(r,o)},children:u}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ue,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:n==="compare_mode_percent"?p:f})]}):null]})};function Ru({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:j,onClick:v}){const B=N(),L=y!=null?y.id.length-1:0,M=y?.hasSiblings??!1,P=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:K}}}=O.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:H;return t.jsxs(Iu,{"data-testid":m("sub-account-row",n),height:r,bgColor:o,children:[t.jsxs(Fu,{"data-testid":m("sub-account-row-container",n),onClick:()=>v?.(n),children:[t.jsx(Tu,{isClickable:P,isSticky:i,windowSize:B,bgColor:o,containerHeight:r,children:t.jsx(Vu,{title:Y,children:t.jsx(Qo,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:P,hasSiblings:M,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(zu,{children:c.map((q,ue)=>t.jsx(Du,{type:e,isActualVsForecastOn:d,compareMode:h,balance:q,account:y?.account,showTotal:!x,onAccountBalanceClick:j==null?void 0:(Q,ne)=>{j(n,Q,ne)}},ue))}):null]}),t.jsx(Gu,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:p})]})}function Gu({isScrolling:e,depth:o,isOpen:i,isLeaf:n,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||n===!0?t.jsx(be,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:o,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const Eu=[10,14,20,20,20],Hu=a.div`
2647
+ `,Du=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=o!=null?A.isCalculatedBalanceType(o?.type):!1,h=r!=null&&o!=null&&c!=null&&d!==!0,u=l===!0?Ho(o):Z(o),g=l===!0?xt(o):J(o),p=l===!0?Ko(o):de(o),f=l===!0?Yo(o):he(o);return t.jsxs(Pu,{"data-testid":m("account-row-balance-element",e),children:[ae(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&o!=null&&c?.(r,o)},children:u}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:g}),t.jsx(Ue,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:n==="compare_mode_percent"?p:f})]}):null]})};function Ru({type:e,backgroundColor:o,isSticky:i,treeNodeId:n,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:j,onClick:v}){const B=N(),L=y!=null?y.id.length-1:0,M=y?.hasSiblings??!1,P=y!=null?y.children.length!==0:!1,T=u,{common:{strings:{empty:K}}}=O.getLocalizedStrings(),H=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:H;return t.jsxs(Iu,{"data-testid":m("sub-account-row",n),height:r,bgColor:o,children:[t.jsxs(Fu,{"data-testid":m("sub-account-row-container",n),onClick:()=>v?.(n),children:[t.jsx(Tu,{isClickable:P,isSticky:i,windowSize:B,bgColor:o,containerHeight:r,children:t.jsx(Vu,{title:Y,children:t.jsx(Xo,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:P,hasSiblings:M,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:T.subAccountAncestorMetadata,classAnscestorMetadata:T.classAncestorMetadata??[],noMarginForAccount:p})})}),xe(e)===!0?t.jsx(zu,{children:c.map((q,ue)=>t.jsx(Du,{type:e,isActualVsForecastOn:d,compareMode:h,balance:q,account:y?.account,showTotal:!x,onAccountBalanceClick:j==null?void 0:(X,ne)=>{j(n,X,ne)}},ue))}):null]}),t.jsx(Gu,{isScrolling:g,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:p})]})}function Gu({isScrolling:e,depth:o,isOpen:i,isLeaf:n,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||n===!0?t.jsx(be,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:o,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const Eu=[10,14,20,20,20],Hu=a.div`
2648
2648
  display: flex;
2649
2649
  flex: 1 1 auto;
2650
2650
  width: fit-content;
@@ -2706,7 +2706,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2706
2706
  margin-left: ${e=>Eu[e.depth]}px;
2707
2707
  color: ${e=>e.theme.colors.primary};
2708
2708
  width: ${e=>C.titleWidth.value(e.windowSize)-e.depth*80}px;
2709
- `,Qu=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n})=>t.jsxs(Zu,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||i?t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Ho(o)}):t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:xt(o)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:xt(o)}),t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:n==="compare_mode_percent"?Ko(o):Yo(o)})]}):null]});function Xu({type:e,backgroundColor:o,isSticky:i,height:n,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=N(),b=O.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,j=f;return t.jsxs(Hu,{height:n,bgColor:o,children:[t.jsxs(Ku,{children:[t.jsxs(qu,{isSticky:i,windowSize:x,bgColor:o,containerHeight:n,children:[r!=null?t.jsx(qo,{ancestorMetadata:j.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Yu,{windowSize:x}):null,t.jsx(Jo,{ancestorMetadata:j.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Ju,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(Uu,{children:c.map((v,B)=>t.jsx(Qu,{type:e,isActualVsForecastOn:u,compareMode:g,balance:v},B))}):null]}),t.jsx(ep,{isScrolling:p,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function ep({isScrolling:e,nestingLevel:o,isSticky:i,classDepth:n,noMarginForAccount:r}){return t.jsx(be,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:o,isSticky:i,classDepth:n,noMarginForAccount:r}})}const tp=a.div`
2709
+ `,Xu=({type:e,balance:o,isActualVsForecastOn:i,compareMode:n})=>t.jsxs(Zu,{"data-testid":m("sub-account-row-balance-element",e),children:[ae(e)===!0||i?t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:Ho(o)}):t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:xt(o)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:xt(o)}),t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:n==="compare_mode_percent"?Ko(o):Yo(o)})]}):null]});function Qu({type:e,backgroundColor:o,isSticky:i,height:n,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const x=N(),b=O.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,j=f;return t.jsxs(Hu,{height:n,bgColor:o,children:[t.jsxs(Ku,{children:[t.jsxs(qu,{isSticky:i,windowSize:x,bgColor:o,containerHeight:n,children:[r!=null?t.jsx(qo,{ancestorMetadata:j.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Yu,{windowSize:x}):null,t.jsx(Jo,{ancestorMetadata:j.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Ju,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),xe(e)===!0?t.jsx(Uu,{children:c.map((v,B)=>t.jsx(Xu,{type:e,isActualVsForecastOn:u,compareMode:g,balance:v},B))}):null]}),t.jsx(ep,{isScrolling:p,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function ep({isScrolling:e,nestingLevel:o,isSticky:i,classDepth:n,noMarginForAccount:r}){return t.jsx(be,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:o,isSticky:i,classDepth:n,noMarginForAccount:r}})}const tp=a.div`
2710
2710
  user-select: none;
2711
2711
  display: flex;
2712
2712
  flex: 1 1 auto;
@@ -2803,7 +2803,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2803
2803
  `,sp=a.div`
2804
2804
  max-height: 54px;
2805
2805
  min-height: 54px;
2806
- `,Ji=({firstMonthOfFY:e,timeframeTick:o,timeframe:i,dataAvailable:n,bookCloseDate:r})=>{const l=O.getLocalizedStrings().reports,c=r!=null&&n!=null&&(o.balanceType==="default"||o.balanceType==="default_with_percent")?A.getTimeframeTickTag(i,e,o,r,n):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Ii(c,i);return t.jsx(sp,{children:r!=null&&n!=null&&c!=null&&d!=null&&h!=null?t.jsx(Ni,{firstMonthOfFY:e,timeframeTick:o,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(Zi,{isActualVsForecastOn:!1,children:t.jsx(qi,{children:We(e,o,i)})})})},dp=({firstMonthOfFY:e,timeframeTick:o,timeframe:i,isActualVsForecastOn:n,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=O.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${o.currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return n===!0?t.jsxs(cp,{isActualVsForecastOn:n,children:[t.jsx(Zi,{isActualVsForecastOn:n,children:t.jsx(qi,{children:We(e,o,i)})}),t.jsxs(np,{isActualVsForecastOn:n,children:[t.jsx(ft,{children:h.actual}),t.jsx(ft,{children:h.forecast}),t.jsx(ft,{children:t.jsx(Yt,{title:u,titleTextStyle:Nt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Ji,{firstMonthOfFY:e,timeframeTick:o,timeframe:i,dataAvailable:l,bookCloseDate:c})},hp=({firstMonthOfFY:e,timeframeTicks:o,timeframe:i,compareMode:n,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=se(),h=n==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${o[0].currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return t.jsx(rp,{children:o.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(lp,{children:t.jsx(Yt,{title:h,titleTextStyle:Nt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:n,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?c?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(ap,{children:t.jsx(Ji,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function up({type:e,backgroundColor:o,isSticky:i,height:n,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=N();return t.jsxs(tp,{height:n,bgColor:o,children:[ge(e)===!0?t.jsx(ip,{isSticky:i,windowSize:x,bgColor:o,children:" . "}):null,t.jsx(op,{children:l===!0?t.jsx(hp,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(dp,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const lt=(e,o,i,n,r,l,c,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=A.isDashboardClassesViewReport(i.config.reportId)===!0||A.isPAndLClassesViewReport(i.config.reportId)===!0?Si("no_filter",i.config.filterAccountsWithNilBalances):tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(pu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,j)=>{g?.(b,y,j)}})},Ie=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=qt("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=Ei(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,j=i.config.reportId==="operating_expenses";return t.jsx(Ru,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:p,noMarginForAccount:j,onAccountBalanceClick:p==null?void 0:(v,B,L)=>{p?.(v,B,L)}})},ct=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Uh,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Qt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=qt("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(nu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Xt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},st=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},eo=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,o,i,n,r,l,c,d,h)=>{if(o.element.kind!="ac_subentity_total")return null;const u=o.element.data,g=qt("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Ei(g.acBalanceSelector(u),o.config.displayOrder,o.element.numOfBalances),x=o.config.reportId==="operating_expenses"||o.config.reportId==="operating_expenses_by_classes";return t.jsx(Xu,{type:e,backgroundColor:n,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:o.element.metadata,classDepth:p})},ze=(e,o,i,n,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Ne(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(up,{treeNodeId:e,backgroundColor:r,isSticky:l,type:o,height:n,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},Qi=(e,o,i,n,r,l,c,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=te(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=g>1;return t.jsx(vu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:j=>{f?.(j)},metadata:i.element.metadata})},Io=e=>{const{height:o,data:{reportElementData:i,id:n,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=(j,v,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.(j,!u)),e.onNodeClick?.(j,L,v,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(Xi,{id:n,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:o,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},n)})},Xi=e=>e.treeKind==="name_only"?t.jsx(wp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(bp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(yp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(pp,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(gp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(fp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(xp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(mp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(kp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Cp,{...e}):null,pp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,p,f);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,p,f);case"section":return Xt(e,o,i,n,r,l,c,u,d,h,p,f);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return eo(e,o,i,n,r,l,c,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,p,x);case"class":return Qi(e,o,i,n,r,l,c,u,d,h,g,p,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,p,f);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,p);default:return null}},gp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Qt(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return Xt(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return eo(e,o,i,n,r,l,c,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);default:return null}},fp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,p,f);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,p,f);case"section":return $i(e,o,i,n,r,l,c,u,d,h,p,f);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return _i(e,o,i,n,r,l,c,u,d,h,p,f);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,p,f);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,p,x);case"class":return Qi(e,o,i,n,r,l,c,u,d,h,g,p,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,p,f);case"total":return Li(e,o,i,n,r,l,p,d);default:return null}},xp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ec(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return tc(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Qt(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return $i(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return oc(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return _i(e,o,i,n,r,l,c,u,d,h,g,p);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,g,p);case"total":return Li(e,o,i,n,r,l,g,d);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);default:return null}},mp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return Xt(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":return eo(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section_type1":return sl(e,i,n,r,l,c,h);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Qt(e,o,i,n,r,l,c,u,d,h,g,p);default:return null}},wp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return ud(e,o,i,n,r,l,c,u,d,h,g);default:return null}},yp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return Sh(i,n,r,l);case"timeframe_headers":return kh(i,n,l,h,r,u);case"total":return Ch(e,o,i,n,l,c,r);case"vendor_row":return jh(o,i,n,r,l,c,d);case"title_string_only":return vh(i,n,r,l);default:return null}},bp=({id:e,treeKind:o,reportElementData:i,height:n,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ca(i,n,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return va(o,i,n,h,l);case"aging_report_row":return ja(e,i,n,r,l,d,c,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Sa(i,n,l,c,h);default:return null}},kp=({id:e,reportElementData:o,height:i,backgroundColor:n,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(o.element.kind){case"flux_vendor_account_class_row":return Qs(e,o,n,r,l,c,d,f,g);case"flux_vendor_row":return Xs(e,o,n,r,l,u,c,d,h,f,p);case"section":return ed(e,o,i,n,r,l,u,c,d,p);case"timeframe_headers":return td(o,i,r);case"total":return od(o,i);case"loading_in_progress":return id(o);case"headers_loading_in_progress":return nd(o);default:return null}},Cp=({reportElementData:e,height:o,isSticky:i,isLastNode:n})=>{switch(e.element.kind){case"timeframe_headers":return jr(e,i);case"loading_in_progress":return Cr();case"total":return Sr(e,o,i);case"section":return kr();case"title_string_only":return vr(e,o);case"ac_group_report":return $r(e,o,n);default:return null}};function Fo(e,o,i,n){return{data:{defaultHeight:to(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:n??jp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:o,reportElementData:e.reportElementData},treeKind:o,nestingLevel:i,node:e}}function to(e,o,i){return A.isPAndLReport(e)===!0?_r(o):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?fl(o):A.isAgingReport(e)?Tr(o):A.isAccountReconReport(e)?et(o):A.isOpExByVendorReport(e)?pd(o):A.isFluxAnalysisOpExReport(e)?Bi(o,i):Ga(o)}function jp(e,o,i,n){return A.isPAndLReport(e)?Lr(o,n,i):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?xl(o,n):A.isAgingReport(e)?Vr():A.isOpExByVendorReport(e)?gd():A.isFluxAnalysisOpExReport(e)?gc(o):A.isAccountReconReport(e)?$n():Ea(o,n)}const Sp=a.div`
2806
+ `,Ji=({firstMonthOfFY:e,timeframeTick:o,timeframe:i,dataAvailable:n,bookCloseDate:r})=>{const l=O.getLocalizedStrings().reports,c=r!=null&&n!=null&&(o.balanceType==="default"||o.balanceType==="default_with_percent")?A.getTimeframeTickTag(i,e,o,r,n):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=Ii(c,i);return t.jsx(sp,{children:r!=null&&n!=null&&c!=null&&d!=null&&h!=null?t.jsx(Ni,{firstMonthOfFY:e,timeframeTick:o,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(Zi,{isActualVsForecastOn:!1,children:t.jsx(qi,{children:We(e,o,i)})})})},dp=({firstMonthOfFY:e,timeframeTick:o,timeframe:i,isActualVsForecastOn:n,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=O.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${o.currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return n===!0?t.jsxs(cp,{isActualVsForecastOn:n,children:[t.jsx(Zi,{isActualVsForecastOn:n,children:t.jsx(qi,{children:We(e,o,i)})}),t.jsxs(np,{isActualVsForecastOn:n,children:[t.jsx(ft,{children:h.actual}),t.jsx(ft,{children:h.forecast}),t.jsx(ft,{children:t.jsx(Yt,{title:u,titleTextStyle:Nt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Ji,{firstMonthOfFY:e,timeframeTick:o,timeframe:i,dataAvailable:l,bookCloseDate:c})},hp=({firstMonthOfFY:e,timeframeTicks:o,timeframe:i,compareMode:n,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=se(),h=n==="compare_mode_amount"?`${O.getLocalizedStrings().compareMode.changePrefix} ${o[0].currencySymbol}`:O.getLocalizedStrings().compareMode.changePercent;return t.jsx(rp,{children:o.map((u,g)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(lp,{children:t.jsx(Yt,{title:h,titleTextStyle:Nt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:n,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?c?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(ap,{children:t.jsx(Ji,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function up({type:e,backgroundColor:o,isSticky:i,height:n,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const x=N();return t.jsxs(tp,{height:n,bgColor:o,children:[ge(e)===!0?t.jsx(ip,{isSticky:i,windowSize:x,bgColor:o,children:" . "}):null,t.jsx(op,{children:l===!0?t.jsx(hp,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(dp,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},y))})]})}const lt=(e,o,i,n,r,l,c,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=A.isDashboardClassesViewReport(i.config.reportId)===!0||A.isPAndLClassesViewReport(i.config.reportId)===!0?Si("no_filter",i.config.filterAccountsWithNilBalances):tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(pu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:p,onAccountBalanceClick:g==null?void 0:(b,y,j)=>{g?.(b,y,j)}})},Ie=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=qt("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=Ei(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,j=i.config.reportId==="operating_expenses";return t.jsx(Ru,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:g,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:p,noMarginForAccount:j,onAccountBalanceClick:p==null?void 0:(v,B,L)=>{p?.(v,B,L)}})},ct=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=tt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Uh,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Xt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=qt("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=te(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(nu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Qt=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},st=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},eo=(e,o,i,n,r,l,c,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Lt(i.element.title),x=i.element.data,b=te(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Jt,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{p?.(y)}})},Fe=(e,o,i,n,r,l,c,d,h)=>{if(o.element.kind!="ac_subentity_total")return null;const u=o.element.data,g=qt("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=Ei(g.acBalanceSelector(u),o.config.displayOrder,o.element.numOfBalances),x=o.config.reportId==="operating_expenses"||o.config.reportId==="operating_expenses_by_classes";return t.jsx(Qu,{type:e,backgroundColor:n,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:o.element.metadata,classDepth:p})},ze=(e,o,i,n,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Ne(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>A.toTimeframeTick(p));return t.jsx(up,{treeNodeId:e,backgroundColor:r,isSticky:l,type:o,height:n,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},Xi=(e,o,i,n,r,l,c,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=te(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=g>1;return t.jsx(vu,{type:o,backgroundColor:r,isSticky:l,treeNodeId:e,height:n,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:j=>{f?.(j)},metadata:i.element.metadata})},Io=e=>{const{height:o,data:{reportElementData:i,id:n,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,x=(j,v,B)=>{const L=l?u:!u;!l&&B==null&&(p(!u),e.onNodeCollapseToggled?.(j,!u)),e.onNodeClick?.(j,L,v,B)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(Qi,{id:n,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:o,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},n)})},Qi=e=>e.treeKind==="name_only"?t.jsx(wp,{...e}):A.isAgingReport(e.reportElementData.config.reportId)?t.jsx(bp,{...e}):A.isOpExByVendorReport(e.reportElementData.config.reportId)===!0?t.jsx(yp,{...e}):A.isPAndLClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(pp,{...e}):A.isPAndLReport(e.reportElementData.config.reportId)===!0?t.jsx(gp,{...e}):A.isDashboardClassesViewReport(e.reportElementData.config.reportId)===!0?t.jsx(fp,{...e}):A.isDashboardReport(e.reportElementData.config.reportId)===!0?t.jsx(xp,{...e}):A.isCashFlowOrBalanceSheetReport(e.reportElementData.config.reportId)===!0?t.jsx(mp,{...e}):A.isFluxAnalysisOpExReport(e.reportElementData.config.reportId)===!0?t.jsx(kp,{...e}):A.isAccountReconReport(e.reportElementData.config.reportId)===!0?t.jsx(Cp,{...e}):null,pp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,p,f);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,p,f);case"section":return Qt(e,o,i,n,r,l,c,u,d,h,p,f);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return eo(e,o,i,n,r,l,c,u,d,h,p,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,p,x);case"class":return Xi(e,o,i,n,r,l,c,u,d,h,g,p,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,p,f);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,p);default:return null}},gp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Xt(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return Qt(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return eo(e,o,i,n,r,l,c,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);default:return null}},fp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,p,f);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,p,f);case"section":return $i(e,o,i,n,r,l,c,u,d,h,p,f);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return _i(e,o,i,n,r,l,c,u,d,h,p,f);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,p,f);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,p,x);case"class":return Xi(e,o,i,n,r,l,c,u,d,h,g,p,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,p,f);case"total":return Li(e,o,i,n,r,l,p,d);default:return null}},xp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ec(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return tc(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Xt(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return $i(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return oc(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return _i(e,o,i,n,r,l,c,u,d,h,g,p);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,g,p);case"total":return Li(e,o,i,n,r,l,g,d);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);default:return null}},mp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return lt(e,o,i,n,r,l,c,d,h,g,p);case"ac_group_report":return ct(e,o,i,n,r,l,c,u,d,h,g,p);case"section":return Qt(e,o,i,n,r,l,c,u,d,h,g,p);case"section_with_ac_only":return st(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section":return eo(e,o,i,n,r,l,c,u,d,h,g,p);case"calculated_section_type1":return sl(e,i,n,r,l,c,h);case"title_string_only":return Dt(e,o,i,n,r,l,c,u,d,h,g,p);case"ac_subentity_total":return Fe(o,i,n,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return ze(e,o,i,n,r,l,g,f);case"ac_subaccount":return Ie(e,o,i,n,r,l,c,d,u,h,g,p);case"ac_group_subaccount":return Xt(e,o,i,n,r,l,c,u,d,h,g,p);default:return null}},wp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return ud(e,o,i,n,r,l,c,u,d,h,g);default:return null}},yp=({id:e,treeKind:o,reportElementData:i,height:n,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return Sh(i,n,r,l);case"timeframe_headers":return kh(i,n,l,h,r,u);case"total":return Ch(e,o,i,n,l,c,r);case"vendor_row":return jh(o,i,n,r,l,c,d);case"title_string_only":return vh(i,n,r,l);default:return null}},bp=({id:e,treeKind:o,reportElementData:i,height:n,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ca(i,n,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return va(o,i,n,h,l);case"aging_report_row":return ja(e,i,n,r,l,d,c,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Sa(i,n,l,c,h);default:return null}},kp=({id:e,reportElementData:o,height:i,backgroundColor:n,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(o.element.kind){case"flux_vendor_account_class_row":return Xs(e,o,n,r,l,c,d,f,g);case"flux_vendor_row":return Qs(e,o,n,r,l,u,c,d,h,f,p);case"section":return ed(e,o,i,n,r,l,u,c,d,p);case"timeframe_headers":return td(o,i,r);case"total":return od(o,i);case"loading_in_progress":return id(o);case"headers_loading_in_progress":return nd(o);default:return null}},Cp=({reportElementData:e,height:o,isSticky:i,isLastNode:n})=>{switch(e.element.kind){case"timeframe_headers":return jr(e,i);case"loading_in_progress":return Cr();case"total":return Sr(e,o,i);case"section":return kr();case"title_string_only":return vr(e,o);case"ac_group_report":return $r(e,o,n);default:return null}};function Fo(e,o,i,n){return{data:{defaultHeight:to(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:n??jp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:o,reportElementData:e.reportElementData},treeKind:o,nestingLevel:i,node:e}}function to(e,o,i){return A.isPAndLReport(e)===!0?_r(o):A.isDashboardReport(e)===!0||A.isDashboardClassesViewReport(e)===!0?fl(o):A.isAgingReport(e)?Tr(o):A.isAccountReconReport(e)?et(o):A.isOpExByVendorReport(e)?pd(o):A.isFluxAnalysisOpExReport(e)?Bi(o,i):Ga(o)}function jp(e,o,i,n){return A.isPAndLReport(e)?Lr(o,n,i):A.isDashboardReport(e)||A.isDashboardClassesViewReport(e)===!0?xl(o,n):A.isAgingReport(e)?Vr():A.isOpExByVendorReport(e)?gd():A.isFluxAnalysisOpExReport(e)?gc(o):A.isAccountReconReport(e)?$n():Ea(o,n)}const Sp=a.div`
2807
2807
  top: 0;
2808
2808
  left: 0;
2809
2809
  position: sticky !important;
@@ -2818,7 +2818,7 @@ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X
2818
2818
  align-items: center;
2819
2819
  background-color: ${e=>e.bgColor?.hex()};
2820
2820
  box-sizing: border-box;
2821
- `;function vp({height:e,backgroundColor:o,headers:i,treeKind:n,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(Sp,{heightValue:e,bgColor:o,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(Xi,{id:d.id,treeKind:n,reportElementData:d.reportElementData,height:to(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:o,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 $p=(e,o,i)=>function*(){for(let n=0;n<o.length;++n)yield Fo(o[n],e,0,i[o[n].id]??void 0);for(;;){const n=yield;for(let r=0;r<n.node.children.length;++r)yield Fo(n.node.children[r],e,n.nestingLevel+1,i[n.node.children[r].id]??void 0)}},en=I.createContext(void 0);function _p({height:e,kind:o,rootNodes:i,compareMode:n,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:j,nodeOpenStatus:v,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:M,hoveredParentIdProps:P}){const T=I.useRef(null),K=I.useRef(null),H=lo(f?.prevFetchState),Y=lo(f?.prevRefreshFetchState),[q,ue]=I.useState(0),Q=g??K,ne=u??T,je=N(),[le,pe]=I.useState(void 0),[Pe,oo]=I.useState(!1),[Te,io]=I.useState(v),no=(z,oe)=>{io(Object.assign({},Te,{[z]:oe})),B?.(z,oe)},ro=z=>{if(i.contentNodes.length>0)if(Object.keys(z).length>0){const oe={};Object.keys(z).forEach(me=>{oe[me]={open:z[me]}}),ne?.current?.recomputeTree(oe)}else{const oe=i.contentNodes[0].id;ne?.current?.recomputeTree({[oe]:{open:!0}})}};I.useLayoutEffect(()=>{if((!co(y,le)||le==null)&&Q.current!=null){const z=y?.scrollLeft==null?je==="small"?0:Q.current.scrollWidth:y?.scrollLeft;if(y!=null){const oe={scrollTop:y.scrollTop,scrollLeft:z};pe(oe),z!==y?.scrollLeft&&j?.(oe)}Q.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{co(v,Te)||(io(v),ro(v))},[v]),I.useEffect(()=>{const z=Q.current,oe=cn(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const me={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(me),j?.(me)}},50);return z?.addEventListener("scroll",oe),()=>{z?.removeEventListener("scroll",oe)}},[Q,le,j]),I.useEffect(()=>{if(i.contentNodes.length>0){ro(Te);const z=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Pe&&oo(z)}},[Pe,oo,i,ne,Q]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(q+1))},[q,f?.fetchState,f?.isSortApplied,H,Y,f]);const dt=I.useRef(),[tn,on]=I.useState(void 0),nn=()=>{const z=dt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=tn&&(on(z.clientHeight),L?.(z.clientHeight))},ao=I.useCallback($p(o,i.contentNodes,Te),[o,i]),rn={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:o,isSticky:r,compareMode:n,onCompareModeChanged:b};return t.jsx(en.Provider,{value:rn,"data-testid":m("report-tree"),children:p==null?t.jsx(so,{className:d,style:h,ref:ne,innerRef:dt,outerRef:Q,innerElementType:_t,treeWalker:ao,onItemsRendered:nn,height:e,width:"100%",children:z=>t.jsx(Io,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:no,compareMode:n,onCompareModeChanged:b,onToggleCheck:M})}):t.jsx(sn,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:oe})=>t.jsx(so,{className:d,style:h,ref:oe,innerRef:dt,outerRef:Q,innerElementType:_t,treeWalker:ao,onItemsRendered:z,height:e,width:"100%",children:me=>t.jsx(Io,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:no,compareMode:n,onCompareModeChanged:b,onToggleCheck:M,hoveredParentIdProps:P})},q)})})}const _t=I.forwardRef((e,o)=>{const{children:i,style:n,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(en),f=l.headerNodes.reduce((y,j)=>y+to(j.reportElementData.config.reportId,j.reportElementData.element.kind,j.isFirstNode),0),x=c?.left,b=c?.right;return t.jsxs("div",{ref:o,style:{...n,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b},...r,children:[t.jsx(vp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),i]})});_t.displayName="stickyInnerElementType";const Lp=a.div`
2821
+ `;function vp({height:e,backgroundColor:o,headers:i,treeKind:n,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(Sp,{heightValue:e,bgColor:o,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(Qi,{id:d.id,treeKind:n,reportElementData:d.reportElementData,height:to(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:o,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 $p=(e,o,i)=>function*(){for(let n=0;n<o.length;++n)yield Fo(o[n],e,0,i[o[n].id]??void 0);for(;;){const n=yield;for(let r=0;r<n.node.children.length;++r)yield Fo(n.node.children[r],e,n.nestingLevel+1,i[n.node.children[r].id]??void 0)}},en=I.createContext(void 0);function _p({height:e,kind:o,rootNodes:i,compareMode:n,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:j,nodeOpenStatus:v,onNodeCollapseToggled:B,onTreeInnerElementHeightChanged:L,onToggleCheck:M,hoveredParentIdProps:P}){const T=I.useRef(null),K=I.useRef(null),H=lo(f?.prevFetchState),Y=lo(f?.prevRefreshFetchState),[q,ue]=I.useState(0),X=g??K,ne=u??T,je=N(),[le,pe]=I.useState(void 0),[Pe,oo]=I.useState(!1),[Te,io]=I.useState(v),no=(z,oe)=>{io(Object.assign({},Te,{[z]:oe})),B?.(z,oe)},ro=z=>{if(i.contentNodes.length>0)if(Object.keys(z).length>0){const oe={};Object.keys(z).forEach(me=>{oe[me]={open:z[me]}}),ne?.current?.recomputeTree(oe)}else{const oe=i.contentNodes[0].id;ne?.current?.recomputeTree({[oe]:{open:!0}})}};I.useLayoutEffect(()=>{if((!co(y,le)||le==null)&&X.current!=null){const z=y?.scrollLeft==null?je==="small"?0:X.current.scrollWidth:y?.scrollLeft;if(y!=null){const oe={scrollTop:y.scrollTop,scrollLeft:z};pe(oe),z!==y?.scrollLeft&&j?.(oe)}X.current.scroll({left:z,top:y?.scrollTop})}},[y]),I.useEffect(()=>{co(v,Te)||(io(v),ro(v))},[v]),I.useEffect(()=>{const z=X.current,oe=cn(()=>{if(z!=null&&(le==null||z.scrollLeft!==le.scrollLeft||z.scrollTop!==le.scrollTop)){const me={scrollLeft:z.scrollLeft,scrollTop:z.scrollTop};pe(me),j?.(me)}},50);return z?.addEventListener("scroll",oe),()=>{z?.removeEventListener("scroll",oe)}},[X,le,j]),I.useEffect(()=>{if(i.contentNodes.length>0){ro(Te);const z=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";z!==Pe&&oo(z)}},[Pe,oo,i,ne,X]),I.useEffect(()=>{(f!=null&&H==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ue(q+1))},[q,f?.fetchState,f?.isSortApplied,H,Y,f]);const dt=I.useRef(),[tn,on]=I.useState(void 0),nn=()=>{const z=dt.current;z!=null&&z.clientHeight>0&&z.clientHeight!=tn&&(on(z.clientHeight),L?.(z.clientHeight))},ao=I.useCallback($p(o,i.contentNodes,Te),[o,i]),rn={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:o,isSticky:r,compareMode:n,onCompareModeChanged:b};return t.jsx(en.Provider,{value:rn,"data-testid":m("report-tree"),children:p==null?t.jsx(so,{className:d,style:h,ref:ne,innerRef:dt,outerRef:X,innerElementType:_t,treeWalker:ao,onItemsRendered:nn,height:e,width:"100%",children:z=>t.jsx(Io,{...z,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:no,compareMode:n,onCompareModeChanged:b,onToggleCheck:M})}):t.jsx(sn,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:z,ref:oe})=>t.jsx(so,{className:d,style:h,ref:oe,innerRef:dt,outerRef:X,innerElementType:_t,treeWalker:ao,onItemsRendered:z,height:e,width:"100%",children:me=>t.jsx(Io,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:no,compareMode:n,onCompareModeChanged:b,onToggleCheck:M,hoveredParentIdProps:P})},q)})})}const _t=I.forwardRef((e,o)=>{const{children:i,style:n,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=I.useContext(en),f=l.headerNodes.reduce((y,j)=>y+to(j.reportElementData.config.reportId,j.reportElementData.element.kind,j.isFirstNode),0),x=c?.left,b=c?.right;return t.jsxs("div",{ref:o,style:{...n,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b},...r,children:[t.jsx(vp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),i]})});_t.displayName="stickyInnerElementType";const Lp=a.div`
2822
2822
  display: flex;
2823
2823
  flex: 1 0 auto;
2824
2824
  width: ${e=>e.width}px;