@zeniai/web-cockpit-ui 1.14.62-qa → 1.14.63-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-C9GD0hCH-BjgIixGR.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0Adp0wg-BENvGSD8.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
- package/dist/assets/{AccountInfoPage-BSxUquf3-CVXqrpiM.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-8V3PDzEc-Co1a4vxf.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DWUCsu-t.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-Aoa7lkw7.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
- package/dist/assets/{AccountRow-BpoPw0Cq-6rjrYRQx.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
- package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DHp17pPu.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
- package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Cpb6hsZ-.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
- package/dist/assets/{AddToWalletPage-CpWP7Kpn-CSqVUMRE.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
- package/dist/assets/{AgingReportsPage-DEQ2pO0Y-yRrwplt0.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
- package/dist/assets/{AllUserItems-D0SR0Oue-DtcPCB6_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DQrPP1v5.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
- package/dist/assets/{AppBasePage-DFn4TCyI-Cc5DLAg0.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
- package/dist/assets/{AppDrawerContent-CBG4Ybue-ByqvB6J0.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-Cks7NfZS.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
- package/dist/assets/{ArAgingChart-BDISnDae-CyesneCU.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-Cq89JxEo.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
- package/dist/assets/{AttachmentView-X1k01Vtr-B7_QU-hD.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
- package/dist/assets/{BankAccountSection-CrxSDsgw-ktUyjJcn.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-CoN6e059.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-mD1d5FDq.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
- package/dist/assets/{BillDetailPage-DcyikS7i-BdNFKGGl.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-CKOcRZID.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-D-g0Yiyo.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
- package/dist/assets/{BillPayPromoPage-DtVzdlsy-C9OmQlVi.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BKdNiQf7-Cc4m50Uo.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
- package/dist/assets/{BillingSettingsPage-3AgPTFzN-DilAG0t1.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
- package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
- package/dist/assets/{BoxItem-Dsoq6QyZ-B-WatMIw.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DSkBV_II-D7barBYM.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
- package/dist/assets/{CardNumberSubText-Crk5WDQr-DYNdDxcR.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BZAFRMGW-DHwMsEnN.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
- package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
- package/dist/assets/{ChargeCardListPage-CIV1XQK1-D6N1OvLo.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Dxn8Y17P-YJscyrM8.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
- package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-DmZGR1jp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-D4Ma056g.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-CgpUYkHr.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
- package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
- package/dist/assets/{ChaseOverlay-B2pqFXTT-Df2Ezv28.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-qWYP5ABn.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
- package/dist/assets/{CollapsableReportTable-BLDh7Osv-DfaYwLVz.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-Cu3GX4FJ.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-2HnVDVVi-zGfwT0EU.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DlGllnaL-QVy4YULg.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
- package/dist/assets/{CompleteProfile-kFGIESms-Dkk-z6t0.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
- package/dist/assets/{ConfettiBurst-D5IgJ5P3-E65_x1se.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-StbUiZfz.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
- package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-D0gZCtxQ.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
- package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CUdjrO8S.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
- package/dist/assets/{CurrencySelectField-hwgVPqTt-B9olol6q.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-D-QIEuJy.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Dfe_cett.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-DjNSGy04.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-Bcwahrb4.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BTVhd0Re.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
- package/dist/assets/{Dashboard-Cw4u8_9e-DbBlW7ig.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
- package/dist/assets/{DashboardReportPage-ls_MMfAh-Cmzgt21g.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-CW-EldD9.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BLgpyexV-DDsSN6D0.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-WIgqF2oB.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
- package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-CyInh1Li.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DKpj3Vwl-jr69kEjZ.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
- package/dist/assets/{DrawerPage-Cxz5I3Mb-CqHagX_L.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
- package/dist/assets/{EditPeoplePage-Dbsa013z-BNUYit4n.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-CVKUzeEp.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
- package/dist/assets/{EntityDetailPage-C73BtWIp-D8wpNNd0.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
- package/dist/assets/{EntitySummarySection-BQA0g-pF-CbGAmbu8.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-BHqR9wAC.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-ufxTsQbf.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
- package/dist/assets/{ExpressPayPage-Buxb2M1i-B9fAQlVA.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-ClfFYnHb--gXnRz9K.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
- package/dist/assets/{FollowStepsSection-CkQ-g4YK-dr6FAmOd.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
- package/dist/assets/{GlobalReviewListPage-C_DbsHsA-C6phfeex.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
- package/dist/assets/{HelpButton-B0ZBXPeh-BorgPtfn.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
- package/dist/assets/{InformationCardStack-DYdCt7zr-r9qdYJzs.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
- package/dist/assets/{InsightsCardStack-BSHQznep-BMkYmRhd.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
- package/dist/assets/{InsightsSection-C37BKIiK-RNlgGAPQ.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-CMWIwf7T.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-uVg2-6eP.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
- package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-D_Anpl8k.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
- package/dist/assets/{InviteFormPage-BhbGM4dC-C9bKqONR.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
- package/dist/assets/{InvitePageListView-CyRlLv60-B6D8YcCC.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
- package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BPPgbS-r-BHrBDY3d.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-D_qQkkfo-CSsCg8Db.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
- package/dist/assets/{LabeledAddressValue-EshVNGGW-Cb2uc0dZ.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-kgieouBM-DzNGhdp0.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-ClMxBsh8.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BE5hL6KZ.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
- package/dist/assets/{LabeledDocumentField-BrXpwWfM-CV_EVAk8.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-BvaaA7qv.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
- package/dist/assets/{LabeledText-BmFLymPb-D54qw5X_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DEzr-9kh.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
- package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-C30aMHy1.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
- package/dist/assets/{LinkJETransactionPage-DIhsx2g--Cp1GItTZ.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
- package/dist/assets/{LockCardPage-BA4Lj9Iy-DqX49N3M.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
- package/dist/assets/{LowBalancePopup-B1pTBmAF-DMsL8GAq.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
- package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO-Wf8wA2-U.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-BR3Unx7y.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-BHMic-Rc.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-Ca4cu0D0.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-BT7ZZklR.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwEd_J6R-DkUc8Lj3.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-DG2NWgbm.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
- package/dist/assets/{Menu-De_gaVnj-BIvr4lYg.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-DU5DVhxi.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DKJC-Hoj.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-lkqzLNrj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
- package/dist/assets/{NavBarWithPicker-DcELUvq0-C5N2yjZ3.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
- package/dist/assets/{NavigationArrow-W1nVj2KC-CB3-WbW2.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
- package/dist/assets/{NavigationDots-BKVFhe2Y-BXA4iaa-.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-B35zjD-s.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
- package/dist/assets/{NoDataChart-BzSCComh-TCsmvHP1.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
- package/dist/assets/{NoDataTable-CGWMbvak-D6mzGtG9.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
- package/dist/assets/{NotFoundPage-DfRFngFV-Cvi4-w7R.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BTJH62-O-BjEAiv3V.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
- package/dist/assets/{NotificationsListConfig-DPutUxp3-B-f9mabS.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
- package/dist/assets/{NotificationsPage-xu6A1hVF-PuoNi3-5.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
- package/dist/assets/{OpExByVendorPage-BeO7iMry-ChO0CL0F.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-C97TuWW_.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-BkoKktpJ.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-Dxj4lh2G.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
- package/dist/assets/{PeoplePage-CPqz8R9j-B70ykgrs.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
- package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-DJFvzQ8r.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
- package/dist/assets/{PortfolioDetails-BJBNPfcI-BtgJ2hbs.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
- package/dist/assets/{ProductsCarousel-Ctx00P5D-BTEQtLvG.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
- package/dist/assets/{PromoBaseCards-BGYdfmx6-Dtat0fyc.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B9yKv9hq-DoLz2hIj.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
- package/dist/assets/{QBOSetupSection-CTMSCXwv-CxubTHdL.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-Dzk_bMVd.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-BlN6Jytr.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
- package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-zurm2_Gr.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D284EkRZ-BcIIXtzk.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-CldLpq0B.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-CeRLlDSr.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
- package/dist/assets/{ReloadCard-CGUNX_x4-Dbmvt1Tw.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-BVAek1Ui-C_slHbQ8.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
- package/dist/assets/{ReportsPage-BzKbMWV4-nYQmduZj.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
- package/dist/assets/{RevenueChart-CPUrVR7y-BAuj7ArI.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-B74yrCe2-VCXhCYb5.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
- package/dist/assets/{ReviewOverlay-DQvXSDYM-DyF1UXZO.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
- package/dist/assets/{RoleWithToolTip-MwI_BmVq-Ds1A2gyK.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CqEHYps-.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CPpcmXd0.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DUs0PlZE.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
- package/dist/assets/{ScreenRoutes-Ba12Q0HX.js → ScreenRoutes-_3xGjUU-.js} +41 -41
- package/dist/assets/{SetUpAccountSection-IgQjKWEr-Bxp6vD4c.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
- package/dist/assets/{SetUpDefaultSection-shC3qOy6-C49ph3xE.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
- package/dist/assets/{SignIn-CZGmLYjH-DHcDyA10.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
- package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CCGqdAUI.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-1ZBcChPe.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
- package/dist/assets/{SpendManagementSection-Hjvwgkt0-D6Yvpvz4.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
- package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-D_Y5M2MY.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
- package/dist/assets/{StatementItem-D8v_Laju-B8GfRoNo.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
- package/dist/assets/{StatementsPage-CEw-9UyR-BcqGoaDU.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
- package/dist/assets/{StatusSwitcher-DoSCydJG-CoBpz-TS.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Ct1DqfgC-Bibz1hGv.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
- package/dist/assets/{SummaryCard-CHUbuF_0-CaC0zRzW.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
- package/dist/assets/{TaskManagementPage-Ddox5Vwh-D5D4JTV5.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-CiOSsTU--CLsRcOaL.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DTp5-FTG.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-yq3iZa4P.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
- package/dist/assets/{TopExCard-D4ZDqXZg--brQ_iDE.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-BdPAcKwH-BWvPRR7r.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
- package/dist/assets/{TransactionDetailPage-BcjGxHy8-CFPVJudJ.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
- package/dist/assets/{TransactionList-BSuMEtB3-CoYwx3Sx.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
- package/dist/assets/{TransactionListBig-MY_ZxyR3-BlvU2xVi.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
- package/dist/assets/{TransactionListPage-CWGrWDjK-1Jg_-UFD.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-navYrc-G.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
- package/dist/assets/{TransferDrawerPage-vK0YoMro-D8CyUH8N.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
- package/dist/assets/{TreasuryOverviewPage-CQsUti1c-Ba68New5.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
- package/dist/assets/{TreasuryPromoPage-Bp72hKEs-NvukScyd.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
- package/dist/assets/{TreasurySetupPage-BUKsU3nh-kC1qSXYk.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-DcPIDQHV.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-Dj8UaOnF.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-CRkrhgNd.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
- package/dist/assets/{TrendChart-CqYeWLeV-htWF6W-p.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
- package/dist/assets/{TrendWithTransactions-xn1fvlLO-CerDbg3P.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-h1El0pw_.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B6LF_f7C-DF3yoEHz.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-BlWsi76J.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CncDplWQ-DgiLqsWr.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
- package/dist/assets/{VendorDetailPage-POan4Fo8-Y_NsPNBu.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
- package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-NrQ5VuHO.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-DxH6WOrq.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-DY035p5C-B1sylU9C.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
- package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-DOkydboS.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-BQ0UaHHd.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2UiqXC0-BiErhc3o.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
- package/dist/assets/{VerifyDevice-C7BWrAZ3-DJDQCedc.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
- package/dist/assets/{VideoPlayer-BYkDTMkS-BkX7RMiM.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
- package/dist/assets/{VideoPopup-Chye3pds-BhmRCag7.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-Cid-1Ovb.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DZTAFx3o.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-BNB1bM3y.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-Cokn4oEN.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-B1I9l833-BElJ8cLy.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-B9X3YQBI.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
- package/dist/assets/{ZeniCopyright-DbQka65R-7ZVyc7Yg.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-Ml8lBAJZ.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
- package/dist/assets/{analyticsHelper-BDL8_RGj.js → analyticsHelper-CuIvasD7.js} +1 -1
- package/dist/assets/{analyticsHelper-DgJDMdal-DIavhrOw.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
- package/dist/assets/{chartTypes-D1j_l919-8QXMvJet.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
- package/dist/assets/{commonDimensions-DDu54g8x-D5ikJlMO.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
- package/dist/assets/{detailCommon-DXjUFoA1-D9_LRSFU.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
- package/dist/assets/{downloadPdf-DChYYVaW-ZZ55IYdY.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
- package/dist/assets/{index-BqKtrbrP.js → index-6DHFBk74.js} +1721 -1710
- package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--JB4URfny.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-DZ4GfGRq.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-ofjZ3Daw.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-Cw5iWKMh.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-BJxVRna_.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-D3DuUS-Q.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DqhuI8hD-CWs6fXMS.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
- package/dist/assets/{toChartData-DZPFiNsp-WPnYC-7p.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D5AxfiPH-CHzWVnh9.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
- package/dist/assets/{uploadAttachment-D04Fz4F1-CuQRw56o.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
- package/dist/assets/{uploadReceipts-9DTOr0BG-BFe5S3is.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-CNk8ph3a.js +0 -1
- package/dist/assets/ChargeCardDetailPage-DXUoIbZa-_LUfh5la.js +0 -1813
- package/dist/assets/ChargeCardUtils-BeG5m9OQ-BnJ39MTB.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-DHmsrQe_.js +0 -1
- package/dist/assets/InvitePeoplePage-DYpb33z0-YHgrNKtY.js +0 -12
- package/dist/assets/SignInScreen-DqIw82_G.js +0 -1
- package/dist/assets/Vendor2FAPopup-BLzf9zxl-u_Gb4R4i.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,
|
|
1
|
+
import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,aQ as nt,o as t,y as w,A as Oe,s as zt,b6 as Dt,c as Lt,aP as Q,c5 as Ft,ft as st,b as O,l as L,gG as Mt,h as j,ar as Rt,H as lt,ai as I,am as Y,fG as Bt,aa as Ot,cS as It,ad as Et,gm as _t,u as d,ce as ct,fB as dt,cw as ut,dm as Nt,dd as Vt,fS as Wt,fK as qt,a9 as Yt,an as Gt,fL as Xt,dM as Jt,cM as Ut,cL as Kt,bz as Qt,bX as Zt,fU as Ht,g1 as er,aX as tr}from"./index-6DHFBk74.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as pt}from"./PortfolioDetails-C85yA52O-BcnUojwW.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-ChFJTPyg--ivM0q9A.js";const rr=$e.getLocalizedStrings().spendManagement.treasury,R=[0,125e4,25e5,35e5,5e6],or=1e3;function ir({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:i}){const l=Yt().analytics,[c,h]=y.useState(a);y.useEffect(()=>{h(a)},[a]);const p=f=>{const $=parseFloat(f.target.value),s=ge($,e);h($),u(s),i($),l.trackTreasuryCalculatorClick("fund transfer",$)},k=f=>{const $=ge(f,e);h(f),i(f),u($),l.trackTreasuryCalculatorClick("fund transfer",f)};return r.jsxs(cr,{sliderValue:c,children:[r.jsx(lr,{sliderValue:c,type:"range",min:R[0],max:R[R.length-1],step:or,value:c,onChange:p}),r.jsx(dr,{style:{width:`${Math.min(c/R[R.length-1]*92.5,92.5)}%`}}),r.jsx(mr,{sliderValue:c,style:{left:`calc(${Math.min(Math.max(c/R[R.length-1]*100,5),95)}% - 50px)`},children:ar(c)}),r.jsx(ur,{children:R.map((f,$)=>r.jsx(pr,{onClick:()=>k(f),"data-testid":D("slider-label",f.toString()),style:{left:nr($)},children:r.jsx(hr,{isSelected:c>=f,children:sr(f)})},f))})]})}const ar=e=>{const a=tr("0,0.[00]a",e,"$").toUpperCase();return`${rr.transferDrawer.calculator.sliderTooltipText} ${a}`};function ge(e,a){const u=a/100,i=e*Math.pow(1+u/12,12);return Math.floor(i-e)}const nr=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%"}},sr=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),lr=o.input`
|
|
2
2
|
width: 100%;
|
|
3
3
|
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
4
|
height: 2px;
|
|
@@ -60,12 +60,12 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
padding: 2px ${t.sp2};
|
|
63
|
-
`,
|
|
63
|
+
`,Z={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),reviewContentWrapperPaddingBottom:new w(d[5],d[8]),elementsContainerPadding:new w(d[3],d[4])},Re={pageTitle:new O("h6Regular","h5Regular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")},{common:{edit:fr,footer:{back:gr}},dateFormat:{visual:{DMMMYYYYFormat:wr}},spendManagement:{treasury:{transferDrawer:F},billPay:{insufficientFunds:{lowBalance:xr,addOrSwitchInitiateTransfer:yr,lowBalanceIn:$r}}}}=$e.getLocalizedStrings(),br=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:i})=>{const l=ye();if(l==="small"){const c=Tr(e,u,i.treasuryAccount.id);return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:c.topAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.topAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.topAccount?.id??"",!0,c.topAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.topAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.topAccount?.id??"",!0,!0,!0)})]})]}),ce(c.topAccount,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),c.arrowDirection==="up"?r.jsx(ao,{}):r.jsx(no,{}),r.jsxs(he,{style:c.bottomAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.bottomAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.bottomAccount?.id??"",!0,c.bottomAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.bottomAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.bottomAccount?.id??"",!0,!1,!0)})]})]}),ce(c.bottomAccount,i.treasuryAccount.id,l,!0)?r.jsx(fe,{}):null]})]})}else return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:e?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"Transfer Funds From"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,e?.id??"",!0,e?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[e?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ce(e,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),r.jsx(io,{}),r.jsxs(he,{style:u?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"To"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,u?.id??"",!0,u?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[u?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ce(u,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]})]})},vr=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const i=a.balance;return i?L.checkIfLowBalance(u,i):!0}if("accountBalance"in e){const i=e.accountBalance?.available;return i==null?!1:L.checkIfLowBalance(u,i)}return!1},Sr=({transferDetails:e,fundDetails:a,portfolioAllocation:u,isOnSetup:i,setShowReviewContent:l,onTransferClick:c,onCancelClick:h})=>{const p=ye(),k=Lt(),f=Q(e.fetchState),[$,s]=y.useState(!1);y.useEffect(()=>{f==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?s(!0):s(!1)},[e.error]);const{fromAccount:S,toAccount:P,amount:m}=e.treasuryTransferMoneyLocalData,C=vr(S,e.treasuryAccount,m);return r.jsxs(r.Fragment,{children:[r.jsxs(Br,{windowSize:p,children:[r.jsx(Vr,{windowSize:p,children:r.jsx(Ft,{title:"Close",enterTouchDelay:600,placement:"bottom",children:r.jsx(Ye,{"data-testid":D("nav-bar-close-transfer-review"),onClick:h})})}),r.jsx(Wr,{windowSize:p,children:i===!0?F.stepTitle:F.reviewAndConfirm}),i===!0&&r.jsxs(r.Fragment,{children:[r.jsx(qr,{windowSize:p,children:r.jsx(Yr,{children:r.jsxs(Gr,{children:[r.jsx(Ge,{}),r.jsx(Ge,{}),r.jsx(Xr,{})]})})}),p==="small"?r.jsx(oo,{children:F.subTitle}):r.jsx(Ue,{children:F.subTitle})]}),r.jsx(ro,{windowSize:p,children:r.jsx(st,{amount:m,alwaysShowDecimal:!0,integerStyles:Re.integerStyles.styleObject(p),decimalStyles:Re.decimalStyles.styleObject(p)})}),i!==!0&&r.jsxs(r.Fragment,{children:[r.jsx(_r,{}),r.jsx(Ue,{children:r.jsxs(r.Fragment,{children:[F.review.prefix,`"${P?.label}" `,F.success.midfix,` "${S?.label}" `,F.review.suffix.replace("__date__",L.zeniDate(L.getNextNthWorkingDay(L.dateNow().toDate(),[0,6],1).toDateString()).format(wr))]})})]}),C?r.jsx(Mt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:$r.replace("__account__",S?.id===e.treasuryAccount.id?S?.label??"":`${S?.label??""} ${S?.maskedAccountNumber??""}`),description:yr}):null,$?r.jsx(Rr,{children:r.jsxs(Dr,{children:[r.jsxs(Or,{children:[r.jsx(Er,{}),r.jsxs(Lr,{children:[r.jsx(Fr,{children:e.error?.title}),r.jsx(Mr,{children:e.error?.message})]})]}),r.jsx(Ir,{children:r.jsx(Ye,{"data-testid":D("close-error-transfer-review"),onClick:()=>{s(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(Nr,{windowSize:p,children:r.jsxs(Pr,{windowSize:p,children:[r.jsx(Cr,{windowSize:p,children:r.jsx(br,{fromAccount:S,themeContext:k,toAccount:P,transferDetails:e})}),r.jsx(zr,{children:r.jsx(pt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:kr(e),fundAllocations:Ar(e),page:"transfer review"})})]})})]}),r.jsx(nt,{style:i!==!0?{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0}:{zIndex:4},helperText:i!==!0?F.review.footNote:void 0,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:i===!0?gr:fr,onClick:()=>{s(!1),l(!1)},style:{minWidth:94}},primaryBtn:{label:F.transferBtn,onClick:c,isLoading:e.fetchState==="In-Progress",isDisabled:C,style:{minWidth:94}}})]})},V=(e,a,u,i,l)=>{if(i===!0)return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:j.brandColorGoldDark})});if(a==="")return r.jsx(to,{isForReview:l,children:r.jsx(Vt,{})});const c=e.find(p=>p.id===a),h=e.findIndex(p=>p.id===a);if(c!=null){if(c.accType==="depositAccount")return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:Wt(h)})});if(c.accType==="paymentAccount")return c.logo!==void 0&&(c.logo.base64||c.logo.url)?r.jsx(Zr,{src:jr(c.logo),isOptionSelected:u,isForReview:l,loading:"lazy"}):r.jsx(Hr,{isOptionSelected:u,isForReview:l,children:r.jsx(eo,{})})}return null},W=(e,a,u,i,l,c,h)=>{if(!u)return null;if(u===a.id)return(c||!i)&&a.balance?r.jsx(Ce,{children:q("0,0[.]00",a.balance)}):null;const p=e.find(f=>f.id===u);let k=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(k=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Ur,{children:p?.maskedAccountNumber}):r.jsxs(Jr,{className:"option-sublabel",children:[r.jsx(Ce,{children:p?.maskedAccountNumber}),p?.accountBalance?.available?r.jsx(Qr,{className:"dot"}):null,p?.accountBalance?.available?r.jsxs(Ce,{children:[q("0,0[.]00",p.accountBalance.available),k?r.jsx(Kr,{children:xr}):null]}):null,p?.balanceFetchStatus?.fetchState==="In-Progress"?r.jsx(at,{size:"Small",start:!0}):null]})},jr=e=>e.base64!==void 0?`${qt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",kr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},Tr=(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"},ce=(e,a,u,i)=>u==="small"?e?.id===a&&i:e?.id===a,de=o.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
`,ue=o(I)`
|
|
67
67
|
color: ${e=>e.theme.colors.hero};
|
|
68
|
-
`,pe=o(
|
|
68
|
+
`,pe=o(Y)`
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
`,Pr=o.div`
|
|
@@ -76,7 +76,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
76
76
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
77
77
|
box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
78
78
|
border-radius: ${t.sp2};
|
|
79
|
-
padding: ${e=>`${
|
|
79
|
+
padding: ${e=>`${Z.elementsContainerPadding.valuePx(e.windowSize)}`};
|
|
80
80
|
gap: ${t.sp4};
|
|
81
81
|
${e=>e.windowSize==="small"&&`
|
|
82
82
|
width: auto;
|
|
@@ -115,7 +115,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
115
115
|
margin-left: ${t.sp2};
|
|
116
116
|
`,Fr=o(ut)`
|
|
117
117
|
color: ${j.important};
|
|
118
|
-
`,Mr=o(
|
|
118
|
+
`,Mr=o(Y)`
|
|
119
119
|
color: ${j.important};
|
|
120
120
|
`,Rr=o.div`
|
|
121
121
|
margin-top: ${t.sp3};
|
|
@@ -128,8 +128,8 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
128
128
|
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
129
129
|
`,Br=o.div`
|
|
130
130
|
height: auto;
|
|
131
|
-
padding-left: ${e=>`${
|
|
132
|
-
padding-right: ${e=>`${
|
|
131
|
+
padding-left: ${e=>`${Z.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
132
|
+
padding-right: ${e=>`${Z.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
133
133
|
margin-bottom: auto;
|
|
134
134
|
`,Or=o.div`
|
|
135
135
|
display: flex;
|
|
@@ -138,7 +138,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
138
138
|
width: ${t.sp4};
|
|
139
139
|
height: ${t.sp4};
|
|
140
140
|
color: ${j.important};
|
|
141
|
-
`,
|
|
141
|
+
`,Ye=o(Oe)`
|
|
142
142
|
cursor: pointer;
|
|
143
143
|
color: ${e=>e.theme.colors.hero};
|
|
144
144
|
width: ${t.sp4};
|
|
@@ -159,7 +159,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
padding-top: ${t.sp3};
|
|
162
|
-
padding-bottom: ${e=>`${
|
|
162
|
+
padding-bottom: ${e=>`${Z.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
163
163
|
`,Vr=o.div`
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-direction: row;
|
|
@@ -167,7 +167,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
167
167
|
align-items: center;
|
|
168
168
|
width: 100%;
|
|
169
169
|
top: ${t.sp0};
|
|
170
|
-
padding: ${e=>`${
|
|
170
|
+
padding: ${e=>`${Z.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
171
171
|
z-index: 2;
|
|
172
172
|
background-color: transparent;
|
|
173
173
|
`,Wr=o(lt)`
|
|
@@ -183,19 +183,19 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
183
183
|
gap: ${t.sp3};
|
|
184
184
|
width: 100%;
|
|
185
185
|
margin-bottom: ${t.sp3};
|
|
186
|
-
`,
|
|
186
|
+
`,Yr=o.div`
|
|
187
187
|
display: flex;
|
|
188
188
|
align-items: center;
|
|
189
|
-
`,
|
|
189
|
+
`,Gr=o.div`
|
|
190
190
|
display: flex;
|
|
191
191
|
width: 100%;
|
|
192
192
|
gap: ${t.sp3};
|
|
193
|
-
`,
|
|
193
|
+
`,Ge=o.div`
|
|
194
194
|
width: 33.33%;
|
|
195
195
|
height: 2px;
|
|
196
196
|
background-color: ${e=>e.theme.colors.primary};
|
|
197
197
|
border-radius: ${t.sp2};
|
|
198
|
-
`,
|
|
198
|
+
`,Xr=o.div`
|
|
199
199
|
width: 33.33%;
|
|
200
200
|
height: 2px;
|
|
201
201
|
background-color: ${e=>e.theme.colors.grey2};
|
|
@@ -208,16 +208,16 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
208
208
|
gap: ${t.sp2};
|
|
209
209
|
`,Ur=o.span`
|
|
210
210
|
margin-left: ${t.sp2};
|
|
211
|
-
`,Ce=o.div``,Kr=o(
|
|
211
|
+
`,Ce=o.div``,Kr=o(Zt)`
|
|
212
212
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
213
213
|
margin-left: ${t.sp1};
|
|
214
|
-
`,
|
|
214
|
+
`,Qr=o.div`
|
|
215
215
|
width: ${t.sp1};
|
|
216
216
|
height: ${t.sp1};
|
|
217
217
|
min-width: ${t.sp1};
|
|
218
218
|
background-color: ${e=>e.theme.colors.grey1};
|
|
219
219
|
border-radius: 50%;
|
|
220
|
-
`,
|
|
220
|
+
`,Zr=o.img`
|
|
221
221
|
display: flex;
|
|
222
222
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
223
223
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
@@ -233,7 +233,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
233
233
|
width: inherit;
|
|
234
234
|
height: inherit;
|
|
235
235
|
margin-right: ${t.sp2};
|
|
236
|
-
`,
|
|
236
|
+
`,Xe=o.div`
|
|
237
237
|
min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
238
238
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
239
239
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
@@ -256,12 +256,12 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
256
256
|
margin-top: ${t.sp1};
|
|
257
257
|
margin-bottom: ${t.sp1};
|
|
258
258
|
`}
|
|
259
|
-
`,Ue=o(
|
|
259
|
+
`,Ue=o(Y)`
|
|
260
260
|
color: ${e=>e.theme.colors.hero};
|
|
261
261
|
margin-top: ${t.sp3};
|
|
262
262
|
`,oo=o(I)`
|
|
263
263
|
color: ${e=>e.theme.colors.hero};
|
|
264
|
-
`,io=o(
|
|
264
|
+
`,io=o(Qt)`
|
|
265
265
|
width: ${t.sp4};
|
|
266
266
|
height: ${t.sp4};
|
|
267
267
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -282,7 +282,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
282
282
|
position: absolute;
|
|
283
283
|
right: 50%;
|
|
284
284
|
bottom: -25px;
|
|
285
|
-
`,{common:ze,spendManagement:{treasury:B,zeniAccounts:{zeniAccountList:so},billPay:{insufficientFunds:De}}}=$e.getLocalizedStrings(),ht="amount",lo="transferTo",co="transferFrom",N="transferDetails",mt="transferDetailPage",Le=(e,a)=>`${e}.${a}`,ft=e=>`${e}_form`,x={largeLabelWidth:new w(120,120,160),labeleMarginLeft:new w(d[0],d[0]),labelMarginRight:new w(d[3],d[3]),labeleMarginBottom:new w(d[2],d[0]),labeledFieldPaddingLeft:new w(d[3],d[0]),labeledFieldPaddingRight:new w(d[3],d[2]),labeledFieldPaddingTop:new w(d[3],d[3]),labeledFieldPaddingBottom:new w(d[3],d[2]),infoLabelPaddingRight:new w(d[0],d[3]),infoLabelMarginTop:new w(d[1],d[0]),portfolioContainerPadding:new w(d[3],d[4]),rowContentSelectPaddingLeft:new w(d[3],d[4]),formFieldPaddingRight:new w(0,d[2])},we={yieldEarned:new O("smallMedium","standardMedium"),calculatorFooterText:new O("extraSmallRegular","smallRegular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")};function uo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:i,maxInsuredAmount:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onReviewClick:k,onEstablishConnectionClick:f,onFetchLinkTokenClick:$}){const s=ye(),S=x.largeLabelWidth.value(s),[P,m]=y.useState(!1),[C,X]=y.useState(!1),[b,Y]=y.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),E=a.reduce((n,g)=>{const T=g.yield;return Math.max(n,T)},0),[be,ee]=y.useState(ge(b,E)),v=c.link_account_no_microdeposit,[M,ve]=y.useState(v.linkToken??null),[te,re]=y.useState(!1),[oe,Ie]=y.useState(!1),Se=e.transferMoneyPartiesFetchState,Ee=Z(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,ke=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Z(je),Ne=Z(ke),Ae=e.transferMoneyParties.map(n=>n.id),Te=Z(Ae),gt=y.useCallback(n=>{f?.(n),Ie(!1),re(!1)},[f]),wt=y.useCallback((n,g)=>{n!=null&&console.log("Plaid Connection Error",n,g)},[]),{open:ie,ready:J}=Bt({token:M,onSuccess:gt,onExit:wt}),U=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Ot({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Ze(e,i,h??!1,U),[e,i])}),{isValid:xt}=_.formState,{setError:yt,clearErrors:$t}=_;y.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==M&&ve(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,M]),y.useEffect(()=>{v.linkToken===M&&v.fetchStatus.fetchState==="Completed"&&J&&Ie(!0)},[J,M,v.fetchStatus,v.linkToken,v.fetchStatus.fetchState]),y.useEffect(()=>{oe&&te&&ie()},[oe,ie,te]),y.useEffect(()=>{(L.zeniDate(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&$?.("link_account_no_microdeposit")},[]),y.useEffect(()=>{const n=Te!=null&&JSON.stringify(Te)!==JSON.stringify(Ae);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==ke||n)&&_.reset(Ze(e,i,h??!1,U))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,ke,je,Te,Ae,_,e,i,h,U]);const bt=()=>e.transferMoneyParties.find(n=>n.id!==e.treasuryAccount.id&&n.accType==="depositAccount"),vt=()=>{const n=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(g=>g.id===n)},St=async(n,g)=>{if(n!=null){const T={...g},ae=T[N].transferFrom.selectedOption,ne=T[N].transferTo.selectedOption;let se=e.transferMoneyParties.find(Pe=>Pe.id===ae),le=e.transferMoneyParties.find(Pe=>Pe.id===ne);ae===e.treasuryAccount.id&&(se=e.treasuryAccount),ne===e.treasuryAccount.id&&(le=e.treasuryAccount);const We={amount:T[N].amount??0,currencyCode:"USD",currencySymbol:"$"};n.includes("transferFrom")?ae===e.treasuryAccount.id?ne===e.treasuryAccount.id&&(le=bt()):le=e.treasuryAccount:n.includes("transferTo")&&(ne===e.treasuryAccount.id?ae===e.treasuryAccount.id&&(se=vt()):se=e.treasuryAccount);const Tt={amount:We,fromAccount:se,toAccount:le};Y(We.amount),p(Tt)}};y.useEffect(()=>{const n=_.watch((g,{name:T})=>{T!=null&&g!=null&&It(()=>St(T,g))});return()=>{n.unsubscribe()}}),y.useEffect(()=>{ee(ge(b,E))},[b,E]);const jt=()=>{if(K?.id==null||K.id===""||!z.amount)return!1;if(K.id===e.treasuryAccount.id){const n=e.treasuryAccount.balance;if(n&&L.checkIfLowBalance(z,n))return!0}else{const n=e.transferMoneyParties.find(g=>g.id===K.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},kt=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&k()}),{fromAccount:K,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,At=n=>{if(!n||!z.amount)return"";const g=e.transferMoneyParties.find(T=>T.id===n);if(n===e.treasuryAccount.id){const T=e.treasuryAccount.balance;if(T&&L.checkIfLowBalance(z,T))return De.addMoney}else if(g?.accountBalance?.available&&L.checkIfLowBalance(z,g.accountBalance.available))return De.addMoney;return""};return r.jsxs(r.Fragment,{children:[P?r.jsx(po,{children:r.jsxs(mo,{children:[r.jsxs(fo,{children:[r.jsx(wo,{}),r.jsxs(xo,{children:[r.jsx(yo,{children:e.error?.title}),r.jsx($o,{children:e.error?.message})]})]}),r.jsx(go,{children:r.jsx(jo,{"data-testid":D("amount-details-error-close"),onClick:()=>{m(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(bo,{windowSize:s,children:r.jsx(st,{amount:z,integerStyles:we.integerStyles.styleObject(s),decimalStyles:we.decimalStyles.styleObject(s),alwaysShowDecimal:!0})}),r.jsx(Et,{..._,children:r.jsxs(ho,{id:ft(mt),onSubmit:kt,children:[r.jsxs(vo,{children:[r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferFrom,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,co),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!0,!1,z),defaultValue:{selectedOption:K?.id,allOptions:xe(e,!0,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:At})}),!i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferTo,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,lo),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!1,!1),defaultValue:{selectedOption:Ve?.id,allOptions:xe(e,!1,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]}),r.jsx(Fe,{}),r.jsx(_t,{showAdditionalInfoLabel:!1,label:{label:ze.labels.amount,width:S},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:x.formFieldPaddingRight.valuePx(s),width:"auto"},formattedTextField:{type:"number",name:Le(N,ht),defaultValue:z.amount===0?void 0:z.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0},placeholder:B.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(So,{size:s,children:r.jsx(pt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:z,page:"fund transfer"})})]})]}),!i&&Ve?.accType==="treasuryAccount"&&r.jsxs(ko,{children:[C?r.jsxs(Ao,{children:[r.jsx(To,{windowSize:s,children:B.transferDrawer.calculator.heading.replace("__amount__",q("0,0.[00]a",{amount:l,currencySymbol:"$"})).replace("__rate__",E.toString())}),r.jsx(ir,{interestRate:E,transferAmount:b,setYieldEarned:ee,setTransferAmount:Y})]}):null,r.jsxs(Co,{windowSize:s,children:[r.jsxs(Lo,{windowSize:s,children:[r.jsx(zo,{children:r.jsx(Po,{windowSize:s,children:`${B.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:be,currencySymbol:"$"})}`})}),r.jsx(Do,{windowSize:s}),r.jsx(Fo,{children:`${B.transferDrawer.calculator.footerText.forTotalDeposit} ${q("0,0",{amount:b,currencySymbol:"$"})}`})]}),C?r.jsxs(et,{windowSize:s,onClick:()=>X(!1),"data-testid":D("calculator-footer-close"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.hide}),r.jsx(Mo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(et,{windowSize:s,onClick:()=>X(!0),"data-testid":D("calculator-footer-show"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(Ro,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const xe=(e,a,u,i=!0,l,c=!1,h,p)=>{const k=e.treasuryTransferMoneyLocalData.fromAccount?.id,f=e.treasuryTransferMoneyLocalData.toAccount?.id,$=e.transferMoneyParties.find(m=>m.id===k)||e.treasuryAccount,s=e.transferMoneyParties.find(m=>m.id===f)||e.treasuryAccount;let S=e.transferMoneyParties;a||(S=S.filter(m=>m.accType!=="paymentAccount"));const P=S.map(m=>{const C={label:m.label,value:m.id};return i&&(a?C.isDisabled=m.id===f||m.accType==="paymentAccount"&&s?.accType==="paymentAccount":C.isDisabled=m.id===k||m.accType==="paymentAccount"&&$?.accType==="paymentAccount"),C});if(!u){const m={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};i&&(a?m.isDisabled=!1:m.isDisabled=e.treasuryAccount.id===k),a?P.push(m):P.unshift(m)}if(c&&l){const m={label:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ke=e=>{let a=-1,u;return e.transferMoneyParties.forEach(i=>{const l=i.accountBalance?.available?.amount??0;l>a&&(a=l,u=i.id)}),u},Ze=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?Ke(e):l!=null?l.id:Ke(e);return{transferDetails:{[ht]:h.amount===0?void 0:h.amount,transferFrom:{allOptions:xe(e,!0,a,!0,i,!1),selectedOption:p()},transferTo:{allOptions:xe(e,!1,a,!0,i,!1),selectedOption:c?.id}}}},po=o.div`
|
|
285
|
+
`,{common:ze,spendManagement:{treasury:B,zeniAccounts:{zeniAccountList:so},billPay:{insufficientFunds:De}}}=$e.getLocalizedStrings(),ht="amount",lo="transferTo",co="transferFrom",N="transferDetails",mt="transferDetailPage",Le=(e,a)=>`${e}.${a}`,ft=e=>`${e}_form`,x={largeLabelWidth:new w(120,120,160),labeleMarginLeft:new w(d[0],d[0]),labelMarginRight:new w(d[3],d[3]),labeleMarginBottom:new w(d[2],d[0]),labeledFieldPaddingLeft:new w(d[3],d[0]),labeledFieldPaddingRight:new w(d[3],d[2]),labeledFieldPaddingTop:new w(d[3],d[3]),labeledFieldPaddingBottom:new w(d[3],d[2]),infoLabelPaddingRight:new w(d[0],d[3]),infoLabelMarginTop:new w(d[1],d[0]),portfolioContainerPadding:new w(d[3],d[4]),rowContentSelectPaddingLeft:new w(d[3],d[4]),formFieldPaddingRight:new w(0,d[2])},we={yieldEarned:new O("smallMedium","standardMedium"),calculatorFooterText:new O("extraSmallRegular","smallRegular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")};function uo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:i,maxInsuredAmount:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onReviewClick:k,onEstablishConnectionClick:f,onFetchLinkTokenClick:$}){const s=ye(),S=x.largeLabelWidth.value(s),[P,m]=y.useState(!1),[C,G]=y.useState(!1),[b,X]=y.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),E=a.reduce((n,g)=>{const T=g.yield;return Math.max(n,T)},0),[be,ee]=y.useState(ge(b,E)),v=c.link_account_no_microdeposit,[M,ve]=y.useState(v.linkToken??null),[te,re]=y.useState(!1),[oe,Ie]=y.useState(!1),Se=e.transferMoneyPartiesFetchState,Ee=Q(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,ke=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Q(je),Ne=Q(ke),Ae=e.transferMoneyParties.map(n=>n.id),Te=Q(Ae),gt=y.useCallback(n=>{f?.(n),Ie(!1),re(!1)},[f]),wt=y.useCallback((n,g)=>{n!=null&&console.log("Plaid Connection Error",n,g)},[]),{open:ie,ready:J}=Bt({token:M,onSuccess:gt,onExit:wt}),U=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Ot({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Qe(e,i,h??!1,U),[e,i])}),{isValid:xt}=_.formState,{setError:yt,clearErrors:$t}=_;y.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==M&&ve(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,M]),y.useEffect(()=>{v.linkToken===M&&v.fetchStatus.fetchState==="Completed"&&J&&Ie(!0)},[J,M,v.fetchStatus,v.linkToken,v.fetchStatus.fetchState]),y.useEffect(()=>{oe&&te&&ie()},[oe,ie,te]),y.useEffect(()=>{(L.zeniDate(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&$?.("link_account_no_microdeposit")},[]),y.useEffect(()=>{const n=Te!=null&&JSON.stringify(Te)!==JSON.stringify(Ae);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==ke||n)&&_.reset(Qe(e,i,h??!1,U))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,ke,je,Te,Ae,_,e,i,h,U]);const bt=()=>e.transferMoneyParties.find(n=>n.id!==e.treasuryAccount.id&&n.accType==="depositAccount"),vt=()=>{const n=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(g=>g.id===n)},St=async(n,g)=>{if(n!=null){const T={...g},ae=T[N].transferFrom.selectedOption,ne=T[N].transferTo.selectedOption;let se=e.transferMoneyParties.find(Pe=>Pe.id===ae),le=e.transferMoneyParties.find(Pe=>Pe.id===ne);ae===e.treasuryAccount.id&&(se=e.treasuryAccount),ne===e.treasuryAccount.id&&(le=e.treasuryAccount);const We={amount:T[N].amount??0,currencyCode:"USD",currencySymbol:"$"};n.includes("transferFrom")?ae===e.treasuryAccount.id?ne===e.treasuryAccount.id&&(le=bt()):le=e.treasuryAccount:n.includes("transferTo")&&(ne===e.treasuryAccount.id?ae===e.treasuryAccount.id&&(se=vt()):se=e.treasuryAccount);const Tt={amount:We,fromAccount:se,toAccount:le};X(We.amount),p(Tt)}};y.useEffect(()=>{const n=_.watch((g,{name:T})=>{T!=null&&g!=null&&It(()=>St(T,g))});return()=>{n.unsubscribe()}}),y.useEffect(()=>{ee(ge(b,E))},[b,E]);const jt=()=>{if(K?.id==null||K.id===""||!z.amount)return!1;if(K.id===e.treasuryAccount.id){const n=e.treasuryAccount.balance;if(n&&L.checkIfLowBalance(z,n))return!0}else{const n=e.transferMoneyParties.find(g=>g.id===K.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},kt=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&k()}),{fromAccount:K,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,At=n=>{if(!n||!z.amount)return"";const g=e.transferMoneyParties.find(T=>T.id===n);if(n===e.treasuryAccount.id){const T=e.treasuryAccount.balance;if(T&&L.checkIfLowBalance(z,T))return De.addMoney}else if(g?.accountBalance?.available&&L.checkIfLowBalance(z,g.accountBalance.available))return De.addMoney;return""};return r.jsxs(r.Fragment,{children:[P?r.jsx(po,{children:r.jsxs(mo,{children:[r.jsxs(fo,{children:[r.jsx(wo,{}),r.jsxs(xo,{children:[r.jsx(yo,{children:e.error?.title}),r.jsx($o,{children:e.error?.message})]})]}),r.jsx(go,{children:r.jsx(jo,{"data-testid":D("amount-details-error-close"),onClick:()=>{m(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(bo,{windowSize:s,children:r.jsx(st,{amount:z,integerStyles:we.integerStyles.styleObject(s),decimalStyles:we.decimalStyles.styleObject(s),alwaysShowDecimal:!0})}),r.jsx(Et,{..._,children:r.jsxs(ho,{id:ft(mt),onSubmit:kt,children:[r.jsxs(vo,{children:[r.jsx(Be,{size:s,children:r.jsx(Ze,{label:{label:ze.labels.transferFrom,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,co),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!0,!1,z),defaultValue:{selectedOption:K?.id,allOptions:xe(e,!0,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:At})}),!i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(Be,{size:s,children:r.jsx(Ze,{label:{label:ze.labels.transferTo,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,lo),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!1,!1),defaultValue:{selectedOption:Ve?.id,allOptions:xe(e,!1,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]}),r.jsx(Fe,{}),r.jsx(_t,{showAdditionalInfoLabel:!1,label:{label:ze.labels.amount,width:S},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:x.formFieldPaddingRight.valuePx(s),width:"auto"},formattedTextField:{type:"number",name:Le(N,ht),defaultValue:z.amount===0?void 0:z.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0},placeholder:B.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(So,{size:s,children:r.jsx(pt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:z,page:"fund transfer"})})]})]}),!i&&Ve?.accType==="treasuryAccount"&&r.jsxs(ko,{children:[C?r.jsxs(Ao,{children:[r.jsx(To,{windowSize:s,children:B.transferDrawer.calculator.heading.replace("__amount__",q("0,0.[00]a",{amount:l,currencySymbol:"$"})).replace("__rate__",E.toString())}),r.jsx(ir,{interestRate:E,transferAmount:b,setYieldEarned:ee,setTransferAmount:X})]}):null,r.jsxs(Co,{windowSize:s,children:[r.jsxs(Lo,{windowSize:s,children:[r.jsx(zo,{children:r.jsx(Po,{windowSize:s,children:`${B.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:be,currencySymbol:"$"})}`})}),r.jsx(Do,{windowSize:s}),r.jsx(Fo,{children:`${B.transferDrawer.calculator.footerText.forTotalDeposit} ${q("0,0",{amount:b,currencySymbol:"$"})}`})]}),C?r.jsxs(et,{windowSize:s,onClick:()=>G(!1),"data-testid":D("calculator-footer-close"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.hide}),r.jsx(Mo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(et,{windowSize:s,onClick:()=>G(!0),"data-testid":D("calculator-footer-show"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(Ro,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const xe=(e,a,u,i=!0,l,c=!1,h,p)=>{const k=e.treasuryTransferMoneyLocalData.fromAccount?.id,f=e.treasuryTransferMoneyLocalData.toAccount?.id,$=e.transferMoneyParties.find(m=>m.id===k)||e.treasuryAccount,s=e.transferMoneyParties.find(m=>m.id===f)||e.treasuryAccount;let S=e.transferMoneyParties;a||(S=S.filter(m=>m.accType!=="paymentAccount"));const P=S.map(m=>{const C={label:m.label,value:m.id};return i&&(a?C.isDisabled=m.id===f||m.accType==="paymentAccount"&&s?.accType==="paymentAccount":C.isDisabled=m.id===k||m.accType==="paymentAccount"&&$?.accType==="paymentAccount"),C});if(!u){const m={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};i&&(a?m.isDisabled=!1:m.isDisabled=e.treasuryAccount.id===k),a?P.push(m):P.unshift(m)}if(c&&l){const m={label:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ke=e=>{let a=-1,u;return e.transferMoneyParties.forEach(i=>{const l=i.accountBalance?.available?.amount??0;l>a&&(a=l,u=i.id)}),u},Qe=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?Ke(e):l!=null?l.id:Ke(e);return{transferDetails:{[ht]:h.amount===0?void 0:h.amount,transferFrom:{allOptions:xe(e,!0,a,!0,i,!1),selectedOption:p()},transferTo:{allOptions:xe(e,!1,a,!0,i,!1),selectedOption:c?.id}}}},po=o.div`
|
|
286
286
|
margin-top: ${t.sp3};
|
|
287
287
|
display: flex;
|
|
288
288
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -316,7 +316,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
316
316
|
margin-left: ${t.sp2};
|
|
317
317
|
`,yo=o(ut)`
|
|
318
318
|
color: ${j.important};
|
|
319
|
-
`,$o=o(
|
|
319
|
+
`,$o=o(Y)`
|
|
320
320
|
color: ${j.important};
|
|
321
321
|
`,bo=o(ct)`
|
|
322
322
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -325,7 +325,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
325
325
|
margin-top: ${t.sp1};
|
|
326
326
|
margin-bottom: ${t.sp1};
|
|
327
327
|
`}
|
|
328
|
-
`,
|
|
328
|
+
`,Ze=o(Nt)`
|
|
329
329
|
border-radius: ${t.sp2};
|
|
330
330
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
331
331
|
`,vo=o.div`
|
|
@@ -396,7 +396,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
396
396
|
justify-content: center;
|
|
397
397
|
align-items: center;
|
|
398
398
|
flex-direction: column;
|
|
399
|
-
`,To=o(
|
|
399
|
+
`,To=o(Y)`
|
|
400
400
|
color: ${e=>e.theme.colors.hero};
|
|
401
401
|
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
402
402
|
white-space: pre-line;
|
|
@@ -449,9 +449,9 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
449
449
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
450
450
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
451
451
|
width: ${e=>e.windowSize==="small"?"100%":"unset"};
|
|
452
|
-
`,Fo=o(
|
|
452
|
+
`,Fo=o(Gt)`
|
|
453
453
|
color: ${e=>e.theme.colors.hero};
|
|
454
|
-
`,Mo=o(
|
|
454
|
+
`,Mo=o(Xt)`
|
|
455
455
|
cursor: pointer;
|
|
456
456
|
width: 12px;
|
|
457
457
|
height: 12px;
|
|
@@ -465,7 +465,7 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
465
465
|
min-width: 12px;
|
|
466
466
|
min-height: 12px;
|
|
467
467
|
color: ${e=>e.theme.colors.hero};
|
|
468
|
-
`,H={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),successContentMargin:new w(d[3],d[12]),buttonTrayGap:new w(d[4],d[5])},Bo={formTitle:new O("h6Regular","h5Regular")},{common:Me,spendManagement:{treasury:A}}=$e.getLocalizedStrings(),li=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:i,isFirstTransfer:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onTransferClick:k,onAnotherTransferClick:f,onCancelClick:$,onBackClick:s,setShowReviewContent:S,onReviewClick:P,onEstablishConnectionClick:m,onFetchLinkTokenClick:C,onSkipClick:
|
|
468
|
+
`,H={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),successContentMargin:new w(d[3],d[12]),buttonTrayGap:new w(d[4],d[5])},Bo={formTitle:new O("h6Regular","h5Regular")},{common:Me,spendManagement:{treasury:A}}=$e.getLocalizedStrings(),li=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:i,isFirstTransfer:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onTransferClick:k,onAnotherTransferClick:f,onCancelClick:$,onBackClick:s,setShowReviewContent:S,onReviewClick:P,onEstablishConnectionClick:m,onFetchLinkTokenClick:C,onSkipClick:G})=>{const b=ye(),{fundsData:X,currentAllocation:E,fundAllocationOptions:be,fetchState:ee}=a,v=be.find(oe=>Pt(oe.allocation,E))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},M=()=>ee==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:ve,toAccount:te,amount:re}=e.treasuryTransferMoneyLocalData;return r.jsx(Eo,{windowSize:b,children:e.fetchState==="Completed"?r.jsxs(tt,{windowSize:b,isTransferCompleted:!0,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-transfer-success-close-button"),onClick:()=>{$()}})}),r.jsxs(Wo,{windowSize:b,children:[r.jsx(Ct,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),r.jsx(_o,{children:r.jsxs(r.Fragment,{children:[A.transferDrawer.success.prefix,r.jsx(No,{children:q("0,0.[00]",re)}),A.transferDrawer.success.midfix,`"${ve?.label}"`,A.transferDrawer.success.midfix2,`"${te?.label}".`]})}),r.jsxs(Vo,{windowSize:b,children:[r.jsx(qe,{variant:"secondary",label:A.transferDrawer.anotherTransfer,"data-testid":D("another-transfer-button","treasury"),onClick:()=>{f?.()},style:{minWidth:200}}),r.jsx(qe,{variant:"primary",label:A.transferDrawer.backToTreasury,"data-testid":D("back-to-treasury-button"),onClick:()=>{$()},style:{minWidth:200}})]})]})]}):u?r.jsx(Sr,{transferDetails:e,setShowReviewContent:S,onTransferClick:k,fundDetails:X,portfolioAllocation:v,isOnSetup:h,onCancelClick:$}):r.jsxs(r.Fragment,{children:[r.jsxs(tt,{windowSize:b,isTransferCompleted:!1,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-amount-details-close-button"),onClick:()=>{$()}})}),b==="small"?r.jsx(qo,{windowSize:b,children:h===!0?A.transferDrawer.stepTitle:l?A.transferDrawer.title:A.transferDrawer.transferBetweenAccounts}):r.jsx(Yo,{windowSize:b,children:h===!0?A.transferDrawer.stepTitle:l?A.transferDrawer.title:A.transferDrawer.transferBetweenAccounts}),h===!0&&r.jsx(Go,{windowSize:b,children:r.jsx(Xo,{children:r.jsxs(Jo,{children:[r.jsx(it,{}),r.jsx(it,{}),r.jsx(Uo,{})]})})}),b==="small"?r.jsx(Io,{children:A.transferDrawer.subTitle}):r.jsx(Oo,{children:A.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?r.jsx(uo,{onSaveChangesToLocalStore:p,transferDetails:e,onReviewClick:P,fundDetails:X,portfolioAllocation:v,isOnSetup:h,isFirstTransfer:l,maxInsuredAmount:i,plaidConnectionDetails:c,onEstablishConnectionClick:m,onFetchLinkTokenClick:C}):r.jsx(at,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),M()?r.jsx(nt,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ft(mt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:h===!0&&G?r.jsx(Ko,{onClick:G,"data-testid":D("skip-transfer-link"),children:A.transferDrawer.skip}):null,primaryBtn:{label:Me.review},cancelBtn:{label:h===!0?Me.footer.back:Me.cancel,onClick:()=>{h===!0?s():$()}}}):null]})})},Oo=o(Y)`
|
|
469
469
|
color: ${e=>e.theme.colors.hero};
|
|
470
470
|
`,Io=o(I)`
|
|
471
471
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -523,18 +523,18 @@ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,n as qe,P as at,
|
|
|
523
523
|
margin-top: ${t.sp3};
|
|
524
524
|
margin-bottom: ${t.sp0};
|
|
525
525
|
margin-right: ${t.sp3};
|
|
526
|
-
`,
|
|
526
|
+
`,Yo=o(lt)`
|
|
527
527
|
${e=>`${Bo.formTitle.style(e.windowSize)}`};
|
|
528
528
|
color: ${e=>e.theme.colors.primary};
|
|
529
529
|
margin-top: ${t.sp3};
|
|
530
530
|
margin-bottom: ${t.sp2};
|
|
531
|
-
`,
|
|
531
|
+
`,Go=o.div`
|
|
532
532
|
display: flex;
|
|
533
533
|
flex-direction: column;
|
|
534
534
|
gap: ${t.sp3};
|
|
535
535
|
width: 100%;
|
|
536
536
|
margin-bottom: ${t.sp3};
|
|
537
|
-
`,
|
|
537
|
+
`,Xo=o.div`
|
|
538
538
|
display: flex;
|
|
539
539
|
align-items: center;
|
|
540
540
|
`,Jo=o.div`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{O as Y,j as n,l as u,c as Z,aM as w,b3 as z,bQ as A,bR as F,bh as O,C as k,bg as P,aX as B,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-6DHFBk74.js";import{b as D,w as X,n as $}from"./vendor-Bs1fkIUX.js";import{d as Q,g as M,p as v,u as V}from"./chartTypes-BoA9fCCZ-7xW-fVbz.js";import{o as W}from"./toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js";import{V as U}from"./toChartData-KZ92y9KA-BJN5TA9Q.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const H=$.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,I
|
|
3
|
+
`,I=$.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
|
-
`,J
|
|
10
|
+
`,J=$(N)`
|
|
11
11
|
color: ${e=>e.color??K.neutralGrey2Light};
|
|
12
12
|
text-align: left;
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: space-between;
|
|
16
|
-
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(i=>{const l=i.name;if(i&&e&&i.value!==0){const d=i.payload,b=i.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(J,{color:a.color,children:`${a.barName}: ${V(a.value)}`},a.barName+r))})}):null},ae=X.memo(te),re=(e,t,a,r)=>{let i=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(i=W("trend","actual",l))}if(i.length>0){const l=v("trend","actual"),d={};return d[l]=i,U(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!")}},S=[v("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:i,width:l,height:d,onTimeframeSelectionChanged:b}){const m=D.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=Y.getLocalizedStrings().reports.trend[t?.balancesKind];D.useEffect(()=>{m.current=!0},[]);const x=re(e,S,a,t),j=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:s=>{const c=s.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":w(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(i),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:i,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(i=>{const l=i.name;if(i&&e&&i.value!==0){const d=i.payload,b=i.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(J,{color:a.color,children:`${a.barName}: ${V(a.value)}`},a.barName+r))})}):null},ae=X.memo(te),re=(e,t,a,r)=>{let i=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(i=W("trend","actual",l))}if(i.length>0){const l=v("trend","actual"),d={};return d[l]=i,U(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!")}},S=[v("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:i,width:l,height:d,onTimeframeSelectionChanged:b}){const m=D.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=Y.getLocalizedStrings().reports.trend[t?.balancesKind];D.useEffect(()=>{m.current=!0},[]);const x=re(e,S,a,t),j=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:s=>{const c=s.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":w(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(i),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:i,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=Z(),[g,y]=D.useState([void 0,void 0]),x=e.timeseries,j=Q(e),p=x.map(o=>o.label);D.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const s=o.activePayload[0];if(s?.payload?.record?.[v("trend","actual")]?.amount==null)return;const c=s.payload.record[v("trend","actual")].amount;if(c!=null&&c.amount===0||s?.payload?.timeLabel?.label==null)return;const T=s.payload.timeLabel.label,E=s.payload.timeLabel.startDate,C=s.payload.timeLabel.endDate,R=M(T,p,1);y(R),b?.(t,{startDate:E,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":w("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:s})=>n.jsxs(A,{"data-testid":w("bar-chart"),width:s,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(O,{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(P,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>B("0,0.[00]a",c,j)}),n.jsx(q,{cursor:!1,content:i,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=Y.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=`${Y.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as D,j as i,P as R,o as t,
|
|
1
|
+
import{q as D,j as i,P as R,o as t,O as b,y as c,aM as S,b3 as q,b6 as Y,_,u as a,am as E,A as K}from"./index-6DHFBk74.js";import{b as H,n}from"./vendor-Bs1fkIUX.js";import V from"./TrendChart-ohr8bK1l-B5dRIvEy.js";import{C as W}from"./NoDataChart-CpocQ1Pa-ChFzAJ2R.js";import{q as X}from"./InsightsSection-BpVW6ov6-CBRdcxmz.js";import{f as Z}from"./TransactionList-CzdU-NQx-D6gdr6x7.js";const G=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
`,J=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -26,7 +26,7 @@ import{q as D,j as i,P as R,o as t,F,y as c,aM as S,b3 as q,b6 as Y,_,u as a,am
|
|
|
26
26
|
&:hover {
|
|
27
27
|
color: inherit;
|
|
28
28
|
}
|
|
29
|
-
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{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=
|
|
29
|
+
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{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%;
|
|
@@ -113,4 +113,4 @@ import{q as D,j as i,P as R,o as t,F,y as c,aM as S,b3 as q,b6 as Y,_,u as a,am
|
|
|
113
113
|
align-items: center;
|
|
114
114
|
height: ${e=>j.loaderTrendChartHeight.valuePx(e.windowSize)};
|
|
115
115
|
margin-top: ${t.sp8};
|
|
116
|
-
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",P=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},v=D(),[I
|
|
116
|
+
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},w="month",$=u?.timeframe==="month",P=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},v=D(),[O,I]=H.useState(d),z=H.useRef(null),F=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[P?M()?i.jsx(ve,{windowSize:v,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:v,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(V,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(A,B)=>{f?.("Chart",{timeframe:A,addTimePeriod:B})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(X,{insights:h?.insights})})]})},k=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:$,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{I(x)}})}),N=p=>{const x=z.current!=null?z.current.clientHeight:56;return(P===!0?j.emptyTrendChartHeight.value(v):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(Pe,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:v,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:v,height:N(O),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(F,{})}),i.jsx(k,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(k,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(fe,{windowSize:e,children:m});const f=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:f})};export{Le as R};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as ce,q as se,ax as Ke,aP as en,gO as R,hP as U,O as H,aa as nn,hQ as tn,hR as Te,cS as on,j as t,bF as cn,cD as sn,cE as ln,cF as an,ad as rn,l as J,hS as dn,P as un,hT as Y,hU as pn,aQ as mn,hV as _e,y as u,am as gn,o as l,d3 as fe,aU as W,gT as oe,hW as ie,u as d,b as Ae,h as $e,gg as Ve,ai as Se,bm as xn}from"./index-6DHFBk74.js";import{b as X,n as s}from"./vendor-Bs1fkIUX.js";import{D as hn}from"./HelpButton-Cp2LXxyy-C5Y06Y1n.js";import{h as wn}from"./VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aP as b,j as t,hY as R,hZ as _,q as F,
|
|
1
|
+
import{aP as b,j as t,hY as R,hZ as _,q as F,O,cD as N,af as C,cE as U,cF as z,aa as M,ad as G,c$ as H,l as T,cX as D,y as g,cY as Y,h as A,ap as J,P as X,n as Z,o as i,am as K,u as E,ar as Q,b9 as ee}from"./index-6DHFBk74.js";import{b as c,n as f}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(E[3],E[2]),width:new g(300,420,420)},te=f.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -12,7 +12,7 @@ import{aP as b,j as t,hY as R,hZ as _,q as F,F as O,cD as N,af as C,cE as U,cF a
|
|
|
12
12
|
background-color: ${e=>e.theme.colors.grey3};
|
|
13
13
|
min-height: 1px;
|
|
14
14
|
max-height: 1px;
|
|
15
|
-
`;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:r,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,v=d.businessInfoDescription,p=F(),I="business-info-form",x="companyIndustry",
|
|
15
|
+
`;function se({selectedIndustry:e,allIndustries:l,saveDetailsFetchState:o,incDate:n,onSubmitBusinessInfo:u,onCancel:s}){const{companyPassport:r,dateFormat:m,commonSetUp:{twoFactorAuthentication:d}}=O.getLocalizedStrings(),k=d.businessInfoTitle,v=d.businessInfoDescription,p=F(),I="business-info-form",x="companyIndustry",y="incDate",h=M({mode:"all",values:{[x]:{selectedOption:e,allOptions:l.map(a=>a.code)},[y]:n?.toDate()}}),$=h.handleSubmit(a=>{u?.(a[x].selectedOption??"",a[y])}),S=a=>l.find(w=>w.code===a)?.name??a;return t.jsx(G,{...h,children:t.jsx("form",{id:I,onSubmit:$,children:t.jsx(N,{formId:I,titleComponent:t.jsx(z,{children:k}),descriptionComponent:t.jsx(U,{children:v}),primaryButtonText:d.submit,secondaryButtonText:d.cancel,isLoading:o==="In-Progress",isEditPopup:!0,action:{onOkClick:()=>console.log(""),onCancelClick:s},children:t.jsxs(te,{windowSize:p,children:[t.jsx(H,{label:{label:r.companyIncInfo.incDate,width:V.labelWidth.value(p)},style:{paddingBottom:V.paddingBottom.valuePx(p),width:V.width.valuePx(p)},dateField:{name:y,placeholder:D(r.companyIncInfo.incDate),defaultValue:n,dateFormat:m.visual.defaultInput,maxDate:T.dateNow(),minDate:T.zeniDate("01 Jan 1900"),autoComplete:"off",registerOptions:{required:!0}},additionalInfoLabel:d.requireIncDate}),t.jsx(ie,{}),t.jsx(Y,{label:{label:r.companyInfo.industry,width:V.smallLabelWidth.value(p)},style:{width:V.width.valuePx(p)},singleSelectField:{singleSelect:{getLabelForId:S,showTickMark:!1,alwaysShowEyeTooltip:!1,name:x,placeholder:D(r.companyInfo.industry),showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:e,allOptions:l?.map(a=>a.code)??[]},registerOptions:{required:!0,validate:a=>!!(a!=null&&a.selectedOption)}},errorInfoLabel:d.requireIndustry,isFunctional:!0})]})})})})}const ne=f(K)`
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
padding: 9px;
|
|
18
18
|
margin: ${e=>e.windowSize==="small"?`${i.sp0} ${i.sp3} ${i.sp7} ${i.sp3}`:`${i.sp0} ${i.sp8} ${i.sp7} ${i.sp8}`};
|
|
@@ -64,4 +64,4 @@ import{aP as b,j as t,hY as R,hZ as _,q as F,F as O,cD as N,af as C,cE as U,cF a
|
|
|
64
64
|
padding-top: ${i.sp3};
|
|
65
65
|
position: absolute;
|
|
66
66
|
bottom: 0;
|
|
67
|
-
`;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,r=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(ae,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(re,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(
|
|
67
|
+
`;function de(e){const l=F(),o=O.getLocalizedStrings().commonSetUp.twoFactorAuthentication,n=e.businessVerificationSubmitState!=="In-Progress"&&(e.businessVerificationSubmitState==="Error"||e.businessVerificationStatus==="require_info"||e.businessVerificationStatus==null),u=n===!0?o.verificationFailed:o.verificationInProgress,s=n===!0?o.verificationError:e.businessVerificationSubmitState==="In-Progress"?"":o.submissionSuccessful,r=n?o.goToSettings:o.understood,m=()=>{n?e.action.onNavigateToSettings():e.action.onBackClick()};return t.jsx(ae,{windowSize:l,role:"presentation",style:{background:A.overlayDark,...e.style},children:t.jsx(J,{onClickAway:()=>e.action.onCancelClick?.(),children:t.jsxs(re,{windowSize:l,isEditPopup:!1,children:[t.jsx(ce,{isError:n,children:u}),s!==""?t.jsx(le,{children:s}):null,e.businessVerificationSubmitState==="In-Progress"?t.jsx(X,{size:"Standard",start:!0,style:{marginTop:84}}):null,e.businessVerificationSubmitState!=="In-Progress"?t.jsxs(t.Fragment,{children:[t.jsx(ue,{}),t.jsx(L,{children:t.jsx(Z,{variant:e.proceedButtonVariant??"primary",label:r,onClick:m,style:{width:134,whiteSpace:"nowrap"},loading:e.isLoading})})]}):t.jsx(L,{})]})})})}const we=e=>{const{isUnitMigrationTOSRequired:l,isUnitMigrationRequired:o,officer:n,setupDetailsFetchState:u,onVerifyOtpSuccess:s}=e,r=b(e.setupDetailsFetchState),m=b(e.acceptUpdatedTOSFetchState.fetchState),d=b(n?.otpverificationStatus?.fetchState),k=b(e.businessVerificationSubmitState),v=b(e.businessVerificationStatus),p=b(e.officer?.sendOtpStatus.fetchState),[I,x]=c.useState(l===!0),[y,h]=c.useState(e.isListPage&&u==="Completed"&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")),[$,S]=c.useState(n?.isPhoneVerified===!1),[a,w]=c.useState(!1),[q,j]=c.useState(e.isNewCompanyIndustryVerified!==!0||e.incDate==null);return c.useEffect(()=>{m==="In-Progress"&&e.acceptUpdatedTOSFetchState?.fetchState==="Completed"&&(n?.isPhoneVerified===!1?S(!0):(e.isNewCompanyIndustryVerified!==!0||e.incDate==null)&&j(!0),x(!1))},[m,e.acceptUpdatedTOSFetchState,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{d==="In-Progress"&&n?.otpverificationStatus?.fetchState==="Completed"&&(s?.(n?.officerType,n?.phone+""),e.isNewCompanyIndustryVerified!==!0||e.incDate==null?j(!0):h(!0),w(!1))},[d,s,n,e.isNewCompanyIndustryVerified,e.incDate]),c.useEffect(()=>{!e.isListPage&&k==="In-Progress"&&(e.businessVerificationSubmitState==="Completed"||e.businessVerificationSubmitState==="Error")&&h(!1)},[k,e.businessVerificationSubmitState,e.isListPage]),c.useEffect(()=>{v==="pending_review"&&e.businessVerificationStatus==="verified"&&h(!1)},[v,e.businessVerificationStatus]),c.useEffect(()=>{r==="In-Progress"&&u==="Completed"&&(n?.isPhoneVerified===!1&&S(!0),e.isListPage&&(e.businessVerificationStatus==null||e.businessVerificationStatus==="pending_review"||e.businessVerificationStatus==="require_info")&&h(!0))},[r,u,n,e.businessVerificationStatus,e.isListPage]),c.useEffect(()=>{p==="In-Progress"&&e.officer?.sendOtpStatus.fetchState==="Completed"&&(w(!0),S(!1))},[p,e.officer?.sendOtpStatus]),t.jsx(t.Fragment,{children:I===!0?t.jsx(oe,{...e}):o===!0&&a===!0?t.jsx(R,{showHelperText:!0,verifyOtpFetchState:e.officer?.otpverificationStatus.fetchState??"Not-Started",phoneNumber:e.officer?.phone??"",otpChallenge:e.officer?.otpChallenge,action:{onVerifyClick:e.onVerifyOtp,onCancelClick:()=>e.onBackClick(),onResendOtp:e.onResendOtp,onEditButtonClick:()=>{S(!0),w(!1)}}}):o===!0&&$===!0?t.jsx(_,{showHelperText:!0,phoneNumber:e.officer?.phone??"",sendOtpFetchState:e.officer?.sendOtpStatus.fetchState??"Not-Started",action:{onCancelClick:e.onBackClick,onGetCodeClick:P=>e.onGetOtp?.(P,e.officer?.officerType)}}):o===!0&&q===!0?t.jsx(se,{incDate:e.incDate,allIndustries:e.allIndustries??[],selectedIndustry:e.companyIndustry,saveDetailsFetchState:e.companyDetailsSaveState,onCancel:e.onBackClick,onSubmitBusinessInfo:(P,W)=>{e.officer!=null&&h(!0),e.onSubmitBusinessInfo?.(P,W,n?.officerType),j(!1)}}):y===!0?t.jsx(de,{businessVerificationStatus:e.businessVerificationStatus,businessVerificationSubmitState:e.businessVerificationSubmitState,action:{onNavigateToSettings:e.onNavigateToSettings,onBackClick:e.onBackClick}}):null})};export{we as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aa as U,fV as x,aP as _,l as k,q as A,
|
|
1
|
+
import{aa as U,fV as x,aP as _,l as k,q as A,O as W,j as i,cS as q,ad as Q,aM as G,fW as H,o as a,h as J,d0 as K,aQ as X,y,A as Y,_ as Z,b9 as ee,b8 as te,u as c}from"./index-6DHFBk74.js";import{b as m,n as l}from"./vendor-Bs1fkIUX.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onSendForVerificationClick:D,onCompanyOfficerUpdated:z}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[C,S]=m.useState(!1),[N,O]=m.useState(!1),b=_(f.fetchState),j=t?.deleteFileStatusById??{},B=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),V=k.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,L=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{V.fetchState!=="In-Progress"&&D?.(t?.officerType??"Officer_1")}),M=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(z?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&q(()=>M(d,p))});return()=>{o.unsubscribe()}}),i.jsx(Q,{...n,children:i.jsxs("form",{id:u,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":G("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:L})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:B,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onFileSizeError:o=>O(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
|
|
2
2
|
margin-top: 19px;
|
|
3
3
|
color: ${e=>e.theme.colors.primary};
|
|
4
4
|
margin-bottom: ${a.sp2};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aP as o,O as E,j as i,hY as j,hZ as v}from"./index-6DHFBk74.js";import{b as t}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const H=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:e,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=t.useState(!1),[O,a]=t.useState(e.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(e.userVerificationStatus.fetchState),f=o(e.otpVerificationStatus?.fetchState),u=o(e.sendOtpStatus.fetchState),P=E.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return t.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[r,e,p]),t.useEffect(()=>{x==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[e.userVerificationStatus]),t.useEffect(()=>{f==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&c?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[f,e,c]),t.useEffect(()=>{u==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,e.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(j,{showHelperText:!n,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(v,{showHelperText:!n,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:y=>h?.(y)}}):null})};export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as u}from"./index-
|
|
1
|
+
import{j as u}from"./index-6DHFBk74.js";import{b as d}from"./vendor-Bs1fkIUX.js";import{f as k}from"./ACHDetailsPage-QkOAxB4j-BwmsngrU.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js";import"./MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js";import"./BankAccountSection-D8_5fjrd-BCE6WYWF.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
|