@zeniai/web-app-ui 4.14.38-dev → 4.14.39-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 (432) hide show
  1. package/dist/assets/{ACHDetailsPage-BShpKoIj-D1Wy32uO.js → ACHDetailsPage-B5qIuZya-Dqn8ZaVl.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-CFErwUsE-DcUypqs6.js → AIPerformancePage-BHB45mP--CWtWN8JR.js} +23 -23
  3. package/dist/assets/AccountInfoPage-Cd5xYT1g-BylH1aam.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CJ7ycVIK-3aE5KJwU.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js → AccountLockedInfoModal-Dox7IuAX-C5qPLBPz.js} +6 -6
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js → AccountReconDetailsDrawerPage-Bqty08m0-Dbr-jmu7.js} +5 -5
  7. package/dist/assets/{AccountRow-BrW_eEjE-Cmf0Jids.js → AccountRow-D1cjRJJD-Dsnq1o4t.js} +9 -9
  8. package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js → AccountsPromoCardStack-Bs3naJHM-DvbUMPbJ.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-DwU9s4jD.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CsOmzC7v-S49ZGsCa.js → AddToWalletPage-CyRfqVDB-DtRghMSs.js} +12 -12
  11. package/dist/assets/AddressRoutes-DbIoDD0z.js +1 -0
  12. package/dist/assets/AddressScreen-Duz_V-eF.js +9 -0
  13. package/dist/assets/AgingReportsPage-xBFff3BM-B936IQ2N.js +79 -0
  14. package/dist/assets/{AiCfoScreen-D5N0hxeG.js → AiCfoScreen-DkKXC6Fw.js} +2 -2
  15. package/dist/assets/{AllUserItems-Dq7NcP-o-Da1Zo4z6.js → AllUserItems-BJf6WPDo-D0H1tMjG.js} +7 -7
  16. package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js → ApAgingDetailPage-CjBrPyi8-Dy0hX-gn.js} +5 -5
  17. package/dist/assets/{AppBasePage-B5sDynhi-CeUmBhIQ.js → AppBasePage-CqDm-hnV-DluaESRo.js} +9 -9
  18. package/dist/assets/{AppDrawerContent-D9Q8ir0T-DZmwUW8c.js → AppDrawerContent-CVVWj66i-D4zioU_X.js} +6 -6
  19. package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-Bu-mEOHu.js +47 -0
  20. package/dist/assets/ArAgingChart-CBsqOd-4-CVCl4d59.js +24 -0
  21. package/dist/assets/{ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js → ArAgingDetailPage-i7JObt60-CsyQx3rL.js} +1 -1
  22. package/dist/assets/{AttachmentView-CiYfninr-DZhIwWMR.js → AttachmentView-CzC4skJ3-D2ObdnK2.js} +6 -6
  23. package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B94s6jgr.js +38 -0
  24. package/dist/assets/{BankAccountSection-EZtscP2z-C2fUrA1M.js → BankAccountSection-Di4sF52j-BobhPzIF.js} +3 -3
  25. package/dist/assets/{BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js → BankAccountWarningSection-Cled-2cR-CypxFFmY.js} +10 -10
  26. package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js → BankConnectionsSettingsPage-Ccnzq7st-DGOhp4FX.js} +52 -52
  27. package/dist/assets/{BillDetailPage-pt1k5AQf-C_HrCJfS.js → BillDetailPage-XXOwBfO1-DauaxUA2.js} +9 -9
  28. package/dist/assets/BillPayApprovalRoutes-S9Y_fMTz.js +1 -0
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js → BillPayApprovalRuleDetailPage-DFZ0csaT-1KbX_IY6.js} +2 -2
  30. package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js → BillPayApprovalRulesPage-COCypDcS-BjGZEACH.js} +9 -9
  31. package/dist/assets/{BillPayPromoPage-Dgpz2TLG-BwKkDBie.js → BillPayPromoPage-DOE2YIqC-C8ApdrdB.js} +7 -7
  32. package/dist/assets/{BillPayRoutes-aVWMd64J.js → BillPayRoutes-Bz92yFGI.js} +18 -18
  33. package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js → BillPaySetUpPage-BCJbZDsV-BF2fTyNr.js} +7 -7
  34. package/dist/assets/{BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js → BillingSettingsPage-iImtlEmO-CBp1rdfh.js} +6 -6
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js → BillsBulkReviewDrawerPage-B11GWM_0-Crsw24X2.js} +1 -1
  36. package/dist/assets/{BoxItem-B06DK4G--C4opawya.js → BoxItem-Bxa1M4QU-BEQbjRW-.js} +4 -4
  37. package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js → BusinessVerificationPage-DSuJFoW1-mYZPYqnm.js} +8 -8
  38. package/dist/assets/{BusinessVerificationPageScreen-D9PxWQrU.js → BusinessVerificationPageScreen-BlaiKu4I.js} +2 -2
  39. package/dist/assets/{BusyIndication-Cd67eHX6-C7aB5h-1.js → BusyIndication-9zDqSKBP-WSsX6_uU.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CcH9jUoZ-HppogTjx.js → CardNumberSubText-_ZZbaz_k-D2s6-wsQ.js} +8 -8
  41. package/dist/assets/{CashbackDetailPage-5eysaHGf-CZA31npt.js → CashbackDetailPage-DAZXitLt-Dn6UduwT.js} +24 -24
  42. package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js → ChargeCardDetailPage-B1VIpASk-D0l4y1IR.js} +20 -20
  43. package/dist/assets/{ChargeCardListPage-C-RTGkKK-Cc1az4M9.js → ChargeCardListPage-BOBepN-x-BtfglwWz.js} +36 -36
  44. package/dist/assets/{ChargeCardListTable-B-bNbtZQ-BuEumynS.js → ChargeCardListTable-YznzSsJo-KwncCUaT.js} +31 -31
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js → ChargeCardPaymentHistoryPage--jOwsMla-DQFHZBZ2.js} +19 -19
  46. package/dist/assets/ChargeCardPromoPage-DIfakIOK-CUSVcG-Z.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-CKV_cGg2.js → ChargeCardRoutes-PKJBtykP.js} +9 -9
  48. package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js → ChargeCardSetupPage-0bpVkeJs-yW1xF9DG.js} +4 -4
  49. package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js → ChargeCardStatementsPage-ChWyQlw6-BDnJUrTu.js} +2 -2
  50. package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-C-RoPs-w.js +206 -0
  51. package/dist/assets/{CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js → CollapsableReportTable-DNfFkAts-CoCUKzx3.js} +40 -40
  52. package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js → CompanyOfficerDetailsSection-CrOIN4IW-wL1QY22J.js} +23 -23
  53. package/dist/assets/{CompanyPassportCard-DF9LFrFD-DPvP8c2P.js → CompanyPassportCard-CkzYFTrp-DRHCWpeb.js} +4 -4
  54. package/dist/assets/{CompanyPassportPage-BtAopyLq-CG1Jq4C9.js → CompanyPassportPage-FE6yli6h-Dd4_9uh3.js} +14 -14
  55. package/dist/assets/CompanyPassportScreen-BxfK5qi-.js +1 -0
  56. package/dist/assets/CompleteProfile-Cb8i1XgZ-BjB2Cj8T.js +52 -0
  57. package/dist/assets/ConfettiBurst-BZCXEGYA-2D0_Pemr.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-Wp_pgh6b.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js → ConstrainedInnerElement-CgdnMeoA-CE1VZ_Vz.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js → CreateOrEditVendorPage-CzpSgxbO-k7E9cu5j.js} +10 -10
  61. package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js → CreditCardPaymentDrawerPage-c_q0MsSO-dQfGXEwP.js} +7 -7
  62. package/dist/assets/{CurrencySelectField-B8EoF2aF-DHzUxLL4.js → CurrencySelectField-BAh7SHrG-BY-wwlD4.js} +5 -5
  63. package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js → CustomerOnboardingActivationPage-f3Aa6E5r-CsLUjIve.js} +6 -6
  64. package/dist/assets/CustomerOnboardingAuthScreen-CTK0e_jx.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CHM5gdzL.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-Cjt3eU6d.js} +12 -12
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-wTFuOqC8.js} +12 -12
  68. package/dist/assets/{CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js → CustomerOnboardingPage-B9hSO88_-DWmXd-Uc.js} +7 -7
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-GHwnhZEx.js} +7 -7
  70. package/dist/assets/CustomerOnboardingRoutes-liI38PH4.js +23 -0
  71. package/dist/assets/{Dashboard-DReG_aaf-B9cmSG7e.js → Dashboard-BJ_oIHab-R3_sy9De.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BXSlwsR7-CjT08Tnm.js → DashboardReportPage-BemzMw2e-DvGvflyG.js} +11 -11
  73. package/dist/assets/{DashboardRoutes-Cr_y84hZ.js → DashboardRoutes-C7dEIbTS.js} +3 -3
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-DP44-3NB.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-Bp9gU4vX.js → DefaultTenantHome-CkG7rrVy.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-CyFi1P_L-VEy51_-P.js +76 -0
  77. package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js → DepositAccTransactionListPage-DvBRRUdZ-FPrNb8c2.js} +6 -6
  78. package/dist/assets/DomesticWireDetailScreen-CgfzlsVD.js +18 -0
  79. package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js → DomesticWireDetailsPage-DCDo3aHI-DZy_Auc2.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BpRKCn-0-Ceuu4G9V.js → DownloadOverlay-D_lL1sPW-DBEVtdkQ.js} +18 -18
  81. package/dist/assets/{DrawerPage-DQ3Xuekx-osFrzw_b.js → DrawerPage-DesxXhZk-qxdDcPRN.js} +10 -10
  82. package/dist/assets/DrawerScreen-IScn_gPb.js +1 -0
  83. package/dist/assets/EditPeoplePage-QvPy_Six-pqhLCmsP.js +55 -0
  84. package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js → EditReimbursementDetailPage-C0ZDkboO-Ds7tBMbu.js} +17 -17
  85. package/dist/assets/EntityDetailPage-l7nXIsyF-D-OEpTX_.js +18 -0
  86. package/dist/assets/EntityDetailRoutes-DCBMx6-C.js +1 -0
  87. package/dist/assets/{EntitySummarySection-vsEMiXYh-xFy88yRd.js → EntitySummarySection-BwX0a4JL-CYDWshdA.js} +12 -12
  88. package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js → ExpenseAutomationOverviewPage-EdyHjbff-QECZrSJL.js} +13 -13
  89. package/dist/assets/ExpenseAutomationPage-DA22Qofw-QWboM4Rp.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-DVcJr4np.js +20 -0
  91. package/dist/assets/{ExpressPayPage-BH7oCW_F-DgICn4el.js → ExpressPayPage-EMP6inpX-C812vhu_.js} +6 -6
  92. package/dist/assets/{FeaturePreviewPage-DSv61BhF-BsdnfTlO.js → FeaturePreviewPage-SYJm-3aR-BnuhMtuP.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-C3Y9pgiz.js +1 -0
  94. package/dist/assets/{FollowStepsSection-Bgy9MpO4-CvIWpdyW.js → FollowStepsSection-BxESVqJD-BFhnhk7r.js} +9 -9
  95. package/dist/assets/{GlobalReviewListPage-VRq_gimm-BpVLghA7.js → GlobalReviewListPage-D5_ACa-q-DZo6UglL.js} +7 -7
  96. package/dist/assets/{InformationCardStack-rx0fypl3-OYwqii2C.js → InformationCardStack-B_qQUEYD-DRekqbq_.js} +4 -4
  97. package/dist/assets/InsightsCardStack-BsQzoVzj-BI_nQIXQ.js +79 -0
  98. package/dist/assets/{InsightsSection-ByFf2oGn-ChvKOP1F.js → InsightsSection-B6CNlTNH-BFr6MnTG.js} +9 -9
  99. package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js → IntegrationsSettingsPage-DP6fAccq-CigqZ0SM.js} +2 -2
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js → InternationalWireSwiftDetailsPage-VdG7bDZi-Rlu68XJQ.js} +11 -11
  101. package/dist/assets/InternationalWireVerificationPage-COC6lZml-CR1f2JQF.js +65 -0
  102. package/dist/assets/{InviteFormPage-dsMpScvq-pwPoaIw-.js → InviteFormPage-DN02jRy5-UECY6Ai9.js} +6 -6
  103. package/dist/assets/{InvitePageListView-e7vGSbFa-BfSD0kcH.js → InvitePageListView-CP4K9tJi-CrsR5dUL.js} +42 -42
  104. package/dist/assets/InvitePeoplePage-VTM6kM1u-DEUyoj-n.js +12 -0
  105. package/dist/assets/{InvoiceUploadSection-Dg1-uunA-1cshMTVc.js → InvoiceUploadSection-it-ZYl1N-gndqObmu.js} +12 -12
  106. package/dist/assets/{IssueChargeCardPage-CyF9wrb0-CWwHqex_.js → IssueChargeCardPage-CVfuvGey-DLZauQU0.js} +20 -20
  107. package/dist/assets/{LabeledAddressValue-3l0Bv00--Bw_81ZJz.js → LabeledAddressValue-DDrQcHIE-CrQXufeN.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-BgWwd5Gw-BjdQu4oY.js +45 -0
  109. package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js → LabeledControlledCheckBoxField-CcPO1k23-wgZTidrw.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js → LabeledCountryMultiSelectField-BYYjzwUG-Dh1nhUsB.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js → LabeledCreatableSingleSelectField-CISYMojq-C0CA90PE.js} +6 -6
  112. package/dist/assets/{LabeledDocumentField-rriEcsdr-CcDZw3QZ.js → LabeledDocumentField-C_bcFxdY-rxfuitkN.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js → LabeledDropDownFormattedTextField-ScGGCap8-5XDDElAU.js} +5 -5
  114. package/dist/assets/{LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js → LabeledEmailInputField-BppuWRbl-BqM5ToGw.js} +7 -7
  115. package/dist/assets/{LabeledNameField-yaSRe5Vt-cnDt7eal.js → LabeledNameField-mxSNQk3k-DSUzbE3j.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js → LabeledSingleSelectField-C6ctNzkA-DJY2_gU-.js} +2 -2
  117. package/dist/assets/{LabeledText-DGZ7hxY4-BBOC0Eln.js → LabeledText-C8Y7EOsX-BG8Z0MTH.js} +3 -3
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-eV0BTiQT.js} +11 -11
  119. package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js → LabeledZeniRolesDropDownField-BZtreVpj-BQKcvtGQ.js} +6 -6
  120. package/dist/assets/{LinkJETransactionPage-Bvbqpltz-BZhW34oI.js → LinkJETransactionPage-CKq4oiX9-BMq1iE01.js} +10 -10
  121. package/dist/assets/{LockCardPage-DyEQBJYx-DksW1-ZG.js → LockCardPage-CZENNby7-fCE1WXTx.js} +14 -14
  122. package/dist/assets/{LowBalancePopup-C2vHKMNF-CMEceag2.js → LowBalancePopup-1727S1ri-CiFxrWZ6.js} +5 -5
  123. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-C5Jji5Bc.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DNJbU9wA.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BDPVvMNI.js +1 -0
  126. package/dist/assets/MagicLinkRoutes-BBf-u6YU.js +72 -0
  127. package/dist/assets/MagicLinkSignInScreen-BGYMIMGW.js +12 -0
  128. package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js → MagicLinkSuccessPage-QMkZgQLG-0gaJkIUo.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js → MagicLinkTitleSection-CARU1oLQ-D-x2cYul.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-ByOPaJ05-C__aFJd6.js +21 -0
  131. package/dist/assets/MobileAppDrawer-TF-9OTZ8.js +1 -0
  132. package/dist/assets/{MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js → MoreMenuButton-BsBKwXvk-DeCIVX9G.js} +18 -18
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js → MyBankConnectionsSettingsPage-BdgIIhL1-DSKnFya9.js} +6 -6
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js → MyPendingActivationChargeCardListPage-CX38bDdq-CKY6khDW.js} +1 -1
  135. package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-MQ1Uu5yx.js +85 -0
  136. package/dist/assets/{NavBarWithPicker-CbjFNysh-Ck578WIs.js → NavBarWithPicker-CGGEvLwe-xLu9BDbC.js} +8 -8
  137. package/dist/assets/{NavigationArrow-Dpc7u6y4-CiTKhYeI.js → NavigationArrow-CTNkKUtV-Cv--eO3H.js} +1 -1
  138. package/dist/assets/NavigationDots-Dvce3gHt-B5IBT8ql.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js → NewGlobalMerchantPage-D_f7z47T-DZeAHBD8.js} +12 -12
  140. package/dist/assets/NoDataChart-CrKeqWSr-aTXx8C4D.js +26 -0
  141. package/dist/assets/{NoDataTable-C6Q2Anpz-BqTI2GFx.js → NoDataTable-4vPXmPYF-MAxQ6k5D.js} +1 -1
  142. package/dist/assets/{NotFoundPage-4mPhXD5--pWqZwF3K.js → NotFoundPage-BLWPU1wU-BDFevjLh.js} +4 -4
  143. package/dist/assets/NotFoundScreen-BOQb1xUE.js +1 -0
  144. package/dist/assets/NotificationRoutes-CHyP48D4.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js → NotificationSettingsPage-CDiDLX3A-CdiPU3_w.js} +30 -30
  146. package/dist/assets/NotificationsListConfig-B5pDa4cJ-C0GWEb8S.js +1 -0
  147. package/dist/assets/{NotificationsPage-D41h0mS6-lOcsglza.js → NotificationsPage-Ccl7Dny1-CsnU2sZr.js} +18 -18
  148. package/dist/assets/{OpExByVendorPage-BV_uJSCh-ClxLsbjb.js → OpExByVendorPage-spd-nKV4-Cz37eGG7.js} +9 -9
  149. package/dist/assets/OverlayContainerPage-BG9y5C0t-DvO1fY_N.js +11 -0
  150. package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-C0webWAA.js → PandLWithForecastPage-TSoe4Z7F-xn1jaFoi.js} +11 -11
  151. package/dist/assets/PandLWithForecastRoutes-DWeIYgqG.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-BDBHBe3a.js} +10 -10
  153. package/dist/assets/{PeoplePage-DcGqWtAP-kL10xLdE.js → PeoplePage-b5_I0qOw-lWi2XLJ6.js} +16 -16
  154. package/dist/assets/PeopleRoutes-D96ZRShY.js +22 -0
  155. package/dist/assets/PerformanceRoutes-w_Iip8ae.js +1 -0
  156. package/dist/assets/{Preview-Bd0e5eLk.js → Preview-C2zvk1tu.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-C9JoJQeH-y7_emSya.js → ProductsCarousel-C3M0ocdF-2raBZnNq.js} +3 -3
  158. package/dist/assets/{PromoBaseCards-mFk7SsOr-B_0Pg0f0.js → PromoBaseCards-BOGJI2ws-Cm4e0wPQ.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js → QBOConnectionDialog-CmpnnuzP-BhhJabU7.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-1Q56jIZw.js → QBOConnectionScreen-CCeXLrlB.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-C_fqHza_-B72ZoKWs.js → QBOSetupSection-DjnN9dgv-6umyaC6d.js} +14 -14
  162. package/dist/assets/ReferralListScreen-DY8vZLmY.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-kgV17rI7.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-Bjrjwfbm.js} +2 -2
  165. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CrQlcAIE.js +1 -0
  166. package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js → ReimbursementApprovalRulesPage-BsCTIqUJ-CQyWyznw.js} +5 -5
  167. package/dist/assets/{ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js → ReimbursementDetailPage-BbyxE2uL-DAWO6MN3.js} +16 -16
  168. package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js → ReimbursementPromoPage-CyEgwqcf-D5kNu4r7.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-RM0BTfix.js → ReimbursementRoutes-9PVCls-1.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-D450RVsP-XThkQYrn.js → ReimbursementSetUpPage-RETPkEQd-zKPq6P2O.js} +9 -9
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Cp5RXmHi.js} +1 -1
  172. package/dist/assets/{ReloadCard-D5cvzWxe-BiXLC8Nt.js → ReloadCard-Bdoo0XiI-CgAT4eqC.js} +4 -4
  173. package/dist/assets/{ReportTableViewSelector-Ig41fOPb-DWudlBCf.js → ReportTableViewSelector-Bc1K7mU_-CRH7B2Xe.js} +9 -9
  174. package/dist/assets/{ReportsPage-CRAVAUTO-B8oVNLjt.js → ReportsPage-BOTHMLWh-DYARtx-l.js} +7 -7
  175. package/dist/assets/ReportsRoutes-DAq_Kk7t.js +1 -0
  176. package/dist/assets/{RevenueChart-DtQu0KAn-8Nxk30mB.js → RevenueChart-DvyZ3aO7-D41DyD4f.js} +18 -18
  177. package/dist/assets/{ReviewDetailsPage-vui4TqeA-BHywFcJg.js → ReviewDetailsPage-BIMg1n2e-w51F2KtJ.js} +19 -19
  178. package/dist/assets/{ReviewOverlay-CUnL7H-a-C2Hax1dX.js → ReviewOverlay-CxwoiOLC-C8uqNFMN.js} +9 -9
  179. package/dist/assets/RewardsRoutes-2CDMw_SM.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Ct3_VuDM-zYFjvA-a.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DjOTIJE4.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js → ScheduleDetailsPage-5FWpLRtd-DdkQQcuL.js} +3 -3
  183. package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js → ScheduleSequenceTable-R3-PsXES-F_YuqAKO.js} +8 -8
  184. package/dist/assets/{ScreenRoutes-Ckyy2m-9.js → ScreenRoutes-D-VUXgUA.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-DYRWWXcL-BJMCbqBu.js → SetUpAccountSection-CctbMmoK-BIwzDeUn.js} +16 -16
  186. package/dist/assets/{SettingsRoutes-HPPA3EWU.js → SettingsRoutes-BCFW0mUs.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-Cz2ybo_2.js → SetupPagesScreen-D_H5m3yT.js} +6 -6
  188. package/dist/assets/{SignIn-CUJkZb3S-Cj2EgQsz.js → SignIn-CmgmnRm4-BefvH7_D.js} +16 -16
  189. package/dist/assets/{SignInScreen-BSE9oghj.js → SignInScreen-DNDiNfUZ.js} +1 -1
  190. package/dist/assets/SignOutScreen-CGgsrBqm.js +9 -0
  191. package/dist/assets/{SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js → SpendManagementListViewPage-CFUxCqkU-DWVJ8T34.js} +11 -11
  192. package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js → SpendManagementPerTabPage-C-kqNTci-61EpQHHf.js} +55 -55
  193. package/dist/assets/{SpendManagementSection-DKZNTYXT-D04hpJmz.js → SpendManagementSection-CIz4nE_w-CLtvB3Jo.js} +24 -24
  194. package/dist/assets/{StatementItem-Dyt5Q0eR-jB2YMdu5.js → StatementItem-vVtoBN2w-CGfe2rf-.js} +3 -3
  195. package/dist/assets/StatementsPage-As5WOnMR-C07ZcwWR.js +58 -0
  196. package/dist/assets/{StatusSwitcher-BfQ9VbBH-C2uXiIL4.js → StatusSwitcher-Bv-ozN6U-BMGDezKv.js} +4 -4
  197. package/dist/assets/{SubTabSwitcher-CzGiuhk3-C7cKUv_v.js → SubTabSwitcher-D7QeM6nb-C5vo1QLg.js} +3 -3
  198. package/dist/assets/SuccessAnimation-hijccO_0-CXGCZdn9.js +13 -0
  199. package/dist/assets/SummaryCard-C2qoTsAY-LkZgmc3l.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CyZxZdJB-DrITidSC.js → TaskDetailPage-QMk4DTDK-DuNonnMy.js} +39 -39
  201. package/dist/assets/TaskListScreen-DXCPcaMg.js +9 -0
  202. package/dist/assets/{TaskManagementPage-ucVAdv7x-Msj3UnnC.js → TaskManagementPage-BJwp32Ph-D-u68mRD.js} +64 -64
  203. package/dist/assets/TaskRoutes-Biii2LFo.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js → TimeRangeSwitcher-D00bDDhP-BG1zi2IK.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-DfqszobX.js → TimeframeSwitcher-DA99HdHt-BQziHQmj.js} +6 -6
  206. package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js → TimeframeSwitcherWithToggle-DyggDIQj-BfhUUfrK.js} +2 -2
  207. package/dist/assets/{TopExCard-D2PRxvFc-3B8t-gu0.js → TopExCard-Z1WabZ8c-CBwSMJxd.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-C0uHdU7N-CImodBfZ.js → TopExDetailPage-CzHG4f9E-gwAj-hq_.js} +18 -18
  209. package/dist/assets/{TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js → TransactionActivityLogPage-CGKnjNfU-BApvDmwN.js} +1 -1
  210. package/dist/assets/TransactionDetailPage-1-mLOWSz-rzQ235mE.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-C36yIgf5.js +1 -0
  212. package/dist/assets/TransactionDetailScreen-B9QxqSWW.js +5 -0
  213. package/dist/assets/TransactionList-BB-xoIGm-Cfa3U35Q.js +153 -0
  214. package/dist/assets/{TransactionListBig-BrDWayQS-BY28Hg37.js → TransactionListBig-C5Sf5Xh--ILOBUs5F.js} +14 -14
  215. package/dist/assets/TransactionListPage-Cj7h1Ros-C0trpcRO.js +35 -0
  216. package/dist/assets/TransactionListRoutes-DYDLTelW.js +1 -0
  217. package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js → TransactionVendorDetailPage-SsrSOk3O-DvVZeIE6.js} +13 -13
  218. package/dist/assets/{TransferDrawerPage-DfFm-1-3-BhX0O4LO.js → TransferDrawerPage-BvKZ7vHF-gusMX693.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-CKSanlUG-CXaeORdV.js → TreasuryOverviewPage-DwvjMR4_-v_PwtYfB.js} +15 -15
  220. package/dist/assets/{TreasuryPromoPage-Dyip3H10-C2tUOOp5.js → TreasuryPromoPage-CtTFvSQW-CBUcln_7.js} +14 -14
  221. package/dist/assets/TreasuryRoutes-BL7M49IT.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-Catz8shX-B10cgIs5.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js → TreasuryTaxLetterPage-D8hzCL5o-8bU6d1vy.js} +4 -4
  224. package/dist/assets/TrendChart-Bnp4Pcdf-CsoTufL2.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-It4KDov3-DY_vu1lx.js → TrendWithTransactions-3D1FvM8G-Dwn_v3ES.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js → UncategorizedAccountsMappingPage-DbyY-dYB-DJ-xU1nq.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-gVgsk2ji-D4-73jRv.js → UnitIntegrationPage-CTzme1te-Kzmir-JV.js} +4 -4
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-vi85vqk-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js → Vendor2FAPopup-D0zYKkIv-Corqbsks.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DWmocppw.js +1 -0
  231. package/dist/assets/{VendorDetailPage-jci1LqX3-BHXhYJF0.js → VendorDetailPage-Br9wIOnI-D1eJIjzb.js} +5 -5
  232. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BpbupYob.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js → VendorFiling1099EditablePage-himC7iD3-DuTr9_9d.js} +24 -24
  234. package/dist/assets/{VendorFirstReviewPage-CafakxA1-DGimiBs4.js → VendorFirstReviewPage-BbknTCBD-DB1g9Qot.js} +15 -15
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js → VendorInternationalWireDetailsPage-CS595Xgc-CmEESHX6.js} +9 -9
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-D43LaVfJ.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js → VendorsAccountsSection-CgSJu8wq-CW2zmnnP.js} +4 -4
  238. package/dist/assets/{VendorsRoutes-n5RcX0Vf.js → VendorsRoutes-C4N6gRBp.js} +23 -23
  239. package/dist/assets/{VerifyDevice-DeHW4GAi-ejYUh2le.js → VerifyDevice-Dvf0JsNN-CSGpw0v_.js} +2 -2
  240. package/dist/assets/VideoPlayer-VAzOGCDL-BYL37uoQ.js +77 -0
  241. package/dist/assets/{VideoPopup-CUP7ctgS-Cy6Bpggh.js → VideoPopup-BqvZ-XIh-DBw1PWZ3.js} +5 -5
  242. package/dist/assets/WiseConfirmationScreen-DNU9Mqxk.js +12 -0
  243. package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js → ZeniAccountDetailPage-GcwTJdB8-_6oIn_wc.js} +19 -19
  244. package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js → ZeniAccountListViewPage-CdwO0Duy-G5U6kbnQ.js} +35 -35
  245. package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js → ZeniAccountNavBarPieces-BrSIfL36-CgdxCVoA.js} +5 -5
  246. package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js → ZeniAccountPromoPage-JrcedQYB-BtfY6t2a.js} +20 -20
  247. package/dist/assets/{ZeniAccountRoutes-BdqNU648.js → ZeniAccountRoutes-uUgaZh13.js} +11 -11
  248. package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js → ZeniAccountSetupPage-TKBfbgzJ-Ovrdcrt5.js} +1 -1
  249. package/dist/assets/ZeniAccountStatementScreen-CPFcfx6A.js +9 -0
  250. package/dist/assets/{ZeniAvatar-pjdoqfWE-DmYSRpHD.js → ZeniAvatar-Bzhq25CU-DO1x3yqH.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-DDGvdmLF-CPeY3qcE.js → ZeniCopyright-DglqrTpl-iRqjfc19.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-K3F-G3-0-pGSyeWuf.js → ZeniDatePicker-BHXPxPnI-CRe89Wst.js} +6 -6
  253. package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js → ZeniTransferAmountSlider-BcaZZuAw-BeVI8Qc_.js} +2 -2
  254. package/dist/assets/{accountMappingHelper-CMy_dzCB.js → accountMappingHelper-BVO1DeGB.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-DZDSR_90.js → add-to-wallet-DgdBD8_G-CV8RMwhX.js} +1 -1
  256. package/dist/assets/{analytics-Buyhprzd.js → analytics-CZ3wLx3P.js} +1 -1
  257. package/dist/assets/{analyticsHelper-D9xdJK4b-DkISjLhy.js → analyticsHelper-CAYdbjhS-CB8PHHr8.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CTH_kB-0.js → analyticsHelper-RqmdZ4w4.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CxvC0Cnw.js → arrow-south-east-round-PEovUgvH-DB6pjtdO.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BXD0aAHO.js → auto-transfer-rule-mbafm5D3-CrxycPHV.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-tC3a4UX-.js → avatar-Dz7aEm3d-B1h__iIh.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-B3HKnrvN.js → bank-letter-BOcVjN6J-B0RfZgcz.js} +1 -1
  263. package/dist/assets/{calculateSize-zPet_z9g-UKcDxIjM.js → calculateSize-B2w5JPEU-BqvYgtxt.js} +1 -1
  264. package/dist/assets/{chartTypes-Dq3hUz_T-DlStt0to.js → chartTypes-CD3vrBsI-4eICteeW.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-BFtrn8ev.js → clock-CJkylEKt-o4osYW2f.js} +1 -1
  266. package/dist/assets/common-BpxEACHl-SqfXrkK_.js +1 -0
  267. package/dist/assets/{commonDimensions-CGHIQ2To-BVJ-7SGP.js → commonDimensions-Oz1tdAcx-Cf4qEJmU.js} +1 -1
  268. package/dist/assets/{commonTypes-BAJPaPYg-qcmBeNCl.js → commonTypes-5tEXwrX4-F6mC0EfI.js} +1 -1
  269. package/dist/assets/{core-5sxMy3sZ.js → core-CVVdXRky.js} +1 -1
  270. package/dist/assets/{dash.all.min-CTYaOyx7.js → dash.all.min-C2vle8BQ.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-BXr_Lgnt.js → decodeURIComponentSafe-Da8IsQO4.js} +1 -1
  272. package/dist/assets/{dnd-Cfx_ai1S.js → dnd-CcRW__D6.js} +3 -3
  273. package/dist/assets/{dollar-round-D18u7nlm-BAPPb_YV.js → dollar-round-D18u7nlm-BkHqkGHG.js} +1 -1
  274. package/dist/assets/{downloadPdf-BI2Y41h2-C3b-r1N_.js → downloadPdf-Dsuxeias-CPZEuUrl.js} +1 -1
  275. package/dist/assets/{empty-CDKH4CBD.js → empty-BHbH22vT.js} +1 -1
  276. package/dist/assets/{empty-DLdEFiEn.js → empty-M26y6UyA.js} +1 -1
  277. package/dist/assets/epic-CiCSO3K5.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-DR0oScp6.js → filter-cZIFUNvj-BeqNUW3e.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DBVI4ovb.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CLkhO8vB.js → gift-box-Cmt9OgIZ-CR0qdQnT.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXfLioW6.js → graphic-no-data-l-DU4J8fDt-CslJm2fU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js → graphic-no-data-net-burn-l-CzmycA0m-Cj977U7E.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-Cw8-rpU_.js → handshake-BPg58FML-tq0X0Kiz.js} +1 -1
  284. package/dist/assets/{helper-z5-P4a-y-DRvyDGbW.js → helper-Ckm10Uko-U81O1HXL.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-DiF-LRfD.js → hyperlink-DQyCeXx2-D504LM2b.js} +1 -1
  286. package/dist/assets/{index-XrFKA72B.js → index-BZOQWoRX.js} +1 -1
  287. package/dist/assets/{index-BocbTmE1.js → index-BngCC-zG.js} +2513 -2513
  288. package/dist/assets/{index-a2iFhnhM.js → index-ClO_SXUU.js} +1 -1
  289. package/dist/assets/{index-Bsc8ZpcH.js → index-DiKwyzh3.js} +1 -1
  290. package/dist/assets/{index-DCFJ_6wy.js → index-jI4vB8VC.js} +1 -1
  291. package/dist/assets/{index-B6cTzWKI.js → index-uxYir9Bm.js} +1 -1
  292. package/dist/assets/{lexical-BAlvZZhY.js → lexical-DPtIv0jk.js} +1 -1
  293. package/dist/assets/{liveblocks-BsQBjN-0.js → liveblocks-CHs9GmLG.js} +17 -17
  294. package/dist/assets/{lottie-C2R6rGxS.js → lottie-D68Xb3aQ.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-cRyD83dc.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-C2AYKRBA.js} +1 -1
  297. package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js → mapSpacerToTreeNode-XgUp1xUb-VRJ6un-L.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-XT9mQqpQ.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-CGvd2Wmc.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-BVVmyoym.js +1 -0
  301. package/dist/assets/{media-player-BX2lrCiw.js → media-player-D-MhIu5T.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-C1UnGCa2.js → money-2cg1MuG4-DZxnWrWu.js} +1 -1
  303. package/dist/assets/{mui-C_CXevf3.js → mui-DyGc7Pg8.js} +3 -3
  304. package/dist/assets/{page-detail-CWX5S47F-DCvximFz.js → page-detail-CWX5S47F-CXX81aXy.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-BBMfUdRp.js → page-summary-D7_VQHwN-V_V9hbFl.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js → panelSelectedMixin-Cddsb26L-bdcPTs-R.js} +1 -1
  307. package/dist/assets/{pathToGoBack-D5dFRCuJ.js → pathToGoBack-CsNBJVc2.js} +1 -1
  308. package/dist/assets/pdf-BxqSCr4b.js +13 -0
  309. package/dist/assets/{pdf-lib-BLLlynNv.js → pdf-lib-jHogAi_2.js} +1 -1
  310. package/dist/assets/{plaid-Yyr3DBd8.js → plaid-xWfKHEqu.js} +1 -1
  311. package/dist/assets/{pusher-CQAuuZH-.js → pusher-pngVK7xY.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-HLL7c7Ix.js → radio-default-CiSgisfh-sLqGTxQv.js} +1 -1
  313. package/dist/assets/{react-CEO525cE.js → react-B3z4onjT.js} +1 -1
  314. package/dist/assets/{react-B9pn5zl_.js → react-BC4BTRLG.js} +1 -1
  315. package/dist/assets/{react-COI-5ihT.js → react-BElDOWJc.js} +1 -1
  316. package/dist/assets/{react-BFykbpKw.js → react-BuoJ-wtg.js} +1 -1
  317. package/dist/assets/{react-YbLjyGgM.js → react-CuUL9Ybl.js} +1 -1
  318. package/dist/assets/{react-D7RjW9MW.js → react-DpxbyLPn.js} +1 -1
  319. package/dist/assets/{react-BmJ9wc4M.js → react-DyZ9MM_3.js} +3 -3
  320. package/dist/assets/{react-BEZA9UfV.js → react-mv5GPJR4.js} +1 -1
  321. package/dist/assets/{recharts-CTWfsY-L.js → recharts-CMjB5mmq.js} +36 -36
  322. package/dist/assets/{routePaths-_EQ7HBkZ.js → routePaths-B2Ez8xiG.js} +1 -1
  323. package/dist/assets/{sentry-DINNQYpi.js → sentry-CHlUi953.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-DFaW8QSC.js → shield-DOlUxcFf-u1WG480f.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-05QrBanM.js → spend-limit-D6SyboD4-DKcfJ6au.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-aLNB35t7-DBx2vR3D.js +1 -0
  327. package/dist/assets/{toChartData-BUf5HHim-BMyIU8Hn.js → toChartData-DUL6vnzJ-CHvhrhF4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-kO6lyet9.js → transaction-placeholder-CpOwZAMG-BRNI97Lv.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-CAOnjxt9.js → undo-b_3XZ5CX-CHRencVP.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-fA9hPtxv.js → unlock-BPWn2I5L-BfuVrsIJ.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js → upload-reimbursement-receipt-O2N8vcO7-vYnAE0FP.js} +1 -1
  332. package/dist/assets/{uploadAttachment-DJA30WSD-Mme28mRP.js → uploadAttachment-Ck4wivBR-D3iFmRh8.js} +18 -18
  333. package/dist/assets/{uploadReceipts-CqDftTRt-DnJMDyN6.js → uploadReceipts-CIgkuVpu-DQDaRUPe.js} +1 -1
  334. package/dist/assets/{url-dGBmezhj.js → url-7B3Yv5Zc.js} +1 -1
  335. package/dist/assets/{url-BnrMVJye.js → url-CDjIygfF.js} +1 -1
  336. package/dist/assets/{useDeviceId-Dhw-GVYT.js → useDeviceId-CPhY1yO5.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-D3BmEojQ.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-CI59nlOM.js → useLongPress-GCK2COYQ-C-ro8Pxu.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-Bi23t2Q-.js → usp-line-BBd1wKwW-BHKdiO38.js} +1 -1
  340. package/dist/assets/{utils-DmE88LS_.js → utils-BpkJZQMI.js} +12 -12
  341. package/dist/assets/withTransactionSidePanel-D4jXMzEn.js +8 -0
  342. package/dist/assets/{zeni-epic-state-a7Sj5mjO.js → zeni-epic-state-D8D2Skiq.js} +6 -6
  343. package/dist/assets/{zeni-icon-only-COM3FcNM.js → zeni-icon-only-BUIVMYdQ.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +4 -4
  346. package/dist/assets/AccountInfoPage-B8upbXj9-Cm42EUIq.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-CKpeDot5-CwoUlvIm.js +0 -149
  348. package/dist/assets/AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js +0 -6
  349. package/dist/assets/AddressRoutes-CO2FKDgK.js +0 -1
  350. package/dist/assets/AddressScreen-DsuZFaVf.js +0 -9
  351. package/dist/assets/AgingReportsPage-D9I9afnB-Df3hrLUY.js +0 -79
  352. package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js +0 -47
  353. package/dist/assets/ArAgingChart-Tcu0Lja_-BWNKgMZE.js +0 -24
  354. package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js +0 -38
  355. package/dist/assets/BillPayApprovalRoutes-5Y0msu-c.js +0 -1
  356. package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js +0 -222
  357. package/dist/assets/CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js +0 -206
  358. package/dist/assets/CompanyPassportScreen-Dl29U7F0.js +0 -1
  359. package/dist/assets/CompleteProfile-CsbsHQ0p-DmLd2177.js +0 -52
  360. package/dist/assets/ConfettiBurst-duD341Gp-CKS6HfNq.js +0 -1
  361. package/dist/assets/ConnectionAuthScreen-CtmFWvaS.js +0 -11
  362. package/dist/assets/CustomerOnboardingAuthScreen-DtvN_x2S.js +0 -1
  363. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +0 -1
  364. package/dist/assets/CustomerOnboardingRoutes-C_QLwzau.js +0 -23
  365. package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js +0 -12
  366. package/dist/assets/DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js +0 -76
  367. package/dist/assets/DomesticWireDetailScreen-CV-2twy7.js +0 -18
  368. package/dist/assets/DrawerScreen-0WDRSJz6.js +0 -1
  369. package/dist/assets/EditPeoplePage-8DalSMWH-CybAz5BL.js +0 -55
  370. package/dist/assets/EntityDetailPage-fmWuxHTZ-zOCr7HwT.js +0 -18
  371. package/dist/assets/EntityDetailRoutes-r6uNQDsF.js +0 -1
  372. package/dist/assets/ExpenseAutomationPage-4LJefgNh-n1--5-UE.js +0 -3628
  373. package/dist/assets/ExpenseAutomationRoutes-Dd80KoVV.js +0 -20
  374. package/dist/assets/FeaturePreviewScreen-D2Pa-R10.js +0 -1
  375. package/dist/assets/InsightsCardStack-uJWMkIZL-BDZTXUwm.js +0 -79
  376. package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js +0 -65
  377. package/dist/assets/InvitePeoplePage-BT_YVCP4-CQRb2c-r.js +0 -12
  378. package/dist/assets/LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js +0 -45
  379. package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js +0 -1
  380. package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js +0 -1
  381. package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js +0 -1
  382. package/dist/assets/MagicLinkRoutes-DAnRUF47.js +0 -72
  383. package/dist/assets/MagicLinkSignInScreen-BRdR8FPq.js +0 -12
  384. package/dist/assets/MailingDetailsSection-9_XLl4bT-Bq5v10Od.js +0 -21
  385. package/dist/assets/MobileAppDrawer-DXy0Oi_h.js +0 -1
  386. package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js +0 -85
  387. package/dist/assets/NavigationDots-DCpslVnm-D-4SKVAz.js +0 -15
  388. package/dist/assets/NoDataChart-9-bhq204-BNHp8Nld.js +0 -26
  389. package/dist/assets/NotFoundScreen-MU1vvTl3.js +0 -1
  390. package/dist/assets/NotificationRoutes-CiTIiIjp.js +0 -1
  391. package/dist/assets/NotificationsListConfig-CylnViXd-DEcj9I_Q.js +0 -1
  392. package/dist/assets/OverlayContainerPage-CkUYOhlh-C1amAlX0.js +0 -11
  393. package/dist/assets/PandLWithForecastRoutes-t6sqNQ0M.js +0 -1
  394. package/dist/assets/PeopleRoutes-DvMa0FHX.js +0 -22
  395. package/dist/assets/PerformanceRoutes-C97G2NlX.js +0 -1
  396. package/dist/assets/ReferralListScreen-DJHg0qdR.js +0 -5
  397. package/dist/assets/ReimbursementApprovalRoutes-5hvNi1ri.js +0 -1
  398. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CE15OHBL.js +0 -1
  399. package/dist/assets/ReportsRoutes-yGE_MThE.js +0 -1
  400. package/dist/assets/RewardsRoutes-BLdquuw-.js +0 -1
  401. package/dist/assets/RoleWithToolTip-x2rnvWn9-CndfBCzZ.js +0 -22
  402. package/dist/assets/SignOutScreen-CDL-h93X.js +0 -9
  403. package/dist/assets/StatementsPage-CbtnJM5y-y3-8Ovdn.js +0 -58
  404. package/dist/assets/SuccessAnimation-DA3343II-B6vDBJ0_.js +0 -13
  405. package/dist/assets/SummaryCard-D61xzK3a-CfR23TFg.js +0 -1
  406. package/dist/assets/TaskListScreen-DwAEl1NC.js +0 -9
  407. package/dist/assets/TaskRoutes-Bz1uRNCx.js +0 -9
  408. package/dist/assets/TransactionDetailPage-D-NR_yZG-CxUKWZX4.js +0 -921
  409. package/dist/assets/TransactionDetailRoutes-CpDSsFwB.js +0 -1
  410. package/dist/assets/TransactionDetailScreen-DfuoY_gg.js +0 -5
  411. package/dist/assets/TransactionList-f6yB-byH-FETk5Iif.js +0 -157
  412. package/dist/assets/TransactionListPage-C-Z62y2d-DONuCLTJ.js +0 -35
  413. package/dist/assets/TransactionListRoutes-Bw5edFOJ.js +0 -1
  414. package/dist/assets/TreasuryRoutes-j5E27301.js +0 -45
  415. package/dist/assets/TreasuryStatementsPage-mljf2Van-DcI9l-or.js +0 -58
  416. package/dist/assets/TrendChart-fFlHCvNx-QKskVgw6.js +0 -16
  417. package/dist/assets/VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js +0 -1
  418. package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js +0 -1
  419. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js +0 -1
  420. package/dist/assets/VideoPlayer-DxIfGrPu-C3cW7OOT.js +0 -77
  421. package/dist/assets/WiseConfirmationScreen-CJyMiRdY.js +0 -12
  422. package/dist/assets/ZeniAccountStatementScreen-DVjRkXeL.js +0 -9
  423. package/dist/assets/common-kiEGPQ33-BvLj55nP.js +0 -1
  424. package/dist/assets/epic-Bn4m6PJ6.js +0 -2
  425. package/dist/assets/getLocaleForTenant-BPL6tSgt.js +0 -1
  426. package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js +0 -1
  427. package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js +0 -1
  428. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js +0 -1
  429. package/dist/assets/pdf-DyB_VHQx.js +0 -13
  430. package/dist/assets/toCOABalancesWithID-P7keEtAg-CVzjqCh4.js +0 -1
  431. package/dist/assets/useInitialThreadRequest-GWflkp6K.js +0 -1
  432. package/dist/assets/withTransactionSidePanel-D4o5a7Hq.js +0 -8
@@ -1,4 +1,4 @@
1
- import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de,o as x,E as Fe,x as fe,b8 as ge,l as R,b9 as F,au as K}from"./index-BocbTmE1.js";import{a as z,b as ee}from"./sentry-DINNQYpi.js";import{n as f}from"./mui-C_CXevf3.js";import{p as b,b as N,d as te,y as T,g as ae,u as W}from"./chartTypes-Dq3hUz_T-DlStt0to.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-P7keEtAg-CVzjqCh4.js";import{V as J}from"./toChartData-BUf5HHim-BMyIU8Hn.js";import{D as pe,H as oe,N as me,C as le,X as ne,Y as ce,B as se,E as xe,G as We}from"./recharts-CTWfsY-L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="49c7231b-9cb5-4ea5-9339-483f9a820508",e._sentryDebugIdIdentifier="sentry-dbid-49c7231b-9cb5-4ea5-9339-483f9a820508")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-BngCC-zG.js";import{a as z,b as ee}from"./sentry-CHlUi953.js";import{n as f}from"./mui-DyGc7Pg8.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-CD3vrBsI-4eICteeW.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-aLNB35t7-DBx2vR3D.js";import{V as J}from"./toChartData-DUL6vnzJ-CHvhrhF4.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-CMjB5mmq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a7901a1d-e333-4f4b-9d27-b4100dd3c040",e._sentryDebugIdIdentifier="sentry-dbid-a7901a1d-e333-4f4b-9d27-b4100dd3c040")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
2
2
  display: flex;
