@zeniai/web-cockpit-ui 1.14.36-dev → 1.14.37-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-3oKbHC1_-Qn9d1Xyv.js → ACHDetailsPage-B-YGNgNu-Bmzj5VCx.js} +1 -1
- package/dist/assets/{AIPerformancePage-Cn2skpeY-BNc-HLpr.js → AIPerformancePage-BtD_7Ftm-Dc6s17nv.js} +26 -26
- package/dist/assets/{AccountInfoPage-Dxnr3s2C-ByHNSUfv.js → AccountInfoPage-BtnzwNNq-dHfnRP44.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js → AccountInfoPageContent-B4wK76bm-bje-d7jv.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js → AccountLockedInfoModal-4JAQCp4H-oFdcTD1v.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js → AccountReconDetailsDrawerPage-Ddi5U4Ae-yt2cu51z.js} +13 -13
- package/dist/assets/{AccountRow-BcSPuOPF-R9MJWqpQ.js → AccountRow-m99usqft-CVwqPSiA.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js → AccountsPromoCardStack-D-dhzSE8-DDW4X8m8.js} +30 -30
- package/dist/assets/{AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js → AddAddressForCardDrawer-Bc7FcxQ9-CPCqNMQu.js} +1 -1
- package/dist/assets/{AddToWalletPage-DgVLkIkz-CQF3I5rp.js → AddToWalletPage-y4kvtUka-DDEooDf0.js} +19 -19
- package/dist/assets/{AgingReportsPage-M1xr5QPt-DB06_ukJ.js → AgingReportsPage-DrNIGwGn-SYUURrNK.js} +15 -15
- package/dist/assets/{AllUserItems-CzMARJS5-DMwRKAgK.js → AllUserItems-B7zg_GaP-Be7aIkSs.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-C3YN724_-CRhegmmd.js → ApAgingDetailPage-DnnUrY0w-YKhaNkmF.js} +3 -3
- package/dist/assets/{AppBasePage-CP4BX_QO-B6mlxKAR.js → AppBasePage-Bk7AUQvW-DewGDFAI.js} +16 -16
- package/dist/assets/{AppDrawerContent-Dc3UorVz-DdpZ1z1h.js → AppDrawerContent-BoIqLCcg-DSqSJb6O.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js → ApprovalRulesSettingsPage-C9F_rLkj-CMuUFv_Y.js} +1 -1
- package/dist/assets/ArAgingChart-DIwVIc---JSQnHbrf.js +24 -0
- package/dist/assets/{ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js → ArAgingDetailPage-DxW2xm-N-C3cyEzON.js} +1 -1
- package/dist/assets/{AttachmentView-Cjq9bT2R-B9cOvAgG.js → AttachmentView-BlhBiGC5-BQVXVdi4.js} +6 -6
- package/dist/assets/{BankAccountSection-DcBAe_nk-Cj8Y52AW.js → BankAccountSection-A8IfSLFo-DZ6IsEkG.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js → BankAccountWarningSection-DFi3iK9n-Bwv6p1-d.js} +19 -19
- package/dist/assets/{BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js → BankConnectionsSettingsPage-CKGG85vp-aivbIsnx.js} +10 -10
- package/dist/assets/{BillDetailPage-DSNj9dZa-GtcAJ7zm.js → BillDetailPage-BOVwHvyV-BfaeR7sU.js} +11 -11
- package/dist/assets/BillPayApprovalRuleDetailPage-BVdiHMjx-H3-_-QUF.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js → BillPayApprovalRulesPage-Dl45oEp5-Bp4yjfcf.js} +7 -7
- package/dist/assets/{BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js → BillPayPromoPage-CEX8Udbv-Bz1WZJJS.js} +32 -32
- package/dist/assets/{BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js → BillPaySetUpPage-CSfEFV18-C8fnmfrq.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js → BillingSettingsPage-hu1pz4dA-DIqnmxGS.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js → BillsBulkReviewDrawerPage-DIY4Aa7i-DWQniSAN.js} +1 -1
- package/dist/assets/{BoxItem-BiXktaUJ-Cfy2EaaH.js → BoxItem-BnivUbj--D0CHtSbc.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BvtQdbIO-BG9aG986.js → BusinessVerificationPage-BZB4KFum-B7vFGHC7.js} +7 -7
- package/dist/assets/CardNumberSubText-CIysZ6zp-BeRdb8DH.js +21 -0
- package/dist/assets/{CashbackDetailPage-CKSxtvZL-C5tKHPnX.js → CashbackDetailPage-C-MPq54h-Di99A_id.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js → ChargeCardDetailPage-CGyuANsu-BXb0v708.js} +40 -40
- package/dist/assets/{ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js → ChargeCardListPage-BbzjzgAv-D6IqTZDO.js} +27 -27
- package/dist/assets/{ChargeCardListTable-B2MUmgfU-D_6CnuuE.js → ChargeCardListTable-D-wd0edv-Ccs8wgch.js} +14 -14
- package/dist/assets/{ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js → ChargeCardPromoPage-Cs-Xlghn-TDUeeTRa.js} +14 -14
- package/dist/assets/{ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js → ChargeCardSetupPage-CfCGkFxz-Ba3kpJjD.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js → ChargeCardStatementsPage-Jc6k_2Gg-C9xm6yF8.js} +6 -6
- package/dist/assets/ChargeCardUtils-Vw0LoIey-LQKRCzhH.js +1 -0
- package/dist/assets/{ChaseOverlay-DYQYE0RM-Cl7PDEtm.js → ChaseOverlay-Cm-3BKNK-ByPesCFg.js} +8 -8
- package/dist/assets/{CheckDepositDrawerPage-C653BICE-BliVsvVN.js → CheckDepositDrawerPage-BAwg3duC-unpJ_-VW.js} +11 -11
- package/dist/assets/{CollapsableReportTable-KGZROyWO-BB5JbMLM.js → CollapsableReportTable-C_qcwMWq-DwhvFgWQ.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js → CompanyOfficerDetailsSection-_m4C7Xgf-B3wASBKA.js} +30 -30
- package/dist/assets/{CompanyPassportCard-BXQt77bL-CgrFJoow.js → CompanyPassportCard-BiuPML3b-oaTBtIaM.js} +5 -5
- package/dist/assets/{CompanyPassportPage-CdM9x1g7-DHJ-ptII.js → CompanyPassportPage-BHf1pHbJ-Buj_TW7B.js} +29 -29
- package/dist/assets/{CompleteProfile-g0ErQlZA-BaxE51VT.js → CompleteProfile-DKEFybHA-C1kFizxR.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js → ConfettiBurst-BvcmPG2b-ZMa2QlEG.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js → CreateOrEditVendorPage-EpWC9Uuv-Dc0tZPg8.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js → CreditCardPaymentDrawerPage-DI-za1T2-bRyqVvzT.js} +19 -19
- package/dist/assets/{CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js → CreditCardPaymentPlgSection-BGu0Am-e-aYbEN-hH.js} +8 -8
- package/dist/assets/{CurrencySelectField-DxrwSaJK-Cu5VbUzb.js → CurrencySelectField-DL628Rog-Bmtvp9OQ.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js → CustomerOnboardingActivationPage-DzuWnPaH-_LvR1atL.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-BLgcij7A-B0ZyZA5y.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js → CustomerOnboardingDetailPageSkeleton-Bx_rpQHj-BvbC0CJP.js} +9 -9
- package/dist/assets/{CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js → CustomerOnboardingNoStepsPage-CSI_jqkM-BvTSxYdS.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js → CustomerOnboardingPage-CuS2FfSh--tD5QTKd.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js → CustomerOnboardingProductSuitePage-B4HtoU9G-k9fDWiOr.js} +1 -1
- package/dist/assets/{Dashboard-DCbGYUNO-CggBXce9.js → Dashboard-bFhMc4h1-CwTlVIc3.js} +114 -114
- package/dist/assets/{DashboardReportPage-7sacscjb-CCrnEMLn.js → DashboardReportPage-B1pKZHaH-C002ABtg.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js → DashboardSidebarBackgroundAnimation-CLaTbvuZ-DTILeRgb.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js → DepositAccTransactionItem-DnzXR7B4-BzeCDAAx.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-C0F0N3XK-CpXVyO43.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js → DomesticWireDetailsPage-BS3N4ATj-Z9M0LUQc.js} +1 -1
- package/dist/assets/{DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js → DownloadOverlay-yXed0RbK-CILknCuS.js} +1 -1
- package/dist/assets/{DrawerPage-DVu3OGym-ELFavZIA.js → DrawerPage-LV8__F8R-DnqAUVKa.js} +5 -5
- package/dist/assets/{EditPeoplePage-COZuksUu-BAJ712Zd.js → EditPeoplePage-GBNK0lo_-DOfo7pqS.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js → EditReimbursementDetailPage-COApDpVm-BQmgcdfZ.js} +59 -59
- package/dist/assets/{EntityDetailPage-CMAFiXng-EHp1vVUv.js → EntityDetailPage-DdZmhyPX-DWJHl4Bk.js} +2 -2
- package/dist/assets/{EntitySummarySection-BezHSTT7-CA4YQ14w.js → EntitySummarySection-Cn7rnQeI-CBO7wVuQ.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js → ExpenseAutomationOverviewPage-ipXT_MCO-bp6l5ftT.js} +17 -17
- package/dist/assets/ExpenseAutomationPage-BXyGtnBz-BNGaSmRn.js +1650 -0
- package/dist/assets/{ExpressPayPage-KpzY-AC4-B3x4TcSO.js → ExpressPayPage-C0J3X657-nQamsxue.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-T7VgNi57-XquGM-uR.js → FeaturePreviewPage-lIDKDiwy-ByXy-FSZ.js} +2 -2
- package/dist/assets/{FollowStepsSection-BffVXexb-Wb7yroWy.js → FollowStepsSection-CtCRMD2R-CbwNNmmr.js} +23 -23
- package/dist/assets/{GlobalReviewListPage-DPJug-7p-FbhUXbzf.js → GlobalReviewListPage-DXPuMshX-BcxIk4p1.js} +14 -14
- package/dist/assets/{HelpButton-BkxT0f9t-DltO0YWd.js → HelpButton-Dmp2RZDD-B2Rab4OD.js} +4 -4
- package/dist/assets/{InformationCardStack-CiO7p4bX-Ca7THwnz.js → InformationCardStack-bpQXbFWJ-Cm38YEZv.js} +4 -4
- package/dist/assets/{InsightsCardStack-CCx4eRv0-BoXCNjZt.js → InsightsCardStack-BzyYnnH_-BColy9W-.js} +9 -9
- package/dist/assets/{InsightsSection-CQRpIy9c-BVaWF-TR.js → InsightsSection-BVjjBkzp-DdtTOhLh.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js → IntegrationsSettingsPage-DjMaGIv9-C8FJSTfl.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js → InternationalWireSwiftDetailsPage-DXYaOaYh-D23V0HqY.js} +13 -13
- package/dist/assets/{InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js → InternationalWireVerificationPage-yPrzoGA9-BxdDeF-a.js} +10 -10
- package/dist/assets/{InviteFormPage-CVIA_4cc-xvdMmRWy.js → InviteFormPage-xQ6xN_gt-BMpnhTIU.js} +20 -20
- package/dist/assets/{InvitePageListView-BapkK9dR-CMoNigd7.js → InvitePageListView-BmkX934z-BfZaFs-7.js} +40 -40
- package/dist/assets/InvitePeoplePage-BxxEjVs5-CabY1R7G.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CfoxMKse-CDgcPY9V.js → InvoiceUploadSection-BxfSI49h-Brw0wgV3.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js → IssueChargeCardPage-ByK_ayX6-rSu6Sks_.js} +22 -22
- package/dist/assets/{LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js → LabeledAddressValue-Bk-opSoh-CfhrR6VE.js} +1 -1
- package/dist/assets/LabeledAddressValueField-RFI4bpOj-V_HSBjtL.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js → LabeledControlledCheckBoxField-DtVQoSev-CxGQ4PV5.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js → LabeledCreatableSingleSelectField-BFmP_-GA-Dc6F7WMx.js} +2 -2
- package/dist/assets/{LabeledDocumentField-DB-XX9hy-ARW_yKHV.js → LabeledDocumentField-CyW3tPI--BGc7rzmx.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js → LabeledDropDownFormattedTextField-_b5VDmOJ-XXRUXuQU.js} +3 -3
- package/dist/assets/{LabeledText-DQjY46zj-CJXj8rFi.js → LabeledText-Bc8QavrT-DRMQG5Fd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js → LabeledUserSingleSelectWithSubtitlesField-CE-MxVSk-Bf2C7jq-.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js → LabeledZeniRolesDropDownField-BqlbDyA1-Z63nBo8a.js} +6 -6
- package/dist/assets/{LinkJETransactionPage-DWq96C-C-BScn3NVF.js → LinkJETransactionPage-DE8ch_W7-BbSoAkGH.js} +6 -6
- package/dist/assets/{LowBalancePopup-DIu4EJtv-FHHWLFWk.js → LowBalancePopup-DWXEyi2S-BS-B0i1n.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js → MagicLinkACHDetailsPage-CJ57XAxp-B8DWH8Pe.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js → MagicLinkDomesticWireDetailsPage-Ba1gbLAX-C3b71Pt2.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js → MagicLinkInternationalWireDetailsPage-U3ygf3uO-B8lQWMEo.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js → MagicLinkSuccessPage-CGjxH6Hl-BGgftVAk.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js → MagicLinkTitleSection-Dzfctx8H-BBKMnm9G.js} +9 -9
- package/dist/assets/{MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js → MailingDetailsSection-N-M1JzkW-CJwTbRpR.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js → MeetingCalenderPopup-BJgsd-6e-BVSiedfG.js} +1 -1
- package/dist/assets/{Menu-Ya9EH9T1-XEx08cqQ.js → Menu-DCl4YiCd-B0YQHXqY.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js → MyBankConnectionsSettingsPage-BZP3Dbes-DmpNjSAQ.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js → MyPendingActivationChargeCardListPage-Cc8Onh73-CbDOi7oK.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js → MyProfileSettingsPage-7YrgIr-M-ZiI_qPOd.js} +11 -11
- package/dist/assets/{NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js → NavBarWithPicker-Bbu7_9sU-Drz87Xca.js} +4 -4
- package/dist/assets/{NavigationArrow-Cic_S7sL-CafjbEnx.js → NavigationArrow-DNJkGq5e-CFURJ7Q6.js} +1 -1
- package/dist/assets/{NavigationDots-BnqdhDar-BHuykGzD.js → NavigationDots-BDhrBzmw-D1HC0qJi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js → NewGlobalMerchantPage-DSyitl-a-Cmd_Uf-_.js} +11 -11
- package/dist/assets/{NoDataChart-CyIzcvzb-CVVPhPRo.js → NoDataChart-Bww-GG_z-Bc_skb_f.js} +3 -3
- package/dist/assets/{NoDataTable-Cf9Qv-ms-BIxVQmVT.js → NoDataTable-DRSEE7HT-D9jhDjAA.js} +1 -1
- package/dist/assets/{NotFoundPage-BP2jA51O-DvlpUk9Z.js → NotFoundPage-BepvWGxk-DxNfmeBZ.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js → NotificationSettingsPage-CR6XVZlL-wDdA0j9g.js} +17 -17
- package/dist/assets/NotificationsListConfig-CBjTcLzj-jvVy89VO.js +1 -0
- package/dist/assets/{NotificationsPage-DEQ0muyV-AFyu-A1B.js → NotificationsPage-BgUc61wf-BZgONaPK.js} +29 -29
- package/dist/assets/{OpExByVendorPage-BPvIdjMh-GjqInlE8.js → OpExByVendorPage-BkgsQ4lY-7o0GC3_0.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-B4CijHVT.js → OverlayContainerPage-Bmu909Fo-C009NgjC.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CgMYDel--CrwH5GHU.js → PandLWithForecastPage-B0pUD9U8-DO8PheB4.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js → PaymentAccountSetupBillingAddressSection-YvYPpyzH-C8eu7aCq.js} +12 -12
- package/dist/assets/{PeoplePage-BrL4O-03-BHA1i9-R.js → PeoplePage-mobCML9r-CoCd3iyK.js} +18 -18
- package/dist/assets/{PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js → PortfolioAllocationFormPage-CB9lfs6z-DLoszR7s.js} +7 -7
- package/dist/assets/{PortfolioDetails-wAtPiO4w-C8Xq6LTb.js → PortfolioDetails-zYYGkoC--vz6_lm4y.js} +23 -23
- package/dist/assets/{ProductsCarousel-B8KxzJsX-BAeIItJs.js → ProductsCarousel-B4zdUn5q-DoM0qjnT.js} +5 -5
- package/dist/assets/{PromoBaseCards-DKu8lmMb-CbitZiAU.js → PromoBaseCards-CgGg3lpk-Dz6RYIDW.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js → QBOConnectionDialog-BBVBEJWA-dgJxEpfC.js} +9 -9
- package/dist/assets/{QBOSetupSection-CwO2OwTA-DfOK3FQy.js → QBOSetupSection-pBOQk_mE-Dd7Gnjqf.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Ck2KbJ_R-BX6Ge_l2.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js → ReimbursementApprovalRulesPage-D7LTvUrz-DlssbBj8.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js → ReimbursementDetailPage-CbgWCawo-C7_BdWis.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js → ReimbursementPromoPage-DmV5eoIo-DOkiivOI.js} +6 -6
- package/dist/assets/{ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js → ReimbursementSetUpPage-kAlaG5Ag-CleK9Kyi.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-70qXVn3v-C1moxDIU.js +1 -0
- package/dist/assets/{ReloadCard-D8XT-nw--BGnVgOtj.js → ReloadCard-DoOxxK_q-CpkIPzoZ.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-kf12PTIw-_koMJS6q.js → ReportTableViewSelector-7OJVsL-G-DHAAlp0N.js} +10 -10
- package/dist/assets/{ReportsPage-D0dEACVc-CgqzQVRZ.js → ReportsPage-29ims7Ks-DeqwxbGw.js} +9 -9
- package/dist/assets/{RevenueChart-D67Egnoj-B0BJYpf4.js → RevenueChart-CLtUUYr5-BiKK-4fc.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js → ReviewDetailsPage-DNDzoyA5-DEPI6irg.js} +5 -5
- package/dist/assets/{ReviewOverlay-BUmIoEZp-D3xvXshe.js → ReviewOverlay-VleZWRhn-92ozUwMn.js} +4 -4
- package/dist/assets/{RoleWithToolTip-QUDWRgyn-DzrP2xLD.js → RoleWithToolTip-DsEos8I_-DRhh0Kxb.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js → ScheduleDetailsFixedAssetsPage-Cv84NP5--DgtnhyGw.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-Btyinpxx-TW4CABi6.js → ScheduleDetailsPage-D4IKW5z6-Dgpd_Bt3.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js → ScheduleSequenceTable-qHcZL82y-hvYO0uf8.js} +17 -17
- package/dist/assets/{ScreenRoutes-BC18Q4eZ.js → ScreenRoutes-BMiRN1n5.js} +1 -1
- package/dist/assets/SetUpAccountSection-CjOOpWa2-DlvlGnwo.js +378 -0
- package/dist/assets/{SetUpDefaultSection-D54P9sLQ-DIoImqvg.js → SetUpDefaultSection-Ax1FuH_A-CyAf_lFy.js} +9 -9
- package/dist/assets/{SignIn-DQERofSd-BPkKMSDj.js → SignIn-Bj2czf21-DLn_5Hl2.js} +11 -11
- package/dist/assets/{SignInScreen-BbeWg9hl.js → SignInScreen-EkV2uFui.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js → SpendManagementListViewPage-7oQurX8D-Btm2dsFE.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js → SpendManagementPerTabPage-DG8qRSeQ-DkldK9oK.js} +12 -12
- package/dist/assets/{SpendManagementSection-BPJDk9AQ-DNTgKL_h.js → SpendManagementSection-CzGLKJ01-CMEY5Je9.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js → SpendMgmtSetupAccountSection-BSuY_zqo-DgJtGLqh.js} +6 -6
- package/dist/assets/StatementItem-teWYG-k5-DINRmcX_.js +31 -0
- package/dist/assets/{StatementsPage-BzG0fWr9-B7zKsVpb.js → StatementsPage-Kqug4TjC-i8j_G7aT.js} +6 -6
- package/dist/assets/{StatusSwitcher-aZiGS6I4-CW57CAir.js → StatusSwitcher-BXzanE6h-DMj6aTv0.js} +4 -4
- package/dist/assets/{SubTabSwitcher-BPzCR9_G-CKWRfEmM.js → SubTabSwitcher-Dc78MPYF-BBOjByHP.js} +1 -1
- package/dist/assets/{SummaryCard-DE3DiW4z-DCcTNI78.js → SummaryCard-DDpG4vry-B5U4mOGE.js} +1 -1
- package/dist/assets/{TaskManagementPage-bmYzZzlx-BQOYF4T3.js → TaskManagementPage-DQXNMGNK-CKRAR0zh.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js → TimeRangeSwitcher-BQL2dhVh-BEcsPUsE.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-w4308CL0-B-m8rZcD.js → TimeframeSwitcher-CXvrXTdI-C26WdHZR.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js → TimeframeSwitcherWithToggle-C_hQ5Vj--Bx-1-ivl.js} +1 -1
- package/dist/assets/{TopExCard-C9Dwe5gi-HuLCC_VB.js → TopExCard-CmajFYfY-r8AKz4at.js} +6 -6
- package/dist/assets/{TopExDetailPage-Ch4gEAFc-CW6a2lM7.js → TopExDetailPage-DNfBQfSC-C7SERVmo.js} +14 -14
- package/dist/assets/TransactionDetailPage-DZPHVxna-gW9ty_N8.js +912 -0
- package/dist/assets/{TransactionList-Dy4LSOLF-DLQzM8h7.js → TransactionList-DifBTNrV-XDxlPwJi.js} +5 -5
- package/dist/assets/{TransactionListBig-BOmqcsRt-CoBJs1L1.js → TransactionListBig-Bjmt3Xib-2_W_aEC_.js} +13 -13
- package/dist/assets/{TransactionListPage-D1XobIP_-CQ1XF-sO.js → TransactionListPage-CpFiD4Aw-CR2PsPHW.js} +4 -4
- package/dist/assets/TransactionVendorDetailPage-BSZ4IBis-BYhm_gdm.js +80 -0
- package/dist/assets/{TransferDrawerPage-DEK-tLwC-CMAkImaq.js → TransferDrawerPage-CiGIqLHQ-D46lOtpY.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js → TreasuryOverviewPage-C21g82G6-DYbFAWwM.js} +45 -45
- package/dist/assets/{TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js → TreasuryPromoPage-lNMQil_1-N_uS5Aq-.js} +21 -21
- package/dist/assets/{TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js → TreasurySetupPage-CHjK0p7r-CRu0aFPY.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js → TreasuryStatementsPage-CKAdFoHY-CmvodGfK.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js → TreasuryTaxLetterPage-DPdcmb53-THnCfe4J.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js → TreasuryTransferOrReviewPage-DmGpNvWn-BuegZV7_.js} +42 -42
- package/dist/assets/{TrendChart-DrNmAOxp-D32D_fQx.js → TrendChart-BJF_aBUS-9NcnnooQ.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CFapbjqF-Tluomzgb.js → TrendWithTransactions-DXSMdecG-qeajZlKV.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js → UncategorizedAccountsMappingPage-DMiXdRb9-CRgBjITM.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-CMRuNXKH-W-172t0m.js → UnitIntegrationPage-Dqakwr1P-QWF0IWfi.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js → UploadAdditionalDocumentOverlay-DOy8Wvxm-COI977Ym.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js → Vendor2FAPopup-DR_Uif4s-CCjiwhTD.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js → VendorACHDetailsPage-_nmRyuvM-BAqZ8tTf.js} +1 -1
- package/dist/assets/{VendorDetailPage-CzECD1Tt-BxCeFQBa.js → VendorDetailPage-DYhBGXTe-B5kyd9_T.js} +8 -8
- package/dist/assets/{VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js → VendorDomesticWireDetailsPage-OzrrojiZ-CWHL3BiA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js → VendorFiling1099EditablePage-C6i7dipR-DmIuqd6b.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-B4YffYJO-BW-F4-km.js → VendorFirstReviewPage-DrelrPYn-CtZKswhg.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js → VendorInternationalWireDetailsPage-BglZ4_v2-DWh5FNhJ.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js → VendorInternationalWireSwiftDetailsPage-MKHHcDL4-D4F7IynK.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C8qo0vKx-DOST9l3F.js → VendorsAccountsSection-COwLgrG_-BeiJbKgP.js} +2 -2
- package/dist/assets/{VerifyDevice-Cku9_tdW-BTj-mHAb.js → VerifyDevice-FO7331hS-BHG8lbd_.js} +1 -1
- package/dist/assets/{VideoPlayer-DqxblGWn-BXG0P4e3.js → VideoPlayer-C7GWTYSG-C3qJA87L.js} +1 -1
- package/dist/assets/{VideoPopup-8253nBrT-DoJHFZMN.js → VideoPopup-CB0BXhOA-BgnE8vln.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js → WarningsDrawerPage-B081ksn8-BvnCWJxm.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js → ZeniAccountDetailPage-Bbx7ge3Z-BwrSFwiV.js} +16 -16
- package/dist/assets/{ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js → ZeniAccountListViewPage-CgOxwjk1-Cy-Kh2JX.js} +13 -13
- package/dist/assets/ZeniAccountNavBarPieces-BkN8_5Zi-BtKjHrnJ.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js → ZeniAccountPromoPage-DrMHkTuM-DZxJwu1v.js} +9 -9
- package/dist/assets/{ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js → ZeniAccountSetupPage-BCpKadR1-BZqzR_uG.js} +3 -3
- package/dist/assets/{ZeniCopyright-BiSq0yhI-CQbT1WRc.js → ZeniCopyright-juRAWlbw-DJRbuiIq.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-BtI1L6UN-f_1E8Iwf.js +63 -0
- package/dist/assets/{analyticsHelper-lnjVamrT.js → analyticsHelper-Bgft_1pJ.js} +1 -1
- package/dist/assets/{analyticsHelper-Dc3DtVTm-Y5fPzPLq.js → analyticsHelper-DQQo4LQc-Dpi2pZTl.js} +1 -1
- package/dist/assets/{chartTypes-C7uaeRCc-CtqAquQd.js → chartTypes-eqxFaFS5-B43Gm107.js} +1 -1
- package/dist/assets/{commonDimensions-MaxjMSVa-n5Ul9FT7.js → commonDimensions-C2hbzHZW-OFUCUhbG.js} +1 -1
- package/dist/assets/{detailCommon-OK9JA2hc-EAouVA2X.js → detailCommon-fC811KkH-D6H3c8Ux.js} +6 -6
- package/dist/assets/{downloadPdf-QtapKpnq-D53WP2BZ.js → downloadPdf-CgcD1OYw-ZvBiL7F-.js} +1 -1
- package/dist/assets/{index-4y_mNX1u.js → index-Du1ejFtI.js} +3415 -3415
- package/dist/assets/{mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js → mapLoadingInProgressToTreeNode-CM7N02af-DstULqSu.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js → mapSectionWithAcOnlyToTreeNode-MzhgtFpc-aX7osQA1.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js → mapSpacerToTreeNode-C7hklF---Dg7CM6wp.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js → mapTimeframeBalancesToTreeNode-CEJ9v-Q3-B6zmleAa.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js → mapTimeframeBalancesToTreeNode-D36HLTqR-CiOqATy_.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhdfWhpd-Diyt9jMU.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js → toCOABalancesWithID-DCFbumLL-BUL3FzIP.js} +1 -1
- package/dist/assets/{toChartData-CEfu5Lvp-ztIWW0aM.js → toChartData-Dh9v_zba-IkjT0Y7p.js} +1 -1
- package/dist/assets/{treasuryColorHelper-Bvcahv9r-CJj1lXeK.js → treasuryColorHelper-ZXa62meg-C9-TrKv9.js} +1 -1
- package/dist/assets/{uploadAttachment-DNrYcaTL-7XpOhOp_.js → uploadAttachment-DOhn3y-C-AUYll2HA.js} +14 -14
- package/dist/assets/{uploadReceipts-dxsKhm9I-Dv2hG-YC.js → uploadReceipts-dxsKhm9I-Cdyoe2Us.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +0 -24
- package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +0 -27
- package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +0 -21
- package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +0 -66
- package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +0 -1650
- package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +0 -12
- package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +0 -45
- package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +0 -26
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +0 -1
- package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +0 -378
- package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +0 -31
- package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +0 -912
- package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +0 -80
- package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.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-Du1ejFtI.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-zYYGkoC--vz6_lm4y.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-ZXa62meg-C9-TrKv9.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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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",Qo="transferTo",Zo="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,Z]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[H,U]=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};Z(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(()=>{U(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(Uo,{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,Zo),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,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,!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(Qt,{interestRate:O,transferAmount:B,setYieldEarned:U,setTransferAmount:Z})]}):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}}}},Uo=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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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,32 +456,32 @@ import{e as ge,L as $t,j as o,_ as P,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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;
|
|
479
479
|
flex-direction: row-reverse;
|
|
480
480
|
justify-content: space-between;
|
|
481
481
|
align-items: center;
|
|
482
482
|
width: 100%;
|
|
483
483
|
top: ${t.sp0};
|
|
484
|
-
padding: ${e=>`${
|
|
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,gV as bt,M as xe,a0 as W,K as Ne,m as Ue,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-Du1ejFtI.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-eqxFaFS5-B43Gm107.js";import{o as X}from"./toCOABalancesWithID-DCFbumLL-BUL3FzIP.js";import{V as H}from"./toChartData-Dh9v_zba-IkjT0Y7p.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-Du1ejFtI.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-BJF_aBUS-9NcnnooQ.js";import{C as _}from"./NoDataChart-Bww-GG_z-Bc_skb_f.js";import{B as Q}from"./InsightsSection-BVjjBkzp-DdtTOhLh.js";import{f as X}from"./TransactionList-DifBTNrV-XDxlPwJi.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};
|