@zeniai/web-cockpit-ui 1.15.48-dev → 1.15.49-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 (344) hide show
  1. package/dist/assets/ACHDetailsPage-CXIFSMnN-Coq6wI87.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DlTdGosv-C-O0nWEk.js → AIPerformancePage-DgrMh-mY-Bylt20RS.js} +104 -104
  3. package/dist/assets/AccountInfoPage-WkSEcWJL-CkOnNoKS.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BS2TBUSE-yixZKJJd.js → AccountInfoPageContent-DeptuP1q-CsYE_k70.js} +20 -20
  5. package/dist/assets/{AccountLockedInfoModal-aukulrV7-BghUJRSx.js → AccountLockedInfoModal-CYYkjr3Y-BcAzzzM4.js} +11 -11
  6. package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-CTXzE170.js → AccountReconDetailsDrawerPage-jN8KgM4V-yAl3_OHe.js} +19 -19
  7. package/dist/assets/AccountRow-C7_pSX9U-C_uj4ob-.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-BsmcJo7C.js → AccountsPromoCardStack-CB2gPVUw-D3B_FWzu.js} +32 -32
  9. package/dist/assets/AddAddressForCardDrawer-BiaLjcnj-DwcRtJ6c.js +6 -0
  10. package/dist/assets/{AddToWalletPage-C4EwdLZJ-DPPfaq4h.js → AddToWalletPage-BlExjuu4-B196FBl9.js} +18 -18
  11. package/dist/assets/{AgingReportsPage-vAvkUfOS-eLupiUU4.js → AgingReportsPage-D9UyMHCS-CUKIok_T.js} +7 -7
  12. package/dist/assets/{AllUserItems-qrYg6Gdx-CexfoJXZ.js → AllUserItems-DGGAZCTH-DA8Osx0t.js} +11 -11
  13. package/dist/assets/ApAgingDetailPage-C-whdj9K-JXlpGLx8.js +46 -0
  14. package/dist/assets/{AppBasePage-DrE-W6d7-Bq2ai-ng.js → AppBasePage-ANWa38-v-Dui1Sxci.js} +8 -8
  15. package/dist/assets/{AppDrawerContent-ATbZG_cu-C_LUaX21.js → AppDrawerContent-UhQJdUmA-CkRUhLQ3.js} +5 -5
  16. package/dist/assets/ApprovalRulesSettingsPage-BdNNS-TS-C1VrdMxf.js +47 -0
  17. package/dist/assets/{ArAgingChart-CuzG9AZY-CBzkLPD8.js → ArAgingChart-CuFQTCRF-BBoOHiTE.js} +6 -6
  18. package/dist/assets/ArAgingDetailPage-CQRhI5Z_-Db-Z6Fvw.js +46 -0
  19. package/dist/assets/{AttachmentView-BrQRChzc-gMo83IaQ.js → AttachmentView-D6K3YHdZ-Bap3B_dh.js} +6 -6
  20. package/dist/assets/{BankAccountSection-hcKEMs80-C67in8I4.js → BankAccountSection-B51-Hpnt-BDzmY8Fy.js} +6 -6
  21. package/dist/assets/BankAccountWarningSection-Bqrm3j-y-DAe6VsjZ.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-CZPCyWyx.js → BankConnectionsSettingsPage-BeTdU1D7-CvYt_ADS.js} +30 -30
  23. package/dist/assets/BillDetailPage-GenRHQg3-fgN7wk2K.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-D8q32jGy.js → BillPayApprovalRuleDetailPage-CVBTvKC--CjXFb5TX.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-CAnnaIQP.js → BillPayApprovalRulesPage-COiOi09y-D-B4gYTJ.js} +19 -19
  26. package/dist/assets/BillPayPromoPage-C-lZ36kT-Cmn31Ydv.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-WdEdbf16-BT3nFT0U.js → BillPaySetUpPage-3O1UBtgm-Dsg0n8rt.js} +9 -9
  28. package/dist/assets/BillingSettingsPage-ButDt4sV-CDAA93m9.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DngjFR3H-BSt2ez3P.js +1 -0
  30. package/dist/assets/{BoxItem-CACRFWG2-ByiTZQgF.js → BoxItem-C-VST523-DMPXmLe8.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-CnF2Rkda-BxUtCmxb.js +138 -0
  32. package/dist/assets/{CardNumberSubText-C-oVdziK-Cq3VPImW.js → CardNumberSubText-BUvXykSn-DR27wA6E.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BhFKSl4p-ewrE6dWH.js → CashbackDetailPage-BhHWEtnP-BIMVCNfp.js} +27 -27
  34. package/dist/assets/{ChargeCardDetailPage-D8J6HINu-CzxUCqhO.js → ChargeCardDetailPage-BGqaGwV3-AFT-HAkP.js} +20 -20
  35. package/dist/assets/{ChargeCardListPage-tdUKyHdz--1Qr1SRx.js → ChargeCardListPage-D5H9U0h8-DeNsZOzv.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-CByk3iqX-BeCD5LdA.js → ChargeCardListTable-Byme0rAu-ych_Qx-x.js} +55 -55
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-CkVYMc70.js → ChargeCardPaymentHistoryPage-DKW98ipI-DfncT-JI.js} +34 -34
  38. package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-CkQvUCt_.js → ChargeCardPromoPage-VSqN0247-7AKJMP0k.js} +30 -30
  39. package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-WssSZZMh.js → ChargeCardSetupPage-BMitkkOv-DqB6_gbE.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-CjOL8QcR.js → ChargeCardStatementsPage-C_iQ5kBD-CzlgcFfP.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-CwWWbDuR.js → CheckDepositDrawerPage-BaRz0MD0-fXpFUSD5.js} +15 -15
  42. package/dist/assets/{CollapsableReportTable-Cq8bhaYC-sMsxrigZ.js → CollapsableReportTable-C4hqC6Uj-CeOhK0qJ.js} +272 -272
  43. package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-JGxyR29X.js → CompanyOfficerDetailsSection-DA62JWZF-28wXvrh9.js} +32 -32
  44. package/dist/assets/{CompanyPassportCard-CHaKk74P-B2_ZiFli.js → CompanyPassportCard-CDQgqgtJ-Cs-zlaQi.js} +12 -12
  45. package/dist/assets/{CompanyPassportPage-DXWXFFKM-BSWnHzV_.js → CompanyPassportPage-DoOtHRwj-7bnAHUeu.js} +20 -20
  46. package/dist/assets/{CompleteProfile-ChaWsK6t-BWU7y1Ur.js → CompleteProfile-DsEoizlG-DOegmHNH.js} +2 -2
  47. package/dist/assets/ConfettiBurst-D_bNA5jm-AxnjtqGp.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DNicMQ8z.js → ConstrainedInnerElement-BeIpAPjB-yhWFdRSc.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-Dp_EGm5j.js → CreateOrEditVendorPage-CQGF8m1c-Km9d2S1Z.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-DUDc8hji.js → CreditCardPaymentDrawerPage-DK_T0qbN-Bvmfy85N.js} +15 -15
  51. package/dist/assets/CurrencySelectField-7to_rmTp-D1r0SB0Y.js +139 -0
  52. package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-DJ0wwxyO.js → CustomerOnboardingActivationPage-DCQ_KqzB-DJtTHAcy.js} +29 -29
  53. package/dist/assets/CustomerOnboardingContainerPage-DMF9BtF3-COJ-Wyve.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-DzZiwltK.js → CustomerOnboardingDetailPageSkeleton-ZTBIaml1-DBfEZVdM.js} +17 -17
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-Ih9fR2Ck.js → CustomerOnboardingNoStepsPage-DEq1Mm1I-Dp_05KKK.js} +6 -6
  56. package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-BPk9Ux7h.js → CustomerOnboardingPage-BXch3GVe-Ba_gMD_F.js} +16 -16
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-8xZH_qGW.js → CustomerOnboardingProductSuitePage-D7PFi42F-C_seXYMG.js} +8 -8
  58. package/dist/assets/{Dashboard-Csggwob0-BEFQIWvp.js → Dashboard-BcjA6DTL-B8wtUrMY.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-DFIdi_I0-CkaE8ALl.js → DashboardReportPage-Ce-jnQbs-CfmLV1Yt.js} +22 -22
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-JT601qzy-CkG1z_mx.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-DmLfirr4.js → DepositAccTransactionItem-COgr8Xw5-NWAgf7bV.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-B5JNFWiD.js → DepositAccTransactionListPage-zhPDzJoK-AejpnIWF.js} +4 -4
  63. package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-UT6ULanE.js → DomesticWireDetailsPage-2MqIFQbM-BGwsfDe-.js} +2 -2
  64. package/dist/assets/{DownloadOverlay-4f9deyJS-BVIQGklQ.js → DownloadOverlay-CfWDWIbC-DcGZOT8A.js} +26 -26
  65. package/dist/assets/{DrawerPage-roO3xvRT-BOp9n67_.js → DrawerPage-CfIhiBhn-A5CC3xdl.js} +11 -11
  66. package/dist/assets/EditPeoplePage-D25vo51x-BKCEnPp5.js +55 -0
  67. package/dist/assets/EditReimbursementDetailPage-DnFC_tCw-Cr7fsauQ.js +865 -0
  68. package/dist/assets/EntityDetailPage-C9vgxsh4-Dg0LhTdP.js +18 -0
  69. package/dist/assets/{EntitySummarySection-fBL4TZpT-Do-s3IXr.js → EntitySummarySection-Bie5ZOV3-BZu2b-HP.js} +32 -32
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-kjQ2nbJ0.js → ExpenseAutomationOverviewPage-BEKF8mo3-DI5Un6My.js} +47 -47
  71. package/dist/assets/ExpenseAutomationPage-DiJoZGeD-lfenglhX.js +3001 -0
  72. package/dist/assets/{ExpressPayPage-c8oTCnBR-B1eI11Un.js → ExpressPayPage-C6Jb6WrN-BeqBD08K.js} +19 -19
  73. package/dist/assets/{FeaturePreviewPage-DkiAajs2-DbJCCTbJ.js → FeaturePreviewPage-ev9V1Riy-BV3fE1G1.js} +3 -3
  74. package/dist/assets/{FollowStepsSection-GaWu1kt9-BRvlMtUk.js → FollowStepsSection-BlgHPyvL-BhwHykaB.js} +44 -44
  75. package/dist/assets/GlobalReviewListPage-Ck-LItUj-B8rLujq7.js +291 -0
  76. package/dist/assets/{InformationCardStack-dMFbHUWM-C-FgUaQe.js → InformationCardStack-BkuCjydF-ClSDOapP.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-BlXkyuyz-DfwZenu8.js → InsightsCardStack-BFrwV0PC-CZ45PRa1.js} +10 -10
  78. package/dist/assets/InsightsSection-BdLDesVF-oVNFlqx0.js +27 -0
  79. package/dist/assets/IntegrationsSettingsPage-skBb_52w-D47eLHv2.js +57 -0
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-Cc24FhVA.js → InternationalWireSwiftDetailsPage-DUNu57zU-B6FHq7_F.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-D1_fj0MG-Bu9SiBen.js +65 -0
  82. package/dist/assets/{InviteFormPage-BCdalqtP-CWNB58up.js → InviteFormPage-D8zySzlG-B662YNtS.js} +21 -21
  83. package/dist/assets/{InvitePageListView-B88FW48q-DLYg-1DF.js → InvitePageListView-DUng4fOl-Bw5RtSsX.js} +63 -63
  84. package/dist/assets/InvitePeoplePage-C0bQFMoO-C-nWyYL8.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-CVOHcfdx-FSNHIS5V.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-B6wmvbEr-VuO_1ug1.js → IssueChargeCardPage-Vzj9appY-09K43VT7.js} +18 -18
  87. package/dist/assets/{LabeledAddressValue-CQrDCgNs-DLETXjJP.js → LabeledAddressValue-inaQliHs-Dg9xTHiz.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-B6IDZIGK-SXi-bQ86.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-Drc3Qnd9.js → LabeledControlledCheckBoxField-DNMqJzBC-BPs_pf7S.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-Bj5X4vuH.js → LabeledCountryMultiSelectField--JYMnWIw-Dm5jwrCs.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-BL3DwXW8.js → LabeledCreatableSingleSelectField-C5A14hjp-Dp3zoxD2.js} +8 -8
  92. package/dist/assets/LabeledDocumentField-DXd7BAH7-EzfLYbDV.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-BuWBYrn7.js → LabeledDropDownFormattedTextField-BVtRyAo1-706o2HXB.js} +7 -7
  94. package/dist/assets/LabeledText-B0bwznDi-CbaJVeOz.js +42 -0
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-QFZXJ5Cv.js → LabeledUserSingleSelectWithSubtitlesField-DXTzXLuP-C7ZxqrMf.js} +19 -19
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-CJTlz3Mt.js → LabeledZeniRolesDropDownField-C0AamFZX-DtH7B1QB.js} +28 -28
  97. package/dist/assets/{LinkJETransactionPage-BhV2MnCY-OOF2_Kqe.js → LinkJETransactionPage-DWjs72Wp-CUQI1Z1j.js} +16 -16
  98. package/dist/assets/{LockCardPage-CHv1xi2J-CdU6oKR8.js → LockCardPage-CPUbpfrv-3LEgf1Eq.js} +217 -217
  99. package/dist/assets/{LowBalancePopup-Cb55PGLc-D5jF-boV.js → LowBalancePopup-Cg-JRo7A-zj6pzOkP.js} +6 -6
  100. package/dist/assets/MagicLinkACHDetailsPage-CUhe4LF8-C2tbOI9Z.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-DRiOxSts-fgdDLLEw.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwCrgk9X-BJyrM3xf.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-UOywm1sp-BBCToRwV.js +31 -0
  104. package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-CcuMLSrK.js → MagicLinkTitleSection-D5RIlimx-5X1vjx5k.js} +5 -5
  105. package/dist/assets/MailingDetailsSection-OYOVCPaq-B5APfdaG.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-ImakKrC1.js → MyBankConnectionsSettingsPage-D55M4Yo6-DWI72gIp.js} +14 -14
  107. package/dist/assets/MyPendingActivationChargeCardListPage-SxpMobOC-QJU8xHLH.js +6 -0
  108. package/dist/assets/MyProfileSettingsPage-DLvCW9dl-3UYEbBEM.js +85 -0
  109. package/dist/assets/NavBarWithPicker-zd1BopIw-dYFUtFeu.js +30 -0
  110. package/dist/assets/{NavigationArrow-kQWS5Pzb-CpYsSVtE.js → NavigationArrow-CqK2Gxhj-JoTM067o.js} +7 -7
  111. package/dist/assets/{NavigationDots-BQb_Fodq-C4MvpAYN.js → NavigationDots-C7DGhAsk-BigsWf2H.js} +4 -4
  112. package/dist/assets/{NewGlobalMerchantPage-z86XZorn-MrP90led.js → NewGlobalMerchantPage-BH4SIY-b-IspkGBWL.js} +40 -40
  113. package/dist/assets/NoDataChart-Vz2Z_iIL-BHz7pPoV.js +26 -0
  114. package/dist/assets/{NoDataTable-DVe7sQhD-B4Won1bo.js → NoDataTable-B355xDAT-DcAZ4j4d.js} +1 -1
  115. package/dist/assets/{NotFoundPage-B1XCmhSe-BbSR46rN.js → NotFoundPage-Bfp9Pyxw-DVJn2b4k.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-BaN20EGV-BApCLVwG.js → NotificationSettingsPage-1OEolmCL-DbOSpAhH.js} +20 -20
  117. package/dist/assets/NotificationsListConfig-B5Ei8fVY-6YLjvq8F.js +1 -0
  118. package/dist/assets/NotificationsPage-ChGr8-XF-VM1F0z8s.js +685 -0
  119. package/dist/assets/OpExByVendorPage-ae4FK1p6-CuNG361W.js +100 -0
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-ZCgtvNt_.js → OverlayContainerPage-D4QU0p4o-CR2TYg0o.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CXtJhnA_-BuxPvuJl.js → PandLWithForecastPage-ChIPvp4R-qyv7RUis.js} +11 -11
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-D78UP0fJ.js → PaymentAccountSetupBillingAddressSection-CnpmZxaM-COq_RoPw.js} +13 -13
  123. package/dist/assets/PeoplePage-D8pfeVRK-n6UzH76T.js +727 -0
  124. package/dist/assets/{Preview-D0sjWWj-.js → Preview-qBYtkSAF.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-ufZlh7Rx-CeYUIWta.js → ProductsCarousel-eVPl5t0I-BGcfqmV6.js} +7 -7
  126. package/dist/assets/{PromoBaseCards-D2UbhBhT-Bd7EQvVS.js → PromoBaseCards-HrcAWM4W-BKT0vHPP.js} +4 -4
  127. package/dist/assets/{QBOConnectionDialog-BrQ71F06-SmKPuRPN.js → QBOConnectionDialog-DgyYkEYY-Cpn7NAss.js} +6 -6
  128. package/dist/assets/QBOSetupSection-C4KJ5iyA-DQVhDTXa.js +79 -0
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-BAJOw6TG.js → ReimbursementApprovalRuleDetailPage-BbEMTVlp-CzXU9rgb.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-DkCRmTkh.js → ReimbursementApprovalRulesPage-B_1m9CBx-CabMdysS.js} +18 -18
  131. package/dist/assets/ReimbursementDetailPage-8i30hIr0-Dsm2Dpy8.js +314 -0
  132. package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-DX5gy_0D.js → ReimbursementPromoPage-C4bxCDcc-yn3a9m-2.js} +32 -32
  133. package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-B1V8RiyF.js → ReimbursementSetUpPage-BkJ1-eNw-DtguijtQ.js} +12 -12
  134. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CYZGBUms--1POKdZc.js +1 -0
  135. package/dist/assets/{ReloadCard-vAhL7B8U-t1zAQv25.js → ReloadCard-DrAfrMOy-Dp01MRiJ.js} +8 -8
  136. package/dist/assets/ReportTableViewSelector-DM_Em4lI-DVoP-nO6.js +150 -0
  137. package/dist/assets/{ReportsPage-DKM0gVzR-Bx9Ahq8r.js → ReportsPage-E9MU25NS-BG-K0aaI.js} +4 -4
  138. package/dist/assets/{RevenueChart-BEjDS1u4-CJFUFXPf.js → RevenueChart-CzVs6lFB-CetzZFOl.js} +13 -13
  139. package/dist/assets/{ReviewDetailsPage-BlQLrN9z-Dd93PdNx.js → ReviewDetailsPage-DR0MCIgO-DeTv48zq.js} +53 -53
  140. package/dist/assets/{ReviewOverlay-Bn3TFqfi-Cm7uPP59.js → ReviewOverlay-jDgQyzfL-CrHwzWa9.js} +24 -24
  141. package/dist/assets/RoleWithToolTip-zLU58xb1-CSAiI1iT.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-BeDlaHIk.js → ScheduleDetailsFixedAssetsPage-D47R-Lyr-CZpPEcr2.js} +13 -13
  143. package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-DST5i2IG.js → ScheduleDetailsPage-DYNnVOEv-D18lxUWs.js} +3 -3
  144. package/dist/assets/ScheduleSequenceTable-CCHqmNhS-C5vei5ej.js +324 -0
  145. package/dist/assets/{ScreenRoutes-B2hsHPEr.js → ScreenRoutes-CyJpBFvr.js} +48 -48
  146. package/dist/assets/{SetUpAccountSection-CoVrSSYL-7U497n--.js → SetUpAccountSection-Bq2qSGml-DouG9J1c.js} +7 -7
  147. package/dist/assets/SignIn-Lqp6Uw4I--saqLsOx.js +491 -0
  148. package/dist/assets/SignInScreen-Crh_lnSg.js +1 -0
  149. package/dist/assets/SpendManagementListViewPage-DUBWXnF--DVg116ep.js +134 -0
  150. package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-VDOF69nw.js → SpendManagementPerTabPage-RLv6LS-z-CYo8kes0.js} +114 -114
  151. package/dist/assets/{SpendManagementSection-D8rBpC-y-FHAIQmms.js → SpendManagementSection-DJfAJzAL-ig4GL1ZT.js} +22 -22
  152. package/dist/assets/StatementItem-DWaejUx_-C8v9F3EQ.js +31 -0
  153. package/dist/assets/{StatementsPage-DiY2BOcu-APBz42WN.js → StatementsPage-BgYeg1T4-C88dmgbV.js} +5 -5
  154. package/dist/assets/{StatusSwitcher-B9MARTyR-P7RIwFRO.js → StatusSwitcher-C4MmXvmy-xYxIiuBt.js} +4 -4
  155. package/dist/assets/{SubTabSwitcher-C3rtSwro-DGcZkDgz.js → SubTabSwitcher-UW2b0f3g-Dn63h3aS.js} +2 -2
  156. package/dist/assets/{SummaryCard-CShVbqhj-D8ckNEht.js → SummaryCard-BLqrfWMN-BoOQqfaJ.js} +1 -1
  157. package/dist/assets/TaskManagementPage-BmOv6jb0-DMzDUJnW.js +508 -0
  158. package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-CF5mv12I.js → TimeRangeSwitcher-NHpll2Zg-Dr20odtf.js} +4 -4
  159. package/dist/assets/TimeframeSwitcher-DR4B6ENA-CD0Ac63k.js +31 -0
  160. package/dist/assets/TimeframeSwitcherWithToggle-DlZ34Erl-BkLOXZy3.js +31 -0
  161. package/dist/assets/{TopExCard-dI_WEGWb-Dg0iyuar.js → TopExCard-BKUm1fVu-CdS4qfxw.js} +6 -6
  162. package/dist/assets/{TopExDetailPage-BWy5E8Lp-z65VL4y3.js → TopExDetailPage-BpaKGiXB-_eDwMn8-.js} +18 -18
  163. package/dist/assets/TransactionActivityLogPage-C4oS0b8d-5ZoA1pgW.js +195 -0
  164. package/dist/assets/TransactionDetailPage-Dz5UCI7c-DCbRyu-c.js +903 -0
  165. package/dist/assets/TransactionList-7sC4Vvux-BdQNJsG3.js +153 -0
  166. package/dist/assets/{TransactionListBig-DWQXH4ID-BXeSpaXE.js → TransactionListBig-C1i2HOEm-BoHPxhV4.js} +18 -18
  167. package/dist/assets/TransactionListPage-CTzZTWJh-rMP8UEHn.js +35 -0
  168. package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-5A99k1pe.js → TransactionVendorDetailPage-BhEUsSHE-DWkVZWnN.js} +15 -15
  169. package/dist/assets/{TransferDrawerPage-6z-MoZZP-BDrE92fY.js → TransferDrawerPage-enFS8KsH-pWKe3GIV.js} +29 -29
  170. package/dist/assets/{TreasuryOverviewPage-CF_ter0o-C1Xt_81i.js → TreasuryOverviewPage-BT--Br6F-DZD_F62z.js} +36 -36
  171. package/dist/assets/{TreasuryPromoPage-Do-PTcjI-CNI9ltkm.js → TreasuryPromoPage-DsUxXGv2-CbCXpGfI.js} +27 -27
  172. package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-B6l_d1_x.js → TreasuryStatementsPage-D7NeRKLM-FnJOs5A5.js} +3 -3
  173. package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-4a2peJ00.js → TreasuryTaxLetterPage-Cj6nJmhq-eRbAIBG9.js} +3 -3
  174. package/dist/assets/{TrendChart-C6B61CAm-DSOogQNb.js → TrendChart-CWaL1-sD-jHXMg1Jt.js} +4 -4
  175. package/dist/assets/{TrendWithTransactions-Bp3vhaPa-ltcNaAHT.js → TrendWithTransactions-ULrBa2b0-DV504Izy.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-CYzZB7up.js → UncategorizedAccountsMappingPage-D8b01XUy-DqqC0SGI.js} +18 -18
  177. package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-DeFm36Ch.js → UnitIntegrationPage-KbEwifey-DfbiDH3c.js} +5 -5
  178. package/dist/assets/UploadAdditionalDocumentOverlay-Cxxuws-w-q1izSlj8.js +38 -0
  179. package/dist/assets/Vendor2FAPopup-Dm6Ot_5k-CeyePLNN.js +1 -0
  180. package/dist/assets/VendorACHDetailsPage-DMhwUboX-DW77y7-e.js +1 -0
  181. package/dist/assets/{VendorDetailPage-C4g_Gfsl-PDTA30fp.js → VendorDetailPage-BwbESVFq-BHZW_2ez.js} +89 -89
  182. package/dist/assets/VendorDomesticWireDetailsPage-DU47133D-BNz0vLWP.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-DkK-z8t4.js → VendorFiling1099EditablePage-Dycvl3IG-DtHtcSbL.js} +15 -15
  184. package/dist/assets/VendorFirstReviewPage-COk5-4Mm-BUPA8fWX.js +730 -0
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-gzpiXQNr.js → VendorInternationalWireDetailsPage-Di0TU5Db-B1HiqwDL.js} +22 -22
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Do345R_v-M_TSksW9.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-BT-RADSV-DmS6BFzF.js → VendorsAccountsSection-BPuqPLC8-CD6vaKdE.js} +4 -4
  188. package/dist/assets/{VerifyDevice-Cxc9CVMi-Brvk1hge.js → VerifyDevice-BRCRNTf1-Dw4vKeVk.js} +11 -11
  189. package/dist/assets/{VideoPlayer-9UkKMhGy-QE0dUH77.js → VideoPlayer-BgWCDJp3-CbPNc--2.js} +2 -2
  190. package/dist/assets/{VideoPopup-rfiYmtio-CZD9BvVe.js → VideoPopup-ckAw3yZZ-CPBR9ffY.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-DrUA4asI-BplyTtEg.js → WarningsDrawerPage-D0VOjlPL-Cmk9Gclc.js} +7 -7
  192. package/dist/assets/{ZeniAccountDetailPage-K016HgQt-AvGfMJEL.js → ZeniAccountDetailPage-DxdKUJ_i-8Rps5gMW.js} +24 -24
  193. package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-i09iw6my.js → ZeniAccountListViewPage-DxCB40sG-D7wpBJpb.js} +17 -17
  194. package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-BKtADLa5.js → ZeniAccountNavBarPieces-D7o4_8jk-DU75NHos.js} +3 -3
  195. package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-COB-XAgg.js → ZeniAccountPromoPage-BlfBjcVV-D8slteBQ.js} +22 -22
  196. package/dist/assets/ZeniAccountSetupPage-akgqrbmw-xtslv-BN.js +36 -0
  197. package/dist/assets/ZeniCopyright-BrtqzLbb-BE2v7OcH.js +1 -0
  198. package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-eVW41JkY.js → ZeniTransferAmountSlider-yfG_RSE5-Chw30zZt.js} +11 -11
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-Cs3ZFbTn.js → add-to-wallet-DgdBD8_G-DgloNLoG.js} +1 -1
  200. package/dist/assets/{analytics-hCfYtzJT.js → analytics-BxsZVqMD.js} +30 -30
  201. package/dist/assets/{analyticsHelper-DKGNBdrX.js → analyticsHelper-BROaWFlP.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CT5zOInj-Du0DTPF_.js → analyticsHelper-YXL3oVeL-st_q3oRE.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-CzrrwgSg.js → arrow-south-east-round-PEovUgvH-Cgw5LgRs.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-B_xw5P5j.js → auto-transfer-rule-mbafm5D3-DEP8Cseu.js} +1 -1
  205. package/dist/assets/{chartTypes-Ddw_3-6f-BMc10nJG.js → chartTypes-BPQ65VEE-6yZpeJsO.js} +1 -1
  206. package/dist/assets/commonDimensions-DY0eA-Tl-D8wklKVF.js +1 -0
  207. package/dist/assets/{commonTypes-B-foaEwJ-DqsczfuL.js → commonTypes-WZYufpaN-dYh7B5Qi.js} +1 -1
  208. package/dist/assets/{constants-y09M8DFT.js → constants-cBgt-jnp.js} +1 -1
  209. package/dist/assets/{core-Ce1HnmCU.js → core-CCdM5htn.js} +1 -1
  210. package/dist/assets/{dash.all.min-BLN3VaU-.js → dash.all.min-BhdX5A-b.js} +1 -1
  211. package/dist/assets/{detailCommon-Cpgf9GLg-CC3Vv-5k.js → detailCommon-cqZF9ZV8-CcqFhiCw.js} +6 -6
  212. package/dist/assets/downloadPdf-3uDsBfRK-CGEKdVDQ.js +1 -0
  213. package/dist/assets/{empty-BjLibp41.js → empty-21UCvCWa.js} +1 -1
  214. package/dist/assets/{empty-CHvpDZ25.js → empty-Ci7PTPdn.js} +1 -1
  215. package/dist/assets/epic-DjY7Y3Uv.js +2 -0
  216. package/dist/assets/{gift-box-Cmt9OgIZ-tPfmdYN9.js → gift-box-Cmt9OgIZ-fL_gav59.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DgWqYmly.js → graphic-no-data-l-DU4J8fDt-CsPk6hIb.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-X9wgEFDB.js → graphic-no-data-net-burn-l-CzmycA0m-CK0OnqK_.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-CvblpTUh.js → handshake-BPg58FML-CJV_gJfO.js} +1 -1
  220. package/dist/assets/{helper-DP3YY99s-D6TxHUGT.js → helper-GwFcgf4f-QTj7P4Bk.js} +3 -3
  221. package/dist/assets/{index-Dwr9jsgf.js → index-8HE4yJ5t.js} +1 -1
  222. package/dist/assets/{index-DV0-LoHG.js → index-BsaB-Va2.js} +1 -1
  223. package/dist/assets/{index-BWlQ-rZN.js → index-C96UtQPZ.js} +1 -1
  224. package/dist/assets/{index-CbBDw148.js → index-Cq3X29cS.js} +4594 -4589
  225. package/dist/assets/{index-DXatjVel.js → index-D2yPgh5G.js} +1 -1
  226. package/dist/assets/{index-BMSo18eq.js → index-DBail5F5.js} +1 -1
  227. package/dist/assets/{index-CnMDhZ-z.js → index-DQtDqiLj.js} +1 -1
  228. package/dist/assets/{lexical-Dk2CPrxk.js → lexical-BfjdJw9p.js} +1 -1
  229. package/dist/assets/{liveblocks-ivZsDCw2.js → liveblocks-hPir54fv.js} +1 -1
  230. package/dist/assets/{lottie-solWV_WO.js → lottie-B9oE3WTk.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-CkbJ6R1I-DIVOAa5P.js +1 -0
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-DfVKFmO9.js → mapSectionWithAcOnlyToTreeNode-BR34hkWh-Dcg0Ex62.js} +1 -1
  233. package/dist/assets/mapSpacerToTreeNode-BDHpjDEs-DAaIJCY0.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-B-58xc9r-DNQTilLS.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-DNryKtmS-D24Y9ZFz.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-6kNSnV0m-BkRLjeRM.js +1 -0
  237. package/dist/assets/{mui-BLUOobNq.js → mui-DzE-7sTl.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-mLiSYxOb.js → page-detail-CWX5S47F-CU2PSbaV.js} +1 -1
  239. package/dist/assets/panelSelectedMixin-Cddsb26L-CcYFb3nR.js +3 -0
  240. package/dist/assets/{radio-default-CiSgisfh-BwLFYKqj.js → radio-default-CiSgisfh-Bxc-V1Pu.js} +1 -1
  241. package/dist/assets/{react-gwEklu5z.js → react-BZ8J0jw1.js} +2 -2
  242. package/dist/assets/{react-DiVyX7it.js → react-BldneNt8.js} +1 -1
  243. package/dist/assets/{react-DwW_czRA.js → react-CCRxUGC8.js} +3 -3
  244. package/dist/assets/{react-nPRE2jd8.js → react-CI8KeqtZ.js} +1 -1
  245. package/dist/assets/{react-BR1Eke5i.js → react-CrnvOta1.js} +1 -1
  246. package/dist/assets/{react-ChJntTSM.js → react-DukPPAPu.js} +1 -1
  247. package/dist/assets/{react-BZ0TRoDf.js → react-IwpftXW_.js} +1 -1
  248. package/dist/assets/{react-OybbRboE.js → react-iFe9VXnX.js} +1 -1
  249. package/dist/assets/{recharts-J8hRG6fl.js → recharts-CiLmNGsl.js} +1 -1
  250. package/dist/assets/{sentry-ClS5bwGc.js → sentry-DQ_HstYV.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DyyzcGvz.js → shield-DOlUxcFf-B21f1_cN.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-CU-N01Ne-BfeZ-0De.js +1 -0
  253. package/dist/assets/toChartData-BIERIIE--CxJg6nKe.js +1 -0
  254. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-DWftVCta.js +1 -0
  255. package/dist/assets/{uploadAttachment-DUpHzqMe-BojPE85u.js → uploadAttachment-htF-2xC2-BK-WmHcD.js} +21 -21
  256. package/dist/assets/uploadReceipts-Dge0cNF1-DNapZCC1.js +1 -0
  257. package/dist/assets/{url-VN-yF4_H.js → url-D8jqtRfm.js} +1 -1
  258. package/dist/assets/{url-ckMdLfnk.js → url-vYaM0QEj.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BBsdk_o7.js → useLongPress-GCK2COYQ-BEGNcNvC.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-DYPeqq64.js → usp-line-BBd1wKwW-R5RCG5WU.js} +1 -1
  261. package/dist/assets/{utils-DG8PAOHO.js → utils-wDk5ojg7.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-W0HMFHDj.js → zeni-epic-state-B4gyGBI3.js} +34 -34
  263. package/dist/index.html +1 -1
  264. package/package.json +4 -4
  265. package/dist/assets/ACHDetailsPage-D2Xav-UW-Bfz777OP.js +0 -21
  266. package/dist/assets/AccountInfoPage-B8-8kUGD-BK55XEFQ.js +0 -18
  267. package/dist/assets/AccountRow-BiEYR4Y1-CNf1wUw2.js +0 -298
  268. package/dist/assets/AddAddressForCardDrawer-DTnfk8K7-BnQvSUBa.js +0 -6
  269. package/dist/assets/ApAgingDetailPage-BRYQMwo2-s_dBzDV6.js +0 -46
  270. package/dist/assets/ApprovalRulesSettingsPage-5MYC1I6k-BnQPq9AM.js +0 -47
  271. package/dist/assets/ArAgingDetailPage-DwRkcLEu-BW0txT0n.js +0 -46
  272. package/dist/assets/BankAccountWarningSection-CpxVDMSZ-Ch8LfSH9.js +0 -51
  273. package/dist/assets/BillDetailPage-D0NLFZXA-B588FQUy.js +0 -266
  274. package/dist/assets/BillPayPromoPage-BMcP4EU5-Bsnvs3ku.js +0 -84
  275. package/dist/assets/BillingSettingsPage-GtRUqSZm-C4t1HRnl.js +0 -44
  276. package/dist/assets/BillsBulkReviewDrawerPage-DAUoo9pq-DtA8Ct8E.js +0 -1
  277. package/dist/assets/BusinessVerificationPage-9gZbBDL6-CHA00m4Y.js +0 -138
  278. package/dist/assets/ConfettiBurst-CdB5fRMt-BpKzQcdE.js +0 -1
  279. package/dist/assets/CurrencySelectField-BDqU4HVy-C2JVgM83.js +0 -139
  280. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-3rxX8yl4.js +0 -1
  281. package/dist/assets/DashboardSidebarBackgroundAnimation-C3Ovv-ob-BQ7iP2W9.js +0 -12
  282. package/dist/assets/EditPeoplePage-pi5RclAj-aeWIx4uA.js +0 -55
  283. package/dist/assets/EditReimbursementDetailPage-CIUcImns-mFlw6SLO.js +0 -865
  284. package/dist/assets/EntityDetailPage-OTKTVNMD-D-mJ3GEZ.js +0 -18
  285. package/dist/assets/ExpenseAutomationPage-BDLCJbFw-CupfErQE.js +0 -1703
  286. package/dist/assets/GlobalReviewListPage-DEzj0RVG-BBBmhZlV.js +0 -291
  287. package/dist/assets/InsightsSection-D-oCmrir-wvwFdRQ1.js +0 -27
  288. package/dist/assets/IntegrationsSettingsPage-D-hfghuq-2m6MIXGG.js +0 -57
  289. package/dist/assets/InternationalWireVerificationPage-CkSmhOrS-CaFCfg4n.js +0 -65
  290. package/dist/assets/InvitePeoplePage-Z-2L7lWc-1iMjMN9Y.js +0 -12
  291. package/dist/assets/InvoiceUploadSection-C8hytmay-CTpYBdkI.js +0 -140
  292. package/dist/assets/LabeledAddressValueField-BoHS44YO-35DxIth1.js +0 -45
  293. package/dist/assets/LabeledDocumentField-CnRk5aKZ-DcxblEUp.js +0 -41
  294. package/dist/assets/LabeledText-2EDpuXZ4-BVmqJGFx.js +0 -42
  295. package/dist/assets/MagicLinkACHDetailsPage-Dnp01hnF-BFHG0jRe.js +0 -1
  296. package/dist/assets/MagicLinkDomesticWireDetailsPage-B36rsikS-DcnN13AA.js +0 -1
  297. package/dist/assets/MagicLinkInternationalWireDetailsPage-Zo4oNZez-BAtejZPN.js +0 -1
  298. package/dist/assets/MagicLinkSuccessPage-09NLbjFG-DFIfT_H_.js +0 -31
  299. package/dist/assets/MailingDetailsSection-EwtoQ2TZ-BHY-JTcx.js +0 -21
  300. package/dist/assets/MyPendingActivationChargeCardListPage-Ddy4bAEY-fdzETguQ.js +0 -6
  301. package/dist/assets/MyProfileSettingsPage-DMz-6h9F-IpwM4wHQ.js +0 -85
  302. package/dist/assets/NavBarWithPicker-D8WNahg--CFu9mkBL.js +0 -30
  303. package/dist/assets/NoDataChart-CyYJ6icu-CuklCFBU.js +0 -26
  304. package/dist/assets/NotificationsListConfig-BOW_TmPC-BGtwKQH4.js +0 -1
  305. package/dist/assets/NotificationsPage-C9efAgjo-CFPf0lT0.js +0 -685
  306. package/dist/assets/OpExByVendorPage-DXeBU3-z-F-6uCCSP.js +0 -100
  307. package/dist/assets/PeoplePage-DXC2CtOt-DkUGvRPZ.js +0 -675
  308. package/dist/assets/QBOSetupSection-EOFscEW--B1BK3OKQ.js +0 -79
  309. package/dist/assets/ReimbursementDetailPage-CfmICHZb-Cf4HY_lZ.js +0 -314
  310. package/dist/assets/ReimbursementsBulkReviewDrawerPage-l2mYNEKn-wbpm_uz3.js +0 -1
  311. package/dist/assets/ReportTableViewSelector-Y97ney3W-Dg_MzkQZ.js +0 -150
  312. package/dist/assets/RoleWithToolTip-DhBFvJea-kKwCSQso.js +0 -22
  313. package/dist/assets/ScheduleSequenceTable-D-rZ4ftr-C0RmvNPI.js +0 -324
  314. package/dist/assets/SignIn-BoAejo7r-n6KjQ5Ul.js +0 -491
  315. package/dist/assets/SignInScreen-DeJvfsin.js +0 -1
  316. package/dist/assets/SpendManagementListViewPage-D3eISFuA-BPINZ7i2.js +0 -134
  317. package/dist/assets/StatementItem-Cu6dlAsl-DRYmB2mf.js +0 -31
  318. package/dist/assets/TaskManagementPage-RVS8nv0n-B2vVJK8U.js +0 -508
  319. package/dist/assets/TimeframeSwitcher-CW08yYgo-kAXguHFR.js +0 -31
  320. package/dist/assets/TimeframeSwitcherWithToggle-DJOCWqpZ-BsIrdDc5.js +0 -31
  321. package/dist/assets/TransactionActivityLogPage-DjhEIUYm-BaKCdH85.js +0 -195
  322. package/dist/assets/TransactionDetailPage-CuxqQd8U-CcjegigH.js +0 -903
  323. package/dist/assets/TransactionList-80KjM8Kg-CGTGojKw.js +0 -153
  324. package/dist/assets/TransactionListPage-DC08rCC9-DlnDb8ev.js +0 -35
  325. package/dist/assets/UploadAdditionalDocumentOverlay-BKY6hK51-EpFUtbZq.js +0 -38
  326. package/dist/assets/Vendor2FAPopup-DezpDfp8-Y9jdKibf.js +0 -1
  327. package/dist/assets/VendorACHDetailsPage-C8TWKYfc-uTPUEvcG.js +0 -1
  328. package/dist/assets/VendorDomesticWireDetailsPage-BhJQ-Vmn-CVY3V18u.js +0 -1
  329. package/dist/assets/VendorFirstReviewPage-CIKRaTax-DYL9Vnpu.js +0 -730
  330. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XcV7Ot44-BeZ-zVI3.js +0 -1
  331. package/dist/assets/ZeniAccountSetupPage-BubBgkoa-CqgM5g3P.js +0 -36
  332. package/dist/assets/ZeniCopyright-BxIwmms--CqjNcAjr.js +0 -1
  333. package/dist/assets/commonDimensions-ClmbdehE-KHSo1WEP.js +0 -1
  334. package/dist/assets/downloadPdf-DfRYmfsd-0BtHMfPn.js +0 -1
  335. package/dist/assets/epic-CIKGU6HT.js +0 -2
  336. package/dist/assets/mapLoadingInProgressToTreeNode-C0YIUOnb-CktDojF3.js +0 -1
  337. package/dist/assets/mapSpacerToTreeNode-DKDsz0vw-NSXq93HU.js +0 -1
  338. package/dist/assets/mapTimeframeBalancesToTreeNode-DqDJAeAj-qlQ8jZsM.js +0 -1
  339. package/dist/assets/mapTimeframeBalancesToTreeNode-J3b1nb_T-BWh1BdCI.js +0 -1
  340. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-BsKSlOwq.js +0 -1
  341. package/dist/assets/panelSelectedMixin-CzfD5-Zs-BwkAFvgw.js +0 -4
  342. package/dist/assets/toCOABalancesWithID-AzKAZ-Cv-B-XUgDD0.js +0 -1
  343. package/dist/assets/toChartData-BEjMhb7--BmOva86j.js +0 -1
  344. package/dist/assets/uploadReceipts-Dge0cNF1-B2u8Ku84.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-CbBDw148.js";import{a as P,P as ee}from"./sentry-ClS5bwGc.js";import{n as x}from"./mui-BLUOobNq.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-Ddw_3-6f-BMc10nJG.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-AzKAZ-Cv-B-XUgDD0.js";import{V as Z}from"./toChartData-BEjMhb7--BmOva86j.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-J8hRG6fl.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]="d3c83f41-6663-4930-a184-1faae1a7082b",e._sentryDebugIdIdentifier="sentry-dbid-d3c83f41-6663-4930-a184-1faae1a7082b")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{y as A,V as a,b as D,J as de,b5 as J,u as I,w as M,a_ as Q,o as m,ac as Ae,p as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-Cq3X29cS.js";import{a as P,P as ee}from"./sentry-DQ_HstYV.js";import{n as x}from"./mui-DzE-7sTl.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BPQ65VEE-6yZpeJsO.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CU-N01Ne-BfeZ-0De.js";import{V as Z}from"./toChartData-BIERIIE--CxJg6nKe.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-CiLmNGsl.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]="dd6bd57c-3491-4853-ae93-fbfbdf9d9747",e._sentryDebugIdIdentifier="sentry-dbid-dd6bd57c-3491-4853-ae93-fbfbdf9d9747")}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};
