@zeniai/web-cockpit-ui 1.14.22-qa → 1.14.23-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-Csc8UPGK-3Hzrt8sv.js → ACHDetailsPage-DZv7I3Jm-zPHhT4Vj.js} +3 -3
- package/dist/assets/{AIPerformancePage-BNK1zghX-BOagkgDU.js → AIPerformancePage-DCq95N_N-DO8MzOBI.js} +26 -26
- package/dist/assets/{AccountInfoPage-WoQj1Knu-C0NqBhcm.js → AccountInfoPage-wfDS5ToF-BkRJ-lxL.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BsiMZrTm-CTTq-Yc2.js → AccountInfoPageContent-dgeBtGlm-BSaBGsXw.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-CaIpZQOZ-CNfkV6iH.js → AccountLockedInfoModal-CqjvVPUE-Cma-cVvt.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-BQTm9Igh-DHBcdmQI.js → AccountReconDetailsDrawerPage-BJ1TTvni-CnFKI7ya.js} +11 -11
- package/dist/assets/{AccountRow-mHhwnvVT-DlSD5_cv.js → AccountRow-99zfxKet-iP3hUTyF.js} +19 -19
- package/dist/assets/{AccountsPromoCardStack-jk87J-uY-BgOkj47K.js → AccountsPromoCardStack-CZwrQBcr-BLPwkeVU.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-BY-ABNiB-C2mfRuV9.js → AddAddressForCardDrawer-BcOX27nY-CA-KCO8n.js} +2 -2
- package/dist/assets/{AddToWalletPage-BmaqhQ_z-CCkQvzoH.js → AddToWalletPage-CoW0Ppg4-WAfWgl1v.js} +14 -14
- package/dist/assets/{AgingReportsPage-B2tfefId-BASbPXl4.js → AgingReportsPage-Dgi5oFl4-Cao6O7NF.js} +10 -10
- package/dist/assets/{AllUserItems-C5jB4yc_-CbjMIbTC.js → AllUserItems-6iESftSq-BBGiJxHd.js} +9 -9
- package/dist/assets/{ApAgingDetailPage-B-ZHX3JJ-BApKFP0l.js → ApAgingDetailPage-jEL75hOV-BLy4yEPM.js} +3 -3
- package/dist/assets/{AppBasePage-DOXcrTCE-gk9eXfPv.js → AppBasePage-CMHbFdBh-DTT6hgO7.js} +3 -3
- package/dist/assets/{AppDrawerContent-Cav4Sy09-DQ-THdyv.js → AppDrawerContent-NAyrnDCL-B7ak2Xor.js} +40 -19
- package/dist/assets/{ApprovalRulesSettingsPage-rzr9k2jA-BmNSi22b.js → ApprovalRulesSettingsPage-BWraRVsT-BRbAilw6.js} +5 -5
- package/dist/assets/{ArAgingChart-B3NtEWh--BOlmxwm1.js → ArAgingChart-DPrIHwSE-ym_zT_Xu.js} +9 -9
- package/dist/assets/{ArAgingDetailPage-uX2oVxj4-C7e2SNBe.js → ArAgingDetailPage-CdNiD7uR-DccUXEIa.js} +4 -4
- package/dist/assets/{AttachmentView-BQMzs_UT-BMIgc-Op.js → AttachmentView-Cmh726Zl-C82E74gy.js} +3 -3
- package/dist/assets/{BankAccountSection-MWGcLsKa-Dl-WZeBC.js → BankAccountSection-jRnEB-Ut-BpoXdxMl.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-CBlOG9xN-Bzq_eEtP.js → BankAccountWarningSection-KznYA-cf-CV3aOKhB.js} +3 -3
- package/dist/assets/{BankConnectionsSettingsPage-PagAlxUn-CiGjimFc.js → BankConnectionsSettingsPage-BXrsOxcg-CZU1wEnM.js} +15 -15
- package/dist/assets/{BillDetailPage-DU3KKWCI-BZd_KVnK.js → BillDetailPage-glKjF2MJ-CxnS8ehW.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-DzfhQmLn-CV1bwFpI.js → BillPayApprovalRuleDetailPage-DyH2jp6G-BgnVnU6E.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B051t9Mv-B6BIB1S2.js → BillPayApprovalRulesPage-jctlpXwj-sMvcDhpz.js} +11 -11
- package/dist/assets/{BillPayPromoPage-DvBp9dFZ-Ck3Ntivw.js → BillPayPromoPage-DGyWwW1t-B2E2k4g7.js} +32 -32
- package/dist/assets/{BillPaySetUpPage-D7335PCo-DjOfSrPK.js → BillPaySetUpPage-UfM6FOqW-wZRanfNP.js} +2 -2
- package/dist/assets/{BillingSettingsPage-PsWVXatK-GSxyAYxr.js → BillingSettingsPage-BfMIxeqM-C_WtlbYK.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-Dkq-bCpf-Dsb-J7KQ.js → BillsBulkReviewDrawerPage-DhoLC2aT-Cih70QQk.js} +1 -1
- package/dist/assets/{BoxItem-Bf9DDBGl-CQKtUhxk.js → BoxItem-CIOib-WX-Cvut8WLk.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DZpS0b_1-CT7CCzj9.js → BusinessVerificationPage-Czf-y16x-BBZA7C_w.js} +14 -14
- package/dist/assets/{CardNumberSubText-8FNDlBHV-CNyFCSaC.js → CardNumberSubText-B8CivrXd-CzHZkmhR.js} +2 -2
- package/dist/assets/{CashbackDetailPage-CUc07auE-C19Doku1.js → CashbackDetailPage-BOTxd8DW-CNmZsYqR.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-D84v0WwQ-DhVPYQn7.js → ChargeCardDetailPage-DbtvRfDc-CRGJceoy.js} +40 -40
- package/dist/assets/{ChargeCardListPage-BFssQAQg-DEX46cKA.js → ChargeCardListPage-Q1zat_TQ-BbazZeau.js} +18 -18
- package/dist/assets/{ChargeCardListTable-BuI0T0Bn-D8Xh4Bma.js → ChargeCardListTable-CKH-EZW4-CiPC1KQt.js} +28 -28
- package/dist/assets/{ChargeCardPromoPage-CRqyciNL-BVrnHPJ6.js → ChargeCardPromoPage-BRkny-dl-BA8MhBiS.js} +30 -30
- package/dist/assets/ChargeCardSetupPage-DM15gWD1-rI_IQnGw.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-BtImi0Pc-o0pjefqQ.js → ChargeCardStatementsPage-xedf3XEE-CzGfRvhd.js} +7 -7
- package/dist/assets/{ChargeCardUtils-DQztOSYJ-CLG3pIYt.js → ChargeCardUtils-D4KmVUMt-Bgc7_40s.js} +1 -1
- package/dist/assets/{ChaseOverlay-BaGgoJZk-DWWls_0t.js → ChaseOverlay-IbWtzNzT-CiTCJc7A.js} +10 -10
- package/dist/assets/{CheckDepositDrawerPage-90KwCes_-CnbI6CmC.js → CheckDepositDrawerPage-BCIvt4pQ-BUO3GGvc.js} +6 -6
- package/dist/assets/{CollapsableReportTable-dCUjgg1X-Djm0gH1n.js → CollapsableReportTable-jOFcWQi9-BD7j44zD.js} +109 -109
- package/dist/assets/{CompanyOfficerDetailsSection-B5d06n1B-D-gHI0TC.js → CompanyOfficerDetailsSection-DMCZTk1e-CevbfEQw.js} +20 -20
- package/dist/assets/{CompanyPassportCard-BOuhptIV-BgTFJUhX.js → CompanyPassportCard-BbJLMFqe-CAuk2TxY.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CPxR1IKu-C3d76QPp.js → CompanyPassportPage-BwCMcjB9-C5l65FSQ.js} +25 -25
- package/dist/assets/{CompleteProfile-BIN-sI3M-DNy4fSuu.js → CompleteProfile-Dz4laW45-D0LCAfKu.js} +1 -1
- package/dist/assets/{ConfettiBurst-nTrV9Xfw-Dk9LJSUX.js → ConfettiBurst-B2j3QxzW-BoOT7g5H.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CQH4Gfy0-1OZpFxN1.js → CreateOrEditVendorPage-z2chPZUl-moxdaTde.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-C3PvfNmm-DcQwewDZ.js → CreditCardPaymentDrawerPage-Z9RiL1h7-BimNMSu_.js} +17 -17
- package/dist/assets/{CreditCardPaymentPlgSection-Cz-CSdKg-DXgZPZoJ.js → CreditCardPaymentPlgSection-Cg-oo7DU-CbeaX1ko.js} +10 -10
- package/dist/assets/{CurrencySelectField-ltt1zExP-DAkE7-Ko.js → CurrencySelectField-CxNprN2u-CPSD5Bje.js} +2 -2
- package/dist/assets/{CustomerOnboardingActivationPage-Cst56yLP-B_YzYJ6X.js → CustomerOnboardingActivationPage-diAJ07bX-sBysngto.js} +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-BZzvupuA-CSzku5k4.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-H59MLCwU-BgPsJzDd.js → CustomerOnboardingDetailPageSkeleton--8DBjaCm-B9kNPkv6.js} +11 -11
- package/dist/assets/CustomerOnboardingNoStepsPage-Ccq8kI-v-D3QEvGB2.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-1o2R-ghV-Dhqb3SU1.js → CustomerOnboardingPage-s3GNwP8c-p7WLMkGR.js} +6 -6
- package/dist/assets/CustomerOnboardingProductSuitePage-C-tToXNK-4Ab_CkNQ.js +202 -0
- package/dist/assets/{Dashboard-CptSiho6-BwvD4p7k.js → Dashboard-BtcnzaY6-gJck50nw.js} +230 -230
- package/dist/assets/{DashboardReportPage-G32NOQFe-CKy1nC1v.js → DashboardReportPage-C6jLfLtF-BPfMWD5H.js} +9 -8
- package/dist/assets/DashboardSidebarBackgroundAnimation-s8Nl8CmH-Dm61fSUI.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-CQX9MBK--CWCsAg_Q.js → DepositAccTransactionItem-Bm63W_1e-5FIgWMcL.js} +1 -1
- package/dist/assets/DepositAccTransactionListPage-D4QcTw4n-1uhB2yjw.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-Bgm_YYHM-DgP66AFx.js → DomesticWireDetailsPage-DX0BA5i3-Ea2aCTYV.js} +1 -1
- package/dist/assets/{DownloadOverlay-DN4zwFl5-BEzbatXT.js → DownloadOverlay-BcH72YTL-B8MaexAj.js} +1 -1
- package/dist/assets/{DrawerPage-B-jrvyA1-CKA5TJxq.js → DrawerPage-CzHhh0IP-BIFSEwpr.js} +10 -10
- package/dist/assets/{EditPeoplePage-BTXEd5bm-_7IRpStx.js → EditPeoplePage-Z5btEDax-BKTta_xp.js} +7 -7
- package/dist/assets/{EditReimbursementDetailPage-5-BeM3DC-Dvvb6wio.js → EditReimbursementDetailPage-D_FsqRgU-DhM4BWkK.js} +74 -74
- package/dist/assets/{EntityDetailPage-CCTwe1iu-C-sJ83i-.js → EntityDetailPage-Bc4YVpPC-DWs1zPrx.js} +3 -3
- package/dist/assets/{EntitySummarySection-B7uoP2ou-CTFdZL_q.js → EntitySummarySection-Ba6AWxNi-BdQCQZ3F.js} +4 -4
- package/dist/assets/ExpenseAutomationOverviewPage-Cg0sM_PI-vkhdPOgy.js +222 -0
- package/dist/assets/{ExpenseAutomationPage-o8ox1q0R-CHZ8rQmT.js → ExpenseAutomationPage-EjI20a6v-rIac0d4o.js} +90 -90
- package/dist/assets/{ExpressPayPage-BdUERste-DCzQgqA4.js → ExpressPayPage-562vstqT-BTrZQzDN.js} +10 -10
- package/dist/assets/{FeaturePreviewPage-B6_exSoS-BqYYdx51.js → FeaturePreviewPage-eUvRNjsx-D93wu9_Y.js} +1 -1
- package/dist/assets/{FollowStepsSection-BoA-EzkO-d1Bp0uLs.js → FollowStepsSection-D60JM8h_-WgnL9DSD.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-CYjobk5Y-BAd8-MIV.js → GlobalReviewListPage-BpXEtrb4-CJJjyGfo.js} +6 -6
- package/dist/assets/HelpButton-hflpTkYP-BxxKYxfC.js +28 -0
- package/dist/assets/{InformationCardStack-Dvu4sQsc-C3V_rhfP.js → InformationCardStack-BsxmscQq-CSrArWRb.js} +3 -3
- package/dist/assets/{InsightsCardStack-DffcRWuM-DdMPB19q.js → InsightsCardStack-5JDl2mCA-CZ5TshWK.js} +7 -7
- package/dist/assets/{InsightsSection-C8Oi6wcZ-BTvSiRSk.js → InsightsSection-DsO5tfQL-CBUNqXt7.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-C0VZQfG_-DdjKQOAK.js → IntegrationsSettingsPage-MQDeidS6-BKVTNE0x.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-SAcvo9BB-DcOwGqfC.js → InternationalWireSwiftDetailsPage-CpT4WPn3-b0nQCCWc.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-8Ff3v4gu-Cv5Opxe0.js → InternationalWireVerificationPage-DlBFLwxy-BIViCBlF.js} +5 -5
- package/dist/assets/InviteFormPage-D0QCEMkX-DZr12vmY.js +312 -0
- package/dist/assets/{InvitePageListView-DG91-L1w-Ccb2SPnd.js → InvitePageListView-CVf8HrhY-cBhycZNO.js} +24 -24
- package/dist/assets/{InvitePeoplePage-6ANmf4z2-Gjpd5Nlk.js → InvitePeoplePage-Dg7iuq2i-Cx5QFhMU.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-C4O7GGrv-DmRrXww6.js → InvoiceUploadSection-BuwWumE2-CTijWOqK.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-gohjPIRu-CyjyM7F6.js → IssueChargeCardPage-DL23WAiQ-CCNHr1-9.js} +26 -26
- package/dist/assets/{LabeledAddressValue-C6EUPzNB-QLBvt6jx.js → LabeledAddressValue-CnL_9Mgq-C1-zs_ut.js} +1 -1
- package/dist/assets/LabeledAddressValueField-DLou-2Lm-30_LmoCw.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-TB_2rc3R-D1lghLfJ.js → LabeledControlledCheckBoxField-DqrqiFhz-GyWAbp3D.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CdgNcgTu-BM53pRh3.js → LabeledCreatableSingleSelectField-CxnC4AFe-BOkJ5-5r.js} +8 -8
- package/dist/assets/{LabeledDocumentField-CzTqgS97-DgW-cOWG.js → LabeledDocumentField-By7zV2VD-Deh87JH9.js} +4 -4
- package/dist/assets/{LabeledDropDownFormattedTextField-CVzL0J5a-CG2mVZcx.js → LabeledDropDownFormattedTextField-BF37XlAJ-B3ToXjDJ.js} +6 -6
- package/dist/assets/{LabeledText-BICN3vpf-j9xXYGac.js → LabeledText-D4fC1Hz2-Cxv5m94v.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-VeWNep8c-5ZbgY5UP.js → LabeledUserSingleSelectWithSubtitlesField-DMxSLbjX-B9c0Mx1N.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField--Jr1KizL-C9drclxV.js → LabeledZeniRolesDropDownField-CTA3JLz4-D4MXXizm.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-BNWOmBHj-7bLiUwjm.js → LinkJETransactionPage-CLAyFAJh-Dm40KZjj.js} +5 -5
- package/dist/assets/{LowBalancePopup-Dhrtsv_E-CHi-1sQp.js → LowBalancePopup-TCSP5zrD-BmN6CG0D.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-Brt9q6YZ-BF1Po-XI.js → MagicLinkACHDetailsPage-C9sNEDPT-D6e_XUAG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CkSEgmKP-CnsVUDeG.js → MagicLinkDomesticWireDetailsPage-D4C-a5QY-DOB7ds5g.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CqYC7uu7-CBxvvvyS.js → MagicLinkInternationalWireDetailsPage-oKAXWkRz-ICvIdgn3.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-VR-HSAYZ-ekYBsb2w.js → MagicLinkSuccessPage-DTKe1Hxk-D3l_qzGn.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-T6m2zH4A-BfT3nCUx.js → MagicLinkTitleSection-BZ9PbTY5-DGA-Kfl0.js} +4 -4
- package/dist/assets/{MailingDetailsSection-B6ZCAac5-cPG_LVX_.js → MailingDetailsSection-DOuPh_kK-CJdFvtR9.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-CgzTeE14-B1g5YUjL.js → MeetingCalenderPopup-Bn5picNg-BZadZTcq.js} +1 -1
- package/dist/assets/{Menu-DOJJ_REW-BCRwc2vM.js → Menu-D_vf2LDo-39KwK8wM.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-C_NrRV7T-Q0JyO2hZ.js → MyBankConnectionsSettingsPage-DJZVD_j4-CYkcPYeU.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-CNHCZPs--CWT-l6Ro.js → MyPendingActivationChargeCardListPage-DyhXBMCi-DtFEW_4I.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CIfFufvo-DTHqDNHT.js → MyProfileSettingsPage-gPNoKP10-gCIICwqR.js} +10 -10
- package/dist/assets/{NavBarWithPicker-CvhnGryh-DdhjHjGJ.js → NavBarWithPicker-BlYfbDi0-BiD5rNBH.js} +5 -5
- package/dist/assets/{NavigationArrow-CXkUidH6-2_3iCUtc.js → NavigationArrow-CQ_K0Bon-C-8VFiTg.js} +1 -1
- package/dist/assets/{NavigationDots-hBq7kHVj-BCo98sBw.js → NavigationDots-CI0cjpQA-B6oVaxeu.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DORHvz4D-BRtrbYV8.js → NewGlobalMerchantPage-BHQiRWO8-or4Uc_HY.js} +6 -6
- package/dist/assets/{NoDataChart-C4KqN3ua-9QC86ow3.js → NoDataChart-Dg1_sU_O-flEThGvM.js} +1 -1
- package/dist/assets/{NoDataTable-DaX07HI0-DUwVgUQv.js → NoDataTable-qTYBbL2H-BGrSHe_q.js} +1 -1
- package/dist/assets/{NotFoundPage-BIh20jzm-sVTg_rO_.js → NotFoundPage-DYjrSF7l-D7C6Z_Gh.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-gU3g8rJ2-Dg6_eEe0.js → NotificationSettingsPage-DZHlnrbH-D8paihJx.js} +13 -13
- package/dist/assets/NotificationsListConfig-BSBZHM3y-CGdVXHfi.js +1 -0
- package/dist/assets/{NotificationsPage-oy3LHVU2-JTZhFwYV.js → NotificationsPage-QgnztPHs-CnFUIBHp.js} +35 -35
- package/dist/assets/{OpExByVendorPage-D8jXzTd6-OW9DyZtS.js → OpExByVendorPage-_AMvFFwS-DGSt9CNm.js} +7 -7
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-BNCWaeLU.js → OverlayContainerPage-Bmu909Fo-CI9x-FUu.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BQW2_QDB-jLVVbQw5.js → PandLWithForecastPage-D_3EfFjd-JoBuR2Ry.js} +10 -10
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CY9QJXXs-DuCBh-5g.js → PaymentAccountSetupBillingAddressSection-Ch5yJBuG-Czoqfz5V.js} +5 -5
- package/dist/assets/{PeoplePage-B7s3mjRX-C_HkK47k.js → PeoplePage-DZr3Lusf-M76DhnJE.js} +23 -23
- package/dist/assets/PortfolioAllocationFormPage-Byu_8Js7-CWAHnet9.js +207 -0
- package/dist/assets/{PortfolioDetails-BFqRNjFs-B16IZ_Hj.js → PortfolioDetails-BH-sfG9j-CdKUfZw3.js} +19 -19
- package/dist/assets/{ProductsCarousel-BaTq9uMB-BdtwLLGf.js → ProductsCarousel-C4J19mb--DcgR5jdw.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bf3Dizji-CUuhVAFC.js → PromoBaseCards-Bj4SLu8_-CC7a127A.js} +7 -7
- package/dist/assets/{QBOConnectionDialog-DhOSSZ5O-Cmx6oO5C.js → QBOConnectionDialog-Bx6ZDEvY-BRYqXjwh.js} +7 -7
- package/dist/assets/{QBOSetupSection-BWJoUKzu-D4FI2JWK.js → QBOSetupSection-BCdoUjwK-BF2gwacX.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CiebC6vq-7wS_9PV2.js → ReimbursementApprovalRuleDetailPage-DsTMXav9-B1Ngpniy.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-gKLkrIyV-Ct61U8sq.js → ReimbursementApprovalRulesPage-CJLcH9Ov--aMB2wIm.js} +9 -9
- package/dist/assets/{ReimbursementDetailPage-BF4vlfIm-CveG64HT.js → ReimbursementDetailPage-Ctgt3Dcz-Bah5s5HT.js} +11 -11
- package/dist/assets/{ReimbursementPromoPage-BFwztEak-DRUSiKPZ.js → ReimbursementPromoPage-DCmevd5G-RVnIiUe8.js} +14 -14
- package/dist/assets/{ReimbursementSetUpPage-D1AVnqd4-Bl9OuMjF.js → ReimbursementSetUpPage-Dc9xJUbM-BRgUtgcr.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BsqdpOS_-C8Evgmpl.js → ReimbursementsBulkReviewDrawerPage-CKjHGxjw-DAh9TKrH.js} +1 -1
- package/dist/assets/{ReloadCard-BmYf1NZf-CKjtyagc.js → ReloadCard-DxJMY9If-DFVN_BWj.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-yTxheyC3-DiW7eeSj.js → ReportTableViewSelector-lMBROmrI-C57N0Ev_.js} +11 -11
- package/dist/assets/{ReportsPage-DZtCp9CP-CW3zHRvy.js → ReportsPage-DMYLnwc7-C986BuH8.js} +10 -10
- package/dist/assets/{RevenueChart-CXSh5l_p-Cvtb1pE9.js → RevenueChart-DD8vb3zi-DI64DZjn.js} +1 -1
- package/dist/assets/ReviewDetailsPage-C-6hNb3q-Bs8iB-Q6.js +290 -0
- package/dist/assets/{ReviewOverlay-B2jf6tfG-DrMTBexr.js → ReviewOverlay-sqbjCjkE-BYmWnWTV.js} +10 -10
- package/dist/assets/{RoleWithToolTip-DHdLJcWR-BIiBiCaf.js → RoleWithToolTip-BpMhPbAJ-D4xuhbtR.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CY0i2n7i-Dy9Fl63v.js → ScheduleDetailsFixedAssetsPage-D1uRcS4p-n5wC_akR.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CVh8-Sc9-BWH1TrGv.js → ScheduleDetailsPage-D8Cvxd7m-bSm3GRae.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-8qqeMhAk-DxeA_i7k.js → ScheduleSequenceTable-CvqXlh31-iJzQjEX9.js} +50 -50
- package/dist/assets/{ScreenRoutes-Dmbs-WC7.js → ScreenRoutes-CG3ALmQe.js} +1 -1
- package/dist/assets/SetUpAccountSection-CDXmRiGQ-DykmFmYq.js +378 -0
- package/dist/assets/{SetUpDefaultSection-BM57n5BV-DVG6pZDR.js → SetUpDefaultSection-VPie4JZS-CUUkgLvy.js} +6 -6
- package/dist/assets/SignIn-9DfCxy9Q-D5TOW1KJ.js +407 -0
- package/dist/assets/{SignInScreen-D9xxiCVL.js → SignInScreen-C5ZC9m_8.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BphSarNr-Cl92vHkt.js → SpendManagementListViewPage-Q5bQb3hk-BwLto-DN.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DCkS4HuZ-BBuwXYWk.js → SpendManagementPerTabPage-CD-kDdxa-BPnAzojr.js} +26 -26
- package/dist/assets/{SpendManagementSection-DKqHikhq-hB-bTkoV.js → SpendManagementSection-DGGOMGEz-BERrqLUW.js} +6 -6
- package/dist/assets/{SpendMgmtSetupAccountSection-BF7bb5O_-CZUZZ_7E.js → SpendMgmtSetupAccountSection-CjqaRCUW-DdnBx9W6.js} +21 -21
- package/dist/assets/{StatementItem-Ki_Mzpf9-FWP9W3D7.js → StatementItem-1vBLASxl-Bg-WCzCW.js} +4 -4
- package/dist/assets/{StatementsPage-B6XMWWpt-CfSSyoxA.js → StatementsPage-cCluGN33-CUSb15rA.js} +1 -1
- package/dist/assets/{StatusSwitcher-BkAnAbyd-DhZFTaVL.js → StatusSwitcher-efLzDuyw-yZjEoNnl.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Au3snima-KoDMUDJP.js → SubTabSwitcher-BfYlJKJ6-0yeg6J8n.js} +1 -1
- package/dist/assets/{SummaryCard-B-IXQpJ7-Bb42YLKq.js → SummaryCard-BsPejHZG-DSp7yYcI.js} +1 -1
- package/dist/assets/{TaskManagementPage-BPNEy-p0-BA-MVkpi.js → TaskManagementPage-CkdITpbn-BnN3mtBv.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-DpDC0FGn-BeYaJEn7.js → TimeRangeSwitcher-DVB0vP5W-Bka-ygDj.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-D1cuigpc-Cz5nqZB9.js → TimeframeSwitcher-BmhH741X-Bq2UrAGM.js} +2 -2
- package/dist/assets/{TimeframeSwitcherWithToggle-_2U17Wg0-DGs87cY3.js → TimeframeSwitcherWithToggle-B1bMIGal-PXrqXkjU.js} +1 -1
- package/dist/assets/{TopExCard-BWOozDK3-DDnX9T6b.js → TopExCard-DBuo1QUF-Bqy_yS0O.js} +6 -6
- package/dist/assets/{TopExDetailPage-DpYLakrO-DvZBg7fP.js → TopExDetailPage-CGPgaWRb-BefBmW9C.js} +20 -20
- package/dist/assets/TransactionDetailPage-BUP-dxVE-Bluz2ZEA.js +912 -0
- package/dist/assets/TransactionList-DP9cEVya-Dnf5dIML.js +147 -0
- package/dist/assets/{TransactionListBig-CefZbd83-DMzncjPA.js → TransactionListBig-B_s15U1P-DxO9dvuT.js} +15 -15
- package/dist/assets/{TransactionListPage-CM319tsV-zDExAxeI.js → TransactionListPage-DpYLFl8A-CtiLL9up.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-Z7O-juRN-BW7z7Azf.js → TransactionVendorDetailPage-DqqSV533-DMSzEnyq.js} +4 -4
- package/dist/assets/{TransferDrawerPage-0vQtF6ID-D9OzOZ5A.js → TransferDrawerPage-CxdQzo0m-DrhEn9ys.js} +79 -79
- package/dist/assets/{TreasuryOverviewPage-DaCuL9FX-DYMVFkUe.js → TreasuryOverviewPage-D7vqj60i-DA26_cse.js} +22 -22
- package/dist/assets/{TreasuryPromoPage-BQ6Cuqoa-BaiGRfzl.js → TreasuryPromoPage-BuxEHMpT-BDwacXK1.js} +12 -12
- package/dist/assets/{TreasurySetupPage-BJRBNCvY-D5jIb5sO.js → TreasurySetupPage-BIfbbeL3-V_YXLN-n.js} +4 -4
- package/dist/assets/{TreasuryStatementsPage-z6cg-MO_-CmmWNkYy.js → TreasuryStatementsPage-BeUdQZBc-XNPULVYt.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DP-c4Sqo-C_l8Gxih.js → TreasuryTaxLetterPage-uFRMjqLn-CGfm28c4.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BGfIlPXx-BehP5Xwy.js → TreasuryTransferOrReviewPage-BWybwqhc-Cp5gifXq.js} +27 -27
- package/dist/assets/{TrendChart-BAMRDfp7-C3XYi6nw.js → TrendChart-7kPgcETh-CZhHOMVt.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CgbouMHP-DZBB4tt9.js → TrendWithTransactions-DPby1I5u-yXfJ3Iyk.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-DUVjNpg2-BHgtmgBi.js → UncategorizedAccountsMappingPage-DEkSWWRY-BWS3cZYH.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-DSWbn8gm-B4Ou25f_.js → UnitIntegrationPage-B5yzIJDg-DXMgkfWr.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BFn9gixM-BNf1qOT4.js → UploadAdditionalDocumentOverlay-Deu0hM2I-3QkNgcQ9.js} +8 -8
- package/dist/assets/{Vendor2FAPopup-CA-cVVNX-if5nT9kw.js → Vendor2FAPopup-DUyiI_-r-CLW3sS1X.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Hdw6gHNB-Dbljblmv.js → VendorACHDetailsPage-DycUU3MN-Bh437Vzf.js} +1 -1
- package/dist/assets/{VendorDetailPage-CceVHonS-Pq3jkMrt.js → VendorDetailPage-B9pWIvXP-p9O1B1Vq.js} +21 -21
- package/dist/assets/{VendorDomesticWireDetailsPage-ChF-hj1o-BZmPD8iA.js → VendorDomesticWireDetailsPage-Cs35uQOp-DDOAIhlv.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BnMmu8g4-BrMoF3qX.js → VendorFiling1099EditablePage-BeuSWFCY-Ca6Gux7v.js} +11 -11
- package/dist/assets/{VendorFirstReviewPage-C9LNBxKs-F-MIWQgi.js → VendorFirstReviewPage-ANhBsl69-D02KU5IA.js} +63 -63
- package/dist/assets/{VendorInternationalWireDetailsPage-B8F_1TYL-Bsx2kP_t.js → VendorInternationalWireDetailsPage-BShiEKaz-BZSIpE6n.js} +31 -31
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-HuCjhvn4-Cqo_E_R0.js → VendorInternationalWireSwiftDetailsPage-B_NlK1ak-UtHTf4LD.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cj3NFdKN-CZGZ3lbp.js → VendorsAccountsSection-BclWgEaB-DOMr50bF.js} +4 -4
- package/dist/assets/VerifyDevice-CRrOo66b-ZlA7gEbg.js +97 -0
- package/dist/assets/{VideoPopup-0LSxcyRX-Dg1obuHI.js → VideoPopup-qS-ig_U0-VKyag34q.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DR9oeIuj-BGAzKYV3.js → WarningsDrawerPage-DgRtxLoa-C9d8WcDP.js} +2 -2
- package/dist/assets/{ZeniAccountDetailPage-DHl0vyQ0-QUKSLtDI.js → ZeniAccountDetailPage-B66nIr0V-6bf8tksW.js} +21 -21
- package/dist/assets/{ZeniAccountListViewPage-BC1yUQbd-DvE1_-3Q.js → ZeniAccountListViewPage-CWhZKmoP-42K6r0wR.js} +10 -10
- package/dist/assets/{ZeniAccountNavBarPieces-CpKh4Vxw-C7ZAIazr.js → ZeniAccountNavBarPieces-C6MQhfnU-CnbDnx7e.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-BaRzPlIW-KoQmtnm_.js → ZeniAccountPromoPage-C-oF3-HO-DisOzRKq.js} +16 -16
- package/dist/assets/{ZeniAccountSetupPage-CveI2__B-D63zX7um.js → ZeniAccountSetupPage-DY-nCuiT-B3gBHMad.js} +4 -4
- package/dist/assets/{ZeniCopyright-D6e3OekQ-DUr2raAa.js → ZeniCopyright-rY1T9xhh-Dfov-yky.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BqyHxYBn-BeVNGkCh.js → ZeniTransferAmountSlider-Bh5zkWst-Bed32C-4.js} +1 -1
- package/dist/assets/analytics-B3n5JGPc.js +7 -0
- package/dist/assets/{analyticsHelper-kBY_WnuZ.js → analyticsHelper-B0L0ncmN.js} +1 -1
- package/dist/assets/{analyticsHelper-CYiy63P3-ZsDfu10l.js → analyticsHelper-BcJgRhqY-D6z677ff.js} +1 -1
- package/dist/assets/chartTypes-BoblEsVF-BVffEXCf.js +1 -0
- package/dist/assets/{commonDimensions-DbTYS1hy-q1OJGzej.js → commonDimensions-CFd7y7qU-C7Jvc2Ks.js} +1 -1
- package/dist/assets/{detailCommon-BeqWtSZF-DN5q8hn4.js → detailCommon-MYixZ3RD-BFmVTLGA.js} +6 -6
- package/dist/assets/{downloadPdf-CLTp2aZt-ev2v3-yy.js → downloadPdf-CgupyHRa-D9AEGU0d.js} +1 -1
- package/dist/assets/{index-NilHeiJu.js → index-B8OsEhOZ.js} +753 -749
- package/dist/assets/{mapLoadingInProgressToTreeNode-Dl_IFb2l-Cq8XhJtM.js → mapLoadingInProgressToTreeNode-B8Y_euQR-DOx1e8cj.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BAhSN9Et-CnYxsg0R.js → mapSectionWithAcOnlyToTreeNode-jBSc45Na-BDZbXmNV.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-3b46l63c-CMjlOqUe.js → mapSpacerToTreeNode-COy8gZAM-BaCmq5hE.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-3pTXOISe-UJZDjMX_.js → mapTimeframeBalancesToTreeNode-BodkMcFj-QmE2hfm4.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DJqcH4tL-dBteZqAP.js → mapTimeframeBalancesToTreeNode-DXla81BF-zj0mJKeb.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-yhbtLbK2-B3XLpQv_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-XVJ2Hm74-BHeVK-te.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-D49XFhoj-p77KsEJK.js → toCOABalancesWithID-CndsNNsv-CWYFJv_O.js} +1 -1
- package/dist/assets/{toChartData-C9pHl0xA-peeaxrwr.js → toChartData-B9eYLI57-CKqynvrs.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CkjbPhqI-DTu39-tM.js → treasuryColorHelper-D4iDeX95-DVOhzALi.js} +1 -1
- package/dist/assets/{uploadAttachment-BniS82zn-CRjJ8eJB.js → uploadAttachment-C2I6mBBB-CPoUzWwI.js} +14 -14
- package/dist/assets/{uploadReceipts-dxsKhm9I-D4Vuwibk.js → uploadReceipts-dxsKhm9I-YtN4h-4H.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ChargeCardSetupPage-BzqdaEET-DBBXZ-n5.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-B9rA9JXM-BcEPhc3o.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-B8cf9wWc-C5L0Tki4.js +0 -66
- package/dist/assets/CustomerOnboardingProductSuitePage-Dfv86gVc-09rPr3CW.js +0 -202
- package/dist/assets/DashboardSidebarBackgroundAnimation-DTkdczBR-v_i9-lwP.js +0 -12
- package/dist/assets/DepositAccTransactionListPage-C6lB4Qyv-CuZ8nnnO.js +0 -66
- package/dist/assets/ExpenseAutomationOverviewPage-Bz-2JPdW-Do3fJYNG.js +0 -222
- package/dist/assets/HelpButton-DEwtg0Ez-DdlPkijU.js +0 -28
- package/dist/assets/InviteFormPage-CRRvruND-CnzFaBAu.js +0 -312
- package/dist/assets/LabeledAddressValueField-CC4nYBb8-CaZARfW3.js +0 -45
- package/dist/assets/NotificationsListConfig-C14JCaD1-htQ299sQ.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-eonsRKDg-D0R6dTFQ.js +0 -207
- package/dist/assets/ReviewDetailsPage-DG7ms5Hy-CwXT2Ca2.js +0 -290
- package/dist/assets/SetUpAccountSection-CKdSkMBO-RvUBOtno.js +0 -378
- package/dist/assets/SignIn-BMjCrrGx-B6jW8hme.js +0 -407
- package/dist/assets/TransactionDetailPage-Bxzam_ho-ytwgKMhn.js +0 -878
- package/dist/assets/TransactionList-CEfjoVPA-Fnrm73eH.js +0 -147
- package/dist/assets/VerifyDevice-dg83_W2W-db8vxgEO.js +0 -96
- package/dist/assets/analytics-CBL_L82S.js +0 -7
- package/dist/assets/chartTypes-sx4859ds-DQIhaauj.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ge,
|
|
1
|
+
import{e as ge,N as $t,j as o,$ as P,gU as bt,M as xe,a0 as W,J as Ee,n as Ze,a4 as et,o as t,C as f,a3 as Le,L as St,am as vt,u as jt,a2 as q,bB as At,cV as tt,X as R,m as z,g1 as kt,g as S,t as Tt,h as ot,i as X,p as G,f1 as Pt,a as Ct,ca as zt,F as Lt,fJ as Dt,s as c,bv as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fd as Rt,f5 as Bt,x as Ot,B as It,f6 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Xt,ff as Gt,fo as Yt,ab as Jt}from"./index-B8OsEhOZ.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-BH-sfG9j-CdKUfZw3.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./treasuryColorHelper-D4iDeX95-DVOhzALi.js";const qt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Ht({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Kt(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Qt(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Kt=e=>{const a=Jt("0,0.[00]a",e,"$").toUpperCase();return`${qt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Qt=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%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
|
|
2
2
|
width: 100%;
|
|
3
3
|
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
4
|
height: 2px;
|
|
@@ -60,12 +60,12 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
padding: 2px ${t.sp2};
|
|
63
|
-
`,
|
|
63
|
+
`,U={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Ce={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:so},dateFormat:{visual:{DMMMYYYYFormat:lo}},spendManagement:{treasury:{transferDrawer:N},billPay:{insufficientFunds:{lowBalance:co,addOrSwitchInitiateTransfer:uo,lowBalanceIn:po}}}}=xe.getLocalizedStrings(),ho=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const l=yo(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:l.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.topAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.topAccount?.id??"",!0,l.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.topAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.topAccount?.id??"",!0,!0,!0)})]})]}),ae(l.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),l.arrowDirection==="up"?o.jsx(Jo,{}):o.jsx(qo,{}),o.jsxs(de,{style:l.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:l.bottomAccountLabel}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,l.bottomAccount?.id??"",!0,l.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[l.bottomAccount?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,l.bottomAccount?.id??"",!0,!1,!0)})]})]}),ae(l.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(pe,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(de,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"Transfer Funds From"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[e?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ae(e,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]}),o.jsx(Yo,{}),o.jsxs(de,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(ue,{children:"To"}),o.jsxs(ce,{windowSize:d,children:[_(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(se,{windowSize:d,children:[u?.label,o.jsx(le,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ae(u,n.treasuryAccount.id,d,!1)?o.jsx(pe,{}):null]})]})},mo=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},fo=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:l})=>{const m=ge(),w=jt(),v=q(e.fetchState),[h,i]=x.useState(!1);x.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=mo($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Po,{windowSize:m,children:[o.jsx(Mo,{windowSize:m,children:o.jsx(At,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(_e,{"data-testid":P("nav-bar-close-transfer-review"),onClick:l})})}),o.jsx(Ro,{windowSize:m,children:N.reviewAndConfirm}),o.jsx(Xo,{windowSize:m,children:o.jsx(tt,{amount:A,alwaysShowDecimal:!0,integerStyles:Ce.integerStyles.styleObject(m),decimalStyles:Ce.decimalStyles.styleObject(m)})}),o.jsx(Do,{}),o.jsx(Go,{children:o.jsxs(o.Fragment,{children:[N.review.prefix,`"${T?.label}" `,N.success.midfix,` "${$?.label}" `,N.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(lo))]})}),p?o.jsx(kt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:po.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:uo}):null,h?o.jsx(To,{children:o.jsxs(vo,{children:[o.jsxs(Co,{children:[o.jsx(Lo,{}),o.jsxs(jo,{children:[o.jsx(Ao,{children:e.error?.title}),o.jsx(ko,{children:e.error?.message})]})]}),o.jsx(zo,{children:o.jsx(_e,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(Fo,{windowSize:m,children:o.jsxs($o,{windowSize:m,children:[o.jsx(bo,{windowSize:m,children:o.jsx(ho,{fromAccount:$,themeContext:w,toAccount:T,transferDetails:e})}),o.jsx(So,{children:o.jsx(at,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:xo(e),fundAllocations:wo(e),page:"transfer review"})})]})})]}),o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:N.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:so,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:N.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},_=(e,a,u,n,d)=>{if(n===!0)return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(Wo,{isForReview:d,children:o.jsx(Mt,{})});const l=e.find(w=>w.id===a),m=e.findIndex(w=>w.id===a);if(l!=null){if(l.accType==="depositAccount")return o.jsx(Ve,{isOptionSelected:u,isForReview:d,children:o.jsx(We,{color:Rt(m)})});if(l.accType==="paymentAccount")return l.logo!==void 0&&(l.logo.base64||l.logo.url)?o.jsx(Eo,{src:go(l.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(_o,{isOptionSelected:u,isForReview:d,children:o.jsx(Vo,{})})}return null},V=(e,a,u,n,d,l,m)=>{if(!u)return null;if(u===a.id)return(l||!n)&&a.balance?o.jsx(Ae,{children:W("0,0[.]00",a.balance)}):null;const w=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&w?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,w.accountBalance.available)),n===!0&&!l?o.jsx(Oo,{children:w?.maskedAccountNumber}):o.jsxs(Bo,{className:"option-sublabel",children:[o.jsx(Ae,{children:w?.maskedAccountNumber}),w?.accountBalance?.available?o.jsx(No,{className:"dot"}):null,w?.accountBalance?.available?o.jsxs(Ae,{children:[W("0,0[.]00",w.accountBalance.available),v?o.jsx(Io,{children:co}):null]}):null,w?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},go=e=>e.base64!==void 0?`${Bt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",xo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},wo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},yo=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ae=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,se=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
66
|
`,le=r(X)`
|
|
67
67
|
color: ${e=>e.theme.colors.hero};
|
|
68
|
-
`,ce=r(
|
|
68
|
+
`,ce=r(G)`
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
`,$o=r.div`
|
|
@@ -76,7 +76,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
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=>`${U.elementsContainerPadding.valuePx(e.windowSize)}`};
|
|
80
80
|
gap: ${t.sp4};
|
|
81
81
|
${e=>e.windowSize==="small"&&`
|
|
82
82
|
width: auto;
|
|
@@ -115,7 +115,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
115
115
|
margin-left: ${t.sp2};
|
|
116
116
|
`,Ao=r(it)`
|
|
117
117
|
color: ${S.important};
|
|
118
|
-
`,ko=r(
|
|
118
|
+
`,ko=r(G)`
|
|
119
119
|
color: ${S.important};
|
|
120
120
|
`,To=r.div`
|
|
121
121
|
margin-top: ${t.sp3};
|
|
@@ -128,8 +128,8 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
128
128
|
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
129
129
|
`,Po=r.div`
|
|
130
130
|
height: auto;
|
|
131
|
-
padding-left: ${e=>`${
|
|
132
|
-
padding-right: ${e=>`${
|
|
131
|
+
padding-left: ${e=>`${U.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
132
|
+
padding-right: ${e=>`${U.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
133
133
|
margin-bottom: auto;
|
|
134
134
|
`,Co=r.div`
|
|
135
135
|
display: flex;
|
|
@@ -159,7 +159,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
159
159
|
display: flex;
|
|
160
160
|
flex-direction: column;
|
|
161
161
|
padding-top: ${t.sp3};
|
|
162
|
-
padding-bottom: ${e=>`${
|
|
162
|
+
padding-bottom: ${e=>`${U.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
|
|
163
163
|
`,Mo=r.div`
|
|
164
164
|
display: flex;
|
|
165
165
|
flex-direction: row;
|
|
@@ -167,7 +167,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
167
167
|
align-items: center;
|
|
168
168
|
width: 100%;
|
|
169
169
|
top: ${t.sp0};
|
|
170
|
-
padding: ${e=>`${
|
|
170
|
+
padding: ${e=>`${U.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
171
171
|
z-index: 2;
|
|
172
172
|
background-color: transparent;
|
|
173
173
|
`,Ro=r(ot)`
|
|
@@ -205,7 +205,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
205
205
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
206
206
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
207
207
|
margin-right: ${t.sp2};
|
|
208
|
-
`,Vo=r(
|
|
208
|
+
`,Vo=r(Yt)`
|
|
209
209
|
min-width: inherit;
|
|
210
210
|
width: inherit;
|
|
211
211
|
height: inherit;
|
|
@@ -215,7 +215,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
215
215
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
216
216
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
217
217
|
margin-right: ${t.sp2};
|
|
218
|
-
`,We=r(
|
|
218
|
+
`,We=r(Gt)`
|
|
219
219
|
min-width: inherit;
|
|
220
220
|
width: inherit;
|
|
221
221
|
height: inherit;
|
|
@@ -233,10 +233,10 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
233
233
|
margin-top: ${t.sp1};
|
|
234
234
|
margin-bottom: ${t.sp1};
|
|
235
235
|
`}
|
|
236
|
-
`,
|
|
236
|
+
`,Go=r(G)`
|
|
237
237
|
color: ${e=>e.theme.colors.hero};
|
|
238
238
|
margin-top: ${t.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,Yo=r(Wt)`
|
|
240
240
|
width: ${t.sp4};
|
|
241
241
|
height: ${t.sp4};
|
|
242
242
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -245,7 +245,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
245
245
|
height: ${t.sp4};
|
|
246
246
|
color: ${e=>e.theme.colors.hero};
|
|
247
247
|
align-self: center;
|
|
248
|
-
`,
|
|
248
|
+
`,qo=r(Vt)`
|
|
249
249
|
width: ${t.sp4};
|
|
250
250
|
height: ${t.sp4};
|
|
251
251
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -257,7 +257,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
257
257
|
position: absolute;
|
|
258
258
|
right: 50%;
|
|
259
259
|
bottom: -25px;
|
|
260
|
-
`,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qo},billPay:{insufficientFunds:Xe}}}=xe.getLocalizedStrings(),st="amount",Ko="transferTo",Ho="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,H]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[Q,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[L,we]=x.useState(b.linkToken??null),[ee,De]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=U(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=U($e),Oe=U(be),Se=e.transferMoneyParties.map(s=>s.id),ve=U(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),De(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:G}=Pt({token:L,onSuccess:dt,onExit:ut}),J=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),G?te():De(!0)},[te,G]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ye(e,n,J),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==L&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,L]),x.useEffect(()=>{b.linkToken===L&&b.fetchStatus.fetchState==="Completed"&&G&&Me(!0)},[G,L,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ye(e,n,J))},[G,L,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,J]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ne={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ne,fromAccount:ne,toAccount:ie};H(Ne.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:D}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!D.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(D,j))return Xe.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(D,y.accountBalance.available))return Xe.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:D,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Lt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ho),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,D),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,J,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ge,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,J,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Dt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:D.amount===0?void 0:D.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:D,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:H})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Q,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Ue,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Ue,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:qo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
|
|
260
|
+
`,{common:ke,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Uo},billPay:{insufficientFunds:Xe}}}=xe.getLocalizedStrings(),st="amount",Ho="transferTo",Ko="transferFrom",E="transferDetails",lt="transferDetailPage",Te=(e,a)=>`${e}.${a}`,ct=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onReviewClick:w,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=x.useState(!1),[p,C]=x.useState(!1),[B,K]=x.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((s,y)=>{const j=y.yield;return Math.max(s,j)},0),[Q,Z]=x.useState(he(B,O)),b=l.link_account_no_microdeposit,[L,we]=x.useState(b.linkToken??null),[ee,De]=x.useState(!1),[Fe,Me]=x.useState(!1),ye=e.transferMoneyPartiesFetchState,Re=q(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Be=q($e),Oe=q(be),Se=e.transferMoneyParties.map(s=>s.id),ve=q(Se),dt=x.useCallback(s=>{v?.(s),Me(!1),De(!1)},[v]),ut=x.useCallback((s,y)=>{s!=null&&console.log("Plaid Connection Error",s,y)},[]),{open:te,ready:Y}=Pt({token:L,onSuccess:dt,onExit:ut}),J=x.useCallback(s=>{s.preventDefault(),s.stopPropagation(),Y?te():De(!0)},[te,Y]),I=Ct({mode:"all",reValidateMode:"onChange",defaultValues:x.useMemo(()=>Ge(e,n,J),[e,n])}),{isValid:pt}=I.formState;x.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==L&&we(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,L]),x.useEffect(()=>{b.linkToken===L&&b.fetchStatus.fetchState==="Completed"&&Y&&Me(!0)},[Y,L,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),x.useEffect(()=>{Fe&&ee&&te()},[Fe,te,ee]),x.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),x.useEffect(()=>{const s=ve!=null&&JSON.stringify(ve)!==JSON.stringify(Se);(Re==="In-Progress"&&ye==="Completed"||Be!==$e||Oe!==be||s)&&I.reset(Ge(e,n,J))},[Y,L,b.fetchStatus.fetchState,Re,ye,Be,Oe,be,$e,ve,Se,I,e,n,J]);const ht=()=>e.transferMoneyParties.find(s=>s.id!==e.treasuryAccount.id&&s.accType==="depositAccount"),mt=()=>{const s=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===s)},ft=async(s,y)=>{if(s!=null){const j={...y},oe=j[E].transferFrom.selectedOption,re=j[E].transferTo.selectedOption;let ne=e.transferMoneyParties.find(je=>je.id===oe),ie=e.transferMoneyParties.find(je=>je.id===re);oe===e.treasuryAccount.id&&(ne=e.treasuryAccount),re===e.treasuryAccount.id&&(ie=e.treasuryAccount);const Ne={amount:j[E].amount??0,currencyCode:"USD",currencySymbol:"$"};s.includes("transferFrom")?oe===e.treasuryAccount.id?re===e.treasuryAccount.id&&(ie=ht()):ie=e.treasuryAccount:s.includes("transferTo")&&(re===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=mt()):ne=e.treasuryAccount);const yt={amount:Ne,fromAccount:ne,toAccount:ie};K(Ne.amount),m(yt)}};x.useEffect(()=>{const s=I.watch((y,{name:j})=>{j!=null&&y!=null&&zt(()=>ft(j,y))});return()=>{s.unsubscribe()}}),x.useEffect(()=>{Z(he(B,O))},[B,O]);const gt=I.handleSubmit(()=>{pt&&w()}),{fromAccount:xt,toAccount:Ie,amount:D}=e.treasuryTransferMoneyLocalData,wt=s=>{if(!s||!D.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===s);if(s===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(D,j))return Xe.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(D,y.accountBalance.available))return Xe.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(tr,{children:[o.jsxs(or,{children:[o.jsx(nr,{}),o.jsxs(ir,{children:[o.jsx(ar,{children:e.error?.title}),o.jsx(sr,{children:e.error?.message})]})]}),o.jsx(rr,{children:o.jsx(ur,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(lr,{windowSize:i,children:o.jsx(tt,{amount:D,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Lt,{...I,children:o.jsxs(er,{id:ct(lt),onSubmit:gt,children:[o.jsxs(cr,{children:[o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!0,!1,D),defaultValue:{selectedOption:xt?.id,allOptions:fe(e,!0,n,!0,J,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}},valueToAdditionalLabel:wt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(ze,{size:i,children:o.jsx(Ye,{label:{label:ke.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Te(E,Ho),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(s,y)=>_(e.transferMoneyParties,s,y,s===e.treasuryAccount.id,!1),valueToSubLabels:(s,y)=>V(e.transferMoneyParties,e.treasuryAccount,s,y,!1,!1),defaultValue:{selectedOption:Ie?.id,allOptions:fe(e,!1,n,!0,J,!1)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})]}),o.jsx(Pe,{}),o.jsx(Dt,{showAdditionalInfoLabel:!1,label:{label:ke.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Te(E,st),defaultValue:D.amount===0?void 0:D.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(Pe,{}),o.jsx(dr,{size:i,children:o.jsx(at,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:D,page:"fund transfer"})})]})]}),!n&&Ie?.accType==="treasuryAccount"&&o.jsxs(pr,{children:[p?o.jsxs(hr,{children:[o.jsx(mr,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",W("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Ht,{interestRate:O,transferAmount:B,setYieldEarned:Z,setTransferAmount:K})]}):null,o.jsxs(gr,{windowSize:i,children:[o.jsxs(yr,{windowSize:i,children:[o.jsx(xr,{children:o.jsx(fr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:Q,currencySymbol:"$"})}`})}),o.jsx(wr,{windowSize:i}),o.jsx($r,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${W("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(qe,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(br,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Je,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(Sr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,l=!1,m,w)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(l&&d){const p={label:Uo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ge=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:l}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[st]:l.amount===0?void 0:l.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
|
|
261
261
|
margin-top: ${t.sp3};
|
|
262
262
|
display: flex;
|
|
263
263
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -291,7 +291,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
291
291
|
margin-left: ${t.sp2};
|
|
292
292
|
`,ar=r(it)`
|
|
293
293
|
color: ${S.important};
|
|
294
|
-
`,sr=r(
|
|
294
|
+
`,sr=r(G)`
|
|
295
295
|
color: ${S.important};
|
|
296
296
|
`,lr=r(rt)`
|
|
297
297
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -300,7 +300,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
300
300
|
margin-top: ${t.sp1};
|
|
301
301
|
margin-bottom: ${t.sp1};
|
|
302
302
|
`}
|
|
303
|
-
`,
|
|
303
|
+
`,Ye=r(Ft)`
|
|
304
304
|
border-radius: ${t.sp2};
|
|
305
305
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
306
|
`,cr=r.div`
|
|
@@ -371,7 +371,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
371
371
|
justify-content: center;
|
|
372
372
|
align-items: center;
|
|
373
373
|
flex-direction: column;
|
|
374
|
-
`,mr=r(
|
|
374
|
+
`,mr=r(G)`
|
|
375
375
|
color: ${e=>e.theme.colors.hero};
|
|
376
376
|
margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
|
|
377
377
|
white-space: pre-line;
|
|
@@ -397,7 +397,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
397
397
|
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
398
|
color: ${e=>e.theme.colors.hero};
|
|
399
399
|
cursor: pointer;
|
|
400
|
-
`,
|
|
400
|
+
`,qe=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
flex-direction: row;
|
|
403
403
|
align-items: center;
|
|
@@ -440,7 +440,7 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
440
440
|
min-width: 12px;
|
|
441
441
|
min-height: 12px;
|
|
442
442
|
color: ${e=>e.theme.colors.hero};
|
|
443
|
-
`,
|
|
443
|
+
`,H={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),successContentMargin:new f(c[3],c[12]),buttonTrayGap:new f(c[4],c[5])},vr={formTitle:new R("h6Regular","h5Regular")},{common:Ue,spendManagement:{treasury:k}}=xe.getLocalizedStrings(),Xr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:l,onSaveChangesToLocalStore:m,onTransferClick:w,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:K,fetchState:O}=a,Q=K.find(ee=>$t(ee.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},Z=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:L,amount:we}=e.treasuryTransferMoneyLocalData;return o.jsx(kr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(He,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(zr,{windowSize:p,children:[o.jsx(bt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(Tr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Pr,{children:W("0,0.[00]",we)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${L?.label}".`]})}),o.jsxs(Cr,{windowSize:p,children:[o.jsx(Ee,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ee,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(fo,{transferDetails:e,setShowReviewContent:i,onTransferClick:w,fundDetails:C,portfolioAllocation:Q,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(He,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Ke,{windowSize:p,children:o.jsx(Qe,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Lr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Dr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Ar,{children:k.transferDrawer.subTitle}):o.jsx(jr,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Q,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:l,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),Z()?o.jsx(et,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ct(lt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:Ue.review},cancelBtn:{label:Ue.cancel,onClick:()=>{h()}}}):null]})})},jr=r(G)`
|
|
444
444
|
color: ${e=>e.theme.colors.hero};
|
|
445
445
|
`,Ar=r(X)`
|
|
446
446
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -456,32 +456,32 @@ import{e as ge,K as $t,j as o,_ as P,gU as bt,M as xe,$ as W,J as Ee,m as Ze,a3
|
|
|
456
456
|
text-align: center;
|
|
457
457
|
`,Pr=r(vt)`
|
|
458
458
|
display: inline;
|
|
459
|
-
`,
|
|
459
|
+
`,He=r.div`
|
|
460
460
|
height: ${e=>e.isTransferCompleted?"100%":"auto"};
|
|
461
|
-
padding-left: ${e=>`${
|
|
462
|
-
padding-right: ${e=>`${
|
|
461
|
+
padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
|
|
462
|
+
padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
|
|
463
463
|
margin-bottom: auto;
|
|
464
464
|
`,Cr=r.div`
|
|
465
465
|
display: flex;
|
|
466
466
|
justify-content: center;
|
|
467
467
|
flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
|
|
468
468
|
margin-top: ${t.sp6};
|
|
469
|
-
gap: ${e=>`${
|
|
469
|
+
gap: ${e=>`${H.buttonTrayGap.valuePx(e.windowSize)}`};
|
|
470
470
|
`,zr=r.div`
|
|
471
471
|
height: 80%;
|
|
472
472
|
display: flex;
|
|
473
473
|
flex-direction: column;
|
|
474
474
|
justify-content: center;
|
|
475
|
-
margin: ${e=>`${t.sp0} ${
|
|
475
|
+
margin: ${e=>`${t.sp0} ${H.successContentMargin.valuePx(e.windowSize)}`};
|
|
476
476
|
align-items: center;
|
|
477
|
-
`,
|
|
477
|
+
`,Ke=r.div`
|
|
478
478
|
display: flex;
|
|
479
479
|
flex-direction: row-reverse;
|
|
480
480
|
justify-content: space-between;
|
|
481
481
|
align-items: center;
|
|
482
482
|
width: 100%;
|
|
483
483
|
top: ${t.sp0};
|
|
484
|
-
padding: ${e=>`${
|
|
484
|
+
padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
485
485
|
z-index: 2;
|
|
486
486
|
background-color: ${e=>e.theme.colors.grey4};
|
|
487
487
|
`,Qe=r(Le)`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{M as
|
|
1
|
+
import{M as $,j as n,m as u,u as Z,$ as Y,aj as z,b7 as B,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,p as N}from"./index-B8OsEhOZ.js";import{b as v,f as V,n as w}from"./vendor-rkTZJa59.js";import{d as W,g as M,p as D,u as J}from"./chartTypes-BoblEsVF-BVffEXCf.js";import{o as Q}from"./toCOABalancesWithID-CndsNNsv-CWYFJv_O.js";import{V as X}from"./toChartData-B9eYLI57-CKqynvrs.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const H=w.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,I
|
|
3
|
+
`,I=w.div`
|
|
4
4
|
flex: display;
|
|
5
5
|
opacity: 0.85;
|
|
6
6
|
border-radius: ${L.sp1};
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
padding: ${L.sp3};
|
|
9
9
|
background-color: ${e=>e.theme.colors.black};
|
|
10
|
-
`,U
|
|
10
|
+
`,U=w(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(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,b=s.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(U,{color:a.color,children:`${a.barName}: ${J(a.value)}`},a.barName+r))})}):null},ae=V.memo(te),re=(e,t,a,r)=>{let s=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(s=Q("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,X(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:b}){const m=v.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),j=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:i=>{const c=i.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":Y(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=Z(),[g,y]=v.useState([void 0,void 0]),x=e.timeseries,j=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const i=o.activePayload[0];if(i?.payload?.record?.[D("trend","actual")]?.amount==null)return;const c=i.payload.record[D("trend","actual")].amount;if(c!=null&&c.amount===0||i?.payload?.timeLabel?.label==null)return;const E=i.payload.timeLabel.label,S=i.payload.timeLabel.startDate,C=i.payload.timeLabel.endDate,A=M(E,p,1);y(A),b?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":Y("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":Y("bar-chart"),width:i,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(P,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>O("0,0.[00]a",c,j)}),n.jsx(q,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=$.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${$.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as
|
|
1
|
+
import{e as D,j as i,n as R,o as t,M as F,C as c,$ as S,aj as E,am as Y,c7 as q,s as a,p as K,a3 as V}from"./index-B8OsEhOZ.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-7kPgcETh-CZhHOMVt.js";import{C as _}from"./NoDataChart-Dg1_sU_O-flEThGvM.js";import{B as J}from"./InsightsSection-DsO5tfQL-CBUNqXt7.js";import{f as X}from"./TransactionList-DP9cEVya-Dnf5dIML.js";const Z=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
`,G=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -17,9 +17,9 @@ import{e as k,j as i,m as R,o as t,M as F,C as c,_ as S,ai as q,al as Y,c6 as E,
|
|
|
17
17
|
flex-direction: row;
|
|
18
18
|
justify-content: center;
|
|
19
19
|
align-items: center;
|
|
20
|
-
`,U=n(
|
|
20
|
+
`,U=n(K)`
|
|
21
21
|
margin-right: ${t.sp2};
|
|
22
|
-
`,ee=n(
|
|
22
|
+
`,ee=n(V)`
|
|
23
23
|
width: ${t.sp3};
|
|
24
24
|
height: ${t.sp3};
|
|
25
25
|
color: inherit;
|
|
@@ -45,7 +45,7 @@ import{e as k,j as i,m as R,o as t,M as F,C as c,_ as S,ai as q,al as Y,c6 as E,
|
|
|
45
45
|
justify-content: center;
|
|
46
46
|
align-items: center;
|
|
47
47
|
margin-top: ${t.sp8};
|
|
48
|
-
`;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:
|
|
48
|
+
`;function de({firstMonthOfFY:e,selectedTimePeriod:r,showSelectedPeriodTags:l,fetchState:s,transactions:d,isDetailPage:g,onTransactionItemClick:m,onSelectedTimePeriodClear:f,onLoadPreviousTransactionsClick:T,onTransactionListHeightChanged:u}){const w=s==="In-Progress"||s==="Not-Started",$=d.length===0&&w,v=d.length>0&&w,M=g!==!0&&l!==!0?{isLoading:v&&(s==="In-Progress"||s==="Not-Started"),onLoadPreviousClick:(y,C)=>{T?.(y,C)}}:void 0,h=D();return i.jsx(ne,{"data-testid":S("trend-transactions-list-container"),children:$===!1?i.jsxs(i.Fragment,{children:[g===!1&&l===!0&&r!=null&&i.jsx(oe,{windowSize:h,children:i.jsx(ie,{selectedTimeframeTick:r,onTimeFilterClosed:f})}),r!=null&&i.jsx(ae,{"data-testid":S("trend-transactions-list"),children:i.jsx(X,{firstMonthOfFY:e,timeframe:"quarter",timePeriod:r,transactions:d,isFirstLotLoading:w&&!v,componentName:"trend.transactions.list",trackPerformance:!1,onTransactionItemClick:m,showLoadPrevious:M,onListInnerElementHeightChanged:u})})]}):i.jsx(se,{children:i.jsx(R,{size:"Standard",start:!0})})})}const o={headingMarginLeftRight:new c(a[3],a[8]),headingMarginTop:new c(a[3],a[6]),headingMarginTopDetail:new c(0,0),headingMarginBottom:new c(a[4],a[5]),chartMarginLeftRight:new c(a[3],a[8]),smallHeadingMarginTop:new c(a[7],a[5]),smallHeadingMarginBottom:new c(a[4],a[3])},j={trendChartHeight:360,emptyTrendChartHeight:new c(360,432),selectedTimeHeight:136,loaderTrendChartHeight:new c(470,470)},le=n.div`
|
|
49
49
|
display: flex;
|
|
50
50
|
flex: 1 1 auto;
|
|
51
51
|
min-height: 100%;
|
|
@@ -63,7 +63,7 @@ import{e as k,j as i,m as R,o as t,M as F,C as c,_ as S,ai as q,al as Y,c6 as E,
|
|
|
63
63
|
height: 360px;
|
|
64
64
|
margin: ${e=>`${t.sp0} ${o.chartMarginLeftRight.valuePx(e.windowSize)}`};
|
|
65
65
|
margin-bottom: ${e=>e.bottomMarginNeeded===!0?t.sp8:t.sp0};
|
|
66
|
-
`,he=n(
|
|
66
|
+
`,he=n(q)`
|
|
67
67
|
color: ${e=>e.theme.colors.primary};
|
|
68
68
|
margin-top: ${e=>o.headingMarginTop.valuePx(e.windowSize)};
|
|
69
69
|
margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -75,13 +75,13 @@ import{e as k,j as i,m as R,o as t,M as F,C as c,_ as S,ai as q,al as Y,c6 as E,
|
|
|
75
75
|
margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
76
76
|
margin-bottom: ${e=>o.smallHeadingMarginBottom.valuePx(e.windowSize)};
|
|
77
77
|
margin-right: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
78
|
-
`,
|
|
78
|
+
`,fe=n(Y)`
|
|
79
79
|
color: ${e=>e.theme.colors.primary};
|
|
80
80
|
margin-top: ${e=>o.headingMarginTopDetail.valuePx(e.windowSize)};
|
|
81
81
|
margin-left: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
82
82
|
margin-bottom: ${e=>o.headingMarginBottom.valuePx(e.windowSize)};
|
|
83
83
|
margin-right: ${e=>o.headingMarginLeftRight.valuePx(e.windowSize)};
|
|
84
|
-
`,
|
|
84
|
+
`,pe=n.div`
|
|
85
85
|
display: flex;
|
|
86
86
|
margin: ${t.sp0} ${t.sp8};
|
|
87
87
|
`,xe=n.div`
|
|
@@ -113,4 +113,4 @@ import{e as k,j as i,m as R,o as t,M as F,C as c,_ as S,ai as q,al as Y,c6 as E,
|
|
|
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:
|
|
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",v=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)},P=D(),[I,O]=k.useState(d),z=k.useRef(null),b=()=>{const p=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[v?M()?i.jsx(Pe,{windowSize:P,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(_,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:P,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(E,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(W,{firstMonthOfFY:e,trendReport:h,timeframe:w,selectedTimePeriod:$===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(N,A)=>{f?.("Chart",{timeframe:N,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(J,{insights:h?.insights})})]})},H=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=>{O(x)}})}),B=p=>{const x=z.current!=null?z.current.clientHeight:56;return(v===!0?j.emptyTrendChartHeight.value(P):j.trendChartHeight)+($===!0?j.selectedTimeHeight:0)+x+p};return i.jsx(le,{page:g,isDetailPage:s,children:T===!0?i.jsx(ve,{isDetailPage:s,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsxs(i.Fragment,{children:[i.jsx(je,{windowSize:P,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:P,height:B(I),children:s===!0?i.jsxs(i.Fragment,{children:[i.jsx(we,{children:i.jsx(b,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(b,{})}),i.jsx($e,{children:i.jsx(H,{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=F.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{u as ce,e as se,Y as Ke,
|
|
1
|
+
import{u as ce,e as se,Y as Ke,a2 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,hd as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,m as J,he as dn,n as un,hf as Y,hg as pn,a4 as mn,hh as Ve,C as u,p as gn,o as l,cn as fe,a8 as W,ge as oe,hi as ie,s as d,X as Ae,g as $e,fD as _e,i as Se,aC as xn}from"./index-B8OsEhOZ.js";import{b as Z,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-hflpTkYP-BxxKYxfC.js";import{h as wn}from"./VendorsAccountsSection-BclWgEaB-DOMr50bF.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-Bn5picNg-BZadZTcq.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)};
|
|
@@ -27,7 +27,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
27
27
|
margin-bottom: ${l.sp0};
|
|
28
28
|
`,An=s.div`
|
|
29
29
|
color: ${e=>e.theme.colors.primary};
|
|
30
|
-
${e=>`${
|
|
30
|
+
${e=>`${qe.title.style(e.windowSize)}`};
|
|
31
31
|
`,$n=s.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
@@ -45,7 +45,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
45
45
|
max-height: ${e=>C.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
46
46
|
margin-right: ${e=>C.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
47
47
|
`,Rn=s.div`
|
|
48
|
-
${e=>`${
|
|
48
|
+
${e=>`${qe.title.style(e.windowSize)}`};
|
|
49
49
|
color: ${e=>e.theme.colors.primary};
|
|
50
50
|
`,In=s(Se)`
|
|
51
51
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -65,7 +65,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
65
65
|
background-color: ${e=>e.theme.colors.grey5};
|
|
66
66
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
67
67
|
border-radius: ${l.sp2};
|
|
68
|
-
`,K=(e,n)=>`${e}.${n}`;function Ln({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(a),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],I=R(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:
|
|
68
|
+
`,K=(e,n)=>`${e}.${n}`;function Ln({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(a),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],I=R(o.billPayAccountHierarchy,z,"Accounts"),O=o.billPayRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(bn,{windowSize:a,children:[t.jsx(An,{windowSize:a,children:c.billsSection.heading}),t.jsxs(yn,{windowSize:a,children:[t.jsxs(fn,{windowSize:a,children:[t.jsx(Sn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(vn,{})}),t.jsxs($n,{children:[t.jsx(Rn,{windowSize:a,children:c.billsSection.title}),t.jsx(In,{children:c.billsSection.subTitle})]})]}),t.jsx(Cn,{children:t.jsx(Pn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:K(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:k},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedBillPayAccountChecked"),defaultChecked:r(K(e,"isRecommendedBillPayAccountChecked"))}}:void 0},K(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),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])},He={title:new Ae("standardMedium","largeMedium")},Mn=s.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
row-gap: ${e=>P.rowGap.valuePx(e.windowSize)};
|
|
@@ -114,15 +114,15 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
114
114
|
`,Tn=s.div`
|
|
115
115
|
${e=>`${He.title.style(e.windowSize)}`};
|
|
116
116
|
color: ${e=>e.theme.colors.primary};
|
|
117
|
-
`,
|
|
117
|
+
`,Dn=s(Se)`
|
|
118
118
|
color: ${e=>e.theme.colors.hero};
|
|
119
|
-
`,
|
|
119
|
+
`,Fn=s(_e)`
|
|
120
120
|
width: ${l.sp4};
|
|
121
121
|
height: ${l.sp4};
|
|
122
122
|
`,Bn=s.div`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-direction: column;
|
|
125
|
-
`,
|
|
125
|
+
`,Vn=s.div`
|
|
126
126
|
display: flex;
|
|
127
127
|
flex-direction: column;
|
|
128
128
|
margin-left: ${e=>P.elementsMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -132,7 +132,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
132
132
|
background-color: ${e=>e.theme.colors.grey5};
|
|
133
133
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
134
134
|
border-radius: ${l.sp2};
|
|
135
|
-
`,ee=(e,n)=>`${e}.${n}`;function
|
|
135
|
+
`,ee=(e,n)=>`${e}.${n}`;function _n({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(a),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],I=R(o.reimbursementsAccountHierarchy,z,"Accounts"),O=o.reimbursementsRecommendation?.account?.reason??"",k=c.tooltip.replace("__based__",O).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:r}=fe(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Mn,{windowSize:a,children:[t.jsx(kn,{windowSize:a,children:c.reimbursementsSection.heading}),t.jsxs(zn,{windowSize:a,children:[t.jsxs(On,{windowSize:a,children:[t.jsx(jn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Fn,{})}),t.jsxs(En,{children:[t.jsx(Tn,{windowSize:a,children:c.reimbursementsSection.title}),t.jsx(Dn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Bn,{children:t.jsx(Vn,{windowSize:a,children:t.jsx(oe,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:ee(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>ie(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:I},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:k},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:ee(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:r(ee(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},ee(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),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])},We={title:new Ae("standardMedium","largeMedium")},qn=s.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
flex-direction: column;
|
|
138
138
|
row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
|
|
@@ -183,7 +183,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
183
183
|
color: ${e=>e.theme.colors.primary};
|
|
184
184
|
`,Qn=s(Se)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
186
|
-
`,Xn=s(
|
|
186
|
+
`,Xn=s(_e)`
|
|
187
187
|
width: ${l.sp4};
|
|
188
188
|
height: ${l.sp4};
|
|
189
189
|
`,Yn=s.div`
|
|
@@ -199,7 +199,7 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
199
199
|
background-color: ${e=>e.theme.colors.grey5};
|
|
200
200
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
201
201
|
border-radius: ${l.sp2};
|
|
202
|
-
`,
|
|
202
|
+
`,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(a),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],I=R(o.incomeAccountHierachy,z),O=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],k=R(o.expenseAccountHierarchy,O),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),r=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",r).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),_=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(qn,{windowSize:a,children:[t.jsx(Gn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(Hn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Un,{windowSize:a,iconColor:_,isDarkMode:p.mode==="dark",children:t.jsx(Xn,{})}),t.jsxs(Nn,{children:[t.jsx(Jn,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Yn,{children:t.jsxs(Zn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>ie(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:V}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",q="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ge="vendorsAccountSection",et=s.div`
|
|
203
203
|
display: flex;
|
|
204
204
|
height: 100vh;
|
|
205
205
|
width: 100%;
|
|
@@ -241,4 +241,4 @@ import{u as ce,e as se,Y as Ke,a1 as en,g9 as R,hb as U,M as H,a as nn,hc as tn,
|
|
|
241
241
|
padding-top: ${e=>Q.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
242
242
|
padding-bottom: ${e=>Q.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
243
243
|
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
244
|
-
`;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[d,v]=Z.useState(!1),h=en(n.saveState.fetchState),E=Z.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:q,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:de}=n,re=D!=null?[D]:[],ue=B!=null?[B]:[],pe=q!=null?[q]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=de,i=R(n.incomeAccountHierachy,re,"Accounts"),G=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=U(n.expenseTypeList,_.filing1099Section.allExpenseTypes),Me=U(n.expense1099TypeList,_.filing1099Section.all1099Types),Ne=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),ye={int:Ne,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,N=[];j.forEach((X,T)=>{if(!y){const Oe=X.accountId?.selectedOption,ke=X.expenseType?.selectedOption,Ee=X.type1099?.selectedOption,je=X.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Xe=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[V].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${V}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[V].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${V}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:_e(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};Z.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),Z.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Xe(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Y(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Y(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Y(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Y(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Ze={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:_.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ze,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:_.subTitle}),Ye===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:De(Fe),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:V,containerRef:E.current,accountMappingView:n}):null,J.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,J.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(qn,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&J.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:De(Fe),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const De=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:D}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,q=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,le=d?.selectedReimbursementsAccountId===D?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,de=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,re=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,ue=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,pe=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(G=>G.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:_e(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[V]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:de?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:q},[ne]:{billPayAccount:{selectedOption:re?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ge]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};
|
|
244
|
+
`;function wt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:a,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:I,onClickMenuIcon:O}){const k=ce(),$=se(),S=Ke(),[r,v]=Z.useState(!1),h=en(n.saveState.fetchState),E=Z.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=_!=null?[_]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),G=R(n.expenseAccountHierarchy,ue,"Accounts"),we=R(n.billPayAccountHierarchy,pe,"Accounts"),be=R(n.reimbursementsAccountHierarchy,me,"Accounts"),Re=R(n.prepaidExpensesAccountHierarchy,ge,"Accounts"),Ie=R(n.fixedAssetsAccountHierarchy,xe,"Accounts"),ve=R(n.accruedExpensesAccountHierarchy,he,"Accounts"),Ce=R(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Pe=R(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Le=U(n.expenseTypeList,V.filing1099Section.allExpenseTypes),Me=U(n.expense1099TypeList,V.filing1099Section.all1099Types),Ne=U(n.boxTypesList.int,V.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,V.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,V.filing1099Section.allBoxes),ye={int:Ne,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,G,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,N=[];j.forEach((X,T)=>{if(!y){const Oe=X.accountId?.selectedOption,ke=X.expenseType?.selectedOption,Ee=X.type1099?.selectedOption,je=X.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),N.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),N.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),N.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),N.push(`${T}.boxType`))}}),N.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Xe=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[q].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${q}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[q].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${q}.expenseAccount`,{selectedOption:g,allOptions:G},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ne].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ne}.billPayAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[te].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${te}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:Ve(j??m.strings.empty,ye)},{shouldValidate:!0})}}M(A)};Z.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),Z.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Xe(g,A))});return()=>{w.unsubscribe()}});const ze=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Y(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Y(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Y(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Y(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Ze={onOkClick:()=>{v(!1),I?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(et,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:V.title,onBackClick:I,backgroundColor:k.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:O,source:"UncategorizedAccountsMappingPage"}),r===!0?t.jsx(sn,{titleComponent:t.jsx(an,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(ln,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Ze,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Ye===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:q,containerRef:E.current,accountMappingView:n}):null,J.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,J.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(_n,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ge,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:a}):null,o&&J.isVendorsTabVisible(S.loggedInUserRoleMap)?t.jsx(dn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(ot,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),ze()===!0?t.jsx(mn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(G=>G.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:O},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:k},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:Ve(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[q]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:_},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ge]:{prepaidExpensesAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{wt as default};
|