@zeniai/web-cockpit-ui 1.15.24-qa → 1.15.25-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-DsLMYxB2-DKIqWfd5.js → ACHDetailsPage-Davpg8eW-BWDILC-H.js} +3 -3
- package/dist/assets/{AIPerformancePage-Do1Jme84-BQuxssWs.js → AIPerformancePage-BXF0kUqR-BgyTM2y7.js} +104 -104
- package/dist/assets/AccountInfoPage-Cefnidcc-Bp5rUTr8.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DLxvkpvG-DlM7C5lw.js → AccountInfoPageContent-QMyPHCdY-DP0akuHx.js} +15 -15
- package/dist/assets/AccountLockedInfoModal-BdFY6p56-RTWbIB_l.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-BMhGA2Nw-Z2PUl5SJ.js → AccountReconDetailsDrawerPage-CoXPQka7-DFQZksfD.js} +11 -11
- package/dist/assets/AccountRow-DHB-ETil-0INUiG8Z.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-Cq1lsoaV-GSf-HLu0.js → AccountsPromoCardStack-Dkz2VyEk-BJf7WrAq.js} +22 -22
- package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CnCLxax6.js +6 -0
- package/dist/assets/{AddToWalletPage-CEhxUk5V-BYjPBKkY.js → AddToWalletPage-p0T8VFfo-WTTL1b0G.js} +47 -47
- package/dist/assets/{AgingReportsPage-CYrw-ffE-5eIk6Dcl.js → AgingReportsPage-CTzjRkV2-CkKYMdrC.js} +15 -15
- package/dist/assets/{AllUserItems-CUPJzOon-ByAd3cpG.js → AllUserItems-Dt9rMGJk-D2oOTLOS.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-BHfoAgPL-Z6JXUJ8l.js → ApAgingDetailPage-71VQk7px-BPdIn6ZS.js} +7 -7
- package/dist/assets/AppBasePage-tDs92z31-B3gR6k96.js +71 -0
- package/dist/assets/{AppDrawerContent-CxmXgxbq-CR8uI5HI.js → AppDrawerContent-ULUH1WZ3-CblzrDc2.js} +4 -4
- package/dist/assets/{ApprovalRulesSettingsPage-gu0Fjo8W-DPQDhehm.js → ApprovalRulesSettingsPage-Ciz-iaE5-ghG5WVzt.js} +1 -1
- package/dist/assets/{ArAgingChart-CxGoJ-eL-Blphsvqz.js → ArAgingChart-DcwM2rpv-C36SsOV8.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CNKe5FGf-BfLy-wH_.js → ArAgingDetailPage-eGCSFdAM-BJk9vCxH.js} +4 -4
- package/dist/assets/{AttachmentView-BNb1kv2i-DkhgYBN2.js → AttachmentView-CA6PRg4p-DDr9TCOl.js} +4 -4
- package/dist/assets/{BankAccountSection-nxf2HgVE-G54ZtA0k.js → BankAccountSection-mWUT-G8y-2k5xTeyX.js} +5 -5
- package/dist/assets/{BankAccountWarningSection-b7VJzhDr-CptxWENX.js → BankAccountWarningSection-IMtILLfL-BhKJ6bLn.js} +11 -11
- package/dist/assets/{BankConnectionsSettingsPage-Dj5RPseY-TdFPSmBq.js → BankConnectionsSettingsPage-COyH3rdC-Be8G7lph.js} +10 -10
- package/dist/assets/{BillDetailPage-B8vxUUjs-C-CFBqEj.js → BillDetailPage-BR_9uHRC-mLWBTrh1.js} +13 -13
- package/dist/assets/{BillPayApprovalRuleDetailPage-RxCSuM7j-BqEZg33H.js → BillPayApprovalRuleDetailPage-cRAudMvm-CWVbYb1D.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-qB8FSNxF-rbTYrF-M.js → BillPayApprovalRulesPage-Cd0aJtip-BTxbg4yL.js} +8 -8
- package/dist/assets/{BillPayPromoPage-C-MLRBwj-vOq8U5gh.js → BillPayPromoPage-BYW097HT-D4YnpN75.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-DUcVwFf0-CYjbtEEg.js → BillPaySetUpPage-BahrLUn4-CqC29kIw.js} +4 -4
- package/dist/assets/BillingSettingsPage-BjMeQKM0-CpnNOiGS.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-Cm2iOzT8-6b_1kNK1.js → BillsBulkReviewDrawerPage-CJ-GbBhL-B7DfrKfl.js} +1 -1
- package/dist/assets/{BoxItem-BIGbJrpV-BZ7_ozC2.js → BoxItem-CvhcNreT-DxmoznPD.js} +1 -1
- package/dist/assets/BusinessVerificationPage-LKrdd6Ej-BKb49OWB.js +138 -0
- package/dist/assets/{CardNumberSubText-lCdVj97_-CAB_Kln4.js → CardNumberSubText-CfoSPAZU-BdVhRiwJ.js} +3 -3
- package/dist/assets/{CashbackDetailPage-DyqE-V7x-DhQHhGde.js → CashbackDetailPage-CWlaZrqz-DvIAxVRW.js} +13 -13
- package/dist/assets/{ChargeCardDetailPage-0a7KVsQ4-DT0O76Wc.js → ChargeCardDetailPage-BNNbd3G1-BtUCuJum.js} +35 -35
- package/dist/assets/{ChargeCardListPage-DZgzRmUt-D6J_weNw.js → ChargeCardListPage-BzIvl8RY-Ncd3QF6u.js} +16 -16
- package/dist/assets/{ChargeCardListTable-CrPIqCYY-CgNAiVSn.js → ChargeCardListTable-D-uQKI4t-lkMdiYYu.js} +46 -46
- package/dist/assets/{ChargeCardPaymentHistoryPage-BenEXh0n-Cun1p0sn.js → ChargeCardPaymentHistoryPage-DmzlfD-l-OAmKFjuL.js} +12 -12
- package/dist/assets/ChargeCardPromoPage-DOYqOs6K-xBYShKSz.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BQdagLKY-BUWz2gWE.js → ChargeCardSetupPage-CSnLMycu-BkjYVqCn.js} +3 -3
- package/dist/assets/ChargeCardStatementsPage-C82CsaNY-DzvzbShn.js +60 -0
- package/dist/assets/{CheckDepositDrawerPage-Bbe3YMhk-DlMo_ctS.js → CheckDepositDrawerPage-DN5Ok0Y6-DOjKYa5p.js} +21 -21
- package/dist/assets/{CollapsableReportTable-Bjp9ufA3-BUww2EPB.js → CollapsableReportTable-CncMWpFI-CnBbDhbn.js} +93 -93
- package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-mf8toy40.js +331 -0
- package/dist/assets/{CompanyPassportCard-B9yLuYoV-7uXZA6qZ.js → CompanyPassportCard-Ccw8l9iz-CwNj32nj.js} +3 -3
- package/dist/assets/CompanyPassportPage-IjpU53y_-BF5RjsoV.js +417 -0
- package/dist/assets/{CompleteProfile-DlDJUF9s-Ds-cc2Li.js → CompleteProfile-CQUDJ-nI-DJVg2OT2.js} +1 -1
- package/dist/assets/ConfettiBurst-C_6Uy7eR-Np_3vQFo.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CPRMOwDl.js → ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C0zQBkip-Bwlp-KX1.js → CreateOrEditVendorPage-DM90rr4S-BcABoxWR.js} +16 -16
- package/dist/assets/{CreditCardPaymentDrawerPage-BonuuJrp-D6Esu5Ka.js → CreditCardPaymentDrawerPage-Bh0QdxXh-Dti2BnoN.js} +11 -11
- package/dist/assets/{CurrencySelectField-CcwMU19m-Dv2FTyMF.js → CurrencySelectField-BDfEzwpU-4zlCOdOf.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-CnLIuUI_-DOyaYse5.js → CustomerOnboardingActivationPage-CJGtq19l-BpCso2Fz.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-CnaDFGWF.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DFnaf7ny-DHFbJUSq.js → CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CATYZXta.js} +14 -14
- package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-BSZV9BI0.js +66 -0
- package/dist/assets/CustomerOnboardingPage-Bl2oAvin-B7GmsFRo.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-DrUE-f0H-CurdzAi_.js → CustomerOnboardingProductSuitePage-CZDipU2j-BbQ2Iy2J.js} +4 -4
- package/dist/assets/{Dashboard-Cgrcdi17-XnHxKrKg.js → Dashboard-DyQZQS2X-mxU1Jkng.js} +66 -66
- package/dist/assets/{DashboardReportPage-DbhRTdc4-CpN5HaDx.js → DashboardReportPage-Dn7pVdG9-DtcRvxDO.js} +13 -13
- package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-y0LRofZR.js +12 -0
- package/dist/assets/{DepositAccTransactionItem-D1o4IBkT-BgfivdRm.js → DepositAccTransactionItem-DDdkQsmn-B5pGW8gX.js} +6 -6
- package/dist/assets/{DepositAccTransactionListPage-xxNjjtT--BvwZH-r8.js → DepositAccTransactionListPage-BHdmR6m5-7yonpKjA.js} +5 -5
- package/dist/assets/{DomesticWireDetailsPage-CwJaUAl--xZbxKmq6.js → DomesticWireDetailsPage-CpwSOc_0-CElrVONi.js} +1 -1
- package/dist/assets/{DownloadOverlay-DQhWlo3j-ou1Zr3sv.js → DownloadOverlay-Dhib22Hz-D3Lt9Smx.js} +11 -11
- package/dist/assets/{DrawerPage-Cy3cU-ts-DL-hvylm.js → DrawerPage-nxxj86nQ-CJOa9BEO.js} +14 -14
- package/dist/assets/EditPeoplePage-CG5gmNTR-CH2Xt3X8.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CPtNF3lE-BUz5GUcq.js → EditReimbursementDetailPage-C2kqq9QP-Bbzp1pVf.js} +73 -73
- package/dist/assets/EntityDetailPage-CL0FCU_m-BGtD2JCX.js +18 -0
- package/dist/assets/{EntitySummarySection-DKVe_auH-BhjgU5OF.js → EntitySummarySection-C29GLBzF-CWqpKadr.js} +8 -8
- package/dist/assets/{ExpenseAutomationOverviewPage-BerWhvvC-DBNdoj-V.js → ExpenseAutomationOverviewPage-B4kcx-VG-CGPR3A1h.js} +22 -22
- package/dist/assets/{ExpenseAutomationPage-ZFDuZKVx-BOLEz3OZ.js → ExpenseAutomationPage-DNwnoyPg-DCSz-PUa.js} +295 -285
- package/dist/assets/{ExpressPayPage-DWGFzFY1-kbQqZZxK.js → ExpressPayPage-K-InpYtZ-DIVfrk0c.js} +19 -19
- package/dist/assets/{FeaturePreviewPage-CTROYslk-DNnHSl_T.js → FeaturePreviewPage-IsRBHkoD-e3f7mixU.js} +2 -2
- package/dist/assets/{FollowStepsSection-Cdw8tftg-LjozyTXw.js → FollowStepsSection-ClyCs5f_-Dx038WgT.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-FIiMWDt4-D2ht755B.js → GlobalReviewListPage-n8XrBXXp-BZl-OsOG.js} +16 -16
- package/dist/assets/{InformationCardStack-DRM_CrnR-Dr6abp-W.js → InformationCardStack-BnOF2kCh-C7gNsonq.js} +7 -7
- package/dist/assets/{InsightsCardStack-B6KSNBOO-ivzZWeJo.js → InsightsCardStack-Bgzkang3-CA8GAaRZ.js} +9 -9
- package/dist/assets/InsightsSection-C16f1RZL-BLvjZ1kW.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-VPy6IQco-B18SLH29.js → IntegrationsSettingsPage-D1QWrVQw-BXx7A_Fv.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-CbztUTOk-C1ODTgTQ.js → InternationalWireSwiftDetailsPage-DNNEqdWS-B78a52iW.js} +20 -20
- package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-DwVwtiyi.js +65 -0
- package/dist/assets/{InviteFormPage-BBHD1wv7-C_4SKmOY.js → InviteFormPage-C-Io8wxr-DZ679TjD.js} +21 -21
- package/dist/assets/{InvitePageListView-Gpf4q2HF-CEWnpXn7.js → InvitePageListView-B1PLdKSn-3WJcdIb9.js} +55 -55
- package/dist/assets/InvitePeoplePage-BArxsNxE-BXI3n59t.js +12 -0
- package/dist/assets/InvoiceUploadSection-Eo7dq75t-C9QkPoGX.js +140 -0
- package/dist/assets/{IssueChargeCardPage-CiL8yWbI-CIy8MoIn.js → IssueChargeCardPage-CC6D-uPl-dzV4_AJm.js} +15 -15
- package/dist/assets/{LabeledAddressValue-DGEHzZ-x-CfIKvo1E.js → LabeledAddressValue-CKZJgaV5-cxiw5XUU.js} +2 -2
- package/dist/assets/LabeledAddressValueField-DNGOSAvq-BXE6xS8k.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js +16 -0
- package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DgWr30M7.js +237 -0
- package/dist/assets/{LabeledCreatableSingleSelectField-BzOLZcSy-C22qT18Z.js → LabeledCreatableSingleSelectField-N1wb0l0p-Dc3bkr-e.js} +17 -13
- package/dist/assets/LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DrhnwOAX.js +59 -0
- package/dist/assets/{LabeledText-CYRn3LhA-DWGTPjd2.js → LabeledText-DiJE8avC-CseM5wCJ.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BzsLAAeQ-BmguFMb2.js → LabeledUserSingleSelectWithSubtitlesField-CLup6THe-B8wjUmse.js} +20 -20
- package/dist/assets/{LabeledZeniRolesDropDownField-UiY4N_NF-Djo3S0ey.js → LabeledZeniRolesDropDownField-CVg9PTpl-CmXvnZ1S.js} +33 -33
- package/dist/assets/{LinkJETransactionPage-PvLzGCy_-B6huT0SK.js → LinkJETransactionPage-DaGHGCIJ-ZPmKuaes.js} +8 -8
- package/dist/assets/{LockCardPage-Cv1mXAE9-DETgYyCF.js → LockCardPage-CGYlmPkB-BpMPFgRW.js} +24 -24
- package/dist/assets/{LowBalancePopup-go-1GM2R-ClVuygNj.js → LowBalancePopup-YJW7eKud-C5-4WX6d.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-ByYEbu_t.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bvcp-odv.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-COXCHYYI-DrkXHgBT.js +1 -0
- package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-CSa0Vcf2.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CPs72o7_-DBHt9Igm.js → MagicLinkTitleSection-CCF7Ahgh-BraYyP_S.js} +4 -4
- package/dist/assets/MailingDetailsSection-WMvjKFiS-C1_EkXyZ.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Xo-zsUV_-B9fPJRoq.js → MyBankConnectionsSettingsPage-BJi0owDl-C6fsBM4C.js} +9 -9
- package/dist/assets/{MyPendingActivationChargeCardListPage-pMnrYxHt-D-heAgjR.js → MyPendingActivationChargeCardListPage-BWIla-hh-BQ4ym9Ei.js} +2 -2
- package/dist/assets/MyProfileSettingsPage-B0uYhezS-DbNVKwps.js +85 -0
- package/dist/assets/{NavBarWithPicker-DFywcKz8-BdsjK4vI.js → NavBarWithPicker-BGZvvByA-4hcBX9YX.js} +5 -5
- package/dist/assets/{NavigationArrow-BiYMk3Wz-CV64X4HQ.js → NavigationArrow-C3pN6F3u-tAd2nukx.js} +7 -7
- package/dist/assets/{NavigationDots-CCLpxuwG-33BZJiro.js → NavigationDots-D1rJnVkZ-DI_AwSe8.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-C48VzTEf-BhyO826c.js → NewGlobalMerchantPage-DU2Z_NYb-CczYC_Cy.js} +12 -12
- package/dist/assets/{NoDataChart-sGr0o2BN-CgZmA0TN.js → NoDataChart-DuEsebs4-BQTTXvg9.js} +2 -2
- package/dist/assets/NoDataTable-B7LkfAQX-CdTNbZgo.js +8 -0
- package/dist/assets/{NotFoundPage-DFw9HBCT-0UwPngI1.js → NotFoundPage-DLtikmoi-CJn1LsuA.js} +9 -9
- package/dist/assets/{NotificationSettingsPage-D1rRNeRj-Bw3eepl1.js → NotificationSettingsPage-DwsCKyVM-AIL1SOh9.js} +12 -12
- package/dist/assets/{NotificationsListConfig-LrfChZUx-RWUkV3Sx.js → NotificationsListConfig-CMtBeX4D-Dg29H_7b.js} +1 -1
- package/dist/assets/{NotificationsPage-Cx4eb-l6-Bmwqr_H4.js → NotificationsPage-CZrXzWli-9C2iwOMz.js} +24 -24
- package/dist/assets/{OpExByVendorPage-LpdEEb1U-CiRx5TKb.js → OpExByVendorPage-0PLAOQu5-DLLDMhgS.js} +20 -20
- package/dist/assets/OverlayContainerPage-D4QU0p4o-D2G-CVv7.js +11 -0
- package/dist/assets/{PandLWithForecastPage-DwaVCK2R-DvQKQu5s.js → PandLWithForecastPage-PkrBqcAR-Djqg6ntv.js} +10 -10
- package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-Du1LULBI.js +107 -0
- package/dist/assets/PeoplePage-PyWOVc5M-DILaV4hT.js +727 -0
- package/dist/assets/{Preview-BCmMZb_d.js → Preview-DaDKYAzg.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dp5Of83--C9TEcIb9.js → ProductsCarousel-fMS3PJAc-r1K9Xxoj.js} +5 -5
- package/dist/assets/{PromoBaseCards-Bpmi7do2-DeOoBn1O.js → PromoBaseCards-HY42c1kU-DSpx7Fy3.js} +17 -17
- package/dist/assets/{QBOConnectionDialog-BCOigpzW-BBWvt6M8.js → QBOConnectionDialog-B_AOC_hG-BSWcu79k.js} +3 -3
- package/dist/assets/{QBOSetupSection-Blf2QxYu-Bt1Iazrw.js → QBOSetupSection-CQHdqpJF-CH_S6Ewi.js} +10 -10
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D0oeO5MZ-95x-7hZW.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-Cq3lTD4B-BL73XOQv.js → ReimbursementApprovalRulesPage-Beg7ljMA-Cr4MOQVc.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-CxP7ZEyW-DzWZJWkr.js → ReimbursementDetailPage-DBxKNhum-DE3tfEga.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-tSycJK9l-DgiKrFaE.js → ReimbursementPromoPage-DxZeTOQW-CNGgL2HL.js} +22 -22
- package/dist/assets/{ReimbursementSetUpPage-iGjNkC8E-B8NnEeyY.js → ReimbursementSetUpPage-CN4LhFrS-BfRZlJ5w.js} +10 -10
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HrLSNRHq-CeYe3rfm.js → ReimbursementsBulkReviewDrawerPage--6OUmjzW-D3GoPfdC.js} +1 -1
- package/dist/assets/{ReloadCard-CuRTghCv-3_xFCAvr.js → ReloadCard-BluhBNO--D0eilzgR.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-C2oaqgZL-LiKiujIv.js → ReportTableViewSelector-8KYimU0G-YYB33_Xu.js} +31 -31
- package/dist/assets/{ReportsPage-D5DDZHox-oQcDXAqo.js → ReportsPage-D-UfdQ34-CNx_b_ly.js} +5 -5
- package/dist/assets/{RevenueChart-Na7paK3w-xsPSohkz.js → RevenueChart-C9EztEKi-BbW9YFNy.js} +18 -18
- package/dist/assets/{ReviewDetailsPage-BFj3ZJyp-C3ZZt6ZX.js → ReviewDetailsPage-B6SYtYUA-d0bXCGW4.js} +32 -32
- package/dist/assets/{ReviewOverlay-Cz8LqkKC-LpMuOjyz.js → ReviewOverlay-C2enVZqt-C_vH9CpL.js} +18 -18
- package/dist/assets/RoleWithToolTip-DA3BIg5j-DG-Lih0N.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-UVIM7eda-DfB6eFkU.js → ScheduleDetailsFixedAssetsPage-DmBVVX79-6-1NS4t6.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-_mUOLW28-BO_4j_pg.js → ScheduleDetailsPage-Bp3d9tdD-Ct_0Fci8.js} +8 -8
- package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js +324 -0
- package/dist/assets/{ScreenRoutes-CtQ8gAzw.js → ScreenRoutes-CvjimsD0.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C_DCt5R8-CR6h0hZw.js → SetUpAccountSection-DiEFZwFL-DC1aQ-pj.js} +5 -5
- package/dist/assets/SignIn-T74bkrxk-ptxkK8PP.js +491 -0
- package/dist/assets/SignInScreen-BYcec7re.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-Cxe5movK-Cp5y9Fyu.js → SpendManagementListViewPage-BoWIPx5V-DXR-HLOL.js} +13 -13
- package/dist/assets/{SpendManagementPerTabPage-Dj9VrJCp-DyydCk6c.js → SpendManagementPerTabPage-DRrECrxC-dCEqiObE.js} +25 -25
- package/dist/assets/{SpendManagementSection-DGGqh0xs-DYfYRUAC.js → SpendManagementSection-xoH8d-PB-6nPhw1xu.js} +23 -23
- package/dist/assets/StatementItem-BthXwXFQ-j2l7jY5v.js +31 -0
- package/dist/assets/StatementsPage-FmjXzQ3g-oWNeSYKv.js +58 -0
- package/dist/assets/{StatusSwitcher-DsSflF9D-C9Uj39S-.js → StatusSwitcher-C-2QxP_3-DVOlvAn4.js} +2 -2
- package/dist/assets/{SubTabSwitcher-DxUZTJB0-BcVJNQoB.js → SubTabSwitcher-D3iTZY-F-CSjMFn8K.js} +2 -2
- package/dist/assets/{SummaryCard-B1mg84fd-BMICGbB9.js → SummaryCard-BbzDLzif-jCXiXuPT.js} +1 -1
- package/dist/assets/{TaskManagementPage-Z40FApxJ-DL--AmQh.js → TaskManagementPage-DI_lMbra-CdUdFSOY.js} +15 -15
- package/dist/assets/{TimeRangeSwitcher-B4sHEx1F-DFE9Lsm5.js → TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-D8zfgEX_-De-R1snt.js → TimeframeSwitcher-C8iVJfJz-B35AQLzW.js} +6 -6
- package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js +31 -0
- package/dist/assets/{TopExCard-BpicN73M-Dj1d-6JO.js → TopExCard-DlberdWy-AXYKUOGt.js} +6 -6
- package/dist/assets/{TopExDetailPage-iw-7HulH-BloggZUw.js → TopExDetailPage-DZyUPQ9i-kejvgUv1.js} +9 -9
- package/dist/assets/{TransactionActivityLogPage-D7oH2hs_-CmbXQuTN.js → TransactionActivityLogPage-Bpdbc21v-DQ1FP9jB.js} +15 -15
- package/dist/assets/TransactionDetailPage-CaRcJukf-CnifEZvn.js +903 -0
- package/dist/assets/TransactionList-BAziC6eS-6qNOgl8E.js +153 -0
- package/dist/assets/{TransactionListBig-BYHLJtlB-7uyuVHel.js → TransactionListBig-D6Q9QimF-DjvcRG58.js} +13 -13
- package/dist/assets/TransactionListPage-Ce_lSS6C-YqGl74XY.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-CEAFUrTl-DPFjrUzW.js → TransactionVendorDetailPage-B4A4amjV-rbnaqzN7.js} +7 -7
- package/dist/assets/{TransferDrawerPage-C6hdavbT-D88FiI-0.js → TransferDrawerPage-Dfhpu5Yd-D-lZQHfG.js} +27 -27
- package/dist/assets/{TreasuryOverviewPage-BP26JP5_-CseTVHsp.js → TreasuryOverviewPage-B6WhqRDb-BYZSOn3C.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DjVR20gs-CLIAZ8sX.js → TreasuryPromoPage-C5DXueHJ-DvuJR2wv.js} +131 -131
- package/dist/assets/TreasuryStatementsPage-8qXJLq1U-C7VbrxO2.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-xsnS5RHz.js +58 -0
- package/dist/assets/{TrendChart-sup0F9JZ-DSEAIHAe.js → TrendChart-FPLC1aMv-BpKn1lA4.js} +3 -3
- package/dist/assets/{TrendWithTransactions-C7azwT25-Bax9K_N2.js → TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-Etkl_fAG-CrNZiboy.js → UncategorizedAccountsMappingPage-rdMygvxx-CB5luTSv.js} +22 -22
- package/dist/assets/{UnitIntegrationPage-ZsJHRr7Z-DnB4_Zct.js → UnitIntegrationPage-WfFukh9_-Db1kSxll.js} +11 -11
- package/dist/assets/{UploadAdditionalDocumentOverlay-Z5AuwaDQ-B2Cs9t2G.js → UploadAdditionalDocumentOverlay-xiqklxM_-C-ghpumD.js} +1 -1
- package/dist/assets/Vendor2FAPopup-DK98Bntc-CHLdTtz5.js +1 -0
- package/dist/assets/VendorACHDetailsPage-Bxo11l9N-DiVKko5M.js +1 -0
- package/dist/assets/{VendorDetailPage-Dnr8_eWj-oFCPIA59.js → VendorDetailPage-Cexet52V-fximdJ6Q.js} +25 -25
- package/dist/assets/VendorDomesticWireDetailsPage-DbhChvIp-Cn8HKuB3.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-C7SK3oAX-BeOVSOYX.js → VendorFiling1099EditablePage-Bnwp2JiZ-B1voyhYV.js} +38 -38
- package/dist/assets/{VendorFirstReviewPage-sMOzaFlZ-DmFO_p3M.js → VendorFirstReviewPage-C_xSf47L-YlGbjVwi.js} +37 -37
- package/dist/assets/{VendorInternationalWireDetailsPage-B2c1Rev--CSKl1Vjc.js → VendorInternationalWireDetailsPage-DVuenbq8-CpmeIHQG.js} +9 -9
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-CvXAX7v6.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Df4nOfCb-DAl3nupW.js → VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js} +2 -2
- package/dist/assets/{VerifyDevice-ogibIJ0s-BnNQtXiS.js → VerifyDevice-MbuunHNJ-0NsL1ICM.js} +9 -9
- package/dist/assets/{VideoPlayer-C5JZyeyT-DadgGvmc.js → VideoPlayer-B-oV4gcS-IlmjYyud.js} +2 -2
- package/dist/assets/{VideoPopup-Dw-9lQNK-yoJdS8GI.js → VideoPopup-DFfn4tne-e-69xGLM.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-CR9wWm5g-C6z513Mb.js → WarningsDrawerPage-C_nKfBpS-CgVWLVpY.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-CP6XbPoi-BIH8iyXn.js → ZeniAccountDetailPage-jYwDoLiN-C9ExO4Jo.js} +17 -17
- package/dist/assets/{ZeniAccountListViewPage-B-8rvc59-BKuFOztM.js → ZeniAccountListViewPage-CWiWh2ld-BsZ-NitY.js} +20 -20
- package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BhUfl-Q9.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-DmXuuPc3-LNpY_fdO.js → ZeniAccountPromoPage-DPab5PDZ-CdBoWbQ6.js} +13 -13
- package/dist/assets/{ZeniAccountSetupPage-CiLrh0yu-AtE9vx6M.js → ZeniAccountSetupPage-Dbqa1LpU-DR-JNx31.js} +1 -1
- package/dist/assets/{ZeniCopyright-DIzbP27w-BBhz6Xwh.js → ZeniCopyright-SDIPg48K-6zG7DJUz.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CYZYkuN_-ZAbh5fe3.js → ZeniTransferAmountSlider-Bg59KBt9-PXMuIYqh.js} +11 -11
- package/dist/assets/{add-to-wallet-DgdBD8_G-DsabBTTA.js → add-to-wallet-DgdBD8_G-4MTVGYLk.js} +1 -1
- package/dist/assets/{analytics-DyCH8fdj.js → analytics-DkApCpAh.js} +1 -1
- package/dist/assets/analyticsHelper-DAh0LrcL.js +1 -0
- package/dist/assets/{analyticsHelper-CirorDP7-BBwgJh2i.js → analyticsHelper-DfCXurTN-CSH8s8BS.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-u4TBRWYh.js → arrow-south-east-round-PEovUgvH-sjXlUHVP.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CKdpG0Wv.js → auto-transfer-rule-mbafm5D3-8P5UKTjR.js} +1 -1
- package/dist/assets/{chartTypes-B9iWOG3r-B1tHasb2.js → chartTypes-H306f0ce-DSh0OTeZ.js} +1 -1
- package/dist/assets/{commonDimensions-SFn2jHVc-W5oDY-Cl.js → commonDimensions-CWffpElu-DyTXC1xY.js} +1 -1
- package/dist/assets/commonTypes-DP3nDhtI-D-fLD29s.js +1 -0
- package/dist/assets/{constants-BPypkR2d.js → constants-42un7CRh.js} +1 -1
- package/dist/assets/{core-abG3s-mt.js → core-DQ8U4CJb.js} +1 -1
- package/dist/assets/{dash.all.min-BxgXbuTP.js → dash.all.min-xDoItceu.js} +1 -1
- package/dist/assets/{detailCommon-BTjqps8N-BxbaqYHY.js → detailCommon-CfrL4ryy-K2hvWKyD.js} +2 -2
- package/dist/assets/downloadPdf-C1zKY9Rq-Bj2M-x0n.js +1 -0
- package/dist/assets/{empty-CpBaMiET.js → empty-DBMIDect.js} +1 -1
- package/dist/assets/{empty-DqczoxtD.js → empty-DMdKDWd5.js} +1 -1
- package/dist/assets/epic-av5bi8Jm.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-muscVLug.js → gift-box-Cmt9OgIZ-CKZgCX5V.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BDzwyc71.js → graphic-no-data-l-DU4J8fDt-B74xUk4A.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DuFj4Okf.js → graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BnjdTShZ.js → handshake-BPg58FML-ci6EVnAm.js} +1 -1
- package/dist/assets/helper-Byvbf3nO-BTmT7Zux.js +223 -0
- package/dist/assets/{index-c9CJIpO5.js → index-BIYLqgct.js} +4065 -4076
- package/dist/assets/{index-BR6z2Cuo.js → index-C-yZdmSC.js} +1 -1
- package/dist/assets/{index-CLsoD8lW.js → index-CP7n6qbn.js} +1 -1
- package/dist/assets/{index-DKJteqIE.js → index-Ci8_ElRT.js} +1 -1
- package/dist/assets/{index-BBfcm2Yq.js → index-DlHdI3-w.js} +1 -1
- package/dist/assets/{index-CzmKgKhh.js → index-MLR605z1.js} +1 -1
- package/dist/assets/{index-CRcaYiy_.js → index-uFwLgEj2.js} +1 -1
- package/dist/assets/{lexical-Ce5kgHxh.js → lexical-CvUIM9vD.js} +1 -1
- package/dist/assets/{liveblocks-CPDN-bxu.js → liveblocks-DXGUxn7J.js} +1 -1
- package/dist/assets/{lottie-DoLcJmSl.js → lottie-C1yptpVV.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BywQAVX8-BWy9Izzl.js → mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-BCRaNO17-Byu958vH.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CKjqanKd-DENH9FkH.js → mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js} +1 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js +1 -0
- package/dist/assets/{mui-D41H02IU.js → mui-rLvQ8A4a.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-22LFYKTK.js → page-detail-CWX5S47F-DxBKGqnW.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +3 -0
- package/dist/assets/{radio-default-CiSgisfh-DEBUIxiL.js → radio-default-CiSgisfh-D50TMWyl.js} +1 -1
- package/dist/assets/{react--SQFx4Kx.js → react-BFvwO_Qx.js} +1 -1
- package/dist/assets/{react-CGgueq7f.js → react-BGRcEI9e.js} +1 -1
- package/dist/assets/{react-Cm0EHNfW.js → react-CD-rvAYw.js} +1 -1
- package/dist/assets/{react-BqjJcaMR.js → react-CKPzfXiX.js} +1 -1
- package/dist/assets/{react-DUspGHoH.js → react-CaPJ_R38.js} +2 -2
- package/dist/assets/{react-CtY0Cknp.js → react-CeXW-10t.js} +1 -1
- package/dist/assets/{react-DDATozhB.js → react-D5l7wk4q.js} +2 -2
- package/dist/assets/{react-B04F0wBA.js → react-XCvfp0dN.js} +1 -1
- package/dist/assets/{recharts-B5Zd2InX.js → recharts-BYppTjSs.js} +1 -1
- package/dist/assets/{sentry-BhPnLTGd.js → sentry-DhNwX3jk.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CNdwFJ12.js → shield-DOlUxcFf-1dcmCA6e.js} +1 -1
- package/dist/assets/toCOABalancesWithID-BDzeodcz-CM7cQRcs.js +1 -0
- package/dist/assets/{toChartData-mAeXlYNV-BLp7cdZE.js → toChartData-ILqaSUrn-x9ixmlfa.js} +1 -1
- package/dist/assets/{uploadAttachment-BAVcYsOo-CMKItCdP.js → uploadAttachment-BO1VJaKW-DrgLpT8c.js} +18 -18
- package/dist/assets/{uploadReceipts-Dge0cNF1-MU4yxAi1.js → uploadReceipts-Dge0cNF1-BX-9R6_Z.js} +1 -1
- package/dist/assets/{url-DE7671Su.js → url-C7FJoqre.js} +1 -1
- package/dist/assets/{url-Cp1oOvVY.js → url-DrmuGGE4.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DzBEsit3.js → useLongPress-GCK2COYQ-nce713S8.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D5KVlHSv.js → usp-line-BBd1wKwW-BIn3NV9C.js} +1 -1
- package/dist/assets/{utils-B-wjDpf0.js → utils-BdIPH7k8.js} +1 -1
- package/dist/assets/{zeni-epic-state-CqFcQgfC.js → zeni-epic-state-DwkN4IvA.js} +18 -18
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-DBm3kSeD-DgZsiQsc.js +0 -18
- package/dist/assets/AccountLockedInfoModal-Dbzdjjk6-CQuhFPxK.js +0 -59
- package/dist/assets/AccountRow-D5S7-AKx-DFEd0gRx.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-Cfd3TMpf-DS6Q-S6T.js +0 -6
- package/dist/assets/AppBasePage-BhcC9bkH-DY-zqUv_.js +0 -71
- package/dist/assets/BillingSettingsPage-Br6yvoDv-BVZt-mIm.js +0 -44
- package/dist/assets/BusinessVerificationPage-orZNuqPA-DN6BhpnL.js +0 -138
- package/dist/assets/ChargeCardPromoPage-Dv8vSGMv-DO14uvec.js +0 -222
- package/dist/assets/ChargeCardStatementsPage-1ntqN8-C-uWaZK7Rq.js +0 -60
- package/dist/assets/CompanyOfficerDetailsSection-DQYR5DxB-Dzg2SYW5.js +0 -260
- package/dist/assets/CompanyPassportPage-DrNN8V93-TiBtr88b.js +0 -574
- package/dist/assets/ConfettiBurst-arWK85ba-Dxqk_qSJ.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-_uAzzeQT-BdhST5rY.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-Dabc1DIn-Bqk6osmf.js +0 -66
- package/dist/assets/CustomerOnboardingPage-Dt4u_Cnq-MYrZCy5c.js +0 -107
- package/dist/assets/DashboardSidebarBackgroundAnimation-C8g6lMFj-DhpqWc07.js +0 -12
- package/dist/assets/EditPeoplePage-XMLOGiwc-DwxtBXpN.js +0 -55
- package/dist/assets/EntityDetailPage-CtIcsfb_-CIHO5j6s.js +0 -18
- package/dist/assets/InsightsSection-CwYXRQBN-ojTww2r2.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-YuglosZT-CTIGwFwe.js +0 -292
- package/dist/assets/InvitePeoplePage-C0n05Aw5-Dsg4dRJP.js +0 -12
- package/dist/assets/InvoiceUploadSection-UXlA1jqD-LW2eaB-9.js +0 -140
- package/dist/assets/LabeledAddressValueField-ClBxKhYQ-IyPU1pJT.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-B8sC2eqF-Cc7yYQUL.js +0 -16
- package/dist/assets/LabeledDocumentField-D520KMMj-Ca86pecT.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-BwoAMxs1-CvSeEIy1.js +0 -59
- package/dist/assets/MagicLinkACHDetailsPage-C7hjYeuM-C-VMVcjc.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv6pT3w6-BY_F4ivB.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CfMDImmz-je_9TTbm.js +0 -1
- package/dist/assets/MagicLinkSuccessPage-D9Xys0GC-B16t-MQB.js +0 -31
- package/dist/assets/MailingDetailsSection-wmwBSANL-CATLTkX5.js +0 -21
- package/dist/assets/MyProfileSettingsPage-BKCzLBD9-POWCCK43.js +0 -85
- package/dist/assets/NoDataTable-0l_09Wxn-B_nhuKqo.js +0 -8
- package/dist/assets/OverlayContainerPage-D4QU0p4o-COZLtgYN.js +0 -11
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CBVazVlJ-CZjIpPrr.js +0 -107
- package/dist/assets/PeoplePage-z8ZDLJp4-C8fD_Q1w.js +0 -675
- package/dist/assets/ReimbursementApprovalRuleDetailPage-D4G5Zc8u-DOAEAlFb.js +0 -32
- package/dist/assets/RoleWithToolTip-CSC65531-D3hYJ9aX.js +0 -22
- package/dist/assets/ScheduleSequenceTable-DQlMdMO0-DgF9ktNo.js +0 -324
- package/dist/assets/SignIn-1fhq5RCV-CQjnMsbe.js +0 -491
- package/dist/assets/SignInScreen-DXMVSzLX.js +0 -1
- package/dist/assets/StatementItem-ChfKUse--4KWnN4Iu.js +0 -31
- package/dist/assets/StatementsPage-BAg2GA58-DVyh5doh.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-CD1f2F9o-Co90HEzt.js +0 -31
- package/dist/assets/TransactionDetailPage-DLiA4XLe-CZEokP0a.js +0 -903
- package/dist/assets/TransactionList-CFz4Gf7Z-DDUxkM97.js +0 -153
- package/dist/assets/TransactionListPage-BxtVNNib-BUJHEG2b.js +0 -35
- package/dist/assets/TreasuryStatementsPage-Beixz0Ou-CYBR4Dk7.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-BW2fTHN--Cd-eOWfE.js +0 -58
- package/dist/assets/Vendor2FAPopup-BcnPzCr1-iYA-Hjx9.js +0 -1
- package/dist/assets/VendorACHDetailsPage-D5SdrDy6-C-r4VMgU.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-Bv2OKF0M-CYnwGxHP.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CRpoKTWj-BHvGh8LV.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-D_Jdtql7-0Xy7FGjE.js +0 -14
- package/dist/assets/analyticsHelper-THi-SdkR.js +0 -1
- package/dist/assets/downloadPdf-CqjEwKR5-D2e_dzuk.js +0 -1
- package/dist/assets/epic-ChSldDcQ.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-DkhO3K0B-zvmTcvmi.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-nn83cq1C-BG8mZHCj.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CmXuntuz-Ksjnj8VQ.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Bs8iGys9-DZGfgxcv.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-eIiX1Dum.js +0 -4
- package/dist/assets/toCOABalancesWithID-DvC1wuTC-BtXflXCv.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{o,bW as
|
|
1
|
+
import{o,bW as Ia,J as ke,gl as ls,gm as cs,V as t,cr as $a,bC as Ta,aa as We,aS as ds,u as x,F as Ie,cs as La,y as G,d as gt,bD as Aa,i9 as Ea,aP as Je,bU as we,dk as Nn,bw as Ra,ga as Da,ab as z,i7 as Oa,am as _e,h1 as Ma,gV as us,bx as Fa,bQ as Mt,b8 as hs,aj as It,bL as ps,p as Xe,km as za,an as xt,ce as Cn,a9 as Jt,bP as Eo,ad as Zt,kn as _a,ko as Ba,kp as Pa,kq as hn,kr as ms,ks as gs,kt as Na,ku as Zo,kv as Va,go as xs,dn as fs,kw as Wa,kx as Ha,ky as Ua,kz as qa,kA as Ka,kB as Ja,kC as Za,kD as Ga,kE as Ya,kF as Qa,kG as ys,kH as Xa,kI as er,kJ as tr,kK as nr,gD as Cs,b4 as Vn,cv as Wn,T as ws,I as bs,q as vs,cH as wn,dW as Ro,x as or,gn as ir,bp as sr,cl as ar,c3 as rr,eI as bn,c0 as Do,ar as lr,c as cr,fE as dr,aF as Ss,kL as ur,aW as Oo,aR as Go,gX as js,kM as hr,kN as pr,kO as mr,bG as ks,aU as gr,dS as Ft,gL as Ot,hZ as Kn,eF as Fn,cL as Mo,az as xr,eG as Is,dq as fr,gy as yr,fT as Cr,h4 as wr,iV as br,co as Fo,cB as Hn,cE as Un,iC as it,b as Dt,hM as vr,gE as Jn,jk as Yo,dl as $s,d3 as xn,kP as Sr,a_ as jr,du as Ts,i as fn,it as Ls,iD as So,kQ as on,eh as As,ej as Es,iY as Rs,iZ as Ds,kR as kr,d1 as qn,iu as Os,fs as Ms,ew as Zn,aL as jo,kS as Ir,cQ as $r,aZ as Fs,iK as Tr,dU as Lr,ap as vt,kT as Ar,kU as Er,b2 as Gn,es as Rr,a8 as Dr,et as Or,eu as Mr,ev as Fr,ey as Qo,ez as Xo,eA as zr,kV as _r,b0 as Br,eK as Pr,eL as Nr,eM as Vr}from"./index-BIYLqgct.js";import{a as s,P as Wr}from"./sentry-DhNwX3jk.js";import{n as a,c as Ve,k as zo}from"./mui-rLvQ8A4a.js";import{bh as Yn,Gs as ei,Gt as yn,Gu as Hr,Gv as Ur,cx as qr,bL as ko,cy as Kr,ER as ti,cz as Jr,cA as Zr,l8 as pn,bE as Wt,Gw as ni,c4 as zs,Gx as Gr,bY as Yr,bo as Ht,Gy as Qr,Gz as _s,GA as Bs,GB as Ps,GC as Ns,GD as Vs,GE as _o,kU as Xr}from"./zeni-epic-state-DwkN4IvA.js";import{t as Bo}from"./panelSelectedMixin-Cddsb26L-CUpBjaaO.js";import{r as Ws,I as Hs,n as sn,R as mt}from"./CollapsableReportTable-CncMWpFI-CnBbDhbn.js";import{D as Qn}from"./AccountRow-DHB-ETil-0INUiG8Z.js";import{o as Us}from"./mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js";import{d as oi}from"./mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js";import{h as el}from"./VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js";import{u as tl,c as ii,d as nl,m as ol}from"./uploadAttachment-BO1VJaKW-DrgLpT8c.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="34051780-93ca-4a57-b31a-c66865250ad5",e._sentryDebugIdIdentifier="sentry-dbid-34051780-93ca-4a57-b31a-c66865250ad5")}catch{}})();const{common:{navBar:{back:il},texts:{refresh:sl,close:al,copy:rl,copied:ll,open:cl}},expenseAutomation:{common:{numbers:{maximumCount:dl}}}}=Ie.getLocalizedStrings(),ul=a(yr)`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: ${o.sp4};
|
|
4
4
|
height: ${o.sp4};
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
`,
|
|
7
|
+
`,hl=a.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
@@ -14,7 +14,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
14
14
|
&:hover {
|
|
15
15
|
color: ${e=>e.theme.colors.primary};
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,pl=a.div`
|
|
18
18
|
width: 100%;
|
|
19
19
|
display: flex;
|
|
20
20
|
flex-shrink: 0;
|
|
@@ -24,36 +24,36 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
24
24
|
position: sticky;
|
|
25
25
|
top: 0;
|
|
26
26
|
z-index: 6;
|
|
27
|
-
`,
|
|
27
|
+
`,ml=a.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
align-items: center;
|
|
31
31
|
padding-left: ${e=>ai.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
32
32
|
padding-right: ${e=>ai.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
33
|
-
`,
|
|
33
|
+
`,gl=a.div`
|
|
34
34
|
display: flex;
|
|
35
35
|
align-items: baseline;
|
|
36
36
|
justify-content: end;
|
|
37
37
|
gap: ${o.sp4};
|
|
38
38
|
flex: 1 1 ${o.sp0};
|
|
39
|
-
`,
|
|
39
|
+
`,xl=a.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: baseline;
|
|
42
42
|
justify-content: start;
|
|
43
43
|
gap: ${o.sp4};
|
|
44
44
|
flex: 1 1 ${o.sp0};
|
|
45
|
-
`,
|
|
45
|
+
`,fl=a(wr)`
|
|
46
46
|
width: ${o.sp3};
|
|
47
47
|
height: ${o.sp3};
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-left: ${o.sp1};
|
|
50
50
|
color: inherit;
|
|
51
|
-
`,
|
|
51
|
+
`,yl=a(Cr)`
|
|
52
52
|
width: ${o.sp3};
|
|
53
53
|
height: ${o.sp3};
|
|
54
54
|
margin-left: ${o.sp1};
|
|
55
|
-
color: ${
|
|
56
|
-
`,
|
|
55
|
+
color: ${Xe.success};
|
|
56
|
+
`,Cl=a(or)`
|
|
57
57
|
cursor: pointer;
|
|
58
58
|
width: ${o.sp4};
|
|
59
59
|
height: ${o.sp4};
|
|
@@ -61,7 +61,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
61
61
|
&:hover {
|
|
62
62
|
color: ${e=>e.theme.colors.primary};
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,wl=a(rr)`
|
|
65
65
|
cursor: pointer;
|
|
66
66
|
width: ${o.sp4};
|
|
67
67
|
height: ${o.sp4};
|
|
@@ -69,28 +69,28 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
69
69
|
&:hover {
|
|
70
70
|
color: ${e=>e.theme.colors.primary};
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`,bl=a(ar,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
|
|
73
73
|
cursor: pointer;
|
|
74
74
|
width: ${o.sp4};
|
|
75
75
|
height: ${o.sp4};
|
|
76
76
|
color: ${e=>e.theme.colors.hero};
|
|
77
|
-
animation: ${e=>e.$spinning?
|
|
78
|
-
${
|
|
77
|
+
animation: ${e=>e.$spinning?Ve`
|
|
78
|
+
${vl} 2s linear infinite;
|
|
79
79
|
`:"none"};
|
|
80
80
|
&:hover {
|
|
81
81
|
color: ${e=>e.theme.colors.primary};
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,vl=zo`
|
|
84
84
|
0% {
|
|
85
85
|
transform: rotate(0deg);
|
|
86
86
|
}
|
|
87
87
|
100% {
|
|
88
88
|
transform: rotate(360deg);
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,Sl=a.div`
|
|
91
91
|
padding-top: ${o.sp0};
|
|
92
92
|
padding-bottom: ${o.sp0};
|
|
93
|
-
`,si=a(
|
|
93
|
+
`,si=a(_e)`
|
|
94
94
|
color: ${e=>e.theme.colors.hero};
|
|
95
95
|
text-align: center;
|
|
96
96
|
display: flex;
|
|
@@ -98,9 +98,9 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
98
98
|
justify-content: center;
|
|
99
99
|
flex-direction: column;
|
|
100
100
|
padding-bottom: ${o.sp4};
|
|
101
|
-
`,Sl=a.div`
|
|
102
|
-
display: flex;
|
|
103
101
|
`,jl=a.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
`,kl=a.div`
|
|
104
104
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
105
105
|
width: 100%;
|
|
106
106
|
margin-top: -2px;
|
|
@@ -108,19 +108,19 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
108
108
|
border-top-left-radius: ${o.sp2};
|
|
109
109
|
border-bottom-right-radius: ${o.sp2};
|
|
110
110
|
border-bottom-left-radius: ${o.sp2};
|
|
111
|
-
`,
|
|
111
|
+
`,Il=a.div`
|
|
112
112
|
display: flex;
|
|
113
113
|
height: ${o.sp4};
|
|
114
|
-
|
|
114
|
+
`,$l=a.div`
|
|
115
115
|
text-align: center;
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: center;
|
|
118
118
|
justify-content: center;
|
|
119
119
|
flex-wrap: wrap;
|
|
120
|
-
|
|
120
|
+
`,Tl=a.div`
|
|
121
121
|
display: flex;
|
|
122
122
|
flex-direction: column;
|
|
123
|
-
`,
|
|
123
|
+
`,Ll=a(bn)`
|
|
124
124
|
width: ${o.sp3};
|
|
125
125
|
height: ${o.sp3};
|
|
126
126
|
margin-right: ${o.sp1};
|
|
@@ -128,12 +128,12 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
128
128
|
stroke-width: 2;
|
|
129
129
|
}
|
|
130
130
|
`,jn=a.span`
|
|
131
|
-
font-weight: ${
|
|
132
|
-
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,Ll=a.span`
|
|
134
|
-
font-weight: ${Ro.medium};
|
|
131
|
+
font-weight: ${Do.regular};
|
|
135
132
|
color: ${e=>e.theme.colors.primary};
|
|
136
133
|
`,Al=a.span`
|
|
134
|
+
font-weight: ${Do.medium};
|
|
135
|
+
color: ${e=>e.theme.colors.primary};
|
|
136
|
+
`,El=a.span`
|
|
137
137
|
color: ${e=>e.theme.colors.primary};
|
|
138
138
|
text-decoration: underline;
|
|
139
139
|
text-decoration-color: ${e=>e.theme.colors.grey2};
|
|
@@ -151,24 +151,24 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
151
151
|
}
|
|
152
152
|
text-decoration-color: ${e=>e.theme.colors.primary};
|
|
153
153
|
}
|
|
154
|
-
`,ai={subSectionContainerLeftRightPadding:new
|
|
154
|
+
`,ai={subSectionContainerLeftRightPadding:new G(x[3],x[6],x[8])},Rl=({onAllThreadsClick:e,companyId:n,companyName:c})=>{const r={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:c,url:window.location.href},{url:p,...h}=r,i={...h},{threads:d,isLoading:l}=ir(i,!1,!1),m=d.filter(u=>u.id.includes(xs)===!1);return t.jsxs(hl,{isDisabled:l,onClick:e,"data-testid":z("comment-icon"),children:[t.jsx(sr,{count:m.length,isLoading:l}),t.jsx(ul,{})]})},Dl=({headerData:e,refreshStatus:n,searchText:c,companyName:r,companyId:p,isZeniUser:h,onAllThreadsClick:i,onClose:d,onRefresh:l,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&l()};return t.jsx(gl,{children:e.rightSection.map((g,f)=>{switch(g){case"search":return t.jsx(Oa,{isSearchOpen:(c.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:c,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:o.sp4},searchIconMarginRight:o.sp0,onSearchTextChanged:y=>{m(y)},downloadPresent:!1},f+g);case"refresh":return t.jsx(we,{display:"block",placement:"bottom",title:sl,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(bl,{onClick:u,$spinning:n==="In-Progress","data-testid":z("refresh-icon")})},f+g);case"comment":return h===!1?null:t.jsx(Rl,{companyId:p,companyName:r,onAllThreadsClick:i});case"close":default:return t.jsx(we,{display:"block",placement:"bottom",title:al,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(Cl,{onClick:d,"data-testid":z("close-icon")})},f+g)}})})},Ol=({headerData:e,onBack:n})=>t.jsx(xl,{children:e.leftSection.map((c,r)=>{switch(c){case"back":default:return t.jsx(we,{display:"block",placement:"bottom",title:il,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(wl,{onClick:n,"data-testid":z("back-button")})},r+c)}})}),ri=({text:e,linkText:n,windowSize:c,isCopied:r,onLinkClick:p})=>{if(n==null||!n)return t.jsxs(jn,{windowSize:c,children:[e," "]});const h=e.indexOf(n);if(h===-1)return t.jsxs(jn,{windowSize:c,children:[e," "]});const i=e.substring(0,h),d=e.substring(h+n.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(jn,{windowSize:c,children:[i.trim()," "]}):null,t.jsx(we,{display:"flex",placement:"right",title:us.test(n)?r?ll:rl:cl,enterTouchDelay:600,children:t.jsxs(El,{onClick:()=>p?.(n),"data-testid":z("pre-link"),children:[n,r?t.jsx(yl,{className:"success-icon"}):t.jsx(fl,{className:"copy-icon"})]})}),d?t.jsxs(jn,{windowSize:c,children:[d," "]}):null]})},li=({subTitles:e})=>{const n=ke(),[,c]=Ma(),[r,p]=s.useState(!1),h=s.useRef(null),i=s.useCallback(d=>{us.test(d)?(c(d),p(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{p(!1)},2e3)):window.open(d,"_blank","noopener,noreferrer")},[c]);return s.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]),t.jsx(Tl,{children:e.map((d,l)=>t.jsxs($l,{children:[d.pre?t.jsx(ri,{text:d.pre,linkText:d.preLink,windowSize:n,isCopied:r,onLinkClick:i}):null,d.prefixIconName?t.jsx(t.Fragment,{children:d.prefixIconName==="zeniAIIcon"?t.jsx(Ll,{}):t.jsx(t.Fragment,{})}):null,d.bold?t.jsx(t.Fragment,{children:t.jsxs(Al,{windowSize:n,children:[d.bold," "]})}):null,d.post?t.jsx(ri,{text:d.post,linkText:d.postLink,windowSize:n,isCopied:r,onLinkClick:i}):null]},l+d.bold+d.pre+d.post))})};function Ml(e){const{headerData:n,currentTab:c,completionStatus:r,onUpdateTab:p,selectedReconAccountId:h,getTabCountAndFetchState:i,reconcileDetailPageFetchState:d,forceShowSubtitle:l,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:g,navBarCustomElement:f,titleStyle:y={}}=e,b=i("autoCategorized")?.count??0,S=i("review")?.count??0,k=i("reconcile")?.count??0,C=n.tabs.length>0||n.subTitle.length>0,L=m==="transaction_categorization"&&c==="autoCategorized",j=m==="reconciliation"&&g==="review"&&h!=null,v=m==="reconciliation"&&g==="reconcile"&&h!=null,A=L?b>0:j?d==="In-Progress"?!0:S>0:v?d==="In-Progress"?!0:k>0:r!=="complete",T=gt(),I=ke();let R=[];return n.tabs.length>0&&(R=n.tabs.map(w=>({label:w.label,id:w.id,countDetails:i(w.id)}))),t.jsxs(pl,{children:[t.jsx(Aa,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:T.colors.grey4,onBackClick:()=>null,titleStyle:y,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(Ol,{...e}),rightSideComponent:t.jsx(Dl,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(We,{controller:C===!0,children:t.jsx(ml,{windowSize:I,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(Sl,{windowSize:I,children:t.jsx(Ea,{allTabs:R,selectedTab:m==="transaction_categorization"?c??R[0].id:g??R[0].id,onTabChange:w=>{if(m==="transaction_categorization"){const D=Hr(w.id);D!=null&&p(D)}else if(m==="reconciliation"){const D=Ur(w.id);D!=null&&u(D)}},maximumCountLimit:dl})}),t.jsx(kl,{windowSize:I}),t.jsx(Il,{}),t.jsx(We,{controller:A===!0||l===!0,children:t.jsx(si,{windowSize:I,children:n.tabs.map((w,D)=>(m==="reconciliation"?w.id===g:w.id===c)?t.jsx(jl,{children:t.jsx(li,{subTitles:w.subTitle})},D+w.id):null)})})]}):t.jsx(We,{controller:A===!0||l===!0,children:t.jsx(si,{windowSize:I,children:t.jsx(li,{subTitles:n.subTitle})})})})})]})}const Fl=1;function zl({name:e,checkBoxes:n,mode:c,isDisabled:r,style:p,labelStyle:h,labelCheckBoxStyle:i,checkBoxStyle:d,width:l,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:g,checkBoxContainerStyle:f,draggable:y=!1,selectionLimit:b,infoIconContainerStyle:S,onDragStart:k,rowHeight:C=40,initialScrollOffSet:L,onScroll:j}){const v=ke(),A=s.useRef(null),{control:T}=Mo(),I=n.find(V=>V.groupLabel),R=n.filter(V=>!V.groupLabel),w=[];for(const V of R)if(V.isException||w.push(V.value),b!=null&&w.length===b+1)break;const D=n.filter(V=>V.defaultChecked).map(V=>V.value);return t.jsx(Is,{control:T,name:e,rules:m,defaultValue:D,render:({field:{value:V,ref:q,onChange:P}})=>{const N=B=>{Bl({event:B,value:V,allCheckBoxValues:w,groupLabelCheckBox:I,onChange:P})};return t.jsxs(Pl,{style:p,windowSize:v,children:[I&&t.jsx(Po,{checkBox:I,index:0,value:V,allCheckBoxValues:w,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:g,checkBoxStyle:d,labelCheckBoxStyle:i,labelStyle:h,width:l,draggable:y,groupLabelCheckBox:I,infoIconContainerStyle:S,checkedIconColor:u,isDisabled:r,selectionLimit:b,onDragStart:k,ref:q,onChangeHandler:N}),t.jsx(Nl,{children:t.jsx(Vn,{style:{height:"100%",width:"100%"},children:({height:B,width:ie})=>t.jsx(Wn,{ref:A,height:B,width:ie,itemCount:R.length,itemSize:()=>C,estimatedItemSize:C,initialScrollOffset:L??0,onScroll:({scrollOffset:U})=>{j?.(U)},overscanCount:Fl,itemKey:U=>R[U].value,itemData:{checkBoxes:R,value:V,allCheckBoxValues:w,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:g,checkBoxStyle:d,labelCheckBoxStyle:i,labelStyle:h,width:l,draggable:y,groupLabelCheckBox:I,infoIconContainerStyle:S,checkedIconColor:u,isDisabled:r,selectionLimit:b,onDragStart:k,ref:q,onChange:P,handleChangeEvent:N,rowHeight:C},children:_l})})})]})}})}const _l=({index:e,style:n,data:c})=>{const r=s.useRef(null),{checkBoxes:p,value:h,allCheckBoxValues:i,mode:d,name:l,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:g,labelCheckBoxStyle:f,labelStyle:y,width:b,draggable:S,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:L,isDisabled:j,selectionLimit:v,onDragStart:A,ref:T,handleChangeEvent:I}=c,R=p[e];return t.jsx(Kl,{style:{...n,width:"100%"},ref:r,children:t.jsx(Po,{checkBox:R,index:e,value:h,allCheckBoxValues:i,mode:d,name:l,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:g,labelCheckBoxStyle:f,labelStyle:y,width:b,draggable:S,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:L,isDisabled:j,selectionLimit:v,onDragStart:A,ref:T,onChangeHandler:I})})},Po=s.forwardRef((e,n)=>{const{value:c,checkBox:r,groupLabelCheckBox:p,allCheckBoxValues:h,selectionLimit:i,mode:d,checkBoxStyle:l,labelCheckBoxStyle:m,isDisabled:u,draggable:g,checkBoxContainerStyle:f,infoIconContainerStyle:y,name:b,index:S,width:k,checkedIconColor:C,checkBoxIconStyle:L,labelStyle:j,onDragStart:v,onChangeHandler:A}=e,T=ke(),I=V=>{typeof n=="function"?n(V):n&&(n.current=V)};let R=c.includes(r.value);const w=Array.from(new Set([...c,r.value]));p?.value===r.value&&c.length>0&&(i!=null?R=w.length===h.length||w.length===i+1:R=h.every(V=>w.includes(V)===!0));const D=()=>d==="off"||r.isException?T==="small"?{display:"none",...l}:{visibility:"hidden",...l}:r.groupLabel?h.length===1&&h[0]===p?.value?{visibility:"hidden",...m}:m:l;return t.jsxs(Wl,{mode:d,draggable:g===!0,onDragStart:V=>{v?.(V,r.value)},style:f,isDisabled:u,isSelected:R,exceptionMode:r.exceptionMode,children:[r.prefix?t.jsx(Vl,{className:"prefix-box",children:r.prefix}):null,r.isException?t.jsx(Hl,{style:y,className:"checkbox-alert",children:t.jsx(we,{style:{padding:`12px ${o.sp3}`},title:r.exceptionInfo??"",placement:"bottom-start",children:r.exceptionType==="info"?t.jsx(Ul,{}):t.jsx(ql,{})})}):t.jsx(Ir,{name:`${b}.${r.value}`,checkBoxValue:r.value,value:R,checkedIconColor:C,isDisabled:u||!r.groupLabel&&!R&&i!=null&&w.length===i+1?"disabled":void 0,checkBoxStyle:D(),checkBoxIconStyle:L,ref:I,onChange:A}),typeof r.label=="string"&&r.label?t.jsx($r,{isDisabled:u,label:r.label,labelStyle:j,htmlFor:`${b}.${r.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:k,backgroundColor:"inherit",...j}}):r.label]},`${r.value}_${S}`)});Po.displayName="CheckBoxWithLabel";const Bl=({event:e,value:n,allCheckBoxValues:c,groupLabelCheckBox:r,onChange:p})=>{const h=e.currentTarget.value,i=e.currentTarget.checked,d=r?.value,l=new Set(n);if(h===d){p(i?Array.from(new Set([d,...c])):[]);return}i?l.add(h):l.delete(h);const m=c.every(u=>l.has(u));d!=null&&(m&&!l.has(d)?l.add(d):!m&&l.has(d)&&l.delete(d)),p(Array.from(l))},Pl=a.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
flex-direction: column;
|
|
157
157
|
width: 100%;
|
|
158
158
|
height: 100%;
|
|
159
|
-
`,
|
|
159
|
+
`,Nl=a.div`
|
|
160
160
|
flex: 1;
|
|
161
161
|
overflow: hidden;
|
|
162
|
-
`,Nl=a.div`
|
|
163
|
-
opacity: 0;
|
|
164
162
|
`,Vl=a.div`
|
|
163
|
+
opacity: 0;
|
|
164
|
+
`,Wl=a.div`
|
|
165
165
|
display: flex;
|
|
166
166
|
align-items: center;
|
|
167
167
|
flex-direction: row;
|
|
168
168
|
width: 100%;
|
|
169
169
|
min-height: ${o.sp4};
|
|
170
170
|
|
|
171
|
-
${e=>e.mode==="checked_or_hover"&&
|
|
171
|
+
${e=>e.mode==="checked_or_hover"&&Ve`
|
|
172
172
|
input:not(:checked) ~ .unchecked-icon {
|
|
173
173
|
opacity: 0;
|
|
174
174
|
}
|
|
@@ -181,7 +181,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
181
181
|
}
|
|
182
182
|
`};
|
|
183
183
|
|
|
184
|
-
${e=>e.mode==="hover_only"&&
|
|
184
|
+
${e=>e.mode==="hover_only"&&Ve`
|
|
185
185
|
input:not(:checked) ~ .unchecked-icon,
|
|
186
186
|
input:checked ~ .checked-icon {
|
|
187
187
|
opacity: 0;
|
|
@@ -198,7 +198,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
198
198
|
|
|
199
199
|
label {
|
|
200
200
|
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
201
|
-
${e=>e.isDisabled==="disabled"&&
|
|
201
|
+
${e=>e.isDisabled==="disabled"&&Ve`
|
|
202
202
|
color: ${e.theme.colors.grey2};
|
|
203
203
|
`};
|
|
204
204
|
cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
|
|
@@ -209,7 +209,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
209
209
|
opacity: 0;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
${e=>e.exceptionMode==="hover_only"&&
|
|
212
|
+
${e=>e.exceptionMode==="hover_only"&&Ve`
|
|
213
213
|
:hover {
|
|
214
214
|
.checkbox-alert {
|
|
215
215
|
opacity: 1;
|
|
@@ -217,29 +217,29 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
217
217
|
}
|
|
218
218
|
`}
|
|
219
219
|
|
|
220
|
-
${e=>e.exceptionMode==="checked_or_hover"&&
|
|
220
|
+
${e=>e.exceptionMode==="checked_or_hover"&&Ve`
|
|
221
221
|
.checkbox-alert {
|
|
222
222
|
opacity: 1;
|
|
223
223
|
}
|
|
224
224
|
`}
|
|
225
|
-
`,
|
|
225
|
+
`,Hl=a.div`
|
|
226
226
|
cursor: pointer;
|
|
227
|
-
`,
|
|
227
|
+
`,Ul=a(ps)`
|
|
228
228
|
height: ${o.sp3};
|
|
229
229
|
width: ${o.sp3};
|
|
230
230
|
color: ${e=>e.theme.colors.hero};
|
|
231
231
|
background-color: ${e=>e.theme.colors.grey4};
|
|
232
232
|
border-radius: 50%;
|
|
233
|
-
`,
|
|
233
|
+
`,ql=a(Ms)`
|
|
234
234
|
height: ${o.sp3};
|
|
235
235
|
width: ${o.sp3};
|
|
236
236
|
color: ${e=>e.theme.colors.hero};
|
|
237
237
|
background-color: ${e=>e.theme.colors.grey4};
|
|
238
238
|
border-radius: 50%;
|
|
239
|
-
`,
|
|
239
|
+
`,Kl=a.div`
|
|
240
240
|
width: 100%;
|
|
241
241
|
box-sizing: border-box;
|
|
242
|
-
`,Kl=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),Jl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),Gl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),Zl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),Yl=a.div`
|
|
242
|
+
`,Jl=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),Zl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),Gl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),Yl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),Ql=a.div`
|
|
243
243
|
width: 100%;
|
|
244
244
|
display: flex;
|
|
245
245
|
justify-content: center;
|
|
@@ -247,29 +247,29 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
247
247
|
flex: 1;
|
|
248
248
|
background: ${e=>e.theme.colors.grey4};
|
|
249
249
|
box-sizing: border-box;
|
|
250
|
-
`,Xl=a(
|
|
250
|
+
`,Xl=a(Zl)`
|
|
251
251
|
width: 90px;
|
|
252
252
|
height: 90px;
|
|
253
|
-
`,
|
|
253
|
+
`,ec=a(Gl)`
|
|
254
254
|
width: 90px;
|
|
255
255
|
height: 90px;
|
|
256
|
-
`,
|
|
256
|
+
`,tc=a(Jl)`
|
|
257
257
|
width: 90px;
|
|
258
258
|
height: 90px;
|
|
259
|
-
`,
|
|
259
|
+
`,nc=a(Yl)`
|
|
260
260
|
width: 90px;
|
|
261
261
|
height: 90px;
|
|
262
|
-
`,
|
|
262
|
+
`,oc=a.div`
|
|
263
263
|
display: flex;
|
|
264
264
|
align-items: center;
|
|
265
265
|
justify-content: center;
|
|
266
266
|
flex-direction: column;
|
|
267
|
-
`,
|
|
267
|
+
`,ic=a(lr)`
|
|
268
268
|
margin-top: ${o.sp2};
|
|
269
269
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
270
|
-
`,
|
|
270
|
+
`,sc=a(cr)`
|
|
271
271
|
color: ${e=>e.theme.colors.primary};
|
|
272
|
-
`,
|
|
272
|
+
`,ac=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(Xl,{});case"je_schedules":case"reconciliation":return t.jsx(nc,{});case"flux_analysis":return t.jsx(tc,{});case"missing_receipts":default:return t.jsx(ec,{})}};function jt(e){const{title:n,subTitle:c}=e;return t.jsx(Ql,{children:t.jsxs(oc,{children:[t.jsx(ac,{...e}),t.jsx(ic,{children:n}),t.jsx(sc,{children:c})]})})}const{common:{headers:{transactions:rc,jeSchedules:lc,fluxAnalysis:cc,missingReceipts:dc,insights:uc,reconciliation:ci},strings:{empty:Pt}},expenseAutomation:{transactions:{tabs:di,subTitles:{review:{item1:kn,item2:In},autoCategorized:{item1:$n,item2:hc}},searchPlaceholder:pc,allDoneText:mc},jeSchedules:{subTitles:{item1:gc,item2:xc},searchPlaceholder:fc,allDoneText:yc},missingReceipts:{subTitles:Cc,searchPlaceholder:wc,allDoneText:bc},fluxAnalysis:{subTitles:{item1:vc,item2:Sc},searchPlaceholder:jc,emptyPageTexts:{youDidIt:kc,allReviewed:Ic}},accountRecon:{review:{allDoneText:ui},reconcile:{allDoneText:$c},tabs:hi,titles:{item1:Tc,item2:Lc},subTitles:{review:{item1:Ac,item2:Tn},reconcile:{item1:Ln,item2:Ec}}}}}=Ie.getLocalizedStrings(),He=(e,n,c,r,p)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:rc,subTitle:[],tabs:[{label:di.review,id:"review",subTitle:[{pre:kn.pre,bold:kn.bold,prefixIconName:kn.prefixIconName,post:kn.post},{pre:In.pre,bold:In.bold,prefixIconName:In.prefixIconName,post:In.post}]},{label:di.autoCategorized,id:"autoCategorized",subTitle:[{pre:$n.pre,bold:$n.bold,prefixIconName:$n.prefixIconName,post:$n.post.replace("#number",n!=null&&n!=0?n.toString():"")},hc]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:pc,allDoneText:mc};case"je_schedules":return{key:"je_schedules",title:lc,subTitle:[gc,xc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:fc,allDoneText:yc};case"missing_receipts":return{key:"missing_receipts",title:dc,subTitle:[Cc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:wc,allDoneText:bc};case"flux_analysis":return{key:"flux_analysis",title:cc,subTitle:[vc,Sc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:jc,allDoneText:{title:kc,subTitle:Ic}};case"month_end_insights":return{key:"month_end_insights",title:uc,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Pt,allDoneText:{title:Pt,subTitle:Pt}};case"reconciliation":return c==null?{key:"reconciliation",title:ci,subTitle:[Tc,Lc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Pt,allDoneText:{title:Pt,subTitle:Pt}}:{key:"reconciliation",title:r??ci,subText:p??void 0,subTitle:[],tabs:[{label:hi.review,id:"review",subTitle:[Ac,{pre:Tn.pre,bold:Tn.bold,prefixIconName:Tn.prefixIconName,post:Tn.post}],allDoneText:ui},{label:hi.reconcile,id:"reconcile",subTitle:[{pre:Ln.pre,bold:Ln.bold,prefixIconName:Ln.prefixIconName,post:Ln.post},Ec],allDoneText:$c}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Pt,allDoneText:ui}}},{common:{strings:{empty:Rc}},expenseAutomation:{accountRecon:{reconcile:{header:zt}}}}=Ie.getLocalizedStrings(),Dc={key:"date",value:zt.date,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginLeft:x[4],marginRight:x[3]}},Oc={key:"clearedDate",value:zt.clearedDate,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3],display:"none"}},Mc={key:"type",value:zt.type,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Fc={key:"payee",value:zt.payee,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},zc={key:"account",value:zt.account,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},_c={key:"transactionDirection",value:zt.direction,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Bc={key:"memo",value:zt.memo,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Pc={key:"amount",value:zt.amount,sortOrder:"ascending",width:new G(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Nc={key:"recommended",value:Rc,sortOrder:"ascending",width:new G(1.25,1.25,1.25),customStyle:{marginRight:x[4],marginLeft:x[0]}},Me=[Dc,Oc,Mc,Fc,zc,_c,Bc,Pc,Nc],Vc=50,un={sortKey:"date",sortOrder:"descending"};function Wc({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const c=ke(),[r,p]=s.useState(jo(Me));s.useEffect(()=>{const d=[...r];for(const l of d)l.key===e.sortKey?l.sortOrder=e.sortOrder:l.sortOrder="ascending";p(d)},[e.sortKey,e.sortOrder]);const h=(d,l)=>{let m=l;e.sortKey===d&&(m=l==="ascending"?"descending":"ascending"),n(d,m)},i=d=>{h(d.key,d.sortOrder)};return t.jsx(Kc,{headerHeight:Vc,children:r.map(d=>t.jsx(Uc,{columnWidth:d.width,windowSize:c,sortDataValue:e.sortKey,actualDataValue:d.key,style:d.customStyle,children:t.jsxs(Qc,{isVisible:d.key!=="recommended",children:[t.jsx(qc,{"data-testid":z("reconcile-tab-list-sort",d.value),onClick:()=>i(d),children:t.jsx(xt,{children:d.value})}),t.jsx(Jc,{sortConfig:e,headerData:d,children:t.jsx(Zc,{})}),t.jsx(Gc,{isVisible:e.sortKey===d.key&&(e.sortKey!==un.sortKey||e.sortOrder!==un.sortOrder),children:t.jsx(Yc,{"data-testid":z("reconcile-tab-list-reset-sort",un.sortKey),onClick:()=>n(un.sortKey,un.sortOrder)})})]})},d.key))})}const Hc=Wr.memo(Wc),Uc=a.div`
|
|
273
273
|
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
274
274
|
:hover {
|
|
275
275
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -282,11 +282,11 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
282
282
|
gap: 6px;
|
|
283
283
|
z-index: auto;
|
|
284
284
|
position: relative;
|
|
285
|
-
`,
|
|
285
|
+
`,qc=a.div`
|
|
286
286
|
display: flex;
|
|
287
287
|
gap: 5px;
|
|
288
288
|
cursor: pointer;
|
|
289
|
-
`,
|
|
289
|
+
`,Kc=a(It)`
|
|
290
290
|
width: fit-content;
|
|
291
291
|
height: ${e=>`${e.headerHeight}px`};
|
|
292
292
|
width: calc(100% - 20px);
|
|
@@ -298,12 +298,12 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
298
298
|
padding: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp0};
|
|
299
299
|
position: sticky;
|
|
300
300
|
color: ${e=>e.theme.colors.grey1};
|
|
301
|
-
`,
|
|
301
|
+
`,Jc=a.div`
|
|
302
302
|
display: flex;
|
|
303
303
|
align-items: center;
|
|
304
304
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
305
305
|
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
306
|
-
`,
|
|
306
|
+
`,Zc=a(Hn)`
|
|
307
307
|
width: ${o.sp2};
|
|
308
308
|
height: ${o.sp2};
|
|
309
309
|
`,Gc=a.div`
|
|
@@ -315,17 +315,17 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
315
315
|
&:hover {
|
|
316
316
|
color: ${e=>e.theme.colors.primary};
|
|
317
317
|
}
|
|
318
|
-
`,
|
|
318
|
+
`,Yc=a(Un)`
|
|
319
319
|
width: 12px;
|
|
320
320
|
height: 12px;
|
|
321
|
-
`,
|
|
321
|
+
`,Qc=a.div`
|
|
322
322
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
323
|
-
`,Xc=54,
|
|
323
|
+
`,Xc=54,ed=72,{common:{strings:{hyphen:Xn}}}=Ie.getLocalizedStrings(),{dateFormat:pi}=Ie.getLocalizedStrings();function td({selectedTransactionIds:e,transaction:n,transactionId:c}){const r=ke(),p=gt(),[h,i]=s.useState(!1),d=e.includes(c),l=h||d;return t.jsx(nd,{id:c,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(od,{isSelected:l,totalHeight:Xc,children:[t.jsx(Ct,{windowSize:r,responsiveWidth:Me[0].width,style:Me[0].customStyle,children:t.jsx(Nt,{isSelected:l,children:n.date.format(pi.visual.MMMDCommaYYYYformat)})}),Me[1].customStyle.display!=="none"?t.jsx(Ct,{windowSize:r,responsiveWidth:Me[1].width,style:Me[1].customStyle,children:t.jsx(Nt,{isSelected:l,children:n.clearedDate!=null?n.clearedDate.format(pi.visual.MMMDCommaYYYYformat):t.jsx("span",{children:Xn})})}):null,t.jsx(Ct,{windowSize:r,style:Me[2].customStyle,responsiveWidth:Me[2].width,children:t.jsx(ad,{isSelected:l,children:t.jsx(id,{isSelected:l,children:kr(n.type)})})}),t.jsx(Ct,{windowSize:r,style:Me[3].customStyle,responsiveWidth:Me[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(it,{text:n.merchantName,itemTextStyle:{color:l?p.colors.primary:p.colors.hero}}):t.jsx(Nt,{isSelected:l,children:t.jsx("span",{children:Xn})})}),t.jsx(Ct,{windowSize:r,style:Me[4].customStyle,responsiveWidth:Me[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(it,{text:n.accountName,itemTextStyle:{color:l?p.colors.primary:p.colors.hero}}):t.jsx(Nt,{isSelected:l,children:t.jsx("span",{children:Xn})})}),t.jsx(Ct,{windowSize:r,style:Me[5].customStyle,responsiveWidth:Me[5].width,children:t.jsx(Nt,{isSelected:l,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(Ct,{windowSize:r,style:Me[6].customStyle,responsiveWidth:Me[6].width,children:t.jsx(it,{text:n.memo,itemTextStyle:{color:l?p.colors.primary:p.colors.hero}})}),t.jsx(Ct,{windowSize:r,style:Me[7].customStyle,responsiveWidth:Me[7].width,children:t.jsx(Nt,{isSelected:l,children:Je("0,0.[00]",n.amount)})}),t.jsx(Ct,{windowSize:r,responsiveWidth:Me[8].width,style:Me[8].customStyle,children:t.jsx(Nt,{isSelected:l,children:n.isZeniRecommended?t.jsx(sd,{}):null})})]})})}const nd=a.div`
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
width: 100%;
|
|
326
326
|
display: flex;
|
|
327
327
|
padding-right: ${o.sp8};
|
|
328
|
-
`,
|
|
328
|
+
`,od=a.div`
|
|
329
329
|
cursor: pointer;
|
|
330
330
|
display: flex;
|
|
331
331
|
border-radius: ${o.sp2};
|
|
@@ -339,7 +339,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
339
339
|
:hover {
|
|
340
340
|
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
341
341
|
}
|
|
342
|
-
`,
|
|
342
|
+
`,Ct=a.div`
|
|
343
343
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
344
344
|
display: flex;
|
|
345
345
|
align-items: center;
|
|
@@ -347,33 +347,33 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
347
347
|
height: 100%;
|
|
348
348
|
z-index: auto;
|
|
349
349
|
position: relative;
|
|
350
|
-
`,Nt=a(
|
|
350
|
+
`,Nt=a(_e)`
|
|
351
351
|
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
352
352
|
span {
|
|
353
353
|
padding-left: ${o.sp3};
|
|
354
354
|
}
|
|
355
|
-
`,
|
|
355
|
+
`,id=a(xt)`
|
|
356
356
|
text-transform: capitalize;
|
|
357
357
|
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
358
|
-
`,
|
|
358
|
+
`,sd=a(bn)`
|
|
359
359
|
width: ${o.sp3};
|
|
360
360
|
height: ${o.sp3};
|
|
361
361
|
margin-right: ${o.sp1};
|
|
362
362
|
path {
|
|
363
363
|
stroke-width: 2;
|
|
364
364
|
}
|
|
365
|
-
`,
|
|
365
|
+
`,ad=a.div`
|
|
366
366
|
padding: 1px 6px;
|
|
367
367
|
border-radius: ${o.sp1};
|
|
368
368
|
border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
|
|
369
|
-
`,
|
|
369
|
+
`,rd=Ie.getLocalizedStrings(),{common:{all:mi,strings:{empty:gi}}}=rd,xi="selectedTransactionIds",ld="expenseAutomationBankReconReconcilePage",cd=e=>`${e}_form`;function dd({currentFooterFormId:e,localData:n,matchedTransactions:c,sortConfig:r,onSaveReconciliation:p,selectedAccountId:h,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:d,setCurrentFooterFormId:l}){const m=Jt({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Hc,{onReconTabColumnSortConfigChanged:i,sortConfig:r}),value:mi.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},g=c.map(S=>({label:t.jsx(td,{transaction:S,selectedTransactionIds:n.selectedTransactionIds,transactionId:S.id}),value:S.id,defaultChecked:!1,groupLabel:!1})),f=[u,...g],y=async S=>{const k=S[xi].filter(C=>C!=mi.toLocaleLowerCase());d(k)};s.useEffect(()=>{const S=m.watch(k=>{k!=null&&wn(()=>y(k))});return()=>{S.unsubscribe()}}),s.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&l("expenseAutomationBankReconReconcilePage"),()=>{l("expenseAutomationPage")}),[]);const b=s.useCallback(()=>{p({reconcileAction:"reconcile"})},[p]);if(c.length===0){const S=He("reconciliation",void 0,h).tabs.find(k=>k.id==="reconcile")?.allDoneText;return t.jsx(md,{children:t.jsx(jt,{tab:"missing_receipts",title:S?.title??gi,subTitle:S?.subTitle??gi})})}return t.jsx(ud,{children:t.jsx(Zt,{...m,children:t.jsx(hd,{onSubmit:m.handleSubmit(b),id:cd(ld),children:t.jsx(pd,{children:t.jsx(zl,{name:xi,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:ed,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const ud=a.div``,hd=a.form``,pd=a.div`
|
|
370
370
|
height: calc(100vh - 350px);
|
|
371
|
-
`,
|
|
371
|
+
`,md=a.div`
|
|
372
372
|
height: 100%;
|
|
373
373
|
display: flex;
|
|
374
374
|
justify-content: center;
|
|
375
375
|
align-items: center;
|
|
376
|
-
`,
|
|
376
|
+
`,Io=69,fe={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},qs=a.div`
|
|
377
377
|
display: flex;
|
|
378
378
|
flex-direction: column;
|
|
379
379
|
background-color: ${e=>e.theme.colors.grey4};
|
|
@@ -391,7 +391,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
391
391
|
width: 100%;
|
|
392
392
|
`,Js=a.div`
|
|
393
393
|
width: 100%;
|
|
394
|
-
`,
|
|
394
|
+
`,Zs=a.div`
|
|
395
395
|
width: 100%;
|
|
396
396
|
`,No=a.div`
|
|
397
397
|
display: flex;
|
|
@@ -406,18 +406,18 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
406
406
|
justify-content: space-between;
|
|
407
407
|
padding: ${o.sp2};
|
|
408
408
|
padding-right: ${o.sp3};
|
|
409
|
-
`,
|
|
409
|
+
`,gd=a.div`
|
|
410
410
|
border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: row;
|
|
413
413
|
justify-content: space-between;
|
|
414
414
|
padding: ${o.sp2};
|
|
415
415
|
padding-right: ${o.sp3};
|
|
416
|
-
`,
|
|
416
|
+
`,xd=a.div`
|
|
417
417
|
padding: ${o.sp2} ${o.sp3};
|
|
418
418
|
`,Wo=a.div`
|
|
419
419
|
display: flex;
|
|
420
|
-
`,
|
|
420
|
+
`,fd=a.div`
|
|
421
421
|
display: flex;
|
|
422
422
|
align-items: center;
|
|
423
423
|
justify-content: center;
|
|
@@ -444,7 +444,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
444
444
|
:hover .highlight {
|
|
445
445
|
color: ${e=>e.theme.colors.primary};
|
|
446
446
|
}
|
|
447
|
-
`,
|
|
447
|
+
`,X=a.div`
|
|
448
448
|
display: flex;
|
|
449
449
|
flex-direction: column;
|
|
450
450
|
width: 180px;
|
|
@@ -475,9 +475,9 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
475
475
|
}
|
|
476
476
|
`,ht=a.div`
|
|
477
477
|
padding: ${o.sp2} ${o.sp3};
|
|
478
|
-
`,ae=a(
|
|
478
|
+
`,ae=a(xt)`
|
|
479
479
|
color: ${e=>e.theme.colors.hero};
|
|
480
|
-
`,me=a(
|
|
480
|
+
`,me=a(_e)`
|
|
481
481
|
width: 100%;
|
|
482
482
|
color: ${e=>e.theme.colors.hero};
|
|
483
483
|
white-space: nowrap;
|
|
@@ -509,20 +509,20 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
509
509
|
padding: ${o.sp0} 42px;
|
|
510
510
|
`,qo=a.div`
|
|
511
511
|
flex: 1;
|
|
512
|
-
`,
|
|
512
|
+
`,Gs=a(xt)`
|
|
513
513
|
padding: ${o.sp0} 6px;
|
|
514
|
-
color: ${
|
|
515
|
-
border: 1px solid ${
|
|
514
|
+
color: ${Xe.info};
|
|
515
|
+
border: 1px solid ${Xe.info};
|
|
516
516
|
border-radius: ${o.sp1};
|
|
517
517
|
margin-top: ${o.sp1};
|
|
518
|
-
`,
|
|
518
|
+
`,zn=a(It)`
|
|
519
519
|
padding: ${o.sp2};
|
|
520
520
|
color: ${e=>e.theme.colors.hero};
|
|
521
521
|
background: ${e=>e.theme.colors.overlayColor};
|
|
522
522
|
border-radius: ${o.sp1};
|
|
523
|
-
`,Ke=a(
|
|
523
|
+
`,Ke=a(zn)`
|
|
524
524
|
padding: 2px ${o.sp2};
|
|
525
|
-
`,Rt=Ie.getLocalizedStrings().expenseAutomation.accountRecon.review.header,
|
|
525
|
+
`,Rt=Ie.getLocalizedStrings().expenseAutomation.accountRecon.review.header,St=[{key:"date",value:Rt.date,sortOrder:"ascending",width:new G(20,20),loaderWidth:120},{key:"payee",value:Rt.payee,sortOrder:"ascending",width:new G(20,20),loaderWidth:212},{key:"memo",value:Rt.memo,sortOrder:"ascending",width:new G(20,20),loaderWidth:192},{key:"direction",value:Rt.direction,sortOrder:"ascending",width:new G(15,15),loaderWidth:84},{key:"match",value:Rt.match,sortOrder:"ascending",width:new G(15,15),loaderWidth:152},{key:"amount",value:Rt.amount,sortOrder:"ascending",width:new G(10,10),loaderWidth:64}],$o=[{key:"payee",value:Rt.payee,sortOrder:"ascending",width:new G(65,65),loaderWidth:212},{key:"amount",value:Rt.amount,sortOrder:"ascending",width:new G(30,30),loaderWidth:64}],yd=e=>{const{sortConfig:n,onColumnSortConfigChanged:c}=e,r=ke(),p=Ft()?$o:St,[h,i]=s.useState(()=>p.map(l=>({...l,sortOrder:l.key===n.sortKey?n.sortOrder:"ascending"})));s.useEffect(()=>{i(p.map(l=>({...l,sortOrder:l.key===n.sortKey?n.sortOrder:"ascending"})))},[n.sortKey,n.sortOrder,p]);const d=(l,m)=>{let u=m;n.sortKey===l&&(u=m==="ascending"?"descending":"ascending"),c(l,u)};return t.jsx(wd,{children:h.map(l=>t.jsxs(bd,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:r,isLastColumn:l.key==="amount",children:[t.jsxs(vd,{"data-testid":z("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>d(l.key,l.sortOrder),children:[t.jsx(xt,{children:l.value}),t.jsx(Sd,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(jd,{})})]}),t.jsx(kd,{sortDataValue:n.sortKey,windowSize:r,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Id,{"data-testid":z("account-reconciliation-review-sort-by-date"),onClick:()=>d("date","ascending")})})]},l.key))})},Cd=s.memo(yd),wd=a(It)`
|
|
526
526
|
top: 0;
|
|
527
527
|
left: 0;
|
|
528
528
|
width: fit-content;
|
|
@@ -535,7 +535,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
535
535
|
position: sticky;
|
|
536
536
|
color: ${e=>e.theme.colors.grey1};
|
|
537
537
|
background-color: ${e=>e.theme.colors.grey4};
|
|
538
|
-
`,
|
|
538
|
+
`,bd=a.div`
|
|
539
539
|
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
540
540
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
541
541
|
min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -544,7 +544,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
544
544
|
gap: 5px;
|
|
545
545
|
left: ${o.sp0};
|
|
546
546
|
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
547
|
-
`,
|
|
547
|
+
`,vd=a.div`
|
|
548
548
|
display: flex;
|
|
549
549
|
cursor: pointer;
|
|
550
550
|
gap: ${o.sp1};
|
|
@@ -552,38 +552,38 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
552
552
|
color: ${e=>e.theme.colors.primary};
|
|
553
553
|
}
|
|
554
554
|
white-space: nowrap;
|
|
555
|
-
`,
|
|
555
|
+
`,Sd=a.div`
|
|
556
556
|
display: flex;
|
|
557
557
|
align-items: center;
|
|
558
558
|
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
559
|
-
${e=>e.headerData.sortOrder==="ascending"?
|
|
559
|
+
${e=>e.headerData.sortOrder==="ascending"?Ve`
|
|
560
560
|
padding-top: 2px;
|
|
561
|
-
`:
|
|
561
|
+
`:Ve`
|
|
562
562
|
padding-bottom: 2px;
|
|
563
563
|
`}
|
|
564
|
-
`,
|
|
564
|
+
`,jd=a(Hn)`
|
|
565
565
|
width: ${o.sp2};
|
|
566
566
|
height: ${o.sp2};
|
|
567
567
|
cursor: pointer;
|
|
568
568
|
color: inherit;
|
|
569
|
-
`,
|
|
569
|
+
`,kd=a.div`
|
|
570
570
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
571
571
|
align-items: center;
|
|
572
572
|
padding-top: 2px;
|
|
573
|
-
`,
|
|
573
|
+
`,Id=a(Un)`
|
|
574
574
|
width: 12px;
|
|
575
575
|
height: 12px;
|
|
576
576
|
cursor: pointer;
|
|
577
577
|
color: ${e=>e.theme.colors.hero};
|
|
578
|
-
`,at="accountReconReviewTableSection",{dateFormat:Id,expenseAutomation:$d,common:pt}=Ie.getLocalizedStrings(),{visual:Ys}=Id,{accountRecon:Ce}=$d,Xs=e=>[{label:Ce.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Qs=e=>[{label:Ce.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],fi=e=>`${at}_${e}_form`,Ee=(e,n)=>`${at}.${e}.${n}`,Td=e=>{const{sortKey:n,sortOrder:c,accountReconEntity:r,entitySearchAutoCompleteActions:p,allAccountList:h,classList:i,localData:d,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:g,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:b,refreshStatus:S,updateLocalData:k,onColumnSortConfigChanged:C,onSaveReconciliation:L,onSaveReconciliationReview:j,onReconMatchedTransactionClick:v,bankAccounts:A,creditCards:T}=e,{transactionsToReview:I,account:{accountType:R}}=r,w=s.useRef(null),[D,V]=s.useState(null),q=N=>{const B=I[N],ie=zs(B),U=Bs(B),re=Ps(B,R??"bank"),oe=Ns(B,R??"bank"),X=Vs(B),se=zo(B),ge=B.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return B.transactionId===D?U||re||oe||X||se?275+(ge?25:0):ie?185+B.recommendedAction.recommendedTransactions.length*40+(ge?25:0):146:72},P=s.useMemo(()=>({onColumnSortConfigChanged:C,sortConfig:{sortKey:n,sortOrder:c}}),[C,n,c]);if(s.useEffect(()=>{V(I[0]?.transactionId??null),w.current?.resetAfterIndex(0)},[n,c]),s.useEffect(()=>{w.current?.resetAfterIndex(0)},[D]),s.useEffect(()=>{w.current?.resetAfterIndex(0)},[I.length]),s.useEffect(()=>{S.fetchState==="Completed"&&w.current?.resetAfterIndex(0)},[S]),I.length===0){const N=He("reconciliation",void 0,u).tabs.find(B=>B.id==="review")?.allDoneText;return t.jsx(Zd,{children:t.jsx(St,{tab:"reconciliation",title:N?.title??pt.strings.empty,subTitle:N?.subTitle??pt.strings.empty})})}return t.jsx(Fd,{children:t.jsx(ea.Provider,{value:P,children:t.jsx(Nn,{children:({height:N,width:B})=>t.jsx(Vn,{width:B,height:N,innerElementType:ta,ref:w,itemCount:I.length,itemSize:q,itemKey:ie=>I[ie].transactionId,overscanCount:wr,itemData:{transactionsList:I,expandedRowId:D,allAccountList:h,classList:i,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,localData:d,entitySearchAutoCompleteData:g,entitySearchAutoCompleteActions:p,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:b,bankAccounts:A,creditCards:T,accountType:R,updateLocalData:k,setExpandedRowId:V,onSaveReconciliation:L,onSaveReconciliationReview:j,onReconMatchedTransactionClick:v},initialScrollOffset:0,children:Ld})})})})},ea=s.createContext(void 0),ta=s.forwardRef((e,n)=>{const{children:c,style:r,...p}=e,h=s.useContext(ea);return t.jsxs(_d,{ref:n,style:{...r,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${o.sp0} ${o.sp8}`},...p,children:[h!=null&&t.jsx(yd,{onColumnSortConfigChanged:h.onColumnSortConfigChanged,sortConfig:h.sortConfig}),t.jsx(zd,{children:c})]})});ta.displayName="Account recon review table inner element type";const Ld=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=Oo(),{transactionsList:p,expandedRowId:h,setExpandedRowId:i,entitySearchAutoCompleteActions:d,allAccountList:l,classList:m,localData:u,updateLocalData:g,accountListNestedAccountHierarchy:f,classListNestedAccountHierarchy:y,entitySearchAutoCompleteData:b,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C,excludeFetchById:L,saveFetchById:j,reviewTabSelectedVendorByTransactionId:v,bankAccounts:A,creditCards:T,accountType:I}=c,R=p[e],w=r!=null&&r===R.transactionId;return t.jsx(Md,{isPanelSelected:w,style:{...n,width:"100%"},children:t.jsx(Ad,{transaction:R,expandedRowId:h,setExpandedRowId:i,entitySearchAutoCompleteActions:d,accountListNestedAccountHierarchy:f,allAccountList:l,classList:m,localData:u,updateLocalData:g,entitySearchAutoCompleteData:b,classListNestedAccountHierarchy:y,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C,excludeFetchById:L,saveFetchById:j,selectedVendor:v[R.transactionId],bankAccounts:A,creditCards:T,accountType:I})})},Ad=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,allAccountList:p,classList:h,classListNestedAccountHierarchy:i,localData:d,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:u,selectedVendor:g,bankAccounts:f,creditCards:y,accountType:b,setExpandedRowId:S,updateLocalData:k,onSaveReconciliation:C,onSaveReconciliationReview:L,onReconMatchedTransactionClick:j})=>{const v=n===e.transactionId,A=ke(),T=Ft(),I=d[e.transactionId],R=e.recommendedAction.action==="record_bill_payment",w=e.recommendedAction.action==="record_expense",D=zo(e),V=p.find(N=>N.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),q=N=>N.recommendedAction.recommendedTransactions.length>0&&N.recommendedAction.recommendedTransactions[0].merchantName!=null?N.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,P=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Rd,{className:"recon-row-card",isCompressedMode:T,isExpanded:v,children:[t.jsxs(Dd,{isExpanded:v,onClick:()=>S(e.transactionId),"data-testid":_("account-reconciliation-review-row",e.transactionId),children:[T?null:t.jsx(Qt,{windowSize:A,responsiveWidth:vt[0].width,children:t.jsx(Xt,{children:e.transactionDate.format(Ys.MMMDCommaYYYYformat)})}),t.jsx(Qt,{windowSize:A,responsiveWidth:T?Io[0].width:vt[1].width,children:t.jsx(Xt,{children:t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:q(e)})})}),T?null:t.jsxs(t.Fragment,{children:[t.jsx(Qt,{windowSize:A,responsiveWidth:vt[2].width,children:t.jsx(Xt,{children:t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Qt,{windowSize:A,responsiveWidth:vt[3].width,children:t.jsx(Xt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Qt,{windowSize:A,responsiveWidth:vt[4].width,children:[t.jsx(We,{controller:R,children:t.jsx(Yd,{children:t.jsx(Xd,{children:Ce.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(We,{controller:!R,children:t.jsx(Xt,{children:V!=null?t.jsxs(t.Fragment,{children:[t.jsx(na,{}),t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:V.accountName})]}):pt.strings.hyphen})})]})]}),t.jsx(Qt,{windowSize:A,isLastColumn:!0,responsiveWidth:T?Io[1].width:vt[5].width,children:t.jsx(Xt,{children:Fs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(We,{controller:v&&I!=null,children:[t.jsx(Ed,{onSaveReconciliation:C,onSaveReconciliationReview:L,updateLocalData:k,saveFetchById:u,excludeFetchById:m,localData:I,classListNestedAccountHierarchy:i,allAccountList:p,classList:h,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,entitySearchAutoCompleteData:l,selectedVendor:g,bankAccounts:f,creditCards:y,accountType:b,onReconMatchedTransactionClick:j}),t.jsx(We,{controller:(R||w||D)&&P!=null,children:t.jsx(eu,{children:t.jsxs(tu,{children:[b==="credit_card"?Ce.review.creditCardDetail:Ce.review.bankDetail,pt.strings.colon," ",P]})})})]})]})},Ed=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:c,allAccountList:r,classList:p,classListNestedAccountHierarchy:h,localData:i,entitySearchAutoCompleteData:d,excludeFetchById:l,saveFetchById:m,selectedVendor:u,bankAccounts:g,creditCards:f,accountType:y,updateLocalData:b,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C})=>{const L=kt(),j=Ft(),[v,A]=s.useState(!i.vendor?.id),[T,I]=s.useState(!i.customer?.id),[R,w]=s.useState(i.categoryId==null),[D,V]=s.useState(i.classId==null),[q,P]=s.useState(i.bankAccountId==null),[N,B]=s.useState(i.creditCardId==null),[ie,U]=s.useState(!i.memo),re=zs(e),oe=Bs(e),X=Ns(e,y??"bank"),se=Ps(e,y??"bank"),ge=Vs(e),Y=zo(e),le=s.useMemo(()=>{if(!oe&&!Y)return Ot(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Ot(n,u?.recommendations);const $=r.find(be=>be.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ne=$!=null?{...$,reason:Ce.review.zeniGptRecommendation,min:0,max:0}:void 0;return Ot(n,[{account:ne}])},[oe,Y,u,e.recommendedAction.recommendedTransactions,r,n]),K=s.useMemo(()=>{if(!oe&&!Y)return Fn(h);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Fn(h,u?.recommendations);const $=p.find(be=>be.classId===e.recommendedAction.recommendedTransactions[0]?.classId),ne=$!=null?{...$,reason:Ce.review.zeniGptRecommendation,min:0,max:0}:void 0;return Fn(h,[{class:ne}])},[oe,Y,u,e.recommendedAction.recommendedTransactions,p,h]),M=Jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>yi(e,i,le,r,K,g,f,d),[e,i,K,r,le,g,f,d]),values:s.useMemo(()=>yi(e,i,le,r,K,g,f,d),[e,i,K,r,le,g,f,d])}),O=async($,ne)=>{$.includes("memo")||b(Ci(ne,e,d,r),e.transactionId,$.includes("vendor"))};s.useEffect(()=>{const $=M.watch((ne,{name:be})=>{be!=null&&ne!=null&&wn(()=>O(be,ne))});return()=>{$.unsubscribe()}});const J=s.useCallback($=>{if(!j){if(oe||ge||Y){if((oe||Y)&&i.vendor==null){A(!1),M.setError(Ee(e.transactionId,"vendor"),{type:"required"});return}if(ge&&i.customer==null){I(!1),M.setError(Ee(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){w(!1),M.setError(Ee(e.transactionId,"category"),{type:"required"});return}}b(Ci($,e,d,r),e.transactionId,!1),k(e.transactionId)}},[j,oe,Y,ge,b,e,d,r,k,i.categoryId,i.vendor,i.customer]),G=M.watch(Ee(e.transactionId,"vendor")),W=M.watch(Ee(e.transactionId,"customer")),E=s.useRef(),z=s.useMemo(()=>oe||Y?"vendor":ge?"customer":null,[oe,Y,ge]),H=($,ne)=>{z!=null&&c.onAutoCompleteInputChange?.($,z),E.current=ne};s.useEffect(()=>{d.entityAutoCompleteView.fetchState==="Completed"&&((oe||Y)&&E.current?.(Ls(d.entityAutoCompleteView)),ge&&E.current?.(Ar(d.entityAutoCompleteView)))},[d.entityAutoCompleteView,ge,oe,Y]);const F=$=>p.filter(ne=>ne.classId===$)[0]?.accountingClassNumber??void 0,he=$=>r.filter(ne=>ne.qboId===$)[0]?.qboId,te=s.useMemo(()=>{if(y==="bank")switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[y,e.recommendedAction.action,e.transactionDirection]),ee=()=>{j||w(!1)},xe=()=>{j||P(!1)},$e=()=>{j||B(!1)};return s.useEffect(()=>{R===!1&&i.categoryId==null&&M.setFocus(Ee(e.transactionId,"category"))},[R]),s.useEffect(()=>{D===!1&&i.classId==null&&M.setFocus(Ee(e.transactionId,"class"))},[D]),s.useEffect(()=>{v===!1&&i.vendor==null&&M.setFocus(Ee(e.transactionId,"vendor"))},[v]),s.useEffect(()=>{T===!1&&i.customer==null&&M.setFocus(Ee(e.transactionId,"customer"))},[T]),s.useEffect(()=>{q===!1&&i.bankAccountId==null&&M.setFocus(Ee(e.transactionId,"bankAccount"))},[q]),s.useEffect(()=>{N===!1&&i.creditCardId==null&&M.setFocus(Ee(e.transactionId,"creditCard"))},[N]),t.jsx(Gt,{...M,children:t.jsx("form",{onSubmit:M.handleSubmit(J),id:fi(e.transactionId),children:t.jsxs(Od,{children:[t.jsxs(Bd,{children:[t.jsxs(Vd,{children:[t.jsxs(Wd,{children:[t.jsx(na,{}),t.jsx(Gn,{label:{label:re?Ce.review.formLabels.match:Ce.review.formLabels.categorize},radioField:{name:Ee(e.transactionId,"match_radio"),id:re?"match":"categorize",value:re?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(We,{controller:!re,children:t.jsxs(t.Fragment,{children:[t.jsx(wi,{}),te.map($=>t.jsx(Gn,{label:{label:Ce.review.formLabels[$]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"recommendedActionType"),id:$,value:$,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},$))]})})]}),t.jsxs(Nd,{children:[t.jsx(fn,{variant:"secondary",size:"small",label:Ce.review.formLabels.exclude,loading:l[e.transactionId]?.fetchState==="In-Progress","data-testid":_("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j||S({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(fn,{form:fi(e.transactionId),"data-testid":_("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(We,{controller:oe||ge||Y,children:t.jsxs(Qn,{children:[t.jsx(We,{controller:oe||Y,children:t.jsx(bt,{onClickAway:()=>{i.vendor==null&&v===!1&&A(!0)},children:t.jsx(Q,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.vendor}),t.jsx(ce,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&A(!1)},"data-testid":_("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addVendor]}):t.jsx(vo,{name:Ee(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Ce.review.formLabels.addVendor,valueToId:$=>$,defaultValue:{selectedOption:G?.selectedOption,defaultOptions:G?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:$=>!!$.selectedOption},loadOptions:H})})})]})})})}),t.jsx(We,{controller:ge,children:t.jsx(bt,{onClickAway:()=>{i.customer==null&&T===!1&&I(!0)},children:t.jsx(Q,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.customer}),t.jsx(ce,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:T===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&I(!1)},"data-testid":_("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addCustomer]}):t.jsx(vo,{name:Ee(e.transactionId,"customer"),allowEmpty:!1,placeholder:Ce.review.formLabels.addCustomer,valueToId:$=>$,defaultValue:{selectedOption:W?.selectedOption,defaultOptions:W?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:$=>!!$.selectedOption},loadOptions:H})})})]})})})}),t.jsx(bt,{onClickAway:()=>{i.categoryId==null&&R===!1&&w(!0)},children:t.jsx(Q,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.category}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:R===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&ee()},"data-testid":_("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"category"),placeholder:Ce.review.formLabels.addCategory,valueToId:$=>he($),defaultValue:{allOptions:le,selectedOption:r.find($=>$.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})}),t.jsx(bt,{onClickAway:()=>{i.classId==null&&D===!1&&V(!0)},children:t.jsx(Q,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.class}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:D===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&V(!1)},"data-testid":_("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addClass]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"class"),placeholder:Ce.review.formLabels.addClass,valueToId:$=>F($),defaultValue:{allOptions:K,selectedOption:i.classId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})]})}),t.jsx(We,{controller:re,children:t.jsxs(Hd,{children:[t.jsxs(Ud,{children:[t.jsx("span",{className:"matched-text",children:`${Ce.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Ce.review.matchesFoundFullInfo]}),t.jsx(Kd,{children:e.recommendedAction.recommendedTransactions.map($=>$.bookTransactionId!=null?t.jsxs(Jd,{children:[t.jsx(Gn,{label:{label:t.jsxs(qd,{children:[t.jsx(Be,{children:$.date.format(Ys.MMMDCommaYYYYformat)}),t.jsx(Be,{children:$.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:$.bookTransactionId,value:$.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(Qd,{"data-testid":_("account-reconciliation-review-matched-transaction-amount",$.bookTransactionId),onClick:()=>{$.bookTransactionId!=null&&C($.bookTransactionId)},children:[t.jsx(Gd,{children:Fs("0,0.00",$.amount.amount,$.amount.currencySymbol)}),t.jsx(wi,{})]})]},$.bookTransactionId):null)})]})}),t.jsx(We,{controller:X,children:t.jsx(Qn,{children:t.jsx(bt,{onClickAway:()=>{i.bankAccountId==null&&q===!1&&P(!0)},children:t.jsx(Q,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:y==="credit_card"?Ce.review.formLabels.selectAccount:Ce.review.formLabels.transferTo}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:q===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&xe()},"data-testid":_("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.selectAccount]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"bankAccount"),placeholder:Ce.review.formLabels.selectAccount,defaultValue:{allOptions:Xs(g),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})})}),t.jsx(We,{controller:se,children:t.jsx(Qn,{children:t.jsx(bt,{onClickAway:()=>{i.creditCardId==null&&N===!1&&B(!0)},children:t.jsx(Q,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ce.review.formLabels.creditCard}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&$e()},"data-testid":_("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.selectCard]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"creditCard"),placeholder:Ce.review.formLabels.selectCard,defaultValue:{allOptions:Qs(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})})}),t.jsx(We,{controller:!re,children:t.jsx(Pd,{children:t.jsx(Q,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ce.review.header.memo}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:ie===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&U(!1)},"data-testid":_("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addMemo]}):t.jsx(Er,{name:Ee(e.transactionId,"memo"),placeholder:Ce.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},An={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}`})},yi=(e,n,c,r,p,h,i,d)=>{const l=r.find(m=>m.accountId===n.categoryId);return{[at]:{[e.transactionId]:{category:{selectedOption:l?.qboId,allOptions:c},class:{selectedOption:n?.classId,allOptions:p},bankAccount:{selectedOption:n?.bankAccountId,allOptions:Xs(h)},creditCard:{selectedOption:n?.creditCardId,allOptions:Qs(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:Os(d.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:_r(n?.customer,d.entityAutoCompleteView)}}}}},Ci=(e,n,c,r)=>{const{vendor:p,customer:h}=e[at][n.transactionId];let i;if(p.selectedOption!=null){const l=p.defaultOptions.find(m=>m.value===p.selectedOption);if(l!=null)i={id:p.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.vendor.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let d;if(h.selectedOption!=null){const l=h.defaultOptions.find(m=>m.value===h.selectedOption);if(l!=null)d={id:h.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.customer.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(d={id:m.zeniId,name:m.name})}}return{categoryId:r.find(l=>l.qboId===e[at][n.transactionId].category.selectedOption)?.accountId??e[at][n.transactionId].category.selectedOption,classId:e[at][n.transactionId].class.selectedOption,memo:e[at][n.transactionId].memo,matchedTransactionId:e[at][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[at][n.transactionId].bankAccount.selectedOption,creditCardId:e[at][n.transactionId].creditCard.selectedOption,customer:d}},Xt=a(Be)`
|
|
578
|
+
`,at="accountReconReviewTableSection",{dateFormat:$d,expenseAutomation:Td,common:pt}=Ie.getLocalizedStrings(),{visual:Ys}=$d,{accountRecon:Ce}=Td,Qs=e=>[{label:Ce.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Xs=e=>[{label:Ce.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],fi=e=>`${at}_${e}_form`,Ee=(e,n)=>`${at}.${e}.${n}`,Ld=e=>{const{sortKey:n,sortOrder:c,accountReconEntity:r,entitySearchAutoCompleteActions:p,allAccountList:h,classList:i,localData:d,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:g,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:b,refreshStatus:S,updateLocalData:k,onColumnSortConfigChanged:C,onSaveReconciliation:L,onSaveReconciliationReview:j,onReconMatchedTransactionClick:v,bankAccounts:A,creditCards:T}=e,{transactionsToReview:I,account:{accountType:R}}=r,w=s.useRef(null),[D,V]=s.useState(null),q=N=>{const B=I[N],ie=_s(B),U=Bs(B),re=Ps(B,R??"bank"),oe=Ns(B,R??"bank"),Q=Vs(B),se=_o(B),ge=B.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return B.transactionId===D?U||re||oe||Q||se?275+(ge?25:0):ie?185+B.recommendedAction.recommendedTransactions.length*40+(ge?25:0):146:72},P=s.useMemo(()=>({onColumnSortConfigChanged:C,sortConfig:{sortKey:n,sortOrder:c}}),[C,n,c]);if(s.useEffect(()=>{V(I[0]?.transactionId??null),w.current?.resetAfterIndex(0)},[n,c]),s.useEffect(()=>{w.current?.resetAfterIndex(0)},[D]),s.useEffect(()=>{w.current?.resetAfterIndex(0)},[I.length]),s.useEffect(()=>{S.fetchState==="Completed"&&w.current?.resetAfterIndex(0)},[S]),I.length===0){const N=He("reconciliation",void 0,u).tabs.find(B=>B.id==="review")?.allDoneText;return t.jsx(Yd,{children:t.jsx(jt,{tab:"reconciliation",title:N?.title??pt.strings.empty,subTitle:N?.subTitle??pt.strings.empty})})}return t.jsx(zd,{children:t.jsx(ea.Provider,{value:P,children:t.jsx(Vn,{children:({height:N,width:B})=>t.jsx(Wn,{width:B,height:N,innerElementType:ta,ref:w,itemCount:I.length,itemSize:q,itemKey:ie=>I[ie].transactionId,overscanCount:br,itemData:{transactionsList:I,expandedRowId:D,allAccountList:h,classList:i,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,localData:d,entitySearchAutoCompleteData:g,entitySearchAutoCompleteActions:p,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:b,bankAccounts:A,creditCards:T,accountType:R,updateLocalData:k,setExpandedRowId:V,onSaveReconciliation:L,onSaveReconciliationReview:j,onReconMatchedTransactionClick:v},initialScrollOffset:0,children:Ad})})})})},ea=s.createContext(void 0),ta=s.forwardRef((e,n)=>{const{children:c,style:r,...p}=e,h=s.useContext(ea);return t.jsxs(_d,{ref:n,style:{...r,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${o.sp0} ${o.sp8}`},...p,children:[h!=null&&t.jsx(Cd,{onColumnSortConfigChanged:h.onColumnSortConfigChanged,sortConfig:h.sortConfig}),t.jsx(Bd,{children:c})]})});ta.displayName="Account recon review table inner element type";const Ad=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=Nn(),{transactionsList:p,expandedRowId:h,setExpandedRowId:i,entitySearchAutoCompleteActions:d,allAccountList:l,classList:m,localData:u,updateLocalData:g,accountListNestedAccountHierarchy:f,classListNestedAccountHierarchy:y,entitySearchAutoCompleteData:b,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C,excludeFetchById:L,saveFetchById:j,reviewTabSelectedVendorByTransactionId:v,bankAccounts:A,creditCards:T,accountType:I}=c,R=p[e],w=r!=null&&r===R.transactionId;return t.jsx(Fd,{isPanelSelected:w,style:{...n,width:"100%"},children:t.jsx(Ed,{transaction:R,expandedRowId:h,setExpandedRowId:i,entitySearchAutoCompleteActions:d,accountListNestedAccountHierarchy:f,allAccountList:l,classList:m,localData:u,updateLocalData:g,entitySearchAutoCompleteData:b,classListNestedAccountHierarchy:y,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C,excludeFetchById:L,saveFetchById:j,selectedVendor:v[R.transactionId],bankAccounts:A,creditCards:T,accountType:I})})},Ed=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,allAccountList:p,classList:h,classListNestedAccountHierarchy:i,localData:d,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:u,selectedVendor:g,bankAccounts:f,creditCards:y,accountType:b,setExpandedRowId:S,updateLocalData:k,onSaveReconciliation:C,onSaveReconciliationReview:L,onReconMatchedTransactionClick:j})=>{const v=n===e.transactionId,A=ke(),T=Ft(),I=d[e.transactionId],R=e.recommendedAction.action==="record_bill_payment",w=e.recommendedAction.action==="record_expense",D=_o(e),V=p.find(N=>N.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),q=N=>N.recommendedAction.recommendedTransactions.length>0&&N.recommendedAction.recommendedTransactions[0].merchantName!=null?N.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,P=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Dd,{className:"recon-row-card",isQuickViewMode:T,isExpanded:v,children:[t.jsxs(Od,{isExpanded:v,onClick:()=>S(e.transactionId),"data-testid":z("account-reconciliation-review-row",e.transactionId),children:[T?null:t.jsx(Xt,{windowSize:A,responsiveWidth:St[0].width,children:t.jsx(Qt,{children:e.transactionDate.format(Ys.MMMDCommaYYYYformat)})}),t.jsx(Xt,{windowSize:A,responsiveWidth:T?$o[0].width:St[1].width,children:t.jsx(Qt,{children:t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:q(e)})})}),T?null:t.jsxs(t.Fragment,{children:[t.jsx(Xt,{windowSize:A,responsiveWidth:St[2].width,children:t.jsx(Qt,{children:t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Xt,{windowSize:A,responsiveWidth:St[3].width,children:t.jsx(Qt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Xt,{windowSize:A,responsiveWidth:St[4].width,children:[t.jsx(We,{controller:R,children:t.jsx(Qd,{children:t.jsx(Xd,{children:Ce.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(We,{controller:!R,children:t.jsx(Qt,{children:V!=null?t.jsxs(t.Fragment,{children:[t.jsx(na,{}),t.jsx(it,{itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"},text:V.accountName})]}):pt.strings.hyphen})})]})]}),t.jsx(Xt,{windowSize:A,isLastColumn:!0,responsiveWidth:T?$o[1].width:St[5].width,children:t.jsx(Qt,{children:Fs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(We,{controller:v&&I!=null,children:[t.jsx(Rd,{onSaveReconciliation:C,onSaveReconciliationReview:L,updateLocalData:k,saveFetchById:u,excludeFetchById:m,localData:I,classListNestedAccountHierarchy:i,allAccountList:p,classList:h,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,entitySearchAutoCompleteData:l,selectedVendor:g,bankAccounts:f,creditCards:y,accountType:b,onReconMatchedTransactionClick:j}),t.jsx(We,{controller:(R||w||D)&&P!=null,children:t.jsx(tu,{children:t.jsxs(nu,{children:[b==="credit_card"?Ce.review.creditCardDetail:Ce.review.bankDetail,pt.strings.colon," ",P]})})})]})]})},Rd=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:c,allAccountList:r,classList:p,classListNestedAccountHierarchy:h,localData:i,entitySearchAutoCompleteData:d,excludeFetchById:l,saveFetchById:m,selectedVendor:u,bankAccounts:g,creditCards:f,accountType:y,updateLocalData:b,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:C})=>{const L=gt(),j=Ft(),[v,A]=s.useState(!i.vendor?.id),[T,I]=s.useState(!i.customer?.id),[R,w]=s.useState(i.categoryId==null),[D,V]=s.useState(i.classId==null),[q,P]=s.useState(i.bankAccountId==null),[N,B]=s.useState(i.creditCardId==null),[ie,U]=s.useState(!i.memo),re=_s(e),oe=Bs(e),Q=Ns(e,y??"bank"),se=Ps(e,y??"bank"),ge=Vs(e),Y=_o(e),le=s.useMemo(()=>{if(!oe&&!Y)return Ot(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Ot(n,u?.recommendations);const $=r.find(be=>be.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ne=$!=null?{...$,reason:Ce.review.zeniGptRecommendation,min:0,max:0}:void 0;return Ot(n,[{account:ne}])},[oe,Y,u,e.recommendedAction.recommendedTransactions,r,n]),K=s.useMemo(()=>{if(!oe&&!Y)return Fn(h);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Fn(h,u?.recommendations);const $=p.find(be=>be.classId===e.recommendedAction.recommendedTransactions[0]?.classId),ne=$!=null?{...$,reason:Ce.review.zeniGptRecommendation,min:0,max:0}:void 0;return Fn(h,[{class:ne}])},[oe,Y,u,e.recommendedAction.recommendedTransactions,p,h]),M=Jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>yi(e,i,le,r,K,g,f,d),[e,i,K,r,le,g,f,d]),values:s.useMemo(()=>yi(e,i,le,r,K,g,f,d),[e,i,K,r,le,g,f,d])}),O=async($,ne)=>{$.includes("memo")||b(Ci(ne,e,d,r),e.transactionId,$.includes("vendor"))};s.useEffect(()=>{const $=M.watch((ne,{name:be})=>{be!=null&&ne!=null&&wn(()=>O(be,ne))});return()=>{$.unsubscribe()}});const J=s.useCallback($=>{if(!j){if(oe||ge||Y){if((oe||Y)&&i.vendor==null){A(!1),M.setError(Ee(e.transactionId,"vendor"),{type:"required"});return}if(ge&&i.customer==null){I(!1),M.setError(Ee(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){w(!1),M.setError(Ee(e.transactionId,"category"),{type:"required"});return}}b(Ci($,e,d,r),e.transactionId,!1),k(e.transactionId)}},[j,oe,Y,ge,b,e,d,r,k,i.categoryId,i.vendor,i.customer]),Z=M.watch(Ee(e.transactionId,"vendor")),W=M.watch(Ee(e.transactionId,"customer")),E=s.useRef(),_=s.useMemo(()=>oe||Y?"vendor":ge?"customer":null,[oe,Y,ge]),H=($,ne)=>{_!=null&&c.onAutoCompleteInputChange?.($,_),E.current=ne};s.useEffect(()=>{d.entityAutoCompleteView.fetchState==="Completed"&&((oe||Y)&&E.current?.(Ls(d.entityAutoCompleteView)),ge&&E.current?.(Er(d.entityAutoCompleteView)))},[d.entityAutoCompleteView,ge,oe,Y]);const F=$=>p.filter(ne=>ne.classId===$)[0]?.accountingClassNumber??void 0,he=$=>r.filter(ne=>ne.qboId===$)[0]?.qboId,te=s.useMemo(()=>{if(y==="bank")switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[y,e.recommendedAction.action,e.transactionDirection]),ee=()=>{j||w(!1)},xe=()=>{j||P(!1)},$e=()=>{j||B(!1)};return s.useEffect(()=>{R===!1&&i.categoryId==null&&M.setFocus(Ee(e.transactionId,"category"))},[R]),s.useEffect(()=>{D===!1&&i.classId==null&&M.setFocus(Ee(e.transactionId,"class"))},[D]),s.useEffect(()=>{v===!1&&i.vendor==null&&M.setFocus(Ee(e.transactionId,"vendor"))},[v]),s.useEffect(()=>{T===!1&&i.customer==null&&M.setFocus(Ee(e.transactionId,"customer"))},[T]),s.useEffect(()=>{q===!1&&i.bankAccountId==null&&M.setFocus(Ee(e.transactionId,"bankAccount"))},[q]),s.useEffect(()=>{N===!1&&i.creditCardId==null&&M.setFocus(Ee(e.transactionId,"creditCard"))},[N]),t.jsx(Zt,{...M,children:t.jsx("form",{onSubmit:M.handleSubmit(J),id:fi(e.transactionId),children:t.jsxs(Md,{children:[t.jsxs(Pd,{children:[t.jsxs(Wd,{children:[t.jsxs(Hd,{children:[t.jsx(na,{}),t.jsx(Gn,{label:{label:re?Ce.review.formLabels.match:Ce.review.formLabels.categorize},radioField:{name:Ee(e.transactionId,"match_radio"),id:re?"match":"categorize",value:re?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(We,{controller:!re,children:t.jsxs(t.Fragment,{children:[t.jsx(wi,{}),te.map($=>t.jsx(Gn,{label:{label:Ce.review.formLabels[$]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"recommendedActionType"),id:$,value:$,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},$))]})})]}),t.jsxs(Vd,{children:[t.jsx(fn,{variant:"secondary",size:"small",label:Ce.review.formLabels.exclude,loading:l[e.transactionId]?.fetchState==="In-Progress","data-testid":z("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j||S({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(fn,{form:fi(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(We,{controller:oe||ge||Y,children:t.jsxs(eo,{children:[t.jsx(We,{controller:oe||Y,children:t.jsx(vt,{onClickAway:()=>{i.vendor==null&&v===!1&&A(!0)},children:t.jsx(X,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.vendor}),t.jsx(ce,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&A(!1)},"data-testid":z("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addVendor]}):t.jsx(So,{name:Ee(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Ce.review.formLabels.addVendor,valueToId:$=>$,defaultValue:{selectedOption:Z?.selectedOption,defaultOptions:Z?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:$=>!!$.selectedOption},loadOptions:H})})})]})})})}),t.jsx(We,{controller:ge,children:t.jsx(vt,{onClickAway:()=>{i.customer==null&&T===!1&&I(!0)},children:t.jsx(X,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.customer}),t.jsx(ce,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:T===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&I(!1)},"data-testid":z("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addCustomer]}):t.jsx(So,{name:Ee(e.transactionId,"customer"),allowEmpty:!1,placeholder:Ce.review.formLabels.addCustomer,valueToId:$=>$,defaultValue:{selectedOption:W?.selectedOption,defaultOptions:W?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:$=>!!$.selectedOption},loadOptions:H})})})]})})})}),t.jsx(vt,{onClickAway:()=>{i.categoryId==null&&R===!1&&w(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.category}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:R===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&ee()},"data-testid":z("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"category"),placeholder:Ce.review.formLabels.addCategory,valueToId:$=>he($),defaultValue:{allOptions:le,selectedOption:r.find($=>$.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})}),t.jsx(vt,{onClickAway:()=>{i.classId==null&&D===!1&&V(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:pt.texts.class}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:D===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&V(!1)},"data-testid":z("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addClass]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"class"),placeholder:Ce.review.formLabels.addClass,valueToId:$=>F($),defaultValue:{allOptions:K,selectedOption:i.classId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})]})}),t.jsx(We,{controller:re,children:t.jsxs(Ud,{children:[t.jsxs(qd,{children:[t.jsx("span",{className:"matched-text",children:`${Ce.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Ce.review.matchesFoundFullInfo]}),t.jsx(Jd,{children:e.recommendedAction.recommendedTransactions.map($=>$.bookTransactionId!=null?t.jsxs(Zd,{children:[t.jsx(Gn,{label:{label:t.jsxs(Kd,{children:[t.jsx(_e,{children:$.date.format(Ys.MMMDCommaYYYYformat)}),t.jsx(_e,{children:$.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:$.bookTransactionId,value:$.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(eu,{"data-testid":z("account-reconciliation-review-matched-transaction-amount",$.bookTransactionId),onClick:()=>{$.bookTransactionId!=null&&C($.bookTransactionId)},children:[t.jsx(Gd,{children:Fs("0,0.00",$.amount.amount,$.amount.currencySymbol)}),t.jsx(wi,{})]})]},$.bookTransactionId):null)})]})}),t.jsx(We,{controller:Q,children:t.jsx(eo,{children:t.jsx(vt,{onClickAway:()=>{i.bankAccountId==null&&q===!1&&P(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:y==="credit_card"?Ce.review.formLabels.selectAccount:Ce.review.formLabels.transferTo}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:q===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&xe()},"data-testid":z("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.selectAccount]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"bankAccount"),placeholder:Ce.review.formLabels.selectAccount,defaultValue:{allOptions:Qs(g),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})})}),t.jsx(We,{controller:se,children:t.jsx(eo,{children:t.jsx(vt,{onClickAway:()=>{i.creditCardId==null&&N===!1&&B(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ce.review.formLabels.creditCard}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&$e()},"data-testid":z("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.selectCard]}):t.jsx(on,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"creditCard"),placeholder:Ce.review.formLabels.selectCard,defaultValue:{allOptions:Xs(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:An})})})]})})})})}),t.jsx(We,{controller:!re,children:t.jsx(Nd,{children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ht,{className:"hover-background",children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ce.review.header.memo}),t.jsx(ce,{className:"item-value-container",children:t.jsx(t.Fragment,{children:ie===!0?t.jsxs(me,{onClick:$=>{$.stopPropagation(),!j&&U(!1)},"data-testid":z("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:L.colors.champion,cursor:"pointer"},children:[t.jsx(Vt,{}),Ce.review.formLabels.addMemo]}):t.jsx(Rr,{name:Ee(e.transactionId,"memo"),placeholder:Ce.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},An={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}`})},yi=(e,n,c,r,p,h,i,d)=>{const l=r.find(m=>m.accountId===n.categoryId);return{[at]:{[e.transactionId]:{category:{selectedOption:l?.qboId,allOptions:c},class:{selectedOption:n?.classId,allOptions:p},bankAccount:{selectedOption:n?.bankAccountId,allOptions:Qs(h)},creditCard:{selectedOption:n?.creditCardId,allOptions:Xs(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:Os(d.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:_r(n?.customer,d.entityAutoCompleteView)}}}}},Ci=(e,n,c,r)=>{const{vendor:p,customer:h}=e[at][n.transactionId];let i;if(p.selectedOption!=null){const l=p.defaultOptions.find(m=>m.value===p.selectedOption);if(l!=null)i={id:p.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.vendor.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let d;if(h.selectedOption!=null){const l=h.defaultOptions.find(m=>m.value===h.selectedOption);if(l!=null)d={id:h.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.customer.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(d={id:m.zeniId,name:m.name})}}return{categoryId:r.find(l=>l.qboId===e[at][n.transactionId].category.selectedOption)?.accountId??e[at][n.transactionId].category.selectedOption,classId:e[at][n.transactionId].class.selectedOption,memo:e[at][n.transactionId].memo,matchedTransactionId:e[at][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[at][n.transactionId].bankAccount.selectedOption,creditCardId:e[at][n.transactionId].creditCard.selectedOption,customer:d}},Qt=a(_e)`
|
|
579
579
|
display: flex;
|
|
580
580
|
align-items: center;
|
|
581
581
|
column-gap: ${o.sp1};
|
|
582
|
-
`,
|
|
582
|
+
`,Xt=a.div`
|
|
583
583
|
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
584
584
|
display: flex;
|
|
585
585
|
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
586
|
-
`,
|
|
586
|
+
`,Dd=a.div`
|
|
587
587
|
display: flex;
|
|
588
588
|
flex-direction: column;
|
|
589
589
|
box-sizing: border-box;
|
|
@@ -592,15 +592,13 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
592
592
|
border: 1px solid
|
|
593
593
|
${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
|
|
594
594
|
color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
}
|
|
600
|
-
`}
|
|
595
|
+
&:hover {
|
|
596
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
597
|
+
color: ${e=>e.theme.colors.primary};
|
|
598
|
+
}
|
|
601
599
|
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
602
600
|
border-radius: ${o.sp2};
|
|
603
|
-
`,
|
|
601
|
+
`,Od=a.div`
|
|
604
602
|
display: flex;
|
|
605
603
|
flex-direction: row;
|
|
606
604
|
align-items: center;
|
|
@@ -609,33 +607,33 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
609
607
|
column-gap: ${o.sp2};
|
|
610
608
|
|
|
611
609
|
border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
|
|
612
|
-
`,
|
|
610
|
+
`,Md=a.div`
|
|
613
611
|
padding: ${o.sp2} ${o.sp4};
|
|
614
612
|
display: flex;
|
|
615
613
|
flex-direction: column;
|
|
616
614
|
row-gap: ${o.sp2};
|
|
617
|
-
`,
|
|
615
|
+
`,Fd=a.div`
|
|
618
616
|
top: ${o.sp0};
|
|
619
617
|
left: ${o.sp0};
|
|
620
618
|
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
621
619
|
box-sizing: border-box;
|
|
622
|
-
${e=>e.isPanelSelected===!0&&
|
|
620
|
+
${e=>e.isPanelSelected===!0&&Ve`
|
|
623
621
|
.recon-row-card {
|
|
624
622
|
${Bo(e.theme)}
|
|
625
623
|
}
|
|
626
624
|
`}
|
|
627
|
-
`,
|
|
625
|
+
`,zd=a.div`
|
|
628
626
|
height: calc(100vh - 350px);
|
|
629
627
|
max-width: 99.9%;
|
|
630
628
|
padding: ${o.sp0};
|
|
631
|
-
`,_d=a.div``,
|
|
629
|
+
`,_d=a.div``,Bd=a.div`
|
|
632
630
|
position: relative;
|
|
633
631
|
width: auto;
|
|
634
632
|
height: 100%;
|
|
635
633
|
display: flex;
|
|
636
634
|
flex-direction: column;
|
|
637
635
|
row-gap: ${o.sp3};
|
|
638
|
-
`,
|
|
636
|
+
`,Pd=a.div`
|
|
639
637
|
display: flex;
|
|
640
638
|
flex-direction: row;
|
|
641
639
|
align-items: center;
|
|
@@ -643,84 +641,84 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
643
641
|
padding: 12px ${o.sp3};
|
|
644
642
|
background-color: ${e=>e.theme.colors.background};
|
|
645
643
|
border-radius: ${o.sp2};
|
|
646
|
-
`,
|
|
644
|
+
`,eo=a.div`
|
|
647
645
|
display: flex;
|
|
648
646
|
flex-direction: row;
|
|
649
647
|
align-items: center;
|
|
650
648
|
column-gap: ${o.sp3};
|
|
651
|
-
`,Pd=a.div`
|
|
652
|
-
width: 100%;
|
|
653
649
|
`,Nd=a.div`
|
|
650
|
+
width: 100%;
|
|
651
|
+
`,Vd=a.div`
|
|
654
652
|
display: flex;
|
|
655
653
|
flex-direction: row;
|
|
656
654
|
align-items: center;
|
|
657
655
|
column-gap: ${o.sp3};
|
|
658
|
-
`,
|
|
656
|
+
`,Wd=a.div`
|
|
659
657
|
display: flex;
|
|
660
658
|
flex-direction: row;
|
|
661
659
|
align-items: center;
|
|
662
660
|
column-gap: ${o.sp6};
|
|
663
|
-
`,
|
|
661
|
+
`,Hd=a.div`
|
|
664
662
|
display: flex;
|
|
665
663
|
flex-direction: row;
|
|
666
664
|
align-items: center;
|
|
667
665
|
column-gap: ${o.sp1};
|
|
668
|
-
`,Vt=a(
|
|
666
|
+
`,Vt=a(qn)`
|
|
669
667
|
width: ${o.sp3};
|
|
670
668
|
height: ${o.sp3};
|
|
671
|
-
`,wi=a(
|
|
669
|
+
`,wi=a(Br)`
|
|
672
670
|
width: ${o.sp3};
|
|
673
671
|
height: ${o.sp3};
|
|
674
672
|
color: ${e=>e.theme.colors.hero};
|
|
675
|
-
`,
|
|
673
|
+
`,Ud=a.div`
|
|
676
674
|
display: flex;
|
|
677
675
|
flex-direction: column;
|
|
678
676
|
row-gap: ${o.sp3};
|
|
679
677
|
padding: ${o.sp0} 12px;
|
|
680
|
-
`,
|
|
678
|
+
`,qd=a(_e)`
|
|
681
679
|
color: ${e=>e.theme.colors.primary};
|
|
682
680
|
|
|
683
681
|
.matched-text {
|
|
684
|
-
font-weight: ${
|
|
682
|
+
font-weight: ${Do.bold};
|
|
685
683
|
}
|
|
686
|
-
`,
|
|
684
|
+
`,Kd=a.div`
|
|
687
685
|
display: flex;
|
|
688
686
|
align-items: center;
|
|
689
687
|
column-gap: ${o.sp2};
|
|
690
|
-
`,
|
|
688
|
+
`,Jd=a.div`
|
|
691
689
|
display: flex;
|
|
692
690
|
flex-direction: column;
|
|
693
691
|
row-gap: ${o.sp2};
|
|
694
|
-
`,
|
|
692
|
+
`,Zd=a.div`
|
|
695
693
|
display: flex;
|
|
696
694
|
flex-direction: row;
|
|
697
695
|
align-items: center;
|
|
698
696
|
justify-content: space-between;
|
|
699
697
|
padding-bottom: ${o.sp2};
|
|
700
698
|
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
701
|
-
`,Gd=a(
|
|
699
|
+
`,Gd=a(_e)`
|
|
702
700
|
color: ${e=>e.theme.colors.hero};
|
|
703
|
-
`,
|
|
701
|
+
`,Yd=a.div`
|
|
704
702
|
height: 100%;
|
|
705
703
|
display: flex;
|
|
706
704
|
justify-content: center;
|
|
707
705
|
align-items: center;
|
|
708
|
-
`,
|
|
706
|
+
`,Qd=a.div`
|
|
709
707
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
710
708
|
padding: ${o.sp0} ${o.sp1};
|
|
711
709
|
border-radius: ${o.sp1};
|
|
712
|
-
`,Xd=a(
|
|
710
|
+
`,Xd=a(xt)`
|
|
713
711
|
color: ${e=>e.theme.colors.hero};
|
|
714
|
-
`,
|
|
712
|
+
`,eu=a.div`
|
|
715
713
|
display: flex;
|
|
716
714
|
align-items: center;
|
|
717
715
|
column-gap: 20px;
|
|
718
716
|
cursor: pointer;
|
|
719
|
-
`,
|
|
717
|
+
`,tu=a.div`
|
|
720
718
|
text-align: center;
|
|
721
719
|
padding: ${o.sp1} ${o.sp0};
|
|
722
720
|
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
723
|
-
`,
|
|
721
|
+
`,nu=a(xt)`
|
|
724
722
|
color: ${e=>e.theme.colors.hero};
|
|
725
723
|
`,na=a(bn)`
|
|
726
724
|
width: ${o.sp3};
|
|
@@ -729,15 +727,15 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
729
727
|
path {
|
|
730
728
|
stroke-width: 2;
|
|
731
729
|
}
|
|
732
|
-
`,
|
|
730
|
+
`,ou=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:c,currentFooterFormId:r,entitySearchAutoCompleteActions:p,onUpdateReconcileTabLocalData:h,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:d,updateReviewTabLocalData:l,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:g,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:y,reconciliationTabsState:{reconcile:{uiState:{sortKey:b,sortOrder:S}}},selectedReconAccount:k}=e,C=y[c],{transactionFetchState:L}=k??{};return L?.fetchState==="In-Progress"||L?.fetchState==="Not-Started"?t.jsxs(bi,{style:{paddingLeft:x[8],paddingRight:x[8]},children:[t.jsx(iu,{children:St.map(j=>t.jsx(Mt,{width:j.loaderWidth,height:18},j.key))}),t.jsxs(au,{children:[...Array(3).fill(0).map((j,v)=>t.jsx(su,{children:St.map(A=>t.jsx(Mt,{width:A.loaderWidth,height:x[4]},A.key))},`${v}_${j}`))]})]}):t.jsx(bi,{children:e.selectedTab==="reconcile"?t.jsx(dd,{selectedAccountId:c,currentFooterFormId:r,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:h,onReconTabColumnSortConfigChanged:d,onSaveReconciliation:u,sortConfig:{sortKey:b,sortOrder:S},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:C?.accountReconEntity.transactionsToReconcile}):t.jsx(Ld,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[c]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[c].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:l,entitySearchAutoCompleteActions:p,onColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:g,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:c,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},bi=a.div`
|
|
733
731
|
width: 100%;
|
|
734
732
|
height: 100%;
|
|
735
|
-
`,
|
|
733
|
+
`,iu=a.div`
|
|
736
734
|
display: flex;
|
|
737
735
|
justify-content: space-between;
|
|
738
736
|
padding: ${o.sp3} ${o.sp4};
|
|
739
737
|
column-gap: ${o.sp6};
|
|
740
|
-
`,
|
|
738
|
+
`,su=a.div`
|
|
741
739
|
display: flex;
|
|
742
740
|
justify-content: space-between;
|
|
743
741
|
padding: ${o.sp3} ${o.sp4};
|
|
@@ -746,40 +744,40 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
746
744
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
747
745
|
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
748
746
|
column-gap: ${o.sp6};
|
|
749
|
-
`,
|
|
747
|
+
`,au=a.div`
|
|
750
748
|
display: flex;
|
|
751
749
|
gap: ${o.sp3};
|
|
752
750
|
flex-direction: column;
|
|
753
|
-
`;function
|
|
751
|
+
`;function ru({title:e,config:n,nodeId:c}){return{children:[],id:c??mt("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:n}}}function lu({account:e,numOfBalances:n,title:c,isLastNode:r,index:p,config:h}){const i=mt("ac_group_report",[],c);return{children:[],id:i,isLastNode:r,reportElementData:{element:{kind:"ac_group_report",title:c,index:p,data:e,numOfBalances:n},config:h}}}function cu({title:e,section:n,config:c,numOfBalances:r,nodeId:p}){return{children:[],id:p??mt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:r},config:c}}}function vi({section:e,allAccountReconciliations:n,title:c,subTitle:r,isLastNode:p,isTitleRowRequired:h,config:i}){const d=mt("section",[],c),l={children:[],id:d,isLastNode:p,reportElementData:{element:{kind:"section",title:c,data:e,numOfBalances:0},config:i}};if(h){const u=mt("title_string_only",[],c),g={children:[],id:u,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:c,data:e,numOfBalances:0},config:i}};l.children.push(g)}const m=cu({title:r,section:e,config:i,numOfBalances:0});return l.children.push(m),e.accountIDs.forEach((u,g)=>{const f=n[u],y=lu({account:f,numOfBalances:0,index:g,title:f.accountReconEntity.account.accountName,isLastNode:g===e.accountIDs.length-1,config:i});l.children.push(y)}),l}function oa({config:e,accountReconForSection:n,nodeId:c}){return{children:[],id:c??mt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}function du(e,n){return n?Qn("section")+Qn("total")+e*Qn("ac_group_report"):1/0}const uu=(e,n,c,r,p=!0,h="assets")=>{const i=h==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,d=oa({config:n,accountReconForSection:i}),l=[];l.push(d);const m=Array.isArray(c[r])?c[r]:[],{expenseAutomation:{accountRecon:{reconciliation:u}},common:{loading:g}}=Ie.getLocalizedStrings(),f=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",y=b=>b.filter(S=>!m.includes(S));if(f)[...Array(3)].forEach((b,S)=>{l.push(ru({title:`${S}+${g}`,config:n}))});else{const b=y(e.accountReconciliationBySectionID.assets.accountIDs),S=vi({section:{...e.accountReconciliationBySectionID.assets,accountIDs:b},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.assets.title,subTitle:u.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(l.push(S),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const k=y(e.accountReconciliationBySectionID.liabilities.accountIDs),C=vi({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:k},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.liabilities.title,subTitle:u.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});l.push(C)}}return{config:n,headerNodes:p?[d]:[],contentNodes:l}};function hu(e,n,c,r=!1,p="assets"){Object.assign(e.config,c);const h=p==="liabilities"&&n.accountReconciliationBySectionID.liabilities.accountIDs.length>0?n.accountReconciliationBySectionID.liabilities:n.accountReconciliationBySectionID.assets,i=oa({config:c,accountReconForSection:h});return{config:c,headerNodes:r?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const To={wrapperPadding:new G(x[2],x[2],x[2],x[8]),contentPaddingLeft:new G(x[2],x[2],x[2],x[2]),contentPaddingRight:new G(x[2],x[2],x[2],x[2])},pu=a.div`
|
|
754
752
|
display: flex;
|
|
755
753
|
height: 100%;
|
|
756
754
|
width: 100%;
|
|
757
755
|
justify-content: center;
|
|
758
756
|
align-items: center;
|
|
759
|
-
`,
|
|
757
|
+
`,mu=a.div`
|
|
760
758
|
display: flex;
|
|
761
759
|
height: 100%;
|
|
762
760
|
min-height: 100%;
|
|
763
761
|
flex: 1 1 auto;
|
|
764
762
|
width: 100%;
|
|
765
763
|
justify-content: center;
|
|
766
|
-
padding-left: ${e
|
|
764
|
+
padding-left: ${e=>To.wrapperPadding.valuePx(e.windowSize)};
|
|
767
765
|
background-color: ${e=>e.theme.colors.grey4};
|
|
768
|
-
`,
|
|
766
|
+
`,gu=a.div`
|
|
769
767
|
width: 100%;
|
|
770
768
|
height: 100%;
|
|
771
|
-
`,{common:
|
|
769
|
+
`,{common:xu}=Ie.getLocalizedStrings();function fu({reconciliation:e,companyId:n,onReload:c,onReviewClicked:r,setOpenDrawerClicked:p,onFetchLinkTokenClick:h,onEstablishConnectionClick:i,onAddStatementClick:d}){const[l,m]=s.useState(void 0),[u,g]=s.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,y=e.plaidConnectionDetails.update_account,b=u==="update_account"?y:f,[S,k]=s.useState(b.linkToken??null),[C,L]=s.useState(!1),{useDynamicConfig:j}=bs(),{configValue:v}=j(vs.accountReconGLAccountsConfig),A=s.useCallback(_=>{m(_),g("link_account_no_microdeposit")},[]),T=s.useCallback(_=>{const H=D.current.accountReconciliationsByAccountID[_]?.paymentAccountId;m(_),g("update_account"),h("update_account",H)},[]),I=s.useCallback(_=>{p(_)},[]),R=s.useRef(l),w=s.useRef(u),D=s.useRef(e);s.useEffect(()=>{R.current=l},[l]),s.useEffect(()=>{w.current=u},[u]),s.useEffect(()=>{D.current=e},[e]);const V=s.useCallback(_=>{i(_,R.current??"",w.current),m(void 0),g(void 0),L(!1)},[i]),q=s.useCallback((_,H)=>{_!=null&&console.log("Plaid Connection Error",_,H),m(void 0),g(void 0),L(!1)},[]),{open:P,ready:N}=dr({token:S,onSuccess:V,onExit:q});s.useEffect(()=>{(ko(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&b.fetchStatus.fetchState==="Not-Started"&&h("link_account_no_microdeposit")},[b.fetchStatus.fetchState]),s.useEffect(()=>{!C&&u!=null&&b.linkToken===S&&b.fetchStatus.fetchState==="Completed"&&N&&L(!0)},[N,S,b.fetchStatus.fetchState,b.linkToken,u,C]),s.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==S&&k(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,S]),s.useEffect(()=>{C&&P()},[C,P]);const[B,ie]=s.useState(void 0),[U,re]=s.useState(void 0),[oe,Q]=s.useState("assets"),se=ko("2025-03-31"),ge=1,Y="account_reconciliation",le=ke(),K=gt();Cn({componentName:"expense_automation.account_reconciliation_list",enabled:e.fetchStatus.fetchState==="Completed"});const M=!0,O=Array.isArray(v?.[n])?v[n]:[],J=e.accountReconciliationBySectionID.assets.accountIDs.filter(_=>!O.includes(_)).length,Z=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,W=du(J,Z),E=s.useCallback(_=>{const H=_.scrollTop>=W?"liabilities":"assets";H!==oe&&Q(H)},[W,oe]);return s.useEffect(()=>{const _={reportId:Y,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:se,firstMonthOfFY:ge,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:r,onConnectClicked:A,onReconnectClicked:T,onOpenDrawerClicked:I,onStatementAddClicked:d}};if(B==null||!Ss(U,e)){const H=uu(e,_,v,n,M,oe);re(e),ie(H)}else{const H=hu(B,e,_,M,oe);ie(H)}},[e,oe]),e.fetchStatus.fetchState==="Error"?t.jsx(pu,{children:t.jsx(ur,{onReload:c,message:xu.errorMessage.somethingWentWrong})}):t.jsx(mu,{windowSize:le,children:B!=null?t.jsx(gu,{windowSize:le,children:t.jsx(Hs,{backgroundColor:new Oo(K.colors.grey4),rootNodes:B,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:M,isStickyName:M},treeNodePadding:{left:To.contentPaddingLeft.value(le),right:To.contentPaddingRight.value(le)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:E})}):null})}function yu({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:c,reconciliation:r,companyId:p,onReconTabColumnSortConfigChanged:h,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:d,setCurrentFooterFormId:l,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:g,onEstablishConnectionClick:f,onAddStatementClick:y,onReconReviewTabColumnSortConfigChanged:b,onSaveReconciliation:S,onSaveReconciliationReview:k,setOpenDrawerClicked:C,onReconMatchedTransactionClick:L}){return r.selectedAccountId==null?t.jsx(fu,{companyId:p,reconciliation:r,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:g,onEstablishConnectionClick:f,setOpenDrawerClicked:C,onAddStatementClick:y}):t.jsx(ou,{currentFooterFormId:e,setCurrentFooterFormId:l,onUpdateReconcileTabLocalData:d,onReconTabColumnSortConfigChanged:h,reconciliation:r,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:c,onReconReviewTabColumnSortConfigChanged:b,entitySearchAutoCompleteData:n,selectedAccountId:r.selectedAccountId,onSaveReconciliation:S,onSaveReconciliationReview:k,onReconMatchedTransactionClick:L})}function Cu({accountAndClassReport:e,numOfBalances:n,title:c,isLastNode:r,isFirstNode:p,config:h,parentNodeIDs:i,ancestorMetadata:d}){let l="";return e.accountBase&&e.classBase?l=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?l=e.accountBase.accountId:e.classBase&&(l=e.classBase.classId),{children:[],id:mt("flux_vendor_account_class_row",i,l),isLastNode:r,isFirstNode:p,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:c,data:e,metadata:d,numOfBalances:n},config:h}}}function wu({vendorView:e,numOfBalances:n,title:c,isLastNode:r,config:p,parentNodeIDs:h}){const i=mt("flux_vendor_row",h,e.vendor.id),d={children:[],id:i,isLastNode:r,reportElementData:{element:{kind:"flux_vendor_row",title:c,data:e,numOfBalances:n},config:p}},l=e.vendorAccountsAndClasses;return d.children=l.map((m,u)=>Cu({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:p,isLastNode:u===l.length-1,isFirstNode:u===0,parentNodeIDs:[...h,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:l.length>1,hasChildren:!1,isLastNode:u===l.length-1,isFirstNode:u===0,name:m.accountBase?.accountName},isVendorLastChild:r,vendorId:e.vendor.id}})),d}function bu({section:e,numOfBalances:n,title:c,isLastNode:r,config:p}){const h=e.sectionId,i={children:[],id:h,isLastNode:r,reportElementData:{element:{kind:"section",title:c,data:e,numOfBalances:n,sectionType:e.sectionId},config:p}},d=(e.vendors??[]).map((l,m)=>wu({vendorView:l,numOfBalances:n,title:l.vendor.name,isLastNode:m===e.vendors.length-1,config:p,parentNodeIDs:[h]}));return i.children.push(...d),i}function vu({title:e,balances:n,config:c,nodeId:r}){return{children:[],id:r??mt("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:n,numOfBalances:n.length},config:c}}}function Su({title:e,data:n,isLastNode:c,config:r,numOfBalances:p}){const h=mt("total",[],e);return{children:[],id:h,isLastNode:c,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:p},config:r}}}const{common:En,expenseAutomation:{fluxAnalysis:ju}}=Ie.getLocalizedStrings(),ku=(e,n,c=!0)=>{const r=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,p=e.sections.generalExpense.balancesByMonth?sn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?sn(e.sections.reimbursement.balancesByMonth):[],h=Us({balances:p,config:n}),i=[],d=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(d===!0)i.push(vu({title:`${En.loading}`,balances:p,config:n})),[...Array(10)].forEach((m,u)=>{i.push(oi({title:`${u}+${En.loading}`,balances:p,config:n}))});else{if(i.push(h),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const g=sn(u.balancesByMonth);i.push(bu({section:{sectionId:m,reportId:"flux_analysis_operating_expense",balances:g,vendors:u.vendors,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:e.currency},numOfBalances:r,title:Iu(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?sn(e.totalBalancesAndVariance.balancesByMonth):[],u=Su({title:En.texts.total,data:{balances:m,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:r});i.push(u)}l===!0&&[...Array(1)].forEach((m,u)=>{i.push(oi({title:`${u}+${En.loading}`,balances:p,config:n}))})}return{config:n,headerNodes:c&&!d?[h]:[],contentNodes:i}},Iu=e=>ju.sectionTitle[e];function $u(e,n,c,r=!0){Object.assign(e.config,n);const p=Tu(c),h=Us({balances:p,config:n});return{config:n,headerNodes:r?[h]:[],contentNodes:[h,...e.contentNodes.slice(1)]}}const Tu=e=>e.sections.generalExpense.balancesByMonth?sn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?sn(e.sections.reimbursement.balancesByMonth):[],Lo={contentPaddingLeft:new G(x[0],x[0],x[0]),contentPaddingRight:new G(x[3],x[3],x[8]),wrapperPadding:new G(x[3],x[3],x[8])},Lu=a.div`
|
|
772
770
|
display: flex;
|
|
773
771
|
position: sticky;
|
|
774
772
|
width: 100%;
|
|
775
773
|
justify-content: center;
|
|
776
|
-
padding-top: ${e=>
|
|
774
|
+
padding-top: ${e=>Lo.wrapperPadding.valuePx(e.windowSize)};
|
|
777
775
|
padding-left: 20px;
|
|
778
776
|
background-color: ${e=>e.theme.colors.grey4};
|
|
779
|
-
`,
|
|
777
|
+
`,Au=a.div`
|
|
780
778
|
width: 100%;
|
|
781
779
|
height: calc(100vh - ${o.sp11});
|
|
782
|
-
`,
|
|
780
|
+
`,Eu=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:c,updateOperatingExpensesIdsForReview:r,updateSectionIdsForReview:p,onSortOrderChanged:h,updateNodeCollapsableStatus:i,fetchReimbursementView:d,fetchGeneralExpenseView:l}=e,m=ke(),u=gt(),[g,f]=s.useState(null),[y,b]=s.useState(null),[S,k]=s.useState(null),C=ti([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[L,j]=s.useState(!1),v=Go(C),A=Go(n.refreshStatus.fetchState),T=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?l(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&d(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&d(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},I=()=>Object.keys(n.uiState.collapsableStatus).reduce((P,N)=>(P[N]=n.uiState.collapsableStatus[N],P),{}),R=s.useCallback(P=>{const N=!(n.uiState.collapsableStatus[P]??!0);i({...n.uiState.collapsableStatus,[P]:N})},[n.uiState.collapsableStatus,i]),w=s.useCallback((P,N)=>{let B=n.reviewOperatingExpensesIds;const ie=[];let U=n.selectedSectionIds;const re=n.sections[P].vendors;ie.push(...re.map(Q=>Q.fluxAnalysisEntityId));let oe=Ws-B.length;N?(ie.forEach(Q=>{!B.includes(Q)&&oe>0&&(B=[...B,Q],oe--)}),U=[...U,P]):(B=B.filter(Q=>!ie.includes(Q)),U=U.filter(Q=>Q!==P)),r(B),p(U)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,r,p]),D=s.useCallback(P=>{const N=n.uiState.collapsableStatus[P]===!1;P==="generalExpense"&&!N&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&d(n.uiState.paginationInfoByGroup.reimbursement.pageToken),R(P)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,d,R]),V=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,q=P=>P<V;return s.useEffect(()=>{const P={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:j,onSectionRowClick:D,updateNodeCollapsableStatus:R,updateOperatingExpensesIdsForReview:r,handleRedirectToVendorDetailPage:c,onSectionCheckboxClick:w,onSortOrderChanged:h}};if(g==null||!Ss(y,n)){const N=ku(n,P,!0);b(n),f(N)}else{const N=$u(g,P,n,!0);f(N)}},[n,y,c,w,D,h,R,r]),t.jsx(Lu,{windowSize:m,children:t.jsx(Au,{children:g?t.jsx(Hs,{backgroundColor:new Oo(u.colors.grey4),rootNodes:g,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:Lo.contentPaddingLeft.value(m),right:Lo.contentPaddingRight.value(m)},nodeOpenStatus:I(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:q,itemCount:V,loadMoreItems:T},variableNodeHeightTree:{prevFetchState:v??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:L,setIsSortApplied:j,reducedFetchState:ti([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:A??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:S,setHoveredParentId:k}}):null})})},Ru="expenseAutomationFluxPage",{reports:{common:Du}}=Ie.getLocalizedStrings(),Ou=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:c,markAsReview:r,onReloadPage:p,setCurrentFooterFormId:h,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:d,onUpdateFluxAnalysisUIState:l,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:g})=>{const{fetchStatus:f,reviewOperatingExpensesIds:y,uiState:b}=n;Cn({componentName:"expense_automation.flux_analysis",enabled:f.fetchState==="Completed"});const S=s.useRef(null),k=s.useRef(!1),C=Jt({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:Mu(y)}),L=ke();s.useEffect(()=>()=>{h("expenseAutomationPage")},[h]),s.useEffect(()=>{k.current&&S?.current?.scrollLeft!=null&&b.scrollPosition?.scrollLeft!==S.current.scrollLeft&&b.scrollPosition!=null&&l({scrollPosition:{scrollTop:b.scrollPosition?.scrollTop,scrollLeft:S.current.scrollLeft}})},[b.scrollPosition?.scrollLeft,S.current?.scrollLeft,b.scrollPosition,l]),s.useEffect(()=>{h(y.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[y,h]);const j=I=>{m(I)},v=I=>{u(e,I)},A=(I,R)=>{l({sortOrder:I,sortKey:R}),c(),g(e,null,!1)},T=()=>{const I=ia(n.sections,y);r(y,I===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(zu,{children:[t.jsx(_u,{onClick:p,children:t.jsx(Eo,{})}),t.jsx(Bu,{children:Du.failed})]});{const I=w=>{l({collapsableStatus:w})},R=w=>{g(e,w,!0)};return t.jsx(Zt,{...C,children:t.jsx("form",{id:_a(Ru),onSubmit:C.handleSubmit(T),style:{height:"100%",width:"100%"},children:t.jsx(Fu,{windowSize:L,children:t.jsx(Eu,{fluxView:n,handleRedirectToVendorDetailPage:j,onSortOrderChanged:A,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:I,fetchReimbursementView:R,updateSectionIdsForReview:d,fetchGeneralExpenseView:v,reportId:"flux_analysis_operating_expense"})})})})}},ia=(e,n)=>{const c=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(p=>p.status==="Pending Review");let r;return c.forEach(p=>{n.includes(p.fluxAnalysisEntityId)&&(r=!0)}),r},Mu=e=>({fluxAnalysisRowIds:e}),Fu=a.div`
|
|
783
781
|
display: flex;
|
|
784
782
|
flex: 1 1 auto;
|
|
785
783
|
min-height: 100%;
|
|
@@ -806,7 +804,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
806
804
|
border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
807
805
|
}
|
|
808
806
|
}
|
|
809
|
-
`,
|
|
807
|
+
`,zu=a.div`
|
|
810
808
|
display: flex;
|
|
811
809
|
width: 100%;
|
|
812
810
|
height: 100vh;
|
|
@@ -828,10 +826,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
828
826
|
color: ${e=>e.theme.colors.primary};
|
|
829
827
|
}
|
|
830
828
|
}
|
|
831
|
-
`,
|
|
829
|
+
`,Bu=a(It)`
|
|
832
830
|
margin-top: ${o.sp3};
|
|
833
831
|
color: ${e=>e.theme.colors.hero};
|
|
834
|
-
`,
|
|
832
|
+
`,Pu="expenseAutomationJEAccountSettingsPage",sa="vendorsAccountSection",Nu=e=>`${e}_form`;function Vu({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:c,setIsJeAccountSettingsOpened:r,onJeAccountSettingsChange:p,setResetJeAccountSettingsForm:h,setCurrentFooterFormId:i}){const d=e.prepaidExpensesRecommendations,l=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=s.useMemo(()=>Ot(e.prepaidExpensesAccountHierarchy,d,"Accounts"),[e.prepaidExpensesAccountHierarchy,d]),g=s.useMemo(()=>Ot(e.fixedAssetsAccountHierarchy,l,"Accounts"),[e.fixedAssetsAccountHierarchy,l]),f=s.useMemo(()=>Ot(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),y=s.useMemo(()=>Hu(e,u,g,f),[e,u,g,f]),b=Jt({mode:"all",reValidateMode:"onBlur",defaultValues:y,values:y,resetOptions:{keepDefaultValues:!0}}),S=b.handleSubmit(C=>{c(C)}),k=async C=>{p(C)};return s.useEffect(()=>{const C=b.watch(L=>{L!=null&&wn(()=>k(L))});return()=>{C.unsubscribe()}}),s.useEffect(()=>(h(()=>b.reset),r(!0),()=>{i("expenseAutomationPage"),r(!1)}),[]),s.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:C,previousPrepaidExpensesAccount:L,selectedFixedAssetsAccountIds:j,previousFixedAssetsAccount:v,selectedAccruedExpensesAccountIds:A,previousAccruedExpensesAccount:T}=e.accountSettingsLocalData,I=Kn(C,L)||Kn(j,v)||Kn(A,T);I===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):I===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(Wu,{children:t.jsx(Zt,{...b,children:t.jsx("form",{id:Nu(Pu),onSubmit:S,children:t.jsx(el,{showTitle:!1,sectionId:sa,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:e.accruedExpensesAccountHierarchy,accruedExpensesAccountList:e.accruedExpensesAccountList,accruedExpensesRecommendations:e.accruedExpensesRecommendations,fixedAssetsAccountHierarchy:e.fixedAssetsAccountHierarchy,fixedAssetsAccountList:e.fixedAssetsAccountList,fixedAssetsRecommendations:e.fixedAssetsRecommendations,prepaidExpensesAccountHierarchy:e.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:e.prepaidExpensesAccountList,prepaidExpensesRecommendations:e.prepaidExpensesRecommendations,selectedAccruedExpensesAccountIds:e.accountSettingsLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:e.accountSettingsLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:e.accountSettingsLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:!1})})})})}const Wu=a.div`
|
|
835
833
|
padding-top: ${o.sp3};
|
|
836
834
|
display: flex;
|
|
837
835
|
align-items: center;
|
|
@@ -839,7 +837,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
839
837
|
flex-direction: column;
|
|
840
838
|
width: 100%;
|
|
841
839
|
background-color: ${e=>e.theme.colors.grey4};
|
|
842
|
-
`,
|
|
840
|
+
`,Hu=(e,n,c,r)=>{const p=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),h=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),d=p.map(u=>u.qboId).filter(u=>u!=null),l=h.map(u=>u.qboId).filter(u=>u!=null),m=i.map(u=>u.qboId).filter(u=>u!=null);return{[sa]:{prepaidExpensesAccount:{selectedOptions:d,allOptions:n},fixedAssetsAccount:{selectedOptions:l,allOptions:c},accruedExpensesAccount:{selectedOptions:m,allOptions:r}}}},{expenseAutomation:{jeSchedules:At},common:{currency:Rn,review:Uu,ignore:qu,strings:{hyphen:wt},texts:Dn},dateFormat:Ku,timeframe:{month:Si}}=Ie.getLocalizedStrings(),Ju=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:c,jeScheduleClickHandler:r,onReviewClickHandler:p})=>t.jsxs(Ho,{onClick:h=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&r(h,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(Wo,{children:[t.jsxs(qo,{children:[t.jsxs(No,{children:[t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:Dn.vendor}),t.jsxs(ce,{style:{gap:x[2]},children:[e.vendor.logo!=null?t.jsx(Ts,{photoUrl:e.vendor.logo.href,styles:{width:x[4],height:x[4]}}):t.jsx(xn,{name:e.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(Ke,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:e.vendor.name??wt})})]})]}),t.jsxs(X,{children:[t.jsx(ae,{children:At.scheduleHeaders.scheduleCategory}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(Ke,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:e.baseTransaction.account.accountName??wt})})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:At.scheduleHeaders.startMonth}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:e.startDate?.format(Ku.visual.MMMCommaYYYYFormat)??wt})})]}),t.jsxs(X,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ae,{children:At.scheduleHeaders.period}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?Si.slice(0,-1):Si}`:wt})})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:Dn.totalAmount}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ke,{children:Je("0,0.[00]",Ht(e.baseTransaction.amount.amount,Rn.currencyCode,Rn.currencySymbol))??wt}),children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(e.baseTransaction.amount.amount,Rn.currencyCode,Rn.currencySymbol))??wt})})})]})]}),t.jsxs(Vo,{children:[t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:Dn.category}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(Ke,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:e.jeDebit.account?.accountName??wt})})})]}),t.jsxs(X,{children:[t.jsx(ae,{children:Dn.classText}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(Ke,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:e.jeDebit.accountingClass?.className??wt})})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:At.scheduleHeaders.type}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",style:{width:"unset"},children:t.jsx(Gs,{children:At.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(X,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ae,{children:At.scheduleHeaders.accumulatedCategory}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(Ke,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:e.jeCredit.account?.accountName??wt})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(X,{style:{width:fe.COLUMN_FOUR}}):null,t.jsx(X,{style:{width:fe.COLUMN_FIVE}})]})]}),t.jsxs(Uo,{children:[t.jsx(fn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&p(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component-review-button",e.jeScheduleId),label:Uu,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:Io}}),t.jsx(fn,{"data-testid":z("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:qu,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&c(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:Io}})]})]}),t.jsxs(fd,{children:[t.jsx(Zu,{}),t.jsx(Gu,{children:At.aiAccountant}),t.jsx(Yu,{children:At.zeniGPTText})]})]}),Zu=a(bn)`
|
|
843
841
|
height: ${o.sp3};
|
|
844
842
|
width: ${o.sp3};
|
|
845
843
|
margin-right: ${o.sp1};
|
|
@@ -848,18 +846,18 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
848
846
|
}
|
|
849
847
|
`,Gu=a(js)`
|
|
850
848
|
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
851
|
-
`,
|
|
849
|
+
`,Yu=a(_e)`
|
|
852
850
|
color: ${e=>e.theme.colors.primary};
|
|
853
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ji}}},expenseAutomation:{jeSchedules:Ve},common:{currency:ut,retry:Yu,strings:{hyphen:qe,empty:ki},texts:en},dateFormat:Ii}=Ie.getLocalizedStrings(),{common:Xu,timeframe:{month:$i}}=Ie.getLocalizedStrings(),ot="jeSchedulePage",Ti=e=>`${e}_form`,Ko=(e,n)=>`${e}.${n}`,Li=Ko(ot,"vendor"),Ai=Ko(ot,"scheduleExpenseCategory"),Ei=Ko(ot,"accumulatedDepreciationCategory"),Qu=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:c,allClassList:r,allDepAccountGroupedOptions:p,allDepAccountList:h,draft:i,localData:d,postStatus:l,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,jeScheduleClickHandler:f,onFormDataChange:y,onPostJESchedule:b})=>{const{updatedAccumulatedDepreciationCategoryID:S,updatedCategoryId:k,updatedVendor:C}=d,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"},j=s.useRef(),v=Jt({mode:"all",reValidateMode:"onChange",defaultValues:Ri(d,e,c,p,n,r,h,g.entityAutoCompleteView),values:Ri(d,e,c,p,n,r,h,g.entityAutoCompleteView)}),A={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},T={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},I=(i?.scheduledJournalEntry.error??[]).every(O=>{const J=L[O];return!(d!=null&&J&&(J==="updatedAccumulatedDepreciationCategoryID"&&d.updatedAccumulatedDepreciationCategoryID==null||J==="updatedCategoryId"&&d.updatedCategoryId==null||J==="updatedVendor"&&(d.updatedVendor?.id==null||d.updatedVendor?.id===""||d.updatedVendor?.name==null||d.updatedVendor?.name==="")))}),R=async(O,J)=>{if(O!=null){const G=J[ot],{scheduledJournalEntryID:W,vendor:E}=G;if(O.includes("vendor")){const z=E?.defaultOptions.map(H=>H.value);if(E?.selectedOption!=null&&z?.includes(E.selectedOption)!==!0){const H=g.entityAutoCompleteView.vendor.find(F=>F.id===E.selectedOption);H!=null&&v.setValue(`${ot}.vendor.defaultOptions`,[{label:H.name??Xu.strings.empty,value:H.id}])}else E?.selectedOption==null&&E?.defaultOptions.length!==0&&v.setValue(`${ot}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(W,{...G,vendor:E})}};s.useEffect(()=>{const O=v.watch((J,{name:G})=>{G!=null&&J!=null&&wn(()=>R(G,J))});return()=>{O.unsubscribe()}}),s.useEffect(()=>{g.entityAutoCompleteView.fetchState==="Completed"&&j.current?.(Ls(g.entityAutoCompleteView))},[g.entityAutoCompleteView.fetchState]);const w=v.handleSubmit(()=>{b(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),D=O=>n.filter(J=>J.qboId===O)[0]?.qboId,V=O=>h.filter(J=>J.qboId===O)[0]?.qboId,q=O=>[m.expense?.qboId,m.income?.qboId].includes(O),P=v.watch("jeSchedulePage.vendor"),N=(O,J)=>{u.onAutoCompleteInputChange?.(O,"vendor"),j.current=J},B=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,ie=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,U=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,re=i.vendor.name.split("(deleted)")[0]?.toString(),oe=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ki,X=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ki,[se,ge]=s.useState(ie===!0&&k==null),[Y,le]=s.useState(U===!0&&S==null),[K,M]=s.useState(B&&(C?.id==null||C?.id==""));return s.useEffect(()=>{se===!1&&d.updatedCategoryId==null&&v.setFocus(Ai),Y===!1&&d.updatedAccumulatedDepreciationCategoryID==null&&v.setFocus(Ei),K===!1&&d.updatedVendor?.id==null&&v.setFocus(Li)},[se,Y,K,d,v]),t.jsx(Gt,{...v,children:t.jsx("form",{style:{width:"100%"},id:Ti(`${ot}_${i.jeScheduleId}`),onSubmit:w,children:t.jsx(Ho,{showBorder:I,onClick:O=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(O,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":_("je-schedule-resolve-component-schedule",`${ot}_${i.jeScheduleId}`),children:t.jsxs(Wo,{children:[t.jsxs(qo,{children:[t.jsxs(No,{children:[B===!0?t.jsx(Q,{style:{width:fe.COLUMN_ONE,padding:x[0],justifyContent:"center"},showHoverEffect:B,forceHoverEffect:K===!1&&(d?.updatedVendor?.id==null||d?.updatedVendor?.id==""),children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[en.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(_n,{children:Ve.tooltipText.missingVendor.replace("_deleted_vendor_",re)}),children:t.jsx(to,{})})]}),t.jsx(ce,{style:{gap:x[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),M(!1)},"data-testid":_("je-schedule-resolve-component-add-vendor-button",`${ot}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:x[2],color:Qe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(eo,{}),ji]}):t.jsx(vo,{name:Li,placeholder:ji,valueToId:O=>O,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:O=>!!O.selectedOption},loadOptions:N})})})]})}):t.jsxs(Q,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:en.vendor}),t.jsx(ce,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(Ts,{photoUrl:i.vendor.logo.href,styles:{width:x[4],height:x[4]}}):t.jsx(xn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(Ke,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.vendor.name??qe})})]})})]}),t.jsxs(Q,{children:[t.jsx(ae,{children:Ve.scheduleHeaders.scheduleCategory}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(Ke,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.baseTransaction.account.accountName??qe})})})]}),t.jsxs(Q,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ve.scheduleHeaders.startMonth}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.startDate?.format(Ii.visual.MMMCommaYYYYFormat)??qe})})]}),t.jsxs(Q,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ae,{children:Ve.scheduleHeaders.period}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?$i.slice(0,-1):$i}`:qe})})]}),t.jsxs(Q,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:en.totalAmount}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(Ke,{children:Je("0,0.[00]",Ht(i.baseTransaction.amount.amount,ut.currencyCode,ut.currencySymbol))??qe}),children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i.baseTransaction.amount.amount,ut.currencyCode,ut.currencySymbol))??qe})})})]})]}),t.jsxs(Vo,{children:[ie===!0?t.jsx(Q,{showHoverEffect:ie===!0,forceHoverEffect:d?.updatedCategoryId==null&&se===!1,style:{padding:"unset",justifyContent:"center",width:fe.COLUMN_ONE},children:t.jsxs(ht,{className:"hover-background",children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[en.category,ie===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(_n,{children:Ve.tooltipText.missingCategory.replace("_deleted_category_",oe)}),children:t.jsx(to,{})}):null]}),t.jsx(ce,{className:"item-value-container",style:{marginLeft:ie===!0?-2:0},children:ie===!0?t.jsx(t.Fragment,{children:se===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-category-button",`${ot}_${i.jeScheduleId}`),children:[t.jsx(eo,{}),Ve.addCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,name:Ai,placeholder:Ve.addCategory,valueToId:O=>D(O),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:O=>!!O.selectedOption},disableCurrentOption:q,customStyleConfig:A})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ke,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]})}):t.jsxs(Q,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:en.category}),t.jsx(ce,{className:"item-value-container",children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ke,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]}),t.jsxs(Q,{children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:en.classText}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(Ke,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.accountingClass?.className??qe})})})]}),t.jsxs(Q,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ve.scheduleHeaders.type}),t.jsx(ce,{className:"test",children:t.jsx(me,{className:"highlight",style:{width:"unset"},children:t.jsx(Zs,{children:Ve.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:U===!0?t.jsx(Q,{style:{width:fe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:U,forceHoverEffect:d.updatedAccumulatedDepreciationCategoryID==null&&Y===!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:x[2],paddingLeft:x[3]},children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[Ve.scheduleHeaders.accumulatedCategory,U===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(_n,{children:Ve.tooltipText.missingDepCategory.replace("_deleted_dep_category_",X)}),children:t.jsx(to,{})}):null]}),t.jsx(ce,{className:"item-value-container",style:{marginLeft:U===!0?-2:0},children:U===!0?t.jsx(t.Fragment,{children:Y===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),le(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:Qe.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-depreciation-category-button",`${ot}_${i.jeScheduleId}`),children:[t.jsx(eo,{}),Ve.addDepCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:Ei,placeholder:Ve.addDepCategory,valueToId:O=>V(O),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:O=>!!O.selectedOption},customStyleConfig:T,disableCurrentOption:q})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ke,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})})]})}):t.jsxs(Q,{style:{width:fe.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ve.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ke,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Q,{style:{width:fe.COLUMN_FOUR}}):null,t.jsx(Q,{style:{width:fe.COLUMN_FIVE}})]}),t.jsxs(md,{children:[t.jsx(Q,{style:{padding:"unset",width:fe.COLUMN_ONE},children:t.jsxs(gd,{children:[t.jsx(ae,{children:Ve.scheduleHeaders.jePostingDate}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(Ii.visual.MMMDCommaYYFormat)??qe})})]})}),t.jsxs(Q,{children:[t.jsx(ae,{children:Ve.scheduleHeaders.balance}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ke,{children:Je("0,0.[00]",Ht(i?.scheduledJournalEntry?.runningBalance?.amount??0,ut.currencyCode,ut.currencySymbol))??qe}),children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i?.scheduledJournalEntry?.runningBalance?.amount??0,ut.currencyCode,ut.currencySymbol))??qe})})})]}),t.jsxs(Q,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ve.scheduleHeaders.months}),t.jsx(ce,{children:t.jsxs(me,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Q,{style:{width:fe.COLUMN_FOUR}}),t.jsxs(Q,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:Ve.scheduleHeaders.amountForMonth}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i.scheduledJournalEntry.amount?.amount??0,ut.currencyCode,ut.currencySymbol))??qe})})]})]})]}),t.jsx(Uo,{children:t.jsx(fn,{form:Ti(`${ot}_${i.jeScheduleId}`),label:Yu,variant:"primary",className:"item-value-container",type:"submit",loading:l?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:ko}})})]})})})})},Ri=(e,n,c,r,p,h,i,d)=>{const l=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?d.vendor.find(k=>k.zeniId===m.id):void 0,g=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,y=l!=null?p.find(k=>k.accountId===l):void 0,b=g!=null?i.find(k=>k.accountId===g):void 0,S=f!=null?h.find(k=>k.classId===f):void 0;return{[ot]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:b?.qboId,allOptions:r},vendor:{selectedOption:u?.id??m?.id,defaultOptions:Os(d,u??m)},scheduleClass:{selectedOption:S?.classId,allOptions:c}}}},eo=a(Un)`
|
|
851
|
+
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ji}}},expenseAutomation:{jeSchedules:Ne},common:{currency:ut,retry:Qu,strings:{hyphen:qe,empty:ki},texts:en},dateFormat:Ii}=Ie.getLocalizedStrings(),{common:Xu,timeframe:{month:$i}}=Ie.getLocalizedStrings(),ot="jeSchedulePage",Ti=e=>`${e}_form`,Ko=(e,n)=>`${e}.${n}`,Li=Ko(ot,"vendor"),Ai=Ko(ot,"scheduleExpenseCategory"),Ei=Ko(ot,"accumulatedDepreciationCategory"),eh=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:c,allClassList:r,allDepAccountGroupedOptions:p,allDepAccountList:h,draft:i,localData:d,postStatus:l,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,jeScheduleClickHandler:f,onFormDataChange:y,onPostJESchedule:b})=>{const{updatedAccumulatedDepreciationCategoryID:S,updatedCategoryId:k,updatedVendor:C}=d,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"},j=s.useRef(),v=Jt({mode:"all",reValidateMode:"onChange",defaultValues:Ri(d,e,c,p,n,r,h,g.entityAutoCompleteView),values:Ri(d,e,c,p,n,r,h,g.entityAutoCompleteView)}),A={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},T={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},I=(i?.scheduledJournalEntry.error??[]).every(O=>{const J=L[O];return!(d!=null&&J&&(J==="updatedAccumulatedDepreciationCategoryID"&&d.updatedAccumulatedDepreciationCategoryID==null||J==="updatedCategoryId"&&d.updatedCategoryId==null||J==="updatedVendor"&&(d.updatedVendor?.id==null||d.updatedVendor?.id===""||d.updatedVendor?.name==null||d.updatedVendor?.name==="")))}),R=async(O,J)=>{if(O!=null){const Z=J[ot],{scheduledJournalEntryID:W,vendor:E}=Z;if(O.includes("vendor")){const _=E?.defaultOptions.map(H=>H.value);if(E?.selectedOption!=null&&_?.includes(E.selectedOption)!==!0){const H=g.entityAutoCompleteView.vendor.find(F=>F.id===E.selectedOption);H!=null&&v.setValue(`${ot}.vendor.defaultOptions`,[{label:H.name??Xu.strings.empty,value:H.id}])}else E?.selectedOption==null&&E?.defaultOptions.length!==0&&v.setValue(`${ot}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(W,{...Z,vendor:E})}};s.useEffect(()=>{const O=v.watch((J,{name:Z})=>{Z!=null&&J!=null&&wn(()=>R(Z,J))});return()=>{O.unsubscribe()}}),s.useEffect(()=>{g.entityAutoCompleteView.fetchState==="Completed"&&j.current?.(Ls(g.entityAutoCompleteView))},[g.entityAutoCompleteView.fetchState]);const w=v.handleSubmit(()=>{b(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),D=O=>n.filter(J=>J.qboId===O)[0]?.qboId,V=O=>h.filter(J=>J.qboId===O)[0]?.qboId,q=O=>[m.expense?.qboId,m.income?.qboId].includes(O),P=v.watch("jeSchedulePage.vendor"),N=(O,J)=>{u.onAutoCompleteInputChange?.(O,"vendor"),j.current=J},B=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,ie=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,U=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,re=i.vendor.name.split("(deleted)")[0]?.toString(),oe=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ki,Q=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ki,[se,ge]=s.useState(ie===!0&&k==null),[Y,le]=s.useState(U===!0&&S==null),[K,M]=s.useState(B&&(C?.id==null||C?.id==""));return s.useEffect(()=>{se===!1&&d.updatedCategoryId==null&&v.setFocus(Ai),Y===!1&&d.updatedAccumulatedDepreciationCategoryID==null&&v.setFocus(Ei),K===!1&&d.updatedVendor?.id==null&&v.setFocus(Li)},[se,Y,K,d,v]),t.jsx(Zt,{...v,children:t.jsx("form",{style:{width:"100%"},id:Ti(`${ot}_${i.jeScheduleId}`),onSubmit:w,children:t.jsx(Ho,{showBorder:I,onClick:O=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(O,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":z("je-schedule-resolve-component-schedule",`${ot}_${i.jeScheduleId}`),children:t.jsxs(Wo,{children:[t.jsxs(qo,{children:[t.jsxs(No,{children:[B===!0?t.jsx(X,{style:{width:fe.COLUMN_ONE,padding:x[0],justifyContent:"center"},showHoverEffect:B,forceHoverEffect:K===!1&&(d?.updatedVendor?.id==null||d?.updatedVendor?.id==""),children:t.jsxs(ht,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[en.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(zn,{children:Ne.tooltipText.missingVendor.replace("_deleted_vendor_",re)}),children:t.jsx(no,{})})]}),t.jsx(ce,{style:{gap:x[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),M(!1)},"data-testid":z("je-schedule-resolve-component-add-vendor-button",`${ot}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:x[2],color:Xe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(to,{}),ji]}):t.jsx(So,{name:Li,placeholder:ji,valueToId:O=>O,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:O=>!!O.selectedOption},loadOptions:N})})})]})}):t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:en.vendor}),t.jsx(ce,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(Ts,{photoUrl:i.vendor.logo.href,styles:{width:x[4],height:x[4]}}):t.jsx(xn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(Ke,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.vendor.name??qe})})]})})]}),t.jsxs(X,{children:[t.jsx(ae,{children:Ne.scheduleHeaders.scheduleCategory}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(Ke,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.baseTransaction.account.accountName??qe})})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ne.scheduleHeaders.startMonth}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.startDate?.format(Ii.visual.MMMCommaYYYYFormat)??qe})})]}),t.jsxs(X,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ae,{children:Ne.scheduleHeaders.period}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?$i.slice(0,-1):$i}`:qe})})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:en.totalAmount}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(Ke,{children:Je("0,0.[00]",Ht(i.baseTransaction.amount.amount,ut.currencyCode,ut.currencySymbol))??qe}),children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i.baseTransaction.amount.amount,ut.currencyCode,ut.currencySymbol))??qe})})})]})]}),t.jsxs(Vo,{children:[ie===!0?t.jsx(X,{showHoverEffect:ie===!0,forceHoverEffect:d?.updatedCategoryId==null&&se===!1,style:{padding:"unset",justifyContent:"center",width:fe.COLUMN_ONE},children:t.jsxs(ht,{className:"hover-background",children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[en.category,ie===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(zn,{children:Ne.tooltipText.missingCategory.replace("_deleted_category_",oe)}),children:t.jsx(no,{})}):null]}),t.jsx(ce,{className:"item-value-container",style:{marginLeft:ie===!0?-2:0},children:ie===!0?t.jsx(t.Fragment,{children:se===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-category-button",`${ot}_${i.jeScheduleId}`),children:[t.jsx(to,{}),Ne.addCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,name:Ai,placeholder:Ne.addCategory,valueToId:O=>D(O),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:O=>!!O.selectedOption},disableCurrentOption:q,customStyleConfig:A})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ke,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]})}):t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:en.category}),t.jsx(ce,{className:"item-value-container",children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ke,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]}),t.jsxs(X,{children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:en.classText}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(Ke,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeDebit.accountingClass?.className??qe})})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ne.scheduleHeaders.type}),t.jsx(ce,{className:"test",children:t.jsx(me,{className:"highlight",style:{width:"unset"},children:t.jsx(Gs,{children:Ne.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:U===!0?t.jsx(X,{style:{width:fe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:U,forceHoverEffect:d.updatedAccumulatedDepreciationCategoryID==null&&Y===!1,children:t.jsxs(ht,{className:"hover-background",style:{padding:x[2],paddingLeft:x[3]},children:[t.jsxs(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[Ne.scheduleHeaders.accumulatedCategory,U===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(zn,{children:Ne.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Q)}),children:t.jsx(no,{})}):null]}),t.jsx(ce,{className:"item-value-container",style:{marginLeft:U===!0?-2:0},children:U===!0?t.jsx(t.Fragment,{children:Y===!0?t.jsxs(me,{onClick:O=>{O.stopPropagation(),le(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-depreciation-category-button",`${ot}_${i.jeScheduleId}`),children:[t.jsx(to,{}),Ne.addDepCategory]}):t.jsx(on,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:Ei,placeholder:Ne.addDepCategory,valueToId:O=>V(O),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:O=>!!O.selectedOption},customStyleConfig:T,disableCurrentOption:q})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ke,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})})]})}):t.jsxs(X,{style:{width:fe.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ae,{style:{display:"flex",alignItems:"center",gap:x[1]},children:Ne.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ke,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(me,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(X,{style:{width:fe.COLUMN_FOUR}}):null,t.jsx(X,{style:{width:fe.COLUMN_FIVE}})]}),t.jsxs(gd,{children:[t.jsx(X,{style:{padding:"unset",width:fe.COLUMN_ONE},children:t.jsxs(xd,{children:[t.jsx(ae,{children:Ne.scheduleHeaders.jePostingDate}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(Ii.visual.MMMDCommaYYFormat)??qe})})]})}),t.jsxs(X,{children:[t.jsx(ae,{children:Ne.scheduleHeaders.balance}),t.jsx(ce,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ke,{children:Je("0,0.[00]",Ht(i?.scheduledJournalEntry?.runningBalance?.amount??0,ut.currencyCode,ut.currencySymbol))??qe}),children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i?.scheduledJournalEntry?.runningBalance?.amount??0,ut.currencyCode,ut.currencySymbol))??qe})})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:Ne.scheduleHeaders.months}),t.jsx(ce,{children:t.jsxs(me,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(X,{style:{width:fe.COLUMN_FOUR}}),t.jsxs(X,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:Ne.scheduleHeaders.amountForMonth}),t.jsx(ce,{children:t.jsx(me,{className:"highlight",children:Je("0,0.[00]",Ht(i.scheduledJournalEntry.amount?.amount??0,ut.currencyCode,ut.currencySymbol))??qe})})]})]})]}),t.jsx(Uo,{children:t.jsx(fn,{form:Ti(`${ot}_${i.jeScheduleId}`),label:Qu,variant:"primary",className:"item-value-container",type:"submit",loading:l?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:Io}})})]})})})})},Ri=(e,n,c,r,p,h,i,d)=>{const l=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?d.vendor.find(k=>k.zeniId===m.id):void 0,g=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,y=l!=null?p.find(k=>k.accountId===l):void 0,b=g!=null?i.find(k=>k.accountId===g):void 0,S=f!=null?h.find(k=>k.classId===f):void 0;return{[ot]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:b?.qboId,allOptions:r},vendor:{selectedOption:u?.id??m?.id,defaultOptions:Os(d,u??m)},scheduleClass:{selectedOption:S?.classId,allOptions:c}}}},to=a(qn)`
|
|
854
852
|
width: ${o.sp3};
|
|
855
853
|
height: ${o.sp3};
|
|
856
|
-
`,
|
|
854
|
+
`,no=a(Ms)`
|
|
857
855
|
width: 12px;
|
|
858
856
|
height: 12px;
|
|
859
|
-
color: ${
|
|
860
|
-
`;function aa(){return t.jsx(qs,{children:t.jsxs(Ks,{children:[t.jsxs(Js,{children:[t.jsx(
|
|
857
|
+
color: ${Xe.important};
|
|
858
|
+
`;function aa(){return t.jsx(qs,{children:t.jsxs(Ks,{children:[t.jsxs(Js,{children:[t.jsx(Fe,{width:x[9],height:27,style:{marginBottom:x[2]}}),t.jsx(Di,{})]}),t.jsxs(Zs,{children:[t.jsx(Fe,{width:x[9],height:27,style:{marginBottom:x[2]}}),t.jsx(Di,{})]})]})})}const Di=()=>t.jsx(Ho,{style:{minWidth:1088},children:t.jsxs(Wo,{children:[t.jsxs(qo,{children:[t.jsxs(No,{children:[t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:t.jsx(Fe,{width:x[10],height:14})}),t.jsxs(ce,{style:{gap:x[2]},children:[t.jsx(Fo,{height:x[4],width:x[4]}),t.jsx(Fe,{height:x[4],width:x[10]})]})]}),t.jsxs(X,{children:[t.jsx(ae,{children:t.jsx(Fe,{width:101,height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:203})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:t.jsx(Fe,{width:x[9],height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:71})})]}),t.jsxs(X,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ae,{children:t.jsx(Fe,{width:107,height:14})}),t.jsx(Fe,{height:x[4],width:68})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:fe.COLUMN_FIVE},children:[t.jsx(ae,{children:t.jsx(Fe,{width:73,height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:49})})]})]}),t.jsxs(Vo,{children:[t.jsxs(X,{style:{width:fe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ae,{children:t.jsx(Fe,{width:49,height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:158})})]}),t.jsxs(X,{children:[t.jsx(ae,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:88})})]}),t.jsxs(X,{style:{width:fe.COLUMN_THREE},children:[t.jsx(ae,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(ce,{children:t.jsx(Fe,{height:x[4],width:100})})]}),t.jsx(X,{style:{width:fe.COLUMN_FOUR,paddingLeft:x[3]}}),t.jsx(X,{style:{width:fe.COLUMN_FIVE}})]})]}),t.jsxs(Uo,{children:[t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),Fe=a(Mt)`
|
|
861
859
|
border-radius: ${o.sp1};
|
|
862
|
-
`,{common:{create:
|
|
860
|
+
`,{common:{create:th,resolve:nh}}=Ie.getLocalizedStrings();function oh({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:c,onJESchedulesFormDataChange:r,onPostJESchedule:p,ignoreRecommendedJeSchedule:h,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:d}){const l=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,g=e.ignoreStatusById;Cn({componentName:"expense_automation.je_schedules",enabled:e.fetchState==="Completed"});const f=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:b,allClassList:S,allDepreciationAccountList:k}=e,C=Ot(e.accountListNestedAccountHierarchy),L=Ot(e.allDepreciationAccountListNestedAccountHierarchy),j=Fn(e.classListNestedAccountHierarchy),v=(T,I,R)=>{c(T,I,R)},A=(T,I,R,w)=>{let D=T.target;for(;D;){if(D.classList.contains("item-value-container")||D.classList.contains("hover-background")||D.classList.contains("auto-complete-single-select-field__input")||D.classList.contains("auto-complete-single-select-field__option")||D.classList.contains("grouped-single-select-field__input")||D.classList.contains("grouped-single-select-field__menu"))return;D=D.parentElement}c(I,R,w)};return s.useEffect(()=>{if(f.length!==0){for(const T in m)if(Object.prototype.hasOwnProperty.call(m,T)){const{updatedAccumulatedDepreciationCategoryID:I,updatedCategoryId:R,updatedVendor:w}=m[T];if(I!=null||R!=null||w!=null&&w?.id!==""){d("expenseAutomationJESchedulePage");break}else d("expenseAutomationPage")}}else f.length===0&&d("expenseAutomationPage")}),s.useEffect(()=>()=>{d("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(aa,{}):l.length!==0||f.length!==0?t.jsx(qs,{children:t.jsxs(Ks,{children:[l.length>0?t.jsxs(Js,{children:[t.jsxs(Mi,{children:[th,t.jsx(Fi,{isCircular:l.length<10,children:t.jsx(zi,{children:l.length})})]}),t.jsx(Oi,{"data-testid":z("expense-automation","draft-je-schedules"),children:l.map((T,I)=>t.jsx(Ju,{ignoreStatus:g[T.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:h,onReviewClickHandler:v,jeScheduleClickHandler:A,draft:T},`${I}_${T.jeScheduleId}`))})]}):null,f.length>0?t.jsxs(Zs,{children:[t.jsxs(Mi,{children:[nh,t.jsx(Fi,{isCircular:f.length<10,children:t.jsx(zi,{children:f.length})})]}),t.jsx(Oi,{"data-testid":z("expense-automation","resolve-je-schedules"),children:f.map((T,I)=>m[T.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(eh,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:A,onPostJESchedule:p,uncategorizedAccounts:y,allAccountList:b,allAccountGroupedOptions:C,allClassGroupedOptions:j,allClassList:S,allDepAccountGroupedOptions:L,allDepAccountList:k,draft:T,postStatus:u[T.scheduledJournalEntry.scheduledJournalEntryID],localData:m[T.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:r},`${I}_${T.jeScheduleTransactionKey}`))})]}):null]})}):null}const Oi=a.div`
|
|
863
861
|
display: flex;
|
|
864
862
|
flex-direction: column;
|
|
865
863
|
gap: ${o.sp4};
|
|
@@ -876,15 +874,15 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
876
874
|
justify-content: center;
|
|
877
875
|
border: ${e=>`1px solid ${e.theme.colors.grey1}`};
|
|
878
876
|
color: ${e=>e.theme.colors.hero};
|
|
879
|
-
${e=>e.isCircular?
|
|
877
|
+
${e=>e.isCircular?Ve`
|
|
880
878
|
height: ${o.sp3};
|
|
881
879
|
width: ${o.sp3};
|
|
882
880
|
padding: ${o.sp0};
|
|
883
|
-
`:
|
|
881
|
+
`:Ve`
|
|
884
882
|
height: 18px;
|
|
885
|
-
padding: ${
|
|
883
|
+
padding: ${Sr.padding};
|
|
886
884
|
`}
|
|
887
|
-
`,
|
|
885
|
+
`,zi=a(jr)`
|
|
888
886
|
color: ${e=>e.theme.colors.hero};
|
|
889
887
|
height: 100%;
|
|
890
888
|
width: 100%;
|
|
@@ -892,7 +890,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
892
890
|
align-items: center;
|
|
893
891
|
justify-content: center;
|
|
894
892
|
color: inherit;
|
|
895
|
-
`;function
|
|
893
|
+
`;function ih({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:c,vendorSearchAutoCompleteData:r,onJESchedulesFormDataChange:p,onPostJESchedule:h,handleJeScheduleClick:i,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:l,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:g,setIsJeAccountSettingsOpened:f}){const{jeSchedules:y}=e;return y.fetchState==="In-Progress"||y.accountSettingsView.fetchState==="In-Progress"?t.jsx(aa,{}):y.accountSettingsView.fetchState==="Completed"&&y.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&y.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(Vu,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:c,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:l,accountSettings:y.accountSettingsView,setCurrentFooterFormId:g}):y.fetchState==="Completed"&&y.draftSchedules.length===0&&y.resolveSchedules.length===0?t.jsx(jt,{tab:e.currentSelectedView,title:He(e.currentSelectedView).allDoneText.title,subTitle:He(e.currentSelectedView).allDoneText.subTitle}):y.fetchState==="Completed"?t.jsx(oh,{setCurrentFooterFormId:g,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:p,onPostJESchedule:h,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:r}):null}const sh=72,ra=50,ah=1,rh=["receipts"],_i=e=>zs(e,rh),{common:{texts:{vendor:lh,amount:ch,receipts:dh,category:uh,classText:hh,date:ph}}}=Ie.getLocalizedStrings(),la={key:"vendor",value:lh,sortOrder:"ascending",width:new G(18,18)},mh={key:"category",value:uh,sortOrder:"ascending",width:new G(18,18)},gh={key:"class",value:hh,sortOrder:"ascending",width:new G(18,18)},xh={key:"date",value:ph,sortOrder:"descending",width:new G(11,11)},fh={key:"receipts",value:dh,sortOrder:"descending",width:new G(6,6)},ca={key:"amount",value:ch,sortOrder:"ascending",width:new G(10,10)},mn=[la,mh,gh,xh,fh,ca],da=[{...la,width:new G(65,65)},{...ca,width:new G(30,30)}],oo={sortKey:"date",sortOrder:"descending"},Bi={containerPaddingLeftRight:new G(x[3],x[4])},ua=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:c})=>{const r=ke(),p=Ft(),h=p?da:mn,[i,d]=s.useState(h);s.useEffect(()=>{const u=[...h];for(const g of u)g.key===e.sortKey?g.sortOrder=e.sortOrder:g.sortOrder="ascending";d(u)},[e.sortKey,e.sortOrder,p]);const l=(u,g)=>{let f=g;e.sortKey===u&&(f=g==="ascending"?"descending":"ascending"),c(u,f)},m=u=>{_i(u.key)==null&&l(Gr(u.key),u.sortOrder)};return t.jsx(yh,{windowSize:r,children:i.map((u,g)=>{const f=n!=null||_i(u.key)!=null;return t.jsxs(Ch,{sortDataValue:e.sortKey,actualDataValue:u.key,wrapperWidth:u.width,isSortDisabled:f,windowSize:r,isLastItem:g===i.length-1,style:u.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(jh,{onClick:()=>f?null:m(u),isSortDisabled:f,children:[t.jsx(kh,{children:u.value}),f?null:t.jsx(bh,{sortConfig:e,headerData:u,children:t.jsx(Sh,{})})]}),f?null:t.jsx(vh,{isSortDisabled:f,sortDataValue:e.sortKey,isVisible:e.sortKey===u.key&&e.sortKey!==oo.sortKey,children:t.jsx(wh,{onClick:()=>{f||l(oo.sortKey,oo.sortOrder)},"data-testid":z("missing-receipts-header-close-icon",u.key)})})]},u.key)})})},yh=a.div`
|
|
896
894
|
top: ${o.sp0};
|
|
897
895
|
left: ${o.sp0};
|
|
898
896
|
height: ${ra}px;
|
|
@@ -905,7 +903,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
905
903
|
position: sticky;
|
|
906
904
|
padding-left: ${e=>Bi.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
907
905
|
padding-right: ${e=>Bi.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
908
|
-
`,
|
|
906
|
+
`,Ch=a.div`
|
|
909
907
|
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
910
908
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
911
909
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -918,34 +916,34 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
918
916
|
position: static;
|
|
919
917
|
z-index: 0;
|
|
920
918
|
box-sizing: border-box;
|
|
921
|
-
`,
|
|
919
|
+
`,wh=a(Un)`
|
|
922
920
|
width: ${o.sp2};
|
|
923
921
|
height: ${o.sp2};
|
|
924
922
|
cursor: pointer;
|
|
925
|
-
`,
|
|
923
|
+
`,bh=a.div`
|
|
926
924
|
display: flex;
|
|
927
925
|
align-items: center;
|
|
928
926
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
929
|
-
`,
|
|
927
|
+
`,vh=a.div`
|
|
930
928
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
931
929
|
align-items: center;
|
|
932
930
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
933
931
|
&:hover {
|
|
934
932
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
935
933
|
}
|
|
936
|
-
`,
|
|
934
|
+
`,Sh=a(Hn)`
|
|
937
935
|
width: ${o.sp2};
|
|
938
936
|
height: ${o.sp2};
|
|
939
|
-
`,
|
|
937
|
+
`,jh=a.div`
|
|
940
938
|
display: flex;
|
|
941
939
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
942
940
|
gap: 6px;
|
|
943
941
|
&:hover {
|
|
944
942
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
945
943
|
}
|
|
946
|
-
`,
|
|
944
|
+
`,kh=a(xt)`
|
|
947
945
|
display: flex;
|
|
948
|
-
`,{common:{strings:{underscore:ha,hyphen:
|
|
946
|
+
`,{common:{strings:{underscore:ha,hyphen:io,empty:Pi},documents:{singleFileUploadSizeErrorMessage:Ih,multipleFileUploadSizeErrorMessage:$h},snackBar:{missing_receipts_attachment:{failed:Th}},tooltips:{addMissingReceipt:Lh}},dateFormat:Ah}=Ie.getLocalizedStrings(),On={containerPaddingLeftRight:new G(x[3],x[4]),containerPaddingTopBottom:new G(x[2],x[3])},Eh=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:c,authParams:r,selectedPeriod:p,onUploadReceiptComplete:h,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:d,onUploadReceiptAttachment:l})=>{const m=ke(),u=Ft(),g=s.useRef(null),f=s.useCallback(async(k,C,L,j,v)=>{d(e.id,"In-Progress"),await tl(k,C,L,j,v).then(({uploadResponse:A,errorMessage:T})=>{A!=null?A.transaction.attachments!=null&&(l(A.transaction),setTimeout(()=>h(A.transaction,p),2e3)):d(e.id,"Error",{code:500,message:Th},T)}).catch(A=>{d(e.id,"Error",A)})},[e.id,p,l,h,d]),y=s.useCallback(k=>{if(k.target.files!=null){const C=k.target.files,L=[],j=[];for(let v=0;v<C.length;v++)L.push(C[v].name),j.push(C[v]);f(c,r,C[0],C[0].name,{id:e.id,type:e.type})}},[r,f,c,e.id,e.type]),b=s.useCallback(()=>{u||g.current?.click()},[g,u]),S=u?da:mn;return t.jsx(pa,{className:"missing-receipts-row-card",windowSize:m,isQuickViewMode:u,onClick:()=>i(e.id,e.type),"data-testid":z("missing-receipts-list-row",e.id),children:S.map((k,C)=>{const L=`${e.id}${ha}${k.key}`;switch(k.key){case"vendor":default:return t.jsx(Ut,{windowSize:m,wrapperWidth:k.width,children:t.jsx(qt,{windowSize:m,isLastItem:C===S.length-1,children:t.jsxs(_n,{children:[t.jsx($s,{photoUrl:e.vendorId!=null?e.logo?.toString()??Pi:Pi,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:x[4],height:x[4]},fallbackAvatar:t.jsx(_h,{children:t.jsx(xn,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(it,{text:e.vendorName??e.description,itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"}})]})})},L);case"category":case"class":{const j=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:io,v=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:io,A=k.key==="category"?j:v;return t.jsx(Ut,{windowSize:m,wrapperWidth:k.width,children:t.jsx(qt,{windowSize:m,isLastItem:C===S.length-1,children:t.jsx(_n,{children:A!==io?t.jsx(it,{text:A,itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"}}):t.jsx(zh,{children:A})})})},L)}case"date":return t.jsx(Ut,{windowSize:m,wrapperWidth:k.width,children:t.jsx(qt,{windowSize:m,isLastItem:C===S.length-1,children:t.jsx(_n,{children:t.jsx(it,{text:e.date.format(Ah.visual.MMMDCommaYYYYformat),itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"}})})})},L);case"receipts":return t.jsx(Ut,{windowSize:m,wrapperWidth:k.width,children:t.jsx(qt,{windowSize:m,isLastItem:C===S.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(ws,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(vr,{shouldDisplay:!0,width:x[4],height:x[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Fh,{onClick:j=>{j.stopPropagation()},children:t.jsx(Cs,{"data-testid":z("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:g,sizeLimit:Jn,multiple:!1,acceptableTypes:[...Yr],onFileChange:y,onFileSizeError:(j,v)=>{j&&d(e.id,"Error",{code:500,message:v===!0?Ih.replace("__maxFileSize__",Yo(Jn,0)):$h.replace("__maxFileSize__",Yo(Jn,0))})}})}),t.jsx(we,{display:"flex",placement:"bottom",title:Lh,enterDelay:600,children:t.jsx(Mh,{onClick:j=>{j.stopPropagation(),b()}})})]})})},L);case"amount":{const j=Je("0,0.[00]",e.amount);return t.jsx(Ut,{windowSize:m,wrapperWidth:k.width,children:t.jsx(qt,{windowSize:m,isLastItem:C===S.length-1,children:t.jsx(it,{text:e.amount.amount<0?`-${j}`:j,itemTextStyle:{...Dt.standardRegular.cssObject,color:"inherit"}})})},L)}}})})},Rh=()=>{const e=ke(),n=s.useRef(null),[c,r]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&r(n.current.offsetWidth)},[e]),t.jsx(pa,{windowSize:e,isQuickViewMode:!1,ref:n,children:mn.map((p,h)=>{const i=`${h}${ha}${p.key}`;switch(p.key){case"vendor":return t.jsx(Ut,{windowSize:e,wrapperWidth:p.width,children:t.jsx(qt,{windowSize:e,isLastItem:h===mn.length-1,children:t.jsxs(_n,{children:[t.jsx(Fo,{width:x[4],height:x[4]}),t.jsx(Mt,{width:c*p.width.value(e)/100,height:x[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(Ut,{windowSize:e,wrapperWidth:p.width,children:t.jsx(qt,{windowSize:e,isLastItem:h===mn.length-1,children:t.jsx(Mt,{width:c*p.width.value(e)/100,height:x[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},pa=a.div`
|
|
949
947
|
display: flex;
|
|
950
948
|
background-color: ${e=>e.theme.colors.grey5};
|
|
951
949
|
padding-left: ${e=>On.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
@@ -957,12 +955,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
957
955
|
border-radius: ${o.sp2};
|
|
958
956
|
color: ${e=>e.theme.colors.hero};
|
|
959
957
|
cursor: pointer;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}
|
|
965
|
-
`}
|
|
958
|
+
&:hover {
|
|
959
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
960
|
+
color: ${e=>e.theme.colors.primary};
|
|
961
|
+
}
|
|
966
962
|
|
|
967
963
|
box-sizing: border-box;
|
|
968
964
|
align-items: center;
|
|
@@ -976,7 +972,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
976
972
|
:last-of-type {
|
|
977
973
|
padding-right: ${o.sp0};
|
|
978
974
|
}
|
|
979
|
-
`,
|
|
975
|
+
`,Dh=Ve`
|
|
980
976
|
word-break: break-all;
|
|
981
977
|
white-space: normal;
|
|
982
978
|
-webkit-line-clamp: 1;
|
|
@@ -984,58 +980,58 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
984
980
|
overflow: hidden;
|
|
985
981
|
text-overflow: ellipsis;
|
|
986
982
|
display: -webkit-box;
|
|
987
|
-
`,
|
|
983
|
+
`,Oh=Ve`
|
|
988
984
|
height: ${o.sp3};
|
|
989
985
|
width: ${o.sp3};
|
|
990
986
|
cursor: pointer;
|
|
991
|
-
`,
|
|
992
|
-
${
|
|
987
|
+
`,Mh=a(qn)`
|
|
988
|
+
${Oh};
|
|
993
989
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
994
990
|
&:hover {
|
|
995
991
|
color: ${e=>e.theme.colors.primary};
|
|
996
992
|
}
|
|
997
|
-
`,qt=a(
|
|
993
|
+
`,qt=a(_e)`
|
|
998
994
|
overflow: hidden;
|
|
999
995
|
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1000
996
|
display: flex;
|
|
1001
997
|
width: 100%;
|
|
1002
998
|
align-items: center;
|
|
1003
|
-
`,
|
|
999
|
+
`,Fh=a.div``,_n=a.div`
|
|
1004
1000
|
display: flex;
|
|
1005
1001
|
flex-direction: row;
|
|
1006
1002
|
column-gap: ${o.sp2};
|
|
1007
1003
|
align-items: center;
|
|
1008
|
-
`,
|
|
1009
|
-
${
|
|
1004
|
+
`,zh=a(_e)`
|
|
1005
|
+
${Dh};
|
|
1010
1006
|
color: inherit;
|
|
1011
1007
|
`,_h=a.div`
|
|
1012
1008
|
display: flex;
|
|
1013
|
-
`,
|
|
1009
|
+
`,Bh=({sortConfig:e,fetchState:n,isDisabled:c,onColumnSortConfigChanged:r})=>{const p=ke();return t.jsxs(Ph,{windowSize:p,children:[t.jsx(ua,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":c,onColumnSortConfigChanged:r}),t.jsx(Nh,{windowSize:p,children:[...Array(3)].map((h,i)=>t.jsx(Rh,{},i))})]})},Ph=a.div`
|
|
1014
1010
|
display: block;
|
|
1015
1011
|
min-height: 100%;
|
|
1016
1012
|
flex-direction: column;
|
|
1017
1013
|
width: 100%;
|
|
1018
|
-
`,
|
|
1014
|
+
`,Nh=a.div`
|
|
1019
1015
|
display: flex;
|
|
1020
1016
|
min-height: 100%;
|
|
1021
1017
|
flex-direction: column;
|
|
1022
1018
|
row-gap: ${o.sp3};
|
|
1023
|
-
`,{common:
|
|
1019
|
+
`,{common:Vh}=Ie.getLocalizedStrings(),Wh=({missingReceipts:e,receiptUploadEndpoint:n,authParams:c,selectedPeriod:r,isDisabled:p,onMissingReceiptsRowClick:h,onUploadReceiptComplete:i,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:l,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const g=ke(),{fetchState:f,uiState:y,transactions:b}=e;Cn({componentName:"expense_automation.missing_receipts",enabled:f==="Completed"});const S=s.useRef(null),[k,C]=s.useState(!1);s.useEffect(()=>{S.current?.resetAfterIndex(0)},[g,S]),s.useEffect(()=>{f==="Completed"&&C(!1)},[f]);const L=v=>sh,j=(v,A)=>{m({sortOrder:A,sortKey:v})};return t.jsxs(qh,{children:[t.jsx(Kh,{windowSize:g,children:f==="Error"?t.jsxs(Zh,{windowSize:g,children:[t.jsx(Gh,{onClick:()=>u(),"data-testid":z("missing-receipts-list-table-reload-button"),children:t.jsx(Eo,{})}),t.jsx(Yh,{children:Vh.reloadPage.label})]}):f==="Completed"&&b.length===0?t.jsx(jt,{tab:"missing_receipts",title:He("missing_receipts").allDoneText.title,subTitle:He("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&b.length===0?t.jsx(Bh,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},fetchState:f,onColumnSortConfigChanged:j}):t.jsx(Jh,{windowSize:g,children:t.jsx(Vn,{children:({height:v,width:A})=>t.jsxs(Xh,{style:{height:v,width:A},children:[t.jsx(Uh,{children:t.jsx(ua,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},isDisabled:f==="In-Progress"?"readonly":p,onColumnSortConfigChanged:j})}),t.jsx(Wn,{ref:S,height:v-ra,innerElementType:ma,itemCount:b.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:c,isDisabled:p,selectedPeriod:r,onMissingReceiptsRowClick:h,onUploadReceiptComplete:i,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:l},itemSize:L,width:A,style:{willChange:"auto"},overscanCount:ah,onScroll:({scrollOffset:T})=>{m({scrollPosition:{scrollTop:T}})},initialScrollOffset:y.scrollPosition?.scrollTop,children:Hh})]})})})}),t.jsx(We,{controller:k===!0,children:t.jsx(ep,{children:t.jsx(ws,{size:"Small",start:!0})})})]})},Hh=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=Nn(),{missingReceipts:p,receiptUploadEndpoint:h,authParams:i,onMissingReceiptsRowClick:d,onUploadReceiptComplete:l,onUploadReceiptAttachment:m,onUploadReceiptFetchStatus:u,selectedPeriod:g}=c,f=p.transactions[e],y=r!=null&&r===f.id;return t.jsx(Qh,{isPanelSelected:y,style:{...n,width:"100%"},children:t.jsx(Eh,{transaction:f,receiptUploadEndpoint:h,authParams:i,selectedPeriod:g,onMissingReceiptsRowClick:d,onUploadReceiptComplete:l,onUploadReceiptAttachment:m,onUploadReceiptFetchStatus:u,uploadReceiptsFetchState:p.uploadReceiptStatusById[f.id]??{fetchState:"Not-Started",error:void 0}},f.id)})},Uh=a.div`
|
|
1024
1020
|
width: auto;
|
|
1025
1021
|
max-width: var(--side-panel-list-width, 100%);
|
|
1026
1022
|
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
1027
|
-
`,
|
|
1023
|
+
`,qh=a.div`
|
|
1028
1024
|
width: 100%;
|
|
1029
1025
|
height: 100%;
|
|
1030
1026
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1031
|
-
`,qh=a.div`
|
|
1032
|
-
height: 100%;
|
|
1033
1027
|
`,Kh=a.div`
|
|
1034
1028
|
height: 100%;
|
|
1029
|
+
`,Jh=a.div`
|
|
1030
|
+
height: 100%;
|
|
1035
1031
|
display: flex;
|
|
1036
1032
|
flex-direction: column;
|
|
1037
1033
|
max-width: 99.9%;
|
|
1038
|
-
`,
|
|
1034
|
+
`,Zh=a.div`
|
|
1039
1035
|
display: flex;
|
|
1040
1036
|
width: 100%;
|
|
1041
1037
|
height: ${e=>`calc(100% - ${ks.valuePx(e.windowSize)})`};
|
|
@@ -1057,23 +1053,23 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1057
1053
|
color: ${e=>e.theme.colors.primary};
|
|
1058
1054
|
}
|
|
1059
1055
|
}
|
|
1060
|
-
`,
|
|
1056
|
+
`,Yh=a(gr)`
|
|
1061
1057
|
margin-top: ${o.sp3};
|
|
1062
1058
|
color: ${e=>e.theme.colors.hero};
|
|
1063
|
-
`,
|
|
1059
|
+
`,Qh=a.div`
|
|
1064
1060
|
top: ${o.sp0};
|
|
1065
1061
|
left: ${o.sp0};
|
|
1066
1062
|
padding-bottom: ${o.sp3};
|
|
1067
1063
|
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
1068
1064
|
box-sizing: border-box;
|
|
1069
|
-
${e=>e.isPanelSelected===!0&&
|
|
1065
|
+
${e=>e.isPanelSelected===!0&&Ve`
|
|
1070
1066
|
.missing-receipts-row-card {
|
|
1071
1067
|
${Bo(e.theme)}
|
|
1072
1068
|
}
|
|
1073
1069
|
`}
|
|
1074
1070
|
`,Xh=a.div`
|
|
1075
1071
|
position: relative;
|
|
1076
|
-
`,ma=s.forwardRef((e,n)=>{const{style:c,...r}=e;return t.jsx("div",{ref:n,style:{...c,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",position:"relative"},...r})});ma.displayName="Missing receipts inner element type";const
|
|
1072
|
+
`,ma=s.forwardRef((e,n)=>{const{style:c,...r}=e;return t.jsx("div",{ref:n,style:{...c,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",position:"relative"},...r})});ma.displayName="Missing receipts inner element type";const ep=a.div`
|
|
1077
1073
|
display: flex;
|
|
1078
1074
|
width: 100%;
|
|
1079
1075
|
height: ${o.sp3};
|
|
@@ -1082,15 +1078,15 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1082
1078
|
align-items: center;
|
|
1083
1079
|
margin-top: ${o.sp3};
|
|
1084
1080
|
margin-bottom: ${o.sp3};
|
|
1085
|
-
`,
|
|
1086
|
-
width: ${
|
|
1087
|
-
`,
|
|
1081
|
+
`,tp=[...Kr],np=7*1024*100,op=a.div`
|
|
1082
|
+
width: ${hn}px;
|
|
1083
|
+
`,so=a.div`
|
|
1088
1084
|
width: ${e=>`${e.availableWidth}px`};
|
|
1089
1085
|
min-width: auto;
|
|
1090
1086
|
position: relative;
|
|
1091
1087
|
height: fit-content;
|
|
1092
1088
|
min-height: ${o.sp12};
|
|
1093
|
-
`,
|
|
1089
|
+
`,ip=a.div`
|
|
1094
1090
|
flex-grow: 1;
|
|
1095
1091
|
overflow: auto;
|
|
1096
1092
|
min-height: 2em;
|
|
@@ -1108,17 +1104,17 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1108
1104
|
.attachFileSeparator {
|
|
1109
1105
|
user-select: none;
|
|
1110
1106
|
}
|
|
1111
|
-
`,
|
|
1107
|
+
`,sp=a.div`
|
|
1112
1108
|
display: flex;
|
|
1113
1109
|
column-gap: ${o.sp2};
|
|
1114
1110
|
align-items: flex-end;
|
|
1115
1111
|
margin-top: ${o.sp2};
|
|
1116
1112
|
margin-bottom: ${o.sp3};
|
|
1117
|
-
`,
|
|
1113
|
+
`,ap=a.div`
|
|
1118
1114
|
position: relative;
|
|
1119
|
-
`,Ni=a(
|
|
1115
|
+
`,Ni=a(_e)`
|
|
1120
1116
|
position: relative;
|
|
1121
|
-
`,
|
|
1117
|
+
`,rp=a.div`
|
|
1122
1118
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1123
1119
|
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
1124
1120
|
border-radius: ${o.sp2};
|
|
@@ -1135,13 +1131,13 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1135
1131
|
isolation: isolate;
|
|
1136
1132
|
z-index: ${x[1]};
|
|
1137
1133
|
}
|
|
1138
|
-
`,rp=a.div`
|
|
1139
|
-
user-select: text;
|
|
1140
1134
|
`,lp=a.div`
|
|
1135
|
+
user-select: text;
|
|
1136
|
+
`,cp=a.div`
|
|
1141
1137
|
position: absolute;
|
|
1142
1138
|
top: ${o.sp4}; // Attachment icon position from the top
|
|
1143
1139
|
right: -${o.sp3}; // To show attachment icon on the edge
|
|
1144
|
-
`,
|
|
1140
|
+
`,dp=a.div`
|
|
1145
1141
|
margin-top: ${o.sp2};
|
|
1146
1142
|
display: flex;
|
|
1147
1143
|
flex-direction: column;
|
|
@@ -1152,31 +1148,31 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1152
1148
|
.toolbar {
|
|
1153
1149
|
user-select: none;
|
|
1154
1150
|
}
|
|
1155
|
-
`,
|
|
1151
|
+
`,up=a(It)`
|
|
1156
1152
|
color: ${e=>e.theme.colors.grey1};
|
|
1157
1153
|
user-select: none;
|
|
1158
|
-
`,
|
|
1154
|
+
`,hp=a(js)`
|
|
1159
1155
|
color: ${e=>e.theme.colors.primary};
|
|
1160
|
-
`,
|
|
1156
|
+
`,pp=a.div`
|
|
1161
1157
|
flex-direction: column;
|
|
1162
1158
|
row-gap: ${o.sp3};
|
|
1163
1159
|
display: flex;
|
|
1164
|
-
`,
|
|
1160
|
+
`,mp=zo`
|
|
1165
1161
|
0% {
|
|
1166
1162
|
transform: translateX(100%);
|
|
1167
1163
|
}
|
|
1168
1164
|
100% {
|
|
1169
1165
|
transform: translateX(0)
|
|
1170
1166
|
}
|
|
1171
|
-
`,
|
|
1167
|
+
`,gp=zo`
|
|
1172
1168
|
0% {
|
|
1173
1169
|
transform: translateX(0)
|
|
1174
1170
|
}
|
|
1175
1171
|
100% {
|
|
1176
1172
|
transform: translateX(100%)
|
|
1177
1173
|
}
|
|
1178
|
-
`,
|
|
1179
|
-
animation: ${e=>e.allThreadsSectionOpen?
|
|
1174
|
+
`,xp=a.div`
|
|
1175
|
+
animation: ${e=>e.allThreadsSectionOpen?mp:gp}
|
|
1180
1176
|
0.5s forwards;
|
|
1181
1177
|
height: 100vh;
|
|
1182
1178
|
position: fixed;
|
|
@@ -1185,10 +1181,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1185
1181
|
z-index: ${x[2]};
|
|
1186
1182
|
min-width: ${gs}px;
|
|
1187
1183
|
max-width: ${ms}px;
|
|
1188
|
-
`,Bn="monthEndReportFormSection",Vi="monthEndReportPage",Ye=Ie.getLocalizedStrings();function
|
|
1184
|
+
`,Bn="monthEndReportFormSection",Vi="monthEndReportPage",Ye=Ie.getLocalizedStrings();function fp({companyId:e,enableZeniGPTFeature:n,monthEndReportView:c,previewMode:r,customerRequestData:p,allThreadsSectionOpen:h,filterMetaData:i,newThreadMetadata:d,isZeniUser:l,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:g,onUpdateFileAttachment:f,onCloseAllThreadsSection:y,previewMonthEndReport:b,saveMonthEndReport:S,onEditClick:k,onOpenFileAttachmentSnackBar:C,onClickCustomerRequest:L,sendMonthEndReport:j}){const v=gt(),[A,T]=s.useState(),[I,R]=s.useState(0),[w,D]=s.useState(0),V=s.useRef(),q=s.useRef(null),P=s.useRef(null),{html:N,subject:B,improveUsingZeniGPTStatus:ie}=c,[U,re]=s.useState(),[oe,Q]=s.useState(!1),[se,ge]=s.useState(!1),Y=s.useRef(null),le=s.useRef(null),K=Ba(h,250),M=c.fetchState==="Not-Started"||c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:O,sortedThreads:J,threadsPositions:Z,observer:W,unresolvedThreadsMap:E,handleRemoveFloatingThread:_}=Pa(i,Y,!r,M,l),H=s.useCallback(()=>{h?le.current!=null&&D(Math.min((le.current.offsetWidth-hn-x[4])/2,le.current.offsetWidth-hn-ms-x[4])):le.current!=null&&R(Math.min((le.current.offsetWidth-hn-x[4])/2,le.current.offsetWidth-hn-gs-x[4]))},[h]);s.useEffect(()=>{H()},[h,H]),s.useEffect(()=>(window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}),[H]);const F=l?ls:cs,{openThread:he,addThread:te,setOpenThread:ee}=s.useContext(F),xe=Na(Zo,!1,!r),$e=Y.current?.getBoundingClientRect(),$=xe!=null&&xe.coords&&$e?{left:xe.coords.left-$e.left,top:xe.coords.top-$e.top}:void 0,ne=s.useCallback(()=>{const De=window.getSelection()?.getRangeAt(0),ue=Va();if(!De||ue==null)return;const Se={...d,...ue,startPath:ue.startPath.join(),endPath:ue.endPath.join()},pe=`${fs()}${xs}`,st=`cockpit_${e}`;te(pe,{type:"thread",id:pe,roomId:st,createdAt:new Date,comments:[],metadata:Se,updatedAt:new Date,resolved:!1}),ee(pe)},[te,e,d,ee]);s.useEffect(()=>{he!=null&&h&&y()},[h,he,y]);const be=ie.fetchState==="In-Progress",Le=Jt({mode:"all",defaultValues:Wi(c),values:Wi(c)}),Be=Le.handleSubmit(De=>{const{recipientEmailList:ue,subject:Se}=De[Bn];if(r===!0)j?.(U?.id);else{const pe=A?.replace(Wa,Ye.common.strings.empty);ue!=null&&Se!=null&&b(ue,Se,U?.id,pe!=null&&pe.length>0?A:void 0)}}),Pe=()=>{q.current!=null&&q.current.click()},ye=()=>{U!==void 0&&U!=null&&(g([U.id]),re(void 0),Q(!1))},et=De=>{const ue=De.target.files?De.target.files[0]:null;if(ue)if(!Jr(ue.type)||se)console.warn("Please select a valid file.");else{const Se=new FileReader;Se.onload=function(pe){const st=pe.target?.result;if(typeof st=="string"){const lt={data:st.split(",")[1],name:ue.name,id:Zr(e,ue.name)};re(lt),Q(!0),f([lt])}},Se.readAsDataURL(ue)}},Ze=()=>{P.current&&P.current.scrollIntoView({behavior:"smooth"})},Ge=()=>{const De=Le.getValues(),{recipientEmailList:ue,subject:Se}=De[Bn];ue!=null&&Se!=null&&S(ue,Se,U?.id,A)};s.useEffect(()=>{T(c.zeniRequestsHtml)},[c.zeniRequestsHtml]),s.useEffect(()=>{V.current=U},[U]),s.useEffect(()=>{re(qr(c.attachmentFile)),Q(!1)},[c.attachmentFile]),s.useEffect(()=>{se&&C()},[se,C]);const de=ko(`${m.year}-${m.month}-01`).format(Ye.dateFormat.visual.MMMMFormat),ze=N!=null?N.split(Ha):[],ft=c.concatenatedHtml,$t=()=>c.lastDraftSavedDate!=null&&r===!1?t.jsx(mr,{time:c.lastDraftSavedDate,user:c.reportLastSavedByUser,timeStampLabel:Ye.cockpit.monthEndReport.timeStampLabel}):null,Tt=()=>l===!0?K?t.jsxs(t.Fragment,{children:[t.jsx(xp,{allThreadsSectionOpen:h,children:t.jsx(hr,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${v.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:v.colors.background},threadsContainerStyle:{paddingBottom:r?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Ye.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(De,ue)=>{ee(ue);const Se=J.findIndex(pe=>pe[0]===ue);y(),O.current?.[Se]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>y()})}),t.jsx(so,{availableWidth:I})]}):t.jsx(pr,{observer:W,canvasContainerRef:Y,sortedThreads:J,threadsPositions:Z,threadsRefs:O,unresolvedThreadsMap:E,editorMode:!r,style:{minWidth:`${I}px`,position:"relative",height:"fit-content",top:`${Y.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:_}):t.jsx(so,{availableWidth:I}),yt=(c.zeniRequestsData??[]).length+Ua(c.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(ip,{ref:le,children:[t.jsx(so,{availableWidth:h?w:I}),t.jsxs(op,{children:[t.jsx(Zt,{...Le,children:t.jsx("form",{id:Hi(Vi),onSubmit:Be,children:t.jsxs(pp,{children:[t.jsx(qa,{sectionId:Bn,previewMode:r,subject:B}),!r&&yt>0?t.jsx(Ka,{totalItems:yt,onClickCustomerRequest:L}):null,t.jsxs(rp,{id:Zo,ref:Y,children:[t.jsxs(lp,{className:"monthEndReportCanvasWrapper",children:[U!=null||se?t.jsx(cp,{"data-testid":z("email-attachment-container"),onClick:Ze,children:t.jsx(Ja,{fileSizeError:se,setFileSizeError:ge,loading:!1,showAnimation:!r&&oe})}):null,r?t.jsx(Ni,{dangerouslySetInnerHTML:{__html:Za(ft)}}):t.jsxs(t.Fragment,{children:[t.jsxs(ap,{id:Ga,children:[t.jsx(_e,{dangerouslySetInnerHTML:{__html:ze[0]!=null?ze[0]+"</body></html>":Ye.common.strings.empty}}),t.jsxs(sp,{children:[t.jsx(hp,{children:Ye.cockpit.monthEndReport.editorTitle}),t.jsx(up,{children:Ye.cockpit.monthEndReport.editorNote})]})]}),t.jsx(dp,{id:Ya,children:t.jsx(Qa,{handleFileInputClick:Pe,fileAttached:U!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:be,initialHtmlString:c.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:T,customerRequestData:p})}),t.jsx(Ni,{id:ys,dangerouslySetInnerHTML:{__html:ze[1]!=null?"<html><body>"+ze[1]:Ye.common.strings.empty}})]}),U!=null?t.jsx(Xa,{ref:P,fileName:U.name,fileSize:er(U.data),onRemove:ye,isRemovable:!r}):null]}),$?t.jsx(tr,{style:{zIndex:15},coords:$,alignment:xe.alignment,onClick:ne}):null,t.jsx(nr,{canvasContainerRef:Y,sortedThreads:J,editorMode:!r,isZeniUser:l})]})]})})}),t.jsx(Cs,{name:U?.name??Ye.common.strings.empty,fileRef:q,sizeLimit:np,acceptableTypes:tp,onFileChange:async De=>{et(De)},onFileSizeError:De=>ge(De),multiple:!1})]}),Tt()]}),t.jsx(ds,{style:{zIndex:10},leftSideComponent:$t(),formId:Hi(Vi),cancelBtn:{isDisabled:be,label:r===!0?Ye.cockpit.monthEndReport.editButtonLabel:Ye.cockpit.monthEndReport.saveChanges,onClick:r===!0?k:Ge,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:c.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:be,isLoading:r===!0?c.sendMonthEndReportStatus.fetchState==="In-Progress":c.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:r===!0?"unset":"136px"},label:r===!0?Ye.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",de):Ye.cockpit.monthEndReport.preview,size:"medium"}})]})}const Wi=e=>({[Bn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ye.common.strings.empty}}),Hi=e=>`${e}_form`;Dt.smallBold.lineHeightValue;const yp=1,Cp=50,Ui=56,wp=["memo","activity"],qi=e=>zs(e,wp),{common:{strings:{empty:ga}},expenseAutomation:{transactions:{header:{vendors:bp,category:vp,classText:Sp,date:jp,type:kp,amount:Ip}}}}=Ie.getLocalizedStrings(),xa={key:"vendor",value:bp,sortOrder:"ascending",width:new G(18,18),customStyle:{common:{paddingLeft:x[7]}}},$p={key:"category",value:vp,sortOrder:"ascending",width:new G(20,20),customStyle:{common:{paddingLeft:x[7]}}},Tp={key:"class",value:Sp,sortOrder:"ascending",width:new G(18,18),customStyle:{common:{paddingLeft:x[7]}}},Lp={key:"date",value:jp,sortOrder:"descending",width:new G(11,11),customStyle:{common:{paddingLeft:12}}},Ap={key:"transaction_type",value:kp,sortOrder:"descending",width:new G(13,13),customStyle:{common:{paddingLeft:x[3]}}},Ep={key:"memo",value:ga,sortOrder:"ascending",width:new G(6,6),customStyle:{common:{}}},fa={key:"amount",value:Ip,sortOrder:"ascending",width:new G(10,10),customStyle:{common:{paddingRight:x[4]}}},Rp={key:"activity",value:ga,sortOrder:"ascending",width:new G(4,4),customStyle:{common:{}}},Jo=e=>{const n=[xa,$p,Tp,Lp,Ap,Ep,fa];return e===!0&&n.push(Rp),n},ya=[{...xa,width:new G(65,65)},{...fa,width:new G(30,30)}],ao={sortKey:"date",sortOrder:"descending"},Ca=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:c,onColumnSortConfigChanged:r})=>{const p=ke(),h=Ft(),i=h?ya:Jo(c),[d,l]=s.useState(jo(i));s.useEffect(()=>{const g=jo(i);for(const f of g)f.key===e.sortKey?f.sortOrder=e.sortOrder:f.sortOrder="ascending";l(g)},[e.sortKey,e.sortOrder,h]);const m=(g,f)=>{let y=f;e.sortKey===g&&(y=f==="ascending"?"descending":"ascending"),r(g,y)},u=g=>{qi(g.key)==null&&m(Xr(g.key),g.sortOrder)};return t.jsx(Dp,{windowSize:p,"data-testid":z("transaction-categorization-header-container"),children:d.map((g,f)=>{const y=n!=null||qi(g.key)!=null;return t.jsxs(Op,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,style:g.customStyle?.common,isSortDisabled:y,windowSize:p,isLastItem:f===d.length-1,"data-testid":z("transaction-categorization-header-wrapper",g.key),children:[t.jsxs(Bp,{"data-testid":z("transaction-categorization-header",g.value?g.value:g.key),onClick:()=>u(g),isSortDisabled:y,children:[t.jsx(Pp,{children:g.value}),y?null:t.jsx(Fp,{sortConfig:e,headerData:g,"data-testid":z("transaction-categorization-sort-icon",g.key),children:t.jsx(_p,{})})]}),y?null:t.jsx(zp,{isSortDisabled:y,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&e.sortKey!==ao.sortKey,"data-testid":z("transaction-categorization-close-icon",g.key),children:t.jsx(Mp,{onClick:()=>{m(ao.sortKey,ao.sortOrder)},"data-testid":z("transaction-categorization-close-icon-button",g.key)})})]},g.key)})})},Dp=a.div`
|
|
1189
1185
|
top: ${o.sp0};
|
|
1190
1186
|
left: ${o.sp0};
|
|
1191
|
-
height: ${
|
|
1187
|
+
height: ${Cp}px;
|
|
1192
1188
|
z-index: 2;
|
|
1193
1189
|
display: flex;
|
|
1194
1190
|
align-items: center;
|
|
@@ -1196,7 +1192,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1196
1192
|
box-sizing: border-box;
|
|
1197
1193
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1198
1194
|
position: sticky;
|
|
1199
|
-
`,
|
|
1195
|
+
`,Op=a.div`
|
|
1200
1196
|
color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1201
1197
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1202
1198
|
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -1209,15 +1205,15 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1209
1205
|
position: static;
|
|
1210
1206
|
z-index: 0;
|
|
1211
1207
|
box-sizing: border-box;
|
|
1212
|
-
`,
|
|
1208
|
+
`,Mp=a(Un)`
|
|
1213
1209
|
width: 12px;
|
|
1214
1210
|
height: 12px;
|
|
1215
|
-
`,
|
|
1211
|
+
`,Fp=a.div`
|
|
1216
1212
|
display: flex;
|
|
1217
1213
|
align-items: center;
|
|
1218
1214
|
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1219
1215
|
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
1220
|
-
`,
|
|
1216
|
+
`,zp=a.div`
|
|
1221
1217
|
display: ${e=>e.isVisible?"flex":"none"};
|
|
1222
1218
|
align-items: center;
|
|
1223
1219
|
padding-top: 2px;
|
|
@@ -1225,19 +1221,19 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1225
1221
|
&:hover {
|
|
1226
1222
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1227
1223
|
}
|
|
1228
|
-
`,_p=a(
|
|
1224
|
+
`,_p=a(Hn)`
|
|
1229
1225
|
width: ${o.sp2};
|
|
1230
1226
|
height: ${o.sp2};
|
|
1231
|
-
`,
|
|
1227
|
+
`,Bp=a.div`
|
|
1232
1228
|
display: flex;
|
|
1233
1229
|
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1234
1230
|
gap: 6px;
|
|
1235
1231
|
&:hover {
|
|
1236
1232
|
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1237
1233
|
}
|
|
1238
|
-
`,
|
|
1234
|
+
`,Pp=a(xt)`
|
|
1239
1235
|
display: flex;
|
|
1240
|
-
`,ao="expenseAutomationTransactionsPage",Kt="transactionCategorizationListTable",Re="account",Xe="class",rt="lineEntitySelection",Pp="lineEntity",Np="recommendations",wa="lineInfo",Vp="vendorDetails",Wp="customerDetails",Pn="selectedTransactionIds",Et=(e,n,c)=>`${e}.${c}.${n}`,Hp=e=>s.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Up=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:qp,hyphen:Mn,empty:tn}},expenseAutomation:{transactions:wt},dateFormat:Kp}=Ie.getLocalizedStrings(),jt={containerPaddingLeftRight:new Z(x[3],x[4]),containerPaddingTopBottom:new Z(x[1],x[2]),containerPaddingTopBottomEmpty:new Z(x[2],x[3]),nameLogoWidth:new Z(x[2],x[4]),nameLogoHeight:new Z(x[2],x[4])},Jp=({transactionView:e,transaction:n,sectionId:c,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:p,selectedTab:h,containerRef:i,listContainerRef:d,isCOTEnabled:l,cotTracking:m,onTransactionCategorizationRowClick:u,setCurrentTransactionInAction:g,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:S,setActivityLogTransactionId:k,isTransactionActivityEnabled:C})=>{const L=ke(),j=Ft(),[v,A]=s.useState(!1),[T,I]=s.useState(!1),{lineItemById:R,sortedLineItems:w}=n.transactionReviewLocalData,D=n.transactionReviewLocalData.tabSpecificLineItems?.[h]||[],V=w.filter(E=>D.indexOf(E)!==-1),q=[];V.forEach(E=>{q.push(R[E])});const{accountList:P,accountsHierarchyList:N,classHierarchyList:B,classList:ie,uncategorizedAccounts:U,transactions:re,selectedCheckBoxTransactionIds:oe}=e,X=oe.includes(n.transactionId),se=kt(),ge={control:()=>({marginLeft:-2,backgroundColor:v?se.colors.background:se.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0]}),menu:()=>({width:"150%",background:se.colors.grey5}),singleValue:()=>({color:v||X?se.colors.primary:se.colors.hero,paddingLeft:x[2]}),input:E=>({...E,color:v||X?se.colors.primary:se.colors.hero,textAlign:"left",paddingLeft:x[2]}),menuPortal:E=>({...E,zIndex:10})},Y={...ge,singleValue:E=>({...E,color:v||X?se.colors.primary:se.colors.hero}),menu:()=>({marginTop:x[1],marginLeft:-8}),input:E=>({...E,color:v||X?se.colors.primary:se.colors.hero,textAlign:"left"})},le=re.find(E=>E.id===n.transactionId),K=(E,z)=>{const{transactionType:H}=z.transactionReviewLocalData;let F=E.target;for(;F;){if(F.classList.contains("select-value-container")||F.classList.contains("item-value-container")||F.classList.contains("grouped-single-select-field__value-container")||F.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||F.classList.contains("grouped-single-select-field__input")||F.classList.contains("grouped-single-select-field__menu"))return;F=F.parentElement}H!=null&&u(z.transactionId,H)},M=s.useRef(null),[O,J]=s.useState(void 0),[G,W]=s.useState("bottom");return s.useEffect(()=>{if(O===void 0)return;const E=d?.current?._outerRef??null,z=()=>{const H=M.current;if(H==null||E==null)return;const F=H.getBoundingClientRect(),he=E.getBoundingClientRect(),te=E.scrollTop+(F.bottom-he.top),ee=E.scrollHeight-te;W(ee>=288?"bottom":"top")};return z(),window.addEventListener("resize",z),E?.addEventListener("scroll",z),()=>{window.removeEventListener("resize",z),E?.removeEventListener("scroll",z)}},[d,O]),t.jsxs(Zp,{onMouseEnter:j?void 0:()=>A(!0),onMouseLeave:j?void 0:()=>A(!1),children:[t.jsx(Xp,{className:"categorization-row-card",windowSize:L,isSelected:X,isCompressedMode:j,isHovered:v,children:t.jsx(Qp,{children:q.map((E,z)=>t.jsx(em,{ref:O===z?M:void 0,"data-testid":_("transaction-categorization-list-row",E.lineId),windowSize:L,onClick:H=>K(H,n),children:t.jsx(Gp,{isTransactionActivityEnabled:C,line:E,isHovered:v||X,isSelected:X,isCompressedMode:j,lineIndex:z,sectionId:c,transaction:n,currentTransaction:le,windowSize:L,accountsHierarchyList:N,classHierarchyList:B,allAccountList:P,allClassList:ie,uncategorizedAccounts:U,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:g,vendorLoadOptions:f,customStyle:ge,customStyleAutoComplete:Y,recommendations:E.recommendationsWithCOT,selectedTab:h,isCOTEnabled:l,menuPlacement:G,cotTracking:m,openTooltipId:y,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:S,onDropdownClose:()=>J(void 0),onDropdownOpen:()=>J(z)})},`${n.transactionId}.${E.lineId}`))},n.transactionId)},n.transactionId),C===!0&&t.jsx(xm,{className:"activity-log-icon",onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),onClick:E=>{E.stopPropagation(),k(n.transactionId)},children:t.jsx(we,{title:wt.header.activity,placement:"bottom",children:t.jsx(fm,{style:{color:T?se.colors.primary:se.colors.hero}})})})]})},Gp=({accountsHierarchyList:e,allAccountList:n,allClassList:c,classHierarchyList:r,customStyle:p,customStyleAutoComplete:h,line:i,lineIndex:d,transaction:l,currentTransaction:m,windowSize:u,uncategorizedAccounts:g,isHovered:f=!1,isSelected:y=!1,isCompressedMode:b=!1,sectionId:S,recommendations:k,vendorSearchAutoCompleteData:C,selectedTab:L,isCOTEnabled:j,menuPlacement:v,cotTracking:A,openTooltipId:T,setCurrentTransactionInAction:I,vendorLoadOptions:R,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:D,isTransactionActivityEnabled:V,onDropdownClose:q,onDropdownOpen:P})=>{const{transactionDate:N,transactionType:B,transactionTypeName:ie,memo:U}=l.transactionReviewLocalData,{setValue:re}=Mo(),oe=s.useCallback((Ae,ve)=>{A?.onCOTView!=null&&A.onCOTView(i.lineId,l.transactionId,Ae,ve)},[A,i.lineId,l.transactionId]),X=i.lineDescription,se=s.useMemo(()=>{if(X||U)return[{title:wt.description,description:X||Mn},{title:wt.header.memo,description:U||Mn}]},[U,X]),ge=Et(S,rt,d.toString()),Y=Et(S,Re,d.toString()),le=Et(S,Xe,d.toString()),K=(Ae,ve)=>{if(b)return;let Te;switch(ve){case"vendor":Te=ge;break;case"category":Te=Y;break;case"class":Te=le;break;default:return}re(`${Te}.selectedOption`,Ae,{shouldValidate:!0,shouldDirty:!0})},M=kt(),O=s.useMemo(()=>m!=null&&Wt(m)===!0?{id:l.transactionReviewLocalData.customer?.id??"",logo:l.transactionReviewLocalData.customer?.logo,name:l.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,l.transactionReviewLocalData.customer?.id,l.transactionReviewLocalData.customer?.logo,l.transactionReviewLocalData.customer?.name]),J=s.useMemo(()=>m!=null&&Wt(m)===!0?{id:l.transactionReviewLocalData.vendor?.id??"",logo:l.transactionReviewLocalData.vendor?.logo,name:l.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,l.transactionReviewLocalData.vendor?.id,l.transactionReviewLocalData.vendor?.logo,l.transactionReviewLocalData.vendor?.name]),G=i[Xe]?.classId,W=i[Re]?.qboId??i[Re]?.accountId,E=O?.id,z=J?.id,H=J?.name,[F,he]=s.useState(!G),[te,ee]=s.useState(!W||i[Re]?.qboId!=null&&hn(g,i[Re].qboId,D===!0?["income"]:void 0)===!0),[xe,$e]=s.useState(!z||!E),$=Ae=>k?.find(ve=>ve.vendor?.qboId===Ae||ve.vendor?.id===Ae||ve.vendor?.name===Ae)?.vendor?.reason??"",ne=l.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],be=Es(e,ne),Le=As(r,ne),Pe=Ae=>n.filter(ve=>ve.qboId===Ae)[0]?.qboId,Ne=Ae=>c.filter(ve=>ve.classId===Ae)[0]?.accountingClassNumber??void 0,ye=s.useCallback(Ae=>hn(g,Ae,D===!0?["income"]:void 0),[g,D]),[et,Ge]=s.useState(!1),[Ze,de]=s.useState(!1),[ze,xt]=s.useState(!1),$t=(Ae,ve)=>{I({transactionId:l.transactionId,lineItemId:i.lineId}),R(Ae,ve)},Tt=()=>{$e(!(z||E)),Ge(!1),q?.()},ft=()=>{W&&i[Re]?.qboId!=null&&hn(g,i[Re].qboId,D===!0?["income"]:void 0)===!1?ee(!1):ee(!0),xt(!1),q?.()},Oe=()=>{he(!G),de(!1),q?.()},ue=()=>{b||(z||E)&&(Ge(!0),P?.())},Se=()=>{b||(de(!0),P?.())},pe=()=>{b||(xt(!0),P?.())};s.useEffect(()=>{W&&i[Re]?.qboId!=null&&hn(g,i[Re].qboId,D===!0?["income"]:void 0)===!1?ee(!1):ee(!0)},[W]),s.useEffect(()=>{he(!G)},[G]),s.useEffect(()=>{$e(!(z||E))},[z,E]);const st=l.transactionReviewLocalData.selectedEntity,lt=l.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,je=m!=null&&Wt(m)===!0?st:lt,Ue=s.useMemo(()=>{const Ae=l.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],ve=C.entityAutoCompleteView;return{selectedOption:je?.qboId??je?.id,defaultOptions:Eo(ve,je,Ae??[])}},[je,l.transactionReviewLocalData.lineItemById,i.lineId,C.entityAutoCompleteView]),ln=()=>je!=null&&je.logo!=null?t.jsx($s,{photoUrl:je.logo.toString(),styles:{width:jt.nameLogoWidth.valuePx(u),height:jt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Gi,{children:t.jsx(xn,{name:je.name,size:o.sp4})})}):je!=null&&je.name!=null?t.jsx(Gi,{children:t.jsx(xn,{name:je.name,size:o.sp4})}):null,Zt=(Ae,ve)=>{if(ve==null||!ve)return;let Te=[];return Ae.forEach(Lt=>{Te=Te.concat(Lt.options)}),Te.find(Lt=>Lt.value===ve)?.label??ve},zt=Zt(Le,G),cn=Zt(be,W),tt=L==="review",Yt=Jn("vendor",Ue.defaultOptions,Ue.selectedOption),vn=Jn("category",be,W),Sn=Jn("class",Le,G),ja=Ae=>{const ve=b?ya:Jo(Ae);return ve.map((Te,Lt)=>{const ct=`${l.transactionId}_${Te.key}_${i.lineId}`;if(d>0&&m!=null&&Wt(m)===!0&&Te.key==="vendor")return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);if(d>0&&Te.key==="transaction_type")return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);switch(Te.key){case"activity":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);case"vendor":default:return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[!b&&t.jsx(ro,{isCOTEnabled:j,recommendations:ne,type:"vendor",isFirstColumn:!0,isEnabled:!!je?.isPreFilled,isMisCategorized:Yt,onRecommendationClick:K,selectedValue:z,selectedValueLabel:H,isReviewTab:tt,isAccountOptionDisabled:ye,existingOption:{label:m!=null&&Wt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Wt(m)===!0?m?.vendor?.id:void 0},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(po,{children:xe===!0?t.jsx(uo,{isHovered:f,isCompressedMode:b,children:t.jsxs(lo,{onClick:dt=>{dt.stopPropagation(),!b&&(P?.(),$e(!1),Ge(!0))},"data-testid":_("add-vendor-button",S),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(co,{}),wt.addPayee]})}):et===!0?t.jsx(bt,{onClickAway:Tt,children:t.jsx(pm,{"data-testid":_("vendor-selection-dropdown-container",Et(S,rt,d.toString())),children:t.jsx(Lr,{name:ge,placeholder:wt.addPayee,valueToInfo:$,defaultValue:{selectedOption:Ue.selectedOption,defaultOptions:Ue.defaultOptions},type:"vendor",autoFocus:!xe,style:{width:"100%"},pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:h,menuIsOpen:et,onMenuClose:Tt,registerOptions:{required:!1},loadOptions:$t,showCOT:j,onCOTView:oe,menuPlacement:v})})}):t.jsx(gm,{children:t.jsxs(ho,{isHovered:f,isCompressedMode:b,showOutline:!b&&Yt&&je?.isPreFilled!==!0&&!y&&tt,children:[ln(),t.jsx(hm,{onClick:ue,"data-testid":_("vendor-name-text",S),children:je!=null&&je.name?t.jsx(it,{text:je.name,itemTextStyle:{color:f?M.colors.primary:M.colors.hero}}):t.jsx(mm,{children:Mn})})]})})})]},ct);case"category":{const dt=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[t.jsx(ro,{isCOTEnabled:j,recommendations:ne,type:"category",isFirstColumn:!1,isReviewTab:tt,isEnabled:!!i[Re]?.isPreFilled,isAccountOptionDisabled:ye,isMisCategorized:vn,onRecommendationClick:K,selectedValue:W,selectedValueLabel:cn,existingOption:{label:dt?.account?.accountName,value:dt?.account?.qboId??dt?.account?.accountId},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(po,{children:te===!0?t.jsx(uo,{isHovered:f,children:t.jsxs(lo,{onClick:Bt=>{Bt.stopPropagation(),!b&&(P?.(),ee(!1),xt(!0))},"data-testid":_("category-selection-field",Y),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(co,{}),wt.addCategory]})}):ze===!0?t.jsx(bt,{onClickAway:ft,children:t.jsx(Zi,{isHovered:f,"data-testid":_("category-selection-dropdown-container",Y),children:t.jsx(ii,{name:Y,placeholder:wt.addCategory,valueToId:Bt=>Pe(Bt),type:"category",pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",showCOT:j,defaultValue:{selectedOption:W,allOptions:be},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:ze,autoFocus:!te&&(!W||i[Re]?.qboId!=null&&[g.expense?.qboId,g.income?.qboId].includes(i[Re].qboId)),onMenuClose:ft,customStyleConfig:p,disableCurrentOption:ye,menuPlacement:v,onCOTView:oe})})}):t.jsx(ho,{isHovered:f,showOutline:vn&&i[Re]?.isPreFilled!==!0&&!y&&tt,children:t.jsx(Yi,{onClick:pe,"data-testid":_("category-label-text",Y),children:t.jsx(it,{text:cn??"",itemTextStyle:{color:f?M.colors.primary:M.colors.hero}})})})})]},ct)}case"class":{const dt=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[t.jsx(ro,{isCOTEnabled:j,recommendations:ne,type:"class",isFirstColumn:!1,isReviewTab:tt,isEnabled:!!i[Xe]?.isPreFilled,isAccountOptionDisabled:ye,isMisCategorized:Sn,onRecommendationClick:K,selectedValue:G,selectedValueLabel:zt,existingOption:{label:dt?.class?.className,value:dt?.class?.classId},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(po,{children:F===!0?t.jsx(uo,{isHovered:f,children:t.jsxs(lo,{onClick:Bt=>{Bt.stopPropagation(),!b&&(P?.(),he(!1),de(!0))},"data-testid":_("class-selection-field",le),style:{display:"inline-flex",alignItems:"center",color:Qe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(co,{}),wt.addClass]})}):Ze===!0?t.jsx(bt,{onClickAway:Oe,children:t.jsx(Zi,{isHovered:f,"data-testid":_("class-selection-dropdown-container",le),children:t.jsx(ii,{name:le,placeholder:wt.addClass,valueToId:Bt=>Ne(Bt),type:"class",showCOT:j,defaultValue:{selectedOption:G,allOptions:Le},pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",menuIsOpen:Ze,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!F&&!G,customStyleConfig:p,onMenuClose:Oe,menuPlacement:v,onCOTView:oe})})}):t.jsx(ho,{isHovered:f,showOutline:Sn&&i[Xe]?.isPreFilled!==!0&&!y&&tt,children:t.jsx(Yi,{"data-testid":_("class-selection-field",le),onClick:Se,children:t.jsx(it,{text:zt??"",itemTextStyle:{color:f?M.colors.primary:M.colors.hero}})})})})]},ct)}case"date":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,isLastItem:Lt===ve.length-1,children:t.jsx(Lo,{"data-testid":_("date-field",Et(S,Xe,d.toString())),children:t.jsx(nm,{style:{color:f?M.colors.primary:M.colors.hero},children:N!=null?N.format(Kp.visual.MMMDCommaYYYYformat):null})})})},ct);case"transaction_type":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,"data-testid":_("transaction-type-field",Et(S,Xe,d.toString())),isLastItem:Lt===ve.length-1,children:ie!=null?t.jsx($r,{textColor:f?new Do(M.colors.primary):Tr(void 0,M),text:ie??B}):null})},ct);case"memo":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:Lt===ve.length-1,"data-testid":_("memo-field",Et(S,Xe,d.toString())),children:se!=null?t.jsx(we,{placement:"bottom",data:se,variant:"multi-information-points",children:t.jsx(im,{style:{color:f?M.colors.primary:M.colors.hero}})}):t.jsx(om,{children:Mn})})},ct);case"amount":{const dt=Je("0,0.[00]",i.amount,!0);return t.jsx(nt,{windowSize:u,style:{paddingRight:x[4]},wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,isLastItem:Lt===ve.length-1,children:t.jsx(Lo,{"data-testid":_("transaction-amount-field",Et(S,Xe,d.toString())),style:{color:f?M.colors.primary:M.colors.hero},children:dt})})},ct)}}})};return t.jsx(t.Fragment,{children:ja(V)})},Ki=({isEnabled:e,isReviewTab:n,isMisCategorized:c,hasRecommendations:r,isTooltipVisible:p=!1})=>e?n?p?t.jsx(rm,{}):t.jsx(sm,{}):p?t.jsx(am,{}):t.jsx(lm,{className:"ai-icon-selected-plain"}):!e&&c||r?p?t.jsx(dm,{}):t.jsx(cm,{}):null,Ji=({isFirstColumn:e,children:n})=>t.jsx(va,{isFirstColumn:e,children:n}),ro=({recommendations:e,isCOTEnabled:n,type:c,isReviewTab:r,selectedValueLabel:p,isFirstColumn:h,isEnabled:i=!1,isMisCategorized:d=!1,selectedValue:l,existingOption:m,cotTracking:u,lineId:g,openTooltipId:f,transactionId:y,isAccountOptionDisabled:b,onRecommendationClick:S,setOpenTooltipId:k})=>{const C=s.useMemo(()=>`${y}:${g}:${c}`,[y,g,c]),L=f===C,j=Rr().analytics,{createAlternateRecommendationCallback:v}=Dr(),A=s.useCallback(q=>{const P=e[1],N=e[0];v(c,{currentValue:p??tn,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:y,lineId:g,onCOTView:(B,ie,U,re)=>{u.onCOTView?.(B,ie,U,re)}}:void 0},P,N)(q)},[v,e,p,r,c,u,g,y]),T=Or(e,c,n,m,"list_page",r?"pending_review":"auto_categorized",S,A,l,b),I=Mr(e,c),R=s.useCallback(()=>{k(C);const q=T?.recommendations[0]?.cot??[],P=T?.recommendations[1]?.cot??[],N=P.length>0;if(j.trackTransactionCotView({recommendationFor:c,currentValue:p??tn,recommendation:T?.recommendations[0]?.name??tn,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:T?.recommendations[0]?.reason??tn,recommendationConfidencePercentage:T?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Xo(Qo(T?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:T?.recommendations[1]?.name??tn,alternativeRecommendationCot:P,isAlternativeRecommendationCotAvailable:N,alternativeRecommendationReason:T?.recommendations[1]?.reason??tn,alternativeRecommendationConfidencePercentage:T?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:N?Xo(Qo(T?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const B=Fr(T);B!=null&&u.onCOTView(g,y,c,B)}},[j,T,r,p,c,g,y,C,k]),w=s.useCallback(()=>{f===C&&k(void 0)},[f,C,k]),D=s.useMemo(()=>!l||!I?!1:e.some(q=>c==="vendor"&&q.vendor!=null?q.vendor.id===l||q.vendor.qboId===l:c==="category"&&q.account!=null?q.account.qboId===l||q.account.accountId===l:c==="class"&&q.class!=null?q.class.classId===l:!1),[l,I,e,c]);if(!I)return t.jsx(va,{isFirstColumn:h});const V=i||D;return T?t.jsx(Ji,{isFirstColumn:h,children:t.jsx(we,{variant:"chain-of-thought",data:T,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:L,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:R,onClose:w,children:t.jsx(um,{children:t.jsx(Ki,{isEnabled:V,isReviewTab:r,isMisCategorized:d,hasRecommendations:I,isTooltipVisible:L})})})}):t.jsx(Ji,{isFirstColumn:h,children:t.jsx(Ki,{isEnabled:V,isReviewTab:r,isMisCategorized:d,hasRecommendations:I,isTooltipVisible:L})})},ba=({isTransactionActivityEnabled:e})=>{const n=ke(),c=s.useRef(null),[r,p]=s.useState(0);s.useLayoutEffect(()=>{c.current&&p(c.current.offsetWidth)},[n]);const h=Jo(e);return t.jsx(Yp,{windowSize:n,ref:c,children:h.map((i,d)=>{const l=`${d}${qp}${i.key}`;switch(i.key){case"activity":return t.jsx(nt,{windowSize:n,wrapperWidth:i.width},l);case"vendor":return t.jsx(nt,{windowSize:n,wrapperWidth:i.width,children:t.jsx(an,{windowSize:n,isLastItem:d===h.length-1,children:t.jsxs(Lo,{children:[t.jsx(Fo,{width:x[4],height:x[4]}),t.jsx(Mt,{width:r*i.width.value(n)/100,height:x[4],style:{display:"flex",alignItems:"center"}})]})})},l);default:return t.jsx(nt,{windowSize:n,wrapperWidth:i.width,children:t.jsx(an,{windowSize:n,isLastItem:d===h.length-1,children:t.jsx(Mt,{width:r*i.width.value(n)/100,height:x[4],style:{display:"flex",alignItems:"center"}})})},l)}})})},Zp=a.div`
|
|
1236
|
+
`,ro="expenseAutomationTransactionsPage",Kt="transactionCategorizationListTable",Re="account",Qe="class",rt="lineEntitySelection",Np="lineEntity",Vp="recommendations",wa="lineInfo",Wp="vendorDetails",Hp="customerDetails",Pn="selectedTransactionIds",Et=(e,n,c)=>`${e}.${c}.${n}`,ba=e=>s.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Up=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:qp,hyphen:Mn,empty:tn}},expenseAutomation:{transactions:bt},dateFormat:Kp}=Ie.getLocalizedStrings(),kt={containerPaddingLeftRight:new G(x[3],x[4]),containerPaddingTopBottom:new G(x[1],x[2]),containerPaddingTopBottomEmpty:new G(x[2],x[3]),nameLogoWidth:new G(x[2],x[4]),nameLogoHeight:new G(x[2],x[4])},Jp=({transactionView:e,transaction:n,sectionId:c,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:p,selectedTab:h,containerRef:i,listContainerRef:d,isCOTEnabled:l,cotTracking:m,onTransactionCategorizationRowClick:u,setCurrentTransactionInAction:g,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:S,setActivityLogTransactionId:k,isTransactionActivityEnabled:C})=>{const L=ke(),j=Ft(),[v,A]=s.useState(!1),[T,I]=s.useState(!1),{lineItemById:R,sortedLineItems:w}=n.transactionReviewLocalData,D=n.transactionReviewLocalData.tabSpecificLineItems?.[h]||[],V=w.filter(E=>D.indexOf(E)!==-1),q=[];V.forEach(E=>{q.push(R[E])});const{accountList:P,accountsHierarchyList:N,classHierarchyList:B,classList:ie,uncategorizedAccounts:U,transactions:re,selectedCheckBoxTransactionIds:oe}=e,Q=oe.includes(n.transactionId),se=gt(),ge={control:()=>({marginLeft:-2,backgroundColor:v?se.colors.background:se.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0]}),menu:()=>({width:"150%",background:se.colors.grey5}),singleValue:()=>({color:v||Q?se.colors.primary:se.colors.hero,paddingLeft:x[2]}),input:E=>({...E,color:v||Q?se.colors.primary:se.colors.hero,textAlign:"left",paddingLeft:x[2]}),menuPortal:E=>({...E,zIndex:10})},Y={...ge,singleValue:E=>({...E,color:v||Q?se.colors.primary:se.colors.hero}),menu:()=>({marginTop:x[1],marginLeft:-8}),input:E=>({...E,color:v||Q?se.colors.primary:se.colors.hero,textAlign:"left"})},le=re.find(E=>E.id===n.transactionId),K=(E,_)=>{const{transactionType:H}=_.transactionReviewLocalData;let F=E.target;for(;F;){if(F.classList.contains("select-value-container")||F.classList.contains("item-value-container")||F.classList.contains("grouped-single-select-field__value-container")||F.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||F.classList.contains("grouped-single-select-field__input")||F.classList.contains("grouped-single-select-field__menu"))return;F=F.parentElement}H!=null&&u(_.transactionId,H)},M=s.useRef(null),[O,J]=s.useState(void 0),[Z,W]=s.useState("bottom");return s.useEffect(()=>{if(O===void 0)return;const E=d?.current?._outerRef??null,_=()=>{const H=M.current;if(H==null||E==null)return;const F=H.getBoundingClientRect(),he=E.getBoundingClientRect(),te=E.scrollTop+(F.bottom-he.top),ee=E.scrollHeight-te;W(ee>=288?"bottom":"top")};return _(),window.addEventListener("resize",_),E?.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),E?.removeEventListener("scroll",_)}},[d,O]),t.jsxs(Gp,{onMouseEnter:j?void 0:()=>A(!0),onMouseLeave:j?void 0:()=>A(!1),children:[t.jsx(Qp,{className:"categorization-row-card",windowSize:L,isSelected:Q,isQuickViewMode:j,isHovered:v,children:t.jsx(Xp,{children:q.map((E,_)=>t.jsx(em,{ref:O===_?M:void 0,"data-testid":z("transaction-categorization-list-row",E.lineId),windowSize:L,onClick:H=>K(H,n),children:t.jsx(Zp,{isTransactionActivityEnabled:C,line:E,isHovered:v||Q,isSelected:Q,isQuickViewMode:j,lineIndex:_,sectionId:c,transaction:n,currentTransaction:le,windowSize:L,accountsHierarchyList:N,classHierarchyList:B,allAccountList:P,allClassList:ie,uncategorizedAccounts:U,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:g,vendorLoadOptions:f,customStyle:ge,customStyleAutoComplete:Y,recommendations:E.recommendationsWithCOT,selectedTab:h,isCOTEnabled:l,menuPlacement:Z,cotTracking:m,openTooltipId:y,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:S,onDropdownClose:()=>J(void 0),onDropdownOpen:()=>J(_)})},`${n.transactionId}.${E.lineId}`))},n.transactionId)},n.transactionId),C===!0&&!j&&t.jsx(xm,{className:"activity-log-icon",onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),onClick:E=>{E.stopPropagation(),k(n.transactionId)},children:t.jsx(we,{title:bt.header.activity,placement:"bottom",children:t.jsx(fm,{style:{color:T?se.colors.primary:se.colors.hero}})})})]})},Zp=({accountsHierarchyList:e,allAccountList:n,allClassList:c,classHierarchyList:r,customStyle:p,customStyleAutoComplete:h,line:i,lineIndex:d,transaction:l,currentTransaction:m,windowSize:u,uncategorizedAccounts:g,isHovered:f=!1,isSelected:y=!1,isQuickViewMode:b=!1,sectionId:S,recommendations:k,vendorSearchAutoCompleteData:C,selectedTab:L,isCOTEnabled:j,menuPlacement:v,cotTracking:A,openTooltipId:T,setCurrentTransactionInAction:I,vendorLoadOptions:R,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:D,isTransactionActivityEnabled:V,onDropdownClose:q,onDropdownOpen:P})=>{const{transactionDate:N,transactionType:B,transactionTypeName:ie,memo:U}=l.transactionReviewLocalData,{setValue:re}=Mo(),oe=s.useCallback((Ae,ve)=>{A?.onCOTView!=null&&A.onCOTView(i.lineId,l.transactionId,Ae,ve)},[A,i.lineId,l.transactionId]),Q=i.lineDescription,se=s.useMemo(()=>{if(Q||U)return[{title:bt.description,description:Q||Mn},{title:bt.header.memo,description:U||Mn}]},[U,Q]),ge=Et(S,rt,d.toString()),Y=Et(S,Re,d.toString()),le=Et(S,Qe,d.toString()),K=(Ae,ve)=>{if(b)return;let Te;switch(ve){case"vendor":Te=ge;break;case"category":Te=Y;break;case"class":Te=le;break;default:return}re(`${Te}.selectedOption`,Ae,{shouldValidate:!0,shouldDirty:!0})},M=gt(),O=s.useMemo(()=>m!=null&&Wt(m)===!0?{id:l.transactionReviewLocalData.customer?.id??"",logo:l.transactionReviewLocalData.customer?.logo,name:l.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,l.transactionReviewLocalData.customer?.id,l.transactionReviewLocalData.customer?.logo,l.transactionReviewLocalData.customer?.name]),J=s.useMemo(()=>m!=null&&Wt(m)===!0?{id:l.transactionReviewLocalData.vendor?.id??"",logo:l.transactionReviewLocalData.vendor?.logo,name:l.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,l.transactionReviewLocalData.vendor?.id,l.transactionReviewLocalData.vendor?.logo,l.transactionReviewLocalData.vendor?.name]),Z=i[Qe]?.classId,W=i[Re]?.qboId??i[Re]?.accountId,E=O?.id,_=J?.id,H=J?.name,[F,he]=s.useState(!Z),[te,ee]=s.useState(!W||i[Re]?.qboId!=null&&pn(g,i[Re].qboId,D===!0?["income"]:void 0)===!0),[xe,$e]=s.useState(!_||!E),$=Ae=>k?.find(ve=>ve.vendor?.qboId===Ae||ve.vendor?.id===Ae||ve.vendor?.name===Ae)?.vendor?.reason??"",ne=l.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],be=Es(e,ne),Le=As(r,ne),Be=Ae=>n.filter(ve=>ve.qboId===Ae)[0]?.qboId,Pe=Ae=>c.filter(ve=>ve.classId===Ae)[0]?.accountingClassNumber??void 0,ye=s.useCallback(Ae=>pn(g,Ae,D===!0?["income"]:void 0),[g,D]),[et,Ze]=s.useState(!1),[Ge,de]=s.useState(!1),[ze,ft]=s.useState(!1),$t=(Ae,ve)=>{I({transactionId:l.transactionId,lineItemId:i.lineId}),R(Ae,ve)},Tt=()=>{$e(!(_||E)),Ze(!1),q?.()},yt=()=>{W&&i[Re]?.qboId!=null&&pn(g,i[Re].qboId,D===!0?["income"]:void 0)===!1?ee(!1):ee(!0),ft(!1),q?.()},De=()=>{he(!Z),de(!1),q?.()},ue=()=>{b||(_||E)&&(Ze(!0),P?.())},Se=()=>{b||(de(!0),P?.())},pe=()=>{b||(ft(!0),P?.())};s.useEffect(()=>{W&&i[Re]?.qboId!=null&&pn(g,i[Re].qboId,D===!0?["income"]:void 0)===!1?ee(!1):ee(!0)},[W]),s.useEffect(()=>{he(!Z)},[Z]),s.useEffect(()=>{$e(!(_||E))},[_,E]);const st=l.transactionReviewLocalData.selectedEntity,lt=l.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,je=m!=null&&Wt(m)===!0?st:lt,Ue=s.useMemo(()=>{const Ae=l.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],ve=C.entityAutoCompleteView;return{selectedOption:je?.qboId??je?.id,defaultOptions:Ro(ve,je,Ae??[])}},[je,l.transactionReviewLocalData.lineItemById,i.lineId,C.entityAutoCompleteView]),cn=()=>je!=null&&je.logo!=null?t.jsx($s,{photoUrl:je.logo.toString(),styles:{width:kt.nameLogoWidth.valuePx(u),height:kt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Zi,{children:t.jsx(xn,{name:je.name,size:o.sp4})})}):je!=null&&je.name!=null?t.jsx(Zi,{children:t.jsx(xn,{name:je.name,size:o.sp4})}):null,Gt=(Ae,ve)=>{if(ve==null||!ve)return;let Te=[];return Ae.forEach(Lt=>{Te=Te.concat(Lt.options)}),Te.find(Lt=>Lt.value===ve)?.label??ve},_t=Gt(Le,Z),dn=Gt(be,W),tt=L==="review",Yt=Zn("vendor",Ue.defaultOptions,Ue.selectedOption),vn=Zn("category",be,W),Sn=Zn("class",Le,Z),ka=Ae=>{const ve=b?ya:Jo(Ae);return ve.map((Te,Lt)=>{const ct=`${l.transactionId}_${Te.key}_${i.lineId}`;if(d>0&&m!=null&&Wt(m)===!0&&Te.key==="vendor")return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);if(d>0&&Te.key==="transaction_type")return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);switch(Te.key){case"activity":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width},ct);case"vendor":default:return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[!b&&t.jsx(lo,{isCOTEnabled:j,recommendations:ne,type:"vendor",isFirstColumn:!0,isEnabled:!!je?.isPreFilled,isMisCategorized:Yt,onRecommendationClick:K,selectedValue:_,selectedValueLabel:H,isReviewTab:tt,isAccountOptionDisabled:ye,existingOption:{label:m!=null&&Wt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Wt(m)===!0?m?.vendor?.id:void 0},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(mo,{children:xe===!0?t.jsx(ho,{isHovered:f,isQuickViewMode:b,children:t.jsxs(co,{onClick:dt=>{dt.stopPropagation(),!b&&(P?.(),$e(!1),Ze(!0))},"data-testid":z("add-vendor-button",S),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(uo,{}),bt.addPayee]})}):et===!0?t.jsx(vt,{onClickAway:Tt,children:t.jsx(pm,{"data-testid":z("vendor-selection-dropdown-container",Et(S,rt,d.toString())),children:t.jsx(Ar,{name:ge,placeholder:bt.addPayee,valueToInfo:$,defaultValue:{selectedOption:Ue.selectedOption,defaultOptions:Ue.defaultOptions},type:"vendor",autoFocus:!xe,style:{width:"100%"},pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:h,menuIsOpen:et,onMenuClose:Tt,registerOptions:{required:!1},loadOptions:$t,showCOT:j,onCOTView:oe,menuPlacement:v})})}):t.jsx(gm,{children:t.jsxs(po,{isHovered:f,isQuickViewMode:b,showOutline:!b&&Yt&&je?.isPreFilled!==!0&&!y&&tt,children:[cn(),t.jsx(hm,{onClick:ue,"data-testid":z("vendor-name-text",S),children:je!=null&&je.name?t.jsx(it,{text:je.name,itemTextStyle:{color:f?M.colors.primary:M.colors.hero}}):t.jsx(mm,{children:Mn})})]})})})]},ct);case"category":{const dt=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[t.jsx(lo,{isCOTEnabled:j,recommendations:ne,type:"category",isFirstColumn:!1,isReviewTab:tt,isEnabled:!!i[Re]?.isPreFilled,isAccountOptionDisabled:ye,isMisCategorized:vn,onRecommendationClick:K,selectedValue:W,selectedValueLabel:dn,existingOption:{label:dt?.account?.accountName,value:dt?.account?.qboId??dt?.account?.accountId},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(mo,{children:te===!0?t.jsx(ho,{isHovered:f,children:t.jsxs(co,{onClick:Bt=>{Bt.stopPropagation(),!b&&(P?.(),ee(!1),ft(!0))},"data-testid":z("category-selection-field",Y),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(uo,{}),bt.addCategory]})}):ze===!0?t.jsx(vt,{onClickAway:yt,children:t.jsx(Gi,{isHovered:f,"data-testid":z("category-selection-dropdown-container",Y),children:t.jsx(ii,{name:Y,placeholder:bt.addCategory,valueToId:Bt=>Be(Bt),type:"category",pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",showCOT:j,defaultValue:{selectedOption:W,allOptions:be},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:ze,autoFocus:!te&&(!W||i[Re]?.qboId!=null&&[g.expense?.qboId,g.income?.qboId].includes(i[Re].qboId)),onMenuClose:yt,customStyleConfig:p,disableCurrentOption:ye,menuPlacement:v,onCOTView:oe})})}):t.jsx(po,{isHovered:f,showOutline:vn&&i[Re]?.isPreFilled!==!0&&!y&&tt,children:t.jsx(Yi,{onClick:pe,"data-testid":z("category-label-text",Y),children:t.jsx(it,{text:dn??"",itemTextStyle:{color:f?M.colors.primary:M.colors.hero}})})})})]},ct)}case"class":{const dt=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:Te.width,className:"item-value-container",children:[t.jsx(lo,{isCOTEnabled:j,recommendations:ne,type:"class",isFirstColumn:!1,isReviewTab:tt,isEnabled:!!i[Qe]?.isPreFilled,isAccountOptionDisabled:ye,isMisCategorized:Sn,onRecommendationClick:K,selectedValue:Z,selectedValueLabel:_t,existingOption:{label:dt?.class?.className,value:dt?.class?.classId},cotTracking:A,lineId:i.lineId,transactionId:l.transactionId,openTooltipId:T,setOpenTooltipId:w}),t.jsx(mo,{children:F===!0?t.jsx(ho,{isHovered:f,children:t.jsxs(co,{onClick:Bt=>{Bt.stopPropagation(),!b&&(P?.(),he(!1),de(!0))},"data-testid":z("class-selection-field",le),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(uo,{}),bt.addClass]})}):Ge===!0?t.jsx(vt,{onClickAway:De,children:t.jsx(Gi,{isHovered:f,"data-testid":z("class-selection-dropdown-container",le),children:t.jsx(ii,{name:le,placeholder:bt.addClass,valueToId:Bt=>Pe(Bt),type:"class",showCOT:j,defaultValue:{selectedOption:Z,allOptions:Le},pageSource:"list_page",transactionStatus:tt?"pending_review":"auto_categorized",menuIsOpen:Ge,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!F&&!Z,customStyleConfig:p,onMenuClose:De,menuPlacement:v,onCOTView:oe})})}):t.jsx(po,{isHovered:f,showOutline:Sn&&i[Qe]?.isPreFilled!==!0&&!y&&tt,children:t.jsx(Yi,{"data-testid":z("class-selection-field",le),onClick:Se,children:t.jsx(it,{text:_t??"",itemTextStyle:{color:f?M.colors.primary:M.colors.hero}})})})})]},ct)}case"date":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,isLastItem:Lt===ve.length-1,children:t.jsx(Ao,{"data-testid":z("date-field",Et(S,Qe,d.toString())),children:t.jsx(nm,{style:{color:f?M.colors.primary:M.colors.hero},children:N!=null?N.format(Kp.visual.MMMDCommaYYYYformat):null})})})},ct);case"transaction_type":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,"data-testid":z("transaction-type-field",Et(S,Qe,d.toString())),isLastItem:Lt===ve.length-1,children:ie!=null?t.jsx(Tr,{textColor:f?new Oo(M.colors.primary):Lr(void 0,M),text:ie??B}):null})},ct);case"memo":return t.jsx(nt,{windowSize:u,wrapperWidth:Te.width,children:t.jsx(an,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:Lt===ve.length-1,"data-testid":z("memo-field",Et(S,Qe,d.toString())),children:se!=null?t.jsx(we,{placement:"bottom",data:se,variant:"multi-information-points",children:t.jsx(im,{style:{color:f?M.colors.primary:M.colors.hero}})}):t.jsx(om,{children:Mn})})},ct);case"amount":{const dt=Je("0,0.[00]",i.amount,!0);return t.jsx(nt,{windowSize:u,style:{paddingRight:x[4]},wrapperWidth:Te.width,children:t.jsx(an,{windowSize:u,isLastItem:Lt===ve.length-1,children:t.jsx(Ao,{"data-testid":z("transaction-amount-field",Et(S,Qe,d.toString())),style:{color:f?M.colors.primary:M.colors.hero},children:dt})})},ct)}}})};return t.jsx(t.Fragment,{children:ka(V)})},Ki=({isEnabled:e,isReviewTab:n,isMisCategorized:c,hasRecommendations:r,isTooltipVisible:p=!1})=>e?n?p?t.jsx(rm,{}):t.jsx(sm,{}):p?t.jsx(am,{}):t.jsx(lm,{className:"ai-icon-selected-plain"}):!e&&c||r?p?t.jsx(dm,{}):t.jsx(cm,{}):null,Ji=({isFirstColumn:e,children:n})=>t.jsx(Sa,{isFirstColumn:e,children:n}),lo=({recommendations:e,isCOTEnabled:n,type:c,isReviewTab:r,selectedValueLabel:p,isFirstColumn:h,isEnabled:i=!1,isMisCategorized:d=!1,selectedValue:l,existingOption:m,cotTracking:u,lineId:g,openTooltipId:f,transactionId:y,isAccountOptionDisabled:b,onRecommendationClick:S,setOpenTooltipId:k})=>{const C=s.useMemo(()=>`${y}:${g}:${c}`,[y,g,c]),L=f===C,j=Dr().analytics,{createAlternateRecommendationCallback:v}=Or(),A=s.useCallback(q=>{const P=e[1],N=e[0];v(c,{currentValue:p??tn,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:y,lineId:g,onCOTView:(B,ie,U,re)=>{u.onCOTView?.(B,ie,U,re)}}:void 0},P,N)(q)},[v,e,p,r,c,u,g,y]),T=Mr(e,c,n,m,"list_page",r?"pending_review":"auto_categorized",S,A,l,b),I=Fr(e,c),R=s.useCallback(()=>{k(C);const q=T?.recommendations[0]?.cot??[],P=T?.recommendations[1]?.cot??[],N=P.length>0;if(j.trackTransactionCotView({recommendationFor:c,currentValue:p??tn,recommendation:T?.recommendations[0]?.name??tn,recommendationCot:q,isRecommendationCotAvailable:q.length>0,recommendationReason:T?.recommendations[0]?.reason??tn,recommendationConfidencePercentage:T?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Qo(Xo(T?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:T?.recommendations[1]?.name??tn,alternativeRecommendationCot:P,isAlternativeRecommendationCotAvailable:N,alternativeRecommendationReason:T?.recommendations[1]?.reason??tn,alternativeRecommendationConfidencePercentage:T?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:N?Qo(Xo(T?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const B=zr(T);B!=null&&u.onCOTView(g,y,c,B)}},[j,T,r,p,c,g,y,C,k]),w=s.useCallback(()=>{f===C&&k(void 0)},[f,C,k]),D=s.useMemo(()=>!l||!I?!1:e.some(q=>c==="vendor"&&q.vendor!=null?q.vendor.id===l||q.vendor.qboId===l:c==="category"&&q.account!=null?q.account.qboId===l||q.account.accountId===l:c==="class"&&q.class!=null?q.class.classId===l:!1),[l,I,e,c]);if(!I)return t.jsx(Sa,{isFirstColumn:h});const V=i||D;return T?t.jsx(Ji,{isFirstColumn:h,children:t.jsx(we,{variant:"chain-of-thought",data:T,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:L,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:R,onClose:w,children:t.jsx(um,{children:t.jsx(Ki,{isEnabled:V,isReviewTab:r,isMisCategorized:d,hasRecommendations:I,isTooltipVisible:L})})})}):t.jsx(Ji,{isFirstColumn:h,children:t.jsx(Ki,{isEnabled:V,isReviewTab:r,isMisCategorized:d,hasRecommendations:I,isTooltipVisible:L})})},va=({isTransactionActivityEnabled:e})=>{const n=ke(),c=s.useRef(null),[r,p]=s.useState(0);s.useLayoutEffect(()=>{c.current&&p(c.current.offsetWidth)},[n]);const h=Jo(e);return t.jsx(Yp,{windowSize:n,ref:c,children:h.map((i,d)=>{const l=`${d}${qp}${i.key}`;switch(i.key){case"activity":return t.jsx(nt,{windowSize:n,wrapperWidth:i.width},l);case"vendor":return t.jsx(nt,{windowSize:n,wrapperWidth:i.width,children:t.jsx(an,{windowSize:n,isLastItem:d===h.length-1,children:t.jsxs(Ao,{children:[t.jsx(Fo,{width:x[4],height:x[4]}),t.jsx(Mt,{width:r*i.width.value(n)/100,height:x[4],style:{display:"flex",alignItems:"center"}})]})})},l);default:return t.jsx(nt,{windowSize:n,wrapperWidth:i.width,children:t.jsx(an,{windowSize:n,isLastItem:d===h.length-1,children:t.jsx(Mt,{width:r*i.width.value(n)/100,height:x[4],style:{display:"flex",alignItems:"center"}})})},l)}})})},Gp=a.div`
|
|
1241
1237
|
display: flex;
|
|
1242
1238
|
height: 100%;
|
|
1243
1239
|
flex: 1;
|
|
@@ -1249,10 +1245,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1249
1245
|
`,Yp=a.div`
|
|
1250
1246
|
display: flex;
|
|
1251
1247
|
background-color: ${e=>e.theme.colors.grey5};
|
|
1252
|
-
padding-left: ${e=>
|
|
1253
|
-
padding-right: ${e=>
|
|
1254
|
-
padding-top: ${e=>
|
|
1255
|
-
padding-bottom: ${e=>
|
|
1248
|
+
padding-left: ${e=>kt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1249
|
+
padding-right: ${e=>kt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1250
|
+
padding-top: ${e=>kt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1251
|
+
padding-bottom: ${e=>kt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1256
1252
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1257
1253
|
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1258
1254
|
border-radius: ${o.sp2};
|
|
@@ -1265,7 +1261,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1265
1261
|
box-sizing: border-box;
|
|
1266
1262
|
align-items: center;
|
|
1267
1263
|
justify-content: space-between;
|
|
1268
|
-
`,
|
|
1264
|
+
`,Qp=a.div`
|
|
1269
1265
|
display: flex;
|
|
1270
1266
|
height: 100%;
|
|
1271
1267
|
flex: 1;
|
|
@@ -1276,14 +1272,12 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1276
1272
|
color: ${e=>e.theme.colors.hero};
|
|
1277
1273
|
border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
|
|
1278
1274
|
cursor: pointer;
|
|
1279
|
-
${e=>e.
|
|
1280
|
-
padding-left: ${
|
|
1281
|
-
`}
|
|
1282
|
-
${e=>!e.isCompressedMode&&De`
|
|
1283
|
-
&:hover {
|
|
1284
|
-
border-color: ${e.theme.colors.primary};
|
|
1285
|
-
}
|
|
1275
|
+
${e=>e.isQuickViewMode&&Ve`
|
|
1276
|
+
padding-left: ${kt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1286
1277
|
`}
|
|
1278
|
+
&:hover {
|
|
1279
|
+
border-color: ${e=>e.theme.colors.primary};
|
|
1280
|
+
}
|
|
1287
1281
|
|
|
1288
1282
|
box-sizing: border-box;
|
|
1289
1283
|
align-items: center;
|
|
@@ -1293,12 +1287,12 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1293
1287
|
color: ${e=>e.theme.colors.hero};
|
|
1294
1288
|
}
|
|
1295
1289
|
|
|
1296
|
-
${({isHovered:e,theme:n})=>e?
|
|
1290
|
+
${({isHovered:e,theme:n})=>e?Ve`
|
|
1297
1291
|
.ai-icon-selected-plain {
|
|
1298
1292
|
color: ${n.colors.primary};
|
|
1299
1293
|
}
|
|
1300
1294
|
`:null};
|
|
1301
|
-
`,
|
|
1295
|
+
`,Xp=a.div`
|
|
1302
1296
|
display: flex;
|
|
1303
1297
|
flex: 1;
|
|
1304
1298
|
flex-direction: column;
|
|
@@ -1314,8 +1308,8 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1314
1308
|
align-items: center;
|
|
1315
1309
|
justify-content: space-between;
|
|
1316
1310
|
height: ${o.sp8};
|
|
1317
|
-
padding-top: ${e=>
|
|
1318
|
-
padding-bottom: ${e=>
|
|
1311
|
+
padding-top: ${e=>kt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1312
|
+
padding-bottom: ${e=>kt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1319
1313
|
`,nt=a.div`
|
|
1320
1314
|
display: flex;
|
|
1321
1315
|
align-items: center;
|
|
@@ -1326,7 +1320,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1326
1320
|
:last-of-type {
|
|
1327
1321
|
padding-right: ${o.sp0};
|
|
1328
1322
|
}
|
|
1329
|
-
`,tm=
|
|
1323
|
+
`,tm=Ve`
|
|
1330
1324
|
word-break: break-word;
|
|
1331
1325
|
white-space: nowrap;
|
|
1332
1326
|
-webkit-line-clamp: 1;
|
|
@@ -1334,23 +1328,23 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1334
1328
|
overflow: hidden;
|
|
1335
1329
|
text-overflow: ellipsis;
|
|
1336
1330
|
display: -webkit-box;
|
|
1337
|
-
`,an=a(
|
|
1331
|
+
`,an=a(_e)`
|
|
1338
1332
|
overflow: hidden;
|
|
1339
1333
|
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1340
1334
|
display: flex;
|
|
1341
1335
|
width: 100%;
|
|
1342
1336
|
align-items: center;
|
|
1343
|
-
`,
|
|
1337
|
+
`,Ao=a.div`
|
|
1344
1338
|
display: flex;
|
|
1345
1339
|
flex-direction: row;
|
|
1346
1340
|
column-gap: ${o.sp2};
|
|
1347
1341
|
align-items: center;
|
|
1348
|
-
`,nm=a(
|
|
1342
|
+
`,nm=a(_e)`
|
|
1349
1343
|
${tm};
|
|
1350
1344
|
color: ${e=>e.theme.colors.hero};
|
|
1351
|
-
`,
|
|
1345
|
+
`,co=a(_e)`
|
|
1352
1346
|
color: ${e=>e.theme.colors.hero};
|
|
1353
|
-
`,
|
|
1347
|
+
`,uo=a(qn)`
|
|
1354
1348
|
width: ${o.sp3};
|
|
1355
1349
|
height: ${o.sp3};
|
|
1356
1350
|
margin: ${o.sp1};
|
|
@@ -1360,16 +1354,16 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1360
1354
|
width: ${o.sp3};
|
|
1361
1355
|
height: ${o.sp3};
|
|
1362
1356
|
margin-left: 10px;
|
|
1363
|
-
`,sm=a(
|
|
1357
|
+
`,sm=a(Nr)`
|
|
1364
1358
|
width: ${o.sp5};
|
|
1365
1359
|
height: ${o.sp5};
|
|
1366
|
-
`,am=a(
|
|
1360
|
+
`,am=a(nl)`
|
|
1367
1361
|
width: ${o.sp5};
|
|
1368
1362
|
height: ${o.sp5};
|
|
1369
|
-
`,rm=a(
|
|
1363
|
+
`,rm=a(Pr)`
|
|
1370
1364
|
width: ${o.sp5};
|
|
1371
1365
|
height: ${o.sp5};
|
|
1372
|
-
`,lm=a(
|
|
1366
|
+
`,lm=a(ol)`
|
|
1373
1367
|
width: ${o.sp5};
|
|
1374
1368
|
height: ${o.sp5};
|
|
1375
1369
|
`,cm=a(bn)`
|
|
@@ -1378,10 +1372,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1378
1372
|
path {
|
|
1379
1373
|
stroke-width: 2;
|
|
1380
1374
|
}
|
|
1381
|
-
`,dm=a(
|
|
1375
|
+
`,dm=a(Vr)`
|
|
1382
1376
|
width: ${o.sp3};
|
|
1383
1377
|
height: ${o.sp3};
|
|
1384
|
-
`,
|
|
1378
|
+
`,Sa=a.div`
|
|
1385
1379
|
display: flex;
|
|
1386
1380
|
align-items: center;
|
|
1387
1381
|
justify-content: center;
|
|
@@ -1394,7 +1388,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1394
1388
|
justify-content: center;
|
|
1395
1389
|
width: auto;
|
|
1396
1390
|
cursor: pointer;
|
|
1397
|
-
`,hm=a(
|
|
1391
|
+
`,hm=a(_e)`
|
|
1398
1392
|
display: flex;
|
|
1399
1393
|
max-width: calc(100% - ${o.sp6});
|
|
1400
1394
|
flex: 1 1 auto;
|
|
@@ -1403,7 +1397,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1403
1397
|
align-items: center;
|
|
1404
1398
|
overflow: hidden;
|
|
1405
1399
|
display: flex;
|
|
1406
|
-
`,
|
|
1400
|
+
`,Zi=a.div`
|
|
1407
1401
|
display: flex;
|
|
1408
1402
|
`,pm=a.div`
|
|
1409
1403
|
width: 100%;
|
|
@@ -1414,13 +1408,13 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1414
1408
|
display: flex;
|
|
1415
1409
|
align-items: center;
|
|
1416
1410
|
flex-direction: row;
|
|
1417
|
-
`,
|
|
1411
|
+
`,ho=a.div`
|
|
1418
1412
|
padding: ${o.sp0} ${o.sp2};
|
|
1419
1413
|
border-radius: ${o.sp1};
|
|
1420
1414
|
margin-left: ${o.sp0};
|
|
1421
1415
|
width: 100%;
|
|
1422
|
-
background-color: ${e=>e.
|
|
1423
|
-
`,
|
|
1416
|
+
background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
1417
|
+
`,Gi=a.div`
|
|
1424
1418
|
width: 100%;
|
|
1425
1419
|
border-radius: ${o.sp1};
|
|
1426
1420
|
padding-left: 2px;
|
|
@@ -1429,11 +1423,11 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1429
1423
|
display: flex;
|
|
1430
1424
|
align-items: center;
|
|
1431
1425
|
flex-direction: row;
|
|
1432
|
-
`,mm=a(
|
|
1426
|
+
`,mm=a(_e)``,gm=a.div`
|
|
1433
1427
|
width: 100%;
|
|
1434
1428
|
display: flex;
|
|
1435
1429
|
padding-left: ${o.sp0};
|
|
1436
|
-
`,
|
|
1430
|
+
`,po=a.div`
|
|
1437
1431
|
width: 100%;
|
|
1438
1432
|
display: flex;
|
|
1439
1433
|
flex-direction: row;
|
|
@@ -1442,10 +1436,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1442
1436
|
padding: ${o.sp2};
|
|
1443
1437
|
padding-left: ${o.sp2};
|
|
1444
1438
|
border-radius: ${o.sp1};
|
|
1445
|
-
background-color: ${e=>e.
|
|
1439
|
+
background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
1446
1440
|
outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
|
|
1447
1441
|
outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
|
|
1448
|
-
`,Yi=a.div``,
|
|
1442
|
+
`,Yi=a.div``,mo=a.div`
|
|
1449
1443
|
display: flex;
|
|
1450
1444
|
align-items: center;
|
|
1451
1445
|
width: calc(100% - ${o.sp5});
|
|
@@ -1457,10 +1451,10 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1457
1451
|
visibility: hidden;
|
|
1458
1452
|
flex-shrink: 0;
|
|
1459
1453
|
margin-left: ${o.sp3};
|
|
1460
|
-
`,fm=a(
|
|
1454
|
+
`,fm=a(ba)`
|
|
1461
1455
|
width: ${o.sp3};
|
|
1462
1456
|
height: ${o.sp3};
|
|
1463
|
-
`,ym=({sortConfig:e,fetchState:n,isDisabled:c,isTransactionActivityEnabled:r,onColumnSortConfigChanged:p})=>{const h=ke();return t.jsxs(Cm,{windowSize:h,children:[t.jsx(Ca,{isTransactionActivityEnabled:r,sortConfig:e,isDisabled:n==="In-Progress"?"readonly":c,onColumnSortConfigChanged:p,"data-testid":
|
|
1457
|
+
`,ym=({sortConfig:e,fetchState:n,isDisabled:c,isTransactionActivityEnabled:r,onColumnSortConfigChanged:p})=>{const h=ke();return t.jsxs(Cm,{windowSize:h,children:[t.jsx(Ca,{isTransactionActivityEnabled:r,sortConfig:e,isDisabled:n==="In-Progress"?"readonly":c,onColumnSortConfigChanged:p,"data-testid":z("transaction-categorization-list-empty-table-header")}),t.jsx(wm,{windowSize:h,"data-testid":z("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((i,d)=>t.jsx(va,{isTransactionActivityEnabled:r,"data-testid":z("transaction-categorization-list-empty-row",d.toString())},d))})]})},Cm=a.div`
|
|
1464
1458
|
display: block;
|
|
1465
1459
|
min-height: 100%;
|
|
1466
1460
|
flex-direction: column;
|
|
@@ -1473,11 +1467,11 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1473
1467
|
min-height: 100%;
|
|
1474
1468
|
flex-direction: column;
|
|
1475
1469
|
row-gap: ${o.sp3};
|
|
1476
|
-
`,{common:bm,transactionDetail:{notCategorizedTooltipText:vm}}=Ie.getLocalizedStrings(),
|
|
1470
|
+
`,{common:bm,transactionDetail:{notCategorizedTooltipText:vm}}=Ie.getLocalizedStrings(),go={rowGap:new G(x[0],x[2],x[3])},Sm=({selectedTab:e,transactionView:n,receiptUploadEndpoint:c,authParams:r,sectionId:p,isCOTEnabled:h,isDisabled:i,vendorSearchAutoCompleteActions:d,isTransactionActivityEnabled:l,vendorSearchAutoCompleteData:m,setCurrentTransactionInAction:u,vendorLoadOptions:g,onTransactionCategorizationRowClick:f,onUpdateTransactionCategorizationUIState:y,onUpdateScrollYOffSetTransactionCategorizationUIState:b,onFetchTransactionCategorizationList:S,containerRef:k,cotTracking:C,isUncategorizedExpenseCategoryEnabled:L,setActivityLogTransactionId:j})=>{const v=ke(),A=Ft(),[T,I]=s.useState(void 0),{fetchState:R,uiState:w,transactionLocalData:D,selectedCheckBoxTransactionIds:V,transactionIdsWithUnsavedData:q,transactions:P,uncategorizedAccounts:N}=n;Cn({componentName:`expense_automation.transaction_categorization.${e}`,enabled:R==="Completed"});const B=s.useRef(null),ie=s.useRef({}),{control:U}=Mo();s.useEffect(()=>{B.current?.resetAfterIndex(0,!0)},[v,B,D]),s.useEffect(()=>{B.current?.scrollTo(w.scrollPosition?.scrollTop??0)},[e]);const re=s.useCallback(F=>{if(ie.current?.[F]!=null){const ee=v==="small"&&w.pageToken==null&&F===D.length-1?go.rowGap.value("medium-regular"):go.rowGap.value(v);return ie.current[F]+ee}if(D[F]==null)return 0;const he=D[F].transactionReviewLocalData,te=Object.keys(he.lineItemById).length;return te!=null&&!isNaN(te)&&te>1?Ui*te+go.rowGap.value(v)*(te-1):Ui},[D,v,w.pageToken,w.sortKey,w.sortOrder]),oe=s.useCallback((F,he)=>{ie.current={...ie.current,[F]:he},B.current?.resetAfterIndex(0,!0)},[v,B,D,w.sortKey,w.sortOrder]),Q=s.useCallback(()=>{(w.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&S(e,w.searchString,!0,w.pageToken,!0,!1)},[n.refreshStatus.fetchState,S,e,w.pageToken,w.searchString,w.sortKey,w.sortOrder]),se=s.useCallback(()=>{w.pageToken!=null&&Q()},[Q,w.pageToken,w.sortKey,w.sortOrder]),ge=xr(F=>b(e,{scrollPosition:{scrollTop:F}}),1e3,{trailing:!0}),Y=F=>F<n.transactionLocalData.length,le=(F,he)=>{y(e,{sortOrder:he,sortKey:F}),S(e,w.searchString,!1,null,!1,!0)},K=F=>{if(e==="autoCategorized")return!V.includes(F);const he=D.find(ee=>ee.transactionId===F)?.transactionReviewLocalData,te=P.find(ee=>ee.id===F);return te!=null&&he!=null?Qr(te,he,N,L)?L===!0&&ni(N,he.lineItemById,["expense"])?q.includes(F)===!1:!1:!0:V.length===0?!0:!V.includes(F)};let M=[],O=[];(R==="Completed"||n.transactionLocalData.length>0)&&(O=n.transactionLocalData.map((F,he)=>{const te=K(F.transactionId);let ee=!1;L===!0&&te===!0&&e==="review"&&ni(N,F.transactionReviewLocalData.lineItemById,["expense"])&&(ee=!q.includes(F.transactionId));const xe=F.transactionReviewLocalData;return{label:t.jsx(Jp,{isTransactionActivityEnabled:l,transactionView:n,sectionId:`${p}.${he}.${wa}`,transaction:F,receiptUploadEndpoint:c,authParams:r,onTransactionCategorizationRowClick:f,vendorLoadOptions:g,setCurrentTransactionInAction:u,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:m,selectedTab:e,containerRef:k,listContainerRef:B,isCOTEnabled:h,cotTracking:C,openTooltipId:T,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:L,setActivityLogTransactionId:j},`${F.transactionId}.${xe.transactionType}`),value:F.transactionId,defaultChecked:!1,groupLabel:!1,isException:ee,exceptionMode:ee===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:te===!0?"readonly":void 0,exceptionType:ee===!0?"alert":void 0,exceptionInfo:ee===!0?vm:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),M=O.map(F=>F.value));const J={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:Z,subTitle:W}=He("transaction_categorization").allDoneText,E=D.map(F=>F.transactionId),_=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),H=s.useMemo(()=>D.reduce((F,he)=>{const te=Object.keys(he.transactionReviewLocalData.lineItemById).length;return F+(te>0?te:1)},0)<n.totalCountByTab[e]?D.length+1:D.length,[D,n.totalCountByTab,e]);return t.jsx(Tm,{windowSize:v,"data-testid":z("transaction-categorization-list-wrapper"),children:t.jsx(Lm,{windowSize:v,"data-testid":z("transaction-categorization-list-container"),children:R==="Error"?t.jsxs(Em,{windowSize:v,"data-testid":z("transaction-categorization-reload-page"),children:[t.jsx(Rm,{onClick:()=>S(e,void 0,!0,null,!1,!0),"data-testid":z("transaction-categorization-reload-icon"),children:t.jsx(Eo,{})}),t.jsx(Dm,{"data-testid":z("transaction-categorization-reload-label"),children:bm.reloadPage.label})]}):R==="Completed"&&D.length===0?t.jsx(jt,{tab:"transaction_categorization",title:Z,subTitle:W,"data-testid":z("transaction-categorization-empty-table-section")}):R==="Not-Started"||R==="In-Progress"&&D.length===0?t.jsx(ym,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},fetchState:R,onColumnSortConfigChanged:le,"data-testid":z("transaction-categorization-list-empty-table"),isTransactionActivityEnabled:l}):t.jsx(Am,{windowSize:v,"data-testid":z("transaction-categorization-list-view"),children:t.jsx(Is,{control:U,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:F,ref:he,onChange:te}})=>t.jsx(ja.Provider,{value:{value:F,mode:"off",allCheckBoxValues:M,index:0,isQuickViewMode:A,sortKey:w.sortKey,sortOrder:w.sortOrder,fetchState:R,isDisabled:i,groupLabelCheckBox:J,isTransactionActivityEnabled:l,onColumnSortConfigChanged:le,ref:he,onChange:te,selectedTab:e},children:t.jsx(Vn,{children:({height:ee,width:xe})=>t.jsx(fr,{isItemLoaded:Y,itemCount:_,loadMoreItems:se,children:({onItemsRendered:$e,ref:$})=>t.jsx(Wn,{ref:ne=>{$(ne),B.current=ne},height:ee,itemCount:H,itemKey:ne=>`${D[ne]?.transactionId??""}-row-${ne}`,innerElementType:jm,onItemsRendered:$e,width:xe,style:{willChange:"auto"},overscanCount:yp,itemSize:re,itemData:{checkboxes:O,value:F,allCheckBoxValues:M,groupLabelCheckBox:J,categorizationGroupValue:E,transactionLocalData:D,isQuickViewMode:A,mode:"always_on",setRowHeight:oe,isItemLoaded:Y,ref:$,onChange:te,selectedCheckBoxTransactionIds:V,isTransactionActivityEnabled:l},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:ne})=>{ge(ne)},children:Im})})})})})})})})},jm=e=>{const{isQuickViewMode:n,value:c,allCheckBoxValues:r,groupLabelCheckBox:p,index:h,isDisabled:i,fetchState:d,sortKey:l,sortOrder:m,mode:u,isTransactionActivityEnabled:g,ref:f,onChange:y,onColumnSortConfigChanged:b}=km(),{children:S,style:k,...C}=e;return d==="Completed"?t.jsxs(Om,{ref:f,style:{...k,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...C,children:[t.jsx(Mm,{children:t.jsx(Rs,{selectionLimit:yn,value:c,checkBox:{label:t.jsx($m,{isQuickViewMode:n,children:t.jsx(Ca,{isTransactionActivityEnabled:g,sortConfig:{sortKey:l,sortOrder:m},isDisabled:i,onColumnSortConfigChanged:b})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:p,allCheckBoxValues:r,mode:n?"off":u,draggable:!1,checkBoxStyle:n?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:h,onChangeHandler:L=>Ds({event:L,value:c,allCheckBoxValues:r,groupLabelCheckBox:p,onChange:y}),ref:f})}),t.jsx(Fm,{children:S})]},`${r[h]}-${h}`):null},ja=s.createContext(void 0),km=()=>{const e=s.useContext(ja);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Im=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=Nn(),{checkboxes:p,value:h,groupLabelCheckBox:i,categorizationGroupValue:d,allCheckBoxValues:l,transactionLocalData:m,isQuickViewMode:u,isItemLoaded:g,setRowHeight:f,ref:y,onChange:b,selectedCheckBoxTransactionIds:S,isTransactionActivityEnabled:k}=c,C=s.useRef(null),L=ke();if(s.useEffect(()=>{C.current?.firstElementChild!=null&&f(e,C.current.firstElementChild.clientHeight)},[e,C,L,m[e]?.transactionReviewLocalData]),g(e)===!0){const j=p[e],v=r!=null&&r===d[e];return t.jsx(Qi,{isPanelSelected:v,isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:C,children:t.jsx(Rs,{selectionLimit:yn,checkBox:u===!0?{...j,isException:!1}:j,value:h,groupLabelCheckBox:i,allCheckBoxValues:l,mode:u===!0||j.isDisabled==="readonly"||S.includes(j.value)===!1&&S.length>=yn?"off":"always_on",draggable:!1,isDisabled:j.isDisabled,checkBoxStyle:u===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:u===!0?{display:"none"}:{padding:20},name:`${Kt}.${h}`,ref:y,index:e,onChangeHandler:A=>Ds({event:A,value:h,allCheckBoxValues:l,groupLabelCheckBox:i,onChange:b})})},d[e])}else return t.jsx(Qi,{isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:C,children:t.jsx(zm,{children:t.jsx(va,{isTransactionActivityEnabled:k})})},fs())},$m=a.div`
|
|
1477
1471
|
flex: 1;
|
|
1478
1472
|
width: auto;
|
|
1479
|
-
padding-left: ${({
|
|
1480
|
-
padding-right: ${({
|
|
1473
|
+
padding-left: ${({isQuickViewMode:e})=>e===!0?o.sp8:o.sp0};
|
|
1474
|
+
padding-right: ${({isQuickViewMode:e})=>e===!0?o.sp0:o.sp8};
|
|
1481
1475
|
`,Tm=a.div`
|
|
1482
1476
|
width: 100%;
|
|
1483
1477
|
height: 100%;
|
|
@@ -1514,14 +1508,14 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1514
1508
|
`,Dm=a(It)`
|
|
1515
1509
|
margin-top: ${o.sp3};
|
|
1516
1510
|
color: ${e=>e.theme.colors.hero};
|
|
1517
|
-
`,
|
|
1511
|
+
`,Qi=a.div`
|
|
1518
1512
|
top: ${o.sp0};
|
|
1519
1513
|
left: ${o.sp0};
|
|
1520
1514
|
padding-bottom: ${o.sp3};
|
|
1521
|
-
padding-left: ${({
|
|
1522
|
-
padding-right: ${({
|
|
1515
|
+
padding-left: ${({isQuickViewMode:e})=>e===!0?o.sp8:o.sp0};
|
|
1516
|
+
padding-right: ${({isQuickViewMode:e})=>e===!0?o.sp0:o.sp8};
|
|
1523
1517
|
box-sizing: border-box;
|
|
1524
|
-
${e=>e.isPanelSelected===!0&&
|
|
1518
|
+
${e=>e.isPanelSelected===!0&&Ve`
|
|
1525
1519
|
.categorization-row-card {
|
|
1526
1520
|
${Bo(e.theme)}
|
|
1527
1521
|
}
|
|
@@ -1542,9 +1536,9 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1542
1536
|
position: relative;
|
|
1543
1537
|
width: auto;
|
|
1544
1538
|
height: 100%;
|
|
1545
|
-
`,
|
|
1539
|
+
`,zm=a.div`
|
|
1546
1540
|
padding-left: ${o.sp8};
|
|
1547
|
-
`,
|
|
1541
|
+
`,_m=({selectedTab:e,transactionView:n,receiptUploadEndpoint:c,authParams:r,sectionId:p,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:i,isCOTEnabled:d,isTransactionActivityEnabled:l,setCurrentFooterFormId:m,setLocalDataForCategoryAndClass:u,onTransactionCategorizationRowClick:g,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:b,onSaveUpdateTransactionCategorization:S,onUpdateSelectedCheckboxTransactionIds:k,onFetchRecommendationsForEntityCategorization:C,onFetchRecommendationsForEntityCategorizationWithCustomer:L,setActivityLogTransactionId:j})=>{const[v,A]=s.useState({transactionId:void 0,lineItemId:void 0}),T=s.useRef(),I=s.useRef({}),{useDynamicConfig:R}=bs(),{configValue:w}=R(vs.enableUncategorizedExpenseCategory),D=w?.uncategorized_expense_category_enabled===!0,V=(K,M,O,J)=>{const Z={...I.current};Z[M]==null&&(Z[M]=[]);let W=Z[M].findIndex(E=>E.lineId===K);if(W===-1){const E={lineId:K,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};Z[M].push(E),W=Z[M].length-1}else{const E=Z[M][W];Z[M][W]={...E,category:{...E.category,recommendationTypesViewed:[...E.category.recommendationTypesViewed]},class:{...E.class,recommendationTypesViewed:[...E.class.recommendationTypesViewed]},vendor:{...E.vendor,recommendationTypesViewed:[...E.vendor.recommendationTypesViewed]}}}J!=null&&J!==""&&!Z[M][W][O].recommendationTypesViewed.includes(J)&&Z[M][W][O].recommendationTypesViewed.push(J),I.current=Z},{transactions:q,transactionLocalData:P,accountsHierarchyList:N,classHierarchyList:B,accountList:ie,classList:U,selectedCheckBoxTransactionIds:re,uncategorizedAccounts:oe}=n,Q=Jt({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>es(re,P,N,B,h.entityAutoCompleteView),[N,B,re,P,h.entityAutoCompleteView]),values:s.useMemo(()=>es(re,P,N,B,h.entityAutoCompleteView),[N,B,re,P,h.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{m("expenseAutomationPage")},[]),s.useEffect(()=>{re.length>0?m(ro):m("expenseAutomationPage")},[re,m]);const se=Q.handleSubmit(K=>{const M=K[Pn],O=I.current;S(e,M,O),M.forEach(J=>{delete I.current[J]})}),ge=async(K,M)=>{if(K!=null){if(K===Pn){const O=Q.getValues(Pn);if(O.length<re.length){k(e,O);return}if(O.length===yn){k(e,O);return}const J=O[O.length-1],Z=M[Kt].findIndex(E=>E.transactionId===J),W=Q.getValues(`${Kt}.${Z}.lineInfo`);if(W!=null){let E=!1;if(W.every(_=>(E=pn(oe,_[Re].selectedOption,D?["income"]:void 0),!!_[Re].selectedOption&&_[Re].selectedOption!=null&&!E&&!!_[Qe].selectedOption&&!!_[rt].selectedOption))===!0){k(e,O);return}else{const _=O.filter(H=>H!==J);k(e,_);return}}return}if(K.includes(Re)===!0||K.includes(Qe)===!0){const O=parseInt(K.split(".")[1]),J=parseInt(K.split(".")[3]),Z=Q.getValues(`${Kt}.${O}.lineInfo`),W=Z[J];if(K.includes(Re)||K.includes(Qe)){const{transactionId:E,lineId:_,recommendations:H}=W;if(Z!=null){const F=W[Re].selectedOption,he=W[Qe].selectedOption,te=W[rt].selectedOption,ee=W[rt].selectedOption,xe=W[rt].defaultOptions,$e=xe?.find(de=>de.options?.find(ze=>ze.value===te))?.options?.find(de=>de.value===te)?.label,$=xe?.find(de=>de.options?.find(ze=>ze.value===ee))?.options?.find(de=>de.value===ee)?.label,ne=h.entityAutoCompleteView.vendor.find(de=>de.qboId===te),be=h.entityAutoCompleteView.customer.find(de=>de.qboId===ee),Le=H.find(de=>de.vendor?.qboId===te)?.vendor,Be=te||ne?.qboId||Le?.qboId?{id:te??ne?.qboId??Le?.qboId??"",name:$e??ne?.name??Le?.name??"",logo:ne?.logo??Le?.logo}:void 0,Pe=ee||be?.qboId?{id:ee??be?.qboId??"",name:$??be?.name??"",logo:be?.logo}:void 0,ye=ie.find(de=>de.qboId===F),et=U.find(de=>de.classId===he),Ze=n.transactionLocalData.find(de=>de.transactionId===E)?.transactionReviewLocalData.lineItemById[_].account,Ge=n.transactionLocalData.find(de=>de.transactionId===E)?.transactionReviewLocalData.lineItemById[_].class;u(e,E,_,q,Be?.id,Pe?.id,K.includes(Re)&&ye!=null?{...ye,isPreFilled:!1}:Ze,K.includes(Qe)&&et!=null?{...et,isPreFilled:!1}:Ge,void 0,H,D)}return}}if(K.includes(rt)){const O=parseInt(K.split(".")[1]),J=parseInt(K.split(".")[3]),Z=Q.getValues(`${Kt}.${O}.lineInfo`);if(Z!=null){const W=Z[J],{transactionId:E,recommendations:_}=W,H=W[rt].selectedOption,F=W[rt].selectedOption,he=W[rt].defaultOptions,te=he?.flatMap(ye=>ye.options)?.find(ye=>ye.value===H)?.label,ee=he?.flatMap(ye=>ye.options)?.find(ye=>ye.value===F)?.label,xe=h.entityAutoCompleteView.vendor.find(ye=>ye.qboId===H),$e=h.entityAutoCompleteView.customer.find(ye=>ye.qboId===F),$=_.find(ye=>ye.vendor?.qboId===H)?.vendor,ne=H!==""&&H!=null?H:te!==""&&te!=null?te:"",be=(xe?.qboId!=null&&xe.qboId!==""?xe.qboId:null)??($?.qboId!=null&&$.qboId!==""?$.qboId:null)??(H!=null&&H!==""?H:null),Le={id:be??te??"",name:te??xe?.name??$?.name??"",logo:xe?.logo??$?.logo},Be=$e?.qboId!=null&&$e.qboId!==""?{id:$e.qboId??F??"",name:ee??$e.name??"",logo:$e.logo}:void 0,Pe=q.find(ye=>ye.id===E);if(Pe!=null){const ye=n.transactionLocalData.find(ze=>ze.transactionId===Pe.id)?.transactionReviewLocalData,et=ye?.lineItemById[W.lineId],Ze=Wt(Pe)===!0?ye?.selectedEntity:et?.selectedEntityLine,Ge=Be?.id!=null&&Be.id!==""?{id:Be.id,name:Be.name,type:"customer",qboId:Be.id,zeniId:Be.id,logo:Be.logo}:Le.id!==""&&Le.id!=null?{id:ne,name:te??ne,type:"vendor",qboId:ne,zeniId:ne,logo:Le.logo,isPreFilled:Ze?.id===be&&Ze?.isPreFilled}:void 0,de={transactionId:{id:Pe.id,type:Pe.type},transaction:Pe,lineIds:Pe.type!=="journal_entry"?Pe.lines?.map(ze=>ze.id)??[]:[W.lineId]};Ge?.type==="customer"?L(W.amount.amount,de,!1,e,Ge,Be,D):C(W.amount.amount,de,!1,e,Ge,Le,D)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const K=Q.watch((M,{name:O})=>{O!=null&&M!=null&&wn(()=>ge(O,M))});return()=>{K.unsubscribe()}}),s.useEffect(()=>{if(h.entityAutoCompleteView.fetchState==="Completed"){const K=n.transactionLocalData.find(M=>M.transactionId===v.transactionId);if(K){const{transactionReviewLocalData:M}=K,{selectedEntity:O}=M,J=v?.lineItemId??M.sortedLineItems[0],Z=M.lineItemById[J],W=Z.selectedEntityLine;T.current?.(Ro(h.entityAutoCompleteView,O??W,Z?.recommendationsWithCOT??[]))}A({transactionId:void 0,lineItemId:void 0})}},[h.entityAutoCompleteView.fetchState]);const Y=(K,M)=>{i.onAutoCompleteInputChange?.(K),T.current=M},le=s.useRef(null);return t.jsx(Pm,{ref:le,"data-testid":z("transaction-categorization-list-page"),children:t.jsx(Zt,{...Q,children:t.jsx("form",{id:Xi(ro),onSubmit:se,style:{height:"100%",width:"100%"},"data-testid":z(Xi(ro)),children:t.jsx(Sm,{isTransactionActivityEnabled:l,selectedTab:e,sectionId:p,transactionView:n,receiptUploadEndpoint:c,authParams:r,setCurrentTransactionInAction:A,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:b,onTransactionCategorizationRowClick:g,vendorLoadOptions:Y,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:i,containerRef:le,isCOTEnabled:d,cotTracking:{onCOTView:V},isUncategorizedExpenseCategoryEnabled:D,setActivityLogTransactionId:j})})})})},Xi=e=>`${e}_form`,es=(e,n,c,r,p)=>({[Kt]:n.map(h=>Bm(h.transactionId,h.transactionReviewLocalData,c,r,p)),[Pn]:e}),Bm=(e,n,c,r,p)=>{const{lineItemById:h,sortedLineItems:i,selectedEntity:d}=n,l=Object.values(h).sort((u,g)=>i.indexOf(u.lineId)-i.indexOf(g.lineId)),m=l[0]?.lineId;return{[wa]:l.map(u=>{const g=u.account?.qboId??u.account?.accountId,f=u.class?.classId,y=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,[Re]:{selectedOption:g,allOptions:Es(c,u.recommendationsWithCOT)},[Qe]:{selectedOption:f,allOptions:As(r,u.recommendationsWithCOT)},[rt]:{selectedOption:d?.id??y?.id??d?.name??y?.name,defaultOptions:Ro(p,d??y,n.lineItemById[m]?.recommendationsWithCOT??[])},[Np]:u.lineEntity,[Vp]:u.recommendationsWithCOT??[]}}),transactionId:e,[Wp]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Hp]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Pm=a.div`
|
|
1548
1542
|
display: flex;
|
|
1549
1543
|
min-height: 100%;
|
|
1550
1544
|
width: 100%;
|
|
@@ -1552,7 +1546,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1552
1546
|
flex-direction: column;
|
|
1553
1547
|
background-color: ${e=>e.theme.colors.grey4};
|
|
1554
1548
|
z-index: 2;
|
|
1555
|
-
`,ts={subSectionContainerLeftRightPadding:new
|
|
1549
|
+
`,ts={subSectionContainerLeftRightPadding:new G(x[3],x[6],x[8])},Nm=a.div`
|
|
1556
1550
|
width: 100%;
|
|
1557
1551
|
display: flex;
|
|
1558
1552
|
justify-content: center;
|
|
@@ -1564,7 +1558,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1564
1558
|
display: flex;
|
|
1565
1559
|
flex-direction: column;
|
|
1566
1560
|
width: 100%;
|
|
1567
|
-
`,Wm=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setResetJeAccountSettingsForm:p,expenseAutomationViewSelector:h,isTransactionActivityEnabled:i,authParams:d,receiptUploadEndpoint:l,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,enableMonthEndInsightsZeniGPTFeature:f,monthEndInsightsPreviewMode:y,monthEndInsightsCustomerRequestData:b,allThreadsSectionOpen:S,loggedInUser:k,isCOTEnabled:C,setCurrentFooterFormId:L,onFetchRecommendationsForEntityCategorization:j,onFetchRecommendationsForEntityCategorizationWithCustomer:v,onTransactionCategorizationRowClick:A,onFetchMissingReceiptsList:T,onMissingReceiptsRowClick:I,onUploadReceiptAttachment:R,onUploadReceiptComplete:w,onUploadReceiptFetchStatus:D,onReconTabColumnSortConfigChanged:V,onReloadReconciliationListPage:q,onUpdateReconcileTabLocalData:P,onUpdateMissingReceiptsUIState:N,onFetchTransactionCategorizationList:B,onUpdateTransactionCategorizationUIState:ie,onUpdateScrollYOffSetTransactionCategorizationUIState:U,handleJeScheduleClick:re,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:X,onPostJESchedule:se,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:Y,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:K,onUpdateSelectedCheckboxTransactionIds:M,improveMonthEndInsightsUsingZeniGPTClick:O,onRemoveFileAttachment:J,onUpdateFileAttachment:G,onCloseAllThreadsSection:W,onEditMonthEndInsightsClick:E,previewMonthEndReport:z,saveMonthEndReport:H,onOpenFileAttachmentSnackBar:F,onCloseFileAttachmentSnackBar:he,onClickCustomerRequest:te,sendMonthEndReport:ee,markAsReview:xe,onReloadPage:$e,updateOperatingExpensesIdsForReview:$,onFetchReimbursementView:ne,updateSectionIdsForReview:be,onUpdateFluxAnalysisUIState:Le,fetchFluxViewOnScroll:Pe,onFetchFluxViewList:Ne,setIsJeAccountSettingsOpened:ye,onReviewClicked:et,setOpenDrawerClicked:Ge,onEstablishConnectionClick:Ze,onFetchLinkTokenClick:de,updateReconReviewTabLocalData:ze,onReconReviewTabColumnSortConfigChanged:xt,onSaveReconciliation:$t,onSaveReconciliationReview:Tt,onReconMatchedTransactionClick:ft,onAddStatementClick:Oe,redirectToVendorDetailPage:ue,setActivityLogTransactionId:Se}=e,{currentSelectedView:pe,missingReceipts:st,transactionView:lt,selectedPeriod:je,monthEndInsights:Ue,selectedTransactionCategorizationTab:ln,reconciliation:Zt}=h;switch(pe){case"transaction_categorization":return lt.fetchState==="Completed"&<.transactionLocalData.length===0?t.jsx(St,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(zm,{setCurrentFooterFormId:L,selectedPeriod:je,selectedTab:ln,sectionId:Kt,transactionView:lt,receiptUploadEndpoint:l,authParams:d,isTransactionActivityEnabled:i,onUpdateTransactionCategorizationUIState:ie,onUpdateScrollYOffSetTransactionCategorizationUIState:U,onFetchTransactionCategorizationList:B,onTransactionCategorizationRowClick:A,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:Y,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:K,onUpdateSelectedCheckboxTransactionIds:M,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onFetchRecommendationsForEntityCategorization:j,onFetchRecommendationsForEntityCategorizationWithCustomer:v,isCOTEnabled:C,setActivityLogTransactionId:Se});case"je_schedules":return t.jsx(oh,{setIsJeAccountSettingsOpened:ye,expenseAutomationViewSelector:h,setResetJeAccountSettingsForm:p,currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setCurrentFooterFormId:L,handleJeScheduleClick:re,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:X,onPostJESchedule:se,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(St,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(Vh,{onUpdateMissingReceiptsUIState:N,onFetchMissingReceiptsList:T,missingReceipts:st,receiptUploadEndpoint:l,authParams:d,selectedPeriod:je,onMissingReceiptsRowClick:I,onUploadReceiptComplete:w,onUploadReceiptFetchStatus:D,onUploadReceiptAttachment:R});case"month_end_insights":if(Ue!=null&&h.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Ue.fetchState==="Not-Started"||Ue.fetchState==="In-Progress"||Ue.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Ue.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Ra,{fetchState:"In-Progress"});{const zt={application:"cockpit",companyId:m,entityId:m,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Ue.companyName,url:window.location.href},{url:cn,...tt}=zt,Yt={...tt};return t.jsx(Vm,{children:t.jsx(xp,{allThreadsSectionOpen:S,customerRequestData:b,companyId:m,enableZeniGPTFeature:f,filterMetaData:Yt,selectedPeriod:h.selectedPeriod,improveUsingZeniGPTClick:O,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Ue,newThreadMetadata:zt,onClickCustomerRequest:te,onCloseAllThreadsSection:W,onCloseFileAttachmentSnackBar:he,onOpenFileAttachmentSnackBar:F,onRemoveFileAttachment:J,onUpdateFileAttachment:G,previewMode:y,previewMonthEndReport:z,saveMonthEndReport:H,onEditClick:E,sendMonthEndReport:ee})})}}else return null;case"flux_analysis":return h.fluxAnalysis.fetchStatus.fetchState==="Completed"&&h.fluxAnalysis.sections.generalExpense.vendors.length===0&&h.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(St,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(Du,{fluxAnalysis:h.fluxAnalysis,selectedPeriod:h.selectedPeriod,markAsReview:xe,onReloadPage:$e,updateOperatingExpensesIdsForReview:$,updateSectionIdsForReview:be,onUpdateFluxAnalysisUIState:Le,setCurrentFooterFormId:L,fetchFluxViewOnScroll:Pe,onFetchFluxViewList:Ne,onFetchReimbursementView:ne,redirectToVendorDetailPage:ue});case"reconciliation":return t.jsx(fu,{onReloadReconciliationListPage:q,currentFooterFormId:n,reconciliation:Zt,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onReviewClicked:et,setOpenDrawerClicked:Ge,setCurrentFooterFormId:L,onReconTabColumnSortConfigChanged:V,onUpdateReconcileTabLocalData:P,onEstablishConnectionClick:Ze,onFetchLinkTokenClick:de,updateReconReviewTabLocalData:ze,onReconReviewTabColumnSortConfigChanged:xt,onSaveReconciliation:$t,onSaveReconciliationReview:Tt,onReconMatchedTransactionClick:ft,onAddStatementClick:Oe});default:return t.jsx(St,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle})}};function Hm(e){const n=ke(),{currentSelectedView:c}=e.expenseAutomationViewSelector,r=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",p=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Nm,{windowSize:n,style:{...p===!0?{paddingLeft:ts.subSectionContainerLeftRightPadding.value(n),paddingRight:ts.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:x[0],paddingRight:x[0]},...r===!0||c==="reconciliation"?{paddingLeft:x[0],paddingRight:x[0]}:{}},children:t.jsx(Wm,{...e})})}const Um=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"})),qm=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"})),Km=a.div`
|
|
1561
|
+
`,Wm=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setResetJeAccountSettingsForm:p,expenseAutomationViewSelector:h,isTransactionActivityEnabled:i,authParams:d,receiptUploadEndpoint:l,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,enableMonthEndInsightsZeniGPTFeature:f,monthEndInsightsPreviewMode:y,monthEndInsightsCustomerRequestData:b,allThreadsSectionOpen:S,loggedInUser:k,isCOTEnabled:C,setCurrentFooterFormId:L,onFetchRecommendationsForEntityCategorization:j,onFetchRecommendationsForEntityCategorizationWithCustomer:v,onTransactionCategorizationRowClick:A,onFetchMissingReceiptsList:T,onMissingReceiptsRowClick:I,onUploadReceiptAttachment:R,onUploadReceiptComplete:w,onUploadReceiptFetchStatus:D,onReconTabColumnSortConfigChanged:V,onReloadReconciliationListPage:q,onUpdateReconcileTabLocalData:P,onUpdateMissingReceiptsUIState:N,onFetchTransactionCategorizationList:B,onUpdateTransactionCategorizationUIState:ie,onUpdateScrollYOffSetTransactionCategorizationUIState:U,handleJeScheduleClick:re,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:Q,onPostJESchedule:se,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:Y,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:K,onUpdateSelectedCheckboxTransactionIds:M,improveMonthEndInsightsUsingZeniGPTClick:O,onRemoveFileAttachment:J,onUpdateFileAttachment:Z,onCloseAllThreadsSection:W,onEditMonthEndInsightsClick:E,previewMonthEndReport:_,saveMonthEndReport:H,onOpenFileAttachmentSnackBar:F,onCloseFileAttachmentSnackBar:he,onClickCustomerRequest:te,sendMonthEndReport:ee,markAsReview:xe,onReloadPage:$e,updateOperatingExpensesIdsForReview:$,onFetchReimbursementView:ne,updateSectionIdsForReview:be,onUpdateFluxAnalysisUIState:Le,fetchFluxViewOnScroll:Be,onFetchFluxViewList:Pe,setIsJeAccountSettingsOpened:ye,onReviewClicked:et,setOpenDrawerClicked:Ze,onEstablishConnectionClick:Ge,onFetchLinkTokenClick:de,updateReconReviewTabLocalData:ze,onReconReviewTabColumnSortConfigChanged:ft,onSaveReconciliation:$t,onSaveReconciliationReview:Tt,onReconMatchedTransactionClick:yt,onAddStatementClick:De,redirectToVendorDetailPage:ue,setActivityLogTransactionId:Se}=e,{currentSelectedView:pe,missingReceipts:st,transactionView:lt,selectedPeriod:je,monthEndInsights:Ue,selectedTransactionCategorizationTab:cn,reconciliation:Gt}=h;switch(pe){case"transaction_categorization":return lt.fetchState==="Completed"&<.transactionLocalData.length===0?t.jsx(jt,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(_m,{setCurrentFooterFormId:L,selectedPeriod:je,selectedTab:cn,sectionId:Kt,transactionView:lt,receiptUploadEndpoint:l,authParams:d,isTransactionActivityEnabled:i,onUpdateTransactionCategorizationUIState:ie,onUpdateScrollYOffSetTransactionCategorizationUIState:U,onFetchTransactionCategorizationList:B,onTransactionCategorizationRowClick:A,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:Y,updateSelectedVendorForTransaction:le,onSaveUpdateTransactionCategorization:K,onUpdateSelectedCheckboxTransactionIds:M,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onFetchRecommendationsForEntityCategorization:j,onFetchRecommendationsForEntityCategorizationWithCustomer:v,isCOTEnabled:C,setActivityLogTransactionId:Se});case"je_schedules":return t.jsx(ih,{setIsJeAccountSettingsOpened:ye,expenseAutomationViewSelector:h,setResetJeAccountSettingsForm:p,currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setCurrentFooterFormId:L,handleJeScheduleClick:re,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:Q,onPostJESchedule:se,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(jt,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(Wh,{onUpdateMissingReceiptsUIState:N,onFetchMissingReceiptsList:T,missingReceipts:st,receiptUploadEndpoint:l,authParams:d,selectedPeriod:je,onMissingReceiptsRowClick:I,onUploadReceiptComplete:w,onUploadReceiptFetchStatus:D,onUploadReceiptAttachment:R});case"month_end_insights":if(Ue!=null&&h.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Ue.fetchState==="Not-Started"||Ue.fetchState==="In-Progress"||Ue.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Ue.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Da,{fetchState:"In-Progress"});{const _t={application:"cockpit",companyId:m,entityId:m,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Ue.companyName,url:window.location.href},{url:dn,...tt}=_t,Yt={...tt};return t.jsx(Vm,{children:t.jsx(fp,{allThreadsSectionOpen:S,customerRequestData:b,companyId:m,enableZeniGPTFeature:f,filterMetaData:Yt,selectedPeriod:h.selectedPeriod,improveUsingZeniGPTClick:O,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Ue,newThreadMetadata:_t,onClickCustomerRequest:te,onCloseAllThreadsSection:W,onCloseFileAttachmentSnackBar:he,onOpenFileAttachmentSnackBar:F,onRemoveFileAttachment:J,onUpdateFileAttachment:Z,previewMode:y,previewMonthEndReport:_,saveMonthEndReport:H,onEditClick:E,sendMonthEndReport:ee})})}}else return null;case"flux_analysis":return h.fluxAnalysis.fetchStatus.fetchState==="Completed"&&h.fluxAnalysis.sections.generalExpense.vendors.length===0&&h.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(jt,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle}):t.jsx(Ou,{fluxAnalysis:h.fluxAnalysis,selectedPeriod:h.selectedPeriod,markAsReview:xe,onReloadPage:$e,updateOperatingExpensesIdsForReview:$,updateSectionIdsForReview:be,onUpdateFluxAnalysisUIState:Le,setCurrentFooterFormId:L,fetchFluxViewOnScroll:Be,onFetchFluxViewList:Pe,onFetchReimbursementView:ne,redirectToVendorDetailPage:ue});case"reconciliation":return t.jsx(yu,{onReloadReconciliationListPage:q,currentFooterFormId:n,reconciliation:Gt,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onReviewClicked:et,setOpenDrawerClicked:Ze,setCurrentFooterFormId:L,onReconTabColumnSortConfigChanged:V,onUpdateReconcileTabLocalData:P,onEstablishConnectionClick:Ge,onFetchLinkTokenClick:de,updateReconReviewTabLocalData:ze,onReconReviewTabColumnSortConfigChanged:ft,onSaveReconciliation:$t,onSaveReconciliationReview:Tt,onReconMatchedTransactionClick:yt,onAddStatementClick:De});default:return t.jsx(jt,{tab:pe,title:He(pe).allDoneText.title,subTitle:He(pe).allDoneText.subTitle})}};function Hm(e){const n=ke(),{currentSelectedView:c}=e.expenseAutomationViewSelector,r=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",p=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Nm,{windowSize:n,style:{...p===!0?{paddingLeft:ts.subSectionContainerLeftRightPadding.value(n),paddingRight:ts.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:x[0],paddingRight:x[0]},...r===!0||c==="reconciliation"?{paddingLeft:x[0],paddingRight:x[0]}:{}},children:t.jsx(Wm,{...e})})}const Um=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"})),qm=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"})),Km=a.div`
|
|
1568
1562
|
width: 100%;
|
|
1569
1563
|
height: 100vh;
|
|
1570
1564
|
display: flex;
|
|
@@ -1583,7 +1577,7 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1583
1577
|
width: 100%;
|
|
1584
1578
|
padding-left: ${o.sp0};
|
|
1585
1579
|
}
|
|
1586
|
-
`,ns=a(
|
|
1580
|
+
`,ns=a(Ra)`
|
|
1587
1581
|
height: ${o.sp3};
|
|
1588
1582
|
width: ${o.sp3};
|
|
1589
1583
|
cursor: pointer;
|
|
@@ -1593,13 +1587,13 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1593
1587
|
width: ${o.sp3};
|
|
1594
1588
|
cursor: pointer;
|
|
1595
1589
|
color: inherit;
|
|
1596
|
-
`,{common:{footer:Me,texts:{maxLimitReached:Gm,confirmAction:Zm},headers:Ym,create:Xm,strings:mn,texts:rn,cancel:Qm,confirm:e1,monthsByIndex:t1},dateFormat:{visual:{MMMDCommaYYYYformat:is}},expenseAutomation:gn}=Ie.getLocalizedStrings(),z1=e=>{const{expenseAutomationViewSelector:n,isDisabled:c,isRealtimeInsightsFeatureEnabled:r,isUncategorizedExpenseCategoryEnabled:p,isCOTEnabled:h,onUpdateTab:i,onReconTabUpdate:d,onUpdateStep:l,onSearchTextChanged:m,onRefresh:u,onClose:g,onBack:f,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:b,clearJeScheduleLocalData:S,onSaveReconciliation:k}=e,{currentSelectedView:C,allSteps:L,missingReceipts:j,jeSchedules:v,fluxAnalysis:A,monthEndInsights:T,transactionView:I,selectedTransactionCategorizationTab:R,reconciliation:w,selectedPeriod:D}=n,[V,q]=s.useState("expenseAutomationPage"),[P,N]=s.useState(()=>{}),[B,ie]=s.useState(!1),U=ke(),re=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),oe=re?ls:cs,{openThread:X,setOpenThread:se}=s.useContext(oe),[ge,Y]=s.useState(!1),[le,K]=s.useState(!1),M=L.find(ue=>ue.step===C),{nextStep:O,previousStep:J}=i1(L,C),{uiState:{searchString:G,pageToken:W},totalCountByTab:E,transactions:z,fetchStateByTransactionTabs:H,transactionLocalData:F}=I,{selectedReconAccount:he,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:te}}}}=w;let ee="Not-Started",xe="complete";switch(C){case"missing_receipts":ee=j.refreshStatus.fetchState,xe=j.completionStatus;break;case"je_schedules":ee=v.refreshStatus.fetchState,xe=v.completionStatus;break;case"month_end_insights":T!=null&&(ee=T?.fetchState);break;case"flux_analysis":ee=A.refreshStatus.fetchState,xe=A.completionStatus;break;case"transaction_categorization":ee=I.refreshStatus.fetchState,xe=I.completionStatus;break;case"reconciliation":he==null?(ee=w.refreshStatus.fetchState,xe=w.completionStatus):(ee=w.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",xe=w.completionStatus)}const $e=()=>{P()},{saveStatus:$,selectedCheckBoxTransactionIds:ne}=I,be=()=>{const ue=ia(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),Se=Zn(),{month:pe,year:st}=D,lt=Zn().set("month",pe-1).set("year",st).endOf("month");switch(V){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ue===!0?Me.markAsReviewed:rn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:go(n.fluxAnalysis.reviewOperatingExpensesIds.length,Ws,U,rn.vendor,C),cancelBtn:{label:Me.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{b([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Me.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:$.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:go(ne.length,yn,U,rn.transaction,C),cancelBtn:{label:Me.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(R,z.map(je=>je.id),D,!1,E[R],ei(F,R),p,W)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Me.next,backBtnLabel:Me.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Me.next,style:{justifyContent:"space-evenly"},isDisabled:c||M?.isNextDisabled,suffixIcon:t.jsx(ns,{}),onClick:()=>{l(O.step)}},cancelBtn:{label:Me.back,isDisabled:c||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(os,{}),onClick:()=>{l(J.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Me.reconcile,backBtnLabel:Me.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Me.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(w.reconciliationTabsState.balances.variance.amount===0&&Se.isAfter(lt)),isLoading:w.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:go(te.length,1/0,U,rn.transaction,C),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:w.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Me.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Me.save,backBtnLabel:Me.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Me.save,isLoading:v.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>$e(),label:Me.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const je=C==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,Ue=C==="reconciliation"&&n.reconciliation.selectedAccountId==null,ln=C==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Zt=O.step==="month_end_insights"&&(C==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ue),zt=C==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",cn=C==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",tt=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(Sn=>Sn.id==="month_end_insights"),Yt=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&tt?.isDisabled===!1&&(r||M?.isNextDisabled===!1),vn=O.step==="month_end_insights"&&(Ue||C==="flux_analysis")?!Yt:M?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Me.next,backBtnLabel:Me.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Zt===!0?o1(n.selectedPeriod.month):Me.next,style:{justifyContent:"space-evenly"},isDisabled:vn,suffixIcon:t.jsx(ns,{}),onClick:()=>{zt?i("autoCategorized"):je?d("reconcile"):l(O.step)}},cancelBtn:{label:Me.back,isDisabled:c||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(os,{}),onClick:()=>{cn?i("review"):ln?d("review"):je?f():l(J.step)}}}}}},Le=()=>{switch(V){case"expenseAutomationFluxPage":return{confirmAction:()=>{Y(!1),b([]),g()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{Y(!1),y(R,z.map(ue=>ue.id),D,!1,E[R],ei(F,R),p,W),g()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{Y(!1),S(),g()}};default:return{confirmAction:()=>{Y(!1)},confirmationDescription:mn.empty}}},Pe=()=>{V==="expenseAutomationFluxPage"||V==="expenseAutomationJESchedulePage"||V==="expenseAutomationTransactionsPage"?Y(!0):g()},{primaryBtn:Ne,cancelBtn:ye,leftSideComponent:et}=be(),{confirmAction:Ge}=Le(),Ze=ue=>{if(C==="transaction_categorization"&&(ue==="autoCategorized"||ue==="review"))return{hideCountInTab:E[ue]>gn.common.numbers.maximumCount,count:E[ue],isFetching:H[ue].fetchState==="In-Progress"};if(C==="reconciliation"){const{reconciliation:Se}=n,{selectedAccountId:pe}=Se;return pe==null?{count:0,isFetching:!1}:ue==="review"?{count:Se.accountReconciliationsByAccountID[pe]?.accountReconEntity?.transactionsToReview.length,isFetching:Se.accountReconciliationsByAccountID[pe]?.transactionFetchState.fetchState==="In-Progress"}:{count:Se.accountReconciliationsByAccountID[pe]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Se.accountReconciliationsByAccountID[pe]?.transactionFetchState.fetchState==="In-Progress"}}},de=C==="reconciliation"&&w.selectedAccountId!=null&&w.selectedReconAccount!=null,{month:ze,year:xt}=D,$t=Zn().set("month",ze-1).set("year",xt),Tt=$t.startOf("month").format(is),ft=$t.endOf("month").format(is),Oe=`${Tt} ${mn.hyphen} ${ft}`;return t.jsxs(Km,{children:[ge?t.jsx(Ia,{containerStyle:{width:356},titleComponent:t.jsx(d1,{children:Zm}),primaryButtonText:e1,secondaryButtonText:Qm,proceedButtonVariant:"danger",action:{onOkClick:()=>{Ge()},onCancelClick:()=>Y(!1)},descriptionComponent:t.jsx(u1,{children:gn.confirmationDescription})}):null,t.jsx($a,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,headerContent:t.jsx(Ol,{onBack:f,navBarCustomElement:C==="reconciliation"&&w.selectedAccountId!=null?t.jsx(n1,{reconciliation:w}):void 0,onReconTabUpdate:d,currentRecontab:w.selectedTab,reconcileDetailPageFetchState:w.selectedAccountId!=null?w.accountReconciliationsByAccountID[w.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:de?w.selectedAccountId:void 0,currentSelectedView:C,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:He(C,E.autoCategorized,de?w.selectedAccountId:void 0,de?w.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,de?Oe:void 0),searchText:G,currentTab:R,getTabCountAndFetchState:Ze,completionStatus:xe,forceShowSubtitle:B===!0||C==="je_schedules"&&(v.fetchState==="In-Progress"||v.accountSettingsView.fetchState==="In-Progress"),refreshStatus:ee,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??mn.empty,isZeniUser:re,onAllThreadsClick:()=>{X!=null&&se(null),K(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:Pe}),listContent:t.jsxs(Jm,{children:[t.jsx(Hm,{...e,isCOTEnabled:h,setIsJeAccountSettingsOpened:ie,setResetJeAccountSettingsForm:N,allThreadsSectionOpen:le,setCurrentFooterFormId:q,currentFooterFormId:V,onCloseAllThreadsSection:()=>K(!1)}),t.jsx(We,{controller:C!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(ds,{style:{width:"-webkit-fill-available",maxHeight:x[8]},formId:s1(V),primaryBtn:Ne,leftSideComponent:et,cancelBtn:ye,separatorStyle:{marginRight:o.sp4}})})]})})]})},n1=({reconciliation:e})=>{const n=kt(),{clearedBalance:c,variance:r,variancePercentage:p,deposits:h,payments:i}=e.reconciliationTabsState.balances,{balance:d}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:l}=e,{transactionFetchState:m}=l??{};return t.jsx(h1,{children:t.jsxs(p1,{children:[t.jsxs(xo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(fo,{children:t.jsx(m1,{})}),t.jsx(yo,{children:m?.fetchState==="In-Progress"?t.jsxs(bo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(wo,{children:Je("0,0.00",d)}),t.jsx(Co,{children:gn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(xo,{children:[t.jsx(fo,{children:t.jsx(x1,{})}),t.jsx(yo,{children:m?.fetchState==="In-Progress"?t.jsxs(bo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(wo,{children:Je("0,0.00",c)}),t.jsxs(y1,{children:[t.jsx(Co,{children:gn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs(C1,{children:[t.jsxs(ss,{children:[t.jsxs(as,{children:[i.count," ",rn.payments]}),t.jsx(rs,{children:Je("0,0.[00]",i.totalAmount)})]}),t.jsxs(ss,{children:[t.jsxs(as,{children:[h.count," ",rn.deposits]}),t.jsx(rs,{children:Je("0,0.[00]",h.totalAmount)})]})]}),display:"flex",children:t.jsx(f1,{})})]})]})})]}),t.jsxs(xo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(fo,{children:t.jsx(g1,{})}),t.jsx(yo,{children:m?.fetchState==="In-Progress"?t.jsxs(bo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(wo,{children:[t.jsx("span",{style:{color:r.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Je("0,0.00",r)}),p!=null&&r.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${p.toFixed(2)}%)`}):null]}),t.jsx(Co,{children:gn.accountRecon.reconciliation.headers.variance})]})})]})]})})},go=(e,n,c,r,p)=>{const h=r,i=(e>1?h+"s":h)+" selected";return e>0?t.jsxs(a1,{currentView:p,style:c==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(r1,{multiDigit:e>=5,children:e}),t.jsx(l1,{children:i}),e===n?t.jsx(c1,{children:`(${Gm})`}):null]}):null},o1=e=>{const n=t1[e];return`${Xm}${mn.space}${n}${mn.space}${Ym.insights}`};function i1(e,n){const c=e.findIndex(d=>d.step===n);if(c===-1)throw new Error("currentStep not found in allSteps array");const r=(c+1)%e.length,p=(c-1+e.length)%e.length,h=e[r],i=e[p];return{nextStep:h,previousStep:i}}const s1=e=>`${e}_form`,a1=a.div`
|
|
1590
|
+
`,{common:{footer:Oe,texts:{maxLimitReached:Zm,confirmAction:Gm},headers:Ym,create:Qm,strings:gn,texts:rn,cancel:Xm,confirm:e1,monthsByIndex:t1},dateFormat:{visual:{MMMDCommaYYYYformat:is}},expenseAutomation:ln}=Ie.getLocalizedStrings(),n1=({setActivityLogTransactionId:e})=>{const{selectedTransactionId:n}=Nn(),c=gt(),[r,p]=s.useState(!1);return n==null?null:t.jsx(we,{title:ln.transactions.header.activity,placement:"bottom",children:t.jsx(b1,{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onClick:h=>{h.stopPropagation(),e(n)},children:t.jsx(v1,{style:{color:r?c.colors.primary:c.colors.hero}})})})},N1=e=>{const{expenseAutomationViewSelector:n,isDisabled:c,isRealtimeInsightsFeatureEnabled:r,isUncategorizedExpenseCategoryEnabled:p,isCOTEnabled:h,onUpdateTab:i,onReconTabUpdate:d,onUpdateStep:l,onSearchTextChanged:m,onRefresh:u,onClose:g,onBack:f,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:b,clearJeScheduleLocalData:S,onSaveReconciliation:k}=e,{currentSelectedView:C,allSteps:L,missingReceipts:j,jeSchedules:v,fluxAnalysis:A,monthEndInsights:T,transactionView:I,selectedTransactionCategorizationTab:R,reconciliation:w,selectedPeriod:D}=n,[V,q]=s.useState("expenseAutomationPage"),[P,N]=s.useState(()=>{}),[B,ie]=s.useState(!1),U=ke(),re=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),oe=re?ls:cs,{openThread:Q,setOpenThread:se}=s.useContext(oe),[ge,Y]=s.useState(!1),[le,K]=s.useState(!1),M=L.find(ue=>ue.step===C),{nextStep:O,previousStep:J}=s1(L,C),{uiState:{searchString:Z,pageToken:W},totalCountByTab:E,transactions:_,fetchStateByTransactionTabs:H,transactionLocalData:F}=I,{selectedReconAccount:he,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:te}}}}=w;let ee="Not-Started",xe="complete";switch(C){case"missing_receipts":ee=j.refreshStatus.fetchState,xe=j.completionStatus;break;case"je_schedules":ee=v.refreshStatus.fetchState,xe=v.completionStatus;break;case"month_end_insights":T!=null&&(ee=T?.fetchState);break;case"flux_analysis":ee=A.refreshStatus.fetchState,xe=A.completionStatus;break;case"transaction_categorization":ee=I.refreshStatus.fetchState,xe=I.completionStatus;break;case"reconciliation":he==null?(ee=w.refreshStatus.fetchState,xe=w.completionStatus):(ee=w.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",xe=w.completionStatus)}const $e=()=>{P()},{saveStatus:$,selectedCheckBoxTransactionIds:ne}=I,be=()=>{const ue=ia(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),Se=Yn(),{month:pe,year:st}=D,lt=Yn().set("month",pe-1).set("year",st).endOf("month");switch(V){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ue===!0?Oe.markAsReviewed:rn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:xo(n.fluxAnalysis.reviewOperatingExpensesIds.length,Ws,U,rn.vendor,C),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{b([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:$.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:xo(ne.length,yn,U,rn.transaction,C),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(R,_.map(je=>je.id),D,!1,E[R],ei(F,R),p,W)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.next,style:{justifyContent:"space-evenly"},isDisabled:c||M?.isNextDisabled,suffixIcon:t.jsx(ns,{}),onClick:()=>{l(O.step)}},cancelBtn:{label:Oe.back,isDisabled:c||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(os,{}),onClick:()=>{l(J.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Oe.reconcile,backBtnLabel:Oe.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(w.reconciliationTabsState.balances.variance.amount===0&&Se.isAfter(lt)),isLoading:w.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:xo(te.length,1/0,U,rn.transaction,C),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:w.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Oe.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Oe.save,backBtnLabel:Oe.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,isLoading:v.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>$e(),label:Oe.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const je=C==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,Ue=C==="reconciliation"&&n.reconciliation.selectedAccountId==null,cn=C==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Gt=O.step==="month_end_insights"&&(C==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ue),_t=C==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",dn=C==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",tt=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(Sn=>Sn.id==="month_end_insights"),Yt=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&tt?.isDisabled===!1&&(r||M?.isNextDisabled===!1),vn=O.step==="month_end_insights"&&(Ue||C==="flux_analysis")?!Yt:M?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Gt===!0?i1(n.selectedPeriod.month):Oe.next,style:{justifyContent:"space-evenly"},isDisabled:vn,suffixIcon:t.jsx(ns,{}),onClick:()=>{_t?i("autoCategorized"):je?d("reconcile"):l(O.step)}},cancelBtn:{label:Oe.back,isDisabled:c||M?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(os,{}),onClick:()=>{dn?i("review"):cn?d("review"):je?f():l(J.step)}}}}}},Le=()=>{switch(V){case"expenseAutomationFluxPage":return{confirmAction:()=>{Y(!1),b([]),g()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{Y(!1),y(R,_.map(ue=>ue.id),D,!1,E[R],ei(F,R),p,W),g()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{Y(!1),S(),g()}};default:return{confirmAction:()=>{Y(!1)},confirmationDescription:gn.empty}}},Be=()=>{V==="expenseAutomationFluxPage"||V==="expenseAutomationJESchedulePage"||V==="expenseAutomationTransactionsPage"?Y(!0):g()},{primaryBtn:Pe,cancelBtn:ye,leftSideComponent:et}=be(),{confirmAction:Ze}=Le(),Ge=ue=>{if(C==="transaction_categorization"&&(ue==="autoCategorized"||ue==="review"))return{hideCountInTab:E[ue]>ln.common.numbers.maximumCount,count:E[ue],isFetching:H[ue].fetchState==="In-Progress"};if(C==="reconciliation"){const{reconciliation:Se}=n,{selectedAccountId:pe}=Se;return pe==null?{count:0,isFetching:!1}:ue==="review"?{count:Se.accountReconciliationsByAccountID[pe]?.accountReconEntity?.transactionsToReview.length,isFetching:Se.accountReconciliationsByAccountID[pe]?.transactionFetchState.fetchState==="In-Progress"}:{count:Se.accountReconciliationsByAccountID[pe]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Se.accountReconciliationsByAccountID[pe]?.transactionFetchState.fetchState==="In-Progress"}}},de=C==="reconciliation"&&w.selectedAccountId!=null&&w.selectedReconAccount!=null,{month:ze,year:ft}=D,$t=Yn().set("month",ze-1).set("year",ft),Tt=$t.startOf("month").format(is),yt=$t.endOf("month").format(is),De=`${Tt} ${gn.hyphen} ${yt}`;return t.jsxs(Km,{children:[ge?t.jsx($a,{containerStyle:{width:356},titleComponent:t.jsx(u1,{children:Gm}),primaryButtonText:e1,secondaryButtonText:Xm,proceedButtonVariant:"danger",action:{onOkClick:()=>{Ze()},onCancelClick:()=>Y(!1)},descriptionComponent:t.jsx(h1,{children:ln.confirmationDescription})}):null,t.jsx(Ta,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,panelActionBarContent:e.isTransactionActivityEnabled?t.jsx(n1,{setActivityLogTransactionId:e.setActivityLogTransactionId}):null,headerContent:t.jsx(Ml,{onBack:f,navBarCustomElement:C==="reconciliation"&&w.selectedAccountId!=null?t.jsx(o1,{reconciliation:w}):void 0,onReconTabUpdate:d,currentRecontab:w.selectedTab,reconcileDetailPageFetchState:w.selectedAccountId!=null?w.accountReconciliationsByAccountID[w.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:de?w.selectedAccountId:void 0,currentSelectedView:C,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:He(C,E.autoCategorized,de?w.selectedAccountId:void 0,de?w.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,de?De:void 0),searchText:Z,currentTab:R,getTabCountAndFetchState:Ge,completionStatus:xe,forceShowSubtitle:B===!0||C==="je_schedules"&&(v.fetchState==="In-Progress"||v.accountSettingsView.fetchState==="In-Progress"),refreshStatus:ee,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??gn.empty,isZeniUser:re,onAllThreadsClick:()=>{Q!=null&&se(null),K(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:Be}),listContent:t.jsxs(Jm,{children:[t.jsx(Hm,{...e,isCOTEnabled:h,setIsJeAccountSettingsOpened:ie,setResetJeAccountSettingsForm:N,allThreadsSectionOpen:le,setCurrentFooterFormId:q,currentFooterFormId:V,onCloseAllThreadsSection:()=>K(!1)}),t.jsx(We,{controller:C!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(ds,{style:{width:"-webkit-fill-available",maxHeight:x[8]},formId:a1(V),primaryBtn:Pe,leftSideComponent:et,cancelBtn:ye,separatorStyle:{marginRight:o.sp4}})})]})})]})},o1=({reconciliation:e})=>{const n=gt(),{clearedBalance:c,variance:r,variancePercentage:p,deposits:h,payments:i}=e.reconciliationTabsState.balances,{balance:d}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:l}=e,{transactionFetchState:m}=l??{};return t.jsx(p1,{children:t.jsxs(m1,{children:[t.jsxs(fo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(yo,{children:t.jsx(g1,{})}),t.jsx(Co,{children:m?.fetchState==="In-Progress"?t.jsxs(vo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(bo,{children:Je("0,0.00",d)}),t.jsx(wo,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(fo,{children:[t.jsx(yo,{children:t.jsx(f1,{})}),t.jsx(Co,{children:m?.fetchState==="In-Progress"?t.jsxs(vo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(bo,{children:Je("0,0.00",c)}),t.jsxs(C1,{children:[t.jsx(wo,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs(w1,{children:[t.jsxs(ss,{children:[t.jsxs(as,{children:[i.count," ",rn.payments]}),t.jsx(rs,{children:Je("0,0.[00]",i.totalAmount)})]}),t.jsxs(ss,{children:[t.jsxs(as,{children:[h.count," ",rn.deposits]}),t.jsx(rs,{children:Je("0,0.[00]",h.totalAmount)})]})]}),display:"flex",children:t.jsx(y1,{})})]})]})})]}),t.jsxs(fo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(yo,{children:t.jsx(x1,{})}),t.jsx(Co,{children:m?.fetchState==="In-Progress"?t.jsxs(vo,{children:[t.jsx(nn,{height:25,width:120}),t.jsx(nn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(bo,{children:[t.jsx("span",{style:{color:r.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Je("0,0.00",r)}),p!=null&&r.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${p.toFixed(2)}%)`}):null]}),t.jsx(wo,{children:ln.accountRecon.reconciliation.headers.variance})]})})]})]})})},xo=(e,n,c,r,p)=>{const h=r,i=(e>1?h+"s":h)+" selected";return e>0?t.jsxs(r1,{currentView:p,style:c==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(l1,{multiDigit:e>=5,children:e}),t.jsx(c1,{children:i}),e===n?t.jsx(d1,{children:`(${Zm})`}):null]}):null},i1=e=>{const n=t1[e];return`${Qm}${gn.space}${n}${gn.space}${Ym.insights}`};function s1(e,n){const c=e.findIndex(d=>d.step===n);if(c===-1)throw new Error("currentStep not found in allSteps array");const r=(c+1)%e.length,p=(c-1+e.length)%e.length,h=e[r],i=e[p];return{nextStep:h,previousStep:i}}const a1=e=>`${e}_form`,r1=a.div`
|
|
1597
1591
|
display: flex;
|
|
1598
1592
|
justify-content: flex-start;
|
|
1599
1593
|
align-items: center;
|
|
1600
1594
|
gap: ${o.sp2};
|
|
1601
1595
|
margin-left: ${e=>e.currentView==="flux_analysis"?"36px":o.sp8};
|
|
1602
|
-
`,
|
|
1596
|
+
`,l1=a(xt)`
|
|
1603
1597
|
height: 18px;
|
|
1604
1598
|
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
1605
1599
|
padding: ${o.sp0} 6px;
|
|
@@ -1608,37 +1602,37 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1608
1602
|
display: flex;
|
|
1609
1603
|
justify-content: center;
|
|
1610
1604
|
align-items: center;
|
|
1611
|
-
`,
|
|
1605
|
+
`,c1=a(_e)`
|
|
1612
1606
|
color: ${e=>e.theme.colors.primary};
|
|
1613
|
-
`,
|
|
1614
|
-
color: ${
|
|
1615
|
-
`,
|
|
1607
|
+
`,d1=a(It)`
|
|
1608
|
+
color: ${Xe.important};
|
|
1609
|
+
`,u1=a(Ia)`
|
|
1616
1610
|
margin-top: ${o.sp5};
|
|
1617
1611
|
padding-left: ${o.sp8};
|
|
1618
1612
|
padding-right: ${o.sp8};
|
|
1619
1613
|
color: ${e=>e.theme.colors.primary};
|
|
1620
1614
|
word-break: break-word;
|
|
1621
|
-
`,
|
|
1615
|
+
`,h1=a(La)`
|
|
1622
1616
|
color: ${e=>e.theme.colors.primary};
|
|
1623
1617
|
margin-top: ${o.sp2};
|
|
1624
1618
|
margin-bottom: ${o.sp2};
|
|
1625
|
-
`,
|
|
1619
|
+
`,p1=a.div`
|
|
1626
1620
|
display: flex;
|
|
1627
1621
|
justify-content: center;
|
|
1628
1622
|
align-items: center;
|
|
1629
1623
|
padding: ${o.sp3} ${o.sp0};
|
|
1630
|
-
`,
|
|
1624
|
+
`,m1=a.div`
|
|
1631
1625
|
width: 100%;
|
|
1632
1626
|
display: flex;
|
|
1633
1627
|
justify-content: center;
|
|
1634
1628
|
align-items: center;
|
|
1635
1629
|
gap: ${o.sp1};
|
|
1636
|
-
`,
|
|
1630
|
+
`,fo=a.div`
|
|
1637
1631
|
display: flex;
|
|
1638
1632
|
justify-content: center;
|
|
1639
1633
|
align-items: center;
|
|
1640
1634
|
gap: ${o.sp3};
|
|
1641
|
-
`,
|
|
1635
|
+
`,yo=a.div`
|
|
1642
1636
|
width: ${o.sp7};
|
|
1643
1637
|
height: ${o.sp7};
|
|
1644
1638
|
border-radius: 50%;
|
|
@@ -1646,39 +1640,39 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1646
1640
|
justify-content: center;
|
|
1647
1641
|
align-items: center;
|
|
1648
1642
|
background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
1649
|
-
`,
|
|
1643
|
+
`,Co=a.div`
|
|
1650
1644
|
display: flex;
|
|
1651
1645
|
flex-direction: column;
|
|
1652
|
-
`,
|
|
1646
|
+
`,wo=a(It)`
|
|
1653
1647
|
color: ${e=>e.theme.colors.hero};
|
|
1654
|
-
`,
|
|
1648
|
+
`,bo=a(hs)`
|
|
1655
1649
|
min-width: 180px;
|
|
1656
1650
|
color: ${e=>e.theme.colors.primary};
|
|
1657
|
-
`,
|
|
1651
|
+
`,g1=a(Fa)`
|
|
1658
1652
|
color: ${e=>e.theme.colors.primary};
|
|
1659
1653
|
width: ${o.sp4};
|
|
1660
1654
|
height: ${o.sp4};
|
|
1661
|
-
`,
|
|
1655
|
+
`,x1=a(za)`
|
|
1662
1656
|
color: ${e=>e.theme.colors.primary};
|
|
1663
1657
|
width: ${o.sp4};
|
|
1664
1658
|
height: ${o.sp4};
|
|
1665
|
-
`,
|
|
1659
|
+
`,f1=a(qm)`
|
|
1666
1660
|
color: ${e=>e.theme.colors.primary};
|
|
1667
1661
|
width: ${o.sp4};
|
|
1668
1662
|
height: ${o.sp4};
|
|
1669
|
-
`,
|
|
1663
|
+
`,y1=a(ps)`
|
|
1670
1664
|
width: ${o.sp3};
|
|
1671
1665
|
height: ${o.sp3};
|
|
1672
1666
|
color: ${e=>e.theme.colors.hero};
|
|
1673
1667
|
:hover {
|
|
1674
1668
|
color: ${e=>e.theme.colors.primary};
|
|
1675
1669
|
}
|
|
1676
|
-
`,
|
|
1670
|
+
`,C1=a.div`
|
|
1677
1671
|
display: flex;
|
|
1678
1672
|
align-items: center;
|
|
1679
1673
|
gap: ${o.sp1};
|
|
1680
|
-
`,
|
|
1681
|
-
background-color: ${
|
|
1674
|
+
`,w1=a.div`
|
|
1675
|
+
background-color: ${Xe.overlayDark};
|
|
1682
1676
|
padding: 2px ${o.sp2};
|
|
1683
1677
|
border-radius: ${o.sp1};
|
|
1684
1678
|
`,ss=a.div`
|
|
@@ -1688,13 +1682,29 @@ import{o,bW as ka,J as ke,gi as ls,gj as cs,V as t,cq as Ia,bC as $a,aa as We,aS
|
|
|
1688
1682
|
`,as=a.div`
|
|
1689
1683
|
text-transform: capitalize;
|
|
1690
1684
|
`,rs=a(It)`
|
|
1691
|
-
color: ${
|
|
1685
|
+
color: ${Xe.primaryDark};
|
|
1692
1686
|
align-self: "flex-end";
|
|
1693
1687
|
`,nn=a(Mt)`
|
|
1694
1688
|
border-radius: ${o.sp2};
|
|
1695
|
-
`,
|
|
1689
|
+
`,vo=a.div`
|
|
1696
1690
|
display: flex;
|
|
1697
1691
|
flex-direction: column;
|
|
1698
1692
|
min-width: 180px;
|
|
1699
1693
|
gap: ${o.sp1};
|
|
1700
|
-
|
|
1694
|
+
`,b1=a.button`
|
|
1695
|
+
background: none;
|
|
1696
|
+
border: none;
|
|
1697
|
+
cursor: pointer;
|
|
1698
|
+
padding: ${o.sp1};
|
|
1699
|
+
border-radius: ${o.sp1};
|
|
1700
|
+
display: flex;
|
|
1701
|
+
align-items: center;
|
|
1702
|
+
justify-content: center;
|
|
1703
|
+
|
|
1704
|
+
&:hover {
|
|
1705
|
+
background: ${({theme:e})=>e.colors.grey4};
|
|
1706
|
+
}
|
|
1707
|
+
`,v1=a(ba)`
|
|
1708
|
+
width: ${o.sp4};
|
|
1709
|
+
height: ${o.sp4};
|
|
1710
|
+
`;export{u1 as ConfirmationPopUpTitle,N1 as default,s1 as getNextAndPreviousSteps,a1 as uniqueFormName};
|