@zeniai/web-cockpit-ui 1.13.96-dev → 1.13.97-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 (248) hide show
  1. package/dist/assets/{ACHDetailsPage-C_NL9J0X-DQ3wv9Rt.js → ACHDetailsPage-Cwc2nmvY-CBrfq4gI.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DyiOQxOC-Deykua_G.js → AIPerformancePage-CK4ZdUEb-BnOLhCP_.js} +21 -21
  3. package/dist/assets/{AccountInfoPage-xglon85A-yRVQMsLQ.js → AccountInfoPage-LiZYkJMA-DAD4cJi7.js} +5 -5
  4. package/dist/assets/AccountInfoPageContent-BTk2gRyM-_lQwCngs.js +149 -0
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js → AccountReconDetailsDrawerPage-CBOR2m1X-DHoJQIYl.js} +17 -17
  6. package/dist/assets/{AccountRow-CP7Tu1pO-VLQJgkE6.js → AccountRow--5DnpNqk-CZEL3hfP.js} +23 -23
  7. package/dist/assets/{AccountsPromoCardStack-1elvD1M0-GOX35w9m.js → AccountsPromoCardStack-DCI8_ihc-CBYLqvzT.js} +22 -22
  8. package/dist/assets/{AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js → AddAddressForCardDrawer-C_RALUZ7-CbxMebAE.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DsqplF5y-BOnzBTtb.js → AddToWalletPage-7sC3Q2Pb-BKqtOWBj.js} +19 -19
  10. package/dist/assets/{AgingReportsPage-DClcRhxg-CS8rEKD_.js → AgingReportsPage-PrvYryW8-D41Ajbek.js} +6 -6
  11. package/dist/assets/{AllUserItems-BOwAIYTQ-ikKyJOZ6.js → AllUserItems-DlTukPhY-Dt5EiXuN.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js → ApAgingDetailPage-BVciGQma-3cn8m00W.js} +4 -4
  13. package/dist/assets/{AppBasePage-C7kCz0qg-gwqzuxWV.js → AppBasePage-uJGLWCbr-D64mYn-E.js} +2 -2
  14. package/dist/assets/{AppDrawerContent-B63CbHT7-CTgXtY-R.js → AppDrawerContent-SD57OqHe-B8SR_oN_.js} +7 -7
  15. package/dist/assets/ApprovalRulesSettingsPage-CXh9tY6X-C-lG0QIf.js +47 -0
  16. package/dist/assets/ArAgingChart-GL4vkypx-Dbm9VICC.js +24 -0
  17. package/dist/assets/{ArAgingDetailPage-AiwyJUwp-CLdUA32y.js → ArAgingDetailPage-CoFL0N3--CrJAJnYy.js} +1 -1
  18. package/dist/assets/{AttachmentView-wIV1i6gf-__2UovKF.js → AttachmentView-C3xQE0te-GHi93uGT.js} +5 -5
  19. package/dist/assets/{BankAccountSection-cVBEl5IN-DpEdLEP3.js → BankAccountSection-Bi3uoDPa-Dwk4Gyix.js} +2 -2
  20. package/dist/assets/{BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js → BankAccountWarningSection-DKdgmMHQ-KMb42RR1.js} +8 -8
  21. package/dist/assets/{BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js → BankConnectionsSettingsPage-1zM9RKRI-Nh6SLt6_.js} +33 -33
  22. package/dist/assets/{BillDetailPage-C9NC9kTK-BYRIHiN2.js → BillDetailPage-BoxJCC9n-Ba4FzuhK.js} +11 -11
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js → BillPayApprovalRuleDetailPage-BW3sj5ug-1IsB7Eat.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js → BillPayApprovalRulesPage-DLA6R7dC-RNBSWaWd.js} +6 -6
  25. package/dist/assets/{BillPayPromoPage-CWGX6uCi--607mHc3.js → BillPayPromoPage--BGTNJhm-CdKwFnau.js} +4 -4
  26. package/dist/assets/BillPaySetUpPage-_s4R537_-CX8mxqXI.js +42 -0
  27. package/dist/assets/{BillingSettingsPage-Bx7lHgIy-CyArwb3F.js → BillingSettingsPage-DgbRhg-m-Bq9qLD4C.js} +5 -5
  28. package/dist/assets/{BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js → BillsBulkReviewDrawerPage-CKspyZz7-DTsemI8i.js} +1 -1
  29. package/dist/assets/{BoxItem-DX1sag1G-C0OcCbod.js → BoxItem-BHtgE0KL-NzNpvF1b.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DXh-11f9-BWywYgcT.js → BusinessVerificationPage-CpfsllRZ-DNYUoMRQ.js} +14 -14
  31. package/dist/assets/{CardNumberSubText-iYF6MLsf-BnbFJt1d.js → CardNumberSubText-BHe1nqr7-BOPjNd8o.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DVsCU69u-iWc1QiKl.js → CashbackDetailPage-C9RhIR0R-BipiQJ8m.js} +24 -24
  33. package/dist/assets/ChargeCardDetailPage-Kygr13jR-Bjl6Z9f1.js +1447 -0
  34. package/dist/assets/ChargeCardListPage-BnzdzSXW-nI0OYzh1.js +355 -0
  35. package/dist/assets/{ChargeCardListTable-PTRaj9T6-GxUnY44G.js → ChargeCardListTable-C2nnAxo5-B2B4JtDk.js} +18 -18
  36. package/dist/assets/ChargeCardPromoPage-CSNn9X5i-BOkfBhCe.js +175 -0
  37. package/dist/assets/ChargeCardSetupPage-DE1pK_7F-Bt-e2YuY.js +36 -0
  38. package/dist/assets/{ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js → ChargeCardStatementsPage-DK-pEljz-6eoWIwr-.js} +3 -3
  39. package/dist/assets/{ChargeCardUtils-BvVm2SMq-B6pl3c2F.js → ChargeCardUtils-BxyMuU6--Bmupo3qZ.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CI8lEzod-DNTlxx9v.js → ChaseOverlay-CRiYxWuZ-BVVt_vtO.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js → CheckDepositDrawerPage-WYiirlL8-B4nSgiLA.js} +16 -16
  42. package/dist/assets/CollapsableReportTable-BGT77T9W-C2GRNmrk.js +2860 -0
  43. package/dist/assets/{CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js → CompanyOfficerDetailsSection-BPZU90Im-B9mkgd-O.js} +35 -35
  44. package/dist/assets/{CompanyPassportCard-P0g_DRwA-XRQTRVQK.js → CompanyPassportCard-PXdmJC_B-DzV8p2uA.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js → CompanyPassportPage-MxIwsh3W-C8rdGZWZ.js} +37 -37
  46. package/dist/assets/{CompleteProfile-DTSAIKgF-WX_HRfP5.js → CompleteProfile-Bd9xEPVl-FA5xRrEh.js} +4 -4
  47. package/dist/assets/{ConfettiBurst-CjONFCxD-BbasMJ1h.js → ConfettiBurst-CMpZ2feY-D_Hm0eZk.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js → CreateOrEditVendorPage-DgHvZfWv-BeviSVbI.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js → CreditCardPaymentDrawerPage-C2ikLG7P-Bxh5aiVl.js} +15 -15
  50. package/dist/assets/{CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js → CreditCardPaymentPlgSection-M69ECpN9-DSnTfkj_.js} +8 -8
  51. package/dist/assets/{CurrencySelectField-BRkdK9Tx-DZlSSgUd.js → CurrencySelectField-B3AvTbkp-B96ZkEh4.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js → CustomerOnboardingActivationPage-C7eddGoB-zo55D8hK.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-9UTLABZ0-BN3o6fR0.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js → CustomerOnboardingDetailPageSkeleton-BIAeoXCV-FTscuev6.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js → CustomerOnboardingNoStepsPage-BzO6XZ0H-lf-bevRO.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js → CustomerOnboardingPage-7yWIaJvU-8V6UKhlh.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js → CustomerOnboardingProductSuitePage-Tvyrs9Cm-De_nWRUb.js} +5 -5
  58. package/dist/assets/Dashboard-CA9685lJ-DpHlV4-C.js +778 -0
  59. package/dist/assets/DashboardReportPage-DQoFWd5C-pKAB7-wx.js +349 -0
  60. package/dist/assets/{DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js → DepositAccTransactionItem-CiRcbfmm-BtrufbNC.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js → DepositAccTransactionListPage-DsNLDlHv-WmpDQp-W.js} +7 -7
  62. package/dist/assets/{DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js → DocumentSecurityBanner-CIWoR_yI-CLvomSrK.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js → DomesticWireDetailsPage-C6x8Gz4g-BspxgH-d.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CVay7PEO-C-BIaHoh.js → DownloadOverlay-D1kGkMFo-DoqMhO9h.js} +12 -12
  65. package/dist/assets/{DrawerPage-BtsjUVWT-DKZ4-9Rc.js → DrawerPage-CQkJW5hg-CGoGQKXm.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-q8Se6bGZ-Cx2X58jF.js → EditPeoplePage-m2qls8hv-DIqi_cWW.js} +17 -17
  67. package/dist/assets/{EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js → EditReimbursementDetailPage-IlSyu79B-DoScOYgQ.js} +72 -72
  68. package/dist/assets/{EntityDetailPage-Bux6DlIw-CDR-iDms.js → EntityDetailPage-CcJJwGo7-DdfC9C8P.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-D8dz1hFt-Bakc19a1.js → EntitySummarySection-JxKHehL1-CSskvKc8.js} +13 -13
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js → ExpenseAutomationOverviewPage-iAUtjSnw-DRbadYwX.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-aNc126hN-DZa4KtXO.js → ExpenseAutomationPage-B0f86olm-C_aNA9t4.js} +74 -74
  72. package/dist/assets/{ExpressPayPage-CWVGXvfN-Bzdld5fx.js → ExpressPayPage-B-at6uDS-CSzm_3lE.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-C0nvVXP--BF6s18r5.js → FeaturePreviewPage-gSb_rct_-DkcBwtcW.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-Cf0s1DGX-BFVvc78r.js → FollowStepsSection-eedORgku-DnQuyjmJ.js} +12 -12
  75. package/dist/assets/{GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js → GlobalReviewListPage-BfPwveCc--y8DCfXs.js} +10 -10
  76. package/dist/assets/HelpButton-DvD6UJq--BRQPdGD9.js +28 -0
  77. package/dist/assets/{InformationCardStack-BALkGk48-BWmXScs3.js → InformationCardStack-DPaZz4XW-X4kcO2J5.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-D52CCSVO-CezeuABJ.js → InsightsCardStack-sKUFRR0H-BoBw_DR7.js} +10 -10
  79. package/dist/assets/{InsightsSection-D_wtVtVg-5rPDOiJT.js → InsightsSection-Corx5iDh-BfrgopNR.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js → IntegrationsSettingsPage-DTWoUi2e-Dbd60W3o.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js → InternationalWireSwiftDetailsPage-B441GUkh-DTa4rnLB.js} +14 -14
  82. package/dist/assets/{InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js → InternationalWireVerificationPage-DjpWjFSe-DZfbKiAU.js} +18 -18
  83. package/dist/assets/{InviteFormPage-C9fNxGsi-CRksfDku.js → InviteFormPage-BRb4jyp_-CG9bf0G3.js} +19 -19
  84. package/dist/assets/{InvitePageListView-DSWZ2SPi-B4SFh7Xp.js → InvitePageListView-Bb_Q_xqJ-BR_HlUlN.js} +49 -49
  85. package/dist/assets/InvitePeoplePage-BKEDAnQ4-BncBQflJ.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js → InvoiceUploadSection-BE4ZqriT-vLaWLqKI.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js → IssueChargeCardPage-BIFpAcrl-D3RFLApI.js} +22 -22
  88. package/dist/assets/{LabeledAddressValue-DtmZ5htg-OjX3rrF7.js → LabeledAddressValue-D2vDF5sP-DQbH1g5O.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js → LabeledAddressValueField-BMdJsw3x-CaLfz9Ol.js} +4 -4
  90. package/dist/assets/{LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js → LabeledControlledCheckBoxField-CHRGFyHl-CNPGUCoT.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js → LabeledCreatableSingleSelectField-qwQPyqDC-Cq7f9yWO.js} +8 -8
  92. package/dist/assets/{LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js → LabeledDocumentField-Cdd8oj5z-BUIficZv.js} +5 -5
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js → LabeledDropDownFormattedTextField-CSEioH8A-pTgOjjZi.js} +5 -5
  94. package/dist/assets/{LabeledText-bruKdeAH-E98_Q-Ht.js → LabeledText-CqZ-udSP-pLTRiq1L.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js → LabeledUserSingleSelectWithSubtitlesField-DTmijO10-DKWPncl-.js} +5 -5
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js → LabeledZeniRolesDropDownField-DSIWuFix-CRT6HEhL.js} +22 -22
  97. package/dist/assets/{LinkJETransactionPage-DjNutEvf-sKN4Are7.js → LinkJETransactionPage-C5V1HfGb-CIMuY7IX.js} +10 -10
  98. package/dist/assets/{LowBalancePopup-CwcYMtuk-B-vSGd6a.js → LowBalancePopup-BLfeh0xm-Cx_IhGZO.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js → MagicLinkACHDetailsPage-DGR7VcHs-Cv3UhVOp.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js → MagicLinkDomesticWireDetailsPage-BOu5verB-C216t_ZN.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js → MagicLinkInternationalWireDetailsPage-elijVpdq-CQ_97vzd.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js → MagicLinkSuccessPage-C6-JVGAQ-BQmAkFrb.js} +4 -4
  103. package/dist/assets/{MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js → MagicLinkTitleSection-CCjLimcL-D5Get_gS.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-BycONjR9-Dhu_6L_d.js → MailingDetailsSection-CJhcwaGu-DgdtnVpz.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js → MeetingCalenderPopup-DKBH6wSs-BI8-Q4hn.js} +3 -3
  106. package/dist/assets/{Menu-B6Fh2Mf9-B_ofMkAs.js → Menu-D-Gk-Xfo-D2aBa-uL.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js → MyBankConnectionsSettingsPage-CBxa9AUT-FwglrEt0.js} +18 -18
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js → MyPendingActivationChargeCardListPage-DBr5htlO-Dvj38gdb.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js → MyProfileSettingsPage-DKUX_nTz-D_7L2i-C.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-D4jJGXZB-BJWr2BT1.js → NavBarWithPicker-CXyMHDUO-CLsGi3M3.js} +4 -4
  111. package/dist/assets/{NavigationArrow-DlUdvmV7-iugv9ZVE.js → NavigationArrow-Bv-PvnhZ-BCqZOufx.js} +7 -10
  112. package/dist/assets/{NavigationDots-CFJt-T5J-B9PAzC5S.js → NavigationDots-DJkiFidH-EWS9_PIe.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DhYni-in-Diwu92Go.js → NewGlobalMerchantPage-CmJjl9S1-DFoCghTb.js} +8 -8
  114. package/dist/assets/{NoDataChart-CvGbQO4j-B5z4vqWb.js → NoDataChart-Bsj1HEPq-BuASr5nD.js} +1 -1
  115. package/dist/assets/{NoDataTable-EKtYZwcL-XyHu2gAL.js → NoDataTable-6vR2vOMI-CRH2wpQ3.js} +1 -1
  116. package/dist/assets/{NotFoundPage-D5SHSQLS-0U7pTJ8G.js → NotFoundPage-SRxATfaW-BdYkexg6.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js → NotificationSettingsPage-Bko3CBmW-B23VZLnT.js} +33 -33
  118. package/dist/assets/NotificationsListConfig-ChVd_Bek-OcoLbH0n.js +1 -0
  119. package/dist/assets/{NotificationsPage-bGvx2yV6-C4p8pfzZ.js → NotificationsPage-DMfBgh2w-Dxmai7ss.js} +12 -12
  120. package/dist/assets/{OpExByVendorPage-BE_NnQzd-DQnxoqWx.js → OpExByVendorPage-DOkwCGkr-Dr-bU76_.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-GWXnlbZH-D2VSw_RI.js → OverlayContainerPage-C0rUb6-5-B09r4rdB.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-D-000kuR-BW5fUkac.js → PandLWithForecastPage-DCJ3QTuj-7Vldqx8T.js} +11 -11
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js → PaymentAccountSetupBillingAddressSection-CaZETrGz-BhXLnlcL.js} +8 -8
  124. package/dist/assets/{PeoplePage-MwM0lFB9-B0wgHwI1.js → PeoplePage-PvOhX-gy-CkehxRRv.js} +14 -14
  125. package/dist/assets/PortfolioAllocationFormPage-DsCeagnu-6-GqBYNr.js +207 -0
  126. package/dist/assets/PortfolioDetails-BEa4kwk8-CLWb3MOf.js +218 -0
  127. package/dist/assets/{ProductsCarousel-D2wC3sC--BKh2AE5P.js → ProductsCarousel-qzlVuyK5-C7_wrvUe.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-Ddumul2a-BrEDd739.js → PromoBaseCards-26GOEn3a-DGu7k9yr.js} +23 -23
  129. package/dist/assets/{QBOConnectionDialog-DszSpNdI-DwqHmKSk.js → QBOConnectionDialog-CZQE3Tjs-BJ-xZ1uL.js} +7 -7
  130. package/dist/assets/{QBOSetupSection-BNF-BUu5-B_yCc7Df.js → QBOSetupSection-u1sJhV67-3IaLFWCq.js} +13 -13
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js → ReimbursementApprovalRuleDetailPage-vRiO7G_7-BNpO-W1a.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js → ReimbursementApprovalRulesPage-kEmFNXtg-B8ugfZMC.js} +35 -35
  133. package/dist/assets/{ReimbursementDetailPage-BAEddssC-DcJfByf4.js → ReimbursementDetailPage-ChyRg0eX-DWtyRMkY.js} +10 -10
  134. package/dist/assets/{ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js → ReimbursementPromoPage-BWsOD49o-Dd_wQE7-.js} +7 -7
  135. package/dist/assets/ReimbursementSetUpPage-DO_dBP9N-Dy9d9et5.js +140 -0
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js → ReimbursementsBulkReviewDrawerPage-CgRo7VeI-Bt0c1YwP.js} +1 -1
  137. package/dist/assets/{ReloadCard-BA_JCHcV-DL7NGQyj.js → ReloadCard-CpauR6-c-D0tZ9Fyb.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-D6DHFt_R-CaLxLhCV.js +150 -0
  139. package/dist/assets/ReportsPage-D4mI3T0w-Do8bVyWV.js +120 -0
  140. package/dist/assets/{RevenueChart-D33p-PFq-CGRJwc_N.js → RevenueChart-JdtvK4L6-Ngpoc51c.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js → ReviewDetailsPage-BwQoOV2Q-BnMNYLWI.js} +15 -15
  142. package/dist/assets/{ReviewOverlay-BYJdokfW-C97jtxei.js → ReviewOverlay-BLxhto7d-C71dqQqP.js} +10 -10
  143. package/dist/assets/{RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js → RoleWithToolTip-BRSx6yqP-BUZQlrca.js} +7 -7
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js → ScheduleDetailsFixedAssetsPage-CH84DI7F-Pp7ryVvn.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js → ScheduleDetailsPage-CMunoow5-BkaTYagU.js} +4 -4
  146. package/dist/assets/{ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js → ScheduleSequenceTable-CQVHkQ0e-f2QXv--M.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-iE9-v0dJ.js → ScreenRoutes-DXvnX-LV.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-BEJy78G6-Do1X3vVo.js → SetUpAccountSection-CyyxtFvK-Cj5cRA0y.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js → SetUpDefaultSection-Bdw_aWMY-Cmz2s5mU.js} +16 -16
  150. package/dist/assets/{SignIn-BC8yop4g-CznicFTu.js → SignIn-Gw75P03k-CwFuzpqD.js} +17 -17
  151. package/dist/assets/{SignInScreen-k0dvslKE.js → SignInScreen-tRJyAVn0.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-aZljA388--EEskYb2.js → SpendManagementListViewPage-BccaMtyd-DhsnmCTR.js} +10 -10
  153. package/dist/assets/{SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js → SpendManagementPerTabPage-D-YqqUsz-CMqa5ICA.js} +33 -33
  154. package/dist/assets/{SpendManagementSection-DMw8NFvN-Cpy4Blf3.js → SpendManagementSection-CdH1r1Vw-BnFiiVz5.js} +8 -8
  155. package/dist/assets/SpendMgmtSetupAccountSection-nryeZQ0T-r6fy71VQ.js +206 -0
  156. package/dist/assets/{StatementItem-CKTGWEW_-d6SqxmfH.js → StatementItem-BW9HKaf9-By5T4EbF.js} +3 -3
  157. package/dist/assets/{StatementsPage-CjR4AlPy-BQRlcz37.js → StatementsPage-CXawS1th-CEfY_8qI.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-5CZzUYJE-qZVSFmES.js → StatusSwitcher-oC-AP25Z-CEWD2b8L.js} +5 -5
  159. package/dist/assets/{SubTabSwitcher-a38_U4dN-BfyQ4BdY.js → SubTabSwitcher-DXWQMf7B-B3Pt5uAY.js} +1 -1
  160. package/dist/assets/{SummaryCard-XbFHvHx9-CTqdwSSS.js → SummaryCard-C3zjN-kT-BEGBL6Jl.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-Oct77yO--igT2quo0.js → TaskManagementPage-BGDJNpe_-rd55LI6o.js} +31 -31
  162. package/dist/assets/{TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js → TimeRangeSwitcher-BJfy3akS-OfTTOizn.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js → TimeframeSwitcher-M9tK6u0Y-Bxtbdng5.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-L1nNDGOE-WAQaP0VD.js +31 -0
  165. package/dist/assets/{TopExCard-CaR8tsug-DnQ2eFWB.js → TopExCard-BD9Ehuw_-BXC8E3qf.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-C4QeWe92-vjJ7ZG8N.js → TopExDetailPage-3HoXp_6D-CtO2rBhy.js} +10 -10
  167. package/dist/assets/{TransactionDetailPage-BoxnNYXX-2QwooFWS.js → TransactionDetailPage-CbnGQ8bn-BsL7JPEZ.js} +26 -26
  168. package/dist/assets/TransactionList-BBjiP2Nf-DUNjy3TT.js +147 -0
  169. package/dist/assets/{TransactionListBig-B0FG0-BM-Br0wUjP3.js → TransactionListBig-5aenxEn4-IdhDPOuV.js} +18 -18
  170. package/dist/assets/TransactionListPage-BeVkiwkg-CDFwd5bS.js +35 -0
  171. package/dist/assets/{TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js → TransactionVendorDetailPage-Yi7SmsyK-RZzw2CZy.js} +5 -5
  172. package/dist/assets/{TransferDrawerPage-BJVanLzC-BZZsX7dv.js → TransferDrawerPage-2P1mhp1M-B4VYzOoO.js} +11 -11
  173. package/dist/assets/{TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js → TreasuryOverviewPage-CkCBcBQK-gQtJbKm4.js} +34 -34
  174. package/dist/assets/{TreasuryPromoPage-CblUabA3-CO5CaCN_.js → TreasuryPromoPage-v-g4ZAdk-BrcSopM1.js} +14 -14
  175. package/dist/assets/{TreasurySetupPage-CuROk6il-7kJUNajN.js → TreasurySetupPage-B7va2-fJ-DjxpMJWN.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-DfB0yrzC-osurk-aq.js → TreasuryStatementsPage-BEJsQ-Oz-BTSyqWeA.js} +10 -10
  177. package/dist/assets/{TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js → TreasuryTaxLetterPage-CpTpM1mx-BiYSLuAV.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js → TreasuryTransferOrReviewPage-BRPFympA-BvZHT5Zx.js} +77 -77
  179. package/dist/assets/{TrendChart-D3_4i3qH-wYUerKRk.js → TrendChart-DRNocU0p-DH8MSEgo.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js → TrendWithTransactions-CldwGpXX-DKmrunTF.js} +5 -5
  181. package/dist/assets/{UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js → UncategorizedAccountsMappingPage-2C5qEhte-Dh6x_P3v.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js → UnitIntegrationPage--cDHqgXs-DtCf2vZQ.js} +3 -3
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js → UploadAdditionalDocumentOverlay-D85ML8-_-B-QpxAiO.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-wnVnkHOg-DABVEKDS.js → Vendor2FAPopup-vdFWf98b-B7o0Z5rr.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js → VendorACHDetailsPage-D7ImMabh-CSvkLquw.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-ClmL_1FB-Cz0Favu8.js → VendorDetailPage-BOeEd9pX-gUrBoOK0.js} +14 -14
  187. package/dist/assets/{VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js → VendorDomesticWireDetailsPage-CXFrYPn8-CB7lnVxg.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js → VendorFiling1099EditablePage-CZFErJ91-Xm9IJ-1g.js} +9 -9
  189. package/dist/assets/{VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js → VendorFirstReviewPage-BHzDUMKu-y6QbEQFP.js} +75 -75
  190. package/dist/assets/{VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js → VendorInternationalWireDetailsPage-j4j5irzH-CXfMsio3.js} +8 -8
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js → VendorInternationalWireSwiftDetailsPage-DM4jC7wD-u0u1sFOX.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-fcURK7tv-BOScGj67.js → VendorsAccountsSection-BTRiZlIa-BZealh27.js} +13 -13
  193. package/dist/assets/{WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js → WarningsDrawerPage-ZgfQEBme-Co_2thoU.js} +10 -10
  194. package/dist/assets/{ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js → ZeniAccountDetailPage-xrq0Ez6S-wsGmzJtr.js} +40 -40
  195. package/dist/assets/{ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js → ZeniAccountListViewPage-BwXfELGd-DN8EGYyI.js} +5 -5
  196. package/dist/assets/{ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js → ZeniAccountNavBarPieces-xpHuuPSD-Djz7djM6.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js → ZeniAccountPromoPage-BvSwPEk7-BDnAl2G8.js} +18 -18
  198. package/dist/assets/{ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js → ZeniAccountSetupPage-yCkiopeU-BliT7Pvn.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-DoA2I5zj-CPBH_zf-.js → ZeniCopyright-BAbOOFg9-BBG8qKfW.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js → ZeniTransferAmountSlider-C1sl8ZNj-DpQGiDCK.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BbcCIpO1.js → analyticsHelper-CIoNdHiA.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DPbbQVAO-ChPUlKK7.js → analyticsHelper-CkzpobMi-BfnXXtCD.js} +1 -1
  203. package/dist/assets/{chartTypes-qpvW4LwC-4Ag0mdD1.js → chartTypes-JD2mR9iq-D7wZaUzd.js} +1 -1
  204. package/dist/assets/{commonDimensions-DAvj4Il1-Chc9ZQai.js → commonDimensions-DRfDJ_wQ-BO2rVKKM.js} +1 -1
  205. package/dist/assets/{detailCommon-jP1ggD3g-CQiTz4E7.js → detailCommon-BbKkY_46-CAbvAN8D.js} +5 -5
  206. package/dist/assets/{downloadPdf-LAHtgcHF-B9uNpNRf.js → downloadPdf-D7ANJLK4-DY2Y05LM.js} +1 -1
  207. package/dist/assets/{index-DyBH5SZv.js → index-CEwYV-nF.js} +3520 -3543
  208. package/dist/assets/mapLoadingInProgressToTreeNode-e8JhfflK-BF2nQ7sS.js +1 -0
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js → mapSectionWithAcOnlyToTreeNode-caUW45t5-Bg9OIhnk.js} +1 -1
  210. package/dist/assets/mapSpacerToTreeNode-C692pbYW-C4jUHB0O.js +1 -0
  211. package/dist/assets/mapTimeframeBalancesToTreeNode-DKrYq4x5-fbf9_UTv.js +1 -0
  212. package/dist/assets/{play-icon-D3OSczih-8eMagn70.js → play-icon-BbWpG2oG-hh6oQ481.js} +3 -3
  213. package/dist/assets/{toCOABalancesWithID-DeWKaovX-C_3xC96w.js → toCOABalancesWithID-DOgHiMwn-g7DirtT0.js} +1 -1
  214. package/dist/assets/{toChartData-Dkp488IJ-Cg1gF7al.js → toChartData-CNfdaXyM-BIB6n4VL.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-BibNNRS5-DCmyWsB-.js → treasuryColorHelper-JBMxqa9X-YTcVeII5.js} +1 -1
  216. package/dist/assets/{uploadAttachment-BjJ8_wDA-22p019X4.js → uploadAttachment-BGZjtYkJ-KlPFkrcJ.js} +25 -25
  217. package/dist/assets/{uploadReceipts-D80JLNY4-sjevKwVl.js → uploadReceipts-Buvz7DfG-B7o_gJnm.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +4 -4
  220. package/dist/assets/AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js +0 -149
  221. package/dist/assets/ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js +0 -47
  222. package/dist/assets/ArAgingChart-D-Z3jfGt-DS-oqmcQ.js +0 -24
  223. package/dist/assets/BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js +0 -42
  224. package/dist/assets/ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js +0 -1447
  225. package/dist/assets/ChargeCardListPage-rY7_MoJ5-CzPbszY2.js +0 -355
  226. package/dist/assets/ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js +0 -219
  227. package/dist/assets/ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js +0 -36
  228. package/dist/assets/CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js +0 -2932
  229. package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +0 -1
  230. package/dist/assets/Dashboard-CsuzQbH0-B5Hgiilv.js +0 -1254
  231. package/dist/assets/DashboardReportPage-BCkrfj3P-CIFdRg6l.js +0 -370
  232. package/dist/assets/HelpButton-Dv3nbc1Z-CHaoZd0g.js +0 -28
  233. package/dist/assets/InvitePeoplePage-DaN4NSHW-CydccedW.js +0 -12
  234. package/dist/assets/NotificationsListConfig-BL_MxKXF-CvqrsVs-.js +0 -1
  235. package/dist/assets/PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js +0 -207
  236. package/dist/assets/PortfolioDetails-BMJ6PGMP-DtrA52bw.js +0 -218
  237. package/dist/assets/ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js +0 -140
  238. package/dist/assets/ReportTableViewSelector-D7B88kS6-BrGIUsj4.js +0 -150
  239. package/dist/assets/ReportsPage-BzMzH-I3-BKZoRCt6.js +0 -121
  240. package/dist/assets/SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js +0 -206
  241. package/dist/assets/TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js +0 -31
  242. package/dist/assets/TransactionList-IjM4ABdF-DZ9PEfgX.js +0 -147
  243. package/dist/assets/TransactionListPage-1dwu-ZT2-vlIbHO3m.js +0 -35
  244. package/dist/assets/mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js +0 -1
  245. package/dist/assets/mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js +0 -1
  246. package/dist/assets/mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js +0 -1
  247. package/dist/assets/mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js +0 -1
  248. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3 as He,o as t,C as f,a2 as Ce,k as $t,al as bt,u as St,a1 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,w as Y,q as X,eX as kt,a as Tt,c3 as Pt,F as Ct,fD as zt,n 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,f as Bt,f0 as Ot,dp as It,bY as Et,bX as _t,aP as Nt,bc as Vt,f9 as Wt,fi as Yt,aa as Xt}from"./index-DyBH5SZv.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{U as nt}from"./PortfolioDetails-BMJ6PGMP-DtrA52bw.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-BibNNRS5-DCmyWsB-.js";const Ut=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],qt=1e3;function Gt({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:qt,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: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:Qt(h)})},h))})]})}const Kt=e=>{const a=Xt("0,0.[00]a",e,"$").toUpperCase();return`${Ut.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%"}},Qt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
