@zeniai/web-components 3.16.72 → 3.16.74

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-BJUvS_t_.cjs +21 -0
  2. package/dist/ACHDetailsPage-Civ-hjb4.js +160 -0
  3. package/dist/AIPerformancePage-DoOT9Qtw.cjs +534 -0
  4. package/dist/AIPerformancePage-vs7Oof-v.js +1337 -0
  5. package/dist/AccountInfoPage-CUf8DVql.cjs +18 -0
  6. package/dist/AccountInfoPage-DTjz8sHP.js +78 -0
  7. package/dist/AccountInfoPageContent-ClxIrmLC.cjs +149 -0
  8. package/dist/AccountInfoPageContent-Cvv0FNF_.js +428 -0
  9. package/dist/AccountLockedInfoModal-CAyKbHb1.cjs +59 -0
  10. package/dist/AccountLockedInfoModal-DlL0oC1T.js +125 -0
  11. package/dist/AccountReconDetailsDrawerPage-C_IOpGm_.cjs +239 -0
  12. package/dist/AccountReconDetailsDrawerPage-D-czNoEF.js +686 -0
  13. package/dist/AccountRow-B7DP1QVa.js +1012 -0
  14. package/dist/AccountRow-BRdq8cRd.cjs +298 -0
  15. package/dist/AccountsPromoCardStack-A03zIYKT.js +664 -0
  16. package/dist/AccountsPromoCardStack-GhlKfPvt.cjs +207 -0
  17. package/dist/AddAddressForCardDrawer-CBZYkzm9.js +82 -0
  18. package/dist/AddAddressForCardDrawer-Vv03NJX_.cjs +6 -0
  19. package/dist/AddToWalletPage-__dVl72K.js +642 -0
  20. package/dist/AddToWalletPage-vcWtv00T.cjs +344 -0
  21. package/dist/AgingReportsPage-B61kEr1J.js +827 -0
  22. package/dist/AgingReportsPage-D4I_yveO.cjs +79 -0
  23. package/dist/AllUserItems-CwjAeOAE.cjs +192 -0
  24. package/dist/AllUserItems-IdB2Y93W.js +979 -0
  25. package/dist/ApAgingDetailPage-Bi2zGndj.js +239 -0
  26. package/dist/ApAgingDetailPage-CK7LNX7F.cjs +46 -0
  27. package/dist/AppBasePage-Bt3zjgaj.cjs +71 -0
  28. package/dist/AppBasePage-Cc3QSXcV.js +120 -0
  29. package/dist/AppDrawerContent-BgvDz1rv.js +379 -0
  30. package/dist/AppDrawerContent-DgpZkKyT.cjs +91 -0
  31. package/dist/ApprovalRulesSettingsPage-BcRG2gM5.cjs +47 -0
  32. package/dist/ApprovalRulesSettingsPage-YjDGbNO7.js +145 -0
  33. package/dist/ArAgingChart-DHNCllJs.js +529 -0
  34. package/dist/ArAgingChart-qTGZzdnZ.cjs +24 -0
  35. package/dist/ArAgingDetailPage-DrKHcO2j.cjs +46 -0
  36. package/dist/ArAgingDetailPage-DxZ-RwzJ.js +243 -0
  37. package/dist/AttachmentView-SiUwKkW9.js +260 -0
  38. package/dist/AttachmentView-gCxLgAgM.cjs +101 -0
  39. package/dist/BankAccountSection-BcyWa96a.cjs +79 -0
  40. package/dist/BankAccountSection-w_c5RDaM.js +398 -0
  41. package/dist/BankAccountWarningSection-BmjguElH.cjs +51 -0
  42. package/dist/BankAccountWarningSection-nDrxdWa_.js +110 -0
  43. package/dist/BankConnectionsSettingsPage-DUgXDxfH.cjs +425 -0
  44. package/dist/BankConnectionsSettingsPage-DrMX-X-x.js +1693 -0
  45. package/dist/BillDetailPage-C-qdfO45.js +1798 -0
  46. package/dist/BillDetailPage-DcKaow7t.cjs +266 -0
  47. package/dist/BillPayApprovalRuleDetailPage-DNqjx4U8.cjs +27 -0
  48. package/dist/BillPayApprovalRuleDetailPage-DvlZ2TIj.js +247 -0
  49. package/dist/BillPayApprovalRulesPage-D785-DNC.js +415 -0
  50. package/dist/BillPayApprovalRulesPage-DbOYbpUS.cjs +235 -0
  51. package/dist/BillPayPromoPage-Cuo3aBAc.cjs +84 -0
  52. package/dist/BillPayPromoPage-eig6mfYC.js +292 -0
  53. package/dist/BillPaySetUpPage-BuasV_bW.cjs +42 -0
  54. package/dist/BillPaySetUpPage-C95roq-T.js +409 -0
  55. package/dist/BillingSettingsPage-CTQvQ13m.js +336 -0
  56. package/dist/BillingSettingsPage-CxeD5dw1.cjs +44 -0
  57. package/dist/BillsBulkReviewDrawerPage-C6IUIG19.js +216 -0
  58. package/dist/BillsBulkReviewDrawerPage-CIjfsvtK.cjs +1 -0
  59. package/dist/BoxItem-BVAti2RB.cjs +53 -0
  60. package/dist/BoxItem-BhM-eeXW.js +118 -0
  61. package/dist/BusinessVerificationPage-CPq0o6aq.cjs +138 -0
  62. package/dist/BusinessVerificationPage-CguJfN-7.js +716 -0
  63. package/dist/BusyIndication-CJ1ZgHEB.cjs +9 -0
  64. package/dist/BusyIndication-LkpGVmDt.js +19 -0
  65. package/dist/CardNumberSubText-BrPhEmpL.cjs +21 -0
  66. package/dist/CardNumberSubText-J8gyOebV.js +59 -0
  67. package/dist/CashbackDetailPage-BVdyHf6p.js +824 -0
  68. package/dist/CashbackDetailPage-Cs7MoqUw.cjs +285 -0
  69. package/dist/ChargeCardDetailPage-BvnUnHUz.cjs +1462 -0
  70. package/dist/ChargeCardDetailPage-P-8q5-BB.js +5453 -0
  71. package/dist/ChargeCardListPage-DAxqQFas.cjs +406 -0
  72. package/dist/ChargeCardListPage-DTtIJi8u.js +1775 -0
  73. package/dist/ChargeCardListTable-BkGfLyLa.js +2871 -0
  74. package/dist/ChargeCardListTable-D4lo3v3r.cjs +711 -0
  75. package/dist/ChargeCardPromoPage-C7c5tpVs.js +813 -0
  76. package/dist/ChargeCardPromoPage-sL6liiL4.cjs +222 -0
  77. package/dist/ChargeCardSetupPage-DU4xjacW.js +359 -0
  78. package/dist/ChargeCardSetupPage-DvU3AzHN.cjs +36 -0
  79. package/dist/ChargeCardStatementsPage-C3VUGlI2.cjs +60 -0
  80. package/dist/ChargeCardStatementsPage-oK-0nmvp.js +243 -0
  81. package/dist/CheckDepositDrawerPage-CcDN-zPw.cjs +206 -0
  82. package/dist/CheckDepositDrawerPage-DMx9CRwj.js +726 -0
  83. package/dist/CollapsableReportTable-B_bvqF8w.cjs +2932 -0
  84. package/dist/CollapsableReportTable-_QtqEFPz.js +11758 -0
  85. package/dist/CompanyOfficerDetailsSection-AKUojIdi.js +1633 -0
  86. package/dist/CompanyOfficerDetailsSection-CUZAFsWG.cjs +260 -0
  87. package/dist/CompanyPassportCard-CjiEc73s.js +146 -0
  88. package/dist/CompanyPassportCard-DFhGENlJ.cjs +42 -0
  89. package/dist/CompanyPassportPage-BqxZ5QOm.cjs +574 -0
  90. package/dist/CompanyPassportPage-CI9KF4sA.js +2160 -0
  91. package/dist/CompleteProfile-D45xfn0z.js +301 -0
  92. package/dist/CompleteProfile-DC45Us80.cjs +52 -0
  93. package/dist/ConfettiBurst-DPCsWaBF.js +37 -0
  94. package/dist/ConfettiBurst-DpXVwnFQ.cjs +1 -0
  95. package/dist/CreateOrEditVendorPage-1mMsmOhv.js +755 -0
  96. package/dist/CreateOrEditVendorPage-CM6qQgqo.cjs +281 -0
  97. package/dist/CreditCardPaymentDrawerPage-CEU-jk7z.js +1169 -0
  98. package/dist/CreditCardPaymentDrawerPage-wF0380Jb.cjs +224 -0
  99. package/dist/CurrencySelectField-Bqlxd_mm.js +348 -0
  100. package/dist/CurrencySelectField-DjR1v76-.cjs +139 -0
  101. package/dist/CustomerOnboardingActivationPage-C4A1PECW.cjs +88 -0
  102. package/dist/CustomerOnboardingActivationPage-DC3SYawS.js +143 -0
  103. package/dist/CustomerOnboardingContainerPage-CrWdjDOf.cjs +1 -0
  104. package/dist/CustomerOnboardingContainerPage-muS4BRj6.js +7 -0
  105. package/dist/CustomerOnboardingDetailPageSkeleton-DQ1cqOA2.cjs +162 -0
  106. package/dist/CustomerOnboardingDetailPageSkeleton-DStNUgLr.js +434 -0
  107. package/dist/CustomerOnboardingNoStepsPage-e9FLcTLI.js +424 -0
  108. package/dist/CustomerOnboardingNoStepsPage-vA7aEESi.cjs +66 -0
  109. package/dist/CustomerOnboardingPage-BPOQ5Cks.js +1059 -0
  110. package/dist/CustomerOnboardingPage-D3nO-n37.cjs +107 -0
  111. package/dist/CustomerOnboardingProductSuitePage-C3r6pUEg.js +348 -0
  112. package/dist/CustomerOnboardingProductSuitePage-DQ2CUJ9z.cjs +202 -0
  113. package/dist/Dashboard-CSXnEpz4.cjs +1551 -0
  114. package/dist/Dashboard-DfdxlPMc.js +5539 -0
  115. package/dist/DashboardReportPage-C99TSdhM.cjs +371 -0
  116. package/dist/DashboardReportPage-CD3VB3Vi.js +2536 -0
  117. package/dist/DashboardSidebarBackgroundAnimation-D0IUEjXC.js +53 -0
  118. package/dist/DashboardSidebarBackgroundAnimation-MhsHxcui.cjs +12 -0
  119. package/dist/DepositAccTransactionItem-Dn0Uv1Fu.cjs +76 -0
  120. package/dist/DepositAccTransactionItem-m_tyYYue.js +112 -0
  121. package/dist/DepositAccTransactionListPage-C_LYJQsx.js +152 -0
  122. package/dist/DepositAccTransactionListPage-dyDRllmH.cjs +66 -0
  123. package/dist/DomesticWireDetailsPage-B7fSqA9C.js +189 -0
  124. package/dist/DomesticWireDetailsPage-CwCnnIur.cjs +21 -0
  125. package/dist/DownloadOverlay-Dl4oaG4C.js +2148 -0
  126. package/dist/DownloadOverlay-oe7fS7cQ.cjs +439 -0
  127. package/dist/DrawerPage-BYlz1mSb.js +208 -0
  128. package/dist/DrawerPage-DmdXl-Tz.cjs +118 -0
  129. package/dist/EditPeoplePage-DcAqz-pl.js +392 -0
  130. package/dist/EditPeoplePage-wVlS4jp0.cjs +55 -0
  131. package/dist/EditReimbursementDetailPage-NE7chham.cjs +865 -0
  132. package/dist/EditReimbursementDetailPage-ubCfR2_T.js +4530 -0
  133. package/dist/EmptySearchResults-DxGi6fWE.js +70 -0
  134. package/dist/EmptySearchResults-TPDfz2pf.cjs +46 -0
  135. package/dist/EntityDetailPage-CroZIQki.js +82 -0
  136. package/dist/EntityDetailPage-DeiBThjG.cjs +18 -0
  137. package/dist/EntitySummarySection-BLGMEc0P.cjs +149 -0
  138. package/dist/EntitySummarySection-F2vwavdD.js +530 -0
  139. package/dist/ExpenseAutomationOverviewPage-B7SceCDg.cjs +281 -0
  140. package/dist/ExpenseAutomationOverviewPage-Dmh2wsxa.js +806 -0
  141. package/dist/ExpenseAutomationPage-998OtGFi.js +11544 -0
  142. package/dist/ExpenseAutomationPage-xC_YQp2u.cjs +1650 -0
  143. package/dist/ExpressPayPage-BIxqIS5E.js +1136 -0
  144. package/dist/ExpressPayPage-BfvcS3LW.cjs +168 -0
  145. package/dist/FeaturePreviewPage-B8xhn_ZF.cjs +11 -0
  146. package/dist/FeaturePreviewPage-CJXzbVey.js +114 -0
  147. package/dist/FollowStepsSection-CX1EnAV2.cjs +390 -0
  148. package/dist/FollowStepsSection-ZCKYjvxo.js +1313 -0
  149. package/dist/GlobalReviewListPage-BKO1U08u.js +1674 -0
  150. package/dist/GlobalReviewListPage-DzZbDEVC.cjs +291 -0
  151. package/dist/InformationCardStack-BFMF2pd0.js +219 -0
  152. package/dist/InformationCardStack-BOaa_OLJ.cjs +31 -0
  153. package/dist/InsightsCardStack-CvOQ1KvE.js +305 -0
  154. package/dist/InsightsCardStack-nquv88g0.cjs +79 -0
  155. package/dist/InsightsSection-BfAWY9X9.cjs +27 -0
  156. package/dist/InsightsSection-CKK6uLYd.js +97 -0
  157. package/dist/IntegrationsSettingsPage-DLjmQ87m.js +136 -0
  158. package/dist/IntegrationsSettingsPage-DZ347zZm.cjs +57 -0
  159. package/dist/InternationalWireSwiftDetailsPage-c2PERgVI.js +753 -0
  160. package/dist/InternationalWireSwiftDetailsPage-hS9WDpkp.cjs +171 -0
  161. package/dist/InternationalWireVerificationPage-DQWGInc2.cjs +292 -0
  162. package/dist/InternationalWireVerificationPage-YHr-3xC8.js +877 -0
  163. package/dist/InviteFormPage-RP078595.js +873 -0
  164. package/dist/InviteFormPage-n39Qw45n.cjs +312 -0
  165. package/dist/InvitePageListView-Da2mFTg_.js +1764 -0
  166. package/dist/InvitePageListView-InYZ_pw4.cjs +739 -0
  167. package/dist/InvitePeoplePage-D8KId8Su.cjs +12 -0
  168. package/dist/InvitePeoplePage-DZxVHIQS.js +286 -0
  169. package/dist/InvoiceUploadSection-CTewF8Z4.cjs +140 -0
  170. package/dist/InvoiceUploadSection-DjqkGstr.js +465 -0
  171. package/dist/IssueChargeCardPage-DjBOdAi5.js +2875 -0
  172. package/dist/IssueChargeCardPage-HEVbHd-l.cjs +532 -0
  173. package/dist/LabeledAddressValue-BMIc78QL.js +115 -0
  174. package/dist/LabeledAddressValue-ClO5AXYQ.cjs +49 -0
  175. package/dist/LabeledAddressValueField-CCdx0B-r.cjs +45 -0
  176. package/dist/LabeledAddressValueField-CRg2vy91.js +130 -0
  177. package/dist/LabeledControlledCheckBoxField-DBHUcKk7.js +73 -0
  178. package/dist/LabeledControlledCheckBoxField-DF0p0M0E.cjs +16 -0
  179. package/dist/LabeledCreatableSingleSelectField-C-HVtxur.js +515 -0
  180. package/dist/LabeledCreatableSingleSelectField-C7f81Kzb.cjs +204 -0
  181. package/dist/LabeledDocumentField-BD5YBmiR.cjs +41 -0
  182. package/dist/LabeledDocumentField-DCh3mAT9.js +147 -0
  183. package/dist/LabeledDropDownFormattedTextField-GVbkr3k4.js +163 -0
  184. package/dist/LabeledDropDownFormattedTextField-iB-LOiSe.cjs +59 -0
  185. package/dist/LabeledEmailInputField-BQKczqbp.cjs +182 -0
  186. package/dist/LabeledEmailInputField-CmHyvQpy.js +425 -0
  187. package/dist/LabeledItemWithButton-2M7whAHx.cjs +21 -0
  188. package/dist/LabeledItemWithButton-C-HasWxC.js +74 -0
  189. package/dist/LabeledNameField-CtRm7N62.js +293 -0
  190. package/dist/LabeledNameField-DfQcbAFa.cjs +141 -0
  191. package/dist/LabeledSingleSelectField-DAkWM_kJ.js +372 -0
  192. package/dist/LabeledSingleSelectField-DGLqIA5H.cjs +136 -0
  193. package/dist/LabeledSingleSelectWithoutClearableField-CfCG7UAq.cjs +38 -0
  194. package/dist/LabeledSingleSelectWithoutClearableField-WKknbtnu.js +103 -0
  195. package/dist/LabeledText-BKLPRk8B.cjs +42 -0
  196. package/dist/LabeledText-C_s5HOTi.js +103 -0
  197. package/dist/LabeledUserSingleSelectWithSubtitlesField-D-h33NDY.js +572 -0
  198. package/dist/LabeledUserSingleSelectWithSubtitlesField-Ir921IJH.cjs +229 -0
  199. package/dist/LabeledZeniRolesDropDownField-BoInYFZz.cjs +297 -0
  200. package/dist/LabeledZeniRolesDropDownField-C6X11Tx7.js +975 -0
  201. package/dist/LinkJETransactionPage-DFZHJCAZ.cjs +98 -0
  202. package/dist/LinkJETransactionPage-aHwUbwR6.js +406 -0
  203. package/dist/LockCardPage-CIWJOi1x.js +2032 -0
  204. package/dist/LockCardPage-CMP_xjDX.cjs +623 -0
  205. package/dist/LowBalancePopup-C-lj7_wM.js +219 -0
  206. package/dist/LowBalancePopup-CllzQ83t.cjs +34 -0
  207. package/dist/MagicLinkACHDetailsPage-BHDmnAVl.cjs +1 -0
  208. package/dist/MagicLinkACHDetailsPage-zykkHMVq.js +39 -0
  209. package/dist/MagicLinkDomesticWireDetailsPage-DmS7rxFV.js +44 -0
  210. package/dist/MagicLinkDomesticWireDetailsPage-rMaklgXY.cjs +1 -0
  211. package/dist/MagicLinkInternationalWireDetailsPage-BiuAkCYk.cjs +1 -0
  212. package/dist/MagicLinkInternationalWireDetailsPage-DpZ45g3v.js +43 -0
  213. package/dist/MagicLinkSuccessPage-BkbGGR6k.js +59 -0
  214. package/dist/MagicLinkSuccessPage-C5CFA_UX.cjs +31 -0
  215. package/dist/MagicLinkTitleSection-CENDbjzS.js +40 -0
  216. package/dist/MagicLinkTitleSection-CQFkYEin.cjs +17 -0
  217. package/dist/MailingDetailsSection-4cUvQ6b5.cjs +21 -0
  218. package/dist/MailingDetailsSection-COmYIQbD.js +74 -0
  219. package/dist/MatchingOperatorDropdown-B6UdLpri.cjs +130 -0
  220. package/dist/MatchingOperatorDropdown-C7a9R7tK.js +572 -0
  221. package/dist/Menu-D6zmTxw8.js +110 -0
  222. package/dist/Menu-P7eTP5WT.cjs +17 -0
  223. package/dist/MoreMenuButton-B4ykbhqy.cjs +167 -0
  224. package/dist/MoreMenuButton-B6PZztqK.js +569 -0
  225. package/dist/MyBankConnectionsSettingsPage-BOr1xu2D.js +296 -0
  226. package/dist/MyBankConnectionsSettingsPage-K6NyHH8N.cjs +110 -0
  227. package/dist/MyPendingActivationChargeCardListPage-B25db3Rv.cjs +6 -0
  228. package/dist/MyPendingActivationChargeCardListPage-ChuncwL5.js +168 -0
  229. package/dist/MyProfileSettingsPage-CGBYS7yZ.js +641 -0
  230. package/dist/MyProfileSettingsPage-CP2mL7Ng.cjs +85 -0
  231. package/dist/NavBarWithPicker-DasMdFOM.cjs +30 -0
  232. package/dist/NavBarWithPicker-DtxIOn_L.js +106 -0
  233. package/dist/NavigationArrow-DUFjD5Lv.js +88 -0
  234. package/dist/NavigationArrow-b34CGuas.cjs +47 -0
  235. package/dist/NavigationDots-D8fNfG66.js +44 -0
  236. package/dist/NavigationDots-DPPP_qeu.cjs +15 -0
  237. package/dist/NewGlobalMerchantPage-BbwnsGnt.cjs +160 -0
  238. package/dist/NewGlobalMerchantPage-DPofEhho.js +543 -0
  239. package/dist/NoDataChart-CIZF6zQW.cjs +26 -0
  240. package/dist/NoDataChart-DW_NxUoK.js +58 -0
  241. package/dist/NoDataTable-BFn7T_ov.js +27 -0
  242. package/dist/NoDataTable-BeQmFY7d.cjs +8 -0
  243. package/dist/NotFoundPage-COTSHX2J.cjs +46 -0
  244. package/dist/NotFoundPage-FMxGFScD.js +71 -0
  245. package/dist/NotificationSettingsPage-CAUjXMoP.js +541 -0
  246. package/dist/NotificationSettingsPage-DmdZgFul.cjs +163 -0
  247. package/dist/NotificationsListConfig-C6BzO9MN.js +10 -0
  248. package/dist/NotificationsListConfig-CDE-YVjk.cjs +1 -0
  249. package/dist/NotificationsPage-BMlpQZeB.cjs +685 -0
  250. package/dist/NotificationsPage-Cg6xjOSZ.js +2664 -0
  251. package/dist/OpExByVendorPage-LmF45b_e.cjs +100 -0
  252. package/dist/OpExByVendorPage-zVc499QE.js +1057 -0
  253. package/dist/PandLWithForecastPage-BBztUmrW.js +563 -0
  254. package/dist/PandLWithForecastPage-CHQzb6QA.cjs +107 -0
  255. package/dist/PaymentAccountSetupBillingAddressSection-B-IrcHQ6.js +623 -0
  256. package/dist/PaymentAccountSetupBillingAddressSection-DaxYrc-A.cjs +106 -0
  257. package/dist/PeoplePage-DrTynxgn.cjs +675 -0
  258. package/dist/PeoplePage-F7i2q-bB.js +1994 -0
  259. package/dist/ProductsCarousel-CzxF_1Vw.js +309 -0
  260. package/dist/ProductsCarousel-qMPmqxEp.cjs +142 -0
  261. package/dist/PromoBaseCards-7A1XZrLb.cjs +218 -0
  262. package/dist/PromoBaseCards-BEzAyF27.js +356 -0
  263. package/dist/QBOConnectionDialog-2Nhc4ea5.js +115 -0
  264. package/dist/QBOConnectionDialog-CoSDXeBT.cjs +51 -0
  265. package/dist/QBOSetupSection-BWFCem2i.js +167 -0
  266. package/dist/QBOSetupSection-C1UYlXY9.cjs +79 -0
  267. package/dist/ReimbursementApprovalRuleDetailPage-CVvjSk2d.js +247 -0
  268. package/dist/ReimbursementApprovalRuleDetailPage-pyeSuFK8.cjs +26 -0
  269. package/dist/ReimbursementApprovalRulesPage-Bz7tsce4.js +410 -0
  270. package/dist/ReimbursementApprovalRulesPage-DCZaWh7J.cjs +237 -0
  271. package/dist/ReimbursementDetailPage-5dFWTYZD.js +1514 -0
  272. package/dist/ReimbursementDetailPage-DJvcE9k5.cjs +314 -0
  273. package/dist/ReimbursementPromoPage-BgsqfcHs.js +363 -0
  274. package/dist/ReimbursementPromoPage-DaNOMqHD.cjs +84 -0
  275. package/dist/ReimbursementSetUpPage-AwUBO_SV.js +663 -0
  276. package/dist/ReimbursementSetUpPage-Df7nBTdo.cjs +140 -0
  277. package/dist/ReimbursementsBulkReviewDrawerPage-DDeBWLQz.js +204 -0
  278. package/dist/ReimbursementsBulkReviewDrawerPage-DJbOR5RF.cjs +1 -0
  279. package/dist/ReloadCard-BBTFTZqS.js +137 -0
  280. package/dist/ReloadCard-MWpzxyqq.cjs +26 -0
  281. package/dist/ReloadContainer-Jjeu8Lp3.cjs +596 -0
  282. package/dist/ReloadContainer-bHPcYbg_.js +2144 -0
  283. package/dist/ReportTableViewSelector-BUx5vnWj.cjs +150 -0
  284. package/dist/ReportTableViewSelector-J71Oi018.js +679 -0
  285. package/dist/ReportsPage-BDrypKAU.cjs +121 -0
  286. package/dist/ReportsPage-BxdacxtQ.js +1315 -0
  287. package/dist/RevenueChart-B8uTe37B.js +2239 -0
  288. package/dist/RevenueChart-DMMKWr6p.cjs +280 -0
  289. package/dist/ReviewDetailsPage-Cq2WuUMQ.cjs +290 -0
  290. package/dist/ReviewDetailsPage-D56yVT6p.js +1073 -0
  291. package/dist/ReviewOverlay-BiC-Mjlk.cjs +152 -0
  292. package/dist/ReviewOverlay-BjpWTB3c.js +299 -0
  293. package/dist/RoleWithToolTip-BzAMFFzv.js +72 -0
  294. package/dist/RoleWithToolTip-CB6Cjvh_.cjs +22 -0
  295. package/dist/ScheduleDetailsFixedAssetsPage-B8oZph5-.js +806 -0
  296. package/dist/ScheduleDetailsFixedAssetsPage-D5lYpFkz.cjs +37 -0
  297. package/dist/ScheduleDetailsPage-By6aD5dZ.cjs +37 -0
  298. package/dist/ScheduleDetailsPage-Cwi4Ggjk.js +726 -0
  299. package/dist/ScheduleSequenceTable-Bqm4RISQ.cjs +324 -0
  300. package/dist/ScheduleSequenceTable-DGLOH1OQ.js +1261 -0
  301. package/dist/SetUpAccountSection-B9J-QEB7.js +1468 -0
  302. package/dist/SetUpAccountSection-DsK6r_yc.cjs +378 -0
  303. package/dist/SignIn-Cb0nM6YD.js +1075 -0
  304. package/dist/SignIn-DswYYDaa.cjs +448 -0
  305. package/dist/SpendManagementListViewPage-BebB2zOx.js +627 -0
  306. package/dist/SpendManagementListViewPage-BqVljd49.cjs +122 -0
  307. package/dist/SpendManagementPerTabPage-CEDTdcp_.cjs +754 -0
  308. package/dist/SpendManagementPerTabPage-DVne1u0L.js +2735 -0
  309. package/dist/SpendManagementSection-C_FPwjD7.js +1043 -0
  310. package/dist/SpendManagementSection-hA2xjExM.cjs +230 -0
  311. package/dist/StatementItem-BWvOhXtM.js +81 -0
  312. package/dist/StatementItem-C0i9MeVV.cjs +31 -0
  313. package/dist/StatementsPage-BzbHozxG.cjs +58 -0
  314. package/dist/StatementsPage-MD0tiAGh.js +130 -0
  315. package/dist/StatusSwitcher-B6_fVG0z.cjs +120 -0
  316. package/dist/StatusSwitcher-LXap3i9Y.js +319 -0
  317. package/dist/SubTabSwitcher-BMaCYxPw.cjs +58 -0
  318. package/dist/SubTabSwitcher-CMjxu40S.js +113 -0
  319. package/dist/SuccessAnimation-C48YxkrG.cjs +13 -0
  320. package/dist/SuccessAnimation-zxdUuPkc.js +52 -0
  321. package/dist/SummaryCard-CpnMfqyh.js +25 -0
  322. package/dist/SummaryCard-DFaKHz1h.cjs +1 -0
  323. package/dist/TaskDetailPage-Bs1dtvor.js +2533 -0
  324. package/dist/TaskDetailPage-CSckRY5q.cjs +775 -0
  325. package/dist/TaskListRow-BnbTFoVh.js +1950 -0
  326. package/dist/TaskListRow-DNUY0pO3.cjs +556 -0
  327. package/dist/TaskManagementPage-CFvHRZuC.js +1935 -0
  328. package/dist/TaskManagementPage-CGiidczk.cjs +508 -0
  329. package/dist/TimeRangeSwitcher-DfBEQvJT.cjs +64 -0
  330. package/dist/TimeRangeSwitcher-ZaK1QY_T.js +265 -0
  331. package/dist/TimeframeSwitcher-BW3Pk45j.js +103 -0
  332. package/dist/TimeframeSwitcher-IbdC5KTA.cjs +31 -0
  333. package/dist/TimeframeSwitcherWithToggle-CU38xRLG.js +157 -0
  334. package/dist/TimeframeSwitcherWithToggle-CZbMjpV-.cjs +31 -0
  335. package/dist/TopExCard-CK6F-GcK.cjs +38 -0
  336. package/dist/TopExCard-CMi1Lakv.js +568 -0
  337. package/dist/TopExDetailPage-CEu1EWzK.cjs +132 -0
  338. package/dist/TopExDetailPage-CpllTG1q.js +318 -0
  339. package/dist/TransactionDetailPage-BbBBxoF0.js +5238 -0
  340. package/dist/TransactionDetailPage-DTLwIhgH.cjs +912 -0
  341. package/dist/TransactionList-Bv7jqIo6.js +558 -0
  342. package/dist/TransactionList-ClHrzA0R.cjs +147 -0
  343. package/dist/TransactionListBig-2EQ9MPs8.js +658 -0
  344. package/dist/TransactionListBig-C0dnyV4v.cjs +284 -0
  345. package/dist/TransactionListPage-BmxlMV_D.cjs +35 -0
  346. package/dist/TransactionListPage-CJj-M22U.js +144 -0
  347. package/dist/TransactionVendorDetailPage-BJ9MXats.js +425 -0
  348. package/dist/TransactionVendorDetailPage-BZF97OBB.cjs +80 -0
  349. package/dist/TransferDrawerPage-4qfKf5Zi.js +1435 -0
  350. package/dist/TransferDrawerPage-DAUve3oH.cjs +362 -0
  351. package/dist/TreasuryOverviewPage-BFn08YHL.js +1889 -0
  352. package/dist/TreasuryOverviewPage-CX-YQaur.cjs +708 -0
  353. package/dist/TreasuryPromoPage-DFEqOW3b.cjs +505 -0
  354. package/dist/TreasuryPromoPage-MOO-7u3G.js +1123 -0
  355. package/dist/TreasuryStatementsPage-BapfzUjm.cjs +58 -0
  356. package/dist/TreasuryStatementsPage-D-yoxzj5.js +131 -0
  357. package/dist/TreasuryTaxLetterPage-BFx-FHw3.js +131 -0
  358. package/dist/TreasuryTaxLetterPage-BsPGRMdf.cjs +58 -0
  359. package/dist/TrendChart-BYLQ5-eV.cjs +16 -0
  360. package/dist/TrendChart-DaSC7MQT.js +333 -0
  361. package/dist/TrendWithTransactions-B2EEXaL5.cjs +116 -0
  362. package/dist/TrendWithTransactions-BHEstujQ.js +346 -0
  363. package/dist/UncategorizedAccountsMappingPage-BD-IUnek.js +1159 -0
  364. package/dist/UncategorizedAccountsMappingPage-p2JXXAIV.cjs +244 -0
  365. package/dist/UnitIntegrationPage-BpKoy-LC.js +405 -0
  366. package/dist/UnitIntegrationPage-CQc6Cag9.cjs +67 -0
  367. package/dist/UploadAdditionalDocumentOverlay-C95QBeyo.js +211 -0
  368. package/dist/UploadAdditionalDocumentOverlay-Drm9FeH3.cjs +38 -0
  369. package/dist/Vendor2FAPopup-CStS1pZp.js +69 -0
  370. package/dist/Vendor2FAPopup-CdsLTsc_.cjs +1 -0
  371. package/dist/VendorACHDetailsPage-Bnuo6yYR.cjs +1 -0
  372. package/dist/VendorACHDetailsPage-t6wcfazA.js +43 -0
  373. package/dist/VendorDetailPage-BfwRezpU.js +1236 -0
  374. package/dist/VendorDetailPage-CvKcZ0oA.cjs +257 -0
  375. package/dist/VendorDomesticWireDetailsPage-BPp8HLkf.js +53 -0
  376. package/dist/VendorDomesticWireDetailsPage-DbTRjn93.cjs +1 -0
  377. package/dist/VendorFiling1099EditablePage-BywJU9tK.cjs +175 -0
  378. package/dist/VendorFiling1099EditablePage-IX-I1R_x.js +842 -0
  379. package/dist/VendorFirstReviewPage-BY_xpECC.cjs +730 -0
  380. package/dist/VendorFirstReviewPage-Duylv0LU.js +2748 -0
  381. package/dist/VendorInternationalWireDetailsPage-D5tQRbfI.cjs +152 -0
  382. package/dist/VendorInternationalWireDetailsPage-sSSzfufu.js +968 -0
  383. package/dist/VendorInternationalWireSwiftDetailsPage-CYRw04IF.cjs +1 -0
  384. package/dist/VendorInternationalWireSwiftDetailsPage-DV7HzMxl.js +52 -0
  385. package/dist/VendorsAccountsSection-Blj9vFn5.cjs +68 -0
  386. package/dist/VendorsAccountsSection-BmZtTHPv.js +279 -0
  387. package/dist/VerifyDevice-Di1Em_4D.cjs +112 -0
  388. package/dist/VerifyDevice-DqaZobyF.js +298 -0
  389. package/dist/VideoPlayer-Ce1VfPWw.js +169 -0
  390. package/dist/VideoPlayer-D33WBDLN.cjs +77 -0
  391. package/dist/VideoPopup-Bso61rjD.js +60 -0
  392. package/dist/VideoPopup-yjLuhakB.cjs +31 -0
  393. package/dist/WarningsDrawerPage-BCBgTtki.js +228 -0
  394. package/dist/WarningsDrawerPage-Di3z9fKX.cjs +92 -0
  395. package/dist/ZeniAccountDetailPage-DrkpP9q-.cjs +300 -0
  396. package/dist/ZeniAccountDetailPage-GZt-dsy5.js +907 -0
  397. package/dist/ZeniAccountListViewPage-BMBd3dFD.js +1078 -0
  398. package/dist/ZeniAccountListViewPage-CqhhP0kz.cjs +441 -0
  399. package/dist/ZeniAccountNavBarPieces-157q6pVi.cjs +14 -0
  400. package/dist/ZeniAccountNavBarPieces-DomwM4SW.js +89 -0
  401. package/dist/ZeniAccountPromoPage-DET0gnCq.cjs +184 -0
  402. package/dist/ZeniAccountPromoPage-eFvcwvwI.js +522 -0
  403. package/dist/ZeniAccountSetupPage-D-qO6R_K.cjs +36 -0
  404. package/dist/ZeniAccountSetupPage-D49PE_Fn.js +309 -0
  405. package/dist/ZeniAvatar-BgkHMJ9Q.cjs +13 -0
  406. package/dist/ZeniAvatar-DjRfr1II.js +34 -0
  407. package/dist/ZeniCopyright-DMzOVBO0.cjs +1 -0
  408. package/dist/ZeniCopyright-Dlix1Hor.js +9 -0
  409. package/dist/ZeniDatePicker-D2cqZl2D.cjs +187 -0
  410. package/dist/ZeniDatePicker-w-qsrQ9q.js +386 -0
  411. package/dist/ZeniTransferAmountSlider-CUGTpLoG.cjs +63 -0
  412. package/dist/ZeniTransferAmountSlider-DM3qWwvV.js +215 -0
  413. package/dist/analyticsHelper-BW-QUORL.cjs +1 -0
  414. package/dist/analyticsHelper-CDzeeLgt.js +65 -0
  415. package/dist/calculateSize-C22TfnB9.js +22 -0
  416. package/dist/calculateSize-CaXgW8PX.cjs +1 -0
  417. package/dist/chartTypes-Bc5qBEZt.cjs +1 -0
  418. package/dist/chartTypes-G5V0BFso.js +47 -0
  419. package/dist/cockpit.cjs.js +2 -2
  420. package/dist/cockpit.esm.js +15 -15
  421. package/dist/common/hooks/useAnimation.d.ts +8 -1
  422. package/dist/common-CQQ_J58L.cjs +1 -0
  423. package/dist/common-ho52SOHc.js +22 -0
  424. package/dist/commonDimensions-BcsweLez.cjs +1 -0
  425. package/dist/commonDimensions-CTrwmwt6.js +13 -0
  426. package/dist/detailCommon-Bg0_s5DP.js +124 -0
  427. package/dist/detailCommon-CYa7dGqq.cjs +38 -0
  428. package/dist/downloadPdf-B5UxtvZb.cjs +1 -0
  429. package/dist/downloadPdf-CrssEFtx.js +32 -0
  430. package/dist/index-CK77PNF-.cjs +21096 -0
  431. package/dist/index-Uz2SvnFC.js +92089 -0
  432. package/dist/index.cjs.js +1 -1
  433. package/dist/index.esm.js +1 -1
  434. package/dist/mapLoadingInProgressToTreeNode-CRfsd8O0.cjs +1 -0
  435. package/dist/mapLoadingInProgressToTreeNode-DRr1n8p5.js +25 -0
  436. package/dist/mapSectionWithAcOnlyToTreeNode-DKOTM0GN.cjs +1 -0
  437. package/dist/mapSectionWithAcOnlyToTreeNode-OcB7wBih.js +388 -0
  438. package/dist/mapSpacerToTreeNode-BU8eKDdw.cjs +1 -0
  439. package/dist/mapSpacerToTreeNode-CCRQ4yi1.js +25 -0
  440. package/dist/mapTimeframeBalancesToTreeNode-BQ2i-enY.js +24 -0
  441. package/dist/mapTimeframeBalancesToTreeNode-BeVUrmlR.js +24 -0
  442. package/dist/mapTimeframeBalancesToTreeNode-DGS2dKDL.cjs +1 -0
  443. package/dist/mapTimeframeBalancesToTreeNode-zv7lBaz0.cjs +1 -0
  444. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-CM_nmz0L.cjs +1 -0
  445. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-Dgmv7kJ4.js +32 -0
  446. package/dist/sectionColor-DlPCWIN_.cjs +1 -0
  447. package/dist/sectionColor-Wbwf_Fbi.js +32 -0
  448. package/dist/toCOABalancesWithID-CqMkeJZv.cjs +1 -0
  449. package/dist/toCOABalancesWithID-JSHKFWqi.js +8 -0
  450. package/dist/toChartData-BHD3gMjn.js +76 -0
  451. package/dist/toChartData-DBbXZfe0.cjs +1 -0
  452. package/dist/uploadAttachment-Clc3Gxg5.cjs +286 -0
  453. package/dist/uploadAttachment-ZEHS2HMh.js +952 -0
  454. package/dist/zeniDatePicker.helpers-CWqdTOGi.js +14 -0
  455. package/dist/zeniDatePicker.helpers-Cos2Iy-W.cjs +1 -0
  456. package/package.json +3 -3
  457. package/dist/ACHDetailsPage-B17xK64u.cjs +0 -21
  458. package/dist/ACHDetailsPage-jtxZ_DGW.js +0 -160
  459. package/dist/AIPerformancePage-5omR8KfP.cjs +0 -534
  460. package/dist/AIPerformancePage-UhNHLQQ_.js +0 -1337
  461. package/dist/AccountInfoPage-B0JdHbjg.cjs +0 -18
  462. package/dist/AccountInfoPage-BAjpqlnt.js +0 -78
  463. package/dist/AccountInfoPageContent-BFHVHLUm.js +0 -428
  464. package/dist/AccountInfoPageContent-D2EDDBl9.cjs +0 -149
  465. package/dist/AccountLockedInfoModal-BQAhy2Q5.cjs +0 -59
  466. package/dist/AccountLockedInfoModal-DZwOxcXA.js +0 -125
  467. package/dist/AccountReconDetailsDrawerPage-BIY2oG4F.cjs +0 -239
  468. package/dist/AccountReconDetailsDrawerPage-Fe6WMR1q.js +0 -686
  469. package/dist/AccountRow-CZXZ0mXs.cjs +0 -298
  470. package/dist/AccountRow-q6YpI4V0.js +0 -1012
  471. package/dist/AccountsPromoCardStack-BZhAU4__.cjs +0 -207
  472. package/dist/AccountsPromoCardStack-YjJ_3oTq.js +0 -664
  473. package/dist/AddAddressForCardDrawer-BTFmYLDe.js +0 -82
  474. package/dist/AddAddressForCardDrawer-BaP32-TD.cjs +0 -6
  475. package/dist/AddToWalletPage-D1HnFe1J.cjs +0 -344
  476. package/dist/AddToWalletPage-sXBz7HJk.js +0 -642
  477. package/dist/AgingReportsPage-Bo7RcOxE.cjs +0 -79
  478. package/dist/AgingReportsPage-DnrmPx8u.js +0 -827
  479. package/dist/AllUserItems-C5c1C_fJ.js +0 -979
  480. package/dist/AllUserItems-DGK9kvUP.cjs +0 -192
  481. package/dist/ApAgingDetailPage-CRkFGPEW.cjs +0 -46
  482. package/dist/ApAgingDetailPage-Dh8__8qK.js +0 -239
  483. package/dist/AppBasePage-7QIvbEdI.js +0 -120
  484. package/dist/AppBasePage-D-LQYnZX.cjs +0 -71
  485. package/dist/AppDrawerContent-B42kc_7r.cjs +0 -91
  486. package/dist/AppDrawerContent-DjAq7ehw.js +0 -375
  487. package/dist/ApprovalRulesSettingsPage-CFkgsKVP.cjs +0 -47
  488. package/dist/ApprovalRulesSettingsPage-fEDHmMDv.js +0 -145
  489. package/dist/ArAgingChart-BKi-1Dyo.js +0 -529
  490. package/dist/ArAgingChart-qUqQsdfD.cjs +0 -24
  491. package/dist/ArAgingDetailPage-DmyW4iai.js +0 -243
  492. package/dist/ArAgingDetailPage-F89ogm5j.cjs +0 -46
  493. package/dist/AttachmentView-BkrHgQ-8.js +0 -260
  494. package/dist/AttachmentView-C4DC5TGv.cjs +0 -101
  495. package/dist/BankAccountSection-CeCHIgPx.cjs +0 -79
  496. package/dist/BankAccountSection-DL7eRy10.js +0 -398
  497. package/dist/BankAccountWarningSection-B9AaOZjv.js +0 -110
  498. package/dist/BankAccountWarningSection-a1C1ndPD.cjs +0 -51
  499. package/dist/BankConnectionsSettingsPage-D17cPwfK.js +0 -1693
  500. package/dist/BankConnectionsSettingsPage-KntivDe4.cjs +0 -425
  501. package/dist/BillDetailPage-B5va3yHk.js +0 -1798
  502. package/dist/BillDetailPage-ChH6X6Fw.cjs +0 -266
  503. package/dist/BillPayApprovalRuleDetailPage-BVg9UXiG.js +0 -247
  504. package/dist/BillPayApprovalRuleDetailPage-CwI8TXmh.cjs +0 -27
  505. package/dist/BillPayApprovalRulesPage-DS6IMx7q.cjs +0 -235
  506. package/dist/BillPayApprovalRulesPage-DbXE_jU_.js +0 -415
  507. package/dist/BillPayPromoPage-CrzJcYwc.cjs +0 -84
  508. package/dist/BillPayPromoPage-DdDa6Yyf.js +0 -292
  509. package/dist/BillPaySetUpPage-BuuWqWcV.cjs +0 -42
  510. package/dist/BillPaySetUpPage-CwtuGWxb.js +0 -409
  511. package/dist/BillingSettingsPage-D6RX3FEd.cjs +0 -44
  512. package/dist/BillingSettingsPage-DMPrc0Sc.js +0 -336
  513. package/dist/BillsBulkReviewDrawerPage-Ddt8aOYW.js +0 -216
  514. package/dist/BillsBulkReviewDrawerPage-gpQDottr.cjs +0 -1
  515. package/dist/BoxItem-BaudR0WD.cjs +0 -53
  516. package/dist/BoxItem-UAja6M6T.js +0 -118
  517. package/dist/BusinessVerificationPage-B36xK_S8.cjs +0 -138
  518. package/dist/BusinessVerificationPage-CFvsxsYL.js +0 -716
  519. package/dist/BusyIndication-C6G5Xdis.js +0 -19
  520. package/dist/BusyIndication-I4T_UBRv.cjs +0 -9
  521. package/dist/CardNumberSubText-B9o7bL_p.cjs +0 -21
  522. package/dist/CardNumberSubText-DUiuxKHL.js +0 -59
  523. package/dist/CashbackDetailPage-CZo70JjN.cjs +0 -285
  524. package/dist/CashbackDetailPage-UB0PkwKZ.js +0 -824
  525. package/dist/ChargeCardDetailPage-Bmr1wTmh.js +0 -5453
  526. package/dist/ChargeCardDetailPage-Cd0yHejT.cjs +0 -1462
  527. package/dist/ChargeCardListPage-BO1CMV4x.cjs +0 -406
  528. package/dist/ChargeCardListPage-C172pZ6b.js +0 -1775
  529. package/dist/ChargeCardListTable-Bu_HO3vj.cjs +0 -711
  530. package/dist/ChargeCardListTable-r8ZrQYcl.js +0 -2871
  531. package/dist/ChargeCardPromoPage-CC-rXZCv.js +0 -813
  532. package/dist/ChargeCardPromoPage-Do1Kz-TJ.cjs +0 -222
  533. package/dist/ChargeCardSetupPage-Cc7B4x7w.js +0 -359
  534. package/dist/ChargeCardSetupPage-DF6wPuC7.cjs +0 -36
  535. package/dist/ChargeCardStatementsPage-Cd0OR-8e.js +0 -243
  536. package/dist/ChargeCardStatementsPage-D8HrAiyG.cjs +0 -60
  537. package/dist/CheckDepositDrawerPage-BRaLcotL.cjs +0 -206
  538. package/dist/CheckDepositDrawerPage-DF5ae4_W.js +0 -726
  539. package/dist/CollapsableReportTable-BelE1x-8.js +0 -11758
  540. package/dist/CollapsableReportTable-CwlCXFMB.cjs +0 -2932
  541. package/dist/CompanyOfficerDetailsSection-Dmbji7li.js +0 -1633
  542. package/dist/CompanyOfficerDetailsSection-Dnmi-Xka.cjs +0 -260
  543. package/dist/CompanyPassportCard-CuZgaxgm.js +0 -146
  544. package/dist/CompanyPassportCard-sDt4o9NA.cjs +0 -42
  545. package/dist/CompanyPassportPage-C-Bp8Dsz.cjs +0 -574
  546. package/dist/CompanyPassportPage-DrtvbNih.js +0 -2160
  547. package/dist/CompleteProfile-B6e1Remx.js +0 -301
  548. package/dist/CompleteProfile-D5jdLjtf.cjs +0 -52
  549. package/dist/ConfettiBurst-D5EuA3W3.cjs +0 -1
  550. package/dist/ConfettiBurst-g3fpXQNw.js +0 -37
  551. package/dist/CreateOrEditVendorPage-CTk0FoEG.cjs +0 -281
  552. package/dist/CreateOrEditVendorPage-FkkXM5Md.js +0 -755
  553. package/dist/CreditCardPaymentDrawerPage-BCLwVeuB.cjs +0 -224
  554. package/dist/CreditCardPaymentDrawerPage-DUM3eaVh.js +0 -1169
  555. package/dist/CurrencySelectField-YszWK6th.js +0 -348
  556. package/dist/CurrencySelectField-ir4IUojg.cjs +0 -139
  557. package/dist/CustomerOnboardingActivationPage-Bu14oDNR.js +0 -143
  558. package/dist/CustomerOnboardingActivationPage-DL4O_TgV.cjs +0 -88
  559. package/dist/CustomerOnboardingContainerPage-C-McydBJ.js +0 -7
  560. package/dist/CustomerOnboardingContainerPage-CloNpIgy.cjs +0 -1
  561. package/dist/CustomerOnboardingDetailPageSkeleton-BAFYO_BW.cjs +0 -162
  562. package/dist/CustomerOnboardingDetailPageSkeleton-TX38pSi4.js +0 -434
  563. package/dist/CustomerOnboardingNoStepsPage-BvC6kQ3j.cjs +0 -66
  564. package/dist/CustomerOnboardingNoStepsPage-C1VR2XrZ.js +0 -424
  565. package/dist/CustomerOnboardingPage-BQVt5mx8.js +0 -1059
  566. package/dist/CustomerOnboardingPage-DLx5USMN.cjs +0 -107
  567. package/dist/CustomerOnboardingProductSuitePage-B-R2uNo_.js +0 -348
  568. package/dist/CustomerOnboardingProductSuitePage-_e4MrU4t.cjs +0 -202
  569. package/dist/Dashboard-BLlXIJaf.js +0 -5539
  570. package/dist/Dashboard-Cv8Dv8fJ.cjs +0 -1551
  571. package/dist/DashboardReportPage-DOstR6GB.cjs +0 -371
  572. package/dist/DashboardReportPage-VTIYO2VK.js +0 -2536
  573. package/dist/DashboardSidebarBackgroundAnimation-BtNvUZhA.js +0 -50
  574. package/dist/DashboardSidebarBackgroundAnimation-DsYEcw5l.cjs +0 -12
  575. package/dist/DepositAccTransactionItem-CSPYPk-l.cjs +0 -76
  576. package/dist/DepositAccTransactionItem-UAZUexYX.js +0 -112
  577. package/dist/DepositAccTransactionListPage-CIBcVyWr.cjs +0 -66
  578. package/dist/DepositAccTransactionListPage-DuDkDLd0.js +0 -152
  579. package/dist/DomesticWireDetailsPage-C8y6yRX5.cjs +0 -21
  580. package/dist/DomesticWireDetailsPage-DCs7uzMf.js +0 -189
  581. package/dist/DownloadOverlay-BbmtUbg4.cjs +0 -439
  582. package/dist/DownloadOverlay-CUfgoLn-.js +0 -2148
  583. package/dist/DrawerPage-B92hXes5.cjs +0 -118
  584. package/dist/DrawerPage-CSmhLQuS.js +0 -208
  585. package/dist/EditPeoplePage-BNPS4LMM.cjs +0 -55
  586. package/dist/EditPeoplePage-nN5h-WDq.js +0 -392
  587. package/dist/EditReimbursementDetailPage-B6CiWJrN.cjs +0 -865
  588. package/dist/EditReimbursementDetailPage-DPdha6J2.js +0 -4530
  589. package/dist/EmptySearchResults-0yClifV8.cjs +0 -46
  590. package/dist/EmptySearchResults-BRExA1Zo.js +0 -70
  591. package/dist/EntityDetailPage-BUCtJhNe.cjs +0 -18
  592. package/dist/EntityDetailPage-CyfpiK0W.js +0 -82
  593. package/dist/EntitySummarySection-B33_heGd.cjs +0 -149
  594. package/dist/EntitySummarySection-BCdNPb6R.js +0 -530
  595. package/dist/ExpenseAutomationOverviewPage-Bkfujb3Z.cjs +0 -281
  596. package/dist/ExpenseAutomationOverviewPage-CXwM7lTF.js +0 -806
  597. package/dist/ExpenseAutomationPage-DeNbpiHf.js +0 -11544
  598. package/dist/ExpenseAutomationPage-ib1vuGW0.cjs +0 -1650
  599. package/dist/ExpressPayPage-C3b_vMWc.js +0 -1136
  600. package/dist/ExpressPayPage-GuCVJw-D.cjs +0 -168
  601. package/dist/FeaturePreviewPage-BNef3T23.js +0 -114
  602. package/dist/FeaturePreviewPage-VUKUjlbI.cjs +0 -11
  603. package/dist/FollowStepsSection-DI_sXnws.cjs +0 -390
  604. package/dist/FollowStepsSection-jBJk955j.js +0 -1313
  605. package/dist/GlobalReviewListPage-1uPrLnGX.js +0 -1674
  606. package/dist/GlobalReviewListPage-BHHoA3ro.cjs +0 -291
  607. package/dist/InformationCardStack-Coui7WOl.js +0 -219
  608. package/dist/InformationCardStack-Cv0XP4tu.cjs +0 -31
  609. package/dist/InsightsCardStack-Dg8qidqu.js +0 -305
  610. package/dist/InsightsCardStack-DwOQ8_Wu.cjs +0 -79
  611. package/dist/InsightsSection-BD1IbZX4.cjs +0 -27
  612. package/dist/InsightsSection-BvcgCWVQ.js +0 -97
  613. package/dist/IntegrationsSettingsPage-Bqt0f7Ok.js +0 -136
  614. package/dist/IntegrationsSettingsPage-DHkJ9Ed6.cjs +0 -57
  615. package/dist/InternationalWireSwiftDetailsPage-BzR8LCwO.cjs +0 -171
  616. package/dist/InternationalWireSwiftDetailsPage-CpUlDAw1.js +0 -753
  617. package/dist/InternationalWireVerificationPage-Du3UQAUh.cjs +0 -292
  618. package/dist/InternationalWireVerificationPage-wtnL3BFi.js +0 -877
  619. package/dist/InviteFormPage-BO9eisip.js +0 -873
  620. package/dist/InviteFormPage-BjSR9Db6.cjs +0 -312
  621. package/dist/InvitePageListView-BFZgfPZi.cjs +0 -739
  622. package/dist/InvitePageListView-BVTL80Be.js +0 -1764
  623. package/dist/InvitePeoplePage-BKQdd2HW.cjs +0 -12
  624. package/dist/InvitePeoplePage-YKH8e6dT.js +0 -286
  625. package/dist/InvoiceUploadSection-DBwpUGKh.js +0 -465
  626. package/dist/InvoiceUploadSection-M7RgA-Ob.cjs +0 -140
  627. package/dist/IssueChargeCardPage-CHq3RXcO.js +0 -2875
  628. package/dist/IssueChargeCardPage-D4DRrTFw.cjs +0 -532
  629. package/dist/LabeledAddressValue-BzVIAKUO.js +0 -115
  630. package/dist/LabeledAddressValue-CzyvYUiY.cjs +0 -49
  631. package/dist/LabeledAddressValueField-CxhxPN8x.cjs +0 -45
  632. package/dist/LabeledAddressValueField-DOHkQbWx.js +0 -130
  633. package/dist/LabeledControlledCheckBoxField-D6a4jcXf.js +0 -73
  634. package/dist/LabeledControlledCheckBoxField-TWIgVR70.cjs +0 -16
  635. package/dist/LabeledCreatableSingleSelectField-Bk-DqnyO.cjs +0 -204
  636. package/dist/LabeledCreatableSingleSelectField-CIUJXI2r.js +0 -515
  637. package/dist/LabeledDocumentField-CP0XxUQp.cjs +0 -41
  638. package/dist/LabeledDocumentField-CtEmwO1Z.js +0 -147
  639. package/dist/LabeledDropDownFormattedTextField-CzIQPN5Z.cjs +0 -59
  640. package/dist/LabeledDropDownFormattedTextField-DAiWjmCw.js +0 -163
  641. package/dist/LabeledEmailInputField-CIBUAA-t.js +0 -425
  642. package/dist/LabeledEmailInputField-D5pqCSTL.cjs +0 -182
  643. package/dist/LabeledItemWithButton-DCMdGOIy.cjs +0 -21
  644. package/dist/LabeledItemWithButton-d6jm5Bkf.js +0 -74
  645. package/dist/LabeledNameField-BiAMKrrW.js +0 -293
  646. package/dist/LabeledNameField-CumyD8EW.cjs +0 -141
  647. package/dist/LabeledSingleSelectField-Bj6DZZCU.cjs +0 -136
  648. package/dist/LabeledSingleSelectField-CoSXd5eG.js +0 -372
  649. package/dist/LabeledSingleSelectWithoutClearableField-C-AdlPB2.js +0 -103
  650. package/dist/LabeledSingleSelectWithoutClearableField-DwjAuGuW.cjs +0 -38
  651. package/dist/LabeledText-BiCd6TR2.cjs +0 -42
  652. package/dist/LabeledText-Dxw7UArs.js +0 -103
  653. package/dist/LabeledUserSingleSelectWithSubtitlesField-CmsSoDo_.cjs +0 -229
  654. package/dist/LabeledUserSingleSelectWithSubtitlesField-hSiIDmve.js +0 -572
  655. package/dist/LabeledZeniRolesDropDownField-Bkr13Lth.js +0 -975
  656. package/dist/LabeledZeniRolesDropDownField-l9I3xOpk.cjs +0 -297
  657. package/dist/LinkJETransactionPage-D7d8s_2A.cjs +0 -98
  658. package/dist/LinkJETransactionPage-DIxKZUMx.js +0 -406
  659. package/dist/LockCardPage-B2mhH8dJ.cjs +0 -623
  660. package/dist/LockCardPage-D7l5E7IR.js +0 -2032
  661. package/dist/LowBalancePopup-B0ABNtNx.js +0 -219
  662. package/dist/LowBalancePopup-MdfTDepl.cjs +0 -34
  663. package/dist/MagicLinkACHDetailsPage-C5-e9m8t.js +0 -39
  664. package/dist/MagicLinkACHDetailsPage-CxuaJKlM.cjs +0 -1
  665. package/dist/MagicLinkDomesticWireDetailsPage-E3BBNQAy.cjs +0 -1
  666. package/dist/MagicLinkDomesticWireDetailsPage-cZTQERZO.js +0 -44
  667. package/dist/MagicLinkInternationalWireDetailsPage-CoDe1ClX.js +0 -43
  668. package/dist/MagicLinkInternationalWireDetailsPage-DgoLPAz1.cjs +0 -1
  669. package/dist/MagicLinkSuccessPage-BTWFHqRG.js +0 -59
  670. package/dist/MagicLinkSuccessPage-vNXuTVlP.cjs +0 -31
  671. package/dist/MagicLinkTitleSection-BnipBY3z.js +0 -40
  672. package/dist/MagicLinkTitleSection-Cq60ry6I.cjs +0 -17
  673. package/dist/MailingDetailsSection-BNY0GB3G.js +0 -74
  674. package/dist/MailingDetailsSection-BfYYAsna.cjs +0 -21
  675. package/dist/MatchingOperatorDropdown-BIB5bYgo.js +0 -572
  676. package/dist/MatchingOperatorDropdown-N99f3ViH.cjs +0 -130
  677. package/dist/Menu-DMdfWLWB.cjs +0 -17
  678. package/dist/Menu-XeONraf7.js +0 -110
  679. package/dist/MoreMenuButton-B5WKh2om.js +0 -569
  680. package/dist/MoreMenuButton-mHEKRO3S.cjs +0 -167
  681. package/dist/MyBankConnectionsSettingsPage-CI_2lmql.js +0 -296
  682. package/dist/MyBankConnectionsSettingsPage-CjUb--Kw.cjs +0 -110
  683. package/dist/MyPendingActivationChargeCardListPage-CXCxv9VB.cjs +0 -6
  684. package/dist/MyPendingActivationChargeCardListPage-D4DnX3_m.js +0 -168
  685. package/dist/MyProfileSettingsPage-Bp7BeGr7.cjs +0 -85
  686. package/dist/MyProfileSettingsPage-C0SmhF27.js +0 -641
  687. package/dist/NavBarWithPicker-CAk3jp6F.js +0 -106
  688. package/dist/NavBarWithPicker-Tc7WI39u.cjs +0 -30
  689. package/dist/NavigationArrow-B6mctO6H.js +0 -88
  690. package/dist/NavigationArrow-Dtvfb5aC.cjs +0 -47
  691. package/dist/NavigationDots-BE95TGY0.cjs +0 -15
  692. package/dist/NavigationDots-D65sZzmZ.js +0 -44
  693. package/dist/NewGlobalMerchantPage-COIVJmx6.cjs +0 -160
  694. package/dist/NewGlobalMerchantPage-SAnHcdm2.js +0 -543
  695. package/dist/NoDataChart-Btr5Rt37.cjs +0 -26
  696. package/dist/NoDataChart-DXxZ6Voj.js +0 -58
  697. package/dist/NoDataTable-Bz_Et1Sn.js +0 -27
  698. package/dist/NoDataTable-o32fVKXO.cjs +0 -8
  699. package/dist/NotFoundPage-B-4WpUQa.js +0 -71
  700. package/dist/NotFoundPage-D1PIrW6G.cjs +0 -46
  701. package/dist/NotificationSettingsPage-BOYL_NAv.js +0 -541
  702. package/dist/NotificationSettingsPage-pmK7TaD3.cjs +0 -163
  703. package/dist/NotificationsListConfig-B9MErmDx.cjs +0 -1
  704. package/dist/NotificationsListConfig-D7QOePou.js +0 -10
  705. package/dist/NotificationsPage-BkvXIfOi.js +0 -2664
  706. package/dist/NotificationsPage-DtLLEHUr.cjs +0 -685
  707. package/dist/OpExByVendorPage-BS_jOKCR.cjs +0 -100
  708. package/dist/OpExByVendorPage-C8RRnsqn.js +0 -1057
  709. package/dist/PandLWithForecastPage-DaNFF6eB.js +0 -563
  710. package/dist/PandLWithForecastPage-DsYRjjYQ.cjs +0 -107
  711. package/dist/PaymentAccountSetupBillingAddressSection-B36pslNr.cjs +0 -106
  712. package/dist/PaymentAccountSetupBillingAddressSection-BSZks86U.js +0 -623
  713. package/dist/PeoplePage-CPLECJBe.cjs +0 -675
  714. package/dist/PeoplePage-Dl4BuloT.js +0 -1994
  715. package/dist/ProductsCarousel-BvAZCLnv.cjs +0 -142
  716. package/dist/ProductsCarousel-CJ_mH7Yw.js +0 -309
  717. package/dist/PromoBaseCards-C5OBODMx.js +0 -356
  718. package/dist/PromoBaseCards-CbCPSU-o.cjs +0 -218
  719. package/dist/QBOConnectionDialog-Buk7Bhpr.cjs +0 -51
  720. package/dist/QBOConnectionDialog-CtJw28p8.js +0 -115
  721. package/dist/QBOSetupSection-CPZ4uSMK.js +0 -167
  722. package/dist/QBOSetupSection-CxKKBwI4.cjs +0 -79
  723. package/dist/ReimbursementApprovalRuleDetailPage-C54Cz5js.cjs +0 -26
  724. package/dist/ReimbursementApprovalRuleDetailPage-CoLvBcuL.js +0 -247
  725. package/dist/ReimbursementApprovalRulesPage-CTdqMR56.js +0 -410
  726. package/dist/ReimbursementApprovalRulesPage-DWoeO6NB.cjs +0 -237
  727. package/dist/ReimbursementDetailPage-B_QrR5X2.js +0 -1514
  728. package/dist/ReimbursementDetailPage-CmvdZaT0.cjs +0 -314
  729. package/dist/ReimbursementPromoPage-BXQ4dll8.cjs +0 -84
  730. package/dist/ReimbursementPromoPage-CGjtAhvO.js +0 -363
  731. package/dist/ReimbursementSetUpPage--HKwvqri.cjs +0 -140
  732. package/dist/ReimbursementSetUpPage-CdvWwA-2.js +0 -663
  733. package/dist/ReimbursementsBulkReviewDrawerPage-DY2MUhZx.cjs +0 -1
  734. package/dist/ReimbursementsBulkReviewDrawerPage-DigPjYVZ.js +0 -204
  735. package/dist/ReloadCard-BV-L8K8R.cjs +0 -26
  736. package/dist/ReloadCard-BynnqWa_.js +0 -137
  737. package/dist/ReloadContainer-Cf9i_1q1.cjs +0 -596
  738. package/dist/ReloadContainer-CxPg7Q22.js +0 -2144
  739. package/dist/ReportTableViewSelector-Bah6YACx.js +0 -679
  740. package/dist/ReportTableViewSelector-Fnx0WdQR.cjs +0 -150
  741. package/dist/ReportsPage-2bkf_Qdd.js +0 -1315
  742. package/dist/ReportsPage-DiQ2vylA.cjs +0 -121
  743. package/dist/RevenueChart-Ba-P9SPC.js +0 -2239
  744. package/dist/RevenueChart-CwluvauV.cjs +0 -280
  745. package/dist/ReviewDetailsPage-BFKZRVL5.cjs +0 -290
  746. package/dist/ReviewDetailsPage-Bv63bETg.js +0 -1073
  747. package/dist/ReviewOverlay-CI9VsjXb.cjs +0 -152
  748. package/dist/ReviewOverlay-CdbR5B8T.js +0 -299
  749. package/dist/RoleWithToolTip-BxtpyU1Z.js +0 -72
  750. package/dist/RoleWithToolTip-CdOJAYnR.cjs +0 -22
  751. package/dist/ScheduleDetailsFixedAssetsPage-BFKGVNiR.cjs +0 -37
  752. package/dist/ScheduleDetailsFixedAssetsPage-BZhKe4Cc.js +0 -806
  753. package/dist/ScheduleDetailsPage-COhFVmrA.cjs +0 -37
  754. package/dist/ScheduleDetailsPage-CzpfrQF_.js +0 -726
  755. package/dist/ScheduleSequenceTable-CBybgBEz.js +0 -1261
  756. package/dist/ScheduleSequenceTable-_EnoQZKb.cjs +0 -324
  757. package/dist/SetUpAccountSection-4MHP9Xax.cjs +0 -378
  758. package/dist/SetUpAccountSection-CB0g-Acy.js +0 -1468
  759. package/dist/SignIn-3L-NJt22.js +0 -1075
  760. package/dist/SignIn-BDbFohFn.cjs +0 -448
  761. package/dist/SpendManagementListViewPage-KWDgK7DY.js +0 -627
  762. package/dist/SpendManagementListViewPage-Oh9hc9m1.cjs +0 -122
  763. package/dist/SpendManagementPerTabPage-DaQhHrxN.js +0 -2735
  764. package/dist/SpendManagementPerTabPage-_kABUPHb.cjs +0 -754
  765. package/dist/SpendManagementSection-BBZG0ioh.cjs +0 -230
  766. package/dist/SpendManagementSection-CivJygIF.js +0 -1043
  767. package/dist/StatementItem-BJVfV7Wm.js +0 -81
  768. package/dist/StatementItem-M1oEsANC.cjs +0 -31
  769. package/dist/StatementsPage-CTJywl6b.js +0 -130
  770. package/dist/StatementsPage-DyMRmXBl.cjs +0 -58
  771. package/dist/StatusSwitcher-Mzj0pBts.cjs +0 -120
  772. package/dist/StatusSwitcher-eZf9eTGn.js +0 -319
  773. package/dist/SubTabSwitcher--JsxD49f.cjs +0 -58
  774. package/dist/SubTabSwitcher-C1u2CKEv.js +0 -113
  775. package/dist/SuccessAnimation-BHMpjtKq.cjs +0 -13
  776. package/dist/SuccessAnimation-CFgpqM89.js +0 -52
  777. package/dist/SummaryCard-BczhTy7G.js +0 -25
  778. package/dist/SummaryCard-CKJ8wdxr.cjs +0 -1
  779. package/dist/TaskDetailPage-Blp8WrEa.js +0 -2533
  780. package/dist/TaskDetailPage-oAANkKv2.cjs +0 -775
  781. package/dist/TaskListRow-BYmdJx1D.js +0 -1950
  782. package/dist/TaskListRow-mafdDrWf.cjs +0 -556
  783. package/dist/TaskManagementPage-BL05HqbN.js +0 -1935
  784. package/dist/TaskManagementPage-gjNI0Wzj.cjs +0 -508
  785. package/dist/TimeRangeSwitcher-BFXH7evz.js +0 -265
  786. package/dist/TimeRangeSwitcher-DHifrAMN.cjs +0 -64
  787. package/dist/TimeframeSwitcher-B6BTynr0.cjs +0 -31
  788. package/dist/TimeframeSwitcher-Dxm__iFX.js +0 -103
  789. package/dist/TimeframeSwitcherWithToggle-BtOpwdyF.cjs +0 -31
  790. package/dist/TimeframeSwitcherWithToggle-CIsS_s-d.js +0 -157
  791. package/dist/TopExCard-BCat20qj.cjs +0 -38
  792. package/dist/TopExCard-BYr_Q1w_.js +0 -568
  793. package/dist/TopExDetailPage-BAjJz7Rt.js +0 -318
  794. package/dist/TopExDetailPage-BKMBBM8a.cjs +0 -132
  795. package/dist/TransactionDetailPage-BkLv3rrK.cjs +0 -912
  796. package/dist/TransactionDetailPage-JlN9n27d.js +0 -5238
  797. package/dist/TransactionList-CHyVD1uY.cjs +0 -147
  798. package/dist/TransactionList-D0CVEtSV.js +0 -558
  799. package/dist/TransactionListBig-DN2lP7C6.js +0 -658
  800. package/dist/TransactionListBig-bijKeurV.cjs +0 -284
  801. package/dist/TransactionListPage-BFfl1uN6.js +0 -144
  802. package/dist/TransactionListPage-DxBbzFQX.cjs +0 -35
  803. package/dist/TransactionVendorDetailPage-2jiQMLMK.cjs +0 -80
  804. package/dist/TransactionVendorDetailPage-DLsIH-Vp.js +0 -425
  805. package/dist/TransferDrawerPage-D04TV2-j.cjs +0 -362
  806. package/dist/TransferDrawerPage-gBr-xYMr.js +0 -1435
  807. package/dist/TreasuryOverviewPage-BTN18ttV.cjs +0 -708
  808. package/dist/TreasuryOverviewPage-VliObRV8.js +0 -1889
  809. package/dist/TreasuryPromoPage-C7MAOzg2.js +0 -1123
  810. package/dist/TreasuryPromoPage-GUwd5yxt.cjs +0 -505
  811. package/dist/TreasuryStatementsPage-Bv29XtSe.cjs +0 -58
  812. package/dist/TreasuryStatementsPage-sePrmdfT.js +0 -131
  813. package/dist/TreasuryTaxLetterPage-CEtwxy83.js +0 -131
  814. package/dist/TreasuryTaxLetterPage-Dqfse3bJ.cjs +0 -58
  815. package/dist/TrendChart-D5RHKNAf.cjs +0 -16
  816. package/dist/TrendChart-fVbElyRu.js +0 -333
  817. package/dist/TrendWithTransactions-BzqLY79S.js +0 -346
  818. package/dist/TrendWithTransactions-CnqpvgdC.cjs +0 -116
  819. package/dist/UncategorizedAccountsMappingPage-DkT312P9.cjs +0 -244
  820. package/dist/UncategorizedAccountsMappingPage-wOp9ijaI.js +0 -1159
  821. package/dist/UnitIntegrationPage-C6BGENXE.js +0 -405
  822. package/dist/UnitIntegrationPage-CaMKPBOY.cjs +0 -67
  823. package/dist/UploadAdditionalDocumentOverlay-CNabFS85.cjs +0 -38
  824. package/dist/UploadAdditionalDocumentOverlay-u5FLV4N4.js +0 -211
  825. package/dist/Vendor2FAPopup-BxNzlz_O.cjs +0 -1
  826. package/dist/Vendor2FAPopup-Cer6lmOS.js +0 -69
  827. package/dist/VendorACHDetailsPage-BDhS3WdI.js +0 -43
  828. package/dist/VendorACHDetailsPage-XmV87fAH.cjs +0 -1
  829. package/dist/VendorDetailPage-CIQ9vLkh.cjs +0 -257
  830. package/dist/VendorDetailPage-DwQRO1Io.js +0 -1236
  831. package/dist/VendorDomesticWireDetailsPage-Bl1LMYXV.cjs +0 -1
  832. package/dist/VendorDomesticWireDetailsPage-CxF79upV.js +0 -53
  833. package/dist/VendorFiling1099EditablePage-Bl2xnyez.cjs +0 -175
  834. package/dist/VendorFiling1099EditablePage-CIXDshYq.js +0 -842
  835. package/dist/VendorFirstReviewPage--Ouyk52r.js +0 -2748
  836. package/dist/VendorFirstReviewPage-BrvGBxRP.cjs +0 -730
  837. package/dist/VendorInternationalWireDetailsPage-Cjmrpyka.cjs +0 -152
  838. package/dist/VendorInternationalWireDetailsPage-CppXKaeK.js +0 -968
  839. package/dist/VendorInternationalWireSwiftDetailsPage-DLFEEaFW.cjs +0 -1
  840. package/dist/VendorInternationalWireSwiftDetailsPage-Dkq3jmtM.js +0 -52
  841. package/dist/VendorsAccountsSection-Biee3gnM.cjs +0 -68
  842. package/dist/VendorsAccountsSection-b1J8hSBU.js +0 -279
  843. package/dist/VerifyDevice-BDSftYEl.cjs +0 -112
  844. package/dist/VerifyDevice-DpTvuHf5.js +0 -298
  845. package/dist/VideoPlayer-Ds5h1bee.js +0 -169
  846. package/dist/VideoPlayer-HgAetC2t.cjs +0 -77
  847. package/dist/VideoPopup-BtHImbkM.cjs +0 -31
  848. package/dist/VideoPopup-DG6kgH6M.js +0 -60
  849. package/dist/WarningsDrawerPage-DOuRd4BK.js +0 -228
  850. package/dist/WarningsDrawerPage-a8BCGexG.cjs +0 -92
  851. package/dist/ZeniAccountDetailPage-9MppacfT.js +0 -907
  852. package/dist/ZeniAccountDetailPage-CxcaKtxW.cjs +0 -300
  853. package/dist/ZeniAccountListViewPage-BwhhsGiJ.cjs +0 -441
  854. package/dist/ZeniAccountListViewPage-CzioqVDx.js +0 -1078
  855. package/dist/ZeniAccountNavBarPieces-CqcCKdFw.cjs +0 -14
  856. package/dist/ZeniAccountNavBarPieces-pEB3RflI.js +0 -89
  857. package/dist/ZeniAccountPromoPage-DHIpkTsA.cjs +0 -184
  858. package/dist/ZeniAccountPromoPage-pqAPQn1E.js +0 -522
  859. package/dist/ZeniAccountSetupPage-BqIHbGAF.js +0 -309
  860. package/dist/ZeniAccountSetupPage-T6tWtNWR.cjs +0 -36
  861. package/dist/ZeniAvatar-BWuGAA65.cjs +0 -13
  862. package/dist/ZeniAvatar-Dq-eaqia.js +0 -34
  863. package/dist/ZeniCopyright-CAJdj3P9.js +0 -9
  864. package/dist/ZeniCopyright-CnByx_Uf.cjs +0 -1
  865. package/dist/ZeniDatePicker-CkMEv7E2.js +0 -386
  866. package/dist/ZeniDatePicker-DbEZt-Lw.cjs +0 -187
  867. package/dist/ZeniTransferAmountSlider--z-UHYrL.cjs +0 -63
  868. package/dist/ZeniTransferAmountSlider-TFajf0IE.js +0 -215
  869. package/dist/analyticsHelper-CO_Y5tx4.js +0 -65
  870. package/dist/analyticsHelper-UlxDNGzr.cjs +0 -1
  871. package/dist/calculateSize-C4pfakMz.cjs +0 -1
  872. package/dist/calculateSize-D4zYjXJm.js +0 -22
  873. package/dist/chartTypes-B7879aa1.cjs +0 -1
  874. package/dist/chartTypes-BMnBH70G.js +0 -47
  875. package/dist/common-COyZ_fjc.cjs +0 -1
  876. package/dist/common-DZGSaqWt.js +0 -22
  877. package/dist/commonDimensions-BPHmUyRY.cjs +0 -1
  878. package/dist/commonDimensions-CS-tYlPq.js +0 -13
  879. package/dist/detailCommon-DM_jXuem.cjs +0 -38
  880. package/dist/detailCommon-mKL0_utu.js +0 -124
  881. package/dist/downloadPdf-BcaIC3zY.js +0 -32
  882. package/dist/downloadPdf-DmVEoPh5.cjs +0 -1
  883. package/dist/index-DLKZoZ-i.js +0 -92072
  884. package/dist/index-DaOROfUT.cjs +0 -21096
  885. package/dist/mapLoadingInProgressToTreeNode-C537X-yF.js +0 -25
  886. package/dist/mapLoadingInProgressToTreeNode-CPFhloAY.cjs +0 -1
  887. package/dist/mapSectionWithAcOnlyToTreeNode-YLvbQcpB.cjs +0 -1
  888. package/dist/mapSectionWithAcOnlyToTreeNode-tjYYcewB.js +0 -388
  889. package/dist/mapSpacerToTreeNode-CnGcfvZd.js +0 -25
  890. package/dist/mapSpacerToTreeNode-uqR8f3ei.cjs +0 -1
  891. package/dist/mapTimeframeBalancesToTreeNode-4dNewxM4.js +0 -24
  892. package/dist/mapTimeframeBalancesToTreeNode-B4K3jm4L.cjs +0 -1
  893. package/dist/mapTimeframeBalancesToTreeNode-DkUNdvpp.js +0 -24
  894. package/dist/mapTimeframeBalancesToTreeNode-Dte3VTtN.cjs +0 -1
  895. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-D2th9a3T.js +0 -32
  896. package/dist/mapTimeframeHeaderLoadingInProgressToTreeNode-D9ggVMJD.cjs +0 -1
  897. package/dist/sectionColor-D1_Mxfkv.js +0 -32
  898. package/dist/sectionColor-DMGDV4b1.cjs +0 -1
  899. package/dist/toCOABalancesWithID-B_Dsuro3.js +0 -8
  900. package/dist/toCOABalancesWithID-DkBaTpAm.cjs +0 -1
  901. package/dist/toChartData-CjzQgRDh.js +0 -76
  902. package/dist/toChartData-D44PJxxk.cjs +0 -1
  903. package/dist/uploadAttachment-0QLQC79q.cjs +0 -286
  904. package/dist/uploadAttachment-C107xiM7.js +0 -952
  905. package/dist/zeniDatePicker.helpers-CgYeW5cm.js +0 -14
  906. package/dist/zeniDatePicker.helpers-DIXaHmXP.cjs +0 -1
