@zeniai/web-cockpit-ui 1.15.49-dev → 1.15.50-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 (344) hide show
  1. package/dist/assets/ACHDetailsPage-D2Xav-UW-BWiZ-Bc8.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DgrMh-mY-Bylt20RS.js → AIPerformancePage-DlTdGosv-BKn1Oy_U.js} +104 -104
  3. package/dist/assets/AccountInfoPage-B8-8kUGD-BEAC6yCh.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DeptuP1q-CsYE_k70.js → AccountInfoPageContent-BS2TBUSE-BCLlNmfm.js} +20 -20
  5. package/dist/assets/{AccountLockedInfoModal-CYYkjr3Y-BcAzzzM4.js → AccountLockedInfoModal-aukulrV7-s7lDLksb.js} +11 -11
  6. package/dist/assets/{AccountReconDetailsDrawerPage-jN8KgM4V-yAl3_OHe.js → AccountReconDetailsDrawerPage-kQJld6_N-DFQbdeu8.js} +19 -19
  7. package/dist/assets/AccountRow-BiEYR4Y1-0x0DgsfU.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-CB2gPVUw-D3B_FWzu.js → AccountsPromoCardStack-DBQnDPXQ-ByY919CJ.js} +32 -32
  9. package/dist/assets/AddAddressForCardDrawer-DTnfk8K7-W1_tMZDc.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BlExjuu4-B196FBl9.js → AddToWalletPage-C4EwdLZJ-BDf59l0V.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-D9UyMHCS-CUKIok_T.js → AgingReportsPage-vAvkUfOS-BTtgXal2.js} +7 -7
  12. package/dist/assets/{AllUserItems-DGGAZCTH-DA8Osx0t.js → AllUserItems-qrYg6Gdx-CI4cfipf.js} +11 -11
  13. package/dist/assets/ApAgingDetailPage-BRYQMwo2-BX8bMzFl.js +46 -0
  14. package/dist/assets/{AppBasePage-ANWa38-v-Dui1Sxci.js → AppBasePage-DrE-W6d7-BXIwSS1q.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-UhQJdUmA-CkRUhLQ3.js → AppDrawerContent-ATbZG_cu-DJYf_h0a.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-5MYC1I6k-D8Ej2tQP.js +47 -0
  17. package/dist/assets/{ArAgingChart-CuFQTCRF-BBoOHiTE.js → ArAgingChart-CuzG9AZY-D20yOcSu.js} +6 -6
  18. package/dist/assets/ArAgingDetailPage-DwRkcLEu-BPn8BqM4.js +46 -0
  19. package/dist/assets/{AttachmentView-D6K3YHdZ-Bap3B_dh.js → AttachmentView-BrQRChzc-DmBnJDly.js} +6 -6
  20. package/dist/assets/{BankAccountSection-B51-Hpnt-BDzmY8Fy.js → BankAccountSection-hcKEMs80-IayGgYsa.js} +6 -6
  21. package/dist/assets/BankAccountWarningSection-CpxVDMSZ-4MGZTw8n.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-BeTdU1D7-CvYt_ADS.js → BankConnectionsSettingsPage-Bdw1K00m-BfrIZwzh.js} +30 -30
  23. package/dist/assets/BillDetailPage-D0NLFZXA-Ca284Kwb.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CVBTvKC--CjXFb5TX.js → BillPayApprovalRuleDetailPage-DkpCvYvo--bCxfSFy.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-COiOi09y-D-B4gYTJ.js → BillPayApprovalRulesPage-BEqZD0GU-uvL85aev.js} +19 -19
  26. package/dist/assets/BillPayPromoPage-BMcP4EU5-BVIvwbQi.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-3O1UBtgm-Dsg0n8rt.js → BillPaySetUpPage-WdEdbf16-Cj5_BixU.js} +9 -9
  28. package/dist/assets/BillingSettingsPage-GtRUqSZm-BdxhpxlY.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DAUoo9pq-DkmBDuWQ.js +1 -0
  30. package/dist/assets/{BoxItem-C-VST523-DMPXmLe8.js → BoxItem-CACRFWG2-X3bucjjy.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-9gZbBDL6-DWp5zQxs.js +138 -0
  32. package/dist/assets/{CardNumberSubText-BUvXykSn-DR27wA6E.js → CardNumberSubText-C-oVdziK-B680WGcf.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BhHWEtnP-BIMVCNfp.js → CashbackDetailPage-BhFKSl4p-4MnwVNWx.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-BGqaGwV3-AFT-HAkP.js → ChargeCardDetailPage-D8J6HINu-Bb53RVMq.js} +20 -20
  35. package/dist/assets/{ChargeCardListPage-D5H9U0h8-DeNsZOzv.js → ChargeCardListPage-tdUKyHdz-BUynNnwQ.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-Byme0rAu-ych_Qx-x.js → ChargeCardListTable-CByk3iqX-B66ckaF5.js} +55 -55
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DKW98ipI-DfncT-JI.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BtDyG6dw.js} +34 -34
  38. package/dist/assets/{ChargeCardPromoPage-VSqN0247-7AKJMP0k.js → ChargeCardPromoPage-C4cgx2gm-D0VU2K9B.js} +30 -30
  39. package/dist/assets/{ChargeCardSetupPage-BMitkkOv-DqB6_gbE.js → ChargeCardSetupPage-DtwiTNKA-B7eJu1ZO.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-C_iQ5kBD-CzlgcFfP.js → ChargeCardStatementsPage-B0KPw52e-BeAyJDnJ.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-BaRz0MD0-fXpFUSD5.js → CheckDepositDrawerPage-DKNAXI77-RBR5olq2.js} +15 -15
  42. package/dist/assets/{CollapsableReportTable-C4hqC6Uj-CeOhK0qJ.js → CollapsableReportTable-Cq8bhaYC-BggtU0rR.js} +272 -272
  43. package/dist/assets/{CompanyOfficerDetailsSection-DA62JWZF-28wXvrh9.js → CompanyOfficerDetailsSection-Rk0B5cB5-Bje8HDKM.js} +32 -32
  44. package/dist/assets/{CompanyPassportCard-CDQgqgtJ-Cs-zlaQi.js → CompanyPassportCard-CHaKk74P-DDpNpfNq.js} +12 -12
  45. package/dist/assets/{CompanyPassportPage-DoOtHRwj-7bnAHUeu.js → CompanyPassportPage-DXWXFFKM-GfiP2rfO.js} +20 -20
  46. package/dist/assets/{CompleteProfile-DsEoizlG-DOegmHNH.js → CompleteProfile-ChaWsK6t-CmD-Ajg7.js} +2 -2
  47. package/dist/assets/ConfettiBurst-CdB5fRMt-BV3aXXBM.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-yhWFdRSc.js → ConstrainedInnerElement-BeIpAPjB-CvXQTLMk.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CQGF8m1c-Km9d2S1Z.js → CreateOrEditVendorPage-C_8Jqubo-BeXFdKcj.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DK_T0qbN-Bvmfy85N.js → CreditCardPaymentDrawerPage-lOjOtk28-BP0yToaF.js} +15 -15
  51. package/dist/assets/CurrencySelectField-BDqU4HVy-DnlyHMKA.js +139 -0
  52. package/dist/assets/{CustomerOnboardingActivationPage-DCQ_KqzB-DJtTHAcy.js → CustomerOnboardingActivationPage-DO6NCakm-CAMuBBQX.js} +29 -29
  53. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-DsqzICHM.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-ZTBIaml1-DBfEZVdM.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-BAapr03j.js} +17 -17
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DEq1Mm1I-Dp_05KKK.js → CustomerOnboardingNoStepsPage-CbG5WshV-f-4FUEfq.js} +6 -6
  56. package/dist/assets/{CustomerOnboardingPage-BXch3GVe-Ba_gMD_F.js → CustomerOnboardingPage-DyVyf8oK-B51u1QyT.js} +16 -16
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-D7PFi42F-C_seXYMG.js → CustomerOnboardingProductSuitePage-1F3JfCRp-DRVVAjzS.js} +8 -8
  58. package/dist/assets/{Dashboard-BcjA6DTL-B8wtUrMY.js → Dashboard-Csggwob0-CucBwf-E.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-Ce-jnQbs-CfmLV1Yt.js → DashboardReportPage-DFIdi_I0-CWCqUDts.js} +22 -22
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-C3Ovv-ob-BERUL4nF.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-COgr8Xw5-NWAgf7bV.js → DepositAccTransactionItem-CZ7v1T4S-kDEbOJw2.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-zhPDzJoK-AejpnIWF.js → DepositAccTransactionListPage-FldPGX6K-KLK81P63.js} +4 -4
  63. package/dist/assets/{DomesticWireDetailsPage-2MqIFQbM-BGwsfDe-.js → DomesticWireDetailsPage-C--eZ-UG-BJZT9cWR.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-CfWDWIbC-DcGZOT8A.js → DownloadOverlay-4f9deyJS-B9_tQwKs.js} +26 -26
  65. package/dist/assets/{DrawerPage-CfIhiBhn-A5CC3xdl.js → DrawerPage-roO3xvRT-XI38_I4m.js} +11 -11
  66. package/dist/assets/EditPeoplePage-pi5RclAj-BMVndFcH.js +55 -0
  67. package/dist/assets/EditReimbursementDetailPage-CIUcImns-dOARMfmM.js +865 -0
  68. package/dist/assets/EntityDetailPage-OTKTVNMD-D_gGJiJl.js +18 -0
  69. package/dist/assets/{EntitySummarySection-Bie5ZOV3-BZu2b-HP.js → EntitySummarySection-fBL4TZpT-UlHv9GhZ.js} +32 -32
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BEKF8mo3-DI5Un6My.js → ExpenseAutomationOverviewPage-CnhNINCc-XNKWWalz.js} +47 -47
  71. package/dist/assets/ExpenseAutomationPage-BDLCJbFw-D6CY7q0l.js +1703 -0
  72. package/dist/assets/{ExpressPayPage-C6Jb6WrN-BeqBD08K.js → ExpressPayPage-c8oTCnBR-DDI22yPw.js} +19 -19
  73. package/dist/assets/{FeaturePreviewPage-ev9V1Riy-BV3fE1G1.js → FeaturePreviewPage-DkiAajs2-CWm_NPeh.js} +3 -3
  74. package/dist/assets/{FollowStepsSection-BlgHPyvL-BhwHykaB.js → FollowStepsSection-GaWu1kt9-Dj5MvViw.js} +44 -44
  75. package/dist/assets/GlobalReviewListPage-DEzj0RVG-HfAvAlvB.js +291 -0
  76. package/dist/assets/{InformationCardStack-BkuCjydF-ClSDOapP.js → InformationCardStack-dMFbHUWM-CihvCd5l.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-BFrwV0PC-CZ45PRa1.js → InsightsCardStack-BlXkyuyz-D4zNF2IR.js} +10 -10
  78. package/dist/assets/InsightsSection-D-oCmrir-Sip59hWk.js +27 -0
  79. package/dist/assets/IntegrationsSettingsPage-D-hfghuq-Mtjw-TfK.js +57 -0
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DUNu57zU-B6FHq7_F.js → InternationalWireSwiftDetailsPage-DxdKE300-Ch6ktxWV.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-CkSmhOrS-lLeWAn7t.js +65 -0
  82. package/dist/assets/{InviteFormPage-D8zySzlG-B662YNtS.js → InviteFormPage-BCdalqtP-CVBiHF3V.js} +21 -21
  83. package/dist/assets/{InvitePageListView-DUng4fOl-Bw5RtSsX.js → InvitePageListView-B88FW48q-CtwT_lzJ.js} +63 -63
  84. package/dist/assets/InvitePeoplePage-Z-2L7lWc-ClTTRQa0.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-C8hytmay-CRXs_Kj8.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-Vzj9appY-09K43VT7.js → IssueChargeCardPage-B6wmvbEr-Cv_7MvaD.js} +18 -18
  87. package/dist/assets/{LabeledAddressValue-inaQliHs-Dg9xTHiz.js → LabeledAddressValue-CQrDCgNs-DDPb7wFI.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-BoHS44YO-CKpxgqiE.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-DNMqJzBC-BPs_pf7S.js → LabeledControlledCheckBoxField-BsFqjCpn-C-MKXj71.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField--JYMnWIw-Dm5jwrCs.js → LabeledCountryMultiSelectField-D1fVDYR_-G9fOGY2T.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-C5A14hjp-Dp3zoxD2.js → LabeledCreatableSingleSelectField-Bhka-Faj-ClLZPurA.js} +8 -8
  92. package/dist/assets/LabeledDocumentField-CnRk5aKZ-CzOQUZqO.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BVtRyAo1-706o2HXB.js → LabeledDropDownFormattedTextField-ChgtJqPr-CsaX1P25.js} +7 -7
  94. package/dist/assets/LabeledText-2EDpuXZ4-a0ADggfE.js +42 -0
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DXTzXLuP-C7ZxqrMf.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-D8_YdZ3M.js} +19 -19
  96. package/dist/assets/{LabeledZeniRolesDropDownField-C0AamFZX-DtH7B1QB.js → LabeledZeniRolesDropDownField-CpH0eDWO-6StOP0Bl.js} +28 -28
  97. package/dist/assets/{LinkJETransactionPage-DWjs72Wp-CUQI1Z1j.js → LinkJETransactionPage-BhV2MnCY-C5nCEtkl.js} +16 -16
  98. package/dist/assets/{LockCardPage-CPUbpfrv-3LEgf1Eq.js → LockCardPage-CHv1xi2J-Cv1DZ57L.js} +217 -217
  99. package/dist/assets/{LowBalancePopup-Cg-JRo7A-zj6pzOkP.js → LowBalancePopup-Cb55PGLc-C-9hACKT.js} +6 -6
  100. package/dist/assets/MagicLinkACHDetailsPage-Dnp01hnF-C_YtTDeW.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-B36rsikS-x-i9NvXL.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-Zo4oNZez-SOQoBcnA.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-09NLbjFG-D7qzUiN9.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-D5RIlimx-5X1vjx5k.js → MagicLinkTitleSection-BA-i6vzA-DvG_5pI3.js} +5 -5
  105. package/dist/assets/MailingDetailsSection-EwtoQ2TZ-DY2G7v7G.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D55M4Yo6-DWI72gIp.js → MyBankConnectionsSettingsPage-Aer6AWxY-OPBcC9m9.js} +14 -14
  107. package/dist/assets/MyPendingActivationChargeCardListPage-Ddy4bAEY-DCzEYRtr.js +6 -0
  108. package/dist/assets/MyProfileSettingsPage-DMz-6h9F-DFvmYVLb.js +85 -0
  109. package/dist/assets/NavBarWithPicker-D8WNahg--C0o9Lnmp.js +30 -0
  110. package/dist/assets/{NavigationArrow-CqK2Gxhj-JoTM067o.js → NavigationArrow-kQWS5Pzb-C4S_N1iY.js} +7 -7
  111. package/dist/assets/{NavigationDots-C7DGhAsk-BigsWf2H.js → NavigationDots-BQb_Fodq-C-HossK2.js} +4 -4
  112. package/dist/assets/{NewGlobalMerchantPage-BH4SIY-b-IspkGBWL.js → NewGlobalMerchantPage-z86XZorn-DwDob9mX.js} +40 -40
  113. package/dist/assets/NoDataChart-CyYJ6icu-Ceu_3WWQ.js +26 -0
  114. package/dist/assets/{NoDataTable-B355xDAT-DcAZ4j4d.js → NoDataTable-DVe7sQhD-BBFOa9Zf.js} +1 -1
  115. package/dist/assets/{NotFoundPage-Bfp9Pyxw-DVJn2b4k.js → NotFoundPage-B1XCmhSe-DdSt4ytI.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-1OEolmCL-DbOSpAhH.js → NotificationSettingsPage-BaN20EGV-Dm0Kwnze.js} +20 -20
  117. package/dist/assets/NotificationsListConfig-BOW_TmPC-DUp1zUEg.js +1 -0
  118. package/dist/assets/NotificationsPage-C9efAgjo-CBn4Fnze.js +685 -0
  119. package/dist/assets/OpExByVendorPage-DXeBU3-z-DGRhEX_U.js +100 -0
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-CR2TYg0o.js → OverlayContainerPage-D4QU0p4o-DbSGoowZ.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-ChIPvp4R-qyv7RUis.js → PandLWithForecastPage-CXtJhnA_-BFrCmEg5.js} +11 -11
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CnpmZxaM-COq_RoPw.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-Bh7-OVHS.js} +13 -13
  123. package/dist/assets/PeoplePage-DXC2CtOt-4lEc5swH.js +675 -0
  124. package/dist/assets/{Preview-qBYtkSAF.js → Preview-g00Qv-CI.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-eVPl5t0I-BGcfqmV6.js → ProductsCarousel-ufZlh7Rx-YeOo5bg7.js} +7 -7
  126. package/dist/assets/{PromoBaseCards-HrcAWM4W-BKT0vHPP.js → PromoBaseCards-D2UbhBhT-Dd_eb1rN.js} +4 -4
  127. package/dist/assets/{QBOConnectionDialog-DgyYkEYY-Cpn7NAss.js → QBOConnectionDialog-BrQ71F06-BFCLzqHE.js} +6 -6
  128. package/dist/assets/QBOSetupSection-EOFscEW--BS9o_yyg.js +79 -0
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BbEMTVlp-CzXU9rgb.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-UTev4YQ6.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-B_1m9CBx-CabMdysS.js → ReimbursementApprovalRulesPage-CMpYn5y_-BTiJVJE0.js} +18 -18
  131. package/dist/assets/ReimbursementDetailPage-CfmICHZb-B78GpO_0.js +314 -0
  132. package/dist/assets/{ReimbursementPromoPage-C4bxCDcc-yn3a9m-2.js → ReimbursementPromoPage-DXTAY8c7-D8cCc8YJ.js} +32 -32
  133. package/dist/assets/{ReimbursementSetUpPage-BkJ1-eNw-DtguijtQ.js → ReimbursementSetUpPage-KrGPXTCb-DUpAQJx9.js} +12 -12
  134. package/dist/assets/ReimbursementsBulkReviewDrawerPage-l2mYNEKn-DolkTDgY.js +1 -0
  135. package/dist/assets/{ReloadCard-DrAfrMOy-Dp01MRiJ.js → ReloadCard-vAhL7B8U-DZ4WBcY6.js} +8 -8
  136. package/dist/assets/ReportTableViewSelector-Y97ney3W-CBFTsSDh.js +150 -0
  137. package/dist/assets/{ReportsPage-E9MU25NS-BG-K0aaI.js → ReportsPage-DKM0gVzR-Bgk3sBQb.js} +4 -4
  138. package/dist/assets/{RevenueChart-CzVs6lFB-CetzZFOl.js → RevenueChart-BEjDS1u4-DgwGxFpp.js} +13 -13
  139. package/dist/assets/{ReviewDetailsPage-DR0MCIgO-DeTv48zq.js → ReviewDetailsPage-BlQLrN9z-qgNa8kL5.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-jDgQyzfL-CrHwzWa9.js → ReviewOverlay-Bn3TFqfi-BnMlRqTB.js} +24 -24
  141. package/dist/assets/RoleWithToolTip-DhBFvJea-DHVvHPTc.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D47R-Lyr-CZpPEcr2.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-B3WrOgao.js} +13 -13
  143. package/dist/assets/{ScheduleDetailsPage-DYNnVOEv-D18lxUWs.js → ScheduleDetailsPage-BP0wdtoP-C14XLmp4.js} +3 -3
  144. package/dist/assets/ScheduleSequenceTable-D-rZ4ftr-DIny0FLI.js +324 -0
  145. package/dist/assets/{ScreenRoutes-CyJpBFvr.js → ScreenRoutes-DskSNpKQ.js} +48 -48
  146. package/dist/assets/{SetUpAccountSection-Bq2qSGml-DouG9J1c.js → SetUpAccountSection-CoVrSSYL-BK8eb8iH.js} +7 -7
  147. package/dist/assets/SignIn-BoAejo7r-C4az_GoA.js +491 -0
  148. package/dist/assets/SignInScreen-Di7l6F78.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-D3eISFuA-BJKHzfnG.js +134 -0
  150. package/dist/assets/{SpendManagementPerTabPage-RLv6LS-z-CYo8kes0.js → SpendManagementPerTabPage-BWDjZyLp-B3fMmOF_.js} +114 -114
  151. package/dist/assets/{SpendManagementSection-DJfAJzAL-ig4GL1ZT.js → SpendManagementSection-D8rBpC-y-aWPmGHDr.js} +22 -22
  152. package/dist/assets/StatementItem-Cu6dlAsl-CEMP7iv_.js +31 -0
  153. package/dist/assets/{StatementsPage-BgYeg1T4-C88dmgbV.js → StatementsPage-DiY2BOcu-BFWv5aAG.js} +5 -5
  154. package/dist/assets/{StatusSwitcher-C4MmXvmy-xYxIiuBt.js → StatusSwitcher-B9MARTyR-RwzQ_fCz.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-UW2b0f3g-Dn63h3aS.js → SubTabSwitcher-C3rtSwro-BMElQQQG.js} +2 -2
  156. package/dist/assets/{SummaryCard-BLqrfWMN-BoOQqfaJ.js → SummaryCard-CShVbqhj-Dhj3DzIG.js} +1 -1
  157. package/dist/assets/TaskManagementPage-RVS8nv0n-BsJrrOep.js +508 -0
  158. package/dist/assets/{TimeRangeSwitcher-NHpll2Zg-Dr20odtf.js → TimeRangeSwitcher-DFnX6_WT-CZfjpBqG.js} +4 -4
  159. package/dist/assets/TimeframeSwitcher-CW08yYgo-ComQ5EHq.js +31 -0
  160. package/dist/assets/TimeframeSwitcherWithToggle-DJOCWqpZ-Bk-ycr2q.js +31 -0
  161. package/dist/assets/{TopExCard-BKUm1fVu-CdS4qfxw.js → TopExCard-dI_WEGWb-BU3wMngO.js} +6 -6
  162. package/dist/assets/{TopExDetailPage-BpaKGiXB-_eDwMn8-.js → TopExDetailPage-BWy5E8Lp-DtvjK_xS.js} +18 -18
  163. package/dist/assets/TransactionActivityLogPage-DjhEIUYm-DnNtacww.js +195 -0
  164. package/dist/assets/TransactionDetailPage-CuxqQd8U-XsnlScFV.js +903 -0
  165. package/dist/assets/TransactionList-80KjM8Kg-CbkPg3Zf.js +153 -0
  166. package/dist/assets/{TransactionListBig-C1i2HOEm-BoHPxhV4.js → TransactionListBig-DWQXH4ID-DD5UPGD_.js} +18 -18
  167. package/dist/assets/TransactionListPage-DC08rCC9-dt6exeNm.js +35 -0
  168. package/dist/assets/{TransactionVendorDetailPage-BhEUsSHE-DWkVZWnN.js → TransactionVendorDetailPage-CzfJ5b_3-CL7XOBkn.js} +15 -15
  169. package/dist/assets/{TransferDrawerPage-enFS8KsH-pWKe3GIV.js → TransferDrawerPage-6z-MoZZP-Dp04U_Kt.js} +29 -29
  170. package/dist/assets/{TreasuryOverviewPage-BT--Br6F-DZD_F62z.js → TreasuryOverviewPage-CF_ter0o-BGqEPdpU.js} +36 -36
  171. package/dist/assets/{TreasuryPromoPage-DsUxXGv2-CbCXpGfI.js → TreasuryPromoPage-Do-PTcjI-2DZrhiFT.js} +27 -27
  172. package/dist/assets/{TreasuryStatementsPage-D7NeRKLM-FnJOs5A5.js → TreasuryStatementsPage-l_HC4zsb-lMujmf6c.js} +3 -3
  173. package/dist/assets/{TreasuryTaxLetterPage-Cj6nJmhq-eRbAIBG9.js → TreasuryTaxLetterPage-B8YxWytK-BmggpXbf.js} +3 -3
  174. package/dist/assets/{TrendChart-CWaL1-sD-jHXMg1Jt.js → TrendChart-C6B61CAm-Ye7o4G34.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-ULrBa2b0-DV504Izy.js → TrendWithTransactions-Bp3vhaPa-B97DwabO.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-D8b01XUy-DqqC0SGI.js → UncategorizedAccountsMappingPage-cbFqKAv4-DRcpc90f.js} +18 -18
  177. package/dist/assets/{UnitIntegrationPage-KbEwifey-DfbiDH3c.js → UnitIntegrationPage-DZ0ZpE5p-BO2em7A8.js} +5 -5
  178. package/dist/assets/UploadAdditionalDocumentOverlay-BKY6hK51-XuWx6jLi.js +38 -0
  179. package/dist/assets/Vendor2FAPopup-DezpDfp8-BubnwwOl.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-C8TWKYfc-C1dwXSNh.js +1 -0
  181. package/dist/assets/{VendorDetailPage-BwbESVFq-BHZW_2ez.js → VendorDetailPage-C4g_Gfsl-Bc5VCqyN.js} +89 -89
  182. package/dist/assets/VendorDomesticWireDetailsPage-BhJQ-Vmn-BdLmKxae.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Dycvl3IG-DtHtcSbL.js → VendorFiling1099EditablePage-Ckt2MiVN-Dvui8jZZ.js} +15 -15
  184. package/dist/assets/VendorFirstReviewPage-CIKRaTax-ChJc6Bvu.js +730 -0
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Di0TU5Db-B1HiqwDL.js → VendorInternationalWireDetailsPage-Dz8mMD8d-s76HnOyI.js} +22 -22
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XcV7Ot44-BrH5PbpD.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-BPuqPLC8-CD6vaKdE.js → VendorsAccountsSection-BT-RADSV-D8dDuRZ5.js} +4 -4
  188. package/dist/assets/{VerifyDevice-BRCRNTf1-Dw4vKeVk.js → VerifyDevice-Cxc9CVMi-DsFVHfxT.js} +11 -11
  189. package/dist/assets/{VideoPlayer-BgWCDJp3-CbPNc--2.js → VideoPlayer-9UkKMhGy-CfYKM_4G.js} +2 -2
  190. package/dist/assets/{VideoPopup-ckAw3yZZ-CPBR9ffY.js → VideoPopup-rfiYmtio-cGZkVWLj.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-D0VOjlPL-Cmk9Gclc.js → WarningsDrawerPage-DrUA4asI-D1jrLnQQ.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-DxdKUJ_i-8Rps5gMW.js → ZeniAccountDetailPage-K016HgQt-CpwqGrdv.js} +24 -24
  193. package/dist/assets/{ZeniAccountListViewPage-DxCB40sG-D7wpBJpb.js → ZeniAccountListViewPage-1oZZynB1-CTCKXOm1.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-D7o4_8jk-DU75NHos.js → ZeniAccountNavBarPieces-C6Oicpue-CDronLj9.js} +3 -3
  195. package/dist/assets/{ZeniAccountPromoPage-BlfBjcVV-D8slteBQ.js → ZeniAccountPromoPage-BCgys-YM-B4PBTYBK.js} +22 -22
  196. package/dist/assets/ZeniAccountSetupPage-BubBgkoa-ED0NkT0J.js +36 -0
  197. package/dist/assets/ZeniCopyright-BxIwmms--CB7vwHQ2.js +1 -0
  198. package/dist/assets/{ZeniTransferAmountSlider-yfG_RSE5-Chw30zZt.js → ZeniTransferAmountSlider-DVJ0puXA-BbQe3edZ.js} +11 -11
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DgloNLoG.js → add-to-wallet-DgdBD8_G-F5LVW0PA.js} +1 -1
  200. package/dist/assets/{analytics-BxsZVqMD.js → analytics-CahM0ApT.js} +30 -30
  201. package/dist/assets/{analyticsHelper-YXL3oVeL-st_q3oRE.js → analyticsHelper-CT5zOInj--DKtKqan.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BROaWFlP.js → analyticsHelper-Dt-Wvzj6.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-Cgw5LgRs.js → arrow-south-east-round-PEovUgvH-CEqKeUmQ.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DEP8Cseu.js → auto-transfer-rule-mbafm5D3-CoGwDI0h.js} +1 -1
  205. package/dist/assets/{chartTypes-BPQ65VEE-6yZpeJsO.js → chartTypes-Ddw_3-6f-iughbCu_.js} +1 -1
  206. package/dist/assets/commonDimensions-ClmbdehE-Cl9ebfDm.js +1 -0
  207. package/dist/assets/{commonTypes-WZYufpaN-dYh7B5Qi.js → commonTypes-B-foaEwJ-Dxy4bmoK.js} +1 -1
  208. package/dist/assets/{constants-cBgt-jnp.js → constants-DLQpBQr_.js} +1 -1
  209. package/dist/assets/{core-CCdM5htn.js → core-DhOBLUcR.js} +1 -1
  210. package/dist/assets/{dash.all.min-BhdX5A-b.js → dash.all.min-D9C7dpy1.js} +1 -1
  211. package/dist/assets/{detailCommon-cqZF9ZV8-CcqFhiCw.js → detailCommon-Cpgf9GLg-CVrer6Nv.js} +6 -6
  212. package/dist/assets/downloadPdf-DfRYmfsd-Ci0FssC9.js +1 -0
  213. package/dist/assets/{empty-21UCvCWa.js → empty-B0kqq7AF.js} +1 -1
  214. package/dist/assets/{empty-Ci7PTPdn.js → empty-DXLckAFq.js} +1 -1
  215. package/dist/assets/epic-CTsLkOVJ.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-fL_gav59.js → gift-box-Cmt9OgIZ-7HACeG8S.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CsPk6hIb.js → graphic-no-data-l-DU4J8fDt-DXaGx8Uq.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CK0OnqK_.js → graphic-no-data-net-burn-l-CzmycA0m-DMYfos4l.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-CJV_gJfO.js → handshake-BPg58FML-C3Tu6ob6.js} +1 -1
  220. package/dist/assets/{helper-GwFcgf4f-QTj7P4Bk.js → helper-DP3YY99s-Dat90eJR.js} +3 -3
  221. package/dist/assets/{index-DBail5F5.js → index-58NM9fG5.js} +1 -1
  222. package/dist/assets/{index-BsaB-Va2.js → index-BA-jk0ze.js} +1 -1
  223. package/dist/assets/{index-C96UtQPZ.js → index-BPjVYw8N.js} +1 -1
  224. package/dist/assets/{index-D2yPgh5G.js → index-CNYrrT7d.js} +1 -1
  225. package/dist/assets/{index-8HE4yJ5t.js → index-CNbvhErF.js} +1 -1
  226. package/dist/assets/{index-DQtDqiLj.js → index-DDUTPJHS.js} +1 -1
  227. package/dist/assets/{index-Cq3X29cS.js → index-DmMELGnq.js} +4589 -4594
  228. package/dist/assets/{lexical-BfjdJw9p.js → lexical-CjsD_DZd.js} +1 -1
  229. package/dist/assets/{liveblocks-hPir54fv.js → liveblocks-Ckq-Ca_6.js} +1 -1
  230. package/dist/assets/{lottie-B9oE3WTk.js → lottie-D9uGWJnR.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-C0YIUOnb-DzM3IPUV.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BR34hkWh-Dcg0Ex62.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-CWbZz_DM.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-DKDsz0vw-DY4vMoqX.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-DqDJAeAj-DQV8mQPm.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-J3b1nb_T-CdLTDjgE.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-DT3UAyAi.js +1 -0
  237. package/dist/assets/{mui-DzE-7sTl.js → mui-D89AqdoX.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-CU2PSbaV.js → page-detail-CWX5S47F-DbQrivxF.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-CzfD5-Zs-D4-lfmac.js +4 -0
  240. package/dist/assets/{radio-default-CiSgisfh-Bxc-V1Pu.js → radio-default-CiSgisfh-raG5dxC1.js} +1 -1
  241. package/dist/assets/{react-CCRxUGC8.js → react-7Ri_94Fu.js} +3 -3
  242. package/dist/assets/{react-CI8KeqtZ.js → react-BVKhHWWR.js} +1 -1
  243. package/dist/assets/{react-iFe9VXnX.js → react-C00KSCiy.js} +1 -1
  244. package/dist/assets/{react-BZ8J0jw1.js → react-C7JpWPz-.js} +2 -2
  245. package/dist/assets/{react-BldneNt8.js → react-CawXqPwY.js} +1 -1
  246. package/dist/assets/{react-DukPPAPu.js → react-CmfaUpNO.js} +1 -1
  247. package/dist/assets/{react-IwpftXW_.js → react-CwOq2FWn.js} +1 -1
  248. package/dist/assets/{react-CrnvOta1.js → react-GdMEeNvP.js} +1 -1
  249. package/dist/assets/{recharts-CiLmNGsl.js → recharts-BGD0T3Yu.js} +1 -1
  250. package/dist/assets/{sentry-DQ_HstYV.js → sentry-D7VPqxYq.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-B21f1_cN.js → shield-DOlUxcFf-BJuX-oII.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-AzKAZ-Cv-BQ5-SiQ7.js +1 -0
  253. package/dist/assets/toChartData-BEjMhb7--Ci9QGOR0.js +1 -0
  254. package/dist/assets/{uploadAttachment-htF-2xC2-BK-WmHcD.js → uploadAttachment-DUpHzqMe-BsXZIlq1.js} +21 -21
  255. package/dist/assets/uploadReceipts-Dge0cNF1-DZBMoenL.js +1 -0
  256. package/dist/assets/{url-D8jqtRfm.js → url-BmPGVW_-.js} +1 -1
  257. package/dist/assets/{url-vYaM0QEj.js → url-DKbKH14f.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-BEGNcNvC.js → useLongPress-GCK2COYQ-BEJWN3qx.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-R5RCG5WU.js → usp-line-BBd1wKwW-5sdZ_HyE.js} +1 -1
  260. package/dist/assets/{utils-wDk5ojg7.js → utils-HSFXD1Qz.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-B4gyGBI3.js → zeni-epic-state-C513CLlc.js} +34 -34
  262. package/dist/index.html +1 -1
  263. package/package.json +4 -4
  264. package/dist/assets/ACHDetailsPage-CXIFSMnN-Coq6wI87.js +0 -21
  265. package/dist/assets/AccountInfoPage-WkSEcWJL-CkOnNoKS.js +0 -18
  266. package/dist/assets/AccountRow-C7_pSX9U-C_uj4ob-.js +0 -298
  267. package/dist/assets/AddAddressForCardDrawer-BiaLjcnj-DwcRtJ6c.js +0 -6
  268. package/dist/assets/ApAgingDetailPage-C-whdj9K-JXlpGLx8.js +0 -46
  269. package/dist/assets/ApprovalRulesSettingsPage-BdNNS-TS-C1VrdMxf.js +0 -47
  270. package/dist/assets/ArAgingDetailPage-CQRhI5Z_-Db-Z6Fvw.js +0 -46
  271. package/dist/assets/BankAccountWarningSection-Bqrm3j-y-DAe6VsjZ.js +0 -51
  272. package/dist/assets/BillDetailPage-GenRHQg3-fgN7wk2K.js +0 -266
  273. package/dist/assets/BillPayPromoPage-C-lZ36kT-Cmn31Ydv.js +0 -84
  274. package/dist/assets/BillingSettingsPage-ButDt4sV-CDAA93m9.js +0 -44
  275. package/dist/assets/BillsBulkReviewDrawerPage-DngjFR3H-BSt2ez3P.js +0 -1
  276. package/dist/assets/BusinessVerificationPage-CnF2Rkda-BxUtCmxb.js +0 -138
  277. package/dist/assets/ConfettiBurst-D_bNA5jm-AxnjtqGp.js +0 -1
  278. package/dist/assets/CurrencySelectField-7to_rmTp-D1r0SB0Y.js +0 -139
  279. package/dist/assets/CustomerOnboardingContainerPage-DMF9BtF3-COJ-Wyve.js +0 -1
  280. package/dist/assets/DashboardSidebarBackgroundAnimation-JT601qzy-CkG1z_mx.js +0 -12
  281. package/dist/assets/EditPeoplePage-D25vo51x-BKCEnPp5.js +0 -55
  282. package/dist/assets/EditReimbursementDetailPage-DnFC_tCw-Cr7fsauQ.js +0 -865
  283. package/dist/assets/EntityDetailPage-C9vgxsh4-Dg0LhTdP.js +0 -18
  284. package/dist/assets/ExpenseAutomationPage-DiJoZGeD-lfenglhX.js +0 -3001
  285. package/dist/assets/GlobalReviewListPage-Ck-LItUj-B8rLujq7.js +0 -291
  286. package/dist/assets/InsightsSection-BdLDesVF-oVNFlqx0.js +0 -27
  287. package/dist/assets/IntegrationsSettingsPage-skBb_52w-D47eLHv2.js +0 -57
  288. package/dist/assets/InternationalWireVerificationPage-D1_fj0MG-Bu9SiBen.js +0 -65
  289. package/dist/assets/InvitePeoplePage-C0bQFMoO-C-nWyYL8.js +0 -12
  290. package/dist/assets/InvoiceUploadSection-CVOHcfdx-FSNHIS5V.js +0 -140
  291. package/dist/assets/LabeledAddressValueField-B6IDZIGK-SXi-bQ86.js +0 -45
  292. package/dist/assets/LabeledDocumentField-DXd7BAH7-EzfLYbDV.js +0 -41
  293. package/dist/assets/LabeledText-B0bwznDi-CbaJVeOz.js +0 -42
  294. package/dist/assets/MagicLinkACHDetailsPage-CUhe4LF8-C2tbOI9Z.js +0 -1
  295. package/dist/assets/MagicLinkDomesticWireDetailsPage-DRiOxSts-fgdDLLEw.js +0 -1
  296. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwCrgk9X-BJyrM3xf.js +0 -1
  297. package/dist/assets/MagicLinkSuccessPage-UOywm1sp-BBCToRwV.js +0 -31
  298. package/dist/assets/MailingDetailsSection-OYOVCPaq-B5APfdaG.js +0 -21
  299. package/dist/assets/MyPendingActivationChargeCardListPage-SxpMobOC-QJU8xHLH.js +0 -6
  300. package/dist/assets/MyProfileSettingsPage-DLvCW9dl-3UYEbBEM.js +0 -85
  301. package/dist/assets/NavBarWithPicker-zd1BopIw-dYFUtFeu.js +0 -30
  302. package/dist/assets/NoDataChart-Vz2Z_iIL-BHz7pPoV.js +0 -26
  303. package/dist/assets/NotificationsListConfig-B5Ei8fVY-6YLjvq8F.js +0 -1
  304. package/dist/assets/NotificationsPage-ChGr8-XF-VM1F0z8s.js +0 -685
  305. package/dist/assets/OpExByVendorPage-ae4FK1p6-CuNG361W.js +0 -100
  306. package/dist/assets/PeoplePage-D8pfeVRK-n6UzH76T.js +0 -727
  307. package/dist/assets/QBOSetupSection-C4KJ5iyA-DQVhDTXa.js +0 -79
  308. package/dist/assets/ReimbursementDetailPage-8i30hIr0-Dsm2Dpy8.js +0 -314
  309. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CYZGBUms--1POKdZc.js +0 -1
  310. package/dist/assets/ReportTableViewSelector-DM_Em4lI-DVoP-nO6.js +0 -150
  311. package/dist/assets/RoleWithToolTip-zLU58xb1-CSAiI1iT.js +0 -22
  312. package/dist/assets/ScheduleSequenceTable-CCHqmNhS-C5vei5ej.js +0 -324
  313. package/dist/assets/SignIn-Lqp6Uw4I--saqLsOx.js +0 -491
  314. package/dist/assets/SignInScreen-Crh_lnSg.js +0 -1
  315. package/dist/assets/SpendManagementListViewPage-DUBWXnF--DVg116ep.js +0 -134
  316. package/dist/assets/StatementItem-DWaejUx_-C8v9F3EQ.js +0 -31
  317. package/dist/assets/TaskManagementPage-BmOv6jb0-DMzDUJnW.js +0 -508
  318. package/dist/assets/TimeframeSwitcher-DR4B6ENA-CD0Ac63k.js +0 -31
  319. package/dist/assets/TimeframeSwitcherWithToggle-DlZ34Erl-BkLOXZy3.js +0 -31
  320. package/dist/assets/TransactionActivityLogPage-C4oS0b8d-5ZoA1pgW.js +0 -195
  321. package/dist/assets/TransactionDetailPage-Dz5UCI7c-DCbRyu-c.js +0 -903
  322. package/dist/assets/TransactionList-7sC4Vvux-BdQNJsG3.js +0 -153
  323. package/dist/assets/TransactionListPage-CTzZTWJh-rMP8UEHn.js +0 -35
  324. package/dist/assets/UploadAdditionalDocumentOverlay-Cxxuws-w-q1izSlj8.js +0 -38
  325. package/dist/assets/Vendor2FAPopup-Dm6Ot_5k-CeyePLNN.js +0 -1
  326. package/dist/assets/VendorACHDetailsPage-DMhwUboX-DW77y7-e.js +0 -1
  327. package/dist/assets/VendorDomesticWireDetailsPage-DU47133D-BNz0vLWP.js +0 -1
  328. package/dist/assets/VendorFirstReviewPage-COk5-4Mm-BUPA8fWX.js +0 -730
  329. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Do345R_v-M_TSksW9.js +0 -1
  330. package/dist/assets/ZeniAccountSetupPage-akgqrbmw-xtslv-BN.js +0 -36
  331. package/dist/assets/ZeniCopyright-BrtqzLbb-BE2v7OcH.js +0 -1
  332. package/dist/assets/commonDimensions-DY0eA-Tl-D8wklKVF.js +0 -1
  333. package/dist/assets/downloadPdf-3uDsBfRK-CGEKdVDQ.js +0 -1
  334. package/dist/assets/epic-DjY7Y3Uv.js +0 -2
  335. package/dist/assets/mapLoadingInProgressToTreeNode-CkbJ6R1I-DIVOAa5P.js +0 -1
  336. package/dist/assets/mapSpacerToTreeNode-BDHpjDEs-DAaIJCY0.js +0 -1
  337. package/dist/assets/mapTimeframeBalancesToTreeNode-B-58xc9r-DNQTilLS.js +0 -1
  338. package/dist/assets/mapTimeframeBalancesToTreeNode-DNryKtmS-D24Y9ZFz.js +0 -1
  339. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-6kNSnV0m-BkRLjeRM.js +0 -1
  340. package/dist/assets/panelSelectedMixin-Cddsb26L-CcYFb3nR.js +0 -3
  341. package/dist/assets/toCOABalancesWithID-CU-N01Ne-BfeZ-0De.js +0 -1
  342. package/dist/assets/toChartData-BIERIIE--CxJg6nKe.js +0 -1
  343. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-DWftVCta.js +0 -1
  344. package/dist/assets/uploadReceipts-Dge0cNF1-DNapZCC1.js +0 -1
@@ -1,11 +1,11 @@
1
- import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,J as O,aG as kn,aA as Lo,dq as jn,dr as Ao,b as B,u as w,ds as Qn,dt as zt,du as Tt,cd as Vt,dv as Dt,x as V,d4 as Rt,ay as Jn,ab as ot,cp as ze,bR as K,L as Bo,y as le,aX as L,b1 as Zn,dw as Xn,ap as Me,dx as Wo,dy as ae,cc as Gt,c1 as Sn,ak as Oo,ao as be,dz as rt,dA as Ie,dB as lt,an as C,ck as ne,dC as Mo,w as Et,dD as Ue,dE as Cn,dF as vn,dG as Io,dH as No,bb as ei,aY as T,b8 as Po,cC as Ht,cB as Kt,dI as Fo,b9 as ti,cF as ni,bT as zo,dJ as To,dK as _n,dL as $n,dM as Vo,dN as Do,bV as Ro,bM as Go,dO as Eo}from"./index-Cq3X29cS.js";import{n as a,c as F}from"./mui-DzE-7sTl.js";import{a as I,P as Ho}from"./sentry-DQ_HstYV.js";import{FH as Yt,Gb as Ut,Gc as Te,Gd as qt,Ge as Qt,Gf as Jt,Gg as Zt,Gh as ii,Gi as Ko,FU as bt,FI as Ve,bm as Ln,bg as oi,Gj as ri,Gk as Yo,bo as Uo,FV as ai}from"./zeni-epic-state-B4gyGBI3.js";import{N as ct,D as qo,R as Qo,B as ke,u as _}from"./AccountRow-C7_pSX9U-C_uj4ob-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="93b507be-1992-4ffb-a119-1a2637891fc1",e._sentryDebugIdIdentifier="sentry-dbid-93b507be-1992-4ffb-a119-1a2637891fc1")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function _t(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 ce(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(n*100)/100)}else return fe("0.00%",void 0)}function se(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(n*100)/100)}else return fe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const De=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${bt(o,l.MMMYYYYFormat,e)}`:kt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${bt(o,l.QYYYYformat,e)}`:kt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${bt(o,l.YYYYformat,e)}`:kt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function kt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Jo=a.div`
1
+ import{V as t,b4 as vo,aQ as m,bO as pe,aO as U,dm as $o,o as s,p as X,aR as bn,J as O,aE as kn,ay as Lo,dn as jn,dp as Ao,F as B,u as w,dq as Qn,dr as It,ds as Nt,cc as Pt,dt as Ft,y as V,d2 as zt,aw as Jn,aa as Xe,du as Me,bQ as H,T as Bo,d as ce,aW as $,b0 as Zn,dv as Xn,an as Le,dw as Wo,dx as le,cb as Tt,c0 as Sn,ai as Oo,am as we,dy as et,dz as Ae,dA as nt,al as _,cj as ne,dB as Mo,b as Vt,dC as Ee,dD as Cn,dE as _n,dF as Io,dG as No,ba as ei,aX as T,b7 as Po,cA as Dt,cz as Rt,dH as Fo,b8 as ti,cD as ni,bS as zo,dI as To,dJ as vn,dK as $n,dL as Vo,dM as Do,bU as Ro,bL as Eo,dN as Go}from"./index-DmMELGnq.js";import{n as a,c as P}from"./mui-D89AqdoX.js";import{a as I,P as Ho}from"./sentry-D7VPqxYq.js";import{E_ as Et,Fu as Gt,Fv as Ie,Fw as Ht,Fx as Kt,Fy as Yt,Fz as Ut,FA as ii,FB as Ko,Fb as xt,E$ as Ne,bm as Ln,bg as oi,FC as ri,FD as Yo,bo as Uo,Fc as ai}from"./zeni-epic-state-C513CLlc.js";import{N as it,D as qo,R as Qo,B as ye,u as v}from"./AccountRow-BiEYR4Y1-0x0DgsfU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9d7a4717-c732-4399-a02b-d673ea4c2eee",e._sentryDebugIdIdentifier="sentry-dbid-9d7a4717-c732-4399-a02b-d673ea4c2eee")}catch{}})();function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Jo=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
5
5
  height: ${e=>e.heightValue}px;
