@zeniai/web-cockpit-ui 1.15.29-qa → 1.15.30-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-D0jUmxS6-BsyksSdq.js → ACHDetailsPage-BR3rG--e-D2_LFn30.js} +1 -1
- package/dist/assets/{AIPerformancePage-DQyvDXPN-BhEY3MME.js → AIPerformancePage-DncCC-Dz-D3G6sKpR.js} +23 -23
- package/dist/assets/AccountInfoPage-CD5N14l8-POhlTbPm.js +18 -0
- package/dist/assets/{AccountInfoPageContent-B7DASXbm-CfgZBo7w.js → AccountInfoPageContent-D-dwMWkI-Dbq4xdEd.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-Cr7_xUUY-BunT5t6u.js → AccountLockedInfoModal-Bu3jEa0r-DRCGU_-r.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CrmjKiV7-CCewa5Cq.js → AccountReconDetailsDrawerPage-BL7C23h8-C0V-huzv.js} +1 -1
- package/dist/assets/{AccountRow-C3tJgM2h-D6bVgxu0.js → AccountRow-B5Gqqqtn-B2ab5e7e.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DhZiDNjz-CUXP-w9w.js → AccountsPromoCardStack-BqyCa3EH-C6VYK7eB.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D0veIubx-DE4ZTuXm.js → AddAddressForCardDrawer-BwmafnJT-Ba-xRLW9.js} +1 -1
- package/dist/assets/{AddToWalletPage-DC8BGIUj-C43rBeCR.js → AddToWalletPage-tRVFR3Rw-CIboPJdI.js} +1 -1
- package/dist/assets/{AgingReportsPage-tUsuhbO0-bnYXqPGM.js → AgingReportsPage-BO9qovKL-m3dKXsEf.js} +1 -1
- package/dist/assets/{AllUserItems-CscMl1JD-C7e2pIGq.js → AllUserItems-C5uzbqu0-OYaG4ozf.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-CjpIU0Dh-DVxjWGcS.js → ApAgingDetailPage-Dw4d844_-DnXvQrmX.js} +2 -2
- package/dist/assets/{AppBasePage-DMwbBUJi-CwfgOYvf.js → AppBasePage-BMHvSY21-DiAzqDoX.js} +1 -1
- package/dist/assets/{AppDrawerContent-CUw-1lGW-Bl_56_R0.js → AppDrawerContent-C5KqoZ6_-DSRTCara.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DEySZg2e-vnOjmRfC.js → ApprovalRulesSettingsPage-nEW4hufu-LHTAH2YF.js} +1 -1
- package/dist/assets/{ArAgingChart-B99-xh0r-CE8d9vMX.js → ArAgingChart-2eGhMrCs-DnvN-laJ.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BMs-sIjj-BlvHfa9N.js → ArAgingDetailPage-CE_nDD48-CIv1_heH.js} +5 -5
- package/dist/assets/{AttachmentView-D8FFMCan-HliG1O2K.js → AttachmentView-DdX3DEyN-D4xdrOUi.js} +1 -1
- package/dist/assets/{BankAccountSection-DwcbHNr4-BzUR7jwr.js → BankAccountSection-Db8KCDjh-7fAQc6F_.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CKlrNRtW-BYb315Ci.js → BankAccountWarningSection-DLKyK-pN-WvpV5xZt.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CnQX_eIy-HH3R7Ajn.js → BankConnectionsSettingsPage-BcMQdf1D-C4cSmkMm.js} +1 -1
- package/dist/assets/{BillDetailPage-DoiN5bdp-DbLCl74c.js → BillDetailPage-BOoE3r9n-C_-O6tkI.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-C9rO8GVf-B2zmu5XN.js → BillPayApprovalRuleDetailPage-C-M8i0tF-ErR7MbAL.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DUoGmtQA--vbDuy75.js → BillPayApprovalRulesPage-cqq9M7pi-CM1gLpvJ.js} +1 -1
- package/dist/assets/{BillPayPromoPage-pb2Uoote-B5BN33a7.js → BillPayPromoPage-CHu-sh9I-b6nXHlbY.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-CCJ-y0-e-DCM3LQPY.js → BillPaySetUpPage-ICbZgQZR-DcttrcBB.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BtZx7XsQ-C47DMEKk.js → BillingSettingsPage-DYdJ7J5w-nKMt_tqW.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-ihLtPXjK-ypmC5555.js → BillsBulkReviewDrawerPage-Cr-JmUCA-LZ1I5uJ7.js} +1 -1
- package/dist/assets/BoxItem-ChtGcSH1-BjQod1Sp.js +53 -0
- package/dist/assets/{BusinessVerificationPage-B5N2bKw0-_SqX-bfV.js → BusinessVerificationPage-CyDHfWqO-s-eVbnix.js} +1 -1
- package/dist/assets/{CardNumberSubText-CzY1q13C-CizrzI0W.js → CardNumberSubText-Dxhe-tx2-BQPvyrmB.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BfbarB85-BdOeoCBo.js → CashbackDetailPage-BTR9tfZP-DZBth57E.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-ZbiEFEmP-hQXgQLFI.js → ChargeCardDetailPage-D_dF0Nv_-Dp_tBUAA.js} +1 -1
- package/dist/assets/{ChargeCardListPage-TZjLs-P6-eI9Hf6Ml.js → ChargeCardListPage-wA3_NOPD-DpPgkdeF.js} +1 -1
- package/dist/assets/{ChargeCardListTable-8xOxHHdR-CR-3V18C.js → ChargeCardListTable-8Bgd9bzh-yIMe5GBQ.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-C59HJbX_-3d2oett1.js → ChargeCardPaymentHistoryPage-mcW9jr2k-CIwmXpSr.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BStN0hwL-D9LQIDC6.js → ChargeCardPromoPage-BPyHy6jq-EG0Y0jIo.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BV9CZbZA-BPZP5yda.js → ChargeCardSetupPage-BxAJ2HVU-UIApVhks.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BM0-VzSs-mRSCcWqp.js → ChargeCardStatementsPage-CZzDSv5y-C_fNd-Va.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Ck_FJENk-hl5iVjGB.js → CheckDepositDrawerPage-iPcp79Wu-DjNqRhvh.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Bp12uWDe-DCcqYieC.js → CollapsableReportTable-Ck29YUyD-C4PUByzW.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BpXbh4hd-UFoGVIgI.js → CompanyOfficerDetailsSection-CEpMwx3h-D1MF6UPf.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DdLCLtke-BGOpz-dk.js → CompanyPassportCard-CCfVNfP0-D2OWbLG1.js} +1 -1
- package/dist/assets/{CompanyPassportPage-C_YEVe_6-BiGPLpzo.js → CompanyPassportPage-S00SGN0f-DChjXEwN.js} +1 -1
- package/dist/assets/{CompleteProfile-IidaBize-b749vlPR.js → CompleteProfile-C0Qk6P6p-B7DE2SVz.js} +1 -1
- package/dist/assets/{ConfettiBurst-BBQSP4O0-BqtJoXRE.js → ConfettiBurst-BFSc4yf1-Bb3-1CUU.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js → ConstrainedInnerElement-BeIpAPjB-XcmcSCP3.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DRIcvWIi-CogPKExQ.js → CreateOrEditVendorPage-CmnpkgTu-B-wx5zV_.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CP16DSkY-DBQVPHsA.js → CreditCardPaymentDrawerPage-wPiHCF7z-Dzpo3z2e.js} +1 -1
- package/dist/assets/{CurrencySelectField-Dh8_yxO9-DgfCVwca.js → CurrencySelectField-CxIflyKX-BGGnxKIK.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CruwsOaY-bMYxmKcT.js → CustomerOnboardingActivationPage-CE5B6BET-BPLeksRp.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-U3ET6sDq.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D5vI0fK5-CeoPYW8S.js → CustomerOnboardingDetailPageSkeleton--jL1SUOo-DgoL19Wk.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CeP1FYaR-CyeUt-4y.js → CustomerOnboardingNoStepsPage-DtAEP0LR-BBA3-H-1.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-POOYVKHb-C2HlGYiA.js → CustomerOnboardingPage-8fLLsJWV-Cl7RVN5-.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-CsGY-9DW-DSONUNKZ.js → CustomerOnboardingProductSuitePage-IUm6QKOQ-BgC9YDnn.js} +1 -1
- package/dist/assets/{Dashboard-DVGSm94S-ek6XXFNQ.js → Dashboard-CeBbTIiJ-BKwU5QeJ.js} +1 -1
- package/dist/assets/{DashboardReportPage-BTH4sqly-TVndyRux.js → DashboardReportPage-DVIwO5-L-pH5FWjLZ.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-P4dMLhdR-BWSiAIFD.js → DashboardSidebarBackgroundAnimation-CntzllmW-BTAOBj42.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CdGb-mdn-cQFddvm2.js → DepositAccTransactionItem-B7ErTe-9-ClHyxdVn.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-D_4GDpPX-na9ZYz4u.js → DepositAccTransactionListPage-Czm5uOxb-BGyjwBM2.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CyR8VR17-DugxqkzP.js → DomesticWireDetailsPage-B3Cib987-CARF9i1d.js} +1 -1
- package/dist/assets/{DownloadOverlay-XjCXyoWD-DF9S8c0i.js → DownloadOverlay-CS_4lZDV-DTBvhOHI.js} +1 -1
- package/dist/assets/{DrawerPage-BrFA4rZ6-UJWihtY9.js → DrawerPage-CrCkJ_bE-fj3woT0N.js} +1 -1
- package/dist/assets/{EditPeoplePage-C7oQnEDx-BCrgtoBd.js → EditPeoplePage-CbH2FQwr-Dc9u9Y3N.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BKCA_tOp-Dqrmnfhn.js → EditReimbursementDetailPage-DisSqLai-DnOSaIlo.js} +1 -1
- package/dist/assets/EntityDetailPage-CPfVH0Qx-DTuhKWD_.js +18 -0
- package/dist/assets/{EntitySummarySection-jiCl0IQB-W-pLI3jz.js → EntitySummarySection-CmVlq7pY-umvtllpK.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-D5FqhZ4C-0g3pkGW7.js → ExpenseAutomationOverviewPage-DuWbC5EZ-DbINW0ra.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BxePbH-d-vBewGYnV.js → ExpenseAutomationPage-DBW9Urqw-BLqr1_km.js} +8 -8
- package/dist/assets/{ExpressPayPage-Ce1ICmZX-CRiREa0_.js → ExpressPayPage-DZHOM942-BLmAB792.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BPy4OV1_-DF2KgXAr.js → FeaturePreviewPage-DHomR4Oi-DzHHPfTu.js} +1 -1
- package/dist/assets/{FollowStepsSection-Din7sNsE-Bka2bXBE.js → FollowStepsSection-C8Zv_X5E-BSPaXUZH.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DdBS6gtg-Da3bbg93.js → GlobalReviewListPage-BFR_WZdE-jG6gei6c.js} +1 -1
- package/dist/assets/{InformationCardStack-D2m2hpoN-D_cEWCU-.js → InformationCardStack-C39QsHiY-B_SVxEcf.js} +1 -1
- package/dist/assets/{InsightsCardStack-CwPV_ZFA-BZGSOjt3.js → InsightsCardStack-Bi2tusdE-DhrD945r.js} +4 -4
- package/dist/assets/{InsightsSection-C99GeNPc-ZyHAgCre.js → InsightsSection-CKYv2Mnk-CMDaS26i.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-Cj3wec0l-D_cXiP1p.js → IntegrationsSettingsPage-Bj9lE3dy-C8DRNLeo.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BUMPAKcc-BGwcC4Fv.js → InternationalWireSwiftDetailsPage-HPxS_eP2-Bi_9u824.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-sMa3CFzS-BgO_L4E_.js → InternationalWireVerificationPage-0DjZSpXZ-BFgqlc0H.js} +1 -1
- package/dist/assets/{InviteFormPage-BllyKSzh-CbPDkxQX.js → InviteFormPage-DyUgmNt6-yyWn8Yk_.js} +1 -1
- package/dist/assets/{InvitePageListView-C3RyUNhD-DTm4mduT.js → InvitePageListView-PbTTJA74-w58xk_rt.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CKyzJq5O-D03raYQC.js → InvitePeoplePage-CD1AM3Js-2Vxumr-a.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Cy_eY3C3-BDj5n3WW.js → InvoiceUploadSection-DPN2hpHj-BXu1QXvI.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-JGrU6BE3-BIhGV4kp.js → IssueChargeCardPage-WeFAdE9k-BxW4fu66.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BI2stF8S-CaJDqmpl.js → LabeledAddressValue-BEiVNwJh-6EnDaIvC.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BeN4saF8-cvVvhiNT.js → LabeledAddressValueField-CeyT4xDd-BvfbCZea.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-1cRVmzfC-Con0KtwH.js → LabeledControlledCheckBoxField-9wqNy7sL-BEJkWulK.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-Dq1kA0bH-oPhoIJP3.js → LabeledCountryMultiSelectField-S16_1kXP-UlJPnrtq.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CA4tIjc4-X_2W3wq_.js → LabeledCreatableSingleSelectField-B-KMzhH--CvW70JID.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BwDcnGXz-DSgbEu-e.js → LabeledDocumentField-9m7Nhuth-CkOtgSAA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BiX_zDWp-CIPHFmOc.js → LabeledDropDownFormattedTextField-B_jJYbeK-PbQrO6eI.js} +1 -1
- package/dist/assets/{LabeledText-DBGBNWrC-DTS4NY-4.js → LabeledText-B1BxC4mo-CDiqUP7l.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-Y_LbewjK.js → LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-ClcTuuYx.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BledLq8r-BaHojzPa.js → LabeledZeniRolesDropDownField-DruyoV6I-gDHLkFnU.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-T3YbAuGo-DBebcBZG.js → LinkJETransactionPage-_GJ-x5FQ-BvKwuUsJ.js} +9 -9
- package/dist/assets/{LockCardPage-CCbSDbLg-ZpT_TeWc.js → LockCardPage-BiembyjL-BQgtTNap.js} +1 -1
- package/dist/assets/{LowBalancePopup-Dcu_nflD-D0ffoSvY.js → LowBalancePopup-DF0W3ZsB-DXIPCFb8.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-DTvViT4t.js +1 -0
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Ci1FYKWc-DvcIGyVo.js → MagicLinkDomesticWireDetailsPage-B_wnHSrq-Cz4K_Hkr.js} +1 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BohPD43K-CrX6QPLC.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-Cj9eBkUy-B-MUloz8.js → MagicLinkSuccessPage-RJUcSgy8-CnQ9391t.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DYgXcZiu-oQ6QmgCO.js → MagicLinkTitleSection-Dlvzbcxc-07YJ3nz_.js} +1 -1
- package/dist/assets/MailingDetailsSection-BT5P_beR-Chn0pdYc.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-CA6Wlg9P-sBjfoTFh.js → MyBankConnectionsSettingsPage-BSErzm4Y-BPCz_uBa.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-vuCK_pay-seLRkwA2.js → MyPendingActivationChargeCardListPage-CC02lTyz-CeD7DjCL.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-ivKa4qXq-DtHk96aF.js → MyProfileSettingsPage-BM5j8vuZ-D6xmAoOb.js} +1 -1
- package/dist/assets/{NavBarWithPicker-CaEVqLYu-Mt6iac90.js → NavBarWithPicker-BsrNGnWt-CVqlkT83.js} +1 -1
- package/dist/assets/{NavigationArrow-CE75i93Q-lI7yTcn_.js → NavigationArrow-BXIVh8h9-DmlDNFK6.js} +1 -1
- package/dist/assets/{NavigationDots-DSmdsJan-D7Dn9zqB.js → NavigationDots-CqAMUVd8-DlLV84YV.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D1t1Omz1-033pVM92.js → NewGlobalMerchantPage-BJ5efhOX-45v-8VWf.js} +1 -1
- package/dist/assets/{NoDataChart-DWJgpsRV-GxCWUXak.js → NoDataChart-YIESVuNz-DxR56cWr.js} +1 -1
- package/dist/assets/{NoDataTable-CfVHlNP8-Cjys4hCI.js → NoDataTable-CHeZXDKw-DlmRPcbA.js} +1 -1
- package/dist/assets/{NotFoundPage-BRQ7JAuQ-_Kq4eHg7.js → NotFoundPage-DsvOs3ie-CxEfyKrP.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-BwEA5Wca-BAxN5Vtu.js → NotificationSettingsPage-DVfgPnm5-C-9LCnBN.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CKAbHHpg-Ba-UUMpa.js → NotificationsListConfig-DpYbR8ec-BZk6IMbB.js} +1 -1
- package/dist/assets/{NotificationsPage-CEh-UBpl-DprBm1Gh.js → NotificationsPage-DvWc70qe-CLGgDCba.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CTee-X2c-BLCgbLI6.js → OpExByVendorPage-H76M8qaf-DmH_-lZf.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-fzlmX50I.js → OverlayContainerPage-D4QU0p4o-COyWocbB.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Bx5J8Jkw-DGqUboJd.js → PandLWithForecastPage-sw9N690f-DE9ix_Dt.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-vh9LcTSB-B2K7pIhZ.js → PaymentAccountSetupBillingAddressSection-D_rfYltd-BrO8Jg79.js} +1 -1
- package/dist/assets/{PeoplePage-B7dwoi8R-Cc3PgS1X.js → PeoplePage-D0ePO3d9-CxNhgJ1D.js} +1 -1
- package/dist/assets/{Preview-TD25geE8.js → Preview-CTKmuGb_.js} +1 -1
- package/dist/assets/{ProductsCarousel-CpPUyzF7-MkqtUAeu.js → ProductsCarousel-BcFZaXQq-D-hD1KoW.js} +1 -1
- package/dist/assets/{PromoBaseCards-Dl_042jf-gFv3X1j8.js → PromoBaseCards-BglIl0tN-CTFaf0_7.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CuGzMWxh-C314aSf5.js → QBOConnectionDialog-D9BGyyB3-D-hyd18h.js} +1 -1
- package/dist/assets/{QBOSetupSection-PANAGPOA-CNiEupWo.js → QBOSetupSection-C6L-OXzd-Cy1MLcyD.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BN9aWFrw-7DCi0li7.js → ReimbursementApprovalRuleDetailPage-tKu15I_o-BXX_iX2c.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-C8EnDVZP-rOVUZi1n.js → ReimbursementApprovalRulesPage-r2WRV6kv-kJbuC_Ut.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DsD9fJEP-CfnkzNmN.js → ReimbursementDetailPage-jJxS8CSo-DCuxr8dd.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C6ZhcnHL-G41Su_DX.js → ReimbursementPromoPage-CrKB_OxS-Ba_Ei159.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Bpf71REk-CbPDM4Br.js → ReimbursementSetUpPage-COWnzuHW-C1onmBtq.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBzyyzc5-CbZb1Ll3.js → ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-BNjvse6f.js} +1 -1
- package/dist/assets/{ReloadCard-D8vHHU5l-DQ03UepM.js → ReloadCard-Dl1P55OC-PqG6EjQo.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BGUS_EOK-BBwBgVZu.js → ReportTableViewSelector-CPU5qvuC-D9eIuNWz.js} +1 -1
- package/dist/assets/{ReportsPage-7AfDaHtI-TwXiOtk9.js → ReportsPage-FhO_9i3v-BqM0631G.js} +5 -5
- package/dist/assets/{RevenueChart-BwmL3D54-622TMw2i.js → RevenueChart-Bju5kT8K-CLZ32HGB.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-k4QAybX2-RBQhjfai.js → ReviewDetailsPage-CaEI-TGi-Bc73PbER.js} +53 -53
- package/dist/assets/{ReviewOverlay-DueknjXC-B12qd42l.js → ReviewOverlay-l69rpwr7-Dr7rxtnO.js} +1 -1
- package/dist/assets/{RoleWithToolTip-JIflStMs-B6__Ogz6.js → RoleWithToolTip-C4vCwcT8-C6dR3RYf.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKD4n8OH-CsnuQ1cV.js → ScheduleDetailsFixedAssetsPage-BRsO23kh-dDbnlnbP.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-B3c9vFiq-lIq_po0z.js → ScheduleDetailsPage-pKJSKheu-CETheSQx.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-dniltDqh-prEj6nJM.js → ScheduleSequenceTable-CeHDyMVV-BA7tEH_s.js} +1 -1
- package/dist/assets/{ScreenRoutes-DmS9mnp_.js → ScreenRoutes-D50KKBnw.js} +1 -1
- package/dist/assets/{SetUpAccountSection-dQy1ylAS-DxTSmKH2.js → SetUpAccountSection-rRjmVlU7-VDyxWMzU.js} +1 -1
- package/dist/assets/{SignIn-CfgXHpxt-Ux-9VU3Q.js → SignIn-zX3S7vuf-B6rD6GnF.js} +9 -9
- package/dist/assets/{SignInScreen-9QoqsnNl.js → SignInScreen-BiRGIzoF.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D7buHVht-5VhObY49.js → SpendManagementListViewPage-B452IhbL-TWCl13gF.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DdFSZjQ0-DRMhBpB_.js → SpendManagementPerTabPage-BDYtqf0E-ik6oQrCv.js} +1 -1
- package/dist/assets/{SpendManagementSection-CKaS7I-j-I0086kUa.js → SpendManagementSection-BBotB3Xj-DXZ-WUxC.js} +1 -1
- package/dist/assets/{StatementItem-D6RxD4P2-DV_o8MKk.js → StatementItem-hqxspUme-BUYqqJPu.js} +2 -2
- package/dist/assets/StatementsPage-CL35o_9R-TfMK-pd1.js +58 -0
- package/dist/assets/{StatusSwitcher-B0FtlfFf-D4mXIaDE.js → StatusSwitcher-LSy5NlOs-Cp5AKxg-.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DmV2fMPv-DDcdxW1V.js → SubTabSwitcher-BB80NFhP-2jy_qhgj.js} +1 -1
- package/dist/assets/SummaryCard-wJqTtNFt-BsTr0JdI.js +1 -0
- package/dist/assets/{TaskManagementPage-DFzE-ZKA-BpjxUvFO.js → TaskManagementPage-CnB395ci-B2Pevaa4.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DTNA8U_P-vCMNkMQY.js → TimeRangeSwitcher-B1jJf76U-DtYpu1mK.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-BxrcpeVc-B6217ekz.js → TimeframeSwitcher-CTyaOUPX-CUY8xGFr.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Bey7Ur6y-C7DSjGao.js → TimeframeSwitcherWithToggle-D48PqfUX-BOxnTPru.js} +4 -4
- package/dist/assets/{TopExCard-DusKBxd3-BASMRY9t.js → TopExCard-D-0SNihe-ZpE9qsPN.js} +1 -1
- package/dist/assets/{TopExDetailPage-CGmklvDK-DLx-qUkZ.js → TopExDetailPage-2Wo3VpBY-DOpuhpkX.js} +5 -5
- package/dist/assets/{TransactionActivityLogPage-JYq6KI76-CL71JDwh.js → TransactionActivityLogPage-Bh3D2NmZ-DXQUHRmX.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BXt0iZ7l-BNiwNsQy.js → TransactionDetailPage-NZEjiM1T-BGAbWz8k.js} +1 -1
- package/dist/assets/{TransactionList-DP661oJz-BFg5qxvf.js → TransactionList-DUgCrZWV-BsOtXGXL.js} +7 -7
- package/dist/assets/{TransactionListBig-WJlzcWYP-CCdcKryl.js → TransactionListBig-BXR8xSqt-DS-QLlyN.js} +1 -1
- package/dist/assets/{TransactionListPage-D0-fRME1-5tnjhioB.js → TransactionListPage-BhY1YX8v-D8gtIhpi.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-jvafc4cV-CXkzsZol.js → TransactionVendorDetailPage-D0ZIWPbx-BQMZxgAV.js} +1 -1
- package/dist/assets/{TransferDrawerPage-Djud_Goy-BvhVsqjd.js → TransferDrawerPage-BP4KhD5c-DNhK3jLa.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-BxuNNp2Z-Bg2AnpcA.js → TreasuryOverviewPage-CrYY5MJP-CSAwDWYp.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-CYRA-PZW-Dwp-Kcgx.js → TreasuryPromoPage-DZ4Kyqzq-C0Hayxbd.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BDD7oQaj-5XBglvwW.js → TreasuryStatementsPage-BaId882i-TGXLFLOt.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BdEhgdSA-Bgh6AcWi.js → TreasuryTaxLetterPage-BD36dset-CgUwGPhz.js} +1 -1
- package/dist/assets/{TrendChart-CMXEv68i-DC000tUk.js → TrendChart-CS2cE4wE-BAjN56AW.js} +2 -2
- package/dist/assets/{TrendWithTransactions-zXEGbsVb-DgsT5KlM.js → TrendWithTransactions-BNti0lYr-CupF-ouh.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-BPDK7owI-DX8Fbg2v.js → UncategorizedAccountsMappingPage-BsRepV5l-CqKwtcl-.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-D_F0oMUu-kwCn2LZu.js → UnitIntegrationPage-DqzH4Opa-DVf3e9Kc.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DFQFVIWx-DCm6gjHR.js → UploadAdditionalDocumentOverlay-BIzKt99W-DhZCGDG3.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DsUXjTAV-B3GXIcPW.js → Vendor2FAPopup-BzQXTs0l-BcKh-GwF.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-D1DvwT9e-H_zR5eA1.js +1 -0
- package/dist/assets/{VendorDetailPage-v53y8sON-BoOuCnR4.js → VendorDetailPage-C9YSL-3_-DZGykXKE.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CqnTEv1M-BPuNMFYE.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Dor-pZOp-r3SNn4rM.js → VendorFiling1099EditablePage-CmnR7Dwc-DgLszr9z.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-Cn7WNLEm-EZFrIVYn.js → VendorFirstReviewPage-CAjuo6H2-DZOfU9yk.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-dNFkO-SJ-Bgkn6ewA.js → VendorInternationalWireDetailsPage-Ca1voldE-HFASmH_V.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-xxPWVLYY.js +1 -0
- package/dist/assets/{VendorsAccountsSection-RJt3aILM-DJgMK8t5.js → VendorsAccountsSection-BY-jWDwa-DAUUORK8.js} +1 -1
- package/dist/assets/{VerifyDevice-mDoeg6Dk-RhtaLyWM.js → VerifyDevice-DSN3CxFh-Bi-kGmEN.js} +1 -1
- package/dist/assets/{VideoPlayer-BcrYqHHj-DfgUgeFg.js → VideoPlayer-BzBvO4D1-DXw1tjxz.js} +2 -2
- package/dist/assets/{VideoPopup-DdpEDBAh-C7IpQ23i.js → VideoPopup-BB6qYshg-Jl0GqeqK.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-BcYmTO5U-CyrcjeVv.js → WarningsDrawerPage-B4NIhdau-CF-G0BuB.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DVD5D6lb-utVeckgq.js → ZeniAccountDetailPage-CbMnZZXn-CK0OqnqL.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BwMBqn8d-Ctj-VdUr.js → ZeniAccountListViewPage-DuuiC_LT-D_lNPUTn.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Cgnw6bfi-DDuNBemh.js → ZeniAccountNavBarPieces-CLNviNEx-Ct9cJGJf.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-huShnIqL-DVajoJsH.js → ZeniAccountPromoPage-Bce5rHc6-vVu4g89P.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DN9UOt3e-Bmfndrcm.js → ZeniAccountSetupPage-Cwr7kLE1-CoBt9y0X.js} +1 -1
- package/dist/assets/{ZeniCopyright-BgPtS8Cn-Dz6vwF5E.js → ZeniCopyright-CPV8cCJj-JmJFcE0S.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BUw419PL-Drg5KxV4.js → ZeniTransferAmountSlider-CSJnweYQ-CLfwGJf8.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-BY1g6LWR.js → add-to-wallet-DgdBD8_G-Bh5GmIs8.js} +1 -1
- package/dist/assets/{analytics-deCUYv6O.js → analytics-C7qRceeD.js} +1 -1
- package/dist/assets/{analyticsHelper-BuvUCPRb-Dhr-3cLH.js → analyticsHelper-CeIe3crh-ruFTPZIn.js} +1 -1
- package/dist/assets/{analyticsHelper-B0HBcUOS.js → analyticsHelper-DdyBOS3c.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-l8vOaMtF.js → arrow-south-east-round-PEovUgvH-DKJtOEDh.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CPaY5hQ_.js → auto-transfer-rule-mbafm5D3-BtLYBoTe.js} +1 -1
- package/dist/assets/{chartTypes-CmkcIJwp-Dw0BFF7X.js → chartTypes-Cpjk7Uyr-BFVm6fL4.js} +1 -1
- package/dist/assets/{commonDimensions-4sQbZHS3-BWjtQwRH.js → commonDimensions-BiY7_JPE-DvdrP9mk.js} +1 -1
- package/dist/assets/{commonTypes-xwvnsO_k-AWE0IUQl.js → commonTypes-B1ylXa_P-CHogy7bq.js} +1 -1
- package/dist/assets/{constants-DKA52eYI.js → constants-BSSpHQLd.js} +1 -1
- package/dist/assets/{core-BfdQ3W3i.js → core-BdfL-uia.js} +1 -1
- package/dist/assets/{dash.all.min-BatiK8tF.js → dash.all.min-BHbNWZhu.js} +1 -1
- package/dist/assets/{detailCommon-B2fQpJgd-DTs7y59U.js → detailCommon-C7usWt5l-CDexfvl6.js} +2 -2
- package/dist/assets/{downloadPdf-OR-QEskO-C1DvIKXY.js → downloadPdf-DRVFJQsk-Cc-9O8x2.js} +1 -1
- package/dist/assets/{empty-Ckopdbqj.js → empty-B_wp4jbR.js} +1 -1
- package/dist/assets/{empty-3tUyFVJa.js → empty-BfoY8avI.js} +1 -1
- package/dist/assets/{epic-bwVpC0z3.js → epic-BcpbmT-B.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DtyIzDYF.js → gift-box-Cmt9OgIZ-CTA3oEEm.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-D56cz6Rd.js → graphic-no-data-l-DU4J8fDt-B-BNuWuf.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C7ptzcGQ.js → graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Cb_Iq8zA.js → handshake-BPg58FML-BspGwKvx.js} +1 -1
- package/dist/assets/{helper-nrbLfb1z-DIeRJT9t.js → helper-Bwr_8pRi-BezSaeYe.js} +1 -1
- package/dist/assets/{index-CKjPgmYK.js → index-2U9XpSIT.js} +1 -1
- package/dist/assets/{index-DTsIi-EB.js → index-97wdo8qZ.js} +1 -1
- package/dist/assets/{index-D3yjGJrn.js → index-BE47hrTe.js} +1 -1
- package/dist/assets/{index-V6jIIx9c.js → index-BPZ0_UEx.js} +7 -7
- package/dist/assets/{index-Cvbl-MGq.js → index-Blb3rESX.js} +1 -1
- package/dist/assets/{index-Q_V1WjIh.js → index-CLP97b5b.js} +1 -1
- package/dist/assets/{index-Cok412UJ.js → index-DQGwrG6i.js} +1 -1
- package/dist/assets/{lexical-C3B1wTQQ.js → lexical-CNiclLj0.js} +1 -1
- package/dist/assets/{liveblocks-BojMpfZr.js → liveblocks-Lf8LVeH9.js} +1 -1
- package/dist/assets/{lottie-C8ug7xYl.js → lottie-BAIk2ri4.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BbnpqVZY.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DViahlE6-CHFSmBY0.js → mapSectionWithAcOnlyToTreeNode-COWbEMKO-BV9EavoR.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BUQp66A_.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--BLW1ZcCy.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-BBnKHsqs.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-CnRCpe-k.js → mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-CganeL6g.js} +1 -1
- package/dist/assets/{mui-CcAbIvqz.js → mui-Dg-yyLd1.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Dtc_Xfll.js → page-detail-CWX5S47F-C9V7NZCx.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-D8VpgGue.js → panelSelectedMixin-Cddsb26L-BcWH15GY.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BuCOxVnn.js → radio-default-CiSgisfh-7Dm34YkL.js} +1 -1
- package/dist/assets/{react-CjZneeZu.js → react-BYCJSJzc.js} +2 -2
- package/dist/assets/{react-CXUEpDgH.js → react-CK1-HLiI.js} +1 -1
- package/dist/assets/{react-BqRcBBdN.js → react-CLIsPthr.js} +1 -1
- package/dist/assets/{react-1GNwkcEv.js → react-CXimFM-A.js} +1 -1
- package/dist/assets/{react-CfJa26Ws.js → react-CmD2oDdV.js} +1 -1
- package/dist/assets/{react-BiIWcEaQ.js → react-RbEMA7cG.js} +1 -1
- package/dist/assets/{react-DAmUDf_n.js → react-XQWanSnz.js} +1 -1
- package/dist/assets/{react-BbDJbYi6.js → react-afxvtM8P.js} +1 -1
- package/dist/assets/{recharts-CH4lD6YZ.js → recharts-DVyIhUUu.js} +1 -1
- package/dist/assets/{sentry-C9gjpXHu.js → sentry-nVlxguQq.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BYQt2gyQ.js → shield-DOlUxcFf-DoCKBSgZ.js} +1 -1
- package/dist/assets/toCOABalancesWithID-BOdn6oVS-6ioKjlBn.js +1 -0
- package/dist/assets/{toChartData-CWuGepY4-BvWY1wy9.js → toChartData--znXzhow-CzN3PXN2.js} +1 -1
- package/dist/assets/{uploadAttachment-Drk1oIZw-BPDTalPC.js → uploadAttachment-B3eC-lyz-B0nHI4xk.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-BQWfyg0r.js → uploadReceipts-Dge0cNF1-dwFMCGnO.js} +1 -1
- package/dist/assets/{url-GoO98ssj.js → url-3XfBQAPr.js} +1 -1
- package/dist/assets/{url-EuhNbk_E.js → url-A_ZszWlu.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Dpmkib6M.js → useLongPress-GCK2COYQ-BmH9C_mp.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-DebSG3AQ.js → usp-line-BBd1wKwW-iPZVfl3G.js} +1 -1
- package/dist/assets/{utils-1UbrxmNv.js → utils-Bn_xI0qf.js} +1 -1
- package/dist/assets/{zeni-epic-state-yTwK6eAd.js → zeni-epic-state-DwXlACp-.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-CQNGh3_A-8CGo7zl4.js +0 -18
- package/dist/assets/BoxItem-CggSwHNx-XFR7cXyR.js +0 -53
- package/dist/assets/CustomerOnboardingContainerPage-s1UpiNNV-I1MjTXGI.js +0 -1
- package/dist/assets/EntityDetailPage-DfRYXWR2-B1hhfTXR.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-DqxFWlcN-B9JCI0X6.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DjVTnPdg-DYWtS9ON.js +0 -1
- package/dist/assets/MailingDetailsSection-NHD_RPvO-C9yYvlKS.js +0 -21
- package/dist/assets/StatementsPage-BVDChKXj-BUU1cgO_.js +0 -58
- package/dist/assets/SummaryCard-DVks1oex-M8-I8cNs.js +0 -1
- package/dist/assets/VendorACHDetailsPage-D_yVSMEu-CuiHjR4v.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-zhf4AerL-BjrgFDGE.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-B6Tuhksp-BF5mvkEQ.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-saf-eikX-_6D9Xq4-.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-C1XdqapG-Z0VmGG-z.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BgzCaFB8-gUJ1JSVo.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cxi3Mx1s-BerM6DYj.js +0 -1
- package/dist/assets/toCOABalancesWithID-C0EdFFOl-Wbx2xnxl.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS as Ba,u as x,F as Ae,cs as lr,y as ae,d as wt,bD as cr,i9 as dr,aP as Ze,bU as Ce,dk as eo,bw as ur,ga as hr,ab as B,i7 as pr,am as Ve,h1 as mr,gV as Fa,bx as gr,bQ as Vt,b8 as za,aj as At,bL as Na,p as tt,km as xr,an as bt,a9 as an,bP as qo,ad as sn,kn as fr,ko as yr,kp as Cr,kq as vn,kr as Va,ks as Ha,kt as wr,ku as bi,kv as br,go as Wa,dn as Ua,kw as vr,kx as Sr,ky as jr,kz as kr,kA as Ir,kB as $r,kC as Lr,kD as Tr,kE as Ar,kF as Er,kG as qa,kH as Rr,kI as Dr,kJ as Or,kK as Mr,gD as Ko,ce as Tn,b4 as to,cv as no,m as Jo,I as Ka,r as Ja,cH as An,dW as Go,x as _r,gn as Pr,bp as Br,cl as Fr,c3 as zr,eI as En,c0 as Yo,ar as Nr,c as Vr,fE as Hr,aF as Ga,kL as Wr,aW as Zo,aR as vi,gX as Ya,kM as Ur,kN as qr,kO as Kr,bG as Za,aU as Jr,dS as Ht,gL as zt,hZ as ro,eF as Jn,cL as Qo,az as Gr,eG as Qa,dq as Yr,gy as Zr,fT as Qr,h4 as Xr,iV as el,co as Xo,cB as oo,cE as io,iC as it,b as Ft,hM as tl,gE as Gn,jk as Si,dl as Xa,d3 as In,kP as nl,a_ as ol,du as es,i as $n,it as ts,iD as Po,kQ as mn,eh as ns,ej as os,iY as Bo,iZ as is,kR as il,d1 as ao,iu as as,fs as ss,kS as al,ew as lo,ij as sl,aL as Fo,kT as rl,cQ as ll,aZ as rs,iK as cl,dU as dl,ap as $t,kU as ul,kV as hl,b2 as co,es as pl,dR as ml,kW as gl,fN as xl,kX as fl,dQ as yl,hB as Cl,a8 as wl,et as bl,eu as vl,ev as Sl,ey as ji,ez as ki,eA as jl,kY as kl,b0 as Il,eK as $l,eL as Ll,eM as Tl}from"./index-
|
|
1
|
+
import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS as Ba,u as x,F as Ae,cs as lr,y as ae,d as wt,bD as cr,i9 as dr,aP as Ze,bU as Ce,dk as eo,bw as ur,ga as hr,ab as B,i7 as pr,am as Ve,h1 as mr,gV as Fa,bx as gr,bQ as Vt,b8 as za,aj as At,bL as Na,p as tt,km as xr,an as bt,a9 as an,bP as qo,ad as sn,kn as fr,ko as yr,kp as Cr,kq as vn,kr as Va,ks as Ha,kt as wr,ku as bi,kv as br,go as Wa,dn as Ua,kw as vr,kx as Sr,ky as jr,kz as kr,kA as Ir,kB as $r,kC as Lr,kD as Tr,kE as Ar,kF as Er,kG as qa,kH as Rr,kI as Dr,kJ as Or,kK as Mr,gD as Ko,ce as Tn,b4 as to,cv as no,m as Jo,I as Ka,r as Ja,cH as An,dW as Go,x as _r,gn as Pr,bp as Br,cl as Fr,c3 as zr,eI as En,c0 as Yo,ar as Nr,c as Vr,fE as Hr,aF as Ga,kL as Wr,aW as Zo,aR as vi,gX as Ya,kM as Ur,kN as qr,kO as Kr,bG as Za,aU as Jr,dS as Ht,gL as zt,hZ as ro,eF as Jn,cL as Qo,az as Gr,eG as Qa,dq as Yr,gy as Zr,fT as Qr,h4 as Xr,iV as el,co as Xo,cB as oo,cE as io,iC as it,b as Ft,hM as tl,gE as Gn,jk as Si,dl as Xa,d3 as In,kP as nl,a_ as ol,du as es,i as $n,it as ts,iD as Po,kQ as mn,eh as ns,ej as os,iY as Bo,iZ as is,kR as il,d1 as ao,iu as as,fs as ss,kS as al,ew as lo,ij as sl,aL as Fo,kT as rl,cQ as ll,aZ as rs,iK as cl,dU as dl,ap as $t,kU as ul,kV as hl,b2 as co,es as pl,dR as ml,kW as gl,fN as xl,kX as fl,dQ as yl,hB as Cl,a8 as wl,et as bl,eu as vl,ev as Sl,ey as ji,ez as ki,eA as jl,kY as kl,b0 as Il,eK as $l,eL as Ll,eM as Tl}from"./index-BPZ0_UEx.js";import{a as i,P as Al}from"./sentry-nVlxguQq.js";import{n as s,c as Se,k as ei}from"./mui-Dg-yyLd1.js";import{bh as uo,Gu as Ii,Gv as Ln,Gw as El,Gx as Rl,cx as Dl,bL as zo,cy as Ol,ET as $i,cz as Ml,cA as _l,la as Sn,bE as Qt,Gy as Li,c4 as ls,Gz as Pl,bY as cs,bo as Xt,GA as Bl,GB as ds,GC as us,GD as hs,GE as ps,GF as ms,GG as ti,kW as Fl}from"./zeni-epic-state-DwXlACp-.js";import{t as ni}from"./panelSelectedMixin-Cddsb26L-BcWH15GY.js";import{r as gs,I as xs,n as gn,R as Ct}from"./CollapsableReportTable-Ck29YUyD-C4PUByzW.js";import{D as ho}from"./AccountRow-B5Gqqqtn-B2ab5e7e.js";import{o as fs}from"./mapTimeframeBalancesToTreeNode-DWah9nq--BLW1ZcCy.js";import{d as Ti}from"./mapLoadingInProgressToTreeNode-DkvfU-AQ-BbnpqVZY.js";import{h as zl}from"./VendorsAccountsSection-BY-jWDwa-DAUUORK8.js";import{u as Nl,c as Ai,d as Vl,m as Hl}from"./uploadAttachment-B3eC-lyz-B0nHI4xk.js";import{r as Wl}from"./core-BdfL-uia.js";import"./liveblocks-Lf8LVeH9.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d5120324-12cc-46bf-9ca0-7b1165a0a3ab",e._sentryDebugIdIdentifier="sentry-dbid-d5120324-12cc-46bf-9ca0-7b1165a0a3ab")}catch{}})();const{common:{navBar:{back:Ul},texts:{refresh:ql,close:Kl,copy:Jl,copied:Gl,open:Yl}},expenseAutomation:{common:{numbers:{maximumCount:Zl}}}}=Ae.getLocalizedStrings(),Ql=s(Zr)`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: ${o.sp4};
|
|
4
4
|
height: ${o.sp4};
|
|
@@ -575,7 +575,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
575
575
|
height: 12px;
|
|
576
576
|
cursor: pointer;
|
|
577
577
|
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,ht="accountReconReviewTableSection",{dateFormat:mu,expenseAutomation:gu,common:yt}=Ae.getLocalizedStrings(),{visual:Ss}=mu,{accountRecon:be}=gu,js=e=>[{label:be.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],ks=e=>[{label:be.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Hi=e=>`${ht}_${e}_form`,Re=(e,n)=>`${ht}.${e}.${n}`,xu=e=>{const{sortKey:n,sortOrder:c,accountReconEntity:r,entitySearchAutoCompleteActions:h,allAccountList:p,classList:a,localData:d,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:g,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,refreshStatus:v,updateLocalData:k,onColumnSortConfigChanged:y,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S,bankAccounts:T,creditCards:D}=e,{transactionsToReview:A,account:{accountType:O}}=r,b=i.useRef(null),[$,M]=i.useState(null),N=z=>{const V=A[z],de=ds(V),_=us(V),H=hs(V,O??"bank"),ie=ps(V,O??"bank"),he=ms(V),xe=ti(V),ge=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===$?_||H||ie||he||xe?275+(ge?25:0):de?185+V.recommendedAction.recommendedTransactions.length*40+(ge?25:0):146:72},G=i.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:c}}),[y,n,c]);if(i.useEffect(()=>{M(A[0]?.transactionId??null),b.current?.resetAfterIndex(0)},[n,c]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[$]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[A.length]),i.useEffect(()=>{v.fetchState==="Completed"&&b.current?.resetAfterIndex(0)},[v]),A.length===0){const z=Je("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(Bu,{children:t.jsx(Tt,{tab:"reconciliation",title:z?.title??yt.strings.empty,subTitle:z?.subTitle??yt.strings.empty})})}return t.jsx(ju,{children:t.jsx(Is.Provider,{value:G,children:t.jsx(to,{children:({height:z,width:V})=>t.jsx(no,{width:V,height:z,innerElementType:$s,ref:b,itemCount:A.length,itemSize:N,itemKey:de=>A[de].transactionId,overscanCount:el,itemData:{transactionsList:A,expandedRowId:$,allAccountList:p,classList:a,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,localData:d,entitySearchAutoCompleteData:g,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,bankAccounts:T,creditCards:D,accountType:O,updateLocalData:k,setExpandedRowId:M,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S},initialScrollOffset:0,children:fu})})})})},Is=i.createContext(void 0),$s=i.forwardRef((e,n)=>{const{children:c,style:r,...h}=e,p=i.useContext(Is);return t.jsxs(ku,{ref:n,style:{...r,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${o.sp0} ${o.sp8}`},...h,children:[p!=null&&t.jsx(su,{onColumnSortConfigChanged:p.onColumnSortConfigChanged,sortConfig:p.sortConfig}),t.jsx(Iu,{children:c})]})});$s.displayName="Account recon review table inner element type";const fu=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{transactionsList:h,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,allAccountList:l,classList:m,localData:u,updateLocalData:g,accountListNestedAccountHierarchy:f,classListNestedAccountHierarchy:C,entitySearchAutoCompleteData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,reviewTabSelectedVendorByTransactionId:S,bankAccounts:T,creditCards:D,accountType:A}=c,O=h[e],b=r!=null&&r===O.transactionId;return t.jsx(Su,{isPanelSelected:b,style:{...n,width:"100%"},children:t.jsx(yu,{transaction:O,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,accountListNestedAccountHierarchy:f,allAccountList:l,classList:m,localData:u,updateLocalData:g,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:C,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,selectedVendor:S[O.transactionId],bankAccounts:T,creditCards:D,accountType:A})})},yu=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,allAccountList:h,classList:p,classListNestedAccountHierarchy:a,localData:d,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:u,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,setExpandedRowId:v,updateLocalData:k,onSaveReconciliation:y,onSaveReconciliationReview:R,onReconMatchedTransactionClick:I})=>{const S=n===e.transactionId,T=Te(),D=Ht(),A=d[e.transactionId],O=e.recommendedAction.action==="record_bill_payment",b=e.recommendedAction.action==="record_expense",$=ti(e),M=h.find(z=>z.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),N=z=>z.recommendedAction.recommendedTransactions.length>0&&z.recommendedAction.recommendedTransactions[0].merchantName!=null?z.recommendedAction.recommendedTransactions[0].merchantName:yt.strings.hyphen,G=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(wu,{className:"recon-row-card",isQuickViewMode:D,isExpanded:S,children:[t.jsxs(bu,{isExpanded:S,onClick:()=>v(e.transactionId),"data-testid":B("account-reconciliation-review-row",e.transactionId),children:[D?null:t.jsx(un,{windowSize:T,responsiveWidth:Lt[0].width,children:t.jsx(dn,{children:e.transactionDate.format(Ss.MMMDCommaYYYYformat)})}),t.jsx(un,{windowSize:T,responsiveWidth:D?Vo[0].width:Lt[1].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:N(e)})})}),D?null:t.jsxs(t.Fragment,{children:[t.jsx(un,{windowSize:T,responsiveWidth:Lt[2].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(un,{windowSize:T,responsiveWidth:Lt[3].width,children:t.jsx(dn,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(un,{windowSize:T,responsiveWidth:Lt[4].width,children:[t.jsx(Ue,{controller:O,children:t.jsx(Fu,{children:t.jsx(zu,{children:be.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Ue,{controller:!O,children:t.jsx(dn,{children:M!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:M.accountName})]}):yt.strings.hyphen})})]})]}),t.jsx(un,{windowSize:T,isLastColumn:!0,responsiveWidth:D?Vo[1].width:Lt[5].width,children:t.jsx(dn,{children:rs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Ue,{controller:S&&A!=null,children:[t.jsx(Cu,{onSaveReconciliation:y,onSaveReconciliationReview:R,updateLocalData:k,saveFetchById:u,excludeFetchById:m,localData:A,classListNestedAccountHierarchy:a,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,entitySearchAutoCompleteData:l,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,onReconMatchedTransactionClick:I}),t.jsx(Ue,{controller:(O||b||$)&&G!=null,children:t.jsx(Vu,{children:t.jsxs(Hu,{children:[w==="credit_card"?be.review.creditCardDetail:be.review.bankDetail,yt.strings.colon," ",G]})})})]})]})},Cu=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:c,allAccountList:r,classList:h,classListNestedAccountHierarchy:p,localData:a,entitySearchAutoCompleteData:d,excludeFetchById:l,saveFetchById:m,selectedVendor:u,bankAccounts:g,creditCards:f,accountType:C,updateLocalData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y})=>{const R=wt(),I=Ht(),[S,T]=i.useState(!a.vendor?.id),[D,A]=i.useState(!a.customer?.id),[O,b]=i.useState(a.categoryId==null),[$,M]=i.useState(a.classId==null),[N,G]=i.useState(a.bankAccountId==null),[z,V]=i.useState(a.creditCardId==null),[de,_]=i.useState(!a.memo),H=ds(e),ie=us(e),he=ps(e,C??"bank"),xe=hs(e,C??"bank"),ge=ms(e),q=ti(e),K=i.useMemo(()=>{if(!ie&&!q)return zt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return zt(n,u?.recommendations);const j=r.find(je=>je.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return zt(n,[{account:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,r,n]),Y=i.useMemo(()=>{if(!ie&&!q)return Jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Jn(p,u?.recommendations);const j=h.find(je=>je.classId===e.recommendedAction.recommendedTransactions[0]?.classId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return Jn(p,[{class:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,h,p]),P=an({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d]),values:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d])}),E=async(j,se)=>{j.includes("memo")||w(Ui(se,e,d,r),e.transactionId,j.includes("vendor"))};i.useEffect(()=>{const j=P.watch((se,{name:je})=>{je!=null&&se!=null&&An(()=>E(je,se))});return()=>{j.unsubscribe()}});const Z=i.useCallback(j=>{if(!I){if(ie||ge||q){if((ie||q)&&a.vendor==null){T(!1),P.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(ge&&a.customer==null){A(!1),P.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(a.categoryId==null){b(!1),P.setError(Re(e.transactionId,"category"),{type:"required"});return}}w(Ui(j,e,d,r),e.transactionId,!1),k(e.transactionId)}},[I,ie,q,ge,w,e,d,r,k,a.categoryId,a.vendor,a.customer]),F=P.watch(Re(e.transactionId,"vendor")),X=P.watch(Re(e.transactionId,"customer")),J=i.useRef(),W=i.useMemo(()=>ie||q?"vendor":ge?"customer":null,[ie,q,ge]),U=(j,se)=>{W!=null&&c.onAutoCompleteInputChange?.(j,W),J.current=se};i.useEffect(()=>{d.entityAutoCompleteView.fetchState==="Completed"&&((ie||q)&&J.current?.(ts(d.entityAutoCompleteView)),ge&&J.current?.(hl(d.entityAutoCompleteView)))},[d.entityAutoCompleteView,ge,ie,q]);const L=j=>h.filter(se=>se.classId===j)[0]?.accountingClassNumber??void 0,te=j=>r.filter(se=>se.qboId===j)[0]?.qboId,ee=i.useMemo(()=>{if(C==="bank")switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[C,e.recommendedAction.action,e.transactionDirection]),Q=()=>{I||b(!1)},pe=()=>{I||G(!1)},Ie=()=>{I||V(!1)};return i.useEffect(()=>{O===!1&&a.categoryId==null&&P.setFocus(Re(e.transactionId,"category"))},[O]),i.useEffect(()=>{$===!1&&a.classId==null&&P.setFocus(Re(e.transactionId,"class"))},[$]),i.useEffect(()=>{S===!1&&a.vendor==null&&P.setFocus(Re(e.transactionId,"vendor"))},[S]),i.useEffect(()=>{D===!1&&a.customer==null&&P.setFocus(Re(e.transactionId,"customer"))},[D]),i.useEffect(()=>{N===!1&&a.bankAccountId==null&&P.setFocus(Re(e.transactionId,"bankAccount"))},[N]),i.useEffect(()=>{z===!1&&a.creditCardId==null&&P.setFocus(Re(e.transactionId,"creditCard"))},[z]),t.jsx(sn,{...P,children:t.jsx("form",{onSubmit:P.handleSubmit(Z),id:Hi(e.transactionId),children:t.jsxs(vu,{children:[t.jsxs($u,{children:[t.jsxs(Au,{children:[t.jsxs(Eu,{children:[t.jsx(Ls,{}),t.jsx(co,{label:{label:H?be.review.formLabels.match:be.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:H?"match":"categorize",value:H?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Ue,{controller:!H,children:t.jsxs(t.Fragment,{children:[t.jsx(qi,{}),ee.map(j=>t.jsx(co,{label:{label:be.review.formLabels[j]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:j,value:j,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},j))]})})]}),t.jsxs(Tu,{children:[t.jsx($n,{variant:"secondary",size:"small",label:be.review.formLabels.exclude,loading:l[e.transactionId]?.fetchState==="In-Progress","data-testid":B("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{I||v({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx($n,{form:Hi(e.transactionId),"data-testid":B("account-reconciliation-review-save-button",e.transactionId),label:yt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(Ue,{controller:ie||ge||q,children:t.jsxs(mo,{children:[t.jsx(Ue,{controller:ie||q,children:t.jsx($t,{onClickAway:()=>{a.vendor==null&&S===!1&&T(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.vendor}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:S===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&T(!1)},"data-testid":B("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addVendor]}):t.jsx(Po,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:be.review.formLabels.addVendor,valueToId:j=>j,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx(Ue,{controller:ge,children:t.jsx($t,{onClickAway:()=>{a.customer==null&&D===!1&&A(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.customer}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:D===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&A(!1)},"data-testid":B("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCustomer]}):t.jsx(Po,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:be.review.formLabels.addCustomer,valueToId:j=>j,defaultValue:{selectedOption:X?.selectedOption,defaultOptions:X?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx($t,{onClickAway:()=>{a.categoryId==null&&O===!1&&b(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.category}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:O===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Q()},"data-testid":B("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCategory]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:be.review.formLabels.addCategory,valueToId:j=>te(j),defaultValue:{allOptions:K,selectedOption:r.find(j=>j.accountId===a.categoryId)?.qboId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})}),t.jsx($t,{onClickAway:()=>{a.classId==null&&$===!1&&M(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.class}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&M(!1)},"data-testid":B("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addClass]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:be.review.formLabels.addClass,valueToId:j=>L(j),defaultValue:{allOptions:Y,selectedOption:a.classId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})]})}),t.jsx(Ue,{controller:H,children:t.jsxs(Ru,{children:[t.jsxs(Du,{children:[t.jsx("span",{className:"matched-text",children:`${be.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),be.review.matchesFoundFullInfo]}),t.jsx(Mu,{children:e.recommendedAction.recommendedTransactions.map(j=>j.bookTransactionId!=null?t.jsxs(_u,{children:[t.jsx(co,{label:{label:t.jsxs(Ou,{children:[t.jsx(Ve,{children:j.date.format(Ss.MMMDCommaYYYYformat)}),t.jsx(Ve,{children:j.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:j.bookTransactionId,value:j.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(Nu,{"data-testid":B("account-reconciliation-review-matched-transaction-amount",j.bookTransactionId),onClick:()=>{j.bookTransactionId!=null&&y(j.bookTransactionId)},children:[t.jsx(Pu,{children:rs("0,0.00",j.amount.amount,j.amount.currencySymbol)}),t.jsx(qi,{})]})]},j.bookTransactionId):null)})]})}),t.jsx(Ue,{controller:he,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.bankAccountId==null&&N===!1&&G(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:C==="credit_card"?be.review.formLabels.selectAccount:be.review.formLabels.transferTo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&pe()},"data-testid":B("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectAccount]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:be.review.formLabels.selectAccount,defaultValue:{allOptions:js(g),selectedOption:a.bankAccountId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:xe,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.creditCardId==null&&z===!1&&V(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.formLabels.creditCard}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:z===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Ie()},"data-testid":B("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectCard]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:be.review.formLabels.selectCard,defaultValue:{allOptions:ks(f),selectedOption:a.creditCardId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:!H,children:t.jsx(Lu,{children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.header.memo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:de===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&_(!1)},"data-testid":B("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addMemo]}):t.jsx(pl,{name:Re(e.transactionId,"memo"),placeholder:be.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Vn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${o.sp5})`,marginRight:`-${o.sp3}`,marginLeft:`-${o.sp3}`})},Wi=(e,n,c,r,h,p,a,d)=>{const l=r.find(m=>m.accountId===n.categoryId);return{[ht]:{[e.transactionId]:{category:{selectedOption:l?.qboId,allOptions:c},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:js(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:ks(a)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:as(d.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:kl(n?.customer,d.entityAutoCompleteView)}}}}},Ui=(e,n,c,r)=>{const{vendor:h,customer:p}=e[ht][n.transactionId];let a;if(h.selectedOption!=null){const l=h.defaultOptions.find(m=>m.value===h.selectedOption);if(l!=null)a={id:h.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(a={id:m.zeniId,name:m.name})}}let d;if(p.selectedOption!=null){const l=p.defaultOptions.find(m=>m.value===p.selectedOption);if(l!=null)d={id:p.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(d={id:m.zeniId,name:m.name})}}return{categoryId:r.find(l=>l.qboId===e[ht][n.transactionId].category.selectedOption)?.accountId??e[ht][n.transactionId].category.selectedOption,classId:e[ht][n.transactionId].class.selectedOption,memo:e[ht][n.transactionId].memo,matchedTransactionId:e[ht][n.transactionId].matchedTransaction,vendor:a,bankAccountId:e[ht][n.transactionId].bankAccount.selectedOption,creditCardId:e[ht][n.transactionId].creditCard.selectedOption,customer:d}},dn=s(Ve)`
|
|
578
|
+
`,ht="accountReconReviewTableSection",{dateFormat:mu,expenseAutomation:gu,common:yt}=Ae.getLocalizedStrings(),{visual:Ss}=mu,{accountRecon:be}=gu,js=e=>[{label:be.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],ks=e=>[{label:be.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Hi=e=>`${ht}_${e}_form`,Re=(e,n)=>`${ht}.${e}.${n}`,xu=e=>{const{sortKey:n,sortOrder:c,accountReconEntity:r,entitySearchAutoCompleteActions:h,allAccountList:p,classList:a,localData:d,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:g,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,refreshStatus:v,updateLocalData:k,onColumnSortConfigChanged:y,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S,bankAccounts:T,creditCards:D}=e,{transactionsToReview:A,account:{accountType:O}}=r,b=i.useRef(null),[$,M]=i.useState(null),N=z=>{const V=A[z],de=ds(V),_=us(V),H=hs(V,O??"bank"),ie=ps(V,O??"bank"),he=ms(V),xe=ti(V),ge=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===$?_||H||ie||he||xe?275+(ge?25:0):de?185+V.recommendedAction.recommendedTransactions.length*40+(ge?25:0):146:72},G=i.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:c}}),[y,n,c]);if(i.useEffect(()=>{M(A[0]?.transactionId??null),b.current?.resetAfterIndex(0)},[n,c]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[$]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[A.length]),i.useEffect(()=>{v.fetchState==="Completed"&&b.current?.resetAfterIndex(0)},[v]),A.length===0){const z=Je("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(Bu,{children:t.jsx(Tt,{tab:"reconciliation",title:z?.title??yt.strings.empty,subTitle:z?.subTitle??yt.strings.empty})})}return t.jsx(ju,{children:t.jsx(Is.Provider,{value:G,children:t.jsx(to,{children:({height:z,width:V})=>t.jsx(no,{width:V,height:z,innerElementType:$s,ref:b,itemCount:A.length,itemSize:N,itemKey:de=>A[de].transactionId,overscanCount:el,itemData:{transactionsList:A,expandedRowId:$,allAccountList:p,classList:a,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,localData:d,entitySearchAutoCompleteData:g,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,bankAccounts:T,creditCards:D,accountType:O,updateLocalData:k,setExpandedRowId:M,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S},initialScrollOffset:0,children:fu})})})})},Is=i.createContext(void 0),$s=i.forwardRef((e,n)=>{const{children:c,style:r,...h}=e,p=i.useContext(Is);return t.jsxs(ku,{ref:n,style:{...r,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${o.sp0} ${o.sp8}`},...h,children:[p!=null&&t.jsx(su,{onColumnSortConfigChanged:p.onColumnSortConfigChanged,sortConfig:p.sortConfig}),t.jsx(Iu,{children:c})]})});$s.displayName="Account recon review table inner element type";const fu=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{transactionsList:h,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,allAccountList:l,classList:m,localData:u,updateLocalData:g,accountListNestedAccountHierarchy:f,classListNestedAccountHierarchy:C,entitySearchAutoCompleteData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,reviewTabSelectedVendorByTransactionId:S,bankAccounts:T,creditCards:D,accountType:A}=c,O=h[e],b=r!=null&&r===O.transactionId;return t.jsx(Su,{isPanelSelected:b,style:{...n,width:"100%"},children:t.jsx(yu,{transaction:O,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,accountListNestedAccountHierarchy:f,allAccountList:l,classList:m,localData:u,updateLocalData:g,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:C,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,selectedVendor:S[O.transactionId],bankAccounts:T,creditCards:D,accountType:A})})},yu=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,allAccountList:h,classList:p,classListNestedAccountHierarchy:a,localData:d,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:u,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,setExpandedRowId:v,updateLocalData:k,onSaveReconciliation:y,onSaveReconciliationReview:R,onReconMatchedTransactionClick:I})=>{const S=n===e.transactionId,T=Te(),D=Ht(),A=d[e.transactionId],O=e.recommendedAction.action==="record_bill_payment",b=e.recommendedAction.action==="record_expense",$=ti(e),M=h.find(z=>z.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),N=z=>z.recommendedAction.recommendedTransactions.length>0&&z.recommendedAction.recommendedTransactions[0].merchantName!=null?z.recommendedAction.recommendedTransactions[0].merchantName:yt.strings.hyphen,G=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(wu,{className:"recon-row-card",isQuickViewMode:D,isExpanded:S,children:[t.jsxs(bu,{isExpanded:S,onClick:()=>v(e.transactionId),"data-testid":B("account-reconciliation-review-row",e.transactionId),children:[D?null:t.jsx(un,{windowSize:T,responsiveWidth:Lt[0].width,children:t.jsx(dn,{children:e.transactionDate.format(Ss.MMMDCommaYYYYformat)})}),t.jsx(un,{windowSize:T,responsiveWidth:D?Vo[0].width:Lt[1].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:N(e)})})}),D?null:t.jsxs(t.Fragment,{children:[t.jsx(un,{windowSize:T,responsiveWidth:Lt[2].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(un,{windowSize:T,responsiveWidth:Lt[3].width,children:t.jsx(dn,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(un,{windowSize:T,responsiveWidth:Lt[4].width,children:[t.jsx(Ue,{controller:O,children:t.jsx(Fu,{children:t.jsx(zu,{children:be.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Ue,{controller:!O,children:t.jsx(dn,{children:M!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:M.accountName})]}):yt.strings.hyphen})})]})]}),t.jsx(un,{windowSize:T,isLastColumn:!0,responsiveWidth:D?Vo[1].width:Lt[5].width,children:t.jsx(dn,{children:rs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Ue,{controller:S&&A!=null,children:[t.jsx(Cu,{onSaveReconciliation:y,onSaveReconciliationReview:R,updateLocalData:k,saveFetchById:u,excludeFetchById:m,localData:A,classListNestedAccountHierarchy:a,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,entitySearchAutoCompleteData:l,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,onReconMatchedTransactionClick:I}),t.jsx(Ue,{controller:(O||b||$)&&G!=null,children:t.jsx(Vu,{children:t.jsxs(Hu,{children:[w==="credit_card"?be.review.creditCardDetail:be.review.bankDetail,yt.strings.colon," ",G]})})})]})]})},Cu=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:c,allAccountList:r,classList:h,classListNestedAccountHierarchy:p,localData:a,entitySearchAutoCompleteData:d,excludeFetchById:l,saveFetchById:m,selectedVendor:u,bankAccounts:g,creditCards:f,accountType:C,updateLocalData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y})=>{const R=wt(),I=Ht(),[S,T]=i.useState(!a.vendor?.id),[D,A]=i.useState(!a.customer?.id),[O,b]=i.useState(a.categoryId==null),[$,M]=i.useState(a.classId==null),[N,G]=i.useState(a.bankAccountId==null),[z,V]=i.useState(a.creditCardId==null),[de,_]=i.useState(!a.memo),H=ds(e),ie=us(e),he=ps(e,C??"bank"),xe=hs(e,C??"bank"),ge=ms(e),q=ti(e),K=i.useMemo(()=>{if(!ie&&!q)return zt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return zt(n,u?.recommendations);const j=r.find(je=>je.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return zt(n,[{account:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,r,n]),Y=i.useMemo(()=>{if(!ie&&!q)return Jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Jn(p,u?.recommendations);const j=h.find(je=>je.classId===e.recommendedAction.recommendedTransactions[0]?.classId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return Jn(p,[{class:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,h,p]),P=an({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d]),values:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d])}),E=async(j,se)=>{j.includes("memo")||w(Ui(se,e,d,r),e.transactionId,j.includes("vendor"))};i.useEffect(()=>{const j=P.watch((se,{name:je})=>{je!=null&&se!=null&&An(()=>E(je,se))});return()=>{j.unsubscribe()}});const Z=i.useCallback(j=>{if(!I){if(ie||ge||q){if((ie||q)&&a.vendor==null){T(!1),P.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(ge&&a.customer==null){A(!1),P.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(a.categoryId==null){b(!1),P.setError(Re(e.transactionId,"category"),{type:"required"});return}}w(Ui(j,e,d,r),e.transactionId,!1),k(e.transactionId)}},[I,ie,q,ge,w,e,d,r,k,a.categoryId,a.vendor,a.customer]),F=P.watch(Re(e.transactionId,"vendor")),X=P.watch(Re(e.transactionId,"customer")),J=i.useRef(),W=i.useMemo(()=>ie||q?"vendor":ge?"customer":null,[ie,q,ge]),U=(j,se)=>{W!=null&&c.onAutoCompleteInputChange?.(j,W),J.current=se};i.useEffect(()=>{d.entityAutoCompleteView.fetchState==="Completed"&&((ie||q)&&J.current?.(ts(d.entityAutoCompleteView)),ge&&J.current?.(hl(d.entityAutoCompleteView)))},[d.entityAutoCompleteView,ge,ie,q]);const L=j=>h.filter(se=>se.classId===j)[0]?.accountingClassNumber??void 0,ne=j=>r.filter(se=>se.qboId===j)[0]?.qboId,ee=i.useMemo(()=>{if(C==="bank")switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[C,e.recommendedAction.action,e.transactionDirection]),Q=()=>{I||b(!1)},pe=()=>{I||G(!1)},Ie=()=>{I||V(!1)};return i.useEffect(()=>{O===!1&&a.categoryId==null&&P.setFocus(Re(e.transactionId,"category"))},[O]),i.useEffect(()=>{$===!1&&a.classId==null&&P.setFocus(Re(e.transactionId,"class"))},[$]),i.useEffect(()=>{S===!1&&a.vendor==null&&P.setFocus(Re(e.transactionId,"vendor"))},[S]),i.useEffect(()=>{D===!1&&a.customer==null&&P.setFocus(Re(e.transactionId,"customer"))},[D]),i.useEffect(()=>{N===!1&&a.bankAccountId==null&&P.setFocus(Re(e.transactionId,"bankAccount"))},[N]),i.useEffect(()=>{z===!1&&a.creditCardId==null&&P.setFocus(Re(e.transactionId,"creditCard"))},[z]),t.jsx(sn,{...P,children:t.jsx("form",{onSubmit:P.handleSubmit(Z),id:Hi(e.transactionId),children:t.jsxs(vu,{children:[t.jsxs($u,{children:[t.jsxs(Au,{children:[t.jsxs(Eu,{children:[t.jsx(Ls,{}),t.jsx(co,{label:{label:H?be.review.formLabels.match:be.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:H?"match":"categorize",value:H?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Ue,{controller:!H,children:t.jsxs(t.Fragment,{children:[t.jsx(qi,{}),ee.map(j=>t.jsx(co,{label:{label:be.review.formLabels[j]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:j,value:j,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},j))]})})]}),t.jsxs(Tu,{children:[t.jsx($n,{variant:"secondary",size:"small",label:be.review.formLabels.exclude,loading:l[e.transactionId]?.fetchState==="In-Progress","data-testid":B("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{I||v({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx($n,{form:Hi(e.transactionId),"data-testid":B("account-reconciliation-review-save-button",e.transactionId),label:yt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(Ue,{controller:ie||ge||q,children:t.jsxs(mo,{children:[t.jsx(Ue,{controller:ie||q,children:t.jsx($t,{onClickAway:()=>{a.vendor==null&&S===!1&&T(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.vendor}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:S===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&T(!1)},"data-testid":B("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addVendor]}):t.jsx(Po,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:be.review.formLabels.addVendor,valueToId:j=>j,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx(Ue,{controller:ge,children:t.jsx($t,{onClickAway:()=>{a.customer==null&&D===!1&&A(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.customer}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:D===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&A(!1)},"data-testid":B("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCustomer]}):t.jsx(Po,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:be.review.formLabels.addCustomer,valueToId:j=>j,defaultValue:{selectedOption:X?.selectedOption,defaultOptions:X?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx($t,{onClickAway:()=>{a.categoryId==null&&O===!1&&b(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.category}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:O===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Q()},"data-testid":B("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCategory]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:be.review.formLabels.addCategory,valueToId:j=>ne(j),defaultValue:{allOptions:K,selectedOption:r.find(j=>j.accountId===a.categoryId)?.qboId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})}),t.jsx($t,{onClickAway:()=>{a.classId==null&&$===!1&&M(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.class}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&M(!1)},"data-testid":B("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addClass]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:be.review.formLabels.addClass,valueToId:j=>L(j),defaultValue:{allOptions:Y,selectedOption:a.classId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})]})}),t.jsx(Ue,{controller:H,children:t.jsxs(Ru,{children:[t.jsxs(Du,{children:[t.jsx("span",{className:"matched-text",children:`${be.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),be.review.matchesFoundFullInfo]}),t.jsx(Mu,{children:e.recommendedAction.recommendedTransactions.map(j=>j.bookTransactionId!=null?t.jsxs(_u,{children:[t.jsx(co,{label:{label:t.jsxs(Ou,{children:[t.jsx(Ve,{children:j.date.format(Ss.MMMDCommaYYYYformat)}),t.jsx(Ve,{children:j.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:j.bookTransactionId,value:j.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(Nu,{"data-testid":B("account-reconciliation-review-matched-transaction-amount",j.bookTransactionId),onClick:()=>{j.bookTransactionId!=null&&y(j.bookTransactionId)},children:[t.jsx(Pu,{children:rs("0,0.00",j.amount.amount,j.amount.currencySymbol)}),t.jsx(qi,{})]})]},j.bookTransactionId):null)})]})}),t.jsx(Ue,{controller:he,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.bankAccountId==null&&N===!1&&G(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:C==="credit_card"?be.review.formLabels.selectAccount:be.review.formLabels.transferTo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&pe()},"data-testid":B("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectAccount]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:be.review.formLabels.selectAccount,defaultValue:{allOptions:js(g),selectedOption:a.bankAccountId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:xe,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.creditCardId==null&&z===!1&&V(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.formLabels.creditCard}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:z===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Ie()},"data-testid":B("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectCard]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:be.review.formLabels.selectCard,defaultValue:{allOptions:ks(f),selectedOption:a.creditCardId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:!H,children:t.jsx(Lu,{children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.header.memo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:de===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&_(!1)},"data-testid":B("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addMemo]}):t.jsx(pl,{name:Re(e.transactionId,"memo"),placeholder:be.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Vn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${o.sp5})`,marginRight:`-${o.sp3}`,marginLeft:`-${o.sp3}`})},Wi=(e,n,c,r,h,p,a,d)=>{const l=r.find(m=>m.accountId===n.categoryId);return{[ht]:{[e.transactionId]:{category:{selectedOption:l?.qboId,allOptions:c},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:js(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:ks(a)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:as(d.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:kl(n?.customer,d.entityAutoCompleteView)}}}}},Ui=(e,n,c,r)=>{const{vendor:h,customer:p}=e[ht][n.transactionId];let a;if(h.selectedOption!=null){const l=h.defaultOptions.find(m=>m.value===h.selectedOption);if(l!=null)a={id:h.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(a={id:m.zeniId,name:m.name})}}let d;if(p.selectedOption!=null){const l=p.defaultOptions.find(m=>m.value===p.selectedOption);if(l!=null)d={id:p.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(d={id:m.zeniId,name:m.name})}}return{categoryId:r.find(l=>l.qboId===e[ht][n.transactionId].category.selectedOption)?.accountId??e[ht][n.transactionId].category.selectedOption,classId:e[ht][n.transactionId].class.selectedOption,memo:e[ht][n.transactionId].memo,matchedTransactionId:e[ht][n.transactionId].matchedTransaction,vendor:a,bankAccountId:e[ht][n.transactionId].bankAccount.selectedOption,creditCardId:e[ht][n.transactionId].creditCard.selectedOption,customer:d}},dn=s(Ve)`
|
|
579
579
|
display: flex;
|
|
580
580
|
align-items: center;
|
|
581
581
|
column-gap: ${o.sp1};
|
|
@@ -1181,7 +1181,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1181
1181
|
z-index: ${x[2]};
|
|
1182
1182
|
min-width: ${Ha}px;
|
|
1183
1183
|
max-width: ${Va}px;
|
|
1184
|
-
`,Qn="monthEndReportFormSection",ga="monthEndReportPage",Xe=Ae.getLocalizedStrings();function am({companyId:e,enableZeniGPTFeature:n,monthEndReportView:c,previewMode:r,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:a,newThreadMetadata:d,isZeniUser:l,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:g,onUpdateFileAttachment:f,onCloseAllThreadsSection:C,previewMonthEndReport:w,saveMonthEndReport:v,onEditClick:k,onOpenFileAttachmentSnackBar:y,onClickCustomerRequest:R,sendMonthEndReport:I}){const S=wt(),[T,D]=i.useState(),[A,O]=i.useState(0),[b,$]=i.useState(0),M=i.useRef(),N=i.useRef(null),G=i.useRef(null),{html:z,subject:V,improveUsingZeniGPTStatus:de}=c,[_,H]=i.useState(),[ie,he]=i.useState(!1),[xe,ge]=i.useState(!1),q=i.useRef(null),K=i.useRef(null),Y=yr(p,250),P=c.fetchState==="Not-Started"||c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:Z,threadsPositions:F,observer:X,unresolvedThreadsMap:J,handleRemoveFloatingThread:W}=Cr(a,q,!r,P,l),U=i.useCallback(()=>{p?K.current!=null&&$(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Va-x[4])):K.current!=null&&O(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Ha-x[4]))},[p]);i.useEffect(()=>{U()},[p,U]),i.useEffect(()=>(window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}),[U]);const L=l?_a:Pa,{openThread:te,addThread:ee,setOpenThread:Q}=i.useContext(L),pe=wr(bi,!1,!r),Ie=q.current?.getBoundingClientRect(),j=pe!=null&&pe.coords&&Ie?{left:pe.coords.left-Ie.left,top:pe.coords.top-Ie.top}:void 0,se=i.useCallback(()=>{const $e=window.getSelection()?.getRangeAt(0),re=br();if(!$e||re==null)return;const Le={...d,...re,startPath:re.startPath.join(),endPath:re.endPath.join()},le=`${Ua()}${Wa}`,_e=`cockpit_${e}`;ee(le,{type:"thread",id:le,roomId:_e,createdAt:new Date,comments:[],metadata:Le,updatedAt:new Date,resolved:!1}),Q(le)},[ee,e,d,Q]);i.useEffect(()=>{te!=null&&p&&C()},[p,te,C]);const je=de.fetchState==="In-Progress",Ne=an({mode:"all",defaultValues:xa(c),values:xa(c)}),Ee=Ne.handleSubmit($e=>{const{recipientEmailList:re,subject:Le}=$e[Qn];if(r===!0)I?.(_?.id);else{const le=T?.replace(vr,Xe.common.strings.empty);re!=null&&Le!=null&&w(re,Le,_?.id,le!=null&&le.length>0?T:void 0)}}),Oe=()=>{N.current!=null&&N.current.click()},we=()=>{_!==void 0&&_!=null&&(g([_.id]),H(void 0),he(!1))},at=$e=>{const re=$e.target.files?$e.target.files[0]:null;if(re)if(!Ml(re.type)||xe)console.warn("Please select a valid file.");else{const Le=new FileReader;Le.onload=function(le){const _e=le.target?.result;if(typeof _e=="string"){const dt={data:_e.split(",")[1],name:re.name,id:_l(e,re.name)};H(dt),he(!0),f([dt])}},Le.readAsDataURL(re)}},st=()=>{G.current&&G.current.scrollIntoView({behavior:"smooth"})},qe=()=>{const $e=Ne.getValues(),{recipientEmailList:re,subject:Le}=$e[Qn];re!=null&&Le!=null&&v(re,Le,_?.id,T)};i.useEffect(()=>{D(c.zeniRequestsHtml)},[c.zeniRequestsHtml]),i.useEffect(()=>{M.current=_},[_]),i.useEffect(()=>{H(Dl(c.attachmentFile)),he(!1)},[c.attachmentFile]),i.useEffect(()=>{xe&&y()},[xe,y]);const me=zo(`${m.year}-${m.month}-01`).format(Xe.dateFormat.visual.MMMMFormat),Me=z!=null?z.split(Sr):[],Rt=c.concatenatedHtml,mt=()=>c.lastDraftSavedDate!=null&&r===!1?t.jsx(Kr,{time:c.lastDraftSavedDate,user:c.reportLastSavedByUser,timeStampLabel:Xe.cockpit.monthEndReport.timeStampLabel}):null,Ut=()=>l===!0?Y?t.jsxs(t.Fragment,{children:[t.jsx(im,{allThreadsSectionOpen:p,children:t.jsx(Ur,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${S.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${tt.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:S.colors.background},threadsContainerStyle:{paddingBottom:r?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Xe.common.texts.comments,filter:a,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:($e,re)=>{Q(re);const Le=Z.findIndex(le=>le[0]===re);C(),E.current?.[Le]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Co,{availableWidth:A})]}):t.jsx(qr,{observer:X,canvasContainerRef:q,sortedThreads:Z,threadsPositions:F,threadsRefs:E,unresolvedThreadsMap:J,editorMode:!r,style:{minWidth:`${A}px`,position:"relative",height:"fit-content",top:`${q.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:W}):t.jsx(Co,{availableWidth:A}),gt=(c.zeniRequestsData??[]).length+jr(c.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(qp,{ref:K,children:[t.jsx(Co,{availableWidth:p?b:A}),t.jsxs(Up,{children:[t.jsx(sn,{...Ne,children:t.jsx("form",{id:fa(ga),onSubmit:Ee,children:t.jsxs(tm,{children:[t.jsx(kr,{sectionId:Qn,previewMode:r,subject:V}),!r&>>0?t.jsx(Ir,{totalItems:gt,onClickCustomerRequest:R}):null,t.jsxs(Gp,{id:bi,ref:q,children:[t.jsxs(Yp,{className:"monthEndReportCanvasWrapper",children:[_!=null||xe?t.jsx(Zp,{"data-testid":B("email-attachment-container"),onClick:st,children:t.jsx($r,{fileSizeError:xe,setFileSizeError:ge,loading:!1,showAnimation:!r&&ie})}):null,r?t.jsx(ma,{dangerouslySetInnerHTML:{__html:Lr(Rt)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Jp,{id:Tr,children:[t.jsx(Ve,{dangerouslySetInnerHTML:{__html:Me[0]!=null?Me[0]+"</body></html>":Xe.common.strings.empty}}),t.jsxs(Kp,{children:[t.jsx(em,{children:Xe.cockpit.monthEndReport.editorTitle}),t.jsx(Xp,{children:Xe.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Qp,{id:Ar,children:t.jsx(Er,{handleFileInputClick:Oe,fileAttached:_!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:je,initialHtmlString:c.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:D,customerRequestData:h})}),t.jsx(ma,{id:qa,dangerouslySetInnerHTML:{__html:Me[1]!=null?"<html><body>"+Me[1]:Xe.common.strings.empty}})]}),_!=null?t.jsx(Rr,{ref:G,fileName:_.name,fileSize:Dr(_.data),onRemove:we,isRemovable:!r}):null]}),j?t.jsx(Or,{style:{zIndex:15},coords:j,alignment:pe.alignment,onClick:se}):null,t.jsx(Mr,{canvasContainerRef:q,sortedThreads:Z,editorMode:!r,isZeniUser:l})]})]})})}),t.jsx(Ko,{name:_?.name??Xe.common.strings.empty,fileRef:N,sizeLimit:Wp,acceptableTypes:Hp,onFileChange:async $e=>{at($e)},onFileSizeError:$e=>ge($e),multiple:!1})]}),Ut()]}),t.jsx(Ba,{style:{zIndex:10},leftSideComponent:mt(),formId:fa(ga),cancelBtn:{isDisabled:je,label:r===!0?Xe.cockpit.monthEndReport.editButtonLabel:Xe.cockpit.monthEndReport.saveChanges,onClick:r===!0?k:qe,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:c.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:je,isLoading:r===!0?c.sendMonthEndReportStatus.fetchState==="In-Progress":c.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:r===!0?"unset":"136px"},label:r===!0?Xe.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",me):Xe.cockpit.monthEndReport.preview,size:"medium"}})]})}const xa=e=>({[Qn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Xe.common.strings.empty}}),fa=e=>`${e}_form`;Ft.smallBold.lineHeightValue;const sm=1,rm=50,ya=56,lm=["memo_and_receipt","activity","paymentAccount","receipt"],Ca=e=>ls(e,lm),wo=905,cm=1240,dm=1440,um=1920;function Et(e,n,c,r){const h=n,p=Math.round(n*cm/wo),a=Math.round(n*dm/wo),d=Math.round(n*um/wo),l=c??a,m=r??l;return new ae(e,n,h,Math.min(p,l),Math.min(a,l),Math.min(d,m))}const{common:{strings:{empty:hm}},expenseAutomation:{transactions:{header:{vendors:pm,category:mm,classText:gm,date:xm,type:fm,amount:ym,paymentAccount:Cm,memoReceipt:wm}}}}=Ae.getLocalizedStrings(),Ns={key:"vendor",value:pm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[7]}}},bm={key:"payment_account",value:Cm,sortOrder:"ascending",width:Et(180,180,200,320),customStyle:{common:{paddingLeft:x[0]}}},vm={key:"category",value:mm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},Sm={key:"class",value:gm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},jm={key:"date",value:xm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:x[0]}}},km={key:"transaction_type",value:fm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:0}}},Im={key:"memo_and_receipt",value:wm,sortOrder:"ascending",width:Et(108,108,108,120),customStyle:{common:{paddingLeft:0,justifyContent:"center",display:"flex",alignItems:"center"}}},Vs={key:"amount",value:ym,sortOrder:"ascending",width:Et(108,108,140,156),customStyle:{common:{paddingRight:x[0],justifyContent:"flex-end",display:"flex",alignItems:"center"}}},$m={key:"activity",value:hm,sortOrder:"ascending",width:Et(x[6],x[6],48,54),customStyle:{common:{}}},ui=e=>{const n=[Ns,bm,vm,Sm,jm,km,Im,Vs];return e===!0&&n.push($m),n},Hs=[{...Ns,width:new ae(65,65)},{...Vs,width:new ae(30,30)}],bo={sortKey:"date",sortOrder:"descending"},Ws=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:c,onColumnSortConfigChanged:r})=>{const h=Te(),p=Ht(),a=p?Hs:ui(c),[d,l]=i.useState(Fo(a));i.useEffect(()=>{const g=Fo(a);for(const f of g)f.key===e.sortKey?f.sortOrder=e.sortOrder:f.sortOrder="ascending";l(g)},[e.sortKey,e.sortOrder,p]);const m=(g,f)=>{let C=f;e.sortKey===g&&(C=f==="ascending"?"descending":"ascending"),r(g,C)},u=g=>{Ca(g.key)==null&&m(Fl(g.key),g.sortOrder)};return t.jsx(Lm,{windowSize:h,isQuickViewMode:p,"data-testid":B("transaction-categorization-header-container"),children:d.map((g,f)=>{const C=n!=null||Ca(g.key)!=null;return t.jsxs(Tm,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,style:g.customStyle?.common,isSortDisabled:C,isQuickViewMode:p,windowSize:h,isLastItem:f===d.length-1,"data-testid":B("transaction-categorization-header-wrapper",g.key),children:[t.jsxs(Om,{"data-testid":B("transaction-categorization-header",g.value?g.value:g.key),onClick:()=>u(g),isSortDisabled:C,children:[t.jsx(Mm,{children:g.value}),C?null:t.jsx(Em,{sortConfig:e,headerData:g,"data-testid":B("transaction-categorization-sort-icon",g.key),children:t.jsx(Dm,{})})]}),C?null:t.jsx(Rm,{isSortDisabled:C,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&e.sortKey!==bo.sortKey,"data-testid":B("transaction-categorization-close-icon",g.key),children:t.jsx(Am,{onClick:()=>{m(bo.sortKey,bo.sortOrder)},"data-testid":B("transaction-categorization-close-icon-button",g.key)})})]},g.key)})})},Lm=s.div`
|
|
1184
|
+
`,Qn="monthEndReportFormSection",ga="monthEndReportPage",Xe=Ae.getLocalizedStrings();function am({companyId:e,enableZeniGPTFeature:n,monthEndReportView:c,previewMode:r,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:a,newThreadMetadata:d,isZeniUser:l,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:g,onUpdateFileAttachment:f,onCloseAllThreadsSection:C,previewMonthEndReport:w,saveMonthEndReport:v,onEditClick:k,onOpenFileAttachmentSnackBar:y,onClickCustomerRequest:R,sendMonthEndReport:I}){const S=wt(),[T,D]=i.useState(),[A,O]=i.useState(0),[b,$]=i.useState(0),M=i.useRef(),N=i.useRef(null),G=i.useRef(null),{html:z,subject:V,improveUsingZeniGPTStatus:de}=c,[_,H]=i.useState(),[ie,he]=i.useState(!1),[xe,ge]=i.useState(!1),q=i.useRef(null),K=i.useRef(null),Y=yr(p,250),P=c.fetchState==="Not-Started"||c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:Z,threadsPositions:F,observer:X,unresolvedThreadsMap:J,handleRemoveFloatingThread:W}=Cr(a,q,!r,P,l),U=i.useCallback(()=>{p?K.current!=null&&$(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Va-x[4])):K.current!=null&&O(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Ha-x[4]))},[p]);i.useEffect(()=>{U()},[p,U]),i.useEffect(()=>(window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}),[U]);const L=l?_a:Pa,{openThread:ne,addThread:ee,setOpenThread:Q}=i.useContext(L),pe=wr(bi,!1,!r),Ie=q.current?.getBoundingClientRect(),j=pe!=null&&pe.coords&&Ie?{left:pe.coords.left-Ie.left,top:pe.coords.top-Ie.top}:void 0,se=i.useCallback(()=>{const $e=window.getSelection()?.getRangeAt(0),re=br();if(!$e||re==null)return;const Le={...d,...re,startPath:re.startPath.join(),endPath:re.endPath.join()},le=`${Ua()}${Wa}`,_e=`cockpit_${e}`;ee(le,{type:"thread",id:le,roomId:_e,createdAt:new Date,comments:[],metadata:Le,updatedAt:new Date,resolved:!1}),Q(le)},[ee,e,d,Q]);i.useEffect(()=>{ne!=null&&p&&C()},[p,ne,C]);const je=de.fetchState==="In-Progress",Ne=an({mode:"all",defaultValues:xa(c),values:xa(c)}),Ee=Ne.handleSubmit($e=>{const{recipientEmailList:re,subject:Le}=$e[Qn];if(r===!0)I?.(_?.id);else{const le=T?.replace(vr,Xe.common.strings.empty);re!=null&&Le!=null&&w(re,Le,_?.id,le!=null&&le.length>0?T:void 0)}}),Oe=()=>{N.current!=null&&N.current.click()},we=()=>{_!==void 0&&_!=null&&(g([_.id]),H(void 0),he(!1))},at=$e=>{const re=$e.target.files?$e.target.files[0]:null;if(re)if(!Ml(re.type)||xe)console.warn("Please select a valid file.");else{const Le=new FileReader;Le.onload=function(le){const _e=le.target?.result;if(typeof _e=="string"){const dt={data:_e.split(",")[1],name:re.name,id:_l(e,re.name)};H(dt),he(!0),f([dt])}},Le.readAsDataURL(re)}},st=()=>{G.current&&G.current.scrollIntoView({behavior:"smooth"})},qe=()=>{const $e=Ne.getValues(),{recipientEmailList:re,subject:Le}=$e[Qn];re!=null&&Le!=null&&v(re,Le,_?.id,T)};i.useEffect(()=>{D(c.zeniRequestsHtml)},[c.zeniRequestsHtml]),i.useEffect(()=>{M.current=_},[_]),i.useEffect(()=>{H(Dl(c.attachmentFile)),he(!1)},[c.attachmentFile]),i.useEffect(()=>{xe&&y()},[xe,y]);const me=zo(`${m.year}-${m.month}-01`).format(Xe.dateFormat.visual.MMMMFormat),Me=z!=null?z.split(Sr):[],Rt=c.concatenatedHtml,mt=()=>c.lastDraftSavedDate!=null&&r===!1?t.jsx(Kr,{time:c.lastDraftSavedDate,user:c.reportLastSavedByUser,timeStampLabel:Xe.cockpit.monthEndReport.timeStampLabel}):null,Ut=()=>l===!0?Y?t.jsxs(t.Fragment,{children:[t.jsx(im,{allThreadsSectionOpen:p,children:t.jsx(Ur,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${S.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${tt.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:S.colors.background},threadsContainerStyle:{paddingBottom:r?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Xe.common.texts.comments,filter:a,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:($e,re)=>{Q(re);const Le=Z.findIndex(le=>le[0]===re);C(),E.current?.[Le]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Co,{availableWidth:A})]}):t.jsx(qr,{observer:X,canvasContainerRef:q,sortedThreads:Z,threadsPositions:F,threadsRefs:E,unresolvedThreadsMap:J,editorMode:!r,style:{minWidth:`${A}px`,position:"relative",height:"fit-content",top:`${q.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:W}):t.jsx(Co,{availableWidth:A}),gt=(c.zeniRequestsData??[]).length+jr(c.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(qp,{ref:K,children:[t.jsx(Co,{availableWidth:p?b:A}),t.jsxs(Up,{children:[t.jsx(sn,{...Ne,children:t.jsx("form",{id:fa(ga),onSubmit:Ee,children:t.jsxs(tm,{children:[t.jsx(kr,{sectionId:Qn,previewMode:r,subject:V}),!r&>>0?t.jsx(Ir,{totalItems:gt,onClickCustomerRequest:R}):null,t.jsxs(Gp,{id:bi,ref:q,children:[t.jsxs(Yp,{className:"monthEndReportCanvasWrapper",children:[_!=null||xe?t.jsx(Zp,{"data-testid":B("email-attachment-container"),onClick:st,children:t.jsx($r,{fileSizeError:xe,setFileSizeError:ge,loading:!1,showAnimation:!r&&ie})}):null,r?t.jsx(ma,{dangerouslySetInnerHTML:{__html:Lr(Rt)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Jp,{id:Tr,children:[t.jsx(Ve,{dangerouslySetInnerHTML:{__html:Me[0]!=null?Me[0]+"</body></html>":Xe.common.strings.empty}}),t.jsxs(Kp,{children:[t.jsx(em,{children:Xe.cockpit.monthEndReport.editorTitle}),t.jsx(Xp,{children:Xe.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Qp,{id:Ar,children:t.jsx(Er,{handleFileInputClick:Oe,fileAttached:_!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:je,initialHtmlString:c.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:D,customerRequestData:h})}),t.jsx(ma,{id:qa,dangerouslySetInnerHTML:{__html:Me[1]!=null?"<html><body>"+Me[1]:Xe.common.strings.empty}})]}),_!=null?t.jsx(Rr,{ref:G,fileName:_.name,fileSize:Dr(_.data),onRemove:we,isRemovable:!r}):null]}),j?t.jsx(Or,{style:{zIndex:15},coords:j,alignment:pe.alignment,onClick:se}):null,t.jsx(Mr,{canvasContainerRef:q,sortedThreads:Z,editorMode:!r,isZeniUser:l})]})]})})}),t.jsx(Ko,{name:_?.name??Xe.common.strings.empty,fileRef:N,sizeLimit:Wp,acceptableTypes:Hp,onFileChange:async $e=>{at($e)},onFileSizeError:$e=>ge($e),multiple:!1})]}),Ut()]}),t.jsx(Ba,{style:{zIndex:10},leftSideComponent:mt(),formId:fa(ga),cancelBtn:{isDisabled:je,label:r===!0?Xe.cockpit.monthEndReport.editButtonLabel:Xe.cockpit.monthEndReport.saveChanges,onClick:r===!0?k:qe,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:c.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:je,isLoading:r===!0?c.sendMonthEndReportStatus.fetchState==="In-Progress":c.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:r===!0?"unset":"136px"},label:r===!0?Xe.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",me):Xe.cockpit.monthEndReport.preview,size:"medium"}})]})}const xa=e=>({[Qn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Xe.common.strings.empty}}),fa=e=>`${e}_form`;Ft.smallBold.lineHeightValue;const sm=1,rm=50,ya=56,lm=["memo_and_receipt","activity","paymentAccount","receipt"],Ca=e=>ls(e,lm),wo=905,cm=1240,dm=1440,um=1920;function Et(e,n,c,r){const h=n,p=Math.round(n*cm/wo),a=Math.round(n*dm/wo),d=Math.round(n*um/wo),l=c??a,m=r??l;return new ae(e,n,h,Math.min(p,l),Math.min(a,l),Math.min(d,m))}const{common:{strings:{empty:hm}},expenseAutomation:{transactions:{header:{vendors:pm,category:mm,classText:gm,date:xm,type:fm,amount:ym,paymentAccount:Cm,memoReceipt:wm}}}}=Ae.getLocalizedStrings(),Ns={key:"vendor",value:pm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[7]}}},bm={key:"payment_account",value:Cm,sortOrder:"ascending",width:Et(180,180,200,320),customStyle:{common:{paddingLeft:x[0]}}},vm={key:"category",value:mm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},Sm={key:"class",value:gm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},jm={key:"date",value:xm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:x[0]}}},km={key:"transaction_type",value:fm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:0}}},Im={key:"memo_and_receipt",value:wm,sortOrder:"ascending",width:Et(108,108,108,120),customStyle:{common:{paddingLeft:0,justifyContent:"center",display:"flex",alignItems:"center"}}},Vs={key:"amount",value:ym,sortOrder:"ascending",width:Et(108,108,140,156),customStyle:{common:{paddingRight:x[0],justifyContent:"flex-end",display:"flex",alignItems:"center"}}},$m={key:"activity",value:hm,sortOrder:"ascending",width:Et(x[6],x[6],48,54),customStyle:{common:{}}},ui=e=>{const n=[Ns,bm,vm,Sm,jm,km,Im,Vs];return e===!0&&n.push($m),n},Hs=[{...Ns,width:new ae(65,65)},{...Vs,width:new ae(30,30)}],bo={sortKey:"date",sortOrder:"descending"},Ws=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:c,onColumnSortConfigChanged:r})=>{const h=Te(),p=Ht(),a=p?Hs:ui(c),[d,l]=i.useState(Fo(a));i.useEffect(()=>{const g=Fo(a);for(const f of g)f.key===e.sortKey?f.sortOrder=e.sortOrder:f.sortOrder="ascending";l(g)},[e.sortKey,e.sortOrder,p]);const m=(g,f)=>{let C=f;e.sortKey===g&&(C=f==="ascending"?"descending":"ascending"),r(g,C)},u=g=>{Ca(g.key)==null&&m(Fl(g.key),g.sortOrder)};return t.jsx(Lm,{windowSize:h,isQuickViewMode:p,"data-testid":B("transaction-categorization-header-container"),children:d.map((g,f)=>{const C=n!=null||Ca(g.key)!=null;return t.jsxs(Tm,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,style:g.customStyle?.common,isSortDisabled:C,isQuickViewMode:p,windowSize:h,isLastItem:f===d.length-1,"data-testid":B("transaction-categorization-header-wrapper",g.key),children:[t.jsxs(Om,{"data-testid":B("transaction-categorization-header",g.value?g.value:g.key),onClick:()=>u(g),isSortDisabled:C,children:[t.jsx(Mm,{children:g.value}),C?null:t.jsx(Em,{sortConfig:e,headerData:g,"data-testid":B("transaction-categorization-sort-icon",g.key),children:t.jsx(Dm,{})})]}),C?null:t.jsx(Rm,{isSortDisabled:C,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&e.sortKey!==bo.sortKey,"data-testid":B("transaction-categorization-close-icon",g.key),children:t.jsx(Am,{onClick:()=>{m(bo.sortKey,bo.sortOrder)},"data-testid":B("transaction-categorization-close-icon-button",g.key)})})]},g.key)})})},Lm=s.div`
|
|
1185
1185
|
top: ${o.sp0};
|
|
1186
1186
|
left: ${o.sp0};
|
|
1187
1187
|
height: ${rm}px;
|
|
@@ -1246,7 +1246,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1246
1246
|
}
|
|
1247
1247
|
`,Mm=s(bt)`
|
|
1248
1248
|
display: flex;
|
|
1249
|
-
`,vo="expenseAutomationTransactionsPage",on="transactionCategorizationListTable",De="account",et="class",pt="lineEntitySelection",_m="lineEntity",Pm="recommendations",Us="lineInfo",Bm="vendorDetails",Fm="customerDetails",Xn="selectedTransactionIds",Mt=(e,n,c)=>`${e}.${c}.${n}`,zm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qs=e=>i.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Nm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M20.25 19.5H6.75C6.55109 19.5 6.36032 19.421 6.21967 19.2803C6.07902 19.1397 6 18.9489 6 18.75V2.25C6 2.05109 6.07902 1.86032 6.21967 1.71967C6.36032 1.57902 6.55109 1.5 6.75 1.5H15.75L21 6.75V18.75C21 18.9489 20.921 19.1397 20.7803 19.2803C20.6397 19.421 20.4489 19.5 20.25 19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.75 1.5V6.75H21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 11.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 14.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.5 22.5H3V5.85315",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Hm,hyphen:_t,empty:Bt,colon:wa},tooltips:{addReceipt:Wm,viewReceipt:Um,viewReceipts:qm}},expenseAutomation:{transactions:ut},dateFormat:Km}=Ae.getLocalizedStrings(),Nt={containerPaddingLeftRight:new ae(x[3],x[4]),containerPaddingTopBottom:new ae(x[1],x[2]),containerPaddingTopBottomEmpty:new ae(x[2],x[3]),nameLogoWidth:new ae(x[2],x[4]),nameLogoHeight:new ae(x[2],x[4])},Jm=({transactionView:e,transaction:n,sectionId:c,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:a,listContainerRef:d,isCOTEnabled:l,cotTracking:m,onTransactionCategorizationRowClick:u,setCurrentTransactionInAction:g,vendorLoadOptions:f,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,setActivityLogTransactionId:k,isTransactionActivityEnabled:y,authParams:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(!1),[O,b]=i.useState(!1),{lineItemById:$,sortedLineItems:M}=n.transactionReviewLocalData,N=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],G=M.filter(L=>N.indexOf(L)!==-1),z=[];G.forEach(L=>{z.push($[L])});const{accountList:V,accountsHierarchyList:de,classHierarchyList:_,classList:H,uncategorizedAccounts:ie,transactions:he,selectedCheckBoxTransactionIds:xe}=e,ge=e.uploadReceiptStatusById,q=xe.includes(n.transactionId),K=wt(),Y={control:()=>({marginLeft:-2,backgroundColor:D?K.colors.background:K.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0]}),menu:()=>({width:"150%",background:K.colors.grey5}),singleValue:()=>({color:D||q?K.colors.primary:K.colors.hero,paddingLeft:x[2]}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left",paddingLeft:x[2]}),menuPortal:L=>({...L,zIndex:10})},P={...Y,singleValue:L=>({...L,color:D||q?K.colors.primary:K.colors.hero}),menu:()=>({marginTop:x[1],marginLeft:-8}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left"})},E=he.find(L=>L.id===n.transactionId),Z=(L,te)=>{const{transactionType:ee}=te.transactionReviewLocalData;let Q=L.target;for(;Q;){if(Q.classList.contains("select-value-container")||Q.classList.contains("item-value-container")||Q.classList.contains("grouped-single-select-field__value-container")||Q.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Q.classList.contains("grouped-single-select-field__input")||Q.classList.contains("grouped-single-select-field__menu"))return;Q=Q.parentElement}ee!=null&&u(te.transactionId,ee)},F=i.useRef(null),[X,J]=i.useState(void 0),[W,U]=i.useState("bottom");return i.useEffect(()=>{if(X===void 0)return;const L=d?.current?._outerRef??null,te=()=>{const ee=F.current;if(ee==null||L==null)return;const Q=ee.getBoundingClientRect(),pe=L.getBoundingClientRect(),Ie=L.scrollTop+(Q.bottom-pe.top),j=L.scrollHeight-Ie;U(j>=288?"bottom":"top")};return te(),window.addEventListener("resize",te),L?.addEventListener("scroll",te),()=>{window.removeEventListener("resize",te),L?.removeEventListener("scroll",te)}},[d,X]),t.jsxs(Ym,{onMouseEnter:T?void 0:()=>A(!0),onMouseLeave:T?void 0:()=>A(!1),children:[t.jsx(Qm,{className:"categorization-row-card",windowSize:S,isSelected:q,isQuickViewMode:T,isHovered:D,children:t.jsx(Xm,{children:z.map((L,te)=>t.jsx(e1,{ref:X===te?F:void 0,"data-testid":B("transaction-categorization-list-row",L.lineId),windowSize:S,isQuickViewMode:T,onClick:ee=>Z(ee,n),children:t.jsx(Gm,{isTransactionActivityEnabled:y,line:L,isHovered:D||q,isSelected:q,isQuickViewMode:T,lineIndex:te,sectionId:c,transaction:n,currentTransaction:E,windowSize:S,accountsHierarchyList:de,classHierarchyList:_,allAccountList:V,allClassList:H,uncategorizedAccounts:ie,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:g,vendorLoadOptions:f,customStyle:Y,customStyleAutoComplete:P,recommendations:L.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:W,cotTracking:m,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,authParams:R,uploadReceiptStatus:ge?.[n.transactionId],onUploadTransactionReceipt:I,onDropdownClose:()=>J(void 0),onDropdownOpen:()=>J(te)})},`${n.transactionId}.${L.lineId}`))},n.transactionId)},n.transactionId),y===!0&&!T&&t.jsx(w1,{className:"activity-log-icon",onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onClick:L=>{L.stopPropagation(),k(n.transactionId)},children:t.jsx(Ce,{title:ut.header.activity,placement:"bottom",children:t.jsx(b1,{style:{color:O?K.colors.primary:K.colors.hero}})})})]})},Gm=({accountsHierarchyList:e,allAccountList:n,allClassList:c,classHierarchyList:r,customStyle:h,customStyleAutoComplete:p,line:a,lineIndex:d,transaction:l,currentTransaction:m,windowSize:u,uncategorizedAccounts:g,isHovered:f=!1,isSelected:C=!1,isQuickViewMode:w=!1,sectionId:v,recommendations:k,vendorSearchAutoCompleteData:y,selectedTab:R,isCOTEnabled:I,menuPlacement:S,cotTracking:T,openTooltipId:D,setCurrentTransactionInAction:A,vendorLoadOptions:O,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:$,isTransactionActivityEnabled:M,onDropdownClose:N,onDropdownOpen:G,authParams:z,uploadReceiptStatus:V,onUploadTransactionReceipt:de})=>{const{transactionDate:_,transactionType:H,transactionTypeName:ie,memo:he}=l.transactionReviewLocalData,{setValue:xe}=Qo(),ge=i.useCallback((ne,ve)=>{T?.onCOTView!=null&&T.onCOTView(a.lineId,l.transactionId,ne,ve)},[T,a.lineId,l.transactionId]),q=a.lineDescription,K=i.useMemo(()=>{if(q||he)return[{title:ut.description,description:q||_t},{title:ut.header.memo,description:he||_t}]},[he,q]),Y=Mt(v,pt,d.toString()),P=Mt(v,De,d.toString()),E=Mt(v,et,d.toString()),Z=(ne,ve)=>{if(w)return;let ke;switch(ve){case"vendor":ke=Y;break;case"category":ke=P;break;case"class":ke=E;break;default:return}xe(`${ke}.selectedOption`,ne,{shouldValidate:!0,shouldDirty:!0})},F=wt(),X=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.customer?.id??"",logo:l.transactionReviewLocalData.customer?.logo,name:l.transactionReviewLocalData.customer?.name??""}:{id:a.customer?.id??"",logo:a.customer?.logo,name:a.customer?.name??""},[m,a.customer?.id,a.customer?.logo,a.customer?.name,l.transactionReviewLocalData.customer?.id,l.transactionReviewLocalData.customer?.logo,l.transactionReviewLocalData.customer?.name]),J=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.vendor?.id??"",logo:l.transactionReviewLocalData.vendor?.logo,name:l.transactionReviewLocalData.vendor?.name??""}:{id:a.vendor?.id??"",logo:a.vendor?.logo,name:a.vendor?.name??""},[m,a.vendor?.id,a.vendor?.logo,a.vendor?.name,l.transactionReviewLocalData.vendor?.id,l.transactionReviewLocalData.vendor?.logo,l.transactionReviewLocalData.vendor?.name]),W=a[et]?.classId,U=a[De]?.qboId??a[De]?.accountId,L=X?.id,te=J?.id,ee=J?.name,[Q,pe]=i.useState(!W),[Ie,j]=i.useState(!U||a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!0),[se,je]=i.useState(!te||!L),Ne=ne=>k?.find(ve=>ve.vendor?.qboId===ne||ve.vendor?.id===ne||ve.vendor?.name===ne)?.vendor?.reason??"",Ee=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],Oe=os(e,Ee),we=ns(r,Ee),at=ne=>n.filter(ve=>ve.qboId===ne)[0]?.qboId,st=ne=>c.filter(ve=>ve.classId===ne)[0]?.accountingClassNumber??void 0,qe=i.useCallback(ne=>Sn(g,ne,$===!0?["income"]:void 0),[g,$]),[me,Me]=i.useState(!1),[Rt,mt]=i.useState(!1),[Ut,gt]=i.useState(!1),[$e,re]=i.useState(0),[Le,le]=i.useState(null),[_e,dt]=i.useState([]),[vt,He]=i.useState(void 0),rn=i.useRef(null),[ln,Dt]=i.useState(0),[qt,Kt]=i.useState(0),cn=al()?.url,[Rn,yn]=i.useState(!1),Zs=(ne,ve)=>{A({transactionId:l.transactionId,lineItemId:a.lineId}),O(ne,ve)},hi=()=>{je(!(te||L)),Me(!1),N?.()},pi=()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0),yn(!1),N?.()},mi=()=>{pe(!W),mt(!1),N?.()},Qs=()=>{w||(te||L)&&(Me(!0),G?.())},Xs=()=>{w||(mt(!0),G?.())},er=()=>{w||(yn(!0),G?.())};i.useEffect(()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0)},[U]),i.useEffect(()=>{pe(!W)},[W]),i.useEffect(()=>{je(!(te||L))},[te,L]);const tr=l.transactionReviewLocalData.selectedEntity,nr=l.transactionReviewLocalData.lineItemById[a.lineId].selectedEntityLine,Ke=m!=null&&Qt(m)===!0?tr:nr,Dn=i.useMemo(()=>{const ne=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],ve=y.entityAutoCompleteView;return{selectedOption:Ke?.qboId??Ke?.id,defaultOptions:Go(ve,Ke,ne??[])}},[Ke,l.transactionReviewLocalData.lineItemById,a.lineId,y.entityAutoCompleteView]),or=()=>Ke!=null&&Ke.logo!=null?t.jsx(Xa,{photoUrl:Ke.logo.toString(),styles:{width:Nt.nameLogoWidth.valuePx(u),height:Nt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})})}):Ke!=null&&Ke.name!=null?t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})}):null,gi=(ne,ve)=>{if(ve==null||!ve)return;let ke=[];return ne.forEach(jt=>{ke=ke.concat(jt.options)}),ke.find(jt=>jt.value===ve)?.label??ve},xi=gi(we,W),fi=gi(Oe,U),St=R==="review",yi=lo("vendor",Dn.defaultOptions,Dn.selectedOption),Ci=lo("category",Oe,U),wi=lo("class",we,W),ir=ne=>{const ve=w?Hs:ui(ne);return ve.map((ke,jt)=>{const lt=`${l.transactionId}_${ke.key}_${a.lineId}`;if(d>0&&m!=null&&Qt(m)===!0&&ke.key==="vendor")return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);if(d>0&&(ke.key==="transaction_type"||ke.key==="payment_account"||ke.key==="memo_and_receipt"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);switch(ke.key){case"activity":return t.jsx(Js,{},lt);case"vendor":default:return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w,className:"item-value-container",children:[!w&&t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"vendor",isFirstColumn:!0,isEnabled:!!Ke?.isPreFilled,isMisCategorized:yi,onRecommendationClick:Z,selectedValue:te,selectedValueLabel:ee,isReviewTab:St,isAccountOptionDisabled:qe,existingOption:{label:m!=null&&Qt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Qt(m)===!0?m?.vendor?.id:void 0},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:se===!0?t.jsx(Io,{isHovered:f,isQuickViewMode:w,children:t.jsxs(ko,{onClick:Pe=>{Pe.stopPropagation(),!w&&(G?.(),je(!1),Me(!0))},"data-testid":B("add-vendor-button",v),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addPayee]})}):me===!0?t.jsx($t,{onClickAway:hi,children:t.jsx(f1,{"data-testid":B("vendor-selection-dropdown-container",Mt(v,pt,d.toString())),children:t.jsx(ul,{name:Y,placeholder:ut.addPayee,valueToInfo:Ne,defaultValue:{selectedOption:Dn.selectedOption,defaultOptions:Dn.defaultOptions},type:"vendor",autoFocus:!se,style:{width:"100%"},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:me,onMenuClose:hi,registerOptions:{required:!1},loadOptions:Zs,showCOT:I,onCOTView:ge,menuPlacement:S})})}):t.jsx(C1,{children:t.jsxs($o,{isHovered:f,isQuickViewMode:w,showOutline:!w&&yi&&Ke?.isPreFilled!==!0&&!C&&St,children:[or(),t.jsx(x1,{onClick:Qs,"data-testid":B("vendor-name-text",v),children:Ke!=null&&Ke.name?t.jsx(it,{text:Ke.name,itemTextStyle:{color:f?F.colors.primary:F.colors.hero}}):t.jsx(y1,{children:_t})})]})})})]},lt);case"category":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"category",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[De]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:Ci,onRecommendationClick:Z,selectedValue:U,selectedValueLabel:fi,existingOption:{label:Pe?.account?.accountName,value:Pe?.account?.qboId??Pe?.account?.accountId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Ie===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),j(!1),yn(!0))},"data-testid":B("category-selection-field",P),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addCategory]})}):Rn===!0?t.jsx($t,{onClickAway:pi,children:t.jsx(ja,{isHovered:f,"data-testid":B("category-selection-dropdown-container",P),children:t.jsx(Ai,{name:P,placeholder:ut.addCategory,valueToId:Qe=>at(Qe),type:"category",pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:U,allOptions:Oe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Rn,autoFocus:!Ie&&(!U||a[De]?.qboId!=null&&[g.expense?.qboId,g.income?.qboId].includes(a[De].qboId)),onMenuClose:pi,customStyleConfig:h,disableCurrentOption:qe,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:Ci&&a[De]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{onClick:er,"data-testid":B("category-label-text",P),children:t.jsx(it,{text:fi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"class":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"class",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[et]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:wi,onRecommendationClick:Z,selectedValue:W,selectedValueLabel:xi,existingOption:{label:Pe?.class?.className,value:Pe?.class?.classId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Q===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),pe(!1),mt(!0))},"data-testid":B("class-selection-field",E),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addClass]})}):Rt===!0?t.jsx($t,{onClickAway:mi,children:t.jsx(ja,{isHovered:f,"data-testid":B("class-selection-dropdown-container",E),children:t.jsx(Ai,{name:E,placeholder:ut.addClass,valueToId:Qe=>st(Qe),type:"class",showCOT:I,defaultValue:{selectedOption:W,allOptions:we},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",menuIsOpen:Rt,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Q&&!W,customStyleConfig:h,onMenuClose:mi,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:wi&&a[et]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{"data-testid":B("class-selection-field",E),onClick:Xs,children:t.jsx(it,{text:xi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"date":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Uo,{"data-testid":B("date-field",Mt(v,et,d.toString())),children:t.jsx(jo,{style:{color:f?F.colors.primary:F.colors.hero},children:_!=null?_.format(Km.visual.MMMDCommaYYYYformat):null})})})},lt);case"transaction_type":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,"data-testid":B("transaction-type-field",Mt(v,et,d.toString())),isLastItem:jt===ve.length-1,children:ie!=null?t.jsx(cl,{textColor:f?new Zo(F.colors.primary):dl(void 0,F),text:ie??H}):null})},lt);case"amount":{const Pe=Ze("0,0.[00]",a.amount,!0);return t.jsx(nt,{windowSize:u,style:{marginRight:x[4]},wrapperWidth:ke.width,isQuickViewMode:w,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,style:{justifyContent:"flex-end"},children:t.jsx(Uo,{"data-testid":B("transaction-amount-field",Mt(v,et,d.toString())),style:{color:f?F.colors.primary:F.colors.hero},children:Pe})})},lt)}case"payment_account":{if(!(H==="expense"||H==="check"||H==="bill_payment"||H==="vendor_credit"||H==="credit_card_credit"||H==="deposit"||H==="sales_receipt"||H==="refund"||H==="payment"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(jo,{style:{textAlign:"center",width:"100%"},children:_t})})},lt);const Pe=m?.account?.accountName,Qe=m?.paymentType,Cn=m?.paymentTypeName,On=Qe==="credit_card"?o1:Qe==="cash"?i1:Qe==="check"?s1:Qe==="ach"?k1:a1,ct={title:Bt,items:[{text:ut.paymentAccountTooltip.accountLabel+wa,amount:Pe??_t},...Cn!=null?[{text:ut.paymentAccountTooltip.methodLabel+wa,amount:Cn}]:[]]};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Ce,{display:"flex",placement:"bottom",variant:"list-description",data:ct,title:Pe??_t,enterDelay:600,style:{overflow:"hidden",minWidth:0},children:t.jsxs(n1,{style:{color:f?F.colors.primary:F.colors.hero},children:[On!=null&&t.jsx(On,{style:{color:f?F.colors.primary:F.colors.hero}}),t.jsx(jo,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Pe??_t})]})})})},lt)}case"memo_and_receipt":{const Pe=m?.attachments??[],Qe=V?.fetchState==="In-Progress",Cn=ct=>{if(ct.stopPropagation(),Pe.length===0||m==null)return;if(cn==null){console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");return}He(Pe[0]),re(0),gt(!0);const wn=Pe.map(Jt=>Jt.id),Mn=`${cn}/transaction_attachments`;gl(Mn,z,{transaction_key:{transaction_id:m.id,transaction_type:m.type},attachment_ids:wn}).then(Jt=>{dt(Jt),Jt.length>0&&le(Jt[0])})},On=ct=>{ct.stopPropagation(),rn.current?.click()};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,"data-testid":B("memo-field",Mt(v,et,d.toString())),children:t.jsxs(v1,{onClick:ct=>ct.stopPropagation(),children:[K!=null?t.jsx(Ce,{display:"flex",placement:"bottom",data:K,variant:"multi-information-points",style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsx(l1,{style:{color:f?F.colors.primary:F.colors.hero}})}):t.jsx(r1,{style:{margin:0},children:_t}),Qe?t.jsx(Jo,{size:"Small",style:{display:"flex"},start:!0}):Pe.length===0?t.jsx(Ce,{display:"flex",placement:"bottom",title:Wm,enterDelay:600,children:t.jsx(Kn,{style:{margin:0},onClick:ct=>{ct.stopPropagation(),On(ct)}})}):Pe.length===1?t.jsx(Ce,{display:"flex",placement:"bottom",title:Um,enterDelay:600,children:t.jsx(S1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}):t.jsx(Ce,{display:"flex",placement:"bottom",title:qm,enterDelay:600,children:t.jsx(j1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}),t.jsx(Ko,{name:`transaction-receipt-${l.transactionId}`,fileRef:rn,sizeLimit:Gn,multiple:!0,acceptableTypes:[...cs],onFileChange:ct=>{const wn=ct.target.files;if(wn!=null&&wn.length>0){const Mn=Array.from(wn);de(R,l.transactionId,H??Bt,Mn,Mn.map(Jt=>Jt.name))}},onFileSizeError:()=>{}})]})},lt)}}})},rt=m?.attachments??[],so=vt??rt[0];return t.jsxs(t.Fragment,{children:[ir(M),Ut&&rt.length>0&&so!=null?Wl.createPortal(t.jsx(sl,{allFiles:_e,fileSource:Le,file:so,title:so.fileName,attachments:rt,showNavigation:!1,setFileSource:le,setShowFullScreenView:gt,onCrossClick:()=>{gt(!1),le(null),dt([]),He(void 0),re(0)},onNextClick:()=>{const ne=($e+1)%rt.length;re(ne),He(rt[ne]),_e[ne]!=null&&le(_e[ne])},onPreviousClick:()=>{const ne=($e-1+rt.length)%rt.length;re(ne),He(rt[ne]),_e[ne]!=null&&le(_e[ne])},setSelectedFileAttachment:ne=>{He(typeof ne=="function"?ve=>ne(ve??rt[0]):ne)},handleTouchStart:ne=>Dt(ne.targetTouches[0].clientX),handleTouchMove:ne=>Kt(ne.targetTouches[0].clientX),handleTouchEnd:()=>{if(ln-qt>50&&qt!==0&&$e<rt.length-1){const ne=$e+1;re(ne),He(rt[ne]),_e[ne]!=null&&le(_e[ne]),Dt(0),Kt(0)}else if(ln-qt<-50&&qt!==0&&$e>0){const ne=$e-1;re(ne),He(rt[ne]),_e[ne]!=null&&le(_e[ne]),Dt(0),Kt(0)}}}),document.body):null]})},ba=({isEnabled:e,isReviewTab:n,isMisCategorized:c,hasRecommendations:r,isTooltipVisible:h=!1})=>e?n?h?t.jsx(u1,{}):t.jsx(c1,{}):h?t.jsx(d1,{}):t.jsx(h1,{className:"ai-icon-selected-plain"}):!e&&c||r?h?t.jsx(m1,{}):t.jsx(p1,{}):null,va=({isFirstColumn:e,children:n})=>t.jsx(Gs,{isFirstColumn:e,children:n}),So=({recommendations:e,isCOTEnabled:n,type:c,isReviewTab:r,selectedValueLabel:h,isFirstColumn:p,isEnabled:a=!1,isMisCategorized:d=!1,selectedValue:l,existingOption:m,cotTracking:u,lineId:g,openTooltipId:f,transactionId:C,isAccountOptionDisabled:w,onRecommendationClick:v,setOpenTooltipId:k})=>{const y=i.useMemo(()=>`${C}:${g}:${c}`,[C,g,c]),R=f===y,I=wl().analytics,{createAlternateRecommendationCallback:S}=bl(),T=i.useCallback(N=>{const G=e[1],z=e[0];S(c,{currentValue:h??Bt,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:g,onCOTView:(V,de,_,H)=>{u.onCOTView?.(V,de,_,H)}}:void 0},G,z)(N)},[S,e,h,r,c,u,g,C]),D=vl(e,c,n,m,"list_page",r?"pending_review":"auto_categorized",v,T,l,w),A=Sl(e,c),O=i.useCallback(()=>{k(y);const N=D?.recommendations[0]?.cot??[],G=D?.recommendations[1]?.cot??[],z=G.length>0;if(I.trackTransactionCotView({recommendationFor:c,currentValue:h??Bt,recommendation:D?.recommendations[0]?.name??Bt,recommendationCot:N,isRecommendationCotAvailable:N.length>0,recommendationReason:D?.recommendations[0]?.reason??Bt,recommendationConfidencePercentage:D?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:ji(ki(D?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:D?.recommendations[1]?.name??Bt,alternativeRecommendationCot:G,isAlternativeRecommendationCotAvailable:z,alternativeRecommendationReason:D?.recommendations[1]?.reason??Bt,alternativeRecommendationConfidencePercentage:D?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:z?ji(ki(D?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const V=jl(D);V!=null&&u.onCOTView(g,C,c,V)}},[I,D,r,h,c,g,C,y,k]),b=i.useCallback(()=>{f===y&&k(void 0)},[f,y,k]),$=i.useMemo(()=>!l||!A?!1:e.some(N=>c==="vendor"&&N.vendor!=null?N.vendor.id===l||N.vendor.qboId===l:c==="category"&&N.account!=null?N.account.qboId===l||N.account.accountId===l:c==="class"&&N.class!=null?N.class.classId===l:!1),[l,A,e,c]);if(!A)return t.jsx(Gs,{isFirstColumn:p});const M=a||$;return D?t.jsx(va,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:D,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:O,onClose:b,children:t.jsx(g1,{children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})})}):t.jsx(va,{isFirstColumn:p,children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})},Ks=({isTransactionActivityEnabled:e})=>{const n=Te(),c=ui(e);return t.jsx(Zm,{windowSize:n,children:c.map((r,h)=>{const p=`${h}${Hm}${r.key}`;switch(r.key){case"activity":return t.jsx(Js,{},p);case"vendor":return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,style:{paddingLeft:o.sp3},children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsxs(Uo,{children:[t.jsx(Xo,{width:x[4],height:x[4]}),t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})]})})},p);default:return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})})},p)}})})},Js=s.div`
|
|
1249
|
+
`,vo="expenseAutomationTransactionsPage",on="transactionCategorizationListTable",De="account",et="class",pt="lineEntitySelection",_m="lineEntity",Pm="recommendations",Us="lineInfo",Bm="vendorDetails",Fm="customerDetails",Xn="selectedTransactionIds",Mt=(e,n,c)=>`${e}.${c}.${n}`,zm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qs=e=>i.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Nm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M20.25 19.5H6.75C6.55109 19.5 6.36032 19.421 6.21967 19.2803C6.07902 19.1397 6 18.9489 6 18.75V2.25C6 2.05109 6.07902 1.86032 6.21967 1.71967C6.36032 1.57902 6.55109 1.5 6.75 1.5H15.75L21 6.75V18.75C21 18.9489 20.921 19.1397 20.7803 19.2803C20.6397 19.421 20.4489 19.5 20.25 19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.75 1.5V6.75H21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 11.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 14.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.5 22.5H3V5.85315",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Hm,hyphen:_t,empty:Bt,colon:wa},tooltips:{addReceipt:Wm,viewReceipt:Um,viewReceipts:qm}},expenseAutomation:{transactions:ut},dateFormat:Km}=Ae.getLocalizedStrings(),Nt={containerPaddingLeftRight:new ae(x[3],x[4]),containerPaddingTopBottom:new ae(x[1],x[2]),containerPaddingTopBottomEmpty:new ae(x[2],x[3]),nameLogoWidth:new ae(x[2],x[4]),nameLogoHeight:new ae(x[2],x[4])},Jm=({transactionView:e,transaction:n,sectionId:c,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:a,listContainerRef:d,isCOTEnabled:l,cotTracking:m,onTransactionCategorizationRowClick:u,setCurrentTransactionInAction:g,vendorLoadOptions:f,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,setActivityLogTransactionId:k,isTransactionActivityEnabled:y,authParams:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(!1),[O,b]=i.useState(!1),{lineItemById:$,sortedLineItems:M}=n.transactionReviewLocalData,N=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],G=M.filter(L=>N.indexOf(L)!==-1),z=[];G.forEach(L=>{z.push($[L])});const{accountList:V,accountsHierarchyList:de,classHierarchyList:_,classList:H,uncategorizedAccounts:ie,transactions:he,selectedCheckBoxTransactionIds:xe}=e,ge=e.uploadReceiptStatusById,q=xe.includes(n.transactionId),K=wt(),Y={control:()=>({marginLeft:-2,backgroundColor:D?K.colors.background:K.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0]}),menu:()=>({width:"150%",background:K.colors.grey5}),singleValue:()=>({color:D||q?K.colors.primary:K.colors.hero,paddingLeft:x[2]}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left",paddingLeft:x[2]}),menuPortal:L=>({...L,zIndex:10})},P={...Y,singleValue:L=>({...L,color:D||q?K.colors.primary:K.colors.hero}),menu:()=>({marginTop:x[1],marginLeft:-8}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left"})},E=he.find(L=>L.id===n.transactionId),Z=(L,ne)=>{const{transactionType:ee}=ne.transactionReviewLocalData;let Q=L.target;for(;Q;){if(Q.classList.contains("select-value-container")||Q.classList.contains("item-value-container")||Q.classList.contains("grouped-single-select-field__value-container")||Q.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Q.classList.contains("grouped-single-select-field__input")||Q.classList.contains("grouped-single-select-field__menu"))return;Q=Q.parentElement}ee!=null&&u(ne.transactionId,ee)},F=i.useRef(null),[X,J]=i.useState(void 0),[W,U]=i.useState("bottom");return i.useEffect(()=>{if(X===void 0)return;const L=d?.current?._outerRef??null,ne=()=>{const ee=F.current;if(ee==null||L==null)return;const Q=ee.getBoundingClientRect(),pe=L.getBoundingClientRect(),Ie=L.scrollTop+(Q.bottom-pe.top),j=L.scrollHeight-Ie;U(j>=288?"bottom":"top")};return ne(),window.addEventListener("resize",ne),L?.addEventListener("scroll",ne),()=>{window.removeEventListener("resize",ne),L?.removeEventListener("scroll",ne)}},[d,X]),t.jsxs(Ym,{onMouseEnter:T?void 0:()=>A(!0),onMouseLeave:T?void 0:()=>A(!1),children:[t.jsx(Qm,{className:"categorization-row-card",windowSize:S,isSelected:q,isQuickViewMode:T,isHovered:D,children:t.jsx(Xm,{children:z.map((L,ne)=>t.jsx(e1,{ref:X===ne?F:void 0,"data-testid":B("transaction-categorization-list-row",L.lineId),windowSize:S,isQuickViewMode:T,onClick:ee=>Z(ee,n),children:t.jsx(Gm,{isTransactionActivityEnabled:y,line:L,isHovered:D||q,isSelected:q,isQuickViewMode:T,lineIndex:ne,sectionId:c,transaction:n,currentTransaction:E,windowSize:S,accountsHierarchyList:de,classHierarchyList:_,allAccountList:V,allClassList:H,uncategorizedAccounts:ie,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:g,vendorLoadOptions:f,customStyle:Y,customStyleAutoComplete:P,recommendations:L.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:W,cotTracking:m,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,authParams:R,uploadReceiptStatus:ge?.[n.transactionId],onUploadTransactionReceipt:I,onDropdownClose:()=>J(void 0),onDropdownOpen:()=>J(ne)})},`${n.transactionId}.${L.lineId}`))},n.transactionId)},n.transactionId),y===!0&&!T&&t.jsx(w1,{className:"activity-log-icon",onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onClick:L=>{L.stopPropagation(),k(n.transactionId)},children:t.jsx(Ce,{title:ut.header.activity,placement:"bottom",children:t.jsx(b1,{style:{color:O?K.colors.primary:K.colors.hero}})})})]})},Gm=({accountsHierarchyList:e,allAccountList:n,allClassList:c,classHierarchyList:r,customStyle:h,customStyleAutoComplete:p,line:a,lineIndex:d,transaction:l,currentTransaction:m,windowSize:u,uncategorizedAccounts:g,isHovered:f=!1,isSelected:C=!1,isQuickViewMode:w=!1,sectionId:v,recommendations:k,vendorSearchAutoCompleteData:y,selectedTab:R,isCOTEnabled:I,menuPlacement:S,cotTracking:T,openTooltipId:D,setCurrentTransactionInAction:A,vendorLoadOptions:O,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:$,isTransactionActivityEnabled:M,onDropdownClose:N,onDropdownOpen:G,authParams:z,uploadReceiptStatus:V,onUploadTransactionReceipt:de})=>{const{transactionDate:_,transactionType:H,transactionTypeName:ie,memo:he}=l.transactionReviewLocalData,{setValue:xe}=Qo(),ge=i.useCallback((te,ve)=>{T?.onCOTView!=null&&T.onCOTView(a.lineId,l.transactionId,te,ve)},[T,a.lineId,l.transactionId]),q=a.lineDescription,K=i.useMemo(()=>{if(q||he)return[{title:ut.description,description:q||_t},{title:ut.header.memo,description:he||_t}]},[he,q]),Y=Mt(v,pt,d.toString()),P=Mt(v,De,d.toString()),E=Mt(v,et,d.toString()),Z=(te,ve)=>{if(w)return;let ke;switch(ve){case"vendor":ke=Y;break;case"category":ke=P;break;case"class":ke=E;break;default:return}xe(`${ke}.selectedOption`,te,{shouldValidate:!0,shouldDirty:!0})},F=wt(),X=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.customer?.id??"",logo:l.transactionReviewLocalData.customer?.logo,name:l.transactionReviewLocalData.customer?.name??""}:{id:a.customer?.id??"",logo:a.customer?.logo,name:a.customer?.name??""},[m,a.customer?.id,a.customer?.logo,a.customer?.name,l.transactionReviewLocalData.customer?.id,l.transactionReviewLocalData.customer?.logo,l.transactionReviewLocalData.customer?.name]),J=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.vendor?.id??"",logo:l.transactionReviewLocalData.vendor?.logo,name:l.transactionReviewLocalData.vendor?.name??""}:{id:a.vendor?.id??"",logo:a.vendor?.logo,name:a.vendor?.name??""},[m,a.vendor?.id,a.vendor?.logo,a.vendor?.name,l.transactionReviewLocalData.vendor?.id,l.transactionReviewLocalData.vendor?.logo,l.transactionReviewLocalData.vendor?.name]),W=a[et]?.classId,U=a[De]?.qboId??a[De]?.accountId,L=X?.id,ne=J?.id,ee=J?.name,[Q,pe]=i.useState(!W),[Ie,j]=i.useState(!U||a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!0),[se,je]=i.useState(!ne||!L),Ne=te=>k?.find(ve=>ve.vendor?.qboId===te||ve.vendor?.id===te||ve.vendor?.name===te)?.vendor?.reason??"",Ee=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],Oe=os(e,Ee),we=ns(r,Ee),at=te=>n.filter(ve=>ve.qboId===te)[0]?.qboId,st=te=>c.filter(ve=>ve.classId===te)[0]?.accountingClassNumber??void 0,qe=i.useCallback(te=>Sn(g,te,$===!0?["income"]:void 0),[g,$]),[me,Me]=i.useState(!1),[Rt,mt]=i.useState(!1),[Ut,gt]=i.useState(!1),[$e,re]=i.useState(0),[Le,le]=i.useState(null),[_e,dt]=i.useState([]),[vt,He]=i.useState(void 0),rn=i.useRef(null),[ln,Dt]=i.useState(0),[qt,Kt]=i.useState(0),cn=al()?.url,[Rn,yn]=i.useState(!1),Zs=(te,ve)=>{A({transactionId:l.transactionId,lineItemId:a.lineId}),O(te,ve)},hi=()=>{je(!(ne||L)),Me(!1),N?.()},pi=()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0),yn(!1),N?.()},mi=()=>{pe(!W),mt(!1),N?.()},Qs=()=>{w||(ne||L)&&(Me(!0),G?.())},Xs=()=>{w||(mt(!0),G?.())},er=()=>{w||(yn(!0),G?.())};i.useEffect(()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0)},[U]),i.useEffect(()=>{pe(!W)},[W]),i.useEffect(()=>{je(!(ne||L))},[ne,L]);const tr=l.transactionReviewLocalData.selectedEntity,nr=l.transactionReviewLocalData.lineItemById[a.lineId].selectedEntityLine,Ke=m!=null&&Qt(m)===!0?tr:nr,Dn=i.useMemo(()=>{const te=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],ve=y.entityAutoCompleteView;return{selectedOption:Ke?.qboId??Ke?.id,defaultOptions:Go(ve,Ke,te??[])}},[Ke,l.transactionReviewLocalData.lineItemById,a.lineId,y.entityAutoCompleteView]),or=()=>Ke!=null&&Ke.logo!=null?t.jsx(Xa,{photoUrl:Ke.logo.toString(),styles:{width:Nt.nameLogoWidth.valuePx(u),height:Nt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})})}):Ke!=null&&Ke.name!=null?t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})}):null,gi=(te,ve)=>{if(ve==null||!ve)return;let ke=[];return te.forEach(jt=>{ke=ke.concat(jt.options)}),ke.find(jt=>jt.value===ve)?.label??ve},xi=gi(we,W),fi=gi(Oe,U),St=R==="review",yi=lo("vendor",Dn.defaultOptions,Dn.selectedOption),Ci=lo("category",Oe,U),wi=lo("class",we,W),ir=te=>{const ve=w?Hs:ui(te);return ve.map((ke,jt)=>{const lt=`${l.transactionId}_${ke.key}_${a.lineId}`;if(d>0&&m!=null&&Qt(m)===!0&&ke.key==="vendor")return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);if(d>0&&(ke.key==="transaction_type"||ke.key==="payment_account"||ke.key==="memo_and_receipt"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);switch(ke.key){case"activity":return t.jsx(Js,{},lt);case"vendor":default:return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w,className:"item-value-container",children:[!w&&t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"vendor",isFirstColumn:!0,isEnabled:!!Ke?.isPreFilled,isMisCategorized:yi,onRecommendationClick:Z,selectedValue:ne,selectedValueLabel:ee,isReviewTab:St,isAccountOptionDisabled:qe,existingOption:{label:m!=null&&Qt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Qt(m)===!0?m?.vendor?.id:void 0},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:se===!0?t.jsx(Io,{isHovered:f,isQuickViewMode:w,children:t.jsxs(ko,{onClick:Pe=>{Pe.stopPropagation(),!w&&(G?.(),je(!1),Me(!0))},"data-testid":B("add-vendor-button",v),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addPayee]})}):me===!0?t.jsx($t,{onClickAway:hi,children:t.jsx(f1,{"data-testid":B("vendor-selection-dropdown-container",Mt(v,pt,d.toString())),children:t.jsx(ul,{name:Y,placeholder:ut.addPayee,valueToInfo:Ne,defaultValue:{selectedOption:Dn.selectedOption,defaultOptions:Dn.defaultOptions},type:"vendor",autoFocus:!se,style:{width:"100%"},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:me,onMenuClose:hi,registerOptions:{required:!1},loadOptions:Zs,showCOT:I,onCOTView:ge,menuPlacement:S})})}):t.jsx(C1,{children:t.jsxs($o,{isHovered:f,isQuickViewMode:w,showOutline:!w&&yi&&Ke?.isPreFilled!==!0&&!C&&St,children:[or(),t.jsx(x1,{onClick:Qs,"data-testid":B("vendor-name-text",v),children:Ke!=null&&Ke.name?t.jsx(it,{text:Ke.name,itemTextStyle:{color:f?F.colors.primary:F.colors.hero}}):t.jsx(y1,{children:_t})})]})})})]},lt);case"category":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"category",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[De]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:Ci,onRecommendationClick:Z,selectedValue:U,selectedValueLabel:fi,existingOption:{label:Pe?.account?.accountName,value:Pe?.account?.qboId??Pe?.account?.accountId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Ie===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),j(!1),yn(!0))},"data-testid":B("category-selection-field",P),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addCategory]})}):Rn===!0?t.jsx($t,{onClickAway:pi,children:t.jsx(ja,{isHovered:f,"data-testid":B("category-selection-dropdown-container",P),children:t.jsx(Ai,{name:P,placeholder:ut.addCategory,valueToId:Qe=>at(Qe),type:"category",pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:U,allOptions:Oe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Rn,autoFocus:!Ie&&(!U||a[De]?.qboId!=null&&[g.expense?.qboId,g.income?.qboId].includes(a[De].qboId)),onMenuClose:pi,customStyleConfig:h,disableCurrentOption:qe,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:Ci&&a[De]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{onClick:er,"data-testid":B("category-label-text",P),children:t.jsx(it,{text:fi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"class":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"class",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[et]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:wi,onRecommendationClick:Z,selectedValue:W,selectedValueLabel:xi,existingOption:{label:Pe?.class?.className,value:Pe?.class?.classId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Q===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),pe(!1),mt(!0))},"data-testid":B("class-selection-field",E),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addClass]})}):Rt===!0?t.jsx($t,{onClickAway:mi,children:t.jsx(ja,{isHovered:f,"data-testid":B("class-selection-dropdown-container",E),children:t.jsx(Ai,{name:E,placeholder:ut.addClass,valueToId:Qe=>st(Qe),type:"class",showCOT:I,defaultValue:{selectedOption:W,allOptions:we},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",menuIsOpen:Rt,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Q&&!W,customStyleConfig:h,onMenuClose:mi,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:wi&&a[et]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{"data-testid":B("class-selection-field",E),onClick:Xs,children:t.jsx(it,{text:xi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"date":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Uo,{"data-testid":B("date-field",Mt(v,et,d.toString())),children:t.jsx(jo,{style:{color:f?F.colors.primary:F.colors.hero},children:_!=null?_.format(Km.visual.MMMDCommaYYYYformat):null})})})},lt);case"transaction_type":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,"data-testid":B("transaction-type-field",Mt(v,et,d.toString())),isLastItem:jt===ve.length-1,children:ie!=null?t.jsx(cl,{textColor:f?new Zo(F.colors.primary):dl(void 0,F),text:ie??H}):null})},lt);case"amount":{const Pe=Ze("0,0.[00]",a.amount,!0);return t.jsx(nt,{windowSize:u,style:{marginRight:te&&!w?x[0]:x[4]},wrapperWidth:ke.width,isQuickViewMode:w,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,style:{justifyContent:"flex-end"},children:t.jsx(Uo,{"data-testid":B("transaction-amount-field",Mt(v,et,d.toString())),style:{color:f?F.colors.primary:F.colors.hero},children:Pe})})},lt)}case"payment_account":{if(!(H==="expense"||H==="check"||H==="bill_payment"||H==="vendor_credit"||H==="credit_card_credit"||H==="deposit"||H==="sales_receipt"||H==="refund"||H==="payment"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(jo,{style:{textAlign:"center",width:"100%"},children:_t})})},lt);const Pe=m?.account?.accountName,Qe=m?.paymentType,Cn=m?.paymentTypeName,On=Qe==="credit_card"?o1:Qe==="cash"?i1:Qe==="check"?s1:Qe==="ach"?k1:a1,ct={title:Bt,items:[{text:ut.paymentAccountTooltip.accountLabel+wa,amount:Pe??_t},...Cn!=null?[{text:ut.paymentAccountTooltip.methodLabel+wa,amount:Cn}]:[]]};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Ce,{display:"flex",placement:"bottom",variant:"list-description",data:ct,title:Pe??_t,enterDelay:600,style:{overflow:"hidden",minWidth:0},children:t.jsxs(n1,{style:{color:f?F.colors.primary:F.colors.hero},children:[On!=null&&t.jsx(On,{style:{color:f?F.colors.primary:F.colors.hero}}),t.jsx(jo,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Pe??_t})]})})})},lt)}case"memo_and_receipt":{const Pe=m?.attachments??[],Qe=V?.fetchState==="In-Progress",Cn=ct=>{if(ct.stopPropagation(),Pe.length===0||m==null)return;if(cn==null){console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");return}He(Pe[0]),re(0),gt(!0);const wn=Pe.map(Jt=>Jt.id),Mn=`${cn}/transaction_attachments`;gl(Mn,z,{transaction_key:{transaction_id:m.id,transaction_type:m.type},attachment_ids:wn}).then(Jt=>{dt(Jt),Jt.length>0&&le(Jt[0])})},On=ct=>{ct.stopPropagation(),rn.current?.click()};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,"data-testid":B("memo-field",Mt(v,et,d.toString())),children:t.jsxs(v1,{onClick:ct=>ct.stopPropagation(),children:[K!=null?t.jsx(Ce,{display:"flex",placement:"bottom",data:K,variant:"multi-information-points",style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsx(l1,{style:{color:f?F.colors.primary:F.colors.hero}})}):t.jsx(r1,{style:{margin:0},children:_t}),Qe?t.jsx(Jo,{size:"Small",style:{display:"flex"},start:!0}):Pe.length===0?t.jsx(Ce,{display:"flex",placement:"bottom",title:Wm,enterDelay:600,children:t.jsx(Kn,{style:{margin:0},onClick:ct=>{ct.stopPropagation(),On(ct)}})}):Pe.length===1?t.jsx(Ce,{display:"flex",placement:"bottom",title:Um,enterDelay:600,children:t.jsx(S1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}):t.jsx(Ce,{display:"flex",placement:"bottom",title:qm,enterDelay:600,children:t.jsx(j1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}),t.jsx(Ko,{name:`transaction-receipt-${l.transactionId}`,fileRef:rn,sizeLimit:Gn,multiple:!0,acceptableTypes:[...cs],onFileChange:ct=>{const wn=ct.target.files;if(wn!=null&&wn.length>0){const Mn=Array.from(wn);de(R,l.transactionId,H??Bt,Mn,Mn.map(Jt=>Jt.name))}},onFileSizeError:()=>{}})]})},lt)}}})},rt=m?.attachments??[],so=vt??rt[0];return t.jsxs(t.Fragment,{children:[ir(M),Ut&&rt.length>0&&so!=null?Wl.createPortal(t.jsx(sl,{allFiles:_e,fileSource:Le,file:so,title:so.fileName,attachments:rt,showNavigation:!1,setFileSource:le,setShowFullScreenView:gt,onCrossClick:()=>{gt(!1),le(null),dt([]),He(void 0),re(0)},onNextClick:()=>{const te=($e+1)%rt.length;re(te),He(rt[te]),_e[te]!=null&&le(_e[te])},onPreviousClick:()=>{const te=($e-1+rt.length)%rt.length;re(te),He(rt[te]),_e[te]!=null&&le(_e[te])},setSelectedFileAttachment:te=>{He(typeof te=="function"?ve=>te(ve??rt[0]):te)},handleTouchStart:te=>Dt(te.targetTouches[0].clientX),handleTouchMove:te=>Kt(te.targetTouches[0].clientX),handleTouchEnd:()=>{if(ln-qt>50&&qt!==0&&$e<rt.length-1){const te=$e+1;re(te),He(rt[te]),_e[te]!=null&&le(_e[te]),Dt(0),Kt(0)}else if(ln-qt<-50&&qt!==0&&$e>0){const te=$e-1;re(te),He(rt[te]),_e[te]!=null&&le(_e[te]),Dt(0),Kt(0)}}}),document.body):null]})},ba=({isEnabled:e,isReviewTab:n,isMisCategorized:c,hasRecommendations:r,isTooltipVisible:h=!1})=>e?n?h?t.jsx(u1,{}):t.jsx(c1,{}):h?t.jsx(d1,{}):t.jsx(h1,{className:"ai-icon-selected-plain"}):!e&&c||r?h?t.jsx(m1,{}):t.jsx(p1,{}):null,va=({isFirstColumn:e,children:n})=>t.jsx(Gs,{isFirstColumn:e,children:n}),So=({recommendations:e,isCOTEnabled:n,type:c,isReviewTab:r,selectedValueLabel:h,isFirstColumn:p,isEnabled:a=!1,isMisCategorized:d=!1,selectedValue:l,existingOption:m,cotTracking:u,lineId:g,openTooltipId:f,transactionId:C,isAccountOptionDisabled:w,onRecommendationClick:v,setOpenTooltipId:k})=>{const y=i.useMemo(()=>`${C}:${g}:${c}`,[C,g,c]),R=f===y,I=wl().analytics,{createAlternateRecommendationCallback:S}=bl(),T=i.useCallback(N=>{const G=e[1],z=e[0];S(c,{currentValue:h??Bt,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:g,onCOTView:(V,de,_,H)=>{u.onCOTView?.(V,de,_,H)}}:void 0},G,z)(N)},[S,e,h,r,c,u,g,C]),D=vl(e,c,n,m,"list_page",r?"pending_review":"auto_categorized",v,T,l,w),A=Sl(e,c),O=i.useCallback(()=>{k(y);const N=D?.recommendations[0]?.cot??[],G=D?.recommendations[1]?.cot??[],z=G.length>0;if(I.trackTransactionCotView({recommendationFor:c,currentValue:h??Bt,recommendation:D?.recommendations[0]?.name??Bt,recommendationCot:N,isRecommendationCotAvailable:N.length>0,recommendationReason:D?.recommendations[0]?.reason??Bt,recommendationConfidencePercentage:D?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:ji(ki(D?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:D?.recommendations[1]?.name??Bt,alternativeRecommendationCot:G,isAlternativeRecommendationCotAvailable:z,alternativeRecommendationReason:D?.recommendations[1]?.reason??Bt,alternativeRecommendationConfidencePercentage:D?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:z?ji(ki(D?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const V=jl(D);V!=null&&u.onCOTView(g,C,c,V)}},[I,D,r,h,c,g,C,y,k]),b=i.useCallback(()=>{f===y&&k(void 0)},[f,y,k]),$=i.useMemo(()=>!l||!A?!1:e.some(N=>c==="vendor"&&N.vendor!=null?N.vendor.id===l||N.vendor.qboId===l:c==="category"&&N.account!=null?N.account.qboId===l||N.account.accountId===l:c==="class"&&N.class!=null?N.class.classId===l:!1),[l,A,e,c]);if(!A)return t.jsx(Gs,{isFirstColumn:p});const M=a||$;return D?t.jsx(va,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:D,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:O,onClose:b,children:t.jsx(g1,{children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})})}):t.jsx(va,{isFirstColumn:p,children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})},Ks=({isTransactionActivityEnabled:e})=>{const n=Te(),c=ui(e);return t.jsx(Zm,{windowSize:n,children:c.map((r,h)=>{const p=`${h}${Hm}${r.key}`;switch(r.key){case"activity":return t.jsx(Js,{},p);case"vendor":return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,style:{paddingLeft:o.sp3},children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsxs(Uo,{children:[t.jsx(Xo,{width:x[4],height:x[4]}),t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})]})})},p);default:return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})})},p)}})})},Js=s.div`
|
|
1250
1250
|
width: ${o.sp0};
|
|
1251
1251
|
height: ${o.sp0};
|
|
1252
1252
|
`,Ym=s.div`
|
|
@@ -1553,7 +1553,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1553
1553
|
min-height: 100%;
|
|
1554
1554
|
flex-direction: column;
|
|
1555
1555
|
row-gap: ${o.sp3};
|
|
1556
|
-
`,{common:T1,transactionDetail:{notCategorizedTooltipText:A1}}=Ae.getLocalizedStrings(),To={rowGap:new ae(x[0],x[2],x[3])},E1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,isCOTEnabled:h,isDisabled:p,vendorSearchAutoCompleteActions:a,isTransactionActivityEnabled:d,vendorSearchAutoCompleteData:l,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:g,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:w,containerRef:v,cotTracking:k,isUncategorizedExpenseCategoryEnabled:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(void 0),{fetchState:O,uiState:b,transactionLocalData:$,selectedCheckBoxTransactionIds:M,transactionIdsWithUnsavedData:N,transactions:G,uncategorizedAccounts:z}=n;Tn({componentName:`expense_automation.transaction_categorization.${e}`,enabled:O==="Completed"});const V=i.useRef(null),de=i.useRef({}),{control:_}=Qo();i.useEffect(()=>{V.current?.resetAfterIndex(0,!0)},[S,V,$]),i.useEffect(()=>{V.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const H=i.useCallback(L=>{if(de.current?.[L]!=null){const Q=S==="small"&&b.pageToken==null&&L===$.length-1?To.rowGap.value("medium-regular"):To.rowGap.value(S);return de.current[L]+Q}if($[L]==null)return 0;const
|
|
1556
|
+
`,{common:T1,transactionDetail:{notCategorizedTooltipText:A1}}=Ae.getLocalizedStrings(),To={rowGap:new ae(x[0],x[2],x[3])},E1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,isCOTEnabled:h,isDisabled:p,vendorSearchAutoCompleteActions:a,isTransactionActivityEnabled:d,vendorSearchAutoCompleteData:l,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:g,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:w,containerRef:v,cotTracking:k,isUncategorizedExpenseCategoryEnabled:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(void 0),{fetchState:O,uiState:b,transactionLocalData:$,selectedCheckBoxTransactionIds:M,transactionIdsWithUnsavedData:N,transactions:G,uncategorizedAccounts:z}=n;Tn({componentName:`expense_automation.transaction_categorization.${e}`,enabled:O==="Completed"});const V=i.useRef(null),de=i.useRef({}),{control:_}=Qo();i.useEffect(()=>{V.current?.resetAfterIndex(0,!0)},[S,V,$]),i.useEffect(()=>{V.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const H=i.useCallback(L=>{if(de.current?.[L]!=null){const Q=S==="small"&&b.pageToken==null&&L===$.length-1?To.rowGap.value("medium-regular"):To.rowGap.value(S);return de.current[L]+Q}if($[L]==null)return 0;const ne=$[L].transactionReviewLocalData,ee=Object.keys(ne.lineItemById).length;return ee!=null&&!isNaN(ee)&&ee>1?ya*ee+To.rowGap.value(S)*(ee-1):ya},[$,S,b.pageToken,b.sortKey,b.sortOrder]),ie=i.useCallback((L,ne)=>{de.current={...de.current,[L]:ne},V.current?.resetAfterIndex(0,!0)},[S,V,$,b.sortKey,b.sortOrder]),he=i.useCallback(()=>{(b.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&w(e,b.searchString,!0,b.pageToken,!0,!1)},[n.refreshStatus.fetchState,w,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),xe=i.useCallback(()=>{b.pageToken!=null&&he()},[he,b.pageToken,b.sortKey,b.sortOrder]),ge=Gr(L=>C(e,{scrollPosition:{scrollTop:L}}),1e3,{trailing:!0}),q=L=>L<n.transactionLocalData.length,K=(L,ne)=>{f(e,{sortOrder:ne,sortKey:L}),w(e,b.searchString,!1,null,!1,!0)},Y=L=>{if(e==="autoCategorized")return!M.includes(L);const ne=$.find(Q=>Q.transactionId===L)?.transactionReviewLocalData,ee=G.find(Q=>Q.id===L);return ee!=null&&ne!=null?Bl(ee,ne,z,y)?y===!0&&Li(z,ne.lineItemById,["expense"])?N.includes(L)===!1:!1:!0:M.length===0?!0:!M.includes(L)};let P=[],E=[];(O==="Completed"||n.transactionLocalData.length>0)&&(E=n.transactionLocalData.map((L,ne)=>{const ee=Y(L.transactionId);let Q=!1;y===!0&&ee===!0&&e==="review"&&Li(z,L.transactionReviewLocalData.lineItemById,["expense"])&&(Q=!N.includes(L.transactionId));const pe=L.transactionReviewLocalData;return{label:t.jsx(Jm,{isTransactionActivityEnabled:d,transactionView:n,sectionId:`${r}.${ne}.${Us}`,transaction:L,authParams:c,onTransactionCategorizationRowClick:g,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:a,vendorSearchAutoCompleteData:l,selectedTab:e,containerRef:v,listContainerRef:V,isCOTEnabled:h,cotTracking:k,openTooltipId:D,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I},`${L.transactionId}.${pe.transactionType}`),value:L.transactionId,defaultChecked:!1,groupLabel:!1,isException:Q,exceptionMode:Q===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:ee===!0?"readonly":void 0,exceptionType:Q===!0?"alert":void 0,exceptionInfo:Q===!0?A1:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),P=E.map(L=>L.value));const Z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:F,subTitle:X}=Je("transaction_categorization").allDoneText,J=$.map(L=>L.transactionId),W=i.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),U=i.useMemo(()=>$.reduce((L,ne)=>{const ee=Object.keys(ne.transactionReviewLocalData.lineItemById).length;return L+(ee>0?ee:1)},0)<n.totalCountByTab[e]?$.length+1:$.length,[$,n.totalCountByTab,e]);return t.jsx(_1,{windowSize:S,"data-testid":B("transaction-categorization-list-wrapper"),children:t.jsx(P1,{windowSize:S,"data-testid":B("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(F1,{windowSize:S,"data-testid":B("transaction-categorization-reload-page"),children:[t.jsx(z1,{onClick:()=>w(e,void 0,!0,null,!1,!0),"data-testid":B("transaction-categorization-reload-icon"),children:t.jsx(qo,{})}),t.jsx(N1,{"data-testid":B("transaction-categorization-reload-label"),children:T1.reloadPage.label})]}):O==="Completed"&&$.length===0?t.jsx(Tt,{tab:"transaction_categorization",title:F,subTitle:X,"data-testid":B("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&$.length===0?t.jsx(I1,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:O,onColumnSortConfigChanged:K,"data-testid":B("transaction-categorization-list-empty-table"),isTransactionActivityEnabled:d}):t.jsx(B1,{windowSize:S,"data-testid":B("transaction-categorization-list-view"),children:t.jsx(Qa,{control:_,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:L,ref:ne,onChange:ee}})=>t.jsx(Ys.Provider,{value:{value:L,mode:"off",allCheckBoxValues:P,index:0,isQuickViewMode:T,sortKey:b.sortKey,sortOrder:b.sortOrder,fetchState:O,isDisabled:p,groupLabelCheckBox:Z,isTransactionActivityEnabled:d,onColumnSortConfigChanged:K,ref:ne,onChange:ee,selectedTab:e},children:t.jsx(to,{children:({height:Q,width:pe})=>t.jsx(Yr,{isItemLoaded:q,itemCount:W,loadMoreItems:xe,children:({onItemsRendered:Ie,ref:j})=>t.jsx(no,{ref:se=>{j(se),V.current=se},height:Q,itemCount:U,itemKey:se=>`${$[se]?.transactionId??""}-row-${se}`,innerElementType:R1,onItemsRendered:Ie,width:pe,style:{willChange:"auto"},overscanCount:sm,itemSize:H,itemData:{checkboxes:E,value:L,allCheckBoxValues:P,groupLabelCheckBox:Z,categorizationGroupValue:J,transactionLocalData:$,isQuickViewMode:T,mode:"always_on",setRowHeight:ie,isItemLoaded:q,ref:j,onChange:ee,selectedCheckBoxTransactionIds:M,isTransactionActivityEnabled:d},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:se})=>{ge(se)},children:O1})})})})})})})})},R1=e=>{const{isQuickViewMode:n,value:c,allCheckBoxValues:r,groupLabelCheckBox:h,index:p,isDisabled:a,fetchState:d,sortKey:l,sortOrder:m,mode:u,isTransactionActivityEnabled:g,ref:f,onChange:C,onColumnSortConfigChanged:w}=D1(),{children:v,style:k,...y}=e;return d==="Completed"?t.jsxs(V1,{ref:f,style:{...k,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...y,children:[t.jsx(H1,{children:t.jsx(Bo,{selectionLimit:Ln,value:c,checkBox:{label:t.jsx(M1,{isQuickViewMode:n,children:t.jsx(Ws,{isTransactionActivityEnabled:g,sortConfig:{sortKey:l,sortOrder:m},isDisabled:a,onColumnSortConfigChanged:w})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:h,allCheckBoxValues:r,mode:n?"off":u,draggable:!1,checkBoxStyle:n?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:p,onChangeHandler:R=>is({event:R,value:c,allCheckBoxValues:r,groupLabelCheckBox:h,onChange:C}),ref:f})}),t.jsx(W1,{children:v})]},`${r[p]}-${p}`):null},Ys=i.createContext(void 0),D1=()=>{const e=i.useContext(Ys);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},O1=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{checkboxes:h,value:p,groupLabelCheckBox:a,categorizationGroupValue:d,allCheckBoxValues:l,transactionLocalData:m,isQuickViewMode:u,isItemLoaded:g,setRowHeight:f,ref:C,onChange:w,selectedCheckBoxTransactionIds:v,isTransactionActivityEnabled:k}=c,y=i.useRef(null),R=Te();if(i.useEffect(()=>{y.current?.firstElementChild!=null&&f(e,y.current.firstElementChild.clientHeight)},[e,y,R,m[e]?.transactionReviewLocalData]),g(e)===!0){const I=h[e],S=r!=null&&r===d[e];return t.jsx(Ia,{isPanelSelected:S,isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:y,children:t.jsx(Bo,{selectionLimit:Ln,checkBox:u===!0?{...I,isException:!1}:I,value:p,groupLabelCheckBox:a,allCheckBoxValues:l,mode:u===!0||I.isDisabled==="readonly"||v.includes(I.value)===!1&&v.length>=Ln?"off":"always_on",draggable:!1,isDisabled:I.isDisabled,checkBoxStyle:u===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:u===!0?{display:"none"}:{padding:20},name:`${on}.${p}`,ref:C,index:e,onChangeHandler:T=>is({event:T,value:p,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:w})})},d[e])}else return t.jsx(Ia,{isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:y,children:t.jsx(Bo,{checkBox:{label:t.jsx(Ks,{isTransactionActivityEnabled:k}),value:"loading",defaultChecked:!1,groupLabel:!1},value:p,groupLabelCheckBox:a,allCheckBoxValues:l,mode:"off",draggable:!1,checkBoxStyle:u===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:u===!0?{display:"none"}:{padding:20},name:"loading-placeholder",index:e,onChangeHandler:()=>{}})},Ua())},M1=s.div`
|
|
1557
1557
|
flex: 1;
|
|
1558
1558
|
width: auto;
|
|
1559
1559
|
padding-left: ${({isQuickViewMode:e})=>e===!0?o.sp8:o.sp0};
|
|
@@ -1622,7 +1622,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1622
1622
|
position: relative;
|
|
1623
1623
|
width: auto;
|
|
1624
1624
|
height: 100%;
|
|
1625
|
-
`,U1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:p,isCOTEnabled:a,isTransactionActivityEnabled:d,setCurrentFooterFormId:l,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:w,onUpdateSelectedCheckboxTransactionIds:v,onFetchRecommendationsForEntityCategorization:k,onFetchRecommendationsForEntityCategorizationWithCustomer:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const[S,T]=i.useState({transactionId:void 0,lineItemId:void 0}),D=i.useRef(),A=i.useRef({}),{useDynamicConfig:O}=Ka(),{configValue:b}=O(Ja.enableUncategorizedExpenseCategory),$=b?.uncategorized_expense_category_enabled===!0,M=(Y,P,E,Z)=>{const F={...A.current};F[P]==null&&(F[P]=[]);let X=F[P].findIndex(J=>J.lineId===Y);if(X===-1){const J={lineId:Y,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};F[P].push(J),X=F[P].length-1}else{const J=F[P][X];F[P][X]={...J,category:{...J.category,recommendationTypesViewed:[...J.category.recommendationTypesViewed]},class:{...J.class,recommendationTypesViewed:[...J.class.recommendationTypesViewed]},vendor:{...J.vendor,recommendationTypesViewed:[...J.vendor.recommendationTypesViewed]}}}Z!=null&&Z!==""&&!F[P][X][E].recommendationTypesViewed.includes(Z)&&F[P][X][E].recommendationTypesViewed.push(Z),A.current=F},{transactions:N,transactionLocalData:G,accountsHierarchyList:z,classHierarchyList:V,accountList:de,classList:_,selectedCheckBoxTransactionIds:H,uncategorizedAccounts:ie}=n,he=an({mode:"all",reValidateMode:"onChange",defaultValues:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),values:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});i.useEffect(()=>()=>{l("expenseAutomationPage")},[]),i.useEffect(()=>{H.length>0?l(vo):l("expenseAutomationPage")},[H,l]);const xe=he.handleSubmit(Y=>{const P=Y[Xn],E=A.current;w(e,P,E),P.forEach(Z=>{delete A.current[Z]})}),ge=async(Y,P)=>{if(Y!=null){if(Y===Xn){const E=he.getValues(Xn);if(E.length<H.length){v(e,E);return}if(E.length===Ln){v(e,E);return}const Z=E[E.length-1],F=P[on].findIndex(J=>J.transactionId===Z),X=he.getValues(`${on}.${F}.lineInfo`);if(X!=null){let J=!1;if(X.every(W=>(J=Sn(ie,W[De].selectedOption,$?["income"]:void 0),!!W[De].selectedOption&&W[De].selectedOption!=null&&!J&&!!W[et].selectedOption&&!!W[pt].selectedOption))===!0){v(e,E);return}else{const W=E.filter(U=>U!==Z);v(e,W);return}}return}if(Y.includes(De)===!0||Y.includes(et)===!0){const E=parseInt(Y.split(".")[1]),Z=parseInt(Y.split(".")[3]),F=he.getValues(`${on}.${E}.lineInfo`),X=F[Z];if(Y.includes(De)||Y.includes(et)){const{transactionId:J,lineId:W,recommendations:U}=X;if(F!=null){const L=X[De].selectedOption,
|
|
1625
|
+
`,U1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:p,isCOTEnabled:a,isTransactionActivityEnabled:d,setCurrentFooterFormId:l,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:w,onUpdateSelectedCheckboxTransactionIds:v,onFetchRecommendationsForEntityCategorization:k,onFetchRecommendationsForEntityCategorizationWithCustomer:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const[S,T]=i.useState({transactionId:void 0,lineItemId:void 0}),D=i.useRef(),A=i.useRef({}),{useDynamicConfig:O}=Ka(),{configValue:b}=O(Ja.enableUncategorizedExpenseCategory),$=b?.uncategorized_expense_category_enabled===!0,M=(Y,P,E,Z)=>{const F={...A.current};F[P]==null&&(F[P]=[]);let X=F[P].findIndex(J=>J.lineId===Y);if(X===-1){const J={lineId:Y,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};F[P].push(J),X=F[P].length-1}else{const J=F[P][X];F[P][X]={...J,category:{...J.category,recommendationTypesViewed:[...J.category.recommendationTypesViewed]},class:{...J.class,recommendationTypesViewed:[...J.class.recommendationTypesViewed]},vendor:{...J.vendor,recommendationTypesViewed:[...J.vendor.recommendationTypesViewed]}}}Z!=null&&Z!==""&&!F[P][X][E].recommendationTypesViewed.includes(Z)&&F[P][X][E].recommendationTypesViewed.push(Z),A.current=F},{transactions:N,transactionLocalData:G,accountsHierarchyList:z,classHierarchyList:V,accountList:de,classList:_,selectedCheckBoxTransactionIds:H,uncategorizedAccounts:ie}=n,he=an({mode:"all",reValidateMode:"onChange",defaultValues:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),values:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});i.useEffect(()=>()=>{l("expenseAutomationPage")},[]),i.useEffect(()=>{H.length>0?l(vo):l("expenseAutomationPage")},[H,l]);const xe=he.handleSubmit(Y=>{const P=Y[Xn],E=A.current;w(e,P,E),P.forEach(Z=>{delete A.current[Z]})}),ge=async(Y,P)=>{if(Y!=null){if(Y===Xn){const E=he.getValues(Xn);if(E.length<H.length){v(e,E);return}if(E.length===Ln){v(e,E);return}const Z=E[E.length-1],F=P[on].findIndex(J=>J.transactionId===Z),X=he.getValues(`${on}.${F}.lineInfo`);if(X!=null){let J=!1;if(X.every(W=>(J=Sn(ie,W[De].selectedOption,$?["income"]:void 0),!!W[De].selectedOption&&W[De].selectedOption!=null&&!J&&!!W[et].selectedOption&&!!W[pt].selectedOption))===!0){v(e,E);return}else{const W=E.filter(U=>U!==Z);v(e,W);return}}return}if(Y.includes(De)===!0||Y.includes(et)===!0){const E=parseInt(Y.split(".")[1]),Z=parseInt(Y.split(".")[3]),F=he.getValues(`${on}.${E}.lineInfo`),X=F[Z];if(Y.includes(De)||Y.includes(et)){const{transactionId:J,lineId:W,recommendations:U}=X;if(F!=null){const L=X[De].selectedOption,ne=X[et].selectedOption,ee=X[pt].selectedOption,Q=X[pt].selectedOption,pe=X[pt].defaultOptions,Ie=pe?.find(me=>me.options?.find(Me=>Me.value===ee))?.options?.find(me=>me.value===ee)?.label,j=pe?.find(me=>me.options?.find(Me=>Me.value===Q))?.options?.find(me=>me.value===Q)?.label,se=h.entityAutoCompleteView.vendor.find(me=>me.qboId===ee),je=h.entityAutoCompleteView.customer.find(me=>me.qboId===Q),Ne=U.find(me=>me.vendor?.qboId===ee)?.vendor,Ee=ee||se?.qboId||Ne?.qboId?{id:ee??se?.qboId??Ne?.qboId??"",name:Ie??se?.name??Ne?.name??"",logo:se?.logo??Ne?.logo}:void 0,Oe=Q||je?.qboId?{id:Q??je?.qboId??"",name:j??je?.name??"",logo:je?.logo}:void 0,we=de.find(me=>me.qboId===L),at=_.find(me=>me.classId===ne),st=n.transactionLocalData.find(me=>me.transactionId===J)?.transactionReviewLocalData.lineItemById[W].account,qe=n.transactionLocalData.find(me=>me.transactionId===J)?.transactionReviewLocalData.lineItemById[W].class;m(e,J,W,N,Ee?.id,Oe?.id,Y.includes(De)&&we!=null?{...we,isPreFilled:!1}:st,Y.includes(et)&&at!=null?{...at,isPreFilled:!1}:qe,void 0,U,$)}return}}if(Y.includes(pt)){const E=parseInt(Y.split(".")[1]),Z=parseInt(Y.split(".")[3]),F=he.getValues(`${on}.${E}.lineInfo`);if(F!=null){const X=F[Z],{transactionId:J,recommendations:W}=X,U=X[pt].selectedOption,L=X[pt].selectedOption,ne=X[pt].defaultOptions,ee=ne?.flatMap(we=>we.options)?.find(we=>we.value===U)?.label,Q=ne?.flatMap(we=>we.options)?.find(we=>we.value===L)?.label,pe=h.entityAutoCompleteView.vendor.find(we=>we.qboId===U),Ie=h.entityAutoCompleteView.customer.find(we=>we.qboId===L),j=W.find(we=>we.vendor?.qboId===U)?.vendor,se=U!==""&&U!=null?U:ee!==""&&ee!=null?ee:"",je=(pe?.qboId!=null&&pe.qboId!==""?pe.qboId:null)??(j?.qboId!=null&&j.qboId!==""?j.qboId:null)??(U!=null&&U!==""?U:null),Ne={id:je??ee??"",name:ee??pe?.name??j?.name??"",logo:pe?.logo??j?.logo},Ee=Ie?.qboId!=null&&Ie.qboId!==""?{id:Ie.qboId??L??"",name:Q??Ie.name??"",logo:Ie.logo}:void 0,Oe=N.find(we=>we.id===J);if(Oe!=null){const we=n.transactionLocalData.find(Me=>Me.transactionId===Oe.id)?.transactionReviewLocalData,at=we?.lineItemById[X.lineId],st=Qt(Oe)===!0?we?.selectedEntity:at?.selectedEntityLine,qe=Ee?.id!=null&&Ee.id!==""?{id:Ee.id,name:Ee.name,type:"customer",qboId:Ee.id,zeniId:Ee.id,logo:Ee.logo}:Ne.id!==""&&Ne.id!=null?{id:se,name:ee??se,type:"vendor",qboId:se,zeniId:se,logo:Ne.logo,isPreFilled:st?.id===je&&st?.isPreFilled}:void 0,me={transactionId:{id:Oe.id,type:Oe.type},transaction:Oe,lineIds:Oe.type!=="journal_entry"?Oe.lines?.map(Me=>Me.id)??[]:[X.lineId]};qe?.type==="customer"?y(X.amount.amount,me,!1,e,qe,Ee,$):k(X.amount.amount,me,!1,e,qe,Ne,$)}}p.onCancelAutoComplete?.();return}}};i.useEffect(()=>{const Y=he.watch((P,{name:E})=>{E!=null&&P!=null&&An(()=>ge(E,P))});return()=>{Y.unsubscribe()}}),i.useEffect(()=>{if(h.entityAutoCompleteView.fetchState==="Completed"){const Y=n.transactionLocalData.find(P=>P.transactionId===S.transactionId);if(Y){const{transactionReviewLocalData:P}=Y,{selectedEntity:E}=P,Z=S?.lineItemId??P.sortedLineItems[0],F=P.lineItemById[Z],X=F.selectedEntityLine;D.current?.(Go(h.entityAutoCompleteView,E??X,F?.recommendationsWithCOT??[]))}T({transactionId:void 0,lineItemId:void 0})}},[h.entityAutoCompleteView.fetchState]);const q=(Y,P)=>{p.onAutoCompleteInputChange?.(Y),D.current=P},K=i.useRef(null);return t.jsx(K1,{ref:K,"data-testid":B("transaction-categorization-list-page"),children:t.jsx(sn,{...he,children:t.jsx("form",{id:$a(vo),onSubmit:xe,style:{height:"100%",width:"100%"},"data-testid":B($a(vo)),children:t.jsx(E1,{isTransactionActivityEnabled:d,selectedTab:e,sectionId:r,transactionView:n,authParams:c,setCurrentTransactionInAction:T,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onTransactionCategorizationRowClick:u,vendorLoadOptions:q,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:p,containerRef:K,isCOTEnabled:a,cotTracking:{onCOTView:M},isUncategorizedExpenseCategoryEnabled:$,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})})})})},$a=e=>`${e}_form`,La=(e,n,c,r,h)=>({[on]:n.map(p=>q1(p.transactionId,p.transactionReviewLocalData,c,r,h)),[Xn]:e}),q1=(e,n,c,r,h)=>{const{lineItemById:p,sortedLineItems:a,selectedEntity:d}=n,l=Object.values(p).sort((u,g)=>a.indexOf(u.lineId)-a.indexOf(g.lineId)),m=l[0]?.lineId;return{[Us]:l.map(u=>{const g=u.account?.qboId??u.account?.accountId,f=u.class?.classId,C=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[De]:{selectedOption:g,allOptions:os(c,u.recommendationsWithCOT)},[et]:{selectedOption:f,allOptions:ns(r,u.recommendationsWithCOT)},[pt]:{selectedOption:d?.id??C?.id??d?.name??C?.name,defaultOptions:Go(h,d??C,n.lineItemById[m]?.recommendationsWithCOT??[])},[_m]:u.lineEntity,[Pm]:u.recommendationsWithCOT??[]}}),transactionId:e,[Bm]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Fm]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},K1=s.div`
|
|
1626
1626
|
display: flex;
|
|
1627
1627
|
min-height: 100%;
|
|
1628
1628
|
width: 100%;
|
|
@@ -1642,7 +1642,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1642
1642
|
display: flex;
|
|
1643
1643
|
flex-direction: column;
|
|
1644
1644
|
width: 100%;
|
|
1645
|
-
`,Y1=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,isTransactionActivityEnabled:a,authParams:d,receiptUploadEndpoint:l,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,enableMonthEndInsightsZeniGPTFeature:f,monthEndInsightsPreviewMode:C,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:v,loggedInUser:k,isCOTEnabled:y,setCurrentFooterFormId:R,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,onTransactionCategorizationRowClick:T,onFetchMissingReceiptsList:D,onMissingReceiptsRowClick:A,onUploadReceiptAttachment:O,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onReconTabColumnSortConfigChanged:M,onReloadReconciliationListPage:N,onUpdateReconcileTabLocalData:G,onUpdateMissingReceiptsUIState:z,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,improveMonthEndInsightsUsingZeniGPTClick:E,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,onCloseAllThreadsSection:X,onEditMonthEndInsightsClick:J,previewMonthEndReport:W,saveMonthEndReport:U,onOpenFileAttachmentSnackBar:L,onCloseFileAttachmentSnackBar:te,onClickCustomerRequest:ee,sendMonthEndReport:Q,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,onFetchReimbursementView:se,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,setIsJeAccountSettingsOpened:we,onReviewClicked:at,setOpenDrawerClicked:st,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e,redirectToVendorDetailPage:re,setActivityLogTransactionId:Le}=e,{currentSelectedView:le,missingReceipts:_e,transactionView:dt,selectedPeriod:vt,monthEndInsights:He,selectedTransactionCategorizationTab:rn,reconciliation:ln}=p;switch(le){case"transaction_categorization":return dt.fetchState==="Completed"&&dt.transactionLocalData.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(U1,{setCurrentFooterFormId:R,selectedPeriod:vt,selectedTab:rn,sectionId:on,transactionView:dt,authParams:d,isTransactionActivityEnabled:a,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:T,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,isCOTEnabled:y,setActivityLogTransactionId:Le,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return t.jsx(qh,{setIsJeAccountSettingsOpened:we,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setCurrentFooterFormId:R,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g});case"missing_receipts":return _e.fetchState==="Completed"&&_e.transactions.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(Ep,{onUpdateMissingReceiptsUIState:z,onFetchMissingReceiptsList:D,missingReceipts:_e,receiptUploadEndpoint:l,authParams:d,selectedPeriod:vt,onMissingReceiptsRowClick:A,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onUploadReceiptAttachment:O});case"month_end_insights":if(He!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(He.fetchState==="Not-Started"||He.fetchState==="In-Progress"||He.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||He.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(hr,{fetchState:"In-Progress"});{const Dt={application:"cockpit",companyId:m,entityId:m,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:He.companyName,url:window.location.href},{url:qt,...Kt}=Dt,cn={...Kt};return t.jsx(G1,{children:t.jsx(am,{allThreadsSectionOpen:v,customerRequestData:w,companyId:m,enableZeniGPTFeature:f,filterMetaData:cn,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:E,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:He,newThreadMetadata:Dt,onClickCustomerRequest:ee,onCloseAllThreadsSection:X,onCloseFileAttachmentSnackBar:te,onOpenFileAttachmentSnackBar:L,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,previewMode:C,previewMonthEndReport:W,saveMonthEndReport:U,onEditClick:J,sendMonthEndReport:Q})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(vh,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,setCurrentFooterFormId:R,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,onFetchReimbursementView:se,redirectToVendorDetailPage:re});case"reconciliation":return t.jsx(ah,{onReloadReconciliationListPage:N,currentFooterFormId:n,reconciliation:ln,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onReviewClicked:at,setOpenDrawerClicked:st,setCurrentFooterFormId:R,onReconTabColumnSortConfigChanged:M,onUpdateReconcileTabLocalData:G,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e});default:return t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle})}};function Z1(e){const n=Te(),{currentSelectedView:c}=e.expenseAutomationViewSelector,r=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(J1,{windowSize:n,style:{...h===!0?{paddingLeft:Ta.subSectionContainerLeftRightPadding.value(n),paddingRight:Ta.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:x[0],paddingRight:x[0]},...r===!0||c==="reconciliation"?{paddingLeft:x[0],paddingRight:x[0]}:{}},children:t.jsx(Y1,{...e})})}const Q1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),X1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),eg=s.div`
|
|
1645
|
+
`,Y1=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,isTransactionActivityEnabled:a,authParams:d,receiptUploadEndpoint:l,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,enableMonthEndInsightsZeniGPTFeature:f,monthEndInsightsPreviewMode:C,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:v,loggedInUser:k,isCOTEnabled:y,setCurrentFooterFormId:R,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,onTransactionCategorizationRowClick:T,onFetchMissingReceiptsList:D,onMissingReceiptsRowClick:A,onUploadReceiptAttachment:O,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onReconTabColumnSortConfigChanged:M,onReloadReconciliationListPage:N,onUpdateReconcileTabLocalData:G,onUpdateMissingReceiptsUIState:z,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,improveMonthEndInsightsUsingZeniGPTClick:E,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,onCloseAllThreadsSection:X,onEditMonthEndInsightsClick:J,previewMonthEndReport:W,saveMonthEndReport:U,onOpenFileAttachmentSnackBar:L,onCloseFileAttachmentSnackBar:ne,onClickCustomerRequest:ee,sendMonthEndReport:Q,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,onFetchReimbursementView:se,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,setIsJeAccountSettingsOpened:we,onReviewClicked:at,setOpenDrawerClicked:st,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e,redirectToVendorDetailPage:re,setActivityLogTransactionId:Le}=e,{currentSelectedView:le,missingReceipts:_e,transactionView:dt,selectedPeriod:vt,monthEndInsights:He,selectedTransactionCategorizationTab:rn,reconciliation:ln}=p;switch(le){case"transaction_categorization":return dt.fetchState==="Completed"&&dt.transactionLocalData.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(U1,{setCurrentFooterFormId:R,selectedPeriod:vt,selectedTab:rn,sectionId:on,transactionView:dt,authParams:d,isTransactionActivityEnabled:a,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:T,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,isCOTEnabled:y,setActivityLogTransactionId:Le,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return t.jsx(qh,{setIsJeAccountSettingsOpened:we,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setCurrentFooterFormId:R,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g});case"missing_receipts":return _e.fetchState==="Completed"&&_e.transactions.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(Ep,{onUpdateMissingReceiptsUIState:z,onFetchMissingReceiptsList:D,missingReceipts:_e,receiptUploadEndpoint:l,authParams:d,selectedPeriod:vt,onMissingReceiptsRowClick:A,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onUploadReceiptAttachment:O});case"month_end_insights":if(He!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(He.fetchState==="Not-Started"||He.fetchState==="In-Progress"||He.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||He.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(hr,{fetchState:"In-Progress"});{const Dt={application:"cockpit",companyId:m,entityId:m,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:He.companyName,url:window.location.href},{url:qt,...Kt}=Dt,cn={...Kt};return t.jsx(G1,{children:t.jsx(am,{allThreadsSectionOpen:v,customerRequestData:w,companyId:m,enableZeniGPTFeature:f,filterMetaData:cn,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:E,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:He,newThreadMetadata:Dt,onClickCustomerRequest:ee,onCloseAllThreadsSection:X,onCloseFileAttachmentSnackBar:ne,onOpenFileAttachmentSnackBar:L,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,previewMode:C,previewMonthEndReport:W,saveMonthEndReport:U,onEditClick:J,sendMonthEndReport:Q})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(vh,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,setCurrentFooterFormId:R,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,onFetchReimbursementView:se,redirectToVendorDetailPage:re});case"reconciliation":return t.jsx(ah,{onReloadReconciliationListPage:N,currentFooterFormId:n,reconciliation:ln,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onReviewClicked:at,setOpenDrawerClicked:st,setCurrentFooterFormId:R,onReconTabColumnSortConfigChanged:M,onUpdateReconcileTabLocalData:G,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e});default:return t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle})}};function Z1(e){const n=Te(),{currentSelectedView:c}=e.expenseAutomationViewSelector,r=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(J1,{windowSize:n,style:{...h===!0?{paddingLeft:Ta.subSectionContainerLeftRightPadding.value(n),paddingRight:Ta.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:x[0],paddingRight:x[0]},...r===!0||c==="reconciliation"?{paddingLeft:x[0],paddingRight:x[0]}:{}},children:t.jsx(Y1,{...e})})}const Q1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),X1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),eg=s.div`
|
|
1646
1646
|
width: 100%;
|
|
1647
1647
|
height: 100vh;
|
|
1648
1648
|
display: flex;
|
|
@@ -1671,7 +1671,7 @@ import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS
|
|
|
1671
1671
|
width: ${o.sp3};
|
|
1672
1672
|
cursor: pointer;
|
|
1673
1673
|
color: inherit;
|
|
1674
|
-
`,{common:{footer:Be,texts:{maxLimitReached:ng,confirmAction:og},headers:ig,create:ag,strings:kn,texts:xn,cancel:sg,confirm:rg,monthsByIndex:lg},dateFormat:{visual:{MMMDCommaYYYYformat:Ra}},expenseAutomation:fn}=Ae.getLocalizedStrings(),cg=({setActivityLogTransactionId:e})=>{const{selectedTransactionId:n}=eo(),c=wt(),[r,h]=i.useState(!1);return n==null?null:t.jsx(Ce,{title:fn.transactions.header.activity,placement:"bottom",children:t.jsx(Lg,{onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onClick:p=>{p.stopPropagation(),e(n)},children:t.jsx(Tg,{style:{color:r?c.colors.primary:c.colors.hero}})})})},Jg=e=>{const{expenseAutomationViewSelector:n,isDisabled:c,isRealtimeInsightsFeatureEnabled:r,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:a,onReconTabUpdate:d,onUpdateStep:l,onSearchTextChanged:m,onRefresh:u,onClose:g,onBack:f,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:w,clearJeScheduleLocalData:v,onSaveReconciliation:k}=e,{currentSelectedView:y,allSteps:R,missingReceipts:I,jeSchedules:S,fluxAnalysis:T,monthEndInsights:D,transactionView:A,selectedTransactionCategorizationTab:O,reconciliation:b,selectedPeriod:$}=n,[M,N]=i.useState("expenseAutomationPage"),[G,z]=i.useState(()=>{}),[V,de]=i.useState(!1),_=Te(),H=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ie=H?_a:Pa,{openThread:he,setOpenThread:xe}=i.useContext(ie),[ge,q]=i.useState(!1),[K,Y]=i.useState(!1),P=R.find(re=>re.step===y),{nextStep:E,previousStep:Z}=hg(R,y),{uiState:{searchString:F,pageToken:X},totalCountByTab:J,transactions:W,fetchStateByTransactionTabs:U,transactionLocalData:L}=A,{selectedReconAccount:te,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ee}}}}=b;let Q="Not-Started",pe="complete";switch(y){case"missing_receipts":Q=I.refreshStatus.fetchState,pe=I.completionStatus;break;case"je_schedules":Q=S.refreshStatus.fetchState,pe=S.completionStatus;break;case"month_end_insights":D!=null&&(Q=D?.fetchState);break;case"flux_analysis":Q=T.refreshStatus.fetchState,pe=T.completionStatus;break;case"transaction_categorization":Q=A.refreshStatus.fetchState,pe=A.completionStatus;break;case"reconciliation":te==null?(Q=b.refreshStatus.fetchState,pe=b.completionStatus):(Q=b.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",pe=b.completionStatus)}const Ie=()=>{G()},{saveStatus:j,selectedCheckBoxTransactionIds:se}=A,je=()=>{const re=As(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),Le=uo(),{month:le,year:_e}=$,dt=uo().set("month",le-1).set("year",_e).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:re===!0?Be.markAsReviewed:xn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(n.fluxAnalysis.reviewOperatingExpensesIds.length,gs,_,xn.vendor,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:j.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(se.length,Ln,_,xn.transaction,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(O,W.map(vt=>vt.id),$,!1,J[O],Ii(L,O),h,X)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.next,style:{justifyContent:"space-evenly"},isDisabled:c||P?.isNextDisabled,suffixIcon:t.jsx(Aa,{}),onClick:()=>{l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{l(Z.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Be.reconcile,backBtnLabel:Be.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(b.reconciliationTabsState.balances.variance.amount===0&&Le.isAfter(dt)),isLoading:b.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:Ao(ee.length,1/0,_,xn.transaction,y),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:b.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Be.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Be.save,backBtnLabel:Be.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,isLoading:S.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>Ie(),label:Be.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const vt=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,He=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,rn=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,ln=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||He),Dt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",qt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",Kt=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(yn=>yn.id==="month_end_insights"),cn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&Kt?.isDisabled===!1&&(r||P?.isNextDisabled===!1),Rn=E.step==="month_end_insights"&&(He||y==="flux_analysis")?!cn:P?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ln===!0?ug(n.selectedPeriod.month):Be.next,style:{justifyContent:"space-evenly"},isDisabled:Rn,suffixIcon:t.jsx(Aa,{}),onClick:()=>{Dt?a("autoCategorized"):vt?d("reconcile"):l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{qt?a("review"):rn?d("review"):vt?f():l(Z.step)}}}}}},Ne=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{q(!1),w([]),g()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{q(!1),C(O,W.map(re=>re.id),$,!1,J[O],Ii(L,O),h,X),g()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{q(!1),v(),g()}};default:return{confirmAction:()=>{q(!1)},confirmationDescription:kn.empty}}},Ee=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?q(!0):g()},{primaryBtn:Oe,cancelBtn:we,leftSideComponent:at}=je(),{confirmAction:st}=Ne(),qe=re=>{if(y==="transaction_categorization"&&(re==="autoCategorized"||re==="review"))return{hideCountInTab:J[re]>fn.common.numbers.maximumCount,count:J[re],isFetching:U[re].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:Le}=n,{selectedAccountId:le}=Le;return le==null?{count:0,isFetching:!1}:re==="review"?{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReview.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}:{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}}},me=y==="reconciliation"&&b.selectedAccountId!=null&&b.selectedReconAccount!=null,{month:Me,year:Rt}=$,mt=uo().set("month",Me-1).set("year",Rt),Ut=mt.startOf("month").format(Ra),gt=mt.endOf("month").format(Ra),$e=`${Ut} ${kn.hyphen} ${gt}`;return t.jsxs(eg,{children:[ge?t.jsx(sr,{containerStyle:{width:356},titleComponent:t.jsx(yg,{children:og}),primaryButtonText:rg,secondaryButtonText:sg,proceedButtonVariant:"danger",action:{onOkClick:()=>{st()},onCancelClick:()=>q(!1)},descriptionComponent:t.jsx(Cg,{children:fn.confirmationDescription})}):null,t.jsx(rr,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,panelActionBarContent:e.isTransactionActivityEnabled?t.jsx(cg,{setActivityLogTransactionId:e.setActivityLogTransactionId}):null,headerContent:t.jsx(vc,{onBack:f,navBarCustomElement:y==="reconciliation"&&b.selectedAccountId!=null?t.jsx(dg,{reconciliation:b}):void 0,onReconTabUpdate:d,currentRecontab:b.selectedTab,reconcileDetailPageFetchState:b.selectedAccountId!=null?b.accountReconciliationsByAccountID[b.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:me?b.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Je(y,J.autoCategorized,me?b.selectedAccountId:void 0,me?b.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,me?$e:void 0),searchText:F,currentTab:O,getTabCountAndFetchState:qe,completionStatus:pe,forceShowSubtitle:V===!0||y==="je_schedules"&&(S.fetchState==="In-Progress"||S.accountSettingsView.fetchState==="In-Progress"),refreshStatus:Q,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??kn.empty,isZeniUser:H,onAllThreadsClick:()=>{he!=null&&xe(null),Y(!0)},onUpdateTab:a,onSearchTextChanged:m,onRefresh:u,onClose:Ee}),listContent:t.jsxs(tg,{children:[t.jsx(Z1,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:de,setResetJeAccountSettingsForm:z,allThreadsSectionOpen:K,setCurrentFooterFormId:N,currentFooterFormId:M,onCloseAllThreadsSection:()=>Y(!1)}),t.jsx(Ue,{controller:y!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(Ba,{style:{width:"-webkit-fill-available",maxHeight:x[8]},formId:pg(M),primaryBtn:Oe,leftSideComponent:at,cancelBtn:we,separatorStyle:{marginRight:o.sp4}})})]})})]})},dg=({reconciliation:e})=>{const n=wt(),{clearedBalance:c,variance:r,variancePercentage:h,deposits:p,payments:a}=e.reconciliationTabsState.balances,{balance:d}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:l}=e,{transactionFetchState:m}=l??{};return t.jsx(wg,{children:t.jsxs(bg,{children:[t.jsxs(Eo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(vg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",d)}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(Eo,{children:[t.jsx(Ro,{children:t.jsx(jg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",c)}),t.jsxs(Ig,{children:[t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs($g,{children:[t.jsxs(Da,{children:[t.jsxs(Oa,{children:[a.count," ",xn.payments]}),t.jsx(Ma,{children:Ze("0,0.[00]",a.totalAmount)})]}),t.jsxs(Da,{children:[t.jsxs(Oa,{children:[p.count," ",xn.deposits]}),t.jsx(Ma,{children:Ze("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(kg,{})})]})]})})]}),t.jsxs(Eo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(Sg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Mo,{children:[t.jsx("span",{style:{color:r.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Ze("0,0.00",r)}),h!=null&&r.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.variance})]})})]})]})})},Ao=(e,n,c,r,h)=>{const p=r,a=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(mg,{currentView:h,style:c==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(gg,{multiDigit:e>=5,children:e}),t.jsx(xg,{children:a}),e===n?t.jsx(fg,{children:`(${ng})`}):null]}):null},ug=e=>{const n=lg[e];return`${ag}${kn.space}${n}${kn.space}${ig.insights}`};function hg(e,n){const c=e.findIndex(d=>d.step===n);if(c===-1)throw new Error("currentStep not found in allSteps array");const r=(c+1)%e.length,h=(c-1+e.length)%e.length,p=e[r],a=e[h];return{nextStep:p,previousStep:a}}const pg=e=>`${e}_form`,mg=s.div`
|
|
1674
|
+
`,{common:{footer:Be,texts:{maxLimitReached:ng,confirmAction:og},headers:ig,create:ag,strings:kn,texts:xn,cancel:sg,confirm:rg,monthsByIndex:lg},dateFormat:{visual:{MMMDCommaYYYYformat:Ra}},expenseAutomation:fn}=Ae.getLocalizedStrings(),cg=({setActivityLogTransactionId:e})=>{const{selectedTransactionId:n}=eo(),c=wt(),[r,h]=i.useState(!1);return n==null?null:t.jsx(Ce,{title:fn.transactions.header.activity,placement:"bottom",children:t.jsx(Lg,{onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onClick:p=>{p.stopPropagation(),e(n)},children:t.jsx(Tg,{style:{color:r?c.colors.primary:c.colors.hero}})})})},Jg=e=>{const{expenseAutomationViewSelector:n,isDisabled:c,isRealtimeInsightsFeatureEnabled:r,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:a,onReconTabUpdate:d,onUpdateStep:l,onSearchTextChanged:m,onRefresh:u,onClose:g,onBack:f,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:w,clearJeScheduleLocalData:v,onSaveReconciliation:k}=e,{currentSelectedView:y,allSteps:R,missingReceipts:I,jeSchedules:S,fluxAnalysis:T,monthEndInsights:D,transactionView:A,selectedTransactionCategorizationTab:O,reconciliation:b,selectedPeriod:$}=n,[M,N]=i.useState("expenseAutomationPage"),[G,z]=i.useState(()=>{}),[V,de]=i.useState(!1),_=Te(),H=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ie=H?_a:Pa,{openThread:he,setOpenThread:xe}=i.useContext(ie),[ge,q]=i.useState(!1),[K,Y]=i.useState(!1),P=R.find(re=>re.step===y),{nextStep:E,previousStep:Z}=hg(R,y),{uiState:{searchString:F,pageToken:X},totalCountByTab:J,transactions:W,fetchStateByTransactionTabs:U,transactionLocalData:L}=A,{selectedReconAccount:ne,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ee}}}}=b;let Q="Not-Started",pe="complete";switch(y){case"missing_receipts":Q=I.refreshStatus.fetchState,pe=I.completionStatus;break;case"je_schedules":Q=S.refreshStatus.fetchState,pe=S.completionStatus;break;case"month_end_insights":D!=null&&(Q=D?.fetchState);break;case"flux_analysis":Q=T.refreshStatus.fetchState,pe=T.completionStatus;break;case"transaction_categorization":Q=A.refreshStatus.fetchState,pe=A.completionStatus;break;case"reconciliation":ne==null?(Q=b.refreshStatus.fetchState,pe=b.completionStatus):(Q=b.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",pe=b.completionStatus)}const Ie=()=>{G()},{saveStatus:j,selectedCheckBoxTransactionIds:se}=A,je=()=>{const re=As(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),Le=uo(),{month:le,year:_e}=$,dt=uo().set("month",le-1).set("year",_e).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:re===!0?Be.markAsReviewed:xn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(n.fluxAnalysis.reviewOperatingExpensesIds.length,gs,_,xn.vendor,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:j.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(se.length,Ln,_,xn.transaction,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(O,W.map(vt=>vt.id),$,!1,J[O],Ii(L,O),h,X)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.next,style:{justifyContent:"space-evenly"},isDisabled:c||P?.isNextDisabled,suffixIcon:t.jsx(Aa,{}),onClick:()=>{l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{l(Z.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Be.reconcile,backBtnLabel:Be.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(b.reconciliationTabsState.balances.variance.amount===0&&Le.isAfter(dt)),isLoading:b.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:Ao(ee.length,1/0,_,xn.transaction,y),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:b.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Be.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Be.save,backBtnLabel:Be.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,isLoading:S.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>Ie(),label:Be.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const vt=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,He=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,rn=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,ln=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||He),Dt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",qt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",Kt=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(yn=>yn.id==="month_end_insights"),cn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&Kt?.isDisabled===!1&&(r||P?.isNextDisabled===!1),Rn=E.step==="month_end_insights"&&(He||y==="flux_analysis")?!cn:P?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ln===!0?ug(n.selectedPeriod.month):Be.next,style:{justifyContent:"space-evenly"},isDisabled:Rn,suffixIcon:t.jsx(Aa,{}),onClick:()=>{Dt?a("autoCategorized"):vt?d("reconcile"):l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{qt?a("review"):rn?d("review"):vt?f():l(Z.step)}}}}}},Ne=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{q(!1),w([]),g()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{q(!1),C(O,W.map(re=>re.id),$,!1,J[O],Ii(L,O),h,X),g()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{q(!1),v(),g()}};default:return{confirmAction:()=>{q(!1)},confirmationDescription:kn.empty}}},Ee=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?q(!0):g()},{primaryBtn:Oe,cancelBtn:we,leftSideComponent:at}=je(),{confirmAction:st}=Ne(),qe=re=>{if(y==="transaction_categorization"&&(re==="autoCategorized"||re==="review"))return{hideCountInTab:J[re]>fn.common.numbers.maximumCount,count:J[re],isFetching:U[re].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:Le}=n,{selectedAccountId:le}=Le;return le==null?{count:0,isFetching:!1}:re==="review"?{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReview.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}:{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}}},me=y==="reconciliation"&&b.selectedAccountId!=null&&b.selectedReconAccount!=null,{month:Me,year:Rt}=$,mt=uo().set("month",Me-1).set("year",Rt),Ut=mt.startOf("month").format(Ra),gt=mt.endOf("month").format(Ra),$e=`${Ut} ${kn.hyphen} ${gt}`;return t.jsxs(eg,{children:[ge?t.jsx(sr,{containerStyle:{width:356},titleComponent:t.jsx(yg,{children:og}),primaryButtonText:rg,secondaryButtonText:sg,proceedButtonVariant:"danger",action:{onOkClick:()=>{st()},onCancelClick:()=>q(!1)},descriptionComponent:t.jsx(Cg,{children:fn.confirmationDescription})}):null,t.jsx(rr,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,panelActionBarContent:e.isTransactionActivityEnabled?t.jsx(cg,{setActivityLogTransactionId:e.setActivityLogTransactionId}):null,headerContent:t.jsx(vc,{onBack:f,navBarCustomElement:y==="reconciliation"&&b.selectedAccountId!=null?t.jsx(dg,{reconciliation:b}):void 0,onReconTabUpdate:d,currentRecontab:b.selectedTab,reconcileDetailPageFetchState:b.selectedAccountId!=null?b.accountReconciliationsByAccountID[b.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:me?b.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Je(y,J.autoCategorized,me?b.selectedAccountId:void 0,me?b.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,me?$e:void 0),searchText:F,currentTab:O,getTabCountAndFetchState:qe,completionStatus:pe,forceShowSubtitle:V===!0||y==="je_schedules"&&(S.fetchState==="In-Progress"||S.accountSettingsView.fetchState==="In-Progress"),refreshStatus:Q,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??kn.empty,isZeniUser:H,onAllThreadsClick:()=>{he!=null&&xe(null),Y(!0)},onUpdateTab:a,onSearchTextChanged:m,onRefresh:u,onClose:Ee}),listContent:t.jsxs(tg,{children:[t.jsx(Z1,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:de,setResetJeAccountSettingsForm:z,allThreadsSectionOpen:K,setCurrentFooterFormId:N,currentFooterFormId:M,onCloseAllThreadsSection:()=>Y(!1)}),t.jsx(Ue,{controller:y!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(Ba,{style:{width:"-webkit-fill-available",maxHeight:x[8]},formId:pg(M),primaryBtn:Oe,leftSideComponent:at,cancelBtn:we,separatorStyle:{marginRight:o.sp4}})})]})})]})},dg=({reconciliation:e})=>{const n=wt(),{clearedBalance:c,variance:r,variancePercentage:h,deposits:p,payments:a}=e.reconciliationTabsState.balances,{balance:d}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:l}=e,{transactionFetchState:m}=l??{};return t.jsx(wg,{children:t.jsxs(bg,{children:[t.jsxs(Eo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(vg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",d)}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(Eo,{children:[t.jsx(Ro,{children:t.jsx(jg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",c)}),t.jsxs(Ig,{children:[t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs($g,{children:[t.jsxs(Da,{children:[t.jsxs(Oa,{children:[a.count," ",xn.payments]}),t.jsx(Ma,{children:Ze("0,0.[00]",a.totalAmount)})]}),t.jsxs(Da,{children:[t.jsxs(Oa,{children:[p.count," ",xn.deposits]}),t.jsx(Ma,{children:Ze("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(kg,{})})]})]})})]}),t.jsxs(Eo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(Sg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Mo,{children:[t.jsx("span",{style:{color:r.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Ze("0,0.00",r)}),h!=null&&r.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.variance})]})})]})]})})},Ao=(e,n,c,r,h)=>{const p=r,a=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(mg,{currentView:h,style:c==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(gg,{multiDigit:e>=5,children:e}),t.jsx(xg,{children:a}),e===n?t.jsx(fg,{children:`(${ng})`}):null]}):null},ug=e=>{const n=lg[e];return`${ag}${kn.space}${n}${kn.space}${ig.insights}`};function hg(e,n){const c=e.findIndex(d=>d.step===n);if(c===-1)throw new Error("currentStep not found in allSteps array");const r=(c+1)%e.length,h=(c-1+e.length)%e.length,p=e[r],a=e[h];return{nextStep:p,previousStep:a}}const pg=e=>`${e}_form`,mg=s.div`
|
|
1675
1675
|
display: flex;
|
|
1676
1676
|
justify-content: flex-start;
|
|
1677
1677
|
align-items: center;
|