@zeniai/web-app-ui 4.14.28-qa → 4.14.29-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 (494) hide show
  1. package/dist/assets/{ACHDetailsPage-URcYg-_E-Cgyaw_bU.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-VILPvNCr-Cwwj6J5d.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
  3. package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-g_X840C3-qxu9MQ5W.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-C_ICPJ-z.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-CMDZeEvJ.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
  7. package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-BglIlica.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BMCgd2A5-jP1yYMeJ.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
  11. package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
  12. package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
  13. package/dist/assets/{AgingReportsPage-BL_aBNzL-BMEhVDXZ.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
  14. package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
  15. package/dist/assets/{AllUserItems-b0wgd0Wz-CZ891kMU.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
  16. package/dist/assets/{ApAgingDetailPage-CD2EkZkg-CoiRS4ai.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
  17. package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
  18. package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
  19. package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
  20. package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
  21. package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
  22. package/dist/assets/{AttachmentView-ENg9Osic-CFLP9uHu.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
  23. package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
  24. package/dist/assets/{BankAccountSection-oL-aN0I_-tuaETO0_.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
  25. package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
  26. package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-DAs4lJR2.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
  27. package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
  28. package/dist/assets/{BillPayApprovalRoutes-BHVZ8537.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-C9r_i-YB.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-C_BMrvHA.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
  31. package/dist/assets/{BillPayPromoPage-DQJAZi1a-BdT-embc.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-CTbVCMt9.js → BillPayRoutes-DqZf2rOO.js} +13 -13
  33. package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
  34. package/dist/assets/{BillingSettingsPage-Cfe4Vmza-13uWqRc_.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
  35. package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-ClMItAU3.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
  36. package/dist/assets/{BoxItem-CTEOx6Nh-BFlNqqzJ.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
  37. package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
  38. package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
  39. package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
  40. package/dist/assets/{CardNumberSubText-DijJqFXC-CsY-4Pix.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
  41. package/dist/assets/{CashbackDetailPage-BxIWU0z2-SGhDWItl.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
  42. package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-DiYand-n.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
  43. package/dist/assets/{ChargeCardListPage-CYhY6c52-By-D4GaU.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
  44. package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-mnUI1wBw.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
  46. package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-CnifKuME.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
  48. package/dist/assets/{ChargeCardSetupPage-C59WR7nm-B7_BDfgy.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
  49. package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-BSFQBDIJ.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
  50. package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
  51. package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
  52. package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-BohcManJ.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
  53. package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
  54. package/dist/assets/{CompanyPassportPage-DqhT6YL_-9fmBJGak.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
  55. package/dist/assets/{CompanyPassportScreen-CRe5P-th.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
  56. package/dist/assets/{CompleteProfile-DdA-FkwG-BiHuwAkX.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
  57. package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-KpARPyfe.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CODInbfe-DiFVD6Qj.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
  61. package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-Bhxy7Srv.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
  62. package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
  63. package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-DsKfu_6g.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
  64. package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-D-qu4kro.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
  67. package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-z5jUKu6P.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-MaxHOFlf.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
  70. package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
  71. package/dist/assets/{Dashboard-Cvmg-DzK-B4C3yfRb.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-C7bT-gmW-CnABTNc-.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
  73. package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-PqRgrLcG.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-Cnbh-hLO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
  77. package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
  78. package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
  79. package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
  80. package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
  81. package/dist/assets/{DrawerPage-DGuh6P-6-vbiOWCGQ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
  82. package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
  83. package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
  84. package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
  85. package/dist/assets/{EntityDetailPage-BbeHCNGS-D-w0bQjx.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
  86. package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
  87. package/dist/assets/{EntitySummarySection-BgjWn9vX-LOppYcen.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
  88. package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-DgccKeRs.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
  89. package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
  91. package/dist/assets/{ExpressPayPage-5VdASApP-Bbb90acR.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
  92. package/dist/assets/{FeaturePreviewPage-CA_fxOHn-lBAw00-n.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
  94. package/dist/assets/{FollowStepsSection-CTSjTKjT-CfO_mWmk.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
  95. package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
  96. package/dist/assets/{InformationCardStack-D_Z7Ebe0-CdzcV8l3.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
  97. package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
  98. package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-BkdxTWi0.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-D8dvELa5.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
  101. package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
  102. package/dist/assets/{InviteFormPage-C5mS-6c8-B0IN7EaK.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
  103. package/dist/assets/{InvitePageListView-Yj83_lDA-CRdOQu_U.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
  104. package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
  105. package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
  106. package/dist/assets/{IssueChargeCardPage-BIOTVOMR-v1cJqLjo.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
  107. package/dist/assets/{LabeledAddressValue-Bb1x9jR--BEbVa18t.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
  109. package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
  110. package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-COwPVYGE.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-Cy0xU_nR.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
  112. package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
  113. package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
  114. package/dist/assets/{LabeledEmailInputField-BOEHGgHy-BnfP78Li.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
  115. package/dist/assets/{LabeledNameField-DWKoivcI-CNclT5Xy.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
  116. package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-DEP7xmaE.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
  117. package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-BHV3CQzI.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
  119. package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-C0QgGm5O.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
  120. package/dist/assets/{LinkJETransactionPage-BbpybbwD-C4x4kUF5.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
  121. package/dist/assets/{LockCardPage-C0XjGES8-COA53Q9C.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
  122. package/dist/assets/{LowBalancePopup-CkO97HGX-roXJtnln.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
  123. package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-BGp-m3tE.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
  127. package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
  128. package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
  129. package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DeKkt3UA.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
  131. package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
  132. package/dist/assets/{MoreMenuButton-BWNCapgP-DzMadVuo.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
  133. package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-BgARv7Gs.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
  134. package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
  135. package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-TcUoiri6.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
  136. package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
  137. package/dist/assets/{NavigationArrow-CUPvxfZv-s1L-Z7hs.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
  138. package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-BZjrX0Tw.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
  140. package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
  141. package/dist/assets/{NoDataTable-D1v085Vv-WRE6ppwn.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
  142. package/dist/assets/{NotFoundPage-Bf-EPtU9-Dix88l92.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
  143. package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
  144. package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-DMc4wF7J.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
  146. package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
  147. package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
  148. package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
  149. package/dist/assets/{OverlayContainerPage-D4QU0p4o-DuZLyKjH.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
  150. package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
  151. package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-DY_xWf64.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
  153. package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
  154. package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
  155. package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
  156. package/dist/assets/{Preview-f_rz4qOg.js → Preview-C63MOKlS.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-Dx8bStwI-5WXVKcMh.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
  158. package/dist/assets/{PromoBaseCards-Bauxzwzt-CEuKIUTF.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
  159. package/dist/assets/{QBOConnectionDialog-COlHLDTh-CZNls81U.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-DHVNs-vu.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
  161. package/dist/assets/{QBOSetupSection-Cb4AlHU9-BwUUouj5.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
  162. package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-OE1Rk5kC.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C0xqudkd.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-DOok7S1u.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
  167. package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
  168. package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-BvbfNbzp.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
  169. package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
  170. package/dist/assets/{ReimbursementSetUpPage-CBKANstD-DthsR-eI.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
  171. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
  172. package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
  173. package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
  174. package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
  175. package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
  176. package/dist/assets/{RevenueChart-BHrj8Dy9-DkPntOZK.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
  177. package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
  178. package/dist/assets/{ReviewOverlay-Be_F1hd--DTVVFQpK.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
  179. package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BwfadKPa.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
  182. package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BVZeWx8N.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
  183. package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
  184. package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
  185. package/dist/assets/{SetUpAccountSection-ULABF-Md-6cmPJvyE.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
  186. package/dist/assets/{SettingsRoutes-_v8Kd5Pc.js → SettingsRoutes-CEWrZV9M.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-DwKZajDO.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
  188. package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
  189. package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
  190. package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
  191. package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
  192. package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
  193. package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
  194. package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
  195. package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
  196. package/dist/assets/{StatusSwitcher-CgzMvf5t-BwsAKxQf.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
  197. package/dist/assets/{SubTabSwitcher-gc5g6vV0-Cc389X5o.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
  198. package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
  199. package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
  200. package/dist/assets/{TaskDetailPage-Brq3l5Lm-CTeGSq5Z.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
  201. package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
  202. package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
  203. package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
  204. package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
  205. package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
  206. package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
  207. package/dist/assets/{TopExCard-CRxFMC50-DMFErWO2.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-D7dCJGpQ-CMGX79Ma.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
  209. package/dist/assets/{TransactionActivityLogPage-ByyxovGE-srnxYFyd.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
  210. package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
  212. package/dist/assets/{TransactionDetailScreen-Cf5V0oOT.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
  213. package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
  214. package/dist/assets/{TransactionListBig-BOKPby7d-DtBWL-yV.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
  215. package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-FXzof8yS.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CDApXn9_.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
  218. package/dist/assets/{TransferDrawerPage-B5ofYt0y-DEB7bAJ_.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
  219. package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
  220. package/dist/assets/{TreasuryPromoPage-ofZQDboF-9WAzeWsO.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
  221. package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-iwLPWGPo.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
  224. package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
  225. package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
  226. package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-O1FdgaEf.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-C44UiDRH-BgZ2EdVh.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
  228. package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
  229. package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
  230. package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-Dbr0vyn-.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
  231. package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
  232. package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BTWZ-u7c.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
  234. package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-DTnVoiG2.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-D6DinIAj-D7Ln9yoe.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
  238. package/dist/assets/{VendorsRoutes-DoHaVaFK.js → VendorsRoutes-Dh458IQK.js} +21 -21
  239. package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
  240. package/dist/assets/{VideoPlayer-BuOlZW0M-SyXdcn2w.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
  241. package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
  242. package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
  243. package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
  244. package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
  245. package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
  246. package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-DKlKFYZl.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
  247. package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
  248. package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CVuTGOWG.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
  249. package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
  250. package/dist/assets/{ZeniAvatar-CHmpyZc4-CgFMIt8E.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
  251. package/dist/assets/{ZeniCopyright-Cy7xQhak-XXB-MVSK.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker--Wk1Y9-b-ILzjIY8q.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
  253. package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
  254. package/dist/assets/{accountMappingHelper-B_bqtQmE.js → accountMappingHelper-CZHlLVR_.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-BJTVCmjO.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
  256. package/dist/assets/{analytics-BwviiuqB.js → analytics-CDQ7tGpV.js} +1 -1
  257. package/dist/assets/{analyticsHelper-MsboCQcB-BLnXrwhy.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
  258. package/dist/assets/{analyticsHelper-cKb29Ct6.js → analyticsHelper-jTnRtCKB.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BLBs8ugU.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BZd_9SiP.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-BFq-rVXj.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
  262. package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
  263. package/dist/assets/{calculateSize-DtEgyuiA-BxRureQo.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
  264. package/dist/assets/{chartTypes-BZL6U2-d-6ZTLkQO6.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-D86aDGgx.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
  266. package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
  267. package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
  268. package/dist/assets/{commonTypes-lunwFIdl-DX_CuL_U.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
  269. package/dist/assets/{core-tQbf9q8c.js → core-B0nKoasK.js} +3 -38
  270. package/dist/assets/{dash.all.min-BrwO-Juz.js → dash.all.min-CXMi5GlA.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-DvIz9TKf.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
  272. package/dist/assets/{dnd-C4z4yHh0.js → dnd-NNN-4w0O.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-DZNtiKOk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
  274. package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
  275. package/dist/assets/empty-CVZTZ-q9.js +1 -0
  276. package/dist/assets/{empty-D8sw2kbY.js → empty-DA-JSLu3.js} +1 -1
  277. package/dist/assets/epic-D0yDPv8O.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-CE5zJJJ0.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-DP-9tFF0.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-OTAmLtfp.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C1xtOjga.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-BLfSpPLa.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
  284. package/dist/assets/{helper-2Z01-P8G-4I-xsv8A.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
  285. package/dist/assets/{hyperlink-DQyCeXx2-B5DTBQjH.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
  286. package/dist/assets/{empty-OIMWR8Ju.js → index-BIjZljJR.js} +1 -1
  287. package/dist/assets/{index-BVjkKCLf.js → index-ByxsQZNo.js} +4237 -4301
  288. package/dist/assets/{index-14QtSMKx.js → index-CEBFS-eA.js} +1 -1
  289. package/dist/assets/{index-7BmdvSTY.js → index-CQJQXzZY.js} +1 -1
  290. package/dist/assets/{index-C4KA_rsP.js → index-DrsMeyfs.js} +2 -8
  291. package/dist/assets/index-zhMcpxMF.js +1 -0
  292. package/dist/assets/{lexical-Cxv_EhfG.js → lexical-Fl-AogKa.js} +1 -1
  293. package/dist/assets/{liveblocks-ClmZMiZG.js → liveblocks-DskTqGyX.js} +3 -8
  294. package/dist/assets/{lottie-C1jDoN6L.js → lottie-BzV8yd9z.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-D7gRkuwi.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
  301. package/dist/assets/{media-player-CixAJJd1.js → media-player-eLGyvMHZ.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-Bg567PNs.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
  303. package/dist/assets/{mui-Bjwhey0L.js → mui-40xepic5.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BjxkU9bj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-B63O8toS.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
  306. package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
  307. package/dist/assets/{pathToGoBack-C0-y9K8A.js → pathToGoBack-D0UTUGlT.js} +1 -1
  308. package/dist/assets/{pdf-DJ-oF9-h.js → pdf-A8jRKyoC.js} +3 -3
  309. package/dist/assets/{pdf-lib-CRmnAdOL.js → pdf-lib-mQnebn-k.js} +1 -1
  310. package/dist/assets/{plaid-CFQSLZ5I.js → plaid-cfgjTkr8.js} +1 -1
  311. package/dist/assets/{pusher-BBjghr5u.js → pusher-1O2fsDZq.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-D0C1Nxwy.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
  313. package/dist/assets/{react-2Ejhu-dV.js → react-BEcUyG01.js} +2 -12
  314. package/dist/assets/{react-By0Yo34B.js → react-BEctO-ia.js} +2 -12
  315. package/dist/assets/{react-BXiKrbq0.js → react-C6o6ScF5.js} +2 -12
  316. package/dist/assets/react-CQm7lU_-.js +19 -0
  317. package/dist/assets/{react-BV8b3CRD.js → react-CidUU4N9.js} +2 -12
  318. package/dist/assets/{react-C5-2CZ_j.js → react-D8s_m7Vn.js} +2 -12
  319. package/dist/assets/{react-BGKYEK8M.js → react-DcRcFJEU.js} +3 -13
  320. package/dist/assets/{react-CInUMAlk.js → react-QF7HiPHo.js} +2 -12
  321. package/dist/assets/{recharts-DxWcXnAv.js → recharts-Bbdho9Pi.js} +1 -1
  322. package/dist/assets/{routePaths-nQF_3DXR.js → routePaths-CpPoI1xs.js} +1 -1
  323. package/dist/assets/{sentry-Bsfq8iFp.js → sentry-COYnhuxW.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-BK5y8PC1.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-BMKkrJ-o.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
  327. package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-PFo9FUbu.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-BAh3h0-i.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-DEd9hnmz.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
  331. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
  332. package/dist/assets/{uploadAttachment-DtJo5Tp4-DeK-C7ju.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
  333. package/dist/assets/{uploadReceipts-Dge0cNF1-D7Fo4MnD.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
  334. package/dist/assets/{url-BaJJd1my.js → url-C27bOf0k.js} +1 -1
  335. package/dist/assets/{url-gf9VSr2b.js → url-XCmE-JaB.js} +1 -1
  336. package/dist/assets/{useDeviceId-C7oMV5vx.js → useDeviceId-UXlBHXyB.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-_KCebyG-.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-Ce0bTbAT.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
  340. package/dist/assets/{utils-BxRS7J8i.js → utils-DMEPgX6w.js} +7 -20
  341. package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
  342. package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
  343. package/dist/assets/{zeni-icon-only-CYgNDWlk.js → zeni-icon-only-BkUYNged.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/dist/service-worker.js +16 -8
  346. package/package.json +4 -4
  347. package/dist/assets/AccountInfoPage-BTogpO7M-D_v0KOJI.js +0 -18
  348. package/dist/assets/AccountRow-Zjkju8uM-CGaR_v-A.js +0 -298
  349. package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-e2c4M17b.js +0 -6
  350. package/dist/assets/AddressRoutes-zoF4RBjS.js +0 -1
  351. package/dist/assets/AddressScreen-BGSyJ4PZ.js +0 -9
  352. package/dist/assets/AiCfoScreen-CFoKGkjU.js +0 -11
  353. package/dist/assets/AppBasePage-BM1NMPdI-CHojPGrn.js +0 -71
  354. package/dist/assets/AppDrawerContent-XR9dBd-C-BWr9bkjA.js +0 -92
  355. package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-YLoMFZPp.js +0 -47
  356. package/dist/assets/ArAgingChart-DePiNxcV-Byuo2Avb.js +0 -24
  357. package/dist/assets/ArAgingDetailPage-DiJ6PePf-_AIaQwgF.js +0 -46
  358. package/dist/assets/BankAccountWarningSection-CtRFcHTv-DFmiiX69.js +0 -51
  359. package/dist/assets/BillDetailPage-CPxVWXx6-C9i2mOHw.js +0 -266
  360. package/dist/assets/BillPaySetUpPage-BVOLWF1M-B3PsvONS.js +0 -42
  361. package/dist/assets/BusinessVerificationPage-D05hRyo1-aQRofHCL.js +0 -138
  362. package/dist/assets/BusinessVerificationPageScreen-pyooLZWt.js +0 -9
  363. package/dist/assets/BusyIndication-Nz8htndZ-DK3qiNAN.js +0 -9
  364. package/dist/assets/ChargeCardListTable-Dblodw9X-xnf7vtTY.js +0 -711
  365. package/dist/assets/ChargeCardPromoPage-AihUlwys-Do4EWC8a.js +0 -222
  366. package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-Ck0uGpSM.js +0 -206
  367. package/dist/assets/CollapsableReportTable-BAz0DbFh-BcvkKcP6.js +0 -2844
  368. package/dist/assets/CompanyPassportCard-DTfKmcGv-CHazCsBK.js +0 -42
  369. package/dist/assets/ConfettiBurst-Dc0iIaw3-BJexFSkA.js +0 -1
  370. package/dist/assets/ConnectionAuthScreen-CdkXEtyU.js +0 -11
  371. package/dist/assets/CurrencySelectField-D_D8AUqS-CMSYPUvM.js +0 -139
  372. package/dist/assets/CustomerOnboardingAuthScreen-B9h5R6h7.js +0 -1
  373. package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-Djr78RES.js +0 -1
  374. package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-C-IOhhJS.js +0 -66
  375. package/dist/assets/CustomerOnboardingRoutes-CTvxPGQo.js +0 -23
  376. package/dist/assets/DashboardRoutes-BJYzpoZN.js +0 -21
  377. package/dist/assets/DepositAccTransactionItem-XZgomj7v-DIzmHak6.js +0 -76
  378. package/dist/assets/DepositAccTransactionListPage-B11lcuip-EcEiN_CO.js +0 -66
  379. package/dist/assets/DomesticWireDetailScreen-C2_h3QsH.js +0 -18
  380. package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-BB4UsO3F.js +0 -21
  381. package/dist/assets/DownloadOverlay-DE63RFQe-Crn2Ieq2.js +0 -439
  382. package/dist/assets/DrawerScreen-CCgZ71G-.js +0 -1
  383. package/dist/assets/EditPeoplePage-Dmz2l8uY-BViOrN91.js +0 -55
  384. package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-CiiPaBXi.js +0 -865
  385. package/dist/assets/EntityDetailRoutes-CDn_Sj24.js +0 -1
  386. package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DsIPZFRk.js +0 -2323
  387. package/dist/assets/ExpenseAutomationRoutes-DGeHwe0Y.js +0 -20
  388. package/dist/assets/FeaturePreviewScreen-mO_J_upF.js +0 -1
  389. package/dist/assets/GlobalReviewListPage-DmrnXFgW-BY6NnEtn.js +0 -291
  390. package/dist/assets/InsightsCardStack-Dbpzjgf4-RDSpnan7.js +0 -79
  391. package/dist/assets/InsightsSection-DgViiL7e-DSerJB8L.js +0 -27
  392. package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-CGNhvpQ2.js +0 -65
  393. package/dist/assets/InvitePeoplePage-C7DlxHsy-BebMBIo7.js +0 -12
  394. package/dist/assets/InvoiceUploadSection-DdIQCBkC-Cl8PEl5w.js +0 -140
  395. package/dist/assets/LabeledAddressValueField-D3_DsNPu-736YXF_H.js +0 -45
  396. package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-DW5E7xm-.js +0 -16
  397. package/dist/assets/LabeledDocumentField-CFtFroDl-CMnHYN21.js +0 -41
  398. package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-BZagwxlS.js +0 -59
  399. package/dist/assets/LabeledText-CZMUFsPf-CD_2e2aX.js +0 -42
  400. package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-tnKPve8j.js +0 -1
  401. package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-FOh6a44O.js +0 -1
  402. package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BhDtlKOU.js +0 -1
  403. package/dist/assets/MagicLinkSignInScreen-D2ieCdvR.js +0 -12
  404. package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-CWVlYB8D.js +0 -31
  405. package/dist/assets/MailingDetailsSection-CRsQVOYi-UNrx0RmS.js +0 -21
  406. package/dist/assets/MobileAppDrawer-C0MjRK8u.js +0 -1
  407. package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-28_T6_I6.js +0 -6
  408. package/dist/assets/NavBarWithPicker-ClP6LCUF-DkWJWEu4.js +0 -30
  409. package/dist/assets/NavigationDots-Cu9LZj7T-Dck-bGwO.js +0 -15
  410. package/dist/assets/NoDataChart-DcMRzXHU-D7_5REKF.js +0 -26
  411. package/dist/assets/NotFoundScreen-OFT7uJSm.js +0 -1
  412. package/dist/assets/NotificationRoutes-CHaXDc9a.js +0 -1
  413. package/dist/assets/NotificationsListConfig-CO5uOSs7-DsPdEX8y.js +0 -1
  414. package/dist/assets/NotificationsPage-BH6B4Q8b-boFjpwya.js +0 -685
  415. package/dist/assets/OpExByVendorPage-EjyJRLhn-CQJtKQn8.js +0 -100
  416. package/dist/assets/PandLWithForecastPage-UpDz4Qqu-amIAlSUm.js +0 -107
  417. package/dist/assets/PandLWithForecastRoutes-CnIh_V-S.js +0 -1
  418. package/dist/assets/PeoplePage-D2N1XP-O-CJwoERS5.js +0 -720
  419. package/dist/assets/PeopleRoutes-BhDCeLPU.js +0 -22
  420. package/dist/assets/PerformanceRoutes-BuAZi3MY.js +0 -1
  421. package/dist/assets/ReferralListScreen-C3cSD6GP.js +0 -5
  422. package/dist/assets/ReimbursementApprovalRoutes-BR5Pg3Il.js +0 -1
  423. package/dist/assets/ReimbursementDetailPage-CuuOsKPv-D_7TSHrP.js +0 -314
  424. package/dist/assets/ReimbursementRoutes-CqJXKBBa.js +0 -13
  425. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BZFw04rn.js +0 -1
  426. package/dist/assets/ReloadCard-BKHKE8Pu-DDzNv6xf.js +0 -26
  427. package/dist/assets/ReportTableViewSelector-gYxUii1M-CddF7tJN.js +0 -150
  428. package/dist/assets/ReportsPage-D7rEPLAa-CzmUwcBX.js +0 -121
  429. package/dist/assets/ReportsRoutes-CYQKfAgF.js +0 -1
  430. package/dist/assets/ReviewDetailsPage-B9SMV_va-Dz7Rn666.js +0 -290
  431. package/dist/assets/RewardsRoutes-DCITkj5z.js +0 -1
  432. package/dist/assets/RoleWithToolTip-D9DCHaph-nKJIR_IN.js +0 -22
  433. package/dist/assets/ScheduleSequenceTable-BBbLa0gA-Btbrm5JR.js +0 -324
  434. package/dist/assets/ScreenRoutes-cViWFW2H.js +0 -2
  435. package/dist/assets/SignIn-6YH_riJW-Cbh0GUA9.js +0 -491
  436. package/dist/assets/SignInScreen-CQ0tPRGx.js +0 -1
  437. package/dist/assets/SignOutScreen-DnZtVxxQ.js +0 -9
  438. package/dist/assets/SpendManagementListViewPage-D_RrkezV-DBINRHHC.js +0 -134
  439. package/dist/assets/SpendManagementPerTabPage-BnugLA94-B0bXgpZd.js +0 -754
  440. package/dist/assets/SpendManagementSection-DCk1isQq-Ctg203qT.js +0 -375
  441. package/dist/assets/StatementItem-BWKA6BsE-j_qG9rDI.js +0 -31
  442. package/dist/assets/StatementsPage-C5KuiVH4-xnkoQRuk.js +0 -58
  443. package/dist/assets/SuccessAnimation-CcFXT4sg-BdtQuwgP.js +0 -13
  444. package/dist/assets/SummaryCard-DgPg2oPm-2d3grF3d.js +0 -1
  445. package/dist/assets/TaskListScreen-BEZfxkT_.js +0 -9
  446. package/dist/assets/TaskManagementPage-Dyy-A0ij-BjtjsR1V.js +0 -1063
  447. package/dist/assets/TaskRoutes-CmFMqx0S.js +0 -9
  448. package/dist/assets/TimeRangeSwitcher-PcHPZNOq-BoIkN8Yn.js +0 -64
  449. package/dist/assets/TimeframeSwitcher-XZjkUS_W-BbzICW0F.js +0 -31
  450. package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-CZUmEkN6.js +0 -31
  451. package/dist/assets/TransactionDetailPage-D0_Tjv5D-CTxa80yD.js +0 -903
  452. package/dist/assets/TransactionDetailRoutes-CJny34aF.js +0 -1
  453. package/dist/assets/TransactionList-DoYieHoy-BgtAc9_H.js +0 -153
  454. package/dist/assets/TransactionListPage-Bfx0PW2V-CJeBc1uC.js +0 -35
  455. package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CuGu_xGc.js +0 -708
  456. package/dist/assets/TreasuryRoutes-DAJ1nuDy.js +0 -45
  457. package/dist/assets/TreasuryStatementsPage-D4bGPC_n-CT-z0lr5.js +0 -58
  458. package/dist/assets/TrendChart-BJLik8fK-DKQC7WiX.js +0 -16
  459. package/dist/assets/TrendWithTransactions-R1FCSydB-BqoO14_s.js +0 -116
  460. package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-OjNfOtyQ.js +0 -38
  461. package/dist/assets/Vendor2FAPopup-Bt_phaZI-Dci0tpRN.js +0 -1
  462. package/dist/assets/VendorDetailPage-BixXt95H-Cvkoy_Y0.js +0 -257
  463. package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-BrnPFu_g.js +0 -1
  464. package/dist/assets/VendorFirstReviewPage-DZ00XYRi-DOa-NUD4.js +0 -730
  465. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-a5ZNRrE7.js +0 -1
  466. package/dist/assets/VerifyDevice-DFug_o82-Cp_iN918.js +0 -112
  467. package/dist/assets/VideoPopup-B03SM83j-Bz8522QR.js +0 -31
  468. package/dist/assets/WiseConfirmationScreen-BSiQio9j.js +0 -12
  469. package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-CD6_hnPE.js +0 -300
  470. package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Dfa2vteS.js +0 -441
  471. package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DYGQS9LW.js +0 -14
  472. package/dist/assets/ZeniAccountRoutes-XOuwsxr4.js +0 -58
  473. package/dist/assets/ZeniAccountStatementScreen-xw2x-Y_T.js +0 -9
  474. package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BOtVC5lY.js +0 -63
  475. package/dist/assets/common-DspMM85g-D8gXTZ7G.js +0 -1
  476. package/dist/assets/commonDimensions-RZ10geET-D7qPZRI_.js +0 -1
  477. package/dist/assets/detailCommon-CxEOrtjx-DMWr3OWb.js +0 -38
  478. package/dist/assets/downloadPdf-BpxrRqLr-CgsZPCp9.js +0 -1
  479. package/dist/assets/epic-CtBuyKa-.js +0 -2
  480. package/dist/assets/getLocaleForTenant-x-_ZsHih.js +0 -1
  481. package/dist/assets/index-Ch36miPU.js +0 -1
  482. package/dist/assets/index-DztUk-4t.js +0 -1
  483. package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-CWTptJHk.js +0 -1
  484. package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-DwJKT6-z.js +0 -1
  485. package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-VBbq9rDC.js +0 -1
  486. package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-XJ0C0lAw.js +0 -1
  487. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-OlNigbrb.js +0 -1
  488. package/dist/assets/panelSelectedMixin-CzfD5-Zs-C8dW-sTb.js +0 -4
  489. package/dist/assets/react-D1LHkJvC.js +0 -37
  490. package/dist/assets/toCOABalancesWithID-DzAIFjHl-CpHF0N9N.js +0 -1
  491. package/dist/assets/toChartData-BurvmO_S-BSey2eFY.js +0 -1
  492. package/dist/assets/useInitialThreadRequest-BFyDtASP.js +0 -1
  493. package/dist/assets/withTransactionSidePanel-D5JSDlfI.js +0 -8
  494. package/dist/assets/zeni-epic-state-CjVTQ4J3.js +0 -122
@@ -0,0 +1,2972 @@
1
+ import{ae as O,b9 as ye,a5 as Z,V as t,an as Ki,P as y,cM as Yi,o as s,d as ee,a7 as Wn,e as W,S as Pn,v as Ui,cN as Fn,cO as Zi,O as N,k as C,cP as qt,bD as Qt,cQ as Jt,x as E,cs as Xt,_ as en,E as st,bO as He,bg as Y,L as qi,aE as Qi,aG as Ji,y as de,ad as I,aj as wo,bi as yo,i as Te,cR as Xi,cS as se,bC as tn,bt as zn,C as er,H as Ce,cT as dt,cU as Ve,cV as mt,l as _,bH as ne,cW as bo,cX as tr,w as nn,cY as Je,cZ as Tn,c_ as nr,c$ as or,d0 as Vn,d1 as ir,d2 as rr,d3 as ar,at as ko,aq as lr,b_ as on,bZ as rn,d4 as cr,ar as jo,c1 as So,bl as sr,d5 as dr,d6 as hr,d7 as Dn,d8 as En,d9 as ur,da as pr,bn as gr,b6 as xr,db as fr}from"./index-ByxsQZNo.js";import{n as a,c as z}from"./mui-40xepic5.js";import{a as V,b as mr}from"./sentry-COYnhuxW.js";import{Fu as Ot,Ff as an,FM as ln,FN as Ke,FO as cn,FP as sn,FQ as dn,FR as hn,FS as Co,FT as wr,Fh as Me,cj as Gn,bt as vo,FU as $o,cs as yr,cp as br,Fv as _o}from"./zeni-epic-state-DCforPdM.js";import{N as ct,D as kr,R as jr,B as ve,u as A}from"./AccountRow-G9Hw9KCo-CT1w9ZhF.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]="3f423ee2-bc22-438e-8319-4a31c262889a",e._sentryDebugIdIdentifier="sentry-dbid-3f423ee2-bc22-438e-8319-4a31c262889a")}catch{}})();const Nt=[O.graphColor34,O.graphColor08,O.graphColor11,O.graphColor13,O.graphColor19,O.graphColor20,O.graphColor14,O.graphColor35,O.graphColor32,O.graphColor02,O.graphColor06,O.graphColor04,O.graphColor10,O.graphColor12,O.graphColor15,O.graphColor18];function un(e,n=0){const o=(i=>{const r=String.prototype.concat(...new Set(i));let l=0;for(let c=0;c<r.length;++c)l+=r.charCodeAt(c);return l})(e)+n*n*n;return Nt[Math.floor(o/Nt.length)%Nt.length]}function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return Z("0,0",e?.balance)}function J(e){return Z("0,0",e?.forecast)}function Lo(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.totalPercentValue)}return Z("0,0",e?.totalBalance)}function Tt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.forecastPercentValue)}return Z("0,0",e?.totalForecast)}function pe(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function ge(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return Z("0,0",Object.assign({},e.forecast,{amount:n}))}return Z("0,0",null)}function Ao(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 ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function Bo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return Z("0,0",Object.assign({},e.totalForecast,{amount:n}))}return Z("0,0",null)}const Ye=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:l}}=N.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${Ot(i,l.MMMYYYYFormat,e)}`:Mt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${N.getLocalizedStrings().reports.quarterPrefix}${Ot(i,l.QYYYYformat,e)}`:Mt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${Ot(i,l.YYYYformat,e)}`:Mt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function Mt(e,n){return N.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const fg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${Yi(10)}`},Sr=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: ${A.wrapperPadding}px;
9
+ `,Cr=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
+ `,vr=a.div`
18
+ display: flex;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ gap: ${s.sp2};
22
+ width: ${A.leftHeadingWidth}px;
23
+ `,$r=a.div`
24
+ display: flex;
25
+ flex: 1 1 auto;
26
+ justify-content: flex-end;
27
+ align-items: center;
28
+ gap: ${s.sp4};
29
+ `,_r=a(ne)`
30
+ width: ${A.bankBalanceWidth}px;
31
+ min-width: ${A.bankBalanceWidth}px;
32
+ text-align: right;
33
+ `,Lr=a(ne)`
34
+ width: ${A.clearedBalanceWidth}px;
35
+ min-width: ${A.clearedBalanceWidth}px;
36
+ text-align: right;
37
+ `,Ar=a(ne)`
38
+ width: ${A.statusWidth}px;
39
+ min-width: ${A.statusWidth}px;
40
+ `,Br=a.div`
41
+ display: flex;
42
+ flex-shrink: 0;
43
+ gap: ${s.sp3};
44
+ width: ${A.varianceWidth}px;
45
+ min-width: ${A.varianceWidth}px;
46
+ flex-direction: row;
47
+ justify-content: flex-end;
48
+ align-items: center;
49
+ text-align: center;
50
+ `,Ir=a.div`
51
+ width: ${A.variancePercentageWidth}px;
52
+ min-width: ${A.variancePercentageWidth}px;
53
+ text-align: right;
54
+ margin-right: ${s.sp2};
55
+ `,Or=a.div`
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ `,Nr=a.div`
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ `;function Mr({height:e}){const n=W();return t.jsx(Sr,{heightValue:e,windowSize:n,children:t.jsxs(Cr,{children:[t.jsxs(vr,{children:[t.jsx(Or,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Nr,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs($r,{children:[t.jsx(_r,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(Lr,{children:t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(Br,{children:[t.jsx(se,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:A.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(Ir,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(Ar,{children:t.jsx(se,{isLoading:!0,customStyle:{height:s.sp4,width:A.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: ${A.wrapperPadding}px;
68
+ `;function Pr({height:e}){return t.jsx(Wr,{heightValue:e})}const Fr=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: ${A.wrapperPadding}px;
76
+ `,zr=a.div`
77
+ flex: 1 1 auto;
78
+ display: flex;
79
+ align-items: center;
80
+ height: ${s.sp8};
81
+ justify-content: flex-start;
82
+ align-items: center;
83
+ `,Tr=a.div`
84
+ display: flex;
85
+ flex-direction: row;
86
+ justify-content: flex-end;
87
+ width: ${A.leftHeadingWidth}px;
88
+ `,Vr=a.div`
89
+ display: flex;
90
+ flex: 1 1 auto;
91
+ flex-direction: row;
92
+ justify-content: flex-end;
93
+ `,Dr=a(jo)`
94
+ user-select: none;
95
+ color: ${e=>e.theme.colors.primary};
96
+ width: ${A.leftTimeframeWidth}px;
97
+ min-width: ${A.leftTimeframeWidth}px;
98
+ flex: 1 1 auto;
99
+ `,Er=a(_)`
100
+ user-select: none;
101
+ `,Gr=a.div`
102
+ max-height: ${s.sp8};
103
+ min-height: ${s.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: ${s.sp2};
112
+ color: ${e=>e.theme.colors.primary};
113
+ margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
114
+ `,Rr=a.div`
115
+ width: ${A.bankBalanceWidth}px;
116
+ `,Hr=a.div`
117
+ width: ${A.bankBalanceRightTimeframeWidth}px;
118
+ `,Kr=a.div`
119
+ width: ${A.clearedBalanceWidth}px;
120
+ margin-right: ${A.tickLeftMargin}px;
121
+ `,Yr=a.div`
122
+ width: ${A.varianceTimeframeWidth}px;
123
+ align-self: flex-end;
124
+ `,Ur=a.div`
125
+ width: ${A.spacerLineWidth}px;
126
+ `,Zr=a.div`
127
+ width: ${A.statusWidth}px;
128
+ `,Xe=({title:e,type:n})=>t.jsx(Gr,{widthValue:A[n],children:t.jsx(Er,{children:e})});function qr({sectionTitle:e,height:n,isLoading:o}){const i=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Fr,{height:n,children:t.jsxs(zr,{children:[t.jsx(Tr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp4,width:A.leftLabelWidth},children:t.jsx(Dr,{"data-testid":y("account-recon-section-title",e),children:e})})}),t.jsxs(Vr,{children:[t.jsx(Rr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Hr,{}),t.jsx(Kr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Yr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Ur,{}),t.jsx(Zr,{children:t.jsx(se,{isLoading:o,customStyle:{height:s.sp7,width:A.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Xe,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const Qr=a.div`
129
+ display: flex;
130
+ flex-direction: row;
131
+ height: ${e=>e.heightValue}px;
132
+ align-items: center;
133
+ padding-right: ${A.wrapperPadding}px;
134
+ `,Jr=a(jo)`
135
+ user-select: none;
136
+ color: ${e=>e.theme.colors.primary};
137
+ `;function Xr({height:e,title:n}){return t.jsx(Qr,{heightValue:e,children:t.jsx(Jr,{"data-testid":y("account-recon-section-title",n),children:n})})}const ea=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: ${A.wrapperPadding}px;
145
+ `,ta=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
+ `,na=a.div`
155
+ display: flex;
156
+ flex: 1 1 auto;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ gap: ${s.sp2};
160
+ `,oa=a(ne)`
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: ${A.leftLabelWidth}px;
170
+ min-width: ${A.leftLabelWidth}px;
171
+ `,ia=a.div`
172
+ display: flex;
173
+ flex: 1 1 auto;
174
+ justify-content: flex-end;
175
+ align-items: center;
176
+ `,ra=a(ne)`
177
+ width: ${A.bankBalanceWidth}px;
178
+ min-width: ${A.bankBalanceWidth}px;
179
+ text-align: right;
180
+ `,aa=a(ne)`
181
+ width: ${A.clearedBalanceWidth}px;
182
+ min-width: ${A.clearedBalanceWidth}px;
183
+ text-align: right;
184
+ margin-left: ${A.tickLeftMargin}px;
185
+ `,la=a(ne)`
186
+ width: ${A.statusWidth}px;
187
+ min-width: ${A.statusWidth}px;
188
+ height: 1px;
189
+ `,ca=a.div`
190
+ display: flex;
191
+ flex-direction: row;
192
+ min-width: ${A.spacerLineWidth}px;
193
+ width: ${A.spacerLineWidth}px;
194
+ align-items: center;
195
+ `,sa=a.div`
196
+ width: 1px;
197
+ margin-left: ${s.sp3};
198
+ height: ${e=>e.heightValue}px;
199
+ background-color: ${e=>e.theme.colors.grey3};
200
+ `,da=a.div`
201
+ display: flex;
202
+ flex-shrink: 0;
203
+ width: ${A.varianceTimeframeWidth}px;
204
+ min-width: ${A.varianceTimeframeWidth}px;
205
+ flex-direction: row;
206
+ justify-content: flex-end;
207
+ align-items: center;
208
+ text-align: center;
209
+ margin-left: ${A.tickLeftMargin}px;
210
+ `,ha=a(ne)`
211
+ border-radius: ${s.sp1};
212
+ color: ${e=>e.textColor.hex()};
213
+ min-width: ${A.varianceNumberWidth}px;
214
+ text-align: right;
215
+ margin-right: ${s.sp2};
216
+ `,ua=a(ne)`
217
+ border-radius: ${s.sp1};
218
+ padding: ${s.sp0} ${s.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: ${A.variancePercentageWidth}px;
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:Rn}}},common:{strings:{percentage:pa,hyphen:ht}}}=N.getLocalizedStrings();function ga({height:e,sectionData:n}){const o=W(),i=n.totalVariance,r=n.totalVariancePercentage,l=de();return t.jsx(ea,{"data-testid":y("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(ta,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsxs(na,{children:[t.jsx(ve,{firstLetter:Rn.section[n.sectionId].subTitle.charAt(0),color:new I(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(oa,{children:Rn.section[n.sectionId].subTitle})]}),t.jsxs(ia,{children:[t.jsx(ra,{children:n.totalBankBalance!=null?Z("0,0",n.totalBankBalance):ht}),t.jsx(aa,{children:n.totalClearedBalance!=null?Z("0,0",n.totalClearedBalance):ht}),t.jsx(xa,{variance:i,variancePercentage:r}),t.jsx(ca,{children:t.jsx(sa,{heightValue:e})}),t.jsx(la,{})]})]})})}const xa=({variance:e,variancePercentage:n})=>{const o=de(),i=new I(o.colors.hero),r=new I(o.colors.hero),l=new I(o.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${pa}`:ht;return t.jsxs(da,{children:[t.jsx(ha,{textColor:i,children:e!=null?Z("0,0",e):ht}),t.jsx(ua,{textColor:r,bgColor:l,children:c})]})},j={balanceHeight:s.sp4,balanceHeightInPx:C[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:C[4],titleWidth:new E(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128},xe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":case"name_only":return!0}},ke=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Io={emptyLeftContainer:new E(C[0],C[5])},fa=a(_)`
225
+ margin-left: ${e=>e.hasChildren||e.depth===0?s.sp2:s.sp3};
226
+ overflow: hidden;
227
+ white-space: nowrap;
228
+ text-overflow: ellipsis;
229
+ width: ${e=>j.titleWidth.value(e.windowSize)-45*(e.depth+1)}px;
230
+ `,ma=a.div`
231
+ display: flex;
232
+ height: ${s.sp6};
233
+ align-items: center;
234
+ `,wa=a.div`
235
+ display: flex;
236
+ height: ${s.sp6};
237
+ align-items: center;
238
+ `,ya=a.div`
239
+ height: ${s.sp6};
240
+ width: ${s.sp3};
241
+ `,ba=a.div`
242
+ width: 14px;
243
+ height: ${s.sp1};
244
+ `,ka=a.div`
245
+ width: ${s.sp2};
246
+ height: ${s.sp1};
247
+ `,Oo=a.div`
248
+ width: ${e=>Io.emptyLeftContainer.valuePx(e.windowSize)};
249
+ height: ${s.sp1};
250
+ `,De=a.div`
251
+ display: flex;
252
+ `,ja=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return t.jsxs(De,{children:[r.depth===0?t.jsx(Vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(Vn,{depth:r.depth}):null]},o+i)}):null}),No=({ancestorMetadata:e,depth:n,name:o})=>{const i=W();return n===0?e[n].hasChildren===!1?t.jsx(Oo,{windowSize:i}):t.jsxs(De,{children:[t.jsx(Je,{depth:n}),t.jsx(Ve,{}),t.jsx(Je,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(De,{children:[l.depth===0?t.jsx(Je,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Tn,{index:1}):t.jsx(Tn,{index:2}):null,(n===r?l.hasChildren!==!0:c==null||c.isLastNode)?t.jsx(mt,{}):t.jsx(Ve,{},r),t.jsx(Je,{depth:l.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=1?t.jsx(ka,{}):null]})},Mo=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(ba,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],l=i!==n?e[i+1]:void 0;return t.jsxs(De,{children:[r!=null&&r.depth===0?t.jsx(dt,{depth:r.depth}):null,l==null||l.isLastNode?t.jsx(mt,{}):t.jsx(Ve,{},i),t.jsx(dt,{depth:r!=null?r.depth+1:0})]},o+i)})}),Sa=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return r==null?null:t.jsxs(De,{children:[r.depth===0?t.jsx(dt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ve,{},i):t.jsx(mt,{}):null,r.depth>=1?t.jsx(dt,{depth:r.depth}):null]},o+i)}):null}),Ca=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ya,{});return e===0&&r&&(d=t.jsx(hr,{collapsed:l,onIconClick:c})),e>0&&(r&&!i&&n&&(d=t.jsx(Dn,{collapsed:l,onIconClick:c})),o&&i&&n&&(d=t.jsx(En,{})),o&&i&&!n&&(d=t.jsx(ur,{})),r&&i&&!n&&(d=t.jsx(pr,{collapsed:l,onIconClick:c})),r&&i&&n&&(d=t.jsx(Dn,{collapsed:l,onIconClick:c})),n&&o&&(d=t.jsx(En,{}))),d},va=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(wa,{children:t.jsx(Ca,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})});function pn(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=W();return t.jsxs(ma,{children:[e.classDepth!=null?t.jsx(No,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Oo,{windowSize:o}):null,t.jsx(Sa,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(va,{...e}),t.jsx(fa,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const H={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,325,405),nameLogoWidth:new E(C[4],C[4]),nameLogoHeight:new E(C[4],C[4])},et=[new E(C[4],C[8]),new E(44,76),new E(69,102),new E(93,124),new E(113,143)],$a=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
+ `,_a=a.div`
258
+ display: flex;
259
+ flex: 1 1 auto;
260
+ flex-flow: row;
261
+ justify-content: flex-start;
262
+ align-items: center;
263
+ `,La=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?z`
273
+ position: -webkit-sticky;
274
+ position: sticky;
275
+ top: ${s.sp0};
276
+ left: ${s.sp0};
277
+ `:null}
278
+ `,Aa=a.div`
279
+ width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-C[5]:et[e.nestingLevel].value(e.windowSize)}px;
280
+ max-width: ${e=>e.noMarginForEntity?et[e.nestingLevel].value(e.windowSize)-C[5]:et[e.nestingLevel].value(e.windowSize)}px;
281
+ height: 1px;
282
+ `,Ba=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
+ `,Ia=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
+ `,Hn=e=>{const n=W(),o=de();return t.jsxs(_a,{"data-testid":y("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(La,{windowSize:n,isSticky:e.isSticky,"data-testid":y("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(Aa,{"data-testid":y("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(Ba,{"data-testid":y("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Ia,{"data-testid":y("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Vt({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(Hn,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx($a,{"data-testid":y("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Hn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const Wo=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
+ `,Po=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
+ `,Fo=a.div`
314
+ display: flex;
315
+ flex: 1 0 auto;
316
+ flex-direction: row;
317
+ justify-content: flex-end;
318
+ `,zo=a.div`
319
+ display: flex;
320
+ flex-direction: row;
321
+ justify-content: flex-start;
322
+ `,To=a(_)`
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
+ `,Oa=a(_)`
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: ${s.sp2};
343
+ `,Vo=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?z`
354
+ position: sticky;
355
+ top: ${s.sp0};
356
+ left: ${s.sp0};
357
+ `:null}
358
+ cursor: pointer;
359
+ color: ${e=>e.theme.colors.hero};
360
+ &:hover {
361
+ color: ${e=>e.theme.colors.primary};
362
+ }
363
+ `,Do=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(zo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:Z("0,0",o)})})},Eo=({total:e})=>t.jsx(zo,{children:t.jsx(To,{isClickable:!1,onClick:()=>null,children:Z("0,0",e)})});function Na({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:p}){const u=W(),g=c?.name??"";return t.jsxs(Wo,{"data-testid":y("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(Po,{"data-testid":y("ap-aging-report-row-container",g),style:{cursor:"default"},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Vo,{onClick:()=>c?.id!=null?p?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Jt,{photoUrl:c.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Xt,{name:g??"",size:s.sp4}),t.jsx(Oa,{children:g})]}),t.jsxs(Fo,{"data-testid":y("ap-aging-report-row-balances-container",g),children:[r.map(h=>t.jsx(Do,{balance:h,isOpen:!0},h?.period)),t.jsx(Eo,{total:l})]})]}),t.jsx(Go,{isScrolling:o,isLastNode:i})]})}function Ma({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:p,nestedCustomer:u,metadata:g,backgroundColor:h,onEntityNameClick:x,onClick:f}){const m=W(),w=g,b=u?.customer.name??"",k=u!=null?u.id.length-1:0,v=u?.hasSiblings??!1,S=u!=null&&u.children.length!==0,$=S,B=$?"pointer":"default",L=u!=null&&u.isLeafCustomer;return t.jsxs(Wo,{"data-testid":y("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:h,windowSize:m,children:[t.jsxs(Po,{"data-testid":y("ar-aging-report-row-container",e),style:{cursor:B},isClickable:$,containerHeight:o-1,children:[t.jsx(Vo,{"data-testid":y("ar-aging-report-row-name-container",e),isSticky:n,windowSize:m,bgColor:h,containerHeight:o-1,children:t.jsx(pn,{displayName:b,depth:k,isLastNode:r,hasChildren:S,hasSiblings:v,isLeaf:L,collapsed:!l,subAccountAnscestorMetadata:w.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:()=>{f?.(e)},onNameClick:()=>u?.id[0]!=null?x?.(u.id[0]):void 0})}),t.jsxs(Fo,{children:[c.map(M=>t.jsx(Do,{balance:M,isOpen:l},M?.period)),t.jsx(Eo,{total:l?d:p})]})]}),t.jsx(Go,{isScrolling:i,subEntityProps:{nestingLevel:k,isSticky:n,noMarginForEntity:!0}})]})}function Go({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Vt,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Vt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const Wa=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
+ `,Pa=a.div`
375
+ display: flex;
376
+ flex: 1 0 auto;
377
+ flex-direction: row;
378
+ justify-content: flex-end;
379
+ `,Ro=a.div`
380
+ display: flex;
381
+ max-height: ${s.sp8};
382
+ min-height: ${s.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: ${s.sp2};
389
+ margin-left: ${H.balanceLeftMargin};
390
+ color: ${e=>e.theme.colors.primary};
391
+ `,Ho=a(_)`
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: ${s.sp1};
402
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
+ `,Fa=a.div`
404
+ max-height: ${s.sp8};
405
+ min-height: ${s.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?z`
413
+ position: -webkit-sticky;
414
+ position: sticky;
415
+ top: ${s.sp0};
416
+ left: ${s.sp0};
417
+ `:""}
418
+ `,za=a(_)`
419
+ display: flex;
420
+ align-items: center;
421
+ cursor: pointer;
422
+ column-gap: ${s.sp1};
423
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
424
+ `,Ko=a.div`
425
+ max-height: ${s.sp8};
426
+ min-height: ${s.sp8};
427
+ cursor: pointer;
428
+ `,gn=a.div`
429
+ display: flex;
430
+ column-gap: ${s.sp1};
431
+ cursor: pointer;
432
+ align-items: center;
433
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
434
+ `,Yo=a.div``,Uo=a(So)`
435
+ width: 12px;
436
+ height: 12px;
437
+ cursor: pointer;
438
+ color: ${e=>e.theme.colors.hero};
439
+ `,xn=a(rn)`
440
+ width: 12px;
441
+ height: 12px;
442
+ `,fn=a(on)`
443
+ width: 12px;
444
+ height: 12px;
445
+ `,Ta=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=n===r?o:"ascending";return t.jsxs(za,{active:n===r,"data-testid":y("duration-row-vendor-title",e),children:[r==="vendor"?N.getLocalizedStrings().reports.aging.apAging.vendor:N.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(gn,{selectedForSort:n===r,children:t.jsx(Yo,{"data-testid":y("duration-row-vendor-sort-icon",e),onClick:()=>{i?.(mn(o),r)},children:l==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})})}),t.jsx(st,{controller:n===r,children:t.jsx(Uo,{"data-testid":y("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Zo({onSortOrderChanged:i})})})]})},Zo=({onSortOrderChanged:e})=>{e?.("descending","total")},Va=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-tick-container",e),children:t.jsx(Ro,{"data-testid":y("duration-row-tick-element-container",e),children:t.jsxs(Ho,{active:n===e,"data-testid":y("duration-row-timeframe-tick",e),children:[N.getLocalizedStrings().reports.aging.duration[e],t.jsxs(gn,{selectedForSort:n===e,"data-testid":y("duration-row-sort-container",e),children:[t.jsx(Yo,{"data-testid":y("duration-row-sort-icon",e),onClick:()=>{i?.(mn(o),e)},children:r==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})}),t.jsx(st,{controller:n===e,children:t.jsx(Uo,{"data-testid":y("duration-row-sort-cancel-icon",e),onClick:()=>Zo({onSortOrderChanged:i})})})]})]})})})},qo=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending";return t.jsx(Ko,{"data-testid":y("duration-row-entity-total-tick-container",e),onClick:()=>{i?.(mn(o),"total")},children:t.jsx(Ro,{"data-testid":y("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Ho,{active:n==="total","data-testid":y("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?N.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:N.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(gn,{selectedForSort:n==="total","data-testid":y("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(fn,{}):t.jsx(xn,{})})]})})})},Da=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Va,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(qo,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function Ea({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const p=W();return t.jsxs(Wa,{height:o,bgColor:c,"data-testid":y("duration-row-root-container",e),children:[t.jsx(Fa,{"data-testid":y("duration-row-placeholder-name",e),isSticky:n,windowSize:p,bgColor:c,children:t.jsx(Ta,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(Pa,{children:[i.map(u=>t.jsx(Da,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(qo,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const mn=e=>e==="ascending"?"descending":"ascending",Ga=[10,14,20,20,20],Ra=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
+ `,Ha=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
+ `,Ka=a.div`
461
+ display: flex;
462
+ flex: 1 0 auto;
463
+ flex-direction: row;
464
+ justify-content: flex-end;
465
+ `,Qo=a.div`
466
+ display: flex;
467
+ flex-direction: row;
468
+ justify-content: flex-start;
469
+ `,Jo=a(_)`
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
+ `,Ya=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?z`
488
+ position: sticky;
489
+ top: ${s.sp0};
490
+ left: ${s.sp0};
491
+ `:null}
492
+ `,Ua=a(_)`
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=>Ga[e.depth]}px;
501
+ color: ${e=>e.theme.colors.primary};
502
+ width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*C[11]}px;
503
+ `,Za=({balance:e})=>t.jsx(Qo,{children:t.jsx(Jo,{isClickable:!1,onClick:()=>null,children:Z("0,0",e?.totalBalance)})}),qa=({total:e})=>t.jsx(Qo,{children:t.jsx(Jo,{isClickable:!1,onClick:()=>null,children:Z("0,0",e)})});function Qa({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const p=W(),{common:{strings:{empty:u}},reports:{sections:g}}=N.getLocalizedStrings(),h=c!=null?c.id.length-1:0,x=d,f=c?.customer.name??u;return t.jsxs(Ra,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(Ha,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Ya,{isSticky:n,windowSize:p,bgColor:e,containerHeight:o,children:[t.jsx(Mo,{ancestorMetadata:x.vendorOrCustomerAncestorMetadata,depth:h,name:f}),t.jsx(Ua,{isClickable:!1,title:f,depth:h,windowSize:p,children:g.totalPrefix+" "+f})]}),t.jsxs(Ka,{children:[c?.arAgingBalances.map((m,w)=>t.jsx(Za,{balance:m},w)),t.jsx(qa,{total:l})]})]}),t.jsx(Ja,{isScrolling:r,nestingLevel:h,isSticky:n,noMarginForEntity:i})]})}function Ja({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Vt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const ae=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":case"name_only":return!1}},Ee=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":case"name_only":return!1}},Xa=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
+ `,el=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
+ `,tl=a.div`
520
+ display: flex;
521
+ flex: 1 0 auto;
522
+ flex-direction: row;
523
+ justify-content: flex-end;
524
+ `,Xo=a.div`
525
+ display: flex;
526
+ flex-direction: row;
527
+ justify-content: flex-start;
528
+ `,ei=a(ne)`
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
+ `,nl=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?z`
546
+ position: -webkit-sticky;
547
+ position: sticky;
548
+ top: ${s.sp0};
549
+ left: ${s.sp4};
550
+ `:e&&!n?z`
551
+ position: -webkit-sticky;
552
+ position: sticky;
553
+ top: ${s.sp0};
554
+ left: ${s.sp0};
555
+ `:null}
556
+ `,ol=a(ne)`
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
+ `,il=({type:e,balance:n})=>t.jsx(Xo,{children:ae(e)===!0?t.jsx(ei,{children:Z("0,0",n?.balance)}):null}),rl=({type:e,balance:n})=>t.jsx(Xo,{children:ae(e)===!0?t.jsx(ei,{children:Z("0,0",n)}):null});function al({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:l,backgroundColor:c}){const d=W(),p={amount:l.reduce((u,g)=>u+(g?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Gn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Gn.currencySymbol};return t.jsx(Xa,{"data-testid":y("total-row-root-container"),height:i,bgColor:c,windowSize:d,children:t.jsxs(el,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsx(nl,{bgColor:c,isSticky:n,windowSize:d,isIndented:o,children:t.jsx(ol,{children:r})}),t.jsxs(tl,{children:[l.map((u,g)=>t.jsx(il,{type:e,balance:u},g)),t.jsx(rl,{type:e,balance:p})]})]})})}function ut(e,n,o,i){switch(e){case"cogs":return ll(o,i,n);case"expenses":return cl(o,i,n);case"income":return sl(o,i,n);case"cash_position":return dl(o,i,n);case"cash_in":return hl(o,i,n);case"cash_out":return ul(o,i,n);case"assets":return pl(o,i,n);case"equity":return gl(o,i,n);case"liabilities":return xl(o,i,n);case"other_expense":return fl(o,i,n);case"other_income":return ml(o,i,n);case"operating_activities":return wl(o,i,n);case"investing_activities":return yl(o,i,n);case"financing_activities":return bl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const ll=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},cl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},sl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},dl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>R([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},hl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ul=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},pl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},gl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},xl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},fl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},ml=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},wl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},yl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i},bl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>oe(r,i.acGroupBalanceSelector,o,n),i};function R(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>ti(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>ni(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>oi(n(i)?.balances??[]))}}function oe(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>ti(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>ni(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>oi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function ti(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function ni(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function oi(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function te(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ii([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function Kn(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,l=te(e,n,o,i);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=ii([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function We(e,n){if(n==="ascending_date")return e;{const o=[],i=[];for(const r of e)r.type==="default"?o.push(r):i.push(r);return[...o.reverse(),...i]}}function ii(e,n){return e.length>0?e:bo(Array(n),null)}const kl=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
+ `,Yn=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
+ `,jl=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 Sl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Yn,{marginLeft:C[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Yn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(kl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(jl,{isScrolling:n})}}const Pe={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,350,405)},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
+ `,vl=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
+ `,_l=a.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ justify-content: flex-start;
605
+ `,Ll=a(_)`
606
+ user-select: none;
607
+ color: ${e=>e.theme.colors.hero};
608
+ min-width: ${Pe.balanceWidth};
609
+ max-width: ${Pe.balanceWidth};
610
+ text-align: right;
611
+ margin-left: ${Pe.balanceLeftMargin};
612
+ `,Al=a.div`
613
+ display: flex;
614
+ flex-direction: row;
615
+ flex-shrink: 2;
616
+ flex-grow: 1;
617
+ align-items: center;
618
+ width: ${e=>Pe.titleWidth.valuePx(e.windowSize)};
619
+ color: ${e=>e.theme.colors.hero};
620
+ max-width: ${e=>Pe.titleWidth.valuePx(e.windowSize)};
621
+ background-color: ${e=>e.bgColor?.hex()};
622
+ ${({isSticky:e})=>e?z`
623
+ position: -webkit-sticky;
624
+ position: sticky;
625
+ top: ${s.sp0};
626
+ left: ${s.sp0};
627
+ `:null}
628
+ `,Bl=a(_)`
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: ${s.sp6};
637
+ `,Il=({balance:e})=>t.jsx(_l,{children:t.jsx(Ll,{children:q(e)})});function Ol({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:p}){const u=W();return t.jsxs(Cl,{"data-testid":y("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:u,children:[t.jsxs(vl,{"data-testid":y("calculated-section-type-1-container-row",i),onClick:()=>p?.(i),children:[t.jsx(Al,{"data-testid":y("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:u,children:t.jsx(Bl,{children:e})}),t.jsx($l,{children:l.map((g,h)=>t.jsx(Il,{balance:g},h))})]}),t.jsx(Nl,{isScrolling:c,isLastNode:d})]})}function Nl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(Sl,{isScrolling:e,kind:"heading_row_separator"}):null}const Ml=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
+ `,Wl=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
+ `,Pl=a.div`
653
+ display: flex;
654
+ flex: 1 0 auto;
655
+ flex-direction: row;
656
+ justify-content: flex-end;
657
+ `,Fl=a.div`
658
+ display: flex;
659
+ flex-direction: row;
660
+ justify-content: flex-start;
661
+ `,tt=a(ko)`
662
+ color: ${e=>e.theme.colors.champion};
663
+ user-select: none;
664
+ max-width: ${j.balanceWidth};
665
+ min-width: ${j.balanceWidth};
666
+ text-align: right;
667
+ margin-left: ${j.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=>j.titleWidth.valuePx(e.windowSize)};
675
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
676
+ background-color: ${e=>e.bgColor?.hex()};
677
+ ${({isSticky:e})=>e?z`
678
+ position: -webkit-sticky;
679
+ position: sticky;
680
+ top: ${s.sp0};
681
+ left: ${s.sp0};
682
+ `:null}
683
+ `,Tl=a(ko)`
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
+ `,Vl=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(Fl,{"data-testid":y("heading-row-balance-element",e),children:[ae(e)||o?t.jsx(tt,{"data-testid":y("heading-row-balance-actual",e),children:q(n)}):t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{"data-testid":y("heading-row-balance-forecast",e),children:J(n)}),t.jsx(tt,{"data-testid":y("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Dl({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:p,isLeaf:u,onClick:g}){const h=W();return t.jsx(Ml,{height:r,bgColor:n,"data-testid":y("heading-row-root-container",i),children:t.jsxs(Wl,{"data-testid":y("heading-row-container",i),isClickable:!u,onClick:()=>g?.(i),children:[xe(e)===!0?t.jsx(zl,{"data-testid":y("heading-row-heading-container",i),isSticky:o,windowSize:h,bgColor:n,children:t.jsx(Tl,{children:l})}):null,ke(e)===!0?t.jsx(Pl,{"data-testid":y("heading-row-balances-container",i),children:c.map((x,f)=>t.jsx(Vl,{"data-testid":y("heading-row-balance-element",e),type:e,heading:l,balance:x,isActualVsForecastOn:d,compareMode:p},f))}):null]})})}const wn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="title_string_only")return null;const x=te(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Dl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,headingBalances:x.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:f=>{h?.(f)}})};function ri(e,n){return El(n)}const El=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>function(r,l,c){switch(c){case"off":default:return r;case"filter_actual_nil_balances":return r.filter(d=>function(p){let u=!1;if(p!=null){for(const g of p)if(g.balance.amount!==0){u=!0;break}}return u}(l(d)?.balances??[]))}}(i,o.acBalanceSelector,e),o},nt=[new E(C[4],56),new E(44,76),new E(69,102),new E(93,124),new E(113,143)],Un=[new E(C[0],C[0]),new E(14,C[4]),new E(67,67),new E(102,102),new E(136,136)],Gl=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
+ `,Rl=a.div`
704
+ display: flex;
705
+ flex: 1 1 auto;
706
+ flex-flow: row;
707
+ justify-content: flex-start;
708
+ align-items: center;
709
+ `,Hl=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=>j.titleWidth.valuePx(e.windowSize)};
717
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
718
+ ${({isSticky:e})=>e?z`
719
+ position: -webkit-sticky;
720
+ position: sticky;
721
+ top: ${s.sp0};
722
+ left: ${s.sp0};
723
+ `:null}
724
+ `,Kl=a.div`
725
+ width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-C[5]:nt[e.nestingLevel].value(e.windowSize)}px;
726
+ max-width: ${e=>e.noMarginForAccount?nt[e.nestingLevel].value(e.windowSize)-C[5]:nt[e.nestingLevel].value(e.windowSize)}px;
727
+ height: 1px;
728
+ `,Yl=a.div`
729
+ width: ${e=>Un[e.classDepth].valuePx(e.windowSize)};
730
+ max-width: ${e=>Un[e.classDepth].valuePx(e.windowSize)};
731
+ height: 1px;
732
+ `,Ul=a.div`
733
+ display: flex;
734
+ flex: 1 1 auto;
735
+ max-height: 1px;
736
+ height: 1px;
737
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
738
+ `,Zl=a.div`
739
+ display: flex;
740
+ flex: 1 1 auto;
741
+ max-height: 1px;
742
+ height: 1px;
743
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
744
+ `,ql=a.div`
745
+ display: flex;
746
+ flex: 1 1 auto;
747
+ max-height: 1px;
748
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
749
+ `,qn=e=>{const n=W(),o=de();return t.jsxs(Rl,{children:[t.jsxs(Hl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Yl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Kl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Ul,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Zl,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function je({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(Zn,{marginLeft:C[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Zn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Gl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ql,{isScrolling:n});case"total_row_separator":return t.jsx(qn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1})}}function ai({height:e,backgroundColor:n,title:o,numOfBalances:i=6}){let r=null;const l=W()!=="small";switch(o!=null?o.split("+")[1]:""){case"section-row":r=t.jsx(Ql,{columns:i,isSticky:l});break;case"root-class-row":r=t.jsx(Jl,{columns:i,isSticky:l});break;case"sub-class-row":r=t.jsx(Xl,{columns:i,isSticky:l});break;case"leaf-class-row":r=t.jsxs(t.Fragment,{children:[t.jsx(ec,{columns:i,isSticky:l}),t.jsx(je,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]})}return t.jsx(nc,{height:e,bgColor:n,children:r})}const Ql=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.loadingBalanceWidthInPx})]}),Jl=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Xl=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Be,{style:{marginLeft:"36px"},children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx,style:{marginLeft:C[4]}})]})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),ec=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(yt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Be,{style:{marginLeft:"84px"},children:t.jsx(Y,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})})}),t.jsx(wt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),tc=({rectangleWidth:e})=>t.jsx(li,{width:j.balanceWidthInPx,children:t.jsx(Y,{width:e,height:j.balanceHeightInPx})}),wt=({columns:e,rectangleWidth:n})=>t.jsx(oc,{style:{zIndex:9,width:j.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(tc,{rectangleWidth:n},i))}),nc=a.div`
750
+ display: flex;
751
+ flex: 1 1 auto;
752
+ width: fit-content;
753
+ min-width: 100%;
754
+ flex-direction: column;
755
+ height: ${e=>e.height}px;
756
+ background-color: ${e=>e.bgColor?.hex()??e.theme.colors.grey4};
757
+ `,Be=a.div`
758
+ user-select: none;
759
+ display: flex;
760
+ flex: 1 1 auto;
761
+ flex-flow: row;
762
+ justify-content: flex-start;
763
+ align-items: center;
764
+ min-height: 0;
765
+ `,oc=a.div`
766
+ display: flex;
767
+ flex: 1 0 auto;
768
+ flex-direction: row;
769
+ justify-content: flex-end;
770
+ `,li=a.div`
771
+ display: flex;
772
+ flex-direction: row;
773
+ align-items: center;
774
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
775
+ margin-right: ${j.balanceLeftMargin};
776
+ gap: ${j.balanceLeftMargin};
777
+ justify-content: flex-end;
778
+ `,yt=a(li)`
779
+ position: ${e=>e.isSticky===!0?"sticky":"static"};
780
+ left: ${s.sp0};
781
+ z-index: 10;
782
+ background-color: ${e=>e.theme.colors.grey4};
783
+ justify-content: flex-start;
784
+ `;function ci({height:e,numOfBalances:n,backgroundColor:o}){const i=W();return t.jsx(ic,{height:e,bgColor:o,children:t.jsxs(rc,{windowSize:i,children:[t.jsx(ac,{windowSize:i,width:`${j.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(lc,{children:Array.from({length:n},(r,l)=>t.jsx(si,{windowSize:i,width:j.balanceWidth,children:t.jsx(Y,{width:j.balanceWidthInPx,height:C[6]})},`timeframe-balance-${l}`))})]})})}const ic=a.div`
785
+ display: flex;
786
+ flex: 1 1 auto;
787
+ width: fit-content;
788
+ min-width: 100%;
789
+ flex-direction: column;
790
+ height: ${e=>e.height}px;
791
+ background-color: ${e=>e.bgColor?.hex()};
792
+ margin-top: 20px;
793
+ `,rc=a.div`
794
+ display: flex;
795
+ flex-direction: row;
796
+ width: 100%;
797
+ `,si=a.div`
798
+ display: flex;
799
+ flex-direction: row;
800
+ align-items: center;
801
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
802
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
803
+ color: ${e=>e.theme.colors.primary};
804
+ background-color: ${e=>e.theme.colors.grey4};
805
+ justify-content: flex-end;
806
+ :first-of-type {
807
+ justify-content: flex-start;
808
+ }
809
+ margin-right: ${j.balanceLeftMargin};
810
+ `,ac=a(si)`
811
+ position: sticky;
812
+ left: ${s.sp0};
813
+ z-index: 10;
814
+ background-color: ${e=>e.theme.colors.grey4};
815
+ `,lc=a.div`
816
+ display: flex;
817
+ flex-direction: row;
818
+ width: calc(100% - ${j.loadingInProgressStickySectionWidth}px);
819
+ justify-content: flex-end;
820
+ flex: 1 0 auto;
821
+ `,cc=a.div`
822
+ display: flex;
823
+ flex: 1 1 auto;
824
+ max-height: 1px;
825
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
826
+ `,sc=a.div`
827
+ display: flex;
828
+ flex: 1 1 auto;
829
+ max-height: 1px;
830
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
831
+ `;function yn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(cc,{"data-testid":y("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(sc,{"data-testid":y("section-row-separator",e),isScrolling:n})}}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,350,405)},dc=a.div`
832
+ display: flex;
833
+ flex: 1 1 auto;
834
+ width: fit-content;
835
+ min-width: 100%;
836
+ flex-direction: column;
837
+ height: ${e=>e.height}px;
838
+ background-color: ${e=>e.bgColor?.hex()};
839
+ `,hc=a.div`
840
+ user-select: none;
841
+ display: flex;
842
+ flex: 1 1 auto;
843
+ flex-flow: row;
844
+ justify-content: flex-start;
845
+ align-items: center;
846
+ &:hover {
847
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
848
+ }
849
+ `,uc=a.div`
850
+ display: flex;
851
+ flex: 1 0 auto;
852
+ flex-direction: row;
853
+ justify-content: flex-end;
854
+ color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
855
+ `,pc=a.div`
856
+ display: flex;
857
+ flex-direction: row;
858
+ justify-content: flex-start;
859
+ `,Dt=a(_)`
860
+ user-select: none;
861
+ min-width: ${G.balanceWidth};
862
+ max-width: ${G.balanceWidth};
863
+ text-align: right;
864
+ margin-left: ${G.balanceLeftMargin};
865
+ `,gc=a(Dt)`
866
+ color: ${e=>e.theme.colors.hero};
867
+ &:hover {
868
+ color: inherit;
869
+ }
870
+ `,xc=a.div`
871
+ display: flex;
872
+ flex-direction: row;
873
+ flex-shrink: 2;
874
+ flex-grow: 1;
875
+ align-items: center;
876
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
877
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
878
+ background-color: ${e=>e.bgColor?.hex()};
879
+ color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
880
+ ${({isSticky:e})=>e?z`
881
+ position: -webkit-sticky;
882
+ position: sticky;
883
+ top: ${s.sp0};
884
+ left: ${s.sp0};
885
+ `:null}
886
+ `,fc=a(_)`
887
+ user-select: none;
888
+ clear: both;
889
+ display: inline-block;
890
+ overflow: hidden;
891
+ white-space: nowrap;
892
+ text-overflow: ellipsis;
893
+ text-align: left;
894
+ margin-left: ${s.sp2};
895
+ `,mc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?gc:Dt;return t.jsxs(pc,{"data-testid":y("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":y("account-group-row-balance-actual",e),children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":y("account-group-row-balance-forecast",e),children:J(n)}),t.jsx(Dt,{"data-testid":y("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function wc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:p,isOpen:u,isLeaf:g,isLastNode:h,onClick:x}){const f=W(),m=!g,w=m?"pointer":"default",b=l.length>0?l.substr(0,1).toUpperCase():"",k=bc(c),v=de().colors.primary,[S,$]=V.useState(!1);return t.jsxs(dc,{"data-testid":y("account-group-row-root-container",e),height:r,bgColor:n,windowSize:f,children:[t.jsxs(hc,{"data-testid":y("account-group-row-container",e),style:{cursor:w},isClickable:m,onClick:()=>x?.(i),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(xc,{"data-testid":y("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:f,hasNonZeroBalance:k,children:[t.jsx(ve,{"data-testid":y("account-group-row-circle-with-letter",e),color:I(v),showCollapsedIcon:!u,showIcon:m&&S,firstLetter:b}),t.jsx(fc,{"data-testid":y("account-group-row-name",e),children:l})]}),t.jsx(uc,{"data-testid":y("account-group-row-balances-container",e),hasNonZeroBalance:k,children:c.map((B,L)=>t.jsx(mc,{"data-testid":y("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:B,compareMode:d,collapsed:!1},L))})]}),t.jsx(yc,{isScrolling:p,isLeaf:g,isLastNode:h,isOpen:u})]})}function yc({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return!n&&i&&o?null:t.jsx(yn,{isScrolling:e,kind:"ac_group_row_separator"})}const bc=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n};function Ge(e){return typeof e=="object"&&e!==null&&"depth"in e&&typeof e.depth=="number"&&!("filter"in e)}function bt(e,n){if(e!=null&&n!=null&&Ge(e)===!0){if(n.id==="__horizontal_total__")return{isHorizontalClassTotalColumn:!0};if(n.id!=null)return{isHorizontalClassColumn:!0}}}const kc=a.div`
896
+ display: flex;
897
+ flex: 1 1 auto;
898
+ width: fit-content;
899
+ min-width: 100%;
900
+ flex-direction: column;
901
+ height: ${e=>e.height}px;
902
+ background-color: ${e=>e.bgColor?.hex()};
903
+ `,jc=a.div`
904
+ user-select: none;
905
+ display: flex;
906
+ flex: 1 1 auto;
907
+ flex-flow: row;
908
+ justify-content: flex-start;
909
+ align-items: center;
910
+ &:hover {
911
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
912
+ }
913
+ `,Sc=a.div`
914
+ display: flex;
915
+ flex: 1 0 auto;
916
+ flex-direction: row;
917
+ justify-content: flex-end;
918
+ `,Cc=a.div`
919
+ display: flex;
920
+ flex-direction: row;
921
+ justify-content: flex-start;
922
+ `,Wt=a(_)`
923
+ user-select: none;
924
+ min-width: ${G.balanceWidth};
925
+ max-width: ${G.balanceWidth};
926
+ text-align: right;
927
+ margin-left: ${G.balanceLeftMargin};
928
+ color: ${e=>e.theme.colors.hero};
929
+ cursor: ${e=>e.isClickable?"pointer":"default"};
930
+ &:hover {
931
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
932
+ }
933
+ `,vc=a.div`
934
+ display: flex;
935
+ flex-direction: row;
936
+ flex-shrink: 2;
937
+ flex-grow: 1;
938
+ align-items: center;
939
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
940
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
941
+ background-color: ${e=>e.bgColor?.hex()};
942
+ ${({isSticky:e})=>e?z`
943
+ position: -webkit-sticky;
944
+ position: sticky;
945
+ top: ${s.sp0};
946
+ left: ${s.sp0};
947
+ `:null}
948
+ `,$c=a(_)`
949
+ user-select: none;
950
+ clear: both;
951
+ display: inline-block;
952
+ overflow: hidden;
953
+ white-space: nowrap;
954
+ text-overflow: ellipsis;
955
+ text-align: left;
956
+ margin-left: 35px;
957
+ color: ${e=>e.theme.colors.hero};
958
+ `,_c=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const l=o!=null&&n!=null&&i!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Cc,{children:[t.jsx(Wt,{isClickable:l,onClick:()=>{l===!0&&o!=null&&n!=null&&i?.(o,n,bt(o,n))},children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{isClickable:!1,children:J(n)}),t.jsx(Wt,{isClickable:!1,children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Lc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:p,isLeaf:u,isLastNode:g,compareMode:h,account:x,onAccountBalanceClick:f}){const m=W(),{common:{strings:{empty:w}}}=N.getLocalizedStrings(),b=x?.accountDescription?x.accountDescription:w,k=x?.accountName?x.accountName:b,v=en(),S=v.loggedInUserRole!=null&&!vo(v.loggedInUserRole),$=S===!0&&x!=null&&c!==!0&&f!=null&&d!==!0,B=$?"pointer":"default";return t.jsxs(kc,{height:r,bgColor:n,windowSize:m,children:[t.jsxs(jc,{style:{cursor:B},isClickable:$,onClick:()=>{return x!=null?(L=i,M=x,void($===!0&&l[l.length-1]!=null&&f?.(L,M,l[l.length-1],bt(M,l[l.length-1]??null)))):null;var L,M},children:[t.jsx(vc,{isSticky:o,windowSize:m,bgColor:n,children:t.jsx($c,{title:k,children:k})}),t.jsx(Sc,{children:l.map((L,M)=>t.jsx(_c,{type:e,balance:L,account:x,onAccountBalanceClick:S===!1||f==null?void 0:(T,D,K)=>{f(i,T,D,K)},compareMode:h},M))})]}),t.jsx(Ac,{isScrolling:p,isLeaf:u,isLastNode:g})]})}function Ac({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(yn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const Bc=a.div`
959
+ display: flex;
960
+ flex: 1 1 auto;
961
+ width: fit-content;
962
+ min-width: 100%;
963
+ flex-direction: column;
964
+ height: ${e=>e.rootHeight-1}px;
965
+ background-color: ${e=>e.bgColor?.hex()};
966
+ `,Ic=a.div`
967
+ user-select: none;
968
+ display: flex;
969
+ flex: 1 1 auto;
970
+ flex-flow: row;
971
+ justify-content: flex-start;
972
+ align-items: center;
973
+ `,Oc=a.div`
974
+ display: flex;
975
+ flex: 1 0 auto;
976
+ flex-direction: row;
977
+ justify-content: flex-end;
978
+ `,Qn=a.div`
979
+ display: flex;
980
+ flex-direction: row;
981
+ justify-content: flex-start;
982
+ `,Ie=a(_)`
983
+ user-select: none;
984
+ max-width: ${G.balanceWidth};
985
+ min-width: ${G.balanceWidth};
986
+ text-align: right;
987
+ margin-left: ${G.balanceLeftMargin};
988
+ `,Jn=a(_)`
989
+ user-select: none;
990
+ max-width: ${G.balanceWidth};
991
+ min-width: ${G.balanceWidth};
992
+ text-align: right;
993
+ margin-left: ${G.balanceLeftMargin};
994
+ `,Nc=a.div`
995
+ display: flex;
996
+ flex-direction: column;
997
+ align-items: flex-end;
998
+ `,Mc=a.div`
999
+ display: flex;
1000
+ flex-direction: row;
1001
+ flex-shrink: 2;
1002
+ flex-grow: 1;
1003
+ align-items: center;
1004
+ height: ${s.sp7};
1005
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
1006
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
1007
+ background-color: ${e=>e.bgColor?.hex()};
1008
+ ${({isSticky:e})=>e?z`
1009
+ position: -webkit-sticky;
1010
+ position: sticky;
1011
+ top: ${s.sp0};
1012
+ left: ${s.sp0};
1013
+ `:null}
1014
+ `,Wc=a(_)`
1015
+ user-select: none;
1016
+ user-select: none;
1017
+ clear: both;
1018
+ display: inline-block;
1019
+ overflow: hidden;
1020
+ white-space: nowrap;
1021
+ text-overflow: ellipsis;
1022
+ text-align: left;
1023
+ margin-left: ${s.sp2};
1024
+ `,Pc=({type:e,balance:n,color:o,compareMode:i})=>{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(Nc,{children:[t.jsxs(Qn,{children:[t.jsx(Ie,{style:{color:o.toString()},children:q(n)}),Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ie,{style:{color:o.toString()},children:J(n)}),t.jsx(Ie,{style:{color:o.toString()},children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]}),t.jsxs(Qn,{children:[r!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",r)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Jn,{style:{color:o.toString()},children:ye("0,0%",l)}):t.jsx(Ie,{}),t.jsx(Ie,{})]}):null]})]})};function bn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:p,isOpen:u,isLeaf:g,compareMode:h,onClick:x}){const f=W(),[m,w]=V.useState(!1),b=!g,k=b?"pointer":"default",v=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(Bc,{"data-testid":y("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:f,children:[t.jsxs(Ic,{"data-testid":y("section-row-container",i),style:{cursor:k},onClick:()=>x?.(i),onMouseOver:()=>w(!0),onMouseLeave:()=>w(!1),children:[t.jsxs(Mc,{"data-testid":y("section-row-name-container",i),isSticky:o,windowSize:f,bgColor:n,children:[t.jsx(ve,{"data-testid":y("section-row-circle-with-letter",i),color:I(d),showCollapsedIcon:!u,showIcon:b&&m,firstLetter:v}),t.jsx(Wc,{"data-testid":y("section-row-name",i),style:{color:d.toString()},children:l})]}),t.jsx(Oc,{"data-testid":y("section-row-balances-container",i),children:c.map((S,$)=>t.jsx(Pc,{"data-testid":y("section-row-balance-element",e),type:e,sectionName:l,balance:S,color:d,compareMode:h},$))})]}),t.jsx(Fc,{isScrolling:p,isLeaf:g,isOpen:u})]})}function Fc({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(yn,{isScrolling:e,kind:"section_row_separator"}):null}const zc=a.div`
1025
+ display: flex;
1026
+ flex: 1 1 auto;
1027
+ width: fit-content;
1028
+ min-width: 100%;
1029
+ flex-direction: column;
1030
+ height: ${e=>e.height}px;
1031
+ background-color: ${e=>e.bgColor?.hex()};
1032
+ `,Tc=a.div`
1033
+ user-select: none;
1034
+ display: flex;
1035
+ flex: 1 1 auto;
1036
+ flex-flow: row;
1037
+ justify-content: flex-start;
1038
+ align-items: center;
1039
+ `,Vc=a.div`
1040
+ display: flex;
1041
+ flex: 1 0 auto;
1042
+ flex-direction: row;
1043
+ justify-content: flex-end;
1044
+ `,Dc=a.div`
1045
+ display: flex;
1046
+ flex-direction: row;
1047
+ justify-content: flex-start;
1048
+ `,di=a(_)`
1049
+ user-select: none;
1050
+ min-width: ${G.balanceWidth};
1051
+ max-width: ${G.balanceWidth};
1052
+ text-align: right;
1053
+ margin-left: ${G.balanceLeftMargin};
1054
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1055
+ `,Ec=a(di)`
1056
+ color: ${e=>e.theme.colors.hero};
1057
+ &:hover {
1058
+ color: inherit;
1059
+ }
1060
+ `,Gc=a.div`
1061
+ display: flex;
1062
+ flex-direction: row;
1063
+ flex-shrink: 2;
1064
+ flex-grow: 1;
1065
+ align-items: center;
1066
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
1067
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
1068
+ background-color: ${e=>e.bgColor?.hex()};
1069
+ ${({isSticky:e})=>e?z`
1070
+ position: -webkit-sticky;
1071
+ position: sticky;
1072
+ top: ${s.sp0};
1073
+ left: ${s.sp0};
1074
+ `:null}
1075
+ `,Rc=a(_)`
1076
+ user-select: none;
1077
+ clear: both;
1078
+ display: inline-block;
1079
+ overflow: hidden;
1080
+ white-space: nowrap;
1081
+ text-overflow: ellipsis;
1082
+ text-align: left;
1083
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1084
+ `,Pt=a(_)`
1085
+ user-select: none;
1086
+ min-width: ${G.balanceWidth};
1087
+ max-width: ${G.balanceWidth};
1088
+ text-align: right;
1089
+ margin-left: ${G.balanceLeftMargin};
1090
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1091
+ `,Hc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Ec:di;return t.jsxs(Dc,{children:[ae(e)===!0?t.jsx(r,{children:q(n)}):null,Ee(e)?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{children:q(n)}),t.jsx(Pt,{children:J(n)}),t.jsx(Pt,{children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Kc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:p,onClick:u}){const g=W(),h=!d,x=h?"pointer":"default";return t.jsx(zc,{height:r,bgColor:n,windowSize:g,children:t.jsxs(Tc,{style:{cursor:x},isClickable:h,onClick:()=>u?.(i),children:[t.jsx(Gc,{bgColor:n,isSticky:o,windowSize:g,children:t.jsx(Rc,{children:l})}),t.jsx(Vc,{children:c.map((f,m)=>t.jsx(Hc,{type:e,balance:f,collapsed:!1,compareMode:p},m))})]})})}const Le={net_burn_or_income:{income:{color:new I(O.graphColor04),hoverColor:new I(O.graphColor04Dark)},cogs:{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)},expenses:{color:new I(O.graphColor32),hoverColor:new I(O.graphColor32Dark)},"Gross Burn":{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)},"Net Burn":{color:new I(O.graphColor13),hoverColor:new I(O.graphColor13Dark)},"Net Income":{color:new I(O.graphColor13),hoverColor:new I(O.graphColor13Dark)}},revenue:{income:{color:new I(O.graphColor28),hoverColor:new I(O.graphColor28Dark)},cogs:{color:new I(O.graphColor17),hoverColor:new I(O.graphColor17Dark)},"Gross Margin":{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new I(O.graphColor33),hoverColor:new I(O.graphColor33Dark)},cash_out:{color:new I(O.graphColor02),hoverColor:new I(O.graphColor02Dark)},"Net Cash Flow":{color:new I(O.graphColor35),hoverColor:new I(O.graphColor35Dark)}},default:{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)}},kn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?Le.net_burn_or_income[n]:Le.default:e.startsWith("revenue")===!0?n!=null?Le.revenue[n]:Le.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?Le.cash_in_cash_out[n]:Le.default,hi=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=kn(o.config.reportId,o.element.sectionType),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(bn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionColor:x.color,sectionName:o.element.title,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},ui=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=kn(o.config.reportId,o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(bn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x.color,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,compareMode:g,onClick:m=>{h?.(m)}})},pi=(e,n,o,i,r,l,c,d)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const p=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Kc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:o.element.title,height:i,isLeaf:d,compareMode:c,totalBalances:p.balances})},mg=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},Uc=a.div`
1092
+ display: flex;
1093
+ flex: 1 1 auto;
1094
+ height: 1px;
1095
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
1096
+ `,Zc=a.div`
1097
+ display: flex;
1098
+ height: 1px;
1099
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
+ `;function Et({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(Zc,{isScrolling:n});case"heading_row_separator":return null}}const qc=a.div`
1101
+ position: relative;
1102
+ `,Qc=a.div`
1103
+ height: ${e=>e.height}px;
1104
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1105
+ width: 1px;
1106
+ `;a.div`
1107
+ height: 39px;
1108
+ width: 2px;
1109
+ `;const Jc=a.div`
1110
+ position: relative;
1111
+ margin-right: ${s.sp3};
1112
+ &::after {
1113
+ content: "";
1114
+ position: absolute;
1115
+ top: 20px;
1116
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1117
+ width: 18px;
1118
+ }
1119
+ `,Xc=a.div`
1120
+ height: ${s.sp6};
1121
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1122
+ width: 1px;
1123
+ `,es=a.div`
1124
+ position: relative;
1125
+ margin-right: ${s.sp3};
1126
+ &::after {
1127
+ content: "";
1128
+ position: absolute;
1129
+ top: ${e=>e.height}px;
1130
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1131
+ width: 18px;
1132
+ }
1133
+ `,ts=a.div`
1134
+ height: ${e=>e.height}px;
1135
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1136
+ margin-bottom: ${e=>e.height}px;
1137
+ width: 1px;
1138
+ `,gi=({height:e})=>t.jsx(qc,{children:t.jsx(Qc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),os=()=>t.jsx(Jc,{children:t.jsx(Xc,{})}),is=s.sp4,xi="126px",me="128px",kt="12px",jt="12px",pt="685px",jn="628px",Xn="685px",rs="182px",gt="184px",Se="144px",xt="12px",eo="685px",fi="250px",ft="250px",as=39,ls=19.5,cs=16,Fe=128,to=168,ze="180px",no="300px",mi="210px",ss="128px";function wi(e,n=!1){switch(e){case"section":case"flux_vendor_row":case"timeframe_headers":case"total":case"loading_in_progress":case"headers_loading_in_progress":return C[8];case"flux_vendor_account_class_row":return n?C[9]:C[6];default:return 0}}const oo=N.getLocalizedStrings(),ds=a.div`
1139
+ display: flex;
1140
+ flex-shrink: 0;
1141
+ width: ${gt};
1142
+ min-width: ${gt};
1143
+ margin-left: 12px;
1144
+ gap: ${s.sp1};
1145
+ flex-direction: row;
1146
+ justify-content: flex-end;
1147
+ text-align: center;
1148
+ `,hs=a.div`
1149
+ height: ${s.sp4};
1150
+ border-radius: ${s.sp1};
1151
+ padding: 2px ${s.sp1};
1152
+ color: ${e=>e.textColor.hex()};
1153
+ `,us=a.div`
1154
+ border-radius: ${s.sp1};
1155
+ padding: 2px ${s.sp1};
1156
+ height: ${s.sp4};
1157
+ justify-content: center;
1158
+ text-align: center;
1159
+ color: ${e=>e.textColor.hex()};
1160
+ background-color: ${e=>e.bgColor.hex()};
1161
+ `,St=({amount:e,percentage:n,currency:o})=>{const i=de();return t.jsxs(ds,{children:[t.jsx(hs,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),children:Z("0,0",br(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(us,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),bgColor:new I(e>0?ee.brandColorGoldLight:ee.successLight),children:`${lr(Math.abs(n)).format(oo.common.numberFormat.roundedOff)}${oo.common.strings.percentage}`})]})},io=N.getLocalizedStrings(),ps=a.div`
1162
+ display: flex;
1163
+ flex: 1 1 auto;
1164
+ width: fit-content;
1165
+ min-width: 100%;
1166
+ flex-direction: column;
1167
+ `,gs=a.div`
1168
+ display: flex;
1169
+ flex: 1 1 auto;
1170
+ flex-flow: row;
1171
+ justify-content: flex-start;
1172
+ align-items: center;
1173
+ width: 100%;
1174
+ color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
1175
+ &:hover {
1176
+ color: ${e=>e.theme.colors.primary};
1177
+ }
1178
+ `,yi=a.div`
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ `,bi=a.div`
1182
+ display: flex;
1183
+ height: ${s.sp4};
1184
+ `,xs=a.div`
1185
+ display: flex;
1186
+ flex-direction: row;
1187
+ justify-content: flex-start;
1188
+ `,fs=a(_)`
1189
+ min-width: ${me};
1190
+ max-width: ${me};
1191
+ text-align: right;
1192
+ margin-left: 12px;
1193
+ `,ms=a.div`
1194
+ display: flex;
1195
+ flex-direction: column;
1196
+ flex-shrink: 2;
1197
+ flex-grow: 1;
1198
+ align-items: center;
1199
+ width: ${eo};
1200
+ max-width: ${eo};
1201
+ padding-left: 67.5px;
1202
+ ${({isSticky:e})=>e?z`
1203
+ position: sticky;
1204
+ top: ${s.sp0};
1205
+ left: ${s.sp0};
1206
+ display: flex;
1207
+ `:null}
1208
+ `,ws=a.div`
1209
+ display: flex;
1210
+ height: ${s.sp4};
1211
+ width: 100%;
1212
+ `,ys=a.div`
1213
+ display: flex;
1214
+ flex-direction: row;
1215
+ flex-shrink: 2;
1216
+ flex-grow: 1;
1217
+ align-items: center;
1218
+ width: 100%;
1219
+ `,bs=a(Ce)`
1220
+ display: flex;
1221
+ width: ${fi};
1222
+ margin-left: ${s.sp3};
1223
+ color: ${e=>e.theme.colors.hero};
1224
+ `,ks=a(Ce)`
1225
+ display: flex;
1226
+ width: ${fi};
1227
+ margin-left: ${s.sp4};
1228
+ color: ${e=>e.theme.colors.hero};
1229
+ `,js=a(_)`
1230
+ clear: both;
1231
+ display: flex;
1232
+ overflow: hidden;
1233
+ white-space: nowrap;
1234
+ text-overflow: ellipsis;
1235
+ text-align: left;
1236
+ margin-left: 2px;
1237
+ width: ${ft};
1238
+ max-width: ${ft};
1239
+ `,Ss=a(_)`
1240
+ display: flex;
1241
+ align-items: center;
1242
+ overflow: hidden;
1243
+ white-space: nowrap;
1244
+ text-overflow: ellipsis;
1245
+ text-align: left;
1246
+ margin-left: ${s.sp4};
1247
+ margin-right: ${s.sp3};
1248
+ width: ${ft};
1249
+ max-width: ${ft};
1250
+ `,Cs=a.div`
1251
+ display: flex;
1252
+ margin-left: ${s.sp7};
1253
+ margin-right: calc(
1254
+ ${Se} +
1255
+ ${jt}
1256
+ );
1257
+ `,vs=a.div`
1258
+ position: sticky;
1259
+ left: 0;
1260
+ background-color: ${e=>e.theme.colors.grey4};
1261
+ display: flex;
1262
+ `,$s=a.div`
1263
+ overflow-x: auto;
1264
+ display: flex;
1265
+ flex: 1;
1266
+ justify-content: flex-end;
1267
+ `,_s=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(yi,{children:[e?t.jsx(bi,{}):null,t.jsx(xs,{children:t.jsx(fs,{isClickable:o,children:q(n)})})]})};function Ls({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:p,accountAndClass:u,isHoveredByParent:g}){const{common:{strings:{hyphen:h}}}=N.getLocalizedStrings(),x=u.accountBase?.accountDescription?u.accountBase?.accountDescription:h,f=u.accountBase?.accountName?u.accountBase?.accountName:x,m=u.classBase?.className?u.classBase?.className:h,w=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(ps,{children:[t.jsxs(gs,{style:{cursor:"default"},isHoveredByParent:g,children:[t.jsx(vs,{children:t.jsxs(ms,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(ws,{children:[t.jsx(gi,{height:as}),t.jsx(bs,{children:io.common.texts.category}),t.jsx(ks,{children:io.common.texts.class})]}),t.jsxs(ys,{children:[w===!0?t.jsx(ns,{height:ls}):t.jsx(os,{}),t.jsx(js,{title:f,children:f}),t.jsx(Ss,{title:m,children:m})]})]})}),t.jsx($s,{children:t.jsxs(Cs,{children:[r.map((b,k)=>t.jsx(_s,{balance:b,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},k)),t.jsxs(yi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(bi,{}),t.jsx(St,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(As,{isScrolling:l,isLeaf:d,isLastNode:p,isParentLastChild:c?.isVendorLastChild??!0})]})}function As({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Et,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Et,{isScrolling:e,kind:"account_class_row_separator"}):null}function Bs(){return t.jsxs(Is,{children:[t.jsxs(Ns,{children:[t.jsxs(Ae,{width:no,className:"vendor-title",children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(Y,{width:to,height:C[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(Ae,{width:no,children:t.jsx(Y,{width:to,height:C[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(Os,{children:[t.jsx(Ae,{width:ze,children:t.jsx(Y,{width:Fe,height:C[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ae,{width:ze,children:t.jsx(Y,{width:Fe,height:C[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Ae,{width:mi,children:[t.jsx(Y,{width:Fe,height:C[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Y,{width:C[7],height:C[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(Ae,{width:ze,children:t.jsx(Y,{width:70,height:C[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const Is=a.div`
1268
+ display: flex;
1269
+ flex-direction: row;
1270
+ width: 100%;
1271
+ margin-left: ${s.sp8};
1272
+ .vendor-title {
1273
+ justify-content: flex-start;
1274
+ }
1275
+ `,Ae=a.div`
1276
+ display: flex;
1277
+ flex-direction: row;
1278
+ align-items: center;
1279
+ min-width: ${e=>e.width};
1280
+ color: ${e=>e.theme.colors.primary};
1281
+ background-color: ${e=>e.theme.colors.grey4};
1282
+ justify-content: flex-end;
1283
+
1284
+ :last-of-type {
1285
+ justify-content: center;
1286
+ }
1287
+ `,Os=a.div`
1288
+ display: flex;
1289
+ `,Ns=a.div`
1290
+ display: flex;
1291
+ width: ${jn};
1292
+ position: sticky;
1293
+ left: ${s.sp8};
1294
+ top: 0;
1295
+ z-index: 10;
1296
+ `,Ms=a.div`
1297
+ display: flex;
1298
+ flex: 1 1 auto;
1299
+ width: fit-content;
1300
+ min-width: 100%;
1301
+ flex-direction: column;
1302
+ height: ${e=>e.heightValue}px;
1303
+ background-color: ${e=>e.bgColor?.hex()};
1304
+ `,Ws=a.div`
1305
+ display: flex;
1306
+ flex: 1 1 auto;
1307
+ flex-flow: row;
1308
+ justify-content: flex-start;
1309
+ align-items: center;
1310
+ `,Ps=a.div`
1311
+ display: flex;
1312
+ flex-direction: row;
1313
+ justify-content: flex-start;
1314
+ `,Fs=a(_)`
1315
+ max-width: ${me};
1316
+ min-width: ${me};
1317
+ text-align: right;
1318
+ margin-left: ${kt};
1319
+ color: ${({color:e})=>e};
1320
+ `,zs=a.div`
1321
+ display: flex;
1322
+ flex-direction: row;
1323
+ flex-shrink: 2;
1324
+ align-items: center;
1325
+ height: 100%;
1326
+ width: ${Xn};
1327
+ min-width: ${Xn};
1328
+ background-color: ${e=>e.bgColor?.hex()};
1329
+ ${({isSticky:e})=>e&&z`
1330
+ position: sticky;
1331
+ top: ${s.sp0};
1332
+ left: ${s.sp0};
1333
+ `}
1334
+ `,Ts=a(_)`
1335
+ clear: both;
1336
+ display: inline-block;
1337
+ overflow: hidden;
1338
+ white-space: nowrap;
1339
+ text-overflow: ellipsis;
1340
+ text-align: left;
1341
+ margin-left: ${s.sp2};
1342
+ color: ${({color:e})=>e};
1343
+ `,Vs=a(tn)`
1344
+ color: ${e=>e.theme.colors.primary};
1345
+ width: ${s.sp3};
1346
+ height: ${s.sp3};
1347
+ `,Ds=a.div`
1348
+ display: flex;
1349
+ &:hover {
1350
+ .flux-section-checkbox {
1351
+ background-color: transparent;
1352
+ }
1353
+ }
1354
+ `,Es=a.div`
1355
+ display: flex;
1356
+ width: ${s.sp8};
1357
+ `,Gs=a.div`
1358
+ display: flex;
1359
+ margin-left: ${s.sp7};
1360
+ flex: 1 1 auto;
1361
+ justify-content: flex-end;
1362
+ margin-right: calc(
1363
+ ${Se} +
1364
+ ${jt}
1365
+ );
1366
+ `,Rs=({balance:e,color:n})=>t.jsx(Ps,{children:t.jsx(Fs,{color:n,children:q(e)})}),Hs=mr.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:p,sectionBalances:u,varianceAmount:g,variancePercentage:h,sectionColor:x,isScrolling:f,isOpen:m,isLeaf:w,idsForReview:b,sectionToggled:k,onSectionCheckboxClick:v}){const S=W(),[$,B]=V.useState(b.length>0),[L,M]=V.useState(!1),T=o.includes(n),D=!w,K=b.length===20&&!T,X=d?.[0]?.toUpperCase()??"",Q=V.useCallback(re=>{v?.(n,re.target.checked)},[n,v]),ie=y("flux-analysis-section-expand-collapse",n),he=y("flux-analysis-section-row",n),le=y("flux-analysis-section-checkbox",n);return t.jsxs(Ms,{heightValue:c,bgColor:i,"data-testid":he,children:[t.jsxs(Ws,{style:{cursor:D?"pointer":"default"},onClick:()=>k?.(l),onMouseOver:()=>{M(!0),B(!0)},onMouseLeave:()=>{M(!1),b.length===0&&B(!1)},children:[t.jsxs(zs,{className:"flux-section-name-container",isSticky:r,windowSize:S,bgColor:i,children:[p&&$&&m?t.jsx(Ds,{children:t.jsx(qt,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox","data-testid":le,icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Vs,{}),checked:T,id:l,disabled:K,onChange:Q,onClick:re=>re.stopPropagation(),style:{padding:"20px",pointerEvents:K?"none":"auto"}})}):t.jsx(Es,{}),t.jsx(ve,{color:I(x),dataTestId:ie,firstLetter:X,showCollapsedIcon:!m,showIcon:L&&D}),t.jsx(Ts,{color:x.toString(),children:d})]}),t.jsxs(Gs,{children:[u.map((re,be)=>t.jsx(Rs,{sectionName:d,balance:re,color:x.toString()},be)),t.jsx(St,{amount:g,percentage:h,currency:e})]})]}),t.jsx(Ks,{isScrolling:f,isLeaf:w,isOpen:m})]})});function Ks({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Et,{isScrolling:e,kind:"section_row_separator"}):null}function Ys(){const e=W();return t.jsxs(Us,{windowSize:e,children:[t.jsx(Oe,{windowSize:e,width:jn,marginRight:0,children:t.jsx(Y,{width:C[9],height:C[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Oe,{windowSize:e,width:ze,marginRight:0,children:t.jsx(Y,{width:128,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:ze,marginRight:0,children:t.jsx(Y,{width:Fe,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:mi,children:t.jsx(Y,{width:184,height:C[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Oe,{windowSize:e,width:ss,children:t.jsx(Y,{width:Fe,height:C[6],style:{display:"flex",alignItems:"center"}})})]})}const Us=a.div`
1367
+ display: flex;
1368
+ flex-direction: row;
1369
+ width: 100%;
1370
+ margin-left: ${s.sp8};
1371
+ `,Oe=a.div`
1372
+ display: flex;
1373
+ flex-direction: row;
1374
+ align-items: center;
1375
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
1376
+ min-width: ${e=>e.width};
1377
+ color: ${e=>e.theme.colors.primary};
1378
+ background-color: ${e=>e.theme.colors.grey4};
1379
+ justify-content: flex-end;
1380
+ :first-of-type {
1381
+ justify-content: flex-start;
1382
+ }
1383
+ `,{common:Zs,expenseAutomation:{fluxAnalysis:qs},vendors:{opExByVendor:Qs}}=N.getLocalizedStrings(),Js=a.div`
1384
+ display: flex;
1385
+ flex: 1 1 auto;
1386
+ width: fit-content;
1387
+ min-width: 100%;
1388
+ height: ${e=>`${e.heightValue}px`};
1389
+ flex-flow: row;
1390
+ justify-content: flex-start;
1391
+ align-items: center;
1392
+ background-color: ${e=>e.bgColor?.hex()};
1393
+ `,Gt=a.div`
1394
+ display: flex;
1395
+ max-height: ${s.sp8};
1396
+ min-height: ${s.sp8};
1397
+ min-width: ${e=>e.width!=null?e.width:xi};
1398
+ justify-content: center;
1399
+ align-items: center;
1400
+ background-color: ${e=>e.theme.colors.background};
1401
+ border: 1px solid ${e=>e.theme.colors.grey3};
1402
+ border-radius: ${s.sp2};
1403
+ margin-left: ${kt};
1404
+ color: ${e=>e.theme.colors.primary};
1405
+ cursor: ${e=>e.isClickable?"pointer":"default"};
1406
+ `,Xs=a(_)`
1407
+ display: flex;
1408
+ flex-direction: row;
1409
+ justify-content: center;
1410
+ align-items: center;
1411
+ height: ${is};
1412
+ max-width: ${xi};
1413
+ width: 138px;
1414
+ text-align: center;
1415
+ `,ed=a.div`
1416
+ display: flex;
1417
+ cursor: pointer;
1418
+ `,td=a.div`
1419
+ display: flex;
1420
+ cursor: pointer;
1421
+ justify-content: center;
1422
+ align-items: center;
1423
+ color: ${e=>e.theme.colors.primary};
1424
+ `,nd=a.div`
1425
+ display: flex;
1426
+ flex-direction: row;
1427
+ z-index: 1;
1428
+ background-color: ${e=>e.theme.colors.grey4};
1429
+ padding-left: ${s.sp8};
1430
+ ${({isSticky:e})=>e?z`
1431
+ top: ${s.sp0};
1432
+ left: ${s.sp0};
1433
+ display: flex;
1434
+ position: sticky;
1435
+ `:null};
1436
+ `,od=a.div`
1437
+ height: ${s.sp8};
1438
+ display: flex;
1439
+ flex-direction: row;
1440
+ align-items: center;
1441
+ min-width: ${jn};
1442
+ color: ${e=>e.theme.colors.primary};
1443
+ background-color: ${e=>e.theme.colors.grey4};
1444
+ `,id=a(_)`
1445
+ display: flex;
1446
+ gap: 6px;
1447
+ align-items: baseline;
1448
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1449
+ `,Rt=a.div`
1450
+ display: flex;
1451
+ cursor: pointer;
1452
+ `,Ht=a.div`
1453
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
+ `,Kt=a(on)`
1455
+ width: ${xt};
1456
+ height: ${xt};
1457
+ margin-left: ${s.sp2};
1458
+ margin-top: ${s.sp1};
1459
+ `,Yt=a(rn)`
1460
+ width: ${xt};
1461
+ height: ${xt};
1462
+ margin-left: ${s.sp2};
1463
+ margin-top: ${s.sp1};
1464
+ `,rd=a.div`
1465
+ display: flex;
1466
+ margin-left: ${s.sp7};
1467
+ flex: 1 1 auto;
1468
+ justify-content: flex-end;
1469
+ `,ad=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Gt,{isClickable:!1,children:t.jsx(Xs,{children:Ye(e,n,o)})}),ld=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(ad,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),cd=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=e==="vendor"?n:"ascending";return t.jsx(id,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Rt,{onClick:()=>{i(n==="ascending"?"descending":"ascending","vendor")},"data-testid":y("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Qs.vendor,t.jsx(Ht,{isBulkSelected:o,isSortedByKey:e==="vendor",children:r==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})};function sd({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:p}){const u=W();return t.jsxs(Js,{heightValue:n,bgColor:e,children:[t.jsx(nd,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(od,{windowSize:u,children:t.jsx(cd,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:(g,h)=>{p?.(g,h)}})})}),t.jsxs(rd,{children:[d.map((g,h)=>t.jsx(ld,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},h)),t.jsx(Gt,{isClickable:!1,width:rs,children:t.jsxs(Rt,{onClick:()=>p?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":y("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(ed,{children:qs.variance}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})}),t.jsx(Gt,{isClickable:!1,width:Se,children:t.jsxs(Rt,{onClick:()=>{p?.(r==="ascending"?"descending":"ascending","status")},"data-testid":y("flux-analysis-report-timeframe-row-status"),children:[t.jsx(td,{children:Zs.texts.reviewStatus}),t.jsx(Ht,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Kt,{}):t.jsx(Yt,{})})]})})]})]})}const dd=a.div`
1470
+ display: flex;
1471
+ flex: 1 1 auto;
1472
+ width: fit-content;
1473
+ min-width: 100%;
1474
+
1475
+ flex-direction: column;
1476
+ height: ${e=>`${e.heightValue}px`};
1477
+ background-color: ${e=>e.bgColor?.hex()};
1478
+ `,hd=a.div`
1479
+ cursor: default;
1480
+ user-select: none;
1481
+ display: flex;
1482
+ flex: 1 1 auto;
1483
+ flex-flow: row;
1484
+ justify-content: flex-start;
1485
+ align-items: center;
1486
+ `,ud=a.div`
1487
+ display: flex;
1488
+ flex-direction: row;
1489
+ `,pd=a.div`
1490
+ display: flex;
1491
+ flex-direction: row;
1492
+ justify-content: flex-start;
1493
+ align-items: center;
1494
+ margin-left: ${kt};
1495
+ `,gd=a(ne)`
1496
+ user-select: none;
1497
+ min-width: ${me};
1498
+ max-width: ${me};
1499
+ text-align: right;
1500
+ color: ${e=>e.theme.colors.hero};
1501
+ border: 1px solid transparent;
1502
+ `,xd=a.div`
1503
+ display: flex;
1504
+ flex-direction: row;
1505
+ align-items: center;
1506
+ flex-shrink: 2;
1507
+ flex-grow: 1;
1508
+ width: ${pt};
1509
+ max-width: ${pt};
1510
+ height: 100%;
1511
+ background-color: ${e=>e.theme.colors.grey4};
1512
+ position: sticky;
1513
+ left: ${s.sp8};
1514
+ top: 0;
1515
+ z-index: 10;
1516
+ `,fd=a(ne)`
1517
+ user-select: none;
1518
+ clear: both;
1519
+ display: inline-block;
1520
+ overflow: hidden;
1521
+ white-space: nowrap;
1522
+ text-overflow: ellipsis;
1523
+ text-align: left;
1524
+ color: ${e=>e.theme.colors.primary};
1525
+ `,md=a.div`
1526
+ display: flex;
1527
+ width: ${Se};
1528
+ min-width: ${Se};
1529
+ justify-content: center;
1530
+ flex-direction: row;
1531
+ margin-left: ${jt};
1532
+ `,wd=a.div`
1533
+ display: flex;
1534
+ margin-left: ${s.sp7};
1535
+ flex: 1 1 auto;
1536
+ justify-content: flex-end;
1537
+ `,yd=({balance:e})=>t.jsx(pd,{children:t.jsx(gd,{children:Z("0,0",e?.balance)})});function bd({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(dd,{"data-testid":y("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(hd,{"data-testid":y("total-row-container"),children:[t.jsx(xd,{className:"flux-total-row",children:t.jsx(fd,{children:o})}),t.jsxs(wd,{children:[t.jsx(ud,{children:ae(e)&&i.map((p,u)=>t.jsx(yd,{balance:p},u))}),t.jsx(St,{amount:r,percentage:l,currency:c}),t.jsx(md,{})]})]})})}const kd=a.div`
1538
+ display: flex;
1539
+ flex: 1 1 auto;
1540
+ width: fit-content;
1541
+ min-width: 100%;
1542
+ flex-direction: column;
1543
+ height: ${e=>`${e.heightValue}px`};
1544
+ background-color: ${e=>e.bgColor?.hex()};
1545
+ `,jd=a.div`
1546
+ user-select: none;
1547
+ display: flex;
1548
+ flex: 1 1 auto;
1549
+ flex-flow: row;
1550
+ justify-content: flex-start;
1551
+ align-items: center;
1552
+ cursor: pointer;
1553
+ color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
1554
+ &:hover {
1555
+ color: ${e=>e.theme.colors.primary};
1556
+ .flux-vendor-chevron-icon,
1557
+ .flux-vendor-collapsable-chevron-icon,
1558
+ .flux-vendor-children-count {
1559
+ border: 1px solid ${e=>e.theme.colors.primary};
1560
+ }
1561
+ }
1562
+ .flux-vendor-chevron-icon,
1563
+ .flux-vendor-collapsable-chevron-icon,
1564
+ .flux-vendor-children-count {
1565
+ border: 1px solid
1566
+ ${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
1567
+ }
1568
+ `,Sd=a.div`
1569
+ display: flex;
1570
+ flex-direction: row;
1571
+ justify-content: flex-start;
1572
+ align-items: center;
1573
+ margin-left: ${kt};
1574
+ `,Cd=a(_)`
1575
+ user-select: none;
1576
+ min-width: ${me};
1577
+ max-width: ${me};
1578
+ text-align: right;
1579
+ `,vd=a.div`
1580
+ display: flex;
1581
+ flex-direction: row;
1582
+ align-items: center;
1583
+ flex-shrink: 2;
1584
+ flex-grow: 1;
1585
+ width: ${pt};
1586
+ max-width: ${pt};
1587
+ background-color: ${e=>e.bgColor?.hex()};
1588
+ ${({isSticky:e})=>e?z`
1589
+ position: -webkit-sticky;
1590
+ position: sticky;
1591
+ top: ${s.sp0};
1592
+ left: ${s.sp0};
1593
+ `:null}
1594
+ `,$d=a(_)`
1595
+ user-select: none;
1596
+ clear: both;
1597
+ display: inline-block;
1598
+ overflow: hidden;
1599
+ white-space: nowrap;
1600
+ text-overflow: ellipsis;
1601
+ text-align: left;
1602
+ `,_d=a.div`
1603
+ display: flex;
1604
+ justify-content: space-between;
1605
+ flex-grow: 1;
1606
+ `,Ld=a.div`
1607
+ display: flex;
1608
+ align-items: center;
1609
+ margin-left: 10px;
1610
+ `;a.div`
1611
+ display: flex;
1612
+ flex-shrink: 0;
1613
+ width: ${gt};
1614
+ min-width: ${gt};
1615
+ margin-left: 12px;
1616
+ gap: ${s.sp1};
1617
+ flex-direction: row;
1618
+ justify-content: flex-end;
1619
+ text-align: center;
1620
+ align-items: center;
1621
+ `;const Ad=a(cr)`
1622
+ width: 12px;
1623
+ height: 12px;
1624
+ `;a.div`
1625
+ height: ${s.sp4};
1626
+ border-radius: ${s.sp1};
1627
+ padding: 2px ${s.sp1};
1628
+ `,a.div`
1629
+ border-radius: ${s.sp1};
1630
+ padding: 2px ${s.sp1};
1631
+ height: ${s.sp4};
1632
+ justify-content: center;
1633
+ text-align: center;
1634
+ background-color: ${e=>e.bgColor.hex()};
1635
+ `;const Bd=a.div`
1636
+ display: flex;
1637
+ margin-left: ${s.sp7};
1638
+ flex: 1 1 auto;
1639
+ justify-content: flex-end;
1640
+ `,Id=a.div`
1641
+ display: flex;
1642
+ flex-direction: column;
1643
+ align-items: center;
1644
+ padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
1645
+ `,Od=a.div`
1646
+ display: flex;
1647
+ width: ${Se};
1648
+ min-width: ${Se};
1649
+ justify-content: center;
1650
+ flex-direction: row;
1651
+ margin-left: ${jt};
1652
+ `,Nd=a(Ce)`
1653
+ width: ${me};
1654
+ max-width: ${me};
1655
+ color: ${e=>e.theme.colors.primary};
1656
+ display: flex;
1657
+ flex: 1 0 auto;
1658
+ flex-direction: column;
1659
+ cursor: pointer;
1660
+ align-items: center;
1661
+ `,Md=a.div`
1662
+ color: ${e=>e.theme.colors.grey1};
1663
+ border: 1px solid ${e=>e.theme.colors.grey1};
1664
+ padding: ${s.sp0} 6px;
1665
+ border-radius: ${s.sp1};
1666
+ width: fit-content;
1667
+ display: flex;
1668
+ align-items: center;
1669
+ margin-right: ${s.sp2};
1670
+ `,Wd=a(Ce)`
1671
+ overflow: hidden;
1672
+ text-overflow: ellipsis;
1673
+ `,Pd=a.div`
1674
+ display: flex;
1675
+ width: ${s.sp8};
1676
+ height: ${s.sp8};
1677
+ &:hover {
1678
+ .flux-vendor-checkbox {
1679
+ background-color: transparent;
1680
+ }
1681
+ }
1682
+ `,Fd=a(tn)`
1683
+ color: ${e=>e.theme.colors.primary};
1684
+ width: ${s.sp3};
1685
+ height: ${s.sp3};
1686
+ `,zd=a(Ce)`
1687
+ display: flex;
1688
+ flex-direction: row;
1689
+ align-items: center;
1690
+ gap: 2px;
1691
+ color: ${e=>e.theme.colors.success};
1692
+ `,Td=a(yo)`
1693
+ width: 12px;
1694
+ height: 12px;
1695
+ `,ro=a(wo)`
1696
+ margin-left: 2px;
1697
+ width: 12px;
1698
+ height: 12px;
1699
+ `,Vd=a(Te)`
1700
+ display: flex;
1701
+ border-radius: 50%;
1702
+ width: ${s.sp4};
1703
+ height: ${s.sp4};
1704
+ text-align: center;
1705
+ align-items: center;
1706
+ justify-content: center;
1707
+ `,Dd=a(Te)`
1708
+ display: flex;
1709
+ border-radius: ${s.sp1};
1710
+ width: ${s.sp4};
1711
+ height: ${s.sp4};
1712
+ text-align: center;
1713
+ align-items: center;
1714
+ justify-content: center;
1715
+ margin-right: ${s.sp4};
1716
+ `,Ed=a(Te)`
1717
+ display: flex;
1718
+ border-radius: 100px;
1719
+ width: 18px;
1720
+ height: 18px;
1721
+ justify-content: center;
1722
+ align-items: center;
1723
+ margin-left: ${s.sp1};
1724
+ `,{common:ao,expenseAutomation:Gd}=N.getLocalizedStrings(),Rd=({balance:e})=>{const n=Cd;return t.jsx(Sd,{children:t.jsx(n,{children:q(e)})})};function Hd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:p,currency:u,vendorBalances:g,reviewedByUser:h,status:x,vendor:f,isOpen:m,childrenCount:w,vendorRowIndex:b,setHoveredParentId:k,onClick:v,handleRedirectToVendorDetailPage:S,updateOperatingExpensesIdsForReview:$}){const[B,L]=V.useState(!1),[M,T]=V.useState(n.length>0),D=n.includes(e),K=n.includes(e),X=c==="collapsed",Q=n.length===20&&D===!1,ie=$d,he=b!=null?String(b):e,le=y("flux-analysis-vendor-checkbox",he),re=y("flux-analysis-vendor-detail-navigation",he),be=y("flux-analysis-vendor-expand-collapse",he),$e=y("flux-analysis-vendor-row",he);return t.jsx(kd,{heightValue:l,bgColor:o,"data-testid":$e,children:t.jsxs(jd,{shouldHighlight:K,isRowExpanded:m,onClick:()=>v?.(r),onMouseOver:()=>{L(!0),T(!0),k?.(f.id)},onMouseLeave:()=>{L(!1),n.length===0&&T(!1),k?.(null)},children:[t.jsxs(vd,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx(Pd,{className:"flux-vendor-checkbox-container",children:M?t.jsx(qt,{className:"flux-vendor-checkbox","data-testid":le,icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Fd,{}),checked:D,name:f.name,id:e,disabled:Q,onChange:ce=>{let ue=n;ue=ce.target.checked===!0?[...ue,e]:ue.filter(_e=>_e!==e),$?.(ue)},onClick:ce=>ce.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}}):null}),t.jsxs(Id,{isNodeOpen:m,children:[B?t.jsx(Vd,{className:"flux-vendor-collapsable-chevron-icon","data-testid":be,children:m===!1?t.jsx(ro,{}):t.jsx(Td,{})}):f.logo!=null?t.jsx(Jt,{photoUrl:f.logo.toString(),styles:{width:C[4],height:C[4]}}):t.jsx(Xt,{name:f.name,size:s.sp4}),m?t.jsx(gi,{height:cs}):null]}),t.jsxs(_d,{children:[t.jsxs(Ld,{children:[t.jsx(ie,{children:f.name}),m?null:t.jsx(Ed,{className:"flux-vendor-children-count",children:t.jsx(Te,{children:w})})]}),B?t.jsx(V.Fragment,{children:t.jsx(Dd,{className:"flux-vendor-chevron-icon",onClick:()=>{S?.(f)},"data-testid":re,children:t.jsx(ro,{})})}):null]})]}),t.jsxs(Bd,{children:[g.map((ce,ue)=>t.jsx(Rd,{balance:ce,collapsed:X},ue)),t.jsx(St,{amount:d,percentage:p,currency:u}),t.jsx(Od,{children:x==="Pending Review"?t.jsx(Md,{children:t.jsx(Wd,{children:ao.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Nd,{className:"vendor-flux-analysis-review-info",children:h!=null?t.jsxs(V.Fragment,{children:[t.jsxs(zd,{children:[t.jsx(Ad,{}),Gd.fluxAnalysis.reviewedBy]}),t.jsx(Te,{children:Xi(h)})]}):ao.strings.hyphen})})})]})]})})}const lo={generalExpense:{color:new I(O.graphColor04),hoverColor:new I(O.graphColor04Dark)},reimbursement:{color:new I(O.graphColor10),hoverColor:new I(O.graphColor10Dark)},default:{color:new I(ee.neutralGrey2Dark),hoverColor:new I(ee.neutralGrey2Dark)}},Sn=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},ki=e=>Yc(e.balancesByMonth),Kd=(e,n,o,i,r,l,c,d,p,u,g)=>{if(!Sn(n,"flux_vendor_row"))return null;const h=n.element.data,x=ki(h),f=wi("flux_vendor_row",p);return t.jsx(Hd,{backgroundColor:o,isSticky:i,treeNodeId:e,vendorRowIndex:n.element.index,fluxAnalysisEntityId:h.fluxAnalysisEntityId,height:f,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:h.vendor,vendorBalances:x,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,status:h.status,currency:h.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:h.vendorAccountsAndClasses.length,onClick:m=>{(w=>{g?.(w),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(w)})(m)},reviewedByUser:h.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Yd=(e,n,o,i,r,l,c,d,p,u)=>{if(!Sn(n,"section"))return null;const g=((x,f)=>x.startsWith("flux_analysis_operating_expense")===!0&&f!=null?lo[f]:lo.default)(n.config.reportId,n.element.sectionType),h=n.element.data;return t.jsx(Hs,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:g.color,sectionName:n.element.title,sectionBalances:h.balances,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:h.currency,isScrolling:l,isOpen:c,hasVendors:h.vendors.length>0,isLeaf:d,isLastNode:p,sectionToggled:x=>{(f=>{n.config.fluxAnalysisConfig?.onSectionRowClick(f),u?.(f)})(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:h.sectionId})},Ud=a.div`
1725
+ display: flex;
1726
+ flex: 1 1 auto;
1727
+ width: fit-content;
1728
+ min-width: 100%;
1729
+ flex-direction: column;
1730
+ background-color: ${e=>e.bgColor?.hex()};
1731
+ `,Zd=a.div`
1732
+ user-select: none;
1733
+ display: flex;
1734
+ flex: 1 1 auto;
1735
+ flex-flow: row;
1736
+ justify-content: flex-start;
1737
+ align-items: center;
1738
+ height: ${e=>e.height}px;
1739
+ margin-left: ${e=>20*e.level}px;
1740
+ `,qd=a.div`
1741
+ display: flex;
1742
+ flex-direction: row;
1743
+ align-items: center;
1744
+ justify-content: space-between;
1745
+ &:hover {
1746
+ background-color: null;
1747
+ }
1748
+ width: 100%;
1749
+ `,Qd=a(er)`
1750
+ width: 100%;
1751
+ display: flex;
1752
+ align-items: center;
1753
+ font-weight: ${e=>e.isSubclass?zn.regular:zn.medium};
1754
+ color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1755
+ `,Jd=a(Ce)`
1756
+ display: flex;
1757
+ color: ${e=>e.theme.colors.primary};
1758
+ align-items: center;
1759
+ flex-direction: row;
1760
+ justify-content: center;
1761
+ height: 18px;
1762
+ border: 1px solid ${e=>e.theme.colors.primary};
1763
+ border-radius: ${s.sp1};
1764
+ margin: 0 ${s.sp5} 0 ${s.sp3};
1765
+ min-width: ${s.sp6};
1766
+ `,Xd=a(tn)`
1767
+ color: ${e=>e.theme.colors.primary};
1768
+ width: ${s.sp3};
1769
+ height: ${s.sp3};
1770
+ `;function eh({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:p,onClick:u,onToggleCheck:g}){const[h,x]=V.useState(!1);return t.jsx(Ud,{"data-testid":y("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Zd,{"data-testid":y("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),level:c.classId.length,children:[t.jsx(qt,{"data-testid":y("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Qt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Xd,{}),checked:i,name:c.className,id:n,disabled:r,onChange:f=>{g?.(o,f.target.checked)},style:{height:s.sp6}})," ",t.jsx(qd,{children:t.jsxs(Qd,{"data-testid":y("name-with-checkbox-row-label-container",n),checked:i,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":y("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{g?.(o,!i)},children:c.className}),h===!0&&p===!0&&c.accountingClassNumber!=null&&t.jsx(Jd,{children:c.accountingClassNumber})]})})]})})}const P={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new E(200,270,270),categoryClassWidth:new E(230,230,240),nameLogoWidth:new E(C[4],C[4]),nameLogoHeight:new E(C[4],C[4])},th=a.div`
1771
+ user-select: none;
1772
+ display: flex;
1773
+ flex: 1 1 auto;
1774
+ width: fit-content;
1775
+ min-width: 100%;
1776
+ height: ${e=>e.height}px;
1777
+ flex-flow: row;
1778
+ justify-content: flex-start;
1779
+ align-items: center;
1780
+ background-color: ${e=>e.bgColor?.hex()};
1781
+ `,nh=a.div`
1782
+ user-select: none;
1783
+ display: flex;
1784
+ flex: 1 1 auto;
1785
+ width: 100vw;
1786
+ min-width: 100%;
1787
+ height: ${e=>e.height}px;
1788
+ flex-flow: row;
1789
+ align-items: center;
1790
+ justify-content: center;
1791
+ background-color: ${e=>e.bgColor?.hex()};
1792
+ `,oh=a.div`
1793
+ display: flex;
1794
+ flex: 1 0 auto;
1795
+ flex-direction: row;
1796
+ justify-content: flex-end;
1797
+ `,co=a(_)`
1798
+ color: ${e=>e.theme.colors.hero};
1799
+ flex-grow: 1;
1800
+ -webkit-box-orient: vertical;
1801
+ justify-content: ${e=>e.isClubbed===!0?"unset":"flex-end"};
1802
+ display: flex;
1803
+ min-width: ${P.balanceWidth};
1804
+ max-width: ${P.balanceWidth};
1805
+ margin-left: ${e=>e.isClubbed===!0?s.sp2:P.balanceLeftMargin};
1806
+ border: 1px solid transparent;
1807
+ `,so=a(_)`
1808
+ color: ${e=>e.theme.colors.hero};
1809
+ flex-grow: 1;
1810
+ -webkit-box-orient: vertical;
1811
+ justify-content: "unset";
1812
+ display: flex;
1813
+ min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
1814
+ `,ih=a.div`
1815
+ height: 100%;
1816
+ display: flex;
1817
+ flex-direction: row;
1818
+ align-items: center;
1819
+ min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
1820
+ color: ${e=>e.theme.colors.primary};
1821
+ background-color: ${e=>e.bgColor?.hex()};
1822
+ ${({isSticky:e})=>e?z`
1823
+ position: -webkit-sticky;
1824
+ position: sticky;
1825
+ top: ${s.sp0};
1826
+ left: ${s.sp0};
1827
+ z-index: 20;
1828
+ `:null}
1829
+ `;function rh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return l.length>0?t.jsxs(th,{height:o,bgColor:e,"data-testid":y("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ih,{"data-testid":y("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(He,{width:C[4],height:C[4]}),t.jsx(co,{windowSize:c,isClubbed:!0,children:t.jsx(Y,{width:120,height:C[4]})})]}),t.jsxs(oh,{children:[i?t.jsx(so,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})}):null,r?t.jsx(so,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})}):null,l.map((d,p)=>t.jsx(co,{windowSize:c,children:t.jsx(Y,{width:120,height:C[4]})},`${p}RowItem`))]})]}):t.jsx(nh,{height:o,bgColor:e,children:t.jsx(qi,{size:"Small",start:!0})})}const ah=a.div`
1830
+ user-select: none;
1831
+ display: flex;
1832
+ flex: 1 1 auto;
1833
+ width: fit-content;
1834
+ min-width: 100%;
1835
+ height: ${e=>e.height}px;
1836
+ flex-flow: row;
1837
+ justify-content: flex-start;
1838
+ align-items: center;
1839
+ background-color: ${e=>e.bgColor?.hex()};
1840
+ `,Ft=a.div``,lh=a.div`
1841
+ display: flex;
1842
+ flex: 1 0 auto;
1843
+ flex-direction: row;
1844
+ justify-content: flex-end;
1845
+ `,ch=a(_)`
1846
+ user-select: none;
1847
+ clear: both;
1848
+ display: inline-block;
1849
+ overflow: hidden;
1850
+ white-space: nowrap;
1851
+ text-overflow: ellipsis;
1852
+ text-align: left;
1853
+ margin-left: ${s.sp2};
1854
+ color: ${e=>e.theme.colors.hero};
1855
+ `,sh=a(_)`
1856
+ color: ${e=>e.theme.colors.hero};
1857
+ flex-grow: 1;
1858
+ -webkit-box-orient: vertical;
1859
+ display: flex;
1860
+ min-width: ${P.balanceWidth};
1861
+ max-width: ${P.balanceWidth};
1862
+ border: 1px solid transparent;
1863
+ `,ho=a(_)`
1864
+ color: ${e=>e.theme.colors.hero};
1865
+ flex-grow: 1;
1866
+ -webkit-box-orient: vertical;
1867
+ justify-content: "unset";
1868
+ display: flex;
1869
+ min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
1870
+ `,dh=a.div`
1871
+ height: 100%;
1872
+ display: flex;
1873
+ flex-direction: row;
1874
+ align-items: center;
1875
+ min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
1876
+ color: ${e=>e.theme.colors.primary};
1877
+ background-color: ${e=>e.bgColor?.hex()};
1878
+ ${({isSticky:e})=>e?z`
1879
+ position: -webkit-sticky;
1880
+ position: sticky;
1881
+ top: ${s.sp0};
1882
+ left: ${s.sp0};
1883
+ z-index: 20;
1884
+ `:null}
1885
+ `;function hh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=W();return t.jsxs(ah,{height:o,bgColor:e,"data-testid":y("no-results-found-title-row"),children:[t.jsx(dh,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(ch,{children:N.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(lh,{children:[i?t.jsx(ho,{windowSize:c,children:t.jsx(Ft,{})}):null,r?t.jsx(ho,{windowSize:c,children:t.jsx(Ft,{})}):null,l.map((d,p)=>t.jsx(sh,{windowSize:c,children:t.jsx(Ft,{children:" "})},`${p}RowItem`))]})]})}function Cn({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,menuPosition:g}){return t.jsx(sr,{title:e,pickerValues:["compare_mode_percent","compare_mode_amount"],valueToLabel:h=>N.getLocalizedStrings().compareMode[h],selectedValue:n,onPickerSelectionChanged:h=>o(h),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:p,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:i??"inherit",menuPosition:g})}const uh=s.sp4,uo=170,ph=(s.sp4,a.div`
1886
+ margin-left: ${s.sp4};
1887
+ `),gh=a.div`
1888
+ display: flex;
1889
+ max-height: 54px;
1890
+ min-height: 54px;
1891
+ align-items: center;
1892
+ justify-content: center;
1893
+ max-width: ${uo-2}px;
1894
+ min-width: ${uo-2}px;
1895
+ background-color: ${e=>e.theme.colors.background};
1896
+ border: 1px solid ${e=>e.theme.colors.grey3};
1897
+ border-radius: ${s.sp2};
1898
+ color: ${e=>e.theme.colors.primary};
1899
+ `,xh=a(_)`
1900
+ display: flex;
1901
+ user-select: none;
1902
+ flex-direction: row;
1903
+ justify-content: center;
1904
+ align-items: center;
1905
+ height: ${uh};
1906
+ `,fh=a.div`
1907
+ display: flex;
1908
+ flex-direction: row;
1909
+ justify-content: center;
1910
+ align-items: center;
1911
+ padding: 3px 6px;
1912
+ margin-right: ${s.sp2};
1913
+ position: relative;
1914
+ top: -12px;
1915
+ `,mh=a(fr)`
1916
+ color: ${e=>e.tagType==="under_review"?ee.neutralGrey5Light:e.theme.mode==="light"?ee.primaryDark:ee.primaryLight};
1917
+ border-radius: ${s.sp2};
1918
+ padding: 3px 6px;
1919
+ margin-left: 12px;
1920
+ background: ${e=>e.tagType==="under_review"?ee.alertDark:e.theme.mode==="light"?ee.championLight:ee.championDark};
1921
+ `,wh=a(xr)`
1922
+ color: ${e=>e.theme.colors.hero};
1923
+ margin-left: 5px;
1924
+ height: ${s.sp3};
1925
+ width: ${s.sp3};
1926
+ margin-top: ${s.sp1};
1927
+ `;function yh(e){return e==="under_review"?y("report-tree-timeframe-tag","under-review"):e==="incomplete"?y("report-tree-timeframe-tag","in-progress"):void 0}function ji({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:l}){return t.jsxs(ph,{children:[t.jsxs(gh,{children:[t.jsx(xh,{children:Ye(e,n,o)}),t.jsx(gr,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(wh,{})})]}),t.jsx(fh,{"data-testid":yh(l),children:t.jsx(mh,{tagType:l,children:i})})]})}const Si=(e,n)=>{const o=N.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoMonth:o.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoQuarter:o.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoYear:o.bookCloseIncompleteInfoYear:void 0;default:return}},bh=a.div`
1928
+ user-select: none;
1929
+ display: flex;
1930
+ flex: 1 1 auto;
1931
+ width: fit-content;
1932
+ min-width: 100%;
1933
+ height: ${e=>e.height}px;
1934
+ flex-flow: row;
1935
+ justify-content: flex-start;
1936
+ align-items: center;
1937
+ background-color: ${e=>e.bgColor?.hex()};
1938
+ `,kh=a.div`
1939
+ display: flex;
1940
+ flex: 1 0 auto;
1941
+ flex-direction: row;
1942
+ justify-content: flex-end;
1943
+ `,Ci=a.div`
1944
+ display: flex;
1945
+ max-height: ${s.sp8};
1946
+ min-height: ${s.sp8};
1947
+ min-width: ${P.balanceWidth};
1948
+ justify-content: center;
1949
+ align-items: center;
1950
+ background-color: ${e=>e.theme.colors.background};
1951
+ border: 1px solid ${e=>e.theme.colors.grey3};
1952
+ border-radius: ${s.sp2};
1953
+ margin-left: ${P.balanceLeftMargin};
1954
+ color: ${e=>e.theme.colors.primary};
1955
+ cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1956
+ `,vi=a(_)`
1957
+ display: flex;
1958
+ user-select: none;
1959
+ flex-direction: row;
1960
+ justify-content: center;
1961
+ align-items: center;
1962
+ height: ${P.balanceHeight};
1963
+ max-width: ${P.balanceWidth};
1964
+ width: 138px;
1965
+ text-align: center;
1966
+ `,jh=a.div`
1967
+ display: flex;
1968
+ flex-direction: row;
1969
+ z-index: 1;
1970
+ background-color: ${e=>e.bgColor?.hex()};
1971
+ ${({isSticky:e})=>e?z`
1972
+ position: -webkit-sticky;
1973
+ position: sticky;
1974
+ top: ${s.sp0};
1975
+ left: ${s.sp0};
1976
+ z-index: 1;
1977
+ `:null}
1978
+ `,Sh=a.div`
1979
+ max-height: ${e=>e.plHeight}px;
1980
+ min-height: ${e=>e.plHeight}px;
1981
+ display: flex;
1982
+ flex-direction: row;
1983
+ align-items: center;
1984
+ min-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
1985
+ color: ${e=>e.theme.colors.primary};
1986
+ background-color: ${e=>e.bgColor?.hex()};
1987
+ `,Ch=a(_)`
1988
+ display: flex;
1989
+ gap: 6px;
1990
+ align-items: baseline;
1991
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1992
+ `,$i=a(_)`
1993
+ height: 100%;
1994
+ align-self: center;
1995
+ align-items: baseline;
1996
+ min-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
1997
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1998
+ background-color: ${e=>e.bgColor?.hex()};
1999
+ display: flex;
2000
+ gap: 6px;
2001
+ align-items: center;
2002
+ `,vn=a.div`
2003
+ display: flex;
2004
+ cursor: pointer;
2005
+ `,vh=a.div`
2006
+ display: flex;
2007
+ justify-content: center;
2008
+ align-items: center;
2009
+ color: ${e=>e.theme.colors.champion};
2010
+ `,$h=a.div``,_h=a(_)`
2011
+ display: flex;
2012
+ justify-content: center;
2013
+ align-items: center;
2014
+ max-height: ${s.sp8};
2015
+ min-height: ${s.sp8};
2016
+ background-color: ${e=>e.theme.colors.background};
2017
+ border: 1px solid ${e=>e.theme.colors.grey3};
2018
+ border-radius: ${s.sp2};
2019
+ margin-left: ${P.balanceLeftMargin};
2020
+ color: ${e=>e.theme.colors.primary};
2021
+ width: ${P.balanceWidth};
2022
+ min-width: ${P.balanceWidth};
2023
+ `,_i=a.div`
2024
+ max-height: ${s.sp8};
2025
+ min-height: ${s.sp8};
2026
+ `,Ct=a.div`
2027
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2028
+ `,vt=a(rn)`
2029
+ width: 12px;
2030
+ height: 12px;
2031
+ margin-left: ${s.sp2};
2032
+ margin-top: ${s.sp1};
2033
+ `,$t=a(on)`
2034
+ width: 12px;
2035
+ height: 12px;
2036
+ margin-left: ${s.sp2};
2037
+ margin-top: ${s.sp1};
2038
+ `,$n=a(So)`
2039
+ width: 12px;
2040
+ height: 12px;
2041
+ cursor: pointer;
2042
+ color: ${e=>e.theme.colors.hero};
2043
+ `,Li=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=n==="totals"?e:"ascending";return t.jsx(_i,{"data-testid":y("period-total-tick"),children:t.jsx(Ci,{"data-testid":y("period-total-tick-element"),onClick:()=>{o(_t("totals",e,n),"totals")},isClickable:!0,children:t.jsxs(vi,{children:[N.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(Ct,{selectedForSort:n==="totals","data-testid":y("report-tree-column-header-sort-icon","period-total"),children:i==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]})})})},Lh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="vendor"?n:"ascending";return t.jsxs(Ch,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header","vendor"),children:[t.jsxs(vn,{onClick:()=>{o(_t("vendor",n,e),"vendor")},children:[N.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(Ct,{selectedForSort:e==="vendor","data-testid":y("report-tree-column-header-sort-icon","vendor"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="vendor"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","vendor"),onClick:i}):null]})},Ah=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="account"?n:"ascending",l=W();return t.jsxs($i,{selectedForSort:e==="account",windowSize:l,"data-testid":y("report-tree-column-header","account"),children:[t.jsxs(vn,{onClick:()=>{o(_t("account",n,e),"account")},children:[N.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(Ct,{selectedForSort:e==="account","data-testid":y("report-tree-column-header-sort-icon","account"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="account"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","account"),onClick:i}):null]})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="class"?n:"ascending",l=W();return t.jsxs($i,{selectedForSort:e==="class",windowSize:l,"data-testid":y("report-tree-column-header","class"),children:[t.jsxs(vn,{onClick:()=>{o(_t("class",n,e),"class")},children:[N.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(Ct,{selectedForSort:e==="class","data-testid":y("report-tree-column-header-sort-icon","class"),children:r==="ascending"?t.jsx($t,{}):t.jsx(vt,{})})]}),e==="class"?t.jsx($n,{"data-testid":y("report-tree-column-header-sort-cancel","class"),onClick:i}):null]})},Ai=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,bookCloseDate:r,dataAvailable:l})=>{const c=N.getLocalizedStrings().reports,d=r==null||l==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,l),p=d!=null?d==="under_review"?c.bookCloseTagUnderReview:c.bookCloseTagInProgress:void 0,u=Si(d,o),g=y("report-tree-column-header-timeframe",String(i));return t.jsx(_i,{"data-testid":g,children:r!=null&&l!=null&&d!=null&&p!=null&&u!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:p,infoContent:u,tagType:d}):t.jsx(Ci,{isClickable:!1,children:t.jsx(vi,{children:Ye(e,n,o)})})})},Ih=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,onSortOrderChanged:r,bookCloseDate:l,dataAvailable:c,sortKey:d="totals",sortOrder:p="ascending"})=>n.balanceType==="period_total"?t.jsx(Li,{sortKey:d,sortOrder:p,onSortOrderChanged:r}):t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tickColumnIndex:i,dataAvailable:c,bookCloseDate:l}),Oh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:p,onSortOrderChanged:u})=>{const g=de(),h=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(vh,{children:n.map((x,f)=>t.jsxs(V.Fragment,{children:[x.balanceType==="this_period_vs_last_period"||x.balanceType==="this_period_vs_last_period_percent"?t.jsx(_h,{"data-testid":y("report-tree-column-header-compare-mode",String(f)),children:t.jsx(Cn,{title:h,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",titleColor:g.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:m=>{m!=="off"&&(m==="compare_mode_amount"||m==="compare_mode_percent"?p?.(m):console.warn("Invalid compare mode option"))}})}):null,x.balanceType==="period_total"?t.jsx(Li,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,x.balanceType==="default"?t.jsx($h,{children:t.jsx(Ai,{firstMonthOfFY:e,timeframeTick:x,timeframe:o,tickColumnIndex:f,dataAvailable:c,bookCloseDate:d},f)}):null]},f))})};function Nh({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:p,timeframe:u,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:w}){const b=W(),k=(S,$)=>{w?.(S,$)},v=()=>{w?.("descending","totals")};return t.jsxs(bh,{height:o,bgColor:e,children:[t.jsx(jh,{bgColor:e,windowSize:b,isSticky:n,children:t.jsx(Sh,{plHeight:o,windowSize:b,bgColor:e,children:t.jsx(Lh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v})})}),r?t.jsx(Ah,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v}):null,l?t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:v}):null,t.jsx(kh,{children:i===!0?t.jsx(Oh,{firstMonthOfFY:p,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:g,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:m,onSortOrderChanged:k}):g.map((S,$)=>t.jsx(Ih,{firstMonthOfFY:p,timeframeTick:S,timeframe:u,tickColumnIndex:$,onSortOrderChanged:k,bookCloseDate:f,dataAvailable:x,sortKey:c,sortOrder:d},$))})]})}const _t=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",Mh=a.div`
2044
+ display: flex;
2045
+ flex: 1 1 auto;
2046
+ max-height: 1px;
2047
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
2048
+ `,Wh=a.div`
2049
+ display: flex;
2050
+ flex: 1 1 auto;
2051
+ max-height: 1px;
2052
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
2053
+ `;function Ut({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Mh,{isScrolling:n});case"end_row_separator":return t.jsx(Wh,{isScrolling:n})}}const Ph=a.div`
2054
+ display: flex;
2055
+ flex: 1 1 auto;
2056
+ width: fit-content;
2057
+ min-width: 100%;
2058
+ flex-direction: column;
2059
+ height: ${e=>e.height}px;
2060
+ background-color: ${e=>e.bgColor?.hex()};
2061
+ `,Fh=a.div`
2062
+ user-select: none;
2063
+ display: flex;
2064
+ flex: 1 1 auto;
2065
+ flex-flow: row;
2066
+ justify-content: flex-start;
2067
+ align-items: center;
2068
+ cursor: default;
2069
+ `,zh=a.div`
2070
+ display: flex;
2071
+ flex: 1 0 auto;
2072
+ flex-direction: row;
2073
+ justify-content: flex-end;
2074
+ `,Th=a.div`
2075
+ display: flex;
2076
+ flex-direction: row;
2077
+ justify-content: flex-start;
2078
+ `,Bi=a(ne)`
2079
+ user-select: none;
2080
+ min-width: ${P.balanceWidth};
2081
+ max-width: ${P.balanceWidth};
2082
+ text-align: right;
2083
+ margin-left: ${P.balanceLeftMargin};
2084
+ color: ${e=>e.theme.colors.primary};
2085
+ border: 1px solid transparent;
2086
+ `,Vh=a(Bi)`
2087
+ color: ${e=>e.theme.colors.hero};
2088
+ &:hover {
2089
+ color: inherit;
2090
+ }
2091
+ `,Dh=a.div`
2092
+ display: flex;
2093
+ flex-direction: row;
2094
+ background-color: ${e=>e.bgColor?.hex()};
2095
+ ${({isSticky:e})=>e?z`
2096
+ position: -webkit-sticky;
2097
+ position: sticky;
2098
+ top: ${s.sp0};
2099
+ left: ${s.sp0};
2100
+ `:null}
2101
+ `,Eh=a.div`
2102
+ display: flex;
2103
+ flex-direction: row;
2104
+ flex-shrink: 2;
2105
+ flex-grow: 1;
2106
+ align-items: center;
2107
+ width: ${e=>P.titleWidth.valuePx(e.windowSize)};
2108
+ max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
2109
+ background-color: ${e=>e.bgColor?.hex()};
2110
+ `,po=a.div`
2111
+ width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2112
+ max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2113
+ background-color: ${e=>e.bgColor?.hex()};
2114
+ `,Gh=a(ne)`
2115
+ user-select: none;
2116
+ clear: both;
2117
+ display: inline-block;
2118
+ overflow: hidden;
2119
+ white-space: nowrap;
2120
+ text-overflow: ellipsis;
2121
+ text-align: left;
2122
+ color: ${e=>e.theme.colors.primary};
2123
+ `,Rh=({balance:e,collapsed:n,timeframeColumnIndex:o,treeNodeId:i,type:r})=>{const l=n===!0?Vh:Bi;return t.jsx(Th,{"data-testid":y("report-tree-total-row-amount",`${i}-${String(o)}`),children:ae(r)===!0?t.jsx(l,{children:q(e)}):null})};function Hh({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:p,onClick:u,isScrolling:g}){const h=W();return t.jsxs(Ph,{"data-testid":y("total-row-root-container",i),height:r,bgColor:n,windowSize:h,children:[t.jsxs(Fh,{"data-testid":y("total-row-container",i),onClick:()=>u?.(i),children:[t.jsxs(Dh,{bgColor:n,windowSize:h,isSticky:o,children:[t.jsx(Eh,{bgColor:n,windowSize:h,children:t.jsx(Gh,{children:l})}),d?t.jsx(po,{windowSize:h}):null,p?t.jsx(po,{windowSize:h}):null]}),t.jsx(zh,{children:c.map((x,f)=>t.jsx(Rh,{balance:x,collapsed:!1,timeframeColumnIndex:f,treeNodeId:i,type:e},f))})]}),t.jsx(Ut,{isScrolling:g,kind:"vendor_row_separator"})]})}const Kh=a.div`
2124
+ display: flex;
2125
+ flex: 1 1 auto;
2126
+ width: fit-content;
2127
+ min-width: 100%;
2128
+ flex-direction: column;
2129
+ height: ${e=>e.height}px;
2130
+ background-color: ${e=>e.bgColor?.hex()};
2131
+ `,Yh=a.div`
2132
+ user-select: none;
2133
+ display: flex;
2134
+ flex: 1 1 auto;
2135
+ flex-flow: row;
2136
+ justify-content: flex-start;
2137
+ align-items: center;
2138
+ &:hover {
2139
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2140
+ }
2141
+ `,Uh=a.div`
2142
+ display: flex;
2143
+ flex: 1 0 auto;
2144
+ flex-direction: row;
2145
+ justify-content: flex-end;
2146
+ `,Zh=a.div`
2147
+ display: flex;
2148
+ flex-direction: row;
2149
+ justify-content: flex-start;
2150
+ `,qh=a(_)`
2151
+ user-select: none;
2152
+ min-width: ${P.balanceWidth};
2153
+ max-width: ${P.balanceWidth};
2154
+ text-align: right;
2155
+ margin-left: ${P.balanceLeftMargin};
2156
+ border: 1px solid transparent;
2157
+ color: ${e=>e.theme.colors.hero};
2158
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2159
+ &:hover {
2160
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2161
+ }
2162
+ `,Qh=a.div`
2163
+ display: flex;
2164
+ flex-direction: row;
2165
+ background-color: ${e=>e.bgColor?.hex()};
2166
+ ${({isSticky:e})=>e?z`
2167
+ position: -webkit-sticky;
2168
+ position: sticky;
2169
+ top: ${s.sp0};
2170
+ left: ${s.sp0};
2171
+ `:null}
2172
+ `,Jh=a.div`
2173
+ display: flex;
2174
+ flex-direction: row;
2175
+ flex-shrink: 2;
2176
+ flex-grow: 1;
2177
+ align-items: center;
2178
+ gap: ${s.sp2};
2179
+ width: ${e=>P.titleWidth.valuePx(e.windowSize)};
2180
+ max-width: ${e=>P.titleWidth.valuePx(e.windowSize)};
2181
+ background-color: ${e=>e.bgColor?.hex()};
2182
+ `,Ne=a(_)`
2183
+ user-select: none;
2184
+ clear: both;
2185
+ display: inline-block;
2186
+ overflow: hidden;
2187
+ white-space: nowrap;
2188
+ text-overflow: ellipsis;
2189
+ text-align: left;
2190
+ color: ${e=>e.theme.colors.hero};
2191
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2192
+ &:hover {
2193
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2194
+ }
2195
+ `,Xh=a.div`
2196
+ display: flex;
2197
+ flex-direction: row;
2198
+ flex-shrink: 2;
2199
+ flex-grow: 1;
2200
+ align-items: center;
2201
+ width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2202
+ max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2203
+ background-color: ${e=>e.bgColor?.hex()};
2204
+ `,eu=a.div`
2205
+ display: flex;
2206
+ flex-direction: row;
2207
+ flex-shrink: 2;
2208
+ flex-grow: 1;
2209
+ align-items: center;
2210
+ width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2211
+ max-width: ${e=>P.categoryClassWidth.valuePx(e.windowSize)};
2212
+ background-color: ${e=>e.bgColor?.hex()};
2213
+ `,tu=a.div``,nu=a.div`
2214
+ width: ${s.sp4};
2215
+ height: ${s.sp4};
2216
+ border-radius: 50%;
2217
+ background-color: ${e=>e.theme.colors.grey3};
2218
+ display: flex;
2219
+ justify-content: center;
2220
+ align-items: center;
2221
+ color: ${e=>e.theme.colors.hero};
2222
+ `,ou=a(tr)`
2223
+ width: ${s.sp3};
2224
+ height: ${s.sp3};
2225
+ `,iu=a.div`
2226
+ display: flex;
2227
+ column-gap: ${s.sp2};
2228
+ width: 100%;
2229
+ &:hover {
2230
+ .hyphen-text {
2231
+ display: none;
2232
+ }
2233
+ .not-specified-text {
2234
+ display: block;
2235
+ }
2236
+ }
2237
+ `,ru=a(_)`
2238
+ color: ${e=>e.theme.colors.hero};
2239
+ `,au=a(_)`
2240
+ color: ${e=>e.theme.colors.hero};
2241
+ display: none;
2242
+ `,lu=({balance:e,timeframeColumnIndex:n,vendor:o,vendorRowKey:i,onVendorNameAndBalanceClick:r})=>{const l=!(e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent")&&e?.type!=="period_total"&&e?.type!=="default_with_null_balance"&&!$o(o.id);return t.jsx(Zh,{"data-testid":y("report-tree-vendor-row-amount",`${i}-${String(n)}`),children:t.jsx(qh,{isClickable:l,onClick:()=>{l===!0&&r(o,e??void 0)},children:q(e)})})};function cu({backgroundColor:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,vendor:l,balances:c,accountBase:d,classBase:p,isAccountColumnShown:u,isClassColumnShown:g,onVendorNameAndBalanceClick:h,vendorRowIndex:x}){const f=W(),m=x!=null?String(x):l.id,w=en(),b=w.loggedInUserRole!=null&&!vo(w.loggedInUserRole),k=$o(l.id),v=b===!0&&l!=null&&!k,S=v?"pointer":"default",$=l.name;return t.jsxs(Kh,{"data-testid":y("vendor-row-root-container",m),height:o,bgColor:e,windowSize:f,children:[t.jsxs(Yh,{"data-testid":y("vendor-row-container",m),style:{cursor:S},isClickable:v,children:[t.jsx(Qh,{"data-testid":y("vendor-row-sticky-container",m),isSticky:n,windowSize:f,bgColor:e,children:t.jsxs(Jh,{"data-testid":y("vendor-row-name-container",m),windowSize:f,bgColor:e,children:[t.jsxs(st,{controller:!k,children:[t.jsx(tu,{"data-testid":y("report-tree-vendor-row-avatar",m),children:l.logo!=null?t.jsx(Jt,{photoUrl:l.logo.toString(),styles:{width:P.nameLogoWidth.valuePx(f),height:P.nameLogoHeight.valuePx(f)}}):t.jsx(Xt,{name:$,size:s.sp4})}),t.jsx(Ne,{"data-testid":y("vendor-row-name",m),style:{cursor:S},isClickable:v,onClick:()=>{v===!0&&h(l)},children:$})]}),t.jsx(st,{controller:k,children:t.jsxs(iu,{children:[t.jsx(nu,{"data-testid":y("report-tree-vendor-row-avatar",m),children:t.jsx(ou,{})}),t.jsx(ru,{className:"hyphen-text",children:N.getLocalizedStrings().common.strings.hyphen}),t.jsx(au,{className:"not-specified-text",children:$})]})})]})}),u?t.jsx(Xh,{windowSize:f,bgColor:e,children:d!=null?t.jsx(Ne,{"data-testid":y("vendor-row-account-name",m),title:d.accountName,isClickable:!1,children:d.accountName}):t.jsx(Ne,{isClickable:!1,"data-testid":y("vendor-row-account-name",m),children:N.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(eu,{windowSize:f,bgColor:e,children:p!=null?t.jsx(Ne,{"data-testid":y("vendor-row-class-name",m),title:p.className,isClickable:!1,children:p.className}):t.jsx(Ne,{"data-testid":y("vendor-row-class-name",m),isClickable:!1,children:N.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Uh,{children:c.map((B,L)=>t.jsx(lu,{balance:B,timeframeColumnIndex:L,vendor:l,vendorRowKey:m,onVendorNameAndBalanceClick:h},L))})]}),t.jsx(su,{isScrolling:i,isLastNode:r})]})}function su({isScrolling:e,isLastNode:n}){return n?t.jsx(Ut,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ut,{isScrolling:e,kind:"vendor_row_separator"})}function _n(e,n,o){return du(n,o,e)}const du=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>go(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>go(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>function(l,c,d,p){switch(p){case"off":return l;case"filter_actual_nil_account_group_balances":return l.filter(u=>Ii(c(u)?.balances??[]));case"filter_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return l.filter(u=>function(g){let h=!1;if(g!=null){for(const x of g)if(x.forecast!=null&&x.forecast.amount!==0||x.balance!=null&&x.balance.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return l.filter(u=>(c(u)?.balances??[]).length>0)}}(r,i.acGroupBalanceSelector,0,n),i};function go(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>function(r){let l=!1;if(r!=null){for(const c of r)if(c.totalBalance!=null&&c.totalBalance.amount!==0){l=!0;break}}return l}((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||Ii((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":case"filter_actual_forecast_nil_balances":return e.filter(i=>hu(n(i)?.balances??[]))}}function Ii(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function hu(e){let n=!1;if(e!=null){for(const o of e)if(o.totalForecast!=null&&o.totalForecast.amount!==0||o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function Oi(e,n,o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=function(p,u){return p.length>0?p:bo(Array(u),null)}([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}const uu=a.div`
2243
+ display: flex;
2244
+ flex: 1 1 auto;
2245
+ width: fit-content;
2246
+ min-width: 100%;
2247
+ flex-direction: column;
2248
+ height: ${e=>e.height}px;
2249
+ background-color: ${e=>e.bgColor?.hex()};
2250
+ `,pu=a.div`
2251
+ user-select: none;
2252
+ display: flex;
2253
+ flex: 1 1 auto;
2254
+ flex-flow: row;
2255
+ justify-content: flex-start;
2256
+ align-items: center;
2257
+ &:hover {
2258
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2259
+ }
2260
+ `,gu=a.div`
2261
+ display: flex;
2262
+ flex: 1 0 auto;
2263
+ flex-direction: row;
2264
+ justify-content: flex-end;
2265
+ `,xu=a.div`
2266
+ display: flex;
2267
+ flex-direction: row;
2268
+ justify-content: flex-start;
2269
+ `,Ni=a(_)`
2270
+ user-select: none;
2271
+ min-width: ${j.balanceWidth};
2272
+ max-width: ${j.balanceWidth};
2273
+ text-align: right;
2274
+ margin-left: ${j.balanceLeftMargin};
2275
+ color: ${e=>e.theme.colors.primary};
2276
+ `,fu=a(Ni)`
2277
+ color: ${e=>e.theme.colors.hero};
2278
+ &:hover {
2279
+ color: inherit;
2280
+ }
2281
+ `,mu=a.div`
2282
+ display: flex;
2283
+ flex-direction: row;
2284
+ flex-shrink: 2;
2285
+ flex-grow: 1;
2286
+ align-items: center;
2287
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2288
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2289
+ background-color: ${e=>e.bgColor?.hex()};
2290
+ ${({isSticky:e})=>e?z`
2291
+ position: -webkit-sticky;
2292
+ position: sticky;
2293
+ top: ${s.sp0};
2294
+ left: ${s.sp0};
2295
+ `:null}
2296
+ `,Mi=a(_)`
2297
+ user-select: none;
2298
+ clear: both;
2299
+ display: inline-block;
2300
+ overflow: hidden;
2301
+ white-space: nowrap;
2302
+ text-overflow: ellipsis;
2303
+ text-align: left;
2304
+ margin-left: ${s.sp4};
2305
+ color: ${e=>e.theme.colors.primary};
2306
+ `,wu=a(Mi)`
2307
+ color: ${e=>e.theme.colors.hero};
2308
+ &:hover {
2309
+ color: inherit;
2310
+ }
2311
+ `,yu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?fu:Ni;return t.jsxs(xu,{children:[ae(e)===!0||i?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function bu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=de(),b=W(),k=!x,v=k?"pointer":"default",S=l==="collapsed",$=l==="hidden",B=$===!0?C[6]:C[4],L=S===!0?wu:Mi,M=S===!0?wo:yo,T=S===!0?w.colors.hero:w.colors.primary;return t.jsxs(uu,{height:r,bgColor:n,"data-testid":y("pandl-report-account-group-row-root-container",i),children:[t.jsxs(pu,{"data-testid":y("pandl-report-account-group-row-container",i),style:{cursor:v},isClickable:k,onClick:()=>m?.(i),children:[xe(e)===!0?t.jsxs(mu,{bgColor:n,isSticky:o,windowSize:b,children:[$===!1?t.jsx(M,{color:T,style:{width:C[3],height:C[3]}}):null,t.jsx(L,{style:{marginLeft:B},children:c})]}):null,ke(e)===!0?t.jsx(gu,{children:d.map((D,K)=>t.jsx(yu,{type:e,accountGroupName:c,balance:D,isActualVsForecastOn:p,compareMode:u,collapsed:S},K))}):null]}),t.jsx(ku,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function ku({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=xe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const ju=a.div`
2312
+ display: flex;
2313
+ flex: 1 1 auto;
2314
+ width: fit-content;
2315
+ min-width: 100%;
2316
+ flex-direction: column;
2317
+ height: ${e=>e.height}px;
2318
+ background-color: ${e=>e.bgColor?.hex()};
2319
+ `,Su=a.div`
2320
+ user-select: none;
2321
+ display: flex;
2322
+ flex: 1 1 auto;
2323
+ flex-flow: row;
2324
+ justify-content: flex-start;
2325
+ align-items: center;
2326
+ &:hover {
2327
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2328
+ }
2329
+ `,Cu=a.div`
2330
+ display: flex;
2331
+ flex: 1 0 auto;
2332
+ flex-direction: row;
2333
+ justify-content: flex-end;
2334
+ `,vu=a.div`
2335
+ display: flex;
2336
+ flex-direction: row;
2337
+ justify-content: flex-start;
2338
+ `,Wi=a(_)`
2339
+ user-select: none;
2340
+ min-width: ${j.balanceWidth};
2341
+ max-width: ${j.balanceWidth};
2342
+ text-align: right;
2343
+ margin-left: ${j.balanceLeftMargin};
2344
+ color: ${e=>e.theme.colors.primary};
2345
+ `,$u=a(Wi)`
2346
+ color: ${e=>e.theme.colors.hero};
2347
+ &:hover {
2348
+ color: inherit;
2349
+ }
2350
+ `,_u=a.div`
2351
+ display: flex;
2352
+ flex-direction: row;
2353
+ flex-shrink: 2;
2354
+ flex-grow: 1;
2355
+ align-items: center;
2356
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2357
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2358
+ background-color: ${e=>e.bgColor?.hex()};
2359
+ ${({isSticky:e})=>e?z`
2360
+ position: -webkit-sticky;
2361
+ position: sticky;
2362
+ top: ${s.sp0};
2363
+ left: ${s.sp0};
2364
+ `:null}
2365
+ `,Pi=a(_)`
2366
+ user-select: none;
2367
+ clear: both;
2368
+ display: inline-block;
2369
+ overflow: hidden;
2370
+ white-space: nowrap;
2371
+ text-overflow: ellipsis;
2372
+ text-align: left;
2373
+ margin-left: ${s.sp2};
2374
+ color: ${e=>e.theme.colors.primary};
2375
+ `,Lu=a(Pi)`
2376
+ color: ${e=>e.theme.colors.hero};
2377
+ &:hover {
2378
+ color: inherit;
2379
+ }
2380
+ `,Au=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?$u:Wi;return t.jsxs(vu,{children:[ae(e)===!0||i?t.jsx(l,{children:q(n)}):t.jsx(l,{children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:J(n)}),t.jsx(l,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:p,compareMode:u,isScrolling:g,isOpen:h,isLeaf:x,isLastNode:f,onClick:m}){const w=W(),b=de(),k=!x,v=k?"pointer":"default",S=l==="collapsed",$=S===!0?Lu:Pi,[B,L]=V.useState(!1),M=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(ju,{"data-testid":y("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Su,{"data-testid":y("pandl-account-group-row-container",i),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),style:{cursor:v},isClickable:k,onClick:()=>m?.(i),children:[xe(e)===!0?t.jsxs(_u,{bgColor:n,isSticky:o,windowSize:w,children:[t.jsx(ve,{showCollapsedIcon:S,showIcon:B&&k,firstLetter:M,color:I(b.colors.primary)}),t.jsx($,{children:c})]}):null,ke(e)===!0?t.jsx(Cu,{children:d.map((T,D)=>t.jsx(Au,{type:e,accountGroupName:c,balance:T,isActualVsForecastOn:p,compareMode:u,collapsed:S},D))}):null]}),t.jsx(Iu,{isScrolling:g,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function Iu({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=xe(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(je,{isScrolling:e,kind:r})}const Ou=a.div`
2381
+ display: flex;
2382
+ flex: 1 1 auto;
2383
+ width: fit-content;
2384
+ min-width: 100%;
2385
+ flex-direction: column;
2386
+ height: ${e=>e.height}px;
2387
+ background-color: ${e=>e.bgColor?.hex()};
2388
+ `,Nu=a.div`
2389
+ user-select: none;
2390
+ display: flex;
2391
+ flex: 1 1 auto;
2392
+ flex-flow: row;
2393
+ justify-content: flex-start;
2394
+ align-items: center;
2395
+ `,Mu=a.div`
2396
+ display: flex;
2397
+ flex: 1 0 auto;
2398
+ flex-direction: row;
2399
+ justify-content: flex-end;
2400
+ `,Wu=a.div`
2401
+ display: flex;
2402
+ flex-direction: row;
2403
+ justify-content: flex-start;
2404
+ `,ot=a(_)`
2405
+ user-select: none;
2406
+ min-width: ${j.balanceWidth};
2407
+ max-width: ${j.balanceWidth};
2408
+ text-align: right;
2409
+ margin-left: ${j.balanceLeftMargin};
2410
+ color: ${e=>e.theme.colors.hero};
2411
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2412
+ &:hover {
2413
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2414
+ }
2415
+ `,Pu=a.div`
2416
+ display: flex;
2417
+ flex-direction: row;
2418
+ flex-shrink: 2;
2419
+ flex-grow: 1;
2420
+ align-items: center;
2421
+ ${({containerHeight:e})=>e!=null?z`
2422
+ height: ${e-1}px;
2423
+ `:null}
2424
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2425
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2426
+ background-color: ${e=>e.bgColor?.hex()};
2427
+ color: ${e=>e.isSubAccountLeaf?e.theme.colors.grey1:e.theme.colors.hero};
2428
+ cursor: ${e=>e.isRowClickable?"pointer":"default"};
2429
+ &:hover {
2430
+ color: ${e=>e.isRowClickable?e.theme.colors.primary:e.theme.colors.hero};
2431
+ }
2432
+ ${({isSticky:e})=>e?z`
2433
+ position: -webkit-sticky;
2434
+ position: sticky;
2435
+ top: ${s.sp0};
2436
+ left: ${s.sp0};
2437
+ `:null}
2438
+ `,Fu=a.div`
2439
+ display: flex;
2440
+ flex-direction: row;
2441
+ flex-shrink: 2;
2442
+ flex-grow: 1;
2443
+ align-items: center;
2444
+ ${({containerHeight:e})=>e!=null?z`
2445
+ height: ${e-1}px;
2446
+ `:null}
2447
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2448
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2449
+ background-color: ${e=>e.bgColor?.hex()};
2450
+ ${({isSticky:e})=>e?z`
2451
+ position: -webkit-sticky;
2452
+ position: sticky;
2453
+ top: ${s.sp0};
2454
+ left: ${s.sp0};
2455
+ `:null}
2456
+ `,zu=a(_)`
2457
+ user-select: none;
2458
+ clear: both;
2459
+ display: inline-block;
2460
+ text-align: left;
2461
+ `,Tu=a(_)`
2462
+ user-select: none;
2463
+ clear: both;
2464
+ display: inline-block;
2465
+ overflow: hidden;
2466
+ white-space: nowrap;
2467
+ text-overflow: ellipsis;
2468
+ text-align: left;
2469
+ margin-left: ${({titleIndentExtraPx:e})=>e!=null&&e>0?`calc(${s.sp6} + ${e}px)`:s.sp6};
2470
+ color: ${e=>e.theme.colors.hero};
2471
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2472
+ &:hover {
2473
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2474
+ }
2475
+ `,Vu=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:l,stopRowClickPropagation:c})=>{const d=r!=null&&n!=null&&l!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Wu,{"data-testid":y("account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(ot,{"data-testid":y("account-row-balance-actual",e),isClickable:d,onClick:p=>{c===!0&&p.stopPropagation(),d===!0&&r!=null&&n!=null&&l?.(r,n,bt(r,n))},children:q(n)}):t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:J(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(ot,{isClickable:!1,"data-testid":y("account-row-balance-forecast",e),children:J(n)}),t.jsx(ot,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Du({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:p,isLeaf:u,isLastNode:g,account:h,titleIndentExtraPx:x,horizontalTreeView:f,horizontalCollapse:m,onAccountBalanceClick:w}){const b=W(),{common:{strings:{hyphen:k}}}=N.getLocalizedStrings(),v=h?.accountDescription?h.accountDescription:k,S=h!=null&&Ge(h)===!0||h?.accountName?h.accountName:v;return t.jsxs(Ou,{height:r,bgColor:n,"data-testid":y("account-row-root-container",i),children:[t.jsxs(Nu,{"data-testid":y("account-row-container",i),onClick:m!=null?()=>m.onRowClick():void 0,children:[xe(e)===!0?f!=null?t.jsx(Pu,{isSticky:o,windowSize:b,bgColor:n,containerHeight:r,isRowClickable:m!=null,isSubAccountLeaf:f.isLeaf,children:t.jsx(zu,{title:S,children:t.jsx(pn,{classAnscestorMetadata:[],collapsed:m!=null&&!m.isOpen,depth:f.treeDepth,displayName:S,hasChildren:f.hasChildren,hasSiblings:f.hasSiblings,isLastNode:f.isLastNode,isLeaf:f.isLeaf,noMarginForAccount:!1,subAccountAnscestorMetadata:f.subAccountAncestorMetadata})})}):t.jsx(Fu,{isSticky:o,windowSize:b,bgColor:n,children:t.jsx(Tu,{isClickable:!1,title:S,titleIndentExtraPx:x,children:S})}):null,ke(e)===!0?t.jsx(Mu,{children:l.map(($,B)=>t.jsx(Vu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:$,account:h,stopRowClickPropagation:m!=null,onAccountBalanceClick:w==null?void 0:(L,M,T)=>{w(i,L,M,T)}},B))}):null]}),t.jsx(Eu,{isScrolling:p,type:e,isLeaf:u,isLastNode:g})]})}function Eu({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":xe(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(je,{isScrolling:e,kind:i})}const Gu=a.div`
2476
+ user-select: none;
2477
+ display: flex;
2478
+ flex: 1 1 auto;
2479
+ width: fit-content;
2480
+ min-width: 100%;
2481
+ height: ${e=>e.height}px;
2482
+ flex-flow: row;
2483
+ justify-content: flex-start;
2484
+ align-items: center;
2485
+ background-color: ${e=>e.bgColor?.hex()};
2486
+ `,Ru=a.div`
2487
+ display: flex;
2488
+ flex: 1 0 auto;
2489
+ flex-direction: row;
2490
+ justify-content: flex-end;
2491
+ `,xo=a.div`
2492
+ display: flex;
2493
+ max-height: 54px;
2494
+ min-height: 54px;
2495
+ min-width: ${j.balanceWidthInPx}px;
2496
+ justify-content: center;
2497
+ align-items: center;
2498
+ background-color: ${e=>e.theme.colors.background};
2499
+ border: 1px solid ${e=>e.theme.colors.grey3};
2500
+ border-radius: ${s.sp2};
2501
+ margin-left: ${j.balanceLeftMarginInPx}px;
2502
+ color: ${e=>e.theme.colors.primary};
2503
+ `,Hu=a.div`
2504
+ display: flex;
2505
+ flex-direction: row;
2506
+ align-items: center;
2507
+ justify-content: center;
2508
+ height: ${j.balanceHeight};
2509
+ max-width: ${j.balanceWidthInPx-2}px;
2510
+ width: ${j.balanceWidthInPx-2}px;
2511
+ min-width: 0;
2512
+ `,Ku=a(_)`
2513
+ display: flex;
2514
+ user-select: none;
2515
+ flex-direction: row;
2516
+ justify-content: center;
2517
+ align-items: center;
2518
+ height: ${j.balanceHeight};
2519
+ max-width: ${j.balanceWidthInPx-2}px;
2520
+ width: ${j.balanceWidthInPx-2}px;
2521
+ text-align: center;
2522
+ overflow: hidden;
2523
+ text-overflow: ellipsis;
2524
+ white-space: nowrap;
2525
+ `,Yu=a.div`
2526
+ height: 100%;
2527
+ display: inline-block;
2528
+ flex-direction: row;
2529
+ align-items: center;
2530
+ min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2531
+ color: ${e=>e.theme.colors.grey5};
2532
+ background-color: ${e=>e.bgColor?.hex()};
2533
+ border: 1px solid ${e=>e.bgColor?.hex()};
2534
+ ${({isSticky:e})=>e?z`
2535
+ position: -webkit-sticky;
2536
+ position: sticky;
2537
+ top: ${s.sp0};
2538
+ left: ${s.sp0};
2539
+ z-index: 20;
2540
+ `:null}
2541
+ `;function Uu({text:e}){const n=de();return t.jsx(Hu,{children:t.jsx(ar,{text:e,style:{width:"100%",minWidth:0},itemTextStyle:{color:n.colors.primary,textAlign:"center"}})})}function Zu({type:e,backgroundColor:n,isSticky:o,height:i,classColumns:r}){const l=W();return t.jsxs(Gu,{height:i,bgColor:n,children:[xe(e)===!0?t.jsx(Yu,{"aria-hidden":!0,isSticky:o,windowSize:l,bgColor:n}):null,t.jsxs(Ru,{children:[r.map((c,d)=>t.jsx(xo,{children:t.jsx(Uu,{text:c.className})},c.classId??d)),t.jsx(xo,{children:t.jsx(Ku,{children:"Total"})},"total")]})]})}const qu=a.div`
2542
+ display: flex;
2543
+ flex: 1 1 auto;
2544
+ width: fit-content;
2545
+ min-width: 100%;
2546
+ flex-direction: column;
2547
+ height: ${e=>e.height}px;
2548
+ background-color: ${e=>e.bgColor?.hex()};
2549
+ `,Qu=a.div`
2550
+ user-select: none;
2551
+ display: flex;
2552
+ flex: 1 1 auto;
2553
+ flex-flow: row;
2554
+ justify-content: flex-start;
2555
+ align-items: center;
2556
+ `,Ju=a.div`
2557
+ display: flex;
2558
+ flex: 1 0 auto;
2559
+ flex-direction: row;
2560
+ justify-content: flex-end;
2561
+ `,Xu=a.div`
2562
+ display: flex;
2563
+ flex-direction: row;
2564
+ justify-content: flex-start;
2565
+ `,it=a(_)`
2566
+ user-select: none;
2567
+ max-width: ${j.balanceWidth};
2568
+ min-width: ${j.balanceWidth};
2569
+ text-align: right;
2570
+ margin-left: ${j.balanceLeftMargin};
2571
+ `,ep=a.div`
2572
+ display: flex;
2573
+ flex-direction: row;
2574
+ flex-shrink: 2;
2575
+ flex-grow: 1;
2576
+ align-items: center;
2577
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2578
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2579
+ background-color: ${e=>e.bgColor?.hex()};
2580
+ ${({isSticky:e})=>e?z`
2581
+ position: -webkit-sticky;
2582
+ position: sticky;
2583
+ top: ${s.sp0};
2584
+ left: ${s.sp0};
2585
+ `:null}
2586
+ `,tp=a.div`
2587
+ display: flex;
2588
+ flex-grow: 8;
2589
+ `,np=a(_)`
2590
+ user-select: none;
2591
+ user-select: none;
2592
+ clear: both;
2593
+ display: inline-block;
2594
+ overflow: hidden;
2595
+ white-space: nowrap;
2596
+ text-overflow: ellipsis;
2597
+ text-align: left;
2598
+ margin-left: ${s.sp2};
2599
+ `,op=a(Ce)`
2600
+ display: flex;
2601
+ color: ${e=>e.theme.colors.primary};
2602
+ align-items: center;
2603
+ flex-direction: row;
2604
+ justify-content: flex-end;
2605
+ padding: 1px 6px;
2606
+ height: 20px;
2607
+ border: 1px solid ${e=>e.theme.colors.primary};
2608
+ border-radius: ${s.sp1};
2609
+ margin: 0 ${s.sp5} 0 ${s.sp3};
2610
+ `,ip=({metadata:e,depth:n})=>n===0?null:e.hasSibling!==!0||e.isLastNode?t.jsx(rr,{}):t.jsx(ir,{}),rp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Xu,{children:[ae(e)===!0||i?t.jsx(it,{style:{color:o},children:q(n)}):t.jsx(it,{style:{color:o},children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(it,{style:{color:o},children:J(n)}),t.jsx(it,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function ap({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:p,compareMode:u,hasChildren:g,isScrolling:h,isOpen:x,isLeaf:f,metadata:m,showClassAccountNumber:w,onClick:b,depth:k}){const v=W(),S=!f,$=S?"pointer":"default",B=de().colors.primary,L=l.length>0?l.substr(0,1).toUpperCase():"",[M,T]=V.useState(!1),D=m.classAncestorMetadata??[];return t.jsxs(qu,{"data-testid":y("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Qu,{"data-testid":y("class-row-container",i),style:{cursor:$},onClick:()=>b?.(i),onMouseOver:()=>T(!0),onMouseLeave:()=>T(!1),children:[xe(e)===!0?t.jsxs(ep,{isSticky:o,windowSize:v,bgColor:n,children:[t.jsx(ja,{name:l,ancestorMetadata:D,depth:k}),t.jsx(ip,{metadata:D[k],depth:k}),t.jsx(ve,{color:I(B),showCollapsedIcon:!x,showIcon:M&&S,firstLetter:L,showTreeLine:g}),t.jsx(tp,{children:t.jsx(np,{style:{color:B},children:l})}),M===!0&&w===!0&&c!==void 0&&t.jsx(op,{children:c})]}):null,ke(e)===!0?t.jsx(Ju,{children:d.map((K,X)=>t.jsx(rp,{type:e,sectionName:l,balance:K,isActualVsForecastOn:p,compareMode:u,color:B},X))}):null]}),t.jsx(lp,{isScrolling:h,isLeaf:f,isOpen:x})]})}function lp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}const cp=a.div`
2611
+ display: flex;
2612
+ flex: 1 1 auto;
2613
+ width: fit-content;
2614
+ min-width: 100%;
2615
+ flex-direction: column;
2616
+ height: ${e=>e.height}px;
2617
+ background-color: ${e=>e.bgColor?.hex()};
2618
+ `,sp=a.div`
2619
+ user-select: none;
2620
+ display: flex;
2621
+ flex: 1 1 auto;
2622
+ flex-flow: row;
2623
+ justify-content: flex-start;
2624
+ align-items: center;
2625
+ `,dp=a.div`
2626
+ display: flex;
2627
+ flex: 1 0 auto;
2628
+ flex-direction: row;
2629
+ justify-content: flex-end;
2630
+ `,hp=a.div`
2631
+ display: flex;
2632
+ flex-direction: row;
2633
+ justify-content: flex-start;
2634
+ `,rt=a(_)`
2635
+ user-select: none;
2636
+ max-width: ${j.balanceWidth};
2637
+ min-width: ${j.balanceWidth};
2638
+ text-align: right;
2639
+ margin-left: ${j.balanceLeftMargin};
2640
+ `,up=a.div`
2641
+ display: flex;
2642
+ flex-direction: row;
2643
+ flex-shrink: 2;
2644
+ flex-grow: 1;
2645
+ align-items: center;
2646
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2647
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2648
+ background-color: ${e=>e.bgColor?.hex()};
2649
+ ${({isSticky:e})=>e?z`
2650
+ position: -webkit-sticky;
2651
+ position: sticky;
2652
+ top: ${s.sp0};
2653
+ left: ${s.sp0};
2654
+ `:null}
2655
+ `,pp=a(_)`
2656
+ user-select: none;
2657
+ user-select: none;
2658
+ clear: both;
2659
+ display: inline-block;
2660
+ overflow: hidden;
2661
+ white-space: nowrap;
2662
+ text-overflow: ellipsis;
2663
+ text-align: left;
2664
+ margin-left: ${s.sp2};
2665
+ `,gp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(hp,{children:[ae(e)===!0||i?t.jsx(rt,{style:{color:o},children:q(n)}):t.jsx(rt,{style:{color:o},children:J(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(rt,{style:{color:o},children:J(n)}),t.jsx(rt,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Ln({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:p,sectionColor:u,isScrolling:g,isOpen:h,isLeaf:x,onClick:f}){const m=W(),w=!x,b=w?"pointer":"default",k=l.length>0?l.substring(0,1).toUpperCase():"",[v,S]=V.useState(!1);return t.jsxs(cp,{"data-testid":y("section-row",i),height:r,bgColor:n,children:[t.jsxs(sp,{"data-testid":y("section-row-container",i),style:{cursor:b},onClick:()=>f?.(i),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),children:[xe(e)===!0?t.jsxs(up,{isSticky:o,windowSize:m,bgColor:n,children:[t.jsx(ve,{color:I(u),showCollapsedIcon:!h,showIcon:v&&w,firstLetter:k}),t.jsx(pp,{style:{color:u},children:l})," "]}):null,ke(e)===!0?t.jsx(dp,{children:c.map(($,B)=>t.jsx(gp,{type:e,sectionName:l,balance:$,isActualVsForecastOn:d,compareMode:p,color:u},B))}):null]}),t.jsx(xp,{isScrolling:g,isLeaf:x,isOpen:h})]})}function xp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(je,{isScrolling:e,kind:"section_row_separator"}):null}const fp=a.div`
2666
+ display: flex;
2667
+ flex: 1 1 auto;
2668
+ width: fit-content;
2669
+ min-width: 100%;
2670
+ flex-direction: column;
2671
+ height: ${e=>e.height-1}px;
2672
+ background-color: ${e=>e.bgColor?.hex()};
2673
+ `,mp=a.div`
2674
+ user-select: none;
2675
+ display: flex;
2676
+ flex: 1 1 auto;
2677
+ flex-flow: row;
2678
+ justify-content: flex-start;
2679
+ align-items: center;
2680
+ `,wp=a.div`
2681
+ display: flex;
2682
+ flex: 1 0 auto;
2683
+ flex-direction: row;
2684
+ justify-content: flex-end;
2685
+
2686
+ .field-thread-wrapper {
2687
+ --ft-icon-right: -28px;
2688
+ --ft-icon-top: -6px;
2689
+
2690
+ outline: none;
2691
+ overflow: visible;
2692
+ z-index: 0;
2693
+
2694
+ .active-thread-count {
2695
+ z-index: 4;
2696
+ pointer-events: auto;
2697
+ }
2698
+
2699
+ &::after {
2700
+ content: "";
2701
+ position: absolute;
2702
+ top: -${s.sp2};
2703
+ right: -36px;
2704
+ width: 36px;
2705
+ height: calc(100% + ${s.sp3});
2706
+ z-index: 3;
2707
+ pointer-events: auto;
2708
+ }
2709
+ }
2710
+
2711
+ .field-thread-wrapper:hover,
2712
+ .field-thread-wrapper:focus-within {
2713
+ outline: none;
2714
+ z-index: 5;
2715
+ }
2716
+ `,yp=a.div`
2717
+ display: flex;
2718
+ flex-direction: row;
2719
+ justify-content: flex-start;
2720
+ `,at=a(_)`
2721
+ user-select: none;
2722
+ min-width: ${j.balanceWidth};
2723
+ max-width: ${j.balanceWidth};
2724
+ text-align: right;
2725
+ margin-left: ${j.balanceLeftMargin};
2726
+ color: ${e=>e.theme.colors.hero};
2727
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2728
+ &:hover {
2729
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2730
+ }
2731
+ `,bp=a.div`
2732
+ display: flex;
2733
+ flex-direction: row;
2734
+ flex-shrink: 2;
2735
+ flex-grow: 1;
2736
+ align-items: center;
2737
+ height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
2738
+ // because the height of the svg is much larger
2739
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2740
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2741
+ background-color: ${e=>e.bgColor?.hex()};
2742
+ color: ${e=>e.theme.colors.hero};
2743
+
2744
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2745
+ &:hover {
2746
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2747
+ }
2748
+ ${({isSticky:e})=>e?z`
2749
+ position: -webkit-sticky;
2750
+ position: sticky;
2751
+ top: ${s.sp0};
2752
+ left: ${s.sp0};
2753
+ `:null}
2754
+ `,kp=a(_)`
2755
+ user-select: none;
2756
+ clear: both;
2757
+ display: inline-block;
2758
+ text-align: left;
2759
+ `,jp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:l,reportId:c,companyId:d,companyName:p,isCommentingEnabled:u,isForecastReport:g,onAccountBalanceClick:h})=>{const x=n!=null&&yr(n?.type),f=r!=null&&n!=null&&h!=null&&x!==!0,m=l===!0?Lo(n):q(n),w=l===!0?Tt(n):J(n),b=l===!0?Ao(n):pe(n),k=l===!0?Bo(n):ge(n),v=nr(r?.accountId,n),S=dr({type:"details",key:c}),$=t.jsxs(yp,{"data-testid":y("account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(at,{"data-testid":y("account-row-balance-actual",e),isClickable:f,onClick:L=>{L.stopPropagation(),f===!0&&r!=null&&n!=null&&h?.(r,n,bt(r,n))},children:m}):t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:w}),o?t.jsxs(t.Fragment,{children:[t.jsx(at,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:w}),t.jsx(at,{"data-testid":y("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?b:k})]}):null]});if(!u||v==null||!d)return $;const B=g?"forecast_report":"standard_report";return t.jsx(or,{isThreadAllowed:!0,dashboardTabKey:S,roomId:`dashboard_${d}`,companyId:d,companyName:p,entityId:v,dashboardOptionType:B,filterMetaData:{companyId:d,tab:B,entityType:`${B}.${S}`,entityId:v},children:$})},{common:{strings:{empty:Sp,plus:Cp}}}=N.getLocalizedStrings();function vp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:p,metadata:u,isScrolling:g,noMarginForAccount:h,isLeaf:x,isOpen:f,isLastNode:m,account:w,reportId:b,onAccountBalanceClick:k,onClick:v}){const S=W(),$=en(),B=$?.currentTenant?.companyId??"",L=$?.currentTenant?.companyName??"",M=typeof b=="string"&&b.includes(Cp),{useFeatureGate:T}=Qi(),{isFeatureEnabled:D}=T(Ji.isReportsCommentingEnabled),K=D,X=w!=null?w.id.length-1:0,Q=w?.hasSiblings??!1,ie=w!=null&&w.children.length!==0,he=u,le=w?.account.accountDescription?w.account.accountDescription:Sp,re=w?.account.accountName?w.account.accountName:le;return t.jsxs(fp,{"data-testid":y("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(mp,{"data-testid":y("sub-account-row-container",i),onClick:()=>v?.(i),children:[t.jsx(bp,{isClickable:ie,isSticky:o,windowSize:S,bgColor:n,containerHeight:r,children:t.jsx(kp,{title:re,children:t.jsx(pn,{displayName:re,depth:X,classDepth:l,isLastNode:m,hasChildren:ie,hasSiblings:Q,isLeaf:x,collapsed:!f,subAccountAnscestorMetadata:he.subAccountAncestorMetadata,classAnscestorMetadata:he.classAncestorMetadata??[],noMarginForAccount:h})})}),ke(e)===!0?t.jsx(wp,{children:c.map((be,$e)=>t.jsx(jp,{type:e,isActualVsForecastOn:d,compareMode:p,balance:be,account:w?.account,showTotal:!f,reportId:b,companyId:B,companyName:L,isCommentingEnabled:K,isForecastReport:M,onAccountBalanceClick:k==null?void 0:(ce,ue,_e)=>{k(i,ce,ue,_e)}},$e))}):null]}),t.jsx($p,{isScrolling:g,isLeaf:x,isOpen:f,depth:X,isSticky:o,classDepth:l,noMarginForAccount:h})]})}function $p({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:l,noMarginForAccount:c}){return o&&i!==!0?null:t.jsx(je,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}})}const _p=[10,14,20,20,20],Lp=a.div`
2760
+ display: flex;
2761
+ flex: 1 1 auto;
2762
+ width: fit-content;
2763
+ min-width: 100%;
2764
+ flex-direction: column;
2765
+ height: ${e=>e.height-1}px;
2766
+ background-color: ${e=>e.bgColor?.hex()};
2767
+ `,Ap=a.div`
2768
+ user-select: none;
2769
+ display: flex;
2770
+ flex: 1 1 auto;
2771
+ flex-flow: row;
2772
+ justify-content: flex-start;
2773
+ align-items: center;
2774
+ `,Bp=a.div`
2775
+ width: ${e=>Io.emptyLeftContainer.valuePx(e.windowSize)};
2776
+ height: ${s.sp1};
2777
+ `,Ip=a.div`
2778
+ display: flex;
2779
+ flex: 1 0 auto;
2780
+ flex-direction: row;
2781
+ justify-content: flex-end;
2782
+ `,Op=a.div`
2783
+ display: flex;
2784
+ flex-direction: row;
2785
+ justify-content: flex-start;
2786
+ `,lt=a(_)`
2787
+ user-select: none;
2788
+ min-width: ${j.balanceWidth};
2789
+ max-width: ${j.balanceWidth};
2790
+ text-align: right;
2791
+ margin-left: ${j.balanceLeftMargin};
2792
+ color: ${e=>e.theme.colors.primary};
2793
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2794
+ `,Np=a.div`
2795
+ display: flex;
2796
+ flex-direction: row;
2797
+ flex-shrink: 2;
2798
+ flex-grow: 1;
2799
+ align-items: center;
2800
+ height: ${e=>e.containerHeight-1}px;
2801
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2802
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2803
+ background-color: ${e=>e.bgColor?.hex()};
2804
+ ${({isSticky:e})=>e?z`
2805
+ position: -webkit-sticky;
2806
+ position: sticky;
2807
+ top: ${s.sp0};
2808
+ left: ${s.sp0};
2809
+ `:null}
2810
+ `,Mp=a(_)`
2811
+ user-select: none;
2812
+ clear: both;
2813
+ display: inline-block;
2814
+ overflow: hidden;
2815
+ white-space: nowrap;
2816
+ text-overflow: ellipsis;
2817
+ text-align: left;
2818
+ margin-left: ${e=>_p[e.depth]}px;
2819
+ color: ${e=>e.theme.colors.primary};
2820
+ width: ${e=>j.titleWidth.value(e.windowSize)-80*e.depth}px;
2821
+ `,Wp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(Op,{"data-testid":y("sub-account-row-balance-element",e),children:[ae(e)===!0||o?t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual",e),isClickable:!1,children:Lo(n)}):t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Tt(n)}),t.jsx(lt,{"data-testid":y("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?Ao(n):Bo(n)})]}):null]});function Pp({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:p,isActualVsForecastOn:u,compareMode:g,isScrolling:h,metadata:x}){const f=W(),m=N.getLocalizedStrings().reports.sections,w=d!=null?d.id.length-1:0,b=x;return t.jsxs(Lp,{height:i,bgColor:n,children:[t.jsxs(Ap,{children:[t.jsxs(Np,{isSticky:o,windowSize:f,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(No,{ancestorMetadata:b.classAncestorMetadata??[],depth:r,name:l}):p===!1?t.jsx(Bp,{windowSize:f}):null,t.jsx(Mo,{ancestorMetadata:b.subAccountAncestorMetadata,depth:w,name:l}),t.jsx(Mp,{"data-testid":y("sub-account-row-name",e),isClickable:!1,title:l,depth:w,windowSize:f,children:m.totalPrefix+" "+l})]}),ke(e)===!0?t.jsx(Ip,{children:c.map((k,v)=>t.jsx(Wp,{type:e,isActualVsForecastOn:u,compareMode:g,balance:k},v))}):null]}),t.jsx(Fp,{isScrolling:h,nestingLevel:w,isSticky:o,classDepth:r,noMarginForAccount:p})]})}function Fp({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(je,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}})}const zp=a.div`
2822
+ user-select: none;
2823
+ display: flex;
2824
+ flex: 1 1 auto;
2825
+ width: fit-content;
2826
+ min-width: 100%;
2827
+ height: ${e=>e.height}px;
2828
+ flex-flow: row;
2829
+ justify-content: flex-start;
2830
+ align-items: center;
2831
+ background-color: ${e=>e.bgColor?.hex()};
2832
+ `,Tp=a.div`
2833
+ display: flex;
2834
+ flex: 1 0 auto;
2835
+ flex-direction: row;
2836
+ justify-content: flex-end;
2837
+ `,Re=j.balanceWidthInPx+j.balanceLeftMarginInPx,Fi=a.div`
2838
+ display: flex;
2839
+ max-height: 54px;
2840
+ min-height: 54px;
2841
+ min-width: ${e=>e.isActualVsForecastOn?3*(Re-2)-j.balanceLeftMarginInPx:j.balanceWidthInPx}px;
2842
+ justify-content: center;
2843
+ align-items: center;
2844
+ background-color: ${e=>e.theme.colors.background};
2845
+ border: 1px solid ${e=>e.theme.colors.grey3};
2846
+ border-radius: ${s.sp2};
2847
+ margin-left: ${e=>e.isActualVsForecastOn?C[0]:j.balanceLeftMarginInPx}px;
2848
+ color: ${e=>e.theme.colors.primary};
2849
+ `,zi=a(_)`
2850
+ display: flex;
2851
+ user-select: none;
2852
+ flex-direction: row;
2853
+ justify-content: center;
2854
+ align-items: center;
2855
+ height: ${j.balanceHeight};
2856
+ max-width: ${j.balanceWidthInPx-2}px;
2857
+ width: 138px;
2858
+ text-align: center;
2859
+ `,Vp=a.div`
2860
+ height: 100%;
2861
+ display: inline-block;
2862
+ flex-direction: row;
2863
+ align-items: center;
2864
+ min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2865
+ color: ${e=>e.theme.colors.grey5};
2866
+ background-color: ${e=>e.bgColor?.hex()};
2867
+ border: 1px solid ${e=>e.bgColor?.hex()};
2868
+ ${({isSticky:e})=>e?z`
2869
+ position: -webkit-sticky;
2870
+ position: sticky;
2871
+ top: ${s.sp0};
2872
+ left: ${s.sp0};
2873
+ z-index: 20;
2874
+ `:null}
2875
+ `,Dp=a.div`
2876
+ display: flex;
2877
+ width: ${e=>e.isActualVsForecastOn?3*Re:Re}px;
2878
+ flex-direction: row;
2879
+ justify-content: flex-start;
2880
+ color: ${e=>e.theme.colors.champion};
2881
+ `,zt=a(_)`
2882
+ display: flex;
2883
+ justify-content: flex-end;
2884
+ align-items: center;
2885
+ height: ${j.balanceHeight};
2886
+ width: ${j.balanceWidth};
2887
+ min-width: ${j.balanceWidth};
2888
+ margin-left: ${j.balanceLeftMargin};
2889
+ margin-top: ${s.sp3};
2890
+ `,Ep=a.div`
2891
+ display: flex;
2892
+ max-height: 54px;
2893
+ min-height: 54px;
2894
+ justify-content: center;
2895
+ align-items: center;
2896
+ color: ${e=>e.theme.colors.champion};
2897
+ `,Gp=a.div``,Rp=a(_)`
2898
+ display: flex;
2899
+ justify-content: center;
2900
+ align-items: center;
2901
+ max-height: 54px;
2902
+ min-height: 54px;
2903
+ background-color: ${e=>e.theme.colors.background};
2904
+ border: 1px solid ${e=>e.theme.colors.grey3};
2905
+ border-radius: ${s.sp2};
2906
+ margin-left: ${j.balanceLeftMarginInPx}px;
2907
+ color: ${e=>e.theme.colors.primary};
2908
+ width: ${j.balanceWidth};
2909
+ min-width: ${j.balanceWidth};
2910
+ `,Hp=a.div`
2911
+ display: flex;
2912
+ width: ${e=>e.isActualVsForecastOn?3*Re:Re}px;
2913
+ flex-direction: column;
2914
+ align-items: flex-end;
2915
+ `,Kp=a.div`
2916
+ max-height: 54px;
2917
+ min-height: 54px;
2918
+ `,Ti=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=N.getLocalizedStrings().reports,c=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:_o(o,e,n,r,i),d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,p=Si(c,o);return t.jsx(Kp,{children:r!=null&&i!=null&&c!=null&&d!=null&&p!=null?t.jsx(ji,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:d,infoContent:p,tagType:c}):t.jsx(Fi,{isActualVsForecastOn:!1,children:t.jsx(zi,{children:Ye(e,n,o)})})})},Yp=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const p=N.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(Hp,{isActualVsForecastOn:i,children:[t.jsx(Fi,{isActualVsForecastOn:i,children:t.jsx(zi,{children:Ye(e,n,o)})}),t.jsxs(Dp,{isActualVsForecastOn:i,children:[t.jsx(zt,{children:p.actual}),t.jsx(zt,{children:p.forecast}),t.jsx(zt,{children:t.jsx(Cn,{title:u,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:g=>{g!=="off"?d?.(g):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c})},Up=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=de(),p=i==="compare_mode_amount"?`${N.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:N.getLocalizedStrings().compareMode.changePercent;return t.jsx(Ep,{children:n.map((u,g)=>t.jsx(V.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Rp,{children:t.jsx(Cn,{title:p,titleTextStyle:nn.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:h=>{h!=="off"&&(h==="compare_mode_amount"||h==="compare_mode_percent"?c?.(h):console.warn("Invalid compare mode option"))}})}):t.jsx(Gp,{children:t.jsx(Ti,{firstMonthOfFY:e,timeframeTick:u,timeframe:o,dataAvailable:r,bookCloseDate:l},g)})},g))})};function Zp({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}){const f=W();return t.jsxs(zp,{height:i,bgColor:n,children:[xe(e)===!0?t.jsx(Vp,{isSticky:o,windowSize:f,bgColor:n,children:" . "}):null,t.jsx(Tp,{children:l===!0?t.jsx(Up,{firstMonthOfFY:c,timeframe:d,timeframeTicks:p,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x}):p.map((m,w)=>t.jsx(Yp,{firstMonthOfFY:c,timeframeTick:m,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:g,bookCloseDate:h,onCompareModeChanged:x},w))})]})}const Lt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const x=o.element.data,f=Ge(x)===!0?x.horizontalTreeView:void 0,m=Ge(x)===!0&&f==null?16*Math.max(0,x.depth-2):void 0,w=te((Ke(o.config.reportId)===!0||Co(o.config.reportId)===!0?ri(0,o.config.filterAccountsWithNilBalances):ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),b=f!=null&&f.hasChildren&&h!=null?{isOpen:u,onRowClick:()=>h(e)}:void 0;return t.jsx(Du,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:w.balances,isScrolling:c,isLeaf:d,isLastNode:p,account:x,titleIndentExtraPx:m,horizontalTreeView:f,horizontalCollapse:b,onAccountBalanceClick:h==null?void 0:(k,v,S,$)=>{h?.(k,v,S,$)}})},Ue=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const x=o.element.data,f=Oi(_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),m=x.account.classesViewParentId?.parentClassId!=null?x.account.classesViewParentId?.parentClassId.length-1:void 0,w=o.config.reportId==="operating_expenses";return t.jsx(vp,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:m,compareMode:g,accountBalances:f.balances,isScrolling:c,isLeaf:d,isOpen:p,isLastNode:u,account:x,reportId:o.config.reportId,metadata:o.element.metadata,onClick:h,noMarginForAccount:w,onAccountBalanceClick:h==null?void 0:(b,k,v,S)=>{h?.(b,k,v,S)}})},At=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const x=o.element.data,f=te(ut(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},An=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const x=o.element.data,f=te(_n("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bn=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Bt=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},In=(e,n,o,i,r,l,c,d,p,u,g,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=un(o.element.title),f=te(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Ln,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:p,isLastNode:u,onClick:m=>{h?.(m)}})},Ze=(e,n,o,i,r,l,c,d,p)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,g=_n("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),h=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,x=Oi(g.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),f=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Pp,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:p,accountBalances:x.balances,isScrolling:l,noMarginForAccount:f,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:h})},qe=(e,n,o,i,r,l,c,d)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const p=We(o.element.data,o.config.displayOrder),u=p.length>0?p[0].balanceTimeFrame:"month",g=p.map(h=>Me(h));return t.jsx(Zp,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&g.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:u,timeframeTicks:g,compareMode:c,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:d})},Vi=(e,n,o,i,r,l,c,d,p,u,g,h,x)=>{if(o.element.kind!="class"||o.element.data==null)return null;const f=o.element.data,m=te(f.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),w=g>1;return t.jsx(ap,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:f.id.length-1,compareMode:h,sectionBalances:m.balances,isScrolling:c,isOpen:d,isLeaf:p,hasChildren:f.children.length>0,isLastNode:u,isSubClass:w,showClassAccountNumber:o.config.showClassAccountNumber,onClick:b=>{x?.(b)},metadata:o.element.metadata})},fo=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:p},isOpen:u,style:g,setOpen:h,isScrolling:x}=e,f=e.treeNodePadding?.left,m=e.treeNodePadding?.right;return t.jsx("div",{style:{...g,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m},children:t.jsx(Di,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:x??!1,isLeaf:l,isLastNode:c,isFirstNode:p,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick==null&&l?void 0:(w,b,k,v)=>{const S=l?u:!u;!l&&k==null&&(h(!u),e.onNodeCollapseToggled?.(w,!u)),e.onNodeClick?.(w,S,b,k,v)},compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},Di=e=>e.treeKind==="name_only"?t.jsx(tg,{...e}):cn(e.reportElementData.config.reportId)?t.jsx(og,{...e}):dn(e.reportElementData.config.reportId)===!0?t.jsx(ng,{...e}):Co(e.reportElementData.config.reportId)===!0?t.jsx(qp,{...e}):an(e.reportElementData.config.reportId)===!0?t.jsx(Qp,{...e}):Ke(e.reportElementData.config.reportId)===!0?t.jsx(Jp,{...e}):ln(e.reportElementData.config.reportId)===!0?t.jsx(Xp,{...e}):wr(e.reportElementData.config.reportId)===!0?t.jsx(eg,{...e}):hn(e.reportElementData.config.reportId)===!0?t.jsx(ig,{...e}):sn(e.reportElementData.config.reportId)===!0?t.jsx(rg,{...e}):null,qp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return In(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":default:return null;case"class_headers":return((m,w,b,k,v,S)=>{if(b.element.kind!=="class_headers")return null;const $=b.element.data;return t.jsx(Zu,{isSticky:S,type:w,height:k,backgroundColor:v,classColumns:$})})(0,n,o,i,r,l);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,h,x);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,h);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r)}},Qp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return In(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":default:return null;case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x)}},Jp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,nestingLevel:g,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,h,x);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,h,x);case"section":return hi(e,n,o,i,r,l,c,u,d,p,h,x);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,h,x);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,h,x);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,h,x);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,h);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,h,f);case"class":return Vi(e,n,o,i,r,l,c,u,d,p,g,h,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,h,x);case"total":return pi(e,n,o,i,r,l,h,d);case"headers_loading_in_progress":return((m,w,b)=>m.element.kind!=="headers_loading_in_progress"?null:t.jsx(ci,{height:w,backgroundColor:b,numOfBalances:m.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((m,w,b)=>m.element.kind!=="loading_in_progress"?null:t.jsx(ai,{height:w,backgroundColor:b,title:m.element.title,numOfBalances:m.element.numOfBalances}))(o,i,r);default:return null}},Xp=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return((f,m,w,b,k,v,S,$,B,L,M)=>{if(w.element.kind!="ac_report"||w.element.data==null)return null;const T=w.element.data,D=te((Ke(w.config.reportId)===!0?ri(0,w.config.filterAccountsWithNilBalances):ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(T),w.config.displayOrder,w.element.numOfBalances);return t.jsx(Lc,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,accountBalances:D.balances,isCompareModeOn:w.config.mode==="this_period_vs_period_before",isForecastModeOn:w.config.mode==="actual_vs_forecast",isScrolling:S,isLeaf:$,isLastNode:B,compareMode:L,account:T,onAccountBalanceClick:M==null?void 0:(K,X,Q,ie)=>{M?.(K,X,Q,ie)}})})(e,n,o,i,r,l,c,d,p,g,h);case"ac_group_report":return((f,m,w,b,k,v,S,$,B,L,M,T)=>{if(w.element.kind!="ac_group_report"||w.element.data==null)return null;const D=w.element.data,K=te(ut(w.element.sectionType,"no_filter",w.config.filterAccountsWithNilBalances,w.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(D),w.config.displayOrder,w.element.numOfBalances);return t.jsx(wc,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,accountGroupName:D.accountGroupName,compareMode:M,accountGroupBalances:K.balances,isScrolling:S,isOpen:$,isLeaf:B,isLastNode:L,onClick:X=>{T?.(X)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return hi(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return((f,m,w,b,k,v,S,$,B,L,M,T)=>{if(w.element.kind!="section_with_ac_only"||w.element.data==null)return null;const D=kn(w.config.reportId,w.element.sectionType),K=te(w.element.data,w.config.displayOrder,w.element.numOfBalances);return t.jsx(bn,{type:m,backgroundColor:k,isSticky:v,treeNodeId:f,height:b,sectionName:w.element.title,sectionColor:D.color,sectionBalances:K.balances,isScrolling:S,isOpen:$,isLeaf:B,isLastNode:L,compareMode:M,onClick:X=>{T?.(X)}})})(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":case"calculated_section_type1":return ui(e,n,o,i,r,l,c,u,d,p,g,h);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,g,h);case"total":return pi(e,n,o,i,r,l,g,d);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x);default:return null}},eg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,compareMode:g,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Lt(e,n,o,i,r,l,c,d,p,u,g,h);case"ac_group_report":return At(e,n,o,i,r,l,c,u,d,p,g,h);case"section":return Bn(e,n,o,i,r,l,c,u,d,p,g,h);case"section_with_ac_only":return Bt(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section":return In(e,n,o,i,r,l,c,u,d,p,g,h);case"calculated_section_type1":return((f,m,w,b,k,v,S)=>{if(m.element.kind!="calculated_section_type1"||m.element.data==null)return null;const $=te(m.element.data,m.config.displayOrder,m.element.numOfBalances);return t.jsx(Ol,{backgroundColor:b,isSticky:k,treeNodeId:f,heading:m.element.title,totalBalances:$.balances,height:w,isScrolling:v,isLastNode:S})})(e,o,i,r,l,c,p);case"title_string_only":return wn(e,n,o,i,r,l,c,u,d,p,g,h);case"ac_subentity_total":return Ze(n,o,i,r,l,c,d,p,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return qe(e,n,o,i,r,l,g,x);case"ac_subaccount":return Ue(e,n,o,i,r,l,c,d,u,p,g,h);case"ac_group_subaccount":return An(e,n,o,i,r,l,c,u,d,p,g,h);default:return null}},tg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:p,isOpen:u,toggleCheckHandler:g})=>o.element.kind==="checkbox_and_name_only"?((h,x,f,m,w,b,k,v,S,$,B)=>{if(f.element.kind!="checkbox_and_name_only")return null;const L=f.element.data,M=f.config.isClassToBeFilteredOut?.(L.classId)===!1;return t.jsx(eh,{type:x,backgroundColor:w,isSticky:b,treeNodeId:h,classId:L.classId,isChecked:M,isDisabled:!1,height:m,isScrolling:k,nestedClass:L,isOpen:v,isLeaf:S,isLastNode:$,showClassAccountNumber:f.config.showClassAccountNumber,onToggleCheck:B})})(e,n,o,i,r,l,c,u,d,p,g):null,ng=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:p,onCompareModeChanged:u})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return((g,h,x,f)=>{if(g.element.kind!=="loading_in_progress")return null;const m=We(g.element.data,g.config.displayOrder).map(w=>Me(w));return t.jsx(rh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);case"timeframe_headers":return((g,h,x,f,m,w)=>{if(g.element.kind!=="timeframe_headers")return null;const b=We(g.element.data,g.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",v=b.map(S=>Me(S));return t.jsx(Nh,{backgroundColor:m,isSticky:x,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:g.config.mode==="this_period_vs_period_before"&&v.length>1,firstMonthOfFY:g.config.firstMonthOfFY,timeframe:k,timeframeTicks:v,sortKey:g.config.opexByVendorConfig?.sortKey,sortOrder:g.config.opexByVendorConfig?.sortOrder,dataAvailable:g.config.dataAvailable,bookCloseDate:g.config.bookCloseDate,compareMode:f,onCompareModeChanged:w,onSortOrderChanged:g.config.opexByVendorConfig?.onSortOrderChanged})})(o,i,l,p,r,u);case"total":return((g,h,x,f,m,w,b)=>{const k=x.element.data,v=x.config.mode==="this_period_vs_period_before",S=v?x.element.numOfBalances+2:x.element.numOfBalances+1,$=Kn(k,x.config.displayOrder,S,v);return t.jsx(Hh,{type:h,backgroundColor:b,isSticky:m,treeNodeId:g,height:f,isScrolling:w,totalBalances:$.balances,title:x.element.title,isAccountColumnShown:x.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:x.config.opexByVendorConfig?.isClassColumnShown??!0})})(e,n,o,i,l,c,r);case"vendor_row":return((g,h,x,f,m,w,b)=>{if(h.element.kind!="vendor_row"||h.element.data==null)return null;const k=h.element.data,v=h.config.mode==="this_period_vs_period_before",S=Kn(k,h.config.displayOrder,h.element.numOfBalances,v);return t.jsx(cu,{backgroundColor:f,isSticky:m,height:x,isScrolling:w,vendorRowIndex:h.element.index,vendor:k.vendor,accountBase:k.account,classBase:k.classBase,isLastNode:b,balances:S.balances,isAccountColumnShown:h.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:h.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:($,B)=>{h.config.opexByVendorConfig?.onVendorNameAndBalanceClicked($,B)}})})(0,o,i,r,l,c,d);case"title_string_only":return((g,h,x,f)=>{if(g.element.kind!=="title_string_only")return null;const m=We(g.element.data,g.config.displayOrder).map(w=>Me(w));return t.jsx(hh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:g.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:g.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:m})})(o,i,r,l);default:return null}},og=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:p,nodeClickHandler:u})=>{const{config:g}=o;switch(o.element.kind){case"spacer_row":default:return null;case"timeframe_headers":return((h,x,f,m,w,b,k)=>{if(h.element.kind!=="timeframe_headers")return null;const v=h.element.data;return t.jsx(Ea,{reportId:h.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:v,backgroundColor:f,isSticky:m,height:x,sortKey:w,sortOrder:b,onSortOrderChanged:k})})(o,i,p,l,g.agingReportConfig?.sortKey,g.agingReportConfig?.sortOrder,g.agingReportConfig?.onSortOrderChanged);case"total":return((h,x,f,m,w)=>{const b=x.element.data;return t.jsx(al,{type:h,backgroundColor:m,isSticky:w,height:f,totalBalances:b,isIndented:x.config.reportId==="accounts_receivable_aging",title:x.element.title})})(n,o,i,p,l);case"aging_report_row":return((h,x,f,m,w,b,k,v,S,$)=>{if(x.element.kind!=="aging_report_row")return null;if(x.config.reportId==="accounts_payable_aging"){const L=x.element.data;return t.jsx(Na,{backgroundColor:v,isLastNode:b,isScrolling:k,isSticky:w,height:f,balances:L.apAgingBalances,vendor:L.vendor,total:L.total,onEntityNameClick:S})}const B=x.element.data;return t.jsx(Ma,{treeNodeId:h,backgroundColor:v,isLastNode:b,isScrolling:k,isSticky:w,isOpen:m,height:f,metadata:x.element.metadata,balances:B.arAgingBalances,nestedCustomer:B,total:B.total,totalWithChildren:B.totalWithChildren,onEntityNameClick:S,onClick:$})})(e,o,i,r,l,d,c,p,g.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return((h,x,f,m,w)=>{if(h.element.kind!=="ac_subentity_total")return null;if(h.config.reportId==="accounts_receivable_aging"){const b=h.element.data;return t.jsx(Qa,{backgroundColor:w,isScrolling:m,isSticky:f,height:x,metadata:h.element.metadata,nestedCustomer:b,total:b.totalWithChildren,noMarginForEntity:!0})}return null})(o,i,l,c,p)}},ig=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:p,isOpen:u,onFluxBalanceClick:g,nodeClickHandler:h,hoveredParentIdProps:x})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return((f,m,w,b,k,v,S,$,B)=>{if(!Sn(m,"flux_vendor_account_class_row"))return null;const L=m.element.data,M=ki(L),T=m.element.metadata.vendorId;return t.jsx(Ls,{backgroundColor:w,isSticky:b,treeNodeId:f,balances:M,varianceAmount:L.varianceAmount,variancePercentage:L.variancePercentage,currency:L.currency,isScrolling:k,isLeaf:v,isLastNode:S,nodeMetadata:m.element.metadata,accountAndClass:L,onAccountAndClassBalanceClick:()=>B?.(T),isHoveredByParent:$?.hoveredParentId===T})})(e,n,i,r,l,c,d,x,g);case"flux_vendor_row":return Kd(e,n,i,r,l,u,c,d,p,x,h);case"section":return Yd(e,n,o,i,r,l,u,c,d,h);case"timeframe_headers":return((f,m,w)=>{if(f.element.kind!=="timeframe_headers")return null;const b=We(f.element.data,f.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",v=b.map(S=>Me(S));return t.jsx(sd,{isSticky:w,height:m,firstMonthOfFY:f.config.firstMonthOfFY,timeframe:k,timeframeTicks:v,isBulkSelected:f.config.fluxAnalysisConfig?.reviewOpExIds.length===20,onSortOrderChanged:(S,$)=>{f.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),f.config.fluxAnalysisConfig?.onSortOrderChanged(S,$)},sortOrder:f.config.fluxAnalysisConfig?.sortOrder,sortKey:f.config.fluxAnalysisConfig?.sortKey})})(n,o,r);case"total":return((f,m)=>{if(f.element.kind!=="total")return null;const w=f.element.data;return t.jsx(bd,{type:"name+balances_actual",title:f.element.title,totalBalances:w.balances,varianceAmount:w.varianceAmount,variancePercentage:w.variancePercentage,currency:w.currency,height:m})})(n,o);case"loading_in_progress":return(f=>f.element.kind!=="loading_in_progress"?null:t.jsx(Bs,{}))(n);case"headers_loading_in_progress":return(f=>f.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ys,{}))(n);default:return null}},rg=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return function(r,l){if(r.element.kind!=="timeframe_headers")return null;const c=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,d=r.element.data,p=d.accountIDs.length===0;return t.jsx(qr,{sectionTitle:c.section[d.sectionId].title,isLoading:p,isSticky:l,height:ct("timeframe_headers")})}(e,o);case"loading_in_progress":return t.jsx(Mr,{height:ct("loading_in_progress")});case"total":return((r,l,c)=>{const d=r.element.data;return t.jsx(ga,{isSticky:c,height:l,sectionData:d})})(e,n,o);case"section":return t.jsx(Pr,{height:ct("section")});case"title_string_only":return((r,l)=>{const c=r.element.data,d=N.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Xr,{height:l,title:d.section[c.sectionId].title})})(e,n);case"ac_group_report":return((r,l,c)=>{const d=r.element.data,p=r.config.accountReconciliationConfig?.selectedDrawerAccountId!=null&&d.accountReconEntity.account.accountId===r.config.accountReconciliationConfig?.selectedDrawerAccountId;return t.jsx(jr,{height:l,accountRecon:d,isLastRow:c,isSelectedRow:p,onReviewClicked:r.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:r.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:r.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:r.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:r.config.accountReconciliationConfig?.onStatementAddClicked})})(e,n,i);default:return null}};function mo(e,n,o,i){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&&Ge(r)===!0||void 0;return{data:{defaultHeight:On(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:i??l??ag(e.reportElementData.config.reportId,e.reportElementData.element.kind,o,e.reportElementData.config.reportFormat),nestingLevel:o,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:o,node:e}}function On(e,n,o){return an(e)===!0?function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":return C[8];case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":case"total":case"loading_in_progress":case"class":case"checkbox_and_name_only":return C[6];case"timeframe_headers":case"class_headers":case"headers_loading_in_progress":return C[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):ln(e)===!0||Ke(e)===!0?function(i){switch(i){case"section":case"ac_group_report":case"ac_group_subaccount":case"calculated_section":case"calculated_section_type1":case"section_with_ac_only":case"title_string_only":case"total":return C[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"loading_in_progress":case"class":case"checkbox_and_name_only":return C[6];case"timeframe_headers":case"headers_loading_in_progress":return C[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):cn(e)?function(i){switch(i){case"timeframe_headers":return C[10];case"aging_report_row":case"ac_subentity_total":return C[6];case"total":case"spacer_row":return C[8];default:return C[0]}}(n):sn(e)?ct(n):dn(e)?function(i){switch(i){case"timeframe_headers":return C[11];case"vendor_row":case"loading_in_progress":return C[6];case"total":case"spacer_row":case"title_string_only":return C[8];default:return 0}}(n):hn(e)?wi(n,o):function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"ac_group_report":case"ac_group_subaccount":return C[8];case"calculated_section_type1":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"total":return C[6];case"title_string_only":return 67;case"timeframe_headers":return C[11];default:return C[0]}}(n)}function ag(e,n,o,i){return an(e)?function(r,l,c=0){const d=["summary"];switch(r){case"section":case"section_with_ac_only":case"title_string_only":return!d.includes(l);case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_report":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":case"class_headers":default:return!1;case"ac_group_subaccount":case"ac_subaccount":case"ac_subentity_total":return!(d.includes(l)||l==="detailed"&&c>0);case"class":return!(l==="detailed"&&c>0);case"checkbox_and_name_only":return!0}}(n,i,o):ln(e)||Ke(e)===!0?function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":return!c.includes(l);case"calculated_section":case"calculated_section_type1":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"class":case"checkbox_and_name_only":return!0}}(n,i):!!cn(e)||!dn(e)&&(hn(e)?function(r){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(r)}(n):sn(e)?kr():function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_group_subaccount":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"title_string_only":return!c.includes(l);default:return!1}}(n,i))}const lg=a.div`
2919
+ top: 0;
2920
+ left: 0;
2921
+ position: sticky !important;
2922
+ position: -webkit-sticky !important;
2923
+ min-height: ${e=>e.heightValue}px;
2924
+ max-height: ${e=>e.heightValue}px;
2925
+ width: fit-content;
2926
+ min-width: 100%;
2927
+ z-index: 2;
2928
+ display: flex;
2929
+ flex-direction: column;
2930
+ align-items: center;
2931
+ background-color: ${e=>e.bgColor?.hex()};
2932
+ box-sizing: border-box;
2933
+ `;function cg({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:l,onCompareModeChanged:c}){return o.length===0?null:(o.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(lg,{heightValue:e,bgColor:n,"data-testid":y("sticky-header-report-tree"),children:o.map((d,p)=>t.jsx(Di,{id:d.id,treeKind:i,reportElementData:d.reportElementData,height:On(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===p,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const Ei=V.createContext(void 0);function sg({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:p,treeRef:u,treeOuterElementRef:g,infiniteLoadingProps:h,variableNodeHeightTree:x,onNodeClick:f,onCompareModeChanged:m,scrollPosition:w,onScroll:b,nodeOpenStatus:k,onNodeCollapseToggled:v,onTreeInnerElementHeightChanged:S,onToggleCheck:$,hoveredParentIdProps:B}){const L=V.useRef(null),M=V.useRef(null),T=Wn(x?.prevFetchState),D=Wn(x?.prevRefreshFetchState),[K,X]=V.useState(0),Q=g??M,ie=u??L,he=W(),[le,re]=V.useState(void 0),[be,$e]=V.useState(!1),[ce,ue]=V.useState(k),_e=(F,U)=>{ue(Object.assign({},ce,{[F]:U})),v?.(F,U)},Nn=F=>{if(o.contentNodes.length>0)if(Object.keys(F).length>0){const U={};Object.keys(F).forEach(fe=>{U[fe]={open:F[fe]}}),ie?.current?.recomputeTree(U)}else{const U=o.contentNodes[0].id;ie?.current?.recomputeTree({[U]:{open:!0}})}};V.useLayoutEffect(()=>{if((!Pn(w,le)||le==null)&&Q.current!=null){const F=w?.scrollLeft==null?he==="small"?0:Q.current.scrollWidth:w?.scrollLeft;if(w!=null){const U={scrollTop:w.scrollTop,scrollLeft:F};re(U),F!==w?.scrollLeft&&b?.(U)}Q.current.scroll({left:F,top:w?.scrollTop})}},[w]),V.useEffect(()=>{Pn(k,ce)||(ue(k),Nn(k))},[k]),V.useEffect(()=>{const F=Q.current,U=Ui(()=>{if(F!=null&&(le==null||F.scrollLeft!==le.scrollLeft||F.scrollTop!==le.scrollTop)){const fe={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};re(fe),b?.(fe)}},50);return F?.addEventListener("scroll",U),()=>{F?.removeEventListener("scroll",U)}},[Q,le,b]),V.useEffect(()=>{if(o.contentNodes.length>0){Nn(ce);const F=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==be&&$e(F)}},[be,$e,o,ie,Q]),V.useEffect(()=>{(x!=null&&T==="In-Progress"&&x.fetchState==="Completed"&&x.isSortApplied||x!=null&&D==="In-Progress"&&x.refreshFetchState==="Completed")&&(x.reducedFetchState==="Completed"&&x.setIsSortApplied(!1),X(K+1))},[K,x?.fetchState,x?.isSortApplied,T,D,x]);const It=V.useRef(),[Gi,Ri]=V.useState(void 0),Mn=V.useCallback(((F,U,fe)=>function*(){for(let we=0;we<U.length;++we)yield mo(U[we],F,0,fe[U[we].id]??void 0);for(;;){const we=yield;for(let Qe=0;Qe<we.node.children.length;++Qe)yield mo(we.node.children[Qe],F,we.nestingLevel+1,fe[we.node.children[Qe].id]??void 0)}})(n,o.contentNodes,ce),[n,o]),Hi={rootNodes:o,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:m};return t.jsx(Ei.Provider,{value:Hi,"data-testid":y("report-tree"),children:h==null?t.jsx(Fn,{className:d,style:p,ref:ie,innerRef:It,outerRef:Q,innerElementType:Zt,treeWalker:Mn,onItemsRendered:()=>{const F=It.current;F!=null&&F.clientHeight>0&&F.clientHeight!=Gi&&(Ri(F.clientHeight),S?.(F.clientHeight))},height:e,width:"100%",children:F=>t.jsx(fo,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:_e,compareMode:i,onCompareModeChanged:m,onToggleCheck:$})}):t.jsx(Zi,{isItemLoaded:h.isItemLoaded,itemCount:h.itemCount+1,loadMoreItems:h.loadMoreItems,children:({onItemsRendered:F,ref:U})=>t.jsx(Fn,{className:d,style:p,ref:U,innerRef:It,outerRef:Q,innerElementType:Zt,treeWalker:Mn,onItemsRendered:F,height:e,width:"100%",children:fe=>t.jsx(fo,{...fe,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:_e,compareMode:i,onCompareModeChanged:m,onToggleCheck:$,hoveredParentIdProps:B})},K)})})}const Zt=V.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:p,isSticky:u,compareMode:g,onCompareModeChanged:h}=V.useContext(Ei),x=l.headerNodes.reduce((b,k)=>b+On(k.reportElementData.config.reportId,k.reportElementData.element.kind,k.isFirstNode),0),f=c?.left,m=c?.right,w=s.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:m,marginBottom:w},...r,children:[t.jsx(cg,{height:x,backgroundColor:d,headers:l.headerNodes,treeKind:p,isSticky:u.isStickyHeader,compareMode:g,onCompareModeChanged:h}),o]})});Zt.displayName="stickyInnerElementType";const dg=a.div`
2934
+ display: flex;
2935
+ flex: 1 0 auto;
2936
+ width: ${e=>e.width}px;
2937
+ height: ${e=>e.height}px;
2938
+ padding-left: ${e=>e.paddingLeft}px;
2939
+ background-color: ${e=>e.bgColor?.hex()};
2940
+
2941
+ & .content-scroll {
2942
+ overflow: auto;
2943
+ scrollbar-width: thin;
2944
+ scrollbar-color: transparent transparent;
2945
+ &::-webkit-scrollbar {
2946
+ width: ${s.sp2};
2947
+ height: ${s.sp2};
2948
+ background-color: transparent;
2949
+ }
2950
+ &::-webkit-scrollbar-thumb {
2951
+ background-color: transparent;
2952
+ }
2953
+
2954
+ &:hover {
2955
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
2956
+ &::-webkit-scrollbar {
2957
+ width: ${s.sp2};
2958
+ height: ${s.sp2};
2959
+ background-color: transparent;
2960
+ }
2961
+ &::-webkit-scrollbar-track {
2962
+ box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
2963
+ -webkit-box-shadow: inset 0 0 2px ${ee.scrollbarBoxShadow};
2964
+ background-color: transparent;
2965
+ }
2966
+ &::-webkit-scrollbar-thumb {
2967
+ background-color: ${e=>e.theme.colors.grey1};
2968
+ border-radius: 2px;
2969
+ }
2970
+ }
2971
+ }
2972
+ `;function wg({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onReportTableHeightChanged:w,onToggleCheck:b,treeRef:k}){return t.jsx(Ki,{children:({height:v,width:S})=>t.jsx(dg,{"data-testid":y("report-tree-container"),height:v,width:S,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(sg,{"data-testid":y("report-tree"),treeClassName:"content-scroll",height:v,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeRef:k,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:p,hoveredParentIdProps:u,onNodeClick:c==null?void 0:($,B,L,M,T)=>{L!=null&&M!=null&&c(L,M,T)},onCompareModeChanged:g,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:m,onTreeInnerElementHeightChanged:w,onToggleCheck:b})})})}export{te as D,q as J,Ee as N,Ye as Z,Yc as a,ut as h,_n as j,mg as m,wg as n,fg as t};