1
+ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7 as Je,o as t,C as f,a6 as Ce,k as $t,aq as bt,u as St,a5 as pe,bt as vt,cO as He,Q as R,l as z,fZ as jt,g as S,Z as At,h as et,v as Y,t as X,eZ as kt,a as Tt,c3 as Pt,F as Ct,fF as zt,q as c,bn as tt,cW as ot,ah as rt,cz as Dt,cq as Lt,f9 as Ft,f1 as Mt,d3 as Rt,m as Bt,f2 as Ot,dq as It,bY as Et,bX as _t,aP as Nt,bd as Vt,fb as Wt,fk as Yt,aJ as Xt}from"./index-CEwYV-nF.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{E as nt}from"./PortfolioDetails-BEa4kwk8-CLWb3MOf.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-JBMxqa9X-YTcVeII5.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(Ht,{sliderValue:s,children:[o.jsx(Jt,{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:Qt(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 Qt=e=>{const a=Xt("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`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -22,7 +22,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
22
22
  background-repeat: no-repeat;
23
23
  cursor: pointer;
24
24
  }
25
- `,Jt=r.div`
25
+ `,Ht=r.div`
26
26
  position: relative;
27
27
  width: 70%;
28
28
  margin-left: 30px;
@@ -60,7 +60,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
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: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(Xo,{}):o.jsx(Uo,{}),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(Yo,{}),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(Qe,{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`
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=go(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(Xo,{}),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(),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(Ao,{windowSize:m,children:[o.jsx(Do,{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(Lo,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(No,{windowSize:m,children:o.jsx(He,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(Co,{}),o.jsx(Vo,{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(jo,{children:o.jsxs($o,{children:[o.jsxs(ko,{children:[o.jsx(Po,{}),o.jsxs(bo,{children:[o.jsx(So,{children:e.error?.title}),o.jsx(vo,{children:e.error?.message})]})]}),o.jsx(To,{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(zo,{windowSize:m,children:o.jsxs(wo,{windowSize:m,children:[o.jsx(xo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx(yo,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),page:"transfer review"})})]})})]}),o.jsx(Je,{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(_o,{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(Oo,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(Io,{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: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(Mo,{children:x?.maskedAccountNumber}):o.jsxs(Fo,{className:"option-sublabel",children:[o.jsx(ve,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Bo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(ve,{children:[W("0,0[.]00",x.accountBalance.available),v?o.jsx(Ro,{children:so}):null]}):null,x?.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,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
66
  `,se=r(Y)`
@@ -68,7 +68,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
68
68
  `,le=r(X)`
69
69
  display: flex;
70
70
  align-items: center;
71
- `,xo=r.div`
71
+ `,wo=r.div`
72
72
  display: flex;
73
73
  flex-direction: column;
74
74
  width: 100%;
@@ -76,12 +76,12 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
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;
83
83
  `}
84
- `,yo=r.div`
84
+ `,xo=r.div`
85
85
  display: flex;
86
86
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
87
  justify-content: space-between;
@@ -97,27 +97,27 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
97
97
  border: 1px solid ${e=>e.theme.colors.grey3};
98
98
  border-radius: ${t.sp2};
99
99
  width: ${e=>e.windowSize==="small"?"auto":"288px"};
100
- `,$o=r.div`
100
+ `,yo=r.div`
101
101
  padding: ${t.sp2} ${t.sp3};
102
102
  background-color: ${e=>e.theme.colors.grey4};
103
103
  border: 1px solid ${e=>e.theme.colors.grey1};
104
104
  border-radius: ${t.sp2};
105
- `,bo=r.div`
105
+ `,$o=r.div`
106
106
  display: flex;
107
107
  width: 100%;
108
108
  justify-content: space-between;
109
109
  padding: ${t.sp3} ${t.sp4};
110
110
  background-color: ${S.importantLight};
111
111
  border-radius: ${t.sp2};
112
- `,So=r.div`
112
+ `,bo=r.div`
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  margin-left: ${t.sp2};
116
- `,vo=r(rt)`
116
+ `,So=r(rt)`
117
117
  color: ${S.important};
118
- `,jo=r(X)`
118
+ `,vo=r(X)`
119
119
  color: ${S.important};
120
- `,Ao=r.div`
120
+ `,jo=r.div`
121
121
  margin-top: ${t.sp3};
122
122
  display: flex;
123
123
  background-color: ${e=>e.theme.colors.grey5};
@@ -126,15 +126,15 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
126
126
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
127
127
  border-radius: ${t.sp2};
128
128
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
- `,ko=r.div`
129
+ `,Ao=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
- `,To=r.div`
134
+ `,ko=r.div`
135
135
  display: flex;
136
136
  align-items: flex-start;
137
- `,Po=r.div``,Co=r(ot)`
137
+ `,To=r.div``,Po=r(ot)`
138
138
  width: ${t.sp4};
139
139
  height: ${t.sp4};
140
140
  color: ${S.important};
@@ -147,7 +147,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
147
147
  &:hover {
148
148
  color: ${e=>e.theme.colors.primary};
149
149
  }
150
- `,zo=r.div`
150
+ `,Co=r.div`
151
151
  display: flex;
152
152
  flex: 1;
153
153
  background-color: ${e=>e.theme.colors.grey3};
@@ -155,57 +155,57 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
155
155
  max-height: 1px;
156
156
  `,de=r(Y)`
157
157
  color: ${e=>e.theme.colors.hero};
158
- `,Do=r.div`
158
+ `,zo=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)}`};
163
- `,Lo=r.div`
162
+ padding-bottom: ${e=>`${K.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
+ `,Do=r.div`
164
164
  display: flex;
165
165
  flex-direction: row;
166
166
  justify-content: flex-end;
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
- `,Fo=r(et)`
173
+ `,Lo=r(et)`
174
174
  ${e=>`${Te.pageTitle.style(e.windowSize)}`};
175
175
  color: ${e=>e.theme.colors.primary};
176
176
  padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
177
177
  ${e=>e.windowSize==="small"&&`
178
178
  padding-bottom: ${t.sp0};
179
179
  `}
180
- `,Mo=r(Y)`
180
+ `,Fo=r(Y)`
181
181
  color: ${e=>e.theme.colors.hero};
182
182
  display: flex;
183
183
  flex-direction: row;
184
184
  align-items: center;
185
185
  gap: ${t.sp2};
186
- `,Ro=r.span`
186
+ `,Mo=r.span`
187
187
  margin-left: ${t.sp2};
188
- `,ve=r.div``,Bo=r(Vt)`
188
+ `,ve=r.div``,Ro=r(Vt)`
189
189
  color: ${e=>e.theme.colors.brandColorGoldDark};
190
190
  margin-left: ${t.sp1};
191
- `,Oo=r.div`
191
+ `,Bo=r.div`
192
192
  width: ${t.sp1};
193
193
  height: ${t.sp1};
194
194
  min-width: ${t.sp1};
195
195
  background-color: ${e=>e.theme.colors.grey1};
196
196
  border-radius: 50%;
197
- `,Io=r.img`
197
+ `,Oo=r.img`
198
198
  display: flex;
199
199
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
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
- `,Eo=r.div`
203
+ `,Io=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
- `,_o=r(Yt)`
208
+ `,Eo=r(Yt)`
209
209
  min-width: inherit;
210
210
  width: inherit;
211
211
  height: inherit;
@@ -220,32 +220,32 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
220
220
  width: inherit;
221
221
  height: inherit;
222
222
  margin-right: ${t.sp2};
223
- `,No=r.div`
223
+ `,_o=r.div`
224
224
  width: ${e=>e.isForReview?t.sp6:t.sp4};
225
225
  height: ${e=>e.isForReview?t.sp6:t.sp4};
226
226
  margin-right: 12px;
227
227
  margin-left: ${t.sp1};
228
228
  color: ${e=>e.theme.colors.hero};
229
- `,Vo=r(tt)`
229
+ `,No=r(tt)`
230
230
  color: ${e=>e.theme.colors.primary};
231
231
  margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
232
232
  ${e=>e.windowSize==="small"&&`
233
233
  margin-top: ${t.sp1};
234
234
  margin-bottom: ${t.sp1};
235
235
  `}
236
- `,Wo=r(X)`
236
+ `,Vo=r(X)`
237
237
  color: ${e=>e.theme.colors.hero};
238
238
  margin-top: ${t.sp3};
239
- `,Yo=r(Nt)`
239
+ `,Wo=r(Nt)`
240
240
  width: ${t.sp4};
241
241
  height: ${t.sp4};
242
242
  color: ${e=>e.theme.colors.hero};
243
- `,Xo=r(Et)`
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
- `,Uo=r(_t)`
248
+ `,Xo=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,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
257
257
  position: absolute;
258
258
  right: 50%;
259
259
  bottom: -25px;
260
- `,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qo},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Go="transferTo",Ko="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 Zo({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,Z]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Q,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:U}=kt({token:D,onSuccess:lt,onExit:ct}),q=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),U?ee():ze(!0)},[ee,U]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,q),[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"&&U&&Le(!0)},[U,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,q))},[U,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,q]);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};Z(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(Qo,{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(Ye,{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(_,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,q,!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(Ye,{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(_,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,q,!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(Gt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:Z})]}):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:Q,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(xr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Ue,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Ue,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Xe,{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:qo.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}}}},Qo=r.div`
260
+ `,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qo},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Go="transferTo",Ko="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,Z]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[U,J]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[H,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&&H&&ee()},[De,ee,H]),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};Z(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(()=>{J(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(Ho,{children:[o.jsx(tr,{}),o.jsxs(or,{children:[o.jsx(rr,{children:e.error?.title}),o.jsx(nr,{children:e.error?.message})]})]}),o.jsx(er,{children:o.jsx(lr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ir,{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(Uo,{id:st(at),onSubmit:mt,children:[o.jsxs(ar,{children:[o.jsx(Pe,{size:i,children:o.jsx(Ye,{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(_,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,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(Ye,{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(_,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,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(sr,{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(cr,{children:[p?o.jsxs(dr,{children:[o.jsx(ur,{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:J,setTransferAmount:Z})]}):null,o.jsxs(hr,{windowSize:i,children:[o.jsxs(gr,{windowSize:i,children:[o.jsx(mr,{children:o.jsx(pr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:U,currencySymbol:"$"})}`})}),o.jsx(fr,{windowSize:i}),o.jsx(wr,{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(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(xr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(yr,{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:qo.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,7 +266,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
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
- `,Ho=r.form`
269
+ `,Uo=r.form`
270
270
  display: flex;
271
271
  flex-direction: column;
272
272
  justify-content: center;
@@ -278,22 +278,22 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
278
278
  padding: ${t.sp3} ${t.sp4};
279
279
  background-color: ${S.importantLight};
280
280
  border-radius: ${t.sp2};
281
- `,er=r.div`
281
+ `,Ho=r.div`
282
282
  display: flex;
283
283
  align-items: flex-start;
284
- `,tr=r.div``,or=r(ot)`
284
+ `,er=r.div``,tr=r(ot)`
285
285
  width: ${t.sp4};
286
286
  height: ${t.sp4};
287
287
  color: ${S.important};
288
- `,rr=r.div`
288
+ `,or=r.div`
289
289
  display: flex;
290
290
  flex-direction: column;
291
291
  margin-left: ${t.sp2};
292
- `,nr=r(rt)`
292
+ `,rr=r(rt)`
293
293
  color: ${S.important};
294
- `,ir=r(X)`
294
+ `,nr=r(X)`
295
295
  color: ${S.important};
296
- `,ar=r(tt)`
296
+ `,ir=r(tt)`
297
297
  color: ${e=>e.theme.colors.primary};
298
298
  margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
299
299
  ${e=>e.windowSize==="small"&&`
@@ -303,7 +303,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
303
303
  `,Ye=r(Dt)`
304
304
  border-radius: ${t.sp2};
305
305
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
306
- `,sr=r.div`
306
+ `,ar=r.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  width: 100%;
@@ -347,10 +347,10 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
347
347
  margin-right: ${t.sp1} !important;
348
348
  }
349
349
  `}
350
- `,lr=r(Pe)`
350
+ `,sr=r(Pe)`
351
351
  padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
352
352
  padding-top: ${t.sp2};
353
- `,cr=r(Ce)`
353
+ `,lr=r(Ce)`
354
354
  cursor: pointer;
355
355
  color: ${e=>e.theme.colors.hero};
356
356
  width: ${t.sp4};
@@ -359,10 +359,10 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
359
359
  &:hover {
360
360
  color: ${e=>e.theme.colors.primary};
361
361
  }
362
- `,dr=r.div`
362
+ `,cr=r.div`
363
363
  margin-bottom: ${t.sp6};
364
364
  width: 90%;
365
- `,ur=r.div`
365
+ `,dr=r.div`
366
366
  background-color: ${e=>e.theme.colors.background};
367
367
  border: 1px solid ${e=>e.theme.colors.grey3};
368
368
  border-top: none;
@@ -371,16 +371,16 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
371
371
  justify-content: center;
372
372
  align-items: center;
373
373
  flex-direction: column;
374
- `,pr=r(X)`
374
+ `,ur=r(X)`
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;
378
378
  text-align: center;
379
- `,hr=r.div`
379
+ `,pr=r.div`
380
380
  ${e=>me.yieldEarned.style(e.windowSize)}
381
381
  color: ${S.success};
382
382
  white-space: nowrap;
383
- `,mr=r.div`
383
+ `,hr=r.div`
384
384
  display: flex;
385
385
  align-items: center;
386
386
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
@@ -389,7 +389,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
389
389
  background-color: ${e=>e.theme.colors.grey3};
390
390
  border-bottom-right-radius: ${t.sp1};
391
391
  border-bottom-left-radius: ${t.sp1};
392
- `,fr=r.div`
392
+ `,mr=r.div`
393
393
  display: flex;
394
394
  flex-direction: row;
395
395
  align-items: center;
@@ -397,7 +397,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
397
397
  ${e=>me.calculatorFooterText.style(e.windowSize)}
398
398
  color: ${e=>e.theme.colors.hero};
399
399
  cursor: pointer;
400
- `,Ue=r.div`
400
+ `,qe=r.div`
401
401
  display: flex;
402
402
  flex-direction: row;
403
403
  align-items: center;
@@ -411,7 +411,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
411
411
  color: ${e=>e.theme.colors.primary};
412
412
  }
413
413
  }
414
- `,gr=r.div`
414
+ `,fr=r.div`
415
415
  display: ${e=>e.windowSize==="small"?"none":"block"};
416
416
  width: ${t.sp1};
417
417
  height: ${t.sp1};
@@ -419,69 +419,69 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
419
419
  margin: 0 ${t.sp2};
420
420
  background-color: ${e=>e.theme.colors.grey1};
421
421
  border-radius: 50%;
422
- `,wr=r.div`
422
+ `,gr=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
- `,xr=r(Bt)`
427
+ `,wr=r(Bt)`
428
428
  color: ${e=>e.theme.colors.hero};
429
- `,yr=r(Ot)`
429
+ `,xr=r(Ot)`
430
430
  cursor: pointer;
431
431
  width: 12px;
432
432
  height: 12px;
433
433
  min-width: 12px;
434
434
  min-height: 12px;
435
435
  color: ${e=>e.theme.colors.hero};
436
- `,$r=r(It)`
436
+ `,yr=r(It)`
437
437
  cursor: pointer;
438
438
  width: 12px;
439
439
  height: 12px;
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:qe,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:Z,fetchState:O}=a,Q=Z.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(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: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:Q,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:Q,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Qe,{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:qe.review},cancelBtn:{label:qe.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(X)`
443
+ `,Q={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])},$r={formTitle:new R("h6Regular","h5Regular")},{common:Ge,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Nr=({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:Z,fetchState:O}=a,U=Z.find(H=>xt(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:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(vr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(jr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Ar,{children:W("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(kr,{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:U,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Pr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Sr,{children:k.transferDrawer.subTitle}):o.jsx(br,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{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:Ge.review},cancelBtn:{label:Ge.cancel,onClick:()=>{h()}}}):null]})})},br=r(X)`
444
444
  color: ${e=>e.theme.colors.hero};
445
- `,vr=r(Y)`
445
+ `,Sr=r(Y)`
446
446
  color: ${e=>e.theme.colors.hero};
447
- `,jr=r.div`
447
+ `,vr=r.div`
448
448
  display: flex;
449
449
  flex-direction: column;
450
450
  background-color: ${e=>e.theme.colors.grey4};
451
451
  overflow-x: hidden;
452
452
  height: 100vh;
453
453
  width: 100%;
454
- `,Ar=r($t)`
454
+ `,jr=r($t)`
455
455
  color: ${e=>e.theme.colors.primary};
456
456
  text-align: center;
457
- `,kr=r(bt)`
457
+ `,Ar=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=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
463
463
  margin-bottom: auto;
464
- `,Tr=r.div`
464
+ `,kr=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)}`};
470
- `,Pr=r.div`
469
+ gap: ${e=>`${Q.buttonTrayGap.valuePx(e.windowSize)}`};
470
+ `,Tr=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} ${Q.successContentMargin.valuePx(e.windowSize)}`};
476
476
  align-items: center;
477
- `,Ke=r.div`
477
+ `,Qe=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=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
485
  z-index: 2;
486
486
  background-color: ${e=>e.theme.colors.grey4};
487
487
  `,Ze=r(Ce)`
@@ -493,14 +493,14 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
493
493
  &:hover {
494
494
  color: ${e=>e.theme.colors.primary};
495
495
  }
496
- `,Cr=r(At)`
496
+ `,Pr=r(At)`
497
497
  color: ${e=>e.theme.colors.primary};
498
498
  margin-top: ${t.sp3};
499
499
  margin-bottom: ${t.sp0};
500
500
  margin-right: ${t.sp3};
501
- `,zr=r(et)`
502
- ${e=>`${br.formTitle.style(e.windowSize)}`};
501
+ `,Cr=r(et)`
502
+ ${e=>`${$r.formTitle.style(e.windowSize)}`};
503
503
  color: ${e=>e.theme.colors.primary};
504
504
  margin-top: ${t.sp3};
505
505
  margin-bottom: ${t.sp2};
506
- `;export{Vr as default};
506
+ `;export{Nr as default};
@@ -1,6 +1,6 @@
1
- import{M as $,j as n,l as u,u as Z,Y as j,ai as z,b5 as B,b6 as F,au as P,v as w,at as R,aa as q,b7 as O,av as K,b9 as _,o as L,g as G,q as N}from"./index-DyBH5SZv.js";import{b as v,f as V,n as k}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-qpvW4LwC-4Ag0mdD1.js";import{o as X}from"./toCOABalancesWithID-DeWKaovX-C_3xC96w.js";import{V as H}from"./toChartData-Dkp488IJ-Cg1gF7al.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=k.div`
1
+ import{M as $,j as n,l as u,u as B,Y as j,ao as Z,b6 as z,b7 as F,aB as P,r as w,aA as R,aJ as O,b8 as q,aC as K,ba as _,o as L,g as G,t as N}from"./index-CEwYV-nF.js";import{b as D,f as V,n as k}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as v,u as J}from"./chartTypes-JD2mR9iq-D7wZaUzd.js";import{o as Q}from"./toCOABalancesWithID-DOgHiMwn-g7DirtT0.js";import{V as X}from"./toChartData-CNfdaXyM-BIB6n4VL.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 H=k.div`
2
2
  display: flex;
3
- `,J=k.div`
3
+ `,I=k.div`
4
4
  flex: display;
5
5
  opacity: 0.85;
6
6
  border-radius: ${L.sp1};
@@ -13,4 +13,4 @@ import{M as $,j as n,l as u,u as Z,Y as j,ai as z,b5 as B,b6 as F,au as P,v as w
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),b=r!=null?ne(e,r,a):void 0,g=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),Y=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(_,{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":j(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:b,barElements:Y(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:g}),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(),[b,g]=v.useState([void 0,void 0]),x=e.timeseries,Y=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);g(o)}else g([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);g(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":j("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":j("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,...w.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:c=>q("0,0.[00]a",c,Y)}),n.jsx(O,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(K,{x1:b[0],x2:b[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.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=`${$.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=v("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=[v("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=D.useRef(!1),b=r!=null?ne(e,r,a):void 0,g=$.getLocalizedStrings().reports.trend[t?.balancesKind];D.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),Y=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(_,{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":j(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:b,barElements:Y(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:g}),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(),[b,g]=D.useState([void 0,void 0]),x=e.timeseries,Y=W(e),p=x.map(o=>o.label);D.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);g(o)}else g([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?.[v("trend","actual")]?.amount==null)return;const c=i.payload.record[v("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);g(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":j("simple-bar-chart"),children:n.jsx(Z,{children:({height:o,width:i})=>n.jsxs(z,{"data-testid":j("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,...w.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,Y)}),n.jsx(q,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(K,{x1:b[0],x2:b[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.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=`${$.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};