@zeniai/web-cockpit-ui 1.14.83-dev → 1.14.84-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 (488) hide show
  1. package/dist/assets/ACHDetailsPage-BXgsd50c-BuCiUEId.js +21 -0
  2. package/dist/assets/AIPerformancePage-BdDTidCL-D-IQ6p36.js +539 -0
  3. package/dist/assets/AccountInfoPage-w0STaK9a-BfMIBiEJ.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js +149 -0
  5. package/dist/assets/AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js +239 -0
  7. package/dist/assets/AccountRow-BObEIy6l-CsCw-i7a.js +298 -0
  8. package/dist/assets/AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js +207 -0
  9. package/dist/assets/AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js +6 -0
  10. package/dist/assets/AddToWalletPage-BhphXgem-DR4-yAJW.js +344 -0
  11. package/dist/assets/AgingReportsPage-DEgupWct-SJsZmYxE.js +79 -0
  12. package/dist/assets/AllUserItems-S2DAZpO6-Zcx2jN6k.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-CvDD8-s7-k2W-N5me.js +46 -0
  14. package/dist/assets/AppBasePage-C4z5I-xG-vGdvNBYI.js +71 -0
  15. package/dist/assets/AppDrawerContent-Dka5HlPs-BfBKKeHh.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +47 -0
  17. package/dist/assets/ArAgingChart-CJ7XKU9h-BSixtgVA.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +46 -0
  19. package/dist/assets/AttachmentView-Dg6PizI7-BzoqKbZ4.js +101 -0
  20. package/dist/assets/BankAccountSection-Chay7X-G-vPiVizDl.js +79 -0
  21. package/dist/assets/BankAccountWarningSection-CSChi1lw-BVD5BCv3.js +51 -0
  22. package/dist/assets/BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js +425 -0
  23. package/dist/assets/BillDetailPage-DM06uZnD-BOk9lw2_.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js} +27 -27
  26. package/dist/assets/BillPayPromoPage-Dy-opG76-CZ2iWLB7.js +84 -0
  27. package/dist/assets/BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js +42 -0
  28. package/dist/assets/BillingSettingsPage-wj_sIJgc-Dy0iglvP.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js +1 -0
  30. package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-CdqDzfZN-BxmSstzM.js} +2 -2
  31. package/dist/assets/BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js +138 -0
  32. package/dist/assets/CardNumberSubText-lh7fQJis-CKFkz1Hy.js +21 -0
  33. package/dist/assets/CashbackDetailPage-KRbsYA09-DzsJTodf.js +285 -0
  34. package/dist/assets/ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js +1462 -0
  35. package/dist/assets/ChargeCardListPage-knAPmob6-CgVyQmJQ.js +412 -0
  36. package/dist/assets/ChargeCardListTable-DsfnKX3P-D0-TBhcC.js +711 -0
  37. package/dist/assets/ChargeCardPromoPage-C9610LtW-GRwSeJ82.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js +36 -0
  39. package/dist/assets/ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js +60 -0
  40. package/dist/assets/CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js +206 -0
  41. package/dist/assets/CollapsableReportTable-NYu8Bq-g-CCeLwwka.js +2844 -0
  42. package/dist/assets/CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js +260 -0
  43. package/dist/assets/CompanyPassportCard-8zvCdmxt-CxjPiS1u.js +42 -0
  44. package/dist/assets/CompanyPassportPage-AS4N7oT2-Bv10VeId.js +574 -0
  45. package/dist/assets/CompleteProfile-Dj080UdJ-B2qMa6vk.js +52 -0
  46. package/dist/assets/ConfettiBurst-DcCUSSaX-yciACYT1.js +1 -0
  47. package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +281 -0
  48. package/dist/assets/CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js +224 -0
  49. package/dist/assets/CurrencySelectField-ksMvik33-CjY_Sqhm.js +139 -0
  50. package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js} +12 -12
  51. package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js} +26 -26
  53. package/dist/assets/CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js +66 -0
  54. package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +107 -0
  55. package/dist/assets/CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js +202 -0
  56. package/dist/assets/Dashboard-2RpETnqH-Dgva4ZAW.js +1551 -0
  57. package/dist/assets/DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js +371 -0
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-DjbheijR-B7o468tr.js} +11 -11
  60. package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +66 -0
  61. package/dist/assets/DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js +21 -0
  62. package/dist/assets/DownloadOverlay-f6SOW8iK-DORigjXi.js +439 -0
  63. package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BkIQ6mLJ-DU9u6eQ0.js} +21 -21
  64. package/dist/assets/EditPeoplePage-lZcM4Zfw-CzhpHcfF.js +55 -0
  65. package/dist/assets/EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js +865 -0
  66. package/dist/assets/EntityDetailPage-AP27Niqu-DwUEbyHL.js +18 -0
  67. package/dist/assets/EntitySummarySection-B6khdAJg-7W3j7WRI.js +149 -0
  68. package/dist/assets/ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js +281 -0
  69. package/dist/assets/ExpenseAutomationPage-DEleaYKs-SFko_-SO.js +1650 -0
  70. package/dist/assets/ExpressPayPage-CLYzefaM-CHfIN-TO.js +168 -0
  71. package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-T78A34---Cfgg_jhN.js} +4 -4
  72. package/dist/assets/FollowStepsSection-B_mTbqHf-CcoWV2SW.js +390 -0
  73. package/dist/assets/GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js +291 -0
  74. package/dist/assets/InformationCardStack-Buibt8cT-DzjFUhjp.js +31 -0
  75. package/dist/assets/InsightsCardStack-Cj5iIm_T-CnLFxYVI.js +79 -0
  76. package/dist/assets/InsightsSection-DuPqQb5Z-C8m7clcN.js +27 -0
  77. package/dist/assets/IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js +57 -0
  78. package/dist/assets/InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js +171 -0
  79. package/dist/assets/InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js +292 -0
  80. package/dist/assets/InviteFormPage-GPXu2hLn-Dlxczoo1.js +312 -0
  81. package/dist/assets/InvitePageListView-FEFeEFZJ-fGYpyL6r.js +739 -0
  82. package/dist/assets/InvitePeoplePage-C6E594rf-DZBpEScz.js +12 -0
  83. package/dist/assets/InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js +140 -0
  84. package/dist/assets/IssueChargeCardPage-DSPlu840-3aXsgWJG.js +532 -0
  85. package/dist/assets/LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js +49 -0
  86. package/dist/assets/LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js +45 -0
  87. package/dist/assets/LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js +16 -0
  88. package/dist/assets/LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js +204 -0
  89. package/dist/assets/LabeledDocumentField-rGzXpShn-Cfh7MC5-.js +41 -0
  90. package/dist/assets/LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js +59 -0
  91. package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-Dc-697nR-dyJ4TshB.js} +10 -10
  92. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js +229 -0
  93. package/dist/assets/LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js +297 -0
  94. package/dist/assets/LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js +98 -0
  95. package/dist/assets/LockCardPage-CvZcUUc8-B6VLJ-gr.js +623 -0
  96. package/dist/assets/LowBalancePopup-DJQCz0Ed-B8IDUNee.js +34 -0
  97. package/dist/assets/MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js +1 -0
  100. package/dist/assets/MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js +31 -0
  101. package/dist/assets/MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js +17 -0
  102. package/dist/assets/MailingDetailsSection-C6cVooC3-CCSD5vtq.js +21 -0
  103. package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-D_6Dje0H-Ar5SwcnV.js} +4 -4
  104. package/dist/assets/MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js +110 -0
  105. package/dist/assets/MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js +6 -0
  106. package/dist/assets/MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js +85 -0
  107. package/dist/assets/NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js +30 -0
  108. package/dist/assets/NavigationArrow-CYserS2B-DdYPXfvg.js +47 -0
  109. package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-CT_oO_7z-Bt9KzB5Z.js} +3 -3
  110. package/dist/assets/NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js +160 -0
  111. package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-BItQZAQ9-a5HKjWqu.js} +5 -5
  112. package/dist/assets/NoDataTable-R8OCdB2c-cDhvp6Rg.js +8 -0
  113. package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DLHYdRdN-xXzpa00n.js} +9 -9
  114. package/dist/assets/NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js +163 -0
  115. package/dist/assets/NotificationsListConfig-DSgUS0hE-mwmsOI0p.js +1 -0
  116. package/dist/assets/NotificationsPage-W5ZhprRe-DZn-eWsJ.js +685 -0
  117. package/dist/assets/OpExByVendorPage-DIi58wXa-nKCVWs3g.js +100 -0
  118. package/dist/assets/OverlayContainerPage-BsY9_22w-CFGZ7LWs.js +11 -0
  119. package/dist/assets/PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js +107 -0
  120. package/dist/assets/PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js +107 -0
  121. package/dist/assets/PeoplePage-CtnWc0LE-B3_lhERY.js +675 -0
  122. package/dist/assets/Preview-Bnbo8Nq1.js +1 -0
  123. package/dist/assets/ProductsCarousel-n0ZNrr7--DQIbkMZp.js +142 -0
  124. package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-CeS0HoCZ-CICve0tH.js} +25 -25
  125. package/dist/assets/QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js +51 -0
  126. package/dist/assets/QBOSetupSection-FrO9rgct-B0n-bnvz.js +79 -0
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js +237 -0
  129. package/dist/assets/ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js +314 -0
  130. package/dist/assets/ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js +84 -0
  131. package/dist/assets/ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js +140 -0
  132. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js +1 -0
  133. package/dist/assets/ReloadCard-CNKwqjPJ-C6w7GHJG.js +26 -0
  134. package/dist/assets/ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js +150 -0
  135. package/dist/assets/ReportsPage-C5iOQU55-DamkEztw.js +121 -0
  136. package/dist/assets/RevenueChart-C2CMFAQ--BirLMW85.js +280 -0
  137. package/dist/assets/ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js +290 -0
  138. package/dist/assets/ReviewOverlay-BAG_6iyV-B2w-MEIV.js +152 -0
  139. package/dist/assets/RoleWithToolTip-GUYLjJwW-DVSFtUus.js +22 -0
  140. package/dist/assets/ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js +37 -0
  141. package/dist/assets/ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js +37 -0
  142. package/dist/assets/ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js +324 -0
  143. package/dist/assets/ScreenRoutes-B_yySVlk.js +201 -0
  144. package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DOavnCkG-CmcaONdQ.js} +87 -87
  145. package/dist/assets/SignIn-DqrG5nEJ-8MVRrbiA.js +448 -0
  146. package/dist/assets/SignInScreen-CSh4OzXN.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js +754 -0
  149. package/dist/assets/SpendManagementSection-UkTY6qX0-CST6kY6m.js +230 -0
  150. package/dist/assets/StatementItem-Bx6mxa3U-C42zKfqY.js +31 -0
  151. package/dist/assets/StatementsPage-ULjFE30P-BGU6QX6B.js +58 -0
  152. package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-DlBY_FC1-C1Bsm00T.js} +8 -8
  153. package/dist/assets/SubTabSwitcher-DjEElTWE-5Wo1Obau.js +58 -0
  154. package/dist/assets/SummaryCard-BNESDUnN-ChwTCNZM.js +1 -0
  155. package/dist/assets/TaskManagementPage-BFF3ATPV-BYvPz4hv.js +508 -0
  156. package/dist/assets/TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js +64 -0
  157. package/dist/assets/TimeframeSwitcher-CZhQm7rH-D5h04PEF.js +31 -0
  158. package/dist/assets/TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js +31 -0
  159. package/dist/assets/TopExCard-C_HWsAL1-DphCzqA5.js +38 -0
  160. package/dist/assets/TopExDetailPage-BEKo6juU-CUrrRqCk.js +132 -0
  161. package/dist/assets/TransactionDetailPage-Bzgtmi3U-DCXvClem.js +912 -0
  162. package/dist/assets/TransactionList-Dw78Q0Sx-BHAN7axA.js +147 -0
  163. package/dist/assets/TransactionListBig-BofakL17-k36ZTqo_.js +284 -0
  164. package/dist/assets/TransactionListPage-tpOg0ax5-aeL9weeE.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js +80 -0
  166. package/dist/assets/TransferDrawerPage-DnnZBOyK-y1PDtTFY.js +362 -0
  167. package/dist/assets/TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js +708 -0
  168. package/dist/assets/TreasuryPromoPage--j_2YjQn-DHIwXCO0.js +505 -0
  169. package/dist/assets/TreasuryStatementsPage-BLrceDQm-vMicHzmk.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js +58 -0
  171. package/dist/assets/TrendChart-KnFi8NXQ-DHzaDtQY.js +16 -0
  172. package/dist/assets/TrendWithTransactions-C_T0I9xe-DqS7m8LH.js +116 -0
  173. package/dist/assets/UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js +244 -0
  174. package/dist/assets/UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js +67 -0
  175. package/dist/assets/UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js +1 -0
  178. package/dist/assets/VendorDetailPage-C16CrNJo-D86vTvj2.js +257 -0
  179. package/dist/assets/VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js +1 -0
  180. package/dist/assets/VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js +175 -0
  181. package/dist/assets/VendorFirstReviewPage-DLshEh_s-DbpLTolM.js +730 -0
  182. package/dist/assets/VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js +152 -0
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js} +8 -8
  185. package/dist/assets/VerifyDevice-DEwEqoHA-CylVN9FP.js +112 -0
  186. package/dist/assets/VideoPlayer-_1Msrww9-DaiS1R42.js +78 -0
  187. package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-BzQ_Dl9b-mwrODjDA.js} +4 -4
  188. package/dist/assets/WarningsDrawerPage-CMBST3p1-ujIyTaCb.js +92 -0
  189. package/dist/assets/ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js +300 -0
  190. package/dist/assets/ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js +441 -0
  191. package/dist/assets/ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js} +42 -42
  193. package/dist/assets/ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js +36 -0
  194. package/dist/assets/ZeniCopyright-CdqD8vO4-DYRLQn9Q.js +1 -0
  195. package/dist/assets/ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js +63 -0
  196. package/dist/assets/{add-to-wallet-D7W5Y5Hm-zBGkMLf1.js → add-to-wallet-DgdBD8_G-CmJT13gp.js} +1 -1
  197. package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +1 -0
  198. package/dist/assets/{analytics-CeQu-r45.js → analytics-zoE7Zcxt.js} +1 -1
  199. package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-D23HZgYu.js} +1 -1
  200. package/dist/assets/analyticsHelper-_u1yj9ge-DxpjUhrt.js +1 -0
  201. package/dist/assets/{arrow-south-east-round-D5pI7KCC-DyTRFc-f.js → arrow-south-east-round-PEovUgvH-7DsZUZDF.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-D1bNopxW-BXcmbJh5.js → auto-transfer-rule-mbafm5D3-iFkTgScT.js} +1 -1
  203. package/dist/assets/chartTypes-vQ8GTDEq-DTt3gea6.js +1 -0
  204. package/dist/assets/commonDimensions-znFHURNY-BydE4i8M.js +1 -0
  205. package/dist/assets/{core-tlHkQPPu.js → core-3dlyNYRL.js} +13 -13
  206. package/dist/assets/dash.all.min-Ba2vGpbn.js +21 -0
  207. package/dist/assets/detailCommon-DmLhlrjU-ShYTQ7m2.js +38 -0
  208. package/dist/assets/downloadPdf-CCUPfpyu-Cq1M0ik1.js +1 -0
  209. package/dist/assets/empty-CnIz-OQ7.js +1 -0
  210. package/dist/assets/empty-DeBX16Fq.js +1 -0
  211. package/dist/assets/{epic-CxjM8IKD.js → epic-vmWV05sm.js} +1 -1
  212. package/dist/assets/{getReferrerType-D1egX4iL-cWt5sFuQ.js → getReferrerType-DjPOy76W-Cm31g4vJ.js} +1 -1
  213. package/dist/assets/{gift-box-DZx81G9E-DbnUGiwi.js → gift-box-Cmt9OgIZ-CvUdutGd.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-CfhD7tYw-SmhQgAdh.js → graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js → graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js} +1 -1
  216. package/dist/assets/{handshake-D4b9T-E0-BvZJz7M_.js → handshake-BPg58FML-D7G7L1P7.js} +1 -1
  217. package/dist/assets/hls-BA0yQjS5.js +40 -0
  218. package/dist/assets/index-A3ojUHL_.js +1 -0
  219. package/dist/assets/index-BQbbCzKZ.js +1 -0
  220. package/dist/assets/index-CHOIEdDW.js +1 -0
  221. package/dist/assets/index-DQmBF4-D.js +3310 -0
  222. package/dist/assets/index-XNBiWrYj.js +29300 -0
  223. package/dist/assets/index-jNlf8Zjb.js +1 -0
  224. package/dist/assets/index-t8y498Dk.css +1 -0
  225. package/dist/assets/lexical-DPEnH3HH.js +21 -0
  226. package/dist/assets/{liveblocks-BrzOBACZ.js → liveblocks-DIep7fJd.js} +1 -1
  227. package/dist/assets/lottie-DEE24l2z.js +9 -0
  228. package/dist/assets/mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js +1 -0
  229. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js +1 -0
  230. package/dist/assets/mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js +1 -0
  232. package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js} +1 -1
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js +1 -0
  234. package/dist/assets/mixin-D3UDm--6.js +43 -0
  235. package/dist/assets/mui-bYXq4XMS.js +25 -0
  236. package/dist/assets/{page-detail-L_-1iNMr-DCxtcaOg.js → page-detail-CWX5S47F-Bc8Xpsuq.js} +1 -1
  237. package/dist/assets/{radio-default-H1PowEcP-lvG8v5I_.js → radio-default-CiSgisfh-Clpw2LWj.js} +1 -1
  238. package/dist/assets/react-B5y9n_ef.js +17 -0
  239. package/dist/assets/react-B84192hO.js +32 -0
  240. package/dist/assets/react-BpmEXSTM.js +27 -0
  241. package/dist/assets/react-BuvI16A0.js +37 -0
  242. package/dist/assets/react-BvHTyLQY.js +29 -0
  243. package/dist/assets/react-CA3XI5Yc.js +16 -0
  244. package/dist/assets/react-Cz0zQhlY.js +31 -0
  245. package/dist/assets/react-Egsc5mMa.js +44 -0
  246. package/dist/assets/recharts-BHhx6CLo.js +73 -0
  247. package/dist/assets/{sentry-Dhk5jNhq.js → sentry-o6h_D-9x.js} +2 -2
  248. package/dist/assets/{shield-E_rJ2OWj-kTEIYW8Q.js → shield-DOlUxcFf-BXuToJ7O.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DeZfEmbT-vM-pgltN.js +1 -0
  250. package/dist/assets/toChartData-KibzV7pa-DRJVLoY0.js +1 -0
  251. package/dist/assets/{transaction-placeholder-BDef7K0p-Dqvh6We2.js → transaction-placeholder-CpOwZAMG-0pwHfQC6.js} +1 -1
  252. package/dist/assets/types-DyvtCprH-BcZYcgaq.js +1 -0
  253. package/dist/assets/uploadAttachment-U9nX0Ka9-1qW3wdO3.js +286 -0
  254. package/dist/assets/uploadReceipts-CDPM7zcb-DEOGBGdq.js +1 -0
  255. package/dist/assets/url-BdYIjepo.js +1 -0
  256. package/dist/assets/url-BxQKeS2R.js +6 -0
  257. package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +1 -0
  258. package/dist/assets/{usp-line-4JsxsMjK-mCxwNowe.js → usp-line-BBd1wKwW-ClwDS-nj.js} +1 -1
  259. package/dist/assets/utils-uDUqNRFY.js +70 -0
  260. package/dist/assets/{zeni-epic-state-Bo1aGezX.js → zeni-epic-state-LPACxnXP.js} +3 -3
  261. package/dist/index.html +1 -1
  262. package/package.json +2 -2
  263. package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +0 -21
  264. package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +0 -539
  265. package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +0 -18
  266. package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +0 -149
  267. package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +0 -59
  268. package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +0 -239
  269. package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +0 -298
  270. package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +0 -207
  271. package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +0 -6
  272. package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +0 -344
  273. package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +0 -79
  274. package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +0 -192
  275. package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +0 -46
  276. package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +0 -71
  277. package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +0 -91
  278. package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +0 -47
  279. package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +0 -24
  280. package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +0 -46
  281. package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +0 -1
  282. package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +0 -1
  283. package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +0 -101
  284. package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +0 -79
  285. package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +0 -51
  286. package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +0 -425
  287. package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +0 -266
  288. package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +0 -27
  289. package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +0 -84
  290. package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +0 -42
  291. package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +0 -44
  292. package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +0 -1
  293. package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +0 -138
  294. package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +0 -21
  295. package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +0 -285
  296. package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +0 -1462
  297. package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +0 -412
  298. package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +0 -711
  299. package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +0 -222
  300. package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +0 -36
  301. package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +0 -60
  302. package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +0 -206
  303. package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +0 -2844
  304. package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +0 -260
  305. package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +0 -42
  306. package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +0 -574
  307. package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +0 -52
  308. package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +0 -1
  309. package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +0 -1
  310. package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +0 -281
  311. package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +0 -224
  312. package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +0 -139
  313. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
  314. package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +0 -66
  315. package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +0 -107
  316. package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +0 -202
  317. package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +0 -1551
  318. package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +0 -371
  319. package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +0 -12
  320. package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +0 -66
  321. package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +0 -21
  322. package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +0 -439
  323. package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +0 -55
  324. package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +0 -865
  325. package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +0 -18
  326. package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +0 -149
  327. package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +0 -281
  328. package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +0 -1650
  329. package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +0 -168
  330. package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +0 -390
  331. package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +0 -291
  332. package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +0 -31
  333. package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +0 -79
  334. package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +0 -27
  335. package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +0 -57
  336. package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +0 -171
  337. package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +0 -292
  338. package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +0 -312
  339. package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +0 -739
  340. package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +0 -12
  341. package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +0 -140
  342. package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +0 -532
  343. package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +0 -49
  344. package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +0 -45
  345. package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +0 -16
  346. package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +0 -204
  347. package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +0 -41
  348. package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +0 -59
  349. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +0 -229
  350. package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +0 -297
  351. package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +0 -98
  352. package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +0 -623
  353. package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +0 -34
  354. package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +0 -1
  355. package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +0 -1
  356. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +0 -1
  357. package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +0 -31
  358. package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +0 -17
  359. package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +0 -21
  360. package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +0 -110
  361. package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +0 -6
  362. package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +0 -85
  363. package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +0 -30
  364. package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +0 -47
  365. package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +0 -160
  366. package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +0 -8
  367. package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +0 -163
  368. package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +0 -1
  369. package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +0 -685
  370. package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +0 -100
  371. package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +0 -11
  372. package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +0 -107
  373. package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +0 -107
  374. package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +0 -675
  375. package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +0 -1
  376. package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +0 -142
  377. package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +0 -51
  378. package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +0 -79
  379. package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +0 -26
  380. package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +0 -237
  381. package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +0 -314
  382. package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +0 -84
  383. package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +0 -140
  384. package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +0 -1
  385. package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +0 -26
  386. package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +0 -150
  387. package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +0 -121
  388. package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +0 -280
  389. package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +0 -290
  390. package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +0 -152
  391. package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +0 -22
  392. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +0 -37
  393. package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +0 -37
  394. package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +0 -324
  395. package/dist/assets/ScreenRoutes-B29orzq3.js +0 -206
  396. package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +0 -450
  397. package/dist/assets/SignInScreen-CDr9y3Na.js +0 -1
  398. package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +0 -123
  399. package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +0 -754
  400. package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +0 -230
  401. package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +0 -31
  402. package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +0 -58
  403. package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +0 -58
  404. package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +0 -1
  405. package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +0 -1
  406. package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +0 -508
  407. package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +0 -66
  408. package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +0 -31
  409. package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +0 -31
  410. package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +0 -38
  411. package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +0 -132
  412. package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +0 -912
  413. package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +0 -147
  414. package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +0 -284
  415. package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +0 -35
  416. package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +0 -80
  417. package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +0 -362
  418. package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +0 -708
  419. package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +0 -505
  420. package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +0 -58
  421. package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +0 -58
  422. package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +0 -16
  423. package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +0 -116
  424. package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +0 -244
  425. package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +0 -67
  426. package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +0 -38
  427. package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +0 -1
  428. package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +0 -1
  429. package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +0 -257
  430. package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +0 -1
  431. package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +0 -175
  432. package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +0 -730
  433. package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +0 -152
  434. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +0 -1
  435. package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +0 -112
  436. package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +0 -78
  437. package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +0 -92
  438. package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +0 -300
  439. package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +0 -441
  440. package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +0 -14
  441. package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +0 -36
  442. package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +0 -1
  443. package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +0 -63
  444. package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +0 -1
  445. package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +0 -1
  446. package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +0 -1
  447. package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +0 -1
  448. package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +0 -1
  449. package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +0 -1
  450. package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +0 -21
  451. package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +0 -38
  452. package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +0 -1
  453. package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +0 -1
  454. package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +0 -1
  455. package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +0 -40
  456. package/dist/assets/index-2CdI-B2B.js +0 -29301
  457. package/dist/assets/index-BR5-Z2ox.css +0 -1
  458. package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +0 -3305
  459. package/dist/assets/lexical-l0sNRNKZ.js +0 -1
  460. package/dist/assets/lottie-B4xjt4lE.js +0 -1
  461. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
  462. package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +0 -1
  463. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +0 -1
  464. package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +0 -1
  465. package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +0 -1
  466. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +0 -1
  467. package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +0 -43
  468. package/dist/assets/mui-kiGMfX4-.js +0 -25
  469. package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +0 -1
  470. package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +0 -1
  471. package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +0 -19
  472. package/dist/assets/react-B2-P-PS--DYmRygxV.js +0 -19
  473. package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +0 -17
  474. package/dist/assets/react-CWt3gw2R-CPQu_93E.js +0 -21
  475. package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +0 -7
  476. package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +0 -22
  477. package/dist/assets/react-DBTaojCw-BTbEMBGt.js +0 -6
  478. package/dist/assets/react-G6j-OGKl--ofewKrH.js +0 -34
  479. package/dist/assets/recharts-Diw77Kjb.js +0 -1
  480. package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +0 -1
  481. package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +0 -1
  482. package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +0 -1
  483. package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +0 -1
  484. package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +0 -286
  485. package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +0 -1
  486. package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +0 -1
  487. package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +0 -1
  488. package/dist/assets/utils-BLUF9kAp.js +0 -70
@@ -0,0 +1,2844 @@
1
+ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dl as $o,o as s,p as X,aN as bn,Q as O,aA as kn,ax as Lo,dm as jn,dn as Ao,F as B,u as w,dp as Qn,dq as Nt,aS as $,dr as It,c8 as Pt,ds as Ft,y as V,c_ as zt,av as Zn,a9 as Xe,dt as Me,bM as H,A as Bo,e as ce,aZ as Jn,du as Xn,aT as T,am as Le,dv as Wo,dw as le,c7 as Tt,bY as Sn,ag as Oo,al as we,dx as et,dy as Ae,dz as nt,ak as v,cf as ne,dA as Mo,b as Vt,dB as Ge,dC as Cn,dD as vn,dE as No,dF as Io,b7 as ei,b4 as Po,cv as Dt,cu as Rt,dG as Fo,b5 as ti,cy as ni,bO as zo,dH as To,dI as _n,dJ as $n,dK as Vo,dL as Do,bQ as Ro,bI as Go,dM as Eo}from"./index-XNBiWrYj.js";import{n as a,b as P}from"./mui-bYXq4XMS.js";import{a as N,w as Ho}from"./core-3dlyNYRL.js";import{eT as Gt,fi as Et,fj as Ne,fk as Ht,fl as Kt,fm as Yt,fn as Ut,fo as ii,fp as Ko,f4 as xt,eU as Ie,bn as Ln,bh as oi,fq as ri,fr as Yo,bp as Uo,f5 as ai}from"./zeni-epic-state-LPACxnXP.js";import{N as it,D as qo,R as Qo,B as ye,u as _}from"./AccountRow-BObEIy6l-CsCw-i7a.js";function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Zo=a.div`
2
+ display: flex;
3
+ flex: 1 1 auto;
4
+ width: 100%;
5
+ height: ${e=>e.heightValue}px;
6
+ justify-content: flex-start;
7
+ align-items: center;
8
+ padding-right: ${_.wrapperPadding}px;
9
+ `,Jo=a.div`
10
+ cursor: default;
11
+ user-select: none;
12
+ display: flex;
13
+ flex: 1 1 auto;
14
+ flex-flow: row;
15
+ justify-content: flex-start;
16
+ align-items: center;
17
+ `,Xo=a.div`
18
+ display: flex;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ gap: ${s.sp2};
22
+ width: ${_.leftHeadingWidth}px;
23
+ `,er=a.div`
24
+ display: flex;
25
+ flex: 1 1 auto;
26
+ justify-content: flex-end;
27
+ align-items: center;
28
+ gap: ${s.sp4};
29
+ `,tr=a(ne)`
30
+ width: ${_.bankBalanceWidth}px;
31
+ min-width: ${_.bankBalanceWidth}px;
32
+ text-align: right;
33
+ `,nr=a(ne)`
34
+ width: ${_.clearedBalanceWidth}px;
35
+ min-width: ${_.clearedBalanceWidth}px;
36
+ text-align: right;
37
+ `,ir=a(ne)`
38
+ width: ${_.statusWidth}px;
39
+ min-width: ${_.statusWidth}px;
40
+ `,or=a.div`
41
+ display: flex;
42
+ flex-shrink: 0;
43
+ gap: ${s.sp3};
44
+ width: ${_.varianceWidth}px;
45
+ min-width: ${_.varianceWidth}px;
46
+ flex-direction: row;
47
+ justify-content: flex-end;
48
+ align-items: center;
49
+ text-align: center;
50
+ `,rr=a.div`
51
+ width: ${_.variancePercentageWidth}px;
52
+ min-width: ${_.variancePercentageWidth}px;
53
+ text-align: right;
54
+ margin-right: ${s.sp2};
55
+ `,ar=a.div`
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ `,lr=a.div`
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ `;function cr({height:e}){const n=O();return t.jsx(Zo,{heightValue:e,windowSize:n,children:t.jsxs(Jo,{children:[t.jsxs(Xo,{children:[t.jsx(ar,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(lr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:_.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(er,{children:[t.jsx(tr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(nr,{children:t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(or,{children:[t.jsx(le,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:_.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(rr,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:_.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(ir,{children:t.jsx(le,{isLoading:!0,customStyle:{height:s.sp4,width:_.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const sr=a.div`
64
+ display: flex;
65
+ flex-direction: row;
66
+ height: ${e=>e.heightValue}px;
67
+ padding-right: ${_.wrapperPadding}px;
68
+ `;function dr({height:e}){return t.jsx(sr,{heightValue:e})}const hr=a.div`
69
+ user-select: none;
70
+ display: flex;
71
+ width: 100%;
72
+ height: ${e=>e.height}px;
73
+ background-color: ${e=>e.bgColor?.hex()};
74
+ flex-direction: column;
75
+ padding-right: ${_.wrapperPadding}px;
76
+ `,ur=a.div`
77
+ flex: 1 1 auto;
78
+ display: flex;
79
+ align-items: center;
80
+ height: ${s.sp8};
81
+ justify-content: flex-start;
82
+ align-items: center;
83
+ `,gr=a.div`
84
+ display: flex;
85
+ flex-direction: row;
86
+ justify-content: flex-end;
87
+ width: ${_.leftHeadingWidth}px;
88
+ `,pr=a.div`
89
+ display: flex;
90
+ flex: 1 1 auto;
91
+ flex-direction: row;
92
+ justify-content: flex-end;
93
+ `,fr=a(ti)`
94
+ user-select: none;
95
+ color: ${e=>e.theme.colors.primary};
96
+ width: ${_.leftTimeframeWidth}px;
97
+ min-width: ${_.leftTimeframeWidth}px;
98
+ flex: 1 1 auto;
99
+ `,xr=a(v)`
100
+ user-select: none;
101
+ `,mr=a.div`
102
+ max-height: ${s.sp8};
103
+ min-height: ${s.sp8};
104
+ min-width: ${e=>e.widthValue}px;
105
+ max-width: ${e=>e.widthValue}px;
106
+ display: flex;
107
+ justify-content: center;
108
+ align-items: center;
109
+ background-color: ${e=>e.theme.colors.background};
110
+ border: 1px solid ${e=>e.theme.colors.grey3};
111
+ border-radius: ${s.sp2};
112
+ color: ${e=>e.theme.colors.primary};
113
+ margin-right: ${e=>e.marginRight===!0?s.sp2:s.sp0};
114
+ `,wr=a.div`
115
+ width: ${_.bankBalanceWidth}px;
116
+ `,yr=a.div`
117
+ width: ${_.bankBalanceRightTimeframeWidth}px;
118
+ `,br=a.div`
119
+ width: ${_.clearedBalanceWidth}px;
120
+ margin-right: ${_.tickLeftMargin}px;
121
+ `,kr=a.div`
122
+ width: ${_.varianceTimeframeWidth}px;
123
+ align-self: flex-end;
124
+ `,jr=a.div`
125
+ width: ${_.spacerLineWidth}px;
126
+ `,Sr=a.div`
127
+ width: ${_.statusWidth}px;
128
+ `,Ee=({title:e,type:n})=>t.jsx(mr,{widthValue:_[n],children:t.jsx(xr,{children:e})});function Cr({sectionTitle:e,height:n,isLoading:i}){const o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(hr,{height:n,children:t.jsxs(ur,{children:[t.jsx(gr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp4,width:_.leftLabelWidth},children:t.jsx(fr,{"data-testid":m("account-recon-section-title",e),children:e})})}),t.jsxs(pr,{children:[t.jsx(wr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:_.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(yr,{}),t.jsx(br,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:_.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(kr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:_.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.variance,type:"varianceTimeframeWidth"})})}),t.jsx(jr,{}),t.jsx(Sr,{children:t.jsx(le,{isLoading:i,customStyle:{height:s.sp7,width:_.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ee,{title:o.status,type:"statusTimeframeWidth"})})})]})]})})}const vr=a.div`
129
+ display: flex;
130
+ flex-direction: row;
131
+ height: ${e=>e.heightValue}px;
132
+ align-items: center;
133
+ padding-right: ${_.wrapperPadding}px;
134
+ `,_r=a(ti)`
135
+ user-select: none;
136
+ color: ${e=>e.theme.colors.primary};
137
+ `;function $r({height:e,title:n}){return t.jsx(vr,{heightValue:e,children:t.jsx(_r,{"data-testid":m("account-recon-section-title",n),children:n})})}const Lr=a.div`
138
+ display: flex;
139
+ flex: 1 1 auto;
140
+ width: 100%;
141
+ height: ${e=>e.heightValue}px;
142
+ justify-content: flex-start;
143
+ align-items: center;
144
+ padding-right: ${_.wrapperPadding}px;
145
+ `,Ar=a.div`
146
+ cursor: default;
147
+ user-select: none;
148
+ display: flex;
149
+ flex: 1 1 auto;
150
+ flex-flow: row;
151
+ justify-content: flex-start;
152
+ align-items: center;
153
+ color: ${e=>e.theme.colors.primary};
154
+ `,Br=a.div`
155
+ display: flex;
156
+ flex: 1 1 auto;
157
+ justify-content: flex-start;
158
+ align-items: center;
159
+ gap: ${s.sp2};
160
+ `,Wr=a(ne)`
161
+ user-select: none;
162
+ clear: both;
163
+ display: inline-block;
164
+ overflow: hidden;
165
+ white-space: nowrap;
166
+ text-overflow: ellipsis;
167
+ text-align: left;
168
+ color: ${e=>e.theme.colors.primary};
169
+ width: ${_.leftLabelWidth}px;
170
+ min-width: ${_.leftLabelWidth}px;
171
+ `,Or=a.div`
172
+ display: flex;
173
+ flex: 1 1 auto;
174
+ justify-content: flex-end;
175
+ align-items: center;
176
+ `,Mr=a(ne)`
177
+ width: ${_.bankBalanceWidth}px;
178
+ min-width: ${_.bankBalanceWidth}px;
179
+ text-align: right;
180
+ `,Nr=a(ne)`
181
+ width: ${_.clearedBalanceWidth}px;
182
+ min-width: ${_.clearedBalanceWidth}px;
183
+ text-align: right;
184
+ margin-left: ${_.tickLeftMargin}px;
185
+ `,Ir=a(ne)`
186
+ width: ${_.statusWidth}px;
187
+ min-width: ${_.statusWidth}px;
188
+ height: 1px;
189
+ `,Pr=a.div`
190
+ display: flex;
191
+ flex-direction: row;
192
+ min-width: ${_.spacerLineWidth}px;
193
+ width: ${_.spacerLineWidth}px;
194
+ align-items: center;
195
+ `,Fr=a.div`
196
+ width: 1px;
197
+ margin-left: ${s.sp3};
198
+ height: ${e=>e.heightValue}px;
199
+ background-color: ${e=>e.theme.colors.grey3};
200
+ `,zr=a.div`
201
+ display: flex;
202
+ flex-shrink: 0;
203
+ width: ${_.varianceTimeframeWidth}px;
204
+ min-width: ${_.varianceTimeframeWidth}px;
205
+ flex-direction: row;
206
+ justify-content: flex-end;
207
+ align-items: center;
208
+ text-align: center;
209
+ margin-left: ${_.tickLeftMargin}px;
210
+ `,Tr=a(ne)`
211
+ border-radius: ${s.sp1};
212
+ color: ${e=>e.textColor.hex()};
213
+ min-width: ${_.varianceNumberWidth}px;
214
+ text-align: right;
215
+ margin-right: ${s.sp2};
216
+ `,Vr=a(ne)`
217
+ border-radius: ${s.sp1};
218
+ padding: ${s.sp0} ${s.sp1};
219
+ justify-content: center;
220
+ text-align: center;
221
+ color: ${e=>e.textColor.hex()};
222
+ background-color: ${e=>e.bgColor.hex()};
223
+ min-width: ${_.variancePercentageWidth}px;
224
+ `,{expenseAutomation:{accountRecon:{reconciliation:{headers:An}}},common:{strings:{percentage:Dr,hyphen:tt}}}=B.getLocalizedStrings();function Rr({height:e,sectionData:n}){const i=O(),o=n.totalVariance,r=n.totalVariancePercentage,l=ce();return t.jsx(Lr,{"data-testid":m("total-row-root-container"),heightValue:e,windowSize:i,children:t.jsxs(Ar,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsxs(Br,{children:[t.jsx(ye,{firstLetter:An.section[n.sectionId].subTitle.charAt(0),color:new $(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Wr,{children:An.section[n.sectionId].subTitle})]}),t.jsxs(Or,{children:[t.jsx(Mr,{children:n.totalBankBalance!=null?U("0,0",n.totalBankBalance):tt}),t.jsx(Nr,{children:n.totalClearedBalance!=null?U("0,0",n.totalClearedBalance):tt}),t.jsx(Gr,{variance:o,variancePercentage:r}),t.jsx(Pr,{children:t.jsx(Fr,{heightValue:e})}),t.jsx(Ir,{})]})]})})}const Gr=({variance:e,variancePercentage:n})=>{const i=ce(),o=new $(i.colors.hero),r=new $(i.colors.hero),l=new $(i.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${Dr}`:tt;return t.jsxs(zr,{children:[t.jsx(Tr,{textColor:o,children:e!=null?U("0,0",e):tt}),t.jsx(Vr,{textColor:r,bgColor:l,children:c})]})};function Er(){return t.jsx(dr,{height:it("section")})}function Hr(){return t.jsx(cr,{height:it("loading_in_progress")})}function Kr(e,n){if(e.element.kind!=="timeframe_headers")return null;const i=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,o=e.element.data,r=o.accountIDs.length===0;return t.jsx(Cr,{sectionTitle:i.section[o.sectionId].title,isLoading:r,isSticky:n,height:it("timeframe_headers")})}const Yr=(e,n,i)=>{const o=e.element.data;return t.jsx(Rr,{isSticky:i,height:n,sectionData:o})},Ur=(e,n)=>{const i=e.element.data,o=B.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx($r,{height:n,title:o.section[i.sectionId].title})},qr=(e,n,i)=>{const o=e.element.data,r=e.config.accountReconciliationConfig?.selectedDrawerAccountId!=null?o.accountReconEntity.account.accountId===e.config.accountReconciliationConfig?.selectedDrawerAccountId:!1;return t.jsx(Qo,{height:n,accountRecon:o,isLastRow:i,isSelectedRow:r,onReviewClicked:e.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:e.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:e.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:e.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:e.config.accountReconciliationConfig?.onStatementAddClicked})},k={balanceHeight:s.sp4,balanceHeightInPx:w[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:w[4],titleWidth:new V(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128};function Qr(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":case"calculated_section_type1":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[6];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"title_string_only":case"total":return w[6];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function Zr(e,n,i=0){const o=["summary"];switch(e){case"section":return!o.includes(n);case"section_with_ac_only":return!o.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":return!1;case"ac_group_subaccount":return!(o.includes(n)||n==="detailed"&&i>0);case"ac_report":return!1;case"ac_subaccount":case"ac_subentity_total":return!(o.includes(n)||n==="detailed"&&i>0);case"title_string_only":return!o.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":return!(n==="detailed"&&i>0);case"checkbox_and_name_only":return!0;default:return!1}}const ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!0}},fe=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},di={emptyLeftContainer:new V(w[0],w[5])},Jr=a(v)`
225
+ margin-left: ${e=>!e.hasChildren&&e.depth!==0?s.sp3:s.sp2};
226
+ overflow: hidden;
227
+ white-space: nowrap;
228
+ text-overflow: ellipsis;
229
+ width: ${e=>k.titleWidth.value(e.windowSize)-(e.depth+1)*45}px;
230
+ `,Xr=a.div`
231
+ display: flex;
232
+ height: ${s.sp6};
233
+ align-items: center;
234
+ `,ea=a.div`
235
+ display: flex;
236
+ height: ${s.sp6};
237
+ align-items: center;
238
+ `,ta=a.div`
239
+ height: ${s.sp6};
240
+ width: ${s.sp3};
241
+ `,na=a.div`
242
+ width: 14px;
243
+ height: ${s.sp1};
244
+ `,ia=a.div`
245
+ width: ${s.sp2};
246
+ height: ${s.sp1};
247
+ `,hi=a.div`
248
+ width: ${e=>di.emptyLeftContainer.valuePx(e.windowSize)};
249
+ height: ${s.sp1};
250
+ `,Be=a.div`
251
+ display: flex;
252
+ `,oa=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return t.jsxs(Be,{children:[r.depth===0?t.jsx(vn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(vn,{depth:r.depth}):null]},i+o)}):null}),ui=({ancestorMetadata:e,depth:n,name:i})=>{const o=O();return n===0?e[n].hasChildren===!1?t.jsx(hi,{windowSize:o}):t.jsxs(Be,{children:[t.jsx(Ge,{depth:n}),t.jsx(Ae,{}),t.jsx(Ge,{depth:n+1})]}):t.jsxs(t.Fragment,{children:[[...Array(n+1).keys()].map(r=>{const l=e[r],c=r!==n?e[r+1]:void 0;return t.jsxs(Be,{children:[l.depth===0?t.jsx(Ge,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Cn,{index:1}):t.jsx(Cn,{index:2}):null,(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?t.jsx(Ae,{},r):t.jsx(nt,{}),t.jsx(Ge,{depth:l.depth+1})]},i+r)}),n===1&&e[n].hasChildren!=!0?t.jsx(ia,{}):null]})},gi=({ancestorMetadata:e,depth:n,name:i})=>n===0?t.jsx(na,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(o=>{const r=e[o],l=o!==n?e[o+1]:void 0;return t.jsxs(Be,{children:[r!=null&&r.depth===0?t.jsx(et,{depth:r.depth}):null,l!=null&&!l.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}),t.jsx(et,{depth:r!=null?r.depth+1:0})]},i+o)})}),ra=({ancestorMetadata:e,depth:n,name:i})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(o=>{const r=e[o];return r==null?null:t.jsxs(Be,{children:[r.depth===0?t.jsx(et,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ae,{},o):t.jsx(nt,{}):null,r.depth>=1?t.jsx(et,{depth:r.depth}):null]},i+o)}):null}),aa=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(ta,{});return e===0&&r&&(d=t.jsx(To,{collapsed:l,onIconClick:c})),e>0&&(r&&!o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),i&&o&&n&&(d=t.jsx($n,{})),i&&o&&!n&&(d=t.jsx(Vo,{})),r&&o&&!n&&(d=t.jsx(Do,{collapsed:l,onIconClick:c})),r&&o&&n&&(d=t.jsx(_n,{collapsed:l,onIconClick:c})),n&&i&&(d=t.jsx($n,{}))),d},la=({depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(ea,{children:t.jsx(aa,{depth:e,isLastNode:n,isLeaf:i,hasSiblings:o,hasChildren:r,collapsed:l,onIconClick:c})});function pi(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const i=O();return t.jsxs(Xr,{children:[e.classDepth!=null?t.jsx(ui,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(hi,{windowSize:i}):null,t.jsx(ra,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(la,{...e}),t.jsx(Jr,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:i,title:n,children:n})]})}const G={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,325,405),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ca(e){switch(e){case"timeframe_headers":return w[10];case"aging_report_row":return w[6];case"ac_subentity_total":return w[6];case"total":return w[8];case"spacer_row":return w[8];default:return w[0]}}function sa(){return!0}const He=[new V(w[4],w[8]),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],da=a.div`
253
+ display: flex;
254
+ flex: 1 1 auto;
255
+ max-height: 1px;
256
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
257
+ `,ha=a.div`
258
+ display: flex;
259
+ flex: 1 1 auto;
260
+ flex-flow: row;
261
+ justify-content: flex-start;
262
+ align-items: center;
263
+ `,ua=a.div`
264
+ display: flex;
265
+ flex-direction: row;
266
+ flex-shrink: 2;
267
+ flex-grow: 1;
268
+ align-items: center;
269
+ background-color: ${e=>e.theme.colors.grey4};
270
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
271
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
272
+ ${({isSticky:e})=>e?P`
273
+ position: -webkit-sticky;
274
+ position: sticky;
275
+ top: ${s.sp0};
276
+ left: ${s.sp0};
277
+ `:null}
278
+ `,ga=a.div`
279
+ width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
280
+ max-width: ${e=>e.noMarginForEntity?He[e.nestingLevel].value(e.windowSize)-w[5]:He[e.nestingLevel].value(e.windowSize)}px;
281
+ height: 1px;
282
+ `,pa=a.div`
283
+ display: flex;
284
+ flex: 1 1 auto;
285
+ max-height: 1px;
286
+ height: 1px;
287
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
288
+ `,fa=a.div`
289
+ display: flex;
290
+ flex: 1 1 auto;
291
+ max-height: 1px;
292
+ height: 1px;
293
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
294
+ `,Bn=e=>{const n=O(),i=ce();return t.jsxs(ha,{"data-testid":m("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ua,{windowSize:n,isSticky:e.isSticky,"data-testid":m("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ga,{"data-testid":m("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(pa,{"data-testid":m("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(fa,{"data-testid":m("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function St({kind:e,isScrolling:n,subEntityProps:i}){switch(e){case"vendor_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??0,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,noMarginForEntity:i?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(da,{"data-testid":m("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Bn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,noMarginForEntity:i?.noMarginForEntity??!1})}}const fi=a.div`
295
+ 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
+ `,xi=a.div`
303
+ user-select: none;
304
+ display: flex;
305
+ flex: 1 1 auto;
306
+ flex-flow: row;
307
+ justify-content: flex-start;
308
+ align-items: center;
309
+ height: ${e=>e.containerHeight}px;
310
+ &:hover {
311
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
312
+ }
313
+ `,mi=a.div`
314
+ display: flex;
315
+ flex: 1 0 auto;
316
+ flex-direction: row;
317
+ justify-content: flex-end;
318
+ `,wi=a.div`
319
+ display: flex;
320
+ flex-direction: row;
321
+ justify-content: flex-start;
322
+ `,yi=a(v)`
323
+ user-select: none;
324
+ min-width: ${G.balanceWidth};
325
+ max-width: ${G.balanceWidth};
326
+ text-align: right;
327
+ margin-left: ${G.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
+ `,xa=a(v)`
335
+ user-select: none;
336
+ clear: both;
337
+ display: inline-block;
338
+ overflow: hidden;
339
+ white-space: nowrap;
340
+ text-overflow: ellipsis;
341
+ text-align: left;
342
+ margin-left: ${s.sp2};
343
+ `,bi=a.div`
344
+ display: flex;
345
+ flex-direction: row;
346
+ flex-shrink: 2;
347
+ flex-grow: 1;
348
+ align-items: center;
349
+ height: ${e=>e.containerHeight}px;
350
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
351
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
352
+ background-color: ${e=>e.bgColor?.hex()};
353
+ ${({isSticky:e})=>e?P`
354
+ position: sticky;
355
+ top: ${s.sp0};
356
+ left: ${s.sp0};
357
+ `:null}
358
+ cursor: pointer;
359
+ color: ${e=>e.theme.colors.hero};
360
+ &:hover {
361
+ color: ${e=>e.theme.colors.primary};
362
+ }
363
+ `,ki=({balance:e,isOpen:n})=>{const i=n?e?.balance:e?.totalBalance;return t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",i)})})},ji=({total:e})=>t.jsx(wi,{children:t.jsx(yi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function ma({isSticky:e,height:n,isScrolling:i,isLastNode:o,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:h}){const u=O(),p="default",g=c?.name??"";return t.jsxs(fi,{"data-testid":m("ap-aging-report-row-root-container",g),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(xi,{"data-testid":m("ap-aging-report-row-container",g),style:{cursor:p},isClickable:!1,containerHeight:n-1,children:[t.jsxs(bi,{onClick:()=>c?.id!=null?h?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:G.nameLogoWidth.valuePx(u),height:G.nameLogoHeight.valuePx(u)}}):t.jsx(zt,{name:g??"",size:s.sp4}),t.jsx(xa,{children:g})]}),t.jsxs(mi,{"data-testid":m("ap-aging-report-row-balances-container",g),children:[r.map(f=>t.jsx(ki,{balance:f,isOpen:!0},f?.period)),t.jsx(ji,{total:l})]})]}),t.jsx(Si,{isScrolling:i,isLastNode:o})]})}function wa({treeNodeId:e,isSticky:n,height:i,isScrolling:o,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:h,nestedCustomer:u,metadata:p,backgroundColor:g,onEntityNameClick:f,onClick:x}){const b=O(),y=p,C=u?.customer.name??"",S=u!=null?u.id.length-1:0,A=u?.hasSiblings??!1,L=u!=null?u.children.length!==0:!1,W=L,F=W?"pointer":"default",z=u!=null?u.isLeafCustomer:!1,K=()=>{x?.(e)};return t.jsxs(fi,{"data-testid":m("ar-aging-report-row-root-container",e),containerHeight:i,bgColor:g,windowSize:b,children:[t.jsxs(xi,{"data-testid":m("ar-aging-report-row-container",e),style:{cursor:F},isClickable:W,containerHeight:i-1,children:[t.jsx(bi,{"data-testid":m("ar-aging-report-row-name-container",e),isSticky:n,windowSize:b,bgColor:g,containerHeight:i-1,children:t.jsx(pi,{displayName:C,depth:S,isLastNode:r,hasChildren:L,hasSiblings:A,isLeaf:z,collapsed:!l,subAccountAnscestorMetadata:y.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:K,onNameClick:()=>u?.id[0]!=null?f?.(u.id[0]):void 0})}),t.jsxs(mi,{children:[c.map(E=>t.jsx(ki,{balance:E,isOpen:l},E?.period)),t.jsx(ji,{total:l?d:h})]})]}),t.jsx(Si,{isScrolling:o,subEntityProps:{nestingLevel:S,isSticky:n,noMarginForEntity:!0}})]})}function Si({isScrolling:e,isLastNode:n=!1,subEntityProps:i}){return n?t.jsx(St,{isScrolling:e,kind:"end_row_separator",subEntityProps:i}):t.jsx(St,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:i})}const ya=a.div`
364
+ 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
+ `,ba=a.div`
375
+ display: flex;
376
+ flex: 1 0 auto;
377
+ flex-direction: row;
378
+ justify-content: flex-end;
379
+ `,Ci=a.div`
380
+ display: flex;
381
+ max-height: ${s.sp8};
382
+ min-height: ${s.sp8};
383
+ min-width: ${G.balanceWidth};
384
+ justify-content: center;
385
+ align-items: center;
386
+ background-color: ${e=>e.theme.colors.background};
387
+ border: 1px solid ${e=>e.theme.colors.grey3};
388
+ border-radius: ${s.sp2};
389
+ margin-left: ${G.balanceLeftMargin};
390
+ color: ${e=>e.theme.colors.primary};
391
+ `,vi=a(v)`
392
+ display: flex;
393
+ user-select: none;
394
+ flex-direction: row;
395
+ justify-content: center;
396
+ align-items: center;
397
+ height: ${G.balanceHeight};
398
+ max-width: ${G.balanceWidth};
399
+ width: 138px;
400
+ text-align: center;
401
+ column-gap: ${s.sp1};
402
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
+ `,ka=a.div`
404
+ max-height: ${s.sp8};
405
+ min-height: ${s.sp8};
406
+ display: flex;
407
+ flex-direction: row;
408
+ align-items: center;
409
+ min-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
410
+ color: ${e=>e.theme.colors.primary};
411
+ background-color: ${e=>e.bgColor?.hex()};
412
+ ${e=>e.isSticky?P`
413
+ position: -webkit-sticky;
414
+ position: sticky;
415
+ top: ${s.sp0};
416
+ left: ${s.sp0};
417
+ `:""}
418
+ `,ja=a(v)`
419
+ display: flex;
420
+ align-items: center;
421
+ cursor: pointer;
422
+ column-gap: ${s.sp1};
423
+ color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
424
+ `,_i=a.div`
425
+ max-height: ${s.sp8};
426
+ min-height: ${s.sp8};
427
+ cursor: pointer;
428
+ `,qt=a.div`
429
+ display: flex;
430
+ column-gap: ${s.sp1};
431
+ cursor: pointer;
432
+ align-items: center;
433
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
434
+ `,$i=a.div``,Li=a(ni)`
435
+ width: 12px;
436
+ height: 12px;
437
+ cursor: pointer;
438
+ color: ${e=>e.theme.colors.hero};
439
+ `,Qt=a(Rt)`
440
+ width: 12px;
441
+ height: 12px;
442
+ `,Zt=a(Dt)`
443
+ width: 12px;
444
+ height: 12px;
445
+ `,Sa=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=()=>{o?.(Jt(i),r)},c=n===r?i:"ascending";return t.jsxs(ja,{active:n===r,"data-testid":m("duration-row-vendor-title",e),children:[r==="vendor"?B.getLocalizedStrings().reports.aging.apAging.vendor:B.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(qt,{selectedForSort:n===r,children:t.jsx($i,{"data-testid":m("duration-row-vendor-sort-icon",e),onClick:l,children:c==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})})}),t.jsx(Xe,{controller:n===r,children:t.jsx(Li,{"data-testid":m("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})},Ai=({onSortOrderChanged:e})=>{e?.("descending","total")},Ca=({agingPeriod:e,sortKey:n="vendor",sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n===e?i:"ascending",l=()=>{o?.(Jt(i),e)};return t.jsx(_i,{"data-testid":m("duration-row-tick-container",e),children:t.jsx(Ci,{"data-testid":m("duration-row-tick-element-container",e),children:t.jsxs(vi,{active:n===e,"data-testid":m("duration-row-timeframe-tick",e),children:[B.getLocalizedStrings().reports.aging.duration[e],t.jsxs(qt,{selectedForSort:n===e,"data-testid":m("duration-row-sort-container",e),children:[t.jsx($i,{"data-testid":m("duration-row-sort-icon",e),onClick:l,children:r==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})}),t.jsx(Xe,{controller:n===e,children:t.jsx(Li,{"data-testid":m("duration-row-sort-cancel-icon",e),onClick:()=>Ai({onSortOrderChanged:o})})})]})]})})})},Bi=({reportId:e,sortKey:n,sortOrder:i="ascending",onSortOrderChanged:o})=>{const r=n==="total"?i:"ascending",l=()=>{o?.(Jt(i),"total")};return t.jsx(_i,{"data-testid":m("duration-row-entity-total-tick-container",e),onClick:l,children:t.jsx(Ci,{"data-testid":m("duration-row-entity-total-tick-element-container",e),children:t.jsxs(vi,{active:n==="total","data-testid":m("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?B.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:B.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(qt,{selectedForSort:n==="total","data-testid":m("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(Zt,{}):t.jsx(Qt,{})})]})})})},va=({reportId:e,agingPeriod:n,sortKey:i="vendor",sortOrder:o="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Ca,{sortKey:i,sortOrder:o,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Bi,{reportId:e,sortKey:i,sortOrder:o,onSortOrderChanged:r});function _a({reportId:e,isSticky:n,height:i,agingPeriods:o,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const h=O();return t.jsxs(ya,{height:i,bgColor:c,"data-testid":m("duration-row-root-container",e),children:[t.jsx(ka,{"data-testid":m("duration-row-placeholder-name",e),isSticky:n,windowSize:h,bgColor:c,children:t.jsx(Sa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs(ba,{children:[o.map(u=>t.jsx(va,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Bi,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const Jt=e=>e==="ascending"?"descending":"ascending",$a=[10,14,20,20,20],La=a.div`
446
+ display: flex;
447
+ flex: 1 1 auto;
448
+ width: fit-content;
449
+ min-width: 100%;
450
+ flex-direction: column;
451
+ height: ${e=>e.containerHeight}px;
452
+ background-color: ${e=>e.bgColor?.hex()};
453
+ `,Aa=a.div`
454
+ user-select: none;
455
+ display: flex;
456
+ flex: 1 1 auto;
457
+ flex-flow: row;
458
+ justify-content: flex-start;
459
+ align-items: center;
460
+ `,Ba=a.div`
461
+ display: flex;
462
+ flex: 1 0 auto;
463
+ flex-direction: row;
464
+ justify-content: flex-end;
465
+ `,Wi=a.div`
466
+ display: flex;
467
+ flex-direction: row;
468
+ justify-content: flex-start;
469
+ `,Oi=a(v)`
470
+ user-select: none;
471
+ min-width: ${G.balanceWidth};
472
+ max-width: ${G.balanceWidth};
473
+ text-align: right;
474
+ margin-left: ${G.balanceLeftMargin};
475
+ color: ${e=>e.theme.colors.primary};
476
+ cursor: ${e=>e.isClickable?"pointer":"default"};
477
+ `,Wa=a.div`
478
+ display: flex;
479
+ flex-direction: row;
480
+ flex-shrink: 2;
481
+ flex-grow: 1;
482
+ align-items: center;
483
+ height: ${e=>e.containerHeight-1}px;
484
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
485
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
486
+ background-color: ${e=>e.bgColor?.hex()};
487
+ ${({isSticky:e})=>e?P`
488
+ position: sticky;
489
+ top: ${s.sp0};
490
+ left: ${s.sp0};
491
+ `:null}
492
+ `,Oa=a(v)`
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=>$a[e.depth]}px;
501
+ color: ${e=>e.theme.colors.primary};
502
+ width: ${e=>G.titleWidth.value(e.windowSize)-e.depth*w[11]}px;
503
+ `,Ma=({balance:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e?.totalBalance)})}),Na=({total:e})=>t.jsx(Wi,{children:t.jsx(Oi,{isClickable:!1,onClick:()=>null,children:U("0,0",e)})});function Ia({backgroundColor:e,isSticky:n,height:i,noMarginForEntity:o,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const h=O(),{common:{strings:{empty:u}},reports:{sections:p}}=B.getLocalizedStrings(),g=c!=null?c.id.length-1:0,f=d,x=c?.customer.name??u;return t.jsxs(La,{"data-testid":"sub-customer-total-row-root-container",containerHeight:i,bgColor:e,children:[t.jsxs(Aa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(Wa,{isSticky:n,windowSize:h,bgColor:e,containerHeight:i,children:[t.jsx(gi,{ancestorMetadata:f.vendorOrCustomerAncestorMetadata,depth:g,name:x}),t.jsx(Oa,{isClickable:!1,title:x,depth:g,windowSize:h,children:p.totalPrefix+" "+x})]}),t.jsxs(Ba,{children:[c?.arAgingBalances.map((b,y)=>t.jsx(Ma,{balance:b},y)),t.jsx(Na,{total:l})]})]}),t.jsx(Pa,{isScrolling:r,nestingLevel:g,isSticky:n,noMarginForEntity:o})]})}function Pa({isScrolling:e,nestingLevel:n,isSticky:i,noMarginForEntity:o}){return t.jsx(St,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:i,noMarginForEntity:o}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":return!1;case"name_only":return!1}},We=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":return!1;case"name_only":return!1}},Fa=a.div`
504
+ 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
+ `,za=a.div`
512
+ cursor: default;
513
+ user-select: none;
514
+ display: flex;
515
+ flex: 1 1 auto;
516
+ flex-flow: row;
517
+ justify-content: flex-start;
518
+ align-items: center;
519
+ `,Ta=a.div`
520
+ display: flex;
521
+ flex: 1 0 auto;
522
+ flex-direction: row;
523
+ justify-content: flex-end;
524
+ `,Mi=a.div`
525
+ display: flex;
526
+ flex-direction: row;
527
+ justify-content: flex-start;
528
+ `,Ni=a(ne)`
529
+ user-select: none;
530
+ min-width: ${G.balanceWidth};
531
+ max-width: ${G.balanceWidth};
532
+ text-align: right;
533
+ margin-left: ${G.balanceLeftMargin};
534
+ color: ${e=>e.theme.colors.primary};
535
+ border: 1px solid transparent;
536
+ `,Va=a.div`
537
+ display: flex;
538
+ flex-direction: row;
539
+ flex-shrink: 2;
540
+ flex-grow: 1;
541
+ align-items: center;
542
+ width: ${e=>G.titleWidth.valuePx(e.windowSize)};
543
+ max-width: ${e=>G.titleWidth.valuePx(e.windowSize)};
544
+ background-color: ${e=>e.bgColor?.hex()};
545
+ ${({isSticky:e,isIndented:n})=>e&&n?P`
546
+ position: -webkit-sticky;
547
+ position: sticky;
548
+ top: ${s.sp0};
549
+ left: ${s.sp4};
550
+ `:e&&!n?P`
551
+ position: -webkit-sticky;
552
+ position: sticky;
553
+ top: ${s.sp0};
554
+ left: ${s.sp0};
555
+ `:null}
556
+ `,Da=a(ne)`
557
+ user-select: none;
558
+ clear: both;
559
+ display: inline-block;
560
+ overflow: hidden;
561
+ white-space: nowrap;
562
+ text-overflow: ellipsis;
563
+ text-align: left;
564
+ color: ${e=>e.theme.colors.primary};
565
+ `,Ra=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n?.balance)}):null}),Ga=({type:e,balance:n})=>t.jsx(Mi,{children:re(e)===!0?t.jsx(Ni,{children:U("0,0",n)}):null});function Ea({type:e,isSticky:n,isIndented:i,height:o,title:r,totalBalances:l,backgroundColor:c}){const d=O(),h={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Ln.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Ln.currencySymbol};return t.jsx(Fa,{"data-testid":m("total-row-root-container"),height:o,bgColor:c,windowSize:d,children:t.jsxs(za,{isClickable:!1,"data-testid":m("total-row-container"),children:[t.jsx(Va,{bgColor:c,isSticky:n,windowSize:d,isIndented:i,children:t.jsx(Da,{children:r})}),t.jsxs(Ta,{children:[l.map((u,p)=>t.jsx(Ra,{type:e,balance:u},p)),t.jsx(Ga,{type:e,balance:h})]})]})})}const Ha=(e,n,i,o,r,l,c)=>{if(e.element.kind!=="timeframe_headers")return null;const d=e.element.data;return t.jsx(_a,{reportId:e.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:d,backgroundColor:i,isSticky:o,height:n,sortKey:r,sortOrder:l,onSortOrderChanged:c})},Ka=(e,n,i,o,r,l,c,d,h,u)=>{if(n.element.kind!=="aging_report_row")return null;if(n.config.reportId==="accounts_payable_aging"){const g=n.element.data;return t.jsx(ma,{backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,height:i,balances:g.apAgingBalances,vendor:g.vendor,total:g.total,onEntityNameClick:h})}const p=n.element.data;return t.jsx(wa,{treeNodeId:e,backgroundColor:d,isLastNode:l,isScrolling:c,isSticky:r,isOpen:o,height:i,metadata:n.element.metadata,balances:p.arAgingBalances,nestedCustomer:p,total:p.total,totalWithChildren:p.totalWithChildren,onEntityNameClick:h,onClick:u})},Ya=(e,n,i,o,r)=>{if(e.element.kind!=="ac_subentity_total")return null;if(e.config.reportId==="accounts_receivable_aging"){const l=e.element.data;return t.jsx(Ia,{backgroundColor:r,isScrolling:o,isSticky:i,height:n,metadata:e.element.metadata,nestedCustomer:l,total:l.totalWithChildren,noMarginForEntity:!0})}return null},Ua=(e,n,i,o,r)=>{const l=n.element.data;return t.jsx(Ea,{type:e,backgroundColor:o,isSticky:r,height:i,totalBalances:l,isIndented:n.config.reportId==="accounts_receivable_aging",title:n.element.title})};function ot(e,n,i,o){switch(e){case"cogs":return qa(i,o,n);case"expenses":return Qa(i,o,n);case"income":return Za(i,o,n);case"cash_position":return Ja(i,o,n);case"cash_in":return Xa(i,o,n);case"cash_out":return el(i,o,n);case"assets":return tl(i,o,n);case"equity":return nl(i,o,n);case"liabilities":return il(i,o,n);case"other_expense":return ol(i,o,n);case"other_income":return rl(i,o,n);case"operating_activities":return al(i,o,n);case"investing_activities":return ll(i,o,n);case"financing_activities":return cl(i,o,n);default:throw Error(`${e} is not yet supported!`)}}const qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cogsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Qa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.expensesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Za=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.incomeInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Ja=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashPositionInTimeframe,o.compactedAccountsSelector=()=>R([],o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},Xa=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashInInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},el=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.cashOutInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},tl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.assetsInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},nl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.equityInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},il=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ol=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherExpensesInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},rl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.otherIncomeInTimeframe,o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=()=>{},o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},al=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},ll=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o},cl=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>R(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,o.compactedAccountGroupsSelector=r=>oe(r,o.acGroupBalanceSelector,i,n),o};function R(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Ii(n(o)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(o=>Pi(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Fi(n(o)?.balances??[]))}}function oe(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Ii(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Pi(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>Fi(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Ii(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function Pi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function Fi(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function ee(e,n="ascending_date",i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=Ti([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function zi(e,n="ascending_date",i=-1,o=!0){const r=i!==-1,l=ee(e,n,i,o);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=Ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Fe(e,n){if(n==="ascending_date")return e;{const i=[],o=[];for(const r of e)r.type==="default"?i.push(r):o.push(r);return[...i.reverse(),...o]}}function Ti(e,n){return e.length>0?e:Qn(Array(n),null)}const sl=a.div`
566
+ display: flex;
567
+ flex: 1 1 auto;
568
+ max-height: 1px;
569
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
570
+ `,Wn=a.div`
571
+ display: flex;
572
+ flex: 1 1 auto;
573
+ max-height: 1px;
574
+ margin-left: ${e=>e.marginLeft}px;
575
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
576
+ `,dl=a.div`
577
+ display: flex;
578
+ flex: 1 1 auto;
579
+ max-height: 1px;
580
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
581
+ `;function hl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(Wn,{marginLeft:w[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(Wn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(sl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(dl,{isScrolling:n})}}const $e={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ul(e){switch(e){case"section":return w[8];case"section_with_ac_only":return w[8];case"calculated_section":return w[8];case"calculated_section_type1":return w[6];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_report":case"ac_subaccount":case"ac_subentity_total":return w[6];case"title_string_only":return 67;case"total":return w[6];case"timeframe_headers":return w[11];case"timeframe_headers_with_forecast":return w[0];case"class":case"checkbox_and_name_only":return w[0];default:return w[0]}}function gl(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!i.includes(n);case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_report":case"ac_subaccount":case"ac_subentity_total":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!1;default:return!1}}const pl=a.div`
582
+ 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
+ `,fl=a.div`
590
+ user-select: none;
591
+ display: flex;
592
+ flex: 1 1 auto;
593
+ flex-flow: row;
594
+ justify-content: flex-start;
595
+ align-items: center;
596
+ `,xl=a.div`
597
+ display: flex;
598
+ flex: 1 0 auto;
599
+ flex-direction: row;
600
+ justify-content: flex-end;
601
+ `,ml=a.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ justify-content: flex-start;
605
+ `,wl=a(v)`
606
+ user-select: none;
607
+ color: ${e=>e.theme.colors.hero};
608
+ min-width: ${$e.balanceWidth};
609
+ max-width: ${$e.balanceWidth};
610
+ text-align: right;
611
+ margin-left: ${$e.balanceLeftMargin};
612
+ `,yl=a.div`
613
+ display: flex;
614
+ flex-direction: row;
615
+ flex-shrink: 2;
616
+ flex-grow: 1;
617
+ align-items: center;
618
+ width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
619
+ color: ${e=>e.theme.colors.hero};
620
+ max-width: ${e=>$e.titleWidth.valuePx(e.windowSize)};
621
+ background-color: ${e=>e.bgColor?.hex()};
622
+ ${({isSticky:e})=>e?P`
623
+ position: -webkit-sticky;
624
+ position: sticky;
625
+ top: ${s.sp0};
626
+ left: ${s.sp0};
627
+ `:null}
628
+ `,bl=a(v)`
629
+ user-select: none;
630
+ clear: both;
631
+ display: inline-block;
632
+ overflow: hidden;
633
+ white-space: nowrap;
634
+ text-overflow: ellipsis;
635
+ text-align: left;
636
+ margin-left: ${s.sp6};
637
+ `,kl=({balance:e})=>t.jsx(ml,{children:t.jsx(wl,{children:q(e)})});function jl({heading:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:h}){const u=O();return t.jsxs(pl,{"data-testid":m("calculated-section-type-1-root-container-row",o),height:r,bgColor:n,windowSize:u,children:[t.jsxs(fl,{"data-testid":m("calculated-section-type-1-container-row",o),onClick:()=>h?.(o),children:[t.jsx(yl,{"data-testid":m("calculated-section-type-1-total-container-row",o),bgColor:n,isSticky:i,windowSize:u,children:t.jsx(bl,{children:e})}),t.jsx(xl,{children:l.map((p,g)=>t.jsx(kl,{balance:p},g))})]}),t.jsx(Sl,{isScrolling:c,isLastNode:d})]})}function Sl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(hl,{isScrolling:e,kind:"heading_row_separator"}):null}const Cl=a.div`
638
+ 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
+ `,vl=a.div`
646
+ user-select: none;
647
+ display: flex;
648
+ flex: 1 1 auto;
649
+ flex-flow: row;
650
+ justify-content: flex-start;
651
+ align-items: center;
652
+ `,_l=a.div`
653
+ display: flex;
654
+ flex: 1 0 auto;
655
+ flex-direction: row;
656
+ justify-content: flex-end;
657
+ `,$l=a.div`
658
+ display: flex;
659
+ flex-direction: row;
660
+ justify-content: flex-start;
661
+ `,Ke=a(ei)`
662
+ color: ${e=>e.theme.colors.champion};
663
+ user-select: none;
664
+ max-width: ${k.balanceWidth};
665
+ min-width: ${k.balanceWidth};
666
+ text-align: right;
667
+ margin-left: ${k.balanceLeftMargin};
668
+ `,Ll=a.div`
669
+ display: flex;
670
+ flex-direction: row;
671
+ flex-shrink: 2;
672
+ flex-grow: 1;
673
+ align-items: center;
674
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
675
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
676
+ background-color: ${e=>e.bgColor?.hex()};
677
+ ${({isSticky:e})=>e?P`
678
+ position: -webkit-sticky;
679
+ position: sticky;
680
+ top: ${s.sp0};
681
+ left: ${s.sp0};
682
+ `:null}
683
+ `,Al=a(ei)`
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
+ `,Bl=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs($l,{"data-testid":m("heading-row-balance-element",e),children:[re(e)||i?t.jsx(Ke,{"data-testid":m("heading-row-balance-actual",e),children:q(n)}):t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ke,{"data-testid":m("heading-row-balance-forecast",e),children:Z(n)}),t.jsx(Ke,{"data-testid":m("heading-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]});function Wl({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:h,isLeaf:u,onClick:p}){const g=O();return t.jsx(Cl,{height:r,bgColor:n,"data-testid":m("heading-row-root-container",o),children:t.jsxs(vl,{"data-testid":m("heading-row-container",o),isClickable:!u,onClick:()=>p?.(o),children:[ge(e)===!0?t.jsx(Ll,{"data-testid":m("heading-row-heading-container",o),isSticky:i,windowSize:g,bgColor:n,children:t.jsx(Al,{children:l})}):null,fe(e)===!0?t.jsx(_l,{"data-testid":m("heading-row-balances-container",o),children:c.map((f,x)=>t.jsx(Bl,{"data-testid":m("heading-row-balance-element",e),type:e,heading:l,balance:f,isActualVsForecastOn:d,compareMode:h},x))}):null]})})}const Ol=(e,n,i,o,r,l,c)=>{if(n.element.kind!="calculated_section_type1"||n.element.data==null)return null;const d=n.element.data,h=ee(d,n.config.displayOrder,n.element.numOfBalances);return t.jsx(jl,{backgroundColor:o,isSticky:r,treeNodeId:e,heading:n.element.title,totalBalances:h.balances,height:i,isScrolling:l,isLastNode:c})},Xt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="title_string_only")return null;const f=ee(void 0,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Wl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,heading:i.element.title,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:x=>{g?.(x)}})};function Vi(e,n){return Ml(n)}const Ml=(e,n)=>{const i={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return i.acBalanceSelector=o=>o.balancesInTimeframe,i.compactedAccountsSelectorVariant=o=>Nl(o,i.acBalanceSelector,e),i};function Nl(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>Il(n(o)?.balances??[]));default:return e}}function Il(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}const Ye=[new V(w[4],56),new V(44,76),new V(69,102),new V(93,124),new V(113,143)],On=[new V(w[0],w[0]),new V(14,w[4]),new V(67,67),new V(102,102),new V(136,136)],Pl=a.div`
694
+ display: flex;
695
+ flex: 1 1 auto;
696
+ max-height: 1px;
697
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
698
+ `,Mn=a.div`
699
+ display: flex;
700
+ flex: 1 1 auto;
701
+ max-height: 1px;
702
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey4};
703
+ `,Fl=a.div`
704
+ display: flex;
705
+ flex: 1 1 auto;
706
+ flex-flow: row;
707
+ justify-content: flex-start;
708
+ align-items: center;
709
+ `,zl=a.div`
710
+ display: flex;
711
+ flex-direction: row;
712
+ flex-shrink: 2;
713
+ flex-grow: 1;
714
+ align-items: center;
715
+ background-color: ${e=>e.theme.colors.grey4};
716
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
717
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
718
+ ${({isSticky:e})=>e?P`
719
+ position: -webkit-sticky;
720
+ position: sticky;
721
+ top: ${s.sp0};
722
+ left: ${s.sp0};
723
+ `:null}
724
+ `,Tl=a.div`
725
+ width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
726
+ max-width: ${e=>e.noMarginForAccount?Ye[e.nestingLevel].value(e.windowSize)-w[5]:Ye[e.nestingLevel].value(e.windowSize)}px;
727
+ height: 1px;
728
+ `,Vl=a.div`
729
+ width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
730
+ max-width: ${e=>On[e.classDepth].valuePx(e.windowSize)};
731
+ height: 1px;
732
+ `,Dl=a.div`
733
+ display: flex;
734
+ flex: 1 1 auto;
735
+ max-height: 1px;
736
+ height: 1px;
737
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
738
+ `,Rl=a.div`
739
+ display: flex;
740
+ flex: 1 1 auto;
741
+ max-height: 1px;
742
+ height: 1px;
743
+ background-color: ${e=>e.isScrolling?"transparent":e.colour};
744
+ `,Gl=a.div`
745
+ display: flex;
746
+ flex: 1 1 auto;
747
+ max-height: 1px;
748
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
749
+ `,Nn=e=>{const n=O(),i=ce();return t.jsxs(Fl,{children:[t.jsxs(zl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(Vl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Tl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Dl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]}),t.jsx(Rl,{isScrolling:e.isScrolling,colour:e.isTotal?i.colors.grey1:i.colors.grey3})]})};function xe({kind:e,isScrolling:n,subAccountProps:i}){switch(e){case"account_title_row_separator":return t.jsx(Mn,{marginLeft:w[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!1,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Mn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Pl,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Gl,{isScrolling:n});case"total_row_separator":return t.jsx(Nn,{nestingLevel:i?.nestingLevel??1,isScrolling:n,isSticky:i?.isSticky??!1,isTotal:!0,classDepth:i?.classDepth,noMarginForAccount:i?.noMarginForAccount??!1})}}function Di({height:e,backgroundColor:n,title:i,numOfBalances:o=6}){const r=O(),l=i!=null?i.split("+")[1]:"";let c=null;const d=r!=="small";switch(l){case"section-row":c=t.jsx(El,{columns:o,isSticky:d});break;case"root-class-row":c=t.jsx(Hl,{columns:o,isSticky:d});break;case"sub-class-row":c=t.jsx(Kl,{columns:o,isSticky:d});break;case"leaf-class-row":c=t.jsxs(t.Fragment,{children:[t.jsx(Yl,{columns:o,isSticky:d}),t.jsx(xe,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]});break}return t.jsx(ql,{height:e,bgColor:n,children:c})}const El=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.loadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsxs(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx})]}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Kl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(je,{style:{marginLeft:"36px"},children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:k.loadingInProgressLargeStickyColumnWidth,height:k.balanceHeightInPx,style:{marginLeft:w[4]}})]})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Yl=({columns:e,isSticky:n})=>t.jsxs(je,{children:[t.jsx(at,{isSticky:n,width:k.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(je,{style:{marginLeft:"84px"},children:t.jsx(H,{width:k.loadingInProgressSmallStickyColumnWidth,height:k.balanceHeightInPx})})}),t.jsx(rt,{columns:e,rectangleWidth:k.smallLoadingBalanceWidthInPx})]}),Ul=({rectangleWidth:e})=>t.jsx(Ri,{width:k.balanceWidthInPx,children:t.jsx(H,{width:e,height:k.balanceHeightInPx})}),rt=({columns:e,rectangleWidth:n})=>t.jsx(Ql,{style:{zIndex:9,width:k.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((i,o)=>t.jsx(Ul,{rectangleWidth:n},o))}),ql=a.div`
750
+ 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
+ `,je=a.div`
758
+ user-select: none;
759
+ display: flex;
760
+ flex: 1 1 auto;
761
+ flex-flow: row;
762
+ justify-content: flex-start;
763
+ align-items: center;
764
+ min-height: 0;
765
+ `,Ql=a.div`
766
+ display: flex;
767
+ flex: 1 0 auto;
768
+ flex-direction: row;
769
+ justify-content: flex-end;
770
+ `,Ri=a.div`
771
+ display: flex;
772
+ flex-direction: row;
773
+ align-items: center;
774
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
775
+ margin-right: ${k.balanceLeftMargin};
776
+ gap: ${k.balanceLeftMargin};
777
+ justify-content: flex-end;
778
+ `,at=a(Ri)`
779
+ position: ${e=>e.isSticky===!0?"sticky":"static"};
780
+ left: ${s.sp0};
781
+ z-index: 10;
782
+ background-color: ${e=>e.theme.colors.grey4};
783
+ justify-content: flex-start;
784
+ `;function Gi({height:e,numOfBalances:n,backgroundColor:i}){const o=O();return t.jsx(Zl,{height:e,bgColor:i,children:t.jsxs(Jl,{windowSize:o,children:[t.jsx(Xl,{windowSize:o,width:`${k.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(ec,{children:Array.from({length:n},(r,l)=>t.jsx(Ei,{windowSize:o,width:k.balanceWidth,children:t.jsx(H,{width:k.balanceWidthInPx,height:w[6]})},`timeframe-balance-${l}`))})]})})}const Zl=a.div`
785
+ display: flex;
786
+ flex: 1 1 auto;
787
+ width: fit-content;
788
+ min-width: 100%;
789
+ flex-direction: column;
790
+ height: ${e=>e.height}px;
791
+ background-color: ${e=>e.bgColor?.hex()};
792
+ margin-top: 20px;
793
+ `,Jl=a.div`
794
+ display: flex;
795
+ flex-direction: row;
796
+ width: 100%;
797
+ `,Ei=a.div`
798
+ display: flex;
799
+ flex-direction: row;
800
+ align-items: center;
801
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
802
+ min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
803
+ color: ${e=>e.theme.colors.primary};
804
+ background-color: ${e=>e.theme.colors.grey4};
805
+ justify-content: flex-end;
806
+ :first-of-type {
807
+ justify-content: flex-start;
808
+ }
809
+ margin-right: ${k.balanceLeftMargin};
810
+ `,Xl=a(Ei)`
811
+ position: sticky;
812
+ left: ${s.sp0};
813
+ z-index: 10;
814
+ background-color: ${e=>e.theme.colors.grey4};
815
+ `,ec=a.div`
816
+ display: flex;
817
+ flex-direction: row;
818
+ width: calc(100% - ${k.loadingInProgressStickySectionWidth}px);
819
+ justify-content: flex-end;
820
+ flex: 1 0 auto;
821
+ `,tc=a.div`
822
+ display: flex;
823
+ flex: 1 1 auto;
824
+ max-height: 1px;
825
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
826
+ `,nc=a.div`
827
+ display: flex;
828
+ flex: 1 1 auto;
829
+ max-height: 1px;
830
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
831
+ `;function en({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(tc,{"data-testid":m("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(nc,{"data-testid":m("section-row-separator",e),isScrolling:n})}}const D={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,350,405)};function ic(e){switch(e){case"section":return w[8];case"ac_group_report":case"ac_group_subaccount":return w[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":return w[6];case"calculated_section":case"calculated_section_type1":return w[8];case"section_with_ac_only":return w[8];case"timeframe_headers":case"headers_loading_in_progress":return w[11];case"timeframe_headers_with_forecast":return 98;case"loading_in_progress":return w[6];case"title_string_only":return w[8];case"total":return w[8];case"class":case"checkbox_and_name_only":return w[6];default:return 0}}function oc(e,n){const i=["summary","detailed"];switch(e){case"section":return!i.includes(n);case"section_with_ac_only":return!i.includes(n);case"calculated_section":case"calculated_section_type1":return!1;case"ac_group_report":case"ac_group_subaccount":return!i.includes(n);case"ac_subentity_total":case"ac_subaccount":case"ac_report":return!i.includes(n);case"title_string_only":return!i.includes(n);case"total":return!1;case"timeframe_headers":case"timeframe_headers_with_forecast":return!1;case"class":case"checkbox_and_name_only":return!0;default:return!1}}const rc=a.div`
832
+ 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
+ `,ac=a.div`
840
+ user-select: none;
841
+ display: flex;
842
+ flex: 1 1 auto;
843
+ flex-flow: row;
844
+ justify-content: flex-start;
845
+ align-items: center;
846
+ &:hover {
847
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
848
+ }
849
+ `,lc=a.div`
850
+ display: flex;
851
+ flex: 1 0 auto;
852
+ flex-direction: row;
853
+ justify-content: flex-end;
854
+ color: ${e=>e.hasNonZeroBalance===!0?e.theme.colors.primary:e.theme.colors.hero};
855
+ `,cc=a.div`
856
+ display: flex;
857
+ flex-direction: row;
858
+ justify-content: flex-start;
859
+ `,Ct=a(v)`
860
+ user-select: none;
861
+ min-width: ${D.balanceWidth};
862
+ max-width: ${D.balanceWidth};
863
+ text-align: right;
864
+ margin-left: ${D.balanceLeftMargin};
865
+ `,sc=a(Ct)`
866
+ color: ${e=>e.theme.colors.hero};
867
+ &:hover {
868
+ color: inherit;
869
+ }
870
+ `,dc=a.div`
871
+ display: flex;
872
+ flex-direction: row;
873
+ flex-shrink: 2;
874
+ flex-grow: 1;
875
+ align-items: center;
876
+ width: ${e=>D.titleWidth.valuePx(e.windowSize)};
877
+ max-width: ${e=>D.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?P`
881
+ position: -webkit-sticky;
882
+ position: sticky;
883
+ top: ${s.sp0};
884
+ left: ${s.sp0};
885
+ `:null}
886
+ `,hc=a(v)`
887
+ user-select: none;
888
+ clear: both;
889
+ display: inline-block;
890
+ overflow: hidden;
891
+ white-space: nowrap;
892
+ text-overflow: ellipsis;
893
+ text-align: left;
894
+ margin-left: ${s.sp2};
895
+ `,uc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?sc:Ct;return t.jsxs(cc,{"data-testid":m("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":m("account-group-row-balance-actual",e),children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":m("account-group-row-balance-forecast",e),children:Z(n)}),t.jsx(Ct,{"data-testid":m("account-group-row-balance-actual-vs-forecast",e),children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function gc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:h,isOpen:u,isLeaf:p,isLastNode:g,onClick:f}){const x=O(),b=!p,y=b?"pointer":"default",C=l.length>0?l.substr(0,1).toUpperCase():"",S=fc(c),A=ce().colors.primary,[L,W]=N.useState(!1);return t.jsxs(rc,{"data-testid":m("account-group-row-root-container",e),height:r,bgColor:n,windowSize:x,children:[t.jsxs(ac,{"data-testid":m("account-group-row-container",e),style:{cursor:y},isClickable:b,onClick:()=>f?.(o),onMouseOver:()=>W(!0),onMouseLeave:()=>W(!1),children:[t.jsxs(dc,{"data-testid":m("account-group-row-name-container",e),bgColor:n,isSticky:i,windowSize:x,hasNonZeroBalance:S,children:[t.jsx(ye,{"data-testid":m("account-group-row-circle-with-letter",e),color:$(A),showCollapsedIcon:!u,showIcon:b&&L,firstLetter:C}),t.jsx(hc,{"data-testid":m("account-group-row-name",e),children:l})]}),t.jsx(lc,{"data-testid":m("account-group-row-balances-container",e),hasNonZeroBalance:S,children:c.map((F,z)=>t.jsx(uc,{"data-testid":m("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:F,compareMode:d,collapsed:!1},z))})]}),t.jsx(pc,{isScrolling:h,isLeaf:p,isLastNode:g,isOpen:u})]})}function pc({isScrolling:e,isLeaf:n,isLastNode:i,isOpen:o}){return n||!o||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const fc=e=>{let n=!1;if(e!=null){for(const i of e)if(i!=null&&i.balance.amount!==0){n=!0;break}}return n},xc=a.div`
896
+ 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
+ `,mc=a.div`
904
+ user-select: none;
905
+ display: flex;
906
+ flex: 1 1 auto;
907
+ flex-flow: row;
908
+ justify-content: flex-start;
909
+ align-items: center;
910
+ &:hover {
911
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
912
+ }
913
+ `,wc=a.div`
914
+ display: flex;
915
+ flex: 1 0 auto;
916
+ flex-direction: row;
917
+ justify-content: flex-end;
918
+ `,yc=a.div`
919
+ display: flex;
920
+ flex-direction: row;
921
+ justify-content: flex-start;
922
+ `,wt=a(v)`
923
+ user-select: none;
924
+ min-width: ${D.balanceWidth};
925
+ max-width: ${D.balanceWidth};
926
+ text-align: right;
927
+ margin-left: ${D.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
+ `,bc=a.div`
934
+ display: flex;
935
+ flex-direction: row;
936
+ flex-shrink: 2;
937
+ flex-grow: 1;
938
+ align-items: center;
939
+ width: ${e=>D.titleWidth.valuePx(e.windowSize)};
940
+ max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
941
+ background-color: ${e=>e.bgColor?.hex()};
942
+ ${({isSticky:e})=>e?P`
943
+ position: -webkit-sticky;
944
+ position: sticky;
945
+ top: ${s.sp0};
946
+ left: ${s.sp0};
947
+ `:null}
948
+ `,kc=a(v)`
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
+ `,jc=({type:e,balance:n,account:i,onAccountBalanceClick:o,compareMode:r})=>{const l=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",c=i!=null&&n!=null&&o!=null&&l!==!0;return t.jsxs(yc,{children:[t.jsx(wt,{isClickable:c,onClick:()=>{c===!0&&i!=null&&n!=null&&o?.(i,n)},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(wt,{isClickable:!1,children:Z(n)}),t.jsx(wt,{isClickable:!1,children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Sc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:h,isLeaf:u,isLastNode:p,compareMode:g,account:f,onAccountBalanceClick:x}){const b=O(),{common:{strings:{empty:y}}}=B.getLocalizedStrings(),C=f?.accountDescription?f.accountDescription:y,S=f?.accountName?f.accountName:C,A=Zn(),L=A.loggedInUserRole!=null&&!oi(A.loggedInUserRole),W=L===!0&&f!=null&&c!==!0&&x!=null&&d!==!0,F=W?"pointer":"default",z=(K,E)=>{W===!0&&l[l.length-1]!=null&&x?.(K,E,l[l.length-1])};return t.jsxs(xc,{height:r,bgColor:n,windowSize:b,children:[t.jsxs(mc,{style:{cursor:F},isClickable:W,onClick:()=>f!=null?z(o,f):null,children:[t.jsx(bc,{isSticky:i,windowSize:b,bgColor:n,children:t.jsx(kc,{title:S,children:S})}),t.jsx(wc,{children:l.map((K,E)=>t.jsx(jc,{type:e,balance:K,account:f,onAccountBalanceClick:L===!1||x==null?void 0:(Y,Q)=>{x(o,Y,Q)},compareMode:g},E))})]}),t.jsx(Cc,{isScrolling:h,isLeaf:u,isLastNode:p})]})}function Cc({isScrolling:e,isLeaf:n,isLastNode:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"ac_group_row_separator"}):null}const vc=a.div`
959
+ display: flex;
960
+ flex: 1 1 auto;
961
+ width: fit-content;
962
+ min-width: 100%;
963
+ flex-direction: column;
964
+ height: ${e=>e.rootHeight-1}px;
965
+ background-color: ${e=>e.bgColor?.hex()};
966
+ `,_c=a.div`
967
+ user-select: none;
968
+ display: flex;
969
+ flex: 1 1 auto;
970
+ flex-flow: row;
971
+ justify-content: flex-start;
972
+ align-items: center;
973
+ `,$c=a.div`
974
+ display: flex;
975
+ flex: 1 0 auto;
976
+ flex-direction: row;
977
+ justify-content: flex-end;
978
+ `,In=a.div`
979
+ display: flex;
980
+ flex-direction: row;
981
+ justify-content: flex-start;
982
+ `,Ce=a(v)`
983
+ user-select: none;
984
+ max-width: ${D.balanceWidth};
985
+ min-width: ${D.balanceWidth};
986
+ text-align: right;
987
+ margin-left: ${D.balanceLeftMargin};
988
+ `,Pn=a(v)`
989
+ user-select: none;
990
+ max-width: ${D.balanceWidth};
991
+ min-width: ${D.balanceWidth};
992
+ text-align: right;
993
+ margin-left: ${D.balanceLeftMargin};
994
+ `,Lc=a.div`
995
+ display: flex;
996
+ flex-direction: column;
997
+ align-items: flex-end;
998
+ `,Ac=a.div`
999
+ display: flex;
1000
+ flex-direction: row;
1001
+ flex-shrink: 2;
1002
+ flex-grow: 1;
1003
+ align-items: center;
1004
+ height: ${s.sp7};
1005
+ width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1006
+ max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1007
+ background-color: ${e=>e.bgColor?.hex()};
1008
+ ${({isSticky:e})=>e?P`
1009
+ position: -webkit-sticky;
1010
+ position: sticky;
1011
+ top: ${s.sp0};
1012
+ left: ${s.sp0};
1013
+ `:null}
1014
+ `,Bc=a(v)`
1015
+ user-select: none;
1016
+ user-select: none;
1017
+ clear: both;
1018
+ display: inline-block;
1019
+ overflow: hidden;
1020
+ white-space: nowrap;
1021
+ text-overflow: ellipsis;
1022
+ text-align: left;
1023
+ margin-left: ${s.sp2};
1024
+ `,Wc=({type:e,balance:n,color:i,compareMode:o})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Lc,{children:[t.jsxs(In,{children:[t.jsx(Ce,{style:{color:i.toString()},children:q(n)}),We(e)?t.jsxs(t.Fragment,{children:[t.jsx(Ce,{style:{color:i.toString()},children:Z(n)}),t.jsx(Ce,{style:{color:i.toString()},children:o==="compare_mode_percent"?se(n):de(n)})]}):null]}),t.jsxs(In,{children:[r!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",r)}):null,We(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Pn,{style:{color:i.toString()},children:pe("0,0%",l)}):t.jsx(Ce,{}),t.jsx(Ce,{})]}):null]})]})};function tn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:h,isOpen:u,isLeaf:p,compareMode:g,onClick:f}){const x=O(),[b,y]=N.useState(!1),C=!p,S=C?"pointer":"default",A=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(vc,{"data-testid":m("section-row-root-container",o),rootHeight:r,bgColor:n,windowSize:x,children:[t.jsxs(_c,{"data-testid":m("section-row-container",o),style:{cursor:S},onClick:()=>f?.(o),onMouseOver:()=>y(!0),onMouseLeave:()=>y(!1),children:[t.jsxs(Ac,{"data-testid":m("section-row-name-container",o),isSticky:i,windowSize:x,bgColor:n,children:[t.jsx(ye,{"data-testid":m("section-row-circle-with-letter",o),color:$(d),showCollapsedIcon:!u,showIcon:C&&b,firstLetter:A}),t.jsx(Bc,{"data-testid":m("section-row-name",o),style:{color:d.toString()},children:l})]}),t.jsx($c,{"data-testid":m("section-row-balances-container",o),children:c.map((L,W)=>t.jsx(Wc,{"data-testid":m("section-row-balance-element",e),type:e,sectionName:l,balance:L,color:d,compareMode:g},W))})]}),t.jsx(Oc,{isScrolling:h,isLeaf:p,isOpen:u})]})}function Oc({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(en,{isScrolling:e,kind:"section_row_separator"}):null}const Mc=a.div`
1025
+ 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
+ `,Nc=a.div`
1033
+ user-select: none;
1034
+ display: flex;
1035
+ flex: 1 1 auto;
1036
+ flex-flow: row;
1037
+ justify-content: flex-start;
1038
+ align-items: center;
1039
+ `,Ic=a.div`
1040
+ display: flex;
1041
+ flex: 1 0 auto;
1042
+ flex-direction: row;
1043
+ justify-content: flex-end;
1044
+ `,Pc=a.div`
1045
+ display: flex;
1046
+ flex-direction: row;
1047
+ justify-content: flex-start;
1048
+ `,Hi=a(v)`
1049
+ user-select: none;
1050
+ min-width: ${D.balanceWidth};
1051
+ max-width: ${D.balanceWidth};
1052
+ text-align: right;
1053
+ margin-left: ${D.balanceLeftMargin};
1054
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1055
+ `,Fc=a(Hi)`
1056
+ color: ${e=>e.theme.colors.hero};
1057
+ &:hover {
1058
+ color: inherit;
1059
+ }
1060
+ `,zc=a.div`
1061
+ display: flex;
1062
+ flex-direction: row;
1063
+ flex-shrink: 2;
1064
+ flex-grow: 1;
1065
+ align-items: center;
1066
+ width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1067
+ max-width: ${e=>D.titleWidth.valuePx(e.windowSize)};
1068
+ background-color: ${e=>e.bgColor?.hex()};
1069
+ ${({isSticky:e})=>e?P`
1070
+ position: -webkit-sticky;
1071
+ position: sticky;
1072
+ top: ${s.sp0};
1073
+ left: ${s.sp0};
1074
+ `:null}
1075
+ `,Tc=a(v)`
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
+ `,yt=a(v)`
1085
+ user-select: none;
1086
+ min-width: ${D.balanceWidth};
1087
+ max-width: ${D.balanceWidth};
1088
+ text-align: right;
1089
+ margin-left: ${D.balanceLeftMargin};
1090
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1091
+ `,Vc=({type:e,balance:n,collapsed:i,compareMode:o})=>{const r=i===!0?Fc:Hi;return t.jsxs(Pc,{children:[re(e)===!0?t.jsx(r,{children:q(n)}):null,We(e)?t.jsxs(t.Fragment,{children:[t.jsx(yt,{children:q(n)}),t.jsx(yt,{children:Z(n)}),t.jsx(yt,{children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Dc({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:h,onClick:u}){const p=O(),g=!d,f=g?"pointer":"default";return t.jsx(Mc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Nc,{style:{cursor:f},isClickable:g,onClick:()=>u?.(o),children:[t.jsx(zc,{bgColor:n,isSticky:i,windowSize:p,children:t.jsx(Tc,{children:l})}),t.jsx(Ic,{children:c.map((x,b)=>t.jsx(Vc,{type:e,balance:x,collapsed:!1,compareMode:h},b))})]})})}const be={net_burn_or_income:{income:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},cogs:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},expenses:{color:new $(T.graphColor32),hoverColor:new $(T.graphColor32Dark)},"Gross Burn":{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)},"Net Burn":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)},"Net Income":{color:new $(T.graphColor13),hoverColor:new $(T.graphColor13Dark)}},revenue:{income:{color:new $(T.graphColor28),hoverColor:new $(T.graphColor28Dark)},cogs:{color:new $(T.graphColor17),hoverColor:new $(T.graphColor17Dark)},"Gross Margin":{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new $(T.graphColor33),hoverColor:new $(T.graphColor33Dark)},cash_out:{color:new $(T.graphColor02),hoverColor:new $(T.graphColor02Dark)},"Net Cash Flow":{color:new $(T.graphColor35),hoverColor:new $(T.graphColor35Dark)}},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},nn=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?be.net_burn_or_income[n]:be.default:e.startsWith("revenue")===!0?n!=null?be.revenue[n]:be.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?be.cash_in_cash_out[n]:be.default,Rc=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Sc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountBalances:x.balances,isCompareModeOn:i.config.mode==="this_period_vs_period_before",isForecastModeOn:i.config.mode==="actual_vs_forecast",isScrolling:c,isLeaf:d,isLastNode:h,compareMode:u,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},Gc=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(gc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,accountGroupName:f.accountGroupName,compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Ki=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionColor:f.color,sectionName:i.element.title,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ec=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.sectionType),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Yi=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=nn(i.config.reportId,i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(tn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f.color,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,compareMode:p,onClick:y=>{g?.(y)}})},Ui=(e,n,i,o,r,l,c,d)=>{if((i.config.isZeniCOAInUse==null||i.config.isZeniCOAInUse===!0)&&i.config.mode!=="this_period_vs_period_before")return null;const h=i.element.data,u=ee(h,i.config.displayOrder,i.element.numOfBalances);return t.jsx(Dc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:i.element.title,height:o,isLeaf:d,compareMode:c,totalBalances:u.balances})},Hc=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Kc=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),on=20,Yc=e=>{const n=[];return e&&Object.values(e).forEach(i=>{n.push(i)}),n.reverse()},Uc=a.div`
1092
+ display: flex;
1093
+ flex: 1 1 auto;
1094
+ height: 1px;
1095
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
1096
+ `,qc=a.div`
1097
+ display: flex;
1098
+ height: 1px;
1099
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
+ `;function vt({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Uc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(qc,{isScrolling:n});case"heading_row_separator":return null}}const Qc=a.div`
1101
+ position: relative;
1102
+ `,Zc=a.div`
1103
+ height: ${e=>e.height}px;
1104
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1105
+ width: 1px;
1106
+ `;a.div`
1107
+ height: 39px;
1108
+ width: 2px;
1109
+ `;const Jc=a.div`
1110
+ position: relative;
1111
+ margin-right: ${s.sp3};
1112
+ &::after {
1113
+ content: "";
1114
+ position: absolute;
1115
+ top: 20px;
1116
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1117
+ width: 18px;
1118
+ }
1119
+ `,Xc=a.div`
1120
+ height: ${s.sp6};
1121
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1122
+ width: 1px;
1123
+ `,es=a.div`
1124
+ position: relative;
1125
+ margin-right: ${s.sp3};
1126
+ &::after {
1127
+ content: "";
1128
+ position: absolute;
1129
+ top: ${e=>e.height}px;
1130
+ border-top: 1px solid ${e=>e.theme.colors.grey1};
1131
+ width: 18px;
1132
+ }
1133
+ `,ts=a.div`
1134
+ height: ${e=>e.height}px;
1135
+ border-left: 1px solid ${e=>e.theme.colors.grey1};
1136
+ margin-bottom: ${e=>e.height}px;
1137
+ width: 1px;
1138
+ `,qi=({height:e})=>t.jsx(Qc,{children:t.jsx(Zc,{height:e})}),ns=({height:e})=>t.jsx(es,{height:e,children:t.jsx(ts,{height:e})}),is=()=>t.jsx(Jc,{children:t.jsx(Xc,{})}),j={balanceHeight:s.sp4,balanceHeaderWidth:"126px",balanceWidth:"128px",balanceLeftMargin:"12px",statusLeftMargin:"12px",titleWidth:"685px",vendorContainerWidth:"628px",sectionContainerWidth:"685px",varianceHeaderContainerWidth:"182px",varianceContainerWidth:"184px",statusContainerWidth:"144px",sortIconDimension:"12px",categoryClassContainerWidth:"685px",categoryClassHeaderWidth:"250px",categoryClassValueWidth:"250px",lineComponentHeight:39,lineLComponentHeight:19.5,vendorLineComponentHeight:16,rectangularContainerWidth:128,largeRectangularContainerWidth:168,titleWidthMedium:"180px",categoryRowsSkeletonContainerWidth:"300px",varianceRowSkeletonContainerWidth:"210px",titleWidthSmall:"128px"};function Qi(e,n=!1){switch(e){case"section":return w[8];case"flux_vendor_account_class_row":return n?w[9]:w[6];case"flux_vendor_row":return w[8];case"timeframe_headers":return w[8];case"total":return w[8];case"loading_in_progress":return w[8];case"headers_loading_in_progress":return w[8];default:return 0}}function os(e){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(e)}const Fn=B.getLocalizedStrings(),rs=a.div`
1139
+ display: flex;
1140
+ flex-shrink: 0;
1141
+ width: ${j.varianceContainerWidth};
1142
+ min-width: ${j.varianceContainerWidth};
1143
+ margin-left: 12px;
1144
+ gap: ${s.sp1};
1145
+ flex-direction: row;
1146
+ justify-content: flex-end;
1147
+ text-align: center;
1148
+ `,as=a.div`
1149
+ height: ${s.sp4};
1150
+ border-radius: ${s.sp1};
1151
+ padding: 2px ${s.sp1};
1152
+ color: ${e=>e.textColor.hex()};
1153
+ `,ls=a.div`
1154
+ border-radius: ${s.sp1};
1155
+ padding: 2px ${s.sp1};
1156
+ height: ${s.sp4};
1157
+ justify-content: center;
1158
+ text-align: center;
1159
+ color: ${e=>e.textColor.hex()};
1160
+ background-color: ${e=>e.bgColor.hex()};
1161
+ `,lt=({amount:e,percentage:n,currency:i})=>{const o=ce();return t.jsxs(rs,{children:[t.jsx(as,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),children:U("0,0",Uo(Math.abs(e),i.currencyCode,i.currencySymbol))}),t.jsx(ls,{textColor:e>0?new $(o.colors.brandColorGoldDark):new $(o.colors.success),bgColor:e>0?new $(X.brandColorGoldLight):new $(X.successLight),children:`${Po(Math.abs(n)).format(Fn.common.numberFormat.roundedOff)}${Fn.common.strings.percentage}`})]})},zn=B.getLocalizedStrings(),cs=a.div`
1162
+ display: flex;
1163
+ flex: 1 1 auto;
1164
+ width: fit-content;
1165
+ min-width: 100%;
1166
+ flex-direction: column;
1167
+ `,ss=a.div`
1168
+ display: flex;
1169
+ flex: 1 1 auto;
1170
+ flex-flow: row;
1171
+ justify-content: flex-start;
1172
+ align-items: center;
1173
+ width: 100%;
1174
+ color: ${e=>e.isHoveredByParent?e.theme.colors.primary:e.theme.colors.hero};
1175
+ &:hover {
1176
+ color: ${e=>e.theme.colors.primary};
1177
+ }
1178
+ `,Zi=a.div`
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ `,Ji=a.div`
1182
+ display: flex;
1183
+ height: ${s.sp4};
1184
+ `,ds=a.div`
1185
+ display: flex;
1186
+ flex-direction: row;
1187
+ justify-content: flex-start;
1188
+ `,hs=a(v)`
1189
+ min-width: ${j.balanceWidth};
1190
+ max-width: ${j.balanceWidth};
1191
+ text-align: right;
1192
+ margin-left: 12px;
1193
+ `,us=a.div`
1194
+ display: flex;
1195
+ flex-direction: column;
1196
+ flex-shrink: 2;
1197
+ flex-grow: 1;
1198
+ align-items: center;
1199
+ width: ${j.categoryClassContainerWidth};
1200
+ max-width: ${j.categoryClassContainerWidth};
1201
+ padding-left: 67.5px;
1202
+ ${({isSticky:e})=>e?P`
1203
+ position: sticky;
1204
+ top: ${s.sp0};
1205
+ left: ${s.sp0};
1206
+ display: flex;
1207
+ `:null}
1208
+ `,gs=a.div`
1209
+ display: flex;
1210
+ height: ${s.sp4};
1211
+ width: 100%;
1212
+ `,ps=a.div`
1213
+ display: flex;
1214
+ flex-direction: row;
1215
+ flex-shrink: 2;
1216
+ flex-grow: 1;
1217
+ align-items: center;
1218
+ width: 100%;
1219
+ `,fs=a(we)`
1220
+ display: flex;
1221
+ width: ${j.categoryClassHeaderWidth};
1222
+ margin-left: ${s.sp3};
1223
+ color: ${e=>e.theme.colors.hero};
1224
+ `,xs=a(we)`
1225
+ display: flex;
1226
+ width: ${j.categoryClassHeaderWidth};
1227
+ margin-left: ${s.sp4};
1228
+ color: ${e=>e.theme.colors.hero};
1229
+ `,ms=a(v)`
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: ${j.categoryClassValueWidth};
1238
+ max-width: ${j.categoryClassValueWidth};
1239
+ `,ws=a(v)`
1240
+ display: flex;
1241
+ align-items: center;
1242
+ overflow: hidden;
1243
+ white-space: nowrap;
1244
+ text-overflow: ellipsis;
1245
+ text-align: left;
1246
+ margin-left: ${s.sp4};
1247
+ margin-right: ${s.sp3};
1248
+ width: ${j.categoryClassValueWidth};
1249
+ max-width: ${j.categoryClassValueWidth};
1250
+ `,ys=a.div`
1251
+ display: flex;
1252
+ margin-left: ${s.sp7};
1253
+ margin-right: calc(
1254
+ ${j.statusContainerWidth} +
1255
+ ${j.statusLeftMargin}
1256
+ );
1257
+ `,bs=a.div`
1258
+ position: sticky;
1259
+ left: 0;
1260
+ background-color: ${e=>e.theme.colors.grey4};
1261
+ display: flex;
1262
+ `,ks=a.div`
1263
+ overflow-x: auto;
1264
+ display: flex;
1265
+ flex: 1;
1266
+ justify-content: flex-end;
1267
+ `,js=({isBalanceRowFirstNode:e=!1,balance:n})=>{const i=n!=null;return t.jsxs(Zi,{children:[e?t.jsx(Ji,{}):null,t.jsx(ds,{children:t.jsx(hs,{isClickable:i,children:q(n)})})]})};function Ss({varianceAmount:e,variancePercentage:n,currency:i,isSticky:o,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:h,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:g}}}=B.getLocalizedStrings(),f=u.accountBase?.accountDescription?u.accountBase?.accountDescription:g,x=u.accountBase?.accountName?u.accountBase?.accountName:f,b=u.classBase?.className?u.classBase?.className:g,y=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(cs,{children:[t.jsxs(ss,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(bs,{children:t.jsxs(us,{className:"flux-class-and-account-value-container",isSticky:o,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(gs,{children:[t.jsx(qi,{height:j.lineComponentHeight}),t.jsx(fs,{children:zn.common.texts.category}),t.jsx(xs,{children:zn.common.texts.class})]}),t.jsxs(ps,{children:[y===!0?t.jsx(ns,{height:j.lineLComponentHeight}):t.jsx(is,{}),t.jsx(ms,{title:x,children:x}),t.jsx(ws,{title:b,children:b})]})]})}),t.jsx(ks,{children:t.jsxs(ys,{children:[r.map((C,S)=>t.jsx(js,{balance:C,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},S)),t.jsxs(Zi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(Ji,{}),t.jsx(lt,{amount:e,percentage:n,currency:i})]})]})})]}),t.jsx(Cs,{isScrolling:l,isLeaf:d,isLastNode:h,isParentLastChild:c?.isVendorLastChild??!0})]})}function Cs({isScrolling:e,isLastNode:n,isParentLastChild:i}){return n&&i?t.jsx(vt,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(vt,{isScrolling:e,kind:"account_class_row_separator"}):null}function vs(){return t.jsxs(_s,{children:[t.jsxs(Ls,{children:[t.jsxs(ke,{width:j.categoryRowsSkeletonContainerWidth,className:"vendor-title",children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(ke,{width:j.categoryRowsSkeletonContainerWidth,children:t.jsx(H,{width:j.largeRectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs($s,{children:[t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(ke,{width:j.varianceRowSkeletonContainerWidth,children:[t.jsx(H,{width:j.rectangularContainerWidth,height:w[4],style:{display:"flex",alignItems:"center"}}),t.jsx(H,{width:w[7],height:w[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(ke,{width:j.titleWidthMedium,children:t.jsx(H,{width:70,height:w[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const _s=a.div`
1268
+ display: flex;
1269
+ flex-direction: row;
1270
+ width: 100%;
1271
+ margin-left: ${s.sp8};
1272
+ .vendor-title {
1273
+ justify-content: flex-start;
1274
+ }
1275
+ `,ke=a.div`
1276
+ display: flex;
1277
+ flex-direction: row;
1278
+ align-items: center;
1279
+ min-width: ${e=>e.width};
1280
+ color: ${e=>e.theme.colors.primary};
1281
+ background-color: ${e=>e.theme.colors.grey4};
1282
+ justify-content: flex-end;
1283
+
1284
+ :last-of-type {
1285
+ justify-content: center;
1286
+ }
1287
+ `,$s=a.div`
1288
+ display: flex;
1289
+ `,Ls=a.div`
1290
+ display: flex;
1291
+ width: ${j.vendorContainerWidth};
1292
+ position: sticky;
1293
+ left: ${s.sp8};
1294
+ top: 0;
1295
+ z-index: 10;
1296
+ `,As=a.div`
1297
+ display: flex;
1298
+ flex: 1 1 auto;
1299
+ width: fit-content;
1300
+ min-width: 100%;
1301
+ flex-direction: column;
1302
+ height: ${e=>e.heightValue}px;
1303
+ background-color: ${e=>e.bgColor?.hex()};
1304
+ `,Bs=a.div`
1305
+ display: flex;
1306
+ flex: 1 1 auto;
1307
+ flex-flow: row;
1308
+ justify-content: flex-start;
1309
+ align-items: center;
1310
+ `,Ws=a.div`
1311
+ display: flex;
1312
+ flex-direction: row;
1313
+ justify-content: flex-start;
1314
+ `,Os=a(v)`
1315
+ max-width: ${j.balanceWidth};
1316
+ min-width: ${j.balanceWidth};
1317
+ text-align: right;
1318
+ margin-left: ${j.balanceLeftMargin};
1319
+ color: ${({color:e})=>e};
1320
+ `,Ms=a.div`
1321
+ display: flex;
1322
+ flex-direction: row;
1323
+ flex-shrink: 2;
1324
+ align-items: center;
1325
+ height: 100%;
1326
+ width: ${j.sectionContainerWidth};
1327
+ min-width: ${j.sectionContainerWidth};
1328
+ background-color: ${e=>e.bgColor?.hex()};
1329
+ ${({isSticky:e})=>e&&P`
1330
+ position: sticky;
1331
+ top: ${s.sp0};
1332
+ left: ${s.sp0};
1333
+ `}
1334
+ `,Ns=a(v)`
1335
+ clear: both;
1336
+ display: inline-block;
1337
+ overflow: hidden;
1338
+ white-space: nowrap;
1339
+ text-overflow: ellipsis;
1340
+ text-align: left;
1341
+ margin-left: ${s.sp2};
1342
+ color: ${({color:e})=>e};
1343
+ `,Is=a(Tt)`
1344
+ color: ${e=>e.theme.colors.primary};
1345
+ width: ${s.sp3};
1346
+ height: ${s.sp3};
1347
+ `,Ps=a.div`
1348
+ display: flex;
1349
+ &:hover {
1350
+ .flux-section-checkbox {
1351
+ background-color: transparent;
1352
+ }
1353
+ }
1354
+ `,Fs=a.div`
1355
+ display: flex;
1356
+ width: ${s.sp8};
1357
+ `,zs=a.div`
1358
+ display: flex;
1359
+ margin-left: ${s.sp7};
1360
+ flex: 1 1 auto;
1361
+ justify-content: flex-end;
1362
+ margin-right: calc(
1363
+ ${j.statusContainerWidth} +
1364
+ ${j.statusLeftMargin}
1365
+ );
1366
+ `,Ts=({balance:e,color:n})=>t.jsx(Ws,{children:t.jsx(Os,{color:n,children:q(e)})}),Vs=Ho.memo(function({currency:e,sectionId:n,selectedSectionsIds:i,backgroundColor:o,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:h,sectionBalances:u,varianceAmount:p,variancePercentage:g,sectionColor:f,isScrolling:x,isOpen:b,isLeaf:y,idsForReview:C,sectionToggled:S,onSectionCheckboxClick:A}){const L=O(),[W,F]=N.useState(C.length>0),[z,K]=N.useState(!1),E=i.includes(n),Y=!y,Q=C.length===on&&!E,he=d?.[0]?.toUpperCase()??"",J=N.useCallback(ie=>{A?.(n,ie.target.checked)},[n,A]);return t.jsxs(As,{heightValue:c,bgColor:o,children:[t.jsxs(Bs,{style:{cursor:Y?"pointer":"default"},onClick:()=>S?.(l),onMouseOver:()=>{K(!0),F(!0)},onMouseLeave:()=>{K(!1),C.length===0&&F(!1)},children:[t.jsxs(Ms,{className:"flux-section-name-container",isSticky:r,windowSize:L,bgColor:o,children:[h&&W&&b?t.jsx(Ps,{children:t.jsx(It,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Is,{}),checked:E,id:l,disabled:Q,onChange:J,onClick:ie=>ie.stopPropagation(),style:{padding:"20px",pointerEvents:Q?"none":"auto"}})}):t.jsx(Fs,{}),t.jsx(ye,{color:$(f),showCollapsedIcon:!b,showIcon:z&&Y,firstLetter:he}),t.jsx(Ns,{color:f.toString(),children:d})]}),t.jsxs(zs,{children:[u.map((ie,Se)=>t.jsx(Ts,{sectionName:d,balance:ie,color:f.toString()},Se)),t.jsx(lt,{amount:p,percentage:g,currency:e})]})]}),t.jsx(Ds,{isScrolling:x,isLeaf:y,isOpen:b})]})});function Ds({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(vt,{isScrolling:e,kind:"section_row_separator"}):null}function Rs(){const e=O();return t.jsxs(Gs,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:j.vendorContainerWidth,marginRight:0,children:t.jsx(H,{width:w[9],height:w[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:128,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthMedium,marginRight:0,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.varianceRowSkeletonContainerWidth,children:t.jsx(H,{width:184,height:w[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:j.titleWidthSmall,children:t.jsx(H,{width:j.rectangularContainerWidth,height:w[6],style:{display:"flex",alignItems:"center"}})})]})}const Gs=a.div`
1367
+ display: flex;
1368
+ flex-direction: row;
1369
+ width: 100%;
1370
+ margin-left: ${s.sp8};
1371
+ `,ve=a.div`
1372
+ display: flex;
1373
+ flex-direction: row;
1374
+ align-items: center;
1375
+ margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
1376
+ min-width: ${e=>e.width};
1377
+ color: ${e=>e.theme.colors.primary};
1378
+ background-color: ${e=>e.theme.colors.grey4};
1379
+ justify-content: flex-end;
1380
+ :first-of-type {
1381
+ justify-content: flex-start;
1382
+ }
1383
+ `,{common:Es,expenseAutomation:{fluxAnalysis:Hs},vendors:{opExByVendor:Ks}}=B.getLocalizedStrings(),Ys=a.div`
1384
+ display: flex;
1385
+ flex: 1 1 auto;
1386
+ width: fit-content;
1387
+ min-width: 100%;
1388
+ height: ${e=>`${e.heightValue}px`};
1389
+ flex-flow: row;
1390
+ justify-content: flex-start;
1391
+ align-items: center;
1392
+ background-color: ${e=>e.bgColor?.hex()};
1393
+ `,_t=a.div`
1394
+ display: flex;
1395
+ max-height: ${s.sp8};
1396
+ min-height: ${s.sp8};
1397
+ min-width: ${e=>e.width!=null?e.width:j.balanceHeaderWidth};
1398
+ justify-content: center;
1399
+ align-items: center;
1400
+ background-color: ${e=>e.theme.colors.background};
1401
+ border: 1px solid ${e=>e.theme.colors.grey3};
1402
+ border-radius: ${s.sp2};
1403
+ margin-left: ${j.balanceLeftMargin};
1404
+ color: ${e=>e.theme.colors.primary};
1405
+ cursor: ${e=>e.isClickable?"pointer":"default"};
1406
+ `,Us=a(v)`
1407
+ display: flex;
1408
+ flex-direction: row;
1409
+ justify-content: center;
1410
+ align-items: center;
1411
+ height: ${j.balanceHeight};
1412
+ max-width: ${j.balanceHeaderWidth};
1413
+ width: 138px;
1414
+ text-align: center;
1415
+ `,qs=a.div`
1416
+ display: flex;
1417
+ cursor: pointer;
1418
+ `,Qs=a.div`
1419
+ display: flex;
1420
+ cursor: pointer;
1421
+ justify-content: center;
1422
+ align-items: center;
1423
+ color: ${e=>e.theme.colors.primary};
1424
+ `,Zs=a.div`
1425
+ display: flex;
1426
+ flex-direction: row;
1427
+ z-index: 1;
1428
+ background-color: ${e=>e.theme.colors.grey4};
1429
+ padding-left: ${s.sp8};
1430
+ ${({isSticky:e})=>e?P`
1431
+ top: ${s.sp0};
1432
+ left: ${s.sp0};
1433
+ display: flex;
1434
+ position: sticky;
1435
+ `:null};
1436
+ `,Js=a.div`
1437
+ height: ${s.sp8};
1438
+ display: flex;
1439
+ flex-direction: row;
1440
+ align-items: center;
1441
+ min-width: ${j.vendorContainerWidth};
1442
+ color: ${e=>e.theme.colors.primary};
1443
+ background-color: ${e=>e.theme.colors.grey4};
1444
+ `,Xs=a(v)`
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
+ `,$t=a.div`
1450
+ display: flex;
1451
+ cursor: pointer;
1452
+ `,Lt=a.div`
1453
+ color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
+ `,At=a(Dt)`
1455
+ width: ${j.sortIconDimension};
1456
+ height: ${j.sortIconDimension};
1457
+ margin-left: ${s.sp2};
1458
+ margin-top: ${s.sp1};
1459
+ `,Bt=a(Rt)`
1460
+ width: ${j.sortIconDimension};
1461
+ height: ${j.sortIconDimension};
1462
+ margin-left: ${s.sp2};
1463
+ margin-top: ${s.sp1};
1464
+ `,ed=a.div`
1465
+ display: flex;
1466
+ margin-left: ${s.sp7};
1467
+ flex: 1 1 auto;
1468
+ justify-content: flex-end;
1469
+ `,td=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(_t,{isClickable:!1,children:t.jsx(Us,{children:Pe(e,n,i)})}),nd=({firstMonthOfFY:e,timeframeTick:n,timeframe:i})=>t.jsx(td,{firstMonthOfFY:e,timeframeTick:n,timeframe:i}),id=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:i,onSortOrderChanged:o})=>{const r=()=>{o(n==="ascending"?"descending":"ascending","vendor")},l=e==="vendor"?n:"ascending";return t.jsx(Xs,{isBulkSelected:i,isSortedByKey:e==="vendor",children:t.jsxs($t,{onClick:r,"data-testid":m("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Ks.vendor,t.jsx(Lt,{isBulkSelected:i,isSortedByKey:e==="vendor",children:l==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})};function od({backgroundColor:e,height:n,isBulkSelected:i,sortKey:o="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:h}){const u=O(),p=(g,f)=>{h?.(g,f)};return t.jsxs(Ys,{heightValue:n,bgColor:e,children:[t.jsx(Zs,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Js,{windowSize:u,children:t.jsx(id,{sortKey:o,sortOrder:r,isBulkSelected:i,onSortOrderChanged:p})})}),t.jsxs(ed,{children:[d.map((g,f)=>t.jsx(nd,{firstMonthOfFY:l,timeframeTick:g,timeframe:c},f)),t.jsx(_t,{isClickable:!1,width:j.varianceHeaderContainerWidth,children:t.jsxs($t,{onClick:()=>h?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":m("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(qs,{children:Hs.variance}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="variance",children:(o==="variance"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})}),t.jsx(_t,{isClickable:!1,width:j.statusContainerWidth,children:t.jsxs($t,{onClick:()=>{h?.(r==="ascending"?"descending":"ascending","status")},"data-testid":m("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Qs,{children:Es.texts.reviewStatus}),t.jsx(Lt,{isBulkSelected:i,isSortedByKey:o==="status",children:(o==="status"?r:"ascending")==="ascending"?t.jsx(At,{}):t.jsx(Bt,{})})]})})]})]})}const rd=a.div`
1470
+ 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
+ `,ad=a.div`
1479
+ cursor: default;
1480
+ user-select: none;
1481
+ display: flex;
1482
+ flex: 1 1 auto;
1483
+ flex-flow: row;
1484
+ justify-content: flex-start;
1485
+ align-items: center;
1486
+ `,ld=a.div`
1487
+ display: flex;
1488
+ flex-direction: row;
1489
+ `,cd=a.div`
1490
+ display: flex;
1491
+ flex-direction: row;
1492
+ justify-content: flex-start;
1493
+ align-items: center;
1494
+ margin-left: ${j.balanceLeftMargin};
1495
+ `,sd=a(ne)`
1496
+ user-select: none;
1497
+ min-width: ${j.balanceWidth};
1498
+ max-width: ${j.balanceWidth};
1499
+ text-align: right;
1500
+ color: ${e=>e.theme.colors.hero};
1501
+ border: 1px solid transparent;
1502
+ `,dd=a.div`
1503
+ display: flex;
1504
+ flex-direction: row;
1505
+ align-items: center;
1506
+ flex-shrink: 2;
1507
+ flex-grow: 1;
1508
+ width: ${j.titleWidth};
1509
+ max-width: ${j.titleWidth};
1510
+ height: 100%;
1511
+ background-color: ${e=>e.theme.colors.grey4};
1512
+ position: sticky;
1513
+ left: ${s.sp8};
1514
+ top: 0;
1515
+ z-index: 10;
1516
+ `,hd=a(ne)`
1517
+ user-select: none;
1518
+ clear: both;
1519
+ display: inline-block;
1520
+ overflow: hidden;
1521
+ white-space: nowrap;
1522
+ text-overflow: ellipsis;
1523
+ text-align: left;
1524
+ color: ${e=>e.theme.colors.primary};
1525
+ `,ud=a.div`
1526
+ display: flex;
1527
+ width: ${j.statusContainerWidth};
1528
+ min-width: ${j.statusContainerWidth};
1529
+ justify-content: center;
1530
+ flex-direction: row;
1531
+ margin-left: ${j.statusLeftMargin};
1532
+ `,gd=a.div`
1533
+ display: flex;
1534
+ margin-left: ${s.sp7};
1535
+ flex: 1 1 auto;
1536
+ justify-content: flex-end;
1537
+ `,pd=({balance:e})=>t.jsx(cd,{children:t.jsx(sd,{children:U("0,0",e?.balance)})});function fd({type:e,height:n,title:i,totalBalances:o,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(rd,{"data-testid":m("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(ad,{"data-testid":m("total-row-container"),children:[t.jsx(dd,{className:"flux-total-row",children:t.jsx(hd,{children:i})}),t.jsxs(gd,{children:[t.jsx(ld,{children:re(e)&&o.map((h,u)=>t.jsx(pd,{balance:h},u))}),t.jsx(lt,{amount:r,percentage:l,currency:c}),t.jsx(ud,{})]})]})})}const xd=a.div`
1538
+ 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
+ `,md=a.div`
1546
+ user-select: none;
1547
+ display: flex;
1548
+ flex: 1 1 auto;
1549
+ flex-flow: row;
1550
+ justify-content: flex-start;
1551
+ align-items: center;
1552
+ cursor: pointer;
1553
+ color: ${e=>e.isRowExpanded?e.theme.colors.primary:e.theme.colors.hero};
1554
+ &:hover {
1555
+ color: ${e=>e.theme.colors.primary};
1556
+ .flux-vendor-chevron-icon,
1557
+ .flux-vendor-collapsable-chevron-icon,
1558
+ .flux-vendor-children-count {
1559
+ border: 1px solid ${e=>e.theme.colors.primary};
1560
+ }
1561
+ }
1562
+ .flux-vendor-chevron-icon,
1563
+ .flux-vendor-collapsable-chevron-icon,
1564
+ .flux-vendor-children-count {
1565
+ border: 1px solid
1566
+ ${e=>e.shouldHighlight?e.theme.colors.primary:e.theme.colors.hero};
1567
+ }
1568
+ `,wd=a.div`
1569
+ display: flex;
1570
+ flex-direction: row;
1571
+ justify-content: flex-start;
1572
+ align-items: center;
1573
+ margin-left: ${j.balanceLeftMargin};
1574
+ `,yd=a(v)`
1575
+ user-select: none;
1576
+ min-width: ${j.balanceWidth};
1577
+ max-width: ${j.balanceWidth};
1578
+ text-align: right;
1579
+ `,bd=a.div`
1580
+ display: flex;
1581
+ flex-direction: row;
1582
+ align-items: center;
1583
+ flex-shrink: 2;
1584
+ flex-grow: 1;
1585
+ width: ${j.titleWidth};
1586
+ max-width: ${j.titleWidth};
1587
+ background-color: ${e=>e.bgColor?.hex()};
1588
+ ${({isSticky:e})=>e?P`
1589
+ position: -webkit-sticky;
1590
+ position: sticky;
1591
+ top: ${s.sp0};
1592
+ left: ${s.sp0};
1593
+ `:null}
1594
+ `,kd=a(v)`
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
+ `,jd=a.div`
1603
+ display: flex;
1604
+ justify-content: space-between;
1605
+ flex-grow: 1;
1606
+ `,Sd=a.div`
1607
+ display: flex;
1608
+ align-items: center;
1609
+ margin-left: 10px;
1610
+ `;a.div`
1611
+ display: flex;
1612
+ flex-shrink: 0;
1613
+ width: ${j.varianceContainerWidth};
1614
+ min-width: ${j.varianceContainerWidth};
1615
+ margin-left: 12px;
1616
+ gap: ${s.sp1};
1617
+ flex-direction: row;
1618
+ justify-content: flex-end;
1619
+ text-align: center;
1620
+ align-items: center;
1621
+ `;const Cd=a(Fo)`
1622
+ width: 12px;
1623
+ height: 12px;
1624
+ `;a.div`
1625
+ height: ${s.sp4};
1626
+ border-radius: ${s.sp1};
1627
+ padding: 2px ${s.sp1};
1628
+ `;a.div`
1629
+ border-radius: ${s.sp1};
1630
+ padding: 2px ${s.sp1};
1631
+ height: ${s.sp4};
1632
+ justify-content: center;
1633
+ text-align: center;
1634
+ background-color: ${e=>e.bgColor.hex()};
1635
+ `;const vd=a.div`
1636
+ display: flex;
1637
+ margin-left: ${s.sp7};
1638
+ flex: 1 1 auto;
1639
+ justify-content: flex-end;
1640
+ `,_d=a.div`
1641
+ display: flex;
1642
+ flex-direction: column;
1643
+ align-items: center;
1644
+ padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
1645
+ `,$d=a.div`
1646
+ display: flex;
1647
+ width: ${j.statusContainerWidth};
1648
+ min-width: ${j.statusContainerWidth};
1649
+ justify-content: center;
1650
+ flex-direction: row;
1651
+ margin-left: ${j.statusLeftMargin};
1652
+ `,Ld=a(we)`
1653
+ width: ${j.balanceWidth};
1654
+ max-width: ${j.balanceWidth};
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
+ `,Ad=a.div`
1662
+ color: ${e=>e.theme.colors.grey1};
1663
+ border: 1px solid ${e=>e.theme.colors.grey1};
1664
+ padding: ${s.sp0} 6px;
1665
+ border-radius: ${s.sp1};
1666
+ width: fit-content;
1667
+ display: flex;
1668
+ align-items: center;
1669
+ margin-right: ${s.sp2};
1670
+ `,Bd=a(we)`
1671
+ overflow: hidden;
1672
+ text-overflow: ellipsis;
1673
+ `,Wd=a.div`
1674
+ display: flex;
1675
+ width: ${s.sp8};
1676
+ height: ${s.sp8};
1677
+ &:hover {
1678
+ .flux-vendor-checkbox {
1679
+ background-color: transparent;
1680
+ }
1681
+ }
1682
+ `,Od=a(Tt)`
1683
+ color: ${e=>e.theme.colors.primary};
1684
+ width: ${s.sp3};
1685
+ height: ${s.sp3};
1686
+ `,Md=a(we)`
1687
+ display: flex;
1688
+ flex-direction: row;
1689
+ align-items: center;
1690
+ gap: 2px;
1691
+ color: ${e=>e.theme.colors.success};
1692
+ `,Nd=a(Xn)`
1693
+ width: 12px;
1694
+ height: 12px;
1695
+ `,Tn=a(Jn)`
1696
+ margin-left: 2px;
1697
+ width: 12px;
1698
+ height: 12px;
1699
+ `,Id=a(Le)`
1700
+ display: flex;
1701
+ border-radius: 50%;
1702
+ width: ${s.sp4};
1703
+ height: ${s.sp4};
1704
+ text-align: center;
1705
+ align-items: center;
1706
+ justify-content: center;
1707
+ `,Pd=a(Le)`
1708
+ display: flex;
1709
+ border-radius: ${s.sp1};
1710
+ width: ${s.sp4};
1711
+ height: ${s.sp4};
1712
+ text-align: center;
1713
+ align-items: center;
1714
+ justify-content: center;
1715
+ margin-right: ${s.sp4};
1716
+ `,Fd=a(Le)`
1717
+ display: flex;
1718
+ border-radius: 100px;
1719
+ width: 18px;
1720
+ height: 18px;
1721
+ justify-content: center;
1722
+ align-items: center;
1723
+ margin-left: ${s.sp1};
1724
+ `,{common:Vn,expenseAutomation:zd}=B.getLocalizedStrings(),Td=({balance:e})=>{const n=yd;return t.jsx(wd,{children:t.jsx(n,{children:q(e)})})};function Vd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:i,isSticky:o,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:h,currency:u,vendorBalances:p,reviewedByUser:g,status:f,vendor:x,isOpen:b,childrenCount:y,setHoveredParentId:C,onClick:S,handleRedirectToVendorDetailPage:A,updateOperatingExpensesIdsForReview:L}){const[W,F]=N.useState(!1),[z,K]=N.useState(n.length>0),E=n.includes(e),Y=n.includes(e),Q=c==="collapsed",he=n.length===on&&E===!1,J=kd,ie=ae=>{let ue=n;ae.target.checked===!0?ue=[...ue,e]:ue=ue.filter(De=>De!==e),L?.(ue)},Se=()=>{A?.(x)};return t.jsx(xd,{heightValue:l,bgColor:i,children:t.jsxs(md,{shouldHighlight:Y,isRowExpanded:b,onClick:()=>S?.(r),onMouseOver:()=>{F(!0),K(!0),C?.(x.id)},onMouseLeave:()=>{F(!1),n.length===0&&K(!1),C?.(null)},children:[t.jsxs(bd,{className:"flux-vendor-name-container",bgColor:i,isSticky:o,children:[t.jsx(Wd,{className:"flux-vendor-checkbox-container",children:z?t.jsx(It,{className:"flux-vendor-checkbox",icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Od,{}),checked:E,name:x.name,id:e,disabled:he,onChange:ie,onClick:ae=>ae.stopPropagation(),style:{padding:"20px",pointerEvents:he?"none":"auto"}}):null}),t.jsxs(_d,{isNodeOpen:b,children:[W?t.jsx(Id,{className:"flux-vendor-collapsable-chevron-icon",children:b===!1?t.jsx(Tn,{}):t.jsx(Nd,{})}):x.logo!=null?t.jsx(Ft,{photoUrl:x.logo.toString(),styles:{width:w[4],height:w[4]}}):t.jsx(zt,{name:x.name,size:s.sp4}),b?t.jsx(qi,{height:j.vendorLineComponentHeight}):null]}),t.jsxs(jd,{children:[t.jsxs(Sd,{children:[t.jsx(J,{children:x.name}),b?null:t.jsx(Fd,{className:"flux-vendor-children-count",children:t.jsx(Le,{children:y})})]}),W?t.jsx(N.Fragment,{children:t.jsx(Pd,{className:"flux-vendor-chevron-icon",onClick:Se,"data-testid":m("flux-analysis-report-vendorElement-row"),children:t.jsx(Tn,{})})}):null]})]}),t.jsxs(vd,{children:[p.map((ae,ue)=>t.jsx(Td,{balance:ae,collapsed:Q},ue)),t.jsx(lt,{amount:d,percentage:h,currency:u}),t.jsx($d,{children:f==="Pending Review"?t.jsx(Ad,{children:t.jsx(Bd,{children:Vn.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Ld,{className:"vendor-flux-analysis-review-info",children:g!=null?t.jsxs(N.Fragment,{children:[t.jsxs(Md,{children:[t.jsx(Cd,{}),zd.fluxAnalysis.reviewedBy]}),t.jsx(Le,{children:Wo(g)})]}):Vn.strings.hyphen})})})]})]})})}const Dn={generalExpense:{color:new $(T.graphColor04),hoverColor:new $(T.graphColor04Dark)},reimbursement:{color:new $(T.graphColor10),hoverColor:new $(T.graphColor10Dark)},default:{color:new $(X.neutralGrey2Dark),hoverColor:new $(X.neutralGrey2Dark)}},Dd=(e,n)=>e.startsWith("flux_analysis_operating_expense")===!0&&n!=null?Dn[n]:Dn.default,rn=(e,n)=>{const{element:i}=e;return i.kind===n&&i.data!=null},Xi=e=>Yc(e.balancesByMonth),Rd=(e,n,i,o,r,l,c,d,h)=>{if(!rn(n,"flux_vendor_account_class_row"))return null;const u=n.element.data,p=Xi(u),g=n.element.metadata.vendorId;return t.jsx(Ss,{backgroundColor:i,isSticky:o,treeNodeId:e,balances:p,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:u.currency,isScrolling:r,isLeaf:l,isLastNode:c,nodeMetadata:n.element.metadata,accountAndClass:u,onAccountAndClassBalanceClick:()=>h?.(g),isHoveredByParent:d?.hoveredParentId===g})},Gd=(e,n,i,o,r,l,c,d,h,u,p)=>{if(!rn(n,"flux_vendor_row"))return null;const g=n.element.data,f=Xi(g),x=Qi("flux_vendor_row",h),b=y=>{p?.(y),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(y)};return t.jsx(Vd,{backgroundColor:i,isSticky:o,treeNodeId:e,fluxAnalysisEntityId:g.fluxAnalysisEntityId,height:x,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:g.vendor,vendorBalances:f,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,status:g.status,currency:g.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:g.vendorAccountsAndClasses.length,onClick:y=>{b?.(y)},reviewedByUser:g.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},Ed=(e,n,i,o,r,l,c,d,h,u)=>{if(!rn(n,"section"))return null;const p=Dd(n.config.reportId,n.element.sectionType),g=n.element.data,f=x=>{n.config.fluxAnalysisConfig?.onSectionRowClick(x),u?.(x)};return t.jsx(Vs,{backgroundColor:o,isSticky:r,treeNodeId:e,height:i,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:g.balances,varianceAmount:g.varianceAmount,variancePercentage:g.variancePercentage,currency:g.currency,isScrolling:l,isOpen:c,hasVendors:g.vendors.length>0,isLeaf:d,isLastNode:h,sectionToggled:x=>{f?.(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:g.sectionId})},Hd=(e,n,i)=>{if(e.element.kind!=="timeframe_headers")return null;const o=Fe(e.element.data,e.config.displayOrder),r=o.length>0?o[0].balanceTimeFrame:"month",l=o.map(d=>Ie(d)),c=(d,h)=>{e.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),e.config.fluxAnalysisConfig?.onSortOrderChanged(d,h)};return t.jsx(od,{isSticky:i,height:n,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:r,timeframeTicks:l,isBulkSelected:e.config.fluxAnalysisConfig?.reviewOpExIds.length===on,onSortOrderChanged:c,sortOrder:e.config.fluxAnalysisConfig?.sortOrder,sortKey:e.config.fluxAnalysisConfig?.sortKey})},Kd=(e,n)=>{if(e.element.kind!=="total")return null;const i=e.element.data;return t.jsx(fd,{type:"name+balances_actual",title:e.element.title,totalBalances:i.balances,varianceAmount:i.varianceAmount,variancePercentage:i.variancePercentage,currency:i.currency,height:n})},Yd=e=>e.element.kind!=="loading_in_progress"?null:t.jsx(vs,{}),Ud=e=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Rs,{}),qd=a.div`
1725
+ display: flex;
1726
+ flex: 1 1 auto;
1727
+ width: fit-content;
1728
+ min-width: 100%;
1729
+ flex-direction: column;
1730
+ background-color: ${e=>e.bgColor?.hex()};
1731
+ `,Qd=a.div`
1732
+ user-select: none;
1733
+ display: flex;
1734
+ flex: 1 1 auto;
1735
+ flex-flow: row;
1736
+ justify-content: flex-start;
1737
+ align-items: center;
1738
+ height: ${e=>e.height}px;
1739
+ margin-left: ${e=>e.level*20}px;
1740
+ `,Zd=a.div`
1741
+ display: flex;
1742
+ flex-direction: row;
1743
+ align-items: center;
1744
+ justify-content: space-between;
1745
+ &:hover {
1746
+ background-color: null;
1747
+ }
1748
+ width: 100%;
1749
+ `,Jd=a(Oo)`
1750
+ width: 100%;
1751
+ display: flex;
1752
+ align-items: center;
1753
+ font-weight: ${e=>e.isSubclass?Sn.regular:Sn.medium};
1754
+ color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1755
+ `,Xd=a(we)`
1756
+ display: flex;
1757
+ color: ${e=>e.theme.colors.primary};
1758
+ align-items: center;
1759
+ flex-direction: row;
1760
+ justify-content: center;
1761
+ height: 18px;
1762
+ border: 1px solid ${e=>e.theme.colors.primary};
1763
+ border-radius: ${s.sp1};
1764
+ margin: 0 ${s.sp5} 0 ${s.sp3};
1765
+ min-width: ${s.sp6};
1766
+ `,eh=a(Tt)`
1767
+ color: ${e=>e.theme.colors.primary};
1768
+ width: ${s.sp3};
1769
+ height: ${s.sp3};
1770
+ `;function th({backgroundColor:e,treeNodeId:n,classId:i,isChecked:o,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:h,onClick:u,onToggleCheck:p}){const[g,f]=N.useState(!1);return t.jsx(qd,{"data-testid":m("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Qd,{"data-testid":m("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>f(!0),onMouseLeave:()=>f(!1),level:c.classId.length,children:[t.jsx(It,{"data-testid":m("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Pt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(eh,{}),checked:o,name:c.className,id:n,disabled:r,onChange:x=>{p?.(i,x.target.checked)},style:{height:s.sp6}})," ",t.jsx(Zd,{children:t.jsxs(Jd,{"data-testid":m("name-with-checkbox-row-label-container",n),checked:o,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":m("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(i,!o)},children:c.className}),g===!0&&h===!0&&c.accountingClassNumber!=null&&t.jsx(Xd,{children:c.accountingClassNumber})]})})]})})}const nh=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="checkbox_and_name_only")return null;const g=i.element.data,f=i.config.isClassToBeFilteredOut?.(g.classId)===!1;return t.jsx(th,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,classId:g.classId,isChecked:f,isDisabled:!1,height:o,isScrolling:c,nestedClass:g,isOpen:d,isLeaf:h,isLastNode:u,showClassAccountNumber:i.config.showClassAccountNumber,onToggleCheck:p})},M={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new V(200,270,270),categoryClassWidth:new V(230,230,240),nameLogoWidth:new V(w[4],w[4]),nameLogoHeight:new V(w[4],w[4])};function ih(e){switch(e){case"timeframe_headers":return w[11];case"vendor_row":return w[6];case"total":return w[8];case"loading_in_progress":return w[6];case"spacer_row":return w[8];case"title_string_only":return w[8];default:return 0}}function oh(e,n){return!1}const rh=a.div`
1771
+ 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
+ `,ah=a.div`
1782
+ user-select: none;
1783
+ display: flex;
1784
+ flex: 1 1 auto;
1785
+ width: 100vw;
1786
+ min-width: 100%;
1787
+ height: ${e=>e.height}px;
1788
+ flex-flow: row;
1789
+ align-items: center;
1790
+ justify-content: center;
1791
+ background-color: ${e=>e.bgColor?.hex()};
1792
+ `,lh=a.div`
1793
+ display: flex;
1794
+ flex: 1 0 auto;
1795
+ flex-direction: row;
1796
+ justify-content: flex-end;
1797
+ `,Rn=a(v)`
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: ${M.balanceWidth};
1804
+ max-width: ${M.balanceWidth};
1805
+ margin-left: ${e=>e.isClubbed===!0?s.sp2:M.balanceLeftMargin};
1806
+ border: 1px solid transparent;
1807
+ `,Gn=a(v)`
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=>M.categoryClassWidth.valuePx(e.windowSize)};
1814
+ `,ch=a.div`
1815
+ height: 100%;
1816
+ display: flex;
1817
+ flex-direction: row;
1818
+ align-items: center;
1819
+ min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1820
+ color: ${e=>e.theme.colors.primary};
1821
+ background-color: ${e=>e.bgColor?.hex()};
1822
+ ${({isSticky:e})=>e?P`
1823
+ position: -webkit-sticky;
1824
+ position: sticky;
1825
+ top: ${s.sp0};
1826
+ left: ${s.sp0};
1827
+ z-index: 20;
1828
+ `:null}
1829
+ `;function sh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return l.length>0?t.jsxs(rh,{height:i,bgColor:e,"data-testid":m("opex-vendor-loading-in-progress-row"),children:[t.jsxs(ch,{"data-testid":m("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(Me,{width:w[4],height:w[4]}),t.jsx(Rn,{windowSize:c,isClubbed:!0,children:t.jsx(H,{width:120,height:w[4]})})]}),t.jsxs(lh,{children:[o?t.jsx(Gn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,r?t.jsx(Gn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})}):null,l.map((d,h)=>t.jsx(Rn,{windowSize:c,children:t.jsx(H,{width:120,height:w[4]})},`${h}RowItem`))]})]}):t.jsx(ah,{height:i,bgColor:e,children:t.jsx(Bo,{size:"Small",start:!0})})}const dh=a.div`
1830
+ 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
+ `,bt=a.div``,hh=a.div`
1841
+ display: flex;
1842
+ flex: 1 0 auto;
1843
+ flex-direction: row;
1844
+ justify-content: flex-end;
1845
+ `,uh=a(v)`
1846
+ user-select: none;
1847
+ clear: both;
1848
+ display: inline-block;
1849
+ overflow: hidden;
1850
+ white-space: nowrap;
1851
+ text-overflow: ellipsis;
1852
+ text-align: left;
1853
+ margin-left: ${s.sp2};
1854
+ color: ${e=>e.theme.colors.hero};
1855
+ `,gh=a(v)`
1856
+ color: ${e=>e.theme.colors.hero};
1857
+ flex-grow: 1;
1858
+ -webkit-box-orient: vertical;
1859
+ display: flex;
1860
+ min-width: ${M.balanceWidth};
1861
+ max-width: ${M.balanceWidth};
1862
+ border: 1px solid transparent;
1863
+ `,En=a(v)`
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=>M.categoryClassWidth.valuePx(e.windowSize)};
1870
+ `,ph=a.div`
1871
+ height: 100%;
1872
+ display: flex;
1873
+ flex-direction: row;
1874
+ align-items: center;
1875
+ min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1876
+ color: ${e=>e.theme.colors.primary};
1877
+ background-color: ${e=>e.bgColor?.hex()};
1878
+ ${({isSticky:e})=>e?P`
1879
+ position: -webkit-sticky;
1880
+ position: sticky;
1881
+ top: ${s.sp0};
1882
+ left: ${s.sp0};
1883
+ z-index: 20;
1884
+ `:null}
1885
+ `;function fh({backgroundColor:e,isSticky:n,height:i,isAccountColumnShown:o,isClassColumnShown:r,timeframeTicks:l}){const c=O();return t.jsxs(dh,{height:i,bgColor:e,"data-testid":m("no-results-found-title-row"),children:[t.jsx(ph,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(uh,{children:B.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(hh,{children:[o?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,r?t.jsx(En,{windowSize:c,children:t.jsx(bt,{})}):null,l.map((d,h)=>t.jsx(gh,{windowSize:c,children:t.jsx(bt,{children:" "})},`${h}RowItem`))]})]})}function an({title:e,selectedMode:n,onCompareModeChanged:i,backgroundColor:o,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,menuPosition:p}){const g=["compare_mode_percent","compare_mode_amount"],f=x=>B.getLocalizedStrings().compareMode[x];return t.jsx(zo,{title:e,pickerValues:g,valueToLabel:f,selectedValue:n,onPickerSelectionChanged:x=>i(x),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:h,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:o??"inherit",menuPosition:p})}const Wt={balanceHeight:s.sp4,balanceWidthInPx:170,balanceLeftMargin:s.sp4},xh=a.div`
1886
+ margin-left: ${s.sp4};
1887
+ `,mh=a.div`
1888
+ display: flex;
1889
+ max-height: 54px;
1890
+ min-height: 54px;
1891
+ align-items: center;
1892
+ justify-content: center;
1893
+ max-width: ${Wt.balanceWidthInPx-2}px;
1894
+ min-width: ${Wt.balanceWidthInPx-2}px;
1895
+ background-color: ${e=>e.theme.colors.background};
1896
+ border: 1px solid ${e=>e.theme.colors.grey3};
1897
+ border-radius: ${s.sp2};
1898
+ color: ${e=>e.theme.colors.primary};
1899
+ `,wh=a(v)`
1900
+ display: flex;
1901
+ user-select: none;
1902
+ flex-direction: row;
1903
+ justify-content: center;
1904
+ align-items: center;
1905
+ height: ${Wt.balanceHeight};
1906
+ `,yh=a.div`
1907
+ display: flex;
1908
+ flex-direction: row;
1909
+ justify-content: center;
1910
+ align-items: center;
1911
+ padding: 3px 6px;
1912
+ margin-right: ${s.sp2};
1913
+ position: relative;
1914
+ top: -12px;
1915
+ `,bh=a(Eo)`
1916
+ color: ${e=>e.tagType==="under_review"?X.neutralGrey5Light:e.theme.mode==="light"?X.primaryDark:X.primaryLight};
1917
+ border-radius: ${s.sp2};
1918
+ padding: 3px 6px;
1919
+ margin-left: 12px;
1920
+ background: ${e=>e.tagType==="under_review"?X.alertDark:e.theme.mode==="light"?X.championLight:X.championDark};
1921
+ `,kh=a(Go)`
1922
+ color: ${e=>e.theme.colors.hero};
1923
+ margin-left: 5px;
1924
+ height: ${s.sp3};
1925
+ width: ${s.sp3};
1926
+ margin-top: ${s.sp1};
1927
+ `;function eo({firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:o,infoContent:r,tagType:l}){return t.jsxs(xh,{children:[t.jsxs(mh,{children:[t.jsx(wh,{children:Pe(e,n,i)}),t.jsx(Ro,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(kh,{})})]}),t.jsx(yh,{children:t.jsx(bh,{tagType:l,children:o})})]})}const to=(e,n)=>{const i=B.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoMonth:i.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoQuarter:i.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?i.bookCloseUnderReviewInfoYear:i.bookCloseIncompleteInfoYear:void 0;default:return}},jh=a.div`
1928
+ 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
+ `,Sh=a.div`
1939
+ display: flex;
1940
+ flex: 1 0 auto;
1941
+ flex-direction: row;
1942
+ justify-content: flex-end;
1943
+ `,no=a.div`
1944
+ display: flex;
1945
+ max-height: ${s.sp8};
1946
+ min-height: ${s.sp8};
1947
+ min-width: ${M.balanceWidth};
1948
+ justify-content: center;
1949
+ align-items: center;
1950
+ background-color: ${e=>e.theme.colors.background};
1951
+ border: 1px solid ${e=>e.theme.colors.grey3};
1952
+ border-radius: ${s.sp2};
1953
+ margin-left: ${M.balanceLeftMargin};
1954
+ color: ${e=>e.theme.colors.primary};
1955
+ cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1956
+ `,io=a(v)`
1957
+ display: flex;
1958
+ user-select: none;
1959
+ flex-direction: row;
1960
+ justify-content: center;
1961
+ align-items: center;
1962
+ height: ${M.balanceHeight};
1963
+ max-width: ${M.balanceWidth};
1964
+ width: 138px;
1965
+ text-align: center;
1966
+ `,Ch=a.div`
1967
+ display: flex;
1968
+ flex-direction: row;
1969
+ z-index: 1;
1970
+ background-color: ${e=>e.bgColor?.hex()};
1971
+ ${({isSticky:e})=>e?P`
1972
+ position: -webkit-sticky;
1973
+ position: sticky;
1974
+ top: ${s.sp0};
1975
+ left: ${s.sp0};
1976
+ z-index: 1;
1977
+ `:null}
1978
+ `,vh=a.div`
1979
+ max-height: ${e=>e.plHeight}px;
1980
+ min-height: ${e=>e.plHeight}px;
1981
+ display: flex;
1982
+ flex-direction: row;
1983
+ align-items: center;
1984
+ min-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
1985
+ color: ${e=>e.theme.colors.primary};
1986
+ background-color: ${e=>e.bgColor?.hex()};
1987
+ `,_h=a(v)`
1988
+ display: flex;
1989
+ gap: 6px;
1990
+ align-items: baseline;
1991
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.grey1};
1992
+ `,oo=a(v)`
1993
+ height: 100%;
1994
+ align-self: center;
1995
+ align-items: baseline;
1996
+ min-width: ${e=>M.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
+ `,ln=a.div`
2003
+ display: flex;
2004
+ cursor: pointer;
2005
+ `,$h=a.div`
2006
+ display: flex;
2007
+ justify-content: center;
2008
+ align-items: center;
2009
+ color: ${e=>e.theme.colors.champion};
2010
+ `,Lh=a.div``,Ah=a(v)`
2011
+ display: flex;
2012
+ justify-content: center;
2013
+ align-items: center;
2014
+ max-height: ${s.sp8};
2015
+ min-height: ${s.sp8};
2016
+ background-color: ${e=>e.theme.colors.background};
2017
+ border: 1px solid ${e=>e.theme.colors.grey3};
2018
+ border-radius: ${s.sp2};
2019
+ margin-left: ${M.balanceLeftMargin};
2020
+ color: ${e=>e.theme.colors.primary};
2021
+ width: ${M.balanceWidth};
2022
+ min-width: ${M.balanceWidth};
2023
+ `,ro=a.div`
2024
+ max-height: ${s.sp8};
2025
+ min-height: ${s.sp8};
2026
+ `,ct=a.div`
2027
+ color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2028
+ `,st=a(Rt)`
2029
+ width: 12px;
2030
+ height: 12px;
2031
+ margin-left: ${s.sp2};
2032
+ margin-top: ${s.sp1};
2033
+ `,dt=a(Dt)`
2034
+ width: 12px;
2035
+ height: 12px;
2036
+ margin-left: ${s.sp2};
2037
+ margin-top: ${s.sp1};
2038
+ `,cn=a(ni)`
2039
+ width: 12px;
2040
+ height: 12px;
2041
+ cursor: pointer;
2042
+ color: ${e=>e.theme.colors.hero};
2043
+ `,ao=({sortOrder:e,sortKey:n,onSortOrderChanged:i})=>{const o=()=>{i(ht("totals",e,n),"totals")},r=n==="totals"?e:"ascending";return t.jsx(ro,{"data-testid":m("period-total-tick"),children:t.jsx(no,{"data-testid":m("period-total-tick-element"),onClick:o,isClickable:!0,children:t.jsxs(io,{children:[B.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(ct,{selectedForSort:n==="totals",children:r==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]})})})},Bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("vendor",n,e),"vendor")},l=e==="vendor"?n:"ascending";return t.jsxs(_h,{selectedForSort:e==="vendor",children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(ct,{selectedForSort:e==="vendor",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="vendor"?t.jsx(cn,{onClick:o}):null]})},Wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("account",n,e),"account")},l=e==="account"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="account",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(ct,{selectedForSort:e==="account",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="account"?t.jsx(cn,{onClick:o}):null]})},Oh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:i,onSortCancel:o})=>{const r=()=>{i(ht("class",n,e),"class")},l=e==="class"?n:"ascending",c=O();return t.jsxs(oo,{selectedForSort:e==="class",windowSize:c,children:[t.jsxs(ln,{onClick:r,children:[B.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(ct,{selectedForSort:e==="class",children:l==="ascending"?t.jsx(dt,{}):t.jsx(st,{})})]}),e==="class"?t.jsx(cn,{onClick:o}):null]})},lo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(ro,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(no,{isClickable:!1,children:t.jsx(io,{children:Pe(e,n,i)})})})},Mh=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,sortKey:o="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(ao,{sortKey:o,sortOrder:r,onSortOrderChanged:d}):t.jsx(lo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c}),Nh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:h,onSortOrderChanged:u})=>{const p=ce(),g=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx($h,{children:n.map((f,x)=>t.jsxs(N.Fragment,{children:[f.balanceType==="this_period_vs_last_period"||f.balanceType==="this_period_vs_last_period_percent"?t.jsx(Ah,{children:t.jsx(an,{title:g,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:b=>{b!=="off"&&(b==="compare_mode_amount"||b==="compare_mode_percent"?h?.(b):console.warn("Invalid compare mode option"))}})}):null,f.balanceType==="period_total"?t.jsx(ao,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,f.balanceType==="default"?t.jsx(Lh,{children:t.jsx(lo,{firstMonthOfFY:e,timeframeTick:f,timeframe:i,dataAvailable:c,bookCloseDate:d},x)}):null]},x))})};function Ih({backgroundColor:e,isSticky:n,height:i,isCompareModeOn:o,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:h,timeframe:u,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:y}){const C=O(),S=(L,W)=>{y?.(L,W)},A=()=>{y?.("descending","totals")};return t.jsxs(jh,{height:i,bgColor:e,children:[t.jsx(Ch,{bgColor:e,windowSize:C,isSticky:n,children:t.jsx(vh,{plHeight:i,windowSize:C,bgColor:e,children:t.jsx(Bh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A})})}),r?t.jsx(Wh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,l?t.jsx(Oh,{sortKey:c,sortOrder:d,onSortOrderChanged:S,onSortCancel:A}):null,t.jsx(Sh,{children:o===!0?t.jsx(Nh,{firstMonthOfFY:h,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:g,dataAvailable:f,bookCloseDate:x,onCompareModeChanged:b,onSortOrderChanged:S}):p.map((L,W)=>t.jsx(Mh,{firstMonthOfFY:h,timeframeTick:L,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:f,bookCloseDate:x,onSortOrderChanged:S},W))})]})}const ht=(e,n,i)=>e===i?n==="ascending"?"descending":"ascending":"descending",Ph=a.div`
2044
+ display: flex;
2045
+ flex: 1 1 auto;
2046
+ max-height: 1px;
2047
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.grey3};
2048
+ `,Fh=a.div`
2049
+ display: flex;
2050
+ flex: 1 1 auto;
2051
+ max-height: 1px;
2052
+ background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
2053
+ `;function Ot({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ph,{isScrolling:n});case"end_row_separator":return t.jsx(Fh,{isScrolling:n})}}const zh=a.div`
2054
+ 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
+ `,Th=a.div`
2062
+ user-select: none;
2063
+ display: flex;
2064
+ flex: 1 1 auto;
2065
+ flex-flow: row;
2066
+ justify-content: flex-start;
2067
+ align-items: center;
2068
+ cursor: default;
2069
+ `,Vh=a.div`
2070
+ display: flex;
2071
+ flex: 1 0 auto;
2072
+ flex-direction: row;
2073
+ justify-content: flex-end;
2074
+ `,Dh=a.div`
2075
+ display: flex;
2076
+ flex-direction: row;
2077
+ justify-content: flex-start;
2078
+ `,co=a(ne)`
2079
+ user-select: none;
2080
+ min-width: ${M.balanceWidth};
2081
+ max-width: ${M.balanceWidth};
2082
+ text-align: right;
2083
+ margin-left: ${M.balanceLeftMargin};
2084
+ color: ${e=>e.theme.colors.primary};
2085
+ border: 1px solid transparent;
2086
+ `,Rh=a(co)`
2087
+ color: ${e=>e.theme.colors.hero};
2088
+ &:hover {
2089
+ color: inherit;
2090
+ }
2091
+ `,Gh=a.div`
2092
+ display: flex;
2093
+ flex-direction: row;
2094
+ background-color: ${e=>e.bgColor?.hex()};
2095
+ ${({isSticky:e})=>e?P`
2096
+ position: -webkit-sticky;
2097
+ position: sticky;
2098
+ top: ${s.sp0};
2099
+ left: ${s.sp0};
2100
+ `:null}
2101
+ `,Eh=a.div`
2102
+ display: flex;
2103
+ flex-direction: row;
2104
+ flex-shrink: 2;
2105
+ flex-grow: 1;
2106
+ align-items: center;
2107
+ width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2108
+ max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2109
+ background-color: ${e=>e.bgColor?.hex()};
2110
+ `,Hn=a.div`
2111
+ width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2112
+ max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2113
+ background-color: ${e=>e.bgColor?.hex()};
2114
+ `,Hh=a(ne)`
2115
+ user-select: none;
2116
+ clear: both;
2117
+ display: inline-block;
2118
+ overflow: hidden;
2119
+ white-space: nowrap;
2120
+ text-overflow: ellipsis;
2121
+ text-align: left;
2122
+ color: ${e=>e.theme.colors.primary};
2123
+ `,Kh=({type:e,balance:n,collapsed:i})=>{const o=i===!0?Rh:co;return t.jsx(Dh,{children:re(e)===!0?t.jsx(o,{children:q(n)}):null})};function Yh({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:h,onClick:u,isScrolling:p}){const g=O();return t.jsxs(zh,{"data-testid":m("total-row-root-container",o),height:r,bgColor:n,windowSize:g,children:[t.jsxs(Th,{"data-testid":m("total-row-container",o),onClick:()=>u?.(o),children:[t.jsxs(Gh,{bgColor:n,windowSize:g,isSticky:i,children:[t.jsx(Eh,{bgColor:n,windowSize:g,children:t.jsx(Hh,{children:l})}),d?t.jsx(Hn,{windowSize:g}):null,h?t.jsx(Hn,{windowSize:g}):null]}),t.jsx(Vh,{children:c.map((f,x)=>t.jsx(Kh,{type:e,balance:f,collapsed:!1},x))})]}),t.jsx(Ot,{isScrolling:p,kind:"vendor_row_separator"})]})}const Uh=a.div`
2124
+ 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
+ `,qh=a.div`
2132
+ user-select: none;
2133
+ display: flex;
2134
+ flex: 1 1 auto;
2135
+ flex-flow: row;
2136
+ justify-content: flex-start;
2137
+ align-items: center;
2138
+ &:hover {
2139
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2140
+ }
2141
+ `,Qh=a.div`
2142
+ display: flex;
2143
+ flex: 1 0 auto;
2144
+ flex-direction: row;
2145
+ justify-content: flex-end;
2146
+ `,Zh=a.div`
2147
+ display: flex;
2148
+ flex-direction: row;
2149
+ justify-content: flex-start;
2150
+ `,Jh=a(v)`
2151
+ user-select: none;
2152
+ min-width: ${M.balanceWidth};
2153
+ max-width: ${M.balanceWidth};
2154
+ text-align: right;
2155
+ margin-left: ${M.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
+ `,Xh=a.div`
2163
+ display: flex;
2164
+ flex-direction: row;
2165
+ background-color: ${e=>e.bgColor?.hex()};
2166
+ ${({isSticky:e})=>e?P`
2167
+ position: -webkit-sticky;
2168
+ position: sticky;
2169
+ top: ${s.sp0};
2170
+ left: ${s.sp0};
2171
+ `:null}
2172
+ `,eu=a.div`
2173
+ display: flex;
2174
+ flex-direction: row;
2175
+ flex-shrink: 2;
2176
+ flex-grow: 1;
2177
+ align-items: center;
2178
+ gap: ${s.sp2};
2179
+ width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2180
+ max-width: ${e=>M.titleWidth.valuePx(e.windowSize)};
2181
+ background-color: ${e=>e.bgColor?.hex()};
2182
+ `,_e=a(v)`
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=a.div`
2196
+ display: flex;
2197
+ flex-direction: row;
2198
+ flex-shrink: 2;
2199
+ flex-grow: 1;
2200
+ align-items: center;
2201
+ width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2202
+ max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2203
+ background-color: ${e=>e.bgColor?.hex()};
2204
+ `,nu=a.div`
2205
+ display: flex;
2206
+ flex-direction: row;
2207
+ flex-shrink: 2;
2208
+ flex-grow: 1;
2209
+ align-items: center;
2210
+ width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2211
+ max-width: ${e=>M.categoryClassWidth.valuePx(e.windowSize)};
2212
+ background-color: ${e=>e.bgColor?.hex()};
2213
+ `,iu=a.div`
2214
+ width: ${s.sp4};
2215
+ height: ${s.sp4};
2216
+ border-radius: 50%;
2217
+ background-color: ${e=>e.theme.colors.grey3};
2218
+ display: flex;
2219
+ justify-content: center;
2220
+ align-items: center;
2221
+ color: ${e=>e.theme.colors.hero};
2222
+ `,ou=a(Mo)`
2223
+ width: ${s.sp3};
2224
+ height: ${s.sp3};
2225
+ `,ru=a.div`
2226
+ display: flex;
2227
+ column-gap: ${s.sp2};
2228
+ width: 100%;
2229
+ &:hover {
2230
+ .hyphen-text {
2231
+ display: none;
2232
+ }
2233
+ .not-specified-text {
2234
+ display: block;
2235
+ }
2236
+ }
2237
+ `,au=a(v)`
2238
+ color: ${e=>e.theme.colors.hero};
2239
+ `,lu=a(v)`
2240
+ color: ${e=>e.theme.colors.hero};
2241
+ display: none;
2242
+ `,cu=({balance:e,vendor:n,onVendorNameAndBalanceClick:i})=>{const o=e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent",r=e?.type==="period_total",l=e?.type==="default_with_null_balance",c=o!==!0&&r===!1&&l===!1&&!ri(n.id);return t.jsx(Zh,{children:t.jsx(Jh,{isClickable:c,onClick:()=>{c===!0&&i(n,e??void 0)},children:q(e)})})};function su({type:e,backgroundColor:n,isSticky:i,height:o,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:h,classBase:u,isAccountColumnShown:p,isClassColumnShown:g,onVendorNameAndBalanceClick:f}){const x=O(),b=Zn(),y=b.loggedInUserRole!=null&&!oi(b.loggedInUserRole),C=ri(c.id),S=y===!0&&c!=null&&!C,A=S?"pointer":"default",L=c.name;return t.jsxs(Uh,{"data-testid":m("vendor-row-root-container",c.id),height:o,bgColor:n,windowSize:x,children:[t.jsxs(qh,{"data-testid":m("vendor-row-container",c.id),style:{cursor:A},isClickable:S,children:[t.jsx(Xh,{"data-testid":m("vendor-row-sticky-container",c.id),isSticky:i,windowSize:x,bgColor:n,children:t.jsxs(eu,{"data-testid":m("vendor-row-name-container",c.id),windowSize:x,bgColor:n,children:[t.jsxs(Xe,{controller:!C,children:[c.logo!=null?t.jsx(Ft,{photoUrl:c.logo.toString(),styles:{width:M.nameLogoWidth.valuePx(x),height:M.nameLogoHeight.valuePx(x)}}):t.jsx(zt,{name:L,size:s.sp4}),t.jsx(_e,{"data-testid":m("vendor-row-name",c.id),style:{cursor:A},isClickable:S,onClick:()=>{S===!0&&f(c)},children:L})]}),t.jsx(Xe,{controller:C,children:t.jsxs(ru,{children:[t.jsx(iu,{children:t.jsx(ou,{})}),t.jsx(au,{className:"hyphen-text",children:B.getLocalizedStrings().common.strings.hyphen}),t.jsx(lu,{className:"not-specified-text",children:L})]})})]})}),p?t.jsx(tu,{windowSize:x,bgColor:n,children:h!=null?t.jsx(_e,{"data-testid":m("vendor-row-account-name",c.id),title:h.accountName,isClickable:!1,children:h.accountName}):t.jsx(_e,{isClickable:!1,"data-testid":m("vendor-row-account-name",c.id),children:B.getLocalizedStrings().common.strings.hyphen})}):null,g?t.jsx(nu,{windowSize:x,bgColor:n,children:u!=null?t.jsx(_e,{"data-testid":m("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx(_e,{"data-testid":m("vendor-row-class-name",c.id),isClickable:!1,children:B.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(Qh,{children:d.map((W,F)=>t.jsx(cu,{type:e,balance:W,vendor:c,onVendorNameAndBalanceClick:f},F))})]}),t.jsx(du,{isScrolling:r,isLastNode:l})]})}function du({isScrolling:e,isLastNode:n}){return n?t.jsx(Ot,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Ot,{isScrolling:e,kind:"vendor_row_separator"})}const hu=(e,n,i,o,r,l)=>{if(e.element.kind!=="timeframe_headers")return null;const c=Fe(e.element.data,e.config.displayOrder),d=c.length>0?c[0].balanceTimeFrame:"month",h=c.map(u=>Ie(u));return t.jsx(Ih,{backgroundColor:r,isSticky:i,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:e.config.mode==="this_period_vs_period_before"&&h.length>1,firstMonthOfFY:e.config.firstMonthOfFY,timeframe:d,timeframeTicks:h,sortKey:e.config.opexByVendorConfig?.sortKey,sortOrder:e.config.opexByVendorConfig?.sortOrder,dataAvailable:e.config.dataAvailable,bookCloseDate:e.config.bookCloseDate,compareMode:o,onCompareModeChanged:l,onSortOrderChanged:e.config.opexByVendorConfig?.onSortOrderChanged})},uu=(e,n,i,o,r,l,c)=>{const d=i.element.data,h=i.config.mode==="this_period_vs_period_before",u=h?i.element.numOfBalances+2:i.element.numOfBalances+1,p=zi(d,i.config.displayOrder,u,h);return t.jsx(Yh,{type:n,backgroundColor:c,isSticky:r,treeNodeId:e,height:o,isScrolling:l,totalBalances:p.balances,title:i.element.title,isAccountColumnShown:i.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:i.config.opexByVendorConfig?.isClassColumnShown??!0})},gu=(e,n,i,o,r,l,c)=>{if(n.element.kind!="vendor_row"||n.element.data==null)return null;const d=n.element.data,h=n.config.mode==="this_period_vs_period_before",u=zi(d,n.config.displayOrder,n.element.numOfBalances,h);return t.jsx(su,{type:e,backgroundColor:o,isSticky:r,height:i,isScrolling:l,vendor:d.vendor,accountBase:d.account,classBase:d.classBase,isLastNode:c,balances:u.balances,isAccountColumnShown:n.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:n.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:(p,g)=>{n.config.opexByVendorConfig?.onVendorNameAndBalanceClicked(p,g)}})},pu=(e,n,i,o)=>{if(e.element.kind!=="loading_in_progress")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(sh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})},fu=(e,n,i,o)=>{if(e.element.kind!=="title_string_only")return null;const r=Fe(e.element.data,e.config.displayOrder).map(l=>Ie(l));return t.jsx(fh,{backgroundColor:i,isSticky:o,height:n,isAccountColumnShown:e.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:e.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:r})};function sn(e,n,i){return xu(n,i,e)}const xu=(e,n,i)=>{const o={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return o.acBalanceSelector=r=>r.account.balancesInTimeframe,o.compactedAccountsSelector=r=>Kn(r.accounts,o.acBalanceSelector,e),o.compactedAccountsSelectorVariant=r=>Kn(r,o.acBalanceSelector,e),o.acGroupBalanceSelector=r=>r,o.compactedAccountGroupsSelector=r=>mu(r,o.acGroupBalanceSelector,i,n),o};function Kn(e,n,i){switch(i){case"off":return e;case"filter_actual_nil_balances":return e.filter(o=>wu((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[]))||so((n(o)?.balances??[]).concat(n(o)?.additionalBalances??[])));case"filter_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(o=>Yn(n(o)?.balances??[]))}}function mu(e,n,i,o){switch(o){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>so(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>yu(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>bu(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function so(e){let n=!1;if(e!=null){for(const i of e)if(i.balance.amount!==0){n=!0;break}}return n}function wu(e){let n=!1;if(e!=null){for(const i of e)if(i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function yu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0){n=!0;break}}return n}function bu(e){let n=!1;if(e!=null){for(const i of e)if(i.forecast!=null&&i.forecast.amount!==0||i.balance!=null&&i.balance.amount!==0){n=!0;break}}return n}function Yn(e){let n=!1;if(e!=null){for(const i of e)if(i.totalForecast!=null&&i.totalForecast.amount!==0||i.totalBalance!=null&&i.totalBalance.amount!==0){n=!0;break}}return n}function ho(e,n,i=-1,o=!0){const r=i!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ku([],i)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...o?e.additionalBalances:[]],thisPeriodIndex:c}}function ku(e,n){return e.length>0?e:Qn(Array(n),null)}const ju=a.div`
2243
+ 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
+ `,Su=a.div`
2251
+ user-select: none;
2252
+ display: flex;
2253
+ flex: 1 1 auto;
2254
+ flex-flow: row;
2255
+ justify-content: flex-start;
2256
+ align-items: center;
2257
+ &:hover {
2258
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2259
+ }
2260
+ `,Cu=a.div`
2261
+ display: flex;
2262
+ flex: 1 0 auto;
2263
+ flex-direction: row;
2264
+ justify-content: flex-end;
2265
+ `,vu=a.div`
2266
+ display: flex;
2267
+ flex-direction: row;
2268
+ justify-content: flex-start;
2269
+ `,uo=a(v)`
2270
+ user-select: none;
2271
+ min-width: ${k.balanceWidth};
2272
+ max-width: ${k.balanceWidth};
2273
+ text-align: right;
2274
+ margin-left: ${k.balanceLeftMargin};
2275
+ color: ${e=>e.theme.colors.primary};
2276
+ `,_u=a(uo)`
2277
+ color: ${e=>e.theme.colors.hero};
2278
+ &:hover {
2279
+ color: inherit;
2280
+ }
2281
+ `,$u=a.div`
2282
+ display: flex;
2283
+ flex-direction: row;
2284
+ flex-shrink: 2;
2285
+ flex-grow: 1;
2286
+ align-items: center;
2287
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2288
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2289
+ background-color: ${e=>e.bgColor?.hex()};
2290
+ ${({isSticky:e})=>e?P`
2291
+ position: -webkit-sticky;
2292
+ position: sticky;
2293
+ top: ${s.sp0};
2294
+ left: ${s.sp0};
2295
+ `:null}
2296
+ `,go=a(v)`
2297
+ user-select: none;
2298
+ clear: both;
2299
+ display: inline-block;
2300
+ overflow: hidden;
2301
+ white-space: nowrap;
2302
+ text-overflow: ellipsis;
2303
+ text-align: left;
2304
+ margin-left: ${s.sp4};
2305
+ color: ${e=>e.theme.colors.primary};
2306
+ `,Lu=a(go)`
2307
+ color: ${e=>e.theme.colors.hero};
2308
+ &:hover {
2309
+ color: inherit;
2310
+ }
2311
+ `,Au=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?_u:uo;return t.jsxs(vu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Bu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=ce(),C=O(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=l==="hidden",F=W===!0?w[6]:w[4],z=L===!0?Lu:go,K=L===!0?Jn:Xn,E=L===!0?y.colors.hero:y.colors.primary;return t.jsxs(ju,{height:r,bgColor:n,"data-testid":m("pandl-report-account-group-row-root-container",o),children:[t.jsxs(Su,{"data-testid":m("pandl-report-account-group-row-container",o),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs($u,{bgColor:n,isSticky:i,windowSize:C,children:[W===!1?t.jsx(K,{color:E,style:{width:w[3],height:w[3]}}):null,t.jsx(z,{style:{marginLeft:F},children:c})]}):null,fe(e)===!0?t.jsx(Cu,{children:d.map((Y,Q)=>t.jsx(Au,{type:e,accountGroupName:c,balance:Y,isActualVsForecastOn:h,compareMode:u,collapsed:L},Q))}):null]}),t.jsx(Wu,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Wu({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ou=a.div`
2312
+ 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
+ `,Mu=a.div`
2320
+ user-select: none;
2321
+ display: flex;
2322
+ flex: 1 1 auto;
2323
+ flex-flow: row;
2324
+ justify-content: flex-start;
2325
+ align-items: center;
2326
+ &:hover {
2327
+ color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2328
+ }
2329
+ `,Nu=a.div`
2330
+ display: flex;
2331
+ flex: 1 0 auto;
2332
+ flex-direction: row;
2333
+ justify-content: flex-end;
2334
+ `,Iu=a.div`
2335
+ display: flex;
2336
+ flex-direction: row;
2337
+ justify-content: flex-start;
2338
+ `,po=a(v)`
2339
+ user-select: none;
2340
+ min-width: ${k.balanceWidth};
2341
+ max-width: ${k.balanceWidth};
2342
+ text-align: right;
2343
+ margin-left: ${k.balanceLeftMargin};
2344
+ color: ${e=>e.theme.colors.primary};
2345
+ `,Pu=a(po)`
2346
+ color: ${e=>e.theme.colors.hero};
2347
+ &:hover {
2348
+ color: inherit;
2349
+ }
2350
+ `,Fu=a.div`
2351
+ display: flex;
2352
+ flex-direction: row;
2353
+ flex-shrink: 2;
2354
+ flex-grow: 1;
2355
+ align-items: center;
2356
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2357
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2358
+ background-color: ${e=>e.bgColor?.hex()};
2359
+ ${({isSticky:e})=>e?P`
2360
+ position: -webkit-sticky;
2361
+ position: sticky;
2362
+ top: ${s.sp0};
2363
+ left: ${s.sp0};
2364
+ `:null}
2365
+ `,fo=a(v)`
2366
+ user-select: none;
2367
+ clear: both;
2368
+ display: inline-block;
2369
+ overflow: hidden;
2370
+ white-space: nowrap;
2371
+ text-overflow: ellipsis;
2372
+ text-align: left;
2373
+ margin-left: ${s.sp2};
2374
+ color: ${e=>e.theme.colors.primary};
2375
+ `,zu=a(fo)`
2376
+ color: ${e=>e.theme.colors.hero};
2377
+ &:hover {
2378
+ color: inherit;
2379
+ }
2380
+ `,Tu=({type:e,balance:n,collapsed:i,isActualVsForecastOn:o,compareMode:r})=>{const l=i===!0?Pu:po;return t.jsxs(Iu,{children:[re(e)===!0||o?t.jsx(l,{children:q(n)}):t.jsx(l,{children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Z(n)}),t.jsx(l,{children:r==="compare_mode_percent"?se(n):de(n)})]}):null]})};function Vu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:h,compareMode:u,isScrolling:p,isOpen:g,isLeaf:f,isLastNode:x,onClick:b}){const y=O(),C=ce(),S=!f,A=S?"pointer":"default",L=l==="collapsed",W=L===!0?zu:fo,[F,z]=N.useState(!1),K=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(Ou,{"data-testid":m("pandl-account-group-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Mu,{"data-testid":m("pandl-account-group-row-container",o),onMouseOver:()=>z(!0),onMouseLeave:()=>z(!1),style:{cursor:A},isClickable:S,onClick:()=>b?.(o),children:[ge(e)===!0?t.jsxs(Fu,{bgColor:n,isSticky:i,windowSize:y,children:[t.jsx(ye,{showCollapsedIcon:L,showIcon:F&&S,firstLetter:K,color:$(C.colors.primary)}),t.jsx(W,{children:c})]}):null,fe(e)===!0?t.jsx(Nu,{children:d.map((E,Y)=>t.jsx(Tu,{type:e,accountGroupName:c,balance:E,isActualVsForecastOn:h,compareMode:u,collapsed:L},Y))}):null]}),t.jsx(Du,{isScrolling:p,type:e,isLeaf:f,isLastNode:x,isOpen:g})]})}function Du({isScrolling:e,type:n,isLastNode:i,isOpen:o}){let r="ac_group_row_separator";return i&&!o?r="section_row_separator":o&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(xe,{isScrolling:e,kind:r})}const Ru=a.div`
2381
+ 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
+ `,Gu=a.div`
2389
+ user-select: none;
2390
+ display: flex;
2391
+ flex: 1 1 auto;
2392
+ flex-flow: row;
2393
+ justify-content: flex-start;
2394
+ align-items: center;
2395
+ `,Eu=a.div`
2396
+ display: flex;
2397
+ flex: 1 0 auto;
2398
+ flex-direction: row;
2399
+ justify-content: flex-end;
2400
+ `,Hu=a.div`
2401
+ display: flex;
2402
+ flex-direction: row;
2403
+ justify-content: flex-start;
2404
+ `,Ue=a(v)`
2405
+ user-select: none;
2406
+ min-width: ${k.balanceWidth};
2407
+ max-width: ${k.balanceWidth};
2408
+ text-align: right;
2409
+ margin-left: ${k.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
+ `,Ku=a.div`
2416
+ display: flex;
2417
+ flex-direction: row;
2418
+ flex-shrink: 2;
2419
+ flex-grow: 1;
2420
+ align-items: center;
2421
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2422
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2423
+ background-color: ${e=>e.bgColor?.hex()};
2424
+ ${({isSticky:e})=>e?P`
2425
+ position: -webkit-sticky;
2426
+ position: sticky;
2427
+ top: ${s.sp0};
2428
+ left: ${s.sp0};
2429
+ `:null}
2430
+ `,Yu=a(v)`
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: ${s.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
+ `,Uu=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,onAccountBalanceClick:l})=>{const c=n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent",d=r!=null&&n!=null&&l!=null&&c!==!0;return t.jsxs(Hu,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ue,{"data-testid":m("account-row-balance-actual",e),isClickable:d,onClick:()=>{d===!0&&r!=null&&n!=null&&l?.(r,n)},children:q(n)}):t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:Z(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ue,{isClickable:!1,"data-testid":m("account-row-balance-forecast",e),children:Z(n)}),t.jsx(Ue,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?se(n):de(n)})]}):null]})};function qu({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:h,isLeaf:u,isLastNode:p,account:g,onAccountBalanceClick:f}){const x=O(),{common:{strings:{hyphen:b}}}=B.getLocalizedStrings(),y=g?.accountDescription?g.accountDescription:b,C=g?.accountName?g.accountName:y;return t.jsxs(Ru,{height:r,bgColor:n,"data-testid":m("account-row-root-container",o),children:[t.jsxs(Gu,{"data-testid":m("account-row-container",o),children:[ge(e)===!0?t.jsx(Ku,{isSticky:i,windowSize:x,bgColor:n,children:t.jsx(Yu,{isClickable:!1,title:C,children:C})}):null,fe(e)===!0?t.jsx(Eu,{children:l.map((S,A)=>t.jsx(Uu,{type:e,isActualVsForecastOn:c,compareMode:d,balance:S,account:g,onAccountBalanceClick:f==null?void 0:(L,W)=>{f(o,L,W)}},A))}):null]}),t.jsx(Qu,{isScrolling:h,type:e,isLeaf:u,isLastNode:p})]})}function Qu({isScrolling:e,isLastNode:n,type:i}){const o=n?"ac_group_row_separator":ge(i)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(xe,{isScrolling:e,kind:o})}const Zu=a.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
+ `,Ju=a.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
+ `,Xu=a.div`
2460
+ display: flex;
2461
+ flex: 1 0 auto;
2462
+ flex-direction: row;
2463
+ justify-content: flex-end;
2464
+ `,eg=a.div`
2465
+ display: flex;
2466
+ flex-direction: row;
2467
+ justify-content: flex-start;
2468
+ `,qe=a(v)`
2469
+ user-select: none;
2470
+ max-width: ${k.balanceWidth};
2471
+ min-width: ${k.balanceWidth};
2472
+ text-align: right;
2473
+ margin-left: ${k.balanceLeftMargin};
2474
+ `,tg=a.div`
2475
+ display: flex;
2476
+ flex-direction: row;
2477
+ flex-shrink: 2;
2478
+ flex-grow: 1;
2479
+ align-items: center;
2480
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2481
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2482
+ background-color: ${e=>e.bgColor?.hex()};
2483
+ ${({isSticky:e})=>e?P`
2484
+ position: -webkit-sticky;
2485
+ position: sticky;
2486
+ top: ${s.sp0};
2487
+ left: ${s.sp0};
2488
+ `:null}
2489
+ `,ng=a.div`
2490
+ display: flex;
2491
+ flex-grow: 8;
2492
+ `,ig=a(v)`
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: ${s.sp2};
2502
+ `,og=a(we)`
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: ${s.sp1};
2512
+ margin: 0 ${s.sp5} 0 ${s.sp3};
2513
+ `,rg=({metadata:e,depth:n})=>n===0?null:e.hasSibling===!0&&!e.isLastNode?t.jsx(No,{}):t.jsx(Io,{}),ag=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(eg,{children:[re(e)===!0||o?t.jsx(qe,{style:{color:i},children:q(n)}):t.jsx(qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{style:{color:i},children:Z(n)}),t.jsx(qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function lg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:h,compareMode:u,hasChildren:p,isScrolling:g,isOpen:f,isLeaf:x,metadata:b,showClassAccountNumber:y,onClick:C,depth:S}){const A=O(),L=ce(),W=!x,F=W?"pointer":"default",z=L.colors.primary,K=l.length>0?l.substr(0,1).toUpperCase():"",[E,Y]=N.useState(!1),Q=b.classAncestorMetadata??[];return t.jsxs(Zu,{"data-testid":m("class-row-root-container",o),height:r,bgColor:n,children:[t.jsxs(Ju,{"data-testid":m("class-row-container",o),style:{cursor:F},onClick:()=>C?.(o),onMouseOver:()=>Y(!0),onMouseLeave:()=>Y(!1),children:[ge(e)===!0?t.jsxs(tg,{isSticky:i,windowSize:A,bgColor:n,children:[t.jsx(oa,{name:l,ancestorMetadata:Q,depth:S}),t.jsx(rg,{metadata:Q[S],depth:S}),t.jsx(ye,{color:$(z),showCollapsedIcon:!f,showIcon:E&&W,firstLetter:K,showTreeLine:p}),t.jsx(ng,{children:t.jsx(ig,{style:{color:z},children:l})}),E===!0&&y===!0&&c!==void 0&&t.jsx(og,{children:c})]}):null,fe(e)===!0?t.jsx(Xu,{children:d.map((he,J)=>t.jsx(ag,{type:e,sectionName:l,balance:he,isActualVsForecastOn:h,compareMode:u,color:z},J))}):null]}),t.jsx(cg,{isScrolling:g,isLeaf:x,isOpen:f})]})}function cg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const sg=a.div`
2514
+ 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
+ `,dg=a.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
+ `,hg=a.div`
2529
+ display: flex;
2530
+ flex: 1 0 auto;
2531
+ flex-direction: row;
2532
+ justify-content: flex-end;
2533
+ `,ug=a.div`
2534
+ display: flex;
2535
+ flex-direction: row;
2536
+ justify-content: flex-start;
2537
+ `,Qe=a(v)`
2538
+ user-select: none;
2539
+ max-width: ${k.balanceWidth};
2540
+ min-width: ${k.balanceWidth};
2541
+ text-align: right;
2542
+ margin-left: ${k.balanceLeftMargin};
2543
+ `,gg=a.div`
2544
+ display: flex;
2545
+ flex-direction: row;
2546
+ flex-shrink: 2;
2547
+ flex-grow: 1;
2548
+ align-items: center;
2549
+ width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2550
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2551
+ background-color: ${e=>e.bgColor?.hex()};
2552
+ ${({isSticky:e})=>e?P`
2553
+ position: -webkit-sticky;
2554
+ position: sticky;
2555
+ top: ${s.sp0};
2556
+ left: ${s.sp0};
2557
+ `:null}
2558
+ `,pg=a(v)`
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: ${s.sp2};
2568
+ `,fg=({type:e,balance:n,color:i,isActualVsForecastOn:o,compareMode:r})=>t.jsxs(ug,{children:[re(e)===!0||o?t.jsx(Qe,{style:{color:i},children:q(n)}):t.jsx(Qe,{style:{color:i},children:Z(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:i},children:Z(n)}),t.jsx(Qe,{style:{color:i},children:r==="compare_mode_percent"?se(n):de(n)})]}):null]});function dn({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:h,sectionColor:u,isScrolling:p,isOpen:g,isLeaf:f,onClick:x}){const b=O(),y=!f,C=y?"pointer":"default",S=l.length>0?l.substring(0,1).toUpperCase():"",[A,L]=N.useState(!1);return t.jsxs(sg,{"data-testid":m("section-row",o),height:r,bgColor:n,children:[t.jsxs(dg,{"data-testid":m("section-row-container",o),style:{cursor:C},onClick:()=>x?.(o),onMouseOver:()=>L(!0),onMouseLeave:()=>L(!1),children:[ge(e)===!0?t.jsxs(gg,{isSticky:i,windowSize:b,bgColor:n,children:[t.jsx(ye,{color:$(u),showCollapsedIcon:!g,showIcon:A&&y,firstLetter:S}),t.jsx(pg,{style:{color:u},children:l})," "]}):null,fe(e)===!0?t.jsx(hg,{children:c.map((W,F)=>t.jsx(fg,{type:e,sectionName:l,balance:W,isActualVsForecastOn:d,compareMode:h,color:u},F))}):null]}),t.jsx(xg,{isScrolling:p,isLeaf:f,isOpen:g})]})}function xg({isScrolling:e,isLeaf:n,isOpen:i}){return n||!i?t.jsx(xe,{isScrolling:e,kind:"section_row_separator"}):null}const mg=a.div`
2569
+ 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
+ `,wg=a.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
+ `,yg=a.div`
2584
+ display: flex;
2585
+ flex: 1 0 auto;
2586
+ flex-direction: row;
2587
+ justify-content: flex-end;
2588
+ `,bg=a.div`
2589
+ display: flex;
2590
+ flex-direction: row;
2591
+ justify-content: flex-start;
2592
+ `,Ze=a(v)`
2593
+ user-select: none;
2594
+ min-width: ${k.balanceWidth};
2595
+ max-width: ${k.balanceWidth};
2596
+ text-align: right;
2597
+ margin-left: ${k.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
+ `,kg=a.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=>k.titleWidth.valuePx(e.windowSize)};
2612
+ max-width: ${e=>k.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?P`
2621
+ position: -webkit-sticky;
2622
+ position: sticky;
2623
+ top: ${s.sp0};
2624
+ left: ${s.sp0};
2625
+ `:null}
2626
+ `,jg=a(v)`
2627
+ user-select: none;
2628
+ clear: both;
2629
+ display: inline-block;
2630
+ text-align: left;
2631
+ `,Sg=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null?Yo(n?.type):!1,h=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?li(n):q(n),p=l===!0?jt(n):Z(n),g=l===!0?ci(n):se(n),f=l===!0?si(n):de(n);return t.jsxs(bg,{"data-testid":m("account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Ze,{"data-testid":m("account-row-balance-actual",e),isClickable:h,onClick:x=>{x.stopPropagation(),h===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),i?t.jsxs(t.Fragment,{children:[t.jsx(Ze,{"data-testid":m("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(Ze,{"data-testid":m("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?g:f})]}):null]})};function Cg({type:e,backgroundColor:n,isSticky:i,treeNodeId:o,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:h,metadata:u,isScrolling:p,noMarginForAccount:g,isLeaf:f,isOpen:x,isLastNode:b,account:y,onAccountBalanceClick:C,onClick:S}){const A=O(),L=y!=null?y.id.length-1:0,W=y?.hasSiblings??!1,F=y!=null?y.children.length!==0:!1,z=u,{common:{strings:{empty:K}}}=B.getLocalizedStrings(),E=y?.account.accountDescription?y.account.accountDescription:K,Y=y?.account.accountName?y.account.accountName:E;return t.jsxs(mg,{"data-testid":m("sub-account-row",o),height:r,bgColor:n,children:[t.jsxs(wg,{"data-testid":m("sub-account-row-container",o),onClick:()=>S?.(o),children:[t.jsx(kg,{isClickable:F,isSticky:i,windowSize:A,bgColor:n,containerHeight:r,children:t.jsx(jg,{title:Y,children:t.jsx(pi,{displayName:Y,depth:L,classDepth:l,isLastNode:b,hasChildren:F,hasSiblings:W,isLeaf:f,collapsed:!x,subAccountAnscestorMetadata:z.subAccountAncestorMetadata,classAnscestorMetadata:z.classAncestorMetadata??[],noMarginForAccount:g})})}),fe(e)===!0?t.jsx(yg,{children:c.map((Q,he)=>t.jsx(Sg,{type:e,isActualVsForecastOn:d,compareMode:h,balance:Q,account:y?.account,showTotal:!x,onAccountBalanceClick:C==null?void 0:(J,ie)=>{C(o,J,ie)}},he))}):null]}),t.jsx(vg,{isScrolling:p,isLeaf:f,isOpen:x,depth:L,isSticky:i,classDepth:l,noMarginForAccount:g})]})}function vg({isScrolling:e,depth:n,isOpen:i,isLeaf:o,isSticky:r,classDepth:l,noMarginForAccount:c}){return!i||o===!0?t.jsx(xe,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}}):null}const _g=[10,14,20,20,20],$g=a.div`
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
+ `,Lg=a.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
+ `,Ag=a.div`
2647
+ width: ${e=>di.emptyLeftContainer.valuePx(e.windowSize)};
2648
+ height: ${s.sp1};
2649
+ `,Bg=a.div`
2650
+ display: flex;
2651
+ flex: 1 0 auto;
2652
+ flex-direction: row;
2653
+ justify-content: flex-end;
2654
+ `,Wg=a.div`
2655
+ display: flex;
2656
+ flex-direction: row;
2657
+ justify-content: flex-start;
2658
+ `,Je=a(v)`
2659
+ user-select: none;
2660
+ min-width: ${k.balanceWidth};
2661
+ max-width: ${k.balanceWidth};
2662
+ text-align: right;
2663
+ margin-left: ${k.balanceLeftMargin};
2664
+ color: ${e=>e.theme.colors.primary};
2665
+ cursor: ${e=>e.isClickable?"pointer":"default"};
2666
+ `,Og=a.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=>k.titleWidth.valuePx(e.windowSize)};
2674
+ max-width: ${e=>k.titleWidth.valuePx(e.windowSize)};
2675
+ background-color: ${e=>e.bgColor?.hex()};
2676
+ ${({isSticky:e})=>e?P`
2677
+ position: -webkit-sticky;
2678
+ position: sticky;
2679
+ top: ${s.sp0};
2680
+ left: ${s.sp0};
2681
+ `:null}
2682
+ `,Mg=a(v)`
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=>_g[e.depth]}px;
2691
+ color: ${e=>e.theme.colors.primary};
2692
+ width: ${e=>k.titleWidth.value(e.windowSize)-e.depth*80}px;
2693
+ `,Ng=({type:e,balance:n,isActualVsForecastOn:i,compareMode:o})=>t.jsxs(Wg,{"data-testid":m("sub-account-row-balance-element",e),children:[re(e)===!0||i?t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual",e),isClickable:!1,children:li(n)}):t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-forecast",e),isClickable:!1,children:jt(n)}),t.jsx(Je,{"data-testid":m("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:o==="compare_mode_percent"?ci(n):si(n)})]}):null]});function Ig({type:e,backgroundColor:n,isSticky:i,height:o,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:h,isActualVsForecastOn:u,compareMode:p,isScrolling:g,metadata:f}){const x=O(),b=B.getLocalizedStrings().reports.sections,y=d!=null?d.id.length-1:0,C=f;return t.jsxs($g,{height:o,bgColor:n,children:[t.jsxs(Lg,{children:[t.jsxs(Og,{isSticky:i,windowSize:x,bgColor:n,containerHeight:o,children:[r!=null?t.jsx(ui,{ancestorMetadata:C.classAncestorMetadata??[],depth:r,name:l}):h===!1?t.jsx(Ag,{windowSize:x}):null,t.jsx(gi,{ancestorMetadata:C.subAccountAncestorMetadata,depth:y,name:l}),t.jsx(Mg,{"data-testid":m("sub-account-row-name",e),isClickable:!1,title:l,depth:y,windowSize:x,children:b.totalPrefix+" "+l})]}),fe(e)===!0?t.jsx(Bg,{children:c.map((S,A)=>t.jsx(Ng,{type:e,isActualVsForecastOn:u,compareMode:p,balance:S},A))}):null]}),t.jsx(Pg,{isScrolling:g,nestingLevel:y,isSticky:i,classDepth:r,noMarginForAccount:h})]})}function Pg({isScrolling:e,nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}){return t.jsx(xe,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:i,classDepth:o,noMarginForAccount:r}})}const Fg=a.div`
2694
+ 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
+ `,zg=a.div`
2705
+ display: flex;
2706
+ flex: 1 0 auto;
2707
+ flex-direction: row;
2708
+ justify-content: flex-end;
2709
+ `,Oe=k.balanceWidthInPx+k.balanceLeftMarginInPx,xo=a.div`
2710
+ display: flex;
2711
+ max-height: 54px;
2712
+ min-height: 54px;
2713
+ min-width: ${e=>e.isActualVsForecastOn?3*(Oe-2)-k.balanceLeftMarginInPx:k.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: ${s.sp2};
2719
+ margin-left: ${e=>e.isActualVsForecastOn?w[0]:k.balanceLeftMarginInPx}px;
2720
+ color: ${e=>e.theme.colors.primary};
2721
+ `,mo=a(v)`
2722
+ display: flex;
2723
+ user-select: none;
2724
+ flex-direction: row;
2725
+ justify-content: center;
2726
+ align-items: center;
2727
+ height: ${k.balanceHeight};
2728
+ max-width: ${k.balanceWidthInPx-2}px;
2729
+ width: 138px;
2730
+ text-align: center;
2731
+ `,Tg=a.div`
2732
+ height: 100%;
2733
+ display: inline-block;
2734
+ flex-direction: row;
2735
+ align-items: center;
2736
+ min-width: ${e=>k.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?P`
2741
+ position: -webkit-sticky;
2742
+ position: sticky;
2743
+ top: ${s.sp0};
2744
+ left: ${s.sp0};
2745
+ z-index: 20;
2746
+ `:null}
2747
+ `,Vg=a.div`
2748
+ display: flex;
2749
+ width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
2750
+ flex-direction: row;
2751
+ justify-content: flex-start;
2752
+ color: ${e=>e.theme.colors.champion};
2753
+ `,kt=a(v)`
2754
+ display: flex;
2755
+ justify-content: flex-end;
2756
+ align-items: center;
2757
+ height: ${k.balanceHeight};
2758
+ width: ${k.balanceWidth};
2759
+ min-width: ${k.balanceWidth};
2760
+ margin-left: ${k.balanceLeftMargin};
2761
+ margin-top: ${s.sp3};
2762
+ `,Dg=a.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
+ `,Rg=a.div``,Gg=a(v)`
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: ${s.sp2};
2778
+ margin-left: ${k.balanceLeftMarginInPx}px;
2779
+ color: ${e=>e.theme.colors.primary};
2780
+ width: ${k.balanceWidth};
2781
+ min-width: ${k.balanceWidth};
2782
+ `,Eg=a.div`
2783
+ display: flex;
2784
+ width: ${e=>e.isActualVsForecastOn?3*Oe:Oe}px;
2785
+ flex-direction: column;
2786
+ align-items: flex-end;
2787
+ `,Hg=a.div`
2788
+ max-height: 54px;
2789
+ min-height: 54px;
2790
+ `,wo=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:o,bookCloseDate:r})=>{const l=B.getLocalizedStrings().reports,c=r!=null&&o!=null&&(n.balanceType==="default"||n.balanceType==="default_with_percent")?ai(i,e,n,r,o):void 0,d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,h=to(c,i);return t.jsx(Hg,{children:r!=null&&o!=null&&c!=null&&d!=null&&h!=null?t.jsx(eo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,tagName:d,infoContent:h,tagType:c}):t.jsx(xo,{isActualVsForecastOn:!1,children:t.jsx(mo,{children:Pe(e,n,i)})})})},Kg=({firstMonthOfFY:e,timeframeTick:n,timeframe:i,isActualVsForecastOn:o,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const h=B.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return o===!0?t.jsxs(Eg,{isActualVsForecastOn:o,children:[t.jsx(xo,{isActualVsForecastOn:o,children:t.jsx(mo,{children:Pe(e,n,i)})}),t.jsxs(Vg,{isActualVsForecastOn:o,children:[t.jsx(kt,{children:h.actual}),t.jsx(kt,{children:h.forecast}),t.jsx(kt,{children:t.jsx(an,{title:u,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(wo,{firstMonthOfFY:e,timeframeTick:n,timeframe:i,dataAvailable:l,bookCloseDate:c})},Yg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:i,compareMode:o,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=ce(),h=o==="compare_mode_amount"?`${B.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:B.getLocalizedStrings().compareMode.changePercent;return t.jsx(Dg,{children:n.map((u,p)=>t.jsx(N.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(Gg,{children:t.jsx(an,{title:h,titleTextStyle:Vt.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:o,menuPosition:"right",onCompareModeChanged:g=>{g!=="off"&&(g==="compare_mode_amount"||g==="compare_mode_percent"?c?.(g):console.warn("Invalid compare mode option"))}})}):t.jsx(Rg,{children:t.jsx(wo,{firstMonthOfFY:e,timeframeTick:u,timeframe:i,dataAvailable:r,bookCloseDate:l},p)})},p))})};function Ug({type:e,backgroundColor:n,isSticky:i,height:o,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}){const x=O();return t.jsxs(Fg,{height:o,bgColor:n,children:[ge(e)===!0?t.jsx(Tg,{isSticky:i,windowSize:x,bgColor:n,children:" . "}):null,t.jsx(zg,{children:l===!0?t.jsx(Yg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:h,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f}):h.map((b,y)=>t.jsx(Kg,{firstMonthOfFY:c,timeframeTick:b,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:g,onCompareModeChanged:f},y))})]})}const ut=(e,n,i,o,r,l,c,d,h,u,p)=>{if(i.element.kind!="ac_report"||i.element.data==null)return null;const g=i.element.data,f=Ne(i.config.reportId)===!0||ii(i.config.reportId)===!0?Vi("no_filter",i.config.filterAccountsWithNilBalances):ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),x=ee(f.acBalanceSelector(g),i.config.displayOrder,i.element.numOfBalances);return t.jsx(qu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:h,account:g,onAccountBalanceClick:p==null?void 0:(b,y,C)=>{p?.(b,y,C)}})},ze=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ho(x.acBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances),y=f.account.classesViewParentId?.parentClassId!=null?f.account.classesViewParentId?.parentClassId.length-1:void 0,C=i.config.reportId==="operating_expenses";return t.jsx(Cg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",classDepth:y,compareMode:p,accountBalances:b.balances,isScrolling:c,isLeaf:d,isOpen:h,isLastNode:u,account:f,metadata:i.element.metadata,onClick:g,noMarginForAccount:C,onAccountBalanceClick:g==null?void 0:(S,A,L)=>{g?.(S,A,L)}})},gt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_report"||i.element.data==null)return null;const f=i.element.data,x=ot(i.element.sectionType,"no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Bu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},hn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="ac_group_subaccount"||i.element.data==null)return null;const f=i.element.data,x=sn("no_filter",i.config.filterAccountsWithNilBalances,i.config.filterAccountGroupsWithNilBalances),b=ee(x.acGroupBalanceSelector(f),i.config.displayOrder,i.element.numOfBalances);return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,leftChevron:d?"open":"collapsed",accountGroupName:f.accountGroupName,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},un=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},pt=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="section_with_ac_only"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},gn=(e,n,i,o,r,l,c,d,h,u,p,g)=>{if(i.element.kind!="calculated_section"||i.element.data==null)return null;const f=Nt(i.element.title),x=i.element.data,b=ee(x,i.config.displayOrder,i.element.numOfBalances);return t.jsx(dn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,sectionName:i.element.title,sectionColor:f,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,isLastNode:u,onClick:y=>{g?.(y)}})},Te=(e,n,i,o,r,l,c,d,h)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=sn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),g=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,f=ho(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),x=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(Ig,{type:e,backgroundColor:o,isSticky:r,height:i,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:h,accountBalances:f.balances,isScrolling:l,noMarginForAccount:x,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:g})},Ve=(e,n,i,o,r,l,c,d)=>{if(i.element.kind!=="timeframe_headers"&&i.element.kind!=="timeframe_headers_with_forecast")return null;const h=Fe(i.element.data,i.config.displayOrder),u=h.length>0?h[0].balanceTimeFrame:"month",p=h.map(g=>Ie(g));return t.jsx(Ug,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:o,isActualVsForecastOn:i.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:i.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:i.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:i.config.dataAvailable,bookCloseDate:i.config.bookCloseDate,onCompareModeChanged:d})},yo=(e,n,i,o,r,l,c,d,h,u,p,g,f)=>{if(i.element.kind!="class"||i.element.data==null)return null;const x=i.element.data,b=ee(x.childrenBalancesTotal,i.config.displayOrder,i.element.numOfBalances),y=p>1;return t.jsx(lg,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:o,className:i.element.title,classCode:i.element.data.class.accountingClassNumber,isActualVsForecastOn:i.config.mode==="actual_vs_forecast",depth:x.id.length-1,compareMode:g,sectionBalances:b.balances,isScrolling:c,isOpen:d,isLeaf:h,hasChildren:x.children.length>0,isLastNode:u,isSubClass:y,showClassAccountNumber:i.config.showClassAccountNumber,onClick:C=>{f?.(C)},metadata:i.element.metadata})},qg=(e,n,i)=>e.element.kind!=="loading_in_progress"?null:t.jsx(Di,{height:n,backgroundColor:i,title:e.element.title,numOfBalances:e.element.numOfBalances}),Qg=(e,n,i)=>e.element.kind!=="headers_loading_in_progress"?null:t.jsx(Gi,{height:n,backgroundColor:i,numOfBalances:e.element.numOfBalances}),Un=e=>{const{height:n,data:{reportElementData:i,id:o,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:h},isOpen:u,style:p,setOpen:g,isScrolling:f}=e,x=(C,S,A)=>{const L=l?u:!u;!l&&A==null&&(g(!u),e.onNodeCollapseToggled?.(C,!u)),e.onNodeClick?.(C,L,S,A)},b=e.treeNodePadding?.left,y=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:b,paddingRight:y},children:t.jsx(bo,{id:o,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:i,height:n,isSticky:e.isSticky,isScrolling:f??!1,isLeaf:l,isLastNode:c,isFirstNode:h,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick!=null||!l?x:void 0,compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},o)})},bo=e=>e.treeKind==="name_only"?t.jsx(np,{...e}):Ht(e.reportElementData.config.reportId)?t.jsx(op,{...e}):Yt(e.reportElementData.config.reportId)===!0?t.jsx(ip,{...e}):ii(e.reportElementData.config.reportId)===!0?t.jsx(Zg,{...e}):Gt(e.reportElementData.config.reportId)===!0?t.jsx(Jg,{...e}):Ne(e.reportElementData.config.reportId)===!0?t.jsx(Xg,{...e}):Et(e.reportElementData.config.reportId)===!0?t.jsx(ep,{...e}):Ko(e.reportElementData.config.reportId)===!0?t.jsx(tp,{...e}):Ut(e.reportElementData.config.reportId)===!0?t.jsx(rp,{...e}):Kt(e.reportElementData.config.reportId)===!0?t.jsx(ap,{...e}):null,Zg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return un(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"headers_loading_in_progress":return Qg(i,o,r);case"loading_in_progress":return qg(i,o,r);default:return null}},Jg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return null;case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},Xg=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,nestingLevel:p,compareMode:g,nodeClickHandler:f,onCompareModeChanged:x})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,g,f);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,g,f);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,g,f);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,g,f);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,g,f);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,g,f);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,g);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,g,x);case"class":return yo(e,n,i,o,r,l,c,u,d,h,p,g,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,g,f);case"total":return Ui(e,n,i,o,r,l,g,d);case"headers_loading_in_progress":return Kc(i,o,r);case"loading_in_progress":return Hc(i,o,r);default:return null}},ep=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return Rc(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return Gc(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return Ki(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return Ec(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":case"calculated_section_type1":return Yi(e,n,i,o,r,l,c,u,d,h,p,g);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"total":return Ui(e,n,i,o,r,l,p,d);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);default:return null}},tp=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,compareMode:p,nodeClickHandler:g,onCompareModeChanged:f})=>{switch(i.element.kind){case"ac_report":return ut(e,n,i,o,r,l,c,d,h,p,g);case"ac_group_report":return gt(e,n,i,o,r,l,c,u,d,h,p,g);case"section":return un(e,n,i,o,r,l,c,u,d,h,p,g);case"section_with_ac_only":return pt(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section":return gn(e,n,i,o,r,l,c,u,d,h,p,g);case"calculated_section_type1":return Ol(e,i,o,r,l,c,h);case"title_string_only":return Xt(e,n,i,o,r,l,c,u,d,h,p,g);case"ac_subentity_total":return Te(n,i,o,r,l,c,d,h,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ve(e,n,i,o,r,l,p,f);case"ac_subaccount":return ze(e,n,i,o,r,l,c,d,u,h,p,g);case"ac_group_subaccount":return hn(e,n,i,o,r,l,c,u,d,h,p,g);default:return null}},np=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:h,isOpen:u,toggleCheckHandler:p})=>{switch(i.element.kind){case"checkbox_and_name_only":return nh(e,n,i,o,r,l,c,u,d,h,p);default:return null}},ip=({id:e,treeKind:n,reportElementData:i,height:o,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:h,onCompareModeChanged:u})=>{switch(i.element.kind){case"loading_in_progress":case"spacer_row":return pu(i,o,r,l);case"timeframe_headers":return hu(i,o,l,h,r,u);case"total":return uu(e,n,i,o,l,c,r);case"vendor_row":return gu(n,i,o,r,l,c,d);case"title_string_only":return fu(i,o,r,l);default:return null}},op=({id:e,treeKind:n,reportElementData:i,height:o,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:h,nodeClickHandler:u})=>{const{config:p}=i;switch(i.element.kind){case"spacer_row":return null;case"timeframe_headers":return Ha(i,o,h,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return Ua(n,i,o,h,l);case"aging_report_row":return Ka(e,i,o,r,l,d,c,h,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return Ya(i,o,l,c,h);default:return null}},rp=({id:e,reportElementData:n,height:i,backgroundColor:o,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:h,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:g,hoveredParentIdProps:f})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return Rd(e,n,o,r,l,c,d,f,p);case"flux_vendor_row":return Gd(e,n,o,r,l,u,c,d,h,f,g);case"section":return Ed(e,n,i,o,r,l,u,c,d,g);case"timeframe_headers":return Hd(n,i,r);case"total":return Kd(n,i);case"loading_in_progress":return Yd(n);case"headers_loading_in_progress":return Ud(n);default:return null}},ap=({reportElementData:e,height:n,isSticky:i,isLastNode:o})=>{switch(e.element.kind){case"timeframe_headers":return Kr(e,i);case"loading_in_progress":return Hr();case"total":return Yr(e,n,i);case"section":return Er();case"title_string_only":return Ur(e,n);case"ac_group_report":return qr(e,n,o);default:return null}};function qn(e,n,i,o){return{data:{defaultHeight:pn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:o??lp(e.reportElementData.config.reportId,e.reportElementData.element.kind,i,e.reportElementData.config.reportFormat),nestingLevel:i,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:i,node:e}}function pn(e,n,i){return Gt(e)===!0?Qr(n):Et(e)===!0||Ne(e)===!0?ic(n):Ht(e)?ca(n):Kt(e)?it(n):Yt(e)?ih(n):Ut(e)?Qi(n,i):ul(n)}function lp(e,n,i,o){return Gt(e)?Zr(n,o,i):Et(e)||Ne(e)===!0?oc(n,o):Ht(e)?sa():Yt(e)?oh():Ut(e)?os(n):Kt(e)?qo():gl(n,o)}const cp=a.div`
2791
+ 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 sp({height:e,backgroundColor:n,headers:i,treeKind:o,isSticky:r,compareMode:l,onCompareModeChanged:c}){return i.length===0?null:(i.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(cp,{heightValue:e,bgColor:n,"data-testid":m("sticky-header-report-tree"),children:i.map((d,h)=>t.jsx(bo,{id:d.id,treeKind:o,reportElementData:d.reportElementData,height:pn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:i.length-1===h,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const dp=(e,n,i)=>function*(){for(let o=0;o<n.length;++o)yield qn(n[o],e,0,i[n[o].id]??void 0);for(;;){const o=yield;for(let r=0;r<o.node.children.length;++r)yield qn(o.node.children[r],e,o.nestingLevel+1,i[o.node.children[r].id]??void 0)}},ko=N.createContext(void 0);function hp({height:e,kind:n,rootNodes:i,compareMode:o,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:h,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:g,variableNodeHeightTree:f,onNodeClick:x,onCompareModeChanged:b,scrollPosition:y,onScroll:C,nodeOpenStatus:S,onNodeCollapseToggled:A,onTreeInnerElementHeightChanged:L,onToggleCheck:W,hoveredParentIdProps:F}){const z=N.useRef(null),K=N.useRef(null),E=bn(f?.prevFetchState),Y=bn(f?.prevRefreshFetchState),[Q,he]=N.useState(0),J=p??K,ie=u??z,Se=O(),[ae,ue]=N.useState(void 0),[De,fn]=N.useState(!1),[Re,xn]=N.useState(S),mn=(I,te)=>{xn(Object.assign({},Re,{[I]:te})),A?.(I,te)},wn=I=>{if(i.contentNodes.length>0)if(Object.keys(I).length>0){const te={};Object.keys(I).forEach(me=>{te[me]={open:I[me]}}),ie?.current?.recomputeTree(te)}else{const te=i.contentNodes[0].id;ie?.current?.recomputeTree({[te]:{open:!0}})}};N.useLayoutEffect(()=>{if((!kn(y,ae)||ae==null)&&J.current!=null){const I=y?.scrollLeft==null?Se==="small"?0:J.current.scrollWidth:y?.scrollLeft;if(y!=null){const te={scrollTop:y.scrollTop,scrollLeft:I};ue(te),I!==y?.scrollLeft&&C?.(te)}J.current.scroll({left:I,top:y?.scrollTop})}},[y]),N.useEffect(()=>{kn(S,Re)||(xn(S),wn(S))},[S]),N.useEffect(()=>{const I=J.current,te=Lo(()=>{if(I!=null&&(ae==null||I.scrollLeft!==ae.scrollLeft||I.scrollTop!==ae.scrollTop)){const me={scrollLeft:I.scrollLeft,scrollTop:I.scrollTop};ue(me),C?.(me)}},50);return I?.addEventListener("scroll",te),()=>{I?.removeEventListener("scroll",te)}},[J,ae,C]),N.useEffect(()=>{if(i.contentNodes.length>0){wn(Re);const I=i.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";I!==De&&fn(I)}},[De,fn,i,ie,J]),N.useEffect(()=>{(f!=null&&E==="In-Progress"&&f.fetchState==="Completed"&&f.isSortApplied||f!=null&&Y==="In-Progress"&&f.refreshFetchState==="Completed")&&(f.reducedFetchState==="Completed"&&f.setIsSortApplied(!1),he(Q+1))},[Q,f?.fetchState,f?.isSortApplied,E,Y,f]);const ft=N.useRef(),[jo,So]=N.useState(void 0),Co=()=>{const I=ft.current;I!=null&&I.clientHeight>0&&I.clientHeight!=jo&&(So(I.clientHeight),L?.(I.clientHeight))},yn=N.useCallback(dp(n,i.contentNodes,Re),[n,i]),vo={rootNodes:i,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:o,onCompareModeChanged:b};return t.jsx(ko.Provider,{value:vo,"data-testid":m("report-tree"),children:g==null?t.jsx(jn,{className:d,style:h,ref:ie,innerRef:ft,outerRef:J,innerElementType:Mt,treeWalker:yn,onItemsRendered:Co,height:e,width:"100%",children:I=>t.jsx(Un,{...I,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W})}):t.jsx(Ao,{isItemLoaded:g.isItemLoaded,itemCount:g.itemCount+1,loadMoreItems:g.loadMoreItems,children:({onItemsRendered:I,ref:te})=>t.jsx(jn,{className:d,style:h,ref:te,innerRef:ft,outerRef:J,innerElementType:Mt,treeWalker:yn,onItemsRendered:I,height:e,width:"100%",children:me=>t.jsx(Un,{...me,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:x,onNodeCollapseToggled:mn,compareMode:o,onCompareModeChanged:b,onToggleCheck:W,hoveredParentIdProps:F})},Q)})})}const Mt=N.forwardRef((e,n)=>{const{children:i,style:o,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:h,isSticky:u,compareMode:p,onCompareModeChanged:g}=N.useContext(ko),f=l.headerNodes.reduce((C,S)=>C+pn(S.reportElementData.config.reportId,S.reportElementData.element.kind,S.isFirstNode),0),x=c?.left,b=c?.right,y=s.sp8;return t.jsxs("div",{ref:n,style:{...o,width:"auto",minWidth:"100%",paddingLeft:x,paddingRight:b,marginBottom:y},...r,children:[t.jsx(sp,{height:f,backgroundColor:d,headers:l.headerNodes,treeKind:h,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:g}),i]})});Mt.displayName="stickyInnerElementType";const up=a.div`
2806
+ 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: ${s.sp2};
2819
+ height: ${s.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: ${s.sp2};
2830
+ height: ${s.sp2};
2831
+ background-color: transparent;
2832
+ }
2833
+ &::-webkit-scrollbar-track {
2834
+ box-shadow: inset 0 0 2px ${X.scrollbarBoxShadow};
2835
+ -webkit-box-shadow: inset 0 0 2px ${X.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 yp({rootNodes:e,type:n,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onReportTableHeightChanged:y,onToggleCheck:C}){return t.jsx(_o,{children:({height:S,width:A})=>t.jsx(up,{"data-testid":m("report-tree-container"),height:S,width:A,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(hp,{"data-testid":m("report-tree"),treeClassName:"content-scroll",height:S,kind:n,rootNodes:e,compareMode:i,isSticky:o,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:h,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(L,W,F,z)=>{F!=null&&z!=null&&c(F,z)},onCompareModeChanged:p,scrollPosition:g,onScroll:f,nodeOpenStatus:x,onNodeCollapseToggled:b,onTreeInnerElementHeightChanged:y,onToggleCheck:C})})})}export{ee as D,yp as I,q as J,wp as R,Pe as V,We as a,ot as l,Yc as n,on as r,sn as x};