@zeniai/web-cockpit-ui 1.15.64-qa → 1.15.65-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 (363) hide show
  1. package/dist/assets/ACHDetailsPage-BShpKoIj-DBPKn0sX.js +21 -0
  2. package/dist/assets/{AIPerformancePage-Da3gFo8A-CSXeuStb.js → AIPerformancePage-CFErwUsE-BYOi4eif.js} +22 -22
  3. package/dist/assets/AccountInfoPage-B8upbXj9-DVCxjo1L.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DqErO8FH-mViOCowa.js → AccountInfoPageContent-CKpeDot5-C4xEct6y.js} +23 -23
  5. package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-lkS-zBaJ.js → AccountLockedInfoModal-c30P9O_3-BXRFFhii.js} +9 -9
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-khdb66DL.js → AccountReconDetailsDrawerPage-CO9BYPWm-Det_iJaE.js} +51 -51
  7. package/dist/assets/AccountRow-BrW_eEjE-HoBl8v8H.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-n7Og3oU6.js → AccountsPromoCardStack-De2yNNuZ-C74RtM0g.js} +22 -22
  9. package/dist/assets/AddAddressForCardDrawer-riOPLnxb-hTaoKUhW.js +6 -0
  10. package/dist/assets/{AddToWalletPage-zJy9QCjx-C2VBVH37.js → AddToWalletPage-CsOmzC7v-XA_Ukf0G.js} +23 -23
  11. package/dist/assets/{AgingReportsPage-wAvQb1d8-BVhKyC9n.js → AgingReportsPage-D9I9afnB-j70-fH52.js} +8 -8
  12. package/dist/assets/{AllUserItems-DEv_CXOA-Cnm0jwbR.js → AllUserItems-Dq7NcP-o-bQnq3Yy5.js} +7 -7
  13. package/dist/assets/ApAgingDetailPage-Z5JgfH-e-DlNnTpGB.js +46 -0
  14. package/dist/assets/AppBasePage-B5sDynhi-B6PJcirc.js +71 -0
  15. package/dist/assets/AppDrawerContent-D9Q8ir0T-BlV3y7qg.js +92 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-g3c3aBsx.js +47 -0
  17. package/dist/assets/{ArAgingChart-m-Xp3HAW-BFbIzkgu.js → ArAgingChart-Tcu0Lja_-DlvMwgJ3.js} +5 -5
  18. package/dist/assets/ArAgingDetailPage-B5vqkc3v-xHE7Qc0m.js +46 -0
  19. package/dist/assets/{AttachmentView-DB_V1qT1-DuTWI9WZ.js → AttachmentView-CiYfninr-BohG7XjP.js} +7 -7
  20. package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-C692_oh-.js +38 -0
  21. package/dist/assets/{BankAccountSection-BabhrBM7-Hm-Yu2sT.js → BankAccountSection-EZtscP2z-aKL8vcpJ.js} +7 -7
  22. package/dist/assets/{BankAccountWarningSection-yT2UAd12-X-VL5grc.js → BankAccountWarningSection-DCfyIUlu-DyMLU3Tg.js} +7 -7
  23. package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-BVq9Jf6S.js → BankConnectionsSettingsPage-CQWy9jvt-B-n6frCU.js} +32 -32
  24. package/dist/assets/BillDetailPage-pt1k5AQf-BM9-GtkV.js +266 -0
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-IRQNMkGr.js → BillPayApprovalRuleDetailPage-Drh7Bhi8-CDpJ0g2R.js} +2 -2
  26. package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-BBE0uhiX.js → BillPayApprovalRulesPage-Cmyo59xB-pg1tP0xq.js} +15 -15
  27. package/dist/assets/BillPayPromoPage-Dgpz2TLG-BFCcBeGF.js +84 -0
  28. package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-B8WDufb0.js → BillPaySetUpPage-B6Pd_eBf-BC27u6lI.js} +4 -4
  29. package/dist/assets/{BillingSettingsPage-CQ117tT9-BAwGu5cG.js → BillingSettingsPage-CYsvBrFV-BWO0QWBs.js} +7 -7
  30. package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-RZgdY8zQ.js → BillsBulkReviewDrawerPage-DNnAmqWz-BQr-aBSF.js} +1 -1
  31. package/dist/assets/{BoxItem-DRwx0M5a-5_z4KYJ3.js → BoxItem-B06DK4G--CNFqY3pV.js} +1 -1
  32. package/dist/assets/{BusinessVerificationPage-1h0z3N9u-Bd2Dv1xV.js → BusinessVerificationPage-Dgk5gyMv-BdAKTgt0.js} +11 -11
  33. package/dist/assets/CardNumberSubText-CcH9jUoZ-BGeGZCAA.js +21 -0
  34. package/dist/assets/{CashbackDetailPage-ChdQcvkC-BQq0-Z8K.js → CashbackDetailPage-5eysaHGf-qWx0m6gR.js} +30 -30
  35. package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-DdvX9ays.js → ChargeCardDetailPage-Diwf-gwZ-DmopcUlO.js} +1 -1
  36. package/dist/assets/{ChargeCardListPage-DhLUsUhd-CPt3fT_S.js → ChargeCardListPage-C-RTGkKK-Bb-QwUsn.js} +23 -23
  37. package/dist/assets/{ChargeCardListTable-DE72YU_i-UK8ppaLR.js → ChargeCardListTable-B-bNbtZQ-Bfw8s7pe.js} +60 -60
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--CGJF0r4n.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-C6SEcidH.js} +36 -36
  39. package/dist/assets/{ChargeCardPromoPage-CPpNh89o-ur53P9tl.js → ChargeCardPromoPage-Cz3rNFwM-N71PCrPp.js} +38 -38
  40. package/dist/assets/{ChargeCardSetupPage-ITi25kUD-D46LZ2gE.js → ChargeCardSetupPage-BcTB9Yy5-DkE42DK5.js} +3 -3
  41. package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-C1ya3GFy.js → ChargeCardStatementsPage-B_ERvgmB-DFHNpOVz.js} +5 -5
  42. package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-dYFak2DM.js → CheckDepositDrawerPage-D7_usOVn-C_GuSSOC.js} +17 -17
  43. package/dist/assets/CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js +2982 -0
  44. package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-CpwNpffC.js → CompanyOfficerDetailsSection-CWADX4kZ-IHJvDX6-.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-B9ymV6Az-DhiSwK7x.js → CompanyPassportCard-DF9LFrFD-DjueOJ3s.js} +9 -9
  46. package/dist/assets/{CompanyPassportPage-BQ68t7oK-25GyAr8e.js → CompanyPassportPage-BtAopyLq-DbU6xdRd.js} +30 -30
  47. package/dist/assets/{CompleteProfile-C5n9b8gQ-D0ag80PT.js → CompleteProfile-CsbsHQ0p-BLF2mnNn.js} +4 -4
  48. package/dist/assets/ConfettiBurst-duD341Gp-Bb3-s_zN.js +1 -0
  49. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cd8lINA1.js → ConstrainedInnerElement-hv51KpGg-DTOZooRA.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-C8DeTqzS.js → CreateOrEditVendorPage-C2xU6c51-DT9rwnbq.js} +14 -14
  51. package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-BiN9aJFe.js → CreditCardPaymentDrawerPage-CeagMaCu-D6hhhd3N.js} +22 -22
  52. package/dist/assets/CurrencySelectField-B8EoF2aF-uavVFTum.js +139 -0
  53. package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-BsSHWzKa.js → CustomerOnboardingActivationPage-CIeR2XvU-B59q7JSL.js} +29 -29
  54. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-Betf7XiO.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-C2NLa27a.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-zrrFUTGk.js} +14 -14
  56. package/dist/assets/CustomerOnboardingNoStepsPage-Br0jy7Pu-C04-tCb6.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-DkW66A-p-q-1ALWKT.js → CustomerOnboardingPage-Dm2Si769-DsN6K-ie.js} +16 -16
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-IunY7NMf.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-eSuGAIqK.js} +8 -8
  59. package/dist/assets/{Dashboard-bX3cWkmP-gpZTlRVX.js → Dashboard-DReG_aaf-C4aSoq3o.js} +33 -33
  60. package/dist/assets/{DashboardReportPage-DuZ4d4CE-BtgBO5CE.js → DashboardReportPage-BXSlwsR7-4jSB_qXZ.js} +38 -38
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-BBvO3tiT.js +12 -0
  62. package/dist/assets/DepositAccTransactionItem-YuSXjbLh-dhpmj79R.js +76 -0
  63. package/dist/assets/DepositAccTransactionListPage-C-FAvZwD-5kKsnSxM.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-BaiSpc0N-BaNvy8Dj.js +21 -0
  65. package/dist/assets/DownloadOverlay-BpRKCn-0-GQtzMlpD.js +439 -0
  66. package/dist/assets/{DrawerPage-CaG-xx5d-Ch3FAk_-.js → DrawerPage-DQ3Xuekx-71bFG_xW.js} +12 -12
  67. package/dist/assets/EditPeoplePage-8DalSMWH-BO--FbCf.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-CC2BjMkR-BrDBl4Nx.js +865 -0
  69. package/dist/assets/EntityDetailPage-fmWuxHTZ-BEOMoyTE.js +18 -0
  70. package/dist/assets/{EntitySummarySection-LEA5m6mN-Bkfqomfq.js → EntitySummarySection-vsEMiXYh-UA5Y35sl.js} +17 -17
  71. package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-KHS19Js4.js → ExpenseAutomationOverviewPage-B3HPfIsK-4ZtjmO8G.js} +50 -50
  72. package/dist/assets/ExpenseAutomationPage-4LJefgNh-YH8canW3.js +3015 -0
  73. package/dist/assets/{ExpressPayPage-C-nqret2-CHVy3vEu.js → ExpressPayPage-BH7oCW_F-HW0llOdu.js} +17 -17
  74. package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-CoLeq4Tz.js → FeaturePreviewPage-DSv61BhF-rk5VNvfQ.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-0eFMS0c5-DAdCYPIL.js → FollowStepsSection-Bgy9MpO4-DCiZAX41.js} +7 -7
  76. package/dist/assets/GlobalReviewListPage-VRq_gimm-D4JxkgEf.js +291 -0
  77. package/dist/assets/{InformationCardStack-C7XJCUlh-BO56UWI6.js → InformationCardStack-rx0fypl3-C50dsns2.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-fBAbQwhK-DuPgw9sX.js → InsightsCardStack-uJWMkIZL-k2gW7JtA.js} +9 -9
  79. package/dist/assets/InsightsSection-ByFf2oGn-BaSZhycl.js +27 -0
  80. package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8--mAzs_NR.js → IntegrationsSettingsPage-Cj01Nub6-JLccDpyu.js} +6 -6
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-De_WHxi6.js → InternationalWireSwiftDetailsPage-C2PM97sv-CXe5WYRW.js} +24 -24
  82. package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Bq6HNEU0.js +65 -0
  83. package/dist/assets/{InviteFormPage-E2igwKEh-BEncV13R.js → InviteFormPage-dsMpScvq-CF55W3d2.js} +18 -18
  84. package/dist/assets/{InvitePageListView-Cuq9dlgu-B0_SeEmy.js → InvitePageListView-e7vGSbFa-wcp0OLc4.js} +43 -43
  85. package/dist/assets/InvitePeoplePage-BT_YVCP4-yRtlk6wv.js +12 -0
  86. package/dist/assets/InvoiceUploadSection-Dg1-uunA-DejmnF3G.js +140 -0
  87. package/dist/assets/{IssueChargeCardPage-CK6fnO24-Db0v77bJ.js → IssueChargeCardPage-CyF9wrb0-DIt_LpMY.js} +31 -31
  88. package/dist/assets/{LabeledAddressValue-Ma1WURjK-DlrMcsdg.js → LabeledAddressValue-3l0Bv00--DmuSRVDq.js} +2 -2
  89. package/dist/assets/LabeledAddressValueField-F9kvUR_r-BCeaFKsb.js +45 -0
  90. package/dist/assets/LabeledControlledCheckBoxField-BgC8y0D6-Cxk0wWCO.js +16 -0
  91. package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-BCnpPBJo.js → LabeledCountryMultiSelectField-3qI_4noU-BCLCbVPc.js} +5 -5
  92. package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-DhVqlBC1.js → LabeledCreatableSingleSelectField-BV3h9bh7-BAj07yW-.js} +7 -7
  93. package/dist/assets/LabeledDocumentField-rriEcsdr-CkxtZhMI.js +41 -0
  94. package/dist/assets/LabeledDropDownFormattedTextField-DoVSg3nZ-Be0l5Q_z.js +59 -0
  95. package/dist/assets/{LabeledText-DvzVOku6-Dn53TfaN.js → LabeledText-DGZ7hxY4-IuE8fmYf.js} +6 -6
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-BqVEyHXC.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-DgE4V-VP.js} +18 -18
  97. package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-CPUGdXpK.js → LabeledZeniRolesDropDownField-jIrTovp--Bw9Copum.js} +29 -29
  98. package/dist/assets/{LinkJETransactionPage-WufhDGDQ-azPG9MUe.js → LinkJETransactionPage-Bvbqpltz-Bc-21K8g.js} +18 -18
  99. package/dist/assets/{LockCardPage-BBIVLYVD-419LPSiD.js → LockCardPage-DyEQBJYx-BLiE9GBP.js} +64 -64
  100. package/dist/assets/{LowBalancePopup-ScEqPY9J-C060z0nB.js → LowBalancePopup-C2vHKMNF-PKO6ElPE.js} +6 -6
  101. package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-SJ0jUK4M.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-DimLQOFo.js +1 -0
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-B9llfoRD.js → MagicLinkInternationalWireDetailsPage-C_SjsgC9-Bvgil6AB.js} +1 -1
  104. package/dist/assets/MagicLinkSuccessPage-B1LBYM2F-BYLLbXss.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-BocBRFlv.js → MagicLinkTitleSection-ClAnBBt9-CxQuR-QP.js} +5 -5
  106. package/dist/assets/MailingDetailsSection-9_XLl4bT-BB3mmWQ9.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-BGCx9EU3.js → MyBankConnectionsSettingsPage-CBNYcuP4-DwZ11Kbp.js} +16 -16
  108. package/dist/assets/MyPendingActivationChargeCardListPage-n71n40uQ-DzAksyAj.js +6 -0
  109. package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CtFmjBIE.js +85 -0
  110. package/dist/assets/{NavBarWithPicker-zmvBmWS1-B7DVgWCo.js → NavBarWithPicker-CbjFNysh-BLH7wXCB.js} +5 -5
  111. package/dist/assets/{NavigationArrow-D26UG3p--B1OMUVaF.js → NavigationArrow-Dpc7u6y4-94AYlIy-.js} +7 -7
  112. package/dist/assets/{NavigationDots-Bv4tBDN3-BOJfNTon.js → NavigationDots-DCpslVnm-BIAw9fTc.js} +3 -3
  113. package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-BmAEPvzQ.js → NewGlobalMerchantPage-B10sY6Q_-Owh-T5As.js} +37 -37
  114. package/dist/assets/{NoDataChart-CgT19fV7-CW6QHLgR.js → NoDataChart-9-bhq204-jF2VPuzU.js} +2 -2
  115. package/dist/assets/{NoDataTable-CPjJmo4s-DSMgo6Qg.js → NoDataTable-C6Q2Anpz-DB9htpIj.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CP2i3FTm-C5pv1EYn.js → NotFoundPage-4mPhXD5--Dq1iR5VQ.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-CT9Dnb03-BP21fQ3b.js → NotificationSettingsPage-BTxCoB_b-BHZscHCj.js} +28 -28
  118. package/dist/assets/NotificationsListConfig-CylnViXd-Dg2fm6St.js +1 -0
  119. package/dist/assets/NotificationsPage-D41h0mS6-Dzdq9z4a.js +685 -0
  120. package/dist/assets/OpExByVendorPage-BV_uJSCh-BHuftqJi.js +100 -0
  121. package/dist/assets/{OverlayContainerPage-D4QU0p4o-DypUO3LF.js → OverlayContainerPage-CkUYOhlh-ChB_ia4V.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-Cj3UWjG4-Ufv6uGVt.js +123 -0
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-AJNZCxIB.js → PaymentAccountSetupBillingAddressSection-BWFl695q-DUUCCWV6.js} +15 -15
  124. package/dist/assets/PeoplePage-DcGqWtAP-CfVqJS-U.js +727 -0
  125. package/dist/assets/{Preview-MsotgVZx.js → Preview-DHku7oFH.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-7R3cvGiS-B-idYuEE.js → ProductsCarousel-C9JoJQeH-7TCp-gr7.js} +8 -8
  127. package/dist/assets/{PromoBaseCards-DdCMZIc7-DYaNktKG.js → PromoBaseCards-mFk7SsOr-cB2eyHgD.js} +3 -3
  128. package/dist/assets/{QBOConnectionDialog-Ca36jKz2-BROTAV6b.js → QBOConnectionDialog-CJsIrEZq-Djdbh1G7.js} +5 -5
  129. package/dist/assets/{QBOSetupSection-CzBfIVqR-CxeYM05R.js → QBOSetupSection-C_fqHza_-B8WpC_yY.js} +13 -13
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-C0TdrujH.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-CX5NlTL7.js} +2 -2
  131. package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-CTKI435W.js → ReimbursementApprovalRulesPage-C2zNa8dT-CGtrNpR7.js} +9 -9
  132. package/dist/assets/ReimbursementDetailPage-B1o8ea57-BrBovHlf.js +314 -0
  133. package/dist/assets/ReimbursementPromoPage-Df5QmXzC-CzrrekBH.js +84 -0
  134. package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-IXOGqCsl.js → ReimbursementSetUpPage-D450RVsP-BNS45RtV.js} +10 -10
  135. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-BYy6jU6w.js +1 -0
  136. package/dist/assets/{ReloadCard-DKGn1uxF-BSvLgeuK.js → ReloadCard-D5cvzWxe-BSJWwb6T.js} +6 -6
  137. package/dist/assets/ReportTableViewSelector-Ig41fOPb-DyEm5Q02.js +151 -0
  138. package/dist/assets/ReportsPage-CRAVAUTO-D_QRWGM1.js +269 -0
  139. package/dist/assets/{RevenueChart-SvdhwBcE-DnuVU969.js → RevenueChart-DtQu0KAn-DJYGsojB.js} +13 -13
  140. package/dist/assets/{ReviewDetailsPage-tT1l4R2r-J1IzgUZg.js → ReviewDetailsPage-vui4TqeA-gjxKkEYH.js} +24 -24
  141. package/dist/assets/{ReviewOverlay-BoM41t8W-DMbdGoKm.js → ReviewOverlay-CUnL7H-a-BjFaE0id.js} +25 -25
  142. package/dist/assets/RoleWithToolTip-x2rnvWn9-BzchKu5T.js +22 -0
  143. package/dist/assets/ScheduleDetailsFixedAssetsPage-D_Cls2jC-CNWyfY4t.js +37 -0
  144. package/dist/assets/ScheduleDetailsPage-DmSLuM8g-5vyMikmE.js +37 -0
  145. package/dist/assets/ScheduleSequenceTable-js9_P_Lo-CeLb4ONW.js +326 -0
  146. package/dist/assets/{ScreenRoutes-zIYoYF9j.js → ScreenRoutes-ziq-yiHW.js} +29 -51
  147. package/dist/assets/{SetUpAccountSection-sfIB1h4i-Bxp4_1Ay.js → SetUpAccountSection-DYRWWXcL-D3Lz2J4N.js} +13 -13
  148. package/dist/assets/SignIn-CUJkZb3S-DEoVYbuM.js +491 -0
  149. package/dist/assets/SignInScreen-CMKiwyNN.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-BieufnDb-DWfo1rZv.js +134 -0
  151. package/dist/assets/SpendManagementPerTabPage-BmUp80QX-D3VMwaS-.js +754 -0
  152. package/dist/assets/{SpendManagementSection-dT-N4bSQ-C-KttH_X.js → SpendManagementSection-DKZNTYXT-mbKmW3pW.js} +25 -25
  153. package/dist/assets/{StatementItem-g5tfNBjV-Bi-hDsRm.js → StatementItem-Dyt5Q0eR-DHmcaJ-e.js} +4 -4
  154. package/dist/assets/StatementsPage-CbtnJM5y-COycJvfL.js +58 -0
  155. package/dist/assets/{StatusSwitcher-CaoFw0cf-GiyQU_ap.js → StatusSwitcher-BfQ9VbBH-DC0t3Flj.js} +5 -5
  156. package/dist/assets/SubTabSwitcher-CzGiuhk3-DLbV8WBg.js +58 -0
  157. package/dist/assets/{SummaryCard-B9wqNSwM-11v6O9yh.js → SummaryCard-D61xzK3a-DMSW9KNv.js} +1 -1
  158. package/dist/assets/TaskManagementPage-ucVAdv7x-AkXJlFwQ.js +508 -0
  159. package/dist/assets/TimeRangeSwitcher-C3jXm39I-tjiVSjZN.js +64 -0
  160. package/dist/assets/TimeframeSwitcher-CcYg-YQJ-C2j1iPoK.js +31 -0
  161. package/dist/assets/TimeframeSwitcherWithToggle-w4YJno-p-Bi4h2wB2.js +53 -0
  162. package/dist/assets/{TopExCard-BUjnGDUB-BeOEz96L.js → TopExCard-D2PRxvFc-DTkmCs_e.js} +6 -6
  163. package/dist/assets/{TopExDetailPage-CNDkfc3u-VyEyAB3F.js → TopExDetailPage-C0uHdU7N-CkEVyz2B.js} +16 -16
  164. package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-D8owbjDl.js → TransactionActivityLogPage-CqYb19tY-v__opMvt.js} +17 -17
  165. package/dist/assets/TransactionDetailPage-D-NR_yZG-DdONq5Tf.js +921 -0
  166. package/dist/assets/TransactionList-f6yB-byH-Oxgdaak4.js +157 -0
  167. package/dist/assets/{TransactionListBig-Bx_Rm9ho-BGW14qc7.js → TransactionListBig-BrDWayQS-C0zQ3f5X.js} +18 -18
  168. package/dist/assets/TransactionListPage-C-Z62y2d-DnIWNXku.js +35 -0
  169. package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-DTvgMHfi.js → TransactionVendorDetailPage-CQQuAR6V-Dt6j0ppt.js} +6 -6
  170. package/dist/assets/{TransferDrawerPage-BayVa6po-BJ6bZeVh.js → TransferDrawerPage-DfFm-1-3-Dp1b_ezH.js} +36 -36
  171. package/dist/assets/TreasuryOverviewPage-CKSanlUG-BJ3RsJkb.js +725 -0
  172. package/dist/assets/{TreasuryPromoPage-BCjz1EKX-BpLLMqaI.js → TreasuryPromoPage-Dyip3H10-ClQVvPZy.js} +131 -131
  173. package/dist/assets/TreasuryStatementsPage-mljf2Van-DInZXjo_.js +58 -0
  174. package/dist/assets/TreasuryTaxLetterPage-D3cV3a-8-CcMHT6vj.js +58 -0
  175. package/dist/assets/{TrendChart-JTOG0a7B-BX9AXLFe.js → TrendChart-fFlHCvNx-DADa9lxz.js} +5 -5
  176. package/dist/assets/TrendWithTransactions-It4KDov3-BNez-K-6.js +116 -0
  177. package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-BKFDwlEW.js → UncategorizedAccountsMappingPage-BxBz2Ce0-BSZYER7A.js} +15 -15
  178. package/dist/assets/{UnitIntegrationPage-mt2IjA5X-B32skQ8E.js → UnitIntegrationPage-gVgsk2ji-Dz79ORBq.js} +7 -7
  179. package/dist/assets/UploadAdditionalDocumentOverlay-C5m8jqup-5PpZVQjf.js +38 -0
  180. package/dist/assets/{Vendor2FAPopup-DAOf5cJD-DwjPPjyx.js → Vendor2FAPopup-DRwBzOwn-C-SwMKWw.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-By2Ya2bv-CjVBmCig.js +1 -0
  182. package/dist/assets/VendorDetailPage-jci1LqX3-QbESQx0s.js +257 -0
  183. package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-CEtT0uGT.js +1 -0
  184. package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-pmmo56yS.js → VendorFiling1099EditablePage-8pYT3u-X-D-wgniGH.js} +14 -14
  185. package/dist/assets/VendorFirstReviewPage-CafakxA1-CDJXyRr2.js +730 -0
  186. package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DG0LXpvu.js → VendorInternationalWireDetailsPage-DJeI-ZFW-DlATitk5.js} +20 -20
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-Dq9Sjb3M.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-DAvIVphi.js → VendorsAccountsSection-YX2g8ETe-D60z7JWq.js} +2 -2
  189. package/dist/assets/{VerifyDevice-B6B_nk3v-KukwEAKH.js → VerifyDevice-DeHW4GAi-COYWduJ8.js} +9 -9
  190. package/dist/assets/{VideoPlayer-BRAgZThr-DwdwG0wP.js → VideoPlayer-DxIfGrPu-_quRL0IB.js} +2 -2
  191. package/dist/assets/{VideoPopup-C_SkBI9U-CKyfSxdc.js → VideoPopup-CUP7ctgS-CvuTwYjE.js} +3 -3
  192. package/dist/assets/{WarningsDrawerPage-B3gB3wW7-U-65Uxte.js → WarningsDrawerPage--s6b380L-kLxITMYx.js} +10 -10
  193. package/dist/assets/ZeniAccountDetailPage-7NdkdSg3-DUqxr3Vg.js +300 -0
  194. package/dist/assets/ZeniAccountListViewPage-B-cs_xnc-yymuGC8c.js +443 -0
  195. package/dist/assets/ZeniAccountNavBarPieces-CjRip0v9-CWaUJ8t5.js +33 -0
  196. package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-7ZsLis8J.js → ZeniAccountPromoPage-BikXtkeH-CZNOzkma.js} +23 -23
  197. package/dist/assets/ZeniAccountSetupPage-BRBsijVt-4J2hs6F_.js +36 -0
  198. package/dist/assets/{ZeniCopyright-BlLvlGZV-De808LkJ.js → ZeniCopyright-DDGvdmLF-BbItEQ1K.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-D5MCod30.js → ZeniTransferAmountSlider-Cdg0TlHk-C5Juk6O6.js} +4 -4
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-9o7lYnfw.js → add-to-wallet-DgdBD8_G-BPAwAHT2.js} +1 -1
  201. package/dist/assets/{analytics-DmFOON3n.js → analytics-B3XlZNQ8.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DVXRlTVd.js → analyticsHelper-Bnej6boJ.js} +1 -1
  203. package/dist/assets/{analyticsHelper-CYr5V2MV-Bn9Jn6Ph.js → analyticsHelper-D9xdJK4b-C8beHKtm.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DnOaYGVH.js → arrow-south-east-round-PEovUgvH-DYcTfV8-.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-iayeyD23.js → auto-transfer-rule-mbafm5D3-C0L9GopF.js} +1 -1
  206. package/dist/assets/chartTypes-Dq3hUz_T-D0weDXco.js +1 -0
  207. package/dist/assets/commonDimensions-CGHIQ2To-BXIDDuOd.js +1 -0
  208. package/dist/assets/{commonTypes-DsWS6Ccc-CTYDMfWt.js → commonTypes-BAJPaPYg-BqOkop1Y.js} +1 -1
  209. package/dist/assets/{constants-Dzfmb5Ph.js → constants-BcG8RJNm.js} +1 -1
  210. package/dist/assets/{core-0bnVVABN.js → core-DTlL91ob.js} +3 -53
  211. package/dist/assets/{dash.all.min-DHsg-lqM.js → dash.all.min-wCYxg1-F.js} +1 -1
  212. package/dist/assets/downloadPdf-BI2Y41h2-DmQ3wa5x.js +1 -0
  213. package/dist/assets/{empty-CBAa3J1a.js → empty-9h6tGMxX.js} +1 -1
  214. package/dist/assets/{empty-D_bRDFaE.js → empty-DTLC6acq.js} +1 -1
  215. package/dist/assets/epic-CSBGbcOS.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-DQBnQfK-.js → gift-box-Cmt9OgIZ-CvfvQG3y.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DeDC5YLL.js → graphic-no-data-l-DU4J8fDt-ChqWps-8.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CmCQCnC3.js → graphic-no-data-net-burn-l-CzmycA0m-1sZH3huZ.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-DpmiuH3j.js → handshake-BPg58FML-C8qC_oIS.js} +1 -1
  220. package/dist/assets/{helper-BMiMbXMj-BAbwbOYZ.js → helper-z5-P4a-y-DCqj7mqg.js} +5 -5
  221. package/dist/assets/{index-CHSGbJVi.js → index-BRlvHWYX.js} +1 -1
  222. package/dist/assets/{index-iH933ICY.js → index-BTxAEBwp.js} +2 -8
  223. package/dist/assets/{index-CDxchNCh.js → index-CTllXPEB.js} +1 -1
  224. package/dist/assets/{index-mb2rrTlK.js → index-CXoFWELS.js} +1 -1
  225. package/dist/assets/{index-BOf3FulF.js → index-DA1Z8sqg.js} +1 -1
  226. package/dist/assets/{index-BN9gOVoX.js → index-DivE10Xm.js} +1 -1
  227. package/dist/assets/{index-B6YQjyMc.js → index-nssLOVFu.js} +5040 -5105
  228. package/dist/assets/{lexical-aEmQVmum.js → lexical-CoKvBbaA.js} +1 -1
  229. package/dist/assets/liveblocks-offUbtxr.js +54 -0
  230. package/dist/assets/lottie-Cqel28AC.js +2 -0
  231. package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-BuaBdgp1.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-sINzyEMC.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-D78gQ4Dn.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-DMDEaLzQ-ibbyX8vz.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-CW_wzI5T-he6bfb8d.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-GyIWCN5D.js +1 -0
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-LpLxG78D.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-DlA9TyjC.js} +1 -1
  237. package/dist/assets/{mui-BMACe6Rq.js → mui-BVCBQYdL.js} +1 -9
  238. package/dist/assets/{page-detail-CWX5S47F-BHiPg_uV.js → page-detail-CWX5S47F-D1vlmLcE.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-Cddsb26L-CSqoRxwG.js +3 -0
  240. package/dist/assets/{radio-default-CiSgisfh-DS1u1o7i.js → radio-default-CiSgisfh-BGMZB5pj.js} +1 -1
  241. package/dist/assets/{react-Bq4TJ-7l.js → react-BEal1Iuh.js} +2 -12
  242. package/dist/assets/{react-BM9QcOkQ.js → react-BXvNRT2q.js} +2 -12
  243. package/dist/assets/{react-CVtyWQMs.js → react-CLksnFSH.js} +2 -12
  244. package/dist/assets/{react-CtbvVn8_.js → react-CSBaF2r0.js} +2 -12
  245. package/dist/assets/{react-TZk5oBcm.js → react-C_JPVQ2C.js} +2 -12
  246. package/dist/assets/{react-DPF6cpPb.js → react-DRddHEvz.js} +2 -12
  247. package/dist/assets/react-QuNdLWH0.js +19 -0
  248. package/dist/assets/{react-gzX4tXLY.js → react-jkd7J1Kg.js} +3 -13
  249. package/dist/assets/{recharts-BogDwoBa.js → recharts-DAsNs3BU.js} +36 -44
  250. package/dist/assets/{sentry-PE_t7E3E.js → sentry-Fca4mdIl.js} +2 -17
  251. package/dist/assets/{shield-DOlUxcFf-DZBeAJz1.js → shield-DOlUxcFf-CRgtaaqW.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-P7keEtAg-DZcYuHA-.js +1 -0
  253. package/dist/assets/toChartData-BUf5HHim-DGDFToOH.js +1 -0
  254. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-BVwF7gzx.js +1 -0
  255. package/dist/assets/{uploadAttachment-BlLqRIXe-BKyY67pY.js → uploadAttachment-DJA30WSD-CHN4VO1K.js} +32 -32
  256. package/dist/assets/uploadReceipts-CqDftTRt-Bj47leio.js +1 -0
  257. package/dist/assets/{url-DVzciwrr.js → url-DdD720VJ.js} +1 -1
  258. package/dist/assets/{url-syTA0K_c.js → url-DkjikAwv.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BtTqIKk8.js → useLongPress-GCK2COYQ-DXicXlES.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-sua1EB0C.js → usp-line-BBd1wKwW-BQlBhf7H.js} +1 -1
  261. package/dist/assets/{utils-hiWEDg_f.js → utils-Cgs4R-d4.js} +4 -38
  262. package/dist/assets/zeni-epic-state-BZv12Eez.js +14 -0
  263. package/dist/index.html +1 -1
  264. package/package.json +6 -6
  265. package/dist/assets/ACHDetailsPage-fOu5grd7-Bx2C4blB.js +0 -21
  266. package/dist/assets/AccountInfoPage-o7hTXtgZ-B74V9GXq.js +0 -18
  267. package/dist/assets/AccountRow-CpftykFx-1CclEkfP.js +0 -298
  268. package/dist/assets/AddAddressForCardDrawer-vecchYEf-DPMrCTyq.js +0 -6
  269. package/dist/assets/ApAgingDetailPage-BOV1WFVF-_lX-suFq.js +0 -46
  270. package/dist/assets/AppBasePage-DMlomvFS-BTCiknIH.js +0 -71
  271. package/dist/assets/AppDrawerContent-Dc2sHnR3-D8okbvYL.js +0 -92
  272. package/dist/assets/ApprovalRulesSettingsPage-BnbPSy4U-DSt1190C.js +0 -47
  273. package/dist/assets/ArAgingDetailPage-b_NpDpWj-DH_prAGq.js +0 -46
  274. package/dist/assets/BillDetailPage-7TMkWo3V-S7BIfZxn.js +0 -266
  275. package/dist/assets/BillPayPromoPage-AGffhbY3-BjWg1E0M.js +0 -84
  276. package/dist/assets/CardNumberSubText-DqtLT1w5-B46iNAOk.js +0 -21
  277. package/dist/assets/CollapsableReportTable-CDEe9s_E-D9cKaH7m.js +0 -2844
  278. package/dist/assets/ConfettiBurst-BizTW0hz-vSY8T_bA.js +0 -1
  279. package/dist/assets/CurrencySelectField-KvKyemY6-CJmA3Wvi.js +0 -139
  280. package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-DO7DyeYZ.js +0 -1
  281. package/dist/assets/CustomerOnboardingNoStepsPage-CWF_00EM-CXYa-GDt.js +0 -66
  282. package/dist/assets/DashboardSidebarBackgroundAnimation-UV2CZToG-B6y2S4Cq.js +0 -12
  283. package/dist/assets/DepositAccTransactionItem-BY_OvuKg-dj2FrVtH.js +0 -76
  284. package/dist/assets/DepositAccTransactionListPage-a__bpCOB-BluH7tQU.js +0 -66
  285. package/dist/assets/DomesticWireDetailsPage-BumMT4QM-CJrvKjn9.js +0 -21
  286. package/dist/assets/DownloadOverlay-DqiL3-FB-B8nIxgA_.js +0 -439
  287. package/dist/assets/EditPeoplePage-BcsdEp_d-DZzsTLqP.js +0 -55
  288. package/dist/assets/EditReimbursementDetailPage-DNUmwdsH-B4a1wTnV.js +0 -865
  289. package/dist/assets/EntityDetailPage-DtX5TjBc-Cz9GurHm.js +0 -18
  290. package/dist/assets/ExpenseAutomationPage-B8C4BxoV-u_k6mu8a.js +0 -1703
  291. package/dist/assets/GlobalReviewListPage-4eiopkzw-S_0cIn_Q.js +0 -291
  292. package/dist/assets/InsightsSection-De9zu_me-wp-DJULP.js +0 -27
  293. package/dist/assets/InternationalWireVerificationPage-CDf7equc-C1nheAmV.js +0 -65
  294. package/dist/assets/InvitePeoplePage-Db4P4ZEq-Bqa6PJOp.js +0 -12
  295. package/dist/assets/InvoiceUploadSection-DYCjz9CI-Di7iZ3rh.js +0 -140
  296. package/dist/assets/LabeledAddressValueField-C6-hVsPb-CtbiD4R7.js +0 -45
  297. package/dist/assets/LabeledControlledCheckBoxField-CgZg0uOW-wOvZo1jz.js +0 -16
  298. package/dist/assets/LabeledDocumentField-Bp9m-OrP-6oGXwzm5.js +0 -41
  299. package/dist/assets/LabeledDropDownFormattedTextField-3-KekP79-BGZG_uLh.js +0 -59
  300. package/dist/assets/MagicLinkACHDetailsPage-C494txw0-CtQxqwR2.js +0 -1
  301. package/dist/assets/MagicLinkDomesticWireDetailsPage-CONBCbOQ-u4Z3GzMp.js +0 -1
  302. package/dist/assets/MagicLinkSuccessPage-BDRXSAO4-1yGDs4x9.js +0 -31
  303. package/dist/assets/MailingDetailsSection-DZT7JPlI-BX3TaQM5.js +0 -21
  304. package/dist/assets/MyPendingActivationChargeCardListPage-BJrk56oA-Bz1XOWUw.js +0 -6
  305. package/dist/assets/MyProfileSettingsPage-L9WuP6HZ-Bt0r3vIg.js +0 -85
  306. package/dist/assets/NotificationsListConfig-Bn1zmx6b-Byv3SuTE.js +0 -1
  307. package/dist/assets/NotificationsPage-DDwdR_Jq-CH4xdkvF.js +0 -685
  308. package/dist/assets/OpExByVendorPage-DukFYlqO-DkROpQmO.js +0 -100
  309. package/dist/assets/PandLWithForecastPage-Bgflh9Om-CgCfrHLq.js +0 -107
  310. package/dist/assets/PeoplePage-CDvKreQl-B9V6YZRP.js +0 -675
  311. package/dist/assets/ReimbursementDetailPage-oIC9QEyF-Uf6XrKw7.js +0 -314
  312. package/dist/assets/ReimbursementPromoPage-BKgsJieE-Ba5GJbn1.js +0 -84
  313. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CiYOGkop.js +0 -1
  314. package/dist/assets/ReportTableViewSelector-CXDvZEbR-D-19omxr.js +0 -150
  315. package/dist/assets/ReportsPage-BoUyXSBC-BPepWXQn.js +0 -121
  316. package/dist/assets/RoleWithToolTip-C8x5yXaK-CQXsYwpy.js +0 -22
  317. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bkp0mCOn-DeRr8BY-.js +0 -37
  318. package/dist/assets/ScheduleDetailsPage-Dg9rYJbn-CdqlXj9r.js +0 -37
  319. package/dist/assets/ScheduleSequenceTable-J6Eja8XA-DQymfbIV.js +0 -324
  320. package/dist/assets/SignIn-Cu2nzuEC-BHDNnRC4.js +0 -491
  321. package/dist/assets/SignInScreen-CvmuZ_lu.js +0 -1
  322. package/dist/assets/SpendManagementListViewPage-9V9u1jPF-C5LGJAJr.js +0 -134
  323. package/dist/assets/SpendManagementPerTabPage-COvEPq7V-AOv-04sa.js +0 -754
  324. package/dist/assets/StatementsPage-DaFrVUeK-BtS_jxBA.js +0 -58
  325. package/dist/assets/SubTabSwitcher-zrkVj1aP-CypqPMQM.js +0 -58
  326. package/dist/assets/TaskManagementPage-dAK9tl2b-DQNorVRE.js +0 -508
  327. package/dist/assets/TimeRangeSwitcher-r1TNqVRb-DyxsJ7t-.js +0 -64
  328. package/dist/assets/TimeframeSwitcher-DHfHCTa4-pMvLfkus.js +0 -31
  329. package/dist/assets/TimeframeSwitcherWithToggle-DvBvguRl-p_rilr-D.js +0 -31
  330. package/dist/assets/TransactionDetailPage-f7vWtXWL-DikOynRj.js +0 -903
  331. package/dist/assets/TransactionList-3-mUZOsw-6t-FD8kN.js +0 -153
  332. package/dist/assets/TransactionListPage-q6x4_jni-BvfvZkop.js +0 -35
  333. package/dist/assets/TreasuryOverviewPage-CuqWmrO5-CcwdLzTa.js +0 -708
  334. package/dist/assets/TreasuryStatementsPage-CGr00SXF-Ddcqn0VF.js +0 -58
  335. package/dist/assets/TreasuryTaxLetterPage-D9_qnlK4-DQDhOxJb.js +0 -58
  336. package/dist/assets/TrendWithTransactions-CTJhTpAM-CBPz9x-U.js +0 -116
  337. package/dist/assets/UploadAdditionalDocumentOverlay-DZfpwE5J-CmJMJ8QJ.js +0 -38
  338. package/dist/assets/VendorACHDetailsPage-CCOupiSZ-CMh3oX0P.js +0 -1
  339. package/dist/assets/VendorDetailPage-DufNphGD-CHkH3Fl_.js +0 -257
  340. package/dist/assets/VendorDomesticWireDetailsPage-BayV34Rt-a9y8S9df.js +0 -1
  341. package/dist/assets/VendorFirstReviewPage-DA0EL4RJ-C2ni5B1z.js +0 -730
  342. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DRVMUeXi-BUPq8BsG.js +0 -1
  343. package/dist/assets/ZeniAccountDetailPage-Dp-eo-Vq-DVqZeKKS.js +0 -300
  344. package/dist/assets/ZeniAccountListViewPage-S-XmAYqD-CVsdQb-e.js +0 -441
  345. package/dist/assets/ZeniAccountNavBarPieces-DhjBxfEr-B3kNTCpc.js +0 -14
  346. package/dist/assets/ZeniAccountSetupPage-CvnIMdcY-Dd6KWWuP.js +0 -36
  347. package/dist/assets/chartTypes-40RenddT-cfd9O-7K.js +0 -1
  348. package/dist/assets/commonDimensions-BMnB1-xU-Dv2z_hsS.js +0 -1
  349. package/dist/assets/detailCommon-CrcyqWtZ-3mnJnM3j.js +0 -38
  350. package/dist/assets/downloadPdf-CUUx8PWn-DWs7sODc.js +0 -1
  351. package/dist/assets/epic-BDsnfsiq.js +0 -2
  352. package/dist/assets/liveblocks-t9znRICt.js +0 -67
  353. package/dist/assets/lottie-CQ9eYGiF.js +0 -9
  354. package/dist/assets/mapLoadingInProgressToTreeNode-DGnyXKBT-CjYqP6ia.js +0 -1
  355. package/dist/assets/mapSpacerToTreeNode-CvGdU9Ma-DuWN8s0E.js +0 -1
  356. package/dist/assets/mapTimeframeBalancesToTreeNode-BCOsOvxo-DzqHbBKU.js +0 -1
  357. package/dist/assets/mapTimeframeBalancesToTreeNode-DIqYP3NK-AJxyBrea.js +0 -1
  358. package/dist/assets/panelSelectedMixin-CzfD5-Zs-BQG398jA.js +0 -4
  359. package/dist/assets/react-DCKkBuNc.js +0 -37
  360. package/dist/assets/toCOABalancesWithID-DkMGvlEt-Bl2QmqAg.js +0 -1
  361. package/dist/assets/toChartData-C6s-eBzE-DllwI7S_.js +0 -1
  362. package/dist/assets/uploadReceipts-Dge0cNF1-BGDnYNyn.js +0 -1
  363. package/dist/assets/zeni-epic-state-DBzXvQ_H.js +0 -151
@@ -0,0 +1,2982 @@
1
+ import{V as t,b5 as Ao,ac as x,bP as xe,aQ as U,dA as Bo,o as c,p as ee,aS as Sn,X as W,aG as $n,aA as Io,dB as vn,dC as Wo,O as I,u as w,dD as ti,dE as Vt,dF as Dt,ck as Rt,dG as Gt,x as D,dc as Et,ay as Ht,ab as rt,cv as De,bW as K,L as Oo,v as Mo,W as No,y as ce,aX as B,b1 as ni,bZ as ii,ap as Ne,dH as Po,dI as se,cj as Kt,c9 as _n,ak as zo,ao as Ce,dJ as at,dK as Pe,dL as st,an as S,cq as ie,dM as Fo,w as Yt,dN as Ze,dO as Ln,dP as To,dQ as Vo,dR as An,dS as Do,dT as Ro,dU as Go,bb as oi,aY as V,b8 as Eo,cI as Ut,cH as Zt,dV as Ho,b9 as ri,cL as ai,b$ as Ko,dW as Yo,dX as Uo,dY as Bn,dZ as In,d_ as Zo,d$ as qo,c1 as Xo,bM as Qo,e0 as Jo}from"./index-nssLOVFu.js";import{n as a,c as N}from"./mui-BVCBQYdL.js";import{a as z,P as er}from"./sentry-Fca4mdIl.js";import{G5 as jt,FS as qt,Gn as Xt,Go as Re,Gp as Qt,Gq as Jt,Gr as en,Gs as tn,Gt as li,Gu as tr,FU as Ge,bm as Wn,bg as si,Gv as ci,cc as nr,bo as ir,G6 as di}from"./zeni-epic-state-BZv12Eez.js";import{N as ct,D as or,R as rr,B as Se,u as _}from"./AccountRow-BrW_eEjE-HoBl8v8H.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]="d3c0754e-b2db-48eb-a465-df8778c076f2",e._sentryDebugIdIdentifier="sentry-dbid-d3c0754e-b2db-48eb-a465-df8778c076f2")}catch{}})();function Z(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 xe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Q(e){return U("0,0",e?.forecast)}function hi(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function Lt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function he(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return xe("0.00%",Math.floor(n*100)/100)}else return xe("0.00%",void 0)}function ue(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 ui(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 xe("0.00%",Math.floor(n*100)/100)}else return xe("0.00%",void 0)}function pi(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 Ee=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=I.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${jt(o,l.MMMYYYYFormat,e)}`:Ct(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${I.getLocalizedStrings().reports.quarterPrefix}${jt(o,l.QYYYYformat,e)}`:Ct(r,i);case"year":return r==="default"||r==="default_with_percent"?`${jt(o,l.YYYYformat,e)}`:Ct(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Ct(e,n){return I.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const Rg=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${Bo(10)}`},ar=a.div`
2
+ display: flex;
3
+ flex: 1 1 auto;
4
+ width: 100%;
5
+ height: ${e=>e.heightValue}px;
6
+ justify-content: flex-start;
7
+ align-items: center;
8
+ padding-right: ${_.wrapperPadding}px;
9
+ `,lr=a.div`
10
+ cursor: default;
11
+ user-select: none;
12
+ display: flex;
13
+ flex: 1 1 auto;
14
+ flex-flow: row;
15
+ justify-content: flex-start;
16
+ align-items: center;
17
+ `,sr=a.div`
18
+ display: flex;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ gap: ${c.sp2};
22
+ width: ${_.leftHeadingWidth}px;
23
+ `,cr=a.div`
24
+ display: flex;
25
+ flex: 1 1 auto;
26
+ justify-content: flex-end;
27
+ align-items: center;
28
+ gap: ${c.sp4};
29
+ `,dr=a(ie)`
30
+ width: ${_.bankBalanceWidth}px;
31
+ min-width: ${_.bankBalanceWidth}px;
32
+ text-align: right;
33
+ `,hr=a(ie)`
34
+ width: ${_.clearedBalanceWidth}px;
35
+ min-width: ${_.clearedBalanceWidth}px;
36
+ text-align: right;
37
+ `,ur=a(ie)`
38
+ width: ${_.statusWidth}px;
39
+ min-width: ${_.statusWidth}px;
40
+ `,pr=a.div`
41
+ display: flex;
42
+ flex-shrink: 0;
43
+ gap: ${c.sp3};
44
+ width: ${_.varianceWidth}px;
45
+ min-width: ${_.varianceWidth}px;
46
+ flex-direction: row;
47
+ justify-content: flex-end;
48
+ align-items: center;
49
+ text-align: center;
50
+ `,gr=a.div`
51
+ width: ${_.variancePercentageWidth}px;
52
+ min-width: ${_.variancePercentageWidth}px;
53
+ text-align: right;
54
+ margin-right: ${c.sp2};
55
+ `,fr=a.div`
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ `,xr=a.div`
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ `;function mr({height:e}){const n=W();return t.jsx(ar,{heightValue:e,windowSize:n,children:t.jsxs(lr,{children:[t.jsxs(sr,{children:[t.jsx(fr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,maxWidth:c.sp4,width:c.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(xr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(cr,{children:[t.jsx(dr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(hr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(pr,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:c.sp4,width:_.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(gr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ur,{children:t.jsx(se,{isLoading:!0,customStyle:{height:c.sp4,width:_.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const wr=a.div`
64
+ display: flex;
65
+ flex-direction: row;
66
+ height: ${e=>e.heightValue}px;
67
+ padding-right: ${_.wrapperPadding}px;
68
+ `;function yr({height:e}){return t.jsx(wr,{heightValue:e})}const br=a.div`
69
+ user-select: none;
70
+ display: flex;
71
+ width: 100%;
72
+ height: ${e=>e.height}px;
73
+ background-color: ${e=>e.bgColor?.hex()};
74
+ flex-direction: column;
75
+ padding-right: ${_.wrapperPadding}px;
76
+ `,kr=a.div`
77
+ flex: 1 1 auto;
78
+ display: flex;
79
+ align-items: center;
80
+ height: ${c.sp8};
81
+ justify-content: flex-start;
82
+ align-items: center;
83
+ `,jr=a.div`
84
+ display: flex;
85
+ flex-direction: row;
86
+ justify-content: flex-end;
87
+ width: ${_.leftHeadingWidth}px;
88
+ `,Cr=a.div`
89
+ display: flex;
90
+ flex: 1 1 auto;
91
+ flex-direction: row;
92
+ justify-content: flex-end;
93
+ `,Sr=a(ri)`
94
+ user-select: none;
95
+ color: ${e=>e.theme.colors.primary};
96
+ width: ${_.leftTimeframeWidth}px;
97
+ min-width: ${_.leftTimeframeWidth}px;
98
+ flex: 1 1 auto;
99
+ `,$r=a(S)`
100
+ user-select: none;
101
+ `,vr=a.div`
102
+ max-height: ${c.sp8};
103
+ min-height: ${c.sp8};
104
+ min-width: ${e=>e.widthValue}px;
105
+ max-width: ${e=>e.widthValue}px;
106
+ display: flex;
107
+ justify-content: center;
108
+ align-items: center;
109
+ background-color: ${e=>e.theme.colors.background};
110
+ border: 1px solid ${e=>e.theme.colors.grey3};
111
+ border-radius: ${c.sp2};
112
+ color: ${e=>e.theme.colors.primary};
113
+ margin-right: ${e=>e.marginRight===!0?c.sp2:c.sp0};
114
+ `,_r=a.div`
115
+ width: ${_.bankBalanceWidth}px;
116
+ `,Lr=a.div`
117
+ width: ${_.bankBalanceRightTimeframeWidth}px;
118
+ `,Ar=a.div`
119
+ width: ${_.clearedBalanceWidth}px;
120
+ margin-right: ${_.tickLeftMargin}px;
121
+ `,Br=a.div`
122
+ width: ${_.varianceTimeframeWidth}px;
123
+ align-self: flex-end;
124
+ `,Ir=a.div`
125
+ width: ${_.spacerLineWidth}px;
126
+ `,Wr=a.div`
127
+ width: ${_.statusWidth}px;
128
+ `,qe=({title:e,type:n})=>t.jsx(vr,{widthValue:_[n],children:t.jsx($r,{children:e})});function Or({sectionTitle:e,height:n,isLoading:i}){const o=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(br,{height:n,children:t.jsxs(kr,{children:[t.jsx(jr,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp4,width:_.leftLabelWidth},children:t.jsx(Sr,{"data-testid":x("account-recon-section-title",e),children:e})})}),t.jsxs(Cr,{children:[t.jsx(_r,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.bankBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Lr,{}),t.jsx(Ar,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.clearedBalanceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Br,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.varianceTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Ir,{}),t.jsx(Wr,{children:t.jsx(se,{isLoading:i,customStyle:{height:c.sp7,width:_.statusTimeframeWidth,borderRadius:c.sp2},children:t.jsx(qe,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const Mr=a.div`
129
+ display: flex;
130
+ flex-direction: row;
131
+ height: ${e=>e.heightValue}px;
132
+ align-items: center;
133
+ padding-right: ${_.wrapperPadding}px;
134
+ `,Nr=a(ri)`
135
+ user-select: none;
136
+ color: ${e=>e.theme.colors.primary};
137
+ `;function Pr({height:e,title:n}){return t.jsx(Mr,{heightValue:e,children:t.jsx(Nr,{"data-testid":x("account-recon-section-title",n),children:n})})}const zr=a.div`
138
+ display: flex;
139
+ flex: 1 1 auto;
140
+ width: 100%;
141
+ height: ${e=>e.heightValue}px;
142
+ justify-content: flex-start;
143
+ align-items: center;
144
+ padding-right: ${_.wrapperPadding}px;
145
+ `,Fr=a.div`
146
+ cursor: default;
147
+ user-select: none;
148
+ display: flex;
149
+ flex: 1 1 auto;
150
+ flex-flow: row;
151
+ justify-content: flex-start;
152
+ align-items: center;
153
+ color: ${e=>e.theme.colors.primary};
154
+ `,Tr=a.div`
155
+ display: flex;
156
+ flex: 1 1 auto;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ gap: ${c.sp2};
160
+ `,Vr=a(ie)`
161
+ user-select: none;
162
+ clear: both;
163
+ display: inline-block;
164
+ overflow: hidden;
165
+ white-space: nowrap;
166
+ text-overflow: ellipsis;
167
+ text-align: left;
168
+ color: ${e=>e.theme.colors.primary};
169
+ width: ${_.leftLabelWidth}px;
170
+ min-width: ${_.leftLabelWidth}px;
171
+ `,Dr=a.div`
172
+ display: flex;
173
+ flex: 1 1 auto;
174
+ justify-content: flex-end;
175
+ align-items: center;
176
+ `,Rr=a(ie)`
177
+ width: ${_.bankBalanceWidth}px;
178
+ min-width: ${_.bankBalanceWidth}px;
179
+ text-align: right;
180
+ `,Gr=a(ie)`
181
+ width: ${_.clearedBalanceWidth}px;
182
+ min-width: ${_.clearedBalanceWidth}px;
183
+ text-align: right;
184
+ margin-left: ${_.tickLeftMargin}px;
185
+ `,Er=a(ie)`
186
+ width: ${_.statusWidth}px;
187
+ min-width: ${_.statusWidth}px;
188
+ height: 1px;
189
+ `,Hr=a.div`
190
+ display: flex;
191
+ flex-direction: row;
192
+ min-width: ${_.spacerLineWidth}px;
193
+ width: ${_.spacerLineWidth}px;
194
+ align-items: center;
195
+ `,Kr=a.div`
196
+ width: 1px;
197
+ margin-left: ${c.sp3};
198
+ height: ${e=>e.heightValue}px;
199
+ background-color: ${e=>e.theme.colors.grey3};
200
+ `,Yr=a.div`
201
+ display: flex;
202
+ flex-shrink: 0;
203
+ width: ${_.varianceTimeframeWidth}px;
204
+ min-width: ${_.varianceTimeframeWidth}px;
205
+ flex-direction: row;
206
+ justify-content: flex-end;
207
+ align-items: center;
208
+ text-align: center;
209
+ margin-left: ${_.tickLeftMargin}px;
210
+ `,Ur=a(ie)`
211
+ border-radius: ${c.sp1};
212
+ color: ${e=>e.textColor.hex()};
213
+ min-width: ${_.varianceNumberWidth}px;
214
+ text-align: right;
215
+ margin-right: ${c.sp2};
216
+ `,Zr=a(ie)`
217
+ border-radius: ${c.sp1};
218
+ padding: ${c.sp0} ${c.sp1};
219
+ justify-content: center;
220
+ text-align: center;
221
+ color: ${e=>e.textColor.hex()};
222
+ background-color: ${e=>e.bgColor.hex()};
223
+ min-width: ${_.variancePercentageWidth}px;
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:On}}},common:{strings:{percentage:qr,hyphen:lt}}}=I.getLocalizedStrings();function Xr({height:e,sectionData:n}){const i=W(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(zr,{"data-testid":x("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Fr,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsxs(Tr,{children:[t.jsx(Se,{firstLetter:On.section[n.sectionId].subTitle.charAt(0),color:new B(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Vr,{children:On.section[n.sectionId].subTitle})]}),t.jsxs(Dr,{children:[t.jsx(Rr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):lt}),t.jsx(Gr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):lt}),t.jsx(Qr,{variance:o,variancePercentage:r}),t.jsx(Hr,{children:t.jsx(Kr,{heightValue:e})}),t.jsx(Er,{})]})]})})}const Qr=({variance:e,variancePercentage:n})=>{const i=ce(),o=new B(i.colors.hero),r=new B(i.colors.hero),l=new B(i.colors.background),s=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${qr}`:lt;return t.jsxs(Yr,{children:[t.jsx(Ur,{textColor:o,children:e!=null?U("0,0",e):lt}),t.jsx(Zr,{textColor:r,bgColor:l,children:s})]})};function Jr(){return t.jsx(yr,{height:ct("section")})}function ea(){return t.jsx(mr,{height:ct("loading_in_progress")})}function ta(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Or,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:ct("timeframe_headers")})}const na=(e,n,i)=>{const o=e.element.data;return t.jsx(Xr,{isSticky:i,height:n,sectionData:o})},ia=(e,n)=>{const i=e.element.data,o=I.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Pr,{height:n,title:o.section[i.sectionId].title})},oa=(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(rr,{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:c.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:c.sp4,balanceLeftMarginInPx:w[4],titleWidth:new D(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function ra(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"class_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 aa(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":case"class_headers":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const pe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},be=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},gi={emptyLeftContainer:new D(w[0],w[5])},la=a(S)`
225
+ margin-left: ${e=>!e.hasChildren&&e.depth!==0?c.sp3:c.sp2};
226
+ overflow: hidden;
227
+ white-space: nowrap;
228
+ text-overflow: ellipsis;
229
+ width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
230
+ `,sa=a.div`
231
+ display: flex;
232
+ height: ${c.sp6};
233
+ align-items: center;
234
+ `,ca=a.div`
235
+ display: flex;
236
+ height: ${c.sp6};
237
+ align-items: center;
238
+ `,da=a.div`
239
+ height: ${c.sp6};
240
+ width: ${c.sp3};
241
+ `,ha=a.div`
242
+ width: 14px;
243
+ height: ${c.sp1};
244
+ `,ua=a.div`
245
+ width: ${c.sp2};
246
+ height: ${c.sp1};
247
+ `,fi=a.div`
248
+ width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
249
+ height: ${c.sp1};
250
+ `,ze=a.div`
251
+ display: flex;
252
+ `,pa=({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(ze,{children:[r.depth===0?t.jsx(An,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(An,{depth:r.depth}):null]},i+o)}):null}),xi=({ancestorMetadata:e,depth:n,name:i})=>{const o=W();return n===0?e[n].hasChildren===!1?t.jsx(fi,{windowSize:o}):t.jsxs(ze,{children:[t.jsx(Ze,{depth:n}),t.jsx(Pe,{}),t.jsx(Ze,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],s=r!==n?e[r+1]:void 0;return t.jsxs(ze,{children:[l.depth===0?t.jsx(Ze,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?n===1?t.jsx(Ln,{index:1}):t.jsx(Ln,{index:2}):null,(n===r?l.hasChildren===!0:s!=null&&!s.isLastNode)?t.jsx(Pe,{},r):t.jsx(st,{}),t.jsx(Ze,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ua,{}):null]})},mi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(ha,{}):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(ze,{children:[r!=null&&r.depth===0?t.jsx(at,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}),t.jsx(at,{depth:r!=null?r.depth+1:0})]},i+o)})}),ga=({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(ze,{children:[r.depth===0?t.jsx(at,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Pe,{},o):t.jsx(st,{}):null,r.depth>=1?t.jsx(at,{depth:r.depth}):null]},i+o)}):null}),fa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>{let d=t.jsx(da,{});return e===0&&r&&(d=t.jsx(Uo,{collapsed:l,onIconClick:s})),e>0&&(r&&!o&&n&&(d=t.jsx(Bn,{collapsed:l,onIconClick:s})),i&&o&&n&&(d=t.jsx(In,{})),i&&o&&!n&&(d=t.jsx(Zo,{})),r&&o&&!n&&(d=t.jsx(qo,{collapsed:l,onIconClick:s})),r&&o&&n&&(d=t.jsx(Bn,{collapsed:l,onIconClick:s})),n&&i&&(d=t.jsx(In,{}))),d},xa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})=>t.jsx(ca,{children:t.jsx(fa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:s})});function nn(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=W();return t.jsxs(sa,{children:[e.classDepth!=null?t.jsx(xi,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(fi,{windowSize:i}):null,t.jsx(ga,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(xa,{...e}),t.jsx(la,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const H={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,325,405),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function ma(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 wa(){return!0}const Xe=[new D(w[4],w[8]),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],ya=a.div`
253
+ display: flex;
254
+ flex: 1 1 auto;
255
+ max-height: 1px;
256
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
257
+ `,ba=a.div`
258
+ display: flex;
259
+ flex: 1 1 auto;
260
+ flex-flow: row;
261
+ justify-content: flex-start;
262
+ align-items: center;
263
+ `,ka=a.div`
264
+ display: flex;
265
+ flex-direction: row;
266
+ flex-shrink: 2;
267
+ flex-grow: 1;
268
+ align-items: center;
269
+ background-color: ${e=>e.theme.colors.grey4};
270
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
271
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
272
+ ${({isSticky:e})=>e?N`
273
+ position: -webkit-sticky;
274
+ position: sticky;
275
+ top: ${c.sp0};
276
+ left: ${c.sp0};
277
+ `:null}
278
+ `,ja=a.div`
279
+ width: ${e=>e.noMarginForEntity?Xe[e.nestingLevel].value(e.windowSize)-w[5]:Xe[e.nestingLevel].value(e.windowSize)}px;
280
+ max-width: ${e=>e.noMarginForEntity?Xe[e.nestingLevel].value(e.windowSize)-w[5]:Xe[e.nestingLevel].value(e.windowSize)}px;
281
+ height: 1px;
282
+ `,Ca=a.div`
283
+ display: flex;
284
+ flex: 1 1 auto;
285
+ max-height: 1px;
286
+ height: 1px;
287
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
288
+ `,Sa=a.div`
289
+ display: flex;
290
+ flex: 1 1 auto;
291
+ max-height: 1px;
292
+ height: 1px;
293
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
294
+ `,Mn=e=>{const n=W(),i=ce();return t.jsxs(ba,{"data-testid":x("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ka,{windowSize:n,isSticky:e.isSticky,"data-testid":x("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ja,{"data-testid":x("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(Ca,{"data-testid":x("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Sa,{"data-testid":x("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function At({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(ya,{"data-testid":x("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Mn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const wi=a.div`
295
+ display: flex;
296
+ flex: 1 1 auto;
297
+ width: fit-content;
298
+ min-width: 100%;
299
+ flex-direction: column;
300
+ height: ${e=>e.containerHeight}px;
301
+ background-color: ${e=>e.bgColor?.hex()};
302
+ `,yi=a.div`
303
+ user-select: none;
304
+ display: flex;
305
+ flex: 1 1 auto;
306
+ flex-flow: row;
307
+ justify-content: flex-start;
308
+ align-items: center;
309
+ height: ${e=>e.containerHeight}px;
310
+ &:hover {
311
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
312
+ }
313
+ `,bi=a.div`
314
+ display: flex;
315
+ flex: 1 0 auto;
316
+ flex-direction: row;
317
+ justify-content: flex-end;
318
+ `,ki=a.div`
319
+ display: flex;
320
+ flex-direction: row;
321
+ justify-content: flex-start;
322
+ `,ji=a(S)`
323
+ user-select: none;
324
+ min-width: ${H.balanceWidth};
325
+ max-width: ${H.balanceWidth};
326
+ text-align: right;
327
+ margin-left: ${H.balanceLeftMargin};
328
+ border: 1px solid transparent;
329
+ color: ${e=>e.theme.colors.hero};
330
+ cursor: ${e=>e.isClickable?"pointer":"default"};
331
+ &:hover {
332
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
333
+ }
334
+ `,$a=a(S)`
335
+ user-select: none;
336
+ clear: both;
337
+ display: inline-block;
338
+ overflow: hidden;
339
+ white-space: nowrap;
340
+ text-overflow: ellipsis;
341
+ text-align: left;
342
+ margin-left: ${c.sp2};
343
+ `,Ci=a.div`
344
+ display: flex;
345
+ flex-direction: row;
346
+ flex-shrink: 2;
347
+ flex-grow: 1;
348
+ align-items: center;
349
+ height: ${e=>e.containerHeight}px;
350
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
351
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
352
+ background-color: ${e=>e.bgColor?.hex()};
353
+ ${({isSticky:e})=>e?N`
354
+ position: sticky;
355
+ top: ${c.sp0};
356
+ left: ${c.sp0};
357
+ `:null}
358
+ cursor: pointer;
359
+ color: ${e=>e.theme.colors.hero};
360
+ &:hover {
361
+ color: ${e=>e.theme.colors.primary};
362
+ }
363
+ `,Si=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},$i=({total:e})=>t.jsx(ki,{children:t.jsx(ji,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function va({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:s,backgroundColor:d,onEntityNameClick:h}){const u=W(),g="default",p=s?.name??"";return t.jsxs(wi,{"data-testid":x("ap-aging-report-row-root-container",p),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(yi,{"data-testid":x("ap-aging-report-row-container",p),style:{cursor:g},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Ci,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[s?.logo!=null?t.jsx(Gt,{photoUrl:s.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Et,{name:p??"",size:c.sp4}),t.jsx($a,{children:p})]}),t.jsxs(bi,{"data-testid":x("ap-aging-report-row-balances-container",p),children:[r.map(f=>t.jsx(Si,{balance:f,isOpen:!0},f?.period)),t.jsx($i,{total:l})]})]}),t.jsx(vi,{isScrolling:i,isLastNode:o})]})}function _a({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:s,total:d,totalWithChildren:h,nestedCustomer:u,metadata:g,backgroundColor:p,onEntityNameClick:f,onClick:m}){const y=W(),b=g,$=u?.customer.name??"",C=u!=null?u.id.length-1:0,L=u?.hasSiblings??!1,v=u!=null?u.children.length!==0:!1,A=v,M=A?"pointer":"default",P=u!=null?u.isLeafCustomer:!1,E=()=>{m?.(e)};return t.jsxs(wi,{"data-testid":x("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:p,windowSize:y,children:[t.jsxs(yi,{"data-testid":x("ar-aging-report-row-container",e),style:{cursor:M},isClickable:A,containerHeight:i-1,children:[t.jsx(Ci,{"data-testid":x("ar-aging-report-row-name-container",e),isSticky:n,windowSize:y,bgColor:p,containerHeight:i-1,children:t.jsx(nn,{displayName:$,depth:C,isLastNode:r,hasChildren:v,hasSiblings:L,isLeaf:P,collapsed:!l,subAccountAnscestorMetadata:b.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:E,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(bi,{children:[s.map(T=>t.jsx(Si,{balance:T,isOpen:l},T?.period)),t.jsx($i,{total:l?d:h})]})]}),t.jsx(vi,{isScrolling:o,subEntityProps:{nestingLevel:C,isSticky:n,noMarginForEntity:!0}})]})}function vi({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(At,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(At,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const La=a.div`
364
+ user-select: none;
365
+ display: flex;
366
+ flex: 1 1 auto;
367
+ width: fit-content;
368
+ min-width: 100%;
369
+ height: ${e=>e.height}px;
370
+ flex-flow: row;
371
+ justify-content: flex-start;
372
+ align-items: center;
373
+ background-color: ${e=>e.bgColor?.hex()};
374
+ `,Aa=a.div`
375
+ display: flex;
376
+ flex: 1 0 auto;
377
+ flex-direction: row;
378
+ justify-content: flex-end;
379
+ `,_i=a.div`
380
+ display: flex;
381
+ max-height: ${c.sp8};
382
+ min-height: ${c.sp8};
383
+ min-width: ${H.balanceWidth};
384
+ justify-content: center;
385
+ align-items: center;
386
+ background-color: ${e=>e.theme.colors.background};
387
+ border: 1px solid ${e=>e.theme.colors.grey3};
388
+ border-radius: ${c.sp2};
389
+ margin-left: ${H.balanceLeftMargin};
390
+ color: ${e=>e.theme.colors.primary};
391
+ `,Li=a(S)`
392
+ display: flex;
393
+ user-select: none;
394
+ flex-direction: row;
395
+ justify-content: center;
396
+ align-items: center;
397
+ height: ${H.balanceHeight};
398
+ max-width: ${H.balanceWidth};
399
+ width: 138px;
400
+ text-align: center;
401
+ column-gap: ${c.sp1};
402
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
+ `,Ba=a.div`
404
+ max-height: ${c.sp8};
405
+ min-height: ${c.sp8};
406
+ display: flex;
407
+ flex-direction: row;
408
+ align-items: center;
409
+ min-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
410
+ color: ${e=>e.theme.colors.primary};
411
+ background-color: ${e=>e.bgColor?.hex()};
412
+ ${e=>e.isSticky?N`
413
+ position: -webkit-sticky;
414
+ position: sticky;
415
+ top: ${c.sp0};
416
+ left: ${c.sp0};
417
+ `:""}
418
+ `,Ia=a(S)`
419
+ display: flex;
420
+ align-items: center;
421
+ cursor: pointer;
422
+ column-gap: ${c.sp1};
423
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
424
+ `,Ai=a.div`
425
+ max-height: ${c.sp8};
426
+ min-height: ${c.sp8};
427
+ cursor: pointer;
428
+ `,on=a.div`
429
+ display: flex;
430
+ column-gap: ${c.sp1};
431
+ cursor: pointer;
432
+ align-items: center;
433
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
434
+ `,Bi=a.div``,Ii=a(ai)`
435
+ width: 12px;
436
+ height: 12px;
437
+ cursor: pointer;
438
+ color: ${e=>e.theme.colors.hero};
439
+ `,rn=a(Zt)`
440
+ width: 12px;
441
+ height: 12px;
442
+ `,an=a(Ut)`
443
+ width: 12px;
444
+ height: 12px;
445
+ `,Wa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(ln(i),r)},s=n===r?i:"ascending";return t.jsxs(Ia,{active:n===r,"data-testid":x("duration-row-vendor-title",e),children:[r==="vendor"?I.getLocalizedStrings().reports.aging.apAging.vendor:I.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(on,{selectedForSort:n===r,children:t.jsx(Bi,{"data-testid":x("duration-row-vendor-sort-icon",e),onClick:l,children:s==="ascending"?t.jsx(an,{}):t.jsx(rn,{})})}),t.jsx(rt,{controller:n===r,children:t.jsx(Ii,{"data-testid":x("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Wi({onSortOrderChanged:o})})})]})},Wi=({onSortOrderChanged:e})=>{e?.("descending","total")},Oa=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(ln(i),e)};return t.jsx(Ai,{"data-testid":x("duration-row-tick-container",e),children:t.jsx(_i,{"data-testid":x("duration-row-tick-element-container",e),children:t.jsxs(Li,{active:n===e,"data-testid":x("duration-row-timeframe-tick",e),children:[I.getLocalizedStrings().reports.aging.duration[e],t.jsxs(on,{selectedForSort:n===e,"data-testid":x("duration-row-sort-container",e),children:[t.jsx(Bi,{"data-testid":x("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(an,{}):t.jsx(rn,{})}),t.jsx(rt,{controller:n===e,children:t.jsx(Ii,{"data-testid":x("duration-row-sort-cancel-icon",e),onClick:()=>Wi({onSortOrderChanged:o})})})]})]})})})},Oi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(ln(i),"total")};return t.jsx(Ai,{"data-testid":x("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(_i,{"data-testid":x("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Li,{active:n==="total","data-testid":x("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?I.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:I.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(on,{selectedForSort:n==="total","data-testid":x("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(an,{}):t.jsx(rn,{})})]})})})},Ma=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Oa,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Oi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function Na({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:s,onSortOrderChanged:d}){const h=W();return t.jsxs(La,{height:i,bgColor:s,"data-testid":x("duration-row-root-container",e),children:[t.jsx(Ba,{"data-testid":x("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:s,children:t.jsx(Wa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Aa,{children:[o.map(u=>t.jsx(Ma,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Oi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const ln=e=>e==="ascending"?"descending":"ascending",Pa=[10,14,20,20,20],za=a.div`
446
+ display: flex;
447
+ flex: 1 1 auto;
448
+ width: fit-content;
449
+ min-width: 100%;
450
+ flex-direction: column;
451
+ height: ${e=>e.containerHeight}px;
452
+ background-color: ${e=>e.bgColor?.hex()};
453
+ `,Fa=a.div`
454
+ user-select: none;
455
+ display: flex;
456
+ flex: 1 1 auto;
457
+ flex-flow: row;
458
+ justify-content: flex-start;
459
+ align-items: center;
460
+ `,Ta=a.div`
461
+ display: flex;
462
+ flex: 1 0 auto;
463
+ flex-direction: row;
464
+ justify-content: flex-end;
465
+ `,Mi=a.div`
466
+ display: flex;
467
+ flex-direction: row;
468
+ justify-content: flex-start;
469
+ `,Ni=a(S)`
470
+ user-select: none;
471
+ min-width: ${H.balanceWidth};
472
+ max-width: ${H.balanceWidth};
473
+ text-align: right;
474
+ margin-left: ${H.balanceLeftMargin};
475
+ color: ${e=>e.theme.colors.primary};
476
+ cursor: ${e=>e.isClickable?"pointer":"default"};
477
+ `,Va=a.div`
478
+ display: flex;
479
+ flex-direction: row;
480
+ flex-shrink: 2;
481
+ flex-grow: 1;
482
+ align-items: center;
483
+ height: ${e=>e.containerHeight-1}px;
484
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
485
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
486
+ background-color: ${e=>e.bgColor?.hex()};
487
+ ${({isSticky:e})=>e?N`
488
+ position: sticky;
489
+ top: ${c.sp0};
490
+ left: ${c.sp0};
491
+ `:null}
492
+ `,Da=a(S)`
493
+ user-select: none;
494
+ clear: both;
495
+ display: inline-block;
496
+ overflow: hidden;
497
+ white-space: nowrap;
498
+ text-overflow: ellipsis;
499
+ text-align: left;
500
+ margin-left: ${e=>Pa[e.depth]}px;
501
+ color: ${e=>e.theme.colors.primary};
502
+ width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
503
+ `,Ra=({balance:e})=>t.jsx(Mi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Ga=({total:e})=>t.jsx(Mi,{children:t.jsx(Ni,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ea({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:s,metadata:d}){const h=W(),{common:{strings:{empty:u}},reports:{sections:g}}=I.getLocalizedStrings(),p=s!=null?s.id.length-1:0,f=d,m=s?.customer.name??u;return t.jsxs(za,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Fa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Va,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(mi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:p,name:m}),t.jsx(Da,{isClickable:!1,title:m,depth:p,windowSize:h,children:g.totalPrefix+" "+m})]}),t.jsxs(Ta,{children:[s?.arAgingBalances.map((y,b)=>t.jsx(Ra,{balance:y},b)),t.jsx(Ga,{total:l})]})]}),t.jsx(Ha,{isScrolling:r,nestingLevel:p,isSticky:n,noMarginForEntity:o})]})}function Ha({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(At,{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}},Fe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Ka=a.div`
504
+ display: flex;
505
+ flex: 1 1 auto;
506
+ width: fit-content;
507
+ min-width: 100%;
508
+ flex-direction: column;
509
+ height: ${e=>e.height}px;
510
+ background-color: ${e=>e.bgColor?.hex()};
511
+ `,Ya=a.div`
512
+ cursor: default;
513
+ user-select: none;
514
+ display: flex;
515
+ flex: 1 1 auto;
516
+ flex-flow: row;
517
+ justify-content: flex-start;
518
+ align-items: center;
519
+ `,Ua=a.div`
520
+ display: flex;
521
+ flex: 1 0 auto;
522
+ flex-direction: row;
523
+ justify-content: flex-end;
524
+ `,Pi=a.div`
525
+ display: flex;
526
+ flex-direction: row;
527
+ justify-content: flex-start;
528
+ `,zi=a(ie)`
529
+ user-select: none;
530
+ min-width: ${H.balanceWidth};
531
+ max-width: ${H.balanceWidth};
532
+ text-align: right;
533
+ margin-left: ${H.balanceLeftMargin};
534
+ color: ${e=>e.theme.colors.primary};
535
+ border: 1px solid transparent;
536
+ `,Za=a.div`
537
+ display: flex;
538
+ flex-direction: row;
539
+ flex-shrink: 2;
540
+ flex-grow: 1;
541
+ align-items: center;
542
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
543
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
544
+ background-color: ${e=>e.bgColor?.hex()};
545
+ ${({isSticky:e,isIndented:n})=>e&&n?N`
546
+ position: -webkit-sticky;
547
+ position: sticky;
548
+ top: ${c.sp0};
549
+ left: ${c.sp4};
550
+ `:e&&!n?N`
551
+ position: -webkit-sticky;
552
+ position: sticky;
553
+ top: ${c.sp0};
554
+ left: ${c.sp0};
555
+ `:null}
556
+ `,qa=a(ie)`
557
+ user-select: none;
558
+ clear: both;
559
+ display: inline-block;
560
+ overflow: hidden;
561
+ white-space: nowrap;
562
+ text-overflow: ellipsis;
563
+ text-align: left;
564
+ color: ${e=>e.theme.colors.primary};
565
+ `,Xa=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n?.balance)}):null}),Qa=({type:e,balance:n})=>t.jsx(Pi,{children:re(e)===!0?t.jsx(zi,{children:U("0,0",n)}):null});function Ja({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:s}){const d=W(),h={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Wn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Wn.currencySymbol};return t.jsx(Ka,{"data-testid":x("total-row-root-container"),height:o,bgColor:s,windowSize:d,children:t.jsxs(Ya,{isClickable:!1,"data-testid":x("total-row-container"),children:[t.jsx(Za,{bgColor:s,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(qa,{children:r})}),t.jsxs(Ua,{children:[l.map((u,g)=>t.jsx(Xa,{type:e,balance:u},g)),t.jsx(Qa,{type:e,balance:h})]})]})})}const el=(e,n,i,o,r,l,s)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(Na,{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:s})},tl=(e,n,i,o,r,l,s,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const p=n.element.data;return t.jsx(va,{backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,height:i,balances:p.apAgingBalances,vendor:p.vendor,total:p.total,onEntityNameClick:h})}const g=n.element.data;return t.jsx(_a,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:s,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:g.arAgingBalances,nestedCustomer:g,total:g.total,totalWithChildren:g.totalWithChildren,onEntityNameClick:h,onClick:u})},nl=(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(Ea,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},il=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ja,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function dt(e,n,i,o){switch(e){case"cogs":return ol(i,o,n);case"expenses":return rl(i,o,n);case"income":return al(i,o,n);case"cash_position":return ll(i,o,n);case"cash_in":return sl(i,o,n);case"cash_out":return cl(i,o,n);case"assets":return dl(i,o,n);case"equity":return hl(i,o,n);case"liabilities":return ul(i,o,n);case"other_expense":return pl(i,o,n);case"other_income":return gl(i,o,n);case"operating_activities":return fl(i,o,n);case"investing_activities":return xl(i,o,n);case"financing_activities":return ml(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>G([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},sl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},dl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},hl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ul=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},pl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},gl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},fl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},xl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ml=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>G(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>G(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function G(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Ti(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Vi(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=>Fi(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Ti(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Vi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Ti(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 Vi(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 te(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ri([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Di(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=te(e,n,i,o);if(e==null||e.balances.length===0)return l;const s=[...l.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ri([],1);s.push(...d)}return{balances:s,thisPeriodIndex:l.thisPeriodIndex}}function He(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 Ri(e,n){return e.length>0?e:ti(Array(n),null)}const wl=a.div`
566
+ display: flex;
567
+ flex: 1 1 auto;
568
+ max-height: 1px;
569
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
570
+ `,Nn=a.div`
571
+ display: flex;
572
+ flex: 1 1 auto;
573
+ max-height: 1px;
574
+ margin-left: ${e=>e.marginLeft}px;
575
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
576
+ `,yl=a.div`
577
+ display: flex;
578
+ flex: 1 1 auto;
579
+ max-height: 1px;
580
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
581
+ `;function bl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Nn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Nn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(wl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(yl,{isScrolling:n})}}const Me={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function kl(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 jl(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 Cl=a.div`
582
+ display: flex;
583
+ flex: 1 1 auto;
584
+ width: fit-content;
585
+ min-width: 100%;
586
+ flex-direction: column;
587
+ height: ${e=>e.height}px;
588
+ background-color: ${e=>e.bgColor?.hex()};
589
+ `,Sl=a.div`
590
+ user-select: none;
591
+ display: flex;
592
+ flex: 1 1 auto;
593
+ flex-flow: row;
594
+ justify-content: flex-start;
595
+ align-items: center;
596
+ `,$l=a.div`
597
+ display: flex;
598
+ flex: 1 0 auto;
599
+ flex-direction: row;
600
+ justify-content: flex-end;
601
+ `,vl=a.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ justify-content: flex-start;
605
+ `,_l=a(S)`
606
+ user-select: none;
607
+ color: ${e=>e.theme.colors.hero};
608
+ min-width: ${Me.balanceWidth};
609
+ max-width: ${Me.balanceWidth};
610
+ text-align: right;
611
+ margin-left: ${Me.balanceLeftMargin};
612
+ `,Ll=a.div`
613
+ display: flex;
614
+ flex-direction: row;
615
+ flex-shrink: 2;
616
+ flex-grow: 1;
617
+ align-items: center;
618
+ width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
619
+ color: ${e=>e.theme.colors.hero};
620
+ max-width: ${e=>Me.titleWidth.valuePx(e.windowSize)};
621
+ background-color: ${e=>e.bgColor?.hex()};
622
+ ${({isSticky:e})=>e?N`
623
+ position: -webkit-sticky;
624
+ position: sticky;
625
+ top: ${c.sp0};
626
+ left: ${c.sp0};
627
+ `:null}
628
+ `,Al=a(S)`
629
+ user-select: none;
630
+ clear: both;
631
+ display: inline-block;
632
+ overflow: hidden;
633
+ white-space: nowrap;
634
+ text-overflow: ellipsis;
635
+ text-align: left;
636
+ margin-left: ${c.sp6};
637
+ `,Bl=({balance:e})=>t.jsx(vl,{children:t.jsx(_l,{children:Z(e)})});function Il({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:s,isLastNode:d,onClick:h}){const u=W();return t.jsxs(Cl,{"data-testid":x("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(Sl,{"data-testid":x("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(Ll,{"data-testid":x("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(Al,{children:e})}),t.jsx($l,{children:l.map((g,p)=>t.jsx(Bl,{balance:g},p))})]}),t.jsx(Wl,{isScrolling:s,isLastNode:d})]})}function Wl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(bl,{isScrolling:e,kind:"heading_row_separator"}):null}const Ol=a.div`
638
+ display: flex;
639
+ flex: 1 1 auto;
640
+ width: fit-content;
641
+ min-width: 100%;
642
+ flex-direction: column;
643
+ height: ${e=>e.height}px;
644
+ background-color: ${e=>e.bgColor?.hex()};
645
+ `,Ml=a.div`
646
+ user-select: none;
647
+ display: flex;
648
+ flex: 1 1 auto;
649
+ flex-flow: row;
650
+ justify-content: flex-start;
651
+ align-items: center;
652
+ `,Nl=a.div`
653
+ display: flex;
654
+ flex: 1 0 auto;
655
+ flex-direction: row;
656
+ justify-content: flex-end;
657
+ `,Pl=a.div`
658
+ display: flex;
659
+ flex-direction: row;
660
+ justify-content: flex-start;
661
+ `,Qe=a(oi)`
662
+ color: ${e=>e.theme.colors.champion};
663
+ user-select: none;
664
+ max-width: ${k.balanceWidth};
665
+ min-width: ${k.balanceWidth};
666
+ text-align: right;
667
+ margin-left: ${k.balanceLeftMargin};
668
+ `,zl=a.div`
669
+ display: flex;
670
+ flex-direction: row;
671
+ flex-shrink: 2;
672
+ flex-grow: 1;
673
+ align-items: center;
674
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
675
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
676
+ background-color: ${e=>e.bgColor?.hex()};
677
+ ${({isSticky:e})=>e?N`
678
+ position: -webkit-sticky;
679
+ position: sticky;
680
+ top: ${c.sp0};
681
+ left: ${c.sp0};
682
+ `:null}
683
+ `,Fl=a(oi)`
684
+ color: ${e=>e.theme.colors.champion};
685
+ user-select: none;
686
+ clear: both;
687
+ display: inline-block;
688
+ overflow: hidden;
689
+ white-space: nowrap;
690
+ text-overflow: ellipsis;
691
+ text-align: left;
692
+ background-color: ${e=>e.bgColor?.hex()};
693
+ `,Tl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Pl,{"data-testid":x("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Qe,{"data-testid":x("heading-row-balance-actual",e),children:Z(n)}):t.jsx(Qe,{"data-testid":x("heading-row-balance-forecast",e),children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{"data-testid":x("heading-row-balance-forecast",e),children:Q(n)}),t.jsx(Qe,{"data-testid":x("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]});function Vl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:s,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:g}){const p=W();return t.jsx(Ol,{height:r,bgColor:n,"data-testid":x("heading-row-root-container",o),children:t.jsxs(Ml,{"data-testid":x("heading-row-container",o),isClickable:!u,onClick:()=>g?.(o),children:[pe(e)===!0?t.jsx(zl,{"data-testid":x("heading-row-heading-container",o),isSticky:i,windowSize:p,bgColor:n,children:t.jsx(Fl,{children:l})}):null,be(e)===!0?t.jsx(Nl,{"data-testid":x("heading-row-balances-container",o),children:s.map((f,m)=>t.jsx(Tl,{"data-testid":x("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},m))}):null]})})}const Dl=(e,n,i,o,r,l,s)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=te(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(Il,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:s})},sn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="title_string_only")return null;const f=te(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:f.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:m=>{p?.(m)}})};function Gi(e,n){return Rl(n)}const Rl=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Gl(o,i.acBalanceSelector,e),i};function Gl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>El(n(o)?.balances??[]));default:return e}}function El(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Je=[new D(w[4],56),new D(44,76),new D(69,102),new D(93,124),new D(113,143)],Pn=[new D(w[0],w[0]),new D(14,w[4]),new D(67,67),new D(102,102),new D(136,136)],Hl=a.div`
694
+ display: flex;
695
+ flex: 1 1 auto;
696
+ max-height: 1px;
697
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
698
+ `,zn=a.div`
699
+ display: flex;
700
+ flex: 1 1 auto;
701
+ max-height: 1px;
702
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
703
+ `,Kl=a.div`
704
+ display: flex;
705
+ flex: 1 1 auto;
706
+ flex-flow: row;
707
+ justify-content: flex-start;
708
+ align-items: center;
709
+ `,Yl=a.div`
710
+ display: flex;
711
+ flex-direction: row;
712
+ flex-shrink: 2;
713
+ flex-grow: 1;
714
+ align-items: center;
715
+ background-color: ${e=>e.theme.colors.grey4};
716
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
717
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
718
+ ${({isSticky:e})=>e?N`
719
+ position: -webkit-sticky;
720
+ position: sticky;
721
+ top: ${c.sp0};
722
+ left: ${c.sp0};
723
+ z-index: 20;
724
+ `:null}
725
+ `,Ul=a.div`
726
+ width: ${e=>e.noMarginForAccount?Je[e.nestingLevel].value(e.windowSize)-w[5]:Je[e.nestingLevel].value(e.windowSize)}px;
727
+ max-width: ${e=>e.noMarginForAccount?Je[e.nestingLevel].value(e.windowSize)-w[5]:Je[e.nestingLevel].value(e.windowSize)}px;
728
+ height: 1px;
729
+ `,Zl=a.div`
730
+ width: ${e=>Pn[e.classDepth].valuePx(e.windowSize)};
731
+ max-width: ${e=>Pn[e.classDepth].valuePx(e.windowSize)};
732
+ height: 1px;
733
+ `,ql=a.div`
734
+ display: flex;
735
+ flex: 1 1 auto;
736
+ max-height: 1px;
737
+ height: 1px;
738
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
739
+ `,Xl=a.div`
740
+ display: flex;
741
+ flex: 1 1 auto;
742
+ max-height: 1px;
743
+ height: 1px;
744
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
745
+ `,Ql=a.div`
746
+ display: flex;
747
+ flex: 1 1 auto;
748
+ max-height: 1px;
749
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
750
+ `,Fn=e=>{const n=W(),i=ce();return t.jsxs(Kl,{children:[t.jsxs(Yl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Zl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Ul,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(ql,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Xl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function ke({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(zn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Fn,{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(zn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Hl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Ql,{isScrolling:n});case"total_row_separator":return t.jsx(Fn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Ei({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=W(),l=i!=null?i.split("+")[1]:"";let s=null;const d=r!=="small";switch(l){case"section-row":s=t.jsx(Jl,{columns:o,isSticky:d});break;case"root-class-row":s=t.jsx(es,{columns:o,isSticky:d});break;case"sub-class-row":s=t.jsx(ts,{columns:o,isSticky:d});break;case"leaf-class-row":s=t.jsxs(t.Fragment,{children:[t.jsx(ns,{columns:o,isSticky:d}),t.jsx(ke,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(os,{height:e,bgColor:n,children:s})}const Jl=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),es=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsxs(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),ts=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsx(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Ae,{style:{marginLeft:"36px"},children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),ns=({columns:e,isSticky:n})=>t.jsxs(Ae,{children:[t.jsx(ut,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Ae,{style:{marginLeft:"84px"},children:t.jsx(K,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(ht,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),is=({rectangleWidth:e})=>t.jsx(Hi,{width:k.balanceWidthInPx,children:t.jsx(K,{width:e,height:k.balanceHeightInPx})}),ht=({columns:e,rectangleWidth:n})=>t.jsx(rs,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(is,{rectangleWidth:n},o))}),os=a.div`
751
+ display: flex;
752
+ flex: 1 1 auto;
753
+ width: fit-content;
754
+ min-width: 100%;
755
+ flex-direction: column;
756
+ height: ${e=>e.height}px;
757
+ background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
758
+ `,Ae=a.div`
759
+ user-select: none;
760
+ display: flex;
761
+ flex: 1 1 auto;
762
+ flex-flow: row;
763
+ justify-content: flex-start;
764
+ align-items: center;
765
+ min-height: 0;
766
+ `,rs=a.div`
767
+ display: flex;
768
+ flex: 1 0 auto;
769
+ flex-direction: row;
770
+ justify-content: flex-end;
771
+ `,Hi=a.div`
772
+ display: flex;
773
+ flex-direction: row;
774
+ align-items: center;
775
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
776
+ margin-right: ${k.balanceLeftMargin};
777
+ gap: ${k.balanceLeftMargin};
778
+ justify-content: flex-end;
779
+ `,ut=a(Hi)`
780
+ position: ${e=>e.isSticky===!0?"sticky":"static"};
781
+ left: ${c.sp0};
782
+ z-index: 10;
783
+ background-color: ${e=>e.theme.colors.grey4};
784
+ justify-content: flex-start;
785
+ `;function Ki({height:e,numOfBalances:n,backgroundColor:i}){const o=W();return t.jsx(as,{height:e,bgColor:i,children:t.jsxs(ls,{windowSize:o,children:[t.jsx(ss,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(cs,{children:Array.from({length:n},(r,l)=>t.jsx(Yi,{windowSize:o,width:k.balanceWidth,children:t.jsx(K,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const as=a.div`
786
+ display: flex;
787
+ flex: 1 1 auto;
788
+ width: fit-content;
789
+ min-width: 100%;
790
+ flex-direction: column;
791
+ height: ${e=>e.height}px;
792
+ background-color: ${e=>e.bgColor?.hex()};
793
+ margin-top: 20px;
794
+ `,ls=a.div`
795
+ display: flex;
796
+ flex-direction: row;
797
+ width: 100%;
798
+ `,Yi=a.div`
799
+ display: flex;
800
+ flex-direction: row;
801
+ align-items: center;
802
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:c.sp4};
803
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
804
+ color: ${e=>e.theme.colors.primary};
805
+ background-color: ${e=>e.theme.colors.grey4};
806
+ justify-content: flex-end;
807
+ :first-of-type {
808
+ justify-content: flex-start;
809
+ }
810
+ margin-right: ${k.balanceLeftMargin};
811
+ `,ss=a(Yi)`
812
+ position: sticky;
813
+ left: ${c.sp0};
814
+ z-index: 10;
815
+ background-color: ${e=>e.theme.colors.grey4};
816
+ `,cs=a.div`
817
+ display: flex;
818
+ flex-direction: row;
819
+ width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
820
+ justify-content: flex-end;
821
+ flex: 1 0 auto;
822
+ `,ds=a.div`
823
+ display: flex;
824
+ flex: 1 1 auto;
825
+ max-height: 1px;
826
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
827
+ `,hs=a.div`
828
+ display: flex;
829
+ flex: 1 1 auto;
830
+ max-height: 1px;
831
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
832
+ `;function cn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(ds,{"data-testid":x("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(hs,{"data-testid":x("section-row-separator",e),isScrolling:n})}}const R={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,350,405)};function us(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 ps(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 gs=a.div`
833
+ display: flex;
834
+ flex: 1 1 auto;
835
+ width: fit-content;
836
+ min-width: 100%;
837
+ flex-direction: column;
838
+ height: ${e=>e.height}px;
839
+ background-color: ${e=>e.bgColor?.hex()};
840
+ `,fs=a.div`
841
+ user-select: none;
842
+ display: flex;
843
+ flex: 1 1 auto;
844
+ flex-flow: row;
845
+ justify-content: flex-start;
846
+ align-items: center;
847
+ &:hover {
848
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
849
+ }
850
+ `,xs=a.div`
851
+ display: flex;
852
+ flex: 1 0 auto;
853
+ flex-direction: row;
854
+ justify-content: flex-end;
855
+ color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
856
+ `,ms=a.div`
857
+ display: flex;
858
+ flex-direction: row;
859
+ justify-content: flex-start;
860
+ `,Bt=a(S)`
861
+ user-select: none;
862
+ min-width: ${R.balanceWidth};
863
+ max-width: ${R.balanceWidth};
864
+ text-align: right;
865
+ margin-left: ${R.balanceLeftMargin};
866
+ `,ws=a(Bt)`
867
+ color: ${e=>e.theme.colors.hero};
868
+ &:hover {
869
+ color: inherit;
870
+ }
871
+ `,ys=a.div`
872
+ display: flex;
873
+ flex-direction: row;
874
+ flex-shrink: 2;
875
+ flex-grow: 1;
876
+ align-items: center;
877
+ width: ${e=>R.titleWidth.valuePx(e.windowSize)};
878
+ max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
879
+ background-color: ${e=>e.bgColor?.hex()};
880
+ color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
881
+ ${({isSticky:e})=>e?N`
882
+ position: -webkit-sticky;
883
+ position: sticky;
884
+ top: ${c.sp0};
885
+ left: ${c.sp0};
886
+ `:null}
887
+ `,bs=a(S)`
888
+ user-select: none;
889
+ clear: both;
890
+ display: inline-block;
891
+ overflow: hidden;
892
+ white-space: nowrap;
893
+ text-overflow: ellipsis;
894
+ text-align: left;
895
+ margin-left: ${c.sp2};
896
+ `,ks=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?ws:Bt;return t.jsxs(ms,{"data-testid":x("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":x("account-group-row-balance-actual",e),children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":x("account-group-row-balance-forecast",e),children:Q(n)}),t.jsx(Bt,{"data-testid":x("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function js({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:s,compareMode:d,isScrolling:h,isOpen:u,isLeaf:g,isLastNode:p,onClick:f}){const m=W(),y=!g,b=y?"pointer":"default",$=l.length>0?l.substr(0,1).toUpperCase():"",C=Ss(s),L=ce().colors.primary,[v,A]=z.useState(!1);return t.jsxs(gs,{"data-testid":x("account-group-row-root-container",e),height:r,bgColor:n,windowSize:m,children:[t.jsxs(fs,{"data-testid":x("account-group-row-container",e),style:{cursor:b},isClickable:y,onClick:()=>f?.(o),onMouseOver:()=>A(!0),onMouseLeave:()=>A(!1),children:[t.jsxs(ys,{"data-testid":x("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:m,hasNonZeroBalance:C,children:[t.jsx(Se,{"data-testid":x("account-group-row-circle-with-letter",e),color:B(L),showCollapsedIcon:!u,showIcon:y&&v,firstLetter:$}),t.jsx(bs,{"data-testid":x("account-group-row-name",e),children:l})]}),t.jsx(xs,{"data-testid":x("account-group-row-balances-container",e),hasNonZeroBalance:C,children:s.map((M,P)=>t.jsx(ks,{"data-testid":x("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:M,compareMode:d,collapsed:!1},P))})]}),t.jsx(Cs,{isScrolling:h,isLeaf:g,isLastNode:p,isOpen:u})]})}function Cs({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(cn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Ss=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},$s="__horizontal_total__";function Te(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function pt(e,n){if(!(e==null||n==null||Te(e)!==!0)){if(n.id===$s)return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const vs=a.div`
897
+ display: flex;
898
+ flex: 1 1 auto;
899
+ width: fit-content;
900
+ min-width: 100%;
901
+ flex-direction: column;
902
+ height: ${e=>e.height}px;
903
+ background-color: ${e=>e.bgColor?.hex()};
904
+ `,_s=a.div`
905
+ user-select: none;
906
+ display: flex;
907
+ flex: 1 1 auto;
908
+ flex-flow: row;
909
+ justify-content: flex-start;
910
+ align-items: center;
911
+ &:hover {
912
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
913
+ }
914
+ `,Ls=a.div`
915
+ display: flex;
916
+ flex: 1 0 auto;
917
+ flex-direction: row;
918
+ justify-content: flex-end;
919
+ `,As=a.div`
920
+ display: flex;
921
+ flex-direction: row;
922
+ justify-content: flex-start;
923
+ `,St=a(S)`
924
+ user-select: none;
925
+ min-width: ${R.balanceWidth};
926
+ max-width: ${R.balanceWidth};
927
+ text-align: right;
928
+ margin-left: ${R.balanceLeftMargin};
929
+ color: ${e=>e.theme.colors.hero};
930
+ cursor: ${e=>e.isClickable?"pointer":"default"};
931
+ &:hover {
932
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
933
+ }
934
+ `,Bs=a.div`
935
+ display: flex;
936
+ flex-direction: row;
937
+ flex-shrink: 2;
938
+ flex-grow: 1;
939
+ align-items: center;
940
+ width: ${e=>R.titleWidth.valuePx(e.windowSize)};
941
+ max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
942
+ background-color: ${e=>e.bgColor?.hex()};
943
+ ${({isSticky:e})=>e?N`
944
+ position: -webkit-sticky;
945
+ position: sticky;
946
+ top: ${c.sp0};
947
+ left: ${c.sp0};
948
+ `:null}
949
+ `,Is=a(S)`
950
+ user-select: none;
951
+ clear: both;
952
+ display: inline-block;
953
+ overflow: hidden;
954
+ white-space: nowrap;
955
+ text-overflow: ellipsis;
956
+ text-align: left;
957
+ margin-left: 35px;
958
+ color: ${e=>e.theme.colors.hero};
959
+ `,Ws=({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",s=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(As,{children:[t.jsx(St,{isClickable:s,onClick:()=>{s===!0&&i!=null&&n!=null&&o?.(i,n,pt(i,n))},children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(St,{isClickable:!1,children:Q(n)}),t.jsx(St,{isClickable:!1,children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Os({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:s,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:g,compareMode:p,account:f,onAccountBalanceClick:m}){const y=W(),{common:{strings:{empty:b}}}=I.getLocalizedStrings(),$=f?.accountDescription?f.accountDescription:b,C=f?.accountName?f.accountName:$,L=Ht(),v=L.loggedInUserRole!=null&&!si(L.loggedInUserRole),A=v===!0&&f!=null&&s!==!0&&m!=null&&d!==!0,M=A?"pointer":"default",P=(E,T)=>{A===!0&&l[l.length-1]!=null&&m?.(E,T,l[l.length-1],pt(T,l[l.length-1]??null))};return t.jsxs(vs,{height:r,bgColor:n,windowSize:y,children:[t.jsxs(_s,{style:{cursor:M},isClickable:A,onClick:()=>f!=null?P(o,f):null,children:[t.jsx(Bs,{isSticky:i,windowSize:y,bgColor:n,children:t.jsx(Is,{title:C,children:C})}),t.jsx(Ls,{children:l.map((E,T)=>t.jsx(Ws,{type:e,balance:E,account:f,onAccountBalanceClick:v===!1||m==null?void 0:(Y,q,ae)=>{m(o,Y,q,ae)},compareMode:p},T))})]}),t.jsx(Ms,{isScrolling:h,isLeaf:u,isLastNode:g})]})}function Ms({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(cn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Ns=a.div`
960
+ display: flex;
961
+ flex: 1 1 auto;
962
+ width: fit-content;
963
+ min-width: 100%;
964
+ flex-direction: column;
965
+ height: ${e=>e.rootHeight-1}px;
966
+ background-color: ${e=>e.bgColor?.hex()};
967
+ `,Ps=a.div`
968
+ user-select: none;
969
+ display: flex;
970
+ flex: 1 1 auto;
971
+ flex-flow: row;
972
+ justify-content: flex-start;
973
+ align-items: center;
974
+ `,zs=a.div`
975
+ display: flex;
976
+ flex: 1 0 auto;
977
+ flex-direction: row;
978
+ justify-content: flex-end;
979
+ `,Tn=a.div`
980
+ display: flex;
981
+ flex-direction: row;
982
+ justify-content: flex-start;
983
+ `,Ie=a(S)`
984
+ user-select: none;
985
+ max-width: ${R.balanceWidth};
986
+ min-width: ${R.balanceWidth};
987
+ text-align: right;
988
+ margin-left: ${R.balanceLeftMargin};
989
+ `,Vn=a(S)`
990
+ user-select: none;
991
+ max-width: ${R.balanceWidth};
992
+ min-width: ${R.balanceWidth};
993
+ text-align: right;
994
+ margin-left: ${R.balanceLeftMargin};
995
+ `,Fs=a.div`
996
+ display: flex;
997
+ flex-direction: column;
998
+ align-items: flex-end;
999
+ `,Ts=a.div`
1000
+ display: flex;
1001
+ flex-direction: row;
1002
+ flex-shrink: 2;
1003
+ flex-grow: 1;
1004
+ align-items: center;
1005
+ height: ${c.sp7};
1006
+ width: ${e=>R.titleWidth.valuePx(e.windowSize)};
1007
+ max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
1008
+ background-color: ${e=>e.bgColor?.hex()};
1009
+ ${({isSticky:e})=>e?N`
1010
+ position: -webkit-sticky;
1011
+ position: sticky;
1012
+ top: ${c.sp0};
1013
+ left: ${c.sp0};
1014
+ `:null}
1015
+ `,Vs=a(S)`
1016
+ user-select: none;
1017
+ user-select: none;
1018
+ clear: both;
1019
+ display: inline-block;
1020
+ overflow: hidden;
1021
+ white-space: nowrap;
1022
+ text-overflow: ellipsis;
1023
+ text-align: left;
1024
+ margin-left: ${c.sp2};
1025
+ `,Ds=({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(Fs,{children:[t.jsxs(Tn,{children:[t.jsx(Ie,{style:{color:i.toString()},children:Z(n)}),Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ie,{style:{color:i.toString()},children:Q(n)}),t.jsx(Ie,{style:{color:i.toString()},children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]}),t.jsxs(Tn,{children:[r!==0?t.jsx(Vn,{style:{color:i.toString()},children:xe("0,0%",r)}):null,Fe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Vn,{style:{color:i.toString()},children:xe("0,0%",l)}):t.jsx(Ie,{}),t.jsx(Ie,{})]}):null]})]})};function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:g,compareMode:p,onClick:f}){const m=W(),[y,b]=z.useState(!1),$=!g,C=$?"pointer":"default",L=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(Ns,{"data-testid":x("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:m,children:[t.jsxs(Ps,{"data-testid":x("section-row-container",o),style:{cursor:C},onClick:()=>f?.(o),onMouseOver:()=>b(!0),onMouseLeave:()=>b(!1),children:[t.jsxs(Ts,{"data-testid":x("section-row-name-container",o),isSticky:i,windowSize:m,bgColor:n,children:[t.jsx(Se,{"data-testid":x("section-row-circle-with-letter",o),color:B(d),showCollapsedIcon:!u,showIcon:$&&y,firstLetter:L}),t.jsx(Vs,{"data-testid":x("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx(zs,{"data-testid":x("section-row-balances-container",o),children:s.map((v,A)=>t.jsx(Ds,{"data-testid":x("section-row-balance-element",e),type:e,sectionName:l,balance:v,color:d,compareMode:p},A))})]}),t.jsx(Rs,{isScrolling:h,isLeaf:g,isOpen:u})]})}function Rs({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(cn,{isScrolling:e,kind:"section_row_separator"}):null}const Gs=a.div`
1026
+ display: flex;
1027
+ flex: 1 1 auto;
1028
+ width: fit-content;
1029
+ min-width: 100%;
1030
+ flex-direction: column;
1031
+ height: ${e=>e.height}px;
1032
+ background-color: ${e=>e.bgColor?.hex()};
1033
+ `,Es=a.div`
1034
+ user-select: none;
1035
+ display: flex;
1036
+ flex: 1 1 auto;
1037
+ flex-flow: row;
1038
+ justify-content: flex-start;
1039
+ align-items: center;
1040
+ `,Hs=a.div`
1041
+ display: flex;
1042
+ flex: 1 0 auto;
1043
+ flex-direction: row;
1044
+ justify-content: flex-end;
1045
+ `,Ks=a.div`
1046
+ display: flex;
1047
+ flex-direction: row;
1048
+ justify-content: flex-start;
1049
+ `,Ui=a(S)`
1050
+ user-select: none;
1051
+ min-width: ${R.balanceWidth};
1052
+ max-width: ${R.balanceWidth};
1053
+ text-align: right;
1054
+ margin-left: ${R.balanceLeftMargin};
1055
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1056
+ `,Ys=a(Ui)`
1057
+ color: ${e=>e.theme.colors.hero};
1058
+ &:hover {
1059
+ color: inherit;
1060
+ }
1061
+ `,Us=a.div`
1062
+ display: flex;
1063
+ flex-direction: row;
1064
+ flex-shrink: 2;
1065
+ flex-grow: 1;
1066
+ align-items: center;
1067
+ width: ${e=>R.titleWidth.valuePx(e.windowSize)};
1068
+ max-width: ${e=>R.titleWidth.valuePx(e.windowSize)};
1069
+ background-color: ${e=>e.bgColor?.hex()};
1070
+ ${({isSticky:e})=>e?N`
1071
+ position: -webkit-sticky;
1072
+ position: sticky;
1073
+ top: ${c.sp0};
1074
+ left: ${c.sp0};
1075
+ `:null}
1076
+ `,Zs=a(S)`
1077
+ user-select: none;
1078
+ clear: both;
1079
+ display: inline-block;
1080
+ overflow: hidden;
1081
+ white-space: nowrap;
1082
+ text-overflow: ellipsis;
1083
+ text-align: left;
1084
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1085
+ `,$t=a(S)`
1086
+ user-select: none;
1087
+ min-width: ${R.balanceWidth};
1088
+ max-width: ${R.balanceWidth};
1089
+ text-align: right;
1090
+ margin-left: ${R.balanceLeftMargin};
1091
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1092
+ `,qs=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Ys:Ui;return t.jsxs(Ks,{children:[re(e)===!0?t.jsx(r,{children:Z(n)}):null,Fe(e)?t.jsxs(t.Fragment,{children:[t.jsx($t,{children:Z(n)}),t.jsx($t,{children:Q(n)}),t.jsx($t,{children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Xs({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isLeaf:d,compareMode:h,onClick:u}){const g=W(),p=!d,f=p?"pointer":"default";return t.jsx(Gs,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Es,{style:{cursor:f},isClickable:p,onClick:()=>u?.(o),children:[t.jsx(Us,{bgColor:n,isSticky:i,windowSize:g,children:t.jsx(Zs,{children:l})}),t.jsx(Hs,{children:s.map((m,y)=>t.jsx(qs,{type:e,balance:m,collapsed:!1,compareMode:h},y))})]})})}const _e={net_burn_or_income:{income:{color:new B(V.graphColor04),hoverColor:new B(V.graphColor04Dark)},cogs:{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)},expenses:{color:new B(V.graphColor32),hoverColor:new B(V.graphColor32Dark)},"Gross Burn":{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)},"Net Burn":{color:new B(V.graphColor13),hoverColor:new B(V.graphColor13Dark)},"Net Income":{color:new B(V.graphColor13),hoverColor:new B(V.graphColor13Dark)}},revenue:{income:{color:new B(V.graphColor28),hoverColor:new B(V.graphColor28Dark)},cogs:{color:new B(V.graphColor17),hoverColor:new B(V.graphColor17Dark)},"Gross Margin":{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new B(V.graphColor33),hoverColor:new B(V.graphColor33Dark)},cash_out:{color:new B(V.graphColor02),hoverColor:new B(V.graphColor02Dark)},"Net Cash Flow":{color:new B(V.graphColor35),hoverColor:new B(V.graphColor35Dark)}},default:{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)}},hn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?_e.net_burn_or_income[n]:_e.default:e.startsWith("revenue")===!0?n!=null?_e.revenue[n]:_e.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?_e.cash_in_cash_out[n]:_e.default,Qs=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const p=i.element.data,f=Re(i.config.reportId)===!0?Gi("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),m=te(f.acBalanceSelector(p),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Os,{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:s,isLeaf:d,isLastNode:h,compareMode:u,account:p,onAccountBalanceClick:g==null?void 0:(y,b,$,C)=>{g?.(y,b,$,C)}})},Js=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(js,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},Zi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.sectionType),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},ec=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.sectionType),m=i.element.data,y=te(m,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.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},qi=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=hn(i.config.reportId,i.element.title),m=i.element.data,y=te(m,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.color,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,compareMode:g,onClick:b=>{p?.(b)}})},Xi=(e,n,i,o,r,l,s,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=te(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Xs,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:s,totalBalances:u.balances})},tc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),nc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),un=20,ic=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},oc=a.div`
1093
+ display: flex;
1094
+ flex: 1 1 auto;
1095
+ height: 1px;
1096
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
1097
+ `,rc=a.div`
1098
+ display: flex;
1099
+ height: 1px;
1100
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1101
+ `;function It({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(oc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(rc,{isScrolling:n});case"heading_row_separator":return null}}const ac=a.div`
1102
+ position: relative;
1103
+ `,lc=a.div`
1104
+ height: ${e=>e.height}px;
1105
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1106
+ width: 1px;
1107
+ `;a.div`
1108
+ height: 39px;
1109
+ width: 2px;
1110
+ `;const sc=a.div`
1111
+ position: relative;
1112
+ margin-right: ${c.sp3};
1113
+ &::after {
1114
+ content: "";
1115
+ position: absolute;
1116
+ top: 20px;
1117
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1118
+ width: 18px;
1119
+ }
1120
+ `,cc=a.div`
1121
+ height: ${c.sp6};
1122
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1123
+ width: 1px;
1124
+ `,dc=a.div`
1125
+ position: relative;
1126
+ margin-right: ${c.sp3};
1127
+ &::after {
1128
+ content: "";
1129
+ position: absolute;
1130
+ top: ${e=>e.height}px;
1131
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1132
+ width: 18px;
1133
+ }
1134
+ `,hc=a.div`
1135
+ height: ${e=>e.height}px;
1136
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1137
+ margin-bottom: ${e=>e.height}px;
1138
+ width: 1px;
1139
+ `,Qi=({height:e})=>t.jsx(ac,{children:t.jsx(lc,{height:e})}),uc=({height:e})=>t.jsx(dc,{height:e,children:t.jsx(hc,{height:e})}),pc=()=>t.jsx(sc,{children:t.jsx(cc,{})}),j={balanceHeight:c.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Ji(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function gc(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Dn=I.getLocalizedStrings(),fc=a.div`
1140
+ display: flex;
1141
+ flex-shrink: 0;
1142
+ width: ${j.varianceContainerWidth};
1143
+ min-width: ${j.varianceContainerWidth};
1144
+ margin-left: 12px;
1145
+ gap: ${c.sp1};
1146
+ flex-direction: row;
1147
+ justify-content: flex-end;
1148
+ text-align: center;
1149
+ `,xc=a.div`
1150
+ height: ${c.sp4};
1151
+ border-radius: ${c.sp1};
1152
+ padding: 2px ${c.sp1};
1153
+ color: ${e=>e.textColor.hex()};
1154
+ `,mc=a.div`
1155
+ border-radius: ${c.sp1};
1156
+ padding: 2px ${c.sp1};
1157
+ height: ${c.sp4};
1158
+ justify-content: center;
1159
+ text-align: center;
1160
+ color: ${e=>e.textColor.hex()};
1161
+ background-color: ${e=>e.bgColor.hex()};
1162
+ `,gt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(fc,{children:[t.jsx(xc,{textColor:e>0?new B(o.colors.brandColorGoldDark):new B(o.colors.success),children:U("0,0",ir(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(mc,{textColor:e>0?new B(o.colors.brandColorGoldDark):new B(o.colors.success),bgColor:e>0?new B(ee.brandColorGoldLight):new B(ee.successLight),children:`${Eo(Math.abs(n)).format(Dn.common.numberFormat.roundedOff)}${Dn.common.strings.percentage}`})]})},Rn=I.getLocalizedStrings(),wc=a.div`
1163
+ display: flex;
1164
+ flex: 1 1 auto;
1165
+ width: fit-content;
1166
+ min-width: 100%;
1167
+ flex-direction: column;
1168
+ `,yc=a.div`
1169
+ display: flex;
1170
+ flex: 1 1 auto;
1171
+ flex-flow: row;
1172
+ justify-content: flex-start;
1173
+ align-items: center;
1174
+ width: 100%;
1175
+ color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
1176
+ &:hover {
1177
+ color: ${e=>e.theme.colors.primary};
1178
+ }
1179
+ `,eo=a.div`
1180
+ display: flex;
1181
+ flex-direction: column;
1182
+ `,to=a.div`
1183
+ display: flex;
1184
+ height: ${c.sp4};
1185
+ `,bc=a.div`
1186
+ display: flex;
1187
+ flex-direction: row;
1188
+ justify-content: flex-start;
1189
+ `,kc=a(S)`
1190
+ min-width: ${j.balanceWidth};
1191
+ max-width: ${j.balanceWidth};
1192
+ text-align: right;
1193
+ margin-left: 12px;
1194
+ `,jc=a.div`
1195
+ display: flex;
1196
+ flex-direction: column;
1197
+ flex-shrink: 2;
1198
+ flex-grow: 1;
1199
+ align-items: center;
1200
+ width: ${j.categoryClassContainerWidth};
1201
+ max-width: ${j.categoryClassContainerWidth};
1202
+ padding-left: 67.5px;
1203
+ ${({isSticky:e})=>e?N`
1204
+ position: sticky;
1205
+ top: ${c.sp0};
1206
+ left: ${c.sp0};
1207
+ display: flex;
1208
+ `:null}
1209
+ `,Cc=a.div`
1210
+ display: flex;
1211
+ height: ${c.sp4};
1212
+ width: 100%;
1213
+ `,Sc=a.div`
1214
+ display: flex;
1215
+ flex-direction: row;
1216
+ flex-shrink: 2;
1217
+ flex-grow: 1;
1218
+ align-items: center;
1219
+ width: 100%;
1220
+ `,$c=a(Ce)`
1221
+ display: flex;
1222
+ width: ${j.categoryClassHeaderWidth};
1223
+ margin-left: ${c.sp3};
1224
+ color: ${e=>e.theme.colors.hero};
1225
+ `,vc=a(Ce)`
1226
+ display: flex;
1227
+ width: ${j.categoryClassHeaderWidth};
1228
+ margin-left: ${c.sp4};
1229
+ color: ${e=>e.theme.colors.hero};
1230
+ `,_c=a(S)`
1231
+ clear: both;
1232
+ display: flex;
1233
+ overflow: hidden;
1234
+ white-space: nowrap;
1235
+ text-overflow: ellipsis;
1236
+ text-align: left;
1237
+ margin-left: 2px;
1238
+ width: ${j.categoryClassValueWidth};
1239
+ max-width: ${j.categoryClassValueWidth};
1240
+ `,Lc=a(S)`
1241
+ display: flex;
1242
+ align-items: center;
1243
+ overflow: hidden;
1244
+ white-space: nowrap;
1245
+ text-overflow: ellipsis;
1246
+ text-align: left;
1247
+ margin-left: ${c.sp4};
1248
+ margin-right: ${c.sp3};
1249
+ width: ${j.categoryClassValueWidth};
1250
+ max-width: ${j.categoryClassValueWidth};
1251
+ `,Ac=a.div`
1252
+ display: flex;
1253
+ margin-left: ${c.sp7};
1254
+ margin-right: calc(
1255
+ ${j.statusContainerWidth} +
1256
+ ${j.statusLeftMargin}
1257
+ );
1258
+ `,Bc=a.div`
1259
+ position: sticky;
1260
+ left: 0;
1261
+ background-color: ${e=>e.theme.colors.grey4};
1262
+ display: flex;
1263
+ `,Ic=a.div`
1264
+ overflow-x: auto;
1265
+ display: flex;
1266
+ flex: 1;
1267
+ justify-content: flex-end;
1268
+ `,Wc=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(eo,{children:[e?t.jsx(to,{}):null,t.jsx(bc,{children:t.jsx(kc,{isClickable:i,children:Z(n)})})]})};function Oc({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:s,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:p}}}=I.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:p,m=u.accountBase?.accountName?u.accountBase?.accountName:f,y=u.classBase?.className?u.classBase?.className:p,b=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(wc,{children:[t.jsxs(yc,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(Bc,{children:t.jsxs(jc,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Cc,{children:[t.jsx(Qi,{height:j.lineComponentHeight}),t.jsx($c,{children:Rn.common.texts.category}),t.jsx(vc,{children:Rn.common.texts.class})]}),t.jsxs(Sc,{children:[b===!0?t.jsx(uc,{height:j.lineLComponentHeight}):t.jsx(pc,{}),t.jsx(_c,{title:m,children:m}),t.jsx(Lc,{title:y,children:y})]})]})}),t.jsx(Ic,{children:t.jsxs(Ac,{children:[r.map(($,C)=>t.jsx(Wc,{balance:$,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},C)),t.jsxs(eo,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(to,{}),t.jsx(gt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Mc,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function Mc({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(It,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(It,{isScrolling:e,kind:"account_class_row_separator"}):null}function Nc(){return t.jsxs(Pc,{children:[t.jsxs(Fc,{children:[t.jsxs(Le,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})]}),t.jsx(Le,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(K,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:c.sp2}})})]}),t.jsxs(zc,{children:[t.jsx(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Le,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(K,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:c.sp1}})]}),t.jsx(Le,{width:j.titleWidthMedium,children:t.jsx(K,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Pc=a.div`
1269
+ display: flex;
1270
+ flex-direction: row;
1271
+ width: 100%;
1272
+ margin-left: ${c.sp8};
1273
+ .vendor-title {
1274
+ justify-content: flex-start;
1275
+ }
1276
+ `,Le=a.div`
1277
+ display: flex;
1278
+ flex-direction: row;
1279
+ align-items: center;
1280
+ min-width: ${e=>e.width};
1281
+ color: ${e=>e.theme.colors.primary};
1282
+ background-color: ${e=>e.theme.colors.grey4};
1283
+ justify-content: flex-end;
1284
+
1285
+ :last-of-type {
1286
+ justify-content: center;
1287
+ }
1288
+ `,zc=a.div`
1289
+ display: flex;
1290
+ `,Fc=a.div`
1291
+ display: flex;
1292
+ width: ${j.vendorContainerWidth};
1293
+ position: sticky;
1294
+ left: ${c.sp8};
1295
+ top: 0;
1296
+ z-index: 10;
1297
+ `,Tc=a.div`
1298
+ display: flex;
1299
+ flex: 1 1 auto;
1300
+ width: fit-content;
1301
+ min-width: 100%;
1302
+ flex-direction: column;
1303
+ height: ${e=>e.heightValue}px;
1304
+ background-color: ${e=>e.bgColor?.hex()};
1305
+ `,Vc=a.div`
1306
+ display: flex;
1307
+ flex: 1 1 auto;
1308
+ flex-flow: row;
1309
+ justify-content: flex-start;
1310
+ align-items: center;
1311
+ `,Dc=a.div`
1312
+ display: flex;
1313
+ flex-direction: row;
1314
+ justify-content: flex-start;
1315
+ `,Rc=a(S)`
1316
+ max-width: ${j.balanceWidth};
1317
+ min-width: ${j.balanceWidth};
1318
+ text-align: right;
1319
+ margin-left: ${j.balanceLeftMargin};
1320
+ color: ${({color:e})=>e};
1321
+ `,Gc=a.div`
1322
+ display: flex;
1323
+ flex-direction: row;
1324
+ flex-shrink: 2;
1325
+ align-items: center;
1326
+ height: 100%;
1327
+ width: ${j.sectionContainerWidth};
1328
+ min-width: ${j.sectionContainerWidth};
1329
+ background-color: ${e=>e.bgColor?.hex()};
1330
+ ${({isSticky:e})=>e&&N`
1331
+ position: sticky;
1332
+ top: ${c.sp0};
1333
+ left: ${c.sp0};
1334
+ `}
1335
+ `,Ec=a(S)`
1336
+ clear: both;
1337
+ display: inline-block;
1338
+ overflow: hidden;
1339
+ white-space: nowrap;
1340
+ text-overflow: ellipsis;
1341
+ text-align: left;
1342
+ margin-left: ${c.sp2};
1343
+ color: ${({color:e})=>e};
1344
+ `,Hc=a(Kt)`
1345
+ color: ${e=>e.theme.colors.primary};
1346
+ width: ${c.sp3};
1347
+ height: ${c.sp3};
1348
+ `,Kc=a.div`
1349
+ display: flex;
1350
+ &:hover {
1351
+ .flux-section-checkbox {
1352
+ background-color: transparent;
1353
+ }
1354
+ }
1355
+ `,Yc=a.div`
1356
+ display: flex;
1357
+ width: ${c.sp8};
1358
+ `,Uc=a.div`
1359
+ display: flex;
1360
+ margin-left: ${c.sp7};
1361
+ flex: 1 1 auto;
1362
+ justify-content: flex-end;
1363
+ margin-right: calc(
1364
+ ${j.statusContainerWidth} +
1365
+ ${j.statusLeftMargin}
1366
+ );
1367
+ `,Zc=({balance:e,color:n})=>t.jsx(Dc,{children:t.jsx(Rc,{color:n,children:Z(e)})}),qc=er.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:s,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:g,variancePercentage:p,sectionColor:f,isScrolling:m,isOpen:y,isLeaf:b,idsForReview:$,sectionToggled:C,onSectionCheckboxClick:L}){const v=W(),[A,M]=z.useState($.length>0),[P,E]=z.useState(!1),T=i.includes(n),Y=!b,q=$.length===un&&!T,ae=d?.[0]?.toUpperCase()??"",X=z.useCallback(J=>{L?.(n,J.target.checked)},[n,L]),de=x("flux-analysis-section-expand-collapse",n),me=x("flux-analysis-section-row",n),le=x("flux-analysis-section-checkbox",n);return t.jsxs(Tc,{heightValue:s,bgColor:o,"data-testid":me,children:[t.jsxs(Vc,{style:{cursor:Y?"pointer":"default"},onClick:()=>C?.(l),onMouseOver:()=>{E(!0),M(!0)},onMouseLeave:()=>{E(!1),$.length===0&&M(!1)},children:[t.jsxs(Gc,{className:"flux-section-name-container",isSticky:r,windowSize:v,bgColor:o,children:[h&&A&&y?t.jsx(Kc,{children:t.jsx(Dt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":le,icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Hc,{}),checked:T,id:l,disabled:q,onChange:X,onClick:J=>J.stopPropagation(),style:{padding:"20px",pointerEvents:q?"none":"auto"}})}):t.jsx(Yc,{}),t.jsx(Se,{color:B(f),dataTestId:de,firstLetter:ae,showCollapsedIcon:!y,showIcon:P&&Y}),t.jsx(Ec,{color:f.toString(),children:d})]}),t.jsxs(Uc,{children:[u.map((J,we)=>t.jsx(Zc,{sectionName:d,balance:J,color:f.toString()},we)),t.jsx(gt,{amount:g,percentage:p,currency:e})]})]}),t.jsx(Xc,{isScrolling:m,isLeaf:b,isOpen:y})]})});function Xc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(It,{isScrolling:e,kind:"section_row_separator"}):null}function Qc(){const e=W();return t.jsxs(Jc,{windowSize:e,children:[t.jsx(We,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(K,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(K,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(We,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(K,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Jc=a.div`
1368
+ display: flex;
1369
+ flex-direction: row;
1370
+ width: 100%;
1371
+ margin-left: ${c.sp8};
1372
+ `,We=a.div`
1373
+ display: flex;
1374
+ flex-direction: row;
1375
+ align-items: center;
1376
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:c.sp4};
1377
+ min-width: ${e=>e.width};
1378
+ color: ${e=>e.theme.colors.primary};
1379
+ background-color: ${e=>e.theme.colors.grey4};
1380
+ justify-content: flex-end;
1381
+ :first-of-type {
1382
+ justify-content: flex-start;
1383
+ }
1384
+ `,{common:ed,expenseAutomation:{fluxAnalysis:td},vendors:{opExByVendor:nd}}=I.getLocalizedStrings(),id=a.div`
1385
+ display: flex;
1386
+ flex: 1 1 auto;
1387
+ width: fit-content;
1388
+ min-width: 100%;
1389
+ height: ${e=>`${e.heightValue}px`};
1390
+ flex-flow: row;
1391
+ justify-content: flex-start;
1392
+ align-items: center;
1393
+ background-color: ${e=>e.bgColor?.hex()};
1394
+ `,Wt=a.div`
1395
+ display: flex;
1396
+ max-height: ${c.sp8};
1397
+ min-height: ${c.sp8};
1398
+ min-width: ${e=>e.width!=null?e.width:j.balanceHeaderWidth};
1399
+ justify-content: center;
1400
+ align-items: center;
1401
+ background-color: ${e=>e.theme.colors.background};
1402
+ border: 1px solid ${e=>e.theme.colors.grey3};
1403
+ border-radius: ${c.sp2};
1404
+ margin-left: ${j.balanceLeftMargin};
1405
+ color: ${e=>e.theme.colors.primary};
1406
+ cursor: ${e=>e.isClickable?"pointer":"default"};
1407
+ `,od=a(S)`
1408
+ display: flex;
1409
+ flex-direction: row;
1410
+ justify-content: center;
1411
+ align-items: center;
1412
+ height: ${j.balanceHeight};
1413
+ max-width: ${j.balanceHeaderWidth};
1414
+ width: 138px;
1415
+ text-align: center;
1416
+ `,rd=a.div`
1417
+ display: flex;
1418
+ cursor: pointer;
1419
+ `,ad=a.div`
1420
+ display: flex;
1421
+ cursor: pointer;
1422
+ justify-content: center;
1423
+ align-items: center;
1424
+ color: ${e=>e.theme.colors.primary};
1425
+ `,ld=a.div`
1426
+ display: flex;
1427
+ flex-direction: row;
1428
+ z-index: 1;
1429
+ background-color: ${e=>e.theme.colors.grey4};
1430
+ padding-left: ${c.sp8};
1431
+ ${({isSticky:e})=>e?N`
1432
+ top: ${c.sp0};
1433
+ left: ${c.sp0};
1434
+ display: flex;
1435
+ position: sticky;
1436
+ `:null};
1437
+ `,sd=a.div`
1438
+ height: ${c.sp8};
1439
+ display: flex;
1440
+ flex-direction: row;
1441
+ align-items: center;
1442
+ min-width: ${j.vendorContainerWidth};
1443
+ color: ${e=>e.theme.colors.primary};
1444
+ background-color: ${e=>e.theme.colors.grey4};
1445
+ `,cd=a(S)`
1446
+ display: flex;
1447
+ gap: 6px;
1448
+ align-items: baseline;
1449
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1450
+ `,Ot=a.div`
1451
+ display: flex;
1452
+ cursor: pointer;
1453
+ `,Mt=a.div`
1454
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1455
+ `,Nt=a(Ut)`
1456
+ width: ${j.sortIconDimension};
1457
+ height: ${j.sortIconDimension};
1458
+ margin-left: ${c.sp2};
1459
+ margin-top: ${c.sp1};
1460
+ `,Pt=a(Zt)`
1461
+ width: ${j.sortIconDimension};
1462
+ height: ${j.sortIconDimension};
1463
+ margin-left: ${c.sp2};
1464
+ margin-top: ${c.sp1};
1465
+ `,dd=a.div`
1466
+ display: flex;
1467
+ margin-left: ${c.sp7};
1468
+ flex: 1 1 auto;
1469
+ justify-content: flex-end;
1470
+ `,hd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(Wt,{isClickable:!1,children:t.jsx(od,{children:Ee(e,n,i)})}),ud=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(hd,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),pd=({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(cd,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs(Ot,{onClick:r,"data-testid":x("flux-analysis-report-timeframe-row-vendor-element-row"),children:[nd.vendor,t.jsx(Mt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})};function gd({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:s,timeframeTicks:d,onSortOrderChanged:h}){const u=W(),g=(p,f)=>{h?.(p,f)};return t.jsxs(id,{heightValue:n,bgColor:e,children:[t.jsx(ld,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(sd,{windowSize:u,children:t.jsx(pd,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:g})})}),t.jsxs(dd,{children:[d.map((p,f)=>t.jsx(ud,{firstMonthOfFY:l,timeframeTick:p,timeframe:s},f)),t.jsx(Wt,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs(Ot,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":x("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(rd,{children:td.variance}),t.jsx(Mt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})}),t.jsx(Wt,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs(Ot,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":x("flux-analysis-report-timeframe-row-status"),children:[t.jsx(ad,{children:ed.texts.reviewStatus}),t.jsx(Mt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(Nt,{}):t.jsx(Pt,{})})]})})]})]})}const fd=a.div`
1471
+ display: flex;
1472
+ flex: 1 1 auto;
1473
+ width: fit-content;
1474
+ min-width: 100%;
1475
+
1476
+ flex-direction: column;
1477
+ height: ${e=>`${e.heightValue}px`};
1478
+ background-color: ${e=>e.bgColor?.hex()};
1479
+ `,xd=a.div`
1480
+ cursor: default;
1481
+ user-select: none;
1482
+ display: flex;
1483
+ flex: 1 1 auto;
1484
+ flex-flow: row;
1485
+ justify-content: flex-start;
1486
+ align-items: center;
1487
+ `,md=a.div`
1488
+ display: flex;
1489
+ flex-direction: row;
1490
+ `,wd=a.div`
1491
+ display: flex;
1492
+ flex-direction: row;
1493
+ justify-content: flex-start;
1494
+ align-items: center;
1495
+ margin-left: ${j.balanceLeftMargin};
1496
+ `,yd=a(ie)`
1497
+ user-select: none;
1498
+ min-width: ${j.balanceWidth};
1499
+ max-width: ${j.balanceWidth};
1500
+ text-align: right;
1501
+ color: ${e=>e.theme.colors.hero};
1502
+ border: 1px solid transparent;
1503
+ `,bd=a.div`
1504
+ display: flex;
1505
+ flex-direction: row;
1506
+ align-items: center;
1507
+ flex-shrink: 2;
1508
+ flex-grow: 1;
1509
+ width: ${j.titleWidth};
1510
+ max-width: ${j.titleWidth};
1511
+ height: 100%;
1512
+ background-color: ${e=>e.theme.colors.grey4};
1513
+ position: sticky;
1514
+ left: ${c.sp8};
1515
+ top: 0;
1516
+ z-index: 10;
1517
+ `,kd=a(ie)`
1518
+ user-select: none;
1519
+ clear: both;
1520
+ display: inline-block;
1521
+ overflow: hidden;
1522
+ white-space: nowrap;
1523
+ text-overflow: ellipsis;
1524
+ text-align: left;
1525
+ color: ${e=>e.theme.colors.primary};
1526
+ `,jd=a.div`
1527
+ display: flex;
1528
+ width: ${j.statusContainerWidth};
1529
+ min-width: ${j.statusContainerWidth};
1530
+ justify-content: center;
1531
+ flex-direction: row;
1532
+ margin-left: ${j.statusLeftMargin};
1533
+ `,Cd=a.div`
1534
+ display: flex;
1535
+ margin-left: ${c.sp7};
1536
+ flex: 1 1 auto;
1537
+ justify-content: flex-end;
1538
+ `,Sd=({balance:e})=>t.jsx(wd,{children:t.jsx(yd,{children:U("0,0",e?.balance)})});function $d({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:s,backgroundColor:d}){return t.jsx(fd,{"data-testid":x("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(xd,{"data-testid":x("total-row-container"),children:[t.jsx(bd,{className:"flux-total-row",children:t.jsx(kd,{children:i})}),t.jsxs(Cd,{children:[t.jsx(md,{children:re(e)&&o.map((h,u)=>t.jsx(Sd,{balance:h},u))}),t.jsx(gt,{amount:r,percentage:l,currency:s}),t.jsx(jd,{})]})]})})}const vd=a.div`
1539
+ display: flex;
1540
+ flex: 1 1 auto;
1541
+ width: fit-content;
1542
+ min-width: 100%;
1543
+ flex-direction: column;
1544
+ height: ${e=>`${e.heightValue}px`};
1545
+ background-color: ${e=>e.bgColor?.hex()};
1546
+ `,_d=a.div`
1547
+ user-select: none;
1548
+ display: flex;
1549
+ flex: 1 1 auto;
1550
+ flex-flow: row;
1551
+ justify-content: flex-start;
1552
+ align-items: center;
1553
+ cursor: pointer;
1554
+ color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
1555
+ &:hover {
1556
+ color: ${e=>e.theme.colors.primary};
1557
+ .flux-vendor-chevron-icon,
1558
+ .flux-vendor-collapsable-chevron-icon,
1559
+ .flux-vendor-children-count {
1560
+ border: 1px solid ${e=>e.theme.colors.primary};
1561
+ }
1562
+ }
1563
+ .flux-vendor-chevron-icon,
1564
+ .flux-vendor-collapsable-chevron-icon,
1565
+ .flux-vendor-children-count {
1566
+ border: 1px solid
1567
+ ${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
1568
+ }
1569
+ `,Ld=a.div`
1570
+ display: flex;
1571
+ flex-direction: row;
1572
+ justify-content: flex-start;
1573
+ align-items: center;
1574
+ margin-left: ${j.balanceLeftMargin};
1575
+ `,Ad=a(S)`
1576
+ user-select: none;
1577
+ min-width: ${j.balanceWidth};
1578
+ max-width: ${j.balanceWidth};
1579
+ text-align: right;
1580
+ `,Bd=a.div`
1581
+ display: flex;
1582
+ flex-direction: row;
1583
+ align-items: center;
1584
+ flex-shrink: 2;
1585
+ flex-grow: 1;
1586
+ width: ${j.titleWidth};
1587
+ max-width: ${j.titleWidth};
1588
+ background-color: ${e=>e.bgColor?.hex()};
1589
+ ${({isSticky:e})=>e?N`
1590
+ position: -webkit-sticky;
1591
+ position: sticky;
1592
+ top: ${c.sp0};
1593
+ left: ${c.sp0};
1594
+ `:null}
1595
+ `,Id=a(S)`
1596
+ user-select: none;
1597
+ clear: both;
1598
+ display: inline-block;
1599
+ overflow: hidden;
1600
+ white-space: nowrap;
1601
+ text-overflow: ellipsis;
1602
+ text-align: left;
1603
+ `,Wd=a.div`
1604
+ display: flex;
1605
+ justify-content: space-between;
1606
+ flex-grow: 1;
1607
+ `,Od=a.div`
1608
+ display: flex;
1609
+ align-items: center;
1610
+ margin-left: 10px;
1611
+ `;a.div`
1612
+ display: flex;
1613
+ flex-shrink: 0;
1614
+ width: ${j.varianceContainerWidth};
1615
+ min-width: ${j.varianceContainerWidth};
1616
+ margin-left: 12px;
1617
+ gap: ${c.sp1};
1618
+ flex-direction: row;
1619
+ justify-content: flex-end;
1620
+ text-align: center;
1621
+ align-items: center;
1622
+ `;const Md=a(Ho)`
1623
+ width: 12px;
1624
+ height: 12px;
1625
+ `;a.div`
1626
+ height: ${c.sp4};
1627
+ border-radius: ${c.sp1};
1628
+ padding: 2px ${c.sp1};
1629
+ `;a.div`
1630
+ border-radius: ${c.sp1};
1631
+ padding: 2px ${c.sp1};
1632
+ height: ${c.sp4};
1633
+ justify-content: center;
1634
+ text-align: center;
1635
+ background-color: ${e=>e.bgColor.hex()};
1636
+ `;const Nd=a.div`
1637
+ display: flex;
1638
+ margin-left: ${c.sp7};
1639
+ flex: 1 1 auto;
1640
+ justify-content: flex-end;
1641
+ `,Pd=a.div`
1642
+ display: flex;
1643
+ flex-direction: column;
1644
+ align-items: center;
1645
+ padding-top: ${e=>e.isNodeOpen?c.sp3:c.sp0};
1646
+ `,zd=a.div`
1647
+ display: flex;
1648
+ width: ${j.statusContainerWidth};
1649
+ min-width: ${j.statusContainerWidth};
1650
+ justify-content: center;
1651
+ flex-direction: row;
1652
+ margin-left: ${j.statusLeftMargin};
1653
+ `,Fd=a(Ce)`
1654
+ width: ${j.balanceWidth};
1655
+ max-width: ${j.balanceWidth};
1656
+ color: ${e=>e.theme.colors.primary};
1657
+ display: flex;
1658
+ flex: 1 0 auto;
1659
+ flex-direction: column;
1660
+ cursor: pointer;
1661
+ align-items: center;
1662
+ `,Td=a.div`
1663
+ color: ${e=>e.theme.colors.grey1};
1664
+ border: 1px solid ${e=>e.theme.colors.grey1};
1665
+ padding: ${c.sp0} 6px;
1666
+ border-radius: ${c.sp1};
1667
+ width: fit-content;
1668
+ display: flex;
1669
+ align-items: center;
1670
+ margin-right: ${c.sp2};
1671
+ `,Vd=a(Ce)`
1672
+ overflow: hidden;
1673
+ text-overflow: ellipsis;
1674
+ `,Dd=a.div`
1675
+ display: flex;
1676
+ width: ${c.sp8};
1677
+ height: ${c.sp8};
1678
+ &:hover {
1679
+ .flux-vendor-checkbox {
1680
+ background-color: transparent;
1681
+ }
1682
+ }
1683
+ `,Rd=a(Kt)`
1684
+ color: ${e=>e.theme.colors.primary};
1685
+ width: ${c.sp3};
1686
+ height: ${c.sp3};
1687
+ `,Gd=a(Ce)`
1688
+ display: flex;
1689
+ flex-direction: row;
1690
+ align-items: center;
1691
+ gap: 2px;
1692
+ color: ${e=>e.theme.colors.success};
1693
+ `,Ed=a(ii)`
1694
+ width: 12px;
1695
+ height: 12px;
1696
+ `,Gn=a(ni)`
1697
+ margin-left: 2px;
1698
+ width: 12px;
1699
+ height: 12px;
1700
+ `,Hd=a(Ne)`
1701
+ display: flex;
1702
+ border-radius: 50%;
1703
+ width: ${c.sp4};
1704
+ height: ${c.sp4};
1705
+ text-align: center;
1706
+ align-items: center;
1707
+ justify-content: center;
1708
+ `,Kd=a(Ne)`
1709
+ display: flex;
1710
+ border-radius: ${c.sp1};
1711
+ width: ${c.sp4};
1712
+ height: ${c.sp4};
1713
+ text-align: center;
1714
+ align-items: center;
1715
+ justify-content: center;
1716
+ margin-right: ${c.sp4};
1717
+ `,Yd=a(Ne)`
1718
+ display: flex;
1719
+ border-radius: 100px;
1720
+ width: 18px;
1721
+ height: 18px;
1722
+ justify-content: center;
1723
+ align-items: center;
1724
+ margin-left: ${c.sp1};
1725
+ `,{common:En,expenseAutomation:Ud}=I.getLocalizedStrings(),Zd=({balance:e})=>{const n=Ad;return t.jsx(Ld,{children:t.jsx(n,{children:Z(e)})})};function qd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:s,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:g,reviewedByUser:p,status:f,vendor:m,isOpen:y,childrenCount:b,vendorRowIndex:$,setHoveredParentId:C,onClick:L,handleRedirectToVendorDetailPage:v,updateOperatingExpensesIdsForReview:A}){const[M,P]=z.useState(!1),[E,T]=z.useState(n.length>0),Y=n.includes(e),q=n.includes(e),ae=s==="collapsed",X=n.length===un&&Y===!1,de=Id,me=ge=>{let fe=n;ge.target.checked===!0?fe=[...fe,e]:fe=fe.filter(Be=>Be!==e),A?.(fe)},le=()=>{v?.(m)},J=$!=null?String($):e,we=x("flux-analysis-vendor-checkbox",J),$e=x("flux-analysis-vendor-detail-navigation",J),ye=x("flux-analysis-vendor-expand-collapse",J),ve=x("flux-analysis-vendor-row",J);return t.jsx(vd,{heightValue:l,bgColor:i,"data-testid":ve,children:t.jsxs(_d,{shouldHighlight:q,isRowExpanded:y,onClick:()=>L?.(r),onMouseOver:()=>{P(!0),T(!0),C?.(m.id)},onMouseLeave:()=>{P(!1),n.length===0&&T(!1),C?.(null)},children:[t.jsxs(Bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Dd,{className:"flux-vendor-checkbox-container",children:E?t.jsx(Dt,{className:"flux-vendor-checkbox","data-testid":we,icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(Rd,{}),checked:Y,name:m.name,id:e,disabled:X,onChange:me,onClick:ge=>ge.stopPropagation(),style:{padding:"20px",pointerEvents:X?"none":"auto"}}):null}),t.jsxs(Pd,{isNodeOpen:y,children:[M?t.jsx(Hd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":ye,children:y===!1?t.jsx(Gn,{}):t.jsx(Ed,{})}):m.logo!=null?t.jsx(Gt,{photoUrl:m.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(Et,{name:m.name,size:c.sp4}),y?t.jsx(Qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(Wd,{children:[t.jsxs(Od,{children:[t.jsx(de,{children:m.name}),y?null:t.jsx(Yd,{className:"flux-vendor-children-count",children:t.jsx(Ne,{children:b})})]}),M?t.jsx(z.Fragment,{children:t.jsx(Kd,{className:"flux-vendor-chevron-icon",onClick:le,"data-testid":$e,children:t.jsx(Gn,{})})}):null]})]}),t.jsxs(Nd,{children:[g.map((ge,fe)=>t.jsx(Zd,{balance:ge,collapsed:ae},fe)),t.jsx(gt,{amount:d,percentage:h,currency:u}),t.jsx(zd,{children:f==="Pending Review"?t.jsx(Td,{children:t.jsx(Vd,{children:En.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Fd,{className:"vendor-flux-analysis-review-info",children:p!=null?t.jsxs(z.Fragment,{children:[t.jsxs(Gd,{children:[t.jsx(Md,{}),Ud.fluxAnalysis.reviewedBy]}),t.jsx(Ne,{children:Po(p)})]}):En.strings.hyphen})})})]})]})})}const Hn={generalExpense:{color:new B(V.graphColor04),hoverColor:new B(V.graphColor04Dark)},reimbursement:{color:new B(V.graphColor10),hoverColor:new B(V.graphColor10Dark)},default:{color:new B(ee.neutralGrey2Dark),hoverColor:new B(ee.neutralGrey2Dark)}},Xd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Hn[n]:Hn.default,pn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},no=e=>ic(e.balancesByMonth),Qd=(e,n,i,o,r,l,s,d,h)=>{if(!pn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,g=no(u),p=n.element.metadata.vendorId;return t.jsx(Oc,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:g,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:s,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(p),isHoveredByParent:d?.hoveredParentId===p})},Jd=(e,n,i,o,r,l,s,d,h,u,g)=>{if(!pn(n,"flux_vendor_row"))return null;const p=n.element.data,f=no(p),m=Ji("flux_vendor_row",h),y=b=>{g?.(b),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(b)};return t.jsx(qd,{backgroundColor:i,isSticky:o,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:p.fluxAnalysisEntityId,height:m,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:p.vendor,vendorBalances:f,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,status:p.status,currency:p.currency,isScrolling:r,isOpen:l,isLeaf:s,isLastNode:d,childrenCount:p.vendorAccountsAndClasses.length,onClick:b=>{y?.(b)},reviewedByUser:p.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},eh=(e,n,i,o,r,l,s,d,h,u)=>{if(!pn(n,"section"))return null;const g=Xd(n.config.reportId,n.element.sectionType),p=n.element.data,f=m=>{n.config.fluxAnalysisConfig?.onSectionRowClick(m),u?.(m)};return t.jsx(qc,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:p.balances,varianceAmount:p.varianceAmount,variancePercentage:p.variancePercentage,currency:p.currency,isScrolling:l,isOpen:s,hasVendors:p.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:m=>{f?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:p.sectionId})},th=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=He(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ge(d)),s=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(gd,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===un,onSortOrderChanged:s,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},nh=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx($d,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},ih=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(Nc,{}),oh=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Qc,{}),rh=a.div`
1726
+ display: flex;
1727
+ flex: 1 1 auto;
1728
+ width: fit-content;
1729
+ min-width: 100%;
1730
+ flex-direction: column;
1731
+ background-color: ${e=>e.bgColor?.hex()};
1732
+ `,ah=a.div`
1733
+ user-select: none;
1734
+ display: flex;
1735
+ flex: 1 1 auto;
1736
+ flex-flow: row;
1737
+ justify-content: flex-start;
1738
+ align-items: center;
1739
+ height: ${e=>e.height}px;
1740
+ margin-left: ${e=>e.level*20}px;
1741
+ `,lh=a.div`
1742
+ display: flex;
1743
+ flex-direction: row;
1744
+ align-items: center;
1745
+ justify-content: space-between;
1746
+ &:hover {
1747
+ background-color: null;
1748
+ }
1749
+ width: 100%;
1750
+ `,sh=a(zo)`
1751
+ width: 100%;
1752
+ display: flex;
1753
+ align-items: center;
1754
+ font-weight: ${e=>e.isSubclass?_n.regular:_n.medium};
1755
+ color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1756
+ `,ch=a(Ce)`
1757
+ display: flex;
1758
+ color: ${e=>e.theme.colors.primary};
1759
+ align-items: center;
1760
+ flex-direction: row;
1761
+ justify-content: center;
1762
+ height: 18px;
1763
+ border: 1px solid ${e=>e.theme.colors.primary};
1764
+ border-radius: ${c.sp1};
1765
+ margin: 0 ${c.sp5} 0 ${c.sp3};
1766
+ min-width: ${c.sp6};
1767
+ `,dh=a(Kt)`
1768
+ color: ${e=>e.theme.colors.primary};
1769
+ width: ${c.sp3};
1770
+ height: ${c.sp3};
1771
+ `;function hh({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:s,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:g}){const[p,f]=z.useState(!1);return t.jsx(rh,{"data-testid":x("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(ah,{"data-testid":x("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:s.classId.length,children:[t.jsx(Dt,{"data-testid":x("name-with-checkbox-row-checkbox",s.classId.toString()),icon:t.jsx(Rt,{width:c.sp3,height:c.sp3}),checkedIcon:t.jsx(dh,{}),checked:o,name:s.className,id:n,disabled:r,onChange:m=>{g?.(i,m.target.checked)},style:{height:c.sp6}})," ",t.jsx(lh,{children:t.jsxs(sh,{"data-testid":x("name-with-checkbox-row-label-container",n),checked:o,isSubclass:s.classId.length>1,children:[t.jsx("label",{"data-testid":x("name-with-checkbox-row-label",s.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(i,!o)},children:s.className}),p===!0&&h===!0&&s.accountingClassNumber!=null&&t.jsx(ch,{children:s.accountingClassNumber})]})})]})})}const uh=(e,n,i,o,r,l,s,d,h,u,g)=>{if(i.element.kind!="checkbox_and_name_only")return null;const p=i.element.data,f=i.config.isClassToBeFilteredOut?.(p.classId)===!1;return t.jsx(hh,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:p.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:s,nestedClass:p,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:g})},O={balanceHeight:c.sp4,balanceWidth:"166px",balanceLeftMargin:c.sp4,titleWidth:new D(200,270,270),categoryClassWidth:new D(230,230,240),nameLogoWidth:new D(w[4],w[4]),nameLogoHeight:new D(w[4],w[4])};function ph(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 gh(e,n){return!1}const fh=a.div`
1772
+ user-select: none;
1773
+ display: flex;
1774
+ flex: 1 1 auto;
1775
+ width: fit-content;
1776
+ min-width: 100%;
1777
+ height: ${e=>e.height}px;
1778
+ flex-flow: row;
1779
+ justify-content: flex-start;
1780
+ align-items: center;
1781
+ background-color: ${e=>e.bgColor?.hex()};
1782
+ `,xh=a.div`
1783
+ user-select: none;
1784
+ display: flex;
1785
+ flex: 1 1 auto;
1786
+ width: 100vw;
1787
+ min-width: 100%;
1788
+ height: ${e=>e.height}px;
1789
+ flex-flow: row;
1790
+ align-items: center;
1791
+ justify-content: center;
1792
+ background-color: ${e=>e.bgColor?.hex()};
1793
+ `,mh=a.div`
1794
+ display: flex;
1795
+ flex: 1 0 auto;
1796
+ flex-direction: row;
1797
+ justify-content: flex-end;
1798
+ `,Kn=a(S)`
1799
+ color: ${e=>e.theme.colors.hero};
1800
+ flex-grow: 1;
1801
+ -webkit-box-orient: vertical;
1802
+ justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
1803
+ display: flex;
1804
+ min-width: ${O.balanceWidth};
1805
+ max-width: ${O.balanceWidth};
1806
+ margin-left: ${e=>e.isClubbed===!0?c.sp2:O.balanceLeftMargin};
1807
+ border: 1px solid transparent;
1808
+ `,Yn=a(S)`
1809
+ color: ${e=>e.theme.colors.hero};
1810
+ flex-grow: 1;
1811
+ -webkit-box-orient: vertical;
1812
+ justify-content: "unset";
1813
+ display: flex;
1814
+ min-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
1815
+ `,wh=a.div`
1816
+ height: 100%;
1817
+ display: flex;
1818
+ flex-direction: row;
1819
+ align-items: center;
1820
+ min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
1821
+ color: ${e=>e.theme.colors.primary};
1822
+ background-color: ${e=>e.bgColor?.hex()};
1823
+ ${({isSticky:e})=>e?N`
1824
+ position: -webkit-sticky;
1825
+ position: sticky;
1826
+ top: ${c.sp0};
1827
+ left: ${c.sp0};
1828
+ z-index: 20;
1829
+ `:null}
1830
+ `;function yh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=W();return l.length>0?t.jsxs(fh,{height:i,bgColor:e,"data-testid":x("opex-vendor-loading-in-progress-row"),children:[t.jsxs(wh,{"data-testid":x("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:s,bgColor:e,children:[t.jsx(De,{width:w[4],height:w[4]}),t.jsx(Kn,{windowSize:s,isClubbed:!0,children:t.jsx(K,{width:120,height:w[4]})})]}),t.jsxs(mh,{children:[o?t.jsx(Yn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,r?t.jsx(Yn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Kn,{windowSize:s,children:t.jsx(K,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(xh,{height:i,bgColor:e,children:t.jsx(Oo,{size:"Small",start:!0})})}const bh=a.div`
1831
+ user-select: none;
1832
+ display: flex;
1833
+ flex: 1 1 auto;
1834
+ width: fit-content;
1835
+ min-width: 100%;
1836
+ height: ${e=>e.height}px;
1837
+ flex-flow: row;
1838
+ justify-content: flex-start;
1839
+ align-items: center;
1840
+ background-color: ${e=>e.bgColor?.hex()};
1841
+ `,vt=a.div``,kh=a.div`
1842
+ display: flex;
1843
+ flex: 1 0 auto;
1844
+ flex-direction: row;
1845
+ justify-content: flex-end;
1846
+ `,jh=a(S)`
1847
+ user-select: none;
1848
+ clear: both;
1849
+ display: inline-block;
1850
+ overflow: hidden;
1851
+ white-space: nowrap;
1852
+ text-overflow: ellipsis;
1853
+ text-align: left;
1854
+ margin-left: ${c.sp2};
1855
+ color: ${e=>e.theme.colors.hero};
1856
+ `,Ch=a(S)`
1857
+ color: ${e=>e.theme.colors.hero};
1858
+ flex-grow: 1;
1859
+ -webkit-box-orient: vertical;
1860
+ display: flex;
1861
+ min-width: ${O.balanceWidth};
1862
+ max-width: ${O.balanceWidth};
1863
+ border: 1px solid transparent;
1864
+ `,Un=a(S)`
1865
+ color: ${e=>e.theme.colors.hero};
1866
+ flex-grow: 1;
1867
+ -webkit-box-orient: vertical;
1868
+ justify-content: "unset";
1869
+ display: flex;
1870
+ min-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
1871
+ `,Sh=a.div`
1872
+ height: 100%;
1873
+ display: flex;
1874
+ flex-direction: row;
1875
+ align-items: center;
1876
+ min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
1877
+ color: ${e=>e.theme.colors.primary};
1878
+ background-color: ${e=>e.bgColor?.hex()};
1879
+ ${({isSticky:e})=>e?N`
1880
+ position: -webkit-sticky;
1881
+ position: sticky;
1882
+ top: ${c.sp0};
1883
+ left: ${c.sp0};
1884
+ z-index: 20;
1885
+ `:null}
1886
+ `;function $h({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const s=W();return t.jsxs(bh,{height:i,bgColor:e,"data-testid":x("no-results-found-title-row"),children:[t.jsx(Sh,{isSticky:n,windowSize:s,bgColor:e,children:t.jsx(jh,{children:I.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(kh,{children:[o?t.jsx(Un,{windowSize:s,children:t.jsx(vt,{})}):null,r?t.jsx(Un,{windowSize:s,children:t.jsx(vt,{})}):null,l.map((d,h)=>t.jsx(Ch,{windowSize:s,children:t.jsx(vt,{children:" "})},`${h}RowItem`))]})]})}function gn({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:g}){const p=["compare_mode_percent","compare_mode_amount"],f=m=>I.getLocalizedStrings().compareMode[m];return t.jsx(Ko,{title:e,pickerValues:p,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:m=>i(m),optionTextStyle:s,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:g})}const zt={balanceHeight:c.sp4,balanceWidthInPx:170,balanceLeftMargin:c.sp4},vh=a.div`
1887
+ margin-left: ${c.sp4};
1888
+ `,_h=a.div`
1889
+ display: flex;
1890
+ max-height: 54px;
1891
+ min-height: 54px;
1892
+ align-items: center;
1893
+ justify-content: center;
1894
+ max-width: ${zt.balanceWidthInPx-2}px;
1895
+ min-width: ${zt.balanceWidthInPx-2}px;
1896
+ background-color: ${e=>e.theme.colors.background};
1897
+ border: 1px solid ${e=>e.theme.colors.grey3};
1898
+ border-radius: ${c.sp2};
1899
+ color: ${e=>e.theme.colors.primary};
1900
+ `,Lh=a(S)`
1901
+ display: flex;
1902
+ user-select: none;
1903
+ flex-direction: row;
1904
+ justify-content: center;
1905
+ align-items: center;
1906
+ height: ${zt.balanceHeight};
1907
+ `,Ah=a.div`
1908
+ display: flex;
1909
+ flex-direction: row;
1910
+ justify-content: center;
1911
+ align-items: center;
1912
+ padding: 3px 6px;
1913
+ margin-right: ${c.sp2};
1914
+ position: relative;
1915
+ top: -12px;
1916
+ `,Bh=a(Jo)`
1917
+ color: ${e=>e.tagType==="under_review"?ee.neutralGrey5Light:e.theme.mode==="light"?ee.primaryDark:ee.primaryLight};
1918
+ border-radius: ${c.sp2};
1919
+ padding: 3px 6px;
1920
+ margin-left: 12px;
1921
+ background: ${e=>e.tagType==="under_review"?ee.alertDark:e.theme.mode==="light"?ee.championLight:ee.championDark};
1922
+ `,Ih=a(Qo)`
1923
+ color: ${e=>e.theme.colors.hero};
1924
+ margin-left: 5px;
1925
+ height: ${c.sp3};
1926
+ width: ${c.sp3};
1927
+ margin-top: ${c.sp1};
1928
+ `;function Wh(e){if(e==="under_review")return x("report-tree-timeframe-tag","under-review");if(e==="incomplete")return x("report-tree-timeframe-tag","in-progress")}function io({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(vh,{children:[t.jsxs(_h,{children:[t.jsx(Lh,{children:Ee(e,n,i)}),t.jsx(Xo,{style:{padding:c.sp3},title:r,placement:"top",children:t.jsx(Ih,{})})]}),t.jsx(Ah,{"data-testid":Wh(l),children:t.jsx(Bh,{tagType:l,children:o})})]})}const oo=(e,n)=>{const i=I.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}},Oh=a.div`
1929
+ user-select: none;
1930
+ display: flex;
1931
+ flex: 1 1 auto;
1932
+ width: fit-content;
1933
+ min-width: 100%;
1934
+ height: ${e=>e.height}px;
1935
+ flex-flow: row;
1936
+ justify-content: flex-start;
1937
+ align-items: center;
1938
+ background-color: ${e=>e.bgColor?.hex()};
1939
+ `,Mh=a.div`
1940
+ display: flex;
1941
+ flex: 1 0 auto;
1942
+ flex-direction: row;
1943
+ justify-content: flex-end;
1944
+ `,ro=a.div`
1945
+ display: flex;
1946
+ max-height: ${c.sp8};
1947
+ min-height: ${c.sp8};
1948
+ min-width: ${O.balanceWidth};
1949
+ justify-content: center;
1950
+ align-items: center;
1951
+ background-color: ${e=>e.theme.colors.background};
1952
+ border: 1px solid ${e=>e.theme.colors.grey3};
1953
+ border-radius: ${c.sp2};
1954
+ margin-left: ${O.balanceLeftMargin};
1955
+ color: ${e=>e.theme.colors.primary};
1956
+ cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1957
+ `,ao=a(S)`
1958
+ display: flex;
1959
+ user-select: none;
1960
+ flex-direction: row;
1961
+ justify-content: center;
1962
+ align-items: center;
1963
+ height: ${O.balanceHeight};
1964
+ max-width: ${O.balanceWidth};
1965
+ width: 138px;
1966
+ text-align: center;
1967
+ `,Nh=a.div`
1968
+ display: flex;
1969
+ flex-direction: row;
1970
+ z-index: 1;
1971
+ background-color: ${e=>e.bgColor?.hex()};
1972
+ ${({isSticky:e})=>e?N`
1973
+ position: -webkit-sticky;
1974
+ position: sticky;
1975
+ top: ${c.sp0};
1976
+ left: ${c.sp0};
1977
+ z-index: 1;
1978
+ `:null}
1979
+ `,Ph=a.div`
1980
+ max-height: ${e=>e.plHeight}px;
1981
+ min-height: ${e=>e.plHeight}px;
1982
+ display: flex;
1983
+ flex-direction: row;
1984
+ align-items: center;
1985
+ min-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
1986
+ color: ${e=>e.theme.colors.primary};
1987
+ background-color: ${e=>e.bgColor?.hex()};
1988
+ `,zh=a(S)`
1989
+ display: flex;
1990
+ gap: 6px;
1991
+ align-items: baseline;
1992
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1993
+ `,lo=a(S)`
1994
+ height: 100%;
1995
+ align-self: center;
1996
+ align-items: baseline;
1997
+ min-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
1998
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1999
+ background-color: ${e=>e.bgColor?.hex()};
2000
+ display: flex;
2001
+ gap: 6px;
2002
+ align-items: center;
2003
+ `,fn=a.div`
2004
+ display: flex;
2005
+ cursor: pointer;
2006
+ `,Fh=a.div`
2007
+ display: flex;
2008
+ justify-content: center;
2009
+ align-items: center;
2010
+ color: ${e=>e.theme.colors.champion};
2011
+ `,Th=a.div``,Vh=a(S)`
2012
+ display: flex;
2013
+ justify-content: center;
2014
+ align-items: center;
2015
+ max-height: ${c.sp8};
2016
+ min-height: ${c.sp8};
2017
+ background-color: ${e=>e.theme.colors.background};
2018
+ border: 1px solid ${e=>e.theme.colors.grey3};
2019
+ border-radius: ${c.sp2};
2020
+ margin-left: ${O.balanceLeftMargin};
2021
+ color: ${e=>e.theme.colors.primary};
2022
+ width: ${O.balanceWidth};
2023
+ min-width: ${O.balanceWidth};
2024
+ `,so=a.div`
2025
+ max-height: ${c.sp8};
2026
+ min-height: ${c.sp8};
2027
+ `,ft=a.div`
2028
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2029
+ `,xt=a(Zt)`
2030
+ width: 12px;
2031
+ height: 12px;
2032
+ margin-left: ${c.sp2};
2033
+ margin-top: ${c.sp1};
2034
+ `,mt=a(Ut)`
2035
+ width: 12px;
2036
+ height: 12px;
2037
+ margin-left: ${c.sp2};
2038
+ margin-top: ${c.sp1};
2039
+ `,xn=a(ai)`
2040
+ width: 12px;
2041
+ height: 12px;
2042
+ cursor: pointer;
2043
+ color: ${e=>e.theme.colors.hero};
2044
+ `,co=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(wt("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(so,{"data-testid":x("period-total-tick"),children:t.jsx(ro,{"data-testid":x("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(ao,{children:[I.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ft,{selectedForSort:n==="totals","data-testid":x("report-tree-column-header-sort-icon","period-total"),children:r==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]})})})},Dh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(zh,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header","vendor"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ft,{selectedForSort:e==="vendor","data-testid":x("report-tree-column-header-sort-icon","vendor"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="vendor"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","vendor"),onClick:o}):null]})},Rh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("account",n,e),"account")},l=e==="account"?n:"ascending",s=W();return t.jsxs(lo,{selectedForSort:e==="account",windowSize:s,"data-testid":x("report-tree-column-header","account"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ft,{selectedForSort:e==="account","data-testid":x("report-tree-column-header-sort-icon","account"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="account"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","account"),onClick:o}):null]})},Gh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(wt("class",n,e),"class")},l=e==="class"?n:"ascending",s=W();return t.jsxs(lo,{selectedForSort:e==="class",windowSize:s,"data-testid":x("report-tree-column-header","class"),children:[t.jsxs(fn,{onClick:r,children:[I.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ft,{selectedForSort:e==="class","data-testid":x("report-tree-column-header-sort-icon","class"),children:l==="ascending"?t.jsx(mt,{}):t.jsx(xt,{})})]}),e==="class"?t.jsx(xn,{"data-testid":x("report-tree-column-header-sort-cancel","class"),onClick:o}):null]})},ho=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,bookCloseDate:r,dataAvailable:l})=>{const s=I.getLocalizedStrings().reports,d=r!=null&&l!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,l):void 0,h=d!=null?d==="under_review"?s.bookCloseTagUnderReview:s.bookCloseTagInProgress:void 0,u=oo(d,i),g=x("report-tree-column-header-timeframe",String(o));return t.jsx(so,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&h!=null&&u!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:h,infoContent:u,tagType:d}):t.jsx(ro,{isClickable:!1,children:t.jsx(ao,{children:Ee(e,n,i)})})})},Eh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:s,sortKey:d="totals",sortOrder:h="ascending"})=>n.balanceType==="period_total"?t.jsx(co,{sortKey:d,sortOrder:h,onSortOrderChanged:r}):t.jsx(ho,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tickColumnIndex:o,dataAvailable:s,bookCloseDate:l}),Hh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:s,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const g=ce(),p=o==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return t.jsx(Fh,{children:n.map((f,m)=>t.jsxs(z.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Vh,{"data-testid":x("report-tree-column-header-compare-mode",String(m)),children:t.jsx(gn,{title:p,titleTextStyle:Yt.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:y=>{y!=="off"&&(y==="compare_mode_amount"||y==="compare_mode_percent"?h?.(y):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(co,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Th,{children:t.jsx(ho,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,tickColumnIndex:m,dataAvailable:s,bookCloseDate:d},m)}):null]},m))})};function Kh({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:s,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:b}){const $=W(),C=(v,A)=>{b?.(v,A)},L=()=>{b?.("descending","totals")};return t.jsxs(Oh,{height:i,bgColor:e,children:[t.jsx(Nh,{bgColor:e,windowSize:$,isSticky:n,children:t.jsx(Ph,{plHeight:i,windowSize:$,bgColor:e,children:t.jsx(Dh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L})})}),r?t.jsx(Rh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L}):null,l?t.jsx(Gh,{sortKey:s,sortOrder:d,onSortOrderChanged:C,onSortCancel:L}):null,t.jsx(Mh,{children:o===!0?t.jsx(Hh,{firstMonthOfFY:h,timeframe:u,sortKey:s,sortOrder:d,timeframeTicks:g,compareMode:p,dataAvailable:f,bookCloseDate:m,onCompareModeChanged:y,onSortOrderChanged:C}):g.map((v,A)=>t.jsx(Eh,{firstMonthOfFY:h,timeframeTick:v,timeframe:u,tickColumnIndex:A,onSortOrderChanged:C,bookCloseDate:m,dataAvailable:f,sortKey:s,sortOrder:d},A))})]})}const wt=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Yh=a.div`
2045
+ display: flex;
2046
+ flex: 1 1 auto;
2047
+ max-height: 1px;
2048
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
2049
+ `,Uh=a.div`
2050
+ display: flex;
2051
+ flex: 1 1 auto;
2052
+ max-height: 1px;
2053
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
2054
+ `;function Ft({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Yh,{isScrolling:n});case"end_row_separator":return t.jsx(Uh,{isScrolling:n})}}const Zh=a.div`
2055
+ display: flex;
2056
+ flex: 1 1 auto;
2057
+ width: fit-content;
2058
+ min-width: 100%;
2059
+ flex-direction: column;
2060
+ height: ${e=>e.height}px;
2061
+ background-color: ${e=>e.bgColor?.hex()};
2062
+ `,qh=a.div`
2063
+ user-select: none;
2064
+ display: flex;
2065
+ flex: 1 1 auto;
2066
+ flex-flow: row;
2067
+ justify-content: flex-start;
2068
+ align-items: center;
2069
+ cursor: default;
2070
+ `,Xh=a.div`
2071
+ display: flex;
2072
+ flex: 1 0 auto;
2073
+ flex-direction: row;
2074
+ justify-content: flex-end;
2075
+ `,Qh=a.div`
2076
+ display: flex;
2077
+ flex-direction: row;
2078
+ justify-content: flex-start;
2079
+ `,uo=a(ie)`
2080
+ user-select: none;
2081
+ min-width: ${O.balanceWidth};
2082
+ max-width: ${O.balanceWidth};
2083
+ text-align: right;
2084
+ margin-left: ${O.balanceLeftMargin};
2085
+ color: ${e=>e.theme.colors.primary};
2086
+ border: 1px solid transparent;
2087
+ `,Jh=a(uo)`
2088
+ color: ${e=>e.theme.colors.hero};
2089
+ &:hover {
2090
+ color: inherit;
2091
+ }
2092
+ `,eu=a.div`
2093
+ display: flex;
2094
+ flex-direction: row;
2095
+ background-color: ${e=>e.bgColor?.hex()};
2096
+ ${({isSticky:e})=>e?N`
2097
+ position: -webkit-sticky;
2098
+ position: sticky;
2099
+ top: ${c.sp0};
2100
+ left: ${c.sp0};
2101
+ `:null}
2102
+ `,tu=a.div`
2103
+ display: flex;
2104
+ flex-direction: row;
2105
+ flex-shrink: 2;
2106
+ flex-grow: 1;
2107
+ align-items: center;
2108
+ width: ${e=>O.titleWidth.valuePx(e.windowSize)};
2109
+ max-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
2110
+ background-color: ${e=>e.bgColor?.hex()};
2111
+ `,Zn=a.div`
2112
+ width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2113
+ max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2114
+ background-color: ${e=>e.bgColor?.hex()};
2115
+ `,nu=a(ie)`
2116
+ user-select: none;
2117
+ clear: both;
2118
+ display: inline-block;
2119
+ overflow: hidden;
2120
+ white-space: nowrap;
2121
+ text-overflow: ellipsis;
2122
+ text-align: left;
2123
+ color: ${e=>e.theme.colors.primary};
2124
+ `,iu=({balance:e,collapsed:n,timeframeColumnIndex:i,treeNodeId:o,type:r})=>{const l=n===!0?Jh:uo;return t.jsx(Qh,{"data-testid":x("report-tree-total-row-amount",`${o}-${String(i)}`),children:re(r)===!0?t.jsx(l,{children:Z(e)}):null})};function ou({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:s,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:g}){const p=W();return t.jsxs(Zh,{"data-testid":x("total-row-root-container",o),height:r,bgColor:n,windowSize:p,children:[t.jsxs(qh,{"data-testid":x("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(eu,{bgColor:n,windowSize:p,isSticky:i,children:[t.jsx(tu,{bgColor:n,windowSize:p,children:t.jsx(nu,{children:l})}),d?t.jsx(Zn,{windowSize:p}):null,h?t.jsx(Zn,{windowSize:p}):null]}),t.jsx(Xh,{children:s.map((f,m)=>t.jsx(iu,{balance:f,collapsed:!1,timeframeColumnIndex:m,treeNodeId:o,type:e},m))})]}),t.jsx(Ft,{isScrolling:g,kind:"vendor_row_separator"})]})}const ru=a.div`
2125
+ display: flex;
2126
+ flex: 1 1 auto;
2127
+ width: fit-content;
2128
+ min-width: 100%;
2129
+ flex-direction: column;
2130
+ height: ${e=>e.height}px;
2131
+ background-color: ${e=>e.bgColor?.hex()};
2132
+ `,au=a.div`
2133
+ user-select: none;
2134
+ display: flex;
2135
+ flex: 1 1 auto;
2136
+ flex-flow: row;
2137
+ justify-content: flex-start;
2138
+ align-items: center;
2139
+ &:hover {
2140
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2141
+ }
2142
+ `,lu=a.div`
2143
+ display: flex;
2144
+ flex: 1 0 auto;
2145
+ flex-direction: row;
2146
+ justify-content: flex-end;
2147
+ `,su=a.div`
2148
+ display: flex;
2149
+ flex-direction: row;
2150
+ justify-content: flex-start;
2151
+ `,cu=a(S)`
2152
+ user-select: none;
2153
+ min-width: ${O.balanceWidth};
2154
+ max-width: ${O.balanceWidth};
2155
+ text-align: right;
2156
+ margin-left: ${O.balanceLeftMargin};
2157
+ border: 1px solid transparent;
2158
+ color: ${e=>e.theme.colors.hero};
2159
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2160
+ &:hover {
2161
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2162
+ }
2163
+ `,du=a.div`
2164
+ display: flex;
2165
+ flex-direction: row;
2166
+ background-color: ${e=>e.bgColor?.hex()};
2167
+ ${({isSticky:e})=>e?N`
2168
+ position: -webkit-sticky;
2169
+ position: sticky;
2170
+ top: ${c.sp0};
2171
+ left: ${c.sp0};
2172
+ `:null}
2173
+ `,hu=a.div`
2174
+ display: flex;
2175
+ flex-direction: row;
2176
+ flex-shrink: 2;
2177
+ flex-grow: 1;
2178
+ align-items: center;
2179
+ gap: ${c.sp2};
2180
+ width: ${e=>O.titleWidth.valuePx(e.windowSize)};
2181
+ max-width: ${e=>O.titleWidth.valuePx(e.windowSize)};
2182
+ background-color: ${e=>e.bgColor?.hex()};
2183
+ `,Oe=a(S)`
2184
+ user-select: none;
2185
+ clear: both;
2186
+ display: inline-block;
2187
+ overflow: hidden;
2188
+ white-space: nowrap;
2189
+ text-overflow: ellipsis;
2190
+ text-align: left;
2191
+ color: ${e=>e.theme.colors.hero};
2192
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2193
+ &:hover {
2194
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2195
+ }
2196
+ `,uu=a.div`
2197
+ display: flex;
2198
+ flex-direction: row;
2199
+ flex-shrink: 2;
2200
+ flex-grow: 1;
2201
+ align-items: center;
2202
+ width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2203
+ max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2204
+ background-color: ${e=>e.bgColor?.hex()};
2205
+ `,pu=a.div`
2206
+ display: flex;
2207
+ flex-direction: row;
2208
+ flex-shrink: 2;
2209
+ flex-grow: 1;
2210
+ align-items: center;
2211
+ width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2212
+ max-width: ${e=>O.categoryClassWidth.valuePx(e.windowSize)};
2213
+ background-color: ${e=>e.bgColor?.hex()};
2214
+ `,gu=a.div``,fu=a.div`
2215
+ width: ${c.sp4};
2216
+ height: ${c.sp4};
2217
+ border-radius: 50%;
2218
+ background-color: ${e=>e.theme.colors.grey3};
2219
+ display: flex;
2220
+ justify-content: center;
2221
+ align-items: center;
2222
+ color: ${e=>e.theme.colors.hero};
2223
+ `,xu=a(Fo)`
2224
+ width: ${c.sp3};
2225
+ height: ${c.sp3};
2226
+ `,mu=a.div`
2227
+ display: flex;
2228
+ column-gap: ${c.sp2};
2229
+ width: 100%;
2230
+ &:hover {
2231
+ .hyphen-text {
2232
+ display: none;
2233
+ }
2234
+ .not-specified-text {
2235
+ display: block;
2236
+ }
2237
+ }
2238
+ `,wu=a(S)`
2239
+ color: ${e=>e.theme.colors.hero};
2240
+ `,yu=a(S)`
2241
+ color: ${e=>e.theme.colors.hero};
2242
+ display: none;
2243
+ `,bu=({balance:e,timeframeColumnIndex:n,vendor:i,vendorRowKey:o,onVendorNameAndBalanceClick:r})=>{const l=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",s=e?.type==="period_total",d=e?.type==="default_with_null_balance",h=l!==!0&&s===!1&&d===!1&&!ci(i.id);return t.jsx(su,{"data-testid":x("report-tree-vendor-row-amount",`${o}-${String(n)}`),children:t.jsx(cu,{isClickable:h,onClick:()=>{h===!0&&r(i,e??void 0)},children:Z(e)})})};function ku({backgroundColor:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,vendor:l,balances:s,accountBase:d,classBase:h,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:p,vendorRowIndex:f}){const m=W(),y=f!=null?String(f):l.id,b=Ht(),$=b.loggedInUserRole!=null&&!si(b.loggedInUserRole),C=ci(l.id),L=$===!0&&l!=null&&!C,v=L?"pointer":"default",A=l.name;return t.jsxs(ru,{"data-testid":x("vendor-row-root-container",y),height:i,bgColor:e,windowSize:m,children:[t.jsxs(au,{"data-testid":x("vendor-row-container",y),style:{cursor:v},isClickable:L,children:[t.jsx(du,{"data-testid":x("vendor-row-sticky-container",y),isSticky:n,windowSize:m,bgColor:e,children:t.jsxs(hu,{"data-testid":x("vendor-row-name-container",y),windowSize:m,bgColor:e,children:[t.jsxs(rt,{controller:!C,children:[t.jsx(gu,{"data-testid":x("report-tree-vendor-row-avatar",y),children:l.logo!=null?t.jsx(Gt,{photoUrl:l.logo.toString(),styles:{width:O.nameLogoWidth.valuePx(m),height:O.nameLogoHeight.valuePx(m)}}):t.jsx(Et,{name:A,size:c.sp4})}),t.jsx(Oe,{"data-testid":x("vendor-row-name",y),style:{cursor:v},isClickable:L,onClick:()=>{L===!0&&p(l)},children:A})]}),t.jsx(rt,{controller:C,children:t.jsxs(mu,{children:[t.jsx(fu,{"data-testid":x("report-tree-vendor-row-avatar",y),children:t.jsx(xu,{})}),t.jsx(wu,{className:"hyphen-text",children:I.getLocalizedStrings().common.strings.hyphen}),t.jsx(yu,{className:"not-specified-text",children:A})]})})]})}),u?t.jsx(uu,{windowSize:m,bgColor:e,children:d!=null?t.jsx(Oe,{"data-testid":x("vendor-row-account-name",y),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(Oe,{isClickable:!1,"data-testid":x("vendor-row-account-name",y),children:I.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(pu,{windowSize:m,bgColor:e,children:h!=null?t.jsx(Oe,{"data-testid":x("vendor-row-class-name",y),title:h.className,isClickable:!1,children:h.className}):t.jsx(Oe,{"data-testid":x("vendor-row-class-name",y),isClickable:!1,children:I.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(lu,{children:s.map((M,P)=>t.jsx(bu,{balance:M,timeframeColumnIndex:P,vendor:l,vendorRowKey:y,onVendorNameAndBalanceClick:p},P))})]}),t.jsx(ju,{isScrolling:o,isLastNode:r})]})}function ju({isScrolling:e,isLastNode:n}){return n?t.jsx(Ft,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ft,{isScrolling:e,kind:"vendor_row_separator"})}const Cu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const s=He(e.element.data,e.config.displayOrder),d=s.length>0?s[0].balanceTimeFrame:"month",h=s.map(u=>Ge(u));return t.jsx(Kh,{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})},Su=(e,n,i,o,r,l,s)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,g=Di(d,i.config.displayOrder,u,h);return t.jsx(ou,{type:n,backgroundColor:s,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:g.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},$u=(e,n,i,o,r,l,s)=>{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=Di(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(ku,{backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendorRowIndex:n.element.index,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:s,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(g,p)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(g,p)}})},vu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=He(e.element.data,e.config.displayOrder).map(l=>Ge(l));return t.jsx(yh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},_u=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=He(e.element.data,e.config.displayOrder).map(l=>Ge(l));return t.jsx($h,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function mn(e,n,i){return Lu(n,i,e)}const Lu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>qn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>qn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>Au(r,o.acGroupBalanceSelector,i,n),o};function qn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Bu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||po((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Xn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Xn(n(o)?.balances??[]))}}function Au(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>po(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Iu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Wu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function po(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Bu(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 Iu(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 Wu(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 Xn(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 go(e,n,i=-1,o=!0){const r=i!==-1;let l=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ou([],i)),{balances:l,thisPeriodIndex:s};let d=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:s}}function Ou(e,n){return e.length>0?e:ti(Array(n),null)}const Mu=a.div`
2244
+ display: flex;
2245
+ flex: 1 1 auto;
2246
+ width: fit-content;
2247
+ min-width: 100%;
2248
+ flex-direction: column;
2249
+ height: ${e=>e.height}px;
2250
+ background-color: ${e=>e.bgColor?.hex()};
2251
+ `,Nu=a.div`
2252
+ user-select: none;
2253
+ display: flex;
2254
+ flex: 1 1 auto;
2255
+ flex-flow: row;
2256
+ justify-content: flex-start;
2257
+ align-items: center;
2258
+ &:hover {
2259
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2260
+ }
2261
+ `,Pu=a.div`
2262
+ display: flex;
2263
+ flex: 1 0 auto;
2264
+ flex-direction: row;
2265
+ justify-content: flex-end;
2266
+ `,zu=a.div`
2267
+ display: flex;
2268
+ flex-direction: row;
2269
+ justify-content: flex-start;
2270
+ `,fo=a(S)`
2271
+ user-select: none;
2272
+ min-width: ${k.balanceWidth};
2273
+ max-width: ${k.balanceWidth};
2274
+ text-align: right;
2275
+ margin-left: ${k.balanceLeftMargin};
2276
+ color: ${e=>e.theme.colors.primary};
2277
+ `,Fu=a(fo)`
2278
+ color: ${e=>e.theme.colors.hero};
2279
+ &:hover {
2280
+ color: inherit;
2281
+ }
2282
+ `,Tu=a.div`
2283
+ display: flex;
2284
+ flex-direction: row;
2285
+ flex-shrink: 2;
2286
+ flex-grow: 1;
2287
+ align-items: center;
2288
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2289
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2290
+ background-color: ${e=>e.bgColor?.hex()};
2291
+ ${({isSticky:e})=>e?N`
2292
+ position: -webkit-sticky;
2293
+ position: sticky;
2294
+ top: ${c.sp0};
2295
+ left: ${c.sp0};
2296
+ z-index: 20;
2297
+ `:null}
2298
+ `,xo=a(S)`
2299
+ user-select: none;
2300
+ clear: both;
2301
+ display: inline-block;
2302
+ overflow: hidden;
2303
+ white-space: nowrap;
2304
+ text-overflow: ellipsis;
2305
+ text-align: left;
2306
+ margin-left: ${c.sp4};
2307
+ color: ${e=>e.theme.colors.primary};
2308
+ `,Vu=a(xo)`
2309
+ color: ${e=>e.theme.colors.hero};
2310
+ &:hover {
2311
+ color: inherit;
2312
+ }
2313
+ `,Du=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Fu:fo;return t.jsxs(zu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Ru({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=ce(),$=W(),C=!f,L=C?"pointer":"default",v=l==="collapsed",A=l==="hidden",M=A===!0?w[6]:w[4],P=v===!0?Vu:xo,E=v===!0?ni:ii,T=v===!0?b.colors.hero:b.colors.primary;return t.jsxs(Mu,{height:r,bgColor:n,"data-testid":x("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Nu,{"data-testid":x("pandl-report-account-group-row-container",o),style:{cursor:L},isClickable:C,onClick:()=>y?.(o),children:[pe(e)===!0?t.jsxs(Tu,{bgColor:n,isSticky:i,windowSize:$,children:[A===!1?t.jsx(E,{color:T,style:{width:w[3],height:w[3]}}):null,t.jsx(P,{style:{marginLeft:M},children:s})]}):null,be(e)===!0?t.jsx(Pu,{children:d.map((Y,q)=>t.jsx(Du,{type:e,accountGroupName:s,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:v},q))}):null]}),t.jsx(Gu,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Gu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=pe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const Eu=a.div`
2314
+ display: flex;
2315
+ flex: 1 1 auto;
2316
+ width: fit-content;
2317
+ min-width: 100%;
2318
+ flex-direction: column;
2319
+ height: ${e=>e.height}px;
2320
+ background-color: ${e=>e.bgColor?.hex()};
2321
+ `,Hu=a.div`
2322
+ user-select: none;
2323
+ display: flex;
2324
+ flex: 1 1 auto;
2325
+ flex-flow: row;
2326
+ justify-content: flex-start;
2327
+ align-items: center;
2328
+ &:hover {
2329
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2330
+ }
2331
+ `,Ku=a.div`
2332
+ display: flex;
2333
+ flex: 1 0 auto;
2334
+ flex-direction: row;
2335
+ justify-content: flex-end;
2336
+ `,Yu=a.div`
2337
+ display: flex;
2338
+ flex-direction: row;
2339
+ justify-content: flex-start;
2340
+ `,mo=a(S)`
2341
+ user-select: none;
2342
+ min-width: ${k.balanceWidth};
2343
+ max-width: ${k.balanceWidth};
2344
+ text-align: right;
2345
+ margin-left: ${k.balanceLeftMargin};
2346
+ color: ${e=>e.theme.colors.primary};
2347
+ `,Uu=a(mo)`
2348
+ color: ${e=>e.theme.colors.hero};
2349
+ &:hover {
2350
+ color: inherit;
2351
+ }
2352
+ `,Zu=a.div`
2353
+ display: flex;
2354
+ flex-direction: row;
2355
+ flex-shrink: 2;
2356
+ flex-grow: 1;
2357
+ align-items: center;
2358
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2359
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2360
+ background-color: ${e=>e.bgColor?.hex()};
2361
+ ${({isSticky:e})=>e?N`
2362
+ position: -webkit-sticky;
2363
+ position: sticky;
2364
+ top: ${c.sp0};
2365
+ left: ${c.sp0};
2366
+ z-index: 20;
2367
+ `:null}
2368
+ `,wo=a(S)`
2369
+ user-select: none;
2370
+ clear: both;
2371
+ display: inline-block;
2372
+ overflow: hidden;
2373
+ white-space: nowrap;
2374
+ text-overflow: ellipsis;
2375
+ text-align: left;
2376
+ margin-left: ${c.sp2};
2377
+ color: ${e=>e.theme.colors.primary};
2378
+ `,qu=a(wo)`
2379
+ color: ${e=>e.theme.colors.hero};
2380
+ &:hover {
2381
+ color: inherit;
2382
+ }
2383
+ `,Xu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Uu:mo;return t.jsxs(Yu,{children:[re(e)===!0||o?t.jsx(l,{children:Z(n)}):t.jsx(l,{children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function Qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:s,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:g,isOpen:p,isLeaf:f,isLastNode:m,onClick:y}){const b=W(),$=ce(),C=!f,L=C?"pointer":"default",v=l==="collapsed",A=v===!0?qu:wo,[M,P]=z.useState(!1),E=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(Eu,{"data-testid":x("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Hu,{"data-testid":x("pandl-account-group-row-container",o),onMouseOver:()=>P(!0),onMouseLeave:()=>P(!1),style:{cursor:L},isClickable:C,onClick:()=>y?.(o),children:[pe(e)===!0?t.jsxs(Zu,{bgColor:n,isSticky:i,windowSize:b,children:[t.jsx(Se,{showCollapsedIcon:v,showIcon:M&&C,firstLetter:E,color:B($.colors.primary)}),t.jsx(A,{children:s})]}):null,be(e)===!0?t.jsx(Ku,{children:d.map((T,Y)=>t.jsx(Xu,{type:e,accountGroupName:s,balance:T,isActualVsForecastOn:h,compareMode:u,collapsed:v},Y))}):null]}),t.jsx(Ju,{isScrolling:g,type:e,isLeaf:f,isLastNode:m,isOpen:p})]})}function Ju({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=pe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const ep=a.div`
2384
+ display: flex;
2385
+ flex: 1 1 auto;
2386
+ width: fit-content;
2387
+ min-width: 100%;
2388
+ flex-direction: column;
2389
+ height: ${e=>e.height}px;
2390
+ background-color: ${e=>e.bgColor?.hex()};
2391
+ `,tp=a.div`
2392
+ user-select: none;
2393
+ display: flex;
2394
+ flex: 1 1 auto;
2395
+ flex-flow: row;
2396
+ justify-content: flex-start;
2397
+ align-items: center;
2398
+ `,np=a.div`
2399
+ display: flex;
2400
+ flex: 1 0 auto;
2401
+ flex-direction: row;
2402
+ justify-content: flex-end;
2403
+ `,ip=a.div`
2404
+ display: flex;
2405
+ flex-direction: row;
2406
+ justify-content: flex-start;
2407
+ `,et=a(S)`
2408
+ user-select: none;
2409
+ min-width: ${k.balanceWidth};
2410
+ max-width: ${k.balanceWidth};
2411
+ text-align: right;
2412
+ margin-left: ${k.balanceLeftMargin};
2413
+ color: ${e=>e.theme.colors.hero};
2414
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2415
+ &:hover {
2416
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2417
+ }
2418
+ `,op=a.div`
2419
+ display: flex;
2420
+ flex-direction: row;
2421
+ flex-shrink: 2;
2422
+ flex-grow: 1;
2423
+ align-items: center;
2424
+ ${({containerHeight:e})=>e!=null?N`
2425
+ height: ${e-1}px;
2426
+ `:null}
2427
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2428
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2429
+ background-color: ${e=>e.bgColor?.hex()};
2430
+ color: ${e=>e.isSubAccountLeaf?e.theme.colors.grey1:e.theme.colors.hero};
2431
+ cursor: ${e=>e.isRowClickable?"pointer":"default"};
2432
+ &:hover {
2433
+ color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
2434
+ }
2435
+ ${({isSticky:e})=>e?N`
2436
+ position: -webkit-sticky;
2437
+ position: sticky;
2438
+ top: ${c.sp0};
2439
+ left: ${c.sp0};
2440
+ z-index: 20;
2441
+ `:null}
2442
+ `,rp=a.div`
2443
+ display: flex;
2444
+ flex-direction: row;
2445
+ flex-shrink: 2;
2446
+ flex-grow: 1;
2447
+ align-items: center;
2448
+ ${({containerHeight:e})=>e!=null?N`
2449
+ height: ${e-1}px;
2450
+ `:null}
2451
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2452
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2453
+ background-color: ${e=>e.bgColor?.hex()};
2454
+ ${({isSticky:e})=>e?N`
2455
+ position: -webkit-sticky;
2456
+ position: sticky;
2457
+ top: ${c.sp0};
2458
+ left: ${c.sp0};
2459
+ z-index: 20;
2460
+ `:null}
2461
+ `,ap=a(S)`
2462
+ user-select: none;
2463
+ clear: both;
2464
+ display: inline-block;
2465
+ text-align: left;
2466
+ `,lp=a(S)`
2467
+ user-select: none;
2468
+ clear: both;
2469
+ display: inline-block;
2470
+ overflow: hidden;
2471
+ white-space: nowrap;
2472
+ text-overflow: ellipsis;
2473
+ text-align: left;
2474
+ margin-left: ${({titleIndentExtraPx:e})=>e!=null&&e>0?`calc(${c.sp6} + ${e}px)`:c.sp6};
2475
+ color: ${e=>e.theme.colors.hero};
2476
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2477
+ &:hover {
2478
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2479
+ }
2480
+ `,sp=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l,stopRowClickPropagation:s})=>{const d=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",h=r!=null&&n!=null&&l!=null&&d!==!0;return t.jsxs(ip,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(et,{"data-testid":x("account-row-balance-actual",e),isClickable:h,onClick:u=>{s===!0&&u.stopPropagation(),h===!0&&r!=null&&n!=null&&l?.(r,n,pt(r,n))},children:Z(n)}):t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(et,{isClickable:!1,"data-testid":x("account-row-balance-forecast",e),children:Q(n)}),t.jsx(et,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?he(n):ue(n)})]}):null]})};function cp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:s,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:g,account:p,titleIndentExtraPx:f,horizontalTreeView:m,horizontalCollapse:y,onAccountBalanceClick:b}){const $=W(),{common:{strings:{hyphen:C}}}=I.getLocalizedStrings(),L=p?.accountDescription?p.accountDescription:C,v=p!=null&&Te(p)===!0||p?.accountName?p.accountName:L;return t.jsxs(ep,{height:r,bgColor:n,"data-testid":x("account-row-root-container",o),children:[t.jsxs(tp,{"data-testid":x("account-row-container",o),onClick:y!=null?()=>y.onRowClick():void 0,children:[pe(e)===!0?m!=null?t.jsx(op,{isSticky:i,windowSize:$,bgColor:n,containerHeight:r,isRowClickable:y!=null,isSubAccountLeaf:m.isLeaf,children:t.jsx(ap,{title:v,children:t.jsx(nn,{classAnscestorMetadata:[],collapsed:y!=null?!y.isOpen:!1,depth:m.treeDepth,displayName:v,hasChildren:m.hasChildren,hasSiblings:m.hasSiblings,isLastNode:m.isLastNode,isLeaf:m.isLeaf,noMarginForAccount:!1,subAccountAnscestorMetadata:m.subAccountAncestorMetadata})})}):t.jsx(rp,{isSticky:i,windowSize:$,bgColor:n,children:t.jsx(lp,{isClickable:!1,title:v,titleIndentExtraPx:f,children:v})}):null,be(e)===!0?t.jsx(np,{children:l.map((A,M)=>t.jsx(sp,{type:e,isActualVsForecastOn:s,compareMode:d,balance:A,account:p,stopRowClickPropagation:y!=null,onAccountBalanceClick:b==null?void 0:(P,E,T)=>{b(o,P,E,T)}},M))}):null]}),t.jsx(dp,{isScrolling:h,type:e,isLeaf:u,isLastNode:g})]})}function dp({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":pe(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(ke,{isScrolling:e,kind:o})}const hp=a.div`
2481
+ user-select: none;
2482
+ display: flex;
2483
+ flex: 1 1 auto;
2484
+ width: fit-content;
2485
+ min-width: 100%;
2486
+ height: ${e=>e.height}px;
2487
+ flex-flow: row;
2488
+ justify-content: flex-start;
2489
+ align-items: center;
2490
+ background-color: ${e=>e.bgColor?.hex()};
2491
+ `,up=a.div`
2492
+ display: flex;
2493
+ flex: 1 0 auto;
2494
+ flex-direction: row;
2495
+ justify-content: flex-end;
2496
+ `,Qn=a.div`
2497
+ display: flex;
2498
+ max-height: 54px;
2499
+ min-height: 54px;
2500
+ min-width: ${k.balanceWidthInPx}px;
2501
+ justify-content: center;
2502
+ align-items: center;
2503
+ background-color: ${e=>e.theme.colors.background};
2504
+ border: 1px solid ${e=>e.theme.colors.grey3};
2505
+ border-radius: ${c.sp2};
2506
+ margin-left: ${k.balanceLeftMarginInPx}px;
2507
+ color: ${e=>e.theme.colors.primary};
2508
+ `,pp=a.div`
2509
+ display: flex;
2510
+ flex-direction: row;
2511
+ align-items: center;
2512
+ justify-content: center;
2513
+ height: ${k.balanceHeight};
2514
+ max-width: ${k.balanceWidthInPx-2}px;
2515
+ width: ${k.balanceWidthInPx-2}px;
2516
+ min-width: 0;
2517
+ padding: 0 ${c.sp2};
2518
+ `,gp=a(S)`
2519
+ display: flex;
2520
+ user-select: none;
2521
+ flex-direction: row;
2522
+ justify-content: center;
2523
+ align-items: center;
2524
+ height: ${k.balanceHeight};
2525
+ max-width: ${k.balanceWidthInPx-2}px;
2526
+ width: ${k.balanceWidthInPx-2}px;
2527
+ text-align: center;
2528
+ overflow: hidden;
2529
+ text-overflow: ellipsis;
2530
+ white-space: nowrap;
2531
+ `,fp=a.div`
2532
+ height: 100%;
2533
+ display: inline-block;
2534
+ flex-direction: row;
2535
+ align-items: center;
2536
+ min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2537
+ color: ${e=>e.theme.colors.grey5};
2538
+ background-color: ${e=>e.bgColor?.hex()};
2539
+ border: 1px solid ${e=>e.bgColor?.hex()};
2540
+ ${({isSticky:e})=>e?N`
2541
+ position: -webkit-sticky;
2542
+ position: sticky;
2543
+ top: ${c.sp0};
2544
+ left: ${c.sp0};
2545
+ z-index: 20;
2546
+ `:null}
2547
+ `;function xp({text:e}){const n=ce();return t.jsx(pp,{children:t.jsx(Go,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function mp({type:e,backgroundColor:n,isSticky:i,height:o,classColumns:r}){const l=W();return t.jsxs(hp,{height:o,bgColor:n,children:[pe(e)===!0?t.jsx(fp,{"aria-hidden":!0,isSticky:i,windowSize:l,bgColor:n}):null,t.jsxs(up,{children:[r.map((s,d)=>t.jsx(Qn,{children:t.jsx(xp,{text:s.className})},s.classId??d)),t.jsx(Qn,{children:t.jsx(gp,{children:"Total"})},"total")]})]})}const wp=a.div`
2548
+ display: flex;
2549
+ flex: 1 1 auto;
2550
+ width: fit-content;
2551
+ min-width: 100%;
2552
+ flex-direction: column;
2553
+ height: ${e=>e.height}px;
2554
+ background-color: ${e=>e.bgColor?.hex()};
2555
+ `,yp=a.div`
2556
+ user-select: none;
2557
+ display: flex;
2558
+ flex: 1 1 auto;
2559
+ flex-flow: row;
2560
+ justify-content: flex-start;
2561
+ align-items: center;
2562
+ `,bp=a.div`
2563
+ display: flex;
2564
+ flex: 1 0 auto;
2565
+ flex-direction: row;
2566
+ justify-content: flex-end;
2567
+ `,kp=a.div`
2568
+ display: flex;
2569
+ flex-direction: row;
2570
+ justify-content: flex-start;
2571
+ `,tt=a(S)`
2572
+ user-select: none;
2573
+ max-width: ${k.balanceWidth};
2574
+ min-width: ${k.balanceWidth};
2575
+ text-align: right;
2576
+ margin-left: ${k.balanceLeftMargin};
2577
+ `,jp=a.div`
2578
+ display: flex;
2579
+ flex-direction: row;
2580
+ flex-shrink: 2;
2581
+ flex-grow: 1;
2582
+ align-items: center;
2583
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2584
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2585
+ background-color: ${e=>e.bgColor?.hex()};
2586
+ ${({isSticky:e})=>e?N`
2587
+ position: -webkit-sticky;
2588
+ position: sticky;
2589
+ top: ${c.sp0};
2590
+ left: ${c.sp0};
2591
+ z-index: 20;
2592
+ `:null}
2593
+ `,Cp=a.div`
2594
+ display: flex;
2595
+ flex-grow: 8;
2596
+ `,Sp=a(S)`
2597
+ user-select: none;
2598
+ user-select: none;
2599
+ clear: both;
2600
+ display: inline-block;
2601
+ overflow: hidden;
2602
+ white-space: nowrap;
2603
+ text-overflow: ellipsis;
2604
+ text-align: left;
2605
+ margin-left: ${c.sp2};
2606
+ `,$p=a(Ce)`
2607
+ display: flex;
2608
+ color: ${e=>e.theme.colors.primary};
2609
+ align-items: center;
2610
+ flex-direction: row;
2611
+ justify-content: flex-end;
2612
+ padding: 1px 6px;
2613
+ height: 20px;
2614
+ border: 1px solid ${e=>e.theme.colors.primary};
2615
+ border-radius: ${c.sp1};
2616
+ margin: 0 ${c.sp5} 0 ${c.sp3};
2617
+ `,vp=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(Do,{}):t.jsx(Ro,{}),_p=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(kp,{children:[re(e)===!0||o?t.jsx(tt,{style:{color:i},children:Z(n)}):t.jsx(tt,{style:{color:i},children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{style:{color:i},children:Q(n)}),t.jsx(tt,{style:{color:i},children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]});function Lp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:s,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:g,isScrolling:p,isOpen:f,isLeaf:m,metadata:y,showClassAccountNumber:b,onClick:$,depth:C}){const L=W(),v=ce(),A=!m,M=A?"pointer":"default",P=v.colors.primary,E=l.length>0?l.substr(0,1).toUpperCase():"",[T,Y]=z.useState(!1),q=y.classAncestorMetadata??[];return t.jsxs(wp,{"data-testid":x("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(yp,{"data-testid":x("class-row-container",o),style:{cursor:M},onClick:()=>$?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[pe(e)===!0?t.jsxs(jp,{isSticky:i,windowSize:L,bgColor:n,children:[t.jsx(pa,{name:l,ancestorMetadata:q,depth:C}),t.jsx(vp,{metadata:q[C],depth:C}),t.jsx(Se,{color:B(P),showCollapsedIcon:!f,showIcon:T&&A,firstLetter:E,showTreeLine:g}),t.jsx(Cp,{children:t.jsx(Sp,{style:{color:P},children:l})}),T===!0&&b===!0&&s!==void 0&&t.jsx($p,{children:s})]}):null,be(e)===!0?t.jsx(bp,{children:d.map((ae,X)=>t.jsx(_p,{type:e,sectionName:l,balance:ae,isActualVsForecastOn:h,compareMode:u,color:P},X))}):null]}),t.jsx(Ap,{isScrolling:p,isLeaf:m,isOpen:f})]})}function Ap({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Bp=a.div`
2618
+ display: flex;
2619
+ flex: 1 1 auto;
2620
+ width: fit-content;
2621
+ min-width: 100%;
2622
+ flex-direction: column;
2623
+ height: ${e=>e.height}px;
2624
+ background-color: ${e=>e.bgColor?.hex()};
2625
+ `,Ip=a.div`
2626
+ user-select: none;
2627
+ display: flex;
2628
+ flex: 1 1 auto;
2629
+ flex-flow: row;
2630
+ justify-content: flex-start;
2631
+ align-items: center;
2632
+ `,Wp=a.div`
2633
+ display: flex;
2634
+ flex: 1 0 auto;
2635
+ flex-direction: row;
2636
+ justify-content: flex-end;
2637
+ `,Op=a.div`
2638
+ display: flex;
2639
+ flex-direction: row;
2640
+ justify-content: flex-start;
2641
+ `,nt=a(S)`
2642
+ user-select: none;
2643
+ max-width: ${k.balanceWidth};
2644
+ min-width: ${k.balanceWidth};
2645
+ text-align: right;
2646
+ margin-left: ${k.balanceLeftMargin};
2647
+ `,Mp=a.div`
2648
+ display: flex;
2649
+ flex-direction: row;
2650
+ flex-shrink: 2;
2651
+ flex-grow: 1;
2652
+ align-items: center;
2653
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2654
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2655
+ background-color: ${e=>e.bgColor?.hex()};
2656
+ ${({isSticky:e})=>e?N`
2657
+ position: -webkit-sticky;
2658
+ position: sticky;
2659
+ top: ${c.sp0};
2660
+ left: ${c.sp0};
2661
+ z-index: 20;
2662
+ `:null}
2663
+ `,Np=a(S)`
2664
+ user-select: none;
2665
+ user-select: none;
2666
+ clear: both;
2667
+ display: inline-block;
2668
+ overflow: hidden;
2669
+ white-space: nowrap;
2670
+ text-overflow: ellipsis;
2671
+ text-align: left;
2672
+ margin-left: ${c.sp2};
2673
+ `,Pp=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(Op,{children:[re(e)===!0||o?t.jsx(nt,{style:{color:i},children:Z(n)}):t.jsx(nt,{style:{color:i},children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(nt,{style:{color:i},children:Q(n)}),t.jsx(nt,{style:{color:i},children:r==="compare_mode_percent"?he(n):ue(n)})]}):null]});function wn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:s,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:g,isOpen:p,isLeaf:f,onClick:m}){const y=W(),b=!f,$=b?"pointer":"default",C=l.length>0?l.substring(0,1).toUpperCase():"",[L,v]=z.useState(!1);return t.jsxs(Bp,{"data-testid":x("section-row",o),height:r,bgColor:n,children:[t.jsxs(Ip,{"data-testid":x("section-row-container",o),style:{cursor:$},onClick:()=>m?.(o),onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1),children:[pe(e)===!0?t.jsxs(Mp,{isSticky:i,windowSize:y,bgColor:n,children:[t.jsx(Se,{color:B(u),showCollapsedIcon:!p,showIcon:L&&b,firstLetter:C}),t.jsx(Np,{style:{color:u},children:l})," "]}):null,be(e)===!0?t.jsx(Wp,{children:s.map((A,M)=>t.jsx(Pp,{type:e,sectionName:l,balance:A,isActualVsForecastOn:d,compareMode:h,color:u},M))}):null]}),t.jsx(zp,{isScrolling:g,isLeaf:f,isOpen:p})]})}function zp({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Fp=a.div`
2674
+ display: flex;
2675
+ flex: 1 1 auto;
2676
+ width: fit-content;
2677
+ min-width: 100%;
2678
+ flex-direction: column;
2679
+ height: ${e=>e.height-1}px;
2680
+ background-color: ${e=>e.bgColor?.hex()};
2681
+ `,Tp=a.div`
2682
+ user-select: none;
2683
+ display: flex;
2684
+ flex: 1 1 auto;
2685
+ flex-flow: row;
2686
+ justify-content: flex-start;
2687
+ align-items: center;
2688
+ `,Vp=a.div`
2689
+ display: flex;
2690
+ flex: 1 0 auto;
2691
+ flex-direction: row;
2692
+ justify-content: flex-end;
2693
+
2694
+ .field-thread-wrapper {
2695
+ --ft-icon-right: -28px;
2696
+ --ft-icon-top: -6px;
2697
+
2698
+ outline: none;
2699
+ overflow: visible;
2700
+ z-index: 0;
2701
+
2702
+ .active-thread-count {
2703
+ z-index: 4;
2704
+ pointer-events: auto;
2705
+ }
2706
+
2707
+ &::after {
2708
+ content: "";
2709
+ position: absolute;
2710
+ top: -${c.sp2};
2711
+ right: -36px;
2712
+ width: 36px;
2713
+ height: calc(100% + ${c.sp3});
2714
+ z-index: 3;
2715
+ pointer-events: auto;
2716
+ }
2717
+ }
2718
+
2719
+ .field-thread-wrapper:hover,
2720
+ .field-thread-wrapper:focus-within {
2721
+ outline: none;
2722
+ z-index: 5;
2723
+ }
2724
+ `,Dp=a.div`
2725
+ display: flex;
2726
+ flex-direction: row;
2727
+ justify-content: flex-start;
2728
+ `,it=a(S)`
2729
+ user-select: none;
2730
+ min-width: ${k.balanceWidth};
2731
+ max-width: ${k.balanceWidth};
2732
+ text-align: right;
2733
+ margin-left: ${k.balanceLeftMargin};
2734
+ color: ${e=>e.theme.colors.hero};
2735
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2736
+ &:hover {
2737
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2738
+ }
2739
+ `,Rp=a.div`
2740
+ display: flex;
2741
+ flex-direction: row;
2742
+ flex-shrink: 2;
2743
+ flex-grow: 1;
2744
+ align-items: center;
2745
+ height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
2746
+ // because the height of the svg is much larger
2747
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2748
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2749
+ background-color: ${e=>e.bgColor?.hex()};
2750
+ color: ${e=>e.theme.colors.hero};
2751
+
2752
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2753
+ &:hover {
2754
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2755
+ }
2756
+ ${({isSticky:e})=>e?N`
2757
+ position: -webkit-sticky;
2758
+ position: sticky;
2759
+ top: ${c.sp0};
2760
+ left: ${c.sp0};
2761
+ z-index: 20;
2762
+ `:null}
2763
+ `,Gp=a(S)`
2764
+ user-select: none;
2765
+ clear: both;
2766
+ display: inline-block;
2767
+ text-align: left;
2768
+ `,Ep=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,reportId:s,companyId:d,companyName:h,isCommentingEnabled:u,isForecastReport:g,onAccountBalanceClick:p})=>{const f=n!=null?nr(n?.type):!1,m=r!=null&&n!=null&&p!=null&&f!==!0,y=l===!0?hi(n):Z(n),b=l===!0?Lt(n):Q(n),$=l===!0?ui(n):he(n),C=l===!0?pi(n):ue(n),L=To(r?.accountId,n),v=Yo({type:"details",key:s}),A=t.jsxs(Dp,{"data-testid":x("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(it,{"data-testid":x("account-row-balance-actual",e),isClickable:m,onClick:P=>{P.stopPropagation(),m===!0&&r!=null&&n!=null&&p?.(r,n,pt(r,n))},children:y}):t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:b}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{"data-testid":x("account-row-balance-forecast",e),isClickable:!1,children:b}),t.jsx(it,{"data-testid":x("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?$:C})]}):null]});if(!u||L==null||!d)return A;const M=g?"forecast_report":"standard_report";return t.jsx(Vo,{isThreadAllowed:!0,dashboardTabKey:v,roomId:`dashboard_${d}`,companyId:d,companyName:h,entityId:L,dashboardOptionType:M,filterMetaData:{companyId:d,tab:M,entityType:`${M}.${v}`,entityId:L},children:A})},{common:{strings:{empty:Hp,plus:Kp}}}=I.getLocalizedStrings();function Yp({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:s,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:g,noMarginForAccount:p,isLeaf:f,isOpen:m,isLastNode:y,account:b,reportId:$,onAccountBalanceClick:C,onClick:L}){const v=W(),A=Ht(),M=A?.currentTenant?.companyId??"",P=A?.currentTenant?.companyName??"",E=typeof $=="string"&&$.includes(Kp),{useFeatureGate:T}=Mo(),{isFeatureEnabled:Y}=T(No.isReportsCommentingEnabled),q=Y,ae=b!=null?b.id.length-1:0,X=b?.hasSiblings??!1,de=b!=null?b.children.length!==0:!1,me=u,le=b?.account.accountDescription?b.account.accountDescription:Hp,J=b?.account.accountName?b.account.accountName:le;return t.jsxs(Fp,{"data-testid":x("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(Tp,{"data-testid":x("sub-account-row-container",o),onClick:()=>L?.(o),children:[t.jsx(Rp,{isClickable:de,isSticky:i,windowSize:v,bgColor:n,containerHeight:r,children:t.jsx(Gp,{title:J,children:t.jsx(nn,{displayName:J,depth:ae,classDepth:l,isLastNode:y,hasChildren:de,hasSiblings:X,isLeaf:f,collapsed:!m,subAccountAnscestorMetadata:me.subAccountAncestorMetadata,classAnscestorMetadata:me.classAncestorMetadata??[],noMarginForAccount:p})})}),be(e)===!0?t.jsx(Vp,{children:s.map((we,$e)=>t.jsx(Ep,{type:e,isActualVsForecastOn:d,compareMode:h,balance:we,account:b?.account,showTotal:!m,reportId:$,companyId:M,companyName:P,isCommentingEnabled:q,isForecastReport:E,onAccountBalanceClick:C==null?void 0:(ye,ve,ge)=>{C(o,ye,ve,ge)}},$e))}):null]}),t.jsx(Up,{isScrolling:g,isLeaf:f,isOpen:m,depth:ae,isSticky:i,classDepth:l,noMarginForAccount:p})]})}function Up({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:s}){return!i||o===!0?t.jsx(ke,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:s}}):null}const Zp=[10,14,20,20,20],qp=a.div`
2769
+ display: flex;
2770
+ flex: 1 1 auto;
2771
+ width: fit-content;
2772
+ min-width: 100%;
2773
+ flex-direction: column;
2774
+ height: ${e=>e.height-1}px;
2775
+ background-color: ${e=>e.bgColor?.hex()};
2776
+ `,Xp=a.div`
2777
+ user-select: none;
2778
+ display: flex;
2779
+ flex: 1 1 auto;
2780
+ flex-flow: row;
2781
+ justify-content: flex-start;
2782
+ align-items: center;
2783
+ `,Qp=a.div`
2784
+ width: ${e=>gi.emptyLeftContainer.valuePx(e.windowSize)};
2785
+ height: ${c.sp1};
2786
+ `,Jp=a.div`
2787
+ display: flex;
2788
+ flex: 1 0 auto;
2789
+ flex-direction: row;
2790
+ justify-content: flex-end;
2791
+ `,eg=a.div`
2792
+ display: flex;
2793
+ flex-direction: row;
2794
+ justify-content: flex-start;
2795
+ `,ot=a(S)`
2796
+ user-select: none;
2797
+ min-width: ${k.balanceWidth};
2798
+ max-width: ${k.balanceWidth};
2799
+ text-align: right;
2800
+ margin-left: ${k.balanceLeftMargin};
2801
+ color: ${e=>e.theme.colors.primary};
2802
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2803
+ `,tg=a.div`
2804
+ display: flex;
2805
+ flex-direction: row;
2806
+ flex-shrink: 2;
2807
+ flex-grow: 1;
2808
+ align-items: center;
2809
+ height: ${e=>e.containerHeight-1}px;
2810
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2811
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2812
+ background-color: ${e=>e.bgColor?.hex()};
2813
+ ${({isSticky:e})=>e?N`
2814
+ position: -webkit-sticky;
2815
+ position: sticky;
2816
+ top: ${c.sp0};
2817
+ left: ${c.sp0};
2818
+ z-index: 20;
2819
+ `:null}
2820
+ `,ng=a(S)`
2821
+ user-select: none;
2822
+ clear: both;
2823
+ display: inline-block;
2824
+ overflow: hidden;
2825
+ white-space: nowrap;
2826
+ text-overflow: ellipsis;
2827
+ text-align: left;
2828
+ margin-left: ${e=>Zp[e.depth]}px;
2829
+ color: ${e=>e.theme.colors.primary};
2830
+ width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
2831
+ `,ig=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(eg,{"data-testid":x("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual",e),isClickable:!1,children:hi(n)}):t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Lt(n)}),t.jsx(ot,{"data-testid":x("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ui(n):pi(n)})]}):null]});function og({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:s,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:g,isScrolling:p,metadata:f}){const m=W(),y=I.getLocalizedStrings().reports.sections,b=d!=null?d.id.length-1:0,$=f;return t.jsxs(qp,{height:o,bgColor:n,children:[t.jsxs(Xp,{children:[t.jsxs(tg,{isSticky:i,windowSize:m,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(xi,{ancestorMetadata:$.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Qp,{windowSize:m}):null,t.jsx(mi,{ancestorMetadata:$.subAccountAncestorMetadata,depth:b,name:l}),t.jsx(ng,{"data-testid":x("sub-account-row-name",e),isClickable:!1,title:l,depth:b,windowSize:m,children:y.totalPrefix+" "+l})]}),be(e)===!0?t.jsx(Jp,{children:s.map((C,L)=>t.jsx(ig,{type:e,isActualVsForecastOn:u,compareMode:g,balance:C},L))}):null]}),t.jsx(rg,{isScrolling:p,nestingLevel:b,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function rg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(ke,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const ag=a.div`
2832
+ user-select: none;
2833
+ display: flex;
2834
+ flex: 1 1 auto;
2835
+ width: fit-content;
2836
+ min-width: 100%;
2837
+ height: ${e=>e.height}px;
2838
+ flex-flow: row;
2839
+ justify-content: flex-start;
2840
+ align-items: center;
2841
+ background-color: ${e=>e.bgColor?.hex()};
2842
+ `,lg=a.div`
2843
+ display: flex;
2844
+ flex: 1 0 auto;
2845
+ flex-direction: row;
2846
+ justify-content: flex-end;
2847
+ `,Ve=k.balanceWidthInPx+k.balanceLeftMarginInPx,yo=a.div`
2848
+ display: flex;
2849
+ max-height: 54px;
2850
+ min-height: 54px;
2851
+ min-width: ${e=>e.isActualVsForecastOn?3*(Ve-2)-k.balanceLeftMarginInPx:k.balanceWidthInPx}px;
2852
+ justify-content: center;
2853
+ align-items: center;
2854
+ background-color: ${e=>e.theme.colors.background};
2855
+ border: 1px solid ${e=>e.theme.colors.grey3};
2856
+ border-radius: ${c.sp2};
2857
+ margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
2858
+ color: ${e=>e.theme.colors.primary};
2859
+ `,bo=a(S)`
2860
+ display: flex;
2861
+ user-select: none;
2862
+ flex-direction: row;
2863
+ justify-content: center;
2864
+ align-items: center;
2865
+ height: ${k.balanceHeight};
2866
+ max-width: ${k.balanceWidthInPx-2}px;
2867
+ width: 138px;
2868
+ text-align: center;
2869
+ `,sg=a.div`
2870
+ height: 100%;
2871
+ display: inline-block;
2872
+ flex-direction: row;
2873
+ align-items: center;
2874
+ min-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2875
+ color: ${e=>e.theme.colors.grey5};
2876
+ background-color: ${e=>e.bgColor?.hex()};
2877
+ border: 1px solid ${e=>e.bgColor?.hex()};
2878
+ ${({isSticky:e})=>e?N`
2879
+ position: -webkit-sticky;
2880
+ position: sticky;
2881
+ top: ${c.sp0};
2882
+ left: ${c.sp0};
2883
+ z-index: 20;
2884
+ `:null}
2885
+ `,cg=a.div`
2886
+ display: flex;
2887
+ width: ${e=>e.isActualVsForecastOn?3*Ve:Ve}px;
2888
+ flex-direction: row;
2889
+ justify-content: flex-start;
2890
+ color: ${e=>e.theme.colors.champion};
2891
+ `,_t=a(S)`
2892
+ display: flex;
2893
+ justify-content: flex-end;
2894
+ align-items: center;
2895
+ height: ${k.balanceHeight};
2896
+ width: ${k.balanceWidth};
2897
+ min-width: ${k.balanceWidth};
2898
+ margin-left: ${k.balanceLeftMargin};
2899
+ margin-top: ${c.sp3};
2900
+ `,dg=a.div`
2901
+ display: flex;
2902
+ max-height: 54px;
2903
+ min-height: 54px;
2904
+ justify-content: center;
2905
+ align-items: center;
2906
+ color: ${e=>e.theme.colors.champion};
2907
+ `,hg=a.div``,ug=a(S)`
2908
+ display: flex;
2909
+ justify-content: center;
2910
+ align-items: center;
2911
+ max-height: 54px;
2912
+ min-height: 54px;
2913
+ background-color: ${e=>e.theme.colors.background};
2914
+ border: 1px solid ${e=>e.theme.colors.grey3};
2915
+ border-radius: ${c.sp2};
2916
+ margin-left: ${k.balanceLeftMarginInPx}px;
2917
+ color: ${e=>e.theme.colors.primary};
2918
+ width: ${k.balanceWidth};
2919
+ min-width: ${k.balanceWidth};
2920
+ `,pg=a.div`
2921
+ display: flex;
2922
+ width: ${e=>e.isActualVsForecastOn?3*Ve:Ve}px;
2923
+ flex-direction: column;
2924
+ align-items: flex-end;
2925
+ `,gg=a.div`
2926
+ max-height: 54px;
2927
+ min-height: 54px;
2928
+ `,ko=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=I.getLocalizedStrings().reports,s=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?di(i,e,n,r,o):void 0,d=s!=null?s==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=oo(s,i);return t.jsx(gg,{children:r!=null&&o!=null&&s!=null&&d!=null&&h!=null?t.jsx(io,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:s}):t.jsx(yo,{isActualVsForecastOn:!1,children:t.jsx(bo,{children:Ee(e,n,i)})})})},fg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:s,onCompareModeChanged:d})=>{const h=I.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(pg,{isActualVsForecastOn:o,children:[t.jsx(yo,{isActualVsForecastOn:o,children:t.jsx(bo,{children:Ee(e,n,i)})}),t.jsxs(cg,{isActualVsForecastOn:o,children:[t.jsx(_t,{children:h.actual}),t.jsx(_t,{children:h.forecast}),t.jsx(_t,{children:t.jsx(gn,{title:u,titleTextStyle:Yt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(ko,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:s})},xg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:s})=>{const d=ce(),h=o==="compare_mode_amount"?`${I.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:I.getLocalizedStrings().compareMode.changePercent;return t.jsx(dg,{children:n.map((u,g)=>t.jsx(z.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(ug,{children:t.jsx(gn,{title:h,titleTextStyle:Yt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:p=>{p!=="off"&&(p==="compare_mode_amount"||p==="compare_mode_percent"?s?.(p):console.warn("Invalid compare mode option"))}})}):t.jsx(hg,{children:t.jsx(ko,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},g)})},g))})};function mg({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}){const m=W();return t.jsxs(ag,{height:o,bgColor:n,children:[pe(e)===!0?t.jsx(sg,{isSticky:i,windowSize:m,bgColor:n,children:" . "}):null,t.jsx(lg,{children:l===!0?t.jsx(xg,{firstMonthOfFY:s,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f}):h.map((y,b)=>t.jsx(fg,{firstMonthOfFY:s,timeframeTick:y,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:p,onCompareModeChanged:f},b))})]})}const yt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const f=i.element.data,m=Te(f)===!0?f.horizontalTreeView:void 0,y=Te(f)===!0&&m==null?Math.max(0,f.depth-2)*16:void 0,b=Re(i.config.reportId)===!0||li(i.config.reportId)===!0?Gi("no_filter",i.config.filterAccountsWithNilBalances):dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),$=te(b.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),C=m!=null&&m.hasChildren&&p!=null?{isOpen:u,onRowClick:()=>p(e)}:void 0;return t.jsx(cp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:$.balances,isScrolling:s,isLeaf:d,isLastNode:h,account:f,titleIndentExtraPx:y,horizontalTreeView:m,horizontalCollapse:C,onAccountBalanceClick:p==null?void 0:(L,v,A,M)=>{p?.(L,v,A,M)}})},Ke=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,m=mn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=go(m.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),b=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,$=i.config.reportId==="operating_expenses";return t.jsx(Yp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:b,compareMode:g,accountBalances:y.balances,isScrolling:s,isLeaf:d,isOpen:h,isLastNode:u,account:f,reportId:i.config.reportId,metadata:i.element.metadata,onClick:p,noMarginForAccount:$,onAccountBalanceClick:p==null?void 0:(C,L,v,A)=>{p?.(C,L,v,A)}})},bt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,m=dt(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Ru,{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:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},yn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,m=mn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),y=te(m.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Qu,{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:g,accountGroupBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},bn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kt=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},kn=(e,n,i,o,r,l,s,d,h,u,g,p)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Vt(i.element.title),m=i.element.data,y=te(m,i.config.displayOrder,i.element.numOfBalances);return t.jsx(wn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,isLastNode:u,onClick:b=>{p?.(b)}})},Ye=(e,n,i,o,r,l,s,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=mn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),p=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=go(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),m=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(og,{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:s,isLastNode:d,metadata:n.element.metadata,classDepth:p})},Ue=(e,n,i,o,r,l,s,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=He(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",g=h.map(p=>Ge(p));return t.jsx(mg,{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"&&g.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:s,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},wg=(e,n,i,o,r,l)=>{if(i.element.kind!=="class_headers")return null;const s=i.element.data;return t.jsx(mp,{isSticky:l,type:n,height:o,backgroundColor:r,classColumns:s})},jo=(e,n,i,o,r,l,s,d,h,u,g,p,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const m=i.element.data,y=te(m.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),b=g>1;return t.jsx(Lp,{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:p,sectionBalances:y.balances,isScrolling:s,isOpen:d,isLeaf:h,hasChildren:m.children.length>0,isLastNode:u,isSubClass:b,showClassAccountNumber:i.config.showClassAccountNumber,onClick:$=>{f?.($)},metadata:i.element.metadata})},yg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Ei,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),bg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ki,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Jn=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:s,nestingLevel:d,isFirstNode:h},isOpen:u,style:g,setOpen:p,isScrolling:f}=e,m=($,C,L,v)=>{const A=l?u:!u;!l&&L==null&&(p(!u),e.onNodeCollapseToggled?.($,!u)),e.onNodeClick?.($,A,C,L,v)},y=e.treeNodePadding?.left,b=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:y,paddingRight:b},children:t.jsx(Co,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:s,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)})},Co=e=>e.treeKind==="name_only"?t.jsx(vg,{...e}):Qt(e.reportElementData.config.reportId)?t.jsx(Lg,{...e}):en(e.reportElementData.config.reportId)===!0?t.jsx(_g,{...e}):li(e.reportElementData.config.reportId)===!0?t.jsx(kg,{...e}):qt(e.reportElementData.config.reportId)===!0?t.jsx(jg,{...e}):Re(e.reportElementData.config.reportId)===!0?t.jsx(Cg,{...e}):Xt(e.reportElementData.config.reportId)===!0?t.jsx(Sg,{...e}):tr(e.reportElementData.config.reportId)===!0?t.jsx($g,{...e}):tn(e.reportElementData.config.reportId)===!0?t.jsx(Ag,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(Bg,{...e}):null,kg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return bn(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return kn(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return null;case"class_headers":return wg(e,n,i,o,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,p,f);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,p);case"headers_loading_in_progress":return bg(i,o,r);case"loading_in_progress":return yg(i,o,r);default:return null}},jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return kn(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return null;case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);default:return null}},Cg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:g,compareMode:p,nodeClickHandler:f,onCompareModeChanged:m})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,p,f);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,p,f);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,p,f);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,p,f);case"calculated_section":case"calculated_section_type1":return qi(e,n,i,o,r,l,s,u,d,h,p,f);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,p,f);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,p,m);case"class":return jo(e,n,i,o,r,l,s,u,d,h,g,p,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,p,f);case"total":return Xi(e,n,i,o,r,l,p,d);case"headers_loading_in_progress":return nc(i,o,r);case"loading_in_progress":return tc(i,o,r);default:return null}},Sg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Qs(e,n,i,o,r,l,s,d,h,g,p);case"ac_group_report":return Js(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return Zi(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return ec(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":case"calculated_section_type1":return qi(e,n,i,o,r,l,s,u,d,h,g,p);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,g,p);case"total":return Xi(e,n,i,o,r,l,g,d);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);default:return null}},$g=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,compareMode:g,nodeClickHandler:p,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return yt(e,n,i,o,r,l,s,d,h,u,g,p);case"ac_group_report":return bt(e,n,i,o,r,l,s,u,d,h,g,p);case"section":return bn(e,n,i,o,r,l,s,u,d,h,g,p);case"section_with_ac_only":return kt(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section":return kn(e,n,i,o,r,l,s,u,d,h,g,p);case"calculated_section_type1":return Dl(e,i,o,r,l,s,h);case"title_string_only":return sn(e,n,i,o,r,l,s,u,d,h,g,p);case"ac_subentity_total":return Ye(n,i,o,r,l,s,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ue(e,n,i,o,r,l,g,f);case"ac_subaccount":return Ke(e,n,i,o,r,l,s,d,u,h,g,p);case"ac_group_subaccount":return yn(e,n,i,o,r,l,s,u,d,h,g,p);default:return null}},vg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:g})=>{switch(i.element.kind){case"checkbox_and_name_only":return uh(e,n,i,o,r,l,s,u,d,h,g);default:return null}},_g=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:s,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return vu(i,o,r,l);case"timeframe_headers":return Cu(i,o,l,h,r,u);case"total":return Su(e,n,i,o,l,s,r);case"vendor_row":return $u(n,i,o,r,l,s,d);case"title_string_only":return _u(i,o,r,l);default:return null}},Lg=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:s,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:g}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return el(i,o,h,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return il(n,i,o,h,l);case"aging_report_row":return tl(e,i,o,r,l,d,s,h,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return nl(i,o,l,s,h);default:return null}},Ag=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:s,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:p,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Qd(e,n,o,r,l,s,d,f,g);case"flux_vendor_row":return Jd(e,n,o,r,l,u,s,d,h,f,p);case"section":return eh(e,n,i,o,r,l,u,s,d,p);case"timeframe_headers":return th(n,i,r);case"total":return nh(n,i);case"loading_in_progress":return ih(n);case"headers_loading_in_progress":return oh(n);default:return null}},Bg=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return ta(e,i);case"loading_in_progress":return ea();case"total":return na(e,n,i);case"section":return Jr();case"title_string_only":return ia(e,n);case"ac_group_report":return oa(e,n,o);default:return null}};function ei(e,n,i,o){const r=e.reportElementData.element.data,l=e.reportElementData.config.reportId==="profit_and_loss_by_classes"&&e.reportElementData.element.kind==="ac_report"&&e.children.length>0&&Te(r)===!0?!0:void 0;return{data:{defaultHeight:jn(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??l??Ig(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 jn(e,n,i){return qt(e)===!0?ra(n):Xt(e)===!0||Re(e)===!0?us(n):Qt(e)?ma(n):Jt(e)?ct(n):en(e)?ph(n):tn(e)?Ji(n,i):kl(n)}function Ig(e,n,i,o){return qt(e)?aa(n,o,i):Xt(e)||Re(e)===!0?ps(n,o):Qt(e)?wa():en(e)?gh():tn(e)?gc(n):Jt(e)?or():jl(n,o)}const Wg=a.div`
2929
+ top: 0;
2930
+ left: 0;
2931
+ position: sticky !important;
2932
+ position: -webkit-sticky !important;
2933
+ min-height: ${e=>e.heightValue}px;
2934
+ max-height: ${e=>e.heightValue}px;
2935
+ width: fit-content;
2936
+ min-width: 100%;
2937
+ z-index: 2;
2938
+ display: flex;
2939
+ flex-direction: column;
2940
+ align-items: center;
2941
+ background-color: ${e=>e.bgColor?.hex()};
2942
+ box-sizing: border-box;
2943
+ `;function Og({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:s}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Wg,{heightValue:e,bgColor:n,"data-testid":x("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(Co,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:jn(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:s},d.id))}))}const Mg=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield ei(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 ei(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},So=z.createContext(void 0);function Ng({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:s,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:p,variableNodeHeightTree:f,onNodeClick:m,onCompareModeChanged:y,scrollPosition:b,onScroll:$,nodeOpenStatus:C,onNodeCollapseToggled:L,onTreeInnerElementHeightChanged:v,onToggleCheck:A,hoveredParentIdProps:M}){const P=z.useRef(null),E=z.useRef(null),T=Sn(f?.prevFetchState),Y=Sn(f?.prevRefreshFetchState),[q,ae]=z.useState(0),X=g??E,de=u??P,me=W(),[le,J]=z.useState(void 0),[we,$e]=z.useState(!1),[ye,ve]=z.useState(C),ge=(F,ne)=>{ve(Object.assign({},ye,{[F]:ne})),L?.(F,ne)},fe=F=>{if(i.contentNodes.length>0)if(Object.keys(F).length>0){const ne={};Object.keys(F).forEach(je=>{ne[je]={open:F[je]}}),de?.current?.recomputeTree(ne)}else{const ne=i.contentNodes[0].id;de?.current?.recomputeTree({[ne]:{open:!0}})}};z.useLayoutEffect(()=>{if((!$n(b,le)||le==null)&&X.current!=null){const F=b?.scrollLeft==null?me==="small"?0:X.current.scrollWidth:b?.scrollLeft;if(b!=null){const ne={scrollTop:b.scrollTop,scrollLeft:F};J(ne),F!==b?.scrollLeft&&$?.(ne)}X.current.scroll({left:F,top:b?.scrollTop})}},[b]),z.useEffect(()=>{$n(C,ye)||(ve(C),fe(C))},[C]),z.useEffect(()=>{const F=X.current,ne=Io(()=>{if(F!=null&&(le==null||F.scrollLeft!==le.scrollLeft||F.scrollTop!==le.scrollTop)){const je={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};J(je),$?.(je)}},50);return F?.addEventListener("scroll",ne),()=>{F?.removeEventListener("scroll",ne)}},[X,le,$]),z.useEffect(()=>{if(i.contentNodes.length>0){fe(ye);const F=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==we&&$e(F)}},[we,$e,i,de,X]),z.useEffect(()=>{(f!=null&&T==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),ae(q+1))},[q,f?.fetchState,f?.isSortApplied,T,Y,f]);const Be=z.useRef(),[$o,vo]=z.useState(void 0),_o=()=>{const F=Be.current;F!=null&&F.clientHeight>0&&F.clientHeight!=$o&&(vo(F.clientHeight),v?.(F.clientHeight))},Cn=z.useCallback(Mg(n,i.contentNodes,ye),[n,i]),Lo={rootNodes:i,treeNodePadding:s,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:y};return t.jsx(So.Provider,{value:Lo,"data-testid":x("report-tree"),children:p==null?t.jsx(vn,{className:d,style:h,ref:de,innerRef:Be,outerRef:X,innerElementType:Tt,treeWalker:Cn,onItemsRendered:_o,height:e,width:"100%",children:F=>t.jsx(Jn,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:ge,compareMode:o,onCompareModeChanged:y,onToggleCheck:A})}):t.jsx(Wo,{isItemLoaded:p.isItemLoaded,itemCount:p.itemCount+1,loadMoreItems:p.loadMoreItems,children:({onItemsRendered:F,ref:ne})=>t.jsx(vn,{className:d,style:h,ref:ne,innerRef:Be,outerRef:X,innerElementType:Tt,treeWalker:Cn,onItemsRendered:F,height:e,width:"100%",children:je=>t.jsx(Jn,{...je,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:s,onNodeClick:m,onNodeCollapseToggled:ge,compareMode:o,onCompareModeChanged:y,onToggleCheck:A,hoveredParentIdProps:M})},q)})})}const Tt=z.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:s,backgroundColor:d,kind:h,isSticky:u,compareMode:g,onCompareModeChanged:p}=z.useContext(So),f=l.headerNodes.reduce(($,C)=>$+jn(C.reportElementData.config.reportId,C.reportElementData.element.kind,C.isFirstNode),0),m=s?.left,y=s?.right,b=c.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:m,paddingRight:y,marginBottom:b},...r,children:[t.jsx(Og,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:p}),i]})});Tt.displayName="stickyInnerElementType";const Pg=a.div`
2944
+ display: flex;
2945
+ flex: 1 0 auto;
2946
+ width: ${e=>e.width}px;
2947
+ height: ${e=>e.height}px;
2948
+ padding-left: ${e=>e.paddingLeft}px;
2949
+ background-color: ${e=>e.bgColor?.hex()};
2950
+
2951
+ & .content-scroll {
2952
+ overflow: auto;
2953
+ scrollbar-width: thin;
2954
+ scrollbar-color: transparent transparent;
2955
+ &::-webkit-scrollbar {
2956
+ width: ${c.sp2};
2957
+ height: ${c.sp2};
2958
+ background-color: transparent;
2959
+ }
2960
+ &::-webkit-scrollbar-thumb {
2961
+ background-color: transparent;
2962
+ }
2963
+
2964
+ &:hover {
2965
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
2966
+ &::-webkit-scrollbar {
2967
+ width: ${c.sp2};
2968
+ height: ${c.sp2};
2969
+ background-color: transparent;
2970
+ }
2971
+ &::-webkit-scrollbar-track {
2972
+ box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
2973
+ -webkit-box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
2974
+ background-color: transparent;
2975
+ }
2976
+ &::-webkit-scrollbar-thumb {
2977
+ background-color: ${e=>e.theme.colors.grey1};
2978
+ border-radius: 2px;
2979
+ }
2980
+ }
2981
+ }
2982
+ `;function Gg({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:s,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onReportTableHeightChanged:b,onToggleCheck:$,treeRef:C}){return t.jsx(Ao,{children:({height:L,width:v})=>t.jsx(Pg,{"data-testid":x("report-tree-container"),height:L,width:v,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Ng,{"data-testid":x("report-tree"),treeClassName:"content-scroll",height:L,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeRef:C,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:s==null?void 0:(A,M,P,E,T)=>{P!=null&&E!=null&&s(P,E,T)},onCompareModeChanged:g,scrollPosition:p,onScroll:f,nodeOpenStatus:m,onNodeCollapseToggled:y,onTreeInnerElementHeightChanged:b,onToggleCheck:$})})})}export{te as D,Z as J,Fe as N,Ee as Z,ic as a,dt as h,mn as j,un as m,Gg as n,Rg as t};