@zeniai/web-cockpit-ui 1.14.11-dev → 1.14.12-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 (249) hide show
  1. package/dist/assets/ACHDetailsPage-BQBpkHfF-5WBNzAYc.js +21 -0
  2. package/dist/assets/{AIPerformancePage-pQP8EI_S-DOdJRYuT.js → AIPerformancePage-C459GJxs-fTjD1LWj.js} +49 -49
  3. package/dist/assets/{AccountInfoPage-DxAa9GD7-BDuKQBCM.js → AccountInfoPage-DWqJj9l6-B6y2ESMc.js} +5 -5
  4. package/dist/assets/{AccountInfoPageContent-tNTpX5pA-DZsnTAw6.js → AccountInfoPageContent-Ca328DM4-QVdlDPGz.js} +17 -17
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-D6InUwmP.js → AccountReconDetailsDrawerPage-BqIo4mya-DvoWQJ-A.js} +13 -13
  6. package/dist/assets/{AccountRow-BpBK8mVs-D3-rIOZV.js → AccountRow-Bk3xWobY-C3BJwyhC.js} +33 -33
  7. package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-BX2c8K6j.js → AccountsPromoCardStack-Co90dxxm-D8gTFju4.js} +35 -35
  8. package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-fAvU3zAk.js → AddAddressForCardDrawer-XNGsKMvs-D3xdyQox.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-Dsw1GIbh-C-TkI1oG.js → AddToWalletPage-BiQWQXvz-Db3v8rAa.js} +26 -26
  10. package/dist/assets/{AgingReportsPage-COC3iACh-ihUmY_za.js → AgingReportsPage-ClR6ctjm-BIaxAdn5.js} +8 -8
  11. package/dist/assets/{AllUserItems-DKoDASKq-BK1HOlxO.js → AllUserItems-RFWkNfw--KR4FkXJv.js} +10 -10
  12. package/dist/assets/{ApAgingDetailPage-BKAJMyRm-D4FAXjMB.js → ApAgingDetailPage-F-pd4-We-CpSc-V5Y.js} +2 -2
  13. package/dist/assets/{AppBasePage-6fgXwSBv-PwB9ZP6-.js → AppBasePage-B9-FGKn--2PuIe5q1.js} +6 -6
  14. package/dist/assets/{AppDrawerContent-DnYw60Xv-DEM6VfAx.js → AppDrawerContent-C6P8rk3y-D4vfBiW2.js} +19 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-BbXFDQ_-.js → ApprovalRulesSettingsPage-CPNEEGTF-D1-OmKoO.js} +5 -5
  16. package/dist/assets/{ArAgingChart-CNghm3pm-Dc-aS72N.js → ArAgingChart-D9qmMVoC-xX4UMVP_.js} +6 -6
  17. package/dist/assets/ArAgingDetailPage-DMuZM6P_-BndjVsLP.js +46 -0
  18. package/dist/assets/{AttachmentView-Bp678glv-Bz7vnOLP.js → AttachmentView-B2ZOED0q-BJNMGobn.js} +7 -7
  19. package/dist/assets/{BankAccountSection-DCHOrv1O-CHEMQ8hk.js → BankAccountSection-C8G4yj75-DuLz4nvb.js} +5 -5
  20. package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-D6cSyNpo.js → BankAccountWarningSection-CWXa-X6f-DfZDDQCz.js} +11 -11
  21. package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Cw1WYpDv.js → BankConnectionsSettingsPage-B5IQ5w6f-iwQpc5z9.js} +11 -11
  22. package/dist/assets/{BillDetailPage-D5FyJKQZ-F16Zazrc.js → BillDetailPage-B-PMkZ44-BthpQ-iy.js} +8 -8
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-dVTzDWJq.js → BillPayApprovalRuleDetailPage-CdLKENJ--UWgYicIp.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-GKQByTVv.js → BillPayApprovalRulesPage-BueljBn0-Bfh6hqvA.js} +10 -10
  25. package/dist/assets/{BillPayPromoPage-BhbcKNjD-Dc50ymZA.js → BillPayPromoPage-WXntEliq-BogAEb_N.js} +8 -8
  26. package/dist/assets/{BillPaySetUpPage-DFkYsW2C-ejvkAWu2.js → BillPaySetUpPage-By7rYetf-BUuU8LQN.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-DQ-GDRoK-DLGZh1Tj.js → BillingSettingsPage-D-XtlyVU-DEnOD97y.js} +8 -8
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-Ds5BqJGh.js → BillsBulkReviewDrawerPage-P8siJ8lO-Bp2c_793.js} +1 -1
  29. package/dist/assets/{BoxItem-a04JWA45-DJp9lW-u.js → BoxItem-Bcy7IYuZ-DautVok3.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-OqegkAuZ.js → BusinessVerificationPage-BoSLJbyU-BkzAyvoH.js} +12 -12
  31. package/dist/assets/{CardNumberSubText-B5ejHnml-CLY9anWS.js → CardNumberSubText-VsMOF0Xv-C9_EOnyV.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DX_XsNhS-BMZOysYo.js → CashbackDetailPage-DNbRs50r--xwa0kLc.js} +25 -25
  33. package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-D_fwMr5K.js → ChargeCardDetailPage-BSDS8Kqb-CvvgjUiJ.js} +57 -57
  34. package/dist/assets/{ChargeCardListPage-CglfbPqr-D7muWz7z.js → ChargeCardListPage-Bzr8qMC0-COqTxfBS.js} +20 -20
  35. package/dist/assets/{ChargeCardListTable-BxAeA97m-C-BUBRdZ.js → ChargeCardListTable-CTp6TFBR-DoKiJmmd.js} +41 -41
  36. package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-D4zqkYsh.js → ChargeCardPromoPage-dIg8OIlx-XWvzHV4l.js} +31 -31
  37. package/dist/assets/{ChargeCardSetupPage-Bq953HsV-BJMN-xIh.js → ChargeCardSetupPage-B1wzJjgH-CBaIBhaa.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-QS7pzZOg.js → ChargeCardStatementsPage-CePfbLPp-w444eaXi.js} +10 -10
  39. package/dist/assets/ChargeCardUtils-DC2v2EHU-BFBTkwUP.js +1 -0
  40. package/dist/assets/{ChaseOverlay-LcVAgdoT-D1Jb2EIj.js → ChaseOverlay-B-Sx71yo-C-AskbE-.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-uABg3PMN-BZAFC99F.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-CKmPwC_x-DvM2BIk1.js → CollapsableReportTable-mEqm05fp-D6CvF14n.js} +57 -57
  43. package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-grOU-fb_.js → CompanyOfficerDetailsSection-BzYsDrr2-CsOvplVx.js} +28 -28
  44. package/dist/assets/{CompanyPassportCard-ElwK6uOD-uKq6JSMM.js → CompanyPassportCard-Ct6tCZqT-Ck2ikxpq.js} +8 -8
  45. package/dist/assets/{CompanyPassportPage-B6mGjsJZ-QyXjNlOK.js → CompanyPassportPage-D9NQ4bXl-sWP3h2Qt.js} +7 -7
  46. package/dist/assets/CompleteProfile-CN_hAW-2-Cag0kPdJ.js +36 -0
  47. package/dist/assets/{ConfettiBurst-CjhkW_Be-tE_S1zJ3.js → ConfettiBurst-DqSwVGBC-DTqMp1Lq.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-B7H_LsnK.js → CreateOrEditVendorPage-D27A1926-Dhm0ZELF.js} +15 -15
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-Rj5ttUPd.js → CreditCardPaymentDrawerPage-BI37dSwx-62q04GEy.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-IZFYMes7.js → CreditCardPaymentPlgSection-CAsn4Ae6-BjGYp9i3.js} +12 -12
  51. package/dist/assets/CurrencySelectField-5uG4FfJ9-BDdfhX8u.js +139 -0
  52. package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-BQMewqvn.js → CustomerOnboardingActivationPage-Be-GrAiK-C2g5Nk62.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-DvSZ9aFU.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-BtaF5eWl.js → CustomerOnboardingDetailPageSkeleton-DhGp71bj-DHW9XHps.js} +13 -13
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-CYF4Do82.js → CustomerOnboardingNoStepsPage-CdOGTNXC-k7L31nJ8.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-BLw-RmQq.js → CustomerOnboardingPage-ClPsywa3-CFzRDdjv.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-CHyEWXN_.js → CustomerOnboardingProductSuitePage-pnHglqXq-BoMrKg2u.js} +8 -8
  58. package/dist/assets/{Dashboard-CQoNm84Z-CGt51QX0.js → Dashboard-avtbjFLf-DvcVqu7f.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-D4BoWobJ-DB51j3mA.js → DashboardReportPage-CqJAu5WP-DxhW1pos.js} +13 -13
  60. package/dist/assets/{DepositAccTransactionItem-C6_OrohL-DcY3deV_.js → DepositAccTransactionItem-Da0GWYei-DZh1aBKG.js} +6 -6
  61. package/dist/assets/DepositAccTransactionListPage-Db90ITIq-B9ylpAgD.js +66 -0
  62. package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-DBmSgZgH.js → DocumentSecurityBanner-Bxg3ctYZ-hOyP50NE.js} +2 -2
  63. package/dist/assets/DomesticWireDetailsPage-DGcVKriv-H9iyT4_J.js +21 -0
  64. package/dist/assets/{DownloadOverlay-BoIyiJ9R-BzDhGwzl.js → DownloadOverlay-BdGiqnp7-B--FKXJU.js} +25 -25
  65. package/dist/assets/{DrawerPage-C_kxrXIc-CYxcqhiW.js → DrawerPage-DCfm1BVs-BnE3GKCd.js} +5 -5
  66. package/dist/assets/EditPeoplePage-CBPmCcoG-Dv-eYAXF.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-D3CWZXPH.js → EditReimbursementDetailPage-C-nYgUua-657t3H5o.js} +68 -68
  68. package/dist/assets/{EntityDetailPage-Cqkhzu9O-CQdpKsUY.js → EntityDetailPage-4HX_rHUf-CQIILZS8.js} +3 -3
  69. package/dist/assets/{EntitySummarySection-Dqgxknt6-CcorkWsq.js → EntitySummarySection-C9VeOBpT-CyjmmYl7.js} +3 -3
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-IlYsieJj.js → ExpenseAutomationOverviewPage-8jTkscWa-CSL-Ff0N.js} +22 -22
  71. package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-b76Jf9fI.js → ExpenseAutomationPage-D1wcc9GW-BnW2S6f_.js} +84 -84
  72. package/dist/assets/{ExpressPayPage-DBWJERD9-DkcgiQRL.js → ExpressPayPage-Cj6cvMwQ-B3xsIydY.js} +12 -12
  73. package/dist/assets/FeaturePreviewPage-BBkfKvIu-BO0Ix0ac.js +11 -0
  74. package/dist/assets/{FollowStepsSection-BrJecw-e-CQdWJjWJ.js → FollowStepsSection-DjfnVH8N-DC94T1ld.js} +13 -13
  75. package/dist/assets/{GlobalReviewListPage-Duoi9mD_-Der2mhxZ.js → GlobalReviewListPage-CEOzc0We-Dzo-H4fB.js} +8 -8
  76. package/dist/assets/{HelpButton-C1djo0zO-BW6NBTNW.js → HelpButton-BdhMFvtG-BQoUMZgM.js} +5 -5
  77. package/dist/assets/{InformationCardStack-BE5eaq-x-7TOfUxxA.js → InformationCardStack-DFOumIBr-DYp-Y1-6.js} +5 -5
  78. package/dist/assets/InsightsCardStack-rByhzgji-C_39DSFU.js +79 -0
  79. package/dist/assets/{InsightsSection-nzKuS0T9-CcXyZxZ8.js → InsightsSection-jnWJ877y-B7dup9Hm.js} +5 -5
  80. package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-ClhfPkcQ.js → IntegrationsSettingsPage-DF-jcHzr-CezJdw9j.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-DWJjZuCw.js → InternationalWireSwiftDetailsPage-BFMqW1oQ-DTpqOglD.js} +15 -15
  82. package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-Cl81RiNZ.js → InternationalWireVerificationPage-Cq7swzrt-CjhvwwKs.js} +17 -17
  83. package/dist/assets/{InviteFormPage-BNdBP-Mm-BdFbqKES.js → InviteFormPage-DXl2sEn9-BCdDtuKU.js} +25 -25
  84. package/dist/assets/{InvitePageListView-ChzmK7Rt-D29gFXI6.js → InvitePageListView-B5fRPcOg-CSGuFFZf.js} +51 -51
  85. package/dist/assets/InvitePeoplePage-DvGON1va-CZwxU8KK.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-B8o-l15n-Da7WgU-0.js → InvoiceUploadSection-opkVsXZH-CITMTH3B.js} +41 -41
  87. package/dist/assets/{IssueChargeCardPage-BW0cXQqh-BmbmlACe.js → IssueChargeCardPage-CZU1qbHO-Bk0rsSk1.js} +27 -27
  88. package/dist/assets/{LabeledAddressValue-BioQUVCV-fsudcvfQ.js → LabeledAddressValue-CCd3y8zQ-iyUnGXzQ.js} +1 -1
  89. package/dist/assets/LabeledAddressValueField-XuFlx-oK-BwOm2urL.js +45 -0
  90. package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-jRPtCjyI.js → LabeledControlledCheckBoxField-CCQn4-_S-DGlsZAic.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-0SJcSq-w.js → LabeledCreatableSingleSelectField-uQKngCdt-D9uymIz_.js} +3 -3
  92. package/dist/assets/LabeledDocumentField-TFmz23mS-VXex-CEg.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-TYwr2dWi.js → LabeledDropDownFormattedTextField-BrUNxsKy-CYES9RG5.js} +7 -7
  94. package/dist/assets/{LabeledText-QrjXGWwJ-Csl1kB9E.js → LabeledText-ByqI7uq0-D8BGktgf.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-CRz-dhMo.js → LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0--1MhGerh.js} +17 -17
  96. package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-ChSwcxj4.js → LabeledZeniRolesDropDownField-DZL4GZtE-BNEsxcqO.js} +11 -11
  97. package/dist/assets/{LinkJETransactionPage-BF6-BdWE-DO5i53f_.js → LinkJETransactionPage-CJlBllrr-ETCcWTop.js} +8 -8
  98. package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-CO5moJjL.js → LowBalancePopup-BEvuAR0Z-Kia1x8I_.js} +5 -5
  99. package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-D5AHGKn1.js → MagicLinkACHDetailsPage-DloX1GWg-CtJ6plz2.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-BBsb3LWh.js → MagicLinkDomesticWireDetailsPage-DewjvM4v-DF6PmcFA.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-pHczJsmC.js → MagicLinkInternationalWireDetailsPage-CVhazlxQ-B8pL68gZ.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-dxBSlbub-ClJhOXum.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-crT0_cjI.js → MagicLinkTitleSection-d1edBt3w-BD8o8cwj.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-CsK09X11-D22aceHc.js +21 -0
  105. package/dist/assets/{MeetingCalenderPopup-COpKcBhx-C1b7HyPI.js → MeetingCalenderPopup-MtSyJ1AS-Dyh9nazJ.js} +1 -1
  106. package/dist/assets/{Menu-frAXxk4e-ChxiZJil.js → Menu-BV79l8xf-CtLHaQYM.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-CIbylXW-.js → MyBankConnectionsSettingsPage-D-xDtURG-CDD3juRJ.js} +13 -13
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-DyLbYr-a.js → MyPendingActivationChargeCardListPage-VEhml0PW-BbFLOnd_.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BmMskLyK-BRbEv4qP.js → MyProfileSettingsPage-DPJ0fJdQ-HGd1_8K1.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-ByLynfu6-DkhTP5l5.js → NavBarWithPicker-CuJe05iJ-CEMXAgd3.js} +6 -6
  111. package/dist/assets/{NavigationArrow-D5-YpdfE-BYBuxDoB.js → NavigationArrow-BwXNdvOg-DB9DQksO.js} +5 -5
  112. package/dist/assets/{NavigationDots-MA8SVlUT-BNaROjbH.js → NavigationDots-BQfoX9p0-BJMutEpY.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-teWW5fR7.js → NewGlobalMerchantPage-IeE86L-X-BtZvif-9.js} +21 -21
  114. package/dist/assets/{NoDataChart-BdzVnx59-Zwl7GRg0.js → NoDataChart-C9yfE8vY-CyPn8PGK.js} +1 -1
  115. package/dist/assets/{NoDataTable-B4J5Ou18-BjRs61V8.js → NoDataTable-DF9QNT4a-B8P0Ebsk.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BeAXQOme-HRJfFoZt.js → NotFoundPage-DSaizJve-BYRmXif6.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CRZRet42-B4tscA88.js → NotificationSettingsPage-DeAeFHmj-AgKU0y_T.js} +13 -13
  118. package/dist/assets/{NotificationsListConfig-CkSDaMij-aj-ed0aI.js → NotificationsListConfig-DuzDckh--DIE08d6S.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Dqe96fU8-DGXpNPVr.js → NotificationsPage-B7ZC7ezP-CzbzVwOm.js} +32 -32
  120. package/dist/assets/{OpExByVendorPage-CXtkN87m-D6OjOLM9.js → OpExByVendorPage-DzODetHf-C_mWOIaM.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-B2CxgCWd.js → OverlayContainerPage-GWXnlbZH-Bzp-AyLZ.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DTOqkynU-9NyuYxx1.js → PandLWithForecastPage-FEi5USqF-Dh26joVS.js} +8 -8
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-C9tSnFrF.js → PaymentAccountSetupBillingAddressSection-BbL4x5pQ-D9T2pc9O.js} +11 -11
  124. package/dist/assets/{PeoplePage-D-j114xg-s5ngzrYI.js → PeoplePage-B35T31YZ-DeAagHOG.js} +1 -1
  125. package/dist/assets/PortfolioAllocationFormPage-D3FP_MRr-DXcXxyUV.js +207 -0
  126. package/dist/assets/{PortfolioDetails-Bbfo0XDo-F8wi_TkN.js → PortfolioDetails-Dtz3YEPu-CLhPVP_M.js} +29 -29
  127. package/dist/assets/{ProductsCarousel-COUx0Xdj-Bk25WJ5z.js → ProductsCarousel-DIlEuuqg-DDOJtugP.js} +6 -6
  128. package/dist/assets/{PromoBaseCards-DG1CAZvU-Kp-BaaPo.js → PromoBaseCards-DTsaas8S-vBFc1f2h.js} +3 -3
  129. package/dist/assets/{QBOConnectionDialog-DLVcifji-BzsFl8lU.js → QBOConnectionDialog-Cvt38cmU-D0iq5FNX.js} +10 -10
  130. package/dist/assets/QBOSetupSection-Dijb03ZX-1HKzJLXv.js +79 -0
  131. package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-pBLvNKjP.js +26 -0
  132. package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-oZhsGYfa.js → ReimbursementApprovalRulesPage-BG8uMxNw-Cf6pCIHH.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-BofsP0W--DVgChjvg.js → ReimbursementDetailPage-Cs7XeZrC-D-NQ4ltb.js} +17 -17
  134. package/dist/assets/ReimbursementPromoPage-CKITZNUc-2-Ea8pDZ.js +112 -0
  135. package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-DAxU1I0b.js → ReimbursementSetUpPage-DD5P181p-C0K4OEHu.js} +8 -8
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-CNq5fdbL.js → ReimbursementsBulkReviewDrawerPage-C0eORL7o-B8b5o1o8.js} +1 -1
  137. package/dist/assets/{ReloadCard-CZ1Ix5em-CJhVpNi9.js → ReloadCard-CZ4IXHy1-BJxA7jIu.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-BRA3CT_O-BWHSw_d5.js → ReportTableViewSelector-Do0yQJxY-CNf50Tz7.js} +28 -28
  139. package/dist/assets/{ReportsPage-CauV3wnZ-Bfok01xk.js → ReportsPage-BUi475EG-yOqvkhUn.js} +5 -5
  140. package/dist/assets/{RevenueChart-BeM_1hYw-DP9fkCbH.js → RevenueChart-DPNqxQ4n-BN71k4Px.js} +12 -12
  141. package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-Bcj2cFMw.js → ReviewDetailsPage-DTCC2C0D-CbWjRazt.js} +16 -16
  142. package/dist/assets/{ReviewOverlay-DdWa7GLG-YdWdWayu.js → ReviewOverlay-CPN-RHG--Bk6qHS4b.js} +15 -15
  143. package/dist/assets/RoleWithToolTip-Bst2IdUy-DGhNj3An.js +22 -0
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-Cgf6Hq7_.js → ScheduleDetailsFixedAssetsPage-BSz5BdJ4-CLAcrRlD.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-CQ6iSQsN.js → ScheduleDetailsPage-DKVlaW9e-SKWttzgw.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-Dgu5c0RS.js → ScheduleSequenceTable-BhpHoReF-CFX3LJjF.js} +50 -50
  147. package/dist/assets/{ScreenRoutes-BBcvidtT.js → ScreenRoutes-B4X7AN4H.js} +62 -62
  148. package/dist/assets/{SetUpAccountSection-Trj1x2HL-CiAxSNYR.js → SetUpAccountSection-Blh-Vipv-948X1LRE.js} +23 -23
  149. package/dist/assets/{SetUpDefaultSection-BQzNGjO7-an74W3Da.js → SetUpDefaultSection-DsyZbNsv-D0zBNq1O.js} +8 -8
  150. package/dist/assets/{SignIn-Duk9PNwU-Y2eo5FDG.js → SignIn-DehOoUba-DOHewgw9.js} +19 -19
  151. package/dist/assets/{SignInScreen-BDl851xo.js → SignInScreen-CkgAQ_YN.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-CREdM633-Cg0NFbb7.js → SpendManagementListViewPage-C23fDDXZ-BPWPXBga.js} +6 -6
  153. package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe-BYNegFz5.js → SpendManagementPerTabPage-Cx0sB3qO-wloMSaZU.js} +28 -28
  154. package/dist/assets/{SpendManagementSection-bMsztUap-upI-ZdzC.js → SpendManagementSection-DbZYpbtO-DS4pqXC3.js} +13 -13
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-M7exC_NJ.js → SpendMgmtSetupAccountSection-BkUIdz9m-BSOUg3BU.js} +18 -18
  156. package/dist/assets/{StatementItem-XLqlrHIu-VoU4RUpG.js → StatementItem-BF8L0fc_-C244j_B_.js} +5 -5
  157. package/dist/assets/{StatementsPage-DWiXiOFU-DZPVh_4x.js → StatementsPage-96e3ZbSU-D7usTGed.js} +4 -4
  158. package/dist/assets/{StatusSwitcher-D1XZ-pbx-DwwsmfkA.js → StatusSwitcher-jwpQ49F7-D9kXIopT.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-Bt3F7ANv-e4DBICdr.js → SubTabSwitcher-B8H6McwL-DbChhvTl.js} +7 -7
  160. package/dist/assets/{SummaryCard-edbbHOmb-DIbjh5sC.js → SummaryCard-Bv4ja9yJ-CEGyY5M9.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BhtJBdco-CawcFnLk.js → TaskManagementPage-D7tD4WRl-CyzvnBh9.js} +26 -26
  162. package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-DSUt4L30.js → TimeRangeSwitcher-Cr-ObvZ9-_GLiJwhW.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-CbEHKZvd-CUipNC15.js → TimeframeSwitcher-YkFxZedG-D2Jl4z2_.js} +4 -4
  164. package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-Bqbdu9xs.js → TimeframeSwitcherWithToggle-4h9WX4z9-DcT4eGJv.js} +2 -2
  165. package/dist/assets/{TopExCard-DD9Rf9T6-CfNVkG6m.js → TopExCard-DtrsuLFD-CD31vD_h.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-DaDuwFrj-BOsQHlTA.js → TopExDetailPage-HMRdJt_a-CqlXXHAH.js} +16 -16
  167. package/dist/assets/{TransactionDetailPage-0fIW4o-6-BKhKFulx.js → TransactionDetailPage-CkWEdpTW-DkF9a8kj.js} +34 -34
  168. package/dist/assets/{TransactionList-CLjBadiP-By9OtkVt.js → TransactionList-8rOZr8BD-BFZ_UeU1.js} +8 -8
  169. package/dist/assets/{TransactionListBig-CwBxP1xB-DEm91bPU.js → TransactionListBig-DGx1qy2c-Cj8rID58.js} +24 -24
  170. package/dist/assets/{TransactionListPage-S1nTM7Yy-Hu_PcxrN.js → TransactionListPage-CnbufCaM-BnCVec09.js} +3 -3
  171. package/dist/assets/TransactionVendorDetailPage-UpZX_EgR-BhFMpvuw.js +80 -0
  172. package/dist/assets/{TransferDrawerPage-BJDNWagE-B5RBpIT8.js → TransferDrawerPage-cUyg27nq-BRj8U3av.js} +26 -26
  173. package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-0cVLv_tv.js → TreasuryOverviewPage-DoPe6v4O-CCqccW1l.js} +31 -31
  174. package/dist/assets/{TreasuryPromoPage-3MwRPpCt-B5X2lU4M.js → TreasuryPromoPage-Db20FO_G-sfhrpc5P.js} +21 -21
  175. package/dist/assets/{TreasurySetupPage--G4JCzdh-Ck5w0LPU.js → TreasurySetupPage-BoVhd65r-CwafywLn.js} +10 -10
  176. package/dist/assets/TreasuryStatementsPage-BONCF7O1-B0fw544j.js +58 -0
  177. package/dist/assets/TreasuryTaxLetterPage-NCZ0Y4yr-1T7-yG_S.js +58 -0
  178. package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-CjSaFqgC.js → TreasuryTransferOrReviewPage-DAmZboLO-20agXPX1.js} +44 -44
  179. package/dist/assets/{TrendChart-B0CS3MXT-D7qhkgQT.js → TrendChart-DQXhBbqy-BDomlWCz.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-D4OAA6yK-BF-AbaMY.js → TrendWithTransactions-Du-a-c_9-BQa8Yj73.js} +9 -9
  181. package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-zTG-_1nm.js → UncategorizedAccountsMappingPage-mSPC4LpU-BFboIJY0.js} +5 -5
  182. package/dist/assets/{UnitIntegrationPage-5LOvIFvr-Bzw8mu6B.js → UnitIntegrationPage-B5O9G4QH-D5ADrdli.js} +5 -5
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-SNsFu9LY.js → UploadAdditionalDocumentOverlay-CnjzAGYo-LBzsfon2.js} +2 -2
  184. package/dist/assets/{Vendor2FAPopup-BOl520xa-LnECkqk5.js → Vendor2FAPopup-CYcCB8tr-CXCRP0gB.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-CQSiDv6a.js → VendorACHDetailsPage-C6EuQBcH-TUoKo8Rz.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-B0GRXPKg--VPcZWOw.js → VendorDetailPage-CnSXWVCg-1hnRc8cc.js} +15 -15
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-q_cf3oNF.js → VendorDomesticWireDetailsPage-CVTkzHFB-BV1I21DW.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-MeHUgDES.js → VendorFiling1099EditablePage-TJb9mpk0-CoXUKsdg.js} +11 -11
  189. package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-DmkymrJ0.js → VendorFirstReviewPage-gBLVMddY-CjxHy67B.js} +40 -40
  190. package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--xMskWvbV.js → VendorInternationalWireDetailsPage-Bhm7j6HC-DsFGzuk8.js} +15 -15
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-DD3MG-8Z.js → VendorInternationalWireSwiftDetailsPage-MgN7VFET-DYSQMIco.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-DBYoP6us-C4im8TRF.js → VendorsAccountsSection-Cn-8Yemv-Ba4x1KCB.js} +8 -8
  193. package/dist/assets/{WarningsDrawerPage-CZcR7kH4-sqfZfsTI.js → WarningsDrawerPage-Cc_Rty0A-C8AX9SCt.js} +22 -22
  194. package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--DiLlSCD5.js → ZeniAccountDetailPage-BU2TTiDP-g3X34Mnd.js} +28 -28
  195. package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-Bz8qB5Gm.js → ZeniAccountListViewPage-DbcnkYvX-BflkDx8D.js} +20 -20
  196. package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-DAWPUiSq.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-uye9J5Yp.js → ZeniAccountPromoPage-D-5ArrRO-D5w2UaAO.js} +29 -29
  198. package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-hDbWbkKw.js → ZeniAccountSetupPage-DXYR0Ipo-B3amHFDO.js} +5 -5
  199. package/dist/assets/{ZeniCopyright-Bi82glrb-Dz0CNsex.js → ZeniCopyright-DPd1ifIT-DgcZx02q.js} +1 -1
  200. package/dist/assets/ZeniTransferAmountSlider-di46G5TN-DYM1NSO4.js +63 -0
  201. package/dist/assets/{analyticsHelper-DijVlDk5.js → analyticsHelper-3e_AZjy7.js} +1 -1
  202. package/dist/assets/{analyticsHelper-D3DK7bgU-BvVFcTDm.js → analyticsHelper-DrNmU0vn-Br27aA8M.js} +1 -1
  203. package/dist/assets/{chartTypes-DJY-6KK0-Bzq8Fcov.js → chartTypes-YTQv3tre-G_MCNcTV.js} +1 -1
  204. package/dist/assets/{commonDimensions-DRK1vfDX-CO7PCzy1.js → commonDimensions-BtmBVXgZ-C8cgTp9k.js} +1 -1
  205. package/dist/assets/{detailCommon-6K-6m9pv-2y9fI_2t.js → detailCommon-hHyz3hj3-Ch-6FqzV.js} +9 -9
  206. package/dist/assets/{downloadPdf-DAA4T-qo-CPXN54rf.js → downloadPdf-CDvgLzWC-CPQqckVY.js} +1 -1
  207. package/dist/assets/{index-CIAgrDi2.js → index-Dhj1_7g2.js} +4147 -4247
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-CQVT-QlQ.js → mapLoadingInProgressToTreeNode-BfoqmoAq-CfCX7DmO.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-B9fPZZTu.js → mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-iXp5bvzM.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr--PDlNxOC.js → mapSpacerToTreeNode-D8o529OP-D7qZ7B73.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-D1uR1QLu.js → mapTimeframeBalancesToTreeNode-BirMnIzY-BLeanjGG.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-DR76PT1e.js → mapTimeframeBalancesToTreeNode-NA69l84M-B1SJFT_Z.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-oHDpC_ju.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-DK4OBREu.js} +1 -1
  214. package/dist/assets/{play-icon-DY_hSiAf-DitmQkz7.js → play-icon-DyIc5aGx-BmGFKkF-.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-1rnUe3A4.js → toCOABalancesWithID-2jQJLb8S-BXYka2hz.js} +1 -1
  216. package/dist/assets/{toChartData-7MYPev1U-zJcYDtq1.js → toChartData-Dsjd8dGe-Igu99-cv.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CDhLDRLr-CltoUNO8.js → treasuryColorHelper-EG8VpBia-BOX0NA6c.js} +1 -1
  218. package/dist/assets/{uploadAttachment-DqCoxBNU-CxpASWHI.js → uploadAttachment-CVUM4FN--B82Va_J6.js} +24 -24
  219. package/dist/assets/{uploadReceipts-CU1mDxNv-0vPSSd-N.js → uploadReceipts-D80JLNY4-Cvp7FmYB.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/ACHDetailsPage-D6-Uk4xr-CqCQg7ha.js +0 -21
  223. package/dist/assets/ArAgingDetailPage-DD4M5tUJ-CHn9GwO8.js +0 -46
  224. package/dist/assets/ChargeCardUtils-Bivw83fy-L79bEW0e.js +0 -1
  225. package/dist/assets/CheckDepositDrawerPage-SpI62oU7-Q03dZELD.js +0 -206
  226. package/dist/assets/CompleteProfile-C1PIn6EM-BoaPrgBO.js +0 -52
  227. package/dist/assets/CurrencySelectField-DS-pGcuE-DLCIpnvb.js +0 -139
  228. package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-cw9bBAdD.js +0 -1
  229. package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-CslTnL-f.js +0 -66
  230. package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-D6rsk0GH.js +0 -21
  231. package/dist/assets/EditPeoplePage-auUWC3gB-DhunvsTv.js +0 -55
  232. package/dist/assets/FeaturePreviewPage-CwGJVCMk-c-nKLWL3.js +0 -11
  233. package/dist/assets/InsightsCardStack-EzAsNm_U-Cm_xrDcd.js +0 -79
  234. package/dist/assets/InvitePeoplePage-DgqE2Y-0-DKu709Rv.js +0 -12
  235. package/dist/assets/LabeledAddressValueField-Cw-p18du-D9T5QqTG.js +0 -45
  236. package/dist/assets/LabeledDocumentField-Y6TKpyZ8-CW27Za_m.js +0 -41
  237. package/dist/assets/MagicLinkSuccessPage-IHajRicG-TvKR0rcg.js +0 -31
  238. package/dist/assets/MailingDetailsSection-AiehjqI1-CrcmbjEa.js +0 -21
  239. package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-AaZTXsTp.js +0 -207
  240. package/dist/assets/QBOSetupSection-BeRZZ-Q_-a6rhf4W-.js +0 -79
  241. package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-Bj0-a-7-.js +0 -26
  242. package/dist/assets/ReimbursementPromoPage-CA2cUBsx-DqpwfsT0.js +0 -112
  243. package/dist/assets/RoleWithToolTip-BP8MTZdU-BOm9Us2_.js +0 -22
  244. package/dist/assets/TransactionVendorDetailPage-CTTTAais-CKKUnVWe.js +0 -80
  245. package/dist/assets/TreasuryStatementsPage-DBykLGfz-gFLjSnAI.js +0 -58
  246. package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-BsWgo8r5.js +0 -58
  247. package/dist/assets/VerifyDevice-C-ZVbaIJ-BL0Q3Y3x.js +0 -67
  248. package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-CQG9bWdR.js +0 -14
  249. package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-Cs4p2KhU.js +0 -63
@@ -1,4 +1,4 @@
1
- import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4 as Je,o as t,C as f,a3 as Ce,k as $t,am as bt,u as St,a2 as pe,bw as vt,cR as He,Q as R,l as z,fZ as jt,d as S,Y as At,g as et,$ as W,n as Q,eZ as kt,a as Tt,c6 as Pt,F as Ct,fF as zt,s as c,bq as tt,cZ as ot,bK as rt,cC as Dt,ct as Lt,f9 as Ft,f1 as Mt,d5 as Rt,M as Bt,f2 as Ot,ds as It,b$ as _t,b_ as Et,aQ as Nt,bc as Vt,fb as Yt,fk as Wt,ab as Qt}from"./index-CIAgrDi2.js";import{n as r,b as x}from"./vendor-CnQcJ2Lu.js";import{V as nt}from"./PortfolioDetails-Bbfo0XDo-F8wi_TkN.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CDhLDRLr-CltoUNO8.js";const qt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Xt=1e3;function Gt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Ht,{sliderValue:s,children:[o.jsx(Jt,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Xt,value:s,onChange:w}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Kt(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Zt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Ut(h)})},h))})]})}const Kt=e=>{const a=Qt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Zt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Ut=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Jt=r.input`
1
+ import{X as ge,H as xt,j as o,_ as P,gN as yt,M as we,a0 as W,K as Ie,c as Ze,a4 as He,o as t,C as f,a3 as Ce,k as $t,am as bt,u as St,a2 as pe,bs as vt,cO as Je,Q as R,l as z,fX as jt,g as S,Z as At,h as et,v as X,e as Y,eX as kt,a as Tt,c3 as Pt,F as Ct,fD as zt,q as c,bm as tt,cW as ot,bH as rt,cz as Dt,cq as Lt,f7 as Ft,e$ as Mt,d2 as Rt,m as Bt,f0 as Ot,dp as It,bY as Et,bX as _t,aQ as Nt,bc as Vt,f9 as Wt,fi as Xt,ab as Yt}from"./index-Dhj1_7g2.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{V as nt}from"./PortfolioDetails-Dtz3YEPu-CLhPVP_M.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-EG8VpBia-BOX0NA6c.js";const qt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Gt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Gt,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=Yt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -22,7 +22,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
22
22
  background-repeat: no-repeat;
23
23
  cursor: pointer;
24
24
  }
25
- `,Ht=r.div`
25
+ `,Jt=r.div`
26
26
  position: relative;
27
27
  width: 70%;
28
28
  margin-left: 30px;
@@ -46,10 +46,10 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
46
46
  position: absolute;
47
47
  cursor: pointer;
48
48
  transform: translateX(-50%);
49
- `,ro=r(W)`
49
+ `,ro=r(X)`
50
50
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
51
  white-space: nowrap;
52
- `,no=r(W)`
52
+ `,no=r(X)`
53
53
  position: absolute;
54
54
  top: -${t.sp5};
55
55
  white-space: nowrap;
@@ -60,15 +60,15 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  padding: 2px ${t.sp2};
63
- `,G={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:_},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=xe.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=xo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Qo,{}):o.jsx(qo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Wo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),w=St(),v=pe(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(ko,{windowSize:m,children:[o.jsx(Lo,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Fo,{windowSize:m,children:_.reviewAndConfirm}),o.jsx(Vo,{windowSize:m,children:o.jsx(He,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(zo,{}),o.jsx(Yo,{children:o.jsxs(o.Fragment,{children:[_.review.prefix,`"${T?.label}" `,_.success.midfix,` "${$?.label}" `,_.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(Ao,{children:o.jsxs(bo,{children:[o.jsxs(To,{children:[o.jsx(Co,{}),o.jsxs(So,{children:[o.jsx(vo,{children:e.error?.title}),o.jsx(jo,{children:e.error?.message})]})]}),o.jsx(Po,{children:o.jsx(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Do,{windowSize:m,children:o.jsxs(wo,{windowSize:m,children:[o.jsx(yo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx($o,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),fundAllocations:go(e),page:"transfer review"})})]})})]}),o.jsx(Je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:_.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:_.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ee,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(No,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(Ee,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Io,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Eo,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:Y("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!s?o.jsx(Ro,{children:w?.maskedAccountNumber}):o.jsxs(Mo,{className:"option-sublabel",children:[o.jsx(ve,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(Oo,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(ve,{children:[Y("0,0[.]00",w.accountBalance.available),v?o.jsx(Bo,{children:so}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ue,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},xo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
63
+ `,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=we.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=wo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Yo,{}):o.jsx(qo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Xo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),x=St(),v=pe(e.fetchState),[h,i]=w.useState(!1);w.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(ko,{windowSize:m,children:[o.jsx(Lo,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ee,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Fo,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(Vo,{windowSize:m,children:o.jsx(Je,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(zo,{}),o.jsx(Wo,{children:o.jsxs(o.Fragment,{children:[E.review.prefix,`"${T?.label}" `,E.success.midfix,` "${$?.label}" `,E.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(Ao,{children:o.jsxs(bo,{children:[o.jsxs(To,{children:[o.jsx(Co,{}),o.jsxs(So,{children:[o.jsx(vo,{children:e.error?.title}),o.jsx(jo,{children:e.error?.message})]})]}),o.jsx(Po,{children:o.jsx(Ee,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Do,{windowSize:m,children:o.jsxs(xo,{windowSize:m,children:[o.jsx(yo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx($o,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),fundAllocations:go(e),page:"transfer review"})})]})})]}),o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:E.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:E.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(No,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Io,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(Eo,{isOptionSelected:u,isForReview:d,children:o.jsx(_o,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:W("0,0[.]00",a.balance)}):null;const x=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&x?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,x.accountBalance.available)),n===!0&&!s?o.jsx(Ro,{children:x?.maskedAccountNumber}):o.jsxs(Mo,{className:"option-sublabel",children:[o.jsx(ve,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Oo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(ve,{children:[W("0,0[.]00",x.accountBalance.available),v?o.jsx(Bo,{children:so}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},wo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
- `,se=r(W)`
66
+ `,se=r(X)`
67
67
  color: ${e=>e.theme.colors.hero};
68
- `,le=r(Q)`
68
+ `,le=r(Y)`
69
69
  display: flex;
70
70
  align-items: center;
71
- `,wo=r.div`
71
+ `,xo=r.div`
72
72
  display: flex;
73
73
  flex-direction: column;
74
74
  width: 100%;
@@ -76,7 +76,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
76
76
  border: 1px solid ${e=>e.theme.colors.grey3};
77
77
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
78
78
  border-radius: ${t.sp2};
79
- padding: ${e=>`${G.elementsContainerPadding.valuePx(e.windowSize)}`};
79
+ padding: ${e=>`${K.elementsContainerPadding.valuePx(e.windowSize)}`};
80
80
  gap: ${t.sp4};
81
81
  ${e=>e.windowSize==="small"&&`
82
82
  width: auto;
@@ -115,7 +115,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
115
115
  margin-left: ${t.sp2};
116
116
  `,vo=r(rt)`
117
117
  color: ${S.important};
118
- `,jo=r(Q)`
118
+ `,jo=r(Y)`
119
119
  color: ${S.important};
120
120
  `,Ao=r.div`
121
121
  margin-top: ${t.sp3};
@@ -128,8 +128,8 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
128
128
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
129
  `,ko=r.div`
130
130
  height: auto;
131
- padding-left: ${e=>`${G.containerPaddingLeft.valuePx(e.windowSize)}`};
132
- padding-right: ${e=>`${G.containerPaddingRight.valuePx(e.windowSize)}`};
131
+ padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
132
+ padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
133
133
  margin-bottom: auto;
134
134
  `,To=r.div`
135
135
  display: flex;
@@ -138,7 +138,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
138
138
  width: ${t.sp4};
139
139
  height: ${t.sp4};
140
140
  color: ${S.important};
141
- `,_e=r(Ce)`
141
+ `,Ee=r(Ce)`
142
142
  cursor: pointer;
143
143
  color: ${e=>e.theme.colors.hero};
144
144
  width: ${t.sp4};
@@ -153,13 +153,13 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
153
153
  background-color: ${e=>e.theme.colors.grey3};
154
154
  min-height: 1px;
155
155
  max-height: 1px;
156
- `,de=r(W)`
156
+ `,de=r(X)`
157
157
  color: ${e=>e.theme.colors.hero};
158
158
  `,Do=r.div`
159
159
  display: flex;
160
160
  flex-direction: column;
161
161
  padding-top: ${t.sp3};
162
- padding-bottom: ${e=>`${G.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
162
+ padding-bottom: ${e=>`${K.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
163
  `,Lo=r.div`
164
164
  display: flex;
165
165
  flex-direction: row;
@@ -167,7 +167,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
167
167
  align-items: center;
168
168
  width: 100%;
169
169
  top: ${t.sp0};
170
- padding: ${e=>`${G.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
170
+ padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
171
  z-index: 2;
172
172
  background-color: transparent;
173
173
  `,Fo=r(et)`
@@ -177,7 +177,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
177
177
  ${e=>e.windowSize==="small"&&`
178
178
  padding-bottom: ${t.sp0};
179
179
  `}
180
- `,Mo=r(W)`
180
+ `,Mo=r(X)`
181
181
  color: ${e=>e.theme.colors.hero};
182
182
  display: flex;
183
183
  flex-direction: row;
@@ -200,22 +200,22 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
200
200
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
201
201
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
202
202
  margin-right: ${t.sp2};
203
- `,_o=r.div`
203
+ `,Eo=r.div`
204
204
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
205
205
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
206
206
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
207
207
  margin-right: ${t.sp2};
208
- `,Eo=r(Wt)`
208
+ `,_o=r(Xt)`
209
209
  min-width: inherit;
210
210
  width: inherit;
211
211
  height: inherit;
212
212
  margin-right: ${t.sp2};
213
- `,Ee=r.div`
213
+ `,_e=r.div`
214
214
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
215
215
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
216
216
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
217
217
  margin-right: ${t.sp2};
218
- `,Ne=r(Yt)`
218
+ `,Ne=r(Wt)`
219
219
  min-width: inherit;
220
220
  width: inherit;
221
221
  height: inherit;
@@ -233,19 +233,19 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
233
233
  margin-top: ${t.sp1};
234
234
  margin-bottom: ${t.sp1};
235
235
  `}
236
- `,Yo=r(Q)`
236
+ `,Wo=r(Y)`
237
237
  color: ${e=>e.theme.colors.hero};
238
238
  margin-top: ${t.sp3};
239
- `,Wo=r(Nt)`
239
+ `,Xo=r(Nt)`
240
240
  width: ${t.sp4};
241
241
  height: ${t.sp4};
242
242
  color: ${e=>e.theme.colors.hero};
243
- `,Qo=r(_t)`
243
+ `,Yo=r(Et)`
244
244
  width: ${t.sp4};
245
245
  height: ${t.sp4};
246
246
  color: ${e=>e.theme.colors.hero};
247
247
  align-self: center;
248
- `,qo=r(Et)`
248
+ `,qo=r(_t)`
249
249
  width: ${t.sp4};
250
250
  height: ${t.sp4};
251
251
  color: ${e=>e.theme.colors.hero};
@@ -257,7 +257,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
257
257
  position: absolute;
258
258
  right: 50%;
259
259
  bottom: -25px;
260
- `,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Xo},billPay:{insufficientFunds:Ve}}}=xe.getLocalizedStrings(),it="amount",Go="transferTo",Ko="transferFrom",E="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Zo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Z]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[U,J]=x.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,we]=x.useState(b.linkToken??null),[H,ze]=x.useState(!1),[De,Le]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=x.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=x.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),X=x.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ye(e,n,X),[e,n])}),{isValid:dt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),x.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{De&&H&&ee()},[De,ee,H]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(Ye(e,n,X))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,X]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[E].transferFrom.selectedOption,oe=j[E].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const xt={amount:Oe,fromAccount:re,toAccount:ne};Z(Oe.amount),m(xt)}};x.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),x.useEffect(()=>{J(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&w()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Uo,{children:o.jsxs(Ho,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(He,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Jo,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,X,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(E,Go),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,X,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(E,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",Y("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Gt,{interestRate:O,transferAmount:B,setYieldEarned:J,setTransferAmount:Z})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(xr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${Y("0,0",{amount:U,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(wr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${Y("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:Xo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Uo=r.div`
260
+ `,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Go},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Ko="transferTo",Uo="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,Q]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Z,H]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[J,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),G=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,G),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&J&&ee()},[De,ee,J]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(We(e,n,G))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,G]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};Q(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(Jo,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(Je,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Ho,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,G,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,G,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:Q})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(wr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Z,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(xr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:Go.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},We=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
261
261
  margin-top: ${t.sp3};
262
262
  display: flex;
263
263
  background-color: ${e=>e.theme.colors.grey5};
@@ -266,12 +266,12 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
266
266
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
267
267
  border-radius: ${t.sp2};
268
268
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
269
- `,Jo=r.form`
269
+ `,Ho=r.form`
270
270
  display: flex;
271
271
  flex-direction: column;
272
272
  justify-content: center;
273
273
  align-items: center;
274
- `,Ho=r.div`
274
+ `,Jo=r.div`
275
275
  display: flex;
276
276
  width: 100%;
277
277
  justify-content: space-between;
@@ -291,7 +291,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
291
291
  margin-left: ${t.sp2};
292
292
  `,nr=r(rt)`
293
293
  color: ${S.important};
294
- `,ir=r(Q)`
294
+ `,ir=r(Y)`
295
295
  color: ${S.important};
296
296
  `,ar=r(tt)`
297
297
  color: ${e=>e.theme.colors.primary};
@@ -300,7 +300,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
300
300
  margin-top: ${t.sp1};
301
301
  margin-bottom: ${t.sp1};
302
302
  `}
303
- `,We=r(Dt)`
303
+ `,Xe=r(Dt)`
304
304
  border-radius: ${t.sp2};
305
305
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
306
306
  `,sr=r.div`
@@ -371,7 +371,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
371
371
  justify-content: center;
372
372
  align-items: center;
373
373
  flex-direction: column;
374
- `,pr=r(Q)`
374
+ `,pr=r(Y)`
375
375
  color: ${e=>e.theme.colors.hero};
376
376
  margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
377
377
  white-space: pre-line;
@@ -393,7 +393,7 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
393
393
  display: flex;
394
394
  flex-direction: row;
395
395
  align-items: center;
396
- `,Qe=r.div`
396
+ `,Ye=r.div`
397
397
  ${e=>me.calculatorFooterText.style(e.windowSize)}
398
398
  color: ${e=>e.theme.colors.hero};
399
399
  cursor: pointer;
@@ -419,12 +419,12 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
419
419
  margin: 0 ${t.sp2};
420
420
  background-color: ${e=>e.theme.colors.grey1};
421
421
  border-radius: 50%;
422
- `,xr=r.div`
422
+ `,wr=r.div`
423
423
  display: flex;
424
424
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
425
425
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
426
426
  width: ${e=>e.windowSize==="small"?"100%":"unset"};
427
- `,wr=r(Bt)`
427
+ `,xr=r(Bt)`
428
428
  color: ${e=>e.theme.colors.hero};
429
429
  `,yr=r(Ot)`
430
430
  cursor: pointer;
@@ -440,9 +440,9 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
440
440
  min-width: 12px;
441
441
  min-height: 12px;
442
442
  color: ${e=>e.theme.colors.hero};
443
- `,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:Xe,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Vr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Z,fetchState:O}=a,U=Z.find(H=>wt(H.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},J=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(jr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ge,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Pr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Ar,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(kr,{children:Y("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:U,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ge,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(zr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(vr,{children:k.transferDrawer.subTitle}):o.jsx(Sr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Zo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:U,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ue,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),J()?o.jsx(Je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Xe.review},cancelBtn:{label:Xe.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(Q)`
443
+ `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:Ge,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Vr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,Z=Q.find(J=>xt(J.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},H=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(jr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Pr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Ar,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(kr,{children:W("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:Z,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(zr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(vr,{children:k.transferDrawer.subTitle}):o.jsx(Sr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Z,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),H()?o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ge.review},cancelBtn:{label:Ge.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(Y)`
444
444
  color: ${e=>e.theme.colors.hero};
445
- `,vr=r(W)`
445
+ `,vr=r(X)`
446
446
  color: ${e=>e.theme.colors.hero};
447
447
  `,jr=r.div`
448
448
  display: flex;
@@ -456,35 +456,35 @@ import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4
456
456
  text-align: center;
457
457
  `,kr=r(bt)`
458
458
  display: inline;
459
- `,Ge=r.div`
459
+ `,Ke=r.div`
460
460
  height: ${e=>e.isTransferCompleted?"100%":"auto"};
461
- padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
462
- padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
461
+ padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
463
463
  margin-bottom: auto;
464
464
  `,Tr=r.div`
465
465
  display: flex;
466
466
  justify-content: center;
467
467
  flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
468
468
  margin-top: ${t.sp6};
469
- gap: ${e=>`${K.buttonTrayGap.valuePx(e.windowSize)}`};
469
+ gap: ${e=>`${U.buttonTrayGap.valuePx(e.windowSize)}`};
470
470
  `,Pr=r.div`
471
471
  height: 80%;
472
472
  display: flex;
473
473
  flex-direction: column;
474
474
  justify-content: center;
475
- margin: ${e=>`${t.sp0} ${K.successContentMargin.valuePx(e.windowSize)}`};
475
+ margin: ${e=>`${t.sp0} ${U.successContentMargin.valuePx(e.windowSize)}`};
476
476
  align-items: center;
477
- `,Ke=r.div`
477
+ `,Ue=r.div`
478
478
  display: flex;
479
479
  flex-direction: row-reverse;
480
480
  justify-content: space-between;
481
481
  align-items: center;
482
482
  width: 100%;
483
483
  top: ${t.sp0};
484
- padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
484
+ padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
485
  z-index: 2;
486
486
  background-color: ${e=>e.theme.colors.grey4};
487
- `,Ze=r(Ce)`
487
+ `,Qe=r(Ce)`
488
488
  cursor: pointer;
489
489
  color: ${e=>e.theme.colors.hero};
490
490
  width: ${t.sp4};
@@ -1,4 +1,4 @@
1
- import{B as w,j as n,l as u,u as B,_ as Y,aj as Z,b5 as z,b6 as F,av as P,v as k,au as R,ab as q,b7 as O,aw as _,b9 as G,o as L,d as K,n as N}from"./index-CIAgrDi2.js";import{b as v,f as Q,n as $}from"./vendor-CnQcJ2Lu.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-DJY-6KK0-Bzq8Fcov.js";import{o as X}from"./toCOABalancesWithID-BaqBVqJ_-1rnUe3A4.js";import{V as H}from"./toChartData-7MYPev1U-zJcYDtq1.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=$.div`
1
+ import{M as w,j as n,l as u,u as Z,_ as Y,aj as z,b5 as B,b6 as F,av as P,f as k,au as R,ab as O,b7 as _,aw as q,b9 as K,o as L,g as G,e as N}from"./index-Dhj1_7g2.js";import{b as v,f as V,n as $}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-YTQv3tre-G_MCNcTV.js";import{o as X}from"./toCOABalancesWithID-2jQJLb8S-BXYka2hz.js";import{V as H}from"./toChartData-Dsjd8dGe-Igu99-cv.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=$.div`
2
2
  display: flex;
3
3
  `,J=$.div`
4
4
  flex: display;
@@ -8,9 +8,9 @@ import{B as w,j as n,l as u,u as B,_ as Y,aj as Z,b5 as z,b6 as F,av as P,v as k
8
8
  padding: ${L.sp3};
9
9
  background-color: ${e=>e.theme.colors.black};
10
10
  `,U=$(N)`
11
- color: ${e=>e.color??K.neutralGrey2Light};
11
+ color: ${e=>e.color??G.neutralGrey2Light};
12
12
  text-align: left;
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${W(a.value)}`},a.barName+r))})}):null},ae=Q.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=X("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=w.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),j=p=>{const h=[];return E.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=B(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=V(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=T(M,p,1);b(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(Z,{children:({height:o,width:i})=>n.jsxs(z,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>q("0,0.[00]a",c,j)}),n.jsx(O,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=w.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${w.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
16
+ `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${Q(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=X("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=w.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),j=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(K,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=Z(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=M(E,p,1);b(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),n.jsx(_,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(q,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=w.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${w.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
@@ -1,6 +1,6 @@
1
- import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,s as a,n as _,a3 as q}from"./index-CIAgrDi2.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import K from"./TrendChart-B0CS3MXT-D7qhkgQT.js";import{C as V}from"./NoDataChart-BdzVnx59-Zwl7GRg0.js";import{B as W}from"./InsightsSection-nzKuS0T9-CcXyZxZ8.js";import{d as Q}from"./TransactionList-CLjBadiP-By9OtkVt.js";const Z=n.div`
1
+ import{X as D,j as i,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c0 as E,q as a,e as K,a3 as X}from"./index-Dhj1_7g2.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import _ from"./TrendChart-DQXhBbqy-BDomlWCz.js";import{C as V}from"./NoDataChart-C9yfE8vY-CyPn8PGK.js";import{B as W}from"./InsightsSection-jnWJ877y-B7dup9Hm.js";import{d as Z}from"./TransactionList-8rOZr8BD-BFZ_UeU1.js";const G=n.div`
2
2
  display: inline-block;
3
- `,G=n.div`
3
+ `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  display: flex;
6
6
  align-items: center;
@@ -12,21 +12,21 @@ import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,
12
12
  background-color: ${e=>e.theme.colors.grey2};
13
13
  color: ${e=>e.theme.colors.primary};
14
14
  }
15
- `,J=n.div`
15
+ `,Q=n.div`
16
16
  display: flex;
17
17
  flex-direction: row;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- `,U=n(_)`
20
+ `,U=n(K)`
21
21
  margin-right: ${t.sp2};
22
- `,ee=n(q)`
22
+ `,ee=n(X)`
23
23
  width: ${t.sp3};
24
24
  height: ${t.sp3};
25
25
  color: inherit;
26
26
  &:hover {
27
27
  color: inherit;
28
28
  }
29
- `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(J,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
29
+ `;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
30
30
  display: flex;
31
31
  flex: 1 1 auto;
32
32
  width: 100%;
@@ -45,7 +45,7 @@ import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,
45
45
  justify-content: center;
46
46
  align-items: center;
47
47
  margin-top: ${t.sp8};
48
- `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(Q,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,componentName:"trend.transactions.list",onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},P={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
48
+ `;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(Z,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,componentName:"trend.transactions.list",onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},P={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
49
49
  display: flex;
50
50
  flex: 1 1 auto;
51
51
  min-height: 100%;
@@ -63,7 +63,7 @@ import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,
63
63
  height: 360px;
64
64
  margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
65
65
  margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
66
- `,he=n(X)`
66
+ `,he=n(E)`
67
67
  color: ${e=>e.theme.colors.primary};
68
68
  margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
69
69
  margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
@@ -113,4 +113,4 @@ import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,
113
113
  align-items: center;
114
114
  height: ${e=>P.loaderTrendChartHeight.valuePx(e.windowSize)};
115
115
  margin-top: ${t.sp8};
116
- `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[B,I]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(V,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{firstMonthOfFY:e,trendReport:h,timeframe:j,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{p?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(W,{insights:h?.insights})})]})},H=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{I(x)}})}),O=f=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?P.emptyTrendChartHeight.value($):P.trendChartHeight)+(w===!0?P.selectedTimeHeight:0)+x+f};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(je,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(Pe,{windowSize:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:O(B),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const Pe=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};
116
+ `;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(V,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(_,{firstMonthOfFY:e,trendReport:h,timeframe:j,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{p?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(W,{insights:h?.insights})})]})},H=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),B=f=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?P.emptyTrendChartHeight.value($):P.trendChartHeight)+(w===!0?P.selectedTimeHeight:0)+x+f};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(je,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(Pe,{windowSize:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:B(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const Pe=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};