@zeniai/web-cockpit-ui 1.14.18-qa → 1.14.19-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-DDccOBrQ-DAFloIR7.js → ACHDetailsPage-BahbefPk-CJUwOp-5.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-u3qF__mF-C2rQdAUj.js → AIPerformancePage-BuQApbEf-iP9bvKhu.js} +53 -53
  3. package/dist/assets/AccountInfoPage-TD30edES-B2dxCd6A.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-0PqU7bCV-DjyLxVjc.js → AccountInfoPageContent-DQJFmREl-DoaILqqU.js} +16 -16
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DEqtU-rh-DShYSkdD.js → AccountReconDetailsDrawerPage-D2B9Na3--BPjptdtd.js} +18 -18
  6. package/dist/assets/{AccountRow-DTQ6Qoyr-BWLnnP7O.js → AccountRow-ZcS_RTJN-DNHX6IR1.js} +36 -36
  7. package/dist/assets/{AccountsPromoCardStack-DkYqKp1i-DIQYZHkX.js → AccountsPromoCardStack-Bh2D-mXh-Yx4rUExR.js} +37 -37
  8. package/dist/assets/{AddAddressForCardDrawer-DB3HtvgV-CtFYoq0c.js → AddAddressForCardDrawer-Ds2V5DyG-D2Tq6L1d.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DvgM0-kj-DdLn-yYb.js → AddToWalletPage-DQ_gwAcu-Bv5nxp9i.js} +29 -29
  10. package/dist/assets/{AgingReportsPage-BP6-oG6W-Zw_sJROa.js → AgingReportsPage-BU_tqV13-C2Yi_y38.js} +8 -8
  11. package/dist/assets/{AllUserItems-w6M8k5yU-YJIh_rl6.js → AllUserItems-DBXzXO61-sIPVSbAT.js} +5 -5
  12. package/dist/assets/ApAgingDetailPage-Crv9EDe5-Dm92urnR.js +46 -0
  13. package/dist/assets/AppBasePage-BK_b0fFf-DXr3P5KV.js +70 -0
  14. package/dist/assets/{AppDrawerContent-_gInVeZf-BQim72zX.js → AppDrawerContent-rw39Hn3s-Aoghs5SQ.js} +20 -19
  15. package/dist/assets/{ApprovalRulesSettingsPage-CKRde9he-xNULn6j9.js → ApprovalRulesSettingsPage-C6jxuvhu-S4p-j-Jr.js} +7 -7
  16. package/dist/assets/{ArAgingChart-Dg0oBo5K-D_U-_y14.js → ArAgingChart-DVMlvNTF-DuCGC2Pt.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-CNizMSbt-Dth0_YLs.js → ArAgingDetailPage-CbmOL5tx-Bg8YQJ9n.js} +1 -1
  18. package/dist/assets/{AttachmentView-B8hloBca-B7H5OHbd.js → AttachmentView-BTAMhgXU-BizBD4c6.js} +9 -9
  19. package/dist/assets/{BankAccountSection-4HNC0ypd-C0gSDf56.js → BankAccountSection-DVO3xzgl-BbF3_Xvy.js} +7 -7
  20. package/dist/assets/{BankAccountWarningSection-BqgTMjDy-D19_f5S8.js → BankAccountWarningSection-CQsqUFKg-CEwje_vW.js} +10 -10
  21. package/dist/assets/{BankConnectionsSettingsPage-BBQh1oT8-CZV3CN6h.js → BankConnectionsSettingsPage-CEyhk8v--D1MZcFK5.js} +22 -22
  22. package/dist/assets/{BillDetailPage-R4oRrdsm-BEresB8F.js → BillDetailPage-CP6QCrla-C-q234bH.js} +18 -18
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-d_A1-Gv_-3RrpKEuO.js → BillPayApprovalRuleDetailPage-Bem5LvtY-ByYY2uP-.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-5q5b2drs-IWViHE-L.js → BillPayApprovalRulesPage-DhDaCfQa-cqstNfVf.js} +8 -8
  25. package/dist/assets/{BillPayPromoPage-Dz_R3Vd_--yvJrLJn.js → BillPayPromoPage-BjH9lvnR-7aNAb2i3.js} +10 -10
  26. package/dist/assets/{BillPaySetUpPage-CwTRrElO-CydqQ4Hb.js → BillPaySetUpPage-X8X9gq1a-DvsjYi7w.js} +2 -2
  27. package/dist/assets/{BillingSettingsPage-_XJCl2yq-PULazhmD.js → BillingSettingsPage-CyyR8GW1-3x2HPXEj.js} +6 -6
  28. package/dist/assets/{BillsBulkReviewDrawerPage-B_S35aKX-BEOZeSq9.js → BillsBulkReviewDrawerPage-D_xxZjcU-M0WKN8pE.js} +1 -1
  29. package/dist/assets/{BoxItem-9JmA6QqI-COQbCWSM.js → BoxItem-BL-UVx2X-CDUWJCC4.js} +4 -4
  30. package/dist/assets/{BusinessVerificationPage-DJKOIC1M-LiFEkQgk.js → BusinessVerificationPage-Tr-N_rHo-BFVLh_Kq.js} +8 -8
  31. package/dist/assets/{CardNumberSubText-CewmMWju-DvCOWAQW.js → CardNumberSubText-CNMNL0y--CRLH2YxV.js} +2 -2
  32. package/dist/assets/{CashbackDetailPage-HtjAmPa8-CinbzV-Y.js → CashbackDetailPage-Cj26I5CB-DNKm6NdF.js} +27 -27
  33. package/dist/assets/{ChargeCardDetailPage-D_5vb_92-Du3sCUPX.js → ChargeCardDetailPage-herJK06r-Jj0sML3r.js} +40 -40
  34. package/dist/assets/{ChargeCardListPage-BT-8bueF-06vjr20X.js → ChargeCardListPage-LYVKm-0u-CGVPXLUW.js} +26 -26
  35. package/dist/assets/{ChargeCardListTable-oJTQcOkc-BWmgu2hA.js → ChargeCardListTable-DxE-nRR4-Dc_afx90.js} +38 -38
  36. package/dist/assets/ChargeCardPromoPage-LVuaSVsQ-xG3b-_Ag.js +222 -0
  37. package/dist/assets/{ChargeCardSetupPage-cqydgFPZ-BGlawUmi.js → ChargeCardSetupPage-CWoHclOr-CLs_UkHN.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-URwhXATj-CKBPOOuu.js → ChargeCardStatementsPage-DkCHd5c6-y_ZysAG_.js} +8 -8
  39. package/dist/assets/{ChargeCardUtils-DBEgXAMc-CCKJwoXw.js → ChargeCardUtils-6kq_92Ri-BhC-mlU5.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-HTpWDuLt-DX0UAuYL.js → ChaseOverlay-N7gGQaMQ-Bh9lkzpe.js} +7 -7
  41. package/dist/assets/{CheckDepositDrawerPage-DLc3qfVH-D8HoFLZB.js → CheckDepositDrawerPage-w7IziUHI-DeTxsGVS.js} +20 -20
  42. package/dist/assets/{CollapsableReportTable-PpQgBBRC-ZGrGfaoO.js → CollapsableReportTable-NSlKGCNZ-9GlkRzVX.js} +59 -59
  43. package/dist/assets/{CompanyOfficerDetailsSection-C1aPsDga-CZMmYqn7.js → CompanyOfficerDetailsSection-C1IpMsWw-4riCbcJi.js} +33 -33
  44. package/dist/assets/{CompanyPassportCard-DMKqBgwh-BK9jAm1s.js → CompanyPassportCard-D5gkzDNU-DdCNWaie.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-CHHPIqN_-DmQdYIKs.js → CompanyPassportPage-6_6yWHxX-BzKkvM2X.js} +31 -31
  46. package/dist/assets/CompleteProfile-1xeOWkGT-CSILrADl.js +52 -0
  47. package/dist/assets/{ConfettiBurst-14a5kaEE-GS9xo-rd.js → ConfettiBurst-b1-NNKbl-Dk_0sV_i.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-K5rhe_y3-N41MtjES.js → CreateOrEditVendorPage-DQW4Wobx-CiIXGaQB.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-LQ--HUI9-Cc_Sa5wy.js → CreditCardPaymentDrawerPage-BEpQXn9g-DzfCHeLI.js} +21 -21
  50. package/dist/assets/{CreditCardPaymentPlgSection-BM05WC-i-DNDbbaSP.js → CreditCardPaymentPlgSection-BGh2TJeK-DFQxSPk-.js} +8 -8
  51. package/dist/assets/{CurrencySelectField-bhkJTNUW-BRZe_YtM.js → CurrencySelectField-C2if0NUa-ChKY5K5U.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-BHD1irjF-CTeUMMCT.js → CustomerOnboardingActivationPage-_zjv9RZY-5MkPCW8D.js} +9 -9
  53. package/dist/assets/CustomerOnboardingContainerPage-BXSxGbv8-CIUqDhfe.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B--kAA3i-MPsa0cdA.js → CustomerOnboardingDetailPageSkeleton-CXApNm6A-BSR-PhTi.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-sHKAos8m-Db1Asz6M.js → CustomerOnboardingNoStepsPage-BaBxG1Yn-DqlQrhK_.js} +5 -5
  56. package/dist/assets/{CustomerOnboardingPage-B_S5G-6o-ioTtf7qq.js → CustomerOnboardingPage-CWpmMXrh-CRkiPpz7.js} +8 -8
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CVi8WuQY-DhCHrYf_.js → CustomerOnboardingProductSuitePage-CGYRoz3v-BhEGdWj7.js} +11 -11
  58. package/dist/assets/{Dashboard-CIMiF6eU-Bh4A-kwo.js → Dashboard-Dyt4nvyG-CkNduEQV.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-6z6qBQSB-DtM_VyEZ.js → DashboardReportPage-BSbTlRwW-gHAkcokq.js} +20 -20
  60. package/dist/assets/{DepositAccTransactionItem-BQYFrzDW-BcHBCoaK.js → DepositAccTransactionItem-CuTp6qxI-Ce2SFbUX.js} +10 -10
  61. package/dist/assets/{DepositAccTransactionListPage-xSNsUwS4-CqhIj9_l.js → DepositAccTransactionListPage-CrQrOyrm-LYbEgddo.js} +8 -8
  62. package/dist/assets/{DomesticWireDetailsPage-b1iB1HBM-DQ1jdhWC.js → DomesticWireDetailsPage-C5hxxGsr-D-EvElMb.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-C3oy6eq7-DGj-h14-.js → DownloadOverlay-B9O7jf-4-BeIpOSC8.js} +1 -1
  64. package/dist/assets/{DrawerPage-DLVTld-y-ocrEwuzh.js → DrawerPage-Dpd6lRf7-l9nV_5N2.js} +15 -15
  65. package/dist/assets/EditPeoplePage-C7uOWg9F-BdboEEOc.js +55 -0
  66. package/dist/assets/{EditReimbursementDetailPage-zgUt303N-DNfD2_Hk.js → EditReimbursementDetailPage-BL-W1hPs-D4iR-8Yt.js} +55 -55
  67. package/dist/assets/{EntityDetailPage-DY4i6GZK-BLVHMR98.js → EntityDetailPage-BsQ9bSpC-Do5rjOCb.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-BbxeYdm8-BY7Iv_Z9.js → EntitySummarySection-eNxIwvHt-CkeObU85.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-D3x3XpmU-C_l3U2ns.js → ExpenseAutomationOverviewPage-CKBACgsI-pcAU6Tzl.js} +29 -29
  70. package/dist/assets/{ExpenseAutomationPage-BTAjM6yZ-DWdHw-Sn.js → ExpenseAutomationPage-LPWPrpwm-T8iyqKP1.js} +56 -56
  71. package/dist/assets/{ExpressPayPage-C30-lVTo-6WY6w68k.js → ExpressPayPage-COQrt-KL-sn6b2-XB.js} +11 -11
  72. package/dist/assets/FeaturePreviewPage-Coe53hoK-Doq3zPCz.js +11 -0
  73. package/dist/assets/{FollowStepsSection-B171fPtM-BriP7ojJ.js → FollowStepsSection-BJFJzQrz-CGmrm9Lr.js} +12 -12
  74. package/dist/assets/{GlobalReviewListPage-BaZx32sB-DX_UXvHY.js → GlobalReviewListPage-DDQb-plt-B7MJAdcL.js} +17 -17
  75. package/dist/assets/HelpButton-BT_HyQ5k-B4E1vZtk.js +28 -0
  76. package/dist/assets/{InformationCardStack-BtxneVKK-5zmgZr81.js → InformationCardStack-B9E29_zj-DokGK6g8.js} +4 -4
  77. package/dist/assets/{InsightsCardStack-CCee6pLA-BiJYSmPO.js → InsightsCardStack-7XbkZ-A3-BxqeB-iN.js} +8 -8
  78. package/dist/assets/InsightsSection-DtBq9eII-CGUvYjY9.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-CsY38-LI-c3uW4I03.js → IntegrationsSettingsPage-TjdF0ahh-BOCCfb_h.js} +11 -11
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-sSSgjYdh-f5YlyKlr.js → InternationalWireSwiftDetailsPage-BeSYu2Dm-y3Tu_Xyi.js} +12 -12
  81. package/dist/assets/{InternationalWireVerificationPage-zv0FIhUz-C7apQHs9.js → InternationalWireVerificationPage-Ctcaggen-Cihfrd35.js} +15 -15
  82. package/dist/assets/{InviteFormPage-DxszbbOJ-zBQSU0hV.js → InviteFormPage-DEDBu0OO-Dsi8hwhI.js} +24 -24
  83. package/dist/assets/{InvitePageListView-BYVWTwTc-Bc4HhTKp.js → InvitePageListView-BMMOpM9O-B8oUxVru.js} +41 -41
  84. package/dist/assets/InvitePeoplePage-BzPRCgA6-C4LT3zxO.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-C6Dx8Web-CBeOBAnd.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-CPmj_trJ-DaakIEW8.js → IssueChargeCardPage-DWRhiOzj-DCnENqBq.js} +72 -72
  87. package/dist/assets/LabeledAddressValue-CSb0EGEx-owkgfzr7.js +49 -0
  88. package/dist/assets/LabeledAddressValueField-DJHY_wPN-ChfMLz4N.js +45 -0
  89. package/dist/assets/{LabeledControlledCheckBoxField-BnfJ3gKr-BPIj9243.js → LabeledControlledCheckBoxField-rRmtlmRJ-ZOoy4ee7.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CJT-CuQl-CtkVdb8Y.js → LabeledCreatableSingleSelectField-CTwToXIo-Cle-L6Nt.js} +5 -5
  91. package/dist/assets/LabeledDocumentField-sIz4Fhet-CBqe5ksA.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-mOxkCT-G-CFeF0x5h.js +59 -0
  93. package/dist/assets/{LabeledText-DhZgeQqu-CywDQAlQ.js → LabeledText-CExeogkg-361xlNV7.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D63Z4SE5-CnyU9bGi.js → LabeledUserSingleSelectWithSubtitlesField-DrloYoze-DB50WeN3.js} +16 -16
  95. package/dist/assets/{LabeledZeniRolesDropDownField-MwrQ9tKT-DoYqkoGc.js → LabeledZeniRolesDropDownField-BZKMSlzI-B3-a-Sde.js} +7 -7
  96. package/dist/assets/LinkJETransactionPage-D9Kae7Qd-CXNveZ-N.js +98 -0
  97. package/dist/assets/{LowBalancePopup-DPbr0gUO-CxEILVy0.js → LowBalancePopup-DqY0lHvk-Bg-BhJJe.js} +7 -7
  98. package/dist/assets/{MagicLinkACHDetailsPage-D11FRh9u-BBPz7AfC.js → MagicLinkACHDetailsPage-BctRnNGY-DEYW76Ne.js} +1 -1
  99. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CG7yqz6X-BMCdaHEj.js → MagicLinkDomesticWireDetailsPage-UjO7TGNI-jNwBg57q.js} +1 -1
  100. package/dist/assets/{MagicLinkInternationalWireDetailsPage-PkDENzkO-CQ6x4AIV.js → MagicLinkInternationalWireDetailsPage-ex7nPlxc-Cv717ajH.js} +1 -1
  101. package/dist/assets/{MagicLinkSuccessPage-BS9ddhQA-C5O3E-9t.js → MagicLinkSuccessPage-D3ORpbmL-DiCQcMcn.js} +1 -1
  102. package/dist/assets/MagicLinkTitleSection-Di20DmsJ-Dweea4Ge.js +17 -0
  103. package/dist/assets/{MailingDetailsSection-Cx1s77og-9yNUNzNW.js → MailingDetailsSection-D7d7fV5j-Cs19YBt0.js} +1 -1
  104. package/dist/assets/{MeetingCalenderPopup-DNthMj1J-CXzPKXlg.js → MeetingCalenderPopup-C-Ca0puH-BuYhTZNY.js} +1 -1
  105. package/dist/assets/{Menu-CIjXHu3p-Cmalcvja.js → Menu-FcKyIIWS-5DaRICk4.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-D77Axpyj-Ai6fCxsi.js → MyBankConnectionsSettingsPage-B4NuqJVI-C5C-Tkbz.js} +13 -13
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-CnZZJsMY-C0kXy7DL.js → MyPendingActivationChargeCardListPage-C4eMpxAr-CvtH5135.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-iXkYV9nQ-CFM1P4s_.js → MyProfileSettingsPage-D0ALOEls-D9BtQ_Rr.js} +9 -9
  109. package/dist/assets/{NavBarWithPicker-D8Mx-0SS-Bw0IYR8x.js → NavBarWithPicker-Bu03gVw7-BBANsf51.js} +6 -6
  110. package/dist/assets/{NavigationArrow-DOvptaEZ-Bf-QMj_h.js → NavigationArrow-D7Eb-FlF-DFK_OGPD.js} +2 -2
  111. package/dist/assets/{NavigationDots-HukimDRY-D9Wp9S6c.js → NavigationDots-CFjUchuX-BbVX67wD.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-BlOMnHda-BUDWmT_6.js → NewGlobalMerchantPage-rhhm0o-f-DpBge9cX.js} +9 -9
  113. package/dist/assets/{NoDataChart-DyGfwFNo-CLQrerWr.js → NoDataChart-D5DKMqIS-BEaaizBY.js} +5 -5
  114. package/dist/assets/{NoDataTable-CJseWuln-Cygckdm_.js → NoDataTable-CPEKYH-4-ChRW7vff.js} +1 -1
  115. package/dist/assets/{NotFoundPage-UG00-OBF-CdRsamc6.js → NotFoundPage-Cfk62GPw-D375IgXA.js} +3 -3
  116. package/dist/assets/{NotificationSettingsPage-COyRIY7z-Dbyjp6us.js → NotificationSettingsPage-BZtsKPBO-AXQQWsyF.js} +19 -19
  117. package/dist/assets/NotificationsListConfig-DiJLl-YW-Be2lRZvs.js +1 -0
  118. package/dist/assets/{NotificationsPage-DNSiZHw_-Bj3dzmk_.js → NotificationsPage-CgABP7O1-BFGmWSCt.js} +39 -39
  119. package/dist/assets/{OpExByVendorPage-DmSYppgo-COjO13JB.js → OpExByVendorPage-CMEokGbw-5aOd51kS.js} +8 -8
  120. package/dist/assets/{OverlayContainerPage-DB42kFLd-pwzAAum1.js → OverlayContainerPage-9K5jaX8Z-DmDVJorJ.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-Cvpj3Rx7-B_X_y6oD.js → PandLWithForecastPage-IizA8WJN-C3H0uMBf.js} +10 -10
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CsldB-k7-f3lPV-NL.js → PaymentAccountSetupBillingAddressSection-D6cW0hFS-DO3Osr4s.js} +9 -9
  123. package/dist/assets/{PeoplePage-CZhJF86l-D_AEtRE4.js → PeoplePage-lD4QPAkF-28PZT7ir.js} +29 -29
  124. package/dist/assets/{PortfolioAllocationFormPage-9GM9dOrM-BT7Q_b3W.js → PortfolioAllocationFormPage-pynkIQMX-BFz04Oo7.js} +11 -11
  125. package/dist/assets/{PortfolioDetails-BmAHjCVw-VXiwUltt.js → PortfolioDetails-Cs8o8xzm-bO5l1T7Z.js} +22 -22
  126. package/dist/assets/{ProductsCarousel-DnbMUIHf-CDI2aSn4.js → ProductsCarousel-vPy7zk53-DjiVBmpl.js} +7 -7
  127. package/dist/assets/{PromoBaseCards-BC5rOok_-CryGPY7g.js → PromoBaseCards-CWGpTa57-Bj-bRm1l.js} +3 -3
  128. package/dist/assets/{QBOConnectionDialog-Ci5zNza5-BQubclq5.js → QBOConnectionDialog-66XnPKaW-8EXYy72U.js} +10 -10
  129. package/dist/assets/QBOSetupSection-T0b8qjoq-C3lySFCv.js +79 -0
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BfU-6jeB-CaKrx3Ua.js → ReimbursementApprovalRuleDetailPage-BSI9Lg6a-wX6i8H_B.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-M8JZSUOE-Bppvfizw.js → ReimbursementApprovalRulesPage-XxC6pXqt-Bzz5uq1t.js} +33 -33
  132. package/dist/assets/{ReimbursementDetailPage-D54RyrP4-azFGfBxO.js → ReimbursementDetailPage-BwtY21D5-BOkbylET.js} +15 -15
  133. package/dist/assets/ReimbursementPromoPage-CmO1DP-8-DpBTbSy4.js +112 -0
  134. package/dist/assets/{ReimbursementSetUpPage-DgZLqhEv-BzIv1edv.js → ReimbursementSetUpPage-CrCsRxAy-Bpo-Mk0A.js} +9 -9
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DdaqWcd4-DN-OLQO2.js → ReimbursementsBulkReviewDrawerPage-Ct-lvcR1-DC9qwxGH.js} +1 -1
  136. package/dist/assets/{ReloadCard-Brl4XdzV-K0dTBTCK.js → ReloadCard-CJfjUA_Q-iqgRrGxj.js} +5 -5
  137. package/dist/assets/{ReportTableViewSelector-BUwsckE_-BLN_c3vd.js → ReportTableViewSelector-CkuvvlJm-btt9uZlN.js} +9 -9
  138. package/dist/assets/{ReportsPage-B_p1fu0v-Bun8YYap.js → ReportsPage-BJqldqjR-p6MwUSO1.js} +5 -5
  139. package/dist/assets/{RevenueChart-Wm8uOprY-CA_G3fH9.js → RevenueChart-BUnSkoUN-CWdeY5GO.js} +8 -8
  140. package/dist/assets/{ReviewDetailsPage-KBHsF8bJ-BOtPONmS.js → ReviewDetailsPage-8I09Puca-B9BkrydV.js} +23 -23
  141. package/dist/assets/{ReviewOverlay-Dw0qj7TA-DnC9Iul5.js → ReviewOverlay-Czmj4HG0-BLH60HLe.js} +25 -25
  142. package/dist/assets/{RoleWithToolTip-XfK92pcD-CVavs0oL.js → RoleWithToolTip-CNQZHC7h-LUv0Jw-2.js} +4 -4
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BWlIEli5-DBxUekBG.js → ScheduleDetailsFixedAssetsPage-1Y1ZylI7-BDsLy1RB.js} +8 -8
  144. package/dist/assets/{ScheduleDetailsPage-C1xCJX3o-CIdul5TY.js → ScheduleDetailsPage-BcRuA_7y-mmMtrxsU.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-BprYPV37-Cl2LrpiB.js → ScheduleSequenceTable-DC75D2Dx-BSdJrIG_.js} +17 -17
  146. package/dist/assets/{ScreenRoutes-IGwGtJ0n.js → ScreenRoutes-DRpA2l4T.js} +62 -62
  147. package/dist/assets/{SetUpAccountSection-Dr1TfnG_-5hIyS4v7.js → SetUpAccountSection-CaLxl4l3-BRnWdFeV.js} +15 -15
  148. package/dist/assets/{SetUpDefaultSection-Be5NU_Em-B29pYDRY.js → SetUpDefaultSection-a6NTauck-C-i38hil.js} +7 -7
  149. package/dist/assets/{SignIn-CE6RYJOs-CikIV0Hp.js → SignIn-_ZPdER_K-0cn49L67.js} +1 -1
  150. package/dist/assets/{SignInScreen-CKme_DxL.js → SignInScreen-BGUfMUqo.js} +1 -1
  151. package/dist/assets/{SpendManagementListViewPage-BESddx6p-BLBMNf4m.js → SpendManagementListViewPage-Cvev9izU-BZzSvbIK.js} +4 -4
  152. package/dist/assets/{SpendManagementPerTabPage-BzOooEMS-B_EkXhuq.js → SpendManagementPerTabPage-CbjC0IBF-BthyUtDp.js} +54 -54
  153. package/dist/assets/{SpendManagementSection-CczioNZH-Dkreg46Z.js → SpendManagementSection-BKTkeRK6-DIa3Rn7O.js} +12 -12
  154. package/dist/assets/{SpendMgmtSetupAccountSection-CVFRXVhZ-C1yMf9ET.js → SpendMgmtSetupAccountSection-D8Yv-Jng-D3WoppPf.js} +20 -20
  155. package/dist/assets/{StatementItem-Cptht91w-wlq1UAzv.js → StatementItem-DSJvKpAv-DV7N47r3.js} +8 -8
  156. package/dist/assets/StatementsPage-Bhk6u845-C7EltSZm.js +58 -0
  157. package/dist/assets/{StatusSwitcher-B3gZD4Xk-D9MKHZL1.js → StatusSwitcher-CTDNbKqC-Bv4PZo8C.js} +4 -4
  158. package/dist/assets/{SubTabSwitcher-ymwMdmPQ-B96M_uuA.js → SubTabSwitcher-D33kV-tw-BTeEHhHa.js} +2 -2
  159. package/dist/assets/{SummaryCard-CVO_hW5i-CSuBy2D2.js → SummaryCard-tsJZnge3-DE5AVV4x.js} +1 -1
  160. package/dist/assets/{TaskManagementPage-C8FiHas2-D3TuTHD7.js → TaskManagementPage-BW9M6AQs-DyLPADr6.js} +19 -19
  161. package/dist/assets/{TimeRangeSwitcher-CPklgWMn-BOlT7YwO.js → TimeRangeSwitcher-CkXysnFa-BxX2v8T-.js} +2 -2
  162. package/dist/assets/{TimeframeSwitcher-Do-13K0C-BsEeofAL.js → TimeframeSwitcher-B-S09J4A-MdxeQVLH.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcherWithToggle-CtVJiYRA-CJwvNUHv.js → TimeframeSwitcherWithToggle-B9Lo2-pD-oHueEdHK.js} +2 -2
  164. package/dist/assets/{TopExCard-CAbVMarX-BxCf3Zb4.js → TopExCard-DwP8Cppq-BA7R-fYL.js} +5 -5
  165. package/dist/assets/{TopExDetailPage-CN49s925-DmkXyXHQ.js → TopExDetailPage-CIMSDSxd-DWJg2Rhe.js} +8 -8
  166. package/dist/assets/{TransactionDetailPage-Q9XC1VgP-BVFfsWva.js → TransactionDetailPage-rwzAZT-Q-kE9Vj_Gw.js} +34 -34
  167. package/dist/assets/{TransactionList-Pn-voMDJ-DGAqnABY.js → TransactionList-CFYj7bYL-GEiFuum0.js} +12 -12
  168. package/dist/assets/{TransactionListBig-D4U1VfMP-DdNYiwzY.js → TransactionListBig-BidYBgz3-mdU3i6TS.js} +24 -24
  169. package/dist/assets/{TransactionListPage-Dcr5n_hs-DFnT8O1f.js → TransactionListPage-CImIYabg-BI9Hn9ZN.js} +3 -3
  170. package/dist/assets/{TransactionVendorDetailPage-DxDXndQ6-D-9aHV7e.js → TransactionVendorDetailPage-LzIzQGZ1-NlBjctZ1.js} +6 -6
  171. package/dist/assets/TransferDrawerPage-CztFCYxm-CBCCBWte.js +362 -0
  172. package/dist/assets/{TreasuryOverviewPage-BDYqKBrS-_o9rtQse.js → TreasuryOverviewPage-E5E5Gr3g-D2CrCBTV.js} +55 -57
  173. package/dist/assets/{TreasuryPromoPage-CTkEFZ57-BquHIsOx.js → TreasuryPromoPage-D2F4Y8gV-CYlJ3kU9.js} +20 -19
  174. package/dist/assets/{TreasurySetupPage-KI_5DQnD-DtRdjcAX.js → TreasurySetupPage-Dxa4l6Ec-D8eLBdo9.js} +8 -8
  175. package/dist/assets/TreasuryStatementsPage-DEhWu0S0-CbB6wAo4.js +58 -0
  176. package/dist/assets/TreasuryTaxLetterPage-CEMU2CI9-BGxkDpux.js +58 -0
  177. package/dist/assets/TreasuryTransferOrReviewPage-BfReLw_V-7MLhWFB6.js +506 -0
  178. package/dist/assets/{TrendChart-Ck4SVLtn-CXi992Ul.js → TrendChart-D1gtjDe3-DWpkP03z.js} +4 -4
  179. package/dist/assets/{TrendWithTransactions-BiWHzfIf-h_PZkaTI.js → TrendWithTransactions-BslpnJTN-CCs7L3oP.js} +7 -7
  180. package/dist/assets/{UncategorizedAccountsMappingPage-BEbiQMPB-BE67gz9h.js → UncategorizedAccountsMappingPage-Brm7fcuy-1WMghiUv.js} +9 -9
  181. package/dist/assets/{UnitIntegrationPage-DghvgER8-DUjp5v9z.js → UnitIntegrationPage-DhiEmm9g-CyoCc7wN.js} +5 -5
  182. package/dist/assets/{UploadAdditionalDocumentOverlay-BasudeQ3-WkwupeXg.js → UploadAdditionalDocumentOverlay-Dq1ToFCn-BQjCguyB.js} +2 -2
  183. package/dist/assets/Vendor2FAPopup-Brg14-Cw-BfoPqsuP.js +1 -0
  184. package/dist/assets/{VendorACHDetailsPage-DYwQERlH-u-_TPYjg.js → VendorACHDetailsPage-mk0vAyqE-BSy-kLup.js} +1 -1
  185. package/dist/assets/{VendorDetailPage-D-Mcnqod-DRjHRl2g.js → VendorDetailPage-CRhCXEsq-qmv0EtV4.js} +13 -13
  186. package/dist/assets/{VendorDomesticWireDetailsPage-sx958z_p-DGjTvY13.js → VendorDomesticWireDetailsPage-DhWkYV9N-CfYo0l4g.js} +1 -1
  187. package/dist/assets/{VendorFiling1099EditablePage-D0AAdqa3-Dbu0eezS.js → VendorFiling1099EditablePage-Bp5FgSiJ-DJr2e5wU.js} +32 -32
  188. package/dist/assets/{VendorFirstReviewPage-DS7Qb6O_-CtRrPKLj.js → VendorFirstReviewPage-XHOyQIOp-D3qnz2ww.js} +16 -16
  189. package/dist/assets/{VendorInternationalWireDetailsPage-CUw0lbm5-Ds_S2bsN.js → VendorInternationalWireDetailsPage-B13qu8u3-XGuYC0bw.js} +12 -12
  190. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-2BGGr3aV-Cm02ZRRr.js → VendorInternationalWireSwiftDetailsPage-Dtgusj3r-lncQfKmQ.js} +1 -1
  191. package/dist/assets/{VendorsAccountsSection-D5-r6xWp-Bb2HvHxE.js → VendorsAccountsSection-B-qorJ8x-D7fZrn7B.js} +4 -4
  192. package/dist/assets/VerifyDevice-CBO1Uzra-0Sdb0n5n.js +67 -0
  193. package/dist/assets/{WarningsDrawerPage-BEuiclea-DGE4v0Hu.js → WarningsDrawerPage-B4Nic3gX-jDmAJMW0.js} +10 -10
  194. package/dist/assets/{ZeniAccountDetailPage-DvUTbTBC-B58XYLhH.js → ZeniAccountDetailPage-IDGYSZVs-DmZJYRcm.js} +15 -15
  195. package/dist/assets/{ZeniAccountListViewPage-BpAa6XZc-sSA5NycY.js → ZeniAccountListViewPage-IlPP8Yit-dH-QXkwU.js} +26 -26
  196. package/dist/assets/ZeniAccountNavBarPieces-2j-ZQRIF-DhfLCa9V.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-BDzkOGum-Ddw-sKos.js → ZeniAccountPromoPage-BhFf42Fz-TRhbuR-7.js} +15 -15
  198. package/dist/assets/{ZeniAccountSetupPage-B6ExD1mo-DtoMVKCB.js → ZeniAccountSetupPage-DcYDO3x8-DOdNLBlO.js} +4 -4
  199. package/dist/assets/{ZeniCopyright-BcpJPWHG-aqipC7iB.js → ZeniCopyright-C4Ze2E8o-C33E_V5I.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-BQDqgNKJ-D3Rx0t-C.js → ZeniTransferAmountSlider-DFB0ntiR-IB41czFT.js} +2 -2
  201. package/dist/assets/{analyticsHelper-DxAemT72.js → analyticsHelper-BuNdZ9jh.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BP6myd2z-IG6G9Q9p.js → analyticsHelper-CsfdC0kT-BpVlkMRS.js} +1 -1
  203. package/dist/assets/{chartTypes-BU-pRq_m-BNABrIt4.js → chartTypes-CPj7oOMJ-Cv2ANOse.js} +1 -1
  204. package/dist/assets/{commonDimensions-BpaqG_u8-bPBJ7BtU.js → commonDimensions-CKs-7p-V-CmlPem1Z.js} +1 -1
  205. package/dist/assets/{detailCommon-dG26UIR2-Du_tf-0V.js → detailCommon-BJ8iCchG-CdCS4VPM.js} +6 -6
  206. package/dist/assets/{downloadPdf-B5Tb5dp_-C4780vVv.js → downloadPdf-hPck-AA1-CD5ZG46J.js} +1 -1
  207. package/dist/assets/{index-CbZTLtvs.js → index-CyJdCOlu.js} +4480 -4253
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-DOBKyY4b-y1aUwiix.js → mapLoadingInProgressToTreeNode-R394S2in-pIplKgrn.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bja0zC1h-BFJxO5iY.js → mapSectionWithAcOnlyToTreeNode-B20NECa8-DENXzcIZ.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-BnX1Qa3P-bqHYhPP-.js → mapSpacerToTreeNode-CLYF1Foh-BkgQTnh2.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BTMBlZfj-DW7k0pyS.js → mapTimeframeBalancesToTreeNode-B-iRb2_j-BOYVHL5U.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-DRU0rg28-CTqFcFWx.js → mapTimeframeBalancesToTreeNode-fLAswzPX-uvgKr4WV.js} +1 -1
  213. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CafUd-oV-M5D8OIRq.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CTmIxkdn-rpNZ4fKa.js} +1 -1
  214. package/dist/assets/{play-icon-CwzVvYsB-DjoVXxSh.js → play-icon-BZYr9mDs-DofqQFSd.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CTIZoP69-DhP0PBP-.js → toCOABalancesWithID-Dsa-tGTi-Bmzakp6x.js} +1 -1
  216. package/dist/assets/{toChartData-yWFIkpKX-iU9RbLET.js → toChartData-Cp_80Bi6-Dfd3dSx4.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-I90KNlm_-OeAa3kjr.js → treasuryColorHelper-CnKoJBRW-CDwAxole.js} +1 -1
  218. package/dist/assets/{uploadAttachment-BIyTb3QF-BJprEnkX.js → uploadAttachment-Cx3LGzsg-DDC6BFL5.js} +32 -32
  219. package/dist/assets/{uploadReceipts-CB79ouJi-DqMpy5A5.js → uploadReceipts-CwjPukNh-BNp5wSMb.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/AccountInfoPage-vDWC6AMf-Yo7vRxFj.js +0 -18
  223. package/dist/assets/ApAgingDetailPage-BZuNGMx_-Hc9KiYIG.js +0 -46
  224. package/dist/assets/AppBasePage-l_TUUps8-BdZGta7w.js +0 -68
  225. package/dist/assets/ChargeCardPromoPage-Dp01F4cn-BGnAP75r.js +0 -222
  226. package/dist/assets/CompleteProfile-D6jHfaC2-BAjYhWRD.js +0 -36
  227. package/dist/assets/CustomerOnboardingContainerPage-BhS5NmVt-ePZ8Lp4k.js +0 -1
  228. package/dist/assets/EditPeoplePage-DKJNf1oJ-DT58GFah.js +0 -55
  229. package/dist/assets/FeaturePreviewPage-BRqSxk9H-C5uU9wQY.js +0 -11
  230. package/dist/assets/HelpButton-ewiNuwlj-DtcvmbFW.js +0 -28
  231. package/dist/assets/InsightsSection-BZNwdoG4-DFSwQ90v.js +0 -27
  232. package/dist/assets/InvitePeoplePage-CJ4KyyxI-DVCbKs7n.js +0 -12
  233. package/dist/assets/InvoiceUploadSection-Dy_H9a8Y-Dv2LW-0K.js +0 -140
  234. package/dist/assets/LabeledAddressValue-BVpwGdA2-CIuUAEcq.js +0 -49
  235. package/dist/assets/LabeledAddressValueField-Eka4fXzu-BBxiflEl.js +0 -45
  236. package/dist/assets/LabeledDocumentField-BoraKtTI-BrK0QicB.js +0 -41
  237. package/dist/assets/LabeledDropDownFormattedTextField-elNvxcOB-BMj7fmh2.js +0 -59
  238. package/dist/assets/LinkJETransactionPage-BpQXs8JH-Bjzy2XV-.js +0 -98
  239. package/dist/assets/MagicLinkTitleSection-CBYkZ8RD-OqnDMduv.js +0 -17
  240. package/dist/assets/NotificationsListConfig-BR7QDiGp-C9AjhN7a.js +0 -1
  241. package/dist/assets/QBOSetupSection-BTOCiyES-cJZzoBZX.js +0 -79
  242. package/dist/assets/ReimbursementPromoPage-B2uVT4md-0og62qKp.js +0 -112
  243. package/dist/assets/StatementsPage-Bk_DWBsO-oO_5pc2Z.js +0 -58
  244. package/dist/assets/TransferDrawerPage-CuQct69A-CI2Fs3ur.js +0 -362
  245. package/dist/assets/TreasuryStatementsPage-DB1KkguP-Bjz83PUL.js +0 -58
  246. package/dist/assets/TreasuryTaxLetterPage-DbHBl6-e-BaDM3AA5.js +0 -58
  247. package/dist/assets/TreasuryTransferOrReviewPage-CLJ2x2M1-C0G9A0-P.js +0 -506
  248. package/dist/assets/Vendor2FAPopup-BVYQk2Yt-CFXnylIF.js +0 -1
  249. package/dist/assets/ZeniAccountNavBarPieces-CBRZuAIU-8yMtgWMI.js +0 -14
@@ -0,0 +1,506 @@
1
+ import{e as ge,E as $t,j as o,_ as P,gR as bt,M as xe,a0 as W,k as Ee,m as Ze,a4 as et,o as t,C as f,a3 as Le,L as St,am as vt,u as jt,a2 as H,bx as At,cS as tt,b as R,l as z,f_ as kt,c as S,s as Tt,h as ot,d as G,n as X,e_ as Pt,a as Ct,c7 as zt,F as Lt,fG as Dt,q as c,br as rt,c_ as nt,bL as it,cD as Ft,cu as Mt,fa as Rt,f2 as Bt,d6 as Ot,B as It,f3 as _t,dt as Et,c0 as Nt,b$ as Vt,aR as Wt,bd as Gt,fc as Xt,fl as Yt,ab as qt}from"./index-CyJdCOlu.js";import{n as r,b as x}from"./vendor-CnQcJ2Lu.js";import{V as at}from"./PortfolioDetails-Cs8o8xzm-bO5l1T7Z.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CnKoJBRW-CDwAxole.js";const Ht=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Jt=1e3;function Ut({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,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(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Jt,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Qt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Kt(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Qt=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Ht.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 Kt=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),eo=r.input`
2
+ width: 100%;
3
+ &[type="range"]::-webkit-slider-runnable-track {
4
+ height: 2px;
5
+ cursor: pointer;
6
+ background-color: ${e=>e.theme.colors.grey3};
7
+ }
8
+
9
+ &[type="range"] {
10
+ -webkit-appearance: none;
11
+ appearance: none;
12
+ }
13
+
14
+ &[type="range"]::-webkit-slider-thumb {
15
+ -webkit-appearance: none;
16
+ height: ${t.sp5};
17
+ width: ${t.sp5};
18
+ border-radius: 100%;
19
+ margin-top: -${t.sp3}; // Centers thumb on the track
20
+ box-shadow: ${t.sp0} ${t.sp0} 2px ${S.blackColor};
21
+ background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${e.theme.mode==="dark"?"light":"dark"}.svg)`};
22
+ background-repeat: no-repeat;
23
+ cursor: pointer;
24
+ }
25
+ `,to=r.div`
26
+ position: relative;
27
+ width: 70%;
28
+ margin-left: 30px;
29
+ margin-right: 30px;
30
+ margin-bottom: 20px;
31
+ margin-top: ${t.sp5};
32
+ min-height: ${t.sp8};
33
+ `,oo=r.div`
34
+ position: absolute;
35
+ height: 2px;
36
+ margin-top: -${t.sp2};
37
+ background-color: ${e=>e.theme.colors.hero};
38
+ `,ro=r.div`
39
+ position: absolute;
40
+ bottom: ${t.sp0};
41
+ top: ${t.sp5};
42
+ width: 100%;
43
+ display: flex;
44
+ justify-content: center;
45
+ `,no=r.span`
46
+ position: absolute;
47
+ cursor: pointer;
48
+ transform: translateX(-50%);
49
+ `,io=r(G)`
50
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
+ white-space: nowrap;
52
+ `,ao=r(G)`
53
+ position: absolute;
54
+ top: -${t.sp5};
55
+ white-space: nowrap;
56
+ color: ${S.primaryDark};
57
+ background-color: ${S.success};
58
+ display: flex;
59
+ border-radius: ${t.sp1};
60
+ justify-content: center;
61
+ align-items: center;
62
+ padding: 2px ${t.sp2};
63
+ `,J={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])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:_},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(qo,{}):o.jsx(Ho,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Yo,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(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},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=H(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=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ne,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:_.reviewAndConfirm}),o.jsx(Go,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Do,{}),o.jsx(Xo,{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(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Lo,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(Ne,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:_.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:so,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(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(No,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("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&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(_o,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(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"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
64
+ display: flex;
65
+ flex-direction: column;
66
+ `,le=r(G)`
67
+ color: ${e=>e.theme.colors.hero};
68
+ `,ce=r(X)`
69
+ display: flex;
70
+ align-items: center;
71
+ `,$o=r.div`
72
+ display: flex;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ background-color: ${e=>e.theme.colors.grey5};
76
+ border: 1px solid ${e=>e.theme.colors.grey3};
77
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
78
+ border-radius: ${t.sp2};
79
+ padding: ${e=>`${J.elementsContainerPadding.valuePx(e.windowSize)}`};
80
+ gap: ${t.sp4};
81
+ ${e=>e.windowSize==="small"&&`
82
+ width: auto;
83
+ `}
84
+ `,bo=r.div`
85
+ display: flex;
86
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
+ justify-content: space-between;
88
+ align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
89
+ width: 100%;
90
+ background-color: ${e=>e.theme.colors.grey5};
91
+ `,de=r.div`
92
+ display: flex;
93
+ flex-direction: column;
94
+ gap: ${t.sp1};
95
+ padding: ${t.sp2} ${t.sp3};
96
+ background-color: ${e=>e.theme.colors.grey4};
97
+ border: 1px solid ${e=>e.theme.colors.grey3};
98
+ border-radius: ${t.sp2};
99
+ width: ${e=>e.windowSize==="small"?"auto":"288px"};
100
+ `,So=r.div`
101
+ padding: ${t.sp2} ${t.sp3};
102
+ background-color: ${e=>e.theme.colors.grey4};
103
+ border: 1px solid ${e=>e.theme.colors.grey1};
104
+ border-radius: ${t.sp2};
105
+ `,vo=r.div`
106
+ display: flex;
107
+ width: 100%;
108
+ justify-content: space-between;
109
+ padding: ${t.sp3} ${t.sp4};
110
+ background-color: ${S.importantLight};
111
+ border-radius: ${t.sp2};
112
+ `,jo=r.div`
113
+ display: flex;
114
+ flex-direction: column;
115
+ margin-left: ${t.sp2};
116
+ `,Ao=r(it)`
117
+ color: ${S.important};
118
+ `,ko=r(X)`
119
+ color: ${S.important};
120
+ `,To=r.div`
121
+ margin-top: ${t.sp3};
122
+ display: flex;
123
+ background-color: ${e=>e.theme.colors.grey5};
124
+ justify-content: space-between;
125
+ padding: ${t.sp3} ${t.sp4};
126
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
127
+ border-radius: ${t.sp2};
128
+ box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
+ `,Po=r.div`
130
+ height: auto;
131
+ padding-left: ${e=>`${J.containerPaddingLeft.valuePx(e.windowSize)}`};
132
+ padding-right: ${e=>`${J.containerPaddingRight.valuePx(e.windowSize)}`};
133
+ margin-bottom: auto;
134
+ `,Co=r.div`
135
+ display: flex;
136
+ align-items: flex-start;
137
+ `,zo=r.div``,Lo=r(nt)`
138
+ width: ${t.sp4};
139
+ height: ${t.sp4};
140
+ color: ${S.important};
141
+ `,Ne=r(Le)`
142
+ cursor: pointer;
143
+ color: ${e=>e.theme.colors.hero};
144
+ width: ${t.sp4};
145
+ height: ${t.sp4};
146
+ min-height: ${t.sp4};
147
+ &:hover {
148
+ color: ${e=>e.theme.colors.primary};
149
+ }
150
+ `,Do=r.div`
151
+ display: flex;
152
+ flex: 1;
153
+ background-color: ${e=>e.theme.colors.grey3};
154
+ min-height: 1px;
155
+ max-height: 1px;
156
+ `,ue=r(G)`
157
+ color: ${e=>e.theme.colors.hero};
158
+ `,Fo=r.div`
159
+ display: flex;
160
+ flex-direction: column;
161
+ padding-top: ${t.sp3};
162
+ padding-bottom: ${e=>`${J.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
+ `,Mo=r.div`
164
+ display: flex;
165
+ flex-direction: row;
166
+ justify-content: flex-end;
167
+ align-items: center;
168
+ width: 100%;
169
+ top: ${t.sp0};
170
+ padding: ${e=>`${J.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
+ z-index: 2;
172
+ background-color: transparent;
173
+ `,Ro=r(ot)`
174
+ ${e=>`${Ce.pageTitle.style(e.windowSize)}`};
175
+ color: ${e=>e.theme.colors.primary};
176
+ padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
177
+ ${e=>e.windowSize==="small"&&`
178
+ padding-bottom: ${t.sp0};
179
+ `}
180
+ `,Bo=r(G)`
181
+ color: ${e=>e.theme.colors.hero};
182
+ display: flex;
183
+ flex-direction: row;
184
+ align-items: center;
185
+ gap: ${t.sp2};
186
+ `,Oo=r.span`
187
+ margin-left: ${t.sp2};
188
+ `,Ae=r.div``,Io=r(Gt)`
189
+ color: ${e=>e.theme.colors.brandColorGoldDark};
190
+ margin-left: ${t.sp1};
191
+ `,_o=r.div`
192
+ width: ${t.sp1};
193
+ height: ${t.sp1};
194
+ min-width: ${t.sp1};
195
+ background-color: ${e=>e.theme.colors.grey1};
196
+ border-radius: 50%;
197
+ `,Eo=r.img`
198
+ display: flex;
199
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
200
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
201
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
202
+ margin-right: ${t.sp2};
203
+ `,No=r.div`
204
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
205
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
206
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
207
+ margin-right: ${t.sp2};
208
+ `,Vo=r(Yt)`
209
+ min-width: inherit;
210
+ width: inherit;
211
+ height: inherit;
212
+ margin-right: ${t.sp2};
213
+ `,Ve=r.div`
214
+ min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
215
+ width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
216
+ height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
217
+ margin-right: ${t.sp2};
218
+ `,We=r(Xt)`
219
+ min-width: inherit;
220
+ width: inherit;
221
+ height: inherit;
222
+ margin-right: ${t.sp2};
223
+ `,Wo=r.div`
224
+ width: ${e=>e.isForReview?t.sp6:t.sp4};
225
+ height: ${e=>e.isForReview?t.sp6:t.sp4};
226
+ margin-right: 12px;
227
+ margin-left: ${t.sp1};
228
+ color: ${e=>e.theme.colors.hero};
229
+ `,Go=r(rt)`
230
+ color: ${e=>e.theme.colors.primary};
231
+ margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
232
+ ${e=>e.windowSize==="small"&&`
233
+ margin-top: ${t.sp1};
234
+ margin-bottom: ${t.sp1};
235
+ `}
236
+ `,Xo=r(X)`
237
+ color: ${e=>e.theme.colors.hero};
238
+ margin-top: ${t.sp3};
239
+ `,Yo=r(Wt)`
240
+ width: ${t.sp4};
241
+ height: ${t.sp4};
242
+ color: ${e=>e.theme.colors.hero};
243
+ `,qo=r(Nt)`
244
+ width: ${t.sp4};
245
+ height: ${t.sp4};
246
+ color: ${e=>e.theme.colors.hero};
247
+ align-self: center;
248
+ `,Ho=r(Vt)`
249
+ width: ${t.sp4};
250
+ height: ${t.sp4};
251
+ color: ${e=>e.theme.colors.hero};
252
+ align-self: center;
253
+ `,pe=r.div`
254
+ width: 1px;
255
+ height: 25px;
256
+ background-color: ${e=>e.theme.colors.grey1};
257
+ position: absolute;
258
+ right: 50%;
259
+ bottom: -25px;
260
+ `,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Jo},billPay:{insufficientFunds:Ge}}}=xe.getLocalizedStrings(),st="amount",Uo="transferTo",Qo="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=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 Ko({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,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,Q]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[K,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[L,we]=x.useState(b.linkToken??null),[ee,De]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=H(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=H($e),Oe=H(be),Se=e.transferMoneyParties.map(s=>s.id),ve=H(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),De(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:Y}=Pt({token:L,onSuccess:dt,onExit:ut}),q=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),Y?te():De(!0)},[te,Y]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Xe(e,n,q),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==L&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,L]),x.useEffect(()=>{b.linkToken===L&&b.fetchStatus.fetchState==="Completed"&&Y&&Me(!0)},[Y,L,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Xe(e,n,q))},[Y,L,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,q]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const _e={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:_e,fromAccount:ne,toAccount:ie};Q(_e.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:D}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!D.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(D,j))return Ge.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(D,y.accountBalance.available))return Ge.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:D,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Lt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.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:Te(E,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,D),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.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:Te(E,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Dt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:D.amount===0?void 0:D.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:D,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Ut,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:Q})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:K,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(He,{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(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(He,{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(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!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(l&&d){const p={label:Jo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Xe=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.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
+ margin-top: ${t.sp3};
262
+ display: flex;
263
+ background-color: ${e=>e.theme.colors.grey5};
264
+ justify-content: space-between;
265
+ padding: ${t.sp3} ${t.sp4};
266
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
267
+ border-radius: ${t.sp2};
268
+ box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
269
+ `,er=r.form`
270
+ display: flex;
271
+ flex-direction: column;
272
+ justify-content: center;
273
+ align-items: center;
274
+ `,tr=r.div`
275
+ display: flex;
276
+ width: 100%;
277
+ justify-content: space-between;
278
+ padding: ${t.sp3} ${t.sp4};
279
+ background-color: ${S.importantLight};
280
+ border-radius: ${t.sp2};
281
+ `,or=r.div`
282
+ display: flex;
283
+ align-items: flex-start;
284
+ `,rr=r.div``,nr=r(nt)`
285
+ width: ${t.sp4};
286
+ height: ${t.sp4};
287
+ color: ${S.important};
288
+ `,ir=r.div`
289
+ display: flex;
290
+ flex-direction: column;
291
+ margin-left: ${t.sp2};
292
+ `,ar=r(it)`
293
+ color: ${S.important};
294
+ `,sr=r(X)`
295
+ color: ${S.important};
296
+ `,lr=r(rt)`
297
+ color: ${e=>e.theme.colors.primary};
298
+ margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
299
+ ${e=>e.windowSize==="small"&&`
300
+ margin-top: ${t.sp1};
301
+ margin-bottom: ${t.sp1};
302
+ `}
303
+ `,Ye=r(Ft)`
304
+ border-radius: ${t.sp2};
305
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
306
+ `,cr=r.div`
307
+ display: flex;
308
+ flex-direction: column;
309
+ width: 100%;
310
+ background-color: ${e=>e.theme.colors.grey5};
311
+ border: 1px solid ${e=>e.theme.colors.grey3};
312
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
313
+ border-radius: ${t.sp2};
314
+ `,Pe=r.div`
315
+ display: flex;
316
+ flex: 1;
317
+ background-color: ${e=>e.theme.colors.grey3};
318
+ min-height: 1px;
319
+ max-height: 1px;
320
+ `,ze=r.div`
321
+ display: flex;
322
+ flex-direction: row;
323
+ padding: ${t.sp2};
324
+ padding-left: ${({size:e})=>g.rowContentSelectPaddingLeft.valuePx(e)};
325
+ justify-content: space-between;
326
+ color: ${e=>e.theme.colors.hero};
327
+ &:hover {
328
+ z-index: 1;
329
+ outline: 1px solid ${e=>e.theme.colors.primary};
330
+ .select-control {
331
+ background-color: ${e=>e.theme.colors.background};
332
+ }
333
+ }
334
+ &:focus-within {
335
+ border-color: ${e=>e.theme.colors.primary};
336
+ color: ${e=>e.theme.colors.primary};
337
+ z-index: 2;
338
+ outline: 1px solid ${e=>e.theme.colors.primary};
339
+ }
340
+ :first-of-type {
341
+ border-top-left-radius: inherit;
342
+ border-top-right-radius: inherit;
343
+ }
344
+
345
+ ${({size:e})=>e==="small"&&`
346
+ .select-value-container {
347
+ margin-right: ${t.sp1} !important;
348
+ }
349
+ `}
350
+ `,dr=r(ze)`
351
+ padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
352
+ padding-top: ${t.sp2};
353
+ `,ur=r(Le)`
354
+ cursor: pointer;
355
+ color: ${e=>e.theme.colors.hero};
356
+ width: ${t.sp4};
357
+ height: ${t.sp4};
358
+ min-height: ${t.sp4};
359
+ &:hover {
360
+ color: ${e=>e.theme.colors.primary};
361
+ }
362
+ `,pr=r.div`
363
+ margin-bottom: ${t.sp6};
364
+ width: 90%;
365
+ `,hr=r.div`
366
+ background-color: ${e=>e.theme.colors.background};
367
+ border: 1px solid ${e=>e.theme.colors.grey3};
368
+ border-top: none;
369
+ min-height: 182px;
370
+ display: flex;
371
+ justify-content: center;
372
+ align-items: center;
373
+ flex-direction: column;
374
+ `,mr=r(X)`
375
+ color: ${e=>e.theme.colors.hero};
376
+ margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
377
+ white-space: pre-line;
378
+ text-align: center;
379
+ `,fr=r.div`
380
+ ${e=>me.yieldEarned.style(e.windowSize)}
381
+ color: ${S.success};
382
+ white-space: nowrap;
383
+ `,gr=r.div`
384
+ display: flex;
385
+ align-items: center;
386
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
387
+ justify-content: space-between;
388
+ padding: ${t.sp2} ${t.sp3};
389
+ background-color: ${e=>e.theme.colors.grey3};
390
+ border-bottom-right-radius: ${t.sp1};
391
+ border-bottom-left-radius: ${t.sp1};
392
+ `,xr=r.div`
393
+ display: flex;
394
+ flex-direction: row;
395
+ align-items: center;
396
+ `,qe=r.div`
397
+ ${e=>me.calculatorFooterText.style(e.windowSize)}
398
+ color: ${e=>e.theme.colors.hero};
399
+ cursor: pointer;
400
+ `,He=r.div`
401
+ display: flex;
402
+ flex-direction: row;
403
+ align-items: center;
404
+ gap: 6px;
405
+ align-self: ${e=>e.windowSize==="small"?"flex-end":"center"};
406
+ &:hover {
407
+ .calculatorFooterLeftText {
408
+ color: ${e=>e.theme.colors.primary};
409
+ }
410
+ .calculatorFooterArrowIcon {
411
+ color: ${e=>e.theme.colors.primary};
412
+ }
413
+ }
414
+ `,wr=r.div`
415
+ display: ${e=>e.windowSize==="small"?"none":"block"};
416
+ width: ${t.sp1};
417
+ height: ${t.sp1};
418
+ min-width: ${t.sp1};
419
+ margin: 0 ${t.sp2};
420
+ background-color: ${e=>e.theme.colors.grey1};
421
+ border-radius: 50%;
422
+ `,yr=r.div`
423
+ display: flex;
424
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
425
+ align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
426
+ width: ${e=>e.windowSize==="small"?"100%":"unset"};
427
+ `,$r=r(It)`
428
+ color: ${e=>e.theme.colors.hero};
429
+ `,br=r(_t)`
430
+ cursor: pointer;
431
+ width: 12px;
432
+ height: 12px;
433
+ min-width: 12px;
434
+ min-height: 12px;
435
+ color: ${e=>e.theme.colors.hero};
436
+ `,Sr=r(Et)`
437
+ cursor: pointer;
438
+ width: 12px;
439
+ height: 12px;
440
+ min-width: 12px;
441
+ min-height: 12px;
442
+ color: ${e=>e.theme.colors.hero};
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])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Je,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Gr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,K=Q.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:L,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ue,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ke,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${L?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:K,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ue,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ke,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Ko,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:K,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Je.review},cancelBtn:{label:Je.cancel,onClick:()=>{h()}}}):null]})})},jr=r(X)`
444
+ color: ${e=>e.theme.colors.hero};
445
+ `,Ar=r(G)`
446
+ color: ${e=>e.theme.colors.hero};
447
+ `,kr=r.div`
448
+ display: flex;
449
+ flex-direction: column;
450
+ background-color: ${e=>e.theme.colors.grey4};
451
+ overflow-x: hidden;
452
+ height: 100vh;
453
+ width: 100%;
454
+ `,Tr=r(St)`
455
+ color: ${e=>e.theme.colors.primary};
456
+ text-align: center;
457
+ `,Pr=r(vt)`
458
+ display: inline;
459
+ `,Ue=r.div`
460
+ height: ${e=>e.isTransferCompleted?"100%":"auto"};
461
+ padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
463
+ margin-bottom: auto;
464
+ `,Cr=r.div`
465
+ display: flex;
466
+ justify-content: center;
467
+ flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
468
+ margin-top: ${t.sp6};
469
+ gap: ${e=>`${U.buttonTrayGap.valuePx(e.windowSize)}`};
470
+ `,zr=r.div`
471
+ height: 80%;
472
+ display: flex;
473
+ flex-direction: column;
474
+ justify-content: center;
475
+ margin: ${e=>`${t.sp0} ${U.successContentMargin.valuePx(e.windowSize)}`};
476
+ align-items: center;
477
+ `,Qe=r.div`
478
+ display: flex;
479
+ flex-direction: row-reverse;
480
+ justify-content: space-between;
481
+ align-items: center;
482
+ width: 100%;
483
+ top: ${t.sp0};
484
+ padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
+ z-index: 2;
486
+ background-color: ${e=>e.theme.colors.grey4};
487
+ `,Ke=r(Le)`
488
+ cursor: pointer;
489
+ color: ${e=>e.theme.colors.hero};
490
+ width: ${t.sp4};
491
+ height: ${t.sp4};
492
+ min-height: ${t.sp4};
493
+ &:hover {
494
+ color: ${e=>e.theme.colors.primary};
495
+ }
496
+ `,Lr=r(Tt)`
497
+ color: ${e=>e.theme.colors.primary};
498
+ margin-top: ${t.sp3};
499
+ margin-bottom: ${t.sp0};
500
+ margin-right: ${t.sp3};
501
+ `,Dr=r(ot)`
502
+ ${e=>`${vr.formTitle.style(e.windowSize)}`};
503
+ color: ${e=>e.theme.colors.primary};
504
+ margin-top: ${t.sp3};
505
+ margin-bottom: ${t.sp2};
506
+ `;export{Gr as default};
@@ -1,6 +1,6 @@
1
- import{M as w,j as n,l as u,u as Z,_ as Y,aj as z,b6 as B,b7 as F,aw as P,f as k,av as R,ab as O,b8 as _,ax as q,ba as K,o as L,g as G,e as N}from"./index-CbZTLtvs.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-BU-pRq_m-BNABrIt4.js";import{o as X}from"./toCOABalancesWithID-CTIZoP69-DhP0PBP-.js";import{V as H}from"./toChartData-yWFIkpKX-iU9RbLET.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.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,b6 as B,b7 as F,aw as P,v as k,av as R,ab as O,b8 as _,ax as q,ba as G,o as L,c as K,n as N}from"./index-CyJdCOlu.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 J}from"./chartTypes-CPj7oOMJ-Cv2ANOse.js";import{o as Q}from"./toCOABalancesWithID-Dsa-tGTi-Bmzakp6x.js";import{V as X}from"./toChartData-Cp_80Bi6-Dfd3dSx4.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const H=$.div`
2
2
  display: flex;
