@zeniai/web-cockpit-ui 1.14.8-qa → 1.14.9-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-D6-Uk4xr-CeqQrapw.js +21 -0
- package/dist/assets/{AIPerformancePage-BnHyhoNh-DoVAXoi7.js → AIPerformancePage-pQP8EI_S-BrFMBRrD.js} +49 -49
- package/dist/assets/{AccountInfoPage-ehy9LEs3-DH-t9Pbc.js → AccountInfoPage-DxAa9GD7-Dfa6wrJJ.js} +5 -5
- package/dist/assets/{AccountInfoPageContent-BpNoLQEh-D1PyOAvc.js → AccountInfoPageContent-tNTpX5pA-DjayDMt-.js} +19 -19
- package/dist/assets/{AccountReconDetailsDrawerPage-KuO_6NjT-DcGIYB3C.js → AccountReconDetailsDrawerPage-CbZaDfU0-CcRJAIjR.js} +12 -12
- package/dist/assets/{AccountRow-CKtmIbKO-Cn4F2YVA.js → AccountRow-BpBK8mVs-BpLiFAfl.js} +34 -34
- package/dist/assets/{AccountsPromoCardStack-BKVvUpdv-BgQY7tCS.js → AccountsPromoCardStack-DBCYok4Z-CTvK9ol0.js} +34 -34
- package/dist/assets/{AddAddressForCardDrawer-BebYNJoP-DALw-3Kg.js → AddAddressForCardDrawer-BP8sDedz-Cyy42m8j.js} +2 -2
- package/dist/assets/{AddToWalletPage-BQfPsknz-Djhi71LK.js → AddToWalletPage-Dsw1GIbh-BWT0p2X4.js} +23 -23
- package/dist/assets/{AgingReportsPage-DkCyQw18-QyVcjTLn.js → AgingReportsPage-COC3iACh-DWTKYyEZ.js} +8 -8
- package/dist/assets/{AllUserItems-D-FQ96gE-FOuZsqBd.js → AllUserItems-DKoDASKq-C3X9voUZ.js} +12 -12
- package/dist/assets/{ApAgingDetailPage-EI4Kx_Xo-CSmrVUcC.js → ApAgingDetailPage-BKAJMyRm-D5itHJkN.js} +3 -3
- package/dist/assets/{AppBasePage-D4QmiB4N-CkS7NnLk.js → AppBasePage-6fgXwSBv-BcdijNRH.js} +6 -6
- package/dist/assets/{AppDrawerContent-BF8Abz2Y-BZDX71bm.js → AppDrawerContent-DnYw60Xv-DVfaLuiW.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-tsucbdIk-BZEqnWOw.js → ApprovalRulesSettingsPage-X4EYoBfl-DJlv7sgG.js} +4 -4
- package/dist/assets/{ArAgingChart-CIZs2s3O-3kn6pTqp.js → ArAgingChart-CNghm3pm-DjM8SIw0.js} +4 -4
- package/dist/assets/ArAgingDetailPage-DD4M5tUJ-BIie3PxH.js +46 -0
- package/dist/assets/{AttachmentView-Bpla0aBf-B-2iKa23.js → AttachmentView-Bp678glv-CcwszQ4j.js} +8 -8
- package/dist/assets/{BankAccountSection-DhDiqg0D-SPxWK2Rc.js → BankAccountSection-DCHOrv1O-Bh0iIOZd.js} +8 -8
- package/dist/assets/{BankAccountWarningSection-_BSb8rEd-BpYk8E0V.js → BankAccountWarningSection-Bof6a4Ai-Le7ZNeNV.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-ovzOgVIi-BW51phjE.js → BankConnectionsSettingsPage-KWPfd_oN-Cz_k2DuV.js} +11 -11
- package/dist/assets/{BillDetailPage-C6NJGbua-BZZMCxWn.js → BillDetailPage-D5FyJKQZ-BlAJL18t.js} +9 -9
- package/dist/assets/{BillPayApprovalRuleDetailPage-DK34f2_B-DAGC2UNQ.js → BillPayApprovalRuleDetailPage-C17DUKc8-BgGr2d58.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-uT7vadIp-DUpqngyj.js → BillPayApprovalRulesPage-C6b0Dx9D-cJ5X1Ao3.js} +12 -12
- package/dist/assets/{BillPayPromoPage-DyvWrXiT-CSdpqI4C.js → BillPayPromoPage-BhbcKNjD-DVOKT8gz.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-DQUGXwzL-br7_XPym.js → BillPaySetUpPage-DFkYsW2C-Ef9yzHlC.js} +1 -1
- package/dist/assets/{BillingSettingsPage-zTBJHq7Y-B4tEAStV.js → BillingSettingsPage-DQ-GDRoK-BN2BrN1e.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-qYfFPFRf-Gr_v-DoN.js → BillsBulkReviewDrawerPage-DzTwDeIy-DlWXOHce.js} +1 -1
- package/dist/assets/{BoxItem-CTPuYGrU-Db0vwVyl.js → BoxItem-a04JWA45-dnHge8K2.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BFJpNsiW-CZuaO3uB.js → BusinessVerificationPage-BCr_ObVJ-Eujn_xjK.js} +11 -11
- package/dist/assets/{CardNumberSubText-LPyLf3pY-Uc_p5Qev.js → CardNumberSubText-B5ejHnml-CUeVOSrR.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ByJDF7cH-Xbit-3YQ.js → CashbackDetailPage-DX_XsNhS-Bzpfl8cB.js} +26 -26
- package/dist/assets/{ChargeCardDetailPage-DjbwN3eA-DiErNhjG.js → ChargeCardDetailPage-Ckbi7U9j-CdVBQ74Q.js} +47 -47
- package/dist/assets/{ChargeCardListPage-BcFdegbn-HYasz6jv.js → ChargeCardListPage-CglfbPqr-CRMUlviS.js} +21 -21
- package/dist/assets/{ChargeCardListTable-BIOmPiWw-DdJK2d64.js → ChargeCardListTable-BxAeA97m-NkbDhG0R.js} +31 -31
- package/dist/assets/ChargeCardPromoPage-BfsQUUYb-DNr9KB3C.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-DCjJd2bu-BHadsvrA.js → ChargeCardSetupPage-Bq953HsV-BrJdqoor.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-YZLslSfM-CXArzeF5.js → ChargeCardStatementsPage-B_5uvkaq-DtYdEDYL.js} +10 -10
- package/dist/assets/ChargeCardUtils-Bivw83fy-Bdwydcao.js +1 -0
- package/dist/assets/{ChaseOverlay-D5CGgOY9-SQ5Kacn2.js → ChaseOverlay-LcVAgdoT-0XHNPxVs.js} +8 -8
- package/dist/assets/CheckDepositDrawerPage-SpI62oU7-C05CPIor.js +206 -0
- package/dist/assets/{CollapsableReportTable-UQFDb8XE-prrDdDgf.js → CollapsableReportTable-CKmPwC_x-C8Lt_vH6.js} +71 -71
- package/dist/assets/{CompanyOfficerDetailsSection-CHSL02sQ-9KYjMp1S.js → CompanyOfficerDetailsSection-BlLsNJaD-BOEy651b.js} +27 -27
- package/dist/assets/{CompanyPassportCard-Byoyj6z--DL9or2iC.js → CompanyPassportCard-ElwK6uOD-7Q4qVOCI.js} +8 -8
- package/dist/assets/{CompanyPassportPage-CJzVGPMf-DcASC_GH.js → CompanyPassportPage-B6mGjsJZ-CCD6_RmJ.js} +7 -7
- package/dist/assets/CompleteProfile-C1PIn6EM-CTXp8NqS.js +52 -0
- package/dist/assets/{ConfettiBurst-C6in2R-G-DTnWnZ65.js → ConfettiBurst-CjhkW_Be-a-0gg6hW.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-HV8sXBZp-SuBKCmwC.js → CreateOrEditVendorPage-DHvmRSee-DyHg8sv-.js} +17 -17
- package/dist/assets/{CreditCardPaymentDrawerPage-CcN3B0mF-Ba_WpzLN.js → CreditCardPaymentDrawerPage-BIaTYAUf-BJKS1Xg5.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-dBWHuBiS-BACapGIK.js → CreditCardPaymentPlgSection-mUqReF9z-B3e-bx38.js} +12 -12
- package/dist/assets/CurrencySelectField-DS-pGcuE-B8Th0xai.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-Bf64O2cX-CH6EjGmX.js → CustomerOnboardingActivationPage-CIOyRd8r-BvpBK8oP.js} +5 -5
- package/dist/assets/CustomerOnboardingContainerPage-Lh0xH_Pl-DxUzrS2W.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DbbrMwW5-BJCRpEnv.js → CustomerOnboardingDetailPageSkeleton-A_l9Qen8-CVPLXGlA.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-DZGpH4MZ-ANcIBmva.js → CustomerOnboardingNoStepsPage-D5BcbVEK-DtpdUI3d.js} +12 -12
- package/dist/assets/{CustomerOnboardingPage-BfJlxXNX-DYLig9b3.js → CustomerOnboardingPage-N-8Zd7M_--DUVLv6J.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-BJIVmVlG-BOFmXOV0.js → CustomerOnboardingProductSuitePage-DZwacur5-B-LHGIjv.js} +10 -10
- package/dist/assets/{Dashboard-fGyiceKA-DEZsw7NQ.js → Dashboard-CQoNm84Z-BlWn7yKc.js} +1 -1
- package/dist/assets/{DashboardReportPage-DL5dB1SI-naji3HXI.js → DashboardReportPage-D4BoWobJ-C2YNUFo_.js} +26 -26
- package/dist/assets/{DepositAccTransactionItem-Dyfob6gX-GHD2_9RJ.js → DepositAccTransactionItem-C6_OrohL-BctgXIh4.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-Cxvs7tMg-BaXyAnSD.js +66 -0
- package/dist/assets/{DocumentSecurityBanner-rDtPu8vH-Buq_mYzl.js → DocumentSecurityBanner-Bo9Hgo-I-Bzt_B0eo.js} +2 -2
- package/dist/assets/DomesticWireDetailsPage-DzKlJFvy-BX_oKeIy.js +21 -0
- package/dist/assets/{DownloadOverlay-Dk9PoZlP-DZ1Ufp4j.js → DownloadOverlay-BoIyiJ9R-BrnDYpeT.js} +25 -25
- package/dist/assets/{DrawerPage-BSa6DJZr-qMMFBQ70.js → DrawerPage-C_kxrXIc-B47jWjBF.js} +6 -6
- package/dist/assets/EditPeoplePage-auUWC3gB-CIBEluO-.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DemIPGJ5-__tbtGcV.js → EditReimbursementDetailPage-C-Lj-_YG-CoM1L892.js} +68 -68
- package/dist/assets/{EntityDetailPage-C_luSjQJ-gU0CuHmw.js → EntityDetailPage-Cqkhzu9O-Cy317TdY.js} +3 -3
- package/dist/assets/{EntitySummarySection-BjoUr41l-C7FPAHha.js → EntitySummarySection-Dqgxknt6-C08jERYS.js} +7 -7
- package/dist/assets/ExpenseAutomationOverviewPage-CEsyeJ9u-Vd2vztPv.js +221 -0
- package/dist/assets/{ExpenseAutomationPage-CxTfHxhm-Ce5XWAmD.js → ExpenseAutomationPage-DxpK2JR5-zaigWkmt.js} +84 -84
- package/dist/assets/{ExpressPayPage-B9teVxc8-JoQIdUjx.js → ExpressPayPage-DBWJERD9-D7zx7vAW.js} +11 -11
- package/dist/assets/FeaturePreviewPage-CwGJVCMk-DPpp1EJs.js +11 -0
- package/dist/assets/{FollowStepsSection-ICp_6TcX-lhJdYmhw.js → FollowStepsSection-BrJecw-e-Bk-7Uig2.js} +16 -16
- package/dist/assets/{GlobalReviewListPage-CaSIQgOY-DGdAs5fa.js → GlobalReviewListPage-Duoi9mD_-B5ChLMfc.js} +8 -8
- package/dist/assets/HelpButton-C1djo0zO-B5bfUp0e.js +28 -0
- package/dist/assets/{InformationCardStack-B3zlnZE6-wDwMcmy4.js → InformationCardStack-BE5eaq-x-Crr0tqqP.js} +4 -4
- package/dist/assets/InsightsCardStack-EzAsNm_U-DfKOAZLK.js +79 -0
- package/dist/assets/InsightsSection-nzKuS0T9-ByBm7jVR.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-CfOJp2rR-b04C5x62.js → IntegrationsSettingsPage-45ETlpC6-C_HFfR6E.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-BPckWTQy-B8QALhVW.js → InternationalWireSwiftDetailsPage-B21X5YFS-v1SDxw_E.js} +16 -16
- package/dist/assets/{InternationalWireVerificationPage-IyDI0e1n-DYga7XgS.js → InternationalWireVerificationPage-BzagdPaG-Ce-XXExi.js} +16 -16
- package/dist/assets/InviteFormPage-BNdBP-Mm-BVag9HjS.js +312 -0
- package/dist/assets/{InvitePageListView-BD4bJtvG-BRd9Y_Kk.js → InvitePageListView-ChzmK7Rt-KU08naj0.js} +56 -56
- package/dist/assets/InvitePeoplePage-DgqE2Y-0-buE5QoYo.js +12 -0
- package/dist/assets/InvoiceUploadSection-B8o-l15n-fgJ3TPQe.js +140 -0
- package/dist/assets/{IssueChargeCardPage-U5Z_OXsd-BhI60CC3.js → IssueChargeCardPage-BW0cXQqh-BNiBD72l.js} +27 -27
- package/dist/assets/{LabeledAddressValue-DaabTZGG-CqS6aLkw.js → LabeledAddressValue-BioQUVCV-Ci7O77nb.js} +1 -1
- package/dist/assets/LabeledAddressValueField-Cw-p18du-Bo-V2QDq.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-Cb9kJIyY-COWwT1U9.js → LabeledControlledCheckBoxField-CGT7KsYZ-DgeZ_i9R.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BtboN2bE-CcyM7B_l.js → LabeledCreatableSingleSelectField-nys9pbO0-CMEO01ob.js} +3 -3
- package/dist/assets/{LabeledDocumentField-BKVHT_ih-BbSYSMIO.js → LabeledDocumentField-Y6TKpyZ8-BuT0ctts.js} +6 -6
- package/dist/assets/{LabeledDropDownFormattedTextField-CLUZVQCI-Dl18KotR.js → LabeledDropDownFormattedTextField-DWP9oUzM-WiGk1iqj.js} +7 -7
- package/dist/assets/{LabeledText-DXlb_cAu-26-Tc-oj.js → LabeledText-QrjXGWwJ-Dns3vhj9.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CqC0Fbjb-BK4Vd4sO.js → LabeledUserSingleSelectWithSubtitlesField-BK9XCXKo-HpHIU6gJ.js} +19 -19
- package/dist/assets/{LabeledZeniRolesDropDownField-Dbyg4yxA-NVxw40X2.js → LabeledZeniRolesDropDownField-C2PAZOPW-D2ClY0nA.js} +13 -13
- package/dist/assets/{LinkJETransactionPage-D8sX4v-7-CmubcDag.js → LinkJETransactionPage-BF6-BdWE-0mWta2_j.js} +14 -14
- package/dist/assets/{LowBalancePopup-fUydozi0-2AZsW6gw.js → LowBalancePopup-ZZ8Ap8Ls-CUcLGXHK.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-BiZxVBT2-BgQoBLsN.js → MagicLinkACHDetailsPage-BDXiOwx_-heuH3284.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BO-mlqRp-BlYGqRnm.js → MagicLinkDomesticWireDetailsPage-B1-CK91r-DNpil-qE.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BSwmG-gt-DpW5Ke9F.js → MagicLinkInternationalWireDetailsPage-D2rnWzME-COZliqJF.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-IHajRicG-E30AHkHR.js +31 -0
- package/dist/assets/MagicLinkTitleSection-CmTUPCA1-HqjTGids.js +17 -0
- package/dist/assets/MailingDetailsSection-AiehjqI1-XJzpQDBu.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-BbCahdTF-B4UmM4rW.js → MeetingCalenderPopup-COpKcBhx-C-pHGrQ-.js} +1 -1
- package/dist/assets/{Menu-gdxz6nzv-HHbN6l47.js → Menu-frAXxk4e-D5SfikJ6.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-B-kZp6kY-CrYyL8sp.js → MyBankConnectionsSettingsPage-BtC6C9fL-CtnjHCxG.js} +16 -16
- package/dist/assets/{MyPendingActivationChargeCardListPage-Cux0Zc6M-U6q4U480.js → MyPendingActivationChargeCardListPage-tXIpyxdq-Dn16KiS3.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DlPCGOud-BVB3R6j6.js → MyProfileSettingsPage-BmMskLyK-cowVJjjg.js} +8 -8
- package/dist/assets/{NavBarWithPicker-DgFXO4Py-Dggil03U.js → NavBarWithPicker-ByLynfu6-CWL0M7cv.js} +5 -5
- package/dist/assets/{NavigationArrow-DfB1s0Kl-BnJi_C3J.js → NavigationArrow-D5-YpdfE-COs0SRq4.js} +5 -5
- package/dist/assets/{NavigationDots-B12u1DHV-D5jJBUMR.js → NavigationDots-MA8SVlUT-BxTCncjA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-C4ljSG4I-DDFyWznX.js → NewGlobalMerchantPage-DtTW2Du8-vSXCZvgc.js} +19 -19
- package/dist/assets/NoDataChart-BdzVnx59-DBpJ4L1_.js +26 -0
- package/dist/assets/{NoDataTable-BsEI7aoI-wkC2GUJi.js → NoDataTable-B4J5Ou18-Dx3cRCiV.js} +1 -1
- package/dist/assets/{NotFoundPage-CQVgfvr8-D2gma-cY.js → NotFoundPage-BeAXQOme-CWKvirSD.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CamY-jUK-F0rFAbXb.js → NotificationSettingsPage-CRZRet42-D_GdfDx5.js} +13 -13
- package/dist/assets/NotificationsListConfig-CkSDaMij-DkmjEqrX.js +1 -0
- package/dist/assets/{NotificationsPage-Cq5siAeE-k30I_gnw.js → NotificationsPage-Dqe96fU8-CXk3eZXG.js} +42 -42
- package/dist/assets/{OpExByVendorPage-D08wBmkx-Y2GK5O3R.js → OpExByVendorPage-CXtkN87m-DqWdzevT.js} +9 -9
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-ZyhNxxD7.js → OverlayContainerPage-Cy_Jxf8N-BCFF9I-H.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DD43rPhW-CRy6SHlx.js → PandLWithForecastPage-DTOqkynU-CSDkD4kN.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-C7GoqHot-DHxfJrOr.js → PaymentAccountSetupBillingAddressSection-C6WFeB3A-BjlyffIF.js} +11 -11
- package/dist/assets/{PeoplePage-BwWeuQq0-BndUg2mI.js → PeoplePage-D-j114xg-DnijdA2O.js} +19 -19
- package/dist/assets/PortfolioAllocationFormPage-C4XzSjzr-CrL4rhQH.js +207 -0
- package/dist/assets/PortfolioDetails-Bbfo0XDo-DfbkD_jI.js +218 -0
- package/dist/assets/ProductsCarousel-COUx0Xdj-CNFgt7bl.js +144 -0
- package/dist/assets/{PromoBaseCards-B0BCeySU-gtbU6hdZ.js → PromoBaseCards-DG1CAZvU-DmiRtARN.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-CKOkxTzr-CFq9kDQU.js → QBOConnectionDialog-DLVcifji-D7Nr2N3C.js} +10 -10
- package/dist/assets/{QBOSetupSection-DycavdKb-D7D3dUQZ.js → QBOSetupSection-BeRZZ-Q_-Bkpo4GHK.js} +13 -13
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CrbiufS3-Be0og6iF.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-B6po7mmX-Do6opqVC.js → ReimbursementApprovalRulesPage-CTk2aZMz-B9qvmXok.js} +13 -13
- package/dist/assets/ReimbursementDetailPage-BofsP0W--DWfYHWwf.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-DjcsW1Av-yKtL-R4s.js → ReimbursementPromoPage-CA2cUBsx-vBa_fNq2.js} +22 -22
- package/dist/assets/{ReimbursementSetUpPage-DQpxCs8Z-BHYAl5PP.js → ReimbursementSetUpPage-Em6S1wkj-DHkhjOAk.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-4foPx3A--DLl7J3FN.js → ReimbursementsBulkReviewDrawerPage-DpWChhvB-b31fy1Ak.js} +1 -1
- package/dist/assets/{ReloadCard-CaPpBGJK-B3TxE4Xx.js → ReloadCard-CZ1Ix5em-yJ8mKxcj.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-D-blv3pI-9u6Jy1On.js → ReportTableViewSelector-BRA3CT_O-DwE8SqC0.js} +31 -31
- package/dist/assets/{ReportsPage-BZj7Tec8-7OuvguOZ.js → ReportsPage-CauV3wnZ-prB4TV27.js} +5 -5
- package/dist/assets/{RevenueChart-CwhdG15z-5r9GkohU.js → RevenueChart-BeM_1hYw-5JLTT-_d.js} +22 -22
- package/dist/assets/ReviewDetailsPage-C5xC8Cf1-DGXvG899.js +290 -0
- package/dist/assets/{ReviewOverlay-DdM4zwoh-B9sUf66Y.js → ReviewOverlay-DdWa7GLG-CvQA2STL.js} +14 -14
- package/dist/assets/RoleWithToolTip-BP8MTZdU-Be_jxRAF.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DgwGten3-CcaOoY4S.js → ScheduleDetailsFixedAssetsPage-BlhhW9A6-DdYItZFt.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-C4UMK1HB-BcuKYiss.js → ScheduleDetailsPage-BKWKZuAL-BH3g9ZCU.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-n_lV13zp-DYUSXH4f.js → ScheduleSequenceTable-BzWPTqDM-vYzuxipM.js} +13 -13
- package/dist/assets/{ScreenRoutes-C2Cqwx4X.js → ScreenRoutes-DZS1wbQr.js} +35 -35
- package/dist/assets/{SetUpAccountSection-CGBdEw5o-BoYNmP-0.js → SetUpAccountSection-Trj1x2HL-dI87wJPY.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-5H7JgUVZ-BrUDgNlV.js → SetUpDefaultSection-BQzNGjO7-CK4c2Bpt.js} +11 -11
- package/dist/assets/SignIn-Duk9PNwU-DixgXfPV.js +408 -0
- package/dist/assets/{SignInScreen-DoZpgpbA.js → SignInScreen-BmRc9jJ6.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C0IA6cdd-wfL8wzzS.js → SpendManagementListViewPage-CREdM633-BfePeao6.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-B727RQUp-s65TWf0o.js → SpendManagementPerTabPage-BZ6ISWXe-BW-zS6o1.js} +20 -20
- package/dist/assets/{SpendManagementSection-B8xyYfKM-CmM31s2m.js → SpendManagementSection-bMsztUap-DQV_fI3p.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-BHH-PFxf-Depg5zQN.js → SpendMgmtSetupAccountSection-Btdtp-ry-CXcnmwMK.js} +18 -18
- package/dist/assets/{StatementItem-CTOdgetS-6eHkTcsW.js → StatementItem-XLqlrHIu-Cpbi7odC.js} +4 -4
- package/dist/assets/{StatementsPage-d9G6kH-f-IDDBgWdI.js → StatementsPage-DWiXiOFU-Ce-S3-If.js} +4 -4
- package/dist/assets/{StatusSwitcher-BA7VjpgX-Ca70nQHM.js → StatusSwitcher-D1XZ-pbx-DXR-Z9Mc.js} +4 -4
- package/dist/assets/{SubTabSwitcher-DDJSCY6V-CD9BPDKc.js → SubTabSwitcher-Bt3F7ANv-tQiuzp7L.js} +7 -7
- package/dist/assets/{SummaryCard-bczJjOLG-CYw_yP5w.js → SummaryCard-edbbHOmb-6KyOKOgI.js} +1 -1
- package/dist/assets/{TaskManagementPage-C99UjrT4-CObEfLxj.js → TaskManagementPage-BhtJBdco-vZo8zi7Y.js} +26 -26
- package/dist/assets/{TimeRangeSwitcher-DgpRdFEz-BUbEDucg.js → TimeRangeSwitcher-D9KzhRYO-BxhuLXC2.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-D7Ebofq5-DDrCPNNP.js → TimeframeSwitcher-CbEHKZvd-DHwncIf9.js} +4 -4
- package/dist/assets/{TimeframeSwitcherWithToggle-BxG4mfwZ-DxB0KZnX.js → TimeframeSwitcherWithToggle-Cb91RXpD-DESaUqlB.js} +2 -2
- package/dist/assets/{TopExCard-Bl1HEvJK-Dtrdcb7e.js → TopExCard-DD9Rf9T6-9_TaxUMU.js} +5 -5
- package/dist/assets/{TopExDetailPage-RVGSdHNI-BrXwimKS.js → TopExDetailPage-DaDuwFrj-CcwM2mXk.js} +16 -16
- package/dist/assets/{TransactionDetailPage-2pU2-JVz-of2X5Xfu.js → TransactionDetailPage-0fIW4o-6-D0nIV4Ug.js} +34 -34
- package/dist/assets/{TransactionList-DnERXw-A-B8au2Vb8.js → TransactionList-CLjBadiP-753OG2zF.js} +9 -9
- package/dist/assets/{TransactionListBig-vCTvXh5y-LHKhEjnP.js → TransactionListBig-CwBxP1xB-BPQEVRdK.js} +21 -21
- package/dist/assets/{TransactionListPage-DVtqlCMZ-BHcMt30P.js → TransactionListPage-S1nTM7Yy-949fs33q.js} +3 -3
- package/dist/assets/TransactionVendorDetailPage-CTTTAais-DyaIAqb0.js +80 -0
- package/dist/assets/{TransferDrawerPage-C17-lHVH-BlD1lWac.js → TransferDrawerPage-BJDNWagE-Bb8XZZ_c.js} +22 -22
- package/dist/assets/{TreasuryOverviewPage-DSRk9Ojd-BvGsuobQ.js → TreasuryOverviewPage-DB-ZH19K-CxTxKL-B.js} +21 -21
- package/dist/assets/{TreasuryPromoPage-C-8SuUVF-Cm1i1FgX.js → TreasuryPromoPage-3MwRPpCt-BvE_AKFs.js} +29 -29
- package/dist/assets/{TreasurySetupPage-CBN3MDev-C-grWNEM.js → TreasurySetupPage--G4JCzdh-DTLVQtx0.js} +10 -10
- package/dist/assets/TreasuryStatementsPage-DBykLGfz-CkaOHrs9.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-DgbrzE9u-qZ36amKR.js +58 -0
- package/dist/assets/{TreasuryTransferOrReviewPage-fm-w_JUE-DKrPC_x7.js → TreasuryTransferOrReviewPage-ByM1UIiU-CrfXgAEO.js} +32 -32
- package/dist/assets/TrendChart-B0CS3MXT-CJXL6oWk.js +16 -0
- package/dist/assets/{TrendWithTransactions-DYpTdT3--R9jQoh0b.js → TrendWithTransactions-D4OAA6yK-ByMmlAQy.js} +11 -11
- package/dist/assets/{UncategorizedAccountsMappingPage-BP5b7SLK-C8p5el8I.js → UncategorizedAccountsMappingPage-C6jaWqrE-Cl46ccED.js} +14 -14
- package/dist/assets/{UnitIntegrationPage-CEdW3T2--Cpg54vze.js → UnitIntegrationPage-5LOvIFvr-CSNIHDMs.js} +5 -5
- package/dist/assets/{UploadAdditionalDocumentOverlay-DEJxFgaz-CqEBFxdG.js → UploadAdditionalDocumentOverlay-CLQLrn0v-GNUaaDjD.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-DKQXhPGa-CMIVL3CP.js → Vendor2FAPopup-BOl520xa-BuVd3Tfo.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CYVg93tk-DmDhIGxN.js → VendorACHDetailsPage-B5jKUOjo-BPsY9-6v.js} +1 -1
- package/dist/assets/{VendorDetailPage-CQptl370-3nKw4Kix.js → VendorDetailPage-B0GRXPKg-ByVUDMs8.js} +15 -15
- package/dist/assets/{VendorDomesticWireDetailsPage-VAGgBKEt-D_f0ihiL.js → VendorDomesticWireDetailsPage-CeI3QihK-CDILYA9w.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DT3_7-pU-RiW4JvZ2.js → VendorFiling1099EditablePage-aNGSdZBf-DBGBKktq.js} +12 -12
- package/dist/assets/{VendorFirstReviewPage-CTu8QLSu-DnfUKOoS.js → VendorFirstReviewPage-CjwnZLcm-BS4ctQeS.js} +55 -55
- package/dist/assets/{VendorInternationalWireDetailsPage-DETN5xQf-CjzJChB2.js → VendorInternationalWireDetailsPage-w-46Xxg--DszkHfO8.js} +14 -14
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CoFSDse_-sJgkwlvj.js → VendorInternationalWireSwiftDetailsPage-C5dogij9-B5Z42HAm.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-B0atBQRf-D2gfccVj.js → VendorsAccountsSection-DBYoP6us-m-UlMIUE.js} +8 -8
- package/dist/assets/VerifyDevice-C-ZVbaIJ-CIv3edYq.js +67 -0
- package/dist/assets/{WarningsDrawerPage-C8sUYwZn-DHSA7B3Q.js → WarningsDrawerPage-CZcR7kH4-DEYvaTpP.js} +22 -22
- package/dist/assets/{ZeniAccountDetailPage-D8uZ-seh-Bn0jz2KD.js → ZeniAccountDetailPage-C-NQEE2--DX6KocHq.js} +27 -27
- package/dist/assets/{ZeniAccountListViewPage-BuwG7e20-CGCQN7VV.js → ZeniAccountListViewPage-Cb8Ptf-w-CnsEl69A.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-DX2iXF2E-1ke49fYY.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-3t3vzAGh-BCXxtLYJ.js → ZeniAccountPromoPage-D5ihjbrM-BYzcz3TH.js} +35 -35
- package/dist/assets/{ZeniAccountSetupPage-BVzvcRnV-BNAixRt2.js → ZeniAccountSetupPage-BRxz_tnh-DCZgNkIH.js} +5 -5
- package/dist/assets/{ZeniCopyright-DcAcIGRB-BKnE2TG4.js → ZeniCopyright-Bi82glrb-B4W4PyYI.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-B4d4bp7D-BtiLgvYI.js +63 -0
- package/dist/assets/{analyticsHelper-Ce1paQ9E.js → analyticsHelper-B1Dq7CFG.js} +1 -1
- package/dist/assets/{analyticsHelper-D2Tw-gFs-eQJPWT5C.js → analyticsHelper-D3DK7bgU-DKC9D3IV.js} +1 -1
- package/dist/assets/chartTypes-DJY-6KK0-Bn67wfYK.js +1 -0
- package/dist/assets/{commonDimensions-C417LkG3-C7UIZrNu.js → commonDimensions-DRK1vfDX-ClE52WoC.js} +1 -1
- package/dist/assets/{detailCommon-DMILWpBc-RRbeBtZi.js → detailCommon-6K-6m9pv-qRZaQ7y6.js} +11 -11
- package/dist/assets/{downloadPdf-TtzJSlkj-CGhMXd7Q.js → downloadPdf-DAA4T-qo-DW9SlRq2.js} +1 -1
- package/dist/assets/{index-BWC1TL5d.js → index-DL4A-6yw.js} +4249 -4149
- package/dist/assets/{mapLoadingInProgressToTreeNode-BuX84Fl8-ot7C0AaF.js → mapLoadingInProgressToTreeNode-BAlOrI07-BQoh0xnC.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CuqkYL_a-B5yNZNF2.js → mapSectionWithAcOnlyToTreeNode-Bk-EXs-E-1lwoWyAH.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CkoeX_hU-DbCgBPI6.js → mapSpacerToTreeNode-Cxd9BEJr-Ch6dWnZw.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CbddU0ga-DIkFHvzj.js → mapTimeframeBalancesToTreeNode-BzFUtqqU-BhmBvUWn.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Dz-UvEDI-4RPbaSvt.js → mapTimeframeBalancesToTreeNode-Cf8fsAZJ-BcQf6ORP.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-C_cGYrFN-CEv0CD4y.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CZMzZg1q-BuGum9U5.js} +1 -1
- package/dist/assets/{play-icon-DvnIcVvi-DvSnSuaB.js → play-icon-DY_hSiAf-CKJE1iwz.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CEYLTlMK-Pc_5wHSr.js → toCOABalancesWithID-BaqBVqJ_-BHtNJ6ZW.js} +1 -1
- package/dist/assets/{toChartData-DgmHnq7q-B3Nm2HJw.js → toChartData-7MYPev1U-B-o9TPgk.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D6-KrZju-XtCPjxKX.js → treasuryColorHelper-CDhLDRLr-DUS0wU7A.js} +1 -1
- package/dist/assets/{uploadAttachment-B6HsV49B-D42ql6vx.js → uploadAttachment-DqCoxBNU-BhvU5QWM.js} +24 -24
- package/dist/assets/{uploadReceipts-D80JLNY4-CfuAxnwz.js → uploadReceipts-CU1mDxNv-CNHIke5A.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-HYH4LhGK-CqpovcOt.js +0 -21
- package/dist/assets/ArAgingDetailPage-cC50pBdB-DWqg5D4v.js +0 -46
- package/dist/assets/ChargeCardPromoPage-D7WfGZCc-D3jGgxfS.js +0 -219
- package/dist/assets/ChargeCardUtils-Bj-TvntU-DKA9Svwd.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-CGicBOjt-Cp0n-aUb.js +0 -206
- package/dist/assets/CompleteProfile-CGaFSQZ5-CT-KemCT.js +0 -36
- package/dist/assets/CurrencySelectField-DLqb-9fp-7Lbpa3gg.js +0 -139
- package/dist/assets/CustomerOnboardingContainerPage-ILwY2ADL-e32qhnSc.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-DrEbXdWa-CjdZSl1c.js +0 -66
- package/dist/assets/DomesticWireDetailsPage-BVmsi9ei-C0IdiYoz.js +0 -21
- package/dist/assets/EditPeoplePage-Ci4ys6zZ-wdZgBb5c.js +0 -55
- package/dist/assets/ExpenseAutomationOverviewPage-DwRzHbCN-M_rk-pmX.js +0 -221
- package/dist/assets/FeaturePreviewPage-LAldEIqF-c3qniz-f.js +0 -11
- package/dist/assets/HelpButton-C-GTHvg5-B73y4skm.js +0 -28
- package/dist/assets/InsightsCardStack-Czo2phfa-Cm5iDipS.js +0 -79
- package/dist/assets/InsightsSection-BF65nVDk-DYItDZKN.js +0 -27
- package/dist/assets/InviteFormPage-GPQ5eSD8-D4Km3JK3.js +0 -312
- package/dist/assets/InvitePeoplePage-DhGjKKsO-DMvNoiBq.js +0 -12
- package/dist/assets/InvoiceUploadSection-DzOByrtE-BiYJ5rDx.js +0 -140
- package/dist/assets/LabeledAddressValueField-B2TfgAjp-DeJpApWQ.js +0 -45
- package/dist/assets/MagicLinkSuccessPage-BA_B_aML-D6ZNuO7o.js +0 -31
- package/dist/assets/MagicLinkTitleSection-hjUfjUKg-859fufSN.js +0 -17
- package/dist/assets/MailingDetailsSection-zYhyH_Di-DaB_9uLu.js +0 -21
- package/dist/assets/NoDataChart-C86cs81n-B4k4ZJvb.js +0 -26
- package/dist/assets/NotificationsListConfig-Cj32T7Hz-BI43-Dlv.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-QLO1aksn-GEi_e54k.js +0 -207
- package/dist/assets/PortfolioDetails-EbWPeH4e-BqBAYrVk.js +0 -218
- package/dist/assets/ProductsCarousel-VTApOnqN-hxmFSNXK.js +0 -138
- package/dist/assets/ReimbursementApprovalRuleDetailPage-PHWY-z0e-DuR1RMJV.js +0 -26
- package/dist/assets/ReimbursementDetailPage-Dt6DhlL1-Y5GGZTgF.js +0 -314
- package/dist/assets/ReviewDetailsPage-CuO3d_n4-f2PfpGBb.js +0 -290
- package/dist/assets/RoleWithToolTip-BNc9Cjys-DoiiktPv.js +0 -22
- package/dist/assets/SignIn-DpOLibjy-oKrl1HwS.js +0 -325
- package/dist/assets/TransactionVendorDetailPage-0FE-k35E-BpjmcaBp.js +0 -80
- package/dist/assets/TreasuryStatementsPage-CYcFki_F-KXCo4wP7.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-D_yfrqyw-D-EC06Jz.js +0 -58
- package/dist/assets/TrendChart-C6zZmjPl-B8dyRAMm.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-uukfD44t-vZHL-f_f.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-RA4Pva57-sOlVo3w-.js +0 -63
- package/dist/assets/chartTypes-DX9eCHdW-Da5ONL2Y.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ge,
|
|
1
|
+
import{X as ge,J as wt,j as o,_ as P,gQ as yt,B as xe,a0 as Y,K as Ie,i as Ue,a4 as Je,o as t,C as f,a3 as Ce,k as $t,am as bt,u as St,a2 as pe,bw as vt,cR as He,Q as R,l as z,fZ as jt,d as S,Y as At,g as et,$ as W,n as Q,eZ as kt,a as Tt,c6 as Pt,F as Ct,fF as zt,s as c,bq as tt,cZ as ot,bK as rt,cC as Dt,ct as Lt,f9 as Ft,f1 as Mt,d5 as Rt,M as Bt,f2 as Ot,ds as It,b$ as _t,b_ as Et,aQ as Nt,bc as Vt,fb as Yt,fk as Wt,ab as Qt}from"./index-DL4A-6yw.js";import{n as r,b as x}from"./vendor-CnQcJ2Lu.js";import{V as nt}from"./PortfolioDetails-Bbfo0XDo-DfbkD_jI.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CDhLDRLr-DUS0wU7A.js";const qt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Xt=1e3;function Gt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,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(Ht,{sliderValue:s,children:[o.jsx(Jt,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Xt,value:s,onChange:w}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Kt(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Zt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Ut(h)})},h))})]})}const Kt=e=>{const a=Qt("0,0.[00]a",e,"$").toUpperCase();return`${qt.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%"}},Ut=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Jt=r.input`
|
|
2
2
|
width: 100%;
|
|
3
3
|
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
4
|
height: 2px;
|
|
@@ -22,7 +22,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
22
22
|
background-repeat: no-repeat;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,Ht=r.div`
|
|
26
26
|
position: relative;
|
|
27
27
|
width: 70%;
|
|
28
28
|
margin-left: 30px;
|
|
@@ -46,10 +46,10 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
46
46
|
position: absolute;
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
transform: translateX(-50%);
|
|
49
|
-
`,ro=r(
|
|
49
|
+
`,ro=r(W)`
|
|
50
50
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
51
51
|
white-space: nowrap;
|
|
52
|
-
`,no=r(
|
|
52
|
+
`,no=r(W)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: -${t.sp5};
|
|
55
55
|
white-space: nowrap;
|
|
@@ -60,15 +60,15 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
padding: 2px ${t.sp2};
|
|
63
|
-
`,G={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])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:
|
|
63
|
+
`,G={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])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:_},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=xe.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=xo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Qo,{}):o.jsx(qo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Wo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(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},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),w=St(),v=pe(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=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(ko,{windowSize:m,children:[o.jsx(Lo,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Fo,{windowSize:m,children:_.reviewAndConfirm}),o.jsx(Vo,{windowSize:m,children:o.jsx(He,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(zo,{}),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(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(Ao,{children:o.jsxs(bo,{children:[o.jsxs(To,{children:[o.jsx(Co,{}),o.jsxs(So,{children:[o.jsx(vo,{children:e.error?.title}),o.jsx(jo,{children:e.error?.message})]})]}),o.jsx(Po,{children:o.jsx(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Do,{windowSize:m,children:o.jsxs(wo,{windowSize:m,children:[o.jsx(yo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx($o,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),fundAllocations:go(e),page:"transfer review"})})]})})]}),o.jsx(Je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:_.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,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(Ee,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(No,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(Ee,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Io,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Eo,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:Y("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&&!s?o.jsx(Ro,{children:w?.maskedAccountNumber}):o.jsxs(Mo,{className:"option-sublabel",children:[o.jsx(ve,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(Oo,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(ve,{children:[Y("0,0[.]00",w.accountBalance.available),v?o.jsx(Bo,{children:so}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ue,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},xo=(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"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
|
-
`,se=r(
|
|
66
|
+
`,se=r(W)`
|
|
67
67
|
color: ${e=>e.theme.colors.hero};
|
|
68
|
-
`,le=r(
|
|
68
|
+
`,le=r(Q)`
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
|
-
`,
|
|
71
|
+
`,wo=r.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
flex-direction: column;
|
|
74
74
|
width: 100%;
|
|
@@ -115,7 +115,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
115
115
|
margin-left: ${t.sp2};
|
|
116
116
|
`,vo=r(rt)`
|
|
117
117
|
color: ${S.important};
|
|
118
|
-
`,jo=r(
|
|
118
|
+
`,jo=r(Q)`
|
|
119
119
|
color: ${S.important};
|
|
120
120
|
`,Ao=r.div`
|
|
121
121
|
margin-top: ${t.sp3};
|
|
@@ -138,7 +138,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
138
138
|
width: ${t.sp4};
|
|
139
139
|
height: ${t.sp4};
|
|
140
140
|
color: ${S.important};
|
|
141
|
-
`,
|
|
141
|
+
`,_e=r(Ce)`
|
|
142
142
|
cursor: pointer;
|
|
143
143
|
color: ${e=>e.theme.colors.hero};
|
|
144
144
|
width: ${t.sp4};
|
|
@@ -153,7 +153,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
153
153
|
background-color: ${e=>e.theme.colors.grey3};
|
|
154
154
|
min-height: 1px;
|
|
155
155
|
max-height: 1px;
|
|
156
|
-
`,de=r(
|
|
156
|
+
`,de=r(W)`
|
|
157
157
|
color: ${e=>e.theme.colors.hero};
|
|
158
158
|
`,Do=r.div`
|
|
159
159
|
display: flex;
|
|
@@ -177,7 +177,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
177
177
|
${e=>e.windowSize==="small"&&`
|
|
178
178
|
padding-bottom: ${t.sp0};
|
|
179
179
|
`}
|
|
180
|
-
`,Mo=r(
|
|
180
|
+
`,Mo=r(W)`
|
|
181
181
|
color: ${e=>e.theme.colors.hero};
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-direction: row;
|
|
@@ -200,22 +200,22 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
200
200
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
201
201
|
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
202
202
|
margin-right: ${t.sp2};
|
|
203
|
-
`,
|
|
203
|
+
`,_o=r.div`
|
|
204
204
|
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
205
205
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
206
206
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
207
207
|
margin-right: ${t.sp2};
|
|
208
|
-
`,
|
|
208
|
+
`,Eo=r(Wt)`
|
|
209
209
|
min-width: inherit;
|
|
210
210
|
width: inherit;
|
|
211
211
|
height: inherit;
|
|
212
212
|
margin-right: ${t.sp2};
|
|
213
|
-
`,
|
|
213
|
+
`,Ee=r.div`
|
|
214
214
|
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
215
215
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
216
216
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
217
217
|
margin-right: ${t.sp2};
|
|
218
|
-
`,Ne=r(
|
|
218
|
+
`,Ne=r(Yt)`
|
|
219
219
|
min-width: inherit;
|
|
220
220
|
width: inherit;
|
|
221
221
|
height: inherit;
|
|
@@ -233,19 +233,19 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
233
233
|
margin-top: ${t.sp1};
|
|
234
234
|
margin-bottom: ${t.sp1};
|
|
235
235
|
`}
|
|
236
|
-
`,
|
|
236
|
+
`,Yo=r(Q)`
|
|
237
237
|
color: ${e=>e.theme.colors.hero};
|
|
238
238
|
margin-top: ${t.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,Wo=r(Nt)`
|
|
240
240
|
width: ${t.sp4};
|
|
241
241
|
height: ${t.sp4};
|
|
242
242
|
color: ${e=>e.theme.colors.hero};
|
|
243
|
-
`,
|
|
243
|
+
`,Qo=r(_t)`
|
|
244
244
|
width: ${t.sp4};
|
|
245
245
|
height: ${t.sp4};
|
|
246
246
|
color: ${e=>e.theme.colors.hero};
|
|
247
247
|
align-self: center;
|
|
248
|
-
`,
|
|
248
|
+
`,qo=r(Et)`
|
|
249
249
|
width: ${t.sp4};
|
|
250
250
|
height: ${t.sp4};
|
|
251
251
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -257,7 +257,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
257
257
|
position: absolute;
|
|
258
258
|
right: 50%;
|
|
259
259
|
bottom: -25px;
|
|
260
|
-
`,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qo},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Go="transferTo",Ko="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=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:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,Z]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Q,H]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[J,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:U}=kt({token:D,onSuccess:lt,onExit:ct}),q=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),U?ee():ze(!0)},[ee,U]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,q),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&U&&Le(!0)},[U,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&J&&ee()},[De,ee,J]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(We(e,n,q))},[U,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,q]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};Z(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Qo,{children:o.jsxs(Jo,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(Je,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Ho,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(Ye,{label:{label:je.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:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(Ye,{label:{label:je.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:Ae(_,Go),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Gt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:Z})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(wr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Q,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(xr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Ue,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Ue,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{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(s&&d){const p={label:qo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},We=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.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}}}},Qo=r.div`
|
|
260
|
+
`,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Xo},billPay:{insufficientFunds:Ve}}}=xe.getLocalizedStrings(),it="amount",Go="transferTo",Ko="transferFrom",E="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=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:s,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,Z]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[U,J]=x.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,we]=x.useState(b.linkToken??null),[H,ze]=x.useState(!1),[De,Le]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=x.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=x.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),X=x.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ye(e,n,X),[e,n])}),{isValid:dt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),x.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{De&&H&&ee()},[De,ee,H]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(Ye(e,n,X))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,X]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[E].transferFrom.selectedOption,oe=j[E].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const xt={amount:Oe,fromAccount:re,toAccount:ne};Z(Oe.amount),m(xt)}};x.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),x.useEffect(()=>{J(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&w()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Uo,{children:o.jsxs(Ho,{children:[o.jsxs(er,{children:[o.jsx(or,{}),o.jsxs(rr,{children:[o.jsx(nr,{children:e.error?.title}),o.jsx(ir,{children:e.error?.message})]})]}),o.jsx(tr,{children:o.jsx(cr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ar,{windowSize:i,children:o.jsx(He,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Jo,{id:st(at),onSubmit:mt,children:[o.jsxs(sr,{children:[o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.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:Ae(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,X,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.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:Ae(E,Go),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,X,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(E,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(lr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(dr,{children:[p?o.jsxs(ur,{children:[o.jsx(pr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",Y("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Gt,{interestRate:O,transferAmount:B,setYieldEarned:J,setTransferAmount:Z})]}):null,o.jsxs(mr,{windowSize:i,children:[o.jsxs(xr,{windowSize:i,children:[o.jsx(fr,{children:o.jsx(hr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${Y("0,0",{amount:U,currencySymbol:"$"})}`})}),o.jsx(gr,{windowSize:i}),o.jsx(wr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${Y("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{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(yr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{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($r,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!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(s&&d){const p={label:Xo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Uo=r.div`
|
|
261
261
|
margin-top: ${t.sp3};
|
|
262
262
|
display: flex;
|
|
263
263
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -266,12 +266,12 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
266
266
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
267
267
|
border-radius: ${t.sp2};
|
|
268
268
|
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
269
|
-
`,
|
|
269
|
+
`,Jo=r.form`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex-direction: column;
|
|
272
272
|
justify-content: center;
|
|
273
273
|
align-items: center;
|
|
274
|
-
`,
|
|
274
|
+
`,Ho=r.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
width: 100%;
|
|
277
277
|
justify-content: space-between;
|
|
@@ -291,7 +291,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
291
291
|
margin-left: ${t.sp2};
|
|
292
292
|
`,nr=r(rt)`
|
|
293
293
|
color: ${S.important};
|
|
294
|
-
`,ir=r(
|
|
294
|
+
`,ir=r(Q)`
|
|
295
295
|
color: ${S.important};
|
|
296
296
|
`,ar=r(tt)`
|
|
297
297
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -300,7 +300,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
300
300
|
margin-top: ${t.sp1};
|
|
301
301
|
margin-bottom: ${t.sp1};
|
|
302
302
|
`}
|
|
303
|
-
`,
|
|
303
|
+
`,We=r(Dt)`
|
|
304
304
|
border-radius: ${t.sp2};
|
|
305
305
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
306
|
`,sr=r.div`
|
|
@@ -371,7 +371,7 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
371
371
|
justify-content: center;
|
|
372
372
|
align-items: center;
|
|
373
373
|
flex-direction: column;
|
|
374
|
-
`,pr=r(
|
|
374
|
+
`,pr=r(Q)`
|
|
375
375
|
color: ${e=>e.theme.colors.hero};
|
|
376
376
|
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
377
377
|
white-space: pre-line;
|
|
@@ -393,11 +393,11 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
393
393
|
display: flex;
|
|
394
394
|
flex-direction: row;
|
|
395
395
|
align-items: center;
|
|
396
|
-
`,
|
|
396
|
+
`,Qe=r.div`
|
|
397
397
|
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
398
|
color: ${e=>e.theme.colors.hero};
|
|
399
399
|
cursor: pointer;
|
|
400
|
-
`,
|
|
400
|
+
`,qe=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
flex-direction: row;
|
|
403
403
|
align-items: center;
|
|
@@ -419,12 +419,12 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
419
419
|
margin: 0 ${t.sp2};
|
|
420
420
|
background-color: ${e=>e.theme.colors.grey1};
|
|
421
421
|
border-radius: 50%;
|
|
422
|
-
`,
|
|
422
|
+
`,xr=r.div`
|
|
423
423
|
display: flex;
|
|
424
424
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
425
425
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
426
426
|
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
427
|
-
`,
|
|
427
|
+
`,wr=r(Bt)`
|
|
428
428
|
color: ${e=>e.theme.colors.hero};
|
|
429
429
|
`,yr=r(Ot)`
|
|
430
430
|
cursor: pointer;
|
|
@@ -440,9 +440,9 @@ import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as W,K as Ie,c as Qe,a3
|
|
|
440
440
|
min-width: 12px;
|
|
441
441
|
min-height: 12px;
|
|
442
442
|
color: ${e=>e.theme.colors.hero};
|
|
443
|
-
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:
|
|
443
|
+
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},br={formTitle:new R("h6Regular","h5Regular")},{common:Xe,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Vr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:Z,fetchState:O}=a,U=Z.find(H=>wt(H.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},J=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(jr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ge,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Pr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Ar,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(kr,{children:Y("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:U,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ge,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(zr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(vr,{children:k.transferDrawer.subTitle}):o.jsx(Sr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Zo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:U,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ue,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),J()?o.jsx(Je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Xe.review},cancelBtn:{label:Xe.cancel,onClick:()=>{h()}}}):null]})})},Sr=r(Q)`
|
|
444
444
|
color: ${e=>e.theme.colors.hero};
|
|
445
|
-
`,vr=r(
|
|
445
|
+
`,vr=r(W)`
|
|
446
446
|
color: ${e=>e.theme.colors.hero};
|
|
447
447
|
`,jr=r.div`
|
|
448
448
|
display: flex;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{B as w,j as n,l as u,u as B,_ as Y,aj as Z,b5 as z,b6 as F,av as P,v as k,au as R,ab as q,b7 as O,aw as _,b9 as G,o as L,d as K,n as N}from"./index-DL4A-6yw.js";import{b as v,f as Q,n as $}from"./vendor-CnQcJ2Lu.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-DJY-6KK0-Bn67wfYK.js";import{o as X}from"./toCOABalancesWithID-BaqBVqJ_-BHtNJ6ZW.js";import{V as H}from"./toChartData-7MYPev1U-B-o9TPgk.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=$.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
`,J=$.div`
|
|
4
|
+
flex: display;
|
|
5
|
+
opacity: 0.85;
|
|
6
|
+
border-radius: ${L.sp1};
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
padding: ${L.sp3};
|
|
9
|
+
background-color: ${e=>e.theme.colors.black};
|
|
10
|
+
`,U=$(N)`
|
|
11
|
+
color: ${e=>e.color??K.neutralGrey2Light};
|
|
12
|
+
text-align: left;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
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(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${W(a.value)}`},a.barName+r))})}):null},ae=Q.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=X("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},E=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,b=w.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,E,a,t),j=p=>{const h=[];return E.forEach(o=>{h.push(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=B(),[g,b]=v.useState([void 0,void 0]),x=e.timeseries,j=V(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=T(a.label,p,1);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 M=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=T(M,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(z,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[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=>q("0,0.[00]a",c,j)}),n.jsx(O,{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}=w.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=`${w.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{X as D,j as i,
|
|
1
|
+
import{X as D,j as i,i as R,o as t,B as b,C as c,_ as S,aj as E,am as Y,c3 as X,s as a,n as _,a3 as q}from"./index-DL4A-6yw.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import K from"./TrendChart-B0CS3MXT-CJXL6oWk.js";import{C as V}from"./NoDataChart-BdzVnx59-DBpJ4L1_.js";import{B as W}from"./InsightsSection-nzKuS0T9-ByBm7jVR.js";import{d as Q}from"./TransactionList-CLjBadiP-753OG2zF.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;
|
|
@@ -12,12 +12,12 @@ import{X as D,j as i,c as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c0 as K,
|
|
|
12
12
|
background-color: ${e=>e.theme.colors.grey2};
|
|
13
13
|
color: ${e=>e.theme.colors.primary};
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,J=n.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: row;
|
|
18
18
|
justify-content: center;
|
|
19
19
|
align-items: center;
|
|
20
|
-
`,U=n(
|
|
20
|
+
`,U=n(_)`
|
|
21
21
|
margin-right: ${t.sp2};
|
|
22
22
|
`,ee=n(q)`
|
|
23
23
|
width: ${t.sp3};
|
|
@@ -26,7 +26,7 @@ import{X as D,j as i,c as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c0 as K,
|
|
|
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(J,{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 F,C as c,Y as S,ai as E,al as Y,c0 as K,
|
|
|
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
|
|
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(Q,{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%;
|
|
@@ -63,7 +63,7 @@ import{X as D,j as i,c as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c0 as K,
|
|
|
63
63
|
height: 360px;
|
|
64
64
|
margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
|
|
65
65
|
margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
|
|
66
|
-
`,he=n(
|
|
66
|
+
`,he=n(X)`
|
|
67
67
|
color: ${e=>e.theme.colors.primary};
|
|
68
68
|
margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
|
|
69
69
|
margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -99,18 +99,18 @@ import{X as D,j as i,c as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c0 as K,
|
|
|
99
99
|
flex: 1 1 auto;
|
|
100
100
|
display: flex;
|
|
101
101
|
background-color: ${e=>e.theme.colors.grey4};
|
|
102
|
-
`,
|
|
102
|
+
`,je=n.div`
|
|
103
103
|
display: flex;
|
|
104
104
|
flex-direction: column;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
align-items: center;
|
|
107
107
|
height: ${e=>e.isDetailPage===!0?"inherited":"100vh"};
|
|
108
108
|
margin-top: ${t.sp8};
|
|
109
|
-
`,
|
|
109
|
+
`,ve=n.div`
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
112
112
|
justify-content: center;
|
|
113
113
|
align-items: center;
|
|
114
|
-
height: ${e=>
|
|
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},
|
|
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(),[B,I]=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(V,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(K,{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(W,{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=>{I(x)}})}),O=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:O(B),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};
|