@zeniai/web-app-ui 4.14.28-prod → 4.14.29-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) hide show
  1. package/dist/assets/{ACHDetailsPage-URcYg-_E-CnKQi3u4.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-VILPvNCr-BPT7YRxu.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
  3. package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
  7. package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BMCgd2A5-DYYQJbMt.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
  11. package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
  12. package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
  13. package/dist/assets/{AgingReportsPage-BL_aBNzL-Rfib8YTF.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
  14. package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
  15. package/dist/assets/{AllUserItems-b0wgd0Wz-HghicmNo.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
  16. package/dist/assets/{ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
  17. package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
  18. package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
  19. package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
  20. package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
  21. package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
  22. package/dist/assets/{AttachmentView-ENg9Osic-P9NYY_0P.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
  23. package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
  24. package/dist/assets/{BankAccountSection-oL-aN0I_-Dgtd5LW7.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
  25. package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
  26. package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
  27. package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
  28. package/dist/assets/{BillPayApprovalRoutes-D2WhMQ-d.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
  31. package/dist/assets/{BillPayPromoPage-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-BUUZZuBG.js → BillPayRoutes-DqZf2rOO.js} +13 -13
  33. package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
  34. package/dist/assets/{BillingSettingsPage-Cfe4Vmza-BztoAmNg.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
  35. package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
  36. package/dist/assets/{BoxItem-CTEOx6Nh-C4z3ogUT.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
  37. package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
  38. package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
  39. package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
  40. package/dist/assets/{CardNumberSubText-DijJqFXC-9bJRWO6u.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
  41. package/dist/assets/{CashbackDetailPage-BxIWU0z2-5aSz_QAT.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
  42. package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
  43. package/dist/assets/{ChargeCardListPage-CYhY6c52-CMF1P6xh.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
  44. package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
  46. package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-Bi6qtFGx.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
  48. package/dist/assets/{ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
  49. package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
  50. package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
  51. package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
  52. package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
  53. package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
  54. package/dist/assets/{CompanyPassportPage-DqhT6YL_-C387_Sbn.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
  55. package/dist/assets/{CompanyPassportScreen-Bw3qq-Ht.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
  56. package/dist/assets/{CompleteProfile-DdA-FkwG-CwuL_HZU.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
  57. package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
  61. package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
  62. package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
  63. package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
  64. package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
  67. package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
  70. package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
  71. package/dist/assets/{Dashboard-Cvmg-DzK-puV8ebMR.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-C7bT-gmW-B8nCLsAW.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
  73. package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-RFtlxhsO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
  77. package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
  78. package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
  79. package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
  80. package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
  81. package/dist/assets/{DrawerPage-DGuh6P-6-BcyuUjYZ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
  82. package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
  83. package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
  84. package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
  85. package/dist/assets/{EntityDetailPage-BbeHCNGS-CuhXo5UK.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
  86. package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
  87. package/dist/assets/{EntitySummarySection-BgjWn9vX-B3b1MF7S.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
  88. package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
  89. package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
  91. package/dist/assets/{ExpressPayPage-5VdASApP-D9MlPJBc.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
  92. package/dist/assets/{FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
  94. package/dist/assets/{FollowStepsSection-CTSjTKjT-BGVIDRAe.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
  95. package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
  96. package/dist/assets/{InformationCardStack-D_Z7Ebe0-CrFTMoBP.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
  97. package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
  98. package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
  101. package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
  102. package/dist/assets/{InviteFormPage-C5mS-6c8-CQ3pBA8X.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
  103. package/dist/assets/{InvitePageListView-Yj83_lDA-BObL1UwR.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
  104. package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
  105. package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
  106. package/dist/assets/{IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
  107. package/dist/assets/{LabeledAddressValue-Bb1x9jR--K66XVI1l.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
  109. package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
  110. package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
  112. package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
  113. package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
  114. package/dist/assets/{LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
  115. package/dist/assets/{LabeledNameField-DWKoivcI-Bg7Loxzf.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
  116. package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
  117. package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
  119. package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
  120. package/dist/assets/{LinkJETransactionPage-BbpybbwD-CgRdsDGC.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
  121. package/dist/assets/{LockCardPage-C0XjGES8-DzPwjGzp.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
  122. package/dist/assets/{LowBalancePopup-CkO97HGX-nozhu0WG.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
  123. package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-D99wiuRu.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
  127. package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
  128. package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
  129. package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
  131. package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
  132. package/dist/assets/{MoreMenuButton-BWNCapgP-BFDpJyIR.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
  133. package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
  134. package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
  135. package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
  136. package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
  137. package/dist/assets/{NavigationArrow-CUPvxfZv-CROxnh_J.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
  138. package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
  140. package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
  141. package/dist/assets/{NoDataTable-D1v085Vv-CeExg0EA.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
  142. package/dist/assets/{NotFoundPage-Bf-EPtU9-DffpH6WC.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
  143. package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
  144. package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
  146. package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
  147. package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
  148. package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
  149. package/dist/assets/{OverlayContainerPage-D4QU0p4o-C20bjbix.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
  150. package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
  151. package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
  153. package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
  154. package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
  155. package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
  156. package/dist/assets/{Preview-BI7JdS0A.js → Preview-C63MOKlS.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-Dx8bStwI-DCDAdb91.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
  158. package/dist/assets/{PromoBaseCards-Bauxzwzt-D83UTBk-.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
  159. package/dist/assets/{QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-Bdjj5_fC.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
  161. package/dist/assets/{QBOSetupSection-Cb4AlHU9-D57sQXWJ.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
  162. package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1GmaX--.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
  167. package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
  168. package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
  169. package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
  170. package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
  171. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
  172. package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
  173. package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
  174. package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
  175. package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
  176. package/dist/assets/{RevenueChart-BHrj8Dy9-CDfFyh6U.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
  177. package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
  178. package/dist/assets/{ReviewOverlay-Be_F1hd--BbTRhL0o.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
  179. package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
  182. package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
  183. package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
  184. package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
  185. package/dist/assets/{SetUpAccountSection-ULABF-Md-zu_CEzKT.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
  186. package/dist/assets/{SettingsRoutes-DjjTCzCe.js → SettingsRoutes-CEWrZV9M.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-n_J03kZN.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
  188. package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
  189. package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
  190. package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
  191. package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
  192. package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
  193. package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
  194. package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
  195. package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
  196. package/dist/assets/{StatusSwitcher-CgzMvf5t-BZOhbmQ7.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
  197. package/dist/assets/{SubTabSwitcher-gc5g6vV0-DPlVBwi9.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
  198. package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
  199. package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
  200. package/dist/assets/{TaskDetailPage-Brq3l5Lm-D1g8XH38.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
  201. package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
  202. package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
  203. package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
  204. package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
  205. package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
  206. package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
  207. package/dist/assets/{TopExCard-CRxFMC50-DI0Ys14u.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-D7dCJGpQ-0fQzChNa.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
  209. package/dist/assets/{TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
  210. package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
  212. package/dist/assets/{TransactionDetailScreen-BB7cA6Qz.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
  213. package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
  214. package/dist/assets/{TransactionListBig-BOKPby7d-BEnm2yMd.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
  215. package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-C8lRyPOF.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
  218. package/dist/assets/{TransferDrawerPage-B5ofYt0y-GqcyFVry.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
  219. package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
  220. package/dist/assets/{TreasuryPromoPage-ofZQDboF-CT-dKX0-.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
  221. package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
  224. package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
  225. package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
  226. package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-C44UiDRH-CnXGyk33.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
  228. package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
  229. package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
  230. package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
  231. package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
  232. package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
  234. package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-D6DinIAj-BpUOgRZp.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
  238. package/dist/assets/{VendorsRoutes-BcdOO99u.js → VendorsRoutes-Dh458IQK.js} +21 -21
  239. package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
  240. package/dist/assets/{VideoPlayer-BuOlZW0M-BMl86S4m.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
  241. package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
  242. package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
  243. package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
  244. package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
  245. package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
  246. package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
  247. package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
  248. package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CG1KriVL.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
  249. package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
  250. package/dist/assets/{ZeniAvatar-CHmpyZc4-D3SEyYvU.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
  251. package/dist/assets/{ZeniCopyright-Cy7xQhak-ScelyO6I.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
  253. package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
  254. package/dist/assets/{accountMappingHelper-CTk3qsZA.js → accountMappingHelper-CZHlLVR_.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-DBixabBc.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
  256. package/dist/assets/{analytics-DeMdmyL7.js → analytics-CDQ7tGpV.js} +1 -1
  257. package/dist/assets/{analyticsHelper-MsboCQcB-CSXrY7fF.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
  258. package/dist/assets/{analyticsHelper-LPY3WkeX.js → analyticsHelper-jTnRtCKB.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CpIzET1p.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-NghmWVqE.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-bHemC5rL.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
  262. package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
  263. package/dist/assets/{calculateSize-DtEgyuiA-CjEqHti4.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
  264. package/dist/assets/{chartTypes-BZL6U2-d-jpm0hHlK.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-7F524_Wn.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
  266. package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
  267. package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
  268. package/dist/assets/{commonTypes-lunwFIdl-CvIuXwQA.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
  269. package/dist/assets/{core-CSCSHf4h.js → core-B0nKoasK.js} +3 -38
  270. package/dist/assets/{dash.all.min-DD8xAjYr.js → dash.all.min-CXMi5GlA.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-CjRggx5I.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
  272. package/dist/assets/{dnd-COr1F31f.js → dnd-NNN-4w0O.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-jCztdMWk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
  274. package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
  275. package/dist/assets/empty-CVZTZ-q9.js +1 -0
  276. package/dist/assets/{empty-CxBrUVur.js → empty-DA-JSLu3.js} +1 -1
  277. package/dist/assets/epic-D0yDPv8O.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-CXXx4fNz.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CKc8hoEH.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C4iKOud4.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-DNYsMVIY.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
  284. package/dist/assets/{helper-2Z01-P8G-6WuzcTRW.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
  285. package/dist/assets/{hyperlink-DQyCeXx2-CQAWbGo_.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
  286. package/dist/assets/{empty-BUd3exG5.js → index-BIjZljJR.js} +1 -1
  287. package/dist/assets/{index-DDbdy58V.js → index-ByxsQZNo.js} +4239 -4303
  288. package/dist/assets/{index-BOP14OKw.js → index-CEBFS-eA.js} +1 -1
  289. package/dist/assets/{index-BRX_XEL-.js → index-CQJQXzZY.js} +1 -1
  290. package/dist/assets/{index-CWdL8pZi.js → index-DrsMeyfs.js} +2 -8
  291. package/dist/assets/index-zhMcpxMF.js +1 -0
  292. package/dist/assets/{lexical-O2a-WmAf.js → lexical-Fl-AogKa.js} +1 -1
  293. package/dist/assets/{liveblocks-CxtxQte5.js → liveblocks-DskTqGyX.js} +3 -8
  294. package/dist/assets/{lottie-BQDwpIDJ.js → lottie-BzV8yd9z.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
  301. package/dist/assets/{media-player-En9R4zy-.js → media-player-eLGyvMHZ.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-Dg41nRSv.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
  303. package/dist/assets/{mui-CVWe5m7x.js → mui-40xepic5.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BOzcKZnj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-CcrLQmlI.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
  306. package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
  307. package/dist/assets/{pathToGoBack-DIP3w2mF.js → pathToGoBack-D0UTUGlT.js} +1 -1
  308. package/dist/assets/{pdf-rNAmIEF5.js → pdf-A8jRKyoC.js} +3 -3
  309. package/dist/assets/{pdf-lib-JWzwvdNX.js → pdf-lib-mQnebn-k.js} +1 -1
  310. package/dist/assets/{plaid-CiVnbkxs.js → plaid-cfgjTkr8.js} +1 -1
  311. package/dist/assets/{pusher-CfFxSIhQ.js → pusher-1O2fsDZq.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-dW1yKl4Q.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
  313. package/dist/assets/{react-DRNApT94.js → react-BEcUyG01.js} +2 -12
  314. package/dist/assets/{react-DreXWt5i.js → react-BEctO-ia.js} +2 -12
  315. package/dist/assets/{react-CWo9VOAE.js → react-C6o6ScF5.js} +2 -12
  316. package/dist/assets/react-CQm7lU_-.js +19 -0
  317. package/dist/assets/{react-BLXPSNxU.js → react-CidUU4N9.js} +2 -12
  318. package/dist/assets/{react-BeMs2FpL.js → react-D8s_m7Vn.js} +2 -12
  319. package/dist/assets/{react-4TAXbemT.js → react-DcRcFJEU.js} +3 -13
  320. package/dist/assets/{react-BQsk4BoF.js → react-QF7HiPHo.js} +2 -12
  321. package/dist/assets/{recharts-C5pBg015.js → recharts-Bbdho9Pi.js} +1 -1
  322. package/dist/assets/{routePaths-fz0y1bUD.js → routePaths-CpPoI1xs.js} +1 -1
  323. package/dist/assets/{sentry-DXG8OAzW.js → sentry-COYnhuxW.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-Cd3QAXsn.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-D2szeI3Z.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
  327. package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B2mLzfbH.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-DSJzH_Tn.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-Do1fnqx6.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
  331. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
  332. package/dist/assets/{uploadAttachment-DtJo5Tp4-BZBGp8x9.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
  333. package/dist/assets/{uploadReceipts-Dge0cNF1-Bk3l52rk.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
  334. package/dist/assets/{url-DHNwFLzp.js → url-C27bOf0k.js} +1 -1
  335. package/dist/assets/{url-D1_xUHHk.js → url-XCmE-JaB.js} +1 -1
  336. package/dist/assets/{useDeviceId-CbEpWwMZ.js → useDeviceId-UXlBHXyB.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-B5PGidsY.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-BIw6ZPFi.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
  340. package/dist/assets/{utils-CEFC9M68.js → utils-DMEPgX6w.js} +7 -20
  341. package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
  342. package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
  343. package/dist/assets/{zeni-icon-only-CqALPKNP.js → zeni-icon-only-BkUYNged.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/dist/service-worker.js +16 -8
  346. package/package.json +4 -4
  347. package/dist/assets/AccountInfoPage-BTogpO7M-BUQAmyzG.js +0 -18
  348. package/dist/assets/AccountRow-Zjkju8uM-6N6Zy9oH.js +0 -298
  349. package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js +0 -6
  350. package/dist/assets/AddressRoutes-BRhTpo4o.js +0 -1
  351. package/dist/assets/AddressScreen-DDbvTrW2.js +0 -9
  352. package/dist/assets/AiCfoScreen-BMeMMkhN.js +0 -11
  353. package/dist/assets/AppBasePage-BM1NMPdI-DTjsrnRl.js +0 -71
  354. package/dist/assets/AppDrawerContent-XR9dBd-C-BEm_wBDf.js +0 -92
  355. package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js +0 -47
  356. package/dist/assets/ArAgingChart-DePiNxcV-D_qXJGXM.js +0 -24
  357. package/dist/assets/ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js +0 -46
  358. package/dist/assets/BankAccountWarningSection-CtRFcHTv-D_XRICo4.js +0 -51
  359. package/dist/assets/BillDetailPage-CPxVWXx6-1Oioq8DD.js +0 -266
  360. package/dist/assets/BillPaySetUpPage-BVOLWF1M-BteYr6zk.js +0 -42
  361. package/dist/assets/BusinessVerificationPage-D05hRyo1-CBEBIqW_.js +0 -138
  362. package/dist/assets/BusinessVerificationPageScreen-Cmz7lCYf.js +0 -9
  363. package/dist/assets/BusyIndication-Nz8htndZ-DYZEgBsh.js +0 -9
  364. package/dist/assets/ChargeCardListTable-Dblodw9X-CDugn7Oq.js +0 -711
  365. package/dist/assets/ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js +0 -222
  366. package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js +0 -206
  367. package/dist/assets/CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js +0 -2844
  368. package/dist/assets/CompanyPassportCard-DTfKmcGv-De1PPEAL.js +0 -42
  369. package/dist/assets/ConfettiBurst-Dc0iIaw3-B7boQlLF.js +0 -1
  370. package/dist/assets/ConnectionAuthScreen-Du50wdfI.js +0 -11
  371. package/dist/assets/CurrencySelectField-D_D8AUqS-BZdJIXWt.js +0 -139
  372. package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +0 -1
  373. package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +0 -1
  374. package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js +0 -66
  375. package/dist/assets/CustomerOnboardingRoutes-C8nMZVtS.js +0 -23
  376. package/dist/assets/DashboardRoutes-Cs6trW6R.js +0 -21
  377. package/dist/assets/DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js +0 -76
  378. package/dist/assets/DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js +0 -66
  379. package/dist/assets/DomesticWireDetailScreen-CDquLvw_.js +0 -18
  380. package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js +0 -21
  381. package/dist/assets/DownloadOverlay-DE63RFQe-rm17dQJa.js +0 -439
  382. package/dist/assets/DrawerScreen-C-gJlwdg.js +0 -1
  383. package/dist/assets/EditPeoplePage-Dmz2l8uY-DdG9SBff.js +0 -55
  384. package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js +0 -865
  385. package/dist/assets/EntityDetailRoutes-Bjmke2zn.js +0 -1
  386. package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js +0 -2323
  387. package/dist/assets/ExpenseAutomationRoutes-N5IH8NJS.js +0 -20
  388. package/dist/assets/FeaturePreviewScreen-CLKJ2QAB.js +0 -1
  389. package/dist/assets/GlobalReviewListPage-DmrnXFgW-B57SMtSt.js +0 -291
  390. package/dist/assets/InsightsCardStack-Dbpzjgf4-CmY1A9uH.js +0 -79
  391. package/dist/assets/InsightsSection-DgViiL7e-D07WWVHm.js +0 -27
  392. package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js +0 -65
  393. package/dist/assets/InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js +0 -12
  394. package/dist/assets/InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js +0 -140
  395. package/dist/assets/LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js +0 -45
  396. package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js +0 -16
  397. package/dist/assets/LabeledDocumentField-CFtFroDl-BAzH2vry.js +0 -41
  398. package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js +0 -59
  399. package/dist/assets/LabeledText-CZMUFsPf-BzxAzPVQ.js +0 -42
  400. package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js +0 -1
  401. package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js +0 -1
  402. package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js +0 -1
  403. package/dist/assets/MagicLinkSignInScreen-D9jNjUlX.js +0 -12
  404. package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js +0 -31
  405. package/dist/assets/MailingDetailsSection-CRsQVOYi-xwOtQnim.js +0 -21
  406. package/dist/assets/MobileAppDrawer-D_OmB8VL.js +0 -1
  407. package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js +0 -6
  408. package/dist/assets/NavBarWithPicker-ClP6LCUF-D7FqbQNc.js +0 -30
  409. package/dist/assets/NavigationDots-Cu9LZj7T-BoVhghfD.js +0 -15
  410. package/dist/assets/NoDataChart-DcMRzXHU-DbjmTgYu.js +0 -26
  411. package/dist/assets/NotFoundScreen-DykxXNVn.js +0 -1
  412. package/dist/assets/NotificationRoutes-C-lRR8pY.js +0 -1
  413. package/dist/assets/NotificationsListConfig-CO5uOSs7-aAnj3j2i.js +0 -1
  414. package/dist/assets/NotificationsPage-BH6B4Q8b-D1IQhl37.js +0 -685
  415. package/dist/assets/OpExByVendorPage-EjyJRLhn-BhVe3s3b.js +0 -100
  416. package/dist/assets/PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js +0 -107
  417. package/dist/assets/PandLWithForecastRoutes-zzKekdOK.js +0 -1
  418. package/dist/assets/PeoplePage-D2N1XP-O-caSWGUZc.js +0 -720
  419. package/dist/assets/PeopleRoutes-CsdzM7DQ.js +0 -22
  420. package/dist/assets/PerformanceRoutes-DoL3UdHs.js +0 -1
  421. package/dist/assets/ReferralListScreen-CmCz8zc8.js +0 -5
  422. package/dist/assets/ReimbursementApprovalRoutes-Cei43fBO.js +0 -1
  423. package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js +0 -314
  424. package/dist/assets/ReimbursementRoutes-CtyvtqmD.js +0 -13
  425. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js +0 -1
  426. package/dist/assets/ReloadCard-BKHKE8Pu-BkEOOlFz.js +0 -26
  427. package/dist/assets/ReportTableViewSelector-gYxUii1M-CxYX420D.js +0 -150
  428. package/dist/assets/ReportsPage-D7rEPLAa-CTGwy7xH.js +0 -121
  429. package/dist/assets/ReportsRoutes-DzvU0X2a.js +0 -1
  430. package/dist/assets/ReviewDetailsPage-B9SMV_va-DpCKxVZs.js +0 -290
  431. package/dist/assets/RewardsRoutes-vGh4ydPL.js +0 -1
  432. package/dist/assets/RoleWithToolTip-D9DCHaph-BK_HFdm8.js +0 -22
  433. package/dist/assets/ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js +0 -324
  434. package/dist/assets/ScreenRoutes-Ddt_3qWB.js +0 -2
  435. package/dist/assets/SignIn-6YH_riJW-CoJmoytJ.js +0 -491
  436. package/dist/assets/SignInScreen-C81bBqwd.js +0 -1
  437. package/dist/assets/SignOutScreen-CEuaozcz.js +0 -9
  438. package/dist/assets/SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js +0 -134
  439. package/dist/assets/SpendManagementPerTabPage-BnugLA94-ISau-F_A.js +0 -754
  440. package/dist/assets/SpendManagementSection-DCk1isQq-DqP3iWuL.js +0 -375
  441. package/dist/assets/StatementItem-BWKA6BsE-B8aggs_N.js +0 -31
  442. package/dist/assets/StatementsPage-C5KuiVH4-BGiHKDOi.js +0 -58
  443. package/dist/assets/SuccessAnimation-CcFXT4sg-BETTrulo.js +0 -13
  444. package/dist/assets/SummaryCard-DgPg2oPm-DQSV3AJ_.js +0 -1
  445. package/dist/assets/TaskListScreen-D_rI0d2T.js +0 -9
  446. package/dist/assets/TaskManagementPage-Dyy-A0ij-BRtOKHgc.js +0 -1063
  447. package/dist/assets/TaskRoutes-CcAxScvl.js +0 -9
  448. package/dist/assets/TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js +0 -64
  449. package/dist/assets/TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js +0 -31
  450. package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js +0 -31
  451. package/dist/assets/TransactionDetailPage-D0_Tjv5D-BzMxrc83.js +0 -903
  452. package/dist/assets/TransactionDetailRoutes-CKp9VtFU.js +0 -1
  453. package/dist/assets/TransactionList-DoYieHoy-Dq8Ds1Cb.js +0 -153
  454. package/dist/assets/TransactionListPage-Bfx0PW2V-Bv5CoGoz.js +0 -35
  455. package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js +0 -708
  456. package/dist/assets/TreasuryRoutes-aZ6pdLcv.js +0 -45
  457. package/dist/assets/TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js +0 -58
  458. package/dist/assets/TrendChart-BJLik8fK-B6jK66HA.js +0 -16
  459. package/dist/assets/TrendWithTransactions-R1FCSydB-BZtJh6Ko.js +0 -116
  460. package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js +0 -38
  461. package/dist/assets/Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js +0 -1
  462. package/dist/assets/VendorDetailPage-BixXt95H-CEzpHcoG.js +0 -257
  463. package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js +0 -1
  464. package/dist/assets/VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js +0 -730
  465. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js +0 -1
  466. package/dist/assets/VerifyDevice-DFug_o82-D9msA2pt.js +0 -112
  467. package/dist/assets/VideoPopup-B03SM83j--LOH40s0.js +0 -31
  468. package/dist/assets/WiseConfirmationScreen-D_LadT7o.js +0 -12
  469. package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js +0 -300
  470. package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js +0 -441
  471. package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js +0 -14
  472. package/dist/assets/ZeniAccountRoutes-DBnPGXKs.js +0 -58
  473. package/dist/assets/ZeniAccountStatementScreen-Br16O1Ed.js +0 -9
  474. package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js +0 -63
  475. package/dist/assets/common-DspMM85g-CC6Rl9Du.js +0 -1
  476. package/dist/assets/commonDimensions-RZ10geET-CKOh47Tk.js +0 -1
  477. package/dist/assets/detailCommon-CxEOrtjx-Ct263sBr.js +0 -38
  478. package/dist/assets/downloadPdf-BpxrRqLr-DZAS6b5B.js +0 -1
  479. package/dist/assets/epic-DybEFF0H.js +0 -2
  480. package/dist/assets/getLocaleForTenant-CjEkOXZy.js +0 -1
  481. package/dist/assets/index-CCO5Gdps.js +0 -1
  482. package/dist/assets/index-iatqQdID.js +0 -1
  483. package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js +0 -1
  484. package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js +0 -1
  485. package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js +0 -1
  486. package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js +0 -1
  487. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js +0 -1
  488. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js +0 -4
  489. package/dist/assets/react-C8m8Qc1h.js +0 -37
  490. package/dist/assets/toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js +0 -1
  491. package/dist/assets/toChartData-BurvmO_S-Dcja8_o1.js +0 -1
  492. package/dist/assets/useInitialThreadRequest-B_AZH90H.js +0 -1
  493. package/dist/assets/withTransactionSidePanel-CV9mcG0R.js +0 -8
  494. package/dist/assets/zeni-epic-state-B_a_iTrR.js +0 -122
@@ -1,2844 +0,0 @@
1
- import{ae as N,b9 as xe,a4 as q,V as t,an as Ei,a6 as y,cD as Ri,o as s,e as te,a7 as On,J as I,Q as Nn,z as Hi,cE as Mn,cF as Ki,O as M,u as S,cG as Et,bx as Rt,cH as Ht,b as G,cj as Kt,t as go,_ as ot,cI as ze,bb as K,f as Yi,y as le,ad as O,aj as po,cJ as xo,k as Me,cK as Ui,cL as ae,bw as Yt,bm as In,x as qi,W as be,cM as it,cN as Ie,cO as ht,s as v,bB as oe,cP as fo,cQ as Zi,j as Ut,cR as Ke,cS as Wn,cT as Pn,cU as Ji,cV as Qi,at as mo,aq as Xi,bT as qt,bS as Zt,cW as er,ar as wo,bW as yo,be as tr,cX as nr,cY as Fn,cZ as zn,c_ as or,c$ as ir,bg as rr,b6 as ar,d0 as lr}from"./index-DDbdy58V.js";import{n as a,c as T}from"./mui-CVWe5m7x.js";import{a as z,b as cr}from"./sentry-DXG8OAzW.js";import{Eu as Jt,E_ as Qt,E$ as Te,F0 as Xt,F1 as en,F2 as tn,F3 as nn,F4 as bo,F5 as sr,EH as _t,Ev as Le,ck as Tn,bt as ko,F6 as jo,F7 as dr,cp as hr,EI as So}from"./zeni-epic-state-B_a_iTrR.js";import{N as nt,D as ur,R as gr,B as ke,u as L}from"./AccountRow-Zjkju8uM-6N6Zy9oH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2ce65157-c049-489a-8fb2-da610b654c1a",e._sentryDebugIdIdentifier="sentry-dbid-2ce65157-c049-489a-8fb2-da610b654c1a")}catch{}})();const vt=[N.graphColor34,N.graphColor08,N.graphColor11,N.graphColor13,N.graphColor19,N.graphColor20,N.graphColor14,N.graphColor35,N.graphColor32,N.graphColor02,N.graphColor06,N.graphColor04,N.graphColor10,N.graphColor12,N.graphColor15,N.graphColor18];function on(e,n=0){const o=(i=>{const r=String.prototype.concat(...new Set(i));let l=0;for(let c=0;c<r.length;++c)l+=r.charCodeAt(c);return l})(e)+n*n*n;return vt[Math.floor(o/vt.length)%vt.length]}function J(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return q("0,0",e?.balance)}function Q(e){return q("0,0",e?.forecast)}function Co(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.totalPercentValue)}return q("0,0",e?.totalBalance)}function Nt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return xe("0.00%",e.forecastPercentValue)}return q("0,0",e?.totalForecast)}function ce(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return xe("0.00%",Math.floor(100*n)/100)}return xe("0.00%",void 0)}function se(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return q("0,0",Object.assign({},e.forecast,{amount:n}))}return q("0,0",null)}function _o(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return xe("0.00%",Math.floor(100*n)/100)}return xe("0.00%",void 0)}function vo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return q("0,0",Object.assign({},e.totalForecast,{amount:n}))}return q("0,0",null)}const Ve=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:l}}=M.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${_t(i,l.MMMYYYYFormat,e)}`:$t(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${M.getLocalizedStrings().reports.quarterPrefix}${_t(i,l.QYYYYformat,e)}`:$t(r,o);case"year":return r==="default"||r==="default_with_percent"?`${_t(i,l.YYYYformat,e)}`:$t(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function $t(e,n){return M.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const Ug=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${Ri(10)}`},pr=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: ${L.wrapperPadding}px;
9
- `,xr=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
- `,fr=a.div`
18
- display: flex;
19
- justify-content: flex-start;
20
- align-items: center;
21
- gap: ${s.sp2};
22
- width: ${L.leftHeadingWidth}px;
23
- `,mr=a.div`
24
- display: flex;
25
- flex: 1 1 auto;
26
- justify-content: flex-end;
27
- align-items: center;
28
- gap: ${s.sp4};
29
- `,wr=a(oe)`
30
- width: ${L.bankBalanceWidth}px;
31
- min-width: ${L.bankBalanceWidth}px;
32
- text-align: right;
33
- `,yr=a(oe)`
34
- width: ${L.clearedBalanceWidth}px;
35
- min-width: ${L.clearedBalanceWidth}px;
36
- text-align: right;
37
- `,br=a(oe)`
38
- width: ${L.statusWidth}px;
39
- min-width: ${L.statusWidth}px;
40
- `,kr=a.div`
41
- display: flex;
42
- flex-shrink: 0;
43
- gap: ${s.sp3};
44
- width: ${L.varianceWidth}px;
45
- min-width: ${L.varianceWidth}px;
46
- flex-direction: row;
47
- justify-content: flex-end;
48
- align-items: center;
49
- text-align: center;
50
- `,jr=a.div`
51
- width: ${L.variancePercentageWidth}px;
52
- min-width: ${L.variancePercentageWidth}px;
53
- text-align: right;
54
- margin-right: ${s.sp2};
55
- `,Sr=a.div`
56
- display: flex;
57
- justify-content: center;
58
- align-items: center;
59
- `,Cr=a.div`
60
- display: flex;
61
- justify-content: center;
62
- align-items: center;
63
- `;function _r({height:e}){const n=I();return t.jsx(pr,{heightValue:e,windowSize:n,children:t.jsxs(xr,{children:[t.jsxs(fr,{children:[t.jsx(Sr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,maxWidth:s.sp4,width:s.sp4,borderRadius:"50%"},children:t.jsx(t.Fragment,{})})}),t.jsx(Cr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.leftLabelWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsxs(mr,{children:[t.jsx(wr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.bankBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsx(yr,{children:t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.clearedBalanceWidth},children:t.jsx(t.Fragment,{})})}),t.jsxs(kr,{children:[t.jsx(ae,{isLoading:!0,position:"right",customStyle:{height:s.sp4,width:L.varianceNumberWidth},children:t.jsx(t.Fragment,{})}),t.jsx(jr,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.variancePercentageWidth},children:t.jsx(t.Fragment,{})})})]}),t.jsx(br,{children:t.jsx(ae,{isLoading:!0,customStyle:{height:s.sp4,width:L.statusWidth},children:t.jsx(t.Fragment,{})})})]})]})})}const vr=a.div`
64
- display: flex;
65
- flex-direction: row;
66
- height: ${e=>e.heightValue}px;
67
- padding-right: ${L.wrapperPadding}px;
68
- `;function $r({height:e}){return t.jsx(vr,{heightValue:e})}const Lr=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: ${L.wrapperPadding}px;
76
- `,Br=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
- `,Ar=a.div`
84
- display: flex;
85
- flex-direction: row;
86
- justify-content: flex-end;
87
- width: ${L.leftHeadingWidth}px;
88
- `,Or=a.div`
89
- display: flex;
90
- flex: 1 1 auto;
91
- flex-direction: row;
92
- justify-content: flex-end;
93
- `,Nr=a(wo)`
94
- user-select: none;
95
- color: ${e=>e.theme.colors.primary};
96
- width: ${L.leftTimeframeWidth}px;
97
- min-width: ${L.leftTimeframeWidth}px;
98
- flex: 1 1 auto;
99
- `,Mr=a(v)`
100
- user-select: none;
101
- `,Ir=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: ${L.bankBalanceWidth}px;
116
- `,Pr=a.div`
117
- width: ${L.bankBalanceRightTimeframeWidth}px;
118
- `,Fr=a.div`
119
- width: ${L.clearedBalanceWidth}px;
120
- margin-right: ${L.tickLeftMargin}px;
121
- `,zr=a.div`
122
- width: ${L.varianceTimeframeWidth}px;
123
- align-self: flex-end;
124
- `,Tr=a.div`
125
- width: ${L.spacerLineWidth}px;
126
- `,Vr=a.div`
127
- width: ${L.statusWidth}px;
128
- `,Ye=({title:e,type:n})=>t.jsx(Ir,{widthValue:L[n],children:t.jsx(Mr,{children:e})});function Dr({sectionTitle:e,height:n,isLoading:o}){const i=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Lr,{height:n,children:t.jsxs(Br,{children:[t.jsx(Ar,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp4,width:L.leftLabelWidth},children:t.jsx(Nr,{"data-testid":y("account-recon-section-title",e),children:e})})}),t.jsxs(Or,{children:[t.jsx(Wr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.bankBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ye,{title:i.bankBalance,type:"bankBalanceTimeframeWidth"})})}),t.jsx(Pr,{}),t.jsx(Fr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.clearedBalanceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ye,{title:i.clearedBalance,type:"clearedBalanceTimeframeWidth"})})}),t.jsx(zr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.varianceTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ye,{title:i.variance,type:"varianceTimeframeWidth"})})}),t.jsx(Tr,{}),t.jsx(Vr,{children:t.jsx(ae,{isLoading:o,customStyle:{height:s.sp7,width:L.statusTimeframeWidth,borderRadius:s.sp2},children:t.jsx(Ye,{title:i.status,type:"statusTimeframeWidth"})})})]})]})})}const Gr=a.div`
129
- display: flex;
130
- flex-direction: row;
131
- height: ${e=>e.heightValue}px;
132
- align-items: center;
133
- padding-right: ${L.wrapperPadding}px;
134
- `,Er=a(wo)`
135
- user-select: none;
136
- color: ${e=>e.theme.colors.primary};
137
- `;function Rr({height:e,title:n}){return t.jsx(Gr,{heightValue:e,children:t.jsx(Er,{"data-testid":y("account-recon-section-title",n),children:n})})}const Hr=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: ${L.wrapperPadding}px;
145
- `,Kr=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
- `,Yr=a.div`
155
- display: flex;
156
- flex: 1 1 auto;
157
- justify-content: flex-start;
158
- align-items: center;
159
- gap: ${s.sp2};
160
- `,Ur=a(oe)`
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: ${L.leftLabelWidth}px;
170
- min-width: ${L.leftLabelWidth}px;
171
- `,qr=a.div`
172
- display: flex;
173
- flex: 1 1 auto;
174
- justify-content: flex-end;
175
- align-items: center;
176
- `,Zr=a(oe)`
177
- width: ${L.bankBalanceWidth}px;
178
- min-width: ${L.bankBalanceWidth}px;
179
- text-align: right;
180
- `,Jr=a(oe)`
181
- width: ${L.clearedBalanceWidth}px;
182
- min-width: ${L.clearedBalanceWidth}px;
183
- text-align: right;
184
- margin-left: ${L.tickLeftMargin}px;
185
- `,Qr=a(oe)`
186
- width: ${L.statusWidth}px;
187
- min-width: ${L.statusWidth}px;
188
- height: 1px;
189
- `,Xr=a.div`
190
- display: flex;
191
- flex-direction: row;
192
- min-width: ${L.spacerLineWidth}px;
193
- width: ${L.spacerLineWidth}px;
194
- align-items: center;
195
- `,ea=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
- `,ta=a.div`
201
- display: flex;
202
- flex-shrink: 0;
203
- width: ${L.varianceTimeframeWidth}px;
204
- min-width: ${L.varianceTimeframeWidth}px;
205
- flex-direction: row;
206
- justify-content: flex-end;
207
- align-items: center;
208
- text-align: center;
209
- margin-left: ${L.tickLeftMargin}px;
210
- `,na=a(oe)`
211
- border-radius: ${s.sp1};
212
- color: ${e=>e.textColor.hex()};
213
- min-width: ${L.varianceNumberWidth}px;
214
- text-align: right;
215
- margin-right: ${s.sp2};
216
- `,oa=a(oe)`
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: ${L.variancePercentageWidth}px;
224
- `,{expenseAutomation:{accountRecon:{reconciliation:{headers:Vn}}},common:{strings:{percentage:ia,hyphen:rt}}}=M.getLocalizedStrings();function ra({height:e,sectionData:n}){const o=I(),i=n.totalVariance,r=n.totalVariancePercentage,l=le();return t.jsx(Hr,{"data-testid":y("total-row-root-container"),heightValue:e,windowSize:o,children:t.jsxs(Kr,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsxs(Yr,{children:[t.jsx(ke,{firstLetter:Vn.section[n.sectionId].subTitle.charAt(0),color:new O(l.colors.primary),showIcon:!1,showCollapsedIcon:!1}),t.jsx(Ur,{children:Vn.section[n.sectionId].subTitle})]}),t.jsxs(qr,{children:[t.jsx(Zr,{children:n.totalBankBalance!=null?q("0,0",n.totalBankBalance):rt}),t.jsx(Jr,{children:n.totalClearedBalance!=null?q("0,0",n.totalClearedBalance):rt}),t.jsx(aa,{variance:i,variancePercentage:r}),t.jsx(Xr,{children:t.jsx(ea,{heightValue:e})}),t.jsx(Qr,{})]})]})})}const aa=({variance:e,variancePercentage:n})=>{const o=le(),i=new O(o.colors.hero),r=new O(o.colors.hero),l=new O(o.colors.background),c=e!=null&&e.amount===0?"0%":n!=null?n===0?"0%":`${n.toFixed(2)}${ia}`:rt;return t.jsxs(ta,{children:[t.jsx(na,{textColor:i,children:e!=null?q("0,0",e):rt}),t.jsx(oa,{textColor:r,bgColor:l,children:c})]})},j={balanceHeight:s.sp4,balanceHeightInPx:S[4],balanceWidth:"166px",balanceWidthInPx:166,loadingBalanceWidthInPx:128,smallLoadingBalanceWidthInPx:98,balanceLeftMargin:s.sp4,balanceLeftMarginInPx:S[4],titleWidth:new G(200,325,405),loadingInProgressStickySectionWidth:385,get loadingInProgressScrollableSectionWidth(){return`calc(100% - ${this.loadingInProgressStickySectionWidth}px)`},loadingInProgressLargeStickyColumnWidth:194,loadingInProgressSmallStickyColumnWidth:128},ge=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":case"name_only":return!0}},me=e=>{switch(e){case"name+balances_actual":case"name+balances_forecast":return!0;case"name_only":return!1}},$o={emptyLeftContainer:new G(S[0],S[5])},la=a(v)`
225
- margin-left: ${e=>e.hasChildren||e.depth===0?s.sp2:s.sp3};
226
- overflow: hidden;
227
- white-space: nowrap;
228
- text-overflow: ellipsis;
229
- width: ${e=>j.titleWidth.value(e.windowSize)-45*(e.depth+1)}px;
230
- `,ca=a.div`
231
- display: flex;
232
- height: ${s.sp6};
233
- align-items: center;
234
- `,sa=a.div`
235
- display: flex;
236
- height: ${s.sp6};
237
- align-items: center;
238
- `,da=a.div`
239
- height: ${s.sp6};
240
- width: ${s.sp3};
241
- `,ha=a.div`
242
- width: 14px;
243
- height: ${s.sp1};
244
- `,ua=a.div`
245
- width: ${s.sp2};
246
- height: ${s.sp1};
247
- `,Lo=a.div`
248
- width: ${e=>$o.emptyLeftContainer.valuePx(e.windowSize)};
249
- height: ${s.sp1};
250
- `,We=a.div`
251
- display: flex;
252
- `,ga=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return t.jsxs(We,{children:[r.depth===0?t.jsx(Pn,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},i):t.jsx(ht,{}):null,r.depth>=1?t.jsx(Pn,{depth:r.depth}):null]},o+i)}):null}),Bo=({ancestorMetadata:e,depth:n,name:o})=>{const i=I();return n===0?e[n].hasChildren===!1?t.jsx(Lo,{windowSize:i}):t.jsxs(We,{children:[t.jsx(Ke,{depth:n}),t.jsx(Ie,{}),t.jsx(Ke,{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(We,{children:[l.depth===0?t.jsx(Ke,{depth:l.depth}):null,r>=2||r===1&&(n===r?l.hasChildren===!0:c!=null&&!c.isLastNode)?n===1?t.jsx(Wn,{index:1}):t.jsx(Wn,{index:2}):null,(n===r?l.hasChildren!==!0:c==null||c.isLastNode)?t.jsx(ht,{}):t.jsx(Ie,{},r),t.jsx(Ke,{depth:l.depth+1})]},o+r)}),n===1&&e[n].hasChildren!=1?t.jsx(ua,{}):null]})},Ao=({ancestorMetadata:e,depth:n,name:o})=>n===0?t.jsx(ha,{}):t.jsx(t.Fragment,{children:[...Array(n).keys()].map(i=>{const r=e[i],l=i!==n?e[i+1]:void 0;return t.jsxs(We,{children:[r!=null&&r.depth===0?t.jsx(it,{depth:r.depth}):null,l==null||l.isLastNode?t.jsx(ht,{}):t.jsx(Ie,{},i),t.jsx(it,{depth:r!=null?r.depth+1:0})]},o+i)})}),pa=({ancestorMetadata:e,depth:n,name:o})=>t.jsx(t.Fragment,{children:n>0?[...Array(n).keys()].map(i=>{const r=e[i];return r==null?null:t.jsxs(We,{children:[r.depth===0?t.jsx(it,{depth:r.depth}):null,r.depth>=1?r.hasSibling&&!r.isLastNode?t.jsx(Ie,{},i):t.jsx(ht,{}):null,r.depth>=1?t.jsx(it,{depth:r.depth}):null]},o+i)}):null}),xa=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>{let d=t.jsx(da,{});return e===0&&r&&(d=t.jsx(nr,{collapsed:l,onIconClick:c})),e>0&&(r&&!i&&n&&(d=t.jsx(Fn,{collapsed:l,onIconClick:c})),o&&i&&n&&(d=t.jsx(zn,{})),o&&i&&!n&&(d=t.jsx(or,{})),r&&i&&!n&&(d=t.jsx(ir,{collapsed:l,onIconClick:c})),r&&i&&n&&(d=t.jsx(Fn,{collapsed:l,onIconClick:c})),n&&o&&(d=t.jsx(zn,{}))),d},fa=({depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})=>t.jsx(sa,{children:t.jsx(xa,{depth:e,isLastNode:n,isLeaf:o,hasSiblings:i,hasChildren:r,collapsed:l,onIconClick:c})});function Oo(e){const{displayName:n}=e;e.depth>4&&console.warn("cannot handle depth more than 4");const o=I();return t.jsxs(ca,{children:[e.classDepth!=null?t.jsx(Bo,{ancestorMetadata:e.classAnscestorMetadata??[],depth:e.classDepth,name:e.displayName}):e.noMarginForAccount===!1?t.jsx(Lo,{windowSize:o}):null,t.jsx(pa,{ancestorMetadata:e.subAccountAnscestorMetadata,depth:e.depth,name:e.displayName}),t.jsx(fa,{...e}),t.jsx(la,{onClick:()=>e.onNameClick?.(),hasChildren:e.hasChildren,depth:e.depth,windowSize:o,title:n,children:n})]})}const H={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,325,405),nameLogoWidth:new G(S[4],S[4]),nameLogoHeight:new G(S[4],S[4])},Ue=[new G(S[4],S[8]),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],ma=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
- `,wa=a.div`
258
- display: flex;
259
- flex: 1 1 auto;
260
- flex-flow: row;
261
- justify-content: flex-start;
262
- align-items: center;
263
- `,ya=a.div`
264
- display: flex;
265
- flex-direction: row;
266
- flex-shrink: 2;
267
- flex-grow: 1;
268
- align-items: center;
269
- background-color: ${e=>e.theme.colors.grey4};
270
- width: ${e=>H.titleWidth.valuePx(e.windowSize)};
271
- max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
272
- ${({isSticky:e})=>e?T`
273
- position: -webkit-sticky;
274
- position: sticky;
275
- top: ${s.sp0};
276
- left: ${s.sp0};
277
- `:null}
278
- `,ba=a.div`
279
- width: ${e=>e.noMarginForEntity?Ue[e.nestingLevel].value(e.windowSize)-S[5]:Ue[e.nestingLevel].value(e.windowSize)}px;
280
- max-width: ${e=>e.noMarginForEntity?Ue[e.nestingLevel].value(e.windowSize)-S[5]:Ue[e.nestingLevel].value(e.windowSize)}px;
281
- height: 1px;
282
- `,ka=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
- `,ja=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
- `,Dn=e=>{const n=I(),o=le();return t.jsxs(wa,{"data-testid":y("sub-entity-separator",e.isTotal?"subtotal_row_separator":"vendor_row_separator"),children:[t.jsxs(ya,{windowSize:n,isSticky:e.isSticky,"data-testid":y("sub-entity-name-container","vendor_row_separator"),children:[t.jsx(ba,{"data-testid":y("sub-entity-empty-container","vendor_row_separator"),nestingLevel:e.nestingLevel,noMarginForEntity:e.noMarginForEntity,windowSize:n}),t.jsx(ka,{"data-testid":y("sub-entity-name-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(ja,{"data-testid":y("sub-entity-remaining-seperator","vendor_row_separator"),isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function Mt({kind:e,isScrolling:n,subEntityProps:o}){switch(e){case"vendor_row_separator":return t.jsx(Dn,{nestingLevel:o?.nestingLevel??0,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,noMarginForEntity:o?.noMarginForEntity??!0});case"end_row_separator":return t.jsx(ma,{"data-testid":y("end-row-separator",e),isScrolling:n});case"subtotal_row_separator":return t.jsx(Dn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,noMarginForEntity:o?.noMarginForEntity??!1})}}const No=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
- `,Mo=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
- `,Io=a.div`
314
- display: flex;
315
- flex: 1 0 auto;
316
- flex-direction: row;
317
- justify-content: flex-end;
318
- `,Wo=a.div`
319
- display: flex;
320
- flex-direction: row;
321
- justify-content: flex-start;
322
- `,Po=a(v)`
323
- user-select: none;
324
- min-width: ${H.balanceWidth};
325
- max-width: ${H.balanceWidth};
326
- text-align: right;
327
- margin-left: ${H.balanceLeftMargin};
328
- border: 1px solid transparent;
329
- color: ${e=>e.theme.colors.hero};
330
- cursor: ${e=>e.isClickable?"pointer":"default"};
331
- &:hover {
332
- color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
333
- }
334
- `,Sa=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
- `,Fo=a.div`
344
- display: flex;
345
- flex-direction: row;
346
- flex-shrink: 2;
347
- flex-grow: 1;
348
- align-items: center;
349
- height: ${e=>e.containerHeight}px;
350
- width: ${e=>H.titleWidth.valuePx(e.windowSize)};
351
- max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
352
- background-color: ${e=>e.bgColor?.hex()};
353
- ${({isSticky:e})=>e?T`
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
- `,zo=({balance:e,isOpen:n})=>{const o=n?e?.balance:e?.totalBalance;return t.jsx(Wo,{children:t.jsx(Po,{isClickable:!1,onClick:()=>null,children:q("0,0",o)})})},To=({total:e})=>t.jsx(Wo,{children:t.jsx(Po,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function Ca({isSticky:e,height:n,isScrolling:o,isLastNode:i,balances:r,total:l,vendor:c,backgroundColor:d,onEntityNameClick:g}){const u=I(),p=c?.name??"";return t.jsxs(No,{"data-testid":y("ap-aging-report-row-root-container",p),containerHeight:n,bgColor:d,windowSize:u,children:[t.jsxs(Mo,{"data-testid":y("ap-aging-report-row-container",p),style:{cursor:"default"},isClickable:!1,containerHeight:n-1,children:[t.jsxs(Fo,{onClick:()=>c?.id!=null?g?.(c.id):void 0,isSticky:e,windowSize:u,bgColor:d,containerHeight:n-1,children:[c?.logo!=null?t.jsx(Ht,{photoUrl:c.logo.toString(),styles:{width:H.nameLogoWidth.valuePx(u),height:H.nameLogoHeight.valuePx(u)}}):t.jsx(Kt,{name:p??"",size:s.sp4}),t.jsx(Sa,{children:p})]}),t.jsxs(Io,{"data-testid":y("ap-aging-report-row-balances-container",p),children:[r.map(h=>t.jsx(zo,{balance:h,isOpen:!0},h?.period)),t.jsx(To,{total:l})]})]}),t.jsx(Vo,{isScrolling:o,isLastNode:i})]})}function _a({treeNodeId:e,isSticky:n,height:o,isScrolling:i,isLastNode:r,isOpen:l,balances:c,total:d,totalWithChildren:g,nestedCustomer:u,metadata:p,backgroundColor:h,onEntityNameClick:x,onClick:f}){const w=I(),m=p,b=u?.customer.name??"",k=u!=null?u.id.length-1:0,C=u?.hasSiblings??!1,_=u!=null&&u.children.length!==0,$=_,B=$?"pointer":"default",A=u!=null&&u.isLeafCustomer;return t.jsxs(No,{"data-testid":y("ar-aging-report-row-root-container",e),containerHeight:o,bgColor:h,windowSize:w,children:[t.jsxs(Mo,{"data-testid":y("ar-aging-report-row-container",e),style:{cursor:B},isClickable:$,containerHeight:o-1,children:[t.jsx(Fo,{"data-testid":y("ar-aging-report-row-name-container",e),isSticky:n,windowSize:w,bgColor:h,containerHeight:o-1,children:t.jsx(Oo,{displayName:b,depth:k,isLastNode:r,hasChildren:_,hasSiblings:C,isLeaf:A,collapsed:!l,subAccountAnscestorMetadata:m.vendorOrCustomerAncestorMetadata,classAnscestorMetadata:[],noMarginForAccount:!0,onIconClick:()=>{f?.(e)},onNameClick:()=>u?.id[0]!=null?x?.(u.id[0]):void 0})}),t.jsxs(Io,{children:[c.map(P=>t.jsx(zo,{balance:P,isOpen:l},P?.period)),t.jsx(To,{total:l?d:g})]})]}),t.jsx(Vo,{isScrolling:i,subEntityProps:{nestingLevel:k,isSticky:n,noMarginForEntity:!0}})]})}function Vo({isScrolling:e,isLastNode:n=!1,subEntityProps:o}){return n?t.jsx(Mt,{isScrolling:e,kind:"end_row_separator",subEntityProps:o}):t.jsx(Mt,{isScrolling:e,kind:"vendor_row_separator",subEntityProps:o})}const va=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
- `,$a=a.div`
375
- display: flex;
376
- flex: 1 0 auto;
377
- flex-direction: row;
378
- justify-content: flex-end;
379
- `,Do=a.div`
380
- display: flex;
381
- max-height: ${s.sp8};
382
- min-height: ${s.sp8};
383
- min-width: ${H.balanceWidth};
384
- justify-content: center;
385
- align-items: center;
386
- background-color: ${e=>e.theme.colors.background};
387
- border: 1px solid ${e=>e.theme.colors.grey3};
388
- border-radius: ${s.sp2};
389
- margin-left: ${H.balanceLeftMargin};
390
- color: ${e=>e.theme.colors.primary};
391
- `,Go=a(v)`
392
- display: flex;
393
- user-select: none;
394
- flex-direction: row;
395
- justify-content: center;
396
- align-items: center;
397
- height: ${H.balanceHeight};
398
- max-width: ${H.balanceWidth};
399
- width: 138px;
400
- text-align: center;
401
- column-gap: ${s.sp1};
402
- color: ${e=>e.active===!0?e.theme.colors.primary:e.theme.colors.champion};
403
- `,La=a.div`
404
- max-height: ${s.sp8};
405
- min-height: ${s.sp8};
406
- display: flex;
407
- flex-direction: row;
408
- align-items: center;
409
- min-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
410
- color: ${e=>e.theme.colors.primary};
411
- background-color: ${e=>e.bgColor?.hex()};
412
- ${e=>e.isSticky?T`
413
- position: -webkit-sticky;
414
- position: sticky;
415
- top: ${s.sp0};
416
- left: ${s.sp0};
417
- `:""}
418
- `,Ba=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
- `,Eo=a.div`
425
- max-height: ${s.sp8};
426
- min-height: ${s.sp8};
427
- cursor: pointer;
428
- `,rn=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
- `,Ro=a.div``,Ho=a(yo)`
435
- width: 12px;
436
- height: 12px;
437
- cursor: pointer;
438
- color: ${e=>e.theme.colors.hero};
439
- `,an=a(Zt)`
440
- width: 12px;
441
- height: 12px;
442
- `,ln=a(qt)`
443
- width: 12px;
444
- height: 12px;
445
- `,Aa=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=e==="accounts_payable_aging"?"vendor":"customer",l=n===r?o:"ascending";return t.jsxs(Ba,{active:n===r,"data-testid":y("duration-row-vendor-title",e),children:[r==="vendor"?M.getLocalizedStrings().reports.aging.apAging.vendor:M.getLocalizedStrings().reports.aging.arAging.customer,t.jsx(rn,{selectedForSort:n===r,children:t.jsx(Ro,{"data-testid":y("duration-row-vendor-sort-icon",e),onClick:()=>{i?.(cn(o),r)},children:l==="ascending"?t.jsx(ln,{}):t.jsx(an,{})})}),t.jsx(ot,{controller:n===r,children:t.jsx(Ho,{"data-testid":y("duration-row-vendor-sort-cancel-icon",e),onClick:()=>Ko({onSortOrderChanged:i})})})]})},Ko=({onSortOrderChanged:e})=>{e?.("descending","total")},Oa=({agingPeriod:e,sortKey:n="vendor",sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n===e?o:"ascending";return t.jsx(Eo,{"data-testid":y("duration-row-tick-container",e),children:t.jsx(Do,{"data-testid":y("duration-row-tick-element-container",e),children:t.jsxs(Go,{active:n===e,"data-testid":y("duration-row-timeframe-tick",e),children:[M.getLocalizedStrings().reports.aging.duration[e],t.jsxs(rn,{selectedForSort:n===e,"data-testid":y("duration-row-sort-container",e),children:[t.jsx(Ro,{"data-testid":y("duration-row-sort-icon",e),onClick:()=>{i?.(cn(o),e)},children:r==="ascending"?t.jsx(ln,{}):t.jsx(an,{})}),t.jsx(ot,{controller:n===e,children:t.jsx(Ho,{"data-testid":y("duration-row-sort-cancel-icon",e),onClick:()=>Ko({onSortOrderChanged:i})})})]})]})})})},Yo=({reportId:e,sortKey:n,sortOrder:o="ascending",onSortOrderChanged:i})=>{const r=n==="total"?o:"ascending";return t.jsx(Eo,{"data-testid":y("duration-row-entity-total-tick-container",e),onClick:()=>{i?.(cn(o),"total")},children:t.jsx(Do,{"data-testid":y("duration-row-entity-total-tick-element-container",e),children:t.jsxs(Go,{active:n==="total","data-testid":y("duration-row-entity-total-timeframe-tick",e),children:[e==="accounts_payable_aging"?M.getLocalizedStrings().reports.aging.apAging.vendorTotalHeaderLabel:M.getLocalizedStrings().reports.aging.arAging.totalReceivable,t.jsx(rn,{selectedForSort:n==="total","data-testid":y("duration-row-entity-total-sort-container",e),children:r==="ascending"?t.jsx(ln,{}):t.jsx(an,{})})]})})})},Na=({reportId:e,agingPeriod:n,sortKey:o="vendor",sortOrder:i="ascending",onSortOrderChanged:r})=>n!=null?t.jsx(Oa,{sortKey:o,sortOrder:i,onSortOrderChanged:r,agingPeriod:n}):t.jsx(Yo,{reportId:e,sortKey:o,sortOrder:i,onSortOrderChanged:r});function Ma({reportId:e,isSticky:n,height:o,agingPeriods:i,sortKey:r,sortOrder:l,backgroundColor:c,onSortOrderChanged:d}){const g=I();return t.jsxs(va,{height:o,bgColor:c,"data-testid":y("duration-row-root-container",e),children:[t.jsx(La,{"data-testid":y("duration-row-placeholder-name",e),isSticky:n,windowSize:g,bgColor:c,children:t.jsx(Aa,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})}),t.jsxs($a,{children:[i.map(u=>t.jsx(Na,{reportId:e,agingPeriod:u,sortKey:r,sortOrder:l,onSortOrderChanged:d},u)),t.jsx(Yo,{reportId:e,sortKey:r,sortOrder:l,onSortOrderChanged:d})]})]})}const cn=e=>e==="ascending"?"descending":"ascending",Ia=[10,14,20,20,20],Wa=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
- `,Pa=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
- `,Fa=a.div`
461
- display: flex;
462
- flex: 1 0 auto;
463
- flex-direction: row;
464
- justify-content: flex-end;
465
- `,Uo=a.div`
466
- display: flex;
467
- flex-direction: row;
468
- justify-content: flex-start;
469
- `,qo=a(v)`
470
- user-select: none;
471
- min-width: ${H.balanceWidth};
472
- max-width: ${H.balanceWidth};
473
- text-align: right;
474
- margin-left: ${H.balanceLeftMargin};
475
- color: ${e=>e.theme.colors.primary};
476
- cursor: ${e=>e.isClickable?"pointer":"default"};
477
- `,za=a.div`
478
- display: flex;
479
- flex-direction: row;
480
- flex-shrink: 2;
481
- flex-grow: 1;
482
- align-items: center;
483
- height: ${e=>e.containerHeight-1}px;
484
- width: ${e=>H.titleWidth.valuePx(e.windowSize)};
485
- max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
486
- background-color: ${e=>e.bgColor?.hex()};
487
- ${({isSticky:e})=>e?T`
488
- position: sticky;
489
- top: ${s.sp0};
490
- left: ${s.sp0};
491
- `:null}
492
- `,Ta=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=>Ia[e.depth]}px;
501
- color: ${e=>e.theme.colors.primary};
502
- width: ${e=>H.titleWidth.value(e.windowSize)-e.depth*S[11]}px;
503
- `,Va=({balance:e})=>t.jsx(Uo,{children:t.jsx(qo,{isClickable:!1,onClick:()=>null,children:q("0,0",e?.totalBalance)})}),Da=({total:e})=>t.jsx(Uo,{children:t.jsx(qo,{isClickable:!1,onClick:()=>null,children:q("0,0",e)})});function Ga({backgroundColor:e,isSticky:n,height:o,noMarginForEntity:i,isScrolling:r,total:l,nestedCustomer:c,metadata:d}){const g=I(),{common:{strings:{empty:u}},reports:{sections:p}}=M.getLocalizedStrings(),h=c!=null?c.id.length-1:0,x=d,f=c?.customer.name??u;return t.jsxs(Wa,{"data-testid":"sub-customer-total-row-root-container",containerHeight:o,bgColor:e,children:[t.jsxs(Pa,{"data-testid":"sub-customer-total-row-container",children:[t.jsxs(za,{isSticky:n,windowSize:g,bgColor:e,containerHeight:o,children:[t.jsx(Ao,{ancestorMetadata:x.vendorOrCustomerAncestorMetadata,depth:h,name:f}),t.jsx(Ta,{isClickable:!1,title:f,depth:h,windowSize:g,children:p.totalPrefix+" "+f})]}),t.jsxs(Fa,{children:[c?.arAgingBalances.map((w,m)=>t.jsx(Va,{balance:w},m)),t.jsx(Da,{total:l})]})]}),t.jsx(Ea,{isScrolling:r,nestingLevel:h,isSticky:n,noMarginForEntity:i})]})}function Ea({isScrolling:e,nestingLevel:n,isSticky:o,noMarginForEntity:i}){return t.jsx(Mt,{isScrolling:e,kind:"subtotal_row_separator",subEntityProps:{nestingLevel:n,isSticky:o,noMarginForEntity:i}})}const re=e=>{switch(e){case"name+balances_actual":return!0;case"name+balances_forecast":case"name_only":return!1}},Pe=e=>{switch(e){case"name+balances_forecast":return!0;case"name+balances_actual":case"name_only":return!1}},Ra=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
- `,Ha=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
- `,Ka=a.div`
520
- display: flex;
521
- flex: 1 0 auto;
522
- flex-direction: row;
523
- justify-content: flex-end;
524
- `,Zo=a.div`
525
- display: flex;
526
- flex-direction: row;
527
- justify-content: flex-start;
528
- `,Jo=a(oe)`
529
- user-select: none;
530
- min-width: ${H.balanceWidth};
531
- max-width: ${H.balanceWidth};
532
- text-align: right;
533
- margin-left: ${H.balanceLeftMargin};
534
- color: ${e=>e.theme.colors.primary};
535
- border: 1px solid transparent;
536
- `,Ya=a.div`
537
- display: flex;
538
- flex-direction: row;
539
- flex-shrink: 2;
540
- flex-grow: 1;
541
- align-items: center;
542
- width: ${e=>H.titleWidth.valuePx(e.windowSize)};
543
- max-width: ${e=>H.titleWidth.valuePx(e.windowSize)};
544
- background-color: ${e=>e.bgColor?.hex()};
545
- ${({isSticky:e,isIndented:n})=>e&&n?T`
546
- position: -webkit-sticky;
547
- position: sticky;
548
- top: ${s.sp0};
549
- left: ${s.sp4};
550
- `:e&&!n?T`
551
- position: -webkit-sticky;
552
- position: sticky;
553
- top: ${s.sp0};
554
- left: ${s.sp0};
555
- `:null}
556
- `,Ua=a(oe)`
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
- `,qa=({type:e,balance:n})=>t.jsx(Zo,{children:re(e)===!0?t.jsx(Jo,{children:q("0,0",n?.balance)}):null}),Za=({type:e,balance:n})=>t.jsx(Zo,{children:re(e)===!0?t.jsx(Jo,{children:q("0,0",n)}):null});function Ja({type:e,isSticky:n,isIndented:o,height:i,title:r,totalBalances:l,backgroundColor:c}){const d=I(),g={amount:l.reduce((u,p)=>u+(p?.balance.amount??0),0),currencyCode:l[0]?.balance.currencyCode??Tn.currencyCode,currencySymbol:l[0]?.balance.currencySymbol??Tn.currencySymbol};return t.jsx(Ra,{"data-testid":y("total-row-root-container"),height:i,bgColor:c,windowSize:d,children:t.jsxs(Ha,{isClickable:!1,"data-testid":y("total-row-container"),children:[t.jsx(Ya,{bgColor:c,isSticky:n,windowSize:d,isIndented:o,children:t.jsx(Ua,{children:r})}),t.jsxs(Ka,{children:[l.map((u,p)=>t.jsx(qa,{type:e,balance:u},p)),t.jsx(Za,{type:e,balance:g})]})]})})}function at(e,n,o,i){switch(e){case"cogs":return Qa(o,i,n);case"expenses":return Xa(o,i,n);case"income":return el(o,i,n);case"cash_position":return tl(o,i,n);case"cash_in":return nl(o,i,n);case"cash_out":return ol(o,i,n);case"assets":return il(o,i,n);case"equity":return rl(o,i,n);case"liabilities":return al(o,i,n);case"other_expense":return ll(o,i,n);case"other_income":return cl(o,i,n);case"operating_activities":return sl(o,i,n);case"investing_activities":return dl(o,i,n);case"financing_activities":return hl(o,i,n);default:throw Error(`${e} is not yet supported!`)}}const Qa=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCogsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cogsInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},Xa=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithExpensesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.expensesInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},el=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithIncomeOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.incomeInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},tl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashPositionInTimeframe,i.compactedAccountsSelector=()=>R([],i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},nl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashInOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashInInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},ol=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithCashOutOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.cashOutInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},il=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithAssetsOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.assetsInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},rl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithEquityOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.equityInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},al=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithLiabilitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.liabilitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},ll=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherExpensesInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},cl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.otherIncomeInTimeframe,i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=()=>{},i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},sl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithOperatingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.operatingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},dl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithInvestingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.investingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i},hl=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountsSelector=r=>R(r.accountsWithFinancingActivitiesOrdered,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>R(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r.financingActivitiesInTimeframe,i.compactedAccountGroupsSelector=r=>ie(r,i.acGroupBalanceSelector,o,n),i};function R(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>Qo(n(i)?.balances??[]));case"filter_forecast_nil_balances":return e.filter(i=>Xo(n(i)?.balances??[]));case"filter_actual_forecast_nil_balances":return e.filter(i=>ei(n(i)?.balances??[]))}}function ie(e,n,o,i){switch(i){case"off":return e;case"filter_actual_nil_account_group_balances":return e.filter(r=>Qo(n(r)?.balances??[]));case"filter_forecast_nil_account_group_balances":return e.filter(r=>Xo(n(r)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return e.filter(r=>ei(n(r)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return e.filter(r=>(n(r)?.balances??[]).length>0)}}function Qo(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function Xo(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0){n=!0;break}}return n}function ei(e){let n=!1;if(e!=null){for(const o of e)if(o.forecast!=null&&o.forecast.amount!==0||o.balance!=null&&o.balance.amount!==0){n=!0;break}}return n}function ne(e,n="ascending_date",o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=ti([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}function Gn(e,n="ascending_date",o=-1,i=!0){const r=o!==-1,l=ne(e,n,o,i);if(e==null||e.balances.length===0)return l;const c=[...l.balances];if(e?.totalBalance!=null)c.push(e.totalBalance);else if(r&&e?.totalBalance==null){const d=ti([],1);c.push(...d)}return{balances:c,thisPeriodIndex:l.thisPeriodIndex}}function Be(e,n){if(n==="ascending_date")return e;{const o=[],i=[];for(const r of e)r.type==="default"?o.push(r):i.push(r);return[...o.reverse(),...i]}}function ti(e,n){return e.length>0?e:fo(Array(n),null)}const ul=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
- `,En=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
- `,gl=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 pl({kind:e,isScrolling:n}){switch(e){case"account_title_row_separator":return t.jsx(En,{marginLeft:S[5],isScrolling:n});case"account_balance_row_separator":return t.jsx(En,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(ul,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(gl,{isScrolling:n})}}const Ae={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,350,405)},xl=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
- `,ml=a.div`
597
- display: flex;
598
- flex: 1 0 auto;
599
- flex-direction: row;
600
- justify-content: flex-end;
601
- `,wl=a.div`
602
- display: flex;
603
- flex-direction: row;
604
- justify-content: flex-start;
605
- `,yl=a(v)`
606
- user-select: none;
607
- color: ${e=>e.theme.colors.hero};
608
- min-width: ${Ae.balanceWidth};
609
- max-width: ${Ae.balanceWidth};
610
- text-align: right;
611
- margin-left: ${Ae.balanceLeftMargin};
612
- `,bl=a.div`
613
- display: flex;
614
- flex-direction: row;
615
- flex-shrink: 2;
616
- flex-grow: 1;
617
- align-items: center;
618
- width: ${e=>Ae.titleWidth.valuePx(e.windowSize)};
619
- color: ${e=>e.theme.colors.hero};
620
- max-width: ${e=>Ae.titleWidth.valuePx(e.windowSize)};
621
- background-color: ${e=>e.bgColor?.hex()};
622
- ${({isSticky:e})=>e?T`
623
- position: -webkit-sticky;
624
- position: sticky;
625
- top: ${s.sp0};
626
- left: ${s.sp0};
627
- `:null}
628
- `,kl=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
- `,jl=({balance:e})=>t.jsx(wl,{children:t.jsx(yl,{children:J(e)})});function Sl({heading:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,totalBalances:l,isScrolling:c,isLastNode:d,onClick:g}){const u=I();return t.jsxs(xl,{"data-testid":y("calculated-section-type-1-root-container-row",i),height:r,bgColor:n,windowSize:u,children:[t.jsxs(fl,{"data-testid":y("calculated-section-type-1-container-row",i),onClick:()=>g?.(i),children:[t.jsx(bl,{"data-testid":y("calculated-section-type-1-total-container-row",i),bgColor:n,isSticky:o,windowSize:u,children:t.jsx(kl,{children:e})}),t.jsx(ml,{children:l.map((p,h)=>t.jsx(jl,{balance:p},h))})]}),t.jsx(Cl,{isScrolling:c,isLastNode:d})]})}function Cl({isScrolling:e,isLastNode:n}){return n===!0?t.jsx(pl,{isScrolling:e,kind:"heading_row_separator"}):null}const _l=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
- `,Ll=a.div`
658
- display: flex;
659
- flex-direction: row;
660
- justify-content: flex-start;
661
- `,qe=a(mo)`
662
- color: ${e=>e.theme.colors.champion};
663
- user-select: none;
664
- max-width: ${j.balanceWidth};
665
- min-width: ${j.balanceWidth};
666
- text-align: right;
667
- margin-left: ${j.balanceLeftMargin};
668
- `,Bl=a.div`
669
- display: flex;
670
- flex-direction: row;
671
- flex-shrink: 2;
672
- flex-grow: 1;
673
- align-items: center;
674
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
675
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
676
- background-color: ${e=>e.bgColor?.hex()};
677
- ${({isSticky:e})=>e?T`
678
- position: -webkit-sticky;
679
- position: sticky;
680
- top: ${s.sp0};
681
- left: ${s.sp0};
682
- `:null}
683
- `,Al=a(mo)`
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
- `,Ol=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(Ll,{"data-testid":y("heading-row-balance-element",e),children:[re(e)||o?t.jsx(qe,{"data-testid":y("heading-row-balance-actual",e),children:J(n)}):t.jsx(qe,{"data-testid":y("heading-row-balance-forecast",e),children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(qe,{"data-testid":y("heading-row-balance-forecast",e),children:Q(n)}),t.jsx(qe,{"data-testid":y("heading-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]});function Nl({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,heading:l,headingBalances:c,isActualVsForecastOn:d,compareMode:g,isLeaf:u,onClick:p}){const h=I();return t.jsx(_l,{height:r,bgColor:n,"data-testid":y("heading-row-root-container",i),children:t.jsxs(vl,{"data-testid":y("heading-row-container",i),isClickable:!u,onClick:()=>p?.(i),children:[ge(e)===!0?t.jsx(Bl,{"data-testid":y("heading-row-heading-container",i),isSticky:o,windowSize:h,bgColor:n,children:t.jsx(Al,{children:l})}):null,me(e)===!0?t.jsx($l,{"data-testid":y("heading-row-balances-container",i),children:c.map((x,f)=>t.jsx(Ol,{"data-testid":y("heading-row-balance-element",e),type:e,heading:l,balance:x,isActualVsForecastOn:d,compareMode:g},f))}):null]})})}const sn=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="title_string_only")return null;const x=ne(void 0,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Nl,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,heading:o.element.title,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,headingBalances:x.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:f=>{h?.(f)}})};function ni(e,n){return Ml(n)}const Ml=(e,n)=>{const o={compactedAccountsSelectorVariant:()=>[],acBalanceSelector:()=>{}};return o.acBalanceSelector=i=>i.balancesInTimeframe,o.compactedAccountsSelectorVariant=i=>function(r,l,c){switch(c){case"off":default:return r;case"filter_actual_nil_balances":return r.filter(d=>function(g){let u=!1;if(g!=null){for(const p of g)if(p.balance.amount!==0){u=!0;break}}return u}(l(d)?.balances??[]))}}(i,o.acBalanceSelector,e),o},Ze=[new G(S[4],56),new G(44,76),new G(69,102),new G(93,124),new G(113,143)],Rn=[new G(S[0],S[0]),new G(14,S[4]),new G(67,67),new G(102,102),new G(136,136)],Il=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
- `,Hn=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
- `,Wl=a.div`
704
- display: flex;
705
- flex: 1 1 auto;
706
- flex-flow: row;
707
- justify-content: flex-start;
708
- align-items: center;
709
- `,Pl=a.div`
710
- display: flex;
711
- flex-direction: row;
712
- flex-shrink: 2;
713
- flex-grow: 1;
714
- align-items: center;
715
- background-color: ${e=>e.theme.colors.grey4};
716
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
717
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
718
- ${({isSticky:e})=>e?T`
719
- position: -webkit-sticky;
720
- position: sticky;
721
- top: ${s.sp0};
722
- left: ${s.sp0};
723
- `:null}
724
- `,Fl=a.div`
725
- width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-S[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
726
- max-width: ${e=>e.noMarginForAccount?Ze[e.nestingLevel].value(e.windowSize)-S[5]:Ze[e.nestingLevel].value(e.windowSize)}px;
727
- height: 1px;
728
- `,zl=a.div`
729
- width: ${e=>Rn[e.classDepth].valuePx(e.windowSize)};
730
- max-width: ${e=>Rn[e.classDepth].valuePx(e.windowSize)};
731
- height: 1px;
732
- `,Tl=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
- `,Vl=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
- `,Dl=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
- `,Kn=e=>{const n=I(),o=le();return t.jsxs(Wl,{children:[t.jsxs(Pl,{windowSize:n,isSticky:e.isSticky,children:[e.classDepth!=null?t.jsx(zl,{classDepth:e.classDepth,windowSize:n}):null,t.jsx(Fl,{nestingLevel:e.nestingLevel,noMarginForAccount:e.noMarginForAccount,windowSize:n}),t.jsx(Tl,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]}),t.jsx(Vl,{isScrolling:e.isScrolling,colour:e.isTotal?o.colors.grey1:o.colors.grey3})]})};function we({kind:e,isScrolling:n,subAccountProps:o}){switch(e){case"account_title_row_separator":return t.jsx(Hn,{marginLeft:S[5],isScrolling:n});case"sub_account_balance_row_separator":return t.jsx(Kn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!1,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1});case"account_balance_row_separator":return t.jsx(Hn,{marginLeft:0,isScrolling:n});case"ac_group_row_separator":return t.jsx(Il,{isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(Dl,{isScrolling:n});case"total_row_separator":return t.jsx(Kn,{nestingLevel:o?.nestingLevel??1,isScrolling:n,isSticky:o?.isSticky??!1,isTotal:!0,classDepth:o?.classDepth,noMarginForAccount:o?.noMarginForAccount??!1})}}function oi({height:e,backgroundColor:n,title:o,numOfBalances:i=6}){let r=null;const l=I()!=="small";switch(o!=null?o.split("+")[1]:""){case"section-row":r=t.jsx(Gl,{columns:i,isSticky:l});break;case"root-class-row":r=t.jsx(El,{columns:i,isSticky:l});break;case"sub-class-row":r=t.jsx(Rl,{columns:i,isSticky:l});break;case"leaf-class-row":r=t.jsxs(t.Fragment,{children:[t.jsx(Hl,{columns:i,isSticky:l}),t.jsx(we,{isScrolling:!1,kind:"sub_account_balance_row_separator",subAccountProps:{isSticky:!0,nestingLevel:0,noMarginForAccount:!1}})]})}return t.jsx(Yl,{height:e,bgColor:n,children:r})}const Gl=({columns:e,isSticky:n})=>t.jsxs(Ce,{children:[t.jsxs(gt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:S[4],height:S[4]}),t.jsx(K,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(ut,{columns:e,rectangleWidth:j.loadingBalanceWidthInPx})]}),El=({columns:e,isSticky:n})=>t.jsxs(Ce,{children:[t.jsxs(gt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:[t.jsx(ze,{width:S[4],height:S[4]}),t.jsx(K,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx})]}),t.jsx(ut,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Rl=({columns:e,isSticky:n})=>t.jsxs(Ce,{children:[t.jsx(gt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsxs(Ce,{style:{marginLeft:"36px"},children:[t.jsx(ze,{width:S[4],height:S[4]}),t.jsx(K,{width:j.loadingInProgressLargeStickyColumnWidth,height:j.balanceHeightInPx,style:{marginLeft:S[4]}})]})}),t.jsx(ut,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Hl=({columns:e,isSticky:n})=>t.jsxs(Ce,{children:[t.jsx(gt,{isSticky:n,width:j.loadingInProgressStickySectionWidth,className:"account-title",children:t.jsx(Ce,{style:{marginLeft:"84px"},children:t.jsx(K,{width:j.loadingInProgressSmallStickyColumnWidth,height:j.balanceHeightInPx})})}),t.jsx(ut,{columns:e,rectangleWidth:j.smallLoadingBalanceWidthInPx})]}),Kl=({rectangleWidth:e})=>t.jsx(ii,{width:j.balanceWidthInPx,children:t.jsx(K,{width:e,height:j.balanceHeightInPx})}),ut=({columns:e,rectangleWidth:n})=>t.jsx(Ul,{style:{zIndex:9,width:j.loadingInProgressScrollableSectionWidth},children:Array.from({length:e}).map((o,i)=>t.jsx(Kl,{rectangleWidth:n},i))}),Yl=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
- `,Ce=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
- `,Ul=a.div`
766
- display: flex;
767
- flex: 1 0 auto;
768
- flex-direction: row;
769
- justify-content: flex-end;
770
- `,ii=a.div`
771
- display: flex;
772
- flex-direction: row;
773
- align-items: center;
774
- min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
775
- margin-right: ${j.balanceLeftMargin};
776
- gap: ${j.balanceLeftMargin};
777
- justify-content: flex-end;
778
- `,gt=a(ii)`
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 ri({height:e,numOfBalances:n,backgroundColor:o}){const i=I();return t.jsx(ql,{height:e,bgColor:o,children:t.jsxs(Zl,{windowSize:i,children:[t.jsx(Jl,{windowSize:i,width:`${j.loadingInProgressStickySectionWidth}px`,marginRight:0}),t.jsx(Ql,{children:Array.from({length:n},(r,l)=>t.jsx(ai,{windowSize:i,width:j.balanceWidth,children:t.jsx(K,{width:j.balanceWidthInPx,height:S[6]})},`timeframe-balance-${l}`))})]})})}const ql=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
- `,Zl=a.div`
794
- display: flex;
795
- flex-direction: row;
796
- width: 100%;
797
- `,ai=a.div`
798
- display: flex;
799
- flex-direction: row;
800
- align-items: center;
801
- margin-right: ${e=>e.marginRight!=null?`${e.marginRight}px`:s.sp4};
802
- min-width: ${e=>typeof e.width=="string"?e.width:`${e.width}px`};
803
- color: ${e=>e.theme.colors.primary};
804
- background-color: ${e=>e.theme.colors.grey4};
805
- justify-content: flex-end;
806
- :first-of-type {
807
- justify-content: flex-start;
808
- }
809
- margin-right: ${j.balanceLeftMargin};
810
- `,Jl=a(ai)`
811
- position: sticky;
812
- left: ${s.sp0};
813
- z-index: 10;
814
- background-color: ${e=>e.theme.colors.grey4};
815
- `,Ql=a.div`
816
- display: flex;
817
- flex-direction: row;
818
- width: calc(100% - ${j.loadingInProgressStickySectionWidth}px);
819
- justify-content: flex-end;
820
- flex: 1 0 auto;
821
- `,Xl=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
- `,ec=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 dn({kind:e,isScrolling:n}){switch(e){case"ac_group_row_separator":return t.jsx(Xl,{"data-testid":y("ac-group-row-separator",e),isScrolling:n});case"section_row_separator":case"heading_row_separator":return t.jsx(ec,{"data-testid":y("section-row-separator",e),isScrolling:n})}}const E={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,350,405)},tc=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
- `,nc=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
- `,oc=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
- `,ic=a.div`
856
- display: flex;
857
- flex-direction: row;
858
- justify-content: flex-start;
859
- `,It=a(v)`
860
- user-select: none;
861
- min-width: ${E.balanceWidth};
862
- max-width: ${E.balanceWidth};
863
- text-align: right;
864
- margin-left: ${E.balanceLeftMargin};
865
- `,rc=a(It)`
866
- color: ${e=>e.theme.colors.hero};
867
- &:hover {
868
- color: inherit;
869
- }
870
- `,ac=a.div`
871
- display: flex;
872
- flex-direction: row;
873
- flex-shrink: 2;
874
- flex-grow: 1;
875
- align-items: center;
876
- width: ${e=>E.titleWidth.valuePx(e.windowSize)};
877
- max-width: ${e=>E.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?T`
881
- position: -webkit-sticky;
882
- position: sticky;
883
- top: ${s.sp0};
884
- left: ${s.sp0};
885
- `:null}
886
- `,lc=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
- `,cc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?rc:It;return t.jsxs(ic,{"data-testid":y("account-group-row-balance-element",e),children:[t.jsx(r,{"data-testid":y("account-group-row-balance-actual",e),children:J(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(r,{"data-testid":y("account-group-row-balance-forecast",e),children:Q(n)}),t.jsx(It,{"data-testid":y("account-group-row-balance-actual-vs-forecast",e),children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function sc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountGroupName:l,accountGroupBalances:c,compareMode:d,isScrolling:g,isOpen:u,isLeaf:p,isLastNode:h,onClick:x}){const f=I(),w=!p,m=w?"pointer":"default",b=l.length>0?l.substr(0,1).toUpperCase():"",k=hc(c),C=le().colors.primary,[_,$]=z.useState(!1);return t.jsxs(tc,{"data-testid":y("account-group-row-root-container",e),height:r,bgColor:n,windowSize:f,children:[t.jsxs(nc,{"data-testid":y("account-group-row-container",e),style:{cursor:m},isClickable:w,onClick:()=>x?.(i),onMouseOver:()=>$(!0),onMouseLeave:()=>$(!1),children:[t.jsxs(ac,{"data-testid":y("account-group-row-name-container",e),bgColor:n,isSticky:o,windowSize:f,hasNonZeroBalance:k,children:[t.jsx(ke,{"data-testid":y("account-group-row-circle-with-letter",e),color:O(C),showCollapsedIcon:!u,showIcon:w&&_,firstLetter:b}),t.jsx(lc,{"data-testid":y("account-group-row-name",e),children:l})]}),t.jsx(oc,{"data-testid":y("account-group-row-balances-container",e),hasNonZeroBalance:k,children:c.map((B,A)=>t.jsx(cc,{"data-testid":y("account-group-row-balance-element",e),type:e,accountGroupName:l,balance:B,compareMode:d,collapsed:!1},A))})]}),t.jsx(dc,{isScrolling:g,isLeaf:p,isLastNode:h,isOpen:u})]})}function dc({isScrolling:e,isLeaf:n,isLastNode:o,isOpen:i}){return!n&&i&&o?null:t.jsx(dn,{isScrolling:e,kind:"ac_group_row_separator"})}const hc=e=>{let n=!1;if(e!=null){for(const o of e)if(o!=null&&o.balance.amount!==0){n=!0;break}}return n},uc=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
- `,gc=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
- `,pc=a.div`
914
- display: flex;
915
- flex: 1 0 auto;
916
- flex-direction: row;
917
- justify-content: flex-end;
918
- `,xc=a.div`
919
- display: flex;
920
- flex-direction: row;
921
- justify-content: flex-start;
922
- `,Lt=a(v)`
923
- user-select: none;
924
- min-width: ${E.balanceWidth};
925
- max-width: ${E.balanceWidth};
926
- text-align: right;
927
- margin-left: ${E.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
- `,fc=a.div`
934
- display: flex;
935
- flex-direction: row;
936
- flex-shrink: 2;
937
- flex-grow: 1;
938
- align-items: center;
939
- width: ${e=>E.titleWidth.valuePx(e.windowSize)};
940
- max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
941
- background-color: ${e=>e.bgColor?.hex()};
942
- ${({isSticky:e})=>e?T`
943
- position: -webkit-sticky;
944
- position: sticky;
945
- top: ${s.sp0};
946
- left: ${s.sp0};
947
- `:null}
948
- `,mc=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
- `,wc=({type:e,balance:n,account:o,onAccountBalanceClick:i,compareMode:r})=>{const l=o!=null&&n!=null&&i!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(xc,{children:[t.jsx(Lt,{isClickable:l,onClick:()=>{l===!0&&o!=null&&n!=null&&i?.(o,n)},children:J(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Lt,{isClickable:!1,children:Q(n)}),t.jsx(Lt,{isClickable:!1,children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function yc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isCompareModeOn:c,isForecastModeOn:d,isScrolling:g,isLeaf:u,isLastNode:p,compareMode:h,account:x,onAccountBalanceClick:f}){const w=I(),{common:{strings:{empty:m}}}=M.getLocalizedStrings(),b=x?.accountDescription?x.accountDescription:m,k=x?.accountName?x.accountName:b,C=go(),_=C.loggedInUserRole!=null&&!ko(C.loggedInUserRole),$=_===!0&&x!=null&&c!==!0&&f!=null&&d!==!0,B=$?"pointer":"default";return t.jsxs(uc,{height:r,bgColor:n,windowSize:w,children:[t.jsxs(gc,{style:{cursor:B},isClickable:$,onClick:()=>{return x!=null?(A=i,P=x,void($===!0&&l[l.length-1]!=null&&f?.(A,P,l[l.length-1]))):null;var A,P},children:[t.jsx(fc,{isSticky:o,windowSize:w,bgColor:n,children:t.jsx(mc,{title:k,children:k})}),t.jsx(pc,{children:l.map((A,P)=>t.jsx(wc,{type:e,balance:A,account:x,onAccountBalanceClick:_===!1||f==null?void 0:(V,D)=>{f(i,V,D)},compareMode:h},P))})]}),t.jsx(bc,{isScrolling:g,isLeaf:u,isLastNode:p})]})}function bc({isScrolling:e,isLeaf:n,isLastNode:o}){return n||!o?t.jsx(dn,{isScrolling:e,kind:"ac_group_row_separator"}):null}const kc=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
- `,jc=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
- `,Sc=a.div`
974
- display: flex;
975
- flex: 1 0 auto;
976
- flex-direction: row;
977
- justify-content: flex-end;
978
- `,Yn=a.div`
979
- display: flex;
980
- flex-direction: row;
981
- justify-content: flex-start;
982
- `,_e=a(v)`
983
- user-select: none;
984
- max-width: ${E.balanceWidth};
985
- min-width: ${E.balanceWidth};
986
- text-align: right;
987
- margin-left: ${E.balanceLeftMargin};
988
- `,Un=a(v)`
989
- user-select: none;
990
- max-width: ${E.balanceWidth};
991
- min-width: ${E.balanceWidth};
992
- text-align: right;
993
- margin-left: ${E.balanceLeftMargin};
994
- `,Cc=a.div`
995
- display: flex;
996
- flex-direction: column;
997
- align-items: flex-end;
998
- `,_c=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=>E.titleWidth.valuePx(e.windowSize)};
1006
- max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
1007
- background-color: ${e=>e.bgColor?.hex()};
1008
- ${({isSticky:e})=>e?T`
1009
- position: -webkit-sticky;
1010
- position: sticky;
1011
- top: ${s.sp0};
1012
- left: ${s.sp0};
1013
- `:null}
1014
- `,vc=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
- `,$c=({type:e,balance:n,color:o,compareMode:i})=>{const r=n!=null&&n.type==="default_with_percent"&&n.percentValue!=null?n.percentValue:0,l=n!=null&&n.type==="default_with_percent"&&n.forecastPercentValue!=null?n.forecastPercentValue:0;return t.jsxs(Cc,{children:[t.jsxs(Yn,{children:[t.jsx(_e,{style:{color:o.toString()},children:J(n)}),Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(_e,{style:{color:o.toString()},children:Q(n)}),t.jsx(_e,{style:{color:o.toString()},children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]}),t.jsxs(Yn,{children:[r!==0?t.jsx(Un,{style:{color:o.toString()},children:xe("0,0%",r)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[l!==0?t.jsx(Un,{style:{color:o.toString()},children:xe("0,0%",l)}):t.jsx(_e,{}),t.jsx(_e,{})]}):null]})]})};function hn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,sectionColor:d,isScrolling:g,isOpen:u,isLeaf:p,compareMode:h,onClick:x}){const f=I(),[w,m]=z.useState(!1),b=!p,k=b?"pointer":"default",C=l.length>0?l.substring(0,1).toUpperCase():"";return t.jsxs(kc,{"data-testid":y("section-row-root-container",i),rootHeight:r,bgColor:n,windowSize:f,children:[t.jsxs(jc,{"data-testid":y("section-row-container",i),style:{cursor:k},onClick:()=>x?.(i),onMouseOver:()=>m(!0),onMouseLeave:()=>m(!1),children:[t.jsxs(_c,{"data-testid":y("section-row-name-container",i),isSticky:o,windowSize:f,bgColor:n,children:[t.jsx(ke,{"data-testid":y("section-row-circle-with-letter",i),color:O(d),showCollapsedIcon:!u,showIcon:b&&w,firstLetter:C}),t.jsx(vc,{"data-testid":y("section-row-name",i),style:{color:d.toString()},children:l})]}),t.jsx(Sc,{"data-testid":y("section-row-balances-container",i),children:c.map((_,$)=>t.jsx($c,{"data-testid":y("section-row-balance-element",e),type:e,sectionName:l,balance:_,color:d,compareMode:h},$))})]}),t.jsx(Lc,{isScrolling:g,isLeaf:p,isOpen:u})]})}function Lc({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(dn,{isScrolling:e,kind:"section_row_separator"}):null}const Bc=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
- `,Ac=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
- `,Oc=a.div`
1040
- display: flex;
1041
- flex: 1 0 auto;
1042
- flex-direction: row;
1043
- justify-content: flex-end;
1044
- `,Nc=a.div`
1045
- display: flex;
1046
- flex-direction: row;
1047
- justify-content: flex-start;
1048
- `,li=a(v)`
1049
- user-select: none;
1050
- min-width: ${E.balanceWidth};
1051
- max-width: ${E.balanceWidth};
1052
- text-align: right;
1053
- margin-left: ${E.balanceLeftMargin};
1054
- color: ${e=>e.theme.colors.brandColorJadeDark};
1055
- `,Mc=a(li)`
1056
- color: ${e=>e.theme.colors.hero};
1057
- &:hover {
1058
- color: inherit;
1059
- }
1060
- `,Ic=a.div`
1061
- display: flex;
1062
- flex-direction: row;
1063
- flex-shrink: 2;
1064
- flex-grow: 1;
1065
- align-items: center;
1066
- width: ${e=>E.titleWidth.valuePx(e.windowSize)};
1067
- max-width: ${e=>E.titleWidth.valuePx(e.windowSize)};
1068
- background-color: ${e=>e.bgColor?.hex()};
1069
- ${({isSticky:e})=>e?T`
1070
- position: -webkit-sticky;
1071
- position: sticky;
1072
- top: ${s.sp0};
1073
- left: ${s.sp0};
1074
- `:null}
1075
- `,Wc=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
- `,Bt=a(v)`
1085
- user-select: none;
1086
- min-width: ${E.balanceWidth};
1087
- max-width: ${E.balanceWidth};
1088
- text-align: right;
1089
- margin-left: ${E.balanceLeftMargin};
1090
- color: ${e=>e.theme.colors.brandColorJadeDark};
1091
- `,Pc=({type:e,balance:n,collapsed:o,compareMode:i})=>{const r=o===!0?Mc:li;return t.jsxs(Nc,{children:[re(e)===!0?t.jsx(r,{children:J(n)}):null,Pe(e)?t.jsxs(t.Fragment,{children:[t.jsx(Bt,{children:J(n)}),t.jsx(Bt,{children:Q(n)}),t.jsx(Bt,{children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Fc({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isLeaf:d,compareMode:g,onClick:u}){const p=I(),h=!d,x=h?"pointer":"default";return t.jsx(Bc,{height:r,bgColor:n,windowSize:p,children:t.jsxs(Ac,{style:{cursor:x},isClickable:h,onClick:()=>u?.(i),children:[t.jsx(Ic,{bgColor:n,isSticky:o,windowSize:p,children:t.jsx(Wc,{children:l})}),t.jsx(Oc,{children:c.map((f,w)=>t.jsx(Pc,{type:e,balance:f,collapsed:!1,compareMode:g},w))})]})})}const je={net_burn_or_income:{income:{color:new O(N.graphColor04),hoverColor:new O(N.graphColor04Dark)},cogs:{color:new O(N.graphColor10),hoverColor:new O(N.graphColor10Dark)},expenses:{color:new O(N.graphColor32),hoverColor:new O(N.graphColor32Dark)},"Gross Burn":{color:new O(te.neutralGrey2Dark),hoverColor:new O(te.neutralGrey2Dark)},"Net Burn":{color:new O(N.graphColor13),hoverColor:new O(N.graphColor13Dark)},"Net Income":{color:new O(N.graphColor13),hoverColor:new O(N.graphColor13Dark)}},revenue:{income:{color:new O(N.graphColor28),hoverColor:new O(N.graphColor28Dark)},cogs:{color:new O(N.graphColor17),hoverColor:new O(N.graphColor17Dark)},"Gross Margin":{color:new O(N.graphColor10),hoverColor:new O(N.graphColor10Dark)}},cash_in_cash_out:{cash_in:{color:new O(N.graphColor33),hoverColor:new O(N.graphColor33Dark)},cash_out:{color:new O(N.graphColor02),hoverColor:new O(N.graphColor02Dark)},"Net Cash Flow":{color:new O(N.graphColor35),hoverColor:new O(N.graphColor35Dark)}},default:{color:new O(te.neutralGrey2Dark),hoverColor:new O(te.neutralGrey2Dark)}},un=(e,n)=>e.startsWith("net_burn_or_income")===!0?n!=null?je.net_burn_or_income[n]:je.default:e.startsWith("revenue")===!0?n!=null?je.revenue[n]:je.default:e.startsWith("cash_in_cash_out")===!0&&n!=null?je.cash_in_cash_out[n]:je.default,ci=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=un(o.config.reportId,o.element.sectionType),f=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(hn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionColor:x.color,sectionName:o.element.title,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,compareMode:p,onClick:w=>{h?.(w)}})},si=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=un(o.config.reportId,o.element.title),f=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(hn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x.color,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,compareMode:p,onClick:w=>{h?.(w)}})},di=(e,n,o,i,r,l,c,d)=>{if((o.config.isZeniCOAInUse==null||o.config.isZeniCOAInUse===!0)&&o.config.mode!=="this_period_vs_period_before")return null;const g=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(Fc,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,title:o.element.title,height:i,isLeaf:d,compareMode:c,totalBalances:g.balances})},qg=20,zc=e=>{const n=[];return e&&Object.values(e).forEach(o=>{n.push(o)}),n.reverse()},Tc=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
- `,Vc=a.div`
1097
- display: flex;
1098
- height: 1px;
1099
- background-color: ${e=>e.isScrolling?"transparent":e.theme.colors.hero};
1100
- `;function Wt({kind:e,isScrolling:n}){switch(e){case"account_class_row_separator":return t.jsx(Tc,{isScrolling:n});case"section_row_separator":case"vendor_separator":return t.jsx(Vc,{isScrolling:n});case"heading_row_separator":return null}}const Dc=a.div`
1101
- position: relative;
1102
- `,Gc=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 Ec=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
- `,Rc=a.div`
1120
- height: ${s.sp6};
1121
- border-left: 1px solid ${e=>e.theme.colors.grey1};
1122
- width: 1px;
1123
- `,Hc=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
- `,Kc=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
- `,hi=({height:e})=>t.jsx(Dc,{children:t.jsx(Gc,{height:e})}),Yc=({height:e})=>t.jsx(Hc,{height:e,children:t.jsx(Kc,{height:e})}),Uc=()=>t.jsx(Ec,{children:t.jsx(Rc,{})}),qc=s.sp4,ui="126px",ue="128px",pt="12px",xt="12px",lt="685px",gn="628px",qn="685px",Zc="182px",ct="184px",ye="144px",st="12px",Zn="685px",gi="250px",dt="250px",Jc=39,Qc=19.5,Xc=16,Oe=128,Jn=168,Ne="180px",Qn="300px",pi="210px",es="128px";function xi(e,n=!1){switch(e){case"section":case"flux_vendor_row":case"timeframe_headers":case"total":case"loading_in_progress":case"headers_loading_in_progress":return S[8];case"flux_vendor_account_class_row":return n?S[9]:S[6];default:return 0}}const Xn=M.getLocalizedStrings(),ts=a.div`
1139
- display: flex;
1140
- flex-shrink: 0;
1141
- width: ${ct};
1142
- min-width: ${ct};
1143
- margin-left: 12px;
1144
- gap: ${s.sp1};
1145
- flex-direction: row;
1146
- justify-content: flex-end;
1147
- text-align: center;
1148
- `,ns=a.div`
1149
- height: ${s.sp4};
1150
- border-radius: ${s.sp1};
1151
- padding: 2px ${s.sp1};
1152
- color: ${e=>e.textColor.hex()};
1153
- `,os=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
- `,ft=({amount:e,percentage:n,currency:o})=>{const i=le();return t.jsxs(ts,{children:[t.jsx(ns,{textColor:new O(e>0?i.colors.brandColorGoldDark:i.colors.success),children:q("0,0",hr(Math.abs(e),o.currencyCode,o.currencySymbol))}),t.jsx(os,{textColor:new O(e>0?i.colors.brandColorGoldDark:i.colors.success),bgColor:new O(e>0?te.brandColorGoldLight:te.successLight),children:`${Xi(Math.abs(n)).format(Xn.common.numberFormat.roundedOff)}${Xn.common.strings.percentage}`})]})},eo=M.getLocalizedStrings(),is=a.div`
1162
- display: flex;
1163
- flex: 1 1 auto;
1164
- width: fit-content;
1165
- min-width: 100%;
1166
- flex-direction: column;
1167
- `,rs=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
- `,fi=a.div`
1179
- display: flex;
1180
- flex-direction: column;
1181
- `,mi=a.div`
1182
- display: flex;
1183
- height: ${s.sp4};
1184
- `,as=a.div`
1185
- display: flex;
1186
- flex-direction: row;
1187
- justify-content: flex-start;
1188
- `,ls=a(v)`
1189
- min-width: ${ue};
1190
- max-width: ${ue};
1191
- text-align: right;
1192
- margin-left: 12px;
1193
- `,cs=a.div`
1194
- display: flex;
1195
- flex-direction: column;
1196
- flex-shrink: 2;
1197
- flex-grow: 1;
1198
- align-items: center;
1199
- width: ${Zn};
1200
- max-width: ${Zn};
1201
- padding-left: 67.5px;
1202
- ${({isSticky:e})=>e?T`
1203
- position: sticky;
1204
- top: ${s.sp0};
1205
- left: ${s.sp0};
1206
- display: flex;
1207
- `:null}
1208
- `,ss=a.div`
1209
- display: flex;
1210
- height: ${s.sp4};
1211
- width: 100%;
1212
- `,ds=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
- `,hs=a(be)`
1220
- display: flex;
1221
- width: ${gi};
1222
- margin-left: ${s.sp3};
1223
- color: ${e=>e.theme.colors.hero};
1224
- `,us=a(be)`
1225
- display: flex;
1226
- width: ${gi};
1227
- margin-left: ${s.sp4};
1228
- color: ${e=>e.theme.colors.hero};
1229
- `,gs=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: ${dt};
1238
- max-width: ${dt};
1239
- `,ps=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: ${dt};
1249
- max-width: ${dt};
1250
- `,xs=a.div`
1251
- display: flex;
1252
- margin-left: ${s.sp7};
1253
- margin-right: calc(
1254
- ${ye} +
1255
- ${xt}
1256
- );
1257
- `,fs=a.div`
1258
- position: sticky;
1259
- left: 0;
1260
- background-color: ${e=>e.theme.colors.grey4};
1261
- display: flex;
1262
- `,ms=a.div`
1263
- overflow-x: auto;
1264
- display: flex;
1265
- flex: 1;
1266
- justify-content: flex-end;
1267
- `,ws=({isBalanceRowFirstNode:e=!1,balance:n})=>{const o=n!=null;return t.jsxs(fi,{children:[e?t.jsx(mi,{}):null,t.jsx(as,{children:t.jsx(ls,{isClickable:o,children:J(n)})})]})};function ys({varianceAmount:e,variancePercentage:n,currency:o,isSticky:i,balances:r,isScrolling:l,nodeMetadata:c,isLeaf:d,isLastNode:g,accountAndClass:u,isHoveredByParent:p}){const{common:{strings:{hyphen:h}}}=M.getLocalizedStrings(),x=u.accountBase?.accountDescription?u.accountBase?.accountDescription:h,f=u.accountBase?.accountName?u.accountBase?.accountName:x,w=u.classBase?.className?u.classBase?.className:h,m=c?.accountAndClassRowMetadata.isLastNode;return t.jsxs(is,{children:[t.jsxs(rs,{style:{cursor:"default"},isHoveredByParent:p,children:[t.jsx(fs,{children:t.jsxs(cs,{className:"flux-class-and-account-value-container",isSticky:i,children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsxs(ss,{children:[t.jsx(hi,{height:Jc}),t.jsx(hs,{children:eo.common.texts.category}),t.jsx(us,{children:eo.common.texts.class})]}),t.jsxs(ds,{children:[m===!0?t.jsx(Yc,{height:Qc}):t.jsx(Uc,{}),t.jsx(gs,{title:f,children:f}),t.jsx(ps,{title:w,children:w})]})]})}),t.jsx(ms,{children:t.jsxs(xs,{children:[r.map((b,k)=>t.jsx(ws,{balance:b,isBalanceRowFirstNode:c?.accountAndClassRowMetadata.isFirstNode},k)),t.jsxs(fi,{children:[!!c?.accountAndClassRowMetadata.isFirstNode&&t.jsx(mi,{}),t.jsx(ft,{amount:e,percentage:n,currency:o})]})]})})]}),t.jsx(bs,{isScrolling:l,isLeaf:d,isLastNode:g,isParentLastChild:c?.isVendorLastChild??!0})]})}function bs({isScrolling:e,isLastNode:n,isParentLastChild:o}){return n&&o?t.jsx(Wt,{isScrolling:e,kind:"vendor_separator"}):n?t.jsx(Wt,{isScrolling:e,kind:"account_class_row_separator"}):null}function ks(){return t.jsxs(js,{children:[t.jsxs(Cs,{children:[t.jsxs(Se,{width:Qn,className:"vendor-title",children:[t.jsx(ze,{width:S[4],height:S[4]}),t.jsx(K,{width:Jn,height:S[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})]}),t.jsx(Se,{width:Qn,children:t.jsx(K,{width:Jn,height:S[4],style:{display:"flex",alignItems:"baseline",marginLeft:s.sp2}})})]}),t.jsxs(Ss,{children:[t.jsx(Se,{width:Ne,children:t.jsx(K,{width:Oe,height:S[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(Se,{width:Ne,children:t.jsx(K,{width:Oe,height:S[4],style:{display:"flex",alignItems:"flex-start"}})}),t.jsxs(Se,{width:pi,children:[t.jsx(K,{width:Oe,height:S[4],style:{display:"flex",alignItems:"center"}}),t.jsx(K,{width:S[7],height:S[4],style:{display:"flex",alignItems:"flex-start",marginLeft:s.sp1}})]}),t.jsx(Se,{width:Ne,children:t.jsx(K,{width:70,height:S[4],style:{display:"flex",alignItems:"center",justifyContent:"center"}})})]})]})}const js=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
- `,Se=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
- `,Ss=a.div`
1288
- display: flex;
1289
- `,Cs=a.div`
1290
- display: flex;
1291
- width: ${gn};
1292
- position: sticky;
1293
- left: ${s.sp8};
1294
- top: 0;
1295
- z-index: 10;
1296
- `,_s=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
- `,vs=a.div`
1305
- display: flex;
1306
- flex: 1 1 auto;
1307
- flex-flow: row;
1308
- justify-content: flex-start;
1309
- align-items: center;
1310
- `,$s=a.div`
1311
- display: flex;
1312
- flex-direction: row;
1313
- justify-content: flex-start;
1314
- `,Ls=a(v)`
1315
- max-width: ${ue};
1316
- min-width: ${ue};
1317
- text-align: right;
1318
- margin-left: ${pt};
1319
- color: ${({color:e})=>e};
1320
- `,Bs=a.div`
1321
- display: flex;
1322
- flex-direction: row;
1323
- flex-shrink: 2;
1324
- align-items: center;
1325
- height: 100%;
1326
- width: ${qn};
1327
- min-width: ${qn};
1328
- background-color: ${e=>e.bgColor?.hex()};
1329
- ${({isSticky:e})=>e&&T`
1330
- position: sticky;
1331
- top: ${s.sp0};
1332
- left: ${s.sp0};
1333
- `}
1334
- `,As=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
- `,Os=a(Yt)`
1344
- color: ${e=>e.theme.colors.primary};
1345
- width: ${s.sp3};
1346
- height: ${s.sp3};
1347
- `,Ns=a.div`
1348
- display: flex;
1349
- &:hover {
1350
- .flux-section-checkbox {
1351
- background-color: transparent;
1352
- }
1353
- }
1354
- `,Ms=a.div`
1355
- display: flex;
1356
- width: ${s.sp8};
1357
- `,Is=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
- ${ye} +
1364
- ${xt}
1365
- );
1366
- `,Ws=({balance:e,color:n})=>t.jsx($s,{children:t.jsx(Ls,{color:n,children:J(e)})}),Ps=cr.memo(function({currency:e,sectionId:n,selectedSectionsIds:o,backgroundColor:i,isSticky:r,treeNodeId:l,height:c,sectionName:d,hasVendors:g,sectionBalances:u,varianceAmount:p,variancePercentage:h,sectionColor:x,isScrolling:f,isOpen:w,isLeaf:m,idsForReview:b,sectionToggled:k,onSectionCheckboxClick:C}){const _=I(),[$,B]=z.useState(b.length>0),[A,P]=z.useState(!1),V=o.includes(n),D=!m,Y=b.length===20&&!V,X=d?.[0]?.toUpperCase()??"",ee=z.useCallback(Z=>{C?.(n,Z.target.checked)},[n,C]);return t.jsxs(_s,{heightValue:c,bgColor:i,children:[t.jsxs(vs,{style:{cursor:D?"pointer":"default"},onClick:()=>k?.(l),onMouseOver:()=>{P(!0),B(!0)},onMouseLeave:()=>{P(!1),b.length===0&&B(!1)},children:[t.jsxs(Bs,{className:"flux-section-name-container",isSticky:r,windowSize:_,bgColor:i,children:[g&&$&&w?t.jsx(Ns,{children:t.jsx(Et,{"aria-label":`Toggle section ${d}`,className:"flux-section-checkbox",icon:t.jsx(Rt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Os,{}),checked:V,id:l,disabled:Y,onChange:ee,onClick:Z=>Z.stopPropagation(),style:{padding:"20px",pointerEvents:Y?"none":"auto"}})}):t.jsx(Ms,{}),t.jsx(ke,{color:O(x),showCollapsedIcon:!w,showIcon:A&&D,firstLetter:X}),t.jsx(As,{color:x.toString(),children:d})]}),t.jsxs(Is,{children:[u.map((Z,de)=>t.jsx(Ws,{sectionName:d,balance:Z,color:x.toString()},de)),t.jsx(ft,{amount:p,percentage:h,currency:e})]})]}),t.jsx(Fs,{isScrolling:f,isLeaf:m,isOpen:w})]})});function Fs({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(Wt,{isScrolling:e,kind:"section_row_separator"}):null}function zs(){const e=I();return t.jsxs(Ts,{windowSize:e,children:[t.jsx(ve,{windowSize:e,width:gn,marginRight:0,children:t.jsx(K,{width:S[9],height:S[4],style:{display:"flex",alignItems:"baseline"}})}),t.jsx(ve,{windowSize:e,width:Ne,marginRight:0,children:t.jsx(K,{width:128,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:Ne,marginRight:0,children:t.jsx(K,{width:Oe,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:pi,children:t.jsx(K,{width:184,height:S[6],style:{display:"flex",alignItems:"center"}})}),t.jsx(ve,{windowSize:e,width:es,children:t.jsx(K,{width:Oe,height:S[6],style:{display:"flex",alignItems:"center"}})})]})}const Ts=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:Vs,expenseAutomation:{fluxAnalysis:Ds},vendors:{opExByVendor:Gs}}=M.getLocalizedStrings(),Es=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
- `,Pt=a.div`
1394
- display: flex;
1395
- max-height: ${s.sp8};
1396
- min-height: ${s.sp8};
1397
- min-width: ${e=>e.width!=null?e.width:ui};
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: ${pt};
1404
- color: ${e=>e.theme.colors.primary};
1405
- cursor: ${e=>e.isClickable?"pointer":"default"};
1406
- `,Rs=a(v)`
1407
- display: flex;
1408
- flex-direction: row;
1409
- justify-content: center;
1410
- align-items: center;
1411
- height: ${qc};
1412
- max-width: ${ui};
1413
- width: 138px;
1414
- text-align: center;
1415
- `,Hs=a.div`
1416
- display: flex;
1417
- cursor: pointer;
1418
- `,Ks=a.div`
1419
- display: flex;
1420
- cursor: pointer;
1421
- justify-content: center;
1422
- align-items: center;
1423
- color: ${e=>e.theme.colors.primary};
1424
- `,Ys=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?T`
1431
- top: ${s.sp0};
1432
- left: ${s.sp0};
1433
- display: flex;
1434
- position: sticky;
1435
- `:null};
1436
- `,Us=a.div`
1437
- height: ${s.sp8};
1438
- display: flex;
1439
- flex-direction: row;
1440
- align-items: center;
1441
- min-width: ${gn};
1442
- color: ${e=>e.theme.colors.primary};
1443
- background-color: ${e=>e.theme.colors.grey4};
1444
- `,qs=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
- `,Ft=a.div`
1450
- display: flex;
1451
- cursor: pointer;
1452
- `,zt=a.div`
1453
- color: ${e=>e.isBulkSelected||e.isSortedByKey?e.theme.colors.primary:e.theme.colors.hero};
1454
- `,Tt=a(qt)`
1455
- width: ${st};
1456
- height: ${st};
1457
- margin-left: ${s.sp2};
1458
- margin-top: ${s.sp1};
1459
- `,Vt=a(Zt)`
1460
- width: ${st};
1461
- height: ${st};
1462
- margin-left: ${s.sp2};
1463
- margin-top: ${s.sp1};
1464
- `,Zs=a.div`
1465
- display: flex;
1466
- margin-left: ${s.sp7};
1467
- flex: 1 1 auto;
1468
- justify-content: flex-end;
1469
- `,Js=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Pt,{isClickable:!1,children:t.jsx(Rs,{children:Ve(e,n,o)})}),Qs=({firstMonthOfFY:e,timeframeTick:n,timeframe:o})=>t.jsx(Js,{firstMonthOfFY:e,timeframeTick:n,timeframe:o}),Xs=({sortKey:e="vendor",sortOrder:n="ascending",isBulkSelected:o,onSortOrderChanged:i})=>{const r=e==="vendor"?n:"ascending";return t.jsx(qs,{isBulkSelected:o,isSortedByKey:e==="vendor",children:t.jsxs(Ft,{onClick:()=>{i(n==="ascending"?"descending":"ascending","vendor")},"data-testid":y("flux-analysis-report-timeframe-row-vendor-element-row"),children:[Gs.vendor,t.jsx(zt,{isBulkSelected:o,isSortedByKey:e==="vendor",children:r==="ascending"?t.jsx(Tt,{}):t.jsx(Vt,{})})]})})};function ed({backgroundColor:e,height:n,isBulkSelected:o,sortKey:i="vendor",sortOrder:r="ascending",firstMonthOfFY:l,timeframe:c,timeframeTicks:d,onSortOrderChanged:g}){const u=I();return t.jsxs(Es,{heightValue:n,bgColor:e,children:[t.jsx(Ys,{className:"flux-vendor-header-sticky",windowSize:u,isSticky:!0,children:t.jsx(Us,{windowSize:u,children:t.jsx(Xs,{sortKey:i,sortOrder:r,isBulkSelected:o,onSortOrderChanged:(p,h)=>{g?.(p,h)}})})}),t.jsxs(Zs,{children:[d.map((p,h)=>t.jsx(Qs,{firstMonthOfFY:l,timeframeTick:p,timeframe:c},h)),t.jsx(Pt,{isClickable:!1,width:Zc,children:t.jsxs(Ft,{onClick:()=>g?.(r==="ascending"?"descending":"ascending","variance"),"data-testid":y("flux-analysis-report-timeframe-row-varianceElement"),children:[t.jsx(Hs,{children:Ds.variance}),t.jsx(zt,{isBulkSelected:o,isSortedByKey:i==="variance",children:(i==="variance"?r:"ascending")==="ascending"?t.jsx(Tt,{}):t.jsx(Vt,{})})]})}),t.jsx(Pt,{isClickable:!1,width:ye,children:t.jsxs(Ft,{onClick:()=>{g?.(r==="ascending"?"descending":"ascending","status")},"data-testid":y("flux-analysis-report-timeframe-row-status"),children:[t.jsx(Ks,{children:Vs.texts.reviewStatus}),t.jsx(zt,{isBulkSelected:o,isSortedByKey:i==="status",children:(i==="status"?r:"ascending")==="ascending"?t.jsx(Tt,{}):t.jsx(Vt,{})})]})})]})]})}const td=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
- `,nd=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
- `,od=a.div`
1487
- display: flex;
1488
- flex-direction: row;
1489
- `,id=a.div`
1490
- display: flex;
1491
- flex-direction: row;
1492
- justify-content: flex-start;
1493
- align-items: center;
1494
- margin-left: ${pt};
1495
- `,rd=a(oe)`
1496
- user-select: none;
1497
- min-width: ${ue};
1498
- max-width: ${ue};
1499
- text-align: right;
1500
- color: ${e=>e.theme.colors.hero};
1501
- border: 1px solid transparent;
1502
- `,ad=a.div`
1503
- display: flex;
1504
- flex-direction: row;
1505
- align-items: center;
1506
- flex-shrink: 2;
1507
- flex-grow: 1;
1508
- width: ${lt};
1509
- max-width: ${lt};
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
- `,ld=a(oe)`
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
- `,cd=a.div`
1526
- display: flex;
1527
- width: ${ye};
1528
- min-width: ${ye};
1529
- justify-content: center;
1530
- flex-direction: row;
1531
- margin-left: ${xt};
1532
- `,sd=a.div`
1533
- display: flex;
1534
- margin-left: ${s.sp7};
1535
- flex: 1 1 auto;
1536
- justify-content: flex-end;
1537
- `,dd=({balance:e})=>t.jsx(id,{children:t.jsx(rd,{children:q("0,0",e?.balance)})});function hd({type:e,height:n,title:o,totalBalances:i,varianceAmount:r,variancePercentage:l,currency:c,backgroundColor:d}){return t.jsx(td,{"data-testid":y("total-row-root-container"),heightValue:n,bgColor:d,children:t.jsxs(nd,{"data-testid":y("total-row-container"),children:[t.jsx(ad,{className:"flux-total-row",children:t.jsx(ld,{children:o})}),t.jsxs(sd,{children:[t.jsx(od,{children:re(e)&&i.map((g,u)=>t.jsx(dd,{balance:g},u))}),t.jsx(ft,{amount:r,percentage:l,currency:c}),t.jsx(cd,{})]})]})})}const ud=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
- `,gd=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
- `,pd=a.div`
1569
- display: flex;
1570
- flex-direction: row;
1571
- justify-content: flex-start;
1572
- align-items: center;
1573
- margin-left: ${pt};
1574
- `,xd=a(v)`
1575
- user-select: none;
1576
- min-width: ${ue};
1577
- max-width: ${ue};
1578
- text-align: right;
1579
- `,fd=a.div`
1580
- display: flex;
1581
- flex-direction: row;
1582
- align-items: center;
1583
- flex-shrink: 2;
1584
- flex-grow: 1;
1585
- width: ${lt};
1586
- max-width: ${lt};
1587
- background-color: ${e=>e.bgColor?.hex()};
1588
- ${({isSticky:e})=>e?T`
1589
- position: -webkit-sticky;
1590
- position: sticky;
1591
- top: ${s.sp0};
1592
- left: ${s.sp0};
1593
- `:null}
1594
- `,md=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
- `,wd=a.div`
1603
- display: flex;
1604
- justify-content: space-between;
1605
- flex-grow: 1;
1606
- `,yd=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: ${ct};
1614
- min-width: ${ct};
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 bd=a(er)`
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 kd=a.div`
1636
- display: flex;
1637
- margin-left: ${s.sp7};
1638
- flex: 1 1 auto;
1639
- justify-content: flex-end;
1640
- `,jd=a.div`
1641
- display: flex;
1642
- flex-direction: column;
1643
- align-items: center;
1644
- padding-top: ${e=>e.isNodeOpen?s.sp3:s.sp0};
1645
- `,Sd=a.div`
1646
- display: flex;
1647
- width: ${ye};
1648
- min-width: ${ye};
1649
- justify-content: center;
1650
- flex-direction: row;
1651
- margin-left: ${xt};
1652
- `,Cd=a(be)`
1653
- width: ${ue};
1654
- max-width: ${ue};
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
- `,_d=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
- `,vd=a(be)`
1671
- overflow: hidden;
1672
- text-overflow: ellipsis;
1673
- `,$d=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
- `,Ld=a(Yt)`
1683
- color: ${e=>e.theme.colors.primary};
1684
- width: ${s.sp3};
1685
- height: ${s.sp3};
1686
- `,Bd=a(be)`
1687
- display: flex;
1688
- flex-direction: row;
1689
- align-items: center;
1690
- gap: 2px;
1691
- color: ${e=>e.theme.colors.success};
1692
- `,Ad=a(xo)`
1693
- width: 12px;
1694
- height: 12px;
1695
- `,to=a(po)`
1696
- margin-left: 2px;
1697
- width: 12px;
1698
- height: 12px;
1699
- `,Od=a(Me)`
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
- `,Nd=a(Me)`
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
- `,Md=a(Me)`
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:no,expenseAutomation:Id}=M.getLocalizedStrings(),Wd=({balance:e})=>{const n=xd;return t.jsx(pd,{children:t.jsx(n,{children:J(e)})})};function Pd({fluxAnalysisEntityId:e,idsForReview:n,backgroundColor:o,isSticky:i,treeNodeId:r,height:l,leftChevron:c,varianceAmount:d,variancePercentage:g,currency:u,vendorBalances:p,reviewedByUser:h,status:x,vendor:f,isOpen:w,childrenCount:m,setHoveredParentId:b,onClick:k,handleRedirectToVendorDetailPage:C,updateOperatingExpensesIdsForReview:_}){const[$,B]=z.useState(!1),[A,P]=z.useState(n.length>0),V=n.includes(e),D=n.includes(e),Y=c==="collapsed",X=n.length===20&&V===!1,ee=md;return t.jsx(ud,{heightValue:l,bgColor:o,children:t.jsxs(gd,{shouldHighlight:D,isRowExpanded:w,onClick:()=>k?.(r),onMouseOver:()=>{B(!0),P(!0),b?.(f.id)},onMouseLeave:()=>{B(!1),n.length===0&&P(!1),b?.(null)},children:[t.jsxs(fd,{className:"flux-vendor-name-container",bgColor:o,isSticky:i,children:[t.jsx($d,{className:"flux-vendor-checkbox-container",children:A?t.jsx(Et,{className:"flux-vendor-checkbox",icon:t.jsx(Rt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Ld,{}),checked:V,name:f.name,id:e,disabled:X,onChange:Z=>{let de=n;de=Z.target.checked===!0?[...de,e]:de.filter(fe=>fe!==e),_?.(de)},onClick:Z=>Z.stopPropagation(),style:{padding:"20px",pointerEvents:X?"none":"auto"}}):null}),t.jsxs(jd,{isNodeOpen:w,children:[$?t.jsx(Od,{className:"flux-vendor-collapsable-chevron-icon",children:w===!1?t.jsx(to,{}):t.jsx(Ad,{})}):f.logo!=null?t.jsx(Ht,{photoUrl:f.logo.toString(),styles:{width:S[4],height:S[4]}}):t.jsx(Kt,{name:f.name,size:s.sp4}),w?t.jsx(hi,{height:Xc}):null]}),t.jsxs(wd,{children:[t.jsxs(yd,{children:[t.jsx(ee,{children:f.name}),w?null:t.jsx(Md,{className:"flux-vendor-children-count",children:t.jsx(Me,{children:m})})]}),$?t.jsx(z.Fragment,{children:t.jsx(Nd,{className:"flux-vendor-chevron-icon",onClick:()=>{C?.(f)},"data-testid":y("flux-analysis-report-vendorElement-row"),children:t.jsx(to,{})})}):null]})]}),t.jsxs(kd,{children:[p.map((Z,de)=>t.jsx(Wd,{balance:Z,collapsed:Y},de)),t.jsx(ft,{amount:d,percentage:g,currency:u}),t.jsx(Sd,{children:x==="Pending Review"?t.jsx(_d,{children:t.jsx(vd,{children:no.status.pending})}):t.jsx(t.Fragment,{children:t.jsx(Cd,{className:"vendor-flux-analysis-review-info",children:h!=null?t.jsxs(z.Fragment,{children:[t.jsxs(Bd,{children:[t.jsx(bd,{}),Id.fluxAnalysis.reviewedBy]}),t.jsx(Me,{children:Ui(h)})]}):no.strings.hyphen})})})]})]})})}const oo={generalExpense:{color:new O(N.graphColor04),hoverColor:new O(N.graphColor04Dark)},reimbursement:{color:new O(N.graphColor10),hoverColor:new O(N.graphColor10Dark)},default:{color:new O(te.neutralGrey2Dark),hoverColor:new O(te.neutralGrey2Dark)}},pn=(e,n)=>{const{element:o}=e;return o.kind===n&&o.data!=null},wi=e=>zc(e.balancesByMonth),Fd=(e,n,o,i,r,l,c,d,g,u,p)=>{if(!pn(n,"flux_vendor_row"))return null;const h=n.element.data,x=wi(h),f=xi("flux_vendor_row",g);return t.jsx(Pd,{backgroundColor:o,isSticky:i,treeNodeId:e,fluxAnalysisEntityId:h.fluxAnalysisEntityId,height:f,leftChevron:"collapsed",idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],vendor:h.vendor,vendorBalances:x,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,status:h.status,currency:h.currency,isScrolling:r,isOpen:l,isLeaf:c,isLastNode:d,childrenCount:h.vendorAccountsAndClasses.length,onClick:w=>{(m=>{p?.(m),n.config.fluxAnalysisConfig?.updateNodeCollapsableStatus(m)})(w)},reviewedByUser:h.reviewedByUser,updateOperatingExpensesIdsForReview:n.config.fluxAnalysisConfig?.updateOperatingExpensesIdsForReview,handleRedirectToVendorDetailPage:n.config.fluxAnalysisConfig?.handleRedirectToVendorDetailPage,setHoveredParentId:u?.setHoveredParentId})},zd=(e,n,o,i,r,l,c,d,g,u)=>{if(!pn(n,"section"))return null;const p=((x,f)=>x.startsWith("flux_analysis_operating_expense")===!0&&f!=null?oo[f]:oo.default)(n.config.reportId,n.element.sectionType),h=n.element.data;return t.jsx(Ps,{backgroundColor:i,isSticky:r,treeNodeId:e,height:o,selectedSectionsIds:n.config.fluxAnalysisConfig?.reviewSectionIds??[],idsForReview:n.config.fluxAnalysisConfig?.reviewOpExIds??[],sectionColor:p.color,sectionName:n.element.title,sectionBalances:h.balances,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:h.currency,isScrolling:l,isOpen:c,hasVendors:h.vendors.length>0,isLeaf:d,isLastNode:g,sectionToggled:x=>{(f=>{n.config.fluxAnalysisConfig?.onSectionRowClick(f),u?.(f)})(x)},onSectionCheckboxClick:n.config.fluxAnalysisConfig?.onSectionCheckboxClick,sectionId:h.sectionId})},Td=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
- `,Vd=a.div`
1732
- user-select: none;
1733
- display: flex;
1734
- flex: 1 1 auto;
1735
- flex-flow: row;
1736
- justify-content: flex-start;
1737
- align-items: center;
1738
- height: ${e=>e.height}px;
1739
- margin-left: ${e=>20*e.level}px;
1740
- `,Dd=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
- `,Gd=a(qi)`
1750
- width: 100%;
1751
- display: flex;
1752
- align-items: center;
1753
- font-weight: ${e=>e.isSubclass?In.regular:In.medium};
1754
- color: ${e=>e.checked?e.theme.colors.primary:e.theme.colors.hero};
1755
- `,Ed=a(be)`
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
- `,Rd=a(Yt)`
1767
- color: ${e=>e.theme.colors.primary};
1768
- width: ${s.sp3};
1769
- height: ${s.sp3};
1770
- `;function Hd({backgroundColor:e,treeNodeId:n,classId:o,isChecked:i,isDisabled:r,height:l,nestedClass:c,isLeaf:d,showClassAccountNumber:g,onClick:u,onToggleCheck:p}){const[h,x]=z.useState(!1);return t.jsx(Td,{"data-testid":y("name-with-checkbox-row-root-container",n),bgColor:e,children:t.jsxs(Vd,{"data-testid":y("name-with-checkbox-row-container",n),height:l,isClickable:!d,onClick:()=>u?.(n),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),level:c.classId.length,children:[t.jsx(Et,{"data-testid":y("name-with-checkbox-row-checkbox",c.classId.toString()),icon:t.jsx(Rt,{width:s.sp3,height:s.sp3}),checkedIcon:t.jsx(Rd,{}),checked:i,name:c.className,id:n,disabled:r,onChange:f=>{p?.(o,f.target.checked)},style:{height:s.sp6}})," ",t.jsx(Dd,{children:t.jsxs(Gd,{"data-testid":y("name-with-checkbox-row-label-container",n),checked:i,isSubclass:c.classId.length>1,children:[t.jsx("label",{"data-testid":y("name-with-checkbox-row-label",c.classId.toString()),style:{flexGrow:2,cursor:"pointer"},onClick:()=>{p?.(o,!i)},children:c.className}),h===!0&&g===!0&&c.accountingClassNumber!=null&&t.jsx(Ed,{children:c.accountingClassNumber})]})})]})})}const W={balanceHeight:s.sp4,balanceWidth:"166px",balanceLeftMargin:s.sp4,titleWidth:new G(200,270,270),categoryClassWidth:new G(230,230,240),nameLogoWidth:new G(S[4],S[4]),nameLogoHeight:new G(S[4],S[4])},Kd=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
- `,Yd=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
- `,Ud=a.div`
1793
- display: flex;
1794
- flex: 1 0 auto;
1795
- flex-direction: row;
1796
- justify-content: flex-end;
1797
- `,io=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: ${W.balanceWidth};
1804
- max-width: ${W.balanceWidth};
1805
- margin-left: ${e=>e.isClubbed===!0?s.sp2:W.balanceLeftMargin};
1806
- border: 1px solid transparent;
1807
- `,ro=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=>W.categoryClassWidth.valuePx(e.windowSize)};
1814
- `,qd=a.div`
1815
- height: 100%;
1816
- display: flex;
1817
- flex-direction: row;
1818
- align-items: center;
1819
- min-width: ${e=>W.titleWidth.valuePx(e.windowSize)};
1820
- color: ${e=>e.theme.colors.primary};
1821
- background-color: ${e=>e.bgColor?.hex()};
1822
- ${({isSticky:e})=>e?T`
1823
- position: -webkit-sticky;
1824
- position: sticky;
1825
- top: ${s.sp0};
1826
- left: ${s.sp0};
1827
- z-index: 20;
1828
- `:null}
1829
- `;function Zd({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=I();return l.length>0?t.jsxs(Kd,{height:o,bgColor:e,"data-testid":y("opex-vendor-loading-in-progress-row"),children:[t.jsxs(qd,{"data-testid":y("opex-vendor-loading-in-progress-row-name"),isSticky:n,windowSize:c,bgColor:e,children:[t.jsx(ze,{width:S[4],height:S[4]}),t.jsx(io,{windowSize:c,isClubbed:!0,children:t.jsx(K,{width:120,height:S[4]})})]}),t.jsxs(Ud,{children:[i?t.jsx(ro,{windowSize:c,children:t.jsx(K,{width:120,height:S[4]})}):null,r?t.jsx(ro,{windowSize:c,children:t.jsx(K,{width:120,height:S[4]})}):null,l.map((d,g)=>t.jsx(io,{windowSize:c,children:t.jsx(K,{width:120,height:S[4]})},`${g}RowItem`))]})]}):t.jsx(Yd,{height:o,bgColor:e,children:t.jsx(Yi,{size:"Small",start:!0})})}const Jd=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
- `,At=a.div``,Qd=a.div`
1841
- display: flex;
1842
- flex: 1 0 auto;
1843
- flex-direction: row;
1844
- justify-content: flex-end;
1845
- `,Xd=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
- `,eh=a(v)`
1856
- color: ${e=>e.theme.colors.hero};
1857
- flex-grow: 1;
1858
- -webkit-box-orient: vertical;
1859
- display: flex;
1860
- min-width: ${W.balanceWidth};
1861
- max-width: ${W.balanceWidth};
1862
- border: 1px solid transparent;
1863
- `,ao=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=>W.categoryClassWidth.valuePx(e.windowSize)};
1870
- `,th=a.div`
1871
- height: 100%;
1872
- display: flex;
1873
- flex-direction: row;
1874
- align-items: center;
1875
- min-width: ${e=>W.titleWidth.valuePx(e.windowSize)};
1876
- color: ${e=>e.theme.colors.primary};
1877
- background-color: ${e=>e.bgColor?.hex()};
1878
- ${({isSticky:e})=>e?T`
1879
- position: -webkit-sticky;
1880
- position: sticky;
1881
- top: ${s.sp0};
1882
- left: ${s.sp0};
1883
- z-index: 20;
1884
- `:null}
1885
- `;function nh({backgroundColor:e,isSticky:n,height:o,isAccountColumnShown:i,isClassColumnShown:r,timeframeTicks:l}){const c=I();return t.jsxs(Jd,{height:o,bgColor:e,"data-testid":y("no-results-found-title-row"),children:[t.jsx(th,{isSticky:n,windowSize:c,bgColor:e,children:t.jsx(Xd,{children:M.getLocalizedStrings().vendors.opExByVendor.noResultsFound})}),t.jsxs(Qd,{children:[i?t.jsx(ao,{windowSize:c,children:t.jsx(At,{})}):null,r?t.jsx(ao,{windowSize:c,children:t.jsx(At,{})}):null,l.map((d,g)=>t.jsx(eh,{windowSize:c,children:t.jsx(At,{children:" "})},`${g}RowItem`))]})]})}function xn({title:e,selectedMode:n,onCompareModeChanged:o,backgroundColor:i,optionBackgroundColor:r,selectedOptionBackgroundColor:l,optionTextStyle:c,titleTextStyle:d,titleTextAlignment:g,titleColor:u,menuPosition:p}){return t.jsx(tr,{title:e,pickerValues:["compare_mode_percent","compare_mode_amount"],valueToLabel:h=>M.getLocalizedStrings().compareMode[h],selectedValue:n,onPickerSelectionChanged:h=>o(h),optionTextStyle:c,titleTextStyle:d,titleTextAlignment:g,titleColor:u,optionBackgroundColor:r,selectedOptionBackgroundColor:l,backgroundColor:i??"inherit",menuPosition:p})}const oh=s.sp4,lo=170,ih=(s.sp4,a.div`
1886
- margin-left: ${s.sp4};
1887
- `),rh=a.div`
1888
- display: flex;
1889
- max-height: 54px;
1890
- min-height: 54px;
1891
- align-items: center;
1892
- justify-content: center;
1893
- max-width: ${lo-2}px;
1894
- min-width: ${lo-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
- `,ah=a(v)`
1900
- display: flex;
1901
- user-select: none;
1902
- flex-direction: row;
1903
- justify-content: center;
1904
- align-items: center;
1905
- height: ${oh};
1906
- `,lh=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
- `,ch=a(lr)`
1916
- color: ${e=>e.tagType==="under_review"?te.neutralGrey5Light:e.theme.mode==="light"?te.primaryDark:te.primaryLight};
1917
- border-radius: ${s.sp2};
1918
- padding: 3px 6px;
1919
- margin-left: 12px;
1920
- background: ${e=>e.tagType==="under_review"?te.alertDark:e.theme.mode==="light"?te.championLight:te.championDark};
1921
- `,sh=a(ar)`
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 yi({firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:i,infoContent:r,tagType:l}){return t.jsxs(ih,{children:[t.jsxs(rh,{children:[t.jsx(ah,{children:Ve(e,n,o)}),t.jsx(rr,{style:{padding:s.sp3},title:r,placement:"top",children:t.jsx(sh,{})})]}),t.jsx(lh,{children:t.jsx(ch,{tagType:l,children:i})})]})}const bi=(e,n)=>{const o=M.getLocalizedStrings().reports;switch(n){case"month":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoMonth:o.bookCloseIncompleteInfoMonth:void 0;case"quarter":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoQuarter:o.bookCloseIncompleteInfoQuarter:void 0;case"year":return e!=null?e==="under_review"?o.bookCloseUnderReviewInfoYear:o.bookCloseIncompleteInfoYear:void 0;default:return}},dh=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
- `,hh=a.div`
1939
- display: flex;
1940
- flex: 1 0 auto;
1941
- flex-direction: row;
1942
- justify-content: flex-end;
1943
- `,ki=a.div`
1944
- display: flex;
1945
- max-height: ${s.sp8};
1946
- min-height: ${s.sp8};
1947
- min-width: ${W.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: ${W.balanceLeftMargin};
1954
- color: ${e=>e.theme.colors.primary};
1955
- cursor: ${e=>e.isClickable===!0?"pointer":"default"};
1956
- `,ji=a(v)`
1957
- display: flex;
1958
- user-select: none;
1959
- flex-direction: row;
1960
- justify-content: center;
1961
- align-items: center;
1962
- height: ${W.balanceHeight};
1963
- max-width: ${W.balanceWidth};
1964
- width: 138px;
1965
- text-align: center;
1966
- `,uh=a.div`
1967
- display: flex;
1968
- flex-direction: row;
1969
- z-index: 1;
1970
- background-color: ${e=>e.bgColor?.hex()};
1971
- ${({isSticky:e})=>e?T`
1972
- position: -webkit-sticky;
1973
- position: sticky;
1974
- top: ${s.sp0};
1975
- left: ${s.sp0};
1976
- z-index: 1;
1977
- `:null}
1978
- `,gh=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=>W.titleWidth.valuePx(e.windowSize)};
1985
- color: ${e=>e.theme.colors.primary};
1986
- background-color: ${e=>e.bgColor?.hex()};
1987
- `,ph=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
- `,Si=a(v)`
1993
- height: 100%;
1994
- align-self: center;
1995
- align-items: baseline;
1996
- min-width: ${e=>W.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
- `,fn=a.div`
2003
- display: flex;
2004
- cursor: pointer;
2005
- `,xh=a.div`
2006
- display: flex;
2007
- justify-content: center;
2008
- align-items: center;
2009
- color: ${e=>e.theme.colors.champion};
2010
- `,fh=a.div``,mh=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: ${W.balanceLeftMargin};
2020
- color: ${e=>e.theme.colors.primary};
2021
- width: ${W.balanceWidth};
2022
- min-width: ${W.balanceWidth};
2023
- `,Ci=a.div`
2024
- max-height: ${s.sp8};
2025
- min-height: ${s.sp8};
2026
- `,mt=a.div`
2027
- color: ${e=>e.selectedForSort?e.theme.colors.primary:e.theme.colors.hero};
2028
- `,wt=a(Zt)`
2029
- width: 12px;
2030
- height: 12px;
2031
- margin-left: ${s.sp2};
2032
- margin-top: ${s.sp1};
2033
- `,yt=a(qt)`
2034
- width: 12px;
2035
- height: 12px;
2036
- margin-left: ${s.sp2};
2037
- margin-top: ${s.sp1};
2038
- `,mn=a(yo)`
2039
- width: 12px;
2040
- height: 12px;
2041
- cursor: pointer;
2042
- color: ${e=>e.theme.colors.hero};
2043
- `,_i=({sortOrder:e,sortKey:n,onSortOrderChanged:o})=>{const i=n==="totals"?e:"ascending";return t.jsx(Ci,{"data-testid":y("period-total-tick"),children:t.jsx(ki,{"data-testid":y("period-total-tick-element"),onClick:()=>{o(bt("totals",e,n),"totals")},isClickable:!0,children:t.jsxs(ji,{children:[M.getLocalizedStrings().vendors.opExByVendor.periodTotal,t.jsx(mt,{selectedForSort:n==="totals",children:i==="ascending"?t.jsx(yt,{}):t.jsx(wt,{})})]})})})},wh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="vendor"?n:"ascending";return t.jsxs(ph,{selectedForSort:e==="vendor",children:[t.jsxs(fn,{onClick:()=>{o(bt("vendor",n,e),"vendor")},children:[M.getLocalizedStrings().vendors.opExByVendor.vendor,t.jsx(mt,{selectedForSort:e==="vendor",children:r==="ascending"?t.jsx(yt,{}):t.jsx(wt,{})})]}),e==="vendor"?t.jsx(mn,{onClick:i}):null]})},yh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="account"?n:"ascending",l=I();return t.jsxs(Si,{selectedForSort:e==="account",windowSize:l,children:[t.jsxs(fn,{onClick:()=>{o(bt("account",n,e),"account")},children:[M.getLocalizedStrings().vendors.opExByVendor.category,t.jsx(mt,{selectedForSort:e==="account",children:r==="ascending"?t.jsx(yt,{}):t.jsx(wt,{})})]}),e==="account"?t.jsx(mn,{onClick:i}):null]})},bh=({sortKey:e="totals",sortOrder:n="ascending",onSortOrderChanged:o,onSortCancel:i})=>{const r=e==="class"?n:"ascending",l=I();return t.jsxs(Si,{selectedForSort:e==="class",windowSize:l,children:[t.jsxs(fn,{onClick:()=>{o(bt("class",n,e),"class")},children:[M.getLocalizedStrings().vendors.opExByVendor.class,t.jsx(mt,{selectedForSort:e==="class",children:r==="ascending"?t.jsx(yt,{}):t.jsx(wt,{})})]}),e==="class"?t.jsx(mn,{onClick:i}):null]})},vi=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=M.getLocalizedStrings().reports,c=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:So(o,e,n,r,i),d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,g=bi(c,o);return t.jsx(Ci,{children:r!=null&&i!=null&&c!=null&&d!=null&&g!=null?t.jsx(yi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:d,infoContent:g,tagType:c}):t.jsx(ki,{isClickable:!1,children:t.jsx(ji,{children:Ve(e,n,o)})})})},kh=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,sortKey:i="totals",sortOrder:r="ascending",dataAvailable:l,bookCloseDate:c,onSortOrderChanged:d})=>n.balanceType==="period_total"?t.jsx(_i,{sortKey:i,sortOrder:r,onSortOrderChanged:d}):t.jsx(vi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c}),jh=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,sortKey:r="totals",sortOrder:l="ascending",dataAvailable:c,bookCloseDate:d,onCompareModeChanged:g,onSortOrderChanged:u})=>{const p=le(),h=i==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return t.jsx(xh,{children:n.map((x,f)=>t.jsxs(z.Fragment,{children:[x.balanceType==="this_period_vs_last_period"||x.balanceType==="this_period_vs_last_period_percent"?t.jsx(mh,{children:t.jsx(xn,{title:h,titleTextStyle:Ut.standardRegular,titleTextAlignment:"flex-end",titleColor:p.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:w=>{w!=="off"&&(w==="compare_mode_amount"||w==="compare_mode_percent"?g?.(w):console.warn("Invalid compare mode option"))}})}):null,x.balanceType==="period_total"?t.jsx(_i,{sortKey:r,sortOrder:l,onSortOrderChanged:u}):null,x.balanceType==="default"?t.jsx(fh,{children:t.jsx(vi,{firstMonthOfFY:e,timeframeTick:x,timeframe:o,dataAvailable:c,bookCloseDate:d},f)}):null]},f))})};function Sh({backgroundColor:e,isSticky:n,height:o,isCompareModeOn:i,isAccountColumnShown:r,isClassColumnShown:l,sortKey:c,sortOrder:d,firstMonthOfFY:g,timeframe:u,timeframeTicks:p,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:w,onSortOrderChanged:m}){const b=I(),k=(_,$)=>{m?.(_,$)},C=()=>{m?.("descending","totals")};return t.jsxs(dh,{height:o,bgColor:e,children:[t.jsx(uh,{bgColor:e,windowSize:b,isSticky:n,children:t.jsx(gh,{plHeight:o,windowSize:b,bgColor:e,children:t.jsx(wh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:C})})}),r?t.jsx(yh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:C}):null,l?t.jsx(bh,{sortKey:c,sortOrder:d,onSortOrderChanged:k,onSortCancel:C}):null,t.jsx(hh,{children:i===!0?t.jsx(jh,{firstMonthOfFY:g,timeframe:u,sortKey:c,sortOrder:d,timeframeTicks:p,compareMode:h,dataAvailable:x,bookCloseDate:f,onCompareModeChanged:w,onSortOrderChanged:k}):p.map((_,$)=>t.jsx(kh,{firstMonthOfFY:g,timeframeTick:_,timeframe:u,sortKey:c,sortOrder:d,dataAvailable:x,bookCloseDate:f,onSortOrderChanged:k},$))})]})}const bt=(e,n,o)=>e===o?n==="ascending"?"descending":"ascending":"descending",Ch=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
- `,_h=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 Dt({kind:e,isScrolling:n}){switch(e){case"vendor_row_separator":return t.jsx(Ch,{isScrolling:n});case"end_row_separator":return t.jsx(_h,{isScrolling:n})}}const vh=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
- `,$h=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
- `,Lh=a.div`
2070
- display: flex;
2071
- flex: 1 0 auto;
2072
- flex-direction: row;
2073
- justify-content: flex-end;
2074
- `,Bh=a.div`
2075
- display: flex;
2076
- flex-direction: row;
2077
- justify-content: flex-start;
2078
- `,$i=a(oe)`
2079
- user-select: none;
2080
- min-width: ${W.balanceWidth};
2081
- max-width: ${W.balanceWidth};
2082
- text-align: right;
2083
- margin-left: ${W.balanceLeftMargin};
2084
- color: ${e=>e.theme.colors.primary};
2085
- border: 1px solid transparent;
2086
- `,Ah=a($i)`
2087
- color: ${e=>e.theme.colors.hero};
2088
- &:hover {
2089
- color: inherit;
2090
- }
2091
- `,Oh=a.div`
2092
- display: flex;
2093
- flex-direction: row;
2094
- background-color: ${e=>e.bgColor?.hex()};
2095
- ${({isSticky:e})=>e?T`
2096
- position: -webkit-sticky;
2097
- position: sticky;
2098
- top: ${s.sp0};
2099
- left: ${s.sp0};
2100
- `:null}
2101
- `,Nh=a.div`
2102
- display: flex;
2103
- flex-direction: row;
2104
- flex-shrink: 2;
2105
- flex-grow: 1;
2106
- align-items: center;
2107
- width: ${e=>W.titleWidth.valuePx(e.windowSize)};
2108
- max-width: ${e=>W.titleWidth.valuePx(e.windowSize)};
2109
- background-color: ${e=>e.bgColor?.hex()};
2110
- `,co=a.div`
2111
- width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2112
- max-width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2113
- background-color: ${e=>e.bgColor?.hex()};
2114
- `,Mh=a(oe)`
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
- `,Ih=({type:e,balance:n,collapsed:o})=>{const i=o===!0?Ah:$i;return t.jsx(Bh,{children:re(e)===!0?t.jsx(i,{children:J(n)}):null})};function Wh({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,title:l,totalBalances:c,isAccountColumnShown:d,isClassColumnShown:g,onClick:u,isScrolling:p}){const h=I();return t.jsxs(vh,{"data-testid":y("total-row-root-container",i),height:r,bgColor:n,windowSize:h,children:[t.jsxs($h,{"data-testid":y("total-row-container",i),onClick:()=>u?.(i),children:[t.jsxs(Oh,{bgColor:n,windowSize:h,isSticky:o,children:[t.jsx(Nh,{bgColor:n,windowSize:h,children:t.jsx(Mh,{children:l})}),d?t.jsx(co,{windowSize:h}):null,g?t.jsx(co,{windowSize:h}):null]}),t.jsx(Lh,{children:c.map((x,f)=>t.jsx(Ih,{type:e,balance:x,collapsed:!1},f))})]}),t.jsx(Dt,{isScrolling:p,kind:"vendor_row_separator"})]})}const Ph=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
- `,Fh=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
- `,zh=a.div`
2142
- display: flex;
2143
- flex: 1 0 auto;
2144
- flex-direction: row;
2145
- justify-content: flex-end;
2146
- `,Th=a.div`
2147
- display: flex;
2148
- flex-direction: row;
2149
- justify-content: flex-start;
2150
- `,Vh=a(v)`
2151
- user-select: none;
2152
- min-width: ${W.balanceWidth};
2153
- max-width: ${W.balanceWidth};
2154
- text-align: right;
2155
- margin-left: ${W.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
- `,Dh=a.div`
2163
- display: flex;
2164
- flex-direction: row;
2165
- background-color: ${e=>e.bgColor?.hex()};
2166
- ${({isSticky:e})=>e?T`
2167
- position: -webkit-sticky;
2168
- position: sticky;
2169
- top: ${s.sp0};
2170
- left: ${s.sp0};
2171
- `:null}
2172
- `,Gh=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=>W.titleWidth.valuePx(e.windowSize)};
2180
- max-width: ${e=>W.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
- `,Eh=a.div`
2196
- display: flex;
2197
- flex-direction: row;
2198
- flex-shrink: 2;
2199
- flex-grow: 1;
2200
- align-items: center;
2201
- width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2202
- max-width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2203
- background-color: ${e=>e.bgColor?.hex()};
2204
- `,Rh=a.div`
2205
- display: flex;
2206
- flex-direction: row;
2207
- flex-shrink: 2;
2208
- flex-grow: 1;
2209
- align-items: center;
2210
- width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2211
- max-width: ${e=>W.categoryClassWidth.valuePx(e.windowSize)};
2212
- background-color: ${e=>e.bgColor?.hex()};
2213
- `,Hh=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
- `,Kh=a(Zi)`
2223
- width: ${s.sp3};
2224
- height: ${s.sp3};
2225
- `,Yh=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
- `,Uh=a(v)`
2238
- color: ${e=>e.theme.colors.hero};
2239
- `,qh=a(v)`
2240
- color: ${e=>e.theme.colors.hero};
2241
- display: none;
2242
- `,Zh=({balance:e,vendor:n,onVendorNameAndBalanceClick:o})=>{const i=!(e?.type==="this_period_vs_last_period"||e?.type==="this_period_vs_last_period_percent")&&e?.type!=="period_total"&&e?.type!=="default_with_null_balance"&&!jo(n.id);return t.jsx(Th,{children:t.jsx(Vh,{isClickable:i,onClick:()=>{i===!0&&o(n,e??void 0)},children:J(e)})})};function Jh({type:e,backgroundColor:n,isSticky:o,height:i,isScrolling:r,isLastNode:l,vendor:c,balances:d,accountBase:g,classBase:u,isAccountColumnShown:p,isClassColumnShown:h,onVendorNameAndBalanceClick:x}){const f=I(),w=go(),m=w.loggedInUserRole!=null&&!ko(w.loggedInUserRole),b=jo(c.id),k=m===!0&&c!=null&&!b,C=k?"pointer":"default",_=c.name;return t.jsxs(Ph,{"data-testid":y("vendor-row-root-container",c.id),height:i,bgColor:n,windowSize:f,children:[t.jsxs(Fh,{"data-testid":y("vendor-row-container",c.id),style:{cursor:C},isClickable:k,children:[t.jsx(Dh,{"data-testid":y("vendor-row-sticky-container",c.id),isSticky:o,windowSize:f,bgColor:n,children:t.jsxs(Gh,{"data-testid":y("vendor-row-name-container",c.id),windowSize:f,bgColor:n,children:[t.jsxs(ot,{controller:!b,children:[c.logo!=null?t.jsx(Ht,{photoUrl:c.logo.toString(),styles:{width:W.nameLogoWidth.valuePx(f),height:W.nameLogoHeight.valuePx(f)}}):t.jsx(Kt,{name:_,size:s.sp4}),t.jsx($e,{"data-testid":y("vendor-row-name",c.id),style:{cursor:C},isClickable:k,onClick:()=>{k===!0&&x(c)},children:_})]}),t.jsx(ot,{controller:b,children:t.jsxs(Yh,{children:[t.jsx(Hh,{children:t.jsx(Kh,{})}),t.jsx(Uh,{className:"hyphen-text",children:M.getLocalizedStrings().common.strings.hyphen}),t.jsx(qh,{className:"not-specified-text",children:_})]})})]})}),p?t.jsx(Eh,{windowSize:f,bgColor:n,children:g!=null?t.jsx($e,{"data-testid":y("vendor-row-account-name",c.id),title:g.accountName,isClickable:!1,children:g.accountName}):t.jsx($e,{isClickable:!1,"data-testid":y("vendor-row-account-name",c.id),children:M.getLocalizedStrings().common.strings.hyphen})}):null,h?t.jsx(Rh,{windowSize:f,bgColor:n,children:u!=null?t.jsx($e,{"data-testid":y("vendor-row-class-name",c.id),title:u.className,isClickable:!1,children:u.className}):t.jsx($e,{"data-testid":y("vendor-row-class-name",c.id),isClickable:!1,children:M.getLocalizedStrings().common.strings.hyphen})}):null,t.jsx(zh,{children:d.map(($,B)=>t.jsx(Zh,{type:e,balance:$,vendor:c,onVendorNameAndBalanceClick:x},B))})]}),t.jsx(Qh,{isScrolling:r,isLastNode:l})]})}function Qh({isScrolling:e,isLastNode:n}){return n?t.jsx(Dt,{isScrolling:e,kind:"end_row_separator"}):t.jsx(Dt,{isScrolling:e,kind:"vendor_row_separator"})}function wn(e,n,o){return Xh(n,o,e)}const Xh=(e,n,o)=>{const i={compactedAccountsSelector:()=>[],compactedAccountsSelectorVariant:()=>[],acGroupBalanceSelector:()=>{},acBalanceSelector:()=>{},compactedAccountGroupsSelector:()=>[]};return i.acBalanceSelector=r=>r.account.balancesInTimeframe,i.compactedAccountsSelector=r=>so(r.accounts,i.acBalanceSelector,e),i.compactedAccountsSelectorVariant=r=>so(r,i.acBalanceSelector,e),i.acGroupBalanceSelector=r=>r,i.compactedAccountGroupsSelector=r=>function(l,c,d,g){switch(g){case"off":return l;case"filter_actual_nil_account_group_balances":return l.filter(u=>Li(c(u)?.balances??[]));case"filter_forecast_nil_account_group_balances":return l.filter(u=>function(p){let h=!1;if(p!=null){for(const x of p)if(x.forecast!=null&&x.forecast.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_nil_account_group_balances":return l.filter(u=>function(p){let h=!1;if(p!=null){for(const x of p)if(x.forecast!=null&&x.forecast.amount!==0||x.balance!=null&&x.balance.amount!==0){h=!0;break}}return h}(c(u)?.balances??[]));case"filter_actual_forecast_empty_account_group_balances":return l.filter(u=>(c(u)?.balances??[]).length>0)}}(r,i.acGroupBalanceSelector,0,n),i};function so(e,n,o){switch(o){case"off":return e;case"filter_actual_nil_balances":return e.filter(i=>function(r){let l=!1;if(r!=null){for(const c of r)if(c.totalBalance!=null&&c.totalBalance.amount!==0){l=!0;break}}return l}((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[]))||Li((n(i)?.balances??[]).concat(n(i)?.additionalBalances??[])));case"filter_forecast_nil_balances":case"filter_actual_forecast_nil_balances":return e.filter(i=>eu(n(i)?.balances??[]))}}function Li(e){let n=!1;if(e!=null){for(const o of e)if(o.balance.amount!==0){n=!0;break}}return n}function eu(e){let n=!1;if(e!=null){for(const o of e)if(o.totalForecast!=null&&o.totalForecast.amount!==0||o.totalBalance!=null&&o.totalBalance.amount!==0){n=!0;break}}return n}function Bi(e,n,o=-1,i=!0){const r=o!==-1;let l=[],c=-1;if(e==null||e.balances.length===0)return r===!0&&(l=function(g,u){return g.length>0?g:fo(Array(u),null)}([],o)),{balances:l,thisPeriodIndex:c};let d=e.balances;return n==="ascending_date"?c=e.balances.length-1:(c=0,d=[...e.balances].reverse()),{balances:[...d,...i?e.additionalBalances:[]],thisPeriodIndex:c}}const tu=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
- `,nu=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
- `,ou=a.div`
2261
- display: flex;
2262
- flex: 1 0 auto;
2263
- flex-direction: row;
2264
- justify-content: flex-end;
2265
- `,iu=a.div`
2266
- display: flex;
2267
- flex-direction: row;
2268
- justify-content: flex-start;
2269
- `,Ai=a(v)`
2270
- user-select: none;
2271
- min-width: ${j.balanceWidth};
2272
- max-width: ${j.balanceWidth};
2273
- text-align: right;
2274
- margin-left: ${j.balanceLeftMargin};
2275
- color: ${e=>e.theme.colors.primary};
2276
- `,ru=a(Ai)`
2277
- color: ${e=>e.theme.colors.hero};
2278
- &:hover {
2279
- color: inherit;
2280
- }
2281
- `,au=a.div`
2282
- display: flex;
2283
- flex-direction: row;
2284
- flex-shrink: 2;
2285
- flex-grow: 1;
2286
- align-items: center;
2287
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2288
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2289
- background-color: ${e=>e.bgColor?.hex()};
2290
- ${({isSticky:e})=>e?T`
2291
- position: -webkit-sticky;
2292
- position: sticky;
2293
- top: ${s.sp0};
2294
- left: ${s.sp0};
2295
- `:null}
2296
- `,Oi=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(Oi)`
2307
- color: ${e=>e.theme.colors.hero};
2308
- &:hover {
2309
- color: inherit;
2310
- }
2311
- `,cu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?ru:Ai;return t.jsxs(iu,{children:[re(e)===!0||i?t.jsx(l,{children:J(n)}):t.jsx(l,{children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function su({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:g,compareMode:u,isScrolling:p,isOpen:h,isLeaf:x,isLastNode:f,onClick:w}){const m=le(),b=I(),k=!x,C=k?"pointer":"default",_=l==="collapsed",$=l==="hidden",B=$===!0?S[6]:S[4],A=_===!0?lu:Oi,P=_===!0?po:xo,V=_===!0?m.colors.hero:m.colors.primary;return t.jsxs(tu,{height:r,bgColor:n,"data-testid":y("pandl-report-account-group-row-root-container",i),children:[t.jsxs(nu,{"data-testid":y("pandl-report-account-group-row-container",i),style:{cursor:C},isClickable:k,onClick:()=>w?.(i),children:[ge(e)===!0?t.jsxs(au,{bgColor:n,isSticky:o,windowSize:b,children:[$===!1?t.jsx(P,{color:V,style:{width:S[3],height:S[3]}}):null,t.jsx(A,{style:{marginLeft:B},children:c})]}):null,me(e)===!0?t.jsx(ou,{children:d.map((D,Y)=>t.jsx(cu,{type:e,accountGroupName:c,balance:D,isActualVsForecastOn:g,compareMode:u,collapsed:_},Y))}):null]}),t.jsx(du,{isScrolling:p,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function du({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const hu=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
- `,uu=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
- `,gu=a.div`
2330
- display: flex;
2331
- flex: 1 0 auto;
2332
- flex-direction: row;
2333
- justify-content: flex-end;
2334
- `,pu=a.div`
2335
- display: flex;
2336
- flex-direction: row;
2337
- justify-content: flex-start;
2338
- `,Ni=a(v)`
2339
- user-select: none;
2340
- min-width: ${j.balanceWidth};
2341
- max-width: ${j.balanceWidth};
2342
- text-align: right;
2343
- margin-left: ${j.balanceLeftMargin};
2344
- color: ${e=>e.theme.colors.primary};
2345
- `,xu=a(Ni)`
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=>j.titleWidth.valuePx(e.windowSize)};
2357
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2358
- background-color: ${e=>e.bgColor?.hex()};
2359
- ${({isSticky:e})=>e?T`
2360
- position: -webkit-sticky;
2361
- position: sticky;
2362
- top: ${s.sp0};
2363
- left: ${s.sp0};
2364
- `:null}
2365
- `,Mi=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
- `,mu=a(Mi)`
2376
- color: ${e=>e.theme.colors.hero};
2377
- &:hover {
2378
- color: inherit;
2379
- }
2380
- `,wu=({type:e,balance:n,collapsed:o,isActualVsForecastOn:i,compareMode:r})=>{const l=o===!0?xu:Ni;return t.jsxs(pu,{children:[re(e)===!0||i?t.jsx(l,{children:J(n)}):t.jsx(l,{children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(l,{children:Q(n)}),t.jsx(l,{children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function yu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,leftChevron:l,accountGroupName:c,accountGroupBalances:d,isActualVsForecastOn:g,compareMode:u,isScrolling:p,isOpen:h,isLeaf:x,isLastNode:f,onClick:w}){const m=I(),b=le(),k=!x,C=k?"pointer":"default",_=l==="collapsed",$=_===!0?mu:Mi,[B,A]=z.useState(!1),P=c.length>0?c.substring(0,1).toUpperCase():"";return t.jsxs(hu,{"data-testid":y("pandl-account-group-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(uu,{"data-testid":y("pandl-account-group-row-container",i),onMouseOver:()=>A(!0),onMouseLeave:()=>A(!1),style:{cursor:C},isClickable:k,onClick:()=>w?.(i),children:[ge(e)===!0?t.jsxs(fu,{bgColor:n,isSticky:o,windowSize:m,children:[t.jsx(ke,{showCollapsedIcon:_,showIcon:B&&k,firstLetter:P,color:O(b.colors.primary)}),t.jsx($,{children:c})]}):null,me(e)===!0?t.jsx(gu,{children:d.map((V,D)=>t.jsx(wu,{type:e,accountGroupName:c,balance:V,isActualVsForecastOn:g,compareMode:u,collapsed:_},D))}):null]}),t.jsx(bu,{isScrolling:p,type:e,isLeaf:x,isLastNode:f,isOpen:h})]})}function bu({isScrolling:e,type:n,isLastNode:o,isOpen:i}){let r="ac_group_row_separator";return o&&!i?r="section_row_separator":i&&(r=ge(n)===!0?"account_title_row_separator":"account_balance_row_separator"),t.jsx(we,{isScrolling:e,kind:r})}const ku=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
- `,ju=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
- `,Su=a.div`
2396
- display: flex;
2397
- flex: 1 0 auto;
2398
- flex-direction: row;
2399
- justify-content: flex-end;
2400
- `,Cu=a.div`
2401
- display: flex;
2402
- flex-direction: row;
2403
- justify-content: flex-start;
2404
- `,Je=a(v)`
2405
- user-select: none;
2406
- min-width: ${j.balanceWidth};
2407
- max-width: ${j.balanceWidth};
2408
- text-align: right;
2409
- margin-left: ${j.balanceLeftMargin};
2410
- color: ${e=>e.theme.colors.hero};
2411
- cursor: ${e=>e.isClickable?"pointer":"default"};
2412
- &:hover {
2413
- color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2414
- }
2415
- `,_u=a.div`
2416
- display: flex;
2417
- flex-direction: row;
2418
- flex-shrink: 2;
2419
- flex-grow: 1;
2420
- align-items: center;
2421
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2422
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2423
- background-color: ${e=>e.bgColor?.hex()};
2424
- ${({isSticky:e})=>e?T`
2425
- position: -webkit-sticky;
2426
- position: sticky;
2427
- top: ${s.sp0};
2428
- left: ${s.sp0};
2429
- `:null}
2430
- `,vu=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
- `,$u=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,onAccountBalanceClick:l})=>{const c=r!=null&&n!=null&&l!=null&&!(n?.type==="this_period_vs_last_period"||n?.type==="this_period_vs_last_period_percent");return t.jsxs(Cu,{"data-testid":y("account-row-balance-element",e),children:[re(e)===!0||o?t.jsx(Je,{"data-testid":y("account-row-balance-actual",e),isClickable:c,onClick:()=>{c===!0&&r!=null&&n!=null&&l?.(r,n)},children:J(n)}):t.jsx(Je,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:Q(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(Je,{isClickable:!1,"data-testid":y("account-row-balance-forecast",e),children:Q(n)}),t.jsx(Je,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?ce(n):se(n)})]}):null]})};function Lu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,accountBalances:l,isActualVsForecastOn:c,compareMode:d,isScrolling:g,isLeaf:u,isLastNode:p,account:h,onAccountBalanceClick:x}){const f=I(),{common:{strings:{hyphen:w}}}=M.getLocalizedStrings(),m=h?.accountDescription?h.accountDescription:w,b=h?.accountName?h.accountName:m;return t.jsxs(ku,{height:r,bgColor:n,"data-testid":y("account-row-root-container",i),children:[t.jsxs(ju,{"data-testid":y("account-row-container",i),children:[ge(e)===!0?t.jsx(_u,{isSticky:o,windowSize:f,bgColor:n,children:t.jsx(vu,{isClickable:!1,title:b,children:b})}):null,me(e)===!0?t.jsx(Su,{children:l.map((k,C)=>t.jsx($u,{type:e,isActualVsForecastOn:c,compareMode:d,balance:k,account:h,onAccountBalanceClick:x==null?void 0:(_,$)=>{x(i,_,$)}},C))}):null]}),t.jsx(Bu,{isScrolling:g,type:e,isLeaf:u,isLastNode:p})]})}function Bu({isScrolling:e,isLastNode:n,type:o}){const i=n?"ac_group_row_separator":ge(o)===!0?"account_title_row_separator":"account_balance_row_separator";return t.jsx(we,{isScrolling:e,kind:i})}const Au=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
- `,Ou=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
- `,Nu=a.div`
2460
- display: flex;
2461
- flex: 1 0 auto;
2462
- flex-direction: row;
2463
- justify-content: flex-end;
2464
- `,Mu=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: ${j.balanceWidth};
2471
- min-width: ${j.balanceWidth};
2472
- text-align: right;
2473
- margin-left: ${j.balanceLeftMargin};
2474
- `,Iu=a.div`
2475
- display: flex;
2476
- flex-direction: row;
2477
- flex-shrink: 2;
2478
- flex-grow: 1;
2479
- align-items: center;
2480
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2481
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2482
- background-color: ${e=>e.bgColor?.hex()};
2483
- ${({isSticky:e})=>e?T`
2484
- position: -webkit-sticky;
2485
- position: sticky;
2486
- top: ${s.sp0};
2487
- left: ${s.sp0};
2488
- `:null}
2489
- `,Wu=a.div`
2490
- display: flex;
2491
- flex-grow: 8;
2492
- `,Pu=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
- `,Fu=a(be)`
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
- `,zu=({metadata:e,depth:n})=>n===0?null:e.hasSibling!==!0||e.isLastNode?t.jsx(Qi,{}):t.jsx(Ji,{}),Tu=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Mu,{children:[re(e)===!0||i?t.jsx(Qe,{style:{color:o},children:J(n)}):t.jsx(Qe,{style:{color:o},children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{style:{color:o},children:Q(n)}),t.jsx(Qe,{style:{color:o},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function Vu({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,className:l,classCode:c,sectionBalances:d,isActualVsForecastOn:g,compareMode:u,hasChildren:p,isScrolling:h,isOpen:x,isLeaf:f,metadata:w,showClassAccountNumber:m,onClick:b,depth:k}){const C=I(),_=!f,$=_?"pointer":"default",B=le().colors.primary,A=l.length>0?l.substr(0,1).toUpperCase():"",[P,V]=z.useState(!1),D=w.classAncestorMetadata??[];return t.jsxs(Au,{"data-testid":y("class-row-root-container",i),height:r,bgColor:n,children:[t.jsxs(Ou,{"data-testid":y("class-row-container",i),style:{cursor:$},onClick:()=>b?.(i),onMouseOver:()=>V(!0),onMouseLeave:()=>V(!1),children:[ge(e)===!0?t.jsxs(Iu,{isSticky:o,windowSize:C,bgColor:n,children:[t.jsx(ga,{name:l,ancestorMetadata:D,depth:k}),t.jsx(zu,{metadata:D[k],depth:k}),t.jsx(ke,{color:O(B),showCollapsedIcon:!x,showIcon:P&&_,firstLetter:A,showTreeLine:p}),t.jsx(Wu,{children:t.jsx(Pu,{style:{color:B},children:l})}),P===!0&&m===!0&&c!==void 0&&t.jsx(Fu,{children:c})]}):null,me(e)===!0?t.jsx(Nu,{children:d.map((Y,X)=>t.jsx(Tu,{type:e,sectionName:l,balance:Y,isActualVsForecastOn:g,compareMode:u,color:B},X))}):null]}),t.jsx(Du,{isScrolling:h,isLeaf:f,isOpen:x})]})}function Du({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const Gu=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
- `,Eu=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
- `,Ru=a.div`
2529
- display: flex;
2530
- flex: 1 0 auto;
2531
- flex-direction: row;
2532
- justify-content: flex-end;
2533
- `,Hu=a.div`
2534
- display: flex;
2535
- flex-direction: row;
2536
- justify-content: flex-start;
2537
- `,Xe=a(v)`
2538
- user-select: none;
2539
- max-width: ${j.balanceWidth};
2540
- min-width: ${j.balanceWidth};
2541
- text-align: right;
2542
- margin-left: ${j.balanceLeftMargin};
2543
- `,Ku=a.div`
2544
- display: flex;
2545
- flex-direction: row;
2546
- flex-shrink: 2;
2547
- flex-grow: 1;
2548
- align-items: center;
2549
- width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2550
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2551
- background-color: ${e=>e.bgColor?.hex()};
2552
- ${({isSticky:e})=>e?T`
2553
- position: -webkit-sticky;
2554
- position: sticky;
2555
- top: ${s.sp0};
2556
- left: ${s.sp0};
2557
- `:null}
2558
- `,Yu=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
- `,Uu=({type:e,balance:n,color:o,isActualVsForecastOn:i,compareMode:r})=>t.jsxs(Hu,{children:[re(e)===!0||i?t.jsx(Xe,{style:{color:o},children:J(n)}):t.jsx(Xe,{style:{color:o},children:Q(n)}),i?t.jsxs(t.Fragment,{children:[t.jsx(Xe,{style:{color:o},children:Q(n)}),t.jsx(Xe,{style:{color:o},children:r==="compare_mode_percent"?ce(n):se(n)})]}):null]});function yn({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,sectionName:l,sectionBalances:c,isActualVsForecastOn:d,compareMode:g,sectionColor:u,isScrolling:p,isOpen:h,isLeaf:x,onClick:f}){const w=I(),m=!x,b=m?"pointer":"default",k=l.length>0?l.substring(0,1).toUpperCase():"",[C,_]=z.useState(!1);return t.jsxs(Gu,{"data-testid":y("section-row",i),height:r,bgColor:n,children:[t.jsxs(Eu,{"data-testid":y("section-row-container",i),style:{cursor:b},onClick:()=>f?.(i),onMouseOver:()=>_(!0),onMouseLeave:()=>_(!1),children:[ge(e)===!0?t.jsxs(Ku,{isSticky:o,windowSize:w,bgColor:n,children:[t.jsx(ke,{color:O(u),showCollapsedIcon:!h,showIcon:C&&m,firstLetter:k}),t.jsx(Yu,{style:{color:u},children:l})," "]}):null,me(e)===!0?t.jsx(Ru,{children:c.map(($,B)=>t.jsx(Uu,{type:e,sectionName:l,balance:$,isActualVsForecastOn:d,compareMode:g,color:u},B))}):null]}),t.jsx(qu,{isScrolling:p,isLeaf:x,isOpen:h})]})}function qu({isScrolling:e,isLeaf:n,isOpen:o}){return n||!o?t.jsx(we,{isScrolling:e,kind:"section_row_separator"}):null}const Zu=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
- `,Ju=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
- `,Qu=a.div`
2584
- display: flex;
2585
- flex: 1 0 auto;
2586
- flex-direction: row;
2587
- justify-content: flex-end;
2588
- `,Xu=a.div`
2589
- display: flex;
2590
- flex-direction: row;
2591
- justify-content: flex-start;
2592
- `,et=a(v)`
2593
- user-select: none;
2594
- min-width: ${j.balanceWidth};
2595
- max-width: ${j.balanceWidth};
2596
- text-align: right;
2597
- margin-left: ${j.balanceLeftMargin};
2598
- color: ${e=>e.theme.colors.hero};
2599
- cursor: ${e=>e.isClickable?"pointer":"default"};
2600
- &:hover {
2601
- color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2602
- }
2603
- `,eg=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=>j.titleWidth.valuePx(e.windowSize)};
2612
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2613
- background-color: ${e=>e.bgColor?.hex()};
2614
- color: ${e=>e.theme.colors.hero};
2615
-
2616
- cursor: ${e=>e.isClickable?"pointer":"default"};
2617
- &:hover {
2618
- color: ${e=>e.isClickable?e.theme.colors.primary:e.theme.colors.hero};
2619
- }
2620
- ${({isSticky:e})=>e?T`
2621
- position: -webkit-sticky;
2622
- position: sticky;
2623
- top: ${s.sp0};
2624
- left: ${s.sp0};
2625
- `:null}
2626
- `,tg=a(v)`
2627
- user-select: none;
2628
- clear: both;
2629
- display: inline-block;
2630
- text-align: left;
2631
- `,ng=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i,account:r,showTotal:l,onAccountBalanceClick:c})=>{const d=n!=null&&dr(n?.type),g=r!=null&&n!=null&&c!=null&&d!==!0,u=l===!0?Co(n):J(n),p=l===!0?Nt(n):Q(n),h=l===!0?_o(n):ce(n),x=l===!0?vo(n):se(n);return t.jsxs(Xu,{"data-testid":y("account-row-balance-element",e),children:[re(e)===!0||o?t.jsx(et,{"data-testid":y("account-row-balance-actual",e),isClickable:g,onClick:f=>{f.stopPropagation(),g===!0&&r!=null&&n!=null&&c?.(r,n)},children:u}):t.jsx(et,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:p}),o?t.jsxs(t.Fragment,{children:[t.jsx(et,{"data-testid":y("account-row-balance-forecast",e),isClickable:!1,children:p}),t.jsx(et,{"data-testid":y("account-row-balance-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?h:x})]}):null]})};function og({type:e,backgroundColor:n,isSticky:o,treeNodeId:i,height:r,classDepth:l,accountBalances:c,isActualVsForecastOn:d,compareMode:g,metadata:u,isScrolling:p,noMarginForAccount:h,isLeaf:x,isOpen:f,isLastNode:w,account:m,onAccountBalanceClick:b,onClick:k}){const C=I(),_=m!=null?m.id.length-1:0,$=m?.hasSiblings??!1,B=m!=null&&m.children.length!==0,A=u,{common:{strings:{empty:P}}}=M.getLocalizedStrings(),V=m?.account.accountDescription?m.account.accountDescription:P,D=m?.account.accountName?m.account.accountName:V;return t.jsxs(Zu,{"data-testid":y("sub-account-row",i),height:r,bgColor:n,children:[t.jsxs(Ju,{"data-testid":y("sub-account-row-container",i),onClick:()=>k?.(i),children:[t.jsx(eg,{isClickable:B,isSticky:o,windowSize:C,bgColor:n,containerHeight:r,children:t.jsx(tg,{title:D,children:t.jsx(Oo,{displayName:D,depth:_,classDepth:l,isLastNode:w,hasChildren:B,hasSiblings:$,isLeaf:x,collapsed:!f,subAccountAnscestorMetadata:A.subAccountAncestorMetadata,classAnscestorMetadata:A.classAncestorMetadata??[],noMarginForAccount:h})})}),me(e)===!0?t.jsx(Qu,{children:c.map((Y,X)=>t.jsx(ng,{type:e,isActualVsForecastOn:d,compareMode:g,balance:Y,account:m?.account,showTotal:!f,onAccountBalanceClick:b==null?void 0:(ee,Z)=>{b(i,ee,Z)}},X))}):null]}),t.jsx(ig,{isScrolling:p,isLeaf:x,isOpen:f,depth:_,isSticky:o,classDepth:l,noMarginForAccount:h})]})}function ig({isScrolling:e,depth:n,isOpen:o,isLeaf:i,isSticky:r,classDepth:l,noMarginForAccount:c}){return o&&i!==!0?null:t.jsx(we,{isScrolling:e,kind:"sub_account_balance_row_separator",subAccountProps:{nestingLevel:n,isSticky:r,classDepth:l,noMarginForAccount:c}})}const rg=[10,14,20,20,20],ag=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
- `,cg=a.div`
2647
- width: ${e=>$o.emptyLeftContainer.valuePx(e.windowSize)};
2648
- height: ${s.sp1};
2649
- `,sg=a.div`
2650
- display: flex;
2651
- flex: 1 0 auto;
2652
- flex-direction: row;
2653
- justify-content: flex-end;
2654
- `,dg=a.div`
2655
- display: flex;
2656
- flex-direction: row;
2657
- justify-content: flex-start;
2658
- `,tt=a(v)`
2659
- user-select: none;
2660
- min-width: ${j.balanceWidth};
2661
- max-width: ${j.balanceWidth};
2662
- text-align: right;
2663
- margin-left: ${j.balanceLeftMargin};
2664
- color: ${e=>e.theme.colors.primary};
2665
- cursor: ${e=>e.isClickable?"pointer":"default"};
2666
- `,hg=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=>j.titleWidth.valuePx(e.windowSize)};
2674
- max-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2675
- background-color: ${e=>e.bgColor?.hex()};
2676
- ${({isSticky:e})=>e?T`
2677
- position: -webkit-sticky;
2678
- position: sticky;
2679
- top: ${s.sp0};
2680
- left: ${s.sp0};
2681
- `:null}
2682
- `,ug=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=>rg[e.depth]}px;
2691
- color: ${e=>e.theme.colors.primary};
2692
- width: ${e=>j.titleWidth.value(e.windowSize)-80*e.depth}px;
2693
- `,gg=({type:e,balance:n,isActualVsForecastOn:o,compareMode:i})=>t.jsxs(dg,{"data-testid":y("sub-account-row-balance-element",e),children:[re(e)===!0||o?t.jsx(tt,{"data-testid":y("sub-account-row-balance-element-actual",e),isClickable:!1,children:Co(n)}):t.jsx(tt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Nt(n)}),o?t.jsxs(t.Fragment,{children:[t.jsx(tt,{"data-testid":y("sub-account-row-balance-element-forecast",e),isClickable:!1,children:Nt(n)}),t.jsx(tt,{"data-testid":y("sub-account-row-balance-element-actual-vs-forecast",e),isClickable:!1,children:i==="compare_mode_percent"?_o(n):vo(n)})]}):null]});function pg({type:e,backgroundColor:n,isSticky:o,height:i,classDepth:r,accountName:l,accountBalances:c,account:d,noMarginForAccount:g,isActualVsForecastOn:u,compareMode:p,isScrolling:h,metadata:x}){const f=I(),w=M.getLocalizedStrings().reports.sections,m=d!=null?d.id.length-1:0,b=x;return t.jsxs(ag,{height:i,bgColor:n,children:[t.jsxs(lg,{children:[t.jsxs(hg,{isSticky:o,windowSize:f,bgColor:n,containerHeight:i,children:[r!=null?t.jsx(Bo,{ancestorMetadata:b.classAncestorMetadata??[],depth:r,name:l}):g===!1?t.jsx(cg,{windowSize:f}):null,t.jsx(Ao,{ancestorMetadata:b.subAccountAncestorMetadata,depth:m,name:l}),t.jsx(ug,{"data-testid":y("sub-account-row-name",e),isClickable:!1,title:l,depth:m,windowSize:f,children:w.totalPrefix+" "+l})]}),me(e)===!0?t.jsx(sg,{children:c.map((k,C)=>t.jsx(gg,{type:e,isActualVsForecastOn:u,compareMode:p,balance:k},C))}):null]}),t.jsx(xg,{isScrolling:h,nestingLevel:m,isSticky:o,classDepth:r,noMarginForAccount:g})]})}function xg({isScrolling:e,nestingLevel:n,isSticky:o,classDepth:i,noMarginForAccount:r}){return t.jsx(we,{isScrolling:e,kind:"total_row_separator",subAccountProps:{nestingLevel:n,isSticky:o,classDepth:i,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
- `,mg=a.div`
2705
- display: flex;
2706
- flex: 1 0 auto;
2707
- flex-direction: row;
2708
- justify-content: flex-end;
2709
- `,Fe=j.balanceWidthInPx+j.balanceLeftMarginInPx,Ii=a.div`
2710
- display: flex;
2711
- max-height: 54px;
2712
- min-height: 54px;
2713
- min-width: ${e=>e.isActualVsForecastOn?3*(Fe-2)-j.balanceLeftMarginInPx:j.balanceWidthInPx}px;
2714
- justify-content: center;
2715
- align-items: center;
2716
- background-color: ${e=>e.theme.colors.background};
2717
- border: 1px solid ${e=>e.theme.colors.grey3};
2718
- border-radius: ${s.sp2};
2719
- margin-left: ${e=>e.isActualVsForecastOn?S[0]:j.balanceLeftMarginInPx}px;
2720
- color: ${e=>e.theme.colors.primary};
2721
- `,Wi=a(v)`
2722
- display: flex;
2723
- user-select: none;
2724
- flex-direction: row;
2725
- justify-content: center;
2726
- align-items: center;
2727
- height: ${j.balanceHeight};
2728
- max-width: ${j.balanceWidthInPx-2}px;
2729
- width: 138px;
2730
- text-align: center;
2731
- `,wg=a.div`
2732
- height: 100%;
2733
- display: inline-block;
2734
- flex-direction: row;
2735
- align-items: center;
2736
- min-width: ${e=>j.titleWidth.valuePx(e.windowSize)};
2737
- color: ${e=>e.theme.colors.grey5};
2738
- background-color: ${e=>e.bgColor?.hex()};
2739
- border: 1px solid ${e=>e.bgColor?.hex()};
2740
- ${({isSticky:e})=>e?T`
2741
- position: -webkit-sticky;
2742
- position: sticky;
2743
- top: ${s.sp0};
2744
- left: ${s.sp0};
2745
- z-index: 20;
2746
- `:null}
2747
- `,yg=a.div`
2748
- display: flex;
2749
- width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
2750
- flex-direction: row;
2751
- justify-content: flex-start;
2752
- color: ${e=>e.theme.colors.champion};
2753
- `,Ot=a(v)`
2754
- display: flex;
2755
- justify-content: flex-end;
2756
- align-items: center;
2757
- height: ${j.balanceHeight};
2758
- width: ${j.balanceWidth};
2759
- min-width: ${j.balanceWidth};
2760
- margin-left: ${j.balanceLeftMargin};
2761
- margin-top: ${s.sp3};
2762
- `,bg=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
- `,kg=a.div``,jg=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: ${j.balanceLeftMarginInPx}px;
2779
- color: ${e=>e.theme.colors.primary};
2780
- width: ${j.balanceWidth};
2781
- min-width: ${j.balanceWidth};
2782
- `,Sg=a.div`
2783
- display: flex;
2784
- width: ${e=>e.isActualVsForecastOn?3*Fe:Fe}px;
2785
- flex-direction: column;
2786
- align-items: flex-end;
2787
- `,Cg=a.div`
2788
- max-height: 54px;
2789
- min-height: 54px;
2790
- `,Pi=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:i,bookCloseDate:r})=>{const l=M.getLocalizedStrings().reports,c=r==null||i==null||n.balanceType!=="default"&&n.balanceType!=="default_with_percent"?void 0:So(o,e,n,r,i),d=c!=null?c==="under_review"?l.bookCloseTagUnderReview:l.bookCloseTagInProgress:void 0,g=bi(c,o);return t.jsx(Cg,{children:r!=null&&i!=null&&c!=null&&d!=null&&g!=null?t.jsx(yi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,tagName:d,infoContent:g,tagType:c}):t.jsx(Ii,{isActualVsForecastOn:!1,children:t.jsx(Wi,{children:Ve(e,n,o)})})})},_g=({firstMonthOfFY:e,timeframeTick:n,timeframe:o,isActualVsForecastOn:i,compareMode:r,dataAvailable:l,bookCloseDate:c,onCompareModeChanged:d})=>{const g=M.getLocalizedStrings().reports.forecast,u=r==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n.currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return i===!0?t.jsxs(Sg,{isActualVsForecastOn:i,children:[t.jsx(Ii,{isActualVsForecastOn:i,children:t.jsx(Wi,{children:Ve(e,n,o)})}),t.jsxs(yg,{isActualVsForecastOn:i,children:[t.jsx(Ot,{children:g.actual}),t.jsx(Ot,{children:g.forecast}),t.jsx(Ot,{children:t.jsx(xn,{title:u,titleTextStyle:Ut.standardRegular,titleTextAlignment:"flex-end",selectedMode:r,onCompareModeChanged:p=>{p!=="off"?d?.(p):console.warn("Invalid compare mode option")}})})]})]}):t.jsx(Pi,{firstMonthOfFY:e,timeframeTick:n,timeframe:o,dataAvailable:l,bookCloseDate:c})},vg=({firstMonthOfFY:e,timeframeTicks:n,timeframe:o,compareMode:i,dataAvailable:r,bookCloseDate:l,onCompareModeChanged:c})=>{const d=le(),g=i==="compare_mode_amount"?`${M.getLocalizedStrings().compareMode.changePrefix} ${n[0].currencySymbol}`:M.getLocalizedStrings().compareMode.changePercent;return t.jsx(bg,{children:n.map((u,p)=>t.jsx(z.Fragment,{children:u.balanceType==="this_period_vs_last_period"||u.balanceType==="this_period_vs_last_period_percent"?t.jsx(jg,{children:t.jsx(xn,{title:g,titleTextStyle:Ut.standardRegular,titleTextAlignment:"flex-end",titleColor:d.colors.primary,selectedMode:i,menuPosition:"right",onCompareModeChanged:h=>{h!=="off"&&(h==="compare_mode_amount"||h==="compare_mode_percent"?c?.(h):console.warn("Invalid compare mode option"))}})}):t.jsx(kg,{children:t.jsx(Pi,{firstMonthOfFY:e,timeframeTick:u,timeframe:o,dataAvailable:r,bookCloseDate:l},p)})},p))})};function $g({type:e,backgroundColor:n,isSticky:o,height:i,isActualVsForecastOn:r,isCompareModeOn:l,firstMonthOfFY:c,timeframe:d,timeframeTicks:g,compareMode:u,dataAvailable:p,bookCloseDate:h,onCompareModeChanged:x}){const f=I();return t.jsxs(fg,{height:i,bgColor:n,children:[ge(e)===!0?t.jsx(wg,{isSticky:o,windowSize:f,bgColor:n,children:" . "}):null,t.jsx(mg,{children:l===!0?t.jsx(vg,{firstMonthOfFY:c,timeframe:d,timeframeTicks:g,compareMode:u,dataAvailable:p,bookCloseDate:h,onCompareModeChanged:x}):g.map((w,m)=>t.jsx(_g,{firstMonthOfFY:c,timeframeTick:w,timeframe:d,isActualVsForecastOn:r,compareMode:u,dataAvailable:p,bookCloseDate:h,onCompareModeChanged:x},m))})]})}const kt=(e,n,o,i,r,l,c,d,g,u,p)=>{if(o.element.kind!="ac_report"||o.element.data==null)return null;const h=o.element.data,x=ne((Te(o.config.reportId)===!0||bo(o.config.reportId)===!0?ni(0,o.config.filterAccountsWithNilBalances):at(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(h),o.config.displayOrder,o.element.numOfBalances);return t.jsx(Lu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:u,accountBalances:x.balances,isScrolling:c,isLeaf:d,isLastNode:g,account:h,onAccountBalanceClick:p==null?void 0:(f,w,m)=>{p?.(f,w,m)}})},De=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="ac_subaccount"||o.element.data==null)return null;const x=o.element.data,f=Bi(wn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances),w=x.account.classesViewParentId?.parentClassId!=null?x.account.classesViewParentId?.parentClassId.length-1:void 0,m=o.config.reportId==="operating_expenses";return t.jsx(og,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",classDepth:w,compareMode:p,accountBalances:f.balances,isScrolling:c,isLeaf:d,isOpen:g,isLastNode:u,account:x,metadata:o.element.metadata,onClick:h,noMarginForAccount:m,onAccountBalanceClick:h==null?void 0:(b,k,C)=>{h?.(b,k,C)}})},jt=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="ac_group_report"||o.element.data==null)return null;const x=o.element.data,f=ne(at(o.element.sectionType,"no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(su,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:w=>{h?.(w)}})},bn=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="ac_group_subaccount"||o.element.data==null)return null;const x=o.element.data,f=ne(wn("no_filter",o.config.filterAccountsWithNilBalances,o.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(x),o.config.displayOrder,o.element.numOfBalances);return t.jsx(yu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,leftChevron:d?"open":"collapsed",accountGroupName:x.accountGroupName,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,accountGroupBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:w=>{h?.(w)}})},kn=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="section"||o.element.data==null)return null;const x=on(o.element.title),f=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(yn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:w=>{h?.(w)}})},St=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="section_with_ac_only"||o.element.data==null)return null;const x=on(o.element.title),f=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(yn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:w=>{h?.(w)}})},jn=(e,n,o,i,r,l,c,d,g,u,p,h)=>{if(o.element.kind!="calculated_section"||o.element.data==null)return null;const x=on(o.element.title),f=ne(o.element.data,o.config.displayOrder,o.element.numOfBalances);return t.jsx(yn,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,sectionName:o.element.title,sectionColor:x,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",compareMode:p,sectionBalances:f.balances,isScrolling:c,isOpen:d,isLeaf:g,isLastNode:u,onClick:w=>{h?.(w)}})},Ge=(e,n,o,i,r,l,c,d,g)=>{if(n.element.kind!="ac_subentity_total")return null;const u=n.element.data,p=wn("no_filter",n.config.filterAccountsWithNilBalances,n.config.filterAccountGroupsWithNilBalances),h=u.account.classesViewParentId?.parentClassId!=null?u.account.classesViewParentId?.parentClassId.length-1:void 0,x=Bi(p.acBalanceSelector(u),n.config.displayOrder,n.element.numOfBalances),f=n.config.reportId==="operating_expenses"||n.config.reportId==="operating_expenses_by_classes";return t.jsx(pg,{type:e,backgroundColor:i,isSticky:r,height:o,accountName:u.account.accountName,account:u,isActualVsForecastOn:n.config.mode==="actual_vs_forecast",compareMode:g,accountBalances:x.balances,isScrolling:l,noMarginForAccount:f,isLeaf:c,isLastNode:d,metadata:n.element.metadata,classDepth:h})},Ee=(e,n,o,i,r,l,c,d)=>{if(o.element.kind!=="timeframe_headers"&&o.element.kind!=="timeframe_headers_with_forecast")return null;const g=Be(o.element.data,o.config.displayOrder),u=g.length>0?g[0].balanceTimeFrame:"month",p=g.map(h=>Le(h));return t.jsx($g,{treeNodeId:e,backgroundColor:r,isSticky:l,type:n,height:i,isActualVsForecastOn:o.element.kind==="timeframe_headers_with_forecast",isCompareModeOn:o.config.mode==="this_period_vs_period_before"&&p.length>1,firstMonthOfFY:o.config.firstMonthOfFY,timeframe:u,timeframeTicks:p,compareMode:c,dataAvailable:o.config.dataAvailable,bookCloseDate:o.config.bookCloseDate,onCompareModeChanged:d})},Fi=(e,n,o,i,r,l,c,d,g,u,p,h,x)=>{if(o.element.kind!="class"||o.element.data==null)return null;const f=o.element.data,w=ne(f.childrenBalancesTotal,o.config.displayOrder,o.element.numOfBalances),m=p>1;return t.jsx(Vu,{type:n,backgroundColor:r,isSticky:l,treeNodeId:e,height:i,className:o.element.title,classCode:o.element.data.class.accountingClassNumber,isActualVsForecastOn:o.config.mode==="actual_vs_forecast",depth:f.id.length-1,compareMode:h,sectionBalances:w.balances,isScrolling:c,isOpen:d,isLeaf:g,hasChildren:f.children.length>0,isLastNode:u,isSubClass:m,showClassAccountNumber:o.config.showClassAccountNumber,onClick:b=>{x?.(b)},metadata:o.element.metadata})},ho=e=>{const{height:n,data:{reportElementData:o,id:i,treeKind:r,isLeaf:l,isLastNode:c,nestingLevel:d,isFirstNode:g},isOpen:u,style:p,setOpen:h,isScrolling:x}=e,f=e.treeNodePadding?.left,w=e.treeNodePadding?.right;return t.jsx("div",{style:{...p,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:w},children:t.jsx(zi,{id:i,backgroundColor:e.backgroundColor,treeKind:r,reportElementData:o,height:n,isSticky:e.isSticky,isScrolling:x??!1,isLeaf:l,isLastNode:c,isFirstNode:g,isOpen:u,nestingLevel:d,nodeClickHandler:e.onNodeClick==null&&l?void 0:(m,b,k)=>{const C=l?u:!u;!l&&k==null&&(h(!u),e.onNodeCollapseToggled?.(m,!u)),e.onNodeClick?.(m,C,b,k)},compareMode:e.compareMode,hoveredParentIdProps:e.hoveredParentIdProps,onCompareModeChanged:e.onCompareModeChanged,toggleCheckHandler:e.onToggleCheck},i)})},zi=e=>e.treeKind==="name_only"?t.jsx(Mg,{...e}):Xt(e.reportElementData.config.reportId)?t.jsx(Wg,{...e}):tn(e.reportElementData.config.reportId)===!0?t.jsx(Ig,{...e}):bo(e.reportElementData.config.reportId)===!0?t.jsx(Lg,{...e}):Jt(e.reportElementData.config.reportId)===!0?t.jsx(Bg,{...e}):Te(e.reportElementData.config.reportId)===!0?t.jsx(Ag,{...e}):Qt(e.reportElementData.config.reportId)===!0?t.jsx(Og,{...e}):sr(e.reportElementData.config.reportId)===!0?t.jsx(Ng,{...e}):nn(e.reportElementData.config.reportId)===!0?t.jsx(Pg,{...e}):en(e.reportElementData.config.reportId)===!0?t.jsx(Fg,{...e}):null,Lg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,nestingLevel:p,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return kt(e,n,o,i,r,l,c,d,g,h,x);case"ac_group_report":return jt(e,n,o,i,r,l,c,u,d,g,h,x);case"section":return kn(e,n,o,i,r,l,c,u,d,g,h,x);case"section_with_ac_only":return St(e,n,o,i,r,l,c,u,d,g,h,x);case"calculated_section":case"calculated_section_type1":return jn(e,n,o,i,r,l,c,u,d,g,h,x);case"title_string_only":default:return null;case"timeframe_headers":case"timeframe_headers_with_forecast":return Ee(e,n,o,i,r,l,h,f);case"class":return Fi(e,n,o,i,r,l,c,u,d,g,p,h,x);case"ac_subaccount":return De(e,n,o,i,r,l,c,d,u,g,h,x);case"ac_subentity_total":return Ge(n,o,i,r,l,c,d,g,h);case"headers_loading_in_progress":return((w,m,b)=>w.element.kind!=="headers_loading_in_progress"?null:t.jsx(ri,{height:m,backgroundColor:b,numOfBalances:w.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((w,m,b)=>w.element.kind!=="loading_in_progress"?null:t.jsx(oi,{height:m,backgroundColor:b,title:w.element.title,numOfBalances:w.element.numOfBalances}))(o,i,r)}},Bg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,compareMode:p,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return kt(e,n,o,i,r,l,c,d,g,p,h);case"ac_group_report":return jt(e,n,o,i,r,l,c,u,d,g,p,h);case"ac_subaccount":return De(e,n,o,i,r,l,c,d,u,g,p,h);case"ac_group_subaccount":return bn(e,n,o,i,r,l,c,u,d,g,p,h);case"section":return kn(e,n,o,i,r,l,c,u,d,g,p,h);case"section_with_ac_only":return St(e,n,o,i,r,l,c,u,d,g,p,h);case"calculated_section":case"calculated_section_type1":return jn(e,n,o,i,r,l,c,u,d,g,p,h);case"title_string_only":default:return null;case"ac_subentity_total":return Ge(n,o,i,r,l,c,d,g,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ee(e,n,o,i,r,l,p,x)}},Ag=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,nestingLevel:p,compareMode:h,nodeClickHandler:x,onCompareModeChanged:f})=>{switch(o.element.kind){case"ac_report":return kt(e,n,o,i,r,l,c,d,g,h,x);case"ac_group_report":return jt(e,n,o,i,r,l,c,u,d,g,h,x);case"section":return ci(e,n,o,i,r,l,c,u,d,g,h,x);case"section_with_ac_only":return St(e,n,o,i,r,l,c,u,d,g,h,x);case"calculated_section":case"calculated_section_type1":return si(e,n,o,i,r,l,c,u,d,g,h,x);case"title_string_only":return sn(e,n,o,i,r,l,c,u,d,g,h,x);case"ac_subentity_total":return Ge(n,o,i,r,l,c,d,g,h);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ee(e,n,o,i,r,l,h,f);case"class":return Fi(e,n,o,i,r,l,c,u,d,g,p,h,x);case"ac_subaccount":return De(e,n,o,i,r,l,c,d,u,g,h,x);case"total":return di(e,n,o,i,r,l,h,d);case"headers_loading_in_progress":return((w,m,b)=>w.element.kind!=="headers_loading_in_progress"?null:t.jsx(ri,{height:m,backgroundColor:b,numOfBalances:w.element.numOfBalances}))(o,i,r);case"loading_in_progress":return((w,m,b)=>w.element.kind!=="loading_in_progress"?null:t.jsx(oi,{height:m,backgroundColor:b,title:w.element.title,numOfBalances:w.element.numOfBalances}))(o,i,r);default:return null}},Og=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,compareMode:p,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return((f,w,m,b,k,C,_,$,B,A,P)=>{if(m.element.kind!="ac_report"||m.element.data==null)return null;const V=m.element.data,D=ne((Te(m.config.reportId)===!0?ni(0,m.config.filterAccountsWithNilBalances):at(m.element.sectionType,"no_filter",m.config.filterAccountsWithNilBalances,m.config.filterAccountGroupsWithNilBalances)).acBalanceSelector(V),m.config.displayOrder,m.element.numOfBalances);return t.jsx(yc,{type:w,backgroundColor:k,isSticky:C,treeNodeId:f,height:b,accountBalances:D.balances,isCompareModeOn:m.config.mode==="this_period_vs_period_before",isForecastModeOn:m.config.mode==="actual_vs_forecast",isScrolling:_,isLeaf:$,isLastNode:B,compareMode:A,account:V,onAccountBalanceClick:P==null?void 0:(Y,X,ee)=>{P?.(Y,X,ee)}})})(e,n,o,i,r,l,c,d,g,p,h);case"ac_group_report":return((f,w,m,b,k,C,_,$,B,A,P,V)=>{if(m.element.kind!="ac_group_report"||m.element.data==null)return null;const D=m.element.data,Y=ne(at(m.element.sectionType,"no_filter",m.config.filterAccountsWithNilBalances,m.config.filterAccountGroupsWithNilBalances).acGroupBalanceSelector(D),m.config.displayOrder,m.element.numOfBalances);return t.jsx(sc,{type:w,backgroundColor:k,isSticky:C,treeNodeId:f,height:b,accountGroupName:D.accountGroupName,compareMode:P,accountGroupBalances:Y.balances,isScrolling:_,isOpen:$,isLeaf:B,isLastNode:A,onClick:X=>{V?.(X)}})})(e,n,o,i,r,l,c,u,d,g,p,h);case"ac_subaccount":return De(e,n,o,i,r,l,c,d,u,g,p,h);case"ac_group_subaccount":return bn(e,n,o,i,r,l,c,u,d,g,p,h);case"section":return ci(e,n,o,i,r,l,c,u,d,g,p,h);case"section_with_ac_only":return((f,w,m,b,k,C,_,$,B,A,P,V)=>{if(m.element.kind!="section_with_ac_only"||m.element.data==null)return null;const D=un(m.config.reportId,m.element.sectionType),Y=ne(m.element.data,m.config.displayOrder,m.element.numOfBalances);return t.jsx(hn,{type:w,backgroundColor:k,isSticky:C,treeNodeId:f,height:b,sectionName:m.element.title,sectionColor:D.color,sectionBalances:Y.balances,isScrolling:_,isOpen:$,isLeaf:B,isLastNode:A,compareMode:P,onClick:X=>{V?.(X)}})})(e,n,o,i,r,l,c,u,d,g,p,h);case"calculated_section":case"calculated_section_type1":return si(e,n,o,i,r,l,c,u,d,g,p,h);case"title_string_only":return sn(e,n,o,i,r,l,c,u,d,g,p,h);case"total":return di(e,n,o,i,r,l,p,d);case"ac_subentity_total":return Ge(n,o,i,r,l,c,d,g,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ee(e,n,o,i,r,l,p,x);default:return null}},Ng=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,compareMode:p,nodeClickHandler:h,onCompareModeChanged:x})=>{switch(o.element.kind){case"ac_report":return kt(e,n,o,i,r,l,c,d,g,p,h);case"ac_group_report":return jt(e,n,o,i,r,l,c,u,d,g,p,h);case"section":return kn(e,n,o,i,r,l,c,u,d,g,p,h);case"section_with_ac_only":return St(e,n,o,i,r,l,c,u,d,g,p,h);case"calculated_section":return jn(e,n,o,i,r,l,c,u,d,g,p,h);case"calculated_section_type1":return((f,w,m,b,k,C,_)=>{if(w.element.kind!="calculated_section_type1"||w.element.data==null)return null;const $=ne(w.element.data,w.config.displayOrder,w.element.numOfBalances);return t.jsx(Sl,{backgroundColor:b,isSticky:k,treeNodeId:f,heading:w.element.title,totalBalances:$.balances,height:m,isScrolling:C,isLastNode:_})})(e,o,i,r,l,c,g);case"title_string_only":return sn(e,n,o,i,r,l,c,u,d,g,p,h);case"ac_subentity_total":return Ge(n,o,i,r,l,c,d,g,p);case"timeframe_headers":case"timeframe_headers_with_forecast":return Ee(e,n,o,i,r,l,p,x);case"ac_subaccount":return De(e,n,o,i,r,l,c,d,u,g,p,h);case"ac_group_subaccount":return bn(e,n,o,i,r,l,c,u,d,g,p,h);default:return null}},Mg=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLeaf:d,isLastNode:g,isOpen:u,toggleCheckHandler:p})=>o.element.kind==="checkbox_and_name_only"?((h,x,f,w,m,b,k,C,_,$,B)=>{if(f.element.kind!="checkbox_and_name_only")return null;const A=f.element.data,P=f.config.isClassToBeFilteredOut?.(A.classId)===!1;return t.jsx(Hd,{type:x,backgroundColor:m,isSticky:b,treeNodeId:h,classId:A.classId,isChecked:P,isDisabled:!1,height:w,isScrolling:k,nestedClass:A,isOpen:C,isLeaf:_,isLastNode:$,showClassAccountNumber:f.config.showClassAccountNumber,onToggleCheck:B})})(e,n,o,i,r,l,c,u,d,g,p):null,Ig=({id:e,treeKind:n,reportElementData:o,height:i,backgroundColor:r,isSticky:l,isScrolling:c,isLastNode:d,compareMode:g,onCompareModeChanged:u})=>{switch(o.element.kind){case"loading_in_progress":case"spacer_row":return((p,h,x,f)=>{if(p.element.kind!=="loading_in_progress")return null;const w=Be(p.element.data,p.config.displayOrder).map(m=>Le(m));return t.jsx(Zd,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:w})})(o,i,r,l);case"timeframe_headers":return((p,h,x,f,w,m)=>{if(p.element.kind!=="timeframe_headers")return null;const b=Be(p.element.data,p.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",C=b.map(_=>Le(_));return t.jsx(Sh,{backgroundColor:w,isSticky:x,height:h,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,isCompareModeOn:p.config.mode==="this_period_vs_period_before"&&C.length>1,firstMonthOfFY:p.config.firstMonthOfFY,timeframe:k,timeframeTicks:C,sortKey:p.config.opexByVendorConfig?.sortKey,sortOrder:p.config.opexByVendorConfig?.sortOrder,dataAvailable:p.config.dataAvailable,bookCloseDate:p.config.bookCloseDate,compareMode:f,onCompareModeChanged:m,onSortOrderChanged:p.config.opexByVendorConfig?.onSortOrderChanged})})(o,i,l,g,r,u);case"total":return((p,h,x,f,w,m,b)=>{const k=x.element.data,C=x.config.mode==="this_period_vs_period_before",_=C?x.element.numOfBalances+2:x.element.numOfBalances+1,$=Gn(k,x.config.displayOrder,_,C);return t.jsx(Wh,{type:h,backgroundColor:b,isSticky:w,treeNodeId:p,height:f,isScrolling:m,totalBalances:$.balances,title:x.element.title,isAccountColumnShown:x.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:x.config.opexByVendorConfig?.isClassColumnShown??!0})})(e,n,o,i,l,c,r);case"vendor_row":return((p,h,x,f,w,m,b)=>{if(h.element.kind!="vendor_row"||h.element.data==null)return null;const k=h.element.data,C=h.config.mode==="this_period_vs_period_before",_=Gn(k,h.config.displayOrder,h.element.numOfBalances,C);return t.jsx(Jh,{type:p,backgroundColor:f,isSticky:w,height:x,isScrolling:m,vendor:k.vendor,accountBase:k.account,classBase:k.classBase,isLastNode:b,balances:_.balances,isAccountColumnShown:h.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:h.config.opexByVendorConfig?.isClassColumnShown??!0,onVendorNameAndBalanceClick:($,B)=>{h.config.opexByVendorConfig?.onVendorNameAndBalanceClicked($,B)}})})(n,o,i,r,l,c,d);case"title_string_only":return((p,h,x,f)=>{if(p.element.kind!=="title_string_only")return null;const w=Be(p.element.data,p.config.displayOrder).map(m=>Le(m));return t.jsx(nh,{backgroundColor:x,isSticky:f,height:h,isAccountColumnShown:p.config.opexByVendorConfig?.isAccountColumnShown??!0,isClassColumnShown:p.config.opexByVendorConfig?.isClassColumnShown??!0,timeframeTicks:w})})(o,i,r,l);default:return null}},Wg=({id:e,treeKind:n,reportElementData:o,height:i,isOpen:r,isSticky:l,isScrolling:c,isLastNode:d,backgroundColor:g,nodeClickHandler:u})=>{const{config:p}=o;switch(o.element.kind){case"spacer_row":default:return null;case"timeframe_headers":return((h,x,f,w,m,b,k)=>{if(h.element.kind!=="timeframe_headers")return null;const C=h.element.data;return t.jsx(Ma,{reportId:h.config.reportId==="accounts_payable_aging"?"accounts_payable_aging":"accounts_receivable_aging",agingPeriods:C,backgroundColor:f,isSticky:w,height:x,sortKey:m,sortOrder:b,onSortOrderChanged:k})})(o,i,g,l,p.agingReportConfig?.sortKey,p.agingReportConfig?.sortOrder,p.agingReportConfig?.onSortOrderChanged);case"total":return((h,x,f,w,m)=>{const b=x.element.data;return t.jsx(Ja,{type:h,backgroundColor:w,isSticky:m,height:f,totalBalances:b,isIndented:x.config.reportId==="accounts_receivable_aging",title:x.element.title})})(n,o,i,g,l);case"aging_report_row":return((h,x,f,w,m,b,k,C,_,$)=>{if(x.element.kind!=="aging_report_row")return null;if(x.config.reportId==="accounts_payable_aging"){const A=x.element.data;return t.jsx(Ca,{backgroundColor:C,isLastNode:b,isScrolling:k,isSticky:m,height:f,balances:A.apAgingBalances,vendor:A.vendor,total:A.total,onEntityNameClick:_})}const B=x.element.data;return t.jsx(_a,{treeNodeId:h,backgroundColor:C,isLastNode:b,isScrolling:k,isSticky:m,isOpen:w,height:f,metadata:x.element.metadata,balances:B.arAgingBalances,nestedCustomer:B,total:B.total,totalWithChildren:B.totalWithChildren,onEntityNameClick:_,onClick:$})})(e,o,i,r,l,d,c,g,p.agingReportConfig?.onEntityNameClick,u);case"ac_subentity_total":return((h,x,f,w,m)=>{if(h.element.kind!=="ac_subentity_total")return null;if(h.config.reportId==="accounts_receivable_aging"){const b=h.element.data;return t.jsx(Ga,{backgroundColor:m,isScrolling:w,isSticky:f,height:x,metadata:h.element.metadata,nestedCustomer:b,total:b.totalWithChildren,noMarginForEntity:!0})}return null})(o,i,l,c,g)}},Pg=({id:e,reportElementData:n,height:o,backgroundColor:i,isSticky:r,isScrolling:l,isLeaf:c,isLastNode:d,isFirstNode:g,isOpen:u,onFluxBalanceClick:p,nodeClickHandler:h,hoveredParentIdProps:x})=>{switch(n.element.kind){case"flux_vendor_account_class_row":return((f,w,m,b,k,C,_,$,B)=>{if(!pn(w,"flux_vendor_account_class_row"))return null;const A=w.element.data,P=wi(A),V=w.element.metadata.vendorId;return t.jsx(ys,{backgroundColor:m,isSticky:b,treeNodeId:f,balances:P,varianceAmount:A.varianceAmount,variancePercentage:A.variancePercentage,currency:A.currency,isScrolling:k,isLeaf:C,isLastNode:_,nodeMetadata:w.element.metadata,accountAndClass:A,onAccountAndClassBalanceClick:()=>B?.(V),isHoveredByParent:$?.hoveredParentId===V})})(e,n,i,r,l,c,d,x,p);case"flux_vendor_row":return Fd(e,n,i,r,l,u,c,d,g,x,h);case"section":return zd(e,n,o,i,r,l,u,c,d,h);case"timeframe_headers":return((f,w,m)=>{if(f.element.kind!=="timeframe_headers")return null;const b=Be(f.element.data,f.config.displayOrder),k=b.length>0?b[0].balanceTimeFrame:"month",C=b.map(_=>Le(_));return t.jsx(ed,{isSticky:m,height:w,firstMonthOfFY:f.config.firstMonthOfFY,timeframe:k,timeframeTicks:C,isBulkSelected:f.config.fluxAnalysisConfig?.reviewOpExIds.length===20,onSortOrderChanged:(_,$)=>{f.config.fluxAnalysisConfig?.setIsSortApplied?.(!0),f.config.fluxAnalysisConfig?.onSortOrderChanged(_,$)},sortOrder:f.config.fluxAnalysisConfig?.sortOrder,sortKey:f.config.fluxAnalysisConfig?.sortKey})})(n,o,r);case"total":return((f,w)=>{if(f.element.kind!=="total")return null;const m=f.element.data;return t.jsx(hd,{type:"name+balances_actual",title:f.element.title,totalBalances:m.balances,varianceAmount:m.varianceAmount,variancePercentage:m.variancePercentage,currency:m.currency,height:w})})(n,o);case"loading_in_progress":return(f=>f.element.kind!=="loading_in_progress"?null:t.jsx(ks,{}))(n);case"headers_loading_in_progress":return(f=>f.element.kind!=="headers_loading_in_progress"?null:t.jsx(zs,{}))(n);default:return null}},Fg=({reportElementData:e,height:n,isSticky:o,isLastNode:i})=>{switch(e.element.kind){case"timeframe_headers":return function(r,l){if(r.element.kind!=="timeframe_headers")return null;const c=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers,d=r.element.data,g=d.accountIDs.length===0;return t.jsx(Dr,{sectionTitle:c.section[d.sectionId].title,isLoading:g,isSticky:l,height:nt("timeframe_headers")})}(e,o);case"loading_in_progress":return t.jsx(_r,{height:nt("loading_in_progress")});case"total":return((r,l,c)=>{const d=r.element.data;return t.jsx(ra,{isSticky:c,height:l,sectionData:d})})(e,n,o);case"section":return t.jsx($r,{height:nt("section")});case"title_string_only":return((r,l)=>{const c=r.element.data,d=M.getLocalizedStrings().expenseAutomation.accountRecon.reconciliation.headers;return t.jsx(Rr,{height:l,title:d.section[c.sectionId].title})})(e,n);case"ac_group_report":return((r,l,c)=>{const d=r.element.data,g=r.config.accountReconciliationConfig?.selectedDrawerAccountId!=null&&d.accountReconEntity.account.accountId===r.config.accountReconciliationConfig?.selectedDrawerAccountId;return t.jsx(gr,{height:l,accountRecon:d,isLastRow:c,isSelectedRow:g,onReviewClicked:r.config.accountReconciliationConfig?.onReviewClicked,onConnectClicked:r.config.accountReconciliationConfig?.onConnectClicked,onReconnectClicked:r.config.accountReconciliationConfig?.onReconnectClicked,onOpenDrawerClicked:r.config.accountReconciliationConfig?.onOpenDrawerClicked,onStatementAddClicked:r.config.accountReconciliationConfig?.onStatementAddClicked})})(e,n,i);default:return null}};function uo(e,n,o,i){return{data:{defaultHeight:Sn(e.reportElementData.config.reportId,e.reportElementData.element.kind,e.isFirstNode),id:e.id,isLeaf:e.children.length===0,isFirstNode:e.isFirstNode??!1,isLastNode:e.isLastNode,isOpenByDefault:i??zg(e.reportElementData.config.reportId,e.reportElementData.element.kind,o,e.reportElementData.config.reportFormat),nestingLevel:o,treeKind:n,reportElementData:e.reportElementData},treeKind:n,nestingLevel:o,node:e}}function Sn(e,n,o){return Jt(e)===!0?function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":return S[8];case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":case"total":case"loading_in_progress":case"class":case"checkbox_and_name_only":return S[6];case"timeframe_headers":case"headers_loading_in_progress":return S[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):Qt(e)===!0||Te(e)===!0?function(i){switch(i){case"section":case"ac_group_report":case"ac_group_subaccount":case"calculated_section":case"calculated_section_type1":case"section_with_ac_only":case"title_string_only":case"total":return S[8];case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"loading_in_progress":case"class":case"checkbox_and_name_only":return S[6];case"timeframe_headers":case"headers_loading_in_progress":return S[11];case"timeframe_headers_with_forecast":return 98;default:return 0}}(n):Xt(e)?function(i){switch(i){case"timeframe_headers":return S[10];case"aging_report_row":case"ac_subentity_total":return S[6];case"total":case"spacer_row":return S[8];default:return S[0]}}(n):en(e)?nt(n):tn(e)?function(i){switch(i){case"timeframe_headers":return S[11];case"vendor_row":case"loading_in_progress":return S[6];case"total":case"spacer_row":case"title_string_only":return S[8];default:return 0}}(n):nn(e)?xi(n,o):function(i){switch(i){case"section":case"section_with_ac_only":case"calculated_section":case"ac_group_report":case"ac_group_subaccount":return S[8];case"calculated_section_type1":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"total":return S[6];case"title_string_only":return 67;case"timeframe_headers":return S[11];default:return S[0]}}(n)}function zg(e,n,o,i){return Jt(e)?function(r,l,c=0){const d=["summary"];switch(r){case"section":case"section_with_ac_only":case"title_string_only":return!d.includes(l);case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_report":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"ac_group_subaccount":case"ac_subaccount":case"ac_subentity_total":return!(d.includes(l)||l==="detailed"&&c>0);case"class":return!(l==="detailed"&&c>0);case"checkbox_and_name_only":return!0}}(n,i,o):Qt(e)||Te(e)===!0?function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"ac_group_report":case"ac_group_subaccount":case"ac_subentity_total":case"ac_subaccount":case"ac_report":case"title_string_only":return!c.includes(l);case"calculated_section":case"calculated_section_type1":case"total":case"timeframe_headers":case"timeframe_headers_with_forecast":default:return!1;case"class":case"checkbox_and_name_only":return!0}}(n,i):!!Xt(e)||!tn(e)&&(nn(e)?function(r){return["section","flux_vendor_account_class_row","flux_vendor_row"].includes(r)}(n):en(e)?ur():function(r,l){const c=["summary","detailed"];switch(r){case"section":case"section_with_ac_only":case"calculated_section":case"calculated_section_type1":case"ac_group_report":case"ac_group_subaccount":case"ac_report":case"ac_subaccount":case"ac_subentity_total":case"title_string_only":return!c.includes(l);default:return!1}}(n,i))}const Tg=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 Vg({height:e,backgroundColor:n,headers:o,treeKind:i,isSticky:r,compareMode:l,onCompareModeChanged:c}){return o.length===0?null:(o.forEach(d=>{if(d.children.length>0)throw Error("Sticky headers can't have children")}),t.jsx(Tg,{heightValue:e,bgColor:n,"data-testid":y("sticky-header-report-tree"),children:o.map((d,g)=>t.jsx(zi,{id:d.id,treeKind:i,reportElementData:d.reportElementData,height:Sn(d.reportElementData.config.reportId,d.reportElementData.element.kind,d.isFirstNode),backgroundColor:n,isSticky:r,isScrolling:!1,isLeaf:!0,isLastNode:o.length-1===g,isFirstNode:!1,isOpen:!0,nestingLevel:1,nodeClickHandler:()=>{console.log("Node click handler is called")},compareMode:l,onCompareModeChanged:c},d.id))}))}const Ti=z.createContext(void 0);function Dg({height:e,kind:n,rootNodes:o,compareMode:i,isSticky:r,backgroundColor:l,treeNodePadding:c,treeClassName:d,treeStyle:g,treeRef:u,treeOuterElementRef:p,infiniteLoadingProps:h,variableNodeHeightTree:x,onNodeClick:f,onCompareModeChanged:w,scrollPosition:m,onScroll:b,nodeOpenStatus:k,onNodeCollapseToggled:C,onTreeInnerElementHeightChanged:_,onToggleCheck:$,hoveredParentIdProps:B}){const A=z.useRef(null),P=z.useRef(null),V=On(x?.prevFetchState),D=On(x?.prevRefreshFetchState),[Y,X]=z.useState(0),ee=p??P,Z=u??A,de=I(),[fe,Cn]=z.useState(void 0),[_n,vn]=z.useState(!1),[Re,$n]=z.useState(k),Ln=(F,U)=>{$n(Object.assign({},Re,{[F]:U})),C?.(F,U)},Bn=F=>{if(o.contentNodes.length>0)if(Object.keys(F).length>0){const U={};Object.keys(F).forEach(he=>{U[he]={open:F[he]}}),Z?.current?.recomputeTree(U)}else{const U=o.contentNodes[0].id;Z?.current?.recomputeTree({[U]:{open:!0}})}};z.useLayoutEffect(()=>{if((!Nn(m,fe)||fe==null)&&ee.current!=null){const F=m?.scrollLeft==null?de==="small"?0:ee.current.scrollWidth:m?.scrollLeft;if(m!=null){const U={scrollTop:m.scrollTop,scrollLeft:F};Cn(U),F!==m?.scrollLeft&&b?.(U)}ee.current.scroll({left:F,top:m?.scrollTop})}},[m]),z.useEffect(()=>{Nn(k,Re)||($n(k),Bn(k))},[k]),z.useEffect(()=>{const F=ee.current,U=Hi(()=>{if(F!=null&&(fe==null||F.scrollLeft!==fe.scrollLeft||F.scrollTop!==fe.scrollTop)){const he={scrollLeft:F.scrollLeft,scrollTop:F.scrollTop};Cn(he),b?.(he)}},50);return F?.addEventListener("scroll",U),()=>{F?.removeEventListener("scroll",U)}},[ee,fe,b]),z.useEffect(()=>{if(o.contentNodes.length>0){Bn(Re);const F=o.contentNodes[0].reportElementData.config.mode==="actual_vs_forecast";F!==_n&&vn(F)}},[_n,vn,o,Z,ee]),z.useEffect(()=>{(x!=null&&V==="In-Progress"&&x.fetchState==="Completed"&&x.isSortApplied||x!=null&&D==="In-Progress"&&x.refreshFetchState==="Completed")&&(x.reducedFetchState==="Completed"&&x.setIsSortApplied(!1),X(Y+1))},[Y,x?.fetchState,x?.isSortApplied,V,D,x]);const Ct=z.useRef(),[Vi,Di]=z.useState(void 0),An=z.useCallback(((F,U,he)=>function*(){for(let pe=0;pe<U.length;++pe)yield uo(U[pe],F,0,he[U[pe].id]??void 0);for(;;){const pe=yield;for(let He=0;He<pe.node.children.length;++He)yield uo(pe.node.children[He],F,pe.nestingLevel+1,he[pe.node.children[He].id]??void 0)}})(n,o.contentNodes,Re),[n,o]),Gi={rootNodes:o,treeNodePadding:c,backgroundColor:l,kind:n,isSticky:r,compareMode:i,onCompareModeChanged:w};return t.jsx(Ti.Provider,{value:Gi,"data-testid":y("report-tree"),children:h==null?t.jsx(Mn,{className:d,style:g,ref:Z,innerRef:Ct,outerRef:ee,innerElementType:Gt,treeWalker:An,onItemsRendered:()=>{const F=Ct.current;F!=null&&F.clientHeight>0&&F.clientHeight!=Vi&&(Di(F.clientHeight),_?.(F.clientHeight))},height:e,width:"100%",children:F=>t.jsx(ho,{...F,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:Ln,compareMode:i,onCompareModeChanged:w,onToggleCheck:$})}):t.jsx(Ki,{isItemLoaded:h.isItemLoaded,itemCount:h.itemCount+1,loadMoreItems:h.loadMoreItems,children:({onItemsRendered:F,ref:U})=>t.jsx(Mn,{className:d,style:g,ref:U,innerRef:Ct,outerRef:ee,innerElementType:Gt,treeWalker:An,onItemsRendered:F,height:e,width:"100%",children:he=>t.jsx(ho,{...he,isSticky:r.isStickyName,backgroundColor:l,treeNodePadding:c,onNodeClick:f,onNodeCollapseToggled:Ln,compareMode:i,onCompareModeChanged:w,onToggleCheck:$,hoveredParentIdProps:B})},Y)})})}const Gt=z.forwardRef((e,n)=>{const{children:o,style:i,...r}=e,{rootNodes:l,treeNodePadding:c,backgroundColor:d,kind:g,isSticky:u,compareMode:p,onCompareModeChanged:h}=z.useContext(Ti),x=l.headerNodes.reduce((b,k)=>b+Sn(k.reportElementData.config.reportId,k.reportElementData.element.kind,k.isFirstNode),0),f=c?.left,w=c?.right,m=s.sp8;return t.jsxs("div",{ref:n,style:{...i,width:"auto",minWidth:"100%",paddingLeft:f,paddingRight:w,marginBottom:m},...r,children:[t.jsx(Vg,{height:x,backgroundColor:d,headers:l.headerNodes,treeKind:g,isSticky:u.isStickyHeader,compareMode:p,onCompareModeChanged:h}),o]})});Gt.displayName="stickyInnerElementType";const Gg=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 ${te.scrollbarBoxShadow};
2835
- -webkit-box-shadow: inset 0 0 2px ${te.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 Zg({rootNodes:e,type:n,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l,onAccountClick:c,infiniteLoadingProps:d,variableNodeHeightTree:g,hoveredParentIdProps:u,onCompareModeChanged:p,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:w,onReportTableHeightChanged:m,onToggleCheck:b}){return t.jsx(Ei,{children:({height:k,width:C})=>t.jsx(Gg,{"data-testid":y("report-tree-container"),height:k,width:C,paddingLeft:l?.left??0,bgColor:r,children:t.jsx(Dg,{"data-testid":y("report-tree"),treeClassName:"content-scroll",height:k,kind:n,rootNodes:e,compareMode:o,isSticky:i,backgroundColor:r,treeNodePadding:l!=null?{left:0,right:l?.right}:void 0,infiniteLoadingProps:d,variableNodeHeightTree:g,hoveredParentIdProps:u,onNodeClick:c==null?void 0:(_,$,B,A)=>{B!=null&&A!=null&&c(B,A)},onCompareModeChanged:p,scrollPosition:h,onScroll:x,nodeOpenStatus:f,onNodeCollapseToggled:w,onTreeInnerElementHeightChanged:m,onToggleCheck:b})})})}export{ne as D,Zg as I,J,Ug as R,Ve as V,Pe as a,at as l,zc as n,qg as r,wn as x};