@zeniai/web-cockpit-ui 1.13.93-qa → 1.13.94-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-B7Osqlyb-B_Z7r9BP.js → ACHDetailsPage-C77hriAS-Bp9UERQr.js} +1 -1
- package/dist/assets/{AIPerformancePage-CEGqk2vj-DPbJQcO4.js → AIPerformancePage-DWLZz5fl-xe6YeuvR.js} +23 -23
- package/dist/assets/{AccountInfoPage-Dsi_xY1U-57CoJCvB.js → AccountInfoPage-CHH8xpX7-OTuTPmWc.js} +5 -5
- package/dist/assets/AccountInfoPageContent-CslCCxyA-CKIHtSb5.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-Bwc-VZmp-9tNR08JA.js → AccountReconDetailsDrawerPage-Bg65723V-z_C0MUXO.js} +15 -15
- package/dist/assets/{AccountRow-DMeCdEPJ-BTasbb-7.js → AccountRow-CBhTc-CO-BhHbolQV.js} +24 -24
- package/dist/assets/{AccountsPromoCardStack-NYQHh0uE-KwuGDIiT.js → AccountsPromoCardStack-C1FN6ldb-CTHlY162.js} +28 -28
- package/dist/assets/{AddAddressForCardDrawer-3WPrDfNL-fOwdSnNu.js → AddAddressForCardDrawer-DKbwVrFG-IuCuUpQj.js} +2 -2
- package/dist/assets/{AddToWalletPage-IjvBXyuu-KvZO3w5z.js → AddToWalletPage-BLH7hMIs-p7f4w_jj.js} +11 -11
- package/dist/assets/{AgingReportsPage-CIJTKbrN-Brsc1odM.js → AgingReportsPage-iXp5N9xa-BuwByTSa.js} +6 -6
- package/dist/assets/{AllUserItems-BuX43aPo-DioQ0mzE.js → AllUserItems-SiwAGR6X-CB3qDmMz.js} +12 -12
- package/dist/assets/{ApAgingDetailPage-02ejdrQy-BvI-rm07.js → ApAgingDetailPage-CSv-Yx3u-CQfdnkLR.js} +3 -3
- package/dist/assets/{AppBasePage-CC3bbnnu-DsRrQjex.js → AppBasePage-BVhJh2iM-DhwgHBUl.js} +1 -1
- package/dist/assets/{AppDrawerContent-B_EAPC9w-Dvsq28k3.js → AppDrawerContent-TBHNokFo-a7xFQjLd.js} +5 -5
- package/dist/assets/ApprovalRulesSettingsPage-DmPsbDZd-DdnQZTKs.js +47 -0
- package/dist/assets/ArAgingChart-CPyAljB5-C1xslsyT.js +24 -0
- package/dist/assets/{ArAgingDetailPage-CMUpR-2N-BRTN7gMO.js → ArAgingDetailPage-BLc5FDm2-BOdfR_tV.js} +1 -1
- package/dist/assets/{AttachmentView-sbbFtu9R-Izzia16X.js → AttachmentView-sMKTopf8-CQuqGqLW.js} +5 -5
- package/dist/assets/{BankAccountSection-BJPkV-qV-CzS6kxRW.js → BankAccountSection-DoGfRREZ-B2ezqzYk.js} +2 -2
- package/dist/assets/{BankAccountWarningSection-D9R1VhzE-V6Y4aUEl.js → BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js} +8 -8
- package/dist/assets/BankConnectionsSettingsPage-DIKMwQoQ-OeAXgZvH.js +425 -0
- package/dist/assets/{BillDetailPage-C_JDjRL0-B8Sa9pQS.js → BillDetailPage-DSYeib0o-BwJVgfN9.js} +8 -8
- package/dist/assets/{BillPayApprovalRuleDetailPage-B_XMuvzZ-gu71vbc9.js → BillPayApprovalRuleDetailPage-DDFr9CL_-CYlqmWUc.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CyZjNIsQ-DKZ0FGH6.js → BillPayApprovalRulesPage-3Yak-MB--CaAqhGEn.js} +1 -1
- package/dist/assets/{BillPayPromoPage-ByDsqYfw-iMNoM9Kg.js → BillPayPromoPage-nRvSJMZU-aGHL9LIB.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-yTO-xwRJ-DiUozoOu.js → BillPaySetUpPage-BWrp4v6b-DQFkIYKy.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BIAy1QHr-C5IDBl0Y.js → BillingSettingsPage-DtBZmdxq-BCytA-g_.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-Cw1XCs0q-C5g5voDh.js → BillsBulkReviewDrawerPage-DCz41OgH-BEoVAqH0.js} +1 -1
- package/dist/assets/{BoxItem-UCX7eqiN-CxXWJqhl.js → BoxItem-DBi8kqn3-BDAOAuEh.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CSsout2C-zWzxb-1t.js → BusinessVerificationPage-BfPqcCH3-Dr7d8VRo.js} +9 -9
- package/dist/assets/{CardNumberSubText-DuTv0ip1-BnZjxVHu.js → CardNumberSubText-CkmaTF_l-Kwic4R2k.js} +1 -1
- package/dist/assets/{CashbackDetailPage-KdHf-_ZF-DZ-5eozY.js → CashbackDetailPage-BlcEXdet-B9yAfRkP.js} +19 -19
- package/dist/assets/ChargeCardDetailPage-BARovLsv-j69HZx4R.js +1447 -0
- package/dist/assets/ChargeCardListPage-C1XbbZJ2-BE2YBCij.js +355 -0
- package/dist/assets/{ChargeCardListTable-B1a9-RYl-C_trAFfC.js → ChargeCardListTable-HXAc8Lqx-wKEbgM6d.js} +21 -21
- package/dist/assets/ChargeCardPromoPage-B8aTlJ8l-5K-z8G1R.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-DOrs_Bw8-DvKjxZsP.js → ChargeCardSetupPage-XI-WplXI-vUgUcPsh.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-xvq2HeEr-DIPvFYAp.js → ChargeCardStatementsPage-CYopWAg4-fr_o5tML.js} +4 -4
- package/dist/assets/{ChargeCardUtils-Dt303NN_-BJthP303.js → ChargeCardUtils-BEtXxds6-iY4L_brM.js} +1 -1
- package/dist/assets/{ChaseOverlay-BK2ISNjj-DZnlqtpO.js → ChaseOverlay-BySoceqB-DYKQzq4d.js} +6 -6
- package/dist/assets/CheckDepositDrawerPage-DOyXGzFg-BAQPRuRk.js +206 -0
- package/dist/assets/{CollapsableReportTable-D5D0ufUn-ghspgAwM.js → CollapsableReportTable-FShSCFEn-62FniBRb.js} +29 -29
- package/dist/assets/{CompanyOfficerDetailsSection-C7fuDGQk-gQYRZKRE.js → CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.js} +25 -25
- package/dist/assets/{CompanyPassportCard-DwUqLcAr-BFBYLv_8.js → CompanyPassportCard-D2b6Ztes-ot6tMI66.js} +2 -2
- package/dist/assets/{CompanyPassportPage-ClToBIAw-BeY6Jzwo.js → CompanyPassportPage-Bkd2l8Xj-psAfEsoz.js} +10 -10
- package/dist/assets/{CompleteProfile-CLDWG3QK-TwaY_UV5.js → CompleteProfile-DYv1reCa-3AIo6bvw.js} +1 -1
- package/dist/assets/{ConfettiBurst-DoZB9Us7-DkYeJgKW.js → ConfettiBurst-CDUVssuw-hjqW22eh.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-B837xw8A-D4X9dHl7.js → CreateOrEditVendorPage-mlx8B4Jv-DUHw5PtN.js} +10 -10
- package/dist/assets/{CreditCardPaymentDrawerPage-zGaAOnnB-B0aHCgrm.js → CreditCardPaymentDrawerPage-DBTT4Ptu-Dc8GvYzf.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-BLbZFCcL-BKv30VTO.js → CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js} +7 -7
- package/dist/assets/{CurrencySelectField-DS3dOR3F-DfDyF-bz.js → CurrencySelectField-BpuAi_Wp-COgh-Qif.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-WWVaQenb-CqYIrAsU.js → CustomerOnboardingActivationPage-CJn_cLk6-D6OFbgAy.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-BjXolAob.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BSXKMQ77-5cFdc0uI.js → CustomerOnboardingDetailPageSkeleton-Cr10sdrX-B55KDkTQ.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-Dd5kCuRE-B1UHu9bc.js → CustomerOnboardingNoStepsPage-9Jl0VpUx-BiS5ICyP.js} +5 -5
- package/dist/assets/{CustomerOnboardingPage-CGJpD875-Dw-iXvXQ.js → CustomerOnboardingPage-OCG7AjuD-DJnYkmg8.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-BFmVLk0l-BJFTzvmu.js → CustomerOnboardingProductSuitePage-vXKRghjP-hldhfPSg.js} +2 -2
- package/dist/assets/Dashboard-BOJNXopc-byUhih3W.js +1253 -0
- package/dist/assets/{DashboardReportPage-BbYtKYEH-Bu7QpJ1d.js → DashboardReportPage-Cuiynx8W-ac_35yhz.js} +8 -8
- package/dist/assets/{DepositAccTransactionItem-BMXQpKVB-CkyUtSxG.js → DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-bwEdSihi-CohU_Y5O.js → DepositAccTransactionListPage-kkdrU5Mo-3snjZA89.js} +8 -8
- package/dist/assets/{DocumentSecurityBanner-DV9HE3MK-DHA392ey.js → DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-OI-gqVNE-FukCXOQC.js → DomesticWireDetailsPage-BhE0GcbL-CklyzXqp.js} +1 -1
- package/dist/assets/{DownloadOverlay-De5uIGOt-fe6EK_62.js → DownloadOverlay-LH6MXphu-kt8sJEjY.js} +16 -16
- package/dist/assets/{DrawerPage-n421ewDm-V0Ldc4CU.js → DrawerPage-C3wbST4Q-CLJNN7bG.js} +8 -8
- package/dist/assets/{EditPeoplePage-sO1qN6Uw-ChlFb2l3.js → EditPeoplePage-C53vRVhe-BSK-mQZ3.js} +15 -15
- package/dist/assets/{EditReimbursementDetailPage-D5iKVGl3-D6axPaby.js → EditReimbursementDetailPage-BBQIYJrj-a2qRFgyX.js} +60 -60
- package/dist/assets/{EntityDetailPage-CDk-oyYB-DUNhaeNM.js → EntityDetailPage-Ba0fzVNR-DpkKGCO_.js} +1 -1
- package/dist/assets/{EntitySummarySection-C4cC9rOJ-BbOIRL3t.js → EntitySummarySection-DA6Vsjwj-DPw5fEaJ.js} +9 -9
- package/dist/assets/{ExpenseAutomationOverviewPage-BojhuW5i-DndVOG_2.js → ExpenseAutomationOverviewPage-glEgQT6c-Dj_Wb6rt.js} +19 -19
- package/dist/assets/{ExpenseAutomationPage-D0BViJ7J-CVjlySFW.js → ExpenseAutomationPage-CsJiE1ap-BnkOrNDa.js} +73 -73
- package/dist/assets/{ExpressPayPage-DdgtFYep-rsUEwVea.js → ExpressPayPage-i9LGeqy_-wmqq-4AX.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-CW0YmOgl-CZs71GTx.js → FeaturePreviewPage-Bl2C_tQd-DJQ0amFl.js} +2 -2
- package/dist/assets/{FollowStepsSection-BfnTsu_D-JwuskYSG.js → FollowStepsSection-KcgZahKS-BPKITv3B.js} +12 -12
- package/dist/assets/{GlobalReviewListPage-C0U7Y6dI-hBZ0JIdn.js → GlobalReviewListPage-D2NH1omi-CTNsB5Nb.js} +11 -11
- package/dist/assets/HelpButton-YqQNv-UM-CruBHlAV.js +28 -0
- package/dist/assets/{InformationCardStack-6BD3n76T-C6n7H91r.js → InformationCardStack-OhjUoNBj-DBwYrPQy.js} +5 -5
- package/dist/assets/{InsightsCardStack-CwxJP-ic-HgjLIYZH.js → InsightsCardStack-CDrOBeoJ-DTHqugyU.js} +10 -10
- package/dist/assets/{InsightsSection-DYyHpcUE-CVS4D7Rl.js → InsightsSection-CBaItqYN-Dz4Ilz30.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-ZkvKZqwD-Dh9_Y5r9.js → IntegrationsSettingsPage-CuPS5otW-BirDKZz3.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-D3nyRM06-Bvm0rISQ.js → InternationalWireSwiftDetailsPage-DQsW7Uzb-CUGMa7hJ.js} +6 -6
- package/dist/assets/{InternationalWireVerificationPage-BOdAP6dN-BRgvAPQo.js → InternationalWireVerificationPage-BE1xcmQo-s1fsXNah.js} +15 -15
- package/dist/assets/{InviteFormPage-HJMhfa_f-7mLTKV2K.js → InviteFormPage-CUDsc0Y3-BT3er91i.js} +21 -21
- package/dist/assets/{InvitePageListView-CjneWRfJ-Do8_-Wzf.js → InvitePageListView-DJildrs1-BRenHpuK.js} +31 -31
- package/dist/assets/InvitePeoplePage-6upCRZjT-Cy37Dy58.js +12 -0
- package/dist/assets/{InvoiceUploadSection-CfAnZsV9-CXlIUrR5.js → InvoiceUploadSection-CyacFv78-bjw3W0fU.js} +3 -3
- package/dist/assets/{IssueChargeCardPage-pKF4dRNw-BtTzBIAW.js → IssueChargeCardPage-6iTrYJEM-BjNouHGB.js} +25 -25
- package/dist/assets/{LabeledAddressValue-UYEy_1W0-BrLnlk5a.js → LabeledAddressValue-CDy1Q4J--CkXQxeFy.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BmSVDTMx-Jv07dYGB.js → LabeledAddressValueField-DbR_ehJJ-kXFBzBc8.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-BFnLx9E0-DltjlqGq.js → LabeledControlledCheckBoxField-CXNDX5oe-Cc00saAR.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Bh-cfR9F-BSOcL1XZ.js → LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js} +3 -3
- package/dist/assets/{LabeledDocumentField-YBoeNDoD-CyLWW2Xq.js → LabeledDocumentField-CUTXDuQL-CB7-inDg.js} +5 -5
- package/dist/assets/{LabeledDropDownFormattedTextField-jrOUW9Ig-Cb_hd6Cs.js → LabeledDropDownFormattedTextField-yPu_zrn8-f9OAJ2TU.js} +2 -2
- package/dist/assets/{LabeledText-BqO1wHro-yEfY3Vib.js → LabeledText-gvxUV2ku-Cf06N418.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-GkGK06mY.js → LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-DTgSGsxS.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-Cgy0v5oD-CE6fgMqo.js → LabeledZeniRolesDropDownField-xA0_8wFb-Dd3nBqBN.js} +24 -24
- package/dist/assets/{LinkJETransactionPage-PZAQ79zW-Be0NFT0x.js → LinkJETransactionPage-f4-YwvQe-D8ooeWsr.js} +10 -10
- package/dist/assets/{LowBalancePopup-BYeSnxBp-CWB9fGay.js → LowBalancePopup-C7oCDqcx-2Rje4uhG.js} +6 -6
- package/dist/assets/{MagicLinkACHDetailsPage-D_FaPCmn-C524CU_C.js → MagicLinkACHDetailsPage-Bqe3RDsV-CZa4p9hj.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-rnZdulCr-BIvVFjqJ.js → MagicLinkDomesticWireDetailsPage-DPU-8FAH-CSBTwaek.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B7ScwCJc-CedT3IVK.js → MagicLinkInternationalWireDetailsPage-DeXZfP0h-D3k-uGEY.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DVhVWuCR-C6_bXRZW.js → MagicLinkSuccessPage-CArToNjz-DqyiFP-T.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-CjV-_WEQ-DLRFZKyQ.js → MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CW6ShqHJ-D8V4HzFw.js → MailingDetailsSection-TgN7VRhK-CYe74YT_.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BhC8pSjM-Dwxk7RjP.js → MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js} +3 -3
- package/dist/assets/{Menu-LDwLOgxI-DlYH_4Kt.js → Menu-DNn9-W-C-DaYpba-h.js} +4 -4
- package/dist/assets/{MyBankConnectionsSettingsPage-BzxtuXEu-CJN51V3R.js → MyBankConnectionsSettingsPage-TawXQ1Zb-BllmvVI4.js} +14 -14
- package/dist/assets/{MyPendingActivationChargeCardListPage-9jGJWmds-D9P1jnqV.js → MyPendingActivationChargeCardListPage-CPgV9E8n-BAkl0Cop.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-9yk4H_yu-G514pPEm.js → MyProfileSettingsPage-DuXTV0pM-5CplCRBg.js} +7 -7
- package/dist/assets/{NavBarWithPicker-DUpJ0EXp-DsJc75Xr.js → NavBarWithPicker-Cdali7jG-B142_aE-.js} +4 -4
- package/dist/assets/{NavigationArrow-lL3Ug8Mk-CFERmT7S.js → NavigationArrow-DaoZtCA8-BHc3euQ9.js} +9 -6
- package/dist/assets/{NavigationDots-6Q5ZVqKl-Bii0GTV2.js → NavigationDots-BhF2AV0Y-DUHF5KEe.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-nrWvsRy4-B2bsxNA0.js → NewGlobalMerchantPage-BaoJ7yB8-BF04eMSd.js} +8 -8
- package/dist/assets/{NoDataChart-DGbfWo33-lORHrY9i.js → NoDataChart-IPJ1xGPZ-BKJQDDL9.js} +1 -1
- package/dist/assets/{NoDataTable-CsvWc_ok-Bsp9MWne.js → NoDataTable-D5U81gbD-BirLBEpp.js} +1 -1
- package/dist/assets/{NotFoundPage-CzfiPkml-B4WoheH3.js → NotFoundPage-C7BswX2A-DQWUyCMU.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Dmfqzy1H-7Yghyu9r.js → NotificationSettingsPage-BQyqFWby-GjMlWRuD.js} +13 -13
- package/dist/assets/NotificationsListConfig-kLqWFg2Q-DecPdYAb.js +1 -0
- package/dist/assets/{NotificationsPage-BAj5p1zx-DVMRgL-y.js → NotificationsPage-DjRkTZVT-udgcPcnZ.js} +12 -12
- package/dist/assets/{OpExByVendorPage-CRt-VUTi-Co9wh_XC.js → OpExByVendorPage-CSasi7Uo-CoBJ4a1U.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-ARc4wBU5.js → OverlayContainerPage-C0rUb6-5-CokciX1J.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-lT9GgcG2-Dup1SAcO.js → PandLWithForecastPage-D8YwSYiz-BlQ8i7AP.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DY4eeS5C-BT81M9QN.js → PaymentAccountSetupBillingAddressSection-BWwcQZfk-DK-YnIzr.js} +7 -7
- package/dist/assets/{PeoplePage-CDQl7HVr-BcsR0YPU.js → PeoplePage-mrXiZ4VG-Cp2NcBr2.js} +14 -14
- package/dist/assets/PortfolioAllocationFormPage-DAFisXnQ-DjoPfEuL.js +207 -0
- package/dist/assets/{PortfolioDetails-Dk_IIRuG-By4sZlSG.js → PortfolioDetails-BBOVIetI-BvRwtbCV.js} +12 -12
- package/dist/assets/{ProductsCarousel-0-ksFQos-Cboqtj5A.js → ProductsCarousel-DpevGHyq-M7sMCRPA.js} +6 -6
- package/dist/assets/{PromoBaseCards-DNSnqS61-RNj48nzF.js → PromoBaseCards-BreO0rHq-CmneT-LE.js} +23 -23
- package/dist/assets/{QBOConnectionDialog-BmIUfW_i-BTfGqMCC.js → QBOConnectionDialog-BCWc6AK--ExlTvgR6.js} +7 -7
- package/dist/assets/{QBOSetupSection-BaNFiEPB-Dd4E79Yb.js → QBOSetupSection-D_doa7hh-C2_irMwi.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CtTk4HV2-B_OXotse.js → ReimbursementApprovalRuleDetailPage-BSFxsbcx-5oswA6u0.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-IhKSiGK_-CJ28iUD0.js → ReimbursementApprovalRulesPage-X9bJFM6L-DS04bVT9.js} +29 -29
- package/dist/assets/{ReimbursementDetailPage-B2rT1dKM-B4mKbjVG.js → ReimbursementDetailPage-BJmSB65P-B9Io-y6T.js} +11 -11
- package/dist/assets/{ReimbursementPromoPage-d7XBUzip-BPhyjPfw.js → ReimbursementPromoPage-DO7dI9S7-IIxWWc2q.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-DWCUtN5c-B9oGu4ct.js → ReimbursementSetUpPage-Wjj6aNpc-BXv92xHK.js} +9 -9
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CrVDh7-F.js → ReimbursementsBulkReviewDrawerPage-GPuEjGqi-qY4F19Li.js} +1 -1
- package/dist/assets/{ReloadCard-DZy28iWR-jty26kIg.js → ReloadCard-cApojDpl-BTIiWZRj.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-DdZm4cOJ-2EdstowW.js → ReportTableViewSelector-BVUqQ9hl-WfosyobX.js} +5 -5
- package/dist/assets/{ReportsPage-CJDkY9FT-9nMZ-tT_.js → ReportsPage-CdiHHtXH-B1iwxprE.js} +1 -1
- package/dist/assets/{RevenueChart-B_jdFFPm-DtuAQXDC.js → RevenueChart-xoOc_3W3-Dzhhcd2T.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DjPVGzeL-xNY3UvCJ.js → ReviewDetailsPage-CF-R6wwN-BMnS8ktk.js} +10 -10
- package/dist/assets/{ReviewOverlay-DGYnF07r-DCUh9U9_.js → ReviewOverlay-Bora7h_H-BkZGLYKt.js} +10 -10
- package/dist/assets/{RoleWithToolTip-VlYG_GPv-teaAu_UP.js → RoleWithToolTip-k62RaqAZ-Bav1TewG.js} +7 -7
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-oPFQEE8g-5R4xRxD7.js → ScheduleDetailsFixedAssetsPage-Bd6qfpob-BxOEwKtI.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-BdBgJEAl-DzgQbYnG.js → ScheduleDetailsPage-scOS36lS-CAMrRW5Y.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-Ncft3mZN-B-_JYZVo.js → ScheduleSequenceTable-BIhbFnjb-DCpkIU0H.js} +51 -51
- package/dist/assets/{ScreenRoutes-D25ajt3P.js → ScreenRoutes-C1ZbXccz.js} +35 -35
- package/dist/assets/{SetUpAccountSection-BrYiljyO-CSo_3my8.js → SetUpAccountSection-ehZfUFEf-BgFNCBNu.js} +17 -17
- package/dist/assets/{SetUpDefaultSection-B361ojb9-NxiVWfIP.js → SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js} +16 -16
- package/dist/assets/{SignIn-B_-FUZwZ-CHisArfT.js → SignIn-k9MFplB1-eud7vdJb.js} +14 -14
- package/dist/assets/{SignInScreen-Uf5HkVEL.js → SignInScreen-CqP6hQef.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-XbjqwHXx-D5vMfDvw.js → SpendManagementListViewPage-B11exjM8-CE2MaiYn.js} +12 -12
- package/dist/assets/{SpendManagementPerTabPage-D-4W-Ru9-Bl38LM1S.js → SpendManagementPerTabPage-ByXU-omE-DWwC2JuF.js} +34 -34
- package/dist/assets/{SpendManagementSection-B7pMvj7Z-nyvHm07T.js → SpendManagementSection-CAewVL0Z-GsJe1fhq.js} +8 -8
- package/dist/assets/{SpendMgmtSetupAccountSection-DdUs96r9-IQ5cFujk.js → SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js} +11 -11
- package/dist/assets/StatementItem-BJoMxmJY-BVhb_2i3.js +31 -0
- package/dist/assets/StatementsPage-C_O76V3t-DoehdMaa.js +58 -0
- package/dist/assets/{StatusSwitcher-DGOwA8qO-CCwch543.js → StatusSwitcher-39NGxygM-8g3Kr8Ie.js} +5 -5
- package/dist/assets/{SubTabSwitcher-Be-6o_mE-DpR4kDa2.js → SubTabSwitcher-BcL8UKX8-CtPS6-C1.js} +1 -1
- package/dist/assets/{SummaryCard-CD1amg78-D7-gBvS2.js → SummaryCard-VT7YJ6jy-DeCNM95f.js} +1 -1
- package/dist/assets/{TaskManagementPage-C2UYhTtL-BS6ZhKAX.js → TaskManagementPage-p-3BLn0_-TCdTn4Be.js} +30 -30
- package/dist/assets/{TimeRangeSwitcher-DxAmlHGP-DP9j4Y0h.js → TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-ndYSpUa6-JIaAkiT0.js → TimeframeSwitcher-BJrFD5A7-CapG6nwB.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-CrWRqA_S-Bvp4VoyC.js +31 -0
- package/dist/assets/{TopExCard-CcpyunQ3-D5X1AP2D.js → TopExCard-DAwlJbbc-Ch08mChi.js} +5 -5
- package/dist/assets/{TopExDetailPage-C_B0c8iP-DT-CcqaQ.js → TopExDetailPage-BgUJytuV-V8CGIoou.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DVPGLobu-Cg4nJAIA.js → TransactionDetailPage-C8yIuCvF-lo-j_-eB.js} +20 -20
- package/dist/assets/{TransactionList-CvGyadHZ-CzScKnWB.js → TransactionList-DG-KZUjZ-CV9wox71.js} +12 -12
- package/dist/assets/{TransactionListBig-BeZjYsO0-BowcwIlG.js → TransactionListBig-iGiOjwVK-Dc9vBqnr.js} +16 -16
- package/dist/assets/{TransactionListPage-C8h-sa3V-BI2zdvtJ.js → TransactionListPage-C9Z_z4mC-UBhyOHuK.js} +3 -3
- package/dist/assets/{TransactionVendorDetailPage-BcV8h3xR-Br1j6Ll5.js → TransactionVendorDetailPage-5uo1FPul-BOddX9Sk.js} +5 -5
- package/dist/assets/{TransferDrawerPage-B_AJgZWp-Yyh6CuZY.js → TransferDrawerPage-BKzo-4Wj-D-t2nTop.js} +32 -32
- package/dist/assets/{TreasuryOverviewPage-kG1jZF28-DHtmQ0RS.js → TreasuryOverviewPage-C6kTg0L3-DDk4OCh2.js} +32 -32
- package/dist/assets/{TreasuryPromoPage-Dy3ExIiy-gkUV5xBf.js → TreasuryPromoPage-CAS0pdES-D8v7EASC.js} +11 -11
- package/dist/assets/{TreasurySetupPage-Cjr-dp6O-BEQP_lhU.js → TreasurySetupPage-CcLiQWOT-B7yrMsSh.js} +2 -2
- package/dist/assets/TreasuryStatementsPage-Dm-3SPtA-C2bOR_YK.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-CWLf1Zxq-DbsCHDsw.js → TreasuryTaxLetterPage-0RsINpqA-DJWdIr-H.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-C5F3fmoI-DNtPmYKq.js → TreasuryTransferOrReviewPage-C_4CQVIe-BOkn6wNn.js} +21 -21
- package/dist/assets/{TrendChart-CtjfgQ9g-DPYHbjBV.js → TrendChart-CkPRxjLa-ClAmXRdb.js} +3 -3
- package/dist/assets/{TrendWithTransactions-SmcM2UIp-DTMdisoH.js → TrendWithTransactions-DJYMqIOI-wnxxIB4C.js} +2 -2
- package/dist/assets/{UncategorizedAccountsMappingPage-CXoadwja-BcH1WDHa.js → UncategorizedAccountsMappingPage-BapLceo--CgdItlB5.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-wYQVQqP7-xfmP0ZaV.js → UnitIntegrationPage-C9zNzH3B-gVQYcxZB.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-8_c7UpvB-CAx-wuMo.js → UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DtNSOXbK-CcK6Drxw.js → Vendor2FAPopup-_Cn9FJ7D-cKAPYes9.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-zNbGGe4q--raVyiyg.js → VendorACHDetailsPage-B1vHY6rG-VScnw-FL.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cv-MG9iR-YJohQISw.js → VendorDetailPage-Dkl7AlIZ-5XPeaOqt.js} +9 -9
- package/dist/assets/{VendorDomesticWireDetailsPage-BkqtoYAw-CueaVPRI.js → VendorDomesticWireDetailsPage-Co8Uc_OS-I5CTiy_-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DYJudj3c-DtjWMkp6.js → VendorFiling1099EditablePage-M0gQJLkE-DzG8EXIY.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-BNFIAB9n-CRV8hhmi.js → VendorFirstReviewPage-Bte87pqn-DeG8_h9I.js} +46 -46
- package/dist/assets/{VendorInternationalWireDetailsPage-DHa8JoNl-CB0R2wQi.js → VendorInternationalWireDetailsPage-DdfkKEFx-sHwHhQTJ.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-a5nSOMXK-ZmWLuE7C.js → VendorInternationalWireSwiftDetailsPage-CtQifsRT-BsMO6lfl.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DwDGbjey-BapIbdiL.js → VendorsAccountsSection-CxyObm3T-BgRsSYOY.js} +13 -13
- package/dist/assets/{WarningsDrawerPage-CaSTx_8h-06WKhZXP.js → WarningsDrawerPage-D5nPLGJh-5sMWIR75.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-BSOpxKiJ-By7m3S08.js → ZeniAccountDetailPage-CKS9mcn3-BBMilYy5.js} +34 -34
- package/dist/assets/{ZeniAccountListViewPage-CZM1ODEE-Cc-U9qmc.js → ZeniAccountListViewPage-CORl7azj-By_13T1c.js} +18 -18
- package/dist/assets/{ZeniAccountNavBarPieces-CjNAr1N9-RsiaZAh1.js → ZeniAccountNavBarPieces-88z7CFPI-kEgSzIRo.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-PcyNGe7A-D6DBVv8X.js → ZeniAccountPromoPage-Car62P8Q-Bdd82q-1.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-DhJ2zm6A-DdBOSG23.js → ZeniAccountSetupPage-B5uOzSDL-B_JyTC9y.js} +5 -5
- package/dist/assets/{ZeniCopyright-CSUSID-7-D956iA9P.js → ZeniCopyright-BcMyDAdQ-B3RH4DR7.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DPl7porw-DozHMrHt.js → ZeniTransferAmountSlider-Css3_ojA-DueYRoaC.js} +1 -1
- package/dist/assets/analytics-CBL_L82S.js +7 -0
- package/dist/assets/{analyticsHelper-D6tpOug6.js → analyticsHelper-DsBQxHgn.js} +1 -1
- package/dist/assets/{analyticsHelper-Cex5LOMD-C4BwPSdy.js → analyticsHelper-X-GRY9hH-MGNhQKMp.js} +1 -1
- package/dist/assets/{chartTypes-Df8u7la0-Brzx7O5o.js → chartTypes-C5XZr0AA-C8J0rp67.js} +1 -1
- package/dist/assets/{commonDimensions-OJhakpB_-DiUt9j4S.js → commonDimensions-DBedC6J7-SSiZbAOc.js} +1 -1
- package/dist/assets/{detailCommon-4wAnHr6n-Bingj457.js → detailCommon-CIjWXBC2-K-4pS5u-.js} +6 -6
- package/dist/assets/{downloadPdf-D02UNVHu-C-bMa4LF.js → downloadPdf-B21yi0DO-ZMTPTkC7.js} +1 -1
- package/dist/assets/{index-CKO1Ko85.js → index-ji6aa7AC.js} +3296 -3257
- package/dist/assets/{mapLoadingInProgressToTreeNode-HsZI6Bdg-p8sExms0.js → mapLoadingInProgressToTreeNode-CPDYMovk-DjQU3oZy.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B9KMXCTi-Cj1lgpjj.js → mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BIZ_jwXi-CLKBLO3f.js → mapSpacerToTreeNode-CJ13HyFX-D7QAWDUL.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BOFrVlzJ-F8pebh8y.js → mapTimeframeBalancesToTreeNode-D8UCPznF-C5zbYkry.js} +1 -1
- package/dist/assets/{play-icon-BDRoJBSV-BPJEHfZz.js → play-icon-D7s0M2vV-zKqEqpdy.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-RJhTPgAt-CfuoDOsP.js → toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js} +1 -1
- package/dist/assets/{toChartData-K68FB3Iy-Ds_boAOT.js → toChartData-BMMsnVqz-Cij6F0sj.js} +1 -1
- package/dist/assets/{treasuryColorHelper-DjASf5JB-Clmu45xq.js → treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js} +1 -1
- package/dist/assets/{uploadAttachment-D7Rju7jS-BbgF_xIh.js → uploadAttachment-5FffgOcW-DgFFpcCF.js} +25 -25
- package/dist/assets/{uploadReceipts-Buvz7DfG-BpsqF6VB.js → uploadReceipts-Buvz7DfG-Dl3fgjOi.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPageContent-CmRpq4eF-DDfUCfgt.js +0 -149
- package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-DSSyDlgY.js +0 -47
- package/dist/assets/ArAgingChart-UnY648RV-BOEQqhql.js +0 -24
- package/dist/assets/BankConnectionsSettingsPage-BG99PtV_-CepU1gQp.js +0 -379
- package/dist/assets/ChargeCardDetailPage-DYGcQs0M-NBwd05Wz.js +0 -1447
- package/dist/assets/ChargeCardListPage-CNrRrNbd-Db66aANm.js +0 -355
- package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-CBXiRWXX.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-CbsRUWnx-CNd5wiU_.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-B6jyQS1g.js +0 -1
- package/dist/assets/Dashboard-BLIK_ZsD-DLzG8p7Y.js +0 -778
- package/dist/assets/HelpButton-DXFYhUL5-DrvcpPIO.js +0 -28
- package/dist/assets/InvitePeoplePage-By6TWsVZ-DAOsQYGZ.js +0 -12
- package/dist/assets/NotificationsListConfig-Cc3hEei0-CMelH0ma.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-StMDGc2G-CenaxepD.js +0 -207
- package/dist/assets/StatementItem-B4DJRmwy-NoG4m8iV.js +0 -31
- package/dist/assets/StatementsPage-DzFEOmFA-oaH9OYzs.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-B3bxr-_s-28Eu1Q5j.js +0 -31
- package/dist/assets/TreasuryStatementsPage-CzOSIKGQ-BjAps3jh.js +0 -58
- package/dist/assets/analytics-DThoELaW.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as S,X as v,j as t,aW as L,M as z,
|
|
1
|
+
import{u as S,X as v,j as t,aW as L,M as z,ai as C,o as r,g as d,bT as M,C as T,n as c,q as P}from"./index-ji6aa7AC.js";import{b as h,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as I}from"./BoxItem-DBi8kqn3-BDAOAuEh.js";import{o as R}from"./commonDimensions-DBedC6J7-SSiZbAOc.js";import{M as B}from"./StatementItem-BJoMxmJY-BVhb_2i3.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-B21yi0DO-ZMTPTkC7.js";const m=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(c[3],c[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:b})=>{const g=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>R.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:I(s,a.taxLetters.length)},l.id)}):t.jsx(E,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(A,{children:m.noTaxLetter})})})})};return t.jsxs(X,{children:[t.jsx(L,{title:m.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(H,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(K,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},E=o.div``,p=o.div`
|
|
2
2
|
margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
|
|
3
3
|
&:hover {
|
|
4
4
|
position: relative;
|
|
@@ -11,22 +11,22 @@ import{u as S,X as v,j as t,aW as L,M as z,ao as C,o as r,g as c,bT as T,C as P,
|
|
|
11
11
|
flex-direction: row;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
align-items: flex-end;
|
|
14
|
-
`,
|
|
14
|
+
`,X=o.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
height: 100%;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
width: 100%;
|
|
19
19
|
padding-bottom: ${r.sp7};
|
|
20
|
-
`,
|
|
20
|
+
`,A=o(P)`
|
|
21
21
|
display: flex;
|
|
22
22
|
color: ${e=>e.theme.colors.grey2};
|
|
23
|
-
`,
|
|
23
|
+
`,H=o.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
width: 100%;
|
|
27
27
|
height: 100%;
|
|
28
28
|
margin-top: ${e=>e.windowSize==="small"?r.sp3:r.sp6};
|
|
29
|
-
`,
|
|
29
|
+
`,K=o(M)`
|
|
30
30
|
scrollbar-width: thin;
|
|
31
31
|
scrollbar-color: transparent transparent;
|
|
32
32
|
&::-webkit-scrollbar {
|
|
@@ -35,8 +35,8 @@ import{u as S,X as v,j as t,aW as L,M as z,ao as C,o as r,g as c,bT as T,C as P,
|
|
|
35
35
|
background-color: transparent;
|
|
36
36
|
}
|
|
37
37
|
&::-webkit-scrollbar-track {
|
|
38
|
-
box-shadow: inset 0 0 2px ${
|
|
39
|
-
-webkit-box-shadow: inset 0 0 2px ${
|
|
38
|
+
box-shadow: inset 0 0 2px ${d.scrollbarBoxShadow};
|
|
39
|
+
-webkit-box-shadow: inset 0 0 2px ${d.scrollbarBoxShadow};
|
|
40
40
|
background-color: transparent;
|
|
41
41
|
}
|
|
42
42
|
&::-webkit-scrollbar-thumb {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as ge,
|
|
1
|
+
import{X as ge,H as xt,j as o,Y as P,gN as yt,M as we,_ as Y,K as Ie,d as Ze,a3 as He,o as t,C as f,a2 as Ce,k as $t,al as bt,u as St,a1 as pe,bs as vt,cO as Je,Q as R,l as z,fX as jt,g as S,Z as At,h as et,w as W,q as X,eX as kt,a as Tt,c3 as Pt,F as Ct,fD as zt,n as c,bm as tt,cW as ot,bG as rt,cz as Dt,cq as Lt,f7 as Ft,e$ as Mt,d2 as Rt,f as Bt,f0 as Ot,dp as It,bY as Et,bX as _t,aP as Nt,bc as Vt,f9 as Yt,fi as Wt,aa as Xt}from"./index-ji6aa7AC.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{E as nt}from"./PortfolioDetails-BBOVIetI-BvRwtbCV.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js";const Gt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],qt=1e3;function Kt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=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(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:qt,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Qt(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ut(i)},children:o.jsx(ro,{isSelected:s>=h,children:Zt(h)})},h))})]})}const Qt=e=>{const a=Xt("0,0.[00]a",e,"$").toUpperCase();return`${Gt.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 Ut=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),Ht=r.input`
|
|
2
2
|
width: 100%;
|
|
3
3
|
&[type="range"]::-webkit-slider-runnable-track {
|
|
4
4
|
height: 2px;
|
|
@@ -22,7 +22,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
22
22
|
background-repeat: no-repeat;
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,Jt=r.div`
|
|
26
26
|
position: relative;
|
|
27
27
|
width: 70%;
|
|
28
28
|
margin-left: 30px;
|
|
@@ -46,10 +46,10 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
46
46
|
position: absolute;
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
transform: translateX(-50%);
|
|
49
|
-
`,ro=r(
|
|
49
|
+
`,ro=r(W)`
|
|
50
50
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
|
|
51
51
|
white-space: nowrap;
|
|
52
|
-
`,no=r(
|
|
52
|
+
`,no=r(W)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: -${t.sp5};
|
|
55
55
|
white-space: nowrap;
|
|
@@ -60,10 +60,10 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
60
60
|
justify-content: center;
|
|
61
61
|
align-items: center;
|
|
62
62
|
padding: 2px ${t.sp2};
|
|
63
|
-
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=we.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=go(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(
|
|
63
|
+
`,K={navBarContainerPaddingXaxis:new f(10,19),containerPaddingLeft:new f(c[3],c[6],c[8]),containerPaddingRight:new f(c[3],c[6],c[8]),reviewContentWrapperPaddingBottom:new f(c[5],c[8]),elementsContainerPadding:new f(c[3],c[4])},Te={pageTitle:new R("h6Regular","h5Regular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")},{common:{edit:io},dateFormat:{visual:{DMMMYYYYFormat:ao}},spendManagement:{treasury:{transferDrawer:E},billPay:{insufficientFunds:{lowBalance:so,addOrSwitchInitiateTransfer:lo,lowBalanceIn:co}}}}=we.getLocalizedStrings(),uo=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:n})=>{const d=ge();if(d==="small"){const s=go(e,u,n.treasuryAccount.id);return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:s.topAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.topAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.topAccount?.id??"",!0,s.topAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.topAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.topAccount?.id??"",!0,!0,!0)})]})]}),ie(s.topAccount,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),s.arrowDirection==="up"?o.jsx(Wo,{}):o.jsx(Xo,{}),o.jsxs(ce,{style:s.bottomAccount?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:s.bottomAccountLabel}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,s.bottomAccount?.id??"",!0,s.bottomAccount?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[s.bottomAccount?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,s.bottomAccount?.id??"",!0,!1,!0)})]})]}),ie(s.bottomAccount,n.treasuryAccount.id,d,!0)?o.jsx(ue,{}):null]})]})}else return o.jsxs(o.Fragment,{children:[o.jsxs(ce,{style:e?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"Transfer Funds From"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,e?.id??"",!0,e?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[e?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ie(e,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]}),o.jsx(Yo,{}),o.jsxs(ce,{style:u?.id===n.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:d,children:[o.jsx(de,{children:"To"}),o.jsxs(le,{windowSize:d,children:[N(n.transferMoneyParties,u?.id??"",!0,u?.id===n.treasuryAccount.id,!0),o.jsxs(ae,{windowSize:d,children:[u?.label,o.jsx(se,{children:V(n.transferMoneyParties,n.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ie(u,n.treasuryAccount.id,d,!1)?o.jsx(ue,{}):null]})]})},po=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const n=a.balance;return n?z.checkIfLowBalance(u,n):!0}if("accountBalance"in e){const n=e.accountBalance?.available;return n==null?!1:z.checkIfLowBalance(u,n)}return!1},ho=({transferDetails:e,fundDetails:a,portfolioAllocation:u,setShowReviewContent:n,onTransferClick:d,onCancelClick:s})=>{const m=ge(),x=St(),v=pe(e.fetchState),[h,i]=w.useState(!1);w.useEffect(()=>{v==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?i(!0):i(!1)},[e.error]);const{fromAccount:$,toAccount:T,amount:A}=e.treasuryTransferMoneyLocalData,p=po($,e.treasuryAccount,A);return o.jsxs(o.Fragment,{children:[o.jsxs(Ao,{windowSize:m,children:[o.jsx(Do,{windowSize:m,children:o.jsx(vt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:o.jsx(Ee,{"data-testid":P("nav-bar-close-transfer-review"),onClick:s})})}),o.jsx(Lo,{windowSize:m,children:E.reviewAndConfirm}),o.jsx(No,{windowSize:m,children:o.jsx(Je,{amount:A,alwaysShowDecimal:!0,integerStyles:Te.integerStyles.styleObject(m),decimalStyles:Te.decimalStyles.styleObject(m)})}),o.jsx(Co,{}),o.jsx(Vo,{children:o.jsxs(o.Fragment,{children:[E.review.prefix,`"${T?.label}" `,E.success.midfix,` "${$?.label}" `,E.review.suffix.replace("__date__",z.zeniDate(z.getNextNthWorkingDay(z.dateNow().toDate(),[0,6],1).toDateString()).format(ao))]})}),p?o.jsx(jt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:co.replace("__account__",$?.id===e.treasuryAccount.id?$?.label??"":`${$?.label??""} ${$?.maskedAccountNumber??""}`),description:lo}):null,h?o.jsx(jo,{children:o.jsxs($o,{children:[o.jsxs(ko,{children:[o.jsx(Po,{}),o.jsxs(bo,{children:[o.jsx(So,{children:e.error?.title}),o.jsx(vo,{children:e.error?.message})]})]}),o.jsx(To,{children:o.jsx(Ee,{"data-testid":P("close-error-transfer-review"),onClick:()=>{i(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(zo,{windowSize:m,children:o.jsxs(wo,{windowSize:m,children:[o.jsx(xo,{windowSize:m,children:o.jsx(uo,{fromAccount:$,themeContext:x,toAccount:T,transferDetails:e})}),o.jsx(yo,{children:o.jsx(nt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:fo(e),page:"transfer review"})})]})})]}),o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:E.review.footNote,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:io,onClick:()=>{i(!1),n(!1)},style:{minWidth:94}},primaryBtn:{label:E.transferBtn,onClick:d,isLoading:e.fetchState==="In-Progress",isDisabled:p,style:{minWidth:94}}})]})},N=(e,a,u,n,d)=>{if(n===!0)return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:S.brandColorGoldDark})});if(a==="")return o.jsx(_o,{isForReview:d,children:o.jsx(Lt,{})});const s=e.find(x=>x.id===a),m=e.findIndex(x=>x.id===a);if(s!=null){if(s.accType==="depositAccount")return o.jsx(_e,{isOptionSelected:u,isForReview:d,children:o.jsx(Ne,{color:Ft(m)})});if(s.accType==="paymentAccount")return s.logo!==void 0&&(s.logo.base64||s.logo.url)?o.jsx(Oo,{src:mo(s.logo),isOptionSelected:u,isForReview:d,loading:"lazy"}):o.jsx(Io,{isOptionSelected:u,isForReview:d,children:o.jsx(Eo,{})})}return null},V=(e,a,u,n,d,s,m)=>{if(!u)return null;if(u===a.id)return(s||!n)&&a.balance?o.jsx(ve,{children:Y("0,0[.]00",a.balance)}):null;const x=e.find(h=>h.id===u);let v=!1;return d===!0&&m!=null&&x?.accountBalance?.available?.amount!=null&&(v=z.checkIfLowBalance(m,x.accountBalance.available)),n===!0&&!s?o.jsx(Mo,{children:x?.maskedAccountNumber}):o.jsxs(Fo,{className:"option-sublabel",children:[o.jsx(ve,{children:x?.maskedAccountNumber}),x?.accountBalance?.available?o.jsx(Bo,{className:"dot"}):null,x?.accountBalance?.available?o.jsxs(ve,{children:[Y("0,0[.]00",x.accountBalance.available),v?o.jsx(Ro,{children:so}):null]}):null,x?.balanceFetchStatus?.fetchState==="In-Progress"?o.jsx(Ze,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ie=(e,a,u,n)=>u==="small"?e?.id===a&&n:e?.id===a,ae=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
|
-
`,se=r(
|
|
66
|
+
`,se=r(W)`
|
|
67
67
|
color: ${e=>e.theme.colors.hero};
|
|
68
68
|
`,le=r(X)`
|
|
69
69
|
display: flex;
|
|
@@ -153,7 +153,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
153
153
|
background-color: ${e=>e.theme.colors.grey3};
|
|
154
154
|
min-height: 1px;
|
|
155
155
|
max-height: 1px;
|
|
156
|
-
`,de=r(
|
|
156
|
+
`,de=r(W)`
|
|
157
157
|
color: ${e=>e.theme.colors.hero};
|
|
158
158
|
`,zo=r.div`
|
|
159
159
|
display: flex;
|
|
@@ -177,7 +177,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
177
177
|
${e=>e.windowSize==="small"&&`
|
|
178
178
|
padding-bottom: ${t.sp0};
|
|
179
179
|
`}
|
|
180
|
-
`,Fo=r(
|
|
180
|
+
`,Fo=r(W)`
|
|
181
181
|
color: ${e=>e.theme.colors.hero};
|
|
182
182
|
display: flex;
|
|
183
183
|
flex-direction: row;
|
|
@@ -205,7 +205,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
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
|
-
`,Eo=r(
|
|
208
|
+
`,Eo=r(Wt)`
|
|
209
209
|
min-width: inherit;
|
|
210
210
|
width: inherit;
|
|
211
211
|
height: inherit;
|
|
@@ -215,7 +215,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
215
215
|
width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
216
216
|
height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
|
|
217
217
|
margin-right: ${t.sp2};
|
|
218
|
-
`,Ne=r(
|
|
218
|
+
`,Ne=r(Yt)`
|
|
219
219
|
min-width: inherit;
|
|
220
220
|
width: inherit;
|
|
221
221
|
height: inherit;
|
|
@@ -236,11 +236,11 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
236
236
|
`,Vo=r(X)`
|
|
237
237
|
color: ${e=>e.theme.colors.hero};
|
|
238
238
|
margin-top: ${t.sp3};
|
|
239
|
-
`,
|
|
239
|
+
`,Yo=r(Nt)`
|
|
240
240
|
width: ${t.sp4};
|
|
241
241
|
height: ${t.sp4};
|
|
242
242
|
color: ${e=>e.theme.colors.hero};
|
|
243
|
-
`,
|
|
243
|
+
`,Wo=r(Et)`
|
|
244
244
|
width: ${t.sp4};
|
|
245
245
|
height: ${t.sp4};
|
|
246
246
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -257,7 +257,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
257
257
|
position: absolute;
|
|
258
258
|
right: 50%;
|
|
259
259
|
bottom: -25px;
|
|
260
|
-
`,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:qo},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",Go="transferTo",Ko="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,Z]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[U,J]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[H,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:q}=kt({token:D,onSuccess:lt,onExit:ct}),G=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),q?ee():ze(!0)},[ee,q]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>We(e,n,G),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&q&&Le(!0)},[q,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&H&&ee()},[De,ee,H]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(We(e,n,G))},[q,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,G]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};Z(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{J(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{children:o.jsxs(Jo,{children:[o.jsxs(Ho,{children:[o.jsx(tr,{}),o.jsxs(or,{children:[o.jsx(rr,{children:e.error?.title}),o.jsx(nr,{children:e.error?.message})]})]}),o.jsx(er,{children:o.jsx(lr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ir,{windowSize:i,children:o.jsx(He,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Uo,{id:st(at),onSubmit:mt,children:[o.jsxs(ar,{children:[o.jsx(Pe,{size:i,children:o.jsx(Ye,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,G,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(Ye,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Go),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,G,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(sr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(cr,{children:[p?o.jsxs(dr,{children:[o.jsx(ur,{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:J,setTransferAmount:Z})]}):null,o.jsxs(hr,{windowSize:i,children:[o.jsxs(gr,{windowSize:i,children:[o.jsx(mr,{children:o.jsx(pr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${W("0,0",{amount:U,currencySymbol:"$"})}`})}),o.jsx(fr,{windowSize:i}),o.jsx(wr,{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(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(xr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(qe,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:qo.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},We=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Zo=r.div`
|
|
260
|
+
`,{common:je,spendManagement:{treasury:M,zeniAccounts:{zeniAccountList:Go},billPay:{insufficientFunds:Ve}}}=we.getLocalizedStrings(),it="amount",qo="transferTo",Ko="transferFrom",_="transferDetails",at="transferDetailPage",Ae=(e,a)=>`${e}.${a}`,st=e=>`${e}_form`,g={largeLabelWidth:new f(120,120,160),labeleMarginLeft:new f(c[0],c[0]),labelMarginRight:new f(c[3],c[3]),labeleMarginBottom:new f(c[2],c[0]),labeledFieldPaddingLeft:new f(c[3],c[0]),labeledFieldPaddingRight:new f(c[3],c[2]),labeledFieldPaddingTop:new f(c[3],c[3]),labeledFieldPaddingBottom:new f(c[3],c[2]),infoLabelPaddingRight:new f(c[0],c[3]),infoLabelMarginTop:new f(c[1],c[0]),portfolioContainerPadding:new f(c[3],c[4]),rowContentSelectPaddingLeft:new f(c[3],c[4]),formFieldPaddingRight:new f(0,c[2])},me={yieldEarned:new R("smallMedium","standardMedium"),calculatorFooterText:new R("extraSmallRegular","smallRegular"),integerStyles:new R("h5Regular","h2Regular"),decimalStyles:new R("extraLargeMedium","h5Medium")};function Qo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:n,maxInsuredAmount:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onReviewClick:x,onEstablishConnectionClick:v,onFetchLinkTokenClick:h}){const i=ge(),$=g.largeLabelWidth.value(i),[T,A]=w.useState(!1),[p,C]=w.useState(!1),[B,U]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Z,H]=w.useState(he(B,O)),b=s.link_account_no_microdeposit,[D,xe]=w.useState(b.linkToken??null),[J,ze]=w.useState(!1),[De,Le]=w.useState(!1),ye=e.transferMoneyPartiesFetchState,Fe=pe(ye),$e=e.treasuryTransferMoneyLocalData.fromAccount?.id,be=e.treasuryTransferMoneyLocalData.toAccount?.id,Me=pe($e),Re=pe(be),lt=w.useCallback(l=>{v?.(l),Le(!1),ze(!1)},[v]),ct=w.useCallback((l,y)=>{l!=null&&console.log("Plaid Connection Error",l,y)},[]),{open:ee,ready:G}=kt({token:D,onSuccess:lt,onExit:ct}),q=w.useCallback(l=>{l.preventDefault(),l.stopPropagation(),G?ee():ze(!0)},[ee,G]),I=Tt({mode:"all",reValidateMode:"onChange",defaultValues:w.useMemo(()=>Ye(e,n,q),[e,n])}),{isValid:dt}=I.formState;w.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&xe(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),w.useEffect(()=>{b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&G&&Le(!0)},[G,D,b.fetchStatus,b.linkToken,b.fetchStatus.fetchState]),w.useEffect(()=>{De&&J&&ee()},[De,ee,J]),w.useEffect(()=>{(z.zeniDate(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&h?.("link_account_no_microdeposit")},[]),w.useEffect(()=>{(Fe==="In-Progress"&&ye==="Completed"||Me!==$e||Re!==be)&&I.reset(Ye(e,n,q))},[G,D,b.fetchStatus.fetchState,Fe,ye,Me,Re,be,$e,I,e,n,q]);const ut=()=>e.transferMoneyParties.find(l=>l.id!==e.treasuryAccount.id&&l.accType==="depositAccount"),pt=()=>{const l=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(y=>y.id===l)},ht=async(l,y)=>{if(l!=null){const j={...y},te=j[_].transferFrom.selectedOption,oe=j[_].transferTo.selectedOption;let re=e.transferMoneyParties.find(Se=>Se.id===te),ne=e.transferMoneyParties.find(Se=>Se.id===oe);te===e.treasuryAccount.id&&(re=e.treasuryAccount),oe===e.treasuryAccount.id&&(ne=e.treasuryAccount);const Oe={amount:j[_].amount??0,currencyCode:"USD",currencySymbol:"$"};l.includes("transferFrom")?te===e.treasuryAccount.id?oe===e.treasuryAccount.id&&(ne=ut()):ne=e.treasuryAccount:l.includes("transferTo")&&(oe===e.treasuryAccount.id?te===e.treasuryAccount.id&&(re=pt()):re=e.treasuryAccount);const wt={amount:Oe,fromAccount:re,toAccount:ne};U(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Uo,{children:o.jsxs(Ho,{children:[o.jsxs(Jo,{children:[o.jsx(tr,{}),o.jsxs(or,{children:[o.jsx(rr,{children:e.error?.title}),o.jsx(nr,{children:e.error?.message})]})]}),o.jsx(er,{children:o.jsx(lr,{"data-testid":P("amount-details-error-close"),onClick:()=>{A(!1)},style:{width:t.sp3,height:t.sp3,color:S.heroLight}})})]})}):null,o.jsx(ir,{windowSize:i,children:o.jsx(Je,{amount:L,integerStyles:me.integerStyles.styleObject(i),decimalStyles:me.decimalStyles.styleObject(i),alwaysShowDecimal:!0})}),o.jsx(Ct,{...I,children:o.jsxs(Zo,{id:st(at),onSubmit:mt,children:[o.jsxs(ar,{children:[o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.labels.transferFrom,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,Ko),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!0,!1,L),defaultValue:{selectedOption:ft?.id,allOptions:fe(e,!0,n,!0,q,!0)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}},valueToAdditionalLabel:gt})}),!n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(Pe,{size:i,children:o.jsx(We,{label:{label:je.labels.transferTo,width:$,style:{marginLeft:g.labeleMarginLeft.valuePx(i),marginBottom:g.labeleMarginBottom.valuePx(i),marginRight:g.labelMarginRight.valuePx(i)}},style:{paddingTop:g.labeledFieldPaddingTop.valuePx(i),paddingBottom:g.labeledFieldPaddingBottom.valuePx(i),paddingLeft:g.labeledFieldPaddingLeft.valuePx(i),paddingRight:g.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:g.infoLabelPaddingRight.valuePx(i),marginTop:g.infoLabelMarginTop.valuePx(i),color:S.brandColorGoldDark},singleSelectPickerField:{name:Ae(_,qo),style:{position:"relative"},capitalizeOptions:!0,placeholder:M.transferDrawer.selectAccount,valueToLogo:(l,y)=>N(e.transferMoneyParties,l,y,l===e.treasuryAccount.id,!1),valueToSubLabels:(l,y)=>V(e.transferMoneyParties,e.treasuryAccount,l,y,!1,!1),defaultValue:{selectedOption:Be?.id,allOptions:fe(e,!1,n,!0,q,!1)},textAlignment:"right",registerOptions:{required:!0,validate:l=>l!=null&&!!l.selectedOption}}})})]}),o.jsx(ke,{}),o.jsx(zt,{showAdditionalInfoLabel:!1,label:{label:je.labels.amount,width:$},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:g.formFieldPaddingRight.valuePx(i),width:"auto"},formattedTextField:{type:"number",name:Ae(_,it),defaultValue:L.amount===0?void 0:L.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:l=>!!l&&l>0},placeholder:M.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),n&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{}),o.jsx(sr,{size:i,children:o.jsx(nt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:L,page:"fund transfer"})})]})]}),!n&&Be?.accType==="treasuryAccount"&&o.jsxs(cr,{children:[p?o.jsxs(dr,{children:[o.jsx(ur,{windowSize:i,children:M.transferDrawer.calculator.heading.replace("__amount__",Y("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:H,setTransferAmount:U})]}):null,o.jsxs(hr,{windowSize:i,children:[o.jsxs(gr,{windowSize:i,children:[o.jsx(mr,{children:o.jsx(pr,{windowSize:i,children:`${M.transferDrawer.calculator.footerText.annualYieldEarned} ${Y("0,0",{amount:Z,currencySymbol:"$"})}`})}),o.jsx(fr,{windowSize:i}),o.jsx(wr,{children:`${M.transferDrawer.calculator.footerText.forTotalDeposit} ${Y("0,0",{amount:B,currencySymbol:"$"})}`})]}),p?o.jsxs(Ge,{windowSize:i,onClick:()=>C(!1),"data-testid":P("calculator-footer-close"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.hide}),o.jsx(xr,{className:"calculatorFooterArrowIcon"})]}):o.jsxs(Ge,{windowSize:i,onClick:()=>C(!0),"data-testid":P("calculator-footer-show"),children:[o.jsx(Xe,{className:"calculatorFooterLeftText",windowSize:i,children:M.transferDrawer.calculator.footerText.showYieldCalculator}),o.jsx(yr,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const fe=(e,a,u,n=!0,d,s=!1,m,x)=>{const v=e.treasuryTransferMoneyLocalData.fromAccount?.id,h=e.treasuryTransferMoneyLocalData.toAccount?.id,i=e.transferMoneyParties.find(p=>p.id===v)||e.treasuryAccount,$=e.transferMoneyParties.find(p=>p.id===h)||e.treasuryAccount;let T=e.transferMoneyParties;a||(T=T.filter(p=>p.accType!=="paymentAccount"));const A=T.map(p=>{const C={label:p.label,value:p.id};return n&&(a?C.isDisabled=p.id===h||p.accType==="paymentAccount"&&$?.accType==="paymentAccount":C.isDisabled=p.id===v||p.accType==="paymentAccount"&&i?.accType==="paymentAccount"),C});if(!u){const p={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};n&&(a?p.isDisabled=!1:p.isDisabled=e.treasuryAccount.id===v),a?A.push(p):A.unshift(p)}if(s&&d){const p={label:Go.transferDrawer.selectAddAccount,value:"",type:"button",onClick:d};A.push(p)}return A},Ye=(e,a,u)=>{const{fromAccount:n,toAccount:d,amount:s}=e.treasuryTransferMoneyLocalData;return{transferDetails:{[it]:s.amount===0?void 0:s.amount,transferFrom:{allOptions:fe(e,!0,a,!0,u,!0),selectedOption:n!=null?n.id:e.primaryPaymentAccount?.paymentAccountId},transferTo:{allOptions:fe(e,!1,a,!0,u,!1),selectedOption:d?.id}}}},Uo=r.div`
|
|
261
261
|
margin-top: ${t.sp3};
|
|
262
262
|
display: flex;
|
|
263
263
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -266,19 +266,19 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
266
266
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
267
267
|
border-radius: ${t.sp2};
|
|
268
268
|
box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
|
|
269
|
-
`,
|
|
269
|
+
`,Zo=r.form`
|
|
270
270
|
display: flex;
|
|
271
271
|
flex-direction: column;
|
|
272
272
|
justify-content: center;
|
|
273
273
|
align-items: center;
|
|
274
|
-
`,
|
|
274
|
+
`,Ho=r.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
width: 100%;
|
|
277
277
|
justify-content: space-between;
|
|
278
278
|
padding: ${t.sp3} ${t.sp4};
|
|
279
279
|
background-color: ${S.importantLight};
|
|
280
280
|
border-radius: ${t.sp2};
|
|
281
|
-
`,
|
|
281
|
+
`,Jo=r.div`
|
|
282
282
|
display: flex;
|
|
283
283
|
align-items: flex-start;
|
|
284
284
|
`,er=r.div``,tr=r(ot)`
|
|
@@ -300,7 +300,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
300
300
|
margin-top: ${t.sp1};
|
|
301
301
|
margin-bottom: ${t.sp1};
|
|
302
302
|
`}
|
|
303
|
-
`,
|
|
303
|
+
`,We=r(Dt)`
|
|
304
304
|
border-radius: ${t.sp2};
|
|
305
305
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
306
306
|
`,ar=r.div`
|
|
@@ -397,7 +397,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
397
397
|
${e=>me.calculatorFooterText.style(e.windowSize)}
|
|
398
398
|
color: ${e=>e.theme.colors.hero};
|
|
399
399
|
cursor: pointer;
|
|
400
|
-
`,
|
|
400
|
+
`,Ge=r.div`
|
|
401
401
|
display: flex;
|
|
402
402
|
flex-direction: row;
|
|
403
403
|
align-items: center;
|
|
@@ -440,9 +440,9 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
440
440
|
min-width: 12px;
|
|
441
441
|
min-height: 12px;
|
|
442
442
|
color: ${e=>e.theme.colors.hero};
|
|
443
|
-
`,Q={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])},$r={formTitle:new R("h6Regular","h5Regular")},{common:
|
|
443
|
+
`,Q={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])},$r={formTitle:new R("h6Regular","h5Regular")},{common:qe,spendManagement:{treasury:k}}=we.getLocalizedStrings(),Nr=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:n,isFirstTransfer:d,plaidConnectionDetails:s,onSaveChangesToLocalStore:m,onTransferClick:x,onAnotherTransferClick:v,onCancelClick:h,setShowReviewContent:i,onReviewClick:$,onEstablishConnectionClick:T,onFetchLinkTokenClick:A})=>{const p=ge(),{fundsData:C,currentAllocation:B,fundAllocationOptions:U,fetchState:O}=a,Z=U.find(J=>xt(J.allocation,B))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},H=()=>O==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:b,toAccount:D,amount:xe}=e.treasuryTransferMoneyLocalData;return o.jsx(vr,{windowSize:p,children:e.fetchState==="Completed"?o.jsxs(Ke,{windowSize:p,isTransferCompleted:!0,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ue,{"data-testid":P("cross-transfer-success-close-button"),onClick:()=>{h()}})}),o.jsxs(Tr,{windowSize:p,children:[o.jsx(yt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),o.jsx(jr,{children:o.jsxs(o.Fragment,{children:[k.transferDrawer.success.prefix,o.jsx(Ar,{children:Y("0,0.[00]",xe)}),k.transferDrawer.success.midfix,`"${b?.label}"`,k.transferDrawer.success.midfix2,`"${D?.label}".`]})}),o.jsxs(kr,{windowSize:p,children:[o.jsx(Ie,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":P("another-transfer-button","treasury"),onClick:()=>{v()},style:{minWidth:200}}),o.jsx(Ie,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":P("back-to-treasury-button"),onClick:()=>{h()},style:{minWidth:200}})]})]})]}):u?o.jsx(ho,{transferDetails:e,setShowReviewContent:i,onTransferClick:x,fundDetails:C,portfolioAllocation:Z,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ue,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(Pr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):o.jsx(Cr,{windowSize:p,children:d?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),p==="small"?o.jsx(Sr,{children:k.transferDrawer.subTitle}):o.jsx(br,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?o.jsx(Qo,{onSaveChangesToLocalStore:m,transferDetails:e,onReviewClick:$,fundDetails:C,portfolioAllocation:Z,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ze,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),H()?o.jsx(He,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:st(at),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},primaryBtn:{label:qe.review},cancelBtn:{label:qe.cancel,onClick:()=>{h()}}}):null]})})},br=r(X)`
|
|
444
444
|
color: ${e=>e.theme.colors.hero};
|
|
445
|
-
`,Sr=r(
|
|
445
|
+
`,Sr=r(W)`
|
|
446
446
|
color: ${e=>e.theme.colors.hero};
|
|
447
447
|
`,vr=r.div`
|
|
448
448
|
display: flex;
|
|
@@ -484,7 +484,7 @@ import{X as ge,D as xt,j as o,Y as P,gP as yt,M as we,_ as W,K as Ie,e as Ue,a7
|
|
|
484
484
|
padding: ${e=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
|
|
485
485
|
z-index: 2;
|
|
486
486
|
background-color: ${e=>e.theme.colors.grey4};
|
|
487
|
-
`,
|
|
487
|
+
`,Ue=r(Ce)`
|
|
488
488
|
cursor: pointer;
|
|
489
489
|
color: ${e=>e.theme.colors.hero};
|
|
490
490
|
width: ${t.sp4};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{M as $,j as n,l as u,u as
|
|
1
|
+
import{M as $,j as n,l as u,u as Z,Y as j,ai as z,b5 as B,b6 as F,au as P,v as w,at as R,aa as q,b7 as O,av as K,b9 as _,o as L,g as G,q as N}from"./index-ji6aa7AC.js";import{b as v,f as V,n as k}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-C5XZr0AA-C8J0rp67.js";import{o as X}from"./toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js";import{V as H}from"./toChartData-BMMsnVqz-Cij6F0sj.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=k.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
`,
|
|
3
|
+
`,J=k.div`
|
|
4
4
|
flex: display;
|
|
5
5
|
opacity: 0.85;
|
|
6
6
|
border-radius: ${L.sp1};
|
|
@@ -13,4 +13,4 @@ import{M as $,j as n,l as u,u as B,Y as j,ao as Z,b6 as z,b7 as F,aB as P,r as w
|
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
justify-content: space-between;
|
|
16
|
-
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${Q(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=X("trend","actual",l))}if(s.length>0){const l=D("trend","actual"),d={};return d[l]=s,H(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},T=[D("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:s,width:l,height:d,onTimeframeSelectionChanged:y}){const m=v.useRef(!1),b=r!=null?ne(e,r,a):void 0,g=$.getLocalizedStrings().reports.trend[t?.balancesKind];v.useEffect(()=>{m.current=!0},[]);const x=re(e,T,a,t),Y=p=>{const h=[];return T.forEach(o=>{h.push(n.jsx(_,{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":j(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:b,barElements:Y(s),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:g}),width:l,height:d,onTimeframeSelectionChanged:y})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:s,width:l,height:d,onTimeframeSelectionChanged:y})=>{const m=Z(),[b,g]=v.useState([void 0,void 0]),x=e.timeseries,Y=W(e),p=x.map(o=>o.label);v.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);g(o)}else g([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);g(A),y?.(t,{startDate:S,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":j("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:i})=>n.jsxs(B,{"data-testid":j("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,...w.extraSmallRegular.cssObject}}),n.jsx(R,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...w.extraSmallRegular.cssObject},tickFormatter:c=>q("0,0.[00]a",c,Y)}),n.jsx(O,{cursor:!1,content:s,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(K,{x1:b[0],x2:b[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{X as D,j as i,
|
|
1
|
+
import{X as D,j as i,d as R,o as t,M as F,C as c,Y as S,ai as q,al as Y,c0 as E,n as a,q as K,a2 as X}from"./index-ji6aa7AC.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-CkPRxjLa-ClAmXRdb.js";import{C as W}from"./NoDataChart-IPJ1xGPZ-BKJQDDL9.js";import{F as _}from"./InsightsSection-CBaItqYN-Dz4Ilz30.js";import{l as Z}from"./TransactionList-DG-KZUjZ-CV9wox71.js";const G=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
`,J=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -113,4 +113,4 @@ import{X as D,j as i,e as R,o as t,M as F,C as c,Y as S,ao as A,aq as Y,c0 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:f}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},v="month",w=u?.timeframe==="month",P=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},$=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:[P?M()?i.jsx(Pe,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(
|
|
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},v="month",w=u?.timeframe==="month",P=r.trendReport?.dataAvailable==null,M=()=>r.trendReport?.fetchState==="In-Progress"&&r.fetchState==="Completed",h=r.trendReport?.trendReport,y=()=>{f?.("TransactionList")},C=(p,x)=>{const L={timeframe:x,addTimePeriod:p,currentTimePeriod:r.selectedPeriod?.timePeriod};f?.("TransactionListLoadMore",L)},$=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:[P?M()?i.jsx(Pe,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(pe,{children:i.jsx(W,{title:F.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!p,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(V,{firstMonthOfFY:e,trendReport:h,timeframe:v,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(B,A)=>{f?.("Chart",{timeframe:B,addTimePeriod:A})},width:L,height:x})})})}),h?.insights!=null&&h?.insights.length>0&&i.jsx(ce,{ref:z,children:i.jsx(_,{insights:h?.insights})})]})},H=p=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:p.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),N=p=>{const x=z.current!=null?z.current.clientHeight:56;return(P===!0?j.emptyTrendChartHeight.value($):j.trendChartHeight)+(w===!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:$,report:r,isDetailPage:s,page:g}),i.jsx(xe,{windowSize:$,height:N(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,X as se,
|
|
1
|
+
import{u as ce,X as se,t as Ke,a1 as en,g3 as R,hb as U,M as q,a as nn,hc as tn,hd as Te,c3 as on,j as t,aW as cn,bO as sn,bQ as ln,bR as an,F as rn,l as J,he as dn,d as un,hf as X,hg as pn,a3 as mn,hh as _e,C as u,q as gn,o as l,cg as fe,a7 as W,g8 as oe,hi as ie,n as d,Q as Ae,g as $e,fx as Ve,w as Se,aA as xn}from"./index-ji6aa7AC.js";import{b as Y,n as s}from"./vendor-CnQcJ2Lu.js";import{F as hn}from"./HelpButton-YqQNv-UM-CruBHlAV.js";import{h as wn}from"./VendorsAccountsSection-CxyObm3T-BgRsSYOY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.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])},He={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,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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=>`${He.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,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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=>`${He.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,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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=
|
|
68
|
+
`,K=(e,n)=>`${e}.${n}`;function Ln({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.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??q.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])},qe={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)};
|
|
@@ -94,7 +94,7 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he as tn,
|
|
|
94
94
|
margin-bottom: ${l.sp0};
|
|
95
95
|
`,kn=s.div`
|
|
96
96
|
color: ${e=>e.theme.colors.primary};
|
|
97
|
-
${e=>`${
|
|
97
|
+
${e=>`${qe.title.style(e.windowSize)}`};
|
|
98
98
|
`,En=s.div`
|
|
99
99
|
display: flex;
|
|
100
100
|
flex-direction: column;
|
|
@@ -112,17 +112,17 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he as tn,
|
|
|
112
112
|
max-height: ${e=>P.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
113
113
|
margin-right: ${e=>P.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
114
114
|
`,Tn=s.div`
|
|
115
|
-
${e=>`${
|
|
115
|
+
${e=>`${qe.title.style(e.windowSize)}`};
|
|
116
116
|
color: ${e=>e.theme.colors.primary};
|
|
117
117
|
`,Fn=s(Se)`
|
|
118
118
|
color: ${e=>e.theme.colors.hero};
|
|
119
|
-
`,Dn=s(
|
|
119
|
+
`,Dn=s(Ve)`
|
|
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
|
+
`,_n=s.div`
|
|
126
126
|
display: flex;
|
|
127
127
|
flex-direction: column;
|
|
128
128
|
margin-left: ${e=>P.elementsMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -132,11 +132,11 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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 Vn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.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(Dn,{})}),t.jsxs(En,{children:[t.jsx(Tn,{windowSize:a,children:c.reimbursementsSection.title}),t.jsx(Fn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Bn,{children:t.jsx(_n,{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??q.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")},Hn=s.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
flex-direction: column;
|
|
138
138
|
row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
|
|
139
|
-
`,
|
|
139
|
+
`,qn=s.div`
|
|
140
140
|
display: flex;
|
|
141
141
|
flex-direction: column;
|
|
142
142
|
width: ${e=>L.sectionWidth.valuePx(e.windowSize)};
|
|
@@ -159,10 +159,10 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he as tn,
|
|
|
159
159
|
margin-right: ${e=>L.elementsMarginLeftRight.valuePx(e.windowSize)};
|
|
160
160
|
margin-top: ${l.sp4};
|
|
161
161
|
margin-bottom: ${l.sp0};
|
|
162
|
-
`,
|
|
162
|
+
`,Nn=s.div`
|
|
163
163
|
color: ${e=>e.theme.colors.primary};
|
|
164
164
|
${e=>`${We.title.style(e.windowSize)}`};
|
|
165
|
-
`,
|
|
165
|
+
`,Gn=s.div`
|
|
166
166
|
display: flex;
|
|
167
167
|
flex-direction: column;
|
|
168
168
|
`,Un=s.div`
|
|
@@ -183,7 +183,7 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he as tn,
|
|
|
183
183
|
color: ${e=>e.theme.colors.primary};
|
|
184
184
|
`,Qn=s(Se)`
|
|
185
185
|
color: ${e=>e.theme.colors.hero};
|
|
186
|
-
`,Zn=s(
|
|
186
|
+
`,Zn=s(Ve)`
|
|
187
187
|
width: ${l.sp4};
|
|
188
188
|
height: ${l.sp4};
|
|
189
189
|
`,Xn=s.div`
|
|
@@ -199,7 +199,7 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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
|
-
`,F=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=
|
|
202
|
+
`,F=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=q.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),D={valueContainer:f=>({...f,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=fe(),V=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Hn,{windowSize:a,children:[t.jsx(Nn,{windowSize:a,children:c.uncategorizedSection.heading}),t.jsxs(qn,{windowSize:a,children:[t.jsxs(Wn,{windowSize:a,children:[t.jsx(Un,{windowSize:a,iconColor:V,isDarkMode:p.mode==="dark",children:t.jsx(Zn,{})}),t.jsxs(Gn,{children:[t.jsx(Jn,{windowSize:a,children:c.uncategorizedSection.title}),t.jsx(Qn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(Xn,{children:t.jsxs(Yn,{windowSize:a,children:[t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:F(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:D,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:F(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(F(e,"isRecommendedIncomeAccountChecked"))}}:void 0},F(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:F(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:D,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:F(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(F(e,"isRecommendedExpenseAccountChecked"))}}:void 0},F(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:_}=q.getLocalizedStrings(),Fe="uncategorizedAccountsMappingPage",H="uncategorizedAccountSection",x="filing1099Section",ne="billsAccountSection",te="reimbursementsAccountSection",Ne="vendorsAccountSection",et=s.div`
|
|
203
203
|
display: flex;
|
|
204
204
|
height: 100vh;
|
|
205
205
|
width: 100%;
|
|
@@ -241,4 +241,4 @@ import{u as ce,X as se,V as Ke,a5 as en,g5 as R,hd as U,M as H,a as nn,he 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(),[r,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:_,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=D!=null?[D]:[],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((Z,T)=>{if(!y){const Oe=Z.accountId?.selectedOption,ke=Z.expenseType?.selectedOption,Ee=Z.type1099?.selectedOption,je=Z.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)}),Ze=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)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(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||X(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||X(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||X(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||X(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={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:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:V.subTitle}),Xe===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:De(Fe),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: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:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:D}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,_=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===D?.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};
|
|
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]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:D,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:f,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=D!=null?[D]:[],ue=B!=null?[B]:[],pe=V!=null?[V]:[],me=f!=null?[f]:[],ge=le,xe=ae,he=re,i=R(n.incomeAccountHierachy,de,"Accounts"),N=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),Ge=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),ye={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,we,be,Re,Ie,ve,Ce,Pe,Le,Me,ye),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,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,G=[];j.forEach((Z,T)=>{if(!y){const Oe=Z.accountId?.selectedOption,ke=Z.expenseType?.selectedOption,Ee=Z.type1099?.selectedOption,je=Z.boxType?.selectedOption;(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(je==null||je==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&Te(w[x].expenseCategory1099[0])||A>0&&g===1&&Te(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[H].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${H}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[H].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${H}.expenseAccount`,{selectedOption:g,allOptions:N},{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)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(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||X(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||X(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||X(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||X(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||pn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Xe=n.fetchState!=="Completed",Ye={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"}),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:Ye,proceedButtonVariant:"danger"}):null,t.jsxs(nt,{windowSize:$,children:[t.jsx(it,{windowSize:$,children:_.subTitle}),Xe===!1?t.jsx(rn,{...b,children:t.jsx("form",{id:De(Fe),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:H,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(Vn,{sectionId:te,containerRef:E.current,accountMappingView:n}):null,J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(wn,{sectionId:Ne,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: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:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:D}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,V=r?.selectedExpenseAccountId===h?.account?.accountId,f=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===D?.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(N=>N.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)}}))},[H]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:f},[te]:{reimbursementsAccount:{selectedOption:ue?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:le},[Ne]:{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};
|