@zeniai/web-cockpit-ui 1.14.33-qa → 1.14.34-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-BeF1WMnC-BWTFW_6p.js → ACHDetailsPage-MP6kdpXK-Cin5vYxN.js} +1 -1
- package/dist/assets/{AIPerformancePage-CxD_UAbI-fpnYflEr.js → AIPerformancePage-BhOaFmfv-DCRtVIyb.js} +26 -26
- package/dist/assets/{AccountInfoPage-DcY-ZzlZ-FJ-oHq0G.js → AccountInfoPage-D9Ft_CT9-CUD4qbPd.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CaoKCM-U-OO81J74X.js → AccountInfoPageContent-DvWx52e0-D9gXo091.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-CJmhyeRY--53RI3ma.js → AccountLockedInfoModal-B1_3C1ER-DGCTA7OW.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-sSMPfl5H-Cm3BYdgG.js → AccountReconDetailsDrawerPage-D9e7qhm0-B1t_x7P2.js} +13 -13
- package/dist/assets/{AccountRow-Buzf5t6f-etnrcHrJ.js → AccountRow-CiIWoLq3-F6m6e5Xn.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-Dlcbuic0-DRWRcJqq.js → AccountsPromoCardStack-CC72plKm-DV-DNWnY.js} +30 -30
- package/dist/assets/{AddAddressForCardDrawer-BLTkxUcq-B7vSwKJ4.js → AddAddressForCardDrawer-CIj76DoU-BugVt0Ax.js} +1 -1
- package/dist/assets/{AddToWalletPage-B5LKICXr-DfBDWY3N.js → AddToWalletPage-B3vdkyWl-C3sTnRDu.js} +17 -17
- package/dist/assets/{AgingReportsPage-_hwnvPm7-D_aTfDR9.js → AgingReportsPage-CbkMxxO_-bDdYzvvz.js} +15 -15
- package/dist/assets/{AllUserItems-DohW-333-CUu4xgSa.js → AllUserItems-DJo9kLSI-aOrBm21L.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-CfzCrv7O-RqAF3Vu6.js → ApAgingDetailPage-DcAh6DLg-YRnOeaE1.js} +3 -3
- package/dist/assets/{AppBasePage-Nz4YL7cO-BsmPZ1Al.js → AppBasePage-DztnPkfs-_Sh0VXAS.js} +16 -16
- package/dist/assets/{AppDrawerContent-DipGyZ1n-CCl34G60.js → AppDrawerContent-DDmKn21i-C68rKgNZ.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-CDJ2Pb6i-CcP0ubc3.js → ApprovalRulesSettingsPage-Di8tAJ8K-CDv_E-0W.js} +1 -1
- package/dist/assets/ArAgingChart-tm5ZiNuY-C229BTlQ.js +24 -0
- package/dist/assets/{ArAgingDetailPage-hLTSTpD2-Dg69wqux.js → ArAgingDetailPage-B3JQ08nH-C3xUIMRe.js} +1 -1
- package/dist/assets/{AttachmentView-BMvudk_o-BvnNjIGX.js → AttachmentView-p8mBqYjm-BaF-qc0k.js} +6 -6
- package/dist/assets/{BankAccountSection-BKK0TqfR-iktNn3d0.js → BankAccountSection-AuQLRvdb-Bwa0DuGQ.js} +6 -6
- package/dist/assets/{BankAccountWarningSection-DvJdsXOf-DX0Kkmja.js → BankAccountWarningSection-HvUMABu0-DrqrNnez.js} +19 -19
- package/dist/assets/{BankConnectionsSettingsPage-jdyMMWYg-7sjYy26b.js → BankConnectionsSettingsPage-D61w90F9-DCAF3Rvl.js} +8 -8
- package/dist/assets/{BillDetailPage-BAc9ZaEX-DiuazQaS.js → BillDetailPage-nqHoph6T-BaIucFqg.js} +7 -7
- package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-BE94bEje.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-ycrs-KJM-CJpx4ouQ.js → BillPayApprovalRulesPage-Bd87v4ca-D8uVymLg.js} +7 -7
- package/dist/assets/{BillPayPromoPage-B3cmYoMb-DSMVy0gV.js → BillPayPromoPage-CNiTD_mM-Dj_ToxT_.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-Fs62VXvw-D8p1-eX3.js → BillPaySetUpPage-BUSwkzqv-0u4Y1nRn.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Dt9jBMTF-C295NK9o.js → BillingSettingsPage-aPRvtlqA-D2cPcuYt.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-Qcl9aUuk-_YOWCRG0.js → BillsBulkReviewDrawerPage-BU3VuxEm-ByErXz92.js} +1 -1
- package/dist/assets/{BoxItem-BYcXwroy-DxqwCE3J.js → BoxItem-CZKWkdxd-BeOlY6b0.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-il8wYjJ_-CT3C0oTK.js → BusinessVerificationPage-CeDGi-RH-DBq4N4qO.js} +5 -5
- package/dist/assets/CardNumberSubText-1BRQQyfd-DTVfoanD.js +21 -0
- package/dist/assets/{CashbackDetailPage-Dv5Z7Tvy-Bfso-Y3l.js → CashbackDetailPage-V-W_U5k1-BFabFlQi.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-CGTduWWN-BkYrdXDY.js → ChargeCardDetailPage-BP-zAMYI-CpMkI6_j.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DNLZxp9I-hEX4MRS2.js → ChargeCardListPage-DORW9YE4-C9A5hHUd.js} +16 -16
- package/dist/assets/{ChargeCardListTable-BnHOs06b-Bept2oom.js → ChargeCardListTable-C32mZrwY-C-_ZN5EL.js} +14 -14
- package/dist/assets/{ChargeCardPromoPage-C9ByS2z5-ZBsmIOzb.js → ChargeCardPromoPage-CE4kH4Js-C0K_9IRw.js} +13 -13
- package/dist/assets/{ChargeCardSetupPage-Baw4VtU6-whYjNQ5s.js → ChargeCardSetupPage-CumpB2GQ-D9_LS2bE.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D0nZbDIZ-CqoukG-c.js → ChargeCardStatementsPage-DPIAjww0-qtfYIF5i.js} +6 -6
- package/dist/assets/ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js +1 -0
- package/dist/assets/{ChaseOverlay-2qpcZYP8-DZC2amkp.js → ChaseOverlay-BGZfbx0H-Cy6SXtpe.js} +8 -8
- package/dist/assets/CheckDepositDrawerPage-Bl52b4SW-D474gpb4.js +206 -0
- package/dist/assets/{CollapsableReportTable-CPOIqiL0-CeOTbT0I.js → CollapsableReportTable-B0wI9SM1-DLN2kcqg.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-D1BmCIsK-Cg7hHlgd.js → CompanyOfficerDetailsSection-DyOVRvtQ-D3TSBaYy.js} +33 -33
- package/dist/assets/{CompanyPassportCard-B9fOwnpa-DsuUYKGw.js → CompanyPassportCard-C_YUK3R3-Tw3Mhb57.js} +5 -5
- package/dist/assets/{CompanyPassportPage-BzDOHw_n-BFDOwRWJ.js → CompanyPassportPage-QFJ0G7X7-9FRZMTlm.js} +29 -29
- package/dist/assets/{CompleteProfile-BTqueNNu-C0IgFiTo.js → CompleteProfile-DVE16v3y-JdgrMYZk.js} +1 -1
- package/dist/assets/{ConfettiBurst-BlFjJIUj-D3PzCoP-.js → ConfettiBurst-BA8BvtO--ChjQJAxk.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DAGCdI1c-mmdPlAVt.js → CreateOrEditVendorPage-ncBGwfXK-DYgCQOxT.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-KsuS7yuN-DA_e7yg1.js → CreditCardPaymentDrawerPage-DqEVQgMx-DmTsuXGo.js} +16 -16
- package/dist/assets/{CreditCardPaymentPlgSection-BfhV7QBL-GxG2RoKF.js → CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js} +8 -8
- package/dist/assets/{CurrencySelectField-oVIC5R45-DO0BaMPk.js → CurrencySelectField-BEb19UaA-ayd8ypxk.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-6I-6xoA6-BvOS7YcY.js → CustomerOnboardingActivationPage-L4l1ybmh-CjOAphEc.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-22xRu68e.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYXcx90D-Cjqv90OE.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-BjyCIV27.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DEUNNIB_-xCnv_1xo.js → CustomerOnboardingNoStepsPage-BXsJFpEX-BO1c66C-.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-kAcxVmRC-Dng6IoBs.js → CustomerOnboardingPage-D3zpI1df-BpsmxlbR.js} +2 -2
- package/dist/assets/{CustomerOnboardingProductSuitePage-BbRqtmnL-BumjYc1t.js → CustomerOnboardingProductSuitePage-DjVZfC2C-rASo3ZM3.js} +1 -1
- package/dist/assets/{Dashboard-usLyPMhz-T83f6_ic.js → Dashboard-wY0FneRs-K0H1LO4c.js} +114 -114
- package/dist/assets/{DashboardReportPage-CoozPVLS-CfCi-7lF.js → DashboardReportPage-CMgr0CSc-CTqQy7Z3.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BNQW5HZE-B5t6wuDS.js → DashboardSidebarBackgroundAnimation-B73UBY5T-DxfAcbVQ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CsLHfDqr-CC_1ybiy.js → DepositAccTransactionItem-DrqBG940-U_s0mHE8.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-CmHU0p_6.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CwYc-sKw-XNW-idse.js → DomesticWireDetailsPage-vRHD5DmW-v4Oe5SWK.js} +1 -1
- package/dist/assets/{DownloadOverlay-ttUEv-XY-vEcCF5hB.js → DownloadOverlay-D_UoB4Xy-DPm0LxIQ.js} +1 -1
- package/dist/assets/{DrawerPage-5dnYzzvI-C-zfRz8P.js → DrawerPage-ijHe0bCp-CyRbPalv.js} +5 -5
- package/dist/assets/{EditPeoplePage-DUr2MZOG-CWSHHw-m.js → EditPeoplePage-BehcmP1s-CtCgWObL.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Byuxh0RG-CIXuQ0er.js → EditReimbursementDetailPage-Cz82Vz26-BkH-yQZq.js} +51 -51
- package/dist/assets/{EntityDetailPage-DBjBJovr-GAvyHnKI.js → EntityDetailPage-CN-ewzjy-D8rWv-Yn.js} +2 -2
- package/dist/assets/{EntitySummarySection-NvNokzqb-atl44xa1.js → EntitySummarySection-B4ozhtlU-BbJmZsFm.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-Cc7NPgFU-DDwBfHGE.js → ExpenseAutomationOverviewPage-BmNuSoUs-B4ZMF43g.js} +12 -12
- package/dist/assets/{ExpenseAutomationPage-zQeR27lq-rCLHkoiU.js → ExpenseAutomationPage-Cz3JsW-E-Cz15ZpzI.js} +30 -30
- package/dist/assets/{ExpressPayPage-P0p3Ao-R-i9gfNImU.js → ExpressPayPage-CgrGtZ4F-BicqIV-J.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-CbR7b5uO-0LIj_UpA.js → FeaturePreviewPage-Dk_c37Rm-CXHB1WFu.js} +2 -2
- package/dist/assets/{FollowStepsSection-9Kfkt8Hp-CoGOQM-s.js → FollowStepsSection-BVi7m38_-C99RMZ_B.js} +22 -22
- package/dist/assets/{GlobalReviewListPage-B3b-DcRO-DmpyBeU0.js → GlobalReviewListPage-DiZGC9B1-DIzsLBmo.js} +14 -14
- package/dist/assets/{HelpButton-3gV_f3S3-BNW7ywMF.js → HelpButton-DiIoYeXn-FbkReN34.js} +4 -4
- package/dist/assets/{InformationCardStack-B67nQ7o3-Cl5LgXZR.js → InformationCardStack-C8-4dhWR-Bdte_JFA.js} +4 -4
- package/dist/assets/{InsightsCardStack-BLuzgFq1-ChqYsKwx.js → InsightsCardStack-BKm0dSeJ-YxbfeRpK.js} +9 -9
- package/dist/assets/{InsightsSection-B95Utg4C-D7fPPHgQ.js → InsightsSection-C9MHOCQd-B3v5Vy0i.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-Cj9RN4lm-CSLCHkMN.js → IntegrationsSettingsPage-4qlL5Dsx-NL-7Vuhq.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-CnvGCMx6--PeOQhJI.js → InternationalWireSwiftDetailsPage-DqCtPykV-BUWM-1ua.js} +9 -9
- package/dist/assets/{InternationalWireVerificationPage-BO-9Inma-BWHslahx.js → InternationalWireVerificationPage-Cl-p0inO-BPrmH8Q-.js} +10 -10
- package/dist/assets/{InviteFormPage-BcKX87YR-DV5_crlj.js → InviteFormPage-L6j0rOBW-DZzXMjr6.js} +20 -20
- package/dist/assets/{InvitePageListView-pwXs_uWn-Z97ORdSb.js → InvitePageListView-KYjMIc4q-LkWl7l25.js} +34 -34
- package/dist/assets/{InvitePeoplePage-DyqidszV-nOc3GIdz.js → InvitePeoplePage-CbZqVsTp-CPZYz4n0.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-Bwx4jgsp-D9TPwHrf.js → InvoiceUploadSection-DZC4oscG-DoaD8XBg.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-B4uzwROv-Bk2Fezky.js → IssueChargeCardPage-DMdZCfqA-2_AAwzJw.js} +16 -16
- package/dist/assets/{LabeledAddressValue-_1wNunap-nTViFxi6.js → LabeledAddressValue-CBOrzSsG-zl4Cn7F6.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YuLcra47-D1rCVkct.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-DUmCd9rT-BMEF7Bdb.js → LabeledControlledCheckBoxField-BoXsUqpR-BDprT0oc.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Ca24Ziei-CBC6Lsco.js → LabeledCreatableSingleSelectField-CQPkrdRe-BP0IH1kb.js} +2 -2
- package/dist/assets/{LabeledDocumentField-DtGNCNrD-BmU3HUR-.js → LabeledDocumentField-DEeeTuVw-DjAbPGjO.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-CEhwMb_t-DelBUgv4.js → LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.js} +1 -1
- package/dist/assets/{LabeledText-DR7J2Gsy-BXmYVhAs.js → LabeledText-DQiR_FIX-Co4J3TbF.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DdWbwo9k-B_izL22O.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-CjWMU4DS.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-CmUbFFow-C71nvk8D.js → LabeledZeniRolesDropDownField-azPB8idg-BmyhVq5l.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-oW3lDkXa-pDAZrnuw.js → LinkJETransactionPage-Ct0HcxvN-C9ALJkXZ.js} +5 -5
- package/dist/assets/{LowBalancePopup-C5KvkK3M-BJ53QfOd.js → LowBalancePopup-Zvy2iURT-BHU6RUxm.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-BVWg6hrX-Dqp8qscs.js → MagicLinkACHDetailsPage-BY6pEieF-BnE5qaIA.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-S1k7ze9H-BD9CxLYS.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-DZf3dWg8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DpzfQbRD-Czk6cq3a.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-B4J-Gaxj.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-m9Kweywk-BK-TFI1J.js → MagicLinkSuccessPage-Drn_p982-z_mnlocR.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BPRyg1HR-D82FSUKq.js → MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js} +9 -9
- package/dist/assets/{MailingDetailsSection-BX5rIuJZ-8h9F_QfJ.js → MailingDetailsSection-DgdAYgpS-CzYOsfT_.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-CCW2D5Ua-AdsUfqxp.js → MeetingCalenderPopup-CAh7iae0-BpiINuek.js} +1 -1
- package/dist/assets/{Menu-CD6YLYW5-xYOZpEb0.js → Menu-bleLgSLu-Ccrr2YDB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DBU4_Dkv-CJUGJFn3.js → MyBankConnectionsSettingsPage-DRxmQCbq-7MgmeMyL.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-0eqXgmvH-CHdZhWCy.js → MyPendingActivationChargeCardListPage-BYLhb47G-DdwAZhiS.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-D1sATCot-BFxBz8wl.js → MyProfileSettingsPage-eVfCRTfx-BNmP0sTQ.js} +11 -11
- package/dist/assets/{NavBarWithPicker-BcrWHAVt-Bp97Wb_6.js → NavBarWithPicker-BE2MW7hB-DXAufzd3.js} +5 -5
- package/dist/assets/{NavigationArrow-DTaeLGbL-Rg77_mEU.js → NavigationArrow-eEaMttBX-B_OAAp0o.js} +1 -1
- package/dist/assets/{NavigationDots-D5YXMwOb-DwbgBSQV.js → NavigationDots-CNwL0a7I-CifVGTqc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CN03ui3Y-C7Wnlo8N.js → NewGlobalMerchantPage-CSWqCqAC-CM5vKN1K.js} +9 -9
- package/dist/assets/{NoDataChart-DUJ9H-CB-CJSw-339.js → NoDataChart-DNmdY5gQ-I17nHhNI.js} +3 -3
- package/dist/assets/{NoDataTable-D5EYJl2y-Bt6-luGg.js → NoDataTable-DW2wAX3o-CmvIHNA2.js} +1 -1
- package/dist/assets/{NotFoundPage-C2-zYoie-Dqz-wiMB.js → NotFoundPage-BMJTG-tj-KX8Yl0C8.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Cb4Zozvx-D0BMc4CK.js → NotificationSettingsPage-Vd3UvdLu-CYwoglab.js} +11 -11
- package/dist/assets/NotificationsListConfig-DbHYPEWZ-CWezw8M_.js +1 -0
- package/dist/assets/{NotificationsPage-AZg3QlbQ-BHdpJes9.js → NotificationsPage-BaekDEw7-DM6qz84i.js} +7 -7
- package/dist/assets/{OpExByVendorPage-BdIQF_eO-omQlG_Ls.js → OpExByVendorPage-DNyTA9nx-AqH3jm4s.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-eL-vIEjp.js → OverlayContainerPage-Bmu909Fo-D0brL_nl.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Cmvdl5M2-BhFSUFSZ.js → PandLWithForecastPage-DbP4ybN4-CjX2B57O.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B8u08pzI-DmEmzort.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-DhFeVMmy.js} +7 -7
- package/dist/assets/{PeoplePage-DUgY9uhQ-Cr96soIc.js → PeoplePage-B3n7ek2h-Bozbjh3K.js} +18 -18
- package/dist/assets/{PortfolioAllocationFormPage-8W6M--6J-DR9Ndj0M.js → PortfolioAllocationFormPage-CzA_c7hR-CWaP7kP_.js} +7 -7
- package/dist/assets/{PortfolioDetails-Cgsx9aCA-DeeNxIS6.js → PortfolioDetails-Drgv4Osg-n5MRYPkF.js} +23 -23
- package/dist/assets/{ProductsCarousel-Bm2Y2y3o-BXHDZ7Bz.js → ProductsCarousel-BnnfJR0o-69mJVwF1.js} +5 -5
- package/dist/assets/{PromoBaseCards-B8vPeDYr-DKbnXhuy.js → PromoBaseCards-BGHJivI8-iKisrOi3.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-i-PJJPa4-B0SC4TfV.js → QBOConnectionDialog-uiW9eeZu-BUSCcjkj.js} +6 -6
- package/dist/assets/{QBOSetupSection-CRrnYKUh-BbRn7wM8.js → QBOSetupSection-DPb0VAii-CawJiqRt.js} +9 -9
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-CNtIL-aY.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-Chrc3t9S-DT2ivR9l.js → ReimbursementApprovalRulesPage-C1AFF_DM-JcrRx1zz.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-DGNdthlv-LfuXXHFQ.js → ReimbursementDetailPage-Du6R1zje-DFFAPJro.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-BvFwudpI-Cv-4tXUE.js → ReimbursementPromoPage-CW9eyjp9-D3Pfks5-.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-Cbax1ApT-E7Ui2lvq.js → ReimbursementSetUpPage-CbPwgIqt-DD9o1r2m.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-CkqM4nh9.js +1 -0
- package/dist/assets/{ReloadCard-7jt7MZTY-lIyJZnnS.js → ReloadCard-Dvn17Oxl-CBzKop0_.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BiBxQPuW-CLgWnlTn.js → ReportTableViewSelector-C5_qr5qe-lIXMBIXQ.js} +10 -10
- package/dist/assets/{ReportsPage-DFob2c55-D23AFFaM.js → ReportsPage-BNcymVwf-ClQkz7Qq.js} +9 -9
- package/dist/assets/{RevenueChart-ClhUfdMh-DYskvLwM.js → RevenueChart-DILkui6c-Bn7jhZor.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-FQiCTlke-Q5authsi.js → ReviewDetailsPage-ZYzvK95X-CostS9P2.js} +5 -5
- package/dist/assets/{ReviewOverlay-CfF_qd7Q-qDrq1AtB.js → ReviewOverlay-DhUFI1ES-LUmDitH1.js} +4 -4
- package/dist/assets/{RoleWithToolTip-BF8jX30M-C92wOLzi.js → RoleWithToolTip-_W95JBwt-D4GQ0PLV.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_eajy25-B_Z0JCSO.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BVQFXrep.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-CEyK426x-nrWcby4m.js → ScheduleDetailsPage-KgHwQGrw-DNkLJeLN.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CzCC1xOo-D8B0ej3Q.js → ScheduleSequenceTable-Bixq8Q7W-DZJIVO-x.js} +12 -12
- package/dist/assets/{ScreenRoutes-Dikl0nac.js → ScreenRoutes-Ce8X3bBt.js} +1 -1
- package/dist/assets/SetUpAccountSection-D8FMVhkL-0Pe99EFt.js +378 -0
- package/dist/assets/{SetUpDefaultSection-BbQ_Qx2--C5lXu4vU.js → SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js} +4 -4
- package/dist/assets/{SignIn-DTytMyjr-BxhE66O7.js → SignIn-DslenepV-CPPxlLcj.js} +11 -11
- package/dist/assets/{SignInScreen-DKV5tLc9.js → SignInScreen-B1GYtWiH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CD0Beu1e-DaoCCXM5.js → SpendManagementListViewPage-D7SzmCmM-BJf-og4i.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-ILwwf3e3-CE45DDqu.js → SpendManagementPerTabPage-DKaDr4mu-DxptYFft.js} +20 -20
- package/dist/assets/{SpendManagementSection-o0Xvlal3-C0zjrllO.js → SpendManagementSection-Ddfq2u6H-DmMZ9eyK.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-DkUfJ6ei-oFxBfg7R.js → SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js} +6 -6
- package/dist/assets/StatementItem-B2uPIFUk-BwrPLJ8M.js +31 -0
- package/dist/assets/StatementsPage-o7MvNKvd-C1dFevGn.js +58 -0
- package/dist/assets/{StatusSwitcher-u6thj-sM-8T1PWXo9.js → StatusSwitcher-kWLQCCwS-BcuNtj6J.js} +4 -4
- package/dist/assets/{SubTabSwitcher-B9ILKi1e-DAbNMl3T.js → SubTabSwitcher-BKm9FxhL-euRzTmRU.js} +1 -1
- package/dist/assets/{SummaryCard-Drap3bb1-nVRx_VJE.js → SummaryCard-DBMfNfN2-plAS3Det.js} +1 -1
- package/dist/assets/{TaskManagementPage-DoT0Xz7g-DMFrchv7.js → TaskManagementPage-D_wjK-S2-ckyJVLkK.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DbGrn4DP-BT1wbdLA.js → TimeRangeSwitcher-2vDR_AEV-D-I6mwQS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-sbgG6A6l-gjTqG61O.js → TimeframeSwitcher-BB3_i5V0-DSWHJLc3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-arAZfZIA-BY46uNld.js → TimeframeSwitcherWithToggle-CdP0ViK8-CSTf2noq.js} +1 -1
- package/dist/assets/{TopExCard-97hb0R08-DsF24-mR.js → TopExCard-BGgGFzmK-Bh9OLnE6.js} +6 -6
- package/dist/assets/{TopExDetailPage-CoLyDCB7-D8kHhqmk.js → TopExDetailPage-CbzYG54M-DO9gCz75.js} +14 -14
- package/dist/assets/{TransactionDetailPage-q5aE5bnJ-jYWbJJ_Z.js → TransactionDetailPage-C-CfEtCO-BGrY5UL4.js} +36 -36
- package/dist/assets/{TransactionList-C8S87idW-CkmfZ-_y.js → TransactionList-C0xK6_zI-BWkO5U-i.js} +5 -5
- package/dist/assets/{TransactionListBig-B0GroSXv-Bt_lEoX-.js → TransactionListBig-CIX6CdX--LTkFgM7t.js} +13 -13
- package/dist/assets/{TransactionListPage-CP6h2Q1r-CJzCvI7Q.js → TransactionListPage-B7ppBJig-uGcfhXLt.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-Cgsraa0T-Bvuj8pKB.js → TransactionVendorDetailPage---HGdQiZ-CZOQ9lvG.js} +5 -5
- package/dist/assets/{TransferDrawerPage-0MWoLTHi-BGT-JW0Z.js → TransferDrawerPage-DerGmul8-62lI-YY8.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-CaP2pdVj-CEEbDthH.js → TreasuryOverviewPage-DW2gZwip-DVFW4hhW.js} +26 -26
- package/dist/assets/{TreasuryPromoPage-CjCAsIAs-DVDda824.js → TreasuryPromoPage-DzqdEmPJ-CoyHUnTy.js} +13 -13
- package/dist/assets/{TreasurySetupPage-zxxClgmz-B49PuUcQ.js → TreasurySetupPage-Bo0HQeeU-A0y2k-4p.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-BCDakhB_-BFM4MV11.js → TreasuryStatementsPage-DS_VK4WN-DmTwCwC0.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-Bq3Zcz28-CaeCwr68.js → TreasuryTaxLetterPage-DgwqyL6v-B7MPhwnZ.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-C8OGAEPm-MHGVeol0.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CShzQj1Z.js} +41 -41
- package/dist/assets/{TrendChart-BVaBWGSG-Bsmd11nW.js → TrendChart-D07k3uRr-DkExi6rv.js} +4 -4
- package/dist/assets/{TrendWithTransactions-wA_XpWa7-CiZEQQ3v.js → TrendWithTransactions-ibwuOssC-C0qp9MFm.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-CZyZ7HgM-Cfcp8jrs.js → UncategorizedAccountsMappingPage-D1m2Ok2e-DbU6jOlH.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-ahzf74jD-BhU3F_FY.js → UnitIntegrationPage-BJxRjjfK-DtvhQiip.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-DT_NocG4-Bq1bl1aO.js → UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-_SmOnjiJ-Bzcvad4z.js → Vendor2FAPopup-80vvc7gE-CZyjqzsA.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-qP4fOIER-DjK69kdl.js → VendorACHDetailsPage-CQcuiNPr-ZTYmcvJP.js} +1 -1
- package/dist/assets/{VendorDetailPage-BKztI9LK-BWXxargk.js → VendorDetailPage-Dx_yfZDH-Dm378Xm3.js} +8 -8
- package/dist/assets/{VendorDomesticWireDetailsPage-CcIVgYDR-AxQuezcA.js → VendorDomesticWireDetailsPage-DN5x3F_Z-XOWyPxP1.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-j3wx_7VO-DhWyFbHa.js → VendorFiling1099EditablePage-8Jz187lD-0m7mNuWb.js} +10 -10
- package/dist/assets/{VendorFirstReviewPage-Tael17gH-DhgjGUhL.js → VendorFirstReviewPage-CokvYaRq-Cb9NI798.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-CQU1yW6x-D9yyy6s6.js → VendorInternationalWireDetailsPage-lo9l2Q88-DFczs5XD.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-YdTFG4UK-BmTkjHNI.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-DRMFLwZ9.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DA43fzxN-C-aSfcSH.js → VendorsAccountsSection-BqoW4DlP-K9mGVuVh.js} +2 -2
- package/dist/assets/{VerifyDevice-qwJe3UlY-C8JhMBq8.js → VerifyDevice-D8iPRJ3k-Didr6pca.js} +1 -1
- package/dist/assets/{VideoPopup-DjHyf6Dq-Caoe-41_.js → VideoPopup-SdlRHLkM-0X18VPqO.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-B3y_Dk0z-BDJbRvuV.js → WarningsDrawerPage-qYWFsE3s-PgntUxKS.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-3Rwc-ka_-CZGU5GGZ.js → ZeniAccountDetailPage-BL2a5Dmz-iag3jdsk.js} +9 -9
- package/dist/assets/{ZeniAccountListViewPage-Dz4Ts37w-C7bBnvjh.js → ZeniAccountListViewPage-CWqzDWcO-BoCUgkRw.js} +14 -14
- package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-D9pY_iW0.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BdOMtMQi-eO57NyVA.js → ZeniAccountPromoPage-CBm3w0kN-ZGm0kki_.js} +7 -7
- package/dist/assets/{ZeniAccountSetupPage-BaAbcpDN-Dz74SoJa.js → ZeniAccountSetupPage-C5VzT9lH-CmNUeSAP.js} +3 -3
- package/dist/assets/{ZeniCopyright-CDUB4TcP-GE4oQ9V1.js → ZeniCopyright-BUctH39C-DplfFfSP.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-Baob6Y6l.js +63 -0
- package/dist/assets/{analyticsHelper-BvNZGrlc-BJa5RIFt.js → analyticsHelper-B3uAu0es-QTXf1Ev3.js} +1 -1
- package/dist/assets/{analyticsHelper-Dx5oOGyQ.js → analyticsHelper-CXIp8rdA.js} +1 -1
- package/dist/assets/{chartTypes-eIJ-SPRj-DNmHJom3.js → chartTypes-CJmQ6FtI-XyTHIuvE.js} +1 -1
- package/dist/assets/{commonDimensions-BhQMg8M1-BL_2J79f.js → commonDimensions-WRL2ZVK_-BkSU0Zqq.js} +1 -1
- package/dist/assets/{detailCommon--19QlDMD-CzDyWg-5.js → detailCommon-Dfxas1Kf-Cs5j6wK3.js} +6 -6
- package/dist/assets/{downloadPdf-CdQzDva3-8WZMObW_.js → downloadPdf-B1f0mDl2-DR3N1swU.js} +1 -1
- package/dist/assets/{index-tsOp9BQk.js → index-C3eIsUEB.js} +3415 -3415
- package/dist/assets/{mapLoadingInProgressToTreeNode-5V5katgj-CVFQIMUP.js → mapLoadingInProgressToTreeNode-BG784RuM-D-SsN93J.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BJxygmqD-h90lXkUP.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DFzyPyCl.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D64394wQ-pSHkWnxf.js → mapSpacerToTreeNode-CcgVbOH5-C822drj0.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-n7enawjr-B0jvlyrF.js → mapTimeframeBalancesToTreeNode-CU583ICK-BsI9dw9j.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DCKSi6a2-DS9WQRVo.js → mapTimeframeBalancesToTreeNode-DTlwFauL-BnT0AYvx.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_QU_sNV-BAbZgSg9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CxzLxNpV.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BzuCDtG--VHioxKWJ.js → toCOABalancesWithID-DTfegixr-INQY6aSS.js} +1 -1
- package/dist/assets/{toChartData-CYJPtvhS-C0w2egjH.js → toChartData-CH5DcWUY-CUE_ejao.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BKdnWQWY-D8OCa9aZ.js → treasuryColorHelper-BdPkQoh7-DNZcPnEX.js} +1 -1
- package/dist/assets/{uploadAttachment-joBVPGv5-gtEaySAh.js → uploadAttachment-COwu5Mqo-5xUhTy_F.js} +13 -13
- package/dist/assets/{uploadReceipts-dxsKhm9I-Cn41OXkr.js → uploadReceipts-dxsKhm9I-BfDIlt9K.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ArAgingChart-C2EOYS7A-HVEaEPzA.js +0 -24
- package/dist/assets/BillPayApprovalRuleDetailPage-C8VknJRe-DRpgLYbu.js +0 -27
- package/dist/assets/CardNumberSubText-Cz8Y1Z97-LpaJD4_Y.js +0 -21
- package/dist/assets/ChargeCardUtils-CTnXnilO-DMAAzxCn.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-C78K4Qka-BgHYkZOt.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BXvzWHpN-CpyPZ7nS.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-CgNs2M1G-Jw4rbr_L.js +0 -66
- package/dist/assets/LabeledAddressValueField-CLeHoJsD-lkNMl3uF.js +0 -45
- package/dist/assets/NotificationsListConfig-BjKpPm-b-CViXYy_9.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DfsK1S1y-wuwm32sm.js +0 -26
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-vhtiYbWq-D8igsH6s.js +0 -1
- package/dist/assets/SetUpAccountSection-nOqMRPh8-DaY9rNyz.js +0 -378
- package/dist/assets/StatementItem-GyeTS2vu-C7aG3yI8.js +0 -31
- package/dist/assets/StatementsPage-DU5Dhq7q-11U-8ioz.js +0 -58
- package/dist/assets/ZeniAccountNavBarPieces-DOWoY-ph-CzwV0Amu.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-BvyfsZDl-BfSyc7LO.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ge,
|
|
1
|
+
import{e as ge,O as $t,j as o,$ as P,gU as bt,B as xe,a0 as W,K as Ee,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bp as At,cV as tt,J as R,l as z,g1 as kt,g as S,r as Tt,y as ot,w as G,t as X,f1 as Pt,a as Ct,ca as zt,F as Dt,fJ as Lt,q as c,bw as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fd as Rt,f5 as Bt,x as Ot,n as It,f6 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Gt,ff as Xt,fo as Yt,ab as qt}from"./index-C3eIsUEB.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-Drgv4Osg-n5MRYPkF.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./treasuryColorHelper-BdPkQoh7-DNZcPnEX.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Qt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Qt=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${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 Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
|
|
2
2
|
width: 100%;
|
|
3
3
|
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
4
|
height: 2px;
|
|
@@ -46,10 +46,10 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
46
46
|
position: absolute;
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
transform: translateX(-50%);
|
|
49
|
-
`,io=r(
|
|
49
|
+
`,io=r(G)`
|
|
50
50
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
51
51
|
white-space: nowrap;
|
|
52
|
-
`,ao=r(
|
|
52
|
+
`,ao=r(G)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: -${t.sp5};
|
|
55
55
|
white-space: nowrap;
|
|
@@ -60,12 +60,12 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
padding: 2px ${t.sp2};
|
|
63
|
-
`,
|
|
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:N},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.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.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.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Yo,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=J(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:N.reviewAndConfirm}),o.jsx(Go,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Lo,{}),o.jsx(Xo,{children:o.jsxs(o.Fragment,{children:[N.review.prefix,`"${T?.label}" `,N.success.midfix,` "${$?.label}" `,N.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(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:N.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:N.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},_=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(No,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
|
-
`,le=r(
|
|
66
|
+
`,le=r(G)`
|
|
67
67
|
color: ${e=>e.theme.colors.hero};
|
|
68
|
-
`,ce=r(
|
|
68
|
+
`,ce=r(X)`
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
`,$o=r.div`
|
|
@@ -76,7 +76,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
76
76
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
77
77
|
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
78
78
|
border-radius: ${t.sp2};
|
|
79
|
-
padding: ${e=>`${
|
|
79
|
+
padding: ${e=>`${U.elementsContainerPadding.valuePx(e.windowSize)}`};
|
|
80
80
|
gap: ${t.sp4};
|
|
81
81
|
${e=>e.windowSize==="small"&&`
|
|
82
82
|
width: auto;
|
|
@@ -115,7 +115,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
115
115
|
margin-left: ${t.sp2};
|
|
116
116
|
`,Ao=r(it)`
|
|
117
117
|
color: ${S.important};
|
|
118
|
-
`,ko=r(
|
|
118
|
+
`,ko=r(X)`
|
|
119
119
|
color: ${S.important};
|
|
120
120
|
`,To=r.div`
|
|
121
121
|
margin-top: ${t.sp3};
|
|
@@ -128,8 +128,8 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
128
128
|
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
129
129
|
`,Po=r.div`
|
|
130
130
|
height: auto;
|
|
131
|
-
padding-left: ${e=>`${
|
|
132
|
-
padding-right: ${e=>`${
|
|
131
|
+
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
132
|
+
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
133
133
|
margin-bottom: auto;
|
|
134
134
|
`,Co=r.div`
|
|
135
135
|
display: flex;
|
|
@@ -153,13 +153,13 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
153
153
|
background-color: ${e=>e.theme.colors.grey3};
|
|
154
154
|
min-height: 1px;
|
|
155
155
|
max-height: 1px;
|
|
156
|
-
`,ue=r(
|
|
156
|
+
`,ue=r(G)`
|
|
157
157
|
color: ${e=>e.theme.colors.hero};
|
|
158
158
|
`,Fo=r.div`
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
padding-top: ${t.sp3};
|
|
162
|
-
padding-bottom: ${e=>`${
|
|
162
|
+
padding-bottom: ${e=>`${U.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
163
163
|
`,Mo=r.div`
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-direction: row;
|
|
@@ -167,7 +167,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
167
167
|
align-items: center;
|
|
168
168
|
width: 100%;
|
|
169
169
|
top: ${t.sp0};
|
|
170
|
-
padding: ${e=>`${
|
|
170
|
+
padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
171
171
|
z-index: 2;
|
|
172
172
|
background-color: transparent;
|
|
173
173
|
`,Ro=r(ot)`
|
|
@@ -177,7 +177,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
177
177
|
${e=>e.windowSize==="small"&&`
|
|
178
178
|
padding-bottom: ${t.sp0};
|
|
179
179
|
`}
|
|
180
|
-
`,Bo=r(
|
|
180
|
+
`,Bo=r(G)`
|
|
181
181
|
color: ${e=>e.theme.colors.hero};
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-direction: row;
|
|
@@ -185,16 +185,16 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
185
185
|
gap: ${t.sp2};
|
|
186
186
|
`,Oo=r.span`
|
|
187
187
|
margin-left: ${t.sp2};
|
|
188
|
-
`,Ae=r.div``,Io=r(
|
|
188
|
+
`,Ae=r.div``,Io=r(Gt)`
|
|
189
189
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
190
190
|
margin-left: ${t.sp1};
|
|
191
|
-
`,
|
|
191
|
+
`,No=r.div`
|
|
192
192
|
width: ${t.sp1};
|
|
193
193
|
height: ${t.sp1};
|
|
194
194
|
min-width: ${t.sp1};
|
|
195
195
|
background-color: ${e=>e.theme.colors.grey1};
|
|
196
196
|
border-radius: 50%;
|
|
197
|
-
`,
|
|
197
|
+
`,Eo=r.img`
|
|
198
198
|
display: flex;
|
|
199
199
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
200
200
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
@@ -205,7 +205,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
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(
|
|
208
|
+
`,Vo=r(Yt)`
|
|
209
209
|
min-width: inherit;
|
|
210
210
|
width: inherit;
|
|
211
211
|
height: inherit;
|
|
@@ -215,7 +215,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
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
|
-
`,We=r(
|
|
218
|
+
`,We=r(Xt)`
|
|
219
219
|
min-width: inherit;
|
|
220
220
|
width: inherit;
|
|
221
221
|
height: inherit;
|
|
@@ -226,26 +226,26 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
226
226
|
margin-right: 12px;
|
|
227
227
|
margin-left: ${t.sp1};
|
|
228
228
|
color: ${e=>e.theme.colors.hero};
|
|
229
|
-
`,
|
|
229
|
+
`,Go=r(rt)`
|
|
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
|
-
`,
|
|
236
|
+
`,Xo=r(X)`
|
|
237
237
|
color: ${e=>e.theme.colors.hero};
|
|
238
238
|
margin-top: ${t.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,Yo=r(Wt)`
|
|
240
240
|
width: ${t.sp4};
|
|
241
241
|
height: ${t.sp4};
|
|
242
242
|
color: ${e=>e.theme.colors.hero};
|
|
243
|
-
`,
|
|
243
|
+
`,qo=r(_t)`
|
|
244
244
|
width: ${t.sp4};
|
|
245
245
|
height: ${t.sp4};
|
|
246
246
|
color: ${e=>e.theme.colors.hero};
|
|
247
247
|
align-self: center;
|
|
248
|
-
`,
|
|
248
|
+
`,Jo=r(Vt)`
|
|
249
249
|
width: ${t.sp4};
|
|
250
250
|
height: ${t.sp4};
|
|
251
251
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -257,7 +257,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
257
257
|
position: absolute;
|
|
258
258
|
right: 50%;
|
|
259
259
|
bottom: -25px;
|
|
260
|
-
`,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Ko},billPay:{insufficientFunds:Ye}}}=xe.getLocalizedStrings(),st="amount",Uo="transferTo",Qo="transferFrom",N="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 Ho({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Q]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[H,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[D,we]=x.useState(b.linkToken??null),[ee,Le]=x.useState(!1),[Fe,Me]=x.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=x.useCallback(s=>{v?.(s),Me(!1),Le(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:X}=Pt({token:D,onSuccess:dt,onExit:ut}),J=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),X?te():Le(!0)},[te,X]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ge(e,n,J),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),x.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&X&&Me(!0)},[X,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ge(e,n,J))},[X,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},oe=j[N].transferFrom.selectedOption,re=j[N].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[N].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};Q(Ee.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:L}=e.treasuryTransferMoneyLocalData,wt=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 Ye.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ye.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(Xe,{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(N,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,L),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,J,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Xe,{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(N,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(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}}})})]}),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(N,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__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Ut,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:Q})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:H,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{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(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Ko.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ge=(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:Uo},billPay:{insufficientFunds:Ge}}}=xe.getLocalizedStrings(),st="amount",Ko="transferTo",Qo="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Ho({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Q]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[H,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[D,we]=x.useState(b.linkToken??null),[ee,Le]=x.useState(!1),[Fe,Me]=x.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=x.useCallback(s=>{v?.(s),Me(!1),Le(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:Y}=Pt({token:D,onSuccess:dt,onExit:ut}),q=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),Y?te():Le(!0)},[te,Y]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Xe(e,n,q),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),x.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&Y&&Me(!0)},[Y,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Xe(e,n,q))},[Y,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[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ne={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ne,fromAccount:ne,toAccount:ie};Q(Ne.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:L}=e.treasuryTransferMoneyLocalData,wt=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 Ge.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ge.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount: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(Ye,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,L),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(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(E,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__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:Q})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:H,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("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,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Uo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Xe=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
|
|
261
261
|
margin-top: ${t.sp3};
|
|
262
262
|
display: flex;
|
|
263
263
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -291,7 +291,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
291
291
|
margin-left: ${t.sp2};
|
|
292
292
|
`,ar=r(it)`
|
|
293
293
|
color: ${S.important};
|
|
294
|
-
`,sr=r(
|
|
294
|
+
`,sr=r(X)`
|
|
295
295
|
color: ${S.important};
|
|
296
296
|
`,lr=r(rt)`
|
|
297
297
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -300,7 +300,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
300
300
|
margin-top: ${t.sp1};
|
|
301
301
|
margin-bottom: ${t.sp1};
|
|
302
302
|
`}
|
|
303
|
-
`,
|
|
303
|
+
`,Ye=r(Ft)`
|
|
304
304
|
border-radius: ${t.sp2};
|
|
305
305
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
306
|
`,cr=r.div`
|
|
@@ -371,7 +371,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
371
371
|
justify-content: center;
|
|
372
372
|
align-items: center;
|
|
373
373
|
flex-direction: column;
|
|
374
|
-
`,mr=r(
|
|
374
|
+
`,mr=r(X)`
|
|
375
375
|
color: ${e=>e.theme.colors.hero};
|
|
376
376
|
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
377
377
|
white-space: pre-line;
|
|
@@ -393,11 +393,11 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
393
393
|
display: flex;
|
|
394
394
|
flex-direction: row;
|
|
395
395
|
align-items: center;
|
|
396
|
-
`,
|
|
396
|
+
`,qe=r.div`
|
|
397
397
|
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
398
|
color: ${e=>e.theme.colors.hero};
|
|
399
399
|
cursor: pointer;
|
|
400
|
-
`,
|
|
400
|
+
`,Je=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
flex-direction: row;
|
|
403
403
|
align-items: center;
|
|
@@ -426,23 +426,23 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
426
426
|
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
427
427
|
`,$r=r(It)`
|
|
428
428
|
color: ${e=>e.theme.colors.hero};
|
|
429
|
-
`,br=r(
|
|
429
|
+
`,br=r(Nt)`
|
|
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(
|
|
436
|
+
`,Sr=r(Et)`
|
|
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
|
-
`,
|
|
443
|
+
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Gr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,H=Q.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(He,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:H,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(He,{"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(Ho,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:H,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(X)`
|
|
444
444
|
color: ${e=>e.theme.colors.hero};
|
|
445
|
-
`,Ar=r(
|
|
445
|
+
`,Ar=r(G)`
|
|
446
446
|
color: ${e=>e.theme.colors.hero};
|
|
447
447
|
`,kr=r.div`
|
|
448
448
|
display: flex;
|
|
@@ -456,23 +456,23 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
456
456
|
text-align: center;
|
|
457
457
|
`,Pr=r(vt)`
|
|
458
458
|
display: inline;
|
|
459
|
-
`,
|
|
459
|
+
`,Ke=r.div`
|
|
460
460
|
height: ${e=>e.isTransferCompleted?"100%":"auto"};
|
|
461
|
-
padding-left: ${e=>`${
|
|
462
|
-
padding-right: ${e=>`${
|
|
461
|
+
padding-left: ${e=>`${K.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
462
|
+
padding-right: ${e=>`${K.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
463
463
|
margin-bottom: auto;
|
|
464
464
|
`,Cr=r.div`
|
|
465
465
|
display: flex;
|
|
466
466
|
justify-content: center;
|
|
467
467
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
468
468
|
margin-top: ${t.sp6};
|
|
469
|
-
gap: ${e=>`${
|
|
469
|
+
gap: ${e=>`${K.buttonTrayGap.valuePx(e.windowSize)}`};
|
|
470
470
|
`,zr=r.div`
|
|
471
471
|
height: 80%;
|
|
472
472
|
display: flex;
|
|
473
473
|
flex-direction: column;
|
|
474
474
|
justify-content: center;
|
|
475
|
-
margin: ${e=>`${t.sp0} ${
|
|
475
|
+
margin: ${e=>`${t.sp0} ${K.successContentMargin.valuePx(e.windowSize)}`};
|
|
476
476
|
align-items: center;
|
|
477
477
|
`,Qe=r.div`
|
|
478
478
|
display: flex;
|
|
@@ -481,7 +481,7 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
481
481
|
align-items: center;
|
|
482
482
|
width: 100%;
|
|
483
483
|
top: ${t.sp0};
|
|
484
|
-
padding: ${e=>`${
|
|
484
|
+
padding: ${e=>`${K.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
485
485
|
z-index: 2;
|
|
486
486
|
background-color: ${e=>e.theme.colors.grey4};
|
|
487
487
|
`,He=r(De)`
|
|
@@ -503,4 +503,4 @@ import{e as ge,L as $t,j as o,_ as P,gU as bt,M as xe,a0 as W,K as Ne,m as Ze,a4
|
|
|
503
503
|
color: ${e=>e.theme.colors.primary};
|
|
504
504
|
margin-top: ${t.sp3};
|
|
505
505
|
margin-bottom: ${t.sp2};
|
|
506
|
-
`;export{
|
|
506
|
+
`;export{Gr as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B as $,j as s,l as u,u as B,$ as Y,aj as Z,b7 as z,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,t as N}from"./index-C3eIsUEB.js";import{b as v,f as Q,n as w}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-CJmQ6FtI-XyTHIuvE.js";import{o as X}from"./toCOABalancesWithID-DTfegixr-INQY6aSS.js";import{V as H}from"./toChartData-CH5DcWUY-CUE_ejao.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const I=w.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,J
|
|
3
|
+
`,J=w.div`
|
|
4
4
|
flex: display;
|
|
5
5
|
opacity: 0.85;
|
|
6
6
|
border-radius: ${L.sp1};
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
padding: ${L.sp3};
|
|
9
9
|
background-color: ${e=>e.theme.colors.black};
|
|
10
|
-
`,U
|
|
10
|
+
`,U=w(N)`
|
|
11
11
|
color: ${e=>e.color??K.neutralGrey2Light};
|
|
12
12
|
text-align: left;
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: space-between;
|
|
16
|
-
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(n=>{const l=n.name;if(n&&e&&n.value!==0){const d=n.payload,b=n.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?s.jsx(I,{children:s.jsx(J,{children:t.map((a,r)=>s.jsx(U,{color:a.color,children:`${a.barName}: ${W(a.value)}`},a.barName+r))})}):null},ae=Q.memo(te),re=(e,t,a,r)=>{let n=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(n=X("trend","actual",l))}if(n.length>0){const l=D("trend","actual"),d={};return d[l]=n,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:n,width:l,height:d,onTimeframeSelectionChanged:b}){const m=v.useRef(!1),g=r!=null?se(e,r,a):void 0,y=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),j=p=>{const h=[];return E.forEach(o=>{h.push(s.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:s.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(n),customToolTipContent:({active:p,payload:h})=>s.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:n,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=B(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,j=V(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=T(M,p,1);y(A),b?.(t,{startDate:S,endDate:C})};return s.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:s.jsx(Z,{children:({height:o,width:i})=>s.jsxs(z,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[s.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),s.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),s.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),s.jsx(q,{cursor:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&s.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),se=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as D,j as i,m as R,o as t,
|
|
1
|
+
import{e as D,j as i,m as R,o as t,B as F,C as c,$ as S,aj as q,am as Y,c7 as E,q as a,t as K,a3 as V}from"./index-C3eIsUEB.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-D07k3uRr-DkExi6rv.js";import{C as _}from"./NoDataChart-DNmdY5gQ-I17nHhNI.js";import{B as Q}from"./InsightsSection-C9MHOCQd-B3v5Vy0i.js";import{f as X}from"./TransactionList-C0xK6_zI-BWkO5U-i.js";const Z=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
`,G=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -17,9 +17,9 @@ import{e as D,j as i,m as R,o as t,M as F,C as c,_ as S,aj as E,am as Y,c7 as _,
|
|
|
17
17
|
flex-direction: row;
|
|
18
18
|
justify-content: center;
|
|
19
19
|
align-items: center;
|
|
20
|
-
`,U=n(
|
|
20
|
+
`,U=n(K)`
|
|
21
21
|
margin-right: ${t.sp2};
|
|
22
|
-
`,ee=n(
|
|
22
|
+
`,ee=n(V)`
|
|
23
23
|
width: ${t.sp3};
|
|
24
24
|
height: ${t.sp3};
|
|
25
25
|
color: inherit;
|
|
@@ -63,7 +63,7 @@ import{e as D,j as i,m as R,o as t,M as F,C as c,_ as S,aj as E,am as Y,c7 as _,
|
|
|
63
63
|
height: 360px;
|
|
64
64
|
margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
|
|
65
65
|
margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
|
|
66
|
-
`,he=n(
|
|
66
|
+
`,he=n(E)`
|
|
67
67
|
color: ${e=>e.theme.colors.primary};
|
|
68
68
|
margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
|
|
69
69
|
margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -113,4 +113,4 @@ import{e as D,j as i,m as R,o as t,M as F,C as c,_ as S,aj as E,am as Y,c7 as _,
|
|
|
113
113
|
align-items: center;
|
|
114
114
|
height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
|
|
115
115
|
margin-top: ${t.sp8};
|
|
116
|
-
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=D(),[I
|
|
116
|
+
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},P=D(),[B,I]=k.useState(d),z=k.useRef(null),b=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(Pe,{windowSize:P,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(_,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{f?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(Q,{insights:h?.insights})})]})},H=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{I(x)}})}),O=p=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:O(B),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(b,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(b,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=F.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
|