6
6
  justify-content: flex-start;
7
7
  align-items: center;
8
- padding-right: ${_.wrapperPadding}px;
8
+ padding-right: ${v.wrapperPadding}px;
9
9
  `,Zo=a.div`
10
10
  cursor: default;
11
11
  user-select: none;
@@ -19,7 +19,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
19
19
  justify-content: flex-start;
20
20
  align-items: center;
21
21
  gap: ${s.sp2};
22
- width: ${_.leftHeadingWidth}px;
22
+ width: ${v.leftHeadingWidth}px;
23
23
  `,er=a.div`
24
24
  display: flex;
25
25
  flex: 1 1 auto;
@@ -27,29 +27,29 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
27
27
  align-items: center;
28
28
  gap: ${s.sp4};
29
29
  `,tr=a(ne)`
30
- width: ${_.bankBalanceWidth}px;
31
- min-width: ${_.bankBalanceWidth}px;
30
+ width: ${v.bankBalanceWidth}px;
31
+ min-width: ${v.bankBalanceWidth}px;
32
32
  text-align: right;
33
33
  `,nr=a(ne)`
34
- width: ${_.clearedBalanceWidth}px;
35
- min-width: ${_.clearedBalanceWidth}px;
34
+ width: ${v.clearedBalanceWidth}px;
35
+ min-width: ${v.clearedBalanceWidth}px;
36
36
  text-align: right;
