@zeniai/web-cockpit-ui 1.14.16-qa → 1.14.17-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-BwrF_fEr-DkyA5i2K.js +21 -0
- package/dist/assets/{AIPerformancePage-Do5bswa_-DAoOPzHS.js → AIPerformancePage-4oC8MJWN-DKgtdhwX.js} +44 -44
- package/dist/assets/{AccountInfoPage-BBhgLi_k-BDnk8wRY.js → AccountInfoPage-mOPytffA-CHwRigZs.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-BJqXMkH6-270w5YXI.js → AccountInfoPageContent-VULusDEd-6lGswsvl.js} +14 -14
- package/dist/assets/{AccountReconDetailsDrawerPage-CV09UnoU-CHsOQmxO.js → AccountReconDetailsDrawerPage-89APlrhb-BX-kF9hA.js} +18 -18
- package/dist/assets/{AccountRow-TlJ0aU9H-BlwEdN_G.js → AccountRow-DJd-IAIl-CfLQe7at.js} +33 -33
- package/dist/assets/{AccountsPromoCardStack-D8Y5MNXA-CaIaUzET.js → AccountsPromoCardStack-DE39TpIu-DvYK9R7k.js} +33 -33
- package/dist/assets/{AddAddressForCardDrawer-DKJpGW7r-BpMaf86Y.js → AddAddressForCardDrawer-CKdcU_pi-IPZLStMw.js} +2 -2
- package/dist/assets/{AddToWalletPage-1gMvHWq2-B8vVBjjQ.js → AddToWalletPage-DPXW2fbY-CNPYHMH9.js} +24 -24
- package/dist/assets/{AgingReportsPage-Bzn9xmRs-apdo7hGo.js → AgingReportsPage--CLUwcIa-DcSCN91R.js} +17 -17
- package/dist/assets/{AllUserItems-BPSpj-dO-ClBbyfzH.js → AllUserItems-CC9l-O5G-DJbAuU58.js} +11 -11
- package/dist/assets/ApAgingDetailPage-CsQ3DujX-DWGGqNtg.js +46 -0
- package/dist/assets/AppBasePage-CgHKYFmd-Bs3-qi9M.js +68 -0
- package/dist/assets/{AppDrawerContent-Cq8GkRBD-CRks4KWi.js → AppDrawerContent-Cofo0-5p-DYgesCt7.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-zKh1CLv3-3l0xvat6.js → ApprovalRulesSettingsPage-DsshEbzW-DLpKueGV.js} +7 -7
- package/dist/assets/{ArAgingChart-Bs2fblA6-_eY76mOu.js → ArAgingChart-K2LSe8mo-CcrD54Kp.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BWsV1tQP-BBPHFjg6.js → ArAgingDetailPage-DCFL9YAy-Cw3hCUfd.js} +4 -4
- package/dist/assets/{AttachmentView-BDkq5i_5-BDwPiUBQ.js → AttachmentView-Cn3VnVyO-BPJCq-4t.js} +9 -9
- package/dist/assets/{BankAccountSection-DL-Qgypb-DCyiZiMb.js → BankAccountSection-Au9_D0Ji-bmPPOv5B.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-PFOmZUmz-jyv_7HW8.js → BankAccountWarningSection-927iR_QB-BLBTF_Hr.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-BiPEOltR-BEX0B3Xt.js → BankConnectionsSettingsPage-CXab8fzD-0RsCLwrp.js} +49 -49
- package/dist/assets/{BillDetailPage-nUoy5Pib-B9OAwnY8.js → BillDetailPage-yIdrE7YG-CO1_hc0X.js} +21 -21
- package/dist/assets/{BillPayApprovalRuleDetailPage-uCd9CD_--CPg3Wdw0.js → BillPayApprovalRuleDetailPage-BJl_-eJN-DcYLdRk3.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BsvzOO92-CCSqA2Ff.js → BillPayApprovalRulesPage-rXaFCSLp-DOP05VDc.js} +8 -8
- package/dist/assets/{BillPayPromoPage-D9tHxFrw-BDsnH40Y.js → BillPayPromoPage-BLi_wIbj-CZGLSHx_.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-Ci__X7jC-BU_eTkYb.js → BillPaySetUpPage-BFmpWT_x-zTzNnL_X.js} +2 -2
- package/dist/assets/{BillingSettingsPage-JcOqMK9G-C2bvM8Au.js → BillingSettingsPage-Da01aYql-DLGfaRzo.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-FeZEMsS6-CjecTcPw.js → BillsBulkReviewDrawerPage-J2kO9_8C-B_ZetdEJ.js} +1 -1
- package/dist/assets/{BoxItem-BcQH7ATF-CU__oRAt.js → BoxItem-CQlEDklH-QYh8SK8x.js} +4 -4
- package/dist/assets/BusinessVerificationPage-DWhXCuG5-BlJy48X_.js +140 -0
- package/dist/assets/{CardNumberSubText-CRythvN3-DSiQJr5y.js → CardNumberSubText-BTjxrF3b-CNbVWSfp.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CDa_GOsq-CJAMDrPJ.js → CashbackDetailPage-qcMtGUQ0-ClM0O4ek.js} +22 -22
- package/dist/assets/{ChargeCardDetailPage-BVxvmvYF-wsGLJRVi.js → ChargeCardDetailPage-BurpUHl9-ks5Ylh0a.js} +32 -32
- package/dist/assets/{ChargeCardListPage-Dk_9p-sM-DVvAu4yD.js → ChargeCardListPage-CBIYOllB-hsormxMA.js} +22 -22
- package/dist/assets/{ChargeCardListTable-DLAZTf8n-BSGVLMaS.js → ChargeCardListTable-BTZu7ldI-Dtf0dVvX.js} +104 -104
- package/dist/assets/ChargeCardPromoPage-us_v89rV-C0HHgs2t.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-QPLpJN2z-gogu-vKD.js → ChargeCardSetupPage-QOdjFcsr-C35vd8Nk.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DwJYJjcf-B6wqaac-.js → ChargeCardStatementsPage-C1UmjyIW-CQoBe4qC.js} +8 -8
- package/dist/assets/{ChargeCardUtils-BbByGmi9-idcYoFNG.js → ChargeCardUtils-C3fhOMpV-CuPIdUk0.js} +1 -1
- package/dist/assets/{ChaseOverlay-CvXMdD8r-DVeLI7lR.js → ChaseOverlay-RPex2o5e-Smu9780P.js} +6 -6
- package/dist/assets/CheckDepositDrawerPage-XZJ1F0aC-kws9zCak.js +206 -0
- package/dist/assets/{CollapsableReportTable-BptltmMq-BOVY7pY_.js → CollapsableReportTable-Ds0h8x1N-DplOjSEj.js} +93 -93
- package/dist/assets/{CompanyOfficerDetailsSection-DTbhxCCJ-DSPRT4ko.js → CompanyOfficerDetailsSection-B8yGAFVj-BXFGaLke.js} +24 -24
- package/dist/assets/{CompanyPassportCard-CRgbazO4-BVLaJrBi.js → CompanyPassportCard-BDei9Pfp-eYqW_Kg9.js} +6 -6
- package/dist/assets/{CompanyPassportPage-wdWKvOuO-uEEF_NAz.js → CompanyPassportPage-DFA733vS-D6CEIM7b.js} +32 -32
- package/dist/assets/CompleteProfile-BpX6H4vJ-BVnH0M9g.js +52 -0
- package/dist/assets/ConfettiBurst-97CCPVCH-9-b-8JXj.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DTbrZv48-DfbqQuzn.js → CreateOrEditVendorPage-BSi6pOXN-DT6XT0bI.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-CGGM52ND-DRUZYfAF.js → CreditCardPaymentDrawerPage-ZletyeGG-umQmaf0k.js} +17 -17
- package/dist/assets/{CreditCardPaymentPlgSection-BS99Rbz7-CTrSYAEg.js → CreditCardPaymentPlgSection-BE982atG-B6gcx6zm.js} +13 -14
- package/dist/assets/{CurrencySelectField-Cz1ZFZNL-rp7RZiQz.js → CurrencySelectField-cnP09xH2-COp3JBgC.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Bw2z91CF-CXbTMafe.js → CustomerOnboardingActivationPage-DhcKiTJ_-B4Bo0l5a.js} +9 -9
- package/dist/assets/CustomerOnboardingContainerPage-C1higvpq-CPTgkuej.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BY4rv3eB-6NFXmXrK.js → CustomerOnboardingDetailPageSkeleton-jguCmaVx-CPLJBFIe.js} +9 -9
- package/dist/assets/{CustomerOnboardingNoStepsPage-ByTpLszW-OlEfdwKj.js → CustomerOnboardingNoStepsPage-xakP7IDr-j9vb9__e.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-eyRDjOy--DJuua0xj.js → CustomerOnboardingPage-Ct5YbyHs-BO0Sy5Lx.js} +9 -9
- package/dist/assets/{CustomerOnboardingProductSuitePage-C_GOhUsC-DsH2SPww.js → CustomerOnboardingProductSuitePage-CugfvMkw-B6aWX1Xf.js} +11 -11
- package/dist/assets/{Dashboard-DXTfxwrE-CisGpCCo.js → Dashboard-XbVGCnvI-Cwm6wdq7.js} +260 -242
- package/dist/assets/{DashboardReportPage-C7LmV0rQ-D73sqjmR.js → DashboardReportPage-OeEPg2kx-DUWAiMA5.js} +21 -21
- package/dist/assets/{DepositAccTransactionItem-BH6np-wq-C9S2eFCv.js → DepositAccTransactionItem-Dy6qzuSL-bj1K9hi4.js} +10 -10
- package/dist/assets/DepositAccTransactionListPage-BisaE6sH-CXEjoVG5.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DhM2CLtr-s-sXaI-h.js → DomesticWireDetailsPage-B0tbjNLO-ByvPg7x-.js} +1 -1
- package/dist/assets/{DownloadOverlay-CwqxQGbr-Ae7vpc4V.js → DownloadOverlay-BKKO1nm1-BQ5P_IH7.js} +15 -15
- package/dist/assets/{DrawerPage-C3k5XFW6-BcQ5z47A.js → DrawerPage-osM8gPVn-2LgFt42m.js} +10 -10
- package/dist/assets/EditPeoplePage-ixJkT03_-nZc9QeAd.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DXLAtkkp-DnXcCwZz.js → EditReimbursementDetailPage-DvLeCixY-TeZdMP4Z.js} +23 -23
- package/dist/assets/{EntityDetailPage-_060OpVJ-D5TJErzM.js → EntityDetailPage-BzJbAOSj-9yzQeWus.js} +3 -3
- package/dist/assets/{EntitySummarySection-0QXWkpbX-D_GUS2WS.js → EntitySummarySection-Drj07P9h-6nsX9189.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-GPO42_rS-DQOlB6qp.js → ExpenseAutomationOverviewPage-BQ9dwGkq-BSO9oU-G.js} +23 -23
- package/dist/assets/{ExpenseAutomationPage-BQArYLAG-CHnCd6t8.js → ExpenseAutomationPage-DLld6Lux-C9UiIoPt.js} +56 -56
- package/dist/assets/{ExpressPayPage-DacK02lD-Dq4EbXyn.js → ExpressPayPage-QBNV0dC8-pBCRR5Rb.js} +12 -12
- package/dist/assets/FeaturePreviewPage-CpBX-Xic-BYSOYP2k.js +11 -0
- package/dist/assets/{FollowStepsSection-CMTo4gYl-CwkCaSv0.js → FollowStepsSection-1RCO2W7K-C-MoCYne.js} +25 -25
- package/dist/assets/{GlobalReviewListPage-BbI2YDxl-Cps6LriT.js → GlobalReviewListPage-ByMZFe7Y-CdorqsTM.js} +14 -14
- package/dist/assets/{HelpButton-Coe4ii48-CvuplgJt.js → HelpButton-CzTfBZQj-DZRTwrFl.js} +2 -2
- package/dist/assets/{InformationCardStack-BIumm5SJ-6MHSuSeN.js → InformationCardStack-C0AmMOu2-RArJXysN.js} +6 -6
- package/dist/assets/{InsightsCardStack-nndLG-Gx-C0PariBK.js → InsightsCardStack-BiIDBYY8-5lf82tLY.js} +7 -7
- package/dist/assets/InsightsSection-C-kpIvRH-CdqlGqmg.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-BRH3t6mo-DO-LHaxh.js → IntegrationsSettingsPage-7wAnV8kG-PXEXvEB6.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-vgA7iek9-ChmwO1by.js → InternationalWireSwiftDetailsPage-C7D15jtK-Li0eKKsY.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-DEIs1ydr-DKS197rw.js → InternationalWireVerificationPage-GDKPXtU--j4IpooKm.js} +20 -20
- package/dist/assets/{InviteFormPage-Bowy0arK-DpBZL_pL.js → InviteFormPage-CKGJHYWa-DWj-EAub.js} +20 -20
- package/dist/assets/{InvitePageListView-DuXb15Ll-BQK3BFW6.js → InvitePageListView-CWXyDZU2-DCU4lB3m.js} +54 -54
- package/dist/assets/InvitePeoplePage-CPBMZNa--DlK3foAM.js +12 -0
- package/dist/assets/InvoiceUploadSection-C0WzT0uv-Cn2JF08l.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BIL4e5I_-CXGJBU9x.js → IssueChargeCardPage-DLX44XaR-CcflhM3M.js} +31 -31
- package/dist/assets/LabeledAddressValue-B8awEVKI-DfzIlkwb.js +49 -0
- package/dist/assets/LabeledAddressValueField-Dl5yKg2N-CzXWQu_Y.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-CwiyOI1Z-M-tLAb4Z.js → LabeledControlledCheckBoxField-B6cLYSmS-taSeLw3M.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-yLzlQU6_-Bfeib5XV.js → LabeledCreatableSingleSelectField-CV4GQQ7F-G2kg_Moc.js} +8 -8
- package/dist/assets/LabeledDocumentField-BFhyNqP8-B0rZURtH.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-M_7KWHOd-D-fZzHek.js → LabeledDropDownFormattedTextField-gE3aWP_T-BOWWoTF_.js} +6 -6
- package/dist/assets/{LabeledText-CO_4w9Rx-DJRQWqFp.js → LabeledText-0pRIcJw5-Bl9-fI1Z.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-zPoNOgP7-j7Lks93T.js → LabeledUserSingleSelectWithSubtitlesField-C-32ySGI-DFmPy8AM.js} +17 -17
- package/dist/assets/{LabeledZeniRolesDropDownField-C8-KfR-4-CdARW5vH.js → LabeledZeniRolesDropDownField--l6D29VX-CyvURl9h.js} +11 -11
- package/dist/assets/{LinkJETransactionPage-CZVlsT4d-Bn-cESFA.js → LinkJETransactionPage-DLcpx9ns-AgvCjDXO.js} +10 -10
- package/dist/assets/{LowBalancePopup-Dl5IXVvh-ZOyts8_X.js → LowBalancePopup-BuelKDeS-DZAUOSm3.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-CP6ti0Ic-8tcSYl4a.js → MagicLinkACHDetailsPage-NIkquHvv-CI7Zc7xz.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BhpSDeQW-IeQp4QdV.js → MagicLinkDomesticWireDetailsPage-CdaNz396-BGT3axjJ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BXxTeh0G-gQ2fUGnD.js → MagicLinkInternationalWireDetailsPage-CnEhS5PP-DPChbPBR.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Bix48QB5-5BLIJX_g.js → MagicLinkSuccessPage-D_VJZV0O-FtY4wcd1.js} +2 -2
- package/dist/assets/MagicLinkTitleSection-tHh2d5Ld-_QN59pd4.js +17 -0
- package/dist/assets/MailingDetailsSection-CTrx1xoB-By7vG4Hi.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-DlnppXL_-BsJ0aU_e.js → MeetingCalenderPopup-DWvpTRQJ-Bt4xdKnr.js} +1 -1
- package/dist/assets/{Menu-B_GJLZiP-mNj9dFun.js → Menu-CbQ6Zkdp-B0rPvp7W.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-2DAYVmHh-fUm8E92x.js → MyBankConnectionsSettingsPage-9dQLb8iw-C8Rj57bA.js} +17 -17
- package/dist/assets/{MyPendingActivationChargeCardListPage-CWQq9D2t-Da8VyALM.js → MyPendingActivationChargeCardListPage-B2-YthuF-cm2yxhR4.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-imD_-Umc-DKjDOanW.js → MyProfileSettingsPage-CfmYPv4_-aC1znwk8.js} +5 -5
- package/dist/assets/NavBarWithPicker-Bzkl4W0x-CDy3Aggh.js +30 -0
- package/dist/assets/{NavigationArrow-De1st3tA-BAPoCX85.js → NavigationArrow-9pvhzLz8-DNW8ChSX.js} +1 -1
- package/dist/assets/NavigationDots-CXPwKFh1-CN4i4rO7.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-euJK3CXB-sukBYO3J.js → NewGlobalMerchantPage-D6ZpP6J1-D56cB-sU.js} +12 -12
- package/dist/assets/{NoDataChart-D_S6Pfkm-C3JVPSeM.js → NoDataChart-BUR7CF8w-JBqV9jC1.js} +1 -1
- package/dist/assets/{NoDataTable-CLwNCXFE-rGXp6Upe.js → NoDataTable-3L4pbKR0-B7fSM3B6.js} +1 -1
- package/dist/assets/{NotFoundPage-JfbMP3OG-CdLC4JTC.js → NotFoundPage-CgZfmKbj-BRxQmcCY.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-YBgrQBb2-Cpy35xKn.js → NotificationSettingsPage-BwYT3Tdc-D89puZca.js} +14 -14
- package/dist/assets/NotificationsListConfig-CeeJpJ2p-8AiJrLfH.js +1 -0
- package/dist/assets/{NotificationsPage-C3pnQT-K-CVRF5kRL.js → NotificationsPage-6qNQYQK4-DLvnPKkn.js} +39 -39
- package/dist/assets/{OpExByVendorPage-7FEOhvd--RHaoySaH.js → OpExByVendorPage-C28MBvmW-CYPqi7IY.js} +6 -6
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-CVXBjiin.js → OverlayContainerPage-9K5jaX8Z-BZxsFO4t.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-D0f5zvhp-DcJszdXh.js → PandLWithForecastPage-onJJ3Fh4-_QaDHG-Z.js} +12 -12
- package/dist/assets/PaymentAccountSetupBillingAddressSection-nGuJ5fbq-D3E47Aos.js +107 -0
- package/dist/assets/{PeoplePage-B-j04rvc-CCfL9FKm.js → PeoplePage-CKzezKqB-ByzrDmy1.js} +33 -33
- package/dist/assets/PortfolioAllocationFormPage-28Rg5Um0-BlYwyLHy.js +207 -0
- package/dist/assets/{PortfolioDetails-C-YfZonF-CLSJrpEX.js → PortfolioDetails-CIv1yXo2-BXO78bZH.js} +34 -34
- package/dist/assets/{ProductsCarousel-9USsVLuf-Dx3uyiaJ.js → ProductsCarousel-CSUQ6rVw-BjLG54WQ.js} +7 -7
- package/dist/assets/{PromoBaseCards-OKpdHchW-DlAtXYPN.js → PromoBaseCards-2L1JfY-v-8Fx_ViSz.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-BUr2NQiK-W-7dllOf.js → QBOConnectionDialog-DNP_b7aK-BzvUOq7o.js} +5 -5
- package/dist/assets/{QBOSetupSection-Cmf7-3wv-qvwzEewL.js → QBOSetupSection-CGrGCC2j-CuJwLC6X.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dev4FHVt-D88aB6v1.js → ReimbursementApprovalRuleDetailPage-DqxyCfuQ-BcbdBa6J.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BLMJY7El-e_ujsVQc.js → ReimbursementApprovalRulesPage-D_RMSSoW-DW4d-zUH.js} +33 -33
- package/dist/assets/{ReimbursementDetailPage-BIyq0BC0-CB2Fd2bq.js → ReimbursementDetailPage-BkT7zJoE-BUepvklz.js} +20 -20
- package/dist/assets/ReimbursementPromoPage-DQsLI50f-DvpBhx7F.js +112 -0
- package/dist/assets/{ReimbursementSetUpPage-VKXRSodl-D7JcNewb.js → ReimbursementSetUpPage-lH4Z7Lqi-C3uS6udC.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BmUcVSjU-BLnUm02Q.js → ReimbursementsBulkReviewDrawerPage-Bvh4mRws-DVwJvL8d.js} +1 -1
- package/dist/assets/{ReloadCard-DZhxB7Ar-hF1gT-u0.js → ReloadCard-BQKVLlzZ-CTM6ZQom.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-DSfx5ZD--Dci-a61G.js → ReportTableViewSelector-Cvk4LxRf-eJ2TbRx4.js} +10 -10
- package/dist/assets/{ReportsPage-CLH0u0Bh-C1MJTTfa.js → ReportsPage-C2cIfu51-BxZnm0Ag.js} +5 -5
- package/dist/assets/{RevenueChart-BeqQveLu-DeA8SaiY.js → RevenueChart-ByCekdyG-8uQwfY47.js} +17 -17
- package/dist/assets/{ReviewDetailsPage-Dq7hRX5W-O_RQR1-u.js → ReviewDetailsPage-DGyfz9q5-BKYXEzMr.js} +25 -25
- package/dist/assets/{ReviewOverlay-BNHqYk2g-GkMrLGZt.js → ReviewOverlay-Dp5yLAdR-BtQ_1SYB.js} +24 -24
- package/dist/assets/RoleWithToolTip-B7xRZ-3a-DOUAAL_V.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-QE0wa196-BAk-TXp_.js → ScheduleDetailsFixedAssetsPage-BvJX-G-F-EcV0Ga4I.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BVyX-Z0H-BlUtpB7o.js → ScheduleDetailsPage-CNpkuW7O-B_ravSuG.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-D1FYbPfU-Ch0thzHH.js → ScheduleSequenceTable-B_90qPjE-CouAcwmm.js} +16 -16
- package/dist/assets/{ScreenRoutes-DE3IzrIT.js → ScreenRoutes-AFpRn9FR.js} +62 -62
- package/dist/assets/{SetUpAccountSection-CYn2o43t-Cyl8tfm8.js → SetUpAccountSection-D5x8PZG1-DygZSmwk.js} +17 -17
- package/dist/assets/{SetUpDefaultSection-C0-L2ZyA-BVH3L8he.js → SetUpDefaultSection-BsOdnADR-CaLnvPCj.js} +10 -10
- package/dist/assets/{SignIn-BIxTodeo-CKTRpX1-.js → SignIn-Bt7hCYjV-EKx-pTxB.js} +20 -20
- package/dist/assets/{SignInScreen-BiA-KBBQ.js → SignInScreen-rurSzHF5.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DXtvYcrg-CdBfKQlr.js → SpendManagementListViewPage-C5cJKuRq-BvXZ8iTI.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-Cn-UsxaR-D2WwRrYC.js → SpendManagementPerTabPage-IBAw8wc4-CqequpCF.js} +45 -45
- package/dist/assets/{SpendManagementSection-BBR4aFIT-DzW24Skc.js → SpendManagementSection-yNP3swb6-CDpN_vFS.js} +14 -14
- package/dist/assets/{SpendMgmtSetupAccountSection-DedLETSm-YLSeERft.js → SpendMgmtSetupAccountSection-CYxt9dN8-jE6ury5g.js} +19 -19
- package/dist/assets/{StatementItem-CnpTW8qb-D17PfvTr.js → StatementItem-q9U89Htr-Dnon4hoE.js} +9 -9
- package/dist/assets/{StatementsPage-Pdhh6wDA-jwcjw1WZ.js → StatementsPage-BM5Glizw-CQVS_jKg.js} +6 -6
- package/dist/assets/{StatusSwitcher-CY3fhZpk-DDb6KoNb.js → StatusSwitcher-CtuL5COG-G6MVUY78.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BgzS4on6-Dwoyfu-k.js → SubTabSwitcher-DHiC-mOv-DT2nPRyj.js} +3 -3
- package/dist/assets/{SummaryCard-DB_r9qW_-DWYafO_s.js → SummaryCard-D4Me-qWU-DQUY-zeO.js} +1 -1
- package/dist/assets/{TaskManagementPage-B0gR2j1v-COQTSpG8.js → TaskManagementPage-D-F7ufTD-e1fJ4aPt.js} +34 -34
- package/dist/assets/{TimeRangeSwitcher-BbdpFsMU-BLzIMI-C.js → TimeRangeSwitcher-CGN9Hq2L-r0shmfu7.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-CUpsv6b1-DSn3wgUk.js → TimeframeSwitcher-BN4-ACoQ-D22kJoI6.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DZbOWm8e-yKyY1kGN.js → TimeframeSwitcherWithToggle-BkzCFclG-CPGMypUZ.js} +2 -2
- package/dist/assets/{TopExCard-Bn5xXUvj-CEaRP9sl.js → TopExCard-Wuzj4gLV-Dr3lX9dX.js} +5 -5
- package/dist/assets/{TopExDetailPage-DRjO-pGo-C3d4g0dQ.js → TopExDetailPage-DMYNc-gj-DbGIeoCc.js} +10 -10
- package/dist/assets/{TransactionDetailPage-L-yLO1SI-DqT88RlY.js → TransactionDetailPage-CcryBjJ4-DTQbu83x.js} +43 -43
- package/dist/assets/{TransactionList-CSb5yqQj-D5O9i1eU.js → TransactionList-BrOpzi25-Db-4cinW.js} +9 -9
- package/dist/assets/{TransactionListBig-f2x4xrky-DSDJ_EXD.js → TransactionListBig-D6QMNaV6-CAdEtJgN.js} +26 -26
- package/dist/assets/TransactionListPage-BB_LkPKR-hsIp58b2.js +35 -0
- package/dist/assets/TransactionVendorDetailPage-RajWBB1I-BdySPl7M.js +80 -0
- package/dist/assets/TransferDrawerPage-D-KFK0BM-lEsdgmBR.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-B01cSfUQ-kSH9i23n.js → TreasuryOverviewPage-EDaXKMNQ-CrrmzIet.js} +59 -59
- package/dist/assets/{TreasuryPromoPage-DC46ObGy-6BFpTzC9.js → TreasuryPromoPage-Brja4nGR-DglH7Il8.js} +26 -25
- package/dist/assets/{TreasurySetupPage-CiIqfQLR-Zvu7PlM8.js → TreasurySetupPage-8ZXXBvyU-l9-yURTU.js} +9 -9
- package/dist/assets/{TreasuryStatementsPage-C_pfPvgz-CvRKmTd0.js → TreasuryStatementsPage-BjT1FVfa-wIBwl3Q0.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-D-4Ntky2-CbNYYuLW.js → TreasuryTaxLetterPage-Cxk8TjrI-DPLTc42N.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-DrNld8H2-DCvG8LPc.js +506 -0
- package/dist/assets/{TrendChart-DKIa4o8k-VO_JzwoY.js → TrendChart-D2B0mwGW-BG_v97N6.js} +5 -5
- package/dist/assets/{TrendWithTransactions-BumhCIjm-Yg7fpcN4.js → TrendWithTransactions-Ch8smOOz-jen0aqye.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-C4Njvj_H-DLrR6DBY.js → UncategorizedAccountsMappingPage-CCIn9g7v-pUmVA_Xq.js} +8 -8
- package/dist/assets/{UnitIntegrationPage-D_tfUXdS-Cl4gvNRF.js → UnitIntegrationPage-SY0L_D7Z-Cbnt8xFH.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-CSdTPTA3-D_QTNdVG.js → UploadAdditionalDocumentOverlay-BowxerPw-ByoVxHT3.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-DgKVft1G-BbWcKAyH.js → Vendor2FAPopup-DvWVDx58-nCTKo0G7.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DdAbrbpS-CaSYamcy.js → VendorACHDetailsPage-Ba1oMHkp-BxaJZz_l.js} +1 -1
- package/dist/assets/{VendorDetailPage-CSPbUx-h-BA4BV8lD.js → VendorDetailPage-CjBeVAkw-CNG6GTiT.js} +12 -12
- package/dist/assets/{VendorDomesticWireDetailsPage-GODvpEne-B7JWdU5P.js → VendorDomesticWireDetailsPage-DJcyNUun-B_mMtp62.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-ByfEwSZJ-3EJs6Pdf.js → VendorFiling1099EditablePage-CUWkLY0f-CFmjh1GG.js} +10 -10
- package/dist/assets/{VendorFirstReviewPage-B2-UtNMO-BpFbEEFE.js → VendorFirstReviewPage-XUgEai-M-DTz6r_sf.js} +14 -14
- package/dist/assets/{VendorInternationalWireDetailsPage-DSziQ0jO-JD1dzlHt.js → VendorInternationalWireDetailsPage-BgHCBv0S-CqCl2AuO.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dqc7XLbW-XxvhKcbT.js → VendorInternationalWireSwiftDetailsPage-axseacZL-DJ6kdu0R.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BLwMi5AB-CCLynqTL.js → VendorsAccountsSection-oYghWvs6-YBKazVEG.js} +4 -4
- package/dist/assets/VerifyDevice-XUExnmR9-Dvl0QizA.js +67 -0
- package/dist/assets/{WarningsDrawerPage-3h7UME3Y-DNttzlAa.js → WarningsDrawerPage-B1his2AN-wDPc6ygf.js} +11 -11
- package/dist/assets/{ZeniAccountDetailPage-Dn70Xhjm-D4MEKJZT.js → ZeniAccountDetailPage-B21kawRR-cYQnKtb2.js} +26 -26
- package/dist/assets/{ZeniAccountListViewPage-C7CX6-Bl-CV3TlLO2.js → ZeniAccountListViewPage-D9lefqbT-BqcU0pmn.js} +26 -26
- package/dist/assets/ZeniAccountNavBarPieces-5yZFq-zt-jLGGdcn1.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-CLufbB-B-BJ_7DF1e.js → ZeniAccountPromoPage-B8aWqCOQ-CKv07I8x.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-rLdRA3Ld--977FCkZ.js → ZeniAccountSetupPage-BmFF5yvk-D-AdXd5I.js} +3 -3
- package/dist/assets/{ZeniCopyright-BItiuePl-C7k-X__M.js → ZeniCopyright-eQoaUH08-BVCPJkWr.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DYCK5UWr-DVAoQDrm.js → ZeniTransferAmountSlider-B6ftMZ_m-C-6X1EH-.js} +2 -2
- package/dist/assets/{analyticsHelper-D4zFEqKN-DzUQzUlK.js → analyticsHelper-Bns4muDg-CtVpldLz.js} +1 -1
- package/dist/assets/{analyticsHelper-ClYKq5_x.js → analyticsHelper-u4uoMPvS.js} +1 -1
- package/dist/assets/{chartTypes-yiqF7w9Y-BGOhcpTx.js → chartTypes-ZJYcsh-k-BCVVPSGZ.js} +1 -1
- package/dist/assets/{commonDimensions-PPvas5dK-BGZQSqLq.js → commonDimensions-NUQEpowf-g8lux_Te.js} +1 -1
- package/dist/assets/{detailCommon-mCAXI64G-BAwUCtmX.js → detailCommon-DMKakaa6-DVMNrgCv.js} +7 -7
- package/dist/assets/{downloadPdf-C3XpsGeN-DqiveqBb.js → downloadPdf-CNrmv_yZ-BgWfIYNz.js} +1 -1
- package/dist/assets/{index-BS9BhstZ.js → index-CnrHU8WN.js} +4373 -4206
- package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-DZpRS25q.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-7wU2HX2P-Dj0X-cbJ.js → mapLoadingInProgressToTreeNode-CwLhcXcQ-nJqrr22I.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dSxF1sWM-BmY0ko4z.js → mapSectionWithAcOnlyToTreeNode-D8iLkGEE-Bl5usORJ.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-1mXbBuNs-BE-8149w.js → mapSpacerToTreeNode-CF_gEYDy-aRE98CQL.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DXVQrusd-BAb1FqOY.js → mapTimeframeBalancesToTreeNode-B672MK55-v1Bjh3U8.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DtAULIDB-B4AiSiuC.js → mapTimeframeBalancesToTreeNode-Dp2QmYvb-Cr-c38Jl.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DAqn8gdX-DPgokZ5l.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaEMd-vj-CsyeIH1c.js} +1 -1
- package/dist/assets/mui-Bi8r7UDG.js +25 -0
- package/dist/assets/{play-icon-NvLdXSYk-BXzTREV-.js → play-icon-CgWP2Myd-BVsSsxSg.js} +1 -1
- package/dist/assets/{redux-ByjIRbhZ.js → redux-CC-tnuv1.js} +1 -1
- package/dist/assets/{routing-Cpaypegg.js → routing-CxYXTKiv.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-C9fWPLt9-B2HBMv4h.js → toCOABalancesWithID-DJNZCEmi-D5UU_YFX.js} +1 -1
- package/dist/assets/{toChartData-BMDCuCgs-CEUldhRx.js → toChartData-HYsxUPzh-De2YqXiL.js} +1 -1
- package/dist/assets/{treasuryColorHelper-COfuUI3C-D6JaGfR1.js → treasuryColorHelper-BgV2H9Kv-BBqEUahx.js} +1 -1
- package/dist/assets/{uploadAttachment-DSku547V-Dfv7WcEs.js → uploadAttachment-BgjFjkkw-DJYt86D-.js} +34 -34
- package/dist/assets/{uploadReceipts-D80JLNY4-B-E7WYbX.js → uploadReceipts-CwjPukNh-SrJVbi2t.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DyEK-yAb-CYzjb0P6.js +0 -21
- package/dist/assets/ApAgingDetailPage-C2HUvxWk-CmXftBCt.js +0 -46
- package/dist/assets/AppBasePage-C63xauck-B7uL-jnJ.js +0 -68
- package/dist/assets/BusinessVerificationPage-ClBQ39GB-lK0gfMrq.js +0 -140
- package/dist/assets/ChargeCardPromoPage-COA7csMK-Dhz6qtv_.js +0 -219
- package/dist/assets/CheckDepositDrawerPage-Cfdkbh0L-Cng8frow.js +0 -206
- package/dist/assets/CompleteProfile-Cp_nXCBI-BE9X5-eY.js +0 -36
- package/dist/assets/ConfettiBurst-tf23hrA_-zNQ15guQ.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DXWtttsb-B7v6_HN6.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-BTZovTIK-DGF3gicj.js +0 -66
- package/dist/assets/EditPeoplePage-D2zQG-_T-BitbZ9jO.js +0 -55
- package/dist/assets/FeaturePreviewPage-Bv0D92ik-C-aLsKYk.js +0 -11
- package/dist/assets/InsightsSection-CSG5sVaE-CIf6iKuS.js +0 -27
- package/dist/assets/InvitePeoplePage-By3sTPj1-D6QvW3zn.js +0 -12
- package/dist/assets/InvoiceUploadSection-B8OA6oqe-BVyTHteY.js +0 -140
- package/dist/assets/LabeledAddressValue-BJ1dXCb1-xOyKePQ9.js +0 -49
- package/dist/assets/LabeledAddressValueField-DZCn1w6m-DYHHw-KS.js +0 -45
- package/dist/assets/LabeledDocumentField-gxNaFx2j-B3wJNd8f.js +0 -41
- package/dist/assets/MagicLinkTitleSection-DdTLuD-8-2eGCS_tx.js +0 -17
- package/dist/assets/MailingDetailsSection-Bo_v3Gp2-BGvmU6P-.js +0 -21
- package/dist/assets/NavBarWithPicker-D0Bv9P4m-BQsnrfPP.js +0 -30
- package/dist/assets/NavigationDots-BfJxPG2K-CpLLe-k9.js +0 -14
- package/dist/assets/NotificationsListConfig-TCmn6L9k-LI7EhO_K.js +0 -1
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CBvjcBEH-CfnKIIUr.js +0 -106
- package/dist/assets/PortfolioAllocationFormPage-yvAHgF_R-D9k2f595.js +0 -207
- package/dist/assets/ReimbursementPromoPage-Dox8Q_BC-BCFx3nzd.js +0 -112
- package/dist/assets/RoleWithToolTip-Cob2-Ppj-Chor2yuB.js +0 -22
- package/dist/assets/TransactionListPage-XP6Axg1M-41ODaIRL.js +0 -35
- package/dist/assets/TransactionVendorDetailPage-CY9kUYZc-DGMwaOvo.js +0 -80
- package/dist/assets/TransferDrawerPage-DOMX4_HE-BJbzuBja.js +0 -362
- package/dist/assets/TreasuryTransferOrReviewPage-CjxiFUqO-CkGSBfSi.js +0 -506
- package/dist/assets/ZeniAccountNavBarPieces-Cl1zQVNd-Hw2Z1YcK.js +0 -14
- package/dist/assets/mui-C5LQ0bMa.js +0 -25
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import{e as ge,I as $t,j as o,$ as P,gR as bt,M as xe,a0 as W,J as Ee,m as Ke,a4 as et,o as t,C as f,a3 as Le,L as St,am as vt,u as jt,a2 as J,bx as At,cS as tt,X as R,l as z,f_ as kt,g as S,s as Tt,h as ot,d as X,n as Y,e_ as Pt,a as Ct,c7 as zt,F as Lt,fG as Dt,q as c,br as rt,c_ as nt,bL as it,cD as Ft,cu as Mt,fa as Rt,f2 as Bt,d6 as Ot,B as It,f3 as _t,dt as Et,c0 as Nt,b$ as Vt,aR as Wt,bd as Xt,fc as Yt,fl as Gt,ab as qt}from"./index-CnrHU8WN.js";import{n as r,b as x}from"./vendor-CnQcJ2Lu.js";import{V as at}from"./PortfolioDetails-CIv1yXo2-BXO78bZH.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-BgV2H9Kv-BBqEUahx.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ht=1e3;function Ut({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ht,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Qt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Zt(i)},children:o.jsx(io,{isSelected:l>=h,children:Kt(h)})},h))})]})}const Qt=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Zt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Kt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
|
|
2
|
+
width: 100%;
|
|
3
|
+
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
|
+
height: 2px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&[type="range"] {
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[type="range"]::-webkit-slider-thumb {
|
|
15
|
+
-webkit-appearance: none;
|
|
16
|
+
height: ${t.sp5};
|
|
17
|
+
width: ${t.sp5};
|
|
18
|
+
border-radius: 100%;
|
|
19
|
+
margin-top: -${t.sp3}; // Centers thumb on the track
|
|
20
|
+
box-shadow: ${t.sp0} ${t.sp0} 2px ${S.blackColor};
|
|
21
|
+
background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${e.theme.mode==="dark"?"light":"dark"}.svg)`};
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
`,to=r.div`
|
|
26
|
+
position: relative;
|
|
27
|
+
width: 70%;
|
|
28
|
+
margin-left: 30px;
|
|
29
|
+
margin-right: 30px;
|
|
30
|
+
margin-bottom: 20px;
|
|
31
|
+
margin-top: ${t.sp5};
|
|
32
|
+
min-height: ${t.sp8};
|
|
33
|
+
`,oo=r.div`
|
|
34
|
+
position: absolute;
|
|
35
|
+
height: 2px;
|
|
36
|
+
margin-top: -${t.sp2};
|
|
37
|
+
background-color: ${e=>e.theme.colors.hero};
|
|
38
|
+
`,ro=r.div`
|
|
39
|
+
position: absolute;
|
|
40
|
+
bottom: ${t.sp0};
|
|
41
|
+
top: ${t.sp5};
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
`,no=r.span`
|
|
46
|
+
position: absolute;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
transform: translateX(-50%);
|
|
49
|
+
`,io=r(X)`
|
|
50
|
+
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
`,ao=r(X)`
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: -${t.sp5};
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
color: ${S.primaryDark};
|
|
57
|
+
background-color: ${S.success};
|
|
58
|
+
display: flex;
|
|
59
|
+
border-radius: ${t.sp1};
|
|
60
|
+
justify-content: center;
|
|
61
|
+
align-items: center;
|
|
62
|
+
padding: 2px ${t.sp2};
|
|
63
|
+
`,H={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:_},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(qo,{}):o.jsx(Jo,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Go,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=J(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ne,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:_.reviewAndConfirm}),o.jsx(Xo,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Do,{}),o.jsx(Yo,{children:o.jsxs(o.Fragment,{children:[_.review.prefix,`"${T?.label}" `,_.success.midfix,` "${$?.label}" `,_.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Lo,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(Ne,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:_.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:so,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:_.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(No,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(_o,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ke,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
`,le=r(X)`
|
|
67
|
+
color: ${e=>e.theme.colors.hero};
|
|
68
|
+
`,ce=r(Y)`
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
`,$o=r.div`
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
width: 100%;
|
|
75
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
76
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
77
|
+
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
78
|
+
border-radius: ${t.sp2};
|
|
79
|
+
padding: ${e=>`${H.elementsContainerPadding.valuePx(e.windowSize)}`};
|
|
80
|
+
gap: ${t.sp4};
|
|
81
|
+
${e=>e.windowSize==="small"&&`
|
|
82
|
+
width: auto;
|
|
83
|
+
`}
|
|
84
|
+
`,bo=r.div`
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
|
|
89
|
+
width: 100%;
|
|
90
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
91
|
+
`,de=r.div`
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: ${t.sp1};
|
|
95
|
+
padding: ${t.sp2} ${t.sp3};
|
|
96
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
97
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
98
|
+
border-radius: ${t.sp2};
|
|
99
|
+
width: ${e=>e.windowSize==="small"?"auto":"288px"};
|
|
100
|
+
`,So=r.div`
|
|
101
|
+
padding: ${t.sp2} ${t.sp3};
|
|
102
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
103
|
+
border: 1px solid ${e=>e.theme.colors.grey1};
|
|
104
|
+
border-radius: ${t.sp2};
|
|
105
|
+
`,vo=r.div`
|
|
106
|
+
display: flex;
|
|
107
|
+
width: 100%;
|
|
108
|
+
justify-content: space-between;
|
|
109
|
+
padding: ${t.sp3} ${t.sp4};
|
|
110
|
+
background-color: ${S.importantLight};
|
|
111
|
+
border-radius: ${t.sp2};
|
|
112
|
+
`,jo=r.div`
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
margin-left: ${t.sp2};
|
|
116
|
+
`,Ao=r(it)`
|
|
117
|
+
color: ${S.important};
|
|
118
|
+
`,ko=r(Y)`
|
|
119
|
+
color: ${S.important};
|
|
120
|
+
`,To=r.div`
|
|
121
|
+
margin-top: ${t.sp3};
|
|
122
|
+
display: flex;
|
|
123
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
124
|
+
justify-content: space-between;
|
|
125
|
+
padding: ${t.sp3} ${t.sp4};
|
|
126
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
127
|
+
border-radius: ${t.sp2};
|
|
128
|
+
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
129
|
+
`,Po=r.div`
|
|
130
|
+
height: auto;
|
|
131
|
+
padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
132
|
+
padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
133
|
+
margin-bottom: auto;
|
|
134
|
+
`,Co=r.div`
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
`,zo=r.div``,Lo=r(nt)`
|
|
138
|
+
width: ${t.sp4};
|
|
139
|
+
height: ${t.sp4};
|
|
140
|
+
color: ${S.important};
|
|
141
|
+
`,Ne=r(Le)`
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
color: ${e=>e.theme.colors.hero};
|
|
144
|
+
width: ${t.sp4};
|
|
145
|
+
height: ${t.sp4};
|
|
146
|
+
min-height: ${t.sp4};
|
|
147
|
+
&:hover {
|
|
148
|
+
color: ${e=>e.theme.colors.primary};
|
|
149
|
+
}
|
|
150
|
+
`,Do=r.div`
|
|
151
|
+
display: flex;
|
|
152
|
+
flex: 1;
|
|
153
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
154
|
+
min-height: 1px;
|
|
155
|
+
max-height: 1px;
|
|
156
|
+
`,ue=r(X)`
|
|
157
|
+
color: ${e=>e.theme.colors.hero};
|
|
158
|
+
`,Fo=r.div`
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
padding-top: ${t.sp3};
|
|
162
|
+
padding-bottom: ${e=>`${H.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
163
|
+
`,Mo=r.div`
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: row;
|
|
166
|
+
justify-content: flex-end;
|
|
167
|
+
align-items: center;
|
|
168
|
+
width: 100%;
|
|
169
|
+
top: ${t.sp0};
|
|
170
|
+
padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
171
|
+
z-index: 2;
|
|
172
|
+
background-color: transparent;
|
|
173
|
+
`,Ro=r(ot)`
|
|
174
|
+
${e=>`${Ce.pageTitle.style(e.windowSize)}`};
|
|
175
|
+
color: ${e=>e.theme.colors.primary};
|
|
176
|
+
padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
|
|
177
|
+
${e=>e.windowSize==="small"&&`
|
|
178
|
+
padding-bottom: ${t.sp0};
|
|
179
|
+
`}
|
|
180
|
+
`,Bo=r(X)`
|
|
181
|
+
color: ${e=>e.theme.colors.hero};
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: row;
|
|
184
|
+
align-items: center;
|
|
185
|
+
gap: ${t.sp2};
|
|
186
|
+
`,Oo=r.span`
|
|
187
|
+
margin-left: ${t.sp2};
|
|
188
|
+
`,Ae=r.div``,Io=r(Xt)`
|
|
189
|
+
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
190
|
+
margin-left: ${t.sp1};
|
|
191
|
+
`,_o=r.div`
|
|
192
|
+
width: ${t.sp1};
|
|
193
|
+
height: ${t.sp1};
|
|
194
|
+
min-width: ${t.sp1};
|
|
195
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
196
|
+
border-radius: 50%;
|
|
197
|
+
`,Eo=r.img`
|
|
198
|
+
display: flex;
|
|
199
|
+
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
200
|
+
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
201
|
+
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
202
|
+
margin-right: ${t.sp2};
|
|
203
|
+
`,No=r.div`
|
|
204
|
+
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
205
|
+
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
206
|
+
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
207
|
+
margin-right: ${t.sp2};
|
|
208
|
+
`,Vo=r(Gt)`
|
|
209
|
+
min-width: inherit;
|
|
210
|
+
width: inherit;
|
|
211
|
+
height: inherit;
|
|
212
|
+
margin-right: ${t.sp2};
|
|
213
|
+
`,Ve=r.div`
|
|
214
|
+
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
215
|
+
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
216
|
+
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
217
|
+
margin-right: ${t.sp2};
|
|
218
|
+
`,We=r(Yt)`
|
|
219
|
+
min-width: inherit;
|
|
220
|
+
width: inherit;
|
|
221
|
+
height: inherit;
|
|
222
|
+
margin-right: ${t.sp2};
|
|
223
|
+
`,Wo=r.div`
|
|
224
|
+
width: ${e=>e.isForReview?t.sp6:t.sp4};
|
|
225
|
+
height: ${e=>e.isForReview?t.sp6:t.sp4};
|
|
226
|
+
margin-right: 12px;
|
|
227
|
+
margin-left: ${t.sp1};
|
|
228
|
+
color: ${e=>e.theme.colors.hero};
|
|
229
|
+
`,Xo=r(rt)`
|
|
230
|
+
color: ${e=>e.theme.colors.primary};
|
|
231
|
+
margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
|
|
232
|
+
${e=>e.windowSize==="small"&&`
|
|
233
|
+
margin-top: ${t.sp1};
|
|
234
|
+
margin-bottom: ${t.sp1};
|
|
235
|
+
`}
|
|
236
|
+
`,Yo=r(Y)`
|
|
237
|
+
color: ${e=>e.theme.colors.hero};
|
|
238
|
+
margin-top: ${t.sp3};
|
|
239
|
+
`,Go=r(Wt)`
|
|
240
|
+
width: ${t.sp4};
|
|
241
|
+
height: ${t.sp4};
|
|
242
|
+
color: ${e=>e.theme.colors.hero};
|
|
243
|
+
`,qo=r(Nt)`
|
|
244
|
+
width: ${t.sp4};
|
|
245
|
+
height: ${t.sp4};
|
|
246
|
+
color: ${e=>e.theme.colors.hero};
|
|
247
|
+
align-self: center;
|
|
248
|
+
`,Jo=r(Vt)`
|
|
249
|
+
width: ${t.sp4};
|
|
250
|
+
height: ${t.sp4};
|
|
251
|
+
color: ${e=>e.theme.colors.hero};
|
|
252
|
+
align-self: center;
|
|
253
|
+
`,pe=r.div`
|
|
254
|
+
width: 1px;
|
|
255
|
+
height: 25px;
|
|
256
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
257
|
+
position: absolute;
|
|
258
|
+
right: 50%;
|
|
259
|
+
bottom: -25px;
|
|
260
|
+
`,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Ho},billPay:{insufficientFunds:Xe}}}=xe.getLocalizedStrings(),st="amount",Uo="transferTo",Qo="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Zo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Q]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[Z,K]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[L,we]=x.useState(b.linkToken??null),[ee,De]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=J(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=J($e),Oe=J(be),Se=e.transferMoneyParties.map(s=>s.id),ve=J(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),De(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:G}=Pt({token:L,onSuccess:dt,onExit:ut}),q=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),G?te():De(!0)},[te,G]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ye(e,n,q),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==L&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,L]),x.useEffect(()=>{b.linkToken===L&&b.fetchStatus.fetchState==="Completed"&&G&&Me(!0)},[G,L,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ye(e,n,q))},[G,L,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,q]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const _e={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:_e,fromAccount:ne,toAccount:ie};Q(_e.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{K(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:D}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!D.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(D,j))return Xe.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(D,y.accountBalance.available))return Xe.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Ko,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:D,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Lt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,D),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Uo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>N(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Dt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:D.amount===0?void 0:D.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:D,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Ut,{interestRate:O,transferAmount:B,setYieldEarned:K,setTransferAmount:Q})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Z,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Je,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Je,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(qe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Ho.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Ko=r.div`
|
|
261
|
+
margin-top: ${t.sp3};
|
|
262
|
+
display: flex;
|
|
263
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
264
|
+
justify-content: space-between;
|
|
265
|
+
padding: ${t.sp3} ${t.sp4};
|
|
266
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
267
|
+
border-radius: ${t.sp2};
|
|
268
|
+
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
269
|
+
`,er=r.form`
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
justify-content: center;
|
|
273
|
+
align-items: center;
|
|
274
|
+
`,tr=r.div`
|
|
275
|
+
display: flex;
|
|
276
|
+
width: 100%;
|
|
277
|
+
justify-content: space-between;
|
|
278
|
+
padding: ${t.sp3} ${t.sp4};
|
|
279
|
+
background-color: ${S.importantLight};
|
|
280
|
+
border-radius: ${t.sp2};
|
|
281
|
+
`,or=r.div`
|
|
282
|
+
display: flex;
|
|
283
|
+
align-items: flex-start;
|
|
284
|
+
`,rr=r.div``,nr=r(nt)`
|
|
285
|
+
width: ${t.sp4};
|
|
286
|
+
height: ${t.sp4};
|
|
287
|
+
color: ${S.important};
|
|
288
|
+
`,ir=r.div`
|
|
289
|
+
display: flex;
|
|
290
|
+
flex-direction: column;
|
|
291
|
+
margin-left: ${t.sp2};
|
|
292
|
+
`,ar=r(it)`
|
|
293
|
+
color: ${S.important};
|
|
294
|
+
`,sr=r(Y)`
|
|
295
|
+
color: ${S.important};
|
|
296
|
+
`,lr=r(rt)`
|
|
297
|
+
color: ${e=>e.theme.colors.primary};
|
|
298
|
+
margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
|
|
299
|
+
${e=>e.windowSize==="small"&&`
|
|
300
|
+
margin-top: ${t.sp1};
|
|
301
|
+
margin-bottom: ${t.sp1};
|
|
302
|
+
`}
|
|
303
|
+
`,Ge=r(Ft)`
|
|
304
|
+
border-radius: ${t.sp2};
|
|
305
|
+
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
|
+
`,cr=r.div`
|
|
307
|
+
display: flex;
|
|
308
|
+
flex-direction: column;
|
|
309
|
+
width: 100%;
|
|
310
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
311
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
312
|
+
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
313
|
+
border-radius: ${t.sp2};
|
|
314
|
+
`,Pe=r.div`
|
|
315
|
+
display: flex;
|
|
316
|
+
flex: 1;
|
|
317
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
318
|
+
min-height: 1px;
|
|
319
|
+
max-height: 1px;
|
|
320
|
+
`,ze=r.div`
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: row;
|
|
323
|
+
padding: ${t.sp2};
|
|
324
|
+
padding-left: ${({size:e})=>g.rowContentSelectPaddingLeft.valuePx(e)};
|
|
325
|
+
justify-content: space-between;
|
|
326
|
+
color: ${e=>e.theme.colors.hero};
|
|
327
|
+
&:hover {
|
|
328
|
+
z-index: 1;
|
|
329
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
330
|
+
.select-control {
|
|
331
|
+
background-color: ${e=>e.theme.colors.background};
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
&:focus-within {
|
|
335
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
336
|
+
color: ${e=>e.theme.colors.primary};
|
|
337
|
+
z-index: 2;
|
|
338
|
+
outline: 1px solid ${e=>e.theme.colors.primary};
|
|
339
|
+
}
|
|
340
|
+
:first-of-type {
|
|
341
|
+
border-top-left-radius: inherit;
|
|
342
|
+
border-top-right-radius: inherit;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
${({size:e})=>e==="small"&&`
|
|
346
|
+
.select-value-container {
|
|
347
|
+
margin-right: ${t.sp1} !important;
|
|
348
|
+
}
|
|
349
|
+
`}
|
|
350
|
+
`,dr=r(ze)`
|
|
351
|
+
padding: ${({size:e})=>g.portfolioContainerPadding.valuePx(e)};
|
|
352
|
+
padding-top: ${t.sp2};
|
|
353
|
+
`,ur=r(Le)`
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
color: ${e=>e.theme.colors.hero};
|
|
356
|
+
width: ${t.sp4};
|
|
357
|
+
height: ${t.sp4};
|
|
358
|
+
min-height: ${t.sp4};
|
|
359
|
+
&:hover {
|
|
360
|
+
color: ${e=>e.theme.colors.primary};
|
|
361
|
+
}
|
|
362
|
+
`,pr=r.div`
|
|
363
|
+
margin-bottom: ${t.sp6};
|
|
364
|
+
width: 90%;
|
|
365
|
+
`,hr=r.div`
|
|
366
|
+
background-color: ${e=>e.theme.colors.background};
|
|
367
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
368
|
+
border-top: none;
|
|
369
|
+
min-height: 182px;
|
|
370
|
+
display: flex;
|
|
371
|
+
justify-content: center;
|
|
372
|
+
align-items: center;
|
|
373
|
+
flex-direction: column;
|
|
374
|
+
`,mr=r(Y)`
|
|
375
|
+
color: ${e=>e.theme.colors.hero};
|
|
376
|
+
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
377
|
+
white-space: pre-line;
|
|
378
|
+
text-align: center;
|
|
379
|
+
`,fr=r.div`
|
|
380
|
+
${e=>me.yieldEarned.style(e.windowSize)}
|
|
381
|
+
color: ${S.success};
|
|
382
|
+
white-space: nowrap;
|
|
383
|
+
`,gr=r.div`
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
387
|
+
justify-content: space-between;
|
|
388
|
+
padding: ${t.sp2} ${t.sp3};
|
|
389
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
390
|
+
border-bottom-right-radius: ${t.sp1};
|
|
391
|
+
border-bottom-left-radius: ${t.sp1};
|
|
392
|
+
`,xr=r.div`
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-direction: row;
|
|
395
|
+
align-items: center;
|
|
396
|
+
`,qe=r.div`
|
|
397
|
+
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
|
+
color: ${e=>e.theme.colors.hero};
|
|
399
|
+
cursor: pointer;
|
|
400
|
+
`,Je=r.div`
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: row;
|
|
403
|
+
align-items: center;
|
|
404
|
+
gap: 6px;
|
|
405
|
+
align-self: ${e=>e.windowSize==="small"?"flex-end":"center"};
|
|
406
|
+
&:hover {
|
|
407
|
+
.calculatorFooterLeftText {
|
|
408
|
+
color: ${e=>e.theme.colors.primary};
|
|
409
|
+
}
|
|
410
|
+
.calculatorFooterArrowIcon {
|
|
411
|
+
color: ${e=>e.theme.colors.primary};
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
`,wr=r.div`
|
|
415
|
+
display: ${e=>e.windowSize==="small"?"none":"block"};
|
|
416
|
+
width: ${t.sp1};
|
|
417
|
+
height: ${t.sp1};
|
|
418
|
+
min-width: ${t.sp1};
|
|
419
|
+
margin: 0 ${t.sp2};
|
|
420
|
+
background-color: ${e=>e.theme.colors.grey1};
|
|
421
|
+
border-radius: 50%;
|
|
422
|
+
`,yr=r.div`
|
|
423
|
+
display: flex;
|
|
424
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
425
|
+
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
426
|
+
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
427
|
+
`,$r=r(It)`
|
|
428
|
+
color: ${e=>e.theme.colors.hero};
|
|
429
|
+
`,br=r(_t)`
|
|
430
|
+
cursor: pointer;
|
|
431
|
+
width: 12px;
|
|
432
|
+
height: 12px;
|
|
433
|
+
min-width: 12px;
|
|
434
|
+
min-height: 12px;
|
|
435
|
+
color: ${e=>e.theme.colors.hero};
|
|
436
|
+
`,Sr=r(Et)`
|
|
437
|
+
cursor: pointer;
|
|
438
|
+
width: 12px;
|
|
439
|
+
height: 12px;
|
|
440
|
+
min-width: 12px;
|
|
441
|
+
min-height: 12px;
|
|
442
|
+
color: ${e=>e.theme.colors.hero};
|
|
443
|
+
`,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},vr={formTitle:new R("h6Regular","h5Regular")},{common:He,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Xr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Q,fetchState:O}=a,Z=Q.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},K=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:L,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ue,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${L?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:Z,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ue,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Zo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Z,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ke,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),K()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:He.review},cancelBtn:{label:He.cancel,onClick:()=>{h()}}}):null]})})},jr=r(Y)`
|
|
444
|
+
color: ${e=>e.theme.colors.hero};
|
|
445
|
+
`,Ar=r(X)`
|
|
446
|
+
color: ${e=>e.theme.colors.hero};
|
|
447
|
+
`,kr=r.div`
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
451
|
+
overflow-x: hidden;
|
|
452
|
+
height: 100vh;
|
|
453
|
+
width: 100%;
|
|
454
|
+
`,Tr=r(St)`
|
|
455
|
+
color: ${e=>e.theme.colors.primary};
|
|
456
|
+
text-align: center;
|
|
457
|
+
`,Pr=r(vt)`
|
|
458
|
+
display: inline;
|
|
459
|
+
`,Ue=r.div`
|
|
460
|
+
height: ${e=>e.isTransferCompleted?"100%":"auto"};
|
|
461
|
+
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
462
|
+
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
463
|
+
margin-bottom: auto;
|
|
464
|
+
`,Cr=r.div`
|
|
465
|
+
display: flex;
|
|
466
|
+
justify-content: center;
|
|
467
|
+
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
468
|
+
margin-top: ${t.sp6};
|
|
469
|
+
gap: ${e=>`${U.buttonTrayGap.valuePx(e.windowSize)}`};
|
|
470
|
+
`,zr=r.div`
|
|
471
|
+
height: 80%;
|
|
472
|
+
display: flex;
|
|
473
|
+
flex-direction: column;
|
|
474
|
+
justify-content: center;
|
|
475
|
+
margin: ${e=>`${t.sp0} ${U.successContentMargin.valuePx(e.windowSize)}`};
|
|
476
|
+
align-items: center;
|
|
477
|
+
`,Qe=r.div`
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: row-reverse;
|
|
480
|
+
justify-content: space-between;
|
|
481
|
+
align-items: center;
|
|
482
|
+
width: 100%;
|
|
483
|
+
top: ${t.sp0};
|
|
484
|
+
padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
485
|
+
z-index: 2;
|
|
486
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
487
|
+
`,Ze=r(Le)`
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
color: ${e=>e.theme.colors.hero};
|
|
490
|
+
width: ${t.sp4};
|
|
491
|
+
height: ${t.sp4};
|
|
492
|
+
min-height: ${t.sp4};
|
|
493
|
+
&:hover {
|
|
494
|
+
color: ${e=>e.theme.colors.primary};
|
|
495
|
+
}
|
|
496
|
+
`,Lr=r(Tt)`
|
|
497
|
+
color: ${e=>e.theme.colors.primary};
|
|
498
|
+
margin-top: ${t.sp3};
|
|
499
|
+
margin-bottom: ${t.sp0};
|
|
500
|
+
margin-right: ${t.sp3};
|
|
501
|
+
`,Dr=r(ot)`
|
|
502
|
+
${e=>`${vr.formTitle.style(e.windowSize)}`};
|
|
503
|
+
color: ${e=>e.theme.colors.primary};
|
|
504
|
+
margin-top: ${t.sp3};
|
|
505
|
+
margin-bottom: ${t.sp2};
|
|
506
|
+
`;export{Xr as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{M as
|
|
1
|
+
import{M as $,j as n,l as u,u as Z,$ as Y,aj as z,b6 as B,b7 as F,aw as P,v as k,av as R,ab as O,b8 as q,ax as _,ba as G,o as L,g as K,n as N}from"./index-CnrHU8WN.js";import{b as v,f as V,n as w}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as J}from"./chartTypes-ZJYcsh-k-BCVVPSGZ.js";import{o as Q}from"./toCOABalancesWithID-DJNZCEmi-D5UU_YFX.js";import{V as X}from"./toChartData-HYsxUPzh-De2YqXiL.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const H=w.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,
|
|
3
|
+
`,I=w.div`
|
|
4
4
|
flex: display;
|
|
5
5
|
opacity: 0.85;
|
|
6
6
|
border-radius: ${L.sp1};
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
padding: ${L.sp3};
|
|
9
9
|
background-color: ${e=>e.theme.colors.black};
|
|
10
|
-
`,U
|
|
11
|
-
color: ${e=>e.color??
|
|
10
|
+
`,U=w(N)`
|
|
11
|
+
color: ${e=>e.color??K.neutralGrey2Light};
|
|
12
12
|
text-align: left;
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: space-between;
|
|
16
|
-
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${J(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=Q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,X(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),j=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:b}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=Z(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);b(o)}else b([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=M(E,p,1);b(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),n.jsx(q,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as D,j as i,m as R,o as t,M as b,C as c,$ as S,aj as q,am as Y,c4 as E,q as a,n as K,a3 as V}from"./index-CnrHU8WN.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import W from"./TrendChart-D2B0mwGW-BG_v97N6.js";import{C as _}from"./NoDataChart-BUR7CF8w-JBqV9jC1.js";import{B as J}from"./InsightsSection-C-kpIvRH-CdqlGqmg.js";import{d as X}from"./TransactionList-BrOpzi25-Db-4cinW.js";const Z=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
|
-
`,
|
|
3
|
+
`,G=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
@@ -19,14 +19,14 @@ import{X as D,j as i,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c0 as E,
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
`,U=n(K)`
|
|
21
21
|
margin-right: ${t.sp2};
|
|
22
|
-
`,ee=n(
|
|
22
|
+
`,ee=n(V)`
|
|
23
23
|
width: ${t.sp3};
|
|
24
24
|
height: ${t.sp3};
|
|
25
25
|
color: inherit;
|
|
26
26
|
&:hover {
|
|
27
27
|
color: inherit;
|
|
28
28
|
}
|
|
29
|
-
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(
|
|
29
|
+
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(Z,{children:i.jsx(G,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex: 1 1 auto;
|
|
32
32
|
width: 100%;
|
|
@@ -45,7 +45,7 @@ import{X as D,j as i,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c0 as E,
|
|
|
45
45
|
justify-content: center;
|
|
46
46
|
align-items: center;
|
|
47
47
|
margin-top: ${t.sp8};
|
|
48
|
-
`;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(
|
|
48
|
+
`;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:p,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const j=s==="In-Progress"||s==="Not-Started",w=d.length===0&&j,v=d.length>0&&j,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:w===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:p})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(X,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,componentName:"trend.transactions.list",onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},P={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
|
|
49
49
|
display: flex;
|
|
50
50
|
flex: 1 1 auto;
|
|
51
51
|
min-height: 100%;
|
|
@@ -113,4 +113,4 @@ import{X as D,j as i,c as R,o as t,M as b,C as c,_ as S,aj as q,am as Y,c0 as E,
|
|
|
113
113
|
align-items: center;
|
|
114
114
|
height: ${e=>P.loaderTrendChartHeight.valuePx(e.windowSize)};
|
|
115
115
|
margin-top: ${t.sp8};
|
|
116
|
-
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(
|
|
116
|
+
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},j="month",w=u?.timeframe==="month",v=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(ve,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(_,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:j,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{p?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(J,{insights:h?.insights})})]})},H=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),B=f=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?P.emptyTrendChartHeight.value($):P.trendChartHeight)+(w===!0?P.selectedTimeHeight:0)+x+f};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(je,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(Pe,{windowSize:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:B(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const Pe=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};
|