3
- `,J=$.div`
3
+ `,I=$.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  border-radius: ${L.sp1};
@@ -8,9 +8,9 @@ import{M as w,j as n,l as u,u as Z,_ as Y,aj as z,b6 as B,b7 as F,aw as P,f 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??G.neutralGrey2Light};
11
+ color: ${e=>e.color??K.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}: ${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};
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(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${J(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=Q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,X(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(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=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,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c1 as E,q as a,e as K,a3 as X}from"./index-CbZTLtvs.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import _ from"./TrendChart-Ck4SVLtn-CXi992Ul.js";import{C as V}from"./NoDataChart-DyGfwFNo-CLQrerWr.js";import{B as W}from"./InsightsSection-BZNwdoG4-DFSwQ90v.js";import{d as Z}from"./TransactionList-Pn-voMDJ-DGAqnABY.js";const G=n.div`
1
+ import{e as D,j as i,m as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c4 as E,q as a,n as _,a3 as K}from"./index-CyJdCOlu.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-D1gtjDe3-DWpkP03z.js";import{C as W}from"./NoDataChart-D5DKMqIS-BEaaizBY.js";import{B as J}from"./InsightsSection-DtBq9eII-CGUvYjY9.js";import{d as X}from"./TransactionList-CFYj7bYL-GEiFuum0.js";const Z=n.div`
2
2
  display: inline-block;
3
- `,J=n.div`
3
+ `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
5
5
  display: flex;
6
6
  align-items: center;
@@ -17,16 +17,16 @@ 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,c1 as E,
17
17
  flex-direction: row;
18
18
  justify-content: center;
19
19
  align-items: center;
20
- `,U=n(K)`
20
+ `,U=n(_)`
21
21
  margin-right: ${t.sp2};
22
- `,ee=n(X)`
22
+ `,ee=n(K)`
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(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`
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(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,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c1 as E,
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(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`
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(X,{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%;
@@ -113,4 +113,4 @@ 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,c1 as E,
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(),[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};
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(W,{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(V,{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(J,{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};