@zeniai/web-cockpit-ui 1.14.49-qa → 1.14.50-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 (251) hide show
  1. package/dist/assets/{ACHDetailsPage-Sg7hdGqd-CCXprbhT.js → ACHDetailsPage-Bk-T9zeA-CfJ6MKab.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-ChnBEIPH-4_euKIvp.js → AIPerformancePage-DlVvPiye--DdUUWgj.js} +33 -33
  3. package/dist/assets/{AccountInfoPage-BxnQEiJ7-B6EmYPv_.js → AccountInfoPage-4a5_z9Mj-DMFU6f23.js} +4 -4
  4. package/dist/assets/{AccountInfoPageContent-DNUp3TON-qdMNKklV.js → AccountInfoPageContent-DevYKy6p-CMullRtM.js} +19 -19
  5. package/dist/assets/{AccountLockedInfoModal-CA152nkz-DzCD-JUi.js → AccountLockedInfoModal-BvtyA_xO-CmYw1Jj0.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C2rkkVPs-CQwYzCjP.js → AccountReconDetailsDrawerPage-BXEQ6cqS-j66Ucrn-.js} +12 -12
  7. package/dist/assets/{AccountRow-36Vtwpnr-4z2Yans3.js → AccountRow---y_a4hQ-CjUH_owU.js} +11 -11
  8. package/dist/assets/{AccountsPromoCardStack-C2HYR94b-CpKQoFz3.js → AccountsPromoCardStack-o9Og7QNk-DK3bk-1Y.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-Blh9zJ9k-Qnts0jiB.js +6 -0
  10. package/dist/assets/{AddToWalletPage-C_3jcdka-F-DW-oAI.js → AddToWalletPage-F_5GSEK1-DfJbrH2K.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-BPxROntM-BkwxFBqZ.js → AgingReportsPage-gY6j3hD1-CYYgQtbs.js} +6 -6
  12. package/dist/assets/{AllUserItems-D4ZSsopG-CbtLJ7dq.js → AllUserItems-DuqNI8Rn-C7-Ck6tc.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-Cg_V8f7G-Dtv7vAxt.js → ApAgingDetailPage-BCIZ807--CCB1bmdU.js} +5 -5
  14. package/dist/assets/{AppBasePage-6i0Pu1mT-CI0gWqTJ.js → AppBasePage-Cju4WpBd-B7EKJOCZ.js} +7 -7
  15. package/dist/assets/{AppDrawerContent-B6_iNfLZ-BBNlUFgb.js → AppDrawerContent-CJZlwte8-BLgFIh1I.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-BnsXfKAE-BddQmAcM.js → ApprovalRulesSettingsPage-DcFFdV1D-DwwBhpx6.js} +3 -3
  17. package/dist/assets/{ArAgingChart-DSDIg2mS-BzouD7uA.js → ArAgingChart-B_ybJjur-DHM_zS9S.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BYb9qi8c-3T0IpoxH.js → ArAgingDetailPage-CXBgcuJx-BSdM7AD1.js} +4 -4
  19. package/dist/assets/AttachmentView-D9MocUS9-BtgOsoHb.js +101 -0
  20. package/dist/assets/{BankAccountSection-CwYIBEbQ-S9Np9Ygv.js → BankAccountSection-CFnXlTaa-wnOEAJae.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-DPIyvB6i-pfBOIjCV.js → BankAccountWarningSection-Dl7DA-Xf-Bk2O3H_M.js} +4 -4
  22. package/dist/assets/{BankConnectionsSettingsPage-O03gMCgp-DASDTUYQ.js → BankConnectionsSettingsPage-p7NTe5UU-CDYUeY8o.js} +29 -29
  23. package/dist/assets/{BillDetailPage-D-fa_jc1-BleJmAH0.js → BillDetailPage-Dy7FjtFP-DCGKKisv.js} +6 -6
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-D_A4wH0g-B-75pSuf.js → BillPayApprovalRuleDetailPage-BkROIItP-FF3IQxfd.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-gdOVuTqR-BszEmrA8.js → BillPayApprovalRulesPage-wnxmErWK-CnIadX77.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-SFpIScHQ-FG20wQ1f.js → BillPayPromoPage-B09wLq8f-CG5fEZdp.js} +7 -7
  27. package/dist/assets/BillPaySetUpPage-bK5uUxWL-CxvMnvOZ.js +42 -0
  28. package/dist/assets/{BillingSettingsPage-CdaNgKMv-gAn_GvVH.js → BillingSettingsPage-yqdPoo5n-C-yi5L8L.js} +6 -6
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DPgrXGy0-CQlJtKA-.js → BillsBulkReviewDrawerPage-BPoUzM5h-BT57ZA9A.js} +1 -1
  30. package/dist/assets/{BoxItem-Bla_vZe9-D4jxptTn.js → BoxItem-BwOmI0eo-Bg_oDJrZ.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-DliZ1mtV-DeT5LWZH.js +140 -0
  32. package/dist/assets/{CardNumberSubText-B-HsVbRQ-BLIziZ0V.js → CardNumberSubText-CAQ8mWuF-vKMkb_aM.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-gIJ-1lJF-BO5TRo9Z.js → CashbackDetailPage-B1XEtXzZ-1-2pfDRY.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-Dgyl5IJV-DazPQgg3.js → ChargeCardDetailPage-C35g3tyS-Cr_XhDe3.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CgN69uh_-DKDrh90W.js → ChargeCardListPage-DpJ2ukG9-Chnlo_Ls.js} +9 -9
  36. package/dist/assets/{ChargeCardListTable-Bq3FUrUG-FyrnND8b.js → ChargeCardListTable-0mvBVaVR-DezuEV69.js} +26 -26
  37. package/dist/assets/{ChargeCardPromoPage-DqDd3QeF-BbqMx9NQ.js → ChargeCardPromoPage-xcfRobP3-CBiQn6_2.js} +7 -7
  38. package/dist/assets/{ChargeCardSetupPage-CBP4-JyP-NCDgse98.js → ChargeCardSetupPage-CHK4_mR3-uQ6PE_iN.js} +2 -2
  39. package/dist/assets/{ChargeCardStatementsPage-CVJyNhXt-Di4REK7T.js → ChargeCardStatementsPage-B746tyaI-BpHM8ktT.js} +8 -8
  40. package/dist/assets/{ChargeCardUtils-DaDe1sIq-NwQ1CJ2W.js → ChargeCardUtils-Bel9RKog-BYoByp7T.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-C1SVk4v1-DW3UeCAS.js → ChaseOverlay-Cni-YJBq-ki7qKNfn.js} +2 -2
  42. package/dist/assets/CheckDepositDrawerPage-h5dYs8n1-xM7OVVph.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-QtToztmP-DQt1k1-B.js → CollapsableReportTable-Bm4Knvjp-CyuCgDm7.js} +48 -48
  44. package/dist/assets/{CompanyOfficerDetailsSection-Ctoe2QDP-CQSKCmrp.js → CompanyOfficerDetailsSection-BFrN2zbs-E0-ko42y.js} +19 -19
  45. package/dist/assets/CompanyPassportCard-CFfVmwtT-DyrnlDth.js +42 -0
  46. package/dist/assets/{CompanyPassportPage-Dd53DZFe-BmsuarOf.js → CompanyPassportPage-BwuQEpR6-BzltPqSl.js} +21 -21
  47. package/dist/assets/{CompleteProfile-DlFmFq5M-ZT3wEZlQ.js → CompleteProfile-DFgQXxaw-eh46GqaL.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-b3SEoaSY-CEVptNiu.js → ConfettiBurst-CNGVGH7R-OhWdZxEw.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DwvlzEci-DUaCnl0C.js → CreateOrEditVendorPage-BEOugGdV-BkOi2-LS.js} +12 -12
  50. package/dist/assets/{CreditCardPaymentDrawerPage-y5jJQGS5-BN-YeTDF.js → CreditCardPaymentDrawerPage-DL99-asT-IVw3ZmF0.js} +9 -9
  51. package/dist/assets/{CreditCardPaymentPlgSection-BbVnrMer-Db7C8egU.js → CreditCardPaymentPlgSection-Bo8bjkSd-Cj2DAE6L.js} +5 -5
  52. package/dist/assets/{CurrencySelectField-B1rl6vQ0-tIQbPb2V.js → CurrencySelectField-Cy3069QS-B4qJii4j.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-DlFjo3Sv-DlDk6MjE.js → CustomerOnboardingActivationPage-DYHxB1DV-DG10uG78.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DGNxouoJ-cK8xEcln.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BxsQBBs2-1N-A35fF.js → CustomerOnboardingDetailPageSkeleton-C-eQB--l-D3xzBHMg.js} +10 -10
  56. package/dist/assets/CustomerOnboardingNoStepsPage-CdXpLzmq-BKo9Mc6w.js +66 -0
  57. package/dist/assets/{CustomerOnboardingPage-Cw66PfQC-pU5lcmch.js → CustomerOnboardingPage-BScJEPx_-eyx5FypG.js} +2 -2
  58. package/dist/assets/CustomerOnboardingProductSuitePage-D8hA3Lv_-DiFPqcjv.js +202 -0
  59. package/dist/assets/{Dashboard-I5fepHMP-CXiBwzdI.js → Dashboard-D5_YXdct-EKQOlNbW.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-GkuxGc3t-BKXCa7xb.js → DashboardReportPage-Gq4XjHm5-CgkxriU9.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ba6mjrpq-CP_63791.js → DashboardSidebarBackgroundAnimation-CfSTodXy-DUwH9YlE.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-8pfQMKs3-DA5Rp_k5.js → DepositAccTransactionItem-CfjfIBsm-DifB7Rhh.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-BiTWRxfT-BGViZ9xq.js → DepositAccTransactionListPage-BxtgMsQs-1C9yKKse.js} +8 -8
  64. package/dist/assets/{DomesticWireDetailsPage-4Dh_YZ8--DtHM1pr6.js → DomesticWireDetailsPage-BdmpuYqv-CI5W3KSh.js} +2 -2
  65. package/dist/assets/{DownloadOverlay-D6S9Obtr-D2mA2KNN.js → DownloadOverlay-B-TeCIiN-cLZkE7c6.js} +18 -18
  66. package/dist/assets/{DrawerPage-D13P_uWJ-CsKiwoDS.js → DrawerPage-BayK5Cvt-DenqrNxQ.js} +7 -7
  67. package/dist/assets/EditPeoplePage-moCKwxdw-kdnDyFe4.js +55 -0
  68. package/dist/assets/{EditReimbursementDetailPage-COg9-yb6-CILN_gSs.js → EditReimbursementDetailPage-DiRxcH2i-CqEhpelp.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-BbITG8i5-CprGjm72.js → EntityDetailPage-B0_iMMXi-BFK6-vDg.js} +4 -4
  70. package/dist/assets/{EntitySummarySection-BIawu9Ww-Ceo0UhdT.js → EntitySummarySection-Bzw9paM5-CCulefX0.js} +1 -1
  71. package/dist/assets/ExpenseAutomationOverviewPage-CN8oHejg-BCXoKv-G.js +222 -0
  72. package/dist/assets/{ExpenseAutomationPage-BzqJFgyb-Czy39NPG.js → ExpenseAutomationPage-nQw-48Jn-1DFXEYwM.js} +29 -29
  73. package/dist/assets/{ExpressPayPage-ciCYdxZj-BXc9NDyl.js → ExpressPayPage-BbxW-YuU-D_hIdCft.js} +8 -8
  74. package/dist/assets/{FeaturePreviewPage-Bbbcp0Yy-Czyj_mEC.js → FeaturePreviewPage-CMFiodSD-BBGWeje6.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-B6uVl1dT-B1dWDhOp.js → FollowStepsSection-s4utHS95--Y07h10n.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BOTtaikB-agDlR_ZV.js → GlobalReviewListPage-Ci8wGpO6-BRGgqus8.js} +5 -5
  77. package/dist/assets/HelpButton-CdHOhYwZ-vfgKqvvf.js +28 -0
  78. package/dist/assets/{InformationCardStack-Bm0Oh5VL-DjrgDLen.js → InformationCardStack-C3Q674Be-BHdplWUC.js} +2 -2
  79. package/dist/assets/InsightsCardStack-CA-O6aZn-DaypKy1-.js +79 -0
  80. package/dist/assets/{InsightsSection-wZpjHdxh-DXdKVgAu.js → InsightsSection-MD_7iYyd-CoTr4evA.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-Cl-Y86Nj-D4NX5YT1.js → IntegrationsSettingsPage-Gpq_ujC4-Cz49FC1Q.js} +5 -5
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DkEpnlVz-DWJE6x6p.js → InternationalWireSwiftDetailsPage-DXQCRbA4-jvd32UXh.js} +18 -18
  83. package/dist/assets/{InternationalWireVerificationPage-Ra78kWjZ-C7XfpdHS.js → InternationalWireVerificationPage-Z9MeS_FE-CvHI3GW5.js} +13 -13
  84. package/dist/assets/{InviteFormPage-Be3Tqvh8-boDpca8x.js → InviteFormPage-CRBxUW8F-ByLwGMQx.js} +20 -20
  85. package/dist/assets/{InvitePageListView-BuooPBpK-B-O-E11Q.js → InvitePageListView-BLcD6yhf-BHIBTtPc.js} +14 -14
  86. package/dist/assets/InvitePeoplePage-B6vbKnl8-3Fr2JjFu.js +12 -0
  87. package/dist/assets/InvoiceUploadSection-C84g6m-u-CTBUGTYr.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-C_4bD6HQ-B4neH-6d.js → IssueChargeCardPage-CtwG1FQW-CIw40zi7.js} +20 -20
  89. package/dist/assets/{LabeledAddressValue-Ctk46FKq-KR-uiT2u.js → LabeledAddressValue-BbmveEDp-misv-kNS.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-BplBue9M-DBaZ2tp6.js +45 -0
  91. package/dist/assets/LabeledControlledCheckBoxField-CATsgVfE-C27gMaQw.js +16 -0
  92. package/dist/assets/{LabeledCreatableSingleSelectField-Bjh5B-q0-Co5wnrJk.js → LabeledCreatableSingleSelectField-B-m-gINB-DKWDwbZB.js} +2 -2
  93. package/dist/assets/LabeledDocumentField-pmF98M72-DhaPqfnm.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BX06HLc2-CSTX9KoC.js → LabeledDropDownFormattedTextField-DQRvDrH1-nhXIGcQS.js} +1 -1
  95. package/dist/assets/{LabeledText-DZVRFAkG-rHxfEtQQ.js → LabeledText-Dr7b3HNT-JqfYF6TM.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-QoYZvvyE-DgWhyFpB.js → LabeledUserSingleSelectWithSubtitlesField-DucxxQKW-DpGIkkDj.js} +10 -10
  97. package/dist/assets/{LabeledZeniRolesDropDownField-D9I9Lxk2-CEybF1_R.js → LabeledZeniRolesDropDownField-Fg_p41gp-BLJgU8CM.js} +17 -17
  98. package/dist/assets/{LinkJETransactionPage-C8K00-1a-CRsvQ_9P.js → LinkJETransactionPage-CbtDoohS-BYYpt-Eb.js} +4 -4
  99. package/dist/assets/LockCardPage-CfupCyYS-DqBQdk1I.js +558 -0
  100. package/dist/assets/{LowBalancePopup-CQQrhufv-ooiA9ZXC.js → LowBalancePopup-DPfkvSKp-CZ231Z71.js} +6 -6
  101. package/dist/assets/{MagicLinkACHDetailsPage-BUGK2W6m-iQ0u98AT.js → MagicLinkACHDetailsPage-TJ1c4k1c-e1ecoiPU.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdGw-8SL-BZNxp9-P.js → MagicLinkDomesticWireDetailsPage-Dp4F_O6C-BLuK26i4.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-ioBaDPw3-BRjF2y7B.js → MagicLinkInternationalWireDetailsPage-B5TMFBsw-DE5eebOC.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-BBnZ5N8r-3AvY4DIN.js → MagicLinkSuccessPage-XmGUk2UP-t-ML7fFm.js} +3 -3
  105. package/dist/assets/{MagicLinkTitleSection-C0nl5UrB-fbBcM0M6.js → MagicLinkTitleSection-B3CVACcv-CraOpOkK.js} +3 -3
  106. package/dist/assets/{MailingDetailsSection-DeaanyVd-has6jQC4.js → MailingDetailsSection-CFBmvYV_-DKWh8ntV.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-CGGit3Ny-CiZ-1m4B.js → MeetingCalenderPopup-Dd1Z-rK3-BN7CJUqh.js} +5 -5
  108. package/dist/assets/{Menu-BWGaQpko-C-bIfACK.js → Menu-AlNg4aZb-ezBRMKxQ.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-Bg_ULoVa-BjIIqVWR.js → MyBankConnectionsSettingsPage-De_mXouS-CFWPRCdV.js} +9 -9
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-DulXydFx-CNXPW9Gb.js → MyPendingActivationChargeCardListPage-CdDF0PA3-CqrUarF6.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-C2p1O3ct-BgyD_hf0.js → MyProfileSettingsPage-BE6GsTMH-CiY2hNHx.js} +6 -6
  112. package/dist/assets/{NavBarWithPicker-BCLF3DOO-CA9gmzsQ.js → NavBarWithPicker-CTxQ7r97-Dg-pVfaM.js} +4 -4
  113. package/dist/assets/{NavigationArrow-BPrl00va-D8RNnAeo.js → NavigationArrow-DCZBdY6w-DXzWpT0y.js} +1 -1
  114. package/dist/assets/{NavigationDots-O0W_nmju-D_O1-ums.js → NavigationDots-D6hsvkMX-Dc9TKWSO.js} +3 -3
  115. package/dist/assets/{NewGlobalMerchantPage-D6e-akD5-Bzs9Ucjn.js → NewGlobalMerchantPage-D5Mo9EMy-C_x_UB26.js} +7 -7
  116. package/dist/assets/{NoDataChart-C9yfpsin-CDRDTUOe.js → NoDataChart-CI5rKAJf-IpywfvaI.js} +1 -1
  117. package/dist/assets/{NoDataTable-DKv0uhi4-Cpc7fkkE.js → NoDataTable-C4YVpnKy-bA2EH_fQ.js} +1 -1
  118. package/dist/assets/{NotFoundPage-B5ou4w73-NuKoBPie.js → NotFoundPage-Dx56yYo3-CJc22lOw.js} +4 -4
  119. package/dist/assets/{NotificationSettingsPage-BmrtRoZK-DZ_ZG3D7.js → NotificationSettingsPage-hOwPscnS-CcQKVe46.js} +8 -8
  120. package/dist/assets/{NotificationsListConfig-DQ4Ho61v-BnotEG6V.js → NotificationsListConfig-DV_yEagM-CKLpxpSM.js} +1 -1
  121. package/dist/assets/{NotificationsPage-UraNN_iD-BUGQxEcG.js → NotificationsPage-B83do0my-DGcJO7Z-.js} +25 -25
  122. package/dist/assets/{OpExByVendorPage-BRPHj5T9-DYtyW38v.js → OpExByVendorPage-WMTGx5ZH-CmZADN9R.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-B8Rk53Fe-CfTKp3Gf.js → OverlayContainerPage-CZaWUQTs-taUnIcxu.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-BMjOYb2a-Dcnt7HVK.js → PandLWithForecastPage-DyROxN6C-DH_Ynpil.js} +9 -9
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B38HgGEM-DgE8Vczk.js → PaymentAccountSetupBillingAddressSection-CHwhW69s-PBAsz7VT.js} +7 -7
  126. package/dist/assets/{PeoplePage-BpMkRqCs-CsT9OFKk.js → PeoplePage-DzRLyM45-C2knIeVL.js} +11 -11
  127. package/dist/assets/{PortfolioAllocationFormPage-tnv4t4QU-CrHZ8aTl.js → PortfolioAllocationFormPage-CIvcJ9hx-C0L8itY1.js} +9 -9
  128. package/dist/assets/{PortfolioDetails-BQCQctOT-BcjcqURs.js → PortfolioDetails-8UvaROaS-BV0kfCx8.js} +15 -15
  129. package/dist/assets/{ProductsCarousel-BUJiJFiX-BzDzGkeP.js → ProductsCarousel-Di0lW14P-gv6t1pzJ.js} +3 -3
  130. package/dist/assets/{PromoBaseCards-DwBIZ04X-BjLiNb-B.js → PromoBaseCards-zfJOT86M-Cxis92cB.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-MjldLygA-F5XVDM0C.js → QBOConnectionDialog-DYCNzDCW-XbK2K7lq.js} +4 -4
  132. package/dist/assets/{QBOSetupSection-BknE7gT4-DY5jHtnb.js → QBOSetupSection-DtzlFUKs-CMurUb08.js} +6 -6
  133. package/dist/assets/ReimbursementApprovalRuleDetailPage-DoWiv_tN-DEovISqR.js +26 -0
  134. package/dist/assets/{ReimbursementApprovalRulesPage-C0Plqj93-CfcH1Xln.js → ReimbursementApprovalRulesPage-Drav6sw6-CwgLZUAr.js} +40 -40
  135. package/dist/assets/ReimbursementDetailPage-ByCpOGLu-Dsc_sGAc.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-X_lNy9W2-C1pHC8eu.js → ReimbursementPromoPage-DOhnXgWW-DuNdw2WY.js} +8 -8
  137. package/dist/assets/{ReimbursementSetUpPage-DJrOp98g-BrQav5BP.js → ReimbursementSetUpPage-B6m_3OjH-BpWl6ujY.js} +4 -4
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZL9RVfR-CP3PDh7c.js → ReimbursementsBulkReviewDrawerPage-DSbjVLzo-CVRSkvAX.js} +1 -1
  139. package/dist/assets/{ReloadCard-aqfmXbU5-CNPn4sKt.js → ReloadCard-C7TwZcxr-vlQuHsih.js} +5 -5
  140. package/dist/assets/{ReportTableViewSelector-D93qno__-2IAEqt0G.js → ReportTableViewSelector-Dw5N3kLR-QNx8XxoO.js} +7 -7
  141. package/dist/assets/{ReportsPage-B0G-7pwv-CrA7-rtj.js → ReportsPage-Cn38qn0l-B-nkuuwa.js} +9 -9
  142. package/dist/assets/{RevenueChart-BRlahWs9-BWAL9tc3.js → RevenueChart-Cl6AG_A1-Da4QIV8W.js} +16 -16
  143. package/dist/assets/ReviewDetailsPage-DOU42eYb-DP8hDUqG.js +290 -0
  144. package/dist/assets/{ReviewOverlay-yCaY1z8K-DkuN1BhY.js → ReviewOverlay-Cekl52Tp-C4ta_oQT.js} +13 -13
  145. package/dist/assets/{RoleWithToolTip-C--9WRHn-02oWnK_S.js → RoleWithToolTip-Cxn0Q3kG-C5ZkEEHf.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-hn74AoeS-NWP9KPHn.js → ScheduleDetailsFixedAssetsPage-By4ikZQn-BUboWldf.js} +4 -4
  147. package/dist/assets/{ScheduleDetailsPage-DxdxAx1S-B1IjQUUT.js → ScheduleDetailsPage-CMCqsjrb-DIQmIy8n.js} +4 -4
  148. package/dist/assets/{ScheduleSequenceTable-Dq0ZRi2H-8XOSgJiv.js → ScheduleSequenceTable-DNVQ2kVn-kr2CXE0a.js} +49 -49
  149. package/dist/assets/{ScreenRoutes-DDAOQ4Jo.js → ScreenRoutes-CngnFJ28.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-NP9u54_o-Db7whHUF.js → SetUpAccountSection-nZ68xEMF-CKqnZuo_.js} +8 -8
  151. package/dist/assets/{SetUpDefaultSection-BdVOXSh8-M71dwMGe.js → SetUpDefaultSection-e5I_whKg-CWXMi4yS.js} +2 -2
  152. package/dist/assets/SignIn-e-7z9G0X-C1YFpsfM.js +448 -0
  153. package/dist/assets/{SignInScreen-BzmXpPCl.js → SignInScreen-C77r6V5a.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-CfzCjazp-DIvePMuJ.js → SpendManagementListViewPage-BPfU_Lec-BnogwbnW.js} +6 -6
  155. package/dist/assets/{SpendManagementPerTabPage-CBOlK1hg-CNGRPHtG.js → SpendManagementPerTabPage-CIVfUAF0-7NlzZC3p.js} +48 -48
  156. package/dist/assets/{SpendManagementSection-DFVWVBv8-BaXurz43.js → SpendManagementSection-DilGVAEg-UyhbLf0x.js} +5 -5
  157. package/dist/assets/{SpendMgmtSetupAccountSection-ZPHoUnnr-BJcUWi60.js → SpendMgmtSetupAccountSection-BW8Ip5wi-CkkTNUfg.js} +4 -4
  158. package/dist/assets/{StatementItem-CwkYfX3v-BfxIXxV9.js → StatementItem-li8rxfjF-DE4xpTDg.js} +2 -2
  159. package/dist/assets/{StatementsPage-DpjcrDLZ-BOUbVppT.js → StatementsPage-D0VgSNCy-Bi9vK3HK.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-6n_dRY-n-CInUBfU5.js → StatusSwitcher-Dhw4Hsko-VYfBZyYc.js} +2 -2
  161. package/dist/assets/{SubTabSwitcher-DEXr9JG8-BesAFLAS.js → SubTabSwitcher-CaDODjQq-zPof6WQa.js} +1 -1
  162. package/dist/assets/{SummaryCard-DY8o3K8p-Br_aBvet.js → SummaryCard-BZp6ZbhG-D2hcdAY2.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-V-99_2Xz-DDUfSx7p.js → TaskManagementPage-CdzxcwSR-FTY6PAR3.js} +14 -14
  164. package/dist/assets/{TimeRangeSwitcher-5vzTnmwD-CRsZg2b0.js → TimeRangeSwitcher-BsecxqSf-68LRPk1P.js} +6 -6
  165. package/dist/assets/{TimeframeSwitcher-B1ZBKWlB-7HKYiomL.js → TimeframeSwitcher-CXQS6_Dj-pJvRjYVF.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-C8w7NoSs-DeUtdJdm.js → TimeframeSwitcherWithToggle-xUcT4SAn-Dxw3KxOM.js} +1 -1
  167. package/dist/assets/{TopExCard-CflRvGFb-BSDi9hbk.js → TopExCard-DpBmbBOH-rqB_17zU.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-BNouRPM_-V8w0Nl4l.js → TopExDetailPage-CXYcu4vC-BudfE4e2.js} +21 -21
  169. package/dist/assets/{TransactionDetailPage-uJRfI4fh-YYHpyB0Q.js → TransactionDetailPage-C-oGYPM2-XIgrFLJc.js} +23 -23
  170. package/dist/assets/{TransactionList-C--m4NRu-I84SwAT3.js → TransactionList-d0Qe-D7V-BamSxQ9h.js} +9 -9
  171. package/dist/assets/{TransactionListBig-Cbf9p6a1-BQi6pxNr.js → TransactionListBig-By3GVBgG-Jvz7Xg_z.js} +11 -11
  172. package/dist/assets/{TransactionListPage-BXQ4Ig8E-1eaOmgJN.js → TransactionListPage-ChIGfg3A-ZqEGHvAv.js} +6 -6
  173. package/dist/assets/{TransactionVendorDetailPage-CKdVogwj-BU8bZBJz.js → TransactionVendorDetailPage-D3stMRFF-C_IPHvl6.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-BS3lnMMA-BhGqf_F6.js → TransferDrawerPage-QVYSxd-3-BFQ5htQm.js} +22 -22
  175. package/dist/assets/{TreasuryOverviewPage-U1p6PrnG-CTfDqCgy.js → TreasuryOverviewPage-CumKNGbQ-CAGR3hz2.js} +12 -12
  176. package/dist/assets/{TreasuryPromoPage-C2wmo0Ex-CAsi6MAz.js → TreasuryPromoPage-H2Zbw_Yg-DMBJJl3b.js} +8 -8
  177. package/dist/assets/{TreasurySetupPage-CMl-qGhi-DDyv6zPQ.js → TreasurySetupPage-BtUIYjn_-BvLlmakc.js} +4 -4
  178. package/dist/assets/{TreasuryStatementsPage-BdmLrhA5-Cwzb6Y-J.js → TreasuryStatementsPage-B04Ze6pO-DBs8NMkW.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-Q7prcczk-BMJV6RV_.js → TreasuryTaxLetterPage-D95U9592-A4FKzQli.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-CwvijEQN-CyNc0EBz.js → TreasuryTransferOrReviewPage-BhHf8lnF-DBq27s-a.js} +91 -91
  181. package/dist/assets/{TrendChart-SEWDcga_-b1UZHoM_.js → TrendChart-BkdPYoj4-D9rpAM75.js} +4 -4
  182. package/dist/assets/{TrendWithTransactions-CgSaPEFh-CJCmbHDv.js → TrendWithTransactions-CWgoVTcb-CGbGhBS1.js} +4 -4
  183. package/dist/assets/{UncategorizedAccountsMappingPage-7LqO7hHL-Qf22hqtP.js → UncategorizedAccountsMappingPage-LdRZIYp5-BtaeEGaz.js} +10 -10
  184. package/dist/assets/{UnitIntegrationPage--jgHD8q1-DGXvKzdF.js → UnitIntegrationPage-Ms9BFSjK-PPYprz9i.js} +4 -4
  185. package/dist/assets/UploadAdditionalDocumentOverlay-D6x4OGXl-CxKK3Ose.js +38 -0
  186. package/dist/assets/{Vendor2FAPopup-B0fwm9Q3-BYhSuvCf.js → Vendor2FAPopup-UmgHYXvP-pOrgh_fD.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-BzgsncOJ-DOkcQ5fM.js → VendorACHDetailsPage-B3mdoPp8-DRr-74cL.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-CA3LTIGq-jf7ffnJX.js → VendorDetailPage-Cj6U1nII-BSRlPQ6y.js} +12 -12
  189. package/dist/assets/{VendorDomesticWireDetailsPage-Ch42jvVt-CyANzPJP.js → VendorDomesticWireDetailsPage-BrZCPlAd-BL-hjFrP.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-QjRWxn7V-BJSMNVS0.js → VendorFiling1099EditablePage-TUixssYI-v6dW0vMN.js} +12 -12
  191. package/dist/assets/{VendorFirstReviewPage-C-ONdLcA-Bipz9xJO.js → VendorFirstReviewPage-BlUNcGLE-B0NOpsas.js} +44 -44
  192. package/dist/assets/{VendorInternationalWireDetailsPage-qDx2aiDq-CLtnsjyf.js → VendorInternationalWireDetailsPage-DhHWsAne-VClJg3R1.js} +10 -10
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DICOFwMp-BJ2iH1IS.js → VendorInternationalWireSwiftDetailsPage-CIvevemJ-Cnw2il7s.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-D0f3TRGG-DGo_EPvw.js → VendorsAccountsSection-viRwhErR-BEJjt5C_.js} +4 -4
  195. package/dist/assets/{VerifyDevice-BMtMcC41-C2Aep0vv.js → VerifyDevice-l7opea4l-BtT1vRFj.js} +2 -2
  196. package/dist/assets/{VideoPlayer-DKMO88LY-CihcSZAF.js → VideoPlayer-BBVi4SOz-9SgJ3yaM.js} +1 -1
  197. package/dist/assets/{VideoPopup-2z3T5Lnh-CHZgVcWy.js → VideoPopup-CmXRuhQp-5r314mYD.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-yRdYuhLZ-Bq-OqNLw.js → WarningsDrawerPage-Ckg9AVsj-B9emohJx.js} +2 -2
  199. package/dist/assets/{ZeniAccountDetailPage-ISiEkizf-BZ56FvfW.js → ZeniAccountDetailPage-B-jNA-tI-ms245E2y.js} +25 -25
  200. package/dist/assets/{ZeniAccountListViewPage-BTrvu_w1-Mm1U5sCA.js → ZeniAccountListViewPage-oBGTDIBN-C9aSAN9Z.js} +8 -8
  201. package/dist/assets/ZeniAccountNavBarPieces-JScxmkmi-BP103W6l.js +14 -0
  202. package/dist/assets/{ZeniAccountPromoPage-Dac1THyO-DBLjXw3q.js → ZeniAccountPromoPage-BHzfVbtI-P2leDJcs.js} +20 -20
  203. package/dist/assets/{ZeniAccountSetupPage-ZSfjnq4--2G4QtNy6.js → ZeniAccountSetupPage-DD_QA8h8-DpmP7jf1.js} +4 -4
  204. package/dist/assets/{ZeniCopyright-C4Hdl7V0-DCl3xitc.js → ZeniCopyright-BPSL51G5-DcEAxBC-.js} +1 -1
  205. package/dist/assets/ZeniTransferAmountSlider-CAiR-tiF-D35xHKkQ.js +63 -0
  206. package/dist/assets/{analyticsHelper-CpeZY9M2.js → analyticsHelper-CnRA1Gcw.js} +1 -1
  207. package/dist/assets/{analyticsHelper-CaxfROfX-BZwqcE9n.js → analyticsHelper-kwNg2DUZ-Bg-BVsZB.js} +1 -1
  208. package/dist/assets/{chartTypes-CQLwj1wn-BRADgKQf.js → chartTypes-CCFDB3ft-gWEy54C4.js} +1 -1
  209. package/dist/assets/{commonDimensions-BqqLiZ_H-X7QteB7-.js → commonDimensions-FafZVRxo-CSxm8Nzu.js} +1 -1
  210. package/dist/assets/{detailCommon-_wteS7vQ-BlDnvf72.js → detailCommon-Bk08SAcF-CmJo8a2_.js} +7 -7
  211. package/dist/assets/{downloadPdf-DqURwcIt-cyNLfpwv.js → downloadPdf-Bj4Y4BB4-D1l-PLqG.js} +1 -1
  212. package/dist/assets/{index-RcMUg6rr.js → index-dX8TSOm6.js} +72 -72
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-kidLNkmQ-Dbws8prW.js → mapLoadingInProgressToTreeNode-Cx24jJa--D8U4jxjz.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BSUhjNT5-BKwhf6qT.js → mapSectionWithAcOnlyToTreeNode-BRxefLX_-DoZmzx4J.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-m5nGTY8W-CzCeMk6H.js → mapSpacerToTreeNode-VUbus-r3-pBb-m1M8.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-D5QkbXkx-CsbvFuim.js → mapTimeframeBalancesToTreeNode-B6aAv6pB-C6UbW4bf.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CHHGNXiT-Dl3JMEe8.js → mapTimeframeBalancesToTreeNode-CSScIc2H-CNAuSnEW.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-o4l_IoBF-BBotayyZ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DBDE1nuS-CTldXama.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-bhm-pCR2-CtRyWh7a.js → toCOABalancesWithID-M4gPqViI-CcaXT71y.js} +1 -1
  220. package/dist/assets/{toChartData-3h9AvMdw-CxwHop5O.js → toChartData-CrsGFSA1-DRCqW50O.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-CJ61L8mT-DS0868j3.js → treasuryColorHelper-B8Evc_xJ-C2M6xUma.js} +1 -1
  222. package/dist/assets/{uploadAttachment-Bf61v1Xo-B7uvvQf2.js → uploadAttachment-PM-_GgYg-CTQQfxMY.js} +3 -3
  223. package/dist/assets/{uploadReceipts-CPeNTSex-DsNuxnXH.js → uploadReceipts-B3-z3hJ9-DECDgzHp.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +3 -3
  226. package/dist/assets/AddAddressForCardDrawer-BZ0RCcja-nZX6PoRd.js +0 -6
  227. package/dist/assets/AttachmentView-CdNQ2xWp-BPsXC6R_.js +0 -101
  228. package/dist/assets/BillPaySetUpPage-mD_IeiJx-DxluR9l0.js +0 -42
  229. package/dist/assets/BusinessVerificationPage-CXxO69rJ-ZjHWLeJo.js +0 -140
  230. package/dist/assets/CheckDepositDrawerPage-DSR4fX1u-ndwRTjAi.js +0 -206
  231. package/dist/assets/CompanyPassportCard-D1Qw3xp1-CzjX_y3L.js +0 -42
  232. package/dist/assets/CustomerOnboardingContainerPage-gA22hWiI-DHO0Bx78.js +0 -1
  233. package/dist/assets/CustomerOnboardingNoStepsPage-r85EAGP9-BWacMhdz.js +0 -66
  234. package/dist/assets/CustomerOnboardingProductSuitePage-DjNvBda4-6fpGm6Io.js +0 -202
  235. package/dist/assets/EditPeoplePage-DF_58Z4U-DfKImWbi.js +0 -55
  236. package/dist/assets/ExpenseAutomationOverviewPage-DleEJVpj-u_9BpHnf.js +0 -222
  237. package/dist/assets/HelpButton-CzyBnp0B-B4qln9tA.js +0 -28
  238. package/dist/assets/InsightsCardStack-DJQ_W9fy-DK1IXhJg.js +0 -79
  239. package/dist/assets/InvitePeoplePage-BN0ktc82-CX-yWmlh.js +0 -12
  240. package/dist/assets/InvoiceUploadSection-BQgfwgdt-Bu3SJ_dU.js +0 -140
  241. package/dist/assets/LabeledAddressValueField-Dg0TLzPn-CRUbVJT9.js +0 -45
  242. package/dist/assets/LabeledControlledCheckBoxField-DJSFmpIX-DXOJq1C3.js +0 -16
  243. package/dist/assets/LabeledDocumentField-BT7CRAVI-Bu18IeBT.js +0 -41
  244. package/dist/assets/LockCardPage-Cv7cc2yv-Bgylw99f.js +0 -558
  245. package/dist/assets/ReimbursementApprovalRuleDetailPage-DH75g3pT-CXqiP4jT.js +0 -26
  246. package/dist/assets/ReimbursementDetailPage-DNaaqXYR-Bh3Xalhl.js +0 -314
  247. package/dist/assets/ReviewDetailsPage-DaLjRiFW-DJFP67SX.js +0 -290
  248. package/dist/assets/SignIn-nUeTTVKC-CQFjsNXv.js +0 -329
  249. package/dist/assets/UploadAdditionalDocumentOverlay-D2Tin1CX-7rKlqc-o.js +0 -38
  250. package/dist/assets/ZeniAccountNavBarPieces-C3IR1FEp-Jc31zuuu.js +0 -14
  251. package/dist/assets/ZeniTransferAmountSlider-Co5sY7gl-DtKUG0sE.js +0 -63
@@ -1,4 +1,4 @@
1
- import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4 as et,o as t,C as f,a3 as De,_ as St,am as vt,u as jt,a2 as J,bq as At,cX as tt,b as R,l as z,g4 as kt,g as S,J as Tt,c as ot,w as W,s as Y,f4 as Pt,a as Ct,cc as zt,F as Dt,fM as Lt,r as c,by as rt,d3 as nt,bQ as it,cI as Ft,cz as Mt,fg as Rt,f8 as Bt,k as Ot,n as It,f9 as Et,du as _t,c5 as Nt,c4 as Vt,aS as Xt,bf as Wt,fi as Yt,fr as Gt,ab as qt}from"./index-RcMUg6rr.js";import{n as r,b as w}from"./vendor-rkTZJa59.js";import{E as at}from"./PortfolioDetails-BQCQctOT-BcjcqURs.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./treasuryColorHelper-CJ61L8mT-DS0868j3.js";const Jt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Qt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,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(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:x}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Ht(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Kt(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Ht=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Kt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
1
+ import{e as ge,N as $t,j as r,a2 as P,gX as bt,M as we,a3 as X,X as _e,h as Ze,a7 as et,o as t,C as f,a6 as De,_ as St,ap as vt,u as jt,a5 as q,br as At,cX as tt,b as R,l as z,g4 as kt,g as S,J as Tt,c as rt,w as W,s as Y,f4 as Pt,a as Ct,cc as zt,F as Dt,fM as Lt,r as c,bz as ot,d3 as nt,bR as it,cI as Ft,cz as Mt,fg as Rt,f8 as Bt,k as Ot,m as It,f9 as Et,du as _t,c5 as Nt,c4 as Vt,aU as Xt,bg as Wt,fi as Yt,fr as Gt,ae as Jt}from"./index-dX8TSOm6.js";import{n as o,b as w}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-8UvaROaS-BV0kfCx8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./treasuryColorHelper-B8Evc_xJ-C2M6xUma.js";const qt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Ht({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,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 r.jsxs(tr,{sliderValue:l,children:[r.jsx(er,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:x}),r.jsx(rr,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),r.jsx(ar,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Kt(l)}),r.jsx(or,{children:F.map((h,i)=>r.jsx(nr,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:r.jsx(ir,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Kt=e=>{const a=Jt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),er=o.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -22,7 +22,7 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
22
22
  background-repeat: no-repeat;
23
23
  cursor: pointer;
24
24
  }
25
- `,to=r.div`
25
+ `,tr=o.div`
26
26
  position: relative;
27
27
  width: 70%;
28
28
  margin-left: 30px;
@@ -30,26 +30,26 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
30
30
  margin-bottom: 20px;
31
31
  margin-top: ${t.sp5};
32
32
  min-height: ${t.sp8};
33
- `,oo=r.div`
33
+ `,rr=o.div`
34
34
  position: absolute;
35
35
  height: 2px;
36
36
  margin-top: -${t.sp2};
37
37
  background-color: ${e=>e.theme.colors.hero};
38
- `,ro=r.div`
38
+ `,or=o.div`
39
39
  position: absolute;
40
40
  bottom: ${t.sp0};
41
41
  top: ${t.sp5};
42
42
  width: 100%;
43
43
  display: flex;
44
44
  justify-content: center;
45
- `,no=r.span`
45
+ `,nr=o.span`
46
46
  position: absolute;
47
47
  cursor: pointer;
48
48
  transform: translateX(-50%);
49
- `,io=r(W)`
49
+ `,ir=o(W)`
50
50
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
51
  white-space: nowrap;
52
- `,ao=r(W)`
52
+ `,ar=o(W)`
53
53
  position: absolute;
54
54
  top: -${t.sp5};
55
55
  white-space: nowrap;
@@ -60,15 +60,15 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  padding: 2px ${t.sp2};
63
- `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=we.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(qo,{}):o.jsx(Jo,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Go,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),x=jt(),v=J(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=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ne,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(Wo,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Lo,{}),o.jsx(Yo,{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(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Do,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(Ne,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:wo(e),fundAllocations:xo(e),page:"transfer review"})})]})})]}),o.jsx(et,{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:so,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(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(Xe,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Xo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(Xe,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(_o,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(No,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:X("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&&!l?o.jsx(Oo,{children:x?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Eo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(Ae,{children:[X("0,0[.]00",x.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
63
+ `,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:sr},dateFormat:{visual:{DMMMYYYYFormat:lr}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:cr,addOrSwitchInitiateTransfer:dr,lowBalanceIn:ur}}}}=we.getLocalizedStrings(),pr=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=xr(e,u,n.treasuryAccount.id);return r.jsxs(r.Fragment,{children:[r.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[r.jsx(ue,{children:l.topAccountLabel}),r.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),r.jsxs(se,{windowSize:d,children:[l.topAccount?.label,r.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?r.jsx(pe,{}):null]}),l.arrowDirection==="up"?r.jsx(Gr,{}):r.jsx(Jr,{}),r.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[r.jsx(ue,{children:l.bottomAccountLabel}),r.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),r.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,r.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?r.jsx(pe,{}):null]})]})}else return r.jsxs(r.Fragment,{children:[r.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[r.jsx(ue,{children:"Transfer Funds From"}),r.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),r.jsxs(se,{windowSize:d,children:[e?.label,r.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?r.jsx(pe,{}):null]}),r.jsx(Yr,{}),r.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[r.jsx(ue,{children:"To"}),r.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),r.jsxs(se,{windowSize:d,children:[u?.label,r.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?r.jsx(pe,{}):null]})]})},hr=(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},mr=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),x=jt(),v=q(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=hr($,e.treasuryAccount,A);return r.jsxs(r.Fragment,{children:[r.jsxs(Tr,{windowSize:m,children:[r.jsx(Fr,{windowSize:m,children:r.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:r.jsx(Ne,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),r.jsx(Mr,{windowSize:m,children:E.reviewAndConfirm}),r.jsx(Xr,{windowSize:m,children:r.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),r.jsx(Dr,{}),r.jsx(Wr,{children:r.jsxs(r.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(lr))]})}),p?r.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:ur.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:dr}):null,h?r.jsx(kr,{children:r.jsxs(Sr,{children:[r.jsxs(Pr,{children:[r.jsx(zr,{}),r.jsxs(vr,{children:[r.jsx(jr,{children:e.error?.title}),r.jsx(Ar,{children:e.error?.message})]})]}),r.jsx(Cr,{children:r.jsx(Ne,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,r.jsx(Lr,{windowSize:m,children:r.jsxs(yr,{windowSize:m,children:[r.jsx($r,{windowSize:m,children:r.jsx(pr,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),r.jsx(br,{children:r.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:gr(e),fundAllocations:wr(e),page:"transfer review"})})]})})]}),r.jsx(et,{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:sr,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 r.jsx(Ve,{isOptionSelected:u,isForReview:d,children:r.jsx(Xe,{color:S.brandColorGoldDark})});if(a==="")return r.jsx(Vr,{isForReview:d,children:r.jsx(Mt,{})});const l=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(l!=null){if(l.accType==="depositAccount")return r.jsx(Ve,{isOptionSelected:u,isForReview:d,children:r.jsx(Xe,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?r.jsx(Er,{src:fr(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):r.jsx(_r,{isOptionSelected:u,isForReview:d,children:r.jsx(Nr,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?r.jsx(Ae,{children:X("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&&!l?r.jsx(Br,{children:x?.maskedAccountNumber}):r.jsxs(Rr,{className:"option-sublabel",children:[r.jsx(Ae,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?r.jsx(Ir,{className:"dot"}):null,x?.accountBalance?.available?r.jsxs(Ae,{children:[X("0,0[.]00",x.accountBalance.available),v?r.jsx(Or,{children:cr}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?r.jsx(Ze,{size:"Small",start:!0}):null]})},fr=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",gr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},xr=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=o.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
- `,le=r(W)`
66
+ `,le=o(W)`
67
67
  color: ${e=>e.theme.colors.hero};
68
- `,ce=r(Y)`
68
+ `,ce=o(Y)`
69
69
  display: flex;
70
70
  align-items: center;
71
- `,$o=r.div`
71
+ `,yr=o.div`
72
72
  display: flex;
73
73
  flex-direction: column;
74
74
  width: 100%;
@@ -81,14 +81,14 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
81
81
  ${e=>e.windowSize==="small"&&`
82
82
  width: auto;
83
83
  `}
84
- `,bo=r.div`
84
+ `,$r=o.div`
85
85
  display: flex;
86
86
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
87
  justify-content: space-between;
88
88
  align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
89
89
  width: 100%;
90
90
  background-color: ${e=>e.theme.colors.grey5};
91
- `,de=r.div`
91
+ `,de=o.div`
92
92
  display: flex;
93
93
  flex-direction: column;
94
94
  gap: ${t.sp1};
@@ -97,27 +97,27 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
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
- `,So=r.div`
100
+ `,br=o.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
- `,vo=r.div`
105
+ `,Sr=o.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
- `,jo=r.div`
112
+ `,vr=o.div`
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  margin-left: ${t.sp2};
116
- `,Ao=r(it)`
116
+ `,jr=o(it)`
117
117
  color: ${S.important};
118
- `,ko=r(Y)`
118
+ `,Ar=o(Y)`
119
119
  color: ${S.important};
120
- `,To=r.div`
120
+ `,kr=o.div`
121
121
  margin-top: ${t.sp3};
122
122
  display: flex;
123
123
  background-color: ${e=>e.theme.colors.grey5};
@@ -126,19 +126,19 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
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
- `,Po=r.div`
129
+ `,Tr=o.div`
130
130
  height: auto;
131
131
  padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
132
132
  padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
133
133
  margin-bottom: auto;
134
- `,Co=r.div`
134
+ `,Pr=o.div`
135
135
  display: flex;
136
136
  align-items: flex-start;
137
- `,zo=r.div``,Do=r(nt)`
137
+ `,Cr=o.div``,zr=o(nt)`
138
138
  width: ${t.sp4};
139
139
  height: ${t.sp4};
140
140
  color: ${S.important};
141
- `,Ne=r(De)`
141
+ `,Ne=o(De)`
142
142
  cursor: pointer;
143
143
  color: ${e=>e.theme.colors.hero};
144
144
  width: ${t.sp4};
@@ -147,20 +147,20 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
147
147
  &:hover {
148
148
  color: ${e=>e.theme.colors.primary};
149
149
  }
150
- `,Lo=r.div`
150
+ `,Dr=o.div`
151
151
  display: flex;
152
152
  flex: 1;
153
153
  background-color: ${e=>e.theme.colors.grey3};
154
154
  min-height: 1px;
155
155
  max-height: 1px;
156
- `,ue=r(W)`
156
+ `,ue=o(W)`
157
157
  color: ${e=>e.theme.colors.hero};
158
- `,Fo=r.div`
158
+ `,Lr=o.div`
159
159
  display: flex;
160
160
  flex-direction: column;
161
161
  padding-top: ${t.sp3};
162
162
  padding-bottom: ${e=>`${U.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
- `,Mo=r.div`
163
+ `,Fr=o.div`
164
164
  display: flex;
165
165
  flex-direction: row;
166
166
  justify-content: flex-end;
@@ -170,94 +170,94 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
170
170
  padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
171
  z-index: 2;
172
172
  background-color: transparent;
173
- `,Ro=r(ot)`
173
+ `,Mr=o(rt)`
174
174
  ${e=>`${Ce.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
- `,Bo=r(W)`
180
+ `,Rr=o(W)`
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
- `,Oo=r.span`
186
+ `,Br=o.span`
187
187
  margin-left: ${t.sp2};
188
- `,Ae=r.div``,Io=r(Wt)`
188
+ `,Ae=o.div``,Or=o(Wt)`
189
189
  color: ${e=>e.theme.colors.brandColorGoldDark};
190
190
  margin-left: ${t.sp1};
191
- `,Eo=r.div`
191
+ `,Ir=o.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
- `,_o=r.img`
197
+ `,Er=o.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
- `,No=r.div`
203
+ `,_r=o.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
- `,Vo=r(Gt)`
208
+ `,Nr=o(Gt)`
209
209
  min-width: inherit;
210
210
  width: inherit;
211
211
  height: inherit;
212
212
  margin-right: ${t.sp2};
213
- `,Ve=r.div`
213
+ `,Ve=o.div`
214
214
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
215
215
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
216
216
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
217
217
  margin-right: ${t.sp2};
218
- `,Xe=r(Yt)`
218
+ `,Xe=o(Yt)`
219
219
  min-width: inherit;
220
220
  width: inherit;
221
221
  height: inherit;
222
222
  margin-right: ${t.sp2};
223
- `,Xo=r.div`
223
+ `,Vr=o.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
- `,Wo=r(rt)`
229
+ `,Xr=o(ot)`
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
- `,Yo=r(Y)`
236
+ `,Wr=o(Y)`
237
237
  color: ${e=>e.theme.colors.hero};
238
238
  margin-top: ${t.sp3};
239
- `,Go=r(Xt)`
239
+ `,Yr=o(Xt)`
240
240
  width: ${t.sp4};
241
241
  height: ${t.sp4};
242
242
  color: ${e=>e.theme.colors.hero};
243
- `,qo=r(Nt)`
243
+ `,Gr=o(Nt)`
244
244
  width: ${t.sp4};
245
245
  height: ${t.sp4};
246
246
  color: ${e=>e.theme.colors.hero};
247
247
  align-self: center;
248
- `,Jo=r(Vt)`
248
+ `,Jr=o(Vt)`
249
249
  width: ${t.sp4};
250
250
  height: ${t.sp4};
251
251
  color: ${e=>e.theme.colors.hero};
252
252
  align-self: center;
253
- `,pe=r.div`
253
+ `,pe=o.div`
254
254
  width: 1px;
255
255
  height: 25px;
256
256
  background-color: ${e=>e.theme.colors.grey1};
257
257
  position: absolute;
258
258
  right: 50%;
259
259
  bottom: -25px;
260
- `,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Uo},billPay:{insufficientFunds:We}}}=we.getLocalizedStrings(),st="amount",Qo="transferTo",Ho="transferFrom",_="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Ko({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,H]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[K,Z]=w.useState(he(B,O)),b=l.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[ee,Le]=w.useState(!1),[Fe,Me]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=J(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=J($e),Oe=J(be),Se=e.transferMoneyParties.map(s=>s.id),ve=J(Se),dt=w.useCallback(s=>{v?.(s),Me(!1),Le(!1)},[v]),ut=w.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:G}=Pt({token:D,onSuccess:dt,onExit:ut}),q=w.useCallback(s=>{s.preventDefault(),s.stopPropagation(),G?te():Le(!0)},[te,G]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>Ye(e,n,q),[e,n])}),{isValid:pt}=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"&&G&&Me(!0)},[G,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ye(e,n,q))},[G,D,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,q]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[_].transferFrom.selectedOption,re=j[_].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ee={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ee,fromAccount:ne,toAccount:ie};H(Ee.amount),m(yt)}};w.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),w.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&x()}),{fromAccount:wt,toAccount:Ie,amount:L}=e.treasuryTransferMoneyLocalData,xt=s=>{if(!s||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return We.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return We.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Dt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(_,Ho),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,L),defaultValue:{selectedOption:wt?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:xt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(_,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Lt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(_,st),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",X("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Qt,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:H})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(wr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${X("0,0",{amount:K,currencySymbol:"$"})}`})}),o.jsx(xr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${X("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Je,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Je,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,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(l&&d){const p={label:Uo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
260
+ `,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qr},billPay:{insufficientFunds:We}}}=we.getLocalizedStrings(),st="amount",Ur="transferTo",Hr="transferFrom",_="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Kr({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,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,K]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[Q,Z]=w.useState(he(B,O)),b=l.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[ee,Le]=w.useState(!1),[Fe,Me]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=q(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=q($e),Oe=q(be),Se=e.transferMoneyParties.map(s=>s.id),ve=q(Se),dt=w.useCallback(s=>{v?.(s),Me(!1),Le(!1)},[v]),ut=w.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:G}=Pt({token:D,onSuccess:dt,onExit:ut}),J=w.useCallback(s=>{s.preventDefault(),s.stopPropagation(),G?te():Le(!0)},[te,G]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>Ye(e,n,J),[e,n])}),{isValid:pt}=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"&&G&&Me(!0)},[G,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ye(e,n,J))},[G,D,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,J]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},re=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===re),ie=e.transferMoneyParties.find(je=>je.id===oe);re===e.treasuryAccount.id&&(ne=e.treasuryAccount),oe===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ee={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ee,fromAccount:ne,toAccount:ie};K(Ee.amount),m(yt)}};w.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),w.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&x()}),{fromAccount:wt,toAccount:Ie,amount:L}=e.treasuryTransferMoneyLocalData,xt=s=>{if(!s||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return We.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return We.addMoney;return""};return r.jsxs(r.Fragment,{children:[T?r.jsx(Qr,{children:r.jsxs(eo,{children:[r.jsxs(to,{children:[r.jsx(oo,{}),r.jsxs(no,{children:[r.jsx(io,{children:e.error?.title}),r.jsx(ao,{children:e.error?.message})]})]}),r.jsx(ro,{children:r.jsx(uo,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,r.jsx(so,{windowSize:i,children:r.jsx(tt,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),r.jsx(Dt,{...I,children:r.jsxs(Zr,{id:ct(lt),onSubmit:gt,children:[r.jsxs(lo,{children:[r.jsx(ze,{size:i,children:r.jsx(Ge,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(_,Hr),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,L),defaultValue:{selectedOption:wt?.id,allOptions:fe(e,!0,n,!0,J,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:xt})}),!n&&r.jsxs(r.Fragment,{children:[r.jsx(Pe,{}),r.jsx(ze,{size:i,children:r.jsx(Ge,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(_,Ur),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,J,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),r.jsx(Pe,{}),r.jsx(Lt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(_,st),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&r.jsxs(r.Fragment,{children:[r.jsx(Pe,{}),r.jsx(co,{size:i,children:r.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&r.jsxs(po,{children:[p?r.jsxs(ho,{children:[r.jsx(mo,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",X("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),r.jsx(Ht,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:K})]}):null,r.jsxs(go,{windowSize:i,children:[r.jsxs(yo,{windowSize:i,children:[r.jsx(wo,{children:r.jsx(fo,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${X("0,0",{amount:Q,currencySymbol:"$"})}`})}),r.jsx(xo,{windowSize:i}),r.jsx($o,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${X("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?r.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[r.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),r.jsx(bo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[r.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(So,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!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(l&&d){const p={label:qr.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Qr=o.div`
261
261
  margin-top: ${t.sp3};
262
262
  display: flex;
263
263
  background-color: ${e=>e.theme.colors.grey5};
@@ -266,44 +266,44 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
266
266
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
267
267
  border-radius: ${t.sp2};
268
268
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
269
- `,er=r.form`
269
+ `,Zr=o.form`
270
270
  display: flex;
271
271
  flex-direction: column;
272
272
  justify-content: center;
273
273
  align-items: center;
274
- `,tr=r.div`
274
+ `,eo=o.div`
275
275
  display: flex;
276
276
  width: 100%;
277
277
  justify-content: space-between;
278
278
  padding: ${t.sp3} ${t.sp4};
279
279
  background-color: ${S.importantLight};
280
280
  border-radius: ${t.sp2};
281
- `,or=r.div`
281
+ `,to=o.div`
282
282
  display: flex;
283
283
  align-items: flex-start;
284
- `,rr=r.div``,nr=r(nt)`
284
+ `,ro=o.div``,oo=o(nt)`
285
285
  width: ${t.sp4};
286
286
  height: ${t.sp4};
287
287
  color: ${S.important};
288
- `,ir=r.div`
288
+ `,no=o.div`
289
289
  display: flex;
290
290
  flex-direction: column;
291
291
  margin-left: ${t.sp2};
292
- `,ar=r(it)`
292
+ `,io=o(it)`
293
293
  color: ${S.important};
294
- `,sr=r(Y)`
294
+ `,ao=o(Y)`
295
295
  color: ${S.important};
296
- `,lr=r(rt)`
296
+ `,so=o(ot)`
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"&&`
300
300
  margin-top: ${t.sp1};
301
301
  margin-bottom: ${t.sp1};
302
302
  `}
303
- `,Ge=r(Ft)`
303
+ `,Ge=o(Ft)`
304
304
  border-radius: ${t.sp2};
305
305
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
306
- `,cr=r.div`
306
+ `,lo=o.div`
307
307
  display: flex;
308
308
  flex-direction: column;
309
309
  width: 100%;
@@ -311,13 +311,13 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
311
311
  border: 1px solid ${e=>e.theme.colors.grey3};
312
312
  box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
313
313
  border-radius: ${t.sp2};
314
- `,Pe=r.div`
314
+ `,Pe=o.div`
315
315
  display: flex;
316
316
  flex: 1;
317
317
  background-color: ${e=>e.theme.colors.grey3};
318
318
  min-height: 1px;
319
319
  max-height: 1px;
320
- `,ze=r.div`
320
+ `,ze=o.div`
321
321
  display: flex;
322
322
  flex-direction: row;
323
323
  padding: ${t.sp2};
@@ -347,10 +347,10 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
347
347
  margin-right: ${t.sp1} !important;
348
348
  }
349
349
  `}
350
- `,dr=r(ze)`
350
+ `,co=o(ze)`
351
351
  padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
352
352
  padding-top: ${t.sp2};
353
- `,ur=r(De)`
353
+ `,uo=o(De)`
354
354
  cursor: pointer;
355
355
  color: ${e=>e.theme.colors.hero};
356
356
  width: ${t.sp4};
@@ -359,10 +359,10 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
359
359
  &:hover {
360
360
  color: ${e=>e.theme.colors.primary};
361
361
  }
362
- `,pr=r.div`
362
+ `,po=o.div`
363
363
  margin-bottom: ${t.sp6};
364
364
  width: 90%;
365
- `,hr=r.div`
365
+ `,ho=o.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{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
371
371
  justify-content: center;
372
372
  align-items: center;
373
373
  flex-direction: column;
374
- `,mr=r(Y)`
374
+ `,mo=o(Y)`
375
375
  color: ${e=>e.theme.colors.hero};
376
376
  margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
377
377
  white-space: pre-line;
378
378
  text-align: center;
379
- `,fr=r.div`
379
+ `,fo=o.div`
380
380
  ${e=>me.yieldEarned.style(e.windowSize)}
381
381
  color: ${S.success};
382
382
  white-space: nowrap;
383
- `,gr=r.div`
383
+ `,go=o.div`
384
384
  display: flex;
385
385
  align-items: center;
386
386
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
@@ -389,15 +389,15 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
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
- `,wr=r.div`
392
+ `,wo=o.div`
393
393
  display: flex;
394
394
  flex-direction: row;
395
395
  align-items: center;
396
- `,qe=r.div`
396
+ `,Je=o.div`
397
397
  ${e=>me.calculatorFooterText.style(e.windowSize)}
398
398
  color: ${e=>e.theme.colors.hero};
399
399
  cursor: pointer;
400
- `,Je=r.div`
400
+ `,qe=o.div`
401
401
  display: flex;
402
402
  flex-direction: row;
403
403
  align-items: center;
@@ -411,7 +411,7 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
411
411
  color: ${e=>e.theme.colors.primary};
412
412
  }
413
413
  }
414
- `,xr=r.div`
414
+ `,xo=o.div`
415
415
  display: ${e=>e.windowSize==="small"?"none":"block"};
416
416
  width: ${t.sp1};
417
417
  height: ${t.sp1};
@@ -419,72 +419,72 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
419
419
  margin: 0 ${t.sp2};
420
420
  background-color: ${e=>e.theme.colors.grey1};
421
421
  border-radius: 50%;
422
- `,yr=r.div`
422
+ `,yo=o.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
- `,$r=r(It)`
427
+ `,$o=o(It)`
428
428
  color: ${e=>e.theme.colors.hero};
429
- `,br=r(Et)`
429
+ `,bo=o(Et)`
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
- `,Sr=r(_t)`
436
+ `,So=o(_t)`
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
- `,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])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Wr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:H,fetchState:O}=a,K=H.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Qe,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(He,{windowSize:p,children:o.jsx(Ke,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:X("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(_e,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(_e,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:K,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Qe,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(He,{windowSize:p,children:o.jsx(Ke,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Ko,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:K,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ue.review},cancelBtn:{label:Ue.cancel,onClick:()=>{h()}}}):null]})})},jr=r(Y)`
443
+ `,H={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])},vo={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Wo=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:K,fetchState:O}=a,Q=K.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return r.jsx(ko,{windowSize:p,children:e.fetchState==="Completed"?r.jsxs(He,{windowSize:p,isTransferCompleted:!0,children:[r.jsx(Ke,{windowSize:p,children:r.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),r.jsxs(zo,{windowSize:p,children:[r.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),r.jsx(To,{children:r.jsxs(r.Fragment,{children:[k.transferDrawer.success.prefix,r.jsx(Po,{children:X("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),r.jsxs(Co,{windowSize:p,children:[r.jsx(_e,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),r.jsx(_e,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?r.jsx(mr,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:Q,onCancelClick:h}):r.jsxs(r.Fragment,{children:[r.jsxs(He,{windowSize:p,isTransferCompleted:!1,children:[r.jsx(Ke,{windowSize:p,children:r.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?r.jsx(Do,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):r.jsx(Lo,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?r.jsx(Ao,{children:k.transferDrawer.subTitle}):r.jsx(jo,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?r.jsx(Kr,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Q,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):r.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?r.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ue.review},cancelBtn:{label:Ue.cancel,onClick:()=>{h()}}}):null]})})},jo=o(Y)`
444
444
  color: ${e=>e.theme.colors.hero};
445
- `,Ar=r(W)`
445
+ `,Ao=o(W)`
446
446
  color: ${e=>e.theme.colors.hero};
447
- `,kr=r.div`
447
+ `,ko=o.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
- `,Tr=r(St)`
454
+ `,To=o(St)`
455
455
  color: ${e=>e.theme.colors.primary};
456
456
  text-align: center;
457
- `,Pr=r(vt)`
457
+ `,Po=o(vt)`
458
458
  display: inline;
459
- `,Qe=r.div`
459
+ `,He=o.div`
460
460
  height: ${e=>e.isTransferCompleted?"100%":"auto"};
461
- padding-left: ${e=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
462
- padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
461
+ padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
462
+ padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
463
463
  margin-bottom: auto;
464
- `,Cr=r.div`
464
+ `,Co=o.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=>`${Q.buttonTrayGap.valuePx(e.windowSize)}`};
470
- `,zr=r.div`
469
+ gap: ${e=>`${H.buttonTrayGap.valuePx(e.windowSize)}`};
470
+ `,zo=o.div`
471
471
  height: 80%;
472
472
  display: flex;
473
473
  flex-direction: column;
474
474
  justify-content: center;
475
- margin: ${e=>`${t.sp0} ${Q.successContentMargin.valuePx(e.windowSize)}`};
475
+ margin: ${e=>`${t.sp0} ${H.successContentMargin.valuePx(e.windowSize)}`};
476
476
  align-items: center;
477
- `,He=r.div`
477
+ `,Ke=o.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=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
484
+ padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
485
485
  z-index: 2;
486
486
  background-color: ${e=>e.theme.colors.grey4};
487
- `,Ke=r(De)`
487
+ `,Qe=o(De)`
488
488
  cursor: pointer;
489
489
  color: ${e=>e.theme.colors.hero};
490
490
  width: ${t.sp4};
@@ -493,14 +493,14 @@ import{e as ge,I as $t,j as o,Z as P,gX as bt,M as we,a0 as X,X as _e,h as Ze,a4
493
493
  &:hover {
494
494
  color: ${e=>e.theme.colors.primary};
495
495
  }
496
- `,Dr=r(Tt)`
496
+ `,Do=o(Tt)`
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
- `,Lr=r(ot)`
502
- ${e=>`${vr.formTitle.style(e.windowSize)}`};
501
+ `,Lo=o(rt)`
502
+ ${e=>`${vo.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{Wr as default};
506
+ `;export{Wo as default};