@zeniai/web-cockpit-ui 1.14.9-qa → 1.14.10-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-fN9d1vam-D9VxrmPm.js +21 -0
- package/dist/assets/{AIPerformancePage-pQP8EI_S-_s3zsI3R.js → AIPerformancePage-FvDkFQx9-CQyeQIni.js} +49 -49
- package/dist/assets/{AccountInfoPage-DxAa9GD7-DQEyQtK2.js → AccountInfoPage-RM6DvvVS-DCfKlDtS.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-tNTpX5pA-G_drZK6E.js → AccountInfoPageContent-DEG1tMaK-DT5QC51v.js} +17 -17
- package/dist/assets/{AccountReconDetailsDrawerPage-CbZaDfU0-UsFY-UZk.js → AccountReconDetailsDrawerPage-CiegEtwy-CoXexcHE.js} +13 -13
- package/dist/assets/{AccountRow-BpBK8mVs-CH_oVWO9.js → AccountRow-DDUdlArT-BoTNNfQY.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-DBCYok4Z-CQcxXnBQ.js → AccountsPromoCardStack-Q7ppOy47-Dg9H-xyI.js} +35 -35
- package/dist/assets/{AddAddressForCardDrawer-BP8sDedz-s44WShyg.js → AddAddressForCardDrawer-C2us9OcV-BBVsfjfG.js} +2 -2
- package/dist/assets/{AddToWalletPage-Dsw1GIbh-dkDhEWMM.js → AddToWalletPage-B75ejfsy-Dz6uPeGO.js} +26 -26
- package/dist/assets/{AgingReportsPage-COC3iACh-CQTcd55z.js → AgingReportsPage-mEhdjkho-CIVInWQJ.js} +8 -8
- package/dist/assets/{AllUserItems-DKoDASKq-D9OsZYXc.js → AllUserItems-o4xGLdQM-o69fCFf4.js} +10 -10
- package/dist/assets/{ApAgingDetailPage-BKAJMyRm-8rJSfYqr.js → ApAgingDetailPage-C0Y88nfk-C5r_ppvI.js} +2 -2
- package/dist/assets/{AppBasePage-6fgXwSBv-BU75fZMe.js → AppBasePage-DKAxmkIN-2kh6tXJn.js} +6 -6
- package/dist/assets/{AppDrawerContent-DnYw60Xv-BYIZi-GQ.js → AppDrawerContent-DLn3w253-kKIdFnR8.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-X4EYoBfl-CpEnMum9.js → ApprovalRulesSettingsPage-vBjp3xy--COVrz9he.js} +5 -5
- package/dist/assets/{ArAgingChart-CNghm3pm-BWPEjjZL.js → ArAgingChart-C3yYcTfo-CLHMQYqc.js} +6 -6
- package/dist/assets/ArAgingDetailPage-DlmXkANV-D8C6NFL-.js +46 -0
- package/dist/assets/{AttachmentView-Bp678glv-DplJLpKV.js → AttachmentView-B4hoO1b8-sqsUZh4A.js} +7 -7
- package/dist/assets/{BankAccountSection-DCHOrv1O-tbPEQ2KM.js → BankAccountSection-CdIpgwVZ-BnTYSS8m.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-Bof6a4Ai-CT6FFJx9.js → BankAccountWarningSection-COSdSiAy-BStyOpBA.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-KWPfd_oN-Co8la074.js → BankConnectionsSettingsPage-hNpSoqlw-B7Eg16k_.js} +11 -11
- package/dist/assets/{BillDetailPage-D5FyJKQZ-DQLoKFcH.js → BillDetailPage-CJX3QbcW-DVarBugB.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-C17DUKc8-BWE5dOze.js → BillPayApprovalRuleDetailPage-CUxCgQSj-B-5dPRub.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C6b0Dx9D-7TFrCAGZ.js → BillPayApprovalRulesPage-BAfgqIvl-BhkCJ5l9.js} +10 -10
- package/dist/assets/{BillPayPromoPage-BhbcKNjD-D-OruUi3.js → BillPayPromoPage-D25teFTJ-C_i37lSM.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-DFkYsW2C-DJNYl3eq.js → BillPaySetUpPage-D9ovPwFv-C1hr9AdN.js} +2 -2
- package/dist/assets/{BillingSettingsPage-DQ-GDRoK-BcczfrvH.js → BillingSettingsPage-DBEk-yIg-dgxRKdDq.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-DzTwDeIy-BZKU74HU.js → BillsBulkReviewDrawerPage-CZUNCQ7j-DcLIZ8Sa.js} +1 -1
- package/dist/assets/{BoxItem-a04JWA45-CthCfWYv.js → BoxItem-BtIxBKUQ-CamgFDpr.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BCr_ObVJ-CCJ-3Uzg.js → BusinessVerificationPage-CXeA666i-DDQ4xPVn.js} +12 -12
- package/dist/assets/{CardNumberSubText-B5ejHnml-lgXbHN3q.js → CardNumberSubText-Bakmjdzp-DZ-cA7Dx.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DX_XsNhS-BdIyjObs.js → CashbackDetailPage-yC6NiWvx-BPO3MKaP.js} +25 -25
- package/dist/assets/{ChargeCardDetailPage-Ckbi7U9j-DDQWLOEC.js → ChargeCardDetailPage-DD0_CjGJ-Bk6iyPjP.js} +57 -57
- package/dist/assets/{ChargeCardListPage-CglfbPqr-CA5oo4lh.js → ChargeCardListPage-C_Wxtym7-C8RYPQLB.js} +20 -20
- package/dist/assets/{ChargeCardListTable-BxAeA97m-Bubn4K-P.js → ChargeCardListTable-tXjQM1HV-DZXGqDZ-.js} +41 -41
- package/dist/assets/{ChargeCardPromoPage-BfsQUUYb-tEUMLrxo.js → ChargeCardPromoPage-BAovEsQH-BcTKnJLX.js} +31 -31
- package/dist/assets/{ChargeCardSetupPage-Bq953HsV-DVD_WfYM.js → ChargeCardSetupPage-BFjo3XpM-Ciiz1tVr.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-B_5uvkaq-CLyD2f4E.js → ChargeCardStatementsPage-CvC1casY-DgRmilNR.js} +10 -10
- package/dist/assets/ChargeCardUtils-EeXYTubM-BzIGoEJ7.js +1 -0
- package/dist/assets/{ChaseOverlay-LcVAgdoT-CxUFiFZn.js → ChaseOverlay-DONL-nDR-1303yNRD.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-Da9ApPLD-Cr45_f1h.js +206 -0
- package/dist/assets/{CollapsableReportTable-CKmPwC_x-Br5zi5sk.js → CollapsableReportTable-C2cQTlA6-CwmB1eX2.js} +57 -57
- package/dist/assets/{CompanyOfficerDetailsSection-BlLsNJaD-CweBe6Rv.js → CompanyOfficerDetailsSection-ChVkSOtw-Bkqbsw1H.js} +28 -28
- package/dist/assets/{CompanyPassportCard-ElwK6uOD-BIcN0JjM.js → CompanyPassportCard-CLWfLYZT-dc2pMqRv.js} +8 -8
- package/dist/assets/{CompanyPassportPage-B6mGjsJZ-BpEhxrAK.js → CompanyPassportPage-B6_oWdN9-BkWGrSDb.js} +7 -7
- package/dist/assets/CompleteProfile-D_6UvHbF-Buy6AAC6.js +36 -0
- package/dist/assets/{ConfettiBurst-CjhkW_Be-C3dNmHxK.js → ConfettiBurst-CfEQKUn_-xwBqwegz.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DHvmRSee-C_685l3E.js → CreateOrEditVendorPage-7mYLNzcH-FyLSW-Ll.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-BIaTYAUf-Jfi2pMUE.js → CreditCardPaymentDrawerPage-DM0awVZu-CMqADZ5j.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-mUqReF9z-DqrJBSz6.js → CreditCardPaymentPlgSection-C3pH8AzC-DAPxFM0W.js} +12 -12
- package/dist/assets/CurrencySelectField-DuZRNdJ7-Cv8XSbJt.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CIOyRd8r-SDmojwaB.js → CustomerOnboardingActivationPage-DfQCMxvl-DRp6yq3v.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-BuVNUdQ_-Prx4gAY_.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-A_l9Qen8-DmIvY8oj.js → CustomerOnboardingDetailPageSkeleton-m2chMg_F-DuDfcFEG.js} +13 -13
- package/dist/assets/{CustomerOnboardingNoStepsPage-D5BcbVEK-oA8YWJC6.js → CustomerOnboardingNoStepsPage-C4_D_p4k-Dc8uofQ5.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-N-8Zd7M_-D8NjvNws.js → CustomerOnboardingPage-XbpuMewL-BPKj5uUR.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZwacur5-DO2ZOw-9.js → CustomerOnboardingProductSuitePage-DD3ipEqZ-yQHQ-Cas.js} +8 -8
- package/dist/assets/{Dashboard-CQoNm84Z-DgYDLI9w.js → Dashboard-zs5L4G5s-1ug-HoiT.js} +1 -1
- package/dist/assets/{DashboardReportPage-D4BoWobJ-CFBTUY9d.js → DashboardReportPage-BRkeSLqR-DB1CNvyz.js} +13 -13
- package/dist/assets/{DepositAccTransactionItem-C6_OrohL-BGie0JpH.js → DepositAccTransactionItem-DdxEaiop-XRO0k2Pe.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-C-4zU6U_-BMel7elx.js +66 -0
- package/dist/assets/{DocumentSecurityBanner-Bo9Hgo-I-Cs0ufG6M.js → DocumentSecurityBanner-BmCXnsqt-DgqTK1nO.js} +2 -2
- package/dist/assets/DomesticWireDetailsPage-D3nSUYmr-C8Q-qXAx.js +21 -0
- package/dist/assets/{DownloadOverlay-BoIyiJ9R-DmB8Yj8f.js → DownloadOverlay-D18IYrMS-Ch_NWNsV.js} +25 -25
- package/dist/assets/{DrawerPage-C_kxrXIc-EO54vroQ.js → DrawerPage-EcuR8TES-h-hhHnVA.js} +5 -5
- package/dist/assets/EditPeoplePage-66twBgmc-CNjYkPup.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C-Lj-_YG-DFdYGBde.js → EditReimbursementDetailPage-z7CJ9Vy4-BOvbsxDO.js} +68 -68
- package/dist/assets/{EntityDetailPage-Cqkhzu9O-BvgbxI1O.js → EntityDetailPage-OvuxHiOz-DVhrmWOx.js} +3 -3
- package/dist/assets/{EntitySummarySection-Dqgxknt6-BmPNntbK.js → EntitySummarySection-D5L6gsZR-DNZQ4J50.js} +3 -3
- package/dist/assets/{ExpenseAutomationOverviewPage-CEsyeJ9u-wGjO8BAG.js → ExpenseAutomationOverviewPage-CM7a5B8w-D-61w10l.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-DxpK2JR5-DQoBcXAL.js → ExpenseAutomationPage-C0HfVK2q-BsQDQgZX.js} +84 -84
- package/dist/assets/{ExpressPayPage-DBWJERD9-30Fdrn3c.js → ExpressPayPage-CeHVuoHN-CZGa7NcH.js} +12 -12
- package/dist/assets/FeaturePreviewPage-FQsE4Qv8-C1JsnzwT.js +11 -0
- package/dist/assets/{FollowStepsSection-BrJecw-e-DzE6Hs1H.js → FollowStepsSection-BazOZlaE-C8JsCCQq.js} +13 -13
- package/dist/assets/{GlobalReviewListPage-Duoi9mD_-phlaJb_v.js → GlobalReviewListPage-B7OzhHDj-DwKKMm7I.js} +8 -8
- package/dist/assets/{HelpButton-C1djo0zO-DvpvoGEo.js → HelpButton-DY1MpMsB-NSbUCSI-.js} +5 -5
- package/dist/assets/{InformationCardStack-BE5eaq-x-DF6n3xvq.js → InformationCardStack-DTZ5U5HN-D5gVpmcs.js} +5 -5
- package/dist/assets/InsightsCardStack-D0wOSPaM-B1061MVO.js +79 -0
- package/dist/assets/{InsightsSection-nzKuS0T9-DDuE3v_a.js → InsightsSection-CLnISnUP-Dxdaecz_.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-45ETlpC6-DIcKRGOh.js → IntegrationsSettingsPage-_Z5zEjw7-C9k0uLNg.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-B21X5YFS-Cwrsqmx4.js → InternationalWireSwiftDetailsPage-Dz-fxrmb-BhMUVBgN.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-BzagdPaG-B221Ct1T.js → InternationalWireVerificationPage-ncEPxfAh-BrDSeTws.js} +17 -17
- package/dist/assets/{InviteFormPage-BNdBP-Mm-CjHF0nLI.js → InviteFormPage-DWlnBCXL-BJ0d3_Rt.js} +25 -25
- package/dist/assets/{InvitePageListView-ChzmK7Rt-DRpj3HnO.js → InvitePageListView-Cmi49FoL-Dmiagjbx.js} +51 -51
- package/dist/assets/InvitePeoplePage-CL18FIeI-BCzQDGtZ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-B8o-l15n-BS-TIgsz.js → InvoiceUploadSection-BYgUZr3e-ppSv-eTX.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-BW0cXQqh-B35Dxtek.js → IssueChargeCardPage-Bmoi1yP8-DoxXOVnL.js} +27 -27
- package/dist/assets/{LabeledAddressValue-BioQUVCV-C1_whpY6.js → LabeledAddressValue-OqCEk1VW-BBNkXZso.js} +1 -1
- package/dist/assets/LabeledAddressValueField-fBxHfsjV-8EnRLxw9.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CGT7KsYZ-DTlw8lP1.js → LabeledControlledCheckBoxField-BZrJseng-75nT77St.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-nys9pbO0-D8LCX05l.js → LabeledCreatableSingleSelectField-BjjLKIq--BW2m9V-K.js} +3 -3
- package/dist/assets/LabeledDocumentField-54KXTRM_-BUNcwMS4.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DWP9oUzM-D-OhDhjz.js → LabeledDropDownFormattedTextField-1sZGnKTM-CseYE0ZU.js} +7 -7
- package/dist/assets/{LabeledText-QrjXGWwJ-BNY-0VFx.js → LabeledText-DZTriBfN-ldMke-_p.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-bFvTEIeu.js → LabeledUserSingleSelectWithSubtitlesField-BNPUM7x0-CXhgYAtn.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-C2PAZOPW-DhZj6Fmr.js → LabeledZeniRolesDropDownField-Ce4KKZiS-CqBBOe72.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-BF6-BdWE-CCXto4UD.js → LinkJETransactionPage-DoaNWTmr-ZNMHH0Md.js} +8 -8
- package/dist/assets/{LowBalancePopup-ZZ8Ap8Ls-BX_yLOEX.js → LowBalancePopup-BOTHNsR0-CltUTAj3.js} +5 -5
- package/dist/assets/{MagicLinkACHDetailsPage-BDXiOwx_-BN328Iq7.js → MagicLinkACHDetailsPage-CD76NDYI-C-uF2GNj.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B1-CK91r-agu708vC.js → MagicLinkDomesticWireDetailsPage-BsikAXMr-Cs00xKGu.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-D2rnWzME-Cxv5IRlY.js → MagicLinkInternationalWireDetailsPage-zu3TnX0Y-RjlupNMa.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-BICciyLs-DDU2uulJ.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CmTUPCA1-SE5XIg5Z.js → MagicLinkTitleSection-CD_v3J8N-rcdTFeK_.js} +4 -4
- package/dist/assets/MailingDetailsSection-Cce0Hg2V-BFRjUzGv.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-COpKcBhx-C3Igd-V1.js → MeetingCalenderPopup-gItmg01b-KkgdFDbQ.js} +1 -1
- package/dist/assets/{Menu-frAXxk4e-BVrtNaKP.js → Menu-vFgR8B3A-BT6OAOpY.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-BtC6C9fL-Cbppw-h4.js → MyBankConnectionsSettingsPage-NhLBy2nV-DGdV60Dz.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-tXIpyxdq-DkXTKFhY.js → MyPendingActivationChargeCardListPage-CNb4v74Q-DPjefQOJ.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BmMskLyK-CL91XtiU.js → MyProfileSettingsPage-CXcH5h3K-lboFLZ0B.js} +8 -8
- package/dist/assets/{NavBarWithPicker-ByLynfu6-DpuPwMmt.js → NavBarWithPicker-B1g4GR8h-BTQ7xdwc.js} +6 -6
- package/dist/assets/{NavigationArrow-D5-YpdfE-CYFnaZ_n.js → NavigationArrow-CKb8oJym-C00B8os7.js} +5 -5
- package/dist/assets/{NavigationDots-MA8SVlUT-DjvrP-SY.js → NavigationDots-Bgh-o0zo-CBPdxtJi.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DtTW2Du8-DjaSItuV.js → NewGlobalMerchantPage-CTavGrPU-uVUTkxSd.js} +21 -21
- package/dist/assets/{NoDataChart-BdzVnx59-Dcb8iagX.js → NoDataChart-CtPlddxs-CnfQyDtm.js} +1 -1
- package/dist/assets/{NoDataTable-B4J5Ou18-Bir_Iwar.js → NoDataTable-Dibdh8Pj-CuACZUfn.js} +1 -1
- package/dist/assets/{NotFoundPage-BeAXQOme-DgzCQySk.js → NotFoundPage-yGvtm3rH-CMpdi5kB.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CRZRet42-BRxa42Rm.js → NotificationSettingsPage-DOmx9OZh-bY0ARSm6.js} +13 -13
- package/dist/assets/{NotificationsListConfig-CkSDaMij-BGruklEe.js → NotificationsListConfig-Bz1-bZtB-DFsX0Euc.js} +1 -1
- package/dist/assets/{NotificationsPage-Dqe96fU8-Md1lm49g.js → NotificationsPage-CQ_3esFr-B-IG9JXC.js} +32 -32
- package/dist/assets/{OpExByVendorPage-CXtkN87m-jdrxiMx1.js → OpExByVendorPage-BjqGlQrk-B7srvp-L.js} +7 -7
- package/dist/assets/{OverlayContainerPage-Cy_Jxf8N-2KGo5iDU.js → OverlayContainerPage-GWXnlbZH-XeZYd_0X.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DTOqkynU-B4brEIVC.js → PandLWithForecastPage-juNL-o7I-BSR50hku.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C6WFeB3A-BRSh44ZN.js → PaymentAccountSetupBillingAddressSection-BxQrIZmE-B9AcRUzZ.js} +11 -11
- package/dist/assets/{PeoplePage-D-j114xg-CpebkT_B.js → PeoplePage-BfwpGELm-BdY1PML2.js} +1 -1
- package/dist/assets/PortfolioAllocationFormPage-CmUaCrrW-CsnNWvEp.js +207 -0
- package/dist/assets/{PortfolioDetails-Bbfo0XDo-DZIGyI3q.js → PortfolioDetails-BaLVprV9-DhjQAugK.js} +29 -29
- package/dist/assets/{ProductsCarousel-COUx0Xdj-CY1Sd1BH.js → ProductsCarousel-DSwEQiRo-BrOnjV8c.js} +6 -6
- package/dist/assets/{PromoBaseCards-DG1CAZvU-xf-pcVB-.js → PromoBaseCards-CDbwBfld-bqaRHMGs.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-DLVcifji-KDuq_-AV.js → QBOConnectionDialog-BKEVg_Tw-Lgjz3-p9.js} +10 -10
- package/dist/assets/QBOSetupSection-CAtx-T_9-CoNYf7oJ.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D0YkHEiY-DPuD12sR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CTk2aZMz-YuPFBZZ_.js → ReimbursementApprovalRulesPage-BaI1dJWO-DsmqNYvE.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-BofsP0W--BITd3_Z0.js → ReimbursementDetailPage-CDoMkRc0-De12HsoG.js} +17 -17
- package/dist/assets/ReimbursementPromoPage-DpBahcUT-C8tn75CT.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-Em6S1wkj-xpQYGvkM.js → ReimbursementSetUpPage-C6ZSl21b-B8WJwXSb.js} +8 -8
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DpWChhvB-BY7o-nrI.js → ReimbursementsBulkReviewDrawerPage-DRm_RSSq-DeQfZa5e.js} +1 -1
- package/dist/assets/{ReloadCard-CZ1Ix5em-CIGCvyb9.js → ReloadCard-B1X0QtRR-DKi-eMjg.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BRA3CT_O-W8MrucQl.js → ReportTableViewSelector-2gwwu23O-Dffc4dfy.js} +28 -28
- package/dist/assets/{ReportsPage-CauV3wnZ-DhsHNP71.js → ReportsPage-C4ry6Xjl-DZBMXAeC.js} +5 -5
- package/dist/assets/{RevenueChart-BeM_1hYw-D2KvIvPV.js → RevenueChart--mJZgy8C-DNQW4B8O.js} +12 -12
- package/dist/assets/{ReviewDetailsPage-C5xC8Cf1-Dr3gT8lu.js → ReviewDetailsPage-Dg_NdNMf-CW4kKG-B.js} +16 -16
- package/dist/assets/{ReviewOverlay-DdWa7GLG-BrnOlsr1.js → ReviewOverlay-C-9oLsRU-DbGH6sMH.js} +15 -15
- package/dist/assets/RoleWithToolTip-BPrl2KpS-R9NA17Ei.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BlhhW9A6-27m3v8tn.js → ScheduleDetailsFixedAssetsPage-DICnGQP9-C5eFpk12.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BKWKZuAL-Cko_Bdh0.js → ScheduleDetailsPage-BvkYaxXa-mYyDbOuo.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BzWPTqDM-Cct6COyG.js → ScheduleSequenceTable-Cv62faKa-MDeuMroB.js} +50 -50
- package/dist/assets/{ScreenRoutes-CvUDPDyW.js → ScreenRoutes-DAKdy7NU.js} +35 -35
- package/dist/assets/{SetUpAccountSection-Trj1x2HL-mb3yImZ6.js → SetUpAccountSection-DwkklztZ-BQ9QQ3eR.js} +23 -23
- package/dist/assets/{SetUpDefaultSection-BQzNGjO7-Fxtz2ozg.js → SetUpDefaultSection-Chh_3U0h-B9vxnPiJ.js} +8 -8
- package/dist/assets/{SignIn-Duk9PNwU-DFUIhBT3.js → SignIn-CoM3gLF4-C_1egKDj.js} +12 -12
- package/dist/assets/{SignInScreen-BaYfF0EF.js → SignInScreen-Dg1avkN7.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CREdM633-BPnGO6Pg.js → SpendManagementListViewPage-rf8IhIOU-BYmCKDvl.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-BZ6ISWXe-NSUQmYVp.js → SpendManagementPerTabPage-KLrMZOg6-DIDyAEyj.js} +28 -28
- package/dist/assets/{SpendManagementSection-bMsztUap-Bl_PJtV6.js → SpendManagementSection-CbbqZI-h-qBmB9JQ-.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-Btdtp-ry-CqmCQQeu.js → SpendMgmtSetupAccountSection-BfwEbse9-BEabiv-B.js} +18 -18
- package/dist/assets/{StatementItem-XLqlrHIu-yWvOcemX.js → StatementItem-DEvMOqc4-BaviqNa0.js} +5 -5
- package/dist/assets/{StatementsPage-DWiXiOFU-BSaqqYn6.js → StatementsPage-DNsm7q52-DqcqAutx.js} +4 -4
- package/dist/assets/{StatusSwitcher-D1XZ-pbx-Co1gh17k.js → StatusSwitcher-BdfUDJ2e-C1tw21zv.js} +4 -4
- package/dist/assets/{SubTabSwitcher-Bt3F7ANv-CXuMiM6j.js → SubTabSwitcher-o0RxZAky-Ldu_qmLh.js} +7 -7
- package/dist/assets/{SummaryCard-edbbHOmb-For-9jwt.js → SummaryCard-DQ4ZyfBH-BzHYmkIn.js} +1 -1
- package/dist/assets/{TaskManagementPage-BhtJBdco-K4tnOsNB.js → TaskManagementPage-BVNWrtPC-CQba95zF.js} +26 -26
- package/dist/assets/{TimeRangeSwitcher-D9KzhRYO-UIfxNa_m.js → TimeRangeSwitcher-CD16lox0-CX3eDF4E.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-CbEHKZvd-tt-KvX0B.js → TimeframeSwitcher-C7i0JFHk-DTwRMIeq.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-Cb91RXpD-Dun8neFn.js → TimeframeSwitcherWithToggle-D35sc3g8-DFK7G4Fb.js} +2 -2
- package/dist/assets/{TopExCard-DD9Rf9T6-DnaHVccx.js → TopExCard-bgf-w40u-C_uNYW_E.js} +5 -5
- package/dist/assets/{TopExDetailPage-DaDuwFrj-CH9pN0VD.js → TopExDetailPage-CUiZ2o0r-CyBMg4gJ.js} +16 -16
- package/dist/assets/{TransactionDetailPage-0fIW4o-6-Bz5BXA4d.js → TransactionDetailPage-C50JQjnc-CWzIU1Zc.js} +34 -34
- package/dist/assets/{TransactionList-CLjBadiP-BsFmQ32L.js → TransactionList-nnfPsJZc-BAJrCGK5.js} +8 -8
- package/dist/assets/{TransactionListBig-CwBxP1xB-GCeT7Fhg.js → TransactionListBig-BNanyUhE-aaPtnDIE.js} +24 -24
- package/dist/assets/{TransactionListPage-S1nTM7Yy-B7qsbrmY.js → TransactionListPage-kQOGZBz8-D3fDxnFY.js} +3 -3
- package/dist/assets/TransactionVendorDetailPage-D2OO73Ia-BHB9doPf.js +80 -0
- package/dist/assets/{TransferDrawerPage-BJDNWagE-BIlQVD_e.js → TransferDrawerPage-NOLm9zmx-SsZZDdD7.js} +26 -26
- package/dist/assets/{TreasuryOverviewPage-DB-ZH19K-BnhmZR6N.js → TreasuryOverviewPage-Doo6fmEl-EyBf70hX.js} +31 -31
- package/dist/assets/{TreasuryPromoPage-3MwRPpCt-DhrZr8z8.js → TreasuryPromoPage-CyowAl6A-D4htfcTS.js} +21 -21
- package/dist/assets/{TreasurySetupPage--G4JCzdh-BxyObKos.js → TreasurySetupPage-DZdd0DpR-CKcdkLNP.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-Dfw94h0a-BmcNhHrJ.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-D83IlTZG-BaYwb9KX.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-ByM1UIiU-BqK_l_K5.js → TreasuryTransferOrReviewPage-BuL0YxIE-BtNOqi4P.js} +44 -44
- package/dist/assets/{TrendChart-B0CS3MXT-CbB-GoT1.js → TrendChart-C5-sKlos-B0Ahph3o.js} +3 -3
- package/dist/assets/{TrendWithTransactions-D4OAA6yK-BElfkr13.js → TrendWithTransactions-CZx5tt-z-BQaGMOsk.js} +9 -9
- package/dist/assets/{UncategorizedAccountsMappingPage-C6jaWqrE-DoHvxigx.js → UncategorizedAccountsMappingPage-BVma5qcZ-CCA2MX8b.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-5LOvIFvr-CqyusfTc.js → UnitIntegrationPage-ZRhbEzdQ-B7INC4Jq.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-CLQLrn0v-BKUosbWd.js → UploadAdditionalDocumentOverlay-BpJ_tRy_-Ir3yYWfE.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-BOl520xa-ppAif-Ti.js → Vendor2FAPopup-CQbY2KbX-DZR9-buS.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-B5jKUOjo-CQ6fw4At.js → VendorACHDetailsPage-DcDtOkiR-BY6IlGZW.js} +1 -1
- package/dist/assets/{VendorDetailPage-B0GRXPKg-DpVGPOUS.js → VendorDetailPage-CHhJsnOa-Pomjlqys.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-CeI3QihK-nN5_uUst.js → VendorDomesticWireDetailsPage-BIwYrLOl-C5tQSQbr.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-aNGSdZBf-DmPeRpgN.js → VendorFiling1099EditablePage-gnNbtQoj-C_iovGiO.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-CjwnZLcm-rZCll1Gn.js → VendorFirstReviewPage-Bj3eqx7P-DMs77Fme.js} +40 -40
- package/dist/assets/{VendorInternationalWireDetailsPage-w-46Xxg--DMdoShD0.js → VendorInternationalWireDetailsPage-B_jwfV7H-B6LDXGfj.js} +15 -15
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C5dogij9-AjTitKPs.js → VendorInternationalWireSwiftDetailsPage-CvIV-HFr-xCgovJeU.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DBYoP6us-BNxmqurZ.js → VendorsAccountsSection-B2hWDuz0-Cu-WCSfr.js} +8 -8
- package/dist/assets/{WarningsDrawerPage-CZcR7kH4-CU5nIW1x.js → WarningsDrawerPage-BBC1azy1-5BwmdYFI.js} +22 -22
- package/dist/assets/{ZeniAccountDetailPage-C-NQEE2--Cb5OckXw.js → ZeniAccountDetailPage-mfrQO3zP-mQs6-xzM.js} +28 -28
- package/dist/assets/{ZeniAccountListViewPage-Cb8Ptf-w-DlLHoACL.js → ZeniAccountListViewPage-CCurA7tm-2kl9IV1R.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-CV5znR_M-xk3MObci.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D5ihjbrM-CLAHDnt-.js → ZeniAccountPromoPage-DgGD7ggF-D6I3HQlw.js} +29 -29
- package/dist/assets/{ZeniAccountSetupPage-BRxz_tnh-BSP75bb0.js → ZeniAccountSetupPage-D4z2k7G7-B-TjplBp.js} +5 -5
- package/dist/assets/{ZeniCopyright-Bi82glrb-duqZWZnQ.js → ZeniCopyright-BdLzk7SF-YDGrRrzV.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-BN1YPh8H-BhxzwI5G.js +63 -0
- package/dist/assets/{analyticsHelper-DfG7DVPh.js → analyticsHelper-C2NBKIU-.js} +1 -1
- package/dist/assets/{analyticsHelper-D3DK7bgU-BDE_Upvv.js → analyticsHelper-CzlOBCzS-CQTQg7l1.js} +1 -1
- package/dist/assets/{chartTypes-DJY-6KK0-4PHClK89.js → chartTypes-D-nEr9EI-B9VgqNSb.js} +1 -1
- package/dist/assets/{commonDimensions-DRK1vfDX-PluTp760.js → commonDimensions-DtXIXXfP-BDgsLUKt.js} +1 -1
- package/dist/assets/{detailCommon-6K-6m9pv-jkLJTbTr.js → detailCommon-DZhn8ANF-C-3uByQu.js} +9 -9
- package/dist/assets/{downloadPdf-DAA4T-qo-DsRNHgpN.js → downloadPdf-BaFOiUYP-DxRD0Sh_.js} +1 -1
- package/dist/assets/{index-BdyScxbq.js → index-DPgPe6wO.js} +4147 -4247
- package/dist/assets/{mapLoadingInProgressToTreeNode-BAlOrI07-BRkRTCaW.js → mapLoadingInProgressToTreeNode-VAL73To4-DUfqJ5Z1.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-WwsJ-E2C.js → mapSectionWithAcOnlyToTreeNode-C-2C7Gbr-3LJ7o-YN.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Cxd9BEJr-CTPQlHBA.js → mapSpacerToTreeNode-vdqGP9FL-DNsFGVkT.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cf8fsAZJ-CCBdKNH8.js → mapTimeframeBalancesToTreeNode-BFzyitoJ-BCTOadE1.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BzFUtqqU-DazSUAzQ.js → mapTimeframeBalancesToTreeNode-BwlF2Rvj-CEJu0PwI.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-DcE9f1oB.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BhkQsZRW-CPa2W8T_.js} +1 -1
- package/dist/assets/{play-icon-DY_hSiAf-iPBPRToH.js → play-icon-Dzfx02ir-D9v788Sm.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BaqBVqJ_-4clUovO3.js → toCOABalancesWithID-DN6cSuKb-Bquc6vq_.js} +1 -1
- package/dist/assets/{toChartData-7MYPev1U-BznULmJv.js → toChartData-Bc3LMl7f-JBzkXmJO.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CDhLDRLr-BOEDM_eh.js → treasuryColorHelper-Cv4RwMTx-CPKgsqqw.js} +1 -1
- package/dist/assets/{uploadAttachment-DqCoxBNU-DL0Vk7r9.js → uploadAttachment-CxtYyGQy-Ct8Hb5gj.js} +24 -24
- package/dist/assets/{uploadReceipts-CU1mDxNv-JwkgKcZE.js → uploadReceipts-D80JLNY4-BE7GOht6.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-D6-Uk4xr-B2LzYHp3.js +0 -21
- package/dist/assets/ArAgingDetailPage-DD4M5tUJ-D6JB-pq2.js +0 -46
- package/dist/assets/ChargeCardUtils-Bivw83fy-C-WoJbl2.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-SpI62oU7-BfpgYkY2.js +0 -206
- package/dist/assets/CompleteProfile-C1PIn6EM-Cc-adujF.js +0 -52
- package/dist/assets/CurrencySelectField-DS-pGcuE-BpFKHUHN.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-BUxNxoDZ.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-C-FTLdcU.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-TYDqEdkx.js +0 -21
- package/dist/assets/EditPeoplePage-auUWC3gB-DSruR2eT.js +0 -55
- package/dist/assets/FeaturePreviewPage-CwGJVCMk-C9tam9PL.js +0 -11
- package/dist/assets/InsightsCardStack-EzAsNm_U-BDHHmNG2.js +0 -79
- package/dist/assets/InvitePeoplePage-DgqE2Y-0-aE1qBB-8.js +0 -12
- package/dist/assets/LabeledAddressValueField-Cw-p18du-RDWTYVMt.js +0 -45
- package/dist/assets/LabeledDocumentField-Y6TKpyZ8--QVPp5Dk.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-IHajRicG-C2W53sTh.js +0 -31
- package/dist/assets/MailingDetailsSection-AiehjqI1-D3JLmM_S.js +0 -21
- package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-wu3AnJ-K.js +0 -207
- package/dist/assets/QBOSetupSection-BeRZZ-Q_-DjjY5-V4.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-DIBrpREw.js +0 -26
- package/dist/assets/ReimbursementPromoPage-CA2cUBsx-C4CK4GgH.js +0 -112
- package/dist/assets/RoleWithToolTip-BP8MTZdU-BujAhA8M.js +0 -22
- package/dist/assets/TransactionVendorDetailPage-CTTTAais-bA1BYkNw.js +0 -80
- package/dist/assets/TreasuryStatementsPage-DBykLGfz-cC2WQ6c9.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-iJym96NM.js +0 -58
- package/dist/assets/VerifyDevice-C-ZVbaIJ-3g8l0R3C.js +0 -67
- package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-CaiImja0.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-CqfBNylr.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4 as we,o as a,C as c,a3 as Ye,k as st,ao as ct,Y as dt,c3 as xe,$ as $e,n as ue,a2 as pe,eZ as ut,a as Ve,l as ft,c6 as pt,ab as mt,a1 as ht,d as K,F as Ne,f6 as Se,f7 as ve,fF as gt,bw as De,fA as wt,g$ as xt,s as o,cZ as $t,bK as Xe,bq as Dt,cC as bt,b4 as Tt,M as qe,f2 as Ct,ds as yt,bs as Ze,f9 as St,fb as vt}from"./index-BdyScxbq.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-B4d4bp7D-CqfBNylr.js";import{r as At}from"./AccountInfoPageContent-tNTpX5pA-G_drZK6E.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-DAA4T-qo-DsRNHgpN.js";import"./commonDimensions-DRK1vfDX-PluTp760.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ke="transferDetailPage",me=(e,n)=>`${e}.${n}`,Ge=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:C,setShowAnnualYieldEarned:y,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:G,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:Q}){const i=de(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),H=n.transferMoneyPartiesFetchState,oe=pe(H),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),Je=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),Qe=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=ut({token:v,onSuccess:Je,onExit:Qe}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{V&&x&&q()},[V,q,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&H==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,be,ee,X,P,n,q]);const{isValid:He}=P.formState,et=async(s,h)=>{if(s!=null){const B={...h},se={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};G(se)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(C(!0),y(!0)):y(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&pt(()=>et(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{He&&(_("Review","Amount Details"),Q())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Ce=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(zt,{children:t.jsxs(Ft,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:K.heroLight}})})]})}):null,t.jsx(Wt,{children:Z("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Bt,{id:Ge(Ke),onSubmit:tt,children:[t.jsxs(Ht,{children:[t.jsx(Fe,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Be,{}),t.jsx(Fe,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Be,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ue),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Xt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Ce).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(qt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${Z("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Gt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${Z("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Ce)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>C(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Jt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>C(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
|
|
1
|
+
import{j as t,X as de,_ as A,gN as it,M as I,a0 as q,K as Ce,gX as lt,c as Ye,a4 as we,o as a,C as c,a3 as We,k as st,ao as ct,Z as dt,c0 as xe,v as $e,e as ue,a2 as pe,eX as ut,a as Ve,l as ft,c3 as pt,ab as mt,a1 as ht,g as G,F as Ne,f4 as Se,f5 as ve,fD as gt,bs as De,fy as wt,gY as xt,q as o,cW as $t,bH as Xe,bm as Dt,cz as bt,b4 as Tt,m as Ze,f0 as yt,dp as Ct,bo as qe,f7 as St,f9 as vt}from"./index-DPgPe6wO.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-BN1YPh8H-BhxzwI5G.js";import{r as At}from"./AccountInfoPageContent-DEG1tMaK-DT5QC51v.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-BaFOiUYP-DxRD0Sh_.js";import"./commonDimensions-DtXIXXfP-BDgsLUKt.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ge="transferDetailPage",me=(e,n)=>`${e}.${n}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:y,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:K,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:J,onReviewClick:H}){const i=de(),E=p.largeLabelWidth.value(i),[Y,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),Q=n.transferMoneyPartiesFetchState,oe=pe(Q),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),Je=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),He=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:Z,ready:te}=ut({token:v,onSuccess:Je,onExit:He}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?Z():z(!0)},[Z,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{V&&x&&Z()},[V,Z,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&J?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&Q==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>Z()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,be,ee,X,P,n,Z]);const{isValid:Qe}=P.formState,et=async(s,h)=>{if(s!=null){const B={...h},se={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};K(se)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(y(!0),C(!0)):C(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&pt(()=>et(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{Qe&&(_("Review","Amount Details"),H())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,ye=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[Y?t.jsx(zt,{children:t.jsxs(Ft,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:G.heroLight}})})]})}):null,t.jsx(Yt,{children:q("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Bt,{id:Ke(Ge),onSubmit:tt,children:[t.jsxs(Qt,{children:[t.jsx(Fe,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Be,{}),t.jsx(Fe,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Be,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ue),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Xt,{children:[$?t.jsxs(Wt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",ye).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Gt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(qt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${q("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",ye)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>y(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Jt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>y(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
|
|
2
2
|
margin-top: ${a.sp3};
|
|
3
3
|
display: flex;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -17,7 +17,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
padding: ${a.sp3} ${a.sp4};
|
|
20
|
-
background-color: ${
|
|
20
|
+
background-color: ${G.importantLight};
|
|
21
21
|
border-radius: ${a.sp2};
|
|
22
22
|
`,Mt=r.div`
|
|
23
23
|
display: flex;
|
|
@@ -25,22 +25,22 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
25
25
|
`,Rt=r.div``,Et=r($t)`
|
|
26
26
|
width: ${a.sp4};
|
|
27
27
|
height: ${a.sp4};
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${G.important};
|
|
29
29
|
`,It=r.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
margin-left: ${a.sp2};
|
|
33
33
|
`,Ot=r(Xe)`
|
|
34
|
-
color: ${
|
|
34
|
+
color: ${G.important};
|
|
35
35
|
`,_t=r(ue)`
|
|
36
|
-
color: ${
|
|
37
|
-
`,
|
|
36
|
+
color: ${G.important};
|
|
37
|
+
`,Yt=r(Dt)`
|
|
38
38
|
color: ${e=>e.theme.colors.primary};
|
|
39
39
|
margin: ${a.sp5} ${a.sp0} ${a.sp3} ${a.sp0};
|
|
40
40
|
`,Pe=r(bt)`
|
|
41
41
|
border-radius: ${a.sp2};
|
|
42
42
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
43
|
-
`,
|
|
43
|
+
`,Wt=r.div`
|
|
44
44
|
background-color: ${e=>e.theme.colors.background};
|
|
45
45
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
46
46
|
border-top: none;
|
|
@@ -56,7 +56,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
56
56
|
margin-top: ${a.sp3};
|
|
57
57
|
white-space: pre-line;
|
|
58
58
|
`,Le=r(Xe)`
|
|
59
|
-
color: ${
|
|
59
|
+
color: ${G.success};
|
|
60
60
|
white-space: nowrap;
|
|
61
61
|
`,Nt=r(Tt)`
|
|
62
62
|
width: ${a.sp3};
|
|
@@ -68,7 +68,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
68
68
|
`,Xt=r.div`
|
|
69
69
|
margin-bottom: ${a.sp6};
|
|
70
70
|
width: 90%;
|
|
71
|
-
`,
|
|
71
|
+
`,Zt=r.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
align-items: center;
|
|
74
74
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -77,7 +77,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
77
77
|
background-color: ${e=>e.theme.colors.grey3};
|
|
78
78
|
border-bottom-right-radius: ${a.sp1};
|
|
79
79
|
border-bottom-left-radius: ${a.sp1};
|
|
80
|
-
`,
|
|
80
|
+
`,qt=r.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: row;
|
|
83
83
|
align-items: center;
|
|
@@ -106,28 +106,28 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
106
106
|
margin: 0 ${a.sp2};
|
|
107
107
|
background-color: ${e=>e.theme.colors.grey1};
|
|
108
108
|
border-radius: 50%;
|
|
109
|
-
`,
|
|
109
|
+
`,Gt=r.div`
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
112
112
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
113
113
|
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
114
|
-
`,
|
|
114
|
+
`,Kt=r(Ze)`
|
|
115
115
|
color: ${e=>e.theme.colors.hero};
|
|
116
|
-
`,Jt=r(
|
|
116
|
+
`,Jt=r(yt)`
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
width: 12px;
|
|
119
119
|
height: 12px;
|
|
120
120
|
min-width: 12px;
|
|
121
121
|
min-height: 12px;
|
|
122
122
|
color: ${e=>e.theme.colors.hero};
|
|
123
|
-
`,
|
|
123
|
+
`,Ht=r(Ct)`
|
|
124
124
|
cursor: pointer;
|
|
125
125
|
width: 12px;
|
|
126
126
|
height: 12px;
|
|
127
127
|
min-width: 12px;
|
|
128
128
|
min-height: 12px;
|
|
129
129
|
color: ${e=>e.theme.colors.hero};
|
|
130
|
-
`,
|
|
130
|
+
`,Qt=r.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-direction: column;
|
|
133
133
|
width: 100%;
|
|
@@ -170,7 +170,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
170
170
|
display: flex;
|
|
171
171
|
flex-grow: ${e=>p.controllerWrapperFlex.value(e.size)};
|
|
172
172
|
align-items: flex-start;
|
|
173
|
-
`,ta=r(
|
|
173
|
+
`,ta=r(We)`
|
|
174
174
|
cursor: pointer;
|
|
175
175
|
color: ${e=>e.theme.colors.hero};
|
|
176
176
|
width: ${a.sp4};
|
|
@@ -179,7 +179,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
179
179
|
&:hover {
|
|
180
180
|
color: ${e=>e.theme.colors.primary};
|
|
181
181
|
}
|
|
182
|
-
`,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,aa=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:
|
|
182
|
+
`,ne={navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(16,40,56),containerPaddingRight:new c(16,40,56),successContentMargin:new c(o[3],o[12]),buttonTrayGap:new c(o[4],o[5])},D=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList,aa=({transferDetails:e,isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:y,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:K,onFetchLinkTokenClick:R,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:J,setCurrentDrawerContent:H,clearReviewTransferDetail:i,onReviewClick:E,setIsCalculatorOpen:Y,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:W})=>{const x=de(),z=e.reviewTransferDetail,V=e.transferDetailLocalData.transferFrom?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount",N=()=>e.transferDetailLocalData.transferFrom?.id!=null||e.transferDetailLocalData.transferTo?.id!=null||e.transferDetailLocalData.amount.amount>0;return t.jsx(oa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Re,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Ee,{windowSize:x,children:t.jsx(Ie,{"data-testid":A("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(sa,{windowSize:x,children:[t.jsx(it,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(ia,{children:V?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Me,{children:q("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.internal.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.internal.transferSuccessMsgMidfix2,`"${e.transferDetailLocalData.transferTo?.label}".`]}):t.jsxs(t.Fragment,{children:[D.transferDrawer.external.transferSuccessMsgPrefix,t.jsx(Me,{children:q("0,0.[00]",e.transferDetailLocalData.amount)}),D.transferDrawer.external.transferSuccessMsgMidfix,`"${e.transferDetailLocalData.transferFrom?.label}"`,D.transferDrawer.external.transferSuccessMsgMidfix1,`"${e.transferDetailLocalData.transferTo?.label}".`,z.reviewTransferMoney.isShowDailyAchLimitWarning?null:D.transferDrawer.external.transferSuccessMsgMidfix2]})}),t.jsxs(la,{windowSize:x,children:[t.jsx(Ce,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":A("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),W(0),Y(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(Ce,{variant:"primary",label:D.transferDrawer.backToChecking,"data-testid":A("back-to-checking-button"),onClick:()=>{l("Back to Checking","Transfer Success"),S?.()},style:{minWidth:200}})]})]})]}):_?t.jsx(lt,{transferDetails:e,setCurrentDrawerContent:H,setShowReviewContent:J,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Re,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Ee,{windowSize:x,children:t.jsx(Ie,{"data-testid":A("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ca,{windowSize:x,children:D.transferDrawer.title}):t.jsx(da,{children:D.transferDrawer.title}),x==="small"?t.jsx(na,{children:D.transferDrawer.subTitle}):t.jsx(ra,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(Lt,{isCalculatorOpen:n,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,onBackClick:K,onSaveChangesToLocalStore:y,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:R,onReviewClick:E,setIsCalculatorOpen:Y,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:W,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),N()?t.jsx(we,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ke(Ge),helperStyle:{paddingTop:a.sp0,paddingBottom:a.sp0},primaryBtn:{label:I.getLocalizedStrings().common.review,isLoading:z.fetchState==="In-Progress"},cancelBtn:{label:D.transferDrawer.cancelBtn,onClick:()=>{l("Cancel","Amount Details"),S?.()}}}):null]})})},ra=r(ue)`
|
|
183
183
|
color: ${e=>e.theme.colors.hero};
|
|
184
184
|
`,na=r($e)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -223,7 +223,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
223
223
|
padding: ${e=>`${ne.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${a.sp0}`};
|
|
224
224
|
z-index: 2;
|
|
225
225
|
background-color: ${e=>e.theme.colors.grey4};
|
|
226
|
-
`,Ie=r(
|
|
226
|
+
`,Ie=r(We)`
|
|
227
227
|
cursor: pointer;
|
|
228
228
|
color: ${e=>e.theme.colors.hero};
|
|
229
229
|
width: ${a.sp4};
|
|
@@ -241,7 +241,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
241
241
|
color: ${e=>e.theme.colors.primary};
|
|
242
242
|
margin-top: ${a.sp3};
|
|
243
243
|
margin-bottom: ${a.sp2};
|
|
244
|
-
`,U={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},Oe="wireTransferDetailPage",_e=e=>`${e}_form`,ua=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,he=I.getLocalizedStrings().common,fa=e=>t.jsx(
|
|
244
|
+
`,U={accountRowLeftRightPadding:new c(o[3],o[3]),zeniAccountListPaddingBottom:new c(o[3],o[6]),navBarContainerPaddingXaxis:new c(10,19),containerPaddingLeft:new c(o[3],o[6],o[8]),containerPaddingRight:new c(o[3],o[6],o[8])},Oe="wireTransferDetailPage",_e=e=>`${e}_form`,ua=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,he=I.getLocalizedStrings().common,fa=e=>t.jsx(Ca,{color:St(e)}),pa=({depositAccountListView:e,setCurrentDrawerContent:n,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:T,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Ve({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=de();return u.useEffect(()=>{const l=d.watch(()=>{const y=e.depositAccounts.find(C=>C.id===d.getValues("selectedAccountId"));T(y)});return()=>{l.unsubscribe()}}),e.fetchState!="Completed"?t.jsx(wt,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ma,{windowSize:f,children:[t.jsx(Ta,{windowSize:f,children:t.jsx(De,{style:{marginTop:a.sp1},title:he.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(ba,{"data-testid":A("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),n("achTransfer")}})})}),t.jsx(ya,{windowSize:f,children:ua.selectYour}),t.jsx(Ne,{...d,children:t.jsx("form",{id:_e(Oe),onSubmit:d.handleSubmit(()=>{w("Next","Select Account for Split Transfer"),$(!0)}),children:t.jsx(Da,{windowSize:f,children:e.depositAccounts.map((l,y)=>t.jsx($a,{isClickEnabled:!0,windowSize:f,"data-testid":A("deposit-account-click",l.id),onClick:()=>d.setValue("selectedAccountId",l.id),children:t.jsxs(ha,{children:[t.jsx(xt,{name:"selectedAccountId",id:l.id,value:l.id,radioSize:"small",style:{marginRight:8}}),fa(y),t.jsxs(ga,{children:[t.jsx(xa,{windowSize:f,children:l.accountName}),t.jsx(wa,{children:q("0,0[.]00",l.accountBalance?.available)})]})]})},l.id))})})})]}),g!=null?t.jsx(we,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:_e(Oe),cancelBtn:{label:he.cancel,onClick:()=>{w("Cancel","Select Account for Split Transfer"),n("achTransfer")},style:{width:93}},primaryBtn:{label:he.next,style:{width:93}}}):null]})},ma=r.div`
|
|
245
245
|
height: auto;
|
|
246
246
|
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
247
247
|
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
@@ -257,7 +257,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
257
257
|
overflow: hidden;
|
|
258
258
|
position: relative;
|
|
259
259
|
top: 2px;
|
|
260
|
-
`,wa=r(
|
|
260
|
+
`,wa=r(Ze)`
|
|
261
261
|
color: ${e=>e.theme.colors.grey1};
|
|
262
262
|
position: relative;
|
|
263
263
|
top: -${a.sp1};
|
|
@@ -286,7 +286,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
286
286
|
}
|
|
287
287
|
`,Da=r.div`
|
|
288
288
|
padding-bottom: ${e=>U.zeniAccountListPaddingBottom.valuePx(e.windowSize)};
|
|
289
|
-
`,ba=r(
|
|
289
|
+
`,ba=r(qe)`
|
|
290
290
|
cursor: pointer;
|
|
291
291
|
color: ${e=>e.theme.colors.hero};
|
|
292
292
|
width: ${a.sp4};
|
|
@@ -305,10 +305,10 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
305
305
|
padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${a.sp0}`};
|
|
306
306
|
z-index: 2;
|
|
307
307
|
background-color: ${e=>e.theme.colors.grey4};
|
|
308
|
-
`,
|
|
308
|
+
`,ya=r(xe)`
|
|
309
309
|
color: ${e=>e.theme.colors.primary};
|
|
310
310
|
padding: ${a.sp3} ${a.sp0} ${a.sp5} ${a.sp0};
|
|
311
|
-
`,
|
|
311
|
+
`,Ca=r(vt)`
|
|
312
312
|
min-width: ${a.sp5};
|
|
313
313
|
width: ${a.sp5};
|
|
314
314
|
height: ${a.sp5};
|
|
@@ -323,7 +323,7 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
323
323
|
height: auto;
|
|
324
324
|
padding: ${e=>`${a.sp0} ${L.pageContentPaddingLeftRight.valuePx(e.windowSize)}`};
|
|
325
325
|
margin-bottom: auto;
|
|
326
|
-
`,Pa=r(
|
|
326
|
+
`,Pa=r(qe)`
|
|
327
327
|
cursor: pointer;
|
|
328
328
|
color: ${e=>e.theme.colors.hero};
|
|
329
329
|
width: ${a.sp4};
|
|
@@ -352,11 +352,11 @@ import{j as t,X as de,_ as A,gQ as it,B as I,a0 as Z,K as ye,g_ as lt,i as We,a4
|
|
|
352
352
|
color: ${e=>e.theme.colors.primary};
|
|
353
353
|
padding: ${a.sp3} ${a.sp0} ${a.sp2} ${a.sp0};
|
|
354
354
|
margin: ${e=>`${a.sp0} ${L.pageTitleMarginXAxis.valuePx(e.windowSize)} `};
|
|
355
|
-
`,Fa=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:T,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[C
|
|
355
|
+
`,Fa=({zeniAccountsConfigDetail:e,depositAccountListView:n,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:T,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[y,C]=u.useState(!1),[S,F]=u.useState(n.depositAccounts.find(M=>M.id===T));return y&&S!=null?t.jsx(va,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(pa,{depositAccountListView:n,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ga=({transferDetails:e,zeniAccountsConfigDetail:n,depositAccountListView:g,maxInsuredAmount:$,currentTenant:T,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:y,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:K,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,clearReviewTransferDetail:H,onFetchLinkTokenClick:i,plaidConnectionDetails:E})=>{const[Y,j]=u.useState(!1),[m,v]=u.useState(!1),[W,x]=u.useState(0),[z,V]=u.useState(0),[N,Q]=u.useState(0),oe=()=>{const X=(ee,ie)=>y.trackTransferBetweenAccountsFormClicked(ee,ie,e.transferDetailLocalData.transferFrom?.label,e.transferDetailLocalData.transferTo?.label,e.transferDetailLocalData.amount.amount,e.reviewTransferDetail.reviewTransferMoney.isShowDailyAchLimitWarning,e.reviewTransferDetail.reviewTransferMoney.transferSchedules.length,e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>n.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(aa,{transferDetails:e,isCalculatorOpen:Y,showAnnualYieldEarned:m,transferAmount:W,yieldEarned:z,totalBalance:N,zeniAccountsConfigDetail:n,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:R,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:J,onFetchLinkTokenClick:i,plaidConnectionDetails:E,setCurrentDrawerContent:C,clearReviewTransferDetail:H,onReviewClick:K,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:V,setTotalBalance:Q,maxInsuredAmount:$}):t.jsx(Fa,{zeniAccountsConfigDetail:n,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:T,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:R})};return t.jsx(Ma,{children:oe()})},Ma=r.div`
|
|
356
356
|
display: flex;
|
|
357
357
|
flex-direction: column;
|
|
358
358
|
background-color: ${e=>e.theme.colors.grey4};
|
|
359
359
|
overflow-x: hidden;
|
|
360
360
|
height: 100%;
|
|
361
361
|
width: 100%;
|
|
362
|
-
`;export{
|
|
362
|
+
`;export{Ga as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as C,u as M,
|
|
1
|
+
import{X as C,u as M,d2 as Ne,j as t,M as L,a0 as E,bs as ae,aV as Ye,f as ie,_ as W,c as Ke,o as i,v as k,g as w,b4 as Ve,C as u,cO as Q,Q as B,l as F,q as h,gQ as le,as as de,av as ce,au as he,at as pe,b7 as Fe,be as Le,a6 as Me,w as Ee,fk as We,gk as Ge,K as Ue,e as A,af as Je,iB as Xe,jc as Qe,az as _e,eE as qe,d4 as Ze,f0 as et,aj as tt,bT as it,ia as ot,ib as rt,kc as at,bl as st,m as G,bY as xe,id as nt,b$ as lt,ie as dt,ig as ct}from"./index-DPgPe6wO.js";import{b as $,n as o,f as ht,j as ge}from"./vendor-CnQcJ2Lu.js";import{s as pt}from"./commonDimensions-DtXIXXfP-BDgsLUKt.js";import{g as me}from"./BoxItem-BtIxBKUQ-CamgFDpr.js";import{l as se,d as xt}from"./treasuryColorHelper-Cv4RwMTx-CPKgsqqw.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CJJQqrcA.js";import{o as mt}from"./shield-DOlUxcFf-BCUrujod.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ne=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:ne.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},yt={key:"date",value:ne.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},ft={key:"amount",value:ne.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new u(h[0],h[4]),headerLastColumnRightPadding:new u(h[3],h[11]),headerLastColumnBottomPadding:new u(h[0],h[4]),headerLastColumnLeftPadding:new u(h[3],h[11]),headerHeight:new u(dt,ct),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:s}){const c=M(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const n of p)n.key===r.sortKey?n.sortOrder=r.sortOrder:n.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,n)=>{let m=n;r.sortKey===p&&(m=n==="ascending"?"descending":"ascending"),s(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(n=>n.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(st,{title:f.sortBy,placeholder:f.sortBy,pickerValues:j,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:p=>{d(p,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(G,{children:p.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:p,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===p.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const $t=ht.memo(wt),jt=o.div`
|
|
2
2
|
top: ${i.sp0};
|
|
3
3
|
left: ${i.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -95,14 +95,14 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
95
95
|
cursor: pointer;
|
|
96
96
|
gap: 5px;
|
|
97
97
|
color: ${e=>e.theme.colors.primary};
|
|
98
|
-
`,
|
|
98
|
+
`,U={containerPaddingLeft:new u(h[3],h[4]),containerPaddingRight:new u(h[2],h[3]),containerPaddingTop:new u(h[2],h[3]),containerPaddingBottom:new u(h[2],h[3])};function Mt({data:e,boxType:r}){const{description:s,amount:c,status:l,date:a}=e,y=E("0,0.00",c),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),j=x[0].width,f=x[1].width,p=x[2].width,n=xt(l);if(d==="small"){const b=t.jsx(Kt,{children:t.jsxs(Vt,{children:[t.jsxs(Ft,{children:[t.jsxs(Wt,{children:[t.jsx(fe,{}),t.jsx(Gt,{children:t.jsx(Ut,{children:t.jsxs(Jt,{children:[s,l!=null?t.jsxs(t.Fragment,{children:[t.jsx(Xt,{}),t.jsx(Qt,{color:n?.color,children:n?.value})]}):null]})})})]}),t.jsx(_t,{children:t.jsx(qt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(Zt,{children:t.jsx($e,{children:y})})})]})});return t.jsx(me,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(At,{windowSize:d,children:[t.jsxs(Ot,{windowSize:d,width:j,children:[t.jsx(fe,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:s}),l!=null?t.jsxs(It,{windowSize:d,children:[t.jsx(Yt,{}),t.jsx(Nt,{color:n?.color,children:n?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:f,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(Bt,{windowSize:d,width:p,children:t.jsx($e,{children:y})})]});return t.jsx(me,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const At=o.div`
|
|
99
99
|
width: 100%;
|
|
100
100
|
display: flex;
|
|
101
101
|
background-color: ${e=>e.theme.colors.grey5};
|
|
102
|
-
padding-left: ${e=>
|
|
103
|
-
padding-right: ${e=>
|
|
104
|
-
padding-top: ${e=>
|
|
105
|
-
padding-bottom: ${e=>
|
|
102
|
+
padding-left: ${e=>U.containerPaddingLeft.valuePx(e.windowSize)};
|
|
103
|
+
padding-right: ${e=>U.containerPaddingRight.valuePx(e.windowSize)};
|
|
104
|
+
padding-top: ${e=>U.containerPaddingTop.valuePx(e.windowSize)};
|
|
105
|
+
padding-bottom: ${e=>U.containerPaddingBottom.valuePx(e.windowSize)};
|
|
106
106
|
box-shadow: ${e=>e.theme.mode==="dark"?`${w.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${w.dropShadowNormalLight}`};
|
|
107
107
|
border-radius: ${i.sp2};
|
|
108
108
|
justify-content: space-between;
|
|
@@ -158,7 +158,7 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
158
158
|
display: flex;
|
|
159
159
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
160
160
|
align-items: center;
|
|
161
|
-
`,Nt=o(
|
|
161
|
+
`,Nt=o(G)`
|
|
162
162
|
color: ${e=>e.color};
|
|
163
163
|
-webkit-box-orient: vertical;
|
|
164
164
|
-webkit-line-clamp: 1;
|
|
@@ -186,34 +186,34 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
186
186
|
box-shadow: ${e=>e.theme.mode==="dark"?`${w.dropShadowNormalDark} ${i.sp0} 2px ${i.sp1}`:`${i.sp0} 2px ${i.sp1} ${w.dropShadowNormalLight}`};
|
|
187
187
|
border-radius: ${i.sp2};
|
|
188
188
|
gap: ${i.sp1};
|
|
189
|
-
`,
|
|
189
|
+
`,Vt=o.div`
|
|
190
190
|
display: flex;
|
|
191
191
|
width: 100%;
|
|
192
192
|
justify-content: space-between;
|
|
193
193
|
align-items: flex-start;
|
|
194
|
-
`,
|
|
194
|
+
`,Ft=o.div`
|
|
195
195
|
display: flex;
|
|
196
196
|
flex-direction: column;
|
|
197
197
|
flex: 1;
|
|
198
198
|
min-width: 0;
|
|
199
199
|
max-width: 60%;
|
|
200
|
-
`,
|
|
200
|
+
`,Et=o.div`
|
|
201
201
|
display: flex;
|
|
202
202
|
flex-direction: column;
|
|
203
203
|
align-items: flex-end;
|
|
204
204
|
margin-left: ${i.sp4};
|
|
205
|
-
`,
|
|
205
|
+
`,Wt=o.div`
|
|
206
206
|
display: flex;
|
|
207
207
|
align-items: flex-start;
|
|
208
208
|
margin-bottom: ${i.sp1};
|
|
209
|
-
`,
|
|
209
|
+
`,Gt=o.div`
|
|
210
210
|
display: flex;
|
|
211
211
|
flex-direction: column;
|
|
212
212
|
align-items: flex-start;
|
|
213
213
|
margin-left: ${i.sp3};
|
|
214
214
|
flex: 1;
|
|
215
215
|
min-width: 0;
|
|
216
|
-
`,
|
|
216
|
+
`,Ut=o.div`
|
|
217
217
|
width: 100%;
|
|
218
218
|
`,Jt=o(A)`
|
|
219
219
|
display: block;
|
|
@@ -231,22 +231,22 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
231
231
|
margin-left: ${i.sp2};
|
|
232
232
|
margin-right: ${i.sp2};
|
|
233
233
|
vertical-align: middle;
|
|
234
|
-
`,
|
|
234
|
+
`,Qt=o(G)`
|
|
235
235
|
display: inline;
|
|
236
236
|
color: ${e=>e.color};
|
|
237
237
|
white-space: nowrap;
|
|
238
|
-
`,
|
|
238
|
+
`,_t=o.div`
|
|
239
239
|
display: flex;
|
|
240
240
|
align-items: center;
|
|
241
241
|
margin-top: ${i.sp1};
|
|
242
242
|
margin-left: ${i.sp6};
|
|
243
|
-
`,qt=o(
|
|
243
|
+
`,qt=o(G)`
|
|
244
244
|
color: ${e=>e.theme.colors.grey1};
|
|
245
245
|
text-align: left;
|
|
246
246
|
`,Zt=o.div`
|
|
247
247
|
display: flex;
|
|
248
248
|
align-items: flex-start;
|
|
249
|
-
`,re={lastListItemHeight:new u(200,128),rowWrapperMarginLeftRight:new u(h[3],h[8])},{spendManagement:{chargeCard:ei},common:ti}=L.getLocalizedStrings(),ii=({transactionList:e,uiState:r,fetchState:s,onReloadCards:c,onColumnSortConfigChanged:l})=>{const a=C(),y=()=>a!=="small"?at:pt+40,d=$.useRef(null);$.useEffect(()=>{d.current?.resetAfterIndex(0)},[a,d]);const g=()=>s==="Error"?t.jsxs(li,{children:[t.jsx(di,{onClick:c,"data-testid":
|
|
249
|
+
`,re={lastListItemHeight:new u(200,128),rowWrapperMarginLeftRight:new u(h[3],h[8])},{spendManagement:{chargeCard:ei},common:ti}=L.getLocalizedStrings(),ii=({transactionList:e,uiState:r,fetchState:s,onReloadCards:c,onColumnSortConfigChanged:l})=>{const a=C(),y=()=>a!=="small"?at:pt+40,d=$.useRef(null);$.useEffect(()=>{d.current?.resetAfterIndex(0)},[a,d]);const g=()=>s==="Error"?t.jsxs(li,{children:[t.jsx(di,{onClick:c,"data-testid":W("treasury-list-reload"),children:t.jsx(ci,{})}),t.jsx(hi,{children:ti.reloadPage.label})]}):s==="Completed"&&e.length===0?null:t.jsx(Oe,{children:t.jsx(pi,{windowSize:a,children:t.jsx(tt,{children:({height:x,width:j})=>t.jsx(it,{ref:d,height:x,itemCount:e.length,innerElementType:f=>oi(f,l,r,s),itemSize:y,estimatedItemSize:rt,itemKey:f=>e[f].id,width:j,overscanCount:ot,initialScrollOffset:0,children:f=>t.jsx(ai,{...f,transactionList:e})})})})});return t.jsx(ni,{fetchState:s,children:g()})},oi=(e,r,s,c)=>t.jsx(Ae,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:s.sortKey,sortOrder:s.sortOrder},fetchState:c}),Ae=$.forwardRef((e,r)=>{const{children:s,style:c,uiState:l,onColumnSortConfigChanged:a,...y}=e;return t.jsxs(Oe,{ref:r,style:{...c,width:"auto"},...y,children:[t.jsx($t,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(gi,{children:s})]})});Ae.displayName=ei.cardList.headerElementDisplayName;const ri=({transactionList:e,fetchState:r,uiState:s,onReloadCards:c,onColumnSortConfigChanged:l})=>t.jsx(ii,{transactionList:e,fetchState:r,onReloadCards:c,uiState:s,onColumnSortConfigChanged:l}),ai=({index:e,style:r,transactionList:s})=>{const c=C();return t.jsx(xi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(c),paddingRight:re.rowWrapperMarginLeftRight.valuePx(c)},className:"spend-management-list-item",children:t.jsx(si,{transaction:s[e]})},"listItem"+s[e].id)},si=({transaction:e})=>t.jsx(Mt,{data:e,boxType:"roundedBox"},e.id),ni=o.div`
|
|
250
250
|
margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
|
|
251
251
|
display: block;
|
|
252
252
|
height: 100%;
|
|
@@ -296,12 +296,12 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
296
296
|
position: relative;
|
|
297
297
|
width: auto;
|
|
298
298
|
height: 100%;
|
|
299
|
-
`,Oe=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>
|
|
299
|
+
`,Oe=o.div``,mi=["editPortfolio","taxLetter","statements","settings"],ui=e=>F.stringToUnionStrict(e??"",mi),J=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:J.editPortfolio},{value:"taxLetter",label:J.taxLetter},{value:"statements",label:J.statements},{value:"settings",label:J.settings}],yi=({onOptionSelection:e,onTransferClick:r})=>{const s=Ee(),c=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=s.loggedInUserRoleMap.treasury_user===!0||We(s),y=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=M();return t.jsxs(fi,{isTopAlign:!1,children:[t.jsx(Ge,{entity:"zeni_treasury",onOptionSelection:g=>{const x=ui(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?y:je}),!a&&(c==="small"?t.jsx(wi,{onClick:r}):t.jsx(Ue,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},fi=o.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
flex-direction: row;
|
|
302
302
|
align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
|
|
303
303
|
gap: ${i.sp3};
|
|
304
|
-
`,wi=o(
|
|
304
|
+
`,wi=o(Qe)`
|
|
305
305
|
min-width: ${i.sp4};
|
|
306
306
|
width: ${i.sp4};
|
|
307
307
|
height: ${i.sp4};
|
|
@@ -316,7 +316,7 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
316
316
|
background-color: ${e=>e.theme.colors.grey5};
|
|
317
317
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
318
318
|
background-color: ${e=>e.theme.colors.grey4};
|
|
319
|
-
`,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new u(h[3],h[8]),accountDetailHeaderPaddingBottom:new u(h[3],h[6]),accountDetailHeaderPaddingLeft:new u(h[3],h[8]),accountDetailHeaderPaddingTop:new u(h[3],h[6]),accountDetailContentMarginTop:new u(h[4],h[4]),areaChartHeight:new u(114,209),accountDetailHeaderGap:new u(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:Q,common:ji}=L.getLocalizedStrings(),Re=$.memo(({accountHistory:e})=>{const r=C(),s=M(),[c,l]=$.useState(),a=$.useMemo(()=>{const n=W.zeniDate(new Date().toISOString()),m=n.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const O=D/6;let R;return O<.5?R=0:O<.6?R=.9*((O-.5)/.09999999999999998):R=.9,{date:(D===6?n:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),y=$.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(n=>n.balance?.available.amount===0)),g=$.useMemo(()=>e.accountHistoryWithBalance.map(n=>({...n,date:n.date.toISOString()})),[e.accountHistoryWithBalance]),x=$.useCallback(n=>{const m=Array.isArray(n)?n:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=V("0,0[.]00",D),b=W.zeniDate(m[0].payload?.date??"").format(Q.visual.DMMMYYYYFormat)}return t.jsxs(Vi,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),j=$.useCallback(n=>{const m=n,{x:b,y:z}=m,{value:D}=m.payload;let O=!1;e.accountHistoryWithBalance.length>360&&(O=!0);const R=O?W.zeniDate(D).format(Q.visual.MMMformat):W.zeniDate(D).format(Q.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),f=$.useCallback(({cx:n,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(c?.x!==n||c?.y!==m)&&l({x:n,y:m}),t.jsx(Ei,{cx:n,cy:m,strokeWidth:1,r:h[1]})),[c]),p=$.useMemo(()=>{const n=e.accountHistoryWithBalance.length;return n<=0?0:n>360?Math.floor(n/12):Math.floor(n/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(Zi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:s.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:s.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:s.colors.grey3,tickSize:0,tick:n=>j(n),interval:y,padding:{right:h[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:s.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:s.colors.grey3,tickSize:0,reversed:!0,tick:n=>j(n),padding:{right:h[4]},interval:p}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(We,{position:c,content:({payload:n})=>x(n),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:f,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Re.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:s,onBackClick:c,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:y})=>{const d=C(),g=M(),x=Ne().analytics,j=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},f=e.accountSummary,p=$.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(Qi,{children:[t.jsx(_i,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:V("0,0[.]00",f?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:V("0,0[.]00",f?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:V("0,0[.]00",f?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(He,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ie,{})})})},[f,d]),n=t.jsx(yi,{onOptionSelection:j,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),y()}});return t.jsxs(Di,{children:[t.jsx(Ye,{title:v.title,onBackClick:c,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:n,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:p,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Re,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(Be,{treasuryDetail:e,onColumnSortConfigChanged:s}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Hi,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Ii,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})})]})},Be=$.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const s=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:s,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});Be.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:s,fundAllocation:c,fundsData:l})=>{const a=C(),[y,d]=$.useState(!1);return $.useEffect(()=>{y===!0&&setTimeout(()=>{d(!1)},800)},[y]),t.jsxs(Mi,{children:[t.jsxs(X,{children:[t.jsx(Fi,{children:t.jsxs(F,{children:[K(be.zeniAccountList.totalAvailableBalance),s("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(_,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(X,{children:[t.jsxs(F,{children:[K(v.insuredFunds),s("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(F,{children:K(v.insuredFundsAmount)})]}),r&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(F,{children:K(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(_,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(F,{children:[K(v.sevenDayYield)," ",s("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[Ci(c??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:s,hasAccountActivity:c})=>{const[l,a]=$.useState(!1),y=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:y,allTilesExpanded:l,children:r.map((x,j)=>{const f=l,p=se(j,d);return t.jsxs(io,{expanded:f,windowSize:y,children:[t.jsx(xo,{bgColor:p.headerBackground}),t.jsx(Si,{fund:x,fundIndex:j,fundAllocation:s!=null?s[x.fundCode]:0,hasAccountActivity:c}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Gi,{})]})}),f&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:j,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:s})=>{const c=M(),l=se(r,c),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(no,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[s,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(X,{children:e.fundCompanyName}),t.jsx(X,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(He,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ie,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:s,onHide:c})=>{const l=M(),{common:a,spendManagement:y}=L.getLocalizedStrings(),d=y.treasury.promoPage,g=se(s,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:Xe(r.fundSize,r.currencyCode)})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,j)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},j))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:c,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,r){let s=0;for(const c of r){const l=e[c.fundCode]??0;l>0&&c.yield!=null&&(s+=c.yield*l)}return Number((s/100).toFixed(2))}const K=e=>t.jsx(Ui,{children:e}),zi=o.div`
|
|
319
|
+
`,P={tickLabelText:new B("extraSmallRegular","smallRegular"),balanceIntegerStyles:new B("h5Regular","h3Regular"),integerStyles:new B("largeRegular","h6Regular"),decimalStyles:new B("standardRegular","standardRegular"),fundSummaryStyles:new B("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new B("standardMedium","largeMedium")},T={accountDetailHeaderPaddingRight:new u(h[3],h[8]),accountDetailHeaderPaddingBottom:new u(h[3],h[6]),accountDetailHeaderPaddingLeft:new u(h[3],h[8]),accountDetailHeaderPaddingTop:new u(h[3],h[6]),accountDetailContentMarginTop:new u(h[4],h[4]),areaChartHeight:new u(114,209),accountDetailHeaderGap:new u(18,100,184)},{spendManagement:{zeniAccounts:be,treasury:{overviewPage:v}},dateFormat:_,common:ji}=L.getLocalizedStrings(),Re=$.memo(({accountHistory:e})=>{const r=C(),s=M(),[c,l]=$.useState(),a=$.useMemo(()=>{const n=F.zeniDate(new Date().toISOString()),m=n.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const O=D/6;let R;return O<.5?R=0:O<.6?R=.9*((O-.5)/.09999999999999998):R=.9,{date:(D===6?n:m.clone().add(Math.round(D*b),"day")).toISOString(),value:R}})},[]),y=$.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(n=>n.balance?.available.amount===0)),g=$.useMemo(()=>e.accountHistoryWithBalance.map(n=>({...n,date:n.date.toISOString()})),[e.accountHistoryWithBalance]),x=$.useCallback(n=>{const m=Array.isArray(n)?n:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=E("0,0[.]00",D),b=F.zeniDate(m[0].payload?.date??"").format(_.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),j=$.useCallback(n=>{const m=n,{x:b,y:z}=m,{value:D}=m.payload;let O=!1;e.accountHistoryWithBalance.length>360&&(O=!0);const R=O?F.zeniDate(D).format(_.visual.MMMformat):F.zeniDate(D).format(_.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Yi,{windowSize:r,dy:20,dx:-25,children:R})})},[e.accountHistoryWithBalance.length,r]),f=$.useCallback(({cx:n,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(c?.x!==n||c?.y!==m)&&l({x:n,y:m}),t.jsx(Wi,{cx:n,cy:m,strokeWidth:1,r:h[1]})),[c]),p=$.useMemo(()=>{const n=e.accountHistoryWithBalance.length;return n<=0?0:n>360?Math.floor(n/12):Math.floor(n/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Ki,{children:d?t.jsxs(Zi,{children:[t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:a,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:s.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:s.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:s.colors.grey3,tickSize:0,tick:n=>j(n),interval:y,padding:{right:h[4]}}),t.jsx(he,{tick:!1,axisLine:!1,domain:[0,1]}),t.jsx(pe,{activeDot:void 0,fillOpacity:1,dot:!1,type:"monotone",dataKey:"value",stroke:s.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(eo,{children:t.jsx(qi,{children:v.noData})})]}):t.jsx(le,{height:T.areaChartHeight.value(r),width:"99%",children:t.jsxs(de,{data:g,margin:{top:0,right:0,bottom:0,left:0},children:[t.jsx("defs",{children:t.jsxs(ve,{id:"colorUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx(Se,{offset:"0%",stopColor:w.brandColorJade,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:w.brandColorJade,stopOpacity:.03})]})}),t.jsx(ce,{dataKey:"date",stroke:s.colors.grey3,tickSize:0,reversed:!0,tick:n=>j(n),padding:{right:h[4]},interval:p}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(Fe,{position:c,content:({payload:n})=>x(n),cursor:{strokeDasharray:"3",stroke:w.brandColorJade}}),t.jsx(pe,{activeDot:f,fillOpacity:1,dot:!1,type:"monotone",dataKey:"balance.available.amount",stroke:w.brandColorJade,fill:"url(#colorUv)"})]})})})});Re.displayName="AccountBalanceGraph";const Ko=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:s,onBackClick:c,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:y})=>{const d=C(),g=M(),x=Ne().analytics,j=m=>{x.trackTreasuryDashboardInteraction((()=>{switch(m){case"editPortfolio":return"Edit Portfolio";case"taxLetter":return"Tax Letter";case"statements":return"Statement";default:return"Settings"}})()),a(m)},f=e.accountSummary,p=$.useCallback(m=>{let b=null,z;switch(m){case"insuredFunds":b=t.jsx(Pe,{children:v.insuredFundsTooltip}),z="280px";break;case"totalBalance":b=t.jsxs(_i,{children:[t.jsx(Qi,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:E("0,0[.]00",f?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:E("0,0[.]00",f?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:E("0,0[.]00",f?.availableBalance)})]})]}),z="312px";break;case"sevenDayYield":b=t.jsx(Pe,{children:v.fundTile.sevenDayYieldTooltip}),z="464px";break;default:b=t.jsx(t.Fragment,{});break}return t.jsx(He,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(uo,{}):t.jsx(Ie,{})})})},[f,d]),n=t.jsx(yi,{onOptionSelection:j,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),y()}});return t.jsxs(Di,{children:[t.jsx(Ye,{title:v.title,onBackClick:c,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:n,source:"treasury"}),t.jsxs(Ti,{windowSize:d,children:[t.jsxs(Li,{windowSize:d,children:[t.jsx(bi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:p,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Re,{accountHistory:e.accountHistory})})]}),t.jsx(vi,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(Be,{treasuryDetail:e,onColumnSortConfigChanged:s}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Bi,{children:[t.jsx(Hi,{onClick:l,"data-testid":W("account-detail-reload"),children:t.jsx(Ni,{})}),t.jsx(Ii,{children:ji.reloadPage.label})]}):t.jsx($i,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})})]})},Be=$.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const s=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Pi,{windowSize:s,children:t.jsx(ri,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(zi,{})})});Be.displayName="TransactionListScreen";const bi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:s,fundAllocation:c,fundsData:l})=>{const a=C(),[y,d]=$.useState(!1);return $.useEffect(()=>{y===!0&&setTimeout(()=>{d(!1)},800)},[y]),t.jsxs(Mi,{children:[t.jsxs(X,{children:[t.jsx(Vi,{children:t.jsxs(V,{children:[K(be.zeniAccountList.totalAvailableBalance),s("totalBalance")]})}),t.jsx(Xi,{windowSize:a,children:e.accountSummary?.availableBalance?t.jsx(t.Fragment,{children:t.jsx(Q,{amount:e.accountSummary?.availableBalance,integerStyles:P.balanceIntegerStyles.styleObject(a),decimalStyles:P.balanceIntegerStyles.styleObject(a)})}):null})]}),t.jsxs(X,{children:[t.jsxs(V,{children:[K(v.insuredFunds),s("insuredFunds")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Q,{amount:{amount:e.accountSummary?.insuredFunds.amount??0,currencyCode:"USD",currencySymbol:"$"},integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})}),t.jsx(V,{children:K(v.insuredFundsAmount)})]}),r&&t.jsxs(Ai,{children:[t.jsxs(Ce,{children:[t.jsx(V,{children:K(be.common.totalYieldEarned)}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsx(Q,{amount:e.accountSummary?.totalYield,integerStyles:P.integerStyles.styleObject(a),decimalStyles:P.decimalStyles.styleObject(a)})})]}),t.jsxs(Ce,{children:[t.jsxs(V,{children:[K(v.sevenDayYield)," ",s("sevenDayYield")]}),t.jsx(q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Fi,{windowSize:a,children:[Ci(c??{},l),"%"]})})]})]})]})},vi=({analytics:e,fundsData:r,fundAllocation:s,hasAccountActivity:c})=>{const[l,a]=$.useState(!1),y=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(to,{windowSize:y,allTilesExpanded:l,children:r.map((x,j)=>{const f=l,p=se(j,d);return t.jsxs(io,{expanded:f,windowSize:y,children:[t.jsx(xo,{bgColor:p.headerBackground}),t.jsx(Si,{fund:x,fundIndex:j,fundAllocation:s!=null?s[x.fundCode]:0,hasAccountActivity:c}),!l&&t.jsx(oo,{children:t.jsxs(ao,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Ui,{})]})}),f&&t.jsxs(t.Fragment,{children:[t.jsx(Co,{}),t.jsx(ki,{analytics:e,fund:x,fundIndex:j,onHide:g})]})]},x.fundCode)})})},Si=({fund:e,fundIndex:r,fundAllocation:s})=>{const c=M(),l=se(r,c),a=C();return t.jsxs(ro,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(no,{children:t.jsxs(lo,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[s,"%"]})]})}),t.jsxs(co,{color:l.fundNameColor,children:[t.jsx(X,{children:e.fundCompanyName}),t.jsx(X,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(po,{children:[v.sevenDayYield,t.jsx(He,{style:{marginRight:"-20px",marginTop:"2px"},children:t.jsx(ae,{placement:a==="small"?"bottom":"bottom-end",data:v.fundTile.sevenDayYieldTooltip,variant:"small-description",maxWidth:"464px",children:t.jsx(Ie,{})})})]}),t.jsxs(ho,{windowSize:a,children:[e.yield,"%"]})]})})]})},ki=({analytics:e,fund:r,fundIndex:s,onHide:c})=>{const l=M(),{common:a,spendManagement:y}=L.getLocalizedStrings(),d=y.treasury.promoPage,g=se(s,l);return t.jsxs(t.Fragment,{children:[t.jsx(yo,{children:r.description}),t.jsxs(fo,{children:[t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:Xe(r.fundSize,r.currencyCode)})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(H,{children:[t.jsxs(I,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs(wo,{children:[r.compositions[0].investedIn," ",r.compositions[0].percentage,Array.isArray(r.compositions)&&r.compositions.length>0&&t.jsx(ae,{style:{textAlign:"left",display:"inline"},title:t.jsx($o,{children:r.compositions.map((x,j)=>t.jsxs(jo,{children:[t.jsx(bo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},j))}),children:t.jsxs(vo,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(go,{children:[t.jsxs(So,{onClick:()=>e.trackTreasuryProspectusClick(r.fundCompanyName+" "+r.fundName,r.fundCode,"Treasury Overview Page"),href:r.url,target:"_blank",rel:"noopener noreferrer",children:[d.asOf," ",r.asOfDate.format("MMM D, YYYY"),t.jsx(ko,{})]}),t.jsxs(mo,{onClick:c,children:[d.hide,t.jsx(Ji,{})]})]})]})};function Ci(e,r){let s=0;for(const c of r){const l=e[c.fundCode]??0;l>0&&c.yield!=null&&(s+=c.yield*l)}return Number((s/100).toFixed(2))}const K=e=>t.jsx(Gi,{children:e}),zi=o.div`
|
|
320
320
|
display: flex;
|
|
321
321
|
flex-direction: column;
|
|
322
322
|
align-items: center;
|
|
@@ -421,13 +421,13 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
421
421
|
flex: 1;
|
|
422
422
|
min-width: 140px;
|
|
423
423
|
flex-direction: column;
|
|
424
|
-
`,
|
|
424
|
+
`,Vi=o(k)`
|
|
425
425
|
display: flex;
|
|
426
426
|
color: ${e=>e.theme.colors.hero};
|
|
427
|
-
`,
|
|
427
|
+
`,Fi=o.div`
|
|
428
428
|
color: ${e=>e.theme.colors.success};
|
|
429
429
|
${e=>P.integerStyles.style(e.windowSize)};
|
|
430
|
-
`,
|
|
430
|
+
`,Ei=o.div`
|
|
431
431
|
display: flex;
|
|
432
432
|
align-items: center;
|
|
433
433
|
flex-direction: column;
|
|
@@ -439,17 +439,17 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
439
439
|
border-radius: ${i.sp1};
|
|
440
440
|
padding: ${i.sp0} ${i.sp2};
|
|
441
441
|
background-color: ${w.blackColor};
|
|
442
|
-
`,
|
|
442
|
+
`,Wi=o.circle`
|
|
443
443
|
stroke: ${e=>e.theme.colors.brandColorJade};
|
|
444
444
|
fill: ${e=>e.theme.colors.grey5};
|
|
445
445
|
`,ze=o(k)`
|
|
446
446
|
color: ${e=>e.isSublabel===!0?w.neutralGrey1Light:w.brandColorPearl};
|
|
447
|
-
`,
|
|
447
|
+
`,V=o.div`
|
|
448
448
|
display: flex;
|
|
449
449
|
gap: ${i.sp1};
|
|
450
|
-
`,
|
|
450
|
+
`,Gi=o(k)`
|
|
451
451
|
color: ${e=>e.theme.colors.hero};
|
|
452
|
-
`,
|
|
452
|
+
`,Ui=o(Je)`
|
|
453
453
|
height: 12px;
|
|
454
454
|
width: 12px;
|
|
455
455
|
margin-left: ${i.sp1};
|
|
@@ -474,11 +474,11 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
474
474
|
color: ${e=>e.theme.colors.primary};
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
`,
|
|
477
|
+
`,Qi=o(k)`
|
|
478
478
|
margin-bottom: ${i.sp2};
|
|
479
479
|
display: flex;
|
|
480
480
|
text-align: left;
|
|
481
|
-
`,
|
|
481
|
+
`,_i=o(k)`
|
|
482
482
|
padding: ${i.sp2} ${i.sp2};
|
|
483
483
|
color: ${e=>e.theme.colors.hero};
|
|
484
484
|
background: ${e=>e.theme.colors.black};
|
|
@@ -491,7 +491,7 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
491
491
|
color: ${e=>e.theme.colors.hero};
|
|
492
492
|
`,te=o.div`
|
|
493
493
|
color: ${w.primaryDark};
|
|
494
|
-
`,Ie=o(
|
|
494
|
+
`,Ie=o(Ve)`
|
|
495
495
|
width: ${i.sp3};
|
|
496
496
|
height: ${i.sp3};
|
|
497
497
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -577,7 +577,7 @@ import{X as C,u as M,d5 as Ne,j as t,B as L,a0 as V,bw as ae,aV as Ye,v as ie,_
|
|
|
577
577
|
flex-direction: row;
|
|
578
578
|
align-items: center;
|
|
579
579
|
gap: ${i.sp1};
|
|
580
|
-
`,lo=o(
|
|
580
|
+
`,lo=o(_e)`
|
|
581
581
|
display: flex;
|
|
582
582
|
gap: ${i.sp2};
|
|
583
583
|
`,Te=o.div`
|