@zeniai/web-cockpit-ui 1.13.86-prod → 1.13.87-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-DGGeHZnW-B0w75Qqa.js → ACHDetailsPage-CW8vDdF5-BjcStneE.js} +3 -3
- package/dist/assets/{AIPerformancePage-BnFh61HC-oYjMDFhp.js → AIPerformancePage-tSqRY12b-CS74oHek.js} +29 -29
- package/dist/assets/AccountInfoPage-C9rcnhgb-CRWEZYsW.js +18 -0
- package/dist/assets/{AccountInfoPageContent-C4VpFgc_-PZ9I-m68.js → AccountInfoPageContent-DftJxUep-Cw9zyQ_s.js} +20 -20
- package/dist/assets/{AccountReconDetailsDrawerPage-DJmFBJve-CKMiqNaf.js → AccountReconDetailsDrawerPage-CBpvkm_m-BXrukYLg.js} +16 -16
- package/dist/assets/AccountRow-cQU8OX0K-yHyqR7LP.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D5elLwcD-DUhWydOV.js → AccountsPromoCardStack-DuBj_EHe-B3WzwbTq.js} +23 -23
- package/dist/assets/{AddAddressForCardDrawer-D9uW1sU2-Bc-Z7xPG.js → AddAddressForCardDrawer-D4edy26A-B1-8tiAZ.js} +2 -2
- package/dist/assets/{AddToWalletPage-D3yOWwc3-DhHNF9uo.js → AddToWalletPage-Lkfz2CzH--lPqUVOg.js} +35 -35
- package/dist/assets/{AgingReportsPage-DlB02nzb-D-Sm1I5S.js → AgingReportsPage-DtW2tU4n-DVEUTxX1.js} +4 -4
- package/dist/assets/{AllUserItems-Bwbb5_fm-ynRHF0MF.js → AllUserItems-DcuO9Oho-D7VaO8Uf.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-Bhf_ygxm-Ct0RZobi.js → ApAgingDetailPage-D2UVTYqP-9KAbUMxy.js} +3 -3
- package/dist/assets/{AppBasePage-DyGLpjZ0-DaARhwk6.js → AppBasePage-iuomCofd-D1M4Ldw8.js} +4 -4
- package/dist/assets/{AppDrawerContent-D_dlUPFp-KwJJQrM6.js → AppDrawerContent-BfpdXsfY-BoqfQVbX.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-DLvGE0ND-BRmcznJ6.js → ApprovalRulesSettingsPage-BKAWfUl9-BUmVoC9W.js} +6 -6
- package/dist/assets/{ArAgingChart-CR7dx7XY-CKZgeOzb.js → ArAgingChart--GzyqIlN-wEZY3asj.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-kU_SEimL-BvGZHW4B.js → ArAgingDetailPage-A0zmG_tR--cuXu7ko.js} +2 -2
- package/dist/assets/{AttachmentView-ClQPirg--DEqMxi0K.js → AttachmentView-D203zhS3-Blc80O1o.js} +8 -8
- package/dist/assets/{BankAccountSection-DLB1oftk-DWVfhPoh.js → BankAccountSection-iz2k4H5K-CWZXnWVk.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-ClrNHLqo-BkJ1BVkf.js → BankAccountWarningSection-CSJXyjMA-BgaGb4P-.js} +5 -5
- package/dist/assets/{BankConnectionsSettingsPage-D1w10U35-YZIDDT6F.js → BankConnectionsSettingsPage-Co5pwxWT-C5lfXSpY.js} +15 -15
- package/dist/assets/{BillDetailPage-Bfrn4oa6-DQMbSBkL.js → BillDetailPage-BJbdAC5y-CMbCAQ4h.js} +5 -5
- package/dist/assets/{BillPayApprovalRuleDetailPage-DIzv3Xu9-B9yjottn.js → BillPayApprovalRuleDetailPage-D4-goF6x-C23aUqzX.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-CPBknTMQ-CVKAq3ly.js → BillPayApprovalRulesPage-CpAFdET_-DdMQ64US.js} +3 -3
- package/dist/assets/{BillPayPromoPage-CKETeVet-DdUaRi_i.js → BillPayPromoPage-DZn9Wdsi-COOh5nks.js} +2 -2
- package/dist/assets/{BillPaySetUpPage-DIz-RZih-BreWbM81.js → BillPaySetUpPage-BGxI3SGy--373OJdf.js} +2 -2
- package/dist/assets/BillingSettingsPage-B3h6dTYD-CiH5BD6s.js +44 -0
- package/dist/assets/BillsBulkReviewDrawerPage-Ck830aIk-BaNyoEgy.js +1 -0
- package/dist/assets/{BoxItem-B8KF3Skh-JYmAPE_J.js → BoxItem-C-RN4c2j-F6XwRGQ-.js} +1 -1
- package/dist/assets/BusinessVerificationPage-BEK8kZil-Di05q2Gg.js +140 -0
- package/dist/assets/{CardNumberSubText-CNiPWVeO-LUxFhNyr.js → CardNumberSubText-Bvs0Rr9x-DPY11oi8.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BNWBGKHa-CgYtx0i2.js → CashbackDetailPage-9aAW-23b-6kdPvDSO.js} +24 -24
- package/dist/assets/{ChargeCardDetailPage-BuCwlpLH-Dqmxnq7H.js → ChargeCardDetailPage-DHjtLrCu-8rSs9AMN.js} +58 -58
- package/dist/assets/ChargeCardListPage-DzmHmoAp-BfBb-N8b.js +355 -0
- package/dist/assets/{ChargeCardListTable-D4-Br785-CA2JSsF9.js → ChargeCardListTable-jGT-e74M-5-uAUG8Z.js} +18 -18
- package/dist/assets/ChargeCardPromoPage-C2wn8FfE-Qh6s_V9A.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-fy0EpA-m-BxDAwTha.js → ChargeCardSetupPage-CN5Nbcsp-Bu6r203Z.js} +2 -2
- package/dist/assets/{ChargeCardStatementsPage-B_rdiq_Y-jjH-DAgp.js → ChargeCardStatementsPage-Bu_rIDAD-BeeV8bqA.js} +4 -4
- package/dist/assets/{ChargeCardUtils-CtoTn6DQ-CEQAXg_r.js → ChargeCardUtils-C-37hd5J-B8Ue09Ej.js} +1 -1
- package/dist/assets/{ChaseOverlay-DfjQ73Ie-BuvaJtMo.js → ChaseOverlay-BG833ttH-_qJdBH9y.js} +8 -8
- package/dist/assets/CheckDepositDrawerPage-B4F_yGVS-pfAuDSEr.js +206 -0
- package/dist/assets/{CollapsableReportTable-CHsJ-93l-Bi7TfJ-K.js → CollapsableReportTable-CtS-s84B-BR4en1d9.js} +2 -2
- package/dist/assets/{CompanyOfficerDetailsSection-BlUCDRW6-B6U8H_cM.js → CompanyOfficerDetailsSection-Bor8xmLS-OgNQHHeC.js} +29 -29
- package/dist/assets/{CompanyPassportCard-DSRRu6RZ-C9HDgYfN.js → CompanyPassportCard-n-awcw82-DRSohnEc.js} +4 -4
- package/dist/assets/{CompanyPassportPage-DpeoVbLk-DkaYrVic.js → CompanyPassportPage-WfbfWOs1-COSgoQMl.js} +139 -139
- package/dist/assets/{CompleteProfile-BaTEooSW-BYqXMLi8.js → CompleteProfile-D80JYwPP-BRDUY6r-.js} +10 -10
- package/dist/assets/ConfettiBurst-UJtKVS38-DdsiBpUw.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-CaIc3Tib-CxIwekzk.js → CreateOrEditVendorPage-BMLSs7Yo-DmUQ86jB.js} +15 -15
- package/dist/assets/{CreditCardPaymentDrawerPage-DEFrzmkG-BRXwoTyj.js → CreditCardPaymentDrawerPage-8zmbMj3u-ZPA-ktu-.js} +16 -16
- package/dist/assets/{CreditCardPaymentPlgSection-IeRxDnG7-BraPG36j.js → CreditCardPaymentPlgSection-DD7kSp5v-BuL73gip.js} +10 -10
- package/dist/assets/{CurrencySelectField-DDiCwLn7-R8-HKoHS.js → CurrencySelectField-DGID-Pjb-B38xYqrH.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-976y8y35-BKB9eQaF.js → CustomerOnboardingActivationPage-pdEVqtkO-B5fJSkdd.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-ChQOOhF_-C8keGYSw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYfidx87-BCTz__9n.js → CustomerOnboardingDetailPageSkeleton-1d9j5dWO-dyqi73hm.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DrLZ3k77-D649rhkt.js → CustomerOnboardingNoStepsPage-BqrKQCFg-1lfgph7E.js} +8 -8
- package/dist/assets/CustomerOnboardingPage-DVVWivk2-WMhFdF9M.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-CmHltdpN-H0vMGnp1.js → CustomerOnboardingProductSuitePage-D_WVGW91-B4zQnbeq.js} +4 -4
- package/dist/assets/Dashboard-B-fLAQ8T-DoAtb0kg.js +1253 -0
- package/dist/assets/{DashboardReportPage-DULpVd6J-l4Vy7hhH.js → DashboardReportPage--SAxmUu_-Dq18S8YZ.js} +67 -67
- package/dist/assets/{DepositAccTransactionItem-BEs_Al_8-Bg20fmit.js → DepositAccTransactionItem--OdW7LRx-zcdQHy5Q.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-CL8Rr3I4-PTeUP6x-.js → DepositAccTransactionListPage-BGapI5f0-BXH4xxAt.js} +8 -8
- package/dist/assets/{DocumentSecurityBanner-BgKXBGg3-Bl8BwMyM.js → DocumentSecurityBanner-Ctdvj5Tn-CM5WmW33.js} +1 -1
- package/dist/assets/DomesticWireDetailsPage-BGP2DLHb-CLZOaehZ.js +21 -0
- package/dist/assets/{DownloadOverlay-cne9_fIV-BVhcS5G6.js → DownloadOverlay-VDEpvzHH-C6KDM3Im.js} +17 -17
- package/dist/assets/{DrawerPage-B0mgBHB5-B97-EY3F.js → DrawerPage-BauCSJ4q-DA93KkS0.js} +8 -8
- package/dist/assets/EditPeoplePage-mz7FTion-DdIStM8G.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-DWhSkrJ7-Ck-WrOdO.js → EditReimbursementDetailPage-Bi_rdyjb-DXvJQD3u.js} +69 -69
- package/dist/assets/{EntityDetailPage-wnOA1SH7-DunEwi-2.js → EntityDetailPage-Bc2AVCEp-DOVttkwP.js} +2 -2
- package/dist/assets/{EntitySummarySection-Q_UUVBaU-CCdZqN3Z.js → EntitySummarySection-CDO6K9RG-CZ1I06e-.js} +11 -11
- package/dist/assets/{ExpenseAutomationOverviewPage-BumrdlGf-DlUCUheT.js → ExpenseAutomationOverviewPage-C7SAclix-Ch7r281h.js} +20 -20
- package/dist/assets/{ExpenseAutomationPage-DKjInf-x-CLrqgMqv.js → ExpenseAutomationPage-A03nzEV--i6evGevK.js} +84 -84
- package/dist/assets/{ExpressPayPage-wwfao-Tr-ryF8peXx.js → ExpressPayPage-B5QCvPtb-mYcSl8Ub.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-DriDr9id-U4qY_kzw.js → FeaturePreviewPage-Czr4aIad-Bq5X23tc.js} +2 -2
- package/dist/assets/{FollowStepsSection-5025urr9-DTswNK5r.js → FollowStepsSection-Cf1g5oOj-5G8g4W7R.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-BFjOsp4u-CkPnlCwo.js → GlobalReviewListPage-BI8uyXfO-DlP3gmGv.js} +11 -11
- package/dist/assets/HelpButton-CWPUP9Y_-RpIu9G0D.js +28 -0
- package/dist/assets/{InformationCardStack-DrD-sWV8-CpQ1DMby.js → InformationCardStack-WnJWUp5O-BeMJUt9i.js} +5 -5
- package/dist/assets/{InsightsCardStack-CFqfiCOY-CdOcRooy.js → InsightsCardStack-CRA0RPsW-D6ISd9AF.js} +8 -8
- package/dist/assets/{InsightsSection-CN1BVvSr-BcPmBh3t.js → InsightsSection-DvcmBPbo-Kmp0eo1Q.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-BBlKuJxA-BSt5UPQP.js → IntegrationsSettingsPage-D41_8UnK-CBjS_ZvM.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-f4DZUYIx-Bc0iCI6o.js → InternationalWireSwiftDetailsPage-BFN-eaZB-DkA8hvOx.js} +11 -11
- package/dist/assets/{InternationalWireVerificationPage-5WpkXxPC-D1J0y5mG.js → InternationalWireVerificationPage-xmoJO63s-D_kiU9kB.js} +17 -17
- package/dist/assets/{InviteFormPage-Bw2ykerx-CTE02jgl.js → InviteFormPage-Zy3qQng6-WUFAPnrT.js} +14 -14
- package/dist/assets/{InvitePageListView-BHp1m02Z-Bsala5KT.js → InvitePageListView-gATEAhxa-BJvv1nxH.js} +40 -40
- package/dist/assets/InvitePeoplePage-DkRbCpN7-4Qef88o5.js +12 -0
- package/dist/assets/{InvoiceUploadSection-B8Xsz6dM-DG10muME.js → InvoiceUploadSection-CTbnx9F4-DxOvNNGL.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-DYrMWSZg-B_Lk6fnL.js → IssueChargeCardPage-BwBDVxeq-QT3JqZbp.js} +25 -25
- package/dist/assets/{LabeledAddressValue-kKgzA0is-XuxMbm26.js → LabeledAddressValue-C5YXOhcz-DcQYX30H.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Bey_bvyv-DkjQja9O.js → LabeledAddressValueField-CMIVYcKX-IiR7eG-s.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-CKrD5nfN-VcMd1w66.js → LabeledControlledCheckBoxField-Dr8ND8SA-C9Qzlvtb.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B3x1MZJr-BQbLyyvB.js → LabeledCreatableSingleSelectField-CrDFWvwI-C1AD80Rw.js} +7 -7
- package/dist/assets/LabeledDocumentField-BG6Pu34Y-Dl5pM6Dq.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-cv7zClcb-f3M9bbM_.js +59 -0
- package/dist/assets/{LabeledText-BUZXeSSr-TfY54fhJ.js → LabeledText-DaM1ChQF-BwcpwF0f.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField--jmAGQy--CoSZdDuI.js → LabeledUserSingleSelectWithSubtitlesField-ClM9Uj1y-6k_crmLc.js} +6 -6
- package/dist/assets/{LabeledZeniRolesDropDownField-Dt5MOz8L-DuC7vLqr.js → LabeledZeniRolesDropDownField-DfAO3Vyq-C62yt72O.js} +21 -21
- package/dist/assets/{LinkJETransactionPage-DZZORFZw-zu63LnoB.js → LinkJETransactionPage-CSlZZ9r4-ChRBBG28.js} +7 -7
- package/dist/assets/{LowBalancePopup-BQYkTR6v-BKR39KfH.js → LowBalancePopup-ZfmTgr7J-C3y63M8c.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-B2TCqv5k-YAHQsZg5.js → MagicLinkACHDetailsPage-Ad9q16ze-Cc4KtwXI.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-D0Fcshtr-ClddkEWx.js → MagicLinkDomesticWireDetailsPage-TudYpGU_-cwp5jFX6.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BfschSvJ-jdQCIQzO.js → MagicLinkInternationalWireDetailsPage-DfZQur8x-MDCFOTKW.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CLkxou_Q-88Fi-ErF.js → MagicLinkSuccessPage-G9P6M-7E-bWNtOw6X.js} +5 -5
- package/dist/assets/{MagicLinkTitleSection-BcnZtmCV-epy2dj3A.js → MagicLinkTitleSection-BnKDwhBK-wh8Yf-S0.js} +3 -3
- package/dist/assets/{MailingDetailsSection-B5PAttoo-CAWfzI0V.js → MailingDetailsSection-BV_-2RQM-CCg3F_6v.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DM1wkT0M-Bm_cctkg.js → MeetingCalenderPopup-C6y2cRLo-BgxsFwD_.js} +1 -1
- package/dist/assets/{Menu-teOpHszN-Dh_2vQ1Q.js → Menu-Dhi3mAAc-CTdMUIt5.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-M74Mv2-V-Cz_Rumpg.js → MyBankConnectionsSettingsPage-D1DMNxbh-ChPr7QXP.js} +13 -13
- package/dist/assets/{MyPendingActivationChargeCardListPage-jv9dbM48-CnTuqx43.js → MyPendingActivationChargeCardListPage-CtxNt4Km-OhPuLid4.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CrhE1vfc-DajCnu6s.js → MyProfileSettingsPage-ehPTh7cb-C19JE_a0.js} +8 -8
- package/dist/assets/{NavBarWithPicker-w36OQzVq-CmZfp2mA.js → NavBarWithPicker-BF7k45-H-CqiTH9vF.js} +3 -3
- package/dist/assets/{NavigationArrow-CUVjQXS6-qUKTkXFl.js → NavigationArrow-DKuw9kCL-2Rze1y5j.js} +9 -6
- package/dist/assets/{NavigationDots-Dt6TkUQ7-sum6xK1Z.js → NavigationDots-DfJQIsra-CF_rwB9h.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BAq_UQw1-DoKkpxED.js → NewGlobalMerchantPage-CWyjN00H-0DvMrAS7.js} +9 -9
- package/dist/assets/NoDataChart-BHIoW_SW-DoqAVhyM.js +26 -0
- package/dist/assets/{NoDataTable-Akc9VjuK-DBDpQtci.js → NoDataTable-Txtz3a1x-CVIPKw2H.js} +1 -1
- package/dist/assets/{NotFoundPage-3pCYWZU4-CzFa-O_Q.js → NotFoundPage-DewJikvf-DquNlF_a.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BX5y9Bhs-ChsBGNJT.js → NotificationSettingsPage-CAFlFJ9J-DNtSJXlE.js} +17 -17
- package/dist/assets/NotificationsListConfig-B6PteXf7-BPHFWRyo.js +1 -0
- package/dist/assets/{NotificationsPage-tre5LIJg-DXHT17a1.js → NotificationsPage-CqmgbRYI-B1REvxM0.js} +32 -32
- package/dist/assets/{OpExByVendorPage-Dagfjaza-BG12d2vk.js → OpExByVendorPage-CYAYFvCM-CDkrX969.js} +5 -5
- package/dist/assets/{OverlayContainerPage-nhe7xtoR-DhgreE--.js → OverlayContainerPage-C0rUb6-5-W0ax80yE.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B6BwG3ZF-CpWFWN3l.js → PandLWithForecastPage-v5t7YeHA-c32BpF_9.js} +7 -7
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-w6QwL-c4-BQdRKRB_.js → PaymentAccountSetupBillingAddressSection-CnCCn9XQ-CNY3y6cT.js} +9 -9
- package/dist/assets/{PeoplePage-EFDCrYUk-CE3mVjyD.js → PeoplePage-D89yZGJn-CFNcLLmk.js} +21 -21
- package/dist/assets/{PortfolioAllocationFormPage-DbGLXM2D-Bx9gvRhX.js → PortfolioAllocationFormPage-Cit7ssiw-CpmTmt3z.js} +3 -3
- package/dist/assets/{PortfolioDetails-D2RWl4uo-DGy5rPyu.js → PortfolioDetails-B1HXVeH2-D3KDftxW.js} +12 -12
- package/dist/assets/{ProductsCarousel-o-YsHwnV-CbcIWkQ0.js → ProductsCarousel-BeOYePu1-BPS8weXu.js} +7 -7
- package/dist/assets/{PromoBaseCards-D21UZaz1-BKv3YpvZ.js → PromoBaseCards-D1DDp9C1-BMl9m8-G.js} +25 -25
- package/dist/assets/{QBOConnectionDialog-DOpuFcsk-DYkeM55L.js → QBOConnectionDialog-nb_5mvqp-CNrftMhR.js} +8 -8
- package/dist/assets/{QBOSetupSection-Dcf_Afvz-Cbe3ZtEf.js → QBOSetupSection-b-OrlvdU-D5Bh2qoF.js} +11 -11
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DcDdM_Ss-C7HEqCY_.js → ReimbursementApprovalRuleDetailPage-vg7A7Fqa-DKxcfaTy.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BhdyXjR--D8DMWvvK.js → ReimbursementApprovalRulesPage-FYfZ8-hX-DxG5e0_0.js} +8 -8
- package/dist/assets/ReimbursementDetailPage-DHsqq__V-BbntdEZI.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-DJTuXxOX-Drg3-8a0.js → ReimbursementPromoPage-D-wmyfH--DT237a-Y.js} +16 -16
- package/dist/assets/{ReimbursementSetUpPage-DaIc03J9-DLaizgXu.js → ReimbursementSetUpPage-Cneg3RyB-nHTacFs2.js} +12 -12
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BW6yGqNG-btJeNAgh.js → ReimbursementsBulkReviewDrawerPage-OTHapAJy-B07Bk0eB.js} +1 -1
- package/dist/assets/{ReloadCard-D3-WJk3W-OXxdzcMU.js → ReloadCard-D72dkm5s-DHOqIhPE.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-ZI_K0-D2-CIoJuBlW.js → ReportTableViewSelector-DfZ5geuW-DyPrCXZD.js} +7 -7
- package/dist/assets/{ReportsPage-DsILNosH-BV3Vvbdo.js → ReportsPage-7E3Q5HHF-DXypTMXr.js} +9 -9
- package/dist/assets/{RevenueChart-CKKeqpBi-BfzJ94CA.js → RevenueChart-G7w1_QXE-CK6mJH77.js} +15 -15
- package/dist/assets/{ReviewDetailsPage-BTag8Rn9-gND3y4kA.js → ReviewDetailsPage-i6ZXMuAf-CAvd4g6H.js} +19 -19
- package/dist/assets/{ReviewOverlay-CmbxFXT5-DAX6Vi5G.js → ReviewOverlay-D0tbkcpk-u3R_yBnI.js} +15 -15
- package/dist/assets/{RoleWithToolTip-D25NUL6y-tf-yHmuW.js → RoleWithToolTip-w2s9tX9j-CThc8drW.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-svqtgWEw-2FnaI8Kv.js → ScheduleDetailsFixedAssetsPage-5uPqQbhv-c_seLLEr.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-ClifB2yP-BqsDO0Dj.js → ScheduleDetailsPage-n2Mhm3VT-Qa9fyFQC.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-Bzz4WFsb-BwftU03v.js → ScheduleSequenceTable-BbLZtq_G-B-PxnDpg.js} +50 -50
- package/dist/assets/{ScreenRoutes-DCMPUDES.js → ScreenRoutes-1MbaXcJV.js} +35 -35
- package/dist/assets/{SetUpAccountSection-DHHAhE7n-BYj2HZ1g.js → SetUpAccountSection-CuOJZCNp-D6aQorsQ.js} +103 -103
- package/dist/assets/{SetUpDefaultSection-DkoRgSyp-Bj90DWQf.js → SetUpDefaultSection-D0d0yzu8-BDWGdtc-.js} +16 -16
- package/dist/assets/{SignIn-DSJylxLB-RERuk1YM.js → SignIn-CtZ8rTB_-wQdGuYtt.js} +16 -16
- package/dist/assets/{SignInScreen-B8ft0_Ar.js → SignInScreen-BSTxrh_N.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-NfjbjBOy-DW0rH2Ft.js → SpendManagementListViewPage-ymHs-MwL-BFF1eR3M.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-CJqqj2pl-E24ZlsVq.js → SpendManagementPerTabPage-DwRwO5jR-DYEyp8w8.js} +52 -52
- package/dist/assets/{SpendManagementSection-C8jUu71n-BZHis9xk.js → SpendManagementSection-B1F6rl-n-Bxu1kHsM.js} +10 -10
- package/dist/assets/{SpendMgmtSetupAccountSection-CNcWLqIc-Bd_LEEBx.js → SpendMgmtSetupAccountSection-o-48qyw7-BwGu-MNC.js} +17 -17
- package/dist/assets/{StatementItem-CV3b0pVj-BI2xUPtS.js → StatementItem-CK2sUgkE-C5tUfOGU.js} +8 -8
- package/dist/assets/StatementsPage-D25LsJRp-EGUjR_Fx.js +58 -0
- package/dist/assets/{StatusSwitcher-CxzYEzIO-Co7QMQgC.js → StatusSwitcher-BppDI7-7-CaTqg34_.js} +5 -5
- package/dist/assets/{SubTabSwitcher-_XBeoyd8-B6G5BhKB.js → SubTabSwitcher-DTe2L8JC-D4RBO14j.js} +1 -1
- package/dist/assets/{SummaryCard-egXz66_a-Cl1rSzvu.js → SummaryCard-B-_3DnqQ-C4MQdd4u.js} +1 -1
- package/dist/assets/TaskManagementPage-NFVqhs6K-Bu_ZJ76r.js +508 -0
- package/dist/assets/{TimeRangeSwitcher-DETvaZov-CwVHTAYo.js → TimeRangeSwitcher-D5pSi1fB-XM_OXE-C.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-DRQZAZ8X-DCySEKV1.js → TimeframeSwitcher-CQ37qP58-CJPthL9i.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-DDX_BvPF-1t-6tvHL.js +31 -0
- package/dist/assets/{TopExCard-CtEulaIf-Zmeg67y4.js → TopExCard-CU-kbyDP-BkqVk6Yr.js} +6 -6
- package/dist/assets/{TopExDetailPage-O4MMssGR-B3pvpEDI.js → TopExDetailPage-COxNovqU-TyxPPRK9.js} +11 -11
- package/dist/assets/{TransactionDetailPage-CfY8i6QF-DDhR6G8w.js → TransactionDetailPage-k06RliU--jpVAAS-E.js} +40 -40
- package/dist/assets/{TransactionList-BABUQprb-CGrGARxw.js → TransactionList-CuRdM1xm-CGrWmUwi.js} +13 -13
- package/dist/assets/{TransactionListBig-qJc1PM0U-D-w-QKVO.js → TransactionListBig-ByLaQQUK-DVTWGGO_.js} +18 -18
- package/dist/assets/TransactionListPage-ioT-Jexm-z12q095m.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-nHnLQdj7-BobBNONL.js → TransactionVendorDetailPage-Dyg9upjC-FtRQ9fft.js} +6 -6
- package/dist/assets/{TransferDrawerPage-CkbHu9oQ-Cr2kLjQa.js → TransferDrawerPage-B6zOVR7E-PtwoiwD5.js} +33 -33
- package/dist/assets/{TreasuryOverviewPage-D9qxqZOy-DgvCDwU7.js → TreasuryOverviewPage-Cae5Kj1r-CipOXBTi.js} +29 -29
- package/dist/assets/{TreasuryPromoPage-Bn_4ae7Q-MjHQLB6N.js → TreasuryPromoPage-iNiwYAiH-bWL0zXEM.js} +15 -15
- package/dist/assets/{TreasurySetupPage-CpZDjXwu-BlgaftAJ.js → TreasurySetupPage-Bdl5g5Ct-DGTj2ns3.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-BXDwbrcC-B0Yvh0ZH.js → TreasuryStatementsPage-CLy-YBGI-_kq4Lb1i.js} +7 -7
- package/dist/assets/{TreasuryTaxLetterPage-Cwf-e3Jz-BGI8bIrR.js → TreasuryTaxLetterPage-lRsyHBLO-DlgswuUG.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-BSiDVjnO-jKxiAOAU.js → TreasuryTransferOrReviewPage-Cbfh-a6j-DM2Y9vYh.js} +10 -10
- package/dist/assets/TrendChart-BXOatw0x-CophMwJ6.js +16 -0
- package/dist/assets/{TrendWithTransactions-D8xzYG_f-BXYJlM5g.js → TrendWithTransactions-BxoyLfjd-_bPvq9jR.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CteEKVJk-V8s5GSE9.js → UncategorizedAccountsMappingPage-BA4o7PWu-CMrlTXMW.js} +13 -13
- package/dist/assets/{UnitIntegrationPage-BBAq4_81-CQPS6SXm.js → UnitIntegrationPage-Clt-99RU-BrzMoE2E.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-Drs2Czkg-CGyOsBXK.js → UploadAdditionalDocumentOverlay-LxTjdCJQ-COub0S1H.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DKe-eMoF-C2M9SXlf.js → Vendor2FAPopup-DjHQdB-O-CGPHoNJv.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CTeRlLgu-kYd8MIRh.js → VendorACHDetailsPage-TaEzA3ib-BtSubgL_.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cw7Qe1rv-VsBgNF4C.js → VendorDetailPage-BeADTlAW-BEAFQ3r2.js} +13 -13
- package/dist/assets/{VendorDomesticWireDetailsPage-CYkst1D5-7By2THmG.js → VendorDomesticWireDetailsPage-EpIw_vNR-C7RuY-PA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CXQx0jJQ-IhMnk3PA.js → VendorFiling1099EditablePage-B-jTzcx7-CbBKMdpG.js} +8 -8
- package/dist/assets/{VendorFirstReviewPage-C1yTYtW6-DMX2ZPAc.js → VendorFirstReviewPage-BrlyeQoC-BZiG_JRb.js} +29 -29
- package/dist/assets/{VendorInternationalWireDetailsPage-CfbGRN9B-DCdpm2-s.js → VendorInternationalWireDetailsPage-B22crnTD-tpyu7OIk.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DTxy0byj-D5CQNR_y.js → VendorInternationalWireSwiftDetailsPage-BpXZD_Eh-CX1DO0ul.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-B_nDMJSn-1NkwRYu4.js → VendorsAccountsSection-CLrfBouK-CqWzAgHB.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-Dz3EM7AW-BaYVjn6f.js → WarningsDrawerPage-CBZRy4Sm-DJIt8rHu.js} +4 -4
- package/dist/assets/{ZeniAccountDetailPage-C01gqJIN-BM-R1eoj.js → ZeniAccountDetailPage-Bfvuuiyl-Dadw6og4.js} +26 -26
- package/dist/assets/{ZeniAccountListViewPage-3DEdKuaM-CRpdg_Kj.js → ZeniAccountListViewPage-CTqmq_Vp-3SYD23NH.js} +18 -18
- package/dist/assets/ZeniAccountNavBarPieces-iNAQFffX-jEy_vHEe.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-ClgIxS0H-dyns3_0Y.js → ZeniAccountPromoPage-XHKL_dgv-zxVudUmY.js} +12 -12
- package/dist/assets/{ZeniAccountSetupPage-C-vwyHUJ-ByPV9mPy.js → ZeniAccountSetupPage-BHMr828J-Cb9LGjcX.js} +1 -1
- package/dist/assets/{ZeniCopyright-CqFabZnN-CFC5-_8n.js → ZeniCopyright-B_2DB9mm-Do8EbmHN.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BwHzq-qG-CpfXUhbu.js → ZeniTransferAmountSlider-BnjyU6o3-D4fZwoL6.js} +1 -1
- package/dist/assets/analytics-DThoELaW.js +7 -0
- package/dist/assets/{analyticsHelper-CvW7m-EV-nO2i_RUx.js → analyticsHelper-Bh8Vo_J_-DdkQ2A3j.js} +1 -1
- package/dist/assets/{analyticsHelper-m4qvu5s8.js → analyticsHelper-COZBEzRa.js} +1 -1
- package/dist/assets/{chartTypes-0tTBFzPe-CKqP5TB1.js → chartTypes-DpnOYtNo-C1MRDQOQ.js} +1 -1
- package/dist/assets/{commonDimensions-B68wSFi9-BOPm5YVm.js → commonDimensions-D2zuat_O-BjWWOnE2.js} +1 -1
- package/dist/assets/{detailCommon-D2RAJL6g-Ctxx0B-m.js → detailCommon-CloEmsTm-FeTpoyrx.js} +10 -10
- package/dist/assets/{downloadPdf-IPGZ8YB9-CGTdag_A.js → downloadPdf-OWaFOL1J-_yuPyAAc.js} +1 -1
- package/dist/assets/{index-CjViJI82.js → index-LFy5NlUr.js} +3519 -3479
- package/dist/assets/{liveblocks-BUGn2yQ6.js → liveblocks-sSQ9JElv.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DhjVTksX-D9f25W17.js → mapLoadingInProgressToTreeNode-Df6n7jwq-DhIXCvCe.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtR1UNND--ulpnsBf.js → mapSectionWithAcOnlyToTreeNode-BvlNBFiJ-CBY5TVGr.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-oskKbJKo-DkK4Sqat.js → mapSpacerToTreeNode-BM8XMc8I-DixdkzZo.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BkUJJy_y-8lKA5ScY.js → mapTimeframeBalancesToTreeNode-B3bP14C6-CT5Uu0sF.js} +1 -1
- package/dist/assets/mui-C5LQ0bMa.js +25 -0
- package/dist/assets/{play-icon-C_pnFd6Q-9jE99gvQ.js → play-icon-NE4JTPpx-CK0WoxqT.js} +1 -1
- package/dist/assets/{redux-DmDqXYej.js → redux-ByjIRbhZ.js} +1 -1
- package/dist/assets/{routing-BNz5gZgX.js → routing-Cpaypegg.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-e2ImXwdp-CKDntHr-.js → toCOABalancesWithID-DN21aiLH-Bx86HqeI.js} +1 -1
- package/dist/assets/{toChartData-Dh91kb97-BZZ8pWR6.js → toChartData-CG9GudeA-Bcz5dDyw.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D9SYrM7P-DmVNjxNp.js → treasuryColorHelper-CNX5IuXX-6ZEgxHO3.js} +1 -1
- package/dist/assets/{uploadAttachment-BZTALP74-BVGfc45j.js → uploadAttachment-D42oX05_-CRxK5DEq.js} +29 -29
- package/dist/assets/{uploadReceipts-BH9fi3Vt-BJeYWSVA.js → uploadReceipts-Buvz7DfG-DslgfUmv.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/dist/assets/AccountInfoPage-BoCzcaQW-0jZO3NrI.js +0 -18
- package/dist/assets/AccountRow-vtPa0PJn-Ccj8p0p9.js +0 -298
- package/dist/assets/BillingSettingsPage-Bm-IF_p7-DNHl4xz8.js +0 -44
- package/dist/assets/BillsBulkReviewDrawerPage-CVAG78EK-DCPUzEL9.js +0 -1
- package/dist/assets/BusinessVerificationPage-Ctqy7ZwA-Pibcm8K3.js +0 -140
- package/dist/assets/ChargeCardListPage-CXbTalVQ-CKsNCzlh.js +0 -355
- package/dist/assets/ChargeCardPromoPage-BTfg7L28-DF47hcgS.js +0 -175
- package/dist/assets/CheckDepositDrawerPage-yUzhTMSu-MeotqJRr.js +0 -206
- package/dist/assets/ConfettiBurst-C2engbkN-V_uY_tO9.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-DzzvTpfs-pWxD83yn.js +0 -1
- package/dist/assets/CustomerOnboardingPage-BiUXryld-HgqXiajr.js +0 -107
- package/dist/assets/Dashboard-B1UeMAoF-Uk-MHkBf.js +0 -778
- package/dist/assets/DomesticWireDetailsPage-CVKheLW6-BJ0WqkU8.js +0 -21
- package/dist/assets/EditPeoplePage-DgVDgYlm-DOxAUhJ5.js +0 -55
- package/dist/assets/HelpButton-CzonsAOi-C6o6gRiy.js +0 -28
- package/dist/assets/InvitePeoplePage-BnlUrpPG-CsqOL2ci.js +0 -12
- package/dist/assets/LabeledDocumentField-BKPP0tRe-CIjTxmdT.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-NsCaPjuf-DxsA2YFq.js +0 -59
- package/dist/assets/NoDataChart-CydgbaO2-CIdUt3UK.js +0 -26
- package/dist/assets/NotificationsListConfig-BrTtuTMy-4ldKuia7.js +0 -1
- package/dist/assets/ReimbursementDetailPage-BSWNsboq-DNwPGNwv.js +0 -314
- package/dist/assets/StatementsPage-ly5aBK2M-B3w4WjIP.js +0 -58
- package/dist/assets/TaskManagementPage-CQL5Q6wr-_3qK_AWB.js +0 -508
- package/dist/assets/TimeframeSwitcherWithToggle-CuU7mRU9-0sgW3h40.js +0 -31
- package/dist/assets/TransactionListPage-DuAk6fJT-BXMjUZ88.js +0 -35
- package/dist/assets/TrendChart-Dp3QrDED-TLZjgCXh.js +0 -16
- package/dist/assets/ZeniAccountNavBarPieces-bthmMpbV-DlefBJUL.js +0 -14
- package/dist/assets/analytics-BSSiLa6f.js +0 -7
- package/dist/assets/mui-BgvZYSo0.js +0 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as j,X as v,j as t,aW as z,M as C,
|
|
1
|
+
import{u as j,X as v,j as t,aW as z,M as C,ai as M,o as r,g as d,bR as P,C as R,p as c,q as I}from"./index-LFy5NlUr.js";import{b as m,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as T}from"./BoxItem-C-RN4c2j-F6XwRGQ-.js";import{o as B}from"./commonDimensions-D2zuat_O-BjWWOnE2.js";import{M as E}from"./StatementItem-CK2sUgkE-C5tUfOGU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-OWaFOL1J-_yuPyAAc.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new R(c[3],c[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:b})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:T(s,a.statements.length)},l.id)}):t.jsx(L,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(A,{children:h.noStatements})})})})};return t.jsxs(X,{children:[t.jsx(z,{title:h.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(H,{windowSize:i,children:t.jsx(M,{children:({height:s,width:n})=>t.jsx(K,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},L=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 j,X as v,j as t,aW as z,M as C,ao as P,o as r,g as c,bS as I,C as M,
|
|
|
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(I)`
|
|
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(P)`
|
|
30
30
|
scrollbar-width: thin;
|
|
31
31
|
scrollbar-color: transparent transparent;
|
|
32
32
|
&::-webkit-scrollbar {
|
|
@@ -35,8 +35,8 @@ import{u as j,X as v,j as t,aW as z,M as C,ao as P,o as r,g as c,bS as I,C as M,
|
|
|
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{u as
|
|
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,bR as M,C as P,p as c,q as R}from"./index-LFy5NlUr.js";import{b as h,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as T}from"./BoxItem-C-RN4c2j-F6XwRGQ-.js";import{o as I}from"./commonDimensions-D2zuat_O-BjWWOnE2.js";import{M as B}from"./StatementItem-CK2sUgkE-C5tUfOGU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-OWaFOL1J-_yuPyAAc.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new P(c[3],c[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:b})=>{const g=S(),i=v(),f=h.createRef(),$=h.useRef(),y=a.taxLetters.length===0,k=()=>I.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return y===!1?t.jsx(m,{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:T(s,a.taxLetters.length)},l.id)}):t.jsx(E,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(A,{children:p.noTaxLetter})})})})};return t.jsxs(X,{children:[t.jsx(L,{title:p.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:$,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},E=o.div``,m=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 j,X as v,j as t,aW as L,M as z,ao as C,o as r,g as c,bS as P,C as T,
|
|
|
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(R)`
|
|
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 j,X as v,j as t,aW as L,M as z,ao as C,o as r,g as c,bS as P,C as T,
|
|
|
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 Ue,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,cN 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,c2 as Pt,F as Ct,fD as zt,p as c,bm as tt,cV as ot,bF as rt,cy as Dt,cp as Lt,f7 as Ft,e$ as Mt,d1 as Rt,f as Bt,f0 as Ot,dn as It,bX as Et,bW as _t,aP as Nt,bc as Vt,f9 as Yt,fi as Wt,aa as Xt}from"./index-LFy5NlUr.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{E as nt}from"./PortfolioDetails-B1HXVeH2-D3KDftxW.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CNX5IuXX-6ZEgxHO3.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:Zt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Ut(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 Zt=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Ut=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),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,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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;
|
|
@@ -60,7 +60,7 @@ import{X as ge,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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(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(
|
|
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(Ue,{size:"Small",start:!0}):null]})},mo=e=>e.base64!==void 0?`${Mt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",fo=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},go=(e,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
66
|
`,se=r(W)`
|
|
@@ -257,7 +257,7 @@ import{X as ge,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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,J]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[Z,U]=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(()=>Ye(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(Ye(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};J(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(()=>{U(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(Jo,{children:o.jsxs(Uo,{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(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,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(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(_,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__",Y("0,0.[00]a",{amount:d,currencySymbol:"$"})).replace("__rate__",O.toString())}),o.jsx(Kt,{interestRate:O,transferAmount:B,setYieldEarned:U,setTransferAmount:J})]}):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(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},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}}}},Jo=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,Z]=w.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),O=a.reduce((l,y)=>{const j=y.yield;return Math.max(l,j)},0),[U,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};Z(Oe.amount),m(wt)}};w.useEffect(()=>{const l=I.watch((y,{name:j})=>{j!=null&&y!=null&&Pt(()=>ht(j,y))});return()=>{l.unsubscribe()}}),w.useEffect(()=>{H(he(B,O))},[B,O]);const mt=I.handleSubmit(()=>{dt&&x()}),{fromAccount:ft,toAccount:Be,amount:L}=e.treasuryTransferMoneyLocalData,gt=l=>{if(!l||!L.amount)return"";const y=e.transferMoneyParties.find(j=>j.id===l);if(l===e.treasuryAccount.id){const j=e.treasuryAccount.balance;if(j&&z.checkIfLowBalance(L,j))return Ve.addMoney}else if(y?.accountBalance?.available&&z.checkIfLowBalance(L,y.accountBalance.available))return Ve.addMoney;return""};return o.jsxs(o.Fragment,{children:[T?o.jsx(Zo,{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(Uo,{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: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} ${Y("0,0",{amount:U,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}}}},Zo=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,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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
|
+
`,Uo=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)`
|
|
@@ -397,7 +397,7 @@ import{X as ge,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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,7 +440,7 @@ import{X as ge,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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:Z,fetchState:O}=a,U=Z.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(Ze,{"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:U,onCancelClick:h}):o.jsxs(o.Fragment,{children:[o.jsxs(Ke,{windowSize:p,isTransferCompleted:!1,children:[o.jsx(Qe,{windowSize:p,children:o.jsx(Ze,{"data-testid":P("cross-amount-details-close-button"),onClick:()=>{h()}})}),p==="small"?o.jsx(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:U,isFirstTransfer:d,maxInsuredAmount:n,plaidConnectionDetails:s,onEstablishConnectionClick:T,onFetchLinkTokenClick:A}):o.jsx(Ue,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),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
445
|
`,Sr=r(W)`
|
|
446
446
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -484,7 +484,7 @@ import{X as ge,J as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Ze,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
|
+
`,Ze=r(Ce)`
|
|
488
488
|
cursor: pointer;
|
|
489
489
|
color: ${e=>e.theme.colors.hero};
|
|
490
490
|
width: ${t.sp4};
|
|
@@ -0,0 +1,16 @@
|
|
|
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-LFy5NlUr.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-DpnOYtNo-C1MRDQOQ.js";import{o as X}from"./toCOABalancesWithID-DN21aiLH-Bx86HqeI.js";import{V as H}from"./toChartData-CG9GudeA-Bcz5dDyw.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.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
|
+
display: flex;
|
|
3
|
+
`,J=k.div`
|
|
4
|
+
flex: display;
|
|
5
|
+
opacity: 0.85;
|
|
6
|
+
border-radius: ${L.sp1};
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
padding: ${L.sp3};
|
|
9
|
+
background-color: ${e=>e.theme.colors.black};
|
|
10
|
+
`,U=k(N)`
|
|
11
|
+
color: ${e=>e.color??G.neutralGrey2Light};
|
|
12
|
+
text-align: left;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
`,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(s=>{const l=s.name;if(s&&e&&s.value!==0){const d=s.payload,y=s.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:y})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(I,{children:n.jsx(J,{children:t.map((a,r)=>n.jsx(U,{color:a.color,children:`${a.barName}: ${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,d as R,o as t,M as
|
|
1
|
+
import{X as D,j as i,d as R,o as t,M as b,C as c,Y as S,ai as q,al as Y,b$ as E,p as a,q as K,a2 as X}from"./index-LFy5NlUr.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-BXOatw0x-CophMwJ6.js";import{C as W}from"./NoDataChart-BHIoW_SW-DoqAVhyM.js";import{F as _}from"./InsightsSection-DvcmBPbo-Kmp0eo1Q.js";import{l as Z}from"./TransactionList-CuRdM1xm-CGrWmUwi.js";const G=n.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
`,J=n.div`
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -26,7 +26,7 @@ import{X as D,j as i,d as R,o as t,M as F,C as c,Y as S,ao as q,aq as Y,c0 as E,
|
|
|
26
26
|
&:hover {
|
|
27
27
|
color: inherit;
|
|
28
28
|
}
|
|
29
|
-
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=
|
|
29
|
+
`;function ie({selectedTimeframeTick:e,onTimeFilterClosed:r}){const l=()=>{r?.()};return i.jsx(G,{children:i.jsx(J,{onClick:l,"data-testid":S("time-filter-indicator"),children:i.jsxs(Q,{children:[i.jsx(U,{children:te(e)}),i.jsx(ee,{preserveAspectRatio:"none"})]})})})}const te=e=>{const r=e.startDate,l=b.getLocalizedStrings();return`${r.format(l.dateFormat.visual.MMMYYFormat)}`},re={filterMarginLeft:new c(a[3],a[8])},ne=n.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
flex: 1 1 auto;
|
|
32
32
|
width: 100%;
|
|
@@ -113,4 +113,4 @@ import{X as D,j as i,d as R,o as t,M as F,C as c,Y as S,ao as q,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:p}){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=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),
|
|
116
|
+
`;function Le({firstMonthOfFY:e,trendWithTransactionsReport:r,graphColor:l,isDetailPage:s,initialTransactionListHeight:d=5,page:g,onTransactionItemClick:m,onTimePeriodChange:p}){const T=r.fetchState!=="Completed",u=r.selectedPeriod??{timeframe:"quarter",timePeriod:r.transactionTimePeriod},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=()=>{p?.("TransactionList")},C=(f,x)=>{const L={timeframe:x,addTimePeriod:f,currentTimePeriod:r.selectedPeriod?.timePeriod};p?.("TransactionListLoadMore",L)},$=D(),[I,O]=k.useState(d),z=k.useRef(null),F=()=>{const f=h?.insights!=null&&h?.insights.length>0;return i.jsxs(i.Fragment,{children:[P?M()?i.jsx(Pe,{windowSize:$,children:i.jsx(R,{size:"Standard",start:!0})}):i.jsx(fe,{children:i.jsx(W,{title:b.getLocalizedStrings().chartCard.no_data_available})}):i.jsx(ge,{windowSize:$,"data-testid":S("trend-with-transactions-chart",g),bottomMarginNeeded:!f,children:i.jsx(q,{children:({height:x,width:L})=>i.jsx(i.Fragment,{children:i.jsx(V,{firstMonthOfFY:e,trendReport:h,timeframe:v,selectedTimePeriod:w===!0?u?.timePeriod:void 0,graphColor:l,onTimeframeSelectionChanged:(B,A)=>{p?.("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=f=>i.jsx(i.Fragment,{children:i.jsx(de,{firstMonthOfFY:f.firstMonthOfFY,selectedTimePeriod:u?.timePeriod,showSelectedPeriodTags:w,isDetailPage:s,fetchState:r.transactionView?.fetchState??"Not-Started",transactions:r.transactionView?.transactions??[],onTransactionItemClick:m,onLoadPreviousTransactionsClick:C,onSelectedTimePeriodClear:y,onTransactionListHeightChanged:x=>{O(x)}})}),N=f=>{const x=z.current!=null?z.current.clientHeight:56;return(P===!0?j.emptyTrendChartHeight.value($):j.trendChartHeight)+(w===!0?j.selectedTimeHeight:0)+x+f};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(F,{})}),i.jsx(H,{firstMonthOfFY:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(ue,{page:g,children:i.jsx(F,{})}),i.jsx($e,{children:i.jsx(H,{firstMonthOfFY:e})})]})})]})})}const je=({windowSize:e,report:r,isDetailPage:l,page:s})=>{const d=r.trendReport?.trendReport;if(d==null)return null;const g=d?.balancesKind==="income"?d.customer.name:d.vendor.name,m=b.getLocalizedStrings().reports.trend[d?.balancesKind];if(l)return i.jsx(pe,{windowSize:e,children:m});const p=g+" "+m;return s==="vendorDetailPage"?i.jsx(me,{windowSize:e,children:m}):i.jsx(he,{windowSize:e,children:p})};export{Le as R};
|
|
@@ -1,8 +1,8 @@
|
|
|
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,c2 as on,j as t,aW as cn,bM as sn,bO as ln,bP 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,cf as ye,a7 as W,g8 as oe,hi as ie,p as d,Q as Ae,g as $e,fx as He,w as Se,aA as xn}from"./index-LFy5NlUr.js";import{b as Y,n as s}from"./vendor-CnQcJ2Lu.js";import{P as hn}from"./HelpButton-CWPUP9Y_-RpIu9G0D.js";import{h as wn}from"./VendorsAccountsSection-CLrfBouK-CqWzAgHB.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-C6y2cRLo-BgxsFwD_.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])},Ve={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)};
|
|
5
|
-
`,
|
|
5
|
+
`,fn=s.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
width: ${e=>C.sectionWidth.valuePx(e.windowSize)};
|
|
@@ -17,7 +17,7 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf as tn,
|
|
|
17
17
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
18
18
|
fill: ${e=>e.theme.colors.primary};
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,yn=s.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: flex-start;
|
|
23
23
|
flex-direction: row;
|
|
@@ -27,7 +27,7 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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=>`${Ve.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,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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=>`${Ve.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,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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
|
-
`,
|
|
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}=ye(),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(fn,{windowSize:a,children:[t.jsxs(yn,{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)};
|
|
@@ -114,9 +114,9 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf as tn,
|
|
|
114
114
|
`,Tn=s.div`
|
|
115
115
|
${e=>`${qe.title.style(e.windowSize)}`};
|
|
116
116
|
color: ${e=>e.theme.colors.primary};
|
|
117
|
-
`,
|
|
117
|
+
`,Dn=s(Se)`
|
|
118
118
|
color: ${e=>e.theme.colors.hero};
|
|
119
|
-
`,
|
|
119
|
+
`,Fn=s(He)`
|
|
120
120
|
width: ${l.sp4};
|
|
121
121
|
height: ${l.sp4};
|
|
122
122
|
`,Bn=s.div`
|
|
@@ -132,7 +132,7 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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 Hn({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}=ye(),v=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Mn,{windowSize:a,children:[t.jsx(kn,{windowSize:a,children:c.reimbursementsSection.heading}),t.jsxs(zn,{windowSize:a,children:[t.jsxs(On,{windowSize:a,children:[t.jsx(jn,{windowSize:a,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Fn,{})}),t.jsxs(En,{children:[t.jsx(Tn,{windowSize:a,children:c.reimbursementsSection.title}),t.jsx(Dn,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Bn,{children:t.jsx(_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")},Vn=s.div`
|
|
136
136
|
display: flex;
|
|
137
137
|
flex-direction: column;
|
|
138
138
|
row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
|
|
@@ -183,13 +183,13 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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(He)`
|
|
187
187
|
width: ${l.sp4};
|
|
188
188
|
height: ${l.sp4};
|
|
189
189
|
`,Xn=s.div`
|
|
190
190
|
display: flex;
|
|
191
191
|
flex-direction: column;
|
|
192
|
-
`,
|
|
192
|
+
`,Yn=s.div`
|
|
193
193
|
display: flex;
|
|
194
194
|
flex-direction: column;
|
|
195
195
|
margin-left: ${e=>L.elementsMarginLeftRight.valuePx(e.windowSize)};
|
|
@@ -199,7 +199,7 @@ import{u as ce,X as se,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf as tn,
|
|
|
199
199
|
background-color: ${e=>e.theme.colors.grey5};
|
|
200
200
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
201
201
|
border-radius: ${l.sp2};
|
|
202
|
-
`,
|
|
202
|
+
`,D=(e,n)=>`${e}.${n}`;function Kn({sectionId:e,containerRef:n,accountMappingView:o}){const a=se(),p=ce(),c=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(y=>y.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:y=>({...y,padding:`2px ${l.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),H=p.mode==="light"?new W(p.colors.brandColorJadeLight):new W(p.colors.brandColorJadeDark);return t.jsxs(Vn,{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:H,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:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>ie(y,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:I},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(oe,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>ie(y,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:k},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const Q={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,d[5],d[5]),sectionsRowGap:new u(12,d[7],d[7]),subTitlePaddingTop:new u(12,d[3]),subTitlePaddingBottom:new u(d[3],d[3])},{common:m,uncategorizedAccountsMapping:_}=q.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",V="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,w as Ye,a5 as en,g6 as R,he as U,M as q,a as nn,hf 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=Ye(),[r,v]=K.useState(!1),h=en(n.saveState.fetchState),E=K.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)};K.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&I?.()},[h,n.saveState.fetchState,I]),K.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",Ke={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:Ke,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(Yn,{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};
|
|
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:F,expenseRecommendation:B,billPayRecommendation:H,reimbursementsRecommendation:y,prepaidExpensesRecommendation:le,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:re}=n,de=F!=null?[F]:[],ue=B!=null?[B]:[],pe=H!=null?[H]:[],me=y!=null?[y]:[],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),fe={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,we,be,Re,Ie,ve,Ce,Pe,Le,Me,fe),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,we,be,Re,Ie,ve,Ce,Pe,Le,Me,fe)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,f=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Z,T)=>{if(!f){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])||f)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[V].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${V}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[V].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${V}.expenseAccount`,{selectedOption:g,allOptions: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(f=>!isNaN(Number(f)));if(g!==void 0){const f=parseInt(g,10),j=A[x].expenseCategory1099[f];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${f}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(f=>!isNaN(Number(f)));if(g!=null){const f=parseInt(g,10),j=A[x].expenseCategory1099[f].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${f}.boxType`,{selectedOption:m.strings.empty,allOptions:_e(j??m.strings.empty,fe)},{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:Fe(De),onSubmit:Qe,children:t.jsxs(tt,{windowSize:$,children:[J.hasFullOrAdminLevelAccess(S.loggedInUserRole??[])?t.jsx(Kn,{sectionId:V,containerRef:E.current,accountMappingView:n}):null,J.hasBillPayAccessible(e,S.loggedInUserRoleMap)?t.jsx(Ln,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,J.hasReimbursementAccessible(e,S.loggedInUserRoleMap)?t.jsx(Hn,{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:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(hn,{isFooterRendered:ze(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,a,p,c,M,z,I,O,k,$,S)=>{const{accountMappingLocalData:r,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=r?.selectedIncomeAccountId===v?.account?.accountId,H=r?.selectedExpenseAccountId===h?.account?.accountId,y=r?.selectedBillPayAccountId===E?.account?.accountId,le=r?.selectedReimbursementsAccountId===F?.account?.accountId,ae=r?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===r.selectedIncomeAccountId):void 0,re=r?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===r.selectedExpenseAccountId):void 0,de=r?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===r.selectedBillPayAccountId):void 0,ue=r?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===r.selectedReimbursementsAccountId):void 0,pe=r?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>r.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],me=r?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>r.selectedFixedAssetsAccountIds.includes(i.accountId)):[],ge=r?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>r.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],xe=r?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>r.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],he=r?.selectedExpenseAccounts1099FilingAccountIds!=null?r.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:xe.map(i=>i.qboId).filter(i=>i!=null),allOptions:I},expenseCategory1099:he.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(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)}}))},[V]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:re?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:H},[ne]:{billPayAccount:{selectedOption:de?.qboId,allOptions:a},isRecommendedBillPayAccountChecked:y},[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};
|