@zeniai/web-cockpit-ui 1.14.35-prod → 1.14.36-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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-MP6kdpXK-mXgY4FoK.js → ACHDetailsPage-3oKbHC1_-Qn9d1Xyv.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BhOaFmfv-Ck2Vsrs_.js → AIPerformancePage-Cn2skpeY-BNc-HLpr.js} +26 -26
  3. package/dist/assets/{AccountInfoPage-D9Ft_CT9-UBKCGyV1.js → AccountInfoPage-Dxnr3s2C-ByHNSUfv.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DvWx52e0-DBXpP6e6.js → AccountInfoPageContent-CMT1vJ_n-DgA1oKva.js} +30 -30
  5. package/dist/assets/{AccountLockedInfoModal-B1_3C1ER-CCpUHHDw.js → AccountLockedInfoModal-2GuYlOQJ-Cb5egJeS.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D9e7qhm0-BcLmhY6M.js → AccountReconDetailsDrawerPage-Cu_lsw9T-Ct4NG0ON.js} +13 -13
  7. package/dist/assets/{AccountRow-CiIWoLq3-DnETnEs8.js → AccountRow-BcSPuOPF-R9MJWqpQ.js} +14 -14
  8. package/dist/assets/{AccountsPromoCardStack-CC72plKm-eywwRX88.js → AccountsPromoCardStack-Ch88Cvn8-B36ZrxM-.js} +30 -30
  9. package/dist/assets/{AddAddressForCardDrawer-CIj76DoU-CDnmuMpI.js → AddAddressForCardDrawer-Df4OROTJ-Ccg4Z6Tb.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B3vdkyWl-BpwvV_Yt.js → AddToWalletPage-DgVLkIkz-CQF3I5rp.js} +19 -19
  11. package/dist/assets/{AgingReportsPage-CbkMxxO_-Cfk5vpwm.js → AgingReportsPage-M1xr5QPt-DB06_ukJ.js} +15 -15
  12. package/dist/assets/{AllUserItems-DJo9kLSI-woqaTiN-.js → AllUserItems-CzMARJS5-DMwRKAgK.js} +11 -11
  13. package/dist/assets/{ApAgingDetailPage-DcAh6DLg-B3pFO6wY.js → ApAgingDetailPage-C3YN724_-CRhegmmd.js} +3 -3
  14. package/dist/assets/{AppBasePage-DztnPkfs-BDuARS-8.js → AppBasePage-CP4BX_QO-B6mlxKAR.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DDmKn21i-H0Rqcj5H.js → AppDrawerContent-Dc3UorVz-DdpZ1z1h.js} +8 -8
  16. package/dist/assets/{ApprovalRulesSettingsPage-Di8tAJ8K-DUHTdTXW.js → ApprovalRulesSettingsPage-DHw_cGEb-DsqpcHH3.js} +1 -1
  17. package/dist/assets/ArAgingChart-D6396NAQ-B7eZ8sbL.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-B3JQ08nH-CrkQ4R8k.js → ArAgingDetailPage-BU6gubOU-BkAN4ZrM.js} +1 -1
  19. package/dist/assets/{AttachmentView-p8mBqYjm-D-KAfu7b.js → AttachmentView-Cjq9bT2R-B9cOvAgG.js} +6 -6
  20. package/dist/assets/{BankAccountSection-AuQLRvdb-DQoUiHyf.js → BankAccountSection-DcBAe_nk-Cj8Y52AW.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-HvUMABu0-DER3zfEz.js → BankAccountWarningSection-CgdNj2lq-DoFj2r_M.js} +19 -19
  22. package/dist/assets/{BankConnectionsSettingsPage-D61w90F9-Cbu8rTGU.js → BankConnectionsSettingsPage-DN-l_MKN-CZ9NiTex.js} +10 -10
  23. package/dist/assets/{BillDetailPage-nqHoph6T-omHRYVvP.js → BillDetailPage-DSNj9dZa-GtcAJ7zm.js} +11 -11
  24. package/dist/assets/BillPayApprovalRuleDetailPage-Bn_93mxC-PbuiMjZ5.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-Bd87v4ca-CjXiDgsw.js → BillPayApprovalRulesPage-3E7Zb7Tv-8xvci8F-.js} +7 -7
  26. package/dist/assets/{BillPayPromoPage-CNiTD_mM-CL0u9OKF.js → BillPayPromoPage-iqi-3PsJ-BJG1XRwv.js} +32 -32
  27. package/dist/assets/{BillPaySetUpPage-BUSwkzqv-Dxo0A25E.js → BillPaySetUpPage-DkBnCNVT-DuhN0B9J.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-aPRvtlqA-DtkoBYtr.js → BillingSettingsPage-Bxl_rTxp-CiR8VS-8.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BU3VuxEm-C7NN2Xmz.js → BillsBulkReviewDrawerPage-BAQfge2H-BRM7aN30.js} +1 -1
  30. package/dist/assets/{BoxItem-CZKWkdxd-Dfy_6ZAY.js → BoxItem-BiXktaUJ-Cfy2EaaH.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CeDGi-RH-Cp7o4xxw.js → BusinessVerificationPage-BvtQdbIO-BG9aG986.js} +7 -7
  32. package/dist/assets/CardNumberSubText-usoiubBx-JT9ehyHX.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-V-W_U5k1-doC9RVzZ.js → CashbackDetailPage-CKSxtvZL-C5tKHPnX.js} +17 -17
  34. package/dist/assets/{ChargeCardDetailPage-BP-zAMYI-4zwKmLMd.js → ChargeCardDetailPage-Dwb3MwPx-DGZ2FMyW.js} +40 -40
  35. package/dist/assets/{ChargeCardListPage-DORW9YE4-goCliHtX.js → ChargeCardListPage-CQ3lUqTC-ClOjN4Tj.js} +27 -27
  36. package/dist/assets/{ChargeCardListTable-C32mZrwY-DoEvYUTO.js → ChargeCardListTable-B2MUmgfU-D_6CnuuE.js} +14 -14
  37. package/dist/assets/{ChargeCardPromoPage-CE4kH4Js-B567yD1E.js → ChargeCardPromoPage-DNZ_qrk1-Ckodpm9A.js} +14 -14
  38. package/dist/assets/{ChargeCardSetupPage-CumpB2GQ-Bsg7iGla.js → ChargeCardSetupPage-DX4VlcBt-9AzPA1m8.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DPIAjww0-BuEYST8n.js → ChargeCardStatementsPage-DlVfCfY8-Ciq-TW-L.js} +6 -6
  40. package/dist/assets/ChargeCardUtils-i4In9Us5-BeJKYV4x.js +1 -0
  41. package/dist/assets/{ChaseOverlay-BGZfbx0H-CBapYrmC.js → ChaseOverlay-DYQYE0RM-Cl7PDEtm.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-Bl52b4SW-DFeEOElA.js → CheckDepositDrawerPage-C653BICE-BliVsvVN.js} +11 -11
  43. package/dist/assets/{CollapsableReportTable-B0wI9SM1-CXZN1jAY.js → CollapsableReportTable-KGZROyWO-BB5JbMLM.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-DyOVRvtQ-rXFLr0Cj.js → CompanyOfficerDetailsSection-WlKm-fM0-DT0aWaVM.js} +30 -30
  45. package/dist/assets/{CompanyPassportCard-C_YUK3R3-C8J9LZbt.js → CompanyPassportCard-BXQt77bL-CgrFJoow.js} +5 -5
  46. package/dist/assets/{CompanyPassportPage-QFJ0G7X7-CWAUYaTd.js → CompanyPassportPage-CdM9x1g7-DHJ-ptII.js} +29 -29
  47. package/dist/assets/{CompleteProfile-DVE16v3y-Cdj1Hud-.js → CompleteProfile-g0ErQlZA-BaxE51VT.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BA8BvtO--D7FhGSOU.js → ConfettiBurst-Cu0ce9ZQ-B47uGNY_.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-ncBGwfXK-Bf68hRSy.js → CreateOrEditVendorPage-Zn--1Mu0-xtwEugAO.js} +8 -8
  50. package/dist/assets/{CreditCardPaymentDrawerPage-DqEVQgMx-DTCA8s7f.js → CreditCardPaymentDrawerPage-BSS4YcVE-BNPDfaX6.js} +19 -19
  51. package/dist/assets/{CreditCardPaymentPlgSection-vmErttTD-ClWPQ0Nj.js → CreditCardPaymentPlgSection-QKLSnyR5-DUyvaz3Z.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-BEb19UaA-DWrGWLIz.js → CurrencySelectField-DxrwSaJK-Cu5VbUzb.js} +4 -4
  53. package/dist/assets/{CustomerOnboardingActivationPage-L4l1ybmh-CMM9TmPz.js → CustomerOnboardingActivationPage-BbfI4g9k-bQf7ee-N.js} +2 -2
  54. package/dist/assets/CustomerOnboardingContainerPage-DkXWw44M-DCp1xd8r.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D3Zm658F-4fgjGvwb.js → CustomerOnboardingDetailPageSkeleton-DyIeAi4x-Ciojhx6k.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BXsJFpEX-BEe2mOi9.js → CustomerOnboardingNoStepsPage-BbHZQvuH-pcu4RngU.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-D3zpI1df-DRSAEmH8.js → CustomerOnboardingPage-BGKjRruK-C_-kvbjL.js} +6 -6
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-DjVZfC2C-C37I17XQ.js → CustomerOnboardingProductSuitePage-Cmwfbh1x-D3ospPa7.js} +1 -1
  59. package/dist/assets/{Dashboard-wY0FneRs-BRbJ1E7T.js → Dashboard-DCbGYUNO-CggBXce9.js} +114 -114
  60. package/dist/assets/{DashboardReportPage-CMgr0CSc-DXWUQa9u.js → DashboardReportPage-7sacscjb-CCrnEMLn.js} +19 -19
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-B73UBY5T-BeDJlsLk.js → DashboardSidebarBackgroundAnimation-CcQR2lMq-Cf2eLsVD.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DrqBG940-C_r0wIek.js → DepositAccTransactionItem-u7kiVxu3-Cq_mC_h_.js} +3 -3
  63. package/dist/assets/DepositAccTransactionListPage-BTMDl7KO-CkFA5sso.js +66 -0
  64. package/dist/assets/{DomesticWireDetailsPage-vRHD5DmW-BZeLAjFc.js → DomesticWireDetailsPage-CjliTPRp-Cxo45rzx.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-D_UoB4Xy-CcwTPDuA.js → DownloadOverlay-LzyYQ7X7-Cqsz6Go0.js} +1 -1
  66. package/dist/assets/{DrawerPage-ijHe0bCp-DULxNxlZ.js → DrawerPage-DVu3OGym-ELFavZIA.js} +5 -5
  67. package/dist/assets/{EditPeoplePage-BehcmP1s-Boo5nqYn.js → EditPeoplePage-COZuksUu-BAJ712Zd.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-Cz82Vz26-NCJTUn5q.js → EditReimbursementDetailPage-P7gybbTe-DhmHzkez.js} +59 -59
  69. package/dist/assets/{EntityDetailPage-CN-ewzjy-DVhK4H42.js → EntityDetailPage-CMAFiXng-EHp1vVUv.js} +2 -2
  70. package/dist/assets/{EntitySummarySection-B4ozhtlU-Qstf5tMS.js → EntitySummarySection-BezHSTT7-CA4YQ14w.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-BmNuSoUs-uSONJ6IL.js → ExpenseAutomationOverviewPage-CX5wpbbp-BxzSM0jW.js} +17 -17
  72. package/dist/assets/ExpenseAutomationPage-CaeVli6J-DwDyMFlL.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-CgrGtZ4F-_3daDdkj.js → ExpressPayPage-KpzY-AC4-B3x4TcSO.js} +9 -9
  74. package/dist/assets/{FeaturePreviewPage-Dk_c37Rm-BDCzjePu.js → FeaturePreviewPage-T7VgNi57-XquGM-uR.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-BVi7m38_-jyY18IU_.js → FollowStepsSection-BffVXexb-Wb7yroWy.js} +23 -23
  76. package/dist/assets/{GlobalReviewListPage-DiZGC9B1-lXguPNuY.js → GlobalReviewListPage-DPJug-7p-FbhUXbzf.js} +14 -14
  77. package/dist/assets/{HelpButton-DiIoYeXn-B9pTtXAF.js → HelpButton-BkxT0f9t-DltO0YWd.js} +4 -4
  78. package/dist/assets/{InformationCardStack-C8-4dhWR-BdQjjZMr.js → InformationCardStack-CiO7p4bX-Ca7THwnz.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-BKm0dSeJ-NwmRr3b6.js → InsightsCardStack-CCx4eRv0-BoXCNjZt.js} +9 -9
  80. package/dist/assets/{InsightsSection-C9MHOCQd-Dl6BNsPa.js → InsightsSection-CQRpIy9c-BVaWF-TR.js} +4 -4
  81. package/dist/assets/{IntegrationsSettingsPage-4qlL5Dsx-CBAx1IhA.js → IntegrationsSettingsPage-CDHIF3ky-BZdWjiMh.js} +3 -3
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DqCtPykV-BP7AtPOL.js → InternationalWireSwiftDetailsPage-BTB0YTLP-Fw5hYyJd.js} +13 -13
  83. package/dist/assets/{InternationalWireVerificationPage-Cl-p0inO-CU9U1hDc.js → InternationalWireVerificationPage-DZAa5CXK-CShVs05a.js} +10 -10
  84. package/dist/assets/{InviteFormPage-L6j0rOBW-Bkkgowwi.js → InviteFormPage-CVIA_4cc-xvdMmRWy.js} +20 -20
  85. package/dist/assets/{InvitePageListView-KYjMIc4q-CxtFMX57.js → InvitePageListView-BapkK9dR-CMoNigd7.js} +40 -40
  86. package/dist/assets/InvitePeoplePage-ChM26gAd-3PSfXhTf.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-DZC4oscG-B4YE5xNw.js → InvoiceUploadSection-CfoxMKse-CDgcPY9V.js} +6 -6
  88. package/dist/assets/{IssueChargeCardPage-DMdZCfqA-DBP896EY.js → IssueChargeCardPage-DoNxoxCV-BuHBJdzr.js} +22 -22
  89. package/dist/assets/{LabeledAddressValue-CBOrzSsG-CM0OlDqv.js → LabeledAddressValue-DzKLuwO0-Dbmo8xwC.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-C-fJPbDr-BL1p3tu1.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-BoXsUqpR-DLWp6dS8.js → LabeledControlledCheckBoxField-BsXmJGaz-B9D7gdxU.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CQPkrdRe-D2aM_mQ3.js → LabeledCreatableSingleSelectField-CNcoKtBi-DbNXS5w-.js} +2 -2
  93. package/dist/assets/{LabeledDocumentField-DEeeTuVw-DtYK1IoZ.js → LabeledDocumentField-DB-XX9hy-ARW_yKHV.js} +3 -3
  94. package/dist/assets/{LabeledDropDownFormattedTextField-DYRkxlY--BuLzW0MX.js → LabeledDropDownFormattedTextField-ChF-tfZl-CoOdklmM.js} +3 -3
  95. package/dist/assets/{LabeledText-DQiR_FIX-lqG2eZSL.js → LabeledText-DQjY46zj-CJXj8rFi.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-6WGH99sZ.js → LabeledUserSingleSelectWithSubtitlesField-Dg_jyvIT-BII3s1HZ.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-azPB8idg-DSebK6bp.js → LabeledZeniRolesDropDownField-qeHXm7K1-iR_szjxt.js} +6 -6
  98. package/dist/assets/{LinkJETransactionPage-Ct0HcxvN-CrWgQPVX.js → LinkJETransactionPage-DWq96C-C-BScn3NVF.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Zvy2iURT-Be93-biw.js → LowBalancePopup-DIu4EJtv-FHHWLFWk.js} +4 -4
  100. package/dist/assets/{MagicLinkACHDetailsPage-BY6pEieF-SL-tIHm4.js → MagicLinkACHDetailsPage-0uTQmYPp-CFGb5gZH.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BK5RZSiS-bzoMX_4e.js → MagicLinkDomesticWireDetailsPage-CtkSDg_U-DqPdzilp.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-hK5cNiNB-eGjgXzGf.js → MagicLinkInternationalWireDetailsPage-qNEvVVcm-C2m2KEe0.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-Drn_p982-Dd2HDoOF.js → MagicLinkSuccessPage-D4C3XF4W-EgVx2lLe.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DRMHVOzF-fsnIT9fi.js → MagicLinkTitleSection-DXZCLfIM-2GWQnCnZ.js} +9 -9
  105. package/dist/assets/{MailingDetailsSection-DgdAYgpS-CpK2Zius.js → MailingDetailsSection-7_w5PfFQ-C9R3FLGa.js} +6 -6
  106. package/dist/assets/{MeetingCalenderPopup-CAh7iae0-CeH05vu8.js → MeetingCalenderPopup-2P6uhLqh-CkyOJaM-.js} +1 -1
  107. package/dist/assets/{Menu-bleLgSLu-CWe46wAv.js → Menu-Ya9EH9T1-XEx08cqQ.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-DRxmQCbq-DIkyF-zq.js → MyBankConnectionsSettingsPage-Bz9BP12B-B0raEGfA.js} +11 -11
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-BYLhb47G-nGsEvhoC.js → MyPendingActivationChargeCardListPage-BxFFCBYU-CmVzmveh.js} +2 -2
  110. package/dist/assets/{MyProfileSettingsPage-eVfCRTfx-jn-p1GeP.js → MyProfileSettingsPage-BRTEYBf1-BuzCCWQu.js} +11 -11
  111. package/dist/assets/{NavBarWithPicker-BE2MW7hB-DCPdpAcW.js → NavBarWithPicker-Cx1ldzdT-ByHGGAzI.js} +4 -4
  112. package/dist/assets/{NavigationArrow-eEaMttBX-Db8RfAC0.js → NavigationArrow-Cic_S7sL-CafjbEnx.js} +1 -1
  113. package/dist/assets/{NavigationDots-CNwL0a7I-Bu8Q_lGW.js → NavigationDots-BnqdhDar-BHuykGzD.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-CSWqCqAC-_iGexdlz.js → NewGlobalMerchantPage-BMLnV68V-Df2U2-Pi.js} +11 -11
  115. package/dist/assets/{NoDataChart-DNmdY5gQ-DtmYfS5g.js → NoDataChart-CyIzcvzb-CVVPhPRo.js} +3 -3
  116. package/dist/assets/{NoDataTable-DW2wAX3o-BpxgsISd.js → NoDataTable-Cf9Qv-ms-BIxVQmVT.js} +1 -1
  117. package/dist/assets/{NotFoundPage-BMJTG-tj-B4dub16Q.js → NotFoundPage-BP2jA51O-DvlpUk9Z.js} +4 -4
  118. package/dist/assets/{NotificationSettingsPage-Vd3UvdLu-DWC95tuC.js → NotificationSettingsPage-Bhj72XzL-DgHNUBYw.js} +17 -17
  119. package/dist/assets/NotificationsListConfig-BcRqz3T--CwofCBLm.js +1 -0
  120. package/dist/assets/{NotificationsPage-BaekDEw7-DQUXKS-e.js → NotificationsPage-DEQ0muyV-AFyu-A1B.js} +29 -29
  121. package/dist/assets/{OpExByVendorPage-DNyTA9nx-D4UEuNv3.js → OpExByVendorPage-BPvIdjMh-GjqInlE8.js} +6 -6
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DbGdhTg8.js → OverlayContainerPage-Bmu909Fo-B4CijHVT.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-DbP4ybN4-CKFQr6An.js → PandLWithForecastPage-CgMYDel--CrwH5GHU.js} +6 -6
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Dd4Aen8j-BD8kr9-Q.js → PaymentAccountSetupBillingAddressSection-CfUpfrt6-DiMg5_6V.js} +12 -12
  125. package/dist/assets/{PeoplePage-B3n7ek2h-DHll679W.js → PeoplePage-BrL4O-03-BHA1i9-R.js} +18 -18
  126. package/dist/assets/{PortfolioAllocationFormPage-CzA_c7hR-DiZUSmD8.js → PortfolioAllocationFormPage-C24sa7Lv-D7dV2koR.js} +7 -7
  127. package/dist/assets/{PortfolioDetails-Drgv4Osg-Dgvv0ZCZ.js → PortfolioDetails-wAtPiO4w-C8Xq6LTb.js} +23 -23
  128. package/dist/assets/{ProductsCarousel-BnnfJR0o-BHYmKMl-.js → ProductsCarousel-B8KxzJsX-BAeIItJs.js} +5 -5
  129. package/dist/assets/{PromoBaseCards-BGHJivI8-Ch_pM2QM.js → PromoBaseCards-DKu8lmMb-CbitZiAU.js} +3 -3
  130. package/dist/assets/{QBOConnectionDialog-uiW9eeZu-BD1JBgoK.js → QBOConnectionDialog-CSRVcpvB-DsmFVlUU.js} +9 -9
  131. package/dist/assets/{QBOSetupSection-DPb0VAii-DxUqn74l.js → QBOSetupSection-CwO2OwTA-DfOK3FQy.js} +10 -10
  132. package/dist/assets/ReimbursementApprovalRuleDetailPage-DWAgRWah-DAeIJHt1.js +26 -0
  133. package/dist/assets/{ReimbursementApprovalRulesPage-C1AFF_DM-DXf_rFdp.js → ReimbursementApprovalRulesPage-CWZIqbqf-2nP7no61.js} +32 -32
  134. package/dist/assets/{ReimbursementDetailPage-Du6R1zje-CSDUqdF0.js → ReimbursementDetailPage-DaiOed8i-t4bX9i7-.js} +8 -8
  135. package/dist/assets/{ReimbursementPromoPage-CW9eyjp9-nAKl1tS9.js → ReimbursementPromoPage-CTpCa9C7-WAySoU1n.js} +6 -6
  136. package/dist/assets/{ReimbursementSetUpPage-CbPwgIqt-D2_CC-ZO.js → ReimbursementSetUpPage-Cd0w6zdZ-CapxuQlm.js} +3 -3
  137. package/dist/assets/ReimbursementsBulkReviewDrawerPage-D_IG6Yzl-B2GWCVK0.js +1 -0
  138. package/dist/assets/{ReloadCard-Dvn17Oxl-g6WmGwNe.js → ReloadCard-D8XT-nw--BGnVgOtj.js} +5 -5
  139. package/dist/assets/{ReportTableViewSelector-C5_qr5qe-CkGEy7jp.js → ReportTableViewSelector-kf12PTIw-_koMJS6q.js} +10 -10
  140. package/dist/assets/{ReportsPage-BNcymVwf-B4kpec4N.js → ReportsPage-D0dEACVc-CgqzQVRZ.js} +9 -9
  141. package/dist/assets/{RevenueChart-DILkui6c-CXkve67m.js → RevenueChart-D67Egnoj-B0BJYpf4.js} +14 -14
  142. package/dist/assets/{ReviewDetailsPage-ZYzvK95X-6VV1mxx9.js → ReviewDetailsPage-DX3JdY2D-BVW8q6gp.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-DhUFI1ES-CEW_vmrb.js → ReviewOverlay-BUmIoEZp-D3xvXshe.js} +4 -4
  144. package/dist/assets/{RoleWithToolTip-_W95JBwt-BwsUqYYm.js → RoleWithToolTip-QUDWRgyn-DzrP2xLD.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-iQXV-V_H-CgwvY879.js → ScheduleDetailsFixedAssetsPage-ffFbqWqR-mWiNohG4.js} +4 -4
  146. package/dist/assets/{ScheduleDetailsPage-KgHwQGrw-zxlEzZA4.js → ScheduleDetailsPage-Btyinpxx-TW4CABi6.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-Bixq8Q7W-CVtRbbOD.js → ScheduleSequenceTable-nubG9ZPF-CmzJbQeN.js} +17 -17
  148. package/dist/assets/{ScreenRoutes-C9jejgZm.js → ScreenRoutes-BC18Q4eZ.js} +1 -1
  149. package/dist/assets/SetUpAccountSection-C9PPpmcc-puvAr14h.js +378 -0
  150. package/dist/assets/{SetUpDefaultSection-CI0mxu3H-BYUaSUWi.js → SetUpDefaultSection-D54P9sLQ-DIoImqvg.js} +9 -9
  151. package/dist/assets/{SignIn-DslenepV-Brtvbq9M.js → SignIn-DQERofSd-BPkKMSDj.js} +11 -11
  152. package/dist/assets/{SignInScreen-FXLaio9F.js → SignInScreen-BbeWg9hl.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-D7SzmCmM-BmkfIUQC.js → SpendManagementListViewPage-B9iJVZhK-Dd5zS51l.js} +10 -10
  154. package/dist/assets/{SpendManagementPerTabPage-DKaDr4mu-BnAetJZy.js → SpendManagementPerTabPage-DiduNPFx-BvN2qFiJ.js} +12 -12
  155. package/dist/assets/{SpendManagementSection-Ddfq2u6H-CJT5q3F6.js → SpendManagementSection-BPJDk9AQ-DNTgKL_h.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CPnNzjr--DwOx73Ij.js → SpendMgmtSetupAccountSection-BVOwbOVv-BbEelpUf.js} +6 -6
  157. package/dist/assets/StatementItem-DPiBruWm-BTp46EGg.js +31 -0
  158. package/dist/assets/{StatementsPage-o7MvNKvd-DZTp-bUD.js → StatementsPage-BzG0fWr9-B7zKsVpb.js} +6 -6
  159. package/dist/assets/{StatusSwitcher-kWLQCCwS-DhdTyoS-.js → StatusSwitcher-aZiGS6I4-CW57CAir.js} +4 -4
  160. package/dist/assets/{SubTabSwitcher-BKm9FxhL-DTzufkEo.js → SubTabSwitcher-BPzCR9_G-CKWRfEmM.js} +1 -1
  161. package/dist/assets/{SummaryCard-DBMfNfN2-DoMsjoBW.js → SummaryCard-DE3DiW4z-DCcTNI78.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-D_wjK-S2-CzH2gZdk.js → TaskManagementPage-bmYzZzlx-BQOYF4T3.js} +14 -14
  163. package/dist/assets/{TimeRangeSwitcher-2vDR_AEV-DSoFwTB2.js → TimeRangeSwitcher-D10b_iT0-B6MHaMu9.js} +3 -3
  164. package/dist/assets/{TimeframeSwitcher-BB3_i5V0-DzvaUBYM.js → TimeframeSwitcher-w4308CL0-B-m8rZcD.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-CdP0ViK8-Da6suGXu.js → TimeframeSwitcherWithToggle-DP7dCTZ--Dr3OM9sZ.js} +1 -1
  166. package/dist/assets/{TopExCard-BGgGFzmK-DUAgrWaA.js → TopExCard-C9Dwe5gi-HuLCC_VB.js} +6 -6
  167. package/dist/assets/{TopExDetailPage-CbzYG54M-BLhnnftr.js → TopExDetailPage-Ch4gEAFc-CW6a2lM7.js} +14 -14
  168. package/dist/assets/TransactionDetailPage-y3Jwxln6-CGGNkWbu.js +912 -0
  169. package/dist/assets/{TransactionList-C0xK6_zI-V0PqCTtq.js → TransactionList-Dy4LSOLF-DLQzM8h7.js} +5 -5
  170. package/dist/assets/{TransactionListBig-CIX6CdX--g3sGBymu.js → TransactionListBig-BOmqcsRt-CoBJs1L1.js} +13 -13
  171. package/dist/assets/{TransactionListPage-B7ppBJig-BHPhgPik.js → TransactionListPage-D1XobIP_-CQ1XF-sO.js} +4 -4
  172. package/dist/assets/TransactionVendorDetailPage-DNbFFCAy-DiSmfMU1.js +80 -0
  173. package/dist/assets/{TransferDrawerPage-DerGmul8-CSsNuNkb.js → TransferDrawerPage-DEK-tLwC-CMAkImaq.js} +19 -19
  174. package/dist/assets/{TreasuryOverviewPage-DW2gZwip-Dw5IScse.js → TreasuryOverviewPage-Bv8YOcOu-DgYbKZRI.js} +45 -45
  175. package/dist/assets/TreasuryPromoPage-BpJ4G2tW-wrKqn45d.js +477 -0
  176. package/dist/assets/{TreasurySetupPage-Bo0HQeeU-or7EVJcf.js → TreasurySetupPage-DmXhUnJ2-CTKxmbjB.js} +2 -2
  177. package/dist/assets/{TreasuryStatementsPage-DS_VK4WN-Djy_7rtt.js → TreasuryStatementsPage-iOhX7bQX-C-86zNAp.js} +3 -3
  178. package/dist/assets/{TreasuryTaxLetterPage-DgwqyL6v-DTOb7qDc.js → TreasuryTaxLetterPage-SKYFef4J-CxXJUgOP.js} +3 -3
  179. package/dist/assets/{TreasuryTransferOrReviewPage-ZrSACgLJ-B2exNOGA.js → TreasuryTransferOrReviewPage-BAQy6UbF-5smN8wwG.js} +42 -42
  180. package/dist/assets/{TrendChart-D07k3uRr-BizV2Doj.js → TrendChart-DrNmAOxp-D32D_fQx.js} +4 -4
  181. package/dist/assets/{TrendWithTransactions-ibwuOssC-DEIyFLX7.js → TrendWithTransactions-CFapbjqF-Tluomzgb.js} +5 -5
  182. package/dist/assets/{UncategorizedAccountsMappingPage-D1m2Ok2e-D-M_NIFe.js → UncategorizedAccountsMappingPage-BjyEIyD--q-mXglLO.js} +15 -15
  183. package/dist/assets/{UnitIntegrationPage-BJxRjjfK-8XeAb4ey.js → UnitIntegrationPage-CMRuNXKH-W-172t0m.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-DI_GZA8A-C0HW1ZE2.js → UploadAdditionalDocumentOverlay-BJNFsBN7-CW3s6tmn.js} +2 -2
  185. package/dist/assets/{Vendor2FAPopup-80vvc7gE-VuU8TUPK.js → Vendor2FAPopup-Dk_XUHkP-BfvRXa0R.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-CQcuiNPr-Y799WSgz.js → VendorACHDetailsPage-DS1-IldK-BBUTN6DM.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-Dx_yfZDH-BV9MTsdg.js → VendorDetailPage-CzECD1Tt-BxCeFQBa.js} +8 -8
  188. package/dist/assets/{VendorDomesticWireDetailsPage-DN5x3F_Z-DwYK3lBf.js → VendorDomesticWireDetailsPage-Bd-dOP2Q-B1c_niFG.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-8Jz187lD-CD8Sjk1O.js → VendorFiling1099EditablePage-C7D_fWCV-ar_0EIM_.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-CokvYaRq-COLCPdNO.js → VendorFirstReviewPage-B4YffYJO-BW-F4-km.js} +10 -10
  191. package/dist/assets/{VendorInternationalWireDetailsPage-lo9l2Q88-CVlhIT2D.js → VendorInternationalWireDetailsPage-D1i4RwUe-BBAccWWe.js} +7 -7
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CPj3zrDk-BL1wN9Up.js → VendorInternationalWireSwiftDetailsPage-QqA8DADQ-CetqwMx2.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-BqoW4DlP-DbQ0LHxR.js → VendorsAccountsSection-C8qo0vKx-DOST9l3F.js} +2 -2
  194. package/dist/assets/{VerifyDevice-D8iPRJ3k-DSuAMuQv.js → VerifyDevice-Cku9_tdW-BTj-mHAb.js} +1 -1
  195. package/dist/assets/VideoPlayer-DqxblGWn-BXG0P4e3.js +38 -0
  196. package/dist/assets/VideoPopup-8253nBrT-DoJHFZMN.js +31 -0
  197. package/dist/assets/{WarningsDrawerPage-qYWFsE3s-CYfk6-4G.js → WarningsDrawerPage-B08Au4yQ-B9IzdYhz.js} +7 -7
  198. package/dist/assets/{ZeniAccountDetailPage-BL2a5Dmz-C1StQxM9.js → ZeniAccountDetailPage-Dx-w2w6D-4cfDv73S.js} +16 -16
  199. package/dist/assets/{ZeniAccountListViewPage-CWqzDWcO-DWbBDvt7.js → ZeniAccountListViewPage-DH4BnQ7k-CHjigIuG.js} +13 -13
  200. package/dist/assets/ZeniAccountNavBarPieces-ce5jAGIl-DVfSolpZ.js +14 -0
  201. package/dist/assets/{ZeniAccountPromoPage-CBm3w0kN-BE1XLlB5.js → ZeniAccountPromoPage-D4J2Yoil-BDHpq4Eb.js} +9 -9
  202. package/dist/assets/{ZeniAccountSetupPage-C5VzT9lH-D-R3XfH4.js → ZeniAccountSetupPage-DTkO1ASr-1XYqtTaw.js} +3 -3
  203. package/dist/assets/{ZeniCopyright-BUctH39C-Bm9h8mC0.js → ZeniCopyright-BiSq0yhI-CQbT1WRc.js} +1 -1
  204. package/dist/assets/ZeniTransferAmountSlider-B-iWjIM--_5mAEjc_.js +63 -0
  205. package/dist/assets/{analyticsHelper-B3uAu0es-DeP2G2Ik.js → analyticsHelper-Dc3DtVTm-Y5fPzPLq.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BYK4WyNL.js → analyticsHelper-lnjVamrT.js} +1 -1
  207. package/dist/assets/{chartTypes-CJmQ6FtI-CvvCwGfo.js → chartTypes-C7uaeRCc-CtqAquQd.js} +1 -1
  208. package/dist/assets/{commonDimensions-WRL2ZVK_-DmUd7tEJ.js → commonDimensions-MaxjMSVa-n5Ul9FT7.js} +1 -1
  209. package/dist/assets/{detailCommon-Dfxas1Kf-KP_O7bXD.js → detailCommon-OK9JA2hc-EAouVA2X.js} +6 -6
  210. package/dist/assets/{downloadPdf-B1f0mDl2-OM_u0J6Y.js → downloadPdf-QtapKpnq-D53WP2BZ.js} +1 -1
  211. package/dist/assets/{index-BniN3Vor.js → index-4y_mNX1u.js} +3415 -3415
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-BG784RuM-Wbre_Hl-.js → mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DYIAdHUn.js → mapSectionWithAcOnlyToTreeNode-CVUpGQKE-B2Y7wF15.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CcgVbOH5-CjwEwDzY.js → mapSpacerToTreeNode-P_HzYMUQ-T8bNyKbZ.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-CU583ICK-CIqsRXJ6.js → mapTimeframeBalancesToTreeNode-B8xJouuF-0J2xTAj5.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DTlwFauL-B6siwyjX.js → mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CRbQQm43.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BAAatv-Y-C-hpmEKv.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-DTfegixr-CpjReCGZ.js → toCOABalancesWithID-JkvOa9nR-BuY_FDkW.js} +1 -1
  219. package/dist/assets/{toChartData-CH5DcWUY-PR9QaIUj.js → toChartData-CEfu5Lvp-ztIWW0aM.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BdPkQoh7-D4MVhsbu.js → treasuryColorHelper-Bvcahv9r-CJj1lXeK.js} +1 -1
  221. package/dist/assets/{uploadAttachment-COwu5Mqo-DugifZEA.js → uploadAttachment-DNrYcaTL-7XpOhOp_.js} +14 -14
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-sfR1TpBq.js → uploadReceipts-dxsKhm9I-Dv2hG-YC.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/ArAgingChart-tm5ZiNuY-CuZe4uOg.js +0 -24
  226. package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-BLBpoheC.js +0 -27
  227. package/dist/assets/CardNumberSubText-1BRQQyfd-DZzrWvjT.js +0 -21
  228. package/dist/assets/ChargeCardUtils-Wp4Ko18L-CJSY7Dbi.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-C7BS9mq1.js +0 -1
  230. package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-tV7Tpf2Y.js +0 -66
  231. package/dist/assets/ExpenseAutomationPage-Cz3JsW-E-CUtMz5u1.js +0 -1650
  232. package/dist/assets/InvitePeoplePage-CbZqVsTp-fnBnGPLF.js +0 -12
  233. package/dist/assets/LabeledAddressValueField-YuLcra47-c2Miur6B.js +0 -45
  234. package/dist/assets/NotificationsListConfig-DbHYPEWZ-DsOA0hcX.js +0 -1
  235. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-B5vRXui9.js +0 -26
  236. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-DFws7cUz.js +0 -1
  237. package/dist/assets/SetUpAccountSection-D8FMVhkL-CXn_wRED.js +0 -378
  238. package/dist/assets/StatementItem-B2uPIFUk-DW6LPk9K.js +0 -31
  239. package/dist/assets/TransactionDetailPage-C-CfEtCO-Ca6Qq7Yb.js +0 -912
  240. package/dist/assets/TransactionVendorDetailPage---HGdQiZ--z0wQoiv.js +0 -80
  241. package/dist/assets/TreasuryPromoPage-DzqdEmPJ-DORtHtoQ.js +0 -439
  242. package/dist/assets/VideoPopup-SdlRHLkM-C8u22oza.js +0 -31
  243. package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-CNlrzs66.js +0 -14
  244. package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-DEgZ2UH_.js +0 -63
@@ -0,0 +1,1650 @@
1
+ import{o,br as Ha,e as ke,fP as Pi,fQ as Ni,l as q,M as Ie,j as t,bV as Ua,b as ze,a4 as Vi,r as g,bX as Wa,u as bt,aX as qa,hu as Ja,a0 as Ke,bp as we,C as Q,aR as Ka,_,hs as Ga,y as Be,fj as Za,gk as Hi,aS as Ya,bh as Et,am as Ui,w as vt,b6 as Wi,f as tt,jt as Xa,fF as Qa,B as mt,a3 as es,fR as ts,fS as qi,aK as ns,bQ as os,by as is,eA as un,bv as po,a as Ht,bg as mo,F as Ut,ju as as,jv as ss,jw as rs,jx as sn,jy as Ji,jz as Ki,jA as ls,jB as cs,dj as Gi,jC as ds,jD as us,jE as hs,jF as ps,jG as ms,jH as To,jI as gs,jJ as xs,jK as fs,jL as ys,jM as Cs,jN as Zi,jO as ws,jP as bs,jQ as vs,jR as Ss,g4 as Yi,aj as Tn,b_ as An,m as Xi,aE as Qi,dP as ea,ca as hn,dS as go,g0 as js,f5 as ks,fl as Is,s as $s,T as Ls,f2 as Ts,L as ta,jS as As,a8 as xo,a2 as Ao,jT as Es,jU as Rs,gm as na,jV as Ds,a$ as oa,a6 as Os,ga as At,hg as On,ey as jn,cn as fo,A as Fs,cw as ia,dl as Bs,ia as _s,dr as yo,c3 as En,c6 as Rn,hV as ot,v as Lt,h5 as Ms,g5 as Fn,iu as Eo,dh as aa,cz as cn,jW as zs,ae as Ps,dq as sa,K as dn,hM as ra,hW as ro,jX as Qt,dY as la,dZ as ca,jY as da,jZ as ua,j_ as Ns,cx as Dn,hN as ha,d1 as pa,eq as Bn,W as Co,j$ as Vs,ct as Hs,ab as ma,i1 as Us,dQ as Ws,q as ft,k0 as qs,k1 as Js,ah as _n,cH as Ks,x as Gs,en as Zs,eo as Ys,ep as Xs,er as Ro,es as Do,et as Qs,k2 as er,af as tr,eC as nr,eD as or,eE as ir}from"./index-4y_mNX1u.js";import{n as s,b as a,j as et,k as wo,f as ga}from"./vendor-rkTZJa59.js";import{r as xa,R as fa,n as en,W as pt}from"./CollapsableReportTable-KGZROyWO-BB5JbMLM.js";import{o as ya}from"./mapTimeframeBalancesToTreeNode-CB6RE8w9-CAzsziRN.js";import{d as Oo}from"./mapLoadingInProgressToTreeNode-pvoDlh5w-BH0I_ZXQ.js";import{h as ar}from"./VendorsAccountsSection-C8qo0vKx-DOST9l3F.js";import{u as sr,c as Fo,d as rr,m as lr}from"./uploadAttachment-DNrYcaTL-7XpOhOp_.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./AccountRow-BcSPuOPF-R9MJWqpQ.js";const{common:{navBar:{back:cr},texts:{refresh:dr,close:ur,copy:hr,copied:pr,open:mr}},expenseAutomation:{common:{numbers:{maximumCount:gr}}}}=Ie.getLocalizedStrings(),xr=s(js)`
2
+ display: flex;
3
+ width: ${o.sp4};
4
+ height: ${o.sp4};
5
+ align-items: center;
6
+ justify-content: center;
7
+ `,fr=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
+ `,yr=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
+ `,Cr=s.div`
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-left: ${e=>_o.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
+ padding-right: ${e=>_o.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
+ `,wr=s.div`
34
+ display: flex;
35
+ align-items: baseline;
36
+ justify-content: end;
37
+ gap: ${o.sp4};
38
+ flex: 1 1 ${o.sp0};
39
+ `,br=s.div`
40
+ display: flex;
41
+ align-items: baseline;
42
+ justify-content: start;
43
+ gap: ${o.sp4};
44
+ flex: 1 1 ${o.sp0};
45
+ `,vr=s(Is)`
46
+ width: ${o.sp3};
47
+ height: ${o.sp3};
48
+ cursor: pointer;
49
+ margin-left: ${o.sp1};
50
+ color: inherit;
51
+ `,Sr=s(ks)`
52
+ width: ${o.sp3};
53
+ height: ${o.sp3};
54
+ margin-left: ${o.sp1};
55
+ color: ${tt.success};
56
+ `,jr=s(es)`
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
+ `,kr=s(is)`
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
+ `,Ir=s(os,{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?et`
78
+ ${$r} 2s linear infinite;
79
+ `:"none"};
80
+ &:hover {
81
+ color: ${e=>e.theme.colors.primary};
82
+ }
83
+ `,$r=wo`
84
+ 0% {
85
+ transform: rotate(0deg);
86
+ }
87
+ 100% {
88
+ transform: rotate(360deg);
89
+ }
90
+ `,Lr=s.div`
91
+ padding-top: ${o.sp0};
92
+ padding-bottom: ${o.sp0};
93
+ `,Bo=s(Be)`
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
+ `,Tr=s.div`
102
+ display: flex;
103
+ `,Ar=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
+ `,Er=s.div`
112
+ display: flex;
113
+ height: ${o.sp4};
114
+ `,Rr=s.div`
115
+ text-align: center;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ flex-wrap: wrap;
120
+ `,Dr=s.div`
121
+ display: flex;
122
+ flex-direction: column;
123
+ `,Or=s(un)`
124
+ width: ${o.sp3};
125
+ height: ${o.sp3};
126
+ margin-right: ${o.sp1};
127
+ path {
128
+ stroke-width: 2;
129
+ }
130
+ `,pn=s.span`
131
+ font-weight: ${po.regular};
132
+ color: ${e=>e.theme.colors.primary};
133
+ `,Fr=s.span`
134
+ font-weight: ${po.medium};
135
+ color: ${e=>e.theme.colors.primary};
136
+ `,Br=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
+ `,_o={subSectionContainerLeftRightPadding:new Q(g[3],g[6],g[8])},_r=({onAllThreadsClick:e,companyId:n,companyName:d})=>{const c={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:d,url:window.location.href},{url:p,...h}=c,i={...h},{threads:l,isLoading:r}=ts(i,!1,!1),m=l.filter(u=>u.id.includes(qi)===!1);return t.jsxs(fr,{isDisabled:r,onClick:e,"data-testid":_("comment-icon"),children:[t.jsx(ns,{count:m.length,isLoading:r}),t.jsx(xr,{})]})},Mr=({headerData:e,refreshStatus:n,searchText:d,companyName:c,companyId:p,isZeniUser:h,onAllThreadsClick:i,onClose:l,onRefresh:r,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&r()};return t.jsx(wr,{children:e.rightSection.map((x,f)=>{switch(x){case"search":return t.jsx(Ga,{isSearchOpen:(d.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:d,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:o.sp4},searchIconMarginRight:o.sp0,onSearchTextChanged:w=>{m(w)},downloadPresent:!1},f+x);case"refresh":return t.jsx(we,{display:"block",placement:"bottom",title:dr,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(Ir,{onClick:u,$spinning:n==="In-Progress","data-testid":_("refresh-icon")})},f+x);case"comment":return h===!1?null:t.jsx(_r,{companyId:p,companyName:c,onAllThreadsClick:i});case"close":default:return t.jsx(we,{display:"block",placement:"bottom",title:ur,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(jr,{onClick:l,"data-testid":_("close-icon")})},f+x)}})})},zr=({headerData:e,onBack:n})=>t.jsx(br,{children:e.leftSection.map((d,c)=>{switch(d){case"back":default:return t.jsx(we,{display:"block",placement:"bottom",title:cr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(kr,{onClick:n,"data-testid":_("back-button")})},c+d)}})}),Mo=({text:e,linkText:n,windowSize:d,isCopied:c,onLinkClick:p})=>{if(n==null||!n)return t.jsxs(pn,{windowSize:d,children:[e," "]});const h=e.indexOf(n);if(h===-1)return t.jsxs(pn,{windowSize:d,children:[e," "]});const i=e.substring(0,h),l=e.substring(h+n.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(pn,{windowSize:d,children:[i.trim()," "]}):null,t.jsx(we,{display:"flex",placement:"right",title:Hi.test(n)?c?pr:hr:mr,enterTouchDelay:600,children:t.jsxs(Br,{onClick:()=>p?.(n),"data-testid":_("pre-link"),children:[n,c?t.jsx(Sr,{className:"success-icon"}):t.jsx(vr,{className:"copy-icon"})]})}),l?t.jsxs(pn,{windowSize:d,children:[l," "]}):null]})},zo=({subTitles:e})=>{const n=ke(),[,d]=Za(),[c,p]=a.useState(!1),h=a.useRef(null),i=a.useCallback(l=>{Hi.test(l)?(d(l),p(!0),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{p(!1)},2e3)):window.open(l,"_blank","noopener,noreferrer")},[d]);return a.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]),t.jsx(Dr,{children:e.map((l,r)=>t.jsxs(Rr,{children:[l.pre?t.jsx(Mo,{text:l.pre,linkText:l.preLink,windowSize:n,isCopied:c,onLinkClick:i}):null,l.prefixIconName?t.jsx(t.Fragment,{children:l.prefixIconName==="zeniAIIcon"?t.jsx(Or,{}):t.jsx(t.Fragment,{})}):null,l.bold?t.jsx(t.Fragment,{children:t.jsxs(Fr,{windowSize:n,children:[l.bold," "]})}):null,l.post?t.jsx(Mo,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:c,onLinkClick:i}):null]},r+l.bold+l.pre+l.post))})};function Pr(e){const{headerData:n,currentTab:d,completionStatus:c,onUpdateTab:p,selectedReconAccountId:h,getTabCountAndFetchState:i,reconcileDetailPageFetchState:l,forceShowSubtitle:r,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:x,navBarCustomElement:f,titleStyle:w={}}=e,j=i("autoCategorized")?.count??0,C=i("review")?.count??0,y=i("reconcile")?.count??0,I=n.tabs.length>0||n.subTitle.length>0,L=m==="transaction_categorization"&&d==="autoCategorized",T=m==="reconciliation"&&x==="review"&&h!=null,A=m==="reconciliation"&&x==="reconcile"&&h!=null,D=L?j>0:T?l==="In-Progress"?!0:C>0:A?l==="In-Progress"?!0:y>0:c!=="complete",b=bt(),v=ke();let $=[];return n.tabs.length>0&&($=n.tabs.map(R=>({label:R.label,id:R.id,countDetails:i(R.id)}))),t.jsxs(yr,{children:[t.jsx(qa,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:b.colors.grey4,onBackClick:()=>null,titleStyle:w,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(zr,{...e}),rightSideComponent:t.jsx(Mr,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(ze,{controller:I===!0,children:t.jsx(Cr,{windowSize:v,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(Lr,{windowSize:v,children:t.jsx(Ja,{allTabs:$,selectedTab:m==="transaction_categorization"?d??$[0].id:x??$[0].id,onTabChange:R=>{if(m==="transaction_categorization"){const M=q.toExpenseAutomationTransactionsTabKey(R.id);M!=null&&p(M)}else if(m==="reconciliation"){const M=q.toReconciliationTabsType(R.id);M!=null&&u(M)}},maximumCountLimit:gr})}),t.jsx(Ar,{windowSize:v}),t.jsx(Er,{}),t.jsx(ze,{controller:D===!0||r===!0,children:t.jsx(Bo,{windowSize:v,children:n.tabs.map((R,M)=>(m==="reconciliation"?R.id===x:R.id===d)?t.jsx(Tr,{children:t.jsx(zo,{subTitles:R.subTitle})},M+R.id):null)})})]}):t.jsx(ze,{controller:D===!0||r===!0,children:t.jsx(Bo,{windowSize:v,children:t.jsx(zo,{subTitles:n.subTitle})})})})})]})}const Nr=1;function Vr({name:e,checkBoxes:n,mode:d,isDisabled:c,style:p,labelStyle:h,labelCheckBoxStyle:i,checkBoxStyle:l,width:r,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:x,checkBoxContainerStyle:f,draggable:w=!1,selectionLimit:j,infoIconContainerStyle:C,onDragStart:y,rowHeight:I=40,initialScrollOffSet:L,onScroll:T}){const A=ke(),D=a.useRef(null),{control:b}=fo(),v=n.find(F=>F.groupLabel),$=n.filter(F=>!F.groupLabel),R=[];for(const F of $)if(F.isException||R.push(F.value),j!=null&&R.length===j+1)break;const M=n.filter(F=>F.defaultChecked).map(F=>F.value);return t.jsx(ia,{control:b,name:e,rules:m,defaultValue:M,render:({field:{value:F,ref:K,onChange:V}})=>{const H=J=>{Ur({event:J,value:F,allCheckBoxValues:R,groupLabelCheckBox:v,onChange:V})};return t.jsxs(Wr,{style:p,windowSize:A,children:[v&&t.jsx(bo,{checkBox:v,index:0,value:F,allCheckBoxValues:R,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:h,width:r,draggable:w,groupLabelCheckBox:v,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:y,ref:K,onChangeHandler:H}),t.jsx(qr,{children:t.jsx(Tn,{style:{height:"100%",width:"100%"},children:({height:J,width:G})=>t.jsx(An,{ref:D,height:J,width:G,itemCount:$.length,itemSize:()=>I,estimatedItemSize:I,initialScrollOffset:L??0,onScroll:({scrollOffset:O})=>{T?.(O)},overscanCount:Nr,itemKey:O=>$[O].value,itemData:{checkBoxes:$,value:F,allCheckBoxValues:R,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:h,width:r,draggable:w,groupLabelCheckBox:v,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:y,ref:K,onChange:V,handleChangeEvent:H,rowHeight:I},children:Hr})})})]})}})}const Hr=({index:e,style:n,data:d})=>{const c=a.useRef(null),{checkBoxes:p,value:h,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:w,width:j,draggable:C,groupLabelCheckBox:y,infoIconContainerStyle:I,checkedIconColor:L,isDisabled:T,selectionLimit:A,onDragStart:D,ref:b,handleChangeEvent:v}=d,$=p[e];return t.jsx(Xr,{style:{...n,width:"100%"},ref:c,children:t.jsx(bo,{checkBox:$,index:e,value:h,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:w,width:j,draggable:C,groupLabelCheckBox:y,infoIconContainerStyle:I,checkedIconColor:L,isDisabled:T,selectionLimit:A,onDragStart:D,ref:b,onChangeHandler:v})})},bo=a.forwardRef((e,n)=>{const{value:d,checkBox:c,groupLabelCheckBox:p,allCheckBoxValues:h,selectionLimit:i,mode:l,checkBoxStyle:r,labelCheckBoxStyle:m,isDisabled:u,draggable:x,checkBoxContainerStyle:f,infoIconContainerStyle:w,name:j,index:C,width:y,checkedIconColor:I,checkBoxIconStyle:L,labelStyle:T,onDragStart:A,onChangeHandler:D}=e,b=ke(),v=F=>{typeof n=="function"?n(F):n&&(n.current=F)};let $=d.includes(c.value);const R=Array.from(new Set([...d,c.value]));p?.value===c.value&&d.length>0&&(i!=null?$=R.length===h.length||R.length===i+1:$=h.every(F=>R.includes(F)===!0));const M=()=>l==="off"||c.isException?b==="small"?{display:"none",...r}:{visibility:"hidden",...r}:c.groupLabel?h.length===1&&h[0]===p?.value?{visibility:"hidden",...m}:m:r;return t.jsxs(Kr,{mode:l,draggable:x===!0,onDragStart:F=>{A?.(F,c.value)},style:f,isDisabled:u,isSelected:$,exceptionMode:c.exceptionMode,children:[c.prefix?t.jsx(Jr,{className:"prefix-box",children:c.prefix}):null,c.isException?t.jsx(Gr,{style:w,className:"checkbox-alert",children:t.jsx(we,{style:{padding:`12px ${o.sp3}`},title:c.exceptionInfo??"",placement:"bottom-start",children:c.exceptionType==="info"?t.jsx(Zr,{}):t.jsx(Yr,{})})}):t.jsx(Vs,{name:`${j}.${c.value}`,checkBoxValue:c.value,value:$,checkedIconColor:I,isDisabled:u||!c.groupLabel&&!$&&i!=null&&R.length===i+1?"disabled":void 0,checkBoxStyle:M(),checkBoxIconStyle:L,ref:v,onChange:D}),typeof c.label=="string"&&c.label?t.jsx(Hs,{isDisabled:u,label:c.label,labelStyle:T,htmlFor:`${j}.${c.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:y,backgroundColor:"inherit",...T}}):c.label]},`${c.value}_${C}`)});bo.displayName="CheckBoxWithLabel";const Ur=({event:e,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:p})=>{const h=e.currentTarget.value,i=e.currentTarget.checked,l=c?.value,r=new Set(n);if(h===l){p(i?Array.from(new Set([l,...d])):[]);return}i?r.add(h):r.delete(h);const m=d.every(u=>r.has(u));l!=null&&(m&&!r.has(l)?r.add(l):!m&&r.has(l)&&r.delete(l)),p(Array.from(r))},Wr=s.div`
155
+ display: flex;
156
+ flex-direction: column;
157
+ width: 100%;
158
+ height: 100%;
159
+ `,qr=s.div`
160
+ flex: 1;
161
+ overflow: hidden;
162
+ `,Jr=s.div`
163
+ opacity: 0;
164
+ `,Kr=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"&&et`
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"&&et`
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"&&et`
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"&&et`
213
+ :hover {
214
+ .checkbox-alert {
215
+ opacity: 1;
216
+ }
217
+ }
218
+ `}
219
+
220
+ ${e=>e.exceptionMode==="checked_or_hover"&&et`
221
+ .checkbox-alert {
222
+ opacity: 1;
223
+ }
224
+ `}
225
+ `,Gr=s.div`
226
+ cursor: pointer;
227
+ `,Zr=s(Wi)`
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
+ `,Yr=s(pa)`
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
+ `,Xr=s.div`
240
+ width: 100%;
241
+ box-sizing: border-box;
242
+ `,Qr=e=>a.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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}),a.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}),a.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}),a.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}),a.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}),a.createElement("g",{opacity:.2},a.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"})),a.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"}),a.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.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}),a.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}),a.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}),a.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),el=e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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}),a.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),a.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}),a.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"}),a.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"}),a.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),a.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}),a.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),tl=e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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}),a.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}),a.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}),a.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"}),a.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}),a.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}),a.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}),a.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}),a.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}),a.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}),a.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}),a.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),nl=e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.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"}),a.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"}),a.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),ol=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
+ `,il=s(el)`
251
+ width: 90px;
252
+ height: 90px;
253
+ `,al=s(tl)`
254
+ width: 90px;
255
+ height: 90px;
256
+ `,sl=s(Qr)`
257
+ width: 90px;
258
+ height: 90px;
259
+ `,rl=s(nl)`
260
+ width: 90px;
261
+ height: 90px;
262
+ `,ll=s.div`
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: center;
266
+ flex-direction: column;
267
+ `,cl=s($s)`
268
+ margin-top: ${o.sp2};
269
+ color: ${e=>e.theme.colors.brandColorJade};
270
+ `,dl=s(Ls)`
271
+ color: ${e=>e.theme.colors.primary};
272
+ `,ul=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(il,{});case"je_schedules":case"reconciliation":return t.jsx(rl,{});case"flux_analysis":return t.jsx(sl,{});case"missing_receipts":default:return t.jsx(al,{})}};function wt(e){const{title:n,subTitle:d}=e;return t.jsx(ol,{children:t.jsxs(ll,{children:[t.jsx(ul,{...e}),t.jsx(cl,{children:n}),t.jsx(dl,{children:d})]})})}const{common:{headers:{transactions:hl,jeSchedules:pl,fluxAnalysis:ml,missingReceipts:gl,insights:xl,reconciliation:Po},strings:{empty:_t}},expenseAutomation:{transactions:{tabs:No,subTitles:{review:{item1:mn,item2:gn},autoCategorized:{item1:xn,item2:fl}},searchPlaceholder:yl,allDoneText:Cl},jeSchedules:{subTitles:{item1:wl,item2:bl},searchPlaceholder:vl,allDoneText:Sl},missingReceipts:{subTitles:jl,searchPlaceholder:kl,allDoneText:Il},fluxAnalysis:{subTitles:{item1:$l,item2:Ll},searchPlaceholder:Tl,emptyPageTexts:{youDidIt:Al,allReviewed:El}},accountRecon:{review:{allDoneText:Vo},reconcile:{allDoneText:Rl},tabs:Ho,titles:{item1:Dl,item2:Ol},subTitles:{review:{item1:Fl,item2:fn},reconcile:{item1:yn,item2:Bl}}}}}=Ie.getLocalizedStrings(),He=(e,n,d,c,p)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:hl,subTitle:[],tabs:[{label:No.review,id:"review",subTitle:[{pre:mn.pre,bold:mn.bold,prefixIconName:mn.prefixIconName,post:mn.post},{pre:gn.pre,bold:gn.bold,prefixIconName:gn.prefixIconName,post:gn.post}]},{label:No.autoCategorized,id:"autoCategorized",subTitle:[{pre:xn.pre,bold:xn.bold,prefixIconName:xn.prefixIconName,post:xn.post.replace("#number",n!=null&&n!=0?n.toString():"")},fl]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:yl,allDoneText:Cl};case"je_schedules":return{key:"je_schedules",title:pl,subTitle:[wl,bl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:vl,allDoneText:Sl};case"missing_receipts":return{key:"missing_receipts",title:gl,subTitle:[jl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:kl,allDoneText:Il};case"flux_analysis":return{key:"flux_analysis",title:ml,subTitle:[$l,Ll],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Tl,allDoneText:{title:Al,subTitle:El}};case"month_end_insights":return{key:"month_end_insights",title:xl,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:_t,allDoneText:{title:_t,subTitle:_t}};case"reconciliation":return d==null?{key:"reconciliation",title:Po,subTitle:[Dl,Ol],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:_t,allDoneText:{title:_t,subTitle:_t}}:{key:"reconciliation",title:c??Po,subText:p??void 0,subTitle:[],tabs:[{label:Ho.review,id:"review",subTitle:[Fl,{pre:fn.pre,bold:fn.bold,prefixIconName:fn.prefixIconName,post:fn.post}],allDoneText:Vo},{label:Ho.reconcile,id:"reconcile",subTitle:[{pre:yn.pre,bold:yn.bold,prefixIconName:yn.prefixIconName,post:yn.post},Bl],allDoneText:Rl}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:_t,allDoneText:Vo}}},{common:{strings:{empty:_l}},expenseAutomation:{accountRecon:{reconcile:{header:Rt}}}}=Ie.getLocalizedStrings(),Ml={key:"date",value:Rt.date,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginLeft:g[4],marginRight:g[3]}},zl={key:"clearedDate",value:Rt.clearedDate,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3],display:"none"}},Pl={key:"type",value:Rt.type,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Nl={key:"payee",value:Rt.payee,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Vl={key:"account",value:Rt.account,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Hl={key:"transactionDirection",value:Rt.direction,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Ul={key:"memo",value:Rt.memo,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Wl={key:"amount",value:Rt.amount,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},ql={key:"recommended",value:_l,sortOrder:"ascending",width:new Q(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}},Oe=[Ml,zl,Pl,Nl,Vl,Hl,Ul,Wl,ql],Jl=50,an={sortKey:"date",sortOrder:"descending"};function Kl({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const d=ke(),[c,p]=a.useState(Co(Oe));a.useEffect(()=>{const l=[...c];for(const r of l)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";p(l)},[e.sortKey,e.sortOrder]);const h=(l,r)=>{let m=r;e.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),n(l,m)},i=l=>{h(l.key,l.sortOrder)};return t.jsx(Xl,{headerHeight:Jl,children:c.map(l=>t.jsx(Zl,{columnWidth:l.width,windowSize:d,sortDataValue:e.sortKey,actualDataValue:l.key,style:l.customStyle,children:t.jsxs(oc,{isVisible:l.key!=="recommended",children:[t.jsx(Yl,{"data-testid":_("reconcile-tab-list-sort",l.value),onClick:()=>i(l),children:t.jsx(mt,{children:l.value})}),t.jsx(Ql,{sortConfig:e,headerData:l,children:t.jsx(ec,{})}),t.jsx(tc,{isVisible:e.sortKey===l.key&&(e.sortKey!==an.sortKey||e.sortOrder!==an.sortOrder),children:t.jsx(nc,{"data-testid":_("reconcile-tab-list-reset-sort",an.sortKey),onClick:()=>n(an.sortKey,an.sortOrder)})})]})},l.key))})}const Gl=ga.memo(Kl),Zl=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
+ `,Yl=s.div`
286
+ display: flex;
287
+ gap: 5px;
288
+ cursor: pointer;
289
+ `,Xl=s(vt)`
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
+ `,Ql=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
+ `,ec=s(En)`
307
+ width: ${o.sp2};
308
+ height: ${o.sp2};
309
+ `,tc=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
+ `,nc=s(Rn)`
319
+ width: 12px;
320
+ height: 12px;
321
+ `,oc=s.div`
322
+ display: ${e=>e.isVisible?"flex":"none"};
323
+ `,ic=54,ac=72,{common:{strings:{hyphen:Mn}}}=Ie.getLocalizedStrings(),{dateFormat:Uo}=Ie.getLocalizedStrings();function sc({selectedTransactionIds:e,transaction:n,transactionId:d}){const c=ke(),p=bt(),[h,i]=a.useState(!1),l=e.includes(d),r=h||l;return t.jsx(rc,{id:d,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(lc,{isSelected:r,totalHeight:ic,children:[t.jsx(gt,{windowSize:c,responsiveWidth:Oe[0].width,style:Oe[0].customStyle,children:t.jsx(Mt,{isSelected:r,children:n.date.format(Uo.visual.MMMDCommaYYYYformat)})}),Oe[1].customStyle.display!=="none"?t.jsx(gt,{windowSize:c,responsiveWidth:Oe[1].width,style:Oe[1].customStyle,children:t.jsx(Mt,{isSelected:r,children:n.clearedDate!=null?n.clearedDate.format(Uo.visual.MMMDCommaYYYYformat):t.jsx("span",{children:Mn})})}):null,t.jsx(gt,{windowSize:c,style:Oe[2].customStyle,responsiveWidth:Oe[2].width,children:t.jsx(uc,{isSelected:r,children:t.jsx(cc,{isSelected:r,children:Ns(n.type)})})}),t.jsx(gt,{windowSize:c,style:Oe[3].customStyle,responsiveWidth:Oe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(ot,{text:n.merchantName,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}}):t.jsx(Mt,{isSelected:r,children:t.jsx("span",{children:Mn})})}),t.jsx(gt,{windowSize:c,style:Oe[4].customStyle,responsiveWidth:Oe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(ot,{text:n.accountName,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}}):t.jsx(Mt,{isSelected:r,children:t.jsx("span",{children:Mn})})}),t.jsx(gt,{windowSize:c,style:Oe[5].customStyle,responsiveWidth:Oe[5].width,children:t.jsx(Mt,{isSelected:r,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(gt,{windowSize:c,style:Oe[6].customStyle,responsiveWidth:Oe[6].width,children:t.jsx(ot,{text:n.memo,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}})}),t.jsx(gt,{windowSize:c,style:Oe[7].customStyle,responsiveWidth:Oe[7].width,children:t.jsx(Mt,{isSelected:r,children:Ke("0,0.[00]",n.amount)})}),t.jsx(gt,{windowSize:c,responsiveWidth:Oe[8].width,style:Oe[8].customStyle,children:t.jsx(Mt,{isSelected:r,children:n.isZeniRecommended?t.jsx(dc,{}):null})})]})})}const rc=s.div`
324
+ box-sizing: border-box;
325
+ width: 100%;
326
+ display: flex;
327
+ padding-right: ${o.sp8};
328
+ `,lc=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
+ `,gt=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
+ `,Mt=s(Be)`
351
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
+ span {
353
+ padding-left: ${o.sp3};
354
+ }
355
+ `,cc=s(mt)`
356
+ text-transform: capitalize;
357
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
+ `,dc=s(un)`
359
+ width: ${o.sp3};
360
+ height: ${o.sp3};
361
+ margin-right: ${o.sp1};
362
+ path {
363
+ stroke-width: 2;
364
+ }
365
+ `,uc=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
+ `,hc=Ie.getLocalizedStrings(),{common:{all:Wo,strings:{empty:qo}}}=hc,Jo="selectedTransactionIds",pc="expenseAutomationBankReconReconcilePage",mc=e=>`${e}_form`;function gc({currentFooterFormId:e,localData:n,matchedTransactions:d,sortConfig:c,onSaveReconciliation:p,selectedAccountId:h,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r}){const m=Ht({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Gl,{onReconTabColumnSortConfigChanged:i,sortConfig:c}),value:Wo.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},x=d.map(C=>({label:t.jsx(sc,{transaction:C,selectedTransactionIds:n.selectedTransactionIds,transactionId:C.id}),value:C.id,defaultChecked:!1,groupLabel:!1})),f=[u,...x],w=async C=>{const y=C[Jo].filter(I=>I!=Wo.toLocaleLowerCase());l(y)};a.useEffect(()=>{const C=m.watch(y=>{y!=null&&hn(()=>w(y))});return()=>{C.unsubscribe()}}),a.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const j=a.useCallback(()=>{p({reconcileAction:"reconcile"})},[p]);if(d.length===0){const C=He("reconciliation",void 0,h).tabs.find(y=>y.id==="reconcile")?.allDoneText;return t.jsx(Cc,{children:t.jsx(wt,{tab:"missing_receipts",title:C?.title??qo,subTitle:C?.subTitle??qo})})}return t.jsx(xc,{children:t.jsx(Ut,{...m,children:t.jsx(fc,{onSubmit:m.handleSubmit(j),id:mc(pc),children:t.jsx(yc,{children:t.jsx(Vr,{name:Jo,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:ac,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const xc=s.div``,fc=s.form``,yc=s.div`
370
+ height: calc(100vh - 350px);
371
+ `,Cc=s.div`
372
+ height: 100%;
373
+ display: flex;
374
+ justify-content: center;
375
+ align-items: center;
376
+ `,lo=69,ue={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},Ca=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
+ `,wa=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
+ `,ba=s.div`
393
+ width: 100%;
394
+ `,va=s.div`
395
+ width: 100%;
396
+ `,vo=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
+ `,So=s.div`
404
+ display: flex;
405
+ flex-direction: row;
406
+ justify-content: space-between;
407
+ padding: ${o.sp2};
408
+ padding-right: ${o.sp3};
409
+ `,wc=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
+ `,bc=s.div`
417
+ padding: ${o.sp2} ${o.sp3};
418
+ `,jo=s.div`
419
+ display: flex;
420
+ `,vc=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
+ `,ko=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
+ `,Y=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
+ `,dt=s.div`
477
+ padding: ${o.sp2} ${o.sp3};
478
+ `,te=s(mt)`
479
+ color: ${e=>e.theme.colors.hero};
480
+ `,ce=s(Be)`
481
+ width: 100%;
482
+ color: ${e=>e.theme.colors.hero};
483
+ white-space: nowrap;
484
+ overflow: hidden;
485
+ text-overflow: ellipsis;
486
+ `,oe=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
+ `,Io=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
+ `,$o=s.div`
511
+ flex: 1;
512
+ `,Sa=s(mt)`
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
+ `,kn=s(vt)`
519
+ padding: ${o.sp2};
520
+ color: ${e=>e.theme.colors.hero};
521
+ background: ${e=>e.theme.colors.overlayColor};
522
+ border-radius: ${o.sp1};
523
+ `,Je=s(kn)`
524
+ padding: 2px ${o.sp2};
525
+ `,qt=Ie.getLocalizedStrings().expenseAutomation.accountRecon.review.header,yt=[{key:"date",value:qt.date,sortOrder:"ascending",width:new Q(20,20),loaderWidth:120},{key:"payee",value:qt.payee,sortOrder:"ascending",width:new Q(20,20),loaderWidth:212},{key:"memo",value:qt.memo,sortOrder:"ascending",width:new Q(20,20),loaderWidth:192},{key:"direction",value:qt.direction,sortOrder:"ascending",width:new Q(15,15),loaderWidth:84},{key:"match",value:qt.match,sortOrder:"ascending",width:new Q(15,15),loaderWidth:152},{key:"amount",value:qt.amount,sortOrder:"ascending",width:new Q(10,10),loaderWidth:64}],Sc=e=>{const{sortConfig:n,onColumnSortConfigChanged:d}=e,c=ke(),[p,h]=a.useState(Co(yt));a.useEffect(()=>{const l=[...p];for(const r of l)r.key===n.sortKey?r.sortOrder=n.sortOrder:r.sortOrder="ascending";h(l)},[n.sortKey,n.sortOrder]);const i=(l,r)=>{let m=r;n.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),d(l,m)};return t.jsx(kc,{children:p.map(l=>t.jsxs(Ic,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:c,isLastColumn:l.key==="amount",children:[t.jsxs($c,{"data-testid":_("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>i(l.key,l.sortOrder),children:[t.jsx(mt,{children:l.value}),t.jsx(Lc,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(Tc,{})})]}),t.jsx(Ac,{sortDataValue:n.sortKey,windowSize:c,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Ec,{"data-testid":_("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},l.key))})},jc=ga.memo(Sc),kc=s(vt)`
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
+ `,Ic=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
+ `,$c=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
+ `,Lc=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"?et`
560
+ padding-top: 2px;
561
+ `:et`
562
+ padding-bottom: 2px;
563
+ `}
564
+ `,Tc=s(En)`
565
+ width: ${o.sp2};
566
+ height: ${o.sp2};
567
+ cursor: pointer;
568
+ color: inherit;
569
+ `,Ac=s.div`
570
+ display: ${e=>e.isVisible?"flex":"none"};
571
+ align-items: center;
572
+ padding-top: 2px;
573
+ `,Ec=s(Rn)`
574
+ width: 12px;
575
+ height: 12px;
576
+ cursor: pointer;
577
+ color: ${e=>e.theme.colors.hero};
578
+ `,rt="accountReconReviewTableSection",{dateFormat:Rc,expenseAutomation:Dc,common:ht}=Ie.getLocalizedStrings(),{visual:ja}=Rc,{accountRecon:xe}=Dc,ka=e=>[{label:xe.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ia=e=>[{label:xe.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ko=e=>`${rt}_${e}_form`,Ae=(e,n)=>`${rt}.${e}.${n}`,Oc=e=>{const{sortKey:n,sortOrder:d,accountReconEntity:c,entitySearchAutoCompleteActions:p,allAccountList:h,classList:i,localData:l,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,refreshStatus:C,updateLocalData:y,onColumnSortConfigChanged:I,onSaveReconciliation:L,onSaveReconciliationReview:T,onReconMatchedTransactionClick:A,bankAccounts:D,creditCards:b}=e,{transactionsToReview:v}=c,$=a.useRef(null),[R,M]=a.useState(null),F=V=>{const H=v[V],J=q.isReviewTransactionBillPaymentType(H),G=q.isReviewTransactionExpenseType(H),O=q.isReviewTransactionCreditCardPaymentType(H),ie=q.isReviewTransactionBankTransferType(H),ye=q.isReviewTransactionDepositType(H),W=H.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return H.transactionId===R?G||O||ie||ye?275+(W?25:0):J?185+H.recommendedAction.recommendedTransactions.length*40+(W?25:0):146:72},K=a.useMemo(()=>({onColumnSortConfigChanged:I,sortConfig:{sortKey:n,sortOrder:d}}),[I,n,d]);if(a.useEffect(()=>{M(v[0]?.transactionId??null),$.current?.resetAfterIndex(0)},[n,d]),a.useEffect(()=>{$.current?.resetAfterIndex(0)},[R]),a.useEffect(()=>{$.current?.resetAfterIndex(0)},[v.length]),a.useEffect(()=>{C.fetchState==="Completed"&&$.current?.resetAfterIndex(0)},[C]),v.length===0){const V=He("reconciliation",void 0,u).tabs.find(H=>H.id==="review")?.allDoneText;return t.jsx(nd,{children:t.jsx(wt,{tab:"reconciliation",title:V?.title??ht.strings.empty,subTitle:V?.subTitle??ht.strings.empty})})}return t.jsx(Vc,{children:t.jsx($a.Provider,{value:K,children:t.jsx(Tn,{children:({height:V,width:H})=>t.jsx(An,{width:H,height:V,innerElementType:La,ref:$,itemCount:v.length,itemSize:F,itemKey:J=>v[J].transactionId,overscanCount:_s,itemData:{transactionsList:v,expandedRowId:R,allAccountList:h,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:p,excludeFetchById:f,saveFetchById:w,reviewTabSelectedVendorByTransactionId:j,bankAccounts:D,creditCards:b,updateLocalData:y,setExpandedRowId:M,onSaveReconciliation:L,onSaveReconciliationReview:T,onReconMatchedTransactionClick:A},initialScrollOffset:0,children:Fc})})})})},$a=a.createContext(void 0),La=a.forwardRef((e,n)=>{const{children:d,style:c,...p}=e,{sortConfig:h,onColumnSortConfigChanged:i}=a.useContext($a);return t.jsxs(Hc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...p,children:[t.jsx(jc,{onColumnSortConfigChanged:i,sortConfig:h}),t.jsx(Uc,{children:d})]})});La.displayName="Account recon review table inner element type";const Fc=({index:e,style:n,data:d})=>{const{transactionsList:c,expandedRowId:p,setExpandedRowId:h,entitySearchAutoCompleteActions:i,allAccountList:l,classList:r,localData:m,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:y,excludeFetchById:I,saveFetchById:L,reviewTabSelectedVendorByTransactionId:T,bankAccounts:A,creditCards:D}=d,b=c[e];return t.jsx(Nc,{style:{...n,width:"100%"},children:t.jsx(Bc,{transaction:b,expandedRowId:p,setExpandedRowId:h,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:y,excludeFetchById:I,saveFetchById:L,selectedVendor:T[b.transactionId],bankAccounts:A,creditCards:D})})},Bc=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,allAccountList:p,classList:h,classListNestedAccountHierarchy:i,localData:l,entitySearchAutoCompleteData:r,excludeFetchById:m,saveFetchById:u,selectedVendor:x,bankAccounts:f,creditCards:w,setExpandedRowId:j,updateLocalData:C,onSaveReconciliation:y,onSaveReconciliationReview:I,onReconMatchedTransactionClick:L})=>{const T=n===e.transactionId,A=ke(),D=l[e.transactionId],b=e.recommendedAction.action==="record_bill_payment",v=e.recommendedAction.action==="record_expense",$=p.find(F=>F.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),R=F=>F.recommendedAction.recommendedTransactions.length>0&&F.recommendedAction.recommendedTransactions[0].merchantName!=null?F.recommendedAction.recommendedTransactions[0].merchantName:ht.strings.hyphen,M=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Mc,{isExpanded:T,children:[t.jsxs(zc,{isExpanded:T,onClick:()=>j(e.transactionId),"data-testid":_("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Kt,{windowSize:A,responsiveWidth:yt[0].width,children:t.jsx(Jt,{children:e.transactionDate.format(ja.MMMDCommaYYYYformat)})}),t.jsx(Kt,{windowSize:A,responsiveWidth:yt[1].width,children:t.jsx(Jt,{children:t.jsx(ot,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:R(e)})})}),t.jsx(Kt,{windowSize:A,responsiveWidth:yt[2].width,children:t.jsx(Jt,{children:t.jsx(ot,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Kt,{windowSize:A,responsiveWidth:yt[3].width,children:t.jsx(Jt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Kt,{windowSize:A,responsiveWidth:yt[4].width,children:[t.jsx(ze,{controller:b,children:t.jsx(od,{children:t.jsx(id,{children:xe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(ze,{controller:!b,children:t.jsx(Jt,{children:$!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ta,{}),t.jsx(ot,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:$.accountName})]}):ht.strings.hyphen})})]}),t.jsx(Kt,{windowSize:A,isLastColumn:!0,responsiveWidth:yt[5].width,children:t.jsx(Jt,{children:ma("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(ze,{controller:T&&D!=null,children:[t.jsx(_c,{onSaveReconciliation:y,onSaveReconciliationReview:I,updateLocalData:C,saveFetchById:u,excludeFetchById:m,localData:D,classListNestedAccountHierarchy:i,allAccountList:p,classList:h,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:f,creditCards:w,onReconMatchedTransactionClick:L}),t.jsx(ze,{controller:(b||v)&&M!=null,children:t.jsx(sd,{children:t.jsxs(rd,{children:[xe.review.bankDetail,ht.strings.colon," ",M]})})})]})]})},_c=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:d,allAccountList:c,classList:p,classListNestedAccountHierarchy:h,localData:i,entitySearchAutoCompleteData:l,excludeFetchById:r,saveFetchById:m,selectedVendor:u,bankAccounts:x,creditCards:f,updateLocalData:w,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:y})=>{const I=bt(),[L,T]=a.useState(!i.vendor?.id),[A,D]=a.useState(!i.customer?.id),[b,v]=a.useState(i.categoryId==null),[$,R]=a.useState(i.classId==null),[M,F]=a.useState(i.bankAccountId==null),[K,V]=a.useState(i.creditCardId==null),[H,J]=a.useState(!i.memo),G=q.isReviewTransactionBillPaymentType(e),O=q.isReviewTransactionExpenseType(e),ie=q.isReviewTransactionBankTransferType(e),ye=q.isReviewTransactionCreditCardPaymentType(e),W=q.isReviewTransactionDepositType(e),me=a.useMemo(()=>{if(!O)return At(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return At(n,u?.recommendations);const S=c.find($e=>$e.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),re=S!=null?{...S,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return At(n,[{account:re}])},[O,u,e.recommendedAction.recommendedTransactions,c,n]),de=a.useMemo(()=>{if(!O)return jn(h);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return jn(h,u?.recommendations);const S=p.find($e=>$e.classId===e.recommendedAction.recommendedTransactions[0]?.classId),re=S!=null?{...S,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return jn(h,[{class:re}])},[O,u,e.recommendedAction.recommendedTransactions,p,h]),k=Ht({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:a.useMemo(()=>Go(e,i,me,c,de,x,f,l),[e,i,de,c,me,x,f,l]),values:a.useMemo(()=>Go(e,i,me,c,de,x,f,l),[e,i,de,c,me,x,f,l])}),z=async(S,re)=>{S.includes("memo")||w(Zo(re,e,l,c),e.transactionId,S.includes("vendor"))};a.useEffect(()=>{const S=k.watch((re,{name:$e})=>{$e!=null&&re!=null&&hn(()=>z($e,re))});return()=>{S.unsubscribe()}});const U=a.useCallback(S=>{if(O||W){if(O&&i.vendor==null){T(!1),k.setError(Ae(e.transactionId,"vendor"),{type:"required"});return}if(W&&i.customer==null){D(!1),k.setError(Ae(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){v(!1),k.setError(Ae(e.transactionId,"category"),{type:"required"});return}}w(Zo(S,e,l,c),e.transactionId,!1),C(e.transactionId)},[O,W,w,e,l,c,C,i.categoryId,i.vendor,i.customer]),P=k.watch(Ae(e.transactionId,"vendor")),E=k.watch(Ae(e.transactionId,"customer")),N=a.useRef(),ee=a.useMemo(()=>O?"vendor":W?"customer":null,[O,W]),B=(S,re)=>{ee!=null&&d.onAutoCompleteInputChange?.(S,ee),N.current=re};a.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(O&&N.current?.(ra(l.entityAutoCompleteView)),W&&N.current?.(Js(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,W,O]);const Z=S=>p.filter(re=>re.classId===S)[0]?.accountingClassNumber??void 0,ae=S=>c.filter(re=>re.qboId===S)[0]?.qboId,se=a.useMemo(()=>{switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}},[e.recommendedAction.action]),ve=()=>{v(!1)},Se=()=>{F(!1)},pe=()=>{V(!1)};return a.useEffect(()=>{b===!1&&i.categoryId==null&&k.setFocus(Ae(e.transactionId,"category"))},[b]),a.useEffect(()=>{$===!1&&i.classId==null&&k.setFocus(Ae(e.transactionId,"class"))},[$]),a.useEffect(()=>{L===!1&&i.vendor==null&&k.setFocus(Ae(e.transactionId,"vendor"))},[L]),a.useEffect(()=>{A===!1&&i.customer==null&&k.setFocus(Ae(e.transactionId,"customer"))},[A]),a.useEffect(()=>{M===!1&&i.bankAccountId==null&&k.setFocus(Ae(e.transactionId,"bankAccount"))},[M]),a.useEffect(()=>{K===!1&&i.creditCardId==null&&k.setFocus(Ae(e.transactionId,"creditCard"))},[K]),t.jsx(Ut,{...k,children:t.jsx("form",{onSubmit:k.handleSubmit(U),id:Ko(e.transactionId),children:t.jsxs(Pc,{children:[t.jsxs(Wc,{children:[t.jsxs(Kc,{children:[t.jsxs(Gc,{children:[t.jsx(Ta,{}),t.jsx(_n,{label:{label:G?xe.review.formLabels.match:xe.review.formLabels.categorize},radioField:{name:Ae(e.transactionId,"match_radio"),id:G?"match":"categorize",value:G?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(ze,{controller:!G,children:t.jsxs(t.Fragment,{children:[t.jsx(Yo,{}),se.map(S=>t.jsx(_n,{label:{label:xe.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ae(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},S))]})})]}),t.jsxs(Jc,{children:[t.jsx(dn,{variant:"secondary",size:"small",label:xe.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":_("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(dn,{form:Ko(e.transactionId),"data-testid":_("account-reconciliation-review-save-button",e.transactionId),label:ht.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(ze,{controller:O||W,children:t.jsxs(zn,{children:[t.jsx(ze,{controller:O,children:t.jsx(ft,{onClickAway:()=>{i.vendor==null&&L===!1&&T(!0)},children:t.jsx(Y,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(dt,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.vendor}),t.jsx(oe,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:L===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),T(!1)},"data-testid":_("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.champion,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.addVendor]}):t.jsx(ro,{name:Ae(e.transactionId,"vendor"),allowEmpty:!1,placeholder:xe.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:B})})})]})})})}),t.jsx(ze,{controller:W,children:t.jsx(ft,{onClickAway:()=>{i.customer==null&&A===!1&&D(!0)},children:t.jsx(Y,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(dt,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.customer}),t.jsx(oe,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:A===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),D(!1)},"data-testid":_("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.champion,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.addCustomer]}):t.jsx(ro,{name:Ae(e.transactionId,"customer"),allowEmpty:!1,placeholder:xe.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:B})})})]})})})}),t.jsx(ft,{onClickAway:()=>{i.categoryId==null&&b===!1&&v(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(dt,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.category}),t.jsx(oe,{className:"item-value-container",children:t.jsx(t.Fragment,{children:b===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":_("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.champion,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ae(e.transactionId,"category"),placeholder:xe.review.formLabels.addCategory,valueToId:S=>ae(S),defaultValue:{allOptions:me,selectedOption:c.find(S=>S.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})}),t.jsx(ft,{onClickAway:()=>{i.classId==null&&$===!1&&R(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(dt,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.class}),t.jsx(oe,{className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),R(!1)},"data-testid":_("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.champion,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.addClass]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ae(e.transactionId,"class"),placeholder:xe.review.formLabels.addClass,valueToId:S=>Z(S),defaultValue:{allOptions:de,selectedOption:i.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})]})}),t.jsx(ze,{controller:G,children:t.jsxs(Zc,{children:[t.jsxs(Yc,{children:[t.jsx("span",{className:"matched-text",children:`${xe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),xe.review.matchesFoundFullInfo]}),t.jsx(Qc,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?t.jsxs(ed,{children:[t.jsx(_n,{label:{label:t.jsxs(Xc,{children:[t.jsx(Be,{children:S.date.format(ja.MMMDCommaYYYYformat)}),t.jsx(Be,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ae(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(ad,{"data-testid":_("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&y(S.bookTransactionId)},children:[t.jsx(td,{children:ma("0,0.00",S.amount.amount,S.amount.currencySymbol)}),t.jsx(Yo,{})]})]},S.bookTransactionId):null)})]})}),t.jsx(ze,{controller:ie,children:t.jsx(zn,{children:t.jsx(ft,{onClickAway:()=>{i.bankAccountId==null&&M===!1&&F(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(dt,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.formLabels.transferTo}),t.jsx(oe,{className:"item-value-container",children:t.jsx(t.Fragment,{children:M===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),Se()},"data-testid":_("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.selectAccount]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ae(e.transactionId,"bankAccount"),placeholder:xe.review.formLabels.selectAccount,defaultValue:{allOptions:ka(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(ze,{controller:ye,children:t.jsx(zn,{children:t.jsx(ft,{onClickAway:()=>{i.creditCardId==null&&K===!1&&V(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(dt,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.formLabels.creditCard}),t.jsx(oe,{className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),pe()},"data-testid":_("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.selectCard]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ae(e.transactionId,"creditCard"),placeholder:xe.review.formLabels.selectCard,defaultValue:{allOptions:Ia(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(ze,{controller:!G,children:t.jsx(qc,{children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(dt,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:xe.review.header.memo}),t.jsx(oe,{className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ce,{onClick:S=>{S.stopPropagation(),J(!1)},"data-testid":_("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:I.colors.champion,cursor:"pointer"},children:[t.jsx(zt,{}),xe.review.formLabels.addMemo]}):t.jsx(Ks,{name:Ae(e.transactionId,"memo"),placeholder:xe.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Cn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${o.sp5})`,marginRight:`-${o.sp3}`,marginLeft:`-${o.sp3}`})},Go=(e,n,d,c,p,h,i,l)=>{const r=c.find(m=>m.accountId===n.categoryId);return{[rt]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:d},class:{selectedOption:n?.classId,allOptions:p},bankAccount:{selectedOption:n?.bankAccountId,allOptions:ka(h)},creditCard:{selectedOption:n?.creditCardId,allOptions:Ia(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:ha(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:er(n?.customer,l.entityAutoCompleteView)}}}}},Zo=(e,n,d,c)=>{const{vendor:p,customer:h}=e[rt][n.transactionId];let i;if(p.selectedOption!=null){const r=p.defaultOptions.find(m=>m.value===p.selectedOption);if(r!=null)i={id:p.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.vendor.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let l;if(h.selectedOption!=null){const r=h.defaultOptions.find(m=>m.value===h.selectedOption);if(r!=null)l={id:h.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.customer.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(l={id:m.zeniId,name:m.name})}}return{categoryId:c.find(r=>r.qboId===e[rt][n.transactionId].category.selectedOption)?.accountId??e[rt][n.transactionId].category.selectedOption,classId:e[rt][n.transactionId].class.selectedOption,memo:e[rt][n.transactionId].memo,matchedTransactionId:e[rt][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[rt][n.transactionId].bankAccount.selectedOption,creditCardId:e[rt][n.transactionId].creditCard.selectedOption,customer:l}},Jt=s(Be)`
579
+ display: flex;
580
+ align-items: center;
581
+ column-gap: ${o.sp1};
582
+ `,Kt=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
+ `,Mc=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
+ `,zc=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
+ `,Pc=s.div`
611
+ padding: ${o.sp2} ${o.sp4};
612
+ display: flex;
613
+ flex-direction: column;
614
+ row-gap: ${o.sp2};
615
+ `,Nc=s.div`
616
+ top: ${o.sp0};
617
+ left: ${o.sp0};
618
+ box-sizing: border-box;
619
+ `,Vc=s.div`
620
+ height: calc(100vh - 350px);
621
+ max-width: 99.9%;
622
+ padding: ${o.sp0};
623
+ `,Hc=s.div``,Uc=s.div`
624
+ position: relative;
625
+ width: auto;
626
+ height: 100%;
627
+ display: flex;
628
+ flex-direction: column;
629
+ row-gap: ${o.sp3};
630
+ `,Wc=s.div`
631
+ display: flex;
632
+ flex-direction: row;
633
+ align-items: center;
634
+ justify-content: space-between;
635
+ padding: 12px ${o.sp3};
636
+ background-color: ${e=>e.theme.colors.background};
637
+ border-radius: ${o.sp2};
638
+ `,zn=s.div`
639
+ display: flex;
640
+ flex-direction: row;
641
+ align-items: center;
642
+ column-gap: ${o.sp3};
643
+ `,qc=s.div`
644
+ width: 100%;
645
+ `,Jc=s.div`
646
+ display: flex;
647
+ flex-direction: row;
648
+ align-items: center;
649
+ column-gap: ${o.sp3};
650
+ `,Kc=s.div`
651
+ display: flex;
652
+ flex-direction: row;
653
+ align-items: center;
654
+ column-gap: ${o.sp6};
655
+ `,Gc=s.div`
656
+ display: flex;
657
+ flex-direction: row;
658
+ align-items: center;
659
+ column-gap: ${o.sp1};
660
+ `,zt=s(Dn)`
661
+ width: ${o.sp3};
662
+ height: ${o.sp3};
663
+ `,Yo=s(tr)`
664
+ width: ${o.sp3};
665
+ height: ${o.sp3};
666
+ color: ${e=>e.theme.colors.hero};
667
+ `,Zc=s.div`
668
+ display: flex;
669
+ flex-direction: column;
670
+ row-gap: ${o.sp3};
671
+ padding: ${o.sp0} 12px;
672
+ `,Yc=s(Be)`
673
+ color: ${e=>e.theme.colors.primary};
674
+
675
+ .matched-text {
676
+ font-weight: ${po.bold};
677
+ }
678
+ `,Xc=s.div`
679
+ display: flex;
680
+ align-items: center;
681
+ column-gap: ${o.sp2};
682
+ `,Qc=s.div`
683
+ display: flex;
684
+ flex-direction: column;
685
+ row-gap: ${o.sp2};
686
+ `,ed=s.div`
687
+ display: flex;
688
+ flex-direction: row;
689
+ align-items: center;
690
+ justify-content: space-between;
691
+ padding-bottom: ${o.sp2};
692
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
693
+ `,td=s(Be)`
694
+ color: ${e=>e.theme.colors.hero};
695
+ `,nd=s.div`
696
+ height: 100%;
697
+ display: flex;
698
+ justify-content: center;
699
+ align-items: center;
700
+ `,od=s.div`
701
+ border: 1px solid ${e=>e.theme.colors.grey2};
702
+ padding: ${o.sp0} ${o.sp1};
703
+ border-radius: ${o.sp1};
704
+ `,id=s(mt)`
705
+ color: ${e=>e.theme.colors.hero};
706
+ `,ad=s.div`
707
+ display: flex;
708
+ align-items: center;
709
+ column-gap: 20px;
710
+ cursor: pointer;
711
+ `,sd=s.div`
712
+ text-align: center;
713
+ padding: ${o.sp1} ${o.sp0};
714
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
715
+ `,rd=s(mt)`
716
+ color: ${e=>e.theme.colors.hero};
717
+ `,Ta=s(un)`
718
+ width: ${o.sp3};
719
+ height: ${o.sp3};
720
+ margin-right: ${o.sp1};
721
+ path {
722
+ stroke-width: 2;
723
+ }
724
+ `,ld=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:d,currentFooterFormId:c,entitySearchAutoCompleteActions:p,onUpdateReconcileTabLocalData:h,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:l,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:w,reconciliationTabsState:{reconcile:{uiState:{sortKey:j,sortOrder:C}}},selectedReconAccount:y}=e,I=w[d],{transactionFetchState:L}=y??{};return L?.fetchState==="In-Progress"||L?.fetchState==="Not-Started"?t.jsxs(Xo,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(cd,{children:yt.map(T=>t.jsx(Et,{width:T.loaderWidth,height:18},T.key))}),t.jsxs(ud,{children:[...Array(3).fill(0).map((T,A)=>t.jsx(dd,{children:yt.map(D=>t.jsx(Et,{width:D.loaderWidth,height:g[4]},D.key))},`${A}_${T}`))]})]}):t.jsx(Xo,{children:e.selectedTab==="reconcile"?t.jsx(gc,{selectedAccountId:d,currentFooterFormId:c,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:h,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:u,sortConfig:{sortKey:j,sortOrder:C},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:I?.accountReconEntity.transactionsToReconcile}):t.jsx(Oc,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[d]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[d].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:r,entitySearchAutoCompleteActions:p,onColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:d,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Xo=s.div`
725
+ width: 100%;
726
+ height: 100%;
727
+ `,cd=s.div`
728
+ display: flex;
729
+ justify-content: space-between;
730
+ padding: ${o.sp3} ${o.sp4};
731
+ column-gap: ${o.sp6};
732
+ `,dd=s.div`
733
+ display: flex;
734
+ justify-content: space-between;
735
+ padding: ${o.sp3} ${o.sp4};
736
+ background-color: ${e=>e.theme.colors.grey5};
737
+ border-radius: ${o.sp2};
738
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
739
+ box-shadow: ${e=>e.theme.colors.elevation1};
740
+ column-gap: ${o.sp6};
741
+ `,ud=s.div`
742
+ display: flex;
743
+ gap: ${o.sp3};
744
+ flex-direction: column;
745
+ `;function hd({title:e,config:n,nodeId:d}){return{children:[],id:d??pt("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:n}}}function pd({account:e,numOfBalances:n,title:d,isLastNode:c,config:p}){const h=pt("ac_group_report",[],d);return{children:[],id:h,isLastNode:c,reportElementData:{element:{kind:"ac_group_report",title:d,data:e,numOfBalances:n},config:p}}}function md({title:e,section:n,config:d,numOfBalances:c,nodeId:p}){return{children:[],id:p??pt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:c},config:d}}}function Qo({section:e,allAccountReconciliations:n,title:d,subTitle:c,isLastNode:p,isTitleRowRequired:h,config:i}){const l=pt("section",[],d),r={children:[],id:l,isLastNode:p,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:0},config:i}};if(h){const u=pt("title_string_only",[],d),x={children:[],id:u,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:d,data:e,numOfBalances:0},config:i}};r.children.push(x)}const m=md({title:c,section:e,config:i,numOfBalances:0});return r.children.push(m),e.accountIDs.forEach((u,x)=>{const f=n[u],w=pd({account:f,numOfBalances:0,title:f.accountReconEntity.account.accountName,isLastNode:x===e.accountIDs.length-1,config:i});r.children.push(w)}),r}function Aa({config:e,accountReconForSection:n,nodeId:d}){return{children:[],id:d??pt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}const gd=(e,n,d,c,p=!0)=>{const h=Aa({config:n,accountReconForSection:e.accountReconciliationBySectionID.assets}),i=[];i.push(h);const l=Array.isArray(d[c])?d[c]:[],{expenseAutomation:{accountRecon:{reconciliation:r}},common:{loading:m}}=Ie.getLocalizedStrings(),u=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",x=f=>f.filter(w=>!l.includes(w));if(u)[...Array(3)].forEach((f,w)=>{i.push(hd({title:`${w}+${m}`,config:n}))});else{const f=x(e.accountReconciliationBySectionID.assets.accountIDs),w=Qo({section:{...e.accountReconciliationBySectionID.assets,accountIDs:f},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.assets.title,subTitle:r.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(i.push(w),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const j=x(e.accountReconciliationBySectionID.liabilities.accountIDs),C=Qo({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:j},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.liabilities.title,subTitle:r.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});i.push(C)}}return{config:n,headerNodes:p?[h]:[],contentNodes:i}};function xd(e,n,d,c=!1){Object.assign(e.config,d);const p=Aa({config:d,accountReconForSection:n.accountReconciliationBySectionID.assets});return{config:d,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const co={wrapperPadding:new Q(g[2],g[2],g[2],g[8]),contentPaddingLeft:new Q(g[2],g[2],g[2],g[2]),contentPaddingRight:new Q(g[2],g[2],g[2],g[2])},fd=s.div`
746
+ display: flex;
747
+ height: 100%;
748
+ width: 100%;
749
+ justify-content: center;
750
+ align-items: center;
751
+ `,yd=s.div`
752
+ display: flex;
753
+ height: 100%;
754
+ min-height: 100%;
755
+ flex: 1 1 auto;
756
+ width: 100%;
757
+ justify-content: center;
758
+ padding-left: ${e=>co.wrapperPadding.valuePx(e.windowSize)};
759
+ background-color: ${e=>e.theme.colors.grey4};
760
+ `,Cd=s.div`
761
+ width: 100%;
762
+ height: 100%;
763
+ `,{common:wd}=Ie.getLocalizedStrings();function bd({reconciliation:e,companyId:n,onScroll:d,onReload:c,onReviewClicked:p,setOpenDrawerClicked:h,onFetchLinkTokenClick:i,onEstablishConnectionClick:l,onAddStatementClick:r}){const[m,u]=a.useState(void 0),[x,f]=a.useState(void 0),w=e.plaidConnectionDetails.link_account_no_microdeposit,j=e.plaidConnectionDetails.update_account,C=x==="update_account"?j:w,[y,I]=a.useState(C.linkToken??null),[L,T]=a.useState(!1),{useDynamicConfig:A}=Qi(),{configValue:D}=A(ea.accountReconGLAccountsConfig),b=a.useCallback(P=>{u(P),f("link_account_no_microdeposit")},[]),v=a.useCallback(P=>{const E=F.current.accountReconciliationsByAccountID[P]?.paymentAccountId;u(P),f("update_account"),i("update_account",E)},[]),$=a.useCallback(P=>{h(P)},[]),R=a.useRef(m),M=a.useRef(x),F=a.useRef(e);a.useEffect(()=>{R.current=m},[m]),a.useEffect(()=>{M.current=x},[x]),a.useEffect(()=>{F.current=e},[e]);const K=a.useCallback(P=>{l(P,R.current??"",M.current),u(void 0),f(void 0),T(!1)},[l]),V=a.useCallback((P,E)=>{P!=null&&console.log("Plaid Connection Error",P,E),u(void 0),f(void 0),T(!1)},[]),{open:H,ready:J}=Ts({token:y,onSuccess:K,onExit:V});a.useEffect(()=>{(q.zeniDate(new Date().toISOString()).isAfter(C.expiration)||C.linkToken==null)&&C.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[C.fetchStatus.fetchState]),a.useEffect(()=>{!L&&x!=null&&C.linkToken===y&&C.fetchStatus.fetchState==="Completed"&&J&&T(!0)},[J,y,C.fetchStatus.fetchState,C.linkToken,x,L]),a.useEffect(()=>{C.fetchStatus.fetchState==="Completed"&&C.linkToken!=null&&C.linkToken!==y&&I(C.linkToken)},[C.fetchStatus.fetchState,C.linkToken,y]),a.useEffect(()=>{L&&H()},[L,H]);const[G,O]=a.useState(void 0),[ie,ye]=a.useState(void 0),W=q.zeniDate("2025-03-31"),me=1,de="account_reconciliation",k=ke(),z=bt(),U=!0;return a.useEffect(()=>{const P={reportId:de,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:W,firstMonthOfFY:me,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:p,onConnectClicked:b,onReconnectClicked:v,onOpenDrawerClicked:$,onStatementAddClicked:r}};if(G==null||!ta(ie,e)){const E=gd(e,P,D,n,U);ye(e),O(E)}else{const E=xd(G,e,P,U);O(E)}},[e]),e.fetchStatus.fetchState==="Error"?t.jsx(fd,{children:t.jsx(As,{onReload:c,message:wd.errorMessage.somethingWentWrong})}):t.jsx(yd,{windowSize:k,children:G!=null?t.jsx(Cd,{windowSize:k,children:t.jsx(fa,{backgroundColor:new xo(z.colors.grey4),rootNodes:G,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:U,isStickyName:U},treeNodePadding:{left:co.contentPaddingLeft.value(k),right:co.contentPaddingRight.value(k)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:d})}):null})}function vd({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:d,reconciliation:c,companyId:p,onReconTabColumnSortConfigChanged:h,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,onAddStatementClick:w,onReconReviewTabColumnSortConfigChanged:j,onSaveReconciliation:C,onSaveReconciliationReview:y,setOpenDrawerClicked:I,onReconMatchedTransactionClick:L,onReconListPageScroll:T}){return c.selectedAccountId==null?t.jsx(bd,{companyId:p,onScroll:T,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,setOpenDrawerClicked:I,onAddStatementClick:w}):t.jsx(ld,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:h,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:j,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:C,onSaveReconciliationReview:y,onReconMatchedTransactionClick:L})}function Sd({accountAndClassReport:e,numOfBalances:n,title:d,isLastNode:c,isFirstNode:p,config:h,parentNodeIDs:i,ancestorMetadata:l}){let r="";return e.accountBase&&e.classBase?r=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?r=e.accountBase.accountId:e.classBase&&(r=e.classBase.classId),{children:[],id:pt("flux_vendor_account_class_row",i,r),isLastNode:c,isFirstNode:p,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:d,data:e,metadata:l,numOfBalances:n},config:h}}}function jd({vendorView:e,numOfBalances:n,title:d,isLastNode:c,config:p,parentNodeIDs:h}){const i=pt("flux_vendor_row",h,e.vendor.id),l={children:[],id:i,isLastNode:c,reportElementData:{element:{kind:"flux_vendor_row",title:d,data:e,numOfBalances:n},config:p}},r=e.vendorAccountsAndClasses;return l.children=r.map((m,u)=>Sd({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:p,isLastNode:u===r.length-1,isFirstNode:u===0,parentNodeIDs:[...h,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:u===r.length-1,isFirstNode:u===0,name:m.accountBase?.accountName},isVendorLastChild:c,vendorId:e.vendor.id}})),l}function kd({section:e,numOfBalances:n,title:d,isLastNode:c,config:p}){const h=e.sectionId,i={children:[],id:h,isLastNode:c,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:n,sectionType:e.sectionId},config:p}},l=(e.vendors??[]).map((r,m)=>jd({vendorView:r,numOfBalances:n,title:r.vendor.name,isLastNode:m===e.vendors.length-1,config:p,parentNodeIDs:[h]}));return i.children.push(...l),i}function Id({title:e,balances:n,config:d,nodeId:c}){return{children:[],id:c??pt("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:n,numOfBalances:n.length},config:d}}}function $d({title:e,data:n,isLastNode:d,config:c,numOfBalances:p}){const h=pt("total",[],e);return{children:[],id:h,isLastNode:d,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:p},config:c}}}const{common:wn,expenseAutomation:{fluxAnalysis:Ld}}=Ie.getLocalizedStrings(),Td=(e,n,d=!0)=>{const c=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,p=e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],h=ya({balances:p,config:n}),i=[],l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(l===!0)i.push(Id({title:`${wn.loading}`,balances:p,config:n})),[...Array(10)].forEach((m,u)=>{i.push(Oo({title:`${u}+${wn.loading}`,balances:p,config:n}))});else{if(i.push(h),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const x=en(u.balancesByMonth);i.push(kd({section:{sectionId:m,reportId:"flux_analysis_operating_expense",balances:x,vendors:u.vendors,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:e.currency},numOfBalances:c,title:Ad(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?en(e.totalBalancesAndVariance.balancesByMonth):[],u=$d({title:wn.texts.total,data:{balances:m,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:c});i.push(u)}r===!0&&[...Array(1)].forEach((m,u)=>{i.push(Oo({title:`${u}+${wn.loading}`,balances:p,config:n}))})}return{config:n,headerNodes:d&&!l?[h]:[],contentNodes:i}},Ad=e=>Ld.sectionTitle[e];function Ed(e,n,d,c=!0){Object.assign(e.config,n);const p=Rd(d),h=ya({balances:p,config:n});return{config:n,headerNodes:c?[h]:[],contentNodes:[h,...e.contentNodes.slice(1)]}}const Rd=e=>e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],uo={contentPaddingLeft:new Q(g[0],g[0],g[0]),contentPaddingRight:new Q(g[3],g[3],g[8]),wrapperPadding:new Q(g[3],g[3],g[8])},Dd=s.div`
764
+ display: flex;
765
+ position: sticky;
766
+ width: 100%;
767
+ justify-content: center;
768
+ padding-top: ${e=>uo.wrapperPadding.valuePx(e.windowSize)};
769
+ padding-left: 20px;
770
+ background-color: ${e=>e.theme.colors.grey4};
771
+ `,Od=s.div`
772
+ width: 100%;
773
+ height: calc(100vh - ${o.sp11});
774
+ `,Fd=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:p,onSortOrderChanged:h,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=ke(),u=bt(),[x,f]=a.useState(null),[w,j]=a.useState(null),[C,y]=a.useState(null),I=q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[L,T]=a.useState(!1),A=Ao(I),D=Ao(n.refreshStatus.fetchState),b=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},v=()=>Object.keys(n.uiState.collapsableStatus).reduce((V,H)=>(V[H]=n.uiState.collapsableStatus[H],V),{}),$=a.useCallback(V=>{const H=!(n.uiState.collapsableStatus[V]??!0);i({...n.uiState.collapsableStatus,[V]:H})},[n.uiState.collapsableStatus,i]),R=a.useCallback((V,H)=>{let J=n.reviewOperatingExpensesIds;const G=[];let O=n.selectedSectionIds;const ie=n.sections[V].vendors;G.push(...ie.map(W=>W.fluxAnalysisEntityId));let ye=xa-J.length;H?(G.forEach(W=>{!J.includes(W)&&ye>0&&(J=[...J,W],ye--)}),O=[...O,V]):(J=J.filter(W=>!G.includes(W)),O=O.filter(W=>W!==V)),c(J),p(O)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,p]),M=a.useCallback(V=>{const H=n.uiState.collapsableStatus[V]===!1;V==="generalExpense"&&!H&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),$(V)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,$]),F=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,K=V=>V<F;return a.useEffect(()=>{const V={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:T,onSectionRowClick:M,updateNodeCollapsableStatus:$,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:R,onSortOrderChanged:h}};if(x==null||!ta(w,n)){const H=Td(n,V,!0);j(n),f(H)}else{const H=Ed(x,V,n,!0);f(H)}},[n,w,d,R,M,h,$,c]),t.jsx(Dd,{windowSize:m,children:t.jsx(Od,{children:x?t.jsx(fa,{backgroundColor:new xo(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:uo.contentPaddingLeft.value(m),right:uo.contentPaddingRight.value(m)},nodeOpenStatus:v(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:K,itemCount:F,loadMoreItems:b},variableNodeHeightTree:{prevFetchState:A??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:L,setIsSortApplied:T,reducedFetchState:q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:D??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:C,setHoveredParentId:y}}):null})})},Bd="expenseAutomationFluxPage",{reports:{common:_d}}=Ie.getLocalizedStrings(),Md=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:d,markAsReview:c,onReloadPage:p,setCurrentFooterFormId:h,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:l,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:x})=>{const{fetchStatus:f,reviewOperatingExpensesIds:w,uiState:j}=n,C=a.useRef(null),y=a.useRef(!1),I=Ht({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:zd(w)}),L=ke();a.useEffect(()=>()=>{h("expenseAutomationPage")},[h]),a.useEffect(()=>{y.current&&C?.current?.scrollLeft!=null&&j.scrollPosition?.scrollLeft!==C.current.scrollLeft&&j.scrollPosition!=null&&r({scrollPosition:{scrollTop:j.scrollPosition?.scrollTop,scrollLeft:C.current.scrollLeft}})},[j.scrollPosition?.scrollLeft,C.current?.scrollLeft,j.scrollPosition,r]),a.useEffect(()=>{h(w.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[w,h]);const T=v=>{m(v)},A=v=>{u(e,v)},D=(v,$)=>{r({sortOrder:v,sortKey:$}),d(),x(e,null,!1)},b=()=>{const v=Ea(n.sections,w);c(w,v===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(Nd,{children:[t.jsx(Vd,{onClick:p,children:t.jsx(mo,{})}),t.jsx(Hd,{children:_d.failed})]});{const v=R=>{r({collapsableStatus:R})},$=R=>{x(e,R,!0)};return t.jsx(Ut,{...I,children:t.jsx("form",{id:as(Bd),onSubmit:I.handleSubmit(b),style:{height:"100%",width:"100%"},children:t.jsx(Pd,{windowSize:L,children:t.jsx(Fd,{fluxView:n,handleRedirectToVendorDetailPage:T,onSortOrderChanged:D,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:v,fetchReimbursementView:$,updateSectionIdsForReview:l,fetchGeneralExpenseView:A,reportId:"flux_analysis_operating_expense"})})})})}},Ea=(e,n)=>{const d=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(p=>p.status==="Pending Review");let c;return d.forEach(p=>{n.includes(p.fluxAnalysisEntityId)&&(c=!0)}),c},zd=e=>({fluxAnalysisRowIds:e}),Pd=s.div`
775
+ display: flex;
776
+ flex: 1 1 auto;
777
+ min-height: 100%;
778
+ flex-direction: column;
779
+ background-color: ${e=>e.theme.colors.grey4};
780
+ padding: ${o.sp0};
781
+ gap: 2px;
782
+ height: 100%;
783
+ .flux-vendor-name-sticky,
784
+ .flux-vendor-header-sticky,
785
+ .flux-section-name-container,
786
+ .flux-class-and-account-value-container,
787
+ .flux-vendor-name-container,
788
+ .flux-total-row {
789
+ border-right: 1px solid transparent;
790
+ }
791
+ &:hover {
792
+ .flux-vendor-name-sticky,
793
+ .flux-vendor-header-sticky,
794
+ .flux-section-name-container,
795
+ .flux-class-and-account-value-container,
796
+ .flux-vendor-name-container,
797
+ .flux-total-row {
798
+ border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
799
+ }
800
+ }
801
+ `,Nd=s.div`
802
+ display: flex;
803
+ width: 100%;
804
+ height: 100vh;
805
+ flex-direction: column;
806
+ justify-content: center;
807
+ align-items: center;
808
+ `,Vd=s.div`
809
+ height: 96px;
810
+ width: 96px;
811
+ background: ${e=>e.theme.colors.background};
812
+ border-radius: 50%;
813
+ cursor: pointer;
814
+ & svg {
815
+ margin: ${o.sp5};
816
+ color: ${e=>e.theme.colors.grey1};
817
+ }
818
+ &:hover {
819
+ & svg {
820
+ color: ${e=>e.theme.colors.primary};
821
+ }
822
+ }
823
+ `,Hd=s(vt)`
824
+ margin-top: ${o.sp3};
825
+ color: ${e=>e.theme.colors.hero};
826
+ `,Ud="expenseAutomationJEAccountSettingsPage",Ra="vendorsAccountSection",Wd=e=>`${e}_form`;function qd({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:d,setIsJeAccountSettingsOpened:c,onJeAccountSettingsChange:p,setResetJeAccountSettingsForm:h,setCurrentFooterFormId:i}){const l=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=a.useMemo(()=>At(e.prepaidExpensesAccountHierarchy,l,"Accounts"),[e.prepaidExpensesAccountHierarchy,l]),x=a.useMemo(()=>At(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),f=a.useMemo(()=>At(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),w=a.useMemo(()=>Kd(e,u,x,f),[e,u,x,f]),j=Ht({mode:"all",reValidateMode:"onBlur",defaultValues:w,values:w,resetOptions:{keepDefaultValues:!0}}),C=j.handleSubmit(I=>{d(I)}),y=async I=>{p(I)};return a.useEffect(()=>{const I=j.watch(L=>{L!=null&&hn(()=>y(L))});return()=>{I.unsubscribe()}}),a.useEffect(()=>(h(()=>j.reset),c(!0),()=>{i("expenseAutomationPage"),c(!1)}),[]),a.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:I,previousPrepaidExpensesAccount:L,selectedFixedAssetsAccountIds:T,previousFixedAssetsAccount:A,selectedAccruedExpensesAccountIds:D,previousAccruedExpensesAccount:b}=e.accountSettingsLocalData,v=On(I,L)||On(T,A)||On(D,b);v===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):v===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(Jd,{children:t.jsx(Ut,{...j,children:t.jsx("form",{id:Wd(Ud),onSubmit:C,children:t.jsx(ar,{showTitle:!1,sectionId:Ra,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 Jd=s.div`
827
+ padding-top: ${o.sp3};
828
+ display: flex;
829
+ align-items: center;
830
+ min-height: 100%;
831
+ flex-direction: column;
832
+ width: 100%;
833
+ background-color: ${e=>e.theme.colors.grey4};
834
+ `,Kd=(e,n,d,c)=>{const p=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),h=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),l=p.map(u=>u.qboId).filter(u=>u!=null),r=h.map(u=>u.qboId).filter(u=>u!=null),m=i.map(u=>u.qboId).filter(u=>u!=null);return{[Ra]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:It},common:{currency:bn,review:Gd,ignore:Zd,strings:{hyphen:xt},texts:vn},dateFormat:Yd,timeframe:{month:ei}}=Ie.getLocalizedStrings(),Xd=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:p})=>t.jsxs(ko,{onClick:h=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(h,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":_("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.vendor}),t.jsxs(oe,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(sa,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:e.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(Je,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.vendor.name??xt})})]})]}),t.jsxs(Y,{children:[t.jsx(te,{children:It.scheduleHeaders.scheduleCategory}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(Je,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.baseTransaction.account.accountName??xt})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:It.scheduleHeaders.startMonth}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:e.startDate?.format(Yd.visual.MMMCommaYYYYFormat)??xt})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:It.scheduleHeaders.period}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ei.slice(0,-1):ei}`:xt})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:vn.totalAmount}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Je,{children:Ke("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??xt}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??xt})})})]})]}),t.jsxs(So,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.category}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(Je,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeDebit.account?.accountName??xt})})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:vn.classText}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(Je,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeDebit.accountingClass?.className??xt})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:It.scheduleHeaders.type}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(Sa,{children:It.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:It.scheduleHeaders.accumulatedCategory}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(Je,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:e.jeCredit.account?.accountName??xt})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(dn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&p(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":_("je-schedule-draft-component-review-button",e.jeScheduleId),label:Gd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:lo}}),t.jsx(dn,{"data-testid":_("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Zd,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&d(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:lo}})]})]}),t.jsxs(vc,{children:[t.jsx(Qd,{}),t.jsx(eu,{children:It.aiAccountant}),t.jsx(tu,{children:It.zeniGPTText})]})]}),Qd=s(un)`
835
+ height: ${o.sp3};
836
+ width: ${o.sp3};
837
+ margin-right: ${o.sp1};
838
+ path {
839
+ stroke-width: 2;
840
+ }
841
+ `,eu=s(na)`
842
+ color: ${e=>e.theme.colors.brandColorSapphire};
843
+ `,tu=s(Be)`
844
+ color: ${e=>e.theme.colors.primary};
845
+ `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ti}}},expenseAutomation:{jeSchedules:_e},common:{currency:ct,retry:nu,strings:{hyphen:qe,empty:ni},texts:Gt},dateFormat:oi}=Ie.getLocalizedStrings(),{common:ou,timeframe:{month:ii}}=Ie.getLocalizedStrings(),nt="jeSchedulePage",ai=e=>`${e}_form`,Lo=(e,n)=>`${e}.${n}`,si=Lo(nt,"vendor"),ri=Lo(nt,"scheduleExpenseCategory"),li=Lo(nt,"accumulatedDepreciationCategory"),iu=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:d,allClassList:c,allDepAccountGroupedOptions:p,allDepAccountList:h,draft:i,localData:l,postStatus:r,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:f,onFormDataChange:w,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:y,updatedVendor:I}=l,L={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},T=a.useRef(),A=Ht({mode:"all",reValidateMode:"onChange",defaultValues:ci(l,e,d,p,n,c,h,x.entityAutoCompleteView),values:ci(l,e,d,p,n,c,h,x.entityAutoCompleteView)}),D={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},b={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},v=(i?.scheduledJournalEntry.error??[]).every(E=>{const N=L[E];return!(l!=null&&N&&(N==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||N==="updatedCategoryId"&&l.updatedCategoryId==null||N==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),$=async(E,N)=>{if(E!=null){const ee=N[nt],{scheduledJournalEntryID:B,vendor:Z}=ee;if(E.includes("vendor")){const ae=Z?.defaultOptions.map(se=>se.value);if(Z?.selectedOption!=null&&ae?.includes(Z.selectedOption)!==!0){const se=x.entityAutoCompleteView.vendor.find(ve=>ve.id===Z.selectedOption);se!=null&&A.setValue(`${nt}.vendor.defaultOptions`,[{label:se.name??ou.strings.empty,value:se.id}])}else Z?.selectedOption==null&&Z?.defaultOptions.length!==0&&A.setValue(`${nt}.vendor`,{selectedOption:void 0,defaultOptions:[]})}w(B,{...ee,vendor:Z})}};a.useEffect(()=>{const E=A.watch((N,{name:ee})=>{ee!=null&&N!=null&&hn(()=>$(ee,N))});return()=>{E.unsubscribe()}}),a.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&T.current?.(ra(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const R=A.handleSubmit(()=>{j(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),M=E=>n.filter(N=>N.qboId===E)[0]?.qboId,F=E=>h.filter(N=>N.qboId===E)[0]?.qboId,K=E=>[m.expense?.qboId,m.income?.qboId].includes(E),V=A.watch("jeSchedulePage.vendor"),H=(E,N)=>{u.onAutoCompleteInputChange?.(E,"vendor"),T.current=N},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,G=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,O=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,ie=i.vendor.name.split("(deleted)")[0]?.toString(),ye=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ni,W=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ni,[me,de]=a.useState(G===!0&&y==null),[k,z]=a.useState(O===!0&&C==null),[U,P]=a.useState(J&&(I?.id==null||I?.id==""));return a.useEffect(()=>{me===!1&&l.updatedCategoryId==null&&A.setFocus(ri),k===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&A.setFocus(li),U===!1&&l.updatedVendor?.id==null&&A.setFocus(si)},[me,k,U,l,A]),t.jsx(Ut,{...A,children:t.jsx("form",{style:{width:"100%"},id:ai(`${nt}_${i.jeScheduleId}`),onSubmit:R,children:t.jsx(ko,{showBorder:v,onClick:E=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(E,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":_("je-schedule-resolve-component-schedule",`${nt}_${i.jeScheduleId}`),children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[J===!0?t.jsx(Y,{style:{width:ue.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:U===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(dt,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.vendor,t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:_e.tooltipText.missingVendor.replace("_deleted_vendor_",ie)}),children:t.jsx(Nn,{})})]}),t.jsx(oe,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:U===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),P(!1)},"data-testid":_("je-schedule-resolve-component-add-vendor-button",`${nt}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:tt.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pn,{}),ti]}):t.jsx(ro,{name:si,placeholder:ti,valueToId:E=>E,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:H})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:Gt.vendor}),t.jsx(oe,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(sa,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:i.vendor.name}),t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(Je,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.vendor.name??qe})})]})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:_e.scheduleHeaders.scheduleCategory}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(Je,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.baseTransaction.account.accountName??qe})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.startMonth}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:i.startDate?.format(oi.visual.MMMCommaYYYYFormat)??qe})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:_e.scheduleHeaders.period}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?ii.slice(0,-1):ii}`:qe})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:Gt.totalAmount}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",title:t.jsx(Je,{children:Ke("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,ct.currencyCode,ct.currencySymbol))??qe}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,ct.currencyCode,ct.currencySymbol))??qe})})})]})]}),t.jsxs(So,{children:[G===!0?t.jsx(Y,{showHoverEffect:G===!0,forceHoverEffect:l?.updatedCategoryId==null&&me===!1,style:{padding:"unset",justifyContent:"center",width:ue.COLUMN_ONE},children:t.jsxs(dt,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.category,G===!0?t.jsx(we,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:_e.tooltipText.missingCategory.replace("_deleted_category_",ye)}),children:t.jsx(Nn,{})}):null]}),t.jsx(oe,{className:"item-value-container",style:{marginLeft:G===!0?-2:0},children:G===!0?t.jsx(t.Fragment,{children:me===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),de(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:tt.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-category-button",`${nt}_${i.jeScheduleId}`),children:[t.jsx(Pn,{}),_e.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,name:ri,placeholder:_e.addCategory,valueToId:E=>M(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:K,customStyleConfig:D})}):t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Je,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.category}),t.jsx(oe,{className:"item-value-container",children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Je,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.account?.accountName??qe})})})]}),t.jsxs(Y,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.classText}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(Je,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeDebit.accountingClass?.className??qe})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.type}),t.jsx(oe,{className:"test",children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(Sa,{children:_e.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:O===!0?t.jsx(Y,{style:{width:ue.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:O,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&k===!1,children:t.jsxs(dt,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[_e.scheduleHeaders.accumulatedCategory,O===!0?t.jsx(we,{display:"flex",placement:"top-end",title:t.jsx(kn,{children:_e.tooltipText.missingDepCategory.replace("_deleted_dep_category_",W)}),children:t.jsx(Nn,{})}):null]}),t.jsx(oe,{className:"item-value-container",style:{marginLeft:O===!0?-2:0},children:O===!0?t.jsx(t.Fragment,{children:k===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),z(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:tt.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-depreciation-category-button",`${nt}_${i.jeScheduleId}`),children:[t.jsx(Pn,{}),_e.addDepCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:li,placeholder:_e.addDepCategory,valueToId:E=>F(E),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:b,disableCurrentOption:K})}):t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Je,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:_e.scheduleHeaders.accumulatedCategory}),t.jsx(we,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Je,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ce,{className:"highlight",children:i.jeCredit.account?.accountName??qe})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]}),t.jsxs(wc,{children:[t.jsx(Y,{style:{padding:"unset",width:ue.COLUMN_ONE},children:t.jsxs(bc,{children:[t.jsx(te,{children:_e.scheduleHeaders.jePostingDate}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(oi.visual.MMMDCommaYYFormat)??qe})})]})}),t.jsxs(Y,{children:[t.jsx(te,{children:_e.scheduleHeaders.balance}),t.jsx(oe,{children:t.jsx(we,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Je,{children:Ke("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,ct.currencyCode,ct.currencySymbol))??qe}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,ct.currencyCode,ct.currencySymbol))??qe})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.months}),t.jsx(oe,{children:t.jsxs(ce,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:_e.scheduleHeaders.amountForMonth}),t.jsx(oe,{children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i.scheduledJournalEntry.amount?.amount??0,ct.currencyCode,ct.currencySymbol))??qe})})]})]})]}),t.jsx(Io,{children:t.jsx(dn,{form:ai(`${nt}_${i.jeScheduleId}`),label:nu,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!v,style:{minWidth:lo}})})]})})})})},ci=(e,n,d,c,p,h,i,l)=>{const r=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?l.vendor.find(y=>y.zeniId===m.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,w=r!=null?p.find(y=>y.accountId===r):void 0,j=x!=null?i.find(y=>y.accountId===x):void 0,C=f!=null?h.find(y=>y.classId===f):void 0;return{[nt]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:w?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:ha(l,u??m)},scheduleClass:{selectedOption:C?.classId,allOptions:d}}}},Pn=s(Dn)`
846
+ width: ${o.sp3};
847
+ height: ${o.sp3};
848
+ `,Nn=s(pa)`
849
+ width: 12px;
850
+ height: 12px;
851
+ color: ${tt.important};
852
+ `;function Da(){return t.jsx(Ca,{children:t.jsxs(wa,{children:[t.jsxs(ba,{children:[t.jsx(Fe,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]}),t.jsxs(va,{children:[t.jsx(Fe,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]})]})})}const di=()=>t.jsx(ko,{style:{minWidth:1088},children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Fe,{width:g[10],height:14})}),t.jsxs(oe,{style:{gap:g[2]},children:[t.jsx(yo,{height:g[4],width:g[4]}),t.jsx(Fe,{height:g[4],width:g[10]})]})]}),t.jsxs(Y,{children:[t.jsx(te,{children:t.jsx(Fe,{width:101,height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:203})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Fe,{width:g[9],height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:71})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:t.jsx(Fe,{width:107,height:14})}),t.jsx(Fe,{height:g[4],width:68})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:t.jsx(Fe,{width:73,height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:49})})]})]}),t.jsxs(So,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Fe,{width:49,height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:158})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:88})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(oe,{children:t.jsx(Fe,{height:g[4],width:100})})]}),t.jsx(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),Fe=s(Et)`
853
+ border-radius: ${o.sp1};
854
+ `,{common:{create:au,resolve:su}}=Ie.getLocalizedStrings();function ru({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:d,onJESchedulesFormDataChange:c,onPostJESchedule:p,ignoreRecommendedJeSchedule:h,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:l}){const r=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,x=e.ignoreStatusById,f=e.resolveSchedules,w=e.uncategorizedAccounts,{allAccountList:j,allClassList:C,allDepreciationAccountList:y}=e,I=At(e.accountListNestedAccountHierarchy),L=At(e.allDepreciationAccountListNestedAccountHierarchy),T=jn(e.classListNestedAccountHierarchy),A=(b,v,$)=>{d(b,v,$)},D=(b,v,$,R)=>{let M=b.target;for(;M;){if(M.classList.contains("item-value-container")||M.classList.contains("hover-background")||M.classList.contains("auto-complete-single-select-field__input")||M.classList.contains("auto-complete-single-select-field__option")||M.classList.contains("grouped-single-select-field__input")||M.classList.contains("grouped-single-select-field__menu"))return;M=M.parentElement}d(v,$,R)};return a.useEffect(()=>{if(f.length!==0){for(const b in m)if(Object.prototype.hasOwnProperty.call(m,b)){const{updatedAccumulatedDepreciationCategoryID:v,updatedCategoryId:$,updatedVendor:R}=m[b];if(v!=null||$!=null||R!=null&&R?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else f.length===0&&l("expenseAutomationPage")}),a.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Da,{}):r.length!==0||f.length!==0?t.jsx(Ca,{children:t.jsxs(wa,{children:[r.length>0?t.jsxs(ba,{children:[t.jsxs(hi,{children:[au,t.jsx(pi,{isCircular:r.length<10,children:t.jsx(mi,{children:r.length})})]}),t.jsx(ui,{children:r.map((b,v)=>t.jsx(Xd,{ignoreStatus:x[b.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:h,onReviewClickHandler:A,jeScheduleClickHandler:D,draft:b},`${v}_${b.jeScheduleId}`))})]}):null,f.length>0?t.jsxs(va,{children:[t.jsxs(hi,{children:[su,t.jsx(pi,{isCircular:f.length<10,children:t.jsx(mi,{children:f.length})})]}),t.jsx(ui,{children:f.map((b,v)=>m[b.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(iu,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:D,onPostJESchedule:p,uncategorizedAccounts:w,allAccountList:j,allAccountGroupedOptions:I,allClassGroupedOptions:T,allClassList:C,allDepAccountGroupedOptions:L,allDepAccountList:y,draft:b,postStatus:u[b.scheduledJournalEntry.scheduledJournalEntryID],localData:m[b.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${v}_${b.jeScheduleTransactionKey}`))})]}):null]})}):null}const ui=s.div`
855
+ display: flex;
856
+ flex-direction: column;
857
+ gap: ${o.sp4};
858
+ min-width: 1088px;
859
+ `,hi=s(Ui)`
860
+ color: ${e=>e.theme.colors.primary};
861
+ padding: ${o.sp2} ${o.sp0};
862
+ display: flex;
863
+ align-items: center;
864
+ gap: ${o.sp1};
865
+ `,pi=s.div`
866
+ border-radius: ${o.sp12};
867
+ display: flex;
868
+ justify-content: center;
869
+ border: ${e=>`1px solid ${e.theme.colors.grey1}`};
870
+ color: ${e=>e.theme.colors.hero};
871
+ ${e=>e.isCircular?et`
872
+ height: ${o.sp3};
873
+ width: ${o.sp3};
874
+ padding: ${o.sp0};
875
+ `:et`
876
+ height: 18px;
877
+ padding: ${zs.padding};
878
+ `}
879
+ `,mi=s(Ps)`
880
+ color: ${e=>e.theme.colors.hero};
881
+ height: 100%;
882
+ width: 100%;
883
+ display: flex;
884
+ align-items: center;
885
+ justify-content: center;
886
+ color: inherit;
887
+ `;function lu({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:d,vendorSearchAutoCompleteData:c,onJESchedulesFormDataChange:p,onPostJESchedule:h,handleJeScheduleClick:i,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:x,setIsJeAccountSettingsOpened:f}){const{jeSchedules:w}=e;return w.fetchState==="In-Progress"||w.accountSettingsView.fetchState==="In-Progress"?t.jsx(Da,{}):w.accountSettingsView.fetchState==="Completed"&&w.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&w.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(qd,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:d,currentFooterFormId:n,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,accountSettings:w.accountSettingsView,setCurrentFooterFormId:x}):w.fetchState==="Completed"&&w.draftSchedules.length===0&&w.resolveSchedules.length===0?t.jsx(wt,{tab:e.currentSelectedView,title:He(e.currentSelectedView).allDoneText.title,subTitle:He(e.currentSelectedView).allDoneText.subTitle}):w.fetchState==="Completed"?t.jsx(ru,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:p,onPostJESchedule:h,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:c}):null}const cu=72,Oa=50,du=1,uu=["receipts"],gi=e=>q.stringToUnionStrict(e,uu),{common:{texts:{vendor:hu,amount:pu,receipts:mu,category:gu,classText:xu,date:fu}}}=Ie.getLocalizedStrings(),yu={key:"vendor",value:hu,sortOrder:"ascending",width:new Q(18,18)},Cu={key:"category",value:gu,sortOrder:"ascending",width:new Q(18,18)},wu={key:"class",value:xu,sortOrder:"ascending",width:new Q(18,18)},bu={key:"date",value:fu,sortOrder:"descending",width:new Q(11,11)},vu={key:"receipts",value:mu,sortOrder:"descending",width:new Q(6,6)},Su={key:"amount",value:pu,sortOrder:"ascending",width:new Q(10,10)},ut=[yu,Cu,wu,bu,vu,Su],Vn={sortKey:"date",sortOrder:"descending"},xi={containerPaddingLeftRight:new Q(g[3],g[4])},Fa=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[p,h]=a.useState(ut);a.useEffect(()=>{const r=[...p];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";h(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{gi(r.key)==null&&i(q.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return t.jsx(ju,{windowSize:c,children:p.map((r,m)=>{const u=n!=null||gi(r.key)!=null;return t.jsxs(ku,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:u,windowSize:c,isLastItem:m===p.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(Au,{onClick:()=>u?null:l(r),isSortDisabled:u,children:[t.jsx(Eu,{children:r.value}),u?null:t.jsx($u,{sortConfig:e,headerData:r,children:t.jsx(Tu,{})})]}),u?null:t.jsx(Lu,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Vn.sortKey,children:t.jsx(Iu,{onClick:()=>{u||i(Vn.sortKey,Vn.sortOrder)},"data-testid":_("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},ju=s.div`
888
+ top: ${o.sp0};
889
+ left: ${o.sp0};
890
+ height: ${Oa}px;
891
+ z-index: 2;
892
+ display: flex;
893
+ align-items: center;
894
+ justify-content: space-between;
895
+ box-sizing: border-box;
896
+ background-color: ${e=>e.theme.colors.grey4};
897
+ position: sticky;
898
+ padding-left: ${e=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
899
+ padding-right: ${e=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
900
+ `,ku=s.div`
901
+ color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
902
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
903
+ max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
904
+ padding-left: ${o.sp0};
905
+ left: ${o.sp0};
906
+ display: flex;
907
+ align-items: center;
908
+ gap: 6px;
909
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
910
+ position: static;
911
+ z-index: 0;
912
+ box-sizing: border-box;
913
+ `,Iu=s(Rn)`
914
+ width: ${o.sp2};
915
+ height: ${o.sp2};
916
+ cursor: pointer;
917
+ `,$u=s.div`
918
+ display: flex;
919
+ align-items: center;
920
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
+ `,Lu=s.div`
922
+ display: ${e=>e.isVisible?"flex":"none"};
923
+ align-items: center;
924
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
925
+ &:hover {
926
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
927
+ }
928
+ `,Tu=s(En)`
929
+ width: ${o.sp2};
930
+ height: ${o.sp2};
931
+ `,Au=s.div`
932
+ display: flex;
933
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
934
+ gap: 6px;
935
+ &:hover {
936
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
937
+ }
938
+ `,Eu=s(mt)`
939
+ display: flex;
940
+ `,{common:{strings:{underscore:Ba,hyphen:Hn,empty:fi},documents:{singleFileUploadSizeErrorMessage:Ru,multipleFileUploadSizeErrorMessage:Du},snackBar:{missing_receipts_attachment:{failed:Ou}},tooltips:{addMissingReceipt:Fu}},dateFormat:Bu}=Ie.getLocalizedStrings(),Sn={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[2],g[3])},_u=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:d,authParams:c,selectedPeriod:p,onUploadReceiptComplete:h,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:r})=>{const m=ke(),u=a.useRef(null),x=a.useCallback(async(j,C,y,I,L)=>{l(e.id,"In-Progress"),await sr(j,C,y,I,L).then(({uploadResponse:T,errorMessage:A})=>{T!=null?T.transaction.attachments!=null&&(r(T.transaction),setTimeout(()=>h(T.transaction,p),2e3)):l(e.id,"Error",{code:500,message:Ou},A)}).catch(T=>{l(e.id,"Error",T)})},[e.id,p,r,h,l]),f=a.useCallback(j=>{if(j.target.files!=null){const C=j.target.files,y=[],I=[];for(let L=0;L<C.length;L++)y.push(C[L].name),I.push(C[L]);x(d,c,C[0],C[0].name,{id:e.id,type:e.type})}},[c,x,d,e.id,e.type]),w=a.useCallback(()=>{u.current?.click()},[u]);return t.jsx(_a,{windowSize:m,onClick:()=>i(e.id,e.type),"data-testid":_("missing-receipts-list-row",e.id),children:ut.map((j,C)=>{const y=`${e.id}${Ba}${j.key}`;switch(j.key){case"vendor":default:return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsxs(In,{children:[t.jsx(aa,{photoUrl:e.vendorId!=null?e.logo?.toString()??fi:fi,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Uu,{children:t.jsx(cn,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(ot,{text:e.vendorName??e.description,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})]})})},y);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:Hn,L=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Hn,T=j.key==="category"?I:L;return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(In,{children:T!==Hn?t.jsx(ot,{text:T,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Hu,{children:T})})})},y)}case"date":return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(In,{children:t.jsx(ot,{text:e.date.format(Bu.visual.MMMDCommaYYYYformat),itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})})},y);case"receipts":return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ut.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Xi,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(Ms,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Vu,{onClick:I=>{I.stopPropagation()},children:t.jsx(Yi,{"data-testid":_("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Fn,multiple:!1,acceptableTypes:[...q.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:f,onFileSizeError:(I,L)=>{I&&l(e.id,"Error",{code:500,message:L===!0?Ru.replace("__maxFileSize__",Eo(Fn,0)):Du.replace("__maxFileSize__",Eo(Fn,0))})}})}),t.jsx(we,{display:"flex",placement:"bottom",title:Fu,enterDelay:600,children:t.jsx(Nu,{onClick:I=>{I.stopPropagation(),w()}})})]})})},y);case"amount":{const I=Ke("0,0.[00]",e.amount);return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(ot,{text:e.amount.amount<0?`-${I}`:I,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})},y)}}})})},Mu=()=>{const e=ke(),n=a.useRef(null),[d,c]=a.useState(0);return a.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(_a,{windowSize:e,ref:n,children:ut.map((p,h)=>{const i=`${h}${Ba}${p.key}`;switch(p.key){case"vendor":return t.jsx(Pt,{windowSize:e,wrapperWidth:p.width,children:t.jsx(Nt,{windowSize:e,isLastItem:h===ut.length-1,children:t.jsxs(In,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Et,{width:d*p.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(Pt,{windowSize:e,wrapperWidth:p.width,children:t.jsx(Nt,{windowSize:e,isLastItem:h===ut.length-1,children:t.jsx(Et,{width:d*p.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},_a=s.div`
941
+ display: flex;
942
+ background-color: ${e=>e.theme.colors.grey5};
943
+ padding-left: ${e=>Sn.containerPaddingLeftRight.valuePx(e.windowSize)};
944
+ padding-right: ${e=>Sn.containerPaddingLeftRight.valuePx(e.windowSize)};
945
+ padding-top: ${e=>Sn.containerPaddingTopBottom.valuePx(e.windowSize)};
946
+ padding-bottom: ${e=>Sn.containerPaddingTopBottom.valuePx(e.windowSize)};
947
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
948
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
949
+ border-radius: ${o.sp2};
950
+ color: ${e=>e.theme.colors.hero};
951
+ cursor: pointer;
952
+ &:hover {
953
+ border-color: ${e=>e.theme.colors.primary};
954
+ color: ${e=>e.theme.colors.primary};
955
+ }
956
+
957
+ box-sizing: border-box;
958
+ align-items: center;
959
+ justify-content: space-between;
960
+ `,Pt=s.div`
961
+ display: flex;
962
+ align-items: center;
963
+ position: relative;
964
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
965
+ min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
966
+ :last-of-type {
967
+ padding-right: ${o.sp0};
968
+ }
969
+ `,zu=et`
970
+ word-break: break-all;
971
+ white-space: normal;
972
+ -webkit-line-clamp: 1;
973
+ -webkit-box-orient: vertical;
974
+ overflow: hidden;
975
+ text-overflow: ellipsis;
976
+ display: -webkit-box;
977
+ `,Pu=et`
978
+ height: ${o.sp3};
979
+ width: ${o.sp3};
980
+ cursor: pointer;
981
+ `,Nu=s(Dn)`
982
+ ${Pu};
983
+ color: ${e=>e.theme.colors.brandColorGoldDark};
984
+ &:hover {
985
+ color: ${e=>e.theme.colors.primary};
986
+ }
987
+ `,Nt=s(Be)`
988
+ overflow: hidden;
989
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
990
+ display: flex;
991
+ width: 100%;
992
+ align-items: center;
993
+ `,Vu=s.div``,In=s.div`
994
+ display: flex;
995
+ flex-direction: row;
996
+ column-gap: ${o.sp2};
997
+ align-items: center;
998
+ `,Hu=s(Be)`
999
+ ${zu};
1000
+ color: inherit;
1001
+ `,Uu=s.div`
1002
+ display: flex;
1003
+ `,Wu=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const p=ke();return t.jsxs(qu,{windowSize:p,children:[t.jsx(Fa,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c}),t.jsx(Ju,{windowSize:p,children:[...Array(3)].map((h,i)=>t.jsx(Mu,{},i))})]})},qu=s.div`
1004
+ display: block;
1005
+ min-height: 100%;
1006
+ flex-direction: column;
1007
+ width: 100%;
1008
+ `,Ju=s.div`
1009
+ display: flex;
1010
+ min-height: 100%;
1011
+ flex-direction: column;
1012
+ row-gap: ${o.sp3};
1013
+ `,{common:Ku}=Ie.getLocalizedStrings(),Gu=({missingReceipts:e,receiptUploadEndpoint:n,authParams:d,selectedPeriod:c,isDisabled:p,onMissingReceiptsRowClick:h,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const x=ke(),{fetchState:f,uiState:w,transactions:j}=e,C=a.useRef(null),[y,I]=a.useState(!1);a.useEffect(()=>{C.current?.resetAfterIndex(0)},[x,C]),a.useEffect(()=>{f==="Completed"&&I(!1)},[f]);const L=A=>cu,T=(A,D)=>{m({sortOrder:D,sortKey:A})};return t.jsxs(Xu,{children:[t.jsx(Qu,{windowSize:x,children:f==="Error"?t.jsxs(th,{windowSize:x,children:[t.jsx(nh,{onClick:()=>u(),"data-testid":_("missing-receipts-list-table-reload-button"),children:t.jsx(mo,{})}),t.jsx(oh,{children:Ku.reloadPage.label})]}):f==="Completed"&&j.length===0?t.jsx(wt,{tab:"missing_receipts",title:He("missing_receipts").allDoneText.title,subTitle:He("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&j.length===0?t.jsx(Wu,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},fetchState:f,onColumnSortConfigChanged:T}):t.jsx(eh,{windowSize:x,children:t.jsx(Tn,{children:({height:A,width:D})=>t.jsxs(ah,{style:{height:A,width:D},children:[t.jsx(Yu,{children:t.jsx(Fa,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},isDisabled:f==="In-Progress"?"readonly":p,onColumnSortConfigChanged:T})}),t.jsx(An,{ref:C,height:A-Oa,itemCount:j.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:d,isDisabled:p,selectedPeriod:c,onMissingReceiptsRowClick:h,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r},itemSize:L,width:D,style:{willChange:"auto"},overscanCount:du,onScroll:({scrollOffset:b})=>{m({scrollPosition:{scrollTop:b}})},initialScrollOffset:w.scrollPosition?.scrollTop,children:Zu})]})})})}),t.jsx(ze,{controller:y===!0,children:t.jsx(sh,{children:t.jsx(Xi,{size:"Small",start:!0})})})]})},Zu=({index:e,style:n,data:d})=>{const{missingReceipts:c,receiptUploadEndpoint:p,authParams:h,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,selectedPeriod:u}=d,x=c.transactions[e];return t.jsx(ih,{style:{...n,width:"100%"},children:t.jsx(_u,{transaction:x,receiptUploadEndpoint:p,authParams:h,selectedPeriod:u,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,uploadReceiptsFetchState:c.uploadReceiptStatusById[x.id]??{fetchState:"Not-Started",error:void 0}},x.id)})},Yu=s.div`
1014
+ width: auto;
1015
+ `,Xu=s.div`
1016
+ width: 100%;
1017
+ height: 100%;
1018
+ background-color: ${e=>e.theme.colors.grey4};
1019
+ `,Qu=s.div`
1020
+ height: 100%;
1021
+ `,eh=s.div`
1022
+ height: 100%;
1023
+ display: flex;
1024
+ flex-direction: column;
1025
+ max-width: 99.9%;
1026
+ `,th=s.div`
1027
+ display: flex;
1028
+ width: 100%;
1029
+ height: ${e=>`calc(100% - ${oa.valuePx(e.windowSize)})`};
1030
+ flex-direction: column;
1031
+ justify-content: center;
1032
+ align-items: center;
1033
+ `,nh=s.div`
1034
+ height: 96px;
1035
+ width: 96px;
1036
+ background: ${e=>e.theme.colors.background};
1037
+ border-radius: 50%;
1038
+ cursor: pointer;
1039
+ & svg {
1040
+ margin: ${o.sp5};
1041
+ color: ${e=>e.theme.colors.grey1};
1042
+ }
1043
+ &:hover {
1044
+ & svg {
1045
+ color: ${e=>e.theme.colors.primary};
1046
+ }
1047
+ }
1048
+ `,oh=s(Os)`
1049
+ margin-top: ${o.sp3};
1050
+ color: ${e=>e.theme.colors.hero};
1051
+ `,ih=s.div`
1052
+ top: ${o.sp0};
1053
+ left: ${o.sp0};
1054
+ padding-bottom: ${o.sp3};
1055
+ box-sizing: border-box;
1056
+ `,ah=s.div`
1057
+ position: relative;
1058
+ `,sh=s.div`
1059
+ display: flex;
1060
+ width: 100%;
1061
+ height: ${o.sp3};
1062
+ flex-direction: row;
1063
+ justify-content: center;
1064
+ align-items: center;
1065
+ margin-top: ${o.sp3};
1066
+ margin-bottom: ${o.sp3};
1067
+ `,rh=[...q.SUPPORTED_ATTACHMENT_FILE_TYPES],lh=7*1024*100,ch=s.div`
1068
+ width: ${sn}px;
1069
+ `,Un=s.div`
1070
+ width: ${e=>`${e.availableWidth}px`};
1071
+ min-width: auto;
1072
+ position: relative;
1073
+ height: fit-content;
1074
+ min-height: ${o.sp12};
1075
+ `,dh=s.div`
1076
+ flex-grow: 1;
1077
+ overflow: auto;
1078
+ min-height: 2em;
1079
+ display: flex;
1080
+ flex-direction: row;
1081
+ position: relative;
1082
+
1083
+ pointer-events: auto;
1084
+ user-select: text;
1085
+ justify-content: space-between;
1086
+ margin-bottom: ${o.sp2};
1087
+
1088
+ // Disable select for Zeni Logo and File Separator
1089
+ #${Zi} img[alt*="company logo"],
1090
+ .attachFileSeparator {
1091
+ user-select: none;
1092
+ }
1093
+ `,uh=s.div`
1094
+ display: flex;
1095
+ column-gap: ${o.sp2};
1096
+ align-items: flex-end;
1097
+ margin-top: ${o.sp2};
1098
+ margin-bottom: ${o.sp3};
1099
+ `,hh=s.div`
1100
+ position: relative;
1101
+ `,yi=s(Be)`
1102
+ position: relative;
1103
+ `,ph=s.div`
1104
+ background-color: ${e=>e.theme.colors.grey5};
1105
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
1106
+ border-radius: ${o.sp2};
1107
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1108
+ padding: ${o.sp5};
1109
+ color: ${e=>e.theme.colors.primary};
1110
+ position: relative;
1111
+ .lexicalEditor__nestedListItem {
1112
+ list-style-type: none;
1113
+ }
1114
+ user-select: text;
1115
+
1116
+ .monthEndReportCanvasWrapper > * {
1117
+ isolation: isolate;
1118
+ z-index: ${g[1]};
1119
+ }
1120
+ `,mh=s.div`
1121
+ user-select: text;
1122
+ `,gh=s.div`
1123
+ position: absolute;
1124
+ top: ${o.sp4}; // Attachment icon position from the top
1125
+ right: -${o.sp3}; // To show attachment icon on the edge
1126
+ `,xh=s.div`
1127
+ margin-top: ${o.sp2};
1128
+ display: flex;
1129
+ flex-direction: column;
1130
+ row-gap: ${o.sp3};
1131
+ margin-bottom: ${o.sp4};
1132
+ position: relative;
1133
+
1134
+ .toolbar {
1135
+ user-select: none;
1136
+ }
1137
+ `,fh=s(vt)`
1138
+ color: ${e=>e.theme.colors.grey1};
1139
+ user-select: none;
1140
+ `,yh=s(na)`
1141
+ color: ${e=>e.theme.colors.primary};
1142
+ `,Ch=s.div`
1143
+ flex-direction: column;
1144
+ row-gap: ${o.sp3};
1145
+ display: flex;
1146
+ `,wh=wo`
1147
+ 0% {
1148
+ transform: translateX(100%);
1149
+ }
1150
+ 100% {
1151
+ transform: translateX(0)
1152
+ }
1153
+ `,bh=wo`
1154
+ 0% {
1155
+ transform: translateX(0)
1156
+ }
1157
+ 100% {
1158
+ transform: translateX(100%)
1159
+ }
1160
+ `,vh=s.div`
1161
+ animation: ${e=>e.allThreadsSectionOpen?wh:bh}
1162
+ 0.5s forwards;
1163
+ height: 100vh;
1164
+ position: fixed;
1165
+ right: ${o.sp0};
1166
+ top: ${o.sp0};
1167
+ z-index: ${g[2]};
1168
+ min-width: ${Ki}px;
1169
+ max-width: ${Ji}px;
1170
+ `,$n="monthEndReportFormSection",Ci="monthEndReportPage",Xe=Ie.getLocalizedStrings();function Sh({companyId:e,enableZeniGPTFeature:n,monthEndReportView:d,previewMode:c,customerRequestData:p,allThreadsSectionOpen:h,filterMetaData:i,newThreadMetadata:l,isZeniUser:r,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:x,onUpdateFileAttachment:f,onCloseAllThreadsSection:w,previewMonthEndReport:j,saveMonthEndReport:C,onEditClick:y,onOpenFileAttachmentSnackBar:I,onClickCustomerRequest:L,sendMonthEndReport:T}){const A=bt(),[D,b]=a.useState(),[v,$]=a.useState(0),[R,M]=a.useState(0),F=a.useRef(),K=a.useRef(null),V=a.useRef(null),{html:H,subject:J,improveUsingZeniGPTStatus:G}=d,[O,ie]=a.useState(),[ye,W]=a.useState(!1),[me,de]=a.useState(!1),k=a.useRef(null),z=a.useRef(null),U=ss(h,250),P=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:N,threadsPositions:ee,observer:B,unresolvedThreadsMap:Z,handleRemoveFloatingThread:ae}=rs(i,k,!c,P,r),se=a.useCallback(()=>{h?z.current!=null&&M(Math.min((z.current.offsetWidth-sn-g[4])/2,z.current.offsetWidth-sn-Ji-g[4])):z.current!=null&&$(Math.min((z.current.offsetWidth-sn-g[4])/2,z.current.offsetWidth-sn-Ki-g[4]))},[h]);a.useEffect(()=>{se()},[h,se]),a.useEffect(()=>(window.addEventListener("resize",se),()=>{window.removeEventListener("resize",se)}),[se]);const ve=r?Pi:Ni,{openThread:Se,addThread:pe,setOpenThread:S}=a.useContext(ve),re=ls(To,!1,!c),$e=k.current?.getBoundingClientRect(),be=re!=null&&re.coords&&$e?{left:re.coords.left-$e.left,top:re.coords.top-$e.top}:void 0,Le=a.useCallback(()=>{const X=window.getSelection()?.getRangeAt(0),le=cs();if(!X||le==null)return;const je={...l,...le,startPath:le.startPath.join(),endPath:le.endPath.join()},Me=`${Gi()}${qi}`,Te=`cockpit_${e}`;pe(Me,{type:"thread",id:Me,roomId:Te,createdAt:new Date,comments:[],metadata:je,updatedAt:new Date,resolved:!1}),S(Me)},[pe,e,l,S]);a.useEffect(()=>{Se!=null&&h&&w()},[h,Se,w]);const Ce=G.fetchState==="In-Progress",he=Ht({mode:"all",defaultValues:wi(d),values:wi(d)}),Ge=he.handleSubmit(X=>{const{recipientEmailList:le,subject:je}=X[$n];if(c===!0)T?.(O?.id);else{const Me=D?.replace(ds,Xe.common.strings.empty);le!=null&&je!=null&&j(le,je,O?.id,Me!=null&&Me.length>0?D:void 0)}}),Ze=()=>{K.current!=null&&K.current.click()},Pe=()=>{O!==void 0&&O!=null&&(x([O.id]),ie(void 0),W(!1))},Ue=X=>{const le=X.target.files?X.target.files[0]:null;if(le)if(!q.toSupportedAttachmentFileType(le.type)||me)console.warn("Please select a valid file.");else{const je=new FileReader;je.onload=function(Me){const Te=Me.target?.result;if(typeof Te=="string"){const Ye={data:Te.split(",")[1],name:le.name,id:q.getAttachmentFileIdByFileName(e,le.name)};ie(Ye),W(!0),f([Ye])}},je.readAsDataURL(le)}},ge=()=>{V.current&&V.current.scrollIntoView({behavior:"smooth"})},We=()=>{const X=he.getValues(),{recipientEmailList:le,subject:je}=X[$n];le!=null&&je!=null&&C(le,je,O?.id,D)};a.useEffect(()=>{b(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),a.useEffect(()=>{F.current=O},[O]),a.useEffect(()=>{ie(q.mapAttachmentFileToAttachmentFilePayload(d.attachmentFile)),W(!1)},[d.attachmentFile]),a.useEffect(()=>{me&&I()},[me,I]);const St=q.zeniDate(`${m.year}-${m.month}-01`).format(Xe.dateFormat.visual.MMMMFormat),lt=H!=null?H.split(us):[],jt=d.concatenatedHtml,Dt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Ds,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Xe.cockpit.monthEndReport.timeStampLabel}):null,Ot=()=>r===!0?U?t.jsxs(t.Fragment,{children:[t.jsx(vh,{allThreadsSectionOpen:h,children:t.jsx(Es,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${A.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${tt.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:A.colors.background},threadsContainerStyle:{paddingBottom:c?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Xe.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(X,le)=>{S(le);const je=N.findIndex(Me=>Me[0]===le);w(),E.current?.[je]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>w()})}),t.jsx(Un,{availableWidth:v})]}):t.jsx(Rs,{observer:B,canvasContainerRef:k,sortedThreads:N,threadsPositions:ee,threadsRefs:E,unresolvedThreadsMap:Z,editorMode:!c,style:{minWidth:`${v}px`,position:"relative",height:"fit-content",top:`${k.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:ae}):t.jsx(Un,{availableWidth:v}),kt=(d.zeniRequestsData??[]).length+hs(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(dh,{ref:z,children:[t.jsx(Un,{availableWidth:h?R:v}),t.jsxs(ch,{children:[t.jsx(Ut,{...he,children:t.jsx("form",{id:bi(Ci),onSubmit:Ge,children:t.jsxs(Ch,{children:[t.jsx(ps,{sectionId:$n,previewMode:c,subject:J}),!c&&kt>0?t.jsx(ms,{totalItems:kt,onClickCustomerRequest:L}):null,t.jsxs(ph,{id:To,ref:k,children:[t.jsxs(mh,{className:"monthEndReportCanvasWrapper",children:[O!=null||me?t.jsx(gh,{"data-testid":_("email-attachment-container"),onClick:ge,children:t.jsx(gs,{fileSizeError:me,setFileSizeError:de,loading:!1,showAnimation:!c&&ye})}):null,c?t.jsx(yi,{dangerouslySetInnerHTML:{__html:xs(jt)}}):t.jsxs(t.Fragment,{children:[t.jsxs(hh,{id:fs,children:[t.jsx(Be,{dangerouslySetInnerHTML:{__html:lt[0]!=null?lt[0]+"</body></html>":Xe.common.strings.empty}}),t.jsxs(uh,{children:[t.jsx(yh,{children:Xe.cockpit.monthEndReport.editorTitle}),t.jsx(fh,{children:Xe.cockpit.monthEndReport.editorNote})]})]}),t.jsx(xh,{id:ys,children:t.jsx(Cs,{handleFileInputClick:Ze,fileAttached:O!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:Ce,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:b,customerRequestData:p})}),t.jsx(yi,{id:Zi,dangerouslySetInnerHTML:{__html:lt[1]!=null?"<html><body>"+lt[1]:Xe.common.strings.empty}})]}),O!=null?t.jsx(ws,{ref:V,fileName:O.name,fileSize:bs(O.data),onRemove:Pe,isRemovable:!c}):null]}),be?t.jsx(vs,{style:{zIndex:15},coords:be,alignment:re.alignment,onClick:Le}):null,t.jsx(Ss,{canvasContainerRef:k,sortedThreads:N,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(Yi,{name:O?.name??Xe.common.strings.empty,fileRef:K,sizeLimit:lh,acceptableTypes:rh,onFileChange:async X=>{Ue(X)},onFileSizeError:X=>de(X),multiple:!1})]}),Ot()]}),t.jsx(Vi,{style:{zIndex:10},leftSideComponent:Dt(),formId:bi(Ci),cancelBtn:{isDisabled:Ce,label:c===!0?Xe.cockpit.monthEndReport.editButtonLabel:Xe.cockpit.monthEndReport.saveChanges,onClick:c===!0?y:We,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:Ce,isLoading:c===!0?d.sendMonthEndReportStatus.fetchState==="In-Progress":d.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:c===!0?"unset":"136px"},label:c===!0?Xe.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",St):Xe.cockpit.monthEndReport.preview,size:"medium"}})]})}const wi=e=>({[$n]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Xe.common.strings.empty}}),bi=e=>`${e}_form`;Lt.smallBold.lineHeightValue;const jh=1,kh=50,vi=56,Ih=["memo"],Si=e=>q.stringToUnionStrict(e,Ih),{expenseAutomation:{transactions:{header:{vendors:$h,category:Lh,classText:Th,date:Ah,type:Eh,amount:Rh,memo:Dh}}}}=Ie.getLocalizedStrings(),Oh={key:"vendor",value:$h,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[8]}}},Fh={key:"category",value:Lh,sortOrder:"ascending",width:new Q(20,20),customStyle:{common:{paddingLeft:g[7]}}},Bh={key:"class",value:Th,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[7]}}},_h={key:"date",value:Ah,sortOrder:"descending",width:new Q(11,11),customStyle:{common:{}}},Mh={key:"transaction_type",value:Eh,sortOrder:"descending",width:new Q(13,13),customStyle:{common:{}}},zh={key:"memo",value:Dh,sortOrder:"ascending",width:new Q(6,6),customStyle:{common:{}}},Ph={key:"amount",value:Rh,sortOrder:"ascending",width:new Q(10,10),customStyle:{common:{paddingRight:g[4]}}},Ct=[Oh,Fh,Bh,_h,Mh,zh,Ph],Wn={sortKey:"date",sortOrder:"descending"},Ma=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[p,h]=a.useState(Co(Ct));a.useEffect(()=>{const r=[...p];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";h(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{Si(r.key)==null&&i(q.toTransactionsSortKey(r.key),r.sortOrder)};return t.jsx(Nh,{windowSize:c,"data-testid":_("transaction-categorization-header-container"),children:p.map((r,m)=>{const u=n!=null||Si(r.key)!=null;return t.jsxs(Vh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===p.length-1,"data-testid":_("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Jh,{"data-testid":_("transaction-categorization-header",r.value),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Kh,{children:r.value}),u?null:t.jsx(Uh,{sortConfig:e,headerData:r,"data-testid":_("transaction-categorization-sort-icon",r.key),children:t.jsx(qh,{})})]}),u?null:t.jsx(Wh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Wn.sortKey,"data-testid":_("transaction-categorization-close-icon",r.key),children:t.jsx(Hh,{onClick:()=>{i(Wn.sortKey,Wn.sortOrder)},"data-testid":_("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},Nh=s.div`
1171
+ top: ${o.sp0};
1172
+ left: ${o.sp0};
1173
+ height: ${kh}px;
1174
+ z-index: 2;
1175
+ display: flex;
1176
+ align-items: center;
1177
+ justify-content: space-between;
1178
+ box-sizing: border-box;
1179
+ background-color: ${e=>e.theme.colors.grey4};
1180
+ position: sticky;
1181
+ `,Vh=s.div`
1182
+ color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
1183
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1184
+ max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1185
+ padding-left: ${o.sp0};
1186
+ left: ${o.sp0};
1187
+ display: flex;
1188
+ align-items: center;
1189
+ gap: 6px;
1190
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1191
+ position: static;
1192
+ z-index: 0;
1193
+ box-sizing: border-box;
1194
+ `,Hh=s(Rn)`
1195
+ width: 12px;
1196
+ height: 12px;
1197
+ `,Uh=s.div`
1198
+ display: flex;
1199
+ align-items: center;
1200
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1201
+ ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
1202
+ `,Wh=s.div`
1203
+ display: ${e=>e.isVisible?"flex":"none"};
1204
+ align-items: center;
1205
+ padding-top: 2px;
1206
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1207
+ &:hover {
1208
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1209
+ }
1210
+ `,qh=s(En)`
1211
+ width: ${o.sp2};
1212
+ height: ${o.sp2};
1213
+ `,Jh=s.div`
1214
+ display: flex;
1215
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1216
+ gap: 6px;
1217
+ &:hover {
1218
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1219
+ }
1220
+ `,Kh=s(mt)`
1221
+ display: flex;
1222
+ `,qn="expenseAutomationTransactionsPage",Vt="transactionCategorizationListTable",Re="account",Qe="class",at="lineEntitySelection",Gh="lineEntity",Zh="recommendations",za="lineInfo",Yh="vendorDetails",Xh="customerDetails",Ln="selectedTransactionIds",$t=(e,n,d)=>`${e}.${d}.${n}`,Qh=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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"}),a.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"}),a.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:ep,hyphen:ji,empty:Zt}},expenseAutomation:{transactions:Yt},dateFormat:tp}=Ie.getLocalizedStrings(),Tt={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[1],g[2]),containerPaddingTopBottomEmpty:new Q(g[2],g[3]),nameLogoWidth:new Q(g[2],g[4]),nameLogoHeight:new Q(g[2],g[4])},np=({transactionView:e,transaction:n,sectionId:d,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:p,selectedTab:h,containerRef:i,isCOTEnabled:l,cotTracking:r,onTransactionCategorizationRowClick:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})=>{const C=ke(),[y,I]=a.useState(!1),{lineItemById:L,sortedLineItems:T}=n.transactionReviewLocalData,A=n.transactionReviewLocalData.tabSpecificLineItems?.[h]||[],D=T.filter(k=>A.indexOf(k)!==-1),b=[];D.forEach(k=>{b.push(L[k])});const{accountList:v,accountsHierarchyList:$,classHierarchyList:R,classList:M,uncategorizedAccounts:F,transactions:K,selectedCheckBoxTransactionIds:V}=e,H=V.includes(n.transactionId),J=bt(),G={control:()=>({marginLeft:-2,backgroundColor:y?J.colors.background:J.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:J.colors.grey5}),singleValue:()=>({color:y||H?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:k=>({...k,color:y||H?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:k=>({...k,zIndex:10})},O={...G,singleValue:k=>({...k,color:y||H?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:k=>({...k,color:y||H?J.colors.primary:J.colors.hero,textAlign:"left"})},ie=K.find(k=>k.id===n.transactionId),ye=(k,z)=>{const{transactionType:U}=z.transactionReviewLocalData;let P=k.target;for(;P;){if(P.classList.contains("select-value-container")||P.classList.contains("item-value-container")||P.classList.contains("grouped-single-select-field__value-container")||P.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||P.classList.contains("grouped-single-select-field__input")||P.classList.contains("grouped-single-select-field__menu"))return;P=P.parentElement}U!=null&&m(z.transactionId,U)},W=a.useRef(null),[me,de]=a.useState("auto");return a.useEffect(()=>{const k=()=>{if(i.current!=null&&W.current!=null){const z=i.current.getBoundingClientRect(),U=W.current.getBoundingClientRect().top-z.top;de(U>285?"top":"bottom")}};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k)}},[i]),t.jsx(ap,{onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),windowSize:C,isSelected:H,isHovered:y,children:t.jsx(sp,{children:b.map((k,z)=>t.jsx(rp,{ref:W,"data-testid":_("transaction-categorization-list-row",k.lineId),windowSize:C,onClick:U=>ye(U,n),children:t.jsx(op,{line:k,isHovered:y||H,isSelected:H,lineIndex:z,sectionId:d,transaction:n,currentTransaction:ie,windowSize:C,accountsHierarchyList:$,classHierarchyList:R,allAccountList:v,allClassList:M,uncategorizedAccounts:F,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:G,customStyleAutoComplete:O,recommendations:k.recommendationsWithCOT,selectedTab:h,isCOTEnabled:l,menuPlacement:me,cotTracking:r,openTooltipId:f,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:j})},`${n.transactionId}.${k.lineId}`))},n.transactionId)},n.transactionId)},op=({accountsHierarchyList:e,allAccountList:n,allClassList:d,classHierarchyList:c,customStyle:p,customStyleAutoComplete:h,line:i,lineIndex:l,transaction:r,currentTransaction:m,windowSize:u,uncategorizedAccounts:x,isHovered:f=!1,isSelected:w=!1,sectionId:j,recommendations:C,vendorSearchAutoCompleteData:y,selectedTab:I,isCOTEnabled:L,menuPlacement:T,cotTracking:A,openTooltipId:D,setCurrentTransactionInAction:b,vendorLoadOptions:v,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:R})=>{const{transactionDate:M,transactionType:F,transactionTypeName:K,memo:V}=r.transactionReviewLocalData,{setValue:H}=fo(),J=a.useCallback((ne,fe)=>{A?.onCOTView!=null&&A.onCOTView(i.lineId,r.transactionId,ne,fe)},[A,i.lineId,r.transactionId]),G=$t(j,at,l.toString()),O=$t(j,Re,l.toString()),ie=$t(j,Qe,l.toString()),ye=(ne,fe)=>{let De;switch(fe){case"vendor":De=G;break;case"category":De=O;break;case"class":De=ie;break;default:return}H(`${De}.selectedOption`,ne,{shouldValidate:!0,shouldDirty:!0})},W=bt(),me=a.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:i.customer?.id??"",logo:i.customer?.logo,name:i.customer?.name??""},[m,i.customer?.id,i.customer?.logo,i.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),de=a.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:i.vendor?.id??"",logo:i.vendor?.logo,name:i.vendor?.name??""},[m,i.vendor?.id,i.vendor?.logo,i.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),k=i[Qe]?.classId,z=i[Re]?.qboId??i[Re]?.accountId,U=me?.id,P=de?.id,E=de?.name,[N,ee]=a.useState(!k),[B,Z]=a.useState(!z||i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,R===!0?["income"]:void 0)===!0),[ae,se]=a.useState(!P||!U),ve=ne=>C?.find(fe=>fe.vendor?.qboId===ne||fe.vendor?.id===ne||fe.vendor?.name===ne)?.vendor?.reason??"",Se=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],pe=ca(e,Se),S=la(c,Se),re=ne=>n.filter(fe=>fe.qboId===ne)[0]?.qboId,$e=ne=>d.filter(fe=>fe.classId===ne)[0]?.accountingClassNumber??void 0,be=a.useCallback(ne=>q.isAccountUncategorized(x,ne,R===!0?["income"]:void 0),[x,R]),[Le,Ce]=a.useState(!1),[he,Ge]=a.useState(!1),[Ze,Pe]=a.useState(!1),Ue=(ne,fe)=>{b({transactionId:r.transactionId,lineItemId:i.lineId}),v(ne,fe)},ge=()=>{se(!(P||U)),Ce(!1)},We=()=>{z&&i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,R===!0?["income"]:void 0)===!1?Z(!1):Z(!0),Pe(!1)},St=()=>{ee(!k),Ge(!1)},lt=()=>{(P||U)&&Ce(!0)},jt=()=>{Ge(!0)},Dt=()=>{Pe(!0)};a.useEffect(()=>{z&&i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,R===!0?["income"]:void 0)===!1?Z(!1):Z(!0)},[z]),a.useEffect(()=>{ee(!k)},[k]),a.useEffect(()=>{se(!(P||U))},[P,U]);const Ot=r.transactionReviewLocalData.selectedEntity,kt=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,X=m!=null&&q.isVendorTransaction(m)===!0?Ot:kt,le=a.useMemo(()=>{const ne=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],fe=y.entityAutoCompleteView;return{selectedOption:X?.qboId??X?.id,defaultOptions:go(fe,X,ne??[])}},[X,r.transactionReviewLocalData.lineItemById,i.lineId,y.entityAutoCompleteView]),je=()=>X!=null&&X.logo!=null?t.jsx(aa,{photoUrl:X.logo.toString(),styles:{width:Tt.nameLogoWidth.valuePx(u),height:Tt.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx($i,{children:t.jsx(cn,{name:X.name,size:o.sp4})})}):X!=null&&X.name!=null?t.jsx($i,{children:t.jsx(cn,{name:X.name,size:o.sp4})}):null,Me=(ne,fe)=>{if(fe==null||!fe)return;let De=[];return ne.forEach(Ve=>{De=De.concat(Ve.options)}),De.find(Ve=>Ve.value===fe)?.label??fe},Te=Me(S,k),Ye=Me(pe,z),Ne=I==="review",Ft=Bn("vendor",le.defaultOptions,le.selectedOption),it=Bn("category",pe,z),Wt=Bn("class",S,k),on=()=>Ct.map((ne,fe)=>{const De=`${r.transactionId}_${ne.key}_${i.lineId}`;if(l>0&&m!=null&&q.isVendorTransaction(m)===!0&&ne.key==="vendor")return t.jsx(st,{windowSize:u,wrapperWidth:ne.width},De);if(l>0&&ne.key==="transaction_type")return t.jsx(st,{windowSize:u,wrapperWidth:ne.width},De);switch(ne.key){case"vendor":default:return t.jsxs(st,{windowSize:u,wrapperWidth:ne.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:L,recommendations:Se,type:"vendor",isFirstColumn:!0,isEnabled:!!X?.isPreFilled,isMisCategorized:Ft,onRecommendationClick:ye,selectedValue:P,selectedValueLabel:E,isReviewTab:Ne,isAccountOptionDisabled:be,existingOption:{label:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:D,setOpenTooltipId:$}),t.jsx(Xn,{children:ae===!0?t.jsx(Zn,{isHovered:f,children:t.jsxs(Kn,{onClick:Ve=>{Ve.stopPropagation(),se(!1),Ce(!0)},"data-testid":_("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addPayee]})}):Le===!0?t.jsx(ft,{onClickAway:ge,children:t.jsx(wp,{"data-testid":_("vendor-selection-dropdown-container",$t(j,at,l.toString())),children:t.jsx(qs,{name:G,placeholder:Yt.addPayee,valueToInfo:ve,defaultValue:{selectedOption:le.selectedOption,defaultOptions:le.defaultOptions},type:"vendor",autoFocus:!ae,style:{width:"100%"},pageSource:"list_page",transactionStatus:Ne?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:h,menuIsOpen:Le,onMenuClose:ge,registerOptions:{required:!1},loadOptions:Ue,showCOT:L,onCOTView:J,menuPlacement:T})})}):t.jsx(vp,{children:t.jsxs(Yn,{isHovered:f,showOutline:Ft&&X?.isPreFilled!==!0&&!w&&Ne,children:[je(),t.jsx(Cp,{onClick:lt,"data-testid":_("vendor-name-text",j),children:X!=null&&X.name?t.jsx(ot,{text:X.name,itemTextStyle:{color:f?W.colors.primary:W.colors.hero}}):t.jsx(bp,{children:ji})})]})})})]},De);case"category":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(st,{windowSize:u,wrapperWidth:ne.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:L,recommendations:Se,type:"category",isFirstColumn:!1,isReviewTab:Ne,isEnabled:!!i[Re]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:it,onRecommendationClick:ye,selectedValue:z,selectedValueLabel:Ye,existingOption:{label:Ve?.account?.accountName,value:Ve?.account?.qboId??Ve?.account?.accountId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:D,setOpenTooltipId:$}),t.jsx(Xn,{children:B===!0?t.jsx(Zn,{isHovered:f,children:t.jsxs(Kn,{onClick:Bt=>{Bt.stopPropagation(),Z(!1),Pe(!0)},"data-testid":_("category-selection-field",O),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addCategory]})}):Ze===!0?t.jsx(ft,{onClickAway:We,children:t.jsx(Li,{isHovered:f,"data-testid":_("category-selection-dropdown-container",O),children:t.jsx(Fo,{name:O,placeholder:Yt.addCategory,valueToId:Bt=>re(Bt),type:"category",pageSource:"list_page",transactionStatus:Ne?"pending_review":"auto_categorized",showCOT:L,defaultValue:{selectedOption:z,allOptions:pe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ze,autoFocus:!B&&(!z||i[Re]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Re].qboId)),onMenuClose:We,customStyleConfig:p,disableCurrentOption:be,menuPlacement:T,onCOTView:J})})}):t.jsx(Yn,{isHovered:f,showOutline:it&&i[Re]?.isPreFilled!==!0&&!w&&Ne,children:t.jsx(Ti,{onClick:Dt,"data-testid":_("category-label-text",O),children:t.jsx(ot,{text:Ye??"",itemTextStyle:{color:f?W.colors.primary:W.colors.hero}})})})})]},De)}case"class":{const Ve=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(st,{windowSize:u,wrapperWidth:ne.width,className:"item-value-container",children:[t.jsx(Jn,{isCOTEnabled:L,recommendations:Se,type:"class",isFirstColumn:!1,isReviewTab:Ne,isEnabled:!!i[Qe]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:Wt,onRecommendationClick:ye,selectedValue:k,selectedValueLabel:Te,existingOption:{label:Ve?.class?.className,value:Ve?.class?.classId},cotTracking:A,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:D,setOpenTooltipId:$}),t.jsx(Xn,{children:N===!0?t.jsx(Zn,{isHovered:f,children:t.jsxs(Kn,{onClick:Bt=>{Bt.stopPropagation(),ee(!1),Ge(!0)},"data-testid":_("class-selection-field",ie),style:{display:"inline-flex",alignItems:"center",color:tt.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addClass]})}):he===!0?t.jsx(ft,{onClickAway:St,children:t.jsx(Li,{isHovered:f,"data-testid":_("class-selection-dropdown-container",ie),children:t.jsx(Fo,{name:ie,placeholder:Yt.addClass,valueToId:Bt=>$e(Bt),type:"class",showCOT:L,defaultValue:{selectedOption:k,allOptions:S},pageSource:"list_page",transactionStatus:Ne?"pending_review":"auto_categorized",menuIsOpen:he,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!N&&!k,customStyleConfig:p,onMenuClose:St,menuPlacement:T,onCOTView:J})})}):t.jsx(Yn,{isHovered:f,showOutline:Wt&&i[Qe]?.isPreFilled!==!0&&!w&&Ne,children:t.jsx(Ti,{"data-testid":_("class-selection-field",ie),onClick:jt,children:t.jsx(ot,{text:Te??"",itemTextStyle:{color:f?W.colors.primary:W.colors.hero}})})})})]},De)}case"date":return t.jsx(st,{windowSize:u,wrapperWidth:ne.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===Ct.length-1,children:t.jsx(ho,{"data-testid":_("date-field",$t(j,Qe,l.toString())),children:t.jsx(cp,{style:{color:f?W.colors.primary:W.colors.hero},children:M!=null?M.format(tp.visual.MMMDCommaYYYYformat):null})})})},De);case"transaction_type":return t.jsx(st,{windowSize:u,wrapperWidth:ne.width,children:t.jsx(tn,{windowSize:u,"data-testid":_("transaction-type-field",$t(j,Qe,l.toString())),isLastItem:fe===Ct.length-1,children:K!=null?t.jsx(Us,{textColor:f?new xo(W.colors.primary):Ws(void 0,W),text:K??F}):null})},De);case"memo":return t.jsx(st,{windowSize:u,wrapperWidth:ne.width,children:t.jsx(tn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:fe===Ct.length-1,"data-testid":_("memo-field",$t(j,Qe,l.toString())),children:V&&l==0?t.jsx(we,{placement:"bottom",title:V,children:t.jsx(up,{style:{color:f?W.colors.primary:W.colors.hero}})}):l==0?t.jsx(dp,{children:ji}):null})},De);case"amount":{const Ve=Ke("0,0.[00]",i.amount,!0);return t.jsx(st,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ne.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===Ct.length-1,children:t.jsx(ho,{"data-testid":_("transaction-amount-field",$t(j,Qe,l.toString())),style:{color:f?W.colors.primary:W.colors.hero},children:Ve})})},De)}}});return t.jsx(t.Fragment,{children:on()})},ki=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:p=!1})=>e?n?p?t.jsx(mp,{}):t.jsx(hp,{}):p?t.jsx(pp,{}):t.jsx(gp,{className:"ai-icon-selected-plain"}):!e&&d||c?p?t.jsx(fp,{}):t.jsx(xp,{}):null,Ii=({isFirstColumn:e,children:n})=>t.jsx(Na,{isFirstColumn:e,children:n}),Jn=({recommendations:e,isCOTEnabled:n,type:d,isReviewTab:c,selectedValueLabel:p,isFirstColumn:h,isEnabled:i=!1,isMisCategorized:l=!1,selectedValue:r,existingOption:m,cotTracking:u,lineId:x,openTooltipId:f,transactionId:w,isAccountOptionDisabled:j,onRecommendationClick:C,setOpenTooltipId:y})=>{const I=a.useMemo(()=>`${w}:${x}:${d}`,[w,x,d]),L=f===I,T=Gs().analytics,{createAlternateRecommendationCallback:A}=Zs(),D=a.useCallback(K=>{const V=e[1],H=e[0];A(d,{currentValue:p??Zt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:w,lineId:x,onCOTView:(J,G,O,ie)=>{u.onCOTView?.(J,G,O,ie)}}:void 0},V,H)(K)},[A,e,p,c,d,u,x,w]),b=Ys(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",C,D,r,j),v=Xs(e,d),$=a.useCallback(()=>{y(I);const K=b?.recommendations[0]?.cot??[],V=b?.recommendations[1]?.cot??[],H=V.length>0;if(T.trackTransactionCotView({recommendationFor:d,currentValue:p??Zt,recommendation:b?.recommendations[0]?.name??Zt,recommendationCot:K,isRecommendationCotAvailable:K.length>0,recommendationReason:b?.recommendations[0]?.reason??Zt,recommendationConfidencePercentage:b?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Ro(Do(b?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:b?.recommendations[1]?.name??Zt,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:H,alternativeRecommendationReason:b?.recommendations[1]?.reason??Zt,alternativeRecommendationConfidencePercentage:b?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:H?Ro(Do(b?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=Qs(b);J!=null&&u.onCOTView(x,w,d,J)}},[T,b,c,p,d,x,w,I,y]),R=a.useCallback(()=>{f===I&&y(void 0)},[f,I,y]),M=a.useMemo(()=>!r||!v?!1:e.some(K=>d==="vendor"&&K.vendor!=null?K.vendor.id===r||K.vendor.qboId===r:d==="category"&&K.account!=null?K.account.qboId===r||K.account.accountId===r:d==="class"&&K.class!=null?K.class.classId===r:!1),[r,v,e,d]);if(!v)return t.jsx(Na,{isFirstColumn:h});const F=i||M;return b?t.jsx(Ii,{isFirstColumn:h,children:t.jsx(we,{variant:"chain-of-thought",data:b,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:L,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:$,onClose:R,children:t.jsx(yp,{children:t.jsx(ki,{isEnabled:F,isReviewTab:c,isMisCategorized:l,hasRecommendations:v,isTooltipVisible:L})})})}):t.jsx(Ii,{isFirstColumn:h,children:t.jsx(ki,{isEnabled:F,isReviewTab:c,isMisCategorized:l,hasRecommendations:v,isTooltipVisible:L})})},Pa=()=>{const e=ke(),n=a.useRef(null),[d,c]=a.useState(0);return a.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(ip,{windowSize:e,ref:n,children:Ct.map((p,h)=>{const i=`${h}${ep}${p.key}`;switch(p.key){case"vendor":return t.jsx(st,{windowSize:e,wrapperWidth:p.width,children:t.jsx(tn,{windowSize:e,isLastItem:h===Ct.length-1,children:t.jsxs(ho,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Et,{width:d*p.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(st,{windowSize:e,wrapperWidth:p.width,children:t.jsx(tn,{windowSize:e,isLastItem:h===Ct.length-1,children:t.jsx(Et,{width:d*p.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},ip=s.div`
1223
+ display: flex;
1224
+ background-color: ${e=>e.theme.colors.grey5};
1225
+ padding-left: ${e=>Tt.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
+ padding-right: ${e=>Tt.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
+ padding-top: ${e=>Tt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
+ padding-bottom: ${e=>Tt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1229
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1230
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1231
+ border-radius: ${o.sp2};
1232
+ color: ${e=>e.theme.colors.hero};
1233
+ cursor: pointer;
1234
+ &:hover {
1235
+ border-color: ${e=>e.theme.colors.primary};
1236
+ }
1237
+
1238
+ box-sizing: border-box;
1239
+ align-items: center;
1240
+ justify-content: space-between;
1241
+ `,ap=s.div`
1242
+ display: flex;
1243
+ height: 100%;
1244
+ flex: 1;
1245
+ background-color: ${e=>e.theme.colors.grey5};
1246
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1247
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1248
+ border-radius: ${o.sp2};
1249
+ color: ${e=>e.theme.colors.hero};
1250
+ border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
1251
+ cursor: pointer;
1252
+ &:hover {
1253
+ border-color: ${e=>e.theme.colors.primary};
1254
+ }
1255
+
1256
+ box-sizing: border-box;
1257
+ align-items: center;
1258
+ justify-content: space-between;
1259
+
1260
+ .ai-icon-selected-plain {
1261
+ color: ${e=>e.theme.colors.hero};
1262
+ }
1263
+
1264
+ ${({isHovered:e,theme:n})=>e?et`
1265
+ .ai-icon-selected-plain {
1266
+ color: ${n.colors.primary};
1267
+ }
1268
+ `:null};
1269
+ `,sp=s.div`
1270
+ display: flex;
1271
+ flex: 1;
1272
+ flex-direction: column;
1273
+ width: 100%;
1274
+ box-sizing: border-box;
1275
+ align-items: center;
1276
+ justify-content: space-around;
1277
+ `,rp=s.div`
1278
+ display: flex;
1279
+ flex: 1;
1280
+ flex-direction: row;
1281
+ width: 100%;
1282
+ align-items: center;
1283
+ justify-content: space-between;
1284
+ height: ${o.sp8};
1285
+ padding-top: ${e=>Tt.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
+ padding-bottom: ${e=>Tt.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
+ `,st=s.div`
1288
+ display: flex;
1289
+ align-items: center;
1290
+ flex-direction: row;
1291
+ position: relative;
1292
+ width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${o.sp4})`};
1293
+ min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${o.sp4})`};
1294
+ :last-of-type {
1295
+ padding-right: ${o.sp0};
1296
+ }
1297
+ `,lp=et`
1298
+ word-break: break-word;
1299
+ white-space: nowrap;
1300
+ -webkit-line-clamp: 1;
1301
+ -webkit-box-orient: vertical;
1302
+ overflow: hidden;
1303
+ text-overflow: ellipsis;
1304
+ display: -webkit-box;
1305
+ `,tn=s(Be)`
1306
+ overflow: hidden;
1307
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1308
+ display: flex;
1309
+ width: 100%;
1310
+ align-items: center;
1311
+ `,ho=s.div`
1312
+ display: flex;
1313
+ flex-direction: row;
1314
+ column-gap: ${o.sp2};
1315
+ align-items: center;
1316
+ `,cp=s(Be)`
1317
+ ${lp};
1318
+ color: ${e=>e.theme.colors.hero};
1319
+ `,Kn=s(Be)`
1320
+ color: ${e=>e.theme.colors.hero};
1321
+ `,Gn=s(Dn)`
1322
+ width: ${o.sp3};
1323
+ height: ${o.sp3};
1324
+ margin: ${o.sp1};
1325
+ `,dp=s.div`
1326
+ margin: ${o.sp3};
1327
+ `,up=s(Qh)`
1328
+ width: ${o.sp3};
1329
+ height: ${o.sp3};
1330
+ margin-left: 10px;
1331
+ `,hp=s(or)`
1332
+ width: ${o.sp5};
1333
+ height: ${o.sp5};
1334
+ `,pp=s(rr)`
1335
+ width: ${o.sp5};
1336
+ height: ${o.sp5};
1337
+ `,mp=s(nr)`
1338
+ width: ${o.sp5};
1339
+ height: ${o.sp5};
1340
+ `,gp=s(lr)`
1341
+ width: ${o.sp5};
1342
+ height: ${o.sp5};
1343
+ `,xp=s(un)`
1344
+ width: ${o.sp3};
1345
+ height: ${o.sp3};
1346
+ path {
1347
+ stroke-width: 2;
1348
+ }
1349
+ `,fp=s(ir)`
1350
+ width: ${o.sp3};
1351
+ height: ${o.sp3};
1352
+ `,Na=s.div`
1353
+ display: flex;
1354
+ align-items: center;
1355
+ justify-content: center;
1356
+ width: ${o.sp5};
1357
+ margin-left: ${e=>e.isFirstColumn?o.sp2:o.sp0};
1358
+ height: 100%;
1359
+ `,yp=s.div`
1360
+ display: flex;
1361
+ align-items: center;
1362
+ justify-content: center;
1363
+ width: auto;
1364
+ cursor: pointer;
1365
+ `,Cp=s(Be)`
1366
+ display: flex;
1367
+ max-width: calc(100% - ${o.sp6});
1368
+ flex: 1 1 auto;
1369
+ color: ${e=>e.theme.colors.primary};
1370
+ text-align: center;
1371
+ align-items: center;
1372
+ overflow: hidden;
1373
+ display: flex;
1374
+ `,$i=s.div`
1375
+ display: flex;
1376
+ `,wp=s.div`
1377
+ width: 100%;
1378
+ padding-left: 10px;
1379
+ margin-left: ${o.sp0};
1380
+ border-radius: ${o.sp1};
1381
+ background-color: ${e=>e.theme.colors.background};
1382
+ display: flex;
1383
+ align-items: center;
1384
+ flex-direction: row;
1385
+ `,Zn=s.div`
1386
+ padding: ${o.sp0} ${o.sp2};
1387
+ border-radius: ${o.sp1};
1388
+ margin-left: ${o.sp0};
1389
+ width: 100%;
1390
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1391
+ `,Li=s.div`
1392
+ width: 100%;
1393
+ border-radius: ${o.sp1};
1394
+ padding-left: 2px;
1395
+ background-color: ${e=>e.theme.colors.background};
1396
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1397
+ display: flex;
1398
+ align-items: center;
1399
+ flex-direction: row;
1400
+ `,bp=s(Be)``,vp=s.div`
1401
+ width: 100%;
1402
+ display: flex;
1403
+ padding-left: ${o.sp0};
1404
+ `,Yn=s.div`
1405
+ width: 100%;
1406
+ display: flex;
1407
+ flex-direction: row;
1408
+ align-items: center;
1409
+ gap: ${o.sp2};
1410
+ padding: ${o.sp2};
1411
+ padding-left: ${o.sp2};
1412
+ border-radius: ${o.sp1};
1413
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1414
+ outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
1415
+ outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
1416
+ `,Ti=s.div``,Xn=s.div`
1417
+ display: flex;
1418
+ align-items: center;
1419
+ width: calc(100% - ${o.sp5});
1420
+ `,Sp=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const p=ke();return t.jsxs(jp,{windowSize:p,children:[t.jsx(Ma,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c,"data-testid":_("transaction-categorization-list-empty-table-header")}),t.jsx(kp,{windowSize:p,"data-testid":_("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((h,i)=>t.jsx(Pa,{"data-testid":_("transaction-categorization-list-empty-row",i.toString())},i))})]})},jp=s.div`
1421
+ display: block;
1422
+ min-height: 100%;
1423
+ flex-direction: column;
1424
+ width: 100%;
1425
+ padding-left: ${o.sp8};
1426
+ padding-right: ${o.sp8};
1427
+ `,kp=s.div`
1428
+ display: flex;
1429
+ flex: 1;
1430
+ min-height: 100%;
1431
+ flex-direction: column;
1432
+ row-gap: ${o.sp3};
1433
+ `,{common:Ip}=Ie.getLocalizedStrings(),Qn={rowGap:new Q(g[0],g[2],g[3])},$p=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:p,isCOTEnabled:h,isDisabled:i,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:x,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:w,onFetchTransactionCategorizationList:j,containerRef:C,cotTracking:y,isUncategorizedExpenseCategoryEnabled:I})=>{const L=ke(),[T,A]=a.useState(void 0),{fetchState:D,uiState:b,transactionLocalData:v,selectedCheckBoxTransactionIds:$,transactions:R,uncategorizedAccounts:M}=n,F=a.useRef(null),K=a.useRef({}),{control:V}=fo();a.useEffect(()=>{F.current?.resetAfterIndex(0,!0)},[L,F,v]),a.useEffect(()=>{F.current?.scrollTo(b.scrollPosition?.scrollTop??0)},[e]);const H=a.useCallback(B=>{if(K.current?.[B]!=null){const se=L==="small"&&b.pageToken==null&&B===v.length-1?Qn.rowGap.value("medium-regular"):Qn.rowGap.value(L);return K.current[B]+se}if(v[B]==null)return 0;const Z=v[B].transactionReviewLocalData,ae=Object.keys(Z.lineItemById).length;return ae!=null&&!isNaN(ae)&&ae>1?vi*ae+Qn.rowGap.value(L)*(ae-1):vi},[v,L,b.pageToken,b.sortKey,b.sortOrder]),J=a.useCallback((B,Z)=>{K.current={...K.current,[B]:Z},F.current?.resetAfterIndex(0,!0)},[L,F,v,b.sortKey,b.sortOrder]),G=a.useCallback(()=>{(b.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&j(e,b.searchString,!0,b.pageToken,!0,!1)},[n.refreshStatus.fetchState,j,e,b.pageToken,b.searchString,b.sortKey,b.sortOrder]),O=a.useCallback(()=>{b.pageToken!=null&&G()},[G,b.pageToken,b.sortKey,b.sortOrder]),ie=Fs(B=>w(e,{scrollPosition:{scrollTop:B}}),1e3,{trailing:!0}),ye=B=>B<n.transactionLocalData.length,W=(B,Z)=>{f(e,{sortOrder:Z,sortKey:B}),j(e,b.searchString,!1,null,!1,!0)},me=B=>{if(e==="autoCategorized")return!$.includes(B);const Z=v.find(se=>se.transactionId===B)?.transactionReviewLocalData,ae=R.find(se=>se.id===B);return ae!=null&&Z!=null?!q.checkIfAllLineItemsAreCategoryClassFilled(ae,Z,M,I):$.length===0?!0:!$.includes(B)};let de=[],k=[];(D==="Completed"||n.transactionLocalData.length>0)&&(k=n.transactionLocalData.map((B,Z)=>{const ae=B.transactionReviewLocalData;return{label:t.jsx(np,{transactionView:n,sectionId:`${p}.${Z}.${za}`,transaction:B,receiptUploadEndpoint:d,authParams:c,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:C,isCOTEnabled:h,cotTracking:y,openTooltipId:T,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:I},`${B.transactionId}.${ae.transactionType}`),value:B.transactionId,defaultChecked:!1,groupLabel:!1,isException:!1,isSticky:!0,isDisabled:me(B.transactionId)===!0?"readonly":void 0}}),de=k.map(B=>B.value));const z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:U,subTitle:P}=He("transaction_categorization").allDoneText,E=v.map(B=>B.transactionId),N=a.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),ee=a.useMemo(()=>v.reduce((B,Z)=>{const ae=Object.keys(Z.transactionReviewLocalData.lineItemById).length;return B+(ae>0?ae:1)},0)<n.totalCountByTab[e]?v.length+1:v.length,[v,n.totalCountByTab,e]);return t.jsx(Rp,{windowSize:L,"data-testid":_("transaction-categorization-list-wrapper"),children:t.jsx(Dp,{windowSize:L,"data-testid":_("transaction-categorization-list-container"),children:D==="Error"?t.jsxs(Fp,{windowSize:L,"data-testid":_("transaction-categorization-reload-page"),children:[t.jsx(Bp,{onClick:()=>j(e,void 0,!0,null,!1,!0),"data-testid":_("transaction-categorization-reload-icon"),children:t.jsx(mo,{})}),t.jsx(_p,{"data-testid":_("transaction-categorization-reload-label"),children:Ip.reloadPage.label})]}):D==="Completed"&&v.length===0?t.jsx(wt,{tab:"transaction_categorization",title:U,subTitle:P,"data-testid":_("transaction-categorization-empty-table-section")}):D==="Not-Started"||D==="In-Progress"&&v.length===0?t.jsx(Sp,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:D,onColumnSortConfigChanged:W,"data-testid":_("transaction-categorization-list-empty-table")}):t.jsx(Op,{windowSize:L,"data-testid":_("transaction-categorization-list-view"),children:t.jsx(ia,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:B,ref:Z,onChange:ae}})=>t.jsx(Va.Provider,{value:{value:B,mode:"off",allCheckBoxValues:de,index:0,sortKey:b.sortKey,sortOrder:b.sortOrder,fetchState:D,isDisabled:i,groupLabelCheckBox:z,onColumnSortConfigChanged:W,ref:Z,onChange:ae,selectedTab:e},children:t.jsx(Tn,{children:({height:se,width:ve})=>t.jsx(Bs,{isItemLoaded:ye,itemCount:N,loadMoreItems:O,children:({onItemsRendered:Se,ref:pe})=>t.jsx(An,{ref:S=>{pe(S),F.current=S},height:se,itemCount:ee,itemKey:S=>v[S]?.transactionId,innerElementType:Lp,onItemsRendered:Se,width:ve,style:{willChange:"auto"},overscanCount:jh,itemSize:H,itemData:{checkboxes:k,value:B,allCheckBoxValues:de,groupLabelCheckBox:z,categorizationGroupValue:E,transactionLocalData:v,mode:"always_on",setRowHeight:J,isItemLoaded:ye,ref:pe,onChange:ae,selectedCheckBoxTransactionIds:$},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:S})=>{ie(S)},children:Ap})})})})})})})})},Lp=e=>{const{value:n,allCheckBoxValues:d,groupLabelCheckBox:c,index:p,isDisabled:h,fetchState:i,sortKey:l,sortOrder:r,mode:m,ref:u,onChange:x,onColumnSortConfigChanged:f}=Tp(),{children:w,style:j,...C}=e;return i==="Completed"?t.jsxs(Mp,{ref:u,style:{...j,width:"auto"},...C,children:[t.jsx(zp,{children:t.jsx(da,{selectionLimit:q.MAX_SELECTION_LIMIT,value:n,checkBox:{label:t.jsx(Ep,{children:t.jsx(Ma,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:h,onColumnSortConfigChanged:f})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:c,allCheckBoxValues:d,mode:m,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:p,onChangeHandler:y=>ua({event:y,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(Pp,{children:w})]},`${d[p]}-${p}`):null},Va=a.createContext(void 0),Tp=()=>{const e=a.useContext(Va);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Ap=({index:e,style:n,data:d})=>{const{checkboxes:c,value:p,groupLabelCheckBox:h,categorizationGroupValue:i,allCheckBoxValues:l,transactionLocalData:r,isItemLoaded:m,setRowHeight:u,ref:x,onChange:f,selectedCheckBoxTransactionIds:w}=d,j=a.useRef(null),C=ke();if(a.useEffect(()=>{j.current?.firstElementChild!=null&&u(e,j.current.firstElementChild.clientHeight)},[e,j,C,r[e]?.transactionReviewLocalData]),m(e)===!0){const y=c[e];return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(da,{selectionLimit:q.MAX_SELECTION_LIMIT,checkBox:y,value:p,groupLabelCheckBox:h,allCheckBoxValues:l,mode:y.isDisabled==="readonly"||w.includes(y.value)===!1&&w.length>=q.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:y.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:`${Vt}.${p}`,ref:x,index:e,onChangeHandler:I=>ua({event:I,value:p,allCheckBoxValues:l,groupLabelCheckBox:h,onChange:f})})},i[e])}else return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(Np,{children:t.jsx(Pa,{})})},Gi())},Ep=s.div`
1434
+ flex: 1;
1435
+ width: auto;
1436
+ padding-right: ${o.sp8};
1437
+ `,Rp=s.div`
1438
+ width: 100%;
1439
+ height: 100%;
1440
+ background-color: ${e=>e.theme.colors.grey4};
1441
+ `,Dp=s.div`
1442
+ height: 100%;
1443
+ `,Op=s.div`
1444
+ height: 100%;
1445
+ display: flex;
1446
+ flex-direction: column;
1447
+ max-width: 99.9%;
1448
+ `,Fp=s.div`
1449
+ display: flex;
1450
+ width: 100%;
1451
+ height: ${e=>`calc(100% - ${oa.valuePx(e.windowSize)})`};
1452
+ flex-direction: column;
1453
+ justify-content: center;
1454
+ align-items: center;
1455
+ `,Bp=s.div`
1456
+ height: 96px;
1457
+ width: 96px;
1458
+ background: ${e=>e.theme.colors.background};
1459
+ border-radius: 50%;
1460
+ cursor: pointer;
1461
+ & svg {
1462
+ margin: ${o.sp5};
1463
+ color: ${e=>e.theme.colors.grey1};
1464
+ }
1465
+ &:hover {
1466
+ & svg {
1467
+ color: ${e=>e.theme.colors.primary};
1468
+ }
1469
+ }
1470
+ `,_p=s(vt)`
1471
+ margin-top: ${o.sp3};
1472
+ color: ${e=>e.theme.colors.hero};
1473
+ `,Ai=s.div`
1474
+ top: ${o.sp0};
1475
+ left: ${o.sp0};
1476
+ padding-bottom: ${o.sp3};
1477
+ box-sizing: border-box;
1478
+ `,Mp=s.div`
1479
+ background-color: ${e=>e.theme.colors.grey4};
1480
+ `,zp=s.div`
1481
+ top: 0;
1482
+ left: 0;
1483
+ width: 100%;
1484
+ min-width: 100%;
1485
+ z-index: 11;
1486
+ display: flex;
1487
+ align-items: center;
1488
+ position: sticky;
1489
+ background-color: ${e=>e.theme.colors.grey4};
1490
+ `,Pp=s.div`
1491
+ position: relative;
1492
+ width: auto;
1493
+ height: 100%;
1494
+ `,Np=s.div`
1495
+ padding-left: ${o.sp8};
1496
+ `,Vp=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:p,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:i,isCOTEnabled:l,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:w,onSaveUpdateTransactionCategorization:j,onUpdateSelectedCheckboxTransactionIds:C,onFetchRecommendationsForEntityCategorization:y,onFetchRecommendationsForEntityCategorizationWithCustomer:I})=>{const[L,T]=a.useState({transactionId:void 0,lineItemId:void 0}),A=a.useRef(),D=a.useRef({}),{useDynamicConfig:b}=Qi(),{configValue:v}=b(ea.enableUncategorizedExpenseCategory),$=a.useMemo(()=>v?.uncategorized_expense_category_enabled===!0,[v]),R=(k,z,U,P)=>{const E={...D.current};E[z]==null&&(E[z]=[]);let N=E[z].findIndex(ee=>ee.lineId===k);if(N===-1){const ee={lineId:k,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};E[z].push(ee),N=E[z].length-1}else{const ee=E[z][N];E[z][N]={...ee,category:{...ee.category,recommendationTypesViewed:[...ee.category.recommendationTypesViewed]},class:{...ee.class,recommendationTypesViewed:[...ee.class.recommendationTypesViewed]},vendor:{...ee.vendor,recommendationTypesViewed:[...ee.vendor.recommendationTypesViewed]}}}P!=null&&P!==""&&!E[z][N][U].recommendationTypesViewed.includes(P)&&E[z][N][U].recommendationTypesViewed.push(P),D.current=E},{transactions:M,transactionLocalData:F,accountsHierarchyList:K,classHierarchyList:V,accountList:H,classList:J,selectedCheckBoxTransactionIds:G,uncategorizedAccounts:O}=n,ie=Ht({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>Ri(G,F,K,V,h.entityAutoCompleteView),[K,V,G,F,h.entityAutoCompleteView]),values:a.useMemo(()=>Ri(G,F,K,V,h.entityAutoCompleteView),[K,V,G,F,h.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});a.useEffect(()=>()=>{r("expenseAutomationPage")},[]),a.useEffect(()=>{G.length>0?r(qn):r("expenseAutomationPage")},[G,r]);const ye=ie.handleSubmit(k=>{const z=k[Ln],U=D.current;j(e,z,U),z.forEach(P=>{delete D.current[P]})}),W=async(k,z)=>{if(k!=null){if(k===Ln){const U=ie.getValues(Ln);if(U.length<G.length){C(e,U);return}if(U.length===q.MAX_SELECTION_LIMIT){C(e,U);return}const P=U[U.length-1],E=z[Vt].findIndex(ee=>ee.transactionId===P),N=ie.getValues(`${Vt}.${E}.lineInfo`);if(N!=null){let ee=!1;if(N.every(B=>(ee=q.isAccountUncategorized(O,B[Re].selectedOption,$?["income"]:void 0),!!B[Re].selectedOption&&B[Re].selectedOption!=null&&!ee&&!!B[Qe].selectedOption&&!!B[at].selectedOption))===!0){C(e,U);return}else{const B=U.filter(Z=>Z!==P);C(e,B);return}}return}if(k.includes(Re)===!0||k.includes(Qe)===!0){const U=parseInt(k.split(".")[1]),P=parseInt(k.split(".")[3]),E=ie.getValues(`${Vt}.${U}.lineInfo`),N=E[P];if(k.includes(Re)||k.includes(Qe)){const{transactionId:ee,lineId:B,recommendations:Z}=N;if(E!=null){const ae=N[Re].selectedOption,se=N[Qe].selectedOption,ve=N[at].selectedOption,Se=N[at].selectedOption,pe=N[at].defaultOptions,S=pe?.find(ge=>ge.options?.find(We=>We.value===ve))?.options?.find(ge=>ge.value===ve)?.label,re=pe?.find(ge=>ge.options?.find(We=>We.value===Se))?.options?.find(ge=>ge.value===Se)?.label,$e=h.entityAutoCompleteView.vendor.find(ge=>ge.qboId===ve),be=h.entityAutoCompleteView.customer.find(ge=>ge.qboId===Se),Le=Z.find(ge=>ge.vendor?.qboId===ve)?.vendor,Ce=ve||$e?.qboId||Le?.qboId?{id:ve??$e?.qboId??Le?.qboId??"",name:S??$e?.name??Le?.name??"",logo:$e?.logo??Le?.logo}:void 0,he=Se||be?.qboId?{id:Se??be?.qboId??"",name:re??be?.name??"",logo:be?.logo}:void 0,Ge=H.find(ge=>ge.qboId===ae),Ze=J.find(ge=>ge.classId===se),Pe=n.transactionLocalData.find(ge=>ge.transactionId===ee)?.transactionReviewLocalData.lineItemById[B].account,Ue=n.transactionLocalData.find(ge=>ge.transactionId===ee)?.transactionReviewLocalData.lineItemById[B].class;m(e,ee,B,M,Ce?.id,he?.id,k.includes(Re)&&Ge!=null?{...Ge,isPreFilled:!1}:Pe,k.includes(Qe)&&Ze!=null?{...Ze,isPreFilled:!1}:Ue,void 0,Z,$)}return}}if(k.includes(at)){const U=parseInt(k.split(".")[1]),P=parseInt(k.split(".")[3]),E=ie.getValues(`${Vt}.${U}.lineInfo`);if(E!=null){const N=E[P],{transactionId:ee,recommendations:B}=N,Z=N[at].selectedOption,ae=N[at].selectedOption,se=N[at].defaultOptions,ve=se?.flatMap(he=>he.options)?.find(he=>he.value===Z)?.label,Se=se?.flatMap(he=>he.options)?.find(he=>he.value===ae)?.label,pe=h.entityAutoCompleteView.vendor.find(he=>he.qboId===Z),S=h.entityAutoCompleteView.customer.find(he=>he.qboId===ae),re=B.find(he=>he.vendor?.qboId===Z||he.vendor?.name===ve)?.vendor,$e=pe?.id??re?.id??Z,be=pe!=null||re!=null?{id:pe?.qboId??re?.qboId??Z??"",name:ve??pe?.name??re?.name??"",logo:pe?.logo??re?.logo}:void 0,Le=S?.qboId?{id:S?.qboId??ae??"",name:Se??S?.name??"",logo:S?.logo}:void 0,Ce=M.find(he=>he.id===ee);if(Ce!=null){const he=n.transactionLocalData.find(Ue=>Ue.transactionId===Ce.id)?.transactionReviewLocalData,Ge=he?.lineItemById[N.lineId],Ze=q.isVendorTransaction(Ce)===!0?he?.selectedEntity:Ge?.selectedEntityLine,Pe=be!=null&&be.id!=null&&be.id?{id:be.id,name:be.name,type:"vendor",qboId:be.id,zeniId:be.id,logo:be.logo,isPreFilled:Ze?.id===$e&&Ze?.isPreFilled}:Le!=null&&Le.id!=null&&Le.id?{id:Le.id,name:Le.name,type:"customer",qboId:Le.id,zeniId:Le.id,logo:Le.logo}:void 0;Pe!=null&&Pe.type==="customer"?I(N.amount.amount,{transactionId:{id:Ce.id,type:Ce.type},transaction:Ce,lineIds:Ce.type!=="journal_entry"?Ce.lines?.map(Ue=>Ue.id)??[]:[N.lineId]},!1,e,Pe,Le,$):y(N.amount.amount,{transactionId:{id:Ce.id,type:Ce.type},transaction:Ce,lineIds:Ce.type!=="journal_entry"?Ce.lines?.map(Ue=>Ue.id)??[]:[N.lineId]},!1,e,Pe,ve==null||ve===Z?{id:"",name:N[at].selectedOption??""}:be,$)}}i.onCancelAutoComplete?.();return}}};a.useEffect(()=>{const k=ie.watch((z,{name:U})=>{U!=null&&z!=null&&hn(()=>W(U,z))});return()=>{k.unsubscribe()}}),a.useEffect(()=>{if(h.entityAutoCompleteView.fetchState==="Completed"){const k=n.transactionLocalData.find(z=>z.transactionId===L.transactionId);if(k){const{transactionReviewLocalData:z}=k,{selectedEntity:U}=z,P=L?.lineItemId??z.sortedLineItems[0],E=z.lineItemById[P],N=E.selectedEntityLine;A.current?.(go(h.entityAutoCompleteView,U??N,E?.recommendationsWithCOT??[]))}T({transactionId:void 0,lineItemId:void 0})}},[h.entityAutoCompleteView.fetchState]);const me=(k,z)=>{i.onAutoCompleteInputChange?.(k),A.current=z},de=a.useRef(null);return t.jsx(Up,{ref:de,"data-testid":_("transaction-categorization-list-page"),children:t.jsx(Ut,{...ie,children:t.jsx("form",{id:Ei(qn),onSubmit:ye,style:{height:"100%",width:"100%"},"data-testid":_(Ei(qn)),children:t.jsx($p,{selectedTab:e,sectionId:p,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:T,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:w,onTransactionCategorizationRowClick:u,vendorLoadOptions:me,vendorSearchAutoCompleteData:h,vendorSearchAutoCompleteActions:i,containerRef:de,isCOTEnabled:l,cotTracking:{onCOTView:R},isUncategorizedExpenseCategoryEnabled:$})})})})},Ei=e=>`${e}_form`,Ri=(e,n,d,c,p)=>({[Vt]:n.map(h=>Hp(h.transactionId,h.transactionReviewLocalData,d,c,p)),[Ln]:e}),Hp=(e,n,d,c,p)=>{const{lineItemById:h,sortedLineItems:i,selectedEntity:l}=n,r=Object.values(h).sort((u,x)=>i.indexOf(u.lineId)-i.indexOf(x.lineId)),m=r[0]?.lineId;return{[za]:r.map(u=>{const x=u.account?.qboId??u.account?.accountId,f=u.class?.classId,w=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[Re]:{selectedOption:x,allOptions:ca(d,u.recommendationsWithCOT)},[Qe]:{selectedOption:f,allOptions:la(c,u.recommendationsWithCOT)},[at]:{selectedOption:l?.id??w?.id,defaultOptions:go(p,l??w,n.lineItemById[m]?.recommendationsWithCOT??[])},[Gh]:u.lineEntity,[Zh]:u.recommendationsWithCOT??[]}}),transactionId:e,[Yh]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Xh]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Up=s.div`
1497
+ display: flex;
1498
+ min-height: 100%;
1499
+ width: 100%;
1500
+ height: 100%;
1501
+ flex-direction: column;
1502
+ background-color: ${e=>e.theme.colors.grey4};
1503
+ z-index: 2;
1504
+ `,Di={subSectionContainerLeftRightPadding:new Q(g[3],g[6],g[8])},Wp=s.div`
1505
+ width: 100%;
1506
+ display: flex;
1507
+ justify-content: center;
1508
+ align-items: center;
1509
+ flex: 1;
1510
+ background: ${e=>e.theme.colors.grey4};
1511
+ box-sizing: border-box;
1512
+ `,qp=s.div`
1513
+ display: flex;
1514
+ flex-direction: column;
1515
+ width: 100%;
1516
+ `,Jp=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setResetJeAccountSettingsForm:p,expenseAutomationViewSelector:h,authParams:i,receiptUploadEndpoint:l,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:j,loggedInUser:C,isCOTEnabled:y,setCurrentFooterFormId:I,onFetchRecommendationsForEntityCategorization:L,onFetchRecommendationsForEntityCategorizationWithCustomer:T,onTransactionCategorizationRowClick:A,onFetchMissingReceiptsList:D,onMissingReceiptsRowClick:b,onUploadReceiptAttachment:v,onUploadReceiptComplete:$,onUploadReceiptFetchStatus:R,onReconTabColumnSortConfigChanged:M,onReloadReconciliationListPage:F,onUpdateReconcileTabLocalData:K,onUpdateMissingReceiptsUIState:V,onFetchTransactionCategorizationList:H,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:G,handleJeScheduleClick:O,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:ye,onPostJESchedule:W,setLocalDataForCategoryAndClass:me,resetTransactionCategorizationLocalData:de,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:U,improveMonthEndInsightsUsingZeniGPTClick:P,onRemoveFileAttachment:E,onUpdateFileAttachment:N,onCloseAllThreadsSection:ee,onEditMonthEndInsightsClick:B,previewMonthEndReport:Z,saveMonthEndReport:ae,onOpenFileAttachmentSnackBar:se,onCloseFileAttachmentSnackBar:ve,onClickCustomerRequest:Se,sendMonthEndReport:pe,markAsReview:S,onReloadPage:re,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionCollapseStatus:Le,onFetchReimbursementView:Ce,redirectToVendorDetailPage:he,updateSectionIdsForReview:Ge,onUpdateFluxAnalysisUIState:Ze,fetchFluxViewOnScroll:Pe,onFetchFluxViewList:Ue,setIsJeAccountSettingsOpened:ge,onReviewClicked:We,setOpenDrawerClicked:St,onEstablishConnectionClick:lt,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:Dt,onReconReviewTabColumnSortConfigChanged:Ot,onSaveReconciliation:kt,onSaveReconciliationReview:X,onReconMatchedTransactionClick:le,onReconListPageScroll:je,onAddStatementClick:Me}=e,{currentSelectedView:Te,missingReceipts:Ye,transactionView:Ne,selectedPeriod:Ft,monthEndInsights:it,selectedTransactionCategorizationTab:Wt,reconciliation:on}=h;switch(Te){case"transaction_categorization":return Ne.fetchState==="Completed"&&Ne.transactionLocalData.length===0?t.jsx(wt,{tab:Te,title:He(Te).allDoneText.title,subTitle:He(Te).allDoneText.subTitle}):t.jsx(Vp,{setCurrentFooterFormId:I,selectedPeriod:Ft,selectedTab:Wt,sectionId:Vt,transactionView:Ne,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:G,onFetchTransactionCategorizationList:H,onTransactionCategorizationRowClick:A,setLocalDataForCategoryAndClass:me,resetTransactionCategorizationLocalData:de,updateSelectedVendorForTransaction:k,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:L,onFetchRecommendationsForEntityCategorizationWithCustomer:T,isCOTEnabled:y});case"je_schedules":return t.jsx(lu,{setIsJeAccountSettingsOpened:ge,expenseAutomationViewSelector:h,setResetJeAccountSettingsForm:p,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:I,handleJeScheduleClick:O,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:ye,onPostJESchedule:W,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return Ye.fetchState==="Completed"&&Ye.transactions.length===0?t.jsx(wt,{tab:Te,title:He(Te).allDoneText.title,subTitle:He(Te).allDoneText.subTitle}):t.jsx(Gu,{onUpdateMissingReceiptsUIState:V,onFetchMissingReceiptsList:D,missingReceipts:Ye,receiptUploadEndpoint:l,authParams:i,selectedPeriod:Ft,onMissingReceiptsRowClick:b,onUploadReceiptComplete:$,onUploadReceiptFetchStatus:R,onUploadReceiptAttachment:v});case"month_end_insights":if(it!=null&&h.monthEndCloseChecksView.monthEndCloseChecks!=null){if(it.fetchState==="Not-Started"||it.fetchState==="In-Progress"||it.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||it.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Qa,{fetchState:"In-Progress"});{const ne={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:it.companyName,url:window.location.href},{url:fe,...De}=ne,Ve={...De};return t.jsx(qp,{children:t.jsx(Sh,{allThreadsSectionOpen:j,customerRequestData:w,companyId:r,enableZeniGPTFeature:x,filterMetaData:Ve,selectedPeriod:h.selectedPeriod,improveUsingZeniGPTClick:P,isZeniUser:C.userEmail?.includes("zeni.ai")??!1,monthEndReportView:it,newThreadMetadata:ne,onClickCustomerRequest:Se,onCloseAllThreadsSection:ee,onCloseFileAttachmentSnackBar:ve,onOpenFileAttachmentSnackBar:se,onRemoveFileAttachment:E,onUpdateFileAttachment:N,previewMode:f,previewMonthEndReport:Z,saveMonthEndReport:ae,onEditClick:B,sendMonthEndReport:pe})})}}else return null;case"flux_analysis":return h.fluxAnalysis.fetchStatus.fetchState==="Completed"&&h.fluxAnalysis.sections.generalExpense.vendors.length===0&&h.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(wt,{tab:Te,title:He(Te).allDoneText.title,subTitle:He(Te).allDoneText.subTitle}):t.jsx(Md,{fluxAnalysis:h.fluxAnalysis,selectedPeriod:h.selectedPeriod,markAsReview:S,onReloadPage:re,onBackClick:$e,updateOperatingExpensesIdsForReview:be,updateSectionIdsForReview:Ge,onUpdateFluxAnalysisUIState:Ze,setCurrentFooterFormId:I,fetchFluxViewOnScroll:Pe,onFetchFluxViewList:Ue,updateSectionCollapseStatus:Le,onFetchReimbursementView:Ce,redirectToVendorDetailPage:he});case"reconciliation":return t.jsx(vd,{onReconListPageScroll:je,onReloadReconciliationListPage:F,currentFooterFormId:n,reconciliation:on,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:We,setOpenDrawerClicked:St,setCurrentFooterFormId:I,onReconTabColumnSortConfigChanged:M,onUpdateReconcileTabLocalData:K,onEstablishConnectionClick:lt,onFetchLinkTokenClick:jt,updateReconReviewTabLocalData:Dt,onReconReviewTabColumnSortConfigChanged:Ot,onSaveReconciliation:kt,onSaveReconciliationReview:X,onReconMatchedTransactionClick:le,onAddStatementClick:Me});default:return t.jsx(wt,{tab:Te,title:He(Te).allDoneText.title,subTitle:He(Te).allDoneText.subTitle})}};function Kp(e){const n=ke(),{currentSelectedView:d}=e.expenseAutomationViewSelector,c=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",p=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Wp,{windowSize:n,style:{...p===!0?{paddingLeft:Di.subSectionContainerLeftRightPadding.value(n),paddingRight:Di.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Jp,{...e})})}const Gp=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Zp=e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.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"}),a.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Yp=s.div`
1517
+ width: 100%;
1518
+ height: 100vh;
1519
+ display: flex;
1520
+ flex-direction: column;
1521
+ background: ${e=>e.theme.colors.grey4};
1522
+ box-shadow: ${e=>e.theme.colors.elevation1};
1523
+ `,Xp=s.div`
1524
+ height: 100vh;
1525
+
1526
+ display: flex;
1527
+ flex-direction: column;
1528
+ align-items: center;
1529
+ min-width: 100%;
1530
+ flex: 1;
1531
+
1532
+ ${e=>e.theme.breakpoints.down("md")} {
1533
+ width: 100%;
1534
+ padding-left: ${o.sp0};
1535
+ }
1536
+ `,Oi=s(Ka)`
1537
+ height: ${o.sp3};
1538
+ width: ${o.sp3};
1539
+ cursor: pointer;
1540
+ color: inherit;
1541
+ `,Fi=s(Gp)`
1542
+ height: ${o.sp3};
1543
+ width: ${o.sp3};
1544
+ cursor: pointer;
1545
+ color: inherit;
1546
+ `,{common:{footer:Ee,texts:{maxLimitReached:Qp,confirmAction:em},headers:tm,create:nm,strings:rn,texts:nn,cancel:om,confirm:im,monthsByIndex:am},dateFormat:{visual:{MMMDCommaYYYYformat:Bi}},expenseAutomation:ln}=Ie.getLocalizedStrings(),zm=e=>{const{expenseAutomationViewSelector:n,isDisabled:d,isRealtimeInsightsFeatureEnabled:c,isCOTEnabled:p,onUpdateTab:h,onReconTabUpdate:i,onUpdateStep:l,onSearchTextChanged:r,onRefresh:m,onClose:u,onBack:x,resetTransactionCategorizationLocalData:f,updateOperatingExpensesIdsForReview:w,clearJeScheduleLocalData:j,onSaveReconciliation:C}=e,{currentSelectedView:y,allSteps:I,missingReceipts:L,jeSchedules:T,fluxAnalysis:A,monthEndInsights:D,transactionView:b,selectedTransactionCategorizationTab:v,reconciliation:$,selectedPeriod:R}=n,[M,F]=a.useState("expenseAutomationPage"),[K,V]=a.useState(()=>{}),[H,J]=a.useState(!1),G=ke(),O=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ie=O?Pi:Ni,{openThread:ye,setOpenThread:W}=a.useContext(ie),[me,de]=a.useState(!1),[k,z]=a.useState(!1),U=I.find(X=>X.step===y),{nextStep:P,previousStep:E}=lm(I,y),{uiState:{searchString:N,pageToken:ee},totalCountByTab:B,transactions:Z,fetchStateByTransactionTabs:ae,transactionLocalData:se}=b,{selectedReconAccount:ve,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Se}}}}=$;let pe="Not-Started",S="complete";switch(y){case"missing_receipts":pe=L.refreshStatus.fetchState,S=L.completionStatus;break;case"je_schedules":pe=T.refreshStatus.fetchState,S=T.completionStatus;break;case"month_end_insights":D!=null&&(pe=D?.fetchState);break;case"flux_analysis":pe=A.refreshStatus.fetchState,S=A.completionStatus;break;case"transaction_categorization":pe=b.refreshStatus.fetchState,S=b.completionStatus;break;case"reconciliation":ve==null?(pe=$.refreshStatus.fetchState,S=$.completionStatus):(pe=$.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",S=$.completionStatus)}const re=()=>{K()},{saveStatus:$e,selectedCheckBoxTransactionIds:be}=b,Le=()=>{const X=Ea(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),le=q.dateNow(),{month:je,year:Me}=R,Te=q.dateNow().set("month",je-1).set("year",Me).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:X===!0?Ee.markAsReviewed:nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(n.fluxAnalysis.reviewOperatingExpensesIds.length,xa,G,nn.vendor,y),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:v==="autoCategorized"?Ee.markAsReviewed:Ee.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:$e.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(be.length,q.MAX_SELECTION_LIMIT,G,nn.transaction,y),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{f(v,Z.map(Ye=>Ye.id),R,!1,B[v],q.getLineItemsByTransactionIdsFromLocalData(se,v),ee)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.next,style:{justifyContent:"space-evenly"},isDisabled:d||U?.isNextDisabled,suffixIcon:t.jsx(Oi,{}),onClick:()=>{l(P.step)}},cancelBtn:{label:Ee.back,isDisabled:d||U?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Fi,{}),onClick:()=>{l(E.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Ee.reconcile,backBtnLabel:Ee.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.reconcile,onClick:()=>{C({reconcileAction:"reconcile"})},isDisabled:!($.reconciliationTabsState.balances.variance.amount===0&&le.isAfter(Te)),isLoading:$.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:eo(Se.length,1/0,G,nn.transaction,y),cancelBtn:{onClick:()=>{C({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:$.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Ee.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Ee.save,backBtnLabel:Ee.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,isLoading:T.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>re(),label:Ee.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const Ye=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,Ne=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,Ft=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,it=P.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ne),Wt=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",on=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",ne=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||U?.isNextDisabled===!1),fe=P.step==="month_end_insights"&&(Ne||y==="flux_analysis")?!ne:U?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:it===!0?rm(n.selectedPeriod.month):Ee.next,style:{justifyContent:"space-evenly"},isDisabled:fe,suffixIcon:t.jsx(Oi,{}),onClick:()=>{Wt?h("autoCategorized"):Ye?i("reconcile"):l(P.step)}},cancelBtn:{label:Ee.back,isDisabled:d||U?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Fi,{}),onClick:()=>{on?h("review"):Ft?i("review"):Ye?x():l(E.step)}}}}}},Ce=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{de(!1),w([]),u()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{de(!1),f(v,Z.map(X=>X.id),R,!1,B[v],q.getLineItemsByTransactionIdsFromLocalData(se,v),ee),u()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{de(!1),j(),u()}};default:return{confirmAction:()=>{de(!1)},confirmationDescription:rn.empty}}},he=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?de(!0):u()},{primaryBtn:Ge,cancelBtn:Ze,leftSideComponent:Pe}=Le(),{confirmAction:Ue}=Ce(),ge=X=>{if(y==="transaction_categorization"&&(X==="autoCategorized"||X==="review"))return{hideCountInTab:B[X]>ln.common.numbers.maximumCount,count:B[X],isFetching:ae[X].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:le}=n,{selectedAccountId:je}=le;return je==null?{count:0,isFetching:!1}:X==="review"?{count:le.accountReconciliationsByAccountID[je]?.accountReconEntity?.transactionsToReview.length,isFetching:le.accountReconciliationsByAccountID[je]?.transactionFetchState.fetchState==="In-Progress"}:{count:le.accountReconciliationsByAccountID[je]?.accountReconEntity?.transactionsToReconcile.length,isFetching:le.accountReconciliationsByAccountID[je]?.transactionFetchState.fetchState==="In-Progress"}}},We=y==="reconciliation"&&$.selectedAccountId!=null&&$.selectedReconAccount!=null,{month:St,year:lt}=R,jt=q.dateNow().set("month",St-1).set("year",lt),Dt=jt.startOf("month").format(Bi),Ot=jt.endOf("month").format(Bi),kt=`${Dt} ${rn.hyphen} ${Ot}`;return t.jsxs(Yp,{children:[me?t.jsx(Ua,{containerStyle:{width:356},titleComponent:t.jsx(mm,{children:em}),primaryButtonText:im,secondaryButtonText:om,proceedButtonVariant:"danger",action:{onOkClick:()=>{Ue()},onCancelClick:()=>de(!1)},descriptionComponent:t.jsx(gm,{children:ln.confirmationDescription})}):null,t.jsxs(Xp,{children:[t.jsx(Pr,{onBack:x,navBarCustomElement:y==="reconciliation"&&$.selectedAccountId!=null?t.jsx(sm,{reconciliation:$}):void 0,onReconTabUpdate:i,currentRecontab:$.selectedTab,reconcileDetailPageFetchState:$.selectedAccountId!=null?$.accountReconciliationsByAccountID[$.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:We?$.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:He(y,B.autoCategorized,We?$.selectedAccountId:void 0,We?$.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,We?kt:void 0),searchText:N,currentTab:v,getTabCountAndFetchState:ge,completionStatus:S,forceShowSubtitle:H===!0||y==="je_schedules"&&(T.fetchState==="In-Progress"||T.accountSettingsView.fetchState==="In-Progress"),refreshStatus:pe,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??rn.empty,isZeniUser:O,onAllThreadsClick:()=>{ye!=null&&W(null),z(!0)},onUpdateTab:h,onSearchTextChanged:r,onRefresh:m,onClose:he}),t.jsx(Kp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:J,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:k,setCurrentFooterFormId:F,currentFooterFormId:M,onCloseAllThreadsSection:()=>z(!1)}),t.jsx(ze,{controller:y!=="month_end_insights",children:t.jsx(Vi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:cm(M),primaryBtn:Ge,leftSideComponent:Pe,cancelBtn:Ze,separatorStyle:{marginRight:o.sp4}})})]})]})},sm=({reconciliation:e})=>{const n=bt(),{clearedBalance:d,variance:c,variancePercentage:p,deposits:h,payments:i}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:m}=r??{};return t.jsx(xm,{children:t.jsxs(fm,{children:[t.jsxs(to,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(no,{children:t.jsx(ym,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(so,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(ao,{children:Ke("0,0.00",l)}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(to,{children:[t.jsx(no,{children:t.jsx(wm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(so,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(ao,{children:Ke("0,0.00",d)}),t.jsxs(vm,{children:[t.jsx(io,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(we,{placement:"bottom",title:t.jsxs(Sm,{children:[t.jsxs(_i,{children:[t.jsxs(Mi,{children:[i.count," ",nn.payments]}),t.jsx(zi,{children:Ke("0,0.[00]",i.totalAmount)})]}),t.jsxs(_i,{children:[t.jsxs(Mi,{children:[h.count," ",nn.deposits]}),t.jsx(zi,{children:Ke("0,0.[00]",h.totalAmount)})]})]}),display:"flex",children:t.jsx(bm,{})})]})]})})]}),t.jsxs(to,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(no,{children:t.jsx(Cm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(so,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(ao,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Ke("0,0.00",c)}),p!=null&&c.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${p.toFixed(2)}%)`}):null]}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.variance})]})})]})]})})},eo=(e,n,d,c,p)=>{const h=c,i=(e>1?h+"s":h)+" selected";return e>0?t.jsxs(dm,{currentView:p,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(um,{multiDigit:e>=5,children:e}),t.jsx(hm,{children:i}),e===n?t.jsx(pm,{children:`(${Qp})`}):null]}):null},rm=e=>{const n=am[e];return`${nm}${rn.space}${n}${rn.space}${tm.insights}`};function lm(e,n){const d=e.findIndex(l=>l.step===n);if(d===-1)throw new Error("currentStep not found in allSteps array");const c=(d+1)%e.length,p=(d-1+e.length)%e.length,h=e[c],i=e[p];return{nextStep:h,previousStep:i}}const cm=e=>`${e}_form`,dm=s.div`
1547
+ display: flex;
1548
+ justify-content: flex-start;
1549
+ align-items: center;
1550
+ gap: ${o.sp2};
1551
+ margin-left: ${e=>e.currentView==="flux_analysis"?"36px":o.sp8};
1552
+ `,um=s(mt)`
1553
+ height: 18px;
1554
+ width: ${e=>e.multiDigit?"auto":"18px"};
1555
+ padding: ${o.sp0} 6px;
1556
+ border-radius: ${o.sp12};
1557
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
1558
+ display: flex;
1559
+ justify-content: center;
1560
+ align-items: center;
1561
+ `,hm=s(Be)`
1562
+ color: ${e=>e.theme.colors.primary};
1563
+ `,pm=s(vt)`
1564
+ color: ${tt.important};
1565
+ `,mm=s(Ha)`
1566
+ margin-top: ${o.sp5};
1567
+ padding-left: ${o.sp8};
1568
+ padding-right: ${o.sp8};
1569
+ color: ${e=>e.theme.colors.primary};
1570
+ word-break: break-word;
1571
+ `,gm=s(Wa)`
1572
+ color: ${e=>e.theme.colors.primary};
1573
+ margin-top: ${o.sp2};
1574
+ margin-bottom: ${o.sp2};
1575
+ `,xm=s.div`
1576
+ display: flex;
1577
+ justify-content: center;
1578
+ align-items: center;
1579
+ padding: ${o.sp3} ${o.sp0};
1580
+ `,fm=s.div`
1581
+ width: 100%;
1582
+ display: flex;
1583
+ justify-content: center;
1584
+ align-items: center;
1585
+ gap: ${o.sp1};
1586
+ `,to=s.div`
1587
+ display: flex;
1588
+ justify-content: center;
1589
+ align-items: center;
1590
+ gap: ${o.sp3};
1591
+ `,no=s.div`
1592
+ width: ${o.sp7};
1593
+ height: ${o.sp7};
1594
+ border-radius: 50%;
1595
+ display: flex;
1596
+ justify-content: center;
1597
+ align-items: center;
1598
+ background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
1599
+ `,oo=s.div`
1600
+ display: flex;
1601
+ flex-direction: column;
1602
+ `,io=s(vt)`
1603
+ color: ${e=>e.theme.colors.hero};
1604
+ `,ao=s(Ui)`
1605
+ min-width: 180px;
1606
+ color: ${e=>e.theme.colors.primary};
1607
+ `,ym=s(Ya)`
1608
+ color: ${e=>e.theme.colors.primary};
1609
+ width: ${o.sp4};
1610
+ height: ${o.sp4};
1611
+ `,Cm=s(Xa)`
1612
+ color: ${e=>e.theme.colors.primary};
1613
+ width: ${o.sp4};
1614
+ height: ${o.sp4};
1615
+ `,wm=s(Zp)`
1616
+ color: ${e=>e.theme.colors.primary};
1617
+ width: ${o.sp4};
1618
+ height: ${o.sp4};
1619
+ `,bm=s(Wi)`
1620
+ width: ${o.sp3};
1621
+ height: ${o.sp3};
1622
+ color: ${e=>e.theme.colors.hero};
1623
+ :hover {
1624
+ color: ${e=>e.theme.colors.primary};
1625
+ }
1626
+ `,vm=s.div`
1627
+ display: flex;
1628
+ align-items: center;
1629
+ gap: ${o.sp1};
1630
+ `,Sm=s.div`
1631
+ background-color: ${tt.overlayDark};
1632
+ padding: 2px ${o.sp2};
1633
+ border-radius: ${o.sp1};
1634
+ `,_i=s.div`
1635
+ display: flex;
1636
+ justify-content: space-between;
1637
+ gap: ${o.sp2};
1638
+ `,Mi=s.div`
1639
+ text-transform: capitalize;
1640
+ `,zi=s(vt)`
1641
+ color: ${tt.primaryDark};
1642
+ align-self: "flex-end";
1643
+ `,Xt=s(Et)`
1644
+ border-radius: ${o.sp2};
1645
+ `,so=s.div`
1646
+ display: flex;
1647
+ flex-direction: column;
1648
+ min-width: 180px;
1649
+ gap: ${o.sp1};
1650
+ `;export{mm as ConfirmationPopUpTitle,zm as default,lm as getNextAndPreviousSteps,cm as uniqueFormName};