@zeniai/web-cockpit-ui 1.14.71-qa → 1.14.72-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-B40ur5bp-OJtx8DT6.js → ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js} +1 -1
- package/dist/assets/{AIPerformancePage-3KzgwQEg-Cp11Tixi.js → AIPerformancePage-DtNLjoUW-C8WssBlV.js} +1 -1
- package/dist/assets/{AccountInfoPage-vLCfulj4-D7w0AEVb.js → AccountInfoPage-D-E_-WpE-D3xkesKo.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-C0kb83_4-m4YXdHL2.js → AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DqWq-DtD-thx3GkHT.js → AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C1-aZ2IL-DONmrA5N.js → AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js} +1 -1
- package/dist/assets/{AccountRow-C9q6i3az-uqz3oGJB.js → AccountRow-Be3LIHO--AtWCxnkE.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CcKxTC_P-D6qQ3DxH.js → AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CgFUm8yP-CtV0qBX3.js → AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js} +1 -1
- package/dist/assets/{AddToWalletPage-CcGENV5h-vKW0fqwA.js → AddToWalletPage-nSq-9dQy-DNXeo8yV.js} +1 -1
- package/dist/assets/{AgingReportsPage-B24eKpNK-UanQvgSv.js → AgingReportsPage-L0zQxwCf-BGxthXxn.js} +1 -1
- package/dist/assets/{AllUserItems-D_8QwwoX-BslEB_aj.js → AllUserItems-CvwaOEhu-4FgiUHmj.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CkjF2eck-Cjia9b4P.js → ApAgingDetailPage-B_78aSEv-BIkW3as9.js} +1 -1
- package/dist/assets/{AppBasePage-BKLe2VqM-jaxKvGaf.js → AppBasePage-Br0WbQRY-C5P2SI_a.js} +1 -1
- package/dist/assets/{AppDrawerContent-amGpNlZr-mjjA07Qy.js → AppDrawerContent-BZODvVvi-DO9-i0u3.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-D42YDnFU-CxgVtyF0.js → ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js} +1 -1
- package/dist/assets/{ArAgingChart-qZaIsWtq-BgxDkSAy.js → ArAgingChart-BezVy1Sm-UplSlTlX.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CHCdWveg--cpOx4o0.js → ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js} +1 -1
- package/dist/assets/{AttachmentView-DZCtCZK_-DUoYfXhu.js → AttachmentView-DhluaeAV-DnrJUkr5.js} +1 -1
- package/dist/assets/{BankAccountSection-BroWfNc_-BZsa7G4H.js → BankAccountSection-GDEQdiGL-CuwfGvXF.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-lNbSkw5--DWU9HuLt.js → BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BG5FAR53-DUZDZ0TZ.js → BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js} +1 -1
- package/dist/assets/{BillDetailPage-BNlsd0AF-TTFyOGGT.js → BillDetailPage-CDAh8Jtl-0qBbZ__0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-Br6UCYrF-DTgVJd9l.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DL0aveSN-C6oD62EC.js → BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DLMTqP9B-967xJFlF.js → BillPayPromoPage-B2YcxWc9-CwLnyiow.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-7Z5WhvCj-CIgzKegf.js → BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js} +1 -1
- package/dist/assets/{BillingSettingsPage-HsRQLM6k-8FVnslnG.js → BillingSettingsPage-BRsKYzT5-gKM6YCmc.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CZEdLC67-wkDNcY54.js → BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js} +1 -1
- package/dist/assets/{BoxItem-CvQS_sLm-BkWNdqzg.js → BoxItem-COIjjFrn-DqU4ZyNU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BQ3ZYVyp-CSp1c4zw.js → BusinessVerificationPage-Nw_fedst-D0V3bhmc.js} +1 -1
- package/dist/assets/{CardNumberSubText-DVfY641B-D02mvfUY.js → CardNumberSubText-CmhH95Ff-CLBGKyAX.js} +1 -1
- package/dist/assets/{CashbackDetailPage-Bq-wjfJM-BY7X_IKu.js → CashbackDetailPage-BPLjvuA3-362WFi2j.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BBksBgc_-BnVViHgt.js → ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js} +1 -1
- package/dist/assets/{ChargeCardListPage-D8LM_cZf-CuxoZaNt.js → ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Cstar82M-C4nVRMaW.js → ChargeCardListTable-BGWV4zJl-fPTlw7hA.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DMAUyVe7-ayNZ5YOR.js → ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-xuPp_o4--DddSRpRr.js → ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BtEC80N4-Clxol32B.js → ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CHhHodZN-Dxh33JDX.js → ChargeCardUtils-BRgkrCTs-DoVoCmwL.js} +1 -1
- package/dist/assets/{ChaseOverlay-laPjyJU7-kkgNaiJi.js → ChaseOverlay-BC_4vwtb-ZJ37WP7g.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cg3R57ad-DLf31CUD.js → CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BTquJgcd-Bnhii_71.js → CollapsableReportTable-7iAngywY-CxWB4sRz.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BpiZ5rDk-C5NsYHrL.js → CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BV9mPVRb-B7CtEnYQ.js → CompanyPassportCard-D3F01eJL-CYg3XwZh.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D5tRbHXG-CchPpVqK.js → CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js} +1 -1
- package/dist/assets/{CompleteProfile-CARUXqXR-deITw6Bv.js → CompleteProfile-D5e9TQgy-ppOK1lFi.js} +1 -1
- package/dist/assets/{ConfettiBurst-CPnRASxV-BdtpNDa2.js → ConfettiBurst--HIHB7Os-CFkZhGnX.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BnMzZWIJ-CJ7MJ526.js → CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-ZGFxbf6p-CV2Pogbc.js → CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CfIXTZi1-hVEJtGD4.js → CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js} +1 -1
- package/dist/assets/{CurrencySelectField-D5qstOV_-BVz9UXR8.js → CurrencySelectField-nhg_dhDw-Ct_sJsLw.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-EoS5UWcr-wdnAtpAS.js → CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CATcejsu-CTY6Netf.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DhXSZZDt-C3Pg5R_d.js → CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Dw4jho3E-BiHkXOEC.js → CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BrcfWdR_-lFFAj0bv.js → CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js} +1 -1
- package/dist/assets/{Dashboard-Dncu8Llu-6KNekDl2.js → Dashboard-D6Ba5oj0-DGZ5Ekyf.js} +1 -1
- package/dist/assets/{DashboardReportPage-Cd2aI286-COtCqVSR.js → DashboardReportPage-DTMbYOWH-CSMllwg6.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Bsd2tllR-DNtS7CFs.js → DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BCvM718U-g0jMhVOF.js → DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BV0C4uw5-BQi1PdJC.js → DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C7YCWnpX-CSJt02Ss.js → DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js} +1 -1
- package/dist/assets/{DownloadOverlay-XFeHlPT1-CaYTjV3q.js → DownloadOverlay-DRcasKoB-BDQCkt6Q.js} +1 -1
- package/dist/assets/{DrawerPage-B5swtpnW-B_H7rRHX.js → DrawerPage-BRD6cE6J-CdG9rNJx.js} +1 -1
- package/dist/assets/{EditPeoplePage-gSBB6VWT-HDNKOGs-.js → EditPeoplePage-Zzo62if7-CQfgpQsa.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-wgieh-cS-DfGbigja.js → EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js} +1 -1
- package/dist/assets/{EntityDetailPage-wDSbBdas-YGMfXKor.js → EntityDetailPage-CzlzOW8n-DjZ6eItY.js} +1 -1
- package/dist/assets/{EntitySummarySection-DUkLpeab-BKxfNIjD.js → EntitySummarySection-BRt1kPDf-BrvMzC_z.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-8Kor6jbw-BYjnzqPR.js → ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BrMLIa8l-3tmUuzHu.js → ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js} +14 -14
- package/dist/assets/{ExpressPayPage-mNQZwQjW-D68Zo2mi.js → ExpressPayPage-DdQiFzDu-ykW984zo.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DBHT9uKl-Ck5gSnnA.js → FeaturePreviewPage-CQN2xThT-D8GcVVCI.js} +1 -1
- package/dist/assets/{FollowStepsSection-CSUuXn2f-CoTI7DnO.js → FollowStepsSection-DdwEVWhG-XjqeMDlz.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-p0vz_C5a-DLeprzDj.js → GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js} +1 -1
- package/dist/assets/{HelpButton-B2amus4B-DGNqE5dq.js → HelpButton-BNMy-6ce-WFq-iELy.js} +1 -1
- package/dist/assets/{InformationCardStack-BJ727KaL-9YB1lO6A.js → InformationCardStack-Cw7c9Pnd-JKEjusS_.js} +1 -1
- package/dist/assets/{InsightsCardStack-DY6RY7Qe-CP2ab3ak.js → InsightsCardStack-CaMZiCnn-D5ut2TNQ.js} +1 -1
- package/dist/assets/{InsightsSection-D-8tYkse-F18tKGgA.js → InsightsSection-JIKb9lz3-CSUvMdaP.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-1rJOamsZ-CjZYkZ53.js → IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Ri6TSG6P-DH-nVwwy.js → InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CjriI8l--CwJSjoLC.js → InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js} +1 -1
- package/dist/assets/{InviteFormPage-BY76duGE-PvOtmGWs.js → InviteFormPage-CrtH0cSG-lBcBfRNC.js} +1 -1
- package/dist/assets/{InvitePageListView-AAJf0dR1-SlBE6ooQ.js → InvitePageListView-DUoopPip-D3WES4Ay.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CyMnjfEI-DkVyQy0k.js → InvitePeoplePage-C3ecL8XJ-D06hBumB.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DNao9DwT-B7AkNap1.js → InvoiceUploadSection-DoR834b4-BezkawDL.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-Bjy6NLc8-DXGdYRGr.js → IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B2k1GZHx-CCwyWcwv.js → LabeledAddressValue-C3R0DSjj-DSFQoK0_.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C6oH2tzZ-Cq8P-6Au.js → LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-D3legl2B-BTYv9UI4.js → LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BVxws_IH-DHa5ei0J.js → LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DwPfHt2N-C-08ZUG5.js → LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BFT3G777-CEr0OMdI.js → LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js} +1 -1
- package/dist/assets/{LabeledText-nWCZBDTc-BoD2dqym.js → LabeledText-BESSkt5Z-DvRhicFs.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B5USvGOt-C7Yiua_H.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CFKa2QEv-DHSbOHFD.js → LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C1nuQ_6i-RZyjC9j5.js → LinkJETransactionPage-_ROjxBMO-DP6JabBY.js} +1 -1
- package/dist/assets/{LockCardPage-s_PD9AzH-zXuRiUvJ.js → LockCardPage-DYfgK11k-CA2sqFlt.js} +1 -1
- package/dist/assets/{LowBalancePopup-C3XwZy2N-BYYQnFrI.js → LowBalancePopup-CZDcHxyW-BHOAXZjC.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CAcRKnmW-DZEZ62--.js → MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BYmO4Xr9-Dxgiovc8.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BfVzS_Di-61u0T-U5.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CAnSgQhj-ld6DjVL6.js → MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-cO3EG-gp-D9WLvwpe.js → MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DgN7ACVL-Cfbx9vEr.js → MailingDetailsSection-9RwlQxVG-C09sdGhg.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-C1bMV1I3-X2HqkS3W.js → MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js} +1 -1
- package/dist/assets/{Menu-C-o9HER2-BsRmDqsM.js → Menu-B6iTf2H7-Cqx4dVPp.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DiJHbt8A-BGs9g2h2.js → MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CAH07oE4-CtNHDhO6.js → MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CWWb3u86-B6iqDz92.js → MyProfileSettingsPage-BRK5nWg2--GwgfIws.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BswkyMmW-C4-XUsw_.js → NavBarWithPicker-CKh_HMfV-U1f60LTo.js} +1 -1
- package/dist/assets/{NavigationArrow-cWkaAVwE-DsXFMUJL.js → NavigationArrow-XZmJpDrE-BSGdgz-m.js} +1 -1
- package/dist/assets/{NavigationDots-DDGYTuFE-CGXjKbul.js → NavigationDots-BxPgEW_p-CnLRJgGA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-VAYeGHLy-Oe1RM0J8.js → NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js} +1 -1
- package/dist/assets/{NoDataChart-DOvXvjb9-C62DpKEP.js → NoDataChart-5E72SElf-Bfyft1Tp.js} +1 -1
- package/dist/assets/{NoDataTable-DRlkLFHY-BFCOnw1N.js → NoDataTable-BwHbkm3l-C4AJlFQY.js} +1 -1
- package/dist/assets/{NotFoundPage-BUQyPFn7-DbMvqqu8.js → NotFoundPage-6udaksBZ-Bdrzyyzv.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-B1KXf_X_-DP8U3DW2.js → NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BoGND2x4-Bic88RIw.js → NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js} +1 -1
- package/dist/assets/{NotificationsPage-CsXXgLel-CPQTRo1J.js → NotificationsPage-C7lSAnUb-wDRHsOkp.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BnJYy01U-CrlrpyBJ.js → OpExByVendorPage-CM0RluUk-BgpW2giu.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-Be3ZT6VA.js → OverlayContainerPage-BKHs_4eI-mLdiagVZ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-o-jbKy2e-D3xznRoV.js → PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-De5SXBpI-B2yyIOr7.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js} +1 -1
- package/dist/assets/{PeoplePage-DQ6Hff1k-uLwrUM_J.js → PeoplePage-CB3T3u_F-DC1PdCPq.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-V0wgI9Ce-BGdFST67.js → PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js} +1 -1
- package/dist/assets/{PortfolioDetails-CD5ZpbUI-DIaOXXZM.js → PortfolioDetails-D4yT8r35-DSk0Sc23.js} +1 -1
- package/dist/assets/{ProductsCarousel-V_jWJEER-BZ1XL5vE.js → ProductsCarousel-CR7_rk0K-DQWJaP-C.js} +1 -1
- package/dist/assets/{PromoBaseCards-BAFdMFqw-BdNHeAp2.js → PromoBaseCards-BAPolzxE-DLtmx-3v.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DKpO649n-WDQVkEde.js → QBOConnectionDialog-D3eazhj7-fJDNmSLU.js} +1 -1
- package/dist/assets/{QBOSetupSection-D0ZCB5UD-CL8yss1h.js → QBOSetupSection-Cjjhm_Ee-CrlXRkit.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DNt15Ut8-DQYu-dha.js → ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Brx7wunO-CIPDsRf5.js → ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DX_Fn31o-DfJecW2t.js → ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CkEv6rCJ-BIEPvL46.js → ReimbursementPromoPage-PshodHUZ-B_XNUegE.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CFO-blEl-B7chmxwD.js → ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-IcycaW-DEjHsX3z.js → ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js} +1 -1
- package/dist/assets/{ReloadCard-DrU5ZC4a-Lhp5dUqC.js → ReloadCard-Dpoxd9nE-B9DlyhD4.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-oB74PECo-DQxfOB1p.js → ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js} +1 -1
- package/dist/assets/{ReportsPage-D0Psj2SZ-zgFbG4pn.js → ReportsPage-C7zirS74-CyyHiNy4.js} +1 -1
- package/dist/assets/{RevenueChart-Bnc2RxbY-j4EsX0dh.js → RevenueChart-CXMBT3cr-DnDEiqPG.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-E4-dpZ3_-ClKM__Az.js → ReviewDetailsPage-ClsyL5-w-_y4o463o.js} +1 -1
- package/dist/assets/{ReviewOverlay-C9hLAPaS-PM6EEh0a.js → ReviewOverlay-C6Kx7Hfm-IahzUsv3.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BdIHsErU-B-2r4mdL.js → RoleWithToolTip-BqI6M0x_-CwUqJeb5.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DCrTdK6_-BxEq00H4.js → ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BNVBIY34-EYxLWipQ.js → ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DeLVkslS-B8uJgnZB.js → ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js} +1 -1
- package/dist/assets/{ScreenRoutes-BakVgeV7.js → ScreenRoutes-en4svsq9.js} +1 -1
- package/dist/assets/{SetUpAccountSection-XaB8Huky-tcqseHew.js → SetUpAccountSection-Bnbi8X23-DL-18RCf.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-Dko6eOr--DXmPvju7.js → SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js} +1 -1
- package/dist/assets/{SignIn-BKZ0UqXu-C2vG3CNA.js → SignIn-BlISBvt5-C9HXqHPg.js} +1 -1
- package/dist/assets/{SignInScreen-DuoQ-AG7.js → SignInScreen-Ba17TSWH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Crlns-YT-Z8oUGYAa.js → SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-YjfDDwP4-s9BLynQx.js → SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js} +1 -1
- package/dist/assets/{SpendManagementSection-D8lfWWWV-8A3HI4sU.js → SpendManagementSection-kucZgC-H-DLgSRXEX.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-C7WofOL3-BnD8nK4r.js → SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js} +1 -1
- package/dist/assets/{StatementItem-CpZ-MDHo-Bsa1fG7j.js → StatementItem-BVIVLdDn-BLcyHqWZ.js} +1 -1
- package/dist/assets/{StatementsPage-BbO8PdHq-RaSk0lam.js → StatementsPage-KnLUSJbm-DvU_Y3UP.js} +1 -1
- package/dist/assets/{StatusSwitcher-DW-Q6MLD-CQ6yqmkl.js → StatusSwitcher-aAizq1mr-D4E7X1zy.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BgmKYyVl-ONNQ80jH.js → SubTabSwitcher-COrYJ6CW-B2hsvJe_.js} +1 -1
- package/dist/assets/{SummaryCard-V7fE0ql0-CCZ-ztn7.js → SummaryCard-Dv0dWKBw-BnK7xgrF.js} +1 -1
- package/dist/assets/{TaskManagementPage-D8UAfCaw-oRWXv4Mv.js → TaskManagementPage-CPLyyK1Y-ena6uodh.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BRY0oixp-BRZx02Tv.js → TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DIg8e-x0-BOMbByl-.js → TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-utawMrzT-GD5K8OvN.js → TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js} +1 -1
- package/dist/assets/{TopExCard-C2AE49xP-BTroc4z6.js → TopExCard-Bam-Q4MV-GCmLzO6i.js} +1 -1
- package/dist/assets/{TopExDetailPage-rA6jQ_FN-ibsri-4Z.js → TopExDetailPage-P0Twt5zZ-BElfoauE.js} +1 -1
- package/dist/assets/{TransactionDetailPage-r-DU5f0M-BlN9CQ9d.js → TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js} +1 -1
- package/dist/assets/{TransactionList-N7P-LryH-5L5rzvfH.js → TransactionList-BzJEbOV9-BQZ8x4Oq.js} +1 -1
- package/dist/assets/{TransactionListBig-cTDebILS-CHWntWvd.js → TransactionListBig-u4SJBZTE-BZvqZwTB.js} +1 -1
- package/dist/assets/{TransactionListPage-DWfOgmyP-wt1pJwN9.js → TransactionListPage-D4GJ6i3l-BXLL3BhX.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-X0hlTlLK-Dlo0cua3.js → TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BGdlNOXt-DGfVtZ6f.js → TransferDrawerPage-GD2I8ptj-B7cXbGdy.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DLqZCVMi-3eqtE7gi.js → TreasuryOverviewPage-DySunaqy-CWB-hp0S.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DbzfXlgw-BhF_LHoC.js → TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js} +1 -1
- package/dist/assets/{TreasurySetupPage-D9GxfZ9F-Ch8vLeAD.js → TreasurySetupPage-53k6ARHC-8YVNt5Wt.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DLi_sZPF-BDf2C9zm.js → TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DT9qtjBD-BHNybC4k.js → TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-Bwmdvxcf-rzFRLhHd.js → TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js} +1 -1
- package/dist/assets/{TrendChart-PEPDz5Rb-ulw833My.js → TrendChart-B_5D-Zud-BUU2-6nI.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D0kwx2QH-CqK3LEg5.js → TrendWithTransactions-mI_El5D1-SbfSjDf-.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B_m-aQN1-CFGQjIFO.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D_I3woOf-Cfk-ZPH4.js → UnitIntegrationPage-XOWqGHla-DR8O2yO4.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BzWXbm7_-BVIHjFIf.js → UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-ZhMUe2XG-CKF1-Bcj.js → Vendor2FAPopup-BfqIHZBb-CksyyTez.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BxSB3e3f-B95MB4r8.js → VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cil4QKpo-BtWOEVPV.js → VendorDetailPage-CEX7xMIN-Djo4PloX.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-t9rrf_8I-D3pp2J90.js → VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CVvvZInI-BQ3nggsu.js → VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CEhcXzDq-CW4TPCld.js → VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BuII-Mam-VYA24CX0.js → VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CcVcyWBe-cyzqDn4o.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DH0mosVk-BanKIGA3.js → VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js} +1 -1
- package/dist/assets/{VerifyDevice-BWzESmW--Bo9U9beo.js → VerifyDevice-C27gEWkZ-C7pLL5Wm.js} +1 -1
- package/dist/assets/{VideoPlayer-DPXISthv-Djj2Xi7E.js → VideoPlayer-ByyqUuhG-DTMNeCaX.js} +1 -1
- package/dist/assets/{VideoPopup-B2pu7j6O-BELaR8lO.js → VideoPopup-DJrQQTPq-DoXO-Vwb.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DQjc5yVp-vrWXb5U2.js → WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CI2TQILk-BtmMqz-k.js → ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DjhscUyw-BOF9J4-k.js → ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BMOxM3Ul-ClZ54EhW.js → ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CoegRWXG-DVC1Dg4U.js → ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-l8SdQK7w-Cwql6ueE.js → ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js} +1 -1
- package/dist/assets/{ZeniCopyright-CrpLjMla-wElaHxTg.js → ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-oZNLHFd5-C8PE-tiN.js → ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js} +1 -1
- package/dist/assets/{analyticsHelper-CXWIyGuU.js → analyticsHelper-CVWZE356.js} +1 -1
- package/dist/assets/{analyticsHelper-ColsUhUK-VYgmVzF7.js → analyticsHelper-or1KkBWk-Plh_6I_p.js} +1 -1
- package/dist/assets/{chartTypes-BFE_S1PL-QRevrAB7.js → chartTypes-DCvOVjlS-BdPIN5WI.js} +1 -1
- package/dist/assets/{commonDimensions-Dq7P0AE6-CHYUckfM.js → commonDimensions-C32v1F7H-CiAEfJl2.js} +1 -1
- package/dist/assets/{detailCommon-DSe7Tzn3-B2YXLrXu.js → detailCommon-CRAGrqoO-Cq9phP1q.js} +1 -1
- package/dist/assets/{downloadPdf-D3hiuG-R-CbvQzAop.js → downloadPdf-D7p3yKmg-CYmmjPHt.js} +1 -1
- package/dist/assets/{index-Dndx7J5m.js → index-sAOH0Fje.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-COnUyXAf-Dpu409lV.js → mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CDE8V8lh-EuEOGVim.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Ljk42Rtu-B3q7PP57.js → mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv95aY-B-DOF2vDOL.js → mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B64chWyJ-BkRVTSHA.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFgAA2si-PHb2zPe7.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BK1XA0gz-Baw5bQLa.js → toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js} +1 -1
- package/dist/assets/{toChartData-D7n7RyVD-B6XNJKRh.js → toChartData-DEW0iT7T-DrkbvIyQ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-tTPJnd8d-BWS_7fHf.js → treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js} +1 -1
- package/dist/assets/{uploadAttachment-By_eR78P-BvqnQwlm.js → uploadAttachment-DVy2pZeJ-X-xSyfvF.js} +1 -1
- package/dist/assets/{uploadReceipts-Dp1dvCjf-DKWW2q1X.js → uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-Bzjew7MV-Jhbohtye.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as Be,aQ as Wi,u as g,cE as Ks,d as vt,bF as Zs,i5 as Ys,aN as qe,c5 as we,y as Q,bz as Gs,aM as z,i3 as Xs,am as Fe,fX as Qs,gY as qi,bA as ea,b_ as Ot,b6 as Ji,ai as St,bP as Ki,h as Qe,k9 as ta,gh as na,an as gt,A as oa,gt as ia,gu as Zi,bs as sa,cy as aa,cg as ra,eT as hn,cd as xo,aa as Wt,bZ as fo,ad as qt,ka as la,kb as ca,kc as da,kd as rn,ke as Yi,kf as Gi,kg as ua,kh as ha,dE as Xi,ki as pa,kj as ma,kk as ga,kl as xa,km as fa,kn as Ro,ko as ya,kp as Ca,kq as wa,kr as ba,ks as va,kt as Qi,ku as Sa,kv as ja,kw as ka,kx as Ia,gI as es,b3 as Rn,cH as Dn,P as ts,Q as ns,r as os,cS as pn,e9 as yo,gE as $a,fJ as Ta,fZ as La,ar as Aa,s as Ea,fG as Ra,aC as is,ky as Da,aU as Co,aP as Do,kz as Oa,kA as Ma,g_ as ss,kB as Fa,bJ as as,aS as Pa,gO as Dt,hT as Pn,eR as $n,d3 as wo,az as za,kC as Oo,dc as rs,dG as Ba,iP as _a,dL as bo,cM as On,cP as Mn,iy as nt,C as Et,hI as Na,gJ as zn,jb as Mo,dC as ls,df as dn,kD as Va,a_ as Ha,dK as cs,n as un,ip as ds,iz as uo,kE as tn,ef as us,eg as hs,iS as ps,iT as ms,kF as Ua,dd as Fn,iq as gs,fB as xs,eJ as Bn,aJ as vo,kG as Wa,d9 as qa,aX as fs,iG as Ja,e7 as Ka,ap as yt,kH as Za,kI as Ya,b1 as _n,dn as Ga,a9 as Xa,eG as Qa,eH as er,eI as tr,eK as Fo,eL as Po,eM as nr,kJ as or,a$ as ir,eV as sr,eW as ar,eX as rr}from"./index-
|
|
1
|
+
import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as Be,aQ as Wi,u as g,cE as Ks,d as vt,bF as Zs,i5 as Ys,aN as qe,c5 as we,y as Q,bz as Gs,aM as z,i3 as Xs,am as Fe,fX as Qs,gY as qi,bA as ea,b_ as Ot,b6 as Ji,ai as St,bP as Ki,h as Qe,k9 as ta,gh as na,an as gt,A as oa,gt as ia,gu as Zi,bs as sa,cy as aa,cg as ra,eT as hn,cd as xo,aa as Wt,bZ as fo,ad as qt,ka as la,kb as ca,kc as da,kd as rn,ke as Yi,kf as Gi,kg as ua,kh as ha,dE as Xi,ki as pa,kj as ma,kk as ga,kl as xa,km as fa,kn as Ro,ko as ya,kp as Ca,kq as wa,kr as ba,ks as va,kt as Qi,ku as Sa,kv as ja,kw as ka,kx as Ia,gI as es,b3 as Rn,cH as Dn,P as ts,Q as ns,r as os,cS as pn,e9 as yo,gE as $a,fJ as Ta,fZ as La,ar as Aa,s as Ea,fG as Ra,aC as is,ky as Da,aU as Co,aP as Do,kz as Oa,kA as Ma,g_ as ss,kB as Fa,bJ as as,aS as Pa,gO as Dt,hT as Pn,eR as $n,d3 as wo,az as za,kC as Oo,dc as rs,dG as Ba,iP as _a,dL as bo,cM as On,cP as Mn,iy as nt,C as Et,hI as Na,gJ as zn,jb as Mo,dC as ls,df as dn,kD as Va,a_ as Ha,dK as cs,n as un,ip as ds,iz as uo,kE as tn,ef as us,eg as hs,iS as ps,iT as ms,kF as Ua,dd as Fn,iq as gs,fB as xs,eJ as Bn,aJ as vo,kG as Wa,d9 as qa,aX as fs,iG as Ja,e7 as Ka,ap as yt,kH as Za,kI as Ya,b1 as _n,dn as Ga,a9 as Xa,eG as Qa,eH as er,eI as tr,eK as Fo,eL as Po,eM as nr,kJ as or,a$ as ir,eV as sr,eW as ar,eX as rr}from"./index-sAOH0Fje.js";import{n as a,b as s,i as Xe,k as So,w as ys}from"./vendor-Bs1fkIUX.js";import{r as Cs,I as ws,n as nn,R as mt}from"./CollapsableReportTable-7iAngywY-CxWB4sRz.js";import{o as bs}from"./mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js";import{d as zo}from"./mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js";import{h as lr}from"./VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js";import{u as cr,c as Bo,d as dr,m as ur}from"./uploadAttachment-DVy2pZeJ-X-xSyfvF.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./AccountRow-Be3LIHO--AtWCxnkE.js";const{common:{navBar:{back:hr},texts:{refresh:pr,close:mr,copy:gr,copied:xr,open:fr}},expenseAutomation:{common:{numbers:{maximumCount:yr}}}}=je.getLocalizedStrings(),Cr=a($a)`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: ${o.sp4};
|
|
4
4
|
height: ${o.sp4};
|
|
@@ -483,7 +483,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
483
483
|
white-space: nowrap;
|
|
484
484
|
overflow: hidden;
|
|
485
485
|
text-overflow: ellipsis;
|
|
486
|
-
`,
|
|
486
|
+
`,se=a.div`
|
|
487
487
|
display: flex;
|
|
488
488
|
gap: ${o.sp1};
|
|
489
489
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -575,7 +575,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
575
575
|
height: 12px;
|
|
576
576
|
cursor: pointer;
|
|
577
577
|
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,lt="accountReconReviewTableSection",{dateFormat:Mc,expenseAutomation:Fc,common:pt}=je.getLocalizedStrings(),{visual:$s}=Mc,{accountRecon:fe}=Fc,Ts=e=>[{label:fe.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ls=e=>[{label:fe.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Xo=e=>`${lt}_${e}_form`,Le=(e,n)=>`${lt}.${e}.${n}`,Pc=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:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:v,refreshStatus:w,updateLocalData:I,onColumnSortConfigChanged:f,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:A,bankAccounts:O,creditCards:b}=e,{transactionsToReview:j}=c,E=s.useRef(null),[T,V]=s.useState(null),M=_=>{const N=j[_],J=W.isReviewTransactionBillPaymentType(N),K=W.isReviewTransactionExpenseType(N),F=W.isReviewTransactionCreditCardPaymentType(N),le=W.isReviewTransactionBankTransferType(N),ye=W.isReviewTransactionDepositType(N),Y=N.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return N.transactionId===T?K||F||le||ye?275+(Y?25:0):J?185+N.recommendedAction.recommendedTransactions.length*40+(Y?25:0):146:72},q=s.useMemo(()=>({onColumnSortConfigChanged:f,sortConfig:{sortKey:n,sortOrder:d}}),[f,n,d]);if(s.useEffect(()=>{V(j[0]?.transactionId??null),E.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[T]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[j.length]),s.useEffect(()=>{w.fetchState==="Completed"&&E.current?.resetAfterIndex(0)},[w]),j.length===0){const _=Ve("reconciliation",void 0,u).tabs.find(N=>N.id==="review")?.allDoneText;return t.jsx(sd,{children:t.jsx(bt,{tab:"reconciliation",title:_?.title??pt.strings.empty,subTitle:_?.subTitle??pt.strings.empty})})}return t.jsx(Wc,{children:t.jsx(As.Provider,{value:q,children:t.jsx(Rn,{children:({height:_,width:N})=>t.jsx(Dn,{width:N,height:_,innerElementType:Es,ref:E,itemCount:j.length,itemSize:M,itemKey:J=>j[J].transactionId,overscanCount:_a,itemData:{transactionsList:j,expandedRowId:T,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:v,bankAccounts:O,creditCards:b,updateLocalData:I,setExpandedRowId:V,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:A},initialScrollOffset:0,children:zc})})})})},As=s.createContext(void 0),Es=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext(As);return t.jsxs(qc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx($c,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Jc,{children:d})]})});Es.displayName="Account recon review table inner element type";const zc=({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:y,entitySearchAutoCompleteData:C,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:A,creditCards:O}=d,b=c[e];return t.jsx(Uc,{style:{...n,width:"100%"},children:t.jsx(Bc,{transaction:b,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:C,classListNestedAccountHierarchy:y,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,selectedVendor:R[b.transactionId],bankAccounts:A,creditCards:O})})},Bc=({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:y,creditCards:C,setExpandedRowId:v,updateLocalData:w,onSaveReconciliation:I,onSaveReconciliationReview:f,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,A=Se(),O=l[e.transactionId],b=e.recommendedAction.action==="record_bill_payment",j=e.recommendedAction.action==="record_expense",E=h.find(M=>M.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),T=M=>M.recommendedAction.recommendedTransactions.length>0&&M.recommendedAction.recommendedTransactions[0].merchantName!=null?M.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,V=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Nc,{isExpanded:R,children:[t.jsxs(Vc,{isExpanded:R,onClick:()=>v(e.transactionId),"data-testid":z("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[0].width,children:t.jsx(Yt,{children:e.transactionDate.format($s.MMMDCommaYYYYformat)})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[1].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:T(e)})})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[2].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[3].width,children:t.jsx(Yt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Gt,{windowSize:A,responsiveWidth:Ct[4].width,children:[t.jsx(Be,{controller:b,children:t.jsx(ad,{children:t.jsx(rd,{children:fe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Be,{controller:!b,children:t.jsx(Yt,{children:E!=null?t.jsxs(t.Fragment,{children:[t.jsx(Rs,{}),t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:E.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Gt,{windowSize:A,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Yt,{children:fs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Be,{controller:R&&O!=null,children:[t.jsx(_c,{onSaveReconciliation:I,onSaveReconciliationReview:f,updateLocalData:w,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:y,creditCards:C,onReconMatchedTransactionClick:$}),t.jsx(Be,{controller:(b||j)&&V!=null,children:t.jsx(cd,{children:t.jsxs(dd,{children:[fe.review.bankDetail,pt.strings.colon," ",V]})})})]})]})},_c=({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:y,updateLocalData:C,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I})=>{const f=vt(),[$,R]=s.useState(!i.vendor?.id),[A,O]=s.useState(!i.customer?.id),[b,j]=s.useState(i.categoryId==null),[E,T]=s.useState(i.classId==null),[V,M]=s.useState(i.bankAccountId==null),[q,_]=s.useState(i.creditCardId==null),[N,J]=s.useState(!i.memo),K=W.isReviewTransactionBillPaymentType(e),F=W.isReviewTransactionExpenseType(e),le=W.isReviewTransactionBankTransferType(e),ye=W.isReviewTransactionCreditCardPaymentType(e),Y=W.isReviewTransactionDepositType(e),he=s.useMemo(()=>{if(!F)return Dt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Dt(n,u?.recommendations);const S=c.find(Ce=>Ce.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Z=S!=null?{...S,reason:fe.review.zeniGptRecommendation,min:0,max:0}:void 0;return Dt(n,[{account:Z}])},[F,u,e.recommendedAction.recommendedTransactions,c,n]),se=s.useMemo(()=>{if(!F)return $n(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return $n(p,u?.recommendations);const S=h.find(Ce=>Ce.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Z=S!=null?{...S,reason:fe.review.zeniGptRecommendation,min:0,max:0}:void 0;return $n(p,[{class:Z}])},[F,u,e.recommendedAction.recommendedTransactions,h,p]),k=Wt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Qo(e,i,he,c,se,x,y,l),[e,i,se,c,he,x,y,l]),values:s.useMemo(()=>Qo(e,i,he,c,se,x,y,l),[e,i,se,c,he,x,y,l])}),U=async(S,Z)=>{S.includes("memo")||C(ei(Z,e,l,c),e.transactionId,S.includes("vendor"))};s.useEffect(()=>{const S=k.watch((Z,{name:Ce})=>{Ce!=null&&Z!=null&&pn(()=>U(Ce,Z))});return()=>{S.unsubscribe()}});const H=s.useCallback(S=>{if(F||Y){if(F&&i.vendor==null){R(!1),k.setError(Le(e.transactionId,"vendor"),{type:"required"});return}if(Y&&i.customer==null){O(!1),k.setError(Le(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){j(!1),k.setError(Le(e.transactionId,"category"),{type:"required"});return}}C(ei(S,e,l,c),e.transactionId,!1),w(e.transactionId)},[F,Y,C,e,l,c,w,i.categoryId,i.vendor,i.customer]),P=k.watch(Le(e.transactionId,"vendor")),L=k.watch(Le(e.transactionId,"customer")),B=s.useRef(),ee=s.useMemo(()=>F?"vendor":Y?"customer":null,[F,Y]),ge=(S,Z)=>{ee!=null&&d.onAutoCompleteInputChange?.(S,ee),B.current=Z};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(F&&B.current?.(ds(l.entityAutoCompleteView)),Y&&B.current?.(Ya(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,Y,F]);const D=S=>h.filter(Z=>Z.classId===S)[0]?.accountingClassNumber??void 0,ce=S=>c.filter(Z=>Z.qboId===S)[0]?.qboId,X=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]),te=()=>{j(!1)},ve=()=>{M(!1)},$e=()=>{_(!1)};return s.useEffect(()=>{b===!1&&i.categoryId==null&&k.setFocus(Le(e.transactionId,"category"))},[b]),s.useEffect(()=>{E===!1&&i.classId==null&&k.setFocus(Le(e.transactionId,"class"))},[E]),s.useEffect(()=>{$===!1&&i.vendor==null&&k.setFocus(Le(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{A===!1&&i.customer==null&&k.setFocus(Le(e.transactionId,"customer"))},[A]),s.useEffect(()=>{V===!1&&i.bankAccountId==null&&k.setFocus(Le(e.transactionId,"bankAccount"))},[V]),s.useEffect(()=>{q===!1&&i.creditCardId==null&&k.setFocus(Le(e.transactionId,"creditCard"))},[q]),t.jsx(qt,{...k,children:t.jsx("form",{onSubmit:k.handleSubmit(H),id:Xo(e.transactionId),children:t.jsxs(Hc,{children:[t.jsxs(Kc,{children:[t.jsxs(Gc,{children:[t.jsxs(Xc,{children:[t.jsx(Rs,{}),t.jsx(_n,{label:{label:K?fe.review.formLabels.match:fe.review.formLabels.categorize},radioField:{name:Le(e.transactionId,"match_radio"),id:K?"match":"categorize",value:K?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Be,{controller:!K,children:t.jsxs(t.Fragment,{children:[t.jsx(ti,{}),X.map(S=>t.jsx(_n,{label:{label:fe.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Le(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},S))]})})]}),t.jsxs(Yc,{children:[t.jsx(un,{variant:"secondary",size:"small",label:fe.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":z("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{v({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(un,{form:Xo(e.transactionId),"data-testid":z("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(Be,{controller:F||Y,children:t.jsxs(Vn,{children:[t.jsx(Be,{controller:F,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(G,{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(ne,{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(ue,{onClick:S=>{S.stopPropagation(),R(!1)},"data-testid":z("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.addVendor]}):t.jsx(uo,{name:Le(e.transactionId,"vendor"),allowEmpty:!1,placeholder:fe.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:ge})})})]})})})}),t.jsx(Be,{controller:Y,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&A===!1&&O(!0)},children:t.jsx(G,{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(ne,{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:A===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),O(!1)},"data-testid":z("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.addCustomer]}):t.jsx(uo,{name:Le(e.transactionId,"customer"),allowEmpty:!1,placeholder:fe.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:L?.selectedOption,defaultOptions:L?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:ge})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&b===!1&&j(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{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:b===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),te()},"data-testid":z("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.addCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"category"),placeholder:fe.review.formLabels.addCategory,valueToId:S=>ce(S),defaultValue:{allOptions:he,selectedOption:c.find(S=>S.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&E===!1&&T(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{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:E===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),T(!1)},"data-testid":z("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.addClass]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"class"),placeholder:fe.review.formLabels.addClass,valueToId:S=>D(S),defaultValue:{allOptions:se,selectedOption:i.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})]})}),t.jsx(Be,{controller:K,children:t.jsxs(Qc,{children:[t.jsxs(ed,{children:[t.jsx("span",{className:"matched-text",children:`${fe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),fe.review.matchesFoundFullInfo]}),t.jsx(nd,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?t.jsxs(od,{children:[t.jsx(_n,{label:{label:t.jsxs(td,{children:[t.jsx(Fe,{children:S.date.format($s.MMMDCommaYYYYformat)}),t.jsx(Fe,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Le(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(ld,{"data-testid":z("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&I(S.bookTransactionId)},children:[t.jsx(id,{children:fs("0,0.00",S.amount.amount,S.amount.currencySymbol)}),t.jsx(ti,{})]})]},S.bookTransactionId):null)})]})}),t.jsx(Be,{controller:le,children:t.jsx(Vn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&V===!1&&M(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:fe.review.formLabels.transferTo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":z("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.selectAccount]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"bankAccount"),placeholder:fe.review.formLabels.selectAccount,defaultValue:{allOptions:Ts(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})})}),t.jsx(Be,{controller:ye,children:t.jsx(Vn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&q===!1&&_(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:fe.review.formLabels.creditCard}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:q===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),$e()},"data-testid":z("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.selectCard]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"creditCard"),placeholder:fe.review.formLabels.selectCard,defaultValue:{allOptions:Ls(y),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})})}),t.jsx(Be,{controller:!K,children:t.jsx(Zc,{children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:fe.review.header.memo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),J(!1)},"data-testid":z("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),fe.review.formLabels.addMemo]}):t.jsx(Ga,{name:Le(e.transactionId,"memo"),placeholder:fe.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},bn={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}`})},Qo=(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:Ts(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Ls(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:gs(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:or(n?.customer,l.entityAutoCompleteView)}}}}},ei=(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}},Yt=a(Fe)`
|
|
578
|
+
`,lt="accountReconReviewTableSection",{dateFormat:Mc,expenseAutomation:Fc,common:pt}=je.getLocalizedStrings(),{visual:$s}=Mc,{accountRecon:xe}=Fc,Ts=e=>[{label:xe.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ls=e=>[{label:xe.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Xo=e=>`${lt}_${e}_form`,Le=(e,n)=>`${lt}.${e}.${n}`,Pc=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:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:v,refreshStatus:w,updateLocalData:I,onColumnSortConfigChanged:f,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:A,bankAccounts:O,creditCards:b}=e,{transactionsToReview:j}=c,E=s.useRef(null),[T,V]=s.useState(null),M=_=>{const N=j[_],J=W.isReviewTransactionBillPaymentType(N),K=W.isReviewTransactionExpenseType(N),F=W.isReviewTransactionCreditCardPaymentType(N),le=W.isReviewTransactionBankTransferType(N),fe=W.isReviewTransactionDepositType(N),Y=N.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return N.transactionId===T?K||F||le||fe?275+(Y?25:0):J?185+N.recommendedAction.recommendedTransactions.length*40+(Y?25:0):146:72},q=s.useMemo(()=>({onColumnSortConfigChanged:f,sortConfig:{sortKey:n,sortOrder:d}}),[f,n,d]);if(s.useEffect(()=>{V(j[0]?.transactionId??null),E.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[T]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[j.length]),s.useEffect(()=>{w.fetchState==="Completed"&&E.current?.resetAfterIndex(0)},[w]),j.length===0){const _=Ve("reconciliation",void 0,u).tabs.find(N=>N.id==="review")?.allDoneText;return t.jsx(sd,{children:t.jsx(bt,{tab:"reconciliation",title:_?.title??pt.strings.empty,subTitle:_?.subTitle??pt.strings.empty})})}return t.jsx(Wc,{children:t.jsx(As.Provider,{value:q,children:t.jsx(Rn,{children:({height:_,width:N})=>t.jsx(Dn,{width:N,height:_,innerElementType:Es,ref:E,itemCount:j.length,itemSize:M,itemKey:J=>j[J].transactionId,overscanCount:_a,itemData:{transactionsList:j,expandedRowId:T,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:v,bankAccounts:O,creditCards:b,updateLocalData:I,setExpandedRowId:V,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:A},initialScrollOffset:0,children:zc})})})})},As=s.createContext(void 0),Es=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext(As);return t.jsxs(qc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx($c,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Jc,{children:d})]})});Es.displayName="Account recon review table inner element type";const zc=({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:y,entitySearchAutoCompleteData:C,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:A,creditCards:O}=d,b=c[e];return t.jsx(Uc,{style:{...n,width:"100%"},children:t.jsx(Bc,{transaction:b,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:C,classListNestedAccountHierarchy:y,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,selectedVendor:R[b.transactionId],bankAccounts:A,creditCards:O})})},Bc=({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:y,creditCards:C,setExpandedRowId:v,updateLocalData:w,onSaveReconciliation:I,onSaveReconciliationReview:f,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,A=Se(),O=l[e.transactionId],b=e.recommendedAction.action==="record_bill_payment",j=e.recommendedAction.action==="record_expense",E=h.find(M=>M.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),T=M=>M.recommendedAction.recommendedTransactions.length>0&&M.recommendedAction.recommendedTransactions[0].merchantName!=null?M.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,V=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Nc,{isExpanded:R,children:[t.jsxs(Vc,{isExpanded:R,onClick:()=>v(e.transactionId),"data-testid":z("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[0].width,children:t.jsx(Yt,{children:e.transactionDate.format($s.MMMDCommaYYYYformat)})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[1].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:T(e)})})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[2].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Gt,{windowSize:A,responsiveWidth:Ct[3].width,children:t.jsx(Yt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Gt,{windowSize:A,responsiveWidth:Ct[4].width,children:[t.jsx(Be,{controller:b,children:t.jsx(ad,{children:t.jsx(rd,{children:xe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Be,{controller:!b,children:t.jsx(Yt,{children:E!=null?t.jsxs(t.Fragment,{children:[t.jsx(Rs,{}),t.jsx(nt,{itemTextStyle:{...Et.standardRegular.cssObject,color:"inherit"},text:E.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Gt,{windowSize:A,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Yt,{children:fs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Be,{controller:R&&O!=null,children:[t.jsx(_c,{onSaveReconciliation:I,onSaveReconciliationReview:f,updateLocalData:w,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:y,creditCards:C,onReconMatchedTransactionClick:$}),t.jsx(Be,{controller:(b||j)&&V!=null,children:t.jsx(cd,{children:t.jsxs(dd,{children:[xe.review.bankDetail,pt.strings.colon," ",V]})})})]})]})},_c=({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:y,updateLocalData:C,onSaveReconciliation:v,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I})=>{const f=vt(),[$,R]=s.useState(!i.vendor?.id),[A,O]=s.useState(!i.customer?.id),[b,j]=s.useState(i.categoryId==null),[E,T]=s.useState(i.classId==null),[V,M]=s.useState(i.bankAccountId==null),[q,_]=s.useState(i.creditCardId==null),[N,J]=s.useState(!i.memo),K=W.isReviewTransactionBillPaymentType(e),F=W.isReviewTransactionExpenseType(e),le=W.isReviewTransactionBankTransferType(e),fe=W.isReviewTransactionCreditCardPaymentType(e),Y=W.isReviewTransactionDepositType(e),he=s.useMemo(()=>{if(!F)return Dt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Dt(n,u?.recommendations);const S=c.find(ye=>ye.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Z=S!=null?{...S,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return Dt(n,[{account:Z}])},[F,u,e.recommendedAction.recommendedTransactions,c,n]),ie=s.useMemo(()=>{if(!F)return $n(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return $n(p,u?.recommendations);const S=h.find(ye=>ye.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Z=S!=null?{...S,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return $n(p,[{class:Z}])},[F,u,e.recommendedAction.recommendedTransactions,h,p]),k=Wt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Qo(e,i,he,c,ie,x,y,l),[e,i,ie,c,he,x,y,l]),values:s.useMemo(()=>Qo(e,i,he,c,ie,x,y,l),[e,i,ie,c,he,x,y,l])}),U=async(S,Z)=>{S.includes("memo")||C(ei(Z,e,l,c),e.transactionId,S.includes("vendor"))};s.useEffect(()=>{const S=k.watch((Z,{name:ye})=>{ye!=null&&Z!=null&&pn(()=>U(ye,Z))});return()=>{S.unsubscribe()}});const H=s.useCallback(S=>{if(F||Y){if(F&&i.vendor==null){R(!1),k.setError(Le(e.transactionId,"vendor"),{type:"required"});return}if(Y&&i.customer==null){O(!1),k.setError(Le(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){j(!1),k.setError(Le(e.transactionId,"category"),{type:"required"});return}}C(ei(S,e,l,c),e.transactionId,!1),w(e.transactionId)},[F,Y,C,e,l,c,w,i.categoryId,i.vendor,i.customer]),P=k.watch(Le(e.transactionId,"vendor")),L=k.watch(Le(e.transactionId,"customer")),B=s.useRef(),ee=s.useMemo(()=>F?"vendor":Y?"customer":null,[F,Y]),ge=(S,Z)=>{ee!=null&&d.onAutoCompleteInputChange?.(S,ee),B.current=Z};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(F&&B.current?.(ds(l.entityAutoCompleteView)),Y&&B.current?.(Ya(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,Y,F]);const D=S=>h.filter(Z=>Z.classId===S)[0]?.accountingClassNumber??void 0,ce=S=>c.filter(Z=>Z.qboId===S)[0]?.qboId,X=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]),te=()=>{j(!1)},ve=()=>{M(!1)},$e=()=>{_(!1)};return s.useEffect(()=>{b===!1&&i.categoryId==null&&k.setFocus(Le(e.transactionId,"category"))},[b]),s.useEffect(()=>{E===!1&&i.classId==null&&k.setFocus(Le(e.transactionId,"class"))},[E]),s.useEffect(()=>{$===!1&&i.vendor==null&&k.setFocus(Le(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{A===!1&&i.customer==null&&k.setFocus(Le(e.transactionId,"customer"))},[A]),s.useEffect(()=>{V===!1&&i.bankAccountId==null&&k.setFocus(Le(e.transactionId,"bankAccount"))},[V]),s.useEffect(()=>{q===!1&&i.creditCardId==null&&k.setFocus(Le(e.transactionId,"creditCard"))},[q]),t.jsx(qt,{...k,children:t.jsx("form",{onSubmit:k.handleSubmit(H),id:Xo(e.transactionId),children:t.jsxs(Hc,{children:[t.jsxs(Kc,{children:[t.jsxs(Gc,{children:[t.jsxs(Xc,{children:[t.jsx(Rs,{}),t.jsx(_n,{label:{label:K?xe.review.formLabels.match:xe.review.formLabels.categorize},radioField:{name:Le(e.transactionId,"match_radio"),id:K?"match":"categorize",value:K?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Be,{controller:!K,children:t.jsxs(t.Fragment,{children:[t.jsx(ti,{}),X.map(S=>t.jsx(_n,{label:{label:xe.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Le(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},S))]})})]}),t.jsxs(Yc,{children:[t.jsx(un,{variant:"secondary",size:"small",label:xe.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":z("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{v({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(un,{form:Xo(e.transactionId),"data-testid":z("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(Be,{controller:F||Y,children:t.jsxs(Vn,{children:[t.jsx(Be,{controller:F,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(G,{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(ne,{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(ue,{onClick:S=>{S.stopPropagation(),R(!1)},"data-testid":z("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.addVendor]}):t.jsx(uo,{name:Le(e.transactionId,"vendor"),allowEmpty:!1,placeholder:xe.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:ge})})})]})})})}),t.jsx(Be,{controller:Y,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&A===!1&&O(!0)},children:t.jsx(G,{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(ne,{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:A===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),O(!1)},"data-testid":z("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.addCustomer]}):t.jsx(uo,{name:Le(e.transactionId,"customer"),allowEmpty:!1,placeholder:xe.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:L?.selectedOption,defaultOptions:L?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:ge})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&b===!1&&j(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{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:b===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),te()},"data-testid":z("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.addCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"category"),placeholder:xe.review.formLabels.addCategory,valueToId:S=>ce(S),defaultValue:{allOptions:he,selectedOption:c.find(S=>S.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&E===!1&&T(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{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:E===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),T(!1)},"data-testid":z("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.addClass]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"class"),placeholder:xe.review.formLabels.addClass,valueToId:S=>D(S),defaultValue:{allOptions:ie,selectedOption:i.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})]})}),t.jsx(Be,{controller:K,children:t.jsxs(Qc,{children:[t.jsxs(ed,{children:[t.jsx("span",{className:"matched-text",children:`${xe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),xe.review.matchesFoundFullInfo]}),t.jsx(nd,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?t.jsxs(od,{children:[t.jsx(_n,{label:{label:t.jsxs(td,{children:[t.jsx(Fe,{children:S.date.format($s.MMMDCommaYYYYformat)}),t.jsx(Fe,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Le(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(ld,{"data-testid":z("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&I(S.bookTransactionId)},children:[t.jsx(id,{children:fs("0,0.00",S.amount.amount,S.amount.currencySymbol)}),t.jsx(ti,{})]})]},S.bookTransactionId):null)})]})}),t.jsx(Be,{controller:le,children:t.jsx(Vn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&V===!1&&M(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.formLabels.transferTo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":z("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.selectAccount]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"bankAccount"),placeholder:xe.review.formLabels.selectAccount,defaultValue:{allOptions:Ts(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})})}),t.jsx(Be,{controller:fe,children:t.jsx(Vn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&q===!1&&_(!0)},children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.formLabels.creditCard}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:q===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),$e()},"data-testid":z("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.selectCard]}):t.jsx(tn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Le(e.transactionId,"creditCard"),placeholder:xe.review.formLabels.selectCard,defaultValue:{allOptions:Ls(y),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:bn})})})]})})})})}),t.jsx(Be,{controller:!K,children:t.jsx(Zc,{children:t.jsx(G,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.header.memo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(ue,{onClick:S=>{S.stopPropagation(),J(!1)},"data-testid":z("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Nt,{}),xe.review.formLabels.addMemo]}):t.jsx(Ga,{name:Le(e.transactionId,"memo"),placeholder:xe.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},bn={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}`})},Qo=(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:Ts(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Ls(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:gs(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:or(n?.customer,l.entityAutoCompleteView)}}}}},ei=(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}},Yt=a(Fe)`
|
|
579
579
|
display: flex;
|
|
580
580
|
align-items: center;
|
|
581
581
|
column-gap: ${o.sp1};
|
|
@@ -760,7 +760,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
760
760
|
`,vd=a.div`
|
|
761
761
|
width: 100%;
|
|
762
762
|
height: 100%;
|
|
763
|
-
`,{common:Sd}=je.getLocalizedStrings();function jd({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,y]=s.useState(void 0),C=e.plaidConnectionDetails.link_account_no_microdeposit,v=e.plaidConnectionDetails.update_account,w=x==="update_account"?v:C,[I,f]=s.useState(w.linkToken??null),[$,R]=s.useState(!1),{useDynamicConfig:A}=ns(),{configValue:O}=A(os.accountReconGLAccountsConfig),b=s.useCallback(P=>{u(P),y("link_account_no_microdeposit")},[]),j=s.useCallback(P=>{const L=M.current.accountReconciliationsByAccountID[P]?.paymentAccountId;u(P),y("update_account"),i("update_account",L)},[]),E=s.useCallback(P=>{p(P)},[]),T=s.useRef(m),V=s.useRef(x),M=s.useRef(e);s.useEffect(()=>{T.current=m},[m]),s.useEffect(()=>{V.current=x},[x]),s.useEffect(()=>{M.current=e},[e]);const q=s.useCallback(P=>{l(P,T.current??"",V.current),u(void 0),y(void 0),R(!1)},[l]),_=s.useCallback((P,L)=>{P!=null&&console.log("Plaid Connection Error",P,L),u(void 0),y(void 0),R(!1)},[]),{open:N,ready:J}=Ra({token:I,onSuccess:q,onExit:_});s.useEffect(()=>{(W.zeniDate(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&w.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[w.fetchStatus.fetchState]),s.useEffect(()=>{!$&&x!=null&&w.linkToken===I&&w.fetchStatus.fetchState==="Completed"&&J&&R(!0)},[J,I,w.fetchStatus.fetchState,w.linkToken,x,$]),s.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==I&&f(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,I]),s.useEffect(()=>{$&&N()},[$,N]);const[K,F]=s.useState(void 0),[le,
|
|
763
|
+
`,{common:Sd}=je.getLocalizedStrings();function jd({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,y]=s.useState(void 0),C=e.plaidConnectionDetails.link_account_no_microdeposit,v=e.plaidConnectionDetails.update_account,w=x==="update_account"?v:C,[I,f]=s.useState(w.linkToken??null),[$,R]=s.useState(!1),{useDynamicConfig:A}=ns(),{configValue:O}=A(os.accountReconGLAccountsConfig),b=s.useCallback(P=>{u(P),y("link_account_no_microdeposit")},[]),j=s.useCallback(P=>{const L=M.current.accountReconciliationsByAccountID[P]?.paymentAccountId;u(P),y("update_account"),i("update_account",L)},[]),E=s.useCallback(P=>{p(P)},[]),T=s.useRef(m),V=s.useRef(x),M=s.useRef(e);s.useEffect(()=>{T.current=m},[m]),s.useEffect(()=>{V.current=x},[x]),s.useEffect(()=>{M.current=e},[e]);const q=s.useCallback(P=>{l(P,T.current??"",V.current),u(void 0),y(void 0),R(!1)},[l]),_=s.useCallback((P,L)=>{P!=null&&console.log("Plaid Connection Error",P,L),u(void 0),y(void 0),R(!1)},[]),{open:N,ready:J}=Ra({token:I,onSuccess:q,onExit:_});s.useEffect(()=>{(W.zeniDate(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&w.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[w.fetchStatus.fetchState]),s.useEffect(()=>{!$&&x!=null&&w.linkToken===I&&w.fetchStatus.fetchState==="Completed"&&J&&R(!0)},[J,I,w.fetchStatus.fetchState,w.linkToken,x,$]),s.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==I&&f(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,I]),s.useEffect(()=>{$&&N()},[$,N]);const[K,F]=s.useState(void 0),[le,fe]=s.useState(void 0),Y=W.zeniDate("2025-03-31"),he=1,ie="account_reconciliation",k=Se(),U=vt(),H=!0;return s.useEffect(()=>{const P={reportId:ie,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:Y,firstMonthOfFY:he,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:h,onConnectClicked:b,onReconnectClicked:j,onOpenDrawerClicked:E,onStatementAddClicked:r}};if(K==null||!is(le,e)){const L=yd(e,P,O,n,H);fe(e),F(L)}else{const L=Cd(K,e,P,H);F(L)}},[e]),e.fetchStatus.fetchState==="Error"?t.jsx(wd,{children:t.jsx(Da,{onReload:c,message:Sd.errorMessage.somethingWentWrong})}):t.jsx(bd,{windowSize:k,children:K!=null?t.jsx(vd,{windowSize:k,children:t.jsx(ws,{backgroundColor:new Co(U.colors.grey4),rootNodes:K,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:H,isStickyName:H},treeNodePadding:{left:po.contentPaddingLeft.value(k),right:po.contentPaddingRight.value(k)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:d})}):null})}function kd({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:y,onAddStatementClick:C,onReconReviewTabColumnSortConfigChanged:v,onSaveReconciliation:w,onSaveReconciliationReview:I,setOpenDrawerClicked:f,onReconMatchedTransactionClick:$,onReconListPageScroll:R}){return c.selectedAccountId==null?t.jsx(jd,{companyId:h,onScroll:R,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:y,setOpenDrawerClicked:f,onAddStatementClick:C}):t.jsx(ud,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:p,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:v,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:w,onSaveReconciliationReview:I,onReconMatchedTransactionClick:$})}function Id({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 $d({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)=>Id({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 Td({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)=>$d({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 Ld({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 Ad({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:vn,expenseAutomation:{fluxAnalysis:Ed}}=je.getLocalizedStrings(),Rd=(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?nn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?nn(e.sections.reimbursement.balancesByMonth):[],p=bs({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(Ld({title:`${vn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{i.push(zo({title:`${u}+${vn.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=nn(u.balancesByMonth);i.push(Td({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:Dd(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?nn(e.totalBalancesAndVariance.balancesByMonth):[],u=Ad({title:vn.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(zo({title:`${u}+${vn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:d&&!l?[p]:[],contentNodes:i}},Dd=e=>Ed.sectionTitle[e];function Od(e,n,d,c=!0){Object.assign(e.config,n);const h=Md(d),p=bs({balances:h,config:n});return{config:n,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Md=e=>e.sections.generalExpense.balancesByMonth?nn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?nn(e.sections.reimbursement.balancesByMonth):[],mo={contentPaddingLeft:new Q(g[0],g[0],g[0]),contentPaddingRight:new Q(g[3],g[3],g[8]),wrapperPadding:new Q(g[3],g[3],g[8])},Fd=a.div`
|
|
764
764
|
display: flex;
|
|
765
765
|
position: sticky;
|
|
766
766
|
width: 100%;
|
|
@@ -771,7 +771,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
771
771
|
`,Pd=a.div`
|
|
772
772
|
width: 100%;
|
|
773
773
|
height: calc(100vh - ${o.sp11});
|
|
774
|
-
`,zd=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=Se(),u=vt(),[x,y]=s.useState(null),[C,v]=s.useState(null),[w,I]=s.useState(null),f=W.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),A=Do(f),O=Do(n.refreshStatus.fetchState),b=()=>{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)},j=()=>Object.keys(n.uiState.collapsableStatus).reduce((_,N)=>(_[N]=n.uiState.collapsableStatus[N],_),{}),E=s.useCallback(_=>{const N=!(n.uiState.collapsableStatus[_]??!0);i({...n.uiState.collapsableStatus,[_]:N})},[n.uiState.collapsableStatus,i]),T=s.useCallback((_,N)=>{let J=n.reviewOperatingExpensesIds;const K=[];let F=n.selectedSectionIds;const le=n.sections[_].vendors;K.push(...le.map(Y=>Y.fluxAnalysisEntityId));let
|
|
774
|
+
`,zd=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=Se(),u=vt(),[x,y]=s.useState(null),[C,v]=s.useState(null),[w,I]=s.useState(null),f=W.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),A=Do(f),O=Do(n.refreshStatus.fetchState),b=()=>{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)},j=()=>Object.keys(n.uiState.collapsableStatus).reduce((_,N)=>(_[N]=n.uiState.collapsableStatus[N],_),{}),E=s.useCallback(_=>{const N=!(n.uiState.collapsableStatus[_]??!0);i({...n.uiState.collapsableStatus,[_]:N})},[n.uiState.collapsableStatus,i]),T=s.useCallback((_,N)=>{let J=n.reviewOperatingExpensesIds;const K=[];let F=n.selectedSectionIds;const le=n.sections[_].vendors;K.push(...le.map(Y=>Y.fluxAnalysisEntityId));let fe=Cs-J.length;N?(K.forEach(Y=>{!J.includes(Y)&&fe>0&&(J=[...J,Y],fe--)}),F=[...F,_]):(J=J.filter(Y=>!K.includes(Y)),F=F.filter(Y=>Y!==_)),c(J),h(F)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,h]),V=s.useCallback(_=>{const N=n.uiState.collapsableStatus[_]===!1;_==="generalExpense"&&!N&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),E(_)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,E]),M=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,q=_=>_<M;return s.useEffect(()=>{const _={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:V,updateNodeCollapsableStatus:E,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:T,onSortOrderChanged:p}};if(x==null||!is(C,n)){const N=Rd(n,_,!0);v(n),y(N)}else{const N=Od(x,_,n,!0);y(N)}},[n,C,d,T,V,p,E,c]),t.jsx(Fd,{windowSize:m,children:t.jsx(Pd,{children:x?t.jsx(ws,{backgroundColor:new Co(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:mo.contentPaddingLeft.value(m),right:mo.contentPaddingRight.value(m)},nodeOpenStatus:j(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:q,itemCount:M,loadMoreItems:b},variableNodeHeightTree:{prevFetchState:A??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:$,setIsSortApplied:R,reducedFetchState:W.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:O??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:w,setHoveredParentId:I}}):null})})},Bd="expenseAutomationFluxPage",{reports:{common:_d}}=je.getLocalizedStrings(),Nd=({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:y,reviewOperatingExpensesIds:C,uiState:v}=n,w=s.useRef(null),I=s.useRef(!1),f=Wt({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:Vd(C)}),$=Se();s.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),s.useEffect(()=>{I.current&&w?.current?.scrollLeft!=null&&v.scrollPosition?.scrollLeft!==w.current.scrollLeft&&v.scrollPosition!=null&&r({scrollPosition:{scrollTop:v.scrollPosition?.scrollTop,scrollLeft:w.current.scrollLeft}})},[v.scrollPosition?.scrollLeft,w.current?.scrollLeft,v.scrollPosition,r]),s.useEffect(()=>{p(C.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[C,p]);const R=j=>{m(j)},A=j=>{u(e,j)},O=(j,E)=>{r({sortOrder:j,sortKey:E}),d(),x(e,null,!1)},b=()=>{const j=Os(n.sections,C);c(C,j===!0?"review":"unreview",e,!0)};if(y.fetchState==="Error")return t.jsxs(Ud,{children:[t.jsx(Wd,{onClick:h,children:t.jsx(fo,{})}),t.jsx(qd,{children:_d.failed})]});{const j=T=>{r({collapsableStatus:T})},E=T=>{x(e,T,!0)};return t.jsx(qt,{...f,children:t.jsx("form",{id:la(Bd),onSubmit:f.handleSubmit(b),style:{height:"100%",width:"100%"},children:t.jsx(Hd,{windowSize:$,children:t.jsx(zd,{fluxView:n,handleRedirectToVendorDetailPage:R,onSortOrderChanged:O,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:j,fetchReimbursementView:E,updateSectionIdsForReview:l,fetchGeneralExpenseView:A,reportId:"flux_analysis_operating_expense"})})})})}},Os=(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},Vd=e=>({fluxAnalysisRowIds:e}),Hd=a.div`
|
|
775
775
|
display: flex;
|
|
776
776
|
flex: 1 1 auto;
|
|
777
777
|
min-height: 100%;
|
|
@@ -831,7 +831,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
831
831
|
flex-direction: column;
|
|
832
832
|
width: 100%;
|
|
833
833
|
background-color: ${e=>e.theme.colors.grey4};
|
|
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{[Ms]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:Tt},common:{currency:Sn,review:Xd,ignore:Qd,strings:{hyphen:ft},texts:jn},dateFormat:eu,timeframe:{month:ii}}=je.getLocalizedStrings(),tu=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:h})=>t.jsxs(To,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:jn.vendor}),t.jsxs(
|
|
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{[Ms]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:Tt},common:{currency:Sn,review:Xd,ignore:Qd,strings:{hyphen:ft},texts:jn},dateFormat:eu,timeframe:{month:ii}}=je.getLocalizedStrings(),tu=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:h})=>t.jsxs(To,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:jn.vendor}),t.jsxs(se,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(cs,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(dn,{name:e.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(We,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.vendor.name??ft})})]})]}),t.jsxs(G,{children:[t.jsx(ne,{children:Tt.scheduleHeaders.scheduleCategory}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(We,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.baseTransaction.account.accountName??ft})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:Tt.scheduleHeaders.startMonth}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:e.startDate?.format(eu.visual.MMMCommaYYYYFormat)??ft})})]}),t.jsxs(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:Tt.scheduleHeaders.period}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ii.slice(0,-1):ii}`:ft})})]}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:jn.totalAmount}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(We,{children:qe("0,0.[00]",W.toAmount(e.baseTransaction.amount.amount,Sn.currencyCode,Sn.currencySymbol))??ft}),children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(e.baseTransaction.amount.amount,Sn.currencyCode,Sn.currencySymbol))??ft})})})]})]}),t.jsxs(Io,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:jn.category}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(We,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeDebit.account?.accountName??ft})})})]}),t.jsxs(G,{children:[t.jsx(ne,{children:jn.classText}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(We,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeDebit.accountingClass?.className??ft})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:Tt.scheduleHeaders.type}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",style:{width:"unset"},children:t.jsx(Is,{children:Tt.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:Tt.scheduleHeaders.accumulatedCategory}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(We,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeCredit.account?.accountName??ft})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(G,{style:{width:pe.COLUMN_FOUR}}):null,t.jsx(G,{style:{width:pe.COLUMN_FIVE}})]})]}),t.jsxs(Lo,{children:[t.jsx(un,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&h(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component-review-button",e.jeScheduleId),label:Xd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:ho}}),t.jsx(un,{"data-testid":z("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Qd,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&d(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:ho}})]})]}),t.jsxs(kc,{children:[t.jsx(nu,{}),t.jsx(ou,{children:Tt.aiAccountant}),t.jsx(iu,{children:Tt.zeniGPTText})]})]}),nu=a(hn)`
|
|
835
835
|
height: ${o.sp3};
|
|
836
836
|
width: ${o.sp3};
|
|
837
837
|
margin-right: ${o.sp1};
|
|
@@ -842,14 +842,14 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
842
842
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
843
843
|
`,iu=a(Fe)`
|
|
844
844
|
color: ${e=>e.theme.colors.primary};
|
|
845
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:si}}},expenseAutomation:{jeSchedules:ze},common:{currency:dt,retry:su,strings:{hyphen:Ue,empty:ai},texts:Xt},dateFormat:ri}=je.getLocalizedStrings(),{common:au,timeframe:{month:li}}=je.getLocalizedStrings(),tt="jeSchedulePage",ci=e=>`${e}_form`,Eo=(e,n)=>`${e}.${n}`,di=Eo(tt,"vendor"),ui=Eo(tt,"scheduleExpenseCategory"),hi=Eo(tt,"accumulatedDepreciationCategory"),ru=({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:y,onFormDataChange:C,onPostJESchedule:v})=>{const{updatedAccumulatedDepreciationCategoryID:w,updatedCategoryId:I,updatedVendor:f}=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(),A=Wt({mode:"all",reValidateMode:"onChange",defaultValues:pi(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:pi(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},b={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},j=(i?.scheduledJournalEntry.error??[]).every(L=>{const B=$[L];return!(l!=null&&B&&(B==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||B==="updatedCategoryId"&&l.updatedCategoryId==null||B==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),E=async(L,B)=>{if(L!=null){const ee=B[tt],{scheduledJournalEntryID:ge,vendor:D}=ee;if(L.includes("vendor")){const ce=D?.defaultOptions.map(X=>X.value);if(D?.selectedOption!=null&&ce?.includes(D.selectedOption)!==!0){const X=x.entityAutoCompleteView.vendor.find(te=>te.id===D.selectedOption);X!=null&&A.setValue(`${tt}.vendor.defaultOptions`,[{label:X.name??au.strings.empty,value:X.id}])}else D?.selectedOption==null&&D?.defaultOptions.length!==0&&A.setValue(`${tt}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(ge,{...ee,vendor:D})}};s.useEffect(()=>{const L=A.watch((B,{name:ee})=>{ee!=null&&B!=null&&pn(()=>E(ee,B))});return()=>{L.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(ds(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const T=A.handleSubmit(()=>{v(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),V=L=>n.filter(B=>B.qboId===L)[0]?.qboId,M=L=>p.filter(B=>B.qboId===L)[0]?.qboId,q=L=>[m.expense?.qboId,m.income?.qboId].includes(L),_=A.watch("jeSchedulePage.vendor"),N=(L,B)=>{u.onAutoCompleteInputChange?.(L,"vendor"),R.current=B},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,K=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,F=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,le=i.vendor.name.split("(deleted)")[0]?.toString(),ye=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ai,Y=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ai,[he,se]=s.useState(K===!0&&I==null),[k,U]=s.useState(F===!0&&w==null),[H,P]=s.useState(J&&(f?.id==null||f?.id==""));return s.useEffect(()=>{he===!1&&l.updatedCategoryId==null&&A.setFocus(ui),k===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&A.setFocus(hi),H===!1&&l.updatedVendor?.id==null&&A.setFocus(di)},[he,k,H,l,A]),t.jsx(qt,{...A,children:t.jsx("form",{style:{width:"100%"},id:ci(`${tt}_${i.jeScheduleId}`),onSubmit:T,children:t.jsx(To,{showBorder:j,onClick:L=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&y(L,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":z("je-schedule-resolve-component-schedule",`${tt}_${i.jeScheduleId}`),children:t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[J===!0?t.jsx(G,{style:{width:pe.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:H===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Xt.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(Tn,{children:ze.tooltipText.missingVendor.replace("_deleted_vendor_",le)}),children:t.jsx(Un,{})})]}),t.jsx(ae,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),P(!1)},"data-testid":z("je-schedule-resolve-component-add-vendor-button",`${tt}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Qe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Hn,{}),si]}):t.jsx(uo,{name:di,placeholder:si,valueToId:L=>L,defaultValue:{selectedOption:_?.selectedOption,defaultOptions:_?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:L=>!!L.selectedOption},loadOptions:N})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:Xt.vendor}),t.jsx(ae,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(cs,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(dn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(We,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.vendor.name??Ue})})]})})]}),t.jsxs(G,{children:[t.jsx(ne,{children:ze.scheduleHeaders.scheduleCategory}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(We,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.baseTransaction.account.accountName??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.startMonth}),t.jsx(ae,{children:t.jsx(ue,{className:"highlight",children:i.startDate?.format(ri.visual.MMMCommaYYYYFormat)??Ue})})]}),t.jsxs(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:ze.scheduleHeaders.period}),t.jsx(ae,{children:t.jsx(ue,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?li.slice(0,-1):li}`:Ue})})]}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:Xt.totalAmount}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(We,{children:qe("0,0.[00]",W.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??Ue}),children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??Ue})})})]})]}),t.jsxs(Io,{children:[K===!0?t.jsx(G,{showHoverEffect:K===!0,forceHoverEffect:l?.updatedCategoryId==null&&he===!1,style:{padding:"unset",justifyContent:"center",width:pe.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Xt.category,K===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(Tn,{children:ze.tooltipText.missingCategory.replace("_deleted_category_",ye)}),children:t.jsx(Un,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:K===!0?-2:0},children:K===!0?t.jsx(t.Fragment,{children:he===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),se(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Hn,{}),ze.addCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,name:ui,placeholder:ze.addCategory,valueToId:L=>V(L),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:L=>!!L.selectedOption},disableCurrentOption:q,customStyleConfig:O})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(We,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Xt.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(We,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]}),t.jsxs(G,{children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Xt.classText}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(We,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.accountingClass?.className??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.type}),t.jsx(ae,{className:"test",children:t.jsx(ue,{className:"highlight",style:{width:"unset"},children:t.jsx(Is,{children:ze.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:F===!0?t.jsx(G,{style:{width:pe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:F,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&k===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[ze.scheduleHeaders.accumulatedCategory,F===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(Tn,{children:ze.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Y)}),children:t.jsx(Un,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:F===!0?-2:0},children:F===!0?t.jsx(t.Fragment,{children:k===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),U(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-depreciation-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Hn,{}),ze.addDepCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:hi,placeholder:ze.addDepCategory,valueToId:L=>M(L),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:L=>!!L.selectedOption},customStyleConfig:b,disableCurrentOption:q})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(We,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ze.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(We,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(G,{style:{width:pe.COLUMN_FOUR}}):null,t.jsx(G,{style:{width:pe.COLUMN_FIVE}})]}),t.jsxs(Sc,{children:[t.jsx(G,{style:{padding:"unset",width:pe.COLUMN_ONE},children:t.jsxs(jc,{children:[t.jsx(ne,{children:ze.scheduleHeaders.jePostingDate}),t.jsx(ae,{children:t.jsx(ue,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(ri.visual.MMMDCommaYYFormat)??Ue})})]})}),t.jsxs(G,{children:[t.jsx(ne,{children:ze.scheduleHeaders.balance}),t.jsx(ae,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(We,{children:qe("0,0.[00]",W.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue}),children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.months}),t.jsx(ae,{children:t.jsxs(ue,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(G,{style:{width:pe.COLUMN_FOUR}}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:ze.scheduleHeaders.amountForMonth}),t.jsx(ae,{children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue})})]})]})]}),t.jsx(Lo,{children:t.jsx(un,{form:ci(`${tt}_${i.jeScheduleId}`),label:su,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!j,style:{minWidth:ho}})})]})})})})},pi=(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,y=e.updatedClassId,C=r!=null?h.find(I=>I.accountId===r):void 0,v=x!=null?i.find(I=>I.accountId===x):void 0,w=y!=null?p.find(I=>I.classId===y):void 0;return{[tt]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:v?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:gs(l,u??m)},scheduleClass:{selectedOption:w?.classId,allOptions:d}}}},Hn=a(Fn)`
|
|
845
|
+
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:si}}},expenseAutomation:{jeSchedules:ze},common:{currency:dt,retry:su,strings:{hyphen:Ue,empty:ai},texts:Xt},dateFormat:ri}=je.getLocalizedStrings(),{common:au,timeframe:{month:li}}=je.getLocalizedStrings(),tt="jeSchedulePage",ci=e=>`${e}_form`,Eo=(e,n)=>`${e}.${n}`,di=Eo(tt,"vendor"),ui=Eo(tt,"scheduleExpenseCategory"),hi=Eo(tt,"accumulatedDepreciationCategory"),ru=({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:y,onFormDataChange:C,onPostJESchedule:v})=>{const{updatedAccumulatedDepreciationCategoryID:w,updatedCategoryId:I,updatedVendor:f}=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(),A=Wt({mode:"all",reValidateMode:"onChange",defaultValues:pi(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:pi(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},b={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},j=(i?.scheduledJournalEntry.error??[]).every(L=>{const B=$[L];return!(l!=null&&B&&(B==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||B==="updatedCategoryId"&&l.updatedCategoryId==null||B==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),E=async(L,B)=>{if(L!=null){const ee=B[tt],{scheduledJournalEntryID:ge,vendor:D}=ee;if(L.includes("vendor")){const ce=D?.defaultOptions.map(X=>X.value);if(D?.selectedOption!=null&&ce?.includes(D.selectedOption)!==!0){const X=x.entityAutoCompleteView.vendor.find(te=>te.id===D.selectedOption);X!=null&&A.setValue(`${tt}.vendor.defaultOptions`,[{label:X.name??au.strings.empty,value:X.id}])}else D?.selectedOption==null&&D?.defaultOptions.length!==0&&A.setValue(`${tt}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(ge,{...ee,vendor:D})}};s.useEffect(()=>{const L=A.watch((B,{name:ee})=>{ee!=null&&B!=null&&pn(()=>E(ee,B))});return()=>{L.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(ds(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const T=A.handleSubmit(()=>{v(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),V=L=>n.filter(B=>B.qboId===L)[0]?.qboId,M=L=>p.filter(B=>B.qboId===L)[0]?.qboId,q=L=>[m.expense?.qboId,m.income?.qboId].includes(L),_=A.watch("jeSchedulePage.vendor"),N=(L,B)=>{u.onAutoCompleteInputChange?.(L,"vendor"),R.current=B},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,K=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,F=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,le=i.vendor.name.split("(deleted)")[0]?.toString(),fe=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ai,Y=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ai,[he,ie]=s.useState(K===!0&&I==null),[k,U]=s.useState(F===!0&&w==null),[H,P]=s.useState(J&&(f?.id==null||f?.id==""));return s.useEffect(()=>{he===!1&&l.updatedCategoryId==null&&A.setFocus(ui),k===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&A.setFocus(hi),H===!1&&l.updatedVendor?.id==null&&A.setFocus(di)},[he,k,H,l,A]),t.jsx(qt,{...A,children:t.jsx("form",{style:{width:"100%"},id:ci(`${tt}_${i.jeScheduleId}`),onSubmit:T,children:t.jsx(To,{showBorder:j,onClick:L=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&y(L,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":z("je-schedule-resolve-component-schedule",`${tt}_${i.jeScheduleId}`),children:t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[J===!0?t.jsx(G,{style:{width:pe.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:H===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Xt.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(Tn,{children:ze.tooltipText.missingVendor.replace("_deleted_vendor_",le)}),children:t.jsx(Un,{})})]}),t.jsx(se,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),P(!1)},"data-testid":z("je-schedule-resolve-component-add-vendor-button",`${tt}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Qe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Hn,{}),si]}):t.jsx(uo,{name:di,placeholder:si,valueToId:L=>L,defaultValue:{selectedOption:_?.selectedOption,defaultOptions:_?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:L=>!!L.selectedOption},loadOptions:N})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:Xt.vendor}),t.jsx(se,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(cs,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(dn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(We,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.vendor.name??Ue})})]})})]}),t.jsxs(G,{children:[t.jsx(ne,{children:ze.scheduleHeaders.scheduleCategory}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(We,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.baseTransaction.account.accountName??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.startMonth}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:i.startDate?.format(ri.visual.MMMCommaYYYYFormat)??Ue})})]}),t.jsxs(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:ze.scheduleHeaders.period}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?li.slice(0,-1):li}`:Ue})})]}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:Xt.totalAmount}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(We,{children:qe("0,0.[00]",W.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??Ue}),children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??Ue})})})]})]}),t.jsxs(Io,{children:[K===!0?t.jsx(G,{showHoverEffect:K===!0,forceHoverEffect:l?.updatedCategoryId==null&&he===!1,style:{padding:"unset",justifyContent:"center",width:pe.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Xt.category,K===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(Tn,{children:ze.tooltipText.missingCategory.replace("_deleted_category_",fe)}),children:t.jsx(Un,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:K===!0?-2:0},children:K===!0?t.jsx(t.Fragment,{children:he===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),ie(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Hn,{}),ze.addCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,name:ui,placeholder:ze.addCategory,valueToId:L=>V(L),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:L=>!!L.selectedOption},disableCurrentOption:q,customStyleConfig:O})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(We,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Xt.category}),t.jsx(se,{className:"item-value-container",children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(We,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]}),t.jsxs(G,{children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Xt.classText}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(We,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.accountingClass?.className??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.type}),t.jsx(se,{className:"test",children:t.jsx(ue,{className:"highlight",style:{width:"unset"},children:t.jsx(Is,{children:ze.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:F===!0?t.jsx(G,{style:{width:pe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:F,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&k===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[ze.scheduleHeaders.accumulatedCategory,F===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(Tn,{children:ze.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Y)}),children:t.jsx(Un,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:F===!0?-2:0},children:F===!0?t.jsx(t.Fragment,{children:k===!0?t.jsxs(ue,{onClick:L=>{L.stopPropagation(),U(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-depreciation-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Hn,{}),ze.addDepCategory]}):t.jsx(tn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:hi,placeholder:ze.addDepCategory,valueToId:L=>M(L),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:L=>!!L.selectedOption},customStyleConfig:b,disableCurrentOption:q})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(We,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})})]})}):t.jsxs(G,{style:{width:pe.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ze.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(We,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(G,{style:{width:pe.COLUMN_FOUR}}):null,t.jsx(G,{style:{width:pe.COLUMN_FIVE}})]}),t.jsxs(Sc,{children:[t.jsx(G,{style:{padding:"unset",width:pe.COLUMN_ONE},children:t.jsxs(jc,{children:[t.jsx(ne,{children:ze.scheduleHeaders.jePostingDate}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(ri.visual.MMMDCommaYYFormat)??Ue})})]})}),t.jsxs(G,{children:[t.jsx(ne,{children:ze.scheduleHeaders.balance}),t.jsx(se,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(We,{children:qe("0,0.[00]",W.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue}),children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue})})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:ze.scheduleHeaders.months}),t.jsx(se,{children:t.jsxs(ue,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(G,{style:{width:pe.COLUMN_FOUR}}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:ze.scheduleHeaders.amountForMonth}),t.jsx(se,{children:t.jsx(ue,{className:"highlight",children:qe("0,0.[00]",W.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??Ue})})]})]})]}),t.jsx(Lo,{children:t.jsx(un,{form:ci(`${tt}_${i.jeScheduleId}`),label:su,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!j,style:{minWidth:ho}})})]})})})})},pi=(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,y=e.updatedClassId,C=r!=null?h.find(I=>I.accountId===r):void 0,v=x!=null?i.find(I=>I.accountId===x):void 0,w=y!=null?p.find(I=>I.classId===y):void 0;return{[tt]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:v?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:gs(l,u??m)},scheduleClass:{selectedOption:w?.classId,allOptions:d}}}},Hn=a(Fn)`
|
|
846
846
|
width: ${o.sp3};
|
|
847
847
|
height: ${o.sp3};
|
|
848
848
|
`,Un=a(xs)`
|
|
849
849
|
width: 12px;
|
|
850
850
|
height: 12px;
|
|
851
851
|
color: ${Qe.important};
|
|
852
|
-
`;function Fs(){return t.jsx(vs,{children:t.jsxs(Ss,{children:[t.jsxs(js,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(mi,{})]}),t.jsxs(ks,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(mi,{})]})]})})}const mi=()=>t.jsx(To,{style:{minWidth:1088},children:t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:t.jsx(De,{width:g[10],height:14})}),t.jsxs(
|
|
852
|
+
`;function Fs(){return t.jsx(vs,{children:t.jsxs(Ss,{children:[t.jsxs(js,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(mi,{})]}),t.jsxs(ks,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(mi,{})]})]})})}const mi=()=>t.jsx(To,{style:{minWidth:1088},children:t.jsxs($o,{children:[t.jsxs(Ao,{children:[t.jsxs(ko,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:t.jsx(De,{width:g[10],height:14})}),t.jsxs(se,{style:{gap:g[2]},children:[t.jsx(bo,{height:g[4],width:g[4]}),t.jsx(De,{height:g[4],width:g[10]})]})]}),t.jsxs(G,{children:[t.jsx(ne,{children:t.jsx(De,{width:101,height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:203})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:t.jsx(De,{width:g[9],height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:71})})]}),t.jsxs(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:t.jsx(De,{width:107,height:14})}),t.jsx(De,{height:g[4],width:68})]}),t.jsxs(G,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(ne,{children:t.jsx(De,{width:73,height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:49})})]})]}),t.jsxs(Io,{children:[t.jsxs(G,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:t.jsx(De,{width:49,height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:158})})]}),t.jsxs(G,{children:[t.jsx(ne,{children:t.jsx(De,{width:36,height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:88})})]}),t.jsxs(G,{style:{width:pe.COLUMN_THREE},children:[t.jsx(ne,{children:t.jsx(De,{width:36,height:14})}),t.jsx(se,{children:t.jsx(De,{height:g[4],width:100})})]}),t.jsx(G,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(G,{style:{width:pe.COLUMN_FIVE}})]})]}),t.jsxs(Lo,{children:[t.jsx(De,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(De,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),De=a(Ot)`
|
|
853
853
|
border-radius: ${o.sp1};
|
|
854
854
|
`,{common:{create:lu,resolve:cu}}=je.getLocalizedStrings();function du({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,y=e.resolveSchedules,C=e.uncategorizedAccounts,{allAccountList:v,allClassList:w,allDepreciationAccountList:I}=e,f=Dt(e.accountListNestedAccountHierarchy),$=Dt(e.allDepreciationAccountListNestedAccountHierarchy),R=$n(e.classListNestedAccountHierarchy),A=(b,j,E)=>{d(b,j,E)},O=(b,j,E,T)=>{let V=b.target;for(;V;){if(V.classList.contains("item-value-container")||V.classList.contains("hover-background")||V.classList.contains("auto-complete-single-select-field__input")||V.classList.contains("auto-complete-single-select-field__option")||V.classList.contains("grouped-single-select-field__input")||V.classList.contains("grouped-single-select-field__menu"))return;V=V.parentElement}d(j,E,T)};return s.useEffect(()=>{if(y.length!==0){for(const b in m)if(Object.prototype.hasOwnProperty.call(m,b)){const{updatedAccumulatedDepreciationCategoryID:j,updatedCategoryId:E,updatedVendor:T}=m[b];if(j!=null||E!=null||T!=null&&T?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else y.length===0&&l("expenseAutomationPage")}),s.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Fs,{}):r.length!==0||y.length!==0?t.jsx(vs,{children:t.jsxs(Ss,{children:[r.length>0?t.jsxs(js,{children:[t.jsxs(xi,{children:[lu,t.jsx(fi,{isCircular:r.length<10,children:t.jsx(yi,{children:r.length})})]}),t.jsx(gi,{"data-testid":z("expense-automation","draft-je-schedules"),children:r.map((b,j)=>t.jsx(tu,{ignoreStatus:x[b.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:A,jeScheduleClickHandler:O,draft:b},`${j}_${b.jeScheduleId}`))})]}):null,y.length>0?t.jsxs(ks,{children:[t.jsxs(xi,{children:[cu,t.jsx(fi,{isCircular:y.length<10,children:t.jsx(yi,{children:y.length})})]}),t.jsx(gi,{"data-testid":z("expense-automation","resolve-je-schedules"),children:y.map((b,j)=>m[b.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(ru,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:O,onPostJESchedule:h,uncategorizedAccounts:C,allAccountList:v,allAccountGroupedOptions:f,allClassGroupedOptions:R,allClassList:w,allDepAccountGroupedOptions:$,allDepAccountList:I,draft:b,postStatus:u[b.scheduledJournalEntry.scheduledJournalEntryID],localData:m[b.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${j}_${b.jeScheduleTransactionKey}`))})]}):null]})}):null}const gi=a.div`
|
|
855
855
|
display: flex;
|
|
@@ -1167,7 +1167,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1167
1167
|
z-index: ${g[2]};
|
|
1168
1168
|
min-width: ${Gi}px;
|
|
1169
1169
|
max-width: ${Yi}px;
|
|
1170
|
-
`,An="monthEndReportFormSection",Si="monthEndReportPage",Ye=je.getLocalizedStrings();function Ih({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:y,onCloseAllThreadsSection:C,previewMonthEndReport:v,saveMonthEndReport:w,onEditClick:I,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:$,sendMonthEndReport:R}){const A=vt(),[O,b]=s.useState(),[j,E]=s.useState(0),[T,V]=s.useState(0),M=s.useRef(),q=s.useRef(null),_=s.useRef(null),{html:N,subject:J,improveUsingZeniGPTStatus:K}=d,[F,le]=s.useState(),[
|
|
1170
|
+
`,An="monthEndReportFormSection",Si="monthEndReportPage",Ye=je.getLocalizedStrings();function Ih({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:y,onCloseAllThreadsSection:C,previewMonthEndReport:v,saveMonthEndReport:w,onEditClick:I,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:$,sendMonthEndReport:R}){const A=vt(),[O,b]=s.useState(),[j,E]=s.useState(0),[T,V]=s.useState(0),M=s.useRef(),q=s.useRef(null),_=s.useRef(null),{html:N,subject:J,improveUsingZeniGPTStatus:K}=d,[F,le]=s.useState(),[fe,Y]=s.useState(!1),[he,ie]=s.useState(!1),k=s.useRef(null),U=s.useRef(null),H=ca(p,250),P=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:L,sortedThreads:B,threadsPositions:ee,observer:ge,unresolvedThreadsMap:D,handleRemoveFloatingThread:ce}=da(i,k,!c,P,r),X=s.useCallback(()=>{p?U.current!=null&&V(Math.min((U.current.offsetWidth-rn-g[4])/2,U.current.offsetWidth-rn-Yi-g[4])):U.current!=null&&E(Math.min((U.current.offsetWidth-rn-g[4])/2,U.current.offsetWidth-rn-Gi-g[4]))},[p]);s.useEffect(()=>{X()},[p,X]),s.useEffect(()=>(window.addEventListener("resize",X),()=>{window.removeEventListener("resize",X)}),[X]);const te=r?Hi:Ui,{openThread:ve,addThread:$e,setOpenThread:S}=s.useContext(te),Z=ua(Ro,!1,!c),ye=k.current?.getBoundingClientRect(),_e=Z!=null&&Z.coords&&ye?{left:Z.coords.left-ye.left,top:Z.coords.top-ye.top}:void 0,Ne=s.useCallback(()=>{const Oe=window.getSelection()?.getRangeAt(0),re=ha();if(!Oe||re==null)return;const oe={...l,...re,startPath:re.startPath.join(),endPath:re.endPath.join()},be=`${Xi()}${Zi}`,Ie=`cockpit_${e}`;$e(be,{type:"thread",id:be,roomId:Ie,createdAt:new Date,comments:[],metadata:oe,updatedAt:new Date,resolved:!1}),S(be)},[$e,e,l,S]);s.useEffect(()=>{ve!=null&&p&&C()},[p,ve,C]);const ke=K.fetchState==="In-Progress",Te=Wt({mode:"all",defaultValues:ji(d),values:ji(d)}),me=Te.handleSubmit(Oe=>{const{recipientEmailList:re,subject:oe}=Oe[An];if(c===!0)R?.(F?.id);else{const be=O?.replace(pa,Ye.common.strings.empty);re!=null&&oe!=null&&v(re,oe,F?.id,be!=null&&be.length>0?O:void 0)}}),et=()=>{q.current!=null&&q.current.click()},Je=()=>{F!==void 0&&F!=null&&(x([F.id]),le(void 0),Y(!1))},Ke=Oe=>{const re=Oe.target.files?Oe.target.files[0]:null;if(re)if(!W.toSupportedAttachmentFileType(re.type)||he)console.warn("Please select a valid file.");else{const oe=new FileReader;oe.onload=function(be){const Ie=be.target?.result;if(typeof Ie=="string"){const st={data:Ie.split(",")[1],name:re.name,id:W.getAttachmentFileIdByFileName(e,re.name)};le(st),Y(!0),y([st])}},oe.readAsDataURL(re)}},de=()=>{_.current&&_.current.scrollIntoView({behavior:"smooth"})},He=()=>{const Oe=Te.getValues(),{recipientEmailList:re,subject:oe}=Oe[An];re!=null&&oe!=null&&w(re,oe,F?.id,O)};s.useEffect(()=>{b(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),s.useEffect(()=>{M.current=F},[F]),s.useEffect(()=>{le(W.mapAttachmentFileToAttachmentFilePayload(d.attachmentFile)),Y(!1)},[d.attachmentFile]),s.useEffect(()=>{he&&f()},[he,f]);const ot=W.zeniDate(`${m.year}-${m.month}-01`).format(Ye.dateFormat.visual.MMMMFormat),it=N!=null?N.split(ma):[],jt=d.concatenatedHtml,kt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Fa,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Ye.cockpit.monthEndReport.timeStampLabel}):null,Ft=()=>r===!0?H?t.jsxs(t.Fragment,{children:[t.jsx(kh,{allThreadsSectionOpen:p,children:t.jsx(Oa,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${A.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Qe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:A.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:(Oe,re)=>{S(re);const oe=B.findIndex(be=>be[0]===re);C(),L.current?.[oe]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Jn,{availableWidth:j})]}):t.jsx(Ma,{observer:ge,canvasContainerRef:k,sortedThreads:B,threadsPositions:ee,threadsRefs:L,unresolvedThreadsMap:D,editorMode:!c,style:{minWidth:`${j}px`,position:"relative",height:"fit-content",top:`${k.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:ce}):t.jsx(Jn,{availableWidth:j}),It=(d.zeniRequestsData??[]).length+ga(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(ph,{ref:U,children:[t.jsx(Jn,{availableWidth:p?T:j}),t.jsxs(hh,{children:[t.jsx(qt,{...Te,children:t.jsx("form",{id:ki(Si),onSubmit:me,children:t.jsxs(vh,{children:[t.jsx(xa,{sectionId:An,previewMode:c,subject:J}),!c&&It>0?t.jsx(fa,{totalItems:It,onClickCustomerRequest:$}):null,t.jsxs(xh,{id:Ro,ref:k,children:[t.jsxs(fh,{className:"monthEndReportCanvasWrapper",children:[F!=null||he?t.jsx(yh,{"data-testid":z("email-attachment-container"),onClick:de,children:t.jsx(ya,{fileSizeError:he,setFileSizeError:ie,loading:!1,showAnimation:!c&&fe})}):null,c?t.jsx(vi,{dangerouslySetInnerHTML:{__html:Ca(jt)}}):t.jsxs(t.Fragment,{children:[t.jsxs(gh,{id:wa,children:[t.jsx(Fe,{dangerouslySetInnerHTML:{__html:it[0]!=null?it[0]+"</body></html>":Ye.common.strings.empty}}),t.jsxs(mh,{children:[t.jsx(bh,{children:Ye.cockpit.monthEndReport.editorTitle}),t.jsx(wh,{children:Ye.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Ch,{id:ba,children:t.jsx(va,{handleFileInputClick:et,fileAttached:F!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:ke,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:b,customerRequestData:h})}),t.jsx(vi,{id:Qi,dangerouslySetInnerHTML:{__html:it[1]!=null?"<html><body>"+it[1]:Ye.common.strings.empty}})]}),F!=null?t.jsx(Sa,{ref:_,fileName:F.name,fileSize:ja(F.data),onRemove:Je,isRemovable:!c}):null]}),_e?t.jsx(ka,{style:{zIndex:15},coords:_e,alignment:Z.alignment,onClick:Ne}):null,t.jsx(Ia,{canvasContainerRef:k,sortedThreads:B,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(es,{name:F?.name??Ye.common.strings.empty,fileRef:q,sizeLimit:uh,acceptableTypes:dh,onFileChange:async Oe=>{Ke(Oe)},onFileSizeError:Oe=>ie(Oe),multiple:!1})]}),Ft()]}),t.jsx(Wi,{style:{zIndex:10},leftSideComponent:kt(),formId:ki(Si),cancelBtn:{isDisabled:ke,label:c===!0?Ye.cockpit.monthEndReport.editButtonLabel:Ye.cockpit.monthEndReport.saveChanges,onClick:c===!0?I:He,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:ke,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__",ot):Ye.cockpit.monthEndReport.preview,size:"medium"}})]})}const ji=e=>({[An]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ye.common.strings.empty}}),ki=e=>`${e}_form`;Et.smallBold.lineHeightValue;const $h=1,Th=50,Ii=56,Lh=["memo"],$i=e=>W.stringToUnionStrict(e,Lh),{common:{strings:{empty:Ah}},expenseAutomation:{transactions:{header:{vendors:Eh,category:Rh,classText:Dh,date:Oh,type:Mh,amount:Fh}}}}=je.getLocalizedStrings(),Ph={key:"vendor",value:Eh,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[7]}}},zh={key:"category",value:Rh,sortOrder:"ascending",width:new Q(20,20),customStyle:{common:{paddingLeft:g[7]}}},Bh={key:"class",value:Dh,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[7]}}},_h={key:"date",value:Oh,sortOrder:"descending",width:new Q(11,11),customStyle:{common:{paddingLeft:12}}},Nh={key:"transaction_type",value:Mh,sortOrder:"descending",width:new Q(13,13),customStyle:{common:{paddingLeft:g[3]}}},Vh={key:"memo",value:Ah,sortOrder:"ascending",width:new Q(6,6),customStyle:{common:{}}},Hh={key:"amount",value:Fh,sortOrder:"ascending",width:new Q(10,10),customStyle:{common:{paddingRight:g[4]}}},wt=[Ph,zh,Bh,_h,Nh,Vh,Hh],Kn={sortKey:"date",sortOrder:"descending"},Ns=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=Se(),[h,p]=s.useState(vo(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=>{$i(r.key)==null&&i(W.toTransactionsSortKey(r.key),r.sortOrder)};return t.jsx(Uh,{windowSize:c,"data-testid":z("transaction-categorization-header-container"),children:h.map((r,m)=>{const u=n!=null||$i(r.key)!=null;return t.jsxs(Wh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,"data-testid":z("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Yh,{"data-testid":z("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Gh,{children:r.value}),u?null:t.jsx(Jh,{sortConfig:e,headerData:r,"data-testid":z("transaction-categorization-sort-icon",r.key),children:t.jsx(Zh,{})})]}),u?null:t.jsx(Kh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Kn.sortKey,"data-testid":z("transaction-categorization-close-icon",r.key),children:t.jsx(qh,{onClick:()=>{i(Kn.sortKey,Kn.sortOrder)},"data-testid":z("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},Uh=a.div`
|
|
1171
1171
|
top: ${o.sp0};
|
|
1172
1172
|
left: ${o.sp0};
|
|
1173
1173
|
height: ${Th}px;
|
|
@@ -1219,7 +1219,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1219
1219
|
}
|
|
1220
1220
|
`,Gh=a(gt)`
|
|
1221
1221
|
display: flex;
|
|
1222
|
-
`,Zn="expenseAutomationTransactionsPage",Ut="transactionCategorizationListTable",Ae="account",Ge="class",ct="lineEntitySelection",Xh="lineEntity",Qh="recommendations",Vs="lineInfo",ep="vendorDetails",tp="customerDetails",En="selectedTransactionIds",Lt=(e,n,d)=>`${e}.${d}.${n}`,np=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:op,hyphen:In,empty:Qt}},expenseAutomation:{transactions:At},dateFormat:ip}=je.getLocalizedStrings(),Rt={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[1],g[2]),containerPaddingTopBottomEmpty:new Q(g[2],g[3]),nameLogoWidth:new Q(g[2],g[4]),nameLogoHeight:new Q(g[2],g[4])},sp=({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:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:v})=>{const w=Se(),[I,f]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,A=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=R.filter(k=>A.indexOf(k)!==-1),b=[];O.forEach(k=>{b.push($[k])});const{accountList:j,accountsHierarchyList:E,classHierarchyList:T,classList:V,uncategorizedAccounts:M,transactions:q,selectedCheckBoxTransactionIds:_}=e,N=_.includes(n.transactionId),J=vt(),K={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||N?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:k=>({...k,color:I||N?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:k=>({...k,zIndex:10})},F={...K,singleValue:k=>({...k,color:I||N?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:k=>({...k,color:I||N?J.colors.primary:J.colors.hero,textAlign:"left"})},le=q.find(k=>k.id===n.transactionId),ye=(k,U)=>{const{transactionType:H}=U.transactionReviewLocalData;let P=k.target;for(;P;){if(P.classList.contains("select-value-container")||P.classList.contains("item-value-container")||P.classList.contains("grouped-single-select-field__value-container")||P.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||P.classList.contains("grouped-single-select-field__input")||P.classList.contains("grouped-single-select-field__menu"))return;P=P.parentElement}H!=null&&m(U.transactionId,H)},Y=s.useRef(null),[he,se]=s.useState("auto");return s.useEffect(()=>{const k=()=>{if(i.current!=null&&Y.current!=null){const U=i.current.getBoundingClientRect(),H=Y.current.getBoundingClientRect().top-U.top;se(H>285?"top":"bottom")}};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k)}},[i]),t.jsx(lp,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),windowSize:w,isSelected:N,isHovered:I,children:t.jsx(cp,{children:b.map((k,U)=>t.jsx(dp,{ref:Y,"data-testid":z("transaction-categorization-list-row",k.lineId),windowSize:w,onClick:H=>ye(H,n),children:t.jsx(ap,{line:k,isHovered:I||N,isSelected:N,lineIndex:U,sectionId:d,transaction:n,currentTransaction:le,windowSize:w,accountsHierarchyList:E,classHierarchyList:T,allAccountList:j,allClassList:V,uncategorizedAccounts:M,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:K,customStyleAutoComplete:F,recommendations:k.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:he,cotTracking:r,openTooltipId:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:v})},`${n.transactionId}.${k.lineId}`))},n.transactionId)},n.transactionId)},ap=({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:y=!1,isSelected:C=!1,sectionId:v,recommendations:w,vendorSearchAutoCompleteData:I,selectedTab:f,isCOTEnabled:$,menuPlacement:R,cotTracking:A,openTooltipId:O,setCurrentTransactionInAction:b,vendorLoadOptions:j,setOpenTooltipId:E,isUncategorizedExpenseCategoryEnabled:T})=>{const{description:V,transactionDate:M,transactionType:q,transactionTypeName:_,memo:N}=r.transactionReviewLocalData,{setValue:J}=wo(),K=s.useCallback((ie,xe)=>{A?.onCOTView!=null&&A.onCOTView(i.lineId,r.transactionId,ie,xe)},[A,i.lineId,r.transactionId]),F=s.useMemo(()=>{if(V||N){const ie={title:At.description,description:V||In},xe={title:At.header.memo,description:N||In};return N?.trim()===V?.trim()?[xe]:[ie,xe]}},[N,V]),le=Lt(v,ct,l.toString()),ye=Lt(v,Ae,l.toString()),Y=Lt(v,Ge,l.toString()),he=(ie,xe)=>{let Pe;switch(xe){case"vendor":Pe=le;break;case"category":Pe=ye;break;case"class":Pe=Y;break;default:return}J(`${Pe}.selectedOption`,ie,{shouldValidate:!0,shouldDirty:!0})},se=vt(),k=s.useMemo(()=>m!=null&&W.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]),U=s.useMemo(()=>m!=null&&W.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]),H=i[Ge]?.classId,P=i[Ae]?.qboId??i[Ae]?.accountId,L=k?.id,B=U?.id,ee=U?.name,[ge,D]=s.useState(!H),[ce,X]=s.useState(!P||i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!0),[te,ve]=s.useState(!B||!L),$e=ie=>w?.find(xe=>xe.vendor?.qboId===ie||xe.vendor?.id===ie||xe.vendor?.name===ie)?.vendor?.reason??"",S=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Z=hs(e,S),Ce=us(c,S),_e=ie=>n.filter(xe=>xe.qboId===ie)[0]?.qboId,Ne=ie=>d.filter(xe=>xe.classId===ie)[0]?.accountingClassNumber??void 0,ke=s.useCallback(ie=>W.isAccountUncategorized(x,ie,T===!0?["income"]:void 0),[x,T]),[Te,me]=s.useState(!1),[et,Je]=s.useState(!1),[Ke,de]=s.useState(!1),He=(ie,xe)=>{b({transactionId:r.transactionId,lineItemId:i.lineId}),j(ie,xe)},ot=()=>{ve(!(B||L)),me(!1)},it=()=>{P&&i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!1?X(!1):X(!0),de(!1)},jt=()=>{D(!H),Je(!1)},kt=()=>{(B||L)&&me(!0)},Ft=()=>{Je(!0)},It=()=>{de(!0)};s.useEffect(()=>{P&&i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!1?X(!1):X(!0)},[P]),s.useEffect(()=>{D(!H)},[H]),s.useEffect(()=>{ve(!(B||L))},[B,L]);const Oe=r.transactionReviewLocalData.selectedEntity,re=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,oe=m!=null&&W.isVendorTransaction(m)===!0?Oe:re,be=s.useMemo(()=>{const ie=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],xe=I.entityAutoCompleteView;return{selectedOption:oe?.qboId??oe?.id,defaultOptions:yo(xe,oe,ie??[])}},[oe,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),Ie=()=>oe!=null&&oe.logo!=null?t.jsx(ls,{photoUrl:oe.logo.toString(),styles:{width:Rt.nameLogoWidth.valuePx(u),height:Rt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Ai,{children:t.jsx(dn,{name:oe.name,size:o.sp4})})}):oe!=null&&oe.name!=null?t.jsx(Ai,{children:t.jsx(dn,{name:oe.name,size:o.sp4})}):null,st=(ie,xe)=>{if(xe==null||!xe)return;let Pe=[];return ie.forEach(Ze=>{Pe=Pe.concat(Ze.options)}),Pe.find(Ze=>Ze.value===xe)?.label??xe},at=st(Ce,H),$t=st(Z,P),Me=f==="review",Jt=Bn("vendor",be.defaultOptions,be.selectedOption),Kt=Bn("category",Z,P),Pt=Bn("class",Ce,H),mn=()=>wt.map((ie,xe)=>{const Pe=`${r.transactionId}_${ie.key}_${i.lineId}`;if(l>0&&m!=null&&W.isVendorTransaction(m)===!0&&ie.key==="vendor")return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width},Pe);if(l>0&&ie.key==="transaction_type")return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width},Pe);switch(ie.key){case"vendor":default:return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"vendor",isFirstColumn:!0,isEnabled:!!oe?.isPreFilled,isMisCategorized:Jt,onRecommendationClick:he,selectedValue:B,selectedValueLabel:ee,isReviewTab:Me,isAccountOptionDisabled:ke,existingOption:{label:m!=null&&W.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&W.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:te===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:Ze=>{Ze.stopPropagation(),ve(!1),me(!0)},"data-testid":z("add-vendor-button",v),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addPayee]})}):Te===!0?t.jsx(yt,{onClickAway:ot,children:t.jsx(Sp,{"data-testid":z("vendor-selection-dropdown-container",Lt(v,ct,l.toString())),children:t.jsx(Za,{name:le,placeholder:At.addPayee,valueToInfo:$e,defaultValue:{selectedOption:be.selectedOption,defaultOptions:be.defaultOptions},type:"vendor",autoFocus:!te,style:{width:"100%"},pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Te,onMenuClose:ot,registerOptions:{required:!1},loadOptions:He,showCOT:$,onCOTView:K,menuPlacement:R})})}):t.jsx(kp,{children:t.jsxs(eo,{isHovered:y,showOutline:Jt&&oe?.isPreFilled!==!0&&!C&&Me,children:[Ie(),t.jsx(vp,{onClick:kt,"data-testid":z("vendor-name-text",v),children:oe!=null&&oe.name?t.jsx(nt,{text:oe.name,itemTextStyle:{color:y?se.colors.primary:se.colors.hero}}):t.jsx(jp,{children:In})})]})})})]},Pe);case"category":{const Ze=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"category",isFirstColumn:!1,isReviewTab:Me,isEnabled:!!i[Ae]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Kt,onRecommendationClick:he,selectedValue:P,selectedValueLabel:$t,existingOption:{label:Ze?.account?.accountName,value:Ze?.account?.qboId??Ze?.account?.accountId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:ce===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:zt=>{zt.stopPropagation(),X(!1),de(!0)},"data-testid":z("category-selection-field",ye),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addCategory]})}):Ke===!0?t.jsx(yt,{onClickAway:it,children:t.jsx(Ei,{isHovered:y,"data-testid":z("category-selection-dropdown-container",ye),children:t.jsx(Bo,{name:ye,placeholder:At.addCategory,valueToId:zt=>_e(zt),type:"category",pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:P,allOptions:Z},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ke,autoFocus:!ce&&(!P||i[Ae]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Ae].qboId)),onMenuClose:it,customStyleConfig:h,disableCurrentOption:ke,menuPlacement:R,onCOTView:K})})}):t.jsx(eo,{isHovered:y,showOutline:Kt&&i[Ae]?.isPreFilled!==!0&&!C&&Me,children:t.jsx(Ri,{onClick:It,"data-testid":z("category-label-text",ye),children:t.jsx(nt,{text:$t??"",itemTextStyle:{color:y?se.colors.primary:se.colors.hero}})})})})]},Pe)}case"class":{const Ze=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"class",isFirstColumn:!1,isReviewTab:Me,isEnabled:!!i[Ge]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Pt,onRecommendationClick:he,selectedValue:H,selectedValueLabel:at,existingOption:{label:Ze?.class?.className,value:Ze?.class?.classId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:ge===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:zt=>{zt.stopPropagation(),D(!1),Je(!0)},"data-testid":z("class-selection-field",Y),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addClass]})}):et===!0?t.jsx(yt,{onClickAway:jt,children:t.jsx(Ei,{isHovered:y,"data-testid":z("class-selection-dropdown-container",Y),children:t.jsx(Bo,{name:Y,placeholder:At.addClass,valueToId:zt=>Ne(zt),type:"class",showCOT:$,defaultValue:{selectedOption:H,allOptions:Ce},pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",menuIsOpen:et,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ge&&!H,customStyleConfig:h,onMenuClose:jt,menuPlacement:R,onCOTView:K})})}):t.jsx(eo,{isHovered:y,showOutline:Pt&&i[Ge]?.isPreFilled!==!0&&!C&&Me,children:t.jsx(Ri,{"data-testid":z("class-selection-field",Y),onClick:Ft,children:t.jsx(nt,{text:at??"",itemTextStyle:{color:y?se.colors.primary:se.colors.hero}})})})})]},Pe)}case"date":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(on,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(go,{"data-testid":z("date-field",Lt(v,Ge,l.toString())),children:t.jsx(hp,{style:{color:y?se.colors.primary:se.colors.hero},children:M!=null?M.format(ip.visual.MMMDCommaYYYYformat):null})})})},Pe);case"transaction_type":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(on,{windowSize:u,"data-testid":z("transaction-type-field",Lt(v,Ge,l.toString())),isLastItem:xe===wt.length-1,children:_!=null?t.jsx(Ja,{textColor:y?new Co(se.colors.primary):Ka(void 0,se),text:_??q}):null})},Pe);case"memo":return t.jsx(rt,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(on,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:xe===wt.length-1,"data-testid":z("memo-field",Lt(v,Ge,l.toString())),children:F!=null&&l==0?t.jsx(we,{placement:"bottom",data:F,variant:"multi-information-points",children:t.jsx(mp,{style:{color:y?se.colors.primary:se.colors.hero}})}):l==0?t.jsx(pp,{children:In}):null})},Pe);case"amount":{const Ze=qe("0,0.[00]",i.amount,!0);return t.jsx(rt,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ie.width,children:t.jsx(on,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(go,{"data-testid":z("transaction-amount-field",Lt(v,Ge,l.toString())),style:{color:y?se.colors.primary:se.colors.hero},children:Ze})})},Pe)}}});return t.jsx(t.Fragment,{children:mn()})},Ti=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(fp,{}):t.jsx(gp,{}):h?t.jsx(xp,{}):t.jsx(yp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(wp,{}):t.jsx(Cp,{}):null,Li=({isFirstColumn:e,children:n})=>t.jsx(Us,{isFirstColumn:e,children:n}),Yn=({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:y,transactionId:C,isAccountOptionDisabled:v,onRecommendationClick:w,setOpenTooltipId:I})=>{const f=s.useMemo(()=>`${C}:${x}:${d}`,[C,x,d]),$=y===f,R=Xa().analytics,{createAlternateRecommendationCallback:A}=Qa(),O=s.useCallback(q=>{const _=e[1],N=e[0];A(d,{currentValue:h??Qt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:x,onCOTView:(J,K,F,le)=>{u.onCOTView?.(J,K,F,le)}}:void 0},_,N)(q)},[A,e,h,c,d,u,x,C]),b=er(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",w,O,r,v),j=tr(e,d),E=s.useCallback(()=>{I(f);const q=b?.recommendations[0]?.cot??[],_=b?.recommendations[1]?.cot??[],N=_.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Qt,recommendation:b?.recommendations[0]?.name??Qt,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:b?.recommendations[0]?.reason??Qt,recommendationConfidencePercentage:b?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Fo(Po(b?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:b?.recommendations[1]?.name??Qt,alternativeRecommendationCot:_,isAlternativeRecommendationCotAvailable:N,alternativeRecommendationReason:b?.recommendations[1]?.reason??Qt,alternativeRecommendationConfidencePercentage:b?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:N?Fo(Po(b?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=nr(b);J!=null&&u.onCOTView(x,C,d,J)}},[R,b,c,h,d,x,C,f,I]),T=s.useCallback(()=>{y===f&&I(void 0)},[y,f,I]),V=s.useMemo(()=>!r||!j?!1:e.some(q=>d==="vendor"&&q.vendor!=null?q.vendor.id===r||q.vendor.qboId===r:d==="category"&&q.account!=null?q.account.qboId===r||q.account.accountId===r:d==="class"&&q.class!=null?q.class.classId===r:!1),[r,j,e,d]);if(!j)return t.jsx(Us,{isFirstColumn:p});const M=i||V;return b?t.jsx(Li,{isFirstColumn:p,children:t.jsx(we,{variant:"chain-of-thought",data:b,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:E,onClose:T,children:t.jsx(bp,{children:t.jsx(Ti,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:$})})})}):t.jsx(Li,{isFirstColumn:p,children:t.jsx(Ti,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:$})})},Hs=()=>{const e=Se(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(rp,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${op}${h.key}`;switch(h.key){case"vendor":return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(on,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsxs(go,{children:[t.jsx(bo,{width:g[4],height:g[4]}),t.jsx(Ot,{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(on,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsx(Ot,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},rp=a.div`
|
|
1222
|
+
`,Zn="expenseAutomationTransactionsPage",Ut="transactionCategorizationListTable",Ae="account",Ge="class",ct="lineEntitySelection",Xh="lineEntity",Qh="recommendations",Vs="lineInfo",ep="vendorDetails",tp="customerDetails",En="selectedTransactionIds",Lt=(e,n,d)=>`${e}.${d}.${n}`,np=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:op,hyphen:In,empty:Qt}},expenseAutomation:{transactions:At},dateFormat:ip}=je.getLocalizedStrings(),Rt={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[1],g[2]),containerPaddingTopBottomEmpty:new Q(g[2],g[3]),nameLogoWidth:new Q(g[2],g[4]),nameLogoHeight:new Q(g[2],g[4])},sp=({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:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:v})=>{const w=Se(),[I,f]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,A=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=R.filter(k=>A.indexOf(k)!==-1),b=[];O.forEach(k=>{b.push($[k])});const{accountList:j,accountsHierarchyList:E,classHierarchyList:T,classList:V,uncategorizedAccounts:M,transactions:q,selectedCheckBoxTransactionIds:_}=e,N=_.includes(n.transactionId),J=vt(),K={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||N?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:k=>({...k,color:I||N?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:k=>({...k,zIndex:10})},F={...K,singleValue:k=>({...k,color:I||N?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:k=>({...k,color:I||N?J.colors.primary:J.colors.hero,textAlign:"left"})},le=q.find(k=>k.id===n.transactionId),fe=(k,U)=>{const{transactionType:H}=U.transactionReviewLocalData;let P=k.target;for(;P;){if(P.classList.contains("select-value-container")||P.classList.contains("item-value-container")||P.classList.contains("grouped-single-select-field__value-container")||P.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||P.classList.contains("grouped-single-select-field__input")||P.classList.contains("grouped-single-select-field__menu"))return;P=P.parentElement}H!=null&&m(U.transactionId,H)},Y=s.useRef(null),[he,ie]=s.useState("auto");return s.useEffect(()=>{const k=()=>{if(i.current!=null&&Y.current!=null){const U=i.current.getBoundingClientRect(),H=Y.current.getBoundingClientRect().top-U.top;ie(H>285?"top":"bottom")}};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k)}},[i]),t.jsx(lp,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),windowSize:w,isSelected:N,isHovered:I,children:t.jsx(cp,{children:b.map((k,U)=>t.jsx(dp,{ref:Y,"data-testid":z("transaction-categorization-list-row",k.lineId),windowSize:w,onClick:H=>fe(H,n),children:t.jsx(ap,{line:k,isHovered:I||N,isSelected:N,lineIndex:U,sectionId:d,transaction:n,currentTransaction:le,windowSize:w,accountsHierarchyList:E,classHierarchyList:T,allAccountList:j,allClassList:V,uncategorizedAccounts:M,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:K,customStyleAutoComplete:F,recommendations:k.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:he,cotTracking:r,openTooltipId:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:v})},`${n.transactionId}.${k.lineId}`))},n.transactionId)},n.transactionId)},ap=({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:y=!1,isSelected:C=!1,sectionId:v,recommendations:w,vendorSearchAutoCompleteData:I,selectedTab:f,isCOTEnabled:$,menuPlacement:R,cotTracking:A,openTooltipId:O,setCurrentTransactionInAction:b,vendorLoadOptions:j,setOpenTooltipId:E,isUncategorizedExpenseCategoryEnabled:T})=>{const{description:V,transactionDate:M,transactionType:q,transactionTypeName:_,memo:N}=r.transactionReviewLocalData,{setValue:J}=wo(),K=s.useCallback((ae,Ce)=>{A?.onCOTView!=null&&A.onCOTView(i.lineId,r.transactionId,ae,Ce)},[A,i.lineId,r.transactionId]),F=s.useMemo(()=>{if(V||N)return[{title:At.description,description:V||In},{title:At.header.memo,description:N||In}]},[N,V]),le=Lt(v,ct,l.toString()),fe=Lt(v,Ae,l.toString()),Y=Lt(v,Ge,l.toString()),he=(ae,Ce)=>{let Pe;switch(Ce){case"vendor":Pe=le;break;case"category":Pe=fe;break;case"class":Pe=Y;break;default:return}J(`${Pe}.selectedOption`,ae,{shouldValidate:!0,shouldDirty:!0})},ie=vt(),k=s.useMemo(()=>m!=null&&W.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]),U=s.useMemo(()=>m!=null&&W.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]),H=i[Ge]?.classId,P=i[Ae]?.qboId??i[Ae]?.accountId,L=k?.id,B=U?.id,ee=U?.name,[ge,D]=s.useState(!H),[ce,X]=s.useState(!P||i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!0),[te,ve]=s.useState(!B||!L),$e=ae=>w?.find(Ce=>Ce.vendor?.qboId===ae||Ce.vendor?.id===ae||Ce.vendor?.name===ae)?.vendor?.reason??"",S=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Z=hs(e,S),ye=us(c,S),_e=ae=>n.filter(Ce=>Ce.qboId===ae)[0]?.qboId,Ne=ae=>d.filter(Ce=>Ce.classId===ae)[0]?.accountingClassNumber??void 0,ke=s.useCallback(ae=>W.isAccountUncategorized(x,ae,T===!0?["income"]:void 0),[x,T]),[Te,me]=s.useState(!1),[et,Je]=s.useState(!1),[Ke,de]=s.useState(!1),He=(ae,Ce)=>{b({transactionId:r.transactionId,lineItemId:i.lineId}),j(ae,Ce)},ot=()=>{ve(!(B||L)),me(!1)},it=()=>{P&&i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!1?X(!1):X(!0),de(!1)},jt=()=>{D(!H),Je(!1)},kt=()=>{(B||L)&&me(!0)},Ft=()=>{Je(!0)},It=()=>{de(!0)};s.useEffect(()=>{P&&i[Ae]?.qboId!=null&&W.isAccountUncategorized(x,i[Ae].qboId,T===!0?["income"]:void 0)===!1?X(!1):X(!0)},[P]),s.useEffect(()=>{D(!H)},[H]),s.useEffect(()=>{ve(!(B||L))},[B,L]);const Oe=r.transactionReviewLocalData.selectedEntity,re=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,oe=m!=null&&W.isVendorTransaction(m)===!0?Oe:re,be=s.useMemo(()=>{const ae=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Ce=I.entityAutoCompleteView;return{selectedOption:oe?.qboId??oe?.id,defaultOptions:yo(Ce,oe,ae??[])}},[oe,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),Ie=()=>oe!=null&&oe.logo!=null?t.jsx(ls,{photoUrl:oe.logo.toString(),styles:{width:Rt.nameLogoWidth.valuePx(u),height:Rt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Ai,{children:t.jsx(dn,{name:oe.name,size:o.sp4})})}):oe!=null&&oe.name!=null?t.jsx(Ai,{children:t.jsx(dn,{name:oe.name,size:o.sp4})}):null,st=(ae,Ce)=>{if(Ce==null||!Ce)return;let Pe=[];return ae.forEach(Ze=>{Pe=Pe.concat(Ze.options)}),Pe.find(Ze=>Ze.value===Ce)?.label??Ce},at=st(ye,H),$t=st(Z,P),Me=f==="review",Jt=Bn("vendor",be.defaultOptions,be.selectedOption),Kt=Bn("category",Z,P),Pt=Bn("class",ye,H),mn=()=>wt.map((ae,Ce)=>{const Pe=`${r.transactionId}_${ae.key}_${i.lineId}`;if(l>0&&m!=null&&W.isVendorTransaction(m)===!0&&ae.key==="vendor")return t.jsx(rt,{windowSize:u,wrapperWidth:ae.width},Pe);if(l>0&&ae.key==="transaction_type")return t.jsx(rt,{windowSize:u,wrapperWidth:ae.width},Pe);switch(ae.key){case"vendor":default:return t.jsxs(rt,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"vendor",isFirstColumn:!0,isEnabled:!!oe?.isPreFilled,isMisCategorized:Jt,onRecommendationClick:he,selectedValue:B,selectedValueLabel:ee,isReviewTab:Me,isAccountOptionDisabled:ke,existingOption:{label:m!=null&&W.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&W.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:te===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:Ze=>{Ze.stopPropagation(),ve(!1),me(!0)},"data-testid":z("add-vendor-button",v),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addPayee]})}):Te===!0?t.jsx(yt,{onClickAway:ot,children:t.jsx(Sp,{"data-testid":z("vendor-selection-dropdown-container",Lt(v,ct,l.toString())),children:t.jsx(Za,{name:le,placeholder:At.addPayee,valueToInfo:$e,defaultValue:{selectedOption:be.selectedOption,defaultOptions:be.defaultOptions},type:"vendor",autoFocus:!te,style:{width:"100%"},pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Te,onMenuClose:ot,registerOptions:{required:!1},loadOptions:He,showCOT:$,onCOTView:K,menuPlacement:R})})}):t.jsx(kp,{children:t.jsxs(eo,{isHovered:y,showOutline:Jt&&oe?.isPreFilled!==!0&&!C&&Me,children:[Ie(),t.jsx(vp,{onClick:kt,"data-testid":z("vendor-name-text",v),children:oe!=null&&oe.name?t.jsx(nt,{text:oe.name,itemTextStyle:{color:y?ie.colors.primary:ie.colors.hero}}):t.jsx(jp,{children:In})})]})})})]},Pe);case"category":{const Ze=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"category",isFirstColumn:!1,isReviewTab:Me,isEnabled:!!i[Ae]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Kt,onRecommendationClick:he,selectedValue:P,selectedValueLabel:$t,existingOption:{label:Ze?.account?.accountName,value:Ze?.account?.qboId??Ze?.account?.accountId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:ce===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:zt=>{zt.stopPropagation(),X(!1),de(!0)},"data-testid":z("category-selection-field",fe),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addCategory]})}):Ke===!0?t.jsx(yt,{onClickAway:it,children:t.jsx(Ei,{isHovered:y,"data-testid":z("category-selection-dropdown-container",fe),children:t.jsx(Bo,{name:fe,placeholder:At.addCategory,valueToId:zt=>_e(zt),type:"category",pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:P,allOptions:Z},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ke,autoFocus:!ce&&(!P||i[Ae]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Ae].qboId)),onMenuClose:it,customStyleConfig:h,disableCurrentOption:ke,menuPlacement:R,onCOTView:K})})}):t.jsx(eo,{isHovered:y,showOutline:Kt&&i[Ae]?.isPreFilled!==!0&&!C&&Me,children:t.jsx(Ri,{onClick:It,"data-testid":z("category-label-text",fe),children:t.jsx(nt,{text:$t??"",itemTextStyle:{color:y?ie.colors.primary:ie.colors.hero}})})})})]},Pe)}case"class":{const Ze=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(rt,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(Yn,{isCOTEnabled:$,recommendations:S,type:"class",isFirstColumn:!1,isReviewTab:Me,isEnabled:!!i[Ge]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Pt,onRecommendationClick:he,selectedValue:H,selectedValueLabel:at,existingOption:{label:Ze?.class?.className,value:Ze?.class?.classId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(to,{children:ge===!0?t.jsx(Qn,{isHovered:y,children:t.jsxs(Gn,{onClick:zt=>{zt.stopPropagation(),D(!1),Je(!0)},"data-testid":z("class-selection-field",Y),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Xn,{}),At.addClass]})}):et===!0?t.jsx(yt,{onClickAway:jt,children:t.jsx(Ei,{isHovered:y,"data-testid":z("class-selection-dropdown-container",Y),children:t.jsx(Bo,{name:Y,placeholder:At.addClass,valueToId:zt=>Ne(zt),type:"class",showCOT:$,defaultValue:{selectedOption:H,allOptions:ye},pageSource:"list_page",transactionStatus:Me?"pending_review":"auto_categorized",menuIsOpen:et,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ge&&!H,customStyleConfig:h,onMenuClose:jt,menuPlacement:R,onCOTView:K})})}):t.jsx(eo,{isHovered:y,showOutline:Pt&&i[Ge]?.isPreFilled!==!0&&!C&&Me,children:t.jsx(Ri,{"data-testid":z("class-selection-field",Y),onClick:Ft,children:t.jsx(nt,{text:at??"",itemTextStyle:{color:y?ie.colors.primary:ie.colors.hero}})})})})]},Pe)}case"date":return t.jsx(rt,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(on,{windowSize:u,isLastItem:Ce===wt.length-1,children:t.jsx(go,{"data-testid":z("date-field",Lt(v,Ge,l.toString())),children:t.jsx(hp,{style:{color:y?ie.colors.primary:ie.colors.hero},children:M!=null?M.format(ip.visual.MMMDCommaYYYYformat):null})})})},Pe);case"transaction_type":return t.jsx(rt,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(on,{windowSize:u,"data-testid":z("transaction-type-field",Lt(v,Ge,l.toString())),isLastItem:Ce===wt.length-1,children:_!=null?t.jsx(Ja,{textColor:y?new Co(ie.colors.primary):Ka(void 0,ie),text:_??q}):null})},Pe);case"memo":return t.jsx(rt,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(on,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:Ce===wt.length-1,"data-testid":z("memo-field",Lt(v,Ge,l.toString())),children:F!=null&&l==0?t.jsx(we,{placement:"bottom",data:F,variant:"multi-information-points",children:t.jsx(mp,{style:{color:y?ie.colors.primary:ie.colors.hero}})}):l==0?t.jsx(pp,{children:In}):null})},Pe);case"amount":{const Ze=qe("0,0.[00]",i.amount,!0);return t.jsx(rt,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ae.width,children:t.jsx(on,{windowSize:u,isLastItem:Ce===wt.length-1,children:t.jsx(go,{"data-testid":z("transaction-amount-field",Lt(v,Ge,l.toString())),style:{color:y?ie.colors.primary:ie.colors.hero},children:Ze})})},Pe)}}});return t.jsx(t.Fragment,{children:mn()})},Ti=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(fp,{}):t.jsx(gp,{}):h?t.jsx(xp,{}):t.jsx(yp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(wp,{}):t.jsx(Cp,{}):null,Li=({isFirstColumn:e,children:n})=>t.jsx(Us,{isFirstColumn:e,children:n}),Yn=({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:y,transactionId:C,isAccountOptionDisabled:v,onRecommendationClick:w,setOpenTooltipId:I})=>{const f=s.useMemo(()=>`${C}:${x}:${d}`,[C,x,d]),$=y===f,R=Xa().analytics,{createAlternateRecommendationCallback:A}=Qa(),O=s.useCallback(q=>{const _=e[1],N=e[0];A(d,{currentValue:h??Qt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:x,onCOTView:(J,K,F,le)=>{u.onCOTView?.(J,K,F,le)}}:void 0},_,N)(q)},[A,e,h,c,d,u,x,C]),b=er(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",w,O,r,v),j=tr(e,d),E=s.useCallback(()=>{I(f);const q=b?.recommendations[0]?.cot??[],_=b?.recommendations[1]?.cot??[],N=_.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Qt,recommendation:b?.recommendations[0]?.name??Qt,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:b?.recommendations[0]?.reason??Qt,recommendationConfidencePercentage:b?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Fo(Po(b?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:b?.recommendations[1]?.name??Qt,alternativeRecommendationCot:_,isAlternativeRecommendationCotAvailable:N,alternativeRecommendationReason:b?.recommendations[1]?.reason??Qt,alternativeRecommendationConfidencePercentage:b?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:N?Fo(Po(b?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=nr(b);J!=null&&u.onCOTView(x,C,d,J)}},[R,b,c,h,d,x,C,f,I]),T=s.useCallback(()=>{y===f&&I(void 0)},[y,f,I]),V=s.useMemo(()=>!r||!j?!1:e.some(q=>d==="vendor"&&q.vendor!=null?q.vendor.id===r||q.vendor.qboId===r:d==="category"&&q.account!=null?q.account.qboId===r||q.account.accountId===r:d==="class"&&q.class!=null?q.class.classId===r:!1),[r,j,e,d]);if(!j)return t.jsx(Us,{isFirstColumn:p});const M=i||V;return b?t.jsx(Li,{isFirstColumn:p,children:t.jsx(we,{variant:"chain-of-thought",data:b,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:E,onClose:T,children:t.jsx(bp,{children:t.jsx(Ti,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:$})})})}):t.jsx(Li,{isFirstColumn:p,children:t.jsx(Ti,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:$})})},Hs=()=>{const e=Se(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(rp,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${op}${h.key}`;switch(h.key){case"vendor":return t.jsx(rt,{windowSize:e,wrapperWidth:h.width,children:t.jsx(on,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsxs(go,{children:[t.jsx(bo,{width:g[4],height:g[4]}),t.jsx(Ot,{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(on,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsx(Ot,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},rp=a.div`
|
|
1223
1223
|
display: flex;
|
|
1224
1224
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1225
1225
|
padding-left: ${e=>Rt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
@@ -1430,7 +1430,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1430
1430
|
min-height: 100%;
|
|
1431
1431
|
flex-direction: column;
|
|
1432
1432
|
row-gap: ${o.sp3};
|
|
1433
|
-
`,{common:Lp,transactionDetail:{notCategorizedTooltipText:Ap}}=je.getLocalizedStrings(),no={rowGap:new Q(g[0],g[2],g[3])},Ep=({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:y,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:v,containerRef:w,cotTracking:I,isUncategorizedExpenseCategoryEnabled:f})=>{const $=Se(),[R,A]=s.useState(void 0),{fetchState:O,uiState:b,transactionLocalData:j,selectedCheckBoxTransactionIds:E,transactionIdsWithUnsavedData:T,transactions:V,uncategorizedAccounts:M}=n,q=s.useRef(null),_=s.useRef({}),{control:N}=wo();s.useEffect(()=>{q.current?.resetAfterIndex(0,!0)},[$,q,j]),s.useEffect(()=>{q.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const J=s.useCallback(D=>{if(_.current?.[D]!=null){const te=$==="small"&&b.pageToken==null&&D===j.length-1?no.rowGap.value("medium-regular"):no.rowGap.value($);return _.current[D]+te}if(j[D]==null)return 0;const ce=j[D].transactionReviewLocalData,X=Object.keys(ce.lineItemById).length;return X!=null&&!isNaN(X)&&X>1?Ii*X+no.rowGap.value($)*(X-1):Ii},[j,$,b.pageToken,b.sortKey,b.sortOrder]),K=s.useCallback((D,ce)=>{_.current={..._.current,[D]:ce},q.current?.resetAfterIndex(0,!0)},[$,q,j,b.sortKey,b.sortOrder]),F=s.useCallback(()=>{(b.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&v(e,b.searchString,!0,b.pageToken,!0,!1)},[n.refreshStatus.fetchState,v,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),le=s.useCallback(()=>{b.pageToken!=null&&F()},[F,b.pageToken,b.sortKey,b.sortOrder]),
|
|
1433
|
+
`,{common:Lp,transactionDetail:{notCategorizedTooltipText:Ap}}=je.getLocalizedStrings(),no={rowGap:new Q(g[0],g[2],g[3])},Ep=({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:y,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:v,containerRef:w,cotTracking:I,isUncategorizedExpenseCategoryEnabled:f})=>{const $=Se(),[R,A]=s.useState(void 0),{fetchState:O,uiState:b,transactionLocalData:j,selectedCheckBoxTransactionIds:E,transactionIdsWithUnsavedData:T,transactions:V,uncategorizedAccounts:M}=n,q=s.useRef(null),_=s.useRef({}),{control:N}=wo();s.useEffect(()=>{q.current?.resetAfterIndex(0,!0)},[$,q,j]),s.useEffect(()=>{q.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const J=s.useCallback(D=>{if(_.current?.[D]!=null){const te=$==="small"&&b.pageToken==null&&D===j.length-1?no.rowGap.value("medium-regular"):no.rowGap.value($);return _.current[D]+te}if(j[D]==null)return 0;const ce=j[D].transactionReviewLocalData,X=Object.keys(ce.lineItemById).length;return X!=null&&!isNaN(X)&&X>1?Ii*X+no.rowGap.value($)*(X-1):Ii},[j,$,b.pageToken,b.sortKey,b.sortOrder]),K=s.useCallback((D,ce)=>{_.current={..._.current,[D]:ce},q.current?.resetAfterIndex(0,!0)},[$,q,j,b.sortKey,b.sortOrder]),F=s.useCallback(()=>{(b.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&v(e,b.searchString,!0,b.pageToken,!0,!1)},[n.refreshStatus.fetchState,v,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),le=s.useCallback(()=>{b.pageToken!=null&&F()},[F,b.pageToken,b.sortKey,b.sortOrder]),fe=za(D=>C(e,{scrollPosition:{scrollTop:D}}),1e3,{trailing:!0}),Y=D=>D<n.transactionLocalData.length,he=(D,ce)=>{y(e,{sortOrder:ce,sortKey:D}),v(e,b.searchString,!1,null,!1,!0)},ie=D=>{if(e==="autoCategorized")return!E.includes(D);const ce=j.find(te=>te.transactionId===D)?.transactionReviewLocalData,X=V.find(te=>te.id===D);return X!=null&&ce!=null?W.checkIfAllLineItemsAreCategoryClassFilled(X,ce,M,f)?f===!0&&Oo.isAnyItemWithUncategorizedExpenseAccount(M,ce.lineItemById,["expense"])?T.includes(D)===!1:!1:!0:E.length===0?!0:!E.includes(D)};let k=[],U=[];(O==="Completed"||n.transactionLocalData.length>0)&&(U=n.transactionLocalData.map((D,ce)=>{const X=ie(D.transactionId);let te=!1;f===!0&&X===!0&&e==="review"&&Oo.isAnyItemWithUncategorizedExpenseAccount(M,D.transactionReviewLocalData.lineItemById,["expense"])&&(te=!T.includes(D.transactionId));const ve=D.transactionReviewLocalData;return{label:t.jsx(sp,{transactionView:n,sectionId:`${h}.${ce}.${Vs}`,transaction:D,receiptUploadEndpoint:d,authParams:c,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:w,isCOTEnabled:p,cotTracking:I,openTooltipId:R,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:f},`${D.transactionId}.${ve.transactionType}`),value:D.transactionId,defaultChecked:!1,groupLabel:!1,isException:te,exceptionMode:te===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:X===!0?"readonly":void 0,exceptionType:te===!0?"alert":void 0,exceptionInfo:te===!0?Ap:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),k=U.map(D=>D.value));const H={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:P,subTitle:L}=Ve("transaction_categorization").allDoneText,B=j.map(D=>D.transactionId),ee=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),ge=s.useMemo(()=>j.reduce((D,ce)=>{const X=Object.keys(ce.transactionReviewLocalData.lineItemById).length;return D+(X>0?X:1)},0)<n.totalCountByTab[e]?j.length+1:j.length,[j,n.totalCountByTab,e]);return t.jsx(Fp,{windowSize:$,"data-testid":z("transaction-categorization-list-wrapper"),children:t.jsx(Pp,{windowSize:$,"data-testid":z("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(Bp,{windowSize:$,"data-testid":z("transaction-categorization-reload-page"),children:[t.jsx(_p,{onClick:()=>v(e,void 0,!0,null,!1,!0),"data-testid":z("transaction-categorization-reload-icon"),children:t.jsx(fo,{})}),t.jsx(Np,{"data-testid":z("transaction-categorization-reload-label"),children:Lp.reloadPage.label})]}):O==="Completed"&&j.length===0?t.jsx(bt,{tab:"transaction_categorization",title:P,subTitle:L,"data-testid":z("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&j.length===0?t.jsx(Ip,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:O,onColumnSortConfigChanged:he,"data-testid":z("transaction-categorization-list-empty-table")}):t.jsx(zp,{windowSize:$,"data-testid":z("transaction-categorization-list-view"),children:t.jsx(rs,{control:N,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:D,ref:ce,onChange:X}})=>t.jsx(Ws.Provider,{value:{value:D,mode:"off",allCheckBoxValues:k,index:0,sortKey:b.sortKey,sortOrder:b.sortOrder,fetchState:O,isDisabled:i,groupLabelCheckBox:H,onColumnSortConfigChanged:he,ref:ce,onChange:X,selectedTab:e},children:t.jsx(Rn,{children:({height:te,width:ve})=>t.jsx(Ba,{isItemLoaded:Y,itemCount:ee,loadMoreItems:le,children:({onItemsRendered:$e,ref:S})=>t.jsx(Dn,{ref:Z=>{S(Z),q.current=Z},height:te,itemCount:ge,itemKey:Z=>j[Z]?.transactionId,innerElementType:Rp,onItemsRendered:$e,width:ve,style:{willChange:"auto"},overscanCount:$h,itemSize:J,itemData:{checkboxes:U,value:D,allCheckBoxValues:k,groupLabelCheckBox:H,categorizationGroupValue:B,transactionLocalData:j,mode:"always_on",setRowHeight:K,isItemLoaded:Y,ref:S,onChange:X,selectedCheckBoxTransactionIds:E},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:Z})=>{fe(Z)},children:Op})})})})})})})})},Rp=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:y}=Dp(),{children:C,style:v,...w}=e;return i==="Completed"?t.jsxs(Vp,{ref:u,style:{...v,width:"auto"},...w,children:[t.jsx(Hp,{children:t.jsx(ps,{selectionLimit:W.MAX_SELECTION_LIMIT,value:n,checkBox:{label:t.jsx(Mp,{children:t.jsx(Ns,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:y})}),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=>ms({event:I,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(Up,{children:C})]},`${d[h]}-${h}`):null},Ws=s.createContext(void 0),Dp=()=>{const e=s.useContext(Ws);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Op=({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:y,selectedCheckBoxTransactionIds:C}=d,v=s.useRef(null),w=Se();if(s.useEffect(()=>{v.current?.firstElementChild!=null&&u(e,v.current.firstElementChild.clientHeight)},[e,v,w,r[e]?.transactionReviewLocalData]),m(e)===!0){const I=c[e];return t.jsx(Di,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:v,children:t.jsx(ps,{selectionLimit:W.MAX_SELECTION_LIMIT,checkBox:I,value:h,groupLabelCheckBox:p,allCheckBoxValues:l,mode:I.isDisabled==="readonly"||C.includes(I.value)===!1&&C.length>=W.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:I.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:{padding:20},name:`${Ut}.${h}`,ref:x,index:e,onChangeHandler:f=>ms({event:f,value:h,allCheckBoxValues:l,groupLabelCheckBox:p,onChange:y})})},i[e])}else return t.jsx(Di,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:v,children:t.jsx(Wp,{children:t.jsx(Hs,{})})},Xi())},Mp=a.div`
|
|
1434
1434
|
flex: 1;
|
|
1435
1435
|
width: auto;
|
|
1436
1436
|
padding-right: ${o.sp8};
|
|
@@ -1493,7 +1493,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1493
1493
|
height: 100%;
|
|
1494
1494
|
`,Wp=a.div`
|
|
1495
1495
|
padding-left: ${o.sp8};
|
|
1496
|
-
`,qp=({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:y,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:v,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:f})=>{const[$,R]=s.useState({transactionId:void 0,lineItemId:void 0}),A=s.useRef(),O=s.useRef({}),{useDynamicConfig:b}=ns(),{configValue:j}=b(os.enableUncategorizedExpenseCategory),E=j?.uncategorized_expense_category_enabled===!0,T=(k,U,H,P)=>{const L={...O.current};L[U]==null&&(L[U]=[]);let B=L[U].findIndex(ee=>ee.lineId===k);if(B===-1){const ee={lineId:k,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};L[U].push(ee),B=L[U].length-1}else{const ee=L[U][B];L[U][B]={...ee,category:{...ee.category,recommendationTypesViewed:[...ee.category.recommendationTypesViewed]},class:{...ee.class,recommendationTypesViewed:[...ee.class.recommendationTypesViewed]},vendor:{...ee.vendor,recommendationTypesViewed:[...ee.vendor.recommendationTypesViewed]}}}P!=null&&P!==""&&!L[U][B][H].recommendationTypesViewed.includes(P)&&L[U][B][H].recommendationTypesViewed.push(P),O.current=L},{transactions:V,transactionLocalData:M,accountsHierarchyList:q,classHierarchyList:_,accountList:N,classList:J,selectedCheckBoxTransactionIds:K,uncategorizedAccounts:F}=n,le=Wt({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Mi(K,M,q,_,p.entityAutoCompleteView),[q,_,K,M,p.entityAutoCompleteView]),values:s.useMemo(()=>Mi(K,M,q,_,p.entityAutoCompleteView),[q,_,K,M,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{K.length>0?r(Zn):r("expenseAutomationPage")},[K,r]);const
|
|
1496
|
+
`,qp=({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:y,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:v,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:f})=>{const[$,R]=s.useState({transactionId:void 0,lineItemId:void 0}),A=s.useRef(),O=s.useRef({}),{useDynamicConfig:b}=ns(),{configValue:j}=b(os.enableUncategorizedExpenseCategory),E=j?.uncategorized_expense_category_enabled===!0,T=(k,U,H,P)=>{const L={...O.current};L[U]==null&&(L[U]=[]);let B=L[U].findIndex(ee=>ee.lineId===k);if(B===-1){const ee={lineId:k,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};L[U].push(ee),B=L[U].length-1}else{const ee=L[U][B];L[U][B]={...ee,category:{...ee.category,recommendationTypesViewed:[...ee.category.recommendationTypesViewed]},class:{...ee.class,recommendationTypesViewed:[...ee.class.recommendationTypesViewed]},vendor:{...ee.vendor,recommendationTypesViewed:[...ee.vendor.recommendationTypesViewed]}}}P!=null&&P!==""&&!L[U][B][H].recommendationTypesViewed.includes(P)&&L[U][B][H].recommendationTypesViewed.push(P),O.current=L},{transactions:V,transactionLocalData:M,accountsHierarchyList:q,classHierarchyList:_,accountList:N,classList:J,selectedCheckBoxTransactionIds:K,uncategorizedAccounts:F}=n,le=Wt({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Mi(K,M,q,_,p.entityAutoCompleteView),[q,_,K,M,p.entityAutoCompleteView]),values:s.useMemo(()=>Mi(K,M,q,_,p.entityAutoCompleteView),[q,_,K,M,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{K.length>0?r(Zn):r("expenseAutomationPage")},[K,r]);const fe=le.handleSubmit(k=>{const U=k[En],H=O.current;v(e,U,H),U.forEach(P=>{delete O.current[P]})}),Y=async(k,U)=>{if(k!=null){if(k===En){const H=le.getValues(En);if(H.length<K.length){w(e,H);return}if(H.length===W.MAX_SELECTION_LIMIT){w(e,H);return}const P=H[H.length-1],L=U[Ut].findIndex(ee=>ee.transactionId===P),B=le.getValues(`${Ut}.${L}.lineInfo`);if(B!=null){let ee=!1;if(B.every(ge=>(ee=W.isAccountUncategorized(F,ge[Ae].selectedOption,E?["income"]:void 0),!!ge[Ae].selectedOption&&ge[Ae].selectedOption!=null&&!ee&&!!ge[Ge].selectedOption&&!!ge[ct].selectedOption))===!0){w(e,H);return}else{const ge=H.filter(D=>D!==P);w(e,ge);return}}return}if(k.includes(Ae)===!0||k.includes(Ge)===!0){const H=parseInt(k.split(".")[1]),P=parseInt(k.split(".")[3]),L=le.getValues(`${Ut}.${H}.lineInfo`),B=L[P];if(k.includes(Ae)||k.includes(Ge)){const{transactionId:ee,lineId:ge,recommendations:D}=B;if(L!=null){const ce=B[Ae].selectedOption,X=B[Ge].selectedOption,te=B[ct].selectedOption,ve=B[ct].selectedOption,$e=B[ct].defaultOptions,S=$e?.find(de=>de.options?.find(He=>He.value===te))?.options?.find(de=>de.value===te)?.label,Z=$e?.find(de=>de.options?.find(He=>He.value===ve))?.options?.find(de=>de.value===ve)?.label,ye=p.entityAutoCompleteView.vendor.find(de=>de.qboId===te),_e=p.entityAutoCompleteView.customer.find(de=>de.qboId===ve),Ne=D.find(de=>de.vendor?.qboId===te)?.vendor,ke=te||ye?.qboId||Ne?.qboId?{id:te??ye?.qboId??Ne?.qboId??"",name:S??ye?.name??Ne?.name??"",logo:ye?.logo??Ne?.logo}:void 0,Te=ve||_e?.qboId?{id:ve??_e?.qboId??"",name:Z??_e?.name??"",logo:_e?.logo}:void 0,me=N.find(de=>de.qboId===ce),et=J.find(de=>de.classId===X),Je=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[ge].account,Ke=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[ge].class;m(e,ee,ge,V,ke?.id,Te?.id,k.includes(Ae)&&me!=null?{...me,isPreFilled:!1}:Je,k.includes(Ge)&&et!=null?{...et,isPreFilled:!1}:Ke,void 0,D,E)}return}}if(k.includes(ct)){const H=parseInt(k.split(".")[1]),P=parseInt(k.split(".")[3]),L=le.getValues(`${Ut}.${H}.lineInfo`);if(L!=null){const B=L[P],{transactionId:ee,recommendations:ge}=B,D=B[ct].selectedOption,ce=B[ct].selectedOption,X=B[ct].defaultOptions,te=X?.flatMap(me=>me.options)?.find(me=>me.value===D)?.label,ve=X?.flatMap(me=>me.options)?.find(me=>me.value===ce)?.label,$e=p.entityAutoCompleteView.vendor.find(me=>me.qboId===D),S=p.entityAutoCompleteView.customer.find(me=>me.qboId===ce),Z=ge.find(me=>me.vendor?.qboId===D)?.vendor,ye=D!==""&&D!=null?D:te!==""&&te!=null?te:"",_e=($e?.qboId!=null&&$e.qboId!==""?$e.qboId:null)??(Z?.qboId!=null&&Z.qboId!==""?Z.qboId:null)??(D!=null&&D!==""?D:null),Ne={id:_e??te??"",name:te??$e?.name??Z?.name??"",logo:$e?.logo??Z?.logo},ke=S?.qboId!=null&&S.qboId!==""?{id:S.qboId??ce??"",name:ve??S.name??"",logo:S.logo}:void 0,Te=V.find(me=>me.id===ee);if(Te!=null){const me=n.transactionLocalData.find(He=>He.transactionId===Te.id)?.transactionReviewLocalData,et=me?.lineItemById[B.lineId],Je=W.isVendorTransaction(Te)===!0?me?.selectedEntity:et?.selectedEntityLine,Ke=Ne.id!==""?{id:ye,name:te??ye,type:"vendor",qboId:ye,zeniId:ye,logo:Ne.logo,isPreFilled:Je?.id===_e&&Je?.isPreFilled}:ke?.id!=null&&ke.id!==""?{id:ke.id,name:ke.name,type:"customer",qboId:ke.id,zeniId:ke.id,logo:ke.logo}:void 0,de={transactionId:{id:Te.id,type:Te.type},transaction:Te,lineIds:Te.type!=="journal_entry"?Te.lines?.map(He=>He.id)??[]:[B.lineId]};Ke?.type==="customer"?f(B.amount.amount,de,!1,e,Ke,ke,E):I(B.amount.amount,de,!1,e,Ke,Ne,E)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const k=le.watch((U,{name:H})=>{H!=null&&U!=null&&pn(()=>Y(H,U))});return()=>{k.unsubscribe()}}),s.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const k=n.transactionLocalData.find(U=>U.transactionId===$.transactionId);if(k){const{transactionReviewLocalData:U}=k,{selectedEntity:H}=U,P=$?.lineItemId??U.sortedLineItems[0],L=U.lineItemById[P],B=L.selectedEntityLine;A.current?.(yo(p.entityAutoCompleteView,H??B,L?.recommendationsWithCOT??[]))}R({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const he=(k,U)=>{i.onAutoCompleteInputChange?.(k),A.current=U},ie=s.useRef(null);return t.jsx(Kp,{ref:ie,"data-testid":z("transaction-categorization-list-page"),children:t.jsx(qt,{...le,children:t.jsx("form",{id:Oi(Zn),onSubmit:fe,style:{height:"100%",width:"100%"},"data-testid":z(Oi(Zn)),children:t.jsx(Ep,{selectedTab:e,sectionId:h,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:R,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:C,onTransactionCategorizationRowClick:u,vendorLoadOptions:he,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:ie,isCOTEnabled:l,cotTracking:{onCOTView:T},isUncategorizedExpenseCategoryEnabled:E})})})})},Oi=e=>`${e}_form`,Mi=(e,n,d,c,h)=>({[Ut]:n.map(p=>Jp(p.transactionId,p.transactionReviewLocalData,d,c,h)),[En]:e}),Jp=(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{[Vs]:r.map(u=>{const x=u.account?.qboId??u.account?.accountId,y=u.class?.classId,C=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[Ae]:{selectedOption:x,allOptions:hs(d,u.recommendationsWithCOT)},[Ge]:{selectedOption:y,allOptions:us(c,u.recommendationsWithCOT)},[ct]:{selectedOption:l?.id??C?.id??l?.name??C?.name,defaultOptions:yo(h,l??C,n.lineItemById[m]?.recommendationsWithCOT??[])},[Xh]:u.lineEntity,[Qh]:u.recommendationsWithCOT??[]}}),transactionId:e,[ep]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[tp]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Kp=a.div`
|
|
1497
1497
|
display: flex;
|
|
1498
1498
|
min-height: 100%;
|
|
1499
1499
|
width: 100%;
|
|
@@ -1513,7 +1513,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1513
1513
|
display: flex;
|
|
1514
1514
|
flex-direction: column;
|
|
1515
1515
|
width: 100%;
|
|
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:y,monthEndInsightsCustomerRequestData:C,allThreadsSectionOpen:v,loggedInUser:w,isCOTEnabled:I,setCurrentFooterFormId:f,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:A,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:b,onUploadReceiptAttachment:j,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:T,onReconTabColumnSortConfigChanged:V,onReloadReconciliationListPage:M,onUpdateReconcileTabLocalData:q,onUpdateMissingReceiptsUIState:_,onFetchTransactionCategorizationList:N,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:K,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:le,onJESchedulesFormDataChange:ye,onPostJESchedule:Y,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:U,onUpdateSelectedCheckboxTransactionIds:H,improveMonthEndInsightsUsingZeniGPTClick:P,onRemoveFileAttachment:L,onUpdateFileAttachment:B,onCloseAllThreadsSection:ee,onEditMonthEndInsightsClick:ge,previewMonthEndReport:D,saveMonthEndReport:ce,onOpenFileAttachmentSnackBar:X,onCloseFileAttachmentSnackBar:te,onClickCustomerRequest:ve,sendMonthEndReport:$e,markAsReview:S,onReloadPage:Z,onBackClick:Ce,updateOperatingExpensesIdsForReview:_e,updateSectionCollapseStatus:Ne,onFetchReimbursementView:ke,redirectToVendorDetailPage:Te,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:et,fetchFluxViewOnScroll:Je,onFetchFluxViewList:Ke,setIsJeAccountSettingsOpened:de,onReviewClicked:He,setOpenDrawerClicked:ot,onEstablishConnectionClick:it,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:kt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:It,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:re,onReconListPageScroll:oe,onAddStatementClick:be}=e,{currentSelectedView:Ie,missingReceipts:st,transactionView:at,selectedPeriod:$t,monthEndInsights:Me,selectedTransactionCategorizationTab:Jt,reconciliation:Kt}=p;switch(Ie){case"transaction_categorization":return at.fetchState==="Completed"&&at.transactionLocalData.length===0?t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(qp,{setCurrentFooterFormId:f,selectedPeriod:$t,selectedTab:Jt,sectionId:Ut,transactionView:at,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:K,onFetchTransactionCategorizationList:N,onTransactionCategorizationRowClick:A,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:se,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:U,onUpdateSelectedCheckboxTransactionIds:H,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(uu,{setIsJeAccountSettingsOpened:de,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:f,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:le,onJESchedulesFormDataChange:ye,onPostJESchedule:Y,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(Xu,{onUpdateMissingReceiptsUIState:_,onFetchMissingReceiptsList:O,missingReceipts:st,receiptUploadEndpoint:l,authParams:i,selectedPeriod:$t,onMissingReceiptsRowClick:b,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:T,onUploadReceiptAttachment:j});case"month_end_insights":if(Me!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Me.fetchState==="Not-Started"||Me.fetchState==="In-Progress"||Me.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Me.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(na,{fetchState:"In-Progress"});{const Pt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Me.companyName,url:window.location.href},{url:mn,...ie}=Pt,xe={...ie};return t.jsx(Yp,{children:t.jsx(Ih,{allThreadsSectionOpen:v,customerRequestData:C,companyId:r,enableZeniGPTFeature:x,filterMetaData:xe,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:P,isZeniUser:w.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Me,newThreadMetadata:Pt,onClickCustomerRequest:ve,onCloseAllThreadsSection:ee,onCloseFileAttachmentSnackBar:te,onOpenFileAttachmentSnackBar:X,onRemoveFileAttachment:L,onUpdateFileAttachment:B,previewMode:y,previewMonthEndReport:D,saveMonthEndReport:ce,onEditClick:ge,sendMonthEndReport:$e})})}}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:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(Nd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:S,onReloadPage:Z,onBackClick:Ce,updateOperatingExpensesIdsForReview:_e,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:et,setCurrentFooterFormId:f,fetchFluxViewOnScroll:Je,onFetchFluxViewList:Ke,updateSectionCollapseStatus:Ne,onFetchReimbursementView:ke,redirectToVendorDetailPage:Te});case"reconciliation":return t.jsx(kd,{onReconListPageScroll:oe,onReloadReconciliationListPage:M,currentFooterFormId:n,reconciliation:Kt,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:He,setOpenDrawerClicked:ot,setCurrentFooterFormId:f,onReconTabColumnSortConfigChanged:V,onUpdateReconcileTabLocalData:q,onEstablishConnectionClick:it,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:kt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:It,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:re,onAddStatementClick:be});default:return t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle})}};function Xp(e){const n=Se(),{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(Zp,{windowSize:n,style:{...h===!0?{paddingLeft:Fi.subSectionContainerLeftRightPadding.value(n),paddingRight:Fi.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 Qp=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"})),em=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"})),tm=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:y,monthEndInsightsCustomerRequestData:C,allThreadsSectionOpen:v,loggedInUser:w,isCOTEnabled:I,setCurrentFooterFormId:f,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:A,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:b,onUploadReceiptAttachment:j,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:T,onReconTabColumnSortConfigChanged:V,onReloadReconciliationListPage:M,onUpdateReconcileTabLocalData:q,onUpdateMissingReceiptsUIState:_,onFetchTransactionCategorizationList:N,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:K,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:le,onJESchedulesFormDataChange:fe,onPostJESchedule:Y,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ie,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:U,onUpdateSelectedCheckboxTransactionIds:H,improveMonthEndInsightsUsingZeniGPTClick:P,onRemoveFileAttachment:L,onUpdateFileAttachment:B,onCloseAllThreadsSection:ee,onEditMonthEndInsightsClick:ge,previewMonthEndReport:D,saveMonthEndReport:ce,onOpenFileAttachmentSnackBar:X,onCloseFileAttachmentSnackBar:te,onClickCustomerRequest:ve,sendMonthEndReport:$e,markAsReview:S,onReloadPage:Z,onBackClick:ye,updateOperatingExpensesIdsForReview:_e,updateSectionCollapseStatus:Ne,onFetchReimbursementView:ke,redirectToVendorDetailPage:Te,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:et,fetchFluxViewOnScroll:Je,onFetchFluxViewList:Ke,setIsJeAccountSettingsOpened:de,onReviewClicked:He,setOpenDrawerClicked:ot,onEstablishConnectionClick:it,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:kt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:It,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:re,onReconListPageScroll:oe,onAddStatementClick:be}=e,{currentSelectedView:Ie,missingReceipts:st,transactionView:at,selectedPeriod:$t,monthEndInsights:Me,selectedTransactionCategorizationTab:Jt,reconciliation:Kt}=p;switch(Ie){case"transaction_categorization":return at.fetchState==="Completed"&&at.transactionLocalData.length===0?t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(qp,{setCurrentFooterFormId:f,selectedPeriod:$t,selectedTab:Jt,sectionId:Ut,transactionView:at,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:K,onFetchTransactionCategorizationList:N,onTransactionCategorizationRowClick:A,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:ie,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:U,onUpdateSelectedCheckboxTransactionIds:H,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(uu,{setIsJeAccountSettingsOpened:de,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:f,handleJeScheduleClick:F,ignoreRecommendedJeSchedule:le,onJESchedulesFormDataChange:fe,onPostJESchedule:Y,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(Xu,{onUpdateMissingReceiptsUIState:_,onFetchMissingReceiptsList:O,missingReceipts:st,receiptUploadEndpoint:l,authParams:i,selectedPeriod:$t,onMissingReceiptsRowClick:b,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:T,onUploadReceiptAttachment:j});case"month_end_insights":if(Me!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Me.fetchState==="Not-Started"||Me.fetchState==="In-Progress"||Me.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Me.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(na,{fetchState:"In-Progress"});{const Pt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Me.companyName,url:window.location.href},{url:mn,...ae}=Pt,Ce={...ae};return t.jsx(Yp,{children:t.jsx(Ih,{allThreadsSectionOpen:v,customerRequestData:C,companyId:r,enableZeniGPTFeature:x,filterMetaData:Ce,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:P,isZeniUser:w.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Me,newThreadMetadata:Pt,onClickCustomerRequest:ve,onCloseAllThreadsSection:ee,onCloseFileAttachmentSnackBar:te,onOpenFileAttachmentSnackBar:X,onRemoveFileAttachment:L,onUpdateFileAttachment:B,previewMode:y,previewMonthEndReport:D,saveMonthEndReport:ce,onEditClick:ge,sendMonthEndReport:$e})})}}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:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle}):t.jsx(Nd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:S,onReloadPage:Z,onBackClick:ye,updateOperatingExpensesIdsForReview:_e,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:et,setCurrentFooterFormId:f,fetchFluxViewOnScroll:Je,onFetchFluxViewList:Ke,updateSectionCollapseStatus:Ne,onFetchReimbursementView:ke,redirectToVendorDetailPage:Te});case"reconciliation":return t.jsx(kd,{onReconListPageScroll:oe,onReloadReconciliationListPage:M,currentFooterFormId:n,reconciliation:Kt,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:He,setOpenDrawerClicked:ot,setCurrentFooterFormId:f,onReconTabColumnSortConfigChanged:V,onUpdateReconcileTabLocalData:q,onEstablishConnectionClick:it,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:kt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:It,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:re,onAddStatementClick:be});default:return t.jsx(bt,{tab:Ie,title:Ve(Ie).allDoneText.title,subTitle:Ve(Ie).allDoneText.subTitle})}};function Xp(e){const n=Se(),{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(Zp,{windowSize:n,style:{...h===!0?{paddingLeft:Fi.subSectionContainerLeftRightPadding.value(n),paddingRight:Fi.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 Qp=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"})),em=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"})),tm=a.div`
|
|
1517
1517
|
width: 100%;
|
|
1518
1518
|
height: 100vh;
|
|
1519
1519
|
display: flex;
|
|
@@ -1543,7 +1543,7 @@ import{o,c7 as qs,q as Se,gr as Hi,gs as Ui,l as W,O as je,j as t,cD as Js,ab as
|
|
|
1543
1543
|
width: ${o.sp3};
|
|
1544
1544
|
cursor: pointer;
|
|
1545
1545
|
color: inherit;
|
|
1546
|
-
`,{common:{footer:Ee,texts:{maxLimitReached:om,confirmAction:im},headers:sm,create:am,strings:ln,texts:sn,cancel:rm,confirm:lm,monthsByIndex:cm},dateFormat:{visual:{MMMDCommaYYYYformat:Bi}},expenseAutomation:cn}=je.getLocalizedStrings(),Hm=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:y,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:v,clearJeScheduleLocalData:w,onSaveReconciliation:I}=e,{currentSelectedView:f,allSteps:$,missingReceipts:R,jeSchedules:A,fluxAnalysis:O,monthEndInsights:b,transactionView:j,selectedTransactionCategorizationTab:E,reconciliation:T,selectedPeriod:V}=n,[M,q]=s.useState("expenseAutomationPage"),[_,N]=s.useState(()=>{}),[J,K]=s.useState(!1),F=Se(),le=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ye=le?Hi:Ui,{openThread:Y,setOpenThread:he}=s.useContext(ye),[se,k]=s.useState(!1),[U,H]=s.useState(!1),P=$.find(re=>re.step===f),{nextStep:L,previousStep:B}=hm($,f),{uiState:{searchString:ee,pageToken:ge},totalCountByTab:D,transactions:ce,fetchStateByTransactionTabs:X,transactionLocalData:te}=j,{selectedReconAccount:ve,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:$e}}}}=T;let S="Not-Started",Z="complete";switch(f){case"missing_receipts":S=R.refreshStatus.fetchState,Z=R.completionStatus;break;case"je_schedules":S=A.refreshStatus.fetchState,Z=A.completionStatus;break;case"month_end_insights":b!=null&&(S=b?.fetchState);break;case"flux_analysis":S=O.refreshStatus.fetchState,Z=O.completionStatus;break;case"transaction_categorization":S=j.refreshStatus.fetchState,Z=j.completionStatus;break;case"reconciliation":ve==null?(S=T.refreshStatus.fetchState,Z=T.completionStatus):(S=T.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",Z=T.completionStatus)}const Ce=()=>{_()},{saveStatus:_e,selectedCheckBoxTransactionIds:Ne}=j,ke=()=>{const re=Os(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),oe=W.dateNow(),{month:be,year:Ie}=V,st=W.dateNow().set("month",be-1).set("year",Ie).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:re===!0?Ee.markAsReviewed:sn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:oo(n.fluxAnalysis.reviewOperatingExpensesIds.length,Cs,F,sn.vendor,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{v([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:_e.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:oo(Ne.length,W.MAX_SELECTION_LIMIT,F,sn.transaction,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(E,ce.map(at=>at.id),V,!1,D[E],W.getLineItemsByTransactionIdsFromLocalData(te,E),h,ge)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.next,style:{justifyContent:"space-evenly"},isDisabled:d||P?.isNextDisabled,suffixIcon:t.jsx(Pi,{}),onClick:()=>{r(L.step)}},cancelBtn:{label:Ee.back,isDisabled:d||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(zi,{}),onClick:()=>{r(B.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Ee.reconcile,backBtnLabel:Ee.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(T.reconciliationTabsState.balances.variance.amount===0&&oe.isAfter(st)),isLoading:T.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:oo($e.length,1/0,F,sn.transaction,f),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:T.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Ee.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Ee.save,backBtnLabel:Ee.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,isLoading:A.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>Ce(),label:Ee.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const at=f==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,$t=f==="reconciliation"&&n.reconciliation.selectedAccountId==null,Me=f==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Jt=L.step==="month_end_insights"&&(f==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||$t),Kt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",Pt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",mn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||P?.isNextDisabled===!1),ie=L.step==="month_end_insights"&&($t||f==="flux_analysis")?!mn:P?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Jt===!0?um(n.selectedPeriod.month):Ee.next,style:{justifyContent:"space-evenly"},isDisabled:ie,suffixIcon:t.jsx(Pi,{}),onClick:()=>{Kt?i("autoCategorized"):at?l("reconcile"):r(L.step)}},cancelBtn:{label:Ee.back,isDisabled:d||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(zi,{}),onClick:()=>{Pt?i("review"):Me?l("review"):at?y():r(B.step)}}}}}},Te=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{k(!1),v([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{k(!1),C(E,ce.map(re=>re.id),V,!1,D[E],W.getLineItemsByTransactionIdsFromLocalData(te,E),h,ge),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{k(!1),w(),x()}};default:return{confirmAction:()=>{k(!1)},confirmationDescription:ln.empty}}},me=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?k(!0):x()},{primaryBtn:et,cancelBtn:Je,leftSideComponent:Ke}=ke(),{confirmAction:de}=Te(),He=re=>{if(f==="transaction_categorization"&&(re==="autoCategorized"||re==="review"))return{hideCountInTab:D[re]>cn.common.numbers.maximumCount,count:D[re],isFetching:X[re].fetchState==="In-Progress"};if(f==="reconciliation"){const{reconciliation:oe}=n,{selectedAccountId:be}=oe;return be==null?{count:0,isFetching:!1}:re==="review"?{count:oe.accountReconciliationsByAccountID[be]?.accountReconEntity?.transactionsToReview.length,isFetching:oe.accountReconciliationsByAccountID[be]?.transactionFetchState.fetchState==="In-Progress"}:{count:oe.accountReconciliationsByAccountID[be]?.accountReconEntity?.transactionsToReconcile.length,isFetching:oe.accountReconciliationsByAccountID[be]?.transactionFetchState.fetchState==="In-Progress"}}},ot=f==="reconciliation"&&T.selectedAccountId!=null&&T.selectedReconAccount!=null,{month:it,year:jt}=V,kt=W.dateNow().set("month",it-1).set("year",jt),Ft=kt.startOf("month").format(Bi),It=kt.endOf("month").format(Bi),Oe=`${Ft} ${ln.hyphen} ${It}`;return t.jsxs(tm,{children:[se?t.jsx(Js,{containerStyle:{width:356},titleComponent:t.jsx(ym,{children:im}),primaryButtonText:lm,secondaryButtonText:rm,proceedButtonVariant:"danger",action:{onOkClick:()=>{de()},onCancelClick:()=>k(!1)},descriptionComponent:t.jsx(Cm,{children:cn.confirmationDescription})}):null,t.jsxs(nm,{children:[t.jsx(Hr,{onBack:y,navBarCustomElement:f==="reconciliation"&&T.selectedAccountId!=null?t.jsx(dm,{reconciliation:T}):void 0,onReconTabUpdate:l,currentRecontab:T.selectedTab,reconcileDetailPageFetchState:T.selectedAccountId!=null?T.accountReconciliationsByAccountID[T.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:ot?T.selectedAccountId:void 0,currentSelectedView:f,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Ve(f,D.autoCategorized,ot?T.selectedAccountId:void 0,ot?T.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,ot?Oe:void 0),searchText:ee,currentTab:E,getTabCountAndFetchState:He,completionStatus:Z,forceShowSubtitle:J===!0||f==="je_schedules"&&(A.fetchState==="In-Progress"||A.accountSettingsView.fetchState==="In-Progress"),refreshStatus:S,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??ln.empty,isZeniUser:le,onAllThreadsClick:()=>{Y!=null&&he(null),H(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:me}),t.jsx(Xp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:K,setResetJeAccountSettingsForm:N,allThreadsSectionOpen:U,setCurrentFooterFormId:q,currentFooterFormId:M,onCloseAllThreadsSection:()=>H(!1)}),t.jsx(Be,{controller:f!=="month_end_insights",children:t.jsx(Wi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:pm(M),primaryBtn:et,leftSideComponent:Ke,cancelBtn:Je,separatorStyle:{marginRight:o.sp4}})})]})]})},dm=({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(wm,{children:t.jsxs(bm,{children:[t.jsxs(io,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(so,{children:t.jsx(vm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(lo,{children:qe("0,0.00",l)}),t.jsx(ro,{children:cn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(io,{children:[t.jsx(so,{children:t.jsx(jm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(lo,{children:qe("0,0.00",d)}),t.jsxs(Im,{children:[t.jsx(ro,{children:cn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs($m,{children:[t.jsxs(_i,{children:[t.jsxs(Ni,{children:[i.count," ",sn.payments]}),t.jsx(Vi,{children:qe("0,0.[00]",i.totalAmount)})]}),t.jsxs(_i,{children:[t.jsxs(Ni,{children:[p.count," ",sn.deposits]}),t.jsx(Vi,{children:qe("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(km,{})})]})]})})]}),t.jsxs(io,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(so,{children:t.jsx(Sm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(lo,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:qe("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(ro,{children:cn.accountRecon.reconciliation.headers.variance})]})})]})]})})},oo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(mm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(gm,{multiDigit:e>=5,children:e}),t.jsx(xm,{children:i}),e===n?t.jsx(fm,{children:`(${om})`}):null]}):null},um=e=>{const n=cm[e];return`${am}${ln.space}${n}${ln.space}${sm.insights}`};function hm(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 pm=e=>`${e}_form`,mm=a.div`
|
|
1546
|
+
`,{common:{footer:Ee,texts:{maxLimitReached:om,confirmAction:im},headers:sm,create:am,strings:ln,texts:sn,cancel:rm,confirm:lm,monthsByIndex:cm},dateFormat:{visual:{MMMDCommaYYYYformat:Bi}},expenseAutomation:cn}=je.getLocalizedStrings(),Hm=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:y,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:v,clearJeScheduleLocalData:w,onSaveReconciliation:I}=e,{currentSelectedView:f,allSteps:$,missingReceipts:R,jeSchedules:A,fluxAnalysis:O,monthEndInsights:b,transactionView:j,selectedTransactionCategorizationTab:E,reconciliation:T,selectedPeriod:V}=n,[M,q]=s.useState("expenseAutomationPage"),[_,N]=s.useState(()=>{}),[J,K]=s.useState(!1),F=Se(),le=!!e.loggedInUser.userEmail?.includes("zeni.ai"),fe=le?Hi:Ui,{openThread:Y,setOpenThread:he}=s.useContext(fe),[ie,k]=s.useState(!1),[U,H]=s.useState(!1),P=$.find(re=>re.step===f),{nextStep:L,previousStep:B}=hm($,f),{uiState:{searchString:ee,pageToken:ge},totalCountByTab:D,transactions:ce,fetchStateByTransactionTabs:X,transactionLocalData:te}=j,{selectedReconAccount:ve,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:$e}}}}=T;let S="Not-Started",Z="complete";switch(f){case"missing_receipts":S=R.refreshStatus.fetchState,Z=R.completionStatus;break;case"je_schedules":S=A.refreshStatus.fetchState,Z=A.completionStatus;break;case"month_end_insights":b!=null&&(S=b?.fetchState);break;case"flux_analysis":S=O.refreshStatus.fetchState,Z=O.completionStatus;break;case"transaction_categorization":S=j.refreshStatus.fetchState,Z=j.completionStatus;break;case"reconciliation":ve==null?(S=T.refreshStatus.fetchState,Z=T.completionStatus):(S=T.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",Z=T.completionStatus)}const ye=()=>{_()},{saveStatus:_e,selectedCheckBoxTransactionIds:Ne}=j,ke=()=>{const re=Os(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),oe=W.dateNow(),{month:be,year:Ie}=V,st=W.dateNow().set("month",be-1).set("year",Ie).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:re===!0?Ee.markAsReviewed:sn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:oo(n.fluxAnalysis.reviewOperatingExpensesIds.length,Cs,F,sn.vendor,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{v([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:_e.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:oo(Ne.length,W.MAX_SELECTION_LIMIT,F,sn.transaction,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(E,ce.map(at=>at.id),V,!1,D[E],W.getLineItemsByTransactionIdsFromLocalData(te,E),h,ge)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.next,style:{justifyContent:"space-evenly"},isDisabled:d||P?.isNextDisabled,suffixIcon:t.jsx(Pi,{}),onClick:()=>{r(L.step)}},cancelBtn:{label:Ee.back,isDisabled:d||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(zi,{}),onClick:()=>{r(B.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Ee.reconcile,backBtnLabel:Ee.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(T.reconciliationTabsState.balances.variance.amount===0&&oe.isAfter(st)),isLoading:T.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:oo($e.length,1/0,F,sn.transaction,f),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:T.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Ee.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Ee.save,backBtnLabel:Ee.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,isLoading:A.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>ye(),label:Ee.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const at=f==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,$t=f==="reconciliation"&&n.reconciliation.selectedAccountId==null,Me=f==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Jt=L.step==="month_end_insights"&&(f==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||$t),Kt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",Pt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",mn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||P?.isNextDisabled===!1),ae=L.step==="month_end_insights"&&($t||f==="flux_analysis")?!mn:P?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Jt===!0?um(n.selectedPeriod.month):Ee.next,style:{justifyContent:"space-evenly"},isDisabled:ae,suffixIcon:t.jsx(Pi,{}),onClick:()=>{Kt?i("autoCategorized"):at?l("reconcile"):r(L.step)}},cancelBtn:{label:Ee.back,isDisabled:d||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(zi,{}),onClick:()=>{Pt?i("review"):Me?l("review"):at?y():r(B.step)}}}}}},Te=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{k(!1),v([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{k(!1),C(E,ce.map(re=>re.id),V,!1,D[E],W.getLineItemsByTransactionIdsFromLocalData(te,E),h,ge),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{k(!1),w(),x()}};default:return{confirmAction:()=>{k(!1)},confirmationDescription:ln.empty}}},me=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?k(!0):x()},{primaryBtn:et,cancelBtn:Je,leftSideComponent:Ke}=ke(),{confirmAction:de}=Te(),He=re=>{if(f==="transaction_categorization"&&(re==="autoCategorized"||re==="review"))return{hideCountInTab:D[re]>cn.common.numbers.maximumCount,count:D[re],isFetching:X[re].fetchState==="In-Progress"};if(f==="reconciliation"){const{reconciliation:oe}=n,{selectedAccountId:be}=oe;return be==null?{count:0,isFetching:!1}:re==="review"?{count:oe.accountReconciliationsByAccountID[be]?.accountReconEntity?.transactionsToReview.length,isFetching:oe.accountReconciliationsByAccountID[be]?.transactionFetchState.fetchState==="In-Progress"}:{count:oe.accountReconciliationsByAccountID[be]?.accountReconEntity?.transactionsToReconcile.length,isFetching:oe.accountReconciliationsByAccountID[be]?.transactionFetchState.fetchState==="In-Progress"}}},ot=f==="reconciliation"&&T.selectedAccountId!=null&&T.selectedReconAccount!=null,{month:it,year:jt}=V,kt=W.dateNow().set("month",it-1).set("year",jt),Ft=kt.startOf("month").format(Bi),It=kt.endOf("month").format(Bi),Oe=`${Ft} ${ln.hyphen} ${It}`;return t.jsxs(tm,{children:[ie?t.jsx(Js,{containerStyle:{width:356},titleComponent:t.jsx(ym,{children:im}),primaryButtonText:lm,secondaryButtonText:rm,proceedButtonVariant:"danger",action:{onOkClick:()=>{de()},onCancelClick:()=>k(!1)},descriptionComponent:t.jsx(Cm,{children:cn.confirmationDescription})}):null,t.jsxs(nm,{children:[t.jsx(Hr,{onBack:y,navBarCustomElement:f==="reconciliation"&&T.selectedAccountId!=null?t.jsx(dm,{reconciliation:T}):void 0,onReconTabUpdate:l,currentRecontab:T.selectedTab,reconcileDetailPageFetchState:T.selectedAccountId!=null?T.accountReconciliationsByAccountID[T.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:ot?T.selectedAccountId:void 0,currentSelectedView:f,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Ve(f,D.autoCategorized,ot?T.selectedAccountId:void 0,ot?T.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,ot?Oe:void 0),searchText:ee,currentTab:E,getTabCountAndFetchState:He,completionStatus:Z,forceShowSubtitle:J===!0||f==="je_schedules"&&(A.fetchState==="In-Progress"||A.accountSettingsView.fetchState==="In-Progress"),refreshStatus:S,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??ln.empty,isZeniUser:le,onAllThreadsClick:()=>{Y!=null&&he(null),H(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:me}),t.jsx(Xp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:K,setResetJeAccountSettingsForm:N,allThreadsSectionOpen:U,setCurrentFooterFormId:q,currentFooterFormId:M,onCloseAllThreadsSection:()=>H(!1)}),t.jsx(Be,{controller:f!=="month_end_insights",children:t.jsx(Wi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:pm(M),primaryBtn:et,leftSideComponent:Ke,cancelBtn:Je,separatorStyle:{marginRight:o.sp4}})})]})]})},dm=({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(wm,{children:t.jsxs(bm,{children:[t.jsxs(io,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(so,{children:t.jsx(vm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(lo,{children:qe("0,0.00",l)}),t.jsx(ro,{children:cn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(io,{children:[t.jsx(so,{children:t.jsx(jm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(lo,{children:qe("0,0.00",d)}),t.jsxs(Im,{children:[t.jsx(ro,{children:cn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs($m,{children:[t.jsxs(_i,{children:[t.jsxs(Ni,{children:[i.count," ",sn.payments]}),t.jsx(Vi,{children:qe("0,0.[00]",i.totalAmount)})]}),t.jsxs(_i,{children:[t.jsxs(Ni,{children:[p.count," ",sn.deposits]}),t.jsx(Vi,{children:qe("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(km,{})})]})]})})]}),t.jsxs(io,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(so,{children:t.jsx(Sm,{})}),t.jsx(ao,{children:m?.fetchState==="In-Progress"?t.jsxs(co,{children:[t.jsx(en,{height:25,width:120}),t.jsx(en,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(lo,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:qe("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(ro,{children:cn.accountRecon.reconciliation.headers.variance})]})})]})]})})},oo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(mm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(gm,{multiDigit:e>=5,children:e}),t.jsx(xm,{children:i}),e===n?t.jsx(fm,{children:`(${om})`}):null]}):null},um=e=>{const n=cm[e];return`${am}${ln.space}${n}${ln.space}${sm.insights}`};function hm(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 pm=e=>`${e}_form`,mm=a.div`
|
|
1547
1547
|
display: flex;
|
|
1548
1548
|
justify-content: flex-start;
|
|
1549
1549
|
align-items: center;
|