37
37
  `,ir=a(ne)`
38
- width: ${_.statusWidth}px;
39
- min-width: ${_.statusWidth}px;
38
+ width: ${v.statusWidth}px;
39
+ min-width: ${v.statusWidth}px;
40
40
  `,or=a.div`
41
41
  display: flex;
42
42
  flex-shrink: 0;
43
43
  gap: ${s.sp3};
44
- width: ${_.varianceWidth}px;
45
- min-width: ${_.varianceWidth}px;
44
+ width: ${v.varianceWidth}px;
45
+ min-width: ${v.varianceWidth}px;
46
46
  flex-direction: row;
47
47
  justify-content: flex-end;
48
48
  align-items: center;
49
49
  text-align: center;
50
50
  `,rr=a.div`
51
- width: ${_.variancePercentageWidth}px;
52
- min-width: ${_.variancePercentageWidth}px;
51
+ width: ${v.variancePercentageWidth}px;
52
+ min-width: ${v.variancePercentageWidth}px;
53
53
  text-align: right;
54
54
  margin-right: ${s.sp2};
55
55
  `,ar=a.div`
@@ -60,11 +60,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
60
60
  display: flex;
61
61
  justify-content: center;
62
62
  align-items: center;
63
- `;function cr({height:e}){const n=O();return t.jsx(Jo,{heightValue:e,windowSize:n,children:t.jsxs(Zo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:_.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
63
+ `;function cr({height:e}){const n=O();return t.jsx(Jo,{heightValue:e,windowSize:n,children:t.jsxs(Zo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:v.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:v.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
64
64
  display: flex;
65
65
  flex-direction: row;
66
66
  height: ${e=>e.heightValue}px;
67
- padding-right: ${_.wrapperPadding}px;
67
+ padding-right: ${v.wrapperPadding}px;
68
68
  `;function dr({height:e}){return t.jsx(sr,{heightValue:e})}const hr=a.div`
69
69
  user-select: none;
70
70
  display: flex;
@@ -72,7 +72,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
72
72
  height: ${e=>e.height}px;
73
73
  background-color: ${e=>e.bgColor?.hex()};
74
74
  flex-direction: column;
75
- padding-right: ${_.wrapperPadding}px;
75
+ padding-right: ${v.wrapperPadding}px;
76
76
  `,ur=a.div`
77
77
  flex: 1 1 auto;
78
78
  display: flex;
@@ -84,7 +84,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
84
84
  display: flex;
85
85
  flex-direction: row;
86
86
  justify-content: flex-end;
87
- width: ${_.leftHeadingWidth}px;
87
+ width: ${v.leftHeadingWidth}px;
88
88
  `,pr=a.div`
89
89
  display: flex;
90
90
  flex: 1 1 auto;
@@ -93,10 +93,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
93
93
  `,fr=a(ti)`
94
94
  user-select: none;
95
95
  color: ${e=>e.theme.colors.primary};
96
- width: ${_.leftTimeframeWidth}px;
97
- min-width: ${_.leftTimeframeWidth}px;
96
+ width: ${v.leftTimeframeWidth}px;
97
+ min-width: ${v.leftTimeframeWidth}px;
98
98
  flex: 1 1 auto;
99
- `,xr=a(C)`
99
+ `,xr=a(_)`
100
100
  user-select: none;
101
101
  `,mr=a.div`
102
102
  max-height: ${s.sp8};
@@ -112,36 +112,36 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
112
112
  color: ${e=>e.theme.colors.primary};
113
113
  margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
114
114
  `,wr=a.div`
115
- width: ${_.bankBalanceWidth}px;
115
+ width: ${v.bankBalanceWidth}px;
116
116
  `,yr=a.div`
117
- width: ${_.bankBalanceRightTimeframeWidth}px;
117
+ width: ${v.bankBalanceRightTimeframeWidth}px;
118
118
  `,br=a.div`
119
- width: ${_.clearedBalanceWidth}px;
120
- margin-right: ${_.tickLeftMargin}px;
119
+ width: ${v.clearedBalanceWidth}px;
120
+ margin-right: ${v.tickLeftMargin}px;
121
121
  `,kr=a.div`
122
- width: ${_.varianceTimeframeWidth}px;
122
+ width: ${v.varianceTimeframeWidth}px;
123
123
  align-self: flex-end;
124
124
  `,jr=a.div`
125
- width: ${_.spacerLineWidth}px;
125
+ width: ${v.spacerLineWidth}px;
126
126
  `,Sr=a.div`
127
- width: ${_.statusWidth}px;
128
- `,qe=({title:e,type:n})=>t.jsx(mr,{widthValue:_[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:s.sp4,width:_.leftLabelWidth},children:t.jsx(fr,{"data-testid":x("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:s.sp7,width:_.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(qe,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(ae,{isLoading:i,customStyle:{height:s.sp7,width:_.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(qe,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:s.sp7,width:_.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(qe,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(ae,{isLoading:i,customStyle:{height:s.sp7,width:_.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(qe,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const vr=a.div`
127
+ width: ${v.statusWidth}px;
128
+ `,Ge=({title:e,type:n})=>t.jsx(mr,{widthValue:v[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:v.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:v.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ge,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const _r=a.div`
129
129
  display: flex;
130
130
  flex-direction: row;
131
131
  height: ${e=>e.heightValue}px;
132
132
  align-items: center;
133
- padding-right: ${_.wrapperPadding}px;
134
- `,_r=a(ti)`
133
+ padding-right: ${v.wrapperPadding}px;
134
+ `,vr=a(ti)`
135
135
  user-select: none;
136
136
  color: ${e=>e.theme.colors.primary};
137
- `;function $r({height:e,title:n}){return t.jsx(vr,{heightValue:e,children:t.jsx(_r,{"data-testid":x("account-recon-section-title",n),children:n})})}const Lr=a.div`
137
+ `;function $r({height:e,title:n}){return t.jsx(_r,{heightValue:e,children:t.jsx(vr,{"data-testid":m("account-recon-section-title",n),children:n})})}const Lr=a.div`
138
138
  display: flex;
139
139
  flex: 1 1 auto;
140
140
  width: 100%;
141
141
  height: ${e=>e.heightValue}px;
142
142
  justify-content: flex-start;
143
143
  align-items: center;
144
- padding-right: ${_.wrapperPadding}px;
144
+ padding-right: ${v.wrapperPadding}px;
145
145
  `,Ar=a.div`
146
146
  cursor: default;
147
147
  user-select: none;
@@ -166,31 +166,31 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
166
166
  text-overflow: ellipsis;
167
167
  text-align: left;
168
168
  color: ${e=>e.theme.colors.primary};
169
- width: ${_.leftLabelWidth}px;
170
- min-width: ${_.leftLabelWidth}px;
169
+ width: ${v.leftLabelWidth}px;
170
+ min-width: ${v.leftLabelWidth}px;
171
171
  `,Or=a.div`
172
172
  display: flex;
173
173
  flex: 1 1 auto;
174
174
  justify-content: flex-end;
175
175
  align-items: center;
176
176
  `,Mr=a(ne)`
177
- width: ${_.bankBalanceWidth}px;
178
- min-width: ${_.bankBalanceWidth}px;
177
+ width: ${v.bankBalanceWidth}px;
178
+ min-width: ${v.bankBalanceWidth}px;
179
179
  text-align: right;
180
180
  `,Ir=a(ne)`
181
- width: ${_.clearedBalanceWidth}px;
182
- min-width: ${_.clearedBalanceWidth}px;
181
+ width: ${v.clearedBalanceWidth}px;
182
+ min-width: ${v.clearedBalanceWidth}px;
183
183
  text-align: right;
184
- margin-left: ${_.tickLeftMargin}px;
184
+ margin-left: ${v.tickLeftMargin}px;
185
185
  `,Nr=a(ne)`
186
- width: ${_.statusWidth}px;
187
- min-width: ${_.statusWidth}px;
186
+ width: ${v.statusWidth}px;
187
+ min-width: ${v.statusWidth}px;
188
188
  height: 1px;
189
189
  `,Pr=a.div`
190
190
  display: flex;
191
191
  flex-direction: row;
192
- min-width: ${_.spacerLineWidth}px;
193
- width: ${_.spacerLineWidth}px;
192
+ min-width: ${v.spacerLineWidth}px;
193
+ width: ${v.spacerLineWidth}px;
194
194
  align-items: center;
195
195
  `,Fr=a.div`
196
196
  width: 1px;
@@ -200,17 +200,17 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
200
200
  `,zr=a.div`
201
201
  display: flex;
202
202
  flex-shrink: 0;
203
- width: ${_.varianceTimeframeWidth}px;
204
- min-width: ${_.varianceTimeframeWidth}px;
203
+ width: ${v.varianceTimeframeWidth}px;
204
+ min-width: ${v.varianceTimeframeWidth}px;
205
205
  flex-direction: row;
206
206
  justify-content: flex-end;
207
207
  align-items: center;
208
208
  text-align: center;
209
- margin-left: ${_.tickLeftMargin}px;
209
+ margin-left: ${v.tickLeftMargin}px;
210
210
  `,Tr=a(ne)`
211
211
  border-radius: ${s.sp1};
212
212
  color: ${e=>e.textColor.hex()};
213
- min-width: ${_.varianceNumberWidth}px;
213
+ min-width: ${v.varianceNumberWidth}px;
214
214
  text-align: right;
215
215
  margin-right: ${s.sp2};
216
216
  `,Vr=a(ne)`
@@ -220,8 +220,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
220
220
  text-align: center;
221
221
  color: ${e=>e.textColor.hex()};
222
222
  background-color: ${e=>e.bgColor.hex()};
223
- min-width: ${_.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:at}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=le();return t.jsx(Lr,{"data-testid":x("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ke,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new L(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):at}),t.jsx(Ir,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):at}),t.jsx(Gr,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Nr,{})]})]})})}const Gr=({variance:e,variancePercentage:n})=>{const i=le(),o=new L(i.colors.hero),r=new L(i.colors.hero),l=new L(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:at;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):at}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Er(){return t.jsx(dr,{height:ct("section")})}function Hr(){return t.jsx(cr,{height:ct("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:ct("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Qo,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Qr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Jr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},me=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Zr=a(C)`
223
+ min-width: ${v.variancePercentageWidth}px;
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Ir,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Er,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Nr,{})]})]})})}const Er=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Gr(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Qo,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Qr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Jr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Zr=a(_)`
225
225
  margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
226
226
  overflow: hidden;
227
227
  white-space: nowrap;
@@ -247,9 +247,9 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
247
247
  `,hi=a.div`
248
248
  width: ${e=>di.emptyLeftContainer.valuePx(e.windowSize)};
249
249
  height: ${s.sp1};
250
- `,Ne=a.div`
250
+ `,Be=a.div`
251
251
  display: flex;
252
- `,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Ne,{children:[r.depth===0?t.jsx(vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(vn,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Ne,{children:[t.jsx(Ue,{depth:n}),t.jsx(Ie,{}),t.jsx(Ue,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Ne,{children:[l.depth===0?t.jsx(Ue,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ie,{},r):t.jsx(lt,{}),t.jsx(Ue,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Ne,{children:[r!=null&&r.depth===0?t.jsx(rt,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}),t.jsx(rt,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Ne,{children:[r.depth===0?t.jsx(rt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},o):t.jsx(lt,{}):null,r.depth>=1?t.jsx(rt,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Zr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const Qe=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
252
+ `,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(_n,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(_n,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Ee,{depth:n}),t.jsx(Ae,{}),t.jsx(Ee,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ee,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Ee,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(vn,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Zr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
253
253
  display: flex;
254
254
  flex: 1 1 auto;
255
255
  max-height: 1px;
@@ -267,17 +267,17 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
267
267
  flex-grow: 1;
268
268
  align-items: center;
269
269
  background-color: ${e=>e.theme.colors.grey4};
270
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
271
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
272
- ${({isSticky:e})=>e?F`
270
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
271
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
272
+ ${({isSticky:e})=>e?P`
273
273
  position: -webkit-sticky;
274
274
  position: sticky;
275
275
  top: ${s.sp0};
276
276
  left: ${s.sp0};
277
277
  `:null}
278
278
  `,ga=a.div`
279
- width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
280
- max-width: ${e=>e.noMarginForEntity?Qe[e.nestingLevel].value(e.windowSize)-w[5]:Qe[e.nestingLevel].value(e.windowSize)}px;
279
+ width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
280
+ max-width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
281
281
  height: 1px;
282
282
  `,pa=a.div`
283
283
  display: flex;
@@ -291,7 +291,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
291
291
  max-height: 1px;
292
292
  height: 1px;
293
293
  background-color: ${e=>e.isScrolling?"transparent":e.colour};
294
- `,Bn=e=>{const n=O(),i=le();return t.jsxs(ha,{"data-testid":x("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ua,{windowSize:n,isSticky:e.isSticky,"data-testid":x("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ga,{"data-testid":x("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(pa,{"data-testid":x("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(fa,{"data-testid":x("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function $t({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(da,{"data-testid":x("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const fi=a.div`
294
+ `,Bn=e=>{const n=O(),i=ce();return t.jsxs(ha,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ua,{windowSize:n,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ga,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(pa,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(fa,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function St({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(da,{"data-testid":m("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const fi=a.div`
295
295
  display: flex;
296
296
  flex: 1 1 auto;
297
297
  width: fit-content;
@@ -319,19 +319,19 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
319
319
  display: flex;
320
320
  flex-direction: row;
321
321
  justify-content: flex-start;
322
- `,yi=a(C)`
322
+ `,yi=a(_)`
323
323
  user-select: none;
324
- min-width: ${G.balanceWidth};
325
- max-width: ${G.balanceWidth};
324
+ min-width: ${E.balanceWidth};
325
+ max-width: ${E.balanceWidth};
326
326
  text-align: right;
327
- margin-left: ${G.balanceLeftMargin};
327
+ margin-left: ${E.balanceLeftMargin};
328
328
  border: 1px solid transparent;
329
329
  color: ${e=>e.theme.colors.hero};
330
330
  cursor: ${e=>e.isClickable?"pointer":"default"};
331
331
  &:hover {
332
332
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
333
333
  }
334
- `,xa=a(C)`
334
+ `,xa=a(_)`
335
335
  user-select: none;
336
336
  clear: both;
337
337
  display: inline-block;
@@ -347,10 +347,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
347
347
  flex-grow: 1;
348
348
  align-items: center;
349
349
  height: ${e=>e.containerHeight}px;
350
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
351
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
350
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
351
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
352
352
  background-color: ${e=>e.bgColor?.hex()};
353
- ${({isSticky:e})=>e?F`
353
+ ${({isSticky:e})=>e?P`
354
354
  position: sticky;
355
355
  top: ${s.sp0};
356
356
  left: ${s.sp0};
@@ -360,7 +360,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
360
360
  &:hover {
361
361
  color: ${e=>e.theme.colors.primary};
362
362
  }
363
- `,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":x("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":x("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Dt,{photoUrl:c.logo.toString(),styles:{width:G.nameLogoWidth.valuePx(u),height:G.nameLogoHeight.valuePx(u)}}):t.jsx(Rt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":x("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:m}){const b=O(),y=p,v=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,$=u!=null?u.children.length!==0:!1,W=$,N=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,H=()=>{m?.(e)};return t.jsxs(fi,{"data-testid":x("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":x("ar-aging-report-row-container",e),style:{cursor:N},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":x("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:v,depth:S,isLastNode:r,hasChildren:$,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:H,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(E=>t.jsx(ki,{balance:E,isOpen:l},E?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx($t,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx($t,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
363
+ `,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:E.nameLogoWidth.valuePx(u),height:E.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,F=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(G=>t.jsx(ki,{balance:G,isOpen:l},G?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
364
364
  user-select: none;
365
365
  display: flex;
366
366
  flex: 1 1 auto;
@@ -380,22 +380,22 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
380
380
  display: flex;
381
381
  max-height: ${s.sp8};
382
382
  min-height: ${s.sp8};
383
- min-width: ${G.balanceWidth};
383
+ min-width: ${E.balanceWidth};
384
384
  justify-content: center;
385
385
  align-items: center;
386
386
  background-color: ${e=>e.theme.colors.background};
387
387
  border: 1px solid ${e=>e.theme.colors.grey3};
388
388
  border-radius: ${s.sp2};
389
- margin-left: ${G.balanceLeftMargin};
389
+ margin-left: ${E.balanceLeftMargin};
390
390
  color: ${e=>e.theme.colors.primary};
391
- `,vi=a(C)`
391
+ `,_i=a(_)`
392
392
  display: flex;
393
393
  user-select: none;
394
394
  flex-direction: row;
395
395
  justify-content: center;
396
396
  align-items: center;
397
- height: ${G.balanceHeight};
398
- max-width: ${G.balanceWidth};
397
+ height: ${E.balanceHeight};
398
+ max-width: ${E.balanceWidth};
399
399
  width: 138px;
400
400
  text-align: center;
401
401
  column-gap: ${s.sp1};
@@ -406,26 +406,26 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
406
406
  display: flex;
407
407
  flex-direction: row;
408
408
  align-items: center;
409
- min-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
409
+ min-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
410
410
  color: ${e=>e.theme.colors.primary};
411
411
  background-color: ${e=>e.bgColor?.hex()};
412
- ${e=>e.isSticky?F`
412
+ ${e=>e.isSticky?P`
413
413
  position: -webkit-sticky;
414
414
  position: sticky;
415
415
  top: ${s.sp0};
416
416
  left: ${s.sp0};
417
417
  `:""}
418
- `,ja=a(C)`
418
+ `,ja=a(_)`
419
419
  display: flex;
420
420
  align-items: center;
421
421
  cursor: pointer;
422
422
  column-gap: ${s.sp1};
423
423
  color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
424
- `,_i=a.div`
424
+ `,vi=a.div`
425
425
  max-height: ${s.sp8};
426
426
  min-height: ${s.sp8};
427
427
  cursor: pointer;
428
- `,Xt=a.div`
428
+ `,qt=a.div`
429
429
  display: flex;
430
430
  column-gap: ${s.sp1};
431
431
  cursor: pointer;
@@ -436,13 +436,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
436
436
  height: 12px;
437
437
  cursor: pointer;
438
438
  color: ${e=>e.theme.colors.hero};
439
- `,en=a(Kt)`
439
+ `,Qt=a(Rt)`
440
440
  width: 12px;
441
441
  height: 12px;
442
- `,tn=a(Ht)`
442
+ `,Jt=a(Dt)`
443
443
  width: 12px;
444
444
  height: 12px;
445
- `,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(nn(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":x("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(Xt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":x("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(tn,{}):t.jsx(en,{})})}),t.jsx(ot,{controller:n===r,children:t.jsx(Li,{"data-testid":x("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(nn(i),e)};return t.jsx(_i,{"data-testid":x("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":x("duration-row-tick-element-container",e),children:t.jsxs(vi,{active:n===e,"data-testid":x("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(Xt,{selectedForSort:n===e,"data-testid":x("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":x("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(tn,{}):t.jsx(en,{})}),t.jsx(ot,{controller:n===e,children:t.jsx(Li,{"data-testid":x("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(nn(i),"total")};return t.jsx(_i,{"data-testid":x("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":x("duration-row-entity-total-tick-element-container",e),children:t.jsxs(vi,{active:n==="total","data-testid":x("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(Xt,{selectedForSort:n==="total","data-testid":x("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(tn,{}):t.jsx(en,{})})]})})})},va=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function _a({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":x("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":x("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(va,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const nn=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
445
+ `,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Zt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Zt(i),e)};return t.jsx(vi,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(_i,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})}),t.jsx(Xe,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Zt(i),"total")};return t.jsx(vi,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(_i,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Jt,{}):t.jsx(Qt,{})})]})})})},_a=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function va({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(_a,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Zt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
446
446
  display: flex;
447
447
  flex: 1 1 auto;
448
448
  width: fit-content;
@@ -466,12 +466,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
466
466
  display: flex;
467
467
  flex-direction: row;
468
468
  justify-content: flex-start;
469
- `,Oi=a(C)`
469
+ `,Oi=a(_)`
470
470
  user-select: none;
471
- min-width: ${G.balanceWidth};
472
- max-width: ${G.balanceWidth};
471
+ min-width: ${E.balanceWidth};
472
+ max-width: ${E.balanceWidth};
473
473
  text-align: right;
474
- margin-left: ${G.balanceLeftMargin};
474
+ margin-left: ${E.balanceLeftMargin};
475
475
  color: ${e=>e.theme.colors.primary};
476
476
  cursor: ${e=>e.isClickable?"pointer":"default"};
477
477
  `,Wa=a.div`
@@ -481,15 +481,15 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
481
481
  flex-grow: 1;
482
482
  align-items: center;
483
483
  height: ${e=>e.containerHeight-1}px;
484
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
485
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
484
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
485
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
486
486
  background-color: ${e=>e.bgColor?.hex()};
487
- ${({isSticky:e})=>e?F`
487
+ ${({isSticky:e})=>e?P`
488
488
  position: sticky;
489
489
  top: ${s.sp0};
490
490
  left: ${s.sp0};
491
491
  `:null}
492
- `,Oa=a(C)`
492
+ `,Oa=a(_)`
493
493
  user-select: none;
494
494
  clear: both;
495
495
  display: inline-block;
@@ -499,8 +499,8 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
499
499
  text-align: left;
500
500
  margin-left: ${e=>$a[e.depth]}px;
501
501
  color: ${e=>e.theme.colors.primary};
502
- width: ${e=>G.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
503
- `,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ia=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Na({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,m=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:m}),t.jsx(Oa,{isClickable:!1,title:m,depth:g,windowSize:h,children:p.totalPrefix+" "+m})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Ia,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx($t,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},Pe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
502
+ width: ${e=>E.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
503
+ `,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ia=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Na({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Ia,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(St,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},We=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
504
504
  display: flex;
505
505
  flex: 1 1 auto;
506
506
  width: fit-content;
@@ -527,10 +527,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
527
527
  justify-content: flex-start;
528
528
  `,Ii=a(ne)`
529
529
  user-select: none;
530
- min-width: ${G.balanceWidth};
531
- max-width: ${G.balanceWidth};
530
+ min-width: ${E.balanceWidth};
531
+ max-width: ${E.balanceWidth};
532
532
  text-align: right;
533
- margin-left: ${G.balanceLeftMargin};
533
+ margin-left: ${E.balanceLeftMargin};
534
534
  color: ${e=>e.theme.colors.primary};
535
535
  border: 1px solid transparent;
536
536
  `,Va=a.div`
@@ -539,15 +539,15 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
539
539
  flex-shrink: 2;
540
540
  flex-grow: 1;
541
541
  align-items: center;
542
- width: ${e=>G.titleWidth.valuePx(e.windowSize)};
543
- max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
542
+ width: ${e=>E.titleWidth.valuePx(e.windowSize)};
543
+ max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
544
544
  background-color: ${e=>e.bgColor?.hex()};
545
- ${({isSticky:e,isIndented:n})=>e&&n?F`
545
+ ${({isSticky:e,isIndented:n})=>e&&n?P`
546
546
  position: -webkit-sticky;
547
547
  position: sticky;
548
548
  top: ${s.sp0};
549
549
  left: ${s.sp4};
550
- `:e&&!n?F`
550
+ `:e&&!n?P`
551
551
  position: -webkit-sticky;
552
552
  position: sticky;
553
553
  top: ${s.sp0};
@@ -562,7 +562,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
562
562
  text-overflow: ellipsis;
563
563
  text-align: left;
564
564
  color: ${e=>e.theme.colors.primary};
565
- `,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":x("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ga,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(_a,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function st(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Ja(i,o,n);case"cash_position":return Za(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>ie(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function ie(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Re(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
565
+ `,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n?.balance)}):null}),Ea=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ii,{children:U("0,0",n)}):null});function Ga({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ea,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(va,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Na,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ga,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Ja(i,o,n);case"cash_position":return Za(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ni(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ni(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ni(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
566
566
  display: flex;
567
567
  flex: 1 1 auto;
568
568
  max-height: 1px;
@@ -578,7 +578,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
578
578
  flex: 1 1 auto;
579
579
  max-height: 1px;
580
580
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
581
- `;function hl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Wn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Wn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(sl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(dl,{isScrolling:n})}}const Oe={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ul(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":return w[8];case"calculated_section_type1":return w[6];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_report":case"ac_subaccount":case"ac_subentity_total":return w[6];case"title_string_only":return 67;case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return w[0];case"class":case"checkbox_and_name_only":return w[0];default:return w[0]}}function gl(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!i.includes(n);case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const pl=a.div`
581
+ `;function hl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Wn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Wn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(sl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(dl,{isScrolling:n})}}const $e={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ul(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":return w[8];case"calculated_section_type1":return w[6];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_report":case"ac_subaccount":case"ac_subentity_total":return w[6];case"title_string_only":return 67;case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return w[0];case"class":case"checkbox_and_name_only":return w[0];default:return w[0]}}function gl(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!i.includes(n);case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const pl=a.div`
582
582
  display: flex;
583
583
  flex: 1 1 auto;
584
584
  width: fit-content;
@@ -602,30 +602,30 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
602
602
  display: flex;
603
603
  flex-direction: row;
604
604
  justify-content: flex-start;
605
- `,wl=a(C)`
605
+ `,wl=a(_)`
606
606
  user-select: none;
607
607
  color: ${e=>e.theme.colors.hero};
608
- min-width: ${Oe.balanceWidth};
609
- max-width: ${Oe.balanceWidth};
608
+ min-width: ${$e.balanceWidth};
609
+ max-width: ${$e.balanceWidth};
610
610
  text-align: right;
611
- margin-left: ${Oe.balanceLeftMargin};
611
+ margin-left: ${$e.balanceLeftMargin};
612
612
  `,yl=a.div`
613
613
  display: flex;
614
614
  flex-direction: row;
615
615
  flex-shrink: 2;
616
616
  flex-grow: 1;
617
617
  align-items: center;
618
- width: ${e=>Oe.titleWidth.valuePx(e.windowSize)};
618
+ width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
619
619
  color: ${e=>e.theme.colors.hero};
620
- max-width: ${e=>Oe.titleWidth.valuePx(e.windowSize)};
620
+ max-width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
621
621
  background-color: ${e=>e.bgColor?.hex()};
622
- ${({isSticky:e})=>e?F`
622
+ ${({isSticky:e})=>e?P`
623
623
  position: -webkit-sticky;
624
624
  position: sticky;
625
625
  top: ${s.sp0};
626
626
  left: ${s.sp0};
627
627
  `:null}
628
- `,bl=a(C)`
628
+ `,bl=a(_)`
629
629
  user-select: none;
630
630
  clear: both;
631
631
  display: inline-block;
@@ -634,7 +634,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
634
634
  text-overflow: ellipsis;
635
635
  text-align: left;
636
636
  margin-left: ${s.sp6};
637
- `,kl=({balance:e})=>t.jsx(ml,{children:t.jsx(wl,{children:q(e)})});function jl({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=O();return t.jsxs(pl,{"data-testid":x("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(fl,{"data-testid":x("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(yl,{"data-testid":x("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(bl,{children:e})}),t.jsx(xl,{children:l.map((p,g)=>t.jsx(kl,{balance:p},g))})]}),t.jsx(Sl,{isScrolling:c,isLastNode:d})]})}function Sl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(hl,{isScrolling:e,kind:"heading_row_separator"}):null}const Cl=a.div`
637
+ `,kl=({balance:e})=>t.jsx(ml,{children:t.jsx(wl,{children:q(e)})});function jl({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=O();return t.jsxs(pl,{"data-testid":m("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(fl,{"data-testid":m("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(yl,{"data-testid":m("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(bl,{children:e})}),t.jsx(xl,{children:l.map((p,g)=>t.jsx(kl,{balance:p},g))})]}),t.jsx(Sl,{isScrolling:c,isLastNode:d})]})}function Sl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(hl,{isScrolling:e,kind:"heading_row_separator"}):null}const Cl=a.div`
638
638
  display: flex;
639
639
  flex: 1 1 auto;
640
640
  width: fit-content;
@@ -642,14 +642,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
642
642
  flex-direction: column;
643
643
  height: ${e=>e.height}px;
644
644
  background-color: ${e=>e.bgColor?.hex()};
645
- `,vl=a.div`
645
+ `,_l=a.div`
646
646
  user-select: none;
647
647
  display: flex;
648
648
  flex: 1 1 auto;
649
649
  flex-flow: row;
650
650
  justify-content: flex-start;
651
651
  align-items: center;
652
- `,_l=a.div`
652
+ `,vl=a.div`
653
653
  display: flex;
654
654
  flex: 1 0 auto;
655
655
  flex-direction: row;
@@ -658,7 +658,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
658
658
  display: flex;
659
659
  flex-direction: row;
660
660
  justify-content: flex-start;
661
- `,Je=a(ei)`
661
+ `,Ke=a(ei)`
662
662
  color: ${e=>e.theme.colors.champion};
663
663
  user-select: none;
664
664
  max-width: ${k.balanceWidth};
@@ -674,7 +674,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
674
674
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
675
675
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
676
676
  background-color: ${e=>e.bgColor?.hex()};
677
- ${({isSticky:e})=>e?F`
677
+ ${({isSticky:e})=>e?P`
678
678
  position: -webkit-sticky;
679
679
  position: sticky;
680
680
  top: ${s.sp0};
@@ -690,7 +690,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
690
690
  text-overflow: ellipsis;
691
691
  text-align: left;
692
692
  background-color: ${e=>e.bgColor?.hex()};
693
- `,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Je,{"data-testid":x("heading-row-balance-actual",e),children:q(n)}):t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":x("heading-row-balance-forecast",e),children:Z(n)}),t.jsx(Je,{"data-testid":x("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":x("heading-row-root-container",o),children:t.jsxs(vl,{"data-testid":x("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":x("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,me(e)===!0?t.jsx(_l,{"data-testid":x("heading-row-balances-container",o),children:c.map((f,m)=>t.jsx(Bl,{"data-testid":x("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},m))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},on=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:m=>{g?.(m)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Il(o,i.acBalanceSelector,e),i};function Il(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Nl(n(o)?.balances??[]));default:return e}}function Nl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ze=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
693
+ `,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:J(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(_l,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(vl,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Xt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Il(o,i.acBalanceSelector,e),i};function Il(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Nl(n(o)?.balances??[]));default:return e}}function Nl(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
694
694
  display: flex;
695
695
  flex: 1 1 auto;
696
696
  max-height: 1px;
@@ -715,15 +715,15 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
715
715
  background-color: ${e=>e.theme.colors.grey4};
716
716
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
717
717
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
718
- ${({isSticky:e})=>e?F`
718
+ ${({isSticky:e})=>e?P`
719
719
  position: -webkit-sticky;
720
720
  position: sticky;
721
721
  top: ${s.sp0};
722
722
  left: ${s.sp0};
723
723
  `:null}
724
724
  `,Tl=a.div`
725
- width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-w[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
726
- max-width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-w[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
725
+ width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
726
+ max-width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
727
727
  height: 1px;
728
728
  `,Vl=a.div`
729
729
  width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
@@ -741,12 +741,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
741
741
  max-height: 1px;
742
742
  height: 1px;
743
743
  background-color: ${e=>e.isScrolling?"transparent":e.colour};
744
- `,Gl=a.div`
744
+ `,El=a.div`
745
745
  display: flex;
746
746
  flex: 1 1 auto;
747
747
  max-height: 1px;
748
748
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
749
- `,In=e=>{const n=O(),i=le();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function we({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Gl,{isScrolling:n});case"total_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(El,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(we,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const El=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(dt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsxs(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(_e,{style:{marginLeft:"36px"},children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(_e,{children:[t.jsx(ht,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(_e,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(dt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),dt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
749
+ `,In=e=>{const n=O(),i=ce();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(El,{isScrolling:n});case"total_row_separator":return t.jsx(In,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(Gl,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const Gl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
750
750
  display: flex;
751
751
  flex: 1 1 auto;
752
752
  width: fit-content;
@@ -754,7 +754,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
754
754
  flex-direction: column;
755
755
  height: ${e=>e.height}px;
756
756
  background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
757
- `,_e=a.div`
757
+ `,je=a.div`
758
758
  user-select: none;
759
759
  display: flex;
760
760
  flex: 1 1 auto;
@@ -775,13 +775,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
775
775
  margin-right: ${k.balanceLeftMargin};
776
776
  gap: ${k.balanceLeftMargin};
777
777
  justify-content: flex-end;
778
- `,ht=a(Ri)`
778
+ `,at=a(Ri)`
779
779
  position: ${e=>e.isSticky===!0?"sticky":"static"};
780
780
  left: ${s.sp0};
781
781
  z-index: 10;
782
782
  background-color: ${e=>e.theme.colors.grey4};
783
783
  justify-content: flex-start;
784
- `;function Gi({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Jl,{height:e,bgColor:i,children:t.jsxs(Zl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Ei,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Jl=a.div`
784
+ `;function Ei({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Jl,{height:e,bgColor:i,children:t.jsxs(Zl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Gi,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Jl=a.div`
785
785
  display: flex;
786
786
  flex: 1 1 auto;
787
787
  width: fit-content;
@@ -794,7 +794,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
794
794
  display: flex;
795
795
  flex-direction: row;
796
796
  width: 100%;
797
- `,Ei=a.div`
797
+ `,Gi=a.div`
798
798
  display: flex;
799
799
  flex-direction: row;
800
800
  align-items: center;
@@ -807,7 +807,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
807
807
  justify-content: flex-start;
808
808
  }
809
809
  margin-right: ${k.balanceLeftMargin};
810
- `,Xl=a(Ei)`
810
+ `,Xl=a(Gi)`
811
811
  position: sticky;
812
812
  left: ${s.sp0};
813
813
  z-index: 10;
@@ -828,7 +828,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
828
828
  flex: 1 1 auto;
829
829
  max-height: 1px;
830
830
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
831
- `;function rn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(tc,{"data-testid":x("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(nc,{"data-testid":x("section-row-separator",e),isScrolling:n})}}const D={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ic(e){switch(e){case"section":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"calculated_section":case"calculated_section_type1":return w[8];case"section_with_ac_only":return w[8];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":return w[6];case"title_string_only":return w[8];case"total":return w[8];case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function oc(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const rc=a.div`
831
+ `;function en({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(tc,{"data-testid":m("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(nc,{"data-testid":m("section-row-separator",e),isScrolling:n})}}const D={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ic(e){switch(e){case"section":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"calculated_section":case"calculated_section_type1":return w[8];case"section_with_ac_only":return w[8];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":return w[6];case"title_string_only":return w[8];case"total":return w[8];case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function oc(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const rc=a.div`
832
832
  display: flex;
833
833
  flex: 1 1 auto;
834
834
  width: fit-content;
@@ -856,13 +856,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
856
856
  display: flex;
857
857
  flex-direction: row;
858
858
  justify-content: flex-start;
859
- `,Lt=a(C)`
859
+ `,Ct=a(_)`
860
860
  user-select: none;
861
861
  min-width: ${D.balanceWidth};
862
862
  max-width: ${D.balanceWidth};
863
863
  text-align: right;
864
864
  margin-left: ${D.balanceLeftMargin};
865
- `,sc=a(Lt)`
865
+ `,sc=a(Ct)`
866
866
  color: ${e=>e.theme.colors.hero};
867
867
  &:hover {
868
868
  color: inherit;
@@ -877,13 +877,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
877
877
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
878
878
  background-color: ${e=>e.bgColor?.hex()};
879
879
  color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
880
- ${({isSticky:e})=>e?F`
880
+ ${({isSticky:e})=>e?P`
881
881
  position: -webkit-sticky;
882
882
  position: sticky;
883
883
  top: ${s.sp0};
884
884
  left: ${s.sp0};
885
885
  `:null}
886
- `,hc=a(C)`
886
+ `,hc=a(_)`
887
887
  user-select: none;
888
888
  clear: both;
889
889
  display: inline-block;
@@ -892,7 +892,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
892
892
  text-overflow: ellipsis;
893
893
  text-align: left;
894
894
  margin-left: ${s.sp2};
895
- `,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Lt;return t.jsxs(cc,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:Z(n)}),t.jsx(Lt,{"data-testid":x("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const m=O(),b=!p,y=b?"pointer":"default",v=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=le().colors.primary,[$,W]=I.useState(!1);return t.jsxs(rc,{"data-testid":x("account-group-row-root-container",e),height:r,bgColor:n,windowSize:m,children:[t.jsxs(ac,{"data-testid":x("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":x("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:m,hasNonZeroBalance:S,children:[t.jsx(ke,{"data-testid":x("account-group-row-circle-with-letter",e),color:L(A),showCollapsedIcon:!u,showIcon:b&&$,firstLetter:v}),t.jsx(hc,{"data-testid":x("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":x("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((N,z)=>t.jsx(uc,{"data-testid":x("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:N,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(rn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
895
+ `,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:J(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=I.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((F,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
896
896
  display: flex;
897
897
  flex: 1 1 auto;
898
898
  width: fit-content;
@@ -919,7 +919,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
919
919
  display: flex;
920
920
  flex-direction: row;
921
921
  justify-content: flex-start;
922
- `,jt=a(C)`
922
+ `,wt=a(_)`
923
923
  user-select: none;
924
924
  min-width: ${D.balanceWidth};
925
925
  max-width: ${D.balanceWidth};
@@ -939,13 +939,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
939
939
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
940
940
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
941
941
  background-color: ${e=>e.bgColor?.hex()};
942
- ${({isSticky:e})=>e?F`
942
+ ${({isSticky:e})=>e?P`
943
943
  position: -webkit-sticky;
944
944
  position: sticky;
945
945
  top: ${s.sp0};
946
946
  left: ${s.sp0};
947
947
  `:null}
948
- `,kc=a(C)`
948
+ `,kc=a(_)`
949
949
  user-select: none;
950
950
  clear: both;
951
951
  display: inline-block;
@@ -955,7 +955,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
955
955
  text-align: left;
956
956
  margin-left: 35px;
957
957
  color: ${e=>e.theme.colors.hero};
958
- `,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(jt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(jt,{isClickable:!1,children:Z(n)}),t.jsx(jt,{isClickable:!1,children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:m}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),v=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:v,A=Jn(),$=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=$===!0&&f!=null&&c!==!0&&m!=null&&d!==!0,N=W?"pointer":"default",z=(H,E)=>{W===!0&&l[l.length-1]!=null&&m?.(H,E,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:N},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((H,E)=>t.jsx(jc,{type:e,balance:H,account:f,onAccountBalanceClick:$===!1||m==null?void 0:(Y,Q)=>{m(o,Y,Q)},compareMode:g},E))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(rn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const vc=a.div`
958
+ `,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:J(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Jn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,F=W?"pointer":"default",z=(K,G)=>{W===!0&&l[l.length-1]!=null&&x?.(K,G,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:F},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,G)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,Q)=>{x(o,Y,Q)},compareMode:g},G))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const _c=a.div`
959
959
  display: flex;
960
960
  flex: 1 1 auto;
961
961
  width: fit-content;
@@ -963,7 +963,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
963
963
  flex-direction: column;
964
964
  height: ${e=>e.rootHeight-1}px;
965
965
  background-color: ${e=>e.bgColor?.hex()};
966
- `,_c=a.div`
966
+ `,vc=a.div`
967
967
  user-select: none;
968
968
  display: flex;
969
969
  flex: 1 1 auto;
@@ -979,13 +979,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
979
979
  display: flex;
980
980
  flex-direction: row;
981
981
  justify-content: flex-start;
982
- `,Ae=a(C)`
982
+ `,Ce=a(_)`
983
983
  user-select: none;
984
984
  max-width: ${D.balanceWidth};
985
985
  min-width: ${D.balanceWidth};
986
986
  text-align: right;
987
987
  margin-left: ${D.balanceLeftMargin};
988
- `,Pn=a(C)`
988
+ `,Pn=a(_)`
989
989
  user-select: none;
990
990
  max-width: ${D.balanceWidth};
991
991
  min-width: ${D.balanceWidth};
@@ -1005,13 +1005,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1005
1005
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1006
1006
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1007
1007
  background-color: ${e=>e.bgColor?.hex()};
1008
- ${({isSticky:e})=>e?F`
1008
+ ${({isSticky:e})=>e?P`
1009
1009
  position: -webkit-sticky;
1010
1010
  position: sticky;
1011
1011
  top: ${s.sp0};
1012
1012
  left: ${s.sp0};
1013
1013
  `:null}
1014
- `,Bc=a(C)`
1014
+ `,Bc=a(_)`
1015
1015
  user-select: none;
1016
1016
  user-select: none;
1017
1017
  clear: both;
@@ -1021,7 +1021,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1021
1021
  text-overflow: ellipsis;
1022
1022
  text-align: left;
1023
1023
  margin-left: ${s.sp2};
1024
- `,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ae,{style:{color:i.toString()},children:q(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ae,{style:{color:i.toString()},children:Z(n)}),t.jsx(Ae,{style:{color:i.toString()},children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]}),t.jsxs(Nn,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:fe("0,0%",r)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:fe("0,0%",l)}):t.jsx(Ae,{}),t.jsx(Ae,{})]}):null]})]})};function an({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const m=O(),[b,y]=I.useState(!1),v=!p,S=v?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(vc,{"data-testid":x("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:m,children:[t.jsxs(_c,{"data-testid":x("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":x("section-row-name-container",o),isSticky:i,windowSize:m,bgColor:n,children:[t.jsx(ke,{"data-testid":x("section-row-circle-with-letter",o),color:L(d),showCollapsedIcon:!u,showIcon:v&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":x("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":x("section-row-balances-container",o),children:c.map(($,W)=>t.jsx(Wc,{"data-testid":x("section-row-balance-element",e),type:e,sectionName:l,balance:$,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(rn,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
1024
+ `,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(Nn,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:J(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(Nn,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=I.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(_c,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(vc,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
1025
1025
  display: flex;
1026
1026
  flex: 1 1 auto;
1027
1027
  width: fit-content;
@@ -1045,7 +1045,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1045
1045
  display: flex;
1046
1046
  flex-direction: row;
1047
1047
  justify-content: flex-start;
1048
- `,Hi=a(C)`
1048
+ `,Hi=a(_)`
1049
1049
  user-select: none;
1050
1050
  min-width: ${D.balanceWidth};
1051
1051
  max-width: ${D.balanceWidth};
@@ -1066,13 +1066,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1066
1066
  width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1067
1067
  max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1068
1068
  background-color: ${e=>e.bgColor?.hex()};
1069
- ${({isSticky:e})=>e?F`
1069
+ ${({isSticky:e})=>e?P`
1070
1070
  position: -webkit-sticky;
1071
1071
  position: sticky;
1072
1072
  top: ${s.sp0};
1073
1073
  left: ${s.sp0};
1074
1074
  `:null}
1075
- `,Tc=a(C)`
1075
+ `,Tc=a(_)`
1076
1076
  user-select: none;
1077
1077
  clear: both;
1078
1078
  display: inline-block;
@@ -1081,14 +1081,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1081
1081
  text-overflow: ellipsis;
1082
1082
  text-align: left;
1083
1083
  color: ${e=>e.theme.colors.brandColorJadeDark};
1084
- `,St=a(C)`
1084
+ `,yt=a(_)`
1085
1085
  user-select: none;
1086
1086
  min-width: ${D.balanceWidth};
1087
1087
  max-width: ${D.balanceWidth};
1088
1088
  text-align: right;
1089
1089
  margin-left: ${D.balanceLeftMargin};
1090
1090
  color: ${e=>e.theme.colors.brandColorJadeDark};
1091
- `,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{children:q(n)}),t.jsx(St,{children:Z(n)}),t.jsx(St,{children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ic,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Nc,{children:c.map((m,b)=>t.jsx(Vc,{type:e,balance:m,collapsed:!1,compareMode:h},b))})]})})}const Ce={net_burn_or_income:{income:{color:new L(T.graphColor04),hoverColor:new L(T.graphColor04Dark)},cogs:{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)},expenses:{color:new L(T.graphColor32),hoverColor:new L(T.graphColor32Dark)},"Gross Burn":{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)},"Net Burn":{color:new L(T.graphColor13),hoverColor:new L(T.graphColor13Dark)},"Net Income":{color:new L(T.graphColor13),hoverColor:new L(T.graphColor13Dark)}},revenue:{income:{color:new L(T.graphColor28),hoverColor:new L(T.graphColor28Dark)},cogs:{color:new L(T.graphColor17),hoverColor:new L(T.graphColor17Dark)},"Gross Margin":{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new L(T.graphColor33),hoverColor:new L(T.graphColor33Dark)},cash_out:{color:new L(T.graphColor02),hoverColor:new L(T.graphColor02Dark)},"Net Cash Flow":{color:new L(T.graphColor35),hoverColor:new L(T.graphColor35Dark)}},default:{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)}},ln=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?Ce.net_burn_or_income[n]:Ce.default:e.startsWith("revenue")===!0?n!=null?Ce.revenue[n]:Ce.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?Ce.cash_in_cash_out[n]:Ce.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Te(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:m.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,v)=>{p?.(b,y,v)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.sectionType),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.sectionType),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=ln(i.config.reportId,i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(an,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),cn=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
1091
+ `,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:J(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ic,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Nc,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
1092
1092
  display: flex;
1093
1093
  flex: 1 1 auto;
1094
1094
  height: 1px;
@@ -1097,7 +1097,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1097
1097
  display: flex;
1098
1098
  height: 1px;
1099
1099
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
- `;function At({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
1100
+ `;function _t({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
1101
1101
  position: relative;
1102
1102
  `,Jc=a.div`
1103
1103
  height: ${e=>e.height}px;
@@ -1158,7 +1158,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1158
1158
  text-align: center;
1159
1159
  color: ${e=>e.textColor.hex()};
1160
1160
  background-color: ${e=>e.bgColor.hex()};
1161
- `,ut=({amount:e,percentage:n,currency:i})=>{const o=le();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new L(o.colors.brandColorGoldDark):new L(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new L(o.colors.brandColorGoldDark):new L(o.colors.success),bgColor:e>0?new L(X.brandColorGoldLight):new L(X.successLight),children:`${Po(Math.abs(n)).format(Fn.common.numberFormat.roundedOff)}${Fn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
1161
+ `,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${Po(Math.abs(n)).format(Fn.common.numberFormat.roundedOff)}${Fn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
1162
1162
  display: flex;
1163
1163
  flex: 1 1 auto;
1164
1164
  width: fit-content;
@@ -1185,7 +1185,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1185
1185
  display: flex;
1186
1186
  flex-direction: row;
1187
1187
  justify-content: flex-start;
1188
- `,hs=a(C)`
1188
+ `,hs=a(_)`
1189
1189
  min-width: ${j.balanceWidth};
1190
1190
  max-width: ${j.balanceWidth};
1191
1191
  text-align: right;
@@ -1199,7 +1199,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1199
1199
  width: ${j.categoryClassContainerWidth};
1200
1200
  max-width: ${j.categoryClassContainerWidth};
1201
1201
  padding-left: 67.5px;
1202
- ${({isSticky:e})=>e?F`
1202
+ ${({isSticky:e})=>e?P`
1203
1203
  position: sticky;
1204
1204
  top: ${s.sp0};
1205
1205
  left: ${s.sp0};
@@ -1216,17 +1216,17 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1216
1216
  flex-grow: 1;
1217
1217
  align-items: center;
1218
1218
  width: 100%;
1219
- `,fs=a(be)`
1219
+ `,fs=a(we)`
1220
1220
  display: flex;
1221
1221
  width: ${j.categoryClassHeaderWidth};
1222
1222
  margin-left: ${s.sp3};
1223
1223
  color: ${e=>e.theme.colors.hero};
1224
- `,xs=a(be)`
1224
+ `,xs=a(we)`
1225
1225
  display: flex;
1226
1226
  width: ${j.categoryClassHeaderWidth};
1227
1227
  margin-left: ${s.sp4};
1228
1228
  color: ${e=>e.theme.colors.hero};
1229
- `,ms=a(C)`
1229
+ `,ms=a(_)`
1230
1230
  clear: both;
1231
1231
  display: flex;
1232
1232
  overflow: hidden;
@@ -1236,7 +1236,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1236
1236
  margin-left: 2px;
1237
1237
  width: ${j.categoryClassValueWidth};
1238
1238
  max-width: ${j.categoryClassValueWidth};
1239
- `,ws=a(C)`
1239
+ `,ws=a(_)`
1240
1240
  display: flex;
1241
1241
  align-items: center;
1242
1242
  overflow: hidden;
@@ -1264,7 +1264,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1264
1264
  display: flex;
1265
1265
  flex: 1;
1266
1266
  justify-content: flex-end;
1267
- `,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Ji,{children:[e?t.jsx(Zi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,m=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:m,children:m}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((v,S)=>t.jsx(js,{balance:v,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Ji,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Zi,{}),t.jsx(ut,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(At,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(At,{isScrolling:e,kind:"account_class_row_separator"}):null}function vs(){return t.jsxs(_s,{children:[t.jsxs(Ls,{children:[t.jsxs(ve,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ve,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ve,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ve,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const _s=a.div`
1267
+ `,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Ji,{children:[e?t.jsx(Zi,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Ji,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Zi,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(_t,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(_t,{isScrolling:e,kind:"account_class_row_separator"}):null}function _s(){return t.jsxs(vs,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const vs=a.div`
1268
1268
  display: flex;
1269
1269
  flex-direction: row;
1270
1270
  width: 100%;
@@ -1272,7 +1272,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1272
1272
  .vendor-title {
1273
1273
  justify-content: flex-start;
1274
1274
  }
1275
- `,ve=a.div`
1275
+ `,ke=a.div`
1276
1276
  display: flex;
1277
1277
  flex-direction: row;
1278
1278
  align-items: center;
@@ -1311,7 +1311,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1311
1311
  display: flex;
1312
1312
  flex-direction: row;
1313
1313
  justify-content: flex-start;
1314
- `,Os=a(C)`
1314
+ `,Os=a(_)`
1315
1315
  max-width: ${j.balanceWidth};
1316
1316
  min-width: ${j.balanceWidth};
1317
1317
  text-align: right;
@@ -1326,12 +1326,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1326
1326
  width: ${j.sectionContainerWidth};
1327
1327
  min-width: ${j.sectionContainerWidth};
1328
1328
  background-color: ${e=>e.bgColor?.hex()};
1329
- ${({isSticky:e})=>e&&F`
1329
+ ${({isSticky:e})=>e&&P`
1330
1330
  position: sticky;
1331
1331
  top: ${s.sp0};
1332
1332
  left: ${s.sp0};
1333
1333
  `}
1334
- `,Is=a(C)`
1334
+ `,Is=a(_)`
1335
1335
  clear: both;
1336
1336
  display: inline-block;
1337
1337
  overflow: hidden;
@@ -1340,7 +1340,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1340
1340
  text-align: left;
1341
1341
  margin-left: ${s.sp2};
1342
1342
  color: ${({color:e})=>e};
1343
- `,Ns=a(Gt)`
1343
+ `,Ns=a(Tt)`
1344
1344
  color: ${e=>e.theme.colors.primary};
1345
1345
  width: ${s.sp3};
1346
1346
  height: ${s.sp3};
@@ -1363,12 +1363,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1363
1363
  ${j.statusContainerWidth} +
1364
1364
  ${j.statusLeftMargin}
1365
1365
  );
1366
- `,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:m,isOpen:b,isLeaf:y,idsForReview:v,sectionToggled:S,onSectionCheckboxClick:A}){const $=O(),[W,N]=I.useState(v.length>0),[z,H]=I.useState(!1),E=i.includes(n),Y=!y,Q=v.length===cn&&!E,pe=d?.[0]?.toUpperCase()??"",J=I.useCallback(oe=>{A?.(n,oe.target.checked)},[n,A]),de=x("flux-analysis-section-expand-collapse",n),$e=x("flux-analysis-section-row",n),he=x("flux-analysis-section-checkbox",n);return t.jsxs(As,{heightValue:c,bgColor:o,"data-testid":$e,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{H(!0),N(!0)},onMouseLeave:()=>{H(!1),v.length===0&&N(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:$,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(Tt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":he,icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ns,{}),checked:E,id:l,disabled:Q,onChange:J,onClick:oe=>oe.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ke,{color:L(f),dataTestId:de,firstLetter:pe,showCollapsedIcon:!b,showIcon:z&&Y}),t.jsx(Is,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((oe,je)=>t.jsx(Ts,{sectionName:d,balance:oe,color:f.toString()},je)),t.jsx(ut,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:m,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(At,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Gs,{windowSize:e,children:[t.jsx(Be,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Be,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Gs=a.div`
1366
+ `,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,F]=I.useState(C.length>0),[z,K]=I.useState(!1),G=i.includes(n),Y=!y,Q=C.length===on&&!G,he=d?.[0]?.toUpperCase()??"",Z=I.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),F(!0)},onMouseLeave:()=>{K(!1),C.length===0&&F(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(Nt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ns,{}),checked:G,id:l,disabled:Q,onChange:Z,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Is,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(_t,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Es,{windowSize:e,children:[t.jsx(_e,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(_e,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Es=a.div`
1367
1367
  display: flex;
1368
1368
  flex-direction: row;
1369
1369
  width: 100%;
1370
1370
  margin-left: ${s.sp8};
1371
- `,Be=a.div`
1371
+ `,_e=a.div`
1372
1372
  display: flex;
1373
1373
  flex-direction: row;
1374
1374
  align-items: center;
@@ -1380,7 +1380,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1380
1380
  :first-of-type {
1381
1381
  justify-content: flex-start;
1382
1382
  }
1383
- `,{common:Es,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
1383
+ `,{common:Gs,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
1384
1384
  display: flex;
1385
1385
  flex: 1 1 auto;
1386
1386
  width: fit-content;
@@ -1390,7 +1390,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1390
1390
  justify-content: flex-start;
1391
1391
  align-items: center;
1392
1392
  background-color: ${e=>e.bgColor?.hex()};
1393
- `,Bt=a.div`
1393
+ `,vt=a.div`
1394
1394
  display: flex;
1395
1395
  max-height: ${s.sp8};
1396
1396
  min-height: ${s.sp8};
@@ -1403,7 +1403,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1403
1403
  margin-left: ${j.balanceLeftMargin};
1404
1404
  color: ${e=>e.theme.colors.primary};
1405
1405
  cursor: ${e=>e.isClickable?"pointer":"default"};
1406
- `,Us=a(C)`
1406
+ `,Us=a(_)`
1407
1407
  display: flex;
1408
1408
  flex-direction: row;
1409
1409
  justify-content: center;
@@ -1427,7 +1427,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1427
1427
  z-index: 1;
1428
1428
  background-color: ${e=>e.theme.colors.grey4};
1429
1429
  padding-left: ${s.sp8};
1430
- ${({isSticky:e})=>e?F`
1430
+ ${({isSticky:e})=>e?P`
1431
1431
  top: ${s.sp0};
1432
1432
  left: ${s.sp0};
1433
1433
  display: flex;
@@ -1441,22 +1441,22 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1441
1441
  min-width: ${j.vendorContainerWidth};
1442
1442
  color: ${e=>e.theme.colors.primary};
1443
1443
  background-color: ${e=>e.theme.colors.grey4};
1444
- `,Xs=a(C)`
1444
+ `,Xs=a(_)`
1445
1445
  display: flex;
1446
1446
  gap: 6px;
1447
1447
  align-items: baseline;
1448
1448
  color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1449
- `,Wt=a.div`
1449
+ `,$t=a.div`
1450
1450
  display: flex;
1451
1451
  cursor: pointer;
1452
- `,Ot=a.div`
1452
+ `,Lt=a.div`
1453
1453
  color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
- `,Mt=a(Ht)`
1454
+ `,At=a(Dt)`
1455
1455
  width: ${j.sortIconDimension};
1456
1456
  height: ${j.sortIconDimension};
1457
1457
  margin-left: ${s.sp2};
1458
1458
  margin-top: ${s.sp1};
1459
- `,It=a(Kt)`
1459
+ `,Bt=a(Rt)`
1460
1460
  width: ${j.sortIconDimension};
1461
1461
  height: ${j.sortIconDimension};
1462
1462
  margin-left: ${s.sp2};
@@ -1466,7 +1466,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1466
1466
  margin-left: ${s.sp7};
1467
1467
  flex: 1 1 auto;
1468
1468
  justify-content: flex-end;
1469
- `,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(Bt,{isClickable:!1,children:t.jsx(Us,{children:De(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Wt,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Ot,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Js,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Zs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(Bt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(Wt,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":x("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})}),t.jsx(Bt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(Wt,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":x("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Qs,{children:Es.texts.reviewStatus}),t.jsx(Ot,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(Mt,{}):t.jsx(It,{})})]})})]})]})}const rd=a.div`
1469
+ `,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(vt,{isClickable:!1,children:t.jsx(Us,{children:Pe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Js,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Zs,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(vt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(vt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Qs,{children:Gs.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
1470
1470
  display: flex;
1471
1471
  flex: 1 1 auto;
1472
1472
  width: fit-content;
@@ -1534,7 +1534,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1534
1534
  margin-left: ${s.sp7};
1535
1535
  flex: 1 1 auto;
1536
1536
  justify-content: flex-end;
1537
- `,pd=({balance:e})=>t.jsx(cd,{children:t.jsx(sd,{children:U("0,0",e?.balance)})});function fd({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(rd,{"data-testid":x("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(ad,{"data-testid":x("total-row-container"),children:[t.jsx(dd,{className:"flux-total-row",children:t.jsx(hd,{children:i})}),t.jsxs(gd,{children:[t.jsx(ld,{children:re(e)&&o.map((h,u)=>t.jsx(pd,{balance:h},u))}),t.jsx(ut,{amount:r,percentage:l,currency:c}),t.jsx(ud,{})]})]})})}const xd=a.div`
1537
+ `,pd=({balance:e})=>t.jsx(cd,{children:t.jsx(sd,{children:U("0,0",e?.balance)})});function fd({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(rd,{"data-testid":m("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(ad,{"data-testid":m("total-row-container"),children:[t.jsx(dd,{className:"flux-total-row",children:t.jsx(hd,{children:i})}),t.jsxs(gd,{children:[t.jsx(ld,{children:re(e)&&o.map((h,u)=>t.jsx(pd,{balance:h},u))}),t.jsx(lt,{amount:r,percentage:l,currency:c}),t.jsx(ud,{})]})]})})}const xd=a.div`
1538
1538
  display: flex;
1539
1539
  flex: 1 1 auto;
1540
1540
  width: fit-content;
@@ -1571,7 +1571,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1571
1571
  justify-content: flex-start;
1572
1572
  align-items: center;
1573
1573
  margin-left: ${j.balanceLeftMargin};
1574
- `,yd=a(C)`
1574
+ `,yd=a(_)`
1575
1575
  user-select: none;
1576
1576
  min-width: ${j.balanceWidth};
1577
1577
  max-width: ${j.balanceWidth};
@@ -1585,13 +1585,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1585
1585
  width: ${j.titleWidth};
1586
1586
  max-width: ${j.titleWidth};
1587
1587
  background-color: ${e=>e.bgColor?.hex()};
1588
- ${({isSticky:e})=>e?F`
1588
+ ${({isSticky:e})=>e?P`
1589
1589
  position: -webkit-sticky;
1590
1590
  position: sticky;
1591
1591
  top: ${s.sp0};
1592
1592
  left: ${s.sp0};
1593
1593
  `:null}
1594
- `,kd=a(C)`
1594
+ `,kd=a(_)`
1595
1595
  user-select: none;
1596
1596
  clear: both;
1597
1597
  display: inline-block;
@@ -1632,12 +1632,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1632
1632
  justify-content: center;
1633
1633
  text-align: center;
1634
1634
  background-color: ${e=>e.bgColor.hex()};
1635
- `;const vd=a.div`
1635
+ `;const _d=a.div`
1636
1636
  display: flex;
1637
1637
  margin-left: ${s.sp7};
1638
1638
  flex: 1 1 auto;
1639
1639
  justify-content: flex-end;
1640
- `,_d=a.div`
1640
+ `,vd=a.div`
1641
1641
  display: flex;
1642
1642
  flex-direction: column;
1643
1643
  align-items: center;
@@ -1649,7 +1649,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1649
1649
  justify-content: center;
1650
1650
  flex-direction: row;
1651
1651
  margin-left: ${j.statusLeftMargin};
1652
- `,Ld=a(be)`
1652
+ `,Ld=a(we)`
1653
1653
  width: ${j.balanceWidth};
1654
1654
  max-width: ${j.balanceWidth};
1655
1655
  color: ${e=>e.theme.colors.primary};
@@ -1667,7 +1667,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1667
1667
  display: flex;
1668
1668
  align-items: center;
1669
1669
  margin-right: ${s.sp2};
1670
- `,Bd=a(be)`
1670
+ `,Bd=a(we)`
1671
1671
  overflow: hidden;
1672
1672
  text-overflow: ellipsis;
1673
1673
  `,Wd=a.div`
@@ -1679,11 +1679,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1679
1679
  background-color: transparent;
1680
1680
  }
1681
1681
  }
1682
- `,Od=a(Gt)`
1682
+ `,Od=a(Tt)`
1683
1683
  color: ${e=>e.theme.colors.primary};
1684
1684
  width: ${s.sp3};
1685
1685
  height: ${s.sp3};
1686
- `,Md=a(be)`
1686
+ `,Md=a(we)`
1687
1687
  display: flex;
1688
1688
  flex-direction: row;
1689
1689
  align-items: center;
@@ -1696,7 +1696,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1696
1696
  margin-left: 2px;
1697
1697
  width: 12px;
1698
1698
  height: 12px;
1699
- `,Nd=a(Me)`
1699
+ `,Nd=a(Le)`
1700
1700
  display: flex;
1701
1701
  border-radius: 50%;
1702
1702
  width: ${s.sp4};
@@ -1704,7 +1704,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1704
1704
  text-align: center;
1705
1705
  align-items: center;
1706
1706
  justify-content: center;
1707
- `,Pd=a(Me)`
1707
+ `,Pd=a(Le)`
1708
1708
  display: flex;
1709
1709
  border-radius: ${s.sp1};
1710
1710
  width: ${s.sp4};
@@ -1713,7 +1713,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1713
1713
  align-items: center;
1714
1714
  justify-content: center;
1715
1715
  margin-right: ${s.sp4};
1716
- `,Fd=a(Me)`
1716
+ `,Fd=a(Le)`
1717
1717
  display: flex;
1718
1718
  border-radius: 100px;
1719
1719
  width: 18px;
@@ -1721,7 +1721,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1721
1721
  justify-content: center;
1722
1722
  align-items: center;
1723
1723
  margin-left: ${s.sp1};
1724
- `,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:m,isOpen:b,childrenCount:y,vendorRowIndex:v,setHoveredParentId:S,onClick:A,handleRedirectToVendorDetailPage:$,updateOperatingExpensesIdsForReview:W}){const[N,z]=I.useState(!1),[H,E]=I.useState(n.length>0),Y=n.includes(e),Q=n.includes(e),pe=c==="collapsed",J=n.length===cn&&Y===!1,de=kd,$e=xe=>{let ue=n;xe.target.checked===!0?ue=[...ue,e]:ue=ue.filter(Le=>Le!==e),W?.(ue)},he=()=>{$?.(m)},oe=v!=null?String(v):e,je=x("flux-analysis-vendor-checkbox",oe),Ke=x("flux-analysis-vendor-detail-navigation",oe),Se=x("flux-analysis-vendor-expand-collapse",oe),Ye=x("flux-analysis-vendor-row",oe);return t.jsx(xd,{heightValue:l,bgColor:i,"data-testid":Ye,children:t.jsxs(md,{shouldHighlight:Q,isRowExpanded:b,onClick:()=>A?.(r),onMouseOver:()=>{z(!0),E(!0),S?.(m.id)},onMouseLeave:()=>{z(!1),n.length===0&&E(!1),S?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:H?t.jsx(Tt,{className:"flux-vendor-checkbox","data-testid":je,icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:Y,name:m.name,id:e,disabled:J,onChange:$e,onClick:xe=>xe.stopPropagation(),style:{padding:"20px",pointerEvents:J?"none":"auto"}}):null}),t.jsxs(_d,{isNodeOpen:b,children:[N?t.jsx(Nd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":Se,children:b===!1?t.jsx(Tn,{}):t.jsx(Id,{})}):m.logo!=null?t.jsx(Dt,{photoUrl:m.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Rt,{name:m.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(de,{children:m.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Me,{children:y})})]}),N?t.jsx(I.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:he,"data-testid":Ke,children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(vd,{children:[p.map((xe,ue)=>t.jsx(Td,{balance:xe,collapsed:pe},ue)),t.jsx(ut,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Me,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new L(T.graphColor04),hoverColor:new L(T.graphColor04Dark)},reimbursement:{color:new L(T.graphColor10),hoverColor:new L(T.graphColor10Dark)},default:{color:new L(X.neutralGrey2Dark),hoverColor:new L(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,sn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!sn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Gd=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!sn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),m=Qi("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:m,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ed=(e,n,i,o,r,l,c,d,h,u)=>{if(!sn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=m=>{n.config.fluxAnalysisConfig?.onSectionRowClick(m),u?.(m)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:m=>{f?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Re(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ve(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===cn,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(vs,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
1724
+ `,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,F]=I.useState(!1),[z,K]=I.useState(n.length>0),G=n.includes(e),Y=n.includes(e),Q=c==="collapsed",he=n.length===on&&G===!1,Z=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{F(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(Nt,{className:"flux-vendor-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:G,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(vd,{isNodeOpen:b,children:[W?t.jsx(Nd,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Id,{})}):x.logo!=null?t.jsx(Ft,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(Z,{children:x.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(I.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(_d,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:Q},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(I.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Ed=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),x=Qi("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Gd=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Fe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ne(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(_s,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
1725
1725
  display: flex;
1726
1726
  flex: 1 1 auto;
1727
1727
  width: fit-content;
@@ -1752,7 +1752,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1752
1752
  align-items: center;
1753
1753
  font-weight: ${e=>e.isSubclass?Sn.regular:Sn.medium};
1754
1754
  color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1755
- `,Xd=a(be)`
1755
+ `,Xd=a(we)`
1756
1756
  display: flex;
1757
1757
  color: ${e=>e.theme.colors.primary};
1758
1758
  align-items: center;
@@ -1763,11 +1763,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1763
1763
  border-radius: ${s.sp1};
1764
1764
  margin: 0 ${s.sp5} 0 ${s.sp3};
1765
1765
  min-width: ${s.sp6};
1766
- `,eh=a(Gt)`
1766
+ `,eh=a(Tt)`
1767
1767
  color: ${e=>e.theme.colors.primary};
1768
1768
  width: ${s.sp3};
1769
1769
  height: ${s.sp3};
1770
- `;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":x("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Tt,{"data-testid":x("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Vt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:m=>{p?.(i,m.target.checked)},style:{height:s.sp6}})," ",t.jsx(Jd,{children:t.jsxs(Zd,{"data-testid":x("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":x("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
1770
+ `;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=I.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(Nt,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Jd,{children:t.jsxs(Zd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
1771
1771
  user-select: none;
1772
1772
  display: flex;
1773
1773
  flex: 1 1 auto;
@@ -1794,7 +1794,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1794
1794
  flex: 1 0 auto;
1795
1795
  flex-direction: row;
1796
1796
  justify-content: flex-end;
1797
- `,Rn=a(C)`
1797
+ `,Rn=a(_)`
1798
1798
  color: ${e=>e.theme.colors.hero};
1799
1799
  flex-grow: 1;
1800
1800
  -webkit-box-orient: vertical;
@@ -1804,7 +1804,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1804
1804
  max-width: ${M.balanceWidth};
1805
1805
  margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
1806
1806
  border: 1px solid transparent;
1807
- `,Gn=a(C)`
1807
+ `,En=a(_)`
1808
1808
  color: ${e=>e.theme.colors.hero};
1809
1809
  flex-grow: 1;
1810
1810
  -webkit-box-orient: vertical;
@@ -1819,14 +1819,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1819
1819
  min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1820
1820
  color: ${e=>e.theme.colors.primary};
1821
1821
  background-color: ${e=>e.bgColor?.hex()};
1822
- ${({isSticky:e})=>e?F`
1822
+ ${({isSticky:e})=>e?P`
1823
1823
  position: -webkit-sticky;
1824
1824
  position: sticky;
1825
1825
  top: ${s.sp0};
1826
1826
  left: ${s.sp0};
1827
1827
  z-index: 20;
1828
1828
  `:null}
1829
- `;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(ze,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
1829
+ `;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
1830
1830
  user-select: none;
1831
1831
  display: flex;
1832
1832
  flex: 1 1 auto;
@@ -1837,12 +1837,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1837
1837
  justify-content: flex-start;
1838
1838
  align-items: center;
1839
1839
  background-color: ${e=>e.bgColor?.hex()};
1840
- `,Ct=a.div``,hh=a.div`
1840
+ `,bt=a.div``,hh=a.div`
1841
1841
  display: flex;
1842
1842
  flex: 1 0 auto;
1843
1843
  flex-direction: row;
1844
1844
  justify-content: flex-end;
1845
- `,uh=a(C)`
1845
+ `,uh=a(_)`
1846
1846
  user-select: none;
1847
1847
  clear: both;
1848
1848
  display: inline-block;
@@ -1852,7 +1852,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1852
1852
  text-align: left;
1853
1853
  margin-left: ${s.sp2};
1854
1854
  color: ${e=>e.theme.colors.hero};
1855
- `,gh=a(C)`
1855
+ `,gh=a(_)`
1856
1856
  color: ${e=>e.theme.colors.hero};
1857
1857
  flex-grow: 1;
1858
1858
  -webkit-box-orient: vertical;
@@ -1860,7 +1860,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1860
1860
  min-width: ${M.balanceWidth};
1861
1861
  max-width: ${M.balanceWidth};
1862
1862
  border: 1px solid transparent;
1863
- `,En=a(C)`
1863
+ `,Gn=a(_)`
1864
1864
  color: ${e=>e.theme.colors.hero};
1865
1865
  flex-grow: 1;
1866
1866
  -webkit-box-orient: vertical;
@@ -1875,14 +1875,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1875
1875
  min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1876
1876
  color: ${e=>e.theme.colors.primary};
1877
1877
  background-color: ${e=>e.bgColor?.hex()};
1878
- ${({isSticky:e})=>e?F`
1878
+ ${({isSticky:e})=>e?P`
1879
1879
  position: -webkit-sticky;
1880
1880
  position: sticky;
1881
1881
  top: ${s.sp0};
1882
1882
  left: ${s.sp0};
1883
1883
  z-index: 20;
1884
1884
  `:null}
1885
- `;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":x("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(Ct,{})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(Ct,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(Ct,{children:" "})},`${h}RowItem`))]})]})}function dn({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=m=>B.getLocalizedStrings().compareMode[m];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:m=>i(m),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Nt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
1885
+ `;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
1886
1886
  margin-left: ${s.sp4};
1887
1887
  `,mh=a.div`
1888
1888
  display: flex;
@@ -1890,19 +1890,19 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1890
1890
  min-height: 54px;
1891
1891
  align-items: center;
1892
1892
  justify-content: center;
1893
- max-width: ${Nt.balanceWidthInPx-2}px;
1894
- min-width: ${Nt.balanceWidthInPx-2}px;
1893
+ max-width: ${Wt.balanceWidthInPx-2}px;
1894
+ min-width: ${Wt.balanceWidthInPx-2}px;
1895
1895
  background-color: ${e=>e.theme.colors.background};
1896
1896
  border: 1px solid ${e=>e.theme.colors.grey3};
1897
1897
  border-radius: ${s.sp2};
1898
1898
  color: ${e=>e.theme.colors.primary};
1899
- `,wh=a(C)`
1899
+ `,wh=a(_)`
1900
1900
  display: flex;
1901
1901
  user-select: none;
1902
1902
  flex-direction: row;
1903
1903
  justify-content: center;
1904
1904
  align-items: center;
1905
- height: ${Nt.balanceHeight};
1905
+ height: ${Wt.balanceHeight};
1906
1906
  `,yh=a.div`
1907
1907
  display: flex;
1908
1908
  flex-direction: row;
@@ -1912,19 +1912,19 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1912
1912
  margin-right: ${s.sp2};
1913
1913
  position: relative;
1914
1914
  top: -12px;
1915
- `,bh=a(Eo)`
1915
+ `,bh=a(Go)`
1916
1916
  color: ${e=>e.tagType==="under_review"?X.neutralGrey5Light:e.theme.mode==="light"?X.primaryDark:X.primaryLight};
1917
1917
  border-radius: ${s.sp2};
1918
1918
  padding: 3px 6px;
1919
1919
  margin-left: 12px;
1920
1920
  background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
1921
- `,kh=a(Go)`
1921
+ `,kh=a(Eo)`
1922
1922
  color: ${e=>e.theme.colors.hero};
1923
1923
  margin-left: 5px;
1924
1924
  height: ${s.sp3};
1925
1925
  width: ${s.sp3};
1926
1926
  margin-top: ${s.sp1};
1927
- `;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:De(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
1927
+ `;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Pe(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
1928
1928
  user-select: none;
1929
1929
  display: flex;
1930
1930
  flex: 1 1 auto;
@@ -1953,7 +1953,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1953
1953
  margin-left: ${M.balanceLeftMargin};
1954
1954
  color: ${e=>e.theme.colors.primary};
1955
1955
  cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1956
- `,io=a(C)`
1956
+ `,io=a(_)`
1957
1957
  display: flex;
1958
1958
  user-select: none;
1959
1959
  flex-direction: row;
@@ -1968,14 +1968,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1968
1968
  flex-direction: row;
1969
1969
  z-index: 1;
1970
1970
  background-color: ${e=>e.bgColor?.hex()};
1971
- ${({isSticky:e})=>e?F`
1971
+ ${({isSticky:e})=>e?P`
1972
1972
  position: -webkit-sticky;
1973
1973
  position: sticky;
1974
1974
  top: ${s.sp0};
1975
1975
  left: ${s.sp0};
1976
1976
  z-index: 1;
1977
1977
  `:null}
1978
- `,vh=a.div`
1978
+ `,_h=a.div`
1979
1979
  max-height: ${e=>e.plHeight}px;
1980
1980
  min-height: ${e=>e.plHeight}px;
1981
1981
  display: flex;
@@ -1984,12 +1984,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1984
1984
  min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1985
1985
  color: ${e=>e.theme.colors.primary};
1986
1986
  background-color: ${e=>e.bgColor?.hex()};
1987
- `,_h=a(C)`
1987
+ `,vh=a(_)`
1988
1988
  display: flex;
1989
1989
  gap: 6px;
1990
1990
  align-items: baseline;
1991
1991
  color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1992
- `,oo=a(C)`
1992
+ `,oo=a(_)`
1993
1993
  height: 100%;
1994
1994
  align-self: center;
1995
1995
  align-items: baseline;
@@ -1999,7 +1999,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
1999
1999
  display: flex;
2000
2000
  gap: 6px;
2001
2001
  align-items: center;
2002
- `,hn=a.div`
2002
+ `,ln=a.div`
2003
2003
  display: flex;
2004
2004
  cursor: pointer;
2005
2005
  `,$h=a.div`
@@ -2007,7 +2007,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2007
2007
  justify-content: center;
2008
2008
  align-items: center;
2009
2009
  color: ${e=>e.theme.colors.champion};
2010
- `,Lh=a.div``,Ah=a(C)`
2010
+ `,Lh=a.div``,Ah=a(_)`
2011
2011
  display: flex;
2012
2012
  justify-content: center;
2013
2013
  align-items: center;
@@ -2023,24 +2023,24 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2023
2023
  `,ro=a.div`
2024
2024
  max-height: ${s.sp8};
2025
2025
  min-height: ${s.sp8};
2026
- `,gt=a.div`
2026
+ `,ct=a.div`
2027
2027
  color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2028
- `,pt=a(Kt)`
2028
+ `,st=a(Rt)`
2029
2029
  width: 12px;
2030
2030
  height: 12px;
2031
2031
  margin-left: ${s.sp2};
2032
2032
  margin-top: ${s.sp1};
2033
- `,ft=a(Ht)`
2033
+ `,dt=a(Dt)`
2034
2034
  width: 12px;
2035
2035
  height: 12px;
2036
2036
  margin-left: ${s.sp2};
2037
2037
  margin-top: ${s.sp1};
2038
- `,un=a(ni)`
2038
+ `,cn=a(ni)`
2039
2039
  width: 12px;
2040
2040
  height: 12px;
2041
2041
  cursor: pointer;
2042
2042
  color: ${e=>e.theme.colors.hero};
2043
- `,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(xt("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":x("period-total-tick"),children:t.jsx(no,{"data-testid":x("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(gt,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(ft,{}):t.jsx(pt,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(xt("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(_h,{selectedForSort:e==="vendor",children:[t.jsxs(hn,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(gt,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(ft,{}):t.jsx(pt,{})})]}),e==="vendor"?t.jsx(un,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(xt("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(hn,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(gt,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(ft,{}):t.jsx(pt,{})})]}),e==="account"?t.jsx(un,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(xt("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(hn,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(gt,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(ft,{}):t.jsx(pt,{})})]}),e==="class"?t.jsx(un,{onClick:o}):null]})},lo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(ro,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(no,{isClickable:!1,children:t.jsx(io,{children:De(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Ih=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=le(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,m)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(dn,{title:g,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},m)}):null]},m))})};function Nh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:b,onSortOrderChanged:y}){const v=O(),S=($,W)=>{y?.($,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:v,isSticky:n,children:t.jsx(vh,{plHeight:i,windowSize:v,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Ih,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:b,onSortOrderChanged:S}):p.map(($,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:$,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:m,onSortOrderChanged:S},W))})]})}const xt=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Ph=a.div`
2043
+ `,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(vh,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(ro,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(no,{isClickable:!1,children:t.jsx(io,{children:Pe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Ih=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(I.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Nh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(_h,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Ih,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Ph=a.div`
2044
2044
  display: flex;
2045
2045
  flex: 1 1 auto;
2046
2046
  max-height: 1px;
@@ -2050,7 +2050,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2050
2050
  flex: 1 1 auto;
2051
2051
  max-height: 1px;
2052
2052
  background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
2053
- `;function Pt({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ph,{isScrolling:n});case"end_row_separator":return t.jsx(Fh,{isScrolling:n})}}const zh=a.div`
2053
+ `;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ph,{isScrolling:n});case"end_row_separator":return t.jsx(Fh,{isScrolling:n})}}const zh=a.div`
2054
2054
  display: flex;
2055
2055
  flex: 1 1 auto;
2056
2056
  width: fit-content;
@@ -2088,17 +2088,17 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2088
2088
  &:hover {
2089
2089
  color: inherit;
2090
2090
  }
2091
- `,Gh=a.div`
2091
+ `,Eh=a.div`
2092
2092
  display: flex;
2093
2093
  flex-direction: row;
2094
2094
  background-color: ${e=>e.bgColor?.hex()};
2095
- ${({isSticky:e})=>e?F`
2095
+ ${({isSticky:e})=>e?P`
2096
2096
  position: -webkit-sticky;
2097
2097
  position: sticky;
2098
2098
  top: ${s.sp0};
2099
2099
  left: ${s.sp0};
2100
2100
  `:null}
2101
- `,Eh=a.div`
2101
+ `,Gh=a.div`
2102
2102
  display: flex;
2103
2103
  flex-direction: row;
2104
2104
  flex-shrink: 2;
@@ -2120,7 +2120,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2120
2120
  text-overflow: ellipsis;
2121
2121
  text-align: left;
2122
2122
  color: ${e=>e.theme.colors.primary};
2123
- `,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":x("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":x("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Gh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Eh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,m)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},m))})]}),t.jsx(Pt,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
2123
+ `,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Eh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Gh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
2124
2124
  display: flex;
2125
2125
  flex: 1 1 auto;
2126
2126
  width: fit-content;
@@ -2147,7 +2147,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2147
2147
  display: flex;
2148
2148
  flex-direction: row;
2149
2149
  justify-content: flex-start;
2150
- `,Zh=a(C)`
2150
+ `,Zh=a(_)`
2151
2151
  user-select: none;
2152
2152
  min-width: ${M.balanceWidth};
2153
2153
  max-width: ${M.balanceWidth};
@@ -2163,7 +2163,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2163
2163
  display: flex;
2164
2164
  flex-direction: row;
2165
2165
  background-color: ${e=>e.bgColor?.hex()};
2166
- ${({isSticky:e})=>e?F`
2166
+ ${({isSticky:e})=>e?P`
2167
2167
  position: -webkit-sticky;
2168
2168
  position: sticky;
2169
2169
  top: ${s.sp0};
@@ -2179,7 +2179,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2179
2179
  width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2180
2180
  max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2181
2181
  background-color: ${e=>e.bgColor?.hex()};
2182
- `,We=a(C)`
2182
+ `,ve=a(_)`
2183
2183
  user-select: none;
2184
2184
  clear: both;
2185
2185
  display: inline-block;
@@ -2234,12 +2234,12 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2234
2234
  display: block;
2235
2235
  }
2236
2236
  }
2237
- `,au=a(C)`
2237
+ `,au=a(_)`
2238
2238
  color: ${e=>e.theme.colors.hero};
2239
- `,lu=a(C)`
2239
+ `,lu=a(_)`
2240
2240
  color: ${e=>e.theme.colors.hero};
2241
2241
  display: none;
2242
- `,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Jh,{children:t.jsx(Zh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f,vendorRowIndex:m}){const b=O(),y=m!=null?String(m):c.id,v=Jn(),S=v.loggedInUserRole!=null&&!oi(v.loggedInUserRole),A=ri(c.id),$=S===!0&&c!=null&&!A,W=$?"pointer":"default",N=c.name;return t.jsxs(Uh,{"data-testid":x("vendor-row-root-container",y),height:o,bgColor:n,windowSize:b,children:[t.jsxs(qh,{"data-testid":x("vendor-row-container",y),style:{cursor:W},isClickable:$,children:[t.jsx(Xh,{"data-testid":x("vendor-row-sticky-container",y),isSticky:i,windowSize:b,bgColor:n,children:t.jsxs(eu,{"data-testid":x("vendor-row-name-container",y),windowSize:b,bgColor:n,children:[t.jsxs(ot,{controller:!A,children:[c.logo!=null?t.jsx(Dt,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(b),height:M.nameLogoHeight.valuePx(b)}}):t.jsx(Rt,{name:N,size:s.sp4}),t.jsx(We,{"data-testid":x("vendor-row-name",y),style:{cursor:W},isClickable:$,onClick:()=>{$===!0&&f(c)},children:N})]}),t.jsx(ot,{controller:A,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:N})]})})]})}),p?t.jsx(tu,{windowSize:b,bgColor:n,children:h!=null?t.jsx(We,{"data-testid":x("vendor-row-account-name",y),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(We,{isClickable:!1,"data-testid":x("vendor-row-account-name",y),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:b,bgColor:n,children:u!=null?t.jsx(We,{"data-testid":x("vendor-row-class-name",y),title:u.className,isClickable:!1,children:u.className}):t.jsx(We,{"data-testid":x("vendor-row-class-name",y),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((z,H)=>t.jsx(cu,{type:e,balance:z,vendor:c,onVendorNameAndBalanceClick:f},H))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Pt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Pt,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Re(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ve(u));return t.jsx(Nh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendorRowIndex:n.element.index,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>Ve(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Re(e.element.data,e.config.displayOrder).map(l=>Ve(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function gn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
2242
+ `,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Jh,{children:t.jsx(Zh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Jn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(ve,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Xe,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(ve,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(ve,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(ve,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((W,F)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Fe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ne(u));return t.jsx(Nh,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ne(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
2243
2243
  display: flex;
2244
2244
  flex: 1 1 auto;
2245
2245
  width: fit-content;
@@ -2262,18 +2262,18 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2262
2262
  flex: 1 0 auto;
2263
2263
  flex-direction: row;
2264
2264
  justify-content: flex-end;
2265
- `,vu=a.div`
2265
+ `,_u=a.div`
2266
2266
  display: flex;
2267
2267
  flex-direction: row;
2268
2268
  justify-content: flex-start;
2269
- `,uo=a(C)`
2269
+ `,uo=a(_)`
2270
2270
  user-select: none;
2271
2271
  min-width: ${k.balanceWidth};
2272
2272
  max-width: ${k.balanceWidth};
2273
2273
  text-align: right;
2274
2274
  margin-left: ${k.balanceLeftMargin};
2275
2275
  color: ${e=>e.theme.colors.primary};
2276
- `,_u=a(uo)`
2276
+ `,vu=a(uo)`
2277
2277
  color: ${e=>e.theme.colors.hero};
2278
2278
  &:hover {
2279
2279
  color: inherit;
@@ -2287,13 +2287,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2287
2287
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2288
2288
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2289
2289
  background-color: ${e=>e.bgColor?.hex()};
2290
- ${({isSticky:e})=>e?F`
2290
+ ${({isSticky:e})=>e?P`
2291
2291
  position: -webkit-sticky;
2292
2292
  position: sticky;
2293
2293
  top: ${s.sp0};
2294
2294
  left: ${s.sp0};
2295
2295
  `:null}
2296
- `,go=a(C)`
2296
+ `,go=a(_)`
2297
2297
  user-select: none;
2298
2298
  clear: both;
2299
2299
  display: inline-block;
@@ -2308,7 +2308,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2308
2308
  &:hover {
2309
2309
  color: inherit;
2310
2310
  }
2311
- `,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?_u:uo;return t.jsxs(vu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:m,onClick:b}){const y=le(),v=O(),S=!f,A=S?"pointer":"default",$=l==="collapsed",W=l==="hidden",N=W===!0?w[6]:w[4],z=$===!0?Lu:go,H=$===!0?Zn:Xn,E=$===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":x("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":x("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:v,children:[W===!1?t.jsx(H,{color:E,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:N},children:c})]}):null,me(e)===!0?t.jsx(Cu,{children:d.map((Y,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:$},Q))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:m,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Ou=a.div`
2311
+ `,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?vu:uo;return t.jsxs(_u,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",F=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Zn:Xn,G=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:G,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:F},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
2312
2312
  display: flex;
2313
2313
  flex: 1 1 auto;
2314
2314
  width: fit-content;
@@ -2335,7 +2335,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2335
2335
  display: flex;
2336
2336
  flex-direction: row;
2337
2337
  justify-content: flex-start;
2338
- `,po=a(C)`
2338
+ `,po=a(_)`
2339
2339
  user-select: none;
2340
2340
  min-width: ${k.balanceWidth};
2341
2341
  max-width: ${k.balanceWidth};
@@ -2356,13 +2356,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2356
2356
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2357
2357
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2358
2358
  background-color: ${e=>e.bgColor?.hex()};
2359
- ${({isSticky:e})=>e?F`
2359
+ ${({isSticky:e})=>e?P`
2360
2360
  position: -webkit-sticky;
2361
2361
  position: sticky;
2362
2362
  top: ${s.sp0};
2363
2363
  left: ${s.sp0};
2364
2364
  `:null}
2365
- `,fo=a(C)`
2365
+ `,fo=a(_)`
2366
2366
  user-select: none;
2367
2367
  clear: both;
2368
2368
  display: inline-block;
@@ -2377,7 +2377,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2377
2377
  &:hover {
2378
2378
  color: inherit;
2379
2379
  }
2380
- `,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:m,onClick:b}){const y=O(),v=le(),S=!f,A=S?"pointer":"default",$=l==="collapsed",W=$===!0?zu:fo,[N,z]=I.useState(!1),H=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":x("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":x("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ke,{showCollapsedIcon:$,showIcon:N&&S,firstLetter:H,color:L(v.colors.primary)}),t.jsx(W,{children:c})]}):null,me(e)===!0?t.jsx(Iu,{children:d.map((E,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:E,isActualVsForecastOn:h,compareMode:u,collapsed:$},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:m,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const Ru=a.div`
2380
+ `,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Nu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[F,z]=I.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Iu,{children:d.map((G,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:G,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ru=a.div`
2381
2381
  display: flex;
2382
2382
  flex: 1 1 auto;
2383
2383
  width: fit-content;
@@ -2385,14 +2385,14 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2385
2385
  flex-direction: column;
2386
2386
  height: ${e=>e.height}px;
2387
2387
  background-color: ${e=>e.bgColor?.hex()};
2388
- `,Gu=a.div`
2388
+ `,Eu=a.div`
2389
2389
  user-select: none;
2390
2390
  display: flex;
2391
2391
  flex: 1 1 auto;
2392
2392
  flex-flow: row;
2393
2393
  justify-content: flex-start;
2394
2394
  align-items: center;
2395
- `,Eu=a.div`
2395
+ `,Gu=a.div`
2396
2396
  display: flex;
2397
2397
  flex: 1 0 auto;
2398
2398
  flex-direction: row;
@@ -2401,7 +2401,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2401
2401
  display: flex;
2402
2402
  flex-direction: row;
2403
2403
  justify-content: flex-start;
2404
- `,Xe=a(C)`
2404
+ `,Ue=a(_)`
2405
2405
  user-select: none;
2406
2406
  min-width: ${k.balanceWidth};
2407
2407
  max-width: ${k.balanceWidth};
@@ -2421,13 +2421,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2421
2421
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2422
2422
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2423
2423
  background-color: ${e=>e.bgColor?.hex()};
2424
- ${({isSticky:e})=>e?F`
2424
+ ${({isSticky:e})=>e?P`
2425
2425
  position: -webkit-sticky;
2426
2426
  position: sticky;
2427
2427
  top: ${s.sp0};
2428
2428
  left: ${s.sp0};
2429
2429
  `:null}
2430
- `,Yu=a(C)`
2430
+ `,Yu=a(_)`
2431
2431
  user-select: none;
2432
2432
  clear: both;
2433
2433
  display: inline-block;
@@ -2441,7 +2441,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2441
2441
  &:hover {
2442
2442
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2443
2443
  }
2444
- `,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Xe,{"data-testid":x("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Xe,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{isClickable:!1,"data-testid":x("account-row-balance-forecast",e),children:Z(n)}),t.jsx(Xe,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const m=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,v=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":x("account-row-root-container",o),children:[t.jsxs(Gu,{"data-testid":x("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:m,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:v,children:v})}):null,me(e)===!0?t.jsx(Eu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:($,W)=>{f(o,$,W)}},A))}):null]}),t.jsx(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(we,{isScrolling:e,kind:o})}const Ju=a.div`
2444
+ `,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:J(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Eu,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Gu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Ju=a.div`
2445
2445
  display: flex;
2446
2446
  flex: 1 1 auto;
2447
2447
  width: fit-content;
@@ -2465,7 +2465,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2465
2465
  display: flex;
2466
2466
  flex-direction: row;
2467
2467
  justify-content: flex-start;
2468
- `,et=a(C)`
2468
+ `,qe=a(_)`
2469
2469
  user-select: none;
2470
2470
  max-width: ${k.balanceWidth};
2471
2471
  min-width: ${k.balanceWidth};
@@ -2480,7 +2480,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2480
2480
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2481
2481
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2482
2482
  background-color: ${e=>e.bgColor?.hex()};
2483
- ${({isSticky:e})=>e?F`
2483
+ ${({isSticky:e})=>e?P`
2484
2484
  position: -webkit-sticky;
2485
2485
  position: sticky;
2486
2486
  top: ${s.sp0};
@@ -2489,7 +2489,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2489
2489
  `,ng=a.div`
2490
2490
  display: flex;
2491
2491
  flex-grow: 8;
2492
- `,ig=a(C)`
2492
+ `,ig=a(_)`
2493
2493
  user-select: none;
2494
2494
  user-select: none;
2495
2495
  clear: both;
@@ -2499,7 +2499,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2499
2499
  text-overflow: ellipsis;
2500
2500
  text-align: left;
2501
2501
  margin-left: ${s.sp2};
2502
- `,og=a(be)`
2502
+ `,og=a(we)`
2503
2503
  display: flex;
2504
2504
  color: ${e=>e.theme.colors.primary};
2505
2505
  align-items: center;
@@ -2510,7 +2510,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2510
2510
  border: 1px solid ${e=>e.theme.colors.primary};
2511
2511
  border-radius: ${s.sp1};
2512
2512
  margin: 0 ${s.sp5} 0 ${s.sp3};
2513
- `,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(et,{style:{color:i},children:q(n)}):t.jsx(et,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(et,{style:{color:i},children:Z(n)}),t.jsx(et,{style:{color:i},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:m,metadata:b,showClassAccountNumber:y,onClick:v,depth:S}){const A=O(),$=le(),W=!m,N=W?"pointer":"default",z=$.colors.primary,H=l.length>0?l.substr(0,1).toUpperCase():"",[E,Y]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Ju,{"data-testid":x("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Zu,{"data-testid":x("class-row-container",o),style:{cursor:N},onClick:()=>v?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(rg,{metadata:Q[S],depth:S}),t.jsx(ke,{color:L(z),showCollapsedIcon:!f,showIcon:E&&W,firstLetter:H,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),E===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,me(e)===!0?t.jsx(Xu,{children:d.map((pe,J)=>t.jsx(ag,{type:e,sectionName:l,balance:pe,isActualVsForecastOn:h,compareMode:u,color:z},J))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:m,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
2513
+ `,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Io,{}):t.jsx(No,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:J(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,F=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[G,Y]=I.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Ju,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Zu,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(rg,{metadata:Q[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:G&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),G===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Xu,{children:d.map((he,Z)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},Z))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
2514
2514
  display: flex;
2515
2515
  flex: 1 1 auto;
2516
2516
  width: fit-content;
@@ -2534,7 +2534,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2534
2534
  display: flex;
2535
2535
  flex-direction: row;
2536
2536
  justify-content: flex-start;
2537
- `,tt=a(C)`
2537
+ `,Qe=a(_)`
2538
2538
  user-select: none;
2539
2539
  max-width: ${k.balanceWidth};
2540
2540
  min-width: ${k.balanceWidth};
@@ -2549,13 +2549,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2549
2549
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2550
2550
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2551
2551
  background-color: ${e=>e.bgColor?.hex()};
2552
- ${({isSticky:e})=>e?F`
2552
+ ${({isSticky:e})=>e?P`
2553
2553
  position: -webkit-sticky;
2554
2554
  position: sticky;
2555
2555
  top: ${s.sp0};
2556
2556
  left: ${s.sp0};
2557
2557
  `:null}
2558
- `,pg=a(C)`
2558
+ `,pg=a(_)`
2559
2559
  user-select: none;
2560
2560
  user-select: none;
2561
2561
  clear: both;
@@ -2565,7 +2565,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2565
2565
  text-overflow: ellipsis;
2566
2566
  text-align: left;
2567
2567
  margin-left: ${s.sp2};
2568
- `,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:q(n)}):t.jsx(tt,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{style:{color:i},children:Z(n)}),t.jsx(tt,{style:{color:i},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function pn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:m}){const b=O(),y=!f,v=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,$]=I.useState(!1);return t.jsxs(sg,{"data-testid":x("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":x("section-row-container",o),style:{cursor:v},onClick:()=>m?.(o),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ke,{color:L(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,me(e)===!0?t.jsx(hg,{children:c.map((W,N)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},N))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
2568
+ `,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Qe,{style:{color:i},children:q(n)}):t.jsx(Qe,{style:{color:i},children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:i},children:J(n)}),t.jsx(Qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=I.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,F)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
2569
2569
  display: flex;
2570
2570
  flex: 1 1 auto;
2571
2571
  width: fit-content;
@@ -2589,7 +2589,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2589
2589
  display: flex;
2590
2590
  flex-direction: row;
2591
2591
  justify-content: flex-start;
2592
- `,nt=a(C)`
2592
+ `,Je=a(_)`
2593
2593
  user-select: none;
2594
2594
  min-width: ${k.balanceWidth};
2595
2595
  max-width: ${k.balanceWidth};
@@ -2617,18 +2617,18 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2617
2617
  &:hover {
2618
2618
  color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2619
2619
  }
2620
- ${({isSticky:e})=>e?F`
2620
+ ${({isSticky:e})=>e?P`
2621
2621
  position: -webkit-sticky;
2622
2622
  position: sticky;
2623
2623
  top: ${s.sp0};
2624
2624
  left: ${s.sp0};
2625
2625
  `:null}
2626
- `,jg=a(C)`
2626
+ `,jg=a(_)`
2627
2627
  user-select: none;
2628
2628
  clear: both;
2629
2629
  display: inline-block;
2630
2630
  text-align: left;
2631
- `,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?_t(n):Z(n),g=l===!0?ci(n):ce(n),f=l===!0?si(n):se(n);return t.jsxs(bg,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(nt,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:m=>{m.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(nt,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(nt,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(nt,{"data-testid":x("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:m,isLastNode:b,account:y,onAccountBalanceClick:v,onClick:S}){const A=O(),$=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,N=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:H}}}=B.getLocalizedStrings(),E=y?.account.accountDescription?y.account.accountDescription:H,Y=y?.account.accountName?y.account.accountName:E;return t.jsxs(mg,{"data-testid":x("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":x("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:N,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:$,classDepth:l,isLastNode:b,hasChildren:N,hasSiblings:W,isLeaf:f,collapsed:!m,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),me(e)===!0?t.jsx(yg,{children:c.map((Q,pe)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!m,onAccountBalanceClick:v==null?void 0:(J,de)=>{v(o,J,de)}},pe))}):null]}),t.jsx(vg,{isScrolling:p,isLeaf:f,isOpen:m,depth:$,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function vg({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(we,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const _g=[10,14,20,20,20],$g=a.div`
2631
+ `,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):J(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Je,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Je,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Je,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),G=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:G;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:F,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((Q,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(Z,ie)=>{C(o,Z,ie)}},he))}):null]}),t.jsx(_g,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function _g({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const vg=[10,14,20,20,20],$g=a.div`
2632
2632
  display: flex;
2633
2633
  flex: 1 1 auto;
2634
2634
  width: fit-content;
@@ -2655,7 +2655,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2655
2655
  display: flex;
2656
2656
  flex-direction: row;
2657
2657
  justify-content: flex-start;
2658
- `,it=a(C)`
2658
+ `,Ze=a(_)`
2659
2659
  user-select: none;
2660
2660
  min-width: ${k.balanceWidth};
2661
2661
  max-width: ${k.balanceWidth};
@@ -2673,13 +2673,13 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2673
2673
  width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2674
2674
  max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2675
2675
  background-color: ${e=>e.bgColor?.hex()};
2676
- ${({isSticky:e})=>e?F`
2676
+ ${({isSticky:e})=>e?P`
2677
2677
  position: -webkit-sticky;
2678
2678
  position: sticky;
2679
2679
  top: ${s.sp0};
2680
2680
  left: ${s.sp0};
2681
2681
  `:null}
2682
- `,Mg=a(C)`
2682
+ `,Mg=a(_)`
2683
2683
  user-select: none;
2684
2684
  clear: both;
2685
2685
  display: inline-block;
@@ -2687,10 +2687,10 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2687
2687
  white-space: nowrap;
2688
2688
  text-overflow: ellipsis;
2689
2689
  text-align: left;
2690
- margin-left: ${e=>_g[e.depth]}px;
2690
+ margin-left: ${e=>vg[e.depth]}px;
2691
2691
  color: ${e=>e.theme.colors.primary};
2692
2692
  width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
2693
- `,Ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":x("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(it,{"data-testid":x("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(it,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:_t(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:_t(n)}),t.jsx(it,{"data-testid":x("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ng({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const m=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,v=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:m,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:v.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:m}):null,t.jsx(gi,{ancestorMetadata:v.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":x("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:m,children:b.totalPrefix+" "+l})]}),me(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ig,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Pg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Pg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(we,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Fg=a.div`
2693
+ `,Ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Ze,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ng({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ig,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Pg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Pg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Fg=a.div`
2694
2694
  user-select: none;
2695
2695
  display: flex;
2696
2696
  flex: 1 1 auto;
@@ -2706,11 +2706,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2706
2706
  flex: 1 0 auto;
2707
2707
  flex-direction: row;
2708
2708
  justify-content: flex-end;
2709
- `,Fe=k.balanceWidthInPx+k.balanceLeftMarginInPx,xo=a.div`
2709
+ `,Oe=k.balanceWidthInPx+k.balanceLeftMarginInPx,xo=a.div`
2710
2710
  display: flex;
2711
2711
  max-height: 54px;
2712
2712
  min-height: 54px;
2713
- min-width: ${e=>e.isActualVsForecastOn?3*(Fe-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
2713
+ min-width: ${e=>e.isActualVsForecastOn?3*(Oe-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
2714
2714
  justify-content: center;
2715
2715
  align-items: center;
2716
2716
  background-color: ${e=>e.theme.colors.background};
@@ -2718,7 +2718,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2718
2718
  border-radius: ${s.sp2};
2719
2719
  margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
2720
2720
  color: ${e=>e.theme.colors.primary};
2721
- `,mo=a(C)`
2721
+ `,mo=a(_)`
2722
2722
  display: flex;
2723
2723
  user-select: none;
2724
2724
  flex-direction: row;
@@ -2737,7 +2737,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2737
2737
  color: ${e=>e.theme.colors.grey5};
2738
2738
  background-color: ${e=>e.bgColor?.hex()};
2739
2739
  border: 1px solid ${e=>e.bgColor?.hex()};
2740
- ${({isSticky:e})=>e?F`
2740
+ ${({isSticky:e})=>e?P`
2741
2741
  position: -webkit-sticky;
2742
2742
  position: sticky;
2743
2743
  top: ${s.sp0};
@@ -2746,11 +2746,11 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2746
2746
  `:null}
2747
2747
  `,Vg=a.div`
2748
2748
  display: flex;
2749
- width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
2749
+ width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
2750
2750
  flex-direction: row;
2751
2751
  justify-content: flex-start;
2752
2752
  color: ${e=>e.theme.colors.champion};
2753
- `,vt=a(C)`
2753
+ `,kt=a(_)`
2754
2754
  display: flex;
2755
2755
  justify-content: flex-end;
2756
2756
  align-items: center;
@@ -2766,7 +2766,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2766
2766
  justify-content: center;
2767
2767
  align-items: center;
2768
2768
  color: ${e=>e.theme.colors.champion};
2769
- `,Rg=a.div``,Gg=a(C)`
2769
+ `,Rg=a.div``,Eg=a(_)`
2770
2770
  display: flex;
2771
2771
  justify-content: center;
2772
2772
  align-items: center;
@@ -2779,15 +2779,15 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2779
2779
  color: ${e=>e.theme.colors.primary};
2780
2780
  width: ${k.balanceWidth};
2781
2781
  min-width: ${k.balanceWidth};
2782
- `,Eg=a.div`
2782
+ `,Gg=a.div`
2783
2783
  display: flex;
2784
- width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
2784
+ width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
2785
2785
  flex-direction: column;
2786
2786
  align-items: flex-end;
2787
2787
  `,Hg=a.div`
2788
2788
  max-height: 54px;
2789
2789
  min-height: 54px;
2790
- `,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:De(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:De(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(vt,{children:h.actual}),t.jsx(vt,{children:h.forecast}),t.jsx(vt,{children:t.jsx(dn,{title:u,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=le(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Gg,{children:t.jsx(dn,{title:h,titleTextStyle:Et.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const m=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const mt=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Te(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:m.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,v)=>{p?.(b,y,v)}})},Ge=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,v=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:v,onAccountBalanceClick:g==null?void 0:(S,A,$)=>{g?.(S,A,$)}})},wt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=st(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},fn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=gn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},xn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},yt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},mn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=zt(i.element.title),m=i.element.data,b=ee(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(pn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ee=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=gn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:m,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},He=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Re(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ve(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,b=ee(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:m.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:v=>{f?.(v)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,m=(v,S,A)=>{const $=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(v,!u)),e.onNodeClick?.(v,$,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?m:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):qt(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Te(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Zt(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return xn(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,g,m);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return mt(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return wt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return xn(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return yt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return mn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return on(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Ee(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return He(e,n,i,o,r,l,p,f);case"ac_subaccount":return Ge(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return fn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Gd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:wn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function wn(e,n,i){return Yt(e)===!0?Qr(n):Ut(e)===!0||Te(e)===!0?ic(n):qt(e)?ca(n):Qt(e)?ct(n):Jt(e)?ih(n):Zt(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Yt(e)?Jr(n,o,i):Ut(e)||Te(e)===!0?oc(n,o):qt(e)?sa():Jt(e)?oh():Zt(e)?os(n):Qt(e)?qo():gl(n,o)}const cp=a.div`
2790
+ `,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Gg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(I.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Eg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ie(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=It(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ng,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ne(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Ie(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Ed(e,n,o,r,l,u,c,d,h,f,g);case"section":return Gd(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Gr();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Et(e)===!0?Qr(n):Gt(e)===!0||Ie(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Et(e)?Jr(n,o,i):Gt(e)||Ie(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
2791
2791
  top: 0;
2792
2792
  left: 0;
2793
2793
  position: sticky !important;
@@ -2802,7 +2802,7 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2802
2802
  align-items: center;
2803
2803
  background-color: ${e=>e.bgColor?.hex()};
2804
2804
  box-sizing: border-box;
2805
- `;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:wn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:b,scrollPosition:y,onScroll:v,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:$,onToggleCheck:W,hoveredParentIdProps:N}){const z=I.useRef(null),H=I.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[Q,pe]=I.useState(0),J=p??H,de=u??z,$e=O(),[he,oe]=I.useState(void 0),[je,Ke]=I.useState(!1),[Se,Ye]=I.useState(S),xe=(P,te)=>{Ye(Object.assign({},Se,{[P]:te})),A?.(P,te)},ue=P=>{if(i.contentNodes.length>0)if(Object.keys(P).length>0){const te={};Object.keys(P).forEach(ye=>{te[ye]={open:P[ye]}}),de?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;de?.current?.recomputeTree({[te]:{open:!0}})}};I.useLayoutEffect(()=>{if((!kn(y,he)||he==null)&&J.current!=null){const P=y?.scrollLeft==null?$e==="small"?0:J.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:P};oe(te),P!==y?.scrollLeft&&v?.(te)}J.current.scroll({left:P,top:y?.scrollTop})}},[y]),I.useEffect(()=>{kn(S,Se)||(Ye(S),ue(S))},[S]),I.useEffect(()=>{const P=J.current,te=Lo(()=>{if(P!=null&&(he==null||P.scrollLeft!==he.scrollLeft||P.scrollTop!==he.scrollTop)){const ye={scrollLeft:P.scrollLeft,scrollTop:P.scrollTop};oe(ye),v?.(ye)}},50);return P?.addEventListener("scroll",te),()=>{P?.removeEventListener("scroll",te)}},[J,he,v]),I.useEffect(()=>{if(i.contentNodes.length>0){ue(Se);const P=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";P!==je&&Ke(P)}},[je,Ke,i,de,J]),I.useEffect(()=>{(f!=null&&E==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),pe(Q+1))},[Q,f?.fetchState,f?.isSortApplied,E,Y,f]);const Le=I.useRef(),[jo,So]=I.useState(void 0),Co=()=>{const P=Le.current;P!=null&&P.clientHeight>0&&P.clientHeight!=jo&&(So(P.clientHeight),$?.(P.clientHeight))},yn=I.useCallback(dp(n,i.contentNodes,Se),[n,i]),vo={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:vo,"data-testid":x("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:de,innerRef:Le,outerRef:J,innerElementType:Ft,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:P=>t.jsx(Un,{...P,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:P,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:Le,outerRef:J,innerElementType:Ft,treeWalker:yn,onItemsRendered:P,height:e,width:"100%",children:ye=>t.jsx(Un,{...ye,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:m,onNodeCollapseToggled:xe,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:N})},Q)})})}const Ft=I.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=I.useContext(ko),f=l.headerNodes.reduce((v,S)=>v+wn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),m=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:m,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Ft.displayName="stickyInnerElementType";const up=a.div`
2805
+ `;function sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=I.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:F}){const z=I.useRef(null),K=I.useRef(null),G=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[Q,he]=I.useState(0),Z=p??K,ie=u??z,Se=O(),[ae,ue]=I.useState(void 0),[De,fn]=I.useState(!1),[Re,xn]=I.useState(S),mn=(N,te)=>{xn(Object.assign({},Re,{[N]:te})),A?.(N,te)},wn=N=>{if(i.contentNodes.length>0)if(Object.keys(N).length>0){const te={};Object.keys(N).forEach(me=>{te[me]={open:N[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};I.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&Z.current!=null){const N=y?.scrollLeft==null?Se==="small"?0:Z.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:N};ue(te),N!==y?.scrollLeft&&C?.(te)}Z.current.scroll({left:N,top:y?.scrollTop})}},[y]),I.useEffect(()=>{kn(S,Re)||(xn(S),wn(S))},[S]),I.useEffect(()=>{const N=Z.current,te=Lo(()=>{if(N!=null&&(ae==null||N.scrollLeft!==ae.scrollLeft||N.scrollTop!==ae.scrollTop)){const me={scrollLeft:N.scrollLeft,scrollTop:N.scrollTop};ue(me),C?.(me)}},50);return N?.addEventListener("scroll",te),()=>{N?.removeEventListener("scroll",te)}},[Z,ae,C]),I.useEffect(()=>{if(i.contentNodes.length>0){wn(Re);const N=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";N!==De&&fn(N)}},[De,fn,i,ie,Z]),I.useEffect(()=>{(f!=null&&G==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(Q+1))},[Q,f?.fetchState,f?.isSortApplied,G,Y,f]);const ft=I.useRef(),[jo,So]=I.useState(void 0),Co=()=>{const N=ft.current;N!=null&&N.clientHeight>0&&N.clientHeight!=jo&&(So(N.clientHeight),L?.(N.clientHeight))},yn=I.useCallback(dp(n,i.contentNodes,Re),[n,i]),_o={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:_o,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:N=>t.jsx(Un,{...N,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:N,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:Z,innerElementType:Mt,treeWalker:yn,onItemsRendered:N,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:F})},Q)})})}const Mt=I.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=I.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
2806
2806
  display: flex;
2807
2807
  flex: 1 0 auto;
2808
2808
  width: ${e=>e.width}px;
@@ -2841,4 +2841,4 @@ import{V as t,b5 as _o,ac as x,bP as fe,aQ as U,dp as $o,o as s,p as X,aS as bn,
2841
2841
  }
2842
2842
  }
2843
2843
  }
2844
- `;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:v}){return t.jsx(_o,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":x("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":x("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:($,W,N,z)=>{N!=null&&z!=null&&c(N,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:v})})})}export{ee as D,yp as I,q as J,De as O,wp as R,cn as h,Yc as n,gn as p,st as u,Pe as z};
2844
+ `;function yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(vo,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,F,z)=>{F!=null&&z!=null&&c(F,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Pe as V,We as a,ot as l,Yc as n,on as r,sn as x};