3
3
  `,He=f.div`
4
4
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
@@ -19,17 +19,17 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
19
19
  display: flex;
20
20
  align-items: center;
21
21
  justify-content: space-between;
22
- `,Xe=f(R)`
22
+ `,Ue=f(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: ${x.sp2};
28
- `,Ue=f(R)`
28
+ `,Xe=f(R)`
29
29
  text-align: left;
30
30
  `,Je=f(R)`
31
31
  text-align: right;
32
- `,be=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(Ue,{children:[t.jsx(Xe,{color:a.color}),`${a.barName}:`]}),t.jsx(Je,{children:`${W(a.value)}`})]},a.barName+o)),Qe=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().chartCard.cashInCashOut[N(i)],value:c,color:s})}}),r})({...e});return a.length===0?null:t.jsx(Ke,{children:t.jsxs(Ye,{children:[be(a.slice(0,a.length-1)),a.length?t.jsx(He,{}):null,be(a.slice(-1))]})})}),Ze=(e,a,o,n,r)=>{let l=[],i=[],u=[];o!=null&&o.balances.length>0&&(l=A("cash_in","actual",o)),n!=null&&n.balances.length>0&&(i=A("cash_out","actual",n)),r!=null&&r.balances.length>0&&(u=re("net_cash_flow","actual",r));const s=b("cash_in","actual"),c=b("cash_out","actual"),C=b("net_cash_flow","actual"),h=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[C]=u,h!=null?J(e,a,h,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],et=f.div`
32
+ `,be=e=>e.map((a,o)=>t.jsxs(qe,{color:a.color,children:[t.jsxs(Xe,{children:[t.jsx(Ue,{color:a.color}),`${a.barName}:`]}),t.jsx(Je,{children:`${W(a.value)}`})]},a.barName+o)),Qe=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().chartCard.cashInCashOut[T(i)],value:c,color:s})}}),r})({...e});return a.length===0?null:t.jsx(Ke,{children:t.jsxs(Ye,{children:[be(a.slice(0,a.length-1)),a.length?t.jsx(He,{}):null,be(a.slice(-1))]})})}),Ze=(e,a,o,n,r)=>{let l=[],i=[],u=[];o!=null&&o.balances.length>0&&(l=A("cash_in","actual",o)),n!=null&&n.balances.length>0&&(i=A("cash_out","actual",n)),r!=null&&r.balances.length>0&&(u=re("net_cash_flow","actual",r));const s=b("cash_in","actual"),c=b("cash_out","actual"),C=b("net_cash_flow","actual"),h=l.length>0?s:i.length>0?c:void 0,d={};return d[s]=l,d[c]=i,d[C]=u,h!=null?J(e,a,h,d):void 0},ye=[b("cash_in","actual"),b("cash_out","actual"),b("net_cash_flow","actual")],et=f.div`
33
33
  width: ${e=>e.width}px;
34
34
  height: ${e=>e.height}px;
35
35
 
@@ -42,7 +42,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
42
42
  `,tt=f(ge)`
43
43
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
44
44
  color: ${e=>e.theme.colors.primary};
45
- `;function $a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=V(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],h=(y,j=s.colors.graphColor08)=>y<C.length?C[y]:j,d=Ze(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow);return d==null?null:t.jsx(at,{chartData:d,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const y=[];return ye.forEach((j,_)=>{const w=i===!0&&!c.current;y.push(t.jsx(oe,{name:j,animationDuration:w?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[j]!=null&&k[j].amount!=null?k[j].amount:void 0)?.amount??0},fill:h(_)},j))}),y})(),customToolTipContent:({active:y,payload:j})=>t.jsx(Qe,{active:y,payload:j}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const at=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=V(),d=e.timeseries,y=te(e),j=d.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,L=p.payload.timeLabel.label;if(r==null)return;const D=ae(L,j,r.numberOfPeriods),v=D[1]===void 0?j.length-1:j.indexOf(D[1]),B={...r,thisPeriod:{startDate:d[v].startDate,endDate:d[v].endDate}};c?.(d[g],a,B)},$=s?(l-60)/T.cash_in_cash_out*(T.cash_in_cash_out-e.recordByTimeseries.length):20;return t.jsx(et,{"data-testid":Fe("dashboard-cash-in-cash-out-timeframe",a),width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(We,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,y)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},formatter:g=>t.jsx(tt,{windowSize:C,children:S.getLocalizedStrings().chartCard.cashInCashOut[N(g)]})}):null]})})})},rt=f.div`
45
+ `;function $a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=[s.colors.graphColor33,s.colors.graphColor36,s.colors.graphColor35],h=(y,j=s.colors.graphColor08)=>y<C.length?C[y]:j,d=Ze(e.firstMonthOfFY,ye,e.cashIn,e.cashOut,e.netCashFlow);return d==null?null:t.jsx(at,{chartData:d,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const y=[];return ye.forEach((j,_)=>{const w=i===!0&&!c.current;y.push(t.jsx(oe,{name:j,animationDuration:w?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:$=>{const k=$.record;return(k[j]!=null&&k[j].amount!=null?k[j].amount:void 0)?.amount??0},fill:h(_)},j))}),y})(),customToolTipContent:({active:y,payload:j})=>t.jsx(Qe,{active:y,payload:j}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const at=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=e.timeseries,y=te(e),j=d.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:d[v].startDate,endDate:d[v].endDate}};c?.(d[g],a,B)},$=s?(l-60)/N.cash_in_cash_out*(N.cash_in_cash_out-e.recordByTimeseries.length):20;return t.jsx(et,{"data-testid":Ve("dashboard-cash-in-cash-out-timeframe",a),width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(We,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,y)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},formatter:g=>t.jsx(tt,{windowSize:C,children:S.getLocalizedStrings().chartCard.cashInCashOut[T(g)]})}):null]})})})},rt=f.div`
46
46
  display: flex;
47
47
  `,ot=f.div`
48
48
  flex: display;
@@ -60,7 +60,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
60
60
  `,nt=ee.memo(e=>{const a=(({active:o,payload:n})=>{const r=[];return n?.forEach(l=>{const i=l.name;if(o===!0){const u=l.payload,s=l.color,c=i!=null&&u.record[i]!=null?u.record[i].amount:void 0;r.push({barName:S.getLocalizedStrings().reportTitleById.cash_position,value:c,color:s})}}),r})(e);return a.length===0?null:t.jsx(rt,{children:t.jsx(ot,{children:a.map((o,n)=>t.jsx(lt,{color:o.color,children:`${o.barName}: ${W(o.value)}`},o.barName+n))})})}),ct=(e,a,o)=>{let n=[];o!=null&&o.balances.length>0&&(n=I("cash_position","actual",o));const r=b("cash_position","actual"),l={};return l[r]=n,n.length>0?J(e,a,r,l):void 0},st=f.div`
61
61
  width: ${e=>e.width}px;
62
62
  height: ${e=>e.height}px;
63
- `,Ce=[b("cash_position","actual")];function _a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=V(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=ct(e.firstMonthOfFY,Ce,e.cashPosition);return C==null?null:t.jsx(it,{chartData:C,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const h=[];return Ce.forEach(d=>{const y=i===!0&&!c.current;h.push(t.jsx(oe,{name:d,animationDuration:y?500:void 0,style:{cursor:"pointer"},dataKey:j=>{const _=j.record;return(_[d]!=null&&_[d].amount!=null?_[d].amount:void 0)?.amount??0},fill:s.colors.graphColor17},d))}),h})(),customToolTipContent:({active:h,payload:d})=>t.jsx(nt,{active:h,payload:d}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const it=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=V(),h=e.timeseries,d=te(e),y=h.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const L=ae(g,y,r.numberOfPeriods),D=L[1]===void 0?y.length-1:y.indexOf(L[1]),v={...r,thisPeriod:{startDate:h[D].startDate,endDate:h[D].endDate}};c?.(h[p],a,v)},w=s?(l-60)/T.cash_position*(T.cash_position-e.recordByTimeseries.length):20;return t.jsx(st,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(We,{width:k,height:$,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},ut=f.div`
63
+ `,Ce=[b("cash_position","actual")];function _a({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,onCOABalancesRangeChanged:u}){const s=F(),c=z.useRef(!1);z.useEffect(()=>{c.current=!0},[]);const C=ct(e.firstMonthOfFY,Ce,e.cashPosition);return C==null?null:t.jsx(it,{chartData:C,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const h=[];return Ce.forEach(d=>{const y=i===!0&&!c.current;h.push(t.jsx(oe,{name:d,animationDuration:y?500:void 0,style:{cursor:"pointer"},dataKey:j=>{const _=j.record;return(_[d]!=null&&_[d].amount!=null?_[d].amount:void 0)?.amount??0},fill:s.colors.graphColor17},d))}),h})(),customToolTipContent:({active:h,payload:d})=>t.jsx(nt,{active:h,payload:d}),width:n,height:r,onCOABalancesRangeChanged:u,highlightedRange:o,isDetailPage:i===!0})}const it=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=e.timeseries,d=te(e),y=h.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:h[L].startDate,endDate:h[L].endDate}};c?.(h[p],a,v)},w=s?(l-60)/N.cash_position*(N.cash_position-e.recordByTimeseries.length):20;return t.jsx(st,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(We,{width:k,height:$,data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeDasharray:"1, 1",strokeWidth:1,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},ut=f.div`
64
64
  display: flex;
65
65
  `,ht=f.div`
66
66
  display: flex;
@@ -77,7 +77,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
77
77
  text-align: right;
78
78
  `,gt=f.div`
79
79
  width: 132px;
80
- `,Ne=f.div`
80
+ `,Te=f.div`
81
81
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
82
82
  width: 100%;
83
83
  height: 1px;
@@ -98,7 +98,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
98
98
  flex-direction: column;
99
99
  padding: ${x.sp3};
100
100
  background-color: ${e=>e.theme.colors.black};
101
- `,Te=f(R)`
101
+ `,Ne=f(R)`
102
102
  color: ${e=>e.color??m.neutralGrey2Light};
103
103
  text-align: left;
104
104
  display: flex;
@@ -128,7 +128,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
128
128
  `,ke=f(K)`
129
129
  display: flex;
130
130
  flex-direction: column;
131
- `,ve=f(H)``,yt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};b("income","actual");const u=b("cogs","actual"),s=b("expenses","actual"),c=b("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,y=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=b(N(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,L=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:L},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[N(h)],actual:j,forecast:_,color:y});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:y,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[N(h)],actual:j,color:y,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Te,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(bt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:F("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Te,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?F("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?F("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:F("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Ne,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Ne,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=yt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),j=b("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?y:void 0,w={};return w[h]=u,w[d]=s,w[y]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?J(e,a,_,w):void 0},$t=(e,a,o,n)=>{let r=[],l=[],i=[],u=[];e!=null&&e.balances.length>0&&(r=A("income","forecast",e)),a!=null&&a.balances.length>0&&(l=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(i=I("expenses","forecast",o)),n!=null&&n.balances.length>0&&(u=re("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),C=b("expenses","forecast"),h=b("net_burn_or_income","forecast"),d={};return d[s]=r,d[c]=l,d[C]=i,d[h]=u,d},_t=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Dt=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Lt=f.div`
131
+ `,ve=f(H)``,yt=({active:e,payload:a,mode:o})=>{const n=[],r={barName:S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn,actual:void 0,color:m.neutralGrey2Dark,forecast:void 0};let l={amount:0,currencyCode:"",currencySymbol:""},i={amount:0,currencyCode:"",currencySymbol:""};b("income","actual");const u=b("cogs","actual"),s=b("expenses","actual"),c=b("net_burn_or_income","actual");return a?.forEach(C=>{const h=C.name;if(e===!0){const d=C.payload,y=C.color,j=h!=null&&d.record[h]!=null?d.record[h].amount:void 0;let _;if(h.includes("forecast")!==!0)switch(o==="forecast_mode"&&(_=d.record[h]!=null?((w,$)=>{const k=b(T(w),"forecast");if($.record[k]==null)return;const p=$.record[w].amount,g=$.record[k].amount,D=Math.floor(100*(p.amount-g.amount)/100);return{value:g,change:{...p,amount:D},percent:g.amount!==0?Math.floor((p.amount-g.amount)/g.amount*100)/100:void 0,forecastPercent:$.record[k].percentValue}})(h,d):void 0),h){case u:case s:j!=null&&(l.currencyCode===""?l={...j}:l.amount=l.amount+j.amount),_!=null&&(i.currencyCode===""?i={..._.value}:i.amount=i.amount+_.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,forecast:_,color:y});break;case c:{const w=j!=null&&j.amount>=0?S.getLocalizedStrings().chartCard.netBurnOrIncome.net_income:S.getLocalizedStrings().chartCard.netBurnOrIncome.net_burn;n.push({barName:w,actual:j,color:y,percent:d.record[h]?.percentValue,forecast:_});break}default:n.push({barName:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(h)],actual:j,color:y,forecast:_})}}}),r.actual=l,r.forecast=i!=null&&l!=null?{value:i,change:{...l,amount:Math.floor(100*(l.amount-i.amount)/100)},percent:i.amount!==0?Math.floor((l.amount-i.amount)/i.amount*100)/100:0}:void 0,e===!0&&n.splice(n.length-1,0,r),n},we=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(xt,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsxs(bt,{children:[t.jsx(je,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(je,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),$e=e=>e.map((a,o)=>t.jsxs(Ne,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ft,{children:[t.jsx(Ee,{color:a.barName===S.getLocalizedStrings().chartCard.netBurnOrIncome.gross_burn?"transparent":a.color}),`${a.barName}:`]}),t.jsx(H,{children:t.jsxs(ke,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ve,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(H,{children:t.jsxs(ke,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ve,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(H,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(H,{children:"-"}),a.forecast!=null?t.jsx(H,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(H,{children:"-"})]},a.barName+o)),Ct=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},jt=({barLabelsWithValues:e})=>t.jsxs(ht,{children:[t.jsxs(dt,{children:[t.jsx(gt,{}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ie,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",Ct(e)]}),t.jsx(ie,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(mt,{children:[$e(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,$e(e.slice(-2))]})]}),kt=({barLabelsWithValues:e})=>t.jsx(ut,{children:t.jsxs(pt,{children:[we(e.slice(0,e.length-2)),e.length?t.jsx(Te,{}):null,we(e.slice(-2))]})}),vt=ee.memo(e=>{const a=yt({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(jt,{barLabelsWithValues:a}):t.jsx(kt,{barLabelsWithValues:a})})}),wt=(e,a,o,n,r,l,i)=>{let u=[],s=[],c=[],C=[];n!=null&&n.balances.length>0&&(u=A("income","actual",n)),r!=null&&r.balances.length>0&&(s=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(c=I("expenses","actual",l)),i!=null&&i.balances.length>0&&(C=re("net_burn_or_income","actual",i));const h=b("income","actual"),d=b("cogs","actual"),y=b("expenses","actual"),j=b("net_burn_or_income","actual"),_=u.length>0?h:s.length>0?d:c.length>0?y:void 0,w={};return w[h]=u,w[d]=s,w[y]=c,w[j]=C,o==="forecast_mode"&&Object.assign(w,$t(n,r,l,i)),_!=null?J(e,a,_,w):void 0},$t=(e,a,o,n)=>{let r=[],l=[],i=[],u=[];e!=null&&e.balances.length>0&&(r=A("income","forecast",e)),a!=null&&a.balances.length>0&&(l=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(i=I("expenses","forecast",o)),n!=null&&n.balances.length>0&&(u=re("net_burn_or_income","forecast",n));const s=b("income","forecast"),c=b("cogs","forecast"),C=b("expenses","forecast"),h=b("net_burn_or_income","forecast"),d={};return d[s]=r,d[c]=l,d[C]=i,d[h]=u,d},_t=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual")],Lt=[b("income","actual"),b("cogs","actual"),b("expenses","actual"),b("net_burn_or_income","actual"),b("income","forecast"),b("cogs","forecast"),b("expenses","forecast"),b("net_burn_or_income","forecast")],Dt=f.div`
132
132
  width: ${e=>e.width}px;
133
133
  height: ${e=>e.height}px;
134
134
 
@@ -141,7 +141,7 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
141
141
  `,St=f(ge)`
142
142
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
143
143
  color: ${e=>e.theme.colors.primary};
144
- `;function Da({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=V(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?Dt:_t,_=(p,g=c.colors.graphColor04)=>p<y.length?y[p]:g,w=(e.reportId,wt(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),$=p=>{const{cx:g,cy:L,fill:D,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:L,r:4,stroke:D,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:L,fill:D,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:L,r:5,stroke:v,strokeWidth:2,fill:D})};return w==null?null:t.jsx(Bt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,L)=>{const D=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},dot:t.jsx($,{}),strokeWidth:1.5,stroke:_(B),strokeDasharray:"3 3",activeDot:t.jsx(k,{})},v))(g,L)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,L,D))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(vt,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Bt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=V(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,L=p.payload.timeLabel.label;if(r==null)return;const D=ae(L,j,r.numberOfPeriods),v=D[1]===void 0?j.length-1:j.indexOf(D[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/T.net_burn_or_income*(T.net_burn_or_income-e.recordByTimeseries.length):20;return t.jsx(Lt,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/T.net_burn_or_income,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(St,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.netBurnOrIncome[g]:S.getLocalizedStrings().chartCard.netBurnOrIncome[N(g)]})}):null]})})})},zt=f.div`
144
+ `;function La({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor36,c.colors.graphColor06,c.colors.graphColor31,c.colors.graphColor12],d=[c.colors.graphColor04,c.colors.graphColor10,c.colors.graphColor32,c.colors.graphColor13,c.colors.graphColor04Dark,c.colors.graphColor10Dark,c.colors.graphColor32Dark,c.colors.graphColor13Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?Lt:_t,_=(p,g=c.colors.graphColor04)=>p<y.length?y[p]:g,w=(e.reportId,wt(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.sections.expenses,e.calculatedSections.netBurnOrIncome)),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(Bt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},dot:t.jsx($,{}),strokeWidth:1.5,stroke:_(B),strokeDasharray:"3 3",activeDot:t.jsx(k,{})},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(vt,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Bt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/N.net_burn_or_income*(N.net_burn_or_income-e.recordByTimeseries.length):20;return t.jsx(Dt,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.net_burn_or_income,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(St,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.netBurnOrIncome[g]:S.getLocalizedStrings().chartCard.netBurnOrIncome[T(g)]})}):null]})})})},zt=f.div`
145
145
  display: flex;
146
146
  `,Pt=f.div`
147
147
  flex: display;
@@ -171,14 +171,14 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
171
171
  `,Wt=f.div`
172
172
  display: flex;
173
173
  flex-direction: column;
174
- `,Nt=f.div`
174
+ `,Tt=f.div`
175
175
  display: flex;
176
176
  background-color: ${e=>e.theme.colors.black};
177
177
  opacity: 0.85;
178
178
  border-radius: ${x.sp1} ${x.sp1} ${x.sp0} ${x.sp0};
179
179
  color: ${e=>e.theme.colors.grey1};
180
180
  padding: ${x.sp3};
181
- `,Tt=f.div`
181
+ `,Nt=f.div`
182
182
  flex: display;
183
183
  opacity: 0.85;
184
184
  width: 500px;
@@ -189,13 +189,13 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
189
189
  `,Et=f(R)`
190
190
  text-align: left;
191
191
  width: 162px;
192
- `,X=f(K)`
192
+ `,U=f(K)`
193
193
  text-align: right;
194
194
  flex: 1;
195
- `,Gt=(e,a)=>{const o=b(N(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},De=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(X,{children:e.actual!=null?`${W(e.actual)}`:"-"}),t.jsx(X,{children:e.forecast!=null?`${W(e.forecast.value)}`:"-"}),e.forecast!=null?t.jsx(X,{isChange:!0,children:`${W(e.forecast.change)}`}):t.jsx(X,{children:"-"}),e.forecast!=null?t.jsx(X,{isChange:!0,children:F("0,0.0%",e.forecast.percent)}):t.jsx(X,{children:"-"})]}),It=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},Mt=({barLabelsWithValues:e})=>t.jsx(zt,{children:t.jsxs(Pt,{children:[t.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${W(e[0].actual)}`}),t.jsx(Ge,{}),t.jsx(_e,{children:`${S.getLocalizedStrings().chartCard.total}: ${W(e[1].actual)}`})]})}),At=({barLabelsWithValues:e})=>t.jsxs(Wt,{children:[t.jsxs(Nt,{children:[t.jsx(Rt,{}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ue,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",It(e)]}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(Tt,{children:[De(e[0]),t.jsx(Ge,{}),De(e[1])]})]}),Vt=ee.memo(e=>{const a=(({active:o,payload:n,barName:r})=>{const l=[];if(n!=null&&o===!0){const i=n.filter(C=>C.name==r)[0],u=i.payload,s=i.color,c=r!=null&&u.record[r]!=null?u.record[r].amount:void 0;if(!r?.endsWith("_forecast")){let C;if(r.includes("forecast")!==!0){C=u.record[r]!=null?Gt(r,u):void 0;const h={amount:0,currencyCode:"",currencySymbol:""},d={amount:0,currencyCode:"",currencySymbol:""};let y;for(y in u.record){const w=u.record[y].amount;y.endsWith("_actual")?(h.amount+=u.record[y].amount?.amount??0,h.currencyCode=w!=null?w.currencyCode:h.currencyCode,h.currencySymbol=w!=null?w.currencySymbol:h.currencySymbol):y.endsWith("_forecast")&&(d.amount+=u.record[y].amount?.amount??0,d.currencyCode=w!=null?w.currencyCode:d.currencyCode,d.currencySymbol=w!=null?w.currencySymbol:d.currencySymbol)}const j=Math.floor(100*(h?.amount-d?.amount)/100),_={value:d,change:{...h,amount:j},percent:d.amount!==0?Math.floor((h.amount-d.amount)/d.amount*100)/100:0};l.push({barName:N(r),actual:c,forecast:C,color:s}),l.push({barName:S.getLocalizedStrings().chartCard.total,actual:h,forecast:_,color:m.neutralGrey1Light})}}}return l})({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(At,{barLabelsWithValues:a}):t.jsx(Mt,{barLabelsWithValues:a})})}),Ft=(e,a)=>{const o=[],n={};let r;return a!=null&&a.classes.length!=0&&a.classes.forEach(l=>{const i=I(l.class.className,"actual",l.childrenBalancesTotal),u=b(l.class.className,"actual");n[u]=i,o.push(u),r==null&&i.length>0&&(r=b(l.class.className,"actual"))}),r!=null?J(e,o,r,n):void 0},Le=[m.graphColor34,m.graphColor05,m.graphColor08,m.graphColor11,m.graphColor13,m.graphColor19,m.graphColor29,m.graphColor28,m.graphColor20,m.graphColor21,m.graphColor22,m.graphColor14,m.graphColor35,m.graphColor31,m.graphColor33,m.graphColor32,m.graphColor36,m.graphColor02,m.graphColor06,m.graphColor04,m.graphColor10,m.graphColor12,m.graphColor15,m.graphColor18,m.graphColor17,m.graphColor07,m.graphColor34Dark,m.graphColor05Dark,m.graphColor08Dark,m.graphColor11Dark,m.graphColor13Dark,m.graphColor19Dark,m.graphColor29Dark,m.graphColor28Dark,m.graphColor20Dark,m.graphColor21Dark,m.graphColor22Dark,m.graphColor14Dark,m.graphColor35Dark,m.graphColor31Dark,m.graphColor33Dark,m.graphColor32Dark,m.graphColor36Dark,m.graphColor02Dark,m.graphColor06Dark,m.graphColor04Dark,m.graphColor10Dark,m.graphColor12Dark,m.graphColor15Dark,m.graphColor18Dark,m.graphColor17Dark,m.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=m.graphColor34,this._barColors=Le.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(a){const o=Y.instance();return o._barColorsKeyWise.has(a)||(o._barColors.length===0&&(o._barColors=Le.slice()),o._barColorsKeyWise.set(a,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(a)}shouldUpdate(a){const o=Y.instance(),n=Array.from(o._barColorsKeyWise.keys()).sort();return!Ve(n,a)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Kt=Y.instance(),Ht=(e,a,o)=>{const n=[],r={};let l,i=!1;if(o!=null&&o.accountGroups.length!=0?o.accountGroups.forEach(u=>{const s=I(u.accountGroupName,"actual",u),c=b(u.accountGroupName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.accountGroupName,"actual"))}):o!=null&&o.accounts.length!=0&&(i=!0,o.accounts.forEach(u=>{const s=I(u.account.accountName,"actual",u.account.balancesInTimeframe),c=b(u.account.accountName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.account.accountName,"actual"))})),o!=null&&o.accountGroups.length===0&&o.accounts.length===0){const u=S.getLocalizedStrings().chartCard.total,s=I(u,"actual",o);if(s.length!==0){const c=b(u,"actual");r[c]=s,l=c,n.push(c)}}return a==="forecast_mode"&&Object.assign(r,Yt(n,o)),l!=null?J(e,n,l,r,i):void 0},Yt=(e,a)=>{const o={};let n;if(a!=null&&a.accountGroups.length!=0?a.accountGroups.forEach(r=>{const l=I(r.accountGroupName,"forecast",r),i=b(r.accountGroupName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.accountGroupName,"forecast"))}):a!=null&&a.accounts.length!=0&&a.accounts.forEach(r=>{const l=I(r.account.accountName,"forecast",r.account.balancesInTimeframe),i=b(r.account.accountName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.account.accountName,"forecast"))}),a!=null&&a.accountGroups.length===0&&a.accounts.length===0){const r=S.getLocalizedStrings().chartCard.total,l=I(r,"forecast",a);if(l.length!==0){const i=b(r,"forecast");o[i]=l,n=i,e.push(i)}}return o},qt=f.div`
195
+ `,Gt=(e,a)=>{const o=b(T(e),"forecast");if(a.record[o]==null)return;const n=a.record[e].amount,r=a.record[o].amount;return{value:r,change:{...n,amount:r!=null?Math.floor(100*(n.amount-r.amount)/100):n.amount},percent:r!=null&&r.amount!==0?Math.floor((n.amount-r.amount)/r.amount*100)/100:void 0}},Le=e=>t.jsxs(Ot,{color:e.color,children:[t.jsx(Et,{children:`${e.barName}:`}),t.jsx(U,{children:e.actual!=null?`${W(e.actual)}`:"-"}),t.jsx(U,{children:e.forecast!=null?`${W(e.forecast.value)}`:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:`${W(e.forecast.change)}`}):t.jsx(U,{children:"-"}),e.forecast!=null?t.jsx(U,{isChange:!0,children:V("0,0.0%",e.forecast.percent)}):t.jsx(U,{children:"-"})]}),It=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},Mt=({barLabelsWithValues:e})=>t.jsx(zt,{children:t.jsxs(Pt,{children:[t.jsx(_e,{color:e[0].color,children:`${e[0].barName}: ${W(e[0].actual)}`}),t.jsx(Ge,{}),t.jsx(_e,{children:`${S.getLocalizedStrings().chartCard.total}: ${W(e[1].actual)}`})]})}),At=({barLabelsWithValues:e})=>t.jsxs(Wt,{children:[t.jsxs(Tt,{children:[t.jsx(Rt,{}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(ue,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",It(e)]}),t.jsx(ue,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(Nt,{children:[Le(e[0]),t.jsx(Ge,{}),Le(e[1])]})]}),Ft=ee.memo(e=>{const a=(({active:o,payload:n,barName:r})=>{const l=[];if(n!=null&&o===!0){const i=n.filter(C=>C.name==r)[0],u=i.payload,s=i.color,c=r!=null&&u.record[r]!=null?u.record[r].amount:void 0;if(!r?.endsWith("_forecast")){let C;if(r.includes("forecast")!==!0){C=u.record[r]!=null?Gt(r,u):void 0;const h={amount:0,currencyCode:"",currencySymbol:""},d={amount:0,currencyCode:"",currencySymbol:""};let y;for(y in u.record){const w=u.record[y].amount;y.endsWith("_actual")?(h.amount+=u.record[y].amount?.amount??0,h.currencyCode=w!=null?w.currencyCode:h.currencyCode,h.currencySymbol=w!=null?w.currencySymbol:h.currencySymbol):y.endsWith("_forecast")&&(d.amount+=u.record[y].amount?.amount??0,d.currencyCode=w!=null?w.currencyCode:d.currencyCode,d.currencySymbol=w!=null?w.currencySymbol:d.currencySymbol)}const j=Math.floor(100*(h?.amount-d?.amount)/100),_={value:d,change:{...h,amount:j},percent:d.amount!==0?Math.floor((h.amount-d.amount)/d.amount*100)/100:0};l.push({barName:T(r),actual:c,forecast:C,color:s}),l.push({barName:S.getLocalizedStrings().chartCard.total,actual:h,forecast:_,color:m.neutralGrey1Light})}}}return l})({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(At,{barLabelsWithValues:a}):t.jsx(Mt,{barLabelsWithValues:a})})}),Vt=(e,a)=>{const o=[],n={};let r;return a!=null&&a.classes.length!=0&&a.classes.forEach(l=>{const i=I(l.class.className,"actual",l.childrenBalancesTotal),u=b(l.class.className,"actual");n[u]=i,o.push(u),r==null&&i.length>0&&(r=b(l.class.className,"actual"))}),r!=null?J(e,o,r,n):void 0},De=[m.graphColor34,m.graphColor05,m.graphColor08,m.graphColor11,m.graphColor13,m.graphColor19,m.graphColor29,m.graphColor28,m.graphColor20,m.graphColor21,m.graphColor22,m.graphColor14,m.graphColor35,m.graphColor31,m.graphColor33,m.graphColor32,m.graphColor36,m.graphColor02,m.graphColor06,m.graphColor04,m.graphColor10,m.graphColor12,m.graphColor15,m.graphColor18,m.graphColor17,m.graphColor07,m.graphColor34Dark,m.graphColor05Dark,m.graphColor08Dark,m.graphColor11Dark,m.graphColor13Dark,m.graphColor19Dark,m.graphColor29Dark,m.graphColor28Dark,m.graphColor20Dark,m.graphColor21Dark,m.graphColor22Dark,m.graphColor14Dark,m.graphColor35Dark,m.graphColor31Dark,m.graphColor33Dark,m.graphColor32Dark,m.graphColor36Dark,m.graphColor02Dark,m.graphColor06Dark,m.graphColor04Dark,m.graphColor10Dark,m.graphColor12Dark,m.graphColor15Dark,m.graphColor18Dark,m.graphColor17Dark,m.graphColor07Dark];class Y{_barColors;_barColorsKeyWise;_defaultColor;constructor(){this._defaultColor=m.graphColor34,this._barColors=De.slice(),this._barColorsKeyWise=new Map}static#e=new Y;getBarColor(a){const o=Y.instance();return o._barColorsKeyWise.has(a)||(o._barColors.length===0&&(o._barColors=De.slice()),o._barColorsKeyWise.set(a,o._barColors.shift()??o._defaultColor)),o._barColorsKeyWise.get(a)}shouldUpdate(a){const o=Y.instance(),n=Array.from(o._barColorsKeyWise.keys()).sort();return!Fe(n,a)}static init(){return this.#e=new Y,this.#e}static instance(){return this.#e}}const Kt=Y.instance(),Ht=(e,a,o)=>{const n=[],r={};let l,i=!1;if(o!=null&&o.accountGroups.length!=0?o.accountGroups.forEach(u=>{const s=I(u.accountGroupName,"actual",u),c=b(u.accountGroupName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.accountGroupName,"actual"))}):o!=null&&o.accounts.length!=0&&(i=!0,o.accounts.forEach(u=>{const s=I(u.account.accountName,"actual",u.account.balancesInTimeframe),c=b(u.account.accountName,"actual");r[c]=s,n.push(c),l==null&&s.length>0&&(l=b(u.account.accountName,"actual"))})),o!=null&&o.accountGroups.length===0&&o.accounts.length===0){const u=S.getLocalizedStrings().chartCard.total,s=I(u,"actual",o);if(s.length!==0){const c=b(u,"actual");r[c]=s,l=c,n.push(c)}}return a==="forecast_mode"&&Object.assign(r,Yt(n,o)),l!=null?J(e,n,l,r,i):void 0},Yt=(e,a)=>{const o={};let n;if(a!=null&&a.accountGroups.length!=0?a.accountGroups.forEach(r=>{const l=I(r.accountGroupName,"forecast",r),i=b(r.accountGroupName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.accountGroupName,"forecast"))}):a!=null&&a.accounts.length!=0&&a.accounts.forEach(r=>{const l=I(r.account.accountName,"forecast",r.account.balancesInTimeframe),i=b(r.account.accountName,"forecast");o[i]=l,e.push(i),n==null&&l.length>0&&(n=b(r.account.accountName,"forecast"))}),a!=null&&a.accountGroups.length===0&&a.accounts.length===0){const r=S.getLocalizedStrings().chartCard.total,l=I(r,"forecast",a);if(l.length!==0){const i=b(r,"forecast");o[i]=l,n=i,e.push(i)}}return o},qt=f.div`
196
196
  width: ${e=>e.width}px;
197
197
  height: ${e=>e.height}px;
198
- `,Xt=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:4,stroke:n,strokeWidth:2,fill:r})},Ut=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:5,stroke:r,strokeWidth:2,fill:n})};function La({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=z.useRef(!1),[C,h]=z.useState(Kt),[d,y]=z.useState(void 0),j=V(),_=z.useRef([]);z.useEffect(()=>{c.current=!0},[]),z.useEffect(()=>{C.shouldUpdate(_.current)===!0&&h(Y.init())},[]),z.useEffect(()=>{let p=[];if(e.reportId==="operating_expenses"){const g=e.sections.expenses;g.accountGroups.length===0&&g.accounts.length===0?p.push(S.getLocalizedStrings().chartCard.total):p=g.accountGroups.length!=0?g.accountGroups.map(L=>L.accountGroupName).sort():g.accounts.map(L=>L.account).map(L=>L.accountName).sort()}else p=e.sections.expenses.classes.map(g=>g.class.className).sort();_.current=p},[e,C]);const w=z.useMemo(()=>e.reportId==="operating_expenses"?Ht(e.firstMonthOfFY,u,e.sections.expenses):Ft(e.firstMonthOfFY,e.sections.expenses),[e,u]),$=z.useCallback(()=>{const p=[];return w?.orderedKeys.forEach(g=>{const L=!c.current;g.endsWith("_forecast")?p.push((D=>t.jsx(pe,{name:D,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx(Xt,{}),activeDot:t.jsx(Ut,{}),dataKey:v=>{const B=v.record;let P,O;for(O in B)if(O.endsWith("_forecast")){const G=B[O].amount;G!=null&&(P==null?P={...G}:P.amount+=G.amount)}return P?.amount},stroke:j.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},D))(g)):p.push(((D,v)=>t.jsx(oe,{name:D,animationDuration:v?500:void 0,style:{cursor:"pointer"},dataKey:B=>{const P=B.record;return(P[D]!=null&&P[D].amount!=null?P[D].amount:void 0)?.amount??0},stackId:"a",fill:C.getBarColor(N(D)),onMouseEnter:()=>{d!==D&&y(D)},onMouseLeave:()=>{d!=null&&y(void 0)}},D))(g,L))}),p},[w]),k=({active:p,payload:g})=>g?.find(L=>L.name===d)!=null&&d!=null&&p===!0?t.jsx(Vt,{active:p,payload:g,mode:u,barName:d}):null;return w==null?null:t.jsx(Jt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:$(),customToolTipContent:t.jsx(k,{}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Jt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=V(),h=te(e),d=e.timeseries,y=d.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const L=ae(g,y,r.numberOfPeriods),D=L[1]===void 0?y.length-1:y.indexOf(L[1]),v={...r,thisPeriod:{startDate:d[D].startDate,endDate:d[D].endDate}};c?.(d[p],a,v)},w=s?(l-60)/T.operating_expenses*(T.operating_expenses-e.recordByTimeseries.length):20;return t.jsx(qt,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(me,{width:k,height:$,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,h)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeWidth:(k-60)/T.operating_expenses,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},Qt=f.div`
198
+ `,Ut=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:4,stroke:n,strokeWidth:2,fill:r})},Xt=e=>{const{cx:a,cy:o,fill:n,stroke:r,value:l}=e;return l==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:a,cy:o,r:5,stroke:r,strokeWidth:2,fill:n})};function Da({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=z.useRef(!1),[C,h]=z.useState(Kt),[d,y]=z.useState(void 0),j=F(),_=z.useRef([]);z.useEffect(()=>{c.current=!0},[]),z.useEffect(()=>{C.shouldUpdate(_.current)===!0&&h(Y.init())},[]),z.useEffect(()=>{let p=[];if(e.reportId==="operating_expenses"){const g=e.sections.expenses;g.accountGroups.length===0&&g.accounts.length===0?p.push(S.getLocalizedStrings().chartCard.total):p=g.accountGroups.length!=0?g.accountGroups.map(D=>D.accountGroupName).sort():g.accounts.map(D=>D.account).map(D=>D.accountName).sort()}else p=e.sections.expenses.classes.map(g=>g.class.className).sort();_.current=p},[e,C]);const w=z.useMemo(()=>e.reportId==="operating_expenses"?Ht(e.firstMonthOfFY,u,e.sections.expenses):Vt(e.firstMonthOfFY,e.sections.expenses),[e,u]),$=z.useCallback(()=>{const p=[];return w?.orderedKeys.forEach(g=>{const D=!c.current;g.endsWith("_forecast")?p.push((L=>t.jsx(pe,{name:L,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx(Ut,{}),activeDot:t.jsx(Xt,{}),dataKey:v=>{const B=v.record;let P,O;for(O in B)if(O.endsWith("_forecast")){const G=B[O].amount;G!=null&&(P==null?P={...G}:P.amount+=G.amount)}return P?.amount},stroke:j.colors.grey1,strokeDasharray:"3 3",strokeWidth:1.5},L))(g)):p.push(((L,v)=>t.jsx(oe,{name:L,animationDuration:v?500:void 0,style:{cursor:"pointer"},dataKey:B=>{const P=B.record;return(P[L]!=null&&P[L].amount!=null?P[L].amount:void 0)?.amount??0},stackId:"a",fill:C.getBarColor(T(L)),onMouseEnter:()=>{d!==L&&y(L)},onMouseLeave:()=>{d!=null&&y(void 0)}},L))(g,D))}),p},[w]),k=({active:p,payload:g})=>g?.find(D=>D.name===d)!=null&&d!=null&&p===!0?t.jsx(Ft,{active:p,payload:g,mode:u,barName:d}):null;return w==null?null:t.jsx(Jt,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:$(),customToolTipContent:t.jsx(k,{}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const Jt=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=F(),h=te(e),d=e.timeseries,y=d.map($=>$.label),j=u!==!1,_=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const p=$.activeTooltipIndex,g=k.payload.timeLabel.label;if(r==null)return;const D=ae(g,y,r.numberOfPeriods),L=D[1]===void 0?y.length-1:y.indexOf(D[1]),v={...r,thisPeriod:{startDate:d[L].startDate,endDate:d[L].endDate}};c?.(d[p],a,v)},w=s?(l-60)/N.operating_expenses*(N.operating_expenses-e.recordByTimeseries.length):20;return t.jsx(qt,{width:l,height:i,children:t.jsx(Q,{children:({height:$,width:k})=>t.jsxs(me,{width:k,height:$,stackOffset:"sign",data:e.recordByTimeseries,barCategoryGap:"25%",maxBarSize:s?E[10]:30,margin:{top:5,right:w,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},onClick:_,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:C.colors.grey3}),t.jsx(ne,{dataKey:p=>p.timeLabel.label,type:"category",axisLine:{stroke:C.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:C.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:p=>Z("0,0.[00]a",p,h)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!j&&{stroke:C.colors.background,strokeWidth:(k-60)/N.operating_expenses,fill:C.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o]})})})},Qt=f.div`
199
199
  display: flex;
200
200
  `,Zt=f.div`
201
201
  display: flex;
@@ -256,14 +256,14 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
256
256
  text-align: right;
257
257
  `,Se=f(K)`
258
258
  text-align: right;
259
- `,U=f(K)`
259
+ `,X=f(K)`
260
260
  text-align: right;
261
261
  flex: 1;
262
262
  color: ${e=>e.isChange!=null&&e.isChange===!0?m.important:null};
263
263
  `,Be=f(K)`
264
264
  display: flex;
265
265
  flex-direction: column;
266
- `,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((y,j)=>{const _=b(N(y),"forecast");if(j.record[_]==null)return;const w=j.record[y].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[N(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[N(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:F("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(U,{children:t.jsxs(Be,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ze,{children:a.percent!=null?F("0,0.0%",a.percent):null})]})}),t.jsx(U,{children:t.jsxs(Be,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ze,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?F("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(U,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(U,{children:"-"}),a.forecast!=null?t.jsx(U,{isChange:!0,children:F("0,0.0%",a.forecast.percent)}):t.jsx(U,{children:"-"})]},a.barName+o)),sa=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},ia=({barLabelsWithValues:e})=>t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(ta,{}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(he,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",sa(e)]}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(aa,{children:[Re(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Re(e.slice(-1))]})]}),ua=({barLabelsWithValues:e})=>t.jsx(Qt,{children:t.jsxs(oa,{children:[Pe(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Pe(e.slice(-1))]})}),ha=ee.memo(e=>{const a=ca({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(ia,{barLabelsWithValues:a}):t.jsx(ua,{barLabelsWithValues:a})})}),Oe=(e,a,o,n,r,l)=>{let i=[],u=[],s=[];n!=null&&n.balances.length>0&&(i=A("income","actual",n)),r!=null&&r.balances.length>0&&(u=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(s=re("gross_margin","actual",l));const c=b("income","actual"),C=b("cogs","actual"),h=b("gross_margin","actual"),d=i.length>0?c:u.length>0?C:h,y={};return y[c]=i,y[C]=u,y[h]=s,o==="forecast_mode"&&Object.assign(y,da(n,r,l)),d!=null?J(e,a,d,y):void 0},da=(e,a,o)=>{let n=[],r=[],l=[];e!=null&&e.balances.length>0&&(n=A("income","forecast",e)),a!=null&&a.balances.length>0&&(r=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(l=re("gross_margin","forecast",o));const i=b("income","forecast"),u=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[u]=r,c[s]=l,c},ga=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],pa=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],ma=f.div`
266
+ `,ze=f(K)``,ca=({active:e,payload:a,mode:o})=>{const n=[];let r={amount:0,currencyCode:""},l={amount:0,currencyCode:""};const i=b("gross_margin","actual");return a?.forEach(u=>{const s=u.name;if(e===!0){const c=u.payload,C=u.color,h=s!=null&&c.record[s]!=null?c.record[s].amount:void 0;let d;s.includes("forecast")!==!0&&(o==="forecast_mode"&&(d=c.record[s]!=null?((y,j)=>{const _=b(T(y),"forecast");if(j.record[_]==null)return;const w=j.record[y].amount,$=j.record[_].amount;return{value:$,change:{...w,amount:Math.floor(100*(w.amount-$.amount)/100)},percent:$.amount!==0?Math.floor((w.amount-$.amount)/$.amount*100)/100:void 0,forecastPercent:j.record[_].percentValue}})(s,c):void 0),s===i?(h!=null&&(r.currencyCode===""?r={...h}:r.amount=r.amount+h.amount),d!=null&&(l.currencyCode===""?l={...d.value}:l.amount=l.amount+d.value.amount),n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,forecast:d,percent:c.record[s]!=null?c.record[s].percentValue??0:0,color:C})):n.push({barName:S.getLocalizedStrings().chartCard.revenue[T(s)],actual:h,color:C,forecast:d}))}}),n},Pe=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(la,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsxs(na,{children:[t.jsx(Se,{children:`${W(a.actual)}`}),a.percent!=null?t.jsx(Se,{children:V("0,0.0%",a.percent)}):null]})]},a.barName+o)),Re=e=>e.map((a,o)=>t.jsxs(Me,{color:a.color,showPercent:a.percent!=null,children:[t.jsxs(ra,{children:[t.jsx(Ae,{color:a.color}),`${a.barName}:`]}),t.jsx(X,{children:t.jsxs(Be,{children:[a.actual!=null?`${W(a.actual)}`:"-",t.jsx(ze,{children:a.percent!=null?V("0,0.0%",a.percent):null})]})}),t.jsx(X,{children:t.jsxs(Be,{children:[a.forecast!=null?`${W(a.forecast.value)}`:"-",t.jsx(ze,{children:a.forecast!=null&&a.forecast.forecastPercent!=null?V("0,0.0%",a.forecast.forecastPercent):null})]})}),a.forecast!=null?t.jsx(X,{isChange:!0,children:`${W(a.forecast.change)}`}):t.jsx(X,{children:"-"}),a.forecast!=null?t.jsx(X,{isChange:!0,children:V("0,0.0%",a.forecast.percent)}):t.jsx(X,{children:"-"})]},a.barName+o)),sa=e=>{if(e.length>0){for(const a of e)if(a.actual!=null)return a.actual.currencySymbol}return""},ia=({barLabelsWithValues:e})=>t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(ta,{}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.actual}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.forecast}),t.jsxs(he,{children:[S.getLocalizedStrings().chartCard.tooltip.change," ",sa(e)]}),t.jsx(he,{children:S.getLocalizedStrings().chartCard.tooltip.change_percent})]}),t.jsxs(aa,{children:[Re(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Re(e.slice(-1))]})]}),ua=({barLabelsWithValues:e})=>t.jsx(Qt,{children:t.jsxs(oa,{children:[Pe(e.slice(0,e.length-1)),e.length?t.jsx(Ie,{}):null,Pe(e.slice(-1))]})}),ha=ee.memo(e=>{const a=ca({...e});return a.length===0?null:t.jsx(t.Fragment,{children:e.mode==="forecast_mode"?t.jsx(ia,{barLabelsWithValues:a}):t.jsx(ua,{barLabelsWithValues:a})})}),Oe=(e,a,o,n,r,l)=>{let i=[],u=[],s=[];n!=null&&n.balances.length>0&&(i=A("income","actual",n)),r!=null&&r.balances.length>0&&(u=A("cogs","actual",r)),l!=null&&l.balances.length>0&&(s=re("gross_margin","actual",l));const c=b("income","actual"),C=b("cogs","actual"),h=b("gross_margin","actual"),d=i.length>0?c:u.length>0?C:h,y={};return y[c]=i,y[C]=u,y[h]=s,o==="forecast_mode"&&Object.assign(y,da(n,r,l)),d!=null?J(e,a,d,y):void 0},da=(e,a,o)=>{let n=[],r=[],l=[];e!=null&&e.balances.length>0&&(n=A("income","forecast",e)),a!=null&&a.balances.length>0&&(r=A("cogs","forecast",a)),o!=null&&o.balances.length>0&&(l=re("gross_margin","forecast",o));const i=b("income","forecast"),u=b("cogs","forecast"),s=b("gross_margin","forecast"),c={};return c[i]=n,c[u]=r,c[s]=l,c},ga=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual")],pa=[b("income","actual"),b("cogs","actual"),b("gross_margin","actual"),b("income","forecast"),b("cogs","forecast"),b("gross_margin","forecast")],ma=f.div`
267
267
  width: ${e=>e.width}px;
268
268
  height: ${e=>e.height}px;
269
269
 
@@ -277,4 +277,4 @@ import{y as V,O as S,V as t,e as m,S as Ve,an as Q,j as E,w as M,ag as Z,X as de
277
277
  margin-left: ${e=>q.legendLabelMarginLeft.valuePx(e.windowSize)};
278
278
  margin-right: ${e=>q.legendLabelMarginRight.valuePx(e.windowSize)};
279
279
  color: ${e=>e.theme.colors.primary};
280
- `;function Sa({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=V(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?pa:ga,_=(p,g=c.colors.graphColor28)=>p<y.length?y[p]:g,w=e.reportId==="revenue"?Oe(e.firstMonthOfFY,j,u,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Oe(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),$=p=>{const{cx:g,cy:L,fill:D,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:L,r:4,stroke:D,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:L,fill:D,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:L,r:5,stroke:v,strokeWidth:2,fill:D})};return w==null?null:t.jsx(fa,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,L)=>{const D=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx($,{}),activeDot:t.jsx(k,{}),dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},stroke:_(B),strokeDasharray:"3 3",strokeWidth:1.5},v))(g,L)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,L,D))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(ha,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const fa=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=V(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,L=p.payload.timeLabel.label;if(r==null)return;const D=ae(L,j,r.numberOfPeriods),v=D[1]===void 0?j.length-1:j.indexOf(D[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/T.revenue*(T.revenue-e.recordByTimeseries.length):20;return t.jsx(ma,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/T.revenue,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(xa,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.revenue[g]:S.getLocalizedStrings().chartCard.revenue[N(g)]})}):null]})})})};export{$a as G,Da as H,_a as P,Sa as X,La as Y};
280
+ `;function Sa({selectedRangeReport:e,timeframe:a,highlightedRange:o,width:n,height:r,showBarHoverBackground:l,isDetailPage:i,mode:u,onCOABalancesRangeChanged:s}){const c=F(),C=z.useRef(!1);z.useEffect(()=>{C.current=!0},[]);const h=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=u==="forecast_mode"?d:h,j=u==="forecast_mode"?pa:ga,_=(p,g=c.colors.graphColor28)=>p<y.length?y[p]:g,w=e.reportId==="revenue"?Oe(e.firstMonthOfFY,j,u,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Oe(e.firstMonthOfFY,j,u,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),$=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:4,stroke:L,strokeWidth:2,fill:v})},k=p=>{const{cx:g,cy:D,fill:L,stroke:v,value:B}=p;return B==null?t.jsx(t.Fragment,{}):t.jsx("circle",{cx:g,cy:D,r:5,stroke:v,strokeWidth:2,fill:L})};return w==null?null:t.jsx(fa,{chartData:w,timeframe:a,showBarHoverBackground:l,barElements:(()=>{const p=[];return j.forEach((g,D)=>{const L=i===!0&&!C.current;g.endsWith("_forecast")?p.push(((v,B)=>t.jsx(pe,{name:v,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:t.jsx($,{}),activeDot:t.jsx(k,{}),dataKey:P=>{const O=P.record;return(O[v]!=null&&O[v].amount!=null?O[v].amount:void 0)?.amount},stroke:_(B),strokeDasharray:"3 3",strokeWidth:1.5},v))(g,D)):p.push(((v,B,P)=>t.jsx(oe,{name:v,animationDuration:P?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:O=>{const G=O.record;return(G[v]!=null&&G[v].amount!=null?G[v].amount:void 0)?.amount??0},fill:_(B)},v))(g,D,L))}),p})(),customToolTipContent:({active:p,payload:g})=>t.jsx(ha,{active:p,payload:g,mode:u}),width:n,height:r,onCOABalancesRangeChanged:s,highlightedRange:o,isDetailPage:i===!0})}const fa=({chartData:e,timeframe:a,barElements:o,customToolTipContent:n,highlightedRange:r,width:l,height:i,showBarHoverBackground:u,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const C=de(),h=F(),d=te(e),y=e.timeseries,j=y.map(k=>k.label),_=u!==!1,w=k=>{if(!s||k?.activePayload==null||k?.activePayload.length===0)return;const p=k.activePayload[0];if(p?.payload?.timeLabel?.label==null)return;const g=k.activeTooltipIndex,D=p.payload.timeLabel.label;if(r==null)return;const L=ae(D,j,r.numberOfPeriods),v=L[1]===void 0?j.length-1:j.indexOf(L[1]),B={...r,thisPeriod:{startDate:y[v].startDate,endDate:y[v].endDate}};c?.(y[g],a,B)},$=s?(l-60)/N.revenue*(N.revenue-e.recordByTimeseries.length):20;return t.jsx(ma,{width:l,height:i,windowSize:C,children:t.jsx(Q,{children:({height:k,width:p})=>t.jsxs(me,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?E[10]:22,barGap:s?void 0:2,margin:{top:5,right:$,left:0,bottom:E[4]},height:k,width:p,style:{display:"flex",flex:"1 1 auto"},onClick:w,children:[t.jsx(le,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:h.colors.grey3}),t.jsx(ne,{dataKey:g=>g.timeLabel.label,type:"category",axisLine:{stroke:h.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject}}),t.jsx(ce,{type:"number",axisLine:!1,tickLine:!1,tick:{color:h.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:g=>Z("0,0.[00]a",g,d)}),t.jsx(se,{wrapperStyle:{zIndex:2},cursor:!!_&&{stroke:h.colors.background,strokeWidth:(p-60)/N.revenue,fill:h.colors.background},content:n,allowEscapeViewBox:{x:!1,y:!0}}),o,s?t.jsx(xe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:x.sp0},iconSize:E[3],formatter:g=>t.jsx(xa,{windowSize:C,children:g.endsWith("_forecast")===!0?S.getLocalizedStrings().chartCard.revenue[g]:S.getLocalizedStrings().chartCard.revenue[T(g)]})}):null]})})})};export{$a as G,La as H,_a as P,Sa as X,Da as Y};
@@ -1,11 +1,11 @@
1
- import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as ie,eQ as Tt,eR as Dt,eS as It,eT as Pt,a5 as k,eU as kt,E as v,eV as Mt,eW as Be,eX as Fe,eY as Re,w as K,d2 as O,e as j,eZ as At,e_ as E,d8 as V,e$ as Bt,f0 as Ft,bo as Le,o as n,a9 as Rt,j as d,O as Lt,u as Nt,bx as zt,N as Ot,d as Et,f1 as Vt,bH as _t,l as ce,H as me,f2 as Yt,f3 as Zt,aD as Gt,n as Ut,at as Ht,f4 as Kt,D as tt,b6 as qt,C as nt,aR as Wt,f5 as Xt}from"./index-BocbTmE1.js";import{a as Y}from"./sentry-DINNQYpi.js";import{n as a}from"./mui-C_CXevf3.js";import{cp as Ne,ci as ze,bU as D,c3 as Jt,G0 as Qt,bG as re,c5 as en}from"./zeni-epic-state-a7Sj5mjO.js";import{t as tn,o as nn}from"./LowBalancePopup-C2vHKMNF-CMEceag2.js";import{S as _}from"./LabeledText-DGZ7hxY4-BBOC0Eln.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.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]="b51c070f-1855-4311-b71a-0a45c4443964",e._sentryDebugIdIdentifier="sentry-dbid-b51c070f-1855-4311-b71a-0a45c4443964")}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])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:Ve}=ln,_e=({attachment:e})=>{const[y,x]=Y.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Zt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:J,retryPayment:ct})=>{const s=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),I=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},N={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Y.useState(!1),[te,be]=Y.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Y.useEffect(()=>{(I?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),ge())},[I,Q,ge,ue,he]);const P=e.billPayInfo?.stage,z=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:z?.code=="approved"&&Z?.code?Z:z,yt=e.billPayInfo?.isRefundInitiated===!0?ut:z?.code=="approved"&&Z?.code?Z:z,ae=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,U=y.allApprovalRules.length>0,gt=Ne(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-N.amount:p.amount,i?.fee.currencyCode??ze.currencyCode,i?.fee.currencySymbol??ze.currencySymbol),f=Jt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ye(h,U,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=z?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Xt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Qt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=Y.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{H(!1),ae()},onClickAway:()=>{H(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ue,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(Ue,{windowSize:s,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(Vn,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(zn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),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(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Nn,{"data-testid":v("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:k("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(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ke,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Kt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||G==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:G.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(G.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:V({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:i.method.includes(D)&&ee!==$.currencyCode?Ve.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:Ve.transactionFee}),t.jsx(se,{children:k("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:Ne(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,U,s)}},primaryBtn:{label:Ye(h,U,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?H(!0):Ce()},style:{width:Ze(!0,C,h,U,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Zn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Yn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ye=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ze=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
1
+ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as U,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bo as Le,o as n,a9 as Rt,m as d,O as Lt,u as zt,bx as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as Ht,at as Kt,eW as Ut,D as tt,b6 as qt,C as nt,aR as Wt,eX as Qt}from"./index-BngCC-zG.js";import{a as Z}from"./sentry-CHlUi953.js";import{n as a}from"./mui-DyGc7Pg8.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-D8D2Skiq.js";import{t as tn,o as nn}from"./LowBalancePopup-1727S1ri-CiFxrWZ6.js";import{S as V}from"./LabeledText-C8Y7EOsX-BG8Z0MTH.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.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]="9412a243-7c00-40cc-988c-56048ba49a8b",e._sentryDebugIdIdentifier="sentry-dbid-9412a243-7c00-40cc-988c-56048ba49a8b")}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])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const s=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:s,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),le=st&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&K(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{dt(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{K(!1),ae()},onClickAway:()=>{K(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:s,style:lt,children:[s==="small"?t.jsxs(Pn,{windowSize:s,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:s,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),s!=="small"?t.jsx(bn,{children:t.jsx(He,{windowSize:s,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.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:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(s)?t.jsxs(Ke,{windowSize:s,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:k("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(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ue,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,s):g,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ut(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:s,children:[t.jsxs(yn,{children:[t.jsx(dn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(de,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:k("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:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(sn,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,H,s)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ge(!0,C,h,H,s)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
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
- `,Ge=a(nt)`
8
+ `,Ye=a(nt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
@@ -74,7 +74,7 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ue=a(Et)`
77
+ `,He=a(Et)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${an.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
@@ -102,10 +102,10 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
102
102
  `,jn=a(ce)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${j.brandColorGoldDark};
105
- `,Sn=a(_t)`
105
+ `,Sn=a(Vt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${j.brandColorGoldDark};
108
- `,He=a.div`
108
+ `,Ke=a.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>at.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
@@ -121,15 +121,15 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
121
121
  `,Dn=a.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ke=a(Ut)`
124
+ `,Ue=a(Ht)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,qe=a(Ht)`
128
+ `,qe=a(Kt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,We=a(zt)`
132
+ `,We=a(Nt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -152,7 +152,7 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,kn=a(Nt)`
155
+ `,kn=a(zt)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
@@ -193,12 +193,12 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Xe=a.div`
196
+ `,Qe=a.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Je=a(Gt)`
201
+ `,Xe=a(Yt)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
@@ -209,7 +209,7 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Qe=a(ce)`
212
+ `,Je=a(ce)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
@@ -226,12 +226,12 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,Nn=a.div`
229
+ `,zn=a.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
233
233
  width: 100%;
234
- `,X=a(me)`
234
+ `,Q=a(me)`
235
235
  display: flex;
236
236
  color: ${e=>e.borderColor};
237
237
  height: 20px;
@@ -247,7 +247,7 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,zn=a.div`
250
+ `,Nn=a.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
253
  `,On=a.div`
@@ -260,18 +260,18 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
260
260
  `,En=a(me)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${j.alert};
263
- `,Vn=a(Vt)`
263
+ `,_n=a(_t)`
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
- `,_n=a.div`
270
+ `,Vn=a.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Yn=a(Wt)`
274
+ `,Zn=a(Wt)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -279,7 +279,7 @@ import{X as wt,v as $t,x as u,eL as vt,eM as jt,eN as St,V as t,eO as Ct,eP as i
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Zn=a.div`
282
+ `,Gn=a.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -1,4 +1,4 @@
1
- import{X as P,V as i,E as m,o as r,a9 as B,x as d,a8 as L,N as I,d as W,e as s,l as b,c1 as D,L as R,C as S,aC as G,j as o,dV as A,aA as _,ib as F}from"./index-BocbTmE1.js";import{n as t}from"./mui-C_CXevf3.js";import{a as w}from"./sentry-DINNQYpi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="0c0cb6b6-ef38-4ce4-8184-e29407965396",e._sentryDebugIdIdentifier="sentry-dbid-0c0cb6b6-ef38-4ce4-8184-e29407965396")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},me=({title:e,description:g,reviewItems:x,showFooter:z,footerProps:{primaryButton:C,cancelButton:E,hideCancel:T},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(Q,{windowSize:l,children:i.jsx(U,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(N,{windowSize:l,children:[i.jsx(O,{children:i.jsx(X,{windowSize:l,children:e})}),i.jsx(q,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(K,{windowSize:l,children:x.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":m("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:V(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:E,showCancel:!T}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
1
+ import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-BngCC-zG.js";import{n as t}from"./mui-DyGc7Pg8.js";import{a as w}from"./sentry-CHlUi953.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -8,39 +8,39 @@ import{X as P,V as i,E as m,o as r,a9 as B,x as d,a8 as L,N as I,d as W,e as s,l
8
8
  flex-direction: column;
9
9
  margin-top: ${e=>a.containerMarginTop.valuePx(e.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
- `,N=t.div`
11
+ `,V=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
15
  z-index: 1;
16
16
  padding-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
17
17
  padding-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
18
- `,O=t.div`
18
+ `,q=t.div`
19
19
  display: flex;
20
20
  align-items: center;
21
- `,X=t(W)`
21
+ `,K=t(W)`
22
22
  ${e=>`${H.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
25
25
  margin-bottom: ${e=>a.titleMarginBotom.valuePx(e.windowSize)};
26
26
  margin-right: ${e=>a.titleMarginRight.valuePx(e.windowSize)};
27
- `,q=t(b)`
27
+ `,N=t(b)`
28
28
  margin-bottom: ${e=>a.subTitleMarginBottom.valuePx(e.windowSize)};
29
29
  color: ${e=>e.isError?s.important:e.theme.colors.hero};
30
- `,K=t.div`
30
+ `,Q=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  margin-top: ${r.sp3};
34
34
  margin-left: ${e=>a.containerMarginLeft.valuePx(e.windowSize)};
35
35
  margin-right: ${e=>a.containerMarginRight.valuePx(e.windowSize)};
36
- `,Q=t.div`
36
+ `,U=t.div`
37
37
  min-height: ${e=>a.navBarHeight.valuePx(e.windowSize)};
38
38
  position: sticky;
39
39
  border-bottom: 1px solid transparent;
40
40
  z-index: 2;
41
41
  top: ${r.sp0};
42
42
  width: 100%;
43
- `,U=t.div`
43
+ `,X=t.div`
44
44
  position: relative;
45
45
  min-height: 62px;
46
46
  `,Y=t.div`
@@ -149,4 +149,4 @@ import{X as P,V as i,E as m,o as r,a9 as B,x as d,a8 as L,N as I,d as W,e as s,l
149
149
  color: ${e=>e.theme.colors.brandColorGoldDark};
150
150
  width: ${r.sp4};
151
151
  height: ${r.sp4};
152
- `;export{me as u};
152
+ `;export{xe as u};
@@ -0,0 +1 @@
1
+ import{j as e}from"./pdf-BxqSCr4b.js";import{aE as x,js as w,aF as y,bk as I,jz as p,J as F,mj as L,aG as P}from"./index-BngCC-zG.js";import"./mui-DyGc7Pg8.js";import m from"./NotFoundScreen-BOQb1xUE.js";import{a as u}from"./sentry-CHlUi953.js";import{i as R,u as b,j as T,h as V,k as O,R as U,m as f}from"./core-CVVdXRky.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-D8D2Skiq.js";import{R as j}from"./ReferralListScreen-DY8vZLmY.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./MobileAppDrawer-TF-9OTZ8.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="234753b6-19af-48c1-8b48-7e4e913ceafa",a._sentryDebugIdIdentifier="sentry-dbid-234753b6-19af-48c1-8b48-7e4e913ceafa")}catch{}})();const K=O(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(J())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=A(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(G()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(q(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(Z,{}):e.jsx(m,{})}),e.jsx(f,{path:"*",element:e.jsx(m,{})})]})}export{la as default};