@zeniai/web-cockpit-ui 1.14.24-dev → 1.14.25-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-DZv7I3Jm-zPHhT4Vj.js → ACHDetailsPage-Dnaajiit-DPQvVIrY.js} +1 -1
- package/dist/assets/{AIPerformancePage-DCq95N_N-DO8MzOBI.js → AIPerformancePage-Daw-cRXC-BnOl0sSl.js} +24 -24
- package/dist/assets/{AccountInfoPage-wfDS5ToF-BkRJ-lxL.js → AccountInfoPage-Dr_EV68J-Dy7B8Ixb.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js → AccountInfoPageContent-CC5MUG47-DaadDuh7.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js → AccountLockedInfoModal-wwzfemk2-D_gLp3zY.js} +2 -2
- package/dist/assets/{AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js → AccountReconDetailsDrawerPage-CxLOKPZL-DXp_tiIi.js} +5 -5
- package/dist/assets/{AccountRow-99zfxKet-iP3hUTyF.js → AccountRow-CE24vibs-BeG7a0dl.js} +31 -31
- package/dist/assets/{AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js → AccountsPromoCardStack-DIj8Lzw_-D6FaQOg3.js} +25 -25
- package/dist/assets/{AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js → AddAddressForCardDrawer-DkS25_j--r1d3UvOC.js} +1 -1
- package/dist/assets/{AddToWalletPage-CoW0Ppg4-WAfWgl1v.js → AddToWalletPage-Dea21gHA-Bp4QNxQm.js} +17 -17
- package/dist/assets/{AgingReportsPage-Dgi5oFl4-Cao6O7NF.js → AgingReportsPage-B0QeJFi3-sZ5UMlim.js} +1 -1
- package/dist/assets/{AllUserItems-6iESftSq-BBGiJxHd.js → AllUserItems-B4hCDMjV-gKfLm3-3.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-jEL75hOV-BLy4yEPM.js → ApAgingDetailPage-DaJoS0dH-DfkxWfAu.js} +3 -3
- package/dist/assets/{AppBasePage-CMHbFdBh-DTT6hgO7.js → AppBasePage-DssduDyW-DFTlQl-q.js} +5 -5
- package/dist/assets/{AppDrawerContent-NAyrnDCL-B7ak2Xor.js → AppDrawerContent-CbbgZnfp-DzI9LWAe.js} +6 -6
- package/dist/assets/{ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js → ApprovalRulesSettingsPage-BXmqQlwD-CWFKCLKr.js} +3 -3
- package/dist/assets/{ArAgingChart-DPrIHwSE-ym_zT_Xu.js → ArAgingChart-D6JqUDEG-AFSroOat.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CdNiD7uR-DccUXEIa.js → ArAgingDetailPage-DsmlwAqB--L9cmpiU.js} +1 -1
- package/dist/assets/{AttachmentView-Cmh726Zl-C82E74gy.js → AttachmentView-C1-yT0s8-CT_a09u3.js} +6 -6
- package/dist/assets/{BankAccountSection-jRnEB-Ut-BpoXdxMl.js → BankAccountSection-Cb6aph-a-DuZ4WmNC.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-KznYA-cf-CV3aOKhB.js → BankAccountWarningSection-EhX6uury-BPk65Kcm.js} +18 -18
- package/dist/assets/{BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js → BankConnectionsSettingsPage-CM5grE5E-kW8remzx.js} +9 -9
- package/dist/assets/{BillDetailPage-glKjF2MJ-CxnS8ehW.js → BillDetailPage-BK_uvtAn-1i2teGn-.js} +7 -7
- package/dist/assets/BillPayApprovalRuleDetailPage-9iw179oG-DBwy8M8j.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js → BillPayApprovalRulesPage-CodIhk9Z-BxI29Egp.js} +7 -7
- package/dist/assets/BillPayPromoPage-CmIXJyPx-qo9MiUmN.js +84 -0
- package/dist/assets/{BillPaySetUpPage-UfM6FOqW-wZRanfNP.js → BillPaySetUpPage-A_oRpNoW-CzrXD8De.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BfMIxeqM-C_WtlbYK.js → BillingSettingsPage-BEDmZgpH-CExdBU0e.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js → BillsBulkReviewDrawerPage-BZhQ9qq5-CCCPnCXA.js} +1 -1
- package/dist/assets/{BoxItem-CIOib-WX-Cvut8WLk.js → BoxItem-7efiVHrX-gIWD7SzU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Czf-y16x-BBZA7C_w.js → BusinessVerificationPage-CGyAMZF_-M7hgZV6x.js} +8 -8
- package/dist/assets/CardNumberSubText-DWvfR19t-DE7est1t.js +21 -0
- package/dist/assets/{CashbackDetailPage-BOTxd8DW-CNmZsYqR.js → CashbackDetailPage-CtUV5555-CGUzig_d.js} +19 -19
- package/dist/assets/{ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js → ChargeCardDetailPage-DDh9vz3a-Cnl8i_PL.js} +23 -23
- package/dist/assets/{ChargeCardListPage-Q1zat_TQ-BbazZeau.js → ChargeCardListPage-D8cV_Pir-Cr7nCz19.js} +18 -18
- package/dist/assets/{ChargeCardListTable-CKH-EZW4-CiPC1KQt.js → ChargeCardListTable-DHS1cdle-DAwaOV_c.js} +19 -19
- package/dist/assets/ChargeCardPromoPage-CpOdwFtx-W_T6Yn6m.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js → ChargeCardSetupPage-sV183SET-D5ryWFlf.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js → ChargeCardStatementsPage-C5VALN0g-DYKxahz3.js} +6 -6
- package/dist/assets/ChargeCardUtils-aPC5GoNp-DNIL0uw_.js +1 -0
- package/dist/assets/{ChaseOverlay-IbWtzNzT-CiTCJc7A.js → ChaseOverlay-De4Qu9qP-B6ZR5Jtp.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-Bf9BNkbA-DtOLd0xX.js +206 -0
- package/dist/assets/{CollapsableReportTable-jOFcWQi9-BD7j44zD.js → CollapsableReportTable-C4NioPjf-CL8A5qpd.js} +109 -109
- package/dist/assets/{CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js → CompanyOfficerDetailsSection-BjkrtiV9-wJhKxYTD.js} +14 -14
- package/dist/assets/{CompanyPassportCard-BbJLMFqe-CAuk2TxY.js → CompanyPassportCard-CXFn-wF8-DFs13HCt.js} +6 -6
- package/dist/assets/{CompanyPassportPage-BwCMcjB9-C5l65FSQ.js → CompanyPassportPage-BDB3rjFV-q4ymY5oH.js} +9 -9
- package/dist/assets/{CompleteProfile-Dz4laW45-D0LCAfKu.js → CompleteProfile-trSw9pbM-C9tjupH9.js} +1 -1
- package/dist/assets/{ConfettiBurst-B2j3QxzW-BoOT7g5H.js → ConfettiBurst-DGVvcZr3-C4LVa8Qf.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-z2chPZUl-moxdaTde.js → CreateOrEditVendorPage-C9Mf_ICr-Gp1eqMoH.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js → CreditCardPaymentDrawerPage-DWLfJzPP-Bux3br_f.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js → CreditCardPaymentPlgSection-BDA8jYAa-Dyv79lbf.js} +13 -13
- package/dist/assets/{CurrencySelectField-CxNprN2u-CPSD5Bje.js → CurrencySelectField-BwDZkugY-CnGwREoZ.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js → CustomerOnboardingActivationPage-B5MfS1sv-Baeo1JJB.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-udfu9eI--BS2ZxOvL.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js → CustomerOnboardingDetailPageSkeleton-CMo7leFT-AMqD-6Q4.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js → CustomerOnboardingNoStepsPage-DRJaAZhA-iimuZEwJ.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js → CustomerOnboardingPage-BKk_PDqM-D-4x8Jow.js} +3 -3
- package/dist/assets/{CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js → CustomerOnboardingProductSuitePage-_Vl2g0gl-10ZLiwPM.js} +7 -7
- package/dist/assets/{Dashboard-BtcnzaY6-gJck50nw.js → Dashboard-els5FzHO-Dh7hNslD.js} +1 -1
- package/dist/assets/{DashboardReportPage-C6jLfLtF-BPfMWD5H.js → DashboardReportPage-BkqXGUF0-DT4CcRgQ.js} +27 -27
- package/dist/assets/{DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js → DashboardSidebarBackgroundAnimation-yg8GX_hV-CX2KQ6LO.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js → DepositAccTransactionItem-CjHyYNYu-RBBjBoNW.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-B1rERpKn-DzZA-c5-.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js → DomesticWireDetailsPage-CoKdnOHK-BHUXWz4M.js} +1 -1
- package/dist/assets/{DownloadOverlay-BcH72YTL-B8MaexAj.js → DownloadOverlay-F_OSkI0t-BVAyHat1.js} +6 -6
- package/dist/assets/{DrawerPage-CzHhh0IP-BIFSEwpr.js → DrawerPage-CKRgC8zD-D0TMwLtR.js} +10 -10
- package/dist/assets/{EditPeoplePage-Z5btEDax-BKTta_xp.js → EditPeoplePage-CbHzmCDq-DfkIM-kP.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js → EditReimbursementDetailPage-ChXC9rfg-5j-r9uid.js} +17 -17
- package/dist/assets/{EntityDetailPage-Bc4YVpPC-DWs1zPrx.js → EntityDetailPage-427PoMHb-DugrODtd.js} +3 -3
- package/dist/assets/{EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js → EntitySummarySection-bVBpyGBB-B2MApz9k.js} +9 -9
- package/dist/assets/ExpenseAutomationOverviewPage-DuVNFnJ1-DKgdA2WQ.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-EjI20a6v-rIac0d4o.js → ExpenseAutomationPage-Btw1vMsR-CWjy7SIj.js} +1 -1
- package/dist/assets/{ExpressPayPage-562vstqT-BTrZQzDN.js → ExpressPayPage-dxAJ34CZ-CQbAjueg.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js → FeaturePreviewPage-DV9L7b41-XD4D9byb.js} +1 -1
- package/dist/assets/{FollowStepsSection-D60JM8h_-WgnL9DSD.js → FollowStepsSection-DrwqT5qI-DLguenxm.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js → GlobalReviewListPage-B8GTsN3z-DEt1AOjp.js} +7 -7
- package/dist/assets/{HelpButton-hflpTkYP-BxxKYxfC.js → HelpButton-BdkhmROe-Bd84gRvW.js} +4 -4
- package/dist/assets/{InformationCardStack-BsxmscQq-CSrArWRb.js → InformationCardStack-B4kayaXA-jbXyNSEh.js} +4 -4
- package/dist/assets/{InsightsCardStack-5JDl2mCA-CZ5TshWK.js → InsightsCardStack-CtGUwH8B-C93opeZu.js} +9 -9
- package/dist/assets/InsightsSection-DLeJHy_5-CQC3yXku.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js → IntegrationsSettingsPage-V5CRVTE7-CujfgQ2i.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js → InternationalWireSwiftDetailsPage-YScZkZ3T-B4isfB0V.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js → InternationalWireVerificationPage-CU7nDSLB-57YsQsYb.js} +7 -7
- package/dist/assets/{InviteFormPage-D0QCEMkX-DZr12vmY.js → InviteFormPage-CuKrTHPL-D0pCRRCl.js} +17 -17
- package/dist/assets/{InvitePageListView-CVf8HrhY-cBhycZNO.js → InvitePageListView-UnErwZjA-B6fQ6u5F.js} +24 -24
- package/dist/assets/{InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js → InvitePeoplePage-2Wt38URi-BnjdFSAB.js} +2 -2
- package/dist/assets/{InvoiceUploadSection-BuwWumE2-CTijWOqK.js → InvoiceUploadSection-DBeEv7pl-D7U5cZZb.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js → IssueChargeCardPage-CtOVKu2u-BaMeYx1Q.js} +9 -9
- package/dist/assets/{LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js → LabeledAddressValue-fMxbPIcj-L294sEHK.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DLou-2Lm-30_LmoCw.js → LabeledAddressValueField-DlUmtYXY-Cs_gnXQQ.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js → LabeledControlledCheckBoxField-zGMeMXy8-CgAXI_Cv.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js → LabeledCreatableSingleSelectField-B2tnkBes-WTYRlYy4.js} +2 -2
- package/dist/assets/LabeledDocumentField-DIZb6TGh-BGGslw6p.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js → LabeledDropDownFormattedTextField-g9EUyLAN-C6fgQW4J.js} +5 -5
- package/dist/assets/{LabeledText-D4fC1Hz2-Cxv5m94v.js → LabeledText-DpHcCRTu-D7mPb_6F.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js → LabeledUserSingleSelectWithSubtitlesField-CxqD4p8b-D40nlXRv.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js → LabeledZeniRolesDropDownField-CCEWFs00-DoEA7vPs.js} +5 -5
- package/dist/assets/{LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js → LinkJETransactionPage-CHRrLxA5-DUc0uYck.js} +8 -8
- package/dist/assets/{LowBalancePopup-TCSP5zrD-BmN6CG0D.js → LowBalancePopup-Ciah5OLh-BrGyf1Jf.js} +2 -2
- package/dist/assets/{MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js → MagicLinkACHDetailsPage-DS3oJgLQ-V288YZUD.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js → MagicLinkDomesticWireDetailsPage-DKtf0MEV-Kf5NpYu0.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js → MagicLinkInternationalWireDetailsPage-CyrBo1eH-BQjhU1d6.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js → MagicLinkSuccessPage-Clyl0DAk-CRKqo-oj.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-BVmJnjIM-CauR-pM0.js +17 -0
- package/dist/assets/{MailingDetailsSection-DOuPh_kK-CJdFvtR9.js → MailingDetailsSection-Gr8nHYJX-Bb0nQJ4z.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Bn5picNg-BZadZTcq.js → MeetingCalenderPopup-Z8cw7xGj-CwGNacrF.js} +1 -1
- package/dist/assets/{Menu-D_vf2LDo-39KwK8wM.js → Menu-DdtklnLU-BpofGVyT.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js → MyBankConnectionsSettingsPage-6XMaaONC-CvUmwJnE.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js → MyPendingActivationChargeCardListPage-CycEPGif-BJj28ies.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-gPNoKP10-gCIICwqR.js → MyProfileSettingsPage-FPXg5BVk-DGPfsKal.js} +7 -7
- package/dist/assets/{NavBarWithPicker-BlYfbDi0-BiD5rNBH.js → NavBarWithPicker-C1RdmaCB-C8vggXa3.js} +3 -3
- package/dist/assets/{NavigationArrow-CQ_K0Bon-C-8VFiTg.js → NavigationArrow-BddVpdpR-DbkdAJbG.js} +1 -1
- package/dist/assets/{NavigationDots-CI0cjpQA-B6oVaxeu.js → NavigationDots-XsH5foe--BOOtSigy.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js → NewGlobalMerchantPage-BDl4sMXs-CBuZEijk.js} +4 -4
- package/dist/assets/{NoDataChart-Dg1_sU_O-flEThGvM.js → NoDataChart-DWgj32LB-BPsCyU00.js} +3 -3
- package/dist/assets/{NoDataTable-qTYBbL2H-BGrSHe_q.js → NoDataTable-CLJr9bOe-BrdyVD6V.js} +1 -1
- package/dist/assets/{NotFoundPage-DYjrSF7l-D7C6Z_Gh.js → NotFoundPage-UJYxc5Cc-D4p8kfwg.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DZHlnrbH-D8paihJx.js → NotificationSettingsPage-CrHnNMcu-Bg6vV-Qh.js} +11 -11
- package/dist/assets/NotificationsListConfig-BvqX-YNT-C3lBLq2n.js +1 -0
- package/dist/assets/{NotificationsPage-QgnztPHs-CnFUIBHp.js → NotificationsPage-z6CyuWlj-BwW1gi3t.js} +21 -21
- package/dist/assets/{OpExByVendorPage-_AMvFFwS-DGSt9CNm.js → OpExByVendorPage-imk8yOJ3-TtSwFlGK.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-CI9x-FUu.js → OverlayContainerPage-Bmu909Fo-BZWOYlah.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js → PandLWithForecastPage-DDS9ThKq-Df5zmkm_.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js → PaymentAccountSetupBillingAddressSection-Dtd3PnbX-DSXMtbLs.js} +8 -8
- package/dist/assets/{PeoplePage-DZr3Lusf-M76DhnJE.js → PeoplePage-x1LDFwDQ-Zd_bqkIV.js} +19 -19
- package/dist/assets/{PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js → PortfolioAllocationFormPage-hSjTvk25-ZQESLZ6G.js} +6 -6
- package/dist/assets/{PortfolioDetails-BH-sfG9j-CdKUfZw3.js → PortfolioDetails-B1dQC_Xa-ByVcQSW7.js} +5 -5
- package/dist/assets/{ProductsCarousel-C4J19mb--DcgR5jdw.js → ProductsCarousel-D9cvenZp-BWJI4cxP.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bj4SLu8_-CC7a127A.js → PromoBaseCards-nzemBKyd-CNE70VVz.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js → QBOConnectionDialog-Cdh8vSaY-COlqnmsO.js} +7 -7
- package/dist/assets/{QBOSetupSection-BCdoUjwK-BF2gwacX.js → QBOSetupSection-BWcvYjNb-nke4kL0N.js} +14 -14
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C_oUUTHb-Cq_kOO5b.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js → ReimbursementApprovalRulesPage-CMmYiBA--CrdMeZfY.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js → ReimbursementDetailPage-DHuJHhx2-BOxHjSFr.js} +10 -10
- package/dist/assets/{ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js → ReimbursementPromoPage-DyMGQ-p6-BrIO-u3b.js} +7 -7
- package/dist/assets/{ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js → ReimbursementSetUpPage-h61-hzK3-BiumEfPp.js} +2 -2
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js → ReimbursementsBulkReviewDrawerPage-Dwx-V4Bz-DvuE1U30.js} +1 -1
- package/dist/assets/{ReloadCard-DxJMY9If-DFVN_BWj.js → ReloadCard-DHExBNFX-DM0aXM9S.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-lMBROmrI-C57N0Ev_.js → ReportTableViewSelector-I-E8djHt-8CU2obFL.js} +8 -8
- package/dist/assets/{ReportsPage-DMYLnwc7-C986BuH8.js → ReportsPage-BME0CMeV-Bmq0qbx4.js} +5 -5
- package/dist/assets/{RevenueChart-DD8vb3zi-DI64DZjn.js → RevenueChart-0Wc-f_WH-DcVxD5xk.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js → ReviewDetailsPage-BmGAqycE-in95VKyl.js} +15 -15
- package/dist/assets/{ReviewOverlay-sqbjCjkE-BYmWnWTV.js → ReviewOverlay-NgbFy65i-DibK2Nxh.js} +7 -7
- package/dist/assets/{RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js → RoleWithToolTip-EJik-IDk-BzPBZfqT.js} +5 -5
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js → ScheduleDetailsFixedAssetsPage-D3gHdT8C-BJd1IKXv.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js → ScheduleDetailsPage-OwtRLzyh-DW6B52KA.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js → ScheduleSequenceTable-TPeNlVLG-ChBzLHB_.js} +50 -50
- package/dist/assets/{ScreenRoutes-CG3ALmQe.js → ScreenRoutes-DzY9NZif.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CDXmRiGQ-DykmFmYq.js → SetUpAccountSection-Cs6puvUd-Dhlo8Ufa.js} +16 -16
- package/dist/assets/{SetUpDefaultSection-VPie4JZS-CUUkgLvy.js → SetUpDefaultSection-B3K4uwNR-B18eEgx5.js} +4 -4
- package/dist/assets/{SignIn-9DfCxy9Q-D5TOW1KJ.js → SignIn-waypOYzb-C46Nnd60.js} +7 -7
- package/dist/assets/{SignInScreen-C5ZC9m_8.js → SignInScreen-CYIRNr4n.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js → SpendManagementListViewPage-DSgh7ish-BAVvhcJ2.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js → SpendManagementPerTabPage-DFR_RubK-CDWi9rmQ.js} +14 -14
- package/dist/assets/{SpendManagementSection-DGGOMGEz-BERrqLUW.js → SpendManagementSection-OISpkX-z-BJ53j2-y.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js → SpendMgmtSetupAccountSection-jAvWpgvm-CJIvPJ3w.js} +12 -12
- package/dist/assets/{StatementItem-1vBLASxl-Bg-WCzCW.js → StatementItem-GW12r1Iw-CJvbUqer.js} +5 -5
- package/dist/assets/StatementsPage-C7fma8fv-M1h2v7ej.js +58 -0
- package/dist/assets/{StatusSwitcher-efLzDuyw-yZjEoNnl.js → StatusSwitcher-DFTN_Xis-BPYWMG2w.js} +7 -7
- package/dist/assets/{SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js → SubTabSwitcher-BZxGbsNY-DslvQO7v.js} +7 -7
- package/dist/assets/{SummaryCard-BsPejHZG-DSp7yYcI.js → SummaryCard-BNLe-1HR-C_RfG6jc.js} +1 -1
- package/dist/assets/{TaskManagementPage-CkdITpbn-BnN3mtBv.js → TaskManagementPage-9ZENc76E-CE4s9qMu.js} +11 -11
- package/dist/assets/{TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js → TimeRangeSwitcher-Ccz3adIk-CsyW9hcg.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BmhH741X-Bq2UrAGM.js → TimeframeSwitcher-kDwlck-n-DwbTkb9h.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-DGsAhHA2-B5P9Cxhq.js +31 -0
- package/dist/assets/{TopExCard-DBuo1QUF-Bqy_yS0O.js → TopExCard-D_qKivD5-DDImpDJG.js} +7 -7
- package/dist/assets/{TopExDetailPage-CGPgaWRb-BefBmW9C.js → TopExDetailPage-Diptq28B-D5TEFrQN.js} +7 -7
- package/dist/assets/TransactionDetailPage-6PT_A8cy-BA99-Eyl.js +912 -0
- package/dist/assets/{TransactionList-DP9cEVya-Dnf5dIML.js → TransactionList-B5HwjwQ_-CXKBG0MM.js} +10 -10
- package/dist/assets/{TransactionListBig-B_s15U1P-DxO9dvuT.js → TransactionListBig-DIJl_L0P-B6wBk0g5.js} +16 -16
- package/dist/assets/{TransactionListPage-DpYLFl8A-CtiLL9up.js → TransactionListPage-CLY5ad85-BnXLO91d.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js → TransactionVendorDetailPage-Bm1jseAb-SlaBV7lN.js} +4 -4
- package/dist/assets/{TransferDrawerPage-CxdQzo0m-DrhEn9ys.js → TransferDrawerPage-C376Jj1t-CTODsEty.js} +31 -31
- package/dist/assets/{TreasuryOverviewPage-D7vqj60i-DA26_cse.js → TreasuryOverviewPage-9i9ft-2g-DXeo8ZrJ.js} +21 -21
- package/dist/assets/{TreasuryPromoPage-BuxEHMpT-BDwacXK1.js → TreasuryPromoPage-CKUSAyi9-CWpKX4Ov.js} +10 -10
- package/dist/assets/{TreasurySetupPage-BIfbbeL3-V_YXLN-n.js → TreasurySetupPage-Cor8zLR3-CBLdmPc2.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js → TreasuryStatementsPage-CteWlPmm-gyjWv12T.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js → TreasuryTaxLetterPage-CBeQAQFE-BUwspbw-.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js → TreasuryTransferOrReviewPage-CgochQAe-bc5ZSOJG.js} +37 -37
- package/dist/assets/{TrendChart-7kPgcETh-CZhHOMVt.js → TrendChart-BNjNpGGV-DeJ54QC4.js} +3 -3
- package/dist/assets/{TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js → TrendWithTransactions-DLq6FRIX-CmF8BV30.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js → UncategorizedAccountsMappingPage-CfRZdUo4-D3rE1qoU.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js → UnitIntegrationPage-DmWneokh-DK7To6Ke.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js → UploadAdditionalDocumentOverlay-Ck3jSIy3-B5jtbgfv.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js → Vendor2FAPopup-CpVKMC-V-DzVTm8mc.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js → VendorACHDetailsPage-CGZq9rHs-Cb3Eg4e2.js} +1 -1
- package/dist/assets/{VendorDetailPage-B9pWIvXP-p9O1B1Vq.js → VendorDetailPage-DjbJdkG0-BD_TM_IR.js} +17 -17
- package/dist/assets/{VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js → VendorDomesticWireDetailsPage-D-m_AY6V-DSr1i1UN.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js → VendorFiling1099EditablePage-BBQUHvZF-CQkAcjv9.js} +6 -6
- package/dist/assets/{VendorFirstReviewPage-ANhBsl69-D02KU5IA.js → VendorFirstReviewPage-BKiSfhh5-D6n53p2q.js} +12 -12
- package/dist/assets/{VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js → VendorInternationalWireDetailsPage-CbiTxo4--51iz2iZc.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js → VendorInternationalWireSwiftDetailsPage-gRVzJ9zM-BqqvVE2d.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BclWgEaB-DOMr50bF.js → VendorsAccountsSection-BvY35sKD-PIKLHY63.js} +2 -2
- package/dist/assets/{VerifyDevice-CRrOo66b-ZlA7gEbg.js → VerifyDevice-DvG46tbP-C_qTlqhh.js} +4 -4
- package/dist/assets/{VideoPopup-qS-ig_U0-VKyag34q.js → VideoPopup-BTi1tNaK-DDZF4fDp.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js → WarningsDrawerPage-CrY3Lv_X-CyET4uGb.js} +21 -21
- package/dist/assets/{ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js → ZeniAccountDetailPage-D0Sp-9r0-BxhU3RD9.js} +24 -24
- package/dist/assets/{ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js → ZeniAccountListViewPage-DE2S97vd-Cci7TkWe.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-D3E4bGUf-v477yzXX.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js → ZeniAccountPromoPage-qk4MGE20-D8g-1o6A.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js → ZeniAccountSetupPage-BvCOc6V4-SXAof7Nr.js} +3 -3
- package/dist/assets/{ZeniCopyright-rY1T9xhh-Dfov-yky.js → ZeniCopyright-DZEJD4DK-DFCIndJ-.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js +63 -0
- package/dist/assets/{analyticsHelper-B0L0ncmN.js → analyticsHelper-BxXohuM3.js} +1 -1
- package/dist/assets/{analyticsHelper-BcJgRhqY-D6z677ff.js → analyticsHelper-C4OJsqY1-DEUl6kM9.js} +1 -1
- package/dist/assets/{chartTypes-BoblEsVF-BVffEXCf.js → chartTypes-4WPzsIf3-TZwbMJ8c.js} +1 -1
- package/dist/assets/{commonDimensions-CFd7y7qU-C7Jvc2Ks.js → commonDimensions-Btr3Ruk2--EjhN8RD.js} +1 -1
- package/dist/assets/{detailCommon-MYixZ3RD-BFmVTLGA.js → detailCommon-BffITRe2-DyxxqlhA.js} +5 -5
- package/dist/assets/{downloadPdf-CgupyHRa-D9AEGU0d.js → downloadPdf-EaFUuw1_-CTrXJ5wG.js} +1 -1
- package/dist/assets/{index-B8OsEhOZ.js → index-B9FgmOrh.js} +1347 -1347
- package/dist/assets/{mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js → mapLoadingInProgressToTreeNode-Nh09VvTY-7rzf-GR1.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js → mapSectionWithAcOnlyToTreeNode-CqrS4-sA--1xO43Gq.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js → mapSpacerToTreeNode-BVsiguz2-Dg8tyVW2.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js → mapTimeframeBalancesToTreeNode-C6LIzL1r-CL44LvLk.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js → mapTimeframeBalancesToTreeNode-CHMw_ZJj-Bp4XrEqv.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js → mapTimeframeHeaderLoadingInProgressToTreeNode-vhz8vVqo-Bzd7AJ3d.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CndsNNsv-CWYFJv_O.js → toCOABalancesWithID-vlVs7Gn4-ccOvypAU.js} +1 -1
- package/dist/assets/{toChartData-B9eYLI57-CKqynvrs.js → toChartData-nXazR01S-D88QfXJq.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D4iDeX95-DVOhzALi.js → treasuryColorHelper-DqciQwbz-CiEpGb56.js} +1 -1
- package/dist/assets/{uploadAttachment-C2I6mBBB-CPoUzWwI.js → uploadAttachment-BQCLr45m-C_KMpfLC.js} +9 -9
- package/dist/assets/{uploadReceipts-dxsKhm9I-YtN4h-4H.js → uploadReceipts-dxsKhm9I-kOCmsgfk.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js +0 -27
- package/dist/assets/BillPayPromoPage-DGyWwW1t-B2E2k4g7.js +0 -84
- package/dist/assets/CardNumberSubText-B8CivrXd-CzHZkmhR.js +0 -21
- package/dist/assets/ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js +0 -222
- package/dist/assets/ChargeCardUtils-D4KmVUMt-Bgc7_40s.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +0 -66
- package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +0 -222
- package/dist/assets/InsightsSection-DsO5tfQL-CBUNqXt7.js +0 -27
- package/dist/assets/LabeledDocumentField-By7zV2VD-Deh87JH9.js +0 -41
- package/dist/assets/MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js +0 -17
- package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js +0 -26
- package/dist/assets/StatementsPage-cCluGN33-CUSb15rA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js +0 -31
- package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +0 -912
- package/dist/assets/ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4 as $e,o as a,C as c,a3 as Ye,L as dt,ao as ut,t as ft,c7 as De,i as be,p as fe,a2 as ce,f1 as pt,a as Xe,m as mt,ca as ht,ab as gt,a1 as wt,g as G,F as Ue,fa as ke,fb as Ae,fJ as xt,bB as ye,fE as $t,h3 as Dt,s as o,d1 as bt,bO as Je,bv as yt,cG as Tt,b6 as Ct,B as qe,f6 as St,ds as vt,bx as Ge,fd as kt,ff as At}from"./index-B8OsEhOZ.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js";import{r as Lt}from"./AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./downloadPdf-CgupyHRa-D9AEGU0d.js";import"./commonDimensions-CFd7y7qU-C7Jvc2Ks.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ze="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",He="transferDetailPage",ge=(e,r)=>`${e}.${r}`,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 zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:K}){const i=ue(),R=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[N,Y]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),E(),Y(!1),z(!1)},[E,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:U,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?U():z(!0)},[U,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&Y(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{N&&x&&U()},[N,U,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>U()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,U]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"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(Nt,{children:J("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(Ue,{...P,children:t.jsxs(Mt,{id:Ke(He),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,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:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,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:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.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(Jt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(qt,{windowSize:i,children:[t.jsx(Ht,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Gt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${J("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Ut,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Kt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${J("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ne,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?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(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
|
|
1
|
+
import{j as t,e as ue,$ as A,gU as lt,B as I,a0 as q,K as ve,h2 as ct,m as Ne,a4 as $e,o as a,C as c,a3 as Ye,T as dt,ao as ut,r as ft,c7 as De,w as be,s as fe,a2 as ce,f1 as pt,a as Xe,l as mt,ca as ht,ab as gt,a1 as wt,g as Z,F as Ue,fa as ke,fb as Ae,fJ as xt,bB as Te,fE as $t,h3 as Dt,q as o,d1 as bt,bO as qe,bv as Tt,cG as yt,b6 as Ct,k as Ge,f6 as St,ds as vt,bx as Ze,fd as kt,ff as At}from"./index-B9FgmOrh.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-CGrjDEO_-DqBN-dZT.js";import{r as Lt}from"./AccountInfoPageContent-CC5MUG47-DaadDuh7.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./downloadPdf-EaFUuw1_-CTrXJ5wG.js";import"./commonDimensions-Btr3Ruk2--EjhN8RD.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Je="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ke="transferDetailPage",ge=(e,r)=>`${e}.${r}`,He=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 zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:y,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:J,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:K,onReviewClick:H}){const i=ue(),R=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[N,Y]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),ye=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),E(),Y(!1),z(!1)},[E,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:U,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?U():z(!0)},[U,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&Y(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{N&&x&&U()},[N,U,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&K?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||ye!==ee||s)&&P.reset(Le(r,()=>U()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,ye,ee,X,me,pe,P,r,U]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};J(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(y(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),H())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:Z.heroLight}})})]})}):null,t.jsx(Nt,{children:q("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(Ue,{...P,children:t.jsxs(Mt,{id:He(Ke),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,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:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,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:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Je),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.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(qt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Gt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(Zt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(Te,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Ut,{})})]}),t.jsx(Jt,{windowSize:i}),t.jsx(Ht,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${q("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>y(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>y(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ne,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,T=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?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},Le=(e,r)=>({transferDetails:{[Je]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.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,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
padding: ${a.sp3} ${a.sp4};
|
|
20
|
-
background-color: ${
|
|
20
|
+
background-color: ${Z.importantLight};
|
|
21
21
|
border-radius: ${a.sp2};
|
|
22
22
|
`,Rt=n.div`
|
|
23
23
|
display: flex;
|
|
@@ -25,19 +25,19 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
25
25
|
`,It=n.div``,Ot=n(bt)`
|
|
26
26
|
width: ${a.sp4};
|
|
27
27
|
height: ${a.sp4};
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${Z.important};
|
|
29
29
|
`,_t=n.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
margin-left: ${a.sp2};
|
|
33
|
-
`,Wt=n(
|
|
34
|
-
color: ${
|
|
33
|
+
`,Wt=n(qe)`
|
|
34
|
+
color: ${Z.important};
|
|
35
35
|
`,Vt=n(fe)`
|
|
36
|
-
color: ${
|
|
37
|
-
`,Nt=n(
|
|
36
|
+
color: ${Z.important};
|
|
37
|
+
`,Nt=n(Tt)`
|
|
38
38
|
color: ${e=>e.theme.colors.primary};
|
|
39
39
|
margin: ${a.sp5} ${a.sp0} ${a.sp3} ${a.sp0};
|
|
40
|
-
`,je=n(
|
|
40
|
+
`,je=n(yt)`
|
|
41
41
|
border-radius: ${a.sp2};
|
|
42
42
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
43
43
|
`,Yt=n.div`
|
|
@@ -55,8 +55,8 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
55
55
|
margin-bottom: ${a.sp3};
|
|
56
56
|
margin-top: ${a.sp3};
|
|
57
57
|
white-space: pre-line;
|
|
58
|
-
`,ze=n(
|
|
59
|
-
color: ${
|
|
58
|
+
`,ze=n(qe)`
|
|
59
|
+
color: ${Z.success};
|
|
60
60
|
white-space: nowrap;
|
|
61
61
|
`,Ut=n(Ct)`
|
|
62
62
|
width: ${a.sp3};
|
|
@@ -65,10 +65,10 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
65
65
|
&:hover {
|
|
66
66
|
color: ${e=>e.theme.colors.primary};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,qt=n.div`
|
|
69
69
|
margin-bottom: ${a.sp6};
|
|
70
70
|
width: 90%;
|
|
71
|
-
`,
|
|
71
|
+
`,Gt=n.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,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,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
|
+
`,Zt=n.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: row;
|
|
83
83
|
align-items: center;
|
|
@@ -98,7 +98,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
98
98
|
color: ${e=>e.theme.colors.primary};
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Jt=n.div`
|
|
102
102
|
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
103
103
|
width: ${a.sp1};
|
|
104
104
|
height: ${a.sp1};
|
|
@@ -106,12 +106,12 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
106
106
|
margin: 0 ${a.sp2};
|
|
107
107
|
background-color: ${e=>e.theme.colors.grey1};
|
|
108
108
|
border-radius: 50%;
|
|
109
|
-
`,
|
|
109
|
+
`,Kt=n.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
|
+
`,Ht=n(Ge)`
|
|
115
115
|
color: ${e=>e.theme.colors.hero};
|
|
116
116
|
`,Qt=n(St)`
|
|
117
117
|
cursor: pointer;
|
|
@@ -179,7 +179,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
179
179
|
&:hover {
|
|
180
180
|
color: ${e=>e.theme.colors.primary};
|
|
181
181
|
}
|
|
182
|
-
`,re={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,ra=({transferDetails:e,isCalculatorOpen:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:
|
|
182
|
+
`,re={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,ra=({transferDetails:e,isCalculatorOpen:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,maxInsuredAmount:d,zeniAccountsConfigDetail:f,fireTrackTransferBetweenAccountsFormClicked:l,onSaveChangesToLocalStore:y,onTransferClick:C,onDismissClick:S,onAnotherTransferClick:F,onEstablishConnectionClick:M,onBackClick:J,onFetchLinkTokenClick:E,plaidConnectionDetails:O,showReviewContent:_,setShowReviewContent:K,setCurrentDrawerContent:H,clearReviewTransferDetail:i,onReviewClick:R,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V})=>{const x=ue(),z=e.reviewTransferDetail,N=e.transferDetailLocalData.transferFrom?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accType==="depositAccount",Y=()=>e.transferDetailLocalData.transferFrom?.id!=null||e.transferDetailLocalData.transferTo?.id!=null||e.transferDetailLocalData.amount.amount>0;return t.jsx(sa,{windowSize:x,children:e.fetchState==="Completed"?t.jsxs(Ie,{windowSize:x,isTransferCompleted:!0,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":A("cross-transfer-success-close-button"),onClick:()=>{l("Cross","Transfer Success"),S?.()}})}),t.jsxs(da,{windowSize:x,children:[t.jsx(lt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),t.jsx(la,{children:N?t.jsxs(t.Fragment,{children:[D.transferDrawer.internal.transferSuccessMsgPrefix,t.jsx(Re,{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(Re,{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(ca,{windowSize:x,children:[t.jsx(ve,{variant:"secondary",label:D.transferDrawer.anotherTransferBtn,"data-testid":A("another-transfer-button"),onClick:()=>{l("Another Transfer","Transfer Success"),V(0),W(!1),v(0),j(!1),F()},style:{minWidth:200}}),t.jsx(ve,{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(ct,{transferDetails:e,setCurrentDrawerContent:H,setShowReviewContent:K,onTransferClick:C,clearReviewTransferDetail:i,reviewTransferDetail:z,fireTrackTransferBetweenAccountsFormClicked:l}):t.jsxs(t.Fragment,{children:[t.jsxs(Ie,{windowSize:x,isTransferCompleted:!1,children:[t.jsx(Oe,{windowSize:x,children:t.jsx(_e,{"data-testid":A("cross-amount-details-close-button"),onClick:()=>{l("Cross","Amount Details"),S?.()}})}),x==="small"?t.jsx(ua,{windowSize:x,children:D.transferDrawer.title}):t.jsx(fa,{children:D.transferDrawer.title}),x==="small"?t.jsx(ia,{children:D.transferDrawer.subTitle}):t.jsx(oa,{children:D.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?t.jsx(zt,{isCalculatorOpen:r,showAnnualYieldEarned:g,transferAmount:$,yieldEarned:T,totalBalance:w,onBackClick:J,onSaveChangesToLocalStore:y,plaidConnectionDetails:O,transferDetails:e,zeniAccountsConfigDetail:f,onEstablishConnectionClick:M,onFetchLinkTokenClick:E,onReviewClick:R,setIsCalculatorOpen:W,setShowAnnualYieldEarned:j,setTransferAmount:m,setYieldEarned:v,setTotalBalance:V,fireTrackTransferBetweenAccountsFormClicked:l,maxInsuredAmount:d}):t.jsx(Ne,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Y()?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:He(Ke),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]})})},oa=n(fe)`
|
|
183
183
|
color: ${e=>e.theme.colors.hero};
|
|
184
184
|
`,ia=n(be)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -241,10 +241,10 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
241
241
|
color: ${e=>e.theme.colors.primary};
|
|
242
242
|
margin-top: ${a.sp3};
|
|
243
243
|
margin-bottom: ${a.sp2};
|
|
244
|
-
`,
|
|
244
|
+
`,G={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])},We="wireTransferDetailPage",Ve=e=>`${e}_form`,pa=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,we=I.getLocalizedStrings().common,ma=e=>t.jsx(va,{color:kt(e)}),ha=({depositAccountListView:e,setCurrentDrawerContent:r,selectedAccount:g,setShowWireAccountInfo:$,setSelectedAccount:T,fireTrackTransferBetweenAccountsFormClicked:w})=>{const d=Xe({mode:"all",reValidateMode:"onChange",defaultValues:{selectedAccountId:g?.id}}),f=ue();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($t,{fetchState:e.fetchState}):t.jsxs(t.Fragment,{children:[t.jsxs(ga,{windowSize:f,children:[t.jsx(Ca,{windowSize:f,children:t.jsx(Te,{style:{marginTop:a.sp1},title:we.navBar.back,enterDelay:600,placement:"bottom",children:t.jsx(ya,{"data-testid":A("select-zeni-account-back-button"),onClick:()=>{w("Back","Select Account for Split Transfer"),r("achTransfer")}})})}),t.jsx(Sa,{windowSize:f,children:pa.selectYour}),t.jsx(Ue,{...d,children:t.jsx("form",{id:Ve(We),onSubmit:d.handleSubmit(()=>{w("Next","Select Account for Split Transfer"),$(!0)}),children:t.jsx(Ta,{windowSize:f,children:e.depositAccounts.map((l,y)=>t.jsx(ba,{isClickEnabled:!0,windowSize:f,"data-testid":A("deposit-account-click",l.id),onClick:()=>d.setValue("selectedAccountId",l.id),children:t.jsxs(wa,{children:[t.jsx(Dt,{name:"selectedAccountId",id:l.id,value:l.id,radioSize:"small",style:{marginRight:8}}),ma(y),t.jsxs(xa,{children:[t.jsx(Da,{windowSize:f,children:l.accountName}),t.jsx($a,{children:q("0,0[.]00",l.accountBalance?.available)})]})]})},l.id))})})})]}),g!=null?t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},formId:Ve(We),cancelBtn:{label:we.cancel,onClick:()=>{w("Cancel","Select Account for Split Transfer"),r("achTransfer")},style:{width:93}},primaryBtn:{label:we.next,style:{width:93}}}):null]})},ga=n.div`
|
|
245
245
|
height: auto;
|
|
246
|
-
padding-left: ${e=>`${
|
|
247
|
-
padding-right: ${e=>`${
|
|
246
|
+
padding-left: ${e=>`${G.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
247
|
+
padding-right: ${e=>`${G.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
248
248
|
margin-bottom: auto;
|
|
249
249
|
`,wa=n.div`
|
|
250
250
|
display: flex;
|
|
@@ -257,7 +257,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
257
257
|
overflow: hidden;
|
|
258
258
|
position: relative;
|
|
259
259
|
top: 2px;
|
|
260
|
-
`,$a=n(
|
|
260
|
+
`,$a=n(Ge)`
|
|
261
261
|
color: ${e=>e.theme.colors.grey1};
|
|
262
262
|
position: relative;
|
|
263
263
|
top: -${a.sp1};
|
|
@@ -267,8 +267,8 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
267
267
|
text-transform: capitalize;
|
|
268
268
|
overflow: hidden;
|
|
269
269
|
`,ba=n.div`
|
|
270
|
-
padding-left: ${e=>
|
|
271
|
-
padding-right: ${e=>
|
|
270
|
+
padding-left: ${e=>G.accountRowLeftRightPadding.valuePx(e.windowSize)};
|
|
271
|
+
padding-right: ${e=>G.accountRowLeftRightPadding.valuePx(e.windowSize)};
|
|
272
272
|
background: ${e=>e.theme.colors.grey5};
|
|
273
273
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
274
274
|
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal} `};
|
|
@@ -284,9 +284,9 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
284
284
|
border-color: ${e=>e.theme.colors.primary};
|
|
285
285
|
color: ${e=>e.isClickEnabled?e.theme.colors.champion:e.theme.colors.hero};
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
288
|
-
padding-bottom: ${e=>
|
|
289
|
-
`,
|
|
287
|
+
`,Ta=n.div`
|
|
288
|
+
padding-bottom: ${e=>G.zeniAccountListPaddingBottom.valuePx(e.windowSize)};
|
|
289
|
+
`,ya=n(Ze)`
|
|
290
290
|
cursor: pointer;
|
|
291
291
|
color: ${e=>e.theme.colors.hero};
|
|
292
292
|
width: ${a.sp4};
|
|
@@ -302,7 +302,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
302
302
|
align-items: center;
|
|
303
303
|
width: 100%;
|
|
304
304
|
top: ${a.sp0};
|
|
305
|
-
padding: ${e=>`${
|
|
305
|
+
padding: ${e=>`${G.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${a.sp0}`};
|
|
306
306
|
z-index: 2;
|
|
307
307
|
background-color: ${e=>e.theme.colors.grey4};
|
|
308
308
|
`,Sa=n(De)`
|
|
@@ -315,7 +315,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
315
315
|
margin-right: ${a.sp2};
|
|
316
316
|
padding: 12px ${a.sp0};
|
|
317
317
|
box-sizing: content-box;
|
|
318
|
-
`,{common:{navBar:{back:ka}}}=I.getLocalizedStrings(),L={pageTitleMarginXAxis:new c(o[0],o[8]),navBarContainerPaddingXaxis:new c(10,19),pageContentPaddingLeftRight:new c(o[3],o[0]),navBarContainerMarginLeftRight:new c(o[0],o[8]),descriptionMarginLeftRight:new c(o[0],o[8]),accountInfoPageWrapperMarginLeft:new c(o[0],o[8]),accountInfoPageWrapperMarginRight:new c(o[0],o[5]),accountInfoPageWrapperMarginBottom:new c(o[5],o[8])},xe=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,Aa=({authParams:e,downloadAccountDetailEndPoint:r,depositAccount:g,zeniAccountsConfigDetail:$,currentTenant:
|
|
318
|
+
`,{common:{navBar:{back:ka}}}=I.getLocalizedStrings(),L={pageTitleMarginXAxis:new c(o[0],o[8]),navBarContainerPaddingXaxis:new c(10,19),pageContentPaddingLeftRight:new c(o[3],o[0]),navBarContainerMarginLeftRight:new c(o[0],o[8]),descriptionMarginLeftRight:new c(o[0],o[8]),accountInfoPageWrapperMarginLeft:new c(o[0],o[8]),accountInfoPageWrapperMarginRight:new c(o[0],o[5]),accountInfoPageWrapperMarginBottom:new c(o[5],o[8])},xe=I.getLocalizedStrings().spendManagement.zeniAccounts.zeniAccountList.transferDrawer,Aa=({authParams:e,downloadAccountDetailEndPoint:r,depositAccount:g,zeniAccountsConfigDetail:$,currentTenant:T,onDismissClick:w,fireTrackTransferBetweenAccountsFormClicked:d,setShowWireAccountInfo:f})=>{const l=ue();return t.jsxs(t.Fragment,{children:[t.jsxs(La,{windowSize:l,children:[t.jsx(za,{windowSize:l,children:t.jsx(Te,{title:ka,enterDelay:600,placement:"bottom",children:t.jsx(ja,{"data-testid":A("wire-transfer-account-info-back-button"),onClick:()=>{d("Back","Wire Transfer Details"),f(!1)}})})}),t.jsx(Ma,{windowSize:l,children:xe.wireInstruction.replace("__accountName__",g.accountName)}),t.jsx(Ba,{windowSize:l,children:t.jsx(Fa,{children:xe.wireTransferDescriptionLine1})}),t.jsx(Pa,{windowSize:l,children:t.jsx(Lt,{authParams:e,downloadAccountDetailEndPoint:r,currentTab:"wireDetails",zeniAccountsConfigDetail:$,currentTenant:T,depositAccount:g})})]}),t.jsx($e,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp3},cancelBtn:{label:""},primaryBtn:{label:xe.backToChecking,onClick:()=>{d("Back to Checking","Wire Transfer Details"),w()}},showCancel:!1,showPrimaryButton:!0})]})},Pa=n.div`
|
|
319
319
|
margin-left: ${e=>`${L.accountInfoPageWrapperMarginLeft.valuePx(e.windowSize)}`};
|
|
320
320
|
margin-right: ${e=>`${L.accountInfoPageWrapperMarginRight.valuePx(e.windowSize)}`};
|
|
321
321
|
margin-bottom: ${e=>`${L.accountInfoPageWrapperMarginBottom.valuePx(e.windowSize)}`};
|
|
@@ -323,7 +323,7 @@ import{j as t,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,a4
|
|
|
323
323
|
height: auto;
|
|
324
324
|
padding: ${e=>`${a.sp0} ${L.pageContentPaddingLeftRight.valuePx(e.windowSize)}`};
|
|
325
325
|
margin-bottom: auto;
|
|
326
|
-
`,ja=n(
|
|
326
|
+
`,ja=n(Ze)`
|
|
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,e as ue,$ as A,gU as lt,M as I,a0 as J,J as ve,h2 as ct,n as Ne,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
|
-
`,Ea=({zeniAccountsConfigDetail:e,depositAccountListView:r,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:
|
|
355
|
+
`,Ea=({zeniAccountsConfigDetail:e,depositAccountListView:r,downloadAccountDetailEndPoint:g,authParams:$,selectedAccountId:T,currentTenant:w,setCurrentDrawerContent:d,fireTrackTransferBetweenAccountsFormClicked:f,onDismissClick:l})=>{const[y,C]=u.useState(!1),[S,F]=u.useState(r.depositAccounts.find(M=>M.id===T));return y&&S!=null?t.jsx(Aa,{downloadAccountDetailEndPoint:g,authParams:$,currentTenant:w,zeniAccountsConfigDetail:e,depositAccount:S,onDismissClick:l,setShowWireAccountInfo:C,fireTrackTransferBetweenAccountsFormClicked:f}):t.jsx(ha,{depositAccountListView:r,setCurrentDrawerContent:d,selectedAccount:S,setShowWireAccountInfo:C,setSelectedAccount:F,fireTrackTransferBetweenAccountsFormClicked:f})},Ka=({transferDetails:e,zeniAccountsConfigDetail:r,depositAccountListView:g,maxInsuredAmount:$,currentTenant:T,showReviewContent:w,currentDrawerContent:d,downloadAccountDetailEndPoint:f,authParams:l,analytics:y,setCurrentDrawerContent:C,setShowReviewContent:S,onSaveChangesToLocalStore:F,onTransferClick:M,onReviewClick:J,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:K,clearReviewTransferDetail:H,onFetchLinkTokenClick:i,plaidConnectionDetails:R})=>{const[W,j]=u.useState(!1),[m,v]=u.useState(!1),[V,x]=u.useState(0),[z,N]=u.useState(0),[Y,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"&&r.zeniAccountsConfigDetail.depositProductConfig.depositProducts?.[0].range?.[1]!=null&&e.transferDetailLocalData.amount.amount>r.zeniAccountsConfigDetail.depositProductConfig.depositProducts[0].range[1]);return d==="achTransfer"?t.jsx(ra,{transferDetails:e,isCalculatorOpen:W,showAnnualYieldEarned:m,transferAmount:V,yieldEarned:z,totalBalance:Y,zeniAccountsConfigDetail:r,fireTrackTransferBetweenAccountsFormClicked:X,onSaveChangesToLocalStore:F,onTransferClick:M,onDismissClick:E,onAnotherTransferClick:O,onEstablishConnectionClick:_,onBackClick:K,onFetchLinkTokenClick:i,plaidConnectionDetails:R,setCurrentDrawerContent:C,clearReviewTransferDetail:H,onReviewClick:J,setShowReviewContent:S,showReviewContent:w,setIsCalculatorOpen:j,setShowAnnualYieldEarned:v,setTransferAmount:x,setYieldEarned:N,setTotalBalance:Q,maxInsuredAmount:$}):t.jsx(Ea,{zeniAccountsConfigDetail:r,depositAccountListView:g,selectedAccountId:e.transferDetailLocalData.transferTo?.id,currentTenant:T,downloadAccountDetailEndPoint:f,authParams:l,fireTrackTransferBetweenAccountsFormClicked:X,setCurrentDrawerContent:C,onDismissClick:E})};return t.jsx(Ra,{children:oe()})},Ra=n.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{Ka as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as C,u as
|
|
1
|
+
import{e as C,u as A,x as Ne,bJ as Ye,j as t,B as L,a0 as W,bB as ae,aX as Ke,v as ie,$ as E,m as Fe,o as i,w as k,g as w,b6 as Ve,C as u,cV as _,J as R,l as V,q as h,gX as le,at as de,aw as ce,av as he,au as pe,b9 as We,bg as Le,a6 as Ae,Y as Ee,fq as Ue,gr as Je,K as Ge,s as M,af as Xe,iA as _e,jb as qe,aA as Qe,eJ as Ze,d7 as et,f6 as tt,aj as it,b_ as ot,i9 as rt,ia as at,ka as nt,bn as st,k as U,c3 as xe,ic as lt,c6 as dt,id as ct,ie as ht}from"./index-B9FgmOrh.js";import{b as $,n as o,f as pt,j as ge}from"./vendor-rkTZJa59.js";import{s as xt}from"./commonDimensions-Btr3Ruk2--EjhN8RD.js";import{g as me}from"./BoxItem-7efiVHrX-gIWD7SzU.js";import{l as ne,d as gt}from"./treasuryColorHelper-DqciQwbz-CiEpGb56.js";import{o as mt}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import{o as ut}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[yt,ft,wt],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(ct,ht),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const c=A(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const s of p)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,s)=>{let m=s;r.sortKey===p&&(m=s==="ascending"?"descending":"ascending"),n(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(s=>s.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),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(At,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{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(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{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(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const jt=pt.memo($t),bt=o.div`
|
|
2
2
|
top: ${i.sp0};
|
|
3
3
|
left: ${i.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -90,12 +90,12 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
90
90
|
&:hover {
|
|
91
91
|
color: ${e=>e.theme.colors.primary};
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,At=o.div`
|
|
94
94
|
display: flex;
|
|
95
95
|
cursor: pointer;
|
|
96
96
|
gap: 5px;
|
|
97
97
|
color: ${e=>e.theme.colors.primary};
|
|
98
|
-
`,J={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
|
|
98
|
+
`,J={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:n,amount:c,status:l,date:a}=e,y=W("0,0.00",c),d=C(),{dateFormat:g}=L.getLocalizedStrings(),x=oe(),j=x[0].width,f=x[1].width,p=x[2].width,s=gt(l);if(d==="small"){const b=t.jsx(Ft,{children:t.jsxs(Vt,{children:[t.jsxs(Wt,{children:[t.jsxs(Ut,{children:[t.jsx(fe,{}),t.jsx(Jt,{children:t.jsx(Gt,{children:t.jsxs(Xt,{children:[n,l!=null&&l.code!=="completed"?t.jsxs(t.Fragment,{children:[t.jsx(_t,{}),t.jsx(qt,{color:s?.color,children:s?.value})]}):null]})})})]}),t.jsx(Qt,{children:t.jsx(Zt,{children:a!=null?`${oe()[1].value}: `+a.format(g.visual.MMMDCommaYYYYformat):null})})]}),t.jsx(Et,{children:t.jsx(ei,{children:t.jsx($e,{children:y})})})]})});return t.jsx(me,{content:b,boxType:r,isDisabled:!0,isNotClickable:!0})}const m=t.jsxs(Bt,{windowSize:d,children:[t.jsxs(Ot,{windowSize:d,width:j,children:[t.jsx(fe,{}),t.jsxs(Ht,{windowSize:d,children:[t.jsx(we,{children:n}),l!=null&&l.code!=="completed"?t.jsxs(Nt,{windowSize:d,children:[t.jsx(Kt,{}),t.jsx(Yt,{color:s?.color,children:s?.value})]}):null]})]}),t.jsx(Rt,{windowSize:d,width:f,children:t.jsx(we,{children:a!=null?a.format(g.visual.MMMDCommaYYYYformat):null})}),t.jsx(It,{windowSize:d,width:p,children:t.jsx($e,{children:y})})]});return t.jsx(me,{content:m,boxType:r,isDisabled:!0,isNotClickable:!0})}const Bt=o.div`
|
|
99
99
|
width: 100%;
|
|
100
100
|
display: flex;
|
|
101
101
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -134,7 +134,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
134
134
|
`,fe=o(mt)`
|
|
135
135
|
width: ${i.sp4};
|
|
136
136
|
height: ${i.sp4};
|
|
137
|
-
`,we=o(
|
|
137
|
+
`,we=o(M)`
|
|
138
138
|
display: -webkit-box;
|
|
139
139
|
-webkit-box-orient: vertical;
|
|
140
140
|
-webkit-line-clamp: 1;
|
|
@@ -171,7 +171,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
171
171
|
background-color: ${e=>e.theme.colors.grey1};
|
|
172
172
|
margin-left: ${i.sp2};
|
|
173
173
|
margin-right: ${i.sp2};
|
|
174
|
-
`,$e=o(
|
|
174
|
+
`,$e=o(M)`
|
|
175
175
|
display: -webkit-box;
|
|
176
176
|
-webkit-box-orient: vertical;
|
|
177
177
|
-webkit-line-clamp: 1;
|
|
@@ -213,9 +213,9 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
213
213
|
margin-left: ${i.sp3};
|
|
214
214
|
flex: 1;
|
|
215
215
|
min-width: 0;
|
|
216
|
-
`,
|
|
216
|
+
`,Gt=o.div`
|
|
217
217
|
width: 100%;
|
|
218
|
-
`,
|
|
218
|
+
`,Xt=o(M)`
|
|
219
219
|
display: block;
|
|
220
220
|
color: ${e=>e.theme.colors.hero};
|
|
221
221
|
line-height: 1.4;
|
|
@@ -246,7 +246,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
246
246
|
`,ei=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:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:c,onColumnSortConfigChanged:l})=>{const a=C(),y=()=>a!=="small"?nt:xt+40,d=$.useRef(null);$.useEffect(()=>{d.current?.resetAfterIndex(0)},[a,d]);const g=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:c,"data-testid":E("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Be,{children:t.jsx(xi,{windowSize:a,children:t.jsx(it,{children:({height:x,width:j})=>t.jsx(ot,{ref:d,height:x,itemCount:e.length,innerElementType:f=>ri(f,l,r,n),itemSize:y,estimatedItemSize:at,itemKey:f=>e[f].id,width:j,overscanCount:rt,initialScrollOffset:0,children:f=>t.jsx(ni,{...f,transactionList:e})})})})});return t.jsx(li,{fetchState:n,children:g()})},ri=(e,r,n,c)=>t.jsx(
|
|
249
|
+
`,re={lastListItemHeight:new u(200,128),rowWrapperMarginLeftRight:new u(h[3],h[8])},{spendManagement:{chargeCard:ti},common:ii}=L.getLocalizedStrings(),oi=({transactionList:e,uiState:r,fetchState:n,onReloadCards:c,onColumnSortConfigChanged:l})=>{const a=C(),y=()=>a!=="small"?nt:xt+40,d=$.useRef(null);$.useEffect(()=>{d.current?.resetAfterIndex(0)},[a,d]);const g=()=>n==="Error"?t.jsxs(di,{children:[t.jsx(ci,{onClick:c,"data-testid":E("treasury-list-reload"),children:t.jsx(hi,{})}),t.jsx(pi,{children:ii.reloadPage.label})]}):n==="Completed"&&e.length===0?null:t.jsx(Be,{children:t.jsx(xi,{windowSize:a,children:t.jsx(it,{children:({height:x,width:j})=>t.jsx(ot,{ref:d,height:x,itemCount:e.length,innerElementType:f=>ri(f,l,r,n),itemSize:y,estimatedItemSize:at,itemKey:f=>e[f].id,width:j,overscanCount:rt,initialScrollOffset:0,children:f=>t.jsx(ni,{...f,transactionList:e})})})})});return t.jsx(li,{fetchState:n,children:g()})},ri=(e,r,n,c)=>t.jsx(Me,{...e,onColumnSortConfigChanged:r,uiState:{sortKey:n.sortKey,sortOrder:n.sortOrder},fetchState:c}),Me=$.forwardRef((e,r)=>{const{children:n,style:c,uiState:l,onColumnSortConfigChanged:a,...y}=e;return t.jsxs(Be,{ref:r,style:{...c,width:"auto"},...y,children:[t.jsx(jt,{companyNameSticky:!1,onColumnSortConfigChanged:a,sortConfig:{sortKey:l.sortKey,sortOrder:l.sortOrder}}),t.jsx(mi,{children:n})]})});Me.displayName=ti.cardList.headerElementDisplayName;const ai=({transactionList:e,fetchState:r,uiState:n,onReloadCards:c,onColumnSortConfigChanged:l})=>t.jsx(oi,{transactionList:e,fetchState:r,onReloadCards:c,uiState:n,onColumnSortConfigChanged:l}),ni=({index:e,style:r,transactionList:n})=>{const c=C();return t.jsx(gi,{style:{...r,width:"100%",paddingLeft:re.rowWrapperMarginLeftRight.valuePx(c),paddingRight:re.rowWrapperMarginLeftRight.valuePx(c)},className:"spend-management-list-item",children:t.jsx(si,{transaction:n[e]})},"listItem"+n[e].id)},si=({transaction:e})=>t.jsx(Mt,{data:e,boxType:"roundedBox"},e.id),li=o.div`
|
|
250
250
|
margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
|
|
251
251
|
display: block;
|
|
252
252
|
height: 100%;
|
|
@@ -273,7 +273,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
273
273
|
&:hover {
|
|
274
274
|
color: ${e=>e.theme.colors.primary};
|
|
275
275
|
}
|
|
276
|
-
`,pi=o(
|
|
276
|
+
`,pi=o(Ae)`
|
|
277
277
|
margin-top: ${i.sp3};
|
|
278
278
|
color: ${e=>e.theme.colors.hero};
|
|
279
279
|
`,xi=o.div`
|
|
@@ -296,7 +296,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
296
296
|
position: relative;
|
|
297
297
|
width: auto;
|
|
298
298
|
height: 100%;
|
|
299
|
-
`,Be=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],yi=e=>V.stringToUnionStrict(e??"",ui),
|
|
299
|
+
`,Be=o.div``,ui=["editPortfolio","taxLetter","statements","settings"],yi=e=>V.stringToUnionStrict(e??"",ui),G=L.getLocalizedStrings().spendManagement.treasury.overviewPage,je=[{value:"editPortfolio",label:G.editPortfolio},{value:"taxLetter",label:G.taxLetter},{value:"statements",label:G.statements},{value:"settings",label:G.settings}],fi=({onOptionSelection:e,onTransferClick:r})=>{const n=Ee(),c=C(),l=L.getLocalizedStrings().spendManagement.treasury.overviewPage,a=n.loggedInUserRoleMap.treasury_user===!0||Ue(n),y=je.filter(g=>g.value==="statements"||g.value==="taxLetter"),d=A();return t.jsxs(wi,{isTopAlign:!1,children:[t.jsx(Je,{entity:"zeni_treasury",onOptionSelection:g=>{const x=yi(g);x!=null&&e(x)},isMoreOption:!0,backgroundColor:d.colors.grey5,options:a?y:je}),!a&&(c==="small"?t.jsx($i,{onClick:r}):t.jsx(Ge,{variant:"primary",size:"small",style:{display:"flex",alignItems:"center"},onClick:r,label:l.transferFunds}))]})},wi=o.div`
|
|
300
300
|
display: flex;
|
|
301
301
|
flex-direction: row;
|
|
302
302
|
align-items: ${({isTopAlign:e})=>e?"flex-start":"center"};
|
|
@@ -314,7 +314,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
314
314
|
justify-content: center;
|
|
315
315
|
align-items: center;
|
|
316
316
|
background-color: ${e=>e.theme.colors.grey4};
|
|
317
|
-
`,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("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:bi}=L.getLocalizedStrings(),Oe=$.memo(({accountHistory:e})=>{const r=C(),n=M(),[c,l]=$.useState(),a=$.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const B=D/6;let O;return B<.5?O=0:B<.6?O=.9*((B-.5)/.09999999999999998):O=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:O}})},[]),y=$.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=$.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=$.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),j=$.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let B=!1;e.accountHistoryWithBalance.length>360&&(B=!0);const O=B?V.zeniDate(D).format(q.visual.MMMformat):V.zeniDate(D).format(q.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Ki,{windowSize:r,dy:20,dx:-25,children:O})})},[e.accountHistoryWithBalance.length,r]),f=$.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(c?.x!==s||c?.y!==m)&&l({x:s,y:m}),t.jsx(Ui,{cx:s,cy:m,strokeWidth:1,r:h[1]})),[c]),p=$.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Fi,{children:d?t.jsxs(eo,{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:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>j(s),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:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(Zi,{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:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>j(s),padding:{right:h[4]},interval:p}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(We,{position:c,content:({payload:s})=>x(s),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)"})]})})})});Oe.displayName="AccountBalanceGraph";const Fo=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:c,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:y})=>{const d=C(),g=M(),x=Ne().analytics;Ye({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const 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(qi,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",f?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",f?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("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(Ie,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(yo,{}):t.jsx(He,{})})})},[f,d]),s=t.jsx(fi,{onOptionSelection:j,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),y()}});return t.jsxs(Ti,{children:[t.jsx(Ke,{title:v.title,onBackClick:c,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Mi,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:p,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Oe,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(Re,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ii,{children:[t.jsx(Hi,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Yi,{})}),t.jsx(Ni,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(Fe,{size:"ExtraLarge",start:!0})})]})},Re=$.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});Re.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,fundAllocation:c,fundsData:l})=>{const a=C(),[y,d]=$.useState(!1);return $.useEffect(()=>{y===!0&&setTimeout(()=>{d(!1)},800)},[y]),t.jsxs(Ai,{children:[t.jsxs(G,{children:[t.jsx(Vi,{children:t.jsxs(F,{children:[K(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(_i,{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(G,{children:[t.jsxs(F,{children:[K(v.insuredFunds),n("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(Bi,{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)," ",n("sevenDayYield")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(c??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:c})=>{const[l,a]=$.useState(!1),y=C(),d=M(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:y,allTilesExpanded:l,children:r.map((x,j)=>{const f=l,p=ne(j,d);return t.jsxs(oo,{expanded:f,windowSize:y,children:[t.jsx(go,{bgColor:p.headerBackground}),t.jsx(ki,{fund:x,fundIndex:j,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:c}),!l&&t.jsx(ro,{children:t.jsxs(no,{onClick:()=>{e.trackTreasuryDashboardInteraction("View Details "+x.fundCompanyName+" "+x.fundName),g()},children:[v.fundTile.viewDetails,t.jsx(Xi,{})]})}),f&&t.jsxs(t.Fragment,{children:[t.jsx(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:j,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const c=M(),l=ne(r,c),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{color:l.fundNameColor,children:[t.jsx(G,{children:e.fundCompanyName}),t.jsx(G,{children:e.fundName})]})]}),t.jsx(so,{windowSize:a,children:t.jsxs(De,{style:{alignItems:a==="small"?"flex-start":"flex-end"},children:[t.jsxs(xo,{children:[v.sevenDayYield,t.jsx(Ie,{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(He,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:c})=>{const l=M(),{common:a,spendManagement:y}=L.getLocalizedStrings(),d=y.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(fo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:_e(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs($o,{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(jo,{children:r.compositions.map((x,j)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},j))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{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(Co,{})]}),t.jsxs(uo,{onClick:c,children:[d.hide,t.jsx(Gi,{})]})]})]})};function zi(e,r){let n=0;for(const c of r){const l=e[c.fundCode]??0;l>0&&c.yield!=null&&(n+=c.yield*l)}return Number((n/100).toFixed(2))}const K=e=>t.jsx(Ji,{children:e}),Pi=o.div`
|
|
317
|
+
`,P={tickLabelText:new R("extraSmallRegular","smallRegular"),balanceIntegerStyles:new R("h5Regular","h3Regular"),integerStyles:new R("largeRegular","h6Regular"),decimalStyles:new R("standardRegular","standardRegular"),fundSummaryStyles:new R("extraSmallSemiBold","smallSemiBold"),yieldValueStyles:new R("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:bi}=L.getLocalizedStrings(),Oe=$.memo(({accountHistory:e})=>{const r=C(),n=A(),[c,l]=$.useState(),a=$.useMemo(()=>{const s=V.zeniDate(new Date().toISOString()),m=s.clone().subtract(84,"day"),b=84/6;return Array.from({length:7}).map((z,D)=>{const B=D/6;let O;return B<.5?O=0:B<.6?O=.9*((B-.5)/.09999999999999998):O=.9,{date:(D===6?s:m.clone().add(Math.round(D*b),"day")).toISOString(),value:O}})},[]),y=$.useMemo(()=>(a.length<=0,0),[a.length]),d=e.fetchState==="Completed"&&(e.accountHistoryWithBalance.length===0||e.accountHistoryWithBalance.every(s=>s.balance?.available.amount===0)),g=$.useMemo(()=>e.accountHistoryWithBalance.map(s=>({...s,date:s.date.toISOString()})),[e.accountHistoryWithBalance]),x=$.useCallback(s=>{const m=Array.isArray(s)?s:[];let b="",z="";if(Array.isArray(m)&&m.length>0){const D=m[0].payload?.balance?.available;z=W("0,0[.]00",D),b=V.zeniDate(m[0].payload?.date??"").format(q.visual.DMMMYYYYFormat)}return t.jsxs(Ei,{children:[t.jsx(ze,{children:b}),t.jsx(ze,{isSublabel:!0,children:z})]})},[]),j=$.useCallback(s=>{const m=s,{x:b,y:z}=m,{value:D}=m.payload;let B=!1;e.accountHistoryWithBalance.length>360&&(B=!0);const O=B?V.zeniDate(D).format(q.visual.MMMformat):V.zeniDate(D).format(q.visual.MMMDFormat);return t.jsx(Ri,{translateX:b,translateY:z,children:t.jsx(Ki,{windowSize:r,dy:20,dx:-25,children:O})})},[e.accountHistoryWithBalance.length,r]),f=$.useCallback(({cx:s,cy:m,dataKey:b})=>(b==="balance.available.amount"&&(c?.x!==s||c?.y!==m)&&l({x:s,y:m}),t.jsx(Ui,{cx:s,cy:m,strokeWidth:1,r:h[1]})),[c]),p=$.useMemo(()=>{const s=e.accountHistoryWithBalance.length;return s<=0?0:s>360?Math.floor(s/12):Math.floor(s/7)},[e.accountHistoryWithBalance.length]);return t.jsx(Fi,{children:d?t.jsxs(eo,{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:n.colors.grey2,stopOpacity:1}),t.jsx(ke,{offset:"100%",stopColor:n.colors.grey2,stopOpacity:.02})]})}),t.jsx(ce,{dataKey:"date",stroke:n.colors.grey3,tickSize:0,tick:s=>j(s),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:n.colors.grey2,strokeDasharray:"4 4",fill:"url(#colorUv)"})]})}),t.jsx(to,{children:t.jsx(Zi,{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:n.colors.grey3,tickSize:0,reversed:!0,tick:s=>j(s),padding:{right:h[4]},interval:p}),t.jsx(he,{tick:!1,axisLine:!1}),t.jsx(We,{position:c,content:({payload:s})=>x(s),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)"})]})})})});Oe.displayName="AccountBalanceGraph";const Fo=({treasuryDetail:e,treasurySetupView:r,onColumnSortConfigChanged:n,onBackClick:c,onReloadTreasuryTransactions:l,handleTreasuryOptionSelection:a,onTransferClick:y})=>{const d=C(),g=A(),x=Ne().analytics;Ye({componentName:"treasury.overview",enabled:e.fetchState==="Completed"});const 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(qi,{children:v.balanceTooltip.base}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.balance}),t.jsx(te,{children:W("0,0[.]00",f?.totalBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.processing}),t.jsx(te,{children:W("0,0[.]00",f?.processingBalance)})]}),t.jsxs(Z,{children:[t.jsx(ee,{children:v.balanceTooltip.available}),t.jsx(te,{children:W("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(Ie,{children:t.jsx(ae,{display:"flex",placement:d==="small"?"bottom":"top",title:b,style:{textAlign:"left"},maxWidth:z,children:m==="insuredFunds"?t.jsx(yo,{}):t.jsx(He,{})})})},[f,d]),s=t.jsx(fi,{onOptionSelection:j,onTransferClick:()=>{x.trackTreasuryDashboardInteraction("Transfer Funds"),y()}});return t.jsxs(Ti,{children:[t.jsx(Ke,{title:v.title,onBackClick:c,showMenuIcon:!1,backgroundColor:g.colors.grey5,style:{zIndex:3,...ie.largeSemiBold.cssObject},rightSideComponent:s,source:"treasury"}),t.jsxs(Li,{windowSize:d,children:[t.jsxs(Ai,{windowSize:d,children:[t.jsx(vi,{fundAllocation:r.currentAllocation,fundsData:r.fundsData,getToolTipContent:p,treasuryDetail:e,hasAccountActivity:e.transactions.length>0}),t.jsx(Oi,{windowSize:d,children:t.jsx(Oe,{accountHistory:e.accountHistory})})]}),t.jsx(Si,{analytics:x,fundsData:r.fundsData,fundAllocation:r.currentAllocation,hasAccountActivity:e.transactions.length>0})]}),e.transactionsFetchState.fetchState==="Completed"?t.jsx(Re,{treasuryDetail:e,onColumnSortConfigChanged:n}):e.transactionsFetchState.fetchState==="Error"?t.jsxs(Ii,{children:[t.jsx(Hi,{onClick:l,"data-testid":E("account-detail-reload"),children:t.jsx(Yi,{})}),t.jsx(Ni,{children:bi.reloadPage.label})]}):t.jsx(ji,{children:t.jsx(Fe,{size:"ExtraLarge",start:!0})})]})},Re=$.memo(({treasuryDetail:e,onColumnSortConfigChanged:r})=>{const n=C();return t.jsx(t.Fragment,{children:e.transactions.length>0?t.jsx(Di,{windowSize:n,children:t.jsx(ai,{transactionList:e.transactions,fetchState:e.fetchState,uiState:e.uiState,onReloadCards:()=>{},onColumnSortConfigChanged:r})}):t.jsx(Pi,{})})});Re.displayName="TransactionListScreen";const vi=({treasuryDetail:e,hasAccountActivity:r,getToolTipContent:n,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(F,{children:[K(be.zeniAccountList.totalAvailableBalance),n("totalBalance")]})}),t.jsx(_i,{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),n("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(Bi,{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)," ",n("sevenDayYield")]}),t.jsx(Q,{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:t.jsxs(Wi,{windowSize:a,children:[zi(c??{},l),"%"]})})]})]})]})},Si=({analytics:e,fundsData:r,fundAllocation:n,hasAccountActivity:c})=>{const[l,a]=$.useState(!1),y=C(),d=A(),g=()=>{a(x=>!x)};return t.jsx(io,{windowSize:y,allTilesExpanded:l,children:r.map((x,j)=>{const f=l,p=ne(j,d);return t.jsxs(oo,{expanded:f,windowSize:y,children:[t.jsx(go,{bgColor:p.headerBackground}),t.jsx(ki,{fund:x,fundIndex:j,fundAllocation:n!=null?n[x.fundCode]:0,hasAccountActivity:c}),!l&&t.jsx(ro,{children:t.jsxs(no,{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(zo,{}),t.jsx(Ci,{analytics:e,fund:x,fundIndex:j,onHide:g})]})]},x.fundCode)})})},ki=({fund:e,fundIndex:r,fundAllocation:n})=>{const c=A(),l=ne(r,c),a=C();return t.jsxs(ao,{windowSize:a,children:[t.jsxs(De,{style:{width:a==="small"?"100%":"50%"},children:[t.jsx(lo,{children:t.jsxs(co,{children:[t.jsx(Te,{windowSize:a,children:e.fundCode}),t.jsxs(Te,{windowSize:a,children:[n,"%"]})]})}),t.jsxs(ho,{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(xo,{children:[v.sevenDayYield,t.jsx(Ie,{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(He,{})})})]}),t.jsxs(po,{windowSize:a,children:[e.yield,"%"]})]})})]})},Ci=({analytics:e,fund:r,fundIndex:n,onHide:c})=>{const l=A(),{common:a,spendManagement:y}=L.getLocalizedStrings(),d=y.treasury.promoPage,g=ne(n,l);return t.jsxs(t.Fragment,{children:[t.jsx(fo,{children:r.description}),t.jsxs(wo,{children:[t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," Liquidity"]}),t.jsx(N,{children:r.liquidityTimeline})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.fundSize]}),t.jsx(N,{color:g.fundNameColor,children:_e(r.fundSize,r.currencyCode)})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.maturity]}),t.jsxs(N,{children:[r.maturity," ",a.timeStrings.days]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.expenseRatio]}),t.jsxs(N,{children:[r.expenseRatio,d.expenseRatioSuffix]})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.riskRating]}),t.jsx(N,{children:r.riskRating})]}),t.jsxs(I,{children:[t.jsxs(H,{children:[t.jsx(Y,{})," ",d.composition]}),t.jsx(N,{children:t.jsxs($o,{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(jo,{children:r.compositions.map((x,j)=>t.jsxs(bo,{children:[t.jsx(vo,{}),t.jsx(k,{children:x.investedIn}),t.jsx(k,{style:{marginLeft:"auto",textAlign:"right"},children:x.percentage})]},j))}),children:t.jsxs(So,{children:["+",r.compositions.length]})})]})})]})]}),t.jsxs(mo,{children:[t.jsxs(ko,{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(Co,{})]}),t.jsxs(uo,{onClick:c,children:[d.hide,t.jsx(Xi,{})]})]})]})};function zi(e,r){let n=0;for(const c of r){const l=e[c.fundCode]??0;l>0&&c.yield!=null&&(n+=c.yield*l)}return Number((n/100).toFixed(2))}const K=e=>t.jsx(Ji,{children:e}),Pi=o.div`
|
|
318
318
|
display: flex;
|
|
319
319
|
flex-direction: column;
|
|
320
320
|
align-items: center;
|
|
@@ -336,18 +336,18 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
336
336
|
padding-left: ${e=>T.accountDetailHeaderPaddingLeft.valuePx(e.windowSize)};
|
|
337
337
|
justify-content: space-between;
|
|
338
338
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
339
|
-
`,
|
|
339
|
+
`,Ai=o.div`
|
|
340
340
|
display: flex;
|
|
341
341
|
width: 100%;
|
|
342
342
|
gap: ${e=>`${T.accountDetailHeaderGap.valuePx(e.windowSize)}`};
|
|
343
343
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
344
344
|
justify-content: space-between;
|
|
345
|
-
`,
|
|
345
|
+
`,Mi=o.div`
|
|
346
346
|
display: flex;
|
|
347
347
|
gap: ${i.sp4};
|
|
348
348
|
flex-direction: column;
|
|
349
349
|
justify-content: space-between;
|
|
350
|
-
`,
|
|
350
|
+
`,X=o.div``,Bi=o.div`
|
|
351
351
|
display: flex;
|
|
352
352
|
flex-direction: row;
|
|
353
353
|
gap: ${i.sp6};
|
|
@@ -385,7 +385,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
385
385
|
color: ${e=>e.theme.colors.primary};
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
`,Ni=o(
|
|
388
|
+
`,Ni=o(Ae)`
|
|
389
389
|
margin-top: ${i.sp3};
|
|
390
390
|
color: ${e=>e.theme.colors.hero};
|
|
391
391
|
`,Yi=o(Le)`
|
|
@@ -447,13 +447,13 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
447
447
|
gap: ${i.sp1};
|
|
448
448
|
`,Ji=o(k)`
|
|
449
449
|
color: ${e=>e.theme.colors.hero};
|
|
450
|
-
`,
|
|
450
|
+
`,Gi=o(Xe)`
|
|
451
451
|
height: 12px;
|
|
452
452
|
width: 12px;
|
|
453
453
|
margin-left: ${i.sp1};
|
|
454
454
|
margin-right: ${i.sp1};
|
|
455
455
|
color: ${e=>e.theme.colors.hero};
|
|
456
|
-
`,
|
|
456
|
+
`,Xi=o(tt)`
|
|
457
457
|
height: 12px;
|
|
458
458
|
width: 12px;
|
|
459
459
|
margin-left: ${i.sp1};
|
|
@@ -500,7 +500,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
500
500
|
padding: ${i.sp2};
|
|
501
501
|
background: ${e=>e.theme.colors.black};
|
|
502
502
|
border-radius: ${i.sp1};
|
|
503
|
-
`,Zi=o(
|
|
503
|
+
`,Zi=o(M)`
|
|
504
504
|
color: ${e=>e.theme.colors.hero};
|
|
505
505
|
white-space: pre-line;
|
|
506
506
|
text-align: center;
|
|
@@ -625,7 +625,7 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
625
625
|
width: ${i.sp3};
|
|
626
626
|
height: ${i.sp3};
|
|
627
627
|
color: ${w.success};
|
|
628
|
-
`,fo=o(
|
|
628
|
+
`,fo=o(M)`
|
|
629
629
|
padding: ${i.sp3} ${i.sp4} 0 ${i.sp4};
|
|
630
630
|
color: ${w.heroLight};
|
|
631
631
|
`,wo=o.div`
|
|
@@ -637,12 +637,12 @@ import{e as C,u as M,x as Ne,bJ as Ye,j as t,M as L,a0 as W,bB as ae,aX as Ke,v
|
|
|
637
637
|
justify-content: space-between;
|
|
638
638
|
align-items: flex-start;
|
|
639
639
|
padding-bottom: ${i.sp1};
|
|
640
|
-
`,H=o(
|
|
640
|
+
`,H=o(M)`
|
|
641
641
|
color: ${e=>e.theme.colors.hero};
|
|
642
642
|
width: 140px;
|
|
643
643
|
display: flex;
|
|
644
644
|
align-items: center;
|
|
645
|
-
`,N=o(
|
|
645
|
+
`,N=o(M)`
|
|
646
646
|
color: ${e=>e.color??e.theme.colors.primary};
|
|
647
647
|
flex: 1;
|
|
648
648
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|