@@ -1,1650 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./vendor-.pnpm-CT-Z_-kn.cjs"),m=require("react"),i=require("@emotion/styled"),V=require("@zeniai/client-epic-state"),t=require("./index-DaOROfUT.cjs"),De=require("@emotion/react"),Ro=require("./BusyIndication-I4T_UBRv.cjs"),Co=require("./common-COyZ_fjc.cjs"),xe=require("./ReloadContainer-Cf9i_1q1.cjs"),Ae=require("./CollapsableReportTable-CwlCXFMB.cjs"),Us=require("./mapTimeframeBalancesToTreeNode-B4K3jm4L.cjs"),Hn=require("./mapLoadingInProgressToTreeNode-CPFhloAY.cjs"),Eo=require("./VendorsAccountsSection-Biee3gnM.cjs"),vo=require("./SuccessAnimation-BHMpjtKq.cjs"),Ht=require("./uploadAttachment-0QLQC79q.cjs");function wo(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=wo(m),{common:{navBar:{back:bo},texts:{refresh:Io,close:ko,copy:To,copied:$o,open:Lo}},expenseAutomation:{common:{numbers:{maximumCount:Ao}}}}=t.appLocale.getLocalizedStrings(),Oo=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
- `,Do=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
- `,_o=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
- `,Mo=i.div`
28
- display: flex;
29
- flex-direction: column;
30
- align-items: center;
31
- padding-left: ${e=>Vn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
- padding-right: ${e=>Vn.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
- `,Bo=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
- `,No=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
- `,Po=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
- `,Fo=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
- `,zo=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
- `,Ho=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
- `,Wo=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?De.css`
78
- ${Vo} 2s linear infinite;
79
- `:"none"};
80
- &:hover {
81
- color: ${e=>e.theme.colors.primary};
82
- }
83
- `,Vo=De.keyframes`
84
- 0% {
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- transform: rotate(360deg);
89
- }
90
- `,qo=i.div`
91
- padding-top: ${t.Space.sp0};
92
- padding-bottom: ${t.Space.sp0};
93
- `,Wn=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
- `,Uo=i.div`
102
- display: flex;
103
- `,Go=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
- `,Ko=i.div`
112
- display: flex;
113
- height: ${t.Space.sp4};
114
- `,Jo=i.div`
115
- text-align: center;
116
- display: flex;
117
- align-items: center;
118
- justify-content: center;
119
- flex-wrap: wrap;
120
- `,Zo=i.div`
121
- display: flex;
122
- flex-direction: column;
123
- `,Yo=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
- `,Vt=i.span`
131
- font-weight: ${t.FontWeight.regular};
132
- color: ${e=>e.theme.colors.primary};
133
- `,Xo=i.span`
134
- font-weight: ${t.FontWeight.medium};
135
- color: ${e=>e.theme.colors.primary};
136
- `,Qo=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
- `,Vn={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},ei=({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:u,...p}=a,o={...p},{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(Do,{isDisabled:r,onClick:e,"data-testid":t.generateDataTestId("comment-icon"),children:[n.jsxRuntimeExports.jsx(t.CommentsAndNotesCount,{count:x.length,isLoading:r}),n.jsxRuntimeExports.jsx(Oo,{})]})},ti=({headerData:e,refreshStatus:s,searchText:l,companyName:a,companyId:u,isZeniUser:p,onAllThreadsClick:o,onClose:c,onRefresh:r,onSearchTextChanged:x})=>{const d=()=>{s!=="In-Progress"&&r()};return n.jsxRuntimeExports.jsx(Bo,{children:e.rightSection.map((h,g)=>{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:f=>{x(f)},downloadPresent:!1},g+h);case"refresh":return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:Io,style:{marginTop:"2px"},enterDelay:600,children:n.jsxRuntimeExports.jsx(Wo,{onClick:d,$spinning:s==="In-Progress","data-testid":t.generateDataTestId("refresh-icon")})},g+h);case"comment":return p===!1?null:n.jsxRuntimeExports.jsx(ei,{companyId:u,companyName:a,onAllThreadsClick:o});case"close":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:ko,enterDelay:600,style:{marginTop:"2px"},children:n.jsxRuntimeExports.jsx(zo,{onClick:c,"data-testid":t.generateDataTestId("close-icon")})},g+h)}})})},ni=({headerData:e,onBack:s})=>n.jsxRuntimeExports.jsx(No,{children:e.leftSection.map((l,a)=>{switch(l){case"back":default:return n.jsxRuntimeExports.jsx(t.Tooltip,{display:"block",placement:"bottom",title:bo,enterDelay:600,style:{marginTop:"-14px"},children:n.jsxRuntimeExports.jsx(Ho,{onClick:s,"data-testid":t.generateDataTestId("back-button")})},a+l)}})}),qn=({text:e,linkText:s,windowSize:l,isCopied:a,onLinkClick:u})=>{if(s==null||!s)return n.jsxRuntimeExports.jsxs(Vt,{windowSize:l,children:[e," "]});const p=e.indexOf(s);if(p===-1)return n.jsxRuntimeExports.jsxs(Vt,{windowSize:l,children:[e," "]});const o=e.substring(0,p),c=e.substring(p+s.length);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o?n.jsxRuntimeExports.jsxs(Vt,{windowSize:l,children:[o.trim()," "]}):null,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"right",title:t.ZENI_EMAIL_PATTERN.test(s)?a?$o:To:Lo,enterTouchDelay:600,children:n.jsxRuntimeExports.jsxs(Qo,{onClick:()=>u?.(s),"data-testid":t.generateDataTestId("pre-link"),children:[s,a?n.jsxRuntimeExports.jsx(Fo,{className:"success-icon"}):n.jsxRuntimeExports.jsx(Po,{className:"copy-icon"})]})}),c?n.jsxRuntimeExports.jsxs(Vt,{windowSize:l,children:[c," "]}):null]})},Un=({subTitles:e})=>{const s=t.useWindowSizeContext(),[,l]=t.useCopyToClipboard(),[a,u]=m.useState(!1),p=m.useRef(null),o=m.useCallback(c=>{t.ZENI_EMAIL_PATTERN.test(c)?(l(c),u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(!1)},2e3)):window.open(c,"_blank","noopener,noreferrer")},[l]);return m.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),n.jsxRuntimeExports.jsx(Zo,{children:e.map((c,r)=>n.jsxRuntimeExports.jsxs(Jo,{children:[c.pre?n.jsxRuntimeExports.jsx(qn,{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(Yo,{}):n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{})}):null,c.bold?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:n.jsxRuntimeExports.jsxs(Xo,{windowSize:s,children:[c.bold," "]})}):null,c.post?n.jsxRuntimeExports.jsx(qn,{text:c.post,linkText:c.postLink,windowSize:s,isCopied:a,onLinkClick:o}):null]},r+c.bold+c.pre+c.post))})};function si(e){const{headerData:s,currentTab:l,completionStatus:a,onUpdateTab:u,selectedReconAccountId:p,getTabCountAndFetchState:o,reconcileDetailPageFetchState:c,forceShowSubtitle:r,currentSelectedView:x,onReconTabUpdate:d,currentRecontab:h,navBarCustomElement:g,titleStyle:f={}}=e,R=o("autoCategorized")?.count??0,y=o("review")?.count??0,E=o("reconcile")?.count??0,j=s.tabs.length>0||s.subTitle.length>0,b=x==="transaction_categorization"&&l==="autoCategorized",O=x==="reconciliation"&&h==="review"&&p!=null,L=x==="reconciliation"&&h==="reconcile"&&p!=null,w=b?R>0:O?c==="In-Progress"?!0:y>0:L?c==="In-Progress"?!0:E>0:a!=="complete",C=n.useTheme(),I=t.useWindowSizeContext();let A=[];return s.tabs.length>0&&(A=s.tabs.map(W=>({label:W.label,id:W.id,countDetails:o(W.id)}))),n.jsxRuntimeExports.jsxs(_o,{children:[n.jsxRuntimeExports.jsx(t.NavBar,{title:s.title,subTitle:s.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:C.colors.grey4,onBackClick:()=>null,titleStyle:f,ignoreScrollAction:x!=="month_end_insights",keepBackgroundOnScroll:x!=="month_end_insights",leftSideComponent:n.jsxRuntimeExports.jsx(ni,{...e}),rightSideComponent:n.jsxRuntimeExports.jsx(ti,{...e}),source:"NavBarWithHeader"}),g??null,n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:j===!0,children:n.jsxRuntimeExports.jsx(Mo,{windowSize:I,children:s.tabs.length>0?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(qo,{windowSize:I,children:n.jsxRuntimeExports.jsx(t.TabSwitcher,{allTabs:A,selectedTab:x==="transaction_categorization"?l??A[0].id:h??A[0].id,onTabChange:W=>{if(x==="transaction_categorization"){const T=V.toExpenseAutomationTransactionsTabKey(W.id);T!=null&&u(T)}else if(x==="reconciliation"){const T=V.toReconciliationTabsType(W.id);T!=null&&d(T)}},maximumCountLimit:Ao})}),n.jsxRuntimeExports.jsx(Go,{windowSize:I}),n.jsxRuntimeExports.jsx(Ko,{}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:w===!0||r===!0,children:n.jsxRuntimeExports.jsx(Wn,{windowSize:I,children:s.tabs.map((W,T)=>(x==="reconciliation"?W.id===h:W.id===l)?n.jsxRuntimeExports.jsx(Uo,{children:n.jsxRuntimeExports.jsx(Un,{subTitles:W.subTitle})},T+W.id):null)})})]}):n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:w===!0||r===!0,children:n.jsxRuntimeExports.jsx(Wn,{windowSize:I,children:n.jsxRuntimeExports.jsx(Un,{subTitles:s.subTitle})})})})})]})}const oi=1;function ii({name:e,checkBoxes:s,mode:l,isDisabled:a,style:u,labelStyle:p,labelCheckBoxStyle:o,checkBoxStyle:c,width:r,registerOptions:x,checkedIconColor:d,checkBoxIconStyle:h,checkBoxContainerStyle:g,draggable:f=!1,selectionLimit:R,infoIconContainerStyle:y,onDragStart:E,rowHeight:j=40,initialScrollOffSet:b,onScroll:O}){const L=t.useWindowSizeContext(),M=m.useRef(null),{control:w}=n.useFormContext(),C=s.find(T=>T.groupLabel),I=s.filter(T=>!T.groupLabel),A=[];for(const T of I)if(T.isException||A.push(T.value),R!=null&&A.length===R+1)break;const W=s.filter(T=>T.defaultChecked).map(T=>T.value);return n.jsxRuntimeExports.jsx(n.Controller,{control:w,name:e,rules:x,defaultValue:W,render:({field:{value:T,ref:Q,onChange:_}})=>{const P=q=>{ai({event:q,value:T,allCheckBoxValues:A,groupLabelCheckBox:C,onChange:_})};return n.jsxRuntimeExports.jsxs(ci,{style:u,windowSize:L,children:[C&&n.jsxRuntimeExports.jsx(Dn,{checkBox:C,index:0,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:g,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:p,width:r,draggable:f,groupLabelCheckBox:C,infoIconContainerStyle:y,checkedIconColor:d,isDisabled:a,selectionLimit:R,onDragStart:E,ref:Q,onChangeHandler:P}),n.jsxRuntimeExports.jsx(li,{children:n.jsxRuntimeExports.jsx(n.AutoSizer,{style:{height:"100%",width:"100%"},children:({height:q,width:U})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:M,height:q,width:U,itemCount:I.length,itemSize:()=>j,estimatedItemSize:j,initialScrollOffset:b??0,onScroll:({scrollOffset:B})=>{O?.(B)},overscanCount:oi,itemKey:B=>I[B].value,itemData:{checkBoxes:I,value:T,allCheckBoxValues:A,mode:l,name:e,checkBoxContainerStyle:g,checkBoxIconStyle:h,checkBoxStyle:c,labelCheckBoxStyle:o,labelStyle:p,width:r,draggable:f,groupLabelCheckBox:C,infoIconContainerStyle:y,checkedIconColor:d,isDisabled:a,selectionLimit:R,onDragStart:E,ref:Q,onChange:_,handleChangeEvent:P,rowHeight:j},children:ri})})})]})}})}const ri=({index:e,style:s,data:l})=>{const a=m.useRef(null),{checkBoxes:u,value:p,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:g,labelStyle:f,width:R,draggable:y,groupLabelCheckBox:E,infoIconContainerStyle:j,checkedIconColor:b,isDisabled:O,selectionLimit:L,onDragStart:M,ref:w,handleChangeEvent:C}=l,I=u[e];return n.jsxRuntimeExports.jsx(hi,{style:{...s,width:"100%"},ref:a,children:n.jsxRuntimeExports.jsx(Dn,{checkBox:I,index:e,value:p,allCheckBoxValues:o,mode:c,name:r,checkBoxContainerStyle:x,checkBoxIconStyle:d,checkBoxStyle:h,labelCheckBoxStyle:g,labelStyle:f,width:R,draggable:y,groupLabelCheckBox:E,infoIconContainerStyle:j,checkedIconColor:b,isDisabled:O,selectionLimit:L,onDragStart:M,ref:w,onChangeHandler:C})})},Dn=m.forwardRef((e,s)=>{const{value:l,checkBox:a,groupLabelCheckBox:u,allCheckBoxValues:p,selectionLimit:o,mode:c,checkBoxStyle:r,labelCheckBoxStyle:x,isDisabled:d,draggable:h,checkBoxContainerStyle:g,infoIconContainerStyle:f,name:R,index:y,width:E,checkedIconColor:j,checkBoxIconStyle:b,labelStyle:O,onDragStart:L,onChangeHandler:M}=e,w=t.useWindowSizeContext(),C=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]));u?.value===a.value&&l.length>0&&(o!=null?I=A.length===p.length||A.length===o+1:I=p.every(T=>A.includes(T)===!0));const W=()=>c==="off"||a.isException?w==="small"?{display:"none",...r}:{visibility:"hidden",...r}:a.groupLabel?p.length===1&&p[0]===u?.value?{visibility:"hidden",...x}:x:r;return n.jsxRuntimeExports.jsxs(ui,{mode:c,draggable:h===!0,onDragStart:T=>{L?.(T,a.value)},style:g,isDisabled:d,isSelected:I,exceptionMode:a.exceptionMode,children:[a.prefix?n.jsxRuntimeExports.jsx(di,{className:"prefix-box",children:a.prefix}):null,a.isException?n.jsxRuntimeExports.jsx(pi,{style:f,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(mi,{}):n.jsxRuntimeExports.jsx(xi,{})})}):n.jsxRuntimeExports.jsx(t.StyledCheckBox,{name:`${R}.${a.value}`,checkBoxValue:a.value,value:I,checkedIconColor:j,isDisabled:d||!a.groupLabel&&!I&&o!=null&&A.length===o+1?"disabled":void 0,checkBoxStyle:W(),checkBoxIconStyle:b,ref:C,onChange:M}),typeof a.label=="string"&&a.label?n.jsxRuntimeExports.jsx(t.Label,{isDisabled:d,label:a.label,labelStyle:O,htmlFor:`${R}.${a.value}`,style:{display:"flex",flex:1,minHeight:t.Space.sp4,marginLeft:t.Space.sp2,width:E,backgroundColor:"inherit",...O}}):a.label]},`${a.value}_${y}`)});Dn.displayName="CheckBoxWithLabel";const ai=({event:e,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:u})=>{const p=e.currentTarget.value,o=e.currentTarget.checked,c=a?.value,r=new Set(s);if(p===c){u(o?Array.from(new Set([c,...l])):[]);return}o?r.add(p):r.delete(p);const x=l.every(d=>r.has(d));c!=null&&(x&&!r.has(c)?r.add(c):!x&&r.has(c)&&r.delete(c)),u(Array.from(r))},ci=i.div`
155
- display: flex;
156
- flex-direction: column;
157
- width: 100%;
158
- height: 100%;
159
- `,li=i.div`
160
- flex: 1;
161
- overflow: hidden;
162
- `,di=i.div`
163
- opacity: 0;
164
- `,ui=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"&&De.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"&&De.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"&&De.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"&&De.css`
213
- :hover {
214
- .checkbox-alert {
215
- opacity: 1;
216
- }
217
- }
218
- `}
219
-
220
- ${e=>e.exceptionMode==="checked_or_hover"&&De.css`
221
- .checkbox-alert {
222
- opacity: 1;
223
- }
224
- `}
225
- `,pi=i.div`
226
- cursor: pointer;
227
- `,mi=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
- `,xi=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
- `,hi=i.div`
240
- width: 100%;
241
- box-sizing: border-box;
242
- `,gi=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})),ji=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})),fi=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})),yi=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"})),Si=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
- `,Ri=i(ji)`
251
- width: 90px;
252
- height: 90px;
253
- `,Ci=i(fi)`
254
- width: 90px;
255
- height: 90px;
256
- `,Ei=i(gi)`
257
- width: 90px;
258
- height: 90px;
259
- `,vi=i(yi)`
260
- width: 90px;
261
- height: 90px;
262
- `,wi=i.div`
263
- display: flex;
264
- align-items: center;
265
- justify-content: center;
266
- flex-direction: column;
267
- `,bi=i(t.H6Regular)`
268
- margin-top: ${t.Space.sp2};
269
- color: ${e=>e.theme.colors.brandColorJade};
270
- `,Ii=i(t.LargeRegular)`
271
- color: ${e=>e.theme.colors.primary};
272
- `,ki=e=>{const{tab:s}=e;switch(s){case"transaction_categorization":return n.jsxRuntimeExports.jsx(Ri,{});case"je_schedules":case"reconciliation":return n.jsxRuntimeExports.jsx(vi,{});case"flux_analysis":return n.jsxRuntimeExports.jsx(Ei,{});case"missing_receipts":default:return n.jsxRuntimeExports.jsx(Ci,{})}};function dt(e){const{title:s,subTitle:l}=e;return n.jsxRuntimeExports.jsx(Si,{children:n.jsxRuntimeExports.jsxs(wi,{children:[n.jsxRuntimeExports.jsx(ki,{...e}),n.jsxRuntimeExports.jsx(bi,{children:s}),n.jsxRuntimeExports.jsx(Ii,{children:l})]})})}const{common:{headers:{transactions:Ti,jeSchedules:$i,fluxAnalysis:Li,missingReceipts:Ai,insights:Oi,reconciliation:Gn},strings:{empty:Et}},expenseAutomation:{transactions:{tabs:Kn,subTitles:{review:{item1:qt,item2:Ut},autoCategorized:{item1:Gt,item2:Di}},searchPlaceholder:_i,allDoneText:Mi},jeSchedules:{subTitles:{item1:Bi,item2:Ni},searchPlaceholder:Pi,allDoneText:Fi},missingReceipts:{subTitles:zi,searchPlaceholder:Hi,allDoneText:Wi},fluxAnalysis:{subTitles:{item1:Vi,item2:qi},searchPlaceholder:Ui,emptyPageTexts:{youDidIt:Gi,allReviewed:Ki}},accountRecon:{review:{allDoneText:Jn},reconcile:{allDoneText:Ji},tabs:Zn,titles:{item1:Zi,item2:Yi},subTitles:{review:{item1:Xi,item2:Kt},reconcile:{item1:Jt,item2:Qi}}}}}=t.appLocale.getLocalizedStrings(),Be=(e,s,l,a,u)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Ti,subTitle:[],tabs:[{label:Kn.review,id:"review",subTitle:[{pre:qt.pre,bold:qt.bold,prefixIconName:qt.prefixIconName,post:qt.post},{pre:Ut.pre,bold:Ut.bold,prefixIconName:Ut.prefixIconName,post:Ut.post}]},{label:Kn.autoCategorized,id:"autoCategorized",subTitle:[{pre:Gt.pre,bold:Gt.bold,prefixIconName:Gt.prefixIconName,post:Gt.post.replace("#number",s!=null&&s!=0?s.toString():"")},Di]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:_i,allDoneText:Mi};case"je_schedules":return{key:"je_schedules",title:$i,subTitle:[Bi,Ni],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Pi,allDoneText:Fi};case"missing_receipts":return{key:"missing_receipts",title:Ai,subTitle:[zi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Hi,allDoneText:Wi};case"flux_analysis":return{key:"flux_analysis",title:Li,subTitle:[Vi,qi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ui,allDoneText:{title:Gi,subTitle:Ki}};case"month_end_insights":return{key:"month_end_insights",title:Oi,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}};case"reconciliation":return l==null?{key:"reconciliation",title:Gn,subTitle:[Zi,Yi],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Et,allDoneText:{title:Et,subTitle:Et}}:{key:"reconciliation",title:a??Gn,subText:u??void 0,subTitle:[],tabs:[{label:Zn.review,id:"review",subTitle:[Xi,{pre:Kt.pre,bold:Kt.bold,prefixIconName:Kt.prefixIconName,post:Kt.post}],allDoneText:Jn},{label:Zn.reconcile,id:"reconcile",subTitle:[{pre:Jt.pre,bold:Jt.bold,prefixIconName:Jt.prefixIconName,post:Jt.post},Qi],allDoneText:Ji}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Et,allDoneText:Jn}}},{common:{strings:{empty:er}},expenseAutomation:{accountRecon:{reconcile:{header:ft}}}}=t.appLocale.getLocalizedStrings(),tr={key:"date",value:ft.date,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginLeft:t.sp[4],marginRight:t.sp[3]}},nr={key:"clearedDate",value:ft.clearedDate,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3],display:"none"}},sr={key:"type",value:ft.type,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},or={key:"payee",value:ft.payee,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ir={key:"account",value:ft.account,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},rr={key:"transactionDirection",value:ft.direction,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},ar={key:"memo",value:ft.memo,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},cr={key:"amount",value:ft.amount,sortOrder:"ascending",width:new t.ResponsiveSized(12.75,12.75,12.75),customStyle:{marginRight:t.sp[3]}},lr={key:"recommended",value:er,sortOrder:"ascending",width:new t.ResponsiveSized(1.25,1.25,1.25),customStyle:{marginRight:t.sp[4],marginLeft:t.sp[0]}},$e=[tr,nr,sr,or,ir,rr,ar,cr,lr],dr=50,Pt={sortKey:"date",sortOrder:"descending"};function ur({sortConfig:e,onReconTabColumnSortConfigChanged:s}){const l=t.useWindowSizeContext(),[a,u]=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";u(c)},[e.sortKey,e.sortOrder]);const p=(c,r)=>{let x=r;e.sortKey===c&&(x=r==="ascending"?"descending":"ascending"),s(c,x)},o=c=>{p(c.key,c.sortOrder)};return n.jsxRuntimeExports.jsx(hr,{headerHeight:dr,children:a.map(c=>n.jsxRuntimeExports.jsx(mr,{columnWidth:c.width,windowSize:l,sortDataValue:e.sortKey,actualDataValue:c.key,style:c.customStyle,children:n.jsxRuntimeExports.jsxs(Sr,{isVisible:c.key!=="recommended",children:[n.jsxRuntimeExports.jsx(xr,{"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(gr,{sortConfig:e,headerData:c,children:n.jsxRuntimeExports.jsx(jr,{})}),n.jsxRuntimeExports.jsx(fr,{isVisible:e.sortKey===c.key&&(e.sortKey!==Pt.sortKey||e.sortOrder!==Pt.sortOrder),children:n.jsxRuntimeExports.jsx(yr,{"data-testid":t.generateDataTestId("reconcile-tab-list-reset-sort",Pt.sortKey),onClick:()=>s(Pt.sortKey,Pt.sortOrder)})})]})},c.key))})}const pr=m.memo(ur),mr=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
- `,xr=i.div`
286
- display: flex;
287
- gap: 5px;
288
- cursor: pointer;
289
- `,hr=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
- `,gr=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
- `,jr=i(t.SvgArrowTailTop)`
307
- width: ${t.Space.sp2};
308
- height: ${t.Space.sp2};
309
- `,fr=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
- `,yr=i(t.SvgCloseRound)`
319
- width: 12px;
320
- height: 12px;
321
- `,Sr=i.div`
322
- display: ${e=>e.isVisible?"flex":"none"};
323
- `,Rr=54,Cr=72,{common:{strings:{hyphen:an}}}=t.appLocale.getLocalizedStrings(),{dateFormat:Yn}=t.appLocale.getLocalizedStrings();function Er({selectedTransactionIds:e,transaction:s,transactionId:l}){const a=t.useWindowSizeContext(),u=n.useTheme(),[p,o]=m.useState(!1),c=e.includes(l),r=p||c;return n.jsxRuntimeExports.jsx(vr,{id:l,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n.jsxRuntimeExports.jsxs(wr,{isSelected:r,totalHeight:Rr,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(Yn.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(Yn.visual.MMMDCommaYYYYformat):n.jsxRuntimeExports.jsx("span",{children:an})})}):null,n.jsxRuntimeExports.jsx(rt,{windowSize:a,style:$e[2].customStyle,responsiveWidth:$e[2].width,children:n.jsxRuntimeExports.jsx(kr,{isSelected:r,children:n.jsxRuntimeExports.jsx(br,{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?u.colors.primary:u.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:an})})}),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?u.colors.primary:u.colors.hero}}):n.jsxRuntimeExports.jsx(vt,{isSelected:r,children:n.jsxRuntimeExports.jsx("span",{children:an})})}),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?u.colors.primary:u.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(Ir,{}):null})})]})})}const vr=i.div`
324
- box-sizing: border-box;
325
- width: 100%;
326
- display: flex;
327
- padding-right: ${t.Space.sp8};
328
- `,wr=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
- `,br=i(t.ExtraSmallRegular)`
356
- text-transform: capitalize;
357
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
- `,Ir=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
- `,kr=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
- `,Tr=t.appLocale.getLocalizedStrings(),{common:{all:Xn,strings:{empty:Qn}}}=Tr,es="selectedTransactionIds",$r="expenseAutomationBankReconReconcilePage",Lr=e=>`${e}_form`;function Ar({currentFooterFormId:e,localData:s,matchedTransactions:l,sortConfig:a,onSaveReconciliation:u,selectedAccountId:p,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(pr,{onReconTabColumnSortConfigChanged:o,sortConfig:a}),value:Xn.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=l.map(y=>({label:n.jsxRuntimeExports.jsx(Er,{transaction:y,selectedTransactionIds:s.selectedTransactionIds,transactionId:y.id}),value:y.id,defaultChecked:!1,groupLabel:!1})),g=[d,...h],f=async y=>{const j=y[es].filter(b=>b!=Xn.toLocaleLowerCase());c(j)};m.useEffect(()=>{const y=x.watch(E=>{E!=null&&n.defer(()=>f(E))});return()=>{y.unsubscribe()}}),m.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const R=m.useCallback(()=>{u({reconcileAction:"reconcile"})},[u]);if(l.length===0){const y=Be("reconciliation",void 0,p).tabs.find(E=>E.id==="reconcile")?.allDoneText;return n.jsxRuntimeExports.jsx(Mr,{children:n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:y?.title??Qn,subTitle:y?.subTitle??Qn})})}return n.jsxRuntimeExports.jsx(Or,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...x,children:n.jsxRuntimeExports.jsx(Dr,{onSubmit:x.handleSubmit(R),id:Lr($r),children:n.jsxRuntimeExports.jsx(_r,{children:n.jsxRuntimeExports.jsx(ii,{name:es,checkBoxes:g,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:Cr,mode:s.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const Or=i.div``,Dr=i.form``,_r=i.div`
370
- height: calc(100vh - 350px);
371
- `,Mr=i.div`
372
- height: 100%;
373
- display: flex;
374
- justify-content: center;
375
- align-items: center;
376
- `,$n=69,le={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},Gs=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
- `,Ks=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
- `,Js=i.div`
393
- width: 100%;
394
- `,Zs=i.div`
395
- width: 100%;
396
- `,_n=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
- `,Mn=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
- `,Br=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
- `,Nr=i.div`
417
- padding: ${t.Space.sp2} ${t.Space.sp3};
418
- `,Bn=i.div`
419
- display: flex;
420
- `,Pr=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
- `,Nn=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
- `,Y=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
- `,st=i.div`
477
- padding: ${t.Space.sp2} ${t.Space.sp3};
478
- `,oe=i(t.ExtraSmallRegular)`
479
- color: ${e=>e.theme.colors.hero};
480
- `,ce=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
- `,Pn=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
- `,Fn=i.div`
511
- flex: 1;
512
- `,Ys=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
- `,nn=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(nn)`
524
- padding: 2px ${t.Space.sp2};
525
- `,Lt=t.appLocale.getLocalizedStrings().expenseAutomation.accountRecon.review.header,ct=[{key:"date",value:Lt.date,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:120},{key:"payee",value:Lt.payee,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:212},{key:"memo",value:Lt.memo,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),loaderWidth:192},{key:"direction",value:Lt.direction,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:84},{key:"match",value:Lt.match,sortOrder:"ascending",width:new t.ResponsiveSized(15,15),loaderWidth:152},{key:"amount",value:Lt.amount,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),loaderWidth:64}],Fr=e=>{const{sortConfig:s,onColumnSortConfigChanged:l}=e,a=t.useWindowSizeContext(),[u,p]=m.useState(n.cloneDeep(ct));m.useEffect(()=>{const c=[...u];for(const r of c)r.key===s.sortKey?r.sortOrder=s.sortOrder:r.sortOrder="ascending";p(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(Hr,{children:u.map(c=>n.jsxRuntimeExports.jsxs(Wr,{sortDataValue:s.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:a,isLastColumn:c.key==="amount",children:[n.jsxRuntimeExports.jsxs(Vr,{"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(qr,{sortDataValue:s.sortKey,headerData:c,children:n.jsxRuntimeExports.jsx(Ur,{})})]}),n.jsxRuntimeExports.jsx(Gr,{sortDataValue:s.sortKey,windowSize:a,isVisible:s.sortKey===c.key&&(s.sortKey!=="date"||s.sortOrder==="ascending"),children:n.jsxRuntimeExports.jsx(Kr,{"data-testid":t.generateDataTestId("account-reconciliation-review-sort-by-date"),onClick:()=>o("date","ascending")})})]},c.key))})},zr=m.memo(Fr),Hr=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
- `,Wr=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
- `,Vr=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
- `,qr=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"?De.css`
560
- padding-top: 2px;
561
- `:De.css`
562
- padding-bottom: 2px;
563
- `}
564
- `,Ur=i(t.SvgArrowTailTop)`
565
- width: ${t.Space.sp2};
566
- height: ${t.Space.sp2};
567
- cursor: pointer;
568
- color: inherit;
569
- `,Gr=i.div`
570
- display: ${e=>e.isVisible?"flex":"none"};
571
- align-items: center;
572
- padding-top: 2px;
573
- `,Kr=i(t.SvgCloseRound)`
574
- width: 12px;
575
- height: 12px;
576
- cursor: pointer;
577
- color: ${e=>e.theme.colors.hero};
578
- `,Xe="accountReconReviewTableSection",{dateFormat:Jr,expenseAutomation:Zr,common:it}=t.appLocale.getLocalizedStrings(),{visual:Xs}=Jr,{accountRecon:fe}=Zr,Qs=e=>[{label:fe.review.formLabels.allBankAccounts,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],eo=e=>[{label:fe.review.formLabels.allCreditCards,options:e.map(s=>({label:s.accountName,value:s.accountId}))}],ts=e=>`${Xe}_${e}_form`,be=(e,s)=>`${Xe}.${e}.${s}`,Yr=e=>{const{sortKey:s,sortOrder:l,accountReconEntity:a,entitySearchAutoCompleteActions:u,allAccountList:p,classList:o,localData:c,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,selectedAccountId:d,entitySearchAutoCompleteData:h,excludeFetchById:g,saveFetchById:f,reviewTabSelectedVendorByTransactionId:R,refreshStatus:y,updateLocalData:E,onColumnSortConfigChanged:j,onSaveReconciliation:b,onSaveReconciliationReview:O,onReconMatchedTransactionClick:L,bankAccounts:M,creditCards:w}=e,{transactionsToReview:C}=a,I=m.useRef(null),[A,W]=m.useState(null),T=_=>{const P=C[_],q=V.isReviewTransactionBillPaymentType(P),U=V.isReviewTransactionExpenseType(P),B=V.isReviewTransactionCreditCardPaymentType(P),se=V.isReviewTransactionBankTransferType(P),he=V.isReviewTransactionDepositType(P),J=P.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return P.transactionId===A?U||B||se||he?275+(J?25:0):q?185+P.recommendedAction.recommendedTransactions.length*40+(J?25:0):146:72},Q=m.useMemo(()=>({onColumnSortConfigChanged:j,sortConfig:{sortKey:s,sortOrder:l}}),[j,s,l]);if(m.useEffect(()=>{W(C[0]?.transactionId??null),I.current?.resetAfterIndex(0)},[s,l]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[A]),m.useEffect(()=>{I.current?.resetAfterIndex(0)},[C.length]),m.useEffect(()=>{y.fetchState==="Completed"&&I.current?.resetAfterIndex(0)},[y]),C.length===0){const _=Be("reconciliation",void 0,d).tabs.find(P=>P.id==="review")?.allDoneText;return n.jsxRuntimeExports.jsx(ya,{children:n.jsxRuntimeExports.jsx(dt,{tab:"reconciliation",title:_?.title??it.strings.empty,subTitle:_?.subTitle??it.strings.empty})})}return n.jsxRuntimeExports.jsx(ia,{children:n.jsxRuntimeExports.jsx(to.Provider,{value:Q,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:_,width:P})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{width:P,height:_,innerElementType:no,ref:I,itemCount:C.length,itemSize:T,itemKey:q=>C[q].transactionId,overscanCount:Co.OVERSCAN_COUNT,itemData:{transactionsList:C,expandedRowId:A,allAccountList:p,classList:o,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:x,localData:c,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:u,excludeFetchById:g,saveFetchById:f,reviewTabSelectedVendorByTransactionId:R,bankAccounts:M,creditCards:w,updateLocalData:E,setExpandedRowId:W,onSaveReconciliation:b,onSaveReconciliationReview:O,onReconMatchedTransactionClick:L},initialScrollOffset:0,children:Xr})})})})},to=m.createContext(void 0),no=m.forwardRef((e,s)=>{const{children:l,style:a,...u}=e,{sortConfig:p,onColumnSortConfigChanged:o}=m.useContext(to);return n.jsxRuntimeExports.jsxs(ra,{ref:s,style:{...a,width:"auto",padding:`${t.Space.sp0} ${t.Space.sp8}`},...u,children:[n.jsxRuntimeExports.jsx(zr,{onColumnSortConfigChanged:o,sortConfig:p}),n.jsxRuntimeExports.jsx(aa,{children:l})]})});no.displayName="Account recon review table inner element type";const Xr=({index:e,style:s,data:l})=>{const{transactionsList:a,expandedRowId:u,setExpandedRowId:p,entitySearchAutoCompleteActions:o,allAccountList:c,classList:r,localData:x,updateLocalData:d,accountListNestedAccountHierarchy:h,classListNestedAccountHierarchy:g,entitySearchAutoCompleteData:f,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:E,excludeFetchById:j,saveFetchById:b,reviewTabSelectedVendorByTransactionId:O,bankAccounts:L,creditCards:M}=l,w=a[e];return n.jsxRuntimeExports.jsx(oa,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(Qr,{transaction:w,expandedRowId:u,setExpandedRowId:p,entitySearchAutoCompleteActions:o,accountListNestedAccountHierarchy:h,allAccountList:c,classList:r,localData:x,updateLocalData:d,entitySearchAutoCompleteData:f,classListNestedAccountHierarchy:g,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:E,excludeFetchById:j,saveFetchById:b,selectedVendor:O[w.transactionId],bankAccounts:L,creditCards:M})})},Qr=({transaction:e,expandedRowId:s,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,allAccountList:u,classList:p,classListNestedAccountHierarchy:o,localData:c,entitySearchAutoCompleteData:r,excludeFetchById:x,saveFetchById:d,selectedVendor:h,bankAccounts:g,creditCards:f,setExpandedRowId:R,updateLocalData:y,onSaveReconciliation:E,onSaveReconciliationReview:j,onReconMatchedTransactionClick:b})=>{const O=s===e.transactionId,L=t.useWindowSizeContext(),M=c[e.transactionId],w=e.recommendedAction.action==="record_bill_payment",C=e.recommendedAction.action==="record_expense",I=u.find(T=>T.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),A=T=>T.recommendedAction.recommendedTransactions.length>0&&T.recommendedAction.recommendedTransactions[0].merchantName!=null?T.recommendedAction.recommendedTransactions[0].merchantName:it.strings.hyphen,W=e.recommendedAction.recommendedTransactions[0]?.merchantName;return n.jsxRuntimeExports.jsxs(ta,{isExpanded:O,children:[n.jsxRuntimeExports.jsxs(na,{isExpanded:O,onClick:()=>R(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-row",e.transactionId),children:[n.jsxRuntimeExports.jsx(Ot,{windowSize:L,responsiveWidth:ct[0].width,children:n.jsxRuntimeExports.jsx(At,{children:e.transactionDate.format(Xs.MMMDCommaYYYYformat)})}),n.jsxRuntimeExports.jsx(Ot,{windowSize:L,responsiveWidth:ct[1].width,children:n.jsxRuntimeExports.jsx(At,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:A(e)})})}),n.jsxRuntimeExports.jsx(Ot,{windowSize:L,responsiveWidth:ct[2].width,children:n.jsxRuntimeExports.jsx(At,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),n.jsxRuntimeExports.jsx(Ot,{windowSize:L,responsiveWidth:ct[3].width,children:n.jsxRuntimeExports.jsx(At,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),n.jsxRuntimeExports.jsxs(Ot,{windowSize:L,responsiveWidth:ct[4].width,children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:w,children:n.jsxRuntimeExports.jsx(Sa,{children:n.jsxRuntimeExports.jsx(Ra,{children:fe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!w,children:n.jsxRuntimeExports.jsx(At,{children:I!=null?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(so,{}),n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"},text:I.accountName})]}):it.strings.hyphen})})]}),n.jsxRuntimeExports.jsx(Ot,{windowSize:L,isLastColumn:!0,responsiveWidth:ct[5].width,children:n.jsxRuntimeExports.jsx(At,{children:t.amountValueToString("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),n.jsxRuntimeExports.jsxs(t.ControlledComponent,{controller:O&&M!=null,children:[n.jsxRuntimeExports.jsx(ea,{onSaveReconciliation:E,onSaveReconciliationReview:j,updateLocalData:y,saveFetchById:d,excludeFetchById:x,localData:M,classListNestedAccountHierarchy:o,allAccountList:u,classList:p,transaction:e,accountListNestedAccountHierarchy:l,entitySearchAutoCompleteActions:a,entitySearchAutoCompleteData:r,selectedVendor:h,bankAccounts:g,creditCards:f,onReconMatchedTransactionClick:b}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:(w||C)&&W!=null,children:n.jsxRuntimeExports.jsx(Ea,{children:n.jsxRuntimeExports.jsxs(va,{children:[fe.review.bankDetail,it.strings.colon," ",W]})})})]})]})},ea=({transaction:e,accountListNestedAccountHierarchy:s,entitySearchAutoCompleteActions:l,allAccountList:a,classList:u,classListNestedAccountHierarchy:p,localData:o,entitySearchAutoCompleteData:c,excludeFetchById:r,saveFetchById:x,selectedVendor:d,bankAccounts:h,creditCards:g,updateLocalData:f,onSaveReconciliation:R,onSaveReconciliationReview:y,onReconMatchedTransactionClick:E})=>{const j=n.useTheme(),[b,O]=m.useState(!o.vendor?.id),[L,M]=m.useState(!o.customer?.id),[w,C]=m.useState(o.categoryId==null),[I,A]=m.useState(o.classId==null),[W,T]=m.useState(o.bankAccountId==null),[Q,_]=m.useState(o.creditCardId==null),[P,q]=m.useState(!o.memo),U=V.isReviewTransactionBillPaymentType(e),B=V.isReviewTransactionExpenseType(e),se=V.isReviewTransactionBankTransferType(e),he=V.isReviewTransactionCreditCardPaymentType(e),J=V.isReviewTransactionDepositType(e),ue=m.useMemo(()=>{if(!B)return t.getGroupedAccountOptions(s);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedAccountOptions(s,d?.recommendations);const S=a.find(de=>de.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Z=S!=null?{...S,reason:fe.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedAccountOptions(s,[{account:Z}])},[B,d,e.recommendedAction.recommendedTransactions,a,s]),te=m.useMemo(()=>{if(!B)return t.getGroupedClassOptions(p);if(d!=null&&d.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return t.getGroupedClassOptions(p,d?.recommendations);const S=u.find(de=>de.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Z=S!=null?{...S,reason:fe.review.zeniGptRecommendation,min:0,max:0}:void 0;return t.getGroupedClassOptions(p,[{class:Z}])},[B,d,e.recommendedAction.recommendedTransactions,u,p]),v=n.useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:m.useMemo(()=>ns(e,o,ue,a,te,h,g,c),[e,o,te,a,ue,h,g,c]),values:m.useMemo(()=>ns(e,o,ue,a,te,h,g,c),[e,o,te,a,ue,h,g,c])}),z=async(S,Z)=>{S.includes("memo")||f(ss(Z,e,c,a),e.transactionId,S.includes("vendor"))};m.useEffect(()=>{const S=v.watch((Z,{name:de})=>{de!=null&&Z!=null&&n.defer(()=>z(de,Z))});return()=>{S.unsubscribe()}});const H=m.useCallback(S=>{if(B||J){if(B&&o.vendor==null){O(!1),v.setError(be(e.transactionId,"vendor"),{type:"required"});return}if(J&&o.customer==null){M(!1),v.setError(be(e.transactionId,"customer"),{type:"required"});return}if(o.categoryId==null){C(!1),v.setError(be(e.transactionId,"category"),{type:"required"});return}}f(ss(S,e,c,a),e.transactionId,!1),y(e.transactionId)},[B,J,f,e,c,a,y,o.categoryId,o.vendor,o.customer]),N=v.watch(be(e.transactionId,"vendor")),F=v.watch(be(e.transactionId,"customer")),$=m.useRef(),G=m.useMemo(()=>B?"vendor":J?"customer":null,[B,J]),pe=(S,Z)=>{G!=null&&l.onAutoCompleteInputChange?.(S,G),$.current=Z};m.useEffect(()=>{c.entityAutoCompleteView.fetchState==="Completed"&&(B&&$.current?.(t.getVendorOptions(c.entityAutoCompleteView)),J&&$.current?.(t.getCustomerOptions(c.entityAutoCompleteView)))},[c.entityAutoCompleteView,J,B]);const D=S=>u.filter(de=>de.classId===S)[0]?.accountingClassNumber??void 0,ee=S=>a.filter(de=>de.qboId===S)[0]?.qboId,ne=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]),K=()=>{C(!1)},je=()=>{T(!1)},ve=()=>{_(!1)};return m.useEffect(()=>{w===!1&&o.categoryId==null&&v.setFocus(be(e.transactionId,"category"))},[w]),m.useEffect(()=>{I===!1&&o.classId==null&&v.setFocus(be(e.transactionId,"class"))},[I]),m.useEffect(()=>{b===!1&&o.vendor==null&&v.setFocus(be(e.transactionId,"vendor"))},[b]),m.useEffect(()=>{L===!1&&o.customer==null&&v.setFocus(be(e.transactionId,"customer"))},[L]),m.useEffect(()=>{W===!1&&o.bankAccountId==null&&v.setFocus(be(e.transactionId,"bankAccount"))},[W]),m.useEffect(()=>{Q===!1&&o.creditCardId==null&&v.setFocus(be(e.transactionId,"creditCard"))},[Q]),n.jsxRuntimeExports.jsx(n.FormProvider,{...v,children:n.jsxRuntimeExports.jsx("form",{onSubmit:v.handleSubmit(H),id:ts(e.transactionId),children:n.jsxRuntimeExports.jsxs(sa,{children:[n.jsxRuntimeExports.jsxs(ca,{children:[n.jsxRuntimeExports.jsxs(ua,{children:[n.jsxRuntimeExports.jsxs(pa,{children:[n.jsxRuntimeExports.jsx(so,{}),n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:U?fe.review.formLabels.match:fe.review.formLabels.categorize},radioField:{name:be(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(os,{}),ne.map(S=>n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:fe.review.formLabels[S]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:be(e.transactionId,"recommendedActionType"),id:S,value:S,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}},S))]})})]}),n.jsxRuntimeExports.jsxs(da,{children:[n.jsxRuntimeExports.jsx(t.Button,{variant:"secondary",size:"small",label:fe.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:()=>{R({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),n.jsxRuntimeExports.jsx(t.Button,{form:ts(e.transactionId),"data-testid":t.generateDataTestId("account-reconciliation-review-save-button",e.transactionId),label:it.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:B||J,children:n.jsxRuntimeExports.jsxs(cn,{children:[n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:B,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.vendor==null&&b===!1&&O(!0)},children:n.jsxRuntimeExports.jsx(Y,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(st,{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:it.texts.vendor}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:b===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),O(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.addVendor]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:be(e.transactionId,"vendor"),allowEmpty:!1,placeholder:fe.review.formLabels.addVendor,valueToId:S=>S,defaultValue:{selectedOption:N?.selectedOption,defaultOptions:N?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:pe})})})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:J,children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.customer==null&&L===!1&&M(!0)},children:n.jsxRuntimeExports.jsx(Y,{style:{flex:1,padding:t.sp[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:n.jsxRuntimeExports.jsxs(st,{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:it.texts.customer}),n.jsxRuntimeExports.jsx(ie,{style:{gap:t.sp[3]},className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:L===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),M(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.addCustomer]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:be(e.transactionId,"customer"),allowEmpty:!1,placeholder:fe.review.formLabels.addCustomer,valueToId:S=>S,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:S=>!!S.selectedOption},loadOptions:pe})})})]})})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.categoryId==null&&w===!1&&C(!0)},children:n.jsxRuntimeExports.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:it.texts.category}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:w===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),K()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:be(e.transactionId,"category"),placeholder:fe.review.formLabels.addCategory,valueToId:S=>ee(S),defaultValue:{allOptions:ue,selectedOption:a.find(S=>S.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})}),n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.classId==null&&I===!1&&A(!0)},children:n.jsxRuntimeExports.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:it.texts.class}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:I===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.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:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.addClass]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:be(e.transactionId,"class"),placeholder:fe.review.formLabels.addClass,valueToId:S=>D(S),defaultValue:{allOptions:te,selectedOption:o.classId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:U,children:n.jsxRuntimeExports.jsxs(ma,{children:[n.jsxRuntimeExports.jsxs(xa,{children:[n.jsxRuntimeExports.jsx("span",{className:"matched-text",children:`${fe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),fe.review.matchesFoundFullInfo]}),n.jsxRuntimeExports.jsx(ga,{children:e.recommendedAction.recommendedTransactions.map(S=>S.bookTransactionId!=null?n.jsxRuntimeExports.jsxs(ja,{children:[n.jsxRuntimeExports.jsx(t.LabeledRadioField,{label:{label:n.jsxRuntimeExports.jsxs(ha,{children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{children:S.date.format(Xs.MMMDCommaYYYYformat)}),n.jsxRuntimeExports.jsx(t.StandardRegular,{children:S.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:be(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:S.bookTransactionId,value:S.bookTransactionId,style:{width:t.Space.sp3,height:t.Space.sp3,padding:"2px"}}}),n.jsxRuntimeExports.jsxs(Ca,{"data-testid":t.generateDataTestId("account-reconciliation-review-matched-transaction-amount",S.bookTransactionId),onClick:()=>{S.bookTransactionId!=null&&E(S.bookTransactionId)},children:[n.jsxRuntimeExports.jsx(fa,{children:t.amountValueToString("0,0.00",S.amount.amount,S.amount.currencySymbol)}),n.jsxRuntimeExports.jsx(os,{})]})]},S.bookTransactionId):null)})]})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:se,children:n.jsxRuntimeExports.jsx(cn,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.bankAccountId==null&&W===!1&&T(!0)},children:n.jsxRuntimeExports.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:fe.review.formLabels.transferTo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:W===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),je()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.selectAccount]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:be(e.transactionId,"bankAccount"),placeholder:fe.review.formLabels.selectAccount,defaultValue:{allOptions:Qs(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:he,children:n.jsxRuntimeExports.jsx(cn,{children:n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:()=>{o.creditCardId==null&&Q===!1&&_(!0)},children:n.jsxRuntimeExports.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:fe.review.formLabels.creditCard}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Q===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),ve()},"data-testid":t.generateDataTestId("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.selectCard]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,menuPortal:document.body,name:be(e.transactionId,"creditCard"),placeholder:fe.review.formLabels.selectCard,defaultValue:{allOptions:eo(g),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:S=>!!S.selectedOption},customStyleConfig:Zt})})})]})})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:!U,children:n.jsxRuntimeExports.jsx(la,{children:n.jsxRuntimeExports.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:fe.review.header.memo}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",children:n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:P===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:S=>{S.stopPropagation(),q(!1)},"data-testid":t.generateDataTestId("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:t.sp[1],color:j.colors.champion,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(wt,{}),fe.review.formLabels.addMemo]}):n.jsxRuntimeExports.jsx(t.TextField,{name:be(e.transactionId,"memo"),placeholder:fe.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}`})},ns=(e,s,l,a,u,p,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:u},bankAccount:{selectedOption:s?.bankAccountId,allOptions:Qs(p)},creditCard:{selectedOption:s?.creditCardId,allOptions:eo(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)}}}}},ss=(e,s,l,a)=>{const{vendor:u,customer:p}=e[Xe][s.transactionId];let o;if(u.selectedOption!=null){const x=u.defaultOptions.find(d=>d.value===u.selectedOption);if(x!=null)o={id:u.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.vendor.find(h=>h.id===u.selectedOption||h.zeniId===u.selectedOption);d!=null&&(o={id:d.zeniId,name:d.name})}}let c;if(p.selectedOption!=null){const x=p.defaultOptions.find(d=>d.value===p.selectedOption);if(x!=null)c={id:p.selectedOption,name:x.label};else{const d=l.entityAutoCompleteView.customer.find(h=>h.id===p.selectedOption||h.zeniId===p.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}},At=i(t.StandardRegular)`
579
- display: flex;
580
- align-items: center;
581
- column-gap: ${t.Space.sp1};
582
- `,Ot=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
- `,ta=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
- `,na=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
- `,sa=i.div`
611
- padding: ${t.Space.sp2} ${t.Space.sp4};
612
- display: flex;
613
- flex-direction: column;
614
- row-gap: ${t.Space.sp2};
615
- `,oa=i.div`
616
- top: ${t.Space.sp0};
617
- left: ${t.Space.sp0};
618
- box-sizing: border-box;
619
- `,ia=i.div`
620
- height: calc(100vh - 350px);
621
- max-width: 99.9%;
622
- padding: ${t.Space.sp0};
623
- `,ra=i.div``,aa=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
- `,ca=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
- `,cn=i.div`
639
- display: flex;
640
- flex-direction: row;
641
- align-items: center;
642
- column-gap: ${t.Space.sp3};
643
- `,la=i.div`
644
- width: 100%;
645
- `,da=i.div`
646
- display: flex;
647
- flex-direction: row;
648
- align-items: center;
649
- column-gap: ${t.Space.sp3};
650
- `,ua=i.div`
651
- display: flex;
652
- flex-direction: row;
653
- align-items: center;
654
- column-gap: ${t.Space.sp6};
655
- `,pa=i.div`
656
- display: flex;
657
- flex-direction: row;
658
- align-items: center;
659
- column-gap: ${t.Space.sp1};
660
- `,wt=i(t.SvgAddRound)`
661
- width: ${t.Space.sp3};
662
- height: ${t.Space.sp3};
663
- `,os=i(t.SvgArrowRight)`
664
- width: ${t.Space.sp3};
665
- height: ${t.Space.sp3};
666
- color: ${e=>e.theme.colors.hero};
667
- `,ma=i.div`
668
- display: flex;
669
- flex-direction: column;
670
- row-gap: ${t.Space.sp3};
671
- padding: ${t.Space.sp0} 12px;
672
- `,xa=i(t.StandardRegular)`
673
- color: ${e=>e.theme.colors.primary};
674
-
675
- .matched-text {
676
- font-weight: ${t.FontWeight.bold};
677
- }
678
- `,ha=i.div`
679
- display: flex;
680
- align-items: center;
681
- column-gap: ${t.Space.sp2};
682
- `,ga=i.div`
683
- display: flex;
684
- flex-direction: column;
685
- row-gap: ${t.Space.sp2};
686
- `,ja=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
- `,fa=i(t.StandardRegular)`
694
- color: ${e=>e.theme.colors.hero};
695
- `,ya=i.div`
696
- height: 100%;
697
- display: flex;
698
- justify-content: center;
699
- align-items: center;
700
- `,Sa=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
- `,Ra=i(t.ExtraSmallRegular)`
705
- color: ${e=>e.theme.colors.hero};
706
- `,Ca=i.div`
707
- display: flex;
708
- align-items: center;
709
- column-gap: 20px;
710
- cursor: pointer;
711
- `,Ea=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
- `,va=i(t.ExtraSmallRegular)`
716
- color: ${e=>e.theme.colors.hero};
717
- `,so=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
- `,wa=({reconciliation:e,entitySearchAutoCompleteData:s,selectedAccountId:l,currentFooterFormId:a,entitySearchAutoCompleteActions:u,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:c,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:g})=>{const{accountReconciliationsByAccountID:f,reconciliationTabsState:{reconcile:{uiState:{sortKey:R,sortOrder:y}}},selectedReconAccount:E}=e,j=f[l],{transactionFetchState:b}=E??{};return b?.fetchState==="In-Progress"||b?.fetchState==="Not-Started"?n.jsxRuntimeExports.jsxs(is,{style:{paddingLeft:t.sp[8],paddingRight:t.sp[8]},children:[n.jsxRuntimeExports.jsx(ba,{children:ct.map(O=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:O.loaderWidth,height:18},O.key))}),n.jsxRuntimeExports.jsxs(ka,{children:[...Array(3).fill(0).map((O,L)=>n.jsxRuntimeExports.jsx(Ia,{children:ct.map(M=>n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:M.loaderWidth,height:t.sp[4]},M.key))},`${L}_${O}`))]})]}):n.jsxRuntimeExports.jsx(is,{children:e.selectedTab==="reconcile"?n.jsxRuntimeExports.jsx(Ar,{selectedAccountId:l,currentFooterFormId:a,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:c,onSaveReconciliation:d,sortConfig:{sortKey:R,sortOrder:y},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:j?.accountReconEntity.transactionsToReconcile}):n.jsxRuntimeExports.jsx(Yr,{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:u,onColumnSortConfigChanged:x,onSaveReconciliation:d,onSaveReconciliationReview:h,onReconMatchedTransactionClick:g,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:l,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},is=i.div`
725
- width: 100%;
726
- height: 100%;
727
- `,ba=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
- `,Ia=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
- `,ka=i.div`
742
- display: flex;
743
- gap: ${t.Space.sp3};
744
- flex-direction: column;
745
- `;function Ta({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 $a({account:e,numOfBalances:s,title:l,isLastNode:a,config:u}){const p=Ae.uniqueID("ac_group_report",[],l);return{children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"ac_group_report",title:l,data:e,numOfBalances:s},config:u}}}function La({title:e,section:s,config:l,numOfBalances:a,nodeId:u}){return{children:[],id:u??Ae.uniqueID("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:a},config:l}}}function rs({section:e,allAccountReconciliations:s,title:l,subTitle:a,isLastNode:u,isTitleRowRequired:p,config:o}){const c=Ae.uniqueID("section",[],l),r={children:[],id:c,isLastNode:u,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:0},config:o}};if(p){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=La({title:a,section:e,config:o,numOfBalances:0});return r.children.push(x),e.accountIDs.forEach((d,h)=>{const g=s[d],f=$a({account:g,numOfBalances:0,title:g.accountReconEntity.account.accountName,isLastNode:h===e.accountIDs.length-1,config:o});r.children.push(f)}),r}function oo({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}}}const Aa=(e,s,l,a,u=!0)=>{const p=oo({config:s,accountReconForSection:e.accountReconciliationBySectionID.assets}),o=[];o.push(p);const c=Array.isArray(l[a])?l[a]:[],{expenseAutomation:{accountRecon:{reconciliation:r}},common:{loading:x}}=t.appLocale.getLocalizedStrings(),d=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",h=g=>g.filter(f=>!c.includes(f));if(d)[...Array(3)].forEach((g,f)=>{o.push(Ta({title:`${f}+${x}`,config:s}))});else{const g=h(e.accountReconciliationBySectionID.assets.accountIDs),f=rs({section:{...e.accountReconciliationBySectionID.assets,accountIDs:g},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.assets.title,subTitle:r.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:s});if(o.push(f),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const R=h(e.accountReconciliationBySectionID.liabilities.accountIDs),y=rs({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:R},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.liabilities.title,subTitle:r.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:s});o.push(y)}}return{config:s,headerNodes:u?[p]:[],contentNodes:o}};function Oa(e,s,l,a=!1){Object.assign(e.config,l);const u=oo({config:l,accountReconForSection:s.accountReconciliationBySectionID.assets});return{config:l,headerNodes:a?[u]:[],contentNodes:[u,...e.contentNodes.slice(1)]}}const Ln={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])},Da=i.div`
746
- display: flex;
747
- height: 100%;
748
- width: 100%;
749
- justify-content: center;
750
- align-items: center;
751
- `,_a=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=>Ln.wrapperPadding.valuePx(e.windowSize)};
759
- background-color: ${e=>e.theme.colors.grey4};
760
- `,Ma=i.div`
761
- width: 100%;
762
- height: 100%;
763
- `,{common:Ba}=t.appLocale.getLocalizedStrings();function Na({reconciliation:e,companyId:s,onScroll:l,onReload:a,onReviewClicked:u,setOpenDrawerClicked:p,onFetchLinkTokenClick:o,onEstablishConnectionClick:c,onAddStatementClick:r}){const[x,d]=m.useState(void 0),[h,g]=m.useState(void 0),f=e.plaidConnectionDetails.link_account_no_microdeposit,R=e.plaidConnectionDetails.update_account,y=h==="update_account"?R:f,[E,j]=m.useState(y.linkToken??null),[b,O]=m.useState(!1),{useDynamicConfig:L}=t.useZeniFeatureContext(),{configValue:M}=L(t.DynamicConfigNames.accountReconGLAccountsConfig),w=m.useCallback(N=>{d(N),g("link_account_no_microdeposit")},[]),C=m.useCallback(N=>{const F=T.current.accountReconciliationsByAccountID[N]?.paymentAccountId;d(N),g("update_account"),o("update_account",F)},[]),I=m.useCallback(N=>{p(N)},[]),A=m.useRef(x),W=m.useRef(h),T=m.useRef(e);m.useEffect(()=>{A.current=x},[x]),m.useEffect(()=>{W.current=h},[h]),m.useEffect(()=>{T.current=e},[e]);const Q=m.useCallback(N=>{c(N,A.current??"",W.current),d(void 0),g(void 0),O(!1)},[c]),_=m.useCallback((N,F)=>{N!=null&&console.log("Plaid Connection Error",N,F),d(void 0),g(void 0),O(!1)},[]),{open:P,ready:q}=n.usePlaidLink({token:E,onSuccess:Q,onExit:_});m.useEffect(()=>{(V.zeniDate(new Date().toISOString()).isAfter(y.expiration)||y.linkToken==null)&&y.fetchStatus.fetchState==="Not-Started"&&o("link_account_no_microdeposit")},[y.fetchStatus.fetchState]),m.useEffect(()=>{!b&&h!=null&&y.linkToken===E&&y.fetchStatus.fetchState==="Completed"&&q&&O(!0)},[q,E,y.fetchStatus.fetchState,y.linkToken,h,b]),m.useEffect(()=>{y.fetchStatus.fetchState==="Completed"&&y.linkToken!=null&&y.linkToken!==E&&j(y.linkToken)},[y.fetchStatus.fetchState,y.linkToken,E]),m.useEffect(()=>{b&&P()},[b,P]);const[U,B]=m.useState(void 0),[se,he]=m.useState(void 0),J=V.zeniDate("2025-03-31"),ue=1,te="account_reconciliation",v=t.useWindowSizeContext(),z=n.useTheme(),H=!0;return m.useEffect(()=>{const N={reportId:te,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:J,firstMonthOfFY:ue,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:u,onConnectClicked:w,onReconnectClicked:C,onOpenDrawerClicked:I,onStatementAddClicked:r}};if(U==null||!n.isEqual(se,e)){const F=Aa(e,N,M,s,H);he(e),B(F)}else{const F=Oa(U,e,N,H);B(F)}},[e]),e.fetchStatus.fetchState==="Error"?n.jsxRuntimeExports.jsx(Da,{children:n.jsxRuntimeExports.jsx(xe.ReloadContainer,{onReload:a,message:Ba.errorMessage.somethingWentWrong})}):n.jsxRuntimeExports.jsx(_a,{windowSize:v,children:U!=null?n.jsxRuntimeExports.jsx(Ma,{windowSize:v,children:n.jsxRuntimeExports.jsx(Ae.CollapsableReportTable,{backgroundColor:new n.Color(z.colors.grey4),rootNodes:U,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:H,isStickyName:H},treeNodePadding:{left:Ln.contentPaddingLeft.value(v),right:Ln.contentPaddingRight.value(v)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:l})}):null})}function Pa({currentFooterFormId:e,vendorSearchAutoCompleteData:s,vendorSearchAutoCompleteActions:l,reconciliation:a,companyId:u,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:c,setCurrentFooterFormId:r,onReloadReconciliationListPage:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:g,onAddStatementClick:f,onReconReviewTabColumnSortConfigChanged:R,onSaveReconciliation:y,onSaveReconciliationReview:E,setOpenDrawerClicked:j,onReconMatchedTransactionClick:b,onReconListPageScroll:O}){return a.selectedAccountId==null?n.jsxRuntimeExports.jsx(Na,{companyId:u,onScroll:O,reconciliation:a,onReload:x,onReviewClicked:d,onFetchLinkTokenClick:h,onEstablishConnectionClick:g,setOpenDrawerClicked:j,onAddStatementClick:f}):n.jsxRuntimeExports.jsx(wa,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:c,onReconTabColumnSortConfigChanged:p,reconciliation:a,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:l,onReconReviewTabColumnSortConfigChanged:R,entitySearchAutoCompleteData:s,selectedAccountId:a.selectedAccountId,onSaveReconciliation:y,onSaveReconciliationReview:E,onReconMatchedTransactionClick:b})}function Fa({accountAndClassReport:e,numOfBalances:s,title:l,isLastNode:a,isFirstNode:u,config:p,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:u,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:l,data:e,metadata:c,numOfBalances:s},config:p}}}function za({vendorView:e,numOfBalances:s,title:l,isLastNode:a,config:u,parentNodeIDs:p}){const o=Ae.uniqueID("flux_vendor_row",p,e.vendor.id),c={children:[],id:o,isLastNode:a,reportElementData:{element:{kind:"flux_vendor_row",title:l,data:e,numOfBalances:s},config:u}},r=e.vendorAccountsAndClasses;return c.children=r.map((x,d)=>Fa({accountAndClassReport:x,numOfBalances:s,title:x.accountBase?.accountName??"",config:u,isLastNode:d===r.length-1,isFirstNode:d===0,parentNodeIDs:[...p,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 Ha({section:e,numOfBalances:s,title:l,isLastNode:a,config:u}){const p=e.sectionId,o={children:[],id:p,isLastNode:a,reportElementData:{element:{kind:"section",title:l,data:e,numOfBalances:s,sectionType:e.sectionId},config:u}},c=(e.vendors??[]).map((r,x)=>za({vendorView:r,numOfBalances:s,title:r.vendor.name,isLastNode:x===e.vendors.length-1,config:u,parentNodeIDs:[p]}));return o.children.push(...c),o}function Wa({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 Va({title:e,data:s,isLastNode:l,config:a,numOfBalances:u}){const p=Ae.uniqueID("total",[],e);return{children:[],id:p,isLastNode:l,reportElementData:{element:{kind:"total",title:e,data:s,numOfBalances:u},config:a}}}const{common:Yt,expenseAutomation:{fluxAnalysis:qa}}=t.appLocale.getLocalizedStrings(),Ua=(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,u=e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],p=Us.mapTimeframeBalancesToTreeNode({balances:u,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(Wa({title:`${Yt.loading}`,balances:u,config:s})),[...Array(10)].forEach((x,d)=>{o.push(Hn.mapLoadingInProgressToTreeNode({title:`${d}+${Yt.loading}`,balances:u,config:s}))});else{if(o.push(p),["generalExpense","reimbursement"].forEach(d=>{const h=e.sections[d];if(h.vendors.length>0||h.fetchStatus.fetchState==="Completed"){const g=Ae.mapFluxBalancesByMonthToBalances(h.balancesByMonth);o.push(Ha({section:{sectionId:d,reportId:"flux_analysis_operating_expense",balances:g,vendors:h.vendors,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:e.currency},numOfBalances:a,title:Ga(d),isLastNode:!1,config:s}))}}),e.totalBalancesAndVariance){const d=e.totalBalancesAndVariance.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.totalBalancesAndVariance.balancesByMonth):[],h=Va({title:Yt.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(Hn.mapLoadingInProgressToTreeNode({title:`${h}+${Yt.loading}`,balances:u,config:s}))})}return{config:s,headerNodes:l&&!c?[p]:[],contentNodes:o}},Ga=e=>qa.sectionTitle[e];function Ka(e,s,l,a=!0){Object.assign(e.config,s);const u=Ja(l),p=Us.mapTimeframeBalancesToTreeNode({balances:u,config:s});return{config:s,headerNodes:a?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Ja=e=>e.sections.generalExpense.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Ae.mapFluxBalancesByMonthToBalances(e.sections.reimbursement.balancesByMonth):[],An={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])},Za=i.div`
764
- display: flex;
765
- position: sticky;
766
- width: 100%;
767
- justify-content: center;
768
- padding-top: ${e=>An.wrapperPadding.valuePx(e.windowSize)};
769
- padding-left: 20px;
770
- background-color: ${e=>e.theme.colors.grey4};
771
- `,Ya=i.div`
772
- width: 100%;
773
- height: calc(100vh - ${t.Space.sp11});
774
- `,Xa=e=>{const{fluxView:s,handleRedirectToVendorDetailPage:l,updateOperatingExpensesIdsForReview:a,updateSectionIdsForReview:u,onSortOrderChanged:p,updateNodeCollapsableStatus:o,fetchReimbursementView:c,fetchGeneralExpenseView:r}=e,x=t.useWindowSizeContext(),d=n.useTheme(),[h,g]=m.useState(null),[f,R]=m.useState(null),[y,E]=m.useState(null),j=V.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,[b,O]=m.useState(!1),L=t.usePrevious(j),M=t.usePrevious(s.refreshStatus.fetchState),w=()=>{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)},C=()=>Object.keys(s.uiState.collapsableStatus).reduce((_,P)=>(_[P]=s.uiState.collapsableStatus[P],_),{}),I=m.useCallback(_=>{const P=!(s.uiState.collapsableStatus[_]??!0);o({...s.uiState.collapsableStatus,[_]:P})},[s.uiState.collapsableStatus,o]),A=m.useCallback((_,P)=>{let q=s.reviewOperatingExpensesIds;const U=[];let B=s.selectedSectionIds;const se=s.sections[_].vendors;U.push(...se.map(J=>J.fluxAnalysisEntityId));let he=Ae.FLUX_MAX_SELECTION_LIMIT-q.length;P?(U.forEach(J=>{!q.includes(J)&&he>0&&(q=[...q,J],he--)}),B=[...B,_]):(q=q.filter(J=>!U.includes(J)),B=B.filter(J=>J!==_)),a(q),u(B)},[s.reviewOperatingExpensesIds,s.selectedSectionIds,s.sections,a,u]),W=m.useCallback(_=>{const P=s.uiState.collapsableStatus[_]===!1;_==="generalExpense"&&!P&&s.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&c(s.uiState.paginationInfoByGroup.reimbursement.pageToken),I(_)},[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,Q=_=>_<T;return m.useEffect(()=>{const _={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:O,onSectionRowClick:W,updateNodeCollapsableStatus:I,updateOperatingExpensesIdsForReview:a,handleRedirectToVendorDetailPage:l,onSectionCheckboxClick:A,onSortOrderChanged:p}};if(h==null||!n.isEqual(f,s)){const P=Ua(s,_,!0);R(s),g(P)}else{const P=Ka(h,_,s,!0);g(P)}},[s,f,l,A,W,p,I,a]),n.jsxRuntimeExports.jsx(Za,{windowSize:x,children:n.jsxRuntimeExports.jsx(Ya,{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:An.contentPaddingLeft.value(x),right:An.contentPaddingRight.value(x)},nodeOpenStatus:C(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:Q,itemCount:T,loadMoreItems:w},variableNodeHeightTree:{prevFetchState:L??"Not-Started",fetchState:s.fetchStatus.fetchState,isSortApplied:b,setIsSortApplied:O,reducedFetchState:V.reduceAllFetchState([s.sections.generalExpense.fetchStatus,s.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:M??"Not-Started",refreshFetchState:s.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:y,setHoveredParentId:E}}):null})})},Qa="expenseAutomationFluxPage",{reports:{common:ec}}=t.appLocale.getLocalizedStrings(),tc=({selectedPeriod:e,fluxAnalysis:s,onFetchFluxViewList:l,markAsReview:a,onReloadPage:u,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:c,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:x,fetchFluxViewOnScroll:d,onFetchReimbursementView:h})=>{const{fetchStatus:g,reviewOperatingExpensesIds:f,uiState:R}=s,y=m.useRef(null),E=m.useRef(!1),j=n.useForm({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:nc(f)}),b=t.useWindowSizeContext();m.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),m.useEffect(()=>{E.current&&y?.current?.scrollLeft!=null&&R.scrollPosition?.scrollLeft!==y.current.scrollLeft&&R.scrollPosition!=null&&r({scrollPosition:{scrollTop:R.scrollPosition?.scrollTop,scrollLeft:y.current.scrollLeft}})},[R.scrollPosition?.scrollLeft,y.current?.scrollLeft,R.scrollPosition,r]),m.useEffect(()=>{p(f.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[f,p]);const O=C=>{x(C)},L=C=>{d(e,C)},M=(C,I)=>{r({sortOrder:C,sortKey:I}),l(),h(e,null,!1)},w=()=>{const C=io(s.sections,f);a(f,C===!0?"review":"unreview",e,!0)};if(g.fetchState==="Error")return n.jsxRuntimeExports.jsxs(oc,{children:[n.jsxRuntimeExports.jsx(ic,{onClick:u,children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(rc,{children:ec.failed})]});{const C=A=>{r({collapsableStatus:A})},I=A=>{h(e,A,!0)};return n.jsxRuntimeExports.jsx(n.FormProvider,{...j,children:n.jsxRuntimeExports.jsx("form",{id:t.uniqueName$1(Qa),onSubmit:j.handleSubmit(w),style:{height:"100%",width:"100%"},children:n.jsxRuntimeExports.jsx(sc,{windowSize:b,children:n.jsxRuntimeExports.jsx(Xa,{fluxView:s,handleRedirectToVendorDetailPage:O,onSortOrderChanged:M,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:C,fetchReimbursementView:I,updateSectionIdsForReview:c,fetchGeneralExpenseView:L,reportId:"flux_analysis_operating_expense"})})})})}},io=(e,s)=>{const a=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(p=>p.status==="Pending Review");let u;return a.forEach(p=>{s.includes(p.fluxAnalysisEntityId)&&(u=!0)}),u},nc=e=>({fluxAnalysisRowIds:e}),sc=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
- `,oc=i.div`
802
- display: flex;
803
- width: 100%;
804
- height: 100vh;
805
- flex-direction: column;
806
- justify-content: center;
807
- align-items: center;
808
- `,ic=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
- `,rc=i(t.SmallRegular)`
824
- margin-top: ${t.Space.sp3};
825
- color: ${e=>e.theme.colors.hero};
826
- `,ac="expenseAutomationJEAccountSettingsPage",ro="vendorsAccountSection",cc=e=>`${e}_form`;function lc({accountSettings:e,currentFooterFormId:s,onSaveJeAccountSettingsClick:l,setIsJeAccountSettingsOpened:a,onJeAccountSettingsChange:u,setResetJeAccountSettingsForm:p,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]),g=m.useMemo(()=>t.getGroupedAccountOptions(e.accruedExpensesAccountHierarchy,x,"Accounts"),[e.accruedExpensesAccountHierarchy,x]),f=m.useMemo(()=>uc(e,d,h,g),[e,d,h,g]),R=n.useForm({mode:"all",reValidateMode:"onBlur",defaultValues:f,values:f,resetOptions:{keepDefaultValues:!0}}),y=R.handleSubmit(j=>{l(j)}),E=async j=>{u(j)};return m.useEffect(()=>{const j=R.watch(b=>{b!=null&&n.defer(()=>E(b))});return()=>{j.unsubscribe()}}),m.useEffect(()=>(p(()=>R.reset),a(!0),()=>{o("expenseAutomationPage"),a(!1)}),[]),m.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:j,previousPrepaidExpensesAccount:b,selectedFixedAssetsAccountIds:O,previousFixedAssetsAccount:L,selectedAccruedExpensesAccountIds:M,previousAccruedExpensesAccount:w}=e.accountSettingsLocalData,C=t.compareCurrentAndPreviousList(j,b)||t.compareCurrentAndPreviousList(O,L)||t.compareCurrentAndPreviousList(M,w);C===!0&&s!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):C===!1&&s!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,s,o]),n.jsxRuntimeExports.jsx(dc,{children:n.jsxRuntimeExports.jsx(n.FormProvider,{...R,children:n.jsxRuntimeExports.jsx("form",{id:cc(ac),onSubmit:y,children:n.jsxRuntimeExports.jsx(Eo.VendorsAccountsSection,{showTitle:!1,sectionId:ro,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 dc=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
- `,uc=(e,s,l,a)=>{const u=e.prepaidExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(d.accountId)),p=e.fixedAssetsAccountList.filter(d=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(d.accountId)),o=e.accruedExpensesAccountList.filter(d=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(d.accountId)),c=u.map(d=>d.qboId).filter(d=>d!=null),r=p.map(d=>d.qboId).filter(d=>d!=null),x=o.map(d=>d.qboId).filter(d=>d!=null);return{[ro]:{prepaidExpensesAccount:{selectedOptions:c,allOptions:s},fixedAssetsAccount:{selectedOptions:r,allOptions:l},accruedExpensesAccount:{selectedOptions:x,allOptions:a}}}},{expenseAutomation:{jeSchedules:xt},common:{currency:Xt,review:pc,ignore:mc,strings:{hyphen:at},texts:Qt},dateFormat:xc,timeframe:{month:as}}=t.appLocale.getLocalizedStrings(),hc=({draft:e,ignoreStatus:s,ignoreRecommendedJeSchedule:l,jeScheduleClickHandler:a,onReviewClickHandler:u})=>n.jsxRuntimeExports.jsxs(Nn,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&a(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component",e.jeScheduleId),children:[n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(_n,{children:[n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:Qt.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(ce,{className:"highlight",children:e.vendor.name??at})})]})]}),n.jsxRuntimeExports.jsxs(Y,{children:[n.jsxRuntimeExports.jsx(oe,{children:xt.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(ce,{className:"highlight",children:e.baseTransaction.account.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:xt.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:e.startDate?.format(xc.visual.MMMCommaYYYYFormat)??at})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:xt.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?as.slice(0,-1):as}`:at})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{alignItems:"flex-end",width:le.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:Qt.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]",V.toAmount(e.baseTransaction.amount.amount,Xt.currencyCode,Xt.currencySymbol))??at}),children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(e.baseTransaction.amount.amount,Xt.currencyCode,Xt.currencySymbol))??at})})})]})]}),n.jsxRuntimeExports.jsxs(Mn,{children:[n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:Qt.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(ce,{className:"highlight",children:e.jeDebit.account?.accountName??at})})})]}),n.jsxRuntimeExports.jsxs(Y,{children:[n.jsxRuntimeExports.jsx(oe,{children:Qt.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(ce,{className:"highlight",children:e.jeDebit.accountingClass?.className??at})})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:xt.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(Ys,{children:xt.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:xt.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(ce,{className:"highlight",children:e.jeCredit.account?.accountName??at})})})]}):null,e.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Pn,{children:[n.jsxRuntimeExports.jsx(t.Button,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&u(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-draft-component-review-button",e.jeScheduleId),label:pc,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:$n}}),n.jsxRuntimeExports.jsx(t.Button,{"data-testid":t.generateDataTestId("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:mc,size:"small",reverseSpinnerColor:!1,loading:s?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&l(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:$n}})]})]}),n.jsxRuntimeExports.jsxs(Pr,{children:[n.jsxRuntimeExports.jsx(gc,{}),n.jsxRuntimeExports.jsx(jc,{children:xt.aiAccountant}),n.jsxRuntimeExports.jsx(fc,{children:xt.zeniGPTText})]})]}),gc=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
- `,jc=i(t.StandardBold)`
842
- color: ${e=>e.theme.colors.brandColorSapphire};
843
- `,fc=i(t.StandardRegular)`
844
- color: ${e=>e.theme.colors.primary};
845
- `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:cs}}},expenseAutomation:{jeSchedules:Oe},common:{currency:nt,retry:yc,strings:{hyphen:Pe,empty:ls},texts:Dt},dateFormat:ds}=t.appLocale.getLocalizedStrings(),{common:Sc,timeframe:{month:us}}=t.appLocale.getLocalizedStrings(),Ge="jeSchedulePage",ps=e=>`${e}_form`,zn=(e,s)=>`${e}.${s}`,ms=zn(Ge,"vendor"),xs=zn(Ge,"scheduleExpenseCategory"),hs=zn(Ge,"accumulatedDepreciationCategory"),Rc=({allAccountGroupedOptions:e,allAccountList:s,allClassGroupedOptions:l,allClassList:a,allDepAccountGroupedOptions:u,allDepAccountList:p,draft:o,localData:c,postStatus:r,uncategorizedAccounts:x,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:g,onFormDataChange:f,onPostJESchedule:R})=>{const{updatedAccumulatedDepreciationCategoryID:y,updatedCategoryId:E,updatedVendor:j}=c,b={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"},O=m.useRef(),L=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:gs(c,e,l,u,s,a,p,h.entityAutoCompleteView),values:gs(c,e,l,u,s,a,p,h.entityAutoCompleteView)}),M={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:300})},w={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:t.Space.sp4}),menu:()=>({width:350})},I=(o?.scheduledJournalEntry.error??[]).every($=>{const G=b[$];return!(c!=null&&G&&(G==="updatedAccumulatedDepreciationCategoryID"&&c.updatedAccumulatedDepreciationCategoryID==null||G==="updatedCategoryId"&&c.updatedCategoryId==null||G==="updatedVendor"&&(c.updatedVendor?.id==null||c.updatedVendor?.id===""||c.updatedVendor?.name==null||c.updatedVendor?.name==="")))}),A=async($,G)=>{if($!=null){const pe=G[Ge],{scheduledJournalEntryID:D,vendor:ee}=pe;if($.includes("vendor")){const ne=ee?.defaultOptions.map(K=>K.value);if(ee?.selectedOption!=null&&ne?.includes(ee.selectedOption)!==!0){const K=h.entityAutoCompleteView.vendor.find(je=>je.id===ee.selectedOption);K!=null&&L.setValue(`${Ge}.vendor.defaultOptions`,[{label:K.name??Sc.strings.empty,value:K.id}])}else ee?.selectedOption==null&&ee?.defaultOptions.length!==0&&L.setValue(`${Ge}.vendor`,{selectedOption:void 0,defaultOptions:[]})}f(D,{...pe,vendor:ee})}};m.useEffect(()=>{const $=L.watch((G,{name:pe})=>{pe!=null&&G!=null&&n.defer(()=>A(pe,G))});return()=>{$.unsubscribe()}}),m.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&O.current?.(t.getVendorOptions(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const W=L.handleSubmit(()=>{R(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),T=$=>s.filter(pe=>pe.qboId===$)[0]?.qboId,Q=$=>p.filter(pe=>pe.qboId===$)[0]?.qboId,_=$=>[x.expense?.qboId,x.income?.qboId].includes($),P=L.watch("jeSchedulePage.vendor"),q=($,G)=>{d.onAutoCompleteInputChange?.($,"vendor"),O.current=G},U=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,B=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,se=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,he=o.vendor.name.split("(deleted)")[0]?.toString(),J=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ls,ue=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ls,[te,v]=m.useState(B===!0&&E==null),[z,H]=m.useState(se===!0&&y==null),[N,F]=m.useState(U&&(j?.id==null||j?.id==""));return m.useEffect(()=>{te===!1&&c.updatedCategoryId==null&&L.setFocus(xs),z===!1&&c.updatedAccumulatedDepreciationCategoryID==null&&L.setFocus(hs),N===!1&&c.updatedVendor?.id==null&&L.setFocus(ms)},[te,z,N,c,L]),n.jsxRuntimeExports.jsx(n.FormProvider,{...L,children:n.jsxRuntimeExports.jsx("form",{style:{width:"100%"},id:ps(`${Ge}_${o.jeScheduleId}`),onSubmit:W,children:n.jsxRuntimeExports.jsx(Nn,{showBorder:I,onClick:$=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&g($,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-schedule",`${Ge}_${o.jeScheduleId}`),children:n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(_n,{children:[U===!0?n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_ONE,padding:t.sp[0],justifyContent:"center"},showHoverEffect:U,forceHoverEffect:N===!1&&(c?.updatedVendor?.id==null||c?.updatedVendor?.id==""),children:n.jsxRuntimeExports.jsxs(st,{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:[Dt.vendor,n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(nn,{children:Oe.tooltipText.missingVendor.replace("_deleted_vendor_",he)}),children:n.jsxRuntimeExports.jsx(dn,{})})]}),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(ce,{onClick:$=>{$.stopPropagation(),F(!1)},"data-testid":t.generateDataTestId("je-schedule-resolve-component-add-vendor-button",`${Ge}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:t.sp[2],color:t.Colors.brandColorGoldDark,cursor:"pointer"},children:[n.jsxRuntimeExports.jsx(ln,{}),cs]}):n.jsxRuntimeExports.jsx(t.AutoCompleteSingleSelectField,{name:ms,placeholder:cs,valueToId:$=>$,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:t.Space.sp4})},registerOptions:{required:!0,validate:$=>!!$.selectedOption},loadOptions:q})})})]})}):n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp0} ${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{children:Dt.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(ce,{className:"highlight",children:o.vendor.name??Pe})})]})})]}),n.jsxRuntimeExports.jsxs(Y,{children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.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(ce,{className:"highlight",children:o.baseTransaction.account.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.startMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:o.startDate?.format(ds.visual.MMMCommaYYYYFormat)??Pe})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_FOUR,paddingLeft:t.sp[3]},children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.period}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?us.slice(0,-1):us}`:Pe})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{alignItems:"flex-end",width:le.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:Dt.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]",V.toAmount(o.baseTransaction.amount.amount,nt.currencyCode,nt.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o.baseTransaction.amount.amount,nt.currencyCode,nt.currencySymbol))??Pe})})})]})]}),n.jsxRuntimeExports.jsxs(Mn,{children:[B===!0?n.jsxRuntimeExports.jsx(Y,{showHoverEffect:B===!0,forceHoverEffect:c?.updatedCategoryId==null&&te===!1,style:{padding:"unset",justifyContent:"center",width:le.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(st,{className:"hover-background",children:[n.jsxRuntimeExports.jsxs(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:[Dt.category,B===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-start",title:n.jsxRuntimeExports.jsx(nn,{children:Oe.tooltipText.missingCategory.replace("_deleted_category_",J)}),children:n.jsxRuntimeExports.jsx(dn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:B===!0?-2:0},children:B===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:te===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:$=>{$.stopPropagation(),v(!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",`${Ge}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(ln,{}),Oe.addCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,name:xs,placeholder:Oe.addCategory,valueToId:$=>T($),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:$=>!!$.selectedOption},disableCurrentOption:_,customStyleConfig:M})}):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(ce,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_ONE,padding:`${t.Space.sp2} ${t.Space.sp3}`},children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Dt.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(ce,{className:"highlight",children:o.jeDebit.account?.accountName??Pe})})})]}),n.jsxRuntimeExports.jsxs(Y,{children:[n.jsxRuntimeExports.jsx(oe,{style:{display:"flex",alignItems:"center",gap:t.sp[1]},children:Dt.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(ce,{className:"highlight",children:o.jeDebit.accountingClass?.className??Pe})})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.type}),n.jsxRuntimeExports.jsx(ie,{className:"test",children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",style:{width:"unset"},children:n.jsxRuntimeExports.jsx(Ys,{children:Oe.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:se===!0?n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:se,forceHoverEffect:c.updatedAccumulatedDepreciationCategoryID==null&&z===!1,children:n.jsxRuntimeExports.jsxs(st,{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:[Oe.scheduleHeaders.accumulatedCategory,se===!0?n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"top-end",title:n.jsxRuntimeExports.jsx(nn,{children:Oe.tooltipText.missingDepCategory.replace("_deleted_dep_category_",ue)}),children:n.jsxRuntimeExports.jsx(dn,{})}):null]}),n.jsxRuntimeExports.jsx(ie,{className:"item-value-container",style:{marginLeft:se===!0?-2:0},children:se===!0?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:z===!0?n.jsxRuntimeExports.jsxs(ce,{onClick:$=>{$.stopPropagation(),H(!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",`${Ge}_${o.jeScheduleId}`),children:[n.jsxRuntimeExports.jsx(ln,{}),Oe.addDepCategory]}):n.jsxRuntimeExports.jsx(t.GroupedSingleSelectField,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:hs,placeholder:Oe.addDepCategory,valueToId:$=>Q($),defaultValue:{allOptions:u},registerOptions:{required:!0,validate:$=>!!$.selectedOption},customStyleConfig:w,disableCurrentOption:_})}):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(ce,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})})]})}):n.jsxRuntimeExports.jsxs(Y,{style:{width:le.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:Oe.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(ce,{className:"highlight",children:o.jeCredit.account?.accountName??Pe})})]})}):null,o.jeScheduleType!=="fixed_assets"?n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FOUR}}):null,n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FIVE}})]}),n.jsxRuntimeExports.jsxs(Br,{children:[n.jsxRuntimeExports.jsx(Y,{style:{padding:"unset",width:le.COLUMN_ONE},children:n.jsxRuntimeExports.jsxs(Nr,{children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.jePostingDate}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(ds.visual.MMMDCommaYYFormat)??Pe})})]})}),n.jsxRuntimeExports.jsxs(Y,{children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.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]",V.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,nt.currencyCode,nt.currencySymbol))??Pe}),children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o?.scheduledJournalEntry?.runningBalance?.amount??0,nt.currencyCode,nt.currencySymbol))??Pe})})})]}),n.jsxRuntimeExports.jsxs(Y,{style:{width:le.COLUMN_THREE},children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.months}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsxs(ce,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FOUR}}),n.jsxRuntimeExports.jsxs(Y,{style:{alignItems:"flex-end",width:le.COLUMN_FIVE},children:[n.jsxRuntimeExports.jsx(oe,{children:Oe.scheduleHeaders.amountForMonth}),n.jsxRuntimeExports.jsx(ie,{children:n.jsxRuntimeExports.jsx(ce,{className:"highlight",children:t.amountToString("0,0.[00]",V.toAmount(o.scheduledJournalEntry.amount?.amount??0,nt.currencyCode,nt.currencySymbol))??Pe})})]})]})]}),n.jsxRuntimeExports.jsx(Pn,{children:n.jsxRuntimeExports.jsx(t.Button,{form:ps(`${Ge}_${o.jeScheduleId}`),label:yc,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!I,style:{minWidth:$n}})})]})})})})},gs=(e,s,l,a,u,p,o,c)=>{const r=e.updatedCategoryId,x=e.updatedVendor,d=x!=null?c.vendor.find(E=>E.zeniId===x.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,g=e.updatedClassId,f=r!=null?u.find(E=>E.accountId===r):void 0,R=h!=null?o.find(E=>E.accountId===h):void 0,y=g!=null?p.find(E=>E.classId===g):void 0;return{[Ge]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:f?.qboId,allOptions:s},accumulatedDepreciationCategory:{selectedOption:R?.qboId,allOptions:a},vendor:{selectedOption:d?.id??x?.id,defaultOptions:t.getDefaultVendorOptions$1(c,d??x)},scheduleClass:{selectedOption:y?.classId,allOptions:l}}}},ln=i(t.SvgAddRound)`
846
- width: ${t.Space.sp3};
847
- height: ${t.Space.sp3};
848
- `,dn=i(t.SvgAlertRound)`
849
- width: 12px;
850
- height: 12px;
851
- color: ${t.Colors.important};
852
- `;function ao(){return n.jsxRuntimeExports.jsx(Gs,{children:n.jsxRuntimeExports.jsxs(Ks,{children:[n.jsxRuntimeExports.jsxs(Js,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(js,{})]}),n.jsxRuntimeExports.jsxs(Zs,{children:[n.jsxRuntimeExports.jsx(Le,{width:t.sp[9],height:27,style:{marginBottom:t.sp[2]}}),n.jsxRuntimeExports.jsx(js,{})]})]})})}const js=()=>n.jsxRuntimeExports.jsx(Nn,{style:{minWidth:1088},children:n.jsxRuntimeExports.jsxs(Bn,{children:[n.jsxRuntimeExports.jsxs(Fn,{children:[n.jsxRuntimeExports.jsxs(_n,{children:[n.jsxRuntimeExports.jsxs(Y,{style:{width:le.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(Y,{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(Y,{style:{width:le.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(Y,{style:{width:le.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(Y,{style:{alignItems:"flex-end",width:le.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(Mn,{children:[n.jsxRuntimeExports.jsxs(Y,{style:{width:le.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(Y,{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(Y,{style:{width:le.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(Y,{style:{width:le.COLUMN_FOUR,paddingLeft:t.sp[3]}}),n.jsxRuntimeExports.jsx(Y,{style:{width:le.COLUMN_FIVE}})]})]}),n.jsxRuntimeExports.jsxs(Pn,{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:Cc,resolve:Ec}}=t.appLocale.getLocalizedStrings();function vc({jeSchedules:e,vendorSearchAutoCompleteData:s,handleJeScheduleClick:l,onJESchedulesFormDataChange:a,onPostJESchedule:u,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:c}){const r=e.draftSchedules,x=e.jeScheduleLocalDataById,d=e.postStatusById,h=e.ignoreStatusById,g=e.resolveSchedules,f=e.uncategorizedAccounts,{allAccountList:R,allClassList:y,allDepreciationAccountList:E}=e,j=t.getGroupedAccountOptions(e.accountListNestedAccountHierarchy),b=t.getGroupedAccountOptions(e.allDepreciationAccountListNestedAccountHierarchy),O=t.getGroupedClassOptions(e.classListNestedAccountHierarchy),L=(w,C,I)=>{l(w,C,I)},M=(w,C,I,A)=>{let T=w.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(C,I,A)};return m.useEffect(()=>{if(g.length!==0){for(const w in x)if(Object.prototype.hasOwnProperty.call(x,w)){const{updatedAccumulatedDepreciationCategoryID:C,updatedCategoryId:I,updatedVendor:A}=x[w];if(C!=null||I!=null||A!=null&&A?.id!==""){c("expenseAutomationJESchedulePage");break}else c("expenseAutomationPage")}}else g.length===0&&c("expenseAutomationPage")}),m.useEffect(()=>()=>{c("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(ao,{}):r.length!==0||g.length!==0?n.jsxRuntimeExports.jsx(Gs,{children:n.jsxRuntimeExports.jsxs(Ks,{children:[r.length>0?n.jsxRuntimeExports.jsxs(Js,{children:[n.jsxRuntimeExports.jsxs(ys,{children:[Cc,n.jsxRuntimeExports.jsx(Ss,{isCircular:r.length<10,children:n.jsxRuntimeExports.jsx(Rs,{children:r.length})})]}),n.jsxRuntimeExports.jsx(fs,{"data-testid":t.generateDataTestId("expense-automation","draft-je-schedules"),children:r.map((w,C)=>n.jsxRuntimeExports.jsx(hc,{ignoreStatus:h[w.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:L,jeScheduleClickHandler:M,draft:w},`${C}_${w.jeScheduleId}`))})]}):null,g.length>0?n.jsxRuntimeExports.jsxs(Zs,{children:[n.jsxRuntimeExports.jsxs(ys,{children:[Ec,n.jsxRuntimeExports.jsx(Ss,{isCircular:g.length<10,children:n.jsxRuntimeExports.jsx(Rs,{children:g.length})})]}),n.jsxRuntimeExports.jsx(fs,{"data-testid":t.generateDataTestId("expense-automation","resolve-je-schedules"),children:g.map((w,C)=>x[w.scheduledJournalEntry.scheduledJournalEntryID]==null?null:n.jsxRuntimeExports.jsx(Rc,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:s,jeScheduleClickHandler:M,onPostJESchedule:u,uncategorizedAccounts:f,allAccountList:R,allAccountGroupedOptions:j,allClassGroupedOptions:O,allClassList:y,allDepAccountGroupedOptions:b,allDepAccountList:E,draft:w,postStatus:d[w.scheduledJournalEntry.scheduledJournalEntryID],localData:x[w.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:a},`${C}_${w.jeScheduleTransactionKey}`))})]}):null]})}):null}const fs=i.div`
855
- display: flex;
856
- flex-direction: column;
857
- gap: ${t.Space.sp4};
858
- min-width: 1088px;
859
- `,ys=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
- `,Ss=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?De.css`
872
- height: ${t.Space.sp3};
873
- width: ${t.Space.sp3};
874
- padding: ${t.Space.sp0};
875
- `:De.css`
876
- height: 18px;
877
- padding: ${t.customCountCapsulePadding.padding};
878
- `}
879
- `,Rs=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 wc({expenseAutomationViewSelector:e,currentFooterFormId:s,setResetJeAccountSettingsForm:l,vendorSearchAutoCompleteData:a,onJESchedulesFormDataChange:u,onPostJESchedule:p,handleJeScheduleClick:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:x,vendorSearchAutoCompleteActions:d,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:g}){const{jeSchedules:f}=e;return f.fetchState==="In-Progress"||f.accountSettingsView.fetchState==="In-Progress"?n.jsxRuntimeExports.jsx(ao,{}):f.accountSettingsView.fetchState==="Completed"&&f.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&f.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?n.jsxRuntimeExports.jsx(lc,{setIsJeAccountSettingsOpened:g,setResetJeAccountSettingsForm:l,currentFooterFormId:s,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:r,accountSettings:f.accountSettingsView,setCurrentFooterFormId:h}):f.fetchState==="Completed"&&f.draftSchedules.length===0&&f.resolveSchedules.length===0?n.jsxRuntimeExports.jsx(dt,{tab:e.currentSelectedView,title:Be(e.currentSelectedView).allDoneText.title,subTitle:Be(e.currentSelectedView).allDoneText.subTitle}):f.fetchState==="Completed"?n.jsxRuntimeExports.jsx(vc,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:x,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:u,onPostJESchedule:p,vendorSearchAutoCompleteActions:d,vendorSearchAutoCompleteData:a}):null}const bc=72,co=50,Ic=1,kc=["receipts"],Cs=e=>V.stringToUnionStrict(e,kc),{common:{texts:{vendor:Tc,amount:$c,receipts:Lc,category:Ac,classText:Oc,date:Dc}}}=t.appLocale.getLocalizedStrings(),_c={key:"vendor",value:Tc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Mc={key:"category",value:Ac,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Bc={key:"class",value:Oc,sortOrder:"ascending",width:new t.ResponsiveSized(18,18)},Nc={key:"date",value:Dc,sortOrder:"descending",width:new t.ResponsiveSized(11,11)},Pc={key:"receipts",value:Lc,sortOrder:"descending",width:new t.ResponsiveSized(6,6)},Fc={key:"amount",value:$c,sortOrder:"ascending",width:new t.ResponsiveSized(10,10)},ot=[_c,Mc,Bc,Nc,Pc,Fc],un={sortKey:"date",sortOrder:"descending"},Es={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4])},lo=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[u,p]=m.useState(ot);m.useEffect(()=>{const r=[...u];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";p(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=>{Cs(r.key)==null&&o(V.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(zc,{windowSize:a,children:u.map((r,x)=>{const d=s!=null||Cs(r.key)!=null;return n.jsxRuntimeExports.jsxs(Hc,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:d,windowSize:a,isLastItem:x===u.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[n.jsxRuntimeExports.jsxs(Gc,{onClick:()=>d?null:c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(Kc,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(Vc,{sortConfig:e,headerData:r,children:n.jsxRuntimeExports.jsx(Uc,{})})]}),d?null:n.jsxRuntimeExports.jsx(qc,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==un.sortKey,children:n.jsxRuntimeExports.jsx(Wc,{onClick:()=>{d||o(un.sortKey,un.sortOrder)},"data-testid":t.generateDataTestId("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},zc=i.div`
888
- top: ${t.Space.sp0};
889
- left: ${t.Space.sp0};
890
- height: ${co}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=>Es.containerPaddingLeftRight.valuePx(e.windowSize)};
899
- padding-right: ${e=>Es.containerPaddingLeftRight.valuePx(e.windowSize)};
900
- `,Hc=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
- `,Wc=i(t.SvgCloseRound)`
914
- width: ${t.Space.sp2};
915
- height: ${t.Space.sp2};
916
- cursor: pointer;
917
- `,Vc=i.div`
918
- display: flex;
919
- align-items: center;
920
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
- `,qc=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
- `,Uc=i(t.SvgArrowTailTop)`
929
- width: ${t.Space.sp2};
930
- height: ${t.Space.sp2};
931
- `,Gc=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
- `,Kc=i(t.ExtraSmallRegular)`
939
- display: flex;
940
- `,{common:{strings:{underscore:uo,hyphen:pn,empty:vs},documents:{singleFileUploadSizeErrorMessage:Jc,multipleFileUploadSizeErrorMessage:Zc},snackBar:{missing_receipts_attachment:{failed:Yc}},tooltips:{addMissingReceipt:Xc}},dateFormat:Qc}=t.appLocale.getLocalizedStrings(),en={containerPaddingLeftRight:new t.ResponsiveSized(t.sp[3],t.sp[4]),containerPaddingTopBottom:new t.ResponsiveSized(t.sp[2],t.sp[3])},el=({transaction:e,uploadReceiptsFetchState:s,receiptUploadEndpoint:l,authParams:a,selectedPeriod:u,onUploadReceiptComplete:p,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:c,onUploadReceiptAttachment:r})=>{const x=t.useWindowSizeContext(),d=m.useRef(null),h=m.useCallback(async(R,y,E,j,b)=>{c(e.id,"In-Progress"),await Ht.uploadAttachment(R,y,E,j,b).then(({uploadResponse:O,errorMessage:L})=>{O!=null?O.transaction.attachments!=null&&(r(O.transaction),setTimeout(()=>p(O.transaction,u),2e3)):c(e.id,"Error",{code:500,message:Yc},L)}).catch(O=>{c(e.id,"Error",O)})},[e.id,u,r,p,c]),g=m.useCallback(R=>{if(R.target.files!=null){const y=R.target.files,E=[],j=[];for(let b=0;b<y.length;b++)E.push(y[b].name),j.push(y[b]);h(l,a,y[0],y[0].name,{id:e.id,type:e.type})}},[a,h,l,e.id,e.type]),f=m.useCallback(()=>{d.current?.click()},[d]);return n.jsxRuntimeExports.jsx(po,{windowSize:x,onClick:()=>o(e.id,e.type),"data-testid":t.generateDataTestId("missing-receipts-list-row",e.id),children:ot.map((R,y)=>{const E=`${e.id}${uo}${R.key}`;switch(R.key){case"vendor":default:return n.jsxRuntimeExports.jsx(bt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:y===ot.length-1,children:n.jsxRuntimeExports.jsxs(sn,{children:[n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:e.vendorId!=null?e.logo?.toString()??vs:vs,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(al,{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"}})]})})},E);case"category":case"class":{const j=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:pn,b=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:pn,O=R.key==="category"?j:b;return n.jsxRuntimeExports.jsx(bt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:y===ot.length-1,children:n.jsxRuntimeExports.jsx(sn,{children:O!==pn?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:O,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}}):n.jsxRuntimeExports.jsx(rl,{children:O})})})},E)}case"date":return n.jsxRuntimeExports.jsx(bt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:y===ot.length-1,children:n.jsxRuntimeExports.jsx(sn,{children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.date.format(Qc.visual.MMMDCommaYYYYformat),itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})})},E);case"receipts":return n.jsxRuntimeExports.jsx(bt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:y===ot.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(vo.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(il,{onClick:j=>{j.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:[...V.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:g,onFileSizeError:(j,b)=>{j&&c(e.id,"Error",{code:500,message:b===!0?Jc.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0)):Zc.replace("__maxFileSize__",t.formatFileSize(t.SizeLimit32MB,0))})}})}),n.jsxRuntimeExports.jsx(t.Tooltip,{display:"flex",placement:"bottom",title:Xc,enterDelay:600,children:n.jsxRuntimeExports.jsx(ol,{onClick:j=>{j.stopPropagation(),f()}})})]})})},E);case"amount":{const j=t.amountToString("0,0.[00]",e.amount);return n.jsxRuntimeExports.jsx(bt,{windowSize:x,wrapperWidth:R.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:x,isLastItem:y===ot.length-1,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:e.amount.amount<0?`-${j}`:j,itemTextStyle:{...t.textStyles.standardRegular.cssObject,color:"inherit"}})})},E)}}})})},tl=()=>{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(po,{windowSize:e,ref:s,children:ot.map((u,p)=>{const o=`${p}${uo}${u.key}`;switch(u.key){case"vendor":return n.jsxRuntimeExports.jsx(bt,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:p===ot.length-1,children:n.jsxRuntimeExports.jsxs(sn,{children:[n.jsxRuntimeExports.jsx(t.CircularContentLoader,{width:t.sp[4],height:t.sp[4]}),n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(bt,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(It,{windowSize:e,isLastItem:p===ot.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},po=i.div`
941
- display: flex;
942
- background-color: ${e=>e.theme.colors.grey5};
943
- padding-left: ${e=>en.containerPaddingLeftRight.valuePx(e.windowSize)};
944
- padding-right: ${e=>en.containerPaddingLeftRight.valuePx(e.windowSize)};
945
- padding-top: ${e=>en.containerPaddingTopBottom.valuePx(e.windowSize)};
946
- padding-bottom: ${e=>en.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
- `,bt=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
- `,nl=De.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
- `,sl=De.css`
978
- height: ${t.Space.sp3};
979
- width: ${t.Space.sp3};
980
- cursor: pointer;
981
- `,ol=i(t.SvgAddRound)`
982
- ${sl};
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
- `,il=i.div``,sn=i.div`
994
- display: flex;
995
- flex-direction: row;
996
- column-gap: ${t.Space.sp2};
997
- align-items: center;
998
- `,rl=i(t.StandardRegular)`
999
- ${nl};
1000
- color: inherit;
1001
- `,al=i.div`
1002
- display: flex;
1003
- `,cl=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const u=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(ll,{windowSize:u,children:[n.jsxRuntimeExports.jsx(lo,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a}),n.jsxRuntimeExports.jsx(dl,{windowSize:u,children:[...Array(3)].map((p,o)=>n.jsxRuntimeExports.jsx(tl,{},o))})]})},ll=i.div`
1004
- display: block;
1005
- min-height: 100%;
1006
- flex-direction: column;
1007
- width: 100%;
1008
- `,dl=i.div`
1009
- display: flex;
1010
- min-height: 100%;
1011
- flex-direction: column;
1012
- row-gap: ${t.Space.sp3};
1013
- `,{common:ul}=t.appLocale.getLocalizedStrings(),pl=({missingReceipts:e,receiptUploadEndpoint:s,authParams:l,selectedPeriod:a,isDisabled:u,onMissingReceiptsRowClick:p,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:x,onFetchMissingReceiptsList:d})=>{const h=t.useWindowSizeContext(),{fetchState:g,uiState:f,transactions:R}=e,y=m.useRef(null),[E,j]=m.useState(!1);m.useEffect(()=>{y.current?.resetAfterIndex(0)},[h,y]),m.useEffect(()=>{g==="Completed"&&j(!1)},[g]);const b=L=>bc,O=(L,M)=>{x({sortOrder:M,sortKey:L})};return n.jsxRuntimeExports.jsxs(hl,{children:[n.jsxRuntimeExports.jsx(gl,{windowSize:h,children:g==="Error"?n.jsxRuntimeExports.jsxs(fl,{windowSize:h,children:[n.jsxRuntimeExports.jsx(yl,{onClick:()=>d(),"data-testid":t.generateDataTestId("missing-receipts-list-table-reload-button"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(Sl,{children:ul.reloadPage.label})]}):g==="Completed"&&R.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"missing_receipts",title:Be("missing_receipts").allDoneText.title,subTitle:Be("missing_receipts").allDoneText.subTitle}):g==="Not-Started"||g==="In-Progress"&&R.length===0?n.jsxRuntimeExports.jsx(cl,{sortConfig:{sortKey:f.sortKey,sortOrder:f.sortOrder},fetchState:g,onColumnSortConfigChanged:O}):n.jsxRuntimeExports.jsx(jl,{windowSize:h,children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:L,width:M})=>n.jsxRuntimeExports.jsxs(Cl,{style:{height:L,width:M},children:[n.jsxRuntimeExports.jsx(xl,{children:n.jsxRuntimeExports.jsx(lo,{sortConfig:{sortKey:f.sortKey,sortOrder:f.sortOrder},isDisabled:g==="In-Progress"?"readonly":u,onColumnSortConfigChanged:O})}),n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:y,height:L-co,itemCount:R.length,itemData:{missingReceipts:e,receiptUploadEndpoint:s,authParams:l,isDisabled:u,selectedPeriod:a,onMissingReceiptsRowClick:p,onUploadReceiptComplete:o,onUploadReceiptAttachment:c,onUploadReceiptFetchStatus:r},itemSize:b,width:M,style:{willChange:"auto"},overscanCount:Ic,onScroll:({scrollOffset:w})=>{x({scrollPosition:{scrollTop:w}})},initialScrollOffset:f.scrollPosition?.scrollTop,children:ml})]})})})}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:E===!0,children:n.jsxRuntimeExports.jsx(El,{children:n.jsxRuntimeExports.jsx(t.ActivityIndicator,{size:"Small",start:!0})})})]})},ml=({index:e,style:s,data:l})=>{const{missingReceipts:a,receiptUploadEndpoint:u,authParams:p,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,selectedPeriod:d}=l,h=a.transactions[e];return n.jsxRuntimeExports.jsx(Rl,{style:{...s,width:"100%"},children:n.jsxRuntimeExports.jsx(el,{transaction:h,receiptUploadEndpoint:u,authParams:p,selectedPeriod:d,onMissingReceiptsRowClick:o,onUploadReceiptComplete:c,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:x,uploadReceiptsFetchState:a.uploadReceiptStatusById[h.id]??{fetchState:"Not-Started",error:void 0}},h.id)})},xl=i.div`
1014
- width: auto;
1015
- `,hl=i.div`
1016
- width: 100%;
1017
- height: 100%;
1018
- background-color: ${e=>e.theme.colors.grey4};
1019
- `,gl=i.div`
1020
- height: 100%;
1021
- `,jl=i.div`
1022
- height: 100%;
1023
- display: flex;
1024
- flex-direction: column;
1025
- max-width: 99.9%;
1026
- `,fl=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
- `,yl=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
- `,Sl=i(t.SmallRegularSp)`
1049
- margin-top: ${t.Space.sp3};
1050
- color: ${e=>e.theme.colors.hero};
1051
- `,Rl=i.div`
1052
- top: ${t.Space.sp0};
1053
- left: ${t.Space.sp0};
1054
- padding-bottom: ${t.Space.sp3};
1055
- box-sizing: border-box;
1056
- `,Cl=i.div`
1057
- position: relative;
1058
- `,El=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
- `,vl=[...V.SUPPORTED_ATTACHMENT_FILE_TYPES],wl=7*1024*100,bl=i.div`
1068
- width: ${xe.FORM_MINIMUM_WIDTH}px;
1069
- `,mn=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
- `,Il=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
- #${xe.MONTH_END_EMAIL_BODY_SECTION} img[alt*="company logo"],
1090
- .attachFileSeparator {
1091
- user-select: none;
1092
- }
1093
- `,kl=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
- `,Tl=i.div`
1100
- position: relative;
1101
- `,ws=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
- `,Ll=i.div`
1121
- user-select: text;
1122
- `,Al=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
- `,Ol=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
- `,Dl=i(t.SmallRegular)`
1138
- color: ${e=>e.theme.colors.grey1};
1139
- user-select: none;
1140
- `,_l=i(t.StandardBold)`
1141
- color: ${e=>e.theme.colors.primary};
1142
- `,Ml=i.div`
1143
- flex-direction: column;
1144
- row-gap: ${t.Space.sp3};
1145
- display: flex;
1146
- `,Bl=De.keyframes`
1147
- 0% {
1148
- transform: translateX(100%);
1149
- }
1150
- 100% {
1151
- transform: translateX(0)
1152
- }
1153
- `,Nl=De.keyframes`
1154
- 0% {
1155
- transform: translateX(0)
1156
- }
1157
- 100% {
1158
- transform: translateX(100%)
1159
- }
1160
- `,Pl=i.div`
1161
- animation: ${e=>e.allThreadsSectionOpen?Bl:Nl}
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: ${xe.COMMENTS_SECTION_MINIMUM_WIDTH}px;
1169
- max-width: ${xe.COMMENTS_DRAWER_MAXIMUM_WIDTH}px;
1170
- `,on="monthEndReportFormSection",bs="monthEndReportPage",Ve=t.appLocale.getLocalizedStrings();function Fl({companyId:e,enableZeniGPTFeature:s,monthEndReportView:l,previewMode:a,customerRequestData:u,allThreadsSectionOpen:p,filterMetaData:o,newThreadMetadata:c,isZeniUser:r,selectedPeriod:x,improveUsingZeniGPTClick:d,onRemoveFileAttachment:h,onUpdateFileAttachment:g,onCloseAllThreadsSection:f,previewMonthEndReport:R,saveMonthEndReport:y,onEditClick:E,onOpenFileAttachmentSnackBar:j,onClickCustomerRequest:b,sendMonthEndReport:O}){const L=n.useTheme(),[M,w]=m.useState(),[C,I]=m.useState(0),[A,W]=m.useState(0),T=m.useRef(),Q=m.useRef(null),_=m.useRef(null),{html:P,subject:q,improveUsingZeniGPTStatus:U}=l,[B,se]=m.useState(),[he,J]=m.useState(!1),[ue,te]=m.useState(!1),v=m.useRef(null),z=m.useRef(null),H=xe.useDelayUnmount(p,250),N=l.fetchState==="Not-Started"||l.fetchState==="In-Progress"||l.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||l.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:F,sortedThreads:$,threadsPositions:G,observer:pe,unresolvedThreadsMap:D,handleRemoveFloatingThread:ee}=xe.useFloatingThreads(o,v,!a,N,r),ne=m.useCallback(()=>{p?z.current!=null&&W(Math.min((z.current.offsetWidth-xe.FORM_MINIMUM_WIDTH-t.sp[4])/2,z.current.offsetWidth-xe.FORM_MINIMUM_WIDTH-xe.COMMENTS_DRAWER_MAXIMUM_WIDTH-t.sp[4])):z.current!=null&&I(Math.min((z.current.offsetWidth-xe.FORM_MINIMUM_WIDTH-t.sp[4])/2,z.current.offsetWidth-xe.FORM_MINIMUM_WIDTH-xe.COMMENTS_SECTION_MINIMUM_WIDTH-t.sp[4]))},[p]);m.useEffect(()=>{ne()},[p,ne]),m.useEffect(()=>(window.addEventListener("resize",ne),()=>{window.removeEventListener("resize",ne)}),[ne]);const K=r?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:je,addThread:ve,setOpenThread:S}=m.useContext(K),Z=xe.useHandleSelection(xe.MONTH_END_REPORT_CANVAS,!1,!a),de=v.current?.getBoundingClientRect(),_e=Z!=null&&Z.coords&&de?{left:Z.coords.left-de.left,top:Z.coords.top-de.top}:void 0,Me=m.useCallback(()=>{const ge=window.getSelection()?.getRangeAt(0),X=xe.getSelectionData();if(!ge||X==null)return;const Se={...c,...X,startPath:X.startPath.join(),endPath:X.endPath.join()},ye=`${n.nanoid()}${t.NEW_THREAD_SUFFIX}`,Ke=`cockpit_${e}`;ve(ye,{type:"thread",id:ye,roomId:Ke,createdAt:new Date,comments:[],metadata:Se,updatedAt:new Date,resolved:!1}),S(ye)},[ve,e,c,S]);m.useEffect(()=>{je!=null&&p&&f()},[p,je,f]);const Ee=U.fetchState==="In-Progress",we=n.useForm({mode:"all",defaultValues:Is(l),values:Is(l)}),me=we.handleSubmit(ge=>{const{recipientEmailList:X,subject:Se}=ge[on];if(a===!0)O?.(B?.id);else{const ye=M?.replace(t.EMPTY_HTML_CHECKER,Ve.common.strings.empty);X!=null&&Se!=null&&R(X,Se,B?.id,ye!=null&&ye.length>0?M:void 0)}}),Ue=()=>{Q.current!=null&&Q.current.click()},ze=()=>{B!==void 0&&B!=null&&(h([B.id]),se(void 0),J(!1))},He=ge=>{const X=ge.target.files?ge.target.files[0]:null;if(X)if(!V.toSupportedAttachmentFileType(X.type)||ue)console.warn("Please select a valid file.");else{const Se=new FileReader;Se.onload=function(ye){const Ke=ye.target?.result;if(typeof Ke=="string"){const Ze={data:Ke.split(",")[1],name:X.name,id:V.getAttachmentFileIdByFileName(e,X.name)};se(Ze),J(!0),g([Ze])}},Se.readAsDataURL(X)}},ae=()=>{_.current&&_.current.scrollIntoView({behavior:"smooth"})},Ne=()=>{const ge=we.getValues(),{recipientEmailList:X,subject:Se}=ge[on];X!=null&&Se!=null&&y(X,Se,B?.id,M)};m.useEffect(()=>{w(l.zeniRequestsHtml)},[l.zeniRequestsHtml]),m.useEffect(()=>{T.current=B},[B]),m.useEffect(()=>{se(V.mapAttachmentFileToAttachmentFilePayload(l.attachmentFile)),J(!1)},[l.attachmentFile]),m.useEffect(()=>{ue&&j()},[ue,j]);const ut=V.zeniDate(`${x.year}-${x.month}-01`).format(Ve.dateFormat.visual.MMMMFormat),Je=P!=null?P.split(xe.MONTH_END_EDITOR_PLACEHOLDER):[],pt=l.concatenatedHtml,yt=()=>l.lastDraftSavedDate!=null&&a===!1?n.jsxRuntimeExports.jsx(xe.UserWithTimestamp,{time:l.lastDraftSavedDate,user:l.reportLastSavedByUser,timeStampLabel:Ve.cockpit.monthEndReport.timeStampLabel}):null,St=()=>r===!0?H?n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(Pl,{allThreadsSectionOpen:p,children:n.jsxRuntimeExports.jsx(t.AllThreadsSection,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${L.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:L.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:(ge,X)=>{S(X);const Se=$.findIndex(ye=>ye[0]===X);f(),F.current?.[Se]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>f()})}),n.jsxRuntimeExports.jsx(mn,{availableWidth:C})]}):n.jsxRuntimeExports.jsx(xe.FloatingThreads,{observer:pe,canvasContainerRef:v,sortedThreads:$,threadsPositions:G,threadsRefs:F,unresolvedThreadsMap:D,editorMode:!a,style:{minWidth:`${C}px`,position:"relative",height:"fit-content",top:`${v.current?.offsetTop}px`,minHeight:t.Space.sp12},handleRemoveFloatingThread:ee}):n.jsxRuntimeExports.jsx(mn,{availableWidth:C}),mt=(l.zeniRequestsData??[]).length+t.getTemplatesFromTemplatedData(l.companyMonthEndReportTemplatesData).length;return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Il,{ref:z,children:[n.jsxRuntimeExports.jsx(mn,{availableWidth:p?A:C}),n.jsxRuntimeExports.jsxs(bl,{children:[n.jsxRuntimeExports.jsx(n.FormProvider,{...we,children:n.jsxRuntimeExports.jsx("form",{id:ks(bs),onSubmit:me,children:n.jsxRuntimeExports.jsxs(Ml,{children:[n.jsxRuntimeExports.jsx(xe.MonthEndReportSection,{sectionId:on,previewMode:a,subject:q}),!a&&mt>0?n.jsxRuntimeExports.jsx(xe.MonthEndReportCustomerRequestSection,{totalItems:mt,onClickCustomerRequest:b}):null,n.jsxRuntimeExports.jsxs($l,{id:xe.MONTH_END_REPORT_CANVAS,ref:v,children:[n.jsxRuntimeExports.jsxs(Ll,{className:"monthEndReportCanvasWrapper",children:[B!=null||ue?n.jsxRuntimeExports.jsx(Al,{"data-testid":t.generateDataTestId("email-attachment-container"),onClick:ae,children:n.jsxRuntimeExports.jsx(xe.CircleWithAttachmentSuccessIcon,{fileSizeError:ue,setFileSizeError:te,loading:!1,showAnimation:!a&&he})}):null,a?n.jsxRuntimeExports.jsx(ws,{dangerouslySetInnerHTML:{__html:xe.getHTMLWithCommentingSections(pt)}}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(Tl,{id:xe.MONTH_END_EMAIL_HEADER_SECTION,children:[n.jsxRuntimeExports.jsx(t.StandardRegular,{dangerouslySetInnerHTML:{__html:Je[0]!=null?Je[0]+"</body></html>":Ve.common.strings.empty}}),n.jsxRuntimeExports.jsxs(kl,{children:[n.jsxRuntimeExports.jsx(_l,{children:Ve.cockpit.monthEndReport.editorTitle}),n.jsxRuntimeExports.jsx(Dl,{children:Ve.cockpit.monthEndReport.editorNote})]})]}),n.jsxRuntimeExports.jsx(Ol,{id:xe.MONTH_END_EMAIL_EDITOR_SECTION,children:n.jsxRuntimeExports.jsx(xe.Editor,{handleFileInputClick:Ue,fileAttached:B!=null,enableZeniGPTFeature:s,isZeniGPTResponseLoading:Ee,initialHtmlString:l.zeniRequestsHtml,improveUsingZeniGPTClick:d,setZeniRequestsHtml:w,customerRequestData:u})}),n.jsxRuntimeExports.jsx(ws,{id:xe.MONTH_END_EMAIL_BODY_SECTION,dangerouslySetInnerHTML:{__html:Je[1]!=null?"<html><body>"+Je[1]:Ve.common.strings.empty}})]}),B!=null?n.jsxRuntimeExports.jsx(xe.FileAttachment,{ref:_,fileName:B.name,fileSize:t.base64FileSize(B.data),onRemove:ze,isRemovable:!a}):null]}),_e?n.jsxRuntimeExports.jsx(xe.AddThreadFloating,{style:{zIndex:15},coords:_e,alignment:Z.alignment,onClick:Me}):null,n.jsxRuntimeExports.jsx(xe.TextHighlightSection,{canvasContainerRef:v,sortedThreads:$,editorMode:!a,isZeniUser:r})]})]})})}),n.jsxRuntimeExports.jsx(t.FileInputElement,{name:B?.name??Ve.common.strings.empty,fileRef:Q,sizeLimit:wl,acceptableTypes:vl,onFileChange:async ge=>{He(ge)},onFileSizeError:ge=>te(ge),multiple:!1})]}),St()]}),n.jsxRuntimeExports.jsx(t.Footer,{style:{zIndex:10},leftSideComponent:yt(),formId:ks(bs),cancelBtn:{isDisabled:Ee,label:a===!0?Ve.cockpit.monthEndReport.editButtonLabel:Ve.cockpit.monthEndReport.saveChanges,onClick:a===!0?E:Ne,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:Ee,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__",ut):Ve.cockpit.monthEndReport.preview,size:"medium"}})]})}const Is=e=>({[on]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ve.common.strings.empty}}),ks=e=>`${e}_form`;t.sp[5];t.sp[5];t.textStyles.smallBold.lineHeightValue;const zl=1,Hl=50,Ts=56,Wl=["memo"],$s=e=>V.stringToUnionStrict(e,Wl),{common:{strings:{empty:Vl}},expenseAutomation:{transactions:{header:{vendors:ql,category:Ul,classText:Gl,date:Kl,type:Jl,amount:Zl}}}}=t.appLocale.getLocalizedStrings(),Yl={key:"vendor",value:ql,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},Xl={key:"category",value:Ul,sortOrder:"ascending",width:new t.ResponsiveSized(20,20),customStyle:{common:{paddingLeft:t.sp[7]}}},Ql={key:"class",value:Gl,sortOrder:"ascending",width:new t.ResponsiveSized(18,18),customStyle:{common:{paddingLeft:t.sp[7]}}},ed={key:"date",value:Kl,sortOrder:"descending",width:new t.ResponsiveSized(11,11),customStyle:{common:{paddingLeft:12}}},td={key:"transaction_type",value:Jl,sortOrder:"descending",width:new t.ResponsiveSized(13,13),customStyle:{common:{paddingLeft:t.sp[3]}}},nd={key:"memo",value:Vl,sortOrder:"ascending",width:new t.ResponsiveSized(6,6),customStyle:{common:{}}},sd={key:"amount",value:Zl,sortOrder:"ascending",width:new t.ResponsiveSized(10,10),customStyle:{common:{paddingRight:t.sp[4]}}},lt=[Yl,Xl,Ql,ed,td,nd,sd],xn={sortKey:"date",sortOrder:"descending"},mo=({sortConfig:e,isDisabled:s,onColumnSortConfigChanged:l})=>{const a=t.useWindowSizeContext(),[u,p]=m.useState(n.cloneDeep(lt));m.useEffect(()=>{const r=[...u];for(const x of r)x.key===e.sortKey?x.sortOrder=e.sortOrder:x.sortOrder="ascending";p(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=>{$s(r.key)==null&&o(V.toTransactionsSortKey(r.key),r.sortOrder)};return n.jsxRuntimeExports.jsx(od,{windowSize:a,"data-testid":t.generateDataTestId("transaction-categorization-header-container"),children:u.map((r,x)=>{const d=s!=null||$s(r.key)!=null;return n.jsxRuntimeExports.jsxs(id,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:d,windowSize:a,isLastItem:x===u.length-1,"data-testid":t.generateDataTestId("transaction-categorization-header-wrapper",r.key),children:[n.jsxRuntimeExports.jsxs(dd,{"data-testid":t.generateDataTestId("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>c(r),isSortDisabled:d,children:[n.jsxRuntimeExports.jsx(ud,{children:r.value}),d?null:n.jsxRuntimeExports.jsx(ad,{sortConfig:e,headerData:r,"data-testid":t.generateDataTestId("transaction-categorization-sort-icon",r.key),children:n.jsxRuntimeExports.jsx(ld,{})})]}),d?null:n.jsxRuntimeExports.jsx(cd,{isSortDisabled:d,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==xn.sortKey,"data-testid":t.generateDataTestId("transaction-categorization-close-icon",r.key),children:n.jsxRuntimeExports.jsx(rd,{onClick:()=>{o(xn.sortKey,xn.sortOrder)},"data-testid":t.generateDataTestId("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},od=i.div`
1171
- top: ${t.Space.sp0};
1172
- left: ${t.Space.sp0};
1173
- height: ${Hl}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
- `,id=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
- `,rd=i(t.SvgCloseRound)`
1195
- width: 12px;
1196
- height: 12px;
1197
- `,ad=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
- `,cd=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
- `,ld=i(t.SvgArrowTailTop)`
1211
- width: ${t.Space.sp2};
1212
- height: ${t.Space.sp2};
1213
- `,dd=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
- `,ud=i(t.ExtraSmallRegular)`
1221
- display: flex;
1222
- `,hn="expenseAutomationTransactionsPage",kt="transactionCategorizationListTable",Ie="account",qe="class",Qe="lineEntitySelection",pd="lineEntity",md="recommendations",xo="lineInfo",xd="vendorDetails",hd="customerDetails",rn="selectedTransactionIds",ht=(e,s,l)=>`${e}.${l}.${s}`,gd=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:jd,hyphen:tn,empty:_t}},expenseAutomation:{transactions:gt},dateFormat:fd}=t.appLocale.getLocalizedStrings(),jt={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])},yd=({transactionView:e,transaction:s,sectionId:l,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:u,selectedTab:p,containerRef:o,isCOTEnabled:c,cotTracking:r,onTransactionCategorizationRowClick:x,setCurrentTransactionInAction:d,vendorLoadOptions:h,openTooltipId:g,setOpenTooltipId:f,isUncategorizedExpenseCategoryEnabled:R})=>{const y=t.useWindowSizeContext(),[E,j]=m.useState(!1),{lineItemById:b,sortedLineItems:O}=s.transactionReviewLocalData,L=s.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],M=O.filter(v=>L.indexOf(v)!==-1),w=[];M.forEach(v=>{w.push(b[v])});const{accountList:C,accountsHierarchyList:I,classHierarchyList:A,classList:W,uncategorizedAccounts:T,transactions:Q,selectedCheckBoxTransactionIds:_}=e,P=_.includes(s.transactionId),q=n.useTheme(),U={control:()=>({marginLeft:-2,backgroundColor:E?q.colors.background:q.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:t.sp[0]}),menu:()=>({width:"150%",background:q.colors.grey5}),singleValue:()=>({color:E||P?q.colors.primary:q.colors.hero,paddingLeft:t.sp[2]}),input:v=>({...v,color:E||P?q.colors.primary:q.colors.hero,textAlign:"left",paddingLeft:t.sp[2]}),menuPortal:v=>({...v,zIndex:10})},B={...U,singleValue:v=>({...v,color:E||P?q.colors.primary:q.colors.hero}),menu:()=>({marginTop:t.sp[1],marginLeft:-t.sp[2]}),input:v=>({...v,color:E||P?q.colors.primary:q.colors.hero,textAlign:"left"})},se=Q.find(v=>v.id===s.transactionId),he=(v,z)=>{const{transactionType:H}=z.transactionReviewLocalData;let F=v.target;for(;F;){if(F.classList.contains("select-value-container")||F.classList.contains("item-value-container")||F.classList.contains("grouped-single-select-field__value-container")||F.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||F.classList.contains("grouped-single-select-field__input")||F.classList.contains("grouped-single-select-field__menu"))return;F=F.parentElement}H!=null&&x(z.transactionId,H)},J=m.useRef(null),[ue,te]=m.useState("auto");return m.useEffect(()=>{const v=()=>{if(o.current!=null&&J.current!=null){const z=o.current.getBoundingClientRect(),N=J.current.getBoundingClientRect().top-z.top;te(N>285?"top":"bottom")}};return v(),window.addEventListener("resize",v),window.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v)}},[o]),n.jsxRuntimeExports.jsx(Cd,{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),windowSize:y,isSelected:P,isHovered:E,children:n.jsxRuntimeExports.jsx(Ed,{children:w.map((v,z)=>n.jsxRuntimeExports.jsx(vd,{ref:J,"data-testid":t.generateDataTestId("transaction-categorization-list-row",v.lineId),windowSize:y,onClick:H=>he(H,s),children:n.jsxRuntimeExports.jsx(Sd,{line:v,isHovered:E||P,isSelected:P,lineIndex:z,sectionId:l,transaction:s,currentTransaction:se,windowSize:y,accountsHierarchyList:I,classHierarchyList:A,allAccountList:C,allClassList:W,uncategorizedAccounts:T,vendorSearchAutoCompleteData:a,vendorSearchAutoCompleteActions:u,setCurrentTransactionInAction:d,vendorLoadOptions:h,customStyle:U,customStyleAutoComplete:B,recommendations:v.recommendationsWithCOT,selectedTab:p,isCOTEnabled:c,menuPlacement:ue,cotTracking:r,openTooltipId:g,setOpenTooltipId:f,isUncategorizedExpenseCategoryEnabled:R})},`${s.transactionId}.${v.lineId}`))},s.transactionId)},s.transactionId)},Sd=({accountsHierarchyList:e,allAccountList:s,allClassList:l,classHierarchyList:a,customStyle:u,customStyleAutoComplete:p,line:o,lineIndex:c,transaction:r,currentTransaction:x,windowSize:d,uncategorizedAccounts:h,isHovered:g=!1,isSelected:f=!1,sectionId:R,recommendations:y,vendorSearchAutoCompleteData:E,selectedTab:j,isCOTEnabled:b,menuPlacement:O,cotTracking:L,openTooltipId:M,setCurrentTransactionInAction:w,vendorLoadOptions:C,setOpenTooltipId:I,isUncategorizedExpenseCategoryEnabled:A})=>{const{transactionDate:W,transactionType:T,transactionTypeName:Q,memo:_}=r.transactionReviewLocalData,{setValue:P}=n.useFormContext(),q=m.useCallback((re,Ce)=>{L?.onCOTView!=null&&L.onCOTView(o.lineId,r.transactionId,re,Ce)},[L,o.lineId,r.transactionId]),U=o.lineDescription,B=m.useMemo(()=>{if(U||_)return[{title:gt.description,description:U||tn},{title:gt.header.memo,description:_||tn}]},[_,U]),se=ht(R,Qe,c.toString()),he=ht(R,Ie,c.toString()),J=ht(R,qe,c.toString()),ue=(re,Ce)=>{let Re;switch(Ce){case"vendor":Re=se;break;case"category":Re=he;break;case"class":Re=J;break;default:return}P(`${Re}.selectedOption`,re,{shouldValidate:!0,shouldDirty:!0})},te=n.useTheme(),v=m.useMemo(()=>x!=null&&V.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]),z=m.useMemo(()=>x!=null&&V.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]),H=o[qe]?.classId,N=o[Ie]?.qboId??o[Ie]?.accountId,F=v?.id,$=z?.id,G=z?.name,[pe,D]=m.useState(!H),[ee,ne]=m.useState(!N||o[Ie]?.qboId!=null&&V.isAccountUncategorized(h,o[Ie].qboId,A===!0?["income"]:void 0)===!0),[K,je]=m.useState(!$||!F),ve=re=>y?.find(Re=>Re.vendor?.qboId===re||Re.vendor?.id===re||Re.vendor?.name===re)?.vendor?.reason??"",S=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Z=t.getGroupedAccountOptionsWithCOT(e,S),de=t.getGroupedClassOptionsWithCOT(a,S),_e=re=>s.filter(Re=>Re.qboId===re)[0]?.qboId,Me=re=>l.filter(Re=>Re.classId===re)[0]?.accountingClassNumber??void 0,Ee=m.useCallback(re=>V.isAccountUncategorized(h,re,A===!0?["income"]:void 0),[h,A]),[we,me]=m.useState(!1),[Ue,ze]=m.useState(!1),[He,ae]=m.useState(!1),Ne=(re,Ce)=>{w({transactionId:r.transactionId,lineItemId:o.lineId}),C(re,Ce)},et=()=>{je(!($||F)),me(!1)},ut=()=>{N&&o[Ie]?.qboId!=null&&V.isAccountUncategorized(h,o[Ie].qboId,A===!0?["income"]:void 0)===!1?ne(!1):ne(!0),ae(!1)},Je=()=>{D(!H),ze(!1)},pt=()=>{($||F)&&me(!0)},yt=()=>{ze(!0)},St=()=>{ae(!0)};m.useEffect(()=>{N&&o[Ie]?.qboId!=null&&V.isAccountUncategorized(h,o[Ie].qboId,A===!0?["income"]:void 0)===!1?ne(!1):ne(!0)},[N]),m.useEffect(()=>{D(!H)},[H]),m.useEffect(()=>{je(!($||F))},[$,F]);const mt=r.transactionReviewLocalData.selectedEntity,ge=r.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,X=x!=null&&V.isVendorTransaction(x)===!0?mt:ge,Se=m.useMemo(()=>{const re=r.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Ce=E.entityAutoCompleteView;return{selectedOption:X?.qboId??X?.id,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(Ce,X,re??[])}},[X,r.transactionReviewLocalData.lineItemById,o.lineId,E.entityAutoCompleteView]),ye=()=>X!=null&&X.logo!=null?n.jsxRuntimeExports.jsx(t.EntityLogoAvatarWithCustomFallback,{photoUrl:X.logo.toString(),styles:{width:jt.nameLogoWidth.valuePx(d),height:jt.nameLogoHeight.valuePx(d)},fallbackAvatar:n.jsxRuntimeExports.jsx(Os,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:X.name,size:t.Space.sp4})})}):X!=null&&X.name!=null?n.jsxRuntimeExports.jsx(Os,{children:n.jsxRuntimeExports.jsx(t.EntityAvatar,{name:X.name,size:t.Space.sp4})}):null,Ke=(re,Ce)=>{if(Ce==null||!Ce)return;let Re=[];return re.forEach(We=>{Re=Re.concat(We.options)}),Re.find(We=>We.value===Ce)?.label??Ce},Ze=Ke(de,H),tt=Ke(Z,N),ke=j==="review",Tt=t.isMiscategorizedField("vendor",Se.defaultOptions,Se.selectedOption),$t=t.isMiscategorizedField("category",Z,N),Rt=t.isMiscategorizedField("class",de,H),Wt=()=>lt.map((re,Ce)=>{const Re=`${r.transactionId}_${re.key}_${o.lineId}`;if(c>0&&x!=null&&V.isVendorTransaction(x)===!0&&re.key==="vendor")return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:re.width},Re);if(c>0&&re.key==="transaction_type")return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:re.width},Re);switch(re.key){case"vendor":default:return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:re.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(gn,{isCOTEnabled:b,recommendations:S,type:"vendor",isFirstColumn:!0,isEnabled:!!X?.isPreFilled,isMisCategorized:Tt,onRecommendationClick:ue,selectedValue:$,selectedValueLabel:G,isReviewTab:ke,isAccountOptionDisabled:Ee,existingOption:{label:x!=null&&V.isVendorTransaction(x)===!0?x?.vendor?.name:void 0,value:x!=null&&V.isVendorTransaction(x)===!0?x?.vendor?.id:void 0},cotTracking:L,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:M,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(Rn,{children:K===!0?n.jsxRuntimeExports.jsx(yn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(jn,{onClick:We=>{We.stopPropagation(),je(!1),me(!0)},"data-testid":t.generateDataTestId("add-vendor-button",R),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(fn,{}),gt.addPayee]})}):we===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:et,children:n.jsxRuntimeExports.jsx(Bd,{"data-testid":t.generateDataTestId("vendor-selection-dropdown-container",ht(R,Qe,c.toString())),children:n.jsxRuntimeExports.jsx(t.AutoCompleteGroupedCreatableSingleSelectCustomGroupFieldWithCOT,{name:se,placeholder:gt.addPayee,valueToInfo:ve,defaultValue:{selectedOption:Se.selectedOption,defaultOptions:Se.defaultOptions},type:"vendor",autoFocus:!K,style:{width:"100%"},pageSource:"list_page",transactionStatus:ke?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:we,onMenuClose:et,registerOptions:{required:!1},loadOptions:Ne,showCOT:b,onCOTView:q,menuPlacement:O})})}):n.jsxRuntimeExports.jsx(Pd,{children:n.jsxRuntimeExports.jsxs(Sn,{isHovered:g,showOutline:Tt&&X?.isPreFilled!==!0&&!f&&ke,children:[ye(),n.jsxRuntimeExports.jsx(Md,{onClick:pt,"data-testid":t.generateDataTestId("vendor-name-text",R),children:X!=null&&X.name?n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:X.name,itemTextStyle:{color:g?te.colors.primary:te.colors.hero}}):n.jsxRuntimeExports.jsx(Nd,{children:tn})})]})})})]},Re);case"category":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:re.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(gn,{isCOTEnabled:b,recommendations:S,type:"category",isFirstColumn:!1,isReviewTab:ke,isEnabled:!!o[Ie]?.isPreFilled,isAccountOptionDisabled:Ee,isMisCategorized:$t,onRecommendationClick:ue,selectedValue:N,selectedValueLabel:tt,existingOption:{label:We?.account?.accountName,value:We?.account?.qboId??We?.account?.accountId},cotTracking:L,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:M,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(Rn,{children:ee===!0?n.jsxRuntimeExports.jsx(yn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(jn,{onClick:Ct=>{Ct.stopPropagation(),ne(!1),ae(!0)},"data-testid":t.generateDataTestId("category-selection-field",he),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(fn,{}),gt.addCategory]})}):He===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:ut,children:n.jsxRuntimeExports.jsx(Ds,{isHovered:g,"data-testid":t.generateDataTestId("category-selection-dropdown-container",he),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:he,placeholder:gt.addCategory,valueToId:Ct=>_e(Ct),type:"category",pageSource:"list_page",transactionStatus:ke?"pending_review":"auto_categorized",showCOT:b,defaultValue:{selectedOption:N,allOptions:Z},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:He,autoFocus:!ee&&(!N||o[Ie]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[Ie].qboId)),onMenuClose:ut,customStyleConfig:u,disableCurrentOption:Ee,menuPlacement:O,onCOTView:q})})}):n.jsxRuntimeExports.jsx(Sn,{isHovered:g,showOutline:$t&&o[Ie]?.isPreFilled!==!0&&!f&&ke,children:n.jsxRuntimeExports.jsx(_s,{onClick:St,"data-testid":t.generateDataTestId("category-label-text",he),children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:tt??"",itemTextStyle:{color:g?te.colors.primary:te.colors.hero}})})})})]},Re)}case"class":{const We=x?.lines!=null?x?.lines[c]:void 0;return n.jsxRuntimeExports.jsxs(Ye,{windowSize:d,wrapperWidth:re.width,className:"item-value-container",children:[n.jsxRuntimeExports.jsx(gn,{isCOTEnabled:b,recommendations:S,type:"class",isFirstColumn:!1,isReviewTab:ke,isEnabled:!!o[qe]?.isPreFilled,isAccountOptionDisabled:Ee,isMisCategorized:Rt,onRecommendationClick:ue,selectedValue:H,selectedValueLabel:Ze,existingOption:{label:We?.class?.className,value:We?.class?.classId},cotTracking:L,lineId:o.lineId,transactionId:r.transactionId,openTooltipId:M,setOpenTooltipId:I}),n.jsxRuntimeExports.jsx(Rn,{children:pe===!0?n.jsxRuntimeExports.jsx(yn,{isHovered:g,children:n.jsxRuntimeExports.jsxs(jn,{onClick:Ct=>{Ct.stopPropagation(),D(!1),ze(!0)},"data-testid":t.generateDataTestId("class-selection-field",J),style:{display:"inline-flex",alignItems:"center",color:t.Colors.brandColorGoldDark,cursor:"pointer",height:t.Space.sp6},children:[n.jsxRuntimeExports.jsx(fn,{}),gt.addClass]})}):Ue===!0?n.jsxRuntimeExports.jsx(n.ClickAwayListener,{onClickAway:Je,children:n.jsxRuntimeExports.jsx(Ds,{isHovered:g,"data-testid":t.generateDataTestId("class-selection-dropdown-container",J),children:n.jsxRuntimeExports.jsx(Ht.GroupedSingleSelectFieldWithCOT,{name:J,placeholder:gt.addClass,valueToId:Ct=>Me(Ct),type:"class",showCOT:b,defaultValue:{selectedOption:H,allOptions:de},pageSource:"list_page",transactionStatus:ke?"pending_review":"auto_categorized",menuIsOpen:Ue,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!pe&&!H,customStyleConfig:u,onMenuClose:Je,menuPlacement:O,onCOTView:q})})}):n.jsxRuntimeExports.jsx(Sn,{isHovered:g,showOutline:Rt&&o[qe]?.isPreFilled!==!0&&!f&&ke,children:n.jsxRuntimeExports.jsx(_s,{"data-testid":t.generateDataTestId("class-selection-field",J),onClick:yt,children:n.jsxRuntimeExports.jsx(t.TooltipWithEllipsisText,{text:Ze??"",itemTextStyle:{color:g?te.colors.primary:te.colors.hero}})})})})]},Re)}case"date":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:re.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Ce===lt.length-1,children:n.jsxRuntimeExports.jsx(On,{"data-testid":t.generateDataTestId("date-field",ht(R,qe,c.toString())),children:n.jsxRuntimeExports.jsx(bd,{style:{color:g?te.colors.primary:te.colors.hero},children:W!=null?W.format(fd.visual.MMMDCommaYYYYformat):null})})})},Re);case"transaction_type":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:re.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,"data-testid":t.generateDataTestId("transaction-type-field",ht(R,qe,c.toString())),isLastItem:Ce===lt.length-1,children:Q!=null?n.jsxRuntimeExports.jsx(t.Tag,{textColor:g?new n.Color(te.colors.primary):t.getColorForTransactionType(void 0,te),text:Q??T}):null})},Re);case"memo":return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,wrapperWidth:re.width,children:n.jsxRuntimeExports.jsx(Bt,{style:{lineHeight:t.Space.sp3},windowSize:d,isLastItem:Ce===lt.length-1,"data-testid":t.generateDataTestId("memo-field",ht(R,qe,c.toString())),children:B!=null?n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",data:B,variant:"multi-information-points",children:n.jsxRuntimeExports.jsx(kd,{style:{color:g?te.colors.primary:te.colors.hero}})}):n.jsxRuntimeExports.jsx(Id,{children:tn})})},Re);case"amount":{const We=t.amountToString("0,0.[00]",o.amount,!0);return n.jsxRuntimeExports.jsx(Ye,{windowSize:d,style:{paddingRight:t.sp[4]},wrapperWidth:re.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:d,isLastItem:Ce===lt.length-1,children:n.jsxRuntimeExports.jsx(On,{"data-testid":t.generateDataTestId("transaction-amount-field",ht(R,qe,c.toString())),style:{color:g?te.colors.primary:te.colors.hero},children:We})})},Re)}}});return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Wt()})},Ls=({isEnabled:e,isReviewTab:s,isMisCategorized:l,hasRecommendations:a,isTooltipVisible:u=!1})=>e?s?u?n.jsxRuntimeExports.jsx(Ld,{}):n.jsxRuntimeExports.jsx(Td,{}):u?n.jsxRuntimeExports.jsx($d,{}):n.jsxRuntimeExports.jsx(Ad,{className:"ai-icon-selected-plain"}):!e&&l||a?u?n.jsxRuntimeExports.jsx(Dd,{}):n.jsxRuntimeExports.jsx(Od,{}):null,As=({isFirstColumn:e,children:s})=>n.jsxRuntimeExports.jsx(go,{isFirstColumn:e,children:s}),gn=({recommendations:e,isCOTEnabled:s,type:l,isReviewTab:a,selectedValueLabel:u,isFirstColumn:p,isEnabled:o=!1,isMisCategorized:c=!1,selectedValue:r,existingOption:x,cotTracking:d,lineId:h,openTooltipId:g,transactionId:f,isAccountOptionDisabled:R,onRecommendationClick:y,setOpenTooltipId:E})=>{const j=m.useMemo(()=>`${f}:${h}:${l}`,[f,h,l]),b=g===j,L=t.useToolkitContext().analytics,{createAlternateRecommendationCallback:M}=t.useCOTAnalytics(),w=m.useCallback(_=>{const P=e[1],q=e[0];M(l,{currentValue:u??_t,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:d?{transactionId:f,lineId:h,onCOTView:(U,B,se,he)=>{d.onCOTView?.(U,B,se,he)}}:void 0},P,q)(_)},[M,e,u,a,l,d,h,f]),C=t.createCOTDataFromRecommendations(e,l,s,x,"list_page",a?"pending_review":"auto_categorized",y,w,r,R),I=t.hasRecommendationsForType(e,l),A=m.useCallback(()=>{E(j);const _=C?.recommendations[0]?.cot??[],P=C?.recommendations[1]?.cot??[],q=P.length>0;if(L.trackTransactionCotView({recommendationFor:l,currentValue:u??_t,recommendation:C?.recommendations[0]?.name??_t,recommendationCot:_,isRecommendationCotAvailable:_.length>0,recommendationReason:C?.recommendations[0]?.reason??_t,recommendationConfidencePercentage:C?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:C?.recommendations[1]?.name??_t,alternativeRecommendationCot:P,isAlternativeRecommendationCotAvailable:q,alternativeRecommendationReason:C?.recommendations[1]?.reason??_t,alternativeRecommendationConfidencePercentage:C?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:q?t.toConfidenceLevelType(t.getConfidenceLevel(C?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:a?"pending_review":"auto_categorized",transactionPage:"list_page"}),d?.onCOTView!=null){const U=t.getCOTRecommendationSourceToTrack(C);U!=null&&d.onCOTView(h,f,l,U)}},[L,C,a,u,l,h,f,j,E]),W=m.useCallback(()=>{g===j&&E(void 0)},[g,j,E]),T=m.useMemo(()=>!r||!I?!1:e.some(_=>l==="vendor"&&_.vendor!=null?_.vendor.id===r||_.vendor.qboId===r:l==="category"&&_.account!=null?_.account.qboId===r||_.account.accountId===r:l==="class"&&_.class!=null?_.class.classId===r:!1),[r,I,e,l]);if(!I)return n.jsxRuntimeExports.jsx(go,{isFirstColumn:p});const Q=o||T;return C?n.jsxRuntimeExports.jsx(As,{isFirstColumn:p,children:n.jsxRuntimeExports.jsx(t.Tooltip,{variant:"chain-of-thought",data:C,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:b,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:W,children:n.jsxRuntimeExports.jsx(_d,{children:n.jsxRuntimeExports.jsx(Ls,{isEnabled:Q,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:b})})})}):n.jsxRuntimeExports.jsx(As,{isFirstColumn:p,children:n.jsxRuntimeExports.jsx(Ls,{isEnabled:Q,isReviewTab:a,isMisCategorized:c,hasRecommendations:I,isTooltipVisible:b})})},ho=()=>{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(Rd,{windowSize:e,ref:s,children:lt.map((u,p)=>{const o=`${p}${jd}${u.key}`;switch(u.key){case"vendor":return n.jsxRuntimeExports.jsx(Ye,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:p===lt.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*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:return n.jsxRuntimeExports.jsx(Ye,{windowSize:e,wrapperWidth:u.width,children:n.jsxRuntimeExports.jsx(Bt,{windowSize:e,isLastItem:p===lt.length-1,children:n.jsxRuntimeExports.jsx(t.RectangularContentLoader,{width:l*u.width.value(e)/100,height:t.sp[4],style:{display:"flex",alignItems:"center"}})})},o)}})})},Rd=i.div`
1223
- display: flex;
1224
- background-color: ${e=>e.theme.colors.grey5};
1225
- padding-left: ${e=>jt.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
- padding-right: ${e=>jt.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
- padding-top: ${e=>jt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
- padding-bottom: ${e=>jt.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
- `,Cd=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?De.css`
1265
- .ai-icon-selected-plain {
1266
- color: ${s.colors.primary};
1267
- }
1268
- `:null};
1269
- `,Ed=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
- `,vd=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=>jt.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
- padding-bottom: ${e=>jt.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
- `,Ye=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
- `,wd=De.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
- `,On=i.div`
1312
- display: flex;
1313
- flex-direction: row;
1314
- column-gap: ${t.Space.sp2};
1315
- align-items: center;
1316
- `,bd=i(t.StandardRegular)`
1317
- ${wd};
1318
- color: ${e=>e.theme.colors.hero};
1319
- `,jn=i(t.StandardRegular)`
1320
- color: ${e=>e.theme.colors.hero};
1321
- `,fn=i(t.SvgAddRound)`
1322
- width: ${t.Space.sp3};
1323
- height: ${t.Space.sp3};
1324
- margin: ${t.Space.sp1};
1325
- `,Id=i.div`
1326
- margin: ${t.Space.sp3};
1327
- `,kd=i(gd)`
1328
- width: ${t.Space.sp3};
1329
- height: ${t.Space.sp3};
1330
- margin-left: 10px;
1331
- `,Td=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
- `,Ld=i(t.SvgAiIconSelectedFilled)`
1338
- width: ${t.Space.sp5};
1339
- height: ${t.Space.sp5};
1340
- `,Ad=i(Ht.SvgAiIconSelectedPlain)`
1341
- width: ${t.Space.sp5};
1342
- height: ${t.Space.sp5};
1343
- `,Od=i(t.SvgAiIcon)`
1344
- width: ${t.Space.sp3};
1345
- height: ${t.Space.sp3};
1346
- path {
1347
- stroke-width: 2;
1348
- }
1349
- `,Dd=i(t.SvgAiIconFilled)`
1350
- width: ${t.Space.sp3};
1351
- height: ${t.Space.sp3};
1352
- `,go=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
- `,_d=i.div`
1360
- display: flex;
1361
- align-items: center;
1362
- justify-content: center;
1363
- width: auto;
1364
- cursor: pointer;
1365
- `,Md=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
- `,Os=i.div`
1375
- display: flex;
1376
- `,Bd=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
- `,yn=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
- `,Ds=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
- `,Nd=i(t.StandardRegular)``,Pd=i.div`
1401
- width: 100%;
1402
- display: flex;
1403
- padding-left: ${t.Space.sp0};
1404
- `,Sn=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
- `,_s=i.div``,Rn=i.div`
1417
- display: flex;
1418
- align-items: center;
1419
- width: calc(100% - ${t.Space.sp5});
1420
- `,Fd=({sortConfig:e,fetchState:s,isDisabled:l,onColumnSortConfigChanged:a})=>{const u=t.useWindowSizeContext();return n.jsxRuntimeExports.jsxs(zd,{windowSize:u,children:[n.jsxRuntimeExports.jsx(mo,{sortConfig:e,isDisabled:s==="In-Progress"?"readonly":l,onColumnSortConfigChanged:a,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table-header")}),n.jsxRuntimeExports.jsx(Hd,{windowSize:u,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,o)=>n.jsxRuntimeExports.jsx(ho,{"data-testid":t.generateDataTestId("transaction-categorization-list-empty-row",o.toString())},o))})]})},zd=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
- `,Hd=i.div`
1428
- display: flex;
1429
- flex: 1;
1430
- min-height: 100%;
1431
- flex-direction: column;
1432
- row-gap: ${t.Space.sp3};
1433
- `,{common:Wd,transactionDetail:{notCategorizedTooltipText:Vd}}=t.appLocale.getLocalizedStrings(),Cn={rowGap:new t.ResponsiveSized(t.sp[0],t.sp[2],t.sp[3])},qd=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:u,isCOTEnabled:p,isDisabled:o,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:x,vendorLoadOptions:d,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:g,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:R,containerRef:y,cotTracking:E,isUncategorizedExpenseCategoryEnabled:j})=>{const b=t.useWindowSizeContext(),[O,L]=m.useState(void 0),{fetchState:M,uiState:w,transactionLocalData:C,selectedCheckBoxTransactionIds:I,transactionIdsWithUnsavedData:A,transactions:W,uncategorizedAccounts:T}=s,Q=m.useRef(null),_=m.useRef({}),{control:P}=n.useFormContext();m.useEffect(()=>{Q.current?.resetAfterIndex(0,!0)},[b,Q,C]),m.useEffect(()=>{Q.current?.scrollTo(w.scrollPosition?.scrollTop??0)},[e]);const q=m.useCallback(D=>{if(_.current?.[D]!=null){const K=b==="small"&&w.pageToken==null&&D===C.length-1?Cn.rowGap.value("medium-regular"):Cn.rowGap.value(b);return _.current[D]+K}if(C[D]==null)return 0;const ee=C[D].transactionReviewLocalData,ne=Object.keys(ee.lineItemById).length;return ne!=null&&!isNaN(ne)&&ne>1?Ts*ne+Cn.rowGap.value(b)*(ne-1):Ts},[C,b,w.pageToken,w.sortKey,w.sortOrder]),U=m.useCallback((D,ee)=>{_.current={..._.current,[D]:ee},Q.current?.resetAfterIndex(0,!0)},[b,Q,C,w.sortKey,w.sortOrder]),B=m.useCallback(()=>{(w.pageToken!=null&&s.refreshStatus.fetchState!=="In-Progress"||s.refreshStatus.fetchState==="Completed")&&R(e,w.searchString,!0,w.pageToken,!0,!1)},[s.refreshStatus.fetchState,R,e,w.pageToken,w.searchString,w.sortKey,w.sortOrder]),se=m.useCallback(()=>{w.pageToken!=null&&B()},[B,w.pageToken,w.sortKey,w.sortOrder]),he=n.debounce(D=>f(e,{scrollPosition:{scrollTop:D}}),1e3,{trailing:!0}),J=D=>D<s.transactionLocalData.length,ue=(D,ee)=>{g(e,{sortOrder:ee,sortKey:D}),R(e,w.searchString,!1,null,!1,!0)},te=D=>{if(e==="autoCategorized")return!I.includes(D);const ee=C.find(K=>K.transactionId===D)?.transactionReviewLocalData,ne=W.find(K=>K.id===D);return ne!=null&&ee!=null?V.checkIfAllLineItemsAreCategoryClassFilled(ne,ee,T,j)?j===!0&&n.transactionCategorizationLocalDataHelperExports.isAnyItemWithUncategorizedExpenseAccount(T,ee.lineItemById,["expense"])?A.includes(D)===!1:!1:!0:I.length===0?!0:!I.includes(D)};let v=[],z=[];(M==="Completed"||s.transactionLocalData.length>0)&&(z=s.transactionLocalData.map((D,ee)=>{const ne=te(D.transactionId);let K=!1;j===!0&&ne===!0&&e==="review"&&n.transactionCategorizationLocalDataHelperExports.isAnyItemWithUncategorizedExpenseAccount(T,D.transactionReviewLocalData.lineItemById,["expense"])&&(K=!A.includes(D.transactionId));const je=D.transactionReviewLocalData;return{label:n.jsxRuntimeExports.jsx(yd,{transactionView:s,sectionId:`${u}.${ee}.${xo}`,transaction:D,receiptUploadEndpoint:l,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:d,setCurrentTransactionInAction:x,vendorSearchAutoCompleteActions:c,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:y,isCOTEnabled:p,cotTracking:E,openTooltipId:O,setOpenTooltipId:L,isUncategorizedExpenseCategoryEnabled:j},`${D.transactionId}.${je.transactionType}`),value:D.transactionId,defaultChecked:!1,groupLabel:!1,isException:K,exceptionMode:K===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:ne===!0?"readonly":void 0,exceptionType:K===!0?"alert":void 0,exceptionInfo:K===!0?Vd:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${t.Space.sp2}`}}}),v=z.map(D=>D.value));const H={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:N,subTitle:F}=Be("transaction_categorization").allDoneText,$=C.map(D=>D.transactionId),G=m.useMemo(()=>s.totalCountByTab[e],[e,s.totalCountByTab]),pe=m.useMemo(()=>C.reduce((ee,ne)=>{const K=Object.keys(ne.transactionReviewLocalData.lineItemById).length;return ee+(K>0?K:1)},0)<s.totalCountByTab[e]?C.length+1:C.length,[C,s.totalCountByTab,e]);return n.jsxRuntimeExports.jsx(Zd,{windowSize:b,"data-testid":t.generateDataTestId("transaction-categorization-list-wrapper"),children:n.jsxRuntimeExports.jsx(Yd,{windowSize:b,"data-testid":t.generateDataTestId("transaction-categorization-list-container"),children:M==="Error"?n.jsxRuntimeExports.jsxs(Qd,{windowSize:b,"data-testid":t.generateDataTestId("transaction-categorization-reload-page"),children:[n.jsxRuntimeExports.jsx(eu,{onClick:()=>R(e,void 0,!0,null,!1,!0),"data-testid":t.generateDataTestId("transaction-categorization-reload-icon"),children:n.jsxRuntimeExports.jsx(t.SvgReload,{})}),n.jsxRuntimeExports.jsx(tu,{"data-testid":t.generateDataTestId("transaction-categorization-reload-label"),children:Wd.reloadPage.label})]}):M==="Completed"&&C.length===0?n.jsxRuntimeExports.jsx(dt,{tab:"transaction_categorization",title:N,subTitle:F,"data-testid":t.generateDataTestId("transaction-categorization-empty-table-section")}):M==="Not-Started"||M==="In-Progress"&&C.length===0?n.jsxRuntimeExports.jsx(Fd,{sortConfig:{sortKey:w.sortKey,sortOrder:w.sortOrder},fetchState:M,onColumnSortConfigChanged:ue,"data-testid":t.generateDataTestId("transaction-categorization-list-empty-table")}):n.jsxRuntimeExports.jsx(Xd,{windowSize:b,"data-testid":t.generateDataTestId("transaction-categorization-list-view"),children:n.jsxRuntimeExports.jsx(n.Controller,{control:P,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:D,ref:ee,onChange:ne}})=>n.jsxRuntimeExports.jsx(jo.Provider,{value:{value:D,mode:"off",allCheckBoxValues:v,index:0,sortKey:w.sortKey,sortOrder:w.sortOrder,fetchState:M,isDisabled:o,groupLabelCheckBox:H,onColumnSortConfigChanged:ue,ref:ee,onChange:ne,selectedTab:e},children:n.jsxRuntimeExports.jsx(n.AutoSizer,{children:({height:K,width:je})=>n.jsxRuntimeExports.jsx(n.InfiniteLoader,{isItemLoaded:J,itemCount:G,loadMoreItems:se,children:({onItemsRendered:ve,ref:S})=>n.jsxRuntimeExports.jsx(n.VariableSizeList,{ref:Z=>{S(Z),Q.current=Z},height:K,itemCount:pe,itemKey:Z=>C[Z]?.transactionId,innerElementType:Ud,onItemsRendered:ve,width:je,style:{willChange:"auto"},overscanCount:zl,itemSize:q,itemData:{checkboxes:z,value:D,allCheckBoxValues:v,groupLabelCheckBox:H,categorizationGroupValue:$,transactionLocalData:C,mode:"always_on",setRowHeight:U,isItemLoaded:J,ref:S,onChange:ne,selectedCheckBoxTransactionIds:I},initialScrollOffset:s.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:Z})=>{he(Z)},children:Kd})})})})})})})})},Ud=e=>{const{value:s,allCheckBoxValues:l,groupLabelCheckBox:a,index:u,isDisabled:p,fetchState:o,sortKey:c,sortOrder:r,mode:x,ref:d,onChange:h,onColumnSortConfigChanged:g}=Gd(),{children:f,style:R,...y}=e;return o==="Completed"?n.jsxRuntimeExports.jsxs(nu,{ref:d,style:{...R,width:"auto"},...y,children:[n.jsxRuntimeExports.jsx(su,{children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:V.MAX_SELECTION_LIMIT,value:s,checkBox:{label:n.jsxRuntimeExports.jsx(Jd,{children:n.jsxRuntimeExports.jsx(mo,{sortConfig:{sortKey:c,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:g})}),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:u,onChangeHandler:E=>t.onChangeHandler({event:E,value:s,allCheckBoxValues:l,groupLabelCheckBox:a,onChange:h}),ref:d})}),n.jsxRuntimeExports.jsx(ou,{children:f})]},`${l[u]}-${u}`):null},jo=m.createContext(void 0),Gd=()=>{const e=m.useContext(jo);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Kd=({index:e,style:s,data:l})=>{const{checkboxes:a,value:u,groupLabelCheckBox:p,categorizationGroupValue:o,allCheckBoxValues:c,transactionLocalData:r,isItemLoaded:x,setRowHeight:d,ref:h,onChange:g,selectedCheckBoxTransactionIds:f}=l,R=m.useRef(null),y=t.useWindowSizeContext();if(m.useEffect(()=>{R.current?.firstElementChild!=null&&d(e,R.current.firstElementChild.clientHeight)},[e,R,y,r[e]?.transactionReviewLocalData]),x(e)===!0){const E=a[e];return n.jsxRuntimeExports.jsx(Ms,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:R,children:n.jsxRuntimeExports.jsx(t.CheckBoxWithLabel,{selectionLimit:V.MAX_SELECTION_LIMIT,checkBox:E,value:u,groupLabelCheckBox:p,allCheckBoxValues:c,mode:E.isDisabled==="readonly"||f.includes(E.value)===!1&&f.length>=V.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:E.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:t.Space.sp3},infoIconContainerStyle:{padding:20},name:`${kt}.${u}`,ref:h,index:e,onChangeHandler:j=>t.onChangeHandler({event:j,value:u,allCheckBoxValues:c,groupLabelCheckBox:p,onChange:g})})},o[e])}else return n.jsxRuntimeExports.jsx(Ms,{style:{...s,paddingBottom:t.Space.sp0,paddingRight:t.Space.sp8,width:"100%",flex:"1"},ref:R,children:n.jsxRuntimeExports.jsx(iu,{children:n.jsxRuntimeExports.jsx(ho,{})})},n.nanoid())},Jd=i.div`
1434
- flex: 1;
1435
- width: auto;
1436
- padding-right: ${t.Space.sp8};
1437
- `,Zd=i.div`
1438
- width: 100%;
1439
- height: 100%;
1440
- background-color: ${e=>e.theme.colors.grey4};
1441
- `,Yd=i.div`
1442
- height: 100%;
1443
- `,Xd=i.div`
1444
- height: 100%;
1445
- display: flex;
1446
- flex-direction: column;
1447
- max-width: 99.9%;
1448
- `,Qd=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
- `,eu=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
- `,tu=i(t.SmallRegular)`
1471
- margin-top: ${t.Space.sp3};
1472
- color: ${e=>e.theme.colors.hero};
1473
- `,Ms=i.div`
1474
- top: ${t.Space.sp0};
1475
- left: ${t.Space.sp0};
1476
- padding-bottom: ${t.Space.sp3};
1477
- box-sizing: border-box;
1478
- `,nu=i.div`
1479
- background-color: ${e=>e.theme.colors.grey4};
1480
- `,su=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
- `,ou=i.div`
1491
- position: relative;
1492
- width: auto;
1493
- height: 100%;
1494
- `,iu=i.div`
1495
- padding-left: ${t.Space.sp8};
1496
- `,ru=({selectedTab:e,transactionView:s,receiptUploadEndpoint:l,authParams:a,sectionId:u,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:o,isCOTEnabled:c,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:x,onTransactionCategorizationRowClick:d,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:g,onFetchTransactionCategorizationList:f,onSaveUpdateTransactionCategorization:R,onUpdateSelectedCheckboxTransactionIds:y,onFetchRecommendationsForEntityCategorization:E,onFetchRecommendationsForEntityCategorizationWithCustomer:j})=>{const[b,O]=m.useState({transactionId:void 0,lineItemId:void 0}),L=m.useRef(),M=m.useRef({}),{useDynamicConfig:w}=t.useZeniFeatureContext(),{configValue:C}=w(t.DynamicConfigNames.enableUncategorizedExpenseCategory),I=C?.uncategorized_expense_category_enabled===!0,A=(v,z,H,N)=>{const F={...M.current};F[z]==null&&(F[z]=[]);let $=F[z].findIndex(G=>G.lineId===v);if($===-1){const G={lineId:v,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};F[z].push(G),$=F[z].length-1}else{const G=F[z][$];F[z][$]={...G,category:{...G.category,recommendationTypesViewed:[...G.category.recommendationTypesViewed]},class:{...G.class,recommendationTypesViewed:[...G.class.recommendationTypesViewed]},vendor:{...G.vendor,recommendationTypesViewed:[...G.vendor.recommendationTypesViewed]}}}N!=null&&N!==""&&!F[z][$][H].recommendationTypesViewed.includes(N)&&F[z][$][H].recommendationTypesViewed.push(N),M.current=F},{transactions:W,transactionLocalData:T,accountsHierarchyList:Q,classHierarchyList:_,accountList:P,classList:q,selectedCheckBoxTransactionIds:U,uncategorizedAccounts:B}=s,se=n.useForm({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>Ns(U,T,Q,_,p.entityAutoCompleteView),[Q,_,U,T,p.entityAutoCompleteView]),values:m.useMemo(()=>Ns(U,T,Q,_,p.entityAutoCompleteView),[Q,_,U,T,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});m.useEffect(()=>()=>{r("expenseAutomationPage")},[]),m.useEffect(()=>{U.length>0?r(hn):r("expenseAutomationPage")},[U,r]);const he=se.handleSubmit(v=>{const z=v[rn],H=M.current;R(e,z,H),z.forEach(N=>{delete M.current[N]})}),J=async(v,z)=>{if(v!=null){if(v===rn){const H=se.getValues(rn);if(H.length<U.length){y(e,H);return}if(H.length===V.MAX_SELECTION_LIMIT){y(e,H);return}const N=H[H.length-1],F=z[kt].findIndex(G=>G.transactionId===N),$=se.getValues(`${kt}.${F}.lineInfo`);if($!=null){let G=!1;if($.every(D=>(G=V.isAccountUncategorized(B,D[Ie].selectedOption,I?["income"]:void 0),!!D[Ie].selectedOption&&D[Ie].selectedOption!=null&&!G&&!!D[qe].selectedOption&&!!D[Qe].selectedOption))===!0){y(e,H);return}else{const D=H.filter(ee=>ee!==N);y(e,D);return}}return}if(v.includes(Ie)===!0||v.includes(qe)===!0){const H=parseInt(v.split(".")[1]),N=parseInt(v.split(".")[3]),F=se.getValues(`${kt}.${H}.lineInfo`),$=F[N];if(v.includes(Ie)||v.includes(qe)){const{transactionId:G,lineId:pe,recommendations:D}=$;if(F!=null){const ee=$[Ie].selectedOption,ne=$[qe].selectedOption,K=$[Qe].selectedOption,je=$[Qe].selectedOption,ve=$[Qe].defaultOptions,S=ve?.find(ae=>ae.options?.find(Ne=>Ne.value===K))?.options?.find(ae=>ae.value===K)?.label,Z=ve?.find(ae=>ae.options?.find(Ne=>Ne.value===je))?.options?.find(ae=>ae.value===je)?.label,de=p.entityAutoCompleteView.vendor.find(ae=>ae.qboId===K),_e=p.entityAutoCompleteView.customer.find(ae=>ae.qboId===je),Me=D.find(ae=>ae.vendor?.qboId===K)?.vendor,Ee=K||de?.qboId||Me?.qboId?{id:K??de?.qboId??Me?.qboId??"",name:S??de?.name??Me?.name??"",logo:de?.logo??Me?.logo}:void 0,we=je||_e?.qboId?{id:je??_e?.qboId??"",name:Z??_e?.name??"",logo:_e?.logo}:void 0,me=P.find(ae=>ae.qboId===ee),Ue=q.find(ae=>ae.classId===ne),ze=s.transactionLocalData.find(ae=>ae.transactionId===G)?.transactionReviewLocalData.lineItemById[pe].account,He=s.transactionLocalData.find(ae=>ae.transactionId===G)?.transactionReviewLocalData.lineItemById[pe].class;x(e,G,pe,W,Ee?.id,we?.id,v.includes(Ie)&&me!=null?{...me,isPreFilled:!1}:ze,v.includes(qe)&&Ue!=null?{...Ue,isPreFilled:!1}:He,void 0,D,I)}return}}if(v.includes(Qe)){const H=parseInt(v.split(".")[1]),N=parseInt(v.split(".")[3]),F=se.getValues(`${kt}.${H}.lineInfo`);if(F!=null){const $=F[N],{transactionId:G,recommendations:pe}=$,D=$[Qe].selectedOption,ee=$[Qe].selectedOption,ne=$[Qe].defaultOptions,K=ne?.flatMap(me=>me.options)?.find(me=>me.value===D)?.label,je=ne?.flatMap(me=>me.options)?.find(me=>me.value===ee)?.label,ve=p.entityAutoCompleteView.vendor.find(me=>me.qboId===D),S=p.entityAutoCompleteView.customer.find(me=>me.qboId===ee),Z=pe.find(me=>me.vendor?.qboId===D)?.vendor,de=D!==""&&D!=null?D:K!==""&&K!=null?K:"",_e=(ve?.qboId!=null&&ve.qboId!==""?ve.qboId:null)??(Z?.qboId!=null&&Z.qboId!==""?Z.qboId:null)??(D!=null&&D!==""?D:null),Me={id:_e??K??"",name:K??ve?.name??Z?.name??"",logo:ve?.logo??Z?.logo},Ee=S?.qboId!=null&&S.qboId!==""?{id:S.qboId??ee??"",name:je??S.name??"",logo:S.logo}:void 0,we=W.find(me=>me.id===G);if(we!=null){const me=s.transactionLocalData.find(Ne=>Ne.transactionId===we.id)?.transactionReviewLocalData,Ue=me?.lineItemById[$.lineId],ze=V.isVendorTransaction(we)===!0?me?.selectedEntity:Ue?.selectedEntityLine,He=Me.id!==""?{id:de,name:K??de,type:"vendor",qboId:de,zeniId:de,logo:Me.logo,isPreFilled:ze?.id===_e&&ze?.isPreFilled}:Ee?.id!=null&&Ee.id!==""?{id:Ee.id,name:Ee.name,type:"customer",qboId:Ee.id,zeniId:Ee.id,logo:Ee.logo}:void 0,ae={transactionId:{id:we.id,type:we.type},transaction:we,lineIds:we.type!=="journal_entry"?we.lines?.map(Ne=>Ne.id)??[]:[$.lineId]};He?.type==="customer"?j($.amount.amount,ae,!1,e,He,Ee,I):E($.amount.amount,ae,!1,e,He,Me,I)}}o.onCancelAutoComplete?.();return}}};m.useEffect(()=>{const v=se.watch((z,{name:H})=>{H!=null&&z!=null&&n.defer(()=>J(H,z))});return()=>{v.unsubscribe()}}),m.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const v=s.transactionLocalData.find(z=>z.transactionId===b.transactionId);if(v){const{transactionReviewLocalData:z}=v,{selectedEntity:H}=z,N=b?.lineItemId??z.sortedLineItems[0],F=z.lineItemById[N],$=F.selectedEntityLine;L.current?.(t.getGroupedForPayeeEntityOptionsWithCOT(p.entityAutoCompleteView,H??$,F?.recommendationsWithCOT??[]))}O({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const ue=(v,z)=>{o.onAutoCompleteInputChange?.(v),L.current=z},te=m.useRef(null);return n.jsxRuntimeExports.jsx(cu,{ref:te,"data-testid":t.generateDataTestId("transaction-categorization-list-page"),children:n.jsxRuntimeExports.jsx(n.FormProvider,{...se,children:n.jsxRuntimeExports.jsx("form",{id:Bs(hn),onSubmit:he,style:{height:"100%",width:"100%"},"data-testid":t.generateDataTestId(Bs(hn)),children:n.jsxRuntimeExports.jsx(qd,{selectedTab:e,sectionId:u,transactionView:s,receiptUploadEndpoint:l,authParams:a,setCurrentTransactionInAction:O,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:g,onFetchTransactionCategorizationList:f,onTransactionCategorizationRowClick:d,vendorLoadOptions:ue,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:o,containerRef:te,isCOTEnabled:c,cotTracking:{onCOTView:A},isUncategorizedExpenseCategoryEnabled:I})})})})},Bs=e=>`${e}_form`,Ns=(e,s,l,a,u)=>({[kt]:s.map(o=>au(o.transactionId,o.transactionReviewLocalData,l,a,u)),[rn]:e}),au=(e,s,l,a,u)=>{const{lineItemById:p,sortedLineItems:o,selectedEntity:c}=s,r=Object.values(p).sort((d,h)=>o.indexOf(d.lineId)-o.indexOf(h.lineId)),x=r[0]?.lineId;return{[xo]:r.map(d=>{const h=d.account?.qboId??d.account?.accountId,g=d.class?.classId,f=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,[Ie]:{selectedOption:h,allOptions:t.getGroupedAccountOptionsWithCOT(l,d.recommendationsWithCOT)},[qe]:{selectedOption:g,allOptions:t.getGroupedClassOptionsWithCOT(a,d.recommendationsWithCOT)},[Qe]:{selectedOption:c?.id??f?.id??c?.name??f?.name,defaultOptions:t.getGroupedForPayeeEntityOptionsWithCOT(u,c??f,s.lineItemById[x]?.recommendationsWithCOT??[])},[pd]:d.lineEntity,[md]:d.recommendationsWithCOT??[]}}),transactionId:e,[xd]:s.vendorDetails!=null&&s.vendorDetails.id!=null?{id:s.vendorDetails.id,qboId:s.vendorDetails.qboId,name:s.vendorDetails.name}:void 0,[hd]:s.customerDetails!=null&&s.customerDetails.id!=null?{id:s.customerDetails.id,qboId:s.customerDetails.qboId,name:s.customerDetails.name}:void 0}},cu=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
- `,Ps={subSectionContainerLeftRightPadding:new t.ResponsiveSized(t.sp[3],t.sp[6],t.sp[8])},lu=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
- `,du=i.div`
1513
- display: flex;
1514
- flex-direction: column;
1515
- width: 100%;
1516
- `,uu=e=>{const{currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setResetJeAccountSettingsForm:u,expenseAutomationViewSelector:p,authParams:o,receiptUploadEndpoint:c,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,enableMonthEndInsightsZeniGPTFeature:h,monthEndInsightsPreviewMode:g,monthEndInsightsCustomerRequestData:f,allThreadsSectionOpen:R,loggedInUser:y,isCOTEnabled:E,setCurrentFooterFormId:j,onFetchRecommendationsForEntityCategorization:b,onFetchRecommendationsForEntityCategorizationWithCustomer:O,onTransactionCategorizationRowClick:L,onFetchMissingReceiptsList:M,onMissingReceiptsRowClick:w,onUploadReceiptAttachment:C,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onReconTabColumnSortConfigChanged:W,onReloadReconciliationListPage:T,onUpdateReconcileTabLocalData:Q,onUpdateMissingReceiptsUIState:_,onFetchTransactionCategorizationList:P,onUpdateTransactionCategorizationUIState:q,onUpdateScrollYOffSetTransactionCategorizationUIState:U,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:se,onJESchedulesFormDataChange:he,onPostJESchedule:J,setLocalDataForCategoryAndClass:ue,resetTransactionCategorizationLocalData:te,updateSelectedVendorForTransaction:v,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:H,improveMonthEndInsightsUsingZeniGPTClick:N,onRemoveFileAttachment:F,onUpdateFileAttachment:$,onCloseAllThreadsSection:G,onEditMonthEndInsightsClick:pe,previewMonthEndReport:D,saveMonthEndReport:ee,onOpenFileAttachmentSnackBar:ne,onCloseFileAttachmentSnackBar:K,onClickCustomerRequest:je,sendMonthEndReport:ve,markAsReview:S,onReloadPage:Z,onBackClick:de,updateOperatingExpensesIdsForReview:_e,updateSectionCollapseStatus:Me,onFetchReimbursementView:Ee,redirectToVendorDetailPage:we,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:Ue,fetchFluxViewOnScroll:ze,onFetchFluxViewList:He,setIsJeAccountSettingsOpened:ae,onReviewClicked:Ne,setOpenDrawerClicked:et,onEstablishConnectionClick:ut,onFetchLinkTokenClick:Je,updateReconReviewTabLocalData:pt,onReconReviewTabColumnSortConfigChanged:yt,onSaveReconciliation:St,onSaveReconciliationReview:mt,onReconMatchedTransactionClick:ge,onReconListPageScroll:X,onAddStatementClick:Se}=e,{currentSelectedView:ye,missingReceipts:Ke,transactionView:Ze,selectedPeriod:tt,monthEndInsights:ke,selectedTransactionCategorizationTab:Tt,reconciliation:$t}=p;switch(ye){case"transaction_categorization":return Ze.fetchState==="Completed"&&Ze.transactionLocalData.length===0?n.jsxRuntimeExports.jsx(dt,{tab:ye,title:Be(ye).allDoneText.title,subTitle:Be(ye).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(ru,{setCurrentFooterFormId:j,selectedPeriod:tt,selectedTab:Tt,sectionId:kt,transactionView:Ze,receiptUploadEndpoint:c,authParams:o,onUpdateTransactionCategorizationUIState:q,onUpdateScrollYOffSetTransactionCategorizationUIState:U,onFetchTransactionCategorizationList:P,onTransactionCategorizationRowClick:L,setLocalDataForCategoryAndClass:ue,resetTransactionCategorizationLocalData:te,updateSelectedVendorForTransaction:v,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:H,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onFetchRecommendationsForEntityCategorization:b,onFetchRecommendationsForEntityCategorizationWithCustomer:O,isCOTEnabled:E});case"je_schedules":return n.jsxRuntimeExports.jsx(wc,{setIsJeAccountSettingsOpened:ae,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:u,currentFooterFormId:s,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:a,setCurrentFooterFormId:j,handleJeScheduleClick:B,ignoreRecommendedJeSchedule:se,onJESchedulesFormDataChange:he,onPostJESchedule:J,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d});case"missing_receipts":return Ke.fetchState==="Completed"&&Ke.transactions.length===0?n.jsxRuntimeExports.jsx(dt,{tab:ye,title:Be(ye).allDoneText.title,subTitle:Be(ye).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(pl,{onUpdateMissingReceiptsUIState:_,onFetchMissingReceiptsList:M,missingReceipts:Ke,receiptUploadEndpoint:c,authParams:o,selectedPeriod:tt,onMissingReceiptsRowClick:w,onUploadReceiptComplete:I,onUploadReceiptFetchStatus:A,onUploadReceiptAttachment:C});case"month_end_insights":if(ke!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(ke.fetchState==="Not-Started"||ke.fetchState==="In-Progress"||ke.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||ke.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return n.jsxRuntimeExports.jsx(Ro.BusyIndication,{fetchState:"In-Progress"});{const Rt={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ke.companyName,url:window.location.href},{url:Wt,...re}=Rt,Ce={...re};return n.jsxRuntimeExports.jsx(du,{children:n.jsxRuntimeExports.jsx(Fl,{allThreadsSectionOpen:R,customerRequestData:f,companyId:r,enableZeniGPTFeature:h,filterMetaData:Ce,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:N,isZeniUser:y.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ke,newThreadMetadata:Rt,onClickCustomerRequest:je,onCloseAllThreadsSection:G,onCloseFileAttachmentSnackBar:K,onOpenFileAttachmentSnackBar:ne,onRemoveFileAttachment:F,onUpdateFileAttachment:$,previewMode:g,previewMonthEndReport:D,saveMonthEndReport:ee,onEditClick:pe,sendMonthEndReport:ve})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?n.jsxRuntimeExports.jsx(dt,{tab:ye,title:Be(ye).allDoneText.title,subTitle:Be(ye).allDoneText.subTitle}):n.jsxRuntimeExports.jsx(tc,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:S,onReloadPage:Z,onBackClick:de,updateOperatingExpensesIdsForReview:_e,updateSectionIdsForReview:me,onUpdateFluxAnalysisUIState:Ue,setCurrentFooterFormId:j,fetchFluxViewOnScroll:ze,onFetchFluxViewList:He,updateSectionCollapseStatus:Me,onFetchReimbursementView:Ee,redirectToVendorDetailPage:we});case"reconciliation":return n.jsxRuntimeExports.jsx(Pa,{onReconListPageScroll:X,onReloadReconciliationListPage:T,currentFooterFormId:s,reconciliation:$t,companyId:r,vendorSearchAutoCompleteActions:x,vendorSearchAutoCompleteData:d,onReviewClicked:Ne,setOpenDrawerClicked:et,setCurrentFooterFormId:j,onReconTabColumnSortConfigChanged:W,onUpdateReconcileTabLocalData:Q,onEstablishConnectionClick:ut,onFetchLinkTokenClick:Je,updateReconReviewTabLocalData:pt,onReconReviewTabColumnSortConfigChanged:yt,onSaveReconciliation:St,onSaveReconciliationReview:mt,onReconMatchedTransactionClick:ge,onAddStatementClick:Se});default:return n.jsxRuntimeExports.jsx(dt,{tab:ye,title:Be(ye).allDoneText.title,subTitle:Be(ye).allDoneText.subTitle})}};function pu(e){const s=t.useWindowSizeContext(),{currentSelectedView:l}=e.expenseAutomationViewSelector,a=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",u=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return n.jsxRuntimeExports.jsx(lu,{windowSize:s,style:{...u===!0?{paddingLeft:Ps.subSectionContainerLeftRightPadding.value(s),paddingRight:Ps.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(uu,{...e})})}const mu=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"})),xu=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"})),hu=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
- `,gu=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
- `,Fs=i(t.SvgArrowTailRight)`
1537
- height: ${t.Space.sp3};
1538
- width: ${t.Space.sp3};
1539
- cursor: pointer;
1540
- color: inherit;
1541
- `,zs=i(mu)`
1542
- height: ${t.Space.sp3};
1543
- width: ${t.Space.sp3};
1544
- cursor: pointer;
1545
- color: inherit;
1546
- `,{common:{footer:Te,texts:{maxLimitReached:ju,confirmAction:fu},headers:yu,create:Su,strings:Ft,texts:Nt,cancel:Ru,confirm:Cu,monthsByIndex:Eu},dateFormat:{visual:{MMMDCommaYYYYformat:Hs}},expenseAutomation:zt}=t.appLocale.getLocalizedStrings(),vu=e=>{const{expenseAutomationViewSelector:s,isDisabled:l,isRealtimeInsightsFeatureEnabled:a,isUncategorizedExpenseCategoryEnabled:u,isCOTEnabled:p,onUpdateTab:o,onReconTabUpdate:c,onUpdateStep:r,onSearchTextChanged:x,onRefresh:d,onClose:h,onBack:g,resetTransactionCategorizationLocalData:f,updateOperatingExpensesIdsForReview:R,clearJeScheduleLocalData:y,onSaveReconciliation:E}=e,{currentSelectedView:j,allSteps:b,missingReceipts:O,jeSchedules:L,fluxAnalysis:M,monthEndInsights:w,transactionView:C,selectedTransactionCategorizationTab:I,reconciliation:A,selectedPeriod:W}=s,[T,Q]=m.useState("expenseAutomationPage"),[_,P]=m.useState(()=>{}),[q,U]=m.useState(!1),B=t.useWindowSizeContext(),se=!!e.loggedInUser.userEmail?.includes("zeni.ai"),he=se?t.ThreadsContext:t.NonZeniUsersThreadsContext,{openThread:J,setOpenThread:ue}=m.useContext(he),[te,v]=m.useState(!1),[z,H]=m.useState(!1),N=b.find(ge=>ge.step===j),{nextStep:F,previousStep:$}=fo(b,j),{uiState:{searchString:G,pageToken:pe},totalCountByTab:D,transactions:ee,fetchStateByTransactionTabs:ne,transactionLocalData:K}=C,{selectedReconAccount:je,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ve}}}}=A;let S="Not-Started",Z="complete";switch(j){case"missing_receipts":S=O.refreshStatus.fetchState,Z=O.completionStatus;break;case"je_schedules":S=L.refreshStatus.fetchState,Z=L.completionStatus;break;case"month_end_insights":w!=null&&(S=w?.fetchState);break;case"flux_analysis":S=M.refreshStatus.fetchState,Z=M.completionStatus;break;case"transaction_categorization":S=C.refreshStatus.fetchState,Z=C.completionStatus;break;case"reconciliation":je==null?(S=A.refreshStatus.fetchState,Z=A.completionStatus):(S=A.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",Z=A.completionStatus)}const de=()=>{_()},{saveStatus:_e,selectedCheckBoxTransactionIds:Me}=C,Ee=()=>{const ge=io(s.fluxAnalysis.sections,s.fluxAnalysis.reviewOperatingExpensesIds),X=V.dateNow(),{month:Se,year:ye}=W,Ze=V.dateNow().set("month",Se-1).set("year",ye).endOf("month");switch(T){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ge===!0?Te.markAsReviewed:Nt.undo,style:{justifyContent:"space-evenly"},isLoading:s.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:En(s.fluxAnalysis.reviewOperatingExpensesIds.length,Ae.FLUX_MAX_SELECTION_LIMIT,B,Nt.vendor,j),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{R([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:_e.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:En(Me.length,V.MAX_SELECTION_LIMIT,B,Nt.transaction,j),cancelBtn:{label:Te.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{f(I,ee.map(tt=>tt.id),W,!1,D[I],V.getLineItemsByTransactionIdsFromLocalData(K,I),u,pe)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.next,style:{justifyContent:"space-evenly"},isDisabled:l||N?.isNextDisabled,suffixIcon:n.jsxRuntimeExports.jsx(Fs,{}),onClick:()=>{r(F.step)}},cancelBtn:{label:Te.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(zs,{}),onClick:()=>{r($.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Te.reconcile,backBtnLabel:Te.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.reconcile,onClick:()=>{E({reconcileAction:"reconcile"})},isDisabled:!(A.reconciliationTabsState.balances.variance.amount===0&&X.isAfter(Ze)),isLoading:A.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:En(ve.length,1/0,B,Nt.transaction,j),cancelBtn:{onClick:()=>{E({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:A.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Te.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Te.save,backBtnLabel:Te.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Te.save,isLoading:L.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>de(),label:Te.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const tt=j==="reconciliation"&&s.reconciliation.selectedTab==="review"&&s.reconciliation.selectedAccountId!=null,ke=j==="reconciliation"&&s.reconciliation.selectedAccountId==null,Tt=j==="reconciliation"&&s.reconciliation.selectedTab==="reconcile"&&s.reconciliation.selectedAccountId!=null,$t=F.step==="month_end_insights"&&(j==="flux_analysis"&&(s.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||s.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||ke),Rt=j==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="review",Wt=j==="transaction_categorization"&&s.selectedTransactionCategorizationTab==="autoCategorized",re=s.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(a||N?.isNextDisabled===!1),Ce=F.step==="month_end_insights"&&(ke||j==="flux_analysis")?!re:N?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Te.next,backBtnLabel:Te.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:$t===!0?bu(s.selectedPeriod.month):Te.next,style:{justifyContent:"space-evenly"},isDisabled:Ce,suffixIcon:n.jsxRuntimeExports.jsx(Fs,{}),onClick:()=>{Rt?o("autoCategorized"):tt?c("reconcile"):r(F.step)}},cancelBtn:{label:Te.back,isDisabled:l||N?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:n.jsxRuntimeExports.jsx(zs,{}),onClick:()=>{Wt?o("review"):Tt?c("review"):tt?g():r($.step)}}}}}},we=()=>{switch(T){case"expenseAutomationFluxPage":return{confirmAction:()=>{v(!1),R([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{v(!1),f(I,ee.map(ge=>ge.id),W,!1,D[I],V.getLineItemsByTransactionIdsFromLocalData(K,I),u,pe),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{v(!1),y(),h()}};default:return{confirmAction:()=>{v(!1)},confirmationDescription:Ft.empty}}},me=()=>{T==="expenseAutomationFluxPage"||T==="expenseAutomationJESchedulePage"||T==="expenseAutomationTransactionsPage"?v(!0):h()},{primaryBtn:Ue,cancelBtn:ze,leftSideComponent:He}=Ee(),{confirmAction:ae}=we(),Ne=ge=>{if(j==="transaction_categorization"&&(ge==="autoCategorized"||ge==="review"))return{hideCountInTab:D[ge]>zt.common.numbers.maximumCount,count:D[ge],isFetching:ne[ge].fetchState==="In-Progress"};if(j==="reconciliation"){const{reconciliation:X}=s,{selectedAccountId:Se}=X;return Se==null?{count:0,isFetching:!1}:ge==="review"?{count:X.accountReconciliationsByAccountID[Se]?.accountReconEntity?.transactionsToReview.length,isFetching:X.accountReconciliationsByAccountID[Se]?.transactionFetchState.fetchState==="In-Progress"}:{count:X.accountReconciliationsByAccountID[Se]?.accountReconEntity?.transactionsToReconcile.length,isFetching:X.accountReconciliationsByAccountID[Se]?.transactionFetchState.fetchState==="In-Progress"}}},et=j==="reconciliation"&&A.selectedAccountId!=null&&A.selectedReconAccount!=null,{month:ut,year:Je}=W,pt=V.dateNow().set("month",ut-1).set("year",Je),yt=pt.startOf("month").format(Hs),St=pt.endOf("month").format(Hs),mt=`${yt} ${Ft.hyphen} ${St}`;return n.jsxRuntimeExports.jsxs(hu,{children:[te?n.jsxRuntimeExports.jsx(t.ConfirmationPopup,{containerStyle:{width:356},titleComponent:n.jsxRuntimeExports.jsx(So,{children:fu}),primaryButtonText:Cu,secondaryButtonText:Ru,proceedButtonVariant:"danger",action:{onOkClick:()=>{ae()},onCancelClick:()=>v(!1)},descriptionComponent:n.jsxRuntimeExports.jsx(Lu,{children:zt.confirmationDescription})}):null,n.jsxRuntimeExports.jsxs(gu,{children:[n.jsxRuntimeExports.jsx(si,{onBack:g,navBarCustomElement:j==="reconciliation"&&A.selectedAccountId!=null?n.jsxRuntimeExports.jsx(wu,{reconciliation:A}):void 0,onReconTabUpdate:c,currentRecontab:A.selectedTab,reconcileDetailPageFetchState:A.selectedAccountId!=null?A.accountReconciliationsByAccountID[A.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:et?A.selectedAccountId:void 0,currentSelectedView:j,titleStyle:{justifyContent:"center",marginLeft:t.Space.sp0},headerData:Be(j,D.autoCategorized,et?A.selectedAccountId:void 0,et?A.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,et?mt:void 0),searchText:G,currentTab:I,getTabCountAndFetchState:Ne,completionStatus:Z,forceShowSubtitle:q===!0||j==="je_schedules"&&(L.fetchState==="In-Progress"||L.accountSettingsView.fetchState==="In-Progress"),refreshStatus:S,companyId:e.companyId,companyName:s.monthEndInsights?.companyName??Ft.empty,isZeniUser:se,onAllThreadsClick:()=>{J!=null&&ue(null),H(!0)},onUpdateTab:o,onSearchTextChanged:x,onRefresh:d,onClose:me}),n.jsxRuntimeExports.jsx(pu,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:U,setResetJeAccountSettingsForm:P,allThreadsSectionOpen:z,setCurrentFooterFormId:Q,currentFooterFormId:T,onCloseAllThreadsSection:()=>H(!1)}),n.jsxRuntimeExports.jsx(t.ControlledComponent,{controller:j!=="month_end_insights",children:n.jsxRuntimeExports.jsx(t.Footer,{style:{width:"-webkit-fill-available",maxHeight:t.sp[8]},formId:yo(T),primaryBtn:Ue,leftSideComponent:He,cancelBtn:ze,separatorStyle:{marginRight:t.Space.sp4}})})]})]})},wu=({reconciliation:e})=>{const s=n.useTheme(),{clearedBalance:l,variance:a,variancePercentage:u,deposits:p,payments:o}=e.reconciliationTabsState.balances,{balance:c}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:x}=r??{};return n.jsxRuntimeExports.jsx(Au,{children:n.jsxRuntimeExports.jsxs(Ou,{children:[n.jsxRuntimeExports.jsxs(vn,{style:{justifyContent:"flex-end",width:"50%"},children:[n.jsxRuntimeExports.jsx(wn,{children:n.jsxRuntimeExports.jsx(Du,{})}),n.jsxRuntimeExports.jsx(bn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(Tn,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(kn,{children:t.amountToString("0,0.00",c)}),n.jsxRuntimeExports.jsx(In,{children:zt.accountRecon.reconciliation.headers.bankBalance})]})})]}),n.jsxRuntimeExports.jsxs(vn,{children:[n.jsxRuntimeExports.jsx(wn,{children:n.jsxRuntimeExports.jsx(Mu,{})}),n.jsxRuntimeExports.jsx(bn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(Tn,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(kn,{children:t.amountToString("0,0.00",l)}),n.jsxRuntimeExports.jsxs(Nu,{children:[n.jsxRuntimeExports.jsx(In,{children:zt.accountRecon.reconciliation.headers.clearedBalance}),n.jsxRuntimeExports.jsx(t.Tooltip,{placement:"bottom",title:n.jsxRuntimeExports.jsxs(Pu,{children:[n.jsxRuntimeExports.jsxs(Ws,{children:[n.jsxRuntimeExports.jsxs(Vs,{children:[o.count," ",Nt.payments]}),n.jsxRuntimeExports.jsx(qs,{children:t.amountToString("0,0.[00]",o.totalAmount)})]}),n.jsxRuntimeExports.jsxs(Ws,{children:[n.jsxRuntimeExports.jsxs(Vs,{children:[p.count," ",Nt.deposits]}),n.jsxRuntimeExports.jsx(qs,{children:t.amountToString("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:n.jsxRuntimeExports.jsx(Bu,{})})]})]})})]}),n.jsxRuntimeExports.jsxs(vn,{style:{justifyContent:"flex-start",width:"50%"},children:[n.jsxRuntimeExports.jsx(wn,{children:n.jsxRuntimeExports.jsx(_u,{})}),n.jsxRuntimeExports.jsx(bn,{children:x?.fetchState==="In-Progress"?n.jsxRuntimeExports.jsxs(Tn,{children:[n.jsxRuntimeExports.jsx(Mt,{height:25,width:120}),n.jsxRuntimeExports.jsx(Mt,{height:19,width:120})]}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(kn,{children:[n.jsxRuntimeExports.jsx("span",{style:{color:a.amount===0?s.colors.brandColorJadeDark:s.colors.primary},children:t.amountToString("0,0.00",a)}),u!=null&&a.amount!==0?n.jsxRuntimeExports.jsx("span",{style:{color:s.colors.primary,marginLeft:2},children:`(${u.toFixed(2)}%)`}):null]}),n.jsxRuntimeExports.jsx(In,{children:zt.accountRecon.reconciliation.headers.variance})]})})]})]})})},En=(e,s,l,a,u)=>{const p=a,o=(e>1?p+"s":p)+" selected";return e>0?n.jsxRuntimeExports.jsxs(Iu,{currentView:u,style:l==="small"?{position:"absolute",top:t.Space.sp2,left:`-${t.Space.sp5}`}:{},children:[n.jsxRuntimeExports.jsx(ku,{multiDigit:e>=5,children:e}),n.jsxRuntimeExports.jsx(Tu,{children:o}),e===s?n.jsxRuntimeExports.jsx($u,{children:`(${ju})`}):null]}):null},bu=e=>{const s=Eu[e];return`${Su}${Ft.space}${s}${Ft.space}${yu.insights}`};function fo(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,u=(l-1+e.length)%e.length,p=e[a],o=e[u];return{nextStep:p,previousStep:o}}const yo=e=>`${e}_form`,Iu=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
- `,ku=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
- `,Tu=i(t.StandardRegular)`
1562
- color: ${e=>e.theme.colors.primary};
1563
- `,$u=i(t.SmallRegular)`
1564
- color: ${t.Colors.important};
1565
- `,So=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
- `,Lu=i(t.ConfirmationPopUpDescription)`
1572
- color: ${e=>e.theme.colors.primary};
1573
- margin-top: ${t.Space.sp2};
1574
- margin-bottom: ${t.Space.sp2};
1575
- `,Au=i.div`
1576
- display: flex;
1577
- justify-content: center;
1578
- align-items: center;
1579
- padding: ${t.Space.sp3} ${t.Space.sp0};
1580
- `,Ou=i.div`
1581
- width: 100%;
1582
- display: flex;
1583
- justify-content: center;
1584
- align-items: center;
1585
- gap: ${t.Space.sp1};
1586
- `,vn=i.div`
1587
- display: flex;
1588
- justify-content: center;
1589
- align-items: center;
1590
- gap: ${t.Space.sp3};
1591
- `,wn=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
- `,bn=i.div`
1600
- display: flex;
1601
- flex-direction: column;
1602
- `,In=i(t.SmallRegular)`
1603
- color: ${e=>e.theme.colors.hero};
1604
- `,kn=i(t.LargeSemiBold)`
1605
- min-width: 180px;
1606
- color: ${e=>e.theme.colors.primary};
1607
- `,Du=i(t.SvgBankBuilding)`
1608
- color: ${e=>e.theme.colors.primary};
1609
- width: ${t.Space.sp4};
1610
- height: ${t.Space.sp4};
1611
- `,_u=i(t.SvgCalculator)`
1612
- color: ${e=>e.theme.colors.primary};
1613
- width: ${t.Space.sp4};
1614
- height: ${t.Space.sp4};
1615
- `,Mu=i(xu)`
1616
- color: ${e=>e.theme.colors.primary};
1617
- width: ${t.Space.sp4};
1618
- height: ${t.Space.sp4};
1619
- `,Bu=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
- `,Nu=i.div`
1627
- display: flex;
1628
- align-items: center;
1629
- gap: ${t.Space.sp1};
1630
- `,Pu=i.div`
1631
- background-color: ${t.Colors.overlayDark};
1632
- padding: 2px ${t.Space.sp2};
1633
- border-radius: ${t.Space.sp1};
1634
- `,Ws=i.div`
1635
- display: flex;
1636
- justify-content: space-between;
1637
- gap: ${t.Space.sp2};
1638
- `,Vs=i.div`
1639
- text-transform: capitalize;
1640
- `,qs=i(t.SmallRegular)`
1641
- color: ${t.Colors.primaryDark};
1642
- align-self: "flex-end";
1643
- `,Mt=i(t.RectangularContentLoader)`
1644
- border-radius: ${t.Space.sp2};
1645
- `,Tn=i.div`
1646
- display: flex;
1647
- flex-direction: column;
1648
- min-width: 180px;
1649
- gap: ${t.Space.sp1};
1650
- `;exports.ConfirmationPopUpTitle=So;exports.default=vu;exports.getNextAndPreviousSteps=fo;exports.uniqueFormName=yo;