@zeniai/web-cockpit-ui 1.15.30-qa → 1.15.31-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.
Files changed (320) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-JKcW_L_F.js +21 -0
  2. package/dist/assets/{AIPerformancePage-DncCC-Dz-BOvGHscI.js → AIPerformancePage-BtDuOBey-R_FrOwFb.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-CwURNe8d.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D-dwMWkI-D88W2OaR.js → AccountInfoPageContent-BLF92_vF-BcSKCd1r.js} +18 -18
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-DpSC039N.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BL7C23h8-DzmiVaut.js → AccountReconDetailsDrawerPage-CkaBrm5K-DMOtTL8X.js} +12 -12
  7. package/dist/assets/AccountRow-aEmcYP8T-BckNDPBQ.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-BqyCa3EH-BhL0cBgw.js → AccountsPromoCardStack-C0At5pn8-DZihjHYv.js} +26 -26
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-Djr5aTMV.js +6 -0
  10. package/dist/assets/{AddToWalletPage-tRVFR3Rw-C5ubbZea.js → AddToWalletPage-CMJwUbgf-rFPYYVSy.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-BO9qovKL-CdlQDQIv.js → AgingReportsPage-B_BSfude-DWyamJwj.js} +15 -15
  12. package/dist/assets/{AllUserItems-C5uzbqu0-Dz7hSnjr.js → AllUserItems-CGlWa60t-EoZjozXY.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-Dw4d844_-BkAKurnC.js → ApAgingDetailPage-DT3vkmLG-BsDDXbrZ.js} +4 -4
  14. package/dist/assets/AppBasePage-CDy7wPlv-CsB4iu-c.js +71 -0
  15. package/dist/assets/{AppDrawerContent-C5KqoZ6_-D_png9qE.js → AppDrawerContent-CEsXm_i6-DCe9idAB.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-nEW4hufu-BCL2xSkm.js → ApprovalRulesSettingsPage-CB2_4-2f-JTvT_FnG.js} +6 -6
  17. package/dist/assets/{ArAgingChart-2eGhMrCs-EqBo0h4i.js → ArAgingChart-qxhWsIQb-D_1Ue9xU.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CE_nDD48-BIHfiXjf.js → ArAgingDetailPage-BbzQryp_-Babiy5ST.js} +4 -4
  19. package/dist/assets/{AttachmentView-DdX3DEyN-Bw2PxRrG.js → AttachmentView-duTVxc9g-BoSNnqkS.js} +4 -4
  20. package/dist/assets/{BankAccountSection-Db8KCDjh-iTFbb6-_.js → BankAccountSection-CAwAf9xK-BTGyBjUJ.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-DLKyK-pN-Cdd5qBMX.js → BankAccountWarningSection-CaDnP9_--BOTeyp6n.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-BcMQdf1D-DfqGvpXs.js → BankConnectionsSettingsPage-CDV7O8cl-CQv6ub4_.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BOoE3r9n-BIPuOuQe.js → BillDetailPage-DJxh2CIc-BeHpC_ZG.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C-M8i0tF-B9YYzCOC.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-CXCcZzHB.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-cqq9M7pi-BVbvcx0Z.js → BillPayApprovalRulesPage-MM7v8ZMx-B1_OO9dS.js} +15 -15
  26. package/dist/assets/{BillPayPromoPage-CHu-sh9I-B_sxrL9M.js → BillPayPromoPage-JK-VOx4W-BEeCN8sy.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-ICbZgQZR-CfoTEl08.js → BillPaySetUpPage-h0uoCWMl-D8aqE5Rg.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-Cdnv1hFG.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Cr-JmUCA-Ccv-NbDw.js → BillsBulkReviewDrawerPage-CPPDFsZt-C0sV8yKV.js} +1 -1
  30. package/dist/assets/{BoxItem-ChtGcSH1-MoZYQOAh.js → BoxItem-CYe_gTmA-rmtQXiBP.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-EV3QIoHL.js +138 -0
  32. package/dist/assets/{CardNumberSubText-Dxhe-tx2-TLAx16j3.js → CardNumberSubText-CFDhtij8-BmUW8oI1.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-BTR9tfZP-Jo7Dpa8J.js → CashbackDetailPage-BBGGzKh7-Bts6uMDO.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-D_dF0Nv_-C7o20zm-.js → ChargeCardDetailPage-BQhago53-D_FFt-oF.js} +18 -18
  35. package/dist/assets/{ChargeCardListPage-wA3_NOPD-DOl_739p.js → ChargeCardListPage-B0E-C3RH-CrU64eoy.js} +23 -23
  36. package/dist/assets/{ChargeCardListTable-8Bgd9bzh-HEXHQyum.js → ChargeCardListTable-ByGv0xWl-rSJFMbd2.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-mcW9jr2k-BjrB9BAc.js → ChargeCardPaymentHistoryPage-LCY9rFqO-CkY1nhYn.js} +12 -12
  38. package/dist/assets/ChargeCardPromoPage-CKEnOseD-DuGq7XTO.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BxAJ2HVU-BX-4Vim4.js → ChargeCardSetupPage-BHv2VOdc-Bv0dAghh.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-CZzDSv5y-BXWMC8ei.js → ChargeCardStatementsPage-UpRXyPTS-DcNMglcu.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-iPcp79Wu-CA2AafB8.js → CheckDepositDrawerPage-0zbTQ3Fa-Edy7R6vj.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-Ck29YUyD-pECWNLmO.js → CollapsableReportTable-DlYIKSlQ-COjE28P7.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-C5sOytCr.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-CCfVNfP0-CrPt14U3.js → CompanyPassportCard-DeVPuuje-B4Kq9zLA.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DWgtD9ML.js +574 -0
  46. package/dist/assets/{CompleteProfile-C0Qk6P6p-C3tZC3ME.js → CompleteProfile-Y6HwKtpz-CsUQDLc6.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-B_KCfg_0.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-fIa3khF_.js → ConstrainedInnerElement-BeIpAPjB-Dx2Q69aJ.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-CmnpkgTu-DFILJK0S.js → CreateOrEditVendorPage-BlZe6gmh-DxGvfsZR.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-wPiHCF7z-DO8qxsK-.js → CreditCardPaymentDrawerPage-flPmyCaF-D3mVRIQk.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-CxIflyKX-BkVKHW7P.js → CurrencySelectField-RiKAivD8-Dz6NASLd.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CE5B6BET-BSoJNJvi.js → CustomerOnboardingActivationPage-B7dLMk4g-D_eaYsMZ.js} +5 -5
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-BBqvBSFY.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton--jL1SUOo-CBYeHto3.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Df3wynLD.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-CmXil69t.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-Bw_YjaWD.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-IUm6QKOQ-7Xb_cC54.js → CustomerOnboardingProductSuitePage-DqgoBLWp-D2XUuLJm.js} +6 -6
  58. package/dist/assets/{Dashboard-CeBbTIiJ-CjYF6swU.js → Dashboard-D0KlujCx-D0HvooTT.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-DVIwO5-L-Jzf6CQjM.js → DashboardReportPage-bxKyMsG7-Bb1y4PVD.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-CbEVCb1f.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-B7ErTe-9-IiBwcqn_.js → DepositAccTransactionItem-BdZVCAx--BEQtPnX0.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-Czm5uOxb-CsvUWB2Z.js → DepositAccTransactionListPage-LU0QMdSV-Bfh4B_mk.js} +6 -6
  63. package/dist/assets/{DomesticWireDetailsPage-B3Cib987-Bpr9YIbH.js → DomesticWireDetailsPage-CFt5GgZ1-Co98r5Ek.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CS_4lZDV-Bj-tFxKl.js → DownloadOverlay-CH_bA3On-bfSkm5Nl.js} +11 -11
  65. package/dist/assets/{DrawerPage-CrCkJ_bE-4OdrvmR8.js → DrawerPage-Cpdp-IFb-BRc12KLa.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-B1GcGpQ9.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-DisSqLai-DgqcVW3v.js → EditReimbursementDetailPage-DnyyPZ26-CeObB7v0.js} +67 -67
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-Dd0uW0uD.js +18 -0
  69. package/dist/assets/{EntitySummarySection-CmVlq7pY-ClR4v434.js → EntitySummarySection-BFpgAYAM-D1hJybsA.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-DuWbC5EZ-MQAQvJgp.js → ExpenseAutomationOverviewPage-YjOVm_Bw-p-cnIw4N.js} +56 -56
  71. package/dist/assets/ExpenseAutomationPage-DlhH-R-e-C1M6QNQ4.js +1700 -0
  72. package/dist/assets/{ExpressPayPage-DZHOM942-C3TqtMLa.js → ExpressPayPage-CKqPEfbR-CGYA64IG.js} +14 -14
  73. package/dist/assets/{FeaturePreviewPage-DHomR4Oi-BUxEkmDY.js → FeaturePreviewPage-Cs1Y3nP0-IoYZsFaa.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-C8Zv_X5E-CbGu5Ubj.js → FollowStepsSection-BCyL8Jdr-B2UM5UTK.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BFR_WZdE-DGzcSSRg.js → GlobalReviewListPage-CBQFcVHd-Cv9-dFGG.js} +16 -16
  76. package/dist/assets/{InformationCardStack-C39QsHiY-BFHNROWc.js → InformationCardStack-nFMetrAy-CQVo7xoK.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bi2tusdE-tu5bOLaK.js → InsightsCardStack-CEMeGJXy-CBEUbPAA.js} +7 -7
  78. package/dist/assets/InsightsSection-BYiN2xB7-DRSyBaKY.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-Bj9lE3dy-BoquOG18.js → IntegrationsSettingsPage-BQ7g3a3K-BolFhxmH.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-HPxS_eP2-CXu6WZDB.js → InternationalWireSwiftDetailsPage-BHRYsZgm-D9-8cqjd.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CBXNZ9Tt.js +292 -0
  82. package/dist/assets/{InviteFormPage-DyUgmNt6-DbKce1qR.js → InviteFormPage-BVXte8w8-LmKOVXja.js} +23 -23
  83. package/dist/assets/{InvitePageListView-PbTTJA74-Bz3RohnK.js → InvitePageListView-DFPyLLrA-8Qu-82aZ.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-hqYTwKtm.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DaXZuZIR.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-WeFAdE9k-BwCdMfjt.js → IssueChargeCardPage-BuLj1bOl-CrhI2RvS.js} +19 -19
  87. package/dist/assets/{LabeledAddressValue-BEiVNwJh-B1AetA9A.js → LabeledAddressValue-D2t8ti-C-DZj4ysSt.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-1VjKhx0I.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-UqsSfRFN.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-B-KMzhH--DUvTQCE0.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPCw1so2.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-CXDoMBrK.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-DZkQmKIJ.js +59 -0
  93. package/dist/assets/{LabeledText-B1BxC4mo-Cud6m7nr.js → LabeledText-zjKn4Cw--KApo6LBw.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D0OTplnZ-DV_bhuhP.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-DSUwJJwR.js} +18 -18
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DruyoV6I-DsPwqNC4.js → LabeledZeniRolesDropDownField-DiBtAWQ3-CBaCEhEP.js} +38 -38
  96. package/dist/assets/{LinkJETransactionPage-_GJ-x5FQ-CpZcMkUO.js → LinkJETransactionPage-D66bzDh_-CkE3r5Fj.js} +14 -14
  97. package/dist/assets/{LockCardPage-BiembyjL-o0APbzNc.js → LockCardPage-B1g2TZWL-BB9OEQ3a.js} +23 -23
  98. package/dist/assets/{LowBalancePopup-DF0W3ZsB-BL8lxWid.js → LowBalancePopup-DbtHeVY--C1kZvBgV.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BwbjH03_.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-CowCmii0.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BohPD43K-C9uNU_-f.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-Cz_o6Fdm.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--Dm_WsIEN.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-Dlvzbcxc-DASQrA7S.js → MagicLinkTitleSection-CqkZ9wOf-Bw_OwXxB.js} +4 -4
  104. package/dist/assets/{MailingDetailsSection-BT5P_beR-B4cpXc_i.js → MailingDetailsSection-DRFGCM2W-BZiRRBi6.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BSErzm4Y-C-MWTdNj.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-BgvQaaTM.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-CC02lTyz-BJnd3ofq.js → MyPendingActivationChargeCardListPage-BffxXDZg-ByY1n8i6.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-hN8LUcXX.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BsrNGnWt-BlQqabt1.js → NavBarWithPicker-C4VfP_Kw-CBhRZ97T.js} +5 -5
  109. package/dist/assets/{NavigationArrow-BXIVh8h9-D7IH5yMo.js → NavigationArrow-DCCxx6H7-W7U95qs4.js} +7 -7
  110. package/dist/assets/{NavigationDots-CqAMUVd8-BXhLjOxS.js → NavigationDots-tWCw6Bpk-CuIUDxge.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-BJ5efhOX-ClQiHLq9.js → NewGlobalMerchantPage-UIA8zAjd-D8vToc6n.js} +36 -36
  112. package/dist/assets/{NoDataChart-YIESVuNz-DpSXAqlW.js → NoDataChart-Bvetk9za-0wt6JdBt.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-DsLBD4Qa.js +8 -0
  114. package/dist/assets/{NotFoundPage-DsvOs3ie-C-4MxVNW.js → NotFoundPage-CdH-3upl-C_fcZJin.js} +5 -5
  115. package/dist/assets/{NotificationSettingsPage-DVfgPnm5-BvgqO3jt.js → NotificationSettingsPage-DP2gGIz1-CLjjU0Sc.js} +17 -17
  116. package/dist/assets/{NotificationsListConfig-DpYbR8ec-DqDCfeTP.js → NotificationsListConfig-DG-DH2Aj-CKXowXh2.js} +1 -1
  117. package/dist/assets/{NotificationsPage-DvWc70qe-VWTqaRJg.js → NotificationsPage-CgFMmR2X-Be5cEQ7m.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-H76M8qaf-BQH2QQSj.js → OpExByVendorPage-eUvIAWzt-PZY_Xas_.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-3r3Bw7Lg.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-sw9N690f-DXwOGKkt.js → PandLWithForecastPage-8S06Nyi5-BhQGG0da.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-9ZSRDZH6.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-sla4AS_t.js +675 -0
  123. package/dist/assets/{Preview-CTKmuGb_.js → Preview-CU8d2zan.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BcFZaXQq-CAcJ2P5M.js → ProductsCarousel-BKSXWnFR-DXZOy7zR.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-BglIl0tN-Buak4qY9.js → PromoBaseCards-BYT9nEJT-CqAOmcFY.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-D9BGyyB3-C_3987E6.js → QBOConnectionDialog-C2-omQMZ-zbiv02JV.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-C6L-OXzd-C71uj0xQ.js → QBOSetupSection-lgv5wVlg-y58Hyzd-.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-tKu15I_o-BFCP9Tbv.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-D3aK08AA.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-r2WRV6kv-C9GzIbw-.js → ReimbursementApprovalRulesPage-BuNt-Bmb-C78e8kMC.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-jJxS8CSo-DjnZk067.js → ReimbursementDetailPage-CK3-Jqkd-CgZiOEYV.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-CrKB_OxS-3EkO-wL1.js → ReimbursementPromoPage-fptOAJna-IPM14XMn.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-COWnzuHW-CLMx95-b.js → ReimbursementSetUpPage-CidrpT2g-Ln_h8FTr.js} +12 -12
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-jpGSx2Pg-_Bcfji9w.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DgBEVXGU.js} +1 -1
  134. package/dist/assets/{ReloadCard-Dl1P55OC-zZUvCa72.js → ReloadCard-C81rGzOp-DJ3imZKo.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-CPU5qvuC-2zZIaHx7.js → ReportTableViewSelector-neRSjrhV-Ren0yuJI.js} +9 -9
  136. package/dist/assets/{ReportsPage-FhO_9i3v-DNezkReN.js → ReportsPage-BhzQVaer-_PFG_SDT.js} +5 -5
  137. package/dist/assets/{RevenueChart-Bju5kT8K-oXD-rW-y.js → RevenueChart-x7uTbFlm-De__t5uZ.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-CaEI-TGi-BctO-qMF.js → ReviewDetailsPage-jXZCylzg-CxWQeENN.js} +52 -52
  139. package/dist/assets/{ReviewOverlay-l69rpwr7-CL2MzHR0.js → ReviewOverlay-nlm2HnGw-CrtXVWUE.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-Flc5rF91.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BRsO23kh-Bd6jJjXE.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-DIX9LFTM.js} +8 -8
  142. package/dist/assets/ScheduleDetailsPage-BSZefKOh-8kI1Do_y.js +37 -0
  143. package/dist/assets/{ScheduleSequenceTable-CeHDyMVV-BDB0daT6.js → ScheduleSequenceTable-BW5M7Zfq-BxUxwc-r.js} +42 -42
  144. package/dist/assets/{ScreenRoutes-BQy3VYdc.js → ScreenRoutes-CLhWgWVO.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-rRjmVlU7-DwMfeFsK.js → SetUpAccountSection-C703iFL6-CB7BMbY7.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-DoHIITb_.js +491 -0
  147. package/dist/assets/SignInScreen-BUCf8qGW.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-B452IhbL-DeBmV72o.js → SpendManagementListViewPage-CBNtC74m-BtgixD4n.js} +12 -12
  149. package/dist/assets/{SpendManagementPerTabPage-BDYtqf0E-DyNuQ-pi.js → SpendManagementPerTabPage-D_sa7WRd-BkE5ihPf.js} +23 -23
  150. package/dist/assets/{SpendManagementSection-BBotB3Xj-CCF7KJv2.js → SpendManagementSection-DpZUTV6m-Dxy1NGgK.js} +25 -25
  151. package/dist/assets/{StatementItem-hqxspUme-sh_LlOTp.js → StatementItem-DvdSsb8I-Yc2t3LwG.js} +6 -6
  152. package/dist/assets/{StatementsPage-CL35o_9R-ReR2nu-n.js → StatementsPage-73jGj5P2-39XE15IE.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-LSy5NlOs-B-twulWz.js → StatusSwitcher-hKYgwNLC-CdIzFF5N.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-BB80NFhP-CfbWDFoA.js → SubTabSwitcher-aeDd9xiF-cMszftZd.js} +2 -2
  155. package/dist/assets/{SummaryCard-wJqTtNFt-C_twlvBD.js → SummaryCard-CK8Gxbiu-D9gdCQ60.js} +1 -1
  156. package/dist/assets/TaskManagementPage-D2Ooq8DR-BCLu8T25.js +508 -0
  157. package/dist/assets/{TimeRangeSwitcher-B1jJf76U-DhK9j_RI.js → TimeRangeSwitcher-DEqlZxa6-CbVp5G_Z.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-CTyaOUPX-CbY24_cZ.js → TimeframeSwitcher-BppC6giF-B4vl7lp6.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-CKuHpWeL.js +31 -0
  160. package/dist/assets/{TopExCard-D-0SNihe-DbAMEJsc.js → TopExCard-Cy6tPVSx-DoueUq-S.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-2Wo3VpBY-CQB6lP8u.js → TopExDetailPage-Rtrcdkcp-Bee2kIbH.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bh3D2NmZ-D3qvKicV.js → TransactionActivityLogPage-DbwSsjPJ-Duhd9ppW.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-K9QSYBJd.js +903 -0
  164. package/dist/assets/{TransactionList-DUgCrZWV-BvVKtqdG.js → TransactionList-BruCNjQg-Bs3Zye0k.js} +16 -16
  165. package/dist/assets/{TransactionListBig-BXR8xSqt-DaiA8bG9.js → TransactionListBig-bp7q3prH-DtAaFzgB.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8-DDRcg9yh.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-D0ZIWPbx-Cn6y3WJt.js → TransactionVendorDetailPage-CldkuO2--BwneqCS_.js} +15 -15
  168. package/dist/assets/{TransferDrawerPage-BP4KhD5c-BrSTdfTz.js → TransferDrawerPage-DswS6KZf-lfQEHAd_.js} +35 -35
  169. package/dist/assets/{TreasuryOverviewPage-CrYY5MJP-C0AmvEQV.js → TreasuryOverviewPage-DWo7iRpO-DwVZc_ol.js} +15 -15
  170. package/dist/assets/{TreasuryPromoPage-DZ4Kyqzq-D_pEn2EG.js → TreasuryPromoPage-DQxCF3-4-CSmOO24g.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-BaId882i-D75gB9l5.js → TreasuryStatementsPage-CYkPtmaT-DN6XWXk4.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BD36dset-gxrB031E.js → TreasuryTaxLetterPage-DH3su_rX-KVvmjWUc.js} +2 -2
  173. package/dist/assets/{TrendChart-CS2cE4wE-9GYHRUaO.js → TrendChart-BMHDaOeh-Buv1h9ol.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-BNti0lYr-DivQSKL6.js → TrendWithTransactions-DDLrmIrt-fNUGa6rL.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BsRepV5l-DlPkehZf.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-BU7ZjTMQ.js} +12 -12
  176. package/dist/assets/{UnitIntegrationPage-DqzH4Opa-SO4FcuGi.js → UnitIntegrationPage-DPMy8dXP-BZ-cXQsX.js} +7 -7
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BIzKt99W-Th7W6jYz.js → UploadAdditionalDocumentOverlay-BHpT2al--BnkxVa5e.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-evnz1t4i.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-C8VaJhNx.js +1 -0
  180. package/dist/assets/{VendorDetailPage-C9YSL-3_-BF0fdd2j.js → VendorDetailPage-BC1FhaQA-CueuZtdN.js} +12 -12
  181. package/dist/assets/{VendorDomesticWireDetailsPage-CqnTEv1M-CgJRLwZn.js → VendorDomesticWireDetailsPage-CLudahOt-Y_vODi9v.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-CmnR7Dwc-DZxsZ_RS.js → VendorFiling1099EditablePage-DYyPOA8D-CMg58Qh3.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CAjuo6H2-BffNSToW.js → VendorFirstReviewPage-Cpmk7rDk-DktpXCT6.js} +8 -8
  184. package/dist/assets/{VendorInternationalWireDetailsPage-Ca1voldE-BbjAc52w.js → VendorInternationalWireDetailsPage-CWAWq6kq-vjVbUdxz.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-ChJiB8Jl.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-BY-jWDwa-60HtC92w.js → VendorsAccountsSection-CGQ35Mhp-Bs7nzLpL.js} +2 -2
  187. package/dist/assets/{VerifyDevice-DSN3CxFh-da41a_-g.js → VerifyDevice-CfMJW1Vh-pAakXHUa.js} +9 -9
  188. package/dist/assets/{VideoPlayer-BzBvO4D1-CGFIyDTJ.js → VideoPlayer-BNBpjXJk-CNvH9RBW.js} +2 -2
  189. package/dist/assets/{VideoPopup-BB6qYshg-ZG_r-hRa.js → VideoPopup-BF6lmB7l-BYaaNsYn.js} +4 -4
  190. package/dist/assets/{WarningsDrawerPage-B4NIhdau-Bru4kwPQ.js → WarningsDrawerPage-Crj70lnR-KEtM2APc.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-CbMnZZXn-DLFDNJ9i.js → ZeniAccountDetailPage-CaA6m3tQ-CEYZpiUC.js} +10 -10
  192. package/dist/assets/{ZeniAccountListViewPage-DuuiC_LT-jT3VVTcG.js → ZeniAccountListViewPage-x_51gDs1-Avk4qZ_6.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-DksQYhl9.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-Bce5rHc6-m6-ECwyb.js → ZeniAccountPromoPage-lxKBk2r5-B5zalg2W.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Cwr7kLE1-DplcqBsj.js → ZeniAccountSetupPage-DUI4-2Zw-DRlq62qF.js} +3 -3
  196. package/dist/assets/{ZeniCopyright-CPV8cCJj-D08CfMJu.js → ZeniCopyright-DxEZ4DiK-hTA8S1dS.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-CSJnweYQ-bsaYWF1B.js → ZeniTransferAmountSlider-4Nq4Sm9J-DVwizo2l.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-Bh5GmIs8.js → add-to-wallet-DgdBD8_G-DYxovDvY.js} +1 -1
  199. package/dist/assets/{analytics-C7qRceeD.js → analytics-Cmcqa01V.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CeIe3crh-AsfAm_i9.js → analyticsHelper-CL-t3Y2i-BWhNt6sH.js} +1 -1
  201. package/dist/assets/analyticsHelper-DVKjUmRh.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DKJtOEDh.js → arrow-south-east-round-PEovUgvH-Cg10bY7L.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-BtLYBoTe.js → auto-transfer-rule-mbafm5D3-BzGzQRiq.js} +1 -1
  204. package/dist/assets/{chartTypes-Cpjk7Uyr-Cx7FiySP.js → chartTypes-B3501CSI-EaJM1gmS.js} +1 -1
  205. package/dist/assets/{commonDimensions-BiY7_JPE-DCs4Mvgg.js → commonDimensions-YcBBlmYP-Djn7MvQY.js} +1 -1
  206. package/dist/assets/{constants-BSSpHQLd.js → constants-CO0CvGHR.js} +1 -1
  207. package/dist/assets/{core-BdfL-uia.js → core-MmJvanAX.js} +1 -1
  208. package/dist/assets/{dash.all.min-BHbNWZhu.js → dash.all.min-BtkViWW9.js} +1 -1
  209. package/dist/assets/{detailCommon-C7usWt5l-BPTKb5an.js → detailCommon-C19MYPnq-K0CC_UYn.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DNPeICgY.js +1 -0
  211. package/dist/assets/{empty-B_wp4jbR.js → empty-B8yNMhy_.js} +1 -1
  212. package/dist/assets/{empty-BfoY8avI.js → empty-wbHL4fCk.js} +1 -1
  213. package/dist/assets/epic-cC-V8fqP.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CTA3oEEm.js → gift-box-Cmt9OgIZ-mKGEn6_z.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-BNuWuf.js → graphic-no-data-l-DU4J8fDt-DL4eASZx.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BKSa_BmO.js → graphic-no-data-net-burn-l-CzmycA0m-CPdXbVAf.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-BspGwKvx.js → handshake-BPg58FML-D9DqrV5o.js} +1 -1
  218. package/dist/assets/{index-DQGwrG6i.js → index-B2COPa4J.js} +1 -1
  219. package/dist/assets/{index-97wdo8qZ.js → index-BALzBmnK.js} +1 -1
  220. package/dist/assets/{index-CLP97b5b.js → index-BMz5TN4Z.js} +1 -1
  221. package/dist/assets/{index-2U9XpSIT.js → index-BZrvYCMV.js} +1 -1
  222. package/dist/assets/{index-BE47hrTe.js → index-Bj85L4uf.js} +1 -1
  223. package/dist/assets/{index-Blb3rESX.js → index-BmeBEa4W.js} +1 -1
  224. package/dist/assets/{index-Bkm6Mxfx.js → index-DK3PYuee.js} +4083 -4077
  225. package/dist/assets/{lexical-CNiclLj0.js → lexical-DyUba00B.js} +1 -1
  226. package/dist/assets/{liveblocks-Lf8LVeH9.js → liveblocks-DzWLGwR5.js} +1 -1
  227. package/dist/assets/{lottie-BAIk2ri4.js → lottie-C8IpdMqp.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--B6CSGc2J.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-COWbEMKO-DeIvL42p.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-BZO45bNY.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-BptZuVYf.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-BTUA7CSo.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-DSTIJ2iA.js +1 -0
  233. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-mmJVrGj0-DKkBp9K3.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Dqp5HT1g.js} +1 -1
  234. package/dist/assets/{mui-Dg-yyLd1.js → mui-CgqbPqeT.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-C9V7NZCx.js → page-detail-CWX5S47F-CWr90kJa.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DRCw2iu0.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-7Dm34YkL.js → radio-default-CiSgisfh-BEZqUVYK.js} +1 -1
  238. package/dist/assets/{react-afxvtM8P.js → react-BE0WbgXK.js} +2 -2
  239. package/dist/assets/{react-BYCJSJzc.js → react-BWJsSx2R.js} +2 -2
  240. package/dist/assets/{react-XQWanSnz.js → react-BgXIf4f3.js} +1 -1
  241. package/dist/assets/{react-CmD2oDdV.js → react-C4LlJL88.js} +1 -1
  242. package/dist/assets/{react-CLIsPthr.js → react-CMcqnen6.js} +1 -1
  243. package/dist/assets/{react-CK1-HLiI.js → react-COyNmpZ3.js} +1 -1
  244. package/dist/assets/{react-CXimFM-A.js → react-DsUgK5BV.js} +1 -1
  245. package/dist/assets/{react-RbEMA7cG.js → react-DzUY3cKk.js} +1 -1
  246. package/dist/assets/{recharts-DVyIhUUu.js → recharts-CcfvjpA4.js} +1 -1
  247. package/dist/assets/{sentry-nVlxguQq.js → sentry-DS5py-mq.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DoCKBSgZ.js → shield-DOlUxcFf-BF58Ag0p.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-B_xF911W.js +1 -0
  250. package/dist/assets/toChartData-DzatRnt8-DoRfMwGl.js +1 -0
  251. package/dist/assets/{uploadAttachment-B3eC-lyz-geS_kP_o.js → uploadAttachment-Bq8dk-Sm-D_5FZVYa.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-CY10Jpnu.js → uploadReceipts-Dge0cNF1-v2Zp1kxY.js} +1 -1
  253. package/dist/assets/{url-3XfBQAPr.js → url-B1m04Aj9.js} +1 -1
  254. package/dist/assets/{url-A_ZszWlu.js → url-rEq3bn1J.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BmH9C_mp.js → useLongPress-GCK2COYQ-BbRZopJb.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-iPZVfl3G.js → usp-line-BBd1wKwW-C_HT3NYA.js} +1 -1
  257. package/dist/assets/{utils-Bn_xI0qf.js → utils-C5WTobSB.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwXlACp-.js → zeni-epic-state-QRf7TPA6.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-BR3rG--e-kSCtv-NB.js +0 -21
  262. package/dist/assets/AccountInfoPage-CD5N14l8-Cj9mMftg.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-Bu3jEa0r-B0qvTV9d.js +0 -59
  264. package/dist/assets/AccountRow-B5Gqqqtn-CIBZjEoF.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-BwmafnJT-Bmncy62v.js +0 -6
  266. package/dist/assets/AppBasePage-BMHvSY21-DvkLzmdG.js +0 -71
  267. package/dist/assets/BillingSettingsPage-DYdJ7J5w-Dpj9oE-s.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-CyDHfWqO-DZAPmAGn.js +0 -138
  269. package/dist/assets/ChargeCardPromoPage-BPyHy6jq-BKhW8ZTA.js +0 -222
  270. package/dist/assets/CompanyOfficerDetailsSection-CEpMwx3h-CtZ35yMq.js +0 -331
  271. package/dist/assets/CompanyPassportPage-S00SGN0f-daLbEDp8.js +0 -417
  272. package/dist/assets/ConfettiBurst-BFSc4yf1-Cmp5Smtr.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CyY14sjC-CpRK_yh3.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-DtAEP0LR-Cj2h9iOe.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-8fLLsJWV-CvrWaaS9.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-CntzllmW-4doWKP65.js +0 -12
  277. package/dist/assets/EditPeoplePage-CbH2FQwr-Dwdc6XuJ.js +0 -55
  278. package/dist/assets/EntityDetailPage-CPfVH0Qx-Bbq5VGjF.js +0 -18
  279. package/dist/assets/ExpenseAutomationPage-DBW9Urqw-CdNZdY6H.js +0 -1794
  280. package/dist/assets/InsightsSection-CKYv2Mnk-DfsYpI8T.js +0 -27
  281. package/dist/assets/InternationalWireVerificationPage-0DjZSpXZ-BZd7iT9O.js +0 -65
  282. package/dist/assets/InvitePeoplePage-CD1AM3Js-Coy9qSK8.js +0 -12
  283. package/dist/assets/InvoiceUploadSection-DPN2hpHj-Le_Nue4w.js +0 -140
  284. package/dist/assets/LabeledAddressValueField-CeyT4xDd-CsZJNIxr.js +0 -45
  285. package/dist/assets/LabeledControlledCheckBoxField-9wqNy7sL-DXrYHBBD.js +0 -16
  286. package/dist/assets/LabeledCountryMultiSelectField-S16_1kXP-x8HeIlI2.js +0 -237
  287. package/dist/assets/LabeledDocumentField-9m7Nhuth-BMfR8g3v.js +0 -41
  288. package/dist/assets/LabeledDropDownFormattedTextField-B_jJYbeK-CTMDj_vU.js +0 -59
  289. package/dist/assets/MagicLinkACHDetailsPage-p0Nwa4g8-D5bMLjso.js +0 -1
  290. package/dist/assets/MagicLinkDomesticWireDetailsPage-B_wnHSrq-CpgplOKq.js +0 -1
  291. package/dist/assets/MagicLinkSuccessPage-RJUcSgy8-CVLM8P-e.js +0 -31
  292. package/dist/assets/MyProfileSettingsPage-BM5j8vuZ-DC0wslST.js +0 -85
  293. package/dist/assets/NoDataTable-CHeZXDKw-D3EaccW5.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-DOJMQyvQ.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-D_rfYltd-BxAOPNlU.js +0 -107
  296. package/dist/assets/PeoplePage-D0ePO3d9-Bb5tMyL7.js +0 -727
  297. package/dist/assets/RoleWithToolTip-C4vCwcT8-C5FDPwWf.js +0 -22
  298. package/dist/assets/ScheduleDetailsPage-pKJSKheu-3-MzjHkZ.js +0 -37
  299. package/dist/assets/SignIn-zX3S7vuf-CwAOg_w9.js +0 -491
  300. package/dist/assets/SignInScreen-CpVpLRgx.js +0 -1
  301. package/dist/assets/TaskManagementPage-CnB395ci-lpQsi4e6.js +0 -508
  302. package/dist/assets/TimeframeSwitcherWithToggle-D48PqfUX-D2nr0MDh.js +0 -31
  303. package/dist/assets/TransactionDetailPage-NZEjiM1T-0AsyLNKc.js +0 -903
  304. package/dist/assets/TransactionListPage-BhY1YX8v-Shvm7Elv.js +0 -35
  305. package/dist/assets/Vendor2FAPopup-BzQXTs0l-C90qWU_9.js +0 -1
  306. package/dist/assets/VendorACHDetailsPage-D1DvwT9e-CTgO1cQ9.js +0 -1
  307. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B17rmnsI-__uNZA7s.js +0 -1
  308. package/dist/assets/ZeniAccountNavBarPieces-CLNviNEx-CPY4QhCF.js +0 -14
  309. package/dist/assets/analyticsHelper-C4Qu-lAN.js +0 -1
  310. package/dist/assets/commonTypes-B1ylXa_P-Cc0VFSjp.js +0 -1
  311. package/dist/assets/downloadPdf-DRVFJQsk-BTOjeNSN.js +0 -1
  312. package/dist/assets/epic-BcpbmT-B.js +0 -2
  313. package/dist/assets/helper-Bwr_8pRi-tqcy2Ple.js +0 -223
  314. package/dist/assets/mapLoadingInProgressToTreeNode-DkvfU-AQ-BcQQ_ng7.js +0 -1
  315. package/dist/assets/mapSpacerToTreeNode-Csr6iLbE-BBc-Z9-B.js +0 -1
  316. package/dist/assets/mapTimeframeBalancesToTreeNode-DWah9nq--hXoargkz.js +0 -1
  317. package/dist/assets/mapTimeframeBalancesToTreeNode-KUx30-z6-Bx1KZ8Tg.js +0 -1
  318. package/dist/assets/panelSelectedMixin-Cddsb26L-BcWH15GY.js +0 -3
  319. package/dist/assets/toCOABalancesWithID-BOdn6oVS-D2aQDAmk.js +0 -1
  320. package/dist/assets/toChartData--znXzhow-CuORq1Y-.js +0 -1
@@ -1,1794 +0,0 @@
1
- import{o,bW as ar,J as Te,gl as _a,gm as Pa,V as t,cr as sr,bC as rr,aa as Ue,aS as Ba,u as x,F as Ae,cs as lr,y as ae,d as wt,bD as cr,i9 as dr,aP as Ze,bU as Ce,dk as eo,bw as ur,ga as hr,ab as B,i7 as pr,am as Ve,h1 as mr,gV as Fa,bx as gr,bQ as Vt,b8 as za,aj as At,bL as Na,p as tt,km as xr,an as bt,a9 as an,bP as qo,ad as sn,kn as fr,ko as yr,kp as Cr,kq as vn,kr as Va,ks as Ha,kt as wr,ku as bi,kv as br,go as Wa,dn as Ua,kw as vr,kx as Sr,ky as jr,kz as kr,kA as Ir,kB as $r,kC as Lr,kD as Tr,kE as Ar,kF as Er,kG as qa,kH as Rr,kI as Dr,kJ as Or,kK as Mr,gD as Ko,ce as Tn,b4 as to,cv as no,m as Jo,I as Ka,r as Ja,cH as An,dW as Go,x as _r,gn as Pr,bp as Br,cl as Fr,c3 as zr,eI as En,c0 as Yo,ar as Nr,c as Vr,fE as Hr,aF as Ga,kL as Wr,aW as Zo,aR as vi,gX as Ya,kM as Ur,kN as qr,kO as Kr,bG as Za,aU as Jr,dS as Ht,gL as zt,hZ as ro,eF as Jn,cL as Qo,az as Gr,eG as Qa,dq as Yr,gy as Zr,fT as Qr,h4 as Xr,iV as el,co as Xo,cB as oo,cE as io,iC as it,b as Ft,hM as tl,gE as Gn,jk as Si,dl as Xa,d3 as In,kP as nl,a_ as ol,du as es,i as $n,it as ts,iD as Po,kQ as mn,eh as ns,ej as os,iY as Bo,iZ as is,kR as il,d1 as ao,iu as as,fs as ss,kS as al,ew as lo,ij as sl,aL as Fo,kT as rl,cQ as ll,aZ as rs,iK as cl,dU as dl,ap as $t,kU as ul,kV as hl,b2 as co,es as pl,dR as ml,kW as gl,fN as xl,kX as fl,dQ as yl,hB as Cl,a8 as wl,et as bl,eu as vl,ev as Sl,ey as ji,ez as ki,eA as jl,kY as kl,b0 as Il,eK as $l,eL as Ll,eM as Tl}from"./index-Bkm6Mxfx.js";import{a as i,P as Al}from"./sentry-nVlxguQq.js";import{n as s,c as Se,k as ei}from"./mui-Dg-yyLd1.js";import{bh as uo,Gu as Ii,Gv as Ln,Gw as El,Gx as Rl,cx as Dl,bL as zo,cy as Ol,ET as $i,cz as Ml,cA as _l,la as Sn,bE as Qt,Gy as Li,c4 as ls,Gz as Pl,bY as cs,bo as Xt,GA as Bl,GB as ds,GC as us,GD as hs,GE as ps,GF as ms,GG as ti,kW as Fl}from"./zeni-epic-state-DwXlACp-.js";import{t as ni}from"./panelSelectedMixin-Cddsb26L-BcWH15GY.js";import{r as gs,I as xs,n as gn,R as Ct}from"./CollapsableReportTable-Ck29YUyD-pECWNLmO.js";import{D as ho}from"./AccountRow-B5Gqqqtn-CIBZjEoF.js";import{o as fs}from"./mapTimeframeBalancesToTreeNode-DWah9nq--hXoargkz.js";import{d as Ti}from"./mapLoadingInProgressToTreeNode-DkvfU-AQ-BcQQ_ng7.js";import{h as zl}from"./VendorsAccountsSection-BY-jWDwa-60HtC92w.js";import{u as Nl,c as Ai,d as Vl,m as Hl}from"./uploadAttachment-B3eC-lyz-geS_kP_o.js";import{r as Wl}from"./core-BdfL-uia.js";import"./liveblocks-Lf8LVeH9.js";import"./recharts-DVyIhUUu.js";import"./lottie-BAIk2ri4.js";import"./analytics-C7qRceeD.js";import"./lexical-CNiclLj0.js";import"./utils-Bn_xI0qf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d5120324-12cc-46bf-9ca0-7b1165a0a3ab",e._sentryDebugIdIdentifier="sentry-dbid-d5120324-12cc-46bf-9ca0-7b1165a0a3ab")}catch{}})();const{common:{navBar:{back:Ul},texts:{refresh:ql,close:Kl,copy:Jl,copied:Gl,open:Yl}},expenseAutomation:{common:{numbers:{maximumCount:Zl}}}}=Ae.getLocalizedStrings(),Ql=s(Zr)`
2
- display: flex;
3
- width: ${o.sp4};
4
- height: ${o.sp4};
5
- align-items: center;
6
- justify-content: center;
7
- `,Xl=s.div`
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- position: relative;
12
- cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
13
- color: ${e=>e.theme.colors.hero};
14
- &:hover {
15
- color: ${e=>e.theme.colors.primary};
16
- }
17
- `,ec=s.div`
18
- width: 100%;
19
- display: flex;
20
- flex-shrink: 0;
21
- flex-direction: column;
22
- background: ${e=>e.theme.colors.grey4};
23
- box-sizing: border-box;
24
- position: sticky;
25
- top: 0;
26
- z-index: 6;
27
- `,tc=s.div`
28
- display: flex;
29
- flex-direction: column;
30
- align-items: center;
31
- padding-left: ${e=>Ri.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
- padding-right: ${e=>Ri.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
- `,nc=s.div`
34
- display: flex;
35
- align-items: baseline;
36
- justify-content: end;
37
- gap: ${o.sp4};
38
- flex: 1 1 ${o.sp0};
39
- `,oc=s.div`
40
- display: flex;
41
- align-items: baseline;
42
- justify-content: start;
43
- gap: ${o.sp4};
44
- flex: 1 1 ${o.sp0};
45
- `,ic=s(Xr)`
46
- width: ${o.sp3};
47
- height: ${o.sp3};
48
- cursor: pointer;
49
- margin-left: ${o.sp1};
50
- color: inherit;
51
- `,ac=s(Qr)`
52
- width: ${o.sp3};
53
- height: ${o.sp3};
54
- margin-left: ${o.sp1};
55
- color: ${tt.success};
56
- `,sc=s(_r)`
57
- cursor: pointer;
58
- width: ${o.sp4};
59
- height: ${o.sp4};
60
- color: ${e=>e.theme.colors.hero};
61
- &:hover {
62
- color: ${e=>e.theme.colors.primary};
63
- }
64
- `,rc=s(zr)`
65
- cursor: pointer;
66
- width: ${o.sp4};
67
- height: ${o.sp4};
68
- color: ${e=>e.theme.colors.hero};
69
- &:hover {
70
- color: ${e=>e.theme.colors.primary};
71
- }
72
- `,lc=s(Fr,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
73
- cursor: pointer;
74
- width: ${o.sp4};
75
- height: ${o.sp4};
76
- color: ${e=>e.theme.colors.hero};
77
- animation: ${e=>e.$spinning?Se`
78
- ${cc} 2s linear infinite;
79
- `:"none"};
80
- &:hover {
81
- color: ${e=>e.theme.colors.primary};
82
- }
83
- `,cc=ei`
84
- 0% {
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- transform: rotate(360deg);
89
- }
90
- `,dc=s.div`
91
- padding-top: ${o.sp0};
92
- padding-bottom: ${o.sp0};
93
- `,Ei=s(Ve)`
94
- color: ${e=>e.theme.colors.hero};
95
- text-align: center;
96
- display: flex;
97
- align-items: center;
98
- justify-content: center;
99
- flex-direction: column;
100
- padding-bottom: ${o.sp4};
101
- `,uc=s.div`
102
- display: flex;
103
- `,hc=s.div`
104
- border: 1px solid ${e=>e.theme.colors.grey3};
105
- width: 100%;
106
- margin-top: -2px;
107
- border-top-right-radius: ${o.sp2};
108
- border-top-left-radius: ${o.sp2};
109
- border-bottom-right-radius: ${o.sp2};
110
- border-bottom-left-radius: ${o.sp2};
111
- `,pc=s.div`
112
- display: flex;
113
- height: ${o.sp4};
114
- `,mc=s.div`
115
- text-align: center;
116
- display: flex;
117
- align-items: center;
118
- justify-content: center;
119
- flex-wrap: wrap;
120
- `,gc=s.div`
121
- display: flex;
122
- flex-direction: column;
123
- `,xc=s(En)`
124
- width: ${o.sp3};
125
- height: ${o.sp3};
126
- margin-right: ${o.sp1};
127
- path {
128
- stroke-width: 2;
129
- }
130
- `,_n=s.span`
131
- font-weight: ${Yo.regular};
132
- color: ${e=>e.theme.colors.primary};
133
- `,fc=s.span`
134
- font-weight: ${Yo.medium};
135
- color: ${e=>e.theme.colors.primary};
136
- `,yc=s.span`
137
- color: ${e=>e.theme.colors.primary};
138
- text-decoration: underline;
139
- text-decoration-color: ${e=>e.theme.colors.grey2};
140
- cursor: pointer;
141
- display: flex;
142
- align-items: center;
143
- transition: text-decoration-color 0.2s;
144
- .copy-icon {
145
- color: ${e=>e.theme.colors.hero};
146
- transition: color 0.2s;
147
- }
148
- &:hover {
149
- .copy-icon {
150
- color: ${e=>e.theme.colors.primary};
151
- }
152
- text-decoration-color: ${e=>e.theme.colors.primary};
153
- }
154
- `,Ri={subSectionContainerLeftRightPadding:new ae(x[3],x[6],x[8])},Cc=({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:h,...p}=r,a={...p},{threads:d,isLoading:l}=Pr(a,!1,!1),m=d.filter(u=>u.id.includes(Wa)===!1);return t.jsxs(Xl,{isDisabled:l,onClick:e,"data-testid":B("comment-icon"),children:[t.jsx(Br,{count:m.length,isLoading:l}),t.jsx(Ql,{})]})},wc=({headerData:e,refreshStatus:n,searchText:c,companyName:r,companyId:h,isZeniUser:p,onAllThreadsClick:a,onClose:d,onRefresh:l,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&l()};return t.jsx(nc,{children:e.rightSection.map((g,f)=>{switch(g){case"search":return t.jsx(pr,{isSearchOpen:(c.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:c,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:o.sp4},searchIconMarginRight:o.sp0,onSearchTextChanged:C=>{m(C)},downloadPresent:!1},f+g);case"refresh":return t.jsx(Ce,{display:"block",placement:"bottom",title:ql,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(lc,{onClick:u,$spinning:n==="In-Progress","data-testid":B("refresh-icon")})},f+g);case"comment":return p===!1?null:t.jsx(Cc,{companyId:h,companyName:r,onAllThreadsClick:a});case"close":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:Kl,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(sc,{onClick:d,"data-testid":B("close-icon")})},f+g)}})})},bc=({headerData:e,onBack:n})=>t.jsx(oc,{children:e.leftSection.map((c,r)=>{switch(c){case"back":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:Ul,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(rc,{onClick:n,"data-testid":B("back-button")})},r+c)}})}),Di=({text:e,linkText:n,windowSize:c,isCopied:r,onLinkClick:h})=>{if(n==null||!n)return t.jsxs(_n,{windowSize:c,children:[e," "]});const p=e.indexOf(n);if(p===-1)return t.jsxs(_n,{windowSize:c,children:[e," "]});const a=e.substring(0,p),d=e.substring(p+n.length);return t.jsxs(t.Fragment,{children:[a?t.jsxs(_n,{windowSize:c,children:[a.trim()," "]}):null,t.jsx(Ce,{display:"flex",placement:"right",title:Fa.test(n)?r?Gl:Jl:Yl,enterTouchDelay:600,children:t.jsxs(yc,{onClick:()=>h?.(n),"data-testid":B("pre-link"),children:[n,r?t.jsx(ac,{className:"success-icon"}):t.jsx(ic,{className:"copy-icon"})]})}),d?t.jsxs(_n,{windowSize:c,children:[d," "]}):null]})},Oi=({subTitles:e})=>{const n=Te(),[,c]=mr(),[r,h]=i.useState(!1),p=i.useRef(null),a=i.useCallback(d=>{Fa.test(d)?(c(d),h(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{h(!1)},2e3)):window.open(d,"_blank","noopener,noreferrer")},[c]);return i.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),t.jsx(gc,{children:e.map((d,l)=>t.jsxs(mc,{children:[d.pre?t.jsx(Di,{text:d.pre,linkText:d.preLink,windowSize:n,isCopied:r,onLinkClick:a}):null,d.prefixIconName?t.jsx(t.Fragment,{children:d.prefixIconName==="zeniAIIcon"?t.jsx(xc,{}):t.jsx(t.Fragment,{})}):null,d.bold?t.jsx(t.Fragment,{children:t.jsxs(fc,{windowSize:n,children:[d.bold," "]})}):null,d.post?t.jsx(Di,{text:d.post,linkText:d.postLink,windowSize:n,isCopied:r,onLinkClick:a}):null]},l+d.bold+d.pre+d.post))})};function vc(e){const{headerData:n,currentTab:c,completionStatus:r,onUpdateTab:h,selectedReconAccountId:p,getTabCountAndFetchState:a,reconcileDetailPageFetchState:d,forceShowSubtitle:l,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:g,navBarCustomElement:f,titleStyle:C={}}=e,w=a("autoCategorized")?.count??0,v=a("review")?.count??0,k=a("reconcile")?.count??0,y=n.tabs.length>0||n.subTitle.length>0,R=m==="transaction_categorization"&&c==="autoCategorized",I=m==="reconciliation"&&g==="review"&&p!=null,S=m==="reconciliation"&&g==="reconcile"&&p!=null,T=R?w>0:I?d==="In-Progress"?!0:v>0:S?d==="In-Progress"?!0:k>0:r!=="complete",D=wt(),A=Te();let O=[];return n.tabs.length>0&&(O=n.tabs.map(b=>({label:b.label,id:b.id,countDetails:a(b.id)}))),t.jsxs(ec,{children:[t.jsx(cr,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:D.colors.grey4,onBackClick:()=>null,titleStyle:C,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(bc,{...e}),rightSideComponent:t.jsx(wc,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(Ue,{controller:y===!0,children:t.jsx(tc,{windowSize:A,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(dc,{windowSize:A,children:t.jsx(dr,{allTabs:O,selectedTab:m==="transaction_categorization"?c??O[0].id:g??O[0].id,onTabChange:b=>{if(m==="transaction_categorization"){const $=El(b.id);$!=null&&h($)}else if(m==="reconciliation"){const $=Rl(b.id);$!=null&&u($)}},maximumCountLimit:Zl})}),t.jsx(hc,{windowSize:A}),t.jsx(pc,{}),t.jsx(Ue,{controller:T===!0||l===!0,children:t.jsx(Ei,{windowSize:A,children:n.tabs.map((b,$)=>(m==="reconciliation"?b.id===g:b.id===c)?t.jsx(uc,{children:t.jsx(Oi,{subTitles:b.subTitle})},$+b.id):null)})})]}):t.jsx(Ue,{controller:T===!0||l===!0,children:t.jsx(Ei,{windowSize:A,children:t.jsx(Oi,{subTitles:n.subTitle})})})})})]})}const Sc=1;function jc({name:e,checkBoxes:n,mode:c,isDisabled:r,style:h,labelStyle:p,labelCheckBoxStyle:a,checkBoxStyle:d,width:l,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:g,checkBoxContainerStyle:f,draggable:C=!1,selectionLimit:w,infoIconContainerStyle:v,onDragStart:k,rowHeight:y=40,initialScrollOffSet:R,onScroll:I}){const S=Te(),T=i.useRef(null),{control:D}=Qo(),A=n.find(M=>M.groupLabel),O=n.filter(M=>!M.groupLabel),b=[];for(const M of O)if(M.isException||b.push(M.value),w!=null&&b.length===w+1)break;const $=n.filter(M=>M.defaultChecked).map(M=>M.value);return t.jsx(Qa,{control:D,name:e,rules:m,defaultValue:$,render:({field:{value:M,ref:N,onChange:G}})=>{const z=V=>{Ic({event:V,value:M,allCheckBoxValues:b,groupLabelCheckBox:A,onChange:G})};return t.jsxs($c,{style:h,windowSize:S,children:[A&&t.jsx(oi,{checkBox:A,index:0,value:M,allCheckBoxValues:b,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:g,checkBoxStyle:d,labelCheckBoxStyle:a,labelStyle:p,width:l,draggable:C,groupLabelCheckBox:A,infoIconContainerStyle:v,checkedIconColor:u,isDisabled:r,selectionLimit:w,onDragStart:k,ref:N,onChangeHandler:z}),t.jsx(Lc,{children:t.jsx(to,{style:{height:"100%",width:"100%"},children:({height:V,width:de})=>t.jsx(no,{ref:T,height:V,width:de,itemCount:O.length,itemSize:()=>y,estimatedItemSize:y,initialScrollOffset:R??0,onScroll:({scrollOffset:_})=>{I?.(_)},overscanCount:Sc,itemKey:_=>O[_].value,itemData:{checkBoxes:O,value:M,allCheckBoxValues:b,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:g,checkBoxStyle:d,labelCheckBoxStyle:a,labelStyle:p,width:l,draggable:C,groupLabelCheckBox:A,infoIconContainerStyle:v,checkedIconColor:u,isDisabled:r,selectionLimit:w,onDragStart:k,ref:N,onChange:G,handleChangeEvent:z,rowHeight:y},children:kc})})})]})}})}const kc=({index:e,style:n,data:c})=>{const r=i.useRef(null),{checkBoxes:h,value:p,allCheckBoxValues:a,mode:d,name:l,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:g,labelCheckBoxStyle:f,labelStyle:C,width:w,draggable:v,groupLabelCheckBox:k,infoIconContainerStyle:y,checkedIconColor:R,isDisabled:I,selectionLimit:S,onDragStart:T,ref:D,handleChangeEvent:A}=c,O=h[e];return t.jsx(Oc,{style:{...n,width:"100%"},ref:r,children:t.jsx(oi,{checkBox:O,index:e,value:p,allCheckBoxValues:a,mode:d,name:l,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:g,labelCheckBoxStyle:f,labelStyle:C,width:w,draggable:v,groupLabelCheckBox:k,infoIconContainerStyle:y,checkedIconColor:R,isDisabled:I,selectionLimit:S,onDragStart:T,ref:D,onChangeHandler:A})})},oi=i.forwardRef((e,n)=>{const{value:c,checkBox:r,groupLabelCheckBox:h,allCheckBoxValues:p,selectionLimit:a,mode:d,checkBoxStyle:l,labelCheckBoxStyle:m,isDisabled:u,draggable:g,checkBoxContainerStyle:f,infoIconContainerStyle:C,name:w,index:v,width:k,checkedIconColor:y,checkBoxIconStyle:R,labelStyle:I,onDragStart:S,onChangeHandler:T}=e,D=Te(),A=M=>{typeof n=="function"?n(M):n&&(n.current=M)};let O=c.includes(r.value);const b=Array.from(new Set([...c,r.value]));h?.value===r.value&&c.length>0&&(a!=null?O=b.length===p.length||b.length===a+1:O=p.every(M=>b.includes(M)===!0));const $=()=>d==="off"||r.isException?D==="small"?{display:"none",...l}:{visibility:"hidden",...l}:r.groupLabel?p.length===1&&p[0]===h?.value?{visibility:"hidden",...m}:m:l;return t.jsxs(Ac,{mode:d,draggable:g===!0,onDragStart:M=>{S?.(M,r.value)},style:f,isDisabled:u,isSelected:O,exceptionMode:r.exceptionMode,children:[r.prefix?t.jsx(Tc,{className:"prefix-box",children:r.prefix}):null,r.isException?t.jsx(Ec,{style:C,className:"checkbox-alert",children:t.jsx(Ce,{style:{padding:`12px ${o.sp3}`},title:r.exceptionInfo??"",placement:"bottom-start",children:r.exceptionType==="info"?t.jsx(Rc,{}):t.jsx(Dc,{})})}):t.jsx(rl,{name:`${w}.${r.value}`,checkBoxValue:r.value,value:O,checkedIconColor:y,isDisabled:u||!r.groupLabel&&!O&&a!=null&&b.length===a+1?"disabled":void 0,checkBoxStyle:$(),checkBoxIconStyle:R,ref:A,onChange:T}),typeof r.label=="string"&&r.label?t.jsx(ll,{isDisabled:u,label:r.label,labelStyle:I,htmlFor:`${w}.${r.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:k,backgroundColor:"inherit",...I}}):r.label]},`${r.value}_${v}`)});oi.displayName="CheckBoxWithLabel";const Ic=({event:e,value:n,allCheckBoxValues:c,groupLabelCheckBox:r,onChange:h})=>{const p=e.currentTarget.value,a=e.currentTarget.checked,d=r?.value,l=new Set(n);if(p===d){h(a?Array.from(new Set([d,...c])):[]);return}a?l.add(p):l.delete(p);const m=c.every(u=>l.has(u));d!=null&&(m&&!l.has(d)?l.add(d):!m&&l.has(d)&&l.delete(d)),h(Array.from(l))},$c=s.div`
155
- display: flex;
156
- flex-direction: column;
157
- width: 100%;
158
- height: 100%;
159
- `,Lc=s.div`
160
- flex: 1;
161
- overflow: hidden;
162
- `,Tc=s.div`
163
- opacity: 0;
164
- `,Ac=s.div`
165
- display: flex;
166
- align-items: center;
167
- flex-direction: row;
168
- width: 100%;
169
- min-height: ${o.sp4};
170
-
171
- ${e=>e.mode==="checked_or_hover"&&Se`
172
- input:not(:checked) ~ .unchecked-icon {
173
- opacity: 0;
174
- }
175
-
176
- :hover {
177
- input:not(:checked) ~ .unchecked-icon,
178
- .prefix-box {
179
- opacity: 1;
180
- }
181
- }
182
- `};
183
-
184
- ${e=>e.mode==="hover_only"&&Se`
185
- input:not(:checked) ~ .unchecked-icon,
186
- input:checked ~ .checked-icon {
187
- opacity: 0;
188
- }
189
-
190
- :hover {
191
- input:not(:checked) ~ .unchecked-icon,
192
- input:checked ~ .checked-icon,
193
- .prefix-box {
194
- opacity: 1;
195
- }
196
- }
197
- `};
198
-
199
- label {
200
- color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
201
- ${e=>e.isDisabled==="disabled"&&Se`
202
- color: ${e.theme.colors.grey2};
203
- `};
204
- cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
205
- pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
206
- }
207
-
208
- .checkbox-alert {
209
- opacity: 0;
210
- }
211
-
212
- ${e=>e.exceptionMode==="hover_only"&&Se`
213
- :hover {
214
- .checkbox-alert {
215
- opacity: 1;
216
- }
217
- }
218
- `}
219
-
220
- ${e=>e.exceptionMode==="checked_or_hover"&&Se`
221
- .checkbox-alert {
222
- opacity: 1;
223
- }
224
- `}
225
- `,Ec=s.div`
226
- cursor: pointer;
227
- `,Rc=s(Na)`
228
- height: ${o.sp3};
229
- width: ${o.sp3};
230
- color: ${e=>e.theme.colors.hero};
231
- background-color: ${e=>e.theme.colors.grey4};
232
- border-radius: 50%;
233
- `,Dc=s(ss)`
234
- height: ${o.sp3};
235
- width: ${o.sp3};
236
- color: ${e=>e.theme.colors.hero};
237
- background-color: ${e=>e.theme.colors.grey4};
238
- border-radius: 50%;
239
- `,Oc=s.div`
240
- width: 100%;
241
- box-sizing: border-box;
242
- `,Mc=e=>i.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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}),i.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}),i.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}),i.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}),i.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}),i.createElement("g",{opacity:.2},i.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"})),i.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"}),i.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),i.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.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}),i.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}),i.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}),i.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})),_c=e=>i.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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}),i.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),i.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}),i.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"}),i.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"}),i.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),i.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),i.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),i.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}),i.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),i.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),i.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),Pc=e=>i.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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}),i.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}),i.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}),i.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"}),i.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}),i.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}),i.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}),i.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}),i.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}),i.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}),i.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}),i.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),Bc=e=>i.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),i.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),i.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"}),i.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"}),i.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"})),Fc=s.div`
243
- width: 100%;
244
- display: flex;
245
- justify-content: center;
246
- align-items: center;
247
- flex: 1;
248
- background: ${e=>e.theme.colors.grey4};
249
- box-sizing: border-box;
250
- `,zc=s(_c)`
251
- width: 90px;
252
- height: 90px;
253
- `,Nc=s(Pc)`
254
- width: 90px;
255
- height: 90px;
256
- `,Vc=s(Mc)`
257
- width: 90px;
258
- height: 90px;
259
- `,Hc=s(Bc)`
260
- width: 90px;
261
- height: 90px;
262
- `,Wc=s.div`
263
- display: flex;
264
- align-items: center;
265
- justify-content: center;
266
- flex-direction: column;
267
- `,Uc=s(Nr)`
268
- margin-top: ${o.sp2};
269
- color: ${e=>e.theme.colors.brandColorJade};
270
- `,qc=s(Vr)`
271
- color: ${e=>e.theme.colors.primary};
272
- `,Kc=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(zc,{});case"je_schedules":case"reconciliation":return t.jsx(Hc,{});case"flux_analysis":return t.jsx(Vc,{});case"missing_receipts":default:return t.jsx(Nc,{})}};function Tt(e){const{title:n,subTitle:c}=e;return t.jsx(Fc,{children:t.jsxs(Wc,{children:[t.jsx(Kc,{...e}),t.jsx(Uc,{children:n}),t.jsx(qc,{children:c})]})})}const{common:{headers:{transactions:Jc,jeSchedules:Gc,fluxAnalysis:Yc,missingReceipts:Zc,insights:Qc,reconciliation:Mi},strings:{empty:Gt}},expenseAutomation:{transactions:{tabs:_i,subTitles:{review:{item1:Pn,item2:Bn},autoCategorized:{item1:Fn,item2:Xc}},searchPlaceholder:ed,allDoneText:td},jeSchedules:{subTitles:{item1:nd,item2:od},searchPlaceholder:id,allDoneText:ad},missingReceipts:{subTitles:sd,searchPlaceholder:rd,allDoneText:ld},fluxAnalysis:{subTitles:{item1:cd,item2:dd},searchPlaceholder:ud,emptyPageTexts:{youDidIt:hd,allReviewed:pd}},accountRecon:{review:{allDoneText:Pi},reconcile:{allDoneText:md},tabs:Bi,titles:{item1:gd,item2:xd},subTitles:{review:{item1:fd,item2:zn},reconcile:{item1:Nn,item2:yd}}}}}=Ae.getLocalizedStrings(),Je=(e,n,c,r,h)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Jc,subTitle:[],tabs:[{label:_i.review,id:"review",subTitle:[{pre:Pn.pre,bold:Pn.bold,prefixIconName:Pn.prefixIconName,post:Pn.post},{pre:Bn.pre,bold:Bn.bold,prefixIconName:Bn.prefixIconName,post:Bn.post}]},{label:_i.autoCategorized,id:"autoCategorized",subTitle:[{pre:Fn.pre,bold:Fn.bold,prefixIconName:Fn.prefixIconName,post:Fn.post.replace("#number",n!=null&&n!=0?n.toString():"")},Xc]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:ed,allDoneText:td};case"je_schedules":return{key:"je_schedules",title:Gc,subTitle:[nd,od],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:id,allDoneText:ad};case"missing_receipts":return{key:"missing_receipts",title:Zc,subTitle:[sd],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:rd,allDoneText:ld};case"flux_analysis":return{key:"flux_analysis",title:Yc,subTitle:[cd,dd],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:ud,allDoneText:{title:hd,subTitle:pd}};case"month_end_insights":return{key:"month_end_insights",title:Qc,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Gt,allDoneText:{title:Gt,subTitle:Gt}};case"reconciliation":return c==null?{key:"reconciliation",title:Mi,subTitle:[gd,xd],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Gt,allDoneText:{title:Gt,subTitle:Gt}}:{key:"reconciliation",title:r??Mi,subText:h??void 0,subTitle:[],tabs:[{label:Bi.review,id:"review",subTitle:[fd,{pre:zn.pre,bold:zn.bold,prefixIconName:zn.prefixIconName,post:zn.post}],allDoneText:Pi},{label:Bi.reconcile,id:"reconcile",subTitle:[{pre:Nn.pre,bold:Nn.bold,prefixIconName:Nn.prefixIconName,post:Nn.post},yd],allDoneText:md}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Gt,allDoneText:Pi}}},{common:{strings:{empty:Cd}},expenseAutomation:{accountRecon:{reconcile:{header:Wt}}}}=Ae.getLocalizedStrings(),wd={key:"date",value:Wt.date,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginLeft:x[4],marginRight:x[3]}},bd={key:"clearedDate",value:Wt.clearedDate,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3],display:"none"}},vd={key:"type",value:Wt.type,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Sd={key:"payee",value:Wt.payee,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},jd={key:"account",value:Wt.account,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},kd={key:"transactionDirection",value:Wt.direction,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Id={key:"memo",value:Wt.memo,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},$d={key:"amount",value:Wt.amount,sortOrder:"ascending",width:new ae(12.75,12.75,12.75),customStyle:{marginRight:x[3]}},Ld={key:"recommended",value:Cd,sortOrder:"ascending",width:new ae(1.25,1.25,1.25),customStyle:{marginRight:x[4],marginLeft:x[0]}},Fe=[wd,bd,vd,Sd,jd,kd,Id,$d,Ld],Td=50,bn={sortKey:"date",sortOrder:"descending"};function Ad({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const c=Te(),[r,h]=i.useState(Fo(Fe));i.useEffect(()=>{const d=[...r];for(const l of d)l.key===e.sortKey?l.sortOrder=e.sortOrder:l.sortOrder="ascending";h(d)},[e.sortKey,e.sortOrder]);const p=(d,l)=>{let m=l;e.sortKey===d&&(m=l==="ascending"?"descending":"ascending"),n(d,m)},a=d=>{p(d.key,d.sortOrder)};return t.jsx(Od,{headerHeight:Td,children:r.map(d=>t.jsx(Rd,{columnWidth:d.width,windowSize:c,sortDataValue:e.sortKey,actualDataValue:d.key,style:d.customStyle,children:t.jsxs(Fd,{isVisible:d.key!=="recommended",children:[t.jsx(Dd,{"data-testid":B("reconcile-tab-list-sort",d.value),onClick:()=>a(d),children:t.jsx(bt,{children:d.value})}),t.jsx(Md,{sortConfig:e,headerData:d,children:t.jsx(_d,{})}),t.jsx(Pd,{isVisible:e.sortKey===d.key&&(e.sortKey!==bn.sortKey||e.sortOrder!==bn.sortOrder),children:t.jsx(Bd,{"data-testid":B("reconcile-tab-list-reset-sort",bn.sortKey),onClick:()=>n(bn.sortKey,bn.sortOrder)})})]})},d.key))})}const Ed=Al.memo(Ad),Rd=s.div`
273
- color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
274
- :hover {
275
- color: ${e=>e.theme.colors.primary};
276
- }
277
- width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
278
- display: flex;
279
- align-items: center;
280
- height: 100%;
281
- justify-content: flex-start;
282
- gap: 6px;
283
- z-index: auto;
284
- position: relative;
285
- `,Dd=s.div`
286
- display: flex;
287
- gap: 5px;
288
- cursor: pointer;
289
- `,Od=s(At)`
290
- width: fit-content;
291
- height: ${e=>`${e.headerHeight}px`};
292
- width: calc(100% - 20px);
293
- z-index: 6;
294
- display: flex;
295
- align-items: center;
296
- background-color: ${e=>e.theme.colors.grey4};
297
- box-sizing: border-box;
298
- padding: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp0};
299
- position: sticky;
300
- color: ${e=>e.theme.colors.grey1};
301
- `,Md=s.div`
302
- display: flex;
303
- align-items: center;
304
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
305
- ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
306
- `,_d=s(oo)`
307
- width: ${o.sp2};
308
- height: ${o.sp2};
309
- `,Pd=s.div`
310
- display: ${e=>e.isVisible?"flex":"none"};
311
- align-items: center;
312
- padding-top: 2px;
313
- cursor: pointer;
314
- color: ${e=>e.theme.colors.grey1};
315
- &:hover {
316
- color: ${e=>e.theme.colors.primary};
317
- }
318
- `,Bd=s(io)`
319
- width: 12px;
320
- height: 12px;
321
- `,Fd=s.div`
322
- display: ${e=>e.isVisible?"flex":"none"};
323
- `,zd=54,Nd=72,{common:{strings:{hyphen:po}}}=Ae.getLocalizedStrings(),{dateFormat:Fi}=Ae.getLocalizedStrings();function Vd({selectedTransactionIds:e,transaction:n,transactionId:c}){const r=Te(),h=wt(),[p,a]=i.useState(!1),d=e.includes(c),l=p||d;return t.jsx(Hd,{id:c,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:t.jsxs(Wd,{isSelected:l,totalHeight:zd,children:[t.jsx(kt,{windowSize:r,responsiveWidth:Fe[0].width,style:Fe[0].customStyle,children:t.jsx(Yt,{isSelected:l,children:n.date.format(Fi.visual.MMMDCommaYYYYformat)})}),Fe[1].customStyle.display!=="none"?t.jsx(kt,{windowSize:r,responsiveWidth:Fe[1].width,style:Fe[1].customStyle,children:t.jsx(Yt,{isSelected:l,children:n.clearedDate!=null?n.clearedDate.format(Fi.visual.MMMDCommaYYYYformat):t.jsx("span",{children:po})})}):null,t.jsx(kt,{windowSize:r,style:Fe[2].customStyle,responsiveWidth:Fe[2].width,children:t.jsx(Kd,{isSelected:l,children:t.jsx(Ud,{isSelected:l,children:il(n.type)})})}),t.jsx(kt,{windowSize:r,style:Fe[3].customStyle,responsiveWidth:Fe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(it,{text:n.merchantName,itemTextStyle:{color:l?h.colors.primary:h.colors.hero}}):t.jsx(Yt,{isSelected:l,children:t.jsx("span",{children:po})})}),t.jsx(kt,{windowSize:r,style:Fe[4].customStyle,responsiveWidth:Fe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(it,{text:n.accountName,itemTextStyle:{color:l?h.colors.primary:h.colors.hero}}):t.jsx(Yt,{isSelected:l,children:t.jsx("span",{children:po})})}),t.jsx(kt,{windowSize:r,style:Fe[5].customStyle,responsiveWidth:Fe[5].width,children:t.jsx(Yt,{isSelected:l,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(kt,{windowSize:r,style:Fe[6].customStyle,responsiveWidth:Fe[6].width,children:t.jsx(it,{text:n.memo,itemTextStyle:{color:l?h.colors.primary:h.colors.hero}})}),t.jsx(kt,{windowSize:r,style:Fe[7].customStyle,responsiveWidth:Fe[7].width,children:t.jsx(Yt,{isSelected:l,children:Ze("0,0.[00]",n.amount)})}),t.jsx(kt,{windowSize:r,responsiveWidth:Fe[8].width,style:Fe[8].customStyle,children:t.jsx(Yt,{isSelected:l,children:n.isZeniRecommended?t.jsx(qd,{}):null})})]})})}const Hd=s.div`
324
- box-sizing: border-box;
325
- width: 100%;
326
- display: flex;
327
- padding-right: ${o.sp8};
328
- `,Wd=s.div`
329
- cursor: pointer;
330
- display: flex;
331
- border-radius: ${o.sp2};
332
- width: 100%;
333
- align-items: center;
334
- height: ${e=>`${e.totalHeight}px`};
335
- background-color: ${e=>e.theme.colors.grey5};
336
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
337
- border-color: ${e=>e.isSelected===!0?e.theme.colors.primary:"none"};
338
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
339
- :hover {
340
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
341
- }
342
- `,kt=s.div`
343
- width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
344
- display: flex;
345
- align-items: center;
346
- justify-content: flex-start;
347
- height: 100%;
348
- z-index: auto;
349
- position: relative;
350
- `,Yt=s(Ve)`
351
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
- span {
353
- padding-left: ${o.sp3};
354
- }
355
- `,Ud=s(bt)`
356
- text-transform: capitalize;
357
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
- `,qd=s(En)`
359
- width: ${o.sp3};
360
- height: ${o.sp3};
361
- margin-right: ${o.sp1};
362
- path {
363
- stroke-width: 2;
364
- }
365
- `,Kd=s.div`
366
- padding: 1px 6px;
367
- border-radius: ${o.sp1};
368
- border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
369
- `,Jd=Ae.getLocalizedStrings(),{common:{all:zi,strings:{empty:Ni}}}=Jd,Vi="selectedTransactionIds",Gd="expenseAutomationBankReconReconcilePage",Yd=e=>`${e}_form`;function Zd({currentFooterFormId:e,localData:n,matchedTransactions:c,sortConfig:r,onSaveReconciliation:h,selectedAccountId:p,onReconTabColumnSortConfigChanged:a,onUpdateReconcileTabLocalData:d,setCurrentFooterFormId:l}){const m=an({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Ed,{onReconTabColumnSortConfigChanged:a,sortConfig:r}),value:zi.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},g=c.map(v=>({label:t.jsx(Vd,{transaction:v,selectedTransactionIds:n.selectedTransactionIds,transactionId:v.id}),value:v.id,defaultChecked:!1,groupLabel:!1})),f=[u,...g],C=async v=>{const k=v[Vi].filter(y=>y!=zi.toLocaleLowerCase());d(k)};i.useEffect(()=>{const v=m.watch(k=>{k!=null&&An(()=>C(k))});return()=>{v.unsubscribe()}}),i.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&l("expenseAutomationBankReconReconcilePage"),()=>{l("expenseAutomationPage")}),[]);const w=i.useCallback(()=>{h({reconcileAction:"reconcile"})},[h]);if(c.length===0){const v=Je("reconciliation",void 0,p).tabs.find(k=>k.id==="reconcile")?.allDoneText;return t.jsx(tu,{children:t.jsx(Tt,{tab:"missing_receipts",title:v?.title??Ni,subTitle:v?.subTitle??Ni})})}return t.jsx(Qd,{children:t.jsx(sn,{...m,children:t.jsx(Xd,{onSubmit:m.handleSubmit(w),id:Yd(Gd),children:t.jsx(eu,{children:t.jsx(jc,{name:Vi,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:Nd,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Qd=s.div``,Xd=s.form``,eu=s.div`
370
- height: calc(100vh - 350px);
371
- `,tu=s.div`
372
- height: 100%;
373
- display: flex;
374
- justify-content: center;
375
- align-items: center;
376
- `,No=69,ye={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},ys=s.div`
377
- display: flex;
378
- flex-direction: column;
379
- background-color: ${e=>e.theme.colors.grey4};
380
- width: 100%;
381
- min-height: 100%;
382
- height: calc(100vh - 500px);
383
- overflow-x: scroll;
384
- align-items: center;
385
- `,Cs=s.div`
386
- display: flex;
387
- flex-direction: column;
388
- gap: ${o.sp5};
389
- align-items: flex-start;
390
- padding-bottom: ${o.sp9};
391
- width: 100%;
392
- `,ws=s.div`
393
- width: 100%;
394
- `,bs=s.div`
395
- width: 100%;
396
- `,ii=s.div`
397
- display: flex;
398
- flex-direction: row;
399
- padding: ${o.sp2};
400
- padding-right: ${o.sp3};
401
- justify-content: space-between;
402
- border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
403
- `,ai=s.div`
404
- display: flex;
405
- flex-direction: row;
406
- justify-content: space-between;
407
- padding: ${o.sp2};
408
- padding-right: ${o.sp3};
409
- `,nu=s.div`
410
- border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
411
- display: flex;
412
- flex-direction: row;
413
- justify-content: space-between;
414
- padding: ${o.sp2};
415
- padding-right: ${o.sp3};
416
- `,ou=s.div`
417
- padding: ${o.sp2} ${o.sp3};
418
- `,si=s.div`
419
- display: flex;
420
- `,iu=s.div`
421
- display: flex;
422
- align-items: center;
423
- justify-content: center;
424
- gap: ${o.sp1};
425
- padding: ${o.sp2} ${o.sp0};
426
- background-color: ${e=>e.theme.colors.grey3};
427
- border-bottom-left-radius: ${o.sp2};
428
- border-bottom-right-radius: ${o.sp2};
429
- `,ri=s.div`
430
- display: flex;
431
- flex-direction: column;
432
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
433
- border-radius: ${o.sp2};
434
- background-color: ${e=>e.theme.colors.grey5};
435
- box-shadow: ${e=>e.theme.colors.elevation1};
436
- cursor: pointer;
437
- border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
438
- .highlight {
439
- color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
440
- }
441
- :hover {
442
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
443
- }
444
- :hover .highlight {
445
- color: ${e=>e.theme.colors.primary};
446
- }
447
- `,oe=s.div`
448
- display: flex;
449
- flex-direction: column;
450
- width: 180px;
451
- padding: ${o.sp2};
452
- .hover-background {
453
- border-radius: ${o.sp1};
454
- background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
455
- .select-control {
456
- background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
457
- }
458
- :hover {
459
- background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
460
- .select-control {
461
- background-color: ${e=>e.theme.colors.background};
462
- }
463
- }
464
- :focus-within {
465
- background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
466
- .select-control {
467
- background-color: ${e=>e.theme.colors.background};
468
- }
469
- }
470
- }
471
- .item-value-container {
472
- .grouped-single-select-field__menu {
473
- margin-top: ${o.sp2};
474
- }
475
- }
476
- `,ft=s.div`
477
- padding: ${o.sp2} ${o.sp3};
478
- `,ce=s(bt)`
479
- color: ${e=>e.theme.colors.hero};
480
- `,fe=s(Ve)`
481
- width: 100%;
482
- color: ${e=>e.theme.colors.hero};
483
- white-space: nowrap;
484
- overflow: hidden;
485
- text-overflow: ellipsis;
486
- `,ue=s.div`
487
- display: flex;
488
- gap: ${o.sp1};
489
- color: ${e=>e.theme.colors.primary};
490
- .select-value-container {
491
- .auto-complete-single-select-field__input-container {
492
- .auto-complete-single-select-field__input {
493
- text-align: left;
494
- }
495
- }
496
- .grouped-single-select-field__input-container {
497
- .grouped-single-select-field__input {
498
- text-align: left;
499
- }
500
- }
501
- }
502
- `,li=s.div`
503
- border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
504
- display: flex;
505
- flex-direction: column;
506
- gap: ${o.sp3};
507
- align-items: center;
508
- justify-content: center;
509
- padding: ${o.sp0} 42px;
510
- `,ci=s.div`
511
- flex: 1;
512
- `,vs=s(bt)`
513
- padding: ${o.sp0} 6px;
514
- color: ${tt.info};
515
- border: 1px solid ${tt.info};
516
- border-radius: ${o.sp1};
517
- margin-top: ${o.sp1};
518
- `,Yn=s(At)`
519
- padding: ${o.sp2};
520
- color: ${e=>e.theme.colors.hero};
521
- background: ${e=>e.theme.colors.overlayColor};
522
- border-radius: ${o.sp1};
523
- `,Ye=s(Yn)`
524
- padding: 2px ${o.sp2};
525
- `,Pt=Ae.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Lt=[{key:"date",value:Pt.date,sortOrder:"ascending",width:new ae(20,20),loaderWidth:120},{key:"payee",value:Pt.payee,sortOrder:"ascending",width:new ae(20,20),loaderWidth:212},{key:"memo",value:Pt.memo,sortOrder:"ascending",width:new ae(20,20),loaderWidth:192},{key:"direction",value:Pt.direction,sortOrder:"ascending",width:new ae(15,15),loaderWidth:84},{key:"match",value:Pt.match,sortOrder:"ascending",width:new ae(15,15),loaderWidth:152},{key:"amount",value:Pt.amount,sortOrder:"ascending",width:new ae(10,10),loaderWidth:64}],Vo=[{key:"payee",value:Pt.payee,sortOrder:"ascending",width:new ae(65,65),loaderWidth:212},{key:"amount",value:Pt.amount,sortOrder:"ascending",width:new ae(30,30),loaderWidth:64}],au=e=>{const{sortConfig:n,onColumnSortConfigChanged:c}=e,r=Te(),h=Ht()?Vo:Lt,[p,a]=i.useState(()=>h.map(l=>({...l,sortOrder:l.key===n.sortKey?n.sortOrder:"ascending"})));i.useEffect(()=>{a(h.map(l=>({...l,sortOrder:l.key===n.sortKey?n.sortOrder:"ascending"})))},[n.sortKey,n.sortOrder,h]);const d=(l,m)=>{let u=m;n.sortKey===l&&(u=m==="ascending"?"descending":"ascending"),c(l,u)};return t.jsx(ru,{children:p.map(l=>t.jsxs(lu,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:r,isLastColumn:l.key==="amount",children:[t.jsxs(cu,{"data-testid":B("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>d(l.key,l.sortOrder),children:[t.jsx(bt,{children:l.value}),t.jsx(du,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(uu,{})})]}),t.jsx(hu,{sortDataValue:n.sortKey,windowSize:r,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(pu,{"data-testid":B("account-reconciliation-review-sort-by-date"),onClick:()=>d("date","ascending")})})]},l.key))})},su=i.memo(au),ru=s(At)`
526
- top: 0;
527
- left: 0;
528
- width: fit-content;
529
- min-width: 100%;
530
- z-index: 6;
531
- display: flex;
532
- align-items: center;
533
- box-sizing: border-box;
534
- padding: ${o.sp3} ${o.sp4};
535
- position: sticky;
536
- color: ${e=>e.theme.colors.grey1};
537
- background-color: ${e=>e.theme.colors.grey4};
538
- `,lu=s.div`
539
- color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
540
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
541
- min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
542
- display: flex;
543
- align-items: center;
544
- gap: 5px;
545
- left: ${o.sp0};
546
- justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
547
- `,cu=s.div`
548
- display: flex;
549
- cursor: pointer;
550
- gap: ${o.sp1};
551
- &:hover {
552
- color: ${e=>e.theme.colors.primary};
553
- }
554
- white-space: nowrap;
555
- `,du=s.div`
556
- display: flex;
557
- align-items: center;
558
- transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
559
- ${e=>e.headerData.sortOrder==="ascending"?Se`
560
- padding-top: 2px;
561
- `:Se`
562
- padding-bottom: 2px;
563
- `}
564
- `,uu=s(oo)`
565
- width: ${o.sp2};
566
- height: ${o.sp2};
567
- cursor: pointer;
568
- color: inherit;
569
- `,hu=s.div`
570
- display: ${e=>e.isVisible?"flex":"none"};
571
- align-items: center;
572
- padding-top: 2px;
573
- `,pu=s(io)`
574
- width: 12px;
575
- height: 12px;
576
- cursor: pointer;
577
- color: ${e=>e.theme.colors.hero};
578
- `,ht="accountReconReviewTableSection",{dateFormat:mu,expenseAutomation:gu,common:yt}=Ae.getLocalizedStrings(),{visual:Ss}=mu,{accountRecon:be}=gu,js=e=>[{label:be.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],ks=e=>[{label:be.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Hi=e=>`${ht}_${e}_form`,Re=(e,n)=>`${ht}.${e}.${n}`,xu=e=>{const{sortKey:n,sortOrder:c,accountReconEntity:r,entitySearchAutoCompleteActions:h,allAccountList:p,classList:a,localData:d,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:g,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,refreshStatus:v,updateLocalData:k,onColumnSortConfigChanged:y,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S,bankAccounts:T,creditCards:D}=e,{transactionsToReview:A,account:{accountType:O}}=r,b=i.useRef(null),[$,M]=i.useState(null),N=z=>{const V=A[z],de=ds(V),_=us(V),H=hs(V,O??"bank"),ie=ps(V,O??"bank"),he=ms(V),xe=ti(V),ge=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===$?_||H||ie||he||xe?275+(ge?25:0):de?185+V.recommendedAction.recommendedTransactions.length*40+(ge?25:0):146:72},G=i.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:c}}),[y,n,c]);if(i.useEffect(()=>{M(A[0]?.transactionId??null),b.current?.resetAfterIndex(0)},[n,c]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[$]),i.useEffect(()=>{b.current?.resetAfterIndex(0)},[A.length]),i.useEffect(()=>{v.fetchState==="Completed"&&b.current?.resetAfterIndex(0)},[v]),A.length===0){const z=Je("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(Bu,{children:t.jsx(Tt,{tab:"reconciliation",title:z?.title??yt.strings.empty,subTitle:z?.subTitle??yt.strings.empty})})}return t.jsx(ju,{children:t.jsx(Is.Provider,{value:G,children:t.jsx(to,{children:({height:z,width:V})=>t.jsx(no,{width:V,height:z,innerElementType:$s,ref:b,itemCount:A.length,itemSize:N,itemKey:de=>A[de].transactionId,overscanCount:el,itemData:{transactionsList:A,expandedRowId:$,allAccountList:p,classList:a,accountListNestedAccountHierarchy:l,classListNestedAccountHierarchy:m,localData:d,entitySearchAutoCompleteData:g,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:w,bankAccounts:T,creditCards:D,accountType:O,updateLocalData:k,setExpandedRowId:M,onSaveReconciliation:R,onSaveReconciliationReview:I,onReconMatchedTransactionClick:S},initialScrollOffset:0,children:fu})})})})},Is=i.createContext(void 0),$s=i.forwardRef((e,n)=>{const{children:c,style:r,...h}=e,p=i.useContext(Is);return t.jsxs(ku,{ref:n,style:{...r,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${o.sp0} ${o.sp8}`},...h,children:[p!=null&&t.jsx(su,{onColumnSortConfigChanged:p.onColumnSortConfigChanged,sortConfig:p.sortConfig}),t.jsx(Iu,{children:c})]})});$s.displayName="Account recon review table inner element type";const fu=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{transactionsList:h,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,allAccountList:l,classList:m,localData:u,updateLocalData:g,accountListNestedAccountHierarchy:f,classListNestedAccountHierarchy:C,entitySearchAutoCompleteData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,reviewTabSelectedVendorByTransactionId:S,bankAccounts:T,creditCards:D,accountType:A}=c,O=h[e],b=r!=null&&r===O.transactionId;return t.jsx(Su,{isPanelSelected:b,style:{...n,width:"100%"},children:t.jsx(yu,{transaction:O,expandedRowId:p,setExpandedRowId:a,entitySearchAutoCompleteActions:d,accountListNestedAccountHierarchy:f,allAccountList:l,classList:m,localData:u,updateLocalData:g,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:C,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y,excludeFetchById:R,saveFetchById:I,selectedVendor:S[O.transactionId],bankAccounts:T,creditCards:D,accountType:A})})},yu=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,allAccountList:h,classList:p,classListNestedAccountHierarchy:a,localData:d,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:u,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,setExpandedRowId:v,updateLocalData:k,onSaveReconciliation:y,onSaveReconciliationReview:R,onReconMatchedTransactionClick:I})=>{const S=n===e.transactionId,T=Te(),D=Ht(),A=d[e.transactionId],O=e.recommendedAction.action==="record_bill_payment",b=e.recommendedAction.action==="record_expense",$=ti(e),M=h.find(z=>z.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),N=z=>z.recommendedAction.recommendedTransactions.length>0&&z.recommendedAction.recommendedTransactions[0].merchantName!=null?z.recommendedAction.recommendedTransactions[0].merchantName:yt.strings.hyphen,G=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(wu,{className:"recon-row-card",isQuickViewMode:D,isExpanded:S,children:[t.jsxs(bu,{isExpanded:S,onClick:()=>v(e.transactionId),"data-testid":B("account-reconciliation-review-row",e.transactionId),children:[D?null:t.jsx(un,{windowSize:T,responsiveWidth:Lt[0].width,children:t.jsx(dn,{children:e.transactionDate.format(Ss.MMMDCommaYYYYformat)})}),t.jsx(un,{windowSize:T,responsiveWidth:D?Vo[0].width:Lt[1].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:N(e)})})}),D?null:t.jsxs(t.Fragment,{children:[t.jsx(un,{windowSize:T,responsiveWidth:Lt[2].width,children:t.jsx(dn,{children:t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(un,{windowSize:T,responsiveWidth:Lt[3].width,children:t.jsx(dn,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(un,{windowSize:T,responsiveWidth:Lt[4].width,children:[t.jsx(Ue,{controller:O,children:t.jsx(Fu,{children:t.jsx(zu,{children:be.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Ue,{controller:!O,children:t.jsx(dn,{children:M!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(it,{itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"},text:M.accountName})]}):yt.strings.hyphen})})]})]}),t.jsx(un,{windowSize:T,isLastColumn:!0,responsiveWidth:D?Vo[1].width:Lt[5].width,children:t.jsx(dn,{children:rs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Ue,{controller:S&&A!=null,children:[t.jsx(Cu,{onSaveReconciliation:y,onSaveReconciliationReview:R,updateLocalData:k,saveFetchById:u,excludeFetchById:m,localData:A,classListNestedAccountHierarchy:a,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:r,entitySearchAutoCompleteData:l,selectedVendor:g,bankAccounts:f,creditCards:C,accountType:w,onReconMatchedTransactionClick:I}),t.jsx(Ue,{controller:(O||b||$)&&G!=null,children:t.jsx(Vu,{children:t.jsxs(Hu,{children:[w==="credit_card"?be.review.creditCardDetail:be.review.bankDetail,yt.strings.colon," ",G]})})})]})]})},Cu=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:c,allAccountList:r,classList:h,classListNestedAccountHierarchy:p,localData:a,entitySearchAutoCompleteData:d,excludeFetchById:l,saveFetchById:m,selectedVendor:u,bankAccounts:g,creditCards:f,accountType:C,updateLocalData:w,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:y})=>{const R=wt(),I=Ht(),[S,T]=i.useState(!a.vendor?.id),[D,A]=i.useState(!a.customer?.id),[O,b]=i.useState(a.categoryId==null),[$,M]=i.useState(a.classId==null),[N,G]=i.useState(a.bankAccountId==null),[z,V]=i.useState(a.creditCardId==null),[de,_]=i.useState(!a.memo),H=ds(e),ie=us(e),he=ps(e,C??"bank"),xe=hs(e,C??"bank"),ge=ms(e),q=ti(e),K=i.useMemo(()=>{if(!ie&&!q)return zt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return zt(n,u?.recommendations);const j=r.find(je=>je.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return zt(n,[{account:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,r,n]),Y=i.useMemo(()=>{if(!ie&&!q)return Jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Jn(p,u?.recommendations);const j=h.find(je=>je.classId===e.recommendedAction.recommendedTransactions[0]?.classId),se=j!=null?{...j,reason:be.review.zeniGptRecommendation,min:0,max:0}:void 0;return Jn(p,[{class:se}])},[ie,q,u,e.recommendedAction.recommendedTransactions,h,p]),P=an({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d]),values:i.useMemo(()=>Wi(e,a,K,r,Y,g,f,d),[e,a,Y,r,K,g,f,d])}),E=async(j,se)=>{j.includes("memo")||w(Ui(se,e,d,r),e.transactionId,j.includes("vendor"))};i.useEffect(()=>{const j=P.watch((se,{name:je})=>{je!=null&&se!=null&&An(()=>E(je,se))});return()=>{j.unsubscribe()}});const Z=i.useCallback(j=>{if(!I){if(ie||ge||q){if((ie||q)&&a.vendor==null){T(!1),P.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(ge&&a.customer==null){A(!1),P.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(a.categoryId==null){b(!1),P.setError(Re(e.transactionId,"category"),{type:"required"});return}}w(Ui(j,e,d,r),e.transactionId,!1),k(e.transactionId)}},[I,ie,q,ge,w,e,d,r,k,a.categoryId,a.vendor,a.customer]),F=P.watch(Re(e.transactionId,"vendor")),X=P.watch(Re(e.transactionId,"customer")),J=i.useRef(),W=i.useMemo(()=>ie||q?"vendor":ge?"customer":null,[ie,q,ge]),U=(j,se)=>{W!=null&&c.onAutoCompleteInputChange?.(j,W),J.current=se};i.useEffect(()=>{d.entityAutoCompleteView.fetchState==="Completed"&&((ie||q)&&J.current?.(ts(d.entityAutoCompleteView)),ge&&J.current?.(hl(d.entityAutoCompleteView)))},[d.entityAutoCompleteView,ge,ie,q]);const L=j=>h.filter(se=>se.classId===j)[0]?.accountingClassNumber??void 0,ne=j=>r.filter(se=>se.qboId===j)[0]?.qboId,ee=i.useMemo(()=>{if(C==="bank")switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[C,e.recommendedAction.action,e.transactionDirection]),Q=()=>{I||b(!1)},pe=()=>{I||G(!1)},Ie=()=>{I||V(!1)};return i.useEffect(()=>{O===!1&&a.categoryId==null&&P.setFocus(Re(e.transactionId,"category"))},[O]),i.useEffect(()=>{$===!1&&a.classId==null&&P.setFocus(Re(e.transactionId,"class"))},[$]),i.useEffect(()=>{S===!1&&a.vendor==null&&P.setFocus(Re(e.transactionId,"vendor"))},[S]),i.useEffect(()=>{D===!1&&a.customer==null&&P.setFocus(Re(e.transactionId,"customer"))},[D]),i.useEffect(()=>{N===!1&&a.bankAccountId==null&&P.setFocus(Re(e.transactionId,"bankAccount"))},[N]),i.useEffect(()=>{z===!1&&a.creditCardId==null&&P.setFocus(Re(e.transactionId,"creditCard"))},[z]),t.jsx(sn,{...P,children:t.jsx("form",{onSubmit:P.handleSubmit(Z),id:Hi(e.transactionId),children:t.jsxs(vu,{children:[t.jsxs($u,{children:[t.jsxs(Au,{children:[t.jsxs(Eu,{children:[t.jsx(Ls,{}),t.jsx(co,{label:{label:H?be.review.formLabels.match:be.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:H?"match":"categorize",value:H?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Ue,{controller:!H,children:t.jsxs(t.Fragment,{children:[t.jsx(qi,{}),ee.map(j=>t.jsx(co,{label:{label:be.review.formLabels[j]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:j,value:j,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},j))]})})]}),t.jsxs(Tu,{children:[t.jsx($n,{variant:"secondary",size:"small",label:be.review.formLabels.exclude,loading:l[e.transactionId]?.fetchState==="In-Progress","data-testid":B("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{I||v({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx($n,{form:Hi(e.transactionId),"data-testid":B("account-reconciliation-review-save-button",e.transactionId),label:yt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(Ue,{controller:ie||ge||q,children:t.jsxs(mo,{children:[t.jsx(Ue,{controller:ie||q,children:t.jsx($t,{onClickAway:()=>{a.vendor==null&&S===!1&&T(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.vendor}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:S===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&T(!1)},"data-testid":B("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addVendor]}):t.jsx(Po,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:be.review.formLabels.addVendor,valueToId:j=>j,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx(Ue,{controller:ge,children:t.jsx($t,{onClickAway:()=>{a.customer==null&&D===!1&&A(!0)},children:t.jsx(oe,{style:{flex:1,padding:x[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.customer}),t.jsx(ue,{style:{gap:x[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:D===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&A(!1)},"data-testid":B("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCustomer]}):t.jsx(Po,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:be.review.formLabels.addCustomer,valueToId:j=>j,defaultValue:{selectedOption:X?.selectedOption,defaultOptions:X?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:U})})})]})})})}),t.jsx($t,{onClickAway:()=>{a.categoryId==null&&O===!1&&b(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.category}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:O===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Q()},"data-testid":B("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addCategory]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:be.review.formLabels.addCategory,valueToId:j=>ne(j),defaultValue:{allOptions:K,selectedOption:r.find(j=>j.accountId===a.categoryId)?.qboId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})}),t.jsx($t,{onClickAway:()=>{a.classId==null&&$===!1&&M(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:yt.texts.class}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&M(!1)},"data-testid":B("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addClass]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:be.review.formLabels.addClass,valueToId:j=>L(j),defaultValue:{allOptions:Y,selectedOption:a.classId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})]})}),t.jsx(Ue,{controller:H,children:t.jsxs(Ru,{children:[t.jsxs(Du,{children:[t.jsx("span",{className:"matched-text",children:`${be.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),be.review.matchesFoundFullInfo]}),t.jsx(Mu,{children:e.recommendedAction.recommendedTransactions.map(j=>j.bookTransactionId!=null?t.jsxs(_u,{children:[t.jsx(co,{label:{label:t.jsxs(Ou,{children:[t.jsx(Ve,{children:j.date.format(Ss.MMMDCommaYYYYformat)}),t.jsx(Ve,{children:j.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:j.bookTransactionId,value:j.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(Nu,{"data-testid":B("account-reconciliation-review-matched-transaction-amount",j.bookTransactionId),onClick:()=>{j.bookTransactionId!=null&&y(j.bookTransactionId)},children:[t.jsx(Pu,{children:rs("0,0.00",j.amount.amount,j.amount.currencySymbol)}),t.jsx(qi,{})]})]},j.bookTransactionId):null)})]})}),t.jsx(Ue,{controller:he,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.bankAccountId==null&&N===!1&&G(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:C==="credit_card"?be.review.formLabels.selectAccount:be.review.formLabels.transferTo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&pe()},"data-testid":B("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectAccount]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:be.review.formLabels.selectAccount,defaultValue:{allOptions:js(g),selectedOption:a.bankAccountId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:xe,children:t.jsx(mo,{children:t.jsx($t,{onClickAway:()=>{a.creditCardId==null&&z===!1&&V(!0)},children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.formLabels.creditCard}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:z===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&Ie()},"data-testid":B("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.selectCard]}):t.jsx(mn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:be.review.formLabels.selectCard,defaultValue:{allOptions:ks(f),selectedOption:a.creditCardId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Vn})})})]})})})})}),t.jsx(Ue,{controller:!H,children:t.jsx(Lu,{children:t.jsx(oe,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ft,{className:"hover-background",children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:be.review.header.memo}),t.jsx(ue,{className:"item-value-container",children:t.jsx(t.Fragment,{children:de===!0?t.jsxs(fe,{onClick:j=>{j.stopPropagation(),!I&&_(!1)},"data-testid":B("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:x[1],color:R.colors.champion,cursor:"pointer"},children:[t.jsx(Zt,{}),be.review.formLabels.addMemo]}):t.jsx(pl,{name:Re(e.transactionId,"memo"),placeholder:be.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Vn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${o.sp5})`,marginRight:`-${o.sp3}`,marginLeft:`-${o.sp3}`})},Wi=(e,n,c,r,h,p,a,d)=>{const l=r.find(m=>m.accountId===n.categoryId);return{[ht]:{[e.transactionId]:{category:{selectedOption:l?.qboId,allOptions:c},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:js(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:ks(a)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:as(d.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:kl(n?.customer,d.entityAutoCompleteView)}}}}},Ui=(e,n,c,r)=>{const{vendor:h,customer:p}=e[ht][n.transactionId];let a;if(h.selectedOption!=null){const l=h.defaultOptions.find(m=>m.value===h.selectedOption);if(l!=null)a={id:h.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(a={id:m.zeniId,name:m.name})}}let d;if(p.selectedOption!=null){const l=p.defaultOptions.find(m=>m.value===p.selectedOption);if(l!=null)d={id:p.selectedOption,name:l.label};else{const m=c.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(d={id:m.zeniId,name:m.name})}}return{categoryId:r.find(l=>l.qboId===e[ht][n.transactionId].category.selectedOption)?.accountId??e[ht][n.transactionId].category.selectedOption,classId:e[ht][n.transactionId].class.selectedOption,memo:e[ht][n.transactionId].memo,matchedTransactionId:e[ht][n.transactionId].matchedTransaction,vendor:a,bankAccountId:e[ht][n.transactionId].bankAccount.selectedOption,creditCardId:e[ht][n.transactionId].creditCard.selectedOption,customer:d}},dn=s(Ve)`
579
- display: flex;
580
- align-items: center;
581
- column-gap: ${o.sp1};
582
- `,un=s.div`
583
- width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
584
- display: flex;
585
- justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
586
- `,wu=s.div`
587
- display: flex;
588
- flex-direction: column;
589
- box-sizing: border-box;
590
- position: relative;
591
- background: ${e=>e.theme.colors.grey5};
592
- border: 1px solid
593
- ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
594
- color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
595
- &:hover {
596
- border: 1px solid ${e=>e.theme.colors.primary};
597
- color: ${e=>e.theme.colors.primary};
598
- }
599
- box-shadow: ${e=>e.theme.colors.elevation1};
600
- border-radius: ${o.sp2};
601
- `,bu=s.div`
602
- display: flex;
603
- flex-direction: row;
604
- align-items: center;
605
- cursor: pointer;
606
- padding: ${o.sp3} ${o.sp4};
607
- column-gap: ${o.sp2};
608
-
609
- border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
610
- `,vu=s.div`
611
- padding: ${o.sp2} ${o.sp4};
612
- display: flex;
613
- flex-direction: column;
614
- row-gap: ${o.sp2};
615
- `,Su=s.div`
616
- top: ${o.sp0};
617
- left: ${o.sp0};
618
- padding-right: var(--side-panel-list-item-pr, 0px);
619
- box-sizing: border-box;
620
- ${e=>e.isPanelSelected===!0&&Se`
621
- .recon-row-card {
622
- ${ni(e.theme)}
623
- }
624
- `}
625
- `,ju=s.div`
626
- height: calc(100vh - 350px);
627
- max-width: 99.9%;
628
- padding: ${o.sp0};
629
- `,ku=s.div``,Iu=s.div`
630
- position: relative;
631
- width: auto;
632
- height: 100%;
633
- display: flex;
634
- flex-direction: column;
635
- row-gap: ${o.sp3};
636
- `,$u=s.div`
637
- display: flex;
638
- flex-direction: row;
639
- align-items: center;
640
- justify-content: space-between;
641
- padding: 12px ${o.sp3};
642
- background-color: ${e=>e.theme.colors.background};
643
- border-radius: ${o.sp2};
644
- `,mo=s.div`
645
- display: flex;
646
- flex-direction: row;
647
- align-items: center;
648
- column-gap: ${o.sp3};
649
- `,Lu=s.div`
650
- width: 100%;
651
- `,Tu=s.div`
652
- display: flex;
653
- flex-direction: row;
654
- align-items: center;
655
- column-gap: ${o.sp3};
656
- `,Au=s.div`
657
- display: flex;
658
- flex-direction: row;
659
- align-items: center;
660
- column-gap: ${o.sp6};
661
- `,Eu=s.div`
662
- display: flex;
663
- flex-direction: row;
664
- align-items: center;
665
- column-gap: ${o.sp1};
666
- `,Zt=s(ao)`
667
- width: ${o.sp3};
668
- height: ${o.sp3};
669
- `,qi=s(Il)`
670
- width: ${o.sp3};
671
- height: ${o.sp3};
672
- color: ${e=>e.theme.colors.hero};
673
- `,Ru=s.div`
674
- display: flex;
675
- flex-direction: column;
676
- row-gap: ${o.sp3};
677
- padding: ${o.sp0} 12px;
678
- `,Du=s(Ve)`
679
- color: ${e=>e.theme.colors.primary};
680
-
681
- .matched-text {
682
- font-weight: ${Yo.bold};
683
- }
684
- `,Ou=s.div`
685
- display: flex;
686
- align-items: center;
687
- column-gap: ${o.sp2};
688
- `,Mu=s.div`
689
- display: flex;
690
- flex-direction: column;
691
- row-gap: ${o.sp2};
692
- `,_u=s.div`
693
- display: flex;
694
- flex-direction: row;
695
- align-items: center;
696
- justify-content: space-between;
697
- padding-bottom: ${o.sp2};
698
- border-bottom: 1px solid ${e=>e.theme.colors.grey3};
699
- `,Pu=s(Ve)`
700
- color: ${e=>e.theme.colors.hero};
701
- `,Bu=s.div`
702
- height: 100%;
703
- display: flex;
704
- justify-content: center;
705
- align-items: center;
706
- `,Fu=s.div`
707
- border: 1px solid ${e=>e.theme.colors.grey2};
708
- padding: ${o.sp0} ${o.sp1};
709
- border-radius: ${o.sp1};
710
- `,zu=s(bt)`
711
- color: ${e=>e.theme.colors.hero};
712
- `,Nu=s.div`
713
- display: flex;
714
- align-items: center;
715
- column-gap: 20px;
716
- cursor: pointer;
717
- `,Vu=s.div`
718
- text-align: center;
719
- padding: ${o.sp1} ${o.sp0};
720
- border-top: 1px solid ${e=>e.theme.colors.grey3};
721
- `,Hu=s(bt)`
722
- color: ${e=>e.theme.colors.hero};
723
- `,Ls=s(En)`
724
- width: ${o.sp3};
725
- height: ${o.sp3};
726
- margin-right: ${o.sp1};
727
- path {
728
- stroke-width: 2;
729
- }
730
- `,Wu=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:c,currentFooterFormId:r,entitySearchAutoCompleteActions:h,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:a,onReconTabColumnSortConfigChanged:d,updateReviewTabLocalData:l,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:g,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:C,reconciliationTabsState:{reconcile:{uiState:{sortKey:w,sortOrder:v}}},selectedReconAccount:k}=e,y=C[c],{transactionFetchState:R}=k??{};return R?.fetchState==="In-Progress"||R?.fetchState==="Not-Started"?t.jsxs(Ki,{style:{paddingLeft:x[8],paddingRight:x[8]},children:[t.jsx(Uu,{children:Lt.map(I=>t.jsx(Vt,{width:I.loaderWidth,height:18},I.key))}),t.jsxs(Ku,{children:[...Array(3).fill(0).map((I,S)=>t.jsx(qu,{children:Lt.map(T=>t.jsx(Vt,{width:T.loaderWidth,height:x[4]},T.key))},`${S}_${I}`))]})]}):t.jsx(Ki,{children:e.selectedTab==="reconcile"?t.jsx(Zd,{selectedAccountId:c,currentFooterFormId:r,setCurrentFooterFormId:a,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:d,onSaveReconciliation:u,sortConfig:{sortKey:w,sortOrder:v},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:y?.accountReconEntity.transactionsToReconcile}):t.jsx(xu,{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:h,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})})},Ki=s.div`
731
- width: 100%;
732
- height: 100%;
733
- `,Uu=s.div`
734
- display: flex;
735
- justify-content: space-between;
736
- padding: ${o.sp3} ${o.sp4};
737
- column-gap: ${o.sp6};
738
- `,qu=s.div`
739
- display: flex;
740
- justify-content: space-between;
741
- padding: ${o.sp3} ${o.sp4};
742
- background-color: ${e=>e.theme.colors.grey5};
743
- border-radius: ${o.sp2};
744
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
745
- box-shadow: ${e=>e.theme.colors.elevation1};
746
- column-gap: ${o.sp6};
747
- `,Ku=s.div`
748
- display: flex;
749
- gap: ${o.sp3};
750
- flex-direction: column;
751
- `;function Ju({title:e,config:n,nodeId:c}){return{children:[],id:c??Ct("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:n}}}function Gu({account:e,numOfBalances:n,title:c,isLastNode:r,index:h,config:p}){const a=Ct("ac_group_report",[],c);return{children:[],id:a,isLastNode:r,reportElementData:{element:{kind:"ac_group_report",title:c,index:h,data:e,numOfBalances:n},config:p}}}function Yu({title:e,section:n,config:c,numOfBalances:r,nodeId:h}){return{children:[],id:h??Ct("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:r},config:c}}}function Ji({section:e,allAccountReconciliations:n,title:c,subTitle:r,isLastNode:h,isTitleRowRequired:p,config:a}){const d=Ct("section",[],c),l={children:[],id:d,isLastNode:h,reportElementData:{element:{kind:"section",title:c,data:e,numOfBalances:0},config:a}};if(p){const u=Ct("title_string_only",[],c),g={children:[],id:u,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:c,data:e,numOfBalances:0},config:a}};l.children.push(g)}const m=Yu({title:r,section:e,config:a,numOfBalances:0});return l.children.push(m),e.accountIDs.forEach((u,g)=>{const f=n[u],C=Gu({account:f,numOfBalances:0,index:g,title:f.accountReconEntity.account.accountName,isLastNode:g===e.accountIDs.length-1,config:a});l.children.push(C)}),l}function Ts({config:e,accountReconForSection:n,nodeId:c}){return{children:[],id:c??Ct("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}function Zu(e,n){return n?ho("section")+ho("total")+e*ho("ac_group_report"):1/0}const Qu=(e,n,c,r,h=!0,p="assets")=>{const a=p==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,d=Ts({config:n,accountReconForSection:a}),l=[];l.push(d);const m=Array.isArray(c[r])?c[r]:[],{expenseAutomation:{accountRecon:{reconciliation:u}},common:{loading:g}}=Ae.getLocalizedStrings(),f=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",C=w=>w.filter(v=>!m.includes(v));if(f)[...Array(3)].forEach((w,v)=>{l.push(Ju({title:`${v}+${g}`,config:n}))});else{const w=C(e.accountReconciliationBySectionID.assets.accountIDs),v=Ji({section:{...e.accountReconciliationBySectionID.assets,accountIDs:w},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.assets.title,subTitle:u.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(l.push(v),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const k=C(e.accountReconciliationBySectionID.liabilities.accountIDs),y=Ji({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(y)}}return{config:n,headerNodes:h?[d]:[],contentNodes:l}};function Xu(e,n,c,r=!1,h="assets"){Object.assign(e.config,c);const p=h==="liabilities"&&n.accountReconciliationBySectionID.liabilities.accountIDs.length>0?n.accountReconciliationBySectionID.liabilities:n.accountReconciliationBySectionID.assets,a=Ts({config:c,accountReconForSection:p});return{config:c,headerNodes:r?[a]:[],contentNodes:[a,...e.contentNodes.slice(1)]}}const Ho={wrapperPadding:new ae(x[2],x[2],x[2],x[8]),contentPaddingLeft:new ae(x[2],x[2],x[2],x[2]),contentPaddingRight:new ae(x[2],x[2],x[2],x[2])},eh=s.div`
752
- display: flex;
753
- height: 100%;
754
- width: 100%;
755
- justify-content: center;
756
- align-items: center;
757
- `,th=s.div`
758
- display: flex;
759
- height: 100%;
760
- min-height: 100%;
761
- flex: 1 1 auto;
762
- width: 100%;
763
- justify-content: center;
764
- padding-left: ${e=>Ho.wrapperPadding.valuePx(e.windowSize)};
765
- background-color: ${e=>e.theme.colors.grey4};
766
- `,nh=s.div`
767
- width: 100%;
768
- height: 100%;
769
- `,{common:oh}=Ae.getLocalizedStrings();function ih({reconciliation:e,companyId:n,onReload:c,onReviewClicked:r,setOpenDrawerClicked:h,onFetchLinkTokenClick:p,onEstablishConnectionClick:a,onAddStatementClick:d}){const[l,m]=i.useState(void 0),[u,g]=i.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,C=e.plaidConnectionDetails.update_account,w=u==="update_account"?C:f,[v,k]=i.useState(w.linkToken??null),[y,R]=i.useState(!1),{useDynamicConfig:I}=Ka(),{configValue:S}=I(Ja.accountReconGLAccountsConfig),T=i.useCallback(W=>{m(W),g("link_account_no_microdeposit")},[]),D=i.useCallback(W=>{const U=$.current.accountReconciliationsByAccountID[W]?.paymentAccountId;m(W),g("update_account"),p("update_account",U)},[]),A=i.useCallback(W=>{h(W)},[]),O=i.useRef(l),b=i.useRef(u),$=i.useRef(e);i.useEffect(()=>{O.current=l},[l]),i.useEffect(()=>{b.current=u},[u]),i.useEffect(()=>{$.current=e},[e]);const M=i.useCallback(W=>{a(W,O.current??"",b.current),m(void 0),g(void 0),R(!1)},[a]),N=i.useCallback((W,U)=>{W!=null&&console.log("Plaid Connection Error",W,U),m(void 0),g(void 0),R(!1)},[]),{open:G,ready:z}=Hr({token:v,onSuccess:M,onExit:N});i.useEffect(()=>{(zo(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&w.fetchStatus.fetchState==="Not-Started"&&p("link_account_no_microdeposit")},[w.fetchStatus.fetchState]),i.useEffect(()=>{!y&&u!=null&&w.linkToken===v&&w.fetchStatus.fetchState==="Completed"&&z&&R(!0)},[z,v,w.fetchStatus.fetchState,w.linkToken,u,y]),i.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==v&&k(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,v]),i.useEffect(()=>{y&&G()},[y,G]);const[V,de]=i.useState(void 0),[_,H]=i.useState(void 0),[ie,he]=i.useState("assets"),xe=zo("2025-03-31"),ge=1,q="account_reconciliation",K=Te(),Y=wt();Tn({componentName:"expense_automation.account_reconciliation_list",enabled:e.fetchStatus.fetchState==="Completed"});const P=!0,E=Array.isArray(S?.[n])?S[n]:[],Z=e.accountReconciliationBySectionID.assets.accountIDs.filter(W=>!E.includes(W)).length,F=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,X=Zu(Z,F),J=i.useCallback(W=>{const U=W.scrollTop>=X?"liabilities":"assets";U!==ie&&he(U)},[X,ie]);return i.useEffect(()=>{const W={reportId:q,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:xe,firstMonthOfFY:ge,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:r,onConnectClicked:T,onReconnectClicked:D,onOpenDrawerClicked:A,onStatementAddClicked:d}};if(V==null||!Ga(_,e)){const U=Qu(e,W,S,n,P,ie);H(e),de(U)}else{const U=Xu(V,e,W,P,ie);de(U)}},[e,ie]),e.fetchStatus.fetchState==="Error"?t.jsx(eh,{children:t.jsx(Wr,{onReload:c,message:oh.errorMessage.somethingWentWrong})}):t.jsx(th,{windowSize:K,children:V!=null?t.jsx(nh,{windowSize:K,children:t.jsx(xs,{backgroundColor:new Zo(Y.colors.grey4),rootNodes:V,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:P,isStickyName:P},treeNodePadding:{left:Ho.contentPaddingLeft.value(K),right:Ho.contentPaddingRight.value(K)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:J})}):null})}function ah({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:c,reconciliation:r,companyId:h,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:a,onUpdateReconcileTabLocalData:d,setCurrentFooterFormId:l,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:g,onEstablishConnectionClick:f,onAddStatementClick:C,onReconReviewTabColumnSortConfigChanged:w,onSaveReconciliation:v,onSaveReconciliationReview:k,setOpenDrawerClicked:y,onReconMatchedTransactionClick:R}){return r.selectedAccountId==null?t.jsx(ih,{companyId:h,reconciliation:r,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:g,onEstablishConnectionClick:f,setOpenDrawerClicked:y,onAddStatementClick:C}):t.jsx(Wu,{currentFooterFormId:e,setCurrentFooterFormId:l,onUpdateReconcileTabLocalData:d,onReconTabColumnSortConfigChanged:p,reconciliation:r,updateReviewTabLocalData:a,entitySearchAutoCompleteActions:c,onReconReviewTabColumnSortConfigChanged:w,entitySearchAutoCompleteData:n,selectedAccountId:r.selectedAccountId,onSaveReconciliation:v,onSaveReconciliationReview:k,onReconMatchedTransactionClick:R})}function sh({accountAndClassReport:e,numOfBalances:n,title:c,isLastNode:r,isFirstNode:h,config:p,parentNodeIDs:a,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:Ct("flux_vendor_account_class_row",a,l),isLastNode:r,isFirstNode:h,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:c,data:e,metadata:d,numOfBalances:n},config:p}}}function rh({vendorView:e,numOfBalances:n,title:c,isLastNode:r,config:h,parentNodeIDs:p}){const a=Ct("flux_vendor_row",p,e.vendor.id),d={children:[],id:a,isLastNode:r,reportElementData:{element:{kind:"flux_vendor_row",title:c,data:e,numOfBalances:n},config:h}},l=e.vendorAccountsAndClasses;return d.children=l.map((m,u)=>sh({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:h,isLastNode:u===l.length-1,isFirstNode:u===0,parentNodeIDs:[...p,a],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 lh({section:e,numOfBalances:n,title:c,isLastNode:r,config:h}){const p=e.sectionId,a={children:[],id:p,isLastNode:r,reportElementData:{element:{kind:"section",title:c,data:e,numOfBalances:n,sectionType:e.sectionId},config:h}},d=(e.vendors??[]).map((l,m)=>rh({vendorView:l,numOfBalances:n,title:l.vendor.name,isLastNode:m===e.vendors.length-1,config:h,parentNodeIDs:[p]}));return a.children.push(...d),a}function ch({title:e,balances:n,config:c,nodeId:r}){return{children:[],id:r??Ct("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:n,numOfBalances:n.length},config:c}}}function dh({title:e,data:n,isLastNode:c,config:r,numOfBalances:h}){const p=Ct("total",[],e);return{children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:h},config:r}}}const{common:Hn,expenseAutomation:{fluxAnalysis:uh}}=Ae.getLocalizedStrings(),hh=(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,h=e.sections.generalExpense.balancesByMonth?gn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?gn(e.sections.reimbursement.balancesByMonth):[],p=fs({balances:h,config:n}),a=[],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)a.push(ch({title:`${Hn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{a.push(Ti({title:`${u}+${Hn.loading}`,balances:h,config:n}))});else{if(a.push(p),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const g=gn(u.balancesByMonth);a.push(lh({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:ph(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?gn(e.totalBalancesAndVariance.balancesByMonth):[],u=dh({title:Hn.texts.total,data:{balances:m,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:r});a.push(u)}l===!0&&[...Array(1)].forEach((m,u)=>{a.push(Ti({title:`${u}+${Hn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:c&&!d?[p]:[],contentNodes:a}},ph=e=>uh.sectionTitle[e];function mh(e,n,c,r=!0){Object.assign(e.config,n);const h=gh(c),p=fs({balances:h,config:n});return{config:n,headerNodes:r?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const gh=e=>e.sections.generalExpense.balancesByMonth?gn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?gn(e.sections.reimbursement.balancesByMonth):[],Wo={contentPaddingLeft:new ae(x[0],x[0],x[0]),contentPaddingRight:new ae(x[3],x[3],x[8]),wrapperPadding:new ae(x[3],x[3],x[8])},xh=s.div`
770
- display: flex;
771
- position: sticky;
772
- width: 100%;
773
- justify-content: center;
774
- padding-top: ${e=>Wo.wrapperPadding.valuePx(e.windowSize)};
775
- padding-left: 20px;
776
- background-color: ${e=>e.theme.colors.grey4};
777
- `,fh=s.div`
778
- width: 100%;
779
- height: calc(100vh - ${o.sp11});
780
- `,yh=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:c,updateOperatingExpensesIdsForReview:r,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:a,fetchReimbursementView:d,fetchGeneralExpenseView:l}=e,m=Te(),u=wt(),[g,f]=i.useState(null),[C,w]=i.useState(null),[v,k]=i.useState(null),y=$i([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[R,I]=i.useState(!1),S=vi(y),T=vi(n.refreshStatus.fetchState),D=i.useRef(!1),[A,O]=i.useState(!1),b=i.useRef(_=>{_&&!D.current&&(D.current=!0,O(!0))});Tn({componentName:"expense_automation.flux_analysis",enabled:A});const $=()=>{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)},M=()=>Object.keys(n.uiState.collapsableStatus).reduce((_,H)=>(_[H]=n.uiState.collapsableStatus[H],_),{}),N=i.useCallback(_=>{const H=!(n.uiState.collapsableStatus[_]??!0);a({...n.uiState.collapsableStatus,[_]:H})},[n.uiState.collapsableStatus,a]),G=i.useCallback((_,H)=>{let ie=n.reviewOperatingExpensesIds;const he=[];let xe=n.selectedSectionIds;const ge=n.sections[_].vendors;he.push(...ge.map(K=>K.fluxAnalysisEntityId));let q=gs-ie.length;H?(he.forEach(K=>{!ie.includes(K)&&q>0&&(ie=[...ie,K],q--)}),xe=[...xe,_]):(ie=ie.filter(K=>!he.includes(K)),xe=xe.filter(K=>K!==_)),r(ie),h(xe)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,r,h]),z=i.useCallback(_=>{const H=n.uiState.collapsableStatus[_]===!1;_==="generalExpense"&&!H&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&d(n.uiState.paginationInfoByGroup.reimbursement.pageToken),N(_)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,d,N]),V=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,de=_=>_<V;return i.useEffect(()=>{const _={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:I,onSectionRowClick:z,updateNodeCollapsableStatus:N,updateOperatingExpensesIdsForReview:r,handleRedirectToVendorDetailPage:c,onSectionCheckboxClick:G,onSortOrderChanged:p}};if(g==null||!Ga(C,n)){const H=hh(n,_,!0);w(n),f(H)}else{const H=mh(g,_,n,!0);f(H)}},[n,C,c,G,z,p,N,r]),t.jsx(xh,{windowSize:m,children:t.jsx(fh,{children:g?t.jsx(Ch,{ref:b.current,children:t.jsx(xs,{backgroundColor:new Zo(u.colors.grey4),rootNodes:g,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:Wo.contentPaddingLeft.value(m),right:Wo.contentPaddingRight.value(m)},nodeOpenStatus:M(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:de,itemCount:V,loadMoreItems:$},variableNodeHeightTree:{prevFetchState:S??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:R,setIsSortApplied:I,reducedFetchState:$i([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:T??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:v,setHoveredParentId:k}})}):null})})},Ch=s.div``,wh="expenseAutomationFluxPage",{reports:{common:bh}}=Ae.getLocalizedStrings(),vh=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:c,markAsReview:r,onReloadPage:h,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:a,updateSectionIdsForReview:d,onUpdateFluxAnalysisUIState:l,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:g})=>{const{fetchStatus:f,reviewOperatingExpensesIds:C,uiState:w}=n,v=i.useRef(null),k=i.useRef(!1),y=an({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:Sh(C)}),R=Te();i.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),i.useEffect(()=>{k.current&&v?.current?.scrollLeft!=null&&w.scrollPosition?.scrollLeft!==v.current.scrollLeft&&w.scrollPosition!=null&&l({scrollPosition:{scrollTop:w.scrollPosition?.scrollTop,scrollLeft:v.current.scrollLeft}})},[w.scrollPosition?.scrollLeft,v.current?.scrollLeft,w.scrollPosition,l]),i.useEffect(()=>{p(C.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[C,p]);const I=A=>{m(A)},S=A=>{u(e,A)},T=(A,O)=>{l({sortOrder:A,sortKey:O}),c(),g(e,null,!1)},D=()=>{const A=As(n.sections,C);r(C,A===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(kh,{children:[t.jsx(Ih,{onClick:h,children:t.jsx(qo,{})}),t.jsx($h,{children:bh.failed})]});{const A=b=>{l({collapsableStatus:b})},O=b=>{g(e,b,!0)};return t.jsx(sn,{...y,children:t.jsx("form",{id:fr(wh),onSubmit:y.handleSubmit(D),style:{height:"100%",width:"100%"},children:t.jsx(jh,{windowSize:R,children:t.jsx(yh,{fluxView:n,handleRedirectToVendorDetailPage:I,onSortOrderChanged:T,updateOperatingExpensesIdsForReview:a,updateNodeCollapsableStatus:A,fetchReimbursementView:O,updateSectionIdsForReview:d,fetchGeneralExpenseView:S,reportId:"flux_analysis_operating_expense"})})})})}},As=(e,n)=>{const c=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(h=>h.status==="Pending Review");let r;return c.forEach(h=>{n.includes(h.fluxAnalysisEntityId)&&(r=!0)}),r},Sh=e=>({fluxAnalysisRowIds:e}),jh=s.div`
781
- display: flex;
782
- flex: 1 1 auto;
783
- min-height: 100%;
784
- flex-direction: column;
785
- background-color: ${e=>e.theme.colors.grey4};
786
- padding: ${o.sp0};
787
- gap: 2px;
788
- height: 100%;
789
- .flux-vendor-name-sticky,
790
- .flux-vendor-header-sticky,
791
- .flux-section-name-container,
792
- .flux-class-and-account-value-container,
793
- .flux-vendor-name-container,
794
- .flux-total-row {
795
- border-right: 1px solid transparent;
796
- }
797
- &:hover {
798
- .flux-vendor-name-sticky,
799
- .flux-vendor-header-sticky,
800
- .flux-section-name-container,
801
- .flux-class-and-account-value-container,
802
- .flux-vendor-name-container,
803
- .flux-total-row {
804
- border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
805
- }
806
- }
807
- `,kh=s.div`
808
- display: flex;
809
- width: 100%;
810
- height: 100vh;
811
- flex-direction: column;
812
- justify-content: center;
813
- align-items: center;
814
- `,Ih=s.div`
815
- height: 96px;
816
- width: 96px;
817
- background: ${e=>e.theme.colors.background};
818
- border-radius: 50%;
819
- cursor: pointer;
820
- & svg {
821
- margin: ${o.sp5};
822
- color: ${e=>e.theme.colors.grey1};
823
- }
824
- &:hover {
825
- & svg {
826
- color: ${e=>e.theme.colors.primary};
827
- }
828
- }
829
- `,$h=s(At)`
830
- margin-top: ${o.sp3};
831
- color: ${e=>e.theme.colors.hero};
832
- `,Lh="expenseAutomationJEAccountSettingsPage",Es="vendorsAccountSection",Th=e=>`${e}_form`;function Ah({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:c,setIsJeAccountSettingsOpened:r,onJeAccountSettingsChange:h,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:a}){const d=e.prepaidExpensesRecommendations,l=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=i.useMemo(()=>zt(e.prepaidExpensesAccountHierarchy,d,"Accounts"),[e.prepaidExpensesAccountHierarchy,d]),g=i.useMemo(()=>zt(e.fixedAssetsAccountHierarchy,l,"Accounts"),[e.fixedAssetsAccountHierarchy,l]),f=i.useMemo(()=>zt(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),C=i.useMemo(()=>Rh(e,u,g,f),[e,u,g,f]),w=an({mode:"all",reValidateMode:"onBlur",defaultValues:C,values:C,resetOptions:{keepDefaultValues:!0}}),v=w.handleSubmit(y=>{c(y)}),k=async y=>{h(y)};return i.useEffect(()=>{const y=w.watch(R=>{R!=null&&An(()=>k(R))});return()=>{y.unsubscribe()}}),i.useEffect(()=>(p(()=>w.reset),r(!0),()=>{a("expenseAutomationPage"),r(!1)}),[]),i.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:y,previousPrepaidExpensesAccount:R,selectedFixedAssetsAccountIds:I,previousFixedAssetsAccount:S,selectedAccruedExpensesAccountIds:T,previousAccruedExpensesAccount:D}=e.accountSettingsLocalData,A=ro(y,R)||ro(I,S)||ro(T,D);A===!0&&n!="expenseAutomationJEAccountSettingsPage"?a("expenseAutomationJEAccountSettingsPage"):A===!1&&n!=="expenseAutomationPage"&&a("expenseAutomationPage")},[e,n,a]),t.jsx(Eh,{children:t.jsx(sn,{...w,children:t.jsx("form",{id:Th(Lh),onSubmit:v,children:t.jsx(zl,{showTitle:!1,sectionId:Es,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 Eh=s.div`
833
- padding-top: ${o.sp3};
834
- display: flex;
835
- align-items: center;
836
- min-height: 100%;
837
- flex-direction: column;
838
- width: 100%;
839
- background-color: ${e=>e.theme.colors.grey4};
840
- `,Rh=(e,n,c,r)=>{const h=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),p=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),a=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),d=h.map(u=>u.qboId).filter(u=>u!=null),l=p.map(u=>u.qboId).filter(u=>u!=null),m=a.map(u=>u.qboId).filter(u=>u!=null);return{[Es]:{prepaidExpensesAccount:{selectedOptions:d,allOptions:n},fixedAssetsAccount:{selectedOptions:l,allOptions:c},accruedExpensesAccount:{selectedOptions:m,allOptions:r}}}},{expenseAutomation:{jeSchedules:Ot},common:{currency:Wn,review:Dh,ignore:Oh,strings:{hyphen:It},texts:Un},dateFormat:Mh,timeframe:{month:Gi}}=Ae.getLocalizedStrings(),_h=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:c,jeScheduleClickHandler:r,onReviewClickHandler:h})=>t.jsxs(ri,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&r(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":B("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(si,{children:[t.jsxs(ci,{children:[t.jsxs(ii,{children:[t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{children:Un.vendor}),t.jsxs(ue,{style:{gap:x[2]},children:[e.vendor.logo!=null?t.jsx(es,{photoUrl:e.vendor.logo.href,styles:{width:x[4],height:x[4]}}):t.jsx(In,{name:e.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(Ye,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:e.vendor.name??It})})]})]}),t.jsxs(oe,{children:[t.jsx(ce,{children:Ot.scheduleHeaders.scheduleCategory}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(Ye,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:e.baseTransaction.account.accountName??It})})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:Ot.scheduleHeaders.startMonth}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:e.startDate?.format(Mh.visual.MMMCommaYYYYFormat)??It})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ce,{children:Ot.scheduleHeaders.period}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?Gi.slice(0,-1):Gi}`:It})})]}),t.jsxs(oe,{style:{alignItems:"flex-end",width:ye.COLUMN_FIVE},children:[t.jsx(ce,{children:Un.totalAmount}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ye,{children:Ze("0,0.[00]",Xt(e.baseTransaction.amount.amount,Wn.currencyCode,Wn.currencySymbol))??It}),children:t.jsx(fe,{className:"highlight",children:Ze("0,0.[00]",Xt(e.baseTransaction.amount.amount,Wn.currencyCode,Wn.currencySymbol))??It})})})]})]}),t.jsxs(ai,{children:[t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{children:Un.category}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(Ye,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:e.jeDebit.account?.accountName??It})})})]}),t.jsxs(oe,{children:[t.jsx(ce,{children:Un.classText}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(Ye,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:e.jeDebit.accountingClass?.className??It})})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:Ot.scheduleHeaders.type}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",style:{width:"unset"},children:t.jsx(vs,{children:Ot.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(oe,{style:{width:ye.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ce,{children:Ot.scheduleHeaders.accumulatedCategory}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(Ye,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:e.jeCredit.account?.accountName??It})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(oe,{style:{width:ye.COLUMN_FOUR}}):null,t.jsx(oe,{style:{width:ye.COLUMN_FIVE}})]})]}),t.jsxs(li,{children:[t.jsx($n,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&h(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":B("je-schedule-draft-component-review-button",e.jeScheduleId),label:Dh,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:No}}),t.jsx($n,{"data-testid":B("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Oh,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&c(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:No}})]})]}),t.jsxs(iu,{children:[t.jsx(Ph,{}),t.jsx(Bh,{children:Ot.aiAccountant}),t.jsx(Fh,{children:Ot.zeniGPTText})]})]}),Ph=s(En)`
841
- height: ${o.sp3};
842
- width: ${o.sp3};
843
- margin-right: ${o.sp1};
844
- path {
845
- stroke-width: 2;
846
- }
847
- `,Bh=s(Ya)`
848
- color: ${e=>e.theme.colors.brandColorSapphire};
849
- `,Fh=s(Ve)`
850
- color: ${e=>e.theme.colors.primary};
851
- `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:Yi}}},expenseAutomation:{jeSchedules:We},common:{currency:xt,retry:zh,strings:{hyphen:Ge,empty:Zi},texts:hn},dateFormat:Qi}=Ae.getLocalizedStrings(),{common:Nh,timeframe:{month:Xi}}=Ae.getLocalizedStrings(),ot="jeSchedulePage",ea=e=>`${e}_form`,di=(e,n)=>`${e}.${n}`,ta=di(ot,"vendor"),na=di(ot,"scheduleExpenseCategory"),oa=di(ot,"accumulatedDepreciationCategory"),Vh=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:c,allClassList:r,allDepAccountGroupedOptions:h,allDepAccountList:p,draft:a,localData:d,postStatus:l,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,jeScheduleClickHandler:f,onFormDataChange:C,onPostJESchedule:w})=>{const{updatedAccumulatedDepreciationCategoryID:v,updatedCategoryId:k,updatedVendor:y}=d,R={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"},I=i.useRef(),S=an({mode:"all",reValidateMode:"onChange",defaultValues:ia(d,e,c,h,n,r,p,g.entityAutoCompleteView),values:ia(d,e,c,h,n,r,p,g.entityAutoCompleteView)}),T={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},D={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},A=(a?.scheduledJournalEntry.error??[]).every(E=>{const Z=R[E];return!(d!=null&&Z&&(Z==="updatedAccumulatedDepreciationCategoryID"&&d.updatedAccumulatedDepreciationCategoryID==null||Z==="updatedCategoryId"&&d.updatedCategoryId==null||Z==="updatedVendor"&&(d.updatedVendor?.id==null||d.updatedVendor?.id===""||d.updatedVendor?.name==null||d.updatedVendor?.name==="")))}),O=async(E,Z)=>{if(E!=null){const F=Z[ot],{scheduledJournalEntryID:X,vendor:J}=F;if(E.includes("vendor")){const W=J?.defaultOptions.map(U=>U.value);if(J?.selectedOption!=null&&W?.includes(J.selectedOption)!==!0){const U=g.entityAutoCompleteView.vendor.find(L=>L.id===J.selectedOption);U!=null&&S.setValue(`${ot}.vendor.defaultOptions`,[{label:U.name??Nh.strings.empty,value:U.id}])}else J?.selectedOption==null&&J?.defaultOptions.length!==0&&S.setValue(`${ot}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(X,{...F,vendor:J})}};i.useEffect(()=>{const E=S.watch((Z,{name:F})=>{F!=null&&Z!=null&&An(()=>O(F,Z))});return()=>{E.unsubscribe()}}),i.useEffect(()=>{g.entityAutoCompleteView.fetchState==="Completed"&&I.current?.(ts(g.entityAutoCompleteView))},[g.entityAutoCompleteView.fetchState]);const b=S.handleSubmit(()=>{w(a.scheduledJournalEntry.scheduledJournalEntryID,a.jeScheduleTransactionKey)}),$=E=>n.filter(Z=>Z.qboId===E)[0]?.qboId,M=E=>p.filter(Z=>Z.qboId===E)[0]?.qboId,N=E=>[m.expense?.qboId,m.income?.qboId].includes(E),G=S.watch("jeSchedulePage.vendor"),z=(E,Z)=>{u.onAutoCompleteInputChange?.(E,"vendor"),I.current=Z},V=a.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,de=a.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,_=a.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,H=a.vendor.name.split("(deleted)")[0]?.toString(),ie=a.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??Zi,he=a.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??Zi,[xe,ge]=i.useState(de===!0&&k==null),[q,K]=i.useState(_===!0&&v==null),[Y,P]=i.useState(V&&(y?.id==null||y?.id==""));return i.useEffect(()=>{xe===!1&&d.updatedCategoryId==null&&S.setFocus(na),q===!1&&d.updatedAccumulatedDepreciationCategoryID==null&&S.setFocus(oa),Y===!1&&d.updatedVendor?.id==null&&S.setFocus(ta)},[xe,q,Y,d,S]),t.jsx(sn,{...S,children:t.jsx("form",{style:{width:"100%"},id:ea(`${ot}_${a.jeScheduleId}`),onSubmit:b,children:t.jsx(ri,{showBorder:A,onClick:E=>{a.jeScheduleType!=null&&a.jeScheduleId!=null&&f(E,a.jeScheduleId,a.jeScheduleTransactionKey,a.jeScheduleType)},"data-testid":B("je-schedule-resolve-component-schedule",`${ot}_${a.jeScheduleId}`),children:t.jsxs(si,{children:[t.jsxs(ci,{children:[t.jsxs(ii,{children:[V===!0?t.jsx(oe,{style:{width:ye.COLUMN_ONE,padding:x[0],justifyContent:"center"},showHoverEffect:V,forceHoverEffect:Y===!1&&(d?.updatedVendor?.id==null||d?.updatedVendor?.id==""),children:t.jsxs(ft,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[hn.vendor,t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(Yn,{children:We.tooltipText.missingVendor.replace("_deleted_vendor_",H)}),children:t.jsx(xo,{})})]}),t.jsx(ue,{style:{gap:x[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:Y===!0?t.jsxs(fe,{onClick:E=>{E.stopPropagation(),P(!1)},"data-testid":B("je-schedule-resolve-component-add-vendor-button",`${ot}_${a.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:x[2],color:tt.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(go,{}),Yi]}):t.jsx(Po,{name:ta,placeholder:Yi,valueToId:E=>E,defaultValue:{selectedOption:G?.selectedOption,defaultOptions:G?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:z})})})]})}):t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{children:hn.vendor}),t.jsx(ue,{children:t.jsxs(t.Fragment,{children:[a.vendor.logo?.href!=null?t.jsx(es,{photoUrl:a.vendor.logo.href,styles:{width:x[4],height:x[4]}}):t.jsx(In,{name:a.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:a.vendor.name!==null?t.jsx(Ye,{children:a.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.vendor.name??Ge})})]})})]}),t.jsxs(oe,{children:[t.jsx(ce,{children:We.scheduleHeaders.scheduleCategory}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:a.baseTransaction.account.accountName!=null?t.jsx(Ye,{children:a.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.baseTransaction.account.accountName??Ge})})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:We.scheduleHeaders.startMonth}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:a.startDate?.format(Qi.visual.MMMCommaYYYYFormat)??Ge})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ce,{children:We.scheduleHeaders.period}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:a.period!=null?`${a.period} ${a.period===1?Xi.slice(0,-1):Xi}`:Ge})})]}),t.jsxs(oe,{style:{alignItems:"flex-end",width:ye.COLUMN_FIVE},children:[t.jsx(ce,{children:hn.totalAmount}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:t.jsx(Ye,{children:Ze("0,0.[00]",Xt(a.baseTransaction.amount.amount,xt.currencyCode,xt.currencySymbol))??Ge}),children:t.jsx(fe,{className:"highlight",children:Ze("0,0.[00]",Xt(a.baseTransaction.amount.amount,xt.currencyCode,xt.currencySymbol))??Ge})})})]})]}),t.jsxs(ai,{children:[de===!0?t.jsx(oe,{showHoverEffect:de===!0,forceHoverEffect:d?.updatedCategoryId==null&&xe===!1,style:{padding:"unset",justifyContent:"center",width:ye.COLUMN_ONE},children:t.jsxs(ft,{className:"hover-background",children:[t.jsxs(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[hn.category,de===!0?t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(Yn,{children:We.tooltipText.missingCategory.replace("_deleted_category_",ie)}),children:t.jsx(xo,{})}):null]}),t.jsx(ue,{className:"item-value-container",style:{marginLeft:de===!0?-2:0},children:de===!0?t.jsx(t.Fragment,{children:xe===!0?t.jsxs(fe,{onClick:E=>{E.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:tt.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-category-button",`${ot}_${a.jeScheduleId}`),children:[t.jsx(go,{}),We.addCategory]}):t.jsx(mn,{shouldShowChevronIcon:!1,name:na,placeholder:We.addCategory,valueToId:E=>$(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:N,customStyleConfig:T})}):t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:a.jeDebit.account?.accountName!=null?t.jsx(Ye,{children:a.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.jeDebit.account?.accountName??Ge})})})]})}):t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:hn.category}),t.jsx(ue,{className:"item-value-container",children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:a.jeDebit.account?.accountName!=null?t.jsx(Ye,{children:a.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.jeDebit.account?.accountName??Ge})})})]}),t.jsxs(oe,{children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:hn.classText}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:a.jeDebit.accountingClass?.className!=null?t.jsx(Ye,{children:a.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.jeDebit.accountingClass?.className??Ge})})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:We.scheduleHeaders.type}),t.jsx(ue,{className:"test",children:t.jsx(fe,{className:"highlight",style:{width:"unset"},children:t.jsx(vs,{children:We.scheduleTypes[a.jeScheduleType??"prepaid_expenses"]})})})]}),a.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:_===!0?t.jsx(oe,{style:{width:ye.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:_,forceHoverEffect:d.updatedAccumulatedDepreciationCategoryID==null&&q===!1,children:t.jsxs(ft,{className:"hover-background",style:{padding:x[2],paddingLeft:x[3]},children:[t.jsxs(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:[We.scheduleHeaders.accumulatedCategory,_===!0?t.jsx(Ce,{display:"flex",placement:"top-end",title:t.jsx(Yn,{children:We.tooltipText.missingDepCategory.replace("_deleted_dep_category_",he)}),children:t.jsx(xo,{})}):null]}),t.jsx(ue,{className:"item-value-container",style:{marginLeft:_===!0?-2:0},children:_===!0?t.jsx(t.Fragment,{children:q===!0?t.jsxs(fe,{onClick:E=>{E.stopPropagation(),K(!1)},style:{display:"inline-flex",alignItems:"center",gap:x[1],color:tt.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-depreciation-category-button",`${ot}_${a.jeScheduleId}`),children:[t.jsx(go,{}),We.addDepCategory]}):t.jsx(mn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:oa,placeholder:We.addDepCategory,valueToId:E=>M(E),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:D,disableCurrentOption:N})}):t.jsx(Ce,{display:"block",placement:"bottom",title:a.jeCredit.account?.accountName!=null?t.jsx(Ye,{children:a.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.jeCredit.account?.accountName??Ge})})})]})}):t.jsxs(oe,{style:{width:ye.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ce,{style:{display:"flex",alignItems:"center",gap:x[1]},children:We.scheduleHeaders.accumulatedCategory}),t.jsx(Ce,{display:"block",placement:"bottom",title:a.jeCredit.account?.accountName!=null?t.jsx(Ye,{children:a.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(fe,{className:"highlight",children:a.jeCredit.account?.accountName??Ge})})]})}):null,a.jeScheduleType!=="fixed_assets"?t.jsx(oe,{style:{width:ye.COLUMN_FOUR}}):null,t.jsx(oe,{style:{width:ye.COLUMN_FIVE}})]}),t.jsxs(nu,{children:[t.jsx(oe,{style:{padding:"unset",width:ye.COLUMN_ONE},children:t.jsxs(ou,{children:[t.jsx(ce,{children:We.scheduleHeaders.jePostingDate}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:a.scheduledJournalEntry.expectedPostDate.format(Qi.visual.MMMDCommaYYFormat)??Ge})})]})}),t.jsxs(oe,{children:[t.jsx(ce,{children:We.scheduleHeaders.balance}),t.jsx(ue,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ye,{children:Ze("0,0.[00]",Xt(a?.scheduledJournalEntry?.runningBalance?.amount??0,xt.currencyCode,xt.currencySymbol))??Ge}),children:t.jsx(fe,{className:"highlight",children:Ze("0,0.[00]",Xt(a?.scheduledJournalEntry?.runningBalance?.amount??0,xt.currencyCode,xt.currencySymbol))??Ge})})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:We.scheduleHeaders.months}),t.jsx(ue,{children:t.jsxs(fe,{className:"highlight",children:[a.scheduledJournalEntry.expectedPostDate.diff(a.startDate,"month")+1,"/",a.period]})})]}),t.jsx(oe,{style:{width:ye.COLUMN_FOUR}}),t.jsxs(oe,{style:{alignItems:"flex-end",width:ye.COLUMN_FIVE},children:[t.jsx(ce,{children:We.scheduleHeaders.amountForMonth}),t.jsx(ue,{children:t.jsx(fe,{className:"highlight",children:Ze("0,0.[00]",Xt(a.scheduledJournalEntry.amount?.amount??0,xt.currencyCode,xt.currencySymbol))??Ge})})]})]})]}),t.jsx(li,{children:t.jsx($n,{form:ea(`${ot}_${a.jeScheduleId}`),label:zh,variant:"primary",className:"item-value-container",type:"submit",loading:l?.fetchState==="In-Progress",size:"small",disabled:!A,style:{minWidth:No}})})]})})})})},ia=(e,n,c,r,h,p,a,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,C=l!=null?h.find(k=>k.accountId===l):void 0,w=g!=null?a.find(k=>k.accountId===g):void 0,v=f!=null?p.find(k=>k.classId===f):void 0;return{[ot]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:w?.qboId,allOptions:r},vendor:{selectedOption:u?.id??m?.id,defaultOptions:as(d,u??m)},scheduleClass:{selectedOption:v?.classId,allOptions:c}}}},go=s(ao)`
852
- width: ${o.sp3};
853
- height: ${o.sp3};
854
- `,xo=s(ss)`
855
- width: 12px;
856
- height: 12px;
857
- color: ${tt.important};
858
- `;function Rs(){return t.jsx(ys,{children:t.jsxs(Cs,{children:[t.jsxs(ws,{children:[t.jsx(ze,{width:x[9],height:27,style:{marginBottom:x[2]}}),t.jsx(aa,{})]}),t.jsxs(bs,{children:[t.jsx(ze,{width:x[9],height:27,style:{marginBottom:x[2]}}),t.jsx(aa,{})]})]})})}const aa=()=>t.jsx(ri,{style:{minWidth:1088},children:t.jsxs(si,{children:[t.jsxs(ci,{children:[t.jsxs(ii,{children:[t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{children:t.jsx(ze,{width:x[10],height:14})}),t.jsxs(ue,{style:{gap:x[2]},children:[t.jsx(Xo,{height:x[4],width:x[4]}),t.jsx(ze,{height:x[4],width:x[10]})]})]}),t.jsxs(oe,{children:[t.jsx(ce,{children:t.jsx(ze,{width:101,height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:203})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:t.jsx(ze,{width:x[9],height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:71})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_FOUR,paddingLeft:x[3]},children:[t.jsx(ce,{children:t.jsx(ze,{width:107,height:14})}),t.jsx(ze,{height:x[4],width:68})]}),t.jsxs(oe,{style:{alignItems:"flex-end",width:ye.COLUMN_FIVE},children:[t.jsx(ce,{children:t.jsx(ze,{width:73,height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:49})})]})]}),t.jsxs(ai,{children:[t.jsxs(oe,{style:{width:ye.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ce,{children:t.jsx(ze,{width:49,height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:158})})]}),t.jsxs(oe,{children:[t.jsx(ce,{children:t.jsx(ze,{width:36,height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:88})})]}),t.jsxs(oe,{style:{width:ye.COLUMN_THREE},children:[t.jsx(ce,{children:t.jsx(ze,{width:36,height:14})}),t.jsx(ue,{children:t.jsx(ze,{height:x[4],width:100})})]}),t.jsx(oe,{style:{width:ye.COLUMN_FOUR,paddingLeft:x[3]}}),t.jsx(oe,{style:{width:ye.COLUMN_FIVE}})]})]}),t.jsxs(li,{children:[t.jsx(ze,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(ze,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),ze=s(Vt)`
859
- border-radius: ${o.sp1};
860
- `,{common:{create:Hh,resolve:Wh}}=Ae.getLocalizedStrings();function Uh({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:c,onJESchedulesFormDataChange:r,onPostJESchedule:h,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:a,setCurrentFooterFormId:d}){const l=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,g=e.ignoreStatusById,f=i.useRef(!1),[C,w]=i.useState(!1),v=i.useRef($=>{$&&!f.current&&(f.current=!0,w(!0))});Tn({componentName:"expense_automation.je_schedules",enabled:C});const k=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:R,allClassList:I,allDepreciationAccountList:S}=e,T=zt(e.accountListNestedAccountHierarchy),D=zt(e.allDepreciationAccountListNestedAccountHierarchy),A=Jn(e.classListNestedAccountHierarchy),O=($,M,N)=>{c($,M,N)},b=($,M,N,G)=>{let z=$.target;for(;z;){if(z.classList.contains("item-value-container")||z.classList.contains("hover-background")||z.classList.contains("auto-complete-single-select-field__input")||z.classList.contains("auto-complete-single-select-field__option")||z.classList.contains("grouped-single-select-field__input")||z.classList.contains("grouped-single-select-field__menu"))return;z=z.parentElement}c(M,N,G)};return i.useEffect(()=>{if(k.length!==0){for(const $ in m)if(Object.prototype.hasOwnProperty.call(m,$)){const{updatedAccumulatedDepreciationCategoryID:M,updatedCategoryId:N,updatedVendor:G}=m[$];if(M!=null||N!=null||G!=null&&G?.id!==""){d("expenseAutomationJESchedulePage");break}else d("expenseAutomationPage")}}else k.length===0&&d("expenseAutomationPage")}),i.useEffect(()=>()=>{d("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Rs,{}):l.length!==0||k.length!==0?t.jsx(ys,{children:t.jsxs(Cs,{children:[l.length>0?t.jsxs(ws,{children:[t.jsxs(la,{children:[Hh,t.jsx(ca,{isCircular:l.length<10,children:t.jsx(da,{children:l.length})})]}),t.jsx(sa,{"data-testid":B("expense-automation","draft-je-schedules"),children:l.map(($,M)=>t.jsx(ra,{ref:v.current,children:t.jsx(_h,{ignoreStatus:g[$.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:O,jeScheduleClickHandler:b,draft:$})},`${M}_${$.jeScheduleId}`))})]}):null,k.length>0?t.jsxs(bs,{children:[t.jsxs(la,{children:[Wh,t.jsx(ca,{isCircular:k.length<10,children:t.jsx(da,{children:k.length})})]}),t.jsx(sa,{"data-testid":B("expense-automation","resolve-je-schedules"),children:k.map(($,M)=>m[$.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(ra,{ref:v.current,children:t.jsx(Vh,{vendorSearchAutoCompleteActions:a,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:b,onPostJESchedule:h,uncategorizedAccounts:y,allAccountList:R,allAccountGroupedOptions:T,allClassGroupedOptions:A,allClassList:I,allDepAccountGroupedOptions:D,allDepAccountList:S,draft:$,postStatus:u[$.scheduledJournalEntry.scheduledJournalEntryID],localData:m[$.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:r})},`${M}_${$.jeScheduleTransactionKey}`))})]}):null]})}):null}const sa=s.div`
861
- display: flex;
862
- flex-direction: column;
863
- gap: ${o.sp4};
864
- min-width: 1088px;
865
- `,ra=s.div``,la=s(za)`
866
- color: ${e=>e.theme.colors.primary};
867
- padding: ${o.sp2} ${o.sp0};
868
- display: flex;
869
- align-items: center;
870
- gap: ${o.sp1};
871
- `,ca=s.div`
872
- border-radius: ${o.sp12};
873
- display: flex;
874
- justify-content: center;
875
- border: ${e=>`1px solid ${e.theme.colors.grey1}`};
876
- color: ${e=>e.theme.colors.hero};
877
- ${e=>e.isCircular?Se`
878
- height: ${o.sp3};
879
- width: ${o.sp3};
880
- padding: ${o.sp0};
881
- `:Se`
882
- height: 18px;
883
- padding: ${nl.padding};
884
- `}
885
- `,da=s(ol)`
886
- color: ${e=>e.theme.colors.hero};
887
- height: 100%;
888
- width: 100%;
889
- display: flex;
890
- align-items: center;
891
- justify-content: center;
892
- color: inherit;
893
- `;function qh({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:c,vendorSearchAutoCompleteData:r,onJESchedulesFormDataChange:h,onPostJESchedule:p,handleJeScheduleClick:a,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:l,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:g,setIsJeAccountSettingsOpened:f}){const{jeSchedules:C}=e;return C.fetchState==="In-Progress"||C.accountSettingsView.fetchState==="In-Progress"?t.jsx(Rs,{}):C.accountSettingsView.fetchState==="Completed"&&C.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&C.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(Ah,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:c,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:l,accountSettings:C.accountSettingsView,setCurrentFooterFormId:g}):C.fetchState==="Completed"&&C.draftSchedules.length===0&&C.resolveSchedules.length===0?t.jsx(Tt,{tab:e.currentSelectedView,title:Je(e.currentSelectedView).allDoneText.title,subTitle:Je(e.currentSelectedView).allDoneText.subTitle}):C.fetchState==="Completed"?t.jsx(Uh,{setCurrentFooterFormId:g,handleJeScheduleClick:a,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:h,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:r}):null}const Kh=72,Ds=50,Jh=1,Gh=["receipts"],ua=e=>ls(e,Gh),{common:{texts:{vendor:Yh,amount:Zh,receipts:Qh,category:Xh,classText:ep,date:tp}}}=Ae.getLocalizedStrings(),Os={key:"vendor",value:Yh,sortOrder:"ascending",width:new ae(18,18)},np={key:"category",value:Xh,sortOrder:"ascending",width:new ae(18,18)},op={key:"class",value:ep,sortOrder:"ascending",width:new ae(18,18)},ip={key:"date",value:tp,sortOrder:"descending",width:new ae(11,11)},ap={key:"receipts",value:Qh,sortOrder:"descending",width:new ae(6,6)},Ms={key:"amount",value:Zh,sortOrder:"ascending",width:new ae(10,10)},jn=[Os,np,op,ip,ap,Ms],_s=[{...Os,width:new ae(65,65)},{...Ms,width:new ae(30,30)}],fo={sortKey:"date",sortOrder:"descending"},ha={containerPaddingLeftRight:new ae(x[3],x[4])},Ps=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:c})=>{const r=Te(),h=Ht(),p=h?_s:jn,[a,d]=i.useState(p);i.useEffect(()=>{const u=[...p];for(const g of u)g.key===e.sortKey?g.sortOrder=e.sortOrder:g.sortOrder="ascending";d(u)},[e.sortKey,e.sortOrder,h]);const l=(u,g)=>{let f=g;e.sortKey===u&&(f=g==="ascending"?"descending":"ascending"),c(u,f)},m=u=>{ua(u.key)==null&&l(Pl(u.key),u.sortOrder)};return t.jsx(sp,{windowSize:r,children:a.map((u,g)=>{const f=n!=null||ua(u.key)!=null;return t.jsxs(rp,{sortDataValue:e.sortKey,actualDataValue:u.key,wrapperWidth:u.width,isSortDisabled:f,windowSize:r,isLastItem:g===a.length-1,style:u.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(hp,{onClick:()=>f?null:m(u),isSortDisabled:f,children:[t.jsx(pp,{children:u.value}),f?null:t.jsx(cp,{sortConfig:e,headerData:u,children:t.jsx(up,{})})]}),f?null:t.jsx(dp,{isSortDisabled:f,sortDataValue:e.sortKey,isVisible:e.sortKey===u.key&&e.sortKey!==fo.sortKey,children:t.jsx(lp,{onClick:()=>{f||l(fo.sortKey,fo.sortOrder)},"data-testid":B("missing-receipts-header-close-icon",u.key)})})]},u.key)})})},sp=s.div`
894
- top: ${o.sp0};
895
- left: ${o.sp0};
896
- height: ${Ds}px;
897
- z-index: 2;
898
- display: flex;
899
- align-items: center;
900
- justify-content: space-between;
901
- box-sizing: border-box;
902
- background-color: ${e=>e.theme.colors.grey4};
903
- position: sticky;
904
- padding-left: ${e=>ha.containerPaddingLeftRight.valuePx(e.windowSize)};
905
- padding-right: ${e=>ha.containerPaddingLeftRight.valuePx(e.windowSize)};
906
- `,rp=s.div`
907
- color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
908
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
909
- max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
910
- padding-left: ${o.sp0};
911
- left: ${o.sp0};
912
- display: flex;
913
- align-items: center;
914
- gap: 6px;
915
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
916
- position: static;
917
- z-index: 0;
918
- box-sizing: border-box;
919
- `,lp=s(io)`
920
- width: ${o.sp2};
921
- height: ${o.sp2};
922
- cursor: pointer;
923
- `,cp=s.div`
924
- display: flex;
925
- align-items: center;
926
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
927
- `,dp=s.div`
928
- display: ${e=>e.isVisible?"flex":"none"};
929
- align-items: center;
930
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
931
- &:hover {
932
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
933
- }
934
- `,up=s(oo)`
935
- width: ${o.sp2};
936
- height: ${o.sp2};
937
- `,hp=s.div`
938
- display: flex;
939
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
940
- gap: 6px;
941
- &:hover {
942
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
943
- }
944
- `,pp=s(bt)`
945
- display: flex;
946
- `,{common:{strings:{underscore:Bs,hyphen:yo,empty:pa},documents:{singleFileUploadSizeErrorMessage:mp,multipleFileUploadSizeErrorMessage:gp},snackBar:{missing_receipts_attachment:{failed:xp}},tooltips:{addMissingReceipt:fp}},dateFormat:yp}=Ae.getLocalizedStrings(),qn={containerPaddingLeftRight:new ae(x[3],x[4]),containerPaddingTopBottom:new ae(x[2],x[3])},Cp=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:c,authParams:r,selectedPeriod:h,onUploadReceiptComplete:p,onMissingReceiptsRowClick:a,onUploadReceiptFetchStatus:d,onUploadReceiptAttachment:l})=>{const m=Te(),u=Ht(),g=i.useRef(null),f=i.useCallback(async(k,y,R,I,S)=>{d(e.id,"In-Progress"),await Nl(k,y,R,I,S).then(({uploadResponse:T,errorMessage:D})=>{T!=null?T.transaction.attachments!=null&&(l(T.transaction),setTimeout(()=>p(T.transaction,h),2e3)):d(e.id,"Error",{code:500,message:xp},D)}).catch(T=>{d(e.id,"Error",T)})},[e.id,h,l,p,d]),C=i.useCallback(k=>{if(k.target.files!=null){const y=k.target.files,R=[],I=[];for(let S=0;S<y.length;S++)R.push(y[S].name),I.push(y[S]);f(c,r,y[0],y[0].name,{id:e.id,type:e.type})}},[r,f,c,e.id,e.type]),w=i.useCallback(()=>{u||g.current?.click()},[g,u]),v=u?_s:jn;return t.jsx(Fs,{className:"missing-receipts-row-card",windowSize:m,isQuickViewMode:u,onClick:()=>a(e.id,e.type),"data-testid":B("missing-receipts-list-row",e.id),children:v.map((k,y)=>{const R=`${e.id}${Bs}${k.key}`;switch(k.key){case"vendor":default:return t.jsx(en,{windowSize:m,wrapperWidth:k.width,children:t.jsx(tn,{windowSize:m,isLastItem:y===v.length-1,children:t.jsxs(Zn,{children:[t.jsx(Xa,{photoUrl:e.vendorId!=null?e.logo?.toString()??pa:pa,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:x[4],height:x[4]},fallbackAvatar:t.jsx(Ip,{children:t.jsx(In,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(it,{text:e.vendorName??e.description,itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"}})]})})},R);case"category":case"class":{const I=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:yo,S=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:yo,T=k.key==="category"?I:S;return t.jsx(en,{windowSize:m,wrapperWidth:k.width,children:t.jsx(tn,{windowSize:m,isLastItem:y===v.length-1,children:t.jsx(Zn,{children:T!==yo?t.jsx(it,{text:T,itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"}}):t.jsx(kp,{children:T})})})},R)}case"date":return t.jsx(en,{windowSize:m,wrapperWidth:k.width,children:t.jsx(tn,{windowSize:m,isLastItem:y===v.length-1,children:t.jsx(Zn,{children:t.jsx(it,{text:e.date.format(yp.visual.MMMDCommaYYYYformat),itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"}})})})},R);case"receipts":return t.jsx(en,{windowSize:m,wrapperWidth:k.width,children:t.jsx(tn,{windowSize:m,isLastItem:y===v.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Jo,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(tl,{shouldDisplay:!0,width:x[4],height:x[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(jp,{onClick:I=>{I.stopPropagation()},children:t.jsx(Ko,{"data-testid":B("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:g,sizeLimit:Gn,multiple:!1,acceptableTypes:[...cs],onFileChange:C,onFileSizeError:(I,S)=>{I&&d(e.id,"Error",{code:500,message:S===!0?mp.replace("__maxFileSize__",Si(Gn,0)):gp.replace("__maxFileSize__",Si(Gn,0))})}})}),t.jsx(Ce,{display:"flex",placement:"bottom",title:fp,enterDelay:600,children:t.jsx(Sp,{onClick:I=>{I.stopPropagation(),w()}})})]})})},R);case"amount":{const I=Ze("0,0.[00]",e.amount);return t.jsx(en,{windowSize:m,wrapperWidth:k.width,children:t.jsx(tn,{windowSize:m,isLastItem:y===v.length-1,children:t.jsx(it,{text:e.amount.amount<0?`-${I}`:I,itemTextStyle:{...Ft.standardRegular.cssObject,color:"inherit"}})})},R)}}})})},wp=()=>{const e=Te(),n=i.useRef(null),[c,r]=i.useState(0);return i.useLayoutEffect(()=>{n.current&&r(n.current.offsetWidth)},[e]),t.jsx(Fs,{windowSize:e,isQuickViewMode:!1,ref:n,children:jn.map((h,p)=>{const a=`${p}${Bs}${h.key}`;switch(h.key){case"vendor":return t.jsx(en,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===jn.length-1,children:t.jsxs(Zn,{children:[t.jsx(Xo,{width:x[4],height:x[4]}),t.jsx(Vt,{width:c*h.width.value(e)/100,height:x[4],style:{display:"flex",alignItems:"center"}})]})})},a);default:return t.jsx(en,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===jn.length-1,children:t.jsx(Vt,{width:c*h.width.value(e)/100,height:x[4],style:{display:"flex",alignItems:"center"}})})},a)}})})},Fs=s.div`
947
- display: flex;
948
- background-color: ${e=>e.theme.colors.grey5};
949
- padding-left: ${e=>qn.containerPaddingLeftRight.valuePx(e.windowSize)};
950
- padding-right: ${e=>qn.containerPaddingLeftRight.valuePx(e.windowSize)};
951
- padding-top: ${e=>qn.containerPaddingTopBottom.valuePx(e.windowSize)};
952
- padding-bottom: ${e=>qn.containerPaddingTopBottom.valuePx(e.windowSize)};
953
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
954
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
955
- border-radius: ${o.sp2};
956
- color: ${e=>e.theme.colors.hero};
957
- cursor: pointer;
958
- &:hover {
959
- border-color: ${e=>e.theme.colors.primary};
960
- color: ${e=>e.theme.colors.primary};
961
- }
962
-
963
- box-sizing: border-box;
964
- align-items: center;
965
- justify-content: space-between;
966
- `,en=s.div`
967
- display: flex;
968
- align-items: center;
969
- position: relative;
970
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
971
- min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
972
- :last-of-type {
973
- padding-right: ${o.sp0};
974
- }
975
- `,bp=Se`
976
- word-break: break-all;
977
- white-space: normal;
978
- -webkit-line-clamp: 1;
979
- -webkit-box-orient: vertical;
980
- overflow: hidden;
981
- text-overflow: ellipsis;
982
- display: -webkit-box;
983
- `,vp=Se`
984
- height: ${o.sp3};
985
- width: ${o.sp3};
986
- cursor: pointer;
987
- `,Sp=s(ao)`
988
- ${vp};
989
- color: ${e=>e.theme.colors.brandColorGoldDark};
990
- &:hover {
991
- color: ${e=>e.theme.colors.primary};
992
- }
993
- `,tn=s(Ve)`
994
- overflow: hidden;
995
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
996
- display: flex;
997
- width: 100%;
998
- align-items: center;
999
- `,jp=s.div``,Zn=s.div`
1000
- display: flex;
1001
- flex-direction: row;
1002
- column-gap: ${o.sp2};
1003
- align-items: center;
1004
- `,kp=s(Ve)`
1005
- ${bp};
1006
- color: inherit;
1007
- `,Ip=s.div`
1008
- display: flex;
1009
- `,$p=({sortConfig:e,fetchState:n,isDisabled:c,onColumnSortConfigChanged:r})=>{const h=Te();return t.jsxs(Lp,{windowSize:h,children:[t.jsx(Ps,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":c,onColumnSortConfigChanged:r}),t.jsx(Tp,{windowSize:h,children:[...Array(3)].map((p,a)=>t.jsx(wp,{},a))})]})},Lp=s.div`
1010
- display: block;
1011
- min-height: 100%;
1012
- flex-direction: column;
1013
- width: 100%;
1014
- `,Tp=s.div`
1015
- display: flex;
1016
- min-height: 100%;
1017
- flex-direction: column;
1018
- row-gap: ${o.sp3};
1019
- `,{common:Ap}=Ae.getLocalizedStrings(),Ep=({missingReceipts:e,receiptUploadEndpoint:n,authParams:c,selectedPeriod:r,isDisabled:h,onMissingReceiptsRowClick:p,onUploadReceiptComplete:a,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:l,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const g=Te(),{fetchState:f,uiState:C,transactions:w}=e;Tn({componentName:"expense_automation.missing_receipts",enabled:f==="Completed"});const v=i.useRef(null),[k,y]=i.useState(!1);i.useEffect(()=>{v.current?.resetAfterIndex(0)},[g,v]),i.useEffect(()=>{f==="Completed"&&y(!1)},[f]);const R=S=>Kh,I=(S,T)=>{m({sortOrder:T,sortKey:S})};return t.jsxs(Op,{children:[t.jsx(Mp,{windowSize:g,children:f==="Error"?t.jsxs(Pp,{windowSize:g,children:[t.jsx(Bp,{onClick:()=>u(),"data-testid":B("missing-receipts-list-table-reload-button"),children:t.jsx(qo,{})}),t.jsx(Fp,{children:Ap.reloadPage.label})]}):f==="Completed"&&w.length===0?t.jsx(Tt,{tab:"missing_receipts",title:Je("missing_receipts").allDoneText.title,subTitle:Je("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&w.length===0?t.jsx($p,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},fetchState:f,onColumnSortConfigChanged:I}):t.jsx(_p,{windowSize:g,children:t.jsx(to,{children:({height:S,width:T})=>t.jsxs(Np,{style:{height:S,width:T},children:[t.jsx(Dp,{children:t.jsx(Ps,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},isDisabled:f==="In-Progress"?"readonly":h,onColumnSortConfigChanged:I})}),t.jsx(no,{ref:v,height:S-Ds,innerElementType:zs,itemCount:w.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:c,isDisabled:h,selectedPeriod:r,onMissingReceiptsRowClick:p,onUploadReceiptComplete:a,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:l},itemSize:R,width:T,style:{willChange:"auto"},overscanCount:Jh,onScroll:({scrollOffset:D})=>{m({scrollPosition:{scrollTop:D}})},initialScrollOffset:C.scrollPosition?.scrollTop,children:Rp})]})})})}),t.jsx(Ue,{controller:k===!0,children:t.jsx(Vp,{children:t.jsx(Jo,{size:"Small",start:!0})})})]})},Rp=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{missingReceipts:h,receiptUploadEndpoint:p,authParams:a,onMissingReceiptsRowClick:d,onUploadReceiptComplete:l,onUploadReceiptAttachment:m,onUploadReceiptFetchStatus:u,selectedPeriod:g}=c,f=h.transactions[e],C=r!=null&&r===f.id;return t.jsx(zp,{isPanelSelected:C,style:{...n,width:"100%"},children:t.jsx(Cp,{transaction:f,receiptUploadEndpoint:p,authParams:a,selectedPeriod:g,onMissingReceiptsRowClick:d,onUploadReceiptComplete:l,onUploadReceiptAttachment:m,onUploadReceiptFetchStatus:u,uploadReceiptsFetchState:h.uploadReceiptStatusById[f.id]??{fetchState:"Not-Started",error:void 0}},f.id)})},Dp=s.div`
1020
- width: auto;
1021
- max-width: var(--side-panel-list-width, 100%);
1022
- padding-right: var(--side-panel-list-item-pr, 0px);
1023
- `,Op=s.div`
1024
- width: 100%;
1025
- height: 100%;
1026
- background-color: ${e=>e.theme.colors.grey4};
1027
- `,Mp=s.div`
1028
- height: 100%;
1029
- `,_p=s.div`
1030
- height: 100%;
1031
- display: flex;
1032
- flex-direction: column;
1033
- max-width: 99.9%;
1034
- `,Pp=s.div`
1035
- display: flex;
1036
- width: 100%;
1037
- height: ${e=>`calc(100% - ${Za.valuePx(e.windowSize)})`};
1038
- flex-direction: column;
1039
- justify-content: center;
1040
- align-items: center;
1041
- `,Bp=s.div`
1042
- height: 96px;
1043
- width: 96px;
1044
- background: ${e=>e.theme.colors.background};
1045
- border-radius: 50%;
1046
- cursor: pointer;
1047
- & svg {
1048
- margin: ${o.sp5};
1049
- color: ${e=>e.theme.colors.grey1};
1050
- }
1051
- &:hover {
1052
- & svg {
1053
- color: ${e=>e.theme.colors.primary};
1054
- }
1055
- }
1056
- `,Fp=s(Jr)`
1057
- margin-top: ${o.sp3};
1058
- color: ${e=>e.theme.colors.hero};
1059
- `,zp=s.div`
1060
- top: ${o.sp0};
1061
- left: ${o.sp0};
1062
- padding-bottom: ${o.sp3};
1063
- padding-right: var(--side-panel-list-item-pr, 0px);
1064
- box-sizing: border-box;
1065
- ${e=>e.isPanelSelected===!0&&Se`
1066
- .missing-receipts-row-card {
1067
- ${ni(e.theme)}
1068
- }
1069
- `}
1070
- `,Np=s.div`
1071
- position: relative;
1072
- `,zs=i.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})});zs.displayName="Missing receipts inner element type";const Vp=s.div`
1073
- display: flex;
1074
- width: 100%;
1075
- height: ${o.sp3};
1076
- flex-direction: row;
1077
- justify-content: center;
1078
- align-items: center;
1079
- margin-top: ${o.sp3};
1080
- margin-bottom: ${o.sp3};
1081
- `,Hp=[...Ol],Wp=7*1024*100,Up=s.div`
1082
- width: ${vn}px;
1083
- `,Co=s.div`
1084
- width: ${e=>`${e.availableWidth}px`};
1085
- min-width: auto;
1086
- position: relative;
1087
- height: fit-content;
1088
- min-height: ${o.sp12};
1089
- `,qp=s.div`
1090
- flex-grow: 1;
1091
- overflow: auto;
1092
- min-height: 2em;
1093
- display: flex;
1094
- flex-direction: row;
1095
- position: relative;
1096
-
1097
- pointer-events: auto;
1098
- user-select: text;
1099
- justify-content: space-between;
1100
- margin-bottom: ${o.sp2};
1101
-
1102
- // Disable select for Zeni Logo and File Separator
1103
- #${qa} img[alt*="company logo"],
1104
- .attachFileSeparator {
1105
- user-select: none;
1106
- }
1107
- `,Kp=s.div`
1108
- display: flex;
1109
- column-gap: ${o.sp2};
1110
- align-items: flex-end;
1111
- margin-top: ${o.sp2};
1112
- margin-bottom: ${o.sp3};
1113
- `,Jp=s.div`
1114
- position: relative;
1115
- `,ma=s(Ve)`
1116
- position: relative;
1117
- `,Gp=s.div`
1118
- background-color: ${e=>e.theme.colors.grey5};
1119
- border: ${e=>`1px solid ${e.theme.colors.background}`};
1120
- border-radius: ${o.sp2};
1121
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1122
- padding: ${o.sp5};
1123
- color: ${e=>e.theme.colors.primary};
1124
- position: relative;
1125
- .lexicalEditor__nestedListItem {
1126
- list-style-type: none;
1127
- }
1128
- user-select: text;
1129
-
1130
- .monthEndReportCanvasWrapper > * {
1131
- isolation: isolate;
1132
- z-index: ${x[1]};
1133
- }
1134
- `,Yp=s.div`
1135
- user-select: text;
1136
- `,Zp=s.div`
1137
- position: absolute;
1138
- top: ${o.sp4}; // Attachment icon position from the top
1139
- right: -${o.sp3}; // To show attachment icon on the edge
1140
- `,Qp=s.div`
1141
- margin-top: ${o.sp2};
1142
- display: flex;
1143
- flex-direction: column;
1144
- row-gap: ${o.sp3};
1145
- margin-bottom: ${o.sp4};
1146
- position: relative;
1147
-
1148
- .toolbar {
1149
- user-select: none;
1150
- }
1151
- `,Xp=s(At)`
1152
- color: ${e=>e.theme.colors.grey1};
1153
- user-select: none;
1154
- `,em=s(Ya)`
1155
- color: ${e=>e.theme.colors.primary};
1156
- `,tm=s.div`
1157
- flex-direction: column;
1158
- row-gap: ${o.sp3};
1159
- display: flex;
1160
- `,nm=ei`
1161
- 0% {
1162
- transform: translateX(100%);
1163
- }
1164
- 100% {
1165
- transform: translateX(0)
1166
- }
1167
- `,om=ei`
1168
- 0% {
1169
- transform: translateX(0)
1170
- }
1171
- 100% {
1172
- transform: translateX(100%)
1173
- }
1174
- `,im=s.div`
1175
- animation: ${e=>e.allThreadsSectionOpen?nm:om}
1176
- 0.5s forwards;
1177
- height: 100vh;
1178
- position: fixed;
1179
- right: ${o.sp0};
1180
- top: ${o.sp0};
1181
- z-index: ${x[2]};
1182
- min-width: ${Ha}px;
1183
- max-width: ${Va}px;
1184
- `,Qn="monthEndReportFormSection",ga="monthEndReportPage",Xe=Ae.getLocalizedStrings();function am({companyId:e,enableZeniGPTFeature:n,monthEndReportView:c,previewMode:r,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:a,newThreadMetadata:d,isZeniUser:l,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:g,onUpdateFileAttachment:f,onCloseAllThreadsSection:C,previewMonthEndReport:w,saveMonthEndReport:v,onEditClick:k,onOpenFileAttachmentSnackBar:y,onClickCustomerRequest:R,sendMonthEndReport:I}){const S=wt(),[T,D]=i.useState(),[A,O]=i.useState(0),[b,$]=i.useState(0),M=i.useRef(),N=i.useRef(null),G=i.useRef(null),{html:z,subject:V,improveUsingZeniGPTStatus:de}=c,[_,H]=i.useState(),[ie,he]=i.useState(!1),[xe,ge]=i.useState(!1),q=i.useRef(null),K=i.useRef(null),Y=yr(p,250),P=c.fetchState==="Not-Started"||c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:Z,threadsPositions:F,observer:X,unresolvedThreadsMap:J,handleRemoveFloatingThread:W}=Cr(a,q,!r,P,l),U=i.useCallback(()=>{p?K.current!=null&&$(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Va-x[4])):K.current!=null&&O(Math.min((K.current.offsetWidth-vn-x[4])/2,K.current.offsetWidth-vn-Ha-x[4]))},[p]);i.useEffect(()=>{U()},[p,U]),i.useEffect(()=>(window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}),[U]);const L=l?_a:Pa,{openThread:ne,addThread:ee,setOpenThread:Q}=i.useContext(L),pe=wr(bi,!1,!r),Ie=q.current?.getBoundingClientRect(),j=pe!=null&&pe.coords&&Ie?{left:pe.coords.left-Ie.left,top:pe.coords.top-Ie.top}:void 0,se=i.useCallback(()=>{const $e=window.getSelection()?.getRangeAt(0),re=br();if(!$e||re==null)return;const Le={...d,...re,startPath:re.startPath.join(),endPath:re.endPath.join()},le=`${Ua()}${Wa}`,_e=`cockpit_${e}`;ee(le,{type:"thread",id:le,roomId:_e,createdAt:new Date,comments:[],metadata:Le,updatedAt:new Date,resolved:!1}),Q(le)},[ee,e,d,Q]);i.useEffect(()=>{ne!=null&&p&&C()},[p,ne,C]);const je=de.fetchState==="In-Progress",Ne=an({mode:"all",defaultValues:xa(c),values:xa(c)}),Ee=Ne.handleSubmit($e=>{const{recipientEmailList:re,subject:Le}=$e[Qn];if(r===!0)I?.(_?.id);else{const le=T?.replace(vr,Xe.common.strings.empty);re!=null&&Le!=null&&w(re,Le,_?.id,le!=null&&le.length>0?T:void 0)}}),Oe=()=>{N.current!=null&&N.current.click()},we=()=>{_!==void 0&&_!=null&&(g([_.id]),H(void 0),he(!1))},at=$e=>{const re=$e.target.files?$e.target.files[0]:null;if(re)if(!Ml(re.type)||xe)console.warn("Please select a valid file.");else{const Le=new FileReader;Le.onload=function(le){const _e=le.target?.result;if(typeof _e=="string"){const dt={data:_e.split(",")[1],name:re.name,id:_l(e,re.name)};H(dt),he(!0),f([dt])}},Le.readAsDataURL(re)}},st=()=>{G.current&&G.current.scrollIntoView({behavior:"smooth"})},qe=()=>{const $e=Ne.getValues(),{recipientEmailList:re,subject:Le}=$e[Qn];re!=null&&Le!=null&&v(re,Le,_?.id,T)};i.useEffect(()=>{D(c.zeniRequestsHtml)},[c.zeniRequestsHtml]),i.useEffect(()=>{M.current=_},[_]),i.useEffect(()=>{H(Dl(c.attachmentFile)),he(!1)},[c.attachmentFile]),i.useEffect(()=>{xe&&y()},[xe,y]);const me=zo(`${m.year}-${m.month}-01`).format(Xe.dateFormat.visual.MMMMFormat),Me=z!=null?z.split(Sr):[],Rt=c.concatenatedHtml,mt=()=>c.lastDraftSavedDate!=null&&r===!1?t.jsx(Kr,{time:c.lastDraftSavedDate,user:c.reportLastSavedByUser,timeStampLabel:Xe.cockpit.monthEndReport.timeStampLabel}):null,Ut=()=>l===!0?Y?t.jsxs(t.Fragment,{children:[t.jsx(im,{allThreadsSectionOpen:p,children:t.jsx(Ur,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${S.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${tt.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:S.colors.background},threadsContainerStyle:{paddingBottom:r?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Xe.common.texts.comments,filter:a,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:($e,re)=>{Q(re);const Le=Z.findIndex(le=>le[0]===re);C(),E.current?.[Le]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Co,{availableWidth:A})]}):t.jsx(qr,{observer:X,canvasContainerRef:q,sortedThreads:Z,threadsPositions:F,threadsRefs:E,unresolvedThreadsMap:J,editorMode:!r,style:{minWidth:`${A}px`,position:"relative",height:"fit-content",top:`${q.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:W}):t.jsx(Co,{availableWidth:A}),gt=(c.zeniRequestsData??[]).length+jr(c.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(qp,{ref:K,children:[t.jsx(Co,{availableWidth:p?b:A}),t.jsxs(Up,{children:[t.jsx(sn,{...Ne,children:t.jsx("form",{id:fa(ga),onSubmit:Ee,children:t.jsxs(tm,{children:[t.jsx(kr,{sectionId:Qn,previewMode:r,subject:V}),!r&&gt>0?t.jsx(Ir,{totalItems:gt,onClickCustomerRequest:R}):null,t.jsxs(Gp,{id:bi,ref:q,children:[t.jsxs(Yp,{className:"monthEndReportCanvasWrapper",children:[_!=null||xe?t.jsx(Zp,{"data-testid":B("email-attachment-container"),onClick:st,children:t.jsx($r,{fileSizeError:xe,setFileSizeError:ge,loading:!1,showAnimation:!r&&ie})}):null,r?t.jsx(ma,{dangerouslySetInnerHTML:{__html:Lr(Rt)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Jp,{id:Tr,children:[t.jsx(Ve,{dangerouslySetInnerHTML:{__html:Me[0]!=null?Me[0]+"</body></html>":Xe.common.strings.empty}}),t.jsxs(Kp,{children:[t.jsx(em,{children:Xe.cockpit.monthEndReport.editorTitle}),t.jsx(Xp,{children:Xe.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Qp,{id:Ar,children:t.jsx(Er,{handleFileInputClick:Oe,fileAttached:_!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:je,initialHtmlString:c.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:D,customerRequestData:h})}),t.jsx(ma,{id:qa,dangerouslySetInnerHTML:{__html:Me[1]!=null?"<html><body>"+Me[1]:Xe.common.strings.empty}})]}),_!=null?t.jsx(Rr,{ref:G,fileName:_.name,fileSize:Dr(_.data),onRemove:we,isRemovable:!r}):null]}),j?t.jsx(Or,{style:{zIndex:15},coords:j,alignment:pe.alignment,onClick:se}):null,t.jsx(Mr,{canvasContainerRef:q,sortedThreads:Z,editorMode:!r,isZeniUser:l})]})]})})}),t.jsx(Ko,{name:_?.name??Xe.common.strings.empty,fileRef:N,sizeLimit:Wp,acceptableTypes:Hp,onFileChange:async $e=>{at($e)},onFileSizeError:$e=>ge($e),multiple:!1})]}),Ut()]}),t.jsx(Ba,{style:{zIndex:10},leftSideComponent:mt(),formId:fa(ga),cancelBtn:{isDisabled:je,label:r===!0?Xe.cockpit.monthEndReport.editButtonLabel:Xe.cockpit.monthEndReport.saveChanges,onClick:r===!0?k:qe,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:c.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:je,isLoading:r===!0?c.sendMonthEndReportStatus.fetchState==="In-Progress":c.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:r===!0?"unset":"136px"},label:r===!0?Xe.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",me):Xe.cockpit.monthEndReport.preview,size:"medium"}})]})}const xa=e=>({[Qn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Xe.common.strings.empty}}),fa=e=>`${e}_form`;Ft.smallBold.lineHeightValue;const sm=1,rm=50,ya=56,lm=["memo_and_receipt","activity","paymentAccount","receipt"],Ca=e=>ls(e,lm),wo=905,cm=1240,dm=1440,um=1920;function Et(e,n,c,r){const h=n,p=Math.round(n*cm/wo),a=Math.round(n*dm/wo),d=Math.round(n*um/wo),l=c??a,m=r??l;return new ae(e,n,h,Math.min(p,l),Math.min(a,l),Math.min(d,m))}const{common:{strings:{empty:hm}},expenseAutomation:{transactions:{header:{vendors:pm,category:mm,classText:gm,date:xm,type:fm,amount:ym,paymentAccount:Cm,memoReceipt:wm}}}}=Ae.getLocalizedStrings(),Ns={key:"vendor",value:pm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[7]}}},bm={key:"payment_account",value:Cm,sortOrder:"ascending",width:Et(180,180,200,320),customStyle:{common:{paddingLeft:x[0]}}},vm={key:"category",value:mm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},Sm={key:"class",value:gm,sortOrder:"ascending",width:Et(200,200,220,360),customStyle:{common:{paddingLeft:x[6]}}},jm={key:"date",value:xm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:x[0]}}},km={key:"transaction_type",value:fm,sortOrder:"descending",width:Et(108,108,130,144),customStyle:{common:{paddingLeft:0}}},Im={key:"memo_and_receipt",value:wm,sortOrder:"ascending",width:Et(108,108,108,120),customStyle:{common:{paddingLeft:0,justifyContent:"center",display:"flex",alignItems:"center"}}},Vs={key:"amount",value:ym,sortOrder:"ascending",width:Et(108,108,140,156),customStyle:{common:{paddingRight:x[0],justifyContent:"flex-end",display:"flex",alignItems:"center"}}},$m={key:"activity",value:hm,sortOrder:"ascending",width:Et(x[6],x[6],48,54),customStyle:{common:{}}},ui=e=>{const n=[Ns,bm,vm,Sm,jm,km,Im,Vs];return e===!0&&n.push($m),n},Hs=[{...Ns,width:new ae(65,65)},{...Vs,width:new ae(30,30)}],bo={sortKey:"date",sortOrder:"descending"},Ws=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:c,onColumnSortConfigChanged:r})=>{const h=Te(),p=Ht(),a=p?Hs:ui(c),[d,l]=i.useState(Fo(a));i.useEffect(()=>{const g=Fo(a);for(const f of g)f.key===e.sortKey?f.sortOrder=e.sortOrder:f.sortOrder="ascending";l(g)},[e.sortKey,e.sortOrder,p]);const m=(g,f)=>{let C=f;e.sortKey===g&&(C=f==="ascending"?"descending":"ascending"),r(g,C)},u=g=>{Ca(g.key)==null&&m(Fl(g.key),g.sortOrder)};return t.jsx(Lm,{windowSize:h,isQuickViewMode:p,"data-testid":B("transaction-categorization-header-container"),children:d.map((g,f)=>{const C=n!=null||Ca(g.key)!=null;return t.jsxs(Tm,{sortDataValue:e.sortKey,actualDataValue:g.key,wrapperWidth:g.width,style:g.customStyle?.common,isSortDisabled:C,isQuickViewMode:p,windowSize:h,isLastItem:f===d.length-1,"data-testid":B("transaction-categorization-header-wrapper",g.key),children:[t.jsxs(Om,{"data-testid":B("transaction-categorization-header",g.value?g.value:g.key),onClick:()=>u(g),isSortDisabled:C,children:[t.jsx(Mm,{children:g.value}),C?null:t.jsx(Em,{sortConfig:e,headerData:g,"data-testid":B("transaction-categorization-sort-icon",g.key),children:t.jsx(Dm,{})})]}),C?null:t.jsx(Rm,{isSortDisabled:C,sortDataValue:e.sortKey,isVisible:e.sortKey===g.key&&e.sortKey!==bo.sortKey,"data-testid":B("transaction-categorization-close-icon",g.key),children:t.jsx(Am,{onClick:()=>{m(bo.sortKey,bo.sortOrder)},"data-testid":B("transaction-categorization-close-icon-button",g.key)})})]},g.key)})})},Lm=s.div`
1185
- top: ${o.sp0};
1186
- left: ${o.sp0};
1187
- height: ${rm}px;
1188
- z-index: 2;
1189
- display: flex;
1190
- flex-wrap: nowrap;
1191
- align-items: center;
1192
- box-sizing: border-box;
1193
- background-color: ${e=>e.theme.colors.grey4};
1194
- position: sticky;
1195
- ${e=>e.isQuickViewMode?Se`
1196
- width: 100%;
1197
- justify-content: space-between;
1198
- `:Se`
1199
- column-gap: ${o.sp4};
1200
- width: max-content;
1201
- min-width: 100%;
1202
- `}
1203
- `,Tm=s.div`
1204
- color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
1205
- padding-left: ${o.sp0};
1206
- left: ${o.sp0};
1207
- display: flex;
1208
- align-items: center;
1209
- gap: 6px;
1210
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1211
- position: static;
1212
- z-index: 0;
1213
- box-sizing: border-box;
1214
- ${e=>e.isQuickViewMode?Se`
1215
- width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1216
- max-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1217
- `:Se`
1218
- width: ${e.wrapperWidth.valuePx(e.windowSize)};
1219
- max-width: ${e.wrapperWidth.valuePx(e.windowSize)};
1220
- `}
1221
- `,Am=s(io)`
1222
- width: 12px;
1223
- height: 12px;
1224
- `,Em=s.div`
1225
- display: flex;
1226
- align-items: center;
1227
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1228
- ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
1229
- `,Rm=s.div`
1230
- display: ${e=>e.isVisible?"flex":"none"};
1231
- align-items: center;
1232
- padding-top: 2px;
1233
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1234
- &:hover {
1235
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1236
- }
1237
- `,Dm=s(oo)`
1238
- width: ${o.sp2};
1239
- height: ${o.sp2};
1240
- `,Om=s.div`
1241
- display: flex;
1242
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1243
- gap: 6px;
1244
- &:hover {
1245
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1246
- }
1247
- `,Mm=s(bt)`
1248
- display: flex;
1249
- `,vo="expenseAutomationTransactionsPage",on="transactionCategorizationListTable",De="account",et="class",pt="lineEntitySelection",_m="lineEntity",Pm="recommendations",Us="lineInfo",Bm="vendorDetails",Fm="customerDetails",Xn="selectedTransactionIds",Mt=(e,n,c)=>`${e}.${c}.${n}`,zm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qs=e=>i.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),Nm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Vm=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M20.25 19.5H6.75C6.55109 19.5 6.36032 19.421 6.21967 19.2803C6.07902 19.1397 6 18.9489 6 18.75V2.25C6 2.05109 6.07902 1.86032 6.21967 1.71967C6.36032 1.57902 6.55109 1.5 6.75 1.5H15.75L21 6.75V18.75C21 18.9489 20.921 19.1397 20.7803 19.2803C20.6397 19.421 20.4489 19.5 20.25 19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.75 1.5V6.75H21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 11.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.4941 14.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M16.5 22.5H3V5.85315",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Hm,hyphen:_t,empty:Bt,colon:wa},tooltips:{addReceipt:Wm,viewReceipt:Um,viewReceipts:qm}},expenseAutomation:{transactions:ut},dateFormat:Km}=Ae.getLocalizedStrings(),Nt={containerPaddingLeftRight:new ae(x[3],x[4]),containerPaddingTopBottom:new ae(x[1],x[2]),containerPaddingTopBottomEmpty:new ae(x[2],x[3]),nameLogoWidth:new ae(x[2],x[4]),nameLogoHeight:new ae(x[2],x[4])},Jm=({transactionView:e,transaction:n,sectionId:c,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:a,listContainerRef:d,isCOTEnabled:l,cotTracking:m,onTransactionCategorizationRowClick:u,setCurrentTransactionInAction:g,vendorLoadOptions:f,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,setActivityLogTransactionId:k,isTransactionActivityEnabled:y,authParams:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(!1),[O,b]=i.useState(!1),{lineItemById:$,sortedLineItems:M}=n.transactionReviewLocalData,N=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],G=M.filter(L=>N.indexOf(L)!==-1),z=[];G.forEach(L=>{z.push($[L])});const{accountList:V,accountsHierarchyList:de,classHierarchyList:_,classList:H,uncategorizedAccounts:ie,transactions:he,selectedCheckBoxTransactionIds:xe}=e,ge=e.uploadReceiptStatusById,q=xe.includes(n.transactionId),K=wt(),Y={control:()=>({marginLeft:-2,backgroundColor:D?K.colors.background:K.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:x[0]}),menu:()=>({width:"150%",background:K.colors.grey5}),singleValue:()=>({color:D||q?K.colors.primary:K.colors.hero,paddingLeft:x[2]}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left",paddingLeft:x[2]}),menuPortal:L=>({...L,zIndex:10})},P={...Y,singleValue:L=>({...L,color:D||q?K.colors.primary:K.colors.hero}),menu:()=>({marginTop:x[1],marginLeft:-8}),input:L=>({...L,color:D||q?K.colors.primary:K.colors.hero,textAlign:"left"})},E=he.find(L=>L.id===n.transactionId),Z=(L,ne)=>{const{transactionType:ee}=ne.transactionReviewLocalData;let Q=L.target;for(;Q;){if(Q.classList.contains("select-value-container")||Q.classList.contains("item-value-container")||Q.classList.contains("grouped-single-select-field__value-container")||Q.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Q.classList.contains("grouped-single-select-field__input")||Q.classList.contains("grouped-single-select-field__menu"))return;Q=Q.parentElement}ee!=null&&u(ne.transactionId,ee)},F=i.useRef(null),[X,J]=i.useState(void 0),[W,U]=i.useState("bottom");return i.useEffect(()=>{if(X===void 0)return;const L=d?.current?._outerRef??null,ne=()=>{const ee=F.current;if(ee==null||L==null)return;const Q=ee.getBoundingClientRect(),pe=L.getBoundingClientRect(),Ie=L.scrollTop+(Q.bottom-pe.top),j=L.scrollHeight-Ie;U(j>=288?"bottom":"top")};return ne(),window.addEventListener("resize",ne),L?.addEventListener("scroll",ne),()=>{window.removeEventListener("resize",ne),L?.removeEventListener("scroll",ne)}},[d,X]),t.jsxs(Ym,{onMouseEnter:T?void 0:()=>A(!0),onMouseLeave:T?void 0:()=>A(!1),children:[t.jsx(Qm,{className:"categorization-row-card",windowSize:S,isSelected:q,isQuickViewMode:T,isHovered:D,children:t.jsx(Xm,{children:z.map((L,ne)=>t.jsx(e1,{ref:X===ne?F:void 0,"data-testid":B("transaction-categorization-list-row",L.lineId),windowSize:S,isQuickViewMode:T,onClick:ee=>Z(ee,n),children:t.jsx(Gm,{isTransactionActivityEnabled:y,line:L,isHovered:D||q,isSelected:q,isQuickViewMode:T,lineIndex:ne,sectionId:c,transaction:n,currentTransaction:E,windowSize:S,accountsHierarchyList:de,classHierarchyList:_,allAccountList:V,allClassList:H,uncategorizedAccounts:ie,vendorSearchAutoCompleteData:r,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:g,vendorLoadOptions:f,customStyle:Y,customStyleAutoComplete:P,recommendations:L.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:W,cotTracking:m,openTooltipId:C,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:v,authParams:R,uploadReceiptStatus:ge?.[n.transactionId],onUploadTransactionReceipt:I,onDropdownClose:()=>J(void 0),onDropdownOpen:()=>J(ne)})},`${n.transactionId}.${L.lineId}`))},n.transactionId)},n.transactionId),y===!0&&!T&&t.jsx(w1,{className:"activity-log-icon",onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onClick:L=>{L.stopPropagation(),k(n.transactionId)},children:t.jsx(Ce,{title:ut.header.activity,placement:"bottom",children:t.jsx(b1,{style:{color:O?K.colors.primary:K.colors.hero}})})})]})},Gm=({accountsHierarchyList:e,allAccountList:n,allClassList:c,classHierarchyList:r,customStyle:h,customStyleAutoComplete:p,line:a,lineIndex:d,transaction:l,currentTransaction:m,windowSize:u,uncategorizedAccounts:g,isHovered:f=!1,isSelected:C=!1,isQuickViewMode:w=!1,sectionId:v,recommendations:k,vendorSearchAutoCompleteData:y,selectedTab:R,isCOTEnabled:I,menuPlacement:S,cotTracking:T,openTooltipId:D,setCurrentTransactionInAction:A,vendorLoadOptions:O,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:$,isTransactionActivityEnabled:M,onDropdownClose:N,onDropdownOpen:G,authParams:z,uploadReceiptStatus:V,onUploadTransactionReceipt:de})=>{const{transactionDate:_,transactionType:H,transactionTypeName:ie,memo:he}=l.transactionReviewLocalData,{setValue:xe}=Qo(),ge=i.useCallback((te,ve)=>{T?.onCOTView!=null&&T.onCOTView(a.lineId,l.transactionId,te,ve)},[T,a.lineId,l.transactionId]),q=a.lineDescription,K=i.useMemo(()=>{if(q||he)return[{title:ut.description,description:q||_t},{title:ut.header.memo,description:he||_t}]},[he,q]),Y=Mt(v,pt,d.toString()),P=Mt(v,De,d.toString()),E=Mt(v,et,d.toString()),Z=(te,ve)=>{if(w)return;let ke;switch(ve){case"vendor":ke=Y;break;case"category":ke=P;break;case"class":ke=E;break;default:return}xe(`${ke}.selectedOption`,te,{shouldValidate:!0,shouldDirty:!0})},F=wt(),X=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.customer?.id??"",logo:l.transactionReviewLocalData.customer?.logo,name:l.transactionReviewLocalData.customer?.name??""}:{id:a.customer?.id??"",logo:a.customer?.logo,name:a.customer?.name??""},[m,a.customer?.id,a.customer?.logo,a.customer?.name,l.transactionReviewLocalData.customer?.id,l.transactionReviewLocalData.customer?.logo,l.transactionReviewLocalData.customer?.name]),J=i.useMemo(()=>m!=null&&Qt(m)===!0?{id:l.transactionReviewLocalData.vendor?.id??"",logo:l.transactionReviewLocalData.vendor?.logo,name:l.transactionReviewLocalData.vendor?.name??""}:{id:a.vendor?.id??"",logo:a.vendor?.logo,name:a.vendor?.name??""},[m,a.vendor?.id,a.vendor?.logo,a.vendor?.name,l.transactionReviewLocalData.vendor?.id,l.transactionReviewLocalData.vendor?.logo,l.transactionReviewLocalData.vendor?.name]),W=a[et]?.classId,U=a[De]?.qboId??a[De]?.accountId,L=X?.id,ne=J?.id,ee=J?.name,[Q,pe]=i.useState(!W),[Ie,j]=i.useState(!U||a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!0),[se,je]=i.useState(!ne||!L),Ne=te=>k?.find(ve=>ve.vendor?.qboId===te||ve.vendor?.id===te||ve.vendor?.name===te)?.vendor?.reason??"",Ee=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],Oe=os(e,Ee),we=ns(r,Ee),at=te=>n.filter(ve=>ve.qboId===te)[0]?.qboId,st=te=>c.filter(ve=>ve.classId===te)[0]?.accountingClassNumber??void 0,qe=i.useCallback(te=>Sn(g,te,$===!0?["income"]:void 0),[g,$]),[me,Me]=i.useState(!1),[Rt,mt]=i.useState(!1),[Ut,gt]=i.useState(!1),[$e,re]=i.useState(0),[Le,le]=i.useState(null),[_e,dt]=i.useState([]),[vt,He]=i.useState(void 0),rn=i.useRef(null),[ln,Dt]=i.useState(0),[qt,Kt]=i.useState(0),cn=al()?.url,[Rn,yn]=i.useState(!1),Zs=(te,ve)=>{A({transactionId:l.transactionId,lineItemId:a.lineId}),O(te,ve)},hi=()=>{je(!(ne||L)),Me(!1),N?.()},pi=()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0),yn(!1),N?.()},mi=()=>{pe(!W),mt(!1),N?.()},Qs=()=>{w||(ne||L)&&(Me(!0),G?.())},Xs=()=>{w||(mt(!0),G?.())},er=()=>{w||(yn(!0),G?.())};i.useEffect(()=>{U&&a[De]?.qboId!=null&&Sn(g,a[De].qboId,$===!0?["income"]:void 0)===!1?j(!1):j(!0)},[U]),i.useEffect(()=>{pe(!W)},[W]),i.useEffect(()=>{je(!(ne||L))},[ne,L]);const tr=l.transactionReviewLocalData.selectedEntity,nr=l.transactionReviewLocalData.lineItemById[a.lineId].selectedEntityLine,Ke=m!=null&&Qt(m)===!0?tr:nr,Dn=i.useMemo(()=>{const te=l.transactionReviewLocalData.lineItemById[a.lineId]?.recommendationsWithCOT||[],ve=y.entityAutoCompleteView;return{selectedOption:Ke?.qboId??Ke?.id,defaultOptions:Go(ve,Ke,te??[])}},[Ke,l.transactionReviewLocalData.lineItemById,a.lineId,y.entityAutoCompleteView]),or=()=>Ke!=null&&Ke.logo!=null?t.jsx(Xa,{photoUrl:Ke.logo.toString(),styles:{width:Nt.nameLogoWidth.valuePx(u),height:Nt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})})}):Ke!=null&&Ke.name!=null?t.jsx(Sa,{children:t.jsx(In,{name:Ke.name,size:o.sp4})}):null,gi=(te,ve)=>{if(ve==null||!ve)return;let ke=[];return te.forEach(jt=>{ke=ke.concat(jt.options)}),ke.find(jt=>jt.value===ve)?.label??ve},xi=gi(we,W),fi=gi(Oe,U),St=R==="review",yi=lo("vendor",Dn.defaultOptions,Dn.selectedOption),Ci=lo("category",Oe,U),wi=lo("class",we,W),ir=te=>{const ve=w?Hs:ui(te);return ve.map((ke,jt)=>{const lt=`${l.transactionId}_${ke.key}_${a.lineId}`;if(d>0&&m!=null&&Qt(m)===!0&&ke.key==="vendor")return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);if(d>0&&(ke.key==="transaction_type"||ke.key==="payment_account"||ke.key==="memo_and_receipt"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w},lt);switch(ke.key){case"activity":return t.jsx(Js,{},lt);case"vendor":default:return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,isQuickViewMode:w,className:"item-value-container",children:[!w&&t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"vendor",isFirstColumn:!0,isEnabled:!!Ke?.isPreFilled,isMisCategorized:yi,onRecommendationClick:Z,selectedValue:ne,selectedValueLabel:ee,isReviewTab:St,isAccountOptionDisabled:qe,existingOption:{label:m!=null&&Qt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Qt(m)===!0?m?.vendor?.id:void 0},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:se===!0?t.jsx(Io,{isHovered:f,isQuickViewMode:w,children:t.jsxs(ko,{onClick:Pe=>{Pe.stopPropagation(),!w&&(G?.(),je(!1),Me(!0))},"data-testid":B("add-vendor-button",v),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addPayee]})}):me===!0?t.jsx($t,{onClickAway:hi,children:t.jsx(f1,{"data-testid":B("vendor-selection-dropdown-container",Mt(v,pt,d.toString())),children:t.jsx(ul,{name:Y,placeholder:ut.addPayee,valueToInfo:Ne,defaultValue:{selectedOption:Dn.selectedOption,defaultOptions:Dn.defaultOptions},type:"vendor",autoFocus:!se,style:{width:"100%"},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:me,onMenuClose:hi,registerOptions:{required:!1},loadOptions:Zs,showCOT:I,onCOTView:ge,menuPlacement:S})})}):t.jsx(C1,{children:t.jsxs($o,{isHovered:f,isQuickViewMode:w,showOutline:!w&&yi&&Ke?.isPreFilled!==!0&&!C&&St,children:[or(),t.jsx(x1,{onClick:Qs,"data-testid":B("vendor-name-text",v),children:Ke!=null&&Ke.name?t.jsx(it,{text:Ke.name,itemTextStyle:{color:f?F.colors.primary:F.colors.hero}}):t.jsx(y1,{children:_t})})]})})})]},lt);case"category":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"category",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[De]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:Ci,onRecommendationClick:Z,selectedValue:U,selectedValueLabel:fi,existingOption:{label:Pe?.account?.accountName,value:Pe?.account?.qboId??Pe?.account?.accountId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Ie===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),j(!1),yn(!0))},"data-testid":B("category-selection-field",P),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addCategory]})}):Rn===!0?t.jsx($t,{onClickAway:pi,children:t.jsx(ja,{isHovered:f,"data-testid":B("category-selection-dropdown-container",P),children:t.jsx(Ai,{name:P,placeholder:ut.addCategory,valueToId:Qe=>at(Qe),type:"category",pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:U,allOptions:Oe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Rn,autoFocus:!Ie&&(!U||a[De]?.qboId!=null&&[g.expense?.qboId,g.income?.qboId].includes(a[De].qboId)),onMenuClose:pi,customStyleConfig:h,disableCurrentOption:qe,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:Ci&&a[De]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{onClick:er,"data-testid":B("category-label-text",P),children:t.jsx(it,{text:fi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"class":{const Pe=m?.lines!=null?m?.lines[d]:void 0;return t.jsxs(nt,{windowSize:u,wrapperWidth:ke.width,className:"item-value-container",children:[t.jsx(So,{isCOTEnabled:I,recommendations:Ee,type:"class",isFirstColumn:!1,isReviewTab:St,isEnabled:!!a[et]?.isPreFilled,isAccountOptionDisabled:qe,isMisCategorized:wi,onRecommendationClick:Z,selectedValue:W,selectedValueLabel:xi,existingOption:{label:Pe?.class?.className,value:Pe?.class?.classId},cotTracking:T,lineId:a.lineId,transactionId:l.transactionId,openTooltipId:D,setOpenTooltipId:b}),t.jsx(Lo,{children:Q===!0?t.jsx(Io,{isHovered:f,children:t.jsxs(ko,{onClick:Qe=>{Qe.stopPropagation(),!w&&(G?.(),pe(!1),mt(!0))},"data-testid":B("class-selection-field",E),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Kn,{}),ut.addClass]})}):Rt===!0?t.jsx($t,{onClickAway:mi,children:t.jsx(ja,{isHovered:f,"data-testid":B("class-selection-dropdown-container",E),children:t.jsx(Ai,{name:E,placeholder:ut.addClass,valueToId:Qe=>st(Qe),type:"class",showCOT:I,defaultValue:{selectedOption:W,allOptions:we},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",menuIsOpen:Rt,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!Q&&!W,customStyleConfig:h,onMenuClose:mi,menuPlacement:S,onCOTView:ge})})}):t.jsx($o,{isHovered:f,showOutline:wi&&a[et]?.isPreFilled!==!0&&!C&&St,children:t.jsx(ka,{"data-testid":B("class-selection-field",E),onClick:Xs,children:t.jsx(it,{text:xi??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},lt)}case"date":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Uo,{"data-testid":B("date-field",Mt(v,et,d.toString())),children:t.jsx(jo,{style:{color:f?F.colors.primary:F.colors.hero},children:_!=null?_.format(Km.visual.MMMDCommaYYYYformat):null})})})},lt);case"transaction_type":return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,"data-testid":B("transaction-type-field",Mt(v,et,d.toString())),isLastItem:jt===ve.length-1,children:ie!=null?t.jsx(cl,{textColor:f?new Zo(F.colors.primary):dl(void 0,F),text:ie??H}):null})},lt);case"amount":{const Pe=Ze("0,0.[00]",a.amount,!0);return t.jsx(nt,{windowSize:u,style:{marginRight:te&&!w?x[0]:x[4]},wrapperWidth:ke.width,isQuickViewMode:w,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,style:{justifyContent:"flex-end"},children:t.jsx(Uo,{"data-testid":B("transaction-amount-field",Mt(v,et,d.toString())),style:{color:f?F.colors.primary:F.colors.hero},children:Pe})})},lt)}case"payment_account":{if(!(H==="expense"||H==="check"||H==="bill_payment"||H==="vendor_credit"||H==="credit_card_credit"||H==="deposit"||H==="sales_receipt"||H==="refund"||H==="payment"))return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(jo,{style:{textAlign:"center",width:"100%"},children:_t})})},lt);const Pe=m?.account?.accountName,Qe=m?.paymentType,Cn=m?.paymentTypeName,On=Qe==="credit_card"?o1:Qe==="cash"?i1:Qe==="check"?s1:Qe==="ach"?k1:a1,ct={title:Bt,items:[{text:ut.paymentAccountTooltip.accountLabel+wa,amount:Pe??_t},...Cn!=null?[{text:ut.paymentAccountTooltip.methodLabel+wa,amount:Cn}]:[]]};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,children:t.jsx(nn,{windowSize:u,isLastItem:jt===ve.length-1,children:t.jsx(Ce,{display:"flex",placement:"bottom",variant:"list-description",data:ct,title:Pe??_t,enterDelay:600,style:{overflow:"hidden",minWidth:0},children:t.jsxs(n1,{style:{color:f?F.colors.primary:F.colors.hero},children:[On!=null&&t.jsx(On,{style:{color:f?F.colors.primary:F.colors.hero}}),t.jsx(jo,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Pe??_t})]})})})},lt)}case"memo_and_receipt":{const Pe=m?.attachments??[],Qe=V?.fetchState==="In-Progress",Cn=ct=>{if(ct.stopPropagation(),Pe.length===0||m==null)return;if(cn==null){console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");return}He(Pe[0]),re(0),gt(!0);const wn=Pe.map(Jt=>Jt.id),Mn=`${cn}/transaction_attachments`;gl(Mn,z,{transaction_key:{transaction_id:m.id,transaction_type:m.type},attachment_ids:wn}).then(Jt=>{dt(Jt),Jt.length>0&&le(Jt[0])})},On=ct=>{ct.stopPropagation(),rn.current?.click()};return t.jsx(nt,{windowSize:u,wrapperWidth:ke.width,"data-testid":B("memo-field",Mt(v,et,d.toString())),children:t.jsxs(v1,{onClick:ct=>ct.stopPropagation(),children:[K!=null?t.jsx(Ce,{display:"flex",placement:"bottom",data:K,variant:"multi-information-points",style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsx(l1,{style:{color:f?F.colors.primary:F.colors.hero}})}):t.jsx(r1,{style:{margin:0},children:_t}),Qe?t.jsx(Jo,{size:"Small",style:{display:"flex"},start:!0}):Pe.length===0?t.jsx(Ce,{display:"flex",placement:"bottom",title:Wm,enterDelay:600,children:t.jsx(Kn,{style:{margin:0},onClick:ct=>{ct.stopPropagation(),On(ct)}})}):Pe.length===1?t.jsx(Ce,{display:"flex",placement:"bottom",title:Um,enterDelay:600,children:t.jsx(S1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}):t.jsx(Ce,{display:"flex",placement:"bottom",title:qm,enterDelay:600,children:t.jsx(j1,{style:{color:f?F.colors.primary:F.colors.hero},onClick:Cn})}),t.jsx(Ko,{name:`transaction-receipt-${l.transactionId}`,fileRef:rn,sizeLimit:Gn,multiple:!0,acceptableTypes:[...cs],onFileChange:ct=>{const wn=ct.target.files;if(wn!=null&&wn.length>0){const Mn=Array.from(wn);de(R,l.transactionId,H??Bt,Mn,Mn.map(Jt=>Jt.name))}},onFileSizeError:()=>{}})]})},lt)}}})},rt=m?.attachments??[],so=vt??rt[0];return t.jsxs(t.Fragment,{children:[ir(M),Ut&&rt.length>0&&so!=null?Wl.createPortal(t.jsx(sl,{allFiles:_e,fileSource:Le,file:so,title:so.fileName,attachments:rt,showNavigation:!1,setFileSource:le,setShowFullScreenView:gt,onCrossClick:()=>{gt(!1),le(null),dt([]),He(void 0),re(0)},onNextClick:()=>{const te=($e+1)%rt.length;re(te),He(rt[te]),_e[te]!=null&&le(_e[te])},onPreviousClick:()=>{const te=($e-1+rt.length)%rt.length;re(te),He(rt[te]),_e[te]!=null&&le(_e[te])},setSelectedFileAttachment:te=>{He(typeof te=="function"?ve=>te(ve??rt[0]):te)},handleTouchStart:te=>Dt(te.targetTouches[0].clientX),handleTouchMove:te=>Kt(te.targetTouches[0].clientX),handleTouchEnd:()=>{if(ln-qt>50&&qt!==0&&$e<rt.length-1){const te=$e+1;re(te),He(rt[te]),_e[te]!=null&&le(_e[te]),Dt(0),Kt(0)}else if(ln-qt<-50&&qt!==0&&$e>0){const te=$e-1;re(te),He(rt[te]),_e[te]!=null&&le(_e[te]),Dt(0),Kt(0)}}}),document.body):null]})},ba=({isEnabled:e,isReviewTab:n,isMisCategorized:c,hasRecommendations:r,isTooltipVisible:h=!1})=>e?n?h?t.jsx(u1,{}):t.jsx(c1,{}):h?t.jsx(d1,{}):t.jsx(h1,{className:"ai-icon-selected-plain"}):!e&&c||r?h?t.jsx(m1,{}):t.jsx(p1,{}):null,va=({isFirstColumn:e,children:n})=>t.jsx(Gs,{isFirstColumn:e,children:n}),So=({recommendations:e,isCOTEnabled:n,type:c,isReviewTab:r,selectedValueLabel:h,isFirstColumn:p,isEnabled:a=!1,isMisCategorized:d=!1,selectedValue:l,existingOption:m,cotTracking:u,lineId:g,openTooltipId:f,transactionId:C,isAccountOptionDisabled:w,onRecommendationClick:v,setOpenTooltipId:k})=>{const y=i.useMemo(()=>`${C}:${g}:${c}`,[C,g,c]),R=f===y,I=wl().analytics,{createAlternateRecommendationCallback:S}=bl(),T=i.useCallback(N=>{const G=e[1],z=e[0];S(c,{currentValue:h??Bt,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:g,onCOTView:(V,de,_,H)=>{u.onCOTView?.(V,de,_,H)}}:void 0},G,z)(N)},[S,e,h,r,c,u,g,C]),D=vl(e,c,n,m,"list_page",r?"pending_review":"auto_categorized",v,T,l,w),A=Sl(e,c),O=i.useCallback(()=>{k(y);const N=D?.recommendations[0]?.cot??[],G=D?.recommendations[1]?.cot??[],z=G.length>0;if(I.trackTransactionCotView({recommendationFor:c,currentValue:h??Bt,recommendation:D?.recommendations[0]?.name??Bt,recommendationCot:N,isRecommendationCotAvailable:N.length>0,recommendationReason:D?.recommendations[0]?.reason??Bt,recommendationConfidencePercentage:D?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:ji(ki(D?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:D?.recommendations[1]?.name??Bt,alternativeRecommendationCot:G,isAlternativeRecommendationCotAvailable:z,alternativeRecommendationReason:D?.recommendations[1]?.reason??Bt,alternativeRecommendationConfidencePercentage:D?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:z?ji(ki(D?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:r?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const V=jl(D);V!=null&&u.onCOTView(g,C,c,V)}},[I,D,r,h,c,g,C,y,k]),b=i.useCallback(()=>{f===y&&k(void 0)},[f,y,k]),$=i.useMemo(()=>!l||!A?!1:e.some(N=>c==="vendor"&&N.vendor!=null?N.vendor.id===l||N.vendor.qboId===l:c==="category"&&N.account!=null?N.account.qboId===l||N.account.accountId===l:c==="class"&&N.class!=null?N.class.classId===l:!1),[l,A,e,c]);if(!A)return t.jsx(Gs,{isFirstColumn:p});const M=a||$;return D?t.jsx(va,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:D,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:R,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:O,onClose:b,children:t.jsx(g1,{children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})})}):t.jsx(va,{isFirstColumn:p,children:t.jsx(ba,{isEnabled:M,isReviewTab:r,isMisCategorized:d,hasRecommendations:A,isTooltipVisible:R})})},Ks=({isTransactionActivityEnabled:e})=>{const n=Te(),c=ui(e);return t.jsx(Zm,{windowSize:n,children:c.map((r,h)=>{const p=`${h}${Hm}${r.key}`;switch(r.key){case"activity":return t.jsx(Js,{},p);case"vendor":return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,style:{paddingLeft:o.sp3},children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsxs(Uo,{children:[t.jsx(Xo,{width:x[4],height:x[4]}),t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})]})})},p);default:return t.jsx(nt,{windowSize:n,wrapperWidth:r.width,children:t.jsx(nn,{windowSize:n,isLastItem:h===c.length-1,children:t.jsx(Vt,{width:"100%",height:x[4],style:{display:"flex",alignItems:"center"}})})},p)}})})},Js=s.div`
1250
- width: ${o.sp0};
1251
- height: ${o.sp0};
1252
- `,Ym=s.div`
1253
- display: flex;
1254
- height: 100%;
1255
- flex: 1;
1256
- align-items: center;
1257
-
1258
- &:hover .activity-log-icon {
1259
- visibility: visible;
1260
- }
1261
- `,Zm=s.div`
1262
- display: flex;
1263
- flex-direction: row;
1264
- flex-wrap: nowrap;
1265
- background-color: ${e=>e.theme.colors.grey5};
1266
- padding-right: ${e=>Nt.containerPaddingLeftRight.valuePx(e.windowSize)};
1267
- padding-top: ${e=>Nt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1268
- padding-bottom: ${e=>Nt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1269
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1270
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1271
- border-radius: ${o.sp2};
1272
- color: ${e=>e.theme.colors.hero};
1273
- cursor: pointer;
1274
- &:hover {
1275
- border-color: ${e=>e.theme.colors.primary};
1276
- }
1277
-
1278
- box-sizing: border-box;
1279
- align-items: center;
1280
- column-gap: ${o.sp4};
1281
- min-width: min-content;
1282
- `,Qm=s.div`
1283
- display: flex;
1284
- height: 100%;
1285
- background-color: ${e=>e.theme.colors.grey5};
1286
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1287
- box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1288
- border-radius: ${o.sp2};
1289
- color: ${e=>e.theme.colors.hero};
1290
- border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
1291
- cursor: pointer;
1292
- ${e=>e.isQuickViewMode?Se`
1293
- flex: 1;
1294
- padding-left: ${Nt.containerPaddingLeftRight.valuePx(e.windowSize)};
1295
- `:Se`
1296
- min-width: min-content;
1297
- `}
1298
- &:hover {
1299
- border-color: ${e=>e.theme.colors.primary};
1300
- }
1301
-
1302
- box-sizing: border-box;
1303
- align-items: center;
1304
- justify-content: space-between;
1305
-
1306
- .ai-icon-selected-plain {
1307
- color: ${e=>e.theme.colors.hero};
1308
- }
1309
-
1310
- ${({isHovered:e,theme:n})=>e?Se`
1311
- .ai-icon-selected-plain {
1312
- color: ${n.colors.primary};
1313
- }
1314
- `:null};
1315
- `,Xm=s.div`
1316
- display: flex;
1317
- flex: 1;
1318
- flex-direction: column;
1319
- min-width: min-content;
1320
- box-sizing: border-box;
1321
- align-items: stretch;
1322
- `,e1=s.div`
1323
- display: flex;
1324
- flex: 1;
1325
- flex-direction: row;
1326
- flex-wrap: nowrap;
1327
- align-items: center;
1328
- height: ${o.sp8};
1329
- padding-top: ${e=>Nt.containerPaddingTopBottom.valuePx(e.windowSize)};
1330
- padding-bottom: ${e=>Nt.containerPaddingTopBottom.valuePx(e.windowSize)};
1331
- ${e=>e.isQuickViewMode===!0?Se`
1332
- width: 100%;
1333
- justify-content: space-between;
1334
- `:Se`
1335
- min-width: min-content;
1336
- column-gap: ${o.sp4};
1337
- `}
1338
- `,nt=s.div`
1339
- display: flex;
1340
- align-items: center;
1341
- flex-direction: row;
1342
- position: relative;
1343
- :last-of-type {
1344
- padding-right: ${o.sp0};
1345
- }
1346
- ${e=>e.isQuickViewMode===!0?Se`
1347
- width: calc(
1348
- ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1349
- ${o.sp4}
1350
- );
1351
- min-width: calc(
1352
- ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1353
- ${o.sp4}
1354
- );
1355
- `:Se`
1356
- box-sizing: border-box;
1357
- width: ${e.wrapperWidth.valuePx(e.windowSize)};
1358
- min-width: ${e.wrapperWidth.valuePx(e.windowSize)};
1359
- max-width: ${e.wrapperWidth.valuePx(e.windowSize)};
1360
- `}
1361
- `,t1=Se`
1362
- word-break: break-word;
1363
- white-space: nowrap;
1364
- -webkit-line-clamp: 1;
1365
- -webkit-box-orient: vertical;
1366
- overflow: hidden;
1367
- text-overflow: ellipsis;
1368
- display: -webkit-box;
1369
- `,nn=s(Ve)`
1370
- overflow: hidden;
1371
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1372
- display: flex;
1373
- width: 100%;
1374
- align-items: center;
1375
- `,Uo=s.div`
1376
- display: flex;
1377
- flex-direction: row;
1378
- column-gap: ${o.sp2};
1379
- align-items: center;
1380
- `,jo=s(Ve)`
1381
- ${t1};
1382
- min-width: 0;
1383
- color: ${e=>e.theme.colors.hero};
1384
- `,ko=s(Ve)`
1385
- color: ${e=>e.theme.colors.hero};
1386
- `,n1=s.div`
1387
- display: flex;
1388
- align-items: center;
1389
- gap: ${o.sp2};
1390
- cursor: default;
1391
- overflow: hidden;
1392
- min-width: 0;
1393
- `,o1=s(xl)`
1394
- width: ${o.sp3};
1395
- height: ${o.sp3};
1396
- flex-shrink: 0;
1397
- `,i1=s(fl)`
1398
- width: ${o.sp3};
1399
- height: ${o.sp3};
1400
- flex-shrink: 0;
1401
- `,a1=s(Cl)`
1402
- width: ${o.sp3};
1403
- height: ${o.sp3};
1404
- flex-shrink: 0;
1405
- `,s1=s(zm)`
1406
- width: ${o.sp3};
1407
- height: ${o.sp3};
1408
- flex-shrink: 0;
1409
- `,Kn=s(ao)`
1410
- width: ${o.sp3};
1411
- height: ${o.sp3};
1412
- margin: ${o.sp1};
1413
- cursor: pointer;
1414
- color: ${e=>e.theme.colors.brandColorGoldDark};
1415
- &:hover {
1416
- color: ${e=>e.theme.colors.primary};
1417
- }
1418
- `,r1=s.div`
1419
- margin: ${o.sp3};
1420
- `,l1=s(Nm)`
1421
- width: ${o.sp3};
1422
- height: ${o.sp3};
1423
- `,c1=s(Ll)`
1424
- width: ${o.sp5};
1425
- height: ${o.sp5};
1426
- `,d1=s(Vl)`
1427
- width: ${o.sp5};
1428
- height: ${o.sp5};
1429
- `,u1=s($l)`
1430
- width: ${o.sp5};
1431
- height: ${o.sp5};
1432
- `,h1=s(Hl)`
1433
- width: ${o.sp5};
1434
- height: ${o.sp5};
1435
- `,p1=s(En)`
1436
- width: ${o.sp3};
1437
- height: ${o.sp3};
1438
- path {
1439
- stroke-width: 2;
1440
- }
1441
- `,m1=s(Tl)`
1442
- width: ${o.sp3};
1443
- height: ${o.sp3};
1444
- `,Gs=s.div`
1445
- display: flex;
1446
- align-items: center;
1447
- justify-content: center;
1448
- width: ${o.sp5};
1449
- margin-left: ${e=>e.isFirstColumn?o.sp2:o.sp0};
1450
- height: 100%;
1451
- `,g1=s.div`
1452
- display: flex;
1453
- align-items: center;
1454
- justify-content: center;
1455
- width: auto;
1456
- cursor: pointer;
1457
- `,x1=s(Ve)`
1458
- display: flex;
1459
- max-width: calc(100% - ${o.sp6});
1460
- flex: 1 1 auto;
1461
- color: ${e=>e.theme.colors.primary};
1462
- text-align: center;
1463
- align-items: center;
1464
- overflow: hidden;
1465
- display: flex;
1466
- `,Sa=s.div`
1467
- display: flex;
1468
- `,f1=s.div`
1469
- width: 100%;
1470
- padding-left: 10px;
1471
- margin-left: ${o.sp0};
1472
- border-radius: ${o.sp1};
1473
- background-color: ${e=>e.theme.colors.background};
1474
- display: flex;
1475
- align-items: center;
1476
- flex-direction: row;
1477
- `,Io=s.div`
1478
- padding: ${o.sp0} ${o.sp2};
1479
- border-radius: ${o.sp1};
1480
- margin-left: ${o.sp0};
1481
- width: 100%;
1482
- background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1483
- `,ja=s.div`
1484
- width: 100%;
1485
- border-radius: ${o.sp1};
1486
- padding-left: 2px;
1487
- background-color: ${e=>e.theme.colors.background};
1488
- background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1489
- display: flex;
1490
- align-items: center;
1491
- flex-direction: row;
1492
- `,y1=s(Ve)``,C1=s.div`
1493
- width: 100%;
1494
- display: flex;
1495
- padding-left: ${o.sp0};
1496
- `,$o=s.div`
1497
- width: 100%;
1498
- display: flex;
1499
- flex-direction: row;
1500
- align-items: center;
1501
- gap: ${o.sp2};
1502
- padding: ${o.sp2};
1503
- padding-left: ${o.sp2};
1504
- border-radius: ${o.sp1};
1505
- background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1506
- outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
1507
- outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
1508
- `,ka=s.div``,Lo=s.div`
1509
- display: flex;
1510
- align-items: center;
1511
- width: calc(100% - ${o.sp5});
1512
- `,w1=s.div`
1513
- display: flex;
1514
- align-items: center;
1515
- justify-content: center;
1516
- cursor: pointer;
1517
- visibility: hidden;
1518
- flex-shrink: 0;
1519
- margin-left: ${o.sp3};
1520
- `,b1=s(qs)`
1521
- width: ${o.sp3};
1522
- height: ${o.sp3};
1523
- `,v1=s.div`
1524
- display: flex;
1525
- align-items: center;
1526
- justify-content: center;
1527
- width: 100%;
1528
- gap: ${o.sp5};
1529
- `,S1=s(ml)`
1530
- width: ${o.sp3};
1531
- height: ${o.sp3};
1532
- cursor: pointer;
1533
- `,j1=s(Vm)`
1534
- width: ${o.sp3};
1535
- height: ${o.sp3};
1536
- cursor: pointer;
1537
- `,k1=s(yl)`
1538
- width: ${o.sp3};
1539
- height: ${o.sp3};
1540
- cursor: pointer;
1541
- `,I1=({sortConfig:e,fetchState:n,isDisabled:c,isTransactionActivityEnabled:r,onColumnSortConfigChanged:h})=>{const p=Te();return t.jsxs($1,{windowSize:p,children:[t.jsx(Ws,{isTransactionActivityEnabled:r,sortConfig:e,isDisabled:n==="In-Progress"?"readonly":c,onColumnSortConfigChanged:h,"data-testid":B("transaction-categorization-list-empty-table-header")}),t.jsx(L1,{windowSize:p,"data-testid":B("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((a,d)=>t.jsx(Ks,{isTransactionActivityEnabled:r,"data-testid":B("transaction-categorization-list-empty-row",d.toString())},d))})]})},$1=s.div`
1542
- display: block;
1543
- min-height: 100%;
1544
- flex-direction: column;
1545
- width: 100%;
1546
- box-sizing: border-box;
1547
- overflow-x: auto;
1548
- padding-left: ${o.sp8};
1549
- padding-right: ${o.sp8};
1550
- `,L1=s.div`
1551
- display: flex;
1552
- flex: 1;
1553
- min-height: 100%;
1554
- flex-direction: column;
1555
- row-gap: ${o.sp3};
1556
- `,{common:T1,transactionDetail:{notCategorizedTooltipText:A1}}=Ae.getLocalizedStrings(),To={rowGap:new ae(x[0],x[2],x[3])},E1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,isCOTEnabled:h,isDisabled:p,vendorSearchAutoCompleteActions:a,isTransactionActivityEnabled:d,vendorSearchAutoCompleteData:l,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:g,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:w,containerRef:v,cotTracking:k,isUncategorizedExpenseCategoryEnabled:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const S=Te(),T=Ht(),[D,A]=i.useState(void 0),{fetchState:O,uiState:b,transactionLocalData:$,selectedCheckBoxTransactionIds:M,transactionIdsWithUnsavedData:N,transactions:G,uncategorizedAccounts:z}=n;Tn({componentName:`expense_automation.transaction_categorization.${e}`,enabled:O==="Completed"});const V=i.useRef(null),de=i.useRef({}),{control:_}=Qo();i.useEffect(()=>{V.current?.resetAfterIndex(0,!0)},[S,V,$]),i.useEffect(()=>{V.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const H=i.useCallback(L=>{if(de.current?.[L]!=null){const Q=S==="small"&&b.pageToken==null&&L===$.length-1?To.rowGap.value("medium-regular"):To.rowGap.value(S);return de.current[L]+Q}if($[L]==null)return 0;const ne=$[L].transactionReviewLocalData,ee=Object.keys(ne.lineItemById).length;return ee!=null&&!isNaN(ee)&&ee>1?ya*ee+To.rowGap.value(S)*(ee-1):ya},[$,S,b.pageToken,b.sortKey,b.sortOrder]),ie=i.useCallback((L,ne)=>{de.current={...de.current,[L]:ne},V.current?.resetAfterIndex(0,!0)},[S,V,$,b.sortKey,b.sortOrder]),he=i.useCallback(()=>{(b.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&w(e,b.searchString,!0,b.pageToken,!0,!1)},[n.refreshStatus.fetchState,w,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),xe=i.useCallback(()=>{b.pageToken!=null&&he()},[he,b.pageToken,b.sortKey,b.sortOrder]),ge=Gr(L=>C(e,{scrollPosition:{scrollTop:L}}),1e3,{trailing:!0}),q=L=>L<n.transactionLocalData.length,K=(L,ne)=>{f(e,{sortOrder:ne,sortKey:L}),w(e,b.searchString,!1,null,!1,!0)},Y=L=>{if(e==="autoCategorized")return!M.includes(L);const ne=$.find(Q=>Q.transactionId===L)?.transactionReviewLocalData,ee=G.find(Q=>Q.id===L);return ee!=null&&ne!=null?Bl(ee,ne,z,y)?y===!0&&Li(z,ne.lineItemById,["expense"])?N.includes(L)===!1:!1:!0:M.length===0?!0:!M.includes(L)};let P=[],E=[];(O==="Completed"||n.transactionLocalData.length>0)&&(E=n.transactionLocalData.map((L,ne)=>{const ee=Y(L.transactionId);let Q=!1;y===!0&&ee===!0&&e==="review"&&Li(z,L.transactionReviewLocalData.lineItemById,["expense"])&&(Q=!N.includes(L.transactionId));const pe=L.transactionReviewLocalData;return{label:t.jsx(Jm,{isTransactionActivityEnabled:d,transactionView:n,sectionId:`${r}.${ne}.${Us}`,transaction:L,authParams:c,onTransactionCategorizationRowClick:g,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:a,vendorSearchAutoCompleteData:l,selectedTab:e,containerRef:v,listContainerRef:V,isCOTEnabled:h,cotTracking:k,openTooltipId:D,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I},`${L.transactionId}.${pe.transactionType}`),value:L.transactionId,defaultChecked:!1,groupLabel:!1,isException:Q,exceptionMode:Q===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:ee===!0?"readonly":void 0,exceptionType:Q===!0?"alert":void 0,exceptionInfo:Q===!0?A1:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),P=E.map(L=>L.value));const Z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:F,subTitle:X}=Je("transaction_categorization").allDoneText,J=$.map(L=>L.transactionId),W=i.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),U=i.useMemo(()=>$.reduce((L,ne)=>{const ee=Object.keys(ne.transactionReviewLocalData.lineItemById).length;return L+(ee>0?ee:1)},0)<n.totalCountByTab[e]?$.length+1:$.length,[$,n.totalCountByTab,e]);return t.jsx(_1,{windowSize:S,"data-testid":B("transaction-categorization-list-wrapper"),children:t.jsx(P1,{windowSize:S,"data-testid":B("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(F1,{windowSize:S,"data-testid":B("transaction-categorization-reload-page"),children:[t.jsx(z1,{onClick:()=>w(e,void 0,!0,null,!1,!0),"data-testid":B("transaction-categorization-reload-icon"),children:t.jsx(qo,{})}),t.jsx(N1,{"data-testid":B("transaction-categorization-reload-label"),children:T1.reloadPage.label})]}):O==="Completed"&&$.length===0?t.jsx(Tt,{tab:"transaction_categorization",title:F,subTitle:X,"data-testid":B("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&$.length===0?t.jsx(I1,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:O,onColumnSortConfigChanged:K,"data-testid":B("transaction-categorization-list-empty-table"),isTransactionActivityEnabled:d}):t.jsx(B1,{windowSize:S,"data-testid":B("transaction-categorization-list-view"),children:t.jsx(Qa,{control:_,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:L,ref:ne,onChange:ee}})=>t.jsx(Ys.Provider,{value:{value:L,mode:"off",allCheckBoxValues:P,index:0,isQuickViewMode:T,sortKey:b.sortKey,sortOrder:b.sortOrder,fetchState:O,isDisabled:p,groupLabelCheckBox:Z,isTransactionActivityEnabled:d,onColumnSortConfigChanged:K,ref:ne,onChange:ee,selectedTab:e},children:t.jsx(to,{children:({height:Q,width:pe})=>t.jsx(Yr,{isItemLoaded:q,itemCount:W,loadMoreItems:xe,children:({onItemsRendered:Ie,ref:j})=>t.jsx(no,{ref:se=>{j(se),V.current=se},height:Q,itemCount:U,itemKey:se=>`${$[se]?.transactionId??""}-row-${se}`,innerElementType:R1,onItemsRendered:Ie,width:pe,style:{willChange:"auto"},overscanCount:sm,itemSize:H,itemData:{checkboxes:E,value:L,allCheckBoxValues:P,groupLabelCheckBox:Z,categorizationGroupValue:J,transactionLocalData:$,isQuickViewMode:T,mode:"always_on",setRowHeight:ie,isItemLoaded:q,ref:j,onChange:ee,selectedCheckBoxTransactionIds:M,isTransactionActivityEnabled:d},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:se})=>{ge(se)},children:O1})})})})})})})})},R1=e=>{const{isQuickViewMode:n,value:c,allCheckBoxValues:r,groupLabelCheckBox:h,index:p,isDisabled:a,fetchState:d,sortKey:l,sortOrder:m,mode:u,isTransactionActivityEnabled:g,ref:f,onChange:C,onColumnSortConfigChanged:w}=D1(),{children:v,style:k,...y}=e;return d==="Completed"?t.jsxs(V1,{ref:f,style:{...k,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...y,children:[t.jsx(H1,{children:t.jsx(Bo,{selectionLimit:Ln,value:c,checkBox:{label:t.jsx(M1,{isQuickViewMode:n,children:t.jsx(Ws,{isTransactionActivityEnabled:g,sortConfig:{sortKey:l,sortOrder:m},isDisabled:a,onColumnSortConfigChanged:w})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:h,allCheckBoxValues:r,mode:n?"off":u,draggable:!1,checkBoxStyle:n?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:p,onChangeHandler:R=>is({event:R,value:c,allCheckBoxValues:r,groupLabelCheckBox:h,onChange:C}),ref:f})}),t.jsx(W1,{children:v})]},`${r[p]}-${p}`):null},Ys=i.createContext(void 0),D1=()=>{const e=i.useContext(Ys);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},O1=({index:e,style:n,data:c})=>{const{selectedTransactionId:r}=eo(),{checkboxes:h,value:p,groupLabelCheckBox:a,categorizationGroupValue:d,allCheckBoxValues:l,transactionLocalData:m,isQuickViewMode:u,isItemLoaded:g,setRowHeight:f,ref:C,onChange:w,selectedCheckBoxTransactionIds:v,isTransactionActivityEnabled:k}=c,y=i.useRef(null),R=Te();if(i.useEffect(()=>{y.current?.firstElementChild!=null&&f(e,y.current.firstElementChild.clientHeight)},[e,y,R,m[e]?.transactionReviewLocalData]),g(e)===!0){const I=h[e],S=r!=null&&r===d[e];return t.jsx(Ia,{isPanelSelected:S,isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:y,children:t.jsx(Bo,{selectionLimit:Ln,checkBox:u===!0?{...I,isException:!1}:I,value:p,groupLabelCheckBox:a,allCheckBoxValues:l,mode:u===!0||I.isDisabled==="readonly"||v.includes(I.value)===!1&&v.length>=Ln?"off":"always_on",draggable:!1,isDisabled:I.isDisabled,checkBoxStyle:u===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:u===!0?{display:"none"}:{padding:20},name:`${on}.${p}`,ref:C,index:e,onChangeHandler:T=>is({event:T,value:p,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:w})})},d[e])}else return t.jsx(Ia,{isQuickViewMode:u,style:{...n,paddingBottom:o.sp0,width:"100%",flex:"1"},ref:y,children:t.jsx(Bo,{checkBox:{label:t.jsx(Ks,{isTransactionActivityEnabled:k}),value:"loading",defaultChecked:!1,groupLabel:!1},value:p,groupLabelCheckBox:a,allCheckBoxValues:l,mode:"off",draggable:!1,checkBoxStyle:u===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:u===!0?{display:"none"}:{padding:20},name:"loading-placeholder",index:e,onChangeHandler:()=>{}})},Ua())},M1=s.div`
1557
- flex: 1;
1558
- width: auto;
1559
- padding-left: ${({isQuickViewMode:e})=>e===!0?o.sp8:o.sp0};
1560
- padding-right: ${({isQuickViewMode:e})=>e===!0?o.sp0:o.sp8};
1561
- `,_1=s.div`
1562
- width: 100%;
1563
- height: 100%;
1564
- background-color: ${e=>e.theme.colors.grey4};
1565
- `,P1=s.div`
1566
- height: 100%;
1567
- `,B1=s.div`
1568
- height: 100%;
1569
- display: flex;
1570
- flex-direction: column;
1571
- max-width: 99.9%;
1572
- `,F1=s.div`
1573
- display: flex;
1574
- width: 100%;
1575
- height: ${e=>`calc(100% - ${Za.valuePx(e.windowSize)})`};
1576
- flex-direction: column;
1577
- justify-content: center;
1578
- align-items: center;
1579
- `,z1=s.div`
1580
- height: 96px;
1581
- width: 96px;
1582
- background: ${e=>e.theme.colors.background};
1583
- border-radius: 50%;
1584
- cursor: pointer;
1585
- & svg {
1586
- margin: ${o.sp5};
1587
- color: ${e=>e.theme.colors.grey1};
1588
- }
1589
- &:hover {
1590
- & svg {
1591
- color: ${e=>e.theme.colors.primary};
1592
- }
1593
- }
1594
- `,N1=s(At)`
1595
- margin-top: ${o.sp3};
1596
- color: ${e=>e.theme.colors.hero};
1597
- `,Ia=s.div`
1598
- top: ${o.sp0};
1599
- left: ${o.sp0};
1600
- padding-bottom: ${o.sp3};
1601
- padding-left: ${({isQuickViewMode:e})=>e===!0?o.sp8:o.sp0};
1602
- padding-right: ${({isQuickViewMode:e})=>e===!0?o.sp0:o.sp8};
1603
- box-sizing: border-box;
1604
- ${e=>e.isPanelSelected===!0&&Se`
1605
- .categorization-row-card {
1606
- ${ni(e.theme)}
1607
- }
1608
- `}
1609
- `,V1=s.div`
1610
- background-color: ${e=>e.theme.colors.grey4};
1611
- `,H1=s.div`
1612
- top: 0;
1613
- left: 0;
1614
- width: 100%;
1615
- min-width: 100%;
1616
- z-index: 11;
1617
- display: flex;
1618
- align-items: center;
1619
- position: sticky;
1620
- background-color: ${e=>e.theme.colors.grey4};
1621
- `,W1=s.div`
1622
- position: relative;
1623
- width: auto;
1624
- height: 100%;
1625
- `,U1=({selectedTab:e,transactionView:n,authParams:c,sectionId:r,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:p,isCOTEnabled:a,isTransactionActivityEnabled:d,setCurrentFooterFormId:l,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:w,onUpdateSelectedCheckboxTransactionIds:v,onFetchRecommendationsForEntityCategorization:k,onFetchRecommendationsForEntityCategorizationWithCustomer:y,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})=>{const[S,T]=i.useState({transactionId:void 0,lineItemId:void 0}),D=i.useRef(),A=i.useRef({}),{useDynamicConfig:O}=Ka(),{configValue:b}=O(Ja.enableUncategorizedExpenseCategory),$=b?.uncategorized_expense_category_enabled===!0,M=(Y,P,E,Z)=>{const F={...A.current};F[P]==null&&(F[P]=[]);let X=F[P].findIndex(J=>J.lineId===Y);if(X===-1){const J={lineId:Y,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};F[P].push(J),X=F[P].length-1}else{const J=F[P][X];F[P][X]={...J,category:{...J.category,recommendationTypesViewed:[...J.category.recommendationTypesViewed]},class:{...J.class,recommendationTypesViewed:[...J.class.recommendationTypesViewed]},vendor:{...J.vendor,recommendationTypesViewed:[...J.vendor.recommendationTypesViewed]}}}Z!=null&&Z!==""&&!F[P][X][E].recommendationTypesViewed.includes(Z)&&F[P][X][E].recommendationTypesViewed.push(Z),A.current=F},{transactions:N,transactionLocalData:G,accountsHierarchyList:z,classHierarchyList:V,accountList:de,classList:_,selectedCheckBoxTransactionIds:H,uncategorizedAccounts:ie}=n,he=an({mode:"all",reValidateMode:"onChange",defaultValues:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),values:i.useMemo(()=>La(H,G,z,V,h.entityAutoCompleteView),[z,V,H,G,h.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});i.useEffect(()=>()=>{l("expenseAutomationPage")},[]),i.useEffect(()=>{H.length>0?l(vo):l("expenseAutomationPage")},[H,l]);const xe=he.handleSubmit(Y=>{const P=Y[Xn],E=A.current;w(e,P,E),P.forEach(Z=>{delete A.current[Z]})}),ge=async(Y,P)=>{if(Y!=null){if(Y===Xn){const E=he.getValues(Xn);if(E.length<H.length){v(e,E);return}if(E.length===Ln){v(e,E);return}const Z=E[E.length-1],F=P[on].findIndex(J=>J.transactionId===Z),X=he.getValues(`${on}.${F}.lineInfo`);if(X!=null){let J=!1;if(X.every(W=>(J=Sn(ie,W[De].selectedOption,$?["income"]:void 0),!!W[De].selectedOption&&W[De].selectedOption!=null&&!J&&!!W[et].selectedOption&&!!W[pt].selectedOption))===!0){v(e,E);return}else{const W=E.filter(U=>U!==Z);v(e,W);return}}return}if(Y.includes(De)===!0||Y.includes(et)===!0){const E=parseInt(Y.split(".")[1]),Z=parseInt(Y.split(".")[3]),F=he.getValues(`${on}.${E}.lineInfo`),X=F[Z];if(Y.includes(De)||Y.includes(et)){const{transactionId:J,lineId:W,recommendations:U}=X;if(F!=null){const L=X[De].selectedOption,ne=X[et].selectedOption,ee=X[pt].selectedOption,Q=X[pt].selectedOption,pe=X[pt].defaultOptions,Ie=pe?.find(me=>me.options?.find(Me=>Me.value===ee))?.options?.find(me=>me.value===ee)?.label,j=pe?.find(me=>me.options?.find(Me=>Me.value===Q))?.options?.find(me=>me.value===Q)?.label,se=h.entityAutoCompleteView.vendor.find(me=>me.qboId===ee),je=h.entityAutoCompleteView.customer.find(me=>me.qboId===Q),Ne=U.find(me=>me.vendor?.qboId===ee)?.vendor,Ee=ee||se?.qboId||Ne?.qboId?{id:ee??se?.qboId??Ne?.qboId??"",name:Ie??se?.name??Ne?.name??"",logo:se?.logo??Ne?.logo}:void 0,Oe=Q||je?.qboId?{id:Q??je?.qboId??"",name:j??je?.name??"",logo:je?.logo}:void 0,we=de.find(me=>me.qboId===L),at=_.find(me=>me.classId===ne),st=n.transactionLocalData.find(me=>me.transactionId===J)?.transactionReviewLocalData.lineItemById[W].account,qe=n.transactionLocalData.find(me=>me.transactionId===J)?.transactionReviewLocalData.lineItemById[W].class;m(e,J,W,N,Ee?.id,Oe?.id,Y.includes(De)&&we!=null?{...we,isPreFilled:!1}:st,Y.includes(et)&&at!=null?{...at,isPreFilled:!1}:qe,void 0,U,$)}return}}if(Y.includes(pt)){const E=parseInt(Y.split(".")[1]),Z=parseInt(Y.split(".")[3]),F=he.getValues(`${on}.${E}.lineInfo`);if(F!=null){const X=F[Z],{transactionId:J,recommendations:W}=X,U=X[pt].selectedOption,L=X[pt].selectedOption,ne=X[pt].defaultOptions,ee=ne?.flatMap(we=>we.options)?.find(we=>we.value===U)?.label,Q=ne?.flatMap(we=>we.options)?.find(we=>we.value===L)?.label,pe=h.entityAutoCompleteView.vendor.find(we=>we.qboId===U),Ie=h.entityAutoCompleteView.customer.find(we=>we.qboId===L),j=W.find(we=>we.vendor?.qboId===U)?.vendor,se=U!==""&&U!=null?U:ee!==""&&ee!=null?ee:"",je=(pe?.qboId!=null&&pe.qboId!==""?pe.qboId:null)??(j?.qboId!=null&&j.qboId!==""?j.qboId:null)??(U!=null&&U!==""?U:null),Ne={id:je??ee??"",name:ee??pe?.name??j?.name??"",logo:pe?.logo??j?.logo},Ee=Ie?.qboId!=null&&Ie.qboId!==""?{id:Ie.qboId??L??"",name:Q??Ie.name??"",logo:Ie.logo}:void 0,Oe=N.find(we=>we.id===J);if(Oe!=null){const we=n.transactionLocalData.find(Me=>Me.transactionId===Oe.id)?.transactionReviewLocalData,at=we?.lineItemById[X.lineId],st=Qt(Oe)===!0?we?.selectedEntity:at?.selectedEntityLine,qe=Ee?.id!=null&&Ee.id!==""?{id:Ee.id,name:Ee.name,type:"customer",qboId:Ee.id,zeniId:Ee.id,logo:Ee.logo}:Ne.id!==""&&Ne.id!=null?{id:se,name:ee??se,type:"vendor",qboId:se,zeniId:se,logo:Ne.logo,isPreFilled:st?.id===je&&st?.isPreFilled}:void 0,me={transactionId:{id:Oe.id,type:Oe.type},transaction:Oe,lineIds:Oe.type!=="journal_entry"?Oe.lines?.map(Me=>Me.id)??[]:[X.lineId]};qe?.type==="customer"?y(X.amount.amount,me,!1,e,qe,Ee,$):k(X.amount.amount,me,!1,e,qe,Ne,$)}}p.onCancelAutoComplete?.();return}}};i.useEffect(()=>{const Y=he.watch((P,{name:E})=>{E!=null&&P!=null&&An(()=>ge(E,P))});return()=>{Y.unsubscribe()}}),i.useEffect(()=>{if(h.entityAutoCompleteView.fetchState==="Completed"){const Y=n.transactionLocalData.find(P=>P.transactionId===S.transactionId);if(Y){const{transactionReviewLocalData:P}=Y,{selectedEntity:E}=P,Z=S?.lineItemId??P.sortedLineItems[0],F=P.lineItemById[Z],X=F.selectedEntityLine;D.current?.(Go(h.entityAutoCompleteView,E??X,F?.recommendationsWithCOT??[]))}T({transactionId:void 0,lineItemId:void 0})}},[h.entityAutoCompleteView.fetchState]);const q=(Y,P)=>{p.onAutoCompleteInputChange?.(Y),D.current=P},K=i.useRef(null);return t.jsx(K1,{ref:K,"data-testid":B("transaction-categorization-list-page"),children:t.jsx(sn,{...he,children:t.jsx("form",{id:$a(vo),onSubmit:xe,style:{height:"100%",width:"100%"},"data-testid":B($a(vo)),children:t.jsx(E1,{isTransactionActivityEnabled:d,selectedTab:e,sectionId:r,transactionView:n,authParams:c,setCurrentTransactionInAction:T,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onTransactionCategorizationRowClick:u,vendorLoadOptions:q,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:p,containerRef:K,isCOTEnabled:a,cotTracking:{onCOTView:M},isUncategorizedExpenseCategoryEnabled:$,setActivityLogTransactionId:R,onUploadTransactionReceipt:I})})})})},$a=e=>`${e}_form`,La=(e,n,c,r,h)=>({[on]:n.map(p=>q1(p.transactionId,p.transactionReviewLocalData,c,r,h)),[Xn]:e}),q1=(e,n,c,r,h)=>{const{lineItemById:p,sortedLineItems:a,selectedEntity:d}=n,l=Object.values(p).sort((u,g)=>a.indexOf(u.lineId)-a.indexOf(g.lineId)),m=l[0]?.lineId;return{[Us]:l.map(u=>{const g=u.account?.qboId??u.account?.accountId,f=u.class?.classId,C=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[De]:{selectedOption:g,allOptions:os(c,u.recommendationsWithCOT)},[et]:{selectedOption:f,allOptions:ns(r,u.recommendationsWithCOT)},[pt]:{selectedOption:d?.id??C?.id??d?.name??C?.name,defaultOptions:Go(h,d??C,n.lineItemById[m]?.recommendationsWithCOT??[])},[_m]:u.lineEntity,[Pm]:u.recommendationsWithCOT??[]}}),transactionId:e,[Bm]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Fm]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},K1=s.div`
1626
- display: flex;
1627
- min-height: 100%;
1628
- width: 100%;
1629
- height: 100%;
1630
- flex-direction: column;
1631
- background-color: ${e=>e.theme.colors.grey4};
1632
- z-index: 2;
1633
- `,Ta={subSectionContainerLeftRightPadding:new ae(x[3],x[6],x[8])},J1=s.div`
1634
- width: 100%;
1635
- display: flex;
1636
- justify-content: center;
1637
- align-items: center;
1638
- flex: 1;
1639
- background: ${e=>e.theme.colors.grey4};
1640
- box-sizing: border-box;
1641
- `,G1=s.div`
1642
- display: flex;
1643
- flex-direction: column;
1644
- width: 100%;
1645
- `,Y1=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,isTransactionActivityEnabled:a,authParams:d,receiptUploadEndpoint:l,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,enableMonthEndInsightsZeniGPTFeature:f,monthEndInsightsPreviewMode:C,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:v,loggedInUser:k,isCOTEnabled:y,setCurrentFooterFormId:R,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,onTransactionCategorizationRowClick:T,onFetchMissingReceiptsList:D,onMissingReceiptsRowClick:A,onUploadReceiptAttachment:O,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onReconTabColumnSortConfigChanged:M,onReloadReconciliationListPage:N,onUpdateReconcileTabLocalData:G,onUpdateMissingReceiptsUIState:z,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,improveMonthEndInsightsUsingZeniGPTClick:E,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,onCloseAllThreadsSection:X,onEditMonthEndInsightsClick:J,previewMonthEndReport:W,saveMonthEndReport:U,onOpenFileAttachmentSnackBar:L,onCloseFileAttachmentSnackBar:ne,onClickCustomerRequest:ee,sendMonthEndReport:Q,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,onFetchReimbursementView:se,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,setIsJeAccountSettingsOpened:we,onReviewClicked:at,setOpenDrawerClicked:st,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e,redirectToVendorDetailPage:re,setActivityLogTransactionId:Le}=e,{currentSelectedView:le,missingReceipts:_e,transactionView:dt,selectedPeriod:vt,monthEndInsights:He,selectedTransactionCategorizationTab:rn,reconciliation:ln}=p;switch(le){case"transaction_categorization":return dt.fetchState==="Completed"&&dt.transactionLocalData.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(U1,{setCurrentFooterFormId:R,selectedPeriod:vt,selectedTab:rn,sectionId:on,transactionView:dt,authParams:d,isTransactionActivityEnabled:a,onUpdateTransactionCategorizationUIState:de,onUpdateScrollYOffSetTransactionCategorizationUIState:_,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:T,setLocalDataForCategoryAndClass:ge,resetTransactionCategorizationLocalData:q,updateSelectedVendorForTransaction:K,onSaveUpdateTransactionCategorization:Y,onUpdateSelectedCheckboxTransactionIds:P,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:S,isCOTEnabled:y,setActivityLogTransactionId:Le,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return t.jsx(qh,{setIsJeAccountSettingsOpened:we,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,setCurrentFooterFormId:R,handleJeScheduleClick:H,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:he,onPostJESchedule:xe,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g});case"missing_receipts":return _e.fetchState==="Completed"&&_e.transactions.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(Ep,{onUpdateMissingReceiptsUIState:z,onFetchMissingReceiptsList:D,missingReceipts:_e,receiptUploadEndpoint:l,authParams:d,selectedPeriod:vt,onMissingReceiptsRowClick:A,onUploadReceiptComplete:b,onUploadReceiptFetchStatus:$,onUploadReceiptAttachment:O});case"month_end_insights":if(He!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(He.fetchState==="Not-Started"||He.fetchState==="In-Progress"||He.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||He.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(hr,{fetchState:"In-Progress"});{const Dt={application:"cockpit",companyId:m,entityId:m,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:He.companyName,url:window.location.href},{url:qt,...Kt}=Dt,cn={...Kt};return t.jsx(G1,{children:t.jsx(am,{allThreadsSectionOpen:v,customerRequestData:w,companyId:m,enableZeniGPTFeature:f,filterMetaData:cn,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:E,isZeniUser:k?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:He,newThreadMetadata:Dt,onClickCustomerRequest:ee,onCloseAllThreadsSection:X,onCloseFileAttachmentSnackBar:ne,onOpenFileAttachmentSnackBar:L,onRemoveFileAttachment:Z,onUpdateFileAttachment:F,previewMode:C,previewMonthEndReport:W,saveMonthEndReport:U,onEditClick:J,sendMonthEndReport:Q})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle}):t.jsx(vh,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:pe,onReloadPage:Ie,updateOperatingExpensesIdsForReview:j,updateSectionIdsForReview:je,onUpdateFluxAnalysisUIState:Ne,setCurrentFooterFormId:R,fetchFluxViewOnScroll:Ee,onFetchFluxViewList:Oe,onFetchReimbursementView:se,redirectToVendorDetailPage:re});case"reconciliation":return t.jsx(ah,{onReloadReconciliationListPage:N,currentFooterFormId:n,reconciliation:ln,companyId:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:g,onReviewClicked:at,setOpenDrawerClicked:st,setCurrentFooterFormId:R,onReconTabColumnSortConfigChanged:M,onUpdateReconcileTabLocalData:G,onEstablishConnectionClick:qe,onFetchLinkTokenClick:me,updateReconReviewTabLocalData:Me,onReconReviewTabColumnSortConfigChanged:Rt,onSaveReconciliation:mt,onSaveReconciliationReview:Ut,onReconMatchedTransactionClick:gt,onAddStatementClick:$e});default:return t.jsx(Tt,{tab:le,title:Je(le).allDoneText.title,subTitle:Je(le).allDoneText.subTitle})}};function Z1(e){const n=Te(),{currentSelectedView:c}=e.expenseAutomationViewSelector,r=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(J1,{windowSize:n,style:{...h===!0?{paddingLeft:Ta.subSectionContainerLeftRightPadding.value(n),paddingRight:Ta.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:x[0],paddingRight:x[0]},...r===!0||c==="reconciliation"?{paddingLeft:x[0],paddingRight:x[0]}:{}},children:t.jsx(Y1,{...e})})}const Q1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),X1=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),eg=s.div`
1646
- width: 100%;
1647
- height: 100vh;
1648
- display: flex;
1649
- flex-direction: column;
1650
- background: ${e=>e.theme.colors.grey4};
1651
- box-shadow: ${e=>e.theme.colors.elevation1};
1652
- `,tg=s.div`
1653
- display: flex;
1654
- flex-direction: column;
1655
- align-items: center;
1656
- min-width: 100%;
1657
- min-height: 0;
1658
- flex: 1;
1659
-
1660
- ${e=>e.theme.breakpoints.down("md")} {
1661
- width: 100%;
1662
- padding-left: ${o.sp0};
1663
- }
1664
- `,Aa=s(ur)`
1665
- height: ${o.sp3};
1666
- width: ${o.sp3};
1667
- cursor: pointer;
1668
- color: inherit;
1669
- `,Ea=s(Q1)`
1670
- height: ${o.sp3};
1671
- width: ${o.sp3};
1672
- cursor: pointer;
1673
- color: inherit;
1674
- `,{common:{footer:Be,texts:{maxLimitReached:ng,confirmAction:og},headers:ig,create:ag,strings:kn,texts:xn,cancel:sg,confirm:rg,monthsByIndex:lg},dateFormat:{visual:{MMMDCommaYYYYformat:Ra}},expenseAutomation:fn}=Ae.getLocalizedStrings(),cg=({setActivityLogTransactionId:e})=>{const{selectedTransactionId:n}=eo(),c=wt(),[r,h]=i.useState(!1);return n==null?null:t.jsx(Ce,{title:fn.transactions.header.activity,placement:"bottom",children:t.jsx(Lg,{onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onClick:p=>{p.stopPropagation(),e(n)},children:t.jsx(Tg,{style:{color:r?c.colors.primary:c.colors.hero}})})})},Jg=e=>{const{expenseAutomationViewSelector:n,isDisabled:c,isRealtimeInsightsFeatureEnabled:r,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:a,onReconTabUpdate:d,onUpdateStep:l,onSearchTextChanged:m,onRefresh:u,onClose:g,onBack:f,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:w,clearJeScheduleLocalData:v,onSaveReconciliation:k}=e,{currentSelectedView:y,allSteps:R,missingReceipts:I,jeSchedules:S,fluxAnalysis:T,monthEndInsights:D,transactionView:A,selectedTransactionCategorizationTab:O,reconciliation:b,selectedPeriod:$}=n,[M,N]=i.useState("expenseAutomationPage"),[G,z]=i.useState(()=>{}),[V,de]=i.useState(!1),_=Te(),H=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ie=H?_a:Pa,{openThread:he,setOpenThread:xe}=i.useContext(ie),[ge,q]=i.useState(!1),[K,Y]=i.useState(!1),P=R.find(re=>re.step===y),{nextStep:E,previousStep:Z}=hg(R,y),{uiState:{searchString:F,pageToken:X},totalCountByTab:J,transactions:W,fetchStateByTransactionTabs:U,transactionLocalData:L}=A,{selectedReconAccount:ne,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ee}}}}=b;let Q="Not-Started",pe="complete";switch(y){case"missing_receipts":Q=I.refreshStatus.fetchState,pe=I.completionStatus;break;case"je_schedules":Q=S.refreshStatus.fetchState,pe=S.completionStatus;break;case"month_end_insights":D!=null&&(Q=D?.fetchState);break;case"flux_analysis":Q=T.refreshStatus.fetchState,pe=T.completionStatus;break;case"transaction_categorization":Q=A.refreshStatus.fetchState,pe=A.completionStatus;break;case"reconciliation":ne==null?(Q=b.refreshStatus.fetchState,pe=b.completionStatus):(Q=b.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",pe=b.completionStatus)}const Ie=()=>{G()},{saveStatus:j,selectedCheckBoxTransactionIds:se}=A,je=()=>{const re=As(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),Le=uo(),{month:le,year:_e}=$,dt=uo().set("month",le-1).set("year",_e).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:re===!0?Be.markAsReviewed:xn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(n.fluxAnalysis.reviewOperatingExpensesIds.length,gs,_,xn.vendor,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:j.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:Ao(se.length,Ln,_,xn.transaction,y),cancelBtn:{label:Be.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(O,W.map(vt=>vt.id),$,!1,J[O],Ii(L,O),h,X)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.next,style:{justifyContent:"space-evenly"},isDisabled:c||P?.isNextDisabled,suffixIcon:t.jsx(Aa,{}),onClick:()=>{l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{l(Z.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Be.reconcile,backBtnLabel:Be.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(b.reconciliationTabsState.balances.variance.amount===0&&Le.isAfter(dt)),isLoading:b.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:Ao(ee.length,1/0,_,xn.transaction,y),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:b.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Be.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Be.save,backBtnLabel:Be.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Be.save,isLoading:S.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>Ie(),label:Be.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const vt=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,He=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,rn=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,ln=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||He),Dt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",qt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",Kt=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(yn=>yn.id==="month_end_insights"),cn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&Kt?.isDisabled===!1&&(r||P?.isNextDisabled===!1),Rn=E.step==="month_end_insights"&&(He||y==="flux_analysis")?!cn:P?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Be.next,backBtnLabel:Be.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ln===!0?ug(n.selectedPeriod.month):Be.next,style:{justifyContent:"space-evenly"},isDisabled:Rn,suffixIcon:t.jsx(Aa,{}),onClick:()=>{Dt?a("autoCategorized"):vt?d("reconcile"):l(E.step)}},cancelBtn:{label:Be.back,isDisabled:c||P?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ea,{}),onClick:()=>{qt?a("review"):rn?d("review"):vt?f():l(Z.step)}}}}}},Ne=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{q(!1),w([]),g()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{q(!1),C(O,W.map(re=>re.id),$,!1,J[O],Ii(L,O),h,X),g()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{q(!1),v(),g()}};default:return{confirmAction:()=>{q(!1)},confirmationDescription:kn.empty}}},Ee=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?q(!0):g()},{primaryBtn:Oe,cancelBtn:we,leftSideComponent:at}=je(),{confirmAction:st}=Ne(),qe=re=>{if(y==="transaction_categorization"&&(re==="autoCategorized"||re==="review"))return{hideCountInTab:J[re]>fn.common.numbers.maximumCount,count:J[re],isFetching:U[re].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:Le}=n,{selectedAccountId:le}=Le;return le==null?{count:0,isFetching:!1}:re==="review"?{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReview.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}:{count:Le.accountReconciliationsByAccountID[le]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Le.accountReconciliationsByAccountID[le]?.transactionFetchState.fetchState==="In-Progress"}}},me=y==="reconciliation"&&b.selectedAccountId!=null&&b.selectedReconAccount!=null,{month:Me,year:Rt}=$,mt=uo().set("month",Me-1).set("year",Rt),Ut=mt.startOf("month").format(Ra),gt=mt.endOf("month").format(Ra),$e=`${Ut} ${kn.hyphen} ${gt}`;return t.jsxs(eg,{children:[ge?t.jsx(sr,{containerStyle:{width:356},titleComponent:t.jsx(yg,{children:og}),primaryButtonText:rg,secondaryButtonText:sg,proceedButtonVariant:"danger",action:{onOkClick:()=>{st()},onCancelClick:()=>q(!1)},descriptionComponent:t.jsx(Cg,{children:fn.confirmationDescription})}):null,t.jsx(rr,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,panelActionBarContent:e.isTransactionActivityEnabled?t.jsx(cg,{setActivityLogTransactionId:e.setActivityLogTransactionId}):null,headerContent:t.jsx(vc,{onBack:f,navBarCustomElement:y==="reconciliation"&&b.selectedAccountId!=null?t.jsx(dg,{reconciliation:b}):void 0,onReconTabUpdate:d,currentRecontab:b.selectedTab,reconcileDetailPageFetchState:b.selectedAccountId!=null?b.accountReconciliationsByAccountID[b.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:me?b.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Je(y,J.autoCategorized,me?b.selectedAccountId:void 0,me?b.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,me?$e:void 0),searchText:F,currentTab:O,getTabCountAndFetchState:qe,completionStatus:pe,forceShowSubtitle:V===!0||y==="je_schedules"&&(S.fetchState==="In-Progress"||S.accountSettingsView.fetchState==="In-Progress"),refreshStatus:Q,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??kn.empty,isZeniUser:H,onAllThreadsClick:()=>{he!=null&&xe(null),Y(!0)},onUpdateTab:a,onSearchTextChanged:m,onRefresh:u,onClose:Ee}),listContent:t.jsxs(tg,{children:[t.jsx(Z1,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:de,setResetJeAccountSettingsForm:z,allThreadsSectionOpen:K,setCurrentFooterFormId:N,currentFooterFormId:M,onCloseAllThreadsSection:()=>Y(!1)}),t.jsx(Ue,{controller:y!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(Ba,{style:{width:"-webkit-fill-available",maxHeight:x[8]},formId:pg(M),primaryBtn:Oe,leftSideComponent:at,cancelBtn:we,separatorStyle:{marginRight:o.sp4}})})]})})]})},dg=({reconciliation:e})=>{const n=wt(),{clearedBalance:c,variance:r,variancePercentage:h,deposits:p,payments:a}=e.reconciliationTabsState.balances,{balance:d}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:l}=e,{transactionFetchState:m}=l??{};return t.jsx(wg,{children:t.jsxs(bg,{children:[t.jsxs(Eo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(vg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",d)}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(Eo,{children:[t.jsx(Ro,{children:t.jsx(jg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Mo,{children:Ze("0,0.00",c)}),t.jsxs(Ig,{children:[t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs($g,{children:[t.jsxs(Da,{children:[t.jsxs(Oa,{children:[a.count," ",xn.payments]}),t.jsx(Ma,{children:Ze("0,0.[00]",a.totalAmount)})]}),t.jsxs(Da,{children:[t.jsxs(Oa,{children:[p.count," ",xn.deposits]}),t.jsx(Ma,{children:Ze("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(kg,{})})]})]})})]}),t.jsxs(Eo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(Ro,{children:t.jsx(Sg,{})}),t.jsx(Do,{children:m?.fetchState==="In-Progress"?t.jsxs(_o,{children:[t.jsx(pn,{height:25,width:120}),t.jsx(pn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Mo,{children:[t.jsx("span",{style:{color:r.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Ze("0,0.00",r)}),h!=null&&r.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(Oo,{children:fn.accountRecon.reconciliation.headers.variance})]})})]})]})})},Ao=(e,n,c,r,h)=>{const p=r,a=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(mg,{currentView:h,style:c==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(gg,{multiDigit:e>=5,children:e}),t.jsx(xg,{children:a}),e===n?t.jsx(fg,{children:`(${ng})`}):null]}):null},ug=e=>{const n=lg[e];return`${ag}${kn.space}${n}${kn.space}${ig.insights}`};function hg(e,n){const c=e.findIndex(d=>d.step===n);if(c===-1)throw new Error("currentStep not found in allSteps array");const r=(c+1)%e.length,h=(c-1+e.length)%e.length,p=e[r],a=e[h];return{nextStep:p,previousStep:a}}const pg=e=>`${e}_form`,mg=s.div`
1675
- display: flex;
1676
- justify-content: flex-start;
1677
- align-items: center;
1678
- gap: ${o.sp2};
1679
- margin-left: ${e=>e.currentView==="flux_analysis"?"36px":o.sp8};
1680
- `,gg=s(bt)`
1681
- height: 18px;
1682
- width: ${e=>e.multiDigit?"auto":"18px"};
1683
- padding: ${o.sp0} 6px;
1684
- border-radius: ${o.sp12};
1685
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
1686
- display: flex;
1687
- justify-content: center;
1688
- align-items: center;
1689
- `,xg=s(Ve)`
1690
- color: ${e=>e.theme.colors.primary};
1691
- `,fg=s(At)`
1692
- color: ${tt.important};
1693
- `,yg=s(ar)`
1694
- margin-top: ${o.sp5};
1695
- padding-left: ${o.sp8};
1696
- padding-right: ${o.sp8};
1697
- color: ${e=>e.theme.colors.primary};
1698
- word-break: break-word;
1699
- `,Cg=s(lr)`
1700
- color: ${e=>e.theme.colors.primary};
1701
- margin-top: ${o.sp2};
1702
- margin-bottom: ${o.sp2};
1703
- `,wg=s.div`
1704
- display: flex;
1705
- justify-content: center;
1706
- align-items: center;
1707
- padding: ${o.sp3} ${o.sp0};
1708
- `,bg=s.div`
1709
- width: 100%;
1710
- display: flex;
1711
- justify-content: center;
1712
- align-items: center;
1713
- gap: ${o.sp1};
1714
- `,Eo=s.div`
1715
- display: flex;
1716
- justify-content: center;
1717
- align-items: center;
1718
- gap: ${o.sp3};
1719
- `,Ro=s.div`
1720
- width: ${o.sp7};
1721
- height: ${o.sp7};
1722
- border-radius: 50%;
1723
- display: flex;
1724
- justify-content: center;
1725
- align-items: center;
1726
- background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
1727
- `,Do=s.div`
1728
- display: flex;
1729
- flex-direction: column;
1730
- `,Oo=s(At)`
1731
- color: ${e=>e.theme.colors.hero};
1732
- `,Mo=s(za)`
1733
- min-width: 180px;
1734
- color: ${e=>e.theme.colors.primary};
1735
- `,vg=s(gr)`
1736
- color: ${e=>e.theme.colors.primary};
1737
- width: ${o.sp4};
1738
- height: ${o.sp4};
1739
- `,Sg=s(xr)`
1740
- color: ${e=>e.theme.colors.primary};
1741
- width: ${o.sp4};
1742
- height: ${o.sp4};
1743
- `,jg=s(X1)`
1744
- color: ${e=>e.theme.colors.primary};
1745
- width: ${o.sp4};
1746
- height: ${o.sp4};
1747
- `,kg=s(Na)`
1748
- width: ${o.sp3};
1749
- height: ${o.sp3};
1750
- color: ${e=>e.theme.colors.hero};
1751
- :hover {
1752
- color: ${e=>e.theme.colors.primary};
1753
- }
1754
- `,Ig=s.div`
1755
- display: flex;
1756
- align-items: center;
1757
- gap: ${o.sp1};
1758
- `,$g=s.div`
1759
- background-color: ${tt.overlayDark};
1760
- padding: 2px ${o.sp2};
1761
- border-radius: ${o.sp1};
1762
- `,Da=s.div`
1763
- display: flex;
1764
- justify-content: space-between;
1765
- gap: ${o.sp2};
1766
- `,Oa=s.div`
1767
- text-transform: capitalize;
1768
- `,Ma=s(At)`
1769
- color: ${tt.primaryDark};
1770
- align-self: "flex-end";
1771
- `,pn=s(Vt)`
1772
- border-radius: ${o.sp2};
1773
- `,_o=s.div`
1774
- display: flex;
1775
- flex-direction: column;
1776
- min-width: 180px;
1777
- gap: ${o.sp1};
1778
- `,Lg=s.button`
1779
- background: none;
1780
- border: none;
1781
- cursor: pointer;
1782
- padding: ${o.sp1};
1783
- border-radius: ${o.sp1};
1784
- display: flex;
1785
- align-items: center;
1786
- justify-content: center;
1787
-
1788
- &:hover {
1789
- background: ${({theme:e})=>e.colors.grey4};
1790
- }
1791
- `,Tg=s(qs)`
1792
- width: ${o.sp4};
1793
- height: ${o.sp4};
1794
- `;export{yg as ConfirmationPopUpTitle,Jg as default,hg as getNextAndPreviousSteps,pg as uniqueFormName};