@zeniai/web-cockpit-ui 1.15.16-dev → 1.15.17-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 (290) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-CwAQrPpG.js → ACHDetailsPage-cAgIhKJs-bGTsqigs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-BEYLvxG6.js → AIPerformancePage-BPwI4kZG-BTP4khzH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-fpNJ2YsG.js → AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-BkStU3hi.js → AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-DTTeCxce.js → AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js} +5 -5
  7. package/dist/assets/{AccountRow-Bk_25FCy-BSk-hvqy.js → AccountRow-C9lnDVNf-86hTjbuw.js} +8 -8
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-BvuQll0f.js → AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-BQwLxI1X.js → AddToWalletPage-CgCHdO6c-CiVYqd0C.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-CTkT1Zm8.js → AgingReportsPage-B0NKfFq5-Bk4x7HpE.js} +4 -4
  12. package/dist/assets/{AllUserItems-XWDuiug6-DLAl8Xcx.js → AllUserItems-D6uMCcjF-CS_wO3mh.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-DPf2WuMd.js → ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js} +2 -2
  14. package/dist/assets/{AppBasePage-B7_L4R6d-BHqVR5DP.js → AppBasePage-BnfCjFJA-CQeMBbMI.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DSX1364T-pcNTv-EE.js → AppDrawerContent-CwBFjBnr-CKjzuecx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-C5ILQVYd.js → ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js} +2 -2
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-DBWSBarK.js → ArAgingChart-6qcRcKoz-MYhKnyKG.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-G9J2gxqo.js → ArAgingDetailPage-DmUWtQsX-KXzejd7L.js} +2 -2
  19. package/dist/assets/{AttachmentView-Bsa0u92o-CQtMxB6c.js → AttachmentView-B0oZITps-CNLEqH0L.js} +2 -2
  20. package/dist/assets/{BankAccountSection-BkOlwayA-gKroDONq.js → BankAccountSection-C8G2PrLh-OgTv2VaB.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-uMOXLH0B-Dmm_2ZeO.js → BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-BLDqC2se.js → BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-QONja72z.js → BillDetailPage-BuCOe4eB-DBZDvMBw.js} +4 -4
  24. package/dist/assets/BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-DhCNQwaz.js → BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-CH-kAnh9.js → BillPayPromoPage-Dcly8epm-DNaDxuq-.js} +3 -3
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-BAILYdpq.js → BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BygJjDSp-ZMuXzR1y.js → BillingSettingsPage-Djx3EUQO-2EyCLMZp.js} +11 -11
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-Cq3ZfsO5.js → BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-Dz-uzrl9.js → BoxItem-ClRdlCWM-B_aqSV-L.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-C63pUk4d-CY7SQzHf.js → BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-S0p2Dvhi.js → CardNumberSubText-CHr49_cJ-9Ya6XjXp.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-C2QB22yP.js → CashbackDetailPage-BNHzTYwa-BdAtNCNi.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-Cbmrl3gL.js → ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js} +34 -34
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-DQe2h7t9.js → ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-CXpYrtrT.js → ChargeCardListTable-DBYEXr_N-7b006WJ7.js} +28 -28
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-CtFjNufh.js → ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js} +18 -18
  38. package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-DW3nMBQs.js → ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-D3csdiBJ.js → ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js} +6 -6
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-B_co6EhK.js → CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js} +9 -9
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-CTcsoqje.js → CollapsableReportTable-3luMEAJg-BroWF-FL.js} +60 -60
  43. package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-CBJ-_ogf.js → CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-gEElvrvK.js → CompanyPassportCard-FgYHweiL-B5gr1lJ_.js} +6 -6
  45. package/dist/assets/{CompanyPassportPage-D2ALJDF_-B6f-pO9X.js → CompanyPassportPage-B8LoE1o9-B6zE-V-E.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-1FrtaPxU.js → CompleteProfile-6pDQ6JjU-C7odNMQ5.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DxHzdDPp-Be75-rA7.js → ConfettiBurst-BAIozwVU-BMA4g7cW.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DePlTE9o.js → ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-Cw0_CLuv.js → CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CprMPTAM.js → CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js} +5 -5
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-XRHzVtOt.js → CurrencySelectField-DL4q5vKR-DqpW0Wz5.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-CzGOfqlu.js → CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BsLS_Cn1.js → CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-C5ajOfPI.js → CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-BrVAkLSK.js → CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js} +7 -7
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js +202 -0
  58. package/dist/assets/{Dashboard-CCV0_aCP-BXhr1WNF.js → Dashboard-DAP7UzjW-DBsJoK5k.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-DJMMkkGF.js → DashboardReportPage-iAA_QiN2-BfmuWrMe.js} +10 -10
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-BAKkeTFg.js → DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-cYRUSlBG.js → DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js} +2 -2
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-C_3AVCeF.js → DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-uEIGVaj9.js → DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-BLty8T-n.js → DownloadOverlay-C8byijvE-DCI_09Q4.js} +1 -1
  65. package/dist/assets/{DrawerPage-Clki97FA-BA9PorYC.js → DrawerPage-DMQ5MoIw-BlXGV-xV.js} +12 -12
  66. package/dist/assets/{EditPeoplePage-CKS_aEZm-D119ukKN.js → EditPeoplePage-D7TQFFBG-Djz1uJLh.js} +3 -3
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-DpLpJWez.js → EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js} +1 -1
  68. package/dist/assets/EntityDetailPage-20BKV_TK-B5sqJOYK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-t3_MJbgk.js → EntitySummarySection-6JSSyIPA-K01fPehF.js} +24 -24
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-CJviw0EF.js → ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js} +8 -8
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-DDA_nGZx.js → ExpenseAutomationPage--kONBcsX-DlY4RThk.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-BPs_d41G.js → ExpressPayPage-a31-5Bgz-B-4aw0li.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-BflQGHBv.js → FeaturePreviewPage-z8BJQeL--ChibcOOA.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-CiBKuMZv.js → FollowStepsSection-Bl933px0-DXKlKasr.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-2_WHm0aW.js → GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js} +7 -7
  76. package/dist/assets/{InformationCardStack-CU4Moqky--vtJfmXM.js → InformationCardStack-BTWe4X6t-DdN7cWvp.js} +2 -2
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ--_fLkoGW.js → InsightsCardStack-CoSz_FKI-xRb_a3yi.js} +8 -8
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-NjJemZo-.js → InsightsSection-DEnkGYD8-BV7sZQsr.js} +4 -4
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-BeC7UsBa.js → IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-C4XmzhP5.js → InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js} +6 -6
  81. package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-Ca744cyt.js → InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js} +2 -2
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-C2ITeVTl.js → InviteFormPage-B2Rl23Qb-D49rnAc4.js} +17 -17
  83. package/dist/assets/{InvitePageListView-DfpJBZru-tcIB_WKy.js → InvitePageListView-E_2j_tF7-BsS6FATD.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-C5Qgk24s-WY8vJMhk.js → InvitePeoplePage-CljSsdaM-DHNLTMCH.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BO1i-e_D-BEHL-1J7.js → InvoiceUploadSection-drGgAU5w-CP2A3IhR.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-x--Yc1yG.js → IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js} +17 -17
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-C-QRaLS5.js → LabeledAddressValue-BjCojNni-CsHQb5xA.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-Chc-QlAF.js → LabeledAddressValueField-DyHTdGlm-CErilABA.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-IUa4evUP.js → LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-DKxnjH2w.js → LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-ZlY5YONf.js → LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js} +5 -5
  92. package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-B17ex07S.js → LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js} +2 -2
  94. package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-ByxiVL3j.js → LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js} +1 -1
  95. package/dist/assets/{LabeledText-38fqkkE--Cee_T29J.js → LabeledText-CRJr2zA8-DRZ423PA.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-BHp0iG9D.js → LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-Dic3e3FJ.js → LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js} +7 -7
  98. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Bsoo2mEs.js → LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js} +1 -1
  99. package/dist/assets/{LockCardPage-BCqN4K17-Cjzeji2k.js → LockCardPage-CgCv-EKl-CipF6lcu.js} +9 -9
  100. package/dist/assets/{LowBalancePopup-BPk1-eAb-DFTxz9st.js → LowBalancePopup-OUWtUPdo-DRkjFCjE.js} +1 -1
  101. package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-BjRMFjlF.js → MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-Dmq45H_s-CjyySHTi.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-CfQVHlUR.js → MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-CT3LLyZc.js → MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-8yBXAre6-DacQsI6-.js → MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js} +4 -4
  110. package/dist/assets/{NavBarWithPicker-C3LVyiC9-etzEx9wd.js → NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js} +4 -4
  111. package/dist/assets/{NavigationArrow-NuJEpE7O-D8kY8llG.js → NavigationArrow-CNO4O4XS-DUm9WGAp.js} +1 -1
  112. package/dist/assets/{NavigationDots-C7Na64B9-CVWaz9qo.js → NavigationDots-BX9DbCj7-RHGokei7.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-FAQYGhqe.js → NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js} +29 -29
  114. package/dist/assets/NoDataChart-JfED3unL-jJumSwoX.js +26 -0
  115. package/dist/assets/NoDataTable-BFpO3ZtS-ubjUd8M_.js +8 -0
  116. package/dist/assets/{NotFoundPage-RjXioqc8-DtIGcQuh.js → NotFoundPage-D_HhIdYv-DyNtigHQ.js} +6 -6
  117. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-CrTfhQjB.js → NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js} +4 -4
  118. package/dist/assets/{NotificationsListConfig-C6_ap0JT-D8w6YoUC.js → NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DOM-Gf5P-DnumyiFl.js → NotificationsPage-7HqRmokr-0AvCCTrK.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CTuBB827-C0LLpOUj.js → OpExByVendorPage-CwD1U9q_-idpf-eH0.js} +1 -1
  121. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2c2jURk.js +11 -0
  122. package/dist/assets/{PandLWithForecastPage-BXaENYdR-D65iSrrB.js → PandLWithForecastPage-CRkDr0QK-D1powlVT.js} +4 -4
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-DFq5LHyH.js → PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js} +6 -6
  124. package/dist/assets/{PeoplePage-BlyVVthI-D_1cj1g5.js → PeoplePage-D5eQETB2-DZx25X-Y.js} +1 -1
  125. package/dist/assets/{Preview-DYusR3hO.js → Preview-Bfns_dDG.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CAcPH--E-Bb_qjCmp.js → ProductsCarousel-BXPXaIWg-Av-oVPlG.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BVwZMVeE-B84_P5r4.js → PromoBaseCards-C-S0ckZq-DcP7gArA.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-CMjuhlXs.js → QBOConnectionDialog-qqbamtpL-BeJJQ440.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DQjol-D0-eqxvZA5D.js → QBOSetupSection-CZu_mtMP-CZBINdYC.js} +4 -4
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js +32 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-CYC590wb.js → ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js} +4 -4
  132. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-wwjwvRb9.js → ReimbursementDetailPage-DXMDyCop-DlZGIADX.js} +4 -4
  133. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-LLEMYe4d.js → ReimbursementPromoPage-DGXHkiBN-DLifue2f.js} +7 -7
  134. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DDKfdVM2.js → ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CF6p2IJ7.js → ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js} +1 -1
  136. package/dist/assets/{ReloadCard-V_tv6YLR-B4Af3G_4.js → ReloadCard-BJke_yPt-D_L8D7X-.js} +6 -6
  137. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-Dlv8mUdn.js → ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js} +3 -3
  138. package/dist/assets/{ReportsPage-BJOH1wgv-CO7zRrKg.js → ReportsPage-bmKftmYF-NgXuxPpu.js} +1 -1
  139. package/dist/assets/{RevenueChart-C_tSBw_N-BD0DJwPU.js → RevenueChart-DjTdsbym-CUUEbo6t.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CScPf4w3-ByB3b1ie.js → ReviewDetailsPage-NFOdusAU-CVH2L4to.js} +6 -6
  141. package/dist/assets/{ReviewOverlay-BQVwPzKa-ddzk5bgf.js → ReviewOverlay-Q8tlLMbm-BLu76gBy.js} +20 -20
  142. package/dist/assets/{RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js → RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js} +3 -3
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-O0hb5LF0.js → ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-DOCtWqTf.js → ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-zvxwe9e1.js → ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js} +14 -14
  146. package/dist/assets/{ScreenRoutes-YzeouUfS.js → ScreenRoutes-0NyWgCAY.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-AVL_16HQ-j-o6nNSY.js → SetUpAccountSection-BCoHzvyG-CzNKWW7X.js} +1 -1
  148. package/dist/assets/{SignIn-BLUwTp1l-BTGTjmO9.js → SignIn-k3DDmpFU-BAnREigf.js} +14 -14
  149. package/dist/assets/SignInScreen-BOrZAIYm.js +1 -0
  150. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-QKyzE-ot.js → SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-CND_3E3i.js → SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js} +16 -16
  152. package/dist/assets/{SpendManagementSection-DZaP5ai6-C9tEMxFA.js → SpendManagementSection-BRp2eDfv-DVKGvM7g.js} +8 -8
  153. package/dist/assets/{StatementItem-D2Fx65LN-CJdCyRP1.js → StatementItem-9DHoMBjx-DlzvIjc2.js} +2 -2
  154. package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +58 -0
  155. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-Dj5TyEni.js → StatusSwitcher-B5nSXHv6-DTMRsMtw.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BXZxKeq9-B2Zwj5g3.js → SubTabSwitcher-BPSCR7GS-CQQ30d6t.js} +3 -3
  157. package/dist/assets/{SummaryCard-194UToy6-UI_LM1oG.js → SummaryCard-DdYMAiws-C4w7QxN_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-zcxDUo0t-Do3_cxqD.js → TaskManagementPage-9OEooDk9-BnhlYqUu.js} +21 -21
  159. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-uGCucrEy.js → TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-Dby2t82a.js → TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js} +6 -6
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-Ba9NENkn.js → TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js} +2 -2
  162. package/dist/assets/{TopExCard-CBua66Cj-iZDx6oGD.js → TopExCard-CDAkgH2B-DQW-zWxw.js} +4 -4
  163. package/dist/assets/{TopExDetailPage-DtMA-XMp-BkiYCTbM.js → TopExDetailPage-BN9IdTkO-DE8PmHT3.js} +11 -11
  164. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-B6EDUUtr.js → TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js} +5 -5
  165. package/dist/assets/{TransactionDetailPage-CeKaduBe-w8WXAz1Q.js → TransactionDetailPage-DSR3itvE-B47s770o.js} +1 -1
  166. package/dist/assets/{TransactionList-CSx8ZCZ--fRx-iJTn.js → TransactionList-wLBz-A1j-R5pqCBUj.js} +7 -7
  167. package/dist/assets/{TransactionListBig-B4cNQY2d-jRs-SXs3.js → TransactionListBig-BA00B8Vn-B52eXfHk.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DHr64V-b-Bgsdc044.js → TransactionListPage-Dyi4SMpD-Bm97EAJv.js} +2 -2
  169. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-fUCL3Z3e.js → TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js} +3 -3
  170. package/dist/assets/{TransferDrawerPage-C91TQwZi-CLRJKfIG.js → TransferDrawerPage-GnqDJJ7x-u45NHhBy.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-BBlPDTVn.js → TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js} +14 -14
  172. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-DJZXY5PM.js → TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-taTRE54D-BRQPl-FH.js → TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-BVmTKq55.js → TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js} +2 -2
  175. package/dist/assets/{TrendChart-DATgAEKG-D5uXuHxg.js → TrendChart-mamZxFEf-DPlJCKYL.js} +2 -2
  176. package/dist/assets/{TrendWithTransactions-DqPFuOvC-4qpshT4h.js → TrendWithTransactions-fGuXIDf7-HyuIbA66.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-B0137uG5.js → UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-Da_V8y5a.js → UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-DXBSIbWE.js → UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BpkAiYTA-52BaGnWz.js → Vendor2FAPopup-BreN6fS3-FjXbhU9D.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DY4iaLtz-BtWSn42W.js → VendorDetailPage-DXKn3qSR-Di8ThCGh.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-BePP9h_p.js → VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-BwVZUQk9.js → VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js} +32 -32
  185. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-Bbp8yC5s.js → VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js} +21 -21
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-CRCBgtxB.js → VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js} +4 -4
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D65ewlO6-C249PD4b.js → VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js} +3 -3
  189. package/dist/assets/{VerifyDevice-B1_jgwgY-CLr_hT2k.js → VerifyDevice-DxoL8hYf-Cowpahhc.js} +1 -1
  190. package/dist/assets/{VideoPlayer-vWSXteQ6-fekEOFO-.js → VideoPlayer-ByXKIag5-BZsoWnFe.js} +2 -2
  191. package/dist/assets/{VideoPopup-CdsmU6H4-BPO5jUC8.js → VideoPopup-DybLGmZL-CNsVI5bc.js} +3 -3
  192. package/dist/assets/{WarningsDrawerPage-CjgOsD00-De28p6M4.js → WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js} +3 -3
  193. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-COe08RHM.js → ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js} +17 -17
  194. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-Ds9pwvuL.js → ZeniAccountListViewPage-CWvKejM--BPGukJA_.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-BqDqY_na.js → ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-BhWQ-XmY.js → ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js} +5 -5
  197. package/dist/assets/{ZeniAccountSetupPage-B20DHYex-D-hB-cgI.js → ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-BROHmszx-BFJ7fRMA.js → ZeniCopyright-CyBZnbZa-D5SmAZYL.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-Cq4B23lv.js → ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-AfkxTSja.js → add-to-wallet-DgdBD8_G-l6e6C-pa.js} +1 -1
  201. package/dist/assets/{analytics-Dz3HJTKp.js → analytics-DGcxWyl6.js} +1 -1
  202. package/dist/assets/analyticsHelper-BcBQi1qY.js +1 -0
  203. package/dist/assets/{analyticsHelper-FJ-cS8qS-D_9plNYH.js → analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DDEpjXQ7.js → arrow-south-east-round-PEovUgvH-C0A9x354.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-CB2yKaeg.js → auto-transfer-rule-mbafm5D3-CC0rbz99.js} +1 -1
  206. package/dist/assets/chartTypes-CnipzTeX-DGSU_TZ0.js +1 -0
  207. package/dist/assets/{commonDimensions-BpYNnQtf-GFURsh40.js → commonDimensions-DmFc7WqO-CxyyXmLy.js} +1 -1
  208. package/dist/assets/{commonTypes-BVbA7QjV-C2OAdMb3.js → commonTypes-CU0qY6Px-ZdnVolMx.js} +1 -1
  209. package/dist/assets/{constants-D8qNj5Es.js → constants-jbgzJYdx.js} +1 -1
  210. package/dist/assets/{core-xud19niX.js → core-BMaLzXUJ.js} +1 -1
  211. package/dist/assets/{dash.all.min-Dmsiq7DL.js → dash.all.min-DmpFQIVa.js} +1 -1
  212. package/dist/assets/{detailCommon-BRja9H93-CS4qaApq.js → detailCommon-x-UFksNz-DKaz3zHe.js} +1 -1
  213. package/dist/assets/{downloadPdf-WDHjFv79-CGfEvBvA.js → downloadPdf-D1grj9oX-Bei5Wpqc.js} +1 -1
  214. package/dist/assets/{empty-BU3-uTyA.js → empty-CxyNypVD.js} +1 -1
  215. package/dist/assets/{empty-ClP26WFk.js → empty-DJguQx7A.js} +1 -1
  216. package/dist/assets/{epic-ff9tSPeN.js → epic-DJmh-RNR.js} +2 -2
  217. package/dist/assets/{gift-box-Cmt9OgIZ-Ba1CSAo6.js → gift-box-Cmt9OgIZ-ZuOwWA2g.js} +1 -1
  218. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CATaPbQ1.js → graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js} +1 -1
  219. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B_yV26zM.js → graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js} +1 -1
  220. package/dist/assets/{handshake-BPg58FML-CxOrxIUO.js → handshake-BPg58FML-DiPOUMao.js} +1 -1
  221. package/dist/assets/{index-CT3iqTha.js → index-C3zM8gb6.js} +1 -1
  222. package/dist/assets/{index-2wNtQNIE.js → index-CQmr12-Z.js} +1 -1
  223. package/dist/assets/{index-_dimXoCh.js → index-DKka6liW.js} +1 -1
  224. package/dist/assets/{index-DJjwW14X.js → index-DPwk4vO3.js} +1 -1
  225. package/dist/assets/{index-D6iLD7c3.js → index-Dw_2FdYw.js} +1 -1
  226. package/dist/assets/{index-6sX8sCRU.js → index-rJQoaAfw.js} +669 -669
  227. package/dist/assets/{index-ovnKg3OB.js → index-tuFs6sMC.js} +1 -1
  228. package/dist/assets/{lexical-CFjIG720.js → lexical-CyZM9SwL.js} +1 -1
  229. package/dist/assets/{liveblocks-BAOmiMpj.js → liveblocks-CohL7dW6.js} +1 -1
  230. package/dist/assets/{lottie-cQKxXDSP.js → lottie-XKgYVRq1.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-DD_ATbZD.js → mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-hwelD0Z1.js → mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-BsRKsR7W.js → mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js +1 -0
  237. package/dist/assets/{mui-BKJrVh4W.js → mui-KNfEk2A1.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D1XFg97i.js → page-detail-CWX5S47F-BLbwsJjf.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-BLfsH1I8.js → panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-CU3HgAhI.js → radio-default-CiSgisfh-_DAtDxCX.js} +1 -1
  241. package/dist/assets/{react-CN5Npsqf.js → react-CPz-xjGo.js} +2 -2
  242. package/dist/assets/{react-CrEDpago.js → react-CX71OnYA.js} +1 -1
  243. package/dist/assets/{react-DsYqgnFz.js → react-Cbh1mkS2.js} +1 -1
  244. package/dist/assets/{react-B_dpn2x_.js → react-CfuDRhRn.js} +1 -1
  245. package/dist/assets/{react-CPPpMWlr.js → react-DOhUJ6O2.js} +1 -1
  246. package/dist/assets/{react-CLJLIrqx.js → react-H0CMmi2N.js} +1 -1
  247. package/dist/assets/{react-B_IkKKOF.js → react-KKmCM6TX.js} +1 -1
  248. package/dist/assets/{react-4VjXw9yg.js → react-wx6Np1L0.js} +1 -1
  249. package/dist/assets/{recharts-07URl5uF.js → recharts-D8Mh9GJw.js} +1 -1
  250. package/dist/assets/{sentry-BsWDfhY_.js → sentry-CGE1ab0x.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DW8TK-Jl.js → shield-DOlUxcFf-BeHXxYmi.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +1 -0
  253. package/dist/assets/{toChartData-B3ouXKAd-DqPDcbms.js → toChartData-VTidOIL7-CTZNeqK0.js} +1 -1
  254. package/dist/assets/{uploadAttachment-DNNG-CMy-C0-pn6r-.js → uploadAttachment-CwSRD9la-Dwn2_OC8.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-DDO6BRYH.js → uploadReceipts-Dge0cNF1-COPT6pnG.js} +1 -1
  256. package/dist/assets/{url-B-qq-bwJ.js → url-CxS4k21H.js} +1 -1
  257. package/dist/assets/{url-CPnr4zl0.js → url-D3fzoRiq.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-DDMxNeC6.js → useLongPress-GCK2COYQ-YmFx62lI.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-CIbBacHX.js → usp-line-BBd1wKwW-lvUUHuIi.js} +1 -1
  260. package/dist/assets/{utils-lvnYc7Lx.js → utils-Co3Y654K.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DEUUJaZy.js → zeni-epic-state-CiJSQQSe.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/AccountInfoPage-DF6IU0EG-CpTk1WUV.js +0 -18
  265. package/dist/assets/AddAddressForCardDrawer-DNGQGGYg-Bf67FiSu.js +0 -6
  266. package/dist/assets/BillPayApprovalRuleDetailPage-UeVxIxfF-dC_CchwE.js +0 -27
  267. package/dist/assets/ChargeCardPromoPage-DuQe7BpX-C5KRheHX.js +0 -222
  268. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BoA9sGdB.js +0 -1
  269. package/dist/assets/CustomerOnboardingProductSuitePage-DMYHMJXg-BO7BCZyk.js +0 -202
  270. package/dist/assets/EntityDetailPage-B3TQ5hCP-uPk3J70w.js +0 -18
  271. package/dist/assets/LabeledDocumentField-Bjg8sNsg-Da4_7xZ7.js +0 -41
  272. package/dist/assets/MagicLinkACHDetailsPage-DM7EUUU7-8dRO9py4.js +0 -1
  273. package/dist/assets/MagicLinkDomesticWireDetailsPage-DKrGgFTu-86-Eks-y.js +0 -1
  274. package/dist/assets/MagicLinkInternationalWireDetailsPage-B3OpSWB3-B8JXsL7N.js +0 -1
  275. package/dist/assets/MagicLinkSuccessPage-CphaJa4k-D3EkcDWm.js +0 -31
  276. package/dist/assets/MailingDetailsSection-BJfZvT0b-Dh4yo_Lj.js +0 -21
  277. package/dist/assets/NoDataChart-B3s_7m2n-CAPJcqJ5.js +0 -26
  278. package/dist/assets/NoDataTable-CMpypnTw-DT8ESeaQ.js +0 -8
  279. package/dist/assets/OverlayContainerPage-D4QU0p4o-bJWKRuRf.js +0 -11
  280. package/dist/assets/ReimbursementApprovalRuleDetailPage-llw4ONPo-DU98N3RU.js +0 -32
  281. package/dist/assets/SignInScreen-DEP1cN19.js +0 -1
  282. package/dist/assets/StatementsPage-BCh51lDW-CdawgjO3.js +0 -58
  283. package/dist/assets/VendorACHDetailsPage-tUuZzJnN-BytxtWo8.js +0 -1
  284. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DZabfieM-CGwU72CX.js +0 -1
  285. package/dist/assets/analyticsHelper-C5JtTAtK.js +0 -1
  286. package/dist/assets/chartTypes-DJdbX13L-CYrZAg19.js +0 -1
  287. package/dist/assets/mapTimeframeBalancesToTreeNode-88qIN3FA-DT4qEBfo.js +0 -1
  288. package/dist/assets/mapTimeframeBalancesToTreeNode-AkxvYRty-Btx7Wg6i.js +0 -1
  289. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-KZ9-cjv6.js +0 -1
  290. package/dist/assets/toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-6sX8sCRU.js";import{a as P,P as ee}from"./sentry-BsWDfhY_.js";import{n as x}from"./mui-BKJrVh4W.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DJdbX13L-CYrZAg19.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js";import{V as Q}from"./toChartData-B3ouXKAd-DqPDcbms.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-07URl5uF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="175bda3c-acb1-461b-bc96-237f81152ca8",e._sentryDebugIdIdentifier="sentry-dbid-175bda3c-acb1-461b-bc96-237f81152ca8")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{e as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as Ae,p as g,aD as Ve,y as xe,bM as ge,al as R,bN as V,ba as F}from"./index-rJQoaAfw.js";import{a as P,P as ee}from"./sentry-CGE1ab0x.js";import{n as x}from"./mui-KNfEk2A1.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CnipzTeX-DGSU_TZ0.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BcVCEfwr-D-kim1rY.js";import{V as Q}from"./toChartData-VTidOIL7-CTZNeqK0.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-D8Mh9GJw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0b6af504-0b79-44d2-b978-e84822856f91",e._sentryDebugIdIdentifier="sentry-dbid-0b6af504-0b79-44d2-b978-e84822856f91")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -29,7 +29,7 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
29
29
  text-align: left;
30
30
  `,Qe=x(R)`
31
31
  text-align: right;
32
- `,Ze=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Qe,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Ze({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const s=b("cash_in","actual"),c=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[f]=h,p!=null?Q(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
32
+ `,Ze=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().chartCard.cashInCashOut[N(o)],value:h,color:i})}}),t},be=e=>e.map((r,t)=>a.jsxs(Xe,{color:r.color,children:[a.jsxs(Ue,{children:[a.jsx(qe,{color:r.color}),`${r.barName}:`]}),a.jsx(Qe,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Ze({...e});return r.length===0?null:a.jsx(Fe,{children:a.jsxs(Ye,{children:[be(r.slice(0,r.length-1)),r.length?a.jsx(He,{}):null,be(r.slice(-1))]})})},ea=ee.memo(Je),aa=(e,r,t,n,o)=>{let l=[],i=[],h=[];t!=null&&t.balances.length>0&&(l=K("cash_in","actual",t)),n!=null&&n.balances.length>0&&(i=K("cash_out","actual",n)),o!=null&&o.balances.length>0&&(h=oe("net_cash_flow","actual",o));const c=b("cash_in","actual"),s=b("cash_out","actual"),f=b("net_cash_flow","actual"),p=l.length>0?c:i.length>0?s:void 0,d={};return d[c]=l,d[s]=i,d[f]=h,p!=null?Q(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
33
33
  width: ${e=>e.width}px;
34
34
  height: ${e=>e.height}px;
35
35
 
@@ -42,7 +42,7 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
42
42
  `,oa=x(ge)`
43
43
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
44
44
  color: ${e=>e.theme.colors.primary};
45
- `;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],p=(_,w=s.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!c.current;_.push(a.jsx(se,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};c?.(d[v],r,S)},L=s?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
45
+ `;function Tr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=[c.colors.graphColor33,c.colors.graphColor36,c.colors.graphColor35],p=(_,w=c.colors.graphColor08)=>_<f.length?f[_]:w,d=aa(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow),y=()=>{const _=[];return ye.forEach((w,C)=>{const L=i===!0&&!s.current;_.push(a.jsx(ce,{name:w,animationDuration:L?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[w]!=null&&k[w].amount!=null?k[w].amount:void 0)?.amount??0},fill:p(C)},w))}),_};return d==null?null:a.jsx(ta,{chartData:d,timeframe:r,showBarHoverBackground:l,barElements:y(),customToolTipContent:({active:_,payload:w})=>a.jsx(ea,{active:_,payload:w}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ta=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=e.timeseries,y=ae(e),_=d.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:d[j].startDate,endDate:d[j].endDate}};s?.(d[v],r,S)},L=c?(l-60)/W.cash_in_cash_out*(W.cash_in_cash_out-e.recordByTimeseries.length):20;return a.jsx(ra,{"data-testid":Ae("dashboard-cash-in-cash-out-timeframe",r),width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(Te,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,y)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},formatter:v=>a.jsx(oa,{windowSize:f,children:D.getLocalizedStrings().chartCard.cashInCashOut[N(v)]})}):null]})})})},la=x.div`
46
46
  display: flex;
47
47
  `,na=x.div`
48
48
  flex: display;
@@ -51,16 +51,16 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
51
51
  flex-direction: column;
52
52
  padding: ${m.sp3};
53
53
  background-color: ${e=>e.theme.colors.black};
54
- `,ca=x(R)`
54
+ `,sa=x(R)`
55
55
  color: ${e=>e.color??g.neutralGrey2Light};
56
56
  text-align: left;
57
57
  display: flex;
58
58
  align-items: center;
59
59
  justify-content: space-between;
60
- `,sa=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=sa(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(ca,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Q(e,r,o,l):void 0},da=x.div`
60
+ `,ca=({active:e,payload:r})=>{const t=[];return r?.forEach(n=>{const o=n.name;if(e===!0){const l=n.payload,i=n.color,h=o!=null&&l.record[o]!=null?l.record[o].amount:void 0;t.push({barName:D.getLocalizedStrings().reportTitleById.cash_position,value:h,color:i})}}),t},ia=e=>{const r=ca(e);return r.length===0?null:a.jsx(la,{children:a.jsx(na,{children:r.map((t,n)=>a.jsx(sa,{color:t.color,children:`${t.barName}: ${T(t.value)}`},t.barName+n))})})},ua=ee.memo(ia),ha=(e,r,t)=>{let n=[];t!=null&&t.balances.length>0&&(n=G("cash_position","actual",t));const o=b("cash_position","actual"),l={};return l[o]=n,n.length>0?Q(e,r,o,l):void 0},da=x.div`
61
61
  width: ${e=>e.width}px;
62
62
  height: ${e=>e.height}px;
63
- `,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const s=A(),c=P.useRef(!1);P.useEffect(()=>{c.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!c.current;d.push(a.jsx(se,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:s.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!s||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};c?.(p[k],r,j)},C=s?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
63
+ `,Ce=[b("cash_position","actual")];function Wr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:h}){const c=A(),s=P.useRef(!1);P.useEffect(()=>{s.current=!0},[]);const f=ha(e.firstMonthOfFY,Ce,e.cashPosition),p=()=>{const d=[];return Ce.forEach(y=>{const _=i===!0&&!s.current;d.push(a.jsx(ce,{name:y,animationDuration:_?500:void 0,style:{cursor:"pointer"},dataKey:w=>{const C=w.record;return(C[y]!=null&&C[y].amount!=null?C[y].amount:void 0)?.amount??0},fill:c.colors.graphColor17},y))}),d};return f==null?null:a.jsx(ga,{chartData:f,timeframe:r,showBarHoverBackground:l,barElements:p(),customToolTipContent:({active:d,payload:y})=>a.jsx(ua,{active:d,payload:y}),width:n,height:o,onCOABalancesRangeChanged:h,highlightedRange:t,isDetailPage:i===!0})}const ga=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=e.timeseries,d=ae(e),y=p.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:p[u].startDate,endDate:p[u].endDate}};s?.(p[k],r,j)},C=c?(l-60)/W.cash_position*(W.cash_position-e.recordByTimeseries.length):20;return a.jsx(da,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(Te,{width:$,height:L,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},pa=x.div`
64
64
  display: flex;
65
65
  `,ma=x.div`
66
66
  display: flex;
@@ -128,7 +128,7 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
128
128
  `,ve=x(F)`
129
129
  display: flex;
130
130
  flex-direction: column;
131
- `,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),s=b("cogs","actual"),c=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case s:case c:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],s=[],c=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(s=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:s.length>0?d:c.length>0?y:void 0,C={};return C[p]=h,C[d]=s,C[y]=c,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Q(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[s]=o,d[c]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
131
+ `,ke=x(H)``,ka=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l=Math.floor((n.amount-o.amount)*100/100),i={...n,amount:l},h=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:i,percent:h,forecastPercent:r.record[t].percentValue}},$a=({active:e,payload:r,mode:t})=>{const n=[],o={barName:D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:g.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};const h=b("income","actual"),c=b("cogs","actual"),s=b("expenses","actual"),f=b("net_burn_or_income","actual");return r?.forEach(p=>{const d=p.name;if(e===!0){const y=p.payload,_=p.color,w=d!=null&&y.record[d]!=null?y.record[d].amount:void 0;let C;if(d.includes("forecast")!==!0)switch(t==="forecast_mode"&&(C=y.record[d]!=null?ka(d,y):void 0),d){case c:case s:w!=null&&(l.currencyCode===""?l={...w}:l.amount=l.amount+w.amount),C!=null&&(i.currencyCode===""?i={...C.value}:i.amount=i.amount+C.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,forecast:C,color:_});break;case f:{const L=w!=null&&w.amount>=0?D.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:D.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:L,actual:w,color:_,percent:y.record[d]?.percentValue,forecast:C});break}case h:default:n.push({barName:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(d)],actual:w,color:_,forecast:C})}}}),o.actual=l,o.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor((l.amount-i.amount)*100/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,o),n},$e=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(Ca,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsxs(va,{children:[a.jsx(je,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(je,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),we=e=>e.map((r,t)=>a.jsxs(Ne,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(ja,{children:[a.jsx(Ie,{color:r.barName===D.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":r.color}),`${r.barName}:`]}),a.jsx(H,{children:a.jsxs(ve,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(ke,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(H,{children:a.jsxs(ve,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(ke,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(H,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(H,{children:"-"}),r.forecast!=null?a.jsx(H,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(H,{children:"-"})]},r.barName+t)),wa=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},_a=({barLabelsWithValues:e})=>a.jsxs(ma,{children:[a.jsxs(fa,{children:[a.jsx(xa,{}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ie,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",wa(e)]}),a.jsx(ie,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ya,{children:[we(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,we(e.slice(-2))]})]}),La=({barLabelsWithValues:e})=>a.jsx(pa,{children:a.jsxs(ba,{children:[$e(e.slice(0,e.length-2)),e.length?a.jsx(We,{}):null,$e(e.slice(-2))]})}),Da=e=>{const r=$a({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(_a,{barLabelsWithValues:r}):a.jsx(La,{barLabelsWithValues:r})})},Sa=ee.memo(Da),Ba=(e,r,t,n,o,l,i)=>{let h=[],c=[],s=[],f=[];n!=null&&n.balances.length>0&&(h=K("income","actual",n)),o!=null&&o.balances.length>0&&(c=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=G("expenses","actual",l)),i!=null&&i.balances.length>0&&(f=oe("net_burn_or_income","actual",i));const p=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),_=b("net_burn_or_income","actual"),w=h.length>0?p:c.length>0?d:s.length>0?y:void 0,C={};return C[p]=h,C[d]=c,C[y]=s,C[_]=f,t==="forecast_mode"&&Object.assign(C,Oa(n,o,l,i)),w!=null?Q(e,r,w,C):void 0},Oa=(e,r,t,n)=>{let o=[],l=[],i=[],h=[];e!=null&&e.balances.length>0&&(o=K("income","forecast",e)),r!=null&&r.balances.length>0&&(l=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(i=G("expenses","forecast",t)),n!=null&&n.balances.length>0&&(h=oe("net_burn_or_income","forecast",n));const c=b("income","forecast"),s=b("cogs","forecast"),f=b("expenses","forecast"),p=b("net_burn_or_income","forecast"),d={};return d[c]=o,d[s]=l,d[f]=i,d[p]=h,d},za=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Pa=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Ra=x.div`
132
132
  width: ${e=>e.width}px;
133
133
  height: ${e=>e.height}px;
134
134
 
@@ -141,7 +141,7 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
141
141
  `,Ta=x(ge)`
142
142
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
143
143
  color: ${e=>e.theme.colors.primary};
144
- `;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=c.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
144
+ `;function Nr({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor36,s.colors.graphColor06,s.colors.graphColor31,s.colors.graphColor12],d=[s.colors.graphColor04,s.colors.graphColor10,s.colors.graphColor32,s.colors.graphColor13,s.colors.graphColor04Dark,s.colors.graphColor10Dark,s.colors.graphColor32Dark,s.colors.graphColor13Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?Pa:za,w=(u,j=s.colors.graphColor04)=>u<y.length?y[u]:j,C=(e.reportId,Ba(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},dot:a.jsx(L,{}),strokeWidth:1.5,stroke:w(j),strokeDasharray:"3 3",activeDot:a.jsx($,{})},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Wa,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(Sa,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Wa=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.net_burn_or_income*(W.net_burn_or_income-e.recordByTimeseries.length):20;return a.jsx(Ra,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.net_burn_or_income,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(Ta,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.netBurnOrIncome[v]:D.getLocalizedStrings().chartCard.netBurnOrIncome[N(v)]})}):null]})})})},Na=x.div`
145
145
  display: flex;
146
146
  `,Ia=x.div`
147
147
  flex: display;
@@ -192,15 +192,15 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
192
192
  `,q=x(F)`
193
193
  text-align: right;
194
194
  flex: 1;
195
- `,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(s=>s.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let s;if(t.includes("forecast")!==!0){s=l.record[t]!=null?Ha(t,l):void 0;const c={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(c.amount+=l.record[p].amount?.amount??0,c.currencyCode=C!=null?C.currencyCode:c.currencyCode,c.currencySymbol=C!=null?C.currencySymbol:c.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((c?.amount-f?.amount)*100/100),y={...c,amount:d},_=f.amount!==0?Math.floor((c.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:s,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:c,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Qa=ee.memo(Ua),Za=(e,r)=>{const t=[],n={};let o;return r!=null&&r.classes.length!=0&&r.classes.forEach(l=>{const i=G(l.class.className,"actual",l.childrenBalancesTotal),h=b(l.class.className,"actual");n[h]=i,t.push(h),o==null&&i.length>0&&(o=b(l.class.className,"actual"))}),o!=null?Q(e,t,o,n):void 0},De=[g.graphColor34,g.graphColor05,g.graphColor08,g.graphColor11,g.graphColor13,g.graphColor19,g.graphColor29,g.graphColor28,g.graphColor20,g.graphColor21,g.graphColor22,g.graphColor14,g.graphColor35,g.graphColor31,g.graphColor33,g.graphColor32,g.graphColor36,g.graphColor02,g.graphColor06,g.graphColor04,g.graphColor10,g.graphColor12,g.graphColor15,g.graphColor18,g.graphColor17,g.graphColor07,g.graphColor34Dark,g.graphColor05Dark,g.graphColor08Dark,g.graphColor11Dark,g.graphColor13Dark,g.graphColor19Dark,g.graphColor29Dark,g.graphColor28Dark,g.graphColor20Dark,g.graphColor21Dark,g.graphColor22Dark,g.graphColor14Dark,g.graphColor35Dark,g.graphColor31Dark,g.graphColor33Dark,g.graphColor32Dark,g.graphColor36Dark,g.graphColor02Dark,g.graphColor06Dark,g.graphColor04Dark,g.graphColor10Dark,g.graphColor12Dark,g.graphColor15Dark,g.graphColor18Dark,g.graphColor17Dark,g.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=g.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(r){const t=Y.instance();return t._barColorsKeyWise.has(r)||(t._barColors.length===0&&(t._barColors=De.slice()),t._barColorsKeyWise.set(r,t._barColors.shift()??t._defaultColor)),t._barColorsKeyWise.get(r)}shouldUpdate(r){const t=Y.instance(),n=Array.from(t._barColorsKeyWise.keys()).sort();return!Ve(n,r)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Ja=Y.instance(),er=(e,r,t)=>{const n=[],o={};let l,i=!1;if(t!=null&&t.accountGroups.length!=0?t.accountGroups.forEach(h=>{const s=G(h.accountGroupName,"actual",h),c=b(h.accountGroupName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const s=G(h.account.accountName,"actual",h.account.balancesInTimeframe),c=b(h.account.accountName,"actual");o[c]=s,n.push(c),l==null&&s.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,s=G(h,"actual",t);if(s.length!==0){const c=b(h,"actual");o[c]=s,l=c,n.push(c)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Q(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
195
+ `,Fa=({active:e,payload:r,barName:t})=>{const n=[];if(r!=null&&e===!0){const o=r.filter(c=>c.name==t)[0],l=o.payload,i=o.color,h=t!=null&&l.record[t]!=null?l.record[t].amount:void 0;if(!t?.endsWith("_forecast")){let c;if(t.includes("forecast")!==!0){c=l.record[t]!=null?Ha(t,l):void 0;const s={amount:0,currencyCode:"",currencySymbol:""},f={amount:0,currencyCode:"",currencySymbol:""};let p;for(p in l.record){const C=l.record[p].amount;p.endsWith("_actual")?(s.amount+=l.record[p].amount?.amount??0,s.currencyCode=C!=null?C.currencyCode:s.currencyCode,s.currencySymbol=C!=null?C.currencySymbol:s.currencySymbol):p.endsWith("_forecast")&&(f.amount+=l.record[p].amount?.amount??0,f.currencyCode=C!=null?C.currencyCode:f.currencyCode,f.currencySymbol=C!=null?C.currencySymbol:f.currencySymbol)}const d=Math.floor((s?.amount-f?.amount)*100/100),y={...s,amount:d},_=f.amount!==0?Math.floor((s.amount-f.amount)/f.amount*100)/100:0,w={value:f,change:y,percent:_};n.push({barName:N(t),actual:h,forecast:c,color:i}),n.push({barName:D.getLocalizedStrings().chartCard.total,actual:s,forecast:w,color:g.neutralGrey1Light})}}}return n},Ha=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:o!=null?Math.floor((n.amount-o.amount)*100/100):n.amount},i=o!=null&&o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i}},Le=e=>a.jsxs(Ga,{color:e.color,children:[a.jsx(Va,{children:`${e.barName}:`}),a.jsx(q,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(q,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(q,{children:"-"}),e.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(q,{children:"-"})]}),Ya=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},Xa=({barLabelsWithValues:e})=>a.jsx(Na,{children:a.jsxs(Ia,{children:[a.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${T(e[0].actual)}`}),a.jsx(Ee,{}),a.jsx(_e,{children:`${D.getLocalizedStrings().chartCard.total}: ${T(e[1].actual)}`})]})}),qa=({barLabelsWithValues:e})=>a.jsxs(Ma,{children:[a.jsxs(Ka,{children:[a.jsx(Ea,{}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(ue,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",Ya(e)]}),a.jsx(ue,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(Aa,{children:[Le(e[0]),a.jsx(Ee,{}),Le(e[1])]})]}),Ua=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(qa,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Qa=ee.memo(Ua),Za=(e,r)=>{const t=[],n={};let o;return r!=null&&r.classes.length!=0&&r.classes.forEach(l=>{const i=G(l.class.className,"actual",l.childrenBalancesTotal),h=b(l.class.className,"actual");n[h]=i,t.push(h),o==null&&i.length>0&&(o=b(l.class.className,"actual"))}),o!=null?Q(e,t,o,n):void 0},De=[g.graphColor34,g.graphColor05,g.graphColor08,g.graphColor11,g.graphColor13,g.graphColor19,g.graphColor29,g.graphColor28,g.graphColor20,g.graphColor21,g.graphColor22,g.graphColor14,g.graphColor35,g.graphColor31,g.graphColor33,g.graphColor32,g.graphColor36,g.graphColor02,g.graphColor06,g.graphColor04,g.graphColor10,g.graphColor12,g.graphColor15,g.graphColor18,g.graphColor17,g.graphColor07,g.graphColor34Dark,g.graphColor05Dark,g.graphColor08Dark,g.graphColor11Dark,g.graphColor13Dark,g.graphColor19Dark,g.graphColor29Dark,g.graphColor28Dark,g.graphColor20Dark,g.graphColor21Dark,g.graphColor22Dark,g.graphColor14Dark,g.graphColor35Dark,g.graphColor31Dark,g.graphColor33Dark,g.graphColor32Dark,g.graphColor36Dark,g.graphColor02Dark,g.graphColor06Dark,g.graphColor04Dark,g.graphColor10Dark,g.graphColor12Dark,g.graphColor15Dark,g.graphColor18Dark,g.graphColor17Dark,g.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=g.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(r){const t=Y.instance();return t._barColorsKeyWise.has(r)||(t._barColors.length===0&&(t._barColors=De.slice()),t._barColorsKeyWise.set(r,t._barColors.shift()??t._defaultColor)),t._barColorsKeyWise.get(r)}shouldUpdate(r){const t=Y.instance(),n=Array.from(t._barColorsKeyWise.keys()).sort();return!Ve(n,r)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Ja=Y.instance(),er=(e,r,t)=>{const n=[],o={};let l,i=!1;if(t!=null&&t.accountGroups.length!=0?t.accountGroups.forEach(h=>{const c=G(h.accountGroupName,"actual",h),s=b(h.accountGroupName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.accountGroupName,"actual"))}):t!=null&&t.accounts.length!=0&&(i=!0,t.accounts.forEach(h=>{const c=G(h.account.accountName,"actual",h.account.balancesInTimeframe),s=b(h.account.accountName,"actual");o[s]=c,n.push(s),l==null&&c.length>0&&(l=b(h.account.accountName,"actual"))})),t!=null&&t.accountGroups.length===0&&t.accounts.length===0){const h=D.getLocalizedStrings().chartCard.total,c=G(h,"actual",t);if(c.length!==0){const s=b(h,"actual");o[s]=c,l=s,n.push(s)}}return r==="forecast_mode"&&Object.assign(o,ar(n,t)),l!=null?Q(e,n,l,o,i):void 0},ar=(e,r)=>{const t={};let n;if(r!=null&&r.accountGroups.length!=0?r.accountGroups.forEach(o=>{const l=G(o.accountGroupName,"forecast",o),i=b(o.accountGroupName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.accountGroupName,"forecast"))}):r!=null&&r.accounts.length!=0&&r.accounts.forEach(o=>{const l=G(o.account.accountName,"forecast",o.account.balancesInTimeframe),i=b(o.account.accountName,"forecast");t[i]=l,e.push(i),n==null&&l.length>0&&(n=b(o.account.accountName,"forecast"))}),r!=null&&r.accountGroups.length===0&&r.accounts.length===0){const o=D.getLocalizedStrings().chartCard.total,l=G(o,"forecast",r);if(l.length!==0){const i=b(o,"forecast");t[i]=l,n=i,e.push(i)}}return t},rr=x.div`
196
196
  width: ${e=>e.width}px;
197
197
  height: ${e=>e.height}px;
198
- `,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{c.current=!0},[]),P.useEffect(()=>{f.shouldUpdate(w.current)===!0&&p(Y.init())},[]),P.useEffect(()=>{let k=[];if(e.reportId==="operating_expenses"){const v=e.sections.expenses;v.accountGroups.length===0&&v.accounts.length===0?k.push(D.getLocalizedStrings().chartCard.total):v.accountGroups.length!=0?k=v.accountGroups.map(O=>O.accountGroupName).sort():k=v.accounts.map(O=>O.account).map(O=>O.accountName).sort()}else k=e.sections.expenses.classes.map(v=>v.class.className).sort();w.current=k},[e,f]);const C=P.useMemo(()=>e.reportId==="operating_expenses"?er(e.firstMonthOfFY,h,e.sections.expenses):Za(e.firstMonthOfFY,e.sections.expenses),[e,h]),L=P.useCallback(()=>{const k=u=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(or,{}),activeDot:a.jsx(tr,{}),dataKey:j=>{const S=j.record;let B,z;for(z in S)if(z.endsWith("_forecast")){const E=S[z].amount;E!=null&&(B==null?B={...E}:B.amount+=E.amount)}return B?.amount},stroke:_.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j)=>a.jsx(se,{name:u,animationDuration:j?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount??0},stackId:"a",fill:f.getBarColor(N(u)),onMouseEnter:()=>{d!==u&&y(u)},onMouseLeave:()=>{d!=null&&y(void 0)}},u),O=[];return C?.orderedKeys.forEach(u=>{const j=!c.current;u.endsWith("_forecast")?O.push(k(u)):O.push(v(u,j))}),O},[C]),$=({active:k,payload:v})=>v?.find(O=>O.name===d)!=null&&d!=null&&k===!0?a.jsx(Qa,{active:k,payload:v,mode:h,barName:d}):null;return C==null?null:a.jsx(lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:L(),customToolTipContent:a.jsx($,{}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!s||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:d[u].startDate,endDate:d[u].endDate}};c?.(d[k],r,j)},C=s?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,p)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeWidth:($-60)/W.operating_expenses,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},nr=x.div`
198
+ `,or=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:4,stroke:n,strokeWidth:2,fill:o})},tr=e=>{const{cx:r,cy:t,fill:n,stroke:o,value:l}=e;return l==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:r,cy:t,r:5,stroke:o,strokeWidth:2,fill:n})};function Ir({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=P.useRef(!1),[f,p]=P.useState(Ja),[d,y]=P.useState(void 0),_=A(),w=P.useRef([]);P.useEffect(()=>{s.current=!0},[]),P.useEffect(()=>{f.shouldUpdate(w.current)===!0&&p(Y.init())},[]),P.useEffect(()=>{let k=[];if(e.reportId==="operating_expenses"){const v=e.sections.expenses;v.accountGroups.length===0&&v.accounts.length===0?k.push(D.getLocalizedStrings().chartCard.total):v.accountGroups.length!=0?k=v.accountGroups.map(O=>O.accountGroupName).sort():k=v.accounts.map(O=>O.account).map(O=>O.accountName).sort()}else k=e.sections.expenses.classes.map(v=>v.class.className).sort();w.current=k},[e,f]);const C=P.useMemo(()=>e.reportId==="operating_expenses"?er(e.firstMonthOfFY,h,e.sections.expenses):Za(e.firstMonthOfFY,e.sections.expenses),[e,h]),L=P.useCallback(()=>{const k=u=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(or,{}),activeDot:a.jsx(tr,{}),dataKey:j=>{const S=j.record;let B,z;for(z in S)if(z.endsWith("_forecast")){const E=S[z].amount;E!=null&&(B==null?B={...E}:B.amount+=E.amount)}return B?.amount},stroke:_.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j)=>a.jsx(ce,{name:u,animationDuration:j?500:void 0,style:{cursor:"pointer"},dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount??0},stackId:"a",fill:f.getBarColor(N(u)),onMouseEnter:()=>{d!==u&&y(u)},onMouseLeave:()=>{d!=null&&y(void 0)}},u),O=[];return C?.orderedKeys.forEach(u=>{const j=!s.current;u.endsWith("_forecast")?O.push(k(u)):O.push(v(u,j))}),O},[C]),$=({active:k,payload:v})=>v?.find(O=>O.name===d)!=null&&d!=null&&k===!0?a.jsx(Qa,{active:k,payload:v,mode:h,barName:d}):null;return C==null?null:a.jsx(lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:L(),customToolTipContent:a.jsx($,{}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=A(),p=ae(e),d=e.timeseries,y=d.map(L=>L.label),_=h!==!1,w=L=>{if(!c||L?.activePayload==null||L?.activePayload.length===0)return;const $=L.activePayload[0];if($?.payload?.timeLabel?.label==null)return;const k=L.activeTooltipIndex,v=$.payload.timeLabel.label;if(o==null)return;const O=re(v,y,o.numberOfPeriods),u=O[1]===void 0?y.length-1:y.indexOf(O[1]),j={...o,thisPeriod:{startDate:d[u].startDate,endDate:d[u].endDate}};s?.(d[k],r,j)},C=c?(l-60)/W.operating_expenses*(W.operating_expenses-e.recordByTimeseries.length):20;return a.jsx(rr,{width:l,height:i,children:a.jsx(Z,{children:({height:L,width:$})=>a.jsxs(fe,{width:$,height:L,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:c?I[10]:30,margin:{top:5,right:C,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:f.colors.grey3}),a.jsx(le,{dataKey:k=>k.timeLabel.label,type:"category",axisLine:{stroke:f.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:f.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:k=>J("0,0.[00]a",k,p)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:_?{stroke:f.colors.background,strokeWidth:($-60)/W.operating_expenses,fill:f.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t]})})})},nr=x.div`
199
199
  display: flex;
200
- `,cr=x.div`
200
+ `,sr=x.div`
201
201
  display: flex;
202
202
  flex-direction: column;
203
- `,sr=x.div`
203
+ `,cr=x.div`
204
204
  display: flex;
205
205
  background-color: ${e=>e.theme.colors.black};
206
206
  opacity: 0.85;
@@ -263,7 +263,7 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
263
263
  `,Be=x(F)`
264
264
  display: flex;
265
265
  flex-direction: column;
266
- `,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const s=h.name;if(e===!0){const c=h.payload,f=h.color,p=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;if(s.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=c.record[s]!=null?mr(s,c):void 0),s){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(s)],actual:p,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(s)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(cr,{children:[a.jsxs(sr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],s=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(s=oe("gross_margin","actual",l));const c=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?c:h.length>0?f:p,y={};return y[c]=i,y[f]=h,y[p]=s,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Q(e,r,d,y):void 0},vr=(e,r,t)=>{let n=[],o=[],l=[];e!=null&&e.balances.length>0&&(n=K("income","forecast",e)),r!=null&&r.balances.length>0&&(o=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(l=oe("gross_margin","forecast",t));const i=b("income","forecast"),h=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[h]=o,c[s]=l,c},kr=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],$r=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],wr=x.div`
266
+ `,Oe=x(F)``,mr=(e,r)=>{const t=b(N(e),"forecast");if(r.record[t]==null)return;const n=r.record[e].amount,o=r.record[t].amount,l={...n,amount:Math.floor((n.amount-o.amount)*100/100)},i=o.amount!==0?Math.floor((n.amount-o.amount)/o.amount*100)/100:void 0;return{value:o,change:l,percent:i,forecastPercent:r.record[t].percentValue}},fr=({active:e,payload:r,mode:t})=>{const n=[];let o={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return r?.forEach(h=>{const c=h.name;if(e===!0){const s=h.payload,f=h.color,p=c!=null&&s.record[c]!=null?s.record[c].amount:void 0;let d;if(c.includes("forecast")!==!0)switch(t==="forecast_mode"&&(d=s.record[c]!=null?mr(c,s):void 0),c){case i:p!=null&&(o.currencyCode===""?o={...p}:o.amount=o.amount+p.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,forecast:d,percent:s.record[c]!=null?s.record[c].percentValue??0:0,color:f});break;default:n.push({barName:D.getLocalizedStrings().chartCard.revenue[N(c)],actual:p,color:f,forecast:d});break}}}),n},ze=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(gr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsxs(pr,{children:[a.jsx(Se,{children:`${T(r.actual)}`}),r.percent!=null?a.jsx(Se,{children:V("0,0.0%",r.percent)}):null]})]},r.barName+t)),Pe=e=>e.map((r,t)=>a.jsxs(Me,{color:r.color,showPercent:r.percent!=null,children:[a.jsxs(hr,{children:[a.jsx(Ke,{color:r.color}),`${r.barName}:`]}),a.jsx(U,{children:a.jsxs(Be,{children:[r.actual!=null?`${T(r.actual)}`:"-",a.jsx(Oe,{children:r.percent!=null?V("0,0.0%",r.percent):null})]})}),a.jsx(U,{children:a.jsxs(Be,{children:[r.forecast!=null?`${T(r.forecast.value)}`:"-",a.jsx(Oe,{children:r.forecast!=null&&r.forecast.forecastPercent!=null?V("0,0.0%",r.forecast.forecastPercent):null})]})}),r.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(U,{children:"-"}),r.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(U,{children:"-"})]},r.barName+t)),xr=e=>{if(e.length>0){for(const r of e)if(r.actual!=null)return r.actual.currencySymbol}return""},br=({barLabelsWithValues:e})=>a.jsxs(sr,{children:[a.jsxs(cr,{children:[a.jsx(ir,{}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.actual}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.forecast}),a.jsxs(he,{children:[D.getLocalizedStrings().chartCard.tooltip.change," ",xr(e)]}),a.jsx(he,{children:D.getLocalizedStrings().chartCard.tooltip.change_percent})]}),a.jsxs(ur,{children:[Pe(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,Pe(e.slice(-1))]})]}),yr=({barLabelsWithValues:e})=>a.jsx(nr,{children:a.jsxs(dr,{children:[ze(e.slice(0,e.length-1)),e.length?a.jsx(Ge,{}):null,ze(e.slice(-1))]})}),Cr=e=>{const r=fr({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(br,{barLabelsWithValues:r}):a.jsx(yr,{barLabelsWithValues:r})})},jr=ee.memo(Cr),Re=(e,r,t,n,o,l)=>{let i=[],h=[],c=[];n!=null&&n.balances.length>0&&(i=K("income","actual",n)),o!=null&&o.balances.length>0&&(h=K("cogs","actual",o)),l!=null&&l.balances.length>0&&(c=oe("gross_margin","actual",l));const s=b("income","actual"),f=b("cogs","actual"),p=b("gross_margin","actual"),d=i.length>0?s:h.length>0?f:p,y={};return y[s]=i,y[f]=h,y[p]=c,t==="forecast_mode"&&Object.assign(y,vr(n,o,l)),d!=null?Q(e,r,d,y):void 0},vr=(e,r,t)=>{let n=[],o=[],l=[];e!=null&&e.balances.length>0&&(n=K("income","forecast",e)),r!=null&&r.balances.length>0&&(o=K("cogs","forecast",r)),t!=null&&t.balances.length>0&&(l=oe("gross_margin","forecast",t));const i=b("income","forecast"),h=b("cogs","forecast"),c=b("gross_margin","forecast"),s={};return s[i]=n,s[h]=o,s[c]=l,s},kr=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],$r=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],wr=x.div`
267
267
  width: ${e=>e.width}px;
268
268
  height: ${e=>e.height}px;
269
269
 
@@ -277,4 +277,4 @@ import{d as A,V as a,F as D,J as de,b3 as Z,u as I,b as M,aY as J,o as m,aP as A
277
277
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
278
278
  margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
279
279
  color: ${e=>e.theme.colors.primary};
280
- `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=c.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
280
+ `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:c}){const s=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[s.colors.graphColor26,s.colors.graphColor17,s.colors.graphColor12],d=[s.colors.graphColor28,s.colors.graphColor17,s.colors.graphColor10,s.colors.graphColor28Dark,s.colors.graphColor17Dark,s.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=s.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(ce,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:c,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:c,onCOABalancesRangeChanged:s})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!c||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};s?.(y[v],r,S)},L=c?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Z,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:c?void 0:"12%",maxBarSize:c?I[10]:22,barGap:c?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(se,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,c?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
@@ -1,4 +1,4 @@
1
- import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as le,fb as At,fc as Mt,fd as Bt,fe as Ft,aN as A,ff as Rt,aP as j,fg as Lt,fh as Me,fi as Be,fj as Fe,b as H,fk as O,p as S,fl as zt,fm as E,fn as W,fo as Nt,fp as Ot,bT as Re,o as n,aR as Et,u as s,F as Wt,ag as _t,c2 as Vt,O as Zt,a as Yt,fq as Gt,ci as qt,al as se,am as ce,fr as Ht,fs as Kt,bi as Ut,c as Xt,b9 as Jt,ft as Qt,aq as et,bK as en,ai as tt,bt as tn,fu as nn}from"./index-6sX8sCRU.js";import{a as V}from"./sentry-BsWDfhY_.js";import{n as i}from"./mui-BKJrVh4W.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-DEUUJaZy.js";import{t as rn,o as dn}from"./LowBalancePopup-BPk1-eAb-DFTxz9st.js";import{S as _}from"./LabeledText-38fqkkE--Cee_T29J.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5715d0d6-c48d-4e1d-bd66-3a822b5cfc36",e._sentryDebugIdIdentifier="sentry-dbid-5715d0d6-c48d-4e1d-bd66-3a822b5cfc36")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=V.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Z?.code?Z:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Z?.code?Z:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&q(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Zn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Xe,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ve(!1,k,b,G,d)}},primaryBtn:{label:_e(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?q(!0):Se()},style:{width:Ve(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
1
+ import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as le,fb as At,fc as Mt,fd as Bt,fe as Ft,aN as A,ff as Rt,aP as j,fg as Lt,fh as Me,fi as Be,fj as Fe,b as H,fk as O,p as S,fl as zt,fm as E,fn as W,fo as Nt,fp as Ot,bT as Re,o as n,aR as Et,u as s,F as Wt,ag as _t,c2 as Vt,a as Zt,c as Yt,fq as Gt,ci as qt,al as se,am as ce,fr as Ht,fs as Kt,bi as Ut,d as Jt,b9 as Xt,ft as Qt,aq as et,bK as en,ai as tt,bt as tn,fu as nn}from"./index-rJQoaAfw.js";import{a as V}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.js";import{bo as Le,bm as ze,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-CiJSQQSe.js";import{t as rn,o as dn}from"./LowBalancePopup-OUWtUPdo-DRkjFCjE.js";import{S as _}from"./LabeledText-CRJr2zA8-DRZ423PA.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="07b8c2e2-1f64-4d69-97d5-b8e5a28fc455",e._sentryDebugIdIdentifier="sentry-dbid-07b8c2e2-1f64-4d69-97d5-b8e5a28fc455")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=V.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=V.useState(!1),[mt,xe]=V.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&Z?.code?Z:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&Z?.code?Z:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,G,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&q(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,q]=V.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{q(!1),ne()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Zn,{children:nt.includes(d)?t.jsxs(Ge,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ge,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ve(!1,k,b,G,d)}},primaryBtn:{label:_e(b,G,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?q(!0):Se()},style:{width:Ve(!0,k,b,G,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ve=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -121,11 +121,11 @@ import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as
121
121
  `,Mn=i.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,qe=i(Xt)`
124
+ `,qe=i(Jt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,He=i(Jt)`
128
+ `,He=i(Xt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
@@ -198,7 +198,7 @@ import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Xe=i(Ut)`
201
+ `,Je=i(Ut)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
@@ -209,7 +209,7 @@ import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Je=i(se)`
212
+ `,Xe=i(se)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
@@ -231,7 +231,7 @@ import{J as Tt,aw as Ct,y as u,f6 as Dt,f7 as It,f8 as Pt,V as t,f9 as kt,fa as
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,X=i(ce)`
234
+ `,J=i(ce)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -1,20 +1,20 @@
1
- import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,al as j,cC as I,T as W,ai as b,bh as R,u as n,em as G,h as _,i$ as J,kc as O}from"./index-6sX8sCRU.js";import{n as t}from"./mui-BKJrVh4W.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="b33e3df9-894b-4e63-9ddc-d0d3d8e9c375",e._sentryDebugIdIdentifier="sentry-dbid-b33e3df9-894b-4e63-9ddc-d0d3d8e9c375")}catch{}})();const a={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return i.jsxs(V,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:l,children:[i.jsxs(Z,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(W,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
1
+ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,a as C,c as D,p as s,al as b,cC as I,T as W,ai as j,bh as R,u as n,em as G,h as _,i$ as F,kc as J}from"./index-rJQoaAfw.js";import{n as t}from"./mui-KNfEk2A1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="a0c4148e-7677-4e6b-9de6-11d9896b7ba1",e._sentryDebugIdIdentifier="sentry-dbid-a0c4148e-7677-4e6b-9de6-11d9896b7ba1")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=B();return i.jsxs(H,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{children:i.jsx(Y,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(Z,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(N,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(W,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
5
- `,H=t.div`
5
+ `,O=t.div`
6
6
  min-height: 100vh;
7
7
  display: flex;
8
8
  flex-direction: column;
9
- margin-top: ${e=>a.containerMarginTop.valuePx(e.windowSize)};
9
+ margin-top: ${e=>l.containerMarginTop.valuePx(e.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
11
  `,Z=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
15
  z-index: 1;
16
- padding-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
17
- padding-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
16
+ padding-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
17
+ padding-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
18
18
  `,q=t.div`
19
19
  display: flex;
20
20
  align-items: center;
@@ -22,19 +22,19 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
22
22
  ${e=>`${A.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
25
- margin-bottom: ${e=>a.titleMarginBotom.valuePx(e.windowSize)};
26
- margin-right: ${e=>a.titleMarginRight.valuePx(e.windowSize)};
27
- `,N=t(j)`
28
- margin-bottom: ${e=>a.subTitleMarginBottom.valuePx(e.windowSize)};
25
+ margin-bottom: ${e=>l.titleMarginBotom.valuePx(e.windowSize)};
26
+ margin-right: ${e=>l.titleMarginRight.valuePx(e.windowSize)};
27
+ `,N=t(b)`
28
+ margin-bottom: ${e=>l.subTitleMarginBottom.valuePx(e.windowSize)};
29
29
  color: ${e=>e.isError?s.important:e.theme.colors.hero};
30
30
  `,Q=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  margin-top: ${r.sp3};
34
- margin-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
35
- margin-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
34
+ margin-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
35
+ margin-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
36
36
  `,U=t.div`
37
- min-height: ${e=>a.navBarHeight.valuePx(e.windowSize)};
37
+ min-height: ${e=>l.navBarHeight.valuePx(e.windowSize)};
38
38
  position: sticky;
39
39
  border-bottom: 1px solid transparent;
40
40
  z-index: 2;
@@ -52,8 +52,8 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
52
52
  top: ${r.sp0};
53
53
  left: ${r.sp0};
54
54
  right: ${r.sp0};
55
- padding-right: ${e=>a.navBarPaddingRight.valuePx(e.windowSize)};
56
- padding-left: ${e=>a.navBarPaddingLeft.valuePx(e.windowSize)};
55
+ padding-right: ${e=>l.navBarPaddingRight.valuePx(e.windowSize)};
56
+ padding-left: ${e=>l.navBarPaddingLeft.valuePx(e.windowSize)};
57
57
  height: 100%;
58
58
  `,ee=t.div`
59
59
  display: flex;
@@ -96,12 +96,12 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  align-items: ${e=>e.windowSize==="small"?"self-start":"self-end"};
99
- `,f=t(j)`
99
+ `,f=t(b)`
100
100
  color: ${e=>e.isError||e.isWarning?e.theme.mode==="dark"?s.neutralGrey4Dark:e.isWarning:e.theme.colors.primary};
101
- `,se=t(b)`
101
+ `,se=t(j)`
102
102
  margin-top: -5px;
103
103
  color: ${e=>e.theme.mode==="dark"?s.neutralGrey1Dark:e.theme.colors.primary};
104
- `,p=t(b)`
104
+ `,p=t(j)`
105
105
  display: flex;
106
106
  margin-top: -5px;
107
107
  color: ${e=>e.isError?s.important:e.isWarning?s.brandColorGoldDark:e.theme.colors.primary};
@@ -109,11 +109,11 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
109
109
  width: ${r.sp4};
110
110
  height: ${r.sp4};
111
111
  color: ${e=>e.isError?s.important:s.brandColorGoldDark};
112
- `,le=t(_)`
112
+ `,ae=t(_)`
113
113
  width: ${r.sp4};
114
114
  height: ${r.sp4};
115
115
  color: ${s.success};
116
- `,ae=t(O)`
116
+ `,le=t(J)`
117
117
  width: ${r.sp4};
118
118
  height: ${r.sp4};
119
119
  color: ${e=>e.theme.colors.grey2};
@@ -145,7 +145,7 @@ import{J as B,V as i,aP as m,o as r,aR as L,y as d,x as M,O as C,a as D,p as s,a
145
145
  color: ${e=>e.theme.colors.brandColorJade};
146
146
  width: ${r.sp3};
147
147
  height: ${r.sp3};
148
- `,he=t(J)`
148
+ `,he=t(F)`
149
149
  color: ${e=>e.theme.colors.brandColorGoldDark};
150
150
  width: ${r.sp4};
151
151
  height: ${r.sp4};
@@ -1,4 +1,4 @@
1
- import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as x,an as y,ai as c}from"./index-6sX8sCRU.js";import{n}from"./mui-BKJrVh4W.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a0b32cac-f82a-4f55-80b5-24e9040de739",e._sentryDebugIdIdentifier="sentry-dbid-a0b32cac-f82a-4f55-80b5-24e9040de739")}catch{}})();const{hyphen:i}=x.getLocalizedStrings().common.strings,b=n.div``,m=n.div`
1
+ import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as y,an as x,ai as c}from"./index-rJQoaAfw.js";import{n}from"./mui-KNfEk2A1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0d5333c6-239f-48ea-8435-8df2f279766c",e._sentryDebugIdIdentifier="sentry-dbid-0d5333c6-239f-48ea-8435-8df2f279766c")}catch{}})();const{hyphen:i}=y.getLocalizedStrings().common.strings,m=n.div``,b=n.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -9,7 +9,7 @@ import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as x,an as y,ai as c}from"./in
9
9
  `,a=n.div`
10
10
  display: flex;
11
11
  align-items: center;
12
- `,w=n(y)`
12
+ `,w=n(x)`
13
13
  border-radius: ${o.sp12};
14
14
  border: 1px solid ${e=>e.theme.colors.grey1};
15
15
  display: flex;
@@ -19,4 +19,4 @@ import{eR as f,eS as h,V as s,bT as g,o,aP as l,F as x,an as y,ai as c}from"./in
19
19
  justify-content: center;
20
20
  color: 1px solid ${e=>e.theme.colors.grey1};
21
21
  margin-left: ${o.sp1};
22
- `,I=({roles:e})=>{let t=i,r=[];t=f(e),r=h(e);const p=()=>r.length>0?s.jsx(b,{children:r.map(d=>s.jsxs(m,{children:[s.jsx(u,{children:d[0]}),s.jsx(j,{children:d[1]})]},d.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:o.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
22
+ `,I=({roles:e})=>{let t=i,r=[];t=f(e),r=h(e);const p=()=>r.length>0?s.jsx(m,{children:r.map(d=>s.jsxs(b,{children:[s.jsx(u,{children:d[0]}),s.jsx(j,{children:d[1]})]},d.join(",")))}):s.jsx(s.Fragment,{children:i});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:o.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};
@@ -1,4 +1,4 @@
1
- import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG as Fe,V as a,ac as Ne,cp as Re,cq as qe,cr as Be,aR as ze,iu as We,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cJ as Ke,J as Ge,iL as He,gP as ue,u as B,p as De,y as ye,cK as Ye,iy as Ze,iz as Qe,iA as Xe,o as V}from"./index-6sX8sCRU.js";import{a as f}from"./sentry-BsWDfhY_.js";import{n as W}from"./mui-BKJrVh4W.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-DEUUJaZy.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-DDhoyPGX-zvxwe9e1.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="b12a7a43-767f-4e22-bc90-92ca21304830",e._sentryDebugIdIdentifier="sentry-dbid-b12a7a43-767f-4e22-bc90-92ca21304830")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
1
+ import{aQ as G,ir as te,gK as me,eD as Je,is as Me,a9 as _e,it as Ve,cF as Pe,cG as Fe,V as a,ac as Ne,cp as Re,cq as qe,cr as Be,aR as ze,iu as We,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cJ as Ke,J as Ge,iL as He,gP as ue,u as B,p as De,y as ye,cK as Ye,iy as Ze,iz as Qe,iA as Xe,o as V}from"./index-rJQoaAfw.js";import{a as f}from"./sentry-CGE1ab0x.js";import{n as W}from"./mui-KNfEk2A1.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-CiJSQQSe.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2bd71c30-ca1d-4f04-ad08-ee0795805019",e._sentryDebugIdIdentifier="sentry-dbid-2bd71c30-ca1d-4f04-ad08-ee0795805019")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;