@@ -19,17 +19,17 @@ import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as A
19
19
  display: flex;
20
20
  align-items: center;
21
21
  justify-content: space-between;
22
- `,qe=x(R)`
22
+ `,Ue=x(R)`
23
23
  background-color: ${e=>e.color};
24
24
  height: 12px;
25
25
  width: 12px;
26
26
  display: inline-block;
27
27
  margin-right: ${m.sp2};
28
- `,Ue=x(R)`
28
+ `,qe=x(R)`
29
29
  text-align: left;
30
30
  `,Ze=x(R)`
31
31
  text-align: right;
32
- `,Qe=({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(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Je=e=>{const r=Qe({...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?Z(e,r,p,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],ra=x.div`
32
+ `,Je=({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(qe,{children:[a.jsx(Ue,{color:r.color}),`${r.barName}:`]}),a.jsx(Ze,{children:`${T(r.value)}`})]},r.barName+t)),Qe=e=>{const r=Je({...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(Qe),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?Z(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,b4 as Q,u as I,b as M,aZ as J,o as m,aQ 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 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(Q,{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`
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(J,{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=>Q("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;
@@ -60,7 +60,7 @@ import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as A
60
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?Z(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 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(Q,{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`
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(J,{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=>Q("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;
@@ -141,7 +141,7 @@ import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ 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: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(Q,{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`
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(J,{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=>Q("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;
@@ -189,13 +189,13 @@ import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as A
189
189
  `,Va=x(R)`
190
190
  text-align: left;
191
191
  width: 162px;
192
- `,q=x(F)`
192
+ `,U=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(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})})},Za=ee.memo(Ua),Qa=(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?Z(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?Z(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(U,{children:e.actual!=null?`${T(e.actual)}`:"-"}),a.jsx(U,{children:e.forecast!=null?`${T(e.forecast.value)}`:"-"}),e.forecast!=null?a.jsx(U,{isChange:!0,children:`${T(e.forecast.change)}`}):a.jsx(U,{children:"-"}),e.forecast!=null?a.jsx(U,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):a.jsx(U,{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)}`})]})}),Ua=({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])]})]}),qa=e=>{const r=Fa({...e});return r.length===0?null:a.jsx(a.Fragment,{children:e.mode==="forecast_mode"?a.jsx(Ua,{barLabelsWithValues:r}):a.jsx(Xa,{barLabelsWithValues:r})})},Za=ee.memo(qa),Ja=(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?Z(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 Qa=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?Z(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: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):Qa(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(Za,{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(Q,{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`
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(Qa),[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):Ja(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(Za,{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(J,{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=>Q("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
200
  `,sr=x.div`
201
201
  display: flex;
@@ -256,14 +256,14 @@ import{d as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as A
256
256
  text-align: right;
257
257
  `,Se=x(F)`
258
258
  text-align: right;
259
- `,U=x(F)`
259
+ `,q=x(F)`
260
260
  text-align: right;
261
261
  flex: 1;
262
262
  color: ${e=>e.isChange!=null&&e.isChange===!0?g.important:null};
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 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?Z(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`
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(q,{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(q,{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(q,{isChange:!0,children:`${T(r.forecast.change)}`}):a.jsx(q,{children:"-"}),r.forecast!=null?a.jsx(q,{isChange:!0,children:V("0,0.0%",r.forecast.percent)}):a.jsx(q,{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?Z(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,b4 as Q,u as I,b as M,aZ as J,o as m,aQ 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: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(Q,{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};
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(J,{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=>Q("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,31 +1,31 @@
1
- import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as oe,fc as At,fd as Mt,fe as Bt,ff as Ft,aO as A,fg as Lt,aQ as v,fh as Rt,fi as Be,fj as Fe,fk as Le,b as U,fl as O,p as j,fm as zt,fn as E,fo as _,fp as Nt,fq as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Wt,c3 as Zt,H as Vt,a as Yt,fr as Ht,cj as qt,al as ce,am as me,fs as Ut,ft as Gt,bj as Kt,c as Jt,ba as Xt,fu as Qt,aq as tt,bL as en,ai as nt,bu as tn,fv as nn}from"./index-CbBDw148.js";import{a as Z}from"./sentry-ClS5bwGc.js";import{n as a}from"./mui-BLUOobNq.js";import{bo as ze,bm as Ne,bH as I,bN as an,FF as ln,bL as re,bP as on}from"./zeni-epic-state-W0HMFHDj.js";import{t as rn,o as sn}from"./LowBalancePopup-Cb55PGLc-D5jF-boV.js";import{S as W}from"./LabeledText-2EDpuXZ4-BVmqJGFx.js";import"./liveblocks-ivZsDCw2.js";import"./core-Ce1HnmCU.js";import"./recharts-J8hRG6fl.js";import"./lottie-solWV_WO.js";import"./analytics-hCfYtzJT.js";import"./lexical-Dk2CPrxk.js";import"./utils-DG8PAOHO.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]="564349a8-4e12-4ad7-9758-e669ea5b7bf5",e._sentryDebugIdIdentifier="sentry-dbid-564349a8-4e12-4ad7-9758-e669ea5b7bf5")}catch{}})();const at=["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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=Z.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},da=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:it,style:lt,analytics:w,isRecurringBillsFeatureEnabled:ot,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(S,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&V?.code?V:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&V?.code?V:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,ie=oe(o?.method??""),ve=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):i.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,l)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),wt=()=>x?h?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,le=st&&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(b??"new_bill"),o?.method!=null&&l!=null){const St=x?i.paymentOutsideZeni.offline:oe(o.method);if(w.trackBillPaySendForApproval(St,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),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}),le!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===i.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ae()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(He,{windowSize:s,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Hn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Vn,{children:at.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(Ue,{children:i.pay}),t.jsx(Ge,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:i.to}),t.jsx(Ge,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:R},style:{width:"auto"},value:oe(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!x&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:R},style:{width:"auto"},value:Y.format(T),additionalInfoLabel:`${i.estimatedArrival}${re(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||ot?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ve(!1,C,h,H,s)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&le!=null?q(!0):Te()},style:{width:Ve(!0,C,h,H,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):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:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ve=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=a(en)`
1
+ import{J as Tt,ay as Ct,x as u,f9 as Dt,fa as It,fb as kt,V as t,fc as Pt,fd as le,fe as Mt,ff as At,fg as Bt,fh as Ft,aQ as M,fi as Lt,ac as v,fj as Rt,fk as Be,fl as Fe,fm as Le,w as U,fn as O,p as j,fo as zt,fp as E,fq as V,fr as Nt,fs as Ot,bV as Re,o as n,aT as Et,u as d,b as Vt,ai as Wt,c4 as Zt,c as _t,M as Gt,ft as Yt,ck as qt,an as ce,ao as me,fu as Ut,fv as Kt,bk as Ht,h as Jt,bb as Xt,fw as Qt,as as tt,bM as en,ak as nt,bv as tn,fx as nn}from"./index-Cq3X29cS.js";import{a as Z}from"./sentry-DQ_HstYV.js";import{n as i}from"./mui-DzE-7sTl.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gm as on,bL as re,bZ as ln}from"./zeni-epic-state-B4gyGBI3.js";import{t as rn,o as sn}from"./LowBalancePopup-Cg-JRo7A-zj6pzOkP.js";import{S as W}from"./LabeledText-B0bwznDi-CbaJVeOz.js";import"./liveblocks-hPir54fv.js";import"./core-CCdM5htn.js";import"./recharts-CiLmNGsl.js";import"./lottie-B9oE3WTk.js";import"./analytics-BxsZVqMD.js";import"./lexical-BfjdJw9p.js";import"./utils-wDk5ojg7.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]="6a114599-0729-4f23-bab6-b5658616f68f",e._sentryDebugIdIdentifier="sentry-dbid-6a114599-0729-4f23-bab6-b5658616f68f")}catch{}})();const it=["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,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new _t("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Vt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ve}=mn,We=({attachment:e})=>{const[y,g]=Z.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),k=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(k?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[k,Q,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,_=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&_?.code?_:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&_?.code?_:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ze(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),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}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=Z.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(He,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(He,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("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(Zn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(_n,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsx(H,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Vn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsxs(H,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Je,{children:t.jsx(Xe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsx(H,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(H,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,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(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?Ve.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:_e(!1,C,h,Y,s)}},primaryBtn:{label:Ze(h,Y,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:_e(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):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})]})},Ze=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,_e=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,Ye=a(nt)`
8
+ `,Ge=i(nt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
12
- `,se=a.div`
12
+ `,se=i.div`
13
13
  color: ${e=>e.theme.colors.brandColorPearl};
14
- `,de=a.div`
14
+ `,de=i.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,un=a(nt)`
16
+ `,un=i(nt)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
20
- `,yn=a.div``,hn=a.div`
20
+ `,yn=i.div``,hn=i.div`
21
21
  background-color: ${j.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=a.div``,gn=a.div`
24
+ `,fn=i.div``,gn=i.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
28
- `,xn=a.div`
28
+ `,xn=i.div`
29
29
  width: 100%;
30
30
  padding: ${n.sp3};
31
31
  display: flex;
@@ -36,30 +36,30 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
36
36
  border-radius: ${n.sp2};
37
37
  color: ${e=>e.theme.colors.hero};
38
38
  margin-bottom: ${n.sp2};
39
- `,bn=a(tt)`
39
+ `,bn=i(tt)`
40
40
  gap: ${n.sp1};
41
41
  display: flex;
42
42
  width: 100%;
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  align-items: center;
45
- `,wn=a(tt)`
45
+ `,wn=i(tt)`
46
46
  display: flex;
47
47
  width: calc(100% - 176px);
48
48
  justify-content: flex-end;
49
49
  color: ${e=>e.theme.colors.primary};
50
- `,$n=a.div`
50
+ `,$n=i.div`
51
51
  display: flex;
52
52
  flex-direction: column;
53
53
  width: 100%;
54
54
  height: 100%;
55
- `,vn=a.div`
55
+ `,vn=i.div`
56
56
  display: flex;
57
57
  flex-grow: 1;
58
58
  flex-direction: column;
59
59
  margin-left: ${e=>m.reviewContainerMarginLeft.valuePx(e.windowSize)};
60
60
  margin-right: ${e=>m.reviewContainerMarginRight.valuePx(e.windowSize)};
61
61
  padding-top: ${n.sp3};
62
- `,jn=a.div`
62
+ `,jn=i.div`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  background-color: ${e=>e.theme.colors.grey5};
@@ -68,21 +68,21 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,G=a.div`
71
+ `,K=i.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,He=a(Yt)`
77
+ `,Ye=i(Gt)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${dn.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
81
- `,Sn=a.div`
81
+ `,Sn=i.div`
82
82
  display: flex;
83
83
  margin-bottom: ${n.sp3};
84
84
  margin-top: ${n.sp3};
85
- `,Tn=a.div`
85
+ `,Tn=i.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
88
  border-radius: ${n.sp2};
@@ -90,46 +90,46 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
90
90
  background-color: ${e=>e.theme.colors.grey5};
91
91
  border: 1px solid ${e=>e.theme.colors.grey3};
92
92
  box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
93
- `,Cn=a.div`
93
+ `,Cn=i.div`
94
94
  background-color: ${j.alertLight};
95
95
  border-radius: ${n.sp2};
96
96
  width: 100%;
97
97
  display: flex;
98
- `,Dn=a.div`
98
+ `,Dn=i.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  padding-left: ${n.sp2};
102
- `,In=a(ce)`
102
+ `,In=i(ce)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${j.brandColorGoldDark};
105
- `,Pn=a(qt)`
105
+ `,kn=i(qt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${j.brandColorGoldDark};
108
- `,qe=a.div`
108
+ `,qe=i.div`
109
109
  display: flex;
110
- flex-direction: ${e=>at.includes(e.windowSize)?"column":"row"};
110
+ flex-direction: ${e=>it.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
112
- `,kn=a.div`
112
+ `,Pn=i.div`
113
113
  display: flex;
114
114
  justify-content: space-between;
115
115
  align-items: center;
116
116
  column-gap: ${n.sp1};
117
- `,An=a.div`
117
+ `,Mn=i.div`
118
118
  display: flex;
119
119
  column-gap: ${n.sp2};
120
120
  align-items: center;
121
- `,Mn=a.div`
121
+ `,An=i.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ue=a(Jt)`
124
+ `,Ue=i(Jt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,Ge=a(Xt)`
128
+ `,Ke=i(Xt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ke=a(Zt)`
132
+ `,He=i(Zt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -137,9 +137,9 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
137
137
  &:hover {
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  }
140
- `,Bn=a.div`
140
+ `,Bn=i.div`
141
141
  margin-bottom: ${n.sp3};
142
- `,Fn=a.div`
142
+ `,Fn=i.div`
143
143
  display: flex;
144
144
  align-items: center;
145
145
  margin-right: ${e=>e.showAutofill===!0?n.sp8:"unset"};
@@ -152,23 +152,23 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Ln=a(Wt)`
155
+ `,Ln=i(Wt)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
159
- `,Rn=a.span`
159
+ `,Rn=i.span`
160
160
  display: flex;
161
161
  align-items: center;
162
162
  margin-left: ${n.sp2};
163
163
  margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.size)};
164
164
  align-self: ${e=>e.size==="small"?"baseline":"center"};
165
- `,zn=a(me)`
165
+ `,zn=i(me)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
169
169
  justify-content: center;
170
170
  align-items: center;
171
- `,Nn=a.a`
171
+ `,Nn=i.a`
172
172
  color: ${e=>e.theme.colors.grey1};
173
173
  text-decoration: underline;
174
174
  margin-right: ${n.sp1};
@@ -176,7 +176,7 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
176
176
  &:hover {
177
177
  color: ${e=>e.theme.colors.primary};
178
178
  }
179
- `,On=a.div`
179
+ `,On=i.div`
180
180
  cursor: ${e=>e.isDisabled?"default":"pointer"};
181
181
  display: flex;
182
182
  flex-direction: row;
@@ -189,49 +189,49 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
189
189
  color: ${e=>e.isDisabled?e.theme.colors.hero:e.theme.colors.primary};
190
190
  }
191
191
  }
192
- `,En=a.div`
192
+ `,En=i.div`
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Je=a.div`
196
+ `,Je=i.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Xe=a(Kt)`
201
+ `,Xe=i(Ht)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,K=a(ce)`
206
+ `,H=i(ce)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Qe=a(ce)`
212
+ `,Qe=i(ce)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
216
216
  margin-right: ${e=>m.infoMarginRight.valuePx(e.windowSize)};
217
217
  min-width: ${e=>m.infoMinWidth.valuePx(e.windowSize)};
218
218
  justify-content: flex-end;
219
- `,_n=a.div`
219
+ `,Vn=i.div`
220
220
  display: flex;
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,et=a.div`
224
+ `,et=i.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,Wn=a.div`
229
+ `,Wn=i.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,J=a(me)`
234
+ `,J=i(me)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -247,31 +247,31 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,Zn=a.div`
250
+ `,Zn=i.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Vn=a.div`
253
+ `,_n=i.div`
254
254
  display: flex;
255
255
  width: 100%;
256
256
  flex-flow: column;
257
257
  padding-top: ${n.sp2};
258
258
  padding-bottom: ${n.sp2};
259
259
  border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
260
- `,Yn=a(me)`
260
+ `,Gn=i(me)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${j.alert};
263
- `,Hn=a(Ht)`
263
+ `,Yn=i(Yt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${j.brandColorGoldDark};
270
- `,qn=a.div`
270
+ `,qn=i.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Un=a(tn)`
274
+ `,Un=i(tn)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Gn=a.div`
282
+ `,Kn=i.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -287,4 +287,4 @@ import{J as Tt,aw as Ct,y as u,f7 as Dt,f8 as It,f9 as Pt,V as t,fa as kt,fb as
287
287
  &:hover {
288
288
  color: ${e=>e.theme.colors.primary};
289
289
  }
290
- `;export{da as default};
290
+ `;export{di as default};