@zeniai/web-cockpit-ui 1.14.47-qa → 1.14.48-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-aTYc51Xr-D2ADR40w.js → ACHDetailsPage-DyCm1KQw-vKnnuhta.js} +1 -1
- package/dist/assets/{AIPerformancePage-X0jCYtM_-CqmlmC2S.js → AIPerformancePage-bKIoJH7f-CNYpBESS.js} +1 -1
- package/dist/assets/{AccountInfoPage-Dx3Y3u7a-a1HYqQEs.js → AccountInfoPage-DDxMvhwL-CJRXvNjC.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-9hyxOyvj-hS3Ae5Ge.js → AccountInfoPageContent-BaPZW-_d-DwGAITk8.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DJOB_sAg-Cyvo19iH.js → AccountLockedInfoModal-CkAT2hBq-VRbOYqsl.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CBLBMUVT-D3tFcMLm.js → AccountReconDetailsDrawerPage-DedeLwj_-BXSpf89p.js} +1 -1
- package/dist/assets/{AccountRow-COkMC9z6-e7roRi1m.js → AccountRow-C6U80qgq-CeoSbA52.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-B0TKA_rE-CfD_gebE.js → AccountsPromoCardStack-CLE7E1xa-BYg26kEA.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DBBW_ygt-y-HyjByD.js → AddAddressForCardDrawer-EnZ6q0Ew-B20MvL2M.js} +1 -1
- package/dist/assets/{AddToWalletPage-Cy7qqaHF--9QEZI9F.js → AddToWalletPage-8KMSvV7o-0g2AZGww.js} +1 -1
- package/dist/assets/{AgingReportsPage-LJTYoktZ-DhPQZAzw.js → AgingReportsPage-BZupKJ04-BCu-rLVK.js} +1 -1
- package/dist/assets/{AllUserItems-Cq-nSZod-Dp8KV4_y.js → AllUserItems-Dv0G23Mr-Bz8Hsj_y.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CxsG8tgq-C8CzsSj0.js → ApAgingDetailPage-DqMOEMxg-1rNDkgnp.js} +1 -1
- package/dist/assets/{AppBasePage-DiHP_N5e-CjHakQ7V.js → AppBasePage-D95DYMVe-jB-eqEbr.js} +1 -1
- package/dist/assets/{AppDrawerContent-07l8bnfq-K8yoiZDF.js → AppDrawerContent-B8ZyVnnO-CBRi7jrC.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cx1rLjH9-CNC8G6oO.js → ApprovalRulesSettingsPage-BqW6DQ5c-7fZnBWHM.js} +1 -1
- package/dist/assets/{ArAgingChart-BPvPNszV-Cw5fCNKu.js → ArAgingChart-DtZYZyIm-BLF-TSek.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-B27i7hBz-B0vHdqPU.js → ArAgingDetailPage-CmVZGTP7-DR0kl0Rf.js} +1 -1
- package/dist/assets/{AttachmentView-Ce-rZfQk-B3G4Uh4Z.js → AttachmentView-prEy7ZSI-Bhc7p_B0.js} +1 -1
- package/dist/assets/{BankAccountSection-Bn4tVnuF-DM856B3B.js → BankAccountSection-DzwRYQwp-BY9F-ajB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-GKmK6rZN-tK2T2MaO.js → BankAccountWarningSection-BTUTTFCj-BC7XAoAl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-efLHWQFe-DyrCWW-H.js → BankConnectionsSettingsPage-B9aRwhfw-DiRRWRqD.js} +1 -1
- package/dist/assets/{BillDetailPage-DKkpAZMG-DQsAkRJo.js → BillDetailPage-Br-G6Xvi-Crrosyps.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-MbH1c3C8-CzOGBkaT.js → BillPayApprovalRuleDetailPage-BmMFCmIJ-BuQ0Wjy0.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BH3upfB1-KElo2IV3.js → BillPayApprovalRulesPage-Cc8suhYp-DN7uFk6e.js} +1 -1
- package/dist/assets/{BillPayPromoPage-WDhvRVxp-Dwq5vK1A.js → BillPayPromoPage-K1PR5HwL-DNrs5EJc.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-C3rhKamR-BA0muqTj.js → BillPaySetUpPage-C613-SXo-CO76RoXW.js} +1 -1
- package/dist/assets/{BillingSettingsPage-YJAdgtZ_-uhuDWA7U.js → BillingSettingsPage-n4nlsUn1-Z3_DOJ5O.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BrM9CWC2-Bm55IgOl.js → BillsBulkReviewDrawerPage-D4-2BUj_-DLC6XEN9.js} +1 -1
- package/dist/assets/{BoxItem-ulH3Bhgp-BTjkPm0Y.js → BoxItem-BV33yH6i-C0sy1OXS.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-0d5CYwdO-C3m-vHi5.js → BusinessVerificationPage-D-scSniH-Djmb2WxN.js} +1 -1
- package/dist/assets/{CardNumberSubText-BvkAu7UB-D6SLemTM.js → CardNumberSubText-AKyMT95b-DCed0_W-.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BZJd6XyW-Cn7LGAiA.js → CashbackDetailPage-C6hPQm-Z-CBaKpwl0.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-CKjUyK_7-C-Pcpg-a.js → ChargeCardDetailPage-tW0k5ZIc-fFkA3Ibb.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DODdNODU-Cv1YaHD8.js → ChargeCardListPage-vAnKR6Xv-B6WykTvg.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Mbqi4H1P-BwPqfUff.js → ChargeCardListTable-B6yByjDG-BZLXrh5S.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DeR-3iTY-D38nUi85.js → ChargeCardPromoPage-qqkFzI3U-CGO1jSgB.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DVELUCoe-B22dgme_.js → ChargeCardSetupPage-CFytQSWq-Cv09U-ty.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Bld_eKmb-Cbl0XKuX.js → ChargeCardStatementsPage-0EyzQ2Ew-f1zWZL9S.js} +1 -1
- package/dist/assets/{ChargeCardUtils-fW7FfpSb-DoYtT84F.js → ChargeCardUtils-D6NpoGcY-DUOumYyo.js} +1 -1
- package/dist/assets/{ChaseOverlay-2Otdlf5E-D-6LkIsD.js → ChaseOverlay-mR5F-VwA-BmdISHW7.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B-qJ1mrW-C0nCtqyQ.js → CheckDepositDrawerPage-qmSagF0C-Dt_ViMTZ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BTikLMZy-aYn-6zYF.js → CollapsableReportTable-h83bbBqH-znYyQNxD.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-zZO2eh1J-CyAcd-AY.js → CompanyOfficerDetailsSection-BfUknZ4p-DBnDNVV2.js} +1 -1
- package/dist/assets/{CompanyPassportCard-0UAE79rI-BXCHGPD1.js → CompanyPassportCard-nPHVMG8C-C-MIa05R.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DrmWGWPZ-C94SdrND.js → CompanyPassportPage-Br9FkEek-BmlA_eeU.js} +1 -1
- package/dist/assets/{CompleteProfile-CluRzr-W-CiEy6DeS.js → CompleteProfile-Dq3g8Glc-CvbtOaet.js} +1 -1
- package/dist/assets/{ConfettiBurst-EJvT8IrQ-m5Jh2IOe.js → ConfettiBurst-DDEhvs48-BFM91xI5.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DAD4YSrh-nvgHMlhK.js → CreateOrEditVendorPage-noczXv97-B5skaSWp.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BBNlpaft-DO9oOFl1.js → CreditCardPaymentDrawerPage-RpPJQ6yC-Cu28JrlG.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CktjAGdd-MIKW8NkW.js → CreditCardPaymentPlgSection-C_AemOvd-zGNETkKA.js} +1 -1
- package/dist/assets/{CurrencySelectField-Z_T4BQhi-BDmhRAcd.js → CurrencySelectField-at0ftH93-DCHdAGDQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BI46q3Bq-DARVHRzF.js → CustomerOnboardingActivationPage-BgrZWtyF-D9OOwR59.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BTb45YzR-CAZ0J0PA.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CGIUVfAE-Cz_P1n7m.js → CustomerOnboardingDetailPageSkeleton-DCS6hHcm-bS5DC55_.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-zFHqt8vr-CvuDt6aO.js → CustomerOnboardingNoStepsPage-fkT5w9JI-DEgn2TDO.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DRbQY2yr-DlbkCWnK.js → CustomerOnboardingPage-BYDCBwUS-BSPLC0sS.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BglzxmIP-BKv0deHJ.js → CustomerOnboardingProductSuitePage-B87wPwps-BciiWyn-.js} +1 -1
- package/dist/assets/{Dashboard-BJc01Zrg-DdiwDHt9.js → Dashboard-DA26FitL-P859QIWe.js} +1 -1
- package/dist/assets/{DashboardReportPage-C1d8VK5i-C0MWcwXx.js → DashboardReportPage-Bxn0wWgq-DC-rtVoB.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DC1VJk0J-nMwca325.js → DashboardSidebarBackgroundAnimation-CyDCgoPr-NFcrv8yU.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BN0dT4ca-Bvx2AMVs.js → DepositAccTransactionItem-Bk9e8PAr-C1XBXKfI.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-D4CLQ2zV-jfX5513a.js → DepositAccTransactionListPage-DnJeD1EF-IVQgpxNX.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-ai0YkB93-Db3RN7aV.js → DomesticWireDetailsPage-Du7Vx5LJ-BytqGkUm.js} +1 -1
- package/dist/assets/{DownloadOverlay-eNiRhovl-lwoxA6g5.js → DownloadOverlay-I5QLTQmV-Oibtf0ne.js} +1 -1
- package/dist/assets/{DrawerPage-_cA3LH2A-r6kxO1uj.js → DrawerPage-6fxpk2xF-5o3oJnrh.js} +1 -1
- package/dist/assets/{EditPeoplePage-Bhh_BxeV-LZTAkhjK.js → EditPeoplePage-vpqgUHrS-C7O-m1jq.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-C5aA5obB-CmH_0I7A.js → EditReimbursementDetailPage-Bj6Bfiwn-DO5QzcDP.js} +1 -1
- package/dist/assets/{EntityDetailPage-CxzSbzv5-B0femT2P.js → EntityDetailPage-97oJAXtx-BJyV3YBw.js} +1 -1
- package/dist/assets/{EntitySummarySection-Jt-Bgbwl-CQ6V8H66.js → EntitySummarySection-pd7ZjDP--BwmW-Fqs.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BnBfGZyF-D8cWVsl6.js → ExpenseAutomationOverviewPage-1Q7y69P7-rQ1BTlHa.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CPINGlg8-BJ84E9br.js → ExpenseAutomationPage-DRpPMH9S-DR6d5KgN.js} +225 -225
- package/dist/assets/{ExpressPayPage-nwL5UiPT-DMHZSrwv.js → ExpressPayPage-KdI3P4qf-B7W_7lG8.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C3ESvF_G-BASTcyyA.js → FeaturePreviewPage-BkwCkLNL-D8kHraR4.js} +1 -1
- package/dist/assets/{FollowStepsSection-B5affvdS-BKq8gtvf.js → FollowStepsSection-CmNPc7L7-BDPhFSNz.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CsF47R3F-ObiKe69A.js → GlobalReviewListPage-CdJjnDgL-dPY_p86w.js} +1 -1
- package/dist/assets/{HelpButton-COQrt2oX-BhfHlJ2o.js → HelpButton-Q541XR8l-BSrpuFYl.js} +1 -1
- package/dist/assets/{InformationCardStack-CzXjj7b8-DeuB56Hr.js → InformationCardStack-Bp3d5prY-DhqyRFzM.js} +1 -1
- package/dist/assets/{InsightsCardStack-D97A5lvB-BTzpEx2D.js → InsightsCardStack-D8p-vEZB-DJ-Wx_Om.js} +1 -1
- package/dist/assets/{InsightsSection-2ILqXih8-D5fvRzYX.js → InsightsSection-BnINWGoM-BjOeo3qP.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-C02GIm78-CHS3X08I.js → IntegrationsSettingsPage-BR13AIA5-ZrSqtSxK.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-cwqfeYWq-DF94DRhD.js → InternationalWireSwiftDetailsPage-DlZE1lSt-B-EMJhXH.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BsM0qJMD-DbmHA3Lp.js → InternationalWireVerificationPage-db1F4bn4-Dsfly5TK.js} +1 -1
- package/dist/assets/{InviteFormPage-Cvvuts9_-QvaBQkBs.js → InviteFormPage-DFlM2leL-DfaYNy-6.js} +1 -1
- package/dist/assets/{InvitePageListView-C7bghm-Q-VrMJN4W4.js → InvitePageListView-DnRZpjBQ-BhczM3Rt.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CZim2-oS-DKkVwc78.js → InvitePeoplePage-lMy3RYPE-CZ2A1AoD.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DQpy2cRB-D3WGlSEu.js → InvoiceUploadSection-AgzvOKI4-EX8HbVsf.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DA0W292g-DanH5SbZ.js → IssueChargeCardPage-KvRHBOa0-CGtBgazJ.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BBqoyIwz-TYAfxXGj.js → LabeledAddressValue-CsrGQYwu-CArjFxjA.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-l0XKNlaq-C-wmidST.js → LabeledAddressValueField-DfpU2h4D-Bn_QNbyf.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CN6vZqSm-V5wQoxvt.js → LabeledControlledCheckBoxField-EDM75_1I-Brdio73F.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DZIsQevy-q0UjZPvG.js → LabeledCreatableSingleSelectField-B3Xae4zM-B8vmi2NV.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DMEWdfq0-DmZJR8vn.js → LabeledDocumentField-VB0WwnTG-BgD9uIsc.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CSUZIpw4-BGaZEKa2.js → LabeledDropDownFormattedTextField-t5V8VhMU-DgZ4G-IA.js} +1 -1
- package/dist/assets/{LabeledText-DyhIUdFx-yVOv3Uvw.js → LabeledText-D2MwukKe-BmTg8oMN.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CC89oZ_u-BdBB1gyM.js → LabeledUserSingleSelectWithSubtitlesField-ss1_ZJbJ-yS2eLN2J.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DXi_2I5i-BD4EUsCk.js → LabeledZeniRolesDropDownField-DOlIObpD-BHFRzio9.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BF4Qmfk0-DskTHH2C.js → LinkJETransactionPage-CzOZTube-UWgFpuNt.js} +1 -1
- package/dist/assets/{LowBalancePopup-B1SB0L70-DtakDk25.js → LowBalancePopup-DxY9_xxa-B_F4Y7zw.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Bx62Lvrk-D-oX6A3r.js → MagicLinkACHDetailsPage-DiuuLW90-DlbruB-Y.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dqqn9-Cd-DSglw74i.js → MagicLinkDomesticWireDetailsPage-DZNJdhtE-BsDKQJgy.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-l7z62GSc-D_Lf4kHx.js → MagicLinkInternationalWireDetailsPage-CRZBCR1_-DhZbViv1.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BLW5WloR-Df8z09t9.js → MagicLinkSuccessPage-B43qbo_H-BAGJTCwk.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-C_Y0_Q8g-BUj9-q2w.js → MagicLinkTitleSection-u1m5lvjA-GqGT2wic.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CWCOpN4f-ScgCXpIh.js → MailingDetailsSection-DMtiDDSS-DQEjAMVZ.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CaAA-95e-CYtJSdtS.js → MeetingCalenderPopup-xYNfY-ap-CyAB3kO0.js} +1 -1
- package/dist/assets/{Menu-r5aBVcPX-B8OBLaaD.js → Menu-Ctk9nNVM-BxyIpAsx.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DxEZLt-N-Fvsv5UJo.js → MyBankConnectionsSettingsPage-CIrf_slB-DViS_Vbs.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BuKZsRFM-BkObPBx9.js → MyPendingActivationChargeCardListPage-DbfQTsy_-ajD_JWyd.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CifOm8vx-B9vjVucE.js → MyProfileSettingsPage-FJrH6afA-Dg7CgCAK.js} +1 -1
- package/dist/assets/{NavBarWithPicker-ecFrLzuG-D1yvuQ4e.js → NavBarWithPicker-ygNMEvS3-LG0yX504.js} +1 -1
- package/dist/assets/{NavigationArrow-1zbfgcmE-DxnLVeZX.js → NavigationArrow-BVKBNfEn-Cu7Uey4x.js} +1 -1
- package/dist/assets/{NavigationDots-2bNAi48B-WKQiaEuA.js → NavigationDots-DYwxSHEm-CJDFcaPa.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-B0O8iQck-BfiqM5Dn.js → NewGlobalMerchantPage-Bpm-tBAW-DlRNwU1w.js} +1 -1
- package/dist/assets/{NoDataChart-DVB1FTW8-NthqE9zK.js → NoDataChart-C9Blhafx-nChSCx-l.js} +1 -1
- package/dist/assets/{NoDataTable-DWOVpAfA-CLBVv_V1.js → NoDataTable-DQ6n8pLc-xDthso8v.js} +1 -1
- package/dist/assets/{NotFoundPage-BlhK0DnR-VjatTL6v.js → NotFoundPage-BEPdu2vh-CaDkbBnT.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-D9h-cv_3-CzVQaL8W.js → NotificationSettingsPage-DZqtHEvz-CA0yN11c.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CJzqBbvL-BWcSIKS9.js → NotificationsListConfig-BC8mhJcI-bPg1TEX0.js} +1 -1
- package/dist/assets/{NotificationsPage-Bb8jGE88-wKnOFMR4.js → NotificationsPage-BJwFOE4d-CKiihY31.js} +1 -1
- package/dist/assets/{OpExByVendorPage-cCbrLj0D-CFc3raVC.js → OpExByVendorPage-M_Qkm6sd-1ZCdusEr.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-ucfnccFV.js → OverlayContainerPage-B8Rk53Fe-CCXYn42o.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-G4lWjG0f-DMH0GwVc.js → PandLWithForecastPage-B-MSSXbg-BtmE02nA.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DsnTCd1g-JE5omasT.js → PaymentAccountSetupBillingAddressSection-DA-yP5eE-BeXTRuNI.js} +1 -1
- package/dist/assets/{PeoplePage-BFbEsxCG-bnjoibka.js → PeoplePage-CoFiMjdA-Dr0q89lY.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-D1uHtLe7-m7Sjyxvd.js → PortfolioAllocationFormPage-CRmrcCX0-B5snsAsZ.js} +1 -1
- package/dist/assets/{PortfolioDetails-t8bIGJXx-C77Sjhpo.js → PortfolioDetails-BJzQy2wr-Bj-CnqzJ.js} +1 -1
- package/dist/assets/{ProductsCarousel-BddjVme9-DPPf-867.js → ProductsCarousel-B2J6Uqy0-Bn6QDbLq.js} +1 -1
- package/dist/assets/{PromoBaseCards-D3KJDpH5-Nh_lbUG5.js → PromoBaseCards-BIR1VU56-C4Y3qtQN.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CXXyWMRA-DSoLuucz.js → QBOConnectionDialog-BHA56W22-CpYACUMJ.js} +1 -1
- package/dist/assets/{QBOSetupSection-8vr753O6-BQ7dg7KS.js → QBOSetupSection-yAxVE54s-B642dEMU.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-4DxF-bsn-OqVR5xVi.js → ReimbursementApprovalRuleDetailPage-BvUzSSgG-CJ_99xUH.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B8VB00Ys-DiLjM_yE.js → ReimbursementApprovalRulesPage-DuvuhNpT-ZmNlObAI.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-B3eXWVu_-B-DXJ-Og.js → ReimbursementDetailPage-I8Mi1b-i-BVuK6o0n.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CZSp2B03-C7Zg8h8D.js → ReimbursementPromoPage-DNEHD7Vn-DJtIEmEu.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B2xoCrQQ-DVgyZneJ.js → ReimbursementSetUpPage-BKPN-jTi-DqOb0dAq.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CP0GBWSz-B1V92FYv.js → ReimbursementsBulkReviewDrawerPage-ODIYnErO-CugZiISp.js} +1 -1
- package/dist/assets/{ReloadCard-BgQhOfRW-D1P3CczN.js → ReloadCard-D5G3143M-BhrgzSyb.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-lD-WdOy3-C6xp9K-g.js → ReportTableViewSelector-DwrFflka-B_yC1F2e.js} +1 -1
- package/dist/assets/{ReportsPage-SBj5iXie-C5ZhG_IH.js → ReportsPage-BRh9wTIB-BRdvrfcZ.js} +1 -1
- package/dist/assets/{RevenueChart-Bt1neNVP-CrAcpQ98.js → RevenueChart-1FqnSQwm-DbcU_06Q.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CpQj99Qb-CNeLjT5o.js → ReviewDetailsPage-lLLKbhN0-BT0wsk-V.js} +1 -1
- package/dist/assets/{ReviewOverlay-ByJYZZ8h-DKDQulgK.js → ReviewOverlay-DpKT4WCT-DsGxeF5N.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DC3qy-Pk-BtoNCRZF.js → RoleWithToolTip-C1XhL3lB-B7Qf3yy-.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CZSXWRtp-BmMqgXGz.js → ScheduleDetailsFixedAssetsPage-CvvlLzCQ-CqLVHK0X.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DV-UMy5n-Bu3Lx35w.js → ScheduleDetailsPage-CGVqHmP_-BMOoi2ZX.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-g4vqQpwx-BPsIF3HB.js → ScheduleSequenceTable-CJuQ9Amk--y7yCkhs.js} +1 -1
- package/dist/assets/{ScreenRoutes-3arrcyp5.js → ScreenRoutes-DxB8WJje.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CTBtO2N2-BrdIY_vT.js → SetUpAccountSection-BOVDEhzr-C3wqEw_b.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-CXIQhQdd-CANv_E5K.js → SetUpDefaultSection-BUW8sK0W-D8WfjaRL.js} +1 -1
- package/dist/assets/{SignIn-8Qzfb-ML-B7hQujIh.js → SignIn-BGaDad3o-nbFdNqNt.js} +1 -1
- package/dist/assets/{SignInScreen-C5lFyz3y.js → SignInScreen-mCHxhTLP.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-XRKpo66r-Bdg-sLdt.js → SpendManagementListViewPage-CXb9GA0u-0PXiPZOV.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DCzaAg5_-DrEowgGh.js → SpendManagementPerTabPage-LIcVgCrR-CxyZtUS0.js} +1 -1
- package/dist/assets/{SpendManagementSection-CIGWntD1-By9W7FDF.js → SpendManagementSection-D3rquaEv-BJI1sMDC.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-EFLwpIsc-TDr6-tWN.js → SpendMgmtSetupAccountSection-34NSLgnB-BhuQEN-2.js} +1 -1
- package/dist/assets/{StatementItem-DBrH7VxB-XxZyXy_n.js → StatementItem-CKQIDNI0-Cbhakppi.js} +1 -1
- package/dist/assets/{StatementsPage-14W8QRuc-pc3fYE4f.js → StatementsPage-CA5-PHfq-3kTldJxW.js} +1 -1
- package/dist/assets/{StatusSwitcher-Bc1YjzA2-42VdCl63.js → StatusSwitcher-ClAXD4Hk-B8efgoPk.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CYkqW6KU-DyuQoQC_.js → SubTabSwitcher-YdGYWzl6-BSrIDfo2.js} +1 -1
- package/dist/assets/{SummaryCard-BCWWc9ky-zCdm3S8_.js → SummaryCard-D0Oq-6sw-pfSDr-fs.js} +1 -1
- package/dist/assets/{TaskManagementPage-ByiGVOvO-C0gvPdBT.js → TaskManagementPage-DeLRiSg9-FcYdsAtz.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DAv5fZf9-CsVIsSiK.js → TimeRangeSwitcher-uHZviz8F-nSd1JBe1.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DuE5Ij9a-BRpAdmST.js → TimeframeSwitcher-BbQBhmOL-BLQyoFS3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D2bWFmv2-BPBBkKAu.js → TimeframeSwitcherWithToggle-BiR6K3hf-DJkmMLYN.js} +1 -1
- package/dist/assets/{TopExCard-D2XGVr9A-Cr5rnYuB.js → TopExCard-C1z-jYgO-DYP_Y4B3.js} +1 -1
- package/dist/assets/{TopExDetailPage-CW72OuYz-CGG6V2oP.js → TopExDetailPage-BIdKONzR-JT-RJ9XI.js} +1 -1
- package/dist/assets/{TransactionDetailPage-9UkwTR4Z-C6_-Zdcl.js → TransactionDetailPage-CZmZZTeC-ClLcA3tN.js} +1 -1
- package/dist/assets/{TransactionList-ietybHPX-CRtRKVyc.js → TransactionList-DP-otHAk-CsCQ-Q-g.js} +1 -1
- package/dist/assets/{TransactionListBig-CImw-DuN-Cqontic2.js → TransactionListBig-yrdHHIm_-DI6W3NPr.js} +1 -1
- package/dist/assets/{TransactionListPage-Wf8pCEet-B2euq1bU.js → TransactionListPage-Dtedz_bT-Duc-EmUS.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-De43f8hV-D5hJvdCV.js → TransactionVendorDetailPage-D53fCXVj-BeB5zgEQ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DWZIGvKV-Bs7SoWrg.js → TransferDrawerPage-BG43cMhe-kCWSey3B.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DqY6cLQK-BJo0vH2z.js → TreasuryOverviewPage-Cu-vAyTv-UvlkXMsa.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-860OBCJZ-CwRDHtXZ.js → TreasuryPromoPage-D29YDIIf-Byx0FEvz.js} +1 -1
- package/dist/assets/{TreasurySetupPage-qx5Bkp8D-Hg_xKToo.js → TreasurySetupPage-CNZVlm4A-CUQCH228.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BBLe40p3-2k_Y1Iu8.js → TreasuryStatementsPage-BKv8xhNL-2p6txoaf.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-g5az8RTF-6xzZdkjq.js → TreasuryTaxLetterPage-p1VodgTu-DTqfoRB1.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BoFF-bna-MYGmf3er.js → TreasuryTransferOrReviewPage-Jq9Ongix-CqWM2M_9.js} +1 -1
- package/dist/assets/{TrendChart-wr5WIfKD-D8R0yYkX.js → TrendChart-Ct0sYmKc-XE1GbnMp.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D2zxfMK6-DfF1vM5a.js → TrendWithTransactions-DPmohk2J-B7i7ZC1s.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-C6r6V08i-DV4DmXpg.js → UncategorizedAccountsMappingPage-HQvUtoDk-BINh_Nac.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D1x3v9Gk-DkY2ZNfs.js → UnitIntegrationPage-CkrA1R1C-CQEI1r0Z.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CkmIxQkI-D1pyL4H-.js → UploadAdditionalDocumentOverlay-B2o-n3Qj-ARY5BkVh.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Db3DMkcT--1kqoenF.js → Vendor2FAPopup-Fu7VJKKS-BQ8nEZhC.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DR3LqsST-BP8lc2uS.js → VendorACHDetailsPage--WHeSayP-De2li3ds.js} +1 -1
- package/dist/assets/{VendorDetailPage-D3QGr-pz-Jp1clcFd.js → VendorDetailPage-Crtkf-yx-CX957gfZ.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage--bOPCKsx-C6xhg53R.js → VendorDomesticWireDetailsPage-Ch7iPqiC-BoSJwxjj.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BCHuhF3x-CsDBdySY.js → VendorFiling1099EditablePage-CZHK9ax6-B56lmcDt.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-7lNoCtJd-D8icYCx0.js → VendorFirstReviewPage-BVsy-fN1-Dw5I5AOu.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BKja_BeQ-EtZ5GGVZ.js → VendorInternationalWireDetailsPage-DH_mt3Gf-DtesDAA8.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BU7akKA7-D-U_ZVXQ.js → VendorInternationalWireSwiftDetailsPage-M_qkrLdF-OGEjB3_Q.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DUUeE27C-MBUecsTU.js → VendorsAccountsSection-DNSqfGkP-DAweHKu0.js} +1 -1
- package/dist/assets/{VerifyDevice-Bq2JQdFQ-CDMycp37.js → VerifyDevice-Dmsi0iEc-Daw7xnOL.js} +1 -1
- package/dist/assets/{VideoPlayer-BO44yY9I-BCBeBXAE.js → VideoPlayer-DwQsg64H-FOZjYnYW.js} +1 -1
- package/dist/assets/{VideoPopup-CGxCsA2n-B1kjO1HT.js → VideoPopup-CuNygbO8-CXsOFM5P.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DQe1wYJx-BrcMFZq6.js → WarningsDrawerPage-QjvzOmR3-CbqmO5iT.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-PvGx4G0J-Vle0CQ6y.js → ZeniAccountDetailPage-9V5NIEBx-BBa2xIp6.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CjFOZU7z-DchUIxZ4.js → ZeniAccountListViewPage-DzqDZ_Z6-1pOR05Cj.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Bl2KSpG4-UKF__LuA.js → ZeniAccountNavBarPieces-BLgOV9Pq-C34LPs6K.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Bq8_AYTZ-B6mHik8V.js → ZeniAccountPromoPage-DHUtp7bN-Cp__aG_E.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-B11NHszy-Cwcxjf8u.js → ZeniAccountSetupPage-COwDEzfT-BCuQrLrl.js} +1 -1
- package/dist/assets/{ZeniCopyright-D-Hzee6E-Be3euDZJ.js → ZeniCopyright-CoFE0iPF-BjUZD7x4.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-D7vxmkxJ-DhkE2l9t.js → ZeniTransferAmountSlider-D1yxK_Sg-CUfIK7Up.js} +1 -1
- package/dist/assets/{analyticsHelper-CvBzNOiq.js → analyticsHelper-Cq_mVjpc.js} +1 -1
- package/dist/assets/{analyticsHelper-BuFK9-t2-C_ZCSBU_.js → analyticsHelper-DEFjt4_V-CXHphihM.js} +1 -1
- package/dist/assets/{chartTypes-BeWpEHsD-cuF_fweG.js → chartTypes-Ctp63e1t-D7RTR7R4.js} +1 -1
- package/dist/assets/{commonDimensions-BXTyBb11-BZvJkpHs.js → commonDimensions-B2-svr35-l1Ftseew.js} +1 -1
- package/dist/assets/{detailCommon-D8YHBhNW-DxfpPp3m.js → detailCommon-BxfvlXzM-c4cCQDRO.js} +1 -1
- package/dist/assets/{downloadPdf-QmjxILNp-tUW4GmRw.js → downloadPdf-CucUGwli-ClL5bwSo.js} +1 -1
- package/dist/assets/{index-D1NKrhGT.js → index-CUSLlYOQ.js} +584 -584
- package/dist/assets/{mapLoadingInProgressToTreeNode-UTrwHX36-BaGBfOc7.js → mapLoadingInProgressToTreeNode-DTBUZrdP-D5TcLSii.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-uMOefjfH-BAA8ZKKZ.js → mapSectionWithAcOnlyToTreeNode-BOKkTsvJ-Cms3yElL.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DSldUxM--B-LxFqrg.js → mapSpacerToTreeNode-Dd3puFJ--CHeKXNVr.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CJT0f_FX-DkrinIxU.js → mapTimeframeBalancesToTreeNode-B63w1caj-BMDpEpul.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B0VWLas7-BMGHMA7T.js → mapTimeframeBalancesToTreeNode-CnOw6q7B-Dcw-h1Fj.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BgH8fPhv-my-Om0Pk.js → mapTimeframeHeaderLoadingInProgressToTreeNode-pKsXYgAP-2MnGaBAN.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BC4hEk4v-BfLwAA08.js → toCOABalancesWithID-Bt5Spech-DOUBXaKt.js} +1 -1
- package/dist/assets/{toChartData-Dn6RzL-C-Dq5XIaW7.js → toChartData-Cd7l-J03-CrmSmVWc.js} +1 -1
- package/dist/assets/{treasuryColorHelper-0WRygmI_-DD5uaJg8.js → treasuryColorHelper-BoBqhzD1-BdwMaD5C.js} +1 -1
- package/dist/assets/{uploadAttachment-DYn7wkG0-GblKRiRq.js → uploadAttachment-xLjLDGt--VDf2MRl-.js} +1 -1
- package/dist/assets/{uploadReceipts-dxsKhm9I-XXRx7Zif.js → uploadReceipts-CPeNTSex-CwQeEyUV.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CZAm4G7W-DBz7kMr9.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as _e,a4 as Vi,q as g,bX as Ws,u as vt,aX as qs,hu as Js,a0 as Je,bp as
|
|
1
|
+
import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as _e,a4 as Vi,q as g,bX as Ws,u as vt,aX as qs,hu as Js,a0 as Je,bp as we,C as X,aR as Ks,W as B,hs as Gs,x as Me,fj as Ys,gk as Hi,aS as Zs,bh as Rt,am as Ui,w as St,b6 as Wi,f as Qe,jt as Xs,fF as Qs,n as gt,a3 as ea,fR as ta,fS as qi,aK as na,bQ as oa,by as ia,eA as un,bv as po,a as Ht,bg as mo,F as Ut,ju as sa,jv as aa,jw as ra,jx as an,jy as Ji,jz as Ki,jA as la,jB as ca,dj as Gi,jC as da,jD as ua,jE as ha,jF as pa,jG as ma,jH as Lo,jI as ga,jJ as xa,jK as fa,jL as ya,jM as Ca,jN as Yi,jO as wa,jP as ba,jQ as va,jR as Sa,g4 as Zi,aj as Ln,b_ as An,m as Xi,aE as Qi,dP as es,ca as hn,dS as go,g0 as ja,f5 as ka,fl as Ia,r as $a,T as Ta,f2 as La,J as ts,jS as Aa,a8 as xo,a2 as Ao,jT as Ea,jU as Ra,gm as ns,jV as Da,a$ as os,a6 as Oa,ga as Et,hg as On,ey as jn,cn as fo,B as Fa,jW as Ba,cw as is,dl as Ma,ia as za,dr as yo,c3 as En,c6 as Rn,hV as tt,v as Lt,h5 as Pa,g5 as Fn,iu as Eo,dh as ss,cz as cn,jX as _a,ae as Na,dq as as,Q as dn,hM as rs,hW as ro,jY as Qt,dY as ls,dZ as cs,jZ as ds,j_ as us,j$ as Va,cx as Dn,hN as hs,d1 as ps,eq as Bn,U as Co,k0 as Ha,ct as Ua,ab as ms,i1 as Wa,dQ as qa,p as yt,k1 as Ja,k2 as Ka,ah as Mn,cH as Ga,b as Ya,en as Za,eo as Xa,ep as Qa,er as Ro,es as Do,et as er,k3 as tr,af as nr,eC as or,eD as ir,eE as sr}from"./index-CUSLlYOQ.js";import{n as a,b as s,j as Xe,k as wo,f as gs}from"./vendor-rkTZJa59.js";import{r as xs,R as fs,n as en,W as mt}from"./CollapsableReportTable-h83bbBqH-znYyQNxD.js";import{o as ys}from"./mapTimeframeBalancesToTreeNode-B63w1caj-BMDpEpul.js";import{d as Oo}from"./mapLoadingInProgressToTreeNode-DTBUZrdP-D5TcLSii.js";import{h as ar}from"./VendorsAccountsSection-DNSqfGkP-DAweHKu0.js";import{u as rr,c as Fo,d as lr,m as cr}from"./uploadAttachment-xLjLDGt--VDf2MRl-.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./AccountRow-C6U80qgq-CeoSbA52.js";const{common:{navBar:{back:dr},texts:{refresh:ur,close:hr,copy:pr,copied:mr,open:gr}},expenseAutomation:{common:{numbers:{maximumCount:xr}}}}=Ie.getLocalizedStrings(),fr=a(ja)`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: ${o.sp4};
|
|
4
4
|
height: ${o.sp4};
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
`,
|
|
7
|
+
`,yr=a.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
@@ -14,7 +14,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
14
14
|
&:hover {
|
|
15
15
|
color: ${e=>e.theme.colors.primary};
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Cr=a.div`
|
|
18
18
|
width: 100%;
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-shrink: 0;
|
|
@@ -24,36 +24,36 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
24
24
|
position: sticky;
|
|
25
25
|
top: 0;
|
|
26
26
|
z-index: 6;
|
|
27
|
-
`,
|
|
27
|
+
`,wr=a.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
align-items: center;
|
|
31
|
-
padding-left: ${e=>
|
|
32
|
-
padding-right: ${e=>
|
|
33
|
-
`,
|
|
31
|
+
padding-left: ${e=>Mo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
32
|
+
padding-right: ${e=>Mo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
33
|
+
`,br=a.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: baseline;
|
|
36
36
|
justify-content: end;
|
|
37
37
|
gap: ${o.sp4};
|
|
38
38
|
flex: 1 1 ${o.sp0};
|
|
39
|
-
`,
|
|
39
|
+
`,vr=a.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: baseline;
|
|
42
42
|
justify-content: start;
|
|
43
43
|
gap: ${o.sp4};
|
|
44
44
|
flex: 1 1 ${o.sp0};
|
|
45
|
-
`,
|
|
45
|
+
`,Sr=a(Ia)`
|
|
46
46
|
width: ${o.sp3};
|
|
47
47
|
height: ${o.sp3};
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-left: ${o.sp1};
|
|
50
50
|
color: inherit;
|
|
51
|
-
`,
|
|
51
|
+
`,jr=a(ka)`
|
|
52
52
|
width: ${o.sp3};
|
|
53
53
|
height: ${o.sp3};
|
|
54
54
|
margin-left: ${o.sp1};
|
|
55
55
|
color: ${Qe.success};
|
|
56
|
-
`,
|
|
56
|
+
`,kr=a(ea)`
|
|
57
57
|
cursor: pointer;
|
|
58
58
|
width: ${o.sp4};
|
|
59
59
|
height: ${o.sp4};
|
|
@@ -61,7 +61,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
61
61
|
&:hover {
|
|
62
62
|
color: ${e=>e.theme.colors.primary};
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,Ir=a(ia)`
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
width: ${o.sp4};
|
|
67
67
|
height: ${o.sp4};
|
|
@@ -69,28 +69,28 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
69
69
|
&:hover {
|
|
70
70
|
color: ${e=>e.theme.colors.primary};
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
`,$r=a(oa,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
|
|
73
73
|
cursor: pointer;
|
|
74
74
|
width: ${o.sp4};
|
|
75
75
|
height: ${o.sp4};
|
|
76
76
|
color: ${e=>e.theme.colors.hero};
|
|
77
77
|
animation: ${e=>e.$spinning?Xe`
|
|
78
|
-
${
|
|
78
|
+
${Tr} 2s linear infinite;
|
|
79
79
|
`:"none"};
|
|
80
80
|
&:hover {
|
|
81
81
|
color: ${e=>e.theme.colors.primary};
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
`,Tr=wo`
|
|
84
84
|
0% {
|
|
85
85
|
transform: rotate(0deg);
|
|
86
86
|
}
|
|
87
87
|
100% {
|
|
88
88
|
transform: rotate(360deg);
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,Lr=a.div`
|
|
91
91
|
padding-top: ${o.sp0};
|
|
92
92
|
padding-bottom: ${o.sp0};
|
|
93
|
-
`,
|
|
93
|
+
`,Bo=a(Me)`
|
|
94
94
|
color: ${e=>e.theme.colors.hero};
|
|
95
95
|
text-align: center;
|
|
96
96
|
display: flex;
|
|
@@ -98,9 +98,9 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
98
98
|
justify-content: center;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
padding-bottom: ${o.sp4};
|
|
101
|
-
`,Lr=a.div`
|
|
102
|
-
display: flex;
|
|
103
101
|
`,Ar=a.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
`,Er=a.div`
|
|
104
104
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
105
105
|
width: 100%;
|
|
106
106
|
margin-top: -2px;
|
|
@@ -108,19 +108,19 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
108
108
|
border-top-left-radius: ${o.sp2};
|
|
109
109
|
border-bottom-right-radius: ${o.sp2};
|
|
110
110
|
border-bottom-left-radius: ${o.sp2};
|
|
111
|
-
`,
|
|
111
|
+
`,Rr=a.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
height: ${o.sp4};
|
|
114
|
-
`,
|
|
114
|
+
`,Dr=a.div`
|
|
115
115
|
text-align: center;
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
justify-content: center;
|
|
119
119
|
flex-wrap: wrap;
|
|
120
|
-
`,
|
|
120
|
+
`,Or=a.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-direction: column;
|
|
123
|
-
`,
|
|
123
|
+
`,Fr=a(un)`
|
|
124
124
|
width: ${o.sp3};
|
|
125
125
|
height: ${o.sp3};
|
|
126
126
|
margin-right: ${o.sp1};
|
|
@@ -151,17 +151,17 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
151
151
|
}
|
|
152
152
|
text-decoration-color: ${e=>e.theme.colors.primary};
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Mo={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},zr=({onAllThreadsClick:e,companyId:n,companyName:d})=>{const c={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:d,url:window.location.href},{url:h,...p}=c,i={...p},{threads:l,isLoading:r}=ta(i,!1,!1),m=l.filter(u=>u.id.includes(qi)===!1);return t.jsxs(yr,{isDisabled:r,onClick:e,"data-testid":B("comment-icon"),children:[t.jsx(na,{count:m.length,isLoading:r}),t.jsx(fr,{})]})},Pr=({headerData:e,refreshStatus:n,searchText:d,companyName:c,companyId:h,isZeniUser:p,onAllThreadsClick:i,onClose:l,onRefresh:r,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&r()};return t.jsx(br,{children:e.rightSection.map((x,f)=>{switch(x){case"search":return t.jsx(Gs,{isSearchOpen:(d.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:d,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:o.sp4},searchIconMarginRight:o.sp0,onSearchTextChanged:w=>{m(w)},downloadPresent:!1},f+x);case"refresh":return t.jsx(we,{display:"block",placement:"bottom",title:ur,style:{marginTop:"2px"},enterDelay:600,children:t.jsx($r,{onClick:u,$spinning:n==="In-Progress","data-testid":B("refresh-icon")})},f+x);case"comment":return p===!1?null:t.jsx(zr,{companyId:h,companyName:c,onAllThreadsClick:i});case"close":default:return t.jsx(we,{display:"block",placement:"bottom",title:hr,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(kr,{onClick:l,"data-testid":B("close-icon")})},f+x)}})})},_r=({headerData:e,onBack:n})=>t.jsx(vr,{children:e.leftSection.map((d,c)=>{switch(d){case"back":default:return t.jsx(we,{display:"block",placement:"bottom",title:dr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(Ir,{onClick:n,"data-testid":B("back-button")})},c+d)}})}),zo=({text:e,linkText:n,windowSize:d,isCopied:c,onLinkClick:h})=>{if(n==null||!n)return t.jsxs(pn,{windowSize:d,children:[e," "]});const p=e.indexOf(n);if(p===-1)return t.jsxs(pn,{windowSize:d,children:[e," "]});const i=e.substring(0,p),l=e.substring(p+n.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(pn,{windowSize:d,children:[i.trim()," "]}):null,t.jsx(we,{display:"flex",placement:"right",title:Hi.test(n)?c?mr:pr:gr,enterTouchDelay:600,children:t.jsxs(Mr,{onClick:()=>h?.(n),"data-testid":B("pre-link"),children:[n,c?t.jsx(jr,{className:"success-icon"}):t.jsx(Sr,{className:"copy-icon"})]})}),l?t.jsxs(pn,{windowSize:d,children:[l," "]}):null]})},Po=({subTitles:e})=>{const n=ke(),[,d]=Ys(),[c,h]=s.useState(!1),p=s.useRef(null),i=s.useCallback(l=>{Hi.test(l)?(d(l),h(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{h(!1)},2e3)):window.open(l,"_blank","noopener,noreferrer")},[d]);return s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),t.jsx(Or,{children:e.map((l,r)=>t.jsxs(Dr,{children:[l.pre?t.jsx(zo,{text:l.pre,linkText:l.preLink,windowSize:n,isCopied:c,onLinkClick:i}):null,l.prefixIconName?t.jsx(t.Fragment,{children:l.prefixIconName==="zeniAIIcon"?t.jsx(Fr,{}):t.jsx(t.Fragment,{})}):null,l.bold?t.jsx(t.Fragment,{children:t.jsxs(Br,{windowSize:n,children:[l.bold," "]})}):null,l.post?t.jsx(zo,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:c,onLinkClick:i}):null]},r+l.bold+l.pre+l.post))})};function Nr(e){const{headerData:n,currentTab:d,completionStatus:c,onUpdateTab:h,selectedReconAccountId:p,getTabCountAndFetchState:i,reconcileDetailPageFetchState:l,forceShowSubtitle:r,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:x,navBarCustomElement:f,titleStyle:w={}}=e,j=i("autoCategorized")?.count??0,C=i("review")?.count??0,I=i("reconcile")?.count??0,y=n.tabs.length>0||n.subTitle.length>0,$=m==="transaction_categorization"&&d==="autoCategorized",R=m==="reconciliation"&&x==="review"&&p!=null,L=m==="reconciliation"&&x==="reconcile"&&p!=null,O=$?j>0:R?l==="In-Progress"?!0:C>0:L?l==="In-Progress"?!0:I>0:c!=="complete",v=vt(),k=ke();let A=[];return n.tabs.length>0&&(A=n.tabs.map(T=>({label:T.label,id:T.id,countDetails:i(T.id)}))),t.jsxs(Cr,{children:[t.jsx(qs,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:v.colors.grey4,onBackClick:()=>null,titleStyle:w,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(_r,{...e}),rightSideComponent:t.jsx(Pr,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(_e,{controller:y===!0,children:t.jsx(wr,{windowSize:k,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(Lr,{windowSize:k,children:t.jsx(Js,{allTabs:A,selectedTab:m==="transaction_categorization"?d??A[0].id:x??A[0].id,onTabChange:T=>{if(m==="transaction_categorization"){const N=q.toExpenseAutomationTransactionsTabKey(T.id);N!=null&&h(N)}else if(m==="reconciliation"){const N=q.toReconciliationTabsType(T.id);N!=null&&u(N)}},maximumCountLimit:xr})}),t.jsx(Er,{windowSize:k}),t.jsx(Rr,{}),t.jsx(_e,{controller:O===!0||r===!0,children:t.jsx(Bo,{windowSize:k,children:n.tabs.map((T,N)=>(m==="reconciliation"?T.id===x:T.id===d)?t.jsx(Ar,{children:t.jsx(Po,{subTitles:T.subTitle})},N+T.id):null)})})]}):t.jsx(_e,{controller:O===!0||r===!0,children:t.jsx(Bo,{windowSize:k,children:t.jsx(Po,{subTitles:n.subTitle})})})})})]})}const Vr=1;function Hr({name:e,checkBoxes:n,mode:d,isDisabled:c,style:h,labelStyle:p,labelCheckBoxStyle:i,checkBoxStyle:l,width:r,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:x,checkBoxContainerStyle:f,draggable:w=!1,selectionLimit:j,infoIconContainerStyle:C,onDragStart:I,rowHeight:y=40,initialScrollOffSet:$,onScroll:R}){const L=ke(),O=s.useRef(null),{control:v}=fo(),k=n.find(D=>D.groupLabel),A=n.filter(D=>!D.groupLabel),T=[];for(const D of A)if(D.isException||T.push(D.value),j!=null&&T.length===j+1)break;const N=n.filter(D=>D.defaultChecked).map(D=>D.value);return t.jsx(is,{control:v,name:e,rules:m,defaultValue:N,render:({field:{value:D,ref:K,onChange:V}})=>{const H=J=>{Wr({event:J,value:D,allCheckBoxValues:T,groupLabelCheckBox:k,onChange:V})};return t.jsxs(qr,{style:h,windowSize:L,children:[k&&t.jsx(bo,{checkBox:k,index:0,value:D,allCheckBoxValues:T,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:w,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:I,ref:K,onChangeHandler:H}),t.jsx(Jr,{children:t.jsx(Ln,{style:{height:"100%",width:"100%"},children:({height:J,width:Y})=>t.jsx(An,{ref:O,height:J,width:Y,itemCount:A.length,itemSize:()=>y,estimatedItemSize:y,initialScrollOffset:$??0,onScroll:({scrollOffset:F})=>{R?.(F)},overscanCount:Vr,itemKey:F=>A[F].value,itemData:{checkBoxes:A,value:D,allCheckBoxValues:T,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:w,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:I,ref:K,onChange:V,handleChangeEvent:H,rowHeight:y},children:Ur})})})]})}})}const Ur=({index:e,style:n,data:d})=>{const c=s.useRef(null),{checkBoxes:h,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:w,width:j,draggable:C,groupLabelCheckBox:I,infoIconContainerStyle:y,checkedIconColor:$,isDisabled:R,selectionLimit:L,onDragStart:O,ref:v,handleChangeEvent:k}=d,A=h[e];return t.jsx(Qr,{style:{...n,width:"100%"},ref:c,children:t.jsx(bo,{checkBox:A,index:e,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:w,width:j,draggable:C,groupLabelCheckBox:I,infoIconContainerStyle:y,checkedIconColor:$,isDisabled:R,selectionLimit:L,onDragStart:O,ref:v,onChangeHandler:k})})},bo=s.forwardRef((e,n)=>{const{value:d,checkBox:c,groupLabelCheckBox:h,allCheckBoxValues:p,selectionLimit:i,mode:l,checkBoxStyle:r,labelCheckBoxStyle:m,isDisabled:u,draggable:x,checkBoxContainerStyle:f,infoIconContainerStyle:w,name:j,index:C,width:I,checkedIconColor:y,checkBoxIconStyle:$,labelStyle:R,onDragStart:L,onChangeHandler:O}=e,v=ke(),k=D=>{typeof n=="function"?n(D):n&&(n.current=D)};let A=d.includes(c.value);const T=Array.from(new Set([...d,c.value]));h?.value===c.value&&d.length>0&&(i!=null?A=T.length===p.length||T.length===i+1:A=p.every(D=>T.includes(D)===!0));const N=()=>l==="off"||c.isException?v==="small"?{display:"none",...r}:{visibility:"hidden",...r}:c.groupLabel?p.length===1&&p[0]===h?.value?{visibility:"hidden",...m}:m:r;return t.jsxs(Gr,{mode:l,draggable:x===!0,onDragStart:D=>{L?.(D,c.value)},style:f,isDisabled:u,isSelected:A,exceptionMode:c.exceptionMode,children:[c.prefix?t.jsx(Kr,{className:"prefix-box",children:c.prefix}):null,c.isException?t.jsx(Yr,{style:w,className:"checkbox-alert",children:t.jsx(we,{style:{padding:`12px ${o.sp3}`},title:c.exceptionInfo??"",placement:"bottom-start",children:c.exceptionType==="info"?t.jsx(Zr,{}):t.jsx(Xr,{})})}):t.jsx(Ha,{name:`${j}.${c.value}`,checkBoxValue:c.value,value:A,checkedIconColor:y,isDisabled:u||!c.groupLabel&&!A&&i!=null&&T.length===i+1?"disabled":void 0,checkBoxStyle:N(),checkBoxIconStyle:$,ref:k,onChange:O}),typeof c.label=="string"&&c.label?t.jsx(Ua,{isDisabled:u,label:c.label,labelStyle:R,htmlFor:`${j}.${c.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:I,backgroundColor:"inherit",...R}}):c.label]},`${c.value}_${C}`)});bo.displayName="CheckBoxWithLabel";const Wr=({event:e,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:h})=>{const p=e.currentTarget.value,i=e.currentTarget.checked,l=c?.value,r=new Set(n);if(p===l){h(i?Array.from(new Set([l,...d])):[]);return}i?r.add(p):r.delete(p);const m=d.every(u=>r.has(u));l!=null&&(m&&!r.has(l)?r.add(l):!m&&r.has(l)&&r.delete(l)),h(Array.from(r))},qr=a.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
flex-direction: column;
|
|
157
157
|
width: 100%;
|
|
158
158
|
height: 100%;
|
|
159
|
-
`,
|
|
159
|
+
`,Jr=a.div`
|
|
160
160
|
flex: 1;
|
|
161
161
|
overflow: hidden;
|
|
162
|
-
`,Jr=a.div`
|
|
163
|
-
opacity: 0;
|
|
164
162
|
`,Kr=a.div`
|
|
163
|
+
opacity: 0;
|
|
164
|
+
`,Gr=a.div`
|
|
165
165
|
display: flex;
|
|
166
166
|
align-items: center;
|
|
167
167
|
flex-direction: row;
|
|
@@ -222,24 +222,24 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
222
222
|
opacity: 1;
|
|
223
223
|
}
|
|
224
224
|
`}
|
|
225
|
-
`,
|
|
225
|
+
`,Yr=a.div`
|
|
226
226
|
cursor: pointer;
|
|
227
|
-
`,
|
|
227
|
+
`,Zr=a(Wi)`
|
|
228
228
|
height: ${o.sp3};
|
|
229
229
|
width: ${o.sp3};
|
|
230
230
|
color: ${e=>e.theme.colors.hero};
|
|
231
231
|
background-color: ${e=>e.theme.colors.grey4};
|
|
232
232
|
border-radius: 50%;
|
|
233
|
-
`,
|
|
233
|
+
`,Xr=a(ps)`
|
|
234
234
|
height: ${o.sp3};
|
|
235
235
|
width: ${o.sp3};
|
|
236
236
|
color: ${e=>e.theme.colors.hero};
|
|
237
237
|
background-color: ${e=>e.theme.colors.grey4};
|
|
238
238
|
border-radius: 50%;
|
|
239
|
-
`,
|
|
239
|
+
`,Qr=a.div`
|
|
240
240
|
width: 100%;
|
|
241
241
|
box-sizing: border-box;
|
|
242
|
-
`,Qr=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),el=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),tl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),nl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),ol=a.div`
|
|
242
|
+
`,el=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),tl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),nl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),ol=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),il=a.div`
|
|
243
243
|
width: 100%;
|
|
244
244
|
display: flex;
|
|
245
245
|
justify-content: center;
|
|
@@ -247,29 +247,29 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
247
247
|
flex: 1;
|
|
248
248
|
background: ${e=>e.theme.colors.grey4};
|
|
249
249
|
box-sizing: border-box;
|
|
250
|
-
`,
|
|
250
|
+
`,sl=a(tl)`
|
|
251
251
|
width: 90px;
|
|
252
252
|
height: 90px;
|
|
253
|
-
`,
|
|
253
|
+
`,al=a(nl)`
|
|
254
254
|
width: 90px;
|
|
255
255
|
height: 90px;
|
|
256
|
-
`,
|
|
256
|
+
`,rl=a(el)`
|
|
257
257
|
width: 90px;
|
|
258
258
|
height: 90px;
|
|
259
|
-
`,
|
|
259
|
+
`,ll=a(ol)`
|
|
260
260
|
width: 90px;
|
|
261
261
|
height: 90px;
|
|
262
|
-
`,
|
|
262
|
+
`,cl=a.div`
|
|
263
263
|
display: flex;
|
|
264
264
|
align-items: center;
|
|
265
265
|
justify-content: center;
|
|
266
266
|
flex-direction: column;
|
|
267
|
-
`,
|
|
267
|
+
`,dl=a($a)`
|
|
268
268
|
margin-top: ${o.sp2};
|
|
269
269
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
270
|
-
`,
|
|
270
|
+
`,ul=a(Ta)`
|
|
271
271
|
color: ${e=>e.theme.colors.primary};
|
|
272
|
-
`,
|
|
272
|
+
`,hl=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(sl,{});case"je_schedules":case"reconciliation":return t.jsx(ll,{});case"flux_analysis":return t.jsx(rl,{});case"missing_receipts":default:return t.jsx(al,{})}};function bt(e){const{title:n,subTitle:d}=e;return t.jsx(il,{children:t.jsxs(cl,{children:[t.jsx(hl,{...e}),t.jsx(dl,{children:n}),t.jsx(ul,{children:d})]})})}const{common:{headers:{transactions:pl,jeSchedules:ml,fluxAnalysis:gl,missingReceipts:xl,insights:fl,reconciliation:_o},strings:{empty:Mt}},expenseAutomation:{transactions:{tabs:No,subTitles:{review:{item1:mn,item2:gn},autoCategorized:{item1:xn,item2:yl}},searchPlaceholder:Cl,allDoneText:wl},jeSchedules:{subTitles:{item1:bl,item2:vl},searchPlaceholder:Sl,allDoneText:jl},missingReceipts:{subTitles:kl,searchPlaceholder:Il,allDoneText:$l},fluxAnalysis:{subTitles:{item1:Tl,item2:Ll},searchPlaceholder:Al,emptyPageTexts:{youDidIt:El,allReviewed:Rl}},accountRecon:{review:{allDoneText:Vo},reconcile:{allDoneText:Dl},tabs:Ho,titles:{item1:Ol,item2:Fl},subTitles:{review:{item1:Bl,item2:fn},reconcile:{item1:yn,item2:Ml}}}}}=Ie.getLocalizedStrings(),He=(e,n,d,c,h)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:pl,subTitle:[],tabs:[{label:No.review,id:"review",subTitle:[{pre:mn.pre,bold:mn.bold,prefixIconName:mn.prefixIconName,post:mn.post},{pre:gn.pre,bold:gn.bold,prefixIconName:gn.prefixIconName,post:gn.post}]},{label:No.autoCategorized,id:"autoCategorized",subTitle:[{pre:xn.pre,bold:xn.bold,prefixIconName:xn.prefixIconName,post:xn.post.replace("#number",n!=null&&n!=0?n.toString():"")},yl]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Cl,allDoneText:wl};case"je_schedules":return{key:"je_schedules",title:ml,subTitle:[bl,vl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Sl,allDoneText:jl};case"missing_receipts":return{key:"missing_receipts",title:xl,subTitle:[kl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Il,allDoneText:$l};case"flux_analysis":return{key:"flux_analysis",title:gl,subTitle:[Tl,Ll],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Al,allDoneText:{title:El,subTitle:Rl}};case"month_end_insights":return{key:"month_end_insights",title:fl,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Mt,allDoneText:{title:Mt,subTitle:Mt}};case"reconciliation":return d==null?{key:"reconciliation",title:_o,subTitle:[Ol,Fl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Mt,allDoneText:{title:Mt,subTitle:Mt}}:{key:"reconciliation",title:c??_o,subText:h??void 0,subTitle:[],tabs:[{label:Ho.review,id:"review",subTitle:[Bl,{pre:fn.pre,bold:fn.bold,prefixIconName:fn.prefixIconName,post:fn.post}],allDoneText:Vo},{label:Ho.reconcile,id:"reconcile",subTitle:[{pre:yn.pre,bold:yn.bold,prefixIconName:yn.prefixIconName,post:yn.post},Ml],allDoneText:Dl}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Mt,allDoneText:Vo}}},{common:{strings:{empty:zl}},expenseAutomation:{accountRecon:{reconcile:{header:Dt}}}}=Ie.getLocalizedStrings(),Pl={key:"date",value:Dt.date,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginLeft:g[4],marginRight:g[3]}},_l={key:"clearedDate",value:Dt.clearedDate,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3],display:"none"}},Nl={key:"type",value:Dt.type,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Vl={key:"payee",value:Dt.payee,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Hl={key:"account",value:Dt.account,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Ul={key:"transactionDirection",value:Dt.direction,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Wl={key:"memo",value:Dt.memo,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},ql={key:"amount",value:Dt.amount,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Jl={key:"recommended",value:zl,sortOrder:"ascending",width:new X(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}},Fe=[Pl,_l,Nl,Vl,Hl,Ul,Wl,ql,Jl],Kl=50,sn={sortKey:"date",sortOrder:"descending"};function Gl({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const d=ke(),[c,h]=s.useState(Co(Fe));s.useEffect(()=>{const l=[...c];for(const r of l)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";h(l)},[e.sortKey,e.sortOrder]);const p=(l,r)=>{let m=r;e.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),n(l,m)},i=l=>{p(l.key,l.sortOrder)};return t.jsx(Ql,{headerHeight:Kl,children:c.map(l=>t.jsx(Zl,{columnWidth:l.width,windowSize:d,sortDataValue:e.sortKey,actualDataValue:l.key,style:l.customStyle,children:t.jsxs(ic,{isVisible:l.key!=="recommended",children:[t.jsx(Xl,{"data-testid":B("reconcile-tab-list-sort",l.value),onClick:()=>i(l),children:t.jsx(gt,{children:l.value})}),t.jsx(ec,{sortConfig:e,headerData:l,children:t.jsx(tc,{})}),t.jsx(nc,{isVisible:e.sortKey===l.key&&(e.sortKey!==sn.sortKey||e.sortOrder!==sn.sortOrder),children:t.jsx(oc,{"data-testid":B("reconcile-tab-list-reset-sort",sn.sortKey),onClick:()=>n(sn.sortKey,sn.sortOrder)})})]})},l.key))})}const Yl=gs.memo(Gl),Zl=a.div`
|
|
273
273
|
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
274
274
|
:hover {
|
|
275
275
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -282,11 +282,11 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
282
282
|
gap: 6px;
|
|
283
283
|
z-index: auto;
|
|
284
284
|
position: relative;
|
|
285
|
-
`,
|
|
285
|
+
`,Xl=a.div`
|
|
286
286
|
display: flex;
|
|
287
287
|
gap: 5px;
|
|
288
288
|
cursor: pointer;
|
|
289
|
-
`,
|
|
289
|
+
`,Ql=a(St)`
|
|
290
290
|
width: fit-content;
|
|
291
291
|
height: ${e=>`${e.headerHeight}px`};
|
|
292
292
|
width: calc(100% - 20px);
|
|
@@ -298,15 +298,15 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
298
298
|
padding: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp0};
|
|
299
299
|
position: sticky;
|
|
300
300
|
color: ${e=>e.theme.colors.grey1};
|
|
301
|
-
`,
|
|
301
|
+
`,ec=a.div`
|
|
302
302
|
display: flex;
|
|
303
303
|
align-items: center;
|
|
304
304
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
305
305
|
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
306
|
-
`,
|
|
306
|
+
`,tc=a(En)`
|
|
307
307
|
width: ${o.sp2};
|
|
308
308
|
height: ${o.sp2};
|
|
309
|
-
`,
|
|
309
|
+
`,nc=a.div`
|
|
310
310
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
311
311
|
align-items: center;
|
|
312
312
|
padding-top: 2px;
|
|
@@ -315,17 +315,17 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
315
315
|
&:hover {
|
|
316
316
|
color: ${e=>e.theme.colors.primary};
|
|
317
317
|
}
|
|
318
|
-
`,
|
|
318
|
+
`,oc=a(Rn)`
|
|
319
319
|
width: 12px;
|
|
320
320
|
height: 12px;
|
|
321
|
-
`,
|
|
321
|
+
`,ic=a.div`
|
|
322
322
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
323
|
-
`,
|
|
323
|
+
`,sc=54,ac=72,{common:{strings:{hyphen:zn}}}=Ie.getLocalizedStrings(),{dateFormat:Uo}=Ie.getLocalizedStrings();function rc({selectedTransactionIds:e,transaction:n,transactionId:d}){const c=ke(),h=vt(),[p,i]=s.useState(!1),l=e.includes(d),r=p||l;return t.jsx(lc,{id:d,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(cc,{isSelected:r,totalHeight:sc,children:[t.jsx(xt,{windowSize:c,responsiveWidth:Fe[0].width,style:Fe[0].customStyle,children:t.jsx(zt,{isSelected:r,children:n.date.format(Uo.visual.MMMDCommaYYYYformat)})}),Fe[1].customStyle.display!=="none"?t.jsx(xt,{windowSize:c,responsiveWidth:Fe[1].width,style:Fe[1].customStyle,children:t.jsx(zt,{isSelected:r,children:n.clearedDate!=null?n.clearedDate.format(Uo.visual.MMMDCommaYYYYformat):t.jsx("span",{children:zn})})}):null,t.jsx(xt,{windowSize:c,style:Fe[2].customStyle,responsiveWidth:Fe[2].width,children:t.jsx(hc,{isSelected:r,children:t.jsx(dc,{isSelected:r,children:Va(n.type)})})}),t.jsx(xt,{windowSize:c,style:Fe[3].customStyle,responsiveWidth:Fe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(tt,{text:n.merchantName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(zt,{isSelected:r,children:t.jsx("span",{children:zn})})}),t.jsx(xt,{windowSize:c,style:Fe[4].customStyle,responsiveWidth:Fe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(tt,{text:n.accountName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(zt,{isSelected:r,children:t.jsx("span",{children:zn})})}),t.jsx(xt,{windowSize:c,style:Fe[5].customStyle,responsiveWidth:Fe[5].width,children:t.jsx(zt,{isSelected:r,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(xt,{windowSize:c,style:Fe[6].customStyle,responsiveWidth:Fe[6].width,children:t.jsx(tt,{text:n.memo,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}})}),t.jsx(xt,{windowSize:c,style:Fe[7].customStyle,responsiveWidth:Fe[7].width,children:t.jsx(zt,{isSelected:r,children:Je("0,0.[00]",n.amount)})}),t.jsx(xt,{windowSize:c,responsiveWidth:Fe[8].width,style:Fe[8].customStyle,children:t.jsx(zt,{isSelected:r,children:n.isZeniRecommended?t.jsx(uc,{}):null})})]})})}const lc=a.div`
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
width: 100%;
|
|
326
326
|
display: flex;
|
|
327
327
|
padding-right: ${o.sp8};
|
|
328
|
-
`,
|
|
328
|
+
`,cc=a.div`
|
|
329
329
|
cursor: pointer;
|
|
330
330
|
display: flex;
|
|
331
331
|
border-radius: ${o.sp2};
|
|
@@ -347,28 +347,28 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
347
347
|
height: 100%;
|
|
348
348
|
z-index: auto;
|
|
349
349
|
position: relative;
|
|
350
|
-
`,zt=a(
|
|
350
|
+
`,zt=a(Me)`
|
|
351
351
|
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
352
352
|
span {
|
|
353
353
|
padding-left: ${o.sp3};
|
|
354
354
|
}
|
|
355
|
-
`,
|
|
355
|
+
`,dc=a(gt)`
|
|
356
356
|
text-transform: capitalize;
|
|
357
357
|
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
358
|
-
`,
|
|
358
|
+
`,uc=a(un)`
|
|
359
359
|
width: ${o.sp3};
|
|
360
360
|
height: ${o.sp3};
|
|
361
361
|
margin-right: ${o.sp1};
|
|
362
362
|
path {
|
|
363
363
|
stroke-width: 2;
|
|
364
364
|
}
|
|
365
|
-
`,
|
|
365
|
+
`,hc=a.div`
|
|
366
366
|
padding: 1px 6px;
|
|
367
367
|
border-radius: ${o.sp1};
|
|
368
368
|
border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
|
|
369
|
-
`,
|
|
369
|
+
`,pc=Ie.getLocalizedStrings(),{common:{all:Wo,strings:{empty:qo}}}=pc,Jo="selectedTransactionIds",mc="expenseAutomationBankReconReconcilePage",gc=e=>`${e}_form`;function xc({currentFooterFormId:e,localData:n,matchedTransactions:d,sortConfig:c,onSaveReconciliation:h,selectedAccountId:p,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r}){const m=Ht({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Yl,{onReconTabColumnSortConfigChanged:i,sortConfig:c}),value:Wo.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},x=d.map(C=>({label:t.jsx(rc,{transaction:C,selectedTransactionIds:n.selectedTransactionIds,transactionId:C.id}),value:C.id,defaultChecked:!1,groupLabel:!1})),f=[u,...x],w=async C=>{const I=C[Jo].filter(y=>y!=Wo.toLocaleLowerCase());l(I)};s.useEffect(()=>{const C=m.watch(I=>{I!=null&&hn(()=>w(I))});return()=>{C.unsubscribe()}}),s.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const j=s.useCallback(()=>{h({reconcileAction:"reconcile"})},[h]);if(d.length===0){const C=He("reconciliation",void 0,p).tabs.find(I=>I.id==="reconcile")?.allDoneText;return t.jsx(wc,{children:t.jsx(bt,{tab:"missing_receipts",title:C?.title??qo,subTitle:C?.subTitle??qo})})}return t.jsx(fc,{children:t.jsx(Ut,{...m,children:t.jsx(yc,{onSubmit:m.handleSubmit(j),id:gc(mc),children:t.jsx(Cc,{children:t.jsx(Hr,{name:Jo,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:ac,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const fc=a.div``,yc=a.form``,Cc=a.div`
|
|
370
370
|
height: calc(100vh - 350px);
|
|
371
|
-
`,
|
|
371
|
+
`,wc=a.div`
|
|
372
372
|
height: 100%;
|
|
373
373
|
display: flex;
|
|
374
374
|
justify-content: center;
|
|
@@ -406,18 +406,18 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
406
406
|
justify-content: space-between;
|
|
407
407
|
padding: ${o.sp2};
|
|
408
408
|
padding-right: ${o.sp3};
|
|
409
|
-
`,
|
|
409
|
+
`,bc=a.div`
|
|
410
410
|
border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: row;
|
|
413
413
|
justify-content: space-between;
|
|
414
414
|
padding: ${o.sp2};
|
|
415
415
|
padding-right: ${o.sp3};
|
|
416
|
-
`,
|
|
416
|
+
`,vc=a.div`
|
|
417
417
|
padding: ${o.sp2} ${o.sp3};
|
|
418
418
|
`,jo=a.div`
|
|
419
419
|
display: flex;
|
|
420
|
-
`,
|
|
420
|
+
`,Sc=a.div`
|
|
421
421
|
display: flex;
|
|
422
422
|
align-items: center;
|
|
423
423
|
justify-content: center;
|
|
@@ -477,13 +477,13 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
477
477
|
padding: ${o.sp2} ${o.sp3};
|
|
478
478
|
`,te=a(gt)`
|
|
479
479
|
color: ${e=>e.theme.colors.hero};
|
|
480
|
-
`,ce=a(
|
|
480
|
+
`,ce=a(Me)`
|
|
481
481
|
width: 100%;
|
|
482
482
|
color: ${e=>e.theme.colors.hero};
|
|
483
483
|
white-space: nowrap;
|
|
484
484
|
overflow: hidden;
|
|
485
485
|
text-overflow: ellipsis;
|
|
486
|
-
`,
|
|
486
|
+
`,ae=a.div`
|
|
487
487
|
display: flex;
|
|
488
488
|
gap: ${o.sp1};
|
|
489
489
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -522,7 +522,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
522
522
|
border-radius: ${o.sp1};
|
|
523
523
|
`,qe=a(kn)`
|
|
524
524
|
padding: 2px ${o.sp2};
|
|
525
|
-
`,qt=Ie.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Ct=[{key:"date",value:qt.date,sortOrder:"ascending",width:new X(20,20),loaderWidth:120},{key:"payee",value:qt.payee,sortOrder:"ascending",width:new X(20,20),loaderWidth:212},{key:"memo",value:qt.memo,sortOrder:"ascending",width:new X(20,20),loaderWidth:192},{key:"direction",value:qt.direction,sortOrder:"ascending",width:new X(15,15),loaderWidth:84},{key:"match",value:qt.match,sortOrder:"ascending",width:new X(15,15),loaderWidth:152},{key:"amount",value:qt.amount,sortOrder:"ascending",width:new X(10,10),loaderWidth:64}],
|
|
525
|
+
`,qt=Ie.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Ct=[{key:"date",value:qt.date,sortOrder:"ascending",width:new X(20,20),loaderWidth:120},{key:"payee",value:qt.payee,sortOrder:"ascending",width:new X(20,20),loaderWidth:212},{key:"memo",value:qt.memo,sortOrder:"ascending",width:new X(20,20),loaderWidth:192},{key:"direction",value:qt.direction,sortOrder:"ascending",width:new X(15,15),loaderWidth:84},{key:"match",value:qt.match,sortOrder:"ascending",width:new X(15,15),loaderWidth:152},{key:"amount",value:qt.amount,sortOrder:"ascending",width:new X(10,10),loaderWidth:64}],jc=e=>{const{sortConfig:n,onColumnSortConfigChanged:d}=e,c=ke(),[h,p]=s.useState(Co(Ct));s.useEffect(()=>{const l=[...h];for(const r of l)r.key===n.sortKey?r.sortOrder=n.sortOrder:r.sortOrder="ascending";p(l)},[n.sortKey,n.sortOrder]);const i=(l,r)=>{let m=r;n.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),d(l,m)};return t.jsx(Ic,{children:h.map(l=>t.jsxs($c,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:c,isLastColumn:l.key==="amount",children:[t.jsxs(Tc,{"data-testid":B("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>i(l.key,l.sortOrder),children:[t.jsx(gt,{children:l.value}),t.jsx(Lc,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(Ac,{})})]}),t.jsx(Ec,{sortDataValue:n.sortKey,windowSize:c,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Rc,{"data-testid":B("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},l.key))})},kc=gs.memo(jc),Ic=a(St)`
|
|
526
526
|
top: 0;
|
|
527
527
|
left: 0;
|
|
528
528
|
width: fit-content;
|
|
@@ -535,7 +535,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
535
535
|
position: sticky;
|
|
536
536
|
color: ${e=>e.theme.colors.grey1};
|
|
537
537
|
background-color: ${e=>e.theme.colors.grey4};
|
|
538
|
-
|
|
538
|
+
`,$c=a.div`
|
|
539
539
|
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
540
540
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
541
541
|
min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -544,7 +544,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
544
544
|
gap: 5px;
|
|
545
545
|
left: ${o.sp0};
|
|
546
546
|
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
547
|
-
|
|
547
|
+
`,Tc=a.div`
|
|
548
548
|
display: flex;
|
|
549
549
|
cursor: pointer;
|
|
550
550
|
gap: ${o.sp1};
|
|
@@ -552,7 +552,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
552
552
|
color: ${e=>e.theme.colors.primary};
|
|
553
553
|
}
|
|
554
554
|
white-space: nowrap;
|
|
555
|
-
`,
|
|
555
|
+
`,Lc=a.div`
|
|
556
556
|
display: flex;
|
|
557
557
|
align-items: center;
|
|
558
558
|
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -561,21 +561,21 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
561
561
|
`:Xe`
|
|
562
562
|
padding-bottom: 2px;
|
|
563
563
|
`}
|
|
564
|
-
`,
|
|
564
|
+
`,Ac=a(En)`
|
|
565
565
|
width: ${o.sp2};
|
|
566
566
|
height: ${o.sp2};
|
|
567
567
|
cursor: pointer;
|
|
568
568
|
color: inherit;
|
|
569
|
-
`,
|
|
569
|
+
`,Ec=a.div`
|
|
570
570
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
571
571
|
align-items: center;
|
|
572
572
|
padding-top: 2px;
|
|
573
|
-
`,
|
|
573
|
+
`,Rc=a(Rn)`
|
|
574
574
|
width: 12px;
|
|
575
575
|
height: 12px;
|
|
576
576
|
cursor: pointer;
|
|
577
577
|
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,lt="accountReconReviewTableSection",{dateFormat:Rc,expenseAutomation:Dc,common:pt}=Ie.getLocalizedStrings(),{visual:js}=Rc,{accountRecon:me}=Dc,ks=e=>[{label:me.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Is=e=>[{label:me.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ko=e=>`${lt}_${e}_form`,Re=(e,n)=>`${lt}.${e}.${n}`,Oc=e=>{const{sortKey:n,sortOrder:d,accountReconEntity:c,entitySearchAutoCompleteActions:h,allAccountList:p,classList:i,localData:l,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,refreshStatus:C,updateLocalData:I,onColumnSortConfigChanged:y,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L,bankAccounts:O,creditCards:v}=e,{transactionsToReview:k}=c,A=s.useRef(null),[T,N]=s.useState(null),D=V=>{const H=k[V],J=q.isReviewTransactionBillPaymentType(H),Y=q.isReviewTransactionExpenseType(H),B=q.isReviewTransactionCreditCardPaymentType(H),oe=q.isReviewTransactionBankTransferType(H),fe=q.isReviewTransactionDepositType(H),U=H.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return H.transactionId===T?Y||B||oe||fe?275+(U?25:0):J?185+H.recommendedAction.recommendedTransactions.length*40+(U?25:0):146:72},K=s.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:d}}),[y,n,d]);if(s.useEffect(()=>{N(k[0]?.transactionId??null),A.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[T]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[k.length]),s.useEffect(()=>{C.fetchState==="Completed"&&A.current?.resetAfterIndex(0)},[C]),k.length===0){const V=He("reconciliation",void 0,u).tabs.find(H=>H.id==="review")?.allDoneText;return t.jsx(nd,{children:t.jsx(bt,{tab:"reconciliation",title:V?.title??pt.strings.empty,subTitle:V?.subTitle??pt.strings.empty})})}return t.jsx(Vc,{children:t.jsx($s.Provider,{value:K,children:t.jsx(Ln,{children:({height:V,width:H})=>t.jsx(An,{width:H,height:V,innerElementType:Ts,ref:A,itemCount:k.length,itemSize:D,itemKey:J=>k[J].transactionId,overscanCount:Fa,itemData:{transactionsList:k,expandedRowId:T,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,bankAccounts:O,creditCards:v,updateLocalData:I,setExpandedRowId:N,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L},initialScrollOffset:0,children:Bc})})})})},$s=s.createContext(void 0),Ts=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext($s);return t.jsxs(Hc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx(jc,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Uc,{children:d})]})});Ts.displayName="Account recon review table inner element type";const Bc=({index:e,style:n,data:d})=>{const{transactionsList:c,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,allAccountList:l,classList:r,localData:m,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:L,creditCards:O}=d,v=c[e];return t.jsx(Nc,{style:{...n,width:"100%"},children:t.jsx(Mc,{transaction:v,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,selectedVendor:R[v.transactionId],bankAccounts:L,creditCards:O})})},Mc=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,allAccountList:h,classList:p,classListNestedAccountHierarchy:i,localData:l,entitySearchAutoCompleteData:r,excludeFetchById:m,saveFetchById:u,selectedVendor:x,bankAccounts:f,creditCards:w,setExpandedRowId:j,updateLocalData:C,onSaveReconciliation:I,onSaveReconciliationReview:y,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,L=ke(),O=l[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",k=e.recommendedAction.action==="record_expense",A=h.find(D=>D.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),T=D=>D.recommendedAction.recommendedTransactions.length>0&&D.recommendedAction.recommendedTransactions[0].merchantName!=null?D.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,N=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(zc,{isExpanded:R,children:[t.jsxs(Pc,{isExpanded:R,onClick:()=>j(e.transactionId),"data-testid":M("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[0].width,children:t.jsx(Jt,{children:e.transactionDate.format(js.MMMDCommaYYYYformat)})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[1].width,children:t.jsx(Jt,{children:t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:T(e)})})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[2].width,children:t.jsx(Jt,{children:t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[3].width,children:t.jsx(Jt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Kt,{windowSize:L,responsiveWidth:Ct[4].width,children:[t.jsx(_e,{controller:v,children:t.jsx(od,{children:t.jsx(id,{children:me.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(_e,{controller:!v,children:t.jsx(Jt,{children:A!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Kt,{windowSize:L,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Jt,{children:ms("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(_e,{controller:R&&O!=null,children:[t.jsx(Fc,{onSaveReconciliation:I,onSaveReconciliationReview:y,updateLocalData:C,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:f,creditCards:w,onReconMatchedTransactionClick:$}),t.jsx(_e,{controller:(v||k)&&N!=null,children:t.jsx(ad,{children:t.jsxs(rd,{children:[me.review.bankDetail,pt.strings.colon," ",N]})})})]})]})},Fc=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:d,allAccountList:c,classList:h,classListNestedAccountHierarchy:p,localData:i,entitySearchAutoCompleteData:l,excludeFetchById:r,saveFetchById:m,selectedVendor:u,bankAccounts:x,creditCards:f,updateLocalData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I})=>{const y=vt(),[$,R]=s.useState(!i.vendor?.id),[L,O]=s.useState(!i.customer?.id),[v,k]=s.useState(i.categoryId==null),[A,T]=s.useState(i.classId==null),[N,D]=s.useState(i.bankAccountId==null),[K,V]=s.useState(i.creditCardId==null),[H,J]=s.useState(!i.memo),Y=q.isReviewTransactionBillPaymentType(e),B=q.isReviewTransactionExpenseType(e),oe=q.isReviewTransactionBankTransferType(e),fe=q.isReviewTransactionCreditCardPaymentType(e),U=q.isReviewTransactionDepositType(e),he=s.useMemo(()=>{if(!B)return Et(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Et(n,u?.recommendations);const S=c.find($e=>$e.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ee=S!=null?{...S,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return Et(n,[{account:ee}])},[B,u,e.recommendedAction.recommendedTransactions,c,n]),ge=s.useMemo(()=>{if(!B)return jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return jn(p,u?.recommendations);const S=h.find($e=>$e.classId===e.recommendedAction.recommendedTransactions[0]?.classId),ee=S!=null?{...S,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return jn(p,[{class:ee}])},[B,u,e.recommendedAction.recommendedTransactions,h,p]),b=Ht({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Go(e,i,he,c,ge,x,f,l),[e,i,ge,c,he,x,f,l]),values:s.useMemo(()=>Go(e,i,he,c,ge,x,f,l),[e,i,ge,c,he,x,f,l])}),z=async(S,ee)=>{S.includes("memo")||w(Yo(ee,e,l,c),e.transactionId,S.includes("vendor"))};s.useEffect(()=>{const S=b.watch((ee,{name:$e})=>{$e!=null&&ee!=null&&hn(()=>z($e,ee))});return()=>{S.unsubscribe()}});const W=s.useCallback(S=>{if(B||U){if(B&&i.vendor==null){R(!1),b.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(U&&i.customer==null){O(!1),b.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){k(!1),b.setError(Re(e.transactionId,"category"),{type:"required"});return}}w(Yo(S,e,l,c),e.transactionId,!1),C(e.transactionId)},[B,U,w,e,l,c,C,i.categoryId,i.vendor,i.customer]),F=b.watch(Re(e.transactionId,"vendor")),E=b.watch(Re(e.transactionId,"customer")),P=s.useRef(),Q=s.useMemo(()=>B?"vendor":U?"customer":null,[B,U]),_=(S,ee)=>{Q!=null&&d.onAutoCompleteInputChange?.(S,Q),P.current=ee};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(B&&P.current?.(rs(l.entityAutoCompleteView)),U&&P.current?.(Ja(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,U,B]);const G=S=>h.filter(ee=>ee.classId===S)[0]?.accountingClassNumber??void 0,ae=S=>c.filter(ee=>ee.qboId===S)[0]?.qboId,re=s.useMemo(()=>{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"]}},[e.recommendedAction.action]),we=()=>{k(!1)},ve=()=>{D(!1)},Se=()=>{V(!1)};return s.useEffect(()=>{v===!1&&i.categoryId==null&&b.setFocus(Re(e.transactionId,"category"))},[v]),s.useEffect(()=>{A===!1&&i.classId==null&&b.setFocus(Re(e.transactionId,"class"))},[A]),s.useEffect(()=>{$===!1&&i.vendor==null&&b.setFocus(Re(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{L===!1&&i.customer==null&&b.setFocus(Re(e.transactionId,"customer"))},[L]),s.useEffect(()=>{N===!1&&i.bankAccountId==null&&b.setFocus(Re(e.transactionId,"bankAccount"))},[N]),s.useEffect(()=>{K===!1&&i.creditCardId==null&&b.setFocus(Re(e.transactionId,"creditCard"))},[K]),t.jsx(Ut,{...b,children:t.jsx("form",{onSubmit:b.handleSubmit(W),id:Ko(e.transactionId),children:t.jsxs(_c,{children:[t.jsxs(Wc,{children:[t.jsxs(Kc,{children:[t.jsxs(Gc,{children:[t.jsx(Ls,{}),t.jsx(Fn,{label:{label:Y?me.review.formLabels.match:me.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:Y?"match":"categorize",value:Y?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(_e,{controller:!Y,children:t.jsxs(t.Fragment,{children:[t.jsx(Zo,{}),re.map(S=>t.jsx(Fn,{label:{label:me.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},S))]})})]}),t.jsxs(Jc,{children:[t.jsx(dn,{variant:"secondary",size:"small",label:me.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":M("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(dn,{form:Ko(e.transactionId),"data-testid":M("account-reconciliation-review-save-button",e.transactionId),label:pt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(_e,{controller:B||U,children:t.jsxs(Pn,{children:[t.jsx(_e,{controller:B,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(Z,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.vendor}),t.jsx(se,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),R(!1)},"data-testid":M("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addVendor]}):t.jsx(ro,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:me.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:_})})})]})})})}),t.jsx(_e,{controller:U,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&L===!1&&O(!0)},children:t.jsx(Z,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.customer}),t.jsx(se,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:L===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),O(!1)},"data-testid":M("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addCustomer]}):t.jsx(ro,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:me.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:_})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&v===!1&&k(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.category}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),we()},"data-testid":M("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:me.review.formLabels.addCategory,valueToId:S=>ae(S),defaultValue:{allOptions:he,selectedOption:c.find(S=>S.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&A===!1&&T(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.class}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:A===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),T(!1)},"data-testid":M("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addClass]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:me.review.formLabels.addClass,valueToId:S=>G(S),defaultValue:{allOptions:ge,selectedOption:i.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})]})}),t.jsx(_e,{controller:Y,children:t.jsxs(Yc,{children:[t.jsxs(Zc,{children:[t.jsx("span",{className:"matched-text",children:`${me.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),me.review.matchesFoundFullInfo]}),t.jsx(Qc,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?t.jsxs(ed,{children:[t.jsx(Fn,{label:{label:t.jsxs(Xc,{children:[t.jsx(Fe,{children:S.date.format(js.MMMDCommaYYYYformat)}),t.jsx(Fe,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(sd,{"data-testid":M("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&I(S.bookTransactionId)},children:[t.jsx(td,{children:ms("0,0.00",S.amount.amount,S.amount.currencySymbol)}),t.jsx(Zo,{})]})]},S.bookTransactionId):null)})]})}),t.jsx(_e,{controller:oe,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&N===!1&&D(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.transferTo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":M("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.selectAccount]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:me.review.formLabels.selectAccount,defaultValue:{allOptions:ks(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(_e,{controller:fe,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&K===!1&&V(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.creditCard}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),Se()},"data-testid":M("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.selectCard]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:me.review.formLabels.selectCard,defaultValue:{allOptions:Is(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(_e,{controller:!Y,children:t.jsx(qc,{children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.header.memo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),J(!1)},"data-testid":M("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addMemo]}):t.jsx(Ka,{name:Re(e.transactionId,"memo"),placeholder:me.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Cn={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}`})},Go=(e,n,d,c,h,p,i,l)=>{const r=c.find(m=>m.accountId===n.categoryId);return{[lt]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:d},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:ks(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Is(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:hs(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:er(n?.customer,l.entityAutoCompleteView)}}}}},Yo=(e,n,d,c)=>{const{vendor:h,customer:p}=e[lt][n.transactionId];let i;if(h.selectedOption!=null){const r=h.defaultOptions.find(m=>m.value===h.selectedOption);if(r!=null)i={id:h.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let l;if(p.selectedOption!=null){const r=p.defaultOptions.find(m=>m.value===p.selectedOption);if(r!=null)l={id:p.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(l={id:m.zeniId,name:m.name})}}return{categoryId:c.find(r=>r.qboId===e[lt][n.transactionId].category.selectedOption)?.accountId??e[lt][n.transactionId].category.selectedOption,classId:e[lt][n.transactionId].class.selectedOption,memo:e[lt][n.transactionId].memo,matchedTransactionId:e[lt][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[lt][n.transactionId].bankAccount.selectedOption,creditCardId:e[lt][n.transactionId].creditCard.selectedOption,customer:l}},Jt=a(Fe)`
|
|
578
|
+
`,lt="accountReconReviewTableSection",{dateFormat:Dc,expenseAutomation:Oc,common:pt}=Ie.getLocalizedStrings(),{visual:js}=Dc,{accountRecon:me}=Oc,ks=e=>[{label:me.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Is=e=>[{label:me.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ko=e=>`${lt}_${e}_form`,Re=(e,n)=>`${lt}.${e}.${n}`,Fc=e=>{const{sortKey:n,sortOrder:d,accountReconEntity:c,entitySearchAutoCompleteActions:h,allAccountList:p,classList:i,localData:l,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,refreshStatus:C,updateLocalData:I,onColumnSortConfigChanged:y,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L,bankAccounts:O,creditCards:v}=e,{transactionsToReview:k}=c,A=s.useRef(null),[T,N]=s.useState(null),D=V=>{const H=k[V],J=q.isReviewTransactionBillPaymentType(H),Y=q.isReviewTransactionExpenseType(H),F=q.isReviewTransactionCreditCardPaymentType(H),oe=q.isReviewTransactionBankTransferType(H),ye=q.isReviewTransactionDepositType(H),U=H.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return H.transactionId===T?Y||F||oe||ye?275+(U?25:0):J?185+H.recommendedAction.recommendedTransactions.length*40+(U?25:0):146:72},K=s.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:d}}),[y,n,d]);if(s.useEffect(()=>{N(k[0]?.transactionId??null),A.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[T]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[k.length]),s.useEffect(()=>{C.fetchState==="Completed"&&A.current?.resetAfterIndex(0)},[C]),k.length===0){const V=He("reconciliation",void 0,u).tabs.find(H=>H.id==="review")?.allDoneText;return t.jsx(od,{children:t.jsx(bt,{tab:"reconciliation",title:V?.title??pt.strings.empty,subTitle:V?.subTitle??pt.strings.empty})})}return t.jsx(Hc,{children:t.jsx($s.Provider,{value:K,children:t.jsx(Ln,{children:({height:V,width:H})=>t.jsx(An,{width:H,height:V,innerElementType:Ts,ref:A,itemCount:k.length,itemSize:D,itemKey:J=>k[J].transactionId,overscanCount:za,itemData:{transactionsList:k,expandedRowId:T,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,bankAccounts:O,creditCards:v,updateLocalData:I,setExpandedRowId:N,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L},initialScrollOffset:0,children:Bc})})})})},$s=s.createContext(void 0),Ts=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext($s);return t.jsxs(Uc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx(kc,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Wc,{children:d})]})});Ts.displayName="Account recon review table inner element type";const Bc=({index:e,style:n,data:d})=>{const{transactionsList:c,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,allAccountList:l,classList:r,localData:m,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:L,creditCards:O}=d,v=c[e];return t.jsx(Vc,{style:{...n,width:"100%"},children:t.jsx(Mc,{transaction:v,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,selectedVendor:R[v.transactionId],bankAccounts:L,creditCards:O})})},Mc=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,allAccountList:h,classList:p,classListNestedAccountHierarchy:i,localData:l,entitySearchAutoCompleteData:r,excludeFetchById:m,saveFetchById:u,selectedVendor:x,bankAccounts:f,creditCards:w,setExpandedRowId:j,updateLocalData:C,onSaveReconciliation:I,onSaveReconciliationReview:y,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,L=ke(),O=l[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",k=e.recommendedAction.action==="record_expense",A=h.find(D=>D.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),T=D=>D.recommendedAction.recommendedTransactions.length>0&&D.recommendedAction.recommendedTransactions[0].merchantName!=null?D.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,N=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Pc,{isExpanded:R,children:[t.jsxs(_c,{isExpanded:R,onClick:()=>j(e.transactionId),"data-testid":B("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[0].width,children:t.jsx(Jt,{children:e.transactionDate.format(js.MMMDCommaYYYYformat)})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[1].width,children:t.jsx(Jt,{children:t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:T(e)})})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[2].width,children:t.jsx(Jt,{children:t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Kt,{windowSize:L,responsiveWidth:Ct[3].width,children:t.jsx(Jt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Kt,{windowSize:L,responsiveWidth:Ct[4].width,children:[t.jsx(_e,{controller:v,children:t.jsx(id,{children:t.jsx(sd,{children:me.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(_e,{controller:!v,children:t.jsx(Jt,{children:A!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(tt,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Kt,{windowSize:L,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Jt,{children:ms("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(_e,{controller:R&&O!=null,children:[t.jsx(zc,{onSaveReconciliation:I,onSaveReconciliationReview:y,updateLocalData:C,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:f,creditCards:w,onReconMatchedTransactionClick:$}),t.jsx(_e,{controller:(v||k)&&N!=null,children:t.jsx(rd,{children:t.jsxs(ld,{children:[me.review.bankDetail,pt.strings.colon," ",N]})})})]})]})},zc=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:d,allAccountList:c,classList:h,classListNestedAccountHierarchy:p,localData:i,entitySearchAutoCompleteData:l,excludeFetchById:r,saveFetchById:m,selectedVendor:u,bankAccounts:x,creditCards:f,updateLocalData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I})=>{const y=vt(),[$,R]=s.useState(!i.vendor?.id),[L,O]=s.useState(!i.customer?.id),[v,k]=s.useState(i.categoryId==null),[A,T]=s.useState(i.classId==null),[N,D]=s.useState(i.bankAccountId==null),[K,V]=s.useState(i.creditCardId==null),[H,J]=s.useState(!i.memo),Y=q.isReviewTransactionBillPaymentType(e),F=q.isReviewTransactionExpenseType(e),oe=q.isReviewTransactionBankTransferType(e),ye=q.isReviewTransactionCreditCardPaymentType(e),U=q.isReviewTransactionDepositType(e),he=s.useMemo(()=>{if(!F)return Et(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Et(n,u?.recommendations);const S=c.find($e=>$e.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ee=S!=null?{...S,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return Et(n,[{account:ee}])},[F,u,e.recommendedAction.recommendedTransactions,c,n]),ge=s.useMemo(()=>{if(!F)return jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return jn(p,u?.recommendations);const S=h.find($e=>$e.classId===e.recommendedAction.recommendedTransactions[0]?.classId),ee=S!=null?{...S,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return jn(p,[{class:ee}])},[F,u,e.recommendedAction.recommendedTransactions,h,p]),b=Ht({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Go(e,i,he,c,ge,x,f,l),[e,i,ge,c,he,x,f,l]),values:s.useMemo(()=>Go(e,i,he,c,ge,x,f,l),[e,i,ge,c,he,x,f,l])}),z=async(S,ee)=>{S.includes("memo")||w(Yo(ee,e,l,c),e.transactionId,S.includes("vendor"))};s.useEffect(()=>{const S=b.watch((ee,{name:$e})=>{$e!=null&&ee!=null&&hn(()=>z($e,ee))});return()=>{S.unsubscribe()}});const W=s.useCallback(S=>{if(F||U){if(F&&i.vendor==null){R(!1),b.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(U&&i.customer==null){O(!1),b.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){k(!1),b.setError(Re(e.transactionId,"category"),{type:"required"});return}}w(Yo(S,e,l,c),e.transactionId,!1),C(e.transactionId)},[F,U,w,e,l,c,C,i.categoryId,i.vendor,i.customer]),M=b.watch(Re(e.transactionId,"vendor")),E=b.watch(Re(e.transactionId,"customer")),P=s.useRef(),Q=s.useMemo(()=>F?"vendor":U?"customer":null,[F,U]),_=(S,ee)=>{Q!=null&&d.onAutoCompleteInputChange?.(S,Q),P.current=ee};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(F&&P.current?.(rs(l.entityAutoCompleteView)),U&&P.current?.(Ka(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,U,F]);const G=S=>h.filter(ee=>ee.classId===S)[0]?.accountingClassNumber??void 0,re=S=>c.filter(ee=>ee.qboId===S)[0]?.qboId,ie=s.useMemo(()=>{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"]}},[e.recommendedAction.action]),xe=()=>{k(!1)},ve=()=>{D(!1)},Se=()=>{V(!1)};return s.useEffect(()=>{v===!1&&i.categoryId==null&&b.setFocus(Re(e.transactionId,"category"))},[v]),s.useEffect(()=>{A===!1&&i.classId==null&&b.setFocus(Re(e.transactionId,"class"))},[A]),s.useEffect(()=>{$===!1&&i.vendor==null&&b.setFocus(Re(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{L===!1&&i.customer==null&&b.setFocus(Re(e.transactionId,"customer"))},[L]),s.useEffect(()=>{N===!1&&i.bankAccountId==null&&b.setFocus(Re(e.transactionId,"bankAccount"))},[N]),s.useEffect(()=>{K===!1&&i.creditCardId==null&&b.setFocus(Re(e.transactionId,"creditCard"))},[K]),t.jsx(Ut,{...b,children:t.jsx("form",{onSubmit:b.handleSubmit(W),id:Ko(e.transactionId),children:t.jsxs(Nc,{children:[t.jsxs(qc,{children:[t.jsxs(Gc,{children:[t.jsxs(Yc,{children:[t.jsx(Ls,{}),t.jsx(Mn,{label:{label:Y?me.review.formLabels.match:me.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:Y?"match":"categorize",value:Y?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(_e,{controller:!Y,children:t.jsxs(t.Fragment,{children:[t.jsx(Zo,{}),ie.map(S=>t.jsx(Mn,{label:{label:me.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},S))]})})]}),t.jsxs(Kc,{children:[t.jsx(dn,{variant:"secondary",size:"small",label:me.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":B("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(dn,{form:Ko(e.transactionId),"data-testid":B("account-reconciliation-review-save-button",e.transactionId),label:pt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(_e,{controller:F||U,children:t.jsxs(Pn,{children:[t.jsx(_e,{controller:F,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(Z,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.vendor}),t.jsx(ae,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),R(!1)},"data-testid":B("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addVendor]}):t.jsx(ro,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:me.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:M?.selectedOption,defaultOptions:M?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:_})})})]})})})}),t.jsx(_e,{controller:U,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&L===!1&&O(!0)},children:t.jsx(Z,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.customer}),t.jsx(ae,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:L===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),O(!1)},"data-testid":B("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addCustomer]}):t.jsx(ro,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:me.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:_})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&v===!1&&k(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.category}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),xe()},"data-testid":B("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:me.review.formLabels.addCategory,valueToId:S=>re(S),defaultValue:{allOptions:he,selectedOption:c.find(S=>S.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&A===!1&&T(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.class}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:A===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),T(!1)},"data-testid":B("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addClass]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:me.review.formLabels.addClass,valueToId:S=>G(S),defaultValue:{allOptions:ge,selectedOption:i.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})]})}),t.jsx(_e,{controller:Y,children:t.jsxs(Zc,{children:[t.jsxs(Xc,{children:[t.jsx("span",{className:"matched-text",children:`${me.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),me.review.matchesFoundFullInfo]}),t.jsx(ed,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?t.jsxs(td,{children:[t.jsx(Mn,{label:{label:t.jsxs(Qc,{children:[t.jsx(Me,{children:S.date.format(js.MMMDCommaYYYYformat)}),t.jsx(Me,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(ad,{"data-testid":B("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&I(S.bookTransactionId)},children:[t.jsx(nd,{children:ms("0,0.00",S.amount.amount,S.amount.currencySymbol)}),t.jsx(Zo,{})]})]},S.bookTransactionId):null)})]})}),t.jsx(_e,{controller:oe,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&N===!1&&D(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.transferTo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":B("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.selectAccount]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:me.review.formLabels.selectAccount,defaultValue:{allOptions:ks(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(_e,{controller:ye,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&K===!1&&V(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.creditCard}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),Se()},"data-testid":B("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.selectCard]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:me.review.formLabels.selectCard,defaultValue:{allOptions:Is(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(_e,{controller:!Y,children:t.jsx(Jc,{children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.header.memo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),J(!1)},"data-testid":B("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),me.review.formLabels.addMemo]}):t.jsx(Ga,{name:Re(e.transactionId,"memo"),placeholder:me.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Cn={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}`})},Go=(e,n,d,c,h,p,i,l)=>{const r=c.find(m=>m.accountId===n.categoryId);return{[lt]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:d},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:ks(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Is(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:hs(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:tr(n?.customer,l.entityAutoCompleteView)}}}}},Yo=(e,n,d,c)=>{const{vendor:h,customer:p}=e[lt][n.transactionId];let i;if(h.selectedOption!=null){const r=h.defaultOptions.find(m=>m.value===h.selectedOption);if(r!=null)i={id:h.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let l;if(p.selectedOption!=null){const r=p.defaultOptions.find(m=>m.value===p.selectedOption);if(r!=null)l={id:p.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(l={id:m.zeniId,name:m.name})}}return{categoryId:c.find(r=>r.qboId===e[lt][n.transactionId].category.selectedOption)?.accountId??e[lt][n.transactionId].category.selectedOption,classId:e[lt][n.transactionId].class.selectedOption,memo:e[lt][n.transactionId].memo,matchedTransactionId:e[lt][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[lt][n.transactionId].bankAccount.selectedOption,creditCardId:e[lt][n.transactionId].creditCard.selectedOption,customer:l}},Jt=a(Me)`
|
|
579
579
|
display: flex;
|
|
580
580
|
align-items: center;
|
|
581
581
|
column-gap: ${o.sp1};
|
|
@@ -583,7 +583,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
583
583
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
584
584
|
display: flex;
|
|
585
585
|
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
586
|
-
`,
|
|
586
|
+
`,Pc=a.div`
|
|
587
587
|
display: flex;
|
|
588
588
|
flex-direction: column;
|
|
589
589
|
box-sizing: border-box;
|
|
@@ -598,7 +598,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
598
598
|
}
|
|
599
599
|
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
600
600
|
border-radius: ${o.sp2};
|
|
601
|
-
`,
|
|
601
|
+
`,_c=a.div`
|
|
602
602
|
display: flex;
|
|
603
603
|
flex-direction: row;
|
|
604
604
|
align-items: center;
|
|
@@ -607,27 +607,27 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
607
607
|
column-gap: ${o.sp2};
|
|
608
608
|
|
|
609
609
|
border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
|
|
610
|
-
`,
|
|
610
|
+
`,Nc=a.div`
|
|
611
611
|
padding: ${o.sp2} ${o.sp4};
|
|
612
612
|
display: flex;
|
|
613
613
|
flex-direction: column;
|
|
614
614
|
row-gap: ${o.sp2};
|
|
615
|
-
`,
|
|
615
|
+
`,Vc=a.div`
|
|
616
616
|
top: ${o.sp0};
|
|
617
617
|
left: ${o.sp0};
|
|
618
618
|
box-sizing: border-box;
|
|
619
|
-
`,
|
|
619
|
+
`,Hc=a.div`
|
|
620
620
|
height: calc(100vh - 350px);
|
|
621
621
|
max-width: 99.9%;
|
|
622
622
|
padding: ${o.sp0};
|
|
623
|
-
`,
|
|
623
|
+
`,Uc=a.div``,Wc=a.div`
|
|
624
624
|
position: relative;
|
|
625
625
|
width: auto;
|
|
626
626
|
height: 100%;
|
|
627
627
|
display: flex;
|
|
628
628
|
flex-direction: column;
|
|
629
629
|
row-gap: ${o.sp3};
|
|
630
|
-
`,
|
|
630
|
+
`,qc=a.div`
|
|
631
631
|
display: flex;
|
|
632
632
|
flex-direction: row;
|
|
633
633
|
align-items: center;
|
|
@@ -640,19 +640,19 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
640
640
|
flex-direction: row;
|
|
641
641
|
align-items: center;
|
|
642
642
|
column-gap: ${o.sp3};
|
|
643
|
-
`,qc=a.div`
|
|
644
|
-
width: 100%;
|
|
645
643
|
`,Jc=a.div`
|
|
644
|
+
width: 100%;
|
|
645
|
+
`,Kc=a.div`
|
|
646
646
|
display: flex;
|
|
647
647
|
flex-direction: row;
|
|
648
648
|
align-items: center;
|
|
649
649
|
column-gap: ${o.sp3};
|
|
650
|
-
`,
|
|
650
|
+
`,Gc=a.div`
|
|
651
651
|
display: flex;
|
|
652
652
|
flex-direction: row;
|
|
653
653
|
align-items: center;
|
|
654
654
|
column-gap: ${o.sp6};
|
|
655
|
-
`,
|
|
655
|
+
`,Yc=a.div`
|
|
656
656
|
display: flex;
|
|
657
657
|
flex-direction: row;
|
|
658
658
|
align-items: center;
|
|
@@ -660,59 +660,59 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
660
660
|
`,Pt=a(Dn)`
|
|
661
661
|
width: ${o.sp3};
|
|
662
662
|
height: ${o.sp3};
|
|
663
|
-
`,Zo=a(
|
|
663
|
+
`,Zo=a(nr)`
|
|
664
664
|
width: ${o.sp3};
|
|
665
665
|
height: ${o.sp3};
|
|
666
666
|
color: ${e=>e.theme.colors.hero};
|
|
667
|
-
`,
|
|
667
|
+
`,Zc=a.div`
|
|
668
668
|
display: flex;
|
|
669
669
|
flex-direction: column;
|
|
670
670
|
row-gap: ${o.sp3};
|
|
671
671
|
padding: ${o.sp0} 12px;
|
|
672
|
-
`,
|
|
672
|
+
`,Xc=a(Me)`
|
|
673
673
|
color: ${e=>e.theme.colors.primary};
|
|
674
674
|
|
|
675
675
|
.matched-text {
|
|
676
676
|
font-weight: ${po.bold};
|
|
677
677
|
}
|
|
678
|
-
`,
|
|
678
|
+
`,Qc=a.div`
|
|
679
679
|
display: flex;
|
|
680
680
|
align-items: center;
|
|
681
681
|
column-gap: ${o.sp2};
|
|
682
|
-
`,
|
|
682
|
+
`,ed=a.div`
|
|
683
683
|
display: flex;
|
|
684
684
|
flex-direction: column;
|
|
685
685
|
row-gap: ${o.sp2};
|
|
686
|
-
`,
|
|
686
|
+
`,td=a.div`
|
|
687
687
|
display: flex;
|
|
688
688
|
flex-direction: row;
|
|
689
689
|
align-items: center;
|
|
690
690
|
justify-content: space-between;
|
|
691
691
|
padding-bottom: ${o.sp2};
|
|
692
692
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
693
|
-
`,
|
|
693
|
+
`,nd=a(Me)`
|
|
694
694
|
color: ${e=>e.theme.colors.hero};
|
|
695
|
-
`,
|
|
695
|
+
`,od=a.div`
|
|
696
696
|
height: 100%;
|
|
697
697
|
display: flex;
|
|
698
698
|
justify-content: center;
|
|
699
699
|
align-items: center;
|
|
700
|
-
`,
|
|
700
|
+
`,id=a.div`
|
|
701
701
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
702
702
|
padding: ${o.sp0} ${o.sp1};
|
|
703
703
|
border-radius: ${o.sp1};
|
|
704
|
-
`,
|
|
704
|
+
`,sd=a(gt)`
|
|
705
705
|
color: ${e=>e.theme.colors.hero};
|
|
706
|
-
`,
|
|
706
|
+
`,ad=a.div`
|
|
707
707
|
display: flex;
|
|
708
708
|
align-items: center;
|
|
709
709
|
column-gap: 20px;
|
|
710
710
|
cursor: pointer;
|
|
711
|
-
`,
|
|
711
|
+
`,rd=a.div`
|
|
712
712
|
text-align: center;
|
|
713
713
|
padding: ${o.sp1} ${o.sp0};
|
|
714
714
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
715
|
-
`,
|
|
715
|
+
`,ld=a(gt)`
|
|
716
716
|
color: ${e=>e.theme.colors.hero};
|
|
717
717
|
`,Ls=a(un)`
|
|
718
718
|
width: ${o.sp3};
|
|
@@ -721,15 +721,15 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
721
721
|
path {
|
|
722
722
|
stroke-width: 2;
|
|
723
723
|
}
|
|
724
|
-
`,
|
|
724
|
+
`,cd=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:d,currentFooterFormId:c,entitySearchAutoCompleteActions:h,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:l,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:w,reconciliationTabsState:{reconcile:{uiState:{sortKey:j,sortOrder:C}}},selectedReconAccount:I}=e,y=w[d],{transactionFetchState:$}=I??{};return $?.fetchState==="In-Progress"||$?.fetchState==="Not-Started"?t.jsxs(Xo,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(dd,{children:Ct.map(R=>t.jsx(Rt,{width:R.loaderWidth,height:18},R.key))}),t.jsxs(hd,{children:[...Array(3).fill(0).map((R,L)=>t.jsx(ud,{children:Ct.map(O=>t.jsx(Rt,{width:O.loaderWidth,height:g[4]},O.key))},`${L}_${R}`))]})]}):t.jsx(Xo,{children:e.selectedTab==="reconcile"?t.jsx(xc,{selectedAccountId:d,currentFooterFormId:c,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:u,sortConfig:{sortKey:j,sortOrder:C},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:y?.accountReconEntity.transactionsToReconcile}):t.jsx(Fc,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[d]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[d].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:r,entitySearchAutoCompleteActions:h,onColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:d,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Xo=a.div`
|
|
725
725
|
width: 100%;
|
|
726
726
|
height: 100%;
|
|
727
|
-
`,
|
|
727
|
+
`,dd=a.div`
|
|
728
728
|
display: flex;
|
|
729
729
|
justify-content: space-between;
|
|
730
730
|
padding: ${o.sp3} ${o.sp4};
|
|
731
731
|
column-gap: ${o.sp6};
|
|
732
|
-
`,
|
|
732
|
+
`,ud=a.div`
|
|
733
733
|
display: flex;
|
|
734
734
|
justify-content: space-between;
|
|
735
735
|
padding: ${o.sp3} ${o.sp4};
|
|
@@ -738,17 +738,17 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
738
738
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
739
739
|
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
740
740
|
column-gap: ${o.sp6};
|
|
741
|
-
`,
|
|
741
|
+
`,hd=a.div`
|
|
742
742
|
display: flex;
|
|
743
743
|
gap: ${o.sp3};
|
|
744
744
|
flex-direction: column;
|
|
745
|
-
`;function
|
|
745
|
+
`;function pd({title:e,config:n,nodeId:d}){return{children:[],id:d??mt("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:n}}}function md({account:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=mt("ac_group_report",[],d);return{children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"ac_group_report",title:d,data:e,numOfBalances:n},config:h}}}function gd({title:e,section:n,config:d,numOfBalances:c,nodeId:h}){return{children:[],id:h??mt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:c},config:d}}}function Qo({section:e,allAccountReconciliations:n,title:d,subTitle:c,isLastNode:h,isTitleRowRequired:p,config:i}){const l=mt("section",[],d),r={children:[],id:l,isLastNode:h,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:0},config:i}};if(p){const u=mt("title_string_only",[],d),x={children:[],id:u,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:d,data:e,numOfBalances:0},config:i}};r.children.push(x)}const m=gd({title:c,section:e,config:i,numOfBalances:0});return r.children.push(m),e.accountIDs.forEach((u,x)=>{const f=n[u],w=md({account:f,numOfBalances:0,title:f.accountReconEntity.account.accountName,isLastNode:x===e.accountIDs.length-1,config:i});r.children.push(w)}),r}function As({config:e,accountReconForSection:n,nodeId:d}){return{children:[],id:d??mt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}const xd=(e,n,d,c,h=!0)=>{const p=As({config:n,accountReconForSection:e.accountReconciliationBySectionID.assets}),i=[];i.push(p);const l=Array.isArray(d[c])?d[c]:[],{expenseAutomation:{accountRecon:{reconciliation:r}},common:{loading:m}}=Ie.getLocalizedStrings(),u=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",x=f=>f.filter(w=>!l.includes(w));if(u)[...Array(3)].forEach((f,w)=>{i.push(pd({title:`${w}+${m}`,config:n}))});else{const f=x(e.accountReconciliationBySectionID.assets.accountIDs),w=Qo({section:{...e.accountReconciliationBySectionID.assets,accountIDs:f},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.assets.title,subTitle:r.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(i.push(w),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const j=x(e.accountReconciliationBySectionID.liabilities.accountIDs),C=Qo({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:j},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.liabilities.title,subTitle:r.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});i.push(C)}}return{config:n,headerNodes:h?[p]:[],contentNodes:i}};function fd(e,n,d,c=!1){Object.assign(e.config,d);const h=As({config:d,accountReconForSection:n.accountReconciliationBySectionID.assets});return{config:d,headerNodes:c?[h]:[],contentNodes:[h,...e.contentNodes.slice(1)]}}const co={wrapperPadding:new X(g[2],g[2],g[2],g[8]),contentPaddingLeft:new X(g[2],g[2],g[2],g[2]),contentPaddingRight:new X(g[2],g[2],g[2],g[2])},yd=a.div`
|
|
746
746
|
display: flex;
|
|
747
747
|
height: 100%;
|
|
748
748
|
width: 100%;
|
|
749
749
|
justify-content: center;
|
|
750
750
|
align-items: center;
|
|
751
|
-
`,
|
|
751
|
+
`,Cd=a.div`
|
|
752
752
|
display: flex;
|
|
753
753
|
height: 100%;
|
|
754
754
|
min-height: 100%;
|
|
@@ -757,10 +757,10 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
757
757
|
justify-content: center;
|
|
758
758
|
padding-left: ${e=>co.wrapperPadding.valuePx(e.windowSize)};
|
|
759
759
|
background-color: ${e=>e.theme.colors.grey4};
|
|
760
|
-
`,
|
|
760
|
+
`,wd=a.div`
|
|
761
761
|
width: 100%;
|
|
762
762
|
height: 100%;
|
|
763
|
-
`,{common:
|
|
763
|
+
`,{common:bd}=Ie.getLocalizedStrings();function vd({reconciliation:e,companyId:n,onScroll:d,onReload:c,onReviewClicked:h,setOpenDrawerClicked:p,onFetchLinkTokenClick:i,onEstablishConnectionClick:l,onAddStatementClick:r}){const[m,u]=s.useState(void 0),[x,f]=s.useState(void 0),w=e.plaidConnectionDetails.link_account_no_microdeposit,j=e.plaidConnectionDetails.update_account,C=x==="update_account"?j:w,[I,y]=s.useState(C.linkToken??null),[$,R]=s.useState(!1),{useDynamicConfig:L}=Qi(),{configValue:O}=L(es.accountReconGLAccountsConfig),v=s.useCallback(M=>{u(M),f("link_account_no_microdeposit")},[]),k=s.useCallback(M=>{const E=D.current.accountReconciliationsByAccountID[M]?.paymentAccountId;u(M),f("update_account"),i("update_account",E)},[]),A=s.useCallback(M=>{p(M)},[]),T=s.useRef(m),N=s.useRef(x),D=s.useRef(e);s.useEffect(()=>{T.current=m},[m]),s.useEffect(()=>{N.current=x},[x]),s.useEffect(()=>{D.current=e},[e]);const K=s.useCallback(M=>{l(M,T.current??"",N.current),u(void 0),f(void 0),R(!1)},[l]),V=s.useCallback((M,E)=>{M!=null&&console.log("Plaid Connection Error",M,E),u(void 0),f(void 0),R(!1)},[]),{open:H,ready:J}=La({token:I,onSuccess:K,onExit:V});s.useEffect(()=>{(q.zeniDate(new Date().toISOString()).isAfter(C.expiration)||C.linkToken==null)&&C.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[C.fetchStatus.fetchState]),s.useEffect(()=>{!$&&x!=null&&C.linkToken===I&&C.fetchStatus.fetchState==="Completed"&&J&&R(!0)},[J,I,C.fetchStatus.fetchState,C.linkToken,x,$]),s.useEffect(()=>{C.fetchStatus.fetchState==="Completed"&&C.linkToken!=null&&C.linkToken!==I&&y(C.linkToken)},[C.fetchStatus.fetchState,C.linkToken,I]),s.useEffect(()=>{$&&H()},[$,H]);const[Y,F]=s.useState(void 0),[oe,ye]=s.useState(void 0),U=q.zeniDate("2025-03-31"),he=1,ge="account_reconciliation",b=ke(),z=vt(),W=!0;return s.useEffect(()=>{const M={reportId:ge,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:U,firstMonthOfFY:he,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:h,onConnectClicked:v,onReconnectClicked:k,onOpenDrawerClicked:A,onStatementAddClicked:r}};if(Y==null||!ts(oe,e)){const E=xd(e,M,O,n,W);ye(e),F(E)}else{const E=fd(Y,e,M,W);F(E)}},[e]),e.fetchStatus.fetchState==="Error"?t.jsx(yd,{children:t.jsx(Aa,{onReload:c,message:bd.errorMessage.somethingWentWrong})}):t.jsx(Cd,{windowSize:b,children:Y!=null?t.jsx(wd,{windowSize:b,children:t.jsx(fs,{backgroundColor:new xo(z.colors.grey4),rootNodes:Y,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:W,isStickyName:W},treeNodePadding:{left:co.contentPaddingLeft.value(b),right:co.contentPaddingRight.value(b)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:d})}):null})}function Sd({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:d,reconciliation:c,companyId:h,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,onAddStatementClick:w,onReconReviewTabColumnSortConfigChanged:j,onSaveReconciliation:C,onSaveReconciliationReview:I,setOpenDrawerClicked:y,onReconMatchedTransactionClick:$,onReconListPageScroll:R}){return c.selectedAccountId==null?t.jsx(vd,{companyId:h,onScroll:R,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,setOpenDrawerClicked:y,onAddStatementClick:w}):t.jsx(cd,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:p,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:j,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:C,onSaveReconciliationReview:I,onReconMatchedTransactionClick:$})}function jd({accountAndClassReport:e,numOfBalances:n,title:d,isLastNode:c,isFirstNode:h,config:p,parentNodeIDs:i,ancestorMetadata:l}){let r="";return e.accountBase&&e.classBase?r=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?r=e.accountBase.accountId:e.classBase&&(r=e.classBase.classId),{children:[],id:mt("flux_vendor_account_class_row",i,r),isLastNode:c,isFirstNode:h,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:d,data:e,metadata:l,numOfBalances:n},config:p}}}function kd({vendorView:e,numOfBalances:n,title:d,isLastNode:c,config:h,parentNodeIDs:p}){const i=mt("flux_vendor_row",p,e.vendor.id),l={children:[],id:i,isLastNode:c,reportElementData:{element:{kind:"flux_vendor_row",title:d,data:e,numOfBalances:n},config:h}},r=e.vendorAccountsAndClasses;return l.children=r.map((m,u)=>jd({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:h,isLastNode:u===r.length-1,isFirstNode:u===0,parentNodeIDs:[...p,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:u===r.length-1,isFirstNode:u===0,name:m.accountBase?.accountName},isVendorLastChild:c,vendorId:e.vendor.id}})),l}function Id({section:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=e.sectionId,i={children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:n,sectionType:e.sectionId},config:h}},l=(e.vendors??[]).map((r,m)=>kd({vendorView:r,numOfBalances:n,title:r.vendor.name,isLastNode:m===e.vendors.length-1,config:h,parentNodeIDs:[p]}));return i.children.push(...l),i}function $d({title:e,balances:n,config:d,nodeId:c}){return{children:[],id:c??mt("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:n,numOfBalances:n.length},config:d}}}function Td({title:e,data:n,isLastNode:d,config:c,numOfBalances:h}){const p=mt("total",[],e);return{children:[],id:p,isLastNode:d,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:h},config:c}}}const{common:wn,expenseAutomation:{fluxAnalysis:Ld}}=Ie.getLocalizedStrings(),Ad=(e,n,d=!0)=>{const c=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,h=e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],p=ys({balances:h,config:n}),i=[],l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(l===!0)i.push($d({title:`${wn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{i.push(Oo({title:`${u}+${wn.loading}`,balances:h,config:n}))});else{if(i.push(p),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const x=en(u.balancesByMonth);i.push(Id({section:{sectionId:m,reportId:"flux_analysis_operating_expense",balances:x,vendors:u.vendors,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:e.currency},numOfBalances:c,title:Ed(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?en(e.totalBalancesAndVariance.balancesByMonth):[],u=Td({title:wn.texts.total,data:{balances:m,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:c});i.push(u)}r===!0&&[...Array(1)].forEach((m,u)=>{i.push(Oo({title:`${u}+${wn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:d&&!l?[p]:[],contentNodes:i}},Ed=e=>Ld.sectionTitle[e];function Rd(e,n,d,c=!0){Object.assign(e.config,n);const h=Dd(d),p=ys({balances:h,config:n});return{config:n,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Dd=e=>e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],uo={contentPaddingLeft:new X(g[0],g[0],g[0]),contentPaddingRight:new X(g[3],g[3],g[8]),wrapperPadding:new X(g[3],g[3],g[8])},Od=a.div`
|
|
764
764
|
display: flex;
|
|
765
765
|
position: sticky;
|
|
766
766
|
width: 100%;
|
|
@@ -768,10 +768,10 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
768
768
|
padding-top: ${e=>uo.wrapperPadding.valuePx(e.windowSize)};
|
|
769
769
|
padding-left: 20px;
|
|
770
770
|
background-color: ${e=>e.theme.colors.grey4};
|
|
771
|
-
`,
|
|
771
|
+
`,Fd=a.div`
|
|
772
772
|
width: 100%;
|
|
773
773
|
height: calc(100vh - ${o.sp11});
|
|
774
|
-
`,Bd=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=ke(),u=vt(),[x,f]=s.useState(null),[w,j]=s.useState(null),[C,I]=s.useState(null),y=q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),L=Ao(y),O=Ao(n.refreshStatus.fetchState),v=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},k=()=>Object.keys(n.uiState.collapsableStatus).reduce((V,H)=>(V[H]=n.uiState.collapsableStatus[H],V),{}),A=s.useCallback(V=>{const H=!(n.uiState.collapsableStatus[V]??!0);i({...n.uiState.collapsableStatus,[V]:H})},[n.uiState.collapsableStatus,i]),T=s.useCallback((V,H)=>{let J=n.reviewOperatingExpensesIds;const Y=[];let
|
|
774
|
+
`,Bd=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=ke(),u=vt(),[x,f]=s.useState(null),[w,j]=s.useState(null),[C,I]=s.useState(null),y=q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),L=Ao(y),O=Ao(n.refreshStatus.fetchState),v=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},k=()=>Object.keys(n.uiState.collapsableStatus).reduce((V,H)=>(V[H]=n.uiState.collapsableStatus[H],V),{}),A=s.useCallback(V=>{const H=!(n.uiState.collapsableStatus[V]??!0);i({...n.uiState.collapsableStatus,[V]:H})},[n.uiState.collapsableStatus,i]),T=s.useCallback((V,H)=>{let J=n.reviewOperatingExpensesIds;const Y=[];let F=n.selectedSectionIds;const oe=n.sections[V].vendors;Y.push(...oe.map(U=>U.fluxAnalysisEntityId));let ye=xs-J.length;H?(Y.forEach(U=>{!J.includes(U)&&ye>0&&(J=[...J,U],ye--)}),F=[...F,V]):(J=J.filter(U=>!Y.includes(U)),F=F.filter(U=>U!==V)),c(J),h(F)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,h]),N=s.useCallback(V=>{const H=n.uiState.collapsableStatus[V]===!1;V==="generalExpense"&&!H&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),A(V)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,A]),D=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,K=V=>V<D;return s.useEffect(()=>{const V={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:R,onSectionRowClick:N,updateNodeCollapsableStatus:A,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:T,onSortOrderChanged:p}};if(x==null||!ts(w,n)){const H=Ad(n,V,!0);j(n),f(H)}else{const H=Rd(x,V,n,!0);f(H)}},[n,w,d,T,N,p,A,c]),t.jsx(Od,{windowSize:m,children:t.jsx(Fd,{children:x?t.jsx(fs,{backgroundColor:new xo(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:uo.contentPaddingLeft.value(m),right:uo.contentPaddingRight.value(m)},nodeOpenStatus:k(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:K,itemCount:D,loadMoreItems:v},variableNodeHeightTree:{prevFetchState:L??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:$,setIsSortApplied:R,reducedFetchState:q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:O??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:C,setHoveredParentId:I}}):null})})},Md="expenseAutomationFluxPage",{reports:{common:zd}}=Ie.getLocalizedStrings(),Pd=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:d,markAsReview:c,onReloadPage:h,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:l,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:x})=>{const{fetchStatus:f,reviewOperatingExpensesIds:w,uiState:j}=n,C=s.useRef(null),I=s.useRef(!1),y=Ht({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:_d(w)}),$=ke();s.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),s.useEffect(()=>{I.current&&C?.current?.scrollLeft!=null&&j.scrollPosition?.scrollLeft!==C.current.scrollLeft&&j.scrollPosition!=null&&r({scrollPosition:{scrollTop:j.scrollPosition?.scrollTop,scrollLeft:C.current.scrollLeft}})},[j.scrollPosition?.scrollLeft,C.current?.scrollLeft,j.scrollPosition,r]),s.useEffect(()=>{p(w.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[w,p]);const R=k=>{m(k)},L=k=>{u(e,k)},O=(k,A)=>{r({sortOrder:k,sortKey:A}),d(),x(e,null,!1)},v=()=>{const k=Es(n.sections,w);c(w,k===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(Vd,{children:[t.jsx(Hd,{onClick:h,children:t.jsx(mo,{})}),t.jsx(Ud,{children:zd.failed})]});{const k=T=>{r({collapsableStatus:T})},A=T=>{x(e,T,!0)};return t.jsx(Ut,{...y,children:t.jsx("form",{id:sa(Md),onSubmit:y.handleSubmit(v),style:{height:"100%",width:"100%"},children:t.jsx(Nd,{windowSize:$,children:t.jsx(Bd,{fluxView:n,handleRedirectToVendorDetailPage:R,onSortOrderChanged:O,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:k,fetchReimbursementView:A,updateSectionIdsForReview:l,fetchGeneralExpenseView:L,reportId:"flux_analysis_operating_expense"})})})})}},Es=(e,n)=>{const d=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(h=>h.status==="Pending Review");let c;return d.forEach(h=>{n.includes(h.fluxAnalysisEntityId)&&(c=!0)}),c},_d=e=>({fluxAnalysisRowIds:e}),Nd=a.div`
|
|
775
775
|
display: flex;
|
|
776
776
|
flex: 1 1 auto;
|
|
777
777
|
min-height: 100%;
|
|
@@ -798,14 +798,14 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
798
798
|
border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
`,
|
|
801
|
+
`,Vd=a.div`
|
|
802
802
|
display: flex;
|
|
803
803
|
width: 100%;
|
|
804
804
|
height: 100vh;
|
|
805
805
|
flex-direction: column;
|
|
806
806
|
justify-content: center;
|
|
807
807
|
align-items: center;
|
|
808
|
-
`,
|
|
808
|
+
`,Hd=a.div`
|
|
809
809
|
height: 96px;
|
|
810
810
|
width: 96px;
|
|
811
811
|
background: ${e=>e.theme.colors.background};
|
|
@@ -820,10 +820,10 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
820
820
|
color: ${e=>e.theme.colors.primary};
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
`,
|
|
823
|
+
`,Ud=a(St)`
|
|
824
824
|
margin-top: ${o.sp3};
|
|
825
825
|
color: ${e=>e.theme.colors.hero};
|
|
826
|
-
`,
|
|
826
|
+
`,Wd="expenseAutomationJEAccountSettingsPage",Rs="vendorsAccountSection",qd=e=>`${e}_form`;function Jd({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:d,setIsJeAccountSettingsOpened:c,onJeAccountSettingsChange:h,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:i}){const l=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=s.useMemo(()=>Et(e.prepaidExpensesAccountHierarchy,l,"Accounts"),[e.prepaidExpensesAccountHierarchy,l]),x=s.useMemo(()=>Et(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),f=s.useMemo(()=>Et(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),w=s.useMemo(()=>Gd(e,u,x,f),[e,u,x,f]),j=Ht({mode:"all",reValidateMode:"onBlur",defaultValues:w,values:w,resetOptions:{keepDefaultValues:!0}}),C=j.handleSubmit(y=>{d(y)}),I=async y=>{h(y)};return s.useEffect(()=>{const y=j.watch($=>{$!=null&&hn(()=>I($))});return()=>{y.unsubscribe()}}),s.useEffect(()=>(p(()=>j.reset),c(!0),()=>{i("expenseAutomationPage"),c(!1)}),[]),s.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:y,previousPrepaidExpensesAccount:$,selectedFixedAssetsAccountIds:R,previousFixedAssetsAccount:L,selectedAccruedExpensesAccountIds:O,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,k=On(y,$)||On(R,L)||On(O,v);k===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):k===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(Kd,{children:t.jsx(Ut,{...j,children:t.jsx("form",{id:qd(Wd),onSubmit:C,children:t.jsx(ar,{showTitle:!1,sectionId:Rs,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:e.accruedExpensesAccountHierarchy,accruedExpensesAccountList:e.accruedExpensesAccountList,accruedExpensesRecommendations:e.accruedExpensesRecommendations,fixedAssetsAccountHierarchy:e.fixedAssetsAccountHierarchy,fixedAssetsAccountList:e.fixedAssetsAccountList,fixedAssetsRecommendations:e.fixedAssetsRecommendations,prepaidExpensesAccountHierarchy:e.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:e.prepaidExpensesAccountList,prepaidExpensesRecommendations:e.prepaidExpensesRecommendations,selectedAccruedExpensesAccountIds:e.accountSettingsLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:e.accountSettingsLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:e.accountSettingsLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:!1})})})})}const Kd=a.div`
|
|
827
827
|
padding-top: ${o.sp3};
|
|
828
828
|
display: flex;
|
|
829
829
|
align-items: center;
|
|
@@ -831,27 +831,27 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
831
831
|
flex-direction: column;
|
|
832
832
|
width: 100%;
|
|
833
833
|
background-color: ${e=>e.theme.colors.grey4};
|
|
834
|
-
`,
|
|
834
|
+
`,Gd=(e,n,d,c)=>{const h=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),p=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),l=h.map(u=>u.qboId).filter(u=>u!=null),r=p.map(u=>u.qboId).filter(u=>u!=null),m=i.map(u=>u.qboId).filter(u=>u!=null);return{[Rs]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:$t},common:{currency:bn,review:Yd,ignore:Zd,strings:{hyphen:ft},texts:vn},dateFormat:Xd,timeframe:{month:ei}}=Ie.getLocalizedStrings(),Qd=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:h})=>t.jsxs(ko,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":B("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.vendor}),t.jsxs(ae,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(as,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:e.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(qe,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.vendor.name??ft})})]})]}),t.jsxs(Z,{children:[t.jsx(te,{children:$t.scheduleHeaders.scheduleCategory}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(qe,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.baseTransaction.account.accountName??ft})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.startMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:e.startDate?.format(Xd.visual.MMMCommaYYYYFormat)??ft})})]}),t.jsxs(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.period}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ei.slice(0,-1):ei}`:ft})})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:vn.totalAmount}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Je("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft}),children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft})})})]})]}),t.jsxs(So,{children:[t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.category}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(qe,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeDebit.account?.accountName??ft})})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:vn.classText}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(qe,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeDebit.accountingClass?.className??ft})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.type}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(Ss,{children:$t.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.accumulatedCategory}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(qe,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeCredit.account?.accountName??ft})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(Z,{style:{width:de.COLUMN_FOUR}}):null,t.jsx(Z,{style:{width:de.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(dn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&h(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":B("je-schedule-draft-component-review-button",e.jeScheduleId),label:Yd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:lo}}),t.jsx(dn,{"data-testid":B("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Zd,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&d(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:lo}})]})]}),t.jsxs(Sc,{children:[t.jsx(eu,{}),t.jsx(tu,{children:$t.aiAccountant}),t.jsx(nu,{children:$t.zeniGPTText})]})]}),eu=a(un)`
|
|
835
835
|
height: ${o.sp3};
|
|
836
836
|
width: ${o.sp3};
|
|
837
837
|
margin-right: ${o.sp1};
|
|
838
838
|
path {
|
|
839
839
|
stroke-width: 2;
|
|
840
840
|
}
|
|
841
|
-
`,
|
|
841
|
+
`,tu=a(ns)`
|
|
842
842
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
843
|
-
`,
|
|
843
|
+
`,nu=a(Me)`
|
|
844
844
|
color: ${e=>e.theme.colors.primary};
|
|
845
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ti}}},expenseAutomation:{jeSchedules:Pe},common:{currency:dt,retry:nu,strings:{hyphen:We,empty:ni},texts:Gt},dateFormat:oi}=Ie.getLocalizedStrings(),{common:ou,timeframe:{month:ii}}=Ie.getLocalizedStrings(),et="jeSchedulePage",si=e=>`${e}_form`,To=(e,n)=>`${e}.${n}`,ai=To(et,"vendor"),ri=To(et,"scheduleExpenseCategory"),li=To(et,"accumulatedDepreciationCategory"),iu=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:d,allClassList:c,allDepAccountGroupedOptions:h,allDepAccountList:p,draft:i,localData:l,postStatus:r,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:f,onFormDataChange:w,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:I,updatedVendor:y}=l,$={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},R=s.useRef(),L=Ht({mode:"all",reValidateMode:"onChange",defaultValues:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},k=(i?.scheduledJournalEntry.error??[]).every(E=>{const P=$[E];return!(l!=null&&P&&(P==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||P==="updatedCategoryId"&&l.updatedCategoryId==null||P==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),A=async(E,P)=>{if(E!=null){const Q=P[et],{scheduledJournalEntryID:_,vendor:G}=Q;if(E.includes("vendor")){const ae=G?.defaultOptions.map(re=>re.value);if(G?.selectedOption!=null&&ae?.includes(G.selectedOption)!==!0){const re=x.entityAutoCompleteView.vendor.find(we=>we.id===G.selectedOption);re!=null&&L.setValue(`${et}.vendor.defaultOptions`,[{label:re.name??ou.strings.empty,value:re.id}])}else G?.selectedOption==null&&G?.defaultOptions.length!==0&&L.setValue(`${et}.vendor`,{selectedOption:void 0,defaultOptions:[]})}w(_,{...Q,vendor:G})}};s.useEffect(()=>{const E=L.watch((P,{name:Q})=>{Q!=null&&P!=null&&hn(()=>A(Q,P))});return()=>{E.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(rs(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const T=L.handleSubmit(()=>{j(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),N=E=>n.filter(P=>P.qboId===E)[0]?.qboId,D=E=>p.filter(P=>P.qboId===E)[0]?.qboId,K=E=>[m.expense?.qboId,m.income?.qboId].includes(E),V=L.watch("jeSchedulePage.vendor"),H=(E,P)=>{u.onAutoCompleteInputChange?.(E,"vendor"),R.current=P},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,Y=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,B=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,oe=i.vendor.name.split("(deleted)")[0]?.toString(),fe=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ni,U=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ni,[he,ge]=s.useState(Y===!0&&I==null),[b,z]=s.useState(B===!0&&C==null),[W,F]=s.useState(J&&(y?.id==null||y?.id==""));return s.useEffect(()=>{he===!1&&l.updatedCategoryId==null&&L.setFocus(ri),b===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&L.setFocus(li),W===!1&&l.updatedVendor?.id==null&&L.setFocus(ai)},[he,b,W,l,L]),t.jsx(Ut,{...L,children:t.jsx("form",{style:{width:"100%"},id:si(`${et}_${i.jeScheduleId}`),onSubmit:T,children:t.jsx(ko,{showBorder:k,onClick:E=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(E,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":M("je-schedule-resolve-component-schedule",`${et}_${i.jeScheduleId}`),children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[J===!0?t.jsx(Z,{style:{width:de.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:W===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.vendor,t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingVendor.replace("_deleted_vendor_",oe)}),children:t.jsx(Nn,{})})]}),t.jsx(se,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:W===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),F(!1)},"data-testid":M("je-schedule-resolve-component-add-vendor-button",`${et}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Qe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_n,{}),ti]}):t.jsx(ro,{name:ai,placeholder:ti,valueToId:E=>E,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:H})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:Gt.vendor}),t.jsx(se,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(as,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:i.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(qe,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.vendor.name??We})})]})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:Pe.scheduleHeaders.scheduleCategory}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(qe,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.baseTransaction.account.accountName??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.startMonth}),t.jsx(se,{children:t.jsx(ce,{className:"highlight",children:i.startDate?.format(oi.visual.MMMCommaYYYYFormat)??We})})]}),t.jsxs(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:Pe.scheduleHeaders.period}),t.jsx(se,{children:t.jsx(ce,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?ii.slice(0,-1):ii}`:We})})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:Gt.totalAmount}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:t.jsx(qe,{children:Je("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We})})})]})]}),t.jsxs(So,{children:[Y===!0?t.jsx(Z,{showHoverEffect:Y===!0,forceHoverEffect:l?.updatedCategoryId==null&&he===!1,style:{padding:"unset",justifyContent:"center",width:de.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.category,Y===!0?t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingCategory.replace("_deleted_category_",fe)}),children:t.jsx(Nn,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:Y===!0?-2:0},children:Y===!0?t.jsx(t.Fragment,{children:he===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":M("je-schedule-resolve-component-add-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,name:ri,placeholder:Pe.addCategory,valueToId:E=>N(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:K,customStyleConfig:O})}):t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.category}),t.jsx(se,{className:"item-value-container",children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]}),t.jsxs(Z,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.classText}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(qe,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.accountingClass?.className??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.type}),t.jsx(se,{className:"test",children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(Ss,{children:Pe.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:B===!0?t.jsx(Z,{style:{width:de.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:B,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&b===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Pe.scheduleHeaders.accumulatedCategory,B===!0?t.jsx(Ce,{display:"flex",placement:"top-end",title:t.jsx(kn,{children:Pe.tooltipText.missingDepCategory.replace("_deleted_dep_category_",U)}),children:t.jsx(Nn,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:B===!0?-2:0},children:B===!0?t.jsx(t.Fragment,{children:b===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),z(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":M("je-schedule-resolve-component-add-depreciation-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addDepCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:li,placeholder:Pe.addDepCategory,valueToId:E=>D(E),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:v,disableCurrentOption:K})}):t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Pe.scheduleHeaders.accumulatedCategory}),t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Z,{style:{width:de.COLUMN_FOUR}}):null,t.jsx(Z,{style:{width:de.COLUMN_FIVE}})]}),t.jsxs(wc,{children:[t.jsx(Z,{style:{padding:"unset",width:de.COLUMN_ONE},children:t.jsxs(bc,{children:[t.jsx(te,{children:Pe.scheduleHeaders.jePostingDate}),t.jsx(se,{children:t.jsx(ce,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(oi.visual.MMMDCommaYYFormat)??We})})]})}),t.jsxs(Z,{children:[t.jsx(te,{children:Pe.scheduleHeaders.balance}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Je("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.months}),t.jsx(se,{children:t.jsxs(ce,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Z,{style:{width:de.COLUMN_FOUR}}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:Pe.scheduleHeaders.amountForMonth}),t.jsx(se,{children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})]})]})]}),t.jsx(Io,{children:t.jsx(dn,{form:si(`${et}_${i.jeScheduleId}`),label:nu,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!k,style:{minWidth:lo}})})]})})})})},ci=(e,n,d,c,h,p,i,l)=>{const r=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?l.vendor.find(I=>I.zeniId===m.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,w=r!=null?h.find(I=>I.accountId===r):void 0,j=x!=null?i.find(I=>I.accountId===x):void 0,C=f!=null?p.find(I=>I.classId===f):void 0;return{[et]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:w?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:hs(l,u??m)},scheduleClass:{selectedOption:C?.classId,allOptions:d}}}},_n=a(Dn)`
|
|
845
|
+
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ti}}},expenseAutomation:{jeSchedules:Pe},common:{currency:dt,retry:ou,strings:{hyphen:We,empty:ni},texts:Gt},dateFormat:oi}=Ie.getLocalizedStrings(),{common:iu,timeframe:{month:ii}}=Ie.getLocalizedStrings(),et="jeSchedulePage",si=e=>`${e}_form`,To=(e,n)=>`${e}.${n}`,ai=To(et,"vendor"),ri=To(et,"scheduleExpenseCategory"),li=To(et,"accumulatedDepreciationCategory"),su=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:d,allClassList:c,allDepAccountGroupedOptions:h,allDepAccountList:p,draft:i,localData:l,postStatus:r,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:f,onFormDataChange:w,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:I,updatedVendor:y}=l,$={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},R=s.useRef(),L=Ht({mode:"all",reValidateMode:"onChange",defaultValues:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},k=(i?.scheduledJournalEntry.error??[]).every(E=>{const P=$[E];return!(l!=null&&P&&(P==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||P==="updatedCategoryId"&&l.updatedCategoryId==null||P==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),A=async(E,P)=>{if(E!=null){const Q=P[et],{scheduledJournalEntryID:_,vendor:G}=Q;if(E.includes("vendor")){const re=G?.defaultOptions.map(ie=>ie.value);if(G?.selectedOption!=null&&re?.includes(G.selectedOption)!==!0){const ie=x.entityAutoCompleteView.vendor.find(xe=>xe.id===G.selectedOption);ie!=null&&L.setValue(`${et}.vendor.defaultOptions`,[{label:ie.name??iu.strings.empty,value:ie.id}])}else G?.selectedOption==null&&G?.defaultOptions.length!==0&&L.setValue(`${et}.vendor`,{selectedOption:void 0,defaultOptions:[]})}w(_,{...Q,vendor:G})}};s.useEffect(()=>{const E=L.watch((P,{name:Q})=>{Q!=null&&P!=null&&hn(()=>A(Q,P))});return()=>{E.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(rs(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const T=L.handleSubmit(()=>{j(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),N=E=>n.filter(P=>P.qboId===E)[0]?.qboId,D=E=>p.filter(P=>P.qboId===E)[0]?.qboId,K=E=>[m.expense?.qboId,m.income?.qboId].includes(E),V=L.watch("jeSchedulePage.vendor"),H=(E,P)=>{u.onAutoCompleteInputChange?.(E,"vendor"),R.current=P},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,Y=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,F=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,oe=i.vendor.name.split("(deleted)")[0]?.toString(),ye=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ni,U=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ni,[he,ge]=s.useState(Y===!0&&I==null),[b,z]=s.useState(F===!0&&C==null),[W,M]=s.useState(J&&(y?.id==null||y?.id==""));return s.useEffect(()=>{he===!1&&l.updatedCategoryId==null&&L.setFocus(ri),b===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&L.setFocus(li),W===!1&&l.updatedVendor?.id==null&&L.setFocus(ai)},[he,b,W,l,L]),t.jsx(Ut,{...L,children:t.jsx("form",{style:{width:"100%"},id:si(`${et}_${i.jeScheduleId}`),onSubmit:T,children:t.jsx(ko,{showBorder:k,onClick:E=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(E,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":B("je-schedule-resolve-component-schedule",`${et}_${i.jeScheduleId}`),children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[J===!0?t.jsx(Z,{style:{width:de.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:W===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingVendor.replace("_deleted_vendor_",oe)}),children:t.jsx(Nn,{})})]}),t.jsx(ae,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:W===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),M(!1)},"data-testid":B("je-schedule-resolve-component-add-vendor-button",`${et}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Qe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_n,{}),ti]}):t.jsx(ro,{name:ai,placeholder:ti,valueToId:E=>E,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:H})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:Gt.vendor}),t.jsx(ae,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(as,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(qe,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.vendor.name??We})})]})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:Pe.scheduleHeaders.scheduleCategory}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(qe,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.baseTransaction.account.accountName??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.startMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.startDate?.format(oi.visual.MMMCommaYYYYFormat)??We})})]}),t.jsxs(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:Pe.scheduleHeaders.period}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?ii.slice(0,-1):ii}`:We})})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:Gt.totalAmount}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(qe,{children:Je("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We})})})]})]}),t.jsxs(So,{children:[Y===!0?t.jsx(Z,{showHoverEffect:Y===!0,forceHoverEffect:l?.updatedCategoryId==null&&he===!1,style:{padding:"unset",justifyContent:"center",width:de.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.category,Y===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingCategory.replace("_deleted_category_",ye)}),children:t.jsx(Nn,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:Y===!0?-2:0},children:Y===!0?t.jsx(t.Fragment,{children:he===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,name:ri,placeholder:Pe.addCategory,valueToId:E=>N(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:K,customStyleConfig:O})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.category}),t.jsx(ae,{className:"item-value-container",children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]}),t.jsxs(Z,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.classText}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(qe,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.accountingClass?.className??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.type}),t.jsx(ae,{className:"test",children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(Ss,{children:Pe.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:F===!0?t.jsx(Z,{style:{width:de.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:F,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&b===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Pe.scheduleHeaders.accumulatedCategory,F===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(kn,{children:Pe.tooltipText.missingDepCategory.replace("_deleted_dep_category_",U)}),children:t.jsx(Nn,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:F===!0?-2:0},children:F===!0?t.jsx(t.Fragment,{children:b===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),z(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-depreciation-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addDepCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:li,placeholder:Pe.addDepCategory,valueToId:E=>D(E),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:v,disableCurrentOption:K})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:de.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Pe.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Z,{style:{width:de.COLUMN_FOUR}}):null,t.jsx(Z,{style:{width:de.COLUMN_FIVE}})]}),t.jsxs(bc,{children:[t.jsx(Z,{style:{padding:"unset",width:de.COLUMN_ONE},children:t.jsxs(vc,{children:[t.jsx(te,{children:Pe.scheduleHeaders.jePostingDate}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(oi.visual.MMMDCommaYYFormat)??We})})]})}),t.jsxs(Z,{children:[t.jsx(te,{children:Pe.scheduleHeaders.balance}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Je("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:Pe.scheduleHeaders.months}),t.jsx(ae,{children:t.jsxs(ce,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Z,{style:{width:de.COLUMN_FOUR}}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:Pe.scheduleHeaders.amountForMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:Je("0,0.[00]",q.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})]})]})]}),t.jsx(Io,{children:t.jsx(dn,{form:si(`${et}_${i.jeScheduleId}`),label:ou,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!k,style:{minWidth:lo}})})]})})})})},ci=(e,n,d,c,h,p,i,l)=>{const r=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?l.vendor.find(I=>I.zeniId===m.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,w=r!=null?h.find(I=>I.accountId===r):void 0,j=x!=null?i.find(I=>I.accountId===x):void 0,C=f!=null?p.find(I=>I.classId===f):void 0;return{[et]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:w?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:hs(l,u??m)},scheduleClass:{selectedOption:C?.classId,allOptions:d}}}},_n=a(Dn)`
|
|
846
846
|
width: ${o.sp3};
|
|
847
847
|
height: ${o.sp3};
|
|
848
848
|
`,Nn=a(ps)`
|
|
849
849
|
width: 12px;
|
|
850
850
|
height: 12px;
|
|
851
851
|
color: ${Qe.important};
|
|
852
|
-
`;function Ds(){return t.jsx(Cs,{children:t.jsxs(ws,{children:[t.jsxs(bs,{children:[t.jsx(
|
|
852
|
+
`;function Ds(){return t.jsx(Cs,{children:t.jsxs(ws,{children:[t.jsxs(bs,{children:[t.jsx(Be,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]}),t.jsxs(vs,{children:[t.jsx(Be,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]})]})})}const di=()=>t.jsx(ko,{style:{minWidth:1088},children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Be,{width:g[10],height:14})}),t.jsxs(ae,{style:{gap:g[2]},children:[t.jsx(yo,{height:g[4],width:g[4]}),t.jsx(Be,{height:g[4],width:g[10]})]})]}),t.jsxs(Z,{children:[t.jsx(te,{children:t.jsx(Be,{width:101,height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:203})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Be,{width:g[9],height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:71})})]}),t.jsxs(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:t.jsx(Be,{width:107,height:14})}),t.jsx(Be,{height:g[4],width:68})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:de.COLUMN_FIVE},children:[t.jsx(te,{children:t.jsx(Be,{width:73,height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:49})})]})]}),t.jsxs(So,{children:[t.jsxs(Z,{style:{width:de.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Be,{width:49,height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:158})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:t.jsx(Be,{width:36,height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:88})})]}),t.jsxs(Z,{style:{width:de.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Be,{width:36,height:14})}),t.jsx(ae,{children:t.jsx(Be,{height:g[4],width:100})})]}),t.jsx(Z,{style:{width:de.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(Z,{style:{width:de.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(Be,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(Be,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),Be=a(Rt)`
|
|
853
853
|
border-radius: ${o.sp1};
|
|
854
|
-
`,{common:{create:
|
|
854
|
+
`,{common:{create:au,resolve:ru}}=Ie.getLocalizedStrings();function lu({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:d,onJESchedulesFormDataChange:c,onPostJESchedule:h,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:l}){const r=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,x=e.ignoreStatusById,f=e.resolveSchedules,w=e.uncategorizedAccounts,{allAccountList:j,allClassList:C,allDepreciationAccountList:I}=e,y=Et(e.accountListNestedAccountHierarchy),$=Et(e.allDepreciationAccountListNestedAccountHierarchy),R=jn(e.classListNestedAccountHierarchy),L=(v,k,A)=>{d(v,k,A)},O=(v,k,A,T)=>{let N=v.target;for(;N;){if(N.classList.contains("item-value-container")||N.classList.contains("hover-background")||N.classList.contains("auto-complete-single-select-field__input")||N.classList.contains("auto-complete-single-select-field__option")||N.classList.contains("grouped-single-select-field__input")||N.classList.contains("grouped-single-select-field__menu"))return;N=N.parentElement}d(k,A,T)};return s.useEffect(()=>{if(f.length!==0){for(const v in m)if(Object.prototype.hasOwnProperty.call(m,v)){const{updatedAccumulatedDepreciationCategoryID:k,updatedCategoryId:A,updatedVendor:T}=m[v];if(k!=null||A!=null||T!=null&&T?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else f.length===0&&l("expenseAutomationPage")}),s.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Ds,{}):r.length!==0||f.length!==0?t.jsx(Cs,{children:t.jsxs(ws,{children:[r.length>0?t.jsxs(bs,{children:[t.jsxs(hi,{children:[au,t.jsx(pi,{isCircular:r.length<10,children:t.jsx(mi,{children:r.length})})]}),t.jsx(ui,{children:r.map((v,k)=>t.jsx(Qd,{ignoreStatus:x[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:L,jeScheduleClickHandler:O,draft:v},`${k}_${v.jeScheduleId}`))})]}):null,f.length>0?t.jsxs(vs,{children:[t.jsxs(hi,{children:[ru,t.jsx(pi,{isCircular:f.length<10,children:t.jsx(mi,{children:f.length})})]}),t.jsx(ui,{children:f.map((v,k)=>m[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(su,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:O,onPostJESchedule:h,uncategorizedAccounts:w,allAccountList:j,allAccountGroupedOptions:y,allClassGroupedOptions:R,allClassList:C,allDepAccountGroupedOptions:$,allDepAccountList:I,draft:v,postStatus:u[v.scheduledJournalEntry.scheduledJournalEntryID],localData:m[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${k}_${v.jeScheduleTransactionKey}`))})]}):null]})}):null}const ui=a.div`
|
|
855
855
|
display: flex;
|
|
856
856
|
flex-direction: column;
|
|
857
857
|
gap: ${o.sp4};
|
|
@@ -874,9 +874,9 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
874
874
|
padding: ${o.sp0};
|
|
875
875
|
`:Xe`
|
|
876
876
|
height: 18px;
|
|
877
|
-
padding: ${
|
|
877
|
+
padding: ${_a.padding};
|
|
878
878
|
`}
|
|
879
|
-
`,mi=a(
|
|
879
|
+
`,mi=a(Na)`
|
|
880
880
|
color: ${e=>e.theme.colors.hero};
|
|
881
881
|
height: 100%;
|
|
882
882
|
width: 100%;
|
|
@@ -884,7 +884,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
884
884
|
align-items: center;
|
|
885
885
|
justify-content: center;
|
|
886
886
|
color: inherit;
|
|
887
|
-
`;function
|
|
887
|
+
`;function cu({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:d,vendorSearchAutoCompleteData:c,onJESchedulesFormDataChange:h,onPostJESchedule:p,handleJeScheduleClick:i,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:x,setIsJeAccountSettingsOpened:f}){const{jeSchedules:w}=e;return w.fetchState==="In-Progress"||w.accountSettingsView.fetchState==="In-Progress"?t.jsx(Ds,{}):w.accountSettingsView.fetchState==="Completed"&&w.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&w.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(Jd,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:d,currentFooterFormId:n,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,accountSettings:w.accountSettingsView,setCurrentFooterFormId:x}):w.fetchState==="Completed"&&w.draftSchedules.length===0&&w.resolveSchedules.length===0?t.jsx(bt,{tab:e.currentSelectedView,title:He(e.currentSelectedView).allDoneText.title,subTitle:He(e.currentSelectedView).allDoneText.subTitle}):w.fetchState==="Completed"?t.jsx(lu,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:h,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:c}):null}const du=72,Os=50,uu=1,hu=["receipts"],gi=e=>q.stringToUnionStrict(e,hu),{common:{texts:{vendor:pu,amount:mu,receipts:gu,category:xu,classText:fu,date:yu}}}=Ie.getLocalizedStrings(),Cu={key:"vendor",value:pu,sortOrder:"ascending",width:new X(18,18)},wu={key:"category",value:xu,sortOrder:"ascending",width:new X(18,18)},bu={key:"class",value:fu,sortOrder:"ascending",width:new X(18,18)},vu={key:"date",value:yu,sortOrder:"descending",width:new X(11,11)},Su={key:"receipts",value:gu,sortOrder:"descending",width:new X(6,6)},ju={key:"amount",value:mu,sortOrder:"ascending",width:new X(10,10)},ht=[Cu,wu,bu,vu,Su,ju],Vn={sortKey:"date",sortOrder:"descending"},xi={containerPaddingLeftRight:new X(g[3],g[4])},Fs=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[h,p]=s.useState(ht);s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{gi(r.key)==null&&i(q.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return t.jsx(ku,{windowSize:c,children:h.map((r,m)=>{const u=n!=null||gi(r.key)!=null;return t.jsxs(Iu,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(Eu,{onClick:()=>u?null:l(r),isSortDisabled:u,children:[t.jsx(Ru,{children:r.value}),u?null:t.jsx(Tu,{sortConfig:e,headerData:r,children:t.jsx(Au,{})})]}),u?null:t.jsx(Lu,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Vn.sortKey,children:t.jsx($u,{onClick:()=>{u||i(Vn.sortKey,Vn.sortOrder)},"data-testid":B("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},ku=a.div`
|
|
888
888
|
top: ${o.sp0};
|
|
889
889
|
left: ${o.sp0};
|
|
890
890
|
height: ${Os}px;
|
|
@@ -897,7 +897,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
897
897
|
position: sticky;
|
|
898
898
|
padding-left: ${e=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
899
899
|
padding-right: ${e=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
900
|
-
`,
|
|
900
|
+
`,Iu=a.div`
|
|
901
901
|
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
902
902
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
903
903
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -910,34 +910,34 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
910
910
|
position: static;
|
|
911
911
|
z-index: 0;
|
|
912
912
|
box-sizing: border-box;
|
|
913
|
-
|
|
913
|
+
`,$u=a(Rn)`
|
|
914
914
|
width: ${o.sp2};
|
|
915
915
|
height: ${o.sp2};
|
|
916
916
|
cursor: pointer;
|
|
917
|
-
|
|
917
|
+
`,Tu=a.div`
|
|
918
918
|
display: flex;
|
|
919
919
|
align-items: center;
|
|
920
920
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
921
|
-
`,
|
|
921
|
+
`,Lu=a.div`
|
|
922
922
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
923
923
|
align-items: center;
|
|
924
924
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
925
925
|
&:hover {
|
|
926
926
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
927
927
|
}
|
|
928
|
-
`,
|
|
928
|
+
`,Au=a(En)`
|
|
929
929
|
width: ${o.sp2};
|
|
930
930
|
height: ${o.sp2};
|
|
931
|
-
`,
|
|
931
|
+
`,Eu=a.div`
|
|
932
932
|
display: flex;
|
|
933
933
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
934
934
|
gap: 6px;
|
|
935
935
|
&:hover {
|
|
936
936
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
937
937
|
}
|
|
938
|
-
`,
|
|
938
|
+
`,Ru=a(gt)`
|
|
939
939
|
display: flex;
|
|
940
|
-
`,{common:{strings:{underscore:
|
|
940
|
+
`,{common:{strings:{underscore:Bs,hyphen:Hn,empty:fi},documents:{singleFileUploadSizeErrorMessage:Du,multipleFileUploadSizeErrorMessage:Ou},snackBar:{missing_receipts_attachment:{failed:Fu}},tooltips:{addMissingReceipt:Bu}},dateFormat:Mu}=Ie.getLocalizedStrings(),Sn={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[2],g[3])},zu=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:d,authParams:c,selectedPeriod:h,onUploadReceiptComplete:p,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:r})=>{const m=ke(),u=s.useRef(null),x=s.useCallback(async(j,C,I,y,$)=>{l(e.id,"In-Progress"),await rr(j,C,I,y,$).then(({uploadResponse:R,errorMessage:L})=>{R!=null?R.transaction.attachments!=null&&(r(R.transaction),setTimeout(()=>p(R.transaction,h),2e3)):l(e.id,"Error",{code:500,message:Fu},L)}).catch(R=>{l(e.id,"Error",R)})},[e.id,h,r,p,l]),f=s.useCallback(j=>{if(j.target.files!=null){const C=j.target.files,I=[],y=[];for(let $=0;$<C.length;$++)I.push(C[$].name),y.push(C[$]);x(d,c,C[0],C[0].name,{id:e.id,type:e.type})}},[c,x,d,e.id,e.type]),w=s.useCallback(()=>{u.current?.click()},[u]);return t.jsx(Ms,{windowSize:m,onClick:()=>i(e.id,e.type),"data-testid":B("missing-receipts-list-row",e.id),children:ht.map((j,C)=>{const I=`${e.id}${Bs}${j.key}`;switch(j.key){case"vendor":default:return t.jsx(_t,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ht.length-1,children:t.jsxs(In,{children:[t.jsx(ss,{photoUrl:e.vendorId!=null?e.logo?.toString()??fi:fi,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Wu,{children:t.jsx(cn,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(tt,{text:e.vendorName??e.description,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})]})})},I);case"category":case"class":{const y=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Hn,$=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Hn,R=j.key==="category"?y:$;return t.jsx(_t,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ht.length-1,children:t.jsx(In,{children:R!==Hn?t.jsx(tt,{text:R,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Uu,{children:R})})})},I)}case"date":return t.jsx(_t,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ht.length-1,children:t.jsx(In,{children:t.jsx(tt,{text:e.date.format(Mu.visual.MMMDCommaYYYYformat),itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})})},I);case"receipts":return t.jsx(_t,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ht.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Xi,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(Pa,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Hu,{onClick:y=>{y.stopPropagation()},children:t.jsx(Zi,{"data-testid":B("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Fn,multiple:!1,acceptableTypes:[...q.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:f,onFileSizeError:(y,$)=>{y&&l(e.id,"Error",{code:500,message:$===!0?Du.replace("__maxFileSize__",Eo(Fn,0)):Ou.replace("__maxFileSize__",Eo(Fn,0))})}})}),t.jsx(we,{display:"flex",placement:"bottom",title:Bu,enterDelay:600,children:t.jsx(Vu,{onClick:y=>{y.stopPropagation(),w()}})})]})})},I);case"amount":{const y=Je("0,0.[00]",e.amount);return t.jsx(_t,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ht.length-1,children:t.jsx(tt,{text:e.amount.amount<0?`-${y}`:y,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})},I)}}})})},Pu=()=>{const e=ke(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(Ms,{windowSize:e,ref:n,children:ht.map((h,p)=>{const i=`${p}${Bs}${h.key}`;switch(h.key){case"vendor":return t.jsx(_t,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Nt,{windowSize:e,isLastItem:p===ht.length-1,children:t.jsxs(In,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(_t,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Nt,{windowSize:e,isLastItem:p===ht.length-1,children:t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},Ms=a.div`
|
|
941
941
|
display: flex;
|
|
942
942
|
background-color: ${e=>e.theme.colors.grey5};
|
|
943
943
|
padding-left: ${e=>Sn.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
@@ -966,7 +966,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
966
966
|
:last-of-type {
|
|
967
967
|
padding-right: ${o.sp0};
|
|
968
968
|
}
|
|
969
|
-
`,
|
|
969
|
+
`,_u=Xe`
|
|
970
970
|
word-break: break-all;
|
|
971
971
|
white-space: normal;
|
|
972
972
|
-webkit-line-clamp: 1;
|
|
@@ -974,63 +974,63 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
974
974
|
overflow: hidden;
|
|
975
975
|
text-overflow: ellipsis;
|
|
976
976
|
display: -webkit-box;
|
|
977
|
-
`,
|
|
977
|
+
`,Nu=Xe`
|
|
978
978
|
height: ${o.sp3};
|
|
979
979
|
width: ${o.sp3};
|
|
980
980
|
cursor: pointer;
|
|
981
|
-
`,
|
|
982
|
-
${
|
|
981
|
+
`,Vu=a(Dn)`
|
|
982
|
+
${Nu};
|
|
983
983
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
984
984
|
&:hover {
|
|
985
985
|
color: ${e=>e.theme.colors.primary};
|
|
986
986
|
}
|
|
987
|
-
`,Nt=a(
|
|
987
|
+
`,Nt=a(Me)`
|
|
988
988
|
overflow: hidden;
|
|
989
989
|
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
990
990
|
display: flex;
|
|
991
991
|
width: 100%;
|
|
992
992
|
align-items: center;
|
|
993
|
-
`,
|
|
993
|
+
`,Hu=a.div``,In=a.div`
|
|
994
994
|
display: flex;
|
|
995
995
|
flex-direction: row;
|
|
996
996
|
column-gap: ${o.sp2};
|
|
997
997
|
align-items: center;
|
|
998
|
-
`,
|
|
999
|
-
${
|
|
998
|
+
`,Uu=a(Me)`
|
|
999
|
+
${_u};
|
|
1000
1000
|
color: inherit;
|
|
1001
|
-
`,
|
|
1001
|
+
`,Wu=a.div`
|
|
1002
1002
|
display: flex;
|
|
1003
|
-
`,
|
|
1003
|
+
`,qu=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ke();return t.jsxs(Ju,{windowSize:h,children:[t.jsx(Fs,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c}),t.jsx(Ku,{windowSize:h,children:[...Array(3)].map((p,i)=>t.jsx(Pu,{},i))})]})},Ju=a.div`
|
|
1004
1004
|
display: block;
|
|
1005
1005
|
min-height: 100%;
|
|
1006
1006
|
flex-direction: column;
|
|
1007
1007
|
width: 100%;
|
|
1008
|
-
`,
|
|
1008
|
+
`,Ku=a.div`
|
|
1009
1009
|
display: flex;
|
|
1010
1010
|
min-height: 100%;
|
|
1011
1011
|
flex-direction: column;
|
|
1012
1012
|
row-gap: ${o.sp3};
|
|
1013
|
-
`,{common:
|
|
1013
|
+
`,{common:Gu}=Ie.getLocalizedStrings(),Yu=({missingReceipts:e,receiptUploadEndpoint:n,authParams:d,selectedPeriod:c,isDisabled:h,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const x=ke(),{fetchState:f,uiState:w,transactions:j}=e,C=s.useRef(null),[I,y]=s.useState(!1);s.useEffect(()=>{C.current?.resetAfterIndex(0)},[x,C]),s.useEffect(()=>{f==="Completed"&&y(!1)},[f]);const $=L=>du,R=(L,O)=>{m({sortOrder:O,sortKey:L})};return t.jsxs(Qu,{children:[t.jsx(eh,{windowSize:x,children:f==="Error"?t.jsxs(nh,{windowSize:x,children:[t.jsx(oh,{onClick:()=>u(),"data-testid":B("missing-receipts-list-table-reload-button"),children:t.jsx(mo,{})}),t.jsx(ih,{children:Gu.reloadPage.label})]}):f==="Completed"&&j.length===0?t.jsx(bt,{tab:"missing_receipts",title:He("missing_receipts").allDoneText.title,subTitle:He("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&j.length===0?t.jsx(qu,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},fetchState:f,onColumnSortConfigChanged:R}):t.jsx(th,{windowSize:x,children:t.jsx(Ln,{children:({height:L,width:O})=>t.jsxs(ah,{style:{height:L,width:O},children:[t.jsx(Xu,{children:t.jsx(Fs,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},isDisabled:f==="In-Progress"?"readonly":h,onColumnSortConfigChanged:R})}),t.jsx(An,{ref:C,height:L-Os,itemCount:j.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:d,isDisabled:h,selectedPeriod:c,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r},itemSize:$,width:O,style:{willChange:"auto"},overscanCount:uu,onScroll:({scrollOffset:v})=>{m({scrollPosition:{scrollTop:v}})},initialScrollOffset:w.scrollPosition?.scrollTop,children:Zu})]})})})}),t.jsx(_e,{controller:I===!0,children:t.jsx(rh,{children:t.jsx(Xi,{size:"Small",start:!0})})})]})},Zu=({index:e,style:n,data:d})=>{const{missingReceipts:c,receiptUploadEndpoint:h,authParams:p,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,selectedPeriod:u}=d,x=c.transactions[e];return t.jsx(sh,{style:{...n,width:"100%"},children:t.jsx(zu,{transaction:x,receiptUploadEndpoint:h,authParams:p,selectedPeriod:u,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,uploadReceiptsFetchState:c.uploadReceiptStatusById[x.id]??{fetchState:"Not-Started",error:void 0}},x.id)})},Xu=a.div`
|
|
1014
1014
|
width: auto;
|
|
1015
|
-
`,
|
|
1015
|
+
`,Qu=a.div`
|
|
1016
1016
|
width: 100%;
|
|
1017
1017
|
height: 100%;
|
|
1018
1018
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1019
|
-
`,Qu=a.div`
|
|
1020
|
-
height: 100%;
|
|
1021
1019
|
`,eh=a.div`
|
|
1022
1020
|
height: 100%;
|
|
1021
|
+
`,th=a.div`
|
|
1022
|
+
height: 100%;
|
|
1023
1023
|
display: flex;
|
|
1024
1024
|
flex-direction: column;
|
|
1025
1025
|
max-width: 99.9%;
|
|
1026
|
-
`,
|
|
1026
|
+
`,nh=a.div`
|
|
1027
1027
|
display: flex;
|
|
1028
1028
|
width: 100%;
|
|
1029
1029
|
height: ${e=>`calc(100% - ${os.valuePx(e.windowSize)})`};
|
|
1030
1030
|
flex-direction: column;
|
|
1031
1031
|
justify-content: center;
|
|
1032
1032
|
align-items: center;
|
|
1033
|
-
`,
|
|
1033
|
+
`,oh=a.div`
|
|
1034
1034
|
height: 96px;
|
|
1035
1035
|
width: 96px;
|
|
1036
1036
|
background: ${e=>e.theme.colors.background};
|
|
@@ -1045,17 +1045,17 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1045
1045
|
color: ${e=>e.theme.colors.primary};
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
`,
|
|
1048
|
+
`,ih=a(Oa)`
|
|
1049
1049
|
margin-top: ${o.sp3};
|
|
1050
1050
|
color: ${e=>e.theme.colors.hero};
|
|
1051
|
-
`,
|
|
1051
|
+
`,sh=a.div`
|
|
1052
1052
|
top: ${o.sp0};
|
|
1053
1053
|
left: ${o.sp0};
|
|
1054
1054
|
padding-bottom: ${o.sp3};
|
|
1055
1055
|
box-sizing: border-box;
|
|
1056
|
-
`,sh=a.div`
|
|
1057
|
-
position: relative;
|
|
1058
1056
|
`,ah=a.div`
|
|
1057
|
+
position: relative;
|
|
1058
|
+
`,rh=a.div`
|
|
1059
1059
|
display: flex;
|
|
1060
1060
|
width: 100%;
|
|
1061
1061
|
height: ${o.sp3};
|
|
@@ -1064,7 +1064,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1064
1064
|
align-items: center;
|
|
1065
1065
|
margin-top: ${o.sp3};
|
|
1066
1066
|
margin-bottom: ${o.sp3};
|
|
1067
|
-
`,
|
|
1067
|
+
`,lh=[...q.SUPPORTED_ATTACHMENT_FILE_TYPES],ch=7*1024*100,dh=a.div`
|
|
1068
1068
|
width: ${an}px;
|
|
1069
1069
|
`,Un=a.div`
|
|
1070
1070
|
width: ${e=>`${e.availableWidth}px`};
|
|
@@ -1072,7 +1072,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1072
1072
|
position: relative;
|
|
1073
1073
|
height: fit-content;
|
|
1074
1074
|
min-height: ${o.sp12};
|
|
1075
|
-
`,
|
|
1075
|
+
`,uh=a.div`
|
|
1076
1076
|
flex-grow: 1;
|
|
1077
1077
|
overflow: auto;
|
|
1078
1078
|
min-height: 2em;
|
|
@@ -1090,17 +1090,17 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1090
1090
|
.attachFileSeparator {
|
|
1091
1091
|
user-select: none;
|
|
1092
1092
|
}
|
|
1093
|
-
`,
|
|
1093
|
+
`,hh=a.div`
|
|
1094
1094
|
display: flex;
|
|
1095
1095
|
column-gap: ${o.sp2};
|
|
1096
1096
|
align-items: flex-end;
|
|
1097
1097
|
margin-top: ${o.sp2};
|
|
1098
1098
|
margin-bottom: ${o.sp3};
|
|
1099
|
-
`,
|
|
1099
|
+
`,ph=a.div`
|
|
1100
1100
|
position: relative;
|
|
1101
|
-
`,yi=a(
|
|
1101
|
+
`,yi=a(Me)`
|
|
1102
1102
|
position: relative;
|
|
1103
|
-
`,
|
|
1103
|
+
`,mh=a.div`
|
|
1104
1104
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1105
1105
|
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
1106
1106
|
border-radius: ${o.sp2};
|
|
@@ -1117,13 +1117,13 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1117
1117
|
isolation: isolate;
|
|
1118
1118
|
z-index: ${g[1]};
|
|
1119
1119
|
}
|
|
1120
|
-
`,mh=a.div`
|
|
1121
|
-
user-select: text;
|
|
1122
1120
|
`,gh=a.div`
|
|
1121
|
+
user-select: text;
|
|
1122
|
+
`,xh=a.div`
|
|
1123
1123
|
position: absolute;
|
|
1124
1124
|
top: ${o.sp4}; // Attachment icon position from the top
|
|
1125
1125
|
right: -${o.sp3}; // To show attachment icon on the edge
|
|
1126
|
-
`,
|
|
1126
|
+
`,fh=a.div`
|
|
1127
1127
|
margin-top: ${o.sp2};
|
|
1128
1128
|
display: flex;
|
|
1129
1129
|
flex-direction: column;
|
|
@@ -1134,31 +1134,31 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1134
1134
|
.toolbar {
|
|
1135
1135
|
user-select: none;
|
|
1136
1136
|
}
|
|
1137
|
-
`,
|
|
1137
|
+
`,yh=a(St)`
|
|
1138
1138
|
color: ${e=>e.theme.colors.grey1};
|
|
1139
1139
|
user-select: none;
|
|
1140
|
-
`,
|
|
1140
|
+
`,Ch=a(ns)`
|
|
1141
1141
|
color: ${e=>e.theme.colors.primary};
|
|
1142
|
-
`,
|
|
1142
|
+
`,wh=a.div`
|
|
1143
1143
|
flex-direction: column;
|
|
1144
1144
|
row-gap: ${o.sp3};
|
|
1145
1145
|
display: flex;
|
|
1146
|
-
`,
|
|
1146
|
+
`,bh=wo`
|
|
1147
1147
|
0% {
|
|
1148
1148
|
transform: translateX(100%);
|
|
1149
1149
|
}
|
|
1150
1150
|
100% {
|
|
1151
1151
|
transform: translateX(0)
|
|
1152
1152
|
}
|
|
1153
|
-
`,
|
|
1153
|
+
`,vh=wo`
|
|
1154
1154
|
0% {
|
|
1155
1155
|
transform: translateX(0)
|
|
1156
1156
|
}
|
|
1157
1157
|
100% {
|
|
1158
1158
|
transform: translateX(100%)
|
|
1159
1159
|
}
|
|
1160
|
-
`,
|
|
1161
|
-
animation: ${e=>e.allThreadsSectionOpen?
|
|
1160
|
+
`,Sh=a.div`
|
|
1161
|
+
animation: ${e=>e.allThreadsSectionOpen?bh:vh}
|
|
1162
1162
|
0.5s forwards;
|
|
1163
1163
|
height: 100vh;
|
|
1164
1164
|
position: fixed;
|
|
@@ -1167,10 +1167,10 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1167
1167
|
z-index: ${g[2]};
|
|
1168
1168
|
min-width: ${Ki}px;
|
|
1169
1169
|
max-width: ${Ji}px;
|
|
1170
|
-
`,$n="monthEndReportFormSection",Ci="monthEndReportPage",Ye=Ie.getLocalizedStrings();function
|
|
1170
|
+
`,$n="monthEndReportFormSection",Ci="monthEndReportPage",Ye=Ie.getLocalizedStrings();function jh({companyId:e,enableZeniGPTFeature:n,monthEndReportView:d,previewMode:c,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:i,newThreadMetadata:l,isZeniUser:r,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:x,onUpdateFileAttachment:f,onCloseAllThreadsSection:w,previewMonthEndReport:j,saveMonthEndReport:C,onEditClick:I,onOpenFileAttachmentSnackBar:y,onClickCustomerRequest:$,sendMonthEndReport:R}){const L=vt(),[O,v]=s.useState(),[k,A]=s.useState(0),[T,N]=s.useState(0),D=s.useRef(),K=s.useRef(null),V=s.useRef(null),{html:H,subject:J,improveUsingZeniGPTStatus:Y}=d,[F,oe]=s.useState(),[ye,U]=s.useState(!1),[he,ge]=s.useState(!1),b=s.useRef(null),z=s.useRef(null),W=aa(p,250),M=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:P,threadsPositions:Q,observer:_,unresolvedThreadsMap:G,handleRemoveFloatingThread:re}=ra(i,b,!c,M,r),ie=s.useCallback(()=>{p?z.current!=null&&N(Math.min((z.current.offsetWidth-an-g[4])/2,z.current.offsetWidth-an-Ji-g[4])):z.current!=null&&A(Math.min((z.current.offsetWidth-an-g[4])/2,z.current.offsetWidth-an-Ki-g[4]))},[p]);s.useEffect(()=>{ie()},[p,ie]),s.useEffect(()=>(window.addEventListener("resize",ie),()=>{window.removeEventListener("resize",ie)}),[ie]);const xe=r?_i:Ni,{openThread:ve,addThread:Se,setOpenThread:S}=s.useContext(xe),ee=la(Lo,!1,!c),$e=b.current?.getBoundingClientRect(),be=ee!=null&&ee.coords&&$e?{left:ee.coords.left-$e.left,top:ee.coords.top-$e.top}:void 0,Te=s.useCallback(()=>{const le=window.getSelection()?.getRangeAt(0),ne=ca();if(!le||ne==null)return;const je={...l,...ne,startPath:ne.startPath.join(),endPath:ne.endPath.join()},Le=`${Gi()}${qi}`,Ae=`cockpit_${e}`;Se(Le,{type:"thread",id:Le,roomId:Ae,createdAt:new Date,comments:[],metadata:je,updatedAt:new Date,resolved:!1}),S(Le)},[Se,e,l,S]);s.useEffect(()=>{ve!=null&&p&&w()},[p,ve,w]);const Ce=Y.fetchState==="In-Progress",ue=Ht({mode:"all",defaultValues:wi(d),values:wi(d)}),Ke=ue.handleSubmit(le=>{const{recipientEmailList:ne,subject:je}=le[$n];if(c===!0)R?.(F?.id);else{const Le=O?.replace(da,Ye.common.strings.empty);ne!=null&&je!=null&&j(ne,je,F?.id,Le!=null&&Le.length>0?O:void 0)}}),Ge=()=>{K.current!=null&&K.current.click()},Ne=()=>{F!==void 0&&F!=null&&(x([F.id]),oe(void 0),U(!1))},Ue=le=>{const ne=le.target.files?le.target.files[0]:null;if(ne)if(!q.toSupportedAttachmentFileType(ne.type)||he)console.warn("Please select a valid file.");else{const je=new FileReader;je.onload=function(Le){const Ae=Le.target?.result;if(typeof Ae=="string"){const at={data:Ae.split(",")[1],name:ne.name,id:q.getAttachmentFileIdByFileName(e,ne.name)};oe(at),U(!0),f([at])}},je.readAsDataURL(ne)}},pe=()=>{V.current&&V.current.scrollIntoView({behavior:"smooth"})},nt=()=>{const le=ue.getValues(),{recipientEmailList:ne,subject:je}=le[$n];ne!=null&&je!=null&&C(ne,je,F?.id,O)};s.useEffect(()=>{v(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),s.useEffect(()=>{D.current=F},[F]),s.useEffect(()=>{oe(q.mapAttachmentFileToAttachmentFilePayload(d.attachmentFile)),U(!1)},[d.attachmentFile]),s.useEffect(()=>{he&&y()},[he,y]);const st=q.zeniDate(`${m.year}-${m.month}-01`).format(Ye.dateFormat.visual.MMMMFormat),ct=H!=null?H.split(ua):[],Ot=d.concatenatedHtml,jt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Da,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Ye.cockpit.monthEndReport.timeStampLabel}):null,Ft=()=>r===!0?W?t.jsxs(t.Fragment,{children:[t.jsx(Sh,{allThreadsSectionOpen:p,children:t.jsx(Ea,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${L.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Qe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:L.colors.background},threadsContainerStyle:{paddingBottom:c?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Ye.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(le,ne)=>{S(ne);const je=P.findIndex(Le=>Le[0]===ne);w(),E.current?.[je]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>w()})}),t.jsx(Un,{availableWidth:k})]}):t.jsx(Ra,{observer:_,canvasContainerRef:b,sortedThreads:P,threadsPositions:Q,threadsRefs:E,unresolvedThreadsMap:G,editorMode:!c,style:{minWidth:`${k}px`,position:"relative",height:"fit-content",top:`${b.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:re}):t.jsx(Un,{availableWidth:k}),kt=(d.zeniRequestsData??[]).length+ha(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(uh,{ref:z,children:[t.jsx(Un,{availableWidth:p?T:k}),t.jsxs(dh,{children:[t.jsx(Ut,{...ue,children:t.jsx("form",{id:bi(Ci),onSubmit:Ke,children:t.jsxs(wh,{children:[t.jsx(pa,{sectionId:$n,previewMode:c,subject:J}),!c&&kt>0?t.jsx(ma,{totalItems:kt,onClickCustomerRequest:$}):null,t.jsxs(mh,{id:Lo,ref:b,children:[t.jsxs(gh,{className:"monthEndReportCanvasWrapper",children:[F!=null||he?t.jsx(xh,{"data-testid":B("email-attachment-container"),onClick:pe,children:t.jsx(ga,{fileSizeError:he,setFileSizeError:ge,loading:!1,showAnimation:!c&&ye})}):null,c?t.jsx(yi,{dangerouslySetInnerHTML:{__html:xa(Ot)}}):t.jsxs(t.Fragment,{children:[t.jsxs(ph,{id:fa,children:[t.jsx(Me,{dangerouslySetInnerHTML:{__html:ct[0]!=null?ct[0]+"</body></html>":Ye.common.strings.empty}}),t.jsxs(hh,{children:[t.jsx(Ch,{children:Ye.cockpit.monthEndReport.editorTitle}),t.jsx(yh,{children:Ye.cockpit.monthEndReport.editorNote})]})]}),t.jsx(fh,{id:ya,children:t.jsx(Ca,{handleFileInputClick:Ge,fileAttached:F!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:Ce,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:v,customerRequestData:h})}),t.jsx(yi,{id:Yi,dangerouslySetInnerHTML:{__html:ct[1]!=null?"<html><body>"+ct[1]:Ye.common.strings.empty}})]}),F!=null?t.jsx(wa,{ref:V,fileName:F.name,fileSize:ba(F.data),onRemove:Ne,isRemovable:!c}):null]}),be?t.jsx(va,{style:{zIndex:15},coords:be,alignment:ee.alignment,onClick:Te}):null,t.jsx(Sa,{canvasContainerRef:b,sortedThreads:P,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(Zi,{name:F?.name??Ye.common.strings.empty,fileRef:K,sizeLimit:ch,acceptableTypes:lh,onFileChange:async le=>{Ue(le)},onFileSizeError:le=>ge(le),multiple:!1})]}),Ft()]}),t.jsx(Vi,{style:{zIndex:10},leftSideComponent:jt(),formId:bi(Ci),cancelBtn:{isDisabled:Ce,label:c===!0?Ye.cockpit.monthEndReport.editButtonLabel:Ye.cockpit.monthEndReport.saveChanges,onClick:c===!0?I:nt,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:Ce,isLoading:c===!0?d.sendMonthEndReportStatus.fetchState==="In-Progress":d.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:c===!0?"unset":"136px"},label:c===!0?Ye.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",st):Ye.cockpit.monthEndReport.preview,size:"medium"}})]})}const wi=e=>({[$n]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ye.common.strings.empty}}),bi=e=>`${e}_form`;Lt.smallBold.lineHeightValue;const kh=1,Ih=50,vi=56,$h=["memo"],Si=e=>q.stringToUnionStrict(e,$h),{expenseAutomation:{transactions:{header:{vendors:Th,category:Lh,classText:Ah,date:Eh,type:Rh,amount:Dh,memo:Oh}}}}=Ie.getLocalizedStrings(),Fh={key:"vendor",value:Th,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[8]}}},Bh={key:"category",value:Lh,sortOrder:"ascending",width:new X(20,20),customStyle:{common:{paddingLeft:g[7]}}},Mh={key:"class",value:Ah,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[7]}}},zh={key:"date",value:Eh,sortOrder:"descending",width:new X(11,11),customStyle:{common:{}}},Ph={key:"transaction_type",value:Rh,sortOrder:"descending",width:new X(13,13),customStyle:{common:{}}},_h={key:"memo",value:Oh,sortOrder:"ascending",width:new X(6,6),customStyle:{common:{}}},Nh={key:"amount",value:Dh,sortOrder:"ascending",width:new X(10,10),customStyle:{common:{paddingRight:g[4]}}},wt=[Fh,Bh,Mh,zh,Ph,_h,Nh],Wn={sortKey:"date",sortOrder:"descending"},zs=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[h,p]=s.useState(Co(wt));s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{Si(r.key)==null&&i(q.toTransactionsSortKey(r.key),r.sortOrder)};return t.jsx(Vh,{windowSize:c,"data-testid":B("transaction-categorization-header-container"),children:h.map((r,m)=>{const u=n!=null||Si(r.key)!=null;return t.jsxs(Hh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,"data-testid":B("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Kh,{"data-testid":B("transaction-categorization-header",r.value),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Gh,{children:r.value}),u?null:t.jsx(Wh,{sortConfig:e,headerData:r,"data-testid":B("transaction-categorization-sort-icon",r.key),children:t.jsx(Jh,{})})]}),u?null:t.jsx(qh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Wn.sortKey,"data-testid":B("transaction-categorization-close-icon",r.key),children:t.jsx(Uh,{onClick:()=>{i(Wn.sortKey,Wn.sortOrder)},"data-testid":B("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},Vh=a.div`
|
|
1171
1171
|
top: ${o.sp0};
|
|
1172
1172
|
left: ${o.sp0};
|
|
1173
|
-
height: ${
|
|
1173
|
+
height: ${Ih}px;
|
|
1174
1174
|
z-index: 2;
|
|
1175
1175
|
display: flex;
|
|
1176
1176
|
align-items: center;
|
|
@@ -1178,7 +1178,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1178
1178
|
box-sizing: border-box;
|
|
1179
1179
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1180
1180
|
position: sticky;
|
|
1181
|
-
`,
|
|
1181
|
+
`,Hh=a.div`
|
|
1182
1182
|
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1183
1183
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1184
1184
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -1191,15 +1191,15 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1191
1191
|
position: static;
|
|
1192
1192
|
z-index: 0;
|
|
1193
1193
|
box-sizing: border-box;
|
|
1194
|
-
`,
|
|
1194
|
+
`,Uh=a(Rn)`
|
|
1195
1195
|
width: 12px;
|
|
1196
1196
|
height: 12px;
|
|
1197
|
-
`,
|
|
1197
|
+
`,Wh=a.div`
|
|
1198
1198
|
display: flex;
|
|
1199
1199
|
align-items: center;
|
|
1200
1200
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1201
1201
|
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
1202
|
-
`,
|
|
1202
|
+
`,qh=a.div`
|
|
1203
1203
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
1204
1204
|
align-items: center;
|
|
1205
1205
|
padding-top: 2px;
|
|
@@ -1207,19 +1207,19 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1207
1207
|
&:hover {
|
|
1208
1208
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1209
1209
|
}
|
|
1210
|
-
`,
|
|
1210
|
+
`,Jh=a(En)`
|
|
1211
1211
|
width: ${o.sp2};
|
|
1212
1212
|
height: ${o.sp2};
|
|
1213
|
-
`,
|
|
1213
|
+
`,Kh=a.div`
|
|
1214
1214
|
display: flex;
|
|
1215
1215
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1216
1216
|
gap: 6px;
|
|
1217
1217
|
&:hover {
|
|
1218
1218
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1219
1219
|
}
|
|
1220
|
-
`,
|
|
1220
|
+
`,Gh=a(gt)`
|
|
1221
1221
|
display: flex;
|
|
1222
|
-
`,qn="expenseAutomationTransactionsPage",Vt="transactionCategorizationListTable",De="account",Ze="class",it="lineEntitySelection",Gh="lineEntity",Yh="recommendations",Ps="lineInfo",Zh="vendorDetails",Xh="customerDetails",Tn="selectedTransactionIds",Tt=(e,n,d)=>`${e}.${d}.${n}`,Qh=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"}),s.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"}),s.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:ep,hyphen:ji,empty:Yt}},expenseAutomation:{transactions:Zt},dateFormat:tp}=Ie.getLocalizedStrings(),At={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[1],g[2]),containerPaddingTopBottomEmpty:new X(g[2],g[3]),nameLogoWidth:new X(g[2],g[4]),nameLogoHeight:new X(g[2],g[4])},np=({transactionView:e,transaction:n,sectionId:d,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:i,isCOTEnabled:l,cotTracking:r,onTransactionCategorizationRowClick:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})=>{const C=ke(),[I,y]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,L=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=R.filter(b=>L.indexOf(b)!==-1),v=[];O.forEach(b=>{v.push($[b])});const{accountList:k,accountsHierarchyList:A,classHierarchyList:T,classList:N,uncategorizedAccounts:D,transactions:K,selectedCheckBoxTransactionIds:V}=e,H=V.includes(n.transactionId),J=vt(),Y={control:()=>({marginLeft:-2,backgroundColor:I?J.colors.background:J.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:J.colors.grey5}),singleValue:()=>({color:I||H?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:b=>({...b,color:I||H?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:b=>({...b,zIndex:10})},B={...Y,singleValue:b=>({...b,color:I||H?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:b=>({...b,color:I||H?J.colors.primary:J.colors.hero,textAlign:"left"})},oe=K.find(b=>b.id===n.transactionId),fe=(b,z)=>{const{transactionType:W}=z.transactionReviewLocalData;let F=b.target;for(;F;){if(F.classList.contains("select-value-container")||F.classList.contains("item-value-container")||F.classList.contains("grouped-single-select-field__value-container")||F.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||F.classList.contains("grouped-single-select-field__input")||F.classList.contains("grouped-single-select-field__menu"))return;F=F.parentElement}W!=null&&m(z.transactionId,W)},U=s.useRef(null),[he,ge]=s.useState("auto");return s.useEffect(()=>{const b=()=>{if(i.current!=null&&U.current!=null){const z=i.current.getBoundingClientRect(),W=U.current.getBoundingClientRect().top-z.top;ge(W>285?"top":"bottom")}};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b)}},[i]),t.jsx(sp,{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),windowSize:C,isSelected:H,isHovered:I,children:t.jsx(ap,{children:v.map((b,z)=>t.jsx(rp,{ref:U,"data-testid":M("transaction-categorization-list-row",b.lineId),windowSize:C,onClick:W=>fe(W,n),children:t.jsx(op,{line:b,isHovered:I||H,isSelected:H,lineIndex:z,sectionId:d,transaction:n,currentTransaction:oe,windowSize:C,accountsHierarchyList:A,classHierarchyList:T,allAccountList:k,allClassList:N,uncategorizedAccounts:D,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:Y,customStyleAutoComplete:B,recommendations:b.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:he,cotTracking:r,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})},`${n.transactionId}.${b.lineId}`))},n.transactionId)},n.transactionId)},op=({accountsHierarchyList:e,allAccountList:n,allClassList:d,classHierarchyList:c,customStyle:h,customStyleAutoComplete:p,line:i,lineIndex:l,transaction:r,currentTransaction:m,windowSize:u,uncategorizedAccounts:x,isHovered:f=!1,isSelected:w=!1,sectionId:j,recommendations:C,vendorSearchAutoCompleteData:I,selectedTab:y,isCOTEnabled:$,menuPlacement:R,cotTracking:L,openTooltipId:O,setCurrentTransactionInAction:v,vendorLoadOptions:k,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:T})=>{const{transactionDate:N,transactionType:D,transactionTypeName:K,memo:V}=r.transactionReviewLocalData,{setValue:H}=fo(),J=s.useCallback((ie,xe)=>{L?.onCOTView!=null&&L.onCOTView(i.lineId,r.transactionId,ie,xe)},[L,i.lineId,r.transactionId]),Y=Tt(j,it,l.toString()),B=Tt(j,De,l.toString()),oe=Tt(j,Ze,l.toString()),fe=(ie,xe)=>{let Ee;switch(xe){case"vendor":Ee=Y;break;case"category":Ee=B;break;case"class":Ee=oe;break;default:return}H(`${Ee}.selectedOption`,ie,{shouldValidate:!0,shouldDirty:!0})},U=vt(),he=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:i.customer?.id??"",logo:i.customer?.logo,name:i.customer?.name??""},[m,i.customer?.id,i.customer?.logo,i.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),ge=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:i.vendor?.id??"",logo:i.vendor?.logo,name:i.vendor?.name??""},[m,i.vendor?.id,i.vendor?.logo,i.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),b=i[Ze]?.classId,z=i[De]?.qboId??i[De]?.accountId,W=he?.id,F=ge?.id,E=ge?.name,[P,Q]=s.useState(!b),[_,G]=s.useState(!z||i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!0),[ae,re]=s.useState(!F||!W),we=ie=>C?.find(xe=>xe.vendor?.qboId===ie||xe.vendor?.id===ie||xe.vendor?.name===ie)?.vendor?.reason??"",ve=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Se=cs(e,ve),S=ls(c,ve),ee=ie=>n.filter(xe=>xe.qboId===ie)[0]?.qboId,$e=ie=>d.filter(xe=>xe.classId===ie)[0]?.accountingClassNumber??void 0,be=s.useCallback(ie=>q.isAccountUncategorized(x,ie,T===!0?["income"]:void 0),[x,T]),[Te,ye]=s.useState(!1),[ue,Ke]=s.useState(!1),[Ge,Ne]=s.useState(!1),Ue=(ie,xe)=>{v({transactionId:r.transactionId,lineItemId:i.lineId}),k(ie,xe)},pe=()=>{re(!(F||W)),ye(!1)},nt=()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0),Ne(!1)},st=()=>{Q(!b),Ke(!1)},ct=()=>{(F||W)&&ye(!0)},Ot=()=>{Ke(!0)},jt=()=>{Ne(!0)};s.useEffect(()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0)},[z]),s.useEffect(()=>{Q(!b)},[b]),s.useEffect(()=>{re(!(F||W))},[F,W]);const Bt=r.transactionReviewLocalData.selectedEntity,kt=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,le=m!=null&&q.isVendorTransaction(m)===!0?Bt:kt,ne=s.useMemo(()=>{const ie=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],xe=I.entityAutoCompleteView;return{selectedOption:le?.qboId??le?.id,defaultOptions:go(xe,le,ie??[])}},[le,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),je=()=>le!=null&&le.logo!=null?t.jsx(ss,{photoUrl:le.logo.toString(),styles:{width:At.nameLogoWidth.valuePx(u),height:At.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx($i,{children:t.jsx(cn,{name:le.name,size:o.sp4})})}):le!=null&&le.name!=null?t.jsx($i,{children:t.jsx(cn,{name:le.name,size:o.sp4})}):null,Le=(ie,xe)=>{if(xe==null||!xe)return;let Ee=[];return ie.forEach(Ve=>{Ee=Ee.concat(Ve.options)}),Ee.find(Ve=>Ve.value===xe)?.label??xe},Ae=Le(S,b),at=Le(Se,z),ze=y==="review",It=Mn("vendor",ne.defaultOptions,ne.selectedOption),ot=Mn("category",Se,z),Wt=Mn("class",S,b),on=()=>wt.map((ie,xe)=>{const Ee=`${r.transactionId}_${ie.key}_${i.lineId}`;if(l>0&&m!=null&&q.isVendorTransaction(m)===!0&&ie.key==="vendor")return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width},Ee);if(l>0&&ie.key==="transaction_type")return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width},Ee);switch(ie.key){case"vendor":default:return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"vendor",isFirstColumn:!0,isEnabled:!!le?.isPreFilled,isMisCategorized:It,onRecommendationClick:fe,selectedValue:F,selectedValueLabel:E,isReviewTab:ze,isAccountOptionDisabled:be,existingOption:{label:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:ae===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Ve=>{Ve.stopPropagation(),re(!1),ye(!0)},"data-testid":M("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addPayee]})}):Te===!0?t.jsx(yt,{onClickAway:pe,children:t.jsx(wp,{"data-testid":M("vendor-selection-dropdown-container",Tt(j,it,l.toString())),children:t.jsx(qa,{name:Y,placeholder:Zt.addPayee,valueToInfo:we,defaultValue:{selectedOption:ne.selectedOption,defaultOptions:ne.defaultOptions},type:"vendor",autoFocus:!ae,style:{width:"100%"},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Te,onMenuClose:pe,registerOptions:{required:!1},loadOptions:Ue,showCOT:$,onCOTView:J,menuPlacement:R})})}):t.jsx(vp,{children:t.jsxs(Zn,{isHovered:f,showOutline:It&&le?.isPreFilled!==!0&&!w&&ze,children:[je(),t.jsx(Cp,{onClick:ct,"data-testid":M("vendor-name-text",j),children:le!=null&&le.name?t.jsx(tt,{text:le.name,itemTextStyle:{color:f?U.colors.primary:U.colors.hero}}):t.jsx(bp,{children:ji})})]})})})]},Ee);case"category":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"category",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[De]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:ot,onRecommendationClick:fe,selectedValue:z,selectedValueLabel:at,existingOption:{label:Ve?.account?.accountName,value:Ve?.account?.qboId??Ve?.account?.accountId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:_===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Mt=>{Mt.stopPropagation(),G(!1),Ne(!0)},"data-testid":M("category-selection-field",B),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addCategory]})}):Ge===!0?t.jsx(yt,{onClickAway:nt,children:t.jsx(Ti,{isHovered:f,"data-testid":M("category-selection-dropdown-container",B),children:t.jsx(Bo,{name:B,placeholder:Zt.addCategory,valueToId:Mt=>ee(Mt),type:"category",pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:z,allOptions:Se},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ge,autoFocus:!_&&(!z||i[De]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[De].qboId)),onMenuClose:nt,customStyleConfig:h,disableCurrentOption:be,menuPlacement:R,onCOTView:J})})}):t.jsx(Zn,{isHovered:f,showOutline:ot&&i[De]?.isPreFilled!==!0&&!w&&ze,children:t.jsx(Li,{onClick:jt,"data-testid":M("category-label-text",B),children:t.jsx(tt,{text:at??"",itemTextStyle:{color:f?U.colors.primary:U.colors.hero}})})})})]},Ee)}case"class":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"class",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[Ze]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:Wt,onRecommendationClick:fe,selectedValue:b,selectedValueLabel:Ae,existingOption:{label:Ve?.class?.className,value:Ve?.class?.classId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:P===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Mt=>{Mt.stopPropagation(),Q(!1),Ke(!0)},"data-testid":M("class-selection-field",oe),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addClass]})}):ue===!0?t.jsx(yt,{onClickAway:st,children:t.jsx(Ti,{isHovered:f,"data-testid":M("class-selection-dropdown-container",oe),children:t.jsx(Bo,{name:oe,placeholder:Zt.addClass,valueToId:Mt=>$e(Mt),type:"class",showCOT:$,defaultValue:{selectedOption:b,allOptions:S},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",menuIsOpen:ue,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!P&&!b,customStyleConfig:h,onMenuClose:st,menuPlacement:R,onCOTView:J})})}):t.jsx(Zn,{isHovered:f,showOutline:Wt&&i[Ze]?.isPreFilled!==!0&&!w&&ze,children:t.jsx(Li,{"data-testid":M("class-selection-field",oe),onClick:Ot,children:t.jsx(tt,{text:Ae??"",itemTextStyle:{color:f?U.colors.primary:U.colors.hero}})})})})]},Ee)}case"date":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(ho,{"data-testid":M("date-field",Tt(j,Ze,l.toString())),children:t.jsx(cp,{style:{color:f?U.colors.primary:U.colors.hero},children:N!=null?N.format(tp.visual.MMMDCommaYYYYformat):null})})})},Ee);case"transaction_type":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,"data-testid":M("transaction-type-field",Tt(j,Ze,l.toString())),isLastItem:xe===wt.length-1,children:K!=null?t.jsx(Ua,{textColor:f?new xo(U.colors.primary):Wa(void 0,U),text:K??D}):null})},Ee);case"memo":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:xe===wt.length-1,"data-testid":M("memo-field",Tt(j,Ze,l.toString())),children:V&&l==0?t.jsx(Ce,{placement:"bottom",title:V,children:t.jsx(up,{style:{color:f?U.colors.primary:U.colors.hero}})}):l==0?t.jsx(dp,{children:ji}):null})},Ee);case"amount":{const Ve=Je("0,0.[00]",i.amount,!0);return t.jsx(rt,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(ho,{"data-testid":M("transaction-amount-field",Tt(j,Ze,l.toString())),style:{color:f?U.colors.primary:U.colors.hero},children:Ve})})},Ee)}}});return t.jsx(t.Fragment,{children:on()})},ki=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(mp,{}):t.jsx(hp,{}):h?t.jsx(pp,{}):t.jsx(gp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(fp,{}):t.jsx(xp,{}):null,Ii=({isFirstColumn:e,children:n})=>t.jsx(Ns,{isFirstColumn:e,children:n}),Jn=({recommendations:e,isCOTEnabled:n,type:d,isReviewTab:c,selectedValueLabel:h,isFirstColumn:p,isEnabled:i=!1,isMisCategorized:l=!1,selectedValue:r,existingOption:m,cotTracking:u,lineId:x,openTooltipId:f,transactionId:w,isAccountOptionDisabled:j,onRecommendationClick:C,setOpenTooltipId:I})=>{const y=s.useMemo(()=>`${w}:${x}:${d}`,[w,x,d]),$=f===y,R=Ga().analytics,{createAlternateRecommendationCallback:L}=Ya(),O=s.useCallback(K=>{const V=e[1],H=e[0];L(d,{currentValue:h??Yt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:w,lineId:x,onCOTView:(J,Y,B,oe)=>{u.onCOTView?.(J,Y,B,oe)}}:void 0},V,H)(K)},[L,e,h,c,d,u,x,w]),v=Za(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",C,O,r,j),k=Xa(e,d),A=s.useCallback(()=>{I(y);const K=v?.recommendations[0]?.cot??[],V=v?.recommendations[1]?.cot??[],H=V.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Yt,recommendation:v?.recommendations[0]?.name??Yt,recommendationCot:K,isRecommendationCotAvailable:K.length>0,recommendationReason:v?.recommendations[0]?.reason??Yt,recommendationConfidencePercentage:v?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Ro(Do(v?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:v?.recommendations[1]?.name??Yt,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:H,alternativeRecommendationReason:v?.recommendations[1]?.reason??Yt,alternativeRecommendationConfidencePercentage:v?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:H?Ro(Do(v?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=Qa(v);J!=null&&u.onCOTView(x,w,d,J)}},[R,v,c,h,d,x,w,y,I]),T=s.useCallback(()=>{f===y&&I(void 0)},[f,y,I]),N=s.useMemo(()=>!r||!k?!1:e.some(K=>d==="vendor"&&K.vendor!=null?K.vendor.id===r||K.vendor.qboId===r:d==="category"&&K.account!=null?K.account.qboId===r||K.account.accountId===r:d==="class"&&K.class!=null?K.class.classId===r:!1),[r,k,e,d]);if(!k)return t.jsx(Ns,{isFirstColumn:p});const D=i||N;return v?t.jsx(Ii,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:v,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:T,children:t.jsx(yp,{children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})})}):t.jsx(Ii,{isFirstColumn:p,children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})},_s=()=>{const e=ke(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(ip,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${ep}${h.key}`;switch(h.key){case"vendor":return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsxs(ho,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},ip=a.div`
|
|
1222
|
+
`,qn="expenseAutomationTransactionsPage",Vt="transactionCategorizationListTable",De="account",Ze="class",it="lineEntitySelection",Yh="lineEntity",Zh="recommendations",Ps="lineInfo",Xh="vendorDetails",Qh="customerDetails",Tn="selectedTransactionIds",Tt=(e,n,d)=>`${e}.${d}.${n}`,ep=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"}),s.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"}),s.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:tp,hyphen:ji,empty:Yt}},expenseAutomation:{transactions:Zt},dateFormat:np}=Ie.getLocalizedStrings(),At={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[1],g[2]),containerPaddingTopBottomEmpty:new X(g[2],g[3]),nameLogoWidth:new X(g[2],g[4]),nameLogoHeight:new X(g[2],g[4])},op=({transactionView:e,transaction:n,sectionId:d,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:i,isCOTEnabled:l,cotTracking:r,onTransactionCategorizationRowClick:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})=>{const C=ke(),[I,y]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,L=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=R.filter(b=>L.indexOf(b)!==-1),v=[];O.forEach(b=>{v.push($[b])});const{accountList:k,accountsHierarchyList:A,classHierarchyList:T,classList:N,uncategorizedAccounts:D,transactions:K,selectedCheckBoxTransactionIds:V}=e,H=V.includes(n.transactionId),J=vt(),Y={control:()=>({marginLeft:-2,backgroundColor:I?J.colors.background:J.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:J.colors.grey5}),singleValue:()=>({color:I||H?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:b=>({...b,color:I||H?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:b=>({...b,zIndex:10})},F={...Y,singleValue:b=>({...b,color:I||H?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:b=>({...b,color:I||H?J.colors.primary:J.colors.hero,textAlign:"left"})},oe=K.find(b=>b.id===n.transactionId),ye=(b,z)=>{const{transactionType:W}=z.transactionReviewLocalData;let M=b.target;for(;M;){if(M.classList.contains("select-value-container")||M.classList.contains("item-value-container")||M.classList.contains("grouped-single-select-field__value-container")||M.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||M.classList.contains("grouped-single-select-field__input")||M.classList.contains("grouped-single-select-field__menu"))return;M=M.parentElement}W!=null&&m(z.transactionId,W)},U=s.useRef(null),[he,ge]=s.useState("auto");return s.useEffect(()=>{const b=()=>{if(i.current!=null&&U.current!=null){const z=i.current.getBoundingClientRect(),W=U.current.getBoundingClientRect().top-z.top;ge(W>285?"top":"bottom")}};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b)}},[i]),t.jsx(ap,{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),windowSize:C,isSelected:H,isHovered:I,children:t.jsx(rp,{children:v.map((b,z)=>t.jsx(lp,{ref:U,"data-testid":B("transaction-categorization-list-row",b.lineId),windowSize:C,onClick:W=>ye(W,n),children:t.jsx(ip,{line:b,isHovered:I||H,isSelected:H,lineIndex:z,sectionId:d,transaction:n,currentTransaction:oe,windowSize:C,accountsHierarchyList:A,classHierarchyList:T,allAccountList:k,allClassList:N,uncategorizedAccounts:D,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:Y,customStyleAutoComplete:F,recommendations:b.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:he,cotTracking:r,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})},`${n.transactionId}.${b.lineId}`))},n.transactionId)},n.transactionId)},ip=({accountsHierarchyList:e,allAccountList:n,allClassList:d,classHierarchyList:c,customStyle:h,customStyleAutoComplete:p,line:i,lineIndex:l,transaction:r,currentTransaction:m,windowSize:u,uncategorizedAccounts:x,isHovered:f=!1,isSelected:w=!1,sectionId:j,recommendations:C,vendorSearchAutoCompleteData:I,selectedTab:y,isCOTEnabled:$,menuPlacement:R,cotTracking:L,openTooltipId:O,setCurrentTransactionInAction:v,vendorLoadOptions:k,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:T})=>{const{transactionDate:N,transactionType:D,transactionTypeName:K,memo:V}=r.transactionReviewLocalData,{setValue:H}=fo(),J=s.useCallback((se,fe)=>{L?.onCOTView!=null&&L.onCOTView(i.lineId,r.transactionId,se,fe)},[L,i.lineId,r.transactionId]),Y=Tt(j,it,l.toString()),F=Tt(j,De,l.toString()),oe=Tt(j,Ze,l.toString()),ye=(se,fe)=>{let Ee;switch(fe){case"vendor":Ee=Y;break;case"category":Ee=F;break;case"class":Ee=oe;break;default:return}H(`${Ee}.selectedOption`,se,{shouldValidate:!0,shouldDirty:!0})},U=vt(),he=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:i.customer?.id??"",logo:i.customer?.logo,name:i.customer?.name??""},[m,i.customer?.id,i.customer?.logo,i.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),ge=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:i.vendor?.id??"",logo:i.vendor?.logo,name:i.vendor?.name??""},[m,i.vendor?.id,i.vendor?.logo,i.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),b=i[Ze]?.classId,z=i[De]?.qboId??i[De]?.accountId,W=he?.id,M=ge?.id,E=ge?.name,[P,Q]=s.useState(!b),[_,G]=s.useState(!z||i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!0),[re,ie]=s.useState(!M||!W),xe=se=>C?.find(fe=>fe.vendor?.qboId===se||fe.vendor?.id===se||fe.vendor?.name===se)?.vendor?.reason??"",ve=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Se=cs(e,ve),S=ls(c,ve),ee=se=>n.filter(fe=>fe.qboId===se)[0]?.qboId,$e=se=>d.filter(fe=>fe.classId===se)[0]?.accountingClassNumber??void 0,be=s.useCallback(se=>q.isAccountUncategorized(x,se,T===!0?["income"]:void 0),[x,T]),[Te,Ce]=s.useState(!1),[ue,Ke]=s.useState(!1),[Ge,Ne]=s.useState(!1),Ue=(se,fe)=>{v({transactionId:r.transactionId,lineItemId:i.lineId}),k(se,fe)},pe=()=>{ie(!(M||W)),Ce(!1)},nt=()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0),Ne(!1)},st=()=>{Q(!b),Ke(!1)},ct=()=>{(M||W)&&Ce(!0)},Ot=()=>{Ke(!0)},jt=()=>{Ne(!0)};s.useEffect(()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0)},[z]),s.useEffect(()=>{Q(!b)},[b]),s.useEffect(()=>{ie(!(M||W))},[M,W]);const Ft=r.transactionReviewLocalData.selectedEntity,kt=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,le=m!=null&&q.isVendorTransaction(m)===!0?Ft:kt,ne=s.useMemo(()=>{const se=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],fe=I.entityAutoCompleteView;return{selectedOption:le?.qboId??le?.id,defaultOptions:go(fe,le,se??[])}},[le,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),je=()=>le!=null&&le.logo!=null?t.jsx(ss,{photoUrl:le.logo.toString(),styles:{width:At.nameLogoWidth.valuePx(u),height:At.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx($i,{children:t.jsx(cn,{name:le.name,size:o.sp4})})}):le!=null&&le.name!=null?t.jsx($i,{children:t.jsx(cn,{name:le.name,size:o.sp4})}):null,Le=(se,fe)=>{if(fe==null||!fe)return;let Ee=[];return se.forEach(Ve=>{Ee=Ee.concat(Ve.options)}),Ee.find(Ve=>Ve.value===fe)?.label??fe},Ae=Le(S,b),at=Le(Se,z),ze=y==="review",It=Bn("vendor",ne.defaultOptions,ne.selectedOption),ot=Bn("category",Se,z),Wt=Bn("class",S,b),on=()=>wt.map((se,fe)=>{const Ee=`${r.transactionId}_${se.key}_${i.lineId}`;if(l>0&&m!=null&&q.isVendorTransaction(m)===!0&&se.key==="vendor")return t.jsx(rt,{windowSize:u,wrapperWidth:se.width},Ee);if(l>0&&se.key==="transaction_type")return t.jsx(rt,{windowSize:u,wrapperWidth:se.width},Ee);switch(se.key){case"vendor":default:return t.jsxs(rt,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"vendor",isFirstColumn:!0,isEnabled:!!le?.isPreFilled,isMisCategorized:It,onRecommendationClick:ye,selectedValue:M,selectedValueLabel:E,isReviewTab:ze,isAccountOptionDisabled:be,existingOption:{label:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:re===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Ve=>{Ve.stopPropagation(),ie(!1),Ce(!0)},"data-testid":B("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addPayee]})}):Te===!0?t.jsx(yt,{onClickAway:pe,children:t.jsx(bp,{"data-testid":B("vendor-selection-dropdown-container",Tt(j,it,l.toString())),children:t.jsx(Ja,{name:Y,placeholder:Zt.addPayee,valueToInfo:xe,defaultValue:{selectedOption:ne.selectedOption,defaultOptions:ne.defaultOptions},type:"vendor",autoFocus:!re,style:{width:"100%"},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Te,onMenuClose:pe,registerOptions:{required:!1},loadOptions:Ue,showCOT:$,onCOTView:J,menuPlacement:R})})}):t.jsx(Sp,{children:t.jsxs(Zn,{isHovered:f,showOutline:It&&le?.isPreFilled!==!0&&!w&&ze,children:[je(),t.jsx(wp,{onClick:ct,"data-testid":B("vendor-name-text",j),children:le!=null&&le.name?t.jsx(tt,{text:le.name,itemTextStyle:{color:f?U.colors.primary:U.colors.hero}}):t.jsx(vp,{children:ji})})]})})})]},Ee);case"category":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"category",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[De]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:ot,onRecommendationClick:ye,selectedValue:z,selectedValueLabel:at,existingOption:{label:Ve?.account?.accountName,value:Ve?.account?.qboId??Ve?.account?.accountId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:_===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Bt=>{Bt.stopPropagation(),G(!1),Ne(!0)},"data-testid":B("category-selection-field",F),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addCategory]})}):Ge===!0?t.jsx(yt,{onClickAway:nt,children:t.jsx(Ti,{isHovered:f,"data-testid":B("category-selection-dropdown-container",F),children:t.jsx(Fo,{name:F,placeholder:Zt.addCategory,valueToId:Bt=>ee(Bt),type:"category",pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:z,allOptions:Se},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ge,autoFocus:!_&&(!z||i[De]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[De].qboId)),onMenuClose:nt,customStyleConfig:h,disableCurrentOption:be,menuPlacement:R,onCOTView:J})})}):t.jsx(Zn,{isHovered:f,showOutline:ot&&i[De]?.isPreFilled!==!0&&!w&&ze,children:t.jsx(Li,{onClick:jt,"data-testid":B("category-label-text",F),children:t.jsx(tt,{text:at??"",itemTextStyle:{color:f?U.colors.primary:U.colors.hero}})})})})]},Ee)}case"class":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:$,recommendations:ve,type:"class",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[Ze]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:Wt,onRecommendationClick:ye,selectedValue:b,selectedValueLabel:Ae,existingOption:{label:Ve?.class?.className,value:Ve?.class?.classId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:P===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Kn,{onClick:Bt=>{Bt.stopPropagation(),Q(!1),Ke(!0)},"data-testid":B("class-selection-field",oe),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addClass]})}):ue===!0?t.jsx(yt,{onClickAway:st,children:t.jsx(Ti,{isHovered:f,"data-testid":B("class-selection-dropdown-container",oe),children:t.jsx(Fo,{name:oe,placeholder:Zt.addClass,valueToId:Bt=>$e(Bt),type:"class",showCOT:$,defaultValue:{selectedOption:b,allOptions:S},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",menuIsOpen:ue,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!P&&!b,customStyleConfig:h,onMenuClose:st,menuPlacement:R,onCOTView:J})})}):t.jsx(Zn,{isHovered:f,showOutline:Wt&&i[Ze]?.isPreFilled!==!0&&!w&&ze,children:t.jsx(Li,{"data-testid":B("class-selection-field",oe),onClick:Ot,children:t.jsx(tt,{text:Ae??"",itemTextStyle:{color:f?U.colors.primary:U.colors.hero}})})})})]},Ee)}case"date":return t.jsx(rt,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===wt.length-1,children:t.jsx(ho,{"data-testid":B("date-field",Tt(j,Ze,l.toString())),children:t.jsx(dp,{style:{color:f?U.colors.primary:U.colors.hero},children:N!=null?N.format(np.visual.MMMDCommaYYYYformat):null})})})},Ee);case"transaction_type":return t.jsx(rt,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,"data-testid":B("transaction-type-field",Tt(j,Ze,l.toString())),isLastItem:fe===wt.length-1,children:K!=null?t.jsx(Wa,{textColor:f?new xo(U.colors.primary):qa(void 0,U),text:K??D}):null})},Ee);case"memo":return t.jsx(rt,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:fe===wt.length-1,"data-testid":B("memo-field",Tt(j,Ze,l.toString())),children:V&&l==0?t.jsx(we,{placement:"bottom",title:V,children:t.jsx(hp,{style:{color:f?U.colors.primary:U.colors.hero}})}):l==0?t.jsx(up,{children:ji}):null})},Ee);case"amount":{const Ve=Je("0,0.[00]",i.amount,!0);return t.jsx(rt,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===wt.length-1,children:t.jsx(ho,{"data-testid":B("transaction-amount-field",Tt(j,Ze,l.toString())),style:{color:f?U.colors.primary:U.colors.hero},children:Ve})})},Ee)}}});return t.jsx(t.Fragment,{children:on()})},ki=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(gp,{}):t.jsx(pp,{}):h?t.jsx(mp,{}):t.jsx(xp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(yp,{}):t.jsx(fp,{}):null,Ii=({isFirstColumn:e,children:n})=>t.jsx(Ns,{isFirstColumn:e,children:n}),Jn=({recommendations:e,isCOTEnabled:n,type:d,isReviewTab:c,selectedValueLabel:h,isFirstColumn:p,isEnabled:i=!1,isMisCategorized:l=!1,selectedValue:r,existingOption:m,cotTracking:u,lineId:x,openTooltipId:f,transactionId:w,isAccountOptionDisabled:j,onRecommendationClick:C,setOpenTooltipId:I})=>{const y=s.useMemo(()=>`${w}:${x}:${d}`,[w,x,d]),$=f===y,R=Ya().analytics,{createAlternateRecommendationCallback:L}=Za(),O=s.useCallback(K=>{const V=e[1],H=e[0];L(d,{currentValue:h??Yt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:w,lineId:x,onCOTView:(J,Y,F,oe)=>{u.onCOTView?.(J,Y,F,oe)}}:void 0},V,H)(K)},[L,e,h,c,d,u,x,w]),v=Xa(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",C,O,r,j),k=Qa(e,d),A=s.useCallback(()=>{I(y);const K=v?.recommendations[0]?.cot??[],V=v?.recommendations[1]?.cot??[],H=V.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Yt,recommendation:v?.recommendations[0]?.name??Yt,recommendationCot:K,isRecommendationCotAvailable:K.length>0,recommendationReason:v?.recommendations[0]?.reason??Yt,recommendationConfidencePercentage:v?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Ro(Do(v?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:v?.recommendations[1]?.name??Yt,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:H,alternativeRecommendationReason:v?.recommendations[1]?.reason??Yt,alternativeRecommendationConfidencePercentage:v?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:H?Ro(Do(v?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=er(v);J!=null&&u.onCOTView(x,w,d,J)}},[R,v,c,h,d,x,w,y,I]),T=s.useCallback(()=>{f===y&&I(void 0)},[f,y,I]),N=s.useMemo(()=>!r||!k?!1:e.some(K=>d==="vendor"&&K.vendor!=null?K.vendor.id===r||K.vendor.qboId===r:d==="category"&&K.account!=null?K.account.qboId===r||K.account.accountId===r:d==="class"&&K.class!=null?K.class.classId===r:!1),[r,k,e,d]);if(!k)return t.jsx(Ns,{isFirstColumn:p});const D=i||N;return v?t.jsx(Ii,{isFirstColumn:p,children:t.jsx(we,{variant:"chain-of-thought",data:v,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:T,children:t.jsx(Cp,{children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})})}):t.jsx(Ii,{isFirstColumn:p,children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})},_s=()=>{const e=ke(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(sp,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${tp}${h.key}`;switch(h.key){case"vendor":return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsxs(ho,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},sp=a.div`
|
|
1223
1223
|
display: flex;
|
|
1224
1224
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1225
1225
|
padding-left: ${e=>At.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
@@ -1238,7 +1238,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1238
1238
|
box-sizing: border-box;
|
|
1239
1239
|
align-items: center;
|
|
1240
1240
|
justify-content: space-between;
|
|
1241
|
-
`,
|
|
1241
|
+
`,ap=a.div`
|
|
1242
1242
|
display: flex;
|
|
1243
1243
|
height: 100%;
|
|
1244
1244
|
flex: 1;
|
|
@@ -1266,7 +1266,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1266
1266
|
color: ${n.colors.primary};
|
|
1267
1267
|
}
|
|
1268
1268
|
`:null};
|
|
1269
|
-
`,
|
|
1269
|
+
`,rp=a.div`
|
|
1270
1270
|
display: flex;
|
|
1271
1271
|
flex: 1;
|
|
1272
1272
|
flex-direction: column;
|
|
@@ -1274,7 +1274,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1274
1274
|
box-sizing: border-box;
|
|
1275
1275
|
align-items: center;
|
|
1276
1276
|
justify-content: space-around;
|
|
1277
|
-
`,
|
|
1277
|
+
`,lp=a.div`
|
|
1278
1278
|
display: flex;
|
|
1279
1279
|
flex: 1;
|
|
1280
1280
|
flex-direction: row;
|
|
@@ -1294,7 +1294,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1294
1294
|
:last-of-type {
|
|
1295
1295
|
padding-right: ${o.sp0};
|
|
1296
1296
|
}
|
|
1297
|
-
`,
|
|
1297
|
+
`,cp=Xe`
|
|
1298
1298
|
word-break: break-word;
|
|
1299
1299
|
white-space: nowrap;
|
|
1300
1300
|
-webkit-line-clamp: 1;
|
|
@@ -1302,7 +1302,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1302
1302
|
overflow: hidden;
|
|
1303
1303
|
text-overflow: ellipsis;
|
|
1304
1304
|
display: -webkit-box;
|
|
1305
|
-
`,tn=a(
|
|
1305
|
+
`,tn=a(Me)`
|
|
1306
1306
|
overflow: hidden;
|
|
1307
1307
|
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1308
1308
|
display: flex;
|
|
@@ -1313,40 +1313,40 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1313
1313
|
flex-direction: row;
|
|
1314
1314
|
column-gap: ${o.sp2};
|
|
1315
1315
|
align-items: center;
|
|
1316
|
-
`,
|
|
1317
|
-
${
|
|
1316
|
+
`,dp=a(Me)`
|
|
1317
|
+
${cp};
|
|
1318
1318
|
color: ${e=>e.theme.colors.hero};
|
|
1319
|
-
`,Kn=a(
|
|
1319
|
+
`,Kn=a(Me)`
|
|
1320
1320
|
color: ${e=>e.theme.colors.hero};
|
|
1321
1321
|
`,Gn=a(Dn)`
|
|
1322
1322
|
width: ${o.sp3};
|
|
1323
1323
|
height: ${o.sp3};
|
|
1324
1324
|
margin: ${o.sp1};
|
|
1325
|
-
`,
|
|
1325
|
+
`,up=a.div`
|
|
1326
1326
|
margin: ${o.sp3};
|
|
1327
|
-
`,
|
|
1327
|
+
`,hp=a(ep)`
|
|
1328
1328
|
width: ${o.sp3};
|
|
1329
1329
|
height: ${o.sp3};
|
|
1330
1330
|
margin-left: 10px;
|
|
1331
|
-
`,
|
|
1331
|
+
`,pp=a(ir)`
|
|
1332
1332
|
width: ${o.sp5};
|
|
1333
1333
|
height: ${o.sp5};
|
|
1334
|
-
`,
|
|
1334
|
+
`,mp=a(lr)`
|
|
1335
1335
|
width: ${o.sp5};
|
|
1336
1336
|
height: ${o.sp5};
|
|
1337
|
-
`,
|
|
1337
|
+
`,gp=a(or)`
|
|
1338
1338
|
width: ${o.sp5};
|
|
1339
1339
|
height: ${o.sp5};
|
|
1340
|
-
`,
|
|
1340
|
+
`,xp=a(cr)`
|
|
1341
1341
|
width: ${o.sp5};
|
|
1342
1342
|
height: ${o.sp5};
|
|
1343
|
-
`,
|
|
1343
|
+
`,fp=a(un)`
|
|
1344
1344
|
width: ${o.sp3};
|
|
1345
1345
|
height: ${o.sp3};
|
|
1346
1346
|
path {
|
|
1347
1347
|
stroke-width: 2;
|
|
1348
1348
|
}
|
|
1349
|
-
`,
|
|
1349
|
+
`,yp=a(sr)`
|
|
1350
1350
|
width: ${o.sp3};
|
|
1351
1351
|
height: ${o.sp3};
|
|
1352
1352
|
`,Ns=a.div`
|
|
@@ -1356,13 +1356,13 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1356
1356
|
width: ${o.sp5};
|
|
1357
1357
|
margin-left: ${e=>e.isFirstColumn?o.sp2:o.sp0};
|
|
1358
1358
|
height: 100%;
|
|
1359
|
-
`,
|
|
1359
|
+
`,Cp=a.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
1363
1363
|
width: auto;
|
|
1364
1364
|
cursor: pointer;
|
|
1365
|
-
`,
|
|
1365
|
+
`,wp=a(Me)`
|
|
1366
1366
|
display: flex;
|
|
1367
1367
|
max-width: calc(100% - ${o.sp6});
|
|
1368
1368
|
flex: 1 1 auto;
|
|
@@ -1373,7 +1373,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1373
1373
|
display: flex;
|
|
1374
1374
|
`,$i=a.div`
|
|
1375
1375
|
display: flex;
|
|
1376
|
-
`,
|
|
1376
|
+
`,bp=a.div`
|
|
1377
1377
|
width: 100%;
|
|
1378
1378
|
padding-left: 10px;
|
|
1379
1379
|
margin-left: ${o.sp0};
|
|
@@ -1397,7 +1397,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1397
1397
|
display: flex;
|
|
1398
1398
|
align-items: center;
|
|
1399
1399
|
flex-direction: row;
|
|
1400
|
-
`,
|
|
1400
|
+
`,vp=a(Me)``,Sp=a.div`
|
|
1401
1401
|
width: 100%;
|
|
1402
1402
|
display: flex;
|
|
1403
1403
|
padding-left: ${o.sp0};
|
|
@@ -1417,42 +1417,42 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1417
1417
|
display: flex;
|
|
1418
1418
|
align-items: center;
|
|
1419
1419
|
width: calc(100% - ${o.sp5});
|
|
1420
|
-
`,
|
|
1420
|
+
`,jp=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ke();return t.jsxs(kp,{windowSize:h,children:[t.jsx(zs,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c,"data-testid":B("transaction-categorization-list-empty-table-header")}),t.jsx(Ip,{windowSize:h,"data-testid":B("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,i)=>t.jsx(_s,{"data-testid":B("transaction-categorization-list-empty-row",i.toString())},i))})]})},kp=a.div`
|
|
1421
1421
|
display: block;
|
|
1422
1422
|
min-height: 100%;
|
|
1423
1423
|
flex-direction: column;
|
|
1424
1424
|
width: 100%;
|
|
1425
1425
|
padding-left: ${o.sp8};
|
|
1426
1426
|
padding-right: ${o.sp8};
|
|
1427
|
-
`,
|
|
1427
|
+
`,Ip=a.div`
|
|
1428
1428
|
display: flex;
|
|
1429
1429
|
flex: 1;
|
|
1430
1430
|
min-height: 100%;
|
|
1431
1431
|
flex-direction: column;
|
|
1432
1432
|
row-gap: ${o.sp3};
|
|
1433
|
-
`,{common:
|
|
1433
|
+
`,{common:$p,transactionDetail:{notCategorizedTooltipText:Tp}}=Ie.getLocalizedStrings(),Qn={rowGap:new X(g[0],g[2],g[3])},Lp=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,isCOTEnabled:p,isDisabled:i,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:x,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:w,onFetchTransactionCategorizationList:j,containerRef:C,cotTracking:I,isUncategorizedExpenseCategoryEnabled:y})=>{const $=ke(),[R,L]=s.useState(void 0),{fetchState:O,uiState:v,transactionLocalData:k,selectedCheckBoxTransactionIds:A,transactions:T,uncategorizedAccounts:N}=n,D=s.useRef(null),K=s.useRef({}),{control:V}=fo();s.useEffect(()=>{D.current?.resetAfterIndex(0,!0)},[$,D,k]),s.useEffect(()=>{D.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const H=s.useCallback(_=>{if(K.current?.[_]!=null){const ie=$==="small"&&v.pageToken==null&&_===k.length-1?Qn.rowGap.value("medium-regular"):Qn.rowGap.value($);return K.current[_]+ie}if(k[_]==null)return 0;const G=k[_].transactionReviewLocalData,re=Object.keys(G.lineItemById).length;return re!=null&&!isNaN(re)&&re>1?vi*re+Qn.rowGap.value($)*(re-1):vi},[k,$,v.pageToken,v.sortKey,v.sortOrder]),J=s.useCallback((_,G)=>{K.current={...K.current,[_]:G},D.current?.resetAfterIndex(0,!0)},[$,D,k,v.sortKey,v.sortOrder]),Y=s.useCallback(()=>{(v.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&j(e,v.searchString,!0,v.pageToken,!0,!1)},[n.refreshStatus.fetchState,j,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),F=s.useCallback(()=>{v.pageToken!=null&&Y()},[Y,v.pageToken,v.sortKey,v.sortOrder]),oe=Fa(_=>w(e,{scrollPosition:{scrollTop:_}}),1e3,{trailing:!0}),ye=_=>_<n.transactionLocalData.length,U=(_,G)=>{f(e,{sortOrder:G,sortKey:_}),j(e,v.searchString,!1,null,!1,!0)},he=_=>{if(e==="autoCategorized")return!A.includes(_);const G=k.find(ie=>ie.transactionId===_)?.transactionReviewLocalData,re=T.find(ie=>ie.id===_);return re!=null&&G!=null?!q.checkIfAllLineItemsAreCategoryClassFilled(re,G,N,y):A.length===0?!0:!A.includes(_)};let ge=[],b=[];(O==="Completed"||n.transactionLocalData.length>0)&&(b=n.transactionLocalData.map((_,G)=>{const re=he(_.transactionId);let ie=!1;y===!0&&re===!0&&(ie=Ba.isAnyItemWithUncategorizedExpenseAccount(N,_.transactionReviewLocalData.lineItemById,["expense"]));const xe=_.transactionReviewLocalData;return{label:t.jsx(op,{transactionView:n,sectionId:`${h}.${G}.${Ps}`,transaction:_,receiptUploadEndpoint:d,authParams:c,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:C,isCOTEnabled:p,cotTracking:I,openTooltipId:R,setOpenTooltipId:L,isUncategorizedExpenseCategoryEnabled:y},`${_.transactionId}.${xe.transactionType}`),value:_.transactionId,defaultChecked:!1,groupLabel:!1,isException:!1,isSticky:!0,isDisabled:re===!0?"readonly":void 0,exceptionType:ie===!0?"alert":void 0,exceptionInfo:ie===!0?Tp:void 0}}),ge=b.map(_=>_.value));const z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:W,subTitle:M}=He("transaction_categorization").allDoneText,E=k.map(_=>_.transactionId),P=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),Q=s.useMemo(()=>k.reduce((_,G)=>{const re=Object.keys(G.transactionReviewLocalData.lineItemById).length;return _+(re>0?re:1)},0)<n.totalCountByTab[e]?k.length+1:k.length,[k,n.totalCountByTab,e]);return t.jsx(Op,{windowSize:$,"data-testid":B("transaction-categorization-list-wrapper"),children:t.jsx(Fp,{windowSize:$,"data-testid":B("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(Mp,{windowSize:$,"data-testid":B("transaction-categorization-reload-page"),children:[t.jsx(zp,{onClick:()=>j(e,void 0,!0,null,!1,!0),"data-testid":B("transaction-categorization-reload-icon"),children:t.jsx(mo,{})}),t.jsx(Pp,{"data-testid":B("transaction-categorization-reload-label"),children:$p.reloadPage.label})]}):O==="Completed"&&k.length===0?t.jsx(bt,{tab:"transaction_categorization",title:W,subTitle:M,"data-testid":B("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&k.length===0?t.jsx(jp,{sortConfig:{sortKey:v.sortKey,sortOrder:v.sortOrder},fetchState:O,onColumnSortConfigChanged:U,"data-testid":B("transaction-categorization-list-empty-table")}):t.jsx(Bp,{windowSize:$,"data-testid":B("transaction-categorization-list-view"),children:t.jsx(is,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:_,ref:G,onChange:re}})=>t.jsx(Vs.Provider,{value:{value:_,mode:"off",allCheckBoxValues:ge,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:O,isDisabled:i,groupLabelCheckBox:z,onColumnSortConfigChanged:U,ref:G,onChange:re,selectedTab:e},children:t.jsx(Ln,{children:({height:ie,width:xe})=>t.jsx(Ma,{isItemLoaded:ye,itemCount:P,loadMoreItems:F,children:({onItemsRendered:ve,ref:Se})=>t.jsx(An,{ref:S=>{Se(S),D.current=S},height:ie,itemCount:Q,itemKey:S=>k[S]?.transactionId,innerElementType:Ap,onItemsRendered:ve,width:xe,style:{willChange:"auto"},overscanCount:kh,itemSize:H,itemData:{checkboxes:b,value:_,allCheckBoxValues:ge,groupLabelCheckBox:z,categorizationGroupValue:E,transactionLocalData:k,mode:"always_on",setRowHeight:J,isItemLoaded:ye,ref:Se,onChange:re,selectedCheckBoxTransactionIds:A},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:S})=>{oe(S)},children:Rp})})})})})})})})},Ap=e=>{const{value:n,allCheckBoxValues:d,groupLabelCheckBox:c,index:h,isDisabled:p,fetchState:i,sortKey:l,sortOrder:r,mode:m,ref:u,onChange:x,onColumnSortConfigChanged:f}=Ep(),{children:w,style:j,...C}=e;return i==="Completed"?t.jsxs(_p,{ref:u,style:{...j,width:"auto"},...C,children:[t.jsx(Np,{children:t.jsx(ds,{selectionLimit:q.MAX_SELECTION_LIMIT,value:n,checkBox:{label:t.jsx(Dp,{children:t.jsx(zs,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:f})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:c,allCheckBoxValues:d,mode:m,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:h,onChangeHandler:I=>us({event:I,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(Vp,{children:w})]},`${d[h]}-${h}`):null},Vs=s.createContext(void 0),Ep=()=>{const e=s.useContext(Vs);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Rp=({index:e,style:n,data:d})=>{const{checkboxes:c,value:h,groupLabelCheckBox:p,categorizationGroupValue:i,allCheckBoxValues:l,transactionLocalData:r,isItemLoaded:m,setRowHeight:u,ref:x,onChange:f,selectedCheckBoxTransactionIds:w}=d,j=s.useRef(null),C=ke();if(s.useEffect(()=>{j.current?.firstElementChild!=null&&u(e,j.current.firstElementChild.clientHeight)},[e,j,C,r[e]?.transactionReviewLocalData]),m(e)===!0){const I=c[e];return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(ds,{selectionLimit:q.MAX_SELECTION_LIMIT,checkBox:I,value:h,groupLabelCheckBox:p,allCheckBoxValues:l,mode:I.isDisabled==="readonly"||w.includes(I.value)===!1&&w.length>=q.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:I.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:`${Vt}.${h}`,ref:x,index:e,onChangeHandler:y=>us({event:y,value:h,allCheckBoxValues:l,groupLabelCheckBox:p,onChange:f})})},i[e])}else return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(Hp,{children:t.jsx(_s,{})})},Gi())},Dp=a.div`
|
|
1434
1434
|
flex: 1;
|
|
1435
1435
|
width: auto;
|
|
1436
1436
|
padding-right: ${o.sp8};
|
|
1437
|
-
`,
|
|
1437
|
+
`,Op=a.div`
|
|
1438
1438
|
width: 100%;
|
|
1439
1439
|
height: 100%;
|
|
1440
1440
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1441
|
-
`,
|
|
1441
|
+
`,Fp=a.div`
|
|
1442
1442
|
height: 100%;
|
|
1443
|
-
`,
|
|
1443
|
+
`,Bp=a.div`
|
|
1444
1444
|
height: 100%;
|
|
1445
1445
|
display: flex;
|
|
1446
1446
|
flex-direction: column;
|
|
1447
1447
|
max-width: 99.9%;
|
|
1448
|
-
`,
|
|
1448
|
+
`,Mp=a.div`
|
|
1449
1449
|
display: flex;
|
|
1450
1450
|
width: 100%;
|
|
1451
1451
|
height: ${e=>`calc(100% - ${os.valuePx(e.windowSize)})`};
|
|
1452
1452
|
flex-direction: column;
|
|
1453
1453
|
justify-content: center;
|
|
1454
1454
|
align-items: center;
|
|
1455
|
-
`,
|
|
1455
|
+
`,zp=a.div`
|
|
1456
1456
|
height: 96px;
|
|
1457
1457
|
width: 96px;
|
|
1458
1458
|
background: ${e=>e.theme.colors.background};
|
|
@@ -1467,7 +1467,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1467
1467
|
color: ${e=>e.theme.colors.primary};
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
`,
|
|
1470
|
+
`,Pp=a(St)`
|
|
1471
1471
|
margin-top: ${o.sp3};
|
|
1472
1472
|
color: ${e=>e.theme.colors.hero};
|
|
1473
1473
|
`,Ai=a.div`
|
|
@@ -1475,9 +1475,9 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1475
1475
|
left: ${o.sp0};
|
|
1476
1476
|
padding-bottom: ${o.sp3};
|
|
1477
1477
|
box-sizing: border-box;
|
|
1478
|
-
`,
|
|
1478
|
+
`,_p=a.div`
|
|
1479
1479
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1480
|
-
`,
|
|
1480
|
+
`,Np=a.div`
|
|
1481
1481
|
top: 0;
|
|
1482
1482
|
left: 0;
|
|
1483
1483
|
width: 100%;
|
|
@@ -1487,13 +1487,13 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1487
1487
|
align-items: center;
|
|
1488
1488
|
position: sticky;
|
|
1489
1489
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1490
|
-
`,
|
|
1490
|
+
`,Vp=a.div`
|
|
1491
1491
|
position: relative;
|
|
1492
1492
|
width: auto;
|
|
1493
1493
|
height: 100%;
|
|
1494
|
-
`,
|
|
1494
|
+
`,Hp=a.div`
|
|
1495
1495
|
padding-left: ${o.sp8};
|
|
1496
|
-
`,
|
|
1496
|
+
`,Up=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,isCOTEnabled:l,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:w,onSaveUpdateTransactionCategorization:j,onUpdateSelectedCheckboxTransactionIds:C,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:y})=>{const[$,R]=s.useState({transactionId:void 0,lineItemId:void 0}),L=s.useRef(),O=s.useRef({}),{useDynamicConfig:v}=Qi(),{configValue:k}=v(es.enableUncategorizedExpenseCategory),A=k?.uncategorized_expense_category_enabled===!0,T=(b,z,W,M)=>{const E={...O.current};E[z]==null&&(E[z]=[]);let P=E[z].findIndex(Q=>Q.lineId===b);if(P===-1){const Q={lineId:b,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};E[z].push(Q),P=E[z].length-1}else{const Q=E[z][P];E[z][P]={...Q,category:{...Q.category,recommendationTypesViewed:[...Q.category.recommendationTypesViewed]},class:{...Q.class,recommendationTypesViewed:[...Q.class.recommendationTypesViewed]},vendor:{...Q.vendor,recommendationTypesViewed:[...Q.vendor.recommendationTypesViewed]}}}M!=null&&M!==""&&!E[z][P][W].recommendationTypesViewed.includes(M)&&E[z][P][W].recommendationTypesViewed.push(M),O.current=E},{transactions:N,transactionLocalData:D,accountsHierarchyList:K,classHierarchyList:V,accountList:H,classList:J,selectedCheckBoxTransactionIds:Y,uncategorizedAccounts:F}=n,oe=Ht({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Ri(Y,D,K,V,p.entityAutoCompleteView),[K,V,Y,D,p.entityAutoCompleteView]),values:s.useMemo(()=>Ri(Y,D,K,V,p.entityAutoCompleteView),[K,V,Y,D,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{Y.length>0?r(qn):r("expenseAutomationPage")},[Y,r]);const ye=oe.handleSubmit(b=>{const z=b[Tn],W=O.current;j(e,z,W),z.forEach(M=>{delete O.current[M]})}),U=async(b,z)=>{if(b!=null){if(b===Tn){const W=oe.getValues(Tn);if(W.length<Y.length){C(e,W);return}if(W.length===q.MAX_SELECTION_LIMIT){C(e,W);return}const M=W[W.length-1],E=z[Vt].findIndex(Q=>Q.transactionId===M),P=oe.getValues(`${Vt}.${E}.lineInfo`);if(P!=null){let Q=!1;if(P.every(_=>(Q=q.isAccountUncategorized(F,_[De].selectedOption,A?["income"]:void 0),!!_[De].selectedOption&&_[De].selectedOption!=null&&!Q&&!!_[Ze].selectedOption&&!!_[it].selectedOption))===!0){C(e,W);return}else{const _=W.filter(G=>G!==M);C(e,_);return}}return}if(b.includes(De)===!0||b.includes(Ze)===!0){const W=parseInt(b.split(".")[1]),M=parseInt(b.split(".")[3]),E=oe.getValues(`${Vt}.${W}.lineInfo`),P=E[M];if(b.includes(De)||b.includes(Ze)){const{transactionId:Q,lineId:_,recommendations:G}=P;if(E!=null){const re=P[De].selectedOption,ie=P[Ze].selectedOption,xe=P[it].selectedOption,ve=P[it].selectedOption,Se=P[it].defaultOptions,S=Se?.find(pe=>pe.options?.find(nt=>nt.value===xe))?.options?.find(pe=>pe.value===xe)?.label,ee=Se?.find(pe=>pe.options?.find(nt=>nt.value===ve))?.options?.find(pe=>pe.value===ve)?.label,$e=p.entityAutoCompleteView.vendor.find(pe=>pe.qboId===xe),be=p.entityAutoCompleteView.customer.find(pe=>pe.qboId===ve),Te=G.find(pe=>pe.vendor?.qboId===xe)?.vendor,Ce=xe||$e?.qboId||Te?.qboId?{id:xe??$e?.qboId??Te?.qboId??"",name:S??$e?.name??Te?.name??"",logo:$e?.logo??Te?.logo}:void 0,ue=ve||be?.qboId?{id:ve??be?.qboId??"",name:ee??be?.name??"",logo:be?.logo}:void 0,Ke=H.find(pe=>pe.qboId===re),Ge=J.find(pe=>pe.classId===ie),Ne=n.transactionLocalData.find(pe=>pe.transactionId===Q)?.transactionReviewLocalData.lineItemById[_].account,Ue=n.transactionLocalData.find(pe=>pe.transactionId===Q)?.transactionReviewLocalData.lineItemById[_].class;m(e,Q,_,N,Ce?.id,ue?.id,b.includes(De)&&Ke!=null?{...Ke,isPreFilled:!1}:Ne,b.includes(Ze)&&Ge!=null?{...Ge,isPreFilled:!1}:Ue,void 0,G,A)}return}}if(b.includes(it)){const W=parseInt(b.split(".")[1]),M=parseInt(b.split(".")[3]),E=oe.getValues(`${Vt}.${W}.lineInfo`);if(E!=null){const P=E[M],{transactionId:Q,recommendations:_}=P,G=P[it].selectedOption,re=P[it].selectedOption,ie=P[it].defaultOptions,xe=ie?.flatMap(ue=>ue.options)?.find(ue=>ue.value===G)?.label,ve=ie?.flatMap(ue=>ue.options)?.find(ue=>ue.value===re)?.label,Se=p.entityAutoCompleteView.vendor.find(ue=>ue.qboId===G),S=p.entityAutoCompleteView.customer.find(ue=>ue.qboId===re),ee=_.find(ue=>ue.vendor?.qboId===G||ue.vendor?.name===xe)?.vendor,$e=Se?.id??ee?.id??G,be=Se!=null||ee!=null?{id:Se?.qboId??ee?.qboId??G??"",name:xe??Se?.name??ee?.name??"",logo:Se?.logo??ee?.logo}:void 0,Te=S?.qboId?{id:S?.qboId??re??"",name:ve??S?.name??"",logo:S?.logo}:void 0,Ce=N.find(ue=>ue.id===Q);if(Ce!=null){const ue=n.transactionLocalData.find(Ue=>Ue.transactionId===Ce.id)?.transactionReviewLocalData,Ke=ue?.lineItemById[P.lineId],Ge=q.isVendorTransaction(Ce)===!0?ue?.selectedEntity:Ke?.selectedEntityLine,Ne=be!=null&&be.id!=null&&be.id?{id:be.id,name:be.name,type:"vendor",qboId:be.id,zeniId:be.id,logo:be.logo,isPreFilled:Ge?.id===$e&&Ge?.isPreFilled}:Te!=null&&Te.id!=null&&Te.id?{id:Te.id,name:Te.name,type:"customer",qboId:Te.id,zeniId:Te.id,logo:Te.logo}:void 0;Ne!=null&&Ne.type==="customer"?y(P.amount.amount,{transactionId:{id:Ce.id,type:Ce.type},transaction:Ce,lineIds:Ce.type!=="journal_entry"?Ce.lines?.map(Ue=>Ue.id)??[]:[P.lineId]},!1,e,Ne,Te,A):I(P.amount.amount,{transactionId:{id:Ce.id,type:Ce.type},transaction:Ce,lineIds:Ce.type!=="journal_entry"?Ce.lines?.map(Ue=>Ue.id)??[]:[P.lineId]},!1,e,Ne,xe==null||xe===G?{id:"",name:P[it].selectedOption??""}:be,A)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const b=oe.watch((z,{name:W})=>{W!=null&&z!=null&&hn(()=>U(W,z))});return()=>{b.unsubscribe()}}),s.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const b=n.transactionLocalData.find(z=>z.transactionId===$.transactionId);if(b){const{transactionReviewLocalData:z}=b,{selectedEntity:W}=z,M=$?.lineItemId??z.sortedLineItems[0],E=z.lineItemById[M],P=E.selectedEntityLine;L.current?.(go(p.entityAutoCompleteView,W??P,E?.recommendationsWithCOT??[]))}R({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const he=(b,z)=>{i.onAutoCompleteInputChange?.(b),L.current=z},ge=s.useRef(null);return t.jsx(qp,{ref:ge,"data-testid":B("transaction-categorization-list-page"),children:t.jsx(Ut,{...oe,children:t.jsx("form",{id:Ei(qn),onSubmit:ye,style:{height:"100%",width:"100%"},"data-testid":B(Ei(qn)),children:t.jsx(Lp,{selectedTab:e,sectionId:h,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:R,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:w,onTransactionCategorizationRowClick:u,vendorLoadOptions:he,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:ge,isCOTEnabled:l,cotTracking:{onCOTView:T},isUncategorizedExpenseCategoryEnabled:A})})})})},Ei=e=>`${e}_form`,Ri=(e,n,d,c,h)=>({[Vt]:n.map(p=>Wp(p.transactionId,p.transactionReviewLocalData,d,c,h)),[Tn]:e}),Wp=(e,n,d,c,h)=>{const{lineItemById:p,sortedLineItems:i,selectedEntity:l}=n,r=Object.values(p).sort((u,x)=>i.indexOf(u.lineId)-i.indexOf(x.lineId)),m=r[0]?.lineId;return{[Ps]:r.map(u=>{const x=u.account?.qboId??u.account?.accountId,f=u.class?.classId,w=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:x,allOptions:cs(d,u.recommendationsWithCOT)},[Ze]:{selectedOption:f,allOptions:ls(c,u.recommendationsWithCOT)},[it]:{selectedOption:l?.id??w?.id,defaultOptions:go(h,l??w,n.lineItemById[m]?.recommendationsWithCOT??[])},[Yh]:u.lineEntity,[Zh]:u.recommendationsWithCOT??[]}}),transactionId:e,[Xh]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Qh]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},qp=a.div`
|
|
1497
1497
|
display: flex;
|
|
1498
1498
|
min-height: 100%;
|
|
1499
1499
|
width: 100%;
|
|
@@ -1501,7 +1501,7 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1501
1501
|
flex-direction: column;
|
|
1502
1502
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1503
1503
|
z-index: 2;
|
|
1504
|
-
`,Di={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},
|
|
1504
|
+
`,Di={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},Jp=a.div`
|
|
1505
1505
|
width: 100%;
|
|
1506
1506
|
display: flex;
|
|
1507
1507
|
justify-content: center;
|
|
@@ -1509,18 +1509,18 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1509
1509
|
flex: 1;
|
|
1510
1510
|
background: ${e=>e.theme.colors.grey4};
|
|
1511
1511
|
box-sizing: border-box;
|
|
1512
|
-
`,
|
|
1512
|
+
`,Kp=a.div`
|
|
1513
1513
|
display: flex;
|
|
1514
1514
|
flex-direction: column;
|
|
1515
1515
|
width: 100%;
|
|
1516
|
-
`,Jp=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,authParams:i,receiptUploadEndpoint:l,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:j,loggedInUser:C,isCOTEnabled:I,setCurrentFooterFormId:y,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:L,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:k,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,onReconTabColumnSortConfigChanged:N,onReloadReconciliationListPage:D,onUpdateReconcileTabLocalData:K,onUpdateMissingReceiptsUIState:V,onFetchTransactionCategorizationList:H,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:fe,onPostJESchedule:U,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:W,improveMonthEndInsightsUsingZeniGPTClick:F,onRemoveFileAttachment:E,onUpdateFileAttachment:P,onCloseAllThreadsSection:Q,onEditMonthEndInsightsClick:_,previewMonthEndReport:G,saveMonthEndReport:ae,onOpenFileAttachmentSnackBar:re,onCloseFileAttachmentSnackBar:we,onClickCustomerRequest:ve,sendMonthEndReport:Se,markAsReview:S,onReloadPage:ee,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionCollapseStatus:Te,onFetchReimbursementView:ye,redirectToVendorDetailPage:ue,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Ge,fetchFluxViewOnScroll:Ne,onFetchFluxViewList:Ue,setIsJeAccountSettingsOpened:pe,onReviewClicked:nt,setOpenDrawerClicked:st,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Bt,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:ne,onReconListPageScroll:je,onAddStatementClick:Le}=e,{currentSelectedView:Ae,missingReceipts:at,transactionView:ze,selectedPeriod:It,monthEndInsights:ot,selectedTransactionCategorizationTab:Wt,reconciliation:on}=p;switch(Ae){case"transaction_categorization":return ze.fetchState==="Completed"&&ze.transactionLocalData.length===0?t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(Vp,{setCurrentFooterFormId:y,selectedPeriod:It,selectedTab:Wt,sectionId:Vt,transactionView:ze,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,onFetchTransactionCategorizationList:H,onTransactionCategorizationRowClick:L,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:W,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(lu,{setIsJeAccountSettingsOpened:pe,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:y,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:fe,onPostJESchedule:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return at.fetchState==="Completed"&&at.transactions.length===0?t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(Gu,{onUpdateMissingReceiptsUIState:V,onFetchMissingReceiptsList:O,missingReceipts:at,receiptUploadEndpoint:l,authParams:i,selectedPeriod:It,onMissingReceiptsRowClick:v,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,onUploadReceiptAttachment:k});case"month_end_insights":if(ot!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(ot.fetchState==="Not-Started"||ot.fetchState==="In-Progress"||ot.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||ot.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Qs,{fetchState:"In-Progress"});{const ie={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ot.companyName,url:window.location.href},{url:xe,...Ee}=ie,Ve={...Ee};return t.jsx(qp,{children:t.jsx(Sh,{allThreadsSectionOpen:j,customerRequestData:w,companyId:r,enableZeniGPTFeature:x,filterMetaData:Ve,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:F,isZeniUser:C.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ot,newThreadMetadata:ie,onClickCustomerRequest:ve,onCloseAllThreadsSection:Q,onCloseFileAttachmentSnackBar:we,onOpenFileAttachmentSnackBar:re,onRemoveFileAttachment:E,onUpdateFileAttachment:P,previewMode:f,previewMonthEndReport:G,saveMonthEndReport:ae,onEditClick:_,sendMonthEndReport:Se})})}}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(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(zd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:S,onReloadPage:ee,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Ge,setCurrentFooterFormId:y,fetchFluxViewOnScroll:Ne,onFetchFluxViewList:Ue,updateSectionCollapseStatus:Te,onFetchReimbursementView:ye,redirectToVendorDetailPage:ue});case"reconciliation":return t.jsx(vd,{onReconListPageScroll:je,onReloadReconciliationListPage:D,currentFooterFormId:n,reconciliation:on,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:nt,setOpenDrawerClicked:st,setCurrentFooterFormId:y,onReconTabColumnSortConfigChanged:N,onUpdateReconcileTabLocalData:K,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Bt,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:ne,onAddStatementClick:Le});default:return t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle})}};function Kp(e){const n=ke(),{currentSelectedView:d}=e.expenseAutomationViewSelector,c=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Wp,{windowSize:n,style:{...h===!0?{paddingLeft:Di.subSectionContainerLeftRightPadding.value(n),paddingRight:Di.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Jp,{...e})})}const Gp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Yp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Zp=a.div`
|
|
1516
|
+
`,Gp=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,authParams:i,receiptUploadEndpoint:l,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:j,loggedInUser:C,isCOTEnabled:I,setCurrentFooterFormId:y,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:L,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:k,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,onReconTabColumnSortConfigChanged:N,onReloadReconciliationListPage:D,onUpdateReconcileTabLocalData:K,onUpdateMissingReceiptsUIState:V,onFetchTransactionCategorizationList:H,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:ye,onPostJESchedule:U,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:W,improveMonthEndInsightsUsingZeniGPTClick:M,onRemoveFileAttachment:E,onUpdateFileAttachment:P,onCloseAllThreadsSection:Q,onEditMonthEndInsightsClick:_,previewMonthEndReport:G,saveMonthEndReport:re,onOpenFileAttachmentSnackBar:ie,onCloseFileAttachmentSnackBar:xe,onClickCustomerRequest:ve,sendMonthEndReport:Se,markAsReview:S,onReloadPage:ee,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionCollapseStatus:Te,onFetchReimbursementView:Ce,redirectToVendorDetailPage:ue,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Ge,fetchFluxViewOnScroll:Ne,onFetchFluxViewList:Ue,setIsJeAccountSettingsOpened:pe,onReviewClicked:nt,setOpenDrawerClicked:st,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:ne,onReconListPageScroll:je,onAddStatementClick:Le}=e,{currentSelectedView:Ae,missingReceipts:at,transactionView:ze,selectedPeriod:It,monthEndInsights:ot,selectedTransactionCategorizationTab:Wt,reconciliation:on}=p;switch(Ae){case"transaction_categorization":return ze.fetchState==="Completed"&&ze.transactionLocalData.length===0?t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(Up,{setCurrentFooterFormId:y,selectedPeriod:It,selectedTab:Wt,sectionId:Vt,transactionView:ze,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,onFetchTransactionCategorizationList:H,onTransactionCategorizationRowClick:L,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:W,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(cu,{setIsJeAccountSettingsOpened:pe,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:y,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:ye,onPostJESchedule:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return at.fetchState==="Completed"&&at.transactions.length===0?t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(Yu,{onUpdateMissingReceiptsUIState:V,onFetchMissingReceiptsList:O,missingReceipts:at,receiptUploadEndpoint:l,authParams:i,selectedPeriod:It,onMissingReceiptsRowClick:v,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,onUploadReceiptAttachment:k});case"month_end_insights":if(ot!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(ot.fetchState==="Not-Started"||ot.fetchState==="In-Progress"||ot.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||ot.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Qs,{fetchState:"In-Progress"});{const se={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ot.companyName,url:window.location.href},{url:fe,...Ee}=se,Ve={...Ee};return t.jsx(Kp,{children:t.jsx(jh,{allThreadsSectionOpen:j,customerRequestData:w,companyId:r,enableZeniGPTFeature:x,filterMetaData:Ve,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:M,isZeniUser:C.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ot,newThreadMetadata:se,onClickCustomerRequest:ve,onCloseAllThreadsSection:Q,onCloseFileAttachmentSnackBar:xe,onOpenFileAttachmentSnackBar:ie,onRemoveFileAttachment:E,onUpdateFileAttachment:P,previewMode:f,previewMonthEndReport:G,saveMonthEndReport:re,onEditClick:_,sendMonthEndReport:Se})})}}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(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle}):t.jsx(Pd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:S,onReloadPage:ee,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Ge,setCurrentFooterFormId:y,fetchFluxViewOnScroll:Ne,onFetchFluxViewList:Ue,updateSectionCollapseStatus:Te,onFetchReimbursementView:Ce,redirectToVendorDetailPage:ue});case"reconciliation":return t.jsx(Sd,{onReconListPageScroll:je,onReloadReconciliationListPage:D,currentFooterFormId:n,reconciliation:on,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:nt,setOpenDrawerClicked:st,setCurrentFooterFormId:y,onReconTabColumnSortConfigChanged:N,onUpdateReconcileTabLocalData:K,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:ne,onAddStatementClick:Le});default:return t.jsx(bt,{tab:Ae,title:He(Ae).allDoneText.title,subTitle:He(Ae).allDoneText.subTitle})}};function Yp(e){const n=ke(),{currentSelectedView:d}=e.expenseAutomationViewSelector,c=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Jp,{windowSize:n,style:{...h===!0?{paddingLeft:Di.subSectionContainerLeftRightPadding.value(n),paddingRight:Di.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Gp,{...e})})}const Zp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Xp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Qp=a.div`
|
|
1517
1517
|
width: 100%;
|
|
1518
1518
|
height: 100vh;
|
|
1519
1519
|
display: flex;
|
|
1520
1520
|
flex-direction: column;
|
|
1521
1521
|
background: ${e=>e.theme.colors.grey4};
|
|
1522
1522
|
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
1523
|
-
`,
|
|
1523
|
+
`,em=a.div`
|
|
1524
1524
|
height: 100vh;
|
|
1525
1525
|
|
|
1526
1526
|
display: flex;
|
|
@@ -1538,18 +1538,18 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1538
1538
|
width: ${o.sp3};
|
|
1539
1539
|
cursor: pointer;
|
|
1540
1540
|
color: inherit;
|
|
1541
|
-
`,
|
|
1541
|
+
`,Fi=a(Zp)`
|
|
1542
1542
|
height: ${o.sp3};
|
|
1543
1543
|
width: ${o.sp3};
|
|
1544
1544
|
cursor: pointer;
|
|
1545
1545
|
color: inherit;
|
|
1546
|
-
`,{common:{footer:Oe,texts:{maxLimitReached:Qp,confirmAction:em},headers:tm,create:nm,strings:rn,texts:nn,cancel:om,confirm:im,monthsByIndex:sm},dateFormat:{visual:{MMMDCommaYYYYformat:Mi}},expenseAutomation:ln}=Ie.getLocalizedStrings(),Pm=e=>{const{expenseAutomationViewSelector:n,isDisabled:d,isRealtimeInsightsFeatureEnabled:c,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:i,onReconTabUpdate:l,onUpdateStep:r,onSearchTextChanged:m,onRefresh:u,onClose:x,onBack:f,resetTransactionCategorizationLocalData:w,updateOperatingExpensesIdsForReview:j,clearJeScheduleLocalData:C,onSaveReconciliation:I}=e,{currentSelectedView:y,allSteps:$,missingReceipts:R,jeSchedules:L,fluxAnalysis:O,monthEndInsights:v,transactionView:k,selectedTransactionCategorizationTab:A,reconciliation:T,selectedPeriod:N}=n,[D,K]=s.useState("expenseAutomationPage"),[V,H]=s.useState(()=>{}),[J,Y]=s.useState(!1),B=ke(),oe=!!e.loggedInUser.userEmail?.includes("zeni.ai"),fe=oe?_i:Ni,{openThread:U,setOpenThread:he}=s.useContext(fe),[ge,b]=s.useState(!1),[z,W]=s.useState(!1),F=$.find(ne=>ne.step===y),{nextStep:E,previousStep:P}=lm($,y),{uiState:{searchString:Q,pageToken:_},totalCountByTab:G,transactions:ae,fetchStateByTransactionTabs:re,transactionLocalData:we}=k,{selectedReconAccount:ve,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Se}}}}=T;let S="Not-Started",ee="complete";switch(y){case"missing_receipts":S=R.refreshStatus.fetchState,ee=R.completionStatus;break;case"je_schedules":S=L.refreshStatus.fetchState,ee=L.completionStatus;break;case"month_end_insights":v!=null&&(S=v?.fetchState);break;case"flux_analysis":S=O.refreshStatus.fetchState,ee=O.completionStatus;break;case"transaction_categorization":S=k.refreshStatus.fetchState,ee=k.completionStatus;break;case"reconciliation":ve==null?(S=T.refreshStatus.fetchState,ee=T.completionStatus):(S=T.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",ee=T.completionStatus)}const $e=()=>{V()},{saveStatus:be,selectedCheckBoxTransactionIds:Te}=k,ye=()=>{const ne=Es(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),je=q.dateNow(),{month:Le,year:Ae}=N,at=q.dateNow().set("month",Le-1).set("year",Ae).endOf("month");switch(D){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ne===!0?Oe.markAsReviewed:nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(n.fluxAnalysis.reviewOperatingExpensesIds.length,xs,B,nn.vendor,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{j([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:be.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(Te.length,q.MAX_SELECTION_LIMIT,B,nn.transaction,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w(A,ae.map(ze=>ze.id),N,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(we,A),h,_)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.next,style:{justifyContent:"space-evenly"},isDisabled:d||F?.isNextDisabled,suffixIcon:t.jsx(Oi,{}),onClick:()=>{r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Bi,{}),onClick:()=>{r(P.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Oe.reconcile,backBtnLabel:Oe.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(T.reconciliationTabsState.balances.variance.amount===0&&je.isAfter(at)),isLoading:T.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:eo(Se.length,1/0,B,nn.transaction,y),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:T.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Oe.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Oe.save,backBtnLabel:Oe.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,isLoading:L.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>$e(),label:Oe.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const ze=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,It=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,ot=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Wt=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||It),on=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",ie=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",xe=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||F?.isNextDisabled===!1),Ee=E.step==="month_end_insights"&&(It||y==="flux_analysis")?!xe:F?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Wt===!0?rm(n.selectedPeriod.month):Oe.next,style:{justifyContent:"space-evenly"},isDisabled:Ee,suffixIcon:t.jsx(Oi,{}),onClick:()=>{on?i("autoCategorized"):ze?l("reconcile"):r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Bi,{}),onClick:()=>{ie?i("review"):ot?l("review"):ze?f():r(P.step)}}}}}},ue=()=>{switch(D){case"expenseAutomationFluxPage":return{confirmAction:()=>{b(!1),j([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{b(!1),w(A,ae.map(ne=>ne.id),N,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(we,A),h,_),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{b(!1),C(),x()}};default:return{confirmAction:()=>{b(!1)},confirmationDescription:rn.empty}}},Ke=()=>{D==="expenseAutomationFluxPage"||D==="expenseAutomationJESchedulePage"||D==="expenseAutomationTransactionsPage"?b(!0):x()},{primaryBtn:Ge,cancelBtn:Ne,leftSideComponent:Ue}=ye(),{confirmAction:pe}=ue(),nt=ne=>{if(y==="transaction_categorization"&&(ne==="autoCategorized"||ne==="review"))return{hideCountInTab:G[ne]>ln.common.numbers.maximumCount,count:G[ne],isFetching:re[ne].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:je}=n,{selectedAccountId:Le}=je;return Le==null?{count:0,isFetching:!1}:ne==="review"?{count:je.accountReconciliationsByAccountID[Le]?.accountReconEntity?.transactionsToReview.length,isFetching:je.accountReconciliationsByAccountID[Le]?.transactionFetchState.fetchState==="In-Progress"}:{count:je.accountReconciliationsByAccountID[Le]?.accountReconEntity?.transactionsToReconcile.length,isFetching:je.accountReconciliationsByAccountID[Le]?.transactionFetchState.fetchState==="In-Progress"}}},st=y==="reconciliation"&&T.selectedAccountId!=null&&T.selectedReconAccount!=null,{month:ct,year:Ot}=N,jt=q.dateNow().set("month",ct-1).set("year",Ot),Bt=jt.startOf("month").format(Mi),kt=jt.endOf("month").format(Mi),le=`${Bt} ${rn.hyphen} ${kt}`;return t.jsxs(Zp,{children:[ge?t.jsx(Us,{containerStyle:{width:356},titleComponent:t.jsx(mm,{children:em}),primaryButtonText:im,secondaryButtonText:om,proceedButtonVariant:"danger",action:{onOkClick:()=>{pe()},onCancelClick:()=>b(!1)},descriptionComponent:t.jsx(gm,{children:ln.confirmationDescription})}):null,t.jsxs(Xp,{children:[t.jsx(_r,{onBack:f,navBarCustomElement:y==="reconciliation"&&T.selectedAccountId!=null?t.jsx(am,{reconciliation:T}):void 0,onReconTabUpdate:l,currentRecontab:T.selectedTab,reconcileDetailPageFetchState:T.selectedAccountId!=null?T.accountReconciliationsByAccountID[T.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:st?T.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:He(y,G.autoCategorized,st?T.selectedAccountId:void 0,st?T.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,st?le:void 0),searchText:Q,currentTab:A,getTabCountAndFetchState:nt,completionStatus:ee,forceShowSubtitle:J===!0||y==="je_schedules"&&(L.fetchState==="In-Progress"||L.accountSettingsView.fetchState==="In-Progress"),refreshStatus:S,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??rn.empty,isZeniUser:oe,onAllThreadsClick:()=>{U!=null&&he(null),W(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:Ke}),t.jsx(Kp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:Y,setResetJeAccountSettingsForm:H,allThreadsSectionOpen:z,setCurrentFooterFormId:K,currentFooterFormId:D,onCloseAllThreadsSection:()=>W(!1)}),t.jsx(_e,{controller:y!=="month_end_insights",children:t.jsx(Vi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:cm(D),primaryBtn:Ge,leftSideComponent:Ue,cancelBtn:Ne,separatorStyle:{marginRight:o.sp4}})})]})]})},am=({reconciliation:e})=>{const n=vt(),{clearedBalance:d,variance:c,variancePercentage:h,deposits:p,payments:i}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:m}=r??{};return t.jsx(xm,{children:t.jsxs(fm,{children:[t.jsxs(to,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(no,{children:t.jsx(ym,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Je("0,0.00",l)}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(to,{children:[t.jsx(no,{children:t.jsx(wm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Je("0,0.00",d)}),t.jsxs(vm,{children:[t.jsx(io,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs(Sm,{children:[t.jsxs(Fi,{children:[t.jsxs(zi,{children:[i.count," ",nn.payments]}),t.jsx(Pi,{children:Je("0,0.[00]",i.totalAmount)})]}),t.jsxs(Fi,{children:[t.jsxs(zi,{children:[p.count," ",nn.deposits]}),t.jsx(Pi,{children:Je("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(bm,{})})]})]})})]}),t.jsxs(to,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(no,{children:t.jsx(Cm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(so,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Je("0,0.00",c)}),h!=null&&c.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.variance})]})})]})]})})},eo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(dm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(um,{multiDigit:e>=5,children:e}),t.jsx(hm,{children:i}),e===n?t.jsx(pm,{children:`(${Qp})`}):null]}):null},rm=e=>{const n=sm[e];return`${nm}${rn.space}${n}${rn.space}${tm.insights}`};function lm(e,n){const d=e.findIndex(l=>l.step===n);if(d===-1)throw new Error("currentStep not found in allSteps array");const c=(d+1)%e.length,h=(d-1+e.length)%e.length,p=e[c],i=e[h];return{nextStep:p,previousStep:i}}const cm=e=>`${e}_form`,dm=a.div`
|
|
1546
|
+
`,{common:{footer:Oe,texts:{maxLimitReached:tm,confirmAction:nm},headers:om,create:im,strings:rn,texts:nn,cancel:sm,confirm:am,monthsByIndex:rm},dateFormat:{visual:{MMMDCommaYYYYformat:Bi}},expenseAutomation:ln}=Ie.getLocalizedStrings(),Nm=e=>{const{expenseAutomationViewSelector:n,isDisabled:d,isRealtimeInsightsFeatureEnabled:c,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:i,onReconTabUpdate:l,onUpdateStep:r,onSearchTextChanged:m,onRefresh:u,onClose:x,onBack:f,resetTransactionCategorizationLocalData:w,updateOperatingExpensesIdsForReview:j,clearJeScheduleLocalData:C,onSaveReconciliation:I}=e,{currentSelectedView:y,allSteps:$,missingReceipts:R,jeSchedules:L,fluxAnalysis:O,monthEndInsights:v,transactionView:k,selectedTransactionCategorizationTab:A,reconciliation:T,selectedPeriod:N}=n,[D,K]=s.useState("expenseAutomationPage"),[V,H]=s.useState(()=>{}),[J,Y]=s.useState(!1),F=ke(),oe=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ye=oe?_i:Ni,{openThread:U,setOpenThread:he}=s.useContext(ye),[ge,b]=s.useState(!1),[z,W]=s.useState(!1),M=$.find(ne=>ne.step===y),{nextStep:E,previousStep:P}=dm($,y),{uiState:{searchString:Q,pageToken:_},totalCountByTab:G,transactions:re,fetchStateByTransactionTabs:ie,transactionLocalData:xe}=k,{selectedReconAccount:ve,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Se}}}}=T;let S="Not-Started",ee="complete";switch(y){case"missing_receipts":S=R.refreshStatus.fetchState,ee=R.completionStatus;break;case"je_schedules":S=L.refreshStatus.fetchState,ee=L.completionStatus;break;case"month_end_insights":v!=null&&(S=v?.fetchState);break;case"flux_analysis":S=O.refreshStatus.fetchState,ee=O.completionStatus;break;case"transaction_categorization":S=k.refreshStatus.fetchState,ee=k.completionStatus;break;case"reconciliation":ve==null?(S=T.refreshStatus.fetchState,ee=T.completionStatus):(S=T.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",ee=T.completionStatus)}const $e=()=>{V()},{saveStatus:be,selectedCheckBoxTransactionIds:Te}=k,Ce=()=>{const ne=Es(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),je=q.dateNow(),{month:Le,year:Ae}=N,at=q.dateNow().set("month",Le-1).set("year",Ae).endOf("month");switch(D){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ne===!0?Oe.markAsReviewed:nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(n.fluxAnalysis.reviewOperatingExpensesIds.length,xs,F,nn.vendor,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{j([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:be.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(Te.length,q.MAX_SELECTION_LIMIT,F,nn.transaction,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w(A,re.map(ze=>ze.id),N,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(xe,A),h,_)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.next,style:{justifyContent:"space-evenly"},isDisabled:d||M?.isNextDisabled,suffixIcon:t.jsx(Oi,{}),onClick:()=>{r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Fi,{}),onClick:()=>{r(P.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Oe.reconcile,backBtnLabel:Oe.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(T.reconciliationTabsState.balances.variance.amount===0&&je.isAfter(at)),isLoading:T.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:eo(Se.length,1/0,F,nn.transaction,y),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:T.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Oe.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Oe.save,backBtnLabel:Oe.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,isLoading:L.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>$e(),label:Oe.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const ze=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,It=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,ot=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Wt=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||It),on=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",se=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",fe=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||M?.isNextDisabled===!1),Ee=E.step==="month_end_insights"&&(It||y==="flux_analysis")?!fe:M?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Wt===!0?cm(n.selectedPeriod.month):Oe.next,style:{justifyContent:"space-evenly"},isDisabled:Ee,suffixIcon:t.jsx(Oi,{}),onClick:()=>{on?i("autoCategorized"):ze?l("reconcile"):r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Fi,{}),onClick:()=>{se?i("review"):ot?l("review"):ze?f():r(P.step)}}}}}},ue=()=>{switch(D){case"expenseAutomationFluxPage":return{confirmAction:()=>{b(!1),j([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{b(!1),w(A,re.map(ne=>ne.id),N,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(xe,A),h,_),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{b(!1),C(),x()}};default:return{confirmAction:()=>{b(!1)},confirmationDescription:rn.empty}}},Ke=()=>{D==="expenseAutomationFluxPage"||D==="expenseAutomationJESchedulePage"||D==="expenseAutomationTransactionsPage"?b(!0):x()},{primaryBtn:Ge,cancelBtn:Ne,leftSideComponent:Ue}=Ce(),{confirmAction:pe}=ue(),nt=ne=>{if(y==="transaction_categorization"&&(ne==="autoCategorized"||ne==="review"))return{hideCountInTab:G[ne]>ln.common.numbers.maximumCount,count:G[ne],isFetching:ie[ne].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:je}=n,{selectedAccountId:Le}=je;return Le==null?{count:0,isFetching:!1}:ne==="review"?{count:je.accountReconciliationsByAccountID[Le]?.accountReconEntity?.transactionsToReview.length,isFetching:je.accountReconciliationsByAccountID[Le]?.transactionFetchState.fetchState==="In-Progress"}:{count:je.accountReconciliationsByAccountID[Le]?.accountReconEntity?.transactionsToReconcile.length,isFetching:je.accountReconciliationsByAccountID[Le]?.transactionFetchState.fetchState==="In-Progress"}}},st=y==="reconciliation"&&T.selectedAccountId!=null&&T.selectedReconAccount!=null,{month:ct,year:Ot}=N,jt=q.dateNow().set("month",ct-1).set("year",Ot),Ft=jt.startOf("month").format(Bi),kt=jt.endOf("month").format(Bi),le=`${Ft} ${rn.hyphen} ${kt}`;return t.jsxs(Qp,{children:[ge?t.jsx(Us,{containerStyle:{width:356},titleComponent:t.jsx(xm,{children:nm}),primaryButtonText:am,secondaryButtonText:sm,proceedButtonVariant:"danger",action:{onOkClick:()=>{pe()},onCancelClick:()=>b(!1)},descriptionComponent:t.jsx(fm,{children:ln.confirmationDescription})}):null,t.jsxs(em,{children:[t.jsx(Nr,{onBack:f,navBarCustomElement:y==="reconciliation"&&T.selectedAccountId!=null?t.jsx(lm,{reconciliation:T}):void 0,onReconTabUpdate:l,currentRecontab:T.selectedTab,reconcileDetailPageFetchState:T.selectedAccountId!=null?T.accountReconciliationsByAccountID[T.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:st?T.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:He(y,G.autoCategorized,st?T.selectedAccountId:void 0,st?T.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,st?le:void 0),searchText:Q,currentTab:A,getTabCountAndFetchState:nt,completionStatus:ee,forceShowSubtitle:J===!0||y==="je_schedules"&&(L.fetchState==="In-Progress"||L.accountSettingsView.fetchState==="In-Progress"),refreshStatus:S,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??rn.empty,isZeniUser:oe,onAllThreadsClick:()=>{U!=null&&he(null),W(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:Ke}),t.jsx(Yp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:Y,setResetJeAccountSettingsForm:H,allThreadsSectionOpen:z,setCurrentFooterFormId:K,currentFooterFormId:D,onCloseAllThreadsSection:()=>W(!1)}),t.jsx(_e,{controller:y!=="month_end_insights",children:t.jsx(Vi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:um(D),primaryBtn:Ge,leftSideComponent:Ue,cancelBtn:Ne,separatorStyle:{marginRight:o.sp4}})})]})]})},lm=({reconciliation:e})=>{const n=vt(),{clearedBalance:d,variance:c,variancePercentage:h,deposits:p,payments:i}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:m}=r??{};return t.jsx(ym,{children:t.jsxs(Cm,{children:[t.jsxs(to,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(no,{children:t.jsx(wm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Je("0,0.00",l)}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(to,{children:[t.jsx(no,{children:t.jsx(vm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Je("0,0.00",d)}),t.jsxs(jm,{children:[t.jsx(io,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs(km,{children:[t.jsxs(Mi,{children:[t.jsxs(zi,{children:[i.count," ",nn.payments]}),t.jsx(Pi,{children:Je("0,0.[00]",i.totalAmount)})]}),t.jsxs(Mi,{children:[t.jsxs(zi,{children:[p.count," ",nn.deposits]}),t.jsx(Pi,{children:Je("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(Sm,{})})]})]})})]}),t.jsxs(to,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(no,{children:t.jsx(bm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(so,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Je("0,0.00",c)}),h!=null&&c.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.variance})]})})]})]})})},eo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(hm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(pm,{multiDigit:e>=5,children:e}),t.jsx(mm,{children:i}),e===n?t.jsx(gm,{children:`(${tm})`}):null]}):null},cm=e=>{const n=rm[e];return`${im}${rn.space}${n}${rn.space}${om.insights}`};function dm(e,n){const d=e.findIndex(l=>l.step===n);if(d===-1)throw new Error("currentStep not found in allSteps array");const c=(d+1)%e.length,h=(d-1+e.length)%e.length,p=e[c],i=e[h];return{nextStep:p,previousStep:i}}const um=e=>`${e}_form`,hm=a.div`
|
|
1547
1547
|
display: flex;
|
|
1548
1548
|
justify-content: flex-start;
|
|
1549
1549
|
align-items: center;
|
|
1550
1550
|
gap: ${o.sp2};
|
|
1551
1551
|
margin-left: ${e=>e.currentView==="flux_analysis"?"36px":o.sp8};
|
|
1552
|
-
`,
|
|
1552
|
+
`,pm=a(gt)`
|
|
1553
1553
|
height: 18px;
|
|
1554
1554
|
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
1555
1555
|
padding: ${o.sp0} 6px;
|
|
@@ -1558,26 +1558,26 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1558
1558
|
display: flex;
|
|
1559
1559
|
justify-content: center;
|
|
1560
1560
|
align-items: center;
|
|
1561
|
-
`,
|
|
1561
|
+
`,mm=a(Me)`
|
|
1562
1562
|
color: ${e=>e.theme.colors.primary};
|
|
1563
|
-
`,
|
|
1563
|
+
`,gm=a(St)`
|
|
1564
1564
|
color: ${Qe.important};
|
|
1565
|
-
`,
|
|
1565
|
+
`,xm=a(Hs)`
|
|
1566
1566
|
margin-top: ${o.sp5};
|
|
1567
1567
|
padding-left: ${o.sp8};
|
|
1568
1568
|
padding-right: ${o.sp8};
|
|
1569
1569
|
color: ${e=>e.theme.colors.primary};
|
|
1570
1570
|
word-break: break-word;
|
|
1571
|
-
`,
|
|
1571
|
+
`,fm=a(Ws)`
|
|
1572
1572
|
color: ${e=>e.theme.colors.primary};
|
|
1573
1573
|
margin-top: ${o.sp2};
|
|
1574
1574
|
margin-bottom: ${o.sp2};
|
|
1575
|
-
`,
|
|
1575
|
+
`,ym=a.div`
|
|
1576
1576
|
display: flex;
|
|
1577
1577
|
justify-content: center;
|
|
1578
1578
|
align-items: center;
|
|
1579
1579
|
padding: ${o.sp3} ${o.sp0};
|
|
1580
|
-
`,
|
|
1580
|
+
`,Cm=a.div`
|
|
1581
1581
|
width: 100%;
|
|
1582
1582
|
display: flex;
|
|
1583
1583
|
justify-content: center;
|
|
@@ -1604,34 +1604,34 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1604
1604
|
`,so=a(Ui)`
|
|
1605
1605
|
min-width: 180px;
|
|
1606
1606
|
color: ${e=>e.theme.colors.primary};
|
|
1607
|
-
`,
|
|
1607
|
+
`,wm=a(Zs)`
|
|
1608
1608
|
color: ${e=>e.theme.colors.primary};
|
|
1609
1609
|
width: ${o.sp4};
|
|
1610
1610
|
height: ${o.sp4};
|
|
1611
|
-
`,
|
|
1611
|
+
`,bm=a(Xs)`
|
|
1612
1612
|
color: ${e=>e.theme.colors.primary};
|
|
1613
1613
|
width: ${o.sp4};
|
|
1614
1614
|
height: ${o.sp4};
|
|
1615
|
-
`,
|
|
1615
|
+
`,vm=a(Xp)`
|
|
1616
1616
|
color: ${e=>e.theme.colors.primary};
|
|
1617
1617
|
width: ${o.sp4};
|
|
1618
1618
|
height: ${o.sp4};
|
|
1619
|
-
`,
|
|
1619
|
+
`,Sm=a(Wi)`
|
|
1620
1620
|
width: ${o.sp3};
|
|
1621
1621
|
height: ${o.sp3};
|
|
1622
1622
|
color: ${e=>e.theme.colors.hero};
|
|
1623
1623
|
:hover {
|
|
1624
1624
|
color: ${e=>e.theme.colors.primary};
|
|
1625
1625
|
}
|
|
1626
|
-
`,
|
|
1626
|
+
`,jm=a.div`
|
|
1627
1627
|
display: flex;
|
|
1628
1628
|
align-items: center;
|
|
1629
1629
|
gap: ${o.sp1};
|
|
1630
|
-
`,
|
|
1630
|
+
`,km=a.div`
|
|
1631
1631
|
background-color: ${Qe.overlayDark};
|
|
1632
1632
|
padding: 2px ${o.sp2};
|
|
1633
1633
|
border-radius: ${o.sp1};
|
|
1634
|
-
`,
|
|
1634
|
+
`,Mi=a.div`
|
|
1635
1635
|
display: flex;
|
|
1636
1636
|
justify-content: space-between;
|
|
1637
1637
|
gap: ${o.sp2};
|
|
@@ -1647,4 +1647,4 @@ import{o,br as Hs,e as ke,fP as _i,fQ as Ni,l as q,R as Ie,j as t,bV as Us,_ as
|
|
|
1647
1647
|
flex-direction: column;
|
|
1648
1648
|
min-width: 180px;
|
|
1649
1649
|
gap: ${o.sp1};
|
|
1650
|
-
`;export{
|
|
1650
|
+
`;export{xm as ConfirmationPopUpTitle,Nm as default,dm as getNextAndPreviousSteps,um as uniqueFormName};
|