@zeniai/web-cockpit-ui 1.14.82-dev → 1.14.83-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 (489) hide show
  1. package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +21 -0
  2. package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +539 -0
  3. package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +149 -0
  5. package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +239 -0
  7. package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +298 -0
  8. package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +207 -0
  9. package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +6 -0
  10. package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +344 -0
  11. package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +79 -0
  12. package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +46 -0
  14. package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +71 -0
  15. package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +47 -0
  17. package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +46 -0
  19. package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +1 -0
  20. package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +1 -0
  21. package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +101 -0
  22. package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +79 -0
  23. package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +51 -0
  24. package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +425 -0
  25. package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +266 -0
  26. package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +27 -0
  27. package/dist/assets/{BillPayApprovalRulesPage-DnSLHXWD-MUaAKHpR.js → BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js} +26 -26
  28. package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +84 -0
  29. package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +42 -0
  30. package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +44 -0
  31. package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +1 -0
  32. package/dist/assets/{BoxItem-B5BR_eEi-Bv0vf77X.js → BoxItem-B6Qj2tSj-aLWYhGMW.js} +2 -2
  33. package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +138 -0
  34. package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +21 -0
  35. package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +285 -0
  36. package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +1462 -0
  37. package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +412 -0
  38. package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +711 -0
  39. package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +222 -0
  40. package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +36 -0
  41. package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +60 -0
  42. package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +206 -0
  43. package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +2844 -0
  44. package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +260 -0
  45. package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +42 -0
  46. package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +574 -0
  47. package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +52 -0
  48. package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +1 -0
  49. package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +1 -0
  50. package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +281 -0
  51. package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +224 -0
  52. package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +139 -0
  53. package/dist/assets/{CustomerOnboardingActivationPage-IwlzXBxP-D0APQC-B.js → CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js} +12 -12
  54. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DIey8Q_A-qZcba9zt.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js} +27 -27
  56. package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +66 -0
  57. package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +107 -0
  58. package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +202 -0
  59. package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +1551 -0
  60. package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +371 -0
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-DSqlMEXY-CaAiK8be.js → DepositAccTransactionItem-C36JnddA-CD1u3HOE.js} +12 -12
  63. package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +21 -0
  65. package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +439 -0
  66. package/dist/assets/{DrawerPage-DEK5OjOv-CudDxByF.js → DrawerPage-BdYS_9Mt-BL0llqyf.js} +22 -22
  67. package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +865 -0
  69. package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +18 -0
  70. package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +149 -0
  71. package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +281 -0
  72. package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +1650 -0
  73. package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +168 -0
  74. package/dist/assets/{FeaturePreviewPage-bAjG281t-2xEBJDr4.js → FeaturePreviewPage-Brau5064-B_mFzC9F.js} +4 -4
  75. package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +390 -0
  76. package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +291 -0
  77. package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +31 -0
  78. package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +79 -0
  79. package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +27 -0
  80. package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +57 -0
  81. package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +171 -0
  82. package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +292 -0
  83. package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +312 -0
  84. package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +739 -0
  85. package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +12 -0
  86. package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +140 -0
  87. package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +532 -0
  88. package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +49 -0
  89. package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +45 -0
  90. package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +16 -0
  91. package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +204 -0
  92. package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +59 -0
  94. package/dist/assets/LabeledText-iHeu8MCf-BqC7UtSs.js +42 -0
  95. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +229 -0
  96. package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +297 -0
  97. package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +98 -0
  98. package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +623 -0
  99. package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +34 -0
  100. package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +31 -0
  104. package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +17 -0
  105. package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +21 -0
  106. package/dist/assets/{Menu--_oLyn9M-Sp5pgVYU.js → Menu-pyYbFxsT-C1MdlXRT.js} +4 -4
  107. package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +110 -0
  108. package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +6 -0
  109. package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +85 -0
  110. package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +30 -0
  111. package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +47 -0
  112. package/dist/assets/{NavigationDots-CXbzdOJY-BibyAOdv.js → NavigationDots-DO5y6mdV-DGnlFBBn.js} +3 -3
  113. package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +160 -0
  114. package/dist/assets/{NoDataChart-Bgciu380-D8bHxPnp.js → NoDataChart-C0lCeeVH-BiooJKO2.js} +5 -5
  115. package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +8 -0
  116. package/dist/assets/{NotFoundPage-BFwyElJE-R-DpYqua.js → NotFoundPage-DGkjOhKP-kjD5UcP7.js} +9 -9
  117. package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +163 -0
  118. package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +1 -0
  119. package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +685 -0
  120. package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +100 -0
  121. package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +11 -0
  122. package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +107 -0
  123. package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +107 -0
  124. package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +675 -0
  125. package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +1 -0
  126. package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +142 -0
  127. package/dist/assets/{PromoBaseCards-Dq3GfNdL-CGTQVzuQ.js → PromoBaseCards-38oPeuBR-DNrev2WE.js} +24 -24
  128. package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +51 -0
  129. package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +26 -0
  131. package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +237 -0
  132. package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +314 -0
  133. package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +84 -0
  134. package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +140 -0
  135. package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +1 -0
  136. package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +26 -0
  137. package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +150 -0
  138. package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +121 -0
  139. package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +280 -0
  140. package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +290 -0
  141. package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +152 -0
  142. package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +22 -0
  143. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +37 -0
  144. package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +37 -0
  145. package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +324 -0
  146. package/dist/assets/ScreenRoutes-B29orzq3.js +206 -0
  147. package/dist/assets/{SetUpAccountSection-DG7chlm8-kpbqF5AJ.js → SetUpAccountSection-DQMufunh-D76vpY_K.js} +87 -87
  148. package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +450 -0
  149. package/dist/assets/SignInScreen-CDr9y3Na.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +123 -0
  151. package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +754 -0
  152. package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +230 -0
  153. package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +31 -0
  154. package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +58 -0
  155. package/dist/assets/{StatusSwitcher-Cf6yygg5-CWDIvUyD.js → StatusSwitcher-BFs1Anoq-B4RP8Uzy.js} +8 -8
  156. package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +58 -0
  157. package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +1 -0
  158. package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +1 -0
  159. package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +508 -0
  160. package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +66 -0
  161. package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +31 -0
  162. package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +31 -0
  163. package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +38 -0
  164. package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +132 -0
  165. package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +912 -0
  166. package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +147 -0
  167. package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +284 -0
  168. package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +35 -0
  169. package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +80 -0
  170. package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +362 -0
  171. package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +708 -0
  172. package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +505 -0
  173. package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +58 -0
  174. package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +58 -0
  175. package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +16 -0
  176. package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +116 -0
  177. package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +244 -0
  178. package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +67 -0
  179. package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +38 -0
  180. package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +1 -0
  181. package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +1 -0
  182. package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +257 -0
  183. package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +1 -0
  184. package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +175 -0
  185. package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +730 -0
  186. package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +152 -0
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-BKfX93W4-B6SzKq8w.js → VendorsAccountsSection-tcJAh1A7-COfHef35.js} +8 -8
  189. package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +112 -0
  190. package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +78 -0
  191. package/dist/assets/{VideoPopup-9iierxTj-BAFy3uBP.js → VideoPopup-CPW65Ljn-Mlf95YHy.js} +4 -4
  192. package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +92 -0
  193. package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +300 -0
  194. package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +441 -0
  195. package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +14 -0
  196. package/dist/assets/{ZeniAccountPromoPage-B75rYYNq-Dj1dl_GZ.js → ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js} +44 -44
  197. package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +36 -0
  198. package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +1 -0
  199. package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +63 -0
  200. package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +1 -0
  201. package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +1 -0
  202. package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-D7W5Y5Hm-zBGkMLf1.js} +1 -1
  203. package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +1 -0
  204. package/dist/assets/{analytics-zoE7Zcxt.js → analytics-CeQu-r45.js} +1 -1
  205. package/dist/assets/{analyticsHelper-B_4dnbas.js → analyticsHelper-DQrzJx-G.js} +1 -1
  206. package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +1 -0
  207. package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-D5pI7KCC-DyTRFc-f.js} +1 -1
  208. package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-D1bNopxW-BXcmbJh5.js} +1 -1
  209. package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +1 -0
  210. package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +1 -0
  211. package/dist/assets/{core-3dlyNYRL.js → core-tlHkQPPu.js} +13 -13
  212. package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +21 -0
  213. package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +38 -0
  214. package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +1 -0
  215. package/dist/assets/{epic-vmWV05sm.js → epic-CxjM8IKD.js} +1 -1
  216. package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +1 -0
  217. package/dist/assets/{getReferrerType-DjPOy76W-Cm31g4vJ.js → getReferrerType-D1egX4iL-cWt5sFuQ.js} +1 -1
  218. package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-DZx81G9E-DbnUGiwi.js} +1 -1
  219. package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-CfhD7tYw-SmhQgAdh.js} +1 -1
  220. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js} +1 -1
  221. package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +1 -0
  222. package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-D4b9T-E0-BvZJz7M_.js} +1 -1
  223. package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +40 -0
  224. package/dist/assets/index-2CdI-B2B.js +29301 -0
  225. package/dist/assets/index-BR5-Z2ox.css +1 -0
  226. package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +3305 -0
  227. package/dist/assets/lexical-l0sNRNKZ.js +1 -0
  228. package/dist/assets/{liveblocks-DIep7fJd.js → liveblocks-BrzOBACZ.js} +1 -1
  229. package/dist/assets/lottie-B4xjt4lE.js +1 -0
  230. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +1 -0
  231. package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +1 -0
  232. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +1 -0
  233. package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +1 -0
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-grmQSWeg-CqzlaZwf.js → mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js} +1 -1
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +1 -0
  237. package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +43 -0
  238. package/dist/assets/mui-kiGMfX4-.js +25 -0
  239. package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +1 -0
  240. package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +1 -0
  241. package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-L_-1iNMr-DCxtcaOg.js} +1 -1
  242. package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-H1PowEcP-lvG8v5I_.js} +1 -1
  243. package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +19 -0
  244. package/dist/assets/react-B2-P-PS--DYmRygxV.js +19 -0
  245. package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +17 -0
  246. package/dist/assets/react-CWt3gw2R-CPQu_93E.js +21 -0
  247. package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +7 -0
  248. package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +22 -0
  249. package/dist/assets/react-DBTaojCw-BTbEMBGt.js +6 -0
  250. package/dist/assets/react-G6j-OGKl--ofewKrH.js +34 -0
  251. package/dist/assets/recharts-Diw77Kjb.js +1 -0
  252. package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +1 -0
  253. package/dist/assets/{sentry-o6h_D-9x.js → sentry-Dhk5jNhq.js} +2 -2
  254. package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-E_rJ2OWj-kTEIYW8Q.js} +1 -1
  255. package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +1 -0
  256. package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +1 -0
  257. package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-BDef7K0p-Dqvh6We2.js} +1 -1
  258. package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +1 -0
  259. package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +286 -0
  260. package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +1 -0
  261. package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +1 -0
  262. package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +1 -0
  263. package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-4JsxsMjK-mCxwNowe.js} +1 -1
  264. package/dist/assets/utils-BLUF9kAp.js +70 -0
  265. package/dist/assets/{zeni-epic-state-LPACxnXP.js → zeni-epic-state-Bo1aGezX.js} +3 -3
  266. package/dist/index.html +1 -1
  267. package/package.json +1 -1
  268. package/dist/assets/ACHDetailsPage-B8cMQbzA-DWCLdf-t.js +0 -21
  269. package/dist/assets/AIPerformancePage-4acIIZMP-B-rRjry_.js +0 -539
  270. package/dist/assets/AccountInfoPage-BrydzmjB-KHr91NHb.js +0 -18
  271. package/dist/assets/AccountInfoPageContent-DUxplaBp-FrAxiU_4.js +0 -149
  272. package/dist/assets/AccountLockedInfoModal-tHlPMl4Y-Ct1s-YMU.js +0 -59
  273. package/dist/assets/AccountReconDetailsDrawerPage-U6I-zYEJ-Dit01cmg.js +0 -239
  274. package/dist/assets/AccountRow-BPUVgiz--B9ZBU0Ub.js +0 -298
  275. package/dist/assets/AccountsPromoCardStack-y8mKetwA-B9ECyUUA.js +0 -207
  276. package/dist/assets/AddAddressForCardDrawer-mWEDF852-i34A1O1w.js +0 -6
  277. package/dist/assets/AddToWalletPage-8h9ovxv--TxpEgqlp.js +0 -344
  278. package/dist/assets/AgingReportsPage-DjL0iX3p-BZDNKxCo.js +0 -79
  279. package/dist/assets/AllUserItems-BsXasG5N-CuxsTE4D.js +0 -192
  280. package/dist/assets/ApAgingDetailPage-D4_EOVXW-CPCLR9hb.js +0 -46
  281. package/dist/assets/AppBasePage-BzrUji13-DfOUej5i.js +0 -71
  282. package/dist/assets/AppDrawerContent-CZvLqK2n-BuqawGiw.js +0 -91
  283. package/dist/assets/ApprovalRulesSettingsPage-3APmrgde-dc-swn_U.js +0 -47
  284. package/dist/assets/ArAgingChart-P6KtJIV_-DjRI10iW.js +0 -24
  285. package/dist/assets/ArAgingDetailPage-Qsa99SU7-Sm_WpA-3.js +0 -46
  286. package/dist/assets/AttachmentView-C1vDyOg6-DWlWJjzp.js +0 -101
  287. package/dist/assets/BankAccountSection-myuKfQST-BSnxyRJZ.js +0 -79
  288. package/dist/assets/BankAccountWarningSection-gh8laVG2-BY6zGWOu.js +0 -51
  289. package/dist/assets/BankConnectionsSettingsPage-BBWIpyRM-ze5azuH3.js +0 -425
  290. package/dist/assets/BillDetailPage-CyhFsEGB-DkTie3Te.js +0 -266
  291. package/dist/assets/BillPayApprovalRuleDetailPage-B3_rA-sq-BdcxnQmt.js +0 -27
  292. package/dist/assets/BillPayPromoPage-BbBa3DYn-lLOlfxB7.js +0 -84
  293. package/dist/assets/BillPaySetUpPage-B03pG6jS-DJinIaFQ.js +0 -42
  294. package/dist/assets/BillingSettingsPage-C6brwXi1-BB5RkLKN.js +0 -44
  295. package/dist/assets/BillsBulkReviewDrawerPage-CgwBahfX-DFWt9hBv.js +0 -1
  296. package/dist/assets/BusinessVerificationPage-BlxdC_nV-DC1jqf6y.js +0 -138
  297. package/dist/assets/CardNumberSubText-CbN8rqBy-Cnr87BXk.js +0 -21
  298. package/dist/assets/CashbackDetailPage-BW_OnL3H-DtMwDigS.js +0 -285
  299. package/dist/assets/ChargeCardDetailPage-BpKVl3Ea-B12Yd96T.js +0 -1462
  300. package/dist/assets/ChargeCardListPage-B89QoOTi-BeB_sD-R.js +0 -412
  301. package/dist/assets/ChargeCardListTable-CU-J5RcP-DCnik2yB.js +0 -711
  302. package/dist/assets/ChargeCardPromoPage-Blp9PieM-P4TuvLik.js +0 -222
  303. package/dist/assets/ChargeCardSetupPage-CXunWgVU-DEdxFCW1.js +0 -36
  304. package/dist/assets/ChargeCardStatementsPage-396WGHBW-DMiFIJN4.js +0 -60
  305. package/dist/assets/CheckDepositDrawerPage-C7BVbKlI-DgETwW-L.js +0 -206
  306. package/dist/assets/CollapsableReportTable-BbW0qlyW-jZfWpSap.js +0 -2844
  307. package/dist/assets/CompanyOfficerDetailsSection-CEpa9DV0-YSPl7yqU.js +0 -260
  308. package/dist/assets/CompanyPassportCard-tAObqkaq-DBobX3WO.js +0 -42
  309. package/dist/assets/CompanyPassportPage-BOF33vf6-C25WfyI1.js +0 -574
  310. package/dist/assets/CompleteProfile-BhnnbqKE-C9dCi-11.js +0 -52
  311. package/dist/assets/ConfettiBurst-D0oJjMYW-OgNoTU4M.js +0 -1
  312. package/dist/assets/CreateOrEditVendorPage-BfIEfvLQ-A8OKff0d.js +0 -281
  313. package/dist/assets/CreditCardPaymentDrawerPage-jZufhZeW-Czck8YRv.js +0 -224
  314. package/dist/assets/CurrencySelectField-eLjU71Cn-D8N6eDEv.js +0 -139
  315. package/dist/assets/CustomerOnboardingContainerPage-B44-zxPH-B-3OfPkK.js +0 -1
  316. package/dist/assets/CustomerOnboardingNoStepsPage-CY-Ereo7-CDSd5c27.js +0 -66
  317. package/dist/assets/CustomerOnboardingPage-TkHlE1kV-B90xrx5q.js +0 -107
  318. package/dist/assets/CustomerOnboardingProductSuitePage-CHQxzOJb-BPLz8QJt.js +0 -202
  319. package/dist/assets/Dashboard-DpMzEbb0-Bk6FtHLo.js +0 -1551
  320. package/dist/assets/DashboardReportPage-DoztwEhX-DAUg_oFC.js +0 -371
  321. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl7NKDPX-BKa5jVQD.js +0 -12
  322. package/dist/assets/DepositAccTransactionListPage-LM-5wxCN-2aGATB_a.js +0 -66
  323. package/dist/assets/DomesticWireDetailsPage-DCVbnyiw-MmPkUBMW.js +0 -21
  324. package/dist/assets/DownloadOverlay-Bp_ZXErR-BFxkS5Sp.js +0 -439
  325. package/dist/assets/EditPeoplePage-DLIKL_0K-BYYB6CQN.js +0 -55
  326. package/dist/assets/EditReimbursementDetailPage-F_MHrbGF-DossIcDU.js +0 -865
  327. package/dist/assets/EntityDetailPage-Ca9C29eU-BU7AxpuG.js +0 -18
  328. package/dist/assets/EntitySummarySection-CjIHfEiX-PbFJ4zts.js +0 -149
  329. package/dist/assets/ExpenseAutomationOverviewPage-UAVNgUOX-D2d8vPhR.js +0 -281
  330. package/dist/assets/ExpenseAutomationPage-DZLhQz2w-Dy7QQgBg.js +0 -1650
  331. package/dist/assets/ExpressPayPage-DVIOuW0t-xDQUwEHB.js +0 -168
  332. package/dist/assets/FollowStepsSection-B_t3bRMq-DXg2LJ8T.js +0 -390
  333. package/dist/assets/GlobalReviewListPage-5RVGNBoL-_sR9DlVX.js +0 -291
  334. package/dist/assets/InformationCardStack-Cm-J8hYU-60aXUK6h.js +0 -31
  335. package/dist/assets/InsightsCardStack-BWy3HRRw-CB9cKExH.js +0 -79
  336. package/dist/assets/InsightsSection-DjRiKEWC-CRd8YfwT.js +0 -27
  337. package/dist/assets/IntegrationsSettingsPage-CHjWI8gL-CCa-olQ5.js +0 -57
  338. package/dist/assets/InternationalWireSwiftDetailsPage-DwmOiSec-BLt2UL2Y.js +0 -171
  339. package/dist/assets/InternationalWireVerificationPage-COckx00_-DU-V6935.js +0 -292
  340. package/dist/assets/InviteFormPage-CmyIJ72X-Vl8NJsKW.js +0 -312
  341. package/dist/assets/InvitePageListView-S-XAzaOd-CKRKrwVx.js +0 -739
  342. package/dist/assets/InvitePeoplePage-B0HxRKN_-3dGtjrPQ.js +0 -12
  343. package/dist/assets/InvoiceUploadSection-DnLPeCSG-C0y9aVXE.js +0 -140
  344. package/dist/assets/IssueChargeCardPage-CoTj6RDV-D-5E4s3e.js +0 -532
  345. package/dist/assets/LabeledAddressValue-B1ZDT-4q-DVaJdMlO.js +0 -49
  346. package/dist/assets/LabeledAddressValueField-Di43zVJJ-B4HEKXM1.js +0 -45
  347. package/dist/assets/LabeledControlledCheckBoxField-BSK3oaPb-CVXOIMit.js +0 -16
  348. package/dist/assets/LabeledCreatableSingleSelectField-BkCk2Mz9-QE-OrhIc.js +0 -204
  349. package/dist/assets/LabeledDocumentField-BtFEcM-5-BNPldwRC.js +0 -41
  350. package/dist/assets/LabeledDropDownFormattedTextField-CihGYv2Q-uL_S1-42.js +0 -59
  351. package/dist/assets/LabeledText-CxYr4vz2-OntqEWP_.js +0 -42
  352. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-Bioh8f7m-DSVS8C1m.js +0 -229
  353. package/dist/assets/LabeledZeniRolesDropDownField-BgiwWAS6-AJekbb2Q.js +0 -297
  354. package/dist/assets/LinkJETransactionPage-Bc29bXtl-lsZpblLt.js +0 -98
  355. package/dist/assets/LockCardPage-B10jpxrS-e8fFZQs8.js +0 -623
  356. package/dist/assets/LowBalancePopup-DzUz_bgp-DkpyxTGf.js +0 -34
  357. package/dist/assets/MagicLinkACHDetailsPage-7wHBwA8u-DVtGPkL-.js +0 -1
  358. package/dist/assets/MagicLinkDomesticWireDetailsPage-CWW5hX-e-Cu-zXAx_.js +0 -1
  359. package/dist/assets/MagicLinkInternationalWireDetailsPage-Dku8PArB-dDYRywx5.js +0 -1
  360. package/dist/assets/MagicLinkSuccessPage-BaEhnzOs-B5ZPDl3h.js +0 -31
  361. package/dist/assets/MagicLinkTitleSection-CO4sR9c2-h_xXZHeA.js +0 -17
  362. package/dist/assets/MailingDetailsSection-Cfd7dekJ-V6MjDV6u.js +0 -21
  363. package/dist/assets/MyBankConnectionsSettingsPage-CnyIOUNb-CgMkJhJg.js +0 -110
  364. package/dist/assets/MyPendingActivationChargeCardListPage-TRkRTIRl-Au28R7Nt.js +0 -6
  365. package/dist/assets/MyProfileSettingsPage-CNJgwdAc-ZInAmXWl.js +0 -85
  366. package/dist/assets/NavBarWithPicker-B3n6c9cW-BqqxXmqK.js +0 -30
  367. package/dist/assets/NavigationArrow-DerCbJQJ-Dbt4VcuR.js +0 -47
  368. package/dist/assets/NewGlobalMerchantPage-B9qfP4b1-CgTqdodw.js +0 -160
  369. package/dist/assets/NoDataTable-XnjjqT1r-tivu1peq.js +0 -8
  370. package/dist/assets/NotificationSettingsPage-rUpktNmE-xg_pmnpN.js +0 -163
  371. package/dist/assets/NotificationsListConfig-DxNNUnb--D_leI4ki.js +0 -1
  372. package/dist/assets/NotificationsPage-LbcVGLzv-BLTUkUub.js +0 -685
  373. package/dist/assets/OpExByVendorPage-NSjf8sPH-DE-QQrBi.js +0 -100
  374. package/dist/assets/OverlayContainerPage-BsY9_22w-DGa5ZVpp.js +0 -11
  375. package/dist/assets/PandLWithForecastPage-CYq7gbZF-BKPHmO-i.js +0 -107
  376. package/dist/assets/PaymentAccountSetupBillingAddressSection-C3AQKfIX-gT-7ubur.js +0 -107
  377. package/dist/assets/PeoplePage-Bz22s7eT-DwCtGox6.js +0 -675
  378. package/dist/assets/Preview-Bnbo8Nq1.js +0 -1
  379. package/dist/assets/ProductsCarousel-Bz_PnE7C-BoGI8CRR.js +0 -142
  380. package/dist/assets/QBOConnectionDialog-DwZPS4A--CuAty-gU.js +0 -51
  381. package/dist/assets/QBOSetupSection-CJh_5ZRY-DIDRxjCw.js +0 -79
  382. package/dist/assets/ReimbursementApprovalRuleDetailPage-BXDkKqzx-COAmJRq9.js +0 -26
  383. package/dist/assets/ReimbursementApprovalRulesPage-CE6Qa9rc-B0Oei2l8.js +0 -237
  384. package/dist/assets/ReimbursementDetailPage-CFz0La2v-DgUH5vbC.js +0 -314
  385. package/dist/assets/ReimbursementPromoPage-CNCL_t1V-CwnQs6UK.js +0 -84
  386. package/dist/assets/ReimbursementSetUpPage-uAHJ-tqY-DiKttSWe.js +0 -140
  387. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BfrwsaW3-CzmfoPGj.js +0 -1
  388. package/dist/assets/ReloadCard-DAqlQiuw-D-2lbPbW.js +0 -26
  389. package/dist/assets/ReportTableViewSelector-CKNUdhCi-Cf0CSBJA.js +0 -150
  390. package/dist/assets/ReportsPage-m4c_CloE-CRqwYB8M.js +0 -121
  391. package/dist/assets/RevenueChart-CaUcz4_r-jW7BbJWi.js +0 -280
  392. package/dist/assets/ReviewDetailsPage-BtsmuUr9-CSpdXzjn.js +0 -290
  393. package/dist/assets/ReviewOverlay-BHH9brKi-3tNvQZvy.js +0 -152
  394. package/dist/assets/RoleWithToolTip-BvpoBPrI-CGcISREk.js +0 -22
  395. package/dist/assets/ScheduleDetailsFixedAssetsPage-DhDc40Ue-DPWUIUiV.js +0 -37
  396. package/dist/assets/ScheduleDetailsPage-Dy5DPc5g-CpkwBmVO.js +0 -37
  397. package/dist/assets/ScheduleSequenceTable-aZhpn2-_-COQXlB3z.js +0 -324
  398. package/dist/assets/ScreenRoutes-Ddw4gS97.js +0 -201
  399. package/dist/assets/SignIn-Ci2pl9iT-BPsxAlxz.js +0 -448
  400. package/dist/assets/SignInScreen-DTfhEy9t.js +0 -1
  401. package/dist/assets/SpendManagementListViewPage-CAf8mKFG-CHwiO4iE.js +0 -123
  402. package/dist/assets/SpendManagementPerTabPage-DVIeImpu-CHxGcOEQ.js +0 -754
  403. package/dist/assets/SpendManagementSection-CBs0TeAg-B-27RJa0.js +0 -230
  404. package/dist/assets/StatementItem-BpF3tpOS-BkKYeBjv.js +0 -31
  405. package/dist/assets/StatementsPage-BA98ZlGW-B7nDlk5d.js +0 -58
  406. package/dist/assets/SubTabSwitcher-DCaHOwRF-DAR0dyFH.js +0 -58
  407. package/dist/assets/SummaryCard-B8E5cyMH-ClAMEeKe.js +0 -1
  408. package/dist/assets/TaskManagementPage-CV18ebqf-B011714Z.js +0 -508
  409. package/dist/assets/TimeRangeSwitcher-DY9UawSC-uIfZtrkK.js +0 -64
  410. package/dist/assets/TimeframeSwitcher-BAK_5aWm-BMHVxYTf.js +0 -31
  411. package/dist/assets/TimeframeSwitcherWithToggle-CK1Q-rG6-CC-JYTDO.js +0 -31
  412. package/dist/assets/TopExCard-Kk7W9fph-D201KTrT.js +0 -38
  413. package/dist/assets/TopExDetailPage-DvmHTkHv-D0Nk3bsE.js +0 -132
  414. package/dist/assets/TransactionDetailPage-CUQgc7YH-Bw0MUTOI.js +0 -912
  415. package/dist/assets/TransactionList-B8r57kr8-DP2Jhq3w.js +0 -147
  416. package/dist/assets/TransactionListBig-DUU6tKkC-BgsfdPlN.js +0 -284
  417. package/dist/assets/TransactionListPage-DUPJ4NJw-BicsuqmT.js +0 -35
  418. package/dist/assets/TransactionVendorDetailPage-uuKl2SqA-CfBmMT7H.js +0 -80
  419. package/dist/assets/TransferDrawerPage-DPpKrxR_-BOm3H9JH.js +0 -362
  420. package/dist/assets/TreasuryOverviewPage-BligQLcn-Cbuwuq38.js +0 -708
  421. package/dist/assets/TreasuryPromoPage-DzcGPAtW-_w2K2zJK.js +0 -505
  422. package/dist/assets/TreasuryStatementsPage-vRiBwJfp-C2hsOchl.js +0 -58
  423. package/dist/assets/TreasuryTaxLetterPage-DqGQEDsD-Bd3gy35Q.js +0 -58
  424. package/dist/assets/TrendChart-_Lxl6UlW-C6CPgTWf.js +0 -16
  425. package/dist/assets/TrendWithTransactions-BHZ8A40V-BbEBIba6.js +0 -116
  426. package/dist/assets/UncategorizedAccountsMappingPage-wnoS0gbf-CgDPi5HT.js +0 -244
  427. package/dist/assets/UnitIntegrationPage-LL_kYuwk-C-_3k6Sd.js +0 -67
  428. package/dist/assets/UploadAdditionalDocumentOverlay-CnjAzKXw-fvhbnFek.js +0 -38
  429. package/dist/assets/Vendor2FAPopup-DWQSvW1O-8qZXKJ0V.js +0 -1
  430. package/dist/assets/VendorACHDetailsPage-C-bm6Qhp-D15Nx7XZ.js +0 -1
  431. package/dist/assets/VendorDetailPage-BvdwLyYe-BdJviSYR.js +0 -257
  432. package/dist/assets/VendorDomesticWireDetailsPage-BW84w9Ry-CqMPcmHT.js +0 -1
  433. package/dist/assets/VendorFiling1099EditablePage-BTBNh-F6-DBJhrvXk.js +0 -175
  434. package/dist/assets/VendorFirstReviewPage-dOgss8oK-DiVYGGaF.js +0 -730
  435. package/dist/assets/VendorInternationalWireDetailsPage-DAzAM1mu-C8VqYjWe.js +0 -152
  436. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Btjdf2I6-C7CnuYuR.js +0 -1
  437. package/dist/assets/VerifyDevice-Df70OQL0-Dy_fV---.js +0 -112
  438. package/dist/assets/VideoPlayer-BlDaa3e0-DBziSdiE.js +0 -78
  439. package/dist/assets/WarningsDrawerPage-DdoJbKk1-DZuScW2D.js +0 -92
  440. package/dist/assets/ZeniAccountDetailPage-Df0bngPT-CzR-wT4k.js +0 -300
  441. package/dist/assets/ZeniAccountListViewPage-B66dgraR-TKWP-DJl.js +0 -441
  442. package/dist/assets/ZeniAccountNavBarPieces-DsnSMk6--CYtJk0AT.js +0 -14
  443. package/dist/assets/ZeniAccountSetupPage-DetTri71-bqd_-_Lq.js +0 -36
  444. package/dist/assets/ZeniCopyright-ag3_XPx6-CAS7ugaf.js +0 -1
  445. package/dist/assets/ZeniTransferAmountSlider-B6VZtpIa-fTsQcTPM.js +0 -63
  446. package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +0 -1
  447. package/dist/assets/analyticsHelper-DGP9O_15-DJCxFW2y.js +0 -1
  448. package/dist/assets/chartTypes-BUNjh2j0-Buc6fDbU.js +0 -1
  449. package/dist/assets/commonDimensions-Csh-Czgf-DHHuXfVv.js +0 -1
  450. package/dist/assets/dash.all.min-Ba2vGpbn.js +0 -21
  451. package/dist/assets/detailCommon-BSu_Baak-Bp5zf8Y3.js +0 -38
  452. package/dist/assets/downloadPdf-CqRT2Puf-CYGuzpcq.js +0 -1
  453. package/dist/assets/empty-CnIz-OQ7.js +0 -1
  454. package/dist/assets/empty-DeBX16Fq.js +0 -1
  455. package/dist/assets/hls-BA0yQjS5.js +0 -40
  456. package/dist/assets/index-BwZxOaMR.js +0 -1
  457. package/dist/assets/index-C3zEY1ql.js +0 -1
  458. package/dist/assets/index-DQmBF4-D.js +0 -3310
  459. package/dist/assets/index-Dg5PDYc0.js +0 -1
  460. package/dist/assets/index-MVH9tD8n.js +0 -1
  461. package/dist/assets/index-ePPQ9tNX.js +0 -29300
  462. package/dist/assets/index-t8y498Dk.css +0 -1
  463. package/dist/assets/lexical-DPEnH3HH.js +0 -21
  464. package/dist/assets/lottie-DEE24l2z.js +0 -9
  465. package/dist/assets/mapLoadingInProgressToTreeNode-BdSdrYtM-DQNpzGDX.js +0 -1
  466. package/dist/assets/mapSectionWithAcOnlyToTreeNode-biS8kQJJ-CES1q3H0.js +0 -1
  467. package/dist/assets/mapSpacerToTreeNode-BpAn8O5Z-BAhxv_R7.js +0 -1
  468. package/dist/assets/mapTimeframeBalancesToTreeNode-D6asy5O1-DtLDkyGT.js +0 -1
  469. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-9hfvdurU-CV0zVNns.js +0 -1
  470. package/dist/assets/mixin-D3UDm--6.js +0 -43
  471. package/dist/assets/mui-bYXq4XMS.js +0 -25
  472. package/dist/assets/react-B5y9n_ef.js +0 -17
  473. package/dist/assets/react-B84192hO.js +0 -32
  474. package/dist/assets/react-BpmEXSTM.js +0 -27
  475. package/dist/assets/react-BuvI16A0.js +0 -37
  476. package/dist/assets/react-BvHTyLQY.js +0 -29
  477. package/dist/assets/react-CA3XI5Yc.js +0 -16
  478. package/dist/assets/react-Cz0zQhlY.js +0 -31
  479. package/dist/assets/react-Egsc5mMa.js +0 -44
  480. package/dist/assets/recharts-BHhx6CLo.js +0 -73
  481. package/dist/assets/toCOABalancesWithID-CM8Fnmnz-B1jLHQcN.js +0 -1
  482. package/dist/assets/toChartData-DVbJJK3l-CGMLhemz.js +0 -1
  483. package/dist/assets/types-DyvtCprH-BcZYcgaq.js +0 -1
  484. package/dist/assets/uploadAttachment-BNPqn7_B-_bcIPDdi.js +0 -286
  485. package/dist/assets/uploadReceipts-CDPM7zcb-DkZqtldQ.js +0 -1
  486. package/dist/assets/url-BScMlxNd.js +0 -1
  487. package/dist/assets/url-XsY5bkGi.js +0 -6
  488. package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +0 -1
  489. package/dist/assets/utils-uDUqNRFY.js +0 -70
@@ -0,0 +1,2844 @@
1
+ import{j as t,bG as gr,bm as b,cy as ye,bn as X,eB as fr,b as d,C as ne,bB as Vn,u as W,b3 as Dn,a_ as xr,eC as mr,eD as Io,eE as wr,dj as yr,a as M,b2 as br,s as _,eF as Ne,eG as Mo,b6 as No,b5 as kr,bs as I,cZ as nn,eH as on,R as G,dQ as rn,a$ as Wo,a9 as ft,eI as Ke,cA as Z,A as Sr,eJ as an,bt as E,i as ue,eK as ce,am as jr,az as Ve,an as Po,ap as Gt,eL as vr,aq as Cr,ar as ln,cY as sn,cP as Rn,af as _r,ai as je,eM as xt,eN as jt,eO as De,ah as B,d6 as re,eP as $r,t as cn,bz as zo,eQ as Fo,bL as Lr,di as dn,dh as hn,aj as Re,eR as Br,bH as To,aL as Ar,aB as un,ay as Vo,aE as Do,aF as Or,aG as En,aH as Ro,eS as it,eT as Gn,dq as Eo,cF as Ir,eU as Hn,eV as Mr,eW as Nr,bJ as Go,eX as Wr,eY as Pr,eZ as zr,e_ as Kn,e$ as Yn,f0 as Fr,f1 as Tr,cH as Vr,cq as Dr,f2 as Rr}from"./index-2CdI-B2B.js";import{n as l,c as D}from"./mui-kiGMfX4-.js";import{a as N,o as pn}from"./core-tlHkQPPu.js";import{f6 as Pt,eT as gn,fi as fn,fj as Ye,fk as xn,fl as mn,fm as wn,fn as yn,fo as Ho,fp as Er,eU as We,bn as Un,bh as Ko,fq as Yo,bp as Gr,f5 as Uo,fr as Hr}from"./zeni-epic-state-Bo1aGezX.js";import{Q as Kr,U as gt,M as Yr,B as ve,a as A}from"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import{e as Ur}from"./useFormControl-DPydD0oc-BkCU7DyG.js";function ee(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 X("0,0",e?.balance)}function te(e){return X("0,0",e?.forecast)}function qo(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 X("0,0",e?.totalBalance)}function Ht(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 X("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 X("0,0",Object.assign({},e.forecast,{amount:n}))}return X("0,0",null)}function Zo(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 Qo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return X("0,0",Object.assign({},e.totalForecast,{amount:n}))}return X("0,0",null)}const Ue=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:a}}=M.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${Pt(i,a.MMMYYYYFormat,e)}`:zt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${M.getLocalizedStrings().reports.quarterPrefix}${Pt(i,a.QYYYYformat,e)}`:zt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${Pt(i,a.YYYYformat,e)}`:zt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function zt(e,n){return M.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}function qr(e){return Vo("PrivateSwitchBase",e)}Ro("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Zr=ln(Pr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:n})=>e==="start"&&n.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:n})=>e==="end"&&n.size!=="small",style:{marginRight:-12}}]}),Qr=ln("input",{name:"MuiSwitchBase",shouldForwardProp:Do})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jr=N.forwardRef(function(e,n){const{autoFocus:o,checked:i,checkedIcon:r,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:h=!1,icon:g,id:p,inputProps:u,inputRef:f,name:x,onBlur:w,onChange:m,onFocus:k,readOnly:y,required:v=!1,tabIndex:S,type:$,value:C,slots:L={},slotProps:O={},...P}=e,[T,R]=Ar({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),V=Ur();let Y=s;V&&Y===void 0&&(Y=V.disabled);const U=$==="checkbox"||$==="radio",Q={...e,checked:T,disabled:Y,disableFocusRipple:c,edge:h},de=(he=>{const{classes:le,checked:ie,disabled:_e,edge:tt}=he,nt={root:["root",ie&&"checked",_e&&"disabled",tt&&`edge${Ve(tt)}`],input:["input"]};return Po(nt,qr,le)})(Q),Ae={slots:L,slotProps:{input:u,...O}},[Je,Xe]=Gt("root",{ref:n,elementType:Zr,className:de.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Ae,component:"span",...P},getSlotProps:he=>({...he,onFocus:le=>{he.onFocus?.(le),(ie=>{k&&k(ie),V&&V.onFocus&&V.onFocus(ie)})(le)},onBlur:le=>{he.onBlur?.(le),(ie=>{w&&w(ie),V&&V.onBlur&&V.onBlur(ie)})(le)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[Ce,et]=Gt("input",{ref:f,elementType:Qr,className:de.input,externalForwardedProps:Ae,getSlotProps:he=>({...he,onChange:le=>{he.onChange?.(le),(ie=>{if(ie.nativeEvent.defaultPrevented||y)return;const _e=ie.target.checked;R(_e),m&&m(ie,_e)})(le)}}),ownerState:Q,additionalProps:{autoFocus:o,checked:i,defaultChecked:a,disabled:Y,id:U?p:void 0,name:x,readOnly:y,required:v,tabIndex:S,type:$,...$==="checkbox"&&C===void 0?{}:{value:C}}});return t.jsxs(Je,{...Xe,children:[t.jsx(Ce,{...et}),T?r:g]})}),Hg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${fr(10)}`};var Ft=function(){},Xr=function(e,n){return(0,n.getRecordData)(e).data.id},Jo=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getRecordData=a.getRecordData.bind(Ne(a)),a.state={list:N.createRef(),recomputeTree:a.recomputeTree.bind(Ne(a)),setState:a.setState.bind(Ne(a))},a}Io(n,e),n.getDerivedStateFromProps=function(i,r){var a,s=i.listRef,c=s===void 0?null:s,h=i.treeWalker,g=r.computeTree,p=r.list,u=r.order,f=r.treeWalker;return Mo({attachRefs:(a=[p,c],function(x){a.forEach(function(w){typeof w=="function"?w(x):w!=null&&(w.current=x)})})},h===f&&u?null:g(i,r,{refresh:!0}),{treeWalker:h})};var o=n.prototype;return o.getItemData=function(){var i=this.props,r=i.children,a=i.itemData;return{component:r,getRecordData:this.getRecordData,treeData:a}},o.getRecordData=function(i){var r=this.state,a=r.order;return r.records.get(a[i]).public},o.recomputeTree=function(i){var r=this;return new Promise(function(a){r.setState(function(s){return s.computeTree(r.props,s,{opennessState:i})},a)})},o.scrollTo=function(i){var r;(r=this.state.list.current)==null||r.scrollTo(i)},o.scrollToItem=function(i,r){var a;(a=this.state.list.current)==null||a.scrollToItem(this.state.order.indexOf(i),r)},n}(N.PureComponent);Jo.defaultProps={rowComponent:function(e){var n=e.index,o=e.data,i=o.component,r=o.getRecordData,a=o.treeData,s=e.style,c=e.isScrolling,h=r(n);return pn.createElement(i,Object.assign({isScrolling:c,style:s,treeData:a},h))}};var qn,ea=(qn={createRecord:function(e,n,o,i){var r=n.recomputeTree,a=n.resetAfterId,s=function(c,h){return h===void 0&&(h=null),{child:null,isShown:!h||h.public.isOpen&&h.isShown,parent:h,public:c,sibling:null,visited:!1}}({data:e,height:i?i.public.height:e.defaultHeight,isOpen:i?i.public.isOpen:e.isOpenByDefault,resize:function(c,h){s.public.height=c,a(s.public.data.id,h)},setOpen:function(c){var h;return r(((h={})[e.id]=c,h))}},o);return s}},function(e,n,o){return o.refresh?function(i,r,a){var s=i.createRecord,c=r.buildingTaskTimeout,h=r.placeholder,g=r.async,p=g!==void 0&&g,u=r.treeWalker,f=p&&a.records!==void 0,x=a.records,w=[],m=new Map,k=c?{timeout:c}:void 0,y=new WeakMap,v=u(),S=v.next().value,$=s(S.data,a,void 0,f?x.get(S.data.id):void 0);m.set($.public.data.id,$),y.set($,S);var C=$,L=!0,O=$,P=h!==void 0&&!(h===null&&!a.order),T=P?function(V){return V.timeRemaining()>0}:function(){return!0},R=function V(Y){for(;C!==null;){if(!T(Y))return void requestIdleCallback(V,k);if(C.visited)C.visited=!1,C=C.sibling!==null?C.sibling:C.parent,O=C;else{var U=v.next(y.get(C)).value;if(U===void 0){L?L=!1:(C.isShown&&w.push(C.public.data.id),C.visited=C.child!==null,C=C.child!==null?C.child:C.sibling!==null?C.sibling:C.parent),O=C;continue}var Q=s(U.data,a,L?void 0:C,f?x.get(U.data.id):void 0);m.set(Q.public.data.id,Q),y.set(Q,U),L||O!==C?O.sibling=Q:O.child=Q,O=Q}}P&&a.setState({order:w,records:m,updateRequest:{}})};return P?requestIdleCallback(R,k):R(),h!==void 0&&p&&a.order?a:{order:w,records:m}}(qn,e,n):function(i,r){var a=i.order,s=i.records,c=r.opennessState;if(typeof c!="object")return null;for(var h in c)if(s.has(h)){var g=c[h],p=s.get(h),u=typeof g=="boolean"?{open:g}:g,f=u.open,x=u.subtreeCallback,w=x===void 0?Ft:x,m=Ft,k=Ft;p.isShown&&(f?function(){for(var v=a.indexOf(h),S=p;S!==null;){if(S.sibling!==null){S=S.sibling;break}S=S.parent}var $=S===null?a.length-1-v:a.indexOf(S.public.data.id)-1-v,C=[[v+1,$]];m=function(L){if(L.isShown=!L.parent||L.parent.public.isOpen&&L.parent.isShown,L.isShown){var O=C[C.length-1];O.push(L.public.data.id),O.length===32770&&C.push([v+1+32768*C.length,0])}},k=function(){for(var L=0;L<C.length;L++){var O;(O=a).splice.apply(O,C[L])}}}():p.public.isOpen&&function(){var v=a.indexOf(h),S=0;m=function($){$.isShown&&(S+=1),$.isShown=!$.parent||$.parent.public.isOpen&&$.parent.isShown},k=function(){a.splice(v+1,S)}}());for(var y=p;y!==null;)y.visited?(y.visited=!1,y=y===p?null:y.sibling!==null?y.sibling:y.parent):(y.public.isOpen=y===p?f:y.public.isOpen,w(y.public,p.public),y!==p&&m(y),y.visited=y.child!==null,y=y.child!==null?y.child:y===p?null:y.sibling!==null?y.sibling:y.parent);k()}return{order:a,records:s,updateRequest:{}}}(n,o)}),Zn=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getItemSize=a.getItemSize.bind(Ne(a)),a.state=Mo({},a.state,{computeTree:ea,resetAfterId:a.resetAfterId.bind(Ne(a))}),a}Io(n,e);var o=n.prototype;return o.resetAfterId=function(i,r){var a;r===void 0&&(r=!1);var s=this.state,c=s.list,h=s.order;(a=c.current)==null||a.resetAfterIndex(h.indexOf(i),r)},o.recomputeTree=function(i){var r=this;return e.prototype.recomputeTree.call(this,i).then(function(){var a;(a=r.state.list.current)==null||a.resetAfterIndex(0,!0)})},o.render=function(){var i=this.props;i.children;var r=i.placeholder,a=i.itemSize,s=i.rowComponent;i.treeWalker;var c=wr(i,["children","placeholder","itemSize","rowComponent","treeWalker"]),h=this.state,g=h.attachRefs,p=h.order;return r&&p.length===0?r:pn.createElement(yr,Object.assign({},c,{itemCount:p.length,itemData:this.getItemData(),itemKey:Xr,itemSize:a??this.getItemSize,ref:g}),s)},o.getItemSize=function(i){return this.getRecordData(i).height},n}(Jo);const ta=l.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
+ `,na=l.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
+ `,oa=l.div`
18
+ display: flex;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ gap: ${d.sp2};
22
+ width: ${A.leftHeadingWidth}px;
23
+ `,ia=l.div`
24
+ display: flex;
25
+ flex: 1 1 auto;
26
+ justify-content: flex-end;
27
+ align-items: center;
28
+ gap: ${d.sp4};
29
+ `,ra=l(re)`
30
+ width: ${A.bankBalanceWidth}px;
31
+ min-width: ${A.bankBalanceWidth}px;
32
+ text-align: right;
33
+ `,aa=l(re)`
34
+ width: ${A.clearedBalanceWidth}px;
35
+ min-width: ${A.clearedBalanceWidth}px;
36
+ text-align: right;
37
+ `,la=l(re)`
38
+ width: ${A.statusWidth}px;
39
+ min-width: ${A.statusWidth}px;
40
+ `,sa=l.div`
41
+ display: flex;
42
+ flex-shrink: 0;
43
+ gap: ${d.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
+ `,ca=l.div`
51
+ width: ${A.variancePercentageWidth}px;
52
+ min-width: ${A.variancePercentageWidth}px;
53
+ text-align: right;
54
+ margin-right: ${d.sp2};
55
+ `,da=l.div`
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ `,ha=l.div`
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ `;function ua({height:e}){const n=W();return t.jsx(ta,{heightValue:e,windowSize:n,children:t.jsxs(na,{children:[t.jsxs(oa,{children:[t.jsx(da,{children:t.jsx(ce,{isLoading:!0,customStyle:{height:d.sp4,maxWidth:d.sp4,width:d.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(ha,{children:t.jsx(ce,{isLoading:!0,customStyle:{height:d.sp4,width:A.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(ia,{children:[t.jsx(ra,{children:t.jsx(ce,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:A.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(aa,{children:t.jsx(ce,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:A.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(sa,{children:[t.jsx(ce,{isLoading:!0,position:"right",customStyle:{height:d.sp4,width:A.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(ca,{children:t.jsx(ce,{isLoading:!0,customStyle:{height:d.sp4,width:A.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(la,{children:t.jsx(ce,{isLoading:!0,customStyle:{height:d.sp4,width:A.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const pa=l.div`
64
+ display: flex;
65
+ flex-direction: row;
66
+ height: ${e=>e.heightValue}px;
67
+ padding-right: ${A.wrapperPadding}px;
68
+ `;function ga({height:e}){return t.jsx(pa,{heightValue:e})}const fa=l.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
+ `,xa=l.div`
77
+ flex: 1 1 auto;
78
+ display: flex;
79
+ align-items: center;
80
+ height: ${d.sp8};
81
+ justify-content: flex-start;
82
+ align-items: center;
83
+ `,ma=l.div`
84
+ display: flex;
85
+ flex-direction: row;
86
+ justify-content: flex-end;
87
+ width: ${A.leftHeadingWidth}px;
88
+ `,wa=l.div`
89
+ display: flex;
90
+ flex: 1 1 auto;
91
+ flex-direction: row;
92
+ justify-content: flex-end;
93
+ `,ya=l(To)`
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
+ `,ba=l(B)`
100
+ user-select: none;
101
+ `,ka=l.div`
102
+ max-height: ${d.sp8};
103
+ min-height: ${d.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: ${d.sp2};
112
+ color: ${e=>e.theme.colors.primary};
113
+ margin-right: ${e=>e.marginRight===!0?d.sp2:d.sp0};
114
+ `,Sa=l.div`
115
+ width: ${A.bankBalanceWidth}px;
116
+ `,ja=l.div`
117
+ width: ${A.bankBalanceRightTimeframeWidth}px;
118
+ `,va=l.div`
119
+ width: ${A.clearedBalanceWidth}px;
120
+ margin-right: ${A.tickLeftMargin}px;
121
+ `,Ca=l.div`
122
+ width: ${A.varianceTimeframeWidth}px;
123
+ align-self: flex-end;
124
+ `,_a=l.div`
125
+ width: ${A.spacerLineWidth}px;
126
+ `,$a=l.div`
127
+ width: ${A.statusWidth}px;
128
+ `,rt=({title:e,type:n})=>t.jsx(ka,{widthValue:A[n],children:t.jsx(ba,{children:e})});function La({sectionTitle:e,height:n,isLoading:o}){const i=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(fa,{height:n,children:t.jsxs(xa,{children:[t.jsx(ma,{children:t.jsx(ce,{isLoading:o,customStyle:{height:d.sp4,width:A.leftLabelWidth},children:t.jsx(ya,{"data-testid":b("account-recon-section-title",e),children:e})})}),t.jsxs(wa,{children:[t.jsx(Sa,{children:t.jsx(ce,{isLoading:o,customStyle:{height:d.sp7,width:A.bankBalanceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(rt,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(ja,{}),t.jsx(va,{children:t.jsx(ce,{isLoading:o,customStyle:{height:d.sp7,width:A.clearedBalanceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(rt,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(Ca,{children:t.jsx(ce,{isLoading:o,customStyle:{height:d.sp7,width:A.varianceTimeframeWidth,borderRadius:d.sp2},children:t.jsx(rt,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(_a,{}),t.jsx($a,{children:t.jsx(ce,{isLoading:o,customStyle:{height:d.sp7,width:A.statusTimeframeWidth,borderRadius:d.sp2},children:t.jsx(rt,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const Ba=l.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
+ `,Aa=l(To)`
135
+ user-select: none;
136
+ color: ${e=>e.theme.colors.primary};
137
+ `;function Oa({height:e,title:n}){return t.jsx(Ba,{heightValue:e,children:t.jsx(Aa,{"data-testid":b("account-recon-section-title",n),children:n})})}const Ia=l.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
+ `,Ma=l.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=l.div`
155
+ display: flex;
156
+ flex: 1 1 auto;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ gap: ${d.sp2};
160
+ `,Wa=l(re)`
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
+ `,Pa=l.div`
172
+ display: flex;
173
+ flex: 1 1 auto;
174
+ justify-content: flex-end;
175
+ align-items: center;
176
+ `,za=l(re)`
177
+ width: ${A.bankBalanceWidth}px;
178
+ min-width: ${A.bankBalanceWidth}px;
179
+ text-align: right;
180
+ `,Fa=l(re)`
181
+ width: ${A.clearedBalanceWidth}px;
182
+ min-width: ${A.clearedBalanceWidth}px;
183
+ text-align: right;
184
+ margin-left: ${A.tickLeftMargin}px;
185
+ `,Ta=l(re)`
186
+ width: ${A.statusWidth}px;
187
+ min-width: ${A.statusWidth}px;
188
+ height: 1px;
189
+ `,Va=l.div`
190
+ display: flex;
191
+ flex-direction: row;
192
+ min-width: ${A.spacerLineWidth}px;
193
+ width: ${A.spacerLineWidth}px;
194
+ align-items: center;
195
+ `,Da=l.div`
196
+ width: 1px;
197
+ margin-left: ${d.sp3};
198
+ height: ${e=>e.heightValue}px;
199
+ background-color: ${e=>e.theme.colors.grey3};
200
+ `,Ra=l.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
+ `,Ea=l(re)`
211
+ border-radius: ${d.sp1};
212
+ color: ${e=>e.textColor.hex()};
213
+ min-width: ${A.varianceNumberWidth}px;
214
+ text-align: right;
215
+ margin-right: ${d.sp2};
216
+ `,Ga=l(re)`
217
+ border-radius: ${d.sp1};
218
+ padding: ${d.sp0} ${d.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:Qn}}},common:{strings:{percentage:Ha,hyphen:mt}}}=M.getLocalizedStrings();function Ka({height:e,sectionData:n}){const o=W(),i=n.totalVariance,r=n.totalVariancePercentage,a=ue();return t.jsx(Ia,{"data-testid":b("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(Ma,{isClickable:!1,"data-testid":b("total-row-container"),children:[t.jsxs(Na,{children:[t.jsx(ve,{firstLetter:Qn.section[n.sectionId].subTitle.charAt(0),color:new I(a.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wa,{children:Qn.section[n.sectionId].subTitle})]}),t.jsxs(Pa,{children:[t.jsx(za,{children:n.totalBankBalance!=null?X("0,0",n.totalBankBalance):mt}),t.jsx(Fa,{children:n.totalClearedBalance!=null?X("0,0",n.totalClearedBalance):mt}),t.jsx(Ya,{variance:i,variancePercentage:r}),t.jsx(Va,{children:t.jsx(Da,{heightValue:e})}),t.jsx(Ta,{})]})]})})}const Ya=({variance:e,variancePercentage:n})=>{const o=ue(),i=new I(o.colors.hero),r=new I(o.colors.hero),a=new I(o.colors.background),s=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Ha}`:mt;return t.jsxs(Ra,{children:[t.jsx(Ea,{textColor:i,children:e!=null?X("0,0",e):mt}),t.jsx(Ga,{textColor:r,bgColor:a,children:s})]})},j={balanceHeight:d.sp4,balanceHeightInPx:_[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:d.sp4,balanceLeftMarginInPx:_[4],titleWidth:new G(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128},me=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":case"name_only":return!0}},be=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},Xo={emptyLeftContainer:new G(_[0],_[5])},Ua=l(B)`
225
+ margin-left: ${e=>e.hasChildren||e.depth===0?d.sp2:d.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
+ `,qa=l.div`
231
+ display: flex;
232
+ height: ${d.sp6};
233
+ align-items: center;
234
+ `,Za=l.div`
235
+ display: flex;
236
+ height: ${d.sp6};
237
+ align-items: center;
238
+ `,Qa=l.div`
239
+ height: ${d.sp6};
240
+ width: ${d.sp3};
241
+ `,Ja=l.div`
242
+ width: 14px;
243
+ height: ${d.sp1};
244
+ `,Xa=l.div`
245
+ width: ${d.sp2};
246
+ height: ${d.sp1};
247
+ `,ei=l.div`
248
+ width: ${e=>Xo.emptyLeftContainer.valuePx(e.windowSize)};
249
+ height: ${d.sp1};
250
+ `,Ee=l.div`
251
+ display: flex;
252
+ `,el=({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(Ee,{children:[r.depth===0?t.jsx(Hn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(De,{},i):t.jsx(jt,{}):null,r.depth>=1?t.jsx(Hn,{depth:r.depth}):null]},o+i)}):null}),ti=({ancestorMetadata:e,depth:n,name:o})=>{const i=W();return n===0?e[n].hasChildren===!1?t.jsx(ei,{windowSize:i}):t.jsxs(Ee,{children:[t.jsx(it,{depth:n}),t.jsx(De,{}),t.jsx(it,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const a=e[r],s=r!==n?e[r+1]:void 0;return t.jsxs(Ee,{children:[a.depth===0?t.jsx(it,{depth:a.depth}):null,r>=2||r===1&&(n===r?a.hasChildren===!0:s!=null&&!s.isLastNode)?n===1?t.jsx(Gn,{index:1}):t.jsx(Gn,{index:2}):null,(n===r?a.hasChildren!==!0:s==null||s.isLastNode)?t.jsx(jt,{}):t.jsx(De,{},r),t.jsx(it,{depth:a.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=1?t.jsx(Xa,{}):null]})},ni=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(Ja,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],a=i!==n?e[i+1]:void 0;return t.jsxs(Ee,{children:[r!=null&&r.depth===0?t.jsx(xt,{depth:r.depth}):null,a==null||a.isLastNode?t.jsx(jt,{}):t.jsx(De,{},i),t.jsx(xt,{depth:r!=null?r.depth+1:0})]},o+i)})}),tl=({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(Ee,{children:[r.depth===0?t.jsx(xt,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(De,{},i):t.jsx(jt,{}):null,r.depth>=1?t.jsx(xt,{depth:r.depth}):null]},o+i)}):null}),nl=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:a,onIconClick:s})=>{let c=t.jsx(Qa,{});return e===0&&r&&(c=t.jsx(zr,{collapsed:a,onIconClick:s})),e>0&&(r&&!i&&n&&(c=t.jsx(Kn,{collapsed:a,onIconClick:s})),o&&i&&n&&(c=t.jsx(Yn,{})),o&&i&&!n&&(c=t.jsx(Fr,{})),r&&i&&!n&&(c=t.jsx(Tr,{collapsed:a,onIconClick:s})),r&&i&&n&&(c=t.jsx(Kn,{collapsed:a,onIconClick:s})),n&&o&&(c=t.jsx(Yn,{}))),c},ol=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:a,onIconClick:s})=>t.jsx(Za,{children:t.jsx(nl,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:a,onIconClick:s})});function oi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=W();return t.jsxs(qa,{children:[e.classDepth!=null?t.jsx(ti,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(ei,{windowSize:o}):null,t.jsx(tl,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(ol,{...e}),t.jsx(Ua,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const q={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,325,405),nameLogoWidth:new G(_[4],_[4]),nameLogoHeight:new G(_[4],_[4])},at=[new G(_[4],_[8]),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],il=l.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
+ `,rl=l.div`
258
+ display: flex;
259
+ flex: 1 1 auto;
260
+ flex-flow: row;
261
+ justify-content: flex-start;
262
+ align-items: center;
263
+ `,al=l.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=>q.titleWidth.valuePx(e.windowSize)};
271
+ max-width: ${e=>q.titleWidth.valuePx(e.windowSize)};
272
+ ${({isSticky:e})=>e?D`
273
+ position: -webkit-sticky;
274
+ position: sticky;
275
+ top: ${d.sp0};
276
+ left: ${d.sp0};
277
+ `:null}
278
+ `,ll=l.div`
279
+ width: ${e=>e.noMarginForEntity?at[e.nestingLevel].value(e.windowSize)-_[5]:at[e.nestingLevel].value(e.windowSize)}px;
280
+ max-width: ${e=>e.noMarginForEntity?at[e.nestingLevel].value(e.windowSize)-_[5]:at[e.nestingLevel].value(e.windowSize)}px;
281
+ height: 1px;
282
+ `,sl=l.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
+ `,cl=l.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
+ `,Jn=e=>{const n=W(),o=ue();return t.jsxs(rl,{"data-testid":b("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(al,{windowSize:n,isSticky:e.isSticky,"data-testid":b("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ll,{"data-testid":b("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(sl,{"data-testid":b("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(cl,{"data-testid":b("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Kt({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(Jn,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(il,{"data-testid":b("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Jn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const ii=l.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
+ `,ri=l.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
+ `,ai=l.div`
314
+ display: flex;
315
+ flex: 1 0 auto;
316
+ flex-direction: row;
317
+ justify-content: flex-end;
318
+ `,li=l.div`
319
+ display: flex;
320
+ flex-direction: row;
321
+ justify-content: flex-start;
322
+ `,si=l(B)`
323
+ user-select: none;
324
+ min-width: ${q.balanceWidth};
325
+ max-width: ${q.balanceWidth};
326
+ text-align: right;
327
+ margin-left: ${q.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
+ `,dl=l(B)`
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: ${d.sp2};
343
+ `,ci=l.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=>q.titleWidth.valuePx(e.windowSize)};
351
+ max-width: ${e=>q.titleWidth.valuePx(e.windowSize)};
352
+ background-color: ${e=>e.bgColor?.hex()};
353
+ ${({isSticky:e})=>e?D`
354
+ position: sticky;
355
+ top: ${d.sp0};
356
+ left: ${d.sp0};
357
+ `:null}
358
+ cursor: pointer;
359
+ color: ${e=>e.theme.colors.hero};
360
+ &:hover {
361
+ color: ${e=>e.theme.colors.primary};
362
+ }
363
+ `,di=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(li,{children:t.jsx(si,{isClickable:!1,onClick:()=>null,children:X("0,0",o)})})},hi=({total:e})=>t.jsx(li,{children:t.jsx(si,{isClickable:!1,onClick:()=>null,children:X("0,0",e)})});function hl({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:a,vendor:s,backgroundColor:c,onEntityNameClick:h}){const g=W(),p=s?.name??"";return t.jsxs(ii,{"data-testid":b("ap-aging-report-row-root-container",p),containerHeight:n,bgColor:c,windowSize:g,children:[t.jsxs(ri,{"data-testid":b("ap-aging-report-row-container",p),style:{cursor:"default"},isClickable:!1,containerHeight:n-1,children:[t.jsxs(ci,{onClick:()=>s?.id!=null?h?.(s.id):void 0,isSticky:e,windowSize:g,bgColor:c,containerHeight:n-1,children:[s?.logo!=null?t.jsx(on,{photoUrl:s.logo.toString(),styles:{width:q.nameLogoWidth.valuePx(g),height:q.nameLogoHeight.valuePx(g)}}):t.jsx(rn,{name:p??"",size:d.sp4}),t.jsx(dl,{children:p})]}),t.jsxs(ai,{"data-testid":b("ap-aging-report-row-balances-container",p),children:[r.map(u=>t.jsx(di,{balance:u,isOpen:!0},u?.period)),t.jsx(hi,{total:a})]})]}),t.jsx(ui,{isScrolling:o,isLastNode:i})]})}function ul({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:a,balances:s,total:c,totalWithChildren:h,nestedCustomer:g,metadata:p,backgroundColor:u,onEntityNameClick:f,onClick:x}){const w=W(),m=p,k=g?.customer.name??"",y=g!=null?g.id.length-1:0,v=g?.hasSiblings??!1,S=g!=null&&g.children.length!==0,$=S,C=$?"pointer":"default",L=g!=null&&g.isLeafCustomer;return t.jsxs(ii,{"data-testid":b("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:u,windowSize:w,children:[t.jsxs(ri,{"data-testid":b("ar-aging-report-row-container",e),style:{cursor:C},isClickable:$,containerHeight:o-1,children:[t.jsx(ci,{"data-testid":b("ar-aging-report-row-name-container",e),isSticky:n,windowSize:w,bgColor:u,containerHeight:o-1,children:t.jsx(oi,{displayName:k,depth:y,isLastNode:r,hasChildren:S,hasSiblings:v,isLeaf:L,collapsed:!a,subAccountAnscestorMetadata:m.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:()=>{x?.(e)},onNameClick:()=>g?.id[0]!=null?f?.(g.id[0]):void 0})}),t.jsxs(ai,{children:[s.map(O=>t.jsx(di,{balance:O,isOpen:a},O?.period)),t.jsx(hi,{total:a?c:h})]})]}),t.jsx(ui,{isScrolling:i,subEntityProps:{nestingLevel:y,isSticky:n,noMarginForEntity:!0}})]})}function ui({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Kt,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Kt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const pl=l.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
+ `,gl=l.div`
375
+ display: flex;
376
+ flex: 1 0 auto;
377
+ flex-direction: row;
378
+ justify-content: flex-end;
379
+ `,pi=l.div`
380
+ display: flex;
381
+ max-height: ${d.sp8};
382
+ min-height: ${d.sp8};
383
+ min-width: ${q.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: ${d.sp2};
389
+ margin-left: ${q.balanceLeftMargin};
390
+ color: ${e=>e.theme.colors.primary};
391
+ `,gi=l(B)`
392
+ display: flex;
393
+ user-select: none;
394
+ flex-direction: row;
395
+ justify-content: center;
396
+ align-items: center;
397
+ height: ${q.balanceHeight};
398
+ max-width: ${q.balanceWidth};
399
+ width: 138px;
400
+ text-align: center;
401
+ column-gap: ${d.sp1};
402
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
+ `,fl=l.div`
404
+ max-height: ${d.sp8};
405
+ min-height: ${d.sp8};
406
+ display: flex;
407
+ flex-direction: row;
408
+ align-items: center;
409
+ min-width: ${e=>q.titleWidth.valuePx(e.windowSize)};
410
+ color: ${e=>e.theme.colors.primary};
411
+ background-color: ${e=>e.bgColor?.hex()};
412
+ ${e=>e.isSticky?D`
413
+ position: -webkit-sticky;
414
+ position: sticky;
415
+ top: ${d.sp0};
416
+ left: ${d.sp0};
417
+ `:""}
418
+ `,xl=l(B)`
419
+ display: flex;
420
+ align-items: center;
421
+ cursor: pointer;
422
+ column-gap: ${d.sp1};
423
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
424
+ `,fi=l.div`
425
+ max-height: ${d.sp8};
426
+ min-height: ${d.sp8};
427
+ cursor: pointer;
428
+ `,bn=l.div`
429
+ display: flex;
430
+ column-gap: ${d.sp1};
431
+ cursor: pointer;
432
+ align-items: center;
433
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
434
+ `,xi=l.div``,mi=l(Eo)`
435
+ width: 12px;
436
+ height: 12px;
437
+ cursor: pointer;
438
+ color: ${e=>e.theme.colors.hero};
439
+ `,kn=l(hn)`
440
+ width: 12px;
441
+ height: 12px;
442
+ `,Sn=l(dn)`
443
+ width: 12px;
444
+ height: 12px;
445
+ `,ml=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",a=n===r?o:"ascending";return t.jsxs(xl,{active:n===r,"data-testid":b("duration-row-vendor-title",e),children:[r==="vendor"?M.getLocalizedStrings().reports.aging.apAging.vendor:M.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(bn,{selectedForSort:n===r,children:t.jsx(xi,{"data-testid":b("duration-row-vendor-sort-icon",e),onClick:()=>{i?.(jn(o),r)},children:a==="ascending"?t.jsx(Sn,{}):t.jsx(kn,{})})}),t.jsx(ft,{controller:n===r,children:t.jsx(mi,{"data-testid":b("duration-row-vendor-sort-cancel-icon",e),onClick:()=>wi({onSortOrderChanged:i})})})]})},wi=({onSortOrderChanged:e})=>{e?.("descending","total")},wl=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending";return t.jsx(fi,{"data-testid":b("duration-row-tick-container",e),children:t.jsx(pi,{"data-testid":b("duration-row-tick-element-container",e),children:t.jsxs(gi,{active:n===e,"data-testid":b("duration-row-timeframe-tick",e),children:[M.getLocalizedStrings().reports.aging.duration[e],t.jsxs(bn,{selectedForSort:n===e,"data-testid":b("duration-row-sort-container",e),children:[t.jsx(xi,{"data-testid":b("duration-row-sort-icon",e),onClick:()=>{i?.(jn(o),e)},children:r==="ascending"?t.jsx(Sn,{}):t.jsx(kn,{})}),t.jsx(ft,{controller:n===e,children:t.jsx(mi,{"data-testid":b("duration-row-sort-cancel-icon",e),onClick:()=>wi({onSortOrderChanged:i})})})]})]})})})},yi=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending";return t.jsx(fi,{"data-testid":b("duration-row-entity-total-tick-container",e),onClick:()=>{i?.(jn(o),"total")},children:t.jsx(pi,{"data-testid":b("duration-row-entity-total-tick-element-container",e),children:t.jsxs(gi,{active:n==="total","data-testid":b("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?M.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:M.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(bn,{selectedForSort:n==="total","data-testid":b("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Sn,{}):t.jsx(kn,{})})]})})})},yl=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(wl,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(yi,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function bl({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:a,backgroundColor:s,onSortOrderChanged:c}){const h=W();return t.jsxs(pl,{height:o,bgColor:s,"data-testid":b("duration-row-root-container",e),children:[t.jsx(fl,{"data-testid":b("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:s,children:t.jsx(ml,{reportId:e,sortKey:r,sortOrder:a,onSortOrderChanged:c})}),t.jsxs(gl,{children:[i.map(g=>t.jsx(yl,{reportId:e,agingPeriod:g,sortKey:r,sortOrder:a,onSortOrderChanged:c},g)),t.jsx(yi,{reportId:e,sortKey:r,sortOrder:a,onSortOrderChanged:c})]})]})}const jn=e=>e==="ascending"?"descending":"ascending",kl=[10,14,20,20,20],Sl=l.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
+ `,jl=l.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
+ `,vl=l.div`
461
+ display: flex;
462
+ flex: 1 0 auto;
463
+ flex-direction: row;
464
+ justify-content: flex-end;
465
+ `,bi=l.div`
466
+ display: flex;
467
+ flex-direction: row;
468
+ justify-content: flex-start;
469
+ `,ki=l(B)`
470
+ user-select: none;
471
+ min-width: ${q.balanceWidth};
472
+ max-width: ${q.balanceWidth};
473
+ text-align: right;
474
+ margin-left: ${q.balanceLeftMargin};
475
+ color: ${e=>e.theme.colors.primary};
476
+ cursor: ${e=>e.isClickable?"pointer":"default"};
477
+ `,Cl=l.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=>q.titleWidth.valuePx(e.windowSize)};
485
+ max-width: ${e=>q.titleWidth.valuePx(e.windowSize)};
486
+ background-color: ${e=>e.bgColor?.hex()};
487
+ ${({isSticky:e})=>e?D`
488
+ position: sticky;
489
+ top: ${d.sp0};
490
+ left: ${d.sp0};
491
+ `:null}
492
+ `,_l=l(B)`
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=>kl[e.depth]}px;
501
+ color: ${e=>e.theme.colors.primary};
502
+ width: ${e=>q.titleWidth.value(e.windowSize)-e.depth*_[11]}px;
503
+ `,$l=({balance:e})=>t.jsx(bi,{children:t.jsx(ki,{isClickable:!1,onClick:()=>null,children:X("0,0",e?.totalBalance)})}),Ll=({total:e})=>t.jsx(bi,{children:t.jsx(ki,{isClickable:!1,onClick:()=>null,children:X("0,0",e)})});function Bl({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:a,nestedCustomer:s,metadata:c}){const h=W(),{common:{strings:{empty:g}},reports:{sections:p}}=M.getLocalizedStrings(),u=s!=null?s.id.length-1:0,f=c,x=s?.customer.name??g;return t.jsxs(Sl,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(jl,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Cl,{isSticky:n,windowSize:h,bgColor:e,containerHeight:o,children:[t.jsx(ni,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:u,name:x}),t.jsx(_l,{isClickable:!1,title:x,depth:u,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(vl,{children:[s?.arAgingBalances.map((w,m)=>t.jsx($l,{balance:w},m)),t.jsx(Ll,{total:a})]})]}),t.jsx(Al,{isScrolling:r,nestingLevel:u,isSticky:n,noMarginForEntity:i})]})}function Al({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Kt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const se=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":case"name_only":return!1}},Ge=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":case"name_only":return!1}},Ol=l.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
+ `,Il=l.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
+ `,Ml=l.div`
520
+ display: flex;
521
+ flex: 1 0 auto;
522
+ flex-direction: row;
523
+ justify-content: flex-end;
524
+ `,Si=l.div`
525
+ display: flex;
526
+ flex-direction: row;
527
+ justify-content: flex-start;
528
+ `,ji=l(re)`
529
+ user-select: none;
530
+ min-width: ${q.balanceWidth};
531
+ max-width: ${q.balanceWidth};
532
+ text-align: right;
533
+ margin-left: ${q.balanceLeftMargin};
534
+ color: ${e=>e.theme.colors.primary};
535
+ border: 1px solid transparent;
536
+ `,Nl=l.div`
537
+ display: flex;
538
+ flex-direction: row;
539
+ flex-shrink: 2;
540
+ flex-grow: 1;
541
+ align-items: center;
542
+ width: ${e=>q.titleWidth.valuePx(e.windowSize)};
543
+ max-width: ${e=>q.titleWidth.valuePx(e.windowSize)};
544
+ background-color: ${e=>e.bgColor?.hex()};
545
+ ${({isSticky:e,isIndented:n})=>e&&n?D`
546
+ position: -webkit-sticky;
547
+ position: sticky;
548
+ top: ${d.sp0};
549
+ left: ${d.sp4};
550
+ `:e&&!n?D`
551
+ position: -webkit-sticky;
552
+ position: sticky;
553
+ top: ${d.sp0};
554
+ left: ${d.sp0};
555
+ `:null}
556
+ `,Wl=l(re)`
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
+ `,Pl=({type:e,balance:n})=>t.jsx(Si,{children:se(e)===!0?t.jsx(ji,{children:X("0,0",n?.balance)}):null}),zl=({type:e,balance:n})=>t.jsx(Si,{children:se(e)===!0?t.jsx(ji,{children:X("0,0",n)}):null});function Fl({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:a,backgroundColor:s}){const c=W(),h={amount:a.reduce((g,p)=>g+(p?.balance.amount??0),0),currencyCode:a[0]?.balance.currencyCode??Un.currencyCode,currencySymbol:a[0]?.balance.currencySymbol??Un.currencySymbol};return t.jsx(Ol,{"data-testid":b("total-row-root-container"),height:i,bgColor:s,windowSize:c,children:t.jsxs(Il,{isClickable:!1,"data-testid":b("total-row-container"),children:[t.jsx(Nl,{bgColor:s,isSticky:n,windowSize:c,isIndented:o,children:t.jsx(Wl,{children:r})}),t.jsxs(Ml,{children:[a.map((g,p)=>t.jsx(Pl,{type:e,balance:g},p)),t.jsx(zl,{type:e,balance:h})]})]})})}var Xn,eo,to,no,oo,io,ro,ao;function Tl(){if(no)return to;no=1;var e=eo?Xn:(eo=1,Xn=function(o,i,r){return o==o&&(r!==void 0&&(o=o<=r?o:r),i!==void 0&&(o=o>=i?o:i)),o}),n=No();return to=function(o){return o?e(n(o),0,4294967295):0}}const vi=br(function(){if(ao)return ro;ao=1;var e=function(){if(io)return oo;io=1;var o=No(),i=Tl();return oo=function(r,a,s,c){var h=r.length;for((s=o(s))<0&&(s=-s>h?0:h+s),(c=c===void 0||c>h?h:o(c))<0&&(c+=h),c=s>c?0:i(c);s<c;)r[s++]=a;return r}}(),n=kr();return ro=function(o,i,r,a){var s=o==null?0:o.length;return s?(r&&typeof r!="number"&&n(o,i,r)&&(r=0,a=s),e(o,i,r,a)):[]}}());function wt(e,n,o,i){switch(e){case"cogs":return Vl(o,i,n);case"expenses":return Dl(o,i,n);case"income":return Rl(o,i,n);case"cash_position":return El(o,i,n);case"cash_in":return Gl(o,i,n);case"cash_out":return Hl(o,i,n);case"assets":return Kl(o,i,n);case"equity":return Yl(o,i,n);case"liabilities":return Ul(o,i,n);case"other_expense":return ql(o,i,n);case"other_income":return Zl(o,i,n);case"operating_activities":return Ql(o,i,n);case"investing_activities":return Jl(o,i,n);case"financing_activities":return Xl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const Vl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Dl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Rl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},El=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>K([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Gl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Hl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Kl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Yl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Ul=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},ql=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Zl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Ql=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Jl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i},Xl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>K(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>K(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ae(r,i.acGroupBalanceSelector,o,n),i};function K(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>Ci(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>_i(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>$i(n(i)?.balances??[]))}}function ae(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ci(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>_i(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>$i(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ci(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function _i(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 $i(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 oe(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let a=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(a=Li([],o)),{balances:a,thisPeriodIndex:s};let c=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,c=[...e.balances].reverse()),{balances:[...c,...i?e.additionalBalances:[]],thisPeriodIndex:s}}function lo(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,a=oe(e,n,o,i);if(e==null||e.balances.length===0)return a;const s=[...a.balances];if(e?.totalBalance!=null)s.push(e.totalBalance);else if(r&&e?.totalBalance==null){const c=Li([],1);s.push(...c)}return{balances:s,thisPeriodIndex:a.thisPeriodIndex}}function Pe(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 Li(e,n){return e.length>0?e:vi(Array(n),null)}const es=l.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
+ `,so=l.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
+ `,ts=l.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 ns({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(so,{marginLeft:_[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(so,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(es,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ts,{isScrolling:n})}}const ze={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,350,405)},os=l.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
+ `,is=l.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
+ `,rs=l.div`
597
+ display: flex;
598
+ flex: 1 0 auto;
599
+ flex-direction: row;
600
+ justify-content: flex-end;
601
+ `,as=l.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ justify-content: flex-start;
605
+ `,ls=l(B)`
606
+ user-select: none;
607
+ color: ${e=>e.theme.colors.hero};
608
+ min-width: ${ze.balanceWidth};
609
+ max-width: ${ze.balanceWidth};
610
+ text-align: right;
611
+ margin-left: ${ze.balanceLeftMargin};
612
+ `,ss=l.div`
613
+ display: flex;
614
+ flex-direction: row;
615
+ flex-shrink: 2;
616
+ flex-grow: 1;
617
+ align-items: center;
618
+ width: ${e=>ze.titleWidth.valuePx(e.windowSize)};
619
+ color: ${e=>e.theme.colors.hero};
620
+ max-width: ${e=>ze.titleWidth.valuePx(e.windowSize)};
621
+ background-color: ${e=>e.bgColor?.hex()};
622
+ ${({isSticky:e})=>e?D`
623
+ position: -webkit-sticky;
624
+ position: sticky;
625
+ top: ${d.sp0};
626
+ left: ${d.sp0};
627
+ `:null}
628
+ `,cs=l(B)`
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: ${d.sp6};
637
+ `,ds=({balance:e})=>t.jsx(as,{children:t.jsx(ls,{children:ee(e)})});function hs({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:a,isScrolling:s,isLastNode:c,onClick:h}){const g=W();return t.jsxs(os,{"data-testid":b("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:g,children:[t.jsxs(is,{"data-testid":b("calculated-section-type-1-container-row",i),onClick:()=>h?.(i),children:[t.jsx(ss,{"data-testid":b("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:g,children:t.jsx(cs,{children:e})}),t.jsx(rs,{children:a.map((p,u)=>t.jsx(ds,{balance:p},u))})]}),t.jsx(us,{isScrolling:s,isLastNode:c})]})}function us({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(ns,{isScrolling:e,kind:"heading_row_separator"}):null}const ps=l.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
+ `,gs=l.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
+ `,fs=l.div`
653
+ display: flex;
654
+ flex: 1 0 auto;
655
+ flex-direction: row;
656
+ justify-content: flex-end;
657
+ `,xs=l.div`
658
+ display: flex;
659
+ flex-direction: row;
660
+ justify-content: flex-start;
661
+ `,lt=l(Go)`
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
+ `,ms=l.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?D`
678
+ position: -webkit-sticky;
679
+ position: sticky;
680
+ top: ${d.sp0};
681
+ left: ${d.sp0};
682
+ `:null}
683
+ `,ws=l(Go)`
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
+ `,ys=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(xs,{"data-testid":b("heading-row-balance-element",e),children:[se(e)||o?t.jsx(lt,{"data-testid":b("heading-row-balance-actual",e),children:ee(n)}):t.jsx(lt,{"data-testid":b("heading-row-balance-forecast",e),children:te(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(lt,{"data-testid":b("heading-row-balance-forecast",e),children:te(n)}),t.jsx(lt,{"data-testid":b("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function bs({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:a,headingBalances:s,isActualVsForecastOn:c,compareMode:h,isLeaf:g,onClick:p}){const u=W();return t.jsx(ps,{height:r,bgColor:n,"data-testid":b("heading-row-root-container",i),children:t.jsxs(gs,{"data-testid":b("heading-row-container",i),isClickable:!g,onClick:()=>p?.(i),children:[me(e)===!0?t.jsx(ms,{"data-testid":b("heading-row-heading-container",i),isSticky:o,windowSize:u,bgColor:n,children:t.jsx(ws,{children:a})}):null,be(e)===!0?t.jsx(fs,{"data-testid":b("heading-row-balances-container",i),children:s.map((f,x)=>t.jsx(ys,{"data-testid":b("heading-row-balance-element",e),type:e,heading:a,balance:f,isActualVsForecastOn:c,compareMode:h},x))}):null]})})}const vn=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="title_string_only")return null;const f=oe(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(bs,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:x=>{u?.(x)}})};function Bi(e,n){return ks(n)}const ks=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>function(r,a,s){switch(s){case"off":default:return r;case"filter_actual_nil_balances":return r.filter(c=>function(h){let g=!1;if(h!=null){for(const p of h)if(p.balance.amount!==0){g=!0;break}}return g}(a(c)?.balances??[]))}}(i,o.acBalanceSelector,e),o},st=[new G(_[4],56),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],co=[new G(_[0],_[0]),new G(14,_[4]),new G(67,67),new G(102,102),new G(136,136)],Ss=l.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
+ `,ho=l.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
+ `,js=l.div`
704
+ display: flex;
705
+ flex: 1 1 auto;
706
+ flex-flow: row;
707
+ justify-content: flex-start;
708
+ align-items: center;
709
+ `,vs=l.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?D`
719
+ position: -webkit-sticky;
720
+ position: sticky;
721
+ top: ${d.sp0};
722
+ left: ${d.sp0};
723
+ `:null}
724
+ `,Cs=l.div`
725
+ width: ${e=>e.noMarginForAccount?st[e.nestingLevel].value(e.windowSize)-_[5]:st[e.nestingLevel].value(e.windowSize)}px;
726
+ max-width: ${e=>e.noMarginForAccount?st[e.nestingLevel].value(e.windowSize)-_[5]:st[e.nestingLevel].value(e.windowSize)}px;
727
+ height: 1px;
728
+ `,_s=l.div`
729
+ width: ${e=>co[e.classDepth].valuePx(e.windowSize)};
730
+ max-width: ${e=>co[e.classDepth].valuePx(e.windowSize)};
731
+ height: 1px;
732
+ `,$s=l.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
+ `,Ls=l.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
+ `,Bs=l.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
+ `,uo=e=>{const n=W(),o=ue();return t.jsxs(js,{children:[t.jsxs(vs,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(_s,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Cs,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx($s,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Ls,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function ke({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(ho,{marginLeft:_[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(uo,{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(ho,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Ss,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Bs,{isScrolling:n});case"total_row_separator":return t.jsx(uo,{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 a=W()!=="small";switch(o!=null?o.split("+")[1]:""){case"section-row":r=t.jsx(As,{columns:i,isSticky:a});break;case"root-class-row":r=t.jsx(Os,{columns:i,isSticky:a});break;case"sub-class-row":r=t.jsx(Is,{columns:i,isSticky:a});break;case"leaf-class-row":r=t.jsxs(t.Fragment,{children:[t.jsx(Ms,{columns:i,isSticky:a}),t.jsx(ke,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]})}return t.jsx(Ws,{height:e,bgColor:n,children:r})}const As=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(Ct,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ke,{width:_[4],height:_[4]}),t.jsx(Z,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(vt,{columns:e,rectangleWidth:j.loadingBalanceWidthInPx})]}),Os=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsxs(Ct,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Ke,{width:_[4],height:_[4]}),t.jsx(Z,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(vt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Is=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(Ct,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Be,{style:{marginLeft:"36px"},children:[t.jsx(Ke,{width:_[4],height:_[4]}),t.jsx(Z,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx,style:{marginLeft:_[4]}})]})}),t.jsx(vt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Ms=({columns:e,isSticky:n})=>t.jsxs(Be,{children:[t.jsx(Ct,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Be,{style:{marginLeft:"84px"},children:t.jsx(Z,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})})}),t.jsx(vt,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Ns=({rectangleWidth:e})=>t.jsx(Oi,{width:j.balanceWidthInPx,children:t.jsx(Z,{width:e,height:j.balanceHeightInPx})}),vt=({columns:e,rectangleWidth:n})=>t.jsx(Ps,{style:{zIndex:9,width:j.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(Ns,{rectangleWidth:n},i))}),Ws=l.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=l.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
+ `,Ps=l.div`
766
+ display: flex;
767
+ flex: 1 0 auto;
768
+ flex-direction: row;
769
+ justify-content: flex-end;
770
+ `,Oi=l.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
+ `,Ct=l(Oi)`
779
+ position: ${e=>e.isSticky===!0?"sticky":"static"};
780
+ left: ${d.sp0};
781
+ z-index: 10;
782
+ background-color: ${e=>e.theme.colors.grey4};
783
+ justify-content: flex-start;
784
+ `;function Ii({height:e,numOfBalances:n,backgroundColor:o}){const i=W();return t.jsx(zs,{height:e,bgColor:o,children:t.jsxs(Fs,{windowSize:i,children:[t.jsx(Ts,{windowSize:i,width:`${j.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(Vs,{children:Array.from({length:n},(r,a)=>t.jsx(Mi,{windowSize:i,width:j.balanceWidth,children:t.jsx(Z,{width:j.balanceWidthInPx,height:_[6]})},`timeframe-balance-${a}`))})]})})}const zs=l.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
+ `,Fs=l.div`
794
+ display: flex;
795
+ flex-direction: row;
796
+ width: 100%;
797
+ `,Mi=l.div`
798
+ display: flex;
799
+ flex-direction: row;
800
+ align-items: center;
801
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:d.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
+ `,Ts=l(Mi)`
811
+ position: sticky;
812
+ left: ${d.sp0};
813
+ z-index: 10;
814
+ background-color: ${e=>e.theme.colors.grey4};
815
+ `,Vs=l.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
+ `,Ds=l.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
+ `,Rs=l.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 Cn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(Ds,{"data-testid":b("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Rs,{"data-testid":b("section-row-separator",e),isScrolling:n})}}const H={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,350,405)},Es=l.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
+ `,Gs=l.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
+ `,Hs=l.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
+ `,Ks=l.div`
856
+ display: flex;
857
+ flex-direction: row;
858
+ justify-content: flex-start;
859
+ `,Yt=l(B)`
860
+ user-select: none;
861
+ min-width: ${H.balanceWidth};
862
+ max-width: ${H.balanceWidth};
863
+ text-align: right;
864
+ margin-left: ${H.balanceLeftMargin};
865
+ `,Ys=l(Yt)`
866
+ color: ${e=>e.theme.colors.hero};
867
+ &:hover {
868
+ color: inherit;
869
+ }
870
+ `,Us=l.div`
871
+ display: flex;
872
+ flex-direction: row;
873
+ flex-shrink: 2;
874
+ flex-grow: 1;
875
+ align-items: center;
876
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
877
+ max-width: ${e=>H.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?D`
881
+ position: -webkit-sticky;
882
+ position: sticky;
883
+ top: ${d.sp0};
884
+ left: ${d.sp0};
885
+ `:null}
886
+ `,qs=l(B)`
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: ${d.sp2};
895
+ `,Zs=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Ys:Yt;return t.jsxs(Ks,{"data-testid":b("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":b("account-group-row-balance-actual",e),children:ee(n)}),Ge(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":b("account-group-row-balance-forecast",e),children:te(n)}),t.jsx(Yt,{"data-testid":b("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Qs({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:a,accountGroupBalances:s,compareMode:c,isScrolling:h,isOpen:g,isLeaf:p,isLastNode:u,onClick:f}){const x=W(),w=!p,m=w?"pointer":"default",k=a.length>0?a.substr(0,1).toUpperCase():"",y=Xs(s),v=ue().colors.primary,[S,$]=N.useState(!1);return t.jsxs(Es,{"data-testid":b("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(Gs,{"data-testid":b("account-group-row-container",e),style:{cursor:m},isClickable:w,onClick:()=>f?.(i),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(Us,{"data-testid":b("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:x,hasNonZeroBalance:y,children:[t.jsx(ve,{"data-testid":b("account-group-row-circle-with-letter",e),color:I(v),showCollapsedIcon:!g,showIcon:w&&S,firstLetter:k}),t.jsx(qs,{"data-testid":b("account-group-row-name",e),children:a})]}),t.jsx(Hs,{"data-testid":b("account-group-row-balances-container",e),hasNonZeroBalance:y,children:s.map((C,L)=>t.jsx(Zs,{"data-testid":b("account-group-row-balance-element",e),type:e,accountGroupName:a,balance:C,compareMode:c,collapsed:!1},L))})]}),t.jsx(Js,{isScrolling:h,isLeaf:p,isLastNode:u,isOpen:g})]})}function Js({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return!n&&i&&o?null:t.jsx(Cn,{isScrolling:e,kind:"ac_group_row_separator"})}const Xs=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n},ec=l.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
+ `,tc=l.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
+ `,nc=l.div`
914
+ display: flex;
915
+ flex: 1 0 auto;
916
+ flex-direction: row;
917
+ justify-content: flex-end;
918
+ `,oc=l.div`
919
+ display: flex;
920
+ flex-direction: row;
921
+ justify-content: flex-start;
922
+ `,Tt=l(B)`
923
+ user-select: none;
924
+ min-width: ${H.balanceWidth};
925
+ max-width: ${H.balanceWidth};
926
+ text-align: right;
927
+ margin-left: ${H.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
+ `,ic=l.div`
934
+ display: flex;
935
+ flex-direction: row;
936
+ flex-shrink: 2;
937
+ flex-grow: 1;
938
+ align-items: center;
939
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
940
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
941
+ background-color: ${e=>e.bgColor?.hex()};
942
+ ${({isSticky:e})=>e?D`
943
+ position: -webkit-sticky;
944
+ position: sticky;
945
+ top: ${d.sp0};
946
+ left: ${d.sp0};
947
+ `:null}
948
+ `,rc=l(B)`
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
+ `,ac=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const a=o!=null&&n!=null&&i!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(oc,{children:[t.jsx(Tt,{isClickable:a,onClick:()=>{a===!0&&o!=null&&n!=null&&i?.(o,n)},children:ee(n)}),Ge(e)?t.jsxs(t.Fragment,{children:[t.jsx(Tt,{isClickable:!1,children:te(n)}),t.jsx(Tt,{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:a,isCompareModeOn:s,isForecastModeOn:c,isScrolling:h,isLeaf:g,isLastNode:p,compareMode:u,account:f,onAccountBalanceClick:x}){const w=W(),{common:{strings:{empty:m}}}=M.getLocalizedStrings(),k=f?.accountDescription?f.accountDescription:m,y=f?.accountName?f.accountName:k,v=Wo(),S=v.loggedInUserRole!=null&&!Ko(v.loggedInUserRole),$=S===!0&&f!=null&&s!==!0&&x!=null&&c!==!0,C=$?"pointer":"default";return t.jsxs(ec,{height:r,bgColor:n,windowSize:w,children:[t.jsxs(tc,{style:{cursor:C},isClickable:$,onClick:()=>{return f!=null?(L=i,O=f,void($===!0&&a[a.length-1]!=null&&x?.(L,O,a[a.length-1]))):null;var L,O},children:[t.jsx(ic,{isSticky:o,windowSize:w,bgColor:n,children:t.jsx(rc,{title:y,children:y})}),t.jsx(nc,{children:a.map((L,O)=>t.jsx(ac,{type:e,balance:L,account:f,onAccountBalanceClick:S===!1||x==null?void 0:(P,T)=>{x(i,P,T)},compareMode:u},O))})]}),t.jsx(sc,{isScrolling:h,isLeaf:g,isLastNode:p})]})}function sc({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(Cn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const cc=l.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
+ `,dc=l.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
+ `,hc=l.div`
974
+ display: flex;
975
+ flex: 1 0 auto;
976
+ flex-direction: row;
977
+ justify-content: flex-end;
978
+ `,po=l.div`
979
+ display: flex;
980
+ flex-direction: row;
981
+ justify-content: flex-start;
982
+ `,Oe=l(B)`
983
+ user-select: none;
984
+ max-width: ${H.balanceWidth};
985
+ min-width: ${H.balanceWidth};
986
+ text-align: right;
987
+ margin-left: ${H.balanceLeftMargin};
988
+ `,go=l(B)`
989
+ user-select: none;
990
+ max-width: ${H.balanceWidth};
991
+ min-width: ${H.balanceWidth};
992
+ text-align: right;
993
+ margin-left: ${H.balanceLeftMargin};
994
+ `,uc=l.div`
995
+ display: flex;
996
+ flex-direction: column;
997
+ align-items: flex-end;
998
+ `,pc=l.div`
999
+ display: flex;
1000
+ flex-direction: row;
1001
+ flex-shrink: 2;
1002
+ flex-grow: 1;
1003
+ align-items: center;
1004
+ height: ${d.sp7};
1005
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
1006
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
1007
+ background-color: ${e=>e.bgColor?.hex()};
1008
+ ${({isSticky:e})=>e?D`
1009
+ position: -webkit-sticky;
1010
+ position: sticky;
1011
+ top: ${d.sp0};
1012
+ left: ${d.sp0};
1013
+ `:null}
1014
+ `,gc=l(B)`
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: ${d.sp2};
1024
+ `,fc=({type:e,balance:n,color:o,compareMode:i})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,a=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(uc,{children:[t.jsxs(po,{children:[t.jsx(Oe,{style:{color:o.toString()},children:ee(n)}),Ge(e)?t.jsxs(t.Fragment,{children:[t.jsx(Oe,{style:{color:o.toString()},children:te(n)}),t.jsx(Oe,{style:{color:o.toString()},children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]}),t.jsxs(po,{children:[r!==0?t.jsx(go,{style:{color:o.toString()},children:ye("0,0%",r)}):null,Ge(e)?t.jsxs(t.Fragment,{children:[a!==0?t.jsx(go,{style:{color:o.toString()},children:ye("0,0%",a)}):t.jsx(Oe,{}),t.jsx(Oe,{})]}):null]})]})};function _n({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:a,sectionBalances:s,sectionColor:c,isScrolling:h,isOpen:g,isLeaf:p,compareMode:u,onClick:f}){const x=W(),[w,m]=N.useState(!1),k=!p,y=k?"pointer":"default",v=a.length>0?a.substring(0,1).toUpperCase():"";return t.jsxs(cc,{"data-testid":b("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(dc,{"data-testid":b("section-row-container",i),style:{cursor:y},onClick:()=>f?.(i),onMouseOver:()=>m(!0),onMouseLeave:()=>m(!1),children:[t.jsxs(pc,{"data-testid":b("section-row-name-container",i),isSticky:o,windowSize:x,bgColor:n,children:[t.jsx(ve,{"data-testid":b("section-row-circle-with-letter",i),color:I(c),showCollapsedIcon:!g,showIcon:k&&w,firstLetter:v}),t.jsx(gc,{"data-testid":b("section-row-name",i),style:{color:c.toString()},children:a})]}),t.jsx(hc,{"data-testid":b("section-row-balances-container",i),children:s.map((S,$)=>t.jsx(fc,{"data-testid":b("section-row-balance-element",e),type:e,sectionName:a,balance:S,color:c,compareMode:u},$))})]}),t.jsx(xc,{isScrolling:h,isLeaf:p,isOpen:g})]})}function xc({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Cn,{isScrolling:e,kind:"section_row_separator"}):null}const mc=l.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
+ `,wc=l.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
+ `,yc=l.div`
1040
+ display: flex;
1041
+ flex: 1 0 auto;
1042
+ flex-direction: row;
1043
+ justify-content: flex-end;
1044
+ `,bc=l.div`
1045
+ display: flex;
1046
+ flex-direction: row;
1047
+ justify-content: flex-start;
1048
+ `,Ni=l(B)`
1049
+ user-select: none;
1050
+ min-width: ${H.balanceWidth};
1051
+ max-width: ${H.balanceWidth};
1052
+ text-align: right;
1053
+ margin-left: ${H.balanceLeftMargin};
1054
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1055
+ `,kc=l(Ni)`
1056
+ color: ${e=>e.theme.colors.hero};
1057
+ &:hover {
1058
+ color: inherit;
1059
+ }
1060
+ `,Sc=l.div`
1061
+ display: flex;
1062
+ flex-direction: row;
1063
+ flex-shrink: 2;
1064
+ flex-grow: 1;
1065
+ align-items: center;
1066
+ width: ${e=>H.titleWidth.valuePx(e.windowSize)};
1067
+ max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
1068
+ background-color: ${e=>e.bgColor?.hex()};
1069
+ ${({isSticky:e})=>e?D`
1070
+ position: -webkit-sticky;
1071
+ position: sticky;
1072
+ top: ${d.sp0};
1073
+ left: ${d.sp0};
1074
+ `:null}
1075
+ `,jc=l(B)`
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
+ `,Vt=l(B)`
1085
+ user-select: none;
1086
+ min-width: ${H.balanceWidth};
1087
+ max-width: ${H.balanceWidth};
1088
+ text-align: right;
1089
+ margin-left: ${H.balanceLeftMargin};
1090
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1091
+ `,vc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?kc:Ni;return t.jsxs(bc,{children:[se(e)===!0?t.jsx(r,{children:ee(n)}):null,Ge(e)?t.jsxs(t.Fragment,{children:[t.jsx(Vt,{children:ee(n)}),t.jsx(Vt,{children:te(n)}),t.jsx(Vt,{children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function Cc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:a,totalBalances:s,isLeaf:c,compareMode:h,onClick:g}){const p=W(),u=!c,f=u?"pointer":"default";return t.jsx(mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(wc,{style:{cursor:f},isClickable:u,onClick:()=>g?.(i),children:[t.jsx(Sc,{bgColor:n,isSticky:o,windowSize:p,children:t.jsx(jc,{children:a})}),t.jsx(yc,{children:s.map((x,w)=>t.jsx(vc,{type:e,balance:x,collapsed:!1,compareMode:h},w))})]})})}const $e={net_burn_or_income:{income:{color:new I(E.graphColor04),hoverColor:new I(E.graphColor04Dark)},cogs:{color:new I(E.graphColor10),hoverColor:new I(E.graphColor10Dark)},expenses:{color:new I(E.graphColor32),hoverColor:new I(E.graphColor32Dark)},"Gross Burn":{color:new I(ne.neutralGrey2Dark),hoverColor:new I(ne.neutralGrey2Dark)},"Net Burn":{color:new I(E.graphColor13),hoverColor:new I(E.graphColor13Dark)},"Net Income":{color:new I(E.graphColor13),hoverColor:new I(E.graphColor13Dark)}},revenue:{income:{color:new I(E.graphColor28),hoverColor:new I(E.graphColor28Dark)},cogs:{color:new I(E.graphColor17),hoverColor:new I(E.graphColor17Dark)},"Gross Margin":{color:new I(E.graphColor10),hoverColor:new I(E.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new I(E.graphColor33),hoverColor:new I(E.graphColor33Dark)},cash_out:{color:new I(E.graphColor02),hoverColor:new I(E.graphColor02Dark)},"Net Cash Flow":{color:new I(E.graphColor35),hoverColor:new I(E.graphColor35Dark)}},default:{color:new I(ne.neutralGrey2Dark),hoverColor:new I(ne.neutralGrey2Dark)}},$n=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?$e.net_burn_or_income[n]:$e.default:e.startsWith("revenue")===!0?n!=null?$e.revenue[n]:$e.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?$e.cash_in_cash_out[n]:$e.default,Wi=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="section"||o.element.data==null)return null;const f=$n(o.config.reportId,o.element.sectionType),x=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(_n,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,sectionColor:f.color,sectionName:o.element.title,sectionBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,compareMode:p,onClick:w=>{u?.(w)}})},Pi=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const f=$n(o.config.reportId,o.element.title),x=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(_n,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f.color,sectionBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,compareMode:p,onClick:w=>{u?.(w)}})},zi=(e,n,o,i,r,a,s,c)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const h=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Cc,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,title:o.element.title,height:i,isLeaf:c,compareMode:s,totalBalances:h.balances})},Kg=20,_c=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},$c=l.div`
1092
+ display: flex;
1093
+ flex: 1 1 auto;
1094
+ height: 1px;
1095
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
1096
+ `,Lc=l.div`
1097
+ display: flex;
1098
+ height: 1px;
1099
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
+ `;function Ut({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx($c,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(Lc,{isScrolling:n});case"heading_row_separator":return null}}const Bc=l.div`
1101
+ position: relative;
1102
+ `,Ac=l.div`
1103
+ height: ${e=>e.height}px;
1104
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1105
+ width: 1px;
1106
+ `;l.div`
1107
+ height: 39px;
1108
+ width: 2px;
1109
+ `;const Oc=l.div`
1110
+ position: relative;
1111
+ margin-right: ${d.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
+ `,Ic=l.div`
1120
+ height: ${d.sp6};
1121
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1122
+ width: 1px;
1123
+ `,Mc=l.div`
1124
+ position: relative;
1125
+ margin-right: ${d.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
+ `,Nc=l.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
+ `,Fi=({height:e})=>t.jsx(Bc,{children:t.jsx(Ac,{height:e})}),Wc=({height:e})=>t.jsx(Mc,{height:e,children:t.jsx(Nc,{height:e})}),Pc=()=>t.jsx(Oc,{children:t.jsx(Ic,{})}),zc=d.sp4,Ti="126px",xe="128px",_t="12px",$t="12px",yt="685px",Ln="628px",fo="685px",Fc="182px",bt="184px",Se="144px",kt="12px",xo="685px",Vi="250px",St="250px",Tc=39,Vc=19.5,Dc=16,Fe=128,mo=168,Te="180px",wo="300px",Di="210px",Rc="128px";function Ri(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 _[8];case"flux_vendor_account_class_row":return n?_[9]:_[6];default:return 0}}const yo=M.getLocalizedStrings(),Ec=l.div`
1139
+ display: flex;
1140
+ flex-shrink: 0;
1141
+ width: ${bt};
1142
+ min-width: ${bt};
1143
+ margin-left: 12px;
1144
+ gap: ${d.sp1};
1145
+ flex-direction: row;
1146
+ justify-content: flex-end;
1147
+ text-align: center;
1148
+ `,Gc=l.div`
1149
+ height: ${d.sp4};
1150
+ border-radius: ${d.sp1};
1151
+ padding: 2px ${d.sp1};
1152
+ color: ${e=>e.textColor.hex()};
1153
+ `,Hc=l.div`
1154
+ border-radius: ${d.sp1};
1155
+ padding: 2px ${d.sp1};
1156
+ height: ${d.sp4};
1157
+ justify-content: center;
1158
+ text-align: center;
1159
+ color: ${e=>e.textColor.hex()};
1160
+ background-color: ${e=>e.bgColor.hex()};
1161
+ `,Lt=({amount:e,percentage:n,currency:o})=>{const i=ue();return t.jsxs(Ec,{children:[t.jsx(Gc,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),children:X("0,0",Gr(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(Hc,{textColor:new I(e>0?i.colors.brandColorGoldDark:i.colors.success),bgColor:new I(e>0?ne.brandColorGoldLight:ne.successLight),children:`${Lr(Math.abs(n)).format(yo.common.numberFormat.roundedOff)}${yo.common.strings.percentage}`})]})},bo=M.getLocalizedStrings(),Kc=l.div`
1162
+ display: flex;
1163
+ flex: 1 1 auto;
1164
+ width: fit-content;
1165
+ min-width: 100%;
1166
+ flex-direction: column;
1167
+ `,Yc=l.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
+ `,Ei=l.div`
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ `,Gi=l.div`
1182
+ display: flex;
1183
+ height: ${d.sp4};
1184
+ `,Uc=l.div`
1185
+ display: flex;
1186
+ flex-direction: row;
1187
+ justify-content: flex-start;
1188
+ `,qc=l(B)`
1189
+ min-width: ${xe};
1190
+ max-width: ${xe};
1191
+ text-align: right;
1192
+ margin-left: 12px;
1193
+ `,Zc=l.div`
1194
+ display: flex;
1195
+ flex-direction: column;
1196
+ flex-shrink: 2;
1197
+ flex-grow: 1;
1198
+ align-items: center;
1199
+ width: ${xo};
1200
+ max-width: ${xo};
1201
+ padding-left: 67.5px;
1202
+ ${({isSticky:e})=>e?D`
1203
+ position: sticky;
1204
+ top: ${d.sp0};
1205
+ left: ${d.sp0};
1206
+ display: flex;
1207
+ `:null}
1208
+ `,Qc=l.div`
1209
+ display: flex;
1210
+ height: ${d.sp4};
1211
+ width: 100%;
1212
+ `,Jc=l.div`
1213
+ display: flex;
1214
+ flex-direction: row;
1215
+ flex-shrink: 2;
1216
+ flex-grow: 1;
1217
+ align-items: center;
1218
+ width: 100%;
1219
+ `,Xc=l(je)`
1220
+ display: flex;
1221
+ width: ${Vi};
1222
+ margin-left: ${d.sp3};
1223
+ color: ${e=>e.theme.colors.hero};
1224
+ `,ed=l(je)`
1225
+ display: flex;
1226
+ width: ${Vi};
1227
+ margin-left: ${d.sp4};
1228
+ color: ${e=>e.theme.colors.hero};
1229
+ `,td=l(B)`
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: ${St};
1238
+ max-width: ${St};
1239
+ `,nd=l(B)`
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: ${d.sp4};
1247
+ margin-right: ${d.sp3};
1248
+ width: ${St};
1249
+ max-width: ${St};
1250
+ `,od=l.div`
1251
+ display: flex;
1252
+ margin-left: ${d.sp7};
1253
+ margin-right: calc(
1254
+ ${Se} +
1255
+ ${$t}
1256
+ );
1257
+ `,id=l.div`
1258
+ position: sticky;
1259
+ left: 0;
1260
+ background-color: ${e=>e.theme.colors.grey4};
1261
+ display: flex;
1262
+ `,rd=l.div`
1263
+ overflow-x: auto;
1264
+ display: flex;
1265
+ flex: 1;
1266
+ justify-content: flex-end;
1267
+ `,ad=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(Ei,{children:[e?t.jsx(Gi,{}):null,t.jsx(Uc,{children:t.jsx(qc,{isClickable:o,children:ee(n)})})]})};function ld({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:a,nodeMetadata:s,isLeaf:c,isLastNode:h,accountAndClass:g,isHoveredByParent:p}){const{common:{strings:{hyphen:u}}}=M.getLocalizedStrings(),f=g.accountBase?.accountDescription?g.accountBase?.accountDescription:u,x=g.accountBase?.accountName?g.accountBase?.accountName:f,w=g.classBase?.className?g.classBase?.className:u,m=s?.accountAndClassRowMetadata.isLastNode;return t.jsxs(Kc,{children:[t.jsxs(Yc,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(id,{children:t.jsxs(Zc,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(Qc,{children:[t.jsx(Fi,{height:Tc}),t.jsx(Xc,{children:bo.common.texts.category}),t.jsx(ed,{children:bo.common.texts.class})]}),t.jsxs(Jc,{children:[m===!0?t.jsx(Wc,{height:Vc}):t.jsx(Pc,{}),t.jsx(td,{title:x,children:x}),t.jsx(nd,{title:w,children:w})]})]})}),t.jsx(rd,{children:t.jsxs(od,{children:[r.map((k,y)=>t.jsx(ad,{balance:k,isBalanceRowFirstNode:s?.accountAndClassRowMetadata.isFirstNode},y)),t.jsxs(Ei,{children:[!!s?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Gi,{}),t.jsx(Lt,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(sd,{isScrolling:a,isLeaf:c,isLastNode:h,isParentLastChild:s?.isVendorLastChild??!0})]})}function sd({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Ut,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Ut,{isScrolling:e,kind:"account_class_row_separator"}):null}function cd(){return t.jsxs(dd,{children:[t.jsxs(ud,{children:[t.jsxs(Le,{width:wo,className:"vendor-title",children:[t.jsx(Ke,{width:_[4],height:_[4]}),t.jsx(Z,{width:mo,height:_[4],style:{display:"flex",alignItems:"baseline",marginLeft:d.sp2}})]}),t.jsx(Le,{width:wo,children:t.jsx(Z,{width:mo,height:_[4],style:{display:"flex",alignItems:"baseline",marginLeft:d.sp2}})})]}),t.jsxs(hd,{children:[t.jsx(Le,{width:Te,children:t.jsx(Z,{width:Fe,height:_[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Le,{width:Te,children:t.jsx(Z,{width:Fe,height:_[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Le,{width:Di,children:[t.jsx(Z,{width:Fe,height:_[4],style:{display:"flex",alignItems:"center"}}),t.jsx(Z,{width:_[7],height:_[4],style:{display:"flex",alignItems:"flex-start",marginLeft:d.sp1}})]}),t.jsx(Le,{width:Te,children:t.jsx(Z,{width:70,height:_[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const dd=l.div`
1268
+ display: flex;
1269
+ flex-direction: row;
1270
+ width: 100%;
1271
+ margin-left: ${d.sp8};
1272
+ .vendor-title {
1273
+ justify-content: flex-start;
1274
+ }
1275
+ `,Le=l.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
+ `,hd=l.div`
1288
+ display: flex;
1289
+ `,ud=l.div`
1290
+ display: flex;
1291
+ width: ${Ln};
1292
+ position: sticky;
1293
+ left: ${d.sp8};
1294
+ top: 0;
1295
+ z-index: 10;
1296
+ `,pd=un(t.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),gd=un(t.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),fd=un(t.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function xd(e){return Vo("MuiCheckbox",e)}const Dt=Ro("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),md=ln(Jr,{shouldForwardProp:e=>Do(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,o.indeterminate&&n.indeterminate,n[`size${Ve(o.size)}`],o.color!=="default"&&n[`color${Ve(o.color)}`]]}})(Or(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(En()).map(([n])=>({props:{color:n,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(En()).map(([n])=>({props:{color:n},style:{[`&.${Dt.checked}, &.${Dt.indeterminate}`]:{color:(e.vars||e).palette[n].main},[`&.${Dt.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),wd=t.jsx(gd,{}),yd=t.jsx(pd,{}),bd=t.jsx(fd,{}),Bn=N.forwardRef(function(e,n){const o=jr({props:e,name:"MuiCheckbox"}),{checkedIcon:i=wd,color:r="primary",icon:a=yd,indeterminate:s=!1,indeterminateIcon:c=bd,inputProps:h,size:g="medium",disableRipple:p=!1,className:u,slots:f={},slotProps:x={},...w}=o,m=s?c:a,k=s?c:i,y={...o,disableRipple:p,color:r,indeterminate:s,size:g},v=(L=>{const{classes:O,indeterminate:P,color:T,size:R}=L,V={root:["root",P&&"indeterminate",`color${Ve(T)}`,`size${Ve(R)}`]},Y=Po(V,xd,O);return{...O,...Y}})(y),S=x.input??h,[$,C]=Gt("root",{ref:n,elementType:md,className:Cr(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:x,...w},ownerState:y,additionalProps:{type:"checkbox",icon:N.cloneElement(m,{fontSize:m.props.fontSize??g}),checkedIcon:N.cloneElement(k,{fontSize:k.props.fontSize??g}),disableRipple:p,slots:f,slotProps:{input:vr(typeof S=="function"?S(y):S,{"data-indeterminate":s})}}});return t.jsx($,{...C,classes:v})}),kd=l.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
+ `,Sd=l.div`
1305
+ display: flex;
1306
+ flex: 1 1 auto;
1307
+ flex-flow: row;
1308
+ justify-content: flex-start;
1309
+ align-items: center;
1310
+ `,jd=l.div`
1311
+ display: flex;
1312
+ flex-direction: row;
1313
+ justify-content: flex-start;
1314
+ `,vd=l(B)`
1315
+ max-width: ${xe};
1316
+ min-width: ${xe};
1317
+ text-align: right;
1318
+ margin-left: ${_t};
1319
+ color: ${({color:e})=>e};
1320
+ `,Cd=l.div`
1321
+ display: flex;
1322
+ flex-direction: row;
1323
+ flex-shrink: 2;
1324
+ align-items: center;
1325
+ height: 100%;
1326
+ width: ${fo};
1327
+ min-width: ${fo};
1328
+ background-color: ${e=>e.bgColor?.hex()};
1329
+ ${({isSticky:e})=>e&&D`
1330
+ position: sticky;
1331
+ top: ${d.sp0};
1332
+ left: ${d.sp0};
1333
+ `}
1334
+ `,_d=l(B)`
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: ${d.sp2};
1342
+ color: ${({color:e})=>e};
1343
+ `,$d=l(sn)`
1344
+ color: ${e=>e.theme.colors.primary};
1345
+ width: ${d.sp3};
1346
+ height: ${d.sp3};
1347
+ `,Ld=l.div`
1348
+ display: flex;
1349
+ &:hover {
1350
+ .flux-section-checkbox {
1351
+ background-color: transparent;
1352
+ }
1353
+ }
1354
+ `,Bd=l.div`
1355
+ display: flex;
1356
+ width: ${d.sp8};
1357
+ `,Ad=l.div`
1358
+ display: flex;
1359
+ margin-left: ${d.sp7};
1360
+ flex: 1 1 auto;
1361
+ justify-content: flex-end;
1362
+ margin-right: calc(
1363
+ ${Se} +
1364
+ ${$t}
1365
+ );
1366
+ `,Od=({balance:e,color:n})=>t.jsx(jd,{children:t.jsx(vd,{color:n,children:ee(e)})}),Id=pn.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:a,height:s,sectionName:c,hasVendors:h,sectionBalances:g,varianceAmount:p,variancePercentage:u,sectionColor:f,isScrolling:x,isOpen:w,isLeaf:m,idsForReview:k,sectionToggled:y,onSectionCheckboxClick:v}){const S=W(),[$,C]=N.useState(k.length>0),[L,O]=N.useState(!1),P=o.includes(n),T=!m,R=k.length===20&&!P,V=c?.[0]?.toUpperCase()??"",Y=N.useCallback(U=>{v?.(n,U.target.checked)},[n,v]);return t.jsxs(kd,{heightValue:s,bgColor:i,children:[t.jsxs(Sd,{style:{cursor:T?"pointer":"default"},onClick:()=>y?.(a),onMouseOver:()=>{O(!0),C(!0)},onMouseLeave:()=>{O(!1),k.length===0&&C(!1)},children:[t.jsxs(Cd,{className:"flux-section-name-container",isSticky:r,windowSize:S,bgColor:i,children:[h&&$&&w?t.jsx(Ld,{children:t.jsx(Bn,{"aria-label":`Toggle section ${c}`,className:"flux-section-checkbox",icon:t.jsx(nn,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx($d,{}),checked:P,id:a,disabled:R,onChange:Y,onClick:U=>U.stopPropagation(),style:{padding:"20px",pointerEvents:R?"none":"auto"}})}):t.jsx(Bd,{}),t.jsx(ve,{color:I(f),showCollapsedIcon:!w,showIcon:L&&T,firstLetter:V}),t.jsx(_d,{color:f.toString(),children:c})]}),t.jsxs(Ad,{children:[g.map((U,Q)=>t.jsx(Od,{sectionName:c,balance:U,color:f.toString()},Q)),t.jsx(Lt,{amount:p,percentage:u,currency:e})]})]}),t.jsx(Md,{isScrolling:x,isLeaf:m,isOpen:w})]})});function Md({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Ut,{isScrolling:e,kind:"section_row_separator"}):null}function Nd(){const e=W();return t.jsxs(Wd,{windowSize:e,children:[t.jsx(Ie,{windowSize:e,width:Ln,marginRight:0,children:t.jsx(Z,{width:_[9],height:_[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(Ie,{windowSize:e,width:Te,marginRight:0,children:t.jsx(Z,{width:128,height:_[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ie,{windowSize:e,width:Te,marginRight:0,children:t.jsx(Z,{width:Fe,height:_[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ie,{windowSize:e,width:Di,children:t.jsx(Z,{width:184,height:_[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(Ie,{windowSize:e,width:Rc,children:t.jsx(Z,{width:Fe,height:_[6],style:{display:"flex",alignItems:"center"}})})]})}const Wd=l.div`
1367
+ display: flex;
1368
+ flex-direction: row;
1369
+ width: 100%;
1370
+ margin-left: ${d.sp8};
1371
+ `,Ie=l.div`
1372
+ display: flex;
1373
+ flex-direction: row;
1374
+ align-items: center;
1375
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:d.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:Pd,expenseAutomation:{fluxAnalysis:zd},vendors:{opExByVendor:Fd}}=M.getLocalizedStrings(),Td=l.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
+ `,qt=l.div`
1394
+ display: flex;
1395
+ max-height: ${d.sp8};
1396
+ min-height: ${d.sp8};
1397
+ min-width: ${e=>e.width!=null?e.width:Ti};
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: ${d.sp2};
1403
+ margin-left: ${_t};
1404
+ color: ${e=>e.theme.colors.primary};
1405
+ cursor: ${e=>e.isClickable?"pointer":"default"};
1406
+ `,Vd=l(B)`
1407
+ display: flex;
1408
+ flex-direction: row;
1409
+ justify-content: center;
1410
+ align-items: center;
1411
+ height: ${zc};
1412
+ max-width: ${Ti};
1413
+ width: 138px;
1414
+ text-align: center;
1415
+ `,Dd=l.div`
1416
+ display: flex;
1417
+ cursor: pointer;
1418
+ `,Rd=l.div`
1419
+ display: flex;
1420
+ cursor: pointer;
1421
+ justify-content: center;
1422
+ align-items: center;
1423
+ color: ${e=>e.theme.colors.primary};
1424
+ `,Ed=l.div`
1425
+ display: flex;
1426
+ flex-direction: row;
1427
+ z-index: 1;
1428
+ background-color: ${e=>e.theme.colors.grey4};
1429
+ padding-left: ${d.sp8};
1430
+ ${({isSticky:e})=>e?D`
1431
+ top: ${d.sp0};
1432
+ left: ${d.sp0};
1433
+ display: flex;
1434
+ position: sticky;
1435
+ `:null};
1436
+ `,Gd=l.div`
1437
+ height: ${d.sp8};
1438
+ display: flex;
1439
+ flex-direction: row;
1440
+ align-items: center;
1441
+ min-width: ${Ln};
1442
+ color: ${e=>e.theme.colors.primary};
1443
+ background-color: ${e=>e.theme.colors.grey4};
1444
+ `,Hd=l(B)`
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
+ `,Zt=l.div`
1450
+ display: flex;
1451
+ cursor: pointer;
1452
+ `,Qt=l.div`
1453
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
+ `,Jt=l(dn)`
1455
+ width: ${kt};
1456
+ height: ${kt};
1457
+ margin-left: ${d.sp2};
1458
+ margin-top: ${d.sp1};
1459
+ `,Xt=l(hn)`
1460
+ width: ${kt};
1461
+ height: ${kt};
1462
+ margin-left: ${d.sp2};
1463
+ margin-top: ${d.sp1};
1464
+ `,Kd=l.div`
1465
+ display: flex;
1466
+ margin-left: ${d.sp7};
1467
+ flex: 1 1 auto;
1468
+ justify-content: flex-end;
1469
+ `,Yd=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(qt,{isClickable:!1,children:t.jsx(Vd,{children:Ue(e,n,o)})}),Ud=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Yd,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),qd=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=e==="vendor"?n:"ascending";return t.jsx(Hd,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Zt,{onClick:()=>{i(n==="ascending"?"descending":"ascending","vendor")},"data-testid":b("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Fd.vendor,t.jsx(Qt,{isBulkSelected:o,isSortedByKey:e==="vendor",children:r==="ascending"?t.jsx(Jt,{}):t.jsx(Xt,{})})]})})};function Zd({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:a,timeframe:s,timeframeTicks:c,onSortOrderChanged:h}){const g=W();return t.jsxs(Td,{heightValue:n,bgColor:e,children:[t.jsx(Ed,{className:"flux-vendor-header-sticky",windowSize:g,isSticky:!0,children:t.jsx(Gd,{windowSize:g,children:t.jsx(qd,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:(p,u)=>{h?.(p,u)}})})}),t.jsxs(Kd,{children:[c.map((p,u)=>t.jsx(Ud,{firstMonthOfFY:a,timeframeTick:p,timeframe:s},u)),t.jsx(qt,{isClickable:!1,width:Fc,children:t.jsxs(Zt,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":b("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(Dd,{children:zd.variance}),t.jsx(Qt,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Jt,{}):t.jsx(Xt,{})})]})}),t.jsx(qt,{isClickable:!1,width:Se,children:t.jsxs(Zt,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":b("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Rd,{children:Pd.texts.reviewStatus}),t.jsx(Qt,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Jt,{}):t.jsx(Xt,{})})]})})]})]})}const Qd=l.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
+ `,Jd=l.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
+ `,Xd=l.div`
1487
+ display: flex;
1488
+ flex-direction: row;
1489
+ `,eh=l.div`
1490
+ display: flex;
1491
+ flex-direction: row;
1492
+ justify-content: flex-start;
1493
+ align-items: center;
1494
+ margin-left: ${_t};
1495
+ `,th=l(re)`
1496
+ user-select: none;
1497
+ min-width: ${xe};
1498
+ max-width: ${xe};
1499
+ text-align: right;
1500
+ color: ${e=>e.theme.colors.hero};
1501
+ border: 1px solid transparent;
1502
+ `,nh=l.div`
1503
+ display: flex;
1504
+ flex-direction: row;
1505
+ align-items: center;
1506
+ flex-shrink: 2;
1507
+ flex-grow: 1;
1508
+ width: ${yt};
1509
+ max-width: ${yt};
1510
+ height: 100%;
1511
+ background-color: ${e=>e.theme.colors.grey4};
1512
+ position: sticky;
1513
+ left: ${d.sp8};
1514
+ top: 0;
1515
+ z-index: 10;
1516
+ `,oh=l(re)`
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
+ `,ih=l.div`
1526
+ display: flex;
1527
+ width: ${Se};
1528
+ min-width: ${Se};
1529
+ justify-content: center;
1530
+ flex-direction: row;
1531
+ margin-left: ${$t};
1532
+ `,rh=l.div`
1533
+ display: flex;
1534
+ margin-left: ${d.sp7};
1535
+ flex: 1 1 auto;
1536
+ justify-content: flex-end;
1537
+ `,ah=({balance:e})=>t.jsx(eh,{children:t.jsx(th,{children:X("0,0",e?.balance)})});function lh({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:a,currency:s,backgroundColor:c}){return t.jsx(Qd,{"data-testid":b("total-row-root-container"),heightValue:n,bgColor:c,children:t.jsxs(Jd,{"data-testid":b("total-row-container"),children:[t.jsx(nh,{className:"flux-total-row",children:t.jsx(oh,{children:o})}),t.jsxs(rh,{children:[t.jsx(Xd,{children:se(e)&&i.map((h,g)=>t.jsx(ah,{balance:h},g))}),t.jsx(Lt,{amount:r,percentage:a,currency:s}),t.jsx(ih,{})]})]})})}const sh=l.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
+ `,ch=l.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
+ `,dh=l.div`
1569
+ display: flex;
1570
+ flex-direction: row;
1571
+ justify-content: flex-start;
1572
+ align-items: center;
1573
+ margin-left: ${_t};
1574
+ `,hh=l(B)`
1575
+ user-select: none;
1576
+ min-width: ${xe};
1577
+ max-width: ${xe};
1578
+ text-align: right;
1579
+ `,uh=l.div`
1580
+ display: flex;
1581
+ flex-direction: row;
1582
+ align-items: center;
1583
+ flex-shrink: 2;
1584
+ flex-grow: 1;
1585
+ width: ${yt};
1586
+ max-width: ${yt};
1587
+ background-color: ${e=>e.bgColor?.hex()};
1588
+ ${({isSticky:e})=>e?D`
1589
+ position: -webkit-sticky;
1590
+ position: sticky;
1591
+ top: ${d.sp0};
1592
+ left: ${d.sp0};
1593
+ `:null}
1594
+ `,ph=l(B)`
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
+ `,gh=l.div`
1603
+ display: flex;
1604
+ justify-content: space-between;
1605
+ flex-grow: 1;
1606
+ `,fh=l.div`
1607
+ display: flex;
1608
+ align-items: center;
1609
+ margin-left: 10px;
1610
+ `;l.div`
1611
+ display: flex;
1612
+ flex-shrink: 0;
1613
+ width: ${bt};
1614
+ min-width: ${bt};
1615
+ margin-left: 12px;
1616
+ gap: ${d.sp1};
1617
+ flex-direction: row;
1618
+ justify-content: flex-end;
1619
+ text-align: center;
1620
+ align-items: center;
1621
+ `;const xh=l(Wr)`
1622
+ width: 12px;
1623
+ height: 12px;
1624
+ `;l.div`
1625
+ height: ${d.sp4};
1626
+ border-radius: ${d.sp1};
1627
+ padding: 2px ${d.sp1};
1628
+ `,l.div`
1629
+ border-radius: ${d.sp1};
1630
+ padding: 2px ${d.sp1};
1631
+ height: ${d.sp4};
1632
+ justify-content: center;
1633
+ text-align: center;
1634
+ background-color: ${e=>e.bgColor.hex()};
1635
+ `;const mh=l.div`
1636
+ display: flex;
1637
+ margin-left: ${d.sp7};
1638
+ flex: 1 1 auto;
1639
+ justify-content: flex-end;
1640
+ `,wh=l.div`
1641
+ display: flex;
1642
+ flex-direction: column;
1643
+ align-items: center;
1644
+ padding-top: ${e=>e.isNodeOpen?d.sp3:d.sp0};
1645
+ `,yh=l.div`
1646
+ display: flex;
1647
+ width: ${Se};
1648
+ min-width: ${Se};
1649
+ justify-content: center;
1650
+ flex-direction: row;
1651
+ margin-left: ${$t};
1652
+ `,bh=l(je)`
1653
+ width: ${xe};
1654
+ max-width: ${xe};
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
+ `,kh=l.div`
1662
+ color: ${e=>e.theme.colors.grey1};
1663
+ border: 1px solid ${e=>e.theme.colors.grey1};
1664
+ padding: ${d.sp0} 6px;
1665
+ border-radius: ${d.sp1};
1666
+ width: fit-content;
1667
+ display: flex;
1668
+ align-items: center;
1669
+ margin-right: ${d.sp2};
1670
+ `,Sh=l(je)`
1671
+ overflow: hidden;
1672
+ text-overflow: ellipsis;
1673
+ `,jh=l.div`
1674
+ display: flex;
1675
+ width: ${d.sp8};
1676
+ height: ${d.sp8};
1677
+ &:hover {
1678
+ .flux-vendor-checkbox {
1679
+ background-color: transparent;
1680
+ }
1681
+ }
1682
+ `,vh=l(sn)`
1683
+ color: ${e=>e.theme.colors.primary};
1684
+ width: ${d.sp3};
1685
+ height: ${d.sp3};
1686
+ `,Ch=l(je)`
1687
+ display: flex;
1688
+ flex-direction: row;
1689
+ align-items: center;
1690
+ gap: 2px;
1691
+ color: ${e=>e.theme.colors.success};
1692
+ `,_h=l(Fo)`
1693
+ width: 12px;
1694
+ height: 12px;
1695
+ `,ko=l(zo)`
1696
+ margin-left: 2px;
1697
+ width: 12px;
1698
+ height: 12px;
1699
+ `,$h=l(Re)`
1700
+ display: flex;
1701
+ border-radius: 50%;
1702
+ width: ${d.sp4};
1703
+ height: ${d.sp4};
1704
+ text-align: center;
1705
+ align-items: center;
1706
+ justify-content: center;
1707
+ `,Lh=l(Re)`
1708
+ display: flex;
1709
+ border-radius: ${d.sp1};
1710
+ width: ${d.sp4};
1711
+ height: ${d.sp4};
1712
+ text-align: center;
1713
+ align-items: center;
1714
+ justify-content: center;
1715
+ margin-right: ${d.sp4};
1716
+ `,Bh=l(Re)`
1717
+ display: flex;
1718
+ border-radius: 100px;
1719
+ width: 18px;
1720
+ height: 18px;
1721
+ justify-content: center;
1722
+ align-items: center;
1723
+ margin-left: ${d.sp1};
1724
+ `,{common:So,expenseAutomation:Ah}=M.getLocalizedStrings(),Oh=({balance:e})=>{const n=hh;return t.jsx(dh,{children:t.jsx(n,{children:ee(e)})})};function Ih({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:a,leftChevron:s,varianceAmount:c,variancePercentage:h,currency:g,vendorBalances:p,reviewedByUser:u,status:f,vendor:x,isOpen:w,childrenCount:m,setHoveredParentId:k,onClick:y,handleRedirectToVendorDetailPage:v,updateOperatingExpensesIdsForReview:S}){const[$,C]=N.useState(!1),[L,O]=N.useState(n.length>0),P=n.includes(e),T=n.includes(e),R=s==="collapsed",V=n.length===20&&P===!1,Y=ph;return t.jsx(sh,{heightValue:a,bgColor:o,children:t.jsxs(ch,{shouldHighlight:T,isRowExpanded:w,onClick:()=>y?.(r),onMouseOver:()=>{C(!0),O(!0),k?.(x.id)},onMouseLeave:()=>{C(!1),n.length===0&&O(!1),k?.(null)},children:[t.jsxs(uh,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx(jh,{className:"flux-vendor-checkbox-container",children:L?t.jsx(Bn,{className:"flux-vendor-checkbox",icon:t.jsx(nn,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx(vh,{}),checked:P,name:x.name,id:e,disabled:V,onChange:U=>{let Q=n;Q=U.target.checked===!0?[...Q,e]:Q.filter(de=>de!==e),S?.(Q)},onClick:U=>U.stopPropagation(),style:{padding:"20px",pointerEvents:V?"none":"auto"}}):null}),t.jsxs(wh,{isNodeOpen:w,children:[$?t.jsx($h,{className:"flux-vendor-collapsable-chevron-icon",children:w===!1?t.jsx(ko,{}):t.jsx(_h,{})}):x.logo!=null?t.jsx(on,{photoUrl:x.logo.toString(),styles:{width:_[4],height:_[4]}}):t.jsx(rn,{name:x.name,size:d.sp4}),w?t.jsx(Fi,{height:Dc}):null]}),t.jsxs(gh,{children:[t.jsxs(fh,{children:[t.jsx(Y,{children:x.name}),w?null:t.jsx(Bh,{className:"flux-vendor-children-count",children:t.jsx(Re,{children:m})})]}),$?t.jsx(N.Fragment,{children:t.jsx(Lh,{className:"flux-vendor-chevron-icon",onClick:()=>{v?.(x)},"data-testid":b("flux-analysis-report-vendorElement-row"),children:t.jsx(ko,{})})}):null]})]}),t.jsxs(mh,{children:[p.map((U,Q)=>t.jsx(Oh,{balance:U,collapsed:R},Q)),t.jsx(Lt,{amount:c,percentage:h,currency:g}),t.jsx(yh,{children:f==="Pending Review"?t.jsx(kh,{children:t.jsx(Sh,{children:So.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(bh,{className:"vendor-flux-analysis-review-info",children:u!=null?t.jsxs(N.Fragment,{children:[t.jsxs(Ch,{children:[t.jsx(xh,{}),Ah.fluxAnalysis.reviewedBy]}),t.jsx(Re,{children:Br(u)})]}):So.strings.hyphen})})})]})]})})}const jo={generalExpense:{color:new I(E.graphColor04),hoverColor:new I(E.graphColor04Dark)},reimbursement:{color:new I(E.graphColor10),hoverColor:new I(E.graphColor10Dark)},default:{color:new I(ne.neutralGrey2Dark),hoverColor:new I(ne.neutralGrey2Dark)}},An=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},Hi=e=>_c(e.balancesByMonth),Mh=(e,n,o,i,r,a,s,c,h,g,p)=>{if(!An(n,"flux_vendor_row"))return null;const u=n.element.data,f=Hi(u),x=Ri("flux_vendor_row",h);return t.jsx(Ih,{backgroundColor:o,isSticky:i,treeNodeId:e,fluxAnalysisEntityId:u.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:u.vendor,vendorBalances:f,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,status:u.status,currency:u.currency,isScrolling:r,isOpen:a,isLeaf:s,isLastNode:c,childrenCount:u.vendorAccountsAndClasses.length,onClick:w=>{var m;m=w,p?.(m),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(m)},reviewedByUser:u.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:g?.setHoveredParentId})},Nh=(e,n,o,i,r,a,s,c,h,g)=>{if(!An(n,"section"))return null;const p=(u=n.config.reportId,f=n.element.sectionType,u.startsWith("flux_analysis_operating_expense")===!0&&f!=null?jo[f]:jo.default);var u,f;const x=n.element.data;return t.jsx(Id,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:x.balances,varianceAmount:x.varianceAmount,variancePercentage:x.variancePercentage,currency:x.currency,isScrolling:a,isOpen:s,hasVendors:x.vendors.length>0,isLeaf:c,isLastNode:h,sectionToggled:w=>{var m;m=w,n.config.fluxAnalysisConfig?.onSectionRowClick(m),g?.(m)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:x.sectionId})},Wh=l.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
+ `,Ph=l.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
+ `,zh=l.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
+ `,Fh=l(_r)`
1750
+ width: 100%;
1751
+ display: flex;
1752
+ align-items: center;
1753
+ font-weight: ${e=>e.isSubclass?Rn.regular:Rn.medium};
1754
+ color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1755
+ `,Th=l(je)`
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: ${d.sp1};
1764
+ margin: 0 ${d.sp5} 0 ${d.sp3};
1765
+ min-width: ${d.sp6};
1766
+ `,Vh=l(sn)`
1767
+ color: ${e=>e.theme.colors.primary};
1768
+ width: ${d.sp3};
1769
+ height: ${d.sp3};
1770
+ `;function Dh({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:a,nestedClass:s,isLeaf:c,showClassAccountNumber:h,onClick:g,onToggleCheck:p}){const[u,f]=N.useState(!1);return t.jsx(Wh,{"data-testid":b("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Ph,{"data-testid":b("name-with-checkbox-row-container",n),height:a,isClickable:!c,onClick:()=>g?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:s.classId.length,children:[t.jsx(Bn,{"data-testid":b("name-with-checkbox-row-checkbox",s.classId.toString()),icon:t.jsx(nn,{width:d.sp3,height:d.sp3}),checkedIcon:t.jsx(Vh,{}),checked:i,name:s.className,id:n,disabled:r,onChange:x=>{p?.(o,x.target.checked)},style:{height:d.sp6}})," ",t.jsx(zh,{children:t.jsxs(Fh,{"data-testid":b("name-with-checkbox-row-label-container",n),checked:i,isSubclass:s.classId.length>1,children:[t.jsx("label",{"data-testid":b("name-with-checkbox-row-label",s.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(o,!i)},children:s.className}),u===!0&&h===!0&&s.accountingClassNumber!=null&&t.jsx(Th,{children:s.accountingClassNumber})]})})]})})}const z={balanceHeight:d.sp4,balanceWidth:"166px",balanceLeftMargin:d.sp4,titleWidth:new G(200,270,270),categoryClassWidth:new G(230,230,240),nameLogoWidth:new G(_[4],_[4]),nameLogoHeight:new G(_[4],_[4])},Rh=l.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
+ `,Eh=l.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
+ `,Gh=l.div`
1793
+ display: flex;
1794
+ flex: 1 0 auto;
1795
+ flex-direction: row;
1796
+ justify-content: flex-end;
1797
+ `,vo=l(B)`
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: ${z.balanceWidth};
1804
+ max-width: ${z.balanceWidth};
1805
+ margin-left: ${e=>e.isClubbed===!0?d.sp2:z.balanceLeftMargin};
1806
+ border: 1px solid transparent;
1807
+ `,Co=l(B)`
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=>z.categoryClassWidth.valuePx(e.windowSize)};
1814
+ `,Hh=l.div`
1815
+ height: 100%;
1816
+ display: flex;
1817
+ flex-direction: row;
1818
+ align-items: center;
1819
+ min-width: ${e=>z.titleWidth.valuePx(e.windowSize)};
1820
+ color: ${e=>e.theme.colors.primary};
1821
+ background-color: ${e=>e.bgColor?.hex()};
1822
+ ${({isSticky:e})=>e?D`
1823
+ position: -webkit-sticky;
1824
+ position: sticky;
1825
+ top: ${d.sp0};
1826
+ left: ${d.sp0};
1827
+ z-index: 20;
1828
+ `:null}
1829
+ `;function Kh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:a}){const s=W();return a.length>0?t.jsxs(Rh,{height:o,bgColor:e,"data-testid":b("opex-vendor-loading-in-progress-row"),children:[t.jsxs(Hh,{"data-testid":b("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:s,bgColor:e,children:[t.jsx(Ke,{width:_[4],height:_[4]}),t.jsx(vo,{windowSize:s,isClubbed:!0,children:t.jsx(Z,{width:120,height:_[4]})})]}),t.jsxs(Gh,{children:[i?t.jsx(Co,{windowSize:s,children:t.jsx(Z,{width:120,height:_[4]})}):null,r?t.jsx(Co,{windowSize:s,children:t.jsx(Z,{width:120,height:_[4]})}):null,a.map((c,h)=>t.jsx(vo,{windowSize:s,children:t.jsx(Z,{width:120,height:_[4]})},`${h}RowItem`))]})]}):t.jsx(Eh,{height:o,bgColor:e,children:t.jsx(Sr,{size:"Small",start:!0})})}const Yh=l.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
+ `,Rt=l.div``,Uh=l.div`
1841
+ display: flex;
1842
+ flex: 1 0 auto;
1843
+ flex-direction: row;
1844
+ justify-content: flex-end;
1845
+ `,qh=l(B)`
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: ${d.sp2};
1854
+ color: ${e=>e.theme.colors.hero};
1855
+ `,Zh=l(B)`
1856
+ color: ${e=>e.theme.colors.hero};
1857
+ flex-grow: 1;
1858
+ -webkit-box-orient: vertical;
1859
+ display: flex;
1860
+ min-width: ${z.balanceWidth};
1861
+ max-width: ${z.balanceWidth};
1862
+ border: 1px solid transparent;
1863
+ `,_o=l(B)`
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=>z.categoryClassWidth.valuePx(e.windowSize)};
1870
+ `,Qh=l.div`
1871
+ height: 100%;
1872
+ display: flex;
1873
+ flex-direction: row;
1874
+ align-items: center;
1875
+ min-width: ${e=>z.titleWidth.valuePx(e.windowSize)};
1876
+ color: ${e=>e.theme.colors.primary};
1877
+ background-color: ${e=>e.bgColor?.hex()};
1878
+ ${({isSticky:e})=>e?D`
1879
+ position: -webkit-sticky;
1880
+ position: sticky;
1881
+ top: ${d.sp0};
1882
+ left: ${d.sp0};
1883
+ z-index: 20;
1884
+ `:null}
1885
+ `;function Jh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:a}){const s=W();return t.jsxs(Yh,{height:o,bgColor:e,"data-testid":b("no-results-found-title-row"),children:[t.jsx(Qh,{isSticky:n,windowSize:s,bgColor:e,children:t.jsx(qh,{children:M.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(Uh,{children:[i?t.jsx(_o,{windowSize:s,children:t.jsx(Rt,{})}):null,r?t.jsx(_o,{windowSize:s,children:t.jsx(Rt,{})}):null,a.map((c,h)=>t.jsx(Zh,{windowSize:s,children:t.jsx(Rt,{children:" "})},`${h}RowItem`))]})]})}function On({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:a,optionTextStyle:s,titleTextStyle:c,titleTextAlignment:h,titleColor:g,menuPosition:p}){return t.jsx(Ir,{title:e,pickerValues:["compare_mode_percent","compare_mode_amount"],valueToLabel:u=>M.getLocalizedStrings().compareMode[u],selectedValue:n,onPickerSelectionChanged:u=>o(u),optionTextStyle:s,titleTextStyle:c,titleTextAlignment:h,titleColor:g,optionBackgroundColor:r,selectedOptionBackgroundColor:a,backgroundColor:i??"inherit",menuPosition:p})}const Xh=d.sp4,$o=170,eu=(d.sp4,l.div`
1886
+ margin-left: ${d.sp4};
1887
+ `),tu=l.div`
1888
+ display: flex;
1889
+ max-height: 54px;
1890
+ min-height: 54px;
1891
+ align-items: center;
1892
+ justify-content: center;
1893
+ max-width: ${$o-2}px;
1894
+ min-width: ${$o-2}px;
1895
+ background-color: ${e=>e.theme.colors.background};
1896
+ border: 1px solid ${e=>e.theme.colors.grey3};
1897
+ border-radius: ${d.sp2};
1898
+ color: ${e=>e.theme.colors.primary};
1899
+ `,nu=l(B)`
1900
+ display: flex;
1901
+ user-select: none;
1902
+ flex-direction: row;
1903
+ justify-content: center;
1904
+ align-items: center;
1905
+ height: ${Xh};
1906
+ `,ou=l.div`
1907
+ display: flex;
1908
+ flex-direction: row;
1909
+ justify-content: center;
1910
+ align-items: center;
1911
+ padding: 3px 6px;
1912
+ margin-right: ${d.sp2};
1913
+ position: relative;
1914
+ top: -12px;
1915
+ `,iu=l(Rr)`
1916
+ color: ${e=>e.tagType==="under_review"?ne.neutralGrey5Light:e.theme.mode==="light"?ne.primaryDark:ne.primaryLight};
1917
+ border-radius: ${d.sp2};
1918
+ padding: 3px 6px;
1919
+ margin-left: 12px;
1920
+ background: ${e=>e.tagType==="under_review"?ne.alertDark:e.theme.mode==="light"?ne.championLight:ne.championDark};
1921
+ `,ru=l(Dr)`
1922
+ color: ${e=>e.theme.colors.hero};
1923
+ margin-left: 5px;
1924
+ height: ${d.sp3};
1925
+ width: ${d.sp3};
1926
+ margin-top: ${d.sp1};
1927
+ `;function Ki({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:a}){return t.jsxs(eu,{children:[t.jsxs(tu,{children:[t.jsx(nu,{children:Ue(e,n,o)}),t.jsx(Vr,{style:{padding:d.sp3},title:r,placement:"top",children:t.jsx(ru,{})})]}),t.jsx(ou,{children:t.jsx(iu,{tagType:a,children:i})})]})}const Yi=(e,n)=>{const o=M.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}},au=l.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
+ `,lu=l.div`
1939
+ display: flex;
1940
+ flex: 1 0 auto;
1941
+ flex-direction: row;
1942
+ justify-content: flex-end;
1943
+ `,Ui=l.div`
1944
+ display: flex;
1945
+ max-height: ${d.sp8};
1946
+ min-height: ${d.sp8};
1947
+ min-width: ${z.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: ${d.sp2};
1953
+ margin-left: ${z.balanceLeftMargin};
1954
+ color: ${e=>e.theme.colors.primary};
1955
+ cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1956
+ `,qi=l(B)`
1957
+ display: flex;
1958
+ user-select: none;
1959
+ flex-direction: row;
1960
+ justify-content: center;
1961
+ align-items: center;
1962
+ height: ${z.balanceHeight};
1963
+ max-width: ${z.balanceWidth};
1964
+ width: 138px;
1965
+ text-align: center;
1966
+ `,su=l.div`
1967
+ display: flex;
1968
+ flex-direction: row;
1969
+ z-index: 1;
1970
+ background-color: ${e=>e.bgColor?.hex()};
1971
+ ${({isSticky:e})=>e?D`
1972
+ position: -webkit-sticky;
1973
+ position: sticky;
1974
+ top: ${d.sp0};
1975
+ left: ${d.sp0};
1976
+ z-index: 1;
1977
+ `:null}
1978
+ `,cu=l.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=>z.titleWidth.valuePx(e.windowSize)};
1985
+ color: ${e=>e.theme.colors.primary};
1986
+ background-color: ${e=>e.bgColor?.hex()};
1987
+ `,du=l(B)`
1988
+ display: flex;
1989
+ gap: 6px;
1990
+ align-items: baseline;
1991
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1992
+ `,Zi=l(B)`
1993
+ height: 100%;
1994
+ align-self: center;
1995
+ align-items: baseline;
1996
+ min-width: ${e=>z.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
+ `,In=l.div`
2003
+ display: flex;
2004
+ cursor: pointer;
2005
+ `,hu=l.div`
2006
+ display: flex;
2007
+ justify-content: center;
2008
+ align-items: center;
2009
+ color: ${e=>e.theme.colors.champion};
2010
+ `,uu=l.div``,pu=l(B)`
2011
+ display: flex;
2012
+ justify-content: center;
2013
+ align-items: center;
2014
+ max-height: ${d.sp8};
2015
+ min-height: ${d.sp8};
2016
+ background-color: ${e=>e.theme.colors.background};
2017
+ border: 1px solid ${e=>e.theme.colors.grey3};
2018
+ border-radius: ${d.sp2};
2019
+ margin-left: ${z.balanceLeftMargin};
2020
+ color: ${e=>e.theme.colors.primary};
2021
+ width: ${z.balanceWidth};
2022
+ min-width: ${z.balanceWidth};
2023
+ `,Qi=l.div`
2024
+ max-height: ${d.sp8};
2025
+ min-height: ${d.sp8};
2026
+ `,Bt=l.div`
2027
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2028
+ `,At=l(hn)`
2029
+ width: 12px;
2030
+ height: 12px;
2031
+ margin-left: ${d.sp2};
2032
+ margin-top: ${d.sp1};
2033
+ `,Ot=l(dn)`
2034
+ width: 12px;
2035
+ height: 12px;
2036
+ margin-left: ${d.sp2};
2037
+ margin-top: ${d.sp1};
2038
+ `,Mn=l(Eo)`
2039
+ width: 12px;
2040
+ height: 12px;
2041
+ cursor: pointer;
2042
+ color: ${e=>e.theme.colors.hero};
2043
+ `,Ji=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=n==="totals"?e:"ascending";return t.jsx(Qi,{"data-testid":b("period-total-tick"),children:t.jsx(Ui,{"data-testid":b("period-total-tick-element"),onClick:()=>{o(It("totals",e,n),"totals")},isClickable:!0,children:t.jsxs(qi,{children:[M.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(Bt,{selectedForSort:n==="totals",children:i==="ascending"?t.jsx(Ot,{}):t.jsx(At,{})})]})})})},gu=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="vendor"?n:"ascending";return t.jsxs(du,{selectedForSort:e==="vendor",children:[t.jsxs(In,{onClick:()=>{o(It("vendor",n,e),"vendor")},children:[M.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(Bt,{selectedForSort:e==="vendor",children:r==="ascending"?t.jsx(Ot,{}):t.jsx(At,{})})]}),e==="vendor"?t.jsx(Mn,{onClick:i}):null]})},fu=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="account"?n:"ascending",a=W();return t.jsxs(Zi,{selectedForSort:e==="account",windowSize:a,children:[t.jsxs(In,{onClick:()=>{o(It("account",n,e),"account")},children:[M.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(Bt,{selectedForSort:e==="account",children:r==="ascending"?t.jsx(Ot,{}):t.jsx(At,{})})]}),e==="account"?t.jsx(Mn,{onClick:i}):null]})},xu=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="class"?n:"ascending",a=W();return t.jsxs(Zi,{selectedForSort:e==="class",windowSize:a,children:[t.jsxs(In,{onClick:()=>{o(It("class",n,e),"class")},children:[M.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(Bt,{selectedForSort:e==="class",children:r==="ascending"?t.jsx(Ot,{}):t.jsx(At,{})})]}),e==="class"?t.jsx(Mn,{onClick:i}):null]})},Xi=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const a=M.getLocalizedStrings().reports,s=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:Uo(o,e,n,r,i),c=s!=null?s==="under_review"?a.bookCloseTagUnderReview:a.bookCloseTagInProgress:void 0,h=Yi(s,o);return t.jsx(Qi,{children:r!=null&&i!=null&&s!=null&&c!=null&&h!=null?t.jsx(Ki,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:c,infoContent:h,tagType:s}):t.jsx(Ui,{isClickable:!1,children:t.jsx(qi,{children:Ue(e,n,o)})})})},mu=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,sortKey:i="totals",sortOrder:r="ascending",dataAvailable:a,bookCloseDate:s,onSortOrderChanged:c})=>n.balanceType==="period_total"?t.jsx(Ji,{sortKey:i,sortOrder:r,onSortOrderChanged:c}):t.jsx(Xi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:a,bookCloseDate:s}),wu=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:a="ascending",dataAvailable:s,bookCloseDate:c,onCompareModeChanged:h,onSortOrderChanged:g})=>{const p=ue(),u=i==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return t.jsx(hu,{children:n.map((f,x)=>t.jsxs(N.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(pu,{children:t.jsx(On,{title:u,titleTextStyle:cn.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:w=>{w!=="off"&&(w==="compare_mode_amount"||w==="compare_mode_percent"?h?.(w):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(Ji,{sortKey:r,sortOrder:a,onSortOrderChanged:g}):null,f.balanceType==="default"?t.jsx(uu,{children:t.jsx(Xi,{firstMonthOfFY:e,timeframeTick:f,timeframe:o,dataAvailable:s,bookCloseDate:c},x)}):null]},x))})};function yu({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:a,sortKey:s,sortOrder:c,firstMonthOfFY:h,timeframe:g,timeframeTicks:p,compareMode:u,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:w,onSortOrderChanged:m}){const k=W(),y=(S,$)=>{m?.(S,$)},v=()=>{m?.("descending","totals")};return t.jsxs(au,{height:o,bgColor:e,children:[t.jsx(su,{bgColor:e,windowSize:k,isSticky:n,children:t.jsx(cu,{plHeight:o,windowSize:k,bgColor:e,children:t.jsx(gu,{sortKey:s,sortOrder:c,onSortOrderChanged:y,onSortCancel:v})})}),r?t.jsx(fu,{sortKey:s,sortOrder:c,onSortOrderChanged:y,onSortCancel:v}):null,a?t.jsx(xu,{sortKey:s,sortOrder:c,onSortOrderChanged:y,onSortCancel:v}):null,t.jsx(lu,{children:i===!0?t.jsx(wu,{firstMonthOfFY:h,timeframe:g,sortKey:s,sortOrder:c,timeframeTicks:p,compareMode:u,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:w,onSortOrderChanged:y}):p.map((S,$)=>t.jsx(mu,{firstMonthOfFY:h,timeframeTick:S,timeframe:g,sortKey:s,sortOrder:c,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:y},$))})]})}const It=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",bu=l.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
+ `,ku=l.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 en({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(bu,{isScrolling:n});case"end_row_separator":return t.jsx(ku,{isScrolling:n})}}const Su=l.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
+ `,ju=l.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
+ `,vu=l.div`
2070
+ display: flex;
2071
+ flex: 1 0 auto;
2072
+ flex-direction: row;
2073
+ justify-content: flex-end;
2074
+ `,Cu=l.div`
2075
+ display: flex;
2076
+ flex-direction: row;
2077
+ justify-content: flex-start;
2078
+ `,er=l(re)`
2079
+ user-select: none;
2080
+ min-width: ${z.balanceWidth};
2081
+ max-width: ${z.balanceWidth};
2082
+ text-align: right;
2083
+ margin-left: ${z.balanceLeftMargin};
2084
+ color: ${e=>e.theme.colors.primary};
2085
+ border: 1px solid transparent;
2086
+ `,_u=l(er)`
2087
+ color: ${e=>e.theme.colors.hero};
2088
+ &:hover {
2089
+ color: inherit;
2090
+ }
2091
+ `,$u=l.div`
2092
+ display: flex;
2093
+ flex-direction: row;
2094
+ background-color: ${e=>e.bgColor?.hex()};
2095
+ ${({isSticky:e})=>e?D`
2096
+ position: -webkit-sticky;
2097
+ position: sticky;
2098
+ top: ${d.sp0};
2099
+ left: ${d.sp0};
2100
+ `:null}
2101
+ `,Lu=l.div`
2102
+ display: flex;
2103
+ flex-direction: row;
2104
+ flex-shrink: 2;
2105
+ flex-grow: 1;
2106
+ align-items: center;
2107
+ width: ${e=>z.titleWidth.valuePx(e.windowSize)};
2108
+ max-width: ${e=>z.titleWidth.valuePx(e.windowSize)};
2109
+ background-color: ${e=>e.bgColor?.hex()};
2110
+ `,Lo=l.div`
2111
+ width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2112
+ max-width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2113
+ background-color: ${e=>e.bgColor?.hex()};
2114
+ `,Bu=l(re)`
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
+ `,Au=({type:e,balance:n,collapsed:o})=>{const i=o===!0?_u:er;return t.jsx(Cu,{children:se(e)===!0?t.jsx(i,{children:ee(n)}):null})};function Ou({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:a,totalBalances:s,isAccountColumnShown:c,isClassColumnShown:h,onClick:g,isScrolling:p}){const u=W();return t.jsxs(Su,{"data-testid":b("total-row-root-container",i),height:r,bgColor:n,windowSize:u,children:[t.jsxs(ju,{"data-testid":b("total-row-container",i),onClick:()=>g?.(i),children:[t.jsxs($u,{bgColor:n,windowSize:u,isSticky:o,children:[t.jsx(Lu,{bgColor:n,windowSize:u,children:t.jsx(Bu,{children:a})}),c?t.jsx(Lo,{windowSize:u}):null,h?t.jsx(Lo,{windowSize:u}):null]}),t.jsx(vu,{children:s.map((f,x)=>t.jsx(Au,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(en,{isScrolling:p,kind:"vendor_row_separator"})]})}const Iu=l.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
+ `,Mu=l.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
+ `,Nu=l.div`
2142
+ display: flex;
2143
+ flex: 1 0 auto;
2144
+ flex-direction: row;
2145
+ justify-content: flex-end;
2146
+ `,Wu=l.div`
2147
+ display: flex;
2148
+ flex-direction: row;
2149
+ justify-content: flex-start;
2150
+ `,Pu=l(B)`
2151
+ user-select: none;
2152
+ min-width: ${z.balanceWidth};
2153
+ max-width: ${z.balanceWidth};
2154
+ text-align: right;
2155
+ margin-left: ${z.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
+ `,zu=l.div`
2163
+ display: flex;
2164
+ flex-direction: row;
2165
+ background-color: ${e=>e.bgColor?.hex()};
2166
+ ${({isSticky:e})=>e?D`
2167
+ position: -webkit-sticky;
2168
+ position: sticky;
2169
+ top: ${d.sp0};
2170
+ left: ${d.sp0};
2171
+ `:null}
2172
+ `,Fu=l.div`
2173
+ display: flex;
2174
+ flex-direction: row;
2175
+ flex-shrink: 2;
2176
+ flex-grow: 1;
2177
+ align-items: center;
2178
+ gap: ${d.sp2};
2179
+ width: ${e=>z.titleWidth.valuePx(e.windowSize)};
2180
+ max-width: ${e=>z.titleWidth.valuePx(e.windowSize)};
2181
+ background-color: ${e=>e.bgColor?.hex()};
2182
+ `,Me=l(B)`
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
+ `,Tu=l.div`
2196
+ display: flex;
2197
+ flex-direction: row;
2198
+ flex-shrink: 2;
2199
+ flex-grow: 1;
2200
+ align-items: center;
2201
+ width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2202
+ max-width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2203
+ background-color: ${e=>e.bgColor?.hex()};
2204
+ `,Vu=l.div`
2205
+ display: flex;
2206
+ flex-direction: row;
2207
+ flex-shrink: 2;
2208
+ flex-grow: 1;
2209
+ align-items: center;
2210
+ width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2211
+ max-width: ${e=>z.categoryClassWidth.valuePx(e.windowSize)};
2212
+ background-color: ${e=>e.bgColor?.hex()};
2213
+ `,Du=l.div`
2214
+ width: ${d.sp4};
2215
+ height: ${d.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
+ `,Ru=l($r)`
2223
+ width: ${d.sp3};
2224
+ height: ${d.sp3};
2225
+ `,Eu=l.div`
2226
+ display: flex;
2227
+ column-gap: ${d.sp2};
2228
+ width: 100%;
2229
+ &:hover {
2230
+ .hyphen-text {
2231
+ display: none;
2232
+ }
2233
+ .not-specified-text {
2234
+ display: block;
2235
+ }
2236
+ }
2237
+ `,Gu=l(B)`
2238
+ color: ${e=>e.theme.colors.hero};
2239
+ `,Hu=l(B)`
2240
+ color: ${e=>e.theme.colors.hero};
2241
+ display: none;
2242
+ `,Ku=({balance:e,vendor:n,onVendorNameAndBalanceClick:o})=>{const i=!(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"&&!Yo(n.id);return t.jsx(Wu,{children:t.jsx(Pu,{isClickable:i,onClick:()=>{i===!0&&o(n,e??void 0)},children:ee(e)})})};function Yu({type:e,backgroundColor:n,isSticky:o,height:i,isScrolling:r,isLastNode:a,vendor:s,balances:c,accountBase:h,classBase:g,isAccountColumnShown:p,isClassColumnShown:u,onVendorNameAndBalanceClick:f}){const x=W(),w=Wo(),m=w.loggedInUserRole!=null&&!Ko(w.loggedInUserRole),k=Yo(s.id),y=m===!0&&s!=null&&!k,v=y?"pointer":"default",S=s.name;return t.jsxs(Iu,{"data-testid":b("vendor-row-root-container",s.id),height:i,bgColor:n,windowSize:x,children:[t.jsxs(Mu,{"data-testid":b("vendor-row-container",s.id),style:{cursor:v},isClickable:y,children:[t.jsx(zu,{"data-testid":b("vendor-row-sticky-container",s.id),isSticky:o,windowSize:x,bgColor:n,children:t.jsxs(Fu,{"data-testid":b("vendor-row-name-container",s.id),windowSize:x,bgColor:n,children:[t.jsxs(ft,{controller:!k,children:[s.logo!=null?t.jsx(on,{photoUrl:s.logo.toString(),styles:{width:z.nameLogoWidth.valuePx(x),height:z.nameLogoHeight.valuePx(x)}}):t.jsx(rn,{name:S,size:d.sp4}),t.jsx(Me,{"data-testid":b("vendor-row-name",s.id),style:{cursor:v},isClickable:y,onClick:()=>{y===!0&&f(s)},children:S})]}),t.jsx(ft,{controller:k,children:t.jsxs(Eu,{children:[t.jsx(Du,{children:t.jsx(Ru,{})}),t.jsx(Gu,{className:"hyphen-text",children:M.getLocalizedStrings().common.strings.hyphen}),t.jsx(Hu,{className:"not-specified-text",children:S})]})})]})}),p?t.jsx(Tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(Me,{"data-testid":b("vendor-row-account-name",s.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(Me,{isClickable:!1,"data-testid":b("vendor-row-account-name",s.id),children:M.getLocalizedStrings().common.strings.hyphen})}):null,u?t.jsx(Vu,{windowSize:x,bgColor:n,children:g!=null?t.jsx(Me,{"data-testid":b("vendor-row-class-name",s.id),title:g.className,isClickable:!1,children:g.className}):t.jsx(Me,{"data-testid":b("vendor-row-class-name",s.id),isClickable:!1,children:M.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Nu,{children:c.map(($,C)=>t.jsx(Ku,{type:e,balance:$,vendor:s,onVendorNameAndBalanceClick:f},C))})]}),t.jsx(Uu,{isScrolling:r,isLastNode:a})]})}function Uu({isScrolling:e,isLastNode:n}){return n?t.jsx(en,{isScrolling:e,kind:"end_row_separator"}):t.jsx(en,{isScrolling:e,kind:"vendor_row_separator"})}function Nn(e,n,o){return qu(n,o)}const qu=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>Bo(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>Bo(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>function(a,s,c,h){switch(h){case"off":return a;case"filter_actual_nil_account_group_balances":return a.filter(g=>tr(s(g)?.balances??[]));case"filter_forecast_nil_account_group_balances":return a.filter(g=>function(p){let u=!1;if(p!=null){for(const f of p)if(f.forecast!=null&&f.forecast.amount!==0){u=!0;break}}return u}(s(g)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return a.filter(g=>function(p){let u=!1;if(p!=null){for(const f of p)if(f.forecast!=null&&f.forecast.amount!==0||f.balance!=null&&f.balance.amount!==0){u=!0;break}}return u}(s(g)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return a.filter(g=>(s(g)?.balances??[]).length>0)}}(r,i.acGroupBalanceSelector,0,n),i};function Bo(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>function(r){let a=!1;if(r!=null){for(const s of r)if(s.totalBalance!=null&&s.totalBalance.amount!==0){a=!0;break}}return a}((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||tr((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":case"filter_actual_forecast_nil_balances":return e.filter(i=>Zu(n(i)?.balances??[]))}}function tr(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function Zu(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 nr(e,n,o=-1,i=!0){const r=o!==-1;let a=[],s=-1;if(e==null||e.balances.length===0)return r===!0&&(a=function(h,g){return h.length>0?h:vi(Array(g),null)}([],o)),{balances:a,thisPeriodIndex:s};let c=e.balances;return n==="ascending_date"?s=e.balances.length-1:(s=0,c=[...e.balances].reverse()),{balances:[...c,...i?e.additionalBalances:[]],thisPeriodIndex:s}}const Qu=l.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
+ `,Ju=l.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
+ `,Xu=l.div`
2261
+ display: flex;
2262
+ flex: 1 0 auto;
2263
+ flex-direction: row;
2264
+ justify-content: flex-end;
2265
+ `,ep=l.div`
2266
+ display: flex;
2267
+ flex-direction: row;
2268
+ justify-content: flex-start;
2269
+ `,or=l(B)`
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
+ `,tp=l(or)`
2277
+ color: ${e=>e.theme.colors.hero};
2278
+ &:hover {
2279
+ color: inherit;
2280
+ }
2281
+ `,np=l.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?D`
2291
+ position: -webkit-sticky;
2292
+ position: sticky;
2293
+ top: ${d.sp0};
2294
+ left: ${d.sp0};
2295
+ `:null}
2296
+ `,ir=l(B)`
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: ${d.sp4};
2305
+ color: ${e=>e.theme.colors.primary};
2306
+ `,op=l(ir)`
2307
+ color: ${e=>e.theme.colors.hero};
2308
+ &:hover {
2309
+ color: inherit;
2310
+ }
2311
+ `,ip=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const a=o===!0?tp:or;return t.jsxs(ep,{children:[se(e)===!0||i?t.jsx(a,{children:ee(n)}):t.jsx(a,{children:te(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(a,{children:te(n)}),t.jsx(a,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function rp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:a,accountGroupName:s,accountGroupBalances:c,isActualVsForecastOn:h,compareMode:g,isScrolling:p,isOpen:u,isLeaf:f,isLastNode:x,onClick:w}){const m=ue(),k=W(),y=!f,v=y?"pointer":"default",S=a==="collapsed",$=a==="hidden",C=$===!0?_[6]:_[4],L=S===!0?op:ir,O=S===!0?zo:Fo,P=S===!0?m.colors.hero:m.colors.primary;return t.jsxs(Qu,{height:r,bgColor:n,"data-testid":b("pandl-report-account-group-row-root-container",i),children:[t.jsxs(Ju,{"data-testid":b("pandl-report-account-group-row-container",i),style:{cursor:v},isClickable:y,onClick:()=>w?.(i),children:[me(e)===!0?t.jsxs(np,{bgColor:n,isSticky:o,windowSize:k,children:[$===!1?t.jsx(O,{color:P,style:{width:_[3],height:_[3]}}):null,t.jsx(L,{style:{marginLeft:C},children:s})]}):null,be(e)===!0?t.jsx(Xu,{children:c.map((T,R)=>t.jsx(ip,{type:e,accountGroupName:s,balance:T,isActualVsForecastOn:h,compareMode:g,collapsed:S},R))}):null]}),t.jsx(ap,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:u})]})}function ap({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=me(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const lp=l.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
+ `,sp=l.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
+ `,cp=l.div`
2330
+ display: flex;
2331
+ flex: 1 0 auto;
2332
+ flex-direction: row;
2333
+ justify-content: flex-end;
2334
+ `,dp=l.div`
2335
+ display: flex;
2336
+ flex-direction: row;
2337
+ justify-content: flex-start;
2338
+ `,rr=l(B)`
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
+ `,hp=l(rr)`
2346
+ color: ${e=>e.theme.colors.hero};
2347
+ &:hover {
2348
+ color: inherit;
2349
+ }
2350
+ `,up=l.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?D`
2360
+ position: -webkit-sticky;
2361
+ position: sticky;
2362
+ top: ${d.sp0};
2363
+ left: ${d.sp0};
2364
+ `:null}
2365
+ `,ar=l(B)`
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: ${d.sp2};
2374
+ color: ${e=>e.theme.colors.primary};
2375
+ `,pp=l(ar)`
2376
+ color: ${e=>e.theme.colors.hero};
2377
+ &:hover {
2378
+ color: inherit;
2379
+ }
2380
+ `,gp=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const a=o===!0?hp:rr;return t.jsxs(dp,{children:[se(e)===!0||i?t.jsx(a,{children:ee(n)}):t.jsx(a,{children:te(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(a,{children:te(n)}),t.jsx(a,{children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function fp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:a,accountGroupName:s,accountGroupBalances:c,isActualVsForecastOn:h,compareMode:g,isScrolling:p,isOpen:u,isLeaf:f,isLastNode:x,onClick:w}){const m=W(),k=ue(),y=!f,v=y?"pointer":"default",S=a==="collapsed",$=S===!0?pp:ar,[C,L]=N.useState(!1),O=s.length>0?s.substring(0,1).toUpperCase():"";return t.jsxs(lp,{"data-testid":b("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(sp,{"data-testid":b("pandl-account-group-row-container",i),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),style:{cursor:v},isClickable:y,onClick:()=>w?.(i),children:[me(e)===!0?t.jsxs(up,{bgColor:n,isSticky:o,windowSize:m,children:[t.jsx(ve,{showCollapsedIcon:S,showIcon:C&&y,firstLetter:O,color:I(k.colors.primary)}),t.jsx($,{children:s})]}):null,be(e)===!0?t.jsx(cp,{children:c.map((P,T)=>t.jsx(gp,{type:e,accountGroupName:s,balance:P,isActualVsForecastOn:h,compareMode:g,collapsed:S},T))}):null]}),t.jsx(xp,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:u})]})}function xp({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=me(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(ke,{isScrolling:e,kind:r})}const mp=l.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
+ `,wp=l.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
+ `,yp=l.div`
2396
+ display: flex;
2397
+ flex: 1 0 auto;
2398
+ flex-direction: row;
2399
+ justify-content: flex-end;
2400
+ `,bp=l.div`
2401
+ display: flex;
2402
+ flex-direction: row;
2403
+ justify-content: flex-start;
2404
+ `,ct=l(B)`
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
+ `,kp=l.div`
2416
+ display: flex;
2417
+ flex-direction: row;
2418
+ flex-shrink: 2;
2419
+ flex-grow: 1;
2420
+ align-items: center;
2421
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2422
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2423
+ background-color: ${e=>e.bgColor?.hex()};
2424
+ ${({isSticky:e})=>e?D`
2425
+ position: -webkit-sticky;
2426
+ position: sticky;
2427
+ top: ${d.sp0};
2428
+ left: ${d.sp0};
2429
+ `:null}
2430
+ `,Sp=l(B)`
2431
+ user-select: none;
2432
+ clear: both;
2433
+ display: inline-block;
2434
+ overflow: hidden;
2435
+ white-space: nowrap;
2436
+ text-overflow: ellipsis;
2437
+ text-align: left;
2438
+ margin-left: ${d.sp6};
2439
+ color: ${e=>e.theme.colors.hero};
2440
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2441
+ &:hover {
2442
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2443
+ }
2444
+ `,jp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:a})=>{const s=r!=null&&n!=null&&a!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(bp,{"data-testid":b("account-row-balance-element",e),children:[se(e)===!0||o?t.jsx(ct,{"data-testid":b("account-row-balance-actual",e),isClickable:s,onClick:()=>{s===!0&&r!=null&&n!=null&&a?.(r,n)},children:ee(n)}):t.jsx(ct,{"data-testid":b("account-row-balance-forecast",e),isClickable:!1,children:te(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(ct,{isClickable:!1,"data-testid":b("account-row-balance-forecast",e),children:te(n)}),t.jsx(ct,{"data-testid":b("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?pe(n):ge(n)})]}):null]})};function vp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:a,isActualVsForecastOn:s,compareMode:c,isScrolling:h,isLeaf:g,isLastNode:p,account:u,onAccountBalanceClick:f}){const x=W(),{common:{strings:{hyphen:w}}}=M.getLocalizedStrings(),m=u?.accountDescription?u.accountDescription:w,k=u?.accountName?u.accountName:m;return t.jsxs(mp,{height:r,bgColor:n,"data-testid":b("account-row-root-container",i),children:[t.jsxs(wp,{"data-testid":b("account-row-container",i),children:[me(e)===!0?t.jsx(kp,{isSticky:o,windowSize:x,bgColor:n,children:t.jsx(Sp,{isClickable:!1,title:k,children:k})}):null,be(e)===!0?t.jsx(yp,{children:a.map((y,v)=>t.jsx(jp,{type:e,isActualVsForecastOn:s,compareMode:c,balance:y,account:u,onAccountBalanceClick:f==null?void 0:(S,$)=>{f(i,S,$)}},v))}):null]}),t.jsx(Cp,{isScrolling:h,type:e,isLeaf:g,isLastNode:p})]})}function Cp({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":me(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(ke,{isScrolling:e,kind:i})}const _p=l.div`
2445
+ display: flex;
2446
+ flex: 1 1 auto;
2447
+ width: fit-content;
2448
+ min-width: 100%;
2449
+ flex-direction: column;
2450
+ height: ${e=>e.height}px;
2451
+ background-color: ${e=>e.bgColor?.hex()};
2452
+ `,$p=l.div`
2453
+ user-select: none;
2454
+ display: flex;
2455
+ flex: 1 1 auto;
2456
+ flex-flow: row;
2457
+ justify-content: flex-start;
2458
+ align-items: center;
2459
+ `,Lp=l.div`
2460
+ display: flex;
2461
+ flex: 1 0 auto;
2462
+ flex-direction: row;
2463
+ justify-content: flex-end;
2464
+ `,Bp=l.div`
2465
+ display: flex;
2466
+ flex-direction: row;
2467
+ justify-content: flex-start;
2468
+ `,dt=l(B)`
2469
+ user-select: none;
2470
+ max-width: ${j.balanceWidth};
2471
+ min-width: ${j.balanceWidth};
2472
+ text-align: right;
2473
+ margin-left: ${j.balanceLeftMargin};
2474
+ `,Ap=l.div`
2475
+ display: flex;
2476
+ flex-direction: row;
2477
+ flex-shrink: 2;
2478
+ flex-grow: 1;
2479
+ align-items: center;
2480
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2481
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2482
+ background-color: ${e=>e.bgColor?.hex()};
2483
+ ${({isSticky:e})=>e?D`
2484
+ position: -webkit-sticky;
2485
+ position: sticky;
2486
+ top: ${d.sp0};
2487
+ left: ${d.sp0};
2488
+ `:null}
2489
+ `,Op=l.div`
2490
+ display: flex;
2491
+ flex-grow: 8;
2492
+ `,Ip=l(B)`
2493
+ user-select: none;
2494
+ user-select: none;
2495
+ clear: both;
2496
+ display: inline-block;
2497
+ overflow: hidden;
2498
+ white-space: nowrap;
2499
+ text-overflow: ellipsis;
2500
+ text-align: left;
2501
+ margin-left: ${d.sp2};
2502
+ `,Mp=l(je)`
2503
+ display: flex;
2504
+ color: ${e=>e.theme.colors.primary};
2505
+ align-items: center;
2506
+ flex-direction: row;
2507
+ justify-content: flex-end;
2508
+ padding: 1px 6px;
2509
+ height: 20px;
2510
+ border: 1px solid ${e=>e.theme.colors.primary};
2511
+ border-radius: ${d.sp1};
2512
+ margin: 0 ${d.sp5} 0 ${d.sp3};
2513
+ `,Np=({metadata:e,depth:n})=>n===0?null:e.hasSibling!==!0||e.isLastNode?t.jsx(Mr,{}):t.jsx(Nr,{}),Wp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Bp,{children:[se(e)===!0||i?t.jsx(dt,{style:{color:o},children:ee(n)}):t.jsx(dt,{style:{color:o},children:te(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(dt,{style:{color:o},children:te(n)}),t.jsx(dt,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Pp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:a,classCode:s,sectionBalances:c,isActualVsForecastOn:h,compareMode:g,hasChildren:p,isScrolling:u,isOpen:f,isLeaf:x,metadata:w,showClassAccountNumber:m,onClick:k,depth:y}){const v=W(),S=!x,$=S?"pointer":"default",C=ue().colors.primary,L=a.length>0?a.substr(0,1).toUpperCase():"",[O,P]=N.useState(!1),T=w.classAncestorMetadata??[];return t.jsxs(_p,{"data-testid":b("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs($p,{"data-testid":b("class-row-container",i),style:{cursor:$},onClick:()=>k?.(i),onMouseOver:()=>P(!0),onMouseLeave:()=>P(!1),children:[me(e)===!0?t.jsxs(Ap,{isSticky:o,windowSize:v,bgColor:n,children:[t.jsx(el,{name:a,ancestorMetadata:T,depth:y}),t.jsx(Np,{metadata:T[y],depth:y}),t.jsx(ve,{color:I(C),showCollapsedIcon:!f,showIcon:O&&S,firstLetter:L,showTreeLine:p}),t.jsx(Op,{children:t.jsx(Ip,{style:{color:C},children:a})}),O===!0&&m===!0&&s!==void 0&&t.jsx(Mp,{children:s})]}):null,be(e)===!0?t.jsx(Lp,{children:c.map((R,V)=>t.jsx(Wp,{type:e,sectionName:a,balance:R,isActualVsForecastOn:h,compareMode:g,color:C},V))}):null]}),t.jsx(zp,{isScrolling:u,isLeaf:x,isOpen:f})]})}function zp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Fp=l.div`
2514
+ display: flex;
2515
+ flex: 1 1 auto;
2516
+ width: fit-content;
2517
+ min-width: 100%;
2518
+ flex-direction: column;
2519
+ height: ${e=>e.height}px;
2520
+ background-color: ${e=>e.bgColor?.hex()};
2521
+ `,Tp=l.div`
2522
+ user-select: none;
2523
+ display: flex;
2524
+ flex: 1 1 auto;
2525
+ flex-flow: row;
2526
+ justify-content: flex-start;
2527
+ align-items: center;
2528
+ `,Vp=l.div`
2529
+ display: flex;
2530
+ flex: 1 0 auto;
2531
+ flex-direction: row;
2532
+ justify-content: flex-end;
2533
+ `,Dp=l.div`
2534
+ display: flex;
2535
+ flex-direction: row;
2536
+ justify-content: flex-start;
2537
+ `,ht=l(B)`
2538
+ user-select: none;
2539
+ max-width: ${j.balanceWidth};
2540
+ min-width: ${j.balanceWidth};
2541
+ text-align: right;
2542
+ margin-left: ${j.balanceLeftMargin};
2543
+ `,Rp=l.div`
2544
+ display: flex;
2545
+ flex-direction: row;
2546
+ flex-shrink: 2;
2547
+ flex-grow: 1;
2548
+ align-items: center;
2549
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2550
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2551
+ background-color: ${e=>e.bgColor?.hex()};
2552
+ ${({isSticky:e})=>e?D`
2553
+ position: -webkit-sticky;
2554
+ position: sticky;
2555
+ top: ${d.sp0};
2556
+ left: ${d.sp0};
2557
+ `:null}
2558
+ `,Ep=l(B)`
2559
+ user-select: none;
2560
+ user-select: none;
2561
+ clear: both;
2562
+ display: inline-block;
2563
+ overflow: hidden;
2564
+ white-space: nowrap;
2565
+ text-overflow: ellipsis;
2566
+ text-align: left;
2567
+ margin-left: ${d.sp2};
2568
+ `,Gp=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Dp,{children:[se(e)===!0||i?t.jsx(ht,{style:{color:o},children:ee(n)}):t.jsx(ht,{style:{color:o},children:te(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(ht,{style:{color:o},children:te(n)}),t.jsx(ht,{style:{color:o},children:r==="compare_mode_percent"?pe(n):ge(n)})]}):null]});function Wn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:a,sectionBalances:s,isActualVsForecastOn:c,compareMode:h,sectionColor:g,isScrolling:p,isOpen:u,isLeaf:f,onClick:x}){const w=W(),m=!f,k=m?"pointer":"default",y=a.length>0?a.substring(0,1).toUpperCase():"",[v,S]=N.useState(!1);return t.jsxs(Fp,{"data-testid":b("section-row",i),height:r,bgColor:n,children:[t.jsxs(Tp,{"data-testid":b("section-row-container",i),style:{cursor:k},onClick:()=>x?.(i),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),children:[me(e)===!0?t.jsxs(Rp,{isSticky:o,windowSize:w,bgColor:n,children:[t.jsx(ve,{color:I(g),showCollapsedIcon:!u,showIcon:v&&m,firstLetter:y}),t.jsx(Ep,{style:{color:g},children:a})," "]}):null,be(e)===!0?t.jsx(Vp,{children:s.map(($,C)=>t.jsx(Gp,{type:e,sectionName:a,balance:$,isActualVsForecastOn:c,compareMode:h,color:g},C))}):null]}),t.jsx(Hp,{isScrolling:p,isLeaf:f,isOpen:u})]})}function Hp({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(ke,{isScrolling:e,kind:"section_row_separator"}):null}const Kp=l.div`
2569
+ display: flex;
2570
+ flex: 1 1 auto;
2571
+ width: fit-content;
2572
+ min-width: 100%;
2573
+ flex-direction: column;
2574
+ height: ${e=>e.height-1}px;
2575
+ background-color: ${e=>e.bgColor?.hex()};
2576
+ `,Yp=l.div`
2577
+ user-select: none;
2578
+ display: flex;
2579
+ flex: 1 1 auto;
2580
+ flex-flow: row;
2581
+ justify-content: flex-start;
2582
+ align-items: center;
2583
+ `,Up=l.div`
2584
+ display: flex;
2585
+ flex: 1 0 auto;
2586
+ flex-direction: row;
2587
+ justify-content: flex-end;
2588
+ `,qp=l.div`
2589
+ display: flex;
2590
+ flex-direction: row;
2591
+ justify-content: flex-start;
2592
+ `,ut=l(B)`
2593
+ user-select: none;
2594
+ min-width: ${j.balanceWidth};
2595
+ max-width: ${j.balanceWidth};
2596
+ text-align: right;
2597
+ margin-left: ${j.balanceLeftMargin};
2598
+ color: ${e=>e.theme.colors.hero};
2599
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2600
+ &:hover {
2601
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2602
+ }
2603
+ `,Zp=l.div`
2604
+ display: flex;
2605
+ flex-direction: row;
2606
+ flex-shrink: 2;
2607
+ flex-grow: 1;
2608
+ align-items: center;
2609
+ height: ${e=>e.containerHeight-1}px; // Else bottom line doesnt show up
2610
+ // because the height of the svg is much larger
2611
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2612
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2613
+ background-color: ${e=>e.bgColor?.hex()};
2614
+ color: ${e=>e.theme.colors.hero};
2615
+
2616
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2617
+ &:hover {
2618
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2619
+ }
2620
+ ${({isSticky:e})=>e?D`
2621
+ position: -webkit-sticky;
2622
+ position: sticky;
2623
+ top: ${d.sp0};
2624
+ left: ${d.sp0};
2625
+ `:null}
2626
+ `,Qp=l(B)`
2627
+ user-select: none;
2628
+ clear: both;
2629
+ display: inline-block;
2630
+ text-align: left;
2631
+ `,Jp=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:a,onAccountBalanceClick:s})=>{const c=n!=null&&Hr(n?.type),h=r!=null&&n!=null&&s!=null&&c!==!0,g=a===!0?qo(n):ee(n),p=a===!0?Ht(n):te(n),u=a===!0?Zo(n):pe(n),f=a===!0?Qo(n):ge(n);return t.jsxs(qp,{"data-testid":b("account-row-balance-element",e),children:[se(e)===!0||o?t.jsx(ut,{"data-testid":b("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&s?.(r,n)},children:g}):t.jsx(ut,{"data-testid":b("account-row-balance-forecast",e),isClickable:!1,children:p}),o?t.jsxs(t.Fragment,{children:[t.jsx(ut,{"data-testid":b("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(ut,{"data-testid":b("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?u:f})]}):null]})};function Xp({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:a,accountBalances:s,isActualVsForecastOn:c,compareMode:h,metadata:g,isScrolling:p,noMarginForAccount:u,isLeaf:f,isOpen:x,isLastNode:w,account:m,onAccountBalanceClick:k,onClick:y}){const v=W(),S=m!=null?m.id.length-1:0,$=m?.hasSiblings??!1,C=m!=null&&m.children.length!==0,L=g,{common:{strings:{empty:O}}}=M.getLocalizedStrings(),P=m?.account.accountDescription?m.account.accountDescription:O,T=m?.account.accountName?m.account.accountName:P;return t.jsxs(Kp,{"data-testid":b("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(Yp,{"data-testid":b("sub-account-row-container",i),onClick:()=>y?.(i),children:[t.jsx(Zp,{isClickable:C,isSticky:o,windowSize:v,bgColor:n,containerHeight:r,children:t.jsx(Qp,{title:T,children:t.jsx(oi,{displayName:T,depth:S,classDepth:a,isLastNode:w,hasChildren:C,hasSiblings:$,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:L.subAccountAncestorMetadata,classAnscestorMetadata:L.classAncestorMetadata??[],noMarginForAccount:u})})}),be(e)===!0?t.jsx(Up,{children:s.map((R,V)=>t.jsx(Jp,{type:e,isActualVsForecastOn:c,compareMode:h,balance:R,account:m?.account,showTotal:!x,onAccountBalanceClick:k==null?void 0:(Y,U)=>{k(i,Y,U)}},V))}):null]}),t.jsx(eg,{isScrolling:p,isLeaf:f,isOpen:x,depth:S,isSticky:o,classDepth:a,noMarginForAccount:u})]})}function eg({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:a,noMarginForAccount:s}){return o&&i!==!0?null:t.jsx(ke,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:a,noMarginForAccount:s}})}const tg=[10,14,20,20,20],ng=l.div`
2632
+ display: flex;
2633
+ flex: 1 1 auto;
2634
+ width: fit-content;
2635
+ min-width: 100%;
2636
+ flex-direction: column;
2637
+ height: ${e=>e.height-1}px;
2638
+ background-color: ${e=>e.bgColor?.hex()};
2639
+ `,og=l.div`
2640
+ user-select: none;
2641
+ display: flex;
2642
+ flex: 1 1 auto;
2643
+ flex-flow: row;
2644
+ justify-content: flex-start;
2645
+ align-items: center;
2646
+ `,ig=l.div`
2647
+ width: ${e=>Xo.emptyLeftContainer.valuePx(e.windowSize)};
2648
+ height: ${d.sp1};
2649
+ `,rg=l.div`
2650
+ display: flex;
2651
+ flex: 1 0 auto;
2652
+ flex-direction: row;
2653
+ justify-content: flex-end;
2654
+ `,ag=l.div`
2655
+ display: flex;
2656
+ flex-direction: row;
2657
+ justify-content: flex-start;
2658
+ `,pt=l(B)`
2659
+ user-select: none;
2660
+ min-width: ${j.balanceWidth};
2661
+ max-width: ${j.balanceWidth};
2662
+ text-align: right;
2663
+ margin-left: ${j.balanceLeftMargin};
2664
+ color: ${e=>e.theme.colors.primary};
2665
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2666
+ `,lg=l.div`
2667
+ display: flex;
2668
+ flex-direction: row;
2669
+ flex-shrink: 2;
2670
+ flex-grow: 1;
2671
+ align-items: center;
2672
+ height: ${e=>e.containerHeight-1}px;
2673
+ width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2674
+ max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2675
+ background-color: ${e=>e.bgColor?.hex()};
2676
+ ${({isSticky:e})=>e?D`
2677
+ position: -webkit-sticky;
2678
+ position: sticky;
2679
+ top: ${d.sp0};
2680
+ left: ${d.sp0};
2681
+ `:null}
2682
+ `,sg=l(B)`
2683
+ user-select: none;
2684
+ clear: both;
2685
+ display: inline-block;
2686
+ overflow: hidden;
2687
+ white-space: nowrap;
2688
+ text-overflow: ellipsis;
2689
+ text-align: left;
2690
+ margin-left: ${e=>tg[e.depth]}px;
2691
+ color: ${e=>e.theme.colors.primary};
2692
+ width: ${e=>j.titleWidth.value(e.windowSize)-80*e.depth}px;
2693
+ `,cg=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(ag,{"data-testid":b("sub-account-row-balance-element",e),children:[se(e)===!0||o?t.jsx(pt,{"data-testid":b("sub-account-row-balance-element-actual",e),isClickable:!1,children:qo(n)}):t.jsx(pt,{"data-testid":b("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Ht(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(pt,{"data-testid":b("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Ht(n)}),t.jsx(pt,{"data-testid":b("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?Zo(n):Qo(n)})]}):null]});function dg({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:a,accountBalances:s,account:c,noMarginForAccount:h,isActualVsForecastOn:g,compareMode:p,isScrolling:u,metadata:f}){const x=W(),w=M.getLocalizedStrings().reports.sections,m=c!=null?c.id.length-1:0,k=f;return t.jsxs(ng,{height:i,bgColor:n,children:[t.jsxs(og,{children:[t.jsxs(lg,{isSticky:o,windowSize:x,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(ti,{ancestorMetadata:k.classAncestorMetadata??[],depth:r,name:a}):h===!1?t.jsx(ig,{windowSize:x}):null,t.jsx(ni,{ancestorMetadata:k.subAccountAncestorMetadata,depth:m,name:a}),t.jsx(sg,{"data-testid":b("sub-account-row-name",e),isClickable:!1,title:a,depth:m,windowSize:x,children:w.totalPrefix+" "+a})]}),be(e)===!0?t.jsx(rg,{children:s.map((y,v)=>t.jsx(cg,{type:e,isActualVsForecastOn:g,compareMode:p,balance:y},v))}):null]}),t.jsx(hg,{isScrolling:u,nestingLevel:m,isSticky:o,classDepth:r,noMarginForAccount:h})]})}function hg({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(ke,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}})}const ug=l.div`
2694
+ user-select: none;
2695
+ display: flex;
2696
+ flex: 1 1 auto;
2697
+ width: fit-content;
2698
+ min-width: 100%;
2699
+ height: ${e=>e.height}px;
2700
+ flex-flow: row;
2701
+ justify-content: flex-start;
2702
+ align-items: center;
2703
+ background-color: ${e=>e.bgColor?.hex()};
2704
+ `,pg=l.div`
2705
+ display: flex;
2706
+ flex: 1 0 auto;
2707
+ flex-direction: row;
2708
+ justify-content: flex-end;
2709
+ `,He=j.balanceWidthInPx+j.balanceLeftMarginInPx,lr=l.div`
2710
+ display: flex;
2711
+ max-height: 54px;
2712
+ min-height: 54px;
2713
+ min-width: ${e=>e.isActualVsForecastOn?3*(He-2)-j.balanceLeftMarginInPx:j.balanceWidthInPx}px;
2714
+ justify-content: center;
2715
+ align-items: center;
2716
+ background-color: ${e=>e.theme.colors.background};
2717
+ border: 1px solid ${e=>e.theme.colors.grey3};
2718
+ border-radius: ${d.sp2};
2719
+ margin-left: ${e=>e.isActualVsForecastOn?_[0]:j.balanceLeftMarginInPx}px;
2720
+ color: ${e=>e.theme.colors.primary};
2721
+ `,sr=l(B)`
2722
+ display: flex;
2723
+ user-select: none;
2724
+ flex-direction: row;
2725
+ justify-content: center;
2726
+ align-items: center;
2727
+ height: ${j.balanceHeight};
2728
+ max-width: ${j.balanceWidthInPx-2}px;
2729
+ width: 138px;
2730
+ text-align: center;
2731
+ `,gg=l.div`
2732
+ height: 100%;
2733
+ display: inline-block;
2734
+ flex-direction: row;
2735
+ align-items: center;
2736
+ min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2737
+ color: ${e=>e.theme.colors.grey5};
2738
+ background-color: ${e=>e.bgColor?.hex()};
2739
+ border: 1px solid ${e=>e.bgColor?.hex()};
2740
+ ${({isSticky:e})=>e?D`
2741
+ position: -webkit-sticky;
2742
+ position: sticky;
2743
+ top: ${d.sp0};
2744
+ left: ${d.sp0};
2745
+ z-index: 20;
2746
+ `:null}
2747
+ `,fg=l.div`
2748
+ display: flex;
2749
+ width: ${e=>e.isActualVsForecastOn?3*He:He}px;
2750
+ flex-direction: row;
2751
+ justify-content: flex-start;
2752
+ color: ${e=>e.theme.colors.champion};
2753
+ `,Et=l(B)`
2754
+ display: flex;
2755
+ justify-content: flex-end;
2756
+ align-items: center;
2757
+ height: ${j.balanceHeight};
2758
+ width: ${j.balanceWidth};
2759
+ min-width: ${j.balanceWidth};
2760
+ margin-left: ${j.balanceLeftMargin};
2761
+ margin-top: ${d.sp3};
2762
+ `,xg=l.div`
2763
+ display: flex;
2764
+ max-height: 54px;
2765
+ min-height: 54px;
2766
+ justify-content: center;
2767
+ align-items: center;
2768
+ color: ${e=>e.theme.colors.champion};
2769
+ `,mg=l.div``,wg=l(B)`
2770
+ display: flex;
2771
+ justify-content: center;
2772
+ align-items: center;
2773
+ max-height: 54px;
2774
+ min-height: 54px;
2775
+ background-color: ${e=>e.theme.colors.background};
2776
+ border: 1px solid ${e=>e.theme.colors.grey3};
2777
+ border-radius: ${d.sp2};
2778
+ margin-left: ${j.balanceLeftMarginInPx}px;
2779
+ color: ${e=>e.theme.colors.primary};
2780
+ width: ${j.balanceWidth};
2781
+ min-width: ${j.balanceWidth};
2782
+ `,yg=l.div`
2783
+ display: flex;
2784
+ width: ${e=>e.isActualVsForecastOn?3*He:He}px;
2785
+ flex-direction: column;
2786
+ align-items: flex-end;
2787
+ `,bg=l.div`
2788
+ max-height: 54px;
2789
+ min-height: 54px;
2790
+ `,cr=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const a=M.getLocalizedStrings().reports,s=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:Uo(o,e,n,r,i),c=s!=null?s==="under_review"?a.bookCloseTagUnderReview:a.bookCloseTagInProgress:void 0,h=Yi(s,o);return t.jsx(bg,{children:r!=null&&i!=null&&s!=null&&c!=null&&h!=null?t.jsx(Ki,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:c,infoContent:h,tagType:s}):t.jsx(lr,{isActualVsForecastOn:!1,children:t.jsx(sr,{children:Ue(e,n,o)})})})},kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:a,bookCloseDate:s,onCompareModeChanged:c})=>{const h=M.getLocalizedStrings().reports.forecast,g=r==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(yg,{isActualVsForecastOn:i,children:[t.jsx(lr,{isActualVsForecastOn:i,children:t.jsx(sr,{children:Ue(e,n,o)})}),t.jsxs(fg,{isActualVsForecastOn:i,children:[t.jsx(Et,{children:h.actual}),t.jsx(Et,{children:h.forecast}),t.jsx(Et,{children:t.jsx(On,{title:g,titleTextStyle:cn.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?c?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(cr,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:a,bookCloseDate:s})},Sg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:a,onCompareModeChanged:s})=>{const c=ue(),h=i==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return t.jsx(xg,{children:n.map((g,p)=>t.jsx(N.Fragment,{children:g.balanceType==="this_period_vs_last_period"||g.balanceType==="this_period_vs_last_period_percent"?t.jsx(wg,{children:t.jsx(On,{title:h,titleTextStyle:cn.standardRegular,titleTextAlignment:"flex-end",titleColor:c.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:u=>{u!=="off"&&(u==="compare_mode_amount"||u==="compare_mode_percent"?s?.(u):console.warn("Invalid compare mode option"))}})}):t.jsx(mg,{children:t.jsx(cr,{firstMonthOfFY:e,timeframeTick:g,timeframe:o,dataAvailable:r,bookCloseDate:a},p)})},p))})};function jg({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:a,firstMonthOfFY:s,timeframe:c,timeframeTicks:h,compareMode:g,dataAvailable:p,bookCloseDate:u,onCompareModeChanged:f}){const x=W();return t.jsxs(ug,{height:i,bgColor:n,children:[me(e)===!0?t.jsx(gg,{isSticky:o,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(pg,{children:a===!0?t.jsx(Sg,{firstMonthOfFY:s,timeframe:c,timeframeTicks:h,compareMode:g,dataAvailable:p,bookCloseDate:u,onCompareModeChanged:f}):h.map((w,m)=>t.jsx(kg,{firstMonthOfFY:s,timeframeTick:w,timeframe:c,isActualVsForecastOn:r,compareMode:g,dataAvailable:p,bookCloseDate:u,onCompareModeChanged:f},m))})]})}const Mt=(e,n,o,i,r,a,s,c,h,g,p)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const u=o.element.data,f=oe((Ye(o.config.reportId)===!0||Ho(o.config.reportId)===!0?Bi(0,o.config.filterAccountsWithNilBalances):wt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(u),o.config.displayOrder,o.element.numOfBalances);return t.jsx(vp,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:f.balances,isScrolling:s,isLeaf:c,isLastNode:h,account:u,onAccountBalanceClick:p==null?void 0:(x,w,m)=>{p?.(x,w,m)}})},qe=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const f=o.element.data,x=nr(Nn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances),w=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,m=o.config.reportId==="operating_expenses";return t.jsx(Xp,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:w,compareMode:p,accountBalances:x.balances,isScrolling:s,isLeaf:c,isOpen:h,isLastNode:g,account:f,metadata:o.element.metadata,onClick:u,noMarginForAccount:m,onAccountBalanceClick:u==null?void 0:(k,y,v)=>{u?.(k,y,v)}})},Nt=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const f=o.element.data,x=oe(wt(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances);return t.jsx(rp,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,leftChevron:c?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:w=>{u?.(w)}})},Pn=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const f=o.element.data,x=oe(Nn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(f),o.config.displayOrder,o.element.numOfBalances);return t.jsx(fp,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,leftChevron:c?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:w=>{u?.(w)}})},zn=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="section"||o.element.data==null)return null;const f=an(o.element.title),x=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Wn,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:w=>{u?.(w)}})},Wt=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const f=an(o.element.title),x=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Wn,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:w=>{u?.(w)}})},Fn=(e,n,o,i,r,a,s,c,h,g,p,u)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const f=an(o.element.title),x=oe(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Wn,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:f,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:x.balances,isScrolling:s,isOpen:c,isLeaf:h,isLastNode:g,onClick:w=>{u?.(w)}})},Ze=(e,n,o,i,r,a,s,c,h)=>{if(n.element.kind!="ac_subentity_total")return null;const g=n.element.data,p=Nn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),u=g.account.classesViewParentId?.parentClassId!=null?g.account.classesViewParentId?.parentClassId.length-1:void 0,f=nr(p.acBalanceSelector(g),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(dg,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:g.account.accountName,account:g,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:a,noMarginForAccount:x,isLeaf:s,isLastNode:c,metadata:n.element.metadata,classDepth:u})},Qe=(e,n,o,i,r,a,s,c)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const h=Pe(o.element.data,o.config.displayOrder),g=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(u=>We(u));return t.jsx(jg,{treeNodeId:e,backgroundColor:r,isSticky:a,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:g,timeframeTicks:p,compareMode:s,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:c})},dr=(e,n,o,i,r,a,s,c,h,g,p,u,f)=>{if(o.element.kind!="class"||o.element.data==null)return null;const x=o.element.data,w=oe(x.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),m=p>1;return t.jsx(Pp,{type:n,backgroundColor:r,isSticky:a,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:u,sectionBalances:w.balances,isScrolling:s,isOpen:c,isLeaf:h,hasChildren:x.children.length>0,isLastNode:g,isSubClass:m,showClassAccountNumber:o.config.showClassAccountNumber,onClick:k=>{f?.(k)},metadata:o.element.metadata})},Ao=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:a,isLastNode:s,nestingLevel:c,isFirstNode:h},isOpen:g,style:p,setOpen:u,isScrolling:f}=e,x=e.treeNodePadding?.left,w=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:w},children:t.jsx(hr,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:a,isLastNode:s,isFirstNode:h,isOpen:g,nestingLevel:c,nodeClickHandler:e.onNodeClick==null&&a?void 0:(m,k,y)=>{const v=a?g:!g;a||y!=null||(u(!g),e.onNodeCollapseToggled?.(m,!g)),e.onNodeClick?.(m,v,k,y)},compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},hr=e=>e.treeKind==="name_only"?t.jsx(Bg,{...e}):xn(e.reportElementData.config.reportId)?t.jsx(Og,{...e}):mn(e.reportElementData.config.reportId)===!0?t.jsx(Ag,{...e}):Ho(e.reportElementData.config.reportId)===!0?t.jsx(vg,{...e}):gn(e.reportElementData.config.reportId)===!0?t.jsx(Cg,{...e}):Ye(e.reportElementData.config.reportId)===!0?t.jsx(_g,{...e}):fn(e.reportElementData.config.reportId)===!0?t.jsx($g,{...e}):Er(e.reportElementData.config.reportId)===!0?t.jsx(Lg,{...e}):wn(e.reportElementData.config.reportId)===!0?t.jsx(Ig,{...e}):yn(e.reportElementData.config.reportId)===!0?t.jsx(Mg,{...e}):null,vg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,nestingLevel:p,compareMode:u,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Mt(e,n,o,i,r,a,s,c,h,u,f);case"ac_group_report":return Nt(e,n,o,i,r,a,s,g,c,h,u,f);case"section":return zn(e,n,o,i,r,a,s,g,c,h,u,f);case"section_with_ac_only":return Wt(e,n,o,i,r,a,s,g,c,h,u,f);case"calculated_section":case"calculated_section_type1":return Fn(e,n,o,i,r,a,s,g,c,h,u,f);case"title_string_only":default:return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Qe(e,n,o,i,r,a,u,x);case"class":return dr(e,n,o,i,r,a,s,g,c,h,p,u,f);case"ac_subaccount":return qe(e,n,o,i,r,a,s,c,g,h,u,f);case"ac_subentity_total":return Ze(n,o,i,r,a,s,c,h,u);case"headers_loading_in_progress":return((w,m,k)=>w.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ii,{height:m,backgroundColor:k,numOfBalances:w.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((w,m,k)=>w.element.kind!=="loading_in_progress"?null:t.jsx(Ai,{height:m,backgroundColor:k,title:w.element.title,numOfBalances:w.element.numOfBalances}))(o,i,r)}},Cg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,compareMode:p,nodeClickHandler:u,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Mt(e,n,o,i,r,a,s,c,h,p,u);case"ac_group_report":return Nt(e,n,o,i,r,a,s,g,c,h,p,u);case"ac_subaccount":return qe(e,n,o,i,r,a,s,c,g,h,p,u);case"ac_group_subaccount":return Pn(e,n,o,i,r,a,s,g,c,h,p,u);case"section":return zn(e,n,o,i,r,a,s,g,c,h,p,u);case"section_with_ac_only":return Wt(e,n,o,i,r,a,s,g,c,h,p,u);case"calculated_section":case"calculated_section_type1":return Fn(e,n,o,i,r,a,s,g,c,h,p,u);case"title_string_only":default:return null;case"ac_subentity_total":return Ze(n,o,i,r,a,s,c,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Qe(e,n,o,i,r,a,p,f)}},_g=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,nestingLevel:p,compareMode:u,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return Mt(e,n,o,i,r,a,s,c,h,u,f);case"ac_group_report":return Nt(e,n,o,i,r,a,s,g,c,h,u,f);case"section":return Wi(e,n,o,i,r,a,s,g,c,h,u,f);case"section_with_ac_only":return Wt(e,n,o,i,r,a,s,g,c,h,u,f);case"calculated_section":case"calculated_section_type1":return Pi(e,n,o,i,r,a,s,g,c,h,u,f);case"title_string_only":return vn(e,n,o,i,r,a,s,g,c,h,u,f);case"ac_subentity_total":return Ze(n,o,i,r,a,s,c,h,u);case"timeframe_headers":case"timeframe_headers_with_forecast":return Qe(e,n,o,i,r,a,u,x);case"class":return dr(e,n,o,i,r,a,s,g,c,h,p,u,f);case"ac_subaccount":return qe(e,n,o,i,r,a,s,c,g,h,u,f);case"total":return zi(e,n,o,i,r,a,u,c);case"headers_loading_in_progress":return((w,m,k)=>w.element.kind!=="headers_loading_in_progress"?null:t.jsx(Ii,{height:m,backgroundColor:k,numOfBalances:w.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((w,m,k)=>w.element.kind!=="loading_in_progress"?null:t.jsx(Ai,{height:m,backgroundColor:k,title:w.element.title,numOfBalances:w.element.numOfBalances}))(o,i,r);default:return null}},$g=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,compareMode:p,nodeClickHandler:u,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return((x,w,m,k,y,v,S,$,C,L,O)=>{if(m.element.kind!="ac_report"||m.element.data==null)return null;const P=m.element.data,T=oe((Ye(m.config.reportId)===!0?Bi(0,m.config.filterAccountsWithNilBalances):wt(m.element.sectionType,"no_filter",m.config.filterAccountsWithNilBalances,m.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(P),m.config.displayOrder,m.element.numOfBalances);return t.jsx(lc,{type:w,backgroundColor:y,isSticky:v,treeNodeId:x,height:k,accountBalances:T.balances,isCompareModeOn:m.config.mode==="this_period_vs_period_before",isForecastModeOn:m.config.mode==="actual_vs_forecast",isScrolling:S,isLeaf:$,isLastNode:C,compareMode:L,account:P,onAccountBalanceClick:O==null?void 0:(R,V,Y)=>{O?.(R,V,Y)}})})(e,n,o,i,r,a,s,c,h,p,u);case"ac_group_report":return((x,w,m,k,y,v,S,$,C,L,O,P)=>{if(m.element.kind!="ac_group_report"||m.element.data==null)return null;const T=m.element.data,R=oe(wt(m.element.sectionType,"no_filter",m.config.filterAccountsWithNilBalances,m.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(T),m.config.displayOrder,m.element.numOfBalances);return t.jsx(Qs,{type:w,backgroundColor:y,isSticky:v,treeNodeId:x,height:k,accountGroupName:T.accountGroupName,compareMode:O,accountGroupBalances:R.balances,isScrolling:S,isOpen:$,isLeaf:C,isLastNode:L,onClick:V=>{P?.(V)}})})(e,n,o,i,r,a,s,g,c,h,p,u);case"ac_subaccount":return qe(e,n,o,i,r,a,s,c,g,h,p,u);case"ac_group_subaccount":return Pn(e,n,o,i,r,a,s,g,c,h,p,u);case"section":return Wi(e,n,o,i,r,a,s,g,c,h,p,u);case"section_with_ac_only":return((x,w,m,k,y,v,S,$,C,L,O,P)=>{if(m.element.kind!="section_with_ac_only"||m.element.data==null)return null;const T=$n(m.config.reportId,m.element.sectionType),R=oe(m.element.data,m.config.displayOrder,m.element.numOfBalances);return t.jsx(_n,{type:w,backgroundColor:y,isSticky:v,treeNodeId:x,height:k,sectionName:m.element.title,sectionColor:T.color,sectionBalances:R.balances,isScrolling:S,isOpen:$,isLeaf:C,isLastNode:L,compareMode:O,onClick:V=>{P?.(V)}})})(e,n,o,i,r,a,s,g,c,h,p,u);case"calculated_section":case"calculated_section_type1":return Pi(e,n,o,i,r,a,s,g,c,h,p,u);case"title_string_only":return vn(e,n,o,i,r,a,s,g,c,h,p,u);case"total":return zi(e,n,o,i,r,a,p,c);case"ac_subentity_total":return Ze(n,o,i,r,a,s,c,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Qe(e,n,o,i,r,a,p,f);default:return null}},Lg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,compareMode:p,nodeClickHandler:u,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return Mt(e,n,o,i,r,a,s,c,h,p,u);case"ac_group_report":return Nt(e,n,o,i,r,a,s,g,c,h,p,u);case"section":return zn(e,n,o,i,r,a,s,g,c,h,p,u);case"section_with_ac_only":return Wt(e,n,o,i,r,a,s,g,c,h,p,u);case"calculated_section":return Fn(e,n,o,i,r,a,s,g,c,h,p,u);case"calculated_section_type1":return((x,w,m,k,y,v,S)=>{if(w.element.kind!="calculated_section_type1"||w.element.data==null)return null;const $=oe(w.element.data,w.config.displayOrder,w.element.numOfBalances);return t.jsx(hs,{backgroundColor:k,isSticky:y,treeNodeId:x,heading:w.element.title,totalBalances:$.balances,height:m,isScrolling:v,isLastNode:S})})(e,o,i,r,a,s,h);case"title_string_only":return vn(e,n,o,i,r,a,s,g,c,h,p,u);case"ac_subentity_total":return Ze(n,o,i,r,a,s,c,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Qe(e,n,o,i,r,a,p,f);case"ac_subaccount":return qe(e,n,o,i,r,a,s,c,g,h,p,u);case"ac_group_subaccount":return Pn(e,n,o,i,r,a,s,g,c,h,p,u);default:return null}},Bg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLeaf:c,isLastNode:h,isOpen:g,toggleCheckHandler:p})=>o.element.kind==="checkbox_and_name_only"?((u,f,x,w,m,k,y,v,S,$,C)=>{if(x.element.kind!="checkbox_and_name_only")return null;const L=x.element.data,O=x.config.isClassToBeFilteredOut?.(L.classId)===!1;return t.jsx(Dh,{type:f,backgroundColor:m,isSticky:k,treeNodeId:u,classId:L.classId,isChecked:O,isDisabled:!1,height:w,isScrolling:y,nestedClass:L,isOpen:v,isLeaf:S,isLastNode:$,showClassAccountNumber:x.config.showClassAccountNumber,onToggleCheck:C})})(e,n,o,i,r,a,s,g,c,h,p):null,Ag=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:a,isScrolling:s,isLastNode:c,compareMode:h,onCompareModeChanged:g})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return((p,u,f,x)=>{if(p.element.kind!=="loading_in_progress")return null;const w=Pe(p.element.data,p.config.displayOrder).map(m=>We(m));return t.jsx(Kh,{backgroundColor:f,isSticky:x,height:u,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:w})})(o,i,r,a);case"timeframe_headers":return((p,u,f,x,w,m)=>{if(p.element.kind!=="timeframe_headers")return null;const k=Pe(p.element.data,p.config.displayOrder),y=k.length>0?k[0].balanceTimeFrame:"month",v=k.map(S=>We(S));return t.jsx(yu,{backgroundColor:w,isSticky:f,height:u,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:p.config.mode==="this_period_vs_period_before"&&v.length>1,firstMonthOfFY:p.config.firstMonthOfFY,timeframe:y,timeframeTicks:v,sortKey:p.config.opexByVendorConfig?.sortKey,sortOrder:p.config.opexByVendorConfig?.sortOrder,dataAvailable:p.config.dataAvailable,bookCloseDate:p.config.bookCloseDate,compareMode:x,onCompareModeChanged:m,onSortOrderChanged:p.config.opexByVendorConfig?.onSortOrderChanged})})(o,i,a,h,r,g);case"total":return((p,u,f,x,w,m,k)=>{const y=f.element.data,v=f.config.mode==="this_period_vs_period_before",S=v?f.element.numOfBalances+2:f.element.numOfBalances+1,$=lo(y,f.config.displayOrder,S,v);return t.jsx(Ou,{type:u,backgroundColor:k,isSticky:w,treeNodeId:p,height:x,isScrolling:m,totalBalances:$.balances,title:f.element.title,isAccountColumnShown:f.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:f.config.opexByVendorConfig?.isClassColumnShown??!0})})(e,n,o,i,a,s,r);case"vendor_row":return((p,u,f,x,w,m,k)=>{if(u.element.kind!="vendor_row"||u.element.data==null)return null;const y=u.element.data,v=u.config.mode==="this_period_vs_period_before",S=lo(y,u.config.displayOrder,u.element.numOfBalances,v);return t.jsx(Yu,{type:p,backgroundColor:x,isSticky:w,height:f,isScrolling:m,vendor:y.vendor,accountBase:y.account,classBase:y.classBase,isLastNode:k,balances:S.balances,isAccountColumnShown:u.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:u.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:($,C)=>{u.config.opexByVendorConfig?.onVendorNameAndBalanceClicked($,C)}})})(n,o,i,r,a,s,c);case"title_string_only":return((p,u,f,x)=>{if(p.element.kind!=="title_string_only")return null;const w=Pe(p.element.data,p.config.displayOrder).map(m=>We(m));return t.jsx(Jh,{backgroundColor:f,isSticky:x,height:u,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:w})})(o,i,r,a);default:return null}},Og=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:a,isScrolling:s,isLastNode:c,backgroundColor:h,nodeClickHandler:g})=>{const{config:p}=o;switch(o.element.kind){case"spacer_row":default:return null;case"timeframe_headers":return((u,f,x,w,m,k,y)=>{if(u.element.kind!=="timeframe_headers")return null;const v=u.element.data;return t.jsx(bl,{reportId:u.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:v,backgroundColor:x,isSticky:w,height:f,sortKey:m,sortOrder:k,onSortOrderChanged:y})})(o,i,h,a,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return((u,f,x,w,m)=>{const k=f.element.data;return t.jsx(Fl,{type:u,backgroundColor:w,isSticky:m,height:x,totalBalances:k,isIndented:f.config.reportId==="accounts_receivable_aging",title:f.element.title})})(n,o,i,h,a);case"aging_report_row":return((u,f,x,w,m,k,y,v,S,$)=>{if(f.element.kind!=="aging_report_row")return null;if(f.config.reportId==="accounts_payable_aging"){const L=f.element.data;return t.jsx(hl,{backgroundColor:v,isLastNode:k,isScrolling:y,isSticky:m,height:x,balances:L.apAgingBalances,vendor:L.vendor,total:L.total,onEntityNameClick:S})}const C=f.element.data;return t.jsx(ul,{treeNodeId:u,backgroundColor:v,isLastNode:k,isScrolling:y,isSticky:m,isOpen:w,height:x,metadata:f.element.metadata,balances:C.arAgingBalances,nestedCustomer:C,total:C.total,totalWithChildren:C.totalWithChildren,onEntityNameClick:S,onClick:$})})(e,o,i,r,a,c,s,h,p.agingReportConfig?.onEntityNameClick,g);case"ac_subentity_total":return((u,f,x,w,m)=>{if(u.element.kind!=="ac_subentity_total")return null;if(u.config.reportId==="accounts_receivable_aging"){const k=u.element.data;return t.jsx(Bl,{backgroundColor:m,isScrolling:w,isSticky:x,height:f,metadata:u.element.metadata,nestedCustomer:k,total:k.totalWithChildren,noMarginForEntity:!0})}return null})(o,i,a,s,h)}},Ig=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:a,isLeaf:s,isLastNode:c,isFirstNode:h,isOpen:g,onFluxBalanceClick:p,nodeClickHandler:u,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return((x,w,m,k,y,v,S,$,C)=>{if(!An(w,"flux_vendor_account_class_row"))return null;const L=w.element.data,O=Hi(L),P=w.element.metadata.vendorId;return t.jsx(ld,{backgroundColor:m,isSticky:k,treeNodeId:x,balances:O,varianceAmount:L.varianceAmount,variancePercentage:L.variancePercentage,currency:L.currency,isScrolling:y,isLeaf:v,isLastNode:S,nodeMetadata:w.element.metadata,accountAndClass:L,onAccountAndClassBalanceClick:()=>C?.(P),isHoveredByParent:$?.hoveredParentId===P})})(e,n,i,r,a,s,c,f,p);case"flux_vendor_row":return Mh(e,n,i,r,a,g,s,c,h,f,u);case"section":return Nh(e,n,o,i,r,a,g,s,c,u);case"timeframe_headers":return((x,w,m)=>{if(x.element.kind!=="timeframe_headers")return null;const k=Pe(x.element.data,x.config.displayOrder),y=k.length>0?k[0].balanceTimeFrame:"month",v=k.map(S=>We(S));return t.jsx(Zd,{isSticky:m,height:w,firstMonthOfFY:x.config.firstMonthOfFY,timeframe:y,timeframeTicks:v,isBulkSelected:x.config.fluxAnalysisConfig?.reviewOpExIds.length===20,onSortOrderChanged:(S,$)=>{x.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),x.config.fluxAnalysisConfig?.onSortOrderChanged(S,$)},sortOrder:x.config.fluxAnalysisConfig?.sortOrder,sortKey:x.config.fluxAnalysisConfig?.sortKey})})(n,o,r);case"total":return((x,w)=>{if(x.element.kind!=="total")return null;const m=x.element.data;return t.jsx(lh,{type:"name+balances_actual",title:x.element.title,totalBalances:m.balances,varianceAmount:m.varianceAmount,variancePercentage:m.variancePercentage,currency:m.currency,height:w})})(n,o);case"loading_in_progress":return(x=>x.element.kind!=="loading_in_progress"?null:t.jsx(cd,{}))(n);case"headers_loading_in_progress":return(x=>x.element.kind!=="headers_loading_in_progress"?null:t.jsx(Nd,{}))(n);default:return null}},Mg=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return function(r,a){if(r.element.kind!=="timeframe_headers")return null;const s=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,c=r.element.data,h=c.accountIDs.length===0;return t.jsx(La,{sectionTitle:s.section[c.sectionId].title,isLoading:h,isSticky:a,height:gt("timeframe_headers")})}(e,o);case"loading_in_progress":return t.jsx(ua,{height:gt("loading_in_progress")});case"total":return((r,a,s)=>{const c=r.element.data;return t.jsx(Ka,{isSticky:s,height:a,sectionData:c})})(e,n,o);case"section":return t.jsx(ga,{height:gt("section")});case"title_string_only":return((r,a)=>{const s=r.element.data,c=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Oa,{height:a,title:c.section[s.sectionId].title})})(e,n);case"ac_group_report":return((r,a,s)=>{const c=r.element.data,h=r.config.accountReconciliationConfig?.selectedDrawerAccountId!=null&&c.accountReconEntity.account.accountId===r.config.accountReconciliationConfig?.selectedDrawerAccountId;return t.jsx(Yr,{height:a,accountRecon:c,isLastRow:s,isSelectedRow:h,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 Oo(e,n,o,i){return{data:{defaultHeight:Tn(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??Ng(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 Tn(e,n,o){return gn(e)===!0?function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":return _[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 _[6];case"timeframe_headers":case"headers_loading_in_progress":return _[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):fn(e)===!0||Ye(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 _[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"loading_in_progress":case"class":case"checkbox_and_name_only":return _[6];case"timeframe_headers":case"headers_loading_in_progress":return _[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):xn(e)?function(i){switch(i){case"timeframe_headers":return _[10];case"aging_report_row":case"ac_subentity_total":return _[6];case"total":case"spacer_row":return _[8];default:return _[0]}}(n):yn(e)?gt(n):mn(e)?function(i){switch(i){case"timeframe_headers":return _[11];case"vendor_row":case"loading_in_progress":return _[6];case"total":case"spacer_row":case"title_string_only":return _[8];default:return 0}}(n):wn(e)?Ri(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 _[8];case"calculated_section_type1":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"total":return _[6];case"title_string_only":return 67;case"timeframe_headers":return _[11];default:return _[0]}}(n)}function Ng(e,n,o,i){return gn(e)?function(r,a,s=0){const c=["summary"];switch(r){case"section":case"section_with_ac_only":case"title_string_only":return!c.includes(a);case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_report":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"ac_group_subaccount":case"ac_subaccount":case"ac_subentity_total":return!(c.includes(a)||a==="detailed"&&s>0);case"class":return!(a==="detailed"&&s>0);case"checkbox_and_name_only":return!0}}(n,i,o):fn(e)||Ye(e)===!0?function(r,a){const s=["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!s.includes(a);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):!!xn(e)||!mn(e)&&(wn(e)?function(r){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(r)}(n):yn(e)?Kr():function(r,a){const s=["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!s.includes(a);default:return!1}}(n,i))}const Wg=l.div`
2791
+ top: 0;
2792
+ left: 0;
2793
+ position: sticky !important;
2794
+ position: -webkit-sticky !important;
2795
+ min-height: ${e=>e.heightValue}px;
2796
+ max-height: ${e=>e.heightValue}px;
2797
+ width: fit-content;
2798
+ min-width: 100%;
2799
+ z-index: 2;
2800
+ display: flex;
2801
+ flex-direction: column;
2802
+ align-items: center;
2803
+ background-color: ${e=>e.bgColor?.hex()};
2804
+ box-sizing: border-box;
2805
+ `;function Pg({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:a,onCompareModeChanged:s}){return o.length===0?null:(o.forEach(c=>{if(c.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Wg,{heightValue:e,bgColor:n,"data-testid":b("sticky-header-report-tree"),children:o.map((c,h)=>t.jsx(hr,{id:c.id,treeKind:i,reportElementData:c.reportElementData,height:Tn(c.reportElementData.config.reportId,c.reportElementData.element.kind,c.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:a,onCompareModeChanged:s},c.id))}))}const ur=N.createContext(void 0);function zg({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:a,treeNodePadding:s,treeClassName:c,treeStyle:h,treeRef:g,treeOuterElementRef:p,infiniteLoadingProps:u,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:w,scrollPosition:m,onScroll:k,nodeOpenStatus:y,onNodeCollapseToggled:v,onTreeInnerElementHeightChanged:S,onToggleCheck:$,hoveredParentIdProps:C}){const L=N.useRef(null),O=N.useRef(null),P=Vn(f?.prevFetchState),T=Vn(f?.prevRefreshFetchState),[R,V]=N.useState(0),Y=p??O,U=g??L,Q=W(),[de,Ae]=N.useState(void 0),[Je,Xe]=N.useState(!1),[Ce,et]=N.useState(y),he=(F,J)=>{et(Object.assign({},Ce,{[F]:J})),v?.(F,J)},le=F=>{if(o.contentNodes.length>0)if(Object.keys(F).length>0){const J={};Object.keys(F).forEach(fe=>{J[fe]={open:F[fe]}}),U?.current?.recomputeTree(J)}else{const J=o.contentNodes[0].id;U?.current?.recomputeTree({[J]:{open:!0}})}};N.useLayoutEffect(()=>{if((!Dn(m,de)||de==null)&&Y.current!=null){const F=m?.scrollLeft==null?Q==="small"?0:Y.current.scrollWidth:m?.scrollLeft;if(m!=null){const J={scrollTop:m.scrollTop,scrollLeft:F};Ae(J),F!==m?.scrollLeft&&k?.(J)}Y.current.scroll({left:F,top:m?.scrollTop})}},[m]),N.useEffect(()=>{Dn(y,Ce)||(et(y),le(y))},[y]),N.useEffect(()=>{const F=Y.current,J=xr(()=>{if(F!=null&&(de==null||F.scrollLeft!==de.scrollLeft||F.scrollTop!==de.scrollTop)){const fe={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};Ae(fe),k?.(fe)}},50);return F?.addEventListener("scroll",J),()=>{F?.removeEventListener("scroll",J)}},[Y,de,k]),N.useEffect(()=>{if(o.contentNodes.length>0){le(Ce);const F=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==Je&&Xe(F)}},[Je,Xe,o,U,Y]),N.useEffect(()=>{(f!=null&&P==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&T==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),V(R+1))},[R,f?.fetchState,f?.isSortApplied,P,T,f]);const ie=N.useRef(),[_e,tt]=N.useState(void 0),nt=N.useCallback(((F,J,fe)=>function*(){for(let we=0;we<J.length;++we)yield Oo(J[we],F,0,fe[J[we].id]??void 0);for(;;){const we=yield;for(let ot=0;ot<we.node.children.length;++ot)yield Oo(we.node.children[ot],F,we.nestingLevel+1,fe[we.node.children[ot].id]??void 0)}})(n,o.contentNodes,Ce),[n,o]),pr={rootNodes:o,treeNodePadding:s,backgroundColor:a,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:w};return t.jsx(ur.Provider,{value:pr,"data-testid":b("report-tree"),children:u==null?t.jsx(Zn,{className:c,style:h,ref:U,innerRef:ie,outerRef:Y,innerElementType:tn,treeWalker:nt,onItemsRendered:()=>{const F=ie.current;F!=null&&F.clientHeight>0&&F.clientHeight!=_e&&(tt(F.clientHeight),S?.(F.clientHeight))},height:e,width:"100%",children:F=>t.jsx(Ao,{...F,isSticky:r.isStickyName,backgroundColor:a,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:he,compareMode:i,onCompareModeChanged:w,onToggleCheck:$})}):t.jsx(mr,{isItemLoaded:u.isItemLoaded,itemCount:u.itemCount+1,loadMoreItems:u.loadMoreItems,children:({onItemsRendered:F,ref:J})=>t.jsx(Zn,{className:c,style:h,ref:J,innerRef:ie,outerRef:Y,innerElementType:tn,treeWalker:nt,onItemsRendered:F,height:e,width:"100%",children:fe=>t.jsx(Ao,{...fe,isSticky:r.isStickyName,backgroundColor:a,treeNodePadding:s,onNodeClick:x,onNodeCollapseToggled:he,compareMode:i,onCompareModeChanged:w,onToggleCheck:$,hoveredParentIdProps:C})},R)})})}const tn=N.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:a,treeNodePadding:s,backgroundColor:c,kind:h,isSticky:g,compareMode:p,onCompareModeChanged:u}=N.useContext(ur),f=a.headerNodes.reduce((k,y)=>k+Tn(y.reportElementData.config.reportId,y.reportElementData.element.kind,y.isFirstNode),0),x=s?.left,w=s?.right,m=d.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:w,marginBottom:m},...r,children:[t.jsx(Pg,{height:f,backgroundColor:c,headers:a.headerNodes,treeKind:h,isSticky:g.isStickyHeader,compareMode:p,onCompareModeChanged:u}),o]})});tn.displayName="stickyInnerElementType";const Fg=l.div`
2806
+ display: flex;
2807
+ flex: 1 0 auto;
2808
+ width: ${e=>e.width}px;
2809
+ height: ${e=>e.height}px;
2810
+ padding-left: ${e=>e.paddingLeft}px;
2811
+ background-color: ${e=>e.bgColor?.hex()};
2812
+
2813
+ & .content-scroll {
2814
+ overflow: auto;
2815
+ scrollbar-width: thin;
2816
+ scrollbar-color: transparent transparent;
2817
+ &::-webkit-scrollbar {
2818
+ width: ${d.sp2};
2819
+ height: ${d.sp2};
2820
+ background-color: transparent;
2821
+ }
2822
+ &::-webkit-scrollbar-thumb {
2823
+ background-color: transparent;
2824
+ }
2825
+
2826
+ &:hover {
2827
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
2828
+ &::-webkit-scrollbar {
2829
+ width: ${d.sp2};
2830
+ height: ${d.sp2};
2831
+ background-color: transparent;
2832
+ }
2833
+ &::-webkit-scrollbar-track {
2834
+ box-shadow: inset 0 0 2px ${ne.scrollbarBoxShadow};
2835
+ -webkit-box-shadow: inset 0 0 2px ${ne.scrollbarBoxShadow};
2836
+ background-color: transparent;
2837
+ }
2838
+ &::-webkit-scrollbar-thumb {
2839
+ background-color: ${e=>e.theme.colors.grey1};
2840
+ border-radius: 2px;
2841
+ }
2842
+ }
2843
+ }
2844
+ `;function Yg({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:a,onAccountClick:s,infiniteLoadingProps:c,variableNodeHeightTree:h,hoveredParentIdProps:g,onCompareModeChanged:p,scrollPosition:u,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:w,onReportTableHeightChanged:m,onToggleCheck:k}){return t.jsx(gr,{children:({height:y,width:v})=>t.jsx(Fg,{"data-testid":b("report-tree-container"),height:y,width:v,paddingLeft:a?.left??0,bgColor:r,children:t.jsx(zg,{"data-testid":b("report-tree"),treeClassName:"content-scroll",height:y,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:a!=null?{left:0,right:a?.right}:void 0,infiniteLoadingProps:c,variableNodeHeightTree:h,hoveredParentIdProps:g,onNodeClick:s==null?void 0:(S,$,C,L)=>{C!=null&&L!=null&&s(C,L)},onCompareModeChanged:p,scrollPosition:u,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:w,onTreeInnerElementHeightChanged:m,onToggleCheck:k})})})}export{Ue as B,wt as C,oe as H,Jr as M,Hg as N,Kg as X,Nn as a,ee as b,_c as e,Ge as i,Yg as r};