@zeniai/web-cockpit-ui 1.14.12-qa → 1.14.13-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.
- package/dist/assets/ACHDetailsPage-DVi_fb5U-BWoXmLUY.js +21 -0
- package/dist/assets/{AIPerformancePage-C459GJxs-CUFOWwFR.js → AIPerformancePage-C-orwzaK-DOCKSZSl.js} +44 -44
- package/dist/assets/{AccountInfoPage-DWqJj9l6-Capr_Z-3.js → AccountInfoPage-DvhQOLM6-C0wQ6YRZ.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-Ca328DM4-Cb8-F3Q9.js → AccountInfoPageContent-B1BJnQNd-Dywp_u_s.js} +18 -18
- package/dist/assets/{AccountReconDetailsDrawerPage-BqIo4mya-BHbTJiEq.js → AccountReconDetailsDrawerPage-C8EtTwZE-BoEh8Ely.js} +13 -13
- package/dist/assets/{AccountRow-Bk3xWobY-C4Zvilnd.js → AccountRow-m3N4T8ro-CB7I5u10.js} +27 -27
- package/dist/assets/{AccountsPromoCardStack-Co90dxxm-BlSZ2eIa.js → AccountsPromoCardStack-DGHAcZ7D-BqYytjsB.js} +28 -28
- package/dist/assets/{AddAddressForCardDrawer-XNGsKMvs-rj1kuL_e.js → AddAddressForCardDrawer-B_1jj1h7-Cu6_XTQ0.js} +2 -2
- package/dist/assets/{AddToWalletPage-BiQWQXvz-Bblrbomq.js → AddToWalletPage-DL1Bk4bd-ClBCUS3g.js} +21 -21
- package/dist/assets/{AgingReportsPage-ClR6ctjm-BvsA-X32.js → AgingReportsPage-DQ4P7iSR-BaDY7W1-.js} +8 -8
- package/dist/assets/{AllUserItems-RFWkNfw--C4DCHl34.js → AllUserItems-BSWk_1pR-BC2mjTTt.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-F-pd4-We-BM-jeada.js → ApAgingDetailPage-0i8K1czh-BtF7tRtB.js} +2 -2
- package/dist/assets/{AppBasePage-B9-FGKn--CpOP-7R8.js → AppBasePage-CV3kU-Ax-HUIuRSgH.js} +7 -7
- package/dist/assets/{AppDrawerContent-C6P8rk3y-BWhPaRYb.js → AppDrawerContent-DA8q-1_m-Ip7rRN25.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-CPNEEGTF-BhZ8kwTo.js → ApprovalRulesSettingsPage-CRlqbhea-CnWEhcBd.js} +7 -7
- package/dist/assets/{ArAgingChart-D9qmMVoC-DsreAD17.js → ArAgingChart-CiJNNObG-DOT8YGoK.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-DMuZM6P_-Vz-qJNmg.js → ArAgingDetailPage-2I9R_J97-CEWBavmC.js} +1 -1
- package/dist/assets/{AttachmentView-B2ZOED0q-dJMT88ra.js → AttachmentView-D0naVbDk-BMIJVqWj.js} +7 -7
- package/dist/assets/{BankAccountSection-C8G4yj75-B_w1M8Cy.js → BankAccountSection-CYYTnOEW-ta40gqBk.js} +6 -6
- package/dist/assets/BankAccountWarningSection--b6oxmO3-bf21H1-K.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-B5IQ5w6f-1z2_M0sV.js → BankConnectionsSettingsPage-BzwCu93j-CCEpUgq7.js} +49 -49
- package/dist/assets/{BillDetailPage-B-PMkZ44-Dz4DR1t2.js → BillDetailPage-OzI0RkQ_-Bav1HJG-.js} +16 -16
- package/dist/assets/{BillPayApprovalRuleDetailPage-CdLKENJ--kCXb23Bw.js → BillPayApprovalRuleDetailPage-DIQW7KY9-C0xmBCct.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BueljBn0-CPA-G34p.js → BillPayApprovalRulesPage-BMmJ4cuT-CLahxDlm.js} +9 -9
- package/dist/assets/{BillPayPromoPage-WXntEliq-SuckTMGr.js → BillPayPromoPage-CN5LKQzn-T_t_dz_s.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-By7rYetf-BlaS7RoJ.js → BillPaySetUpPage-DMKmupPw-CmltaH2A.js} +2 -2
- package/dist/assets/{BillingSettingsPage-D-XtlyVU-D47jr1yc.js → BillingSettingsPage-Bt_0mrqR-CgkXOlNp.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-P8siJ8lO-69e-PfV-.js → BillsBulkReviewDrawerPage-GFME_IXw-CmxfCt6F.js} +1 -1
- package/dist/assets/{BoxItem-Bcy7IYuZ-CuoCQ3AF.js → BoxItem-nvtPdCwS-CiJFmSMj.js} +1 -1
- package/dist/assets/BusinessVerificationPage-_E3jrLwS-D28zK5AA.js +140 -0
- package/dist/assets/{CardNumberSubText-VsMOF0Xv-DCsVHK-6.js → CardNumberSubText-DBpF1pjJ-BDHubHrk.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DNbRs50r-Buun1iiv.js → CashbackDetailPage-DrdbDPXK-BHacfWCb.js} +30 -30
- package/dist/assets/{ChargeCardDetailPage-BSDS8Kqb-DpPROxWg.js → ChargeCardDetailPage-DvY3CSB4-DTju6vUj.js} +54 -54
- package/dist/assets/{ChargeCardListPage-Bzr8qMC0-CP4LVMfI.js → ChargeCardListPage-BE5yGbg8-B5XQaFqy.js} +14 -14
- package/dist/assets/{ChargeCardListTable-CTp6TFBR-BvzqcSSI.js → ChargeCardListTable-B-scLCAt-DWKxrdfC.js} +37 -37
- package/dist/assets/ChargeCardPromoPage-2OheDHbA-BAFEqKdK.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-B1wzJjgH-CTGNj7vw.js → ChargeCardSetupPage-FNCK1n4W-DRpaATuu.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CePfbLPp-CyQ0YrOT.js → ChargeCardStatementsPage-1fuIth_h-DUYP62lN.js} +9 -9
- package/dist/assets/{ChargeCardUtils-DC2v2EHU-B8YRIRH7.js → ChargeCardUtils-CErWBcYS-DYGG4Kg0.js} +1 -1
- package/dist/assets/{ChaseOverlay-B-Sx71yo-CVGS055Q.js → ChaseOverlay-9_ms5LgM-DLbFcFUT.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-FYtd8ETj.js +206 -0
- package/dist/assets/{CollapsableReportTable-mEqm05fp-CpGwQyDI.js → CollapsableReportTable-DX-FpwE7-MJq_0H8T.js} +59 -59
- package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-BZkAjfXP.js +260 -0
- package/dist/assets/{CompanyPassportCard-Ct6tCZqT-gCSCuEJk.js → CompanyPassportCard-BZXE3iJL-D0vVN1yd.js} +4 -4
- package/dist/assets/{CompanyPassportPage-D9NQ4bXl-DTZK2KZn.js → CompanyPassportPage-BYZC3G4H-Dyir7GPA.js} +22 -22
- package/dist/assets/CompleteProfile-mCKLQjGe-D37b51yU.js +52 -0
- package/dist/assets/{ConfettiBurst-DqSwVGBC-BHlAAcPF.js → ConfettiBurst-BEoFHjQ0-BZkigu9v.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D27A1926-BsU3_dv5.js → CreateOrEditVendorPage-6sohsdle-DulmpRQu.js} +11 -11
- package/dist/assets/{CreditCardPaymentDrawerPage-BI37dSwx-39VjlJr3.js → CreditCardPaymentDrawerPage-6oVDS3D8-BG57VbJ5.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-CAsn4Ae6-CZm-m7f1.js → CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js} +11 -12
- package/dist/assets/{CurrencySelectField-5uG4FfJ9-qAwPonrx.js → CurrencySelectField-F2P1iCLk-DqZUsNYq.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Be-GrAiK-besA9uPP.js → CustomerOnboardingActivationPage-CNJkyjta-BXFLHGd8.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-CnXYVWPD.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhGp71bj-DWlhhsi_.js → CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bgdn7kSU.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-CdOGTNXC-CHTF3KrU.js → CustomerOnboardingNoStepsPage-B49-4wZk-KyTxoYIy.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-ClPsywa3-DzHYHzx_.js → CustomerOnboardingPage-4FPXG220-Bhtz8R34.js} +7 -7
- package/dist/assets/{CustomerOnboardingProductSuitePage-pnHglqXq-CCAeHa0M.js → CustomerOnboardingProductSuitePage-cJPPvh-5-CdfdHVAA.js} +9 -9
- package/dist/assets/{Dashboard-avtbjFLf-CWLaijij.js → Dashboard-BBy_mQ8p-zBP8Z7QF.js} +260 -242
- package/dist/assets/{DashboardReportPage-CqJAu5WP-C5R220Aq.js → DashboardReportPage-DYttySr4-ICoa42Db.js} +6 -6
- package/dist/assets/{DepositAccTransactionItem-Da0GWYei-C6IiAcvx.js → DepositAccTransactionItem-PNTL0e8v-Bf5t1weD.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-91dKQsy5.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DGcVKriv-CQ6tNZZ5.js → DomesticWireDetailsPage-BhwTfZwI-lG3b6Dqd.js} +1 -1
- package/dist/assets/{DownloadOverlay-BdGiqnp7-Do8jKDZO.js → DownloadOverlay-CUbv29mo-Cm7YvHGd.js} +21 -21
- package/dist/assets/{DrawerPage-DCfm1BVs-CkoWC70i.js → DrawerPage-2_QOgQ1m-jFj08QrD.js} +11 -11
- package/dist/assets/EditPeoplePage-CtTYiqg3-C_rRpXUg.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C-nYgUua-C1FZgAx7.js → EditReimbursementDetailPage-C_jRh7w0-BjxLHuhj.js} +61 -61
- package/dist/assets/{EntityDetailPage-4HX_rHUf-CkoCECUD.js → EntityDetailPage-BhQsnCgQ-BJqshBB_.js} +3 -3
- package/dist/assets/{EntitySummarySection-C9VeOBpT-C1O3lIMZ.js → EntitySummarySection-CKkXzM76-JNV3nj4B.js} +12 -12
- package/dist/assets/{ExpenseAutomationOverviewPage-8jTkscWa-CfASrU1u.js → ExpenseAutomationOverviewPage-ZuB3Aiv2-g-beRD6J.js} +26 -26
- package/dist/assets/{ExpenseAutomationPage-D1wcc9GW-C8FX-4rm.js → ExpenseAutomationPage-BUic8zfk-CY9AnIj2.js} +41 -41
- package/dist/assets/{ExpressPayPage-Cj6cvMwQ-D9CJAZ17.js → ExpressPayPage-DEkJ_H0W-D2MJYEqV.js} +12 -12
- package/dist/assets/FeaturePreviewPage-CtK7L5vk-zb1RibOL.js +11 -0
- package/dist/assets/{FollowStepsSection-DjfnVH8N-B6vBO9jA.js → FollowStepsSection-CWw764ZM-BMjBkJvU.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-CEOzc0We-DJGBphLn.js → GlobalReviewListPage-CZctHM7r-C-SmU9tc.js} +12 -12
- package/dist/assets/{HelpButton-BdhMFvtG-BdXfZX0U.js → HelpButton-Dpx0Yoel-1C4sAmaf.js} +4 -4
- package/dist/assets/{InformationCardStack-DFOumIBr-C0vq2uPl.js → InformationCardStack-BGpHl4yb-D2VMsFIF.js} +5 -5
- package/dist/assets/InsightsCardStack-BbMJEahw-XjHe58kA.js +79 -0
- package/dist/assets/InsightsSection-CYkuQHcj-B18a-FIC.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-DF-jcHzr-CvvJemcw.js → IntegrationsSettingsPage-CMjSCRm_-C9xmqHS7.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-BFMqW1oQ-cIs7ycQ9.js → InternationalWireSwiftDetailsPage-BTbTUt8U-DHwEWLr_.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-Cq7swzrt-BXVkaYvX.js → InternationalWireVerificationPage-DAW2eMTg-BGhWwB2B.js} +22 -22
- package/dist/assets/{InviteFormPage-DXl2sEn9-Qq6BD2nX.js → InviteFormPage-CCbyacPR-DUt2JWiG.js} +20 -20
- package/dist/assets/{InvitePageListView-B5fRPcOg-BIAYUEYw.js → InvitePageListView-mHkALr5o-BpwevZSI.js} +62 -62
- package/dist/assets/InvitePeoplePage-r6PLBiEv-CRU1obhZ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-opkVsXZH-CiDZyXEw.js → InvoiceUploadSection-BsjeicP1-CxRipy2m.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-CZU1qbHO-D3xb_BWj.js → IssueChargeCardPage-C3esnkQg-Bt2ncw32.js} +33 -33
- package/dist/assets/{LabeledAddressValue-CCd3y8zQ-BLzq0Yq7.js → LabeledAddressValue-CeeoKoY4-C81fNRY2.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-XuFlx-oK-YJyhDZDY.js → LabeledAddressValueField-B6eeRCSM-BGM6iGCs.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-CCQn4-_S-CzvDrRjj.js → LabeledControlledCheckBoxField-CK8YBqJ7-dH7h4-c9.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-uQKngCdt-CU01d4Cj.js → LabeledCreatableSingleSelectField-BSKL8pA3-y22U9yzT.js} +6 -6
- package/dist/assets/LabeledDocumentField-BEyArLK3-Bbt820GM.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BrUNxsKy-CdrCxnZe.js → LabeledDropDownFormattedTextField-DikXPnxD-3H5194hi.js} +7 -7
- package/dist/assets/{LabeledText-ByqI7uq0-DxtGCoMb.js → LabeledText-qSjyNZO1-BMO1teu9.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0-CcatEpZT.js → LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-BPP3i4wb.js} +16 -16
- package/dist/assets/{LabeledZeniRolesDropDownField-DZL4GZtE-BBfYQkEz.js → LabeledZeniRolesDropDownField-nm5bG2up-B-C-v8v9.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-CJlBllrr-6j6wzRRV.js → LinkJETransactionPage-p7wdZbtp-BamvjpR7.js} +13 -13
- package/dist/assets/{LowBalancePopup-BEvuAR0Z-Bk_xFnCD.js → LowBalancePopup-DHk6xd2B-V5eEOh0a.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DloX1GWg-BFMutoMu.js → MagicLinkACHDetailsPage-DRQ8oej8-B79oZw1R.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DewjvM4v-DuBt-sx-.js → MagicLinkDomesticWireDetailsPage-BxXU9Opg-BdNHmjDj.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CVhazlxQ-BlY4hBeE.js → MagicLinkInternationalWireDetailsPage-DYN1baIc-DT4ZdIcR.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-Bgn3-P2S.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-d1edBt3w-BVfkhuQ-.js → MagicLinkTitleSection-K2cZQVzq-CIEidPVy.js} +4 -4
- package/dist/assets/MailingDetailsSection--zHyCquq-Cn3SWfKt.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-MtSyJ1AS-C61rImN5.js → MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js} +1 -1
- package/dist/assets/{Menu-BV79l8xf-B7WjdNMQ.js → Menu-LLL9taEz-CtH4c9eF.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-D-xDtURG-C2HMY51d.js → MyBankConnectionsSettingsPage-BfDsHVZw-aWZVlaCb.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-VEhml0PW-BCXZzbbW.js → MyPendingActivationChargeCardListPage-vag56A65-DvFj3aDV.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DPJ0fJdQ-TQrYLgYZ.js → MyProfileSettingsPage-DCKqWh-p-Ca4URKq-.js} +8 -8
- package/dist/assets/NavBarWithPicker-Cvi89wZV-3CVqu6ha.js +30 -0
- package/dist/assets/{NavigationArrow-BwXNdvOg-BPZh6hXD.js → NavigationArrow-CHmddDC--CUC3t4BZ.js} +2 -2
- package/dist/assets/NavigationDots-1wpj484Z-By9SVfKB.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-IeE86L-X-Bae2AXUm.js → NewGlobalMerchantPage-B0FywA12-BRuJ6OhE.js} +13 -13
- package/dist/assets/{NoDataChart-C9yfE8vY-4P6j_Myy.js → NoDataChart-D43mhDJW-B9CXfEvp.js} +1 -1
- package/dist/assets/{NoDataTable-DF9QNT4a-BHK-o5qC.js → NoDataTable-BOfUxs9D-8iqVCaVk.js} +1 -1
- package/dist/assets/{NotFoundPage-DSaizJve-BxedHkcK.js → NotFoundPage-DFioH5Rt-BQR0ORs3.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DeAeFHmj-DUWQVg3q.js → NotificationSettingsPage-y4g1rAal-BJEuhBam.js} +13 -13
- package/dist/assets/{NotificationsListConfig-DuzDckh--C6BvfucE.js → NotificationsListConfig-sybPesiv-FmaZBisq.js} +1 -1
- package/dist/assets/{NotificationsPage-B7ZC7ezP-Cdj0nN7a.js → NotificationsPage-C88YOjuY-Ds4zz6jH.js} +31 -32
- package/dist/assets/{OpExByVendorPage-DzODetHf-Dm-W-8O1.js → OpExByVendorPage-qBWbJhv9-Cs148Yzz.js} +7 -7
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-Db5ZTmqB.js → OverlayContainerPage-Dres4Grh-BoM1wcb9.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-FEi5USqF-DEFE8FSJ.js → PandLWithForecastPage-uiaHrci6-ClUgwvyo.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BbL4x5pQ-CArcGp7V.js → PaymentAccountSetupBillingAddressSection-BepDUdA0-DvE7tkJU.js} +11 -11
- package/dist/assets/{PeoplePage-B35T31YZ-C-lJt47m.js → PeoplePage-oF6C1uyM-DLFAgG_p.js} +20 -20
- package/dist/assets/{PortfolioAllocationFormPage-D3FP_MRr-BcOrWJml.js → PortfolioAllocationFormPage-C5O3GLqz-BYzrfMTu.js} +4 -4
- package/dist/assets/{PortfolioDetails-Dtz3YEPu-CbnH_B-R.js → PortfolioDetails-BkGNpmoO-B3KzDtEL.js} +31 -31
- package/dist/assets/{ProductsCarousel-DIlEuuqg-BjDLvopn.js → ProductsCarousel-C_tmo4EA-BDn6T3LG.js} +6 -6
- package/dist/assets/{PromoBaseCards-DTsaas8S-Bp3Sdx9s.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-Cvt38cmU-BbZWHEnH.js → QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js} +9 -9
- package/dist/assets/QBOSetupSection-D3sIWrh1-Dt8ceji3.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-DfTW4OAe.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BG8uMxNw-V-B_Oc7d.js → ReimbursementApprovalRulesPage-hjja5JFq-1dF9j3jn.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-Cs7XeZrC-CDH5tk6j.js → ReimbursementDetailPage-sXYC_aoR-CngyEl5D.js} +19 -19
- package/dist/assets/{ReimbursementPromoPage-CKITZNUc-B3czdsVE.js → ReimbursementPromoPage-C9zs7VRV-DY_b0K3o.js} +24 -24
- package/dist/assets/{ReimbursementSetUpPage-DD5P181p-BNAJ0P6-.js → ReimbursementSetUpPage-Ban56LOC-Cen4aYhY.js} +11 -11
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0eORL7o-BZhXRsOE.js → ReimbursementsBulkReviewDrawerPage-CsRwI-rl-KeeGuW4E.js} +1 -1
- package/dist/assets/{ReloadCard-CZ4IXHy1-D0PwAZkP.js → ReloadCard-EBXtqdt5-e0DLVF2o.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Do0yQJxY-C6yall7R.js → ReportTableViewSelector-Ae5lGopA-CZicNwDg.js} +10 -10
- package/dist/assets/{ReportsPage-BUi475EG-BorB4Vqw.js → ReportsPage-Dh3DhbEK-DCmUMwXx.js} +5 -5
- package/dist/assets/{RevenueChart-DPNqxQ4n-5RLNohUA.js → RevenueChart-C5qfXMEg-D1BQhist.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DTCC2C0D-IffnuWda.js → ReviewDetailsPage-DjcJd2VM-CMmXdVTb.js} +17 -17
- package/dist/assets/{ReviewOverlay-CPN-RHG--C8J652Ar.js → ReviewOverlay-Dmrea9EK-DOxs4FI1.js} +14 -14
- package/dist/assets/RoleWithToolTip-CqeM8Bh0-BSEMOUZO.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSz5BdJ4-ajU7u-K2.js → ScheduleDetailsFixedAssetsPage-CQGRrdSx-BKHIJc5L.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DKVlaW9e-Mc61Wcxe.js → ScheduleDetailsPage-D5OBZ80r-BSViQYwc.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BhpHoReF-BCeDdvJx.js → ScheduleSequenceTable-fgV8zz4I-B96Fw2cP.js} +49 -49
- package/dist/assets/{ScreenRoutes-Cb2UBar1.js → ScreenRoutes-Bs8GRIgm.js} +62 -62
- package/dist/assets/{SetUpAccountSection-Blh-Vipv-DTzNADjZ.js → SetUpAccountSection-4-gtB3I4-CmDUZ7Ps.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-DsyZbNsv-BU4fjsR8.js → SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js} +12 -12
- package/dist/assets/{SignIn-DehOoUba-D1wgEnhj.js → SignIn-CgXxIawW-DSrGSPuV.js} +17 -17
- package/dist/assets/{SignInScreen-CdOVOg4V.js → SignInScreen-DSt7uixJ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C23fDDXZ-YGqIsuA5.js → SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-Cx0sB3qO-BUuUjlAR.js → SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js} +55 -55
- package/dist/assets/{SpendManagementSection-DbZYpbtO-d6L97RYF.js → SpendManagementSection-DbC93chQ-CmYHf5ne.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-BkUIdz9m-B2ewL4T_.js → SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js} +22 -22
- package/dist/assets/{StatementItem-BF8L0fc_-DzjaOfpz.js → StatementItem-7ezfuDl--CcU7F4Hj.js} +5 -5
- package/dist/assets/{StatementsPage-96e3ZbSU-f9GKAGwn.js → StatementsPage-C4ziRzkU-Cl2Heiw2.js} +6 -6
- package/dist/assets/{StatusSwitcher-jwpQ49F7-BnZJLj82.js → StatusSwitcher-0rVfFE-a-CheRZPfP.js} +7 -7
- package/dist/assets/{SubTabSwitcher-B8H6McwL-Cu2vNU7E.js → SubTabSwitcher-aoWbkCmT-CaMIdf8x.js} +1 -1
- package/dist/assets/{SummaryCard-Bv4ja9yJ-aDvuTxki.js → SummaryCard-6V1G-Yln-AkNgJPj0.js} +1 -1
- package/dist/assets/{TaskManagementPage-D7tD4WRl-Css52_VB.js → TaskManagementPage-DjQma5Cr-DLhPVic-.js} +18 -18
- package/dist/assets/{TimeRangeSwitcher-Cr-ObvZ9-DYgsNzbf.js → TimeRangeSwitcher-DeIRg5zY-Bi--_Fx4.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-YkFxZedG-BzHaiUBA.js → TimeframeSwitcher-Cop4G4gx-DupejW9U.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-DuZjqpvb.js +31 -0
- package/dist/assets/{TopExCard-DtrsuLFD-C29DggA1.js → TopExCard-BKirBv7q-BKzGhACE.js} +6 -6
- package/dist/assets/{TopExDetailPage-HMRdJt_a-Dv3hZE10.js → TopExDetailPage-DcVunE8d-BJAugcNm.js} +11 -11
- package/dist/assets/{TransactionDetailPage-CkWEdpTW-D5C8nT3c.js → TransactionDetailPage-TJf3D0K6-ChXVy1nH.js} +26 -26
- package/dist/assets/{TransactionList-8rOZr8BD-z7em6_Iq.js → TransactionList-fn6VXYIJ-XKKmCfLI.js} +4 -4
- package/dist/assets/{TransactionListBig-DGx1qy2c-Bq45CoFX.js → TransactionListBig-B_hNDFjS-Bc3M6sby.js} +25 -25
- package/dist/assets/{TransactionListPage-CnbufCaM-AKYbMbcz.js → TransactionListPage-BbXZWbie-DmTuImVR.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-UpZX_EgR-DgquOs9I.js → TransactionVendorDetailPage-C6qJ5ncL-DRKEGbRL.js} +6 -6
- package/dist/assets/TransferDrawerPage-BtYoqKi--BK8jkNir.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-DoPe6v4O-DcxluBgr.js → TreasuryOverviewPage-DOV8Hanc-BzuaF_Oy.js} +53 -53
- package/dist/assets/{TreasuryPromoPage-Db20FO_G-C0PMRVyO.js → TreasuryPromoPage-C9O7G72q-D0fVcP3x.js} +30 -29
- package/dist/assets/TreasurySetupPage-CNzkkEjw-Dh78QFWy.js +146 -0
- package/dist/assets/{TreasuryStatementsPage-BONCF7O1-Woy-dxsL.js → TreasuryStatementsPage-Ts6D6F-l-CQAmEMl1.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-NCZ0Y4yr-xzYydVxV.js → TreasuryTaxLetterPage-CM93_rS4-CfzYhIka.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-DHGOUHuT.js +506 -0
- package/dist/assets/{TrendChart-DQXhBbqy-lVikR6m-.js → TrendChart-BXjPAYgk-DjYRl65V.js} +5 -5
- package/dist/assets/{TrendWithTransactions-Du-a-c_9-D0k8nTAC.js → TrendWithTransactions-BlGX9aVa-DUrKUprM.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-mSPC4LpU-Bq53-vV1.js → UncategorizedAccountsMappingPage--PnxDLIj-DgyLI8TV.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-B5O9G4QH-yrWt_3qv.js → UnitIntegrationPage-D5mzaVVL-B87wl-C8.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-CnjzAGYo-D_ZhLUZy.js → UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CYcCB8tr-m6LRb8Yr.js → Vendor2FAPopup-jXN-6kcB-WQjywdob.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-C6EuQBcH-CBj3o4fH.js → VendorACHDetailsPage-CHfX_7tk-CseZDy3t.js} +1 -1
- package/dist/assets/{VendorDetailPage-CnSXWVCg-5ItKK9hK.js → VendorDetailPage-CZuQaTCe-00z-DC1U.js} +13 -13
- package/dist/assets/{VendorDomesticWireDetailsPage-CVTkzHFB-BtQZkYtT.js → VendorDomesticWireDetailsPage-dBmyAkGL-BzziQHyn.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-TJb9mpk0-Cas0dzf5.js → VendorFiling1099EditablePage-C6KWbHaM-FdVjec5X.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-gBLVMddY-41zXx76R.js → VendorFirstReviewPage-DLaCXLH8-Bp3HVWXV.js} +30 -30
- package/dist/assets/{VendorInternationalWireDetailsPage-Bhm7j6HC-B5gepNJS.js → VendorInternationalWireDetailsPage-DgCH9Rad-DD-YZWBN.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MgN7VFET-OsBZ-jKy.js → VendorInternationalWireSwiftDetailsPage-CprymE3v-BXc-3kQm.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cn-8Yemv-2EiEgDAM.js → VendorsAccountsSection-CpkfwFDJ-DeHCyl4j.js} +15 -15
- package/dist/assets/VerifyDevice-CSIkEBig-DzQ9uYAN.js +67 -0
- package/dist/assets/{WarningsDrawerPage-Cc_Rty0A-Bxm78d1e.js → WarningsDrawerPage-DeqbJ2Le-CygSrVz8.js} +12 -12
- package/dist/assets/{ZeniAccountDetailPage-BU2TTiDP-DntPjYyg.js → ZeniAccountDetailPage-kwKoeRAb-yy2D4Oyh.js} +29 -29
- package/dist/assets/{ZeniAccountListViewPage-DbcnkYvX-rxgnFm8v.js → ZeniAccountListViewPage-15LxhIiI-3EkZXZhB.js} +19 -19
- package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-D_BEJJwy.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D-5ArrRO-DxJXUZdx.js → ZeniAccountPromoPage-DvlAb5YA-BxPQZ-TN.js} +33 -33
- package/dist/assets/{ZeniAccountSetupPage-DXYR0Ipo-B0J0wJvQ.js → ZeniAccountSetupPage-BjpvTfF5-DJqm4qSs.js} +3 -3
- package/dist/assets/{ZeniCopyright-DPd1ifIT-DNR_P6Qj.js → ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-CHnHwXGw.js +63 -0
- package/dist/assets/{analyticsHelper-DrNmU0vn-RfFhCbWD.js → analyticsHelper-BRyA7WLX-Ch8yhvbw.js} +1 -1
- package/dist/assets/{analyticsHelper-LynOmXwT.js → analyticsHelper-DEjyvXKA.js} +1 -1
- package/dist/assets/{chartTypes-YTQv3tre-qplKaXfA.js → chartTypes-CWEoqL4g-Bo1GQ9Y0.js} +1 -1
- package/dist/assets/{commonDimensions-BtmBVXgZ-BqS_uHfS.js → commonDimensions-UvndzJjv-DkCvzihA.js} +1 -1
- package/dist/assets/{detailCommon-hHyz3hj3-B-18TbC2.js → detailCommon-C3ymS8dg-BusgYXoD.js} +2 -2
- package/dist/assets/{downloadPdf-CDvgLzWC-CFICoubl.js → downloadPdf-CHwWcCR1-BQYdnkG1.js} +1 -1
- package/dist/assets/{index-BP54u7bE.js → index-DYVNUtTS.js} +4129 -3984
- package/dist/assets/{mapLoadingInProgressToTreeNode-BfoqmoAq-RPIy6iu_.js → mapLoadingInProgressToTreeNode-BV9ky97n-C6-bn_qJ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-CPCcXgC9.js → mapSectionWithAcOnlyToTreeNode-WivyN4Y7-DeEMrm9i.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D8o529OP-DP0HQuYK.js → mapSpacerToTreeNode-AXNRptLX-B0rl0_Lw.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BirMnIzY-J7LlhZYj.js → mapTimeframeBalancesToTreeNode-DUac2vK4-jK2oIVF4.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-NA69l84M-C2q_xZ5l.js → mapTimeframeBalancesToTreeNode-JTl35sFx-B-SNtaen.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-h4qQS3pU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-Dl0F4JWH.js} +1 -1
- package/dist/assets/{play-icon-DyIc5aGx-DYJXRLAT.js → play-icon-HSIOzxQm-DtUz8FwI.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-2jQJLb8S-pfoeU7Ox.js → toCOABalancesWithID-CkjYSysY-DF7YtxZI.js} +1 -1
- package/dist/assets/{toChartData-Dsjd8dGe-DHACvX24.js → toChartData-BhKlnyso-CKLUlraQ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-EG8VpBia-BgT0ZOn3.js → treasuryColorHelper-yIAXBrrM-D_iAl7kS.js} +1 -1
- package/dist/assets/{uploadAttachment-CVUM4FN--C6O7_W28.js → uploadAttachment-CWaYLqwb-DAXv_gFj.js} +32 -32
- package/dist/assets/{uploadReceipts-D80JLNY4-BMq6fzqz.js → uploadReceipts-C6Ld_WLK-CscO-OGr.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BQBpkHfF-BJV02vLX.js +0 -21
- package/dist/assets/BankAccountWarningSection-CWXa-X6f-CSqGyUZG.js +0 -51
- package/dist/assets/BusinessVerificationPage-BoSLJbyU-f7l6iMFH.js +0 -140
- package/dist/assets/ChargeCardPromoPage-dIg8OIlx-Ddw_9zEm.js +0 -219
- package/dist/assets/CheckDepositDrawerPage-uABg3PMN-DvmvYwzA.js +0 -206
- package/dist/assets/CompanyOfficerDetailsSection-BzYsDrr2-CLxqo3zC.js +0 -232
- package/dist/assets/CompleteProfile-CN_hAW-2-jVc6moRl.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-BFEUbXJj.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-Db90ITIq-CYwbJ4ON.js +0 -66
- package/dist/assets/DocumentSecurityBanner-Bxg3ctYZ-CgQ3FYOu.js +0 -29
- package/dist/assets/EditPeoplePage-CBPmCcoG-tI7XznTq.js +0 -55
- package/dist/assets/FeaturePreviewPage-BBkfKvIu-C1W_sdo_.js +0 -11
- package/dist/assets/InsightsCardStack-rByhzgji-Dc1ZnT3c.js +0 -79
- package/dist/assets/InsightsSection-jnWJ877y-CHYibtt_.js +0 -27
- package/dist/assets/InvitePeoplePage-DvGON1va-CxkOilw7.js +0 -12
- package/dist/assets/LabeledDocumentField-TFmz23mS-Dg7dpofQ.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-dxBSlbub-EYHDnj3E.js +0 -31
- package/dist/assets/MailingDetailsSection-CsK09X11-DWOFuFpA.js +0 -21
- package/dist/assets/NavBarWithPicker-CuJe05iJ-CtehKlX0.js +0 -30
- package/dist/assets/NavigationDots-BQfoX9p0-CtOBXvA3.js +0 -14
- package/dist/assets/QBOSetupSection-Dijb03ZX-Dtu5gcm7.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-CHus277R.js +0 -26
- package/dist/assets/RoleWithToolTip-Bst2IdUy-HslXk23_.js +0 -22
- package/dist/assets/TimeframeSwitcherWithToggle-4h9WX4z9-D-Rtx-Rf.js +0 -31
- package/dist/assets/TransferDrawerPage-cUyg27nq-BPk1VE3B.js +0 -362
- package/dist/assets/TreasurySetupPage-BoVhd65r-CXuNgzdi.js +0 -152
- package/dist/assets/TreasuryTransferOrReviewPage-DAmZboLO-COiTPnD3.js +0 -506
- package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-B_tojQsK.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-di46G5TN-Crpvkv3z.js +0 -63
|
@@ -1,506 +0,0 @@
|
|
|
1
|
-
import{X as ge,H as xt,j as o,_ as P,gN as yt,M as we,a0 as W,K as Ie,c as Ze,a4 as He,o as t,C as f,a3 as Ce,k as $t,am as bt,u as St,a2 as pe,bs as vt,cO as Je,Q as R,l as z,fX as jt,g as S,Z as At,h as et,v as X,e as Y,eX as kt,a as Tt,c3 as Pt,F as Ct,fD as zt,q as c,bm as tt,cW as ot,bH as rt,cz as Dt,cq as Lt,f7 as Ft,e$ as Mt,d2 as Rt,m as Bt,f0 as Ot,dp as It,bY as Et,bX as _t,aQ as Nt,bc as Vt,f9 as Wt,fi as Xt,ab as Yt}from"./index-BP54u7bE.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{V as nt}from"./PortfolioDetails-Dtz3YEPu-CbnH_B-R.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-EG8VpBia-BgT0ZOn3.js";const qt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Gt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Gt,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=Yt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
|
|
2
|
-
width: 100%;
|
|
3
|
-
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
|
-
height: 2px;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&[type="range"] {
|
|
10
|
-
-webkit-appearance: none;
|
|
11
|
-
appearance: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&[type="range"]::-webkit-slider-thumb {
|
|
15
|
-
-webkit-appearance: none;
|
|
16
|
-
height: ${t.sp5};
|
|
17
|
-
width: ${t.sp5};
|
|
18
|
-
border-radius: 100%;
|
|
19
|
-
margin-top: -${t.sp3}; // Centers thumb on the track
|
|
20
|
-
box-shadow: ${t.sp0} ${t.sp0} 2px ${S.blackColor};
|
|
21
|
-
background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${e.theme.mode==="dark"?"light":"dark"}.svg)`};
|
|
22
|
-
background-repeat: no-repeat;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
`,Jt=r.div`
|
|
26
|
-
position: relative;
|
|
27
|
-
width: 70%;
|
|
28
|
-
margin-left: 30px;
|
|
29
|
-
margin-right: 30px;
|
|
30
|
-
margin-bottom: 20px;
|
|
31
|
-
margin-top: ${t.sp5};
|
|
32
|
-
min-height: ${t.sp8};
|
|
33
|
-
`,eo=r.div`
|
|
34
|
-
position: absolute;
|
|
35
|
-
height: 2px;
|
|
36
|
-
margin-top: -${t.sp2};
|
|
37
|
-
background-color: ${e=>e.theme.colors.hero};
|
|
38
|
-
`,to=r.div`
|
|
39
|
-
position: absolute;
|
|
40
|
-
bottom: ${t.sp0};
|
|
41
|
-
top: ${t.sp5};
|
|
42
|
-
width: 100%;
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
`,oo=r.span`
|
|
46
|
-
position: absolute;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
transform: translateX(-50%);
|
|
49
|
-
`,ro=r(X)`
|
|
50
|
-
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
`,no=r(X)`
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: -${t.sp5};
|
|
55
|
-
white-space: nowrap;
|
|
56
|
-
color: ${S.primaryDark};
|
|
57
|
-
background-color: ${S.success};
|
|
58
|
-
display: flex;
|
|
59
|
-
border-radius: ${t.sp1};
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
padding: 2px ${t.sp2};
|
|
63
|
-
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=we.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=wo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Yo,{}):o.jsx(qo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Xo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),x=St(),v=pe(e.fetchState),[h,i]=w.useState(!1);w.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(ko,{windowSize:m,children:[o.jsx(Lo,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ee,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Fo,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(Vo,{windowSize:m,children:o.jsx(Je,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(zo,{}),o.jsx(Wo,{children:o.jsxs(o.Fragment,{children:[E.review.prefix,`"${T?.label}" `,E.success.midfix,` "${$?.label}" `,E.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(Ao,{children:o.jsxs(bo,{children:[o.jsxs(To,{children:[o.jsx(Co,{}),o.jsxs(So,{children:[o.jsx(vo,{children:e.error?.title}),o.jsx(jo,{children:e.error?.message})]})]}),o.jsx(Po,{children:o.jsx(Ee,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Do,{windowSize:m,children:o.jsxs(xo,{windowSize:m,children:[o.jsx(yo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx($o,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),fundAllocations:go(e),page:"transfer review"})})]})})]}),o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:E.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:E.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(No,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Io,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(Eo,{isOptionSelected:u,isForReview:d,children:o.jsx(_o,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:W("0,0[.]00",a.balance)}):null;const x=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&x?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,x.accountBalance.available)),n===!0&&!s?o.jsx(Ro,{children:x?.maskedAccountNumber}):o.jsxs(Mo,{className:"option-sublabel",children:[o.jsx(ve,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Oo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(ve,{children:[W("0,0[.]00",x.accountBalance.available),v?o.jsx(Bo,{children:so}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},wo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: column;
|
|
66
|
-
`,se=r(X)`
|
|
67
|
-
color: ${e=>e.theme.colors.hero};
|
|
68
|
-
`,le=r(Y)`
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
`,xo=r.div`
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
width: 100%;
|
|
75
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
76
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
77
|
-
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
78
|
-
border-radius: ${t.sp2};
|
|
79
|
-
padding: ${e=>`${K.elementsContainerPadding.valuePx(e.windowSize)}`};
|
|
80
|
-
gap: ${t.sp4};
|
|
81
|
-
${e=>e.windowSize==="small"&&`
|
|
82
|
-
width: auto;
|
|
83
|
-
`}
|
|
84
|
-
`,yo=r.div`
|
|
85
|
-
display: flex;
|
|
86
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
87
|
-
justify-content: space-between;
|
|
88
|
-
align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
|
|
89
|
-
width: 100%;
|
|
90
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
91
|
-
`,ce=r.div`
|
|
92
|
-
display: flex;
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
gap: ${t.sp1};
|
|
95
|
-
padding: ${t.sp2} ${t.sp3};
|
|
96
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
97
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
98
|
-
border-radius: ${t.sp2};
|
|
99
|
-
width: ${e=>e.windowSize==="small"?"auto":"288px"};
|
|
100
|
-
`,$o=r.div`
|
|
101
|
-
padding: ${t.sp2} ${t.sp3};
|
|
102
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
103
|
-
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
104
|
-
border-radius: ${t.sp2};
|
|
105
|
-
`,bo=r.div`
|
|
106
|
-
display: flex;
|
|
107
|
-
width: 100%;
|
|
108
|
-
justify-content: space-between;
|
|
109
|
-
padding: ${t.sp3} ${t.sp4};
|
|
110
|
-
background-color: ${S.importantLight};
|
|
111
|
-
border-radius: ${t.sp2};
|
|
112
|
-
`,So=r.div`
|
|
113
|
-
display: flex;
|
|
114
|
-
flex-direction: column;
|
|
115
|
-
margin-left: ${t.sp2};
|
|
116
|
-
`,vo=r(rt)`
|
|
117
|
-
color: ${S.important};
|
|
118
|
-
`,jo=r(Y)`
|
|
119
|
-
color: ${S.important};
|
|
120
|
-
`,Ao=r.div`
|
|
121
|
-
margin-top: ${t.sp3};
|
|
122
|
-
display: flex;
|
|
123
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
124
|
-
justify-content: space-between;
|
|
125
|
-
padding: ${t.sp3} ${t.sp4};
|
|
126
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
127
|
-
border-radius: ${t.sp2};
|
|
128
|
-
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
129
|
-
`,ko=r.div`
|
|
130
|
-
height: auto;
|
|
131
|
-
padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
132
|
-
padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
133
|
-
margin-bottom: auto;
|
|
134
|
-
`,To=r.div`
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: flex-start;
|
|
137
|
-
`,Po=r.div``,Co=r(ot)`
|
|
138
|
-
width: ${t.sp4};
|
|
139
|
-
height: ${t.sp4};
|
|
140
|
-
color: ${S.important};
|
|
141
|
-
`,Ee=r(Ce)`
|
|
142
|
-
cursor: pointer;
|
|
143
|
-
color: ${e=>e.theme.colors.hero};
|
|
144
|
-
width: ${t.sp4};
|
|
145
|
-
height: ${t.sp4};
|
|
146
|
-
min-height: ${t.sp4};
|
|
147
|
-
&:hover {
|
|
148
|
-
color: ${e=>e.theme.colors.primary};
|
|
149
|
-
}
|
|
150
|
-
`,zo=r.div`
|
|
151
|
-
display: flex;
|
|
152
|
-
flex: 1;
|
|
153
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
154
|
-
min-height: 1px;
|
|
155
|
-
max-height: 1px;
|
|
156
|
-
`,de=r(X)`
|
|
157
|
-
color: ${e=>e.theme.colors.hero};
|
|
158
|
-
`,Do=r.div`
|
|
159
|
-
display: flex;
|
|
160
|
-
flex-direction: column;
|
|
161
|
-
padding-top: ${t.sp3};
|
|
162
|
-
padding-bottom: ${e=>`${K.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
163
|
-
`,Lo=r.div`
|
|
164
|
-
display: flex;
|
|
165
|
-
flex-direction: row;
|
|
166
|
-
justify-content: flex-end;
|
|
167
|
-
align-items: center;
|
|
168
|
-
width: 100%;
|
|
169
|
-
top: ${t.sp0};
|
|
170
|
-
padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
171
|
-
z-index: 2;
|
|
172
|
-
background-color: transparent;
|
|
173
|
-
`,Fo=r(et)`
|
|
174
|
-
${e=>`${Te.pageTitle.style(e.windowSize)}`};
|
|
175
|
-
color: ${e=>e.theme.colors.primary};
|
|
176
|
-
padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
|
|
177
|
-
${e=>e.windowSize==="small"&&`
|
|
178
|
-
padding-bottom: ${t.sp0};
|
|
179
|
-
`}
|
|
180
|
-
`,Mo=r(X)`
|
|
181
|
-
color: ${e=>e.theme.colors.hero};
|
|
182
|
-
display: flex;
|
|
183
|
-
flex-direction: row;
|
|
184
|
-
align-items: center;
|
|
185
|
-
gap: ${t.sp2};
|
|
186
|
-
`,Ro=r.span`
|
|
187
|
-
margin-left: ${t.sp2};
|
|
188
|
-
`,ve=r.div``,Bo=r(Vt)`
|
|
189
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
190
|
-
margin-left: ${t.sp1};
|
|
191
|
-
`,Oo=r.div`
|
|
192
|
-
width: ${t.sp1};
|
|
193
|
-
height: ${t.sp1};
|
|
194
|
-
min-width: ${t.sp1};
|
|
195
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
196
|
-
border-radius: 50%;
|
|
197
|
-
`,Io=r.img`
|
|
198
|
-
display: flex;
|
|
199
|
-
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
200
|
-
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
201
|
-
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
202
|
-
margin-right: ${t.sp2};
|
|
203
|
-
`,Eo=r.div`
|
|
204
|
-
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
205
|
-
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
206
|
-
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
207
|
-
margin-right: ${t.sp2};
|
|
208
|
-
`,_o=r(Xt)`
|
|
209
|
-
min-width: inherit;
|
|
210
|
-
width: inherit;
|
|
211
|
-
height: inherit;
|
|
212
|
-
margin-right: ${t.sp2};
|
|
213
|
-
`,_e=r.div`
|
|
214
|
-
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
215
|
-
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
216
|
-
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
217
|
-
margin-right: ${t.sp2};
|
|
218
|
-
`,Ne=r(Wt)`
|
|
219
|
-
min-width: inherit;
|
|
220
|
-
width: inherit;
|
|
221
|
-
height: inherit;
|
|
222
|
-
margin-right: ${t.sp2};
|
|
223
|
-
`,No=r.div`
|
|
224
|
-
width: ${e=>e.isForReview?t.sp6:t.sp4};
|
|
225
|
-
height: ${e=>e.isForReview?t.sp6:t.sp4};
|
|
226
|
-
margin-right: 12px;
|
|
227
|
-
margin-left: ${t.sp1};
|
|
228
|
-
color: ${e=>e.theme.colors.hero};
|
|
229
|
-
`,Vo=r(tt)`
|
|
230
|
-
color: ${e=>e.theme.colors.primary};
|
|
231
|
-
margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
|
|
232
|
-
${e=>e.windowSize==="small"&&`
|
|
233
|
-
margin-top: ${t.sp1};
|
|
234
|
-
margin-bottom: ${t.sp1};
|
|
235
|
-
`}
|
|
236
|
-
`,Wo=r(Y)`
|
|
237
|
-
color: ${e=>e.theme.colors.hero};
|
|
238
|
-
margin-top: ${t.sp3};
|
|
239
|
-
`,Xo=r(Nt)`
|
|
240
|
-
width: ${t.sp4};
|
|
241
|
-
height: ${t.sp4};
|
|
242
|
-
color: ${e=>e.theme.colors.hero};
|
|
243
|
-
`,Yo=r(Et)`
|
|
244
|
-
width: ${t.sp4};
|
|
245
|
-
height: ${t.sp4};
|
|
246
|
-
color: ${e=>e.theme.colors.hero};
|
|
247
|
-
align-self: center;
|
|
248
|
-
`,qo=r(_t)`
|
|
249
|
-
width: ${t.sp4};
|
|
250
|
-
height: ${t.sp4};
|
|
251
|
-
color: ${e=>e.theme.colors.hero};
|
|
252
|
-
align-self: center;
|
|
253
|
-
`,ue=r.div`
|
|
254
|
-
width: 1px;
|
|
255
|
-
height: 25px;
|
|
256
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
257
|
-
position: absolute;
|
|
258
|
-
right: 50%;
|
|
259
|
-
bottom: -25px;
|
|
260
|
-
`,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Go},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Ko="transferTo",Uo="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,Q]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Z,H]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[J,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),G=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,G),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&J&&ee()},[De,ee,J]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(We(e,n,G))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,G]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};Q(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(Jo,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(Je,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Ho,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,G,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(Xe,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,G,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:Q})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(wr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Z,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(xr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Ye,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:Go.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},We=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
|
|
261
|
-
margin-top: ${t.sp3};
|
|
262
|
-
display: flex;
|
|
263
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
264
|
-
justify-content: space-between;
|
|
265
|
-
padding: ${t.sp3} ${t.sp4};
|
|
266
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
267
|
-
border-radius: ${t.sp2};
|
|
268
|
-
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
269
|
-
`,Ho=r.form`
|
|
270
|
-
display: flex;
|
|
271
|
-
flex-direction: column;
|
|
272
|
-
justify-content: center;
|
|
273
|
-
align-items: center;
|
|
274
|
-
`,Jo=r.div`
|
|
275
|
-
display: flex;
|
|
276
|
-
width: 100%;
|
|
277
|
-
justify-content: space-between;
|
|
278
|
-
padding: ${t.sp3} ${t.sp4};
|
|
279
|
-
background-color: ${S.importantLight};
|
|
280
|
-
border-radius: ${t.sp2};
|
|
281
|
-
`,er=r.div`
|
|
282
|
-
display: flex;
|
|
283
|
-
align-items: flex-start;
|
|
284
|
-
`,tr=r.div``,or=r(ot)`
|
|
285
|
-
width: ${t.sp4};
|
|
286
|
-
height: ${t.sp4};
|
|
287
|
-
color: ${S.important};
|
|
288
|
-
`,rr=r.div`
|
|
289
|
-
display: flex;
|
|
290
|
-
flex-direction: column;
|
|
291
|
-
margin-left: ${t.sp2};
|
|
292
|
-
`,nr=r(rt)`
|
|
293
|
-
color: ${S.important};
|
|
294
|
-
`,ir=r(Y)`
|
|
295
|
-
color: ${S.important};
|
|
296
|
-
`,ar=r(tt)`
|
|
297
|
-
color: ${e=>e.theme.colors.primary};
|
|
298
|
-
margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
|
|
299
|
-
${e=>e.windowSize==="small"&&`
|
|
300
|
-
margin-top: ${t.sp1};
|
|
301
|
-
margin-bottom: ${t.sp1};
|
|
302
|
-
`}
|
|
303
|
-
`,Xe=r(Dt)`
|
|
304
|
-
border-radius: ${t.sp2};
|
|
305
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
|
-
`,sr=r.div`
|
|
307
|
-
display: flex;
|
|
308
|
-
flex-direction: column;
|
|
309
|
-
width: 100%;
|
|
310
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
311
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
312
|
-
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
313
|
-
border-radius: ${t.sp2};
|
|
314
|
-
`,ke=r.div`
|
|
315
|
-
display: flex;
|
|
316
|
-
flex: 1;
|
|
317
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
318
|
-
min-height: 1px;
|
|
319
|
-
max-height: 1px;
|
|
320
|
-
`,Pe=r.div`
|
|
321
|
-
display: flex;
|
|
322
|
-
flex-direction: row;
|
|
323
|
-
padding: ${t.sp2};
|
|
324
|
-
padding-left: ${({size:e})=>g.rowContentSelectPaddingLeft.valuePx(e)};
|
|
325
|
-
justify-content: space-between;
|
|
326
|
-
color: ${e=>e.theme.colors.hero};
|
|
327
|
-
&:hover {
|
|
328
|
-
z-index: 1;
|
|
329
|
-
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
330
|
-
.select-control {
|
|
331
|
-
background-color: ${e=>e.theme.colors.background};
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
&:focus-within {
|
|
335
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
336
|
-
color: ${e=>e.theme.colors.primary};
|
|
337
|
-
z-index: 2;
|
|
338
|
-
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
339
|
-
}
|
|
340
|
-
:first-of-type {
|
|
341
|
-
border-top-left-radius: inherit;
|
|
342
|
-
border-top-right-radius: inherit;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
${({size:e})=>e==="small"&&`
|
|
346
|
-
.select-value-container {
|
|
347
|
-
margin-right: ${t.sp1} !important;
|
|
348
|
-
}
|
|
349
|
-
`}
|
|
350
|
-
`,lr=r(Pe)`
|
|
351
|
-
padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
|
|
352
|
-
padding-top: ${t.sp2};
|
|
353
|
-
`,cr=r(Ce)`
|
|
354
|
-
cursor: pointer;
|
|
355
|
-
color: ${e=>e.theme.colors.hero};
|
|
356
|
-
width: ${t.sp4};
|
|
357
|
-
height: ${t.sp4};
|
|
358
|
-
min-height: ${t.sp4};
|
|
359
|
-
&:hover {
|
|
360
|
-
color: ${e=>e.theme.colors.primary};
|
|
361
|
-
}
|
|
362
|
-
`,dr=r.div`
|
|
363
|
-
margin-bottom: ${t.sp6};
|
|
364
|
-
width: 90%;
|
|
365
|
-
`,ur=r.div`
|
|
366
|
-
background-color: ${e=>e.theme.colors.background};
|
|
367
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
368
|
-
border-top: none;
|
|
369
|
-
min-height: 182px;
|
|
370
|
-
display: flex;
|
|
371
|
-
justify-content: center;
|
|
372
|
-
align-items: center;
|
|
373
|
-
flex-direction: column;
|
|
374
|
-
`,pr=r(Y)`
|
|
375
|
-
color: ${e=>e.theme.colors.hero};
|
|
376
|
-
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
377
|
-
white-space: pre-line;
|
|
378
|
-
text-align: center;
|
|
379
|
-
`,hr=r.div`
|
|
380
|
-
${e=>me.yieldEarned.style(e.windowSize)}
|
|
381
|
-
color: ${S.success};
|
|
382
|
-
white-space: nowrap;
|
|
383
|
-
`,mr=r.div`
|
|
384
|
-
display: flex;
|
|
385
|
-
align-items: center;
|
|
386
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
387
|
-
justify-content: space-between;
|
|
388
|
-
padding: ${t.sp2} ${t.sp3};
|
|
389
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
390
|
-
border-bottom-right-radius: ${t.sp1};
|
|
391
|
-
border-bottom-left-radius: ${t.sp1};
|
|
392
|
-
`,fr=r.div`
|
|
393
|
-
display: flex;
|
|
394
|
-
flex-direction: row;
|
|
395
|
-
align-items: center;
|
|
396
|
-
`,Ye=r.div`
|
|
397
|
-
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
|
-
color: ${e=>e.theme.colors.hero};
|
|
399
|
-
cursor: pointer;
|
|
400
|
-
`,qe=r.div`
|
|
401
|
-
display: flex;
|
|
402
|
-
flex-direction: row;
|
|
403
|
-
align-items: center;
|
|
404
|
-
gap: 6px;
|
|
405
|
-
align-self: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
406
|
-
&:hover {
|
|
407
|
-
.calculatorFooterLeftText {
|
|
408
|
-
color: ${e=>e.theme.colors.primary};
|
|
409
|
-
}
|
|
410
|
-
.calculatorFooterArrowIcon {
|
|
411
|
-
color: ${e=>e.theme.colors.primary};
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
`,gr=r.div`
|
|
415
|
-
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
416
|
-
width: ${t.sp1};
|
|
417
|
-
height: ${t.sp1};
|
|
418
|
-
min-width: ${t.sp1};
|
|
419
|
-
margin: 0 ${t.sp2};
|
|
420
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
421
|
-
border-radius: 50%;
|
|
422
|
-
`,wr=r.div`
|
|
423
|
-
display: flex;
|
|
424
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
425
|
-
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
426
|
-
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
427
|
-
`,xr=r(Bt)`
|
|
428
|
-
color: ${e=>e.theme.colors.hero};
|
|
429
|
-
`,yr=r(Ot)`
|
|
430
|
-
cursor: pointer;
|
|
431
|
-
width: 12px;
|
|
432
|
-
height: 12px;
|
|
433
|
-
min-width: 12px;
|
|
434
|
-
min-height: 12px;
|
|
435
|
-
color: ${e=>e.theme.colors.hero};
|
|
436
|
-
`,$r=r(It)`
|
|
437
|
-
cursor: pointer;
|
|
438
|
-
width: 12px;
|
|
439
|
-
height: 12px;
|
|
440
|
-
min-width: 12px;
|
|
441
|
-
min-height: 12px;
|
|
442
|
-
color: ${e=>e.theme.colors.hero};
|
|
443
|
-
`,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:Ge,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Vr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,Z=Q.find(J=>xt(J.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},H=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(jr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Pr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Ar,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(kr,{children:W("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:Z,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ue,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(zr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(vr,{children:k.transferDrawer.subTitle}):o.jsx(Sr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Z,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),H()?o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ge.review},cancelBtn:{label:Ge.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(Y)`
|
|
444
|
-
color: ${e=>e.theme.colors.hero};
|
|
445
|
-
`,vr=r(X)`
|
|
446
|
-
color: ${e=>e.theme.colors.hero};
|
|
447
|
-
`,jr=r.div`
|
|
448
|
-
display: flex;
|
|
449
|
-
flex-direction: column;
|
|
450
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
451
|
-
overflow-x: hidden;
|
|
452
|
-
height: 100vh;
|
|
453
|
-
width: 100%;
|
|
454
|
-
`,Ar=r($t)`
|
|
455
|
-
color: ${e=>e.theme.colors.primary};
|
|
456
|
-
text-align: center;
|
|
457
|
-
`,kr=r(bt)`
|
|
458
|
-
display: inline;
|
|
459
|
-
`,Ke=r.div`
|
|
460
|
-
height: ${e=>e.isTransferCompleted?"100%":"auto"};
|
|
461
|
-
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
462
|
-
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
463
|
-
margin-bottom: auto;
|
|
464
|
-
`,Tr=r.div`
|
|
465
|
-
display: flex;
|
|
466
|
-
justify-content: center;
|
|
467
|
-
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
468
|
-
margin-top: ${t.sp6};
|
|
469
|
-
gap: ${e=>`${U.buttonTrayGap.valuePx(e.windowSize)}`};
|
|
470
|
-
`,Pr=r.div`
|
|
471
|
-
height: 80%;
|
|
472
|
-
display: flex;
|
|
473
|
-
flex-direction: column;
|
|
474
|
-
justify-content: center;
|
|
475
|
-
margin: ${e=>`${t.sp0} ${U.successContentMargin.valuePx(e.windowSize)}`};
|
|
476
|
-
align-items: center;
|
|
477
|
-
`,Ue=r.div`
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: row-reverse;
|
|
480
|
-
justify-content: space-between;
|
|
481
|
-
align-items: center;
|
|
482
|
-
width: 100%;
|
|
483
|
-
top: ${t.sp0};
|
|
484
|
-
padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
485
|
-
z-index: 2;
|
|
486
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
487
|
-
`,Qe=r(Ce)`
|
|
488
|
-
cursor: pointer;
|
|
489
|
-
color: ${e=>e.theme.colors.hero};
|
|
490
|
-
width: ${t.sp4};
|
|
491
|
-
height: ${t.sp4};
|
|
492
|
-
min-height: ${t.sp4};
|
|
493
|
-
&:hover {
|
|
494
|
-
color: ${e=>e.theme.colors.primary};
|
|
495
|
-
}
|
|
496
|
-
`,Cr=r(At)`
|
|
497
|
-
color: ${e=>e.theme.colors.primary};
|
|
498
|
-
margin-top: ${t.sp3};
|
|
499
|
-
margin-bottom: ${t.sp0};
|
|
500
|
-
margin-right: ${t.sp3};
|
|
501
|
-
`,zr=r(et)`
|
|
502
|
-
${e=>`${br.formTitle.style(e.windowSize)}`};
|
|
503
|
-
color: ${e=>e.theme.colors.primary};
|
|
504
|
-
margin-top: ${t.sp3};
|
|
505
|
-
margin-bottom: ${t.sp2};
|
|
506
|
-
`;export{Vr as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{w as N,fk as $,l as O,M as j,j as a,_ as w,gk as p,gP as u,o as s,gm as z}from"./index-BP54u7bE.js";import{n as d}from"./vendor-CnQcJ2Lu.js";const o=j.getLocalizedStrings().spendManagement.zeniAccounts,m=[{value:"editNickName",label:o.moveMoney.editNickName},{value:"accountStatement",label:o.moveMoney.accountStatement}],y={value:"payBill",label:o.moveMoney.payBills},g={value:"transfer",label:o.moveMoney.transfer},M={value:"sendMoney",label:o.moveMoney.sendMoney,isNew:!0},v={value:"checkDeposit",label:o.moveMoney.checkDeposit},B=[y,g,M,v],A=[M,g,y,v],D=({zeniBankProps:e,isBillPayEnabled:f,isExpressPayEnabled:x,analytics:h,onSettingsClick:k})=>{const i=N(),l=i.loggedInUserRoleMap.deposit_accounts_user===!0||$(i),b=O.hasBillPayAccess(i.loggedInUserRoleMap),P=m.filter(t=>t.value==="accountStatement"),c=f===!0?B:A,r=x===!0?c:c.filter(t=>t.value!=="sendMoney"),S=b?r:r.filter(t=>t.value!=="payBill");return a.jsxs(_,{isTopAlign:e.pageName==="detailPage",children:[e.pageName==="listPage"&&!l?a.jsx(E,{onClick:k,"data-testid":w("zeni-accounts-settings-button")}):e.pageName==="detailPage"&&a.jsx(p,{entity:"zeni_accounts",onOptionSelection:t=>{const n=u(t);n!=null&&e.onOptionSelection(n)},isMoreOption:!0,options:l?P:m,title:o.moveMoney.title}),l?null:a.jsx(p,{entity:"zeni_accounts",onOptionSelection:t=>{const n=u(t);n!=null&&e.onOptionSelection(n)},isMoreOption:!1,options:S,title:o.moveMoney.title,onMenuOpen:()=>h?.trackAccountsListPageClicked("Move Money")})]})},E=d(z)`
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
min-width: ${s.sp4};
|
|
4
|
-
width: ${s.sp4};
|
|
5
|
-
height: ${s.sp4};
|
|
6
|
-
color: ${e=>e.theme.colors.hero};
|
|
7
|
-
&:hover {
|
|
8
|
-
color: ${e=>e.theme.colors.primary};
|
|
9
|
-
}
|
|
10
|
-
`,_=d.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
|
|
14
|
-
`;export{D as T};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import{j as g,M as E,_ as L,o as i,g as j,v as M}from"./index-BP54u7bE.js";import{b as $,n as m}from"./vendor-CnQcJ2Lu.js";const S=E.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList;function Q({zeniAccountsConfigDetail:o,transferAmount:x,minStep:p,currentAccountBalance:w,setYieldEarned:b,setTotalBalance:k}){const[l,A]=$.useState(0),{depositProductConfig:h}=o.zeniAccountsConfigDetail,c=$.useMemo(()=>h?.depositProducts!=null?h?.depositProducts.map(e=>e.annualPercentageYield):[],[h?.depositProducts]),n=$.useMemo(()=>h?.depositProducts!=null?h?.depositProducts.map(e=>{const[t,r]=e.range;return r==null&&t!=null?t+25e5:r??0}):[],[h?.depositProducts]),z=e=>{const t=parseFloat(e.target.value),{returnedYield:r,totalAmount:u}=C(t);A(t),b(r),k(u)},D=e=>`${v(e)}${S.transferDrawer.calculator.sliderTooltipText}`,v=e=>e===0?c[0]:e>0&&e<1?c[1]:e>=1&&e<2?c[2]:e>=2&&e<3?c[3]:c[4],C=e=>{const t=v(e),[r,u]=e.toLocaleString().split(".",2).map(a=>parseInt(a));if(e>=0&&e<1){const a=(n[1]-n[0])*p,s=n[r]+a*(u??0);return{returnedYield:f(s,t),totalAmount:s}}else if(e>=1&&e<2){const a=(n[2]-n[1])*p,s=n[r]+a*(u??0);return{returnedYield:f(s,t),totalAmount:s}}else if(e>=2&&e<3){const a=(n[3]-n[2])*p,s=n[r]+a*(u??0);return{returnedYield:f(s,t),totalAmount:s}}else if(e>=3&&e<4){const a=(n[4]-n[3])*p,s=n[r]+a*(u??0);return{returnedYield:f(s,t),totalAmount:s}}else return{returnedYield:f(5e6,t),totalAmount:5e6}},T=e=>{const{returnedYield:t,totalAmount:r}=C(e);A(e),k(r),b(t)},P=$.useCallback((e,t,r,u)=>{let a=0,s=0,Y=0,y=0;if(e<r[0])a=t[0];else{for(let d=0;d<r.length-1;d++)if(e>=r[d]&&e<r[d+1]){a=t[d+1],s=(r[d+1]-r[d])*u,Y=e-r[d],y=Y/s*u+d;break}e>=r[r.length-1]&&(a=t[t.length-1],y=r.length-1)}A(y),b(f(e,a))},[b]);return $.useEffect(()=>{const e=x+w;k(e),P(e,c,n,p)},[x,w,k,c,p,b,n,P]),g.jsxs(B,{sliderValue:l,children:[g.jsx(V,{sliderValue:l,type:"range",min:0,max:c.length-1,step:p,value:l,onChange:z}),g.jsx(H,{style:{width:`calc(${l/(c.length-1)*100}% - ${l*7.5}px)`}}),g.jsx(G,{sliderValue:l,style:{left:`calc(${l/(c.length-1)*100}% - ${l*10+20}px)`},children:D(l)}),g.jsx(K,{children:n.map((e,t)=>g.jsx(N,{onClick:()=>T(t),"data-testid":L("slider-label",e.toString()),style:{left:F(t)},children:g.jsx(X,{isSelected:l>=t,children:I(e)})},t))})]})}const f=(o,x)=>{const p=x/100,w=o*Math.pow(1+p/12,12);return Math.floor(w-o)},F=o=>{switch(o){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%"}},I=o=>o===25e4?`<${Intl.NumberFormat("en",{notation:"compact"}).format(o)}`:o===5e6?S.transferDrawer.calculator.greaterThanTwoAndHalfMillion:Intl.NumberFormat("en",{notation:"compact"}).format(o),V=m.input`
|
|
2
|
-
width: 100%;
|
|
3
|
-
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
|
-
height: 2px;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
background-color: ${o=>o.theme.colors.grey3};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
&[type="range"] {
|
|
10
|
-
-webkit-appearance: none;
|
|
11
|
-
appearance: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&[type="range"]::-webkit-slider-thumb {
|
|
15
|
-
-webkit-appearance: none;
|
|
16
|
-
height: ${i.sp5};
|
|
17
|
-
width: ${i.sp5};
|
|
18
|
-
border-radius: 100%;
|
|
19
|
-
margin-top: -${i.sp3}; // Centers thumb on the track
|
|
20
|
-
box-shadow: ${i.sp0} ${i.sp0} 2px ${j.blackColor};
|
|
21
|
-
background-image: ${o=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${o.theme.mode==="dark"?"light":"dark"}.svg)`};
|
|
22
|
-
background-repeat: no-repeat;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
`,B=m.div`
|
|
26
|
-
position: relative;
|
|
27
|
-
width: 70%;
|
|
28
|
-
margin-left: 30px;
|
|
29
|
-
margin-right: 30px;
|
|
30
|
-
margin-bottom: 20px;
|
|
31
|
-
margin-top: ${i.sp5};
|
|
32
|
-
min-height: ${i.sp8};
|
|
33
|
-
`,H=m.div`
|
|
34
|
-
position: absolute;
|
|
35
|
-
height: 2px;
|
|
36
|
-
margin-top: -${i.sp2};
|
|
37
|
-
background-color: ${o=>o.theme.colors.hero};
|
|
38
|
-
`,K=m.div`
|
|
39
|
-
position: absolute;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
top: ${i.sp5};
|
|
42
|
-
width: 100%;
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
`,N=m.span`
|
|
46
|
-
position: absolute;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
transform: translateX(-50%);
|
|
49
|
-
`,X=m(M)`
|
|
50
|
-
color: ${o=>o.isSelected?o.theme.colors.primary:o.theme.colors.grey1};
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
`,G=m(M)`
|
|
53
|
-
position: absolute;
|
|
54
|
-
top: -${i.sp5};
|
|
55
|
-
white-space: nowrap;
|
|
56
|
-
color: ${j.primaryDark};
|
|
57
|
-
background-color: ${j.success};
|
|
58
|
-
display: flex;
|
|
59
|
-
border-radius: ${i.sp1};
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
padding: 2px ${i.sp2};
|
|
63
|
-
`;export{Q as v};
|