@zeniai/web-cockpit-ui 1.14.82-qa → 1.14.83-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 (489) hide show
  1. package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +21 -0
  2. package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +539 -0
  3. package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +149 -0
  5. package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +239 -0
  7. package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +298 -0
  8. package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +207 -0
  9. package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +6 -0
  10. package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +344 -0
  11. package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +79 -0
  12. package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +46 -0
  14. package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +71 -0
  15. package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +47 -0
  17. package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +46 -0
  19. package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +1 -0
  20. package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +1 -0
  21. package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +101 -0
  22. package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +79 -0
  23. package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +51 -0
  24. package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +425 -0
  25. package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +266 -0
  26. package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +27 -0
  27. package/dist/assets/{BillPayApprovalRulesPage-DnSLHXWD-DSmkUwYL.js → BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js} +26 -26
  28. package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +84 -0
  29. package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +42 -0
  30. package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +44 -0
  31. package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +1 -0
  32. package/dist/assets/{BoxItem-B5BR_eEi-kP5KFYHN.js → BoxItem-B6Qj2tSj-aLWYhGMW.js} +2 -2
  33. package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +138 -0
  34. package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +21 -0
  35. package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +285 -0
  36. package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +1462 -0
  37. package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +412 -0
  38. package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +711 -0
  39. package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +222 -0
  40. package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +36 -0
  41. package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +60 -0
  42. package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +206 -0
  43. package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +2844 -0
  44. package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +260 -0
  45. package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +42 -0
  46. package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +574 -0
  47. package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +52 -0
  48. package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +1 -0
  49. package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +1 -0
  50. package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +281 -0
  51. package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +224 -0
  52. package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +139 -0
  53. package/dist/assets/{CustomerOnboardingActivationPage-IwlzXBxP-BdmZwork.js → CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js} +12 -12
  54. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DIey8Q_A-CAhQsBP5.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js} +27 -27
  56. package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +66 -0
  57. package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +107 -0
  58. package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +202 -0
  59. package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +1551 -0
  60. package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +371 -0
  61. package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +12 -0
  62. package/dist/assets/{DepositAccTransactionItem-DSqlMEXY-Dj9Ao3uS.js → DepositAccTransactionItem-C36JnddA-CD1u3HOE.js} +12 -12
  63. package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +21 -0
  65. package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +439 -0
  66. package/dist/assets/{DrawerPage-DEK5OjOv-D87uOKo_.js → DrawerPage-BdYS_9Mt-BL0llqyf.js} +22 -22
  67. package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +865 -0
  69. package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +18 -0
  70. package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +149 -0
  71. package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +281 -0
  72. package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +1650 -0
  73. package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +168 -0
  74. package/dist/assets/{FeaturePreviewPage-bAjG281t-DrnFeG_l.js → FeaturePreviewPage-Brau5064-B_mFzC9F.js} +4 -4
  75. package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +390 -0
  76. package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +291 -0
  77. package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +31 -0
  78. package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +79 -0
  79. package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +27 -0
  80. package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +57 -0
  81. package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +171 -0
  82. package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +292 -0
  83. package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +312 -0
  84. package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +739 -0
  85. package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +12 -0
  86. package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +140 -0
  87. package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +532 -0
  88. package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +49 -0
  89. package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +45 -0
  90. package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +16 -0
  91. package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +204 -0
  92. package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +59 -0
  94. package/dist/assets/LabeledText-iHeu8MCf-BqC7UtSs.js +42 -0
  95. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +229 -0
  96. package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +297 -0
  97. package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +98 -0
  98. package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +623 -0
  99. package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +34 -0
  100. package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +1 -0
  103. package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +31 -0
  104. package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +17 -0
  105. package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +21 -0
  106. package/dist/assets/{Menu--_oLyn9M-smBYbUcH.js → Menu-pyYbFxsT-C1MdlXRT.js} +4 -4
  107. package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +110 -0
  108. package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +6 -0
  109. package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +85 -0
  110. package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +30 -0
  111. package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +47 -0
  112. package/dist/assets/{NavigationDots-CXbzdOJY-Dlf0CWZw.js → NavigationDots-DO5y6mdV-DGnlFBBn.js} +3 -3
  113. package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +160 -0
  114. package/dist/assets/{NoDataChart-Bgciu380-CAu9MBCJ.js → NoDataChart-C0lCeeVH-BiooJKO2.js} +5 -5
  115. package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +8 -0
  116. package/dist/assets/{NotFoundPage-BFwyElJE-zt8L6vCM.js → NotFoundPage-DGkjOhKP-kjD5UcP7.js} +9 -9
  117. package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +163 -0
  118. package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +1 -0
  119. package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +685 -0
  120. package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +100 -0
  121. package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +11 -0
  122. package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +107 -0
  123. package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +107 -0
  124. package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +675 -0
  125. package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +1 -0
  126. package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +142 -0
  127. package/dist/assets/{PromoBaseCards-Dq3GfNdL-CiYyqMPd.js → PromoBaseCards-38oPeuBR-DNrev2WE.js} +24 -24
  128. package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +51 -0
  129. package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +79 -0
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +26 -0
  131. package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +237 -0
  132. package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +314 -0
  133. package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +84 -0
  134. package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +140 -0
  135. package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +1 -0
  136. package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +26 -0
  137. package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +150 -0
  138. package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +121 -0
  139. package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +280 -0
  140. package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +290 -0
  141. package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +152 -0
  142. package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +22 -0
  143. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +37 -0
  144. package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +37 -0
  145. package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +324 -0
  146. package/dist/assets/ScreenRoutes-B29orzq3.js +206 -0
  147. package/dist/assets/{SetUpAccountSection-DG7chlm8-BLHxOH6K.js → SetUpAccountSection-DQMufunh-D76vpY_K.js} +87 -87
  148. package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +450 -0
  149. package/dist/assets/SignInScreen-CDr9y3Na.js +1 -0
  150. package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +123 -0
  151. package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +754 -0
  152. package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +230 -0
  153. package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +31 -0
  154. package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +58 -0
  155. package/dist/assets/{StatusSwitcher-Cf6yygg5-aU96XB-t.js → StatusSwitcher-BFs1Anoq-B4RP8Uzy.js} +8 -8
  156. package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +58 -0
  157. package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +1 -0
  158. package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +1 -0
  159. package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +508 -0
  160. package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +66 -0
  161. package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +31 -0
  162. package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +31 -0
  163. package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +38 -0
  164. package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +132 -0
  165. package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +912 -0
  166. package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +147 -0
  167. package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +284 -0
  168. package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +35 -0
  169. package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +80 -0
  170. package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +362 -0
  171. package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +708 -0
  172. package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +505 -0
  173. package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +58 -0
  174. package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +58 -0
  175. package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +16 -0
  176. package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +116 -0
  177. package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +244 -0
  178. package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +67 -0
  179. package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +38 -0
  180. package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +1 -0
  181. package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +1 -0
  182. package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +257 -0
  183. package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +1 -0
  184. package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +175 -0
  185. package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +730 -0
  186. package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +152 -0
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-BKfX93W4-Pl_xnSYx.js → VendorsAccountsSection-tcJAh1A7-COfHef35.js} +8 -8
  189. package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +112 -0
  190. package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +78 -0
  191. package/dist/assets/{VideoPopup-9iierxTj-DxYO2ma4.js → VideoPopup-CPW65Ljn-Mlf95YHy.js} +4 -4
  192. package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +92 -0
  193. package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +300 -0
  194. package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +441 -0
  195. package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +14 -0
  196. package/dist/assets/{ZeniAccountPromoPage-B75rYYNq-Cdz-gLuB.js → ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js} +44 -44
  197. package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +36 -0
  198. package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +1 -0
  199. package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +63 -0
  200. package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +1 -0
  201. package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +1 -0
  202. package/dist/assets/{add-to-wallet-DgdBD8_G-CmJT13gp.js → add-to-wallet-D7W5Y5Hm-zBGkMLf1.js} +1 -1
  203. package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +1 -0
  204. package/dist/assets/{analytics-zoE7Zcxt.js → analytics-CeQu-r45.js} +1 -1
  205. package/dist/assets/{analyticsHelper-De5Bk6iz.js → analyticsHelper-DQrzJx-G.js} +1 -1
  206. package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +1 -0
  207. package/dist/assets/{arrow-south-east-round-PEovUgvH-7DsZUZDF.js → arrow-south-east-round-D5pI7KCC-DyTRFc-f.js} +1 -1
  208. package/dist/assets/{auto-transfer-rule-mbafm5D3-iFkTgScT.js → auto-transfer-rule-D1bNopxW-BXcmbJh5.js} +1 -1
  209. package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +1 -0
  210. package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +1 -0
  211. package/dist/assets/{core-3dlyNYRL.js → core-tlHkQPPu.js} +13 -13
  212. package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +21 -0
  213. package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +38 -0
  214. package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +1 -0
  215. package/dist/assets/{epic-vmWV05sm.js → epic-CxjM8IKD.js} +1 -1
  216. package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +1 -0
  217. package/dist/assets/{getReferrerType-DjPOy76W-Cm31g4vJ.js → getReferrerType-D1egX4iL-cWt5sFuQ.js} +1 -1
  218. package/dist/assets/{gift-box-Cmt9OgIZ-CvUdutGd.js → gift-box-DZx81G9E-DbnUGiwi.js} +1 -1
  219. package/dist/assets/{graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js → graphic-no-data-l-CfhD7tYw-SmhQgAdh.js} +1 -1
  220. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js → graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js} +1 -1
  221. package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +1 -0
  222. package/dist/assets/{handshake-BPg58FML-D7G7L1P7.js → handshake-D4b9T-E0-BvZJz7M_.js} +1 -1
  223. package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +40 -0
  224. package/dist/assets/index-2CdI-B2B.js +29301 -0
  225. package/dist/assets/index-BR5-Z2ox.css +1 -0
  226. package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +3305 -0
  227. package/dist/assets/lexical-l0sNRNKZ.js +1 -0
  228. package/dist/assets/{liveblocks-DIep7fJd.js → liveblocks-BrzOBACZ.js} +1 -1
  229. package/dist/assets/lottie-B4xjt4lE.js +1 -0
  230. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +1 -0
  231. package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +1 -0
  232. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +1 -0
  233. package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +1 -0
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-grmQSWeg-D_GD8drS.js → mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js} +1 -1
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +1 -0
  237. package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +43 -0
  238. package/dist/assets/mui-kiGMfX4-.js +25 -0
  239. package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +1 -0
  240. package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +1 -0
  241. package/dist/assets/{page-detail-CWX5S47F-Bc8Xpsuq.js → page-detail-L_-1iNMr-DCxtcaOg.js} +1 -1
  242. package/dist/assets/{radio-default-CiSgisfh-Clpw2LWj.js → radio-default-H1PowEcP-lvG8v5I_.js} +1 -1
  243. package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +19 -0
  244. package/dist/assets/react-B2-P-PS--DYmRygxV.js +19 -0
  245. package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +17 -0
  246. package/dist/assets/react-CWt3gw2R-CPQu_93E.js +21 -0
  247. package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +7 -0
  248. package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +22 -0
  249. package/dist/assets/react-DBTaojCw-BTbEMBGt.js +6 -0
  250. package/dist/assets/react-G6j-OGKl--ofewKrH.js +34 -0
  251. package/dist/assets/recharts-Diw77Kjb.js +1 -0
  252. package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +1 -0
  253. package/dist/assets/{sentry-o6h_D-9x.js → sentry-Dhk5jNhq.js} +2 -2
  254. package/dist/assets/{shield-DOlUxcFf-BXuToJ7O.js → shield-E_rJ2OWj-kTEIYW8Q.js} +1 -1
  255. package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +1 -0
  256. package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +1 -0
  257. package/dist/assets/{transaction-placeholder-CpOwZAMG-0pwHfQC6.js → transaction-placeholder-BDef7K0p-Dqvh6We2.js} +1 -1
  258. package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +1 -0
  259. package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +286 -0
  260. package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +1 -0
  261. package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +1 -0
  262. package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +1 -0
  263. package/dist/assets/{usp-line-BBd1wKwW-ClwDS-nj.js → usp-line-4JsxsMjK-mCxwNowe.js} +1 -1
  264. package/dist/assets/utils-BLUF9kAp.js +70 -0
  265. package/dist/assets/{zeni-epic-state-LPACxnXP.js → zeni-epic-state-Bo1aGezX.js} +3 -3
  266. package/dist/index.html +1 -1
  267. package/package.json +1 -1
  268. package/dist/assets/ACHDetailsPage-B8cMQbzA-QoREznZf.js +0 -21
  269. package/dist/assets/AIPerformancePage-4acIIZMP-BD4rcuOu.js +0 -539
  270. package/dist/assets/AccountInfoPage-BrydzmjB-DujWmvur.js +0 -18
  271. package/dist/assets/AccountInfoPageContent-DUxplaBp-Bn6gVibV.js +0 -149
  272. package/dist/assets/AccountLockedInfoModal-tHlPMl4Y-CApVc_H1.js +0 -59
  273. package/dist/assets/AccountReconDetailsDrawerPage-U6I-zYEJ-B0ucx4D-.js +0 -239
  274. package/dist/assets/AccountRow-BPUVgiz--DNW_eotg.js +0 -298
  275. package/dist/assets/AccountsPromoCardStack-y8mKetwA-AQ_Xxglh.js +0 -207
  276. package/dist/assets/AddAddressForCardDrawer-mWEDF852-CdCYhjFo.js +0 -6
  277. package/dist/assets/AddToWalletPage-8h9ovxv--CaEOaDLO.js +0 -344
  278. package/dist/assets/AgingReportsPage-DjL0iX3p-BYYrYXHC.js +0 -79
  279. package/dist/assets/AllUserItems-BsXasG5N-vJHLR9Vq.js +0 -192
  280. package/dist/assets/ApAgingDetailPage-D4_EOVXW-Dgx7xU1D.js +0 -46
  281. package/dist/assets/AppBasePage-BzrUji13-Bxhm4UoU.js +0 -71
  282. package/dist/assets/AppDrawerContent-CZvLqK2n-C6mN2GfS.js +0 -91
  283. package/dist/assets/ApprovalRulesSettingsPage-3APmrgde-lIaAXa0F.js +0 -47
  284. package/dist/assets/ArAgingChart-P6KtJIV_-D8j_M9mt.js +0 -24
  285. package/dist/assets/ArAgingDetailPage-Qsa99SU7-BloNTpcM.js +0 -46
  286. package/dist/assets/AttachmentView-C1vDyOg6-DH_M81qd.js +0 -101
  287. package/dist/assets/BankAccountSection-myuKfQST-h6UiX54a.js +0 -79
  288. package/dist/assets/BankAccountWarningSection-gh8laVG2-8WHGkC6b.js +0 -51
  289. package/dist/assets/BankConnectionsSettingsPage-BBWIpyRM-CbkqOWmf.js +0 -425
  290. package/dist/assets/BillDetailPage-CyhFsEGB-CfEd3d2v.js +0 -266
  291. package/dist/assets/BillPayApprovalRuleDetailPage-B3_rA-sq-D6htG4hj.js +0 -27
  292. package/dist/assets/BillPayPromoPage-BbBa3DYn-CTT1AJv_.js +0 -84
  293. package/dist/assets/BillPaySetUpPage-B03pG6jS-BYaV0l36.js +0 -42
  294. package/dist/assets/BillingSettingsPage-C6brwXi1-DrMuC0_a.js +0 -44
  295. package/dist/assets/BillsBulkReviewDrawerPage-CgwBahfX-BAi5StY1.js +0 -1
  296. package/dist/assets/BusinessVerificationPage-BlxdC_nV-CRoC5vv_.js +0 -138
  297. package/dist/assets/CardNumberSubText-CbN8rqBy-CxrUgwDL.js +0 -21
  298. package/dist/assets/CashbackDetailPage-BW_OnL3H-TwiKqlKm.js +0 -285
  299. package/dist/assets/ChargeCardDetailPage-BpKVl3Ea-DgTKjfhm.js +0 -1462
  300. package/dist/assets/ChargeCardListPage-B89QoOTi-udpcE3pY.js +0 -412
  301. package/dist/assets/ChargeCardListTable-CU-J5RcP-vABUXP99.js +0 -711
  302. package/dist/assets/ChargeCardPromoPage-Blp9PieM-DTjcfauy.js +0 -222
  303. package/dist/assets/ChargeCardSetupPage-CXunWgVU-i9rHSEvx.js +0 -36
  304. package/dist/assets/ChargeCardStatementsPage-396WGHBW-BhxBggnK.js +0 -60
  305. package/dist/assets/CheckDepositDrawerPage-C7BVbKlI-BeHXUl7F.js +0 -206
  306. package/dist/assets/CollapsableReportTable-BbW0qlyW-DyXO_zDx.js +0 -2844
  307. package/dist/assets/CompanyOfficerDetailsSection-CEpa9DV0-D9vhw2RD.js +0 -260
  308. package/dist/assets/CompanyPassportCard-tAObqkaq-iwxnmgkk.js +0 -42
  309. package/dist/assets/CompanyPassportPage-BOF33vf6-CUXRwG-1.js +0 -574
  310. package/dist/assets/CompleteProfile-BhnnbqKE-RKYMMUMO.js +0 -52
  311. package/dist/assets/ConfettiBurst-D0oJjMYW-QJkEXbU6.js +0 -1
  312. package/dist/assets/CreateOrEditVendorPage-BfIEfvLQ-kB78TWnm.js +0 -281
  313. package/dist/assets/CreditCardPaymentDrawerPage-jZufhZeW-Oqy4fBeT.js +0 -224
  314. package/dist/assets/CurrencySelectField-eLjU71Cn-CsFzHbrZ.js +0 -139
  315. package/dist/assets/CustomerOnboardingContainerPage-B44-zxPH-CMDYo3gZ.js +0 -1
  316. package/dist/assets/CustomerOnboardingNoStepsPage-CY-Ereo7-BK-sYwc5.js +0 -66
  317. package/dist/assets/CustomerOnboardingPage-TkHlE1kV-DkolYwon.js +0 -107
  318. package/dist/assets/CustomerOnboardingProductSuitePage-CHQxzOJb-BPi6yPi0.js +0 -202
  319. package/dist/assets/Dashboard-DpMzEbb0-Brck0uig.js +0 -1551
  320. package/dist/assets/DashboardReportPage-DoztwEhX-BAwOhd6b.js +0 -371
  321. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl7NKDPX-BsxXYInG.js +0 -12
  322. package/dist/assets/DepositAccTransactionListPage-LM-5wxCN-TkzNrT7m.js +0 -66
  323. package/dist/assets/DomesticWireDetailsPage-DCVbnyiw-C2KvdCXk.js +0 -21
  324. package/dist/assets/DownloadOverlay-Bp_ZXErR-CcaUtk0L.js +0 -439
  325. package/dist/assets/EditPeoplePage-DLIKL_0K-DuLMHlHB.js +0 -55
  326. package/dist/assets/EditReimbursementDetailPage-F_MHrbGF-CSIWdBmP.js +0 -865
  327. package/dist/assets/EntityDetailPage-Ca9C29eU-Bqsn7MUx.js +0 -18
  328. package/dist/assets/EntitySummarySection-CjIHfEiX-Bqh-Y1KC.js +0 -149
  329. package/dist/assets/ExpenseAutomationOverviewPage-UAVNgUOX-jnIeXI7J.js +0 -281
  330. package/dist/assets/ExpenseAutomationPage-DZLhQz2w-Bg9wuLQ8.js +0 -1650
  331. package/dist/assets/ExpressPayPage-DVIOuW0t-BuiMpcJp.js +0 -168
  332. package/dist/assets/FollowStepsSection-B_t3bRMq-B2r3wcZf.js +0 -390
  333. package/dist/assets/GlobalReviewListPage-5RVGNBoL-D-Vele6q.js +0 -291
  334. package/dist/assets/InformationCardStack-Cm-J8hYU-BUAWDqS1.js +0 -31
  335. package/dist/assets/InsightsCardStack-BWy3HRRw-CX-HxXWa.js +0 -79
  336. package/dist/assets/InsightsSection-DjRiKEWC-Cr6IhhWu.js +0 -27
  337. package/dist/assets/IntegrationsSettingsPage-CHjWI8gL-DqQx-9L0.js +0 -57
  338. package/dist/assets/InternationalWireSwiftDetailsPage-DwmOiSec-CYO2odaM.js +0 -171
  339. package/dist/assets/InternationalWireVerificationPage-COckx00_-Bgx5k-8H.js +0 -292
  340. package/dist/assets/InviteFormPage-CmyIJ72X-DNQ7bMWx.js +0 -312
  341. package/dist/assets/InvitePageListView-S-XAzaOd-Dvw-IdlY.js +0 -739
  342. package/dist/assets/InvitePeoplePage-B0HxRKN_-BuMHkErb.js +0 -12
  343. package/dist/assets/InvoiceUploadSection-DnLPeCSG-DkN762J9.js +0 -140
  344. package/dist/assets/IssueChargeCardPage-CoTj6RDV-D720uuzF.js +0 -532
  345. package/dist/assets/LabeledAddressValue-B1ZDT-4q-Br_U5Mdd.js +0 -49
  346. package/dist/assets/LabeledAddressValueField-Di43zVJJ-6iMO4iAq.js +0 -45
  347. package/dist/assets/LabeledControlledCheckBoxField-BSK3oaPb-DmKGOVeW.js +0 -16
  348. package/dist/assets/LabeledCreatableSingleSelectField-BkCk2Mz9-C7ebeCFU.js +0 -204
  349. package/dist/assets/LabeledDocumentField-BtFEcM-5-CsvDCW1i.js +0 -41
  350. package/dist/assets/LabeledDropDownFormattedTextField-CihGYv2Q-DKofK1xj.js +0 -59
  351. package/dist/assets/LabeledText-CxYr4vz2-DuXVsj0l.js +0 -42
  352. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-Bioh8f7m-B9b21QUC.js +0 -229
  353. package/dist/assets/LabeledZeniRolesDropDownField-BgiwWAS6-CxEIVT2a.js +0 -297
  354. package/dist/assets/LinkJETransactionPage-Bc29bXtl-DaPAyHoR.js +0 -98
  355. package/dist/assets/LockCardPage-B10jpxrS-B5lHAfBS.js +0 -623
  356. package/dist/assets/LowBalancePopup-DzUz_bgp-DLuvzpms.js +0 -34
  357. package/dist/assets/MagicLinkACHDetailsPage-7wHBwA8u-xwdU02Xx.js +0 -1
  358. package/dist/assets/MagicLinkDomesticWireDetailsPage-CWW5hX-e-BYSmIeYJ.js +0 -1
  359. package/dist/assets/MagicLinkInternationalWireDetailsPage-Dku8PArB-BfrlVlID.js +0 -1
  360. package/dist/assets/MagicLinkSuccessPage-BaEhnzOs-B7H4VMM0.js +0 -31
  361. package/dist/assets/MagicLinkTitleSection-CO4sR9c2-IxFPpRKV.js +0 -17
  362. package/dist/assets/MailingDetailsSection-Cfd7dekJ-DBH9MqU5.js +0 -21
  363. package/dist/assets/MyBankConnectionsSettingsPage-CnyIOUNb-Bs_sb4fm.js +0 -110
  364. package/dist/assets/MyPendingActivationChargeCardListPage-TRkRTIRl-DovGC0Rd.js +0 -6
  365. package/dist/assets/MyProfileSettingsPage-CNJgwdAc-D3BOrvOy.js +0 -85
  366. package/dist/assets/NavBarWithPicker-B3n6c9cW-D_8N0I6F.js +0 -30
  367. package/dist/assets/NavigationArrow-DerCbJQJ-Dy2Uo0bZ.js +0 -47
  368. package/dist/assets/NewGlobalMerchantPage-B9qfP4b1-B96tKuXA.js +0 -160
  369. package/dist/assets/NoDataTable-XnjjqT1r-B3_0aqvJ.js +0 -8
  370. package/dist/assets/NotificationSettingsPage-rUpktNmE-NwNovwAO.js +0 -163
  371. package/dist/assets/NotificationsListConfig-DxNNUnb--CiwIZV6O.js +0 -1
  372. package/dist/assets/NotificationsPage-LbcVGLzv-B1EkgPei.js +0 -685
  373. package/dist/assets/OpExByVendorPage-NSjf8sPH-Brcdrct-.js +0 -100
  374. package/dist/assets/OverlayContainerPage-BsY9_22w-D4X2D-Vn.js +0 -11
  375. package/dist/assets/PandLWithForecastPage-CYq7gbZF-CtaGQDCG.js +0 -107
  376. package/dist/assets/PaymentAccountSetupBillingAddressSection-C3AQKfIX-DeDbZaLB.js +0 -107
  377. package/dist/assets/PeoplePage-Bz22s7eT-BB51NFk5.js +0 -675
  378. package/dist/assets/Preview-Bnbo8Nq1.js +0 -1
  379. package/dist/assets/ProductsCarousel-Bz_PnE7C-cxvH9Z6K.js +0 -142
  380. package/dist/assets/QBOConnectionDialog-DwZPS4A--BYVcV3mz.js +0 -51
  381. package/dist/assets/QBOSetupSection-CJh_5ZRY-Gen77x-U.js +0 -79
  382. package/dist/assets/ReimbursementApprovalRuleDetailPage-BXDkKqzx-CnoxRHvb.js +0 -26
  383. package/dist/assets/ReimbursementApprovalRulesPage-CE6Qa9rc-DsfUpIo2.js +0 -237
  384. package/dist/assets/ReimbursementDetailPage-CFz0La2v-ChwGh-iV.js +0 -314
  385. package/dist/assets/ReimbursementPromoPage-CNCL_t1V-BdHe-AqH.js +0 -84
  386. package/dist/assets/ReimbursementSetUpPage-uAHJ-tqY-Ctq3ppGe.js +0 -140
  387. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BfrwsaW3-CI3GQwKZ.js +0 -1
  388. package/dist/assets/ReloadCard-DAqlQiuw-BvBgHPRl.js +0 -26
  389. package/dist/assets/ReportTableViewSelector-CKNUdhCi-B6dQOOMe.js +0 -150
  390. package/dist/assets/ReportsPage-m4c_CloE-BcwSUUvY.js +0 -121
  391. package/dist/assets/RevenueChart-CaUcz4_r-DtSpJqMg.js +0 -280
  392. package/dist/assets/ReviewDetailsPage-BtsmuUr9-Co8iNJPK.js +0 -290
  393. package/dist/assets/ReviewOverlay-BHH9brKi-CZdU8di-.js +0 -152
  394. package/dist/assets/RoleWithToolTip-BvpoBPrI-DmLavgXa.js +0 -22
  395. package/dist/assets/ScheduleDetailsFixedAssetsPage-DhDc40Ue-DdVYxWZb.js +0 -37
  396. package/dist/assets/ScheduleDetailsPage-Dy5DPc5g-D-2GAxqt.js +0 -37
  397. package/dist/assets/ScheduleSequenceTable-aZhpn2-_-BqtYc7Bx.js +0 -324
  398. package/dist/assets/ScreenRoutes-B4MI5LwL.js +0 -201
  399. package/dist/assets/SignIn-Ci2pl9iT-C2z2JjnN.js +0 -448
  400. package/dist/assets/SignInScreen-DEvfIHMY.js +0 -1
  401. package/dist/assets/SpendManagementListViewPage-CAf8mKFG-DNzKa1h6.js +0 -123
  402. package/dist/assets/SpendManagementPerTabPage-DVIeImpu-DQKmI-vq.js +0 -754
  403. package/dist/assets/SpendManagementSection-CBs0TeAg-DteqdB0w.js +0 -230
  404. package/dist/assets/StatementItem-BpF3tpOS-pVP7VdrH.js +0 -31
  405. package/dist/assets/StatementsPage-BA98ZlGW-8ChN_n_N.js +0 -58
  406. package/dist/assets/SubTabSwitcher-DCaHOwRF-Bxw9Q5P1.js +0 -58
  407. package/dist/assets/SummaryCard-B8E5cyMH-tRwndYmI.js +0 -1
  408. package/dist/assets/TaskManagementPage-CV18ebqf-B-U9duXU.js +0 -508
  409. package/dist/assets/TimeRangeSwitcher-DY9UawSC-Cs1LO-xg.js +0 -64
  410. package/dist/assets/TimeframeSwitcher-BAK_5aWm-zwGe2MOs.js +0 -31
  411. package/dist/assets/TimeframeSwitcherWithToggle-CK1Q-rG6-C7KTAaOj.js +0 -31
  412. package/dist/assets/TopExCard-Kk7W9fph-xVGnwae8.js +0 -38
  413. package/dist/assets/TopExDetailPage-DvmHTkHv-C7FnkBZP.js +0 -132
  414. package/dist/assets/TransactionDetailPage-CUQgc7YH-BiWFrVNM.js +0 -912
  415. package/dist/assets/TransactionList-B8r57kr8-JQtFj5mL.js +0 -147
  416. package/dist/assets/TransactionListBig-DUU6tKkC-6qFbeKqP.js +0 -284
  417. package/dist/assets/TransactionListPage-DUPJ4NJw-DQCttHfT.js +0 -35
  418. package/dist/assets/TransactionVendorDetailPage-uuKl2SqA-Cdnnhd4G.js +0 -80
  419. package/dist/assets/TransferDrawerPage-DPpKrxR_-BPY2UUYz.js +0 -362
  420. package/dist/assets/TreasuryOverviewPage-BligQLcn-Dt3MscET.js +0 -708
  421. package/dist/assets/TreasuryPromoPage-DzcGPAtW-ClK0ws77.js +0 -505
  422. package/dist/assets/TreasuryStatementsPage-vRiBwJfp-DfX481QS.js +0 -58
  423. package/dist/assets/TreasuryTaxLetterPage-DqGQEDsD-BX0JOd0v.js +0 -58
  424. package/dist/assets/TrendChart-_Lxl6UlW-7VneR-ae.js +0 -16
  425. package/dist/assets/TrendWithTransactions-BHZ8A40V-esUY6L1e.js +0 -116
  426. package/dist/assets/UncategorizedAccountsMappingPage-wnoS0gbf-BjsBl11Y.js +0 -244
  427. package/dist/assets/UnitIntegrationPage-LL_kYuwk-CxSk_CM5.js +0 -67
  428. package/dist/assets/UploadAdditionalDocumentOverlay-CnjAzKXw-fkAsBRZF.js +0 -38
  429. package/dist/assets/Vendor2FAPopup-DWQSvW1O-CN6mFC_J.js +0 -1
  430. package/dist/assets/VendorACHDetailsPage-C-bm6Qhp-BkDKzOJb.js +0 -1
  431. package/dist/assets/VendorDetailPage-BvdwLyYe-BVJ5mK0G.js +0 -257
  432. package/dist/assets/VendorDomesticWireDetailsPage-BW84w9Ry-DRhSpMVt.js +0 -1
  433. package/dist/assets/VendorFiling1099EditablePage-BTBNh-F6-B_DwEBD2.js +0 -175
  434. package/dist/assets/VendorFirstReviewPage-dOgss8oK-DX4Ldk4p.js +0 -730
  435. package/dist/assets/VendorInternationalWireDetailsPage-DAzAM1mu-D1pIRmi_.js +0 -152
  436. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Btjdf2I6-pWFQqjoO.js +0 -1
  437. package/dist/assets/VerifyDevice-Df70OQL0-hx0GB34a.js +0 -112
  438. package/dist/assets/VideoPlayer-BlDaa3e0-bkxApdiI.js +0 -78
  439. package/dist/assets/WarningsDrawerPage-DdoJbKk1-DAHNNVKS.js +0 -92
  440. package/dist/assets/ZeniAccountDetailPage-Df0bngPT-BNlNIXiA.js +0 -300
  441. package/dist/assets/ZeniAccountListViewPage-B66dgraR-B8caf_0z.js +0 -441
  442. package/dist/assets/ZeniAccountNavBarPieces-DsnSMk6--ClKvsTsV.js +0 -14
  443. package/dist/assets/ZeniAccountSetupPage-DetTri71-C8Y-RY39.js +0 -36
  444. package/dist/assets/ZeniCopyright-ag3_XPx6-j9pEHOkN.js +0 -1
  445. package/dist/assets/ZeniTransferAmountSlider-B6VZtpIa-DbUmoBaQ.js +0 -63
  446. package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +0 -1
  447. package/dist/assets/analyticsHelper-DGP9O_15-D_mnGzGe.js +0 -1
  448. package/dist/assets/chartTypes-BUNjh2j0-LyBUQHja.js +0 -1
  449. package/dist/assets/commonDimensions-Csh-Czgf-D-llVddN.js +0 -1
  450. package/dist/assets/dash.all.min-Ba2vGpbn.js +0 -21
  451. package/dist/assets/detailCommon-BSu_Baak-BGOVUxL6.js +0 -38
  452. package/dist/assets/downloadPdf-CqRT2Puf-B5VW-_RV.js +0 -1
  453. package/dist/assets/empty-CnIz-OQ7.js +0 -1
  454. package/dist/assets/empty-DeBX16Fq.js +0 -1
  455. package/dist/assets/hls-BA0yQjS5.js +0 -40
  456. package/dist/assets/index-BsBAi_Kg.js +0 -29300
  457. package/dist/assets/index-BwZxOaMR.js +0 -1
  458. package/dist/assets/index-C3zEY1ql.js +0 -1
  459. package/dist/assets/index-DQmBF4-D.js +0 -3310
  460. package/dist/assets/index-Dg5PDYc0.js +0 -1
  461. package/dist/assets/index-MVH9tD8n.js +0 -1
  462. package/dist/assets/index-t8y498Dk.css +0 -1
  463. package/dist/assets/lexical-DPEnH3HH.js +0 -21
  464. package/dist/assets/lottie-DEE24l2z.js +0 -9
  465. package/dist/assets/mapLoadingInProgressToTreeNode-BdSdrYtM-CmW5Ybyj.js +0 -1
  466. package/dist/assets/mapSectionWithAcOnlyToTreeNode-biS8kQJJ-D--8-VfX.js +0 -1
  467. package/dist/assets/mapSpacerToTreeNode-BpAn8O5Z-Bk93Sdqa.js +0 -1
  468. package/dist/assets/mapTimeframeBalancesToTreeNode-D6asy5O1-BlFe8nci.js +0 -1
  469. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-9hfvdurU-DwkAt0kC.js +0 -1
  470. package/dist/assets/mixin-D3UDm--6.js +0 -43
  471. package/dist/assets/mui-bYXq4XMS.js +0 -25
  472. package/dist/assets/react-B5y9n_ef.js +0 -17
  473. package/dist/assets/react-B84192hO.js +0 -32
  474. package/dist/assets/react-BpmEXSTM.js +0 -27
  475. package/dist/assets/react-BuvI16A0.js +0 -37
  476. package/dist/assets/react-BvHTyLQY.js +0 -29
  477. package/dist/assets/react-CA3XI5Yc.js +0 -16
  478. package/dist/assets/react-Cz0zQhlY.js +0 -31
  479. package/dist/assets/react-Egsc5mMa.js +0 -44
  480. package/dist/assets/recharts-BHhx6CLo.js +0 -73
  481. package/dist/assets/toCOABalancesWithID-CM8Fnmnz-BdclSWP5.js +0 -1
  482. package/dist/assets/toChartData-DVbJJK3l-DxTFUpJ2.js +0 -1
  483. package/dist/assets/types-DyvtCprH-BcZYcgaq.js +0 -1
  484. package/dist/assets/uploadAttachment-BNPqn7_B-m3tLd85K.js +0 -286
  485. package/dist/assets/uploadReceipts-CDPM7zcb-OFvKC_za.js +0 -1
  486. package/dist/assets/url-BScMlxNd.js +0 -1
  487. package/dist/assets/url-XsY5bkGi.js +0 -6
  488. package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +0 -1
  489. package/dist/assets/utils-uDUqNRFY.js +0 -70
@@ -1,1650 +0,0 @@
1
- import{o,bS as ra,q as ve,gb as Xi,gc as Qi,F as Se,V as t,cm as la,a9 as _e,aO as es,u as g,cn as ca,e as bt,bz as da,hZ as ua,aL as We,bQ as Ce,y as X,bt as ha,aK as M,hX as pa,ak as Be,gQ as ma,gJ as ts,bu as ga,bM as Dt,b5 as ns,ag as vt,bI as os,p as Xe,k7 as xa,g0 as fa,al as mt,L as ya,gd as Ca,ge as is,bm as wa,ch as ba,b$ as va,eB as gn,bY as vo,a8 as qt,bL as So,ab as Jt,k8 as Sa,k9 as ja,ka,kb as ln,kc as ss,kd as as,ke as Ia,kf as Po,kg as $a,dl as rs,kh as La,ki as Ta,kj as Aa,kk as Ea,kl as Ra,km as Da,kn as Oa,ko as Fa,kp as Ba,kq as Ma,kr as ls,ks as za,kt as Pa,ku as _a,kv as Na,gs as cs,b1 as Fn,cq as Bn,l as ds,X as us,K as hs,cB as xn,dT as jo,go as Va,fJ as Ha,gS as Ua,ap as Wa,d as qa,fu as Ja,aA as ps,kw as Ka,aS as ko,aN as _o,kx as Ga,ky as Za,gL as ms,kz as Ya,bC as gs,aQ as Xa,gz as Rt,hL as _n,ez as An,cO as Io,ax as Qa,cX as xs,dn as er,iJ as tr,dt as $o,cv as Mn,cy as zn,iq as tt,b as At,hA as nr,gt as Nn,ja as No,dj as fs,c_ as hn,kA as or,aY as ir,ds as ys,n as pn,ig as Cs,ir as xo,kB as nn,dZ as ws,d_ as bs,iM as vs,iN as Ss,kC as sr,cY as Pn,ih as js,fj as ks,er as Vn,aH as Lo,kD as ar,cU as rr,aV as Is,iy as lr,dR as cr,an as ft,kE as dr,kF as ur,a$ as Hn,d6 as hr,a7 as pr,eo as mr,ep as gr,eq as xr,es as Vo,et as Ho,eu as fr,kG as yr,aZ as Cr,eD as wr,eE as br,eF as vr}from"./index-BsBAi_Kg.js";import{a as s,w as $s}from"./core-3dlyNYRL.js";import{n as a,b as Ye,k as To}from"./mui-bYXq4XMS.js";import{bj as Un,gg as Uo,gh as mn,gi as Sr,gj as jr,cy as kr,bO as fo,cz as Ir,eK as Wo,cA as $r,cB as Lr,c3 as Ls,fu as cn,bG as Nt,gk as qo,gl as Tr,b_ as Ar,bp as Vt,gm as Er,gn as Ts,go as As,gp as Es,gq as Rs,gr as Ds,gs as Ao,gt as Rr}from"./zeni-epic-state-LPACxnXP.js";import{r as Os,I as Fs,n as on,R as pt}from"./CollapsableReportTable-BbW0qlyW-DyXO_zDx.js";import{N as Wn}from"./AccountRow-BPUVgiz--DNW_eotg.js";import{o as Bs}from"./mapTimeframeBalancesToTreeNode-D6asy5O1-BlFe8nci.js";import{d as Jo}from"./mapLoadingInProgressToTreeNode-BdSdrYtM-CmW5Ybyj.js";import{h as Dr}from"./VendorsAccountsSection-BKfX93W4-Pl_xnSYx.js";import{u as Or,c as Ko,d as Fr,m as Br}from"./uploadAttachment-BNPqn7_B-m3tLd85K.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const{common:{navBar:{back:Mr},texts:{refresh:zr,close:Pr,copy:_r,copied:Nr,open:Vr}},expenseAutomation:{common:{numbers:{maximumCount:Hr}}}}=Se.getLocalizedStrings(),Ur=a(Va)`
2
- display: flex;
3
- width: ${o.sp4};
4
- height: ${o.sp4};
5
- align-items: center;
6
- justify-content: center;
7
- `,Wr=a.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
- `,qr=a.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
- `,Jr=a.div`
28
- display: flex;
29
- flex-direction: column;
30
- align-items: center;
31
- padding-left: ${e=>Zo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
- padding-right: ${e=>Zo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
- `,Kr=a.div`
34
- display: flex;
35
- align-items: baseline;
36
- justify-content: end;
37
- gap: ${o.sp4};
38
- flex: 1 1 ${o.sp0};
39
- `,Gr=a.div`
40
- display: flex;
41
- align-items: baseline;
42
- justify-content: start;
43
- gap: ${o.sp4};
44
- flex: 1 1 ${o.sp0};
45
- `,Zr=a(Ua)`
46
- width: ${o.sp3};
47
- height: ${o.sp3};
48
- cursor: pointer;
49
- margin-left: ${o.sp1};
50
- color: inherit;
51
- `,Yr=a(Ha)`
52
- width: ${o.sp3};
53
- height: ${o.sp3};
54
- margin-left: ${o.sp1};
55
- color: ${Xe.success};
56
- `,Xr=a(ya)`
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
- `,Qr=a(va)`
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
- `,el=a(ba,{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?Ye`
78
- ${tl} 2s linear infinite;
79
- `:"none"};
80
- &:hover {
81
- color: ${e=>e.theme.colors.primary};
82
- }
83
- `,tl=To`
84
- 0% {
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- transform: rotate(360deg);
89
- }
90
- `,nl=a.div`
91
- padding-top: ${o.sp0};
92
- padding-bottom: ${o.sp0};
93
- `,Go=a(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
- `,ol=a.div`
102
- display: flex;
103
- `,il=a.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
- `,sl=a.div`
112
- display: flex;
113
- height: ${o.sp4};
114
- `,al=a.div`
115
- text-align: center;
116
- display: flex;
117
- align-items: center;
118
- justify-content: center;
119
- flex-wrap: wrap;
120
- `,rl=a.div`
121
- display: flex;
122
- flex-direction: column;
123
- `,ll=a(gn)`
124
- width: ${o.sp3};
125
- height: ${o.sp3};
126
- margin-right: ${o.sp1};
127
- path {
128
- stroke-width: 2;
129
- }
130
- `,yn=a.span`
131
- font-weight: ${vo.regular};
132
- color: ${e=>e.theme.colors.primary};
133
- `,cl=a.span`
134
- font-weight: ${vo.medium};
135
- color: ${e=>e.theme.colors.primary};
136
- `,dl=a.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
- `,Zo={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},ul=({onAllThreadsClick:e,companyId:n,companyName:d})=>{const c={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:d,url:window.location.href},{url:h,...p}=c,i={...p},{threads:l,isLoading:r}=Ca(i,!1,!1),m=l.filter(u=>u.id.includes(is)===!1);return t.jsxs(Wr,{isDisabled:r,onClick:e,"data-testid":M("comment-icon"),children:[t.jsx(wa,{count:m.length,isLoading:r}),t.jsx(Ur,{})]})},hl=({headerData:e,refreshStatus:n,searchText:d,companyName:c,companyId:h,isZeniUser:p,onAllThreadsClick:i,onClose:l,onRefresh:r,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&r()};return t.jsx(Kr,{children:e.rightSection.map((x,y)=>{switch(x){case"search":return t.jsx(pa,{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},y+x);case"refresh":return t.jsx(Ce,{display:"block",placement:"bottom",title:zr,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(el,{onClick:u,$spinning:n==="In-Progress","data-testid":M("refresh-icon")})},y+x);case"comment":return p===!1?null:t.jsx(ul,{companyId:h,companyName:c,onAllThreadsClick:i});case"close":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:Pr,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(Xr,{onClick:l,"data-testid":M("close-icon")})},y+x)}})})},pl=({headerData:e,onBack:n})=>t.jsx(Gr,{children:e.leftSection.map((d,c)=>{switch(d){case"back":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:Mr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(Qr,{onClick:n,"data-testid":M("back-button")})},c+d)}})}),Yo=({text:e,linkText:n,windowSize:d,isCopied:c,onLinkClick:h})=>{if(n==null||!n)return t.jsxs(yn,{windowSize:d,children:[e," "]});const p=e.indexOf(n);if(p===-1)return t.jsxs(yn,{windowSize:d,children:[e," "]});const i=e.substring(0,p),l=e.substring(p+n.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(yn,{windowSize:d,children:[i.trim()," "]}):null,t.jsx(Ce,{display:"flex",placement:"right",title:ts.test(n)?c?Nr:_r:Vr,enterTouchDelay:600,children:t.jsxs(dl,{onClick:()=>h?.(n),"data-testid":M("pre-link"),children:[n,c?t.jsx(Yr,{className:"success-icon"}):t.jsx(Zr,{className:"copy-icon"})]})}),l?t.jsxs(yn,{windowSize:d,children:[l," "]}):null]})},Xo=({subTitles:e})=>{const n=ve(),[,d]=ma(),[c,h]=s.useState(!1),p=s.useRef(null),i=s.useCallback(l=>{ts.test(l)?(d(l),h(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{h(!1)},2e3)):window.open(l,"_blank","noopener,noreferrer")},[d]);return s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),t.jsx(rl,{children:e.map((l,r)=>t.jsxs(al,{children:[l.pre?t.jsx(Yo,{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(ll,{}):t.jsx(t.Fragment,{})}):null,l.bold?t.jsx(t.Fragment,{children:t.jsxs(cl,{windowSize:n,children:[l.bold," "]})}):null,l.post?t.jsx(Yo,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:c,onLinkClick:i}):null]},r+l.bold+l.pre+l.post))})};function ml(e){const{headerData:n,currentTab:d,completionStatus:c,onUpdateTab:h,selectedReconAccountId:p,getTabCountAndFetchState:i,reconcileDetailPageFetchState:l,forceShowSubtitle:r,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:x,navBarCustomElement:y,titleStyle:w={}}=e,b=i("autoCategorized")?.count??0,C=i("review")?.count??0,k=i("reconcile")?.count??0,f=n.tabs.length>0||n.subTitle.length>0,I=m==="transaction_categorization"&&d==="autoCategorized",D=m==="reconciliation"&&x==="review"&&p!=null,T=m==="reconciliation"&&x==="reconcile"&&p!=null,O=I?b>0:D?l==="In-Progress"?!0:C>0:T?l==="In-Progress"?!0:k>0:c!=="complete",S=bt(),j=ve();let E=[];return n.tabs.length>0&&(E=n.tabs.map($=>({label:$.label,id:$.id,countDetails:i($.id)}))),t.jsxs(qr,{children:[t.jsx(da,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:S.colors.grey4,onBackClick:()=>null,titleStyle:w,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(pl,{...e}),rightSideComponent:t.jsx(hl,{...e}),source:"NavBarWithHeader"}),y??null,t.jsx(_e,{controller:f===!0,children:t.jsx(Jr,{windowSize:j,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(nl,{windowSize:j,children:t.jsx(ua,{allTabs:E,selectedTab:m==="transaction_categorization"?d??E[0].id:x??E[0].id,onTabChange:$=>{if(m==="transaction_categorization"){const W=Sr($.id);W!=null&&h(W)}else if(m==="reconciliation"){const W=jr($.id);W!=null&&u(W)}},maximumCountLimit:Hr})}),t.jsx(il,{windowSize:j}),t.jsx(sl,{}),t.jsx(_e,{controller:O===!0||r===!0,children:t.jsx(Go,{windowSize:j,children:n.tabs.map(($,W)=>(m==="reconciliation"?$.id===x:$.id===d)?t.jsx(ol,{children:t.jsx(Xo,{subTitles:$.subTitle})},W+$.id):null)})})]}):t.jsx(_e,{controller:O===!0||r===!0,children:t.jsx(Go,{windowSize:j,children:t.jsx(Xo,{subTitles:n.subTitle})})})})})]})}const gl=1;function xl({name:e,checkBoxes:n,mode:d,isDisabled:c,style:h,labelStyle:p,labelCheckBoxStyle:i,checkBoxStyle:l,width:r,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:x,checkBoxContainerStyle:y,draggable:w=!1,selectionLimit:b,infoIconContainerStyle:C,onDragStart:k,rowHeight:f=40,initialScrollOffSet:I,onScroll:D}){const T=ve(),O=s.useRef(null),{control:S}=Io(),j=n.find(_=>_.groupLabel),E=n.filter(_=>!_.groupLabel),$=[];for(const _ of E)if(_.isException||$.push(_.value),b!=null&&$.length===b+1)break;const W=n.filter(_=>_.defaultChecked).map(_=>_.value);return t.jsx(xs,{control:S,name:e,rules:m,defaultValue:W,render:({field:{value:_,ref:H,onChange:N}})=>{const V=q=>{yl({event:q,value:_,allCheckBoxValues:$,groupLabelCheckBox:j,onChange:N})};return t.jsxs(Cl,{style:h,windowSize:T,children:[j&&t.jsx(Eo,{checkBox:j,index:0,value:_,allCheckBoxValues:$,mode:d,name:e,checkBoxContainerStyle:y,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:w,groupLabelCheckBox:j,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:b,onDragStart:k,ref:H,onChangeHandler:V}),t.jsx(wl,{children:t.jsx(Fn,{style:{height:"100%",width:"100%"},children:({height:q,width:G})=>t.jsx(Bn,{ref:O,height:q,width:G,itemCount:E.length,itemSize:()=>f,estimatedItemSize:f,initialScrollOffset:I??0,onScroll:({scrollOffset:B})=>{D?.(B)},overscanCount:gl,itemKey:B=>E[B].value,itemData:{checkBoxes:E,value:_,allCheckBoxValues:$,mode:d,name:e,checkBoxContainerStyle:y,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:w,groupLabelCheckBox:j,infoIconContainerStyle:C,checkedIconColor:u,isDisabled:c,selectionLimit:b,onDragStart:k,ref:H,onChange:N,handleChangeEvent:V,rowHeight:f},children:fl})})})]})}})}const fl=({index:e,style:n,data:d})=>{const c=s.useRef(null),{checkBoxes:h,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:y,labelStyle:w,width:b,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:f,checkedIconColor:I,isDisabled:D,selectionLimit:T,onDragStart:O,ref:S,handleChangeEvent:j}=d,E=h[e];return t.jsx(Il,{style:{...n,width:"100%"},ref:c,children:t.jsx(Eo,{checkBox:E,index:e,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:y,labelStyle:w,width:b,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:f,checkedIconColor:I,isDisabled:D,selectionLimit:T,onDragStart:O,ref:S,onChangeHandler:j})})},Eo=s.forwardRef((e,n)=>{const{value:d,checkBox:c,groupLabelCheckBox:h,allCheckBoxValues:p,selectionLimit:i,mode:l,checkBoxStyle:r,labelCheckBoxStyle:m,isDisabled:u,draggable:x,checkBoxContainerStyle:y,infoIconContainerStyle:w,name:b,index:C,width:k,checkedIconColor:f,checkBoxIconStyle:I,labelStyle:D,onDragStart:T,onChangeHandler:O}=e,S=ve(),j=_=>{typeof n=="function"?n(_):n&&(n.current=_)};let E=d.includes(c.value);const $=Array.from(new Set([...d,c.value]));h?.value===c.value&&d.length>0&&(i!=null?E=$.length===p.length||$.length===i+1:E=p.every(_=>$.includes(_)===!0));const W=()=>l==="off"||c.isException?S==="small"?{display:"none",...r}:{visibility:"hidden",...r}:c.groupLabel?p.length===1&&p[0]===h?.value?{visibility:"hidden",...m}:m:r;return t.jsxs(vl,{mode:l,draggable:x===!0,onDragStart:_=>{T?.(_,c.value)},style:y,isDisabled:u,isSelected:E,exceptionMode:c.exceptionMode,children:[c.prefix?t.jsx(bl,{className:"prefix-box",children:c.prefix}):null,c.isException?t.jsx(Sl,{style:w,className:"checkbox-alert",children:t.jsx(Ce,{style:{padding:`12px ${o.sp3}`},title:c.exceptionInfo??"",placement:"bottom-start",children:c.exceptionType==="info"?t.jsx(jl,{}):t.jsx(kl,{})})}):t.jsx(ar,{name:`${b}.${c.value}`,checkBoxValue:c.value,value:E,checkedIconColor:f,isDisabled:u||!c.groupLabel&&!E&&i!=null&&$.length===i+1?"disabled":void 0,checkBoxStyle:W(),checkBoxIconStyle:I,ref:j,onChange:O}),typeof c.label=="string"&&c.label?t.jsx(rr,{isDisabled:u,label:c.label,labelStyle:D,htmlFor:`${b}.${c.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:k,backgroundColor:"inherit",...D}}):c.label]},`${c.value}_${C}`)});Eo.displayName="CheckBoxWithLabel";const yl=({event:e,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:h})=>{const p=e.currentTarget.value,i=e.currentTarget.checked,l=c?.value,r=new Set(n);if(p===l){h(i?Array.from(new Set([l,...d])):[]);return}i?r.add(p):r.delete(p);const m=d.every(u=>r.has(u));l!=null&&(m&&!r.has(l)?r.add(l):!m&&r.has(l)&&r.delete(l)),h(Array.from(r))},Cl=a.div`
155
- display: flex;
156
- flex-direction: column;
157
- width: 100%;
158
- height: 100%;
159
- `,wl=a.div`
160
- flex: 1;
161
- overflow: hidden;
162
- `,bl=a.div`
163
- opacity: 0;
164
- `,vl=a.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"&&Ye`
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"&&Ye`
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"&&Ye`
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"&&Ye`
213
- :hover {
214
- .checkbox-alert {
215
- opacity: 1;
216
- }
217
- }
218
- `}
219
-
220
- ${e=>e.exceptionMode==="checked_or_hover"&&Ye`
221
- .checkbox-alert {
222
- opacity: 1;
223
- }
224
- `}
225
- `,Sl=a.div`
226
- cursor: pointer;
227
- `,jl=a(os)`
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
- `,kl=a(ks)`
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
- `,Il=a.div`
240
- width: 100%;
241
- box-sizing: border-box;
242
- `,$l=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),Ll=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),Tl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),Al=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),El=a.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
- `,Rl=a(Ll)`
251
- width: 90px;
252
- height: 90px;
253
- `,Dl=a(Tl)`
254
- width: 90px;
255
- height: 90px;
256
- `,Ol=a($l)`
257
- width: 90px;
258
- height: 90px;
259
- `,Fl=a(Al)`
260
- width: 90px;
261
- height: 90px;
262
- `,Bl=a.div`
263
- display: flex;
264
- align-items: center;
265
- justify-content: center;
266
- flex-direction: column;
267
- `,Ml=a(Wa)`
268
- margin-top: ${o.sp2};
269
- color: ${e=>e.theme.colors.brandColorJade};
270
- `,zl=a(qa)`
271
- color: ${e=>e.theme.colors.primary};
272
- `,Pl=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(Rl,{});case"je_schedules":case"reconciliation":return t.jsx(Fl,{});case"flux_analysis":return t.jsx(Ol,{});case"missing_receipts":default:return t.jsx(Dl,{})}};function wt(e){const{title:n,subTitle:d}=e;return t.jsx(El,{children:t.jsxs(Bl,{children:[t.jsx(Pl,{...e}),t.jsx(Ml,{children:n}),t.jsx(zl,{children:d})]})})}const{common:{headers:{transactions:_l,jeSchedules:Nl,fluxAnalysis:Vl,missingReceipts:Hl,insights:Ul,reconciliation:Qo},strings:{empty:zt}},expenseAutomation:{transactions:{tabs:ei,subTitles:{review:{item1:Cn,item2:wn},autoCategorized:{item1:bn,item2:Wl}},searchPlaceholder:ql,allDoneText:Jl},jeSchedules:{subTitles:{item1:Kl,item2:Gl},searchPlaceholder:Zl,allDoneText:Yl},missingReceipts:{subTitles:Xl,searchPlaceholder:Ql,allDoneText:ec},fluxAnalysis:{subTitles:{item1:tc,item2:nc},searchPlaceholder:oc,emptyPageTexts:{youDidIt:ic,allReviewed:sc}},accountRecon:{review:{allDoneText:ti},reconcile:{allDoneText:ac},tabs:ni,titles:{item1:rc,item2:lc},subTitles:{review:{item1:cc,item2:vn},reconcile:{item1:Sn,item2:dc}}}}}=Se.getLocalizedStrings(),Ne=(e,n,d,c,h)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:_l,subTitle:[],tabs:[{label:ei.review,id:"review",subTitle:[{pre:Cn.pre,bold:Cn.bold,prefixIconName:Cn.prefixIconName,post:Cn.post},{pre:wn.pre,bold:wn.bold,prefixIconName:wn.prefixIconName,post:wn.post}]},{label:ei.autoCategorized,id:"autoCategorized",subTitle:[{pre:bn.pre,bold:bn.bold,prefixIconName:bn.prefixIconName,post:bn.post.replace("#number",n!=null&&n!=0?n.toString():"")},Wl]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:ql,allDoneText:Jl};case"je_schedules":return{key:"je_schedules",title:Nl,subTitle:[Kl,Gl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Zl,allDoneText:Yl};case"missing_receipts":return{key:"missing_receipts",title:Hl,subTitle:[Xl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ql,allDoneText:ec};case"flux_analysis":return{key:"flux_analysis",title:Vl,subTitle:[tc,nc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:oc,allDoneText:{title:ic,subTitle:sc}};case"month_end_insights":return{key:"month_end_insights",title:Ul,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}};case"reconciliation":return d==null?{key:"reconciliation",title:Qo,subTitle:[rc,lc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}}:{key:"reconciliation",title:c??Qo,subText:h??void 0,subTitle:[],tabs:[{label:ni.review,id:"review",subTitle:[cc,{pre:vn.pre,bold:vn.bold,prefixIconName:vn.prefixIconName,post:vn.post}],allDoneText:ti},{label:ni.reconcile,id:"reconcile",subTitle:[{pre:Sn.pre,bold:Sn.bold,prefixIconName:Sn.prefixIconName,post:Sn.post},dc],allDoneText:ac}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:zt,allDoneText:ti}}},{common:{strings:{empty:uc}},expenseAutomation:{accountRecon:{reconcile:{header:Ot}}}}=Se.getLocalizedStrings(),hc={key:"date",value:Ot.date,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginLeft:g[4],marginRight:g[3]}},pc={key:"clearedDate",value:Ot.clearedDate,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3],display:"none"}},mc={key:"type",value:Ot.type,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},gc={key:"payee",value:Ot.payee,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},xc={key:"account",value:Ot.account,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},fc={key:"transactionDirection",value:Ot.direction,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},yc={key:"memo",value:Ot.memo,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Cc={key:"amount",value:Ot.amount,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},wc={key:"recommended",value:uc,sortOrder:"ascending",width:new X(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}},Re=[hc,pc,mc,gc,xc,fc,yc,Cc,wc],bc=50,rn={sortKey:"date",sortOrder:"descending"};function vc({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const d=ve(),[c,h]=s.useState(Lo(Re));s.useEffect(()=>{const l=[...c];for(const r of l)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";h(l)},[e.sortKey,e.sortOrder]);const p=(l,r)=>{let m=r;e.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),n(l,m)},i=l=>{p(l.key,l.sortOrder)};return t.jsx(Ic,{headerHeight:bc,children:c.map(l=>t.jsx(jc,{columnWidth:l.width,windowSize:d,sortDataValue:e.sortKey,actualDataValue:l.key,style:l.customStyle,children:t.jsxs(Ec,{isVisible:l.key!=="recommended",children:[t.jsx(kc,{"data-testid":M("reconcile-tab-list-sort",l.value),onClick:()=>i(l),children:t.jsx(mt,{children:l.value})}),t.jsx($c,{sortConfig:e,headerData:l,children:t.jsx(Lc,{})}),t.jsx(Tc,{isVisible:e.sortKey===l.key&&(e.sortKey!==rn.sortKey||e.sortOrder!==rn.sortOrder),children:t.jsx(Ac,{"data-testid":M("reconcile-tab-list-reset-sort",rn.sortKey),onClick:()=>n(rn.sortKey,rn.sortOrder)})})]})},l.key))})}const Sc=$s.memo(vc),jc=a.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
- `,kc=a.div`
286
- display: flex;
287
- gap: 5px;
288
- cursor: pointer;
289
- `,Ic=a(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
- `,$c=a.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
- `,Lc=a(Mn)`
307
- width: ${o.sp2};
308
- height: ${o.sp2};
309
- `,Tc=a.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
- `,Ac=a(zn)`
319
- width: 12px;
320
- height: 12px;
321
- `,Ec=a.div`
322
- display: ${e=>e.isVisible?"flex":"none"};
323
- `,Rc=54,Dc=72,{common:{strings:{hyphen:qn}}}=Se.getLocalizedStrings(),{dateFormat:oi}=Se.getLocalizedStrings();function Oc({selectedTransactionIds:e,transaction:n,transactionId:d}){const c=ve(),h=bt(),[p,i]=s.useState(!1),l=e.includes(d),r=p||l;return t.jsx(Fc,{id:d,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(Bc,{isSelected:r,totalHeight:Rc,children:[t.jsx(gt,{windowSize:c,responsiveWidth:Re[0].width,style:Re[0].customStyle,children:t.jsx(Pt,{isSelected:r,children:n.date.format(oi.visual.MMMDCommaYYYYformat)})}),Re[1].customStyle.display!=="none"?t.jsx(gt,{windowSize:c,responsiveWidth:Re[1].width,style:Re[1].customStyle,children:t.jsx(Pt,{isSelected:r,children:n.clearedDate!=null?n.clearedDate.format(oi.visual.MMMDCommaYYYYformat):t.jsx("span",{children:qn})})}):null,t.jsx(gt,{windowSize:c,style:Re[2].customStyle,responsiveWidth:Re[2].width,children:t.jsx(Pc,{isSelected:r,children:t.jsx(Mc,{isSelected:r,children:sr(n.type)})})}),t.jsx(gt,{windowSize:c,style:Re[3].customStyle,responsiveWidth:Re[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(tt,{text:n.merchantName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(Pt,{isSelected:r,children:t.jsx("span",{children:qn})})}),t.jsx(gt,{windowSize:c,style:Re[4].customStyle,responsiveWidth:Re[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(tt,{text:n.accountName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(Pt,{isSelected:r,children:t.jsx("span",{children:qn})})}),t.jsx(gt,{windowSize:c,style:Re[5].customStyle,responsiveWidth:Re[5].width,children:t.jsx(Pt,{isSelected:r,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(gt,{windowSize:c,style:Re[6].customStyle,responsiveWidth:Re[6].width,children:t.jsx(tt,{text:n.memo,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}})}),t.jsx(gt,{windowSize:c,style:Re[7].customStyle,responsiveWidth:Re[7].width,children:t.jsx(Pt,{isSelected:r,children:We("0,0.[00]",n.amount)})}),t.jsx(gt,{windowSize:c,responsiveWidth:Re[8].width,style:Re[8].customStyle,children:t.jsx(Pt,{isSelected:r,children:n.isZeniRecommended?t.jsx(zc,{}):null})})]})})}const Fc=a.div`
324
- box-sizing: border-box;
325
- width: 100%;
326
- display: flex;
327
- padding-right: ${o.sp8};
328
- `,Bc=a.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=a.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
- `,Pt=a(Be)`
351
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
- span {
353
- padding-left: ${o.sp3};
354
- }
355
- `,Mc=a(mt)`
356
- text-transform: capitalize;
357
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
- `,zc=a(gn)`
359
- width: ${o.sp3};
360
- height: ${o.sp3};
361
- margin-right: ${o.sp1};
362
- path {
363
- stroke-width: 2;
364
- }
365
- `,Pc=a.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
- `,_c=Se.getLocalizedStrings(),{common:{all:ii,strings:{empty:si}}}=_c,ai="selectedTransactionIds",Nc="expenseAutomationBankReconReconcilePage",Vc=e=>`${e}_form`;function Hc({currentFooterFormId:e,localData:n,matchedTransactions:d,sortConfig:c,onSaveReconciliation:h,selectedAccountId:p,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r}){const m=qt({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Sc,{onReconTabColumnSortConfigChanged:i,sortConfig:c}),value:ii.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},x=d.map(C=>({label:t.jsx(Oc,{transaction:C,selectedTransactionIds:n.selectedTransactionIds,transactionId:C.id}),value:C.id,defaultChecked:!1,groupLabel:!1})),y=[u,...x],w=async C=>{const k=C[ai].filter(f=>f!=ii.toLocaleLowerCase());l(k)};s.useEffect(()=>{const C=m.watch(k=>{k!=null&&xn(()=>w(k))});return()=>{C.unsubscribe()}}),s.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const b=s.useCallback(()=>{h({reconcileAction:"reconcile"})},[h]);if(d.length===0){const C=Ne("reconciliation",void 0,p).tabs.find(k=>k.id==="reconcile")?.allDoneText;return t.jsx(Jc,{children:t.jsx(wt,{tab:"missing_receipts",title:C?.title??si,subTitle:C?.subTitle??si})})}return t.jsx(Uc,{children:t.jsx(Jt,{...m,children:t.jsx(Wc,{onSubmit:m.handleSubmit(b),id:Vc(Nc),children:t.jsx(qc,{children:t.jsx(xl,{name:ai,checkBoxes:y,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:Dc,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Uc=a.div``,Wc=a.form``,qc=a.div`
370
- height: calc(100vh - 350px);
371
- `,Jc=a.div`
372
- height: 100%;
373
- display: flex;
374
- justify-content: center;
375
- align-items: center;
376
- `,yo=69,pe={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},Ms=a.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
- `,zs=a.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
- `,Ps=a.div`
393
- width: 100%;
394
- `,_s=a.div`
395
- width: 100%;
396
- `,Ro=a.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
- `,Do=a.div`
404
- display: flex;
405
- flex-direction: row;
406
- justify-content: space-between;
407
- padding: ${o.sp2};
408
- padding-right: ${o.sp3};
409
- `,Kc=a.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
- `,Gc=a.div`
417
- padding: ${o.sp2} ${o.sp3};
418
- `,Oo=a.div`
419
- display: flex;
420
- `,Zc=a.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
- `,Fo=a.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=a.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=a.div`
477
- padding: ${o.sp2} ${o.sp3};
478
- `,te=a(mt)`
479
- color: ${e=>e.theme.colors.hero};
480
- `,ue=a(Be)`
481
- width: 100%;
482
- color: ${e=>e.theme.colors.hero};
483
- white-space: nowrap;
484
- overflow: hidden;
485
- text-overflow: ellipsis;
486
- `,ie=a.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
- `,Bo=a.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
- `,Mo=a.div`
511
- flex: 1;
512
- `,Ns=a(mt)`
513
- padding: ${o.sp0} 6px;
514
- color: ${Xe.info};
515
- border: 1px solid ${Xe.info};
516
- border-radius: ${o.sp1};
517
- margin-top: ${o.sp1};
518
- `,En=a(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
- `,Ue=a(En)`
524
- padding: 2px ${o.sp2};
525
- `,Zt=Se.getLocalizedStrings().expenseAutomation.accountRecon.review.header,yt=[{key:"date",value:Zt.date,sortOrder:"ascending",width:new X(20,20),loaderWidth:120},{key:"payee",value:Zt.payee,sortOrder:"ascending",width:new X(20,20),loaderWidth:212},{key:"memo",value:Zt.memo,sortOrder:"ascending",width:new X(20,20),loaderWidth:192},{key:"direction",value:Zt.direction,sortOrder:"ascending",width:new X(15,15),loaderWidth:84},{key:"match",value:Zt.match,sortOrder:"ascending",width:new X(15,15),loaderWidth:152},{key:"amount",value:Zt.amount,sortOrder:"ascending",width:new X(10,10),loaderWidth:64}],Yc=e=>{const{sortConfig:n,onColumnSortConfigChanged:d}=e,c=ve(),[h,p]=s.useState(Lo(yt));s.useEffect(()=>{const l=[...h];for(const r of l)r.key===n.sortKey?r.sortOrder=n.sortOrder:r.sortOrder="ascending";p(l)},[n.sortKey,n.sortOrder]);const i=(l,r)=>{let m=r;n.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),d(l,m)};return t.jsx(Qc,{children:h.map(l=>t.jsxs(ed,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:c,isLastColumn:l.key==="amount",children:[t.jsxs(td,{"data-testid":M("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>i(l.key,l.sortOrder),children:[t.jsx(mt,{children:l.value}),t.jsx(nd,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(od,{})})]}),t.jsx(id,{sortDataValue:n.sortKey,windowSize:c,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(sd,{"data-testid":M("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},l.key))})},Xc=$s.memo(Yc),Qc=a(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
- `,ed=a.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
- `,td=a.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
- `,nd=a.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"?Ye`
560
- padding-top: 2px;
561
- `:Ye`
562
- padding-bottom: 2px;
563
- `}
564
- `,od=a(Mn)`
565
- width: ${o.sp2};
566
- height: ${o.sp2};
567
- cursor: pointer;
568
- color: inherit;
569
- `,id=a.div`
570
- display: ${e=>e.isVisible?"flex":"none"};
571
- align-items: center;
572
- padding-top: 2px;
573
- `,sd=a(zn)`
574
- width: 12px;
575
- height: 12px;
576
- cursor: pointer;
577
- color: ${e=>e.theme.colors.hero};
578
- `,rt="accountReconReviewTableSection",{dateFormat:ad,expenseAutomation:rd,common:ht}=Se.getLocalizedStrings(),{visual:Vs}=ad,{accountRecon:xe}=rd,Hs=e=>[{label:xe.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Us=e=>[{label:xe.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],ri=e=>`${rt}_${e}_form`,Te=(e,n)=>`${rt}.${e}.${n}`,ld=e=>{const{sortKey:n,sortOrder:d,accountReconEntity:c,entitySearchAutoCompleteActions:h,allAccountList:p,classList:i,localData:l,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:y,saveFetchById:w,reviewTabSelectedVendorByTransactionId:b,refreshStatus:C,updateLocalData:k,onColumnSortConfigChanged:f,onSaveReconciliation:I,onSaveReconciliationReview:D,onReconMatchedTransactionClick:T,bankAccounts:O,creditCards:S}=e,{transactionsToReview:j}=c,E=s.useRef(null),[$,W]=s.useState(null),_=N=>{const V=j[N],q=Ts(V),G=As(V),B=Es(V),ce=Rs(V),fe=Ds(V),Z=Ao(V),Q=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===$?G||B||ce||fe||Z?275+(Q?25:0):q?185+V.recommendedAction.recommendedTransactions.length*40+(Q?25:0):146:72},H=s.useMemo(()=>({onColumnSortConfigChanged:f,sortConfig:{sortKey:n,sortOrder:d}}),[f,n,d]);if(s.useEffect(()=>{W(j[0]?.transactionId??null),E.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[$]),s.useEffect(()=>{E.current?.resetAfterIndex(0)},[j.length]),s.useEffect(()=>{C.fetchState==="Completed"&&E.current?.resetAfterIndex(0)},[C]),j.length===0){const N=Ne("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(Ad,{children:t.jsx(wt,{tab:"reconciliation",title:N?.title??ht.strings.empty,subTitle:N?.subTitle??ht.strings.empty})})}return t.jsx(xd,{children:t.jsx(Ws.Provider,{value:H,children:t.jsx(Fn,{children:({height:N,width:V})=>t.jsx(Bn,{width:V,height:N,innerElementType:qs,ref:E,itemCount:j.length,itemSize:_,itemKey:q=>j[q].transactionId,overscanCount:tr,itemData:{transactionsList:j,expandedRowId:$,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:y,saveFetchById:w,reviewTabSelectedVendorByTransactionId:b,bankAccounts:O,creditCards:S,updateLocalData:k,setExpandedRowId:W,onSaveReconciliation:I,onSaveReconciliationReview:D,onReconMatchedTransactionClick:T},initialScrollOffset:0,children:cd})})})})},Ws=s.createContext(void 0),qs=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext(Ws);return t.jsxs(fd,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx(Xc,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(yd,{children:d})]})});qs.displayName="Account recon review table inner element type";const cd=({index:e,style:n,data:d})=>{const{transactionsList:c,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,allAccountList:l,classList:r,localData:m,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:y,entitySearchAutoCompleteData:w,onSaveReconciliation:b,onSaveReconciliationReview:C,onReconMatchedTransactionClick:k,excludeFetchById:f,saveFetchById:I,reviewTabSelectedVendorByTransactionId:D,bankAccounts:T,creditCards:O}=d,S=c[e];return t.jsx(gd,{style:{...n,width:"100%"},children:t.jsx(dd,{transaction:S,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:w,classListNestedAccountHierarchy:y,onSaveReconciliation:b,onSaveReconciliationReview:C,onReconMatchedTransactionClick:k,excludeFetchById:f,saveFetchById:I,selectedVendor:D[S.transactionId],bankAccounts:T,creditCards:O})})},dd=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,allAccountList:h,classList:p,classListNestedAccountHierarchy:i,localData:l,entitySearchAutoCompleteData:r,excludeFetchById:m,saveFetchById:u,selectedVendor:x,bankAccounts:y,creditCards:w,setExpandedRowId:b,updateLocalData:C,onSaveReconciliation:k,onSaveReconciliationReview:f,onReconMatchedTransactionClick:I})=>{const D=n===e.transactionId,T=ve(),O=l[e.transactionId],S=e.recommendedAction.action==="record_bill_payment",j=e.recommendedAction.action==="record_expense",E=Ao(e),$=h.find(H=>H.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),W=H=>H.recommendedAction.recommendedTransactions.length>0&&H.recommendedAction.recommendedTransactions[0].merchantName!=null?H.recommendedAction.recommendedTransactions[0].merchantName:ht.strings.hyphen,_=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(hd,{isExpanded:D,children:[t.jsxs(pd,{isExpanded:D,onClick:()=>b(e.transactionId),"data-testid":M("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Xt,{windowSize:T,responsiveWidth:yt[0].width,children:t.jsx(Yt,{children:e.transactionDate.format(Vs.MMMDCommaYYYYformat)})}),t.jsx(Xt,{windowSize:T,responsiveWidth:yt[1].width,children:t.jsx(Yt,{children:t.jsx(tt,{itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"},text:W(e)})})}),t.jsx(Xt,{windowSize:T,responsiveWidth:yt[2].width,children:t.jsx(Yt,{children:t.jsx(tt,{itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Xt,{windowSize:T,responsiveWidth:yt[3].width,children:t.jsx(Yt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Xt,{windowSize:T,responsiveWidth:yt[4].width,children:[t.jsx(_e,{controller:S,children:t.jsx(Ed,{children:t.jsx(Rd,{children:xe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(_e,{controller:!S,children:t.jsx(Yt,{children:$!=null?t.jsxs(t.Fragment,{children:[t.jsx(Js,{}),t.jsx(tt,{itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"},text:$.accountName})]}):ht.strings.hyphen})})]}),t.jsx(Xt,{windowSize:T,isLastColumn:!0,responsiveWidth:yt[5].width,children:t.jsx(Yt,{children:Is("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(_e,{controller:D&&O!=null,children:[t.jsx(ud,{onSaveReconciliation:k,onSaveReconciliationReview:f,updateLocalData:C,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:y,creditCards:w,onReconMatchedTransactionClick:I}),t.jsx(_e,{controller:(S||j||E)&&_!=null,children:t.jsx(Od,{children:t.jsxs(Fd,{children:[xe.review.bankDetail,ht.strings.colon," ",_]})})})]})]})},ud=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:d,allAccountList:c,classList:h,classListNestedAccountHierarchy:p,localData:i,entitySearchAutoCompleteData:l,excludeFetchById:r,saveFetchById:m,selectedVendor:u,bankAccounts:x,creditCards:y,updateLocalData:w,onSaveReconciliation:b,onSaveReconciliationReview:C,onReconMatchedTransactionClick:k})=>{const f=bt(),[I,D]=s.useState(!i.vendor?.id),[T,O]=s.useState(!i.customer?.id),[S,j]=s.useState(i.categoryId==null),[E,$]=s.useState(i.classId==null),[W,_]=s.useState(i.bankAccountId==null),[H,N]=s.useState(i.creditCardId==null),[V,q]=s.useState(!i.memo),G=Ts(e),B=As(e),ce=Rs(e),fe=Es(e),Z=Ds(e),Q=Ao(e),oe=s.useMemo(()=>{if(!B&&!Q)return Rt(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Rt(n,u?.recommendations);const v=c.find(je=>je.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),re=v!=null?{...v,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return Rt(n,[{account:re}])},[B,Q,u,e.recommendedAction.recommendedTransactions,c,n]),L=s.useMemo(()=>{if(!B&&!Q)return An(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return An(p,u?.recommendations);const v=h.find(je=>je.classId===e.recommendedAction.recommendedTransactions[0]?.classId),re=v!=null?{...v,reason:xe.review.zeniGptRecommendation,min:0,max:0}:void 0;return An(p,[{class:re}])},[B,Q,u,e.recommendedAction.recommendedTransactions,h,p]),F=qt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>li(e,i,oe,c,L,x,y,l),[e,i,L,c,oe,x,y,l]),values:s.useMemo(()=>li(e,i,oe,c,L,x,y,l),[e,i,L,c,oe,x,y,l])}),U=async(v,re)=>{v.includes("memo")||w(ci(re,e,l,c),e.transactionId,v.includes("vendor"))};s.useEffect(()=>{const v=F.watch((re,{name:je})=>{je!=null&&re!=null&&xn(()=>U(je,re))});return()=>{v.unsubscribe()}});const J=s.useCallback(v=>{if(B||Z||Q){if((B||Q)&&i.vendor==null){D(!1),F.setError(Te(e.transactionId,"vendor"),{type:"required"});return}if(Z&&i.customer==null){O(!1),F.setError(Te(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){j(!1),F.setError(Te(e.transactionId,"category"),{type:"required"});return}}w(ci(v,e,l,c),e.transactionId,!1),C(e.transactionId)},[B,Q,Z,w,e,l,c,C,i.categoryId,i.vendor,i.customer]),A=F.watch(Te(e.transactionId,"vendor")),z=F.watch(Te(e.transactionId,"customer")),ee=s.useRef(),me=s.useMemo(()=>B||Q?"vendor":Z?"customer":null,[B,Q,Z]),R=(v,re)=>{me!=null&&d.onAutoCompleteInputChange?.(v,me),ee.current=re};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&((B||Q)&&ee.current?.(Cs(l.entityAutoCompleteView)),Z&&ee.current?.(ur(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,Z,B,Q]);const se=v=>h.filter(re=>re.classId===v)[0]?.accountingClassNumber??void 0,P=v=>c.filter(re=>re.qboId===v)[0]?.qboId,K=s.useMemo(()=>{switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}},[e.recommendedAction.action]),be=()=>{j(!1)},$e=()=>{_(!1)},he=()=>{N(!1)};return s.useEffect(()=>{S===!1&&i.categoryId==null&&F.setFocus(Te(e.transactionId,"category"))},[S]),s.useEffect(()=>{E===!1&&i.classId==null&&F.setFocus(Te(e.transactionId,"class"))},[E]),s.useEffect(()=>{I===!1&&i.vendor==null&&F.setFocus(Te(e.transactionId,"vendor"))},[I]),s.useEffect(()=>{T===!1&&i.customer==null&&F.setFocus(Te(e.transactionId,"customer"))},[T]),s.useEffect(()=>{W===!1&&i.bankAccountId==null&&F.setFocus(Te(e.transactionId,"bankAccount"))},[W]),s.useEffect(()=>{H===!1&&i.creditCardId==null&&F.setFocus(Te(e.transactionId,"creditCard"))},[H]),t.jsx(Jt,{...F,children:t.jsx("form",{onSubmit:F.handleSubmit(J),id:ri(e.transactionId),children:t.jsxs(md,{children:[t.jsxs(Cd,{children:[t.jsxs(vd,{children:[t.jsxs(Sd,{children:[t.jsx(Js,{}),t.jsx(Hn,{label:{label:G?xe.review.formLabels.match:xe.review.formLabels.categorize},radioField:{name:Te(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(_e,{controller:!G,children:t.jsxs(t.Fragment,{children:[t.jsx(di,{}),K.map(v=>t.jsx(Hn,{label:{label:xe.review.formLabels[v]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Te(e.transactionId,"recommendedActionType"),id:v,value:v,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},v))]})})]}),t.jsxs(bd,{children:[t.jsx(pn,{variant:"secondary",size:"small",label:xe.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":M("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{b({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(pn,{form:ri(e.transactionId),"data-testid":M("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(_e,{controller:B||Z||Q,children:t.jsxs(Jn,{children:[t.jsx(_e,{controller:B||Q,children:t.jsx(ft,{onClickAway:()=>{i.vendor==null&&I===!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.vendor}),t.jsx(ie,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:I===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),D(!1)},"data-testid":M("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.addVendor]}):t.jsx(xo,{name:Te(e.transactionId,"vendor"),allowEmpty:!1,placeholder:xe.review.formLabels.addVendor,valueToId:v=>v,defaultValue:{selectedOption:A?.selectedOption,defaultOptions:A?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:v=>!!v.selectedOption},loadOptions:R})})})]})})})}),t.jsx(_e,{controller:Z,children:t.jsx(ft,{onClickAway:()=>{i.customer==null&&T===!1&&O(!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(ie,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:T===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),O(!1)},"data-testid":M("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.addCustomer]}):t.jsx(xo,{name:Te(e.transactionId,"customer"),allowEmpty:!1,placeholder:xe.review.formLabels.addCustomer,valueToId:v=>v,defaultValue:{selectedOption:z?.selectedOption,defaultOptions:z?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:v=>!!v.selectedOption},loadOptions:R})})})]})})})}),t.jsx(ft,{onClickAway:()=>{i.categoryId==null&&S===!1&&j(!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(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:S===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),be()},"data-testid":M("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.addCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Te(e.transactionId,"category"),placeholder:xe.review.formLabels.addCategory,valueToId:v=>P(v),defaultValue:{allOptions:oe,selectedOption:c.find(v=>v.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:jn})})})]})})}),t.jsx(ft,{onClickAway:()=>{i.classId==null&&E===!1&&$(!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(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:E===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),$(!1)},"data-testid":M("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.addClass]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Te(e.transactionId,"class"),placeholder:xe.review.formLabels.addClass,valueToId:v=>se(v),defaultValue:{allOptions:L,selectedOption:i.classId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:jn})})})]})})})]})}),t.jsx(_e,{controller:G,children:t.jsxs(jd,{children:[t.jsxs(kd,{children:[t.jsx("span",{className:"matched-text",children:`${xe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),xe.review.matchesFoundFullInfo]}),t.jsx($d,{children:e.recommendedAction.recommendedTransactions.map(v=>v.bookTransactionId!=null?t.jsxs(Ld,{children:[t.jsx(Hn,{label:{label:t.jsxs(Id,{children:[t.jsx(Be,{children:v.date.format(Vs.MMMDCommaYYYYformat)}),t.jsx(Be,{children:v.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Te(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:v.bookTransactionId,value:v.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(Dd,{"data-testid":M("account-reconciliation-review-matched-transaction-amount",v.bookTransactionId),onClick:()=>{v.bookTransactionId!=null&&k(v.bookTransactionId)},children:[t.jsx(Td,{children:Is("0,0.00",v.amount.amount,v.amount.currencySymbol)}),t.jsx(di,{})]})]},v.bookTransactionId):null)})]})}),t.jsx(_e,{controller:ce,children:t.jsx(Jn,{children:t.jsx(ft,{onClickAway:()=>{i.bankAccountId==null&&W===!1&&_(!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(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:W===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),$e()},"data-testid":M("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.selectAccount]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Te(e.transactionId,"bankAccount"),placeholder:xe.review.formLabels.selectAccount,defaultValue:{allOptions:Hs(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:jn})})})]})})})})}),t.jsx(_e,{controller:fe,children:t.jsx(Jn,{children:t.jsx(ft,{onClickAway:()=>{i.creditCardId==null&&H===!1&&N(!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(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:H===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),he()},"data-testid":M("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.selectCard]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Te(e.transactionId,"creditCard"),placeholder:xe.review.formLabels.selectCard,defaultValue:{allOptions:Us(y),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:jn})})})]})})})})}),t.jsx(_e,{controller:!G,children:t.jsx(wd,{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(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(ue,{onClick:v=>{v.stopPropagation(),q(!1)},"data-testid":M("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),xe.review.formLabels.addMemo]}):t.jsx(hr,{name:Te(e.transactionId,"memo"),placeholder:xe.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},jn={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}`})},li=(e,n,d,c,h,p,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:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:Hs(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Us(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:js(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:yr(n?.customer,l.entityAutoCompleteView)}}}}},ci=(e,n,d,c)=>{const{vendor:h,customer:p}=e[rt][n.transactionId];let i;if(h.selectedOption!=null){const r=h.defaultOptions.find(m=>m.value===h.selectedOption);if(r!=null)i={id:h.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let l;if(p.selectedOption!=null){const r=p.defaultOptions.find(m=>m.value===p.selectedOption);if(r!=null)l={id:p.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(l={id:m.zeniId,name:m.name})}}return{categoryId:c.find(r=>r.qboId===e[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}},Yt=a(Be)`
579
- display: flex;
580
- align-items: center;
581
- column-gap: ${o.sp1};
582
- `,Xt=a.div`
583
- width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
584
- display: flex;
585
- justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
586
- `,hd=a.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
- `,pd=a.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
- `,md=a.div`
611
- padding: ${o.sp2} ${o.sp4};
612
- display: flex;
613
- flex-direction: column;
614
- row-gap: ${o.sp2};
615
- `,gd=a.div`
616
- top: ${o.sp0};
617
- left: ${o.sp0};
618
- box-sizing: border-box;
619
- `,xd=a.div`
620
- height: calc(100vh - 350px);
621
- max-width: 99.9%;
622
- padding: ${o.sp0};
623
- `,fd=a.div``,yd=a.div`
624
- position: relative;
625
- width: auto;
626
- height: 100%;
627
- display: flex;
628
- flex-direction: column;
629
- row-gap: ${o.sp3};
630
- `,Cd=a.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
- `,Jn=a.div`
639
- display: flex;
640
- flex-direction: row;
641
- align-items: center;
642
- column-gap: ${o.sp3};
643
- `,wd=a.div`
644
- width: 100%;
645
- `,bd=a.div`
646
- display: flex;
647
- flex-direction: row;
648
- align-items: center;
649
- column-gap: ${o.sp3};
650
- `,vd=a.div`
651
- display: flex;
652
- flex-direction: row;
653
- align-items: center;
654
- column-gap: ${o.sp6};
655
- `,Sd=a.div`
656
- display: flex;
657
- flex-direction: row;
658
- align-items: center;
659
- column-gap: ${o.sp1};
660
- `,_t=a(Pn)`
661
- width: ${o.sp3};
662
- height: ${o.sp3};
663
- `,di=a(Cr)`
664
- width: ${o.sp3};
665
- height: ${o.sp3};
666
- color: ${e=>e.theme.colors.hero};
667
- `,jd=a.div`
668
- display: flex;
669
- flex-direction: column;
670
- row-gap: ${o.sp3};
671
- padding: ${o.sp0} 12px;
672
- `,kd=a(Be)`
673
- color: ${e=>e.theme.colors.primary};
674
-
675
- .matched-text {
676
- font-weight: ${vo.bold};
677
- }
678
- `,Id=a.div`
679
- display: flex;
680
- align-items: center;
681
- column-gap: ${o.sp2};
682
- `,$d=a.div`
683
- display: flex;
684
- flex-direction: column;
685
- row-gap: ${o.sp2};
686
- `,Ld=a.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=a(Be)`
694
- color: ${e=>e.theme.colors.hero};
695
- `,Ad=a.div`
696
- height: 100%;
697
- display: flex;
698
- justify-content: center;
699
- align-items: center;
700
- `,Ed=a.div`
701
- border: 1px solid ${e=>e.theme.colors.grey2};
702
- padding: ${o.sp0} ${o.sp1};
703
- border-radius: ${o.sp1};
704
- `,Rd=a(mt)`
705
- color: ${e=>e.theme.colors.hero};
706
- `,Dd=a.div`
707
- display: flex;
708
- align-items: center;
709
- column-gap: 20px;
710
- cursor: pointer;
711
- `,Od=a.div`
712
- text-align: center;
713
- padding: ${o.sp1} ${o.sp0};
714
- border-top: 1px solid ${e=>e.theme.colors.grey3};
715
- `,Fd=a(mt)`
716
- color: ${e=>e.theme.colors.hero};
717
- `,Js=a(gn)`
718
- width: ${o.sp3};
719
- height: ${o.sp3};
720
- margin-right: ${o.sp1};
721
- path {
722
- stroke-width: 2;
723
- }
724
- `,Bd=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:d,currentFooterFormId:c,entitySearchAutoCompleteActions:h,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:l,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:y})=>{const{accountReconciliationsByAccountID:w,reconciliationTabsState:{reconcile:{uiState:{sortKey:b,sortOrder:C}}},selectedReconAccount:k}=e,f=w[d],{transactionFetchState:I}=k??{};return I?.fetchState==="In-Progress"||I?.fetchState==="Not-Started"?t.jsxs(ui,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(Md,{children:yt.map(D=>t.jsx(Dt,{width:D.loaderWidth,height:18},D.key))}),t.jsxs(Pd,{children:[...Array(3).fill(0).map((D,T)=>t.jsx(zd,{children:yt.map(O=>t.jsx(Dt,{width:O.loaderWidth,height:g[4]},O.key))},`${T}_${D}`))]})]}):t.jsx(ui,{children:e.selectedTab==="reconcile"?t.jsx(Hc,{selectedAccountId:d,currentFooterFormId:c,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:u,sortConfig:{sortKey:b,sortOrder:C},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:f?.accountReconEntity.transactionsToReconcile}):t.jsx(ld,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[d]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[d].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:r,entitySearchAutoCompleteActions:h,onColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:y,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:d,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},ui=a.div`
725
- width: 100%;
726
- height: 100%;
727
- `,Md=a.div`
728
- display: flex;
729
- justify-content: space-between;
730
- padding: ${o.sp3} ${o.sp4};
731
- column-gap: ${o.sp6};
732
- `,zd=a.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
- `,Pd=a.div`
742
- display: flex;
743
- gap: ${o.sp3};
744
- flex-direction: column;
745
- `;function _d({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 Nd({account:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=pt("ac_group_report",[],d);return{children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"ac_group_report",title:d,data:e,numOfBalances:n},config:h}}}function Vd({title:e,section:n,config:d,numOfBalances:c,nodeId:h}){return{children:[],id:h??pt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:c},config:d}}}function hi({section:e,allAccountReconciliations:n,title:d,subTitle:c,isLastNode:h,isTitleRowRequired:p,config:i}){const l=pt("section",[],d),r={children:[],id:l,isLastNode:h,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:0},config:i}};if(p){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=Vd({title:c,section:e,config:i,numOfBalances:0});return r.children.push(m),e.accountIDs.forEach((u,x)=>{const y=n[u],w=Nd({account:y,numOfBalances:0,title:y.accountReconEntity.account.accountName,isLastNode:x===e.accountIDs.length-1,config:i});r.children.push(w)}),r}function Ks({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}}}function Hd(e,n){return n?Wn("section")+Wn("total")+e*Wn("ac_group_report"):1/0}const Ud=(e,n,d,c,h=!0,p="assets")=>{const i=p==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,l=Ks({config:n,accountReconForSection:i}),r=[];r.push(l);const m=Array.isArray(d[c])?d[c]:[],{expenseAutomation:{accountRecon:{reconciliation:u}},common:{loading:x}}=Se.getLocalizedStrings(),y=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",w=b=>b.filter(C=>!m.includes(C));if(y)[...Array(3)].forEach((b,C)=>{r.push(_d({title:`${C}+${x}`,config:n}))});else{const b=w(e.accountReconciliationBySectionID.assets.accountIDs),C=hi({section:{...e.accountReconciliationBySectionID.assets,accountIDs:b},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.assets.title,subTitle:u.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(r.push(C),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const k=w(e.accountReconciliationBySectionID.liabilities.accountIDs),f=hi({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:k},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.liabilities.title,subTitle:u.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});r.push(f)}}return{config:n,headerNodes:h?[l]:[],contentNodes:r}};function Wd(e,n,d,c=!1,h="assets"){Object.assign(e.config,d);const p=h==="liabilities"&&n.accountReconciliationBySectionID.liabilities.accountIDs.length>0?n.accountReconciliationBySectionID.liabilities:n.accountReconciliationBySectionID.assets,i=Ks({config:d,accountReconForSection:p});return{config:d,headerNodes:c?[i]:[],contentNodes:[i,...e.contentNodes.slice(1)]}}const Co={wrapperPadding:new X(g[2],g[2],g[2],g[8]),contentPaddingLeft:new X(g[2],g[2],g[2],g[2]),contentPaddingRight:new X(g[2],g[2],g[2],g[2])},qd=a.div`
746
- display: flex;
747
- height: 100%;
748
- width: 100%;
749
- justify-content: center;
750
- align-items: center;
751
- `,Jd=a.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
- `,Kd=a.div`
761
- width: 100%;
762
- height: 100%;
763
- `,{common:Gd}=Se.getLocalizedStrings();function Zd({reconciliation:e,companyId:n,onScroll:d,onReload:c,onReviewClicked:h,setOpenDrawerClicked:p,onFetchLinkTokenClick:i,onEstablishConnectionClick:l,onAddStatementClick:r}){const[m,u]=s.useState(void 0),[x,y]=s.useState(void 0),w=e.plaidConnectionDetails.link_account_no_microdeposit,b=e.plaidConnectionDetails.update_account,C=x==="update_account"?b:w,[k,f]=s.useState(C.linkToken??null),[I,D]=s.useState(!1),{useDynamicConfig:T}=us(),{configValue:O}=T(hs.accountReconGLAccountsConfig),S=s.useCallback(P=>{u(P),y("link_account_no_microdeposit")},[]),j=s.useCallback(P=>{const K=_.current.accountReconciliationsByAccountID[P]?.paymentAccountId;u(P),y("update_account"),i("update_account",K)},[]),E=s.useCallback(P=>{p(P)},[]),$=s.useRef(m),W=s.useRef(x),_=s.useRef(e);s.useEffect(()=>{$.current=m},[m]),s.useEffect(()=>{W.current=x},[x]),s.useEffect(()=>{_.current=e},[e]);const H=s.useCallback(P=>{l(P,$.current??"",W.current),u(void 0),y(void 0),D(!1)},[l]),N=s.useCallback((P,K)=>{P!=null&&console.log("Plaid Connection Error",P,K),u(void 0),y(void 0),D(!1)},[]),{open:V,ready:q}=Ja({token:k,onSuccess:H,onExit:N});s.useEffect(()=>{(fo(new Date().toISOString()).isAfter(C.expiration)||C.linkToken==null)&&C.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[C.fetchStatus.fetchState]),s.useEffect(()=>{!I&&x!=null&&C.linkToken===k&&C.fetchStatus.fetchState==="Completed"&&q&&D(!0)},[q,k,C.fetchStatus.fetchState,C.linkToken,x,I]),s.useEffect(()=>{C.fetchStatus.fetchState==="Completed"&&C.linkToken!=null&&C.linkToken!==k&&f(C.linkToken)},[C.fetchStatus.fetchState,C.linkToken,k]),s.useEffect(()=>{I&&V()},[I,V]);const[G,B]=s.useState(void 0),[ce,fe]=s.useState(void 0),[Z,Q]=s.useState("assets"),oe=fo("2025-03-31"),L=1,F="account_reconciliation",U=ve(),J=bt(),A=!0,z=Array.isArray(O?.[n])?O[n]:[],ee=e.accountReconciliationBySectionID.assets.accountIDs.filter(P=>!z.includes(P)).length,me=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,R=Hd(ee,me),se=s.useCallback(P=>{const K=P.scrollTop>=R?"liabilities":"assets";K!==Z&&Q(K),d?.(P)},[R,Z,d]);return s.useEffect(()=>{const P={reportId:F,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:oe,firstMonthOfFY:L,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:h,onConnectClicked:S,onReconnectClicked:j,onOpenDrawerClicked:E,onStatementAddClicked:r}};if(G==null||!ps(ce,e)){const K=Ud(e,P,O,n,A,Z);fe(e),B(K)}else{const K=Wd(G,e,P,A,Z);B(K)}},[e,Z]),e.fetchStatus.fetchState==="Error"?t.jsx(qd,{children:t.jsx(Ka,{onReload:c,message:Gd.errorMessage.somethingWentWrong})}):t.jsx(Jd,{windowSize:U,children:G!=null?t.jsx(Kd,{windowSize:U,children:t.jsx(Fs,{backgroundColor:new ko(J.colors.grey4),rootNodes:G,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:A,isStickyName:A},treeNodePadding:{left:Co.contentPaddingLeft.value(U),right:Co.contentPaddingRight.value(U)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:se})}):null})}function Yd({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:d,reconciliation:c,companyId:h,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:y,onAddStatementClick:w,onReconReviewTabColumnSortConfigChanged:b,onSaveReconciliation:C,onSaveReconciliationReview:k,setOpenDrawerClicked:f,onReconMatchedTransactionClick:I,onReconListPageScroll:D}){return c.selectedAccountId==null?t.jsx(Zd,{companyId:h,onScroll:D,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:y,setOpenDrawerClicked:f,onAddStatementClick:w}):t.jsx(Bd,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:p,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:b,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:C,onSaveReconciliationReview:k,onReconMatchedTransactionClick:I})}function Xd({accountAndClassReport:e,numOfBalances:n,title:d,isLastNode:c,isFirstNode:h,config:p,parentNodeIDs:i,ancestorMetadata:l}){let r="";return e.accountBase&&e.classBase?r=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?r=e.accountBase.accountId:e.classBase&&(r=e.classBase.classId),{children:[],id:pt("flux_vendor_account_class_row",i,r),isLastNode:c,isFirstNode:h,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:d,data:e,metadata:l,numOfBalances:n},config:p}}}function Qd({vendorView:e,numOfBalances:n,title:d,isLastNode:c,config:h,parentNodeIDs:p}){const i=pt("flux_vendor_row",p,e.vendor.id),l={children:[],id:i,isLastNode:c,reportElementData:{element:{kind:"flux_vendor_row",title:d,data:e,numOfBalances:n},config:h}},r=e.vendorAccountsAndClasses;return l.children=r.map((m,u)=>Xd({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:h,isLastNode:u===r.length-1,isFirstNode:u===0,parentNodeIDs:[...p,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:u===r.length-1,isFirstNode:u===0,name:m.accountBase?.accountName},isVendorLastChild:c,vendorId:e.vendor.id}})),l}function eu({section:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=e.sectionId,i={children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:n,sectionType:e.sectionId},config:h}},l=(e.vendors??[]).map((r,m)=>Qd({vendorView:r,numOfBalances:n,title:r.vendor.name,isLastNode:m===e.vendors.length-1,config:h,parentNodeIDs:[p]}));return i.children.push(...l),i}function tu({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 nu({title:e,data:n,isLastNode:d,config:c,numOfBalances:h}){const p=pt("total",[],e);return{children:[],id:p,isLastNode:d,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:h},config:c}}}const{common:kn,expenseAutomation:{fluxAnalysis:ou}}=Se.getLocalizedStrings(),iu=(e,n,d=!0)=>{const c=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,h=e.sections.generalExpense.balancesByMonth?on(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?on(e.sections.reimbursement.balancesByMonth):[],p=Bs({balances:h,config:n}),i=[],l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(l===!0)i.push(tu({title:`${kn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{i.push(Jo({title:`${u}+${kn.loading}`,balances:h,config:n}))});else{if(i.push(p),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const x=on(u.balancesByMonth);i.push(eu({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:su(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?on(e.totalBalancesAndVariance.balancesByMonth):[],u=nu({title:kn.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(Jo({title:`${u}+${kn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:d&&!l?[p]:[],contentNodes:i}},su=e=>ou.sectionTitle[e];function au(e,n,d,c=!0){Object.assign(e.config,n);const h=ru(d),p=Bs({balances:h,config:n});return{config:n,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const ru=e=>e.sections.generalExpense.balancesByMonth?on(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?on(e.sections.reimbursement.balancesByMonth):[],wo={contentPaddingLeft:new X(g[0],g[0],g[0]),contentPaddingRight:new X(g[3],g[3],g[8]),wrapperPadding:new X(g[3],g[3],g[8])},lu=a.div`
764
- display: flex;
765
- position: sticky;
766
- width: 100%;
767
- justify-content: center;
768
- padding-top: ${e=>wo.wrapperPadding.valuePx(e.windowSize)};
769
- padding-left: 20px;
770
- background-color: ${e=>e.theme.colors.grey4};
771
- `,cu=a.div`
772
- width: 100%;
773
- height: calc(100vh - ${o.sp11});
774
- `,du=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=ve(),u=bt(),[x,y]=s.useState(null),[w,b]=s.useState(null),[C,k]=s.useState(null),f=Wo([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[I,D]=s.useState(!1),T=_o(f),O=_o(n.refreshStatus.fetchState),S=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},j=()=>Object.keys(n.uiState.collapsableStatus).reduce((N,V)=>(N[V]=n.uiState.collapsableStatus[V],N),{}),E=s.useCallback(N=>{const V=!(n.uiState.collapsableStatus[N]??!0);i({...n.uiState.collapsableStatus,[N]:V})},[n.uiState.collapsableStatus,i]),$=s.useCallback((N,V)=>{let q=n.reviewOperatingExpensesIds;const G=[];let B=n.selectedSectionIds;const ce=n.sections[N].vendors;G.push(...ce.map(Z=>Z.fluxAnalysisEntityId));let fe=Os-q.length;V?(G.forEach(Z=>{!q.includes(Z)&&fe>0&&(q=[...q,Z],fe--)}),B=[...B,N]):(q=q.filter(Z=>!G.includes(Z)),B=B.filter(Z=>Z!==N)),c(q),h(B)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,h]),W=s.useCallback(N=>{const V=n.uiState.collapsableStatus[N]===!1;N==="generalExpense"&&!V&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),E(N)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,E]),_=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,H=N=>N<_;return s.useEffect(()=>{const N={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:D,onSectionRowClick:W,updateNodeCollapsableStatus:E,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:$,onSortOrderChanged:p}};if(x==null||!ps(w,n)){const V=iu(n,N,!0);b(n),y(V)}else{const V=au(x,N,n,!0);y(V)}},[n,w,d,$,W,p,E,c]),t.jsx(lu,{windowSize:m,children:t.jsx(cu,{children:x?t.jsx(Fs,{backgroundColor:new ko(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:wo.contentPaddingLeft.value(m),right:wo.contentPaddingRight.value(m)},nodeOpenStatus:j(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:H,itemCount:_,loadMoreItems:S},variableNodeHeightTree:{prevFetchState:T??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:I,setIsSortApplied:D,reducedFetchState:Wo([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:O??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:C,setHoveredParentId:k}}):null})})},uu="expenseAutomationFluxPage",{reports:{common:hu}}=Se.getLocalizedStrings(),pu=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:d,markAsReview:c,onReloadPage:h,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:l,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:x})=>{const{fetchStatus:y,reviewOperatingExpensesIds:w,uiState:b}=n,C=s.useRef(null),k=s.useRef(!1),f=qt({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:mu(w)}),I=ve();s.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),s.useEffect(()=>{k.current&&C?.current?.scrollLeft!=null&&b.scrollPosition?.scrollLeft!==C.current.scrollLeft&&b.scrollPosition!=null&&r({scrollPosition:{scrollTop:b.scrollPosition?.scrollTop,scrollLeft:C.current.scrollLeft}})},[b.scrollPosition?.scrollLeft,C.current?.scrollLeft,b.scrollPosition,r]),s.useEffect(()=>{p(w.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[w,p]);const D=j=>{m(j)},T=j=>{u(e,j)},O=(j,E)=>{r({sortOrder:j,sortKey:E}),d(),x(e,null,!1)},S=()=>{const j=Gs(n.sections,w);c(w,j===!0?"review":"unreview",e,!0)};if(y.fetchState==="Error")return t.jsxs(xu,{children:[t.jsx(fu,{onClick:h,children:t.jsx(So,{})}),t.jsx(yu,{children:hu.failed})]});{const j=$=>{r({collapsableStatus:$})},E=$=>{x(e,$,!0)};return t.jsx(Jt,{...f,children:t.jsx("form",{id:Sa(uu),onSubmit:f.handleSubmit(S),style:{height:"100%",width:"100%"},children:t.jsx(gu,{windowSize:I,children:t.jsx(du,{fluxView:n,handleRedirectToVendorDetailPage:D,onSortOrderChanged:O,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:j,fetchReimbursementView:E,updateSectionIdsForReview:l,fetchGeneralExpenseView:T,reportId:"flux_analysis_operating_expense"})})})})}},Gs=(e,n)=>{const d=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(h=>h.status==="Pending Review");let c;return d.forEach(h=>{n.includes(h.fluxAnalysisEntityId)&&(c=!0)}),c},mu=e=>({fluxAnalysisRowIds:e}),gu=a.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
- `,xu=a.div`
802
- display: flex;
803
- width: 100%;
804
- height: 100vh;
805
- flex-direction: column;
806
- justify-content: center;
807
- align-items: center;
808
- `,fu=a.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
- `,yu=a(vt)`
824
- margin-top: ${o.sp3};
825
- color: ${e=>e.theme.colors.hero};
826
- `,Cu="expenseAutomationJEAccountSettingsPage",Zs="vendorsAccountSection",wu=e=>`${e}_form`;function bu({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:d,setIsJeAccountSettingsOpened:c,onJeAccountSettingsChange:h,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:i}){const l=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=s.useMemo(()=>Rt(e.prepaidExpensesAccountHierarchy,l,"Accounts"),[e.prepaidExpensesAccountHierarchy,l]),x=s.useMemo(()=>Rt(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),y=s.useMemo(()=>Rt(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),w=s.useMemo(()=>Su(e,u,x,y),[e,u,x,y]),b=qt({mode:"all",reValidateMode:"onBlur",defaultValues:w,values:w,resetOptions:{keepDefaultValues:!0}}),C=b.handleSubmit(f=>{d(f)}),k=async f=>{h(f)};return s.useEffect(()=>{const f=b.watch(I=>{I!=null&&xn(()=>k(I))});return()=>{f.unsubscribe()}}),s.useEffect(()=>(p(()=>b.reset),c(!0),()=>{i("expenseAutomationPage"),c(!1)}),[]),s.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:f,previousPrepaidExpensesAccount:I,selectedFixedAssetsAccountIds:D,previousFixedAssetsAccount:T,selectedAccruedExpensesAccountIds:O,previousAccruedExpensesAccount:S}=e.accountSettingsLocalData,j=_n(f,I)||_n(D,T)||_n(O,S);j===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):j===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(vu,{children:t.jsx(Jt,{...b,children:t.jsx("form",{id:wu(Cu),onSubmit:C,children:t.jsx(Dr,{showTitle:!1,sectionId:Zs,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 vu=a.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
- `,Su=(e,n,d,c)=>{const h=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),p=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),l=h.map(u=>u.qboId).filter(u=>u!=null),r=p.map(u=>u.qboId).filter(u=>u!=null),m=i.map(u=>u.qboId).filter(u=>u!=null);return{[Zs]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:$t},common:{currency:In,review:ju,ignore:ku,strings:{hyphen:xt},texts:$n},dateFormat:Iu,timeframe:{month:pi}}=Se.getLocalizedStrings(),$u=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:h})=>t.jsxs(Fo,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":M("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(Oo,{children:[t.jsxs(Mo,{children:[t.jsxs(Ro,{children:[t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:$n.vendor}),t.jsxs(ie,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(ys,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(hn,{name:e.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(Ue,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.vendor.name??xt})})]})]}),t.jsxs(Y,{children:[t.jsx(te,{children:$t.scheduleHeaders.scheduleCategory}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(Ue,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.baseTransaction.account.accountName??xt})})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.startMonth}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:e.startDate?.format(Iu.visual.MMMCommaYYYYFormat)??xt})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.period}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?pi.slice(0,-1):pi}`:xt})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(te,{children:$n.totalAmount}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ue,{children:We("0,0.[00]",Vt(e.baseTransaction.amount.amount,In.currencyCode,In.currencySymbol))??xt}),children:t.jsx(ue,{className:"highlight",children:We("0,0.[00]",Vt(e.baseTransaction.amount.amount,In.currencyCode,In.currencySymbol))??xt})})})]})]}),t.jsxs(Do,{children:[t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:$n.category}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeDebit.account?.accountName??xt})})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:$n.classText}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(Ue,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeDebit.accountingClass?.className??xt})})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.type}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",style:{width:"unset"},children:t.jsx(Ns,{children:$t.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(Y,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.accumulatedCategory}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:e.jeCredit.account?.accountName??xt})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:pe.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:pe.COLUMN_FIVE}})]})]}),t.jsxs(Bo,{children:[t.jsx(pn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&h(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":M("je-schedule-draft-component-review-button",e.jeScheduleId),label:ju,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:yo}}),t.jsx(pn,{"data-testid":M("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:ku,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&d(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:yo}})]})]}),t.jsxs(Zc,{children:[t.jsx(Lu,{}),t.jsx(Tu,{children:$t.aiAccountant}),t.jsx(Au,{children:$t.zeniGPTText})]})]}),Lu=a(gn)`
835
- height: ${o.sp3};
836
- width: ${o.sp3};
837
- margin-right: ${o.sp1};
838
- path {
839
- stroke-width: 2;
840
- }
841
- `,Tu=a(ms)`
842
- color: ${e=>e.theme.colors.brandColorSapphire};
843
- `,Au=a(Be)`
844
- color: ${e=>e.theme.colors.primary};
845
- `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:mi}}},expenseAutomation:{jeSchedules:ze},common:{currency:ct,retry:Eu,strings:{hyphen:He,empty:gi},texts:Qt},dateFormat:xi}=Se.getLocalizedStrings(),{common:Ru,timeframe:{month:fi}}=Se.getLocalizedStrings(),et="jeSchedulePage",yi=e=>`${e}_form`,zo=(e,n)=>`${e}.${n}`,Ci=zo(et,"vendor"),wi=zo(et,"scheduleExpenseCategory"),bi=zo(et,"accumulatedDepreciationCategory"),Du=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:d,allClassList:c,allDepAccountGroupedOptions:h,allDepAccountList:p,draft:i,localData:l,postStatus:r,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:y,onFormDataChange:w,onPostJESchedule:b})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:k,updatedVendor:f}=l,I={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"},D=s.useRef(),T=qt({mode:"all",reValidateMode:"onChange",defaultValues:vi(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:vi(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},S={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},j=(i?.scheduledJournalEntry.error??[]).every(A=>{const z=I[A];return!(l!=null&&z&&(z==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||z==="updatedCategoryId"&&l.updatedCategoryId==null||z==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),E=async(A,z)=>{if(A!=null){const ee=z[et],{scheduledJournalEntryID:me,vendor:R}=ee;if(A.includes("vendor")){const se=R?.defaultOptions.map(P=>P.value);if(R?.selectedOption!=null&&se?.includes(R.selectedOption)!==!0){const P=x.entityAutoCompleteView.vendor.find(K=>K.id===R.selectedOption);P!=null&&T.setValue(`${et}.vendor.defaultOptions`,[{label:P.name??Ru.strings.empty,value:P.id}])}else R?.selectedOption==null&&R?.defaultOptions.length!==0&&T.setValue(`${et}.vendor`,{selectedOption:void 0,defaultOptions:[]})}w(me,{...ee,vendor:R})}};s.useEffect(()=>{const A=T.watch((z,{name:ee})=>{ee!=null&&z!=null&&xn(()=>E(ee,z))});return()=>{A.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&D.current?.(Cs(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const $=T.handleSubmit(()=>{b(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),W=A=>n.filter(z=>z.qboId===A)[0]?.qboId,_=A=>p.filter(z=>z.qboId===A)[0]?.qboId,H=A=>[m.expense?.qboId,m.income?.qboId].includes(A),N=T.watch("jeSchedulePage.vendor"),V=(A,z)=>{u.onAutoCompleteInputChange?.(A,"vendor"),D.current=z},q=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,G=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,B=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,ce=i.vendor.name.split("(deleted)")[0]?.toString(),fe=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??gi,Z=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??gi,[Q,oe]=s.useState(G===!0&&k==null),[L,F]=s.useState(B===!0&&C==null),[U,J]=s.useState(q&&(f?.id==null||f?.id==""));return s.useEffect(()=>{Q===!1&&l.updatedCategoryId==null&&T.setFocus(wi),L===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&T.setFocus(bi),U===!1&&l.updatedVendor?.id==null&&T.setFocus(Ci)},[Q,L,U,l,T]),t.jsx(Jt,{...T,children:t.jsx("form",{style:{width:"100%"},id:yi(`${et}_${i.jeScheduleId}`),onSubmit:$,children:t.jsx(Fo,{showBorder:j,onClick:A=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&y(A,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":M("je-schedule-resolve-component-schedule",`${et}_${i.jeScheduleId}`),children:t.jsxs(Oo,{children:[t.jsxs(Mo,{children:[t.jsxs(Ro,{children:[q===!0?t.jsx(Y,{style:{width:pe.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:q,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:[Qt.vendor,t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(En,{children:ze.tooltipText.missingVendor.replace("_deleted_vendor_",ce)}),children:t.jsx(Gn,{})})]}),t.jsx(ie,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:U===!0?t.jsxs(ue,{onClick:A=>{A.stopPropagation(),J(!1)},"data-testid":M("je-schedule-resolve-component-add-vendor-button",`${et}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Xe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Kn,{}),mi]}):t.jsx(xo,{name:Ci,placeholder:mi,valueToId:A=>A,defaultValue:{selectedOption:N?.selectedOption,defaultOptions:N?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:A=>!!A.selectedOption},loadOptions:V})})})]})}):t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:Qt.vendor}),t.jsx(ie,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(ys,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(hn,{name:i.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(Ue,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.vendor.name??He})})]})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:ze.scheduleHeaders.scheduleCategory}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(Ue,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.baseTransaction.account.accountName??He})})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:ze.scheduleHeaders.startMonth}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:i.startDate?.format(xi.visual.MMMCommaYYYYFormat)??He})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:ze.scheduleHeaders.period}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?fi.slice(0,-1):fi}`:He})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(te,{children:Qt.totalAmount}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:t.jsx(Ue,{children:We("0,0.[00]",Vt(i.baseTransaction.amount.amount,ct.currencyCode,ct.currencySymbol))??He}),children:t.jsx(ue,{className:"highlight",children:We("0,0.[00]",Vt(i.baseTransaction.amount.amount,ct.currencyCode,ct.currencySymbol))??He})})})]})]}),t.jsxs(Do,{children:[G===!0?t.jsx(Y,{showHoverEffect:G===!0,forceHoverEffect:l?.updatedCategoryId==null&&Q===!1,style:{padding:"unset",justifyContent:"center",width:pe.COLUMN_ONE},children:t.jsxs(dt,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Qt.category,G===!0?t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(En,{children:ze.tooltipText.missingCategory.replace("_deleted_category_",fe)}),children:t.jsx(Gn,{})}):null]}),t.jsx(ie,{className:"item-value-container",style:{marginLeft:G===!0?-2:0},children:G===!0?t.jsx(t.Fragment,{children:Q===!0?t.jsxs(ue,{onClick:A=>{A.stopPropagation(),oe(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":M("je-schedule-resolve-component-add-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(Kn,{}),ze.addCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,name:wi,placeholder:ze.addCategory,valueToId:A=>W(A),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:A=>!!A.selectedOption},disableCurrentOption:H,customStyleConfig:O})}):t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??He})})})]})}):t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Qt.category}),t.jsx(ie,{className:"item-value-container",children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.account?.accountName??He})})})]}),t.jsxs(Y,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Qt.classText}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(Ue,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeDebit.accountingClass?.className??He})})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:ze.scheduleHeaders.type}),t.jsx(ie,{className:"test",children:t.jsx(ue,{className:"highlight",style:{width:"unset"},children:t.jsx(Ns,{children:ze.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:B===!0?t.jsx(Y,{style:{width:pe.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:B,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&L===!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:[ze.scheduleHeaders.accumulatedCategory,B===!0?t.jsx(Ce,{display:"flex",placement:"top-end",title:t.jsx(En,{children:ze.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Z)}),children:t.jsx(Gn,{})}):null]}),t.jsx(ie,{className:"item-value-container",style:{marginLeft:B===!0?-2:0},children:B===!0?t.jsx(t.Fragment,{children:L===!0?t.jsxs(ue,{onClick:A=>{A.stopPropagation(),F(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":M("je-schedule-resolve-component-add-depreciation-category-button",`${et}_${i.jeScheduleId}`),children:[t.jsx(Kn,{}),ze.addDepCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:bi,placeholder:ze.addDepCategory,valueToId:A=>_(A),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:A=>!!A.selectedOption},customStyleConfig:S,disableCurrentOption:H})}):t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??He})})})]})}):t.jsxs(Y,{style:{width:pe.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:ze.scheduleHeaders.accumulatedCategory}),t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(ue,{className:"highlight",children:i.jeCredit.account?.accountName??He})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:pe.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:pe.COLUMN_FIVE}})]}),t.jsxs(Kc,{children:[t.jsx(Y,{style:{padding:"unset",width:pe.COLUMN_ONE},children:t.jsxs(Gc,{children:[t.jsx(te,{children:ze.scheduleHeaders.jePostingDate}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(xi.visual.MMMDCommaYYFormat)??He})})]})}),t.jsxs(Y,{children:[t.jsx(te,{children:ze.scheduleHeaders.balance}),t.jsx(ie,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ue,{children:We("0,0.[00]",Vt(i?.scheduledJournalEntry?.runningBalance?.amount??0,ct.currencyCode,ct.currencySymbol))??He}),children:t.jsx(ue,{className:"highlight",children:We("0,0.[00]",Vt(i?.scheduledJournalEntry?.runningBalance?.amount??0,ct.currencyCode,ct.currencySymbol))??He})})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:ze.scheduleHeaders.months}),t.jsx(ie,{children:t.jsxs(ue,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Y,{style:{width:pe.COLUMN_FOUR}}),t.jsxs(Y,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(te,{children:ze.scheduleHeaders.amountForMonth}),t.jsx(ie,{children:t.jsx(ue,{className:"highlight",children:We("0,0.[00]",Vt(i.scheduledJournalEntry.amount?.amount??0,ct.currencyCode,ct.currencySymbol))??He})})]})]})]}),t.jsx(Bo,{children:t.jsx(pn,{form:yi(`${et}_${i.jeScheduleId}`),label:Eu,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!j,style:{minWidth:yo}})})]})})})})},vi=(e,n,d,c,h,p,i,l)=>{const r=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?l.vendor.find(k=>k.zeniId===m.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,y=e.updatedClassId,w=r!=null?h.find(k=>k.accountId===r):void 0,b=x!=null?i.find(k=>k.accountId===x):void 0,C=y!=null?p.find(k=>k.classId===y):void 0;return{[et]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:w?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:b?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:js(l,u??m)},scheduleClass:{selectedOption:C?.classId,allOptions:d}}}},Kn=a(Pn)`
846
- width: ${o.sp3};
847
- height: ${o.sp3};
848
- `,Gn=a(ks)`
849
- width: 12px;
850
- height: 12px;
851
- color: ${Xe.important};
852
- `;function Ys(){return t.jsx(Ms,{children:t.jsxs(zs,{children:[t.jsxs(Ps,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(Si,{})]}),t.jsxs(_s,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(Si,{})]})]})})}const Si=()=>t.jsx(Fo,{style:{minWidth:1088},children:t.jsxs(Oo,{children:[t.jsxs(Mo,{children:[t.jsxs(Ro,{children:[t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(De,{width:g[10],height:14})}),t.jsxs(ie,{style:{gap:g[2]},children:[t.jsx($o,{height:g[4],width:g[4]}),t.jsx(De,{height:g[4],width:g[10]})]})]}),t.jsxs(Y,{children:[t.jsx(te,{children:t.jsx(De,{width:101,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:203})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(De,{width:g[9],height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:71})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:t.jsx(De,{width:107,height:14})}),t.jsx(De,{height:g[4],width:68})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:pe.COLUMN_FIVE},children:[t.jsx(te,{children:t.jsx(De,{width:73,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:49})})]})]}),t.jsxs(Do,{children:[t.jsxs(Y,{style:{width:pe.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(De,{width:49,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:158})})]}),t.jsxs(Y,{children:[t.jsx(te,{children:t.jsx(De,{width:36,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:88})})]}),t.jsxs(Y,{style:{width:pe.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(De,{width:36,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:100})})]}),t.jsx(Y,{style:{width:pe.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(Y,{style:{width:pe.COLUMN_FIVE}})]})]}),t.jsxs(Bo,{children:[t.jsx(De,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(De,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),De=a(Dt)`
853
- border-radius: ${o.sp1};
854
- `,{common:{create:Ou,resolve:Fu}}=Se.getLocalizedStrings();function Bu({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:d,onJESchedulesFormDataChange:c,onPostJESchedule:h,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:l}){const r=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,x=e.ignoreStatusById,y=e.resolveSchedules,w=e.uncategorizedAccounts,{allAccountList:b,allClassList:C,allDepreciationAccountList:k}=e,f=Rt(e.accountListNestedAccountHierarchy),I=Rt(e.allDepreciationAccountListNestedAccountHierarchy),D=An(e.classListNestedAccountHierarchy),T=(S,j,E)=>{d(S,j,E)},O=(S,j,E,$)=>{let W=S.target;for(;W;){if(W.classList.contains("item-value-container")||W.classList.contains("hover-background")||W.classList.contains("auto-complete-single-select-field__input")||W.classList.contains("auto-complete-single-select-field__option")||W.classList.contains("grouped-single-select-field__input")||W.classList.contains("grouped-single-select-field__menu"))return;W=W.parentElement}d(j,E,$)};return s.useEffect(()=>{if(y.length!==0){for(const S in m)if(Object.prototype.hasOwnProperty.call(m,S)){const{updatedAccumulatedDepreciationCategoryID:j,updatedCategoryId:E,updatedVendor:$}=m[S];if(j!=null||E!=null||$!=null&&$?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else y.length===0&&l("expenseAutomationPage")}),s.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Ys,{}):r.length!==0||y.length!==0?t.jsx(Ms,{children:t.jsxs(zs,{children:[r.length>0?t.jsxs(Ps,{children:[t.jsxs(ki,{children:[Ou,t.jsx(Ii,{isCircular:r.length<10,children:t.jsx($i,{children:r.length})})]}),t.jsx(ji,{"data-testid":M("expense-automation","draft-je-schedules"),children:r.map((S,j)=>t.jsx($u,{ignoreStatus:x[S.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:T,jeScheduleClickHandler:O,draft:S},`${j}_${S.jeScheduleId}`))})]}):null,y.length>0?t.jsxs(_s,{children:[t.jsxs(ki,{children:[Fu,t.jsx(Ii,{isCircular:y.length<10,children:t.jsx($i,{children:y.length})})]}),t.jsx(ji,{"data-testid":M("expense-automation","resolve-je-schedules"),children:y.map((S,j)=>m[S.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(Du,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:O,onPostJESchedule:h,uncategorizedAccounts:w,allAccountList:b,allAccountGroupedOptions:f,allClassGroupedOptions:D,allClassList:C,allDepAccountGroupedOptions:I,allDepAccountList:k,draft:S,postStatus:u[S.scheduledJournalEntry.scheduledJournalEntryID],localData:m[S.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${j}_${S.jeScheduleTransactionKey}`))})]}):null]})}):null}const ji=a.div`
855
- display: flex;
856
- flex-direction: column;
857
- gap: ${o.sp4};
858
- min-width: 1088px;
859
- `,ki=a(ns)`
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
- `,Ii=a.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?Ye`
872
- height: ${o.sp3};
873
- width: ${o.sp3};
874
- padding: ${o.sp0};
875
- `:Ye`
876
- height: 18px;
877
- padding: ${or.padding};
878
- `}
879
- `,$i=a(ir)`
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 Mu({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:d,vendorSearchAutoCompleteData:c,onJESchedulesFormDataChange:h,onPostJESchedule:p,handleJeScheduleClick:i,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:x,setIsJeAccountSettingsOpened:y}){const{jeSchedules:w}=e;return w.fetchState==="In-Progress"||w.accountSettingsView.fetchState==="In-Progress"?t.jsx(Ys,{}):w.accountSettingsView.fetchState==="Completed"&&w.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&w.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(bu,{setIsJeAccountSettingsOpened:y,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:Ne(e.currentSelectedView).allDoneText.title,subTitle:Ne(e.currentSelectedView).allDoneText.subTitle}):w.fetchState==="Completed"?t.jsx(Bu,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:h,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:c}):null}const zu=72,Xs=50,Pu=1,_u=["receipts"],Li=e=>Ls(e,_u),{common:{texts:{vendor:Nu,amount:Vu,receipts:Hu,category:Uu,classText:Wu,date:qu}}}=Se.getLocalizedStrings(),Ju={key:"vendor",value:Nu,sortOrder:"ascending",width:new X(18,18)},Ku={key:"category",value:Uu,sortOrder:"ascending",width:new X(18,18)},Gu={key:"class",value:Wu,sortOrder:"ascending",width:new X(18,18)},Zu={key:"date",value:qu,sortOrder:"descending",width:new X(11,11)},Yu={key:"receipts",value:Hu,sortOrder:"descending",width:new X(6,6)},Xu={key:"amount",value:Vu,sortOrder:"ascending",width:new X(10,10)},ut=[Ju,Ku,Gu,Zu,Yu,Xu],Zn={sortKey:"date",sortOrder:"descending"},Ti={containerPaddingLeftRight:new X(g[3],g[4])},Qs=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ve(),[h,p]=s.useState(ut);s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{Li(r.key)==null&&i(Tr(r.key),r.sortOrder)};return t.jsx(Qu,{windowSize:c,children:h.map((r,m)=>{const u=n!=null||Li(r.key)!=null;return t.jsxs(eh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(sh,{onClick:()=>u?null:l(r),isSortDisabled:u,children:[t.jsx(ah,{children:r.value}),u?null:t.jsx(nh,{sortConfig:e,headerData:r,children:t.jsx(ih,{})})]}),u?null:t.jsx(oh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Zn.sortKey,children:t.jsx(th,{onClick:()=>{u||i(Zn.sortKey,Zn.sortOrder)},"data-testid":M("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},Qu=a.div`
888
- top: ${o.sp0};
889
- left: ${o.sp0};
890
- height: ${Xs}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=>Ti.containerPaddingLeftRight.valuePx(e.windowSize)};
899
- padding-right: ${e=>Ti.containerPaddingLeftRight.valuePx(e.windowSize)};
900
- `,eh=a.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
- `,th=a(zn)`
914
- width: ${o.sp2};
915
- height: ${o.sp2};
916
- cursor: pointer;
917
- `,nh=a.div`
918
- display: flex;
919
- align-items: center;
920
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
- `,oh=a.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
- `,ih=a(Mn)`
929
- width: ${o.sp2};
930
- height: ${o.sp2};
931
- `,sh=a.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
- `,ah=a(mt)`
939
- display: flex;
940
- `,{common:{strings:{underscore:ea,hyphen:Yn,empty:Ai},documents:{singleFileUploadSizeErrorMessage:rh,multipleFileUploadSizeErrorMessage:lh},snackBar:{missing_receipts_attachment:{failed:ch}},tooltips:{addMissingReceipt:dh}},dateFormat:uh}=Se.getLocalizedStrings(),Ln={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[2],g[3])},hh=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:d,authParams:c,selectedPeriod:h,onUploadReceiptComplete:p,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:r})=>{const m=ve(),u=s.useRef(null),x=s.useCallback(async(b,C,k,f,I)=>{l(e.id,"In-Progress"),await Or(b,C,k,f,I).then(({uploadResponse:D,errorMessage:T})=>{D!=null?D.transaction.attachments!=null&&(r(D.transaction),setTimeout(()=>p(D.transaction,h),2e3)):l(e.id,"Error",{code:500,message:ch},T)}).catch(D=>{l(e.id,"Error",D)})},[e.id,h,r,p,l]),y=s.useCallback(b=>{if(b.target.files!=null){const C=b.target.files,k=[],f=[];for(let I=0;I<C.length;I++)k.push(C[I].name),f.push(C[I]);x(d,c,C[0],C[0].name,{id:e.id,type:e.type})}},[c,x,d,e.id,e.type]),w=s.useCallback(()=>{u.current?.click()},[u]);return t.jsx(ta,{windowSize:m,onClick:()=>i(e.id,e.type),"data-testid":M("missing-receipts-list-row",e.id),children:ut.map((b,C)=>{const k=`${e.id}${ea}${b.key}`;switch(b.key){case"vendor":default:return t.jsx(Ht,{windowSize:m,wrapperWidth:b.width,children:t.jsx(Ut,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsxs(Rn,{children:[t.jsx(fs,{photoUrl:e.vendorId!=null?e.logo?.toString()??Ai:Ai,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Ch,{children:t.jsx(hn,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(tt,{text:e.vendorName??e.description,itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"}})]})})},k);case"category":case"class":{const f=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Yn,I=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Yn,D=b.key==="category"?f:I;return t.jsx(Ht,{windowSize:m,wrapperWidth:b.width,children:t.jsx(Ut,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(Rn,{children:D!==Yn?t.jsx(tt,{text:D,itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"}}):t.jsx(yh,{children:D})})})},k)}case"date":return t.jsx(Ht,{windowSize:m,wrapperWidth:b.width,children:t.jsx(Ut,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(Rn,{children:t.jsx(tt,{text:e.date.format(uh.visual.MMMDCommaYYYYformat),itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"}})})})},k);case"receipts":return t.jsx(Ht,{windowSize:m,wrapperWidth:b.width,children:t.jsx(Ut,{windowSize:m,isLastItem:C===ut.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(ds,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(nr,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(fh,{onClick:f=>{f.stopPropagation()},children:t.jsx(cs,{"data-testid":M("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Nn,multiple:!1,acceptableTypes:[...Ar],onFileChange:y,onFileSizeError:(f,I)=>{f&&l(e.id,"Error",{code:500,message:I===!0?rh.replace("__maxFileSize__",No(Nn,0)):lh.replace("__maxFileSize__",No(Nn,0))})}})}),t.jsx(Ce,{display:"flex",placement:"bottom",title:dh,enterDelay:600,children:t.jsx(xh,{onClick:f=>{f.stopPropagation(),w()}})})]})})},k);case"amount":{const f=We("0,0.[00]",e.amount);return t.jsx(Ht,{windowSize:m,wrapperWidth:b.width,children:t.jsx(Ut,{windowSize:m,isLastItem:C===ut.length-1,children:t.jsx(tt,{text:e.amount.amount<0?`-${f}`:f,itemTextStyle:{...At.standardRegular.cssObject,color:"inherit"}})})},k)}}})})},ph=()=>{const e=ve(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(ta,{windowSize:e,ref:n,children:ut.map((h,p)=>{const i=`${p}${ea}${h.key}`;switch(h.key){case"vendor":return t.jsx(Ht,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Ut,{windowSize:e,isLastItem:p===ut.length-1,children:t.jsxs(Rn,{children:[t.jsx($o,{width:g[4],height:g[4]}),t.jsx(Dt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(Ht,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Ut,{windowSize:e,isLastItem:p===ut.length-1,children:t.jsx(Dt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},ta=a.div`
941
- display: flex;
942
- background-color: ${e=>e.theme.colors.grey5};
943
- padding-left: ${e=>Ln.containerPaddingLeftRight.valuePx(e.windowSize)};
944
- padding-right: ${e=>Ln.containerPaddingLeftRight.valuePx(e.windowSize)};
945
- padding-top: ${e=>Ln.containerPaddingTopBottom.valuePx(e.windowSize)};
946
- padding-bottom: ${e=>Ln.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
- `,Ht=a.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
- `,mh=Ye`
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
- `,gh=Ye`
978
- height: ${o.sp3};
979
- width: ${o.sp3};
980
- cursor: pointer;
981
- `,xh=a(Pn)`
982
- ${gh};
983
- color: ${e=>e.theme.colors.brandColorGoldDark};
984
- &:hover {
985
- color: ${e=>e.theme.colors.primary};
986
- }
987
- `,Ut=a(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
- `,fh=a.div``,Rn=a.div`
994
- display: flex;
995
- flex-direction: row;
996
- column-gap: ${o.sp2};
997
- align-items: center;
998
- `,yh=a(Be)`
999
- ${mh};
1000
- color: inherit;
1001
- `,Ch=a.div`
1002
- display: flex;
1003
- `,wh=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ve();return t.jsxs(bh,{windowSize:h,children:[t.jsx(Qs,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c}),t.jsx(vh,{windowSize:h,children:[...Array(3)].map((p,i)=>t.jsx(ph,{},i))})]})},bh=a.div`
1004
- display: block;
1005
- min-height: 100%;
1006
- flex-direction: column;
1007
- width: 100%;
1008
- `,vh=a.div`
1009
- display: flex;
1010
- min-height: 100%;
1011
- flex-direction: column;
1012
- row-gap: ${o.sp3};
1013
- `,{common:Sh}=Se.getLocalizedStrings(),jh=({missingReceipts:e,receiptUploadEndpoint:n,authParams:d,selectedPeriod:c,isDisabled:h,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const x=ve(),{fetchState:y,uiState:w,transactions:b}=e,C=s.useRef(null),[k,f]=s.useState(!1);s.useEffect(()=>{C.current?.resetAfterIndex(0)},[x,C]),s.useEffect(()=>{y==="Completed"&&f(!1)},[y]);const I=T=>zu,D=(T,O)=>{m({sortOrder:O,sortKey:T})};return t.jsxs($h,{children:[t.jsx(Lh,{windowSize:x,children:y==="Error"?t.jsxs(Ah,{windowSize:x,children:[t.jsx(Eh,{onClick:()=>u(),"data-testid":M("missing-receipts-list-table-reload-button"),children:t.jsx(So,{})}),t.jsx(Rh,{children:Sh.reloadPage.label})]}):y==="Completed"&&b.length===0?t.jsx(wt,{tab:"missing_receipts",title:Ne("missing_receipts").allDoneText.title,subTitle:Ne("missing_receipts").allDoneText.subTitle}):y==="Not-Started"||y==="In-Progress"&&b.length===0?t.jsx(wh,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},fetchState:y,onColumnSortConfigChanged:D}):t.jsx(Th,{windowSize:x,children:t.jsx(Fn,{children:({height:T,width:O})=>t.jsxs(Oh,{style:{height:T,width:O},children:[t.jsx(Ih,{children:t.jsx(Qs,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},isDisabled:y==="In-Progress"?"readonly":h,onColumnSortConfigChanged:D})}),t.jsx(Bn,{ref:C,height:T-Xs,itemCount:b.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:d,isDisabled:h,selectedPeriod:c,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r},itemSize:I,width:O,style:{willChange:"auto"},overscanCount:Pu,onScroll:({scrollOffset:S})=>{m({scrollPosition:{scrollTop:S}})},initialScrollOffset:w.scrollPosition?.scrollTop,children:kh})]})})})}),t.jsx(_e,{controller:k===!0,children:t.jsx(Fh,{children:t.jsx(ds,{size:"Small",start:!0})})})]})},kh=({index:e,style:n,data:d})=>{const{missingReceipts:c,receiptUploadEndpoint:h,authParams:p,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,selectedPeriod:u}=d,x=c.transactions[e];return t.jsx(Dh,{style:{...n,width:"100%"},children:t.jsx(hh,{transaction:x,receiptUploadEndpoint:h,authParams:p,selectedPeriod:u,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,uploadReceiptsFetchState:c.uploadReceiptStatusById[x.id]??{fetchState:"Not-Started",error:void 0}},x.id)})},Ih=a.div`
1014
- width: auto;
1015
- `,$h=a.div`
1016
- width: 100%;
1017
- height: 100%;
1018
- background-color: ${e=>e.theme.colors.grey4};
1019
- `,Lh=a.div`
1020
- height: 100%;
1021
- `,Th=a.div`
1022
- height: 100%;
1023
- display: flex;
1024
- flex-direction: column;
1025
- max-width: 99.9%;
1026
- `,Ah=a.div`
1027
- display: flex;
1028
- width: 100%;
1029
- height: ${e=>`calc(100% - ${gs.valuePx(e.windowSize)})`};
1030
- flex-direction: column;
1031
- justify-content: center;
1032
- align-items: center;
1033
- `,Eh=a.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
- `,Rh=a(Xa)`
1049
- margin-top: ${o.sp3};
1050
- color: ${e=>e.theme.colors.hero};
1051
- `,Dh=a.div`
1052
- top: ${o.sp0};
1053
- left: ${o.sp0};
1054
- padding-bottom: ${o.sp3};
1055
- box-sizing: border-box;
1056
- `,Oh=a.div`
1057
- position: relative;
1058
- `,Fh=a.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
- `,Bh=[...Ir],Mh=7*1024*100,zh=a.div`
1068
- width: ${ln}px;
1069
- `,Xn=a.div`
1070
- width: ${e=>`${e.availableWidth}px`};
1071
- min-width: auto;
1072
- position: relative;
1073
- height: fit-content;
1074
- min-height: ${o.sp12};
1075
- `,Ph=a.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
- #${ls} img[alt*="company logo"],
1090
- .attachFileSeparator {
1091
- user-select: none;
1092
- }
1093
- `,_h=a.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
- `,Nh=a.div`
1100
- position: relative;
1101
- `,Ei=a(Be)`
1102
- position: relative;
1103
- `,Vh=a.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
- `,Hh=a.div`
1121
- user-select: text;
1122
- `,Uh=a.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
- `,Wh=a.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
- `,qh=a(vt)`
1138
- color: ${e=>e.theme.colors.grey1};
1139
- user-select: none;
1140
- `,Jh=a(ms)`
1141
- color: ${e=>e.theme.colors.primary};
1142
- `,Kh=a.div`
1143
- flex-direction: column;
1144
- row-gap: ${o.sp3};
1145
- display: flex;
1146
- `,Gh=To`
1147
- 0% {
1148
- transform: translateX(100%);
1149
- }
1150
- 100% {
1151
- transform: translateX(0)
1152
- }
1153
- `,Zh=To`
1154
- 0% {
1155
- transform: translateX(0)
1156
- }
1157
- 100% {
1158
- transform: translateX(100%)
1159
- }
1160
- `,Yh=a.div`
1161
- animation: ${e=>e.allThreadsSectionOpen?Gh:Zh}
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: ${as}px;
1169
- max-width: ${ss}px;
1170
- `,Dn="monthEndReportFormSection",Ri="monthEndReportPage",Ge=Se.getLocalizedStrings();function Xh({companyId:e,enableZeniGPTFeature:n,monthEndReportView:d,previewMode:c,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:i,newThreadMetadata:l,isZeniUser:r,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:x,onUpdateFileAttachment:y,onCloseAllThreadsSection:w,previewMonthEndReport:b,saveMonthEndReport:C,onEditClick:k,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:I,sendMonthEndReport:D}){const T=bt(),[O,S]=s.useState(),[j,E]=s.useState(0),[$,W]=s.useState(0),_=s.useRef(),H=s.useRef(null),N=s.useRef(null),{html:V,subject:q,improveUsingZeniGPTStatus:G}=d,[B,ce]=s.useState(),[fe,Z]=s.useState(!1),[Q,oe]=s.useState(!1),L=s.useRef(null),F=s.useRef(null),U=ja(p,250),J=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:A,sortedThreads:z,threadsPositions:ee,observer:me,unresolvedThreadsMap:R,handleRemoveFloatingThread:se}=ka(i,L,!c,J,r),P=s.useCallback(()=>{p?F.current!=null&&W(Math.min((F.current.offsetWidth-ln-g[4])/2,F.current.offsetWidth-ln-ss-g[4])):F.current!=null&&E(Math.min((F.current.offsetWidth-ln-g[4])/2,F.current.offsetWidth-ln-as-g[4]))},[p]);s.useEffect(()=>{P()},[p,P]),s.useEffect(()=>(window.addEventListener("resize",P),()=>{window.removeEventListener("resize",P)}),[P]);const K=r?Xi:Qi,{openThread:be,addThread:$e,setOpenThread:he}=s.useContext(K),v=Ia(Po,!1,!c),re=L.current?.getBoundingClientRect(),je=v!=null&&v.coords&&re?{left:v.coords.left-re.left,top:v.coords.top-re.top}:void 0,Pe=s.useCallback(()=>{const Oe=window.getSelection()?.getRangeAt(0),le=$a();if(!Oe||le==null)return;const ne={...l,...le,startPath:le.startPath.join(),endPath:le.endPath.join()},we=`${rs()}${is}`,Ie=`cockpit_${e}`;$e(we,{type:"thread",id:we,roomId:Ie,createdAt:new Date,comments:[],metadata:ne,updatedAt:new Date,resolved:!1}),he(we)},[$e,e,l,he]);s.useEffect(()=>{be!=null&&p&&w()},[p,be,w]);const ke=G.fetchState==="In-Progress",Le=qt({mode:"all",defaultValues:Di(d),values:Di(d)}),ge=Le.handleSubmit(Oe=>{const{recipientEmailList:le,subject:ne}=Oe[Dn];if(c===!0)D?.(B?.id);else{const we=O?.replace(La,Ge.common.strings.empty);le!=null&&ne!=null&&b(le,ne,B?.id,we!=null&&we.length>0?O:void 0)}}),Qe=()=>{H.current!=null&&H.current.click()},qe=()=>{B!==void 0&&B!=null&&(x([B.id]),ce(void 0),Z(!1))},Je=Oe=>{const le=Oe.target.files?Oe.target.files[0]:null;if(le)if(!$r(le.type)||Q)console.warn("Please select a valid file.");else{const ne=new FileReader;ne.onload=function(we){const Ie=we.target?.result;if(typeof Ie=="string"){const it={data:Ie.split(",")[1],name:le.name,id:Lr(e,le.name)};ce(it),Z(!0),y([it])}},ne.readAsDataURL(le)}},de=()=>{N.current&&N.current.scrollIntoView({behavior:"smooth"})},Ve=()=>{const Oe=Le.getValues(),{recipientEmailList:le,subject:ne}=Oe[Dn];le!=null&&ne!=null&&C(le,ne,B?.id,O)};s.useEffect(()=>{S(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),s.useEffect(()=>{_.current=B},[B]),s.useEffect(()=>{ce(kr(d.attachmentFile)),Z(!1)},[d.attachmentFile]),s.useEffect(()=>{Q&&f()},[Q,f]);const nt=fo(`${m.year}-${m.month}-01`).format(Ge.dateFormat.visual.MMMMFormat),ot=V!=null?V.split(Ta):[],St=d.concatenatedHtml,jt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Ya,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Ge.cockpit.monthEndReport.timeStampLabel}):null,Ft=()=>r===!0?U?t.jsxs(t.Fragment,{children:[t.jsx(Yh,{allThreadsSectionOpen:p,children:t.jsx(Ga,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${T.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:T.colors.background},threadsContainerStyle:{paddingBottom:c?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Ge.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(Oe,le)=>{he(le);const ne=z.findIndex(we=>we[0]===le);w(),A.current?.[ne]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>w()})}),t.jsx(Xn,{availableWidth:j})]}):t.jsx(Za,{observer:me,canvasContainerRef:L,sortedThreads:z,threadsPositions:ee,threadsRefs:A,unresolvedThreadsMap:R,editorMode:!c,style:{minWidth:`${j}px`,position:"relative",height:"fit-content",top:`${L.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:se}):t.jsx(Xn,{availableWidth:j}),kt=(d.zeniRequestsData??[]).length+Aa(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(Ph,{ref:F,children:[t.jsx(Xn,{availableWidth:p?$:j}),t.jsxs(zh,{children:[t.jsx(Jt,{...Le,children:t.jsx("form",{id:Oi(Ri),onSubmit:ge,children:t.jsxs(Kh,{children:[t.jsx(Ea,{sectionId:Dn,previewMode:c,subject:q}),!c&&kt>0?t.jsx(Ra,{totalItems:kt,onClickCustomerRequest:I}):null,t.jsxs(Vh,{id:Po,ref:L,children:[t.jsxs(Hh,{className:"monthEndReportCanvasWrapper",children:[B!=null||Q?t.jsx(Uh,{"data-testid":M("email-attachment-container"),onClick:de,children:t.jsx(Da,{fileSizeError:Q,setFileSizeError:oe,loading:!1,showAnimation:!c&&fe})}):null,c?t.jsx(Ei,{dangerouslySetInnerHTML:{__html:Oa(St)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Nh,{id:Fa,children:[t.jsx(Be,{dangerouslySetInnerHTML:{__html:ot[0]!=null?ot[0]+"</body></html>":Ge.common.strings.empty}}),t.jsxs(_h,{children:[t.jsx(Jh,{children:Ge.cockpit.monthEndReport.editorTitle}),t.jsx(qh,{children:Ge.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Wh,{id:Ba,children:t.jsx(Ma,{handleFileInputClick:Qe,fileAttached:B!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:ke,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:S,customerRequestData:h})}),t.jsx(Ei,{id:ls,dangerouslySetInnerHTML:{__html:ot[1]!=null?"<html><body>"+ot[1]:Ge.common.strings.empty}})]}),B!=null?t.jsx(za,{ref:N,fileName:B.name,fileSize:Pa(B.data),onRemove:qe,isRemovable:!c}):null]}),je?t.jsx(_a,{style:{zIndex:15},coords:je,alignment:v.alignment,onClick:Pe}):null,t.jsx(Na,{canvasContainerRef:L,sortedThreads:z,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(cs,{name:B?.name??Ge.common.strings.empty,fileRef:H,sizeLimit:Mh,acceptableTypes:Bh,onFileChange:async Oe=>{Je(Oe)},onFileSizeError:Oe=>oe(Oe),multiple:!1})]}),Ft()]}),t.jsx(es,{style:{zIndex:10},leftSideComponent:jt(),formId:Oi(Ri),cancelBtn:{isDisabled:ke,label:c===!0?Ge.cockpit.monthEndReport.editButtonLabel:Ge.cockpit.monthEndReport.saveChanges,onClick:c===!0?k:Ve,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:ke,isLoading:c===!0?d.sendMonthEndReportStatus.fetchState==="In-Progress":d.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:c===!0?"unset":"136px"},label:c===!0?Ge.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",nt):Ge.cockpit.monthEndReport.preview,size:"medium"}})]})}const Di=e=>({[Dn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ge.common.strings.empty}}),Oi=e=>`${e}_form`;At.smallBold.lineHeightValue;const Qh=1,ep=50,Fi=56,tp=["memo"],Bi=e=>Ls(e,tp),{common:{strings:{empty:np}},expenseAutomation:{transactions:{header:{vendors:op,category:ip,classText:sp,date:ap,type:rp,amount:lp}}}}=Se.getLocalizedStrings(),cp={key:"vendor",value:op,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[7]}}},dp={key:"category",value:ip,sortOrder:"ascending",width:new X(20,20),customStyle:{common:{paddingLeft:g[7]}}},up={key:"class",value:sp,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[7]}}},hp={key:"date",value:ap,sortOrder:"descending",width:new X(11,11),customStyle:{common:{paddingLeft:12}}},pp={key:"transaction_type",value:rp,sortOrder:"descending",width:new X(13,13),customStyle:{common:{paddingLeft:g[3]}}},mp={key:"memo",value:np,sortOrder:"ascending",width:new X(6,6),customStyle:{common:{}}},gp={key:"amount",value:lp,sortOrder:"ascending",width:new X(10,10),customStyle:{common:{paddingRight:g[4]}}},Ct=[cp,dp,up,hp,pp,mp,gp],Qn={sortKey:"date",sortOrder:"descending"},na=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ve(),[h,p]=s.useState(Lo(Ct));s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{Bi(r.key)==null&&i(Rr(r.key),r.sortOrder)};return t.jsx(xp,{windowSize:c,"data-testid":M("transaction-categorization-header-container"),children:h.map((r,m)=>{const u=n!=null||Bi(r.key)!=null;return t.jsxs(fp,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,"data-testid":M("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(vp,{"data-testid":M("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Sp,{children:r.value}),u?null:t.jsx(Cp,{sortConfig:e,headerData:r,"data-testid":M("transaction-categorization-sort-icon",r.key),children:t.jsx(bp,{})})]}),u?null:t.jsx(wp,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Qn.sortKey,"data-testid":M("transaction-categorization-close-icon",r.key),children:t.jsx(yp,{onClick:()=>{i(Qn.sortKey,Qn.sortOrder)},"data-testid":M("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},xp=a.div`
1171
- top: ${o.sp0};
1172
- left: ${o.sp0};
1173
- height: ${ep}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
- `,fp=a.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
- `,yp=a(zn)`
1195
- width: 12px;
1196
- height: 12px;
1197
- `,Cp=a.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
- `,wp=a.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
- `,bp=a(Mn)`
1211
- width: ${o.sp2};
1212
- height: ${o.sp2};
1213
- `,vp=a.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
- `,Sp=a(mt)`
1221
- display: flex;
1222
- `,eo="expenseAutomationTransactionsPage",Wt="transactionCategorizationListTable",Ae="account",Ze="class",lt="lineEntitySelection",jp="lineEntity",kp="recommendations",oa="lineInfo",Ip="vendorDetails",$p="customerDetails",On="selectedTransactionIds",Lt=(e,n,d)=>`${e}.${d}.${n}`,Lp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Tp,hyphen:Tn,empty:en}},expenseAutomation:{transactions:Tt},dateFormat:Ap}=Se.getLocalizedStrings(),Et={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[1],g[2]),containerPaddingTopBottomEmpty:new X(g[2],g[3]),nameLogoWidth:new X(g[2],g[4]),nameLogoHeight:new X(g[2],g[4])},Ep=({transactionView:e,transaction:n,sectionId:d,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:i,isCOTEnabled:l,cotTracking:r,onTransactionCategorizationRowClick:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:y,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:b})=>{const C=ve(),[k,f]=s.useState(!1),{lineItemById:I,sortedLineItems:D}=n.transactionReviewLocalData,T=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=D.filter(L=>T.indexOf(L)!==-1),S=[];O.forEach(L=>{S.push(I[L])});const{accountList:j,accountsHierarchyList:E,classHierarchyList:$,classList:W,uncategorizedAccounts:_,transactions:H,selectedCheckBoxTransactionIds:N}=e,V=N.includes(n.transactionId),q=bt(),G={control:()=>({marginLeft:-2,backgroundColor:k?q.colors.background:q.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:q.colors.grey5}),singleValue:()=>({color:k||V?q.colors.primary:q.colors.hero,paddingLeft:g[2]}),input:L=>({...L,color:k||V?q.colors.primary:q.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:L=>({...L,zIndex:10})},B={...G,singleValue:L=>({...L,color:k||V?q.colors.primary:q.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:L=>({...L,color:k||V?q.colors.primary:q.colors.hero,textAlign:"left"})},ce=H.find(L=>L.id===n.transactionId),fe=(L,F)=>{const{transactionType:U}=F.transactionReviewLocalData;let J=L.target;for(;J;){if(J.classList.contains("select-value-container")||J.classList.contains("item-value-container")||J.classList.contains("grouped-single-select-field__value-container")||J.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||J.classList.contains("grouped-single-select-field__input")||J.classList.contains("grouped-single-select-field__menu"))return;J=J.parentElement}U!=null&&m(F.transactionId,U)},Z=s.useRef(null),[Q,oe]=s.useState("auto");return s.useEffect(()=>{const L=()=>{if(i.current!=null&&Z.current!=null){const F=i.current.getBoundingClientRect(),U=Z.current.getBoundingClientRect().top-F.top;oe(U>285?"top":"bottom")}};return L(),window.addEventListener("resize",L),window.addEventListener("scroll",L),()=>{window.removeEventListener("resize",L),window.removeEventListener("scroll",L)}},[i]),t.jsx(Op,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),windowSize:C,isSelected:V,isHovered:k,children:t.jsx(Fp,{children:S.map((L,F)=>t.jsx(Bp,{ref:Z,"data-testid":M("transaction-categorization-list-row",L.lineId),windowSize:C,onClick:U=>fe(U,n),children:t.jsx(Rp,{line:L,isHovered:k||V,isSelected:V,lineIndex:F,sectionId:d,transaction:n,currentTransaction:ce,windowSize:C,accountsHierarchyList:E,classHierarchyList:$,allAccountList:j,allClassList:W,uncategorizedAccounts:_,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:G,customStyleAutoComplete:B,recommendations:L.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:Q,cotTracking:r,openTooltipId:y,setOpenTooltipId:w,isUncategorizedExpenseCategoryEnabled:b})},`${n.transactionId}.${L.lineId}`))},n.transactionId)},n.transactionId)},Rp=({accountsHierarchyList:e,allAccountList:n,allClassList:d,classHierarchyList:c,customStyle:h,customStyleAutoComplete:p,line:i,lineIndex:l,transaction:r,currentTransaction:m,windowSize:u,uncategorizedAccounts:x,isHovered:y=!1,isSelected:w=!1,sectionId:b,recommendations:C,vendorSearchAutoCompleteData:k,selectedTab:f,isCOTEnabled:I,menuPlacement:D,cotTracking:T,openTooltipId:O,setCurrentTransactionInAction:S,vendorLoadOptions:j,setOpenTooltipId:E,isUncategorizedExpenseCategoryEnabled:$})=>{const{transactionDate:W,transactionType:_,transactionTypeName:H,memo:N}=r.transactionReviewLocalData,{setValue:V}=Io(),q=s.useCallback((ae,ye)=>{T?.onCOTView!=null&&T.onCOTView(i.lineId,r.transactionId,ae,ye)},[T,i.lineId,r.transactionId]),G=i.lineDescription,B=s.useMemo(()=>{if(G||N)return[{title:Tt.description,description:G||Tn},{title:Tt.header.memo,description:N||Tn}]},[N,G]),ce=Lt(b,lt,l.toString()),fe=Lt(b,Ae,l.toString()),Z=Lt(b,Ze,l.toString()),Q=(ae,ye)=>{let Me;switch(ye){case"vendor":Me=ce;break;case"category":Me=fe;break;case"class":Me=Z;break;default:return}V(`${Me}.selectedOption`,ae,{shouldValidate:!0,shouldDirty:!0})},oe=bt(),L=s.useMemo(()=>m!=null&&Nt(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]),F=s.useMemo(()=>m!=null&&Nt(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]),U=i[Ze]?.classId,J=i[Ae]?.qboId??i[Ae]?.accountId,A=L?.id,z=F?.id,ee=F?.name,[me,R]=s.useState(!U),[se,P]=s.useState(!J||i[Ae]?.qboId!=null&&cn(x,i[Ae].qboId,$===!0?["income"]:void 0)===!0),[K,be]=s.useState(!z||!A),$e=ae=>C?.find(ye=>ye.vendor?.qboId===ae||ye.vendor?.id===ae||ye.vendor?.name===ae)?.vendor?.reason??"",he=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],v=bs(e,he),re=ws(c,he),je=ae=>n.filter(ye=>ye.qboId===ae)[0]?.qboId,Pe=ae=>d.filter(ye=>ye.classId===ae)[0]?.accountingClassNumber??void 0,ke=s.useCallback(ae=>cn(x,ae,$===!0?["income"]:void 0),[x,$]),[Le,ge]=s.useState(!1),[Qe,qe]=s.useState(!1),[Je,de]=s.useState(!1),Ve=(ae,ye)=>{S({transactionId:r.transactionId,lineItemId:i.lineId}),j(ae,ye)},nt=()=>{be(!(z||A)),ge(!1)},ot=()=>{J&&i[Ae]?.qboId!=null&&cn(x,i[Ae].qboId,$===!0?["income"]:void 0)===!1?P(!1):P(!0),de(!1)},St=()=>{R(!U),qe(!1)},jt=()=>{(z||A)&&ge(!0)},Ft=()=>{qe(!0)},kt=()=>{de(!0)};s.useEffect(()=>{J&&i[Ae]?.qboId!=null&&cn(x,i[Ae].qboId,$===!0?["income"]:void 0)===!1?P(!1):P(!0)},[J]),s.useEffect(()=>{R(!U)},[U]),s.useEffect(()=>{be(!(z||A))},[z,A]);const Oe=r.transactionReviewLocalData.selectedEntity,le=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,ne=m!=null&&Nt(m)===!0?Oe:le,we=s.useMemo(()=>{const ae=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],ye=k.entityAutoCompleteView;return{selectedOption:ne?.qboId??ne?.id,defaultOptions:jo(ye,ne,ae??[])}},[ne,r.transactionReviewLocalData.lineItemById,i.lineId,k.entityAutoCompleteView]),Ie=()=>ne!=null&&ne.logo!=null?t.jsx(fs,{photoUrl:ne.logo.toString(),styles:{width:Et.nameLogoWidth.valuePx(u),height:Et.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Pi,{children:t.jsx(hn,{name:ne.name,size:o.sp4})})}):ne!=null&&ne.name!=null?t.jsx(Pi,{children:t.jsx(hn,{name:ne.name,size:o.sp4})}):null,it=(ae,ye)=>{if(ye==null||!ye)return;let Me=[];return ae.forEach(Ke=>{Me=Me.concat(Ke.options)}),Me.find(Ke=>Ke.value===ye)?.label??ye},st=it(re,U),It=it(v,J),Fe=f==="review",Kt=Vn("vendor",we.defaultOptions,we.selectedOption),Gt=Vn("category",v,J),Bt=Vn("class",re,U),fn=()=>Ct.map((ae,ye)=>{const Me=`${r.transactionId}_${ae.key}_${i.lineId}`;if(l>0&&m!=null&&Nt(m)===!0&&ae.key==="vendor")return t.jsx(at,{windowSize:u,wrapperWidth:ae.width},Me);if(l>0&&ae.key==="transaction_type")return t.jsx(at,{windowSize:u,wrapperWidth:ae.width},Me);switch(ae.key){case"vendor":default:return t.jsxs(at,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(to,{isCOTEnabled:I,recommendations:he,type:"vendor",isFirstColumn:!0,isEnabled:!!ne?.isPreFilled,isMisCategorized:Kt,onRecommendationClick:Q,selectedValue:z,selectedValueLabel:ee,isReviewTab:Fe,isAccountOptionDisabled:ke,existingOption:{label:m!=null&&Nt(m)===!0?m?.vendor?.name:void 0,value:m!=null&&Nt(m)===!0?m?.vendor?.id:void 0},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(ao,{children:K===!0?t.jsx(io,{isHovered:y,children:t.jsxs(no,{onClick:Ke=>{Ke.stopPropagation(),be(!1),ge(!0)},"data-testid":M("add-vendor-button",b),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(oo,{}),Tt.addPayee]})}):Le===!0?t.jsx(ft,{onClickAway:nt,children:t.jsx(Gp,{"data-testid":M("vendor-selection-dropdown-container",Lt(b,lt,l.toString())),children:t.jsx(dr,{name:ce,placeholder:Tt.addPayee,valueToInfo:$e,defaultValue:{selectedOption:we.selectedOption,defaultOptions:we.defaultOptions},type:"vendor",autoFocus:!K,style:{width:"100%"},pageSource:"list_page",transactionStatus:Fe?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Le,onMenuClose:nt,registerOptions:{required:!1},loadOptions:Ve,showCOT:I,onCOTView:q,menuPlacement:D})})}):t.jsx(Yp,{children:t.jsxs(so,{isHovered:y,showOutline:Kt&&ne?.isPreFilled!==!0&&!w&&Fe,children:[Ie(),t.jsx(Kp,{onClick:jt,"data-testid":M("vendor-name-text",b),children:ne!=null&&ne.name?t.jsx(tt,{text:ne.name,itemTextStyle:{color:y?oe.colors.primary:oe.colors.hero}}):t.jsx(Zp,{children:Tn})})]})})})]},Me);case"category":{const Ke=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(to,{isCOTEnabled:I,recommendations:he,type:"category",isFirstColumn:!1,isReviewTab:Fe,isEnabled:!!i[Ae]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Gt,onRecommendationClick:Q,selectedValue:J,selectedValueLabel:It,existingOption:{label:Ke?.account?.accountName,value:Ke?.account?.qboId??Ke?.account?.accountId},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(ao,{children:se===!0?t.jsx(io,{isHovered:y,children:t.jsxs(no,{onClick:Mt=>{Mt.stopPropagation(),P(!1),de(!0)},"data-testid":M("category-selection-field",fe),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(oo,{}),Tt.addCategory]})}):Je===!0?t.jsx(ft,{onClickAway:ot,children:t.jsx(_i,{isHovered:y,"data-testid":M("category-selection-dropdown-container",fe),children:t.jsx(Ko,{name:fe,placeholder:Tt.addCategory,valueToId:Mt=>je(Mt),type:"category",pageSource:"list_page",transactionStatus:Fe?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:J,allOptions:v},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Je,autoFocus:!se&&(!J||i[Ae]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Ae].qboId)),onMenuClose:ot,customStyleConfig:h,disableCurrentOption:ke,menuPlacement:D,onCOTView:q})})}):t.jsx(so,{isHovered:y,showOutline:Gt&&i[Ae]?.isPreFilled!==!0&&!w&&Fe,children:t.jsx(Ni,{onClick:kt,"data-testid":M("category-label-text",fe),children:t.jsx(tt,{text:It??"",itemTextStyle:{color:y?oe.colors.primary:oe.colors.hero}})})})})]},Me)}case"class":{const Ke=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:ae.width,className:"item-value-container",children:[t.jsx(to,{isCOTEnabled:I,recommendations:he,type:"class",isFirstColumn:!1,isReviewTab:Fe,isEnabled:!!i[Ze]?.isPreFilled,isAccountOptionDisabled:ke,isMisCategorized:Bt,onRecommendationClick:Q,selectedValue:U,selectedValueLabel:st,existingOption:{label:Ke?.class?.className,value:Ke?.class?.classId},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:E}),t.jsx(ao,{children:me===!0?t.jsx(io,{isHovered:y,children:t.jsxs(no,{onClick:Mt=>{Mt.stopPropagation(),R(!1),qe(!0)},"data-testid":M("class-selection-field",Z),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(oo,{}),Tt.addClass]})}):Qe===!0?t.jsx(ft,{onClickAway:St,children:t.jsx(_i,{isHovered:y,"data-testid":M("class-selection-dropdown-container",Z),children:t.jsx(Ko,{name:Z,placeholder:Tt.addClass,valueToId:Mt=>Pe(Mt),type:"class",showCOT:I,defaultValue:{selectedOption:U,allOptions:re},pageSource:"list_page",transactionStatus:Fe?"pending_review":"auto_categorized",menuIsOpen:Qe,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!me&&!U,customStyleConfig:h,onMenuClose:St,menuPlacement:D,onCOTView:q})})}):t.jsx(so,{isHovered:y,showOutline:Bt&&i[Ze]?.isPreFilled!==!0&&!w&&Fe,children:t.jsx(Ni,{"data-testid":M("class-selection-field",Z),onClick:Ft,children:t.jsx(tt,{text:st??"",itemTextStyle:{color:y?oe.colors.primary:oe.colors.hero}})})})})]},Me)}case"date":return t.jsx(at,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(sn,{windowSize:u,isLastItem:ye===Ct.length-1,children:t.jsx(bo,{"data-testid":M("date-field",Lt(b,Ze,l.toString())),children:t.jsx(zp,{style:{color:y?oe.colors.primary:oe.colors.hero},children:W!=null?W.format(Ap.visual.MMMDCommaYYYYformat):null})})})},Me);case"transaction_type":return t.jsx(at,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(sn,{windowSize:u,"data-testid":M("transaction-type-field",Lt(b,Ze,l.toString())),isLastItem:ye===Ct.length-1,children:H!=null?t.jsx(lr,{textColor:y?new ko(oe.colors.primary):cr(void 0,oe),text:H??_}):null})},Me);case"memo":return t.jsx(at,{windowSize:u,wrapperWidth:ae.width,children:t.jsx(sn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:ye===Ct.length-1,"data-testid":M("memo-field",Lt(b,Ze,l.toString())),children:B!=null?t.jsx(Ce,{placement:"bottom",data:B,variant:"multi-information-points",children:t.jsx(_p,{style:{color:y?oe.colors.primary:oe.colors.hero}})}):t.jsx(Pp,{children:Tn})})},Me);case"amount":{const Ke=We("0,0.[00]",i.amount,!0);return t.jsx(at,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ae.width,children:t.jsx(sn,{windowSize:u,isLastItem:ye===Ct.length-1,children:t.jsx(bo,{"data-testid":M("transaction-amount-field",Lt(b,Ze,l.toString())),style:{color:y?oe.colors.primary:oe.colors.hero},children:Ke})})},Me)}}});return t.jsx(t.Fragment,{children:fn()})},Mi=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(Hp,{}):t.jsx(Np,{}):h?t.jsx(Vp,{}):t.jsx(Up,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(qp,{}):t.jsx(Wp,{}):null,zi=({isFirstColumn:e,children:n})=>t.jsx(sa,{isFirstColumn:e,children:n}),to=({recommendations:e,isCOTEnabled:n,type:d,isReviewTab:c,selectedValueLabel:h,isFirstColumn:p,isEnabled:i=!1,isMisCategorized:l=!1,selectedValue:r,existingOption:m,cotTracking:u,lineId:x,openTooltipId:y,transactionId:w,isAccountOptionDisabled:b,onRecommendationClick:C,setOpenTooltipId:k})=>{const f=s.useMemo(()=>`${w}:${x}:${d}`,[w,x,d]),I=y===f,D=pr().analytics,{createAlternateRecommendationCallback:T}=mr(),O=s.useCallback(H=>{const N=e[1],V=e[0];T(d,{currentValue:h??en,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:w,lineId:x,onCOTView:(q,G,B,ce)=>{u.onCOTView?.(q,G,B,ce)}}:void 0},N,V)(H)},[T,e,h,c,d,u,x,w]),S=gr(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",C,O,r,b),j=xr(e,d),E=s.useCallback(()=>{k(f);const H=S?.recommendations[0]?.cot??[],N=S?.recommendations[1]?.cot??[],V=N.length>0;if(D.trackTransactionCotView({recommendationFor:d,currentValue:h??en,recommendation:S?.recommendations[0]?.name??en,recommendationCot:H,isRecommendationCotAvailable:H.length>0,recommendationReason:S?.recommendations[0]?.reason??en,recommendationConfidencePercentage:S?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Vo(Ho(S?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:S?.recommendations[1]?.name??en,alternativeRecommendationCot:N,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:S?.recommendations[1]?.reason??en,alternativeRecommendationConfidencePercentage:S?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Vo(Ho(S?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const q=fr(S);q!=null&&u.onCOTView(x,w,d,q)}},[D,S,c,h,d,x,w,f,k]),$=s.useCallback(()=>{y===f&&k(void 0)},[y,f,k]),W=s.useMemo(()=>!r||!j?!1:e.some(H=>d==="vendor"&&H.vendor!=null?H.vendor.id===r||H.vendor.qboId===r:d==="category"&&H.account!=null?H.account.qboId===r||H.account.accountId===r:d==="class"&&H.class!=null?H.class.classId===r:!1),[r,j,e,d]);if(!j)return t.jsx(sa,{isFirstColumn:p});const _=i||W;return S?t.jsx(zi,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:S,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:I,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:E,onClose:$,children:t.jsx(Jp,{children:t.jsx(Mi,{isEnabled:_,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:I})})})}):t.jsx(zi,{isFirstColumn:p,children:t.jsx(Mi,{isEnabled:_,isReviewTab:c,isMisCategorized:l,hasRecommendations:j,isTooltipVisible:I})})},ia=()=>{const e=ve(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(Dp,{windowSize:e,ref:n,children:Ct.map((h,p)=>{const i=`${p}${Tp}${h.key}`;switch(h.key){case"vendor":return t.jsx(at,{windowSize:e,wrapperWidth:h.width,children:t.jsx(sn,{windowSize:e,isLastItem:p===Ct.length-1,children:t.jsxs(bo,{children:[t.jsx($o,{width:g[4],height:g[4]}),t.jsx(Dt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(at,{windowSize:e,wrapperWidth:h.width,children:t.jsx(sn,{windowSize:e,isLastItem:p===Ct.length-1,children:t.jsx(Dt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},Dp=a.div`
1223
- display: flex;
1224
- background-color: ${e=>e.theme.colors.grey5};
1225
- padding-left: ${e=>Et.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
- padding-right: ${e=>Et.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
- padding-top: ${e=>Et.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
- padding-bottom: ${e=>Et.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
- `,Op=a.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?Ye`
1265
- .ai-icon-selected-plain {
1266
- color: ${n.colors.primary};
1267
- }
1268
- `:null};
1269
- `,Fp=a.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
- `,Bp=a.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=>Et.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
- padding-bottom: ${e=>Et.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
- `,at=a.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
- `,Mp=Ye`
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
- `,sn=a(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
- `,bo=a.div`
1312
- display: flex;
1313
- flex-direction: row;
1314
- column-gap: ${o.sp2};
1315
- align-items: center;
1316
- `,zp=a(Be)`
1317
- ${Mp};
1318
- color: ${e=>e.theme.colors.hero};
1319
- `,no=a(Be)`
1320
- color: ${e=>e.theme.colors.hero};
1321
- `,oo=a(Pn)`
1322
- width: ${o.sp3};
1323
- height: ${o.sp3};
1324
- margin: ${o.sp1};
1325
- `,Pp=a.div`
1326
- margin: ${o.sp3};
1327
- `,_p=a(Lp)`
1328
- width: ${o.sp3};
1329
- height: ${o.sp3};
1330
- margin-left: 10px;
1331
- `,Np=a(br)`
1332
- width: ${o.sp5};
1333
- height: ${o.sp5};
1334
- `,Vp=a(Fr)`
1335
- width: ${o.sp5};
1336
- height: ${o.sp5};
1337
- `,Hp=a(wr)`
1338
- width: ${o.sp5};
1339
- height: ${o.sp5};
1340
- `,Up=a(Br)`
1341
- width: ${o.sp5};
1342
- height: ${o.sp5};
1343
- `,Wp=a(gn)`
1344
- width: ${o.sp3};
1345
- height: ${o.sp3};
1346
- path {
1347
- stroke-width: 2;
1348
- }
1349
- `,qp=a(vr)`
1350
- width: ${o.sp3};
1351
- height: ${o.sp3};
1352
- `,sa=a.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
- `,Jp=a.div`
1360
- display: flex;
1361
- align-items: center;
1362
- justify-content: center;
1363
- width: auto;
1364
- cursor: pointer;
1365
- `,Kp=a(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
- `,Pi=a.div`
1375
- display: flex;
1376
- `,Gp=a.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
- `,io=a.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
- `,_i=a.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
- `,Zp=a(Be)``,Yp=a.div`
1401
- width: 100%;
1402
- display: flex;
1403
- padding-left: ${o.sp0};
1404
- `,so=a.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
- `,Ni=a.div``,ao=a.div`
1417
- display: flex;
1418
- align-items: center;
1419
- width: calc(100% - ${o.sp5});
1420
- `,Xp=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ve();return t.jsxs(Qp,{windowSize:h,children:[t.jsx(na,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c,"data-testid":M("transaction-categorization-list-empty-table-header")}),t.jsx(em,{windowSize:h,"data-testid":M("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,i)=>t.jsx(ia,{"data-testid":M("transaction-categorization-list-empty-row",i.toString())},i))})]})},Qp=a.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
- `,em=a.div`
1428
- display: flex;
1429
- flex: 1;
1430
- min-height: 100%;
1431
- flex-direction: column;
1432
- row-gap: ${o.sp3};
1433
- `,{common:tm,transactionDetail:{notCategorizedTooltipText:nm}}=Se.getLocalizedStrings(),ro={rowGap:new X(g[0],g[2],g[3])},om=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,isCOTEnabled:p,isDisabled:i,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:x,onUpdateTransactionCategorizationUIState:y,onUpdateScrollYOffSetTransactionCategorizationUIState:w,onFetchTransactionCategorizationList:b,containerRef:C,cotTracking:k,isUncategorizedExpenseCategoryEnabled:f})=>{const I=ve(),[D,T]=s.useState(void 0),{fetchState:O,uiState:S,transactionLocalData:j,selectedCheckBoxTransactionIds:E,transactionIdsWithUnsavedData:$,transactions:W,uncategorizedAccounts:_}=n,H=s.useRef(null),N=s.useRef({}),{control:V}=Io();s.useEffect(()=>{H.current?.resetAfterIndex(0,!0)},[I,H,j]),s.useEffect(()=>{H.current?.scrollTo(S.scrollPosition?.scrollTop??0)},[e]);const q=s.useCallback(R=>{if(N.current?.[R]!=null){const K=I==="small"&&S.pageToken==null&&R===j.length-1?ro.rowGap.value("medium-regular"):ro.rowGap.value(I);return N.current[R]+K}if(j[R]==null)return 0;const se=j[R].transactionReviewLocalData,P=Object.keys(se.lineItemById).length;return P!=null&&!isNaN(P)&&P>1?Fi*P+ro.rowGap.value(I)*(P-1):Fi},[j,I,S.pageToken,S.sortKey,S.sortOrder]),G=s.useCallback((R,se)=>{N.current={...N.current,[R]:se},H.current?.resetAfterIndex(0,!0)},[I,H,j,S.sortKey,S.sortOrder]),B=s.useCallback(()=>{(S.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&b(e,S.searchString,!0,S.pageToken,!0,!1)},[n.refreshStatus.fetchState,b,e,S.pageToken,S.searchString,S.sortKey,S.sortOrder]),ce=s.useCallback(()=>{S.pageToken!=null&&B()},[B,S.pageToken,S.sortKey,S.sortOrder]),fe=Qa(R=>w(e,{scrollPosition:{scrollTop:R}}),1e3,{trailing:!0}),Z=R=>R<n.transactionLocalData.length,Q=(R,se)=>{y(e,{sortOrder:se,sortKey:R}),b(e,S.searchString,!1,null,!1,!0)},oe=R=>{if(e==="autoCategorized")return!E.includes(R);const se=j.find(K=>K.transactionId===R)?.transactionReviewLocalData,P=W.find(K=>K.id===R);return P!=null&&se!=null?Er(P,se,_,f)?f===!0&&qo(_,se.lineItemById,["expense"])?$.includes(R)===!1:!1:!0:E.length===0?!0:!E.includes(R)};let L=[],F=[];(O==="Completed"||n.transactionLocalData.length>0)&&(F=n.transactionLocalData.map((R,se)=>{const P=oe(R.transactionId);let K=!1;f===!0&&P===!0&&e==="review"&&qo(_,R.transactionReviewLocalData.lineItemById,["expense"])&&(K=!$.includes(R.transactionId));const be=R.transactionReviewLocalData;return{label:t.jsx(Ep,{transactionView:n,sectionId:`${h}.${se}.${oa}`,transaction:R,receiptUploadEndpoint:d,authParams:c,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:C,isCOTEnabled:p,cotTracking:k,openTooltipId:D,setOpenTooltipId:T,isUncategorizedExpenseCategoryEnabled:f},`${R.transactionId}.${be.transactionType}`),value:R.transactionId,defaultChecked:!1,groupLabel:!1,isException:K,exceptionMode:K===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:P===!0?"readonly":void 0,exceptionType:K===!0?"alert":void 0,exceptionInfo:K===!0?nm:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),L=F.map(R=>R.value));const U={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:J,subTitle:A}=Ne("transaction_categorization").allDoneText,z=j.map(R=>R.transactionId),ee=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),me=s.useMemo(()=>j.reduce((R,se)=>{const P=Object.keys(se.transactionReviewLocalData.lineItemById).length;return R+(P>0?P:1)},0)<n.totalCountByTab[e]?j.length+1:j.length,[j,n.totalCountByTab,e]);return t.jsx(lm,{windowSize:I,"data-testid":M("transaction-categorization-list-wrapper"),children:t.jsx(cm,{windowSize:I,"data-testid":M("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(um,{windowSize:I,"data-testid":M("transaction-categorization-reload-page"),children:[t.jsx(hm,{onClick:()=>b(e,void 0,!0,null,!1,!0),"data-testid":M("transaction-categorization-reload-icon"),children:t.jsx(So,{})}),t.jsx(pm,{"data-testid":M("transaction-categorization-reload-label"),children:tm.reloadPage.label})]}):O==="Completed"&&j.length===0?t.jsx(wt,{tab:"transaction_categorization",title:J,subTitle:A,"data-testid":M("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&j.length===0?t.jsx(Xp,{sortConfig:{sortKey:S.sortKey,sortOrder:S.sortOrder},fetchState:O,onColumnSortConfigChanged:Q,"data-testid":M("transaction-categorization-list-empty-table")}):t.jsx(dm,{windowSize:I,"data-testid":M("transaction-categorization-list-view"),children:t.jsx(xs,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:R,ref:se,onChange:P}})=>t.jsx(aa.Provider,{value:{value:R,mode:"off",allCheckBoxValues:L,index:0,sortKey:S.sortKey,sortOrder:S.sortOrder,fetchState:O,isDisabled:i,groupLabelCheckBox:U,onColumnSortConfigChanged:Q,ref:se,onChange:P,selectedTab:e},children:t.jsx(Fn,{children:({height:K,width:be})=>t.jsx(er,{isItemLoaded:Z,itemCount:ee,loadMoreItems:ce,children:({onItemsRendered:$e,ref:he})=>t.jsx(Bn,{ref:v=>{he(v),H.current=v},height:K,itemCount:me,itemKey:v=>j[v]?.transactionId,innerElementType:im,onItemsRendered:$e,width:be,style:{willChange:"auto"},overscanCount:Qh,itemSize:q,itemData:{checkboxes:F,value:R,allCheckBoxValues:L,groupLabelCheckBox:U,categorizationGroupValue:z,transactionLocalData:j,mode:"always_on",setRowHeight:G,isItemLoaded:Z,ref:he,onChange:P,selectedCheckBoxTransactionIds:E},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:v})=>{fe(v)},children:am})})})})})})})})},im=e=>{const{value:n,allCheckBoxValues:d,groupLabelCheckBox:c,index:h,isDisabled:p,fetchState:i,sortKey:l,sortOrder:r,mode:m,ref:u,onChange:x,onColumnSortConfigChanged:y}=sm(),{children:w,style:b,...C}=e;return i==="Completed"?t.jsxs(mm,{ref:u,style:{...b,width:"auto"},...C,children:[t.jsx(gm,{children:t.jsx(vs,{selectionLimit:mn,value:n,checkBox:{label:t.jsx(rm,{children:t.jsx(na,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:y})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:c,allCheckBoxValues:d,mode:m,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:h,onChangeHandler:k=>Ss({event:k,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(xm,{children:w})]},`${d[h]}-${h}`):null},aa=s.createContext(void 0),sm=()=>{const e=s.useContext(aa);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},am=({index:e,style:n,data:d})=>{const{checkboxes:c,value:h,groupLabelCheckBox:p,categorizationGroupValue:i,allCheckBoxValues:l,transactionLocalData:r,isItemLoaded:m,setRowHeight:u,ref:x,onChange:y,selectedCheckBoxTransactionIds:w}=d,b=s.useRef(null),C=ve();if(s.useEffect(()=>{b.current?.firstElementChild!=null&&u(e,b.current.firstElementChild.clientHeight)},[e,b,C,r[e]?.transactionReviewLocalData]),m(e)===!0){const k=c[e];return t.jsx(Vi,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:b,children:t.jsx(vs,{selectionLimit:mn,checkBox:k,value:h,groupLabelCheckBox:p,allCheckBoxValues:l,mode:k.isDisabled==="readonly"||w.includes(k.value)===!1&&w.length>=mn?"off":"always_on",draggable:!1,isDisabled:k.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:{padding:20},name:`${Wt}.${h}`,ref:x,index:e,onChangeHandler:f=>Ss({event:f,value:h,allCheckBoxValues:l,groupLabelCheckBox:p,onChange:y})})},i[e])}else return t.jsx(Vi,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:b,children:t.jsx(fm,{children:t.jsx(ia,{})})},rs())},rm=a.div`
1434
- flex: 1;
1435
- width: auto;
1436
- padding-right: ${o.sp8};
1437
- `,lm=a.div`
1438
- width: 100%;
1439
- height: 100%;
1440
- background-color: ${e=>e.theme.colors.grey4};
1441
- `,cm=a.div`
1442
- height: 100%;
1443
- `,dm=a.div`
1444
- height: 100%;
1445
- display: flex;
1446
- flex-direction: column;
1447
- max-width: 99.9%;
1448
- `,um=a.div`
1449
- display: flex;
1450
- width: 100%;
1451
- height: ${e=>`calc(100% - ${gs.valuePx(e.windowSize)})`};
1452
- flex-direction: column;
1453
- justify-content: center;
1454
- align-items: center;
1455
- `,hm=a.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
- `,pm=a(vt)`
1471
- margin-top: ${o.sp3};
1472
- color: ${e=>e.theme.colors.hero};
1473
- `,Vi=a.div`
1474
- top: ${o.sp0};
1475
- left: ${o.sp0};
1476
- padding-bottom: ${o.sp3};
1477
- box-sizing: border-box;
1478
- `,mm=a.div`
1479
- background-color: ${e=>e.theme.colors.grey4};
1480
- `,gm=a.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
- `,xm=a.div`
1491
- position: relative;
1492
- width: auto;
1493
- height: 100%;
1494
- `,fm=a.div`
1495
- padding-left: ${o.sp8};
1496
- `,ym=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,isCOTEnabled:l,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:w,onSaveUpdateTransactionCategorization:b,onUpdateSelectedCheckboxTransactionIds:C,onFetchRecommendationsForEntityCategorization:k,onFetchRecommendationsForEntityCategorizationWithCustomer:f})=>{const[I,D]=s.useState({transactionId:void 0,lineItemId:void 0}),T=s.useRef(),O=s.useRef({}),{useDynamicConfig:S}=us(),{configValue:j}=S(hs.enableUncategorizedExpenseCategory),E=j?.uncategorized_expense_category_enabled===!0,$=(L,F,U,J)=>{const A={...O.current};A[F]==null&&(A[F]=[]);let z=A[F].findIndex(ee=>ee.lineId===L);if(z===-1){const ee={lineId:L,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};A[F].push(ee),z=A[F].length-1}else{const ee=A[F][z];A[F][z]={...ee,category:{...ee.category,recommendationTypesViewed:[...ee.category.recommendationTypesViewed]},class:{...ee.class,recommendationTypesViewed:[...ee.class.recommendationTypesViewed]},vendor:{...ee.vendor,recommendationTypesViewed:[...ee.vendor.recommendationTypesViewed]}}}J!=null&&J!==""&&!A[F][z][U].recommendationTypesViewed.includes(J)&&A[F][z][U].recommendationTypesViewed.push(J),O.current=A},{transactions:W,transactionLocalData:_,accountsHierarchyList:H,classHierarchyList:N,accountList:V,classList:q,selectedCheckBoxTransactionIds:G,uncategorizedAccounts:B}=n,ce=qt({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Ui(G,_,H,N,p.entityAutoCompleteView),[H,N,G,_,p.entityAutoCompleteView]),values:s.useMemo(()=>Ui(G,_,H,N,p.entityAutoCompleteView),[H,N,G,_,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{G.length>0?r(eo):r("expenseAutomationPage")},[G,r]);const fe=ce.handleSubmit(L=>{const F=L[On],U=O.current;b(e,F,U),F.forEach(J=>{delete O.current[J]})}),Z=async(L,F)=>{if(L!=null){if(L===On){const U=ce.getValues(On);if(U.length<G.length){C(e,U);return}if(U.length===mn){C(e,U);return}const J=U[U.length-1],A=F[Wt].findIndex(ee=>ee.transactionId===J),z=ce.getValues(`${Wt}.${A}.lineInfo`);if(z!=null){let ee=!1;if(z.every(me=>(ee=cn(B,me[Ae].selectedOption,E?["income"]:void 0),!!me[Ae].selectedOption&&me[Ae].selectedOption!=null&&!ee&&!!me[Ze].selectedOption&&!!me[lt].selectedOption))===!0){C(e,U);return}else{const me=U.filter(R=>R!==J);C(e,me);return}}return}if(L.includes(Ae)===!0||L.includes(Ze)===!0){const U=parseInt(L.split(".")[1]),J=parseInt(L.split(".")[3]),A=ce.getValues(`${Wt}.${U}.lineInfo`),z=A[J];if(L.includes(Ae)||L.includes(Ze)){const{transactionId:ee,lineId:me,recommendations:R}=z;if(A!=null){const se=z[Ae].selectedOption,P=z[Ze].selectedOption,K=z[lt].selectedOption,be=z[lt].selectedOption,$e=z[lt].defaultOptions,he=$e?.find(de=>de.options?.find(Ve=>Ve.value===K))?.options?.find(de=>de.value===K)?.label,v=$e?.find(de=>de.options?.find(Ve=>Ve.value===be))?.options?.find(de=>de.value===be)?.label,re=p.entityAutoCompleteView.vendor.find(de=>de.qboId===K),je=p.entityAutoCompleteView.customer.find(de=>de.qboId===be),Pe=R.find(de=>de.vendor?.qboId===K)?.vendor,ke=K||re?.qboId||Pe?.qboId?{id:K??re?.qboId??Pe?.qboId??"",name:he??re?.name??Pe?.name??"",logo:re?.logo??Pe?.logo}:void 0,Le=be||je?.qboId?{id:be??je?.qboId??"",name:v??je?.name??"",logo:je?.logo}:void 0,ge=V.find(de=>de.qboId===se),Qe=q.find(de=>de.classId===P),qe=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[me].account,Je=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[me].class;m(e,ee,me,W,ke?.id,Le?.id,L.includes(Ae)&&ge!=null?{...ge,isPreFilled:!1}:qe,L.includes(Ze)&&Qe!=null?{...Qe,isPreFilled:!1}:Je,void 0,R,E)}return}}if(L.includes(lt)){const U=parseInt(L.split(".")[1]),J=parseInt(L.split(".")[3]),A=ce.getValues(`${Wt}.${U}.lineInfo`);if(A!=null){const z=A[J],{transactionId:ee,recommendations:me}=z,R=z[lt].selectedOption,se=z[lt].selectedOption,P=z[lt].defaultOptions,K=P?.flatMap(ge=>ge.options)?.find(ge=>ge.value===R)?.label,be=P?.flatMap(ge=>ge.options)?.find(ge=>ge.value===se)?.label,$e=p.entityAutoCompleteView.vendor.find(ge=>ge.qboId===R),he=p.entityAutoCompleteView.customer.find(ge=>ge.qboId===se),v=me.find(ge=>ge.vendor?.qboId===R)?.vendor,re=R!==""&&R!=null?R:K!==""&&K!=null?K:"",je=($e?.qboId!=null&&$e.qboId!==""?$e.qboId:null)??(v?.qboId!=null&&v.qboId!==""?v.qboId:null)??(R!=null&&R!==""?R:null),Pe={id:je??K??"",name:K??$e?.name??v?.name??"",logo:$e?.logo??v?.logo},ke=he?.qboId!=null&&he.qboId!==""?{id:he.qboId??se??"",name:be??he.name??"",logo:he.logo}:void 0,Le=W.find(ge=>ge.id===ee);if(Le!=null){const ge=n.transactionLocalData.find(Ve=>Ve.transactionId===Le.id)?.transactionReviewLocalData,Qe=ge?.lineItemById[z.lineId],qe=Nt(Le)===!0?ge?.selectedEntity:Qe?.selectedEntityLine,Je=ke?.id!=null&&ke.id!==""?{id:ke.id,name:ke.name,type:"customer",qboId:ke.id,zeniId:ke.id,logo:ke.logo}:Pe.id!==""&&Pe.id!=null?{id:re,name:K??re,type:"vendor",qboId:re,zeniId:re,logo:Pe.logo,isPreFilled:qe?.id===je&&qe?.isPreFilled}:void 0,de={transactionId:{id:Le.id,type:Le.type},transaction:Le,lineIds:Le.type!=="journal_entry"?Le.lines?.map(Ve=>Ve.id)??[]:[z.lineId]};Je?.type==="customer"?f(z.amount.amount,de,!1,e,Je,ke,E):k(z.amount.amount,de,!1,e,Je,Pe,E)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const L=ce.watch((F,{name:U})=>{U!=null&&F!=null&&xn(()=>Z(U,F))});return()=>{L.unsubscribe()}}),s.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const L=n.transactionLocalData.find(F=>F.transactionId===I.transactionId);if(L){const{transactionReviewLocalData:F}=L,{selectedEntity:U}=F,J=I?.lineItemId??F.sortedLineItems[0],A=F.lineItemById[J],z=A.selectedEntityLine;T.current?.(jo(p.entityAutoCompleteView,U??z,A?.recommendationsWithCOT??[]))}D({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const Q=(L,F)=>{i.onAutoCompleteInputChange?.(L),T.current=F},oe=s.useRef(null);return t.jsx(wm,{ref:oe,"data-testid":M("transaction-categorization-list-page"),children:t.jsx(Jt,{...ce,children:t.jsx("form",{id:Hi(eo),onSubmit:fe,style:{height:"100%",width:"100%"},"data-testid":M(Hi(eo)),children:t.jsx(om,{selectedTab:e,sectionId:h,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:D,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:w,onTransactionCategorizationRowClick:u,vendorLoadOptions:Q,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:oe,isCOTEnabled:l,cotTracking:{onCOTView:$},isUncategorizedExpenseCategoryEnabled:E})})})})},Hi=e=>`${e}_form`,Ui=(e,n,d,c,h)=>({[Wt]:n.map(p=>Cm(p.transactionId,p.transactionReviewLocalData,d,c,h)),[On]:e}),Cm=(e,n,d,c,h)=>{const{lineItemById:p,sortedLineItems:i,selectedEntity:l}=n,r=Object.values(p).sort((u,x)=>i.indexOf(u.lineId)-i.indexOf(x.lineId)),m=r[0]?.lineId;return{[oa]:r.map(u=>{const x=u.account?.qboId??u.account?.accountId,y=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,[Ae]:{selectedOption:x,allOptions:bs(d,u.recommendationsWithCOT)},[Ze]:{selectedOption:y,allOptions:ws(c,u.recommendationsWithCOT)},[lt]:{selectedOption:l?.id??w?.id??l?.name??w?.name,defaultOptions:jo(h,l??w,n.lineItemById[m]?.recommendationsWithCOT??[])},[jp]:u.lineEntity,[kp]:u.recommendationsWithCOT??[]}}),transactionId:e,[Ip]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[$p]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},wm=a.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
- `,Wi={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},bm=a.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
- `,vm=a.div`
1513
- display: flex;
1514
- flex-direction: column;
1515
- width: 100%;
1516
- `,Sm=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,authParams:i,receiptUploadEndpoint:l,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:y,monthEndInsightsCustomerRequestData:w,allThreadsSectionOpen:b,loggedInUser:C,isCOTEnabled:k,setCurrentFooterFormId:f,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:D,onTransactionCategorizationRowClick:T,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:S,onUploadReceiptAttachment:j,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:$,onReconTabColumnSortConfigChanged:W,onReloadReconciliationListPage:_,onUpdateReconcileTabLocalData:H,onUpdateMissingReceiptsUIState:N,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:q,onUpdateScrollYOffSetTransactionCategorizationUIState:G,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:ce,onJESchedulesFormDataChange:fe,onPostJESchedule:Z,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:oe,updateSelectedVendorForTransaction:L,onSaveUpdateTransactionCategorization:F,onUpdateSelectedCheckboxTransactionIds:U,improveMonthEndInsightsUsingZeniGPTClick:J,onRemoveFileAttachment:A,onUpdateFileAttachment:z,onCloseAllThreadsSection:ee,onEditMonthEndInsightsClick:me,previewMonthEndReport:R,saveMonthEndReport:se,onOpenFileAttachmentSnackBar:P,onCloseFileAttachmentSnackBar:K,onClickCustomerRequest:be,sendMonthEndReport:$e,markAsReview:he,onReloadPage:v,onBackClick:re,updateOperatingExpensesIdsForReview:je,updateSectionCollapseStatus:Pe,onFetchReimbursementView:ke,redirectToVendorDetailPage:Le,updateSectionIdsForReview:ge,onUpdateFluxAnalysisUIState:Qe,fetchFluxViewOnScroll:qe,onFetchFluxViewList:Je,setIsJeAccountSettingsOpened:de,onReviewClicked:Ve,setOpenDrawerClicked:nt,onEstablishConnectionClick:ot,onFetchLinkTokenClick:St,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:le,onReconListPageScroll:ne,onAddStatementClick:we}=e,{currentSelectedView:Ie,missingReceipts:it,transactionView:st,selectedPeriod:It,monthEndInsights:Fe,selectedTransactionCategorizationTab:Kt,reconciliation:Gt}=p;switch(Ie){case"transaction_categorization":return st.fetchState==="Completed"&&st.transactionLocalData.length===0?t.jsx(wt,{tab:Ie,title:Ne(Ie).allDoneText.title,subTitle:Ne(Ie).allDoneText.subTitle}):t.jsx(ym,{setCurrentFooterFormId:f,selectedPeriod:It,selectedTab:Kt,sectionId:Wt,transactionView:st,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:q,onUpdateScrollYOffSetTransactionCategorizationUIState:G,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:T,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:oe,updateSelectedVendorForTransaction:L,onSaveUpdateTransactionCategorization:F,onUpdateSelectedCheckboxTransactionIds:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:D,isCOTEnabled:k});case"je_schedules":return t.jsx(Mu,{setIsJeAccountSettingsOpened:de,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:f,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:ce,onJESchedulesFormDataChange:fe,onPostJESchedule:Z,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return it.fetchState==="Completed"&&it.transactions.length===0?t.jsx(wt,{tab:Ie,title:Ne(Ie).allDoneText.title,subTitle:Ne(Ie).allDoneText.subTitle}):t.jsx(jh,{onUpdateMissingReceiptsUIState:N,onFetchMissingReceiptsList:O,missingReceipts:it,receiptUploadEndpoint:l,authParams:i,selectedPeriod:It,onMissingReceiptsRowClick:S,onUploadReceiptComplete:E,onUploadReceiptFetchStatus:$,onUploadReceiptAttachment:j});case"month_end_insights":if(Fe!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(Fe.fetchState==="Not-Started"||Fe.fetchState==="In-Progress"||Fe.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||Fe.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(fa,{fetchState:"In-Progress"});{const Bt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:Fe.companyName,url:window.location.href},{url:fn,...ae}=Bt,ye={...ae};return t.jsx(vm,{children:t.jsx(Xh,{allThreadsSectionOpen:b,customerRequestData:w,companyId:r,enableZeniGPTFeature:x,filterMetaData:ye,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:J,isZeniUser:C.userEmail?.includes("zeni.ai")??!1,monthEndReportView:Fe,newThreadMetadata:Bt,onClickCustomerRequest:be,onCloseAllThreadsSection:ee,onCloseFileAttachmentSnackBar:K,onOpenFileAttachmentSnackBar:P,onRemoveFileAttachment:A,onUpdateFileAttachment:z,previewMode:y,previewMonthEndReport:R,saveMonthEndReport:se,onEditClick:me,sendMonthEndReport:$e})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(wt,{tab:Ie,title:Ne(Ie).allDoneText.title,subTitle:Ne(Ie).allDoneText.subTitle}):t.jsx(pu,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:he,onReloadPage:v,onBackClick:re,updateOperatingExpensesIdsForReview:je,updateSectionIdsForReview:ge,onUpdateFluxAnalysisUIState:Qe,setCurrentFooterFormId:f,fetchFluxViewOnScroll:qe,onFetchFluxViewList:Je,updateSectionCollapseStatus:Pe,onFetchReimbursementView:ke,redirectToVendorDetailPage:Le});case"reconciliation":return t.jsx(Yd,{onReconListPageScroll:ne,onReloadReconciliationListPage:_,currentFooterFormId:n,reconciliation:Gt,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:Ve,setOpenDrawerClicked:nt,setCurrentFooterFormId:f,onReconTabColumnSortConfigChanged:W,onUpdateReconcileTabLocalData:H,onEstablishConnectionClick:ot,onFetchLinkTokenClick:St,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:Oe,onReconMatchedTransactionClick:le,onAddStatementClick:we});default:return t.jsx(wt,{tab:Ie,title:Ne(Ie).allDoneText.title,subTitle:Ne(Ie).allDoneText.subTitle})}};function jm(e){const n=ve(),{currentSelectedView:d}=e.expenseAutomationViewSelector,c=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(bm,{windowSize:n,style:{...h===!0?{paddingLeft:Wi.subSectionContainerLeftRightPadding.value(n),paddingRight:Wi.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Sm,{...e})})}const km=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Im=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),$m=a.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
- `,Lm=a.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
- `,qi=a(ha)`
1537
- height: ${o.sp3};
1538
- width: ${o.sp3};
1539
- cursor: pointer;
1540
- color: inherit;
1541
- `,Ji=a(km)`
1542
- height: ${o.sp3};
1543
- width: ${o.sp3};
1544
- cursor: pointer;
1545
- color: inherit;
1546
- `,{common:{footer:Ee,texts:{maxLimitReached:Tm,confirmAction:Am},headers:Em,create:Rm,strings:dn,texts:an,cancel:Dm,confirm:Om,monthsByIndex:Fm},dateFormat:{visual:{MMMDCommaYYYYformat:Ki}},expenseAutomation:un}=Se.getLocalizedStrings(),f1=e=>{const{expenseAutomationViewSelector:n,isDisabled:d,isRealtimeInsightsFeatureEnabled:c,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:i,onReconTabUpdate:l,onUpdateStep:r,onSearchTextChanged:m,onRefresh:u,onClose:x,onBack:y,resetTransactionCategorizationLocalData:w,updateOperatingExpensesIdsForReview:b,clearJeScheduleLocalData:C,onSaveReconciliation:k}=e,{currentSelectedView:f,allSteps:I,missingReceipts:D,jeSchedules:T,fluxAnalysis:O,monthEndInsights:S,transactionView:j,selectedTransactionCategorizationTab:E,reconciliation:$,selectedPeriod:W}=n,[_,H]=s.useState("expenseAutomationPage"),[N,V]=s.useState(()=>{}),[q,G]=s.useState(!1),B=ve(),ce=!!e.loggedInUser.userEmail?.includes("zeni.ai"),fe=ce?Xi:Qi,{openThread:Z,setOpenThread:Q}=s.useContext(fe),[oe,L]=s.useState(!1),[F,U]=s.useState(!1),J=I.find(le=>le.step===f),{nextStep:A,previousStep:z}=zm(I,f),{uiState:{searchString:ee,pageToken:me},totalCountByTab:R,transactions:se,fetchStateByTransactionTabs:P,transactionLocalData:K}=j,{selectedReconAccount:be,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:$e}}}}=$;let he="Not-Started",v="complete";switch(f){case"missing_receipts":he=D.refreshStatus.fetchState,v=D.completionStatus;break;case"je_schedules":he=T.refreshStatus.fetchState,v=T.completionStatus;break;case"month_end_insights":S!=null&&(he=S?.fetchState);break;case"flux_analysis":he=O.refreshStatus.fetchState,v=O.completionStatus;break;case"transaction_categorization":he=j.refreshStatus.fetchState,v=j.completionStatus;break;case"reconciliation":be==null?(he=$.refreshStatus.fetchState,v=$.completionStatus):(he=$.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",v=$.completionStatus)}const re=()=>{N()},{saveStatus:je,selectedCheckBoxTransactionIds:Pe}=j,ke=()=>{const le=Gs(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),ne=Un(),{month:we,year:Ie}=W,it=Un().set("month",we-1).set("year",Ie).endOf("month");switch(_){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:le===!0?Ee.markAsReviewed:an.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:lo(n.fluxAnalysis.reviewOperatingExpensesIds.length,Os,B,an.vendor,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{b([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:je.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:lo(Pe.length,mn,B,an.transaction,f),cancelBtn:{label:Ee.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w(E,se.map(st=>st.id),W,!1,R[E],Uo(K,E),h,me)}}};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||J?.isNextDisabled,suffixIcon:t.jsx(qi,{}),onClick:()=>{r(A.step)}},cancelBtn:{label:Ee.back,isDisabled:d||J?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ji,{}),onClick:()=>{r(z.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Ee.reconcile,backBtnLabel:Ee.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ee.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!($.reconciliationTabsState.balances.variance.amount===0&&ne.isAfter(it)),isLoading:$.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:lo($e.length,1/0,B,an.transaction,f),cancelBtn:{onClick:()=>{k({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 st=f==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,It=f==="reconciliation"&&n.reconciliation.selectedAccountId==null,Fe=f==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Kt=A.step==="month_end_insights"&&(f==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||It),Gt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",Bt=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",fn=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||J?.isNextDisabled===!1),ae=A.step==="month_end_insights"&&(It||f==="flux_analysis")?!fn:J?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Ee.next,backBtnLabel:Ee.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Kt===!0?Mm(n.selectedPeriod.month):Ee.next,style:{justifyContent:"space-evenly"},isDisabled:ae,suffixIcon:t.jsx(qi,{}),onClick:()=>{Gt?i("autoCategorized"):st?l("reconcile"):r(A.step)}},cancelBtn:{label:Ee.back,isDisabled:d||J?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ji,{}),onClick:()=>{Bt?i("review"):Fe?l("review"):st?y():r(z.step)}}}}}},Le=()=>{switch(_){case"expenseAutomationFluxPage":return{confirmAction:()=>{L(!1),b([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{L(!1),w(E,se.map(le=>le.id),W,!1,R[E],Uo(K,E),h,me),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{L(!1),C(),x()}};default:return{confirmAction:()=>{L(!1)},confirmationDescription:dn.empty}}},ge=()=>{_==="expenseAutomationFluxPage"||_==="expenseAutomationJESchedulePage"||_==="expenseAutomationTransactionsPage"?L(!0):x()},{primaryBtn:Qe,cancelBtn:qe,leftSideComponent:Je}=ke(),{confirmAction:de}=Le(),Ve=le=>{if(f==="transaction_categorization"&&(le==="autoCategorized"||le==="review"))return{hideCountInTab:R[le]>un.common.numbers.maximumCount,count:R[le],isFetching:P[le].fetchState==="In-Progress"};if(f==="reconciliation"){const{reconciliation:ne}=n,{selectedAccountId:we}=ne;return we==null?{count:0,isFetching:!1}:le==="review"?{count:ne.accountReconciliationsByAccountID[we]?.accountReconEntity?.transactionsToReview.length,isFetching:ne.accountReconciliationsByAccountID[we]?.transactionFetchState.fetchState==="In-Progress"}:{count:ne.accountReconciliationsByAccountID[we]?.accountReconEntity?.transactionsToReconcile.length,isFetching:ne.accountReconciliationsByAccountID[we]?.transactionFetchState.fetchState==="In-Progress"}}},nt=f==="reconciliation"&&$.selectedAccountId!=null&&$.selectedReconAccount!=null,{month:ot,year:St}=W,jt=Un().set("month",ot-1).set("year",St),Ft=jt.startOf("month").format(Ki),kt=jt.endOf("month").format(Ki),Oe=`${Ft} ${dn.hyphen} ${kt}`;return t.jsxs($m,{children:[oe?t.jsx(la,{containerStyle:{width:356},titleComponent:t.jsx(Um,{children:Am}),primaryButtonText:Om,secondaryButtonText:Dm,proceedButtonVariant:"danger",action:{onOkClick:()=>{de()},onCancelClick:()=>L(!1)},descriptionComponent:t.jsx(Wm,{children:un.confirmationDescription})}):null,t.jsxs(Lm,{children:[t.jsx(ml,{onBack:y,navBarCustomElement:f==="reconciliation"&&$.selectedAccountId!=null?t.jsx(Bm,{reconciliation:$}):void 0,onReconTabUpdate:l,currentRecontab:$.selectedTab,reconcileDetailPageFetchState:$.selectedAccountId!=null?$.accountReconciliationsByAccountID[$.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:nt?$.selectedAccountId:void 0,currentSelectedView:f,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Ne(f,R.autoCategorized,nt?$.selectedAccountId:void 0,nt?$.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,nt?Oe:void 0),searchText:ee,currentTab:E,getTabCountAndFetchState:Ve,completionStatus:v,forceShowSubtitle:q===!0||f==="je_schedules"&&(T.fetchState==="In-Progress"||T.accountSettingsView.fetchState==="In-Progress"),refreshStatus:he,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??dn.empty,isZeniUser:ce,onAllThreadsClick:()=>{Z!=null&&Q(null),U(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:ge}),t.jsx(jm,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:G,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:F,setCurrentFooterFormId:H,currentFooterFormId:_,onCloseAllThreadsSection:()=>U(!1)}),t.jsx(_e,{controller:f!=="month_end_insights",children:t.jsx(es,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:Pm(_),primaryBtn:Qe,leftSideComponent:Je,cancelBtn:qe,separatorStyle:{marginRight:o.sp4}})})]})]})},Bm=({reconciliation:e})=>{const n=bt(),{clearedBalance:d,variance:c,variancePercentage:h,deposits:p,payments:i}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:m}=r??{};return t.jsx(qm,{children:t.jsxs(Jm,{children:[t.jsxs(co,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(uo,{children:t.jsx(Km,{})}),t.jsx(ho,{children:m?.fetchState==="In-Progress"?t.jsxs(go,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(mo,{children:We("0,0.00",l)}),t.jsx(po,{children:un.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(co,{children:[t.jsx(uo,{children:t.jsx(Zm,{})}),t.jsx(ho,{children:m?.fetchState==="In-Progress"?t.jsxs(go,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(mo,{children:We("0,0.00",d)}),t.jsxs(Xm,{children:[t.jsx(po,{children:un.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs(Qm,{children:[t.jsxs(Gi,{children:[t.jsxs(Zi,{children:[i.count," ",an.payments]}),t.jsx(Yi,{children:We("0,0.[00]",i.totalAmount)})]}),t.jsxs(Gi,{children:[t.jsxs(Zi,{children:[p.count," ",an.deposits]}),t.jsx(Yi,{children:We("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(Ym,{})})]})]})})]}),t.jsxs(co,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(uo,{children:t.jsx(Gm,{})}),t.jsx(ho,{children:m?.fetchState==="In-Progress"?t.jsxs(go,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(mo,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:We("0,0.00",c)}),h!=null&&c.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(po,{children:un.accountRecon.reconciliation.headers.variance})]})})]})]})})},lo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(_m,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(Nm,{multiDigit:e>=5,children:e}),t.jsx(Vm,{children:i}),e===n?t.jsx(Hm,{children:`(${Tm})`}):null]}):null},Mm=e=>{const n=Fm[e];return`${Rm}${dn.space}${n}${dn.space}${Em.insights}`};function zm(e,n){const d=e.findIndex(l=>l.step===n);if(d===-1)throw new Error("currentStep not found in allSteps array");const c=(d+1)%e.length,h=(d-1+e.length)%e.length,p=e[c],i=e[h];return{nextStep:p,previousStep:i}}const Pm=e=>`${e}_form`,_m=a.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
- `,Nm=a(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
- `,Vm=a(Be)`
1562
- color: ${e=>e.theme.colors.primary};
1563
- `,Hm=a(vt)`
1564
- color: ${Xe.important};
1565
- `,Um=a(ra)`
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
- `,Wm=a(ca)`
1572
- color: ${e=>e.theme.colors.primary};
1573
- margin-top: ${o.sp2};
1574
- margin-bottom: ${o.sp2};
1575
- `,qm=a.div`
1576
- display: flex;
1577
- justify-content: center;
1578
- align-items: center;
1579
- padding: ${o.sp3} ${o.sp0};
1580
- `,Jm=a.div`
1581
- width: 100%;
1582
- display: flex;
1583
- justify-content: center;
1584
- align-items: center;
1585
- gap: ${o.sp1};
1586
- `,co=a.div`
1587
- display: flex;
1588
- justify-content: center;
1589
- align-items: center;
1590
- gap: ${o.sp3};
1591
- `,uo=a.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
- `,ho=a.div`
1600
- display: flex;
1601
- flex-direction: column;
1602
- `,po=a(vt)`
1603
- color: ${e=>e.theme.colors.hero};
1604
- `,mo=a(ns)`
1605
- min-width: 180px;
1606
- color: ${e=>e.theme.colors.primary};
1607
- `,Km=a(ga)`
1608
- color: ${e=>e.theme.colors.primary};
1609
- width: ${o.sp4};
1610
- height: ${o.sp4};
1611
- `,Gm=a(xa)`
1612
- color: ${e=>e.theme.colors.primary};
1613
- width: ${o.sp4};
1614
- height: ${o.sp4};
1615
- `,Zm=a(Im)`
1616
- color: ${e=>e.theme.colors.primary};
1617
- width: ${o.sp4};
1618
- height: ${o.sp4};
1619
- `,Ym=a(os)`
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
- `,Xm=a.div`
1627
- display: flex;
1628
- align-items: center;
1629
- gap: ${o.sp1};
1630
- `,Qm=a.div`
1631
- background-color: ${Xe.overlayDark};
1632
- padding: 2px ${o.sp2};
1633
- border-radius: ${o.sp1};
1634
- `,Gi=a.div`
1635
- display: flex;
1636
- justify-content: space-between;
1637
- gap: ${o.sp2};
1638
- `,Zi=a.div`
1639
- text-transform: capitalize;
1640
- `,Yi=a(vt)`
1641
- color: ${Xe.primaryDark};
1642
- align-self: "flex-end";
1643
- `,tn=a(Dt)`
1644
- border-radius: ${o.sp2};
1645
- `,go=a.div`
1646
- display: flex;
1647
- flex-direction: column;
1648
- min-width: 180px;
1649
- gap: ${o.sp1};
1650
- `;export{Um as ConfirmationPopUpTitle,f1 as default,zm as getNextAndPreviousSteps,Pm as uniqueFormName};