@zeniai/web-components 3.17.6 → 3.17.7

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 (906) hide show
  1. package/dist/ACHDetailsPage-DJvwZ7dA.cjs +21 -0
  2. package/dist/ACHDetailsPage-_-CKXyHI.js +160 -0
  3. package/dist/AIPerformancePage-CdT_WOa_.js +1345 -0
  4. package/dist/AIPerformancePage-CkTvUuZ4.cjs +539 -0
  5. package/dist/AccountInfoPage-CHBkUPCg.js +78 -0
  6. package/dist/AccountInfoPage-tKsJJ2WM.cjs +18 -0
  7. package/dist/AccountInfoPageContent-BZIMLUCX.js +428 -0
  8. package/dist/AccountInfoPageContent-DdV5fmxV.cjs +149 -0
  9. package/dist/AccountLockedInfoModal-DBtOzRN8.cjs +59 -0
  10. package/dist/AccountLockedInfoModal-DUDUhhOk.js +125 -0
  11. package/dist/AccountReconDetailsDrawerPage-um-RPUKt.cjs +239 -0
  12. package/dist/AccountReconDetailsDrawerPage-w86MaLur.js +688 -0
  13. package/dist/AccountRow-DwO4Outr.js +1014 -0
  14. package/dist/AccountRow-zgxsXwL5.cjs +298 -0
  15. package/dist/AccountsPromoCardStack-ClXkXyKK.cjs +207 -0
  16. package/dist/AccountsPromoCardStack-ipO525fG.js +664 -0
  17. package/dist/AddAddressForCardDrawer-CKvnAZdu.js +82 -0
  18. package/dist/AddAddressForCardDrawer-DR949s1b.cjs +6 -0
  19. package/dist/AddToWalletPage-hT3of0SJ.cjs +344 -0
  20. package/dist/AddToWalletPage-jD5pGcEv.js +642 -0
  21. package/dist/AgingReportsPage-BqXo5uRp.js +827 -0
  22. package/dist/AgingReportsPage-DiRITej2.cjs +79 -0
  23. package/dist/AllUserItems-CZx2aZj4.js +979 -0
  24. package/dist/AllUserItems-DPWLSSms.cjs +192 -0
  25. package/dist/ApAgingDetailPage-C5Yxm-J6.cjs +46 -0
  26. package/dist/ApAgingDetailPage-DESxVVVR.js +239 -0
  27. package/dist/AppBasePage-HvxLDlsl.js +120 -0
  28. package/dist/AppBasePage-RI-kg_xJ.cjs +71 -0
  29. package/dist/AppDrawerContent-BSTuf7Ye.js +379 -0
  30. package/dist/AppDrawerContent-vhjUv0Gf.cjs +91 -0
  31. package/dist/ApprovalRulesSettingsPage-2ltkQpWj.cjs +47 -0
  32. package/dist/ApprovalRulesSettingsPage-Dl-ugR1l.js +145 -0
  33. package/dist/ArAgingChart-DB_7ML3y.cjs +24 -0
  34. package/dist/ArAgingChart-KVy8im0s.js +530 -0
  35. package/dist/ArAgingDetailPage-2duBk2Kw.cjs +46 -0
  36. package/dist/ArAgingDetailPage-CXB0vLG0.js +243 -0
  37. package/dist/AttachmentView-DVPcEEOi.cjs +101 -0
  38. package/dist/AttachmentView-DzQgWbxS.js +260 -0
  39. package/dist/BankAccountSection-B8XHLIib.js +398 -0
  40. package/dist/BankAccountSection-lFmBx0PO.cjs +79 -0
  41. package/dist/BankAccountWarningSection-CYvv8So_.js +110 -0
  42. package/dist/BankAccountWarningSection-D1_nr_Wt.cjs +51 -0
  43. package/dist/BankConnectionsSettingsPage-BO60Wt9X.cjs +425 -0
  44. package/dist/BankConnectionsSettingsPage-BYRzPf4c.js +1694 -0
  45. package/dist/BillDetailPage-B5tUIjJx.cjs +266 -0
  46. package/dist/BillDetailPage-C1VbUZGe.js +1801 -0
  47. package/dist/BillPayApprovalRuleDetailPage-BUtioJtN.js +266 -0
  48. package/dist/BillPayApprovalRuleDetailPage-qBmNr9fU.cjs +27 -0
  49. package/dist/BillPayApprovalRulesPage-B0Qb2h64.cjs +241 -0
  50. package/dist/BillPayApprovalRulesPage-BDYmH9p3.js +431 -0
  51. package/dist/BillPayPromoPage-CViV3F4f.js +292 -0
  52. package/dist/BillPayPromoPage-CwsAflUh.cjs +84 -0
  53. package/dist/BillPaySetUpPage-BpYmXfPg.js +408 -0
  54. package/dist/BillPaySetUpPage-V1wT8g1b.cjs +42 -0
  55. package/dist/BillingSettingsPage-DKlT1R09.js +336 -0
  56. package/dist/BillingSettingsPage-DVo9kRuK.cjs +44 -0
  57. package/dist/BillsBulkReviewDrawerPage-CnadkYu7.cjs +1 -0
  58. package/dist/BillsBulkReviewDrawerPage-XR68r_sH.js +216 -0
  59. package/dist/BoxItem-7jUmnaCt.cjs +53 -0
  60. package/dist/BoxItem-BK4aC9QH.js +118 -0
  61. package/dist/BusinessVerificationPage-Ceuk9QA_.js +716 -0
  62. package/dist/BusinessVerificationPage-opCGygWQ.cjs +138 -0
  63. package/dist/BusyIndication-7Kung-dq.js +19 -0
  64. package/dist/BusyIndication-DyDhNuyF.cjs +9 -0
  65. package/dist/CardNumberSubText-C3RJrzqI.js +59 -0
  66. package/dist/CardNumberSubText-CGCtPZiE.cjs +21 -0
  67. package/dist/CashbackDetailPage--1SmCpIq.js +825 -0
  68. package/dist/CashbackDetailPage-ZQ4dhHWQ.cjs +285 -0
  69. package/dist/ChargeCardDetailPage-DhUgJipn.cjs +1462 -0
  70. package/dist/ChargeCardDetailPage-DmnUDQjo.js +5454 -0
  71. package/dist/ChargeCardListPage-B7p_sLBm.js +1797 -0
  72. package/dist/ChargeCardListPage-DRcvtjQV.cjs +412 -0
  73. package/dist/ChargeCardListTable-CdfLCe5s.js +2901 -0
  74. package/dist/ChargeCardListTable-DSoAG8k6.cjs +711 -0
  75. package/dist/ChargeCardPromoPage-B1x5Aijx.js +816 -0
  76. package/dist/ChargeCardPromoPage-BZcCHE0e.cjs +222 -0
  77. package/dist/ChargeCardSetupPage-DEtzpXfI.cjs +36 -0
  78. package/dist/ChargeCardSetupPage-veKFvebR.js +359 -0
  79. package/dist/ChargeCardStatementsPage-BDeoL4_U.cjs +60 -0
  80. package/dist/ChargeCardStatementsPage-DTjWLcmw.js +243 -0
  81. package/dist/CheckDepositDrawerPage-CsJ25-8l.cjs +206 -0
  82. package/dist/CheckDepositDrawerPage-TewGckz2.js +726 -0
  83. package/dist/CollapsableReportTable-BX9DKHfX.js +11659 -0
  84. package/dist/CollapsableReportTable-qYHqbXSe.cjs +2844 -0
  85. package/dist/CompanyOfficerDetailsSection-BjOV9RnD.cjs +260 -0
  86. package/dist/CompanyOfficerDetailsSection-DvFEn3tj.js +1633 -0
  87. package/dist/CompanyPassportCard-ChQ0btjv.js +146 -0
  88. package/dist/CompanyPassportCard-DzTXK8O_.cjs +42 -0
  89. package/dist/CompanyPassportPage-7ns_ONGO.cjs +574 -0
  90. package/dist/CompanyPassportPage-CZp9iQ1Q.js +2160 -0
  91. package/dist/CompleteProfile-CSbzFmyv.cjs +52 -0
  92. package/dist/CompleteProfile-olfhjZsd.js +301 -0
  93. package/dist/ConfettiBurst-CCJXq1Ht.js +37 -0
  94. package/dist/ConfettiBurst-DiLjpmeK.cjs +1 -0
  95. package/dist/CreateOrEditVendorPage-BntVxAwa.js +763 -0
  96. package/dist/CreateOrEditVendorPage-gt-RTWDn.cjs +281 -0
  97. package/dist/CreditCardPaymentDrawerPage-CWabaZAm.js +1170 -0
  98. package/dist/CreditCardPaymentDrawerPage-zh7UEUpY.cjs +224 -0
  99. package/dist/CurrencySelectField-DNpKR0E8.js +348 -0
  100. package/dist/CurrencySelectField-Dh1xOOOQ.cjs +139 -0
  101. package/dist/CustomerOnboardingActivationPage-BkvA9LFR.cjs +88 -0
  102. package/dist/CustomerOnboardingActivationPage-D8-wZbzT.js +143 -0
  103. package/dist/CustomerOnboardingContainerPage-D6UIfpIR.cjs +1 -0
  104. package/dist/CustomerOnboardingContainerPage-LW0iALUD.js +7 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-B2RZCaMW.js +434 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-Bre8sOgU.cjs +162 -0
  107. package/dist/CustomerOnboardingNoStepsPage-ByvUXg5c.cjs +66 -0
  108. package/dist/CustomerOnboardingNoStepsPage-DYwDlsMt.js +424 -0
  109. package/dist/CustomerOnboardingPage-DIYF3cm-.js +1094 -0
  110. package/dist/CustomerOnboardingPage-DQB9Rb1D.cjs +107 -0
  111. package/dist/CustomerOnboardingProductSuitePage-O4HNDUde.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-hQafHB0h.cjs +202 -0
  113. package/dist/Dashboard-Bb5rEilr.js +5540 -0
  114. package/dist/Dashboard-Db7obCYq.cjs +1551 -0
  115. package/dist/DashboardReportPage-AehkSzEt.js +2536 -0
  116. package/dist/DashboardReportPage-WPWF-CXq.cjs +371 -0
  117. package/dist/DashboardSidebarBackgroundAnimation-BEvly2_p.cjs +12 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-ke8zbq-N.js +53 -0
  119. package/dist/DepositAccTransactionItem-CZWKiySr.js +112 -0
  120. package/dist/DepositAccTransactionItem-Cl1jCx4I.cjs +76 -0
  121. package/dist/DepositAccTransactionListPage-CelPyIa-.cjs +66 -0
  122. package/dist/DepositAccTransactionListPage-ir2e4eDA.js +152 -0
  123. package/dist/DomesticWireDetailsPage-CA2WKIGQ.js +189 -0
  124. package/dist/DomesticWireDetailsPage-oaaeeby_.cjs +21 -0
  125. package/dist/DownloadOverlay-C86GqyVG.js +2148 -0
  126. package/dist/DownloadOverlay-CgP8QCZ8.cjs +439 -0
  127. package/dist/DrawerPage-DQPICpS4.js +208 -0
  128. package/dist/DrawerPage-PZZvmRHH.cjs +118 -0
  129. package/dist/EditPeoplePage-647MKGXd.js +392 -0
  130. package/dist/EditPeoplePage-C9xm5CD5.cjs +55 -0
  131. package/dist/EditReimbursementDetailPage-Bu-VLakg.cjs +865 -0
  132. package/dist/EditReimbursementDetailPage-qXalg-PI.js +4531 -0
  133. package/dist/EmptySearchResults-COztu5A8.js +70 -0
  134. package/dist/EmptySearchResults-DMX9R02o.cjs +46 -0
  135. package/dist/EntityDetailPage-D8Bma8AG.cjs +18 -0
  136. package/dist/EntityDetailPage-DcUWlDtU.js +82 -0
  137. package/dist/EntitySummarySection-hiu4NgtZ.cjs +149 -0
  138. package/dist/EntitySummarySection-nyhQMyh2.js +530 -0
  139. package/dist/ExpenseAutomationOverviewPage-BSsSvrxM.cjs +281 -0
  140. package/dist/ExpenseAutomationOverviewPage-ZVLgNoRd.js +807 -0
  141. package/dist/ExpenseAutomationPage-Cu70oa3b.cjs +1650 -0
  142. package/dist/ExpenseAutomationPage-d9HeIYbs.js +11574 -0
  143. package/dist/ExpressPayPage-BstH4kTm.js +1136 -0
  144. package/dist/ExpressPayPage-DCkCWXtp.cjs +168 -0
  145. package/dist/FeaturePreviewPage-C2DawhRW.js +114 -0
  146. package/dist/FeaturePreviewPage-FouDa32o.cjs +11 -0
  147. package/dist/FollowStepsSection-BRDdQQS0.js +1313 -0
  148. package/dist/FollowStepsSection-C8cbB0dt.cjs +390 -0
  149. package/dist/GlobalReviewListPage-CfkHIRbv.cjs +291 -0
  150. package/dist/GlobalReviewListPage-zyjMHtHj.js +1674 -0
  151. package/dist/InformationCardStack-3X0_-dgg.cjs +31 -0
  152. package/dist/InformationCardStack-BeH28vRR.js +219 -0
  153. package/dist/InsightsCardStack-CBNoKmVz.cjs +79 -0
  154. package/dist/InsightsCardStack-y-YzLCQb.js +305 -0
  155. package/dist/InsightsSection-0FJ0fz6V.js +97 -0
  156. package/dist/InsightsSection-z7YeUHND.cjs +27 -0
  157. package/dist/IntegrationsSettingsPage-BJ5Sv7GC.js +136 -0
  158. package/dist/IntegrationsSettingsPage-DD0K72fP.cjs +57 -0
  159. package/dist/InternationalWireSwiftDetailsPage-CL9h7LJD.cjs +171 -0
  160. package/dist/InternationalWireSwiftDetailsPage-CyepljTT.js +753 -0
  161. package/dist/InternationalWireVerificationPage-DcQGBTjE.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-DxQ9BozW.js +877 -0
  163. package/dist/InviteFormPage-BJFkN4G9.js +873 -0
  164. package/dist/InviteFormPage-D0l5DFI2.cjs +312 -0
  165. package/dist/InvitePageListView-Bi3T6rVz.js +1764 -0
  166. package/dist/InvitePageListView-DY6MYmzr.cjs +739 -0
  167. package/dist/InvitePeoplePage-CcDgOJk7.cjs +12 -0
  168. package/dist/InvitePeoplePage-DqJIP6BI.js +286 -0
  169. package/dist/InvoiceUploadSection-D1uOplei.cjs +140 -0
  170. package/dist/InvoiceUploadSection-DJ7v25Yq.js +465 -0
  171. package/dist/IssueChargeCardPage-CYTQ3RJe.js +2880 -0
  172. package/dist/IssueChargeCardPage-Tiiva_74.cjs +532 -0
  173. package/dist/LabeledAddressValue-DSzAjk99.cjs +49 -0
  174. package/dist/LabeledAddressValue-y-lZTcws.js +115 -0
  175. package/dist/LabeledAddressValueField-BlGcDdi6.cjs +45 -0
  176. package/dist/LabeledAddressValueField-fdti_Scc.js +130 -0
  177. package/dist/LabeledControlledCheckBoxField-DBfY24bv.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-DpjBYqHk.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-B_bi2wHT.js +515 -0
  180. package/dist/LabeledCreatableSingleSelectField-Befkh6pL.cjs +204 -0
  181. package/dist/LabeledDocumentField-BJW5k0ZH.cjs +41 -0
  182. package/dist/LabeledDocumentField-DTbhNoHC.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-B5V6xd2l.cjs +59 -0
  184. package/dist/LabeledDropDownFormattedTextField-D3Y2ysmv.js +163 -0
  185. package/dist/LabeledEmailInputField-C2f1pUWH.js +425 -0
  186. package/dist/LabeledEmailInputField-e0JTHAws.cjs +182 -0
  187. package/dist/LabeledItemWithButton-DqJ7iyMV.cjs +21 -0
  188. package/dist/LabeledItemWithButton-qg0hLfd_.js +74 -0
  189. package/dist/LabeledNameField-Bn727haZ.cjs +141 -0
  190. package/dist/LabeledNameField-D-BhdIk3.js +293 -0
  191. package/dist/LabeledSingleSelectField-DLMnNqHI.js +372 -0
  192. package/dist/LabeledSingleSelectField-DM6mvwFR.cjs +136 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-CwngDQ1G.js +103 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-Xj2T6Nyv.cjs +38 -0
  195. package/dist/LabeledText-CTKKoo1W.js +103 -0
  196. package/dist/LabeledText-DNYKFpay.cjs +42 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-CtBlnyg3.cjs +229 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-D5PPyLT8.js +572 -0
  199. package/dist/LabeledZeniRolesDropDownField-5J1QBH5X.js +975 -0
  200. package/dist/LabeledZeniRolesDropDownField-c4hWaOKi.cjs +297 -0
  201. package/dist/LinkJETransactionPage-Cm5pPS8I.cjs +98 -0
  202. package/dist/LinkJETransactionPage-QYPMjqT8.js +406 -0
  203. package/dist/LockCardPage-acLdftcX.js +2032 -0
  204. package/dist/LockCardPage-mBuxFsDX.cjs +623 -0
  205. package/dist/LowBalancePopup-1sh_kMIW.cjs +34 -0
  206. package/dist/LowBalancePopup-xT_VASoE.js +219 -0
  207. package/dist/MagicLinkACHDetailsPage-4WrH6Tmw.js +39 -0
  208. package/dist/MagicLinkACHDetailsPage-CIabqZoq.cjs +1 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-CM1uw8Ac.js +44 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-QCIW_5Vy.cjs +1 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage-BqKCwFwJ.js +43 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-C45fwO1p.cjs +1 -0
  213. package/dist/MagicLinkSuccessPage-DAwHX2o0.cjs +31 -0
  214. package/dist/MagicLinkSuccessPage-szRCzMAc.js +59 -0
  215. package/dist/MagicLinkTitleSection-CGcCOSV1.js +40 -0
  216. package/dist/MagicLinkTitleSection-Ce18m4G0.cjs +17 -0
  217. package/dist/MailingDetailsSection-B4JA8DWc.cjs +21 -0
  218. package/dist/MailingDetailsSection-pHUCSve9.js +74 -0
  219. package/dist/MatchingOperatorDropdown-BPmFseUT.cjs +130 -0
  220. package/dist/MatchingOperatorDropdown-D5El1Qn7.js +572 -0
  221. package/dist/Menu-BWG2ZaEt.js +110 -0
  222. package/dist/Menu-BWiFYAx0.cjs +17 -0
  223. package/dist/MoreMenuButton--P_T_HJX.cjs +167 -0
  224. package/dist/MoreMenuButton-kdd0-duC.js +569 -0
  225. package/dist/MyBankConnectionsSettingsPage-B93ahPc6.js +297 -0
  226. package/dist/MyBankConnectionsSettingsPage-CHK6c8G3.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-DLFwHEZC.cjs +6 -0
  228. package/dist/MyPendingActivationChargeCardListPage-tWFqMQh-.js +168 -0
  229. package/dist/MyProfileSettingsPage-BAHdAuhw.js +641 -0
  230. package/dist/MyProfileSettingsPage-CJBkgdhh.cjs +85 -0
  231. package/dist/NavBarWithPicker-BIcuiiS9.js +106 -0
  232. package/dist/NavBarWithPicker-DC0MQpEu.cjs +30 -0
  233. package/dist/NavigationArrow-5wXFnc4H.cjs +47 -0
  234. package/dist/NavigationArrow-CNTENYuj.js +88 -0
  235. package/dist/NavigationDots-BoQJ4njg.js +44 -0
  236. package/dist/NavigationDots-D3Fe0Np9.cjs +15 -0
  237. package/dist/NewGlobalMerchantPage-BvgeCRHm.js +543 -0
  238. package/dist/NewGlobalMerchantPage-vT0jCdvT.cjs +160 -0
  239. package/dist/NoDataChart-BHWPnwgh.js +58 -0
  240. package/dist/NoDataChart-PUtFFH4s.cjs +26 -0
  241. package/dist/NoDataTable-8rA99vow.js +27 -0
  242. package/dist/NoDataTable-CmkbGF2u.cjs +8 -0
  243. package/dist/NotFoundPage-BQyrZT81.js +71 -0
  244. package/dist/NotFoundPage-GDK3wBAq.cjs +46 -0
  245. package/dist/NotificationSettingsPage-Byu839QM.js +541 -0
  246. package/dist/NotificationSettingsPage-DWADX6i0.cjs +163 -0
  247. package/dist/NotificationsListConfig-Bmo_IJJX.cjs +1 -0
  248. package/dist/NotificationsListConfig-cbBFewer.js +10 -0
  249. package/dist/NotificationsPage-BLmm94rw.cjs +685 -0
  250. package/dist/NotificationsPage-D8W4CtHQ.js +2664 -0
  251. package/dist/OpExByVendorPage-BH9rjU7K.js +1058 -0
  252. package/dist/OpExByVendorPage-BRucGc77.cjs +100 -0
  253. package/dist/PandLWithForecastPage-C8G_GtEt.cjs +107 -0
  254. package/dist/PandLWithForecastPage-CYz8wux2.js +563 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-CX6brWwR.cjs +106 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-DyXQEUMG.js +623 -0
  257. package/dist/PeoplePage-8TUODQ_c.js +1994 -0
  258. package/dist/PeoplePage-CTXwjpUF.cjs +675 -0
  259. package/dist/ProductsCarousel-Ci8ALolr.cjs +142 -0
  260. package/dist/ProductsCarousel-UIN7VVtp.js +309 -0
  261. package/dist/PromoBaseCards-CWAEjT5v.js +356 -0
  262. package/dist/PromoBaseCards-CbnluxfD.cjs +218 -0
  263. package/dist/QBOConnectionDialog-BGOlNZ0u.js +115 -0
  264. package/dist/QBOConnectionDialog-W6XJXC9H.cjs +51 -0
  265. package/dist/QBOSetupSection-CqGMnl-V.cjs +79 -0
  266. package/dist/QBOSetupSection-Ly9AX7TA.js +167 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-DFOBUggs.js +266 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-s_zB7z9X.cjs +26 -0
  269. package/dist/ReimbursementApprovalRulesPage-CualpfR3.cjs +243 -0
  270. package/dist/ReimbursementApprovalRulesPage-HEv2IMh_.js +429 -0
  271. package/dist/ReimbursementDetailPage-Cqt6gxcc.cjs +314 -0
  272. package/dist/ReimbursementDetailPage-j8ea0YyY.js +1514 -0
  273. package/dist/ReimbursementPromoPage-BYBpwzgG.cjs +84 -0
  274. package/dist/ReimbursementPromoPage-Cj18w2ZF.js +363 -0
  275. package/dist/ReimbursementSetUpPage-4azcGSOK.js +663 -0
  276. package/dist/ReimbursementSetUpPage-rgTH8qHg.cjs +140 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-DUswyi-k.js +204 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-DjXpx5G3.cjs +1 -0
  279. package/dist/ReloadCard-BDPPFf07.js +137 -0
  280. package/dist/ReloadCard-CFxVMsD3.cjs +26 -0
  281. package/dist/ReloadContainer-D1lTvHDI.js +2165 -0
  282. package/dist/ReloadContainer-D3SxFIeR.cjs +596 -0
  283. package/dist/ReportTableViewSelector-CFQ1TinV.cjs +150 -0
  284. package/dist/ReportTableViewSelector-DdViCbAB.js +679 -0
  285. package/dist/ReportsPage-DDxqNH_D.cjs +121 -0
  286. package/dist/ReportsPage-tmxXs5AG.js +1315 -0
  287. package/dist/RevenueChart-BSKufOK8.cjs +280 -0
  288. package/dist/RevenueChart-D4hp9rVG.js +2240 -0
  289. package/dist/ReviewDetailsPage-BwjPbL0K.cjs +290 -0
  290. package/dist/ReviewDetailsPage-CDxrvdt3.js +1073 -0
  291. package/dist/ReviewOverlay-Br5S-AZH.js +299 -0
  292. package/dist/ReviewOverlay-C-z1aahJ.cjs +152 -0
  293. package/dist/RoleWithToolTip-BPSGROo2.js +72 -0
  294. package/dist/RoleWithToolTip-yzFnS2jP.cjs +22 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-BUKAHnpW.cjs +37 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-DPpYSLQV.js +806 -0
  297. package/dist/ScheduleDetailsPage-BKgZcWnY.js +726 -0
  298. package/dist/ScheduleDetailsPage-Dz8WGYip.cjs +37 -0
  299. package/dist/ScheduleSequenceTable-DmAgC4o9.js +1261 -0
  300. package/dist/ScheduleSequenceTable-DnntfbcQ.cjs +324 -0
  301. package/dist/SetUpAccountSection-Ct1Pr-tZ.js +1469 -0
  302. package/dist/SetUpAccountSection-DqyFKFgx.cjs +378 -0
  303. package/dist/SignIn-AxB2WTjZ.js +1075 -0
  304. package/dist/SignIn-DLsfFpQ0.cjs +448 -0
  305. package/dist/SpendManagementListViewPage-BMBtTA4M.cjs +122 -0
  306. package/dist/SpendManagementListViewPage-BphxrRUu.js +631 -0
  307. package/dist/SpendManagementPerTabPage-CHXJfvQG.js +2903 -0
  308. package/dist/SpendManagementPerTabPage-DEdSWjq4.cjs +785 -0
  309. package/dist/SpendManagementSection-BXseaLjf.cjs +230 -0
  310. package/dist/SpendManagementSection-BZUKR9EY.js +1043 -0
  311. package/dist/StatementItem-BQgDmgZu.js +81 -0
  312. package/dist/StatementItem-Cb3PGrR7.cjs +31 -0
  313. package/dist/StatementsPage-Cvf7hgR4.js +130 -0
  314. package/dist/StatementsPage-Z1iQn1QR.cjs +58 -0
  315. package/dist/StatusSwitcher-Co9crboe.cjs +120 -0
  316. package/dist/StatusSwitcher-DlBnJwCC.js +319 -0
  317. package/dist/SubTabSwitcher-qbXWEybW.cjs +58 -0
  318. package/dist/SubTabSwitcher-zUY_tgQu.js +113 -0
  319. package/dist/SuccessAnimation-BZmgV0UA.js +52 -0
  320. package/dist/SuccessAnimation-D478SmRe.cjs +13 -0
  321. package/dist/SummaryCard-6ql_gBa7.cjs +1 -0
  322. package/dist/SummaryCard-Dat_P80Y.js +25 -0
  323. package/dist/TaskDetailPage-BWCwWWEH.js +2533 -0
  324. package/dist/TaskDetailPage-GzTTUjmH.cjs +775 -0
  325. package/dist/TaskListRow-BEx42Upd.cjs +556 -0
  326. package/dist/TaskListRow-Dz7Z5L5t.js +1950 -0
  327. package/dist/TaskManagementPage-BnoxLzYO.cjs +508 -0
  328. package/dist/TaskManagementPage-DcbeFODi.js +1935 -0
  329. package/dist/TimeRangeSwitcher-B8IM5rXQ.cjs +64 -0
  330. package/dist/TimeRangeSwitcher-CJyZ1FDI.js +265 -0
  331. package/dist/TimeframeSwitcher-C63_RyuB.js +103 -0
  332. package/dist/TimeframeSwitcher-CZAfsFu6.cjs +31 -0
  333. package/dist/TimeframeSwitcherWithToggle-CMKqAQq-.cjs +31 -0
  334. package/dist/TimeframeSwitcherWithToggle-D__1Xa97.js +157 -0
  335. package/dist/TopExCard-CON_qtSP.js +569 -0
  336. package/dist/TopExCard-ykx6UoQH.cjs +38 -0
  337. package/dist/TopExDetailPage-DVdYFoRB.js +318 -0
  338. package/dist/TopExDetailPage-yyY0f9PW.cjs +132 -0
  339. package/dist/TransactionDetailPage-BrpjOfjJ.js +5238 -0
  340. package/dist/TransactionDetailPage-CUuvdDPu.cjs +912 -0
  341. package/dist/TransactionList-BFczXlRT.js +558 -0
  342. package/dist/TransactionList-Bv4ueaNy.cjs +147 -0
  343. package/dist/TransactionListBig-LBUPEHL3.cjs +284 -0
  344. package/dist/TransactionListBig-o4Qt7yFN.js +658 -0
  345. package/dist/TransactionListPage-DDpn8uNK.cjs +35 -0
  346. package/dist/TransactionListPage-WjSrFSXu.js +145 -0
  347. package/dist/TransactionVendorDetailPage-jMwVovXQ.cjs +80 -0
  348. package/dist/TransactionVendorDetailPage-tdUuyADo.js +425 -0
  349. package/dist/TransferDrawerPage-CBrNXI3m.cjs +362 -0
  350. package/dist/TransferDrawerPage-Cfl-M660.js +1436 -0
  351. package/dist/TreasuryOverviewPage-Bdp4fFaI.js +1890 -0
  352. package/dist/TreasuryOverviewPage-C8Pb0SO3.cjs +708 -0
  353. package/dist/TreasuryPromoPage-C0gRPPsE.js +1123 -0
  354. package/dist/TreasuryPromoPage-C1oCq2v1.cjs +505 -0
  355. package/dist/TreasuryStatementsPage-C0wLdnbV.cjs +58 -0
  356. package/dist/TreasuryStatementsPage-DblCXQSN.js +131 -0
  357. package/dist/TreasuryTaxLetterPage-CLKyAXQG.cjs +58 -0
  358. package/dist/TreasuryTaxLetterPage-mqAXM2S4.js +131 -0
  359. package/dist/TrendChart-C3BWdRMe.cjs +16 -0
  360. package/dist/TrendChart-D6M2scwj.js +334 -0
  361. package/dist/TrendWithTransactions-BQBgGYt0.cjs +116 -0
  362. package/dist/TrendWithTransactions-aHEHEVmr.js +346 -0
  363. package/dist/UncategorizedAccountsMappingPage-CqbFCAYr.cjs +244 -0
  364. package/dist/UncategorizedAccountsMappingPage-Dj2sl1G0.js +1159 -0
  365. package/dist/UnitIntegrationPage-B6LznrD-.js +405 -0
  366. package/dist/UnitIntegrationPage-CmLastcE.cjs +67 -0
  367. package/dist/UploadAdditionalDocumentOverlay-BEZpPncd.js +211 -0
  368. package/dist/UploadAdditionalDocumentOverlay-CAnE9kxR.cjs +38 -0
  369. package/dist/Vendor2FAPopup-8VJcv6t8.cjs +1 -0
  370. package/dist/Vendor2FAPopup-CPzYcJ8s.js +69 -0
  371. package/dist/VendorACHDetailsPage-AnN25rMh.js +43 -0
  372. package/dist/VendorACHDetailsPage-BxuykyhZ.cjs +1 -0
  373. package/dist/VendorDetailPage-CgaC7mle.js +1236 -0
  374. package/dist/VendorDetailPage-WF7zmI2E.cjs +257 -0
  375. package/dist/VendorDomesticWireDetailsPage-BQ856VTr.js +53 -0
  376. package/dist/VendorDomesticWireDetailsPage-ClhyMpZC.cjs +1 -0
  377. package/dist/VendorFiling1099EditablePage-CyUCje2r.cjs +175 -0
  378. package/dist/VendorFiling1099EditablePage-y7m-hSVt.js +842 -0
  379. package/dist/VendorFirstReviewPage-DKVkuUVb.js +2748 -0
  380. package/dist/VendorFirstReviewPage-DXmXwTm4.cjs +730 -0
  381. package/dist/VendorInternationalWireDetailsPage-BwYIIeI5.js +968 -0
  382. package/dist/VendorInternationalWireDetailsPage-DiOLAhPJ.cjs +152 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-B4Nyxiom.js +52 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-T4eFKyYn.cjs +1 -0
  385. package/dist/VendorsAccountsSection-Ci5zkkRO.cjs +68 -0
  386. package/dist/VendorsAccountsSection-Cl_eF_B2.js +279 -0
  387. package/dist/VerifyDevice-fvDdVrTH.cjs +112 -0
  388. package/dist/VerifyDevice-uyoeblsV.js +298 -0
  389. package/dist/VideoPlayer-C8wHnL3T.js +170 -0
  390. package/dist/VideoPlayer-Cm83ZMl4.cjs +77 -0
  391. package/dist/VideoPopup-BKimBfQY.cjs +31 -0
  392. package/dist/VideoPopup-C1qK6Rsh.js +60 -0
  393. package/dist/WarningsDrawerPage-Bug01Rrn.cjs +92 -0
  394. package/dist/WarningsDrawerPage-Cs1iI-sg.js +228 -0
  395. package/dist/ZeniAccountDetailPage-B8bVCdh8.js +908 -0
  396. package/dist/ZeniAccountDetailPage-DvL7LYGs.cjs +300 -0
  397. package/dist/ZeniAccountListViewPage-9JN0b89V.cjs +441 -0
  398. package/dist/ZeniAccountListViewPage-BlUeKCdK.js +1078 -0
  399. package/dist/ZeniAccountNavBarPieces-BihjZkc7.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-mrttJ8eK.js +89 -0
  401. package/dist/ZeniAccountPromoPage-CUYLrF2q.cjs +184 -0
  402. package/dist/ZeniAccountPromoPage-Dgd7dooU.js +522 -0
  403. package/dist/ZeniAccountSetupPage-Buo6yCfE.js +309 -0
  404. package/dist/ZeniAccountSetupPage-C-gXfzzJ.cjs +36 -0
  405. package/dist/ZeniAvatar-C4KEjziW.js +34 -0
  406. package/dist/ZeniAvatar-DqJN7alb.cjs +13 -0
  407. package/dist/ZeniCopyright-By6y2m0U.js +9 -0
  408. package/dist/ZeniCopyright-C14B966v.cjs +1 -0
  409. package/dist/ZeniDatePicker-CdnTbBLN.cjs +187 -0
  410. package/dist/ZeniDatePicker-DycRDFRX.js +386 -0
  411. package/dist/ZeniTransferAmountSlider-C4RZRKG7.js +215 -0
  412. package/dist/ZeniTransferAmountSlider-C7gpp21B.cjs +63 -0
  413. package/dist/analyticsHelper-Bg3JB2Tp.js +65 -0
  414. package/dist/analyticsHelper-CkY-qKnK.cjs +1 -0
  415. package/dist/calculateSize-DKgk__oh.js +22 -0
  416. package/dist/calculateSize-eJskzQy-.cjs +1 -0
  417. package/dist/chartTypes-CArimqyD.js +47 -0
  418. package/dist/chartTypes-CWpShqXs.cjs +1 -0
  419. package/dist/cockpit.cjs.js +2 -2
  420. package/dist/cockpit.esm.js +15 -15
  421. package/dist/common-BReki66G.cjs +1 -0
  422. package/dist/common-DJNbteBU.js +22 -0
  423. package/dist/commonDimensions-qzYhudBC.js +13 -0
  424. package/dist/commonDimensions-waAJcFme.cjs +1 -0
  425. package/dist/components/common/FileElementWithPhotoPicker.d.ts +3 -2
  426. package/dist/detailCommon-Cw4STeZ0.js +124 -0
  427. package/dist/detailCommon-DLknBcYw.cjs +38 -0
  428. package/dist/downloadPdf-B4unTo15.js +32 -0
  429. package/dist/downloadPdf-Dkl8hoC4.cjs +1 -0
  430. package/dist/index-CH2cBxe4.js +92385 -0
  431. package/dist/index-DxfP_W_n.cjs +21201 -0
  432. package/dist/index.cjs.js +1 -1
  433. package/dist/index.esm.js +1 -1
  434. package/dist/mapLoadingInProgressToTreeNode-DePHO4T2.js +25 -0
  435. package/dist/mapLoadingInProgressToTreeNode-Kz-Nm1hI.cjs +1 -0
  436. package/dist/mapSectionWithAcOnlyToTreeNode-DBinovf2.js +387 -0
  437. package/dist/mapSectionWithAcOnlyToTreeNode-u-tdG5t2.cjs +1 -0
  438. package/dist/mapSpacerToTreeNode-B7zEII66.cjs +1 -0
  439. package/dist/mapSpacerToTreeNode-Bja-yXg3.js +25 -0
  440. package/dist/mapTimeframeBalancesToTreeNode-Blyo5MGE.js +24 -0
  441. package/dist/mapTimeframeBalancesToTreeNode-BtqG6CwY.js +24 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-DuSi2ZLu.cjs +1 -0
  443. package/dist/mapTimeframeBalancesToTreeNode-T8MpV7fk.cjs +1 -0
  444. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CZHiRi_N.js +32 -0
  445. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Dm0knAOp.cjs +1 -0
  446. package/dist/sectionColor-Cxc_e5Cd.cjs +1 -0
  447. package/dist/sectionColor-DqK47ZXz.js +32 -0
  448. package/dist/toCOABalancesWithID-Bo8452QA.js +8 -0
  449. package/dist/toCOABalancesWithID-mOx-yANF.cjs +1 -0
  450. package/dist/toChartData-D54JVnPo.js +76 -0
  451. package/dist/toChartData-D8lUs_YF.cjs +1 -0
  452. package/dist/uploadAttachment-B01svB5H.cjs +286 -0
  453. package/dist/uploadAttachment-DUQ0bczi.js +952 -0
  454. package/dist/zeniDatePicker.helpers-CEILv7_Q.js +14 -0
  455. package/dist/zeniDatePicker.helpers-Cd3PtQnj.cjs +1 -0
  456. package/package.json +2 -2
  457. package/dist/ACHDetailsPage-Be3haf7v.cjs +0 -21
  458. package/dist/ACHDetailsPage-DvE5e8fz.js +0 -160
  459. package/dist/AIPerformancePage-Bjf-4bxn.js +0 -1345
  460. package/dist/AIPerformancePage-E1FDB2GG.cjs +0 -539
  461. package/dist/AccountInfoPage-DoXjgO4q.js +0 -78
  462. package/dist/AccountInfoPage-yoWXNM_E.cjs +0 -18
  463. package/dist/AccountInfoPageContent-Cq4qVsnL.cjs +0 -149
  464. package/dist/AccountInfoPageContent-inAfKQku.js +0 -428
  465. package/dist/AccountLockedInfoModal-DTkjQgvZ.js +0 -125
  466. package/dist/AccountLockedInfoModal-Djxu6qhk.cjs +0 -59
  467. package/dist/AccountReconDetailsDrawerPage-Bnh8Ya2g.cjs +0 -239
  468. package/dist/AccountReconDetailsDrawerPage-C1A3Vr_s.js +0 -687
  469. package/dist/AccountRow-BSZVbDfb.js +0 -1014
  470. package/dist/AccountRow-C9O63J2y.cjs +0 -298
  471. package/dist/AccountsPromoCardStack-BQN8825i.cjs +0 -207
  472. package/dist/AccountsPromoCardStack-DAU4jnkk.js +0 -664
  473. package/dist/AddAddressForCardDrawer-4cd1RXfI.cjs +0 -6
  474. package/dist/AddAddressForCardDrawer-Bm5ZBWY9.js +0 -82
  475. package/dist/AddToWalletPage-BARzS41U.cjs +0 -344
  476. package/dist/AddToWalletPage-DqPjf8x3.js +0 -642
  477. package/dist/AgingReportsPage--61lHlUP.cjs +0 -79
  478. package/dist/AgingReportsPage-544za87D.js +0 -827
  479. package/dist/AllUserItems-0-ljBxl0.js +0 -979
  480. package/dist/AllUserItems-CAcw34Ex.cjs +0 -192
  481. package/dist/ApAgingDetailPage-BTV_nmyt.js +0 -239
  482. package/dist/ApAgingDetailPage-DLCEAztP.cjs +0 -46
  483. package/dist/AppBasePage-CP10OjEU.cjs +0 -71
  484. package/dist/AppBasePage-Di9GLxnP.js +0 -120
  485. package/dist/AppDrawerContent-DGce99hT.js +0 -379
  486. package/dist/AppDrawerContent-Dt5nIssO.cjs +0 -91
  487. package/dist/ApprovalRulesSettingsPage-CiNcs-p8.cjs +0 -47
  488. package/dist/ApprovalRulesSettingsPage-ewNfLb-n.js +0 -145
  489. package/dist/ArAgingChart-Cw5pFJ-k.js +0 -530
  490. package/dist/ArAgingChart-hd4deltM.cjs +0 -24
  491. package/dist/ArAgingDetailPage-B_Y3SmfQ.js +0 -243
  492. package/dist/ArAgingDetailPage-Dob4O1wX.cjs +0 -46
  493. package/dist/AttachmentView-BxXSHcsa.cjs +0 -101
  494. package/dist/AttachmentView-zSx4FZJs.js +0 -260
  495. package/dist/BankAccountSection-Ch2kwxQD.js +0 -398
  496. package/dist/BankAccountSection-gICLcDei.cjs +0 -79
  497. package/dist/BankAccountWarningSection-Bjor9St-.cjs +0 -51
  498. package/dist/BankAccountWarningSection-DXOlx2Nt.js +0 -110
  499. package/dist/BankConnectionsSettingsPage-B3HUeiPU.js +0 -1694
  500. package/dist/BankConnectionsSettingsPage-CgCT9Owz.cjs +0 -425
  501. package/dist/BillDetailPage-mgVV3y8t.cjs +0 -266
  502. package/dist/BillDetailPage-r91qUKxw.js +0 -1801
  503. package/dist/BillPayApprovalRuleDetailPage-BrY4JCN6.cjs +0 -27
  504. package/dist/BillPayApprovalRuleDetailPage-DIEkOvGK.js +0 -266
  505. package/dist/BillPayApprovalRulesPage-CD27a6V4.js +0 -431
  506. package/dist/BillPayApprovalRulesPage-CeHpUNRH.cjs +0 -241
  507. package/dist/BillPayPromoPage-COjKHUVR.cjs +0 -84
  508. package/dist/BillPayPromoPage-OPLs2xkA.js +0 -292
  509. package/dist/BillPaySetUpPage-BJl_OGKj.cjs +0 -42
  510. package/dist/BillPaySetUpPage-CpLJJC4F.js +0 -408
  511. package/dist/BillingSettingsPage-CCGGviLB.cjs +0 -44
  512. package/dist/BillingSettingsPage-DftWQzBG.js +0 -336
  513. package/dist/BillsBulkReviewDrawerPage-C2sAlJeg.cjs +0 -1
  514. package/dist/BillsBulkReviewDrawerPage-D_y75ZvJ.js +0 -216
  515. package/dist/BoxItem-BRKfmDs5.js +0 -118
  516. package/dist/BoxItem-Djgj9NOx.cjs +0 -53
  517. package/dist/BusinessVerificationPage-Bet-pvaJ.cjs +0 -138
  518. package/dist/BusinessVerificationPage-I7eIMdnn.js +0 -716
  519. package/dist/BusyIndication-B81smnYV.cjs +0 -9
  520. package/dist/BusyIndication-BYDCzqoQ.js +0 -19
  521. package/dist/CardNumberSubText-BsLDsWTF.cjs +0 -21
  522. package/dist/CardNumberSubText-DuOmU7oD.js +0 -59
  523. package/dist/CashbackDetailPage-Cv7MkN5t.js +0 -825
  524. package/dist/CashbackDetailPage-D4KYBJIq.cjs +0 -285
  525. package/dist/ChargeCardDetailPage-C22jaOM2.js +0 -5454
  526. package/dist/ChargeCardDetailPage-Cb4-XbcN.cjs +0 -1462
  527. package/dist/ChargeCardListPage-r4VjQnuN.js +0 -1797
  528. package/dist/ChargeCardListPage-vT8treQz.cjs +0 -412
  529. package/dist/ChargeCardListTable-CGzlzfI6.cjs +0 -711
  530. package/dist/ChargeCardListTable-gi0qMYcW.js +0 -2901
  531. package/dist/ChargeCardPromoPage-Coiv6pLD.cjs +0 -222
  532. package/dist/ChargeCardPromoPage-D214CK1J.js +0 -816
  533. package/dist/ChargeCardSetupPage-Bp-pb80_.cjs +0 -36
  534. package/dist/ChargeCardSetupPage-DI_LfT5i.js +0 -359
  535. package/dist/ChargeCardStatementsPage-TstSc-6o.cjs +0 -60
  536. package/dist/ChargeCardStatementsPage-t98GBF_x.js +0 -243
  537. package/dist/CheckDepositDrawerPage-B43jdDqo.cjs +0 -206
  538. package/dist/CheckDepositDrawerPage-vBwjQdo7.js +0 -726
  539. package/dist/CollapsableReportTable-B0vMr10D.js +0 -11659
  540. package/dist/CollapsableReportTable-CL9wY_Mb.cjs +0 -2844
  541. package/dist/CompanyOfficerDetailsSection-BJf6VKJo.cjs +0 -260
  542. package/dist/CompanyOfficerDetailsSection-CX8O0p9-.js +0 -1633
  543. package/dist/CompanyPassportCard-DuSTCwFE.js +0 -146
  544. package/dist/CompanyPassportCard-G4lA8sDK.cjs +0 -42
  545. package/dist/CompanyPassportPage-BORRHMN-.cjs +0 -574
  546. package/dist/CompanyPassportPage-DtukP-aK.js +0 -2160
  547. package/dist/CompleteProfile-Bev1ZwoS.js +0 -301
  548. package/dist/CompleteProfile-azJx11l5.cjs +0 -52
  549. package/dist/ConfettiBurst-BrgcJH3g.js +0 -37
  550. package/dist/ConfettiBurst-CuMIlUGx.cjs +0 -1
  551. package/dist/CreateOrEditVendorPage-CsA91yAy.js +0 -763
  552. package/dist/CreateOrEditVendorPage-DCTk0kN1.cjs +0 -281
  553. package/dist/CreditCardPaymentDrawerPage-BLdc--w5.cjs +0 -224
  554. package/dist/CreditCardPaymentDrawerPage-DU3VZwkZ.js +0 -1170
  555. package/dist/CurrencySelectField-CsgvwDKl.js +0 -348
  556. package/dist/CurrencySelectField-DVLAPkD0.cjs +0 -139
  557. package/dist/CustomerOnboardingActivationPage-BUpVKpM5.cjs +0 -88
  558. package/dist/CustomerOnboardingActivationPage-CQVmPMCG.js +0 -143
  559. package/dist/CustomerOnboardingContainerPage-CMiI6Zzz.cjs +0 -1
  560. package/dist/CustomerOnboardingContainerPage-DrZyX1LZ.js +0 -7
  561. package/dist/CustomerOnboardingDetailPageSkeleton-CQ229bnp.js +0 -434
  562. package/dist/CustomerOnboardingDetailPageSkeleton-Dv4BaKjn.cjs +0 -162
  563. package/dist/CustomerOnboardingNoStepsPage-CVgy2gan.js +0 -424
  564. package/dist/CustomerOnboardingNoStepsPage-jL3RmUUi.cjs +0 -66
  565. package/dist/CustomerOnboardingPage-ChvuhzH2.js +0 -1094
  566. package/dist/CustomerOnboardingPage-FfHRTsId.cjs +0 -107
  567. package/dist/CustomerOnboardingProductSuitePage-BsOFwI9w.cjs +0 -202
  568. package/dist/CustomerOnboardingProductSuitePage-CoWTje1W.js +0 -348
  569. package/dist/Dashboard-C71dB7h5.cjs +0 -1551
  570. package/dist/Dashboard-Dj7Uo6ue.js +0 -5540
  571. package/dist/DashboardReportPage-D_TjPc9r.cjs +0 -371
  572. package/dist/DashboardReportPage-DhFnqkHl.js +0 -2536
  573. package/dist/DashboardSidebarBackgroundAnimation-CQ_dyRd4.js +0 -53
  574. package/dist/DashboardSidebarBackgroundAnimation-DcLQr6qW.cjs +0 -12
  575. package/dist/DepositAccTransactionItem-CekiCsz7.js +0 -112
  576. package/dist/DepositAccTransactionItem-DhTLHx8d.cjs +0 -76
  577. package/dist/DepositAccTransactionListPage-CvYxLK6T.js +0 -152
  578. package/dist/DepositAccTransactionListPage-D2DQTa7y.cjs +0 -66
  579. package/dist/DomesticWireDetailsPage-B1P1twOI.js +0 -189
  580. package/dist/DomesticWireDetailsPage-CTOmqZvB.cjs +0 -21
  581. package/dist/DownloadOverlay-BCQZu6wY.js +0 -2148
  582. package/dist/DownloadOverlay-DB1NdDRq.cjs +0 -439
  583. package/dist/DrawerPage-CpS594bK.cjs +0 -118
  584. package/dist/DrawerPage-ndXZLWjs.js +0 -208
  585. package/dist/EditPeoplePage-BCLRnIOo.cjs +0 -55
  586. package/dist/EditPeoplePage-BcoULlSE.js +0 -392
  587. package/dist/EditReimbursementDetailPage-9dy5FsHO.cjs +0 -865
  588. package/dist/EditReimbursementDetailPage-D3QlDuDC.js +0 -4531
  589. package/dist/EmptySearchResults-DjVruqAX.js +0 -70
  590. package/dist/EmptySearchResults-MpD9AQAa.cjs +0 -46
  591. package/dist/EntityDetailPage-DFRkAjUY.js +0 -82
  592. package/dist/EntityDetailPage-Do4bjz5y.cjs +0 -18
  593. package/dist/EntitySummarySection-BSagj4JK.cjs +0 -149
  594. package/dist/EntitySummarySection-wM7Wi4_x.js +0 -530
  595. package/dist/ExpenseAutomationOverviewPage-C4EADVFI.js +0 -807
  596. package/dist/ExpenseAutomationOverviewPage-DfeKae5h.cjs +0 -281
  597. package/dist/ExpenseAutomationPage-BexH6fEZ.js +0 -11574
  598. package/dist/ExpenseAutomationPage-BhYNzhLB.cjs +0 -1650
  599. package/dist/ExpressPayPage-BneiQEIe.js +0 -1136
  600. package/dist/ExpressPayPage-CLlY6f8t.cjs +0 -168
  601. package/dist/FeaturePreviewPage-D5qRFzhZ.js +0 -114
  602. package/dist/FeaturePreviewPage-bSZXP-wp.cjs +0 -11
  603. package/dist/FollowStepsSection-B0MxuMeP.js +0 -1313
  604. package/dist/FollowStepsSection-O9T_29fB.cjs +0 -390
  605. package/dist/GlobalReviewListPage-BkoEsc5t.js +0 -1674
  606. package/dist/GlobalReviewListPage-DACyAXCC.cjs +0 -291
  607. package/dist/InformationCardStack-4gXYK59g.cjs +0 -31
  608. package/dist/InformationCardStack-B9_4DhDd.js +0 -219
  609. package/dist/InsightsCardStack-C-RCbr3X.js +0 -305
  610. package/dist/InsightsCardStack-CfOHKL9M.cjs +0 -79
  611. package/dist/InsightsSection-C5KZVPXP.cjs +0 -27
  612. package/dist/InsightsSection-DRwzYap-.js +0 -97
  613. package/dist/IntegrationsSettingsPage-BJSoMYYA.cjs +0 -57
  614. package/dist/IntegrationsSettingsPage-D66PKrtl.js +0 -136
  615. package/dist/InternationalWireSwiftDetailsPage-C_3N_DBs.js +0 -753
  616. package/dist/InternationalWireSwiftDetailsPage-LxIj7zhX.cjs +0 -171
  617. package/dist/InternationalWireVerificationPage-DHCp5XeV.js +0 -877
  618. package/dist/InternationalWireVerificationPage-DHpjOQi2.cjs +0 -292
  619. package/dist/InviteFormPage-DMQ-h4Q3.js +0 -873
  620. package/dist/InviteFormPage-DVxH3nGX.cjs +0 -312
  621. package/dist/InvitePageListView-DV7S2vQM.cjs +0 -739
  622. package/dist/InvitePageListView-Df13X7ci.js +0 -1764
  623. package/dist/InvitePeoplePage-BKJ7gH1h.js +0 -286
  624. package/dist/InvitePeoplePage-Cj6k1dqg.cjs +0 -12
  625. package/dist/InvoiceUploadSection-CGXwKVdJ.cjs +0 -140
  626. package/dist/InvoiceUploadSection-DhfW7cbo.js +0 -465
  627. package/dist/IssueChargeCardPage-WomEwyX-.cjs +0 -532
  628. package/dist/IssueChargeCardPage-mRRQO9ck.js +0 -2880
  629. package/dist/LabeledAddressValue-BRxnpqyu.js +0 -115
  630. package/dist/LabeledAddressValue-Fu88GsAn.cjs +0 -49
  631. package/dist/LabeledAddressValueField-B2D_1638.js +0 -130
  632. package/dist/LabeledAddressValueField-CbHHZ4Yj.cjs +0 -45
  633. package/dist/LabeledControlledCheckBoxField-BdFq-2O2.cjs +0 -16
  634. package/dist/LabeledControlledCheckBoxField-CZ3dcoxg.js +0 -73
  635. package/dist/LabeledCreatableSingleSelectField-B8eJcDTO.js +0 -515
  636. package/dist/LabeledCreatableSingleSelectField-DeAeIdMp.cjs +0 -204
  637. package/dist/LabeledDocumentField-Cp3R5cD7.cjs +0 -41
  638. package/dist/LabeledDocumentField-wLYd0DnP.js +0 -147
  639. package/dist/LabeledDropDownFormattedTextField-C8chXI3J.js +0 -163
  640. package/dist/LabeledDropDownFormattedTextField-Chk-CDJP.cjs +0 -59
  641. package/dist/LabeledEmailInputField-Ak_BVqlD.js +0 -425
  642. package/dist/LabeledEmailInputField-cqOHkC_V.cjs +0 -182
  643. package/dist/LabeledItemWithButton-DL32pXVp.cjs +0 -21
  644. package/dist/LabeledItemWithButton-DVIrybjC.js +0 -74
  645. package/dist/LabeledNameField--ggUySS7.js +0 -293
  646. package/dist/LabeledNameField-CHQ3dBym.cjs +0 -141
  647. package/dist/LabeledSingleSelectField-B9FNwt1d.cjs +0 -136
  648. package/dist/LabeledSingleSelectField-CMg3cql8.js +0 -372
  649. package/dist/LabeledSingleSelectWithoutClearableField-ChS3sf3q.cjs +0 -38
  650. package/dist/LabeledSingleSelectWithoutClearableField-DykcxEke.js +0 -103
  651. package/dist/LabeledText-BVTjLzU2.js +0 -103
  652. package/dist/LabeledText-D-3ifagW.cjs +0 -42
  653. package/dist/LabeledUserSingleSelectWithSubtitlesField-B6m4Dvn5.js +0 -572
  654. package/dist/LabeledUserSingleSelectWithSubtitlesField-CAzacKEC.cjs +0 -229
  655. package/dist/LabeledZeniRolesDropDownField-CwPTcycr.js +0 -975
  656. package/dist/LabeledZeniRolesDropDownField-oI-GUeer.cjs +0 -297
  657. package/dist/LinkJETransactionPage-6FZYFRyG.cjs +0 -98
  658. package/dist/LinkJETransactionPage-C6V2C3Ei.js +0 -406
  659. package/dist/LockCardPage-48Y7dBNZ.js +0 -2032
  660. package/dist/LockCardPage-BGVBSTlz.cjs +0 -623
  661. package/dist/LowBalancePopup-CMhi6b-k.cjs +0 -34
  662. package/dist/LowBalancePopup-Cd0CeRU8.js +0 -219
  663. package/dist/MagicLinkACHDetailsPage-DDWH0Qko.cjs +0 -1
  664. package/dist/MagicLinkACHDetailsPage-DIT1vG97.js +0 -39
  665. package/dist/MagicLinkDomesticWireDetailsPage-CWcPtWh6.cjs +0 -1
  666. package/dist/MagicLinkDomesticWireDetailsPage-DeZLbDsF.js +0 -44
  667. package/dist/MagicLinkInternationalWireDetailsPage-BQ_QO8-S.js +0 -43
  668. package/dist/MagicLinkInternationalWireDetailsPage-DxEgfhFg.cjs +0 -1
  669. package/dist/MagicLinkSuccessPage-BcbRwKFD.cjs +0 -31
  670. package/dist/MagicLinkSuccessPage-BhW_WI7p.js +0 -59
  671. package/dist/MagicLinkTitleSection-DfzkAGjO.cjs +0 -17
  672. package/dist/MagicLinkTitleSection-lqIejwBp.js +0 -40
  673. package/dist/MailingDetailsSection-C1tVaSkL.js +0 -74
  674. package/dist/MailingDetailsSection-PBqWPPlC.cjs +0 -21
  675. package/dist/MatchingOperatorDropdown-CxyFhUJ9.js +0 -572
  676. package/dist/MatchingOperatorDropdown-QLMigqVq.cjs +0 -130
  677. package/dist/Menu-BqqjJZHr.js +0 -110
  678. package/dist/Menu-C3dCRV4S.cjs +0 -17
  679. package/dist/MoreMenuButton-Bj2fWOXR.js +0 -569
  680. package/dist/MoreMenuButton-CMWMWuMR.cjs +0 -167
  681. package/dist/MyBankConnectionsSettingsPage-4Z3cLFns.cjs +0 -110
  682. package/dist/MyBankConnectionsSettingsPage-YVrMZzfO.js +0 -297
  683. package/dist/MyPendingActivationChargeCardListPage-CZ4P59Jc.js +0 -168
  684. package/dist/MyPendingActivationChargeCardListPage-Cl0LpkO3.cjs +0 -6
  685. package/dist/MyProfileSettingsPage-DQZAHcC_.js +0 -641
  686. package/dist/MyProfileSettingsPage-sSOCwWUN.cjs +0 -85
  687. package/dist/NavBarWithPicker-BYuMXeBk.cjs +0 -30
  688. package/dist/NavBarWithPicker-CZfErSN1.js +0 -106
  689. package/dist/NavigationArrow-DG0KtTda.js +0 -88
  690. package/dist/NavigationArrow-Zep3R2mS.cjs +0 -47
  691. package/dist/NavigationDots-ByiWT-Lm.cjs +0 -15
  692. package/dist/NavigationDots-lOPMObcl.js +0 -44
  693. package/dist/NewGlobalMerchantPage-4ArPSZMv.cjs +0 -160
  694. package/dist/NewGlobalMerchantPage-BwvFY9JY.js +0 -543
  695. package/dist/NoDataChart-B65_PulS.cjs +0 -26
  696. package/dist/NoDataChart-DQeQWo2y.js +0 -58
  697. package/dist/NoDataTable-eCp9vl5L.js +0 -27
  698. package/dist/NoDataTable-qnMbHEB3.cjs +0 -8
  699. package/dist/NotFoundPage-DXlmvjR1.cjs +0 -46
  700. package/dist/NotFoundPage-ydaG04qB.js +0 -71
  701. package/dist/NotificationSettingsPage-CZTZsacp.cjs +0 -163
  702. package/dist/NotificationSettingsPage-CZkx0BYH.js +0 -541
  703. package/dist/NotificationsListConfig-BrraoVe8.js +0 -10
  704. package/dist/NotificationsListConfig-s3qI2C8Y.cjs +0 -1
  705. package/dist/NotificationsPage-Dm8RhV19.cjs +0 -685
  706. package/dist/NotificationsPage-giIikBc6.js +0 -2664
  707. package/dist/OpExByVendorPage-BleOlMPh.js +0 -1058
  708. package/dist/OpExByVendorPage-eKE2_AkR.cjs +0 -100
  709. package/dist/PandLWithForecastPage-CMrrk72m.cjs +0 -107
  710. package/dist/PandLWithForecastPage-osNPfqm8.js +0 -563
  711. package/dist/PaymentAccountSetupBillingAddressSection-DG4_XLiH.js +0 -623
  712. package/dist/PaymentAccountSetupBillingAddressSection-D_4eKv1U.cjs +0 -106
  713. package/dist/PeoplePage-CPlauktP.js +0 -1994
  714. package/dist/PeoplePage-Cy0CLeq4.cjs +0 -675
  715. package/dist/ProductsCarousel-Diz0d4Iq.cjs +0 -142
  716. package/dist/ProductsCarousel-jhuAGcMK.js +0 -309
  717. package/dist/PromoBaseCards-CfM9E3BA.js +0 -356
  718. package/dist/PromoBaseCards-DWHkRIkj.cjs +0 -218
  719. package/dist/QBOConnectionDialog-DBD6UBfb.cjs +0 -51
  720. package/dist/QBOConnectionDialog-DCvJacKM.js +0 -115
  721. package/dist/QBOSetupSection-B9sIOFEP.js +0 -167
  722. package/dist/QBOSetupSection-eUx7i3uJ.cjs +0 -79
  723. package/dist/ReimbursementApprovalRuleDetailPage-C-sY18hS.cjs +0 -26
  724. package/dist/ReimbursementApprovalRuleDetailPage-C6U6FKL1.js +0 -266
  725. package/dist/ReimbursementApprovalRulesPage-BuMr5ORx.cjs +0 -243
  726. package/dist/ReimbursementApprovalRulesPage-CpMOYIZ1.js +0 -429
  727. package/dist/ReimbursementDetailPage-DVXpeR2j.js +0 -1514
  728. package/dist/ReimbursementDetailPage-GjwxRWm0.cjs +0 -314
  729. package/dist/ReimbursementPromoPage-015awkjd.js +0 -363
  730. package/dist/ReimbursementPromoPage-DFlrZkQl.cjs +0 -84
  731. package/dist/ReimbursementSetUpPage-BDmzuGy1.cjs +0 -140
  732. package/dist/ReimbursementSetUpPage-DLMNvu0F.js +0 -663
  733. package/dist/ReimbursementsBulkReviewDrawerPage-BKUuF-6d.cjs +0 -1
  734. package/dist/ReimbursementsBulkReviewDrawerPage-C_Ihh3tM.js +0 -204
  735. package/dist/ReloadCard-CVL6Z0eZ.cjs +0 -26
  736. package/dist/ReloadCard-DYUG6A03.js +0 -137
  737. package/dist/ReloadContainer-B6LsvCfv.cjs +0 -596
  738. package/dist/ReloadContainer-DBntubH5.js +0 -2165
  739. package/dist/ReportTableViewSelector-CUKOqff5.cjs +0 -150
  740. package/dist/ReportTableViewSelector-tNclSYdh.js +0 -679
  741. package/dist/ReportsPage-ByNirr5Y.js +0 -1315
  742. package/dist/ReportsPage-DYlOkbEk.cjs +0 -121
  743. package/dist/RevenueChart-11E1ETkf.js +0 -2240
  744. package/dist/RevenueChart-BQWhM-wk.cjs +0 -280
  745. package/dist/ReviewDetailsPage-CD1ZfE7P.js +0 -1073
  746. package/dist/ReviewDetailsPage-CEcgfrid.cjs +0 -290
  747. package/dist/ReviewOverlay-DhmDhtI8.cjs +0 -152
  748. package/dist/ReviewOverlay-XFAs9iYY.js +0 -299
  749. package/dist/RoleWithToolTip-BCQazD8-.js +0 -72
  750. package/dist/RoleWithToolTip-Dgp1opUk.cjs +0 -22
  751. package/dist/ScheduleDetailsFixedAssetsPage-IfqlASfV.cjs +0 -37
  752. package/dist/ScheduleDetailsFixedAssetsPage-yflt4rTg.js +0 -806
  753. package/dist/ScheduleDetailsPage-C7TMFRJ8.js +0 -726
  754. package/dist/ScheduleDetailsPage-DxdapfX4.cjs +0 -37
  755. package/dist/ScheduleSequenceTable-DYmBQHcw.js +0 -1261
  756. package/dist/ScheduleSequenceTable-Fo8TlCd4.cjs +0 -324
  757. package/dist/SetUpAccountSection-BIGwE-uJ.cjs +0 -378
  758. package/dist/SetUpAccountSection-BzaSIe86.js +0 -1469
  759. package/dist/SignIn-CQbQekuQ.cjs +0 -448
  760. package/dist/SignIn-ldqY8Bso.js +0 -1075
  761. package/dist/SpendManagementListViewPage-C1VVMgyh.js +0 -631
  762. package/dist/SpendManagementListViewPage-CaxoCMw7.cjs +0 -122
  763. package/dist/SpendManagementPerTabPage-CRaHYK9E.js +0 -2903
  764. package/dist/SpendManagementPerTabPage-DXLerehs.cjs +0 -785
  765. package/dist/SpendManagementSection-C8gzhQ_U.cjs +0 -230
  766. package/dist/SpendManagementSection-DPJctwRT.js +0 -1043
  767. package/dist/StatementItem-CKn13Tm4.js +0 -81
  768. package/dist/StatementItem-zXICTHUu.cjs +0 -31
  769. package/dist/StatementsPage-CUO7nLEq.cjs +0 -58
  770. package/dist/StatementsPage-DzErgXtp.js +0 -130
  771. package/dist/StatusSwitcher-CGdqFSuz.js +0 -319
  772. package/dist/StatusSwitcher-DhEKDLw_.cjs +0 -120
  773. package/dist/SubTabSwitcher-DMAe0S-y.js +0 -113
  774. package/dist/SubTabSwitcher-a5M6RehI.cjs +0 -58
  775. package/dist/SuccessAnimation-BT4I8yF5.cjs +0 -13
  776. package/dist/SuccessAnimation-DTWmgklz.js +0 -52
  777. package/dist/SummaryCard-BuNNnx-F.cjs +0 -1
  778. package/dist/SummaryCard-DmYG52HB.js +0 -25
  779. package/dist/TaskDetailPage-CCgDA9yd.cjs +0 -775
  780. package/dist/TaskDetailPage-Cb6BYTUX.js +0 -2533
  781. package/dist/TaskListRow-9lqXi6AJ.js +0 -1950
  782. package/dist/TaskListRow-CbACSr82.cjs +0 -556
  783. package/dist/TaskManagementPage-BmvMzmwO.cjs +0 -508
  784. package/dist/TaskManagementPage-DKtinesA.js +0 -1935
  785. package/dist/TimeRangeSwitcher-B4TEPaUv.cjs +0 -64
  786. package/dist/TimeRangeSwitcher-CAu888Ui.js +0 -265
  787. package/dist/TimeframeSwitcher-BFLJyK6O.cjs +0 -31
  788. package/dist/TimeframeSwitcher-iULsCFO6.js +0 -103
  789. package/dist/TimeframeSwitcherWithToggle-CIf-2mZp.cjs +0 -31
  790. package/dist/TimeframeSwitcherWithToggle-COl_xo_W.js +0 -157
  791. package/dist/TopExCard-3NE-ZhGU.js +0 -569
  792. package/dist/TopExCard-DmwZA85J.cjs +0 -38
  793. package/dist/TopExDetailPage-BQgofpE4.cjs +0 -132
  794. package/dist/TopExDetailPage-DxnMPJHo.js +0 -318
  795. package/dist/TransactionDetailPage-Cnf0nY-K.js +0 -5238
  796. package/dist/TransactionDetailPage-CvKjiZnb.cjs +0 -912
  797. package/dist/TransactionList-BBBJwA0w.js +0 -558
  798. package/dist/TransactionList-VP6REolk.cjs +0 -147
  799. package/dist/TransactionListBig-CaAuL57E.js +0 -658
  800. package/dist/TransactionListBig-DXHwoLuo.cjs +0 -284
  801. package/dist/TransactionListPage-B1hHtOgN.cjs +0 -35
  802. package/dist/TransactionListPage-BqSI8sR_.js +0 -145
  803. package/dist/TransactionVendorDetailPage-CMoIkarE.cjs +0 -80
  804. package/dist/TransactionVendorDetailPage-DUepxLMq.js +0 -425
  805. package/dist/TransferDrawerPage-B7rin-CQ.js +0 -1436
  806. package/dist/TransferDrawerPage-DbQ1RqtJ.cjs +0 -362
  807. package/dist/TreasuryOverviewPage-13U972N9.cjs +0 -708
  808. package/dist/TreasuryOverviewPage-ByZKtcCW.js +0 -1890
  809. package/dist/TreasuryPromoPage-C7dKC0jn.js +0 -1123
  810. package/dist/TreasuryPromoPage-Dp7Dg01F.cjs +0 -505
  811. package/dist/TreasuryStatementsPage-2jfhMAt4.js +0 -131
  812. package/dist/TreasuryStatementsPage-CqmpxOhI.cjs +0 -58
  813. package/dist/TreasuryTaxLetterPage-BYW6FGih.cjs +0 -58
  814. package/dist/TreasuryTaxLetterPage-CkyTwHUk.js +0 -131
  815. package/dist/TrendChart-CQp-r1tg.js +0 -334
  816. package/dist/TrendChart-iFPrVf9N.cjs +0 -16
  817. package/dist/TrendWithTransactions-BkPvAr_t.js +0 -346
  818. package/dist/TrendWithTransactions-D_J6dRhi.cjs +0 -116
  819. package/dist/UncategorizedAccountsMappingPage-D12vpo_4.cjs +0 -244
  820. package/dist/UncategorizedAccountsMappingPage-loO-28Aq.js +0 -1159
  821. package/dist/UnitIntegrationPage-C9Ynyldg.js +0 -405
  822. package/dist/UnitIntegrationPage-CG29tmx3.cjs +0 -67
  823. package/dist/UploadAdditionalDocumentOverlay-COWb2lgt.cjs +0 -38
  824. package/dist/UploadAdditionalDocumentOverlay-Dzm2V8_e.js +0 -211
  825. package/dist/Vendor2FAPopup-C29VCKqb.cjs +0 -1
  826. package/dist/Vendor2FAPopup-CTSVgsbb.js +0 -69
  827. package/dist/VendorACHDetailsPage-ChwITJTJ.js +0 -43
  828. package/dist/VendorACHDetailsPage-D7Sw7BVK.cjs +0 -1
  829. package/dist/VendorDetailPage-C81k373h.cjs +0 -257
  830. package/dist/VendorDetailPage-D7Pq6QMA.js +0 -1236
  831. package/dist/VendorDomesticWireDetailsPage-B2o2dIe2.cjs +0 -1
  832. package/dist/VendorDomesticWireDetailsPage-B71_NzQI.js +0 -53
  833. package/dist/VendorFiling1099EditablePage-akriLva8.cjs +0 -175
  834. package/dist/VendorFiling1099EditablePage-sK5B1vzm.js +0 -842
  835. package/dist/VendorFirstReviewPage-CtqxCTDy.cjs +0 -730
  836. package/dist/VendorFirstReviewPage-DlLA0tE1.js +0 -2748
  837. package/dist/VendorInternationalWireDetailsPage-CvSRbZeN.js +0 -968
  838. package/dist/VendorInternationalWireDetailsPage-P5HEd0Si.cjs +0 -152
  839. package/dist/VendorInternationalWireSwiftDetailsPage-BQCyDBsk.js +0 -52
  840. package/dist/VendorInternationalWireSwiftDetailsPage-BpeNRcxK.cjs +0 -1
  841. package/dist/VendorsAccountsSection-BC2XAEKa.cjs +0 -68
  842. package/dist/VendorsAccountsSection-CAk6CWGI.js +0 -279
  843. package/dist/VerifyDevice-CCvOLdnX.cjs +0 -112
  844. package/dist/VerifyDevice-DJvR0rNJ.js +0 -298
  845. package/dist/VideoPlayer-CLgaIGuk.js +0 -170
  846. package/dist/VideoPlayer-vZ4tNZwM.cjs +0 -77
  847. package/dist/VideoPopup-C7LUvJFc.js +0 -60
  848. package/dist/VideoPopup-CcZScsvY.cjs +0 -31
  849. package/dist/WarningsDrawerPage-CwLFopFf.js +0 -228
  850. package/dist/WarningsDrawerPage-Z_1PkZUG.cjs +0 -92
  851. package/dist/ZeniAccountDetailPage-B110a4VB.cjs +0 -300
  852. package/dist/ZeniAccountDetailPage-XoT8XOyz.js +0 -908
  853. package/dist/ZeniAccountListViewPage-ClKaYJfq.js +0 -1078
  854. package/dist/ZeniAccountListViewPage-nBgZtwei.cjs +0 -441
  855. package/dist/ZeniAccountNavBarPieces-D7ZiVSTN.cjs +0 -14
  856. package/dist/ZeniAccountNavBarPieces-DybZAV63.js +0 -89
  857. package/dist/ZeniAccountPromoPage-CB19FolY.js +0 -522
  858. package/dist/ZeniAccountPromoPage-CpuQFFE2.cjs +0 -184
  859. package/dist/ZeniAccountSetupPage-DIia4kl3.cjs +0 -36
  860. package/dist/ZeniAccountSetupPage-DR33tGML.js +0 -309
  861. package/dist/ZeniAvatar-DAohorKn.js +0 -34
  862. package/dist/ZeniAvatar-qoqLphZk.cjs +0 -13
  863. package/dist/ZeniCopyright-BnzBC1Nv.cjs +0 -1
  864. package/dist/ZeniCopyright-DFC-IuH7.js +0 -9
  865. package/dist/ZeniDatePicker-DhnZM9SY.cjs +0 -187
  866. package/dist/ZeniDatePicker-VGGo0nGG.js +0 -386
  867. package/dist/ZeniTransferAmountSlider-C3eVTqSv.cjs +0 -63
  868. package/dist/ZeniTransferAmountSlider-_o5sy1dR.js +0 -215
  869. package/dist/analyticsHelper-CggBXKBM.cjs +0 -1
  870. package/dist/analyticsHelper-Dj3r2KTT.js +0 -65
  871. package/dist/calculateSize-Bg7ndlJ8.cjs +0 -1
  872. package/dist/calculateSize-BrPTxwfz.js +0 -22
  873. package/dist/chartTypes-C4yMiFnh.cjs +0 -1
  874. package/dist/chartTypes-CrK7r3RL.js +0 -47
  875. package/dist/common-D7OXuEhj.cjs +0 -1
  876. package/dist/common-K8h47JNN.js +0 -22
  877. package/dist/commonDimensions-CKGGxtyo.cjs +0 -1
  878. package/dist/commonDimensions-kQtIqgvz.js +0 -13
  879. package/dist/detailCommon-BzEhP6Sy.js +0 -124
  880. package/dist/detailCommon-DNjnu-d3.cjs +0 -38
  881. package/dist/downloadPdf-CbVxEhyc.js +0 -32
  882. package/dist/downloadPdf-DrBy9bDu.cjs +0 -1
  883. package/dist/index-BURcUrxk.js +0 -92381
  884. package/dist/index-DqpzSdEQ.cjs +0 -21201
  885. package/dist/mapLoadingInProgressToTreeNode-ChDfkP8q.js +0 -25
  886. package/dist/mapLoadingInProgressToTreeNode-fJXb_T5X.cjs +0 -1
  887. package/dist/mapSectionWithAcOnlyToTreeNode-Bhhk2iGd.cjs +0 -1
  888. package/dist/mapSectionWithAcOnlyToTreeNode-totZumkx.js +0 -387
  889. package/dist/mapSpacerToTreeNode-DrSqv7l3.js +0 -25
  890. package/dist/mapSpacerToTreeNode-xn4dnsdc.cjs +0 -1
  891. package/dist/mapTimeframeBalancesToTreeNode-23p7D-mQ.cjs +0 -1
  892. package/dist/mapTimeframeBalancesToTreeNode-BXjib-oX.cjs +0 -1
  893. package/dist/mapTimeframeBalancesToTreeNode-D6ZX4TYS.js +0 -24
  894. package/dist/mapTimeframeBalancesToTreeNode-tbv1sdt8.js +0 -24
  895. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-BQCLtGe1.js +0 -32
  896. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-s1ap8ogQ.cjs +0 -1
  897. package/dist/sectionColor-BZAbjPne.cjs +0 -1
  898. package/dist/sectionColor-BwSA4nh4.js +0 -32
  899. package/dist/toCOABalancesWithID-D16btiyu.js +0 -8
  900. package/dist/toCOABalancesWithID-kkYCJju_.cjs +0 -1
  901. package/dist/toChartData-4qaLBp_h.cjs +0 -1
  902. package/dist/toChartData-CKWS4YpY.js +0 -76
  903. package/dist/uploadAttachment-CJkWKh-i.js +0 -952
  904. package/dist/uploadAttachment-iT9Ykcpl.cjs +0 -286
  905. package/dist/zeniDatePicker.helpers-CACnzqQ7.js +0 -14
  906. package/dist/zeniDatePicker.helpers-CpeY5EaA.cjs +0 -1
@@ -0,0 +1,1650 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-.pnpm-D0ILHvHB.cjs"),m=require("react"),i=require("@emotion/styled"),H=require("@zeniai/client-epic-state"),t=require("./index-DxfP_W_n.cjs"),Be=require("@emotion/react"),vo=require("./BusyIndication-DyDhNuyF.cjs"),bo=require("./common-BReki66G.cjs"),wo=require("react-plaid-link"),je=require("./ReloadContainer-D3SxFIeR.cjs"),Ae=require("./CollapsableReportTable-qYHqbXSe.cjs"),ln=require("./AccountRow-zgxsXwL5.cjs"),Js=require("./mapTimeframeBalancesToTreeNode-T8MpV7fk.cjs"),qn=require("./mapLoadingInProgressToTreeNode-Kz-Nm1hI.cjs"),Io=require("./VendorsAccountsSection-Ci5zkkRO.cjs"),To=require("./SuccessAnimation-D478SmRe.cjs"),Ht=require("./uploadAttachment-B01svB5H.cjs");function ko(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(s,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return s.default=e,Object.freeze(s)}const k=ko(m),{common:{navBar:{back:$o},texts:{refresh:Lo,close:Ao,copy:Oo,copied:Do,open:_o}},expenseAutomation:{common:{numbers:{maximumCount:Bo}}}}=t.appLocale.getLocalizedStrings(),Mo=i(t.SvgComment)`
2
+ display: flex;
3
+ width: ${t.Space.sp4};
4
+ height: ${t.Space.sp4};
5
+ align-items: center;
6
+ justify-content: center;
7
+ `,No=i.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
+ `,Po=i.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
+ `,Fo=i.div`
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-left: ${e=>Gn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
+ padding-right: ${e=>Gn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
+ `,zo=i.div`
34
+ display: flex;
35
+ align-items: baseline;
36
+ justify-content: end;
37
+ gap: ${t.Space.sp4};
38
+ flex: 1 1 ${t.Space.sp0};
39
+ `,Ho=i.div`
40
+ display: flex;
41
+ align-items: baseline;
42
+ justify-content: start;
43
+ gap: ${t.Space.sp4};
44
+ flex: 1 1 ${t.Space.sp0};
45
+ `,Wo=i(t.SvgCopy)`
46
+ width: ${t.Space.sp3};
47
+ height: ${t.Space.sp3};
48
+ cursor: pointer;
49
+ margin-left: ${t.Space.sp1};
50
+ color: inherit;
51
+ `,Vo=i(t.SvgSuccessRound)`
52
+ width: ${t.Space.sp3};
53
+ height: ${t.Space.sp3};
54
+ margin-left: ${t.Space.sp1};
55
+ color: ${t.Colors.success};
56
+ `,qo=i(t.SvgClose)`
57
+ cursor: pointer;
58
+ width: ${t.Space.sp4};
59
+ height: ${t.Space.sp4};
60
+ color: ${e=>e.theme.colors.hero};
61
+ &:hover {
62
+ color: ${e=>e.theme.colors.primary};
63
+ }
64
+ `,Uo=i(t.SvgArrowLeft)`
65
+ cursor: pointer;
66
+ width: ${t.Space.sp4};
67
+ height: ${t.Space.sp4};
68
+ color: ${e=>e.theme.colors.hero};
69
+ &:hover {
70
+ color: ${e=>e.theme.colors.primary};
71
+ }
72
+ `,Go=i(t.SvgRefresh,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
73
+ cursor: pointer;
74
+ width: ${t.Space.sp4};
75
+ height: ${t.Space.sp4};
76
+ color: ${e=>e.theme.colors.hero};
77
+ animation: ${e=>e.$spinning?Be.css`
78
+ ${Ko} 2s linear infinite;
79
+ `:"none"};
80
+ &:hover {
81
+ color: ${e=>e.theme.colors.primary};
82
+ }
83
+ `,Ko=Be.keyframes`
84
+ 0% {
85
+ transform: rotate(0deg);
86
+ }
87
+ 100% {
88
+ transform: rotate(360deg);
89
+ }
90
+ `,Jo=i.div`
91
+ padding-top: ${t.Space.sp0};
92
+ padding-bottom: ${t.Space.sp0};
93
+ `,Un=i(t.StandardRegular)`
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: ${t.Space.sp4};
101
+ `,Yo=i.div`
102
+ display: flex;
103
+ `,Zo=i.div`
104
+ border: 1px solid ${e=>e.theme.colors.grey3};
105
+ width: 100%;
106
+ margin-top: -2px;
107
+ border-top-right-radius: ${t.Space.sp2};
108
+ border-top-left-radius: ${t.Space.sp2};
109
+ border-bottom-right-radius: ${t.Space.sp2};
110
+ border-bottom-left-radius: ${t.Space.sp2};
111
+ `,Xo=i.div`
112
+ display: flex;
113
+ height: ${t.Space.sp4};
114
+ `,Qo=i.div`
115
+ text-align: center;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ flex-wrap: wrap;
120
+ `,ei=i.div`
121
+ display: flex;
122
+ flex-direction: column;
123
+ `,ti=i(t.SvgAiIcon)`
124
+ width: ${t.Space.sp3};
125
+ height: ${t.Space.sp3};
126
+ margin-right: ${t.Space.sp1};
127
+ path {
128
+ stroke-width: 2;
129
+ }
130
+ `,qt=i.span`
131
+ font-weight: ${t.FontWeight.regular};
132
+ color: ${e=>e.theme.colors.primary};
133
+ `,ni=i.span`
134
+ font-weight: ${t.FontWeight.medium};
135
+ color: ${e=>e.theme.colors.primary};
136
+ `,si=i.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
+ `,Gn={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},oi=({onAllThreadsClick:e,companyId:s,companyName:l})=>{const a={application:"cockpit",companyId:s,entityId:s,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:l,url:window.location.href},{url:p,...u}=a,o={...u},{threads:c,isLoading:r}=t.useFilteredThreads(o,!1,!1),x=c.filter(d=>d.id.includes(t.NEW_THREAD_SUFFIX)===!1);return n.jsxRuntimeExports.jsxs(No,{isDisabled:r,onClick:e,"data-testid":t.generateDataTestId("comment-icon"),children:[n.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:r}),n.jsxRuntimeExports.jsx(Mo,{})]})},ii=({headerData:e,refreshStatus:s,searchText:l,companyName:a,companyId:p,isZeniUser:u,onAllThreadsClick:o,onClose:c,onRefresh:r,onSearchTextChanged:x})=>{const d=()=>{s!=="In-Progress"&&r()};return n.jsxRuntimeExports.jsx(zo,{children:e.rightSection.map((h,f)=>{switch(h){case"search":return n.jsxRuntimeExports.jsx(t.ListPageSearchSection,{isSearchOpen:(l.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:l,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:t.Space.sp4},searchIconMarginRight:t.Space.sp0,onSearchTextChanged:y=>{x(y)},downloadPresent:!1},f+h);case"refresh":return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:Lo,style:{marginTop:"2px"},enterDelay:600,children:n.jsxRuntimeExports.jsx(Go,{onClick:d,$spinning:s==="In-Progress","data-testid":t.generateDataTestId("refresh-icon")})},f+h);case"comment":return u===!1?null:n.jsxRuntimeExports.jsx(oi,{companyId:p,companyName:a,onAllThreadsClick:o});case"close":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:Ao,enterDelay:600,style:{marginTop:"2px"},children:n.jsxRuntimeExports.jsx(qo,{onClick:c,"data-testid":t.generateDataTestId("close-icon")})},f+h)}})})},ri=({headerData:e,onBack:s})=>n.jsxRuntimeExports.jsx(Ho,{children:e.leftSection.map((l,a)=>{switch(l){case"back":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:$o,enterDelay:600,style:{marginTop:"-14px"},children:n.jsxRuntimeExports.jsx(Uo,{onClick:s,"data-testid":t.generateDataTestId("back-button")})},a+l)}})}),Kn=({text:e,linkText:s,windowSize:l,isCopied:a,onLinkClick:p})=>{if(s==null||!s)return n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[e," "]});const u=e.indexOf(s);if(u===-1)return n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[e," "]});const o=e.substring(0,u),c=e.substring(u+s.length);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o?n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[o.trim()," "]}):null,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"right",title:t.ZENI_EMAIL_PATTERN.test(s)?a?Do:Oo:_o,enterTouchDelay:600,children:n.jsxRuntimeExports.jsxs(si,{onClick:()=>p?.(s),"data-testid":t.generateDataTestId("pre-link"),children:[s,a?n.jsxRuntimeExports.jsx(Vo,{className:"success-icon"}):n.jsxRuntimeExports.jsx(Wo,{className:"copy-icon"})]})}),c?n.jsxRuntimeExports.jsxs(qt,{windowSize:l,children:[c," "]}):null]})},Jn=({subTitles:e})=>{const s=t.useWindowSizeContext(),[,l]=t.useCopyToClipboard(),[a,p]=m.useState(!1),u=m.useRef(null),o=m.useCallback(c=>{t.ZENI_EMAIL_PATTERN.test(c)?(l(c),p(!0),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p(!1)},2e3)):window.open(c,"_blank","noopener,noreferrer")},[l]);return m.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]),n.jsxRuntimeExports.jsx(ei,{children:e.map((c,r)=>n.jsxRuntimeExports.jsxs(Qo,{children:[c.pre?n.jsxRuntimeExports.jsx(Kn,{text:c.pre,linkText:c.preLink,windowSize:s,isCopied:a,onLinkClick:o}):null,c.prefixIconName?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:c.prefixIconName==="zeniAIIcon"?n.jsxRuntimeExports.jsx(ti,{}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}):null,c.bold?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(ni,{windowSize:s,children:[c.bold," "]})}):null,c.post?n.jsxRuntimeExports.jsx(Kn,{text:c.post,linkText:c.postLink,windowSize:s,isCopied:a,onLinkClick:o}):null]},r+c.bold+c.pre+c.post))})};function ai(e){const{headerData:s,currentTab:l,completionStatus:a,onUpdateTab:p,selectedReconAccountId:u,getTabCountAndFetchState:o,reconcileDetailPageFetchState:c,forceShowSubtitle:r,currentSelectedView:x,onReconTabUpdate:d,currentRecontab:h,navBarCustomElement:f,titleStyle:y={}}=e,j=o("autoCategorized")?.count??0,C=o("review")?.count??0,b=o("reconcile")?.count??0,g=s.tabs.length>0||s.subTitle.length>0,w=x==="transaction_categorization"&&l==="autoCategorized",_=x==="reconciliation"&&h==="review"&&u!=null,$=x==="reconciliation"&&h==="reconcile"&&u!=null,v=w?j>0:_?c==="In-Progress"?!0:C>0:$?c==="In-Progress"?!0:b>0:a!=="complete",S=n.useTheme(),I=t.useWindowSizeContext();let A=[];return s.tabs.length>0&&(A=s.tabs.map(q=>({label:q.label,id:q.id,countDetails:o(q.id)}))),n.jsxRuntimeExports.jsxs(Po,{children:[n.jsxRuntimeExports.jsx(t.NavBar,{title:s.title,subTitle:s.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:S.colors.grey4,onBackClick:()=>null,titleStyle:y,ignoreScrollAction:x!=="month_end_insights",keepBackgroundOnScroll:x!=="month_end_insights",leftSideComponent:n.jsxRuntimeExports.jsx(ri,{...e}),rightSideComponent:n.jsxRuntimeExports.jsx(ii,{...e}),source:"NavBarWithHeader"}),f??null,n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:g===!0,children:n.jsxRuntimeExports.jsx(Fo,{windowSize:I,children:s.tabs.length>0?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Jo,{windowSize:I,children:n.jsxRuntimeExports.jsx(t.TabSwitcher,{allTabs:A,selectedTab:x==="transaction_categorization"?l??A[0].id:h??A[0].id,onTabChange:q=>{if(x==="transaction_categorization"){const T=H.toExpenseAutomationTransactionsTabKey(q.id);T!=null&&p(T)}else if(x==="reconciliation"){const T=H.toReconciliationTabsType(q.id);T!=null&&d(T)}},maximumCountLimit:Bo})}),n.jsxRuntimeExports.jsx(Zo,{windowSize:I}),n.jsxRuntimeExports.jsx(Xo,{}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v===!0||r===!0,children:n.jsxRuntimeExports.jsx(Un,{windowSize:I,children:s.tabs.map((q,T)=>(x==="reconciliation"?q.id===h:q.id===l)?n.jsxRuntimeExports.jsx(Yo,{children:n.jsxRuntimeExports.jsx(Jn,{subTitles:q.subTitle})},T+q.id):null)})})]}):n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v===!0||r===!0,children:n.jsxRuntimeExports.jsx(Un,{windowSize:I,children:n.jsxRuntimeExports.jsx(Jn,{subTitles:s.subTitle})})})})})]})}const ci=1;function li({name:e,checkBoxes:s,mode:l,isDisabled:a,style:p,labelStyle:u,labelCheckBoxStyle:o,checkBoxStyle:c,width:r,registerOptions:x,checkedIconColor:d,checkBoxIconStyle:h,checkBoxContainerStyle:f,draggable:y=!1,selectionLimit:j,infoIconContainerStyle:C,onDragStart:b,rowHeight:g=40,initialScrollOffSet:w,onScroll:_}){const $=t.useWindowSizeContext(),B=m.useRef(null),{control:v}=n.useFormContext(),S=s.find(T=>T.groupLabel),I=s.filter(T=>!T.groupLabel),A=[];for(const T of I)if(T.isException||A.push(T.value),j!=null&&A.length===j+1)break;const q=s.filter(T=>T.defaultChecked).map(T=>T.value);return n.jsxRuntimeExports.jsx(n.Controller,{control:v,name:e,rules:x,defaultValue:q,render:({field:{value:T,ref:J,onChange:D}})=>{const V=K=>{ui({event:K,value:T,allCheckBoxValues:A,groupLabelCheckBox:S,onChange:D})};return n.jsxRuntimeExports.jsxs(pi,{style:p,windowSize:$,children:[S&&n.jsxRuntimeExports.jsx(Mn,{checkBox:S,index:0,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:S,infoIconContainerStyle:C,checkedIconColor:d,isDisabled:a,selectionLimit:j,onDragStart:b,ref:J,onChangeHandler:V}),n.jsxRuntimeExports.jsx(mi,{children:n.jsxRuntimeExports.jsx(n.AutoSizer,{style:{height:"100%",width:"100%"},children:({height:K,width:U})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:B,height:K,width:U,itemCount:I.length,itemSize:()=>g,estimatedItemSize:g,initialScrollOffset:w??0,onScroll:({scrollOffset:M})=>{_?.(M)},overscanCount:ci,itemKey:M=>I[M].value,itemData:{checkBoxes:I,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:u,width:r,draggable:y,groupLabelCheckBox:S,infoIconContainerStyle:C,checkedIconColor:d,isDisabled:a,selectionLimit:j,onDragStart:b,ref:J,onChange:D,handleChangeEvent:V,rowHeight:g},children:di})})})]})}})}const di=({index:e,style:s,data:l})=>{const a=m.useRef(null),{checkBoxes:p,value:u,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:f,labelStyle:y,width:j,draggable:C,groupLabelCheckBox:b,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:_,selectionLimit:$,onDragStart:B,ref:v,handleChangeEvent:S}=l,I=p[e];return n.jsxRuntimeExports.jsx(yi,{style:{...s,width:"100%"},ref:a,children:n.jsxRuntimeExports.jsx(Mn,{checkBox:I,index:e,value:u,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:f,labelStyle:y,width:j,draggable:C,groupLabelCheckBox:b,infoIconContainerStyle:g,checkedIconColor:w,isDisabled:_,selectionLimit:$,onDragStart:B,ref:v,onChangeHandler:S})})},Mn=m.forwardRef((e,s)=>{const{value:l,checkBox:a,groupLabelCheckBox:p,allCheckBoxValues:u,selectionLimit:o,mode:c,checkBoxStyle:r,labelCheckBoxStyle:x,isDisabled:d,draggable:h,checkBoxContainerStyle:f,infoIconContainerStyle:y,name:j,index:C,width:b,checkedIconColor:g,checkBoxIconStyle:w,labelStyle:_,onDragStart:$,onChangeHandler:B}=e,v=t.useWindowSizeContext(),S=T=>{typeof s=="function"?s(T):s&&(s.current=T)};let I=l.includes(a.value);const A=Array.from(new Set([...l,a.value]));p?.value===a.value&&l.length>0&&(o!=null?I=A.length===u.length||A.length===o+1:I=u.every(T=>A.includes(T)===!0));const q=()=>c==="off"||a.isException?v==="small"?{display:"none",...r}:{visibility:"hidden",...r}:a.groupLabel?u.length===1&&u[0]===p?.value?{visibility:"hidden",...x}:x:r;return n.jsxRuntimeExports.jsxs(hi,{mode:c,draggable:h===!0,onDragStart:T=>{$?.(T,a.value)},style:f,isDisabled:d,isSelected:I,exceptionMode:a.exceptionMode,children:[a.prefix?n.jsxRuntimeExports.jsx(xi,{className:"prefix-box",children:a.prefix}):null,a.isException?n.jsxRuntimeExports.jsx(gi,{style:y,className:"checkbox-alert",children:n.jsxRuntimeExports.jsx(t.Tooltip,{style:{padding:`12px ${t.Space.sp3}`},title:a.exceptionInfo??"",placement:"bottom-start",children:a.exceptionType==="info"?n.jsxRuntimeExports.jsx(ji,{}):n.jsxRuntimeExports.jsx(fi,{})})}):n.jsxRuntimeExports.jsx(t.StyledCheckBox,{name:`${j}.${a.value}`,checkBoxValue:a.value,value:I,checkedIconColor:g,isDisabled:d||!a.groupLabel&&!I&&o!=null&&A.length===o+1?"disabled":void 0,checkBoxStyle:q(),checkBoxIconStyle:w,ref:S,onChange:B}),typeof a.label=="string"&&a.label?n.jsxRuntimeExports.jsx(t.Label,{isDisabled:d,label:a.label,labelStyle:_,htmlFor:`${j}.${a.value}`,style:{display:"flex",flex:1,minHeight:t.Space.sp4,marginLeft:t.Space.sp2,width:b,backgroundColor:"inherit",..._}}):a.label]},`${a.value}_${C}`)});Mn.displayName="CheckBoxWithLabel";const ui=({event:e,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:p})=>{const u=e.currentTarget.value,o=e.currentTarget.checked,c=a?.value,r=new Set(s);if(u===c){p(o?Array.from(new Set([c,...l])):[]);return}o?r.add(u):r.delete(u);const x=l.every(d=>r.has(d));c!=null&&(x&&!r.has(c)?r.add(c):!x&&r.has(c)&&r.delete(c)),p(Array.from(r))},pi=i.div`
155
+ display: flex;
156
+ flex-direction: column;
157
+ width: 100%;
158
+ height: 100%;
159
+ `,mi=i.div`
160
+ flex: 1;
161
+ overflow: hidden;
162
+ `,xi=i.div`
163
+ opacity: 0;
164
+ `,hi=i.div`
165
+ display: flex;
166
+ align-items: center;
167
+ flex-direction: row;
168
+ width: 100%;
169
+ min-height: ${t.Space.sp4};
170
+
171
+ ${e=>e.mode==="checked_or_hover"&&Be.css`
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"&&Be.css`
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"&&Be.css`
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"&&Be.css`
213
+ :hover {
214
+ .checkbox-alert {
215
+ opacity: 1;
216
+ }
217
+ }
218
+ `}
219
+
220
+ ${e=>e.exceptionMode==="checked_or_hover"&&Be.css`
221
+ .checkbox-alert {
222
+ opacity: 1;
223
+ }
224
+ `}
225
+ `,gi=i.div`
226
+ cursor: pointer;
227
+ `,ji=i(t.SvgInfo)`
228
+ height: ${t.Space.sp3};
229
+ width: ${t.Space.sp3};
230
+ color: ${e=>e.theme.colors.hero};
231
+ background-color: ${e=>e.theme.colors.grey4};
232
+ border-radius: 50%;
233
+ `,fi=i(t.SvgAlertRound)`
234
+ height: ${t.Space.sp3};
235
+ width: ${t.Space.sp3};
236
+ color: ${e=>e.theme.colors.hero};
237
+ background-color: ${e=>e.theme.colors.grey4};
238
+ border-radius: 50%;
239
+ `,yi=i.div`
240
+ width: 100%;
241
+ box-sizing: border-box;
242
+ `,Si=e=>k.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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}),k.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}),k.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}),k.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}),k.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}),k.createElement("g",{opacity:.2},k.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"})),k.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"}),k.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),k.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}),k.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}),k.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}),k.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})),Ri=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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}),k.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),k.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}),k.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"}),k.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"}),k.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),k.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}),k.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),k.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),Ci=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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}),k.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}),k.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}),k.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"}),k.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}),k.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}),k.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}),k.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}),k.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}),k.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}),k.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}),k.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),Ei=e=>k.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),k.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"}),k.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"}),k.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"})),vi=i.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
+ `,bi=i(Ri)`
251
+ width: 90px;
252
+ height: 90px;
253
+ `,wi=i(Ci)`
254
+ width: 90px;
255
+ height: 90px;
256
+ `,Ii=i(Si)`
257
+ width: 90px;
258
+ height: 90px;
259
+ `,Ti=i(Ei)`
260
+ width: 90px;
261
+ height: 90px;
262
+ `,ki=i.div`
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: center;
266
+ flex-direction: column;
267
+ `,$i=i(t.H6Regular)`
268
+ margin-top: ${t.Space.sp2};
269
+ color: ${e=>e.theme.colors.brandColorJade};
270
+ `,Li=i(t.LargeRegular)`
271
+ color: ${e=>e.theme.colors.primary};
272
+ `,Ai=e=>{const{tab:s}=e;switch(s){case"transaction_categorization":return n.jsxRuntimeExports.jsx(bi,{});case"je_schedules":case"reconciliation":return n.jsxRuntimeExports.jsx(Ti,{});case"flux_analysis":return n.jsxRuntimeExports.jsx(Ii,{});case"missing_receipts":default:return n.jsxRuntimeExports.jsx(wi,{})}};function dt(e){const{title:s,subTitle:l}=e;return n.jsxRuntimeExports.jsx(vi,{children:n.jsxRuntimeExports.jsxs(ki,{children:[n.jsxRuntimeExports.jsx(Ai,{...e}),n.jsxRuntimeExports.jsx($i,{children:s}),n.jsxRuntimeExports.jsx(Li,{children:l})]})})}const{common:{headers:{transactions:Oi,jeSchedules:Di,fluxAnalysis:_i,missingReceipts:Bi,insights:Mi,reconciliation:Yn},strings:{empty:Et}},expenseAutomation:{transactions:{tabs:Zn,subTitles:{review:{item1:Ut,item2:Gt},autoCategorized:{item1:Kt,item2:Ni}},searchPlaceholder:Pi,allDoneText:Fi},jeSchedules:{subTitles:{item1:zi,item2:Hi},searchPlaceholder:Wi,allDoneText:Vi},missingReceipts:{subTitles:qi,searchPlaceholder:Ui,allDoneText:Gi},fluxAnalysis:{subTitles:{item1:Ki,item2:Ji},searchPlaceholder:Yi,emptyPageTexts:{youDidIt:Zi,allReviewed:Xi}},accountRecon:{review:{allDoneText:Xn},reconcile:{allDoneText:Qi},tabs:Qn,titles:{item1:er,item2:tr},subTitles:{review:{item1:nr,item2:Jt},reconcile:{item1:Yt,item2:sr}}}}}=t.appLocale.getLocalizedStrings(),Ne=(e,s,l,a,p)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Oi,subTitle:[],tabs:[{label:Zn.review,id:"review",subTitle:[{pre:Ut.pre,bold:Ut.bold,prefixIconName:Ut.prefixIconName,post:Ut.post},{pre:Gt.pre,bold:Gt.bold,prefixIconName:Gt.prefixIconName,post:Gt.post}]},{label:Zn.autoCategorized,id:"autoCategorized",subTitle:[{pre:Kt.pre,bold:Kt.bold,prefixIconName:Kt.prefixIconName,post:Kt.post.replace("#number",s!=null&&s!=0?s.toString():"")},Ni]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Pi,allDoneText:Fi};case"je_schedules":return{key:"je_schedules",title:Di,subTitle:[zi,Hi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Wi,allDoneText:Vi};case"missing_receipts":return{key:"missing_receipts",title:Bi,subTitle:[qi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ui,allDoneText:Gi};case"flux_analysis":return{key:"flux_analysis",title:_i,subTitle:[Ki,Ji],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Yi,allDoneText:{title:Zi,subTitle:Xi}};case"month_end_insights":return{key:"month_end_insights",title:Mi,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}};case"reconciliation":return l==null?{key:"reconciliation",title:Yn,subTitle:[er,tr],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}}:{key:"reconciliation",title:a??Yn,subText:p??void 0,subTitle:[],tabs:[{label:Qn.review,id:"review",subTitle:[nr,{pre:Jt.pre,bold:Jt.bold,prefixIconName:Jt.prefixIconName,post:Jt.post}],allDoneText:Xn},{label:Qn.reconcile,id:"reconcile",subTitle:[{pre:Yt.pre,bold:Yt.bold,prefixIconName:Yt.prefixIconName,post:Yt.post},sr],allDoneText:Qi}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Et,allDoneText:Xn}}},{common:{strings:{empty:or}},expenseAutomation:{accountRecon:{reconcile:{header:yt}}}}=t.appLocale.getLocalizedStrings(),ir={key:"date",value:yt.date,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginLeft:t.sp[4],marginRight:t.sp[3]}},rr={key:"clearedDate",value:yt.clearedDate,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3],display:"none"}},ar={key:"type",value:yt.type,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},cr={key:"payee",value:yt.payee,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},lr={key:"account",value:yt.account,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},dr={key:"transactionDirection",value:yt.direction,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ur={key:"memo",value:yt.memo,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},pr={key:"amount",value:yt.amount,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},mr={key:"recommended",value:or,sortOrder:"ascending",width:new t.ResponsiveSized(1.25,1.25,1.25),customStyle:{marginRight:t.sp[4],marginLeft:t.sp[0]}},$e=[ir,rr,ar,cr,lr,dr,ur,pr,mr],xr=50,Pt={sortKey:"date",sortOrder:"descending"};function hr({sortConfig:e,onReconTabColumnSortConfigChanged:s}){const l=t.useWindowSizeContext(),[a,p]=m.useState(n.cloneDeep($e));m.useEffect(()=>{const c=[...a];for(const r of c)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";p(c)},[e.sortKey,e.sortOrder]);const u=(c,r)=>{let x=r;e.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),s(c,x)},o=c=>{u(c.key,c.sortOrder)};return n.jsxRuntimeExports.jsx(yr,{headerHeight:xr,children:a.map(c=>n.jsxRuntimeExports.jsx(jr,{columnWidth:c.width,windowSize:l,sortDataValue:e.sortKey,actualDataValue:c.key,style:c.customStyle,children:n.jsxRuntimeExports.jsxs(vr,{isVisible:c.key!=="recommended",children:[n.jsxRuntimeExports.jsx(fr,{"data-testid":t.generateDataTestId("reconcile-tab-list-sort",c.value),onClick:()=>o(c),children:n.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:c.value})}),n.jsxRuntimeExports.jsx(Sr,{sortConfig:e,headerData:c,children:n.jsxRuntimeExports.jsx(Rr,{})}),n.jsxRuntimeExports.jsx(Cr,{isVisible:e.sortKey===c.key&&(e.sortKey!==Pt.sortKey||e.sortOrder!==Pt.sortOrder),children:n.jsxRuntimeExports.jsx(Er,{"data-testid":t.generateDataTestId("reconcile-tab-list-reset-sort",Pt.sortKey),onClick:()=>s(Pt.sortKey,Pt.sortOrder)})})]})},c.key))})}const gr=m.memo(hr),jr=i.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
+ `,fr=i.div`
286
+ display: flex;
287
+ gap: 5px;
288
+ cursor: pointer;
289
+ `,yr=i(t.SmallRegular)`
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: ${t.Space.sp3} ${t.Space.sp8} ${t.Space.sp3} ${t.Space.sp0};
299
+ position: sticky;
300
+ color: ${e=>e.theme.colors.grey1};
301
+ `,Sr=i.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
+ `,Rr=i(t.SvgArrowTailTop)`
307
+ width: ${t.Space.sp2};
308
+ height: ${t.Space.sp2};
309
+ `,Cr=i.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
+ `,Er=i(t.SvgCloseRound)`
319
+ width: 12px;
320
+ height: 12px;
321
+ `,vr=i.div`
322
+ display: ${e=>e.isVisible?"flex":"none"};
323
+ `,br=54,wr=72,{common:{strings:{hyphen:dn}}}=t.appLocale.getLocalizedStrings(),{dateFormat:es}=t.appLocale.getLocalizedStrings();function Ir({selectedTransactionIds:e,transaction:s,transactionId:l}){const a=t.useWindowSizeContext(),p=n.useTheme(),[u,o]=m.useState(!1),c=e.includes(l),r=u||c;return n.jsxRuntimeExports.jsx(Tr,{id:l,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n.jsxRuntimeExports.jsxs(kr,{isSelected:r,totalHeight:br,children:[n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[0].width,style:$e[0].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.date.format(es.visual.MMMDCommaYYYYformat)})}),$e[1].customStyle.display!=="none"?n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[1].width,style:$e[1].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.clearedDate!=null?s.clearedDate.format(es.visual.MMMDCommaYYYYformat):n.jsxRuntimeExports.jsx("span",{children:dn})})}):null,n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[2].customStyle,responsiveWidth:$e[2].width,children:n.jsxRuntimeExports.jsx(Ar,{isSelected:r,children:n.jsxRuntimeExports.jsx($r,{isSelected:r,children:t.getStringForTransactionType(s.type)})})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[3].customStyle,responsiveWidth:$e[3].width,children:s.merchantName!=null&&s.merchantName.length>0?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.merchantName,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[4].customStyle,responsiveWidth:$e[4].width,children:s.accountName!=null&&s.accountName.length>0?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.accountName,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:dn})})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[5].customStyle,responsiveWidth:$e[5].width,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,style:{textTransform:"capitalize"},children:s.transactionDirection})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[6].customStyle,responsiveWidth:$e[6].width,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:s.memo,itemTextStyle:{color:r?p.colors.primary:p.colors.hero}})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[7].customStyle,responsiveWidth:$e[7].width,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:t.amountToString("0,0.[00]",s.amount)})}),n.jsxRuntimeExports.jsx(rt,{windowSize:a,responsiveWidth:$e[8].width,style:$e[8].customStyle,children:n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:s.isZeniRecommended?n.jsxRuntimeExports.jsx(Lr,{}):null})})]})})}const Tr=i.div`
324
+ box-sizing: border-box;
325
+ width: 100%;
326
+ display: flex;
327
+ padding-right: ${t.Space.sp8};
328
+ `,kr=i.div`
329
+ cursor: pointer;
330
+ display: flex;
331
+ border-radius: ${t.Space.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=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
339
+ :hover {
340
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
341
+ }
342
+ `,rt=i.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
+ `,vt=i(t.StandardRegular)`
351
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
+ span {
353
+ padding-left: ${t.Space.sp3};
354
+ }
355
+ `,$r=i(t.ExtraSmallRegular)`
356
+ text-transform: capitalize;
357
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
+ `,Lr=i(t.SvgAiIcon)`
359
+ width: ${t.Space.sp3};
360
+ height: ${t.Space.sp3};
361
+ margin-right: ${t.Space.sp1};
362
+ path {
363
+ stroke-width: 2;
364
+ }
365
+ `,Ar=i.div`
366
+ padding: 1px 6px;
367
+ border-radius: ${t.Space.sp1};
368
+ border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
369
+ `,Or=t.appLocale.getLocalizedStrings(),{common:{all:ts,strings:{empty:ns}}}=Or,ss="selectedTransactionIds",Dr="expenseAutomationBankReconReconcilePage",_r=e=>`${e}_form`;function Br({currentFooterFormId:e,localData:s,matchedTransactions:l,sortConfig:a,onSaveReconciliation:p,selectedAccountId:u,onReconTabColumnSortConfigChanged:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r}){const x=n.useForm({mode:"all",defaultValues:{selectedTransactionIds:s.selectedTransactionIds},values:{selectedTransactionIds:s.selectedTransactionIds}}),d={label:n.jsxRuntimeExports.jsx(gr,{onReconTabColumnSortConfigChanged:o,sortConfig:a}),value:ts.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=l.map(C=>({label:n.jsxRuntimeExports.jsx(Ir,{transaction:C,selectedTransactionIds:s.selectedTransactionIds,transactionId:C.id}),value:C.id,defaultChecked:!1,groupLabel:!1})),f=[d,...h],y=async C=>{const g=C[ss].filter(w=>w!=ts.toLocaleLowerCase());c(g)};m.useEffect(()=>{const C=x.watch(b=>{b!=null&&n.defer(()=>y(b))});return()=>{C.unsubscribe()}}),m.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const j=m.useCallback(()=>{p({reconcileAction:"reconcile"})},[p]);if(l.length===0){const C=Ne("reconciliation",void 0,u).tabs.find(b=>b.id==="reconcile")?.allDoneText;return n.jsxRuntimeExports.jsx(Fr,{children:n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:C?.title??ns,subTitle:C?.subTitle??ns})})}return n.jsxRuntimeExports.jsx(Mr,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...x,children:n.jsxRuntimeExports.jsx(Nr,{onSubmit:x.handleSubmit(j),id:_r(Dr),children:n.jsxRuntimeExports.jsx(Pr,{children:n.jsxRuntimeExports.jsx(li,{name:ss,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:wr,mode:s.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Mr=i.div``,Nr=i.form``,Pr=i.div`
370
+ height: calc(100vh - 350px);
371
+ `,Fr=i.div`
372
+ height: 100%;
373
+ display: flex;
374
+ justify-content: center;
375
+ align-items: center;
376
+ `,On=69,me={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},Ys=i.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=i.div`
386
+ display: flex;
387
+ flex-direction: column;
388
+ gap: ${t.Space.sp5};
389
+ align-items: flex-start;
390
+ padding-bottom: ${t.Space.sp9};
391
+ width: 100%;
392
+ `,Xs=i.div`
393
+ width: 100%;
394
+ `,Qs=i.div`
395
+ width: 100%;
396
+ `,Nn=i.div`
397
+ display: flex;
398
+ flex-direction: row;
399
+ padding: ${t.Space.sp2};
400
+ padding-right: ${t.Space.sp3};
401
+ justify-content: space-between;
402
+ border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
403
+ `,Pn=i.div`
404
+ display: flex;
405
+ flex-direction: row;
406
+ justify-content: space-between;
407
+ padding: ${t.Space.sp2};
408
+ padding-right: ${t.Space.sp3};
409
+ `,zr=i.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: ${t.Space.sp2};
415
+ padding-right: ${t.Space.sp3};
416
+ `,Hr=i.div`
417
+ padding: ${t.Space.sp2} ${t.Space.sp3};
418
+ `,Fn=i.div`
419
+ display: flex;
420
+ `,Wr=i.div`
421
+ display: flex;
422
+ align-items: center;
423
+ justify-content: center;
424
+ gap: ${t.Space.sp1};
425
+ padding: ${t.Space.sp2} ${t.Space.sp0};
426
+ background-color: ${e=>e.theme.colors.grey3};
427
+ border-bottom-left-radius: ${t.Space.sp2};
428
+ border-bottom-right-radius: ${t.Space.sp2};
429
+ `,zn=i.div`
430
+ display: flex;
431
+ flex-direction: column;
432
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
433
+ border-radius: ${t.Space.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
+ `,X=i.div`
448
+ display: flex;
449
+ flex-direction: column;
450
+ width: 180px;
451
+ padding: ${t.Space.sp2};
452
+ .hover-background {
453
+ border-radius: ${t.Space.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: ${t.Space.sp2};
474
+ }
475
+ }
476
+ `,tt=i.div`
477
+ padding: ${t.Space.sp2} ${t.Space.sp3};
478
+ `,oe=i(t.ExtraSmallRegular)`
479
+ color: ${e=>e.theme.colors.hero};
480
+ `,de=i(t.StandardRegular)`
481
+ width: 100%;
482
+ color: ${e=>e.theme.colors.hero};
483
+ white-space: nowrap;
484
+ overflow: hidden;
485
+ text-overflow: ellipsis;
486
+ `,ie=i.div`
487
+ display: flex;
488
+ gap: ${t.Space.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
+ `,Hn=i.div`
503
+ border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
504
+ display: flex;
505
+ flex-direction: column;
506
+ gap: ${t.Space.sp3};
507
+ align-items: center;
508
+ justify-content: center;
509
+ padding: ${t.Space.sp0} 42px;
510
+ `,Wn=i.div`
511
+ flex: 1;
512
+ `,eo=i(t.ExtraSmallRegular)`
513
+ padding: ${t.Space.sp0} 6px;
514
+ color: ${t.Colors.info};
515
+ border: 1px solid ${t.Colors.info};
516
+ border-radius: ${t.Space.sp1};
517
+ margin-top: ${t.Space.sp1};
518
+ `,sn=i(t.SmallRegular)`
519
+ padding: ${t.Space.sp2};
520
+ color: ${e=>e.theme.colors.hero};
521
+ background: ${e=>e.theme.colors.overlayColor};
522
+ border-radius: ${t.Space.sp1};
523
+ `,Fe=i(sn)`
524
+ padding: 2px ${t.Space.sp2};
525
+ `,$t=t.appLocale.getLocalizedStrings().expenseAutomation.accountRecon.review.header,ct=[{key:"date",value:$t.date,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:120},{key:"payee",value:$t.payee,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:212},{key:"memo",value:$t.memo,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:192},{key:"direction",value:$t.direction,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:84},{key:"match",value:$t.match,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:152},{key:"amount",value:$t.amount,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),loaderWidth:64}],Vr=e=>{const{sortConfig:s,onColumnSortConfigChanged:l}=e,a=t.useWindowSizeContext(),[p,u]=m.useState(n.cloneDeep(ct));m.useEffect(()=>{const c=[...p];for(const r of c)r.key===s.sortKey?r.sortOrder=s.sortOrder:r.sortOrder="ascending";u(c)},[s.sortKey,s.sortOrder]);const o=(c,r)=>{let x=r;s.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),l(c,x)};return n.jsxRuntimeExports.jsx(Ur,{children:p.map(c=>n.jsxRuntimeExports.jsxs(Gr,{sortDataValue:s.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:a,isLastColumn:c.key==="amount",children:[n.jsxRuntimeExports.jsxs(Kr,{"data-testid":t.generateDataTestId("account-reconciliation-review-header",c.value),sortKey:c.key,onClick:()=>o(c.key,c.sortOrder),children:[n.jsxRuntimeExports.jsx(t.ExtraSmallRegular,{children:c.value}),n.jsxRuntimeExports.jsx(Jr,{sortDataValue:s.sortKey,headerData:c,children:n.jsxRuntimeExports.jsx(Yr,{})})]}),n.jsxRuntimeExports.jsx(Zr,{sortDataValue:s.sortKey,windowSize:a,isVisible:s.sortKey===c.key&&(s.sortKey!=="date"||s.sortOrder==="ascending"),children:n.jsxRuntimeExports.jsx(Xr,{"data-testid":t.generateDataTestId("account-reconciliation-review-sort-by-date"),onClick:()=>o("date","ascending")})})]},c.key))})},qr=m.memo(Vr),Ur=i(t.SmallRegular)`
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: ${t.Space.sp3} ${t.Space.sp4};
535
+ position: sticky;
536
+ color: ${e=>e.theme.colors.grey1};
537
+ background-color: ${e=>e.theme.colors.grey4};
538
+ `,Gr=i.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: ${t.Space.sp0};
546
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
547
+ `,Kr=i.div`
548
+ display: flex;
549
+ cursor: pointer;
550
+ gap: ${t.Space.sp1};
551
+ &:hover {
552
+ color: ${e=>e.theme.colors.primary};
553
+ }
554
+ white-space: nowrap;
555
+ `,Jr=i.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"?Be.css`
560
+ padding-top: 2px;
561
+ `:Be.css`
562
+ padding-bottom: 2px;
563
+ `}
564
+ `,Yr=i(t.SvgArrowTailTop)`
565
+ width: ${t.Space.sp2};
566
+ height: ${t.Space.sp2};
567
+ cursor: pointer;
568
+ color: inherit;
569
+ `,Zr=i.div`
570
+ display: ${e=>e.isVisible?"flex":"none"};
571
+ align-items: center;
572
+ padding-top: 2px;
573
+ `,Xr=i(t.SvgCloseRound)`
574
+ width: 12px;
575
+ height: 12px;
576
+ cursor: pointer;
577
+ color: ${e=>e.theme.colors.hero};
578
+ `,Xe="accountReconReviewTableSection",{dateFormat:Qr,expenseAutomation:ea,common:st}=t.appLocale.getLocalizedStrings(),{visual:to}=Qr,{accountRecon:Se}=ea,no=e=>[{label:Se.review.formLabels.allBankAccounts,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],so=e=>[{label:Se.review.formLabels.allCreditCards,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],os=e=>`${Xe}_${e}_form`,ve=(e,s)=>`${Xe}.${e}.${s}`,ta=e=>{const{sortKey:s,sortOrder:l,accountReconEntity:a,entitySearchAutoCompleteActions:p,allAccountList:u,classList:o,localData:c,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,selectedAccountId:d,entitySearchAutoCompleteData:h,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:j,refreshStatus:C,updateLocalData:b,onColumnSortConfigChanged:g,onSaveReconciliation:w,onSaveReconciliationReview:_,onReconMatchedTransactionClick:$,bankAccounts:B,creditCards:v}=e,{transactionsToReview:S}=a,I=m.useRef(null),[A,q]=m.useState(null),T=D=>{const V=S[D],K=H.isReviewTransactionBillPaymentType(V),U=H.isReviewTransactionExpenseType(V),M=H.isReviewTransactionCreditCardPaymentType(V),te=H.isReviewTransactionBankTransferType(V),ge=H.isReviewTransactionDepositType(V),ne=H.isReviewTransactionCreditCardCreditType(V),Q=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===A?U||M||te||ge||ne?275+(Q?25:0):K?185+V.recommendedAction.recommendedTransactions.length*40+(Q?25:0):146:72},J=m.useMemo(()=>({onColumnSortConfigChanged:g,sortConfig:{sortKey:s,sortOrder:l}}),[g,s,l]);if(m.useEffect(()=>{q(S[0]?.transactionId??null),I.current?.resetAfterIndex(0)},[s,l]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[A]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[S.length]),m.useEffect(()=>{C.fetchState==="Completed"&&I.current?.resetAfterIndex(0)},[C]),S.length===0){const D=Ne("reconciliation",void 0,d).tabs.find(V=>V.id==="review")?.allDoneText;return n.jsxRuntimeExports.jsx(Ea,{children:n.jsxRuntimeExports.jsx(dt,{tab:"reconciliation",title:D?.title??st.strings.empty,subTitle:D?.subTitle??st.strings.empty})})}return n.jsxRuntimeExports.jsx(la,{children:n.jsxRuntimeExports.jsx(oo.Provider,{value:J,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:D,width:V})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{width:V,height:D,innerElementType:io,ref:I,itemCount:S.length,itemSize:T,itemKey:K=>S[K].transactionId,overscanCount:bo.OVERSCAN_COUNT,itemData:{transactionsList:S,expandedRowId:A,allAccountList:u,classList:o,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,localData:c,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:p,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:j,bankAccounts:B,creditCards:v,updateLocalData:b,setExpandedRowId:q,onSaveReconciliation:w,onSaveReconciliationReview:_,onReconMatchedTransactionClick:$},initialScrollOffset:0,children:na})})})})},oo=m.createContext(void 0),io=m.forwardRef((e,s)=>{const{children:l,style:a,...p}=e,{sortConfig:u,onColumnSortConfigChanged:o}=m.useContext(oo);return n.jsxRuntimeExports.jsxs(da,{ref:s,style:{...a,width:"auto",padding:`${t.Space.sp0} ${t.Space.sp8}`},...p,children:[n.jsxRuntimeExports.jsx(qr,{onColumnSortConfigChanged:o,sortConfig:u}),n.jsxRuntimeExports.jsx(ua,{children:l})]})});io.displayName="Account recon review table inner element type";const na=({index:e,style:s,data:l})=>{const{transactionsList:a,expandedRowId:p,setExpandedRowId:u,entitySearchAutoCompleteActions:o,allAccountList:c,classList:r,localData:x,updateLocalData:d,accountListNestedAccountHierarchy:h,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:y,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b,excludeFetchById:g,saveFetchById:w,reviewTabSelectedVendorByTransactionId:_,bankAccounts:$,creditCards:B}=l,v=a[e];return n.jsxRuntimeExports.jsx(ca,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(sa,{transaction:v,expandedRowId:p,setExpandedRowId:u,entitySearchAutoCompleteActions:o,accountListNestedAccountHierarchy:h,allAccountList:c,classList:r,localData:x,updateLocalData:d,entitySearchAutoCompleteData:y,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b,excludeFetchById:g,saveFetchById:w,selectedVendor:_[v.transactionId],bankAccounts:$,creditCards:B})})},sa=({transaction:e,expandedRowId:s,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,allAccountList:p,classList:u,classListNestedAccountHierarchy:o,localData:c,entitySearchAutoCompleteData:r,excludeFetchById:x,saveFetchById:d,selectedVendor:h,bankAccounts:f,creditCards:y,setExpandedRowId:j,updateLocalData:C,onSaveReconciliation:b,onSaveReconciliationReview:g,onReconMatchedTransactionClick:w})=>{const _=s===e.transactionId,$=t.useWindowSizeContext(),B=c[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",S=e.recommendedAction.action==="record_expense",I=H.isReviewTransactionCreditCardCreditType(e),A=p.find(J=>J.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),q=J=>J.recommendedAction.recommendedTransactions.length>0&&J.recommendedAction.recommendedTransactions[0].merchantName!=null?J.recommendedAction.recommendedTransactions[0].merchantName:st.strings.hyphen,T=e.recommendedAction.recommendedTransactions[0]?.merchantName;return n.jsxRuntimeExports.jsxs(ia,{isExpanded:_,children:[n.jsxRuntimeExports.jsxs(ra,{isExpanded:_,onClick:()=>j(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-row",e.transactionId),children:[n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[0].width,children:n.jsxRuntimeExports.jsx(Lt,{children:e.transactionDate.format(to.MMMDCommaYYYYformat)})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[1].width,children:n.jsxRuntimeExports.jsx(Lt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:q(e)})})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[2].width,children:n.jsxRuntimeExports.jsx(Lt,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),n.jsxRuntimeExports.jsx(At,{windowSize:$,responsiveWidth:ct[3].width,children:n.jsxRuntimeExports.jsx(Lt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),n.jsxRuntimeExports.jsxs(At,{windowSize:$,responsiveWidth:ct[4].width,children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:v,children:n.jsxRuntimeExports.jsx(va,{children:n.jsxRuntimeExports.jsx(ba,{children:Se.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!v,children:n.jsxRuntimeExports.jsx(Lt,{children:A!=null?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(ro,{}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):st.strings.hyphen})})]}),n.jsxRuntimeExports.jsx(At,{windowSize:$,isLastColumn:!0,responsiveWidth:ct[5].width,children:n.jsxRuntimeExports.jsx(Lt,{children:t.amountValueToString("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),n.jsxRuntimeExports.jsxs(t.ControlledComponent,{controller:_&&B!=null,children:[n.jsxRuntimeExports.jsx(oa,{onSaveReconciliation:b,onSaveReconciliationReview:g,updateLocalData:C,saveFetchById:d,excludeFetchById:x,localData:B,classListNestedAccountHierarchy:o,allAccountList:p,classList:u,transaction:e,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,entitySearchAutoCompleteData:r,selectedVendor:h,bankAccounts:f,creditCards:y,onReconMatchedTransactionClick:w}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:(v||S||I)&&T!=null,children:n.jsxRuntimeExports.jsx(Ia,{children:n.jsxRuntimeExports.jsxs(Ta,{children:[Se.review.bankDetail,st.strings.colon," ",T]})})})]})]})},oa=({transaction:e,accountListNestedAccountHierarchy:s,entitySearchAutoCompleteActions:l,allAccountList:a,classList:p,classListNestedAccountHierarchy:u,localData:o,entitySearchAutoCompleteData:c,excludeFetchById:r,saveFetchById:x,selectedVendor:d,bankAccounts:h,creditCards:f,updateLocalData:y,onSaveReconciliation:j,onSaveReconciliationReview:C,onReconMatchedTransactionClick:b})=>{const g=n.useTheme(),[w,_]=m.useState(!o.vendor?.id),[$,B]=m.useState(!o.customer?.id),[v,S]=m.useState(o.categoryId==null),[I,A]=m.useState(o.classId==null),[q,T]=m.useState(o.bankAccountId==null),[J,D]=m.useState(o.creditCardId==null),[V,K]=m.useState(!o.memo),U=H.isReviewTransactionBillPaymentType(e),M=H.isReviewTransactionExpenseType(e),te=H.isReviewTransactionBankTransferType(e),ge=H.isReviewTransactionCreditCardPaymentType(e),ne=H.isReviewTransactionDepositType(e),Q=H.isReviewTransactionCreditCardCreditType(e),ae=m.useMemo(()=>{if(!M&&!Q)return t.getGroupedAccountOptions(s);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedAccountOptions(s,d?.recommendations);const R=a.find(ye=>ye.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),re=R!=null?{...R,reason:Se.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedAccountOptions(s,[{account:re}])},[M,Q,d,e.recommendedAction.recommendedTransactions,a,s]),z=m.useMemo(()=>{if(!M&&!Q)return t.getGroupedClassOptions(u);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedClassOptions(u,d?.recommendations);const R=p.find(ye=>ye.classId===e.recommendedAction.recommendedTransactions[0]?.classId),re=R!=null?{...R,reason:Se.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedClassOptions(u,[{class:re}])},[M,Q,d,e.recommendedAction.recommendedTransactions,p,u]),L=n.useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:m.useMemo(()=>is(e,o,ae,a,z,h,f,c),[e,o,z,a,ae,h,f,c]),values:m.useMemo(()=>is(e,o,ae,a,z,h,f,c),[e,o,z,a,ae,h,f,c])}),ee=async(R,re)=>{R.includes("memo")||y(rs(re,e,c,a),e.transactionId,R.includes("vendor"))};m.useEffect(()=>{const R=L.watch((re,{name:ye})=>{ye!=null&&re!=null&&n.defer(()=>ee(ye,re))});return()=>{R.unsubscribe()}});const N=m.useCallback(R=>{if(M||ne||Q){if((M||Q)&&o.vendor==null){_(!1),L.setError(ve(e.transactionId,"vendor"),{type:"required"});return}if(ne&&o.customer==null){B(!1),L.setError(ve(e.transactionId,"customer"),{type:"required"});return}if(o.categoryId==null){S(!1),L.setError(ve(e.transactionId,"category"),{type:"required"});return}}y(rs(R,e,c,a),e.transactionId,!1),C(e.transactionId)},[M,Q,ne,y,e,c,a,C,o.categoryId,o.vendor,o.customer]),P=L.watch(ve(e.transactionId,"vendor")),E=L.watch(ve(e.transactionId,"customer")),W=m.useRef(),Y=m.useMemo(()=>M||Q?"vendor":ne?"customer":null,[M,Q,ne]),O=(R,re)=>{Y!=null&&l.onAutoCompleteInputChange?.(R,Y),W.current=re};m.useEffect(()=>{c.entityAutoCompleteView.fetchState==="Completed"&&((M||Q)&&W.current?.(t.getVendorOptions(c.entityAutoCompleteView)),ne&&W.current?.(t.getCustomerOptions(c.entityAutoCompleteView)))},[c.entityAutoCompleteView,ne,M,Q]);const F=R=>p.filter(ye=>ye.classId===R)[0]?.accountingClassNumber??void 0,G=R=>a.filter(ye=>ye.qboId===R)[0]?.qboId,Z=m.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]),fe=()=>{S(!1)},Ee=()=>{T(!1)},ce=()=>{D(!1)};return m.useEffect(()=>{v===!1&&o.categoryId==null&&L.setFocus(ve(e.transactionId,"category"))},[v]),m.useEffect(()=>{I===!1&&o.classId==null&&L.setFocus(ve(e.transactionId,"class"))},[I]),m.useEffect(()=>{w===!1&&o.vendor==null&&L.setFocus(ve(e.transactionId,"vendor"))},[w]),m.useEffect(()=>{$===!1&&o.customer==null&&L.setFocus(ve(e.transactionId,"customer"))},[$]),m.useEffect(()=>{q===!1&&o.bankAccountId==null&&L.setFocus(ve(e.transactionId,"bankAccount"))},[q]),m.useEffect(()=>{J===!1&&o.creditCardId==null&&L.setFocus(ve(e.transactionId,"creditCard"))},[J]),n.jsxRuntimeExports.jsx(n.FormProvider,{...L,children:n.jsxRuntimeExports.jsx("form",{onSubmit:L.handleSubmit(N),id:os(e.transactionId),children:n.jsxRuntimeExports.jsxs(aa,{children:[n.jsxRuntimeExports.jsxs(pa,{children:[n.jsxRuntimeExports.jsxs(ha,{children:[n.jsxRuntimeExports.jsxs(ga,{children:[n.jsxRuntimeExports.jsx(ro,{}),n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:U?Se.review.formLabels.match:Se.review.formLabels.categorize},radioField:{name:ve(e.transactionId,"match_radio"),id:U?"match":"categorize",value:U?"match":"categorize",checked:!0,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}},style:{width:"auto"}})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!U,children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(as,{}),Z.map(R=>n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:Se.review.formLabels[R]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"recommendedActionType"),id:R,value:R,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}},R))]})})]}),n.jsxRuntimeExports.jsxs(xa,{children:[n.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:Se.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":t.generateDataTestId("account-reconciliation-review-exclude-button",e.transactionId),style:{width:t.Space.sp10},reverseSpinnerColor:!1,onClick:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),n.jsxRuntimeExports.jsx(t.Button,{form:os(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-save-button",e.transactionId),label:st.footer.save,style:{width:t.Space.sp10},variant:"primary",size:"small",type:"submit",loading:x[e.transactionId]?.fetchState==="In-Progress"})]})]}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:M||ne||Q,children:n.jsxRuntimeExports.jsxs(un,{children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:M||Q,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.vendor==null&&w===!1&&_(!0)},children:n.jsxRuntimeExports.jsx(X,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.vendor}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:w===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),_(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addVendor]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Se.review.formLabels.addVendor,valueToId:R=>R,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:R=>!!R.selectedOption},loadOptions:O})})})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:ne,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.customer==null&&$===!1&&B(!0)},children:n.jsxRuntimeExports.jsx(X,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.customer}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:$===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),B(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addCustomer]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ve(e.transactionId,"customer"),allowEmpty:!1,placeholder:Se.review.formLabels.addCustomer,valueToId:R=>R,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:R=>!!R.selectedOption},loadOptions:O})})})]})})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.categoryId==null&&v===!1&&S(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.category}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:v===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),fe()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"category"),placeholder:Se.review.formLabels.addCategory,valueToId:R=>G(R),defaultValue:{allOptions:ae,selectedOption:a.find(R=>R.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Zt})})})]})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.classId==null&&I===!1&&A(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:st.texts.class}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:I===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),A(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addClass]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"class"),placeholder:Se.review.formLabels.addClass,valueToId:R=>F(R),defaultValue:{allOptions:z,selectedOption:o.classId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Zt})})})]})})})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:U,children:n.jsxRuntimeExports.jsxs(ja,{children:[n.jsxRuntimeExports.jsxs(fa,{children:[n.jsxRuntimeExports.jsx("span",{className:"matched-text",children:`${Se.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Se.review.matchesFoundFullInfo]}),n.jsxRuntimeExports.jsx(Sa,{children:e.recommendedAction.recommendedTransactions.map(R=>R.bookTransactionId!=null?n.jsxRuntimeExports.jsxs(Ra,{children:[n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:n.jsxRuntimeExports.jsxs(ya,{children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{children:R.date.format(to.MMMDCommaYYYYformat)}),n.jsxRuntimeExports.jsx(t.StandardRegular,{children:R.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:ve(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:R.bookTransactionId,value:R.bookTransactionId,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}}),n.jsxRuntimeExports.jsxs(wa,{"data-testid":t.generateDataTestId("account-reconciliation-review-matched-transaction-amount",R.bookTransactionId),onClick:()=>{R.bookTransactionId!=null&&b(R.bookTransactionId)},children:[n.jsxRuntimeExports.jsx(Ca,{children:t.amountValueToString("0,0.00",R.amount.amount,R.amount.currencySymbol)}),n.jsxRuntimeExports.jsx(as,{})]})]},R.bookTransactionId):null)})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:te,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.bankAccountId==null&&q===!1&&T(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.formLabels.transferTo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:q===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),Ee()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.selectAccount]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"bankAccount"),placeholder:Se.review.formLabels.selectAccount,defaultValue:{allOptions:no(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:ge,children:n.jsxRuntimeExports.jsx(un,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.creditCardId==null&&J===!1&&D(!0)},children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.formLabels.creditCard}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:J===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),ce()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.selectCard]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:ve(e.transactionId,"creditCard"),placeholder:Se.review.formLabels.selectCard,defaultValue:{allOptions:so(f),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:R=>!!R.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!U,children:n.jsxRuntimeExports.jsx(ma,{children:n.jsxRuntimeExports.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Se.review.header.memo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:V===!0?n.jsxRuntimeExports.jsxs(de,{onClick:R=>{R.stopPropagation(),K(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:g.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(bt,{}),Se.review.formLabels.addMemo]}):n.jsxRuntimeExports.jsx(t.TextField,{name:ve(e.transactionId,"memo"),placeholder:Se.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Zt={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${t.Space.sp5})`,marginRight:`-${t.Space.sp3}`,marginLeft:`-${t.Space.sp3}`})},is=(e,s,l,a,p,u,o,c)=>{const r=a.find(x=>x.accountId===s.categoryId);return{[Xe]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:l},class:{selectedOption:s?.classId,allOptions:p},bankAccount:{selectedOption:s?.bankAccountId,allOptions:no(u)},creditCard:{selectedOption:s?.creditCardId,allOptions:so(o)},memo:s?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:s?.matchedTransactionId,vendor:{selectedOption:s?.vendor?.id,defaultOptions:t.getDefaultVendorOptions$1(c.entityAutoCompleteView,s?.vendor)},customer:{selectedOption:s?.customer?.id,defaultOptions:t.getDefaultCustomerOptions(s?.customer,c.entityAutoCompleteView)}}}}},rs=(e,s,l,a)=>{const{vendor:p,customer:u}=e[Xe][s.transactionId];let o;if(p.selectedOption!=null){const x=p.defaultOptions.find(d=>d.value===p.selectedOption);if(x!=null)o={id:p.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.vendor.find(h=>h.id===p.selectedOption||h.zeniId===p.selectedOption);d!=null&&(o={id:d.zeniId,name:d.name})}}let c;if(u.selectedOption!=null){const x=u.defaultOptions.find(d=>d.value===u.selectedOption);if(x!=null)c={id:u.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.customer.find(h=>h.id===u.selectedOption||h.zeniId===u.selectedOption);d!=null&&(c={id:d.zeniId,name:d.name})}}return{categoryId:a.find(x=>x.qboId===e[Xe][s.transactionId].category.selectedOption)?.accountId??e[Xe][s.transactionId].category.selectedOption,classId:e[Xe][s.transactionId].class.selectedOption,memo:e[Xe][s.transactionId].memo,matchedTransactionId:e[Xe][s.transactionId].matchedTransaction,vendor:o,bankAccountId:e[Xe][s.transactionId].bankAccount.selectedOption,creditCardId:e[Xe][s.transactionId].creditCard.selectedOption,customer:c}},Lt=i(t.StandardRegular)`
579
+ display: flex;
580
+ align-items: center;
581
+ column-gap: ${t.Space.sp1};
582
+ `,At=i.div`
583
+ width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
584
+ display: flex;
585
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
586
+ `,ia=i.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: ${t.Space.sp2};
601
+ `,ra=i.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ align-items: center;
605
+ cursor: pointer;
606
+ padding: ${t.Space.sp3} ${t.Space.sp4};
607
+ column-gap: ${t.Space.sp2};
608
+
609
+ border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
610
+ `,aa=i.div`
611
+ padding: ${t.Space.sp2} ${t.Space.sp4};
612
+ display: flex;
613
+ flex-direction: column;
614
+ row-gap: ${t.Space.sp2};
615
+ `,ca=i.div`
616
+ top: ${t.Space.sp0};
617
+ left: ${t.Space.sp0};
618
+ box-sizing: border-box;
619
+ `,la=i.div`
620
+ height: calc(100vh - 350px);
621
+ max-width: 99.9%;
622
+ padding: ${t.Space.sp0};
623
+ `,da=i.div``,ua=i.div`
624
+ position: relative;
625
+ width: auto;
626
+ height: 100%;
627
+ display: flex;
628
+ flex-direction: column;
629
+ row-gap: ${t.Space.sp3};
630
+ `,pa=i.div`
631
+ display: flex;
632
+ flex-direction: row;
633
+ align-items: center;
634
+ justify-content: space-between;
635
+ padding: 12px ${t.Space.sp3};
636
+ background-color: ${e=>e.theme.colors.background};
637
+ border-radius: ${t.Space.sp2};
638
+ `,un=i.div`
639
+ display: flex;
640
+ flex-direction: row;
641
+ align-items: center;
642
+ column-gap: ${t.Space.sp3};
643
+ `,ma=i.div`
644
+ width: 100%;
645
+ `,xa=i.div`
646
+ display: flex;
647
+ flex-direction: row;
648
+ align-items: center;
649
+ column-gap: ${t.Space.sp3};
650
+ `,ha=i.div`
651
+ display: flex;
652
+ flex-direction: row;
653
+ align-items: center;
654
+ column-gap: ${t.Space.sp6};
655
+ `,ga=i.div`
656
+ display: flex;
657
+ flex-direction: row;
658
+ align-items: center;
659
+ column-gap: ${t.Space.sp1};
660
+ `,bt=i(t.SvgAddRound)`
661
+ width: ${t.Space.sp3};
662
+ height: ${t.Space.sp3};
663
+ `,as=i(t.SvgArrowRight)`
664
+ width: ${t.Space.sp3};
665
+ height: ${t.Space.sp3};
666
+ color: ${e=>e.theme.colors.hero};
667
+ `,ja=i.div`
668
+ display: flex;
669
+ flex-direction: column;
670
+ row-gap: ${t.Space.sp3};
671
+ padding: ${t.Space.sp0} 12px;
672
+ `,fa=i(t.StandardRegular)`
673
+ color: ${e=>e.theme.colors.primary};
674
+
675
+ .matched-text {
676
+ font-weight: ${t.FontWeight.bold};
677
+ }
678
+ `,ya=i.div`
679
+ display: flex;
680
+ align-items: center;
681
+ column-gap: ${t.Space.sp2};
682
+ `,Sa=i.div`
683
+ display: flex;
684
+ flex-direction: column;
685
+ row-gap: ${t.Space.sp2};
686
+ `,Ra=i.div`
687
+ display: flex;
688
+ flex-direction: row;
689
+ align-items: center;
690
+ justify-content: space-between;
691
+ padding-bottom: ${t.Space.sp2};
692
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
693
+ `,Ca=i(t.StandardRegular)`
694
+ color: ${e=>e.theme.colors.hero};
695
+ `,Ea=i.div`
696
+ height: 100%;
697
+ display: flex;
698
+ justify-content: center;
699
+ align-items: center;
700
+ `,va=i.div`
701
+ border: 1px solid ${e=>e.theme.colors.grey2};
702
+ padding: ${t.Space.sp0} ${t.Space.sp1};
703
+ border-radius: ${t.Space.sp1};
704
+ `,ba=i(t.ExtraSmallRegular)`
705
+ color: ${e=>e.theme.colors.hero};
706
+ `,wa=i.div`
707
+ display: flex;
708
+ align-items: center;
709
+ column-gap: 20px;
710
+ cursor: pointer;
711
+ `,Ia=i.div`
712
+ text-align: center;
713
+ padding: ${t.Space.sp1} ${t.Space.sp0};
714
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
715
+ `,Ta=i(t.ExtraSmallRegular)`
716
+ color: ${e=>e.theme.colors.hero};
717
+ `,ro=i(t.SvgAiIcon)`
718
+ width: ${t.Space.sp3};
719
+ height: ${t.Space.sp3};
720
+ margin-right: ${t.Space.sp1};
721
+ path {
722
+ stroke-width: 2;
723
+ }
724
+ `,ka=({reconciliation:e,entitySearchAutoCompleteData:s,selectedAccountId:l,currentFooterFormId:a,entitySearchAutoCompleteActions:p,onUpdateReconcileTabLocalData:u,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:c,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:y,reconciliationTabsState:{reconcile:{uiState:{sortKey:j,sortOrder:C}}},selectedReconAccount:b}=e,g=y[l],{transactionFetchState:w}=b??{};return w?.fetchState==="In-Progress"||w?.fetchState==="Not-Started"?n.jsxRuntimeExports.jsxs(cs,{style:{paddingLeft:t.sp[8],paddingRight:t.sp[8]},children:[n.jsxRuntimeExports.jsx($a,{children:ct.map(_=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:_.loaderWidth,height:18},_.key))}),n.jsxRuntimeExports.jsxs(Aa,{children:[...Array(3).fill(0).map((_,$)=>n.jsxRuntimeExports.jsx(La,{children:ct.map(B=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:B.loaderWidth,height:t.sp[4]},B.key))},`${$}_${_}`))]})]}):n.jsxRuntimeExports.jsx(cs,{children:e.selectedTab==="reconcile"?n.jsxRuntimeExports.jsx(Br,{selectedAccountId:l,currentFooterFormId:a,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:u,onReconTabColumnSortConfigChanged:c,onSaveReconciliation:d,sortConfig:{sortKey:j,sortOrder:C},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:g?.accountReconEntity.transactionsToReconcile}):n.jsxRuntimeExports.jsx(ta,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[l]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[l].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:s,updateLocalData:r,entitySearchAutoCompleteActions:p,onColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:l,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},cs=i.div`
725
+ width: 100%;
726
+ height: 100%;
727
+ `,$a=i.div`
728
+ display: flex;
729
+ justify-content: space-between;
730
+ padding: ${t.Space.sp3} ${t.Space.sp4};
731
+ column-gap: ${t.Space.sp6};
732
+ `,La=i.div`
733
+ display: flex;
734
+ justify-content: space-between;
735
+ padding: ${t.Space.sp3} ${t.Space.sp4};
736
+ background-color: ${e=>e.theme.colors.grey5};
737
+ border-radius: ${t.Space.sp2};
738
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
739
+ box-shadow: ${e=>e.theme.colors.elevation1};
740
+ column-gap: ${t.Space.sp6};
741
+ `,Aa=i.div`
742
+ display: flex;
743
+ gap: ${t.Space.sp3};
744
+ flex-direction: column;
745
+ `;function Oa({title:e,config:s,nodeId:l}){return{children:[],id:l??Ae.uniqueID("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:s}}}function Da({account:e,numOfBalances:s,title:l,isLastNode:a,config:p}){const u=Ae.uniqueID("ac_group_report",[],l);return{children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:l,data:e,numOfBalances:s},config:p}}}function _a({title:e,section:s,config:l,numOfBalances:a,nodeId:p}){return{children:[],id:p??Ae.uniqueID("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:a},config:l}}}function ls({section:e,allAccountReconciliations:s,title:l,subTitle:a,isLastNode:p,isTitleRowRequired:u,config:o}){const c=Ae.uniqueID("section",[],l),r={children:[],id:c,isLastNode:p,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:0},config:o}};if(u){const d=Ae.uniqueID("title_string_only",[],l),h={children:[],id:d,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:l,data:e,numOfBalances:0},config:o}};r.children.push(h)}const x=_a({title:a,section:e,config:o,numOfBalances:0});return r.children.push(x),e.accountIDs.forEach((d,h)=>{const f=s[d],y=Da({account:f,numOfBalances:0,title:f.accountReconEntity.account.accountName,isLastNode:h===e.accountIDs.length-1,config:o});r.children.push(y)}),r}function ao({config:e,accountReconForSection:s,nodeId:l}){return{children:[],id:l??Ae.uniqueID("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:s,numOfBalances:0},config:e}}}function Ba(e,s){return s?ln.getDefaultNodeHeight("section")+ln.getDefaultNodeHeight("total")+e*ln.getDefaultNodeHeight("ac_group_report"):1/0}const Ma=(e,s,l,a,p=!0,u="assets")=>{const o=u==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,c=ao({config:s,accountReconForSection:o}),r=[];r.push(c);const x=Array.isArray(l[a])?l[a]:[],{expenseAutomation:{accountRecon:{reconciliation:d}},common:{loading:h}}=t.appLocale.getLocalizedStrings(),f=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",y=j=>j.filter(C=>!x.includes(C));if(f)[...Array(3)].forEach((j,C)=>{r.push(Oa({title:`${C}+${h}`,config:s}))});else{const j=y(e.accountReconciliationBySectionID.assets.accountIDs),C=ls({section:{...e.accountReconciliationBySectionID.assets,accountIDs:j},allAccountReconciliations:e.accountReconciliationsByAccountID,title:d.headers.section.assets.title,subTitle:d.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:s});if(r.push(C),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const b=y(e.accountReconciliationBySectionID.liabilities.accountIDs),g=ls({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:b},allAccountReconciliations:e.accountReconciliationsByAccountID,title:d.headers.section.liabilities.title,subTitle:d.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:s});r.push(g)}}return{config:s,headerNodes:p?[c]:[],contentNodes:r}};function Na(e,s,l,a=!1,p="assets"){Object.assign(e.config,l);const u=p==="liabilities"&&s.accountReconciliationBySectionID.liabilities.accountIDs.length>0?s.accountReconciliationBySectionID.liabilities:s.accountReconciliationBySectionID.assets,o=ao({config:l,accountReconForSection:u});return{config:l,headerNodes:a?[o]:[],contentNodes:[o,...e.contentNodes.slice(1)]}}const Dn={wrapperPadding:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[8]),contentPaddingLeft:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[2]),contentPaddingRight:new t.ResponsiveSized(t.sp[2],t.sp[2],t.sp[2],t.sp[2])},Pa=i.div`
746
+ display: flex;
747
+ height: 100%;
748
+ width: 100%;
749
+ justify-content: center;
750
+ align-items: center;
751
+ `,Fa=i.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=>Dn.wrapperPadding.valuePx(e.windowSize)};
759
+ background-color: ${e=>e.theme.colors.grey4};
760
+ `,za=i.div`
761
+ width: 100%;
762
+ height: 100%;
763
+ `,{common:Ha}=t.appLocale.getLocalizedStrings();function Wa({reconciliation:e,companyId:s,onReload:l,onReviewClicked:a,setOpenDrawerClicked:p,onFetchLinkTokenClick:u,onEstablishConnectionClick:o,onAddStatementClick:c}){const[r,x]=m.useState(void 0),[d,h]=m.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,y=e.plaidConnectionDetails.update_account,j=d==="update_account"?y:f,[C,b]=m.useState(j.linkToken??null),[g,w]=m.useState(!1),{useDynamicConfig:_}=t.useZeniFeatureContext(),{configValue:$}=_(t.DynamicConfigNames.accountReconGLAccountsConfig),B=m.useCallback(F=>{x(F),h("link_account_no_microdeposit")},[]),v=m.useCallback(F=>{const G=q.current.accountReconciliationsByAccountID[F]?.paymentAccountId;x(F),h("update_account"),u("update_account",G)},[]),S=m.useCallback(F=>{p(F)},[]),I=m.useRef(r),A=m.useRef(d),q=m.useRef(e);m.useEffect(()=>{I.current=r},[r]),m.useEffect(()=>{A.current=d},[d]),m.useEffect(()=>{q.current=e},[e]);const T=m.useCallback(F=>{o(F,I.current??"",A.current),x(void 0),h(void 0),w(!1)},[o]),J=m.useCallback((F,G)=>{F!=null&&console.log("Plaid Connection Error",F,G),x(void 0),h(void 0),w(!1)},[]),{open:D,ready:V}=wo.usePlaidLink({token:C,onSuccess:T,onExit:J});m.useEffect(()=>{(H.zeniDate(new Date().toISOString()).isAfter(j.expiration)||j.linkToken==null)&&j.fetchStatus.fetchState==="Not-Started"&&u("link_account_no_microdeposit")},[j.fetchStatus.fetchState]),m.useEffect(()=>{!g&&d!=null&&j.linkToken===C&&j.fetchStatus.fetchState==="Completed"&&V&&w(!0)},[V,C,j.fetchStatus.fetchState,j.linkToken,d,g]),m.useEffect(()=>{j.fetchStatus.fetchState==="Completed"&&j.linkToken!=null&&j.linkToken!==C&&b(j.linkToken)},[j.fetchStatus.fetchState,j.linkToken,C]),m.useEffect(()=>{g&&D()},[g,D]);const[K,U]=m.useState(void 0),[M,te]=m.useState(void 0),[ge,ne]=m.useState("assets"),Q=H.zeniDate("2025-03-31"),ae=1,z="account_reconciliation",L=t.useWindowSizeContext(),ee=n.useTheme(),N=!0,P=Array.isArray($?.[s])?$[s]:[],E=e.accountReconciliationBySectionID.assets.accountIDs.filter(F=>!P.includes(F)).length,W=e.accountReconciliationBySectionID.liabilities.accountIDs.length>0,Y=Ba(E,W),O=m.useCallback(F=>{const G=F.scrollTop>=Y?"liabilities":"assets";G!==ge&&ne(G)},[Y,ge]);return m.useEffect(()=>{const F={reportId:z,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:Q,firstMonthOfFY:ae,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:a,onConnectClicked:B,onReconnectClicked:v,onOpenDrawerClicked:S,onStatementAddClicked:c}};if(K==null||!n.isEqual(M,e)){const G=Ma(e,F,$,s,N,ge);te(e),U(G)}else{const G=Na(K,e,F,N,ge);U(G)}},[e,ge]),e.fetchStatus.fetchState==="Error"?n.jsxRuntimeExports.jsx(Pa,{children:n.jsxRuntimeExports.jsx(je.ReloadContainer,{onReload:l,message:Ha.errorMessage.somethingWentWrong})}):n.jsxRuntimeExports.jsx(Fa,{windowSize:L,children:K!=null?n.jsxRuntimeExports.jsx(za,{windowSize:L,children:n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(ee.colors.grey4),rootNodes:K,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:N,isStickyName:N},treeNodePadding:{left:Dn.contentPaddingLeft.value(L),right:Dn.contentPaddingRight.value(L)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:O})}):null})}function Va({currentFooterFormId:e,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:l,reconciliation:a,companyId:p,onReconTabColumnSortConfigChanged:u,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r,onReloadReconciliationListPage:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onAddStatementClick:y,onReconReviewTabColumnSortConfigChanged:j,onSaveReconciliation:C,onSaveReconciliationReview:b,setOpenDrawerClicked:g,onReconMatchedTransactionClick:w}){return a.selectedAccountId==null?n.jsxRuntimeExports.jsx(Wa,{companyId:p,reconciliation:a,onReload:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,setOpenDrawerClicked:g,onAddStatementClick:y}):n.jsxRuntimeExports.jsx(ka,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:c,onReconTabColumnSortConfigChanged:u,reconciliation:a,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:l,onReconReviewTabColumnSortConfigChanged:j,entitySearchAutoCompleteData:s,selectedAccountId:a.selectedAccountId,onSaveReconciliation:C,onSaveReconciliationReview:b,onReconMatchedTransactionClick:w})}function qa({accountAndClassReport:e,numOfBalances:s,title:l,isLastNode:a,isFirstNode:p,config:u,parentNodeIDs:o,ancestorMetadata:c}){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:Ae.uniqueID("flux_vendor_account_class_row",o,r),isLastNode:a,isFirstNode:p,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:l,data:e,metadata:c,numOfBalances:s},config:u}}}function Ua({vendorView:e,numOfBalances:s,title:l,isLastNode:a,config:p,parentNodeIDs:u}){const o=Ae.uniqueID("flux_vendor_row",u,e.vendor.id),c={children:[],id:o,isLastNode:a,reportElementData:{element:{kind:"flux_vendor_row",title:l,data:e,numOfBalances:s},config:p}},r=e.vendorAccountsAndClasses;return c.children=r.map((x,d)=>qa({accountAndClassReport:x,numOfBalances:s,title:x.accountBase?.accountName??"",config:p,isLastNode:d===r.length-1,isFirstNode:d===0,parentNodeIDs:[...u,o],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:d===r.length-1,isFirstNode:d===0,name:x.accountBase?.accountName},isVendorLastChild:a,vendorId:e.vendor.id}})),c}function Ga({section:e,numOfBalances:s,title:l,isLastNode:a,config:p}){const u=e.sectionId,o={children:[],id:u,isLastNode:a,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:s,sectionType:e.sectionId},config:p}},c=(e.vendors??[]).map((r,x)=>Ua({vendorView:r,numOfBalances:s,title:r.vendor.name,isLastNode:x===e.vendors.length-1,config:p,parentNodeIDs:[u]}));return o.children.push(...c),o}function Ka({title:e,balances:s,config:l,nodeId:a}){return{children:[],id:a??Ae.uniqueID("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:s,numOfBalances:s.length},config:l}}}function Ja({title:e,data:s,isLastNode:l,config:a,numOfBalances:p}){const u=Ae.uniqueID("total",[],e);return{children:[],id:u,isLastNode:l,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:p},config:a}}}const{common:Xt,expenseAutomation:{fluxAnalysis:Ya}}=t.appLocale.getLocalizedStrings(),Za=(e,s,l=!0)=>{const a=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,p=e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],u=Js.mapTimeframeBalancesToTreeNode({balances:p,config:s}),o=[],c=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(c===!0)o.push(Ka({title:`${Xt.loading}`,balances:p,config:s})),[...Array(10)].forEach((x,d)=>{o.push(qn.mapLoadingInProgressToTreeNode({title:`${d}+${Xt.loading}`,balances:p,config:s}))});else{if(o.push(u),["generalExpense","reimbursement"].forEach(d=>{const h=e.sections[d];if(h.vendors.length>0||h.fetchStatus.fetchState==="Completed"){const f=Ae.mapFluxBalancesByMonthToBalances(h.balancesByMonth);o.push(Ga({section:{sectionId:d,reportId:"flux_analysis_operating_expense",balances:f,vendors:h.vendors,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:e.currency},numOfBalances:a,title:Xa(d),isLastNode:!1,config:s}))}}),e.totalBalancesAndVariance){const d=e.totalBalancesAndVariance.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.totalBalancesAndVariance.balancesByMonth):[],h=Ja({title:Xt.texts.total,data:{balances:d,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:s,isLastNode:!0,numOfBalances:a});o.push(h)}r===!0&&[...Array(1)].forEach((d,h)=>{o.push(qn.mapLoadingInProgressToTreeNode({title:`${h}+${Xt.loading}`,balances:p,config:s}))})}return{config:s,headerNodes:l&&!c?[u]:[],contentNodes:o}},Xa=e=>Ya.sectionTitle[e];function Qa(e,s,l,a=!0){Object.assign(e.config,s);const p=ec(l),u=Js.mapTimeframeBalancesToTreeNode({balances:p,config:s});return{config:s,headerNodes:a?[u]:[],contentNodes:[u,...e.contentNodes.slice(1)]}}const ec=e=>e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],_n={contentPaddingLeft:new t.ResponsiveSized(t.sp[0],t.sp[0],t.sp[0]),contentPaddingRight:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8]),wrapperPadding:new t.ResponsiveSized(t.sp[3],t.sp[3],t.sp[8])},tc=i.div`
764
+ display: flex;
765
+ position: sticky;
766
+ width: 100%;
767
+ justify-content: center;
768
+ padding-top: ${e=>_n.wrapperPadding.valuePx(e.windowSize)};
769
+ padding-left: 20px;
770
+ background-color: ${e=>e.theme.colors.grey4};
771
+ `,nc=i.div`
772
+ width: 100%;
773
+ height: calc(100vh - ${t.Space.sp11});
774
+ `,sc=e=>{const{fluxView:s,handleRedirectToVendorDetailPage:l,updateOperatingExpensesIdsForReview:a,updateSectionIdsForReview:p,onSortOrderChanged:u,updateNodeCollapsableStatus:o,fetchReimbursementView:c,fetchGeneralExpenseView:r}=e,x=t.useWindowSizeContext(),d=n.useTheme(),[h,f]=m.useState(null),[y,j]=m.useState(null),[C,b]=m.useState(null),g=H.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,[w,_]=m.useState(!1),$=t.usePrevious(g),B=t.usePrevious(s.refreshStatus.fetchState),v=()=>{s.uiState.collapsableStatus.generalExpense?s.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&s.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(s.uiState.paginationInfoByGroup.generalExpense.pageToken):s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken):s.uiState.collapsableStatus.reimbursement&&s.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&s.sections.reimbursement.fetchStatus.fetchState==="Completed"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken)},S=()=>Object.keys(s.uiState.collapsableStatus).reduce((D,V)=>(D[V]=s.uiState.collapsableStatus[V],D),{}),I=m.useCallback(D=>{const V=!(s.uiState.collapsableStatus[D]??!0);o({...s.uiState.collapsableStatus,[D]:V})},[s.uiState.collapsableStatus,o]),A=m.useCallback((D,V)=>{let K=s.reviewOperatingExpensesIds;const U=[];let M=s.selectedSectionIds;const te=s.sections[D].vendors;U.push(...te.map(ne=>ne.fluxAnalysisEntityId));let ge=Ae.FLUX_MAX_SELECTION_LIMIT-K.length;V?(U.forEach(ne=>{!K.includes(ne)&&ge>0&&(K=[...K,ne],ge--)}),M=[...M,D]):(K=K.filter(ne=>!U.includes(ne)),M=M.filter(ne=>ne!==D)),a(K),p(M)},[s.reviewOperatingExpensesIds,s.selectedSectionIds,s.sections,a,p]),q=m.useCallback(D=>{const V=s.uiState.collapsableStatus[D]===!1;D==="generalExpense"&&!V&&s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken),I(D)},[s.uiState.collapsableStatus,s.sections.reimbursement.fetchStatus.fetchState,s.uiState.paginationInfoByGroup.reimbursement.pageToken,c,I]),T=s.sections.generalExpense.vendors.length+s.sections.reimbursement.vendors.length,J=D=>D<T;return m.useEffect(()=>{const D={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:s.uiState.sortOrder,sortKey:s.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:s.reviewOperatingExpensesIds,reviewSectionIds:s.selectedSectionIds,fetchStatus:s.fetchStatus.fetchState,setIsSortApplied:_,onSectionRowClick:q,updateNodeCollapsableStatus:I,updateOperatingExpensesIdsForReview:a,handleRedirectToVendorDetailPage:l,onSectionCheckboxClick:A,onSortOrderChanged:u}};if(h==null||!n.isEqual(y,s)){const V=Za(s,D,!0);j(s),f(V)}else{const V=Qa(h,D,s,!0);f(V)}},[s,y,l,A,q,u,I,a]),n.jsxRuntimeExports.jsx(tc,{windowSize:x,children:n.jsxRuntimeExports.jsx(nc,{children:h?n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(d.colors.grey4),rootNodes:h,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:_n.contentPaddingLeft.value(x),right:_n.contentPaddingRight.value(x)},nodeOpenStatus:S(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:J,itemCount:T,loadMoreItems:v},variableNodeHeightTree:{prevFetchState:$??"Not-Started",fetchState:s.fetchStatus.fetchState,isSortApplied:w,setIsSortApplied:_,reducedFetchState:H.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:B??"Not-Started",refreshFetchState:s.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:C,setHoveredParentId:b}}):null})})},oc="expenseAutomationFluxPage",{reports:{common:ic}}=t.appLocale.getLocalizedStrings(),rc=({selectedPeriod:e,fluxAnalysis:s,onFetchFluxViewList:l,markAsReview:a,onReloadPage:p,setCurrentFooterFormId:u,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:c,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:x,fetchFluxViewOnScroll:d,onFetchReimbursementView:h})=>{const{fetchStatus:f,reviewOperatingExpensesIds:y,uiState:j}=s,C=m.useRef(null),b=m.useRef(!1),g=n.useForm({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:ac(y)}),w=t.useWindowSizeContext();m.useEffect(()=>()=>{u("expenseAutomationPage")},[u]),m.useEffect(()=>{b.current&&C?.current?.scrollLeft!=null&&j.scrollPosition?.scrollLeft!==C.current.scrollLeft&&j.scrollPosition!=null&&r({scrollPosition:{scrollTop:j.scrollPosition?.scrollTop,scrollLeft:C.current.scrollLeft}})},[j.scrollPosition?.scrollLeft,C.current?.scrollLeft,j.scrollPosition,r]),m.useEffect(()=>{u(y.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[y,u]);const _=S=>{x(S)},$=S=>{d(e,S)},B=(S,I)=>{r({sortOrder:S,sortKey:I}),l(),h(e,null,!1)},v=()=>{const S=co(s.sections,y);a(y,S===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return n.jsxRuntimeExports.jsxs(lc,{children:[n.jsxRuntimeExports.jsx(dc,{onClick:p,children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(uc,{children:ic.failed})]});{const S=A=>{r({collapsableStatus:A})},I=A=>{h(e,A,!0)};return n.jsxRuntimeExports.jsx(n.FormProvider,{...g,children:n.jsxRuntimeExports.jsx("form",{id:t.uniqueName$1(oc),onSubmit:g.handleSubmit(v),style:{height:"100%",width:"100%"},children:n.jsxRuntimeExports.jsx(cc,{windowSize:w,children:n.jsxRuntimeExports.jsx(sc,{fluxView:s,handleRedirectToVendorDetailPage:_,onSortOrderChanged:B,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:S,fetchReimbursementView:I,updateSectionIdsForReview:c,fetchGeneralExpenseView:$,reportId:"flux_analysis_operating_expense"})})})})}},co=(e,s)=>{const a=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(u=>u.status==="Pending Review");let p;return a.forEach(u=>{s.includes(u.fluxAnalysisEntityId)&&(p=!0)}),p},ac=e=>({fluxAnalysisRowIds:e}),cc=i.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: ${t.Space.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
+ `,lc=i.div`
802
+ display: flex;
803
+ width: 100%;
804
+ height: 100vh;
805
+ flex-direction: column;
806
+ justify-content: center;
807
+ align-items: center;
808
+ `,dc=i.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: ${t.Space.sp5};
816
+ color: ${e=>e.theme.colors.grey1};
817
+ }
818
+ &:hover {
819
+ & svg {
820
+ color: ${e=>e.theme.colors.primary};
821
+ }
822
+ }
823
+ `,uc=i(t.SmallRegular)`
824
+ margin-top: ${t.Space.sp3};
825
+ color: ${e=>e.theme.colors.hero};
826
+ `,pc="expenseAutomationJEAccountSettingsPage",lo="vendorsAccountSection",mc=e=>`${e}_form`;function xc({accountSettings:e,currentFooterFormId:s,onSaveJeAccountSettingsClick:l,setIsJeAccountSettingsOpened:a,onJeAccountSettingsChange:p,setResetJeAccountSettingsForm:u,setCurrentFooterFormId:o}){const c=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,x=e.accruedExpensesRecommendations,d=m.useMemo(()=>t.getGroupedAccountOptions(e.prepaidExpensesAccountHierarchy,c,"Accounts"),[e.prepaidExpensesAccountHierarchy,c]),h=m.useMemo(()=>t.getGroupedAccountOptions(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),f=m.useMemo(()=>t.getGroupedAccountOptions(e.accruedExpensesAccountHierarchy,x,"Accounts"),[e.accruedExpensesAccountHierarchy,x]),y=m.useMemo(()=>gc(e,d,h,f),[e,d,h,f]),j=n.useForm({mode:"all",reValidateMode:"onBlur",defaultValues:y,values:y,resetOptions:{keepDefaultValues:!0}}),C=j.handleSubmit(g=>{l(g)}),b=async g=>{p(g)};return m.useEffect(()=>{const g=j.watch(w=>{w!=null&&n.defer(()=>b(w))});return()=>{g.unsubscribe()}}),m.useEffect(()=>(u(()=>j.reset),a(!0),()=>{o("expenseAutomationPage"),a(!1)}),[]),m.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:g,previousPrepaidExpensesAccount:w,selectedFixedAssetsAccountIds:_,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:B,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,S=t.compareCurrentAndPreviousList(g,w)||t.compareCurrentAndPreviousList(_,$)||t.compareCurrentAndPreviousList(B,v);S===!0&&s!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):S===!1&&s!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,s,o]),n.jsxRuntimeExports.jsx(hc,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...j,children:n.jsxRuntimeExports.jsx("form",{id:mc(pc),onSubmit:C,children:n.jsxRuntimeExports.jsx(Io.VendorsAccountsSection,{showTitle:!1,sectionId:lo,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 hc=i.div`
827
+ padding-top: ${t.Space.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
+ `,gc=(e,s,l,a)=>{const p=e.prepaidExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(d.accountId)),u=e.fixedAssetsAccountList.filter(d=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(d.accountId)),o=e.accruedExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(d.accountId)),c=p.map(d=>d.qboId).filter(d=>d!=null),r=u.map(d=>d.qboId).filter(d=>d!=null),x=o.map(d=>d.qboId).filter(d=>d!=null);return{[lo]:{prepaidExpensesAccount:{selectedOptions:c,allOptions:s},fixedAssetsAccount:{selectedOptions:r,allOptions:l},accruedExpensesAccount:{selectedOptions:x,allOptions:a}}}},{expenseAutomation:{jeSchedules:ht},common:{currency:Qt,review:jc,ignore:fc,strings:{hyphen:at},texts:en},dateFormat:yc,timeframe:{month:ds}}=t.appLocale.getLocalizedStrings(),Sc=({draft:e,ignoreStatus:s,ignoreRecommendedJeSchedule:l,jeScheduleClickHandler:a,onReviewClickHandler:p})=>n.jsxRuntimeExports.jsxs(zn,{onClick:u=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&a(u,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component",e.jeScheduleId),children:[n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:en.vendor}),n.jsxRuntimeExports.jsxs(ie,{style:{gap:t.sp[2]},children:[e.vendor.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:e.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:e.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.vendor.name??at})})]})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.baseTransaction.account.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.startDate?.format(yc.visual.MMMCommaYYYYFormat)??at})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ds.slice(0,-1):ds}`:at})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:en.totalAmount}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(e.baseTransaction.amount.amount,Qt.currencyCode,Qt.currencySymbol))??at}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(e.baseTransaction.amount.amount,Qt.currencyCode,Qt.currencySymbol))??at})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:en.category}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.account?.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:en.classText}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeDebit.accountingClass?.className??at})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(eo,{children:ht.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:ht.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:e.jeCredit.account?.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:e.jeCredit.account?.accountName??at})})})]}):null,e.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Hn,{children:[n.jsxRuntimeExports.jsx(t.Button,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&p(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component-review-button",e.jeScheduleId),label:jc,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:On}}),n.jsxRuntimeExports.jsx(t.Button,{"data-testid":t.generateDataTestId("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:fc,size:"small",reverseSpinnerColor:!1,loading:s?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&l(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:On}})]})]}),n.jsxRuntimeExports.jsxs(Wr,{children:[n.jsxRuntimeExports.jsx(Rc,{}),n.jsxRuntimeExports.jsx(Cc,{children:ht.aiAccountant}),n.jsxRuntimeExports.jsx(Ec,{children:ht.zeniGPTText})]})]}),Rc=i(t.SvgAiIcon)`
835
+ height: ${t.Space.sp3};
836
+ width: ${t.Space.sp3};
837
+ margin-right: ${t.Space.sp1};
838
+ path {
839
+ stroke-width: 2;
840
+ }
841
+ `,Cc=i(t.StandardBold)`
842
+ color: ${e=>e.theme.colors.brandColorSapphire};
843
+ `,Ec=i(t.StandardRegular)`
844
+ color: ${e=>e.theme.colors.primary};
845
+ `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:us}}},expenseAutomation:{jeSchedules:_e},common:{currency:et,retry:vc,strings:{hyphen:Pe,empty:ps},texts:Ot},dateFormat:ms}=t.appLocale.getLocalizedStrings(),{common:bc,timeframe:{month:xs}}=t.appLocale.getLocalizedStrings(),Ke="jeSchedulePage",hs=e=>`${e}_form`,Vn=(e,s)=>`${e}.${s}`,gs=Vn(Ke,"vendor"),js=Vn(Ke,"scheduleExpenseCategory"),fs=Vn(Ke,"accumulatedDepreciationCategory"),wc=({allAccountGroupedOptions:e,allAccountList:s,allClassGroupedOptions:l,allClassList:a,allDepAccountGroupedOptions:p,allDepAccountList:u,draft:o,localData:c,postStatus:r,uncategorizedAccounts:x,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:f,onFormDataChange:y,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:b,updatedVendor:g}=c,w={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"},_=m.useRef(),$=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:ys(c,e,l,p,s,a,u,h.entityAutoCompleteView),values:ys(c,e,l,p,s,a,u,h.entityAutoCompleteView)}),B={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:350})},I=(o?.scheduledJournalEntry.error??[]).every(E=>{const W=w[E];return!(c!=null&&W&&(W==="updatedAccumulatedDepreciationCategoryID"&&c.updatedAccumulatedDepreciationCategoryID==null||W==="updatedCategoryId"&&c.updatedCategoryId==null||W==="updatedVendor"&&(c.updatedVendor?.id==null||c.updatedVendor?.id===""||c.updatedVendor?.name==null||c.updatedVendor?.name==="")))}),A=async(E,W)=>{if(E!=null){const Y=W[Ke],{scheduledJournalEntryID:O,vendor:F}=Y;if(E.includes("vendor")){const G=F?.defaultOptions.map(Z=>Z.value);if(F?.selectedOption!=null&&G?.includes(F.selectedOption)!==!0){const Z=h.entityAutoCompleteView.vendor.find(fe=>fe.id===F.selectedOption);Z!=null&&$.setValue(`${Ke}.vendor.defaultOptions`,[{label:Z.name??bc.strings.empty,value:Z.id}])}else F?.selectedOption==null&&F?.defaultOptions.length!==0&&$.setValue(`${Ke}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(O,{...Y,vendor:F})}};m.useEffect(()=>{const E=$.watch((W,{name:Y})=>{Y!=null&&W!=null&&n.defer(()=>A(Y,W))});return()=>{E.unsubscribe()}}),m.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&_.current?.(t.getVendorOptions(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const q=$.handleSubmit(()=>{j(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),T=E=>s.filter(Y=>Y.qboId===E)[0]?.qboId,J=E=>u.filter(Y=>Y.qboId===E)[0]?.qboId,D=E=>[x.expense?.qboId,x.income?.qboId].includes(E),V=$.watch("jeSchedulePage.vendor"),K=(E,W)=>{d.onAutoCompleteInputChange?.(E,"vendor"),_.current=W},U=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,M=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,te=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,ge=o.vendor.name.split("(deleted)")[0]?.toString(),ne=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ps,Q=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ps,[ae,z]=m.useState(M===!0&&b==null),[L,ee]=m.useState(te===!0&&C==null),[N,P]=m.useState(U&&(g?.id==null||g?.id==""));return m.useEffect(()=>{ae===!1&&c.updatedCategoryId==null&&$.setFocus(js),L===!1&&c.updatedAccumulatedDepreciationCategoryID==null&&$.setFocus(fs),N===!1&&c.updatedVendor?.id==null&&$.setFocus(gs)},[ae,L,N,c,$]),n.jsxRuntimeExports.jsx(n.FormProvider,{...$,children:n.jsxRuntimeExports.jsx("form",{style:{width:"100%"},id:hs(`${Ke}_${o.jeScheduleId}`),onSubmit:q,children:n.jsxRuntimeExports.jsx(zn,{showBorder:I,onClick:E=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&f(E,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-schedule",`${Ke}_${o.jeScheduleId}`),children:n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[U===!0?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_ONE,padding:t.sp[0],justifyContent:"center"},showHoverEffect:U,forceHoverEffect:N===!1&&(c?.updatedVendor?.id==null||c?.updatedVendor?.id==""),children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Ot.vendor,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingVendor.replace("_deleted_vendor_",ge)}),children:n.jsxRuntimeExports.jsx(mn,{})})]}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3],marginLeft:-2},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:N===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),P(!1)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-vendor-button",`${Ke}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:t.sp[2],color:t.Colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(pn,{}),us]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:gs,placeholder:us,valueToId:E=>E,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:K})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp0} ${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:Ot.vendor}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o.vendor.logo?.href!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatar,{photoUrl:o.vendor.logo.href,styles:{width:t.sp[4],height:t.sp[4]}}):n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:o.vendor.name}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.vendor.name!==null?n.jsxRuntimeExports.jsx(Fe,{children:o.vendor.name}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.vendor.name??Pe})})]})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.scheduleCategory}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.baseTransaction.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.baseTransaction.account.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.startDate?.format(ms.visual.MMMCommaYYYYFormat)??Pe})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?xs.slice(0,-1):xs}`:Pe})})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:Ot.totalAmount}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(o.baseTransaction.amount.amount,et.currencyCode,et.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o.baseTransaction.amount.amount,et.currencyCode,et.currencySymbol))??Pe})})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[M===!0?n.jsxRuntimeExports.jsx(X,{showHoverEffect:M===!0,forceHoverEffect:c?.updatedCategoryId==null&&ae===!1,style:{padding:"unset",justifyContent:"center",width:me.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Ot.category,M===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingCategory.replace("_deleted_category_",ne)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:M===!0?-2:0},children:M===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:ae===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),z(!1)},style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:t.Colors.brandColorGoldDark,cursor:"pointer"},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-category-button",`${Ke}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),_e.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,name:js,placeholder:_e.addCategory,valueToId:E=>T(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:D,customStyleConfig:B})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Ot.category}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeDebit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Ot.classText}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeDebit.accountingClass.className}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeDebit.accountingClass?.className??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{className:"test",children:n.jsxRuntimeExports.jsx(de,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(eo,{children:_e.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:te===!0?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:te,forceHoverEffect:c.updatedAccumulatedDepreciationCategoryID==null&&L===!1,children:n.jsxRuntimeExports.jsxs(tt,{className:"hover-background",style:{padding:t.sp[2],paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[_e.scheduleHeaders.accumulatedCategory,te===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-end",title:n.jsxRuntimeExports.jsx(sn,{children:_e.tooltipText.missingDepCategory.replace("_deleted_dep_category_",Q)}),children:n.jsxRuntimeExports.jsx(mn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:te===!0?-2:0},children:te===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:L===!0?n.jsxRuntimeExports.jsxs(de,{onClick:E=>{E.stopPropagation(),ee(!1)},style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:t.Colors.brandColorGoldDark,cursor:"pointer"},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-depreciation-category-button",`${Ke}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(pn,{}),_e.addDepCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:fs,placeholder:_e.addDepCategory,valueToId:E=>J(E),defaultValue:{allOptions:p},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:v,disableCurrentOption:D})}):n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,padding:`${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp2} ${t.Space.sp3}`,justifyContent:"center"},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:_e.scheduleHeaders.accumulatedCategory}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?n.jsxRuntimeExports.jsx(Fe,{children:o.jeCredit.account.accountName}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})]})}):null,o.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]}),n.jsxRuntimeExports.jsxs(zr,{children:[n.jsxRuntimeExports.jsx(X,{style:{padding:"unset",width:me.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(Hr,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.jePostingDate}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(ms.visual.MMMDCommaYYFormat)??Pe})})]})}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.balance}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",style:{width:"100%"},title:n.jsxRuntimeExports.jsx(Fe,{children:t.amountToString("0,0.[00]",H.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,et.currencyCode,et.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,et.currencyCode,et.currencySymbol))??Pe})})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.months}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsxs(de,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR}}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:_e.scheduleHeaders.amountForMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(de,{className:"highlight",children:t.amountToString("0,0.[00]",H.toAmount(o.scheduledJournalEntry.amount?.amount??0,et.currencyCode,et.currencySymbol))??Pe})})]})]})]}),n.jsxRuntimeExports.jsx(Hn,{children:n.jsxRuntimeExports.jsx(t.Button,{form:hs(`${Ke}_${o.jeScheduleId}`),label:vc,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:On}})})]})})})})},ys=(e,s,l,a,p,u,o,c)=>{const r=e.updatedCategoryId,x=e.updatedVendor,d=x!=null?c.vendor.find(b=>b.zeniId===x.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,y=r!=null?p.find(b=>b.accountId===r):void 0,j=h!=null?o.find(b=>b.accountId===h):void 0,C=f!=null?u.find(b=>b.classId===f):void 0;return{[Ke]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:s},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:a},vendor:{selectedOption:d?.id??x?.id,defaultOptions:t.getDefaultVendorOptions$1(c,d??x)},scheduleClass:{selectedOption:C?.classId,allOptions:l}}}},pn=i(t.SvgAddRound)`
846
+ width: ${t.Space.sp3};
847
+ height: ${t.Space.sp3};
848
+ `,mn=i(t.SvgAlertRound)`
849
+ width: 12px;
850
+ height: 12px;
851
+ color: ${t.Colors.important};
852
+ `;function uo(){return n.jsxRuntimeExports.jsx(Ys,{children:n.jsxRuntimeExports.jsxs(Zs,{children:[n.jsxRuntimeExports.jsxs(Xs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(Ss,{})]}),n.jsxRuntimeExports.jsxs(Qs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(Ss,{})]})]})})}const Ss=()=>n.jsxRuntimeExports.jsx(zn,{style:{minWidth:1088},children:n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(Wn,{children:[n.jsxRuntimeExports.jsxs(Nn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[10],height:14})}),n.jsxRuntimeExports.jsxs(ie,{style:{gap:t.sp[2]},children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{height:t.sp[4],width:t.sp[4]}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:t.sp[10]})]})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:101,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:203})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:71})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:107,height:14})}),n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:68})]}),n.jsxRuntimeExports.jsxs(X,{style:{alignItems:"flex-end",width:me.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:73,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:49})})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:49,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:158})})]}),n.jsxRuntimeExports.jsxs(X,{children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:88})})]}),n.jsxRuntimeExports.jsxs(X,{style:{width:me.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:n.jsxRuntimeExports.jsx(Le,{width:36,height:14})}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(Le,{height:t.sp[4],width:100})})]}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FOUR,paddingLeft:t.sp[3]}}),n.jsxRuntimeExports.jsx(X,{style:{width:me.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Hn,{children:[n.jsxRuntimeExports.jsx(Le,{height:29,width:53,style:{margin:`${t.Space.sp0} ${t.Space.sp3}`}}),n.jsxRuntimeExports.jsx(Le,{height:29,width:53,style:{margin:`${t.Space.sp0} ${t.Space.sp3}`}})]})]})}),Le=i(t.RectangularContentLoader)`
853
+ border-radius: ${t.Space.sp1};
854
+ `,{common:{create:Ic,resolve:Tc}}=t.appLocale.getLocalizedStrings();function kc({jeSchedules:e,vendorSearchAutoCompleteData:s,handleJeScheduleClick:l,onJESchedulesFormDataChange:a,onPostJESchedule:p,ignoreRecommendedJeSchedule:u,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:c}){const r=e.draftSchedules,x=e.jeScheduleLocalDataById,d=e.postStatusById,h=e.ignoreStatusById,f=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:j,allClassList:C,allDepreciationAccountList:b}=e,g=t.getGroupedAccountOptions(e.accountListNestedAccountHierarchy),w=t.getGroupedAccountOptions(e.allDepreciationAccountListNestedAccountHierarchy),_=t.getGroupedClassOptions(e.classListNestedAccountHierarchy),$=(v,S,I)=>{l(v,S,I)},B=(v,S,I,A)=>{let T=v.target;for(;T;){if(T.classList.contains("item-value-container")||T.classList.contains("hover-background")||T.classList.contains("auto-complete-single-select-field__input")||T.classList.contains("auto-complete-single-select-field__option")||T.classList.contains("grouped-single-select-field__input")||T.classList.contains("grouped-single-select-field__menu"))return;T=T.parentElement}l(S,I,A)};return m.useEffect(()=>{if(f.length!==0){for(const v in x)if(Object.prototype.hasOwnProperty.call(x,v)){const{updatedAccumulatedDepreciationCategoryID:S,updatedCategoryId:I,updatedVendor:A}=x[v];if(S!=null||I!=null||A!=null&&A?.id!==""){c("expenseAutomationJESchedulePage");break}else c("expenseAutomationPage")}}else f.length===0&&c("expenseAutomationPage")}),m.useEffect(()=>()=>{c("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(uo,{}):r.length!==0||f.length!==0?n.jsxRuntimeExports.jsx(Ys,{children:n.jsxRuntimeExports.jsxs(Zs,{children:[r.length>0?n.jsxRuntimeExports.jsxs(Xs,{children:[n.jsxRuntimeExports.jsxs(Cs,{children:[Ic,n.jsxRuntimeExports.jsx(Es,{isCircular:r.length<10,children:n.jsxRuntimeExports.jsx(vs,{children:r.length})})]}),n.jsxRuntimeExports.jsx(Rs,{"data-testid":t.generateDataTestId("expense-automation","draft-je-schedules"),children:r.map((v,S)=>n.jsxRuntimeExports.jsx(Sc,{ignoreStatus:h[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:u,onReviewClickHandler:$,jeScheduleClickHandler:B,draft:v},`${S}_${v.jeScheduleId}`))})]}):null,f.length>0?n.jsxRuntimeExports.jsxs(Qs,{children:[n.jsxRuntimeExports.jsxs(Cs,{children:[Tc,n.jsxRuntimeExports.jsx(Es,{isCircular:f.length<10,children:n.jsxRuntimeExports.jsx(vs,{children:f.length})})]}),n.jsxRuntimeExports.jsx(Rs,{"data-testid":t.generateDataTestId("expense-automation","resolve-je-schedules"),children:f.map((v,S)=>x[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:n.jsxRuntimeExports.jsx(wc,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:s,jeScheduleClickHandler:B,onPostJESchedule:p,uncategorizedAccounts:y,allAccountList:j,allAccountGroupedOptions:g,allClassGroupedOptions:_,allClassList:C,allDepAccountGroupedOptions:w,allDepAccountList:b,draft:v,postStatus:d[v.scheduledJournalEntry.scheduledJournalEntryID],localData:x[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:a},`${S}_${v.jeScheduleTransactionKey}`))})]}):null]})}):null}const Rs=i.div`
855
+ display: flex;
856
+ flex-direction: column;
857
+ gap: ${t.Space.sp4};
858
+ min-width: 1088px;
859
+ `,Cs=i(t.LargeSemiBold)`
860
+ color: ${e=>e.theme.colors.primary};
861
+ padding: ${t.Space.sp2} ${t.Space.sp0};
862
+ display: flex;
863
+ align-items: center;
864
+ gap: ${t.Space.sp1};
865
+ `,Es=i.div`
866
+ border-radius: ${t.Space.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?Be.css`
872
+ height: ${t.Space.sp3};
873
+ width: ${t.Space.sp3};
874
+ padding: ${t.Space.sp0};
875
+ `:Be.css`
876
+ height: 18px;
877
+ padding: ${t.customCountCapsulePadding.padding};
878
+ `}
879
+ `,vs=i(t.ExtraSmallMediumSp)`
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 $c({expenseAutomationViewSelector:e,currentFooterFormId:s,setResetJeAccountSettingsForm:l,vendorSearchAutoCompleteData:a,onJESchedulesFormDataChange:p,onPostJESchedule:u,handleJeScheduleClick:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:x,vendorSearchAutoCompleteActions:d,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:f}){const{jeSchedules:y}=e;return y.fetchState==="In-Progress"||y.accountSettingsView.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(uo,{}):y.accountSettingsView.fetchState==="Completed"&&y.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&y.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?n.jsxRuntimeExports.jsx(xc,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:l,currentFooterFormId:s,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,accountSettings:y.accountSettingsView,setCurrentFooterFormId:h}):y.fetchState==="Completed"&&y.draftSchedules.length===0&&y.resolveSchedules.length===0?n.jsxRuntimeExports.jsx(dt,{tab:e.currentSelectedView,title:Ne(e.currentSelectedView).allDoneText.title,subTitle:Ne(e.currentSelectedView).allDoneText.subTitle}):y.fetchState==="Completed"?n.jsxRuntimeExports.jsx(kc,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:x,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:p,onPostJESchedule:u,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:a}):null}const Lc=72,po=50,Ac=1,Oc=["receipts"],bs=e=>H.stringToUnionStrict(e,Oc),{common:{texts:{vendor:Dc,amount:_c,receipts:Bc,category:Mc,classText:Nc,date:Pc}}}=t.appLocale.getLocalizedStrings(),Fc={key:"vendor",value:Dc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},zc={key:"category",value:Mc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Hc={key:"class",value:Nc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Wc={key:"date",value:Pc,sortOrder:"descending",width:new t.ResponsiveSized(11,11)},Vc={key:"receipts",value:Bc,sortOrder:"descending",width:new t.ResponsiveSized(6,6)},qc={key:"amount",value:_c,sortOrder:"ascending",width:new t.ResponsiveSized(10,10)},nt=[Fc,zc,Hc,Wc,Vc,qc],xn={sortKey:"date",sortOrder:"descending"},ws={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4])},mo=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[p,u]=m.useState(nt);m.useEffect(()=>{const r=[...p];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";u(r)},[e.sortKey,e.sortOrder]);const o=(r,x)=>{let d=x;e.sortKey===r&&(d=x==="ascending"?"descending":"ascending"),l(r,d)},c=r=>{bs(r.key)==null&&o(H.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(Uc,{windowSize:a,children:p.map((r,x)=>{const d=s!=null||bs(r.key)!=null;return n.jsxRuntimeExports.jsxs(Gc,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:d,windowSize:a,isLastItem:x===p.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[n.jsxRuntimeExports.jsxs(Xc,{onClick:()=>d?null:c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(Qc,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(Jc,{sortConfig:e,headerData:r,children:n.jsxRuntimeExports.jsx(Zc,{})})]}),d?null:n.jsxRuntimeExports.jsx(Yc,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==xn.sortKey,children:n.jsxRuntimeExports.jsx(Kc,{onClick:()=>{d||o(xn.sortKey,xn.sortOrder)},"data-testid":t.generateDataTestId("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},Uc=i.div`
888
+ top: ${t.Space.sp0};
889
+ left: ${t.Space.sp0};
890
+ height: ${po}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=>ws.containerPaddingLeftRight.valuePx(e.windowSize)};
899
+ padding-right: ${e=>ws.containerPaddingLeftRight.valuePx(e.windowSize)};
900
+ `,Gc=i.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: ${t.Space.sp0};
905
+ left: ${t.Space.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
+ `,Kc=i(t.SvgCloseRound)`
914
+ width: ${t.Space.sp2};
915
+ height: ${t.Space.sp2};
916
+ cursor: pointer;
917
+ `,Jc=i.div`
918
+ display: flex;
919
+ align-items: center;
920
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
+ `,Yc=i.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
+ `,Zc=i(t.SvgArrowTailTop)`
929
+ width: ${t.Space.sp2};
930
+ height: ${t.Space.sp2};
931
+ `,Xc=i.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
+ `,Qc=i(t.ExtraSmallRegular)`
939
+ display: flex;
940
+ `,{common:{strings:{underscore:xo,hyphen:hn,empty:Is},documents:{singleFileUploadSizeErrorMessage:el,multipleFileUploadSizeErrorMessage:tl},snackBar:{missing_receipts_attachment:{failed:nl}},tooltips:{addMissingReceipt:sl}},dateFormat:ol}=t.appLocale.getLocalizedStrings(),tn={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[2],t.sp[3])},il=({transaction:e,uploadReceiptsFetchState:s,receiptUploadEndpoint:l,authParams:a,selectedPeriod:p,onUploadReceiptComplete:u,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:c,onUploadReceiptAttachment:r})=>{const x=t.useWindowSizeContext(),d=m.useRef(null),h=m.useCallback(async(j,C,b,g,w)=>{c(e.id,"In-Progress"),await Ht.uploadAttachment(j,C,b,g,w).then(({uploadResponse:_,errorMessage:$})=>{_!=null?_.transaction.attachments!=null&&(r(_.transaction),setTimeout(()=>u(_.transaction,p),2e3)):c(e.id,"Error",{code:500,message:nl},$)}).catch(_=>{c(e.id,"Error",_)})},[e.id,p,r,u,c]),f=m.useCallback(j=>{if(j.target.files!=null){const C=j.target.files,b=[],g=[];for(let w=0;w<C.length;w++)b.push(C[w].name),g.push(C[w]);h(l,a,C[0],C[0].name,{id:e.id,type:e.type})}},[a,h,l,e.id,e.type]),y=m.useCallback(()=>{d.current?.click()},[d]);return n.jsxRuntimeExports.jsx(ho,{windowSize:x,onClick:()=>o(e.id,e.type),"data-testid":t.generateDataTestId("missing-receipts-list-row",e.id),children:nt.map((j,C)=>{const b=`${e.id}${xo}${j.key}`;switch(j.key){case"vendor":default:return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsxs(on,{children:[n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:e.vendorId!=null?e.logo?.toString()??Is:Is,styles:{width:t.Space.sp4,height:t.Space.sp4,borderRadius:t.Space.sp0},placeholder:{width:t.sp[4],height:t.sp[4]},fallbackAvatar:n.jsxRuntimeExports.jsx(pl,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:e.vendorName??e.description,size:t.Space.sp4})})}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.vendorName??e.description,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})]})})},b);case"category":case"class":{const g=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:hn,w=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:hn,_=j.key==="category"?g:w;return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(on,{children:_!==hn?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:_,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}}):n.jsxRuntimeExports.jsx(ul,{children:_})})})},b)}case"date":return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(on,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.date.format(ol.visual.MMMDCommaYYYYformat),itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})})},b);case"receipts":return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,style:{justifyContent:"center"},children:s.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",style:{display:"flex"},start:!0}):s.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?n.jsxRuntimeExports.jsx(To.SuccessAnimation,{shouldDisplay:!0,width:t.sp[4],height:t.sp[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(dl,{onClick:g=>{g.stopPropagation()},children:n.jsxRuntimeExports.jsx(t.FileInputElement,{"data-testid":t.generateDataTestId("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:d,sizeLimit:t.SizeLimit32MB,multiple:!1,acceptableTypes:[...H.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:f,onFileSizeError:(g,w)=>{g&&c(e.id,"Error",{code:500,message:w===!0?el.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0)):tl.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0))})}})}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"bottom",title:sl,enterDelay:600,children:n.jsxRuntimeExports.jsx(ll,{onClick:g=>{g.stopPropagation(),y()}})})]})})},b);case"amount":{const g=t.amountToString("0,0.[00]",e.amount);return n.jsxRuntimeExports.jsx(wt,{windowSize:x,wrapperWidth:j.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:C===nt.length-1,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.amount.amount<0?`-${g}`:g,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})},b)}}})})},rl=()=>{const e=t.useWindowSizeContext(),s=m.useRef(null),[l,a]=m.useState(0);return m.useLayoutEffect(()=>{s.current&&a(s.current.offsetWidth)},[e]),n.jsxRuntimeExports.jsx(ho,{windowSize:e,ref:s,children:nt.map((p,u)=>{const o=`${u}${xo}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(wt,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:u===nt.length-1,children:n.jsxRuntimeExports.jsxs(on,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(wt,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:u===nt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},ho=i.div`
941
+ display: flex;
942
+ background-color: ${e=>e.theme.colors.grey5};
943
+ padding-left: ${e=>tn.containerPaddingLeftRight.valuePx(e.windowSize)};
944
+ padding-right: ${e=>tn.containerPaddingLeftRight.valuePx(e.windowSize)};
945
+ padding-top: ${e=>tn.containerPaddingTopBottom.valuePx(e.windowSize)};
946
+ padding-bottom: ${e=>tn.containerPaddingTopBottom.valuePx(e.windowSize)};
947
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
948
+ box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
949
+ border-radius: ${t.Space.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
+ `,wt=i.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: ${t.Space.sp0};
968
+ }
969
+ `,al=Be.css`
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
+ `,cl=Be.css`
978
+ height: ${t.Space.sp3};
979
+ width: ${t.Space.sp3};
980
+ cursor: pointer;
981
+ `,ll=i(t.SvgAddRound)`
982
+ ${cl};
983
+ color: ${e=>e.theme.colors.brandColorGoldDark};
984
+ &:hover {
985
+ color: ${e=>e.theme.colors.primary};
986
+ }
987
+ `,It=i(t.StandardRegular)`
988
+ overflow: hidden;
989
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
990
+ display: flex;
991
+ width: 100%;
992
+ align-items: center;
993
+ `,dl=i.div``,on=i.div`
994
+ display: flex;
995
+ flex-direction: row;
996
+ column-gap: ${t.Space.sp2};
997
+ align-items: center;
998
+ `,ul=i(t.StandardRegular)`
999
+ ${al};
1000
+ color: inherit;
1001
+ `,pl=i.div`
1002
+ display: flex;
1003
+ `,ml=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const p=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(xl,{windowSize:p,children:[n.jsxRuntimeExports.jsx(mo,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a}),n.jsxRuntimeExports.jsx(hl,{windowSize:p,children:[...Array(3)].map((u,o)=>n.jsxRuntimeExports.jsx(rl,{},o))})]})},xl=i.div`
1004
+ display: block;
1005
+ min-height: 100%;
1006
+ flex-direction: column;
1007
+ width: 100%;
1008
+ `,hl=i.div`
1009
+ display: flex;
1010
+ min-height: 100%;
1011
+ flex-direction: column;
1012
+ row-gap: ${t.Space.sp3};
1013
+ `,{common:gl}=t.appLocale.getLocalizedStrings(),jl=({missingReceipts:e,receiptUploadEndpoint:s,authParams:l,selectedPeriod:a,isDisabled:p,onMissingReceiptsRowClick:u,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:x,onFetchMissingReceiptsList:d})=>{const h=t.useWindowSizeContext(),{fetchState:f,uiState:y,transactions:j}=e,C=m.useRef(null),[b,g]=m.useState(!1);m.useEffect(()=>{C.current?.resetAfterIndex(0)},[h,C]),m.useEffect(()=>{f==="Completed"&&g(!1)},[f]);const w=$=>Lc,_=($,B)=>{x({sortOrder:B,sortKey:$})};return n.jsxRuntimeExports.jsxs(Sl,{children:[n.jsxRuntimeExports.jsx(Rl,{windowSize:h,children:f==="Error"?n.jsxRuntimeExports.jsxs(El,{windowSize:h,children:[n.jsxRuntimeExports.jsx(vl,{onClick:()=>d(),"data-testid":t.generateDataTestId("missing-receipts-list-table-reload-button"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(bl,{children:gl.reloadPage.label})]}):f==="Completed"&&j.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:Ne("missing_receipts").allDoneText.title,subTitle:Ne("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&j.length===0?n.jsxRuntimeExports.jsx(ml,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},fetchState:f,onColumnSortConfigChanged:_}):n.jsxRuntimeExports.jsx(Cl,{windowSize:h,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:$,width:B})=>n.jsxRuntimeExports.jsxs(Il,{style:{height:$,width:B},children:[n.jsxRuntimeExports.jsx(yl,{children:n.jsxRuntimeExports.jsx(mo,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},isDisabled:f==="In-Progress"?"readonly":p,onColumnSortConfigChanged:_})}),n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:C,height:$-po,itemCount:j.length,itemData:{missingReceipts:e,receiptUploadEndpoint:s,authParams:l,isDisabled:p,selectedPeriod:a,onMissingReceiptsRowClick:u,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r},itemSize:w,width:B,style:{willChange:"auto"},overscanCount:Ac,onScroll:({scrollOffset:v})=>{x({scrollPosition:{scrollTop:v}})},initialScrollOffset:y.scrollPosition?.scrollTop,children:fl})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:b===!0,children:n.jsxRuntimeExports.jsx(Tl,{children:n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",start:!0})})})]})},fl=({index:e,style:s,data:l})=>{const{missingReceipts:a,receiptUploadEndpoint:p,authParams:u,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,selectedPeriod:d}=l,h=a.transactions[e];return n.jsxRuntimeExports.jsx(wl,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(il,{transaction:h,receiptUploadEndpoint:p,authParams:u,selectedPeriod:d,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,uploadReceiptsFetchState:a.uploadReceiptStatusById[h.id]??{fetchState:"Not-Started",error:void 0}},h.id)})},yl=i.div`
1014
+ width: auto;
1015
+ `,Sl=i.div`
1016
+ width: 100%;
1017
+ height: 100%;
1018
+ background-color: ${e=>e.theme.colors.grey4};
1019
+ `,Rl=i.div`
1020
+ height: 100%;
1021
+ `,Cl=i.div`
1022
+ height: 100%;
1023
+ display: flex;
1024
+ flex-direction: column;
1025
+ max-width: 99.9%;
1026
+ `,El=i.div`
1027
+ display: flex;
1028
+ width: 100%;
1029
+ height: ${e=>`calc(100% - ${t.navBarHeight.valuePx(e.windowSize)})`};
1030
+ flex-direction: column;
1031
+ justify-content: center;
1032
+ align-items: center;
1033
+ `,vl=i.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: ${t.Space.sp5};
1041
+ color: ${e=>e.theme.colors.grey1};
1042
+ }
1043
+ &:hover {
1044
+ & svg {
1045
+ color: ${e=>e.theme.colors.primary};
1046
+ }
1047
+ }
1048
+ `,bl=i(t.SmallRegularSp)`
1049
+ margin-top: ${t.Space.sp3};
1050
+ color: ${e=>e.theme.colors.hero};
1051
+ `,wl=i.div`
1052
+ top: ${t.Space.sp0};
1053
+ left: ${t.Space.sp0};
1054
+ padding-bottom: ${t.Space.sp3};
1055
+ box-sizing: border-box;
1056
+ `,Il=i.div`
1057
+ position: relative;
1058
+ `,Tl=i.div`
1059
+ display: flex;
1060
+ width: 100%;
1061
+ height: ${t.Space.sp3};
1062
+ flex-direction: row;
1063
+ justify-content: center;
1064
+ align-items: center;
1065
+ margin-top: ${t.Space.sp3};
1066
+ margin-bottom: ${t.Space.sp3};
1067
+ `,kl=[...H.SUPPORTED_ATTACHMENT_FILE_TYPES],$l=7*1024*100,Ll=i.div`
1068
+ width: ${je.FORM_MINIMUM_WIDTH}px;
1069
+ `,gn=i.div`
1070
+ width: ${e=>`${e.availableWidth}px`};
1071
+ min-width: auto;
1072
+ position: relative;
1073
+ height: fit-content;
1074
+ min-height: ${t.Space.sp12};
1075
+ `,Al=i.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: ${t.Space.sp2};
1087
+
1088
+ // Disable select for Zeni Logo and File Separator
1089
+ #${je.MONTH_END_EMAIL_BODY_SECTION} img[alt*="company logo"],
1090
+ .attachFileSeparator {
1091
+ user-select: none;
1092
+ }
1093
+ `,Ol=i.div`
1094
+ display: flex;
1095
+ column-gap: ${t.Space.sp2};
1096
+ align-items: flex-end;
1097
+ margin-top: ${t.Space.sp2};
1098
+ margin-bottom: ${t.Space.sp3};
1099
+ `,Dl=i.div`
1100
+ position: relative;
1101
+ `,Ts=i(t.StandardRegular)`
1102
+ position: relative;
1103
+ `,_l=i.div`
1104
+ background-color: ${e=>e.theme.colors.grey5};
1105
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
1106
+ border-radius: ${t.Space.sp2};
1107
+ box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
1108
+ padding: ${t.Space.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: ${t.sp[1]};
1119
+ }
1120
+ `,Bl=i.div`
1121
+ user-select: text;
1122
+ `,Ml=i.div`
1123
+ position: absolute;
1124
+ top: ${t.Space.sp4}; // Attachment icon position from the top
1125
+ right: -${t.Space.sp3}; // To show attachment icon on the edge
1126
+ `,Nl=i.div`
1127
+ margin-top: ${t.Space.sp2};
1128
+ display: flex;
1129
+ flex-direction: column;
1130
+ row-gap: ${t.Space.sp3};
1131
+ margin-bottom: ${t.Space.sp4};
1132
+ position: relative;
1133
+
1134
+ .toolbar {
1135
+ user-select: none;
1136
+ }
1137
+ `,Pl=i(t.SmallRegular)`
1138
+ color: ${e=>e.theme.colors.grey1};
1139
+ user-select: none;
1140
+ `,Fl=i(t.StandardBold)`
1141
+ color: ${e=>e.theme.colors.primary};
1142
+ `,zl=i.div`
1143
+ flex-direction: column;
1144
+ row-gap: ${t.Space.sp3};
1145
+ display: flex;
1146
+ `,Hl=Be.keyframes`
1147
+ 0% {
1148
+ transform: translateX(100%);
1149
+ }
1150
+ 100% {
1151
+ transform: translateX(0)
1152
+ }
1153
+ `,Wl=Be.keyframes`
1154
+ 0% {
1155
+ transform: translateX(0)
1156
+ }
1157
+ 100% {
1158
+ transform: translateX(100%)
1159
+ }
1160
+ `,Vl=i.div`
1161
+ animation: ${e=>e.allThreadsSectionOpen?Hl:Wl}
1162
+ 0.5s forwards;
1163
+ height: 100vh;
1164
+ position: fixed;
1165
+ right: ${t.Space.sp0};
1166
+ top: ${t.Space.sp0};
1167
+ z-index: ${t.sp[2]};
1168
+ min-width: ${je.COMMENTS_SECTION_MINIMUM_WIDTH}px;
1169
+ max-width: ${je.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
1170
+ `,rn="monthEndReportFormSection",ks="monthEndReportPage",Ve=t.appLocale.getLocalizedStrings();function ql({companyId:e,enableZeniGPTFeature:s,monthEndReportView:l,previewMode:a,customerRequestData:p,allThreadsSectionOpen:u,filterMetaData:o,newThreadMetadata:c,isZeniUser:r,selectedPeriod:x,improveUsingZeniGPTClick:d,onRemoveFileAttachment:h,onUpdateFileAttachment:f,onCloseAllThreadsSection:y,previewMonthEndReport:j,saveMonthEndReport:C,onEditClick:b,onOpenFileAttachmentSnackBar:g,onClickCustomerRequest:w,sendMonthEndReport:_}){const $=n.useTheme(),[B,v]=m.useState(),[S,I]=m.useState(0),[A,q]=m.useState(0),T=m.useRef(),J=m.useRef(null),D=m.useRef(null),{html:V,subject:K,improveUsingZeniGPTStatus:U}=l,[M,te]=m.useState(),[ge,ne]=m.useState(!1),[Q,ae]=m.useState(!1),z=m.useRef(null),L=m.useRef(null),ee=je.useDelayUnmount(u,250),N=l.fetchState==="Not-Started"||l.fetchState==="In-Progress"||l.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||l.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:P,sortedThreads:E,threadsPositions:W,observer:Y,unresolvedThreadsMap:O,handleRemoveFloatingThread:F}=je.useFloatingThreads(o,z,!a,N,r),G=m.useCallback(()=>{u?L.current!=null&&q(Math.min((L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-t.sp[4])/2,L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-je.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):L.current!=null&&I(Math.min((L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-t.sp[4])/2,L.current.offsetWidth-je.FORM_MINIMUM_WIDTH-je.COMMENTS_SECTION_MINIMUM_WIDTH-t.sp[4]))},[u]);m.useEffect(()=>{G()},[u,G]),m.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]);const Z=r?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:fe,addThread:Ee,setOpenThread:ce}=m.useContext(Z),R=je.useHandleSelection(je.MONTH_END_REPORT_CANVAS,!1,!a),re=z.current?.getBoundingClientRect(),ye=R!=null&&R.coords&&re?{left:R.coords.left-re.left,top:R.coords.top-re.top}:void 0,Oe=m.useCallback(()=>{const se=window.getSelection()?.getRangeAt(0),ue=je.getSelectionData();if(!se||ue==null)return;const Re={...c,...ue,startPath:ue.startPath.join(),endPath:ue.endPath.join()},he=`${n.nanoid()}${t.NEW_THREAD_SUFFIX}`,De=`cockpit_${e}`;Ee(he,{type:"thread",id:he,roomId:De,createdAt:new Date,comments:[],metadata:Re,updatedAt:new Date,resolved:!1}),ce(he)},[Ee,e,c,ce]);m.useEffect(()=>{fe!=null&&u&&y()},[u,fe,y]);const we=U.fetchState==="In-Progress",Ie=n.useForm({mode:"all",defaultValues:$s(l),values:$s(l)}),xe=Ie.handleSubmit(se=>{const{recipientEmailList:ue,subject:Re}=se[rn];if(a===!0)_?.(M?.id);else{const he=B?.replace(t.EMPTY_HTML_CHECKER,Ve.common.strings.empty);ue!=null&&Re!=null&&j(ue,Re,M?.id,he!=null&&he.length>0?B:void 0)}}),Ue=()=>{J.current!=null&&J.current.click()},ze=()=>{M!==void 0&&M!=null&&(h([M.id]),te(void 0),ne(!1))},He=se=>{const ue=se.target.files?se.target.files[0]:null;if(ue)if(!H.toSupportedAttachmentFileType(ue.type)||Q)console.warn("Please select a valid file.");else{const Re=new FileReader;Re.onload=function(he){const De=he.target?.result;if(typeof De=="string"){const mt={data:De.split(",")[1],name:ue.name,id:H.getAttachmentFileIdByFileName(e,ue.name)};te(mt),ne(!0),f([mt])}},Re.readAsDataURL(ue)}},le=()=>{D.current&&D.current.scrollIntoView({behavior:"smooth"})},Me=()=>{const se=Ie.getValues(),{recipientEmailList:ue,subject:Re}=se[rn];ue!=null&&Re!=null&&C(ue,Re,M?.id,B)};m.useEffect(()=>{v(l.zeniRequestsHtml)},[l.zeniRequestsHtml]),m.useEffect(()=>{T.current=M},[M]),m.useEffect(()=>{te(H.mapAttachmentFileToAttachmentFilePayload(l.attachmentFile)),ne(!1)},[l.attachmentFile]),m.useEffect(()=>{Q&&g()},[Q,g]);const St=H.zeniDate(`${x.year}-${x.month}-01`).format(Ve.dateFormat.visual.MMMMFormat),Ye=V!=null?V.split(je.MONTH_END_EDITOR_PLACEHOLDER):[],ot=l.concatenatedHtml,ut=()=>l.lastDraftSavedDate!=null&&a===!1?n.jsxRuntimeExports.jsx(je.UserWithTimestamp,{time:l.lastDraftSavedDate,user:l.reportLastSavedByUser,timeStampLabel:Ve.cockpit.monthEndReport.timeStampLabel}):null,Rt=()=>r===!0?ee?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Vl,{allThreadsSectionOpen:u,children:n.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${$.colors.grey3}`,boxShadow:`${t.Space.sp0} 1px 2px ${t.Space.sp0} ${t.Colors.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${t.Space.sp5} - ${t.Space.sp5})`,backgroundColor:$.colors.background},threadsContainerStyle:{paddingBottom:a?"160px":t.Space.sp12},collapsibleThreadStyle:{width:`calc(100% - ${t.Space.sp4})`},allowComposer:!1,drawerTitle:Ve.common.texts.comments,filter:o,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(se,ue)=>{ce(ue);const Re=E.findIndex(he=>he[0]===ue);y(),P.current?.[Re]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>y()})}),n.jsxRuntimeExports.jsx(gn,{availableWidth:S})]}):n.jsxRuntimeExports.jsx(je.FloatingThreads,{observer:Y,canvasContainerRef:z,sortedThreads:E,threadsPositions:W,threadsRefs:P,unresolvedThreadsMap:O,editorMode:!a,style:{minWidth:`${S}px`,position:"relative",height:"fit-content",top:`${z.current?.offsetTop}px`,minHeight:t.Space.sp12},handleRemoveFloatingThread:F}):n.jsxRuntimeExports.jsx(gn,{availableWidth:S}),pt=(l.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(l.companyMonthEndReportTemplatesData).length;return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Al,{ref:L,children:[n.jsxRuntimeExports.jsx(gn,{availableWidth:u?A:S}),n.jsxRuntimeExports.jsxs(Ll,{children:[n.jsxRuntimeExports.jsx(n.FormProvider,{...Ie,children:n.jsxRuntimeExports.jsx("form",{id:Ls(ks),onSubmit:xe,children:n.jsxRuntimeExports.jsxs(zl,{children:[n.jsxRuntimeExports.jsx(je.MonthEndReportSection,{sectionId:rn,previewMode:a,subject:K}),!a&&pt>0?n.jsxRuntimeExports.jsx(je.MonthEndReportCustomerRequestSection,{totalItems:pt,onClickCustomerRequest:w}):null,n.jsxRuntimeExports.jsxs(_l,{id:je.MONTH_END_REPORT_CANVAS,ref:z,children:[n.jsxRuntimeExports.jsxs(Bl,{className:"monthEndReportCanvasWrapper",children:[M!=null||Q?n.jsxRuntimeExports.jsx(Ml,{"data-testid":t.generateDataTestId("email-attachment-container"),onClick:le,children:n.jsxRuntimeExports.jsx(je.CircleWithAttachmentSuccessIcon,{fileSizeError:Q,setFileSizeError:ae,loading:!1,showAnimation:!a&&ge})}):null,a?n.jsxRuntimeExports.jsx(Ts,{dangerouslySetInnerHTML:{__html:je.getHTMLWithCommentingSections(ot)}}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Dl,{id:je.MONTH_END_EMAIL_HEADER_SECTION,children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:Ye[0]!=null?Ye[0]+"</body></html>":Ve.common.strings.empty}}),n.jsxRuntimeExports.jsxs(Ol,{children:[n.jsxRuntimeExports.jsx(Fl,{children:Ve.cockpit.monthEndReport.editorTitle}),n.jsxRuntimeExports.jsx(Pl,{children:Ve.cockpit.monthEndReport.editorNote})]})]}),n.jsxRuntimeExports.jsx(Nl,{id:je.MONTH_END_EMAIL_EDITOR_SECTION,children:n.jsxRuntimeExports.jsx(je.Editor,{handleFileInputClick:Ue,fileAttached:M!=null,enableZeniGPTFeature:s,isZeniGPTResponseLoading:we,initialHtmlString:l.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:v,customerRequestData:p})}),n.jsxRuntimeExports.jsx(Ts,{id:je.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:Ye[1]!=null?"<html><body>"+Ye[1]:Ve.common.strings.empty}})]}),M!=null?n.jsxRuntimeExports.jsx(je.FileAttachment,{ref:D,fileName:M.name,fileSize:t.base64FileSize(M.data),onRemove:ze,isRemovable:!a}):null]}),ye?n.jsxRuntimeExports.jsx(je.AddThreadFloating,{style:{zIndex:15},coords:ye,alignment:R.alignment,onClick:Oe}):null,n.jsxRuntimeExports.jsx(je.TextHighlightSection,{canvasContainerRef:z,sortedThreads:E,editorMode:!a,isZeniUser:r})]})]})})}),n.jsxRuntimeExports.jsx(t.FileInputElement,{name:M?.name??Ve.common.strings.empty,fileRef:J,sizeLimit:$l,acceptableTypes:kl,onFileChange:async se=>{He(se)},onFileSizeError:se=>ae(se),multiple:!1})]}),Rt()]}),n.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:ut(),formId:Ls(ks),cancelBtn:{isDisabled:we,label:a===!0?Ve.cockpit.monthEndReport.editButtonLabel:Ve.cockpit.monthEndReport.saveChanges,onClick:a===!0?b:Me,style:{width:"136px",padding:`${t.Space.sp0} ${t.Space.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:l.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:we,isLoading:a===!0?l.sendMonthEndReportStatus.fetchState==="In-Progress":l.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:a===!0?"unset":"136px"},label:a===!0?Ve.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",St):Ve.cockpit.monthEndReport.preview,size:"medium"}})]})}const $s=e=>({[rn]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ve.common.strings.empty}}),Ls=e=>`${e}_form`;t.sp[5];t.sp[5];t.textStyles.smallBold.lineHeightValue;const Ul=1,Gl=50,As=56,Kl=["memo"],Os=e=>H.stringToUnionStrict(e,Kl),{common:{strings:{empty:Jl}},expenseAutomation:{transactions:{header:{vendors:Yl,category:Zl,classText:Xl,date:Ql,type:ed,amount:td}}}}=t.appLocale.getLocalizedStrings(),nd={key:"vendor",value:Yl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},sd={key:"category",value:Zl,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),customStyle:{common:{paddingLeft:t.sp[7]}}},od={key:"class",value:Xl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},id={key:"date",value:Ql,sortOrder:"descending",width:new t.ResponsiveSized(11,11),customStyle:{common:{paddingLeft:12}}},rd={key:"transaction_type",value:ed,sortOrder:"descending",width:new t.ResponsiveSized(13,13),customStyle:{common:{paddingLeft:t.sp[3]}}},ad={key:"memo",value:Jl,sortOrder:"ascending",width:new t.ResponsiveSized(6,6),customStyle:{common:{}}},cd={key:"amount",value:td,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),customStyle:{common:{paddingRight:t.sp[4]}}},lt=[nd,sd,od,id,rd,ad,cd],jn={sortKey:"date",sortOrder:"descending"},go=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[p,u]=m.useState(n.cloneDeep(lt));m.useEffect(()=>{const r=[...p];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";u(r)},[e.sortKey,e.sortOrder]);const o=(r,x)=>{let d=x;e.sortKey===r&&(d=x==="ascending"?"descending":"ascending"),l(r,d)},c=r=>{Os(r.key)==null&&o(H.toTransactionsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(ld,{windowSize:a,"data-testid":t.generateDataTestId("transaction-categorization-header-container"),children:p.map((r,x)=>{const d=s!=null||Os(r.key)!=null;return n.jsxRuntimeExports.jsxs(dd,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:d,windowSize:a,isLastItem:x===p.length-1,"data-testid":t.generateDataTestId("transaction-categorization-header-wrapper",r.key),children:[n.jsxRuntimeExports.jsxs(hd,{"data-testid":t.generateDataTestId("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(gd,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(pd,{sortConfig:e,headerData:r,"data-testid":t.generateDataTestId("transaction-categorization-sort-icon",r.key),children:n.jsxRuntimeExports.jsx(xd,{})})]}),d?null:n.jsxRuntimeExports.jsx(md,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==jn.sortKey,"data-testid":t.generateDataTestId("transaction-categorization-close-icon",r.key),children:n.jsxRuntimeExports.jsx(ud,{onClick:()=>{o(jn.sortKey,jn.sortOrder)},"data-testid":t.generateDataTestId("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},ld=i.div`
1171
+ top: ${t.Space.sp0};
1172
+ left: ${t.Space.sp0};
1173
+ height: ${Gl}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
+ `,dd=i.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: ${t.Space.sp0};
1186
+ left: ${t.Space.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
+ `,ud=i(t.SvgCloseRound)`
1195
+ width: 12px;
1196
+ height: 12px;
1197
+ `,pd=i.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
+ `,md=i.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
+ `,xd=i(t.SvgArrowTailTop)`
1211
+ width: ${t.Space.sp2};
1212
+ height: ${t.Space.sp2};
1213
+ `,hd=i.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
+ `,gd=i(t.ExtraSmallRegular)`
1221
+ display: flex;
1222
+ `,fn="expenseAutomationTransactionsPage",Tt="transactionCategorizationListTable",be="account",qe="class",Qe="lineEntitySelection",jd="lineEntity",fd="recommendations",jo="lineInfo",yd="vendorDetails",Sd="customerDetails",an="selectedTransactionIds",gt=(e,s,l)=>`${e}.${l}.${s}`,Rd=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"}),k.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:Cd,hyphen:nn,empty:Dt}},expenseAutomation:{transactions:jt},dateFormat:Ed}=t.appLocale.getLocalizedStrings(),ft={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[1],t.sp[2]),containerPaddingTopBottomEmpty:new t.ResponsiveSized(t.sp[2],t.sp[3]),controlHeight:new t.ResponsiveSized(t.sp[4],t.sp[6]),nameLogoWidth:new t.ResponsiveSized(t.sp[2],t.sp[4]),nameLogoHeight:new t.ResponsiveSized(t.sp[2],t.sp[4])},vd=({transactionView:e,transaction:s,sectionId:l,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:p,selectedTab:u,containerRef:o,listContainerRef:c,isCOTEnabled:r,cotTracking:x,onTransactionCategorizationRowClick:d,setCurrentTransactionInAction:h,vendorLoadOptions:f,openTooltipId:y,setOpenTooltipId:j,isUncategorizedExpenseCategoryEnabled:C})=>{const b=t.useWindowSizeContext(),[g,w]=m.useState(!1),{lineItemById:_,sortedLineItems:$}=s.transactionReviewLocalData,B=s.transactionReviewLocalData.tabSpecificLineItems?.[u]||[],v=$.filter(N=>B.indexOf(N)!==-1),S=[];v.forEach(N=>{S.push(_[N])});const{accountList:I,accountsHierarchyList:A,classHierarchyList:q,classList:T,uncategorizedAccounts:J,transactions:D,selectedCheckBoxTransactionIds:V}=e,K=V.includes(s.transactionId),U=n.useTheme(),M={control:()=>({marginLeft:-2,backgroundColor:g?U.colors.background:U.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:t.sp[0]}),menu:()=>({width:"150%",background:U.colors.grey5}),singleValue:()=>({color:g||K?U.colors.primary:U.colors.hero,paddingLeft:t.sp[2]}),input:N=>({...N,color:g||K?U.colors.primary:U.colors.hero,textAlign:"left",paddingLeft:t.sp[2]}),menuPortal:N=>({...N,zIndex:10})},te={...M,singleValue:N=>({...N,color:g||K?U.colors.primary:U.colors.hero}),menu:()=>({marginTop:t.sp[1],marginLeft:-t.sp[2]}),input:N=>({...N,color:g||K?U.colors.primary:U.colors.hero,textAlign:"left"})},ge=D.find(N=>N.id===s.transactionId),ne=(N,P)=>{const{transactionType:E}=P.transactionReviewLocalData;let Y=N.target;for(;Y;){if(Y.classList.contains("select-value-container")||Y.classList.contains("item-value-container")||Y.classList.contains("grouped-single-select-field__value-container")||Y.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||Y.classList.contains("grouped-single-select-field__input")||Y.classList.contains("grouped-single-select-field__menu"))return;Y=Y.parentElement}E!=null&&d(P.transactionId,E)},Q=m.useRef(null),[ae,z]=m.useState(void 0),[L,ee]=m.useState("bottom");return m.useEffect(()=>{if(ae===void 0)return;const P=c?.current?._outerRef??null,E=()=>{const W=Q.current;if(W==null||P==null)return;const Y=W.getBoundingClientRect(),O=P.getBoundingClientRect(),F=P.scrollTop+(Y.bottom-O.top),G=P.scrollHeight-F;ee(G>=288?"bottom":"top")};return E(),window.addEventListener("resize",E),P?.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),P?.removeEventListener("scroll",E)}},[c,ae]),n.jsxRuntimeExports.jsx(Id,{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),windowSize:b,isSelected:K,isHovered:g,children:n.jsxRuntimeExports.jsx(Td,{children:S.map((N,P)=>n.jsxRuntimeExports.jsx(kd,{ref:ae===P?Q:void 0,"data-testid":t.generateDataTestId("transaction-categorization-list-row",N.lineId),windowSize:b,onClick:E=>ne(E,s),children:n.jsxRuntimeExports.jsx(bd,{line:N,isHovered:g||K,isSelected:K,lineIndex:P,sectionId:l,transaction:s,currentTransaction:ge,windowSize:b,accountsHierarchyList:A,classHierarchyList:q,allAccountList:I,allClassList:T,uncategorizedAccounts:J,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:p,setCurrentTransactionInAction:h,vendorLoadOptions:f,customStyle:M,customStyleAutoComplete:te,recommendations:N.recommendationsWithCOT,selectedTab:u,isCOTEnabled:r,menuPlacement:L,cotTracking:x,openTooltipId:y,setOpenTooltipId:j,isUncategorizedExpenseCategoryEnabled:C,onDropdownClose:()=>z(void 0),onDropdownOpen:()=>z(P)})},`${s.transactionId}.${N.lineId}`))},s.transactionId)},s.transactionId)},bd=({accountsHierarchyList:e,allAccountList:s,allClassList:l,classHierarchyList:a,customStyle:p,customStyleAutoComplete:u,line:o,lineIndex:c,transaction:r,currentTransaction:x,windowSize:d,uncategorizedAccounts:h,isHovered:f=!1,isSelected:y=!1,sectionId:j,recommendations:C,vendorSearchAutoCompleteData:b,selectedTab:g,isCOTEnabled:w,menuPlacement:_,cotTracking:$,openTooltipId:B,setCurrentTransactionInAction:v,vendorLoadOptions:S,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:A,onDropdownClose:q,onDropdownOpen:T})=>{const{transactionDate:J,transactionType:D,transactionTypeName:V,memo:K}=r.transactionReviewLocalData,{setValue:U}=n.useFormContext(),M=m.useCallback((pe,Te)=>{$?.onCOTView!=null&&$.onCOTView(o.lineId,r.transactionId,pe,Te)},[$,o.lineId,r.transactionId]),te=o.lineDescription,ge=m.useMemo(()=>{if(te||K)return[{title:jt.description,description:te||nn},{title:jt.header.memo,description:K||nn}]},[K,te]),ne=gt(j,Qe,c.toString()),Q=gt(j,be,c.toString()),ae=gt(j,qe,c.toString()),z=(pe,Te)=>{let Ce;switch(Te){case"vendor":Ce=ne;break;case"category":Ce=Q;break;case"class":Ce=ae;break;default:return}U(`${Ce}.selectedOption`,pe,{shouldValidate:!0,shouldDirty:!0})},L=n.useTheme(),ee=m.useMemo(()=>x!=null&&H.isVendorTransaction(x)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:o.customer?.id??"",logo:o.customer?.logo,name:o.customer?.name??""},[x,o.customer?.id,o.customer?.logo,o.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),N=m.useMemo(()=>x!=null&&H.isVendorTransaction(x)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:o.vendor?.id??"",logo:o.vendor?.logo,name:o.vendor?.name??""},[x,o.vendor?.id,o.vendor?.logo,o.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),P=o[qe]?.classId,E=o[be]?.qboId??o[be]?.accountId,W=ee?.id,Y=N?.id,O=N?.name,[F,G]=m.useState(!P),[Z,fe]=m.useState(!E||o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!0),[Ee,ce]=m.useState(!Y||!W),R=pe=>C?.find(Ce=>Ce.vendor?.qboId===pe||Ce.vendor?.id===pe||Ce.vendor?.name===pe)?.vendor?.reason??"",re=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],ye=t.getGroupedAccountOptionsWithCOT(e,re),Oe=t.getGroupedClassOptionsWithCOT(a,re),we=pe=>s.filter(Ce=>Ce.qboId===pe)[0]?.qboId,Ie=pe=>l.filter(Ce=>Ce.classId===pe)[0]?.accountingClassNumber??void 0,xe=m.useCallback(pe=>H.isAccountUncategorized(h,pe,A===!0?["income"]:void 0),[h,A]),[Ue,ze]=m.useState(!1),[He,le]=m.useState(!1),[Me,Je]=m.useState(!1),St=(pe,Te)=>{v({transactionId:r.transactionId,lineItemId:o.lineId}),S(pe,Te)},Ye=()=>{ce(!(Y||W)),ze(!1),q?.()},ot=()=>{E&&o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!1?fe(!1):fe(!0),Je(!1),q?.()},ut=()=>{G(!P),le(!1),q?.()},Rt=()=>{(Y||W)&&(ze(!0),T?.())},pt=()=>{le(!0),T?.()},se=()=>{Je(!0),T?.()};m.useEffect(()=>{E&&o[be]?.qboId!=null&&H.isAccountUncategorized(h,o[be].qboId,A===!0?["income"]:void 0)===!1?fe(!1):fe(!0)},[E]),m.useEffect(()=>{G(!P)},[P]),m.useEffect(()=>{ce(!(Y||W))},[Y,W]);const ue=r.transactionReviewLocalData.selectedEntity,Re=r.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,he=x!=null&&H.isVendorTransaction(x)===!0?ue:Re,De=m.useMemo(()=>{const pe=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Te=b.entityAutoCompleteView;return{selectedOption:he?.qboId??he?.id,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(Te,he,pe??[])}},[he,r.transactionReviewLocalData.lineItemById,o.lineId,b.entityAutoCompleteView]),mt=()=>he!=null&&he.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:he.logo.toString(),styles:{width:ft.nameLogoWidth.valuePx(d),height:ft.nameLogoHeight.valuePx(d)},fallbackAvatar:n.jsxRuntimeExports.jsx(Bs,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:he.name,size:t.Space.sp4})})}):he!=null&&he.name!=null?n.jsxRuntimeExports.jsx(Bs,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:he.name,size:t.Space.sp4})}):null,it=(pe,Te)=>{if(Te==null||!Te)return;let Ce=[];return pe.forEach(We=>{Ce=Ce.concat(We.options)}),Ce.find(We=>We.value===Te)?.label??Te},xt=it(Oe,P),Nt=it(ye,E),Ge=g==="review",kt=t.isMiscategorizedField("vendor",De.defaultOptions,De.selectedOption),Wt=t.isMiscategorizedField("category",ye,E),Vt=t.isMiscategorizedField("class",Oe,P),cn=()=>lt.map((pe,Te)=>{const Ce=`${r.transactionId}_${pe.key}_${o.lineId}`;if(c>0&&x!=null&&H.isVendorTransaction(x)===!0&&pe.key==="vendor")return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width},Ce);if(c>0&&pe.key==="transaction_type")return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width},Ce);switch(pe.key){case"vendor":default:return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"vendor",isFirstColumn:!0,isEnabled:!!he?.isPreFilled,isMisCategorized:kt,onRecommendationClick:z,selectedValue:Y,selectedValueLabel:O,isReviewTab:Ge,isAccountOptionDisabled:xe,existingOption:{label:x!=null&&H.isVendorTransaction(x)===!0?x?.vendor?.name:void 0,value:x!=null&&H.isVendorTransaction(x)===!0?x?.vendor?.id:void 0},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:Ee===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:We=>{We.stopPropagation(),T?.(),ce(!1),ze(!0)},"data-testid":t.generateDataTestId("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addPayee]})}):Ue===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:Ye,children:n.jsxRuntimeExports.jsx(Hd,{"data-testid":t.generateDataTestId("vendor-selection-dropdown-container",gt(j,Qe,c.toString())),children:n.jsxRuntimeExports.jsx(t.AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:ne,placeholder:jt.addPayee,valueToInfo:R,defaultValue:{selectedOption:De.selectedOption,defaultOptions:De.defaultOptions},type:"vendor",autoFocus:!Ee,style:{width:"100%"},pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:u,menuIsOpen:Ue,onMenuClose:Ye,registerOptions:{required:!1},loadOptions:St,showCOT:w,onCOTView:M,menuPlacement:_})})}):n.jsxRuntimeExports.jsx(Vd,{children:n.jsxRuntimeExports.jsxs(En,{isHovered:f,showOutline:kt&&he?.isPreFilled!==!0&&!y&&Ge,children:[mt(),n.jsxRuntimeExports.jsx(zd,{onClick:Rt,"data-testid":t.generateDataTestId("vendor-name-text",j),children:he!=null&&he.name?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:he.name,itemTextStyle:{color:f?L.colors.primary:L.colors.hero}}):n.jsxRuntimeExports.jsx(Wd,{children:nn})})]})})})]},Ce);case"category":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"category",isFirstColumn:!1,isReviewTab:Ge,isEnabled:!!o[be]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:Wt,onRecommendationClick:z,selectedValue:E,selectedValueLabel:Nt,existingOption:{label:We?.account?.accountName,value:We?.account?.qboId??We?.account?.accountId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:Z===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Ct=>{Ct.stopPropagation(),T?.(),fe(!1),Je(!0)},"data-testid":t.generateDataTestId("category-selection-field",Q),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addCategory]})}):Me===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:ot,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:f,"data-testid":t.generateDataTestId("category-selection-dropdown-container",Q),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:Q,placeholder:jt.addCategory,valueToId:Ct=>we(Ct),type:"category",pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",showCOT:w,defaultValue:{selectedOption:E,allOptions:ye},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Me,autoFocus:!Z&&(!E||o[be]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[be].qboId)),onMenuClose:ot,customStyleConfig:p,disableCurrentOption:xe,menuPlacement:_,onCOTView:M})})}):n.jsxRuntimeExports.jsx(En,{isHovered:f,showOutline:Wt&&o[be]?.isPreFilled!==!0&&!y&&Ge,children:n.jsxRuntimeExports.jsx(Ns,{onClick:se,"data-testid":t.generateDataTestId("category-label-text",Q),children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Nt??"",itemTextStyle:{color:f?L.colors.primary:L.colors.hero}})})})})]},Ce)}case"class":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ze,{windowSize:d,wrapperWidth:pe.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(yn,{isCOTEnabled:w,recommendations:re,type:"class",isFirstColumn:!1,isReviewTab:Ge,isEnabled:!!o[qe]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:Vt,onRecommendationClick:z,selectedValue:P,selectedValueLabel:xt,existingOption:{label:We?.class?.className,value:We?.class?.classId},cotTracking:$,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:B,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(vn,{children:F===!0?n.jsxRuntimeExports.jsx(Cn,{isHovered:f,children:n.jsxRuntimeExports.jsxs(Sn,{onClick:Ct=>{Ct.stopPropagation(),T?.(),G(!1),le(!0)},"data-testid":t.generateDataTestId("class-selection-field",ae),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(Rn,{}),jt.addClass]})}):He===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:ut,children:n.jsxRuntimeExports.jsx(Ms,{isHovered:f,"data-testid":t.generateDataTestId("class-selection-dropdown-container",ae),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:ae,placeholder:jt.addClass,valueToId:Ct=>Ie(Ct),type:"class",showCOT:w,defaultValue:{selectedOption:P,allOptions:Oe},pageSource:"list_page",transactionStatus:Ge?"pending_review":"auto_categorized",menuIsOpen:He,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!F&&!P,customStyleConfig:p,onMenuClose:ut,menuPlacement:_,onCOTView:M})})}):n.jsxRuntimeExports.jsx(En,{isHovered:f,showOutline:Vt&&o[qe]?.isPreFilled!==!0&&!y&&Ge,children:n.jsxRuntimeExports.jsx(Ns,{"data-testid":t.generateDataTestId("class-selection-field",ae),onClick:pt,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:xt??"",itemTextStyle:{color:f?L.colors.primary:L.colors.hero}})})})})]},Ce)}case"date":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Te===lt.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("date-field",gt(j,qe,c.toString())),children:n.jsxRuntimeExports.jsx(Ld,{style:{color:f?L.colors.primary:L.colors.hero},children:J!=null?J.format(Ed.visual.MMMDCommaYYYYformat):null})})})},Ce);case"transaction_type":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,"data-testid":t.generateDataTestId("transaction-type-field",gt(j,qe,c.toString())),isLastItem:Te===lt.length-1,children:V!=null?n.jsxRuntimeExports.jsx(t.Tag,{textColor:f?new n.Color(L.colors.primary):t.getColorForTransactionType(void 0,L),text:V??D}):null})},Ce);case"memo":return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{style:{lineHeight:t.Space.sp3},windowSize:d,isLastItem:Te===lt.length-1,"data-testid":t.generateDataTestId("memo-field",gt(j,qe,c.toString())),children:ge!=null?n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",data:ge,variant:"multi-information-points",children:n.jsxRuntimeExports.jsx(Od,{style:{color:f?L.colors.primary:L.colors.hero}})}):n.jsxRuntimeExports.jsx(Ad,{children:nn})})},Ce);case"amount":{const We=t.amountToString("0,0.[00]",o.amount,!0);return n.jsxRuntimeExports.jsx(Ze,{windowSize:d,style:{paddingRight:t.sp[4]},wrapperWidth:pe.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Te===lt.length-1,children:n.jsxRuntimeExports.jsx(Bn,{"data-testid":t.generateDataTestId("transaction-amount-field",gt(j,qe,c.toString())),style:{color:f?L.colors.primary:L.colors.hero},children:We})})},Ce)}}});return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:cn()})},Ds=({isEnabled:e,isReviewTab:s,isMisCategorized:l,hasRecommendations:a,isTooltipVisible:p=!1})=>e?s?p?n.jsxRuntimeExports.jsx(Bd,{}):n.jsxRuntimeExports.jsx(Dd,{}):p?n.jsxRuntimeExports.jsx(_d,{}):n.jsxRuntimeExports.jsx(Md,{className:"ai-icon-selected-plain"}):!e&&l||a?p?n.jsxRuntimeExports.jsx(Pd,{}):n.jsxRuntimeExports.jsx(Nd,{}):null,_s=({isFirstColumn:e,children:s})=>n.jsxRuntimeExports.jsx(yo,{isFirstColumn:e,children:s}),yn=({recommendations:e,isCOTEnabled:s,type:l,isReviewTab:a,selectedValueLabel:p,isFirstColumn:u,isEnabled:o=!1,isMisCategorized:c=!1,selectedValue:r,existingOption:x,cotTracking:d,lineId:h,openTooltipId:f,transactionId:y,isAccountOptionDisabled:j,onRecommendationClick:C,setOpenTooltipId:b})=>{const g=m.useMemo(()=>`${y}:${h}:${l}`,[y,h,l]),w=f===g,$=t.useToolkitContext().analytics,{createAlternateRecommendationCallback:B}=t.useCOTAnalytics(),v=m.useCallback(D=>{const V=e[1],K=e[0];B(l,{currentValue:p??Dt,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:d?{transactionId:y,lineId:h,onCOTView:(U,M,te,ge)=>{d.onCOTView?.(U,M,te,ge)}}:void 0},V,K)(D)},[B,e,p,a,l,d,h,y]),S=t.createCOTDataFromRecommendations(e,l,s,x,"list_page",a?"pending_review":"auto_categorized",C,v,r,j),I=t.hasRecommendationsForType(e,l),A=m.useCallback(()=>{b(g);const D=S?.recommendations[0]?.cot??[],V=S?.recommendations[1]?.cot??[],K=V.length>0;if($.trackTransactionCotView({recommendationFor:l,currentValue:p??Dt,recommendation:S?.recommendations[0]?.name??Dt,recommendationCot:D,isRecommendationCotAvailable:D.length>0,recommendationReason:S?.recommendations[0]?.reason??Dt,recommendationConfidencePercentage:S?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:t.toConfidenceLevelType(t.getConfidenceLevel(S?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:S?.recommendations[1]?.name??Dt,alternativeRecommendationCot:V,isAlternativeRecommendationCotAvailable:K,alternativeRecommendationReason:S?.recommendations[1]?.reason??Dt,alternativeRecommendationConfidencePercentage:S?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:K?t.toConfidenceLevelType(t.getConfidenceLevel(S?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page"}),d?.onCOTView!=null){const U=t.getCOTRecommendationSourceToTrack(S);U!=null&&d.onCOTView(h,y,l,U)}},[$,S,a,p,l,h,y,g,b]),q=m.useCallback(()=>{f===g&&b(void 0)},[f,g,b]),T=m.useMemo(()=>!r||!I?!1:e.some(D=>l==="vendor"&&D.vendor!=null?D.vendor.id===r||D.vendor.qboId===r:l==="category"&&D.account!=null?D.account.qboId===r||D.account.accountId===r:l==="class"&&D.class!=null?D.class.classId===r:!1),[r,I,e,l]);if(!I)return n.jsxRuntimeExports.jsx(yo,{isFirstColumn:u});const J=o||T;return S?n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(t.Tooltip,{variant:"chain-of-thought",data:S,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:w,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:q,children:n.jsxRuntimeExports.jsx(Fd,{children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:J,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})})}):n.jsxRuntimeExports.jsx(_s,{isFirstColumn:u,children:n.jsxRuntimeExports.jsx(Ds,{isEnabled:J,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:w})})},fo=()=>{const e=t.useWindowSizeContext(),s=m.useRef(null),[l,a]=m.useState(0);return m.useLayoutEffect(()=>{s.current&&a(s.current.offsetWidth)},[e]),n.jsxRuntimeExports.jsx(wd,{windowSize:e,ref:s,children:lt.map((p,u)=>{const o=`${u}${Cd}${p.key}`;switch(p.key){case"vendor":return n.jsxRuntimeExports.jsx(Ze,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:u===lt.length-1,children:n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(Ze,{windowSize:e,wrapperWidth:p.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:u===lt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*p.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},wd=i.div`
1223
+ display: flex;
1224
+ background-color: ${e=>e.theme.colors.grey5};
1225
+ padding-left: ${e=>ft.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
+ padding-right: ${e=>ft.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
+ padding-top: ${e=>ft.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
+ padding-bottom: ${e=>ft.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1229
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1230
+ box-shadow: ${e=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
1231
+ border-radius: ${t.Space.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
+ `,Id=i.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=>`${t.Space.sp0} 2px ${t.Space.sp1} ${e.theme.colors.dropShadowNormal}`};
1248
+ border-radius: ${t.Space.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:s})=>e?Be.css`
1265
+ .ai-icon-selected-plain {
1266
+ color: ${s.colors.primary};
1267
+ }
1268
+ `:null};
1269
+ `,Td=i.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
+ `,kd=i.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: ${t.Space.sp8};
1285
+ padding-top: ${e=>ft.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
+ padding-bottom: ${e=>ft.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
+ `,Ze=i.div`
1288
+ display: flex;
1289
+ align-items: center;
1290
+ flex-direction: row;
1291
+ position: relative;
1292
+ width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${t.Space.sp4})`};
1293
+ min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${t.Space.sp4})`};
1294
+ :last-of-type {
1295
+ padding-right: ${t.Space.sp0};
1296
+ }
1297
+ `,$d=Be.css`
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
+ `,Bt=i(t.StandardRegular)`
1306
+ overflow: hidden;
1307
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1308
+ display: flex;
1309
+ width: 100%;
1310
+ align-items: center;
1311
+ `,Bn=i.div`
1312
+ display: flex;
1313
+ flex-direction: row;
1314
+ column-gap: ${t.Space.sp2};
1315
+ align-items: center;
1316
+ `,Ld=i(t.StandardRegular)`
1317
+ ${$d};
1318
+ color: ${e=>e.theme.colors.hero};
1319
+ `,Sn=i(t.StandardRegular)`
1320
+ color: ${e=>e.theme.colors.hero};
1321
+ `,Rn=i(t.SvgAddRound)`
1322
+ width: ${t.Space.sp3};
1323
+ height: ${t.Space.sp3};
1324
+ margin: ${t.Space.sp1};
1325
+ `,Ad=i.div`
1326
+ margin: ${t.Space.sp3};
1327
+ `,Od=i(Rd)`
1328
+ width: ${t.Space.sp3};
1329
+ height: ${t.Space.sp3};
1330
+ margin-left: 10px;
1331
+ `,Dd=i(t.SvgAiIconSelected)`
1332
+ width: ${t.Space.sp5};
1333
+ height: ${t.Space.sp5};
1334
+ `,_d=i(Ht.SvgAiIconSelectedFilledPlain)`
1335
+ width: ${t.Space.sp5};
1336
+ height: ${t.Space.sp5};
1337
+ `,Bd=i(t.SvgAiIconSelectedFilled)`
1338
+ width: ${t.Space.sp5};
1339
+ height: ${t.Space.sp5};
1340
+ `,Md=i(Ht.SvgAiIconSelectedPlain)`
1341
+ width: ${t.Space.sp5};
1342
+ height: ${t.Space.sp5};
1343
+ `,Nd=i(t.SvgAiIcon)`
1344
+ width: ${t.Space.sp3};
1345
+ height: ${t.Space.sp3};
1346
+ path {
1347
+ stroke-width: 2;
1348
+ }
1349
+ `,Pd=i(t.SvgAiIconFilled)`
1350
+ width: ${t.Space.sp3};
1351
+ height: ${t.Space.sp3};
1352
+ `,yo=i.div`
1353
+ display: flex;
1354
+ align-items: center;
1355
+ justify-content: center;
1356
+ width: ${t.Space.sp5};
1357
+ margin-left: ${e=>e.isFirstColumn?t.Space.sp2:t.Space.sp0};
1358
+ height: 100%;
1359
+ `,Fd=i.div`
1360
+ display: flex;
1361
+ align-items: center;
1362
+ justify-content: center;
1363
+ width: auto;
1364
+ cursor: pointer;
1365
+ `,zd=i(t.StandardRegular)`
1366
+ display: flex;
1367
+ max-width: calc(100% - ${t.Space.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
+ `,Bs=i.div`
1375
+ display: flex;
1376
+ `,Hd=i.div`
1377
+ width: 100%;
1378
+ padding-left: 10px;
1379
+ margin-left: ${t.Space.sp0};
1380
+ border-radius: ${t.Space.sp1};
1381
+ background-color: ${e=>e.theme.colors.background};
1382
+ display: flex;
1383
+ align-items: center;
1384
+ flex-direction: row;
1385
+ `,Cn=i.div`
1386
+ padding: ${t.Space.sp0} ${t.Space.sp2};
1387
+ border-radius: ${t.Space.sp1};
1388
+ margin-left: ${t.Space.sp0};
1389
+ width: 100%;
1390
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1391
+ `,Ms=i.div`
1392
+ width: 100%;
1393
+ border-radius: ${t.Space.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
+ `,Wd=i(t.StandardRegular)``,Vd=i.div`
1401
+ width: 100%;
1402
+ display: flex;
1403
+ padding-left: ${t.Space.sp0};
1404
+ `,En=i.div`
1405
+ width: 100%;
1406
+ display: flex;
1407
+ flex-direction: row;
1408
+ align-items: center;
1409
+ gap: ${t.Space.sp2};
1410
+ padding: ${t.Space.sp2};
1411
+ padding-left: ${t.Space.sp2};
1412
+ border-radius: ${t.Space.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
+ `,Ns=i.div``,vn=i.div`
1417
+ display: flex;
1418
+ align-items: center;
1419
+ width: calc(100% - ${t.Space.sp5});
1420
+ `,qd=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const p=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(Ud,{windowSize:p,children:[n.jsxRuntimeExports.jsx(go,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table-header")}),n.jsxRuntimeExports.jsx(Gd,{windowSize:p,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((u,o)=>n.jsxRuntimeExports.jsx(fo,{"data-testid":t.generateDataTestId("transaction-categorization-list-empty-row",o.toString())},o))})]})},Ud=i.div`
1421
+ display: block;
1422
+ min-height: 100%;
1423
+ flex-direction: column;
1424
+ width: 100%;
1425
+ padding-left: ${t.Space.sp8};
1426
+ padding-right: ${t.Space.sp8};
1427
+ `,Gd=i.div`
1428
+ display: flex;
1429
+ flex: 1;
1430
+ min-height: 100%;
1431
+ flex-direction: column;
1432
+ row-gap: ${t.Space.sp3};
1433
+ `,{common:Kd,transactionDetail:{notCategorizedTooltipText:Jd}}=t.appLocale.getLocalizedStrings(),bn={rowGap:new t.ResponsiveSized(t.sp[0],t.sp[2],t.sp[3])},Yd=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:p,isCOTEnabled:u,isDisabled:o,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:x,vendorLoadOptions:d,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:j,containerRef:C,cotTracking:b,isUncategorizedExpenseCategoryEnabled:g})=>{const w=t.useWindowSizeContext(),[_,$]=m.useState(void 0),{fetchState:B,uiState:v,transactionLocalData:S,selectedCheckBoxTransactionIds:I,transactionIdsWithUnsavedData:A,transactions:q,uncategorizedAccounts:T}=s,J=m.useRef(null),D=m.useRef({}),{control:V}=n.useFormContext();m.useEffect(()=>{J.current?.resetAfterIndex(0,!0)},[w,J,S]),m.useEffect(()=>{J.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const K=m.useCallback(O=>{if(D.current?.[O]!=null){const Z=w==="small"&&v.pageToken==null&&O===S.length-1?bn.rowGap.value("medium-regular"):bn.rowGap.value(w);return D.current[O]+Z}if(S[O]==null)return 0;const F=S[O].transactionReviewLocalData,G=Object.keys(F.lineItemById).length;return G!=null&&!isNaN(G)&&G>1?As*G+bn.rowGap.value(w)*(G-1):As},[S,w,v.pageToken,v.sortKey,v.sortOrder]),U=m.useCallback((O,F)=>{D.current={...D.current,[O]:F},J.current?.resetAfterIndex(0,!0)},[w,J,S,v.sortKey,v.sortOrder]),M=m.useCallback(()=>{(v.pageToken!=null&&s.refreshStatus.fetchState!=="In-Progress"||s.refreshStatus.fetchState==="Completed")&&j(e,v.searchString,!0,v.pageToken,!0,!1)},[s.refreshStatus.fetchState,j,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),te=m.useCallback(()=>{v.pageToken!=null&&M()},[M,v.pageToken,v.sortKey,v.sortOrder]),ge=n.debounce(O=>y(e,{scrollPosition:{scrollTop:O}}),1e3,{trailing:!0}),ne=O=>O<s.transactionLocalData.length,Q=(O,F)=>{f(e,{sortOrder:F,sortKey:O}),j(e,v.searchString,!1,null,!1,!0)},ae=O=>{if(e==="autoCategorized")return!I.includes(O);const F=S.find(Z=>Z.transactionId===O)?.transactionReviewLocalData,G=q.find(Z=>Z.id===O);return G!=null&&F!=null?H.checkIfAllLineItemsAreCategoryClassFilled(G,F,T,g)?g===!0&&H.isAnyItemWithUncategorizedExpenseAccount(T,F.lineItemById,["expense"])?A.includes(O)===!1:!1:!0:I.length===0?!0:!I.includes(O)};let z=[],L=[];(B==="Completed"||s.transactionLocalData.length>0)&&(L=s.transactionLocalData.map((O,F)=>{const G=ae(O.transactionId);let Z=!1;g===!0&&G===!0&&e==="review"&&H.isAnyItemWithUncategorizedExpenseAccount(T,O.transactionReviewLocalData.lineItemById,["expense"])&&(Z=!A.includes(O.transactionId));const fe=O.transactionReviewLocalData;return{label:n.jsxRuntimeExports.jsx(vd,{transactionView:s,sectionId:`${p}.${F}.${jo}`,transaction:O,receiptUploadEndpoint:l,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:d,setCurrentTransactionInAction:x,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:C,listContainerRef:J,isCOTEnabled:u,cotTracking:b,openTooltipId:_,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:g},`${O.transactionId}.${fe.transactionType}`),value:O.transactionId,defaultChecked:!1,groupLabel:!1,isException:Z,exceptionMode:Z===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:G===!0?"readonly":void 0,exceptionType:Z===!0?"alert":void 0,exceptionInfo:Z===!0?Jd:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${t.Space.sp2}`}}}),z=L.map(O=>O.value));const ee={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:N,subTitle:P}=Ne("transaction_categorization").allDoneText,E=S.map(O=>O.transactionId),W=m.useMemo(()=>s.totalCountByTab[e],[e,s.totalCountByTab]),Y=m.useMemo(()=>S.reduce((F,G)=>{const Z=Object.keys(G.transactionReviewLocalData.lineItemById).length;return F+(Z>0?Z:1)},0)<s.totalCountByTab[e]?S.length+1:S.length,[S,s.totalCountByTab,e]);return n.jsxRuntimeExports.jsx(tu,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-wrapper"),children:n.jsxRuntimeExports.jsx(nu,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-container"),children:B==="Error"?n.jsxRuntimeExports.jsxs(ou,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-reload-page"),children:[n.jsxRuntimeExports.jsx(iu,{onClick:()=>j(e,void 0,!0,null,!1,!0),"data-testid":t.generateDataTestId("transaction-categorization-reload-icon"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(ru,{"data-testid":t.generateDataTestId("transaction-categorization-reload-label"),children:Kd.reloadPage.label})]}):B==="Completed"&&S.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"transaction_categorization",title:N,subTitle:P,"data-testid":t.generateDataTestId("transaction-categorization-empty-table-section")}):B==="Not-Started"||B==="In-Progress"&&S.length===0?n.jsxRuntimeExports.jsx(qd,{sortConfig:{sortKey:v.sortKey,sortOrder:v.sortOrder},fetchState:B,onColumnSortConfigChanged:Q,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table")}):n.jsxRuntimeExports.jsx(su,{windowSize:w,"data-testid":t.generateDataTestId("transaction-categorization-list-view"),children:n.jsxRuntimeExports.jsx(n.Controller,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:O,ref:F,onChange:G}})=>n.jsxRuntimeExports.jsx(So.Provider,{value:{value:O,mode:"off",allCheckBoxValues:z,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:B,isDisabled:o,groupLabelCheckBox:ee,onColumnSortConfigChanged:Q,ref:F,onChange:G,selectedTab:e},children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:Z,width:fe})=>n.jsxRuntimeExports.jsx(n.InfiniteLoader,{isItemLoaded:ne,itemCount:W,loadMoreItems:te,children:({onItemsRendered:Ee,ref:ce})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:R=>{ce(R),J.current=R},height:Z,itemCount:Y,itemKey:R=>S[R]?.transactionId,innerElementType:Zd,onItemsRendered:Ee,width:fe,style:{willChange:"auto"},overscanCount:Ul,itemSize:K,itemData:{checkboxes:L,value:O,allCheckBoxValues:z,groupLabelCheckBox:ee,categorizationGroupValue:E,transactionLocalData:S,mode:"always_on",setRowHeight:U,isItemLoaded:ne,ref:ce,onChange:G,selectedCheckBoxTransactionIds:I},initialScrollOffset:s.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:R})=>{ge(R)},children:Qd})})})})})})})})},Zd=e=>{const{value:s,allCheckBoxValues:l,groupLabelCheckBox:a,index:p,isDisabled:u,fetchState:o,sortKey:c,sortOrder:r,mode:x,ref:d,onChange:h,onColumnSortConfigChanged:f}=Xd(),{children:y,style:j,...C}=e;return o==="Completed"?n.jsxRuntimeExports.jsxs(au,{ref:d,style:{...j,width:"auto"},...C,children:[n.jsxRuntimeExports.jsx(cu,{children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:H.MAX_SELECTION_LIMIT,value:s,checkBox:{label:n.jsxRuntimeExports.jsx(eu,{children:n.jsxRuntimeExports.jsx(go,{sortConfig:{sortKey:c,sortOrder:r},isDisabled:u,onColumnSortConfigChanged:f})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:a,allCheckBoxValues:l,mode:x,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},name:"transactionCategorizationHeader",index:p,onChangeHandler:b=>t.onChangeHandler({event:b,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:h}),ref:d})}),n.jsxRuntimeExports.jsx(lu,{children:y})]},`${l[p]}-${p}`):null},So=m.createContext(void 0),Xd=()=>{const e=m.useContext(So);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Qd=({index:e,style:s,data:l})=>{const{checkboxes:a,value:p,groupLabelCheckBox:u,categorizationGroupValue:o,allCheckBoxValues:c,transactionLocalData:r,isItemLoaded:x,setRowHeight:d,ref:h,onChange:f,selectedCheckBoxTransactionIds:y}=l,j=m.useRef(null),C=t.useWindowSizeContext();if(m.useEffect(()=>{j.current?.firstElementChild!=null&&d(e,j.current.firstElementChild.clientHeight)},[e,j,C,r[e]?.transactionReviewLocalData]),x(e)===!0){const b=a[e];return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:j,children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:H.MAX_SELECTION_LIMIT,checkBox:b,value:p,groupLabelCheckBox:u,allCheckBoxValues:c,mode:b.isDisabled==="readonly"||y.includes(b.value)===!1&&y.length>=H.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:b.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},infoIconContainerStyle:{padding:20},name:`${Tt}.${p}`,ref:h,index:e,onChangeHandler:g=>t.onChangeHandler({event:g,value:p,allCheckBoxValues:c,groupLabelCheckBox:u,onChange:f})})},o[e])}else return n.jsxRuntimeExports.jsx(Ps,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:j,children:n.jsxRuntimeExports.jsx(du,{children:n.jsxRuntimeExports.jsx(fo,{})})},n.nanoid())},eu=i.div`
1434
+ flex: 1;
1435
+ width: auto;
1436
+ padding-right: ${t.Space.sp8};
1437
+ `,tu=i.div`
1438
+ width: 100%;
1439
+ height: 100%;
1440
+ background-color: ${e=>e.theme.colors.grey4};
1441
+ `,nu=i.div`
1442
+ height: 100%;
1443
+ `,su=i.div`
1444
+ height: 100%;
1445
+ display: flex;
1446
+ flex-direction: column;
1447
+ max-width: 99.9%;
1448
+ `,ou=i.div`
1449
+ display: flex;
1450
+ width: 100%;
1451
+ height: ${e=>`calc(100% - ${t.navBarHeight.valuePx(e.windowSize)})`};
1452
+ flex-direction: column;
1453
+ justify-content: center;
1454
+ align-items: center;
1455
+ `,iu=i.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: ${t.Space.sp5};
1463
+ color: ${e=>e.theme.colors.grey1};
1464
+ }
1465
+ &:hover {
1466
+ & svg {
1467
+ color: ${e=>e.theme.colors.primary};
1468
+ }
1469
+ }
1470
+ `,ru=i(t.SmallRegular)`
1471
+ margin-top: ${t.Space.sp3};
1472
+ color: ${e=>e.theme.colors.hero};
1473
+ `,Ps=i.div`
1474
+ top: ${t.Space.sp0};
1475
+ left: ${t.Space.sp0};
1476
+ padding-bottom: ${t.Space.sp3};
1477
+ box-sizing: border-box;
1478
+ `,au=i.div`
1479
+ background-color: ${e=>e.theme.colors.grey4};
1480
+ `,cu=i.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
+ `,lu=i.div`
1491
+ position: relative;
1492
+ width: auto;
1493
+ height: 100%;
1494
+ `,du=i.div`
1495
+ padding-left: ${t.Space.sp8};
1496
+ `,uu=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:p,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:o,isCOTEnabled:c,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:x,onTransactionCategorizationRowClick:d,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:j,onUpdateSelectedCheckboxTransactionIds:C,onFetchRecommendationsForEntityCategorization:b,onFetchRecommendationsForEntityCategorizationWithCustomer:g})=>{const[w,_]=m.useState({transactionId:void 0,lineItemId:void 0}),$=m.useRef(),B=m.useRef({}),{useDynamicConfig:v}=t.useZeniFeatureContext(),{configValue:S}=v(t.DynamicConfigNames.enableUncategorizedExpenseCategory),I=S?.uncategorized_expense_category_enabled===!0,A=(z,L,ee,N)=>{const P={...B.current};P[L]==null&&(P[L]=[]);let E=P[L].findIndex(W=>W.lineId===z);if(E===-1){const W={lineId:z,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};P[L].push(W),E=P[L].length-1}else{const W=P[L][E];P[L][E]={...W,category:{...W.category,recommendationTypesViewed:[...W.category.recommendationTypesViewed]},class:{...W.class,recommendationTypesViewed:[...W.class.recommendationTypesViewed]},vendor:{...W.vendor,recommendationTypesViewed:[...W.vendor.recommendationTypesViewed]}}}N!=null&&N!==""&&!P[L][E][ee].recommendationTypesViewed.includes(N)&&P[L][E][ee].recommendationTypesViewed.push(N),B.current=P},{transactions:q,transactionLocalData:T,accountsHierarchyList:J,classHierarchyList:D,accountList:V,classList:K,selectedCheckBoxTransactionIds:U,uncategorizedAccounts:M}=s,te=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>zs(U,T,J,D,u.entityAutoCompleteView),[J,D,U,T,u.entityAutoCompleteView]),values:m.useMemo(()=>zs(U,T,J,D,u.entityAutoCompleteView),[J,D,U,T,u.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});m.useEffect(()=>()=>{r("expenseAutomationPage")},[]),m.useEffect(()=>{U.length>0?r(fn):r("expenseAutomationPage")},[U,r]);const ge=te.handleSubmit(z=>{const L=z[an],ee=B.current;j(e,L,ee),L.forEach(N=>{delete B.current[N]})}),ne=async(z,L)=>{if(z!=null){if(z===an){const ee=te.getValues(an);if(ee.length<U.length){C(e,ee);return}if(ee.length===H.MAX_SELECTION_LIMIT){C(e,ee);return}const N=ee[ee.length-1],P=L[Tt].findIndex(W=>W.transactionId===N),E=te.getValues(`${Tt}.${P}.lineInfo`);if(E!=null){let W=!1;if(E.every(O=>(W=H.isAccountUncategorized(M,O[be].selectedOption,I?["income"]:void 0),!!O[be].selectedOption&&O[be].selectedOption!=null&&!W&&!!O[qe].selectedOption&&!!O[Qe].selectedOption))===!0){C(e,ee);return}else{const O=ee.filter(F=>F!==N);C(e,O);return}}return}if(z.includes(be)===!0||z.includes(qe)===!0){const ee=parseInt(z.split(".")[1]),N=parseInt(z.split(".")[3]),P=te.getValues(`${Tt}.${ee}.lineInfo`),E=P[N];if(z.includes(be)||z.includes(qe)){const{transactionId:W,lineId:Y,recommendations:O}=E;if(P!=null){const F=E[be].selectedOption,G=E[qe].selectedOption,Z=E[Qe].selectedOption,fe=E[Qe].selectedOption,Ee=E[Qe].defaultOptions,ce=Ee?.find(le=>le.options?.find(Me=>Me.value===Z))?.options?.find(le=>le.value===Z)?.label,R=Ee?.find(le=>le.options?.find(Me=>Me.value===fe))?.options?.find(le=>le.value===fe)?.label,re=u.entityAutoCompleteView.vendor.find(le=>le.qboId===Z),ye=u.entityAutoCompleteView.customer.find(le=>le.qboId===fe),Oe=O.find(le=>le.vendor?.qboId===Z)?.vendor,we=Z||re?.qboId||Oe?.qboId?{id:Z??re?.qboId??Oe?.qboId??"",name:ce??re?.name??Oe?.name??"",logo:re?.logo??Oe?.logo}:void 0,Ie=fe||ye?.qboId?{id:fe??ye?.qboId??"",name:R??ye?.name??"",logo:ye?.logo}:void 0,xe=V.find(le=>le.qboId===F),Ue=K.find(le=>le.classId===G),ze=s.transactionLocalData.find(le=>le.transactionId===W)?.transactionReviewLocalData.lineItemById[Y].account,He=s.transactionLocalData.find(le=>le.transactionId===W)?.transactionReviewLocalData.lineItemById[Y].class;x(e,W,Y,q,we?.id,Ie?.id,z.includes(be)&&xe!=null?{...xe,isPreFilled:!1}:ze,z.includes(qe)&&Ue!=null?{...Ue,isPreFilled:!1}:He,void 0,O,I)}return}}if(z.includes(Qe)){const ee=parseInt(z.split(".")[1]),N=parseInt(z.split(".")[3]),P=te.getValues(`${Tt}.${ee}.lineInfo`);if(P!=null){const E=P[N],{transactionId:W,recommendations:Y}=E,O=E[Qe].selectedOption,F=E[Qe].selectedOption,G=E[Qe].defaultOptions,Z=G?.flatMap(xe=>xe.options)?.find(xe=>xe.value===O)?.label,fe=G?.flatMap(xe=>xe.options)?.find(xe=>xe.value===F)?.label,Ee=u.entityAutoCompleteView.vendor.find(xe=>xe.qboId===O),ce=u.entityAutoCompleteView.customer.find(xe=>xe.qboId===F),R=Y.find(xe=>xe.vendor?.qboId===O)?.vendor,re=O!==""&&O!=null?O:Z!==""&&Z!=null?Z:"",ye=(Ee?.qboId!=null&&Ee.qboId!==""?Ee.qboId:null)??(R?.qboId!=null&&R.qboId!==""?R.qboId:null)??(O!=null&&O!==""?O:null),Oe={id:ye??Z??"",name:Z??Ee?.name??R?.name??"",logo:Ee?.logo??R?.logo},we=ce?.qboId!=null&&ce.qboId!==""?{id:ce.qboId??F??"",name:fe??ce.name??"",logo:ce.logo}:void 0,Ie=q.find(xe=>xe.id===W);if(Ie!=null){const xe=s.transactionLocalData.find(Me=>Me.transactionId===Ie.id)?.transactionReviewLocalData,Ue=xe?.lineItemById[E.lineId],ze=H.isVendorTransaction(Ie)===!0?xe?.selectedEntity:Ue?.selectedEntityLine,He=we?.id!=null&&we.id!==""?{id:we.id,name:we.name,type:"customer",qboId:we.id,zeniId:we.id,logo:we.logo}:Oe.id!==""&&Oe.id!=null?{id:re,name:Z??re,type:"vendor",qboId:re,zeniId:re,logo:Oe.logo,isPreFilled:ze?.id===ye&&ze?.isPreFilled}:void 0,le={transactionId:{id:Ie.id,type:Ie.type},transaction:Ie,lineIds:Ie.type!=="journal_entry"?Ie.lines?.map(Me=>Me.id)??[]:[E.lineId]};He?.type==="customer"?g(E.amount.amount,le,!1,e,He,we,I):b(E.amount.amount,le,!1,e,He,Oe,I)}}o.onCancelAutoComplete?.();return}}};m.useEffect(()=>{const z=te.watch((L,{name:ee})=>{ee!=null&&L!=null&&n.defer(()=>ne(ee,L))});return()=>{z.unsubscribe()}}),m.useEffect(()=>{if(u.entityAutoCompleteView.fetchState==="Completed"){const z=s.transactionLocalData.find(L=>L.transactionId===w.transactionId);if(z){const{transactionReviewLocalData:L}=z,{selectedEntity:ee}=L,N=w?.lineItemId??L.sortedLineItems[0],P=L.lineItemById[N],E=P.selectedEntityLine;$.current?.(t.getGroupedForPayeeEntityOptionsWithCOT(u.entityAutoCompleteView,ee??E,P?.recommendationsWithCOT??[]))}_({transactionId:void 0,lineItemId:void 0})}},[u.entityAutoCompleteView.fetchState]);const Q=(z,L)=>{o.onAutoCompleteInputChange?.(z),$.current=L},ae=m.useRef(null);return n.jsxRuntimeExports.jsx(mu,{ref:ae,"data-testid":t.generateDataTestId("transaction-categorization-list-page"),children:n.jsxRuntimeExports.jsx(n.FormProvider,{...te,children:n.jsxRuntimeExports.jsx("form",{id:Fs(fn),onSubmit:ge,style:{height:"100%",width:"100%"},"data-testid":t.generateDataTestId(Fs(fn)),children:n.jsxRuntimeExports.jsx(Yd,{selectedTab:e,sectionId:p,transactionView:s,receiptUploadEndpoint:l,authParams:a,setCurrentTransactionInAction:_,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onTransactionCategorizationRowClick:d,vendorLoadOptions:Q,vendorSearchAutoCompleteData:u,vendorSearchAutoCompleteActions:o,containerRef:ae,isCOTEnabled:c,cotTracking:{onCOTView:A},isUncategorizedExpenseCategoryEnabled:I})})})})},Fs=e=>`${e}_form`,zs=(e,s,l,a,p)=>({[Tt]:s.map(o=>pu(o.transactionId,o.transactionReviewLocalData,l,a,p)),[an]:e}),pu=(e,s,l,a,p)=>{const{lineItemById:u,sortedLineItems:o,selectedEntity:c}=s,r=Object.values(u).sort((d,h)=>o.indexOf(d.lineId)-o.indexOf(h.lineId)),x=r[0]?.lineId;return{[jo]:r.map(d=>{const h=d.account?.qboId??d.account?.accountId,f=d.class?.classId,y=d.selectedEntityLine;return{id:d.id,transactionId:d.transactionId,type:d.type,amount:d.amount,lineDetailType:d.lineDetailType,platformLineDetailType:d.platformLineDetailType,lineTransactionType:d.lineTransactionType,postingType:d.postingType,postingTypeName:d.postingTypeName,customer:d.customer,vendor:d.vendor,billable:d.billable,item:d.item,isCategoryMiscategorized:d.isCategoryMiscategorized,isClassMiscategorized:d.isClassMiscategorized,lineId:d.id,[be]:{selectedOption:h,allOptions:t.getGroupedAccountOptionsWithCOT(l,d.recommendationsWithCOT)},[qe]:{selectedOption:f,allOptions:t.getGroupedClassOptionsWithCOT(a,d.recommendationsWithCOT)},[Qe]:{selectedOption:c?.id??y?.id??c?.name??y?.name,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(p,c??y,s.lineItemById[x]?.recommendationsWithCOT??[])},[jd]:d.lineEntity,[fd]:d.recommendationsWithCOT??[]}}),transactionId:e,[yd]:s.vendorDetails!=null&&s.vendorDetails.id!=null?{id:s.vendorDetails.id,qboId:s.vendorDetails.qboId,name:s.vendorDetails.name}:void 0,[Sd]:s.customerDetails!=null&&s.customerDetails.id!=null?{id:s.customerDetails.id,qboId:s.customerDetails.qboId,name:s.customerDetails.name}:void 0}},mu=i.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
+ `,Hs={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},xu=i.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
+ `,hu=i.div`
1513
+ display: flex;
1514
+ flex-direction: column;
1515
+ width: 100%;
1516
+ `,gu=e=>{const{currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setResetJeAccountSettingsForm:p,expenseAutomationViewSelector:u,authParams:o,receiptUploadEndpoint:c,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,enableMonthEndInsightsZeniGPTFeature:h,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:y,allThreadsSectionOpen:j,loggedInUser:C,isCOTEnabled:b,setCurrentFooterFormId:g,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:_,onTransactionCategorizationRowClick:$,onFetchMissingReceiptsList:B,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:S,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onReconTabColumnSortConfigChanged:q,onReloadReconciliationListPage:T,onUpdateReconcileTabLocalData:J,onUpdateMissingReceiptsUIState:D,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:U,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:te,onJESchedulesFormDataChange:ge,onPostJESchedule:ne,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:L,onUpdateSelectedCheckboxTransactionIds:ee,improveMonthEndInsightsUsingZeniGPTClick:N,onRemoveFileAttachment:P,onUpdateFileAttachment:E,onCloseAllThreadsSection:W,onEditMonthEndInsightsClick:Y,previewMonthEndReport:O,saveMonthEndReport:F,onOpenFileAttachmentSnackBar:G,onCloseFileAttachmentSnackBar:Z,onClickCustomerRequest:fe,sendMonthEndReport:Ee,markAsReview:ce,onReloadPage:R,updateOperatingExpensesIdsForReview:re,onFetchReimbursementView:ye,updateSectionIdsForReview:Oe,onUpdateFluxAnalysisUIState:we,fetchFluxViewOnScroll:Ie,onFetchFluxViewList:xe,setIsJeAccountSettingsOpened:Ue,onReviewClicked:ze,setOpenDrawerClicked:He,onEstablishConnectionClick:le,onFetchLinkTokenClick:Me,updateReconReviewTabLocalData:Je,onReconReviewTabColumnSortConfigChanged:St,onSaveReconciliation:Ye,onSaveReconciliationReview:ot,onReconMatchedTransactionClick:ut,onAddStatementClick:Rt,redirectToVendorDetailPage:pt}=e,{currentSelectedView:se,missingReceipts:ue,transactionView:Re,selectedPeriod:he,monthEndInsights:De,selectedTransactionCategorizationTab:mt,reconciliation:it}=u;switch(se){case"transaction_categorization":return Re.fetchState==="Completed"&&Re.transactionLocalData.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(uu,{setCurrentFooterFormId:g,selectedPeriod:he,selectedTab:mt,sectionId:Tt,transactionView:Re,receiptUploadEndpoint:c,authParams:o,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:U,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:$,setLocalDataForCategoryAndClass:Q,resetTransactionCategorizationLocalData:ae,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:L,onUpdateSelectedCheckboxTransactionIds:ee,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onFetchRecommendationsForEntityCategorization:w,onFetchRecommendationsForEntityCategorizationWithCustomer:_,isCOTEnabled:b});case"je_schedules":return n.jsxRuntimeExports.jsx($c,{setIsJeAccountSettingsOpened:Ue,expenseAutomationViewSelector:u,setResetJeAccountSettingsForm:p,currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setCurrentFooterFormId:g,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:te,onJESchedulesFormDataChange:ge,onPostJESchedule:ne,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d});case"missing_receipts":return ue.fetchState==="Completed"&&ue.transactions.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(jl,{onUpdateMissingReceiptsUIState:D,onFetchMissingReceiptsList:B,missingReceipts:ue,receiptUploadEndpoint:c,authParams:o,selectedPeriod:he,onMissingReceiptsRowClick:v,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onUploadReceiptAttachment:S});case"month_end_insights":if(De!=null&&u.monthEndCloseChecksView.monthEndCloseChecks!=null){if(De.fetchState==="Not-Started"||De.fetchState==="In-Progress"||De.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||De.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return n.jsxRuntimeExports.jsx(vo.BusyIndication,{fetchState:"In-Progress"});{const xt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:De.companyName,url:window.location.href},{url:Nt,...Ge}=xt,kt={...Ge};return n.jsxRuntimeExports.jsx(hu,{children:n.jsxRuntimeExports.jsx(ql,{allThreadsSectionOpen:j,customerRequestData:y,companyId:r,enableZeniGPTFeature:h,filterMetaData:kt,selectedPeriod:u.selectedPeriod,improveUsingZeniGPTClick:N,isZeniUser:C?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:De,newThreadMetadata:xt,onClickCustomerRequest:fe,onCloseAllThreadsSection:W,onCloseFileAttachmentSnackBar:Z,onOpenFileAttachmentSnackBar:G,onRemoveFileAttachment:P,onUpdateFileAttachment:E,previewMode:f,previewMonthEndReport:O,saveMonthEndReport:F,onEditClick:Y,sendMonthEndReport:Ee})})}}else return null;case"flux_analysis":return u.fluxAnalysis.fetchStatus.fetchState==="Completed"&&u.fluxAnalysis.sections.generalExpense.vendors.length===0&&u.fluxAnalysis.sections.reimbursement.vendors.length===0?n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(rc,{fluxAnalysis:u.fluxAnalysis,selectedPeriod:u.selectedPeriod,markAsReview:ce,onReloadPage:R,updateOperatingExpensesIdsForReview:re,updateSectionIdsForReview:Oe,onUpdateFluxAnalysisUIState:we,setCurrentFooterFormId:g,fetchFluxViewOnScroll:Ie,onFetchFluxViewList:xe,onFetchReimbursementView:ye,redirectToVendorDetailPage:pt});case"reconciliation":return n.jsxRuntimeExports.jsx(Va,{onReloadReconciliationListPage:T,currentFooterFormId:s,reconciliation:it,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onReviewClicked:ze,setOpenDrawerClicked:He,setCurrentFooterFormId:g,onReconTabColumnSortConfigChanged:q,onUpdateReconcileTabLocalData:J,onEstablishConnectionClick:le,onFetchLinkTokenClick:Me,updateReconReviewTabLocalData:Je,onReconReviewTabColumnSortConfigChanged:St,onSaveReconciliation:Ye,onSaveReconciliationReview:ot,onReconMatchedTransactionClick:ut,onAddStatementClick:Rt});default:return n.jsxRuntimeExports.jsx(dt,{tab:se,title:Ne(se).allDoneText.title,subTitle:Ne(se).allDoneText.subTitle})}};function ju(e){const s=t.useWindowSizeContext(),{currentSelectedView:l}=e.expenseAutomationViewSelector,a=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",p=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return n.jsxRuntimeExports.jsx(xu,{windowSize:s,style:{...p===!0?{paddingLeft:Hs.subSectionContainerLeftRightPadding.value(s),paddingRight:Hs.subSectionContainerLeftRightPadding.value(s)}:{paddingLeft:t.sp[0],paddingRight:t.sp[0]},...a===!0||l==="reconciliation"?{paddingLeft:t.sp[0],paddingRight:t.sp[0]}:{}},children:n.jsxRuntimeExports.jsx(gu,{...e})})}const fu=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),yu=e=>k.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.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"}),k.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Su=i.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
+ `,Ru=i.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: ${t.Space.sp0};
1535
+ }
1536
+ `,Ws=i(t.SvgArrowTailRight)`
1537
+ height: ${t.Space.sp3};
1538
+ width: ${t.Space.sp3};
1539
+ cursor: pointer;
1540
+ color: inherit;
1541
+ `,Vs=i(fu)`
1542
+ height: ${t.Space.sp3};
1543
+ width: ${t.Space.sp3};
1544
+ cursor: pointer;
1545
+ color: inherit;
1546
+ `,{common:{footer:ke,texts:{maxLimitReached:Cu,confirmAction:Eu},headers:vu,create:bu,strings:Ft,texts:Mt,cancel:wu,confirm:Iu,monthsByIndex:Tu},dateFormat:{visual:{MMMDCommaYYYYformat:qs}},expenseAutomation:zt}=t.appLocale.getLocalizedStrings(),ku=e=>{const{expenseAutomationViewSelector:s,isDisabled:l,isRealtimeInsightsFeatureEnabled:a,isUncategorizedExpenseCategoryEnabled:p,isCOTEnabled:u,onUpdateTab:o,onReconTabUpdate:c,onUpdateStep:r,onSearchTextChanged:x,onRefresh:d,onClose:h,onBack:f,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:j,clearJeScheduleLocalData:C,onSaveReconciliation:b}=e,{currentSelectedView:g,allSteps:w,missingReceipts:_,jeSchedules:$,fluxAnalysis:B,monthEndInsights:v,transactionView:S,selectedTransactionCategorizationTab:I,reconciliation:A,selectedPeriod:q}=s,[T,J]=m.useState("expenseAutomationPage"),[D,V]=m.useState(()=>{}),[K,U]=m.useState(!1),M=t.useWindowSizeContext(),te=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ge=te?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:ne,setOpenThread:Q}=m.useContext(ge),[ae,z]=m.useState(!1),[L,ee]=m.useState(!1),N=w.find(se=>se.step===g),{nextStep:P,previousStep:E}=Ro(w,g),{uiState:{searchString:W,pageToken:Y},totalCountByTab:O,transactions:F,fetchStateByTransactionTabs:G,transactionLocalData:Z}=S,{selectedReconAccount:fe,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Ee}}}}=A;let ce="Not-Started",R="complete";switch(g){case"missing_receipts":ce=_.refreshStatus.fetchState,R=_.completionStatus;break;case"je_schedules":ce=$.refreshStatus.fetchState,R=$.completionStatus;break;case"month_end_insights":v!=null&&(ce=v?.fetchState);break;case"flux_analysis":ce=B.refreshStatus.fetchState,R=B.completionStatus;break;case"transaction_categorization":ce=S.refreshStatus.fetchState,R=S.completionStatus;break;case"reconciliation":fe==null?(ce=A.refreshStatus.fetchState,R=A.completionStatus):(ce=A.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",R=A.completionStatus)}const re=()=>{D()},{saveStatus:ye,selectedCheckBoxTransactionIds:Oe}=S,we=()=>{const se=co(s.fluxAnalysis.sections,s.fluxAnalysis.reviewOperatingExpensesIds),ue=H.dateNow(),{month:Re,year:he}=q,mt=H.dateNow().set("month",Re-1).set("year",he).endOf("month");switch(T){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:se===!0?ke.markAsReviewed:Mt.undo,style:{justifyContent:"space-evenly"},isLoading:s.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:wn(s.fluxAnalysis.reviewOperatingExpensesIds.length,Ae.FLUX_MAX_SELECTION_LIMIT,M,Mt.vendor,g),cancelBtn:{label:ke.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{j([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:ye.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:wn(Oe.length,H.MAX_SELECTION_LIMIT,M,Mt.transaction,g),cancelBtn:{label:ke.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(I,F.map(it=>it.id),q,!1,O[I],H.getLineItemsByTransactionIdsFromLocalData(Z,I),p,Y)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:ke.next,backBtnLabel:ke.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.next,style:{justifyContent:"space-evenly"},isDisabled:l||N?.isNextDisabled,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{r(P.step)}},cancelBtn:{label:ke.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{r(E.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:ke.reconcile,backBtnLabel:ke.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.reconcile,onClick:()=>{b({reconcileAction:"reconcile"})},isDisabled:!(A.reconciliationTabsState.balances.variance.amount===0&&ue.isAfter(mt)),isLoading:A.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:wn(Ee.length,1/0,M,Mt.transaction,g),cancelBtn:{onClick:()=>{b({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:A.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:ke.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:ke.save,backBtnLabel:ke.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ke.save,isLoading:$.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>re(),label:ke.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const it=g==="reconciliation"&&s.reconciliation.selectedTab==="review"&&s.reconciliation.selectedAccountId!=null,xt=g==="reconciliation"&&s.reconciliation.selectedAccountId==null,Nt=g==="reconciliation"&&s.reconciliation.selectedTab==="reconcile"&&s.reconciliation.selectedAccountId!=null,Ge=P.step==="month_end_insights"&&(g==="flux_analysis"&&(s.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||s.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||xt),kt=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="review",Wt=g==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="autoCategorized",Vt=s.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(a||N?.isNextDisabled===!1),cn=P.step==="month_end_insights"&&(xt||g==="flux_analysis")?!Vt:N?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:ke.next,backBtnLabel:ke.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ge===!0?Lu(s.selectedPeriod.month):ke.next,style:{justifyContent:"space-evenly"},isDisabled:cn,suffixIcon:n.jsxRuntimeExports.jsx(Ws,{}),onClick:()=>{kt?o("autoCategorized"):it?c("reconcile"):r(P.step)}},cancelBtn:{label:ke.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(Vs,{}),onClick:()=>{Wt?o("review"):Nt?c("review"):it?f():r(E.step)}}}}}},Ie=()=>{switch(T){case"expenseAutomationFluxPage":return{confirmAction:()=>{z(!1),j([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{z(!1),y(I,F.map(se=>se.id),q,!1,O[I],H.getLineItemsByTransactionIdsFromLocalData(Z,I),p,Y),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{z(!1),C(),h()}};default:return{confirmAction:()=>{z(!1)},confirmationDescription:Ft.empty}}},xe=()=>{T==="expenseAutomationFluxPage"||T==="expenseAutomationJESchedulePage"||T==="expenseAutomationTransactionsPage"?z(!0):h()},{primaryBtn:Ue,cancelBtn:ze,leftSideComponent:He}=we(),{confirmAction:le}=Ie(),Me=se=>{if(g==="transaction_categorization"&&(se==="autoCategorized"||se==="review"))return{hideCountInTab:O[se]>zt.common.numbers.maximumCount,count:O[se],isFetching:G[se].fetchState==="In-Progress"};if(g==="reconciliation"){const{reconciliation:ue}=s,{selectedAccountId:Re}=ue;return Re==null?{count:0,isFetching:!1}:se==="review"?{count:ue.accountReconciliationsByAccountID[Re]?.accountReconEntity?.transactionsToReview.length,isFetching:ue.accountReconciliationsByAccountID[Re]?.transactionFetchState.fetchState==="In-Progress"}:{count:ue.accountReconciliationsByAccountID[Re]?.accountReconEntity?.transactionsToReconcile.length,isFetching:ue.accountReconciliationsByAccountID[Re]?.transactionFetchState.fetchState==="In-Progress"}}},Je=g==="reconciliation"&&A.selectedAccountId!=null&&A.selectedReconAccount!=null,{month:St,year:Ye}=q,ot=H.dateNow().set("month",St-1).set("year",Ye),ut=ot.startOf("month").format(qs),Rt=ot.endOf("month").format(qs),pt=`${ut} ${Ft.hyphen} ${Rt}`;return n.jsxRuntimeExports.jsxs(Su,{children:[ae?n.jsxRuntimeExports.jsx(t.ConfirmationPopup,{containerStyle:{width:356},titleComponent:n.jsxRuntimeExports.jsx(Eo,{children:Eu}),primaryButtonText:Iu,secondaryButtonText:wu,proceedButtonVariant:"danger",action:{onOkClick:()=>{le()},onCancelClick:()=>z(!1)},descriptionComponent:n.jsxRuntimeExports.jsx(Bu,{children:zt.confirmationDescription})}):null,n.jsxRuntimeExports.jsxs(Ru,{children:[n.jsxRuntimeExports.jsx(ai,{onBack:f,navBarCustomElement:g==="reconciliation"&&A.selectedAccountId!=null?n.jsxRuntimeExports.jsx($u,{reconciliation:A}):void 0,onReconTabUpdate:c,currentRecontab:A.selectedTab,reconcileDetailPageFetchState:A.selectedAccountId!=null?A.accountReconciliationsByAccountID[A.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:Je?A.selectedAccountId:void 0,currentSelectedView:g,titleStyle:{justifyContent:"center",marginLeft:t.Space.sp0},headerData:Ne(g,O.autoCategorized,Je?A.selectedAccountId:void 0,Je?A.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,Je?pt:void 0),searchText:W,currentTab:I,getTabCountAndFetchState:Me,completionStatus:R,forceShowSubtitle:K===!0||g==="je_schedules"&&($.fetchState==="In-Progress"||$.accountSettingsView.fetchState==="In-Progress"),refreshStatus:ce,companyId:e.companyId,companyName:s.monthEndInsights?.companyName??Ft.empty,isZeniUser:te,onAllThreadsClick:()=>{ne!=null&&Q(null),ee(!0)},onUpdateTab:o,onSearchTextChanged:x,onRefresh:d,onClose:xe}),n.jsxRuntimeExports.jsx(ju,{...e,isCOTEnabled:u,setIsJeAccountSettingsOpened:U,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:L,setCurrentFooterFormId:J,currentFooterFormId:T,onCloseAllThreadsSection:()=>ee(!1)}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:g!=="month_end_insights",children:n.jsxRuntimeExports.jsx(t.Footer,{style:{width:"-webkit-fill-available",maxHeight:t.sp[8]},formId:Co(T),primaryBtn:Ue,leftSideComponent:He,cancelBtn:ze,separatorStyle:{marginRight:t.Space.sp4}})})]})]})},$u=({reconciliation:e})=>{const s=n.useTheme(),{clearedBalance:l,variance:a,variancePercentage:p,deposits:u,payments:o}=e.reconciliationTabsState.balances,{balance:c}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:x}=r??{};return n.jsxRuntimeExports.jsx(Mu,{children:n.jsxRuntimeExports.jsxs(Nu,{children:[n.jsxRuntimeExports.jsxs(In,{style:{justifyContent:"flex-end",width:"50%"},children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(Pu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Ln,{children:t.amountToString("0,0.00",c)}),n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.bankBalance})]})})]}),n.jsxRuntimeExports.jsxs(In,{children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(zu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Ln,{children:t.amountToString("0,0.00",l)}),n.jsxRuntimeExports.jsxs(Wu,{children:[n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.clearedBalance}),n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",title:n.jsxRuntimeExports.jsxs(Vu,{children:[n.jsxRuntimeExports.jsxs(Us,{children:[n.jsxRuntimeExports.jsxs(Gs,{children:[o.count," ",Mt.payments]}),n.jsxRuntimeExports.jsx(Ks,{children:t.amountToString("0,0.[00]",o.totalAmount)})]}),n.jsxRuntimeExports.jsxs(Us,{children:[n.jsxRuntimeExports.jsxs(Gs,{children:[u.count," ",Mt.deposits]}),n.jsxRuntimeExports.jsx(Ks,{children:t.amountToString("0,0.[00]",u.totalAmount)})]})]}),display:"flex",children:n.jsxRuntimeExports.jsx(Hu,{})})]})]})})]}),n.jsxRuntimeExports.jsxs(In,{style:{justifyContent:"flex-start",width:"50%"},children:[n.jsxRuntimeExports.jsx(Tn,{children:n.jsxRuntimeExports.jsx(Fu,{})}),n.jsxRuntimeExports.jsx(kn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(An,{children:[n.jsxRuntimeExports.jsx(_t,{height:25,width:120}),n.jsxRuntimeExports.jsx(_t,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Ln,{children:[n.jsxRuntimeExports.jsx("span",{style:{color:a.amount===0?s.colors.brandColorJadeDark:s.colors.primary},children:t.amountToString("0,0.00",a)}),p!=null&&a.amount!==0?n.jsxRuntimeExports.jsx("span",{style:{color:s.colors.primary,marginLeft:2},children:`(${p.toFixed(2)}%)`}):null]}),n.jsxRuntimeExports.jsx($n,{children:zt.accountRecon.reconciliation.headers.variance})]})})]})]})})},wn=(e,s,l,a,p)=>{const u=a,o=(e>1?u+"s":u)+" selected";return e>0?n.jsxRuntimeExports.jsxs(Au,{currentView:p,style:l==="small"?{position:"absolute",top:t.Space.sp2,left:`-${t.Space.sp5}`}:{},children:[n.jsxRuntimeExports.jsx(Ou,{multiDigit:e>=5,children:e}),n.jsxRuntimeExports.jsx(Du,{children:o}),e===s?n.jsxRuntimeExports.jsx(_u,{children:`(${Cu})`}):null]}):null},Lu=e=>{const s=Tu[e];return`${bu}${Ft.space}${s}${Ft.space}${vu.insights}`};function Ro(e,s){const l=e.findIndex(c=>c.step===s);if(l===-1)throw new Error("currentStep not found in allSteps array");const a=(l+1)%e.length,p=(l-1+e.length)%e.length,u=e[a],o=e[p];return{nextStep:u,previousStep:o}}const Co=e=>`${e}_form`,Au=i.div`
1547
+ display: flex;
1548
+ justify-content: flex-start;
1549
+ align-items: center;
1550
+ gap: ${t.Space.sp2};
1551
+ margin-left: ${e=>e.currentView==="flux_analysis"?"36px":t.Space.sp8};
1552
+ `,Ou=i(t.ExtraSmallRegular)`
1553
+ height: 18px;
1554
+ width: ${e=>e.multiDigit?"auto":"18px"};
1555
+ padding: ${t.Space.sp0} 6px;
1556
+ border-radius: ${t.Space.sp12};
1557
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
1558
+ display: flex;
1559
+ justify-content: center;
1560
+ align-items: center;
1561
+ `,Du=i(t.StandardRegular)`
1562
+ color: ${e=>e.theme.colors.primary};
1563
+ `,_u=i(t.SmallRegular)`
1564
+ color: ${t.Colors.important};
1565
+ `,Eo=i(t.H6Medium)`
1566
+ margin-top: ${t.Space.sp5};
1567
+ padding-left: ${t.Space.sp8};
1568
+ padding-right: ${t.Space.sp8};
1569
+ color: ${e=>e.theme.colors.primary};
1570
+ word-break: break-word;
1571
+ `,Bu=i(t.ConfirmationPopUpDescription)`
1572
+ color: ${e=>e.theme.colors.primary};
1573
+ margin-top: ${t.Space.sp2};
1574
+ margin-bottom: ${t.Space.sp2};
1575
+ `,Mu=i.div`
1576
+ display: flex;
1577
+ justify-content: center;
1578
+ align-items: center;
1579
+ padding: ${t.Space.sp3} ${t.Space.sp0};
1580
+ `,Nu=i.div`
1581
+ width: 100%;
1582
+ display: flex;
1583
+ justify-content: center;
1584
+ align-items: center;
1585
+ gap: ${t.Space.sp1};
1586
+ `,In=i.div`
1587
+ display: flex;
1588
+ justify-content: center;
1589
+ align-items: center;
1590
+ gap: ${t.Space.sp3};
1591
+ `,Tn=i.div`
1592
+ width: ${t.Space.sp7};
1593
+ height: ${t.Space.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
+ `,kn=i.div`
1600
+ display: flex;
1601
+ flex-direction: column;
1602
+ `,$n=i(t.SmallRegular)`
1603
+ color: ${e=>e.theme.colors.hero};
1604
+ `,Ln=i(t.LargeSemiBold)`
1605
+ min-width: 180px;
1606
+ color: ${e=>e.theme.colors.primary};
1607
+ `,Pu=i(t.SvgBankBuilding)`
1608
+ color: ${e=>e.theme.colors.primary};
1609
+ width: ${t.Space.sp4};
1610
+ height: ${t.Space.sp4};
1611
+ `,Fu=i(t.SvgCalculator)`
1612
+ color: ${e=>e.theme.colors.primary};
1613
+ width: ${t.Space.sp4};
1614
+ height: ${t.Space.sp4};
1615
+ `,zu=i(yu)`
1616
+ color: ${e=>e.theme.colors.primary};
1617
+ width: ${t.Space.sp4};
1618
+ height: ${t.Space.sp4};
1619
+ `,Hu=i(t.SvgInfo)`
1620
+ width: ${t.Space.sp3};
1621
+ height: ${t.Space.sp3};
1622
+ color: ${e=>e.theme.colors.hero};
1623
+ :hover {
1624
+ color: ${e=>e.theme.colors.primary};
1625
+ }
1626
+ `,Wu=i.div`
1627
+ display: flex;
1628
+ align-items: center;
1629
+ gap: ${t.Space.sp1};
1630
+ `,Vu=i.div`
1631
+ background-color: ${t.Colors.overlayDark};
1632
+ padding: 2px ${t.Space.sp2};
1633
+ border-radius: ${t.Space.sp1};
1634
+ `,Us=i.div`
1635
+ display: flex;
1636
+ justify-content: space-between;
1637
+ gap: ${t.Space.sp2};
1638
+ `,Gs=i.div`
1639
+ text-transform: capitalize;
1640
+ `,Ks=i(t.SmallRegular)`
1641
+ color: ${t.Colors.primaryDark};
1642
+ align-self: "flex-end";
1643
+ `,_t=i(t.RectangularContentLoader)`
1644
+ border-radius: ${t.Space.sp2};
1645
+ `,An=i.div`
1646
+ display: flex;
1647
+ flex-direction: column;
1648
+ min-width: 180px;
1649
+ gap: ${t.Space.sp1};
1650
+ `;exports.ConfirmationPopUpTitle=Eo;exports.default=ku;exports.getNextAndPreviousSteps=Ro;exports.uniqueFormName=Co;