@zeniai/web-cockpit-ui 1.14.83-dev → 1.14.84-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (488) hide show
  1. package/dist/assets/ACHDetailsPage-BXgsd50c-BuCiUEId.js +21 -0
  2. package/dist/assets/AIPerformancePage-BdDTidCL-D-IQ6p36.js +539 -0
  3. package/dist/assets/AccountInfoPage-w0STaK9a-BfMIBiEJ.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CsuUhHXU-DgiU-I5H.js +149 -0
  5. package/dist/assets/AccountLockedInfoModal-iYb31wv7-CEyp2zKM.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-DmkLTIkW-DxChexc_.js +239 -0
  7. package/dist/assets/AccountRow-BObEIy6l-CsCw-i7a.js +298 -0
  8. package/dist/assets/AccountsPromoCardStack-B8gJFsYh-DpzT8FNB.js +207 -0
  9. package/dist/assets/AddAddressForCardDrawer-vOgzMYWA-Bo72mQ01.js +6 -0
  10. package/dist/assets/AddToWalletPage-BhphXgem-DR4-yAJW.js +344 -0
  11. package/dist/assets/AgingReportsPage-DEgupWct-SJsZmYxE.js +79 -0
  12. package/dist/assets/AllUserItems-S2DAZpO6-Zcx2jN6k.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-CvDD8-s7-k2W-N5me.js +46 -0
  14. package/dist/assets/AppBasePage-C4z5I-xG-vGdvNBYI.js +71 -0
  15. package/dist/assets/AppDrawerContent-Dka5HlPs-BfBKKeHh.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-DykJvECT.js +47 -0
  17. package/dist/assets/ArAgingChart-CJ7XKU9h-BSixtgVA.js +24 -0
  18. package/dist/assets/ArAgingDetailPage-ZjaiAH-C-DY8qSTjK.js +46 -0
  19. package/dist/assets/AttachmentView-Dg6PizI7-BzoqKbZ4.js +101 -0
  20. package/dist/assets/BankAccountSection-Chay7X-G-vPiVizDl.js +79 -0
  21. package/dist/assets/BankAccountWarningSection-CSChi1lw-BVD5BCv3.js +51 -0
  22. package/dist/assets/BankConnectionsSettingsPage-DJV7q1Kp-DcUIdQZo.js +425 -0
  23. package/dist/assets/BillDetailPage-DM06uZnD-BOk9lw2_.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-MsPIxgUt-r4h6U7BK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BhDdco2x-B1oZ9jjD.js} +27 -27
  26. package/dist/assets/BillPayPromoPage-Dy-opG76-CZ2iWLB7.js +84 -0
  27. package/dist/assets/BillPaySetUpPage-DUvwWlaD-Bg_qNGFx.js +42 -0
  28. package/dist/assets/BillingSettingsPage-wj_sIJgc-Dy0iglvP.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-DbC84oxR-CV4aNHIq.js +1 -0
  30. package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-CdqDzfZN-BxmSstzM.js} +2 -2
  31. package/dist/assets/BusinessVerificationPage-BMtHNNcG-CKxF3KMp.js +138 -0
  32. package/dist/assets/CardNumberSubText-lh7fQJis-CKFkz1Hy.js +21 -0
  33. package/dist/assets/CashbackDetailPage-KRbsYA09-DzsJTodf.js +285 -0
  34. package/dist/assets/ChargeCardDetailPage--WP6KTfb-BgNGsK6v.js +1462 -0
  35. package/dist/assets/ChargeCardListPage-knAPmob6-CgVyQmJQ.js +412 -0
  36. package/dist/assets/ChargeCardListTable-DsfnKX3P-D0-TBhcC.js +711 -0
  37. package/dist/assets/ChargeCardPromoPage-C9610LtW-GRwSeJ82.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-Cy4JhjJW-BnQWcnli.js +36 -0
  39. package/dist/assets/ChargeCardStatementsPage-C7uS1jEO-7cO1LhgS.js +60 -0
  40. package/dist/assets/CheckDepositDrawerPage-TfiJwtqN-CwfCisTT.js +206 -0
  41. package/dist/assets/CollapsableReportTable-NYu8Bq-g-CCeLwwka.js +2844 -0
  42. package/dist/assets/CompanyOfficerDetailsSection-CiVliExW-DzmWuQm0.js +260 -0
  43. package/dist/assets/CompanyPassportCard-8zvCdmxt-CxjPiS1u.js +42 -0
  44. package/dist/assets/CompanyPassportPage-AS4N7oT2-Bv10VeId.js +574 -0
  45. package/dist/assets/CompleteProfile-Dj080UdJ-B2qMa6vk.js +52 -0
  46. package/dist/assets/ConfettiBurst-DcCUSSaX-yciACYT1.js +1 -0
  47. package/dist/assets/CreateOrEditVendorPage-flCFtC2N-Dsf2hlMT.js +281 -0
  48. package/dist/assets/CreditCardPaymentDrawerPage-BKvqMwnt-BuHB8ode.js +224 -0
  49. package/dist/assets/CurrencySelectField-ksMvik33-CjY_Sqhm.js +139 -0
  50. package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DfT_gkE4-Dk7tFjjw.js} +12 -12
  51. package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO-ah6dg727.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DfOtXgss-1gud75px.js} +26 -26
  53. package/dist/assets/CustomerOnboardingNoStepsPage-61UorFvn-DF0b8zE7.js +66 -0
  54. package/dist/assets/CustomerOnboardingPage-C12XXjv0-mi5gJ6u3.js +107 -0
  55. package/dist/assets/CustomerOnboardingProductSuitePage-CTowHB2X-DUFAd8wB.js +202 -0
  56. package/dist/assets/Dashboard-2RpETnqH-Dgva4ZAW.js +1551 -0
  57. package/dist/assets/DashboardReportPage-DRRWpGiJ-Z6RP-3ZH.js +371 -0
  58. package/dist/assets/DashboardSidebarBackgroundAnimation-0cCKM3E9-DV5Ukn4W.js +12 -0
  59. package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-DjbheijR-B7o468tr.js} +11 -11
  60. package/dist/assets/DepositAccTransactionListPage-keSFBKDU-qnysSla9.js +66 -0
  61. package/dist/assets/DomesticWireDetailsPage-DuKrVIAL-BzRIhYO3.js +21 -0
  62. package/dist/assets/DownloadOverlay-f6SOW8iK-DORigjXi.js +439 -0
  63. package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BkIQ6mLJ-DU9u6eQ0.js} +21 -21
  64. package/dist/assets/EditPeoplePage-lZcM4Zfw-CzhpHcfF.js +55 -0
  65. package/dist/assets/EditReimbursementDetailPage-WO3U-vVY-CTjbkhIP.js +865 -0
  66. package/dist/assets/EntityDetailPage-AP27Niqu-DwUEbyHL.js +18 -0
  67. package/dist/assets/EntitySummarySection-B6khdAJg-7W3j7WRI.js +149 -0
  68. package/dist/assets/ExpenseAutomationOverviewPage-CcTGou9x-D6xWlI6r.js +281 -0
  69. package/dist/assets/ExpenseAutomationPage-DEleaYKs-SFko_-SO.js +1650 -0
  70. package/dist/assets/ExpressPayPage-CLYzefaM-CHfIN-TO.js +168 -0
  71. package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-T78A34---Cfgg_jhN.js} +4 -4
  72. package/dist/assets/FollowStepsSection-B_mTbqHf-CcoWV2SW.js +390 -0
  73. package/dist/assets/GlobalReviewListPage-XfxDC9vP-Bi-7QMiL.js +291 -0
  74. package/dist/assets/InformationCardStack-Buibt8cT-DzjFUhjp.js +31 -0
  75. package/dist/assets/InsightsCardStack-Cj5iIm_T-CnLFxYVI.js +79 -0
  76. package/dist/assets/InsightsSection-DuPqQb5Z-C8m7clcN.js +27 -0
  77. package/dist/assets/IntegrationsSettingsPage-VZDSLMHK--2kEd_Ab.js +57 -0
  78. package/dist/assets/InternationalWireSwiftDetailsPage-BUa1svL--BjPRjytS.js +171 -0
  79. package/dist/assets/InternationalWireVerificationPage-C1qKNhqJ-D8-rYzvp.js +292 -0
  80. package/dist/assets/InviteFormPage-GPXu2hLn-Dlxczoo1.js +312 -0
  81. package/dist/assets/InvitePageListView-FEFeEFZJ-fGYpyL6r.js +739 -0
  82. package/dist/assets/InvitePeoplePage-C6E594rf-DZBpEScz.js +12 -0
  83. package/dist/assets/InvoiceUploadSection-uvB-_dyl-BnrUYuvf.js +140 -0
  84. package/dist/assets/IssueChargeCardPage-DSPlu840-3aXsgWJG.js +532 -0
  85. package/dist/assets/LabeledAddressValue-CzDn9ZY4-bnEz1Jxt.js +49 -0
  86. package/dist/assets/LabeledAddressValueField-C_8kPzjy-5OUHMeqd.js +45 -0
  87. package/dist/assets/LabeledControlledCheckBoxField-LwfkGeF--D4JaYe7v.js +16 -0
  88. package/dist/assets/LabeledCreatableSingleSelectField-sEf-9BOE-pPbJFdXC.js +204 -0
  89. package/dist/assets/LabeledDocumentField-rGzXpShn-Cfh7MC5-.js +41 -0
  90. package/dist/assets/LabeledDropDownFormattedTextField-CIQk7Jhu-BODJHkfO.js +59 -0
  91. package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-Dc-697nR-dyJ4TshB.js} +10 -10
  92. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-CLizobZu.js +229 -0
  93. package/dist/assets/LabeledZeniRolesDropDownField-BO8f1yqV-POb2k_D_.js +297 -0
  94. package/dist/assets/LinkJETransactionPage-DDSo8zJn-CupLOAYQ.js +98 -0
  95. package/dist/assets/LockCardPage-CvZcUUc8-B6VLJ-gr.js +623 -0
  96. package/dist/assets/LowBalancePopup-DJQCz0Ed-B8IDUNee.js +34 -0
  97. package/dist/assets/MagicLinkACHDetailsPage-CEtaoWk8-CST49L9m.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-qdgMQR3_-DWvT9O1j.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNwtPZ-u-Bk0G3IwE.js +1 -0
  100. package/dist/assets/MagicLinkSuccessPage-60TBVrSw-CKgQ4p6j.js +31 -0
  101. package/dist/assets/MagicLinkTitleSection-D2fXbnDV-CA6SEdmn.js +17 -0
  102. package/dist/assets/MailingDetailsSection-C6cVooC3-CCSD5vtq.js +21 -0
  103. package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-D_6Dje0H-Ar5SwcnV.js} +4 -4
  104. package/dist/assets/MyBankConnectionsSettingsPage-D2EPH9WZ-DhQP4OT2.js +110 -0
  105. package/dist/assets/MyPendingActivationChargeCardListPage-Bidsd2bk-DJBBvD6g.js +6 -0
  106. package/dist/assets/MyProfileSettingsPage-BH2ZVQTk-DMG3qFrn.js +85 -0
  107. package/dist/assets/NavBarWithPicker-Cg2TZjBi-DZVc5NBz.js +30 -0
  108. package/dist/assets/NavigationArrow-CYserS2B-DdYPXfvg.js +47 -0
  109. package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-CT_oO_7z-Bt9KzB5Z.js} +3 -3
  110. package/dist/assets/NewGlobalMerchantPage-D3MQU5Sh-BUpZMSnV.js +160 -0
  111. package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-BItQZAQ9-a5HKjWqu.js} +5 -5
  112. package/dist/assets/NoDataTable-R8OCdB2c-cDhvp6Rg.js +8 -0
  113. package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DLHYdRdN-xXzpa00n.js} +9 -9
  114. package/dist/assets/NotificationSettingsPage-CIwxb6c9-FsYdgXX7.js +163 -0
  115. package/dist/assets/NotificationsListConfig-DSgUS0hE-mwmsOI0p.js +1 -0
  116. package/dist/assets/NotificationsPage-W5ZhprRe-DZn-eWsJ.js +685 -0
  117. package/dist/assets/OpExByVendorPage-DIi58wXa-nKCVWs3g.js +100 -0
  118. package/dist/assets/OverlayContainerPage-BsY9_22w-CFGZ7LWs.js +11 -0
  119. package/dist/assets/PandLWithForecastPage-BvMxFrqo-D4f9n7Zm.js +107 -0
  120. package/dist/assets/PaymentAccountSetupBillingAddressSection-kUAm-v-A-BSna9XIu.js +107 -0
  121. package/dist/assets/PeoplePage-CtnWc0LE-B3_lhERY.js +675 -0
  122. package/dist/assets/Preview-Bnbo8Nq1.js +1 -0
  123. package/dist/assets/ProductsCarousel-n0ZNrr7--DQIbkMZp.js +142 -0
  124. package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-CeS0HoCZ-CICve0tH.js} +25 -25
  125. package/dist/assets/QBOConnectionDialog-BxSTc99Z-DVq4lO-s.js +51 -0
  126. package/dist/assets/QBOSetupSection-FrO9rgct-B0n-bnvz.js +79 -0
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-BjtdatXs-DvpYlYpI.js +26 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-B0_FgpJf-BSGUtiNs.js +237 -0
  129. package/dist/assets/ReimbursementDetailPage-BWhPxHY--DgkbtFUt.js +314 -0
  130. package/dist/assets/ReimbursementPromoPage-CFG0yxOE-CNHt16Bv.js +84 -0
  131. package/dist/assets/ReimbursementSetUpPage-BmUdLEa9-uEaDyTyL.js +140 -0
  132. package/dist/assets/ReimbursementsBulkReviewDrawerPage-CkJqhXEf-B4qPeVNR.js +1 -0
  133. package/dist/assets/ReloadCard-CNKwqjPJ-C6w7GHJG.js +26 -0
  134. package/dist/assets/ReportTableViewSelector-B0DXgLgJ-B3X9gS-3.js +150 -0
  135. package/dist/assets/ReportsPage-C5iOQU55-DamkEztw.js +121 -0
  136. package/dist/assets/RevenueChart-C2CMFAQ--BirLMW85.js +280 -0
  137. package/dist/assets/ReviewDetailsPage-5vOZ0rd7-B41AzmWH.js +290 -0
  138. package/dist/assets/ReviewOverlay-BAG_6iyV-B2w-MEIV.js +152 -0
  139. package/dist/assets/RoleWithToolTip-GUYLjJwW-DVSFtUus.js +22 -0
  140. package/dist/assets/ScheduleDetailsFixedAssetsPage-sPjMfOtt-m5JvZNFh.js +37 -0
  141. package/dist/assets/ScheduleDetailsPage-DI4C0o6b-B7Dooc-N.js +37 -0
  142. package/dist/assets/ScheduleSequenceTable-DhXwtG-x-C20E6-vV.js +324 -0
  143. package/dist/assets/ScreenRoutes-B_yySVlk.js +201 -0
  144. package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DOavnCkG-CmcaONdQ.js} +87 -87
  145. package/dist/assets/SignIn-DqrG5nEJ-8MVRrbiA.js +448 -0
  146. package/dist/assets/SignInScreen-CSh4OzXN.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-DHY_hZQm-C3jihmoK.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-CoKTIQ2b-D2j2J6zW.js +754 -0
  149. package/dist/assets/SpendManagementSection-UkTY6qX0-CST6kY6m.js +230 -0
  150. package/dist/assets/StatementItem-Bx6mxa3U-C42zKfqY.js +31 -0
  151. package/dist/assets/StatementsPage-ULjFE30P-BGU6QX6B.js +58 -0
  152. package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-DlBY_FC1-C1Bsm00T.js} +8 -8
  153. package/dist/assets/SubTabSwitcher-DjEElTWE-5Wo1Obau.js +58 -0
  154. package/dist/assets/SummaryCard-BNESDUnN-ChwTCNZM.js +1 -0
  155. package/dist/assets/TaskManagementPage-BFF3ATPV-BYvPz4hv.js +508 -0
  156. package/dist/assets/TimeRangeSwitcher-xILz-EO6-DqqNb5IN.js +64 -0
  157. package/dist/assets/TimeframeSwitcher-CZhQm7rH-D5h04PEF.js +31 -0
  158. package/dist/assets/TimeframeSwitcherWithToggle-CduB3ZjN-PiqhKHhY.js +31 -0
  159. package/dist/assets/TopExCard-C_HWsAL1-DphCzqA5.js +38 -0
  160. package/dist/assets/TopExDetailPage-BEKo6juU-CUrrRqCk.js +132 -0
  161. package/dist/assets/TransactionDetailPage-Bzgtmi3U-DCXvClem.js +912 -0
  162. package/dist/assets/TransactionList-Dw78Q0Sx-BHAN7axA.js +147 -0
  163. package/dist/assets/TransactionListBig-BofakL17-k36ZTqo_.js +284 -0
  164. package/dist/assets/TransactionListPage-tpOg0ax5-aeL9weeE.js +35 -0
  165. package/dist/assets/TransactionVendorDetailPage-BqIcXz6b-tGgvKqD0.js +80 -0
  166. package/dist/assets/TransferDrawerPage-DnnZBOyK-y1PDtTFY.js +362 -0
  167. package/dist/assets/TreasuryOverviewPage-C9ROzNHl-Cn6eazlN.js +708 -0
  168. package/dist/assets/TreasuryPromoPage--j_2YjQn-DHIwXCO0.js +505 -0
  169. package/dist/assets/TreasuryStatementsPage-BLrceDQm-vMicHzmk.js +58 -0
  170. package/dist/assets/TreasuryTaxLetterPage-BoqkgdLm-DAQeQUTC.js +58 -0
  171. package/dist/assets/TrendChart-KnFi8NXQ-DHzaDtQY.js +16 -0
  172. package/dist/assets/TrendWithTransactions-C_T0I9xe-DqS7m8LH.js +116 -0
  173. package/dist/assets/UncategorizedAccountsMappingPage-DOuzy2aS-DnfCgWVE.js +244 -0
  174. package/dist/assets/UnitIntegrationPage-DxhlNHvt-CHN5Qw88.js +67 -0
  175. package/dist/assets/UploadAdditionalDocumentOverlay-BAvSyhDW-D4KE1Kke.js +38 -0
  176. package/dist/assets/Vendor2FAPopup-BFjVFON8-Dl6jzAdP.js +1 -0
  177. package/dist/assets/VendorACHDetailsPage-8BG5DD-0-p3vm6zDD.js +1 -0
  178. package/dist/assets/VendorDetailPage-C16CrNJo-D86vTvj2.js +257 -0
  179. package/dist/assets/VendorDomesticWireDetailsPage-DXhugXZa-DeVAnksE.js +1 -0
  180. package/dist/assets/VendorFiling1099EditablePage-2QPpdbuN-ozpxZwEp.js +175 -0
  181. package/dist/assets/VendorFirstReviewPage-DLshEh_s-DbpLTolM.js +730 -0
  182. package/dist/assets/VendorInternationalWireDetailsPage-_WoNgw66-DANrlPFU.js +152 -0
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-DoVwF0sT.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-Dxq0YSgP-Bt8xoh_f.js} +8 -8
  185. package/dist/assets/VerifyDevice-DEwEqoHA-CylVN9FP.js +112 -0
  186. package/dist/assets/VideoPlayer-_1Msrww9-DaiS1R42.js +78 -0
  187. package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-BzQ_Dl9b-mwrODjDA.js} +4 -4
  188. package/dist/assets/WarningsDrawerPage-CMBST3p1-ujIyTaCb.js +92 -0
  189. package/dist/assets/ZeniAccountDetailPage-DVLYYC-q-DeZb5ud9.js +300 -0
  190. package/dist/assets/ZeniAccountListViewPage-BHkoMOx5-CtDb7Bzx.js +441 -0
  191. package/dist/assets/ZeniAccountNavBarPieces-CCFzNOcx-CuAvs6Mv.js +14 -0
  192. package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C3Rl-hWL-DwIvVxTo.js} +42 -42
  193. package/dist/assets/ZeniAccountSetupPage-Bf1OOF0Q-DBu-8Ie5.js +36 -0
  194. package/dist/assets/ZeniCopyright-CdqD8vO4-DYRLQn9Q.js +1 -0
  195. package/dist/assets/ZeniTransferAmountSlider-BTudpQjV-CvoGRB0t.js +63 -0
  196. package/dist/assets/{add-to-wallet-D7W5Y5Hm-zBGkMLf1.js → add-to-wallet-DgdBD8_G-CmJT13gp.js} +1 -1
  197. package/dist/assets/agingReportHelper-ovKP-qSS-BPG0U4uX.js +1 -0
  198. package/dist/assets/{analytics-CeQu-r45.js → analytics-zoE7Zcxt.js} +1 -1
  199. package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-D23HZgYu.js} +1 -1
  200. package/dist/assets/analyticsHelper-_u1yj9ge-DxpjUhrt.js +1 -0
  201. package/dist/assets/{arrow-south-east-round-D5pI7KCC-DyTRFc-f.js → arrow-south-east-round-PEovUgvH-7DsZUZDF.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-D1bNopxW-BXcmbJh5.js → auto-transfer-rule-mbafm5D3-iFkTgScT.js} +1 -1
  203. package/dist/assets/chartTypes-vQ8GTDEq-DTt3gea6.js +1 -0
  204. package/dist/assets/commonDimensions-znFHURNY-BydE4i8M.js +1 -0
  205. package/dist/assets/{core-tlHkQPPu.js → core-3dlyNYRL.js} +13 -13
  206. package/dist/assets/dash.all.min-Ba2vGpbn.js +21 -0
  207. package/dist/assets/detailCommon-DmLhlrjU-ShYTQ7m2.js +38 -0
  208. package/dist/assets/downloadPdf-CCUPfpyu-Cq1M0ik1.js +1 -0
  209. package/dist/assets/empty-CnIz-OQ7.js +1 -0
  210. package/dist/assets/empty-DeBX16Fq.js +1 -0
  211. package/dist/assets/{epic-CxjM8IKD.js → epic-vmWV05sm.js} +1 -1
  212. package/dist/assets/{getReferrerType-D1egX4iL-cWt5sFuQ.js → getReferrerType-DjPOy76W-Cm31g4vJ.js} +1 -1
  213. package/dist/assets/{gift-box-DZx81G9E-DbnUGiwi.js → gift-box-Cmt9OgIZ-CvUdutGd.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-CfhD7tYw-SmhQgAdh.js → graphic-no-data-l-DU4J8fDt-x_U9o4ZQ.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-BWv8w-Qm-31atyJKo.js → graphic-no-data-net-burn-l-CzmycA0m-DcAe6xm4.js} +1 -1
  216. package/dist/assets/{handshake-D4b9T-E0-BvZJz7M_.js → handshake-BPg58FML-D7G7L1P7.js} +1 -1
  217. package/dist/assets/hls-BA0yQjS5.js +40 -0
  218. package/dist/assets/index-A3ojUHL_.js +1 -0
  219. package/dist/assets/index-BQbbCzKZ.js +1 -0
  220. package/dist/assets/index-CHOIEdDW.js +1 -0
  221. package/dist/assets/index-DQmBF4-D.js +3310 -0
  222. package/dist/assets/index-XNBiWrYj.js +29300 -0
  223. package/dist/assets/index-jNlf8Zjb.js +1 -0
  224. package/dist/assets/index-t8y498Dk.css +1 -0
  225. package/dist/assets/lexical-DPEnH3HH.js +21 -0
  226. package/dist/assets/{liveblocks-BrzOBACZ.js → liveblocks-DIep7fJd.js} +1 -1
  227. package/dist/assets/lottie-DEE24l2z.js +9 -0
  228. package/dist/assets/mapLoadingInProgressToTreeNode-Cw74bTou-BDMlWcL7.js +1 -0
  229. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CWFxnMpB-BCzyYlDf.js +1 -0
  230. package/dist/assets/mapSpacerToTreeNode-JUrBuZAz-wZclqNi-.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-B2iYfeF3-B53qunPl.js +1 -0
  232. package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-BbQHYZk7-DpCyCcLg.js} +1 -1
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CoS9pLIE.js +1 -0
  234. package/dist/assets/mixin-D3UDm--6.js +43 -0
  235. package/dist/assets/mui-bYXq4XMS.js +25 -0
  236. package/dist/assets/{page-detail-L_-1iNMr-DCxtcaOg.js → page-detail-CWX5S47F-Bc8Xpsuq.js} +1 -1
  237. package/dist/assets/{radio-default-H1PowEcP-lvG8v5I_.js → radio-default-CiSgisfh-Clpw2LWj.js} +1 -1
  238. package/dist/assets/react-B5y9n_ef.js +17 -0
  239. package/dist/assets/react-B84192hO.js +32 -0
  240. package/dist/assets/react-BpmEXSTM.js +27 -0
  241. package/dist/assets/react-BuvI16A0.js +37 -0
  242. package/dist/assets/react-BvHTyLQY.js +29 -0
  243. package/dist/assets/react-CA3XI5Yc.js +16 -0
  244. package/dist/assets/react-Cz0zQhlY.js +31 -0
  245. package/dist/assets/react-Egsc5mMa.js +44 -0
  246. package/dist/assets/recharts-BHhx6CLo.js +73 -0
  247. package/dist/assets/{sentry-Dhk5jNhq.js → sentry-o6h_D-9x.js} +2 -2
  248. package/dist/assets/{shield-E_rJ2OWj-kTEIYW8Q.js → shield-DOlUxcFf-BXuToJ7O.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DeZfEmbT-vM-pgltN.js +1 -0
  250. package/dist/assets/toChartData-KibzV7pa-DRJVLoY0.js +1 -0
  251. package/dist/assets/{transaction-placeholder-BDef7K0p-Dqvh6We2.js → transaction-placeholder-CpOwZAMG-0pwHfQC6.js} +1 -1
  252. package/dist/assets/types-DyvtCprH-BcZYcgaq.js +1 -0
  253. package/dist/assets/uploadAttachment-U9nX0Ka9-1qW3wdO3.js +286 -0
  254. package/dist/assets/uploadReceipts-CDPM7zcb-DEOGBGdq.js +1 -0
  255. package/dist/assets/url-BdYIjepo.js +1 -0
  256. package/dist/assets/url-BxQKeS2R.js +6 -0
  257. package/dist/assets/useLongPress-GCK2COYQ-8uipnze8.js +1 -0
  258. package/dist/assets/{usp-line-4JsxsMjK-mCxwNowe.js → usp-line-BBd1wKwW-ClwDS-nj.js} +1 -1
  259. package/dist/assets/utils-uDUqNRFY.js +70 -0
  260. package/dist/assets/{zeni-epic-state-Bo1aGezX.js → zeni-epic-state-LPACxnXP.js} +3 -3
  261. package/dist/index.html +1 -1
  262. package/package.json +2 -2
  263. package/dist/assets/ACHDetailsPage-StkGXn1c-DnerZ6yw.js +0 -21
  264. package/dist/assets/AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js +0 -539
  265. package/dist/assets/AccountInfoPage-BnHC_Y3E-ByMcEeMx.js +0 -18
  266. package/dist/assets/AccountInfoPageContent-9hQV-QKt-DIbr8exN.js +0 -149
  267. package/dist/assets/AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js +0 -59
  268. package/dist/assets/AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js +0 -239
  269. package/dist/assets/AccountRow-DbyUdPZG-D3G-oWRQ.js +0 -298
  270. package/dist/assets/AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js +0 -207
  271. package/dist/assets/AddAddressForCardDrawer-D5EnX225-LqDDXshB.js +0 -6
  272. package/dist/assets/AddToWalletPage-D45TGyNS-FyEeS4ax.js +0 -344
  273. package/dist/assets/AgingReportsPage-Cxe-3oBx-BYtw6E86.js +0 -79
  274. package/dist/assets/AllUserItems-Cc_-o3gE-BoV9oLkk.js +0 -192
  275. package/dist/assets/ApAgingDetailPage-DoaKW48m-OHK-ezBl.js +0 -46
  276. package/dist/assets/AppBasePage-BUE60uZt-eqCd5DKr.js +0 -71
  277. package/dist/assets/AppDrawerContent-P20acbi4-B9KrqH0V.js +0 -91
  278. package/dist/assets/ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js +0 -47
  279. package/dist/assets/ArAgingChart-DIABTV5P-DnLiVsos.js +0 -24
  280. package/dist/assets/ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js +0 -46
  281. package/dist/assets/Area-Sl30rGq6-WMXLxt2t.js +0 -1
  282. package/dist/assets/AreaChart-2AgE74bB-juQGB2-h.js +0 -1
  283. package/dist/assets/AttachmentView-DRBK6aiE-DxR-B_-8.js +0 -101
  284. package/dist/assets/BankAccountSection-CwPIXA5w-DE6FMEHD.js +0 -79
  285. package/dist/assets/BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js +0 -51
  286. package/dist/assets/BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js +0 -425
  287. package/dist/assets/BillDetailPage-CQ8iqo9y-D1hvEdQD.js +0 -266
  288. package/dist/assets/BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js +0 -27
  289. package/dist/assets/BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js +0 -84
  290. package/dist/assets/BillPaySetUpPage-CrfwREgO-oxkPqY3f.js +0 -42
  291. package/dist/assets/BillingSettingsPage-CitBvGaR-nwEc2ngU.js +0 -44
  292. package/dist/assets/BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js +0 -1
  293. package/dist/assets/BusinessVerificationPage-aj1YPi-U-D08S06Tj.js +0 -138
  294. package/dist/assets/CardNumberSubText-COZ0PEHK-CGMTIPNh.js +0 -21
  295. package/dist/assets/CashbackDetailPage-BloaeO12-DkRvSRPk.js +0 -285
  296. package/dist/assets/ChargeCardDetailPage-CjW48x_w-DZEJnmps.js +0 -1462
  297. package/dist/assets/ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js +0 -412
  298. package/dist/assets/ChargeCardListTable-BGdEyXLV-BJk1B__-.js +0 -711
  299. package/dist/assets/ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js +0 -222
  300. package/dist/assets/ChargeCardSetupPage-B0L57e-5-DfN8lydv.js +0 -36
  301. package/dist/assets/ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js +0 -60
  302. package/dist/assets/CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js +0 -206
  303. package/dist/assets/CollapsableReportTable-B3_in9eE-D8gjZt8q.js +0 -2844
  304. package/dist/assets/CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js +0 -260
  305. package/dist/assets/CompanyPassportCard-Bn50f4y5-D-A9Krsj.js +0 -42
  306. package/dist/assets/CompanyPassportPage-CamFfvAV-lyA9J8un.js +0 -574
  307. package/dist/assets/CompleteProfile-2jFR92oO-DA0X1epS.js +0 -52
  308. package/dist/assets/ComposedChart-Cot0K7Et-DQrzoGG2.js +0 -1
  309. package/dist/assets/ConfettiBurst-D34cviSS-Z_WPGmrN.js +0 -1
  310. package/dist/assets/CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js +0 -281
  311. package/dist/assets/CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js +0 -224
  312. package/dist/assets/CurrencySelectField-DR8cDrIS-TTiuldkA.js +0 -139
  313. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
  314. package/dist/assets/CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js +0 -66
  315. package/dist/assets/CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js +0 -107
  316. package/dist/assets/CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js +0 -202
  317. package/dist/assets/Dashboard-DJs11vgV-CqS9vdTt.js +0 -1551
  318. package/dist/assets/DashboardReportPage-CL0RrJ4A-FEfXS09v.js +0 -371
  319. package/dist/assets/DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js +0 -12
  320. package/dist/assets/DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js +0 -66
  321. package/dist/assets/DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js +0 -21
  322. package/dist/assets/DownloadOverlay-CLWNXGnb-DS0DZTJ1.js +0 -439
  323. package/dist/assets/EditPeoplePage-B7bjXrqC-Bm6qgPK0.js +0 -55
  324. package/dist/assets/EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js +0 -865
  325. package/dist/assets/EntityDetailPage-B1aKw_1J-DOXQOxN6.js +0 -18
  326. package/dist/assets/EntitySummarySection-Cp-CFb9j-NVB6pHEa.js +0 -149
  327. package/dist/assets/ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js +0 -281
  328. package/dist/assets/ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js +0 -1650
  329. package/dist/assets/ExpressPayPage-DYUtczg7-BDKERlx3.js +0 -168
  330. package/dist/assets/FollowStepsSection-Dhf67oqf-CptFWIJS.js +0 -390
  331. package/dist/assets/GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js +0 -291
  332. package/dist/assets/InformationCardStack-BLD4XmMT-Dp1BbBqU.js +0 -31
  333. package/dist/assets/InsightsCardStack-CAwTWreO-DWsXatY7.js +0 -79
  334. package/dist/assets/InsightsSection-DJrMi3DN-DUYhJ5vl.js +0 -27
  335. package/dist/assets/IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js +0 -57
  336. package/dist/assets/InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js +0 -171
  337. package/dist/assets/InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js +0 -292
  338. package/dist/assets/InviteFormPage-DN2uvROT-Dfc30Liy.js +0 -312
  339. package/dist/assets/InvitePageListView-DDi1bLaG-BIsQyZAc.js +0 -739
  340. package/dist/assets/InvitePeoplePage-D4bsu9K1-CnzfbNDf.js +0 -12
  341. package/dist/assets/InvoiceUploadSection-BducuHAy-CwGoLvBS.js +0 -140
  342. package/dist/assets/IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js +0 -532
  343. package/dist/assets/LabeledAddressValue-mLMacnQu-BhboedQp.js +0 -49
  344. package/dist/assets/LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js +0 -45
  345. package/dist/assets/LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js +0 -16
  346. package/dist/assets/LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js +0 -204
  347. package/dist/assets/LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js +0 -41
  348. package/dist/assets/LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js +0 -59
  349. package/dist/assets/LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js +0 -229
  350. package/dist/assets/LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js +0 -297
  351. package/dist/assets/LinkJETransactionPage-C1FL0hR6-BhDC9P29.js +0 -98
  352. package/dist/assets/LockCardPage-Do7WCHaW-DegBv6L_.js +0 -623
  353. package/dist/assets/LowBalancePopup-CEiTKqxT-F00svkBR.js +0 -34
  354. package/dist/assets/MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js +0 -1
  355. package/dist/assets/MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js +0 -1
  356. package/dist/assets/MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js +0 -1
  357. package/dist/assets/MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js +0 -31
  358. package/dist/assets/MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js +0 -17
  359. package/dist/assets/MailingDetailsSection-C_TtoLpj-DODfBmzp.js +0 -21
  360. package/dist/assets/MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js +0 -110
  361. package/dist/assets/MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js +0 -6
  362. package/dist/assets/MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js +0 -85
  363. package/dist/assets/NavBarWithPicker-FYZ2a05o-CmU_pgV6.js +0 -30
  364. package/dist/assets/NavigationArrow-DlO0Lww9-Ct543iDt.js +0 -47
  365. package/dist/assets/NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js +0 -160
  366. package/dist/assets/NoDataTable-Mkdamra1-CCnSaZtC.js +0 -8
  367. package/dist/assets/NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js +0 -163
  368. package/dist/assets/NotificationsListConfig-DsgxTfdY-t5wE01Ro.js +0 -1
  369. package/dist/assets/NotificationsPage-ZeNj-N6e-Bg1RwKL7.js +0 -685
  370. package/dist/assets/OpExByVendorPage-BFHzD656-CkhDsmtK.js +0 -100
  371. package/dist/assets/OverlayContainerPage-C0a1XRUE-Coei_22L.js +0 -11
  372. package/dist/assets/PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js +0 -107
  373. package/dist/assets/PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js +0 -107
  374. package/dist/assets/PeoplePage-Dzl5Uh33-C_9NQRDZ.js +0 -675
  375. package/dist/assets/Preview-Ciq7dXYi-CJfe3XpZ.js +0 -1
  376. package/dist/assets/ProductsCarousel-B7wcRg4N-MgqN7eQE.js +0 -142
  377. package/dist/assets/QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js +0 -51
  378. package/dist/assets/QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js +0 -79
  379. package/dist/assets/ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js +0 -26
  380. package/dist/assets/ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js +0 -237
  381. package/dist/assets/ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js +0 -314
  382. package/dist/assets/ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js +0 -84
  383. package/dist/assets/ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js +0 -140
  384. package/dist/assets/ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js +0 -1
  385. package/dist/assets/ReloadCard-CreyuBvN-CLMqgpFk.js +0 -26
  386. package/dist/assets/ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js +0 -150
  387. package/dist/assets/ReportsPage-CZpFSu1Y-DlpOcAya.js +0 -121
  388. package/dist/assets/RevenueChart-CI7LXu5--DgnFQndd.js +0 -280
  389. package/dist/assets/ReviewDetailsPage-DaTETUBT-PWso5Dab.js +0 -290
  390. package/dist/assets/ReviewOverlay-De5_nrll-D6fwtyEd.js +0 -152
  391. package/dist/assets/RoleWithToolTip-CWH-iJqI-DmzPBpda.js +0 -22
  392. package/dist/assets/ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js +0 -37
  393. package/dist/assets/ScheduleDetailsPage-CkpwjK55-BLiF70NF.js +0 -37
  394. package/dist/assets/ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js +0 -324
  395. package/dist/assets/ScreenRoutes-B29orzq3.js +0 -206
  396. package/dist/assets/SignIn-xXGNpo08-CUzVPK00.js +0 -450
  397. package/dist/assets/SignInScreen-CDr9y3Na.js +0 -1
  398. package/dist/assets/SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js +0 -123
  399. package/dist/assets/SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js +0 -754
  400. package/dist/assets/SpendManagementSection-ajHIu1O8-Cq9RGBsG.js +0 -230
  401. package/dist/assets/StatementItem-GE_8ctAq-DDQXsDRX.js +0 -31
  402. package/dist/assets/StatementsPage-C3NFPx6M-jgAzPQMr.js +0 -58
  403. package/dist/assets/SubTabSwitcher-D66ATBlk-cmQvyV1w.js +0 -58
  404. package/dist/assets/SummaryCard-Bm1IRZgD-Bll-orHR.js +0 -1
  405. package/dist/assets/Switch-0GHq7mOt-Dq45hGqf.js +0 -1
  406. package/dist/assets/TaskManagementPage-BGrBiImq-E6_WY2ZU.js +0 -508
  407. package/dist/assets/TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js +0 -66
  408. package/dist/assets/TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js +0 -31
  409. package/dist/assets/TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js +0 -31
  410. package/dist/assets/TopExCard-ZSEsgTG--BNm-M2ne.js +0 -38
  411. package/dist/assets/TopExDetailPage-0MGEdNiZ-CVCWUWVh.js +0 -132
  412. package/dist/assets/TransactionDetailPage-C7wPASNo-BTqu7QgN.js +0 -912
  413. package/dist/assets/TransactionList-Brm_EWed-DwQzznTi.js +0 -147
  414. package/dist/assets/TransactionListBig-Br5XrVkF-BW7DnMvS.js +0 -284
  415. package/dist/assets/TransactionListPage-BE_E_82V-SHPPjUOF.js +0 -35
  416. package/dist/assets/TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js +0 -80
  417. package/dist/assets/TransferDrawerPage-CCKQSH2d-21ckGGxB.js +0 -362
  418. package/dist/assets/TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js +0 -708
  419. package/dist/assets/TreasuryPromoPage-ssGWinby-BKoFmxRZ.js +0 -505
  420. package/dist/assets/TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js +0 -58
  421. package/dist/assets/TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js +0 -58
  422. package/dist/assets/TrendChart-ZXja3Lv--B4yGBgeP.js +0 -16
  423. package/dist/assets/TrendWithTransactions-Bacaqvbc-CDzpSeHr.js +0 -116
  424. package/dist/assets/UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js +0 -244
  425. package/dist/assets/UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js +0 -67
  426. package/dist/assets/UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js +0 -38
  427. package/dist/assets/Vendor2FAPopup-DyQl5kF8-BPyop29n.js +0 -1
  428. package/dist/assets/VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js +0 -1
  429. package/dist/assets/VendorDetailPage-gDnCoaGz-Bq_C256n.js +0 -257
  430. package/dist/assets/VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js +0 -1
  431. package/dist/assets/VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js +0 -175
  432. package/dist/assets/VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js +0 -730
  433. package/dist/assets/VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js +0 -152
  434. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js +0 -1
  435. package/dist/assets/VerifyDevice-BpRkPdzL-DdjhGhQl.js +0 -112
  436. package/dist/assets/VideoPlayer-DVIeTdLq-CMw9Re6n.js +0 -78
  437. package/dist/assets/WarningsDrawerPage-DmT71mwN-DESwOtN_.js +0 -92
  438. package/dist/assets/ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js +0 -300
  439. package/dist/assets/ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js +0 -441
  440. package/dist/assets/ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js +0 -14
  441. package/dist/assets/ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js +0 -36
  442. package/dist/assets/ZeniCopyright-DPuPyAW5-BSJS_xPn.js +0 -1
  443. package/dist/assets/ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js +0 -63
  444. package/dist/assets/__vite-browser-external-FmFgRqLi-FmFgRqLi.js +0 -1
  445. package/dist/assets/_baseUnset-WRwI4F7w-C17FI5GR.js +0 -1
  446. package/dist/assets/agingReportHelper-Cf__8gug-B4Tesv9Z.js +0 -1
  447. package/dist/assets/analyticsHelper-QM8g-I4_-BsSO6wHs.js +0 -1
  448. package/dist/assets/chartTypes-BADtYh4F-X-tWlUJq.js +0 -1
  449. package/dist/assets/commonDimensions-B2oTTz3C-DxkHqcKn.js +0 -1
  450. package/dist/assets/dash.all.min-UPr31zh1-ZEpa15jK.js +0 -21
  451. package/dist/assets/detailCommon-B2986coM-C1gDOjW1.js +0 -38
  452. package/dist/assets/downloadPdf-C0_jxUh_-bREzf3Cq.js +0 -1
  453. package/dist/assets/flatten-CIVR5K8J-DvOZeE7b.js +0 -1
  454. package/dist/assets/groupBy-LtwzERV9-C02NtlDV.js +0 -1
  455. package/dist/assets/hls-CsNM3rq8-NlJdpMmx.js +0 -40
  456. package/dist/assets/index-2CdI-B2B.js +0 -29301
  457. package/dist/assets/index-BR5-Z2ox.css +0 -1
  458. package/dist/assets/index-BYRTFU-W-YvTg_8TB.js +0 -3305
  459. package/dist/assets/lexical-l0sNRNKZ.js +0 -1
  460. package/dist/assets/lottie-B4xjt4lE.js +0 -1
  461. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
  462. package/dist/assets/mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js +0 -1
  463. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js +0 -1
  464. package/dist/assets/mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js +0 -1
  465. package/dist/assets/mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js +0 -1
  466. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js +0 -1
  467. package/dist/assets/mixin-XJuHfVsL-Dozz_ZkW.js +0 -43
  468. package/dist/assets/mui-kiGMfX4-.js +0 -25
  469. package/dist/assets/omit-5LZGrM3q-cCGLyNB9.js +0 -1
  470. package/dist/assets/orderBy-D3W4CDe6-BoPe-dQB.js +0 -1
  471. package/dist/assets/react-6Tvfe2S2-C3CHfLw_.js +0 -19
  472. package/dist/assets/react-B2-P-PS--DYmRygxV.js +0 -19
  473. package/dist/assets/react-CWXWcDMY-C8y3pdCP.js +0 -17
  474. package/dist/assets/react-CWt3gw2R-CPQu_93E.js +0 -21
  475. package/dist/assets/react-CvWP22DQ-DgwH1WE1.js +0 -7
  476. package/dist/assets/react-CytUn6Kg-Dh6LSVZI.js +0 -22
  477. package/dist/assets/react-DBTaojCw-BTbEMBGt.js +0 -6
  478. package/dist/assets/react-G6j-OGKl--ofewKrH.js +0 -34
  479. package/dist/assets/recharts-Diw77Kjb.js +0 -1
  480. package/dist/assets/remove-ADLCpWJf-CcDvT7jc.js +0 -1
  481. package/dist/assets/toCOABalancesWithID-C_Swao_b-2UkzUVnC.js +0 -1
  482. package/dist/assets/toChartData-DfujfQ7D-nillWsTs.js +0 -1
  483. package/dist/assets/types-DRnhtDPC-CEIiK5pR.js +0 -1
  484. package/dist/assets/uploadAttachment-Wnp0PZFn-CVVetHUv.js +0 -286
  485. package/dist/assets/uploadReceipts-BkHrFC8j-DevoCqHx.js +0 -1
  486. package/dist/assets/useFormControl-DPydD0oc-BkCU7DyG.js +0 -1
  487. package/dist/assets/useLongPress-7jtiD2hr-B6uZ6RFc.js +0 -1
  488. package/dist/assets/utils-BLUF9kAp.js +0 -70
@@ -1,1650 +0,0 @@
1
- import{b as n,cJ as rs,u as we,hC as Xi,hD as Qi,j as t,a as ve,dc as ls,a9 as _e,bC as ea,s as g,c9 as cs,dd as ds,i as St,cf as us,js as hs,bn as Je,cH as fe,R as Q,ai as mt,ah as Oe,C as Xe,af as jt,bm as _,jq as ps,ig as ms,i8 as ta,ca as gs,cA as Bt,bH as na,cq as oa,lB as xs,hr as fs,f as ys,hE as Cs,hF as ia,c1 as ws,d8 as vs,cS as bs,fU as gn,cP as wo,a8 as Jt,cz as vo,aa as Kt,lC as Ss,lD as js,lE as ks,lF as ln,lG as aa,lH as sa,lI as Is,lJ as zo,lK as $s,eB as ra,lL as Ts,lM as Ls,lN as As,lO as Rs,lP as Es,lQ as Ds,lR as Bs,lS as Os,lT as Fs,lU as zs,lV as la,lW as Ps,lX as Ms,lY as _s,lZ as Ns,hT as ca,l_ as Vs,l$ as Hs,m0 as Ws,bG as Bn,dj as On,A as da,r as ua,D as ha,dt as xn,f9 as bo,hQ as Us,h9 as qs,ii as Js,as as Ks,L as Gs,gV as Zs,b3 as pa,m1 as Ys,bs as So,bB as Po,ia as ma,cm as ga,bq as Xs,hZ as Dt,jf as _n,fS as Ln,dF as jo,a_ as Qs,dO as xa,eC as er,ka as tr,eI as ko,di as Fn,dq as zn,jT as nt,t as Rt,j2 as nr,hU as Nn,kE as Mo,ex as fa,dQ as hn,m2 as or,by as ir,eH as ya,B as pn,jK as Ca,jU as go,m3 as nn,ff as wa,fg as va,kd as ba,ke as Sa,bj as Io,m4 as ar,dP as Pn,jN as ja,gL as ka,fJ as Vn,j$ as sr,f7 as rr,ak as yt,m5 as lr,m6 as cr,dL as dr,bv as Ia,a7 as ur,fG as hr,fH as pr,fI as mr,fK as _o,fL as No,fM as gr,m7 as xr,bK as Hn,fF as fr,m8 as yr,bz as Cr,fV as wr,fW as vr,fX as br}from"./index-2CdI-B2B.js";import{a,o as $a}from"./core-tlHkQPPu.js";import{n as s,c as Ye,k as $o}from"./mui-kiGMfX4-.js";import{bj as Wn,gg as Vo,gh as mn,gi as Sr,gj as jr,cy as kr,bO as xo,cz as Ir,cA as $r,cB as Tr,fu as cn,bG as _t,eK as Ho,c4 as Ta,gk as Lr,gl as Ar,gm as Wo,c0 as Rr,bp as Nt,gn as La,go as Aa,gp as Ra,gq as Ea,gr as Da,gs as To,gt as Er}from"./zeni-epic-state-Bo1aGezX.js";import{X as Ba,r as Oa,e as on,N as pt}from"./CollapsableReportTable-B3_in9eE-D8gjZt8q.js";import{U as Un}from"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import{a as Fa}from"./mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js";import{n as Uo}from"./mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js";import{R as Dr}from"./VendorsAccountsSection-tcJAh1A7-COfHef35.js";import{i as Br,p as qo,t as Or,n as Fr}from"./uploadAttachment-Wnp0PZFn-CVVetHUv.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./useFormControl-DPydD0oc-BkCU7DyG.js";const{common:{navBar:{back:zr},texts:{refresh:Pr,close:Mr,copy:_r,copied:Nr,open:Vr}},expenseAutomation:{common:{numbers:{maximumCount:Hr}}}}=ve.getLocalizedStrings(),Wr=s(Us)`
2
- display: flex;
3
- width: ${n.sp4};
4
- height: ${n.sp4};
5
- align-items: center;
6
- justify-content: center;
7
- `,Ur=s.div`
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- position: relative;
12
- cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
13
- color: ${e=>e.theme.colors.hero};
14
- &:hover {
15
- color: ${e=>e.theme.colors.primary};
16
- }
17
- `,qr=s.div`
18
- width: 100%;
19
- display: flex;
20
- flex-shrink: 0;
21
- flex-direction: column;
22
- background: ${e=>e.theme.colors.grey4};
23
- box-sizing: border-box;
24
- position: sticky;
25
- top: 0;
26
- z-index: 6;
27
- `,Jr=s.div`
28
- display: flex;
29
- flex-direction: column;
30
- align-items: center;
31
- padding-left: ${e=>Ko.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
- padding-right: ${e=>Ko.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
- `,Kr=s.div`
34
- display: flex;
35
- align-items: baseline;
36
- justify-content: end;
37
- gap: ${n.sp4};
38
- flex: 1 1 ${n.sp0};
39
- `,Gr=s.div`
40
- display: flex;
41
- align-items: baseline;
42
- justify-content: start;
43
- gap: ${n.sp4};
44
- flex: 1 1 ${n.sp0};
45
- `,Zr=s(Js)`
46
- width: ${n.sp3};
47
- height: ${n.sp3};
48
- cursor: pointer;
49
- margin-left: ${n.sp1};
50
- color: inherit;
51
- `,Yr=s(qs)`
52
- width: ${n.sp3};
53
- height: ${n.sp3};
54
- margin-left: ${n.sp1};
55
- color: ${Xe.success};
56
- `,Xr=s(ys)`
57
- cursor: pointer;
58
- width: ${n.sp4};
59
- height: ${n.sp4};
60
- color: ${e=>e.theme.colors.hero};
61
- &:hover {
62
- color: ${e=>e.theme.colors.primary};
63
- }
64
- `,Qr=s(bs)`
65
- cursor: pointer;
66
- width: ${n.sp4};
67
- height: ${n.sp4};
68
- color: ${e=>e.theme.colors.hero};
69
- &:hover {
70
- color: ${e=>e.theme.colors.primary};
71
- }
72
- `,el=s(vs,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
73
- cursor: pointer;
74
- width: ${n.sp4};
75
- height: ${n.sp4};
76
- color: ${e=>e.theme.colors.hero};
77
- animation: ${e=>e.$spinning?Ye`
78
- ${tl} 2s linear infinite;
79
- `:"none"};
80
- &:hover {
81
- color: ${e=>e.theme.colors.primary};
82
- }
83
- `,tl=$o`
84
- 0% {
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- transform: rotate(360deg);
89
- }
90
- `,nl=s.div`
91
- padding-top: ${n.sp0};
92
- padding-bottom: ${n.sp0};
93
- `,Jo=s(Oe)`
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: ${n.sp4};
101
- `,ol=s.div`
102
- display: flex;
103
- `,il=s.div`
104
- border: 1px solid ${e=>e.theme.colors.grey3};
105
- width: 100%;
106
- margin-top: -2px;
107
- border-top-right-radius: ${n.sp2};
108
- border-top-left-radius: ${n.sp2};
109
- border-bottom-right-radius: ${n.sp2};
110
- border-bottom-left-radius: ${n.sp2};
111
- `,al=s.div`
112
- display: flex;
113
- height: ${n.sp4};
114
- `,sl=s.div`
115
- text-align: center;
116
- display: flex;
117
- align-items: center;
118
- justify-content: center;
119
- flex-wrap: wrap;
120
- `,rl=s.div`
121
- display: flex;
122
- flex-direction: column;
123
- `,ll=s(gn)`
124
- width: ${n.sp3};
125
- height: ${n.sp3};
126
- margin-right: ${n.sp1};
127
- path {
128
- stroke-width: 2;
129
- }
130
- `,fn=s.span`
131
- font-weight: ${wo.regular};
132
- color: ${e=>e.theme.colors.primary};
133
- `,cl=s.span`
134
- font-weight: ${wo.medium};
135
- color: ${e=>e.theme.colors.primary};
136
- `,dl=s.span`
137
- color: ${e=>e.theme.colors.primary};
138
- text-decoration: underline;
139
- text-decoration-color: ${e=>e.theme.colors.grey2};
140
- cursor: pointer;
141
- display: flex;
142
- align-items: center;
143
- transition: text-decoration-color 0.2s;
144
- .copy-icon {
145
- color: ${e=>e.theme.colors.hero};
146
- transition: color 0.2s;
147
- }
148
- &:hover {
149
- .copy-icon {
150
- color: ${e=>e.theme.colors.primary};
151
- }
152
- text-decoration-color: ${e=>e.theme.colors.primary};
153
- }
154
- `,Ko={subSectionContainerLeftRightPadding:new Q(g[3],g[6],g[8])},ul=({onAllThreadsClick:e,companyId:o,companyName:c})=>{const l={application:"cockpit",companyId:o,entityId:o,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:c,url:window.location.href},{url:m,...p}=l,i={...p},{threads:r,isLoading:d}=Cs(i,!1,!1),h=r.filter(u=>u.id.includes(ia)===!1);return t.jsxs(Ur,{isDisabled:d,onClick:e,"data-testid":_("comment-icon"),children:[t.jsx(ws,{count:h.length,isLoading:d}),t.jsx(Wr,{})]})},hl=({headerData:e,refreshStatus:o,searchText:c,companyName:l,companyId:m,isZeniUser:p,onAllThreadsClick:i,onClose:r,onRefresh:d,onSearchTextChanged:h})=>{const u=()=>{o!=="In-Progress"&&d()};return t.jsx(Kr,{children:e.rightSection.map((x,f)=>{switch(x){case"search":return t.jsx(ps,{isSearchOpen:(c.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:c,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:n.sp4},searchIconMarginRight:n.sp0,onSearchTextChanged:y=>{h(y)},downloadPresent:!1},f+x);case"refresh":return t.jsx(fe,{display:"block",placement:"bottom",title:Pr,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(el,{onClick:u,$spinning:o==="In-Progress","data-testid":_("refresh-icon")})},f+x);case"comment":return p===!1?null:t.jsx(ul,{companyId:m,companyName:l,onAllThreadsClick:i});default:return t.jsx(fe,{display:"block",placement:"bottom",title:Mr,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(Xr,{onClick:r,"data-testid":_("close-icon")})},f+x)}})})},pl=({headerData:e,onBack:o})=>t.jsx(Gr,{children:e.leftSection.map((c,l)=>t.jsx(fe,{display:"block",placement:"bottom",title:zr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(Qr,{onClick:o,"data-testid":_("back-button")})},l+c))}),Go=({text:e,linkText:o,windowSize:c,isCopied:l,onLinkClick:m})=>{if(o==null||!o)return t.jsxs(fn,{windowSize:c,children:[e," "]});const p=e.indexOf(o);if(p===-1)return t.jsxs(fn,{windowSize:c,children:[e," "]});const i=e.substring(0,p),r=e.substring(p+o.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(fn,{windowSize:c,children:[i.trim()," "]}):null,t.jsx(fe,{display:"flex",placement:"right",title:ta.test(o)?l?Nr:_r:Vr,enterTouchDelay:600,children:t.jsxs(dl,{onClick:()=>m?.(o),"data-testid":_("pre-link"),children:[o,l?t.jsx(Yr,{className:"success-icon"}):t.jsx(Zr,{className:"copy-icon"})]})}),r?t.jsxs(fn,{windowSize:c,children:[r," "]}):null]})},Zo=({subTitles:e})=>{const o=we(),[,c]=ms(),[l,m]=a.useState(!1),p=a.useRef(null),i=a.useCallback(r=>{ta.test(r)?(c(r),m(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{m(!1)},2e3)):window.open(r,"_blank","noopener,noreferrer")},[c]);return a.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),t.jsx(rl,{children:e.map((r,d)=>t.jsxs(sl,{children:[r.pre?t.jsx(Go,{text:r.pre,linkText:r.preLink,windowSize:o,isCopied:l,onLinkClick:i}):null,r.prefixIconName?t.jsx(t.Fragment,{children:r.prefixIconName==="zeniAIIcon"?t.jsx(ll,{}):t.jsx(t.Fragment,{})}):null,r.bold?t.jsx(t.Fragment,{children:t.jsxs(cl,{windowSize:o,children:[r.bold," "]})}):null,r.post?t.jsx(Go,{text:r.post,linkText:r.postLink,windowSize:o,isCopied:l,onLinkClick:i}):null]},d+r.bold+r.pre+r.post))})};function ml(e){const{headerData:o,currentTab:c,completionStatus:l,onUpdateTab:m,selectedReconAccountId:p,getTabCountAndFetchState:i,reconcileDetailPageFetchState:r,forceShowSubtitle:d,currentSelectedView:h,onReconTabUpdate:u,currentRecontab:x,navBarCustomElement:f,titleStyle:y={}}=e,w=i("autoCategorized")?.count??0,b=i("review")?.count??0,k=i("reconcile")?.count??0,C=o.tabs.length>0||o.subTitle.length>0,I=h==="transaction_categorization"&&c==="autoCategorized"?w>0:h==="reconciliation"&&x==="review"&&p!=null?r==="In-Progress"||b>0:h==="reconciliation"&&x==="reconcile"&&p!=null?r==="In-Progress"||k>0:l!=="complete",T=St(),$=we();let D=[];return o.tabs.length>0&&(D=o.tabs.map(v=>({label:v.label,id:v.id,countDetails:i(v.id)}))),t.jsxs(qr,{children:[t.jsx(us,{title:o.title,subTitle:o.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:T.colors.grey4,onBackClick:()=>null,titleStyle:y,ignoreScrollAction:h!=="month_end_insights",keepBackgroundOnScroll:h!=="month_end_insights",leftSideComponent:t.jsx(pl,{...e}),rightSideComponent:t.jsx(hl,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(_e,{controller:C===!0,children:t.jsx(Jr,{windowSize:$,children:o.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(nl,{windowSize:$,children:t.jsx(hs,{allTabs:D,selectedTab:h==="transaction_categorization"?c??D[0].id:x??D[0].id,onTabChange:v=>{if(h==="transaction_categorization"){const S=Sr(v.id);S!=null&&m(S)}else if(h==="reconciliation"){const S=jr(v.id);S!=null&&u(S)}},maximumCountLimit:Hr})}),t.jsx(il,{windowSize:$}),t.jsx(al,{}),t.jsx(_e,{controller:I===!0||d===!0,children:t.jsx(Jo,{windowSize:$,children:o.tabs.map((v,S)=>(h==="reconciliation"?v.id===x:v.id===c)?t.jsx(ol,{children:t.jsx(Zo,{subTitles:v.subTitle})},S+v.id):null)})})]}):t.jsx(_e,{controller:I===!0||d===!0,children:t.jsx(Jo,{windowSize:$,children:t.jsx(Zo,{subTitles:o.subTitle})})})})})]})}function gl({name:e,checkBoxes:o,mode:c,isDisabled:l,style:m,labelStyle:p,labelCheckBoxStyle:i,checkBoxStyle:r,width:d,registerOptions:h,checkedIconColor:u,checkBoxIconStyle:x,checkBoxContainerStyle:f,draggable:y=!1,selectionLimit:w,infoIconContainerStyle:b,onDragStart:k,rowHeight:C=40,initialScrollOffSet:I,onScroll:T}){const $=we(),D=a.useRef(null),{control:v}=jo(),S=o.find(O=>O.groupLabel),B=o.filter(O=>!O.groupLabel),A=[];for(const O of B)if(!O.isException&&A.push(O.value),w!=null&&A.length===w+1)break;const z=o.filter(O=>O.defaultChecked).map(O=>O.value);return t.jsx(xa,{control:v,name:e,rules:h,defaultValue:z,render:({field:{value:O,ref:P,onChange:H}})=>{const V=W=>{fl({event:W,value:O,allCheckBoxValues:A,groupLabelCheckBox:S,onChange:H})};return t.jsxs(yl,{style:m,windowSize:$,children:[S&&t.jsx(Lo,{checkBox:S,index:0,value:O,allCheckBoxValues:A,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:r,labelCheckBoxStyle:i,labelStyle:p,width:d,draggable:y,groupLabelCheckBox:S,infoIconContainerStyle:b,checkedIconColor:u,isDisabled:l,selectionLimit:w,onDragStart:k,ref:P,onChangeHandler:V}),t.jsx(Cl,{children:t.jsx(Bn,{style:{height:"100%",width:"100%"},children:({height:W,width:ee})=>t.jsx(On,{ref:D,height:W,width:ee,itemCount:B.length,itemSize:()=>C,estimatedItemSize:C,initialScrollOffset:I??0,onScroll:({scrollOffset:R})=>{T?.(R)},overscanCount:1,itemKey:R=>B[R].value,itemData:{checkBoxes:B,value:O,allCheckBoxValues:A,mode:c,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:r,labelCheckBoxStyle:i,labelStyle:p,width:d,draggable:y,groupLabelCheckBox:S,infoIconContainerStyle:b,checkedIconColor:u,isDisabled:l,selectionLimit:w,onDragStart:k,ref:P,onChange:H,handleChangeEvent:V,rowHeight:C},children:xl})})})]})}})}const xl=({index:e,style:o,data:c})=>{const l=a.useRef(null),{checkBoxes:m,value:p,allCheckBoxValues:i,mode:r,name:d,checkBoxContainerStyle:h,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:y,width:w,draggable:b,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:I,isDisabled:T,selectionLimit:$,onDragStart:D,ref:v,handleChangeEvent:S}=c,B=m[e];return t.jsx(kl,{style:{...o,width:"100%"},ref:l,children:t.jsx(Lo,{checkBox:B,index:e,value:p,allCheckBoxValues:i,mode:r,name:d,checkBoxContainerStyle:h,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:f,labelStyle:y,width:w,draggable:b,groupLabelCheckBox:k,infoIconContainerStyle:C,checkedIconColor:I,isDisabled:T,selectionLimit:$,onDragStart:D,ref:v,onChangeHandler:S})})},Lo=a.forwardRef((e,o)=>{const{value:c,checkBox:l,groupLabelCheckBox:m,allCheckBoxValues:p,selectionLimit:i,mode:r,checkBoxStyle:d,labelCheckBoxStyle:h,isDisabled:u,draggable:x,checkBoxContainerStyle:f,infoIconContainerStyle:y,name:w,index:b,width:k,checkedIconColor:C,checkBoxIconStyle:I,labelStyle:T,onDragStart:$,onChangeHandler:D}=e,v=we();let S=c.includes(l.value);const B=Array.from(new Set([...c,l.value]));return m?.value===l.value&&c.length>0&&(S=i!=null?B.length===p.length||B.length===i+1:p.every(A=>B.includes(A)===!0)),t.jsxs(vl,{mode:r,draggable:x===!0,onDragStart:A=>{$?.(A,l.value)},style:f,isDisabled:u,isSelected:S,exceptionMode:l.exceptionMode,children:[l.prefix?t.jsx(wl,{className:"prefix-box",children:l.prefix}):null,l.isException?t.jsx(bl,{style:y,className:"checkbox-alert",children:t.jsx(fe,{style:{padding:`12px ${n.sp3}`},title:l.exceptionInfo??"",placement:"bottom-start",children:l.exceptionType==="info"?t.jsx(Sl,{}):t.jsx(jl,{})})}):t.jsx(cr,{name:`${w}.${l.value}`,checkBoxValue:l.value,value:S,checkedIconColor:C,isDisabled:u||!l.groupLabel&&!S&&i!=null&&B.length===i+1?"disabled":void 0,checkBoxStyle:r==="off"||l.isException?v==="small"?{display:"none",...d}:{visibility:"hidden",...d}:l.groupLabel?p.length===1&&p[0]===m?.value?{visibility:"hidden",...h}:h:d,checkBoxIconStyle:I,ref:A=>{typeof o=="function"?o(A):o&&(o.current=A)},onChange:D}),typeof l.label=="string"&&l.label?t.jsx(dr,{isDisabled:u,label:l.label,labelStyle:T,htmlFor:`${w}.${l.value}`,style:{display:"flex",flex:1,minHeight:n.sp4,marginLeft:n.sp2,width:k,backgroundColor:"inherit",...T}}):l.label]},`${l.value}_${b}`)});Lo.displayName="CheckBoxWithLabel";const fl=({event:e,value:o,allCheckBoxValues:c,groupLabelCheckBox:l,onChange:m})=>{const p=e.currentTarget.value,i=e.currentTarget.checked,r=l?.value,d=new Set(o);if(p===r)return void m(i?Array.from(new Set([r,...c])):[]);i?d.add(p):d.delete(p);const h=c.every(u=>d.has(u));r!=null&&(h&&!d.has(r)?d.add(r):!h&&d.has(r)&&d.delete(r)),m(Array.from(d))},yl=s.div`
155
- display: flex;
156
- flex-direction: column;
157
- width: 100%;
158
- height: 100%;
159
- `,Cl=s.div`
160
- flex: 1;
161
- overflow: hidden;
162
- `,wl=s.div`
163
- opacity: 0;
164
- `,vl=s.div`
165
- display: flex;
166
- align-items: center;
167
- flex-direction: row;
168
- width: 100%;
169
- min-height: ${n.sp4};
170
-
171
- ${e=>e.mode==="checked_or_hover"&&Ye`
172
- input:not(:checked) ~ .unchecked-icon {
173
- opacity: 0;
174
- }
175
-
176
- :hover {
177
- input:not(:checked) ~ .unchecked-icon,
178
- .prefix-box {
179
- opacity: 1;
180
- }
181
- }
182
- `};
183
-
184
- ${e=>e.mode==="hover_only"&&Ye`
185
- input:not(:checked) ~ .unchecked-icon,
186
- input:checked ~ .checked-icon {
187
- opacity: 0;
188
- }
189
-
190
- :hover {
191
- input:not(:checked) ~ .unchecked-icon,
192
- input:checked ~ .checked-icon,
193
- .prefix-box {
194
- opacity: 1;
195
- }
196
- }
197
- `};
198
-
199
- label {
200
- color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
201
- ${e=>e.isDisabled==="disabled"&&Ye`
202
- color: ${e.theme.colors.grey2};
203
- `};
204
- cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
205
- pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
206
- }
207
-
208
- .checkbox-alert {
209
- opacity: 0;
210
- }
211
-
212
- ${e=>e.exceptionMode==="hover_only"&&Ye`
213
- :hover {
214
- .checkbox-alert {
215
- opacity: 1;
216
- }
217
- }
218
- `}
219
-
220
- ${e=>e.exceptionMode==="checked_or_hover"&&Ye`
221
- .checkbox-alert {
222
- opacity: 1;
223
- }
224
- `}
225
- `,bl=s.div`
226
- cursor: pointer;
227
- `,Sl=s(oa)`
228
- height: ${n.sp3};
229
- width: ${n.sp3};
230
- color: ${e=>e.theme.colors.hero};
231
- background-color: ${e=>e.theme.colors.grey4};
232
- border-radius: 50%;
233
- `,jl=s(ka)`
234
- height: ${n.sp3};
235
- width: ${n.sp3};
236
- color: ${e=>e.theme.colors.hero};
237
- background-color: ${e=>e.theme.colors.grey4};
238
- border-radius: 50%;
239
- `,kl=s.div`
240
- width: 100%;
241
- box-sizing: border-box;
242
- `,Il=s.div`
243
- width: 100%;
244
- display: flex;
245
- justify-content: center;
246
- align-items: center;
247
- flex: 1;
248
- background: ${e=>e.theme.colors.grey4};
249
- box-sizing: border-box;
250
- `,$l=s(e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),a.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),a.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})))`
251
- width: 90px;
252
- height: 90px;
253
- `,Tl=s(e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),a.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),a.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})))`
254
- width: 90px;
255
- height: 90px;
256
- `,Ll=s(e=>a.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("g",{opacity:.2},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),a.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),a.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})))`
257
- width: 90px;
258
- height: 90px;
259
- `,Al=s(e=>a.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),a.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),a.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),a.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),a.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),a.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})))`
260
- width: 90px;
261
- height: 90px;
262
- `,Rl=s.div`
263
- display: flex;
264
- align-items: center;
265
- justify-content: center;
266
- flex-direction: column;
267
- `,El=s(Ks)`
268
- margin-top: ${n.sp2};
269
- color: ${e=>e.theme.colors.brandColorJade};
270
- `,Dl=s(Gs)`
271
- color: ${e=>e.theme.colors.primary};
272
- `,Bl=e=>{const{tab:o}=e;switch(o){case"transaction_categorization":return t.jsx($l,{});case"je_schedules":case"reconciliation":return t.jsx(Al,{});case"flux_analysis":return t.jsx(Ll,{});default:return t.jsx(Tl,{})}};function bt(e){const{title:o,subTitle:c}=e;return t.jsx(Il,{children:t.jsxs(Rl,{children:[t.jsx(Bl,{...e}),t.jsx(El,{children:o}),t.jsx(Dl,{children:c})]})})}const{common:{headers:{transactions:Ol,jeSchedules:Fl,fluxAnalysis:zl,missingReceipts:Pl,insights:Ml,reconciliation:Yo},strings:{empty:zt}},expenseAutomation:{transactions:{tabs:Xo,subTitles:{review:{item1:yn,item2:Cn},autoCategorized:{item1:wn,item2:_l}},searchPlaceholder:Nl,allDoneText:Vl},jeSchedules:{subTitles:{item1:Hl,item2:Wl},searchPlaceholder:Ul,allDoneText:ql},missingReceipts:{subTitles:Jl,searchPlaceholder:Kl,allDoneText:Gl},fluxAnalysis:{subTitles:{item1:Zl,item2:Yl},searchPlaceholder:Xl,emptyPageTexts:{youDidIt:Ql,allReviewed:ec}},accountRecon:{review:{allDoneText:Qo},reconcile:{allDoneText:tc},tabs:ei,titles:{item1:nc,item2:oc},subTitles:{review:{item1:ic,item2:vn},reconcile:{item1:bn,item2:ac}}}}}=ve.getLocalizedStrings(),Ve=(e,o,c,l,m)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Ol,subTitle:[],tabs:[{label:Xo.review,id:"review",subTitle:[{pre:yn.pre,bold:yn.bold,prefixIconName:yn.prefixIconName,post:yn.post},{pre:Cn.pre,bold:Cn.bold,prefixIconName:Cn.prefixIconName,post:Cn.post}]},{label:Xo.autoCategorized,id:"autoCategorized",subTitle:[{pre:wn.pre,bold:wn.bold,prefixIconName:wn.prefixIconName,post:wn.post.replace("#number",o!=null&&o!=0?o.toString():"")},_l]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Nl,allDoneText:Vl};case"je_schedules":return{key:"je_schedules",title:Fl,subTitle:[Hl,Wl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ul,allDoneText:ql};case"missing_receipts":return{key:"missing_receipts",title:Pl,subTitle:[Jl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Kl,allDoneText:Gl};case"flux_analysis":return{key:"flux_analysis",title:zl,subTitle:[Zl,Yl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Xl,allDoneText:{title:Ql,subTitle:ec}};case"month_end_insights":return{key:"month_end_insights",title:Ml,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}};case"reconciliation":return c==null?{key:"reconciliation",title:Yo,subTitle:[nc,oc],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}}:{key:"reconciliation",title:l??Yo,subText:m??void 0,subTitle:[],tabs:[{label:ei.review,id:"review",subTitle:[ic,{pre:vn.pre,bold:vn.bold,prefixIconName:vn.prefixIconName,post:vn.post}],allDoneText:Qo},{label:ei.reconcile,id:"reconcile",subTitle:[{pre:bn.pre,bold:bn.bold,prefixIconName:bn.prefixIconName,post:bn.post},ac],allDoneText:tc}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:zt,allDoneText:Qo}}},{common:{strings:{empty:sc}},expenseAutomation:{accountRecon:{reconcile:{header:$t}}}}=ve.getLocalizedStrings(),Ee=[{key:"date",value:$t.date,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginLeft:g[4],marginRight:g[3]}},{key:"clearedDate",value:$t.clearedDate,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3],display:"none"}},{key:"type",value:$t.type,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"payee",value:$t.payee,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"account",value:$t.account,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"transactionDirection",value:$t.direction,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"memo",value:$t.memo,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"amount",value:$t.amount,sortOrder:"ascending",width:new Q(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},{key:"recommended",value:sc,sortOrder:"ascending",width:new Q(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}}],qn="date",ti="descending",rc=$a.memo(function({sortConfig:e,onReconTabColumnSortConfigChanged:o}){const c=we(),[l,m]=a.useState(Io(Ee));a.useEffect(()=>{const i=[...l];for(const r of i)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";m(i)},[e.sortKey,e.sortOrder]);const p=i=>{((r,d)=>{let h=d;e.sortKey===r&&(h=d==="ascending"?"descending":"ascending"),o(r,h)})(i.key,i.sortOrder)};return t.jsx(dc,{headerHeight:50,children:l.map(i=>t.jsx(lc,{columnWidth:i.width,windowSize:c,sortDataValue:e.sortKey,actualDataValue:i.key,style:i.customStyle,children:t.jsxs(gc,{isVisible:i.key!=="recommended",children:[t.jsx(cc,{"data-testid":_("reconcile-tab-list-sort",i.value),onClick:()=>p(i),children:t.jsx(mt,{children:i.value})}),t.jsx(uc,{sortConfig:e,headerData:i,children:t.jsx(hc,{})}),t.jsx(pc,{isVisible:e.sortKey===i.key&&(e.sortKey!==qn||e.sortOrder!==ti),children:t.jsx(mc,{"data-testid":_("reconcile-tab-list-reset-sort",qn),onClick:()=>o(qn,ti)})})]})},i.key))})}),lc=s.div`
273
- color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
274
- :hover {
275
- color: ${e=>e.theme.colors.primary};
276
- }
277
- width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
278
- display: flex;
279
- align-items: center;
280
- height: 100%;
281
- justify-content: flex-start;
282
- gap: 6px;
283
- z-index: auto;
284
- position: relative;
285
- `,cc=s.div`
286
- display: flex;
287
- gap: 5px;
288
- cursor: pointer;
289
- `,dc=s(jt)`
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: ${n.sp3} ${n.sp8} ${n.sp3} ${n.sp0};
299
- position: sticky;
300
- color: ${e=>e.theme.colors.grey1};
301
- `,uc=s.div`
302
- display: flex;
303
- align-items: center;
304
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
305
- ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
306
- `,hc=s(Fn)`
307
- width: ${n.sp2};
308
- height: ${n.sp2};
309
- `,pc=s.div`
310
- display: ${e=>e.isVisible?"flex":"none"};
311
- align-items: center;
312
- padding-top: 2px;
313
- cursor: pointer;
314
- color: ${e=>e.theme.colors.grey1};
315
- &:hover {
316
- color: ${e=>e.theme.colors.primary};
317
- }
318
- `,mc=s(zn)`
319
- width: 12px;
320
- height: 12px;
321
- `,gc=s.div`
322
- display: ${e=>e.isVisible?"flex":"none"};
323
- `,{common:{strings:{hyphen:Jn}}}=ve.getLocalizedStrings(),{dateFormat:ni}=ve.getLocalizedStrings();function xc({selectedTransactionIds:e,transaction:o,transactionId:c}){const l=we(),m=St(),[p,i]=a.useState(!1),r=e.includes(c),d=p||r;return t.jsx(fc,{id:c,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(yc,{isSelected:d,totalHeight:54,children:[t.jsx(xt,{windowSize:l,responsiveWidth:Ee[0].width,style:Ee[0].customStyle,children:t.jsx(Pt,{isSelected:d,children:o.date.format(ni.visual.MMMDCommaYYYYformat)})}),Ee[1].customStyle.display!=="none"?t.jsx(xt,{windowSize:l,responsiveWidth:Ee[1].width,style:Ee[1].customStyle,children:t.jsx(Pt,{isSelected:d,children:o.clearedDate!=null?o.clearedDate.format(ni.visual.MMMDCommaYYYYformat):t.jsx("span",{children:Jn})})}):null,t.jsx(xt,{windowSize:l,style:Ee[2].customStyle,responsiveWidth:Ee[2].width,children:t.jsx(vc,{isSelected:d,children:t.jsx(Cc,{isSelected:d,children:ar(o.type)})})}),t.jsx(xt,{windowSize:l,style:Ee[3].customStyle,responsiveWidth:Ee[3].width,children:o.merchantName!=null&&o.merchantName.length>0?t.jsx(nt,{text:o.merchantName,itemTextStyle:{color:d?m.colors.primary:m.colors.hero}}):t.jsx(Pt,{isSelected:d,children:t.jsx("span",{children:Jn})})}),t.jsx(xt,{windowSize:l,style:Ee[4].customStyle,responsiveWidth:Ee[4].width,children:o.accountName!=null&&o.accountName.length>0?t.jsx(nt,{text:o.accountName,itemTextStyle:{color:d?m.colors.primary:m.colors.hero}}):t.jsx(Pt,{isSelected:d,children:t.jsx("span",{children:Jn})})}),t.jsx(xt,{windowSize:l,style:Ee[5].customStyle,responsiveWidth:Ee[5].width,children:t.jsx(Pt,{isSelected:d,style:{textTransform:"capitalize"},children:o.transactionDirection})}),t.jsx(xt,{windowSize:l,style:Ee[6].customStyle,responsiveWidth:Ee[6].width,children:t.jsx(nt,{text:o.memo,itemTextStyle:{color:d?m.colors.primary:m.colors.hero}})}),t.jsx(xt,{windowSize:l,style:Ee[7].customStyle,responsiveWidth:Ee[7].width,children:t.jsx(Pt,{isSelected:d,children:Je("0,0.[00]",o.amount)})}),t.jsx(xt,{windowSize:l,responsiveWidth:Ee[8].width,style:Ee[8].customStyle,children:t.jsx(Pt,{isSelected:d,children:o.isZeniRecommended?t.jsx(wc,{}):null})})]})})}const fc=s.div`
324
- box-sizing: border-box;
325
- width: 100%;
326
- display: flex;
327
- padding-right: ${n.sp8};
328
- `,yc=s.div`
329
- cursor: pointer;
330
- display: flex;
331
- border-radius: ${n.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=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
339
- :hover {
340
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
341
- }
342
- `,xt=s.div`
343
- width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
344
- display: flex;
345
- align-items: center;
346
- justify-content: flex-start;
347
- height: 100%;
348
- z-index: auto;
349
- position: relative;
350
- `,Pt=s(Oe)`
351
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
- span {
353
- padding-left: ${n.sp3};
354
- }
355
- `,Cc=s(mt)`
356
- text-transform: capitalize;
357
- color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
- `,wc=s(gn)`
359
- width: ${n.sp3};
360
- height: ${n.sp3};
361
- margin-right: ${n.sp1};
362
- path {
363
- stroke-width: 2;
364
- }
365
- `,vc=s.div`
366
- padding: 1px 6px;
367
- border-radius: ${n.sp1};
368
- border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
369
- `,bc=ve.getLocalizedStrings(),{common:{all:oi,strings:{empty:ii}}}=bc,ai="selectedTransactionIds";function Sc({currentFooterFormId:e,localData:o,matchedTransactions:c,sortConfig:l,onSaveReconciliation:m,selectedAccountId:p,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:r,setCurrentFooterFormId:d}){const h=Jt({mode:"all",defaultValues:{selectedTransactionIds:o.selectedTransactionIds},values:{selectedTransactionIds:o.selectedTransactionIds}}),u=[{label:t.jsx(rc,{onReconTabColumnSortConfigChanged:i,sortConfig:l}),value:oi.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},...c.map(y=>({label:t.jsx(xc,{transaction:y,selectedTransactionIds:o.selectedTransactionIds,transactionId:y.id}),value:y.id,defaultChecked:!1,groupLabel:!1}))];a.useEffect(()=>{const y=h.watch(w=>{w!=null&&xn(()=>(async b=>{const k=b[ai].filter(C=>C!=oi.toLocaleLowerCase());r(k)})(w))});return()=>{y.unsubscribe()}}),a.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&d("expenseAutomationBankReconReconcilePage"),()=>{d("expenseAutomationPage")}),[]);const x=a.useCallback(()=>{m({reconcileAction:"reconcile"})},[m]);if(c.length===0){const y=Ve("reconciliation",void 0,p).tabs.find(w=>w.id==="reconcile")?.allDoneText;return t.jsx($c,{children:t.jsx(bt,{tab:"missing_receipts",title:y?.title??ii,subTitle:y?.subTitle??ii})})}return t.jsx(jc,{children:t.jsx(Kt,{...h,children:t.jsx(kc,{onSubmit:h.handleSubmit(x),id:(f="expenseAutomationBankReconReconcilePage",`${f}_form`),children:t.jsx(Ic,{children:t.jsx(gl,{name:ai,checkBoxes:u,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:72,mode:o.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})});var f}const jc=s.div``,kc=s.form``,Ic=s.div`
370
- height: calc(100vh - 350px);
371
- `,$c=s.div`
372
- height: 100%;
373
- display: flex;
374
- justify-content: center;
375
- align-items: center;
376
- `,wt=187,Ut=136,ut=240,qt=146,za=s.div`
377
- display: flex;
378
- flex-direction: column;
379
- background-color: ${e=>e.theme.colors.grey4};
380
- width: 100%;
381
- min-height: 100%;
382
- height: calc(100vh - 500px);
383
- overflow-x: scroll;
384
- align-items: center;
385
- `,Pa=s.div`
386
- display: flex;
387
- flex-direction: column;
388
- gap: ${n.sp5};
389
- align-items: flex-start;
390
- padding-bottom: ${n.sp9};
391
- width: 100%;
392
- `,Ma=s.div`
393
- width: 100%;
394
- `,_a=s.div`
395
- width: 100%;
396
- `,Ao=s.div`
397
- display: flex;
398
- flex-direction: row;
399
- padding: ${n.sp2};
400
- padding-right: ${n.sp3};
401
- justify-content: space-between;
402
- border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
403
- `,Ro=s.div`
404
- display: flex;
405
- flex-direction: row;
406
- justify-content: space-between;
407
- padding: ${n.sp2};
408
- padding-right: ${n.sp3};
409
- `,Tc=s.div`
410
- border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
411
- display: flex;
412
- flex-direction: row;
413
- justify-content: space-between;
414
- padding: ${n.sp2};
415
- padding-right: ${n.sp3};
416
- `,Lc=s.div`
417
- padding: ${n.sp2} ${n.sp3};
418
- `,Eo=s.div`
419
- display: flex;
420
- `,Ac=s.div`
421
- display: flex;
422
- align-items: center;
423
- justify-content: center;
424
- gap: ${n.sp1};
425
- padding: ${n.sp2} ${n.sp0};
426
- background-color: ${e=>e.theme.colors.grey3};
427
- border-bottom-left-radius: ${n.sp2};
428
- border-bottom-right-radius: ${n.sp2};
429
- `,Do=s.div`
430
- display: flex;
431
- flex-direction: column;
432
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
433
- border-radius: ${n.sp2};
434
- background-color: ${e=>e.theme.colors.grey5};
435
- box-shadow: ${e=>e.theme.colors.elevation1};
436
- cursor: pointer;
437
- border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
438
- .highlight {
439
- color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
440
- }
441
- :hover {
442
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
443
- }
444
- :hover .highlight {
445
- color: ${e=>e.theme.colors.primary};
446
- }
447
- `,X=s.div`
448
- display: flex;
449
- flex-direction: column;
450
- width: 180px;
451
- padding: ${n.sp2};
452
- .hover-background {
453
- border-radius: ${n.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: ${n.sp2};
474
- }
475
- }
476
- `,ct=s.div`
477
- padding: ${n.sp2} ${n.sp3};
478
- `,te=s(mt)`
479
- color: ${e=>e.theme.colors.hero};
480
- `,le=s(Oe)`
481
- width: 100%;
482
- color: ${e=>e.theme.colors.hero};
483
- white-space: nowrap;
484
- overflow: hidden;
485
- text-overflow: ellipsis;
486
- `,ie=s.div`
487
- display: flex;
488
- gap: ${n.sp1};
489
- color: ${e=>e.theme.colors.primary};
490
- .select-value-container {
491
- .auto-complete-single-select-field__input-container {
492
- .auto-complete-single-select-field__input {
493
- text-align: left;
494
- }
495
- }
496
- .grouped-single-select-field__input-container {
497
- .grouped-single-select-field__input {
498
- text-align: left;
499
- }
500
- }
501
- }
502
- `,Bo=s.div`
503
- border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
504
- display: flex;
505
- flex-direction: column;
506
- gap: ${n.sp3};
507
- align-items: center;
508
- justify-content: center;
509
- padding: ${n.sp0} 42px;
510
- `,Oo=s.div`
511
- flex: 1;
512
- `,Na=s(mt)`
513
- padding: ${n.sp0} 6px;
514
- color: ${Xe.info};
515
- border: 1px solid ${Xe.info};
516
- border-radius: ${n.sp1};
517
- margin-top: ${n.sp1};
518
- `,An=s(jt)`
519
- padding: ${n.sp2};
520
- color: ${e=>e.theme.colors.hero};
521
- background: ${e=>e.theme.colors.overlayColor};
522
- border-radius: ${n.sp1};
523
- `,qe=s(An)`
524
- padding: 2px ${n.sp2};
525
- `,Zt=ve.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Ct=[{key:"date",value:Zt.date,sortOrder:"ascending",width:new Q(20,20),loaderWidth:120},{key:"payee",value:Zt.payee,sortOrder:"ascending",width:new Q(20,20),loaderWidth:212},{key:"memo",value:Zt.memo,sortOrder:"ascending",width:new Q(20,20),loaderWidth:192},{key:"direction",value:Zt.direction,sortOrder:"ascending",width:new Q(15,15),loaderWidth:84},{key:"match",value:Zt.match,sortOrder:"ascending",width:new Q(15,15),loaderWidth:152},{key:"amount",value:Zt.amount,sortOrder:"ascending",width:new Q(10,10),loaderWidth:64}],Rc=$a.memo(e=>{const{sortConfig:o,onColumnSortConfigChanged:c}=e,l=we(),[m,p]=a.useState(Io(Ct));a.useEffect(()=>{const r=[...m];for(const d of r)d.key===o.sortKey?d.sortOrder=o.sortOrder:d.sortOrder="ascending";p(r)},[o.sortKey,o.sortOrder]);const i=(r,d)=>{let h=d;o.sortKey===r&&(h=d==="ascending"?"descending":"ascending"),c(r,h)};return t.jsx(Ec,{children:m.map(r=>t.jsxs(Dc,{sortDataValue:o.sortKey,actualDataValue:r.key,wrapperWidth:r.width,windowSize:l,isLastColumn:r.key==="amount",children:[t.jsxs(Bc,{"data-testid":_("account-reconciliation-review-header",r.value),sortKey:r.key,onClick:()=>i(r.key,r.sortOrder),children:[t.jsx(mt,{children:r.value}),t.jsx(Oc,{sortDataValue:o.sortKey,headerData:r,children:t.jsx(Fc,{})})]}),t.jsx(zc,{sortDataValue:o.sortKey,windowSize:l,isVisible:o.sortKey===r.key&&(o.sortKey!=="date"||o.sortOrder==="ascending"),children:t.jsx(Pc,{"data-testid":_("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},r.key))})}),Ec=s(jt)`
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: ${n.sp3} ${n.sp4};
535
- position: sticky;
536
- color: ${e=>e.theme.colors.grey1};
537
- background-color: ${e=>e.theme.colors.grey4};
538
- `,Dc=s.div`
539
- color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
540
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
541
- min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
542
- display: flex;
543
- align-items: center;
544
- gap: 5px;
545
- left: ${n.sp0};
546
- justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
547
- `,Bc=s.div`
548
- display: flex;
549
- cursor: pointer;
550
- gap: ${n.sp1};
551
- &:hover {
552
- color: ${e=>e.theme.colors.primary};
553
- }
554
- white-space: nowrap;
555
- `,Oc=s.div`
556
- display: flex;
557
- align-items: center;
558
- transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
559
- ${e=>e.headerData.sortOrder==="ascending"?Ye`
560
- padding-top: 2px;
561
- `:Ye`
562
- padding-bottom: 2px;
563
- `}
564
- `,Fc=s(Fn)`
565
- width: ${n.sp2};
566
- height: ${n.sp2};
567
- cursor: pointer;
568
- color: inherit;
569
- `,zc=s.div`
570
- display: ${e=>e.isVisible?"flex":"none"};
571
- align-items: center;
572
- padding-top: 2px;
573
- `,Pc=s(zn)`
574
- width: 12px;
575
- height: 12px;
576
- cursor: pointer;
577
- color: ${e=>e.theme.colors.hero};
578
- `,st="accountReconReviewTableSection",{dateFormat:Mc,expenseAutomation:_c,common:ht}=ve.getLocalizedStrings(),{visual:Va}=Mc,{accountRecon:me}=_c,Ha=e=>[{label:me.review.formLabels.allBankAccounts,options:e.map(o=>({label:o.accountName,value:o.accountId}))}],Wa=e=>[{label:me.review.formLabels.allCreditCards,options:e.map(o=>({label:o.accountName,value:o.accountId}))}],si=e=>`${st}_${e}_form`,$e=(e,o)=>`${st}.${e}.${o}`,Nc=e=>{const{sortKey:o,sortOrder:c,accountReconEntity:l,entitySearchAutoCompleteActions:m,allAccountList:p,classList:i,localData:r,accountListNestedAccountHierarchy:d,classListNestedAccountHierarchy:h,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:w,refreshStatus:b,updateLocalData:k,onColumnSortConfigChanged:C,onSaveReconciliation:I,onSaveReconciliationReview:T,onReconMatchedTransactionClick:$,bankAccounts:D,creditCards:v}=e,{transactionsToReview:S}=l,B=a.useRef(null),[A,z]=a.useState(null),O=H=>{const V=S[H],W=La(V),ee=Aa(V),R=Ra(V),xe=Ea(V),ce=Da(V),K=To(V),N=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===A?ee||R||xe||ce||K?275+(N?25:0):W?185+40*V.recommendedAction.recommendedTransactions.length+(N?25:0):146:72},P=a.useMemo(()=>({onColumnSortConfigChanged:C,sortConfig:{sortKey:o,sortOrder:c}}),[C,o,c]);if(a.useEffect(()=>{z(S[0]?.transactionId??null),B.current?.resetAfterIndex(0)},[o,c]),a.useEffect(()=>{B.current?.resetAfterIndex(0)},[A]),a.useEffect(()=>{B.current?.resetAfterIndex(0)},[S.length]),a.useEffect(()=>{b.fetchState==="Completed"&&B.current?.resetAfterIndex(0)},[b]),S.length===0){const H=Ve("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(cd,{children:t.jsx(bt,{tab:"reconciliation",title:H?.title??ht.strings.empty,subTitle:H?.subTitle??ht.strings.empty})})}return t.jsx(Gc,{children:t.jsx(Ua.Provider,{value:P,children:t.jsx(Bn,{children:({height:H,width:V})=>t.jsx(On,{width:V,height:H,innerElementType:qa,ref:B,itemCount:S.length,itemSize:O,itemKey:W=>S[W].transactionId,overscanCount:tr,itemData:{transactionsList:S,expandedRowId:A,allAccountList:p,classList:i,accountListNestedAccountHierarchy:d,classListNestedAccountHierarchy:h,localData:r,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:m,excludeFetchById:f,saveFetchById:y,reviewTabSelectedVendorByTransactionId:w,bankAccounts:D,creditCards:v,updateLocalData:k,setExpandedRowId:z,onSaveReconciliation:I,onSaveReconciliationReview:T,onReconMatchedTransactionClick:$},initialScrollOffset:0,children:Vc})})})})},Ua=a.createContext(void 0),qa=a.forwardRef((e,o)=>{const{children:c,style:l,...m}=e,{sortConfig:p,onColumnSortConfigChanged:i}=a.useContext(Ua);return t.jsxs(Zc,{ref:o,style:{...l,width:"auto",padding:`${n.sp0} ${n.sp8}`},...m,children:[t.jsx(Rc,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Yc,{children:c})]})});qa.displayName="Account recon review table inner element type";const Vc=({index:e,style:o,data:c})=>{const{transactionsList:l,expandedRowId:m,setExpandedRowId:p,entitySearchAutoCompleteActions:i,allAccountList:r,classList:d,localData:h,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:f,entitySearchAutoCompleteData:y,onSaveReconciliation:w,onSaveReconciliationReview:b,onReconMatchedTransactionClick:k,excludeFetchById:C,saveFetchById:I,reviewTabSelectedVendorByTransactionId:T,bankAccounts:$,creditCards:D}=c,v=l[e];return t.jsx(Kc,{style:{...o,width:"100%"},children:t.jsx(Hc,{transaction:v,expandedRowId:m,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:r,classList:d,localData:h,updateLocalData:u,entitySearchAutoCompleteData:y,classListNestedAccountHierarchy:f,onSaveReconciliation:w,onSaveReconciliationReview:b,onReconMatchedTransactionClick:k,excludeFetchById:C,saveFetchById:I,selectedVendor:T[v.transactionId],bankAccounts:$,creditCards:D})})},Hc=({transaction:e,expandedRowId:o,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:l,allAccountList:m,classList:p,classListNestedAccountHierarchy:i,localData:r,entitySearchAutoCompleteData:d,excludeFetchById:h,saveFetchById:u,selectedVendor:x,bankAccounts:f,creditCards:y,setExpandedRowId:w,updateLocalData:b,onSaveReconciliation:k,onSaveReconciliationReview:C,onReconMatchedTransactionClick:I})=>{const T=o===e.transactionId,$=we(),D=r[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",S=e.recommendedAction.action==="record_expense",B=To(e),A=m.find(P=>P.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),z=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Uc,{isExpanded:T,children:[t.jsxs(qc,{isExpanded:T,onClick:()=>w(e.transactionId),"data-testid":_("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Xt,{windowSize:$,responsiveWidth:Ct[0].width,children:t.jsx(Yt,{children:e.transactionDate.format(Va.MMMDCommaYYYYformat)})}),t.jsx(Xt,{windowSize:$,responsiveWidth:Ct[1].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"},text:(O=e,O.recommendedAction.recommendedTransactions.length>0&&O.recommendedAction.recommendedTransactions[0].merchantName!=null?O.recommendedAction.recommendedTransactions[0].merchantName:ht.strings.hyphen)})})}),t.jsx(Xt,{windowSize:$,responsiveWidth:Ct[2].width,children:t.jsx(Yt,{children:t.jsx(nt,{itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Xt,{windowSize:$,responsiveWidth:Ct[3].width,children:t.jsx(Yt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Xt,{windowSize:$,responsiveWidth:Ct[4].width,children:[t.jsx(_e,{controller:v,children:t.jsx(dd,{children:t.jsx(ud,{children:me.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(_e,{controller:!v,children:t.jsx(Yt,{children:A!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ja,{}),t.jsx(nt,{itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):ht.strings.hyphen})})]}),t.jsx(Xt,{windowSize:$,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Yt,{children:Ia("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(_e,{controller:T&&D!=null,children:[t.jsx(Wc,{onSaveReconciliation:k,onSaveReconciliationReview:C,updateLocalData:b,saveFetchById:u,excludeFetchById:h,localData:D,classListNestedAccountHierarchy:i,allAccountList:m,classList:p,transaction:e,accountListNestedAccountHierarchy:c,entitySearchAutoCompleteActions:l,entitySearchAutoCompleteData:d,selectedVendor:x,bankAccounts:f,creditCards:y,onReconMatchedTransactionClick:I}),t.jsx(_e,{controller:(v||S||B)&&z!=null,children:t.jsx(pd,{children:t.jsxs(md,{children:[me.review.bankDetail,ht.strings.colon," ",z]})})})]})]});var O},Wc=({transaction:e,accountListNestedAccountHierarchy:o,entitySearchAutoCompleteActions:c,allAccountList:l,classList:m,classListNestedAccountHierarchy:p,localData:i,entitySearchAutoCompleteData:r,excludeFetchById:d,saveFetchById:h,selectedVendor:u,bankAccounts:x,creditCards:f,updateLocalData:y,onSaveReconciliation:w,onSaveReconciliationReview:b,onReconMatchedTransactionClick:k})=>{const C=St(),[I,T]=a.useState(!i.vendor?.id),[$,D]=a.useState(!i.customer?.id),[v,S]=a.useState(i.categoryId==null),[B,A]=a.useState(i.classId==null),[z,O]=a.useState(i.bankAccountId==null),[P,H]=a.useState(i.creditCardId==null),[V,W]=a.useState(!i.memo),ee=La(e),R=Aa(e),xe=Ea(e),ce=Ra(e),K=Da(e),N=To(e),F=a.useMemo(()=>{if(!R&&!N)return Dt(o);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Dt(o,u?.recommendations);const j=l.find(ne=>ne.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Z=j!=null?{...j,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return Dt(o,[{account:Z}])},[R,N,u,e.recommendedAction.recommendedTransactions,l,o]),L=a.useMemo(()=>{if(!R&&!N)return Ln(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Ln(p,u?.recommendations);const j=m.find(ne=>ne.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Z=j!=null?{...j,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return Ln(p,[{class:Z}])},[R,N,u,e.recommendedAction.recommendedTransactions,m,p]),M=Jt({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:a.useMemo(()=>ri(e,i,F,l,L,x,f,r),[e,i,L,l,F,x,f,r]),values:a.useMemo(()=>ri(e,i,F,l,L,x,f,r),[e,i,L,l,F,x,f,r])});a.useEffect(()=>{const j=M.watch((Z,{name:ne})=>{ne!=null&&Z!=null&&xn(()=>(async(ae,pe)=>{ae.includes("memo")||y(li(pe,e,r,l),e.transactionId,ae.includes("vendor"))})(ne,Z))});return()=>{j.unsubscribe()}});const J=a.useCallback(j=>{if(R||K||N){if((R||N)&&i.vendor==null)return T(!1),void M.setError($e(e.transactionId,"vendor"),{type:"required"});if(K&&i.customer==null)return D(!1),void M.setError($e(e.transactionId,"customer"),{type:"required"});if(i.categoryId==null)return S(!1),void M.setError($e(e.transactionId,"category"),{type:"required"})}y(li(j,e,r,l),e.transactionId,!1),b(e.transactionId)},[R,N,K,y,e,r,l,b,i.categoryId,i.vendor,i.customer]),U=M.watch($e(e.transactionId,"vendor")),se=M.watch($e(e.transactionId,"customer")),q=a.useRef(),Y=a.useMemo(()=>R||N?"vendor":K?"customer":null,[R,N,K]),E=(j,Z)=>{Y!=null&&c.onAutoCompleteInputChange?.(j,Y),q.current=Z};a.useEffect(()=>{r.entityAutoCompleteView.fetchState==="Completed"&&((R||N)&&q.current?.(Ca(r.entityAutoCompleteView)),K&&q.current?.(xr(r.entityAutoCompleteView)))},[r.entityAutoCompleteView,K,R,N]);const G=a.useMemo(()=>{switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}},[e.recommendedAction.action]);return a.useEffect(()=>{v===!1&&i.categoryId==null&&M.setFocus($e(e.transactionId,"category"))},[v]),a.useEffect(()=>{B===!1&&i.classId==null&&M.setFocus($e(e.transactionId,"class"))},[B]),a.useEffect(()=>{I===!1&&i.vendor==null&&M.setFocus($e(e.transactionId,"vendor"))},[I]),a.useEffect(()=>{$===!1&&i.customer==null&&M.setFocus($e(e.transactionId,"customer"))},[$]),a.useEffect(()=>{z===!1&&i.bankAccountId==null&&M.setFocus($e(e.transactionId,"bankAccount"))},[z]),a.useEffect(()=>{P===!1&&i.creditCardId==null&&M.setFocus($e(e.transactionId,"creditCard"))},[P]),t.jsx(Kt,{...M,children:t.jsx("form",{onSubmit:M.handleSubmit(J),id:si(e.transactionId),children:t.jsxs(Jc,{children:[t.jsxs(Xc,{children:[t.jsxs(td,{children:[t.jsxs(nd,{children:[t.jsx(Ja,{}),t.jsx(Hn,{label:{label:ee?me.review.formLabels.match:me.review.formLabels.categorize},radioField:{name:$e(e.transactionId,"match_radio"),id:ee?"match":"categorize",value:ee?"match":"categorize",checked:!0,style:{width:n.sp3,height:n.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(_e,{controller:!ee,children:t.jsxs(t.Fragment,{children:[t.jsx(ci,{}),G.map(j=>t.jsx(Hn,{label:{label:me.review.formLabels[j]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:$e(e.transactionId,"recommendedActionType"),id:j,value:j,style:{width:n.sp3,height:n.sp3,padding:"2px"}}},j))]})})]}),t.jsxs(ed,{children:[t.jsx(pn,{variant:"secondary",size:"small",label:me.review.formLabels.exclude,loading:d[e.transactionId]?.fetchState==="In-Progress","data-testid":_("account-reconciliation-review-exclude-button",e.transactionId),style:{width:n.sp10},reverseSpinnerColor:!1,onClick:()=>{w({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(pn,{form:si(e.transactionId),"data-testid":_("account-reconciliation-review-save-button",e.transactionId),label:ht.footer.save,style:{width:n.sp10},variant:"primary",size:"small",type:"submit",loading:h[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(_e,{controller:R||K||N,children:t.jsxs(Kn,{children:[t.jsx(_e,{controller:R||N,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&I===!1&&T(!0)},children:t.jsx(X,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ct,{className:"hover-background",style:{padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.vendor}),t.jsx(ie,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:I===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),T(!1)},"data-testid":_("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.champion,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.addVendor]}):t.jsx(go,{name:$e(e.transactionId,"vendor"),allowEmpty:!1,placeholder:me.review.formLabels.addVendor,valueToId:j=>j,defaultValue:{selectedOption:U?.selectedOption,defaultOptions:U?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:n.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:E})})})]})})})}),t.jsx(_e,{controller:K,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&$===!1&&D(!0)},children:t.jsx(X,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ct,{className:"hover-background",style:{padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.customer}),t.jsx(ie,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),D(!1)},"data-testid":_("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.champion,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.addCustomer]}):t.jsx(go,{name:$e(e.transactionId,"customer"),allowEmpty:!1,placeholder:me.review.formLabels.addCustomer,valueToId:j=>j,defaultValue:{selectedOption:se?.selectedOption,defaultOptions:se?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:n.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:E})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&v===!1&&S(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ct,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.category}),t.jsx(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),S(!1)},"data-testid":_("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.champion,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.addCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:$e(e.transactionId,"category"),placeholder:me.review.formLabels.addCategory,valueToId:j=>(Z=>l.filter(ae=>ae.qboId===Z)[0]?.qboId)(j),defaultValue:{allOptions:F,selectedOption:l.find(j=>j.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Sn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&B===!1&&A(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ct,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ht.texts.class}),t.jsx(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:B===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),A(!1)},"data-testid":_("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.champion,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.addClass]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:$e(e.transactionId,"class"),placeholder:me.review.formLabels.addClass,valueToId:j=>(Z=>m.filter(ae=>ae.classId===Z)[0]?.accountingClassNumber??void 0)(j),defaultValue:{allOptions:L,selectedOption:i.classId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Sn})})})]})})})]})}),t.jsx(_e,{controller:ee,children:t.jsxs(od,{children:[t.jsxs(id,{children:[t.jsx("span",{className:"matched-text",children:`${me.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),me.review.matchesFoundFullInfo]}),t.jsx(sd,{children:e.recommendedAction.recommendedTransactions.map(j=>j.bookTransactionId!=null?t.jsxs(rd,{children:[t.jsx(Hn,{label:{label:t.jsxs(ad,{children:[t.jsx(Oe,{children:j.date.format(Va.MMMDCommaYYYYformat)}),t.jsx(Oe,{children:j.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:$e(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:j.bookTransactionId,value:j.bookTransactionId,style:{width:n.sp3,height:n.sp3,padding:"2px"}}}),t.jsxs(hd,{"data-testid":_("account-reconciliation-review-matched-transaction-amount",j.bookTransactionId),onClick:()=>{j.bookTransactionId!=null&&k(j.bookTransactionId)},children:[t.jsx(ld,{children:Ia("0,0.00",j.amount.amount,j.amount.currencySymbol)}),t.jsx(ci,{})]})]},j.bookTransactionId):null)})]})}),t.jsx(_e,{controller:xe,children:t.jsx(Kn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&z===!1&&O(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ct,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.transferTo}),t.jsx(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:z===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),O(!1)},"data-testid":_("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.selectAccount]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:$e(e.transactionId,"bankAccount"),placeholder:me.review.formLabels.selectAccount,defaultValue:{allOptions:Ha(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Sn})})})]})})})})}),t.jsx(_e,{controller:ce,children:t.jsx(Kn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&P===!1&&H(!0)},children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ct,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.creditCard}),t.jsx(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:P===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),H(!1)},"data-testid":_("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.selectCard]}):t.jsx(nn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:$e(e.transactionId,"creditCard"),placeholder:me.review.formLabels.selectCard,defaultValue:{allOptions:Wa(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Sn})})})]})})})})}),t.jsx(_e,{controller:!ee,children:t.jsx(Qc,{children:t.jsx(X,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ct,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.header.memo}),t.jsx(ie,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(le,{onClick:j=>{j.stopPropagation(),W(!1)},"data-testid":_("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:C.colors.champion,cursor:"pointer"},children:[t.jsx(Mt,{}),me.review.formLabels.addMemo]}):t.jsx(fr,{name:$e(e.transactionId,"memo"),placeholder:me.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Sn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:n.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${n.sp5})`,marginRight:`-${n.sp3}`,marginLeft:`-${n.sp3}`})},ri=(e,o,c,l,m,p,i,r)=>{const d=l.find(h=>h.accountId===o.categoryId);return{[st]:{[e.transactionId]:{category:{selectedOption:d?.qboId,allOptions:c},class:{selectedOption:o?.classId,allOptions:m},bankAccount:{selectedOption:o?.bankAccountId,allOptions:Ha(p)},creditCard:{selectedOption:o?.creditCardId,allOptions:Wa(i)},memo:o?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:o?.matchedTransactionId,vendor:{selectedOption:o?.vendor?.id,defaultOptions:ja(r.entityAutoCompleteView,o?.vendor)},customer:{selectedOption:o?.customer?.id,defaultOptions:yr(o?.customer,r.entityAutoCompleteView)}}}}},li=(e,o,c,l)=>{const{vendor:m,customer:p}=e[st][o.transactionId];let i,r;if(m.selectedOption!=null){const h=m.defaultOptions.find(u=>u.value===m.selectedOption);if(h!=null)i={id:m.selectedOption,name:h.label};else{const u=c.entityAutoCompleteView.vendor.find(x=>x.id===m.selectedOption||x.zeniId===m.selectedOption);u!=null&&(i={id:u.zeniId,name:u.name})}}if(p.selectedOption!=null){const h=p.defaultOptions.find(u=>u.value===p.selectedOption);if(h!=null)r={id:p.selectedOption,name:h.label};else{const u=c.entityAutoCompleteView.customer.find(x=>x.id===p.selectedOption||x.zeniId===p.selectedOption);u!=null&&(r={id:u.zeniId,name:u.name})}}return{categoryId:l.find(h=>h.qboId===e[st][o.transactionId].category.selectedOption)?.accountId??e[st][o.transactionId].category.selectedOption,classId:e[st][o.transactionId].class.selectedOption,memo:e[st][o.transactionId].memo,matchedTransactionId:e[st][o.transactionId].matchedTransaction,vendor:i,bankAccountId:e[st][o.transactionId].bankAccount.selectedOption,creditCardId:e[st][o.transactionId].creditCard.selectedOption,customer:r}},Yt=s(Oe)`
579
- display: flex;
580
- align-items: center;
581
- column-gap: ${n.sp1};
582
- `,Xt=s.div`
583
- width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
584
- display: flex;
585
- justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
586
- `,Uc=s.div`
587
- display: flex;
588
- flex-direction: column;
589
- box-sizing: border-box;
590
- position: relative;
591
- background: ${e=>e.theme.colors.grey5};
592
- border: 1px solid
593
- ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
594
- color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
595
- &:hover {
596
- border: 1px solid ${e=>e.theme.colors.primary};
597
- color: ${e=>e.theme.colors.primary};
598
- }
599
- box-shadow: ${e=>e.theme.colors.elevation1};
600
- border-radius: ${n.sp2};
601
- `,qc=s.div`
602
- display: flex;
603
- flex-direction: row;
604
- align-items: center;
605
- cursor: pointer;
606
- padding: ${n.sp3} ${n.sp4};
607
- column-gap: ${n.sp2};
608
-
609
- border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
610
- `,Jc=s.div`
611
- padding: ${n.sp2} ${n.sp4};
612
- display: flex;
613
- flex-direction: column;
614
- row-gap: ${n.sp2};
615
- `,Kc=s.div`
616
- top: ${n.sp0};
617
- left: ${n.sp0};
618
- box-sizing: border-box;
619
- `,Gc=s.div`
620
- height: calc(100vh - 350px);
621
- max-width: 99.9%;
622
- padding: ${n.sp0};
623
- `,Zc=s.div``,Yc=s.div`
624
- position: relative;
625
- width: auto;
626
- height: 100%;
627
- display: flex;
628
- flex-direction: column;
629
- row-gap: ${n.sp3};
630
- `,Xc=s.div`
631
- display: flex;
632
- flex-direction: row;
633
- align-items: center;
634
- justify-content: space-between;
635
- padding: 12px ${n.sp3};
636
- background-color: ${e=>e.theme.colors.background};
637
- border-radius: ${n.sp2};
638
- `,Kn=s.div`
639
- display: flex;
640
- flex-direction: row;
641
- align-items: center;
642
- column-gap: ${n.sp3};
643
- `,Qc=s.div`
644
- width: 100%;
645
- `,ed=s.div`
646
- display: flex;
647
- flex-direction: row;
648
- align-items: center;
649
- column-gap: ${n.sp3};
650
- `,td=s.div`
651
- display: flex;
652
- flex-direction: row;
653
- align-items: center;
654
- column-gap: ${n.sp6};
655
- `,nd=s.div`
656
- display: flex;
657
- flex-direction: row;
658
- align-items: center;
659
- column-gap: ${n.sp1};
660
- `,Mt=s(Pn)`
661
- width: ${n.sp3};
662
- height: ${n.sp3};
663
- `,ci=s(Cr)`
664
- width: ${n.sp3};
665
- height: ${n.sp3};
666
- color: ${e=>e.theme.colors.hero};
667
- `,od=s.div`
668
- display: flex;
669
- flex-direction: column;
670
- row-gap: ${n.sp3};
671
- padding: ${n.sp0} 12px;
672
- `,id=s(Oe)`
673
- color: ${e=>e.theme.colors.primary};
674
-
675
- .matched-text {
676
- font-weight: ${wo.bold};
677
- }
678
- `,ad=s.div`
679
- display: flex;
680
- align-items: center;
681
- column-gap: ${n.sp2};
682
- `,sd=s.div`
683
- display: flex;
684
- flex-direction: column;
685
- row-gap: ${n.sp2};
686
- `,rd=s.div`
687
- display: flex;
688
- flex-direction: row;
689
- align-items: center;
690
- justify-content: space-between;
691
- padding-bottom: ${n.sp2};
692
- border-bottom: 1px solid ${e=>e.theme.colors.grey3};
693
- `,ld=s(Oe)`
694
- color: ${e=>e.theme.colors.hero};
695
- `,cd=s.div`
696
- height: 100%;
697
- display: flex;
698
- justify-content: center;
699
- align-items: center;
700
- `,dd=s.div`
701
- border: 1px solid ${e=>e.theme.colors.grey2};
702
- padding: ${n.sp0} ${n.sp1};
703
- border-radius: ${n.sp1};
704
- `,ud=s(mt)`
705
- color: ${e=>e.theme.colors.hero};
706
- `,hd=s.div`
707
- display: flex;
708
- align-items: center;
709
- column-gap: 20px;
710
- cursor: pointer;
711
- `,pd=s.div`
712
- text-align: center;
713
- padding: ${n.sp1} ${n.sp0};
714
- border-top: 1px solid ${e=>e.theme.colors.grey3};
715
- `,md=s(mt)`
716
- color: ${e=>e.theme.colors.hero};
717
- `,Ja=s(gn)`
718
- width: ${n.sp3};
719
- height: ${n.sp3};
720
- margin-right: ${n.sp1};
721
- path {
722
- stroke-width: 2;
723
- }
724
- `,gd=({reconciliation:e,entitySearchAutoCompleteData:o,selectedAccountId:c,currentFooterFormId:l,entitySearchAutoCompleteActions:m,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:r,updateReviewTabLocalData:d,onReconReviewTabColumnSortConfigChanged:h,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f})=>{const{accountReconciliationsByAccountID:y,reconciliationTabsState:{reconcile:{uiState:{sortKey:w,sortOrder:b}}},selectedReconAccount:k}=e,C=y[c],{transactionFetchState:I}=k??{};return I?.fetchState==="In-Progress"||I?.fetchState==="Not-Started"?t.jsxs(di,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(xd,{children:Ct.map(T=>t.jsx(Bt,{width:T.loaderWidth,height:18},T.key))}),t.jsxs(yd,{children:[...Array(3).fill(0).map((T,$)=>t.jsx(fd,{children:Ct.map(D=>t.jsx(Bt,{width:D.loaderWidth,height:g[4]},D.key))},`${$}_${T}`))]})]}):t.jsx(di,{children:e.selectedTab==="reconcile"?t.jsx(Sc,{selectedAccountId:c,currentFooterFormId:l,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:r,onSaveReconciliation:u,sortConfig:{sortKey:w,sortOrder:b},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:C?.accountReconEntity.transactionsToReconcile}):t.jsx(Nc,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[c]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[c].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:o,updateLocalData:d,entitySearchAutoCompleteActions:m,onColumnSortConfigChanged:h,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:c,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},di=s.div`
725
- width: 100%;
726
- height: 100%;
727
- `,xd=s.div`
728
- display: flex;
729
- justify-content: space-between;
730
- padding: ${n.sp3} ${n.sp4};
731
- column-gap: ${n.sp6};
732
- `,fd=s.div`
733
- display: flex;
734
- justify-content: space-between;
735
- padding: ${n.sp3} ${n.sp4};
736
- background-color: ${e=>e.theme.colors.grey5};
737
- border-radius: ${n.sp2};
738
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
739
- box-shadow: ${e=>e.theme.colors.elevation1};
740
- column-gap: ${n.sp6};
741
- `,yd=s.div`
742
- display: flex;
743
- gap: ${n.sp3};
744
- flex-direction: column;
745
- `;function ui({section:e,allAccountReconciliations:o,title:c,subTitle:l,isLastNode:m,isTitleRowRequired:p,config:i}){const r={children:[],id:pt("section",[],c),isLastNode:m,reportElementData:{element:{kind:"section",title:c,data:e,numOfBalances:0},config:i}};if(p){const h={children:[],id:pt("title_string_only",[],c),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:c,data:e,numOfBalances:0},config:i}};r.children.push(h)}const d=function({title:h,section:u,config:x,numOfBalances:f,nodeId:y}){return{children:[],id:y??pt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:h,data:u,numOfBalances:f},config:x}}}({title:l,section:e,config:i,numOfBalances:0});return r.children.push(d),e.accountIDs.forEach((h,u)=>{const x=o[h],f=function({account:y,numOfBalances:w,title:b,isLastNode:k,config:C}){return{children:[],id:pt("ac_group_report",[],b),isLastNode:k,reportElementData:{element:{kind:"ac_group_report",title:b,data:y,numOfBalances:w},config:C}}}({account:x,numOfBalances:0,title:x.accountReconEntity.account.accountName,isLastNode:u===e.accountIDs.length-1,config:i});r.children.push(f)}),r}function Ka({config:e,accountReconForSection:o,nodeId:c}){return{children:[],id:c??pt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:o,numOfBalances:0},config:e}}}const Cd=(e,o,c,l,m=!0,p="assets")=>{const i=p==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,r=Ka({config:o,accountReconForSection:i}),d=[];d.push(r);const h=Array.isArray(c[l])?c[l]:[],{expenseAutomation:{accountRecon:{reconciliation:u}},common:{loading:x}}=ve.getLocalizedStrings(),f=y=>y.filter(w=>!h.includes(w));if(e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress")[...Array(3)].forEach((y,w)=>{d.push(function({title:b,config:k,nodeId:C}){return{children:[],id:C??pt("loading_in_progress",[],b),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:k}}}({title:`${w}+${x}`,config:o}))});else{const y=f(e.accountReconciliationBySectionID.assets.accountIDs),w=ui({section:{...e.accountReconciliationBySectionID.assets,accountIDs:y},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.assets.title,subTitle:u.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:o});if(d.push(w),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const b=f(e.accountReconciliationBySectionID.liabilities.accountIDs),k=ui({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:b},allAccountReconciliations:e.accountReconciliationsByAccountID,title:u.headers.section.liabilities.title,subTitle:u.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:o});d.push(k)}}return{config:o,headerNodes:m?[r]:[],contentNodes:d}},fo={wrapperPadding:new Q(g[2],g[2],g[2],g[8]),contentPaddingLeft:new Q(g[2],g[2],g[2],g[2]),contentPaddingRight:new Q(g[2],g[2],g[2],g[2])},wd=s.div`
746
- display: flex;
747
- height: 100%;
748
- width: 100%;
749
- justify-content: center;
750
- align-items: center;
751
- `,vd=s.div`
752
- display: flex;
753
- height: 100%;
754
- min-height: 100%;
755
- flex: 1 1 auto;
756
- width: 100%;
757
- justify-content: center;
758
- padding-left: ${e=>fo.wrapperPadding.valuePx(e.windowSize)};
759
- background-color: ${e=>e.theme.colors.grey4};
760
- `,bd=s.div`
761
- width: 100%;
762
- height: 100%;
763
- `,{common:Sd}=ve.getLocalizedStrings();function jd({reconciliation:e,companyId:o,onScroll:c,onReload:l,onReviewClicked:m,setOpenDrawerClicked:p,onFetchLinkTokenClick:i,onEstablishConnectionClick:r,onAddStatementClick:d}){const[h,u]=a.useState(void 0),[x,f]=a.useState(void 0),y=e.plaidConnectionDetails.link_account_no_microdeposit,w=e.plaidConnectionDetails.update_account,b=x==="update_account"?w:y,[k,C]=a.useState(b.linkToken??null),[I,T]=a.useState(!1),{useDynamicConfig:$}=ua(),{configValue:D}=$(ha.accountReconGLAccountsConfig),v=a.useCallback(Y=>{u(Y),f("link_account_no_microdeposit")},[]),S=a.useCallback(Y=>{const E=O.current.accountReconciliationsByAccountID[Y]?.paymentAccountId;u(Y),f("update_account"),i("update_account",E)},[]),B=a.useCallback(Y=>{p(Y)},[]),A=a.useRef(h),z=a.useRef(x),O=a.useRef(e);a.useEffect(()=>{A.current=h},[h]),a.useEffect(()=>{z.current=x},[x]),a.useEffect(()=>{O.current=e},[e]);const P=a.useCallback(Y=>{r(Y,A.current??"",z.current),u(void 0),f(void 0),T(!1)},[r]),H=a.useCallback((Y,E)=>{Y!=null&&console.log("Plaid Connection Error",Y,E),u(void 0),f(void 0),T(!1)},[]),{open:V,ready:W}=Zs({token:k,onSuccess:P,onExit:H});a.useEffect(()=>{!xo(new Date().toISOString()).isAfter(b.expiration)&&b.linkToken!=null||b.fetchStatus.fetchState!=="Not-Started"||i("link_account_no_microdeposit")},[b.fetchStatus.fetchState]),a.useEffect(()=>{!I&&x!=null&&b.linkToken===k&&b.fetchStatus.fetchState==="Completed"&&W&&T(!0)},[W,k,b.fetchStatus.fetchState,b.linkToken,x,I]),a.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==k&&C(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,k]),a.useEffect(()=>{I&&V()},[I,V]);const[ee,R]=a.useState(void 0),[xe,ce]=a.useState(void 0),[K,N]=a.useState("assets"),F=xo("2025-03-31"),L=we(),M=St(),J=!0,U=Array.isArray(D?.[o])?D[o]:[],se=function(Y,E){return E?Un("section")+Un("total")+Y*Un("ac_group_report"):1/0}(e.accountReconciliationBySectionID.assets.accountIDs.filter(Y=>!U.includes(Y)).length,e.accountReconciliationBySectionID.liabilities.accountIDs.length>0),q=a.useCallback(Y=>{const E=Y.scrollTop>=se?"liabilities":"assets";E!==K&&N(E),c?.(Y)},[se,K,c]);return a.useEffect(()=>{const Y={reportId:"account_reconciliation",mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:F,firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:m,onConnectClicked:v,onReconnectClicked:S,onOpenDrawerClicked:B,onStatementAddClicked:d}};if(ee!=null&&pa(xe,e)){const E=function(G,j,Z,ne=!1,ae="assets"){Object.assign(G.config,Z);const pe=Ka({config:Z,accountReconForSection:ae==="liabilities"&&j.accountReconciliationBySectionID.liabilities.accountIDs.length>0?j.accountReconciliationBySectionID.liabilities:j.accountReconciliationBySectionID.assets});return{config:Z,headerNodes:ne?[pe]:[],contentNodes:[pe,...G.contentNodes.slice(1)]}}(ee,e,Y,J,K);R(E)}else{const E=Cd(e,Y,D,o,J,K);ce(e),R(E)}},[e,K]),e.fetchStatus.fetchState==="Error"?t.jsx(wd,{children:t.jsx(Ys,{onReload:l,message:Sd.errorMessage.somethingWentWrong})}):t.jsx(vd,{windowSize:L,children:ee!=null?t.jsx(bd,{windowSize:L,children:t.jsx(Oa,{backgroundColor:new So(M.colors.grey4),rootNodes:ee,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:J,isStickyName:J},treeNodePadding:{left:fo.contentPaddingLeft.value(L),right:fo.contentPaddingRight.value(L)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:q})}):null})}function kd({currentFooterFormId:e,vendorSearchAutoCompleteData:o,vendorSearchAutoCompleteActions:c,reconciliation:l,companyId:m,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:r,setCurrentFooterFormId:d,onReloadReconciliationListPage:h,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,onAddStatementClick:y,onReconReviewTabColumnSortConfigChanged:w,onSaveReconciliation:b,onSaveReconciliationReview:k,setOpenDrawerClicked:C,onReconMatchedTransactionClick:I,onReconListPageScroll:T}){return l.selectedAccountId==null?t.jsx(jd,{companyId:m,onScroll:T,reconciliation:l,onReload:h,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,setOpenDrawerClicked:C,onAddStatementClick:y}):t.jsx(gd,{currentFooterFormId:e,setCurrentFooterFormId:d,onUpdateReconcileTabLocalData:r,onReconTabColumnSortConfigChanged:p,reconciliation:l,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:c,onReconReviewTabColumnSortConfigChanged:w,entitySearchAutoCompleteData:o,selectedAccountId:l.selectedAccountId,onSaveReconciliation:b,onSaveReconciliationReview:k,onReconMatchedTransactionClick:I})}function Id({vendorView:e,numOfBalances:o,title:c,isLastNode:l,config:m,parentNodeIDs:p}){const i=pt("flux_vendor_row",p,e.vendor.id),r={children:[],id:i,isLastNode:l,reportElementData:{element:{kind:"flux_vendor_row",title:c,data:e,numOfBalances:o},config:m}},d=e.vendorAccountsAndClasses;return r.children=d.map((h,u)=>function({accountAndClassReport:x,numOfBalances:f,title:y,isLastNode:w,isFirstNode:b,config:k,parentNodeIDs:C,ancestorMetadata:I}){let T="";return x.accountBase&&x.classBase?T=`${x.accountBase.accountId}_${x.classBase.classId}`:x.accountBase?T=x.accountBase.accountId:x.classBase&&(T=x.classBase.classId),{children:[],id:pt("flux_vendor_account_class_row",C,T),isLastNode:w,isFirstNode:b,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:y,data:x,metadata:I,numOfBalances:f},config:k}}}({accountAndClassReport:h,numOfBalances:o,title:h.accountBase?.accountName??"",config:m,isLastNode:u===d.length-1,isFirstNode:u===0,parentNodeIDs:[...p,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:d.length>1,hasChildren:!1,isLastNode:u===d.length-1,isFirstNode:u===0,name:h.accountBase?.accountName},isVendorLastChild:l,vendorId:e.vendor.id}})),r}const{common:jn,expenseAutomation:{fluxAnalysis:$d}}=ve.getLocalizedStrings(),Td=(e,o,c=!0)=>{const l=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,m=e.sections.generalExpense.balancesByMonth?on(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?on(e.sections.reimbursement.balancesByMonth):[],p=Fa({balances:m,config:o}),i=[],r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,d=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(r===!0)i.push(function({title:h,balances:u,config:x,nodeId:f}){return{children:[],id:f??pt("headers_loading_in_progress",[],h),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:u,numOfBalances:u.length},config:x}}}({title:`${jn.loading}`,balances:m,config:o})),[...Array(10)].forEach((h,u)=>{i.push(Uo({title:`${u}+${jn.loading}`,balances:m,config:o}))});else{if(i.push(p),["generalExpense","reimbursement"].forEach(h=>{const u=e.sections[h];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const x=on(u.balancesByMonth);i.push(function({section:f,numOfBalances:y,title:w,isLastNode:b,config:k}){const C=f.sectionId,I={children:[],id:C,isLastNode:b,reportElementData:{element:{kind:"section",title:w,data:f,numOfBalances:y,sectionType:f.sectionId},config:k}},T=(f.vendors??[]).map(($,D)=>Id({vendorView:$,numOfBalances:y,title:$.vendor.name,isLastNode:D===f.vendors.length-1,config:k,parentNodeIDs:[C]}));return I.children.push(...T),I}({section:{sectionId:h,reportId:"flux_analysis_operating_expense",balances:x,vendors:u.vendors,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:e.currency},numOfBalances:l,title:Ld(h),isLastNode:!1,config:o}))}}),e.totalBalancesAndVariance){const h=e.totalBalancesAndVariance.balancesByMonth?on(e.totalBalancesAndVariance.balancesByMonth):[],u=function({title:x,data:f,isLastNode:y,config:w,numOfBalances:b}){return{children:[],id:pt("total",[],x),isLastNode:y,reportElementData:{element:{kind:"total",title:x,data:f,numOfBalances:b},config:w}}}({title:jn.texts.total,data:{balances:h,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:o,isLastNode:!0,numOfBalances:l});i.push(u)}d===!0&&[...Array(1)].forEach((h,u)=>{i.push(Uo({title:`${u}+${jn.loading}`,balances:m,config:o}))})}return{config:o,headerNodes:c&&!r?[p]:[],contentNodes:i}},Ld=e=>$d.sectionTitle[e],Ad=e=>e.sections.generalExpense.balancesByMonth?on(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?on(e.sections.reimbursement.balancesByMonth):[],yo={contentPaddingLeft:new Q(g[0],g[0],g[0]),contentPaddingRight:new Q(g[3],g[3],g[8]),wrapperPadding:new Q(g[3],g[3],g[8])},Rd=s.div`
764
- display: flex;
765
- position: sticky;
766
- width: 100%;
767
- justify-content: center;
768
- padding-top: ${e=>yo.wrapperPadding.valuePx(e.windowSize)};
769
- padding-left: 20px;
770
- background-color: ${e=>e.theme.colors.grey4};
771
- `,Ed=s.div`
772
- width: 100%;
773
- height: calc(100vh - ${n.sp11});
774
- `,Dd=e=>{const{fluxView:o,handleRedirectToVendorDetailPage:c,updateOperatingExpensesIdsForReview:l,updateSectionIdsForReview:m,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:r,fetchGeneralExpenseView:d}=e,h=we(),u=St(),[x,f]=a.useState(null),[y,w]=a.useState(null),[b,k]=a.useState(null),C=Ho([o.sections.generalExpense.fetchStatus,o.sections.reimbursement.fetchStatus]).fetchState,[I,T]=a.useState(!1),$=Po(C),D=Po(o.refreshStatus.fetchState),v=a.useCallback(z=>{const O=!(o.uiState.collapsableStatus[z]??1);i({...o.uiState.collapsableStatus,[z]:O})},[o.uiState.collapsableStatus,i]),S=a.useCallback((z,O)=>{let P=o.reviewOperatingExpensesIds;const H=[];let V=o.selectedSectionIds;const W=o.sections[z].vendors;H.push(...W.map(R=>R.fluxAnalysisEntityId));let ee=Ba-P.length;O?(H.forEach(R=>{!P.includes(R)&&ee>0&&(P=[...P,R],ee--)}),V=[...V,z]):(P=P.filter(R=>!H.includes(R)),V=V.filter(R=>R!==z)),l(P),m(V)},[o.reviewOperatingExpensesIds,o.selectedSectionIds,o.sections,l,m]),B=a.useCallback(z=>{const O=o.uiState.collapsableStatus[z]===!1;z!=="generalExpense"||O||o.sections.reimbursement.fetchStatus.fetchState!=="Not-Started"||r(o.uiState.paginationInfoByGroup.reimbursement.pageToken),v(z)},[o.uiState.collapsableStatus,o.sections.reimbursement.fetchStatus.fetchState,o.uiState.paginationInfoByGroup.reimbursement.pageToken,r,v]),A=o.sections.generalExpense.vendors.length+o.sections.reimbursement.vendors.length;return a.useEffect(()=>{const z={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:o.uiState.sortOrder,sortKey:o.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:o.reviewOperatingExpensesIds,reviewSectionIds:o.selectedSectionIds,fetchStatus:o.fetchStatus.fetchState,setIsSortApplied:T,onSectionRowClick:B,updateNodeCollapsableStatus:v,updateOperatingExpensesIdsForReview:l,handleRedirectToVendorDetailPage:c,onSectionCheckboxClick:S,onSortOrderChanged:p}};if(x!=null&&pa(y,o)){const O=function(P,H,V,W=!0){Object.assign(P.config,H);const ee=Ad(V),R=Fa({balances:ee,config:H});return{config:H,headerNodes:W?[R]:[],contentNodes:[R,...P.contentNodes.slice(1)]}}(x,z,o,!0);f(O)}else{const O=Td(o,z,!0);w(o),f(O)}},[o,y,c,S,B,p,v,l]),t.jsx(Rd,{windowSize:h,children:t.jsx(Ed,{children:x?t.jsx(Oa,{backgroundColor:new So(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:yo.contentPaddingLeft.value(h),right:yo.contentPaddingRight.value(h)},nodeOpenStatus:Object.keys(o.uiState.collapsableStatus).reduce((z,O)=>(z[O]=o.uiState.collapsableStatus[O],z),{}),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:z=>z<A,itemCount:A,loadMoreItems:()=>{o.uiState.collapsableStatus.generalExpense?o.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&o.sections.generalExpense.fetchStatus.fetchState==="Completed"?d(o.uiState.paginationInfoByGroup.generalExpense.pageToken):o.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&r(o.uiState.paginationInfoByGroup.reimbursement.pageToken):o.uiState.collapsableStatus.reimbursement&&o.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&o.sections.reimbursement.fetchStatus.fetchState==="Completed"&&r(o.uiState.paginationInfoByGroup.reimbursement.pageToken)}},variableNodeHeightTree:{prevFetchState:$??"Not-Started",fetchState:o.fetchStatus.fetchState,isSortApplied:I,setIsSortApplied:T,reducedFetchState:Ho([o.sections.generalExpense.fetchStatus,o.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:D??"Not-Started",refreshFetchState:o.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:b,setHoveredParentId:k}}):null})})},{reports:{common:Bd}}=ve.getLocalizedStrings(),Od=({selectedPeriod:e,fluxAnalysis:o,onFetchFluxViewList:c,markAsReview:l,onReloadPage:m,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:r,onUpdateFluxAnalysisUIState:d,redirectToVendorDetailPage:h,fetchFluxViewOnScroll:u,onFetchReimbursementView:x})=>{const{fetchStatus:f,reviewOperatingExpensesIds:y,uiState:w}=o,b=a.useRef(null),k=a.useRef(!1),C=Jt({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:Fd(y)}),I=we();a.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),a.useEffect(()=>{k.current&&b?.current?.scrollLeft!=null&&w.scrollPosition?.scrollLeft!==b.current.scrollLeft&&w.scrollPosition!=null&&d({scrollPosition:{scrollTop:w.scrollPosition?.scrollTop,scrollLeft:b.current.scrollLeft}})},[w.scrollPosition?.scrollLeft,b.current?.scrollLeft,w.scrollPosition,d]),a.useEffect(()=>{p(y.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[y,p]);const T=S=>{h(S)},$=S=>{u(e,S)},D=(S,B)=>{d({sortOrder:S,sortKey:B}),c(),x(e,null,!1)},v=()=>{const S=Ga(o.sections,y);l(y,S===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(Pd,{children:[t.jsx(Md,{onClick:m,children:t.jsx(vo,{})}),t.jsx(_d,{children:Bd.failed})]});{const S=A=>{d({collapsableStatus:A})},B=A=>{x(e,A,!0)};return t.jsx(Kt,{...C,children:t.jsx("form",{id:Ss("expenseAutomationFluxPage"),onSubmit:C.handleSubmit(v),style:{height:"100%",width:"100%"},children:t.jsx(zd,{windowSize:I,children:t.jsx(Dd,{fluxView:o,handleRedirectToVendorDetailPage:T,onSortOrderChanged:D,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:S,fetchReimbursementView:B,updateSectionIdsForReview:r,fetchGeneralExpenseView:$,reportId:"flux_analysis_operating_expense"})})})})}},Ga=(e,o)=>{let c;return[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(l=>l.status==="Pending Review").forEach(l=>{o.includes(l.fluxAnalysisEntityId)&&(c=!0)}),c},Fd=e=>({fluxAnalysisRowIds:e}),zd=s.div`
775
- display: flex;
776
- flex: 1 1 auto;
777
- min-height: 100%;
778
- flex-direction: column;
779
- background-color: ${e=>e.theme.colors.grey4};
780
- padding: ${n.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
- `,Pd=s.div`
802
- display: flex;
803
- width: 100%;
804
- height: 100vh;
805
- flex-direction: column;
806
- justify-content: center;
807
- align-items: center;
808
- `,Md=s.div`
809
- height: 96px;
810
- width: 96px;
811
- background: ${e=>e.theme.colors.background};
812
- border-radius: 50%;
813
- cursor: pointer;
814
- & svg {
815
- margin: ${n.sp5};
816
- color: ${e=>e.theme.colors.grey1};
817
- }
818
- &:hover {
819
- & svg {
820
- color: ${e=>e.theme.colors.primary};
821
- }
822
- }
823
- `,_d=s(jt)`
824
- margin-top: ${n.sp3};
825
- color: ${e=>e.theme.colors.hero};
826
- `,Za="vendorsAccountSection";function Nd({accountSettings:e,currentFooterFormId:o,onSaveJeAccountSettingsClick:c,setIsJeAccountSettingsOpened:l,onJeAccountSettingsChange:m,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:i}){const r=e.prepaidExpensesRecommendations,d=e.fixedAssetsRecommendations,h=e.accruedExpensesRecommendations,u=a.useMemo(()=>Dt(e.prepaidExpensesAccountHierarchy,r,"Accounts"),[e.prepaidExpensesAccountHierarchy,r]),x=a.useMemo(()=>Dt(e.fixedAssetsAccountHierarchy,d,"Accounts"),[e.fixedAssetsAccountHierarchy,d]),f=a.useMemo(()=>Dt(e.accruedExpensesAccountHierarchy,h,"Accounts"),[e.accruedExpensesAccountHierarchy,h]),y=a.useMemo(()=>Hd(e,u,x,f),[e,u,x,f]),w=Jt({mode:"all",reValidateMode:"onBlur",defaultValues:y,values:y,resetOptions:{keepDefaultValues:!0}}),b=w.handleSubmit(C=>{c(C)});return a.useEffect(()=>{const C=w.watch(I=>{I!=null&&xn(()=>(async T=>{m(T)})(I))});return()=>{C.unsubscribe()}}),a.useEffect(()=>(p(()=>w.reset),l(!0),()=>{i("expenseAutomationPage"),l(!1)}),[]),a.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:C,previousPrepaidExpensesAccount:I,selectedFixedAssetsAccountIds:T,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:D,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,S=_n(C,I)||_n(T,$)||_n(D,v);S===!0&&o!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):S===!1&&o!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,o,i]),t.jsx(Vd,{children:t.jsx(Kt,{...w,children:t.jsx("form",{id:(k="expenseAutomationJEAccountSettingsPage",`${k}_form`),onSubmit:b,children:t.jsx(Dr,{showTitle:!1,sectionId:Za,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})})})});var k}const Vd=s.div`
827
- padding-top: ${n.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
- `,Hd=(e,o,c,l)=>{const m=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),p=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),r=m.map(u=>u.qboId).filter(u=>u!=null),d=p.map(u=>u.qboId).filter(u=>u!=null),h=i.map(u=>u.qboId).filter(u=>u!=null);return{[Za]:{prepaidExpensesAccount:{selectedOptions:r,allOptions:o},fixedAssetsAccount:{selectedOptions:d,allOptions:c},accruedExpensesAccount:{selectedOptions:h,allOptions:l}}}},{expenseAutomation:{jeSchedules:Tt},common:{currency:kn,review:Wd,ignore:Ud,strings:{hyphen:ft},texts:In},dateFormat:qd,timeframe:{month:hi}}=ve.getLocalizedStrings(),Jd=({draft:e,ignoreStatus:o,ignoreRecommendedJeSchedule:c,jeScheduleClickHandler:l,onReviewClickHandler:m})=>t.jsxs(Do,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&l(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":_("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(Eo,{children:[t.jsxs(Oo,{children:[t.jsxs(Ao,{children:[t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{children:In.vendor}),t.jsxs(ie,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(ya,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(hn,{name:e.vendor.name}),t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(qe,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:e.vendor.name??ft})})]})]}),t.jsxs(X,{children:[t.jsx(te,{children:Tt.scheduleHeaders.scheduleCategory}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(qe,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:e.baseTransaction.account.accountName??ft})})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:Tt.scheduleHeaders.startMonth}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:e.startDate?.format(qd.visual.MMMCommaYYYYFormat)??ft})})]}),t.jsxs(X,{style:{width:ut,paddingLeft:g[3]},children:[t.jsx(te,{children:Tt.scheduleHeaders.period}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?hi.slice(0,-1):hi}`:ft})})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:qt},children:[t.jsx(te,{children:In.totalAmount}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Je("0,0.[00]",Nt(e.baseTransaction.amount.amount,kn.currencyCode,kn.currencySymbol))??ft}),children:t.jsx(le,{className:"highlight",children:Je("0,0.[00]",Nt(e.baseTransaction.amount.amount,kn.currencyCode,kn.currencySymbol))??ft})})})]})]}),t.jsxs(Ro,{children:[t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{children:In.category}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(qe,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:e.jeDebit.account?.accountName??ft})})})]}),t.jsxs(X,{children:[t.jsx(te,{children:In.classText}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(qe,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:e.jeDebit.accountingClass?.className??ft})})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:Tt.scheduleHeaders.type}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",style:{width:"unset"},children:t.jsx(Na,{children:Tt.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(X,{style:{width:ut,paddingLeft:g[3]},children:[t.jsx(te,{children:Tt.scheduleHeaders.accumulatedCategory}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(qe,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:e.jeCredit.account?.accountName??ft})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(X,{style:{width:ut}}):null,t.jsx(X,{style:{width:qt}})]})]}),t.jsxs(Bo,{children:[t.jsx(pn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&m(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":_("je-schedule-draft-component-review-button",e.jeScheduleId),label:Wd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:69}}),t.jsx(pn,{"data-testid":_("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Ud,size:"small",reverseSpinnerColor:!1,loading:o?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&c(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:69}})]})]}),t.jsxs(Ac,{children:[t.jsx(Kd,{}),t.jsx(Gd,{children:Tt.aiAccountant}),t.jsx(Zd,{children:Tt.zeniGPTText})]})]}),Kd=s(gn)`
835
- height: ${n.sp3};
836
- width: ${n.sp3};
837
- margin-right: ${n.sp1};
838
- path {
839
- stroke-width: 2;
840
- }
841
- `,Gd=s(ma)`
842
- color: ${e=>e.theme.colors.brandColorSapphire};
843
- `,Zd=s(Oe)`
844
- color: ${e=>e.theme.colors.primary};
845
- `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:pi}}},expenseAutomation:{jeSchedules:Pe},common:{currency:lt,retry:Yd,strings:{hyphen:Ue,empty:mi},texts:Qt},dateFormat:gi}=ve.getLocalizedStrings(),{common:Xd,timeframe:{month:xi}}=ve.getLocalizedStrings(),tt="jeSchedulePage",fi=e=>`${e}_form`,Fo=(e,o)=>`${e}.${o}`,yi=Fo(tt,"vendor"),Ci=Fo(tt,"scheduleExpenseCategory"),wi=Fo(tt,"accumulatedDepreciationCategory"),Qd=({allAccountGroupedOptions:e,allAccountList:o,allClassGroupedOptions:c,allClassList:l,allDepAccountGroupedOptions:m,allDepAccountList:p,draft:i,localData:r,postStatus:d,uncategorizedAccounts:h,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:f,onFormDataChange:y,onPostJESchedule:w})=>{const{updatedAccumulatedDepreciationCategoryID:b,updatedCategoryId:k,updatedVendor:C}=r,I={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},T=a.useRef(),$=Jt({mode:"all",reValidateMode:"onChange",defaultValues:vi(r,e,c,m,o,l,p,x.entityAutoCompleteView),values:vi(r,e,c,m,o,l,p,x.entityAutoCompleteView)}),D={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:n.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:n.sp4}),menu:()=>({width:350})},S=(i?.scheduledJournalEntry.error??[]).every(L=>{const M=I[L];return!(r!=null&&M&&(M==="updatedAccumulatedDepreciationCategoryID"&&r.updatedAccumulatedDepreciationCategoryID==null||M==="updatedCategoryId"&&r.updatedCategoryId==null||M==="updatedVendor"&&(r.updatedVendor?.id==null||r.updatedVendor?.id===""||r.updatedVendor?.name==null||r.updatedVendor?.name==="")))});a.useEffect(()=>{const L=$.watch((M,{name:J})=>{J!=null&&M!=null&&xn(()=>(async(U,se)=>{if(U!=null){const q=se[tt],{scheduledJournalEntryID:Y,vendor:E}=q;if(U.includes("vendor")){const G=E?.defaultOptions.map(j=>j.value);if(E?.selectedOption!=null&&G?.includes(E.selectedOption)!==!0){const j=x.entityAutoCompleteView.vendor.find(Z=>Z.id===E.selectedOption);j!=null&&$.setValue(`${tt}.vendor.defaultOptions`,[{label:j.name??Xd.strings.empty,value:j.id}])}else E?.selectedOption==null&&E?.defaultOptions.length!==0&&$.setValue(`${tt}.vendor`,{selectedOption:void 0,defaultOptions:[]})}y(Y,{...q,vendor:E})}})(J,M))});return()=>{L.unsubscribe()}}),a.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&T.current?.(Ca(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const B=$.handleSubmit(()=>{w(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),A=L=>[h.expense?.qboId,h.income?.qboId].includes(L),z=$.watch("jeSchedulePage.vendor"),O=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,P=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,H=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,V=i.vendor.name.split("(deleted)")[0]?.toString(),W=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??mi,ee=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??mi,[R,xe]=a.useState(P===!0&&k==null),[ce,K]=a.useState(H===!0&&b==null),[N,F]=a.useState(O&&(C?.id==null||C?.id==""));return a.useEffect(()=>{R===!1&&r.updatedCategoryId==null&&$.setFocus(Ci),ce===!1&&r.updatedAccumulatedDepreciationCategoryID==null&&$.setFocus(wi),N===!1&&r.updatedVendor?.id==null&&$.setFocus(yi)},[R,ce,N,r,$]),t.jsx(Kt,{...$,children:t.jsx("form",{style:{width:"100%"},id:fi(`${tt}_${i.jeScheduleId}`),onSubmit:B,children:t.jsx(Do,{showBorder:S,onClick:L=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(L,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":_("je-schedule-resolve-component-schedule",`${tt}_${i.jeScheduleId}`),children:t.jsxs(Eo,{children:[t.jsxs(Oo,{children:[t.jsxs(Ao,{children:[O===!0?t.jsx(X,{style:{width:wt,padding:g[0],justifyContent:"center"},showHoverEffect:O,forceHoverEffect:N===!1&&(r?.updatedVendor?.id==null||r?.updatedVendor?.id==""),children:t.jsxs(ct,{className:"hover-background",style:{padding:`${n.sp2} ${n.sp3}`},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Qt.vendor,t.jsx(fe,{display:"flex",placement:"top-start",title:t.jsx(An,{children:Pe.tooltipText.missingVendor.replace("_deleted_vendor_",V)}),children:t.jsx(Zn,{})})]}),t.jsx(ie,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(le,{onClick:L=>{L.stopPropagation(),F(!1)},"data-testid":_("je-schedule-resolve-component-add-vendor-button",`${tt}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Xe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Gn,{}),pi]}):t.jsx(go,{name:yi,placeholder:pi,valueToId:L=>L,defaultValue:{selectedOption:z?.selectedOption,defaultOptions:z?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:n.sp4})},registerOptions:{required:!0,validate:L=>!!L.selectedOption},loadOptions:(L,M)=>{u.onAutoCompleteInputChange?.(L,"vendor"),T.current=M}})})})]})}):t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp0} ${n.sp2} ${n.sp3}`},children:[t.jsx(te,{children:Qt.vendor}),t.jsx(ie,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(ya,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(hn,{name:i.vendor.name}),t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(qe,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.vendor.name??Ue})})]})})]}),t.jsxs(X,{children:[t.jsx(te,{children:Pe.scheduleHeaders.scheduleCategory}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(qe,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.baseTransaction.account.accountName??Ue})})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:Pe.scheduleHeaders.startMonth}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:i.startDate?.format(gi.visual.MMMCommaYYYYFormat)??Ue})})]}),t.jsxs(X,{style:{width:ut,paddingLeft:g[3]},children:[t.jsx(te,{children:Pe.scheduleHeaders.period}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?xi.slice(0,-1):xi}`:Ue})})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:qt},children:[t.jsx(te,{children:Qt.totalAmount}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",title:t.jsx(qe,{children:Je("0,0.[00]",Nt(i.baseTransaction.amount.amount,lt.currencyCode,lt.currencySymbol))??Ue}),children:t.jsx(le,{className:"highlight",children:Je("0,0.[00]",Nt(i.baseTransaction.amount.amount,lt.currencyCode,lt.currencySymbol))??Ue})})})]})]}),t.jsxs(Ro,{children:[P===!0?t.jsx(X,{showHoverEffect:P===!0,forceHoverEffect:r?.updatedCategoryId==null&&R===!1,style:{padding:"unset",justifyContent:"center",width:wt},children:t.jsxs(ct,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Qt.category,P===!0?t.jsx(fe,{display:"flex",placement:"top-start",title:t.jsx(An,{children:Pe.tooltipText.missingCategory.replace("_deleted_category_",W)}),children:t.jsx(Zn,{})}):null]}),t.jsx(ie,{className:"item-value-container",style:{marginLeft:P===!0?-2:0},children:P===!0?t.jsx(t.Fragment,{children:R===!0?t.jsxs(le,{onClick:L=>{L.stopPropagation(),xe(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Gn,{}),Pe.addCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,name:Ci,placeholder:Pe.addCategory,valueToId:L=>(M=>o.filter(U=>U.qboId===M)[0]?.qboId)(L),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:L=>!!L.selectedOption},disableCurrentOption:A,customStyleConfig:D})}):t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]})}):t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Qt.category}),t.jsx(ie,{className:"item-value-container",children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(qe,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.jeDebit.account?.accountName??Ue})})})]}),t.jsxs(X,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Qt.classText}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(qe,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.jeDebit.accountingClass?.className??Ue})})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:Pe.scheduleHeaders.type}),t.jsx(ie,{className:"test",children:t.jsx(le,{className:"highlight",style:{width:"unset"},children:t.jsx(Na,{children:Pe.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:H===!0?t.jsx(X,{style:{width:ut,padding:"unset",justifyContent:"center"},showHoverEffect:H,forceHoverEffect:r.updatedAccumulatedDepreciationCategoryID==null&&ce===!1,children:t.jsxs(ct,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Pe.scheduleHeaders.accumulatedCategory,H===!0?t.jsx(fe,{display:"flex",placement:"top-end",title:t.jsx(An,{children:Pe.tooltipText.missingDepCategory.replace("_deleted_dep_category_",ee)}),children:t.jsx(Zn,{})}):null]}),t.jsx(ie,{className:"item-value-container",style:{marginLeft:H===!0?-2:0},children:H===!0?t.jsx(t.Fragment,{children:ce===!0?t.jsxs(le,{onClick:L=>{L.stopPropagation(),K(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":_("je-schedule-resolve-component-add-depreciation-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(Gn,{}),Pe.addDepCategory]}):t.jsx(nn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:wi,placeholder:Pe.addDepCategory,valueToId:L=>(M=>p.filter(U=>U.qboId===M)[0]?.qboId)(L),defaultValue:{allOptions:m},registerOptions:{required:!0,validate:L=>!!L.selectedOption},customStyleConfig:v,disableCurrentOption:A})}):t.jsx(fe,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})})]})}):t.jsxs(X,{style:{width:ut,padding:`${n.sp2} ${n.sp2} ${n.sp2} ${n.sp3}`,justifyContent:"center"},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Pe.scheduleHeaders.accumulatedCategory}),t.jsx(fe,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(qe,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(le,{className:"highlight",children:i.jeCredit.account?.accountName??Ue})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(X,{style:{width:ut}}):null,t.jsx(X,{style:{width:qt}})]}),t.jsxs(Tc,{children:[t.jsx(X,{style:{padding:"unset",width:wt},children:t.jsxs(Lc,{children:[t.jsx(te,{children:Pe.scheduleHeaders.jePostingDate}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(gi.visual.MMMDCommaYYFormat)??Ue})})]})}),t.jsxs(X,{children:[t.jsx(te,{children:Pe.scheduleHeaders.balance}),t.jsx(ie,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Je("0,0.[00]",Nt(i?.scheduledJournalEntry?.runningBalance?.amount??0,lt.currencyCode,lt.currencySymbol))??Ue}),children:t.jsx(le,{className:"highlight",children:Je("0,0.[00]",Nt(i?.scheduledJournalEntry?.runningBalance?.amount??0,lt.currencyCode,lt.currencySymbol))??Ue})})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:Pe.scheduleHeaders.months}),t.jsx(ie,{children:t.jsxs(le,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(X,{style:{width:ut}}),t.jsxs(X,{style:{alignItems:"flex-end",width:qt},children:[t.jsx(te,{children:Pe.scheduleHeaders.amountForMonth}),t.jsx(ie,{children:t.jsx(le,{className:"highlight",children:Je("0,0.[00]",Nt(i.scheduledJournalEntry.amount?.amount??0,lt.currencyCode,lt.currencySymbol))??Ue})})]})]})]}),t.jsx(Bo,{children:t.jsx(pn,{form:fi(`${tt}_${i.jeScheduleId}`),label:Yd,variant:"primary",className:"item-value-container",type:"submit",loading:d?.fetchState==="In-Progress",size:"small",disabled:!S,style:{minWidth:69}})})]})})})})},vi=(e,o,c,l,m,p,i,r)=>{const d=e.updatedCategoryId,h=e.updatedVendor,u=h!=null?r.vendor.find(k=>k.zeniId===h.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,f=e.updatedClassId,y=d!=null?m.find(k=>k.accountId===d):void 0,w=x!=null?i.find(k=>k.accountId===x):void 0,b=f!=null?p.find(k=>k.classId===f):void 0;return{[tt]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:y?.qboId,allOptions:o},accumulatedDepreciationCategory:{selectedOption:w?.qboId,allOptions:l},vendor:{selectedOption:u?.id??h?.id,defaultOptions:ja(r,u??h)},scheduleClass:{selectedOption:b?.classId,allOptions:c}}}},Gn=s(Pn)`
846
- width: ${n.sp3};
847
- height: ${n.sp3};
848
- `,Zn=s(ka)`
849
- width: 12px;
850
- height: 12px;
851
- color: ${Xe.important};
852
- `;function Ya(){return t.jsx(za,{children:t.jsxs(Pa,{children:[t.jsxs(Ma,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(bi,{})]}),t.jsxs(_a,{children:[t.jsx(De,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(bi,{})]})]})})}const bi=()=>t.jsx(Do,{style:{minWidth:1088},children:t.jsxs(Eo,{children:[t.jsxs(Oo,{children:[t.jsxs(Ao,{children:[t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{children:t.jsx(De,{width:g[10],height:14})}),t.jsxs(ie,{style:{gap:g[2]},children:[t.jsx(ko,{height:g[4],width:g[4]}),t.jsx(De,{height:g[4],width:g[10]})]})]}),t.jsxs(X,{children:[t.jsx(te,{children:t.jsx(De,{width:101,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:203})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:t.jsx(De,{width:g[9],height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:71})})]}),t.jsxs(X,{style:{width:ut,paddingLeft:g[3]},children:[t.jsx(te,{children:t.jsx(De,{width:107,height:14})}),t.jsx(De,{height:g[4],width:68})]}),t.jsxs(X,{style:{alignItems:"flex-end",width:qt},children:[t.jsx(te,{children:t.jsx(De,{width:73,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:49})})]})]}),t.jsxs(Ro,{children:[t.jsxs(X,{style:{width:wt,padding:`${n.sp2} ${n.sp3}`},children:[t.jsx(te,{children:t.jsx(De,{width:49,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:158})})]}),t.jsxs(X,{children:[t.jsx(te,{children:t.jsx(De,{width:36,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:88})})]}),t.jsxs(X,{style:{width:Ut},children:[t.jsx(te,{children:t.jsx(De,{width:36,height:14})}),t.jsx(ie,{children:t.jsx(De,{height:g[4],width:100})})]}),t.jsx(X,{style:{width:ut,paddingLeft:g[3]}}),t.jsx(X,{style:{width:qt}})]})]}),t.jsxs(Bo,{children:[t.jsx(De,{height:29,width:53,style:{margin:`${n.sp0} ${n.sp3}`}}),t.jsx(De,{height:29,width:53,style:{margin:`${n.sp0} ${n.sp3}`}})]})]})}),De=s(Bt)`
853
- border-radius: ${n.sp1};
854
- `,{common:{create:eu,resolve:tu}}=ve.getLocalizedStrings();function nu({jeSchedules:e,vendorSearchAutoCompleteData:o,handleJeScheduleClick:c,onJESchedulesFormDataChange:l,onPostJESchedule:m,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:r}){const d=e.draftSchedules,h=e.jeScheduleLocalDataById,u=e.postStatusById,x=e.ignoreStatusById,f=e.resolveSchedules,y=e.uncategorizedAccounts,{allAccountList:w,allClassList:b,allDepreciationAccountList:k}=e,C=Dt(e.accountListNestedAccountHierarchy),I=Dt(e.allDepreciationAccountListNestedAccountHierarchy),T=Ln(e.classListNestedAccountHierarchy),$=(v,S,B)=>{c(v,S,B)},D=(v,S,B,A)=>{let z=v.target;for(;z;){if(z.classList.contains("item-value-container")||z.classList.contains("hover-background")||z.classList.contains("auto-complete-single-select-field__input")||z.classList.contains("auto-complete-single-select-field__option")||z.classList.contains("grouped-single-select-field__input")||z.classList.contains("grouped-single-select-field__menu"))return;z=z.parentElement}c(S,B,A)};return a.useEffect(()=>{if(f.length!==0){for(const v in h)if(Object.prototype.hasOwnProperty.call(h,v)){const{updatedAccumulatedDepreciationCategoryID:S,updatedCategoryId:B,updatedVendor:A}=h[v];if(S!=null||B!=null||A!=null&&A?.id!==""){r("expenseAutomationJESchedulePage");break}r("expenseAutomationPage")}}else f.length===0&&r("expenseAutomationPage")}),a.useEffect(()=>()=>{r("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Ya,{}):d.length!==0||f.length!==0?t.jsx(za,{children:t.jsxs(Pa,{children:[d.length>0?t.jsxs(Ma,{children:[t.jsxs(ji,{children:[eu,t.jsx(ki,{isCircular:d.length<10,children:t.jsx(Ii,{children:d.length})})]}),t.jsx(Si,{"data-testid":_("expense-automation","draft-je-schedules"),children:d.map((v,S)=>t.jsx(Jd,{ignoreStatus:x[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:$,jeScheduleClickHandler:D,draft:v},`${S}_${v.jeScheduleId}`))})]}):null,f.length>0?t.jsxs(_a,{children:[t.jsxs(ji,{children:[tu,t.jsx(ki,{isCircular:f.length<10,children:t.jsx(Ii,{children:f.length})})]}),t.jsx(Si,{"data-testid":_("expense-automation","resolve-je-schedules"),children:f.map((v,S)=>h[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(Qd,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:o,jeScheduleClickHandler:D,onPostJESchedule:m,uncategorizedAccounts:y,allAccountList:w,allAccountGroupedOptions:C,allClassGroupedOptions:T,allClassList:b,allDepAccountGroupedOptions:I,allDepAccountList:k,draft:v,postStatus:u[v.scheduledJournalEntry.scheduledJournalEntryID],localData:h[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:l},`${S}_${v.jeScheduleTransactionKey}`))})]}):null]})}):null}const Si=s.div`
855
- display: flex;
856
- flex-direction: column;
857
- gap: ${n.sp4};
858
- min-width: 1088px;
859
- `,ji=s(na)`
860
- color: ${e=>e.theme.colors.primary};
861
- padding: ${n.sp2} ${n.sp0};
862
- display: flex;
863
- align-items: center;
864
- gap: ${n.sp1};
865
- `,ki=s.div`
866
- border-radius: ${n.sp12};
867
- display: flex;
868
- justify-content: center;
869
- border: ${e=>`1px solid ${e.theme.colors.grey1}`};
870
- color: ${e=>e.theme.colors.hero};
871
- ${e=>e.isCircular?Ye`
872
- height: ${n.sp3};
873
- width: ${n.sp3};
874
- padding: ${n.sp0};
875
- `:Ye`
876
- height: 18px;
877
- padding: ${or.padding};
878
- `}
879
- `,Ii=s(ir)`
880
- color: ${e=>e.theme.colors.hero};
881
- height: 100%;
882
- width: 100%;
883
- display: flex;
884
- align-items: center;
885
- justify-content: center;
886
- color: inherit;
887
- `;function ou({expenseAutomationViewSelector:e,currentFooterFormId:o,setResetJeAccountSettingsForm:c,vendorSearchAutoCompleteData:l,onJESchedulesFormDataChange:m,onPostJESchedule:p,handleJeScheduleClick:i,onJeAccountSettingsChange:r,onSaveJeAccountSettingsClick:d,ignoreRecommendedJeSchedule:h,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:x,setIsJeAccountSettingsOpened:f}){const{jeSchedules:y}=e;return y.fetchState==="In-Progress"||y.accountSettingsView.fetchState==="In-Progress"?t.jsx(Ya,{}):y.accountSettingsView.fetchState==="Completed"&&y.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&y.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(Nd,{setIsJeAccountSettingsOpened:f,setResetJeAccountSettingsForm:c,currentFooterFormId:o,onJeAccountSettingsChange:r,onSaveJeAccountSettingsClick:d,accountSettings:y.accountSettingsView,setCurrentFooterFormId:x}):y.fetchState==="Completed"&&y.draftSchedules.length===0&&y.resolveSchedules.length===0?t.jsx(bt,{tab:e.currentSelectedView,title:Ve(e.currentSelectedView).allDoneText.title,subTitle:Ve(e.currentSelectedView).allDoneText.subTitle}):y.fetchState==="Completed"?t.jsx(nu,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:h,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:m,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:l}):null}const iu=["receipts"],$i=e=>Ta(e,iu),{common:{texts:{vendor:au,amount:su,receipts:ru,category:lu,classText:cu,date:du}}}=ve.getLocalizedStrings(),dt=[{key:"vendor",value:au,sortOrder:"ascending",width:new Q(18,18)},{key:"category",value:lu,sortOrder:"ascending",width:new Q(18,18)},{key:"class",value:cu,sortOrder:"ascending",width:new Q(18,18)},{key:"date",value:du,sortOrder:"descending",width:new Q(11,11)},{key:"receipts",value:ru,sortOrder:"descending",width:new Q(6,6)},{key:"amount",value:su,sortOrder:"ascending",width:new Q(10,10)}],Ti="date",uu="descending",Li={containerPaddingLeftRight:new Q(g[3],g[4])},Xa=({sortConfig:e,isDisabled:o,onColumnSortConfigChanged:c})=>{const l=we(),[m,p]=a.useState(dt);a.useEffect(()=>{const r=[...m];for(const d of r)d.key===e.sortKey?d.sortOrder=e.sortOrder:d.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,d)=>{let h=d;e.sortKey===r&&(h=d==="ascending"?"descending":"ascending"),c(r,h)};return t.jsx(hu,{windowSize:l,children:m.map((r,d)=>{const h=o!=null||$i(r.key)!=null;return t.jsxs(pu,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:h,windowSize:l,isLastItem:d===m.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(yu,{onClick:()=>h?null:(u=>{$i(u.key)==null&&i(Lr(u.key),u.sortOrder)})(r),isSortDisabled:h,children:[t.jsx(Cu,{children:r.value}),h?null:t.jsx(gu,{sortConfig:e,headerData:r,children:t.jsx(fu,{})})]}),h?null:t.jsx(xu,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Ti,children:t.jsx(mu,{onClick:()=>{h||i(Ti,uu)},"data-testid":_("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},hu=s.div`
888
- top: ${n.sp0};
889
- left: ${n.sp0};
890
- height: ${50}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=>Li.containerPaddingLeftRight.valuePx(e.windowSize)};
899
- padding-right: ${e=>Li.containerPaddingLeftRight.valuePx(e.windowSize)};
900
- `,pu=s.div`
901
- color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
902
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
903
- max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
904
- padding-left: ${n.sp0};
905
- left: ${n.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
- `,mu=s(zn)`
914
- width: ${n.sp2};
915
- height: ${n.sp2};
916
- cursor: pointer;
917
- `,gu=s.div`
918
- display: flex;
919
- align-items: center;
920
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
- `,xu=s.div`
922
- display: ${e=>e.isVisible?"flex":"none"};
923
- align-items: center;
924
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
925
- &:hover {
926
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
927
- }
928
- `,fu=s(Fn)`
929
- width: ${n.sp2};
930
- height: ${n.sp2};
931
- `,yu=s.div`
932
- display: flex;
933
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
934
- gap: 6px;
935
- &:hover {
936
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
937
- }
938
- `,Cu=s(mt)`
939
- display: flex;
940
- `,{common:{strings:{underscore:Qa,hyphen:Yn,empty:Ai},documents:{singleFileUploadSizeErrorMessage:wu,multipleFileUploadSizeErrorMessage:vu},snackBar:{missing_receipts_attachment:{failed:bu}},tooltips:{addMissingReceipt:Su}},dateFormat:ju}=ve.getLocalizedStrings(),$n={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[2],g[3])},ku=({transaction:e,uploadReceiptsFetchState:o,receiptUploadEndpoint:c,authParams:l,selectedPeriod:m,onUploadReceiptComplete:p,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:r,onUploadReceiptAttachment:d})=>{const h=we(),u=a.useRef(null),x=a.useCallback(async(w,b,k,C,I)=>{r(e.id,"In-Progress"),await Br(w,b,k,C,I).then(({uploadResponse:T,errorMessage:$})=>{T!=null?T.transaction.attachments!=null&&(d(T.transaction),setTimeout(()=>p(T.transaction,m),2e3)):r(e.id,"Error",{code:500,message:bu},$)}).catch(T=>{r(e.id,"Error",T)})},[e.id,m,d,p,r]),f=a.useCallback(w=>{if(w.target.files!=null){const b=w.target.files,k=[],C=[];for(let I=0;I<b.length;I++)k.push(b[I].name),C.push(b[I]);x(c,l,b[0],b[0].name,{id:e.id,type:e.type})}},[l,x,c,e.id,e.type]),y=a.useCallback(()=>{u.current?.click()},[u]);return t.jsx(es,{windowSize:h,onClick:()=>i(e.id,e.type),"data-testid":_("missing-receipts-list-row",e.id),children:dt.map((w,b)=>{const k=`${e.id}${Qa}${w.key}`;switch(w.key){case"vendor":default:return t.jsx(Vt,{windowSize:h,wrapperWidth:w.width,children:t.jsx(Ht,{windowSize:h,isLastItem:b===dt.length-1,children:t.jsxs(Rn,{children:[t.jsx(fa,{photoUrl:e.vendorId!=null?e.logo?.toString()??Ai:Ai,styles:{width:n.sp4,height:n.sp4,borderRadius:n.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Eu,{children:t.jsx(hn,{name:e.vendorName??e.description,size:n.sp4})})}),t.jsx(nt,{text:e.vendorName??e.description,itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"}})]})})},k);case"category":case"class":{const C=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Yn,I=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Yn,T=w.key==="category"?C:I;return t.jsx(Vt,{windowSize:h,wrapperWidth:w.width,children:t.jsx(Ht,{windowSize:h,isLastItem:b===dt.length-1,children:t.jsx(Rn,{children:T!==Yn?t.jsx(nt,{text:T,itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Ru,{children:T})})})},k)}case"date":return t.jsx(Vt,{windowSize:h,wrapperWidth:w.width,children:t.jsx(Ht,{windowSize:h,isLastItem:b===dt.length-1,children:t.jsx(Rn,{children:t.jsx(nt,{text:e.date.format(ju.visual.MMMDCommaYYYYformat),itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"}})})})},k);case"receipts":return t.jsx(Vt,{windowSize:h,wrapperWidth:w.width,children:t.jsx(Ht,{windowSize:h,isLastItem:b===dt.length-1,style:{justifyContent:"center"},children:o.fetchState==="In-Progress"?t.jsx(da,{size:"Small",style:{display:"flex"},start:!0}):o.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(nr,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Au,{onClick:C=>{C.stopPropagation()},children:t.jsx(ca,{"data-testid":_("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Nn,multiple:!1,acceptableTypes:[...Rr],onFileChange:f,onFileSizeError:(C,I)=>{C&&r(e.id,"Error",{code:500,message:I===!0?wu.replace("__maxFileSize__",Mo(Nn,0)):vu.replace("__maxFileSize__",Mo(Nn,0))})}})}),t.jsx(fe,{display:"flex",placement:"bottom",title:Su,enterDelay:600,children:t.jsx(Lu,{onClick:C=>{C.stopPropagation(),y()}})})]})})},k);case"amount":{const C=Je("0,0.[00]",e.amount);return t.jsx(Vt,{windowSize:h,wrapperWidth:w.width,children:t.jsx(Ht,{windowSize:h,isLastItem:b===dt.length-1,children:t.jsx(nt,{text:e.amount.amount<0?`-${C}`:C,itemTextStyle:{...Rt.standardRegular.cssObject,color:"inherit"}})})},k)}}})})},Iu=()=>{const e=we(),o=a.useRef(null),[c,l]=a.useState(0);return a.useLayoutEffect(()=>{o.current&&l(o.current.offsetWidth)},[e]),t.jsx(es,{windowSize:e,ref:o,children:dt.map((m,p)=>{const i=`${p}${Qa}${m.key}`;return m.key==="vendor"?t.jsx(Vt,{windowSize:e,wrapperWidth:m.width,children:t.jsx(Ht,{windowSize:e,isLastItem:p===dt.length-1,children:t.jsxs(Rn,{children:[t.jsx(ko,{width:g[4],height:g[4]}),t.jsx(Bt,{width:c*m.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i):t.jsx(Vt,{windowSize:e,wrapperWidth:m.width,children:t.jsx(Ht,{windowSize:e,isLastItem:p===dt.length-1,children:t.jsx(Bt,{width:c*m.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)})})},es=s.div`
941
- display: flex;
942
- background-color: ${e=>e.theme.colors.grey5};
943
- padding-left: ${e=>$n.containerPaddingLeftRight.valuePx(e.windowSize)};
944
- padding-right: ${e=>$n.containerPaddingLeftRight.valuePx(e.windowSize)};
945
- padding-top: ${e=>$n.containerPaddingTopBottom.valuePx(e.windowSize)};
946
- padding-bottom: ${e=>$n.containerPaddingTopBottom.valuePx(e.windowSize)};
947
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
948
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
949
- border-radius: ${n.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
- `,Vt=s.div`
961
- display: flex;
962
- align-items: center;
963
- position: relative;
964
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
965
- min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
966
- :last-of-type {
967
- padding-right: ${n.sp0};
968
- }
969
- `,$u=Ye`
970
- word-break: break-all;
971
- white-space: normal;
972
- -webkit-line-clamp: 1;
973
- -webkit-box-orient: vertical;
974
- overflow: hidden;
975
- text-overflow: ellipsis;
976
- display: -webkit-box;
977
- `,Tu=Ye`
978
- height: ${n.sp3};
979
- width: ${n.sp3};
980
- cursor: pointer;
981
- `,Lu=s(Pn)`
982
- ${Tu};
983
- color: ${e=>e.theme.colors.brandColorGoldDark};
984
- &:hover {
985
- color: ${e=>e.theme.colors.primary};
986
- }
987
- `,Ht=s(Oe)`
988
- overflow: hidden;
989
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
990
- display: flex;
991
- width: 100%;
992
- align-items: center;
993
- `,Au=s.div``,Rn=s.div`
994
- display: flex;
995
- flex-direction: row;
996
- column-gap: ${n.sp2};
997
- align-items: center;
998
- `,Ru=s(Oe)`
999
- ${$u};
1000
- color: inherit;
1001
- `,Eu=s.div`
1002
- display: flex;
1003
- `,Du=({sortConfig:e,fetchState:o,isDisabled:c,onColumnSortConfigChanged:l})=>{const m=we();return t.jsxs(Bu,{windowSize:m,children:[t.jsx(Xa,{sortConfig:e,isDisabled:o==="In-Progress"?"readonly":c,onColumnSortConfigChanged:l}),t.jsx(Ou,{windowSize:m,children:[...Array(3)].map((p,i)=>t.jsx(Iu,{},i))})]})},Bu=s.div`
1004
- display: block;
1005
- min-height: 100%;
1006
- flex-direction: column;
1007
- width: 100%;
1008
- `,Ou=s.div`
1009
- display: flex;
1010
- min-height: 100%;
1011
- flex-direction: column;
1012
- row-gap: ${n.sp3};
1013
- `,{common:Fu}=ve.getLocalizedStrings(),zu=({missingReceipts:e,receiptUploadEndpoint:o,authParams:c,selectedPeriod:l,isDisabled:m,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:d,onUpdateMissingReceiptsUIState:h,onFetchMissingReceiptsList:u})=>{const x=we(),{fetchState:f,uiState:y,transactions:w}=e,b=a.useRef(null),[k,C]=a.useState(!1);a.useEffect(()=>{b.current?.resetAfterIndex(0)},[x,b]),a.useEffect(()=>{f==="Completed"&&C(!1)},[f]);const I=$=>72,T=($,D)=>{h({sortOrder:D,sortKey:$})};return t.jsxs(_u,{children:[t.jsx(Nu,{windowSize:x,children:f==="Error"?t.jsxs(Hu,{windowSize:x,children:[t.jsx(Wu,{onClick:()=>u(),"data-testid":_("missing-receipts-list-table-reload-button"),children:t.jsx(vo,{})}),t.jsx(Uu,{children:Fu.reloadPage.label})]}):f==="Completed"&&w.length===0?t.jsx(bt,{tab:"missing_receipts",title:Ve("missing_receipts").allDoneText.title,subTitle:Ve("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&w.length===0?t.jsx(Du,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},fetchState:f,onColumnSortConfigChanged:T}):t.jsx(Vu,{windowSize:x,children:t.jsx(Bn,{children:({height:$,width:D})=>t.jsxs(Ju,{style:{height:$,width:D},children:[t.jsx(Mu,{children:t.jsx(Xa,{sortConfig:{sortKey:y.sortKey,sortOrder:y.sortOrder},isDisabled:f==="In-Progress"?"readonly":m,onColumnSortConfigChanged:T})}),t.jsx(On,{ref:b,height:$-50,itemCount:w.length,itemData:{missingReceipts:e,receiptUploadEndpoint:o,authParams:c,isDisabled:m,selectedPeriod:l,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:d},itemSize:I,width:D,style:{willChange:"auto"},overscanCount:1,onScroll:({scrollOffset:v})=>{h({scrollPosition:{scrollTop:v}})},initialScrollOffset:y.scrollPosition?.scrollTop,children:Pu})]})})})}),t.jsx(_e,{controller:k===!0,children:t.jsx(Ku,{children:t.jsx(da,{size:"Small",start:!0})})})]})},Pu=({index:e,style:o,data:c})=>{const{missingReceipts:l,receiptUploadEndpoint:m,authParams:p,onMissingReceiptsRowClick:i,onUploadReceiptComplete:r,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:h,selectedPeriod:u}=c,x=l.transactions[e];return t.jsx(qu,{style:{...o,width:"100%"},children:t.jsx(ku,{transaction:x,receiptUploadEndpoint:m,authParams:p,selectedPeriod:u,onMissingReceiptsRowClick:i,onUploadReceiptComplete:r,onUploadReceiptAttachment:d,onUploadReceiptFetchStatus:h,uploadReceiptsFetchState:l.uploadReceiptStatusById[x.id]??{fetchState:"Not-Started",error:void 0}},x.id)})},Mu=s.div`
1014
- width: auto;
1015
- `,_u=s.div`
1016
- width: 100%;
1017
- height: 100%;
1018
- background-color: ${e=>e.theme.colors.grey4};
1019
- `,Nu=s.div`
1020
- height: 100%;
1021
- `,Vu=s.div`
1022
- height: 100%;
1023
- display: flex;
1024
- flex-direction: column;
1025
- max-width: 99.9%;
1026
- `,Hu=s.div`
1027
- display: flex;
1028
- width: 100%;
1029
- height: ${e=>`calc(100% - ${ga.valuePx(e.windowSize)})`};
1030
- flex-direction: column;
1031
- justify-content: center;
1032
- align-items: center;
1033
- `,Wu=s.div`
1034
- height: 96px;
1035
- width: 96px;
1036
- background: ${e=>e.theme.colors.background};
1037
- border-radius: 50%;
1038
- cursor: pointer;
1039
- & svg {
1040
- margin: ${n.sp5};
1041
- color: ${e=>e.theme.colors.grey1};
1042
- }
1043
- &:hover {
1044
- & svg {
1045
- color: ${e=>e.theme.colors.primary};
1046
- }
1047
- }
1048
- `,Uu=s(Xs)`
1049
- margin-top: ${n.sp3};
1050
- color: ${e=>e.theme.colors.hero};
1051
- `,qu=s.div`
1052
- top: ${n.sp0};
1053
- left: ${n.sp0};
1054
- padding-bottom: ${n.sp3};
1055
- box-sizing: border-box;
1056
- `,Ju=s.div`
1057
- position: relative;
1058
- `,Ku=s.div`
1059
- display: flex;
1060
- width: 100%;
1061
- height: ${n.sp3};
1062
- flex-direction: row;
1063
- justify-content: center;
1064
- align-items: center;
1065
- margin-top: ${n.sp3};
1066
- margin-bottom: ${n.sp3};
1067
- `,Gu=[...Ir],Zu=s.div`
1068
- width: ${ln}px;
1069
- `,Xn=s.div`
1070
- width: ${e=>`${e.availableWidth}px`};
1071
- min-width: auto;
1072
- position: relative;
1073
- height: fit-content;
1074
- min-height: ${n.sp12};
1075
- `,Yu=s.div`
1076
- flex-grow: 1;
1077
- overflow: auto;
1078
- min-height: 2em;
1079
- display: flex;
1080
- flex-direction: row;
1081
- position: relative;
1082
-
1083
- pointer-events: auto;
1084
- user-select: text;
1085
- justify-content: space-between;
1086
- margin-bottom: ${n.sp2};
1087
-
1088
- // Disable select for Zeni Logo and File Separator
1089
- #${la} img[alt*="company logo"],
1090
- .attachFileSeparator {
1091
- user-select: none;
1092
- }
1093
- `,Xu=s.div`
1094
- display: flex;
1095
- column-gap: ${n.sp2};
1096
- align-items: flex-end;
1097
- margin-top: ${n.sp2};
1098
- margin-bottom: ${n.sp3};
1099
- `,Qu=s.div`
1100
- position: relative;
1101
- `,Ri=s(Oe)`
1102
- position: relative;
1103
- `,eh=s.div`
1104
- background-color: ${e=>e.theme.colors.grey5};
1105
- border: ${e=>`1px solid ${e.theme.colors.background}`};
1106
- border-radius: ${n.sp2};
1107
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
1108
- padding: ${n.sp5};
1109
- color: ${e=>e.theme.colors.primary};
1110
- position: relative;
1111
- .lexicalEditor__nestedListItem {
1112
- list-style-type: none;
1113
- }
1114
- user-select: text;
1115
-
1116
- .monthEndReportCanvasWrapper > * {
1117
- isolation: isolate;
1118
- z-index: ${g[1]};
1119
- }
1120
- `,th=s.div`
1121
- user-select: text;
1122
- `,nh=s.div`
1123
- position: absolute;
1124
- top: ${n.sp4}; // Attachment icon position from the top
1125
- right: -${n.sp3}; // To show attachment icon on the edge
1126
- `,oh=s.div`
1127
- margin-top: ${n.sp2};
1128
- display: flex;
1129
- flex-direction: column;
1130
- row-gap: ${n.sp3};
1131
- margin-bottom: ${n.sp4};
1132
- position: relative;
1133
-
1134
- .toolbar {
1135
- user-select: none;
1136
- }
1137
- `,ih=s(jt)`
1138
- color: ${e=>e.theme.colors.grey1};
1139
- user-select: none;
1140
- `,ah=s(ma)`
1141
- color: ${e=>e.theme.colors.primary};
1142
- `,sh=s.div`
1143
- flex-direction: column;
1144
- row-gap: ${n.sp3};
1145
- display: flex;
1146
- `,rh=$o`
1147
- 0% {
1148
- transform: translateX(100%);
1149
- }
1150
- 100% {
1151
- transform: translateX(0)
1152
- }
1153
- `,lh=$o`
1154
- 0% {
1155
- transform: translateX(0)
1156
- }
1157
- 100% {
1158
- transform: translateX(100%)
1159
- }
1160
- `,ch=s.div`
1161
- animation: ${e=>e.allThreadsSectionOpen?rh:lh}
1162
- 0.5s forwards;
1163
- height: 100vh;
1164
- position: fixed;
1165
- right: ${n.sp0};
1166
- top: ${n.sp0};
1167
- z-index: ${g[2]};
1168
- min-width: ${sa}px;
1169
- max-width: ${aa}px;
1170
- `,En="monthEndReportFormSection",Ei="monthEndReportPage",Ge=ve.getLocalizedStrings();function dh({companyId:e,enableZeniGPTFeature:o,monthEndReportView:c,previewMode:l,customerRequestData:m,allThreadsSectionOpen:p,filterMetaData:i,newThreadMetadata:r,isZeniUser:d,selectedPeriod:h,improveUsingZeniGPTClick:u,onRemoveFileAttachment:x,onUpdateFileAttachment:f,onCloseAllThreadsSection:y,previewMonthEndReport:w,saveMonthEndReport:b,onEditClick:k,onOpenFileAttachmentSnackBar:C,onClickCustomerRequest:I,sendMonthEndReport:T}){const $=St(),[D,v]=a.useState(),[S,B]=a.useState(0),[A,z]=a.useState(0),O=a.useRef(),P=a.useRef(null),H=a.useRef(null),{html:V,subject:W,improveUsingZeniGPTStatus:ee}=c,[R,xe]=a.useState(),[ce,K]=a.useState(!1),[N,F]=a.useState(!1),L=a.useRef(null),M=a.useRef(null),J=js(p,250),U=c.fetchState==="Not-Started"||c.fetchState==="In-Progress"||c.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||c.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:se,sortedThreads:q,threadsPositions:Y,observer:E,unresolvedThreadsMap:G,handleRemoveFloatingThread:j}=ks(i,L,!l,U,d),Z=a.useCallback(()=>{p?M.current!=null&&z(Math.min((M.current.offsetWidth-ln-g[4])/2,M.current.offsetWidth-ln-aa-g[4])):M.current!=null&&B(Math.min((M.current.offsetWidth-ln-g[4])/2,M.current.offsetWidth-ln-sa-g[4]))},[p]);a.useEffect(()=>{Z()},[p,Z]),a.useEffect(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[Z]);const ne=d?Xi:Qi,{openThread:ae,addThread:pe,setOpenThread:oe}=a.useContext(ne),de=Is(zo,!1,!l),je=L.current?.getBoundingClientRect(),Be=de!=null&&de.coords&&je?{left:de.coords.left-je.left,top:de.coords.top-je.top}:void 0,Fe=a.useCallback(()=>{const ye=window.getSelection()?.getRangeAt(0),be=$s();if(!ye||be==null)return;const Ie={...r,...be,startPath:be.startPath.join(),endPath:be.endPath.join()},ge=`${ra()}${ia}`;pe(ge,{type:"thread",id:ge,roomId:`cockpit_${e}`,createdAt:new Date,comments:[],metadata:Ie,updatedAt:new Date,resolved:!1}),oe(ge)},[pe,e,r,oe]);a.useEffect(()=>{ae!=null&&p&&y()},[p,ae,y]);const Se=ee.fetchState==="In-Progress",ke=Jt({mode:"all",defaultValues:Di(c),values:Di(c)}),ue=ke.handleSubmit(ye=>{const{recipientEmailList:be,subject:Ie}=ye[En];if(l===!0)T?.(R?.id);else{const ge=D?.replace(Ts,Ge.common.strings.empty);be!=null&&Ie!=null&&w(be,Ie,R?.id,ge!=null&&ge.length>0?D:void 0)}});a.useEffect(()=>{v(c.zeniRequestsHtml)},[c.zeniRequestsHtml]),a.useEffect(()=>{O.current=R},[R]),a.useEffect(()=>{xe(kr(c.attachmentFile)),K(!1)},[c.attachmentFile]),a.useEffect(()=>{N&&C()},[N,C]);const Ne=xo(`${h.year}-${h.month}-01`).format(Ge.dateFormat.visual.MMMMFormat),Me=V!=null?V.split(Ls):[],Qe=c.concatenatedHtml,re=(c.zeniRequestsData??[]).length+As(c.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(Yu,{ref:M,children:[t.jsx(Xn,{availableWidth:p?A:S}),t.jsxs(Zu,{children:[t.jsx(Kt,{...ke,children:t.jsx("form",{id:Bi(Ei),onSubmit:ue,children:t.jsxs(sh,{children:[t.jsx(Rs,{sectionId:En,previewMode:l,subject:W}),!l&&re>0?t.jsx(Es,{totalItems:re,onClickCustomerRequest:I}):null,t.jsxs(eh,{id:zo,ref:L,children:[t.jsxs(th,{className:"monthEndReportCanvasWrapper",children:[R!=null||N?t.jsx(nh,{"data-testid":_("email-attachment-container"),onClick:()=>{H.current&&H.current.scrollIntoView({behavior:"smooth"})},children:t.jsx(Ds,{fileSizeError:N,setFileSizeError:F,loading:!1,showAnimation:!l&&ce})}):null,l?t.jsx(Ri,{dangerouslySetInnerHTML:{__html:Bs(Qe)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Qu,{id:Os,children:[t.jsx(Oe,{dangerouslySetInnerHTML:{__html:Me[0]!=null?Me[0]+"</body></html>":Ge.common.strings.empty}}),t.jsxs(Xu,{children:[t.jsx(ah,{children:Ge.cockpit.monthEndReport.editorTitle}),t.jsx(ih,{children:Ge.cockpit.monthEndReport.editorNote})]})]}),t.jsx(oh,{id:Fs,children:t.jsx(zs,{handleFileInputClick:()=>{P.current!=null&&P.current.click()},fileAttached:R!=null,enableZeniGPTFeature:o,isZeniGPTResponseLoading:Se,initialHtmlString:c.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:v,customerRequestData:m})}),t.jsx(Ri,{id:la,dangerouslySetInnerHTML:{__html:Me[1]!=null?"<html><body>"+Me[1]:Ge.common.strings.empty}})]}),R!=null?t.jsx(Ps,{ref:H,fileName:R.name,fileSize:Ms(R.data),onRemove:()=>{R!==void 0&&R!=null&&(x([R.id]),xe(void 0),K(!1))},isRemovable:!l}):null]}),Be?t.jsx(_s,{style:{zIndex:15},coords:Be,alignment:de.alignment,onClick:Fe}):null,t.jsx(Ns,{canvasContainerRef:L,sortedThreads:q,editorMode:!l,isZeniUser:d})]})]})})}),t.jsx(ca,{name:R?.name??Ge.common.strings.empty,fileRef:P,sizeLimit:716800,acceptableTypes:Gu,onFileChange:async ye=>{(be=>{const Ie=be.target.files?be.target.files[0]:null;if(Ie)if(!$r(Ie.type)||N)console.warn("Please select a valid file.");else{const ge=new FileReader;ge.onload=function(et){const Ke=et.target?.result;if(typeof Ke=="string"){const kt={data:Ke.split(",")[1],name:Ie.name,id:Tr(e,Ie.name)};xe(kt),K(!0),f([kt])}},ge.readAsDataURL(Ie)}})(ye)},onFileSizeError:ye=>F(ye),multiple:!1})]}),d===!0?J?t.jsxs(t.Fragment,{children:[t.jsx(ch,{allThreadsSectionOpen:p,children:t.jsx(Vs,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${$.colors.grey3}`,boxShadow:`${n.sp0} 1px 2px ${n.sp0} ${Xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${n.sp5} - ${n.sp5})`,backgroundColor:$.colors.background},threadsContainerStyle:{paddingBottom:l?"160px":n.sp12},collapsibleThreadStyle:{width:`calc(100% - ${n.sp4})`},allowComposer:!1,drawerTitle:Ge.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(ye,be)=>{oe(be);const Ie=q.findIndex(ge=>ge[0]===be);y(),se.current?.[Ie]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>y()})}),t.jsx(Xn,{availableWidth:S})]}):t.jsx(Hs,{observer:E,canvasContainerRef:L,sortedThreads:q,threadsPositions:Y,threadsRefs:se,unresolvedThreadsMap:G,editorMode:!l,style:{minWidth:`${S}px`,position:"relative",height:"fit-content",top:`${L.current?.offsetTop}px`,minHeight:n.sp12},handleRemoveFloatingThread:j}):t.jsx(Xn,{availableWidth:S})]}),t.jsx(ea,{style:{zIndex:10},leftSideComponent:c.lastDraftSavedDate!=null&&l===!1?t.jsx(Ws,{time:c.lastDraftSavedDate,user:c.reportLastSavedByUser,timeStampLabel:Ge.cockpit.monthEndReport.timeStampLabel}):null,formId:Bi(Ei),cancelBtn:{isDisabled:Se,label:l===!0?Ge.cockpit.monthEndReport.editButtonLabel:Ge.cockpit.monthEndReport.saveChanges,onClick:l===!0?k:()=>{const ye=ke.getValues(),{recipientEmailList:be,subject:Ie}=ye[En];be!=null&&Ie!=null&&b(be,Ie,R?.id,D)},style:{width:"136px",padding:`${n.sp0} ${n.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:c.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:Se,isLoading:l===!0?c.sendMonthEndReportStatus.fetchState==="In-Progress":c.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:l===!0?"unset":"136px"},label:l===!0?Ge.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",Ne):Ge.cockpit.monthEndReport.preview,size:"medium"}})]})}const Di=e=>({[En]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ge.common.strings.empty}}),Bi=e=>`${e}_form`;Rt.smallBold.lineHeightValue;const uh=["memo"],Oi=e=>Ta(e,uh),{common:{strings:{empty:hh}},expenseAutomation:{transactions:{header:{vendors:ph,category:mh,classText:gh,date:xh,type:fh,amount:yh}}}}=ve.getLocalizedStrings(),vt=[{key:"vendor",value:ph,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[7]}}},{key:"category",value:mh,sortOrder:"ascending",width:new Q(20,20),customStyle:{common:{paddingLeft:g[7]}}},{key:"class",value:gh,sortOrder:"ascending",width:new Q(18,18),customStyle:{common:{paddingLeft:g[7]}}},{key:"date",value:xh,sortOrder:"descending",width:new Q(11,11),customStyle:{common:{paddingLeft:12}}},{key:"transaction_type",value:fh,sortOrder:"descending",width:new Q(13,13),customStyle:{common:{paddingLeft:g[3]}}},{key:"memo",value:hh,sortOrder:"ascending",width:new Q(6,6),customStyle:{common:{}}},{key:"amount",value:yh,sortOrder:"ascending",width:new Q(10,10),customStyle:{common:{paddingRight:g[4]}}}],Fi="date",Ch="descending",ts=({sortConfig:e,isDisabled:o,onColumnSortConfigChanged:c})=>{const l=we(),[m,p]=a.useState(Io(vt));a.useEffect(()=>{const r=[...m];for(const d of r)d.key===e.sortKey?d.sortOrder=e.sortOrder:d.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,d)=>{let h=d;e.sortKey===r&&(h=d==="ascending"?"descending":"ascending"),c(r,h)};return t.jsx(wh,{windowSize:l,"data-testid":_("transaction-categorization-header-container"),children:m.map((r,d)=>{const h=o!=null||Oi(r.key)!=null;return t.jsxs(vh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:h,windowSize:l,isLastItem:d===m.length-1,"data-testid":_("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Ih,{"data-testid":_("transaction-categorization-header",r.value?r.value:r.key),onClick:()=>(u=>{Oi(u.key)==null&&i(Er(u.key),u.sortOrder)})(r),isSortDisabled:h,children:[t.jsx($h,{children:r.value}),h?null:t.jsx(Sh,{sortConfig:e,headerData:r,"data-testid":_("transaction-categorization-sort-icon",r.key),children:t.jsx(kh,{})})]}),h?null:t.jsx(jh,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Fi,"data-testid":_("transaction-categorization-close-icon",r.key),children:t.jsx(bh,{onClick:()=>{i(Fi,Ch)},"data-testid":_("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},wh=s.div`
1171
- top: ${n.sp0};
1172
- left: ${n.sp0};
1173
- height: ${50}px;
1174
- z-index: 2;
1175
- display: flex;
1176
- align-items: center;
1177
- justify-content: space-between;
1178
- box-sizing: border-box;
1179
- background-color: ${e=>e.theme.colors.grey4};
1180
- position: sticky;
1181
- `,vh=s.div`
1182
- color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1183
- width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1184
- max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1185
- padding-left: ${n.sp0};
1186
- left: ${n.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
- `,bh=s(zn)`
1195
- width: 12px;
1196
- height: 12px;
1197
- `,Sh=s.div`
1198
- display: flex;
1199
- align-items: center;
1200
- transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1201
- ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
1202
- `,jh=s.div`
1203
- display: ${e=>e.isVisible?"flex":"none"};
1204
- align-items: center;
1205
- padding-top: 2px;
1206
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1207
- &:hover {
1208
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1209
- }
1210
- `,kh=s(Fn)`
1211
- width: ${n.sp2};
1212
- height: ${n.sp2};
1213
- `,Ih=s.div`
1214
- display: flex;
1215
- cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1216
- gap: 6px;
1217
- &:hover {
1218
- color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1219
- }
1220
- `,$h=s(mt)`
1221
- display: flex;
1222
- `,Qn="expenseAutomationTransactionsPage",Wt="transactionCategorizationListTable",Te="account",Ze="class",rt="lineEntitySelection",Th="lineEntity",Lh="recommendations",ns="lineInfo",Ah="vendorDetails",Rh="customerDetails",Dn="selectedTransactionIds",Lt=(e,o,c)=>`${e}.${c}.${o}`,{common:{strings:{underscore:Eh,hyphen:Tn,empty:en}},expenseAutomation:{transactions:At},dateFormat:Dh}=ve.getLocalizedStrings(),Et={containerPaddingLeftRight:new Q(g[3],g[4]),containerPaddingTopBottom:new Q(g[1],g[2]),containerPaddingTopBottomEmpty:new Q(g[2],g[3]),nameLogoWidth:new Q(g[2],g[4]),nameLogoHeight:new Q(g[2],g[4])},Bh=({transactionView:e,transaction:o,sectionId:c,vendorSearchAutoCompleteData:l,vendorSearchAutoCompleteActions:m,selectedTab:p,containerRef:i,isCOTEnabled:r,cotTracking:d,onTransactionCategorizationRowClick:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:f,setOpenTooltipId:y,isUncategorizedExpenseCategoryEnabled:w})=>{const b=we(),[k,C]=a.useState(!1),{lineItemById:I,sortedLineItems:T}=o.transactionReviewLocalData,$=o.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],D=T.filter(F=>$.indexOf(F)!==-1),v=[];D.forEach(F=>{v.push(I[F])});const{accountList:S,accountsHierarchyList:B,classHierarchyList:A,classList:z,uncategorizedAccounts:O,transactions:P,selectedCheckBoxTransactionIds:H}=e,V=H.includes(o.transactionId),W=St(),ee={control:()=>({marginLeft:-2,backgroundColor:k?W.colors.background:W.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:W.colors.grey5}),singleValue:()=>({color:k||V?W.colors.primary:W.colors.hero,paddingLeft:g[2]}),input:F=>({...F,color:k||V?W.colors.primary:W.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:F=>({...F,zIndex:10})},R={...ee,singleValue:F=>({...F,color:k||V?W.colors.primary:W.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:F=>({...F,color:k||V?W.colors.primary:W.colors.hero,textAlign:"left"})},xe=P.find(F=>F.id===o.transactionId),ce=a.useRef(null),[K,N]=a.useState("auto");return a.useEffect(()=>{const F=()=>{if(i.current!=null&&ce.current!=null){const L=i.current.getBoundingClientRect(),M=ce.current.getBoundingClientRect().top-L.top;N(M>285?"top":"bottom")}};return F(),window.addEventListener("resize",F),window.addEventListener("scroll",F),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F)}},[i]),t.jsx(zh,{onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),windowSize:b,isSelected:V,isHovered:k,children:t.jsx(Ph,{children:v.map((F,L)=>t.jsx(Mh,{ref:ce,"data-testid":_("transaction-categorization-list-row",F.lineId),windowSize:b,onClick:M=>((J,U)=>{const{transactionType:se}=U.transactionReviewLocalData;let q=J.target;for(;q;){if(q.classList.contains("select-value-container")||q.classList.contains("item-value-container")||q.classList.contains("grouped-single-select-field__value-container")||q.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||q.classList.contains("grouped-single-select-field__input")||q.classList.contains("grouped-single-select-field__menu"))return;q=q.parentElement}se!=null&&h(U.transactionId,se)})(M,o),children:t.jsx(Oh,{line:F,isHovered:k||V,isSelected:V,lineIndex:L,sectionId:c,transaction:o,currentTransaction:xe,windowSize:b,accountsHierarchyList:B,classHierarchyList:A,allAccountList:S,allClassList:z,uncategorizedAccounts:O,vendorSearchAutoCompleteData:l,vendorSearchAutoCompleteActions:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:ee,customStyleAutoComplete:R,recommendations:F.recommendationsWithCOT,selectedTab:p,isCOTEnabled:r,menuPlacement:K,cotTracking:d,openTooltipId:f,setOpenTooltipId:y,isUncategorizedExpenseCategoryEnabled:w})},`${o.transactionId}.${F.lineId}`))},o.transactionId)},o.transactionId)},Oh=({accountsHierarchyList:e,allAccountList:o,allClassList:c,classHierarchyList:l,customStyle:m,customStyleAutoComplete:p,line:i,lineIndex:r,transaction:d,currentTransaction:h,windowSize:u,uncategorizedAccounts:x,isHovered:f=!1,isSelected:y=!1,sectionId:w,recommendations:b,vendorSearchAutoCompleteData:k,selectedTab:C,isCOTEnabled:I,menuPlacement:T,cotTracking:$,openTooltipId:D,setCurrentTransactionInAction:v,vendorLoadOptions:S,setOpenTooltipId:B,isUncategorizedExpenseCategoryEnabled:A})=>{const{transactionDate:z,transactionType:O,transactionTypeName:P,memo:H}=d.transactionReviewLocalData,{setValue:V}=jo(),W=a.useCallback((he,Ae)=>{$?.onCOTView!=null&&$.onCOTView(i.lineId,d.transactionId,he,Ae)},[$,i.lineId,d.transactionId]),ee=i.lineDescription,R=a.useMemo(()=>{if(ee||H)return[{title:At.description,description:ee||Tn},{title:At.header.memo,description:H||Tn}]},[H,ee]),xe=Lt(w,rt,r.toString()),ce=Lt(w,Te,r.toString()),K=Lt(w,Ze,r.toString()),N=(he,Ae)=>{let Ce;switch(Ae){case"vendor":Ce=xe;break;case"category":Ce=ce;break;case"class":Ce=K;break;default:return}V(`${Ce}.selectedOption`,he,{shouldValidate:!0,shouldDirty:!0})},F=St(),L=a.useMemo(()=>h!=null&&_t(h)===!0?{id:d.transactionReviewLocalData.customer?.id??"",logo:d.transactionReviewLocalData.customer?.logo,name:d.transactionReviewLocalData.customer?.name??""}:{id:i.customer?.id??"",logo:i.customer?.logo,name:i.customer?.name??""},[h,i.customer?.id,i.customer?.logo,i.customer?.name,d.transactionReviewLocalData.customer?.id,d.transactionReviewLocalData.customer?.logo,d.transactionReviewLocalData.customer?.name]),M=a.useMemo(()=>h!=null&&_t(h)===!0?{id:d.transactionReviewLocalData.vendor?.id??"",logo:d.transactionReviewLocalData.vendor?.logo,name:d.transactionReviewLocalData.vendor?.name??""}:{id:i.vendor?.id??"",logo:i.vendor?.logo,name:i.vendor?.name??""},[h,i.vendor?.id,i.vendor?.logo,i.vendor?.name,d.transactionReviewLocalData.vendor?.id,d.transactionReviewLocalData.vendor?.logo,d.transactionReviewLocalData.vendor?.name]),J=i[Ze]?.classId,U=i[Te]?.qboId??i[Te]?.accountId,se=L?.id,q=M?.id,Y=M?.name,[E,G]=a.useState(!J),[j,Z]=a.useState(!U||i[Te]?.qboId!=null&&cn(x,i[Te].qboId,A===!0?["income"]:void 0)===!0),[ne,ae]=a.useState(!q||!se),pe=he=>b?.find(Ce=>Ce.vendor?.qboId===he||Ce.vendor?.id===he||Ce.vendor?.name===he)?.vendor?.reason??"",oe=d.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],de=va(e,oe),je=wa(l,oe),Be=a.useCallback(he=>cn(x,he,A===!0?["income"]:void 0),[x,A]),[Fe,Se]=a.useState(!1),[ke,ue]=a.useState(!1),[Ne,Me]=a.useState(!1),Qe=(he,Ae)=>{v({transactionId:d.transactionId,lineItemId:i.lineId}),S(he,Ae)},re=()=>{ae(!(q||se)),Se(!1)},ye=()=>{U&&i[Te]?.qboId!=null&&cn(x,i[Te].qboId,A===!0?["income"]:void 0)===!1?Z(!1):Z(!0),Me(!1)},be=()=>{G(!J),ue(!1)},Ie=()=>{!q&&!se||Se(!0)},ge=()=>{ue(!0)},et=()=>{Me(!0)};a.useEffect(()=>{U&&i[Te]?.qboId!=null&&cn(x,i[Te].qboId,A===!0?["income"]:void 0)===!1?Z(!1):Z(!0)},[U]),a.useEffect(()=>{G(!J)},[J]),a.useEffect(()=>{ae(!(q||se))},[q,se]);const Ke=d.transactionReviewLocalData.selectedEntity,kt=d.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,Le=h!=null&&_t(h)===!0?Ke:kt,it=a.useMemo(()=>{const he=d.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],Ae=k.entityAutoCompleteView;return{selectedOption:Le?.qboId??Le?.id,defaultOptions:bo(Ae,Le,he??[])}},[Le,d.transactionReviewLocalData.lineItemById,i.lineId,k.entityAutoCompleteView]),Ot=(he,Ae)=>{if(Ae==null||!Ae)return;let Ce=[];return he.forEach(We=>{Ce=Ce.concat(We.options)}),Ce.find(We=>We.value===Ae)?.label??Ae},Gt=Ot(je,J),ze=Ot(de,U),He=C==="review",It=Vn("vendor",it.defaultOptions,it.selectedOption),Ft=Vn("category",de,U),ot=Vn("class",je,J);return t.jsx(t.Fragment,{children:vt.map((he,Ae)=>{const Ce=`${d.transactionId}_${he.key}_${i.lineId}`;if(r>0&&h!=null&&_t(h)===!0&&he.key==="vendor")return t.jsx(at,{windowSize:u,wrapperWidth:he.width},Ce);if(r>0&&he.key==="transaction_type")return t.jsx(at,{windowSize:u,wrapperWidth:he.width},Ce);switch(he.key){case"vendor":default:return t.jsxs(at,{windowSize:u,wrapperWidth:he.width,className:"item-value-container",children:[t.jsx(eo,{isCOTEnabled:I,recommendations:oe,type:"vendor",isFirstColumn:!0,isEnabled:!!Le?.isPreFilled,isMisCategorized:It,onRecommendationClick:N,selectedValue:q,selectedValueLabel:Y,isReviewTab:He,isAccountOptionDisabled:Be,existingOption:{label:h!=null&&_t(h)===!0?h?.vendor?.name:void 0,value:h!=null&&_t(h)===!0?h?.vendor?.id:void 0},cotTracking:$,lineId:i.lineId,transactionId:d.transactionId,openTooltipId:D,setOpenTooltipId:B}),t.jsx(ao,{children:ne===!0?t.jsx(oo,{isHovered:f,children:t.jsxs(to,{onClick:We=>{We.stopPropagation(),ae(!1),Se(!0)},"data-testid":_("add-vendor-button",w),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:n.sp6},children:[t.jsx(no,{}),At.addPayee]})}):Fe===!0?t.jsx(yt,{onClickAway:re,children:t.jsx(Xh,{"data-testid":_("vendor-selection-dropdown-container",Lt(w,rt,r.toString())),children:t.jsx(lr,{name:xe,placeholder:At.addPayee,valueToInfo:pe,defaultValue:{selectedOption:it.selectedOption,defaultOptions:it.defaultOptions},type:"vendor",autoFocus:!ne,style:{width:"100%"},pageSource:"list_page",transactionStatus:He?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Fe,onMenuClose:re,registerOptions:{required:!1},loadOptions:Qe,showCOT:I,onCOTView:W,menuPlacement:T})})}):t.jsx(ep,{children:t.jsxs(io,{isHovered:f,showOutline:It&&Le?.isPreFilled!==!0&&!y&&He,children:[Le!=null&&Le.logo!=null?t.jsx(fa,{photoUrl:Le.logo.toString(),styles:{width:Et.nameLogoWidth.valuePx(u),height:Et.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Mi,{children:t.jsx(hn,{name:Le.name,size:n.sp4})})}):Le!=null&&Le.name!=null?t.jsx(Mi,{children:t.jsx(hn,{name:Le.name,size:n.sp4})}):null,t.jsx(Yh,{onClick:Ie,"data-testid":_("vendor-name-text",w),children:Le!=null&&Le.name?t.jsx(nt,{text:Le.name,itemTextStyle:{color:f?F.colors.primary:F.colors.hero}}):t.jsx(Qh,{children:Tn})})]})})})]},Ce);case"category":{const We=h?.lines!=null?h?.lines[r]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:he.width,className:"item-value-container",children:[t.jsx(eo,{isCOTEnabled:I,recommendations:oe,type:"category",isFirstColumn:!1,isReviewTab:He,isEnabled:!!i[Te]?.isPreFilled,isAccountOptionDisabled:Be,isMisCategorized:Ft,onRecommendationClick:N,selectedValue:U,selectedValueLabel:ze,existingOption:{label:We?.account?.accountName,value:We?.account?.qboId??We?.account?.accountId},cotTracking:$,lineId:i.lineId,transactionId:d.transactionId,openTooltipId:D,setOpenTooltipId:B}),t.jsx(ao,{children:j===!0?t.jsx(oo,{isHovered:f,children:t.jsxs(to,{onClick:gt=>{gt.stopPropagation(),Z(!1),Me(!0)},"data-testid":_("category-selection-field",ce),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:n.sp6},children:[t.jsx(no,{}),At.addCategory]})}):Ne===!0?t.jsx(yt,{onClickAway:ye,children:t.jsx(_i,{isHovered:f,"data-testid":_("category-selection-dropdown-container",ce),children:t.jsx(qo,{name:ce,placeholder:At.addCategory,valueToId:gt=>(rn=>o.filter(Mn=>Mn.qboId===rn)[0]?.qboId)(gt),type:"category",pageSource:"list_page",transactionStatus:He?"pending_review":"auto_categorized",showCOT:I,defaultValue:{selectedOption:U,allOptions:de},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Ne,autoFocus:!j&&(!U||i[Te]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Te].qboId)),onMenuClose:ye,customStyleConfig:m,disableCurrentOption:Be,menuPlacement:T,onCOTView:W})})}):t.jsx(io,{isHovered:f,showOutline:Ft&&i[Te]?.isPreFilled!==!0&&!y&&He,children:t.jsx(Ni,{onClick:et,"data-testid":_("category-label-text",ce),children:t.jsx(nt,{text:ze??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},Ce)}case"class":{const We=h?.lines!=null?h?.lines[r]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:he.width,className:"item-value-container",children:[t.jsx(eo,{isCOTEnabled:I,recommendations:oe,type:"class",isFirstColumn:!1,isReviewTab:He,isEnabled:!!i[Ze]?.isPreFilled,isAccountOptionDisabled:Be,isMisCategorized:ot,onRecommendationClick:N,selectedValue:J,selectedValueLabel:Gt,existingOption:{label:We?.class?.className,value:We?.class?.classId},cotTracking:$,lineId:i.lineId,transactionId:d.transactionId,openTooltipId:D,setOpenTooltipId:B}),t.jsx(ao,{children:E===!0?t.jsx(oo,{isHovered:f,children:t.jsxs(to,{onClick:gt=>{gt.stopPropagation(),G(!1),ue(!0)},"data-testid":_("class-selection-field",K),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:n.sp6},children:[t.jsx(no,{}),At.addClass]})}):ke===!0?t.jsx(yt,{onClickAway:be,children:t.jsx(_i,{isHovered:f,"data-testid":_("class-selection-dropdown-container",K),children:t.jsx(qo,{name:K,placeholder:At.addClass,valueToId:gt=>(rn=>c.filter(Mn=>Mn.classId===rn)[0]?.accountingClassNumber??void 0)(gt),type:"class",showCOT:I,defaultValue:{selectedOption:J,allOptions:je},pageSource:"list_page",transactionStatus:He?"pending_review":"auto_categorized",menuIsOpen:ke,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!E&&!J,customStyleConfig:m,onMenuClose:be,menuPlacement:T,onCOTView:W})})}):t.jsx(io,{isHovered:f,showOutline:ot&&i[Ze]?.isPreFilled!==!0&&!y&&He,children:t.jsx(Ni,{"data-testid":_("class-selection-field",K),onClick:ge,children:t.jsx(nt,{text:Gt??"",itemTextStyle:{color:f?F.colors.primary:F.colors.hero}})})})})]},Ce)}case"date":return t.jsx(at,{windowSize:u,wrapperWidth:he.width,children:t.jsx(an,{windowSize:u,isLastItem:Ae===vt.length-1,children:t.jsx(Co,{"data-testid":_("date-field",Lt(w,Ze,r.toString())),children:t.jsx(Nh,{style:{color:f?F.colors.primary:F.colors.hero},children:z!=null?z.format(Dh.visual.MMMDCommaYYYYformat):null})})})},Ce);case"transaction_type":return t.jsx(at,{windowSize:u,wrapperWidth:he.width,children:t.jsx(an,{windowSize:u,"data-testid":_("transaction-type-field",Lt(w,Ze,r.toString())),isLastItem:Ae===vt.length-1,children:P!=null?t.jsx(sr,{textColor:f?new So(F.colors.primary):rr(void 0,F),text:P??O}):null})},Ce);case"memo":return t.jsx(at,{windowSize:u,wrapperWidth:he.width,children:t.jsx(an,{style:{lineHeight:n.sp3},windowSize:u,isLastItem:Ae===vt.length-1,"data-testid":_("memo-field",Lt(w,Ze,r.toString())),children:R!=null?t.jsx(fe,{placement:"bottom",data:R,variant:"multi-information-points",children:t.jsx(Hh,{style:{color:f?F.colors.primary:F.colors.hero}})}):t.jsx(Vh,{children:Tn})})},Ce);case"amount":{const We=Je("0,0.[00]",i.amount,!0);return t.jsx(at,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:he.width,children:t.jsx(an,{windowSize:u,isLastItem:Ae===vt.length-1,children:t.jsx(Co,{"data-testid":_("transaction-amount-field",Lt(w,Ze,r.toString())),style:{color:f?F.colors.primary:F.colors.hero},children:We})})},Ce)}}})})},zi=({isEnabled:e,isReviewTab:o,isMisCategorized:c,hasRecommendations:l,isTooltipVisible:m=!1})=>e?o?m?t.jsx(qh,{}):t.jsx(Wh,{}):m?t.jsx(Uh,{}):t.jsx(Jh,{className:"ai-icon-selected-plain"}):!e&&c||l?m?t.jsx(Gh,{}):t.jsx(Kh,{}):null,Pi=({isFirstColumn:e,children:o})=>t.jsx(is,{isFirstColumn:e,children:o}),eo=({recommendations:e,isCOTEnabled:o,type:c,isReviewTab:l,selectedValueLabel:m,isFirstColumn:p,isEnabled:i=!1,isMisCategorized:r=!1,selectedValue:d,existingOption:h,cotTracking:u,lineId:x,openTooltipId:f,transactionId:y,isAccountOptionDisabled:w,onRecommendationClick:b,setOpenTooltipId:k})=>{const C=a.useMemo(()=>`${y}:${x}:${c}`,[y,x,c]),I=f===C,T=ur().analytics,{createAlternateRecommendationCallback:$}=hr(),D=a.useCallback(P=>{const H=e[1],V=e[0];$(c,{currentValue:m??en,transactionCurrentStatus:l?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:y,lineId:x,onCOTView:(W,ee,R,xe)=>{u.onCOTView?.(W,ee,R,xe)}}:void 0},H,V)(P)},[$,e,m,l,c,u,x,y]),v=pr(e,c,o,h,"list_page",l?"pending_review":"auto_categorized",b,D,d,w),S=mr(e,c),B=a.useCallback(()=>{k(C);const P=v?.recommendations[0]?.cot??[],H=v?.recommendations[1]?.cot??[],V=H.length>0;if(T.trackTransactionCotView({recommendationFor:c,currentValue:m??en,recommendation:v?.recommendations[0]?.name??en,recommendationCot:P,isRecommendationCotAvailable:P.length>0,recommendationReason:v?.recommendations[0]?.reason??en,recommendationConfidencePercentage:v?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:_o(No(v?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:v?.recommendations[1]?.name??en,alternativeRecommendationCot:H,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:v?.recommendations[1]?.reason??en,alternativeRecommendationConfidencePercentage:v?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?_o(No(v?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:l?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const W=gr(v);W!=null&&u.onCOTView(x,y,c,W)}},[T,v,l,m,c,x,y,C,k]),A=a.useCallback(()=>{f===C&&k(void 0)},[f,C,k]),z=a.useMemo(()=>!(!d||!S)&&e.some(P=>c==="vendor"&&P.vendor!=null?P.vendor.id===d||P.vendor.qboId===d:c==="category"&&P.account!=null?P.account.qboId===d||P.account.accountId===d:c==="class"&&P.class!=null&&P.class.classId===d),[d,S,e,c]);if(!S)return t.jsx(is,{isFirstColumn:p});const O=i||z;return v?t.jsx(Pi,{isFirstColumn:p,children:t.jsx(fe,{variant:"chain-of-thought",data:v,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:I,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:B,onClose:A,children:t.jsx(Zh,{children:t.jsx(zi,{isEnabled:O,isReviewTab:l,isMisCategorized:r,hasRecommendations:S,isTooltipVisible:I})})})}):t.jsx(Pi,{isFirstColumn:p,children:t.jsx(zi,{isEnabled:O,isReviewTab:l,isMisCategorized:r,hasRecommendations:S,isTooltipVisible:I})})},os=()=>{const e=we(),o=a.useRef(null),[c,l]=a.useState(0);return a.useLayoutEffect(()=>{o.current&&l(o.current.offsetWidth)},[e]),t.jsx(Fh,{windowSize:e,ref:o,children:vt.map((m,p)=>{const i=`${p}${Eh}${m.key}`;return m.key==="vendor"?t.jsx(at,{windowSize:e,wrapperWidth:m.width,children:t.jsx(an,{windowSize:e,isLastItem:p===vt.length-1,children:t.jsxs(Co,{children:[t.jsx(ko,{width:g[4],height:g[4]}),t.jsx(Bt,{width:c*m.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i):t.jsx(at,{windowSize:e,wrapperWidth:m.width,children:t.jsx(an,{windowSize:e,isLastItem:p===vt.length-1,children:t.jsx(Bt,{width:c*m.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)})})},Fh=s.div`
1223
- display: flex;
1224
- background-color: ${e=>e.theme.colors.grey5};
1225
- padding-left: ${e=>Et.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
- padding-right: ${e=>Et.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
- padding-top: ${e=>Et.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
- padding-bottom: ${e=>Et.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1229
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1230
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
1231
- border-radius: ${n.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
- `,zh=s.div`
1242
- display: flex;
1243
- height: 100%;
1244
- flex: 1;
1245
- background-color: ${e=>e.theme.colors.grey5};
1246
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1247
- box-shadow: ${e=>`${n.sp0} 2px ${n.sp1} ${e.theme.colors.dropShadowNormal}`};
1248
- border-radius: ${n.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:o})=>e?Ye`
1265
- .ai-icon-selected-plain {
1266
- color: ${o.colors.primary};
1267
- }
1268
- `:null};
1269
- `,Ph=s.div`
1270
- display: flex;
1271
- flex: 1;
1272
- flex-direction: column;
1273
- width: 100%;
1274
- box-sizing: border-box;
1275
- align-items: center;
1276
- justify-content: space-around;
1277
- `,Mh=s.div`
1278
- display: flex;
1279
- flex: 1;
1280
- flex-direction: row;
1281
- width: 100%;
1282
- align-items: center;
1283
- justify-content: space-between;
1284
- height: ${n.sp8};
1285
- padding-top: ${e=>Et.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
- padding-bottom: ${e=>Et.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
- `,at=s.div`
1288
- display: flex;
1289
- align-items: center;
1290
- flex-direction: row;
1291
- position: relative;
1292
- width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${n.sp4})`};
1293
- min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${n.sp4})`};
1294
- :last-of-type {
1295
- padding-right: ${n.sp0};
1296
- }
1297
- `,_h=Ye`
1298
- word-break: break-word;
1299
- white-space: nowrap;
1300
- -webkit-line-clamp: 1;
1301
- -webkit-box-orient: vertical;
1302
- overflow: hidden;
1303
- text-overflow: ellipsis;
1304
- display: -webkit-box;
1305
- `,an=s(Oe)`
1306
- overflow: hidden;
1307
- justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1308
- display: flex;
1309
- width: 100%;
1310
- align-items: center;
1311
- `,Co=s.div`
1312
- display: flex;
1313
- flex-direction: row;
1314
- column-gap: ${n.sp2};
1315
- align-items: center;
1316
- `,Nh=s(Oe)`
1317
- ${_h};
1318
- color: ${e=>e.theme.colors.hero};
1319
- `,to=s(Oe)`
1320
- color: ${e=>e.theme.colors.hero};
1321
- `,no=s(Pn)`
1322
- width: ${n.sp3};
1323
- height: ${n.sp3};
1324
- margin: ${n.sp1};
1325
- `,Vh=s.div`
1326
- margin: ${n.sp3};
1327
- `,Hh=s(e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
1328
- width: ${n.sp3};
1329
- height: ${n.sp3};
1330
- margin-left: 10px;
1331
- `,Wh=s(vr)`
1332
- width: ${n.sp5};
1333
- height: ${n.sp5};
1334
- `,Uh=s(Or)`
1335
- width: ${n.sp5};
1336
- height: ${n.sp5};
1337
- `,qh=s(wr)`
1338
- width: ${n.sp5};
1339
- height: ${n.sp5};
1340
- `,Jh=s(Fr)`
1341
- width: ${n.sp5};
1342
- height: ${n.sp5};
1343
- `,Kh=s(gn)`
1344
- width: ${n.sp3};
1345
- height: ${n.sp3};
1346
- path {
1347
- stroke-width: 2;
1348
- }
1349
- `,Gh=s(br)`
1350
- width: ${n.sp3};
1351
- height: ${n.sp3};
1352
- `,is=s.div`
1353
- display: flex;
1354
- align-items: center;
1355
- justify-content: center;
1356
- width: ${n.sp5};
1357
- margin-left: ${e=>e.isFirstColumn?n.sp2:n.sp0};
1358
- height: 100%;
1359
- `,Zh=s.div`
1360
- display: flex;
1361
- align-items: center;
1362
- justify-content: center;
1363
- width: auto;
1364
- cursor: pointer;
1365
- `,Yh=s(Oe)`
1366
- display: flex;
1367
- max-width: calc(100% - ${n.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
- `,Mi=s.div`
1375
- display: flex;
1376
- `,Xh=s.div`
1377
- width: 100%;
1378
- padding-left: 10px;
1379
- margin-left: ${n.sp0};
1380
- border-radius: ${n.sp1};
1381
- background-color: ${e=>e.theme.colors.background};
1382
- display: flex;
1383
- align-items: center;
1384
- flex-direction: row;
1385
- `,oo=s.div`
1386
- padding: ${n.sp0} ${n.sp2};
1387
- border-radius: ${n.sp1};
1388
- margin-left: ${n.sp0};
1389
- width: 100%;
1390
- background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1391
- `,_i=s.div`
1392
- width: 100%;
1393
- border-radius: ${n.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
- `,Qh=s(Oe)``,ep=s.div`
1401
- width: 100%;
1402
- display: flex;
1403
- padding-left: ${n.sp0};
1404
- `,io=s.div`
1405
- width: 100%;
1406
- display: flex;
1407
- flex-direction: row;
1408
- align-items: center;
1409
- gap: ${n.sp2};
1410
- padding: ${n.sp2};
1411
- padding-left: ${n.sp2};
1412
- border-radius: ${n.sp1};
1413
- background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1414
- outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
1415
- outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
1416
- `,Ni=s.div``,ao=s.div`
1417
- display: flex;
1418
- align-items: center;
1419
- width: calc(100% - ${n.sp5});
1420
- `,tp=({sortConfig:e,fetchState:o,isDisabled:c,onColumnSortConfigChanged:l})=>{const m=we();return t.jsxs(np,{windowSize:m,children:[t.jsx(ts,{sortConfig:e,isDisabled:o==="In-Progress"?"readonly":c,onColumnSortConfigChanged:l,"data-testid":_("transaction-categorization-list-empty-table-header")}),t.jsx(op,{windowSize:m,"data-testid":_("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,i)=>t.jsx(os,{"data-testid":_("transaction-categorization-list-empty-row",i.toString())},i))})]})},np=s.div`
1421
- display: block;
1422
- min-height: 100%;
1423
- flex-direction: column;
1424
- width: 100%;
1425
- padding-left: ${n.sp8};
1426
- padding-right: ${n.sp8};
1427
- `,op=s.div`
1428
- display: flex;
1429
- flex: 1;
1430
- min-height: 100%;
1431
- flex-direction: column;
1432
- row-gap: ${n.sp3};
1433
- `,{common:ip,transactionDetail:{notCategorizedTooltipText:ap}}=ve.getLocalizedStrings(),so={rowGap:new Q(g[0],g[2],g[3])},sp=({selectedTab:e,transactionView:o,receiptUploadEndpoint:c,authParams:l,sectionId:m,isCOTEnabled:p,isDisabled:i,vendorSearchAutoCompleteActions:r,vendorSearchAutoCompleteData:d,setCurrentTransactionInAction:h,vendorLoadOptions:u,onTransactionCategorizationRowClick:x,onUpdateTransactionCategorizationUIState:f,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:w,containerRef:b,cotTracking:k,isUncategorizedExpenseCategoryEnabled:C})=>{const I=we(),[T,$]=a.useState(void 0),{fetchState:D,uiState:v,transactionLocalData:S,selectedCheckBoxTransactionIds:B,transactionIdsWithUnsavedData:A,transactions:z,uncategorizedAccounts:O}=o,P=a.useRef(null),H=a.useRef({}),{control:V}=jo();a.useEffect(()=>{P.current?.resetAfterIndex(0,!0)},[I,P,S]),a.useEffect(()=>{P.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const W=a.useCallback(E=>{if(H.current?.[E]!=null){const Z=I==="small"&&v.pageToken==null&&E===S.length-1?so.rowGap.value("medium-regular"):so.rowGap.value(I);return H.current[E]+Z}if(S[E]==null)return 0;const G=S[E].transactionReviewLocalData,j=Object.keys(G.lineItemById).length;return j!=null&&!isNaN(j)&&j>1?56*j+so.rowGap.value(I)*(j-1):56},[S,I,v.pageToken,v.sortKey,v.sortOrder]),ee=a.useCallback((E,G)=>{H.current={...H.current,[E]:G},P.current?.resetAfterIndex(0,!0)},[I,P,S,v.sortKey,v.sortOrder]),R=a.useCallback(()=>{(v.pageToken!=null&&o.refreshStatus.fetchState!=="In-Progress"||o.refreshStatus.fetchState==="Completed")&&w(e,v.searchString,!0,v.pageToken,!0,!1)},[o.refreshStatus.fetchState,w,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),xe=a.useCallback(()=>{v.pageToken!=null&&R()},[R,v.pageToken,v.sortKey,v.sortOrder]),ce=Qs(E=>y(e,{scrollPosition:{scrollTop:E}}),1e3,{trailing:!0}),K=E=>E<o.transactionLocalData.length,N=(E,G)=>{f(e,{sortOrder:G,sortKey:E}),w(e,v.searchString,!1,null,!1,!0)};let F=[],L=[];(D==="Completed"||o.transactionLocalData.length>0)&&(L=o.transactionLocalData.map((E,G)=>{const j=(ae=>{if(e==="autoCategorized")return!B.includes(ae);const pe=S.find(de=>de.transactionId===ae)?.transactionReviewLocalData,oe=z.find(de=>de.id===ae);return oe!=null&&pe!=null?!Ar(oe,pe,O,C)||!(C!==!0||!Wo(O,pe.lineItemById,["expense"]))&&A.includes(ae)===!1:B.length===0||!B.includes(ae)})(E.transactionId);let Z=!1;C===!0&&j===!0&&e==="review"&&Wo(O,E.transactionReviewLocalData.lineItemById,["expense"])&&(Z=!A.includes(E.transactionId));const ne=E.transactionReviewLocalData;return{label:t.jsx(Bh,{transactionView:o,sectionId:`${m}.${G}.${ns}`,transaction:E,receiptUploadEndpoint:c,authParams:l,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:h,vendorSearchAutoCompleteActions:r,vendorSearchAutoCompleteData:d,selectedTab:e,containerRef:b,isCOTEnabled:p,cotTracking:k,openTooltipId:T,setOpenTooltipId:$,isUncategorizedExpenseCategoryEnabled:C},`${E.transactionId}.${ne.transactionType}`),value:E.transactionId,defaultChecked:!1,groupLabel:!1,isException:Z,exceptionMode:Z===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:j===!0?"readonly":void 0,exceptionType:Z===!0?"alert":void 0,exceptionInfo:Z===!0?ap:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${n.sp2}`}}}),F=L.map(E=>E.value));const M={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:J,subTitle:U}=Ve("transaction_categorization").allDoneText,se=S.map(E=>E.transactionId),q=a.useMemo(()=>o.totalCountByTab[e],[e,o.totalCountByTab]),Y=a.useMemo(()=>S.reduce((E,G)=>{const j=Object.keys(G.transactionReviewLocalData.lineItemById).length;return E+(j>0?j:1)},0)<o.totalCountByTab[e]?S.length+1:S.length,[S,o.totalCountByTab,e]);return t.jsx(up,{windowSize:I,"data-testid":_("transaction-categorization-list-wrapper"),children:t.jsx(hp,{windowSize:I,"data-testid":_("transaction-categorization-list-container"),children:D==="Error"?t.jsxs(mp,{windowSize:I,"data-testid":_("transaction-categorization-reload-page"),children:[t.jsx(gp,{onClick:()=>w(e,void 0,!0,null,!1,!0),"data-testid":_("transaction-categorization-reload-icon"),children:t.jsx(vo,{})}),t.jsx(xp,{"data-testid":_("transaction-categorization-reload-label"),children:ip.reloadPage.label})]}):D==="Completed"&&S.length===0?t.jsx(bt,{tab:"transaction_categorization",title:J,subTitle:U,"data-testid":_("transaction-categorization-empty-table-section")}):D==="Not-Started"||D==="In-Progress"&&S.length===0?t.jsx(tp,{sortConfig:{sortKey:v.sortKey,sortOrder:v.sortOrder},fetchState:D,onColumnSortConfigChanged:N,"data-testid":_("transaction-categorization-list-empty-table")}):t.jsx(pp,{windowSize:I,"data-testid":_("transaction-categorization-list-view"),children:t.jsx(xa,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:E,ref:G,onChange:j}})=>t.jsx(as.Provider,{value:{value:E,mode:"off",allCheckBoxValues:F,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:D,isDisabled:i,groupLabelCheckBox:M,onColumnSortConfigChanged:N,ref:G,onChange:j,selectedTab:e},children:t.jsx(Bn,{children:({height:Z,width:ne})=>t.jsx(er,{isItemLoaded:K,itemCount:q,loadMoreItems:xe,children:({onItemsRendered:ae,ref:pe})=>t.jsx(On,{ref:oe=>{pe(oe),P.current=oe},height:Z,itemCount:Y,itemKey:oe=>S[oe]?.transactionId,innerElementType:rp,onItemsRendered:ae,width:ne,style:{willChange:"auto"},overscanCount:1,itemSize:W,itemData:{checkboxes:L,value:E,allCheckBoxValues:F,groupLabelCheckBox:M,categorizationGroupValue:se,transactionLocalData:S,mode:"always_on",setRowHeight:ee,isItemLoaded:K,ref:pe,onChange:j,selectedCheckBoxTransactionIds:B},initialScrollOffset:o.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:oe})=>{ce(oe)},children:cp})})})})})})})})},rp=e=>{const{value:o,allCheckBoxValues:c,groupLabelCheckBox:l,index:m,isDisabled:p,fetchState:i,sortKey:r,sortOrder:d,mode:h,ref:u,onChange:x,onColumnSortConfigChanged:f}=lp(),{children:y,style:w,...b}=e;return i==="Completed"?t.jsxs(fp,{ref:u,style:{...w,width:"auto"},...b,children:[t.jsx(yp,{children:t.jsx(ba,{selectionLimit:mn,value:o,checkBox:{label:t.jsx(dp,{children:t.jsx(ts,{sortConfig:{sortKey:r,sortOrder:d},isDisabled:p,onColumnSortConfigChanged:f})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:l,allCheckBoxValues:c,mode:h,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:n.sp3},name:"transactionCategorizationHeader",index:m,onChangeHandler:k=>Sa({event:k,value:o,allCheckBoxValues:c,groupLabelCheckBox:l,onChange:x}),ref:u})}),t.jsx(Cp,{children:y})]},`${c[m]}-${m}`):null},as=a.createContext(void 0),lp=()=>{const e=a.useContext(as);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},cp=({index:e,style:o,data:c})=>{const{checkboxes:l,value:m,groupLabelCheckBox:p,categorizationGroupValue:i,allCheckBoxValues:r,transactionLocalData:d,isItemLoaded:h,setRowHeight:u,ref:x,onChange:f,selectedCheckBoxTransactionIds:y}=c,w=a.useRef(null),b=we();if(a.useEffect(()=>{w.current?.firstElementChild!=null&&u(e,w.current.firstElementChild.clientHeight)},[e,w,b,d[e]?.transactionReviewLocalData]),h(e)===!0){const k=l[e];return t.jsx(Vi,{style:{...o,paddingBottom:n.sp0,paddingRight:n.sp8,width:"100%",flex:"1"},ref:w,children:t.jsx(ba,{selectionLimit:mn,checkBox:k,value:m,groupLabelCheckBox:p,allCheckBoxValues:r,mode:k.isDisabled==="readonly"||y.includes(k.value)===!1&&y.length>=mn?"off":"always_on",draggable:!1,isDisabled:k.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:n.sp3},infoIconContainerStyle:{padding:20},name:`${Wt}.${m}`,ref:x,index:e,onChangeHandler:C=>Sa({event:C,value:m,allCheckBoxValues:r,groupLabelCheckBox:p,onChange:f})})},i[e])}return t.jsx(Vi,{style:{...o,paddingBottom:n.sp0,paddingRight:n.sp8,width:"100%",flex:"1"},ref:w,children:t.jsx(wp,{children:t.jsx(os,{})})},ra())},dp=s.div`
1434
- flex: 1;
1435
- width: auto;
1436
- padding-right: ${n.sp8};
1437
- `,up=s.div`
1438
- width: 100%;
1439
- height: 100%;
1440
- background-color: ${e=>e.theme.colors.grey4};
1441
- `,hp=s.div`
1442
- height: 100%;
1443
- `,pp=s.div`
1444
- height: 100%;
1445
- display: flex;
1446
- flex-direction: column;
1447
- max-width: 99.9%;
1448
- `,mp=s.div`
1449
- display: flex;
1450
- width: 100%;
1451
- height: ${e=>`calc(100% - ${ga.valuePx(e.windowSize)})`};
1452
- flex-direction: column;
1453
- justify-content: center;
1454
- align-items: center;
1455
- `,gp=s.div`
1456
- height: 96px;
1457
- width: 96px;
1458
- background: ${e=>e.theme.colors.background};
1459
- border-radius: 50%;
1460
- cursor: pointer;
1461
- & svg {
1462
- margin: ${n.sp5};
1463
- color: ${e=>e.theme.colors.grey1};
1464
- }
1465
- &:hover {
1466
- & svg {
1467
- color: ${e=>e.theme.colors.primary};
1468
- }
1469
- }
1470
- `,xp=s(jt)`
1471
- margin-top: ${n.sp3};
1472
- color: ${e=>e.theme.colors.hero};
1473
- `,Vi=s.div`
1474
- top: ${n.sp0};
1475
- left: ${n.sp0};
1476
- padding-bottom: ${n.sp3};
1477
- box-sizing: border-box;
1478
- `,fp=s.div`
1479
- background-color: ${e=>e.theme.colors.grey4};
1480
- `,yp=s.div`
1481
- top: 0;
1482
- left: 0;
1483
- width: 100%;
1484
- min-width: 100%;
1485
- z-index: 11;
1486
- display: flex;
1487
- align-items: center;
1488
- position: sticky;
1489
- background-color: ${e=>e.theme.colors.grey4};
1490
- `,Cp=s.div`
1491
- position: relative;
1492
- width: auto;
1493
- height: 100%;
1494
- `,wp=s.div`
1495
- padding-left: ${n.sp8};
1496
- `,vp=({selectedTab:e,transactionView:o,receiptUploadEndpoint:c,authParams:l,sectionId:m,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,isCOTEnabled:r,setCurrentFooterFormId:d,setLocalDataForCategoryAndClass:h,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onSaveUpdateTransactionCategorization:w,onUpdateSelectedCheckboxTransactionIds:b,onFetchRecommendationsForEntityCategorization:k,onFetchRecommendationsForEntityCategorizationWithCustomer:C})=>{const[I,T]=a.useState({transactionId:void 0,lineItemId:void 0}),$=a.useRef(),D=a.useRef({}),{useDynamicConfig:v}=ua(),{configValue:S}=v(ha.enableUncategorizedExpenseCategory),B=S?.uncategorized_expense_category_enabled===!0,{transactions:A,transactionLocalData:z,accountsHierarchyList:O,classHierarchyList:P,accountList:H,classList:V,selectedCheckBoxTransactionIds:W,uncategorizedAccounts:ee}=o,R=Jt({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>Wi(W,z,O,P,p.entityAutoCompleteView),[O,P,W,z,p.entityAutoCompleteView]),values:a.useMemo(()=>Wi(W,z,O,P,p.entityAutoCompleteView),[O,P,W,z,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});a.useEffect(()=>()=>{d("expenseAutomationPage")},[]),a.useEffect(()=>{W.length>0?d(Qn):d("expenseAutomationPage")},[W,d]);const xe=R.handleSubmit(K=>{const N=K[Dn],F=D.current;w(e,N,F),N.forEach(L=>{delete D.current[L]})});a.useEffect(()=>{const K=R.watch((N,{name:F})=>{F!=null&&N!=null&&xn(()=>(async(L,M)=>{if(L!=null){if(L===Dn){const J=R.getValues(Dn);if(J.length<W.length||J.length===mn)return void b(e,J);const U=J[J.length-1],se=M[Wt].findIndex(Y=>Y.transactionId===U),q=R.getValues(`${Wt}.${se}.lineInfo`);if(q!=null){let Y=!1;if(q.every(E=>(Y=cn(ee,E[Te].selectedOption,B?["income"]:void 0),!!E[Te].selectedOption&&E[Te].selectedOption!=null&&!Y&&!!E[Ze].selectedOption&&!!E[rt].selectedOption))===!0)return void b(e,J);{const E=J.filter(G=>G!==U);return void b(e,E)}}return}if(L.includes(Te)===!0||L.includes(Ze)===!0){const J=parseInt(L.split(".")[1]),U=parseInt(L.split(".")[3]),se=R.getValues(`${Wt}.${J}.lineInfo`),q=se[U];if(L.includes(Te)||L.includes(Ze)){const{transactionId:Y,lineId:E,recommendations:G}=q;if(se!=null){const j=q[Te].selectedOption,Z=q[Ze].selectedOption,ne=q[rt].selectedOption,ae=q[rt].selectedOption,pe=q[rt].defaultOptions,oe=pe?.find(re=>re.options?.find(ye=>ye.value===ne))?.options?.find(re=>re.value===ne)?.label,de=pe?.find(re=>re.options?.find(ye=>ye.value===ae))?.options?.find(re=>re.value===ae)?.label,je=p.entityAutoCompleteView.vendor.find(re=>re.qboId===ne),Be=p.entityAutoCompleteView.customer.find(re=>re.qboId===ae),Fe=G.find(re=>re.vendor?.qboId===ne)?.vendor,Se=ne||je?.qboId||Fe?.qboId?{id:ne??je?.qboId??Fe?.qboId??"",name:oe??je?.name??Fe?.name??"",logo:je?.logo??Fe?.logo}:void 0,ke=ae||Be?.qboId?{id:ae??Be?.qboId??"",name:de??Be?.name??"",logo:Be?.logo}:void 0,ue=H.find(re=>re.qboId===j),Ne=V.find(re=>re.classId===Z),Me=o.transactionLocalData.find(re=>re.transactionId===Y)?.transactionReviewLocalData.lineItemById[E].account,Qe=o.transactionLocalData.find(re=>re.transactionId===Y)?.transactionReviewLocalData.lineItemById[E].class;h(e,Y,E,A,Se?.id,ke?.id,L.includes(Te)&&ue!=null?{...ue,isPreFilled:!1}:Me,L.includes(Ze)&&Ne!=null?{...Ne,isPreFilled:!1}:Qe,void 0,G,B)}return}}if(L.includes(rt)){const J=parseInt(L.split(".")[1]),U=parseInt(L.split(".")[3]),se=R.getValues(`${Wt}.${J}.lineInfo`);if(se!=null){const q=se[U],{transactionId:Y,recommendations:E}=q,G=q[rt].selectedOption,j=q[rt].selectedOption,Z=q[rt].defaultOptions,ne=Z?.flatMap(ue=>ue.options)?.find(ue=>ue.value===G)?.label,ae=Z?.flatMap(ue=>ue.options)?.find(ue=>ue.value===j)?.label,pe=p.entityAutoCompleteView.vendor.find(ue=>ue.qboId===G),oe=p.entityAutoCompleteView.customer.find(ue=>ue.qboId===j),de=E.find(ue=>ue.vendor?.qboId===G)?.vendor,je=G!==""&&G!=null?G:ne!==""&&ne!=null?ne:"",Be=(pe?.qboId!=null&&pe.qboId!==""?pe.qboId:null)??(de?.qboId!=null&&de.qboId!==""?de.qboId:null)??(G!=null&&G!==""?G:null),Fe={id:Be??ne??"",name:ne??pe?.name??de?.name??"",logo:pe?.logo??de?.logo},Se=oe?.qboId!=null&&oe.qboId!==""?{id:oe.qboId??j??"",name:ae??oe.name??"",logo:oe.logo}:void 0,ke=A.find(ue=>ue.id===Y);if(ke!=null){const ue=o.transactionLocalData.find(ye=>ye.transactionId===ke.id)?.transactionReviewLocalData,Ne=ue?.lineItemById[q.lineId],Me=_t(ke)===!0?ue?.selectedEntity:Ne?.selectedEntityLine,Qe=Se?.id!=null&&Se.id!==""?{id:Se.id,name:Se.name,type:"customer",qboId:Se.id,zeniId:Se.id,logo:Se.logo}:Fe.id!==""&&Fe.id!=null?{id:je,name:ne??je,type:"vendor",qboId:je,zeniId:je,logo:Fe.logo,isPreFilled:Me?.id===Be&&Me?.isPreFilled}:void 0,re={transactionId:{id:ke.id,type:ke.type},transaction:ke,lineIds:ke.type!=="journal_entry"?ke.lines?.map(ye=>ye.id)??[]:[q.lineId]};Qe?.type==="customer"?C(q.amount.amount,re,!1,e,Qe,Se,B):k(q.amount.amount,re,!1,e,Qe,Fe,B)}}return void i.onCancelAutoComplete?.()}}})(F,N))});return()=>{K.unsubscribe()}}),a.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const K=o.transactionLocalData.find(N=>N.transactionId===I.transactionId);if(K){const{transactionReviewLocalData:N}=K,{selectedEntity:F}=N,L=I?.lineItemId??N.sortedLineItems[0],M=N.lineItemById[L],J=M.selectedEntityLine;$.current?.(bo(p.entityAutoCompleteView,F??J,M?.recommendationsWithCOT??[]))}T({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const ce=a.useRef(null);return t.jsx(Sp,{ref:ce,"data-testid":_("transaction-categorization-list-page"),children:t.jsx(Kt,{...R,children:t.jsx("form",{id:Hi(Qn),onSubmit:xe,style:{height:"100%",width:"100%"},"data-testid":_(Hi(Qn)),children:t.jsx(sp,{selectedTab:e,sectionId:m,transactionView:o,receiptUploadEndpoint:c,authParams:l,setCurrentTransactionInAction:T,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:y,onTransactionCategorizationRowClick:u,vendorLoadOptions:(K,N)=>{i.onAutoCompleteInputChange?.(K),$.current=N},vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:ce,isCOTEnabled:r,cotTracking:{onCOTView:(K,N,F,L)=>{const M={...D.current};M[N]==null&&(M[N]=[]);let J=M[N].findIndex(U=>U.lineId===K);if(J===-1){const U={lineId:K,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};M[N].push(U),J=M[N].length-1}else{const U=M[N][J];M[N][J]={...U,category:{...U.category,recommendationTypesViewed:[...U.category.recommendationTypesViewed]},class:{...U.class,recommendationTypesViewed:[...U.class.recommendationTypesViewed]},vendor:{...U.vendor,recommendationTypesViewed:[...U.vendor.recommendationTypesViewed]}}}L==null||L===""||M[N][J][F].recommendationTypesViewed.includes(L)||M[N][J][F].recommendationTypesViewed.push(L),D.current=M}},isUncategorizedExpenseCategoryEnabled:B})})})})},Hi=e=>`${e}_form`,Wi=(e,o,c,l,m)=>({[Wt]:o.map(p=>bp(p.transactionId,p.transactionReviewLocalData,c,l,m)),[Dn]:e}),bp=(e,o,c,l,m)=>{const{lineItemById:p,sortedLineItems:i,selectedEntity:r}=o,d=Object.values(p).sort((u,x)=>i.indexOf(u.lineId)-i.indexOf(x.lineId)),h=d[0]?.lineId;return{[ns]:d.map(u=>{const x=u.account?.qboId??u.account?.accountId,f=u.class?.classId,y=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[Te]:{selectedOption:x,allOptions:va(c,u.recommendationsWithCOT)},[Ze]:{selectedOption:f,allOptions:wa(l,u.recommendationsWithCOT)},[rt]:{selectedOption:r?.id??y?.id??r?.name??y?.name,defaultOptions:bo(m,r??y,o.lineItemById[h]?.recommendationsWithCOT??[])},[Th]:u.lineEntity,[Lh]:u.recommendationsWithCOT??[]}}),transactionId:e,[Ah]:o.vendorDetails!=null&&o.vendorDetails.id!=null?{id:o.vendorDetails.id,qboId:o.vendorDetails.qboId,name:o.vendorDetails.name}:void 0,[Rh]:o.customerDetails!=null&&o.customerDetails.id!=null?{id:o.customerDetails.id,qboId:o.customerDetails.qboId,name:o.customerDetails.name}:void 0}},Sp=s.div`
1497
- display: flex;
1498
- min-height: 100%;
1499
- width: 100%;
1500
- height: 100%;
1501
- flex-direction: column;
1502
- background-color: ${e=>e.theme.colors.grey4};
1503
- z-index: 2;
1504
- `,Ui={subSectionContainerLeftRightPadding:new Q(g[3],g[6],g[8])},jp=s.div`
1505
- width: 100%;
1506
- display: flex;
1507
- justify-content: center;
1508
- align-items: center;
1509
- flex: 1;
1510
- background: ${e=>e.theme.colors.grey4};
1511
- box-sizing: border-box;
1512
- `,kp=s.div`
1513
- display: flex;
1514
- flex-direction: column;
1515
- width: 100%;
1516
- `,Ip=e=>{const{currentFooterFormId:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:l,setResetJeAccountSettingsForm:m,expenseAutomationViewSelector:p,authParams:i,receiptUploadEndpoint:r,companyId:d,vendorSearchAutoCompleteActions:h,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:f,monthEndInsightsCustomerRequestData:y,allThreadsSectionOpen:w,loggedInUser:b,isCOTEnabled:k,setCurrentFooterFormId:C,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:T,onTransactionCategorizationRowClick:$,onFetchMissingReceiptsList:D,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:S,onUploadReceiptComplete:B,onUploadReceiptFetchStatus:A,onReconTabColumnSortConfigChanged:z,onReloadReconciliationListPage:O,onUpdateReconcileTabLocalData:P,onUpdateMissingReceiptsUIState:H,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:W,onUpdateScrollYOffSetTransactionCategorizationUIState:ee,handleJeScheduleClick:R,ignoreRecommendedJeSchedule:xe,onJESchedulesFormDataChange:ce,onPostJESchedule:K,setLocalDataForCategoryAndClass:N,resetTransactionCategorizationLocalData:F,updateSelectedVendorForTransaction:L,onSaveUpdateTransactionCategorization:M,onUpdateSelectedCheckboxTransactionIds:J,improveMonthEndInsightsUsingZeniGPTClick:U,onRemoveFileAttachment:se,onUpdateFileAttachment:q,onCloseAllThreadsSection:Y,onEditMonthEndInsightsClick:E,previewMonthEndReport:G,saveMonthEndReport:j,onOpenFileAttachmentSnackBar:Z,onCloseFileAttachmentSnackBar:ne,onClickCustomerRequest:ae,sendMonthEndReport:pe,markAsReview:oe,onReloadPage:de,onBackClick:je,updateOperatingExpensesIdsForReview:Be,updateSectionCollapseStatus:Fe,onFetchReimbursementView:Se,redirectToVendorDetailPage:ke,updateSectionIdsForReview:ue,onUpdateFluxAnalysisUIState:Ne,fetchFluxViewOnScroll:Me,onFetchFluxViewList:Qe,setIsJeAccountSettingsOpened:re,onReviewClicked:ye,setOpenDrawerClicked:be,onEstablishConnectionClick:Ie,onFetchLinkTokenClick:ge,updateReconReviewTabLocalData:et,onReconReviewTabColumnSortConfigChanged:Ke,onSaveReconciliation:kt,onSaveReconciliationReview:Le,onReconMatchedTransactionClick:it,onReconListPageScroll:Ot,onAddStatementClick:Gt}=e,{currentSelectedView:ze,missingReceipts:He,transactionView:It,selectedPeriod:Ft,monthEndInsights:ot,selectedTransactionCategorizationTab:he,reconciliation:Ae}=p;switch(ze){case"transaction_categorization":return It.fetchState==="Completed"&&It.transactionLocalData.length===0?t.jsx(bt,{tab:ze,title:Ve(ze).allDoneText.title,subTitle:Ve(ze).allDoneText.subTitle}):t.jsx(vp,{setCurrentFooterFormId:C,selectedPeriod:Ft,selectedTab:he,sectionId:Wt,transactionView:It,receiptUploadEndpoint:r,authParams:i,onUpdateTransactionCategorizationUIState:W,onUpdateScrollYOffSetTransactionCategorizationUIState:ee,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:$,setLocalDataForCategoryAndClass:N,resetTransactionCategorizationLocalData:F,updateSelectedVendorForTransaction:L,onSaveUpdateTransactionCategorization:M,onUpdateSelectedCheckboxTransactionIds:J,vendorSearchAutoCompleteActions:h,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:T,isCOTEnabled:k});case"je_schedules":return t.jsx(ou,{setIsJeAccountSettingsOpened:re,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:m,currentFooterFormId:o,onJeAccountSettingsChange:c,onSaveJeAccountSettingsClick:l,setCurrentFooterFormId:C,handleJeScheduleClick:R,ignoreRecommendedJeSchedule:xe,onJESchedulesFormDataChange:ce,onPostJESchedule:K,vendorSearchAutoCompleteActions:h,vendorSearchAutoCompleteData:u});case"missing_receipts":return He.fetchState==="Completed"&&He.transactions.length===0?t.jsx(bt,{tab:ze,title:Ve(ze).allDoneText.title,subTitle:Ve(ze).allDoneText.subTitle}):t.jsx(zu,{onUpdateMissingReceiptsUIState:H,onFetchMissingReceiptsList:D,missingReceipts:He,receiptUploadEndpoint:r,authParams:i,selectedPeriod:Ft,onMissingReceiptsRowClick:v,onUploadReceiptComplete:B,onUploadReceiptFetchStatus:A,onUploadReceiptAttachment:S});case"month_end_insights":if(ot!=null&&p.monthEndCloseChecksView.monthEndCloseChecks!=null){if(ot.fetchState==="Not-Started"||ot.fetchState==="In-Progress"||ot.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||ot.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(fs,{fetchState:"In-Progress"});{const Ce={application:"cockpit",companyId:d,entityId:d,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ot.companyName,url:window.location.href},{url:We,...gt}=Ce,rn={...gt};return t.jsx(kp,{children:t.jsx(dh,{allThreadsSectionOpen:w,customerRequestData:y,companyId:d,enableZeniGPTFeature:x,filterMetaData:rn,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:U,isZeniUser:b.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ot,newThreadMetadata:Ce,onClickCustomerRequest:ae,onCloseAllThreadsSection:Y,onCloseFileAttachmentSnackBar:ne,onOpenFileAttachmentSnackBar:Z,onRemoveFileAttachment:se,onUpdateFileAttachment:q,previewMode:f,previewMonthEndReport:G,saveMonthEndReport:j,onEditClick:E,sendMonthEndReport:pe})})}}return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(bt,{tab:ze,title:Ve(ze).allDoneText.title,subTitle:Ve(ze).allDoneText.subTitle}):t.jsx(Od,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:oe,onReloadPage:de,onBackClick:je,updateOperatingExpensesIdsForReview:Be,updateSectionIdsForReview:ue,onUpdateFluxAnalysisUIState:Ne,setCurrentFooterFormId:C,fetchFluxViewOnScroll:Me,onFetchFluxViewList:Qe,updateSectionCollapseStatus:Fe,onFetchReimbursementView:Se,redirectToVendorDetailPage:ke});case"reconciliation":return t.jsx(kd,{onReconListPageScroll:Ot,onReloadReconciliationListPage:O,currentFooterFormId:o,reconciliation:Ae,companyId:d,vendorSearchAutoCompleteActions:h,vendorSearchAutoCompleteData:u,onReviewClicked:ye,setOpenDrawerClicked:be,setCurrentFooterFormId:C,onReconTabColumnSortConfigChanged:z,onUpdateReconcileTabLocalData:P,onEstablishConnectionClick:Ie,onFetchLinkTokenClick:ge,updateReconReviewTabLocalData:et,onReconReviewTabColumnSortConfigChanged:Ke,onSaveReconciliation:kt,onSaveReconciliationReview:Le,onReconMatchedTransactionClick:it,onAddStatementClick:Gt});default:return t.jsx(bt,{tab:ze,title:Ve(ze).allDoneText.title,subTitle:Ve(ze).allDoneText.subTitle})}};function $p(e){const o=we(),{currentSelectedView:c}=e.expenseAutomationViewSelector,l=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",m=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(jp,{windowSize:o,style:{...m===!0?{paddingLeft:Ui.subSectionContainerLeftRightPadding.value(o),paddingRight:Ui.subSectionContainerLeftRightPadding.value(o)}:{paddingLeft:g[0],paddingRight:g[0]},...l===!0||c==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Ip,{...e})})}const Tp=s.div`
1517
- width: 100%;
1518
- height: 100vh;
1519
- display: flex;
1520
- flex-direction: column;
1521
- background: ${e=>e.theme.colors.grey4};
1522
- box-shadow: ${e=>e.theme.colors.elevation1};
1523
- `,Lp=s.div`
1524
- height: 100vh;
1525
-
1526
- display: flex;
1527
- flex-direction: column;
1528
- align-items: center;
1529
- min-width: 100%;
1530
- flex: 1;
1531
-
1532
- ${e=>e.theme.breakpoints.down("md")} {
1533
- width: 100%;
1534
- padding-left: ${n.sp0};
1535
- }
1536
- `,qi=s(cs)`
1537
- height: ${n.sp3};
1538
- width: ${n.sp3};
1539
- cursor: pointer;
1540
- color: inherit;
1541
- `,Ji=s(e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
1542
- height: ${n.sp3};
1543
- width: ${n.sp3};
1544
- cursor: pointer;
1545
- color: inherit;
1546
- `,{common:{footer:Re,texts:{maxLimitReached:Ap,confirmAction:Rp},headers:Ep,create:Dp,strings:dn,texts:sn,cancel:Bp,confirm:Op,monthsByIndex:Fp},dateFormat:{visual:{MMMDCommaYYYYformat:Ki}},expenseAutomation:un}=ve.getLocalizedStrings(),xm=e=>{const{expenseAutomationViewSelector:o,isDisabled:c,isRealtimeInsightsFeatureEnabled:l,isUncategorizedExpenseCategoryEnabled:m,isCOTEnabled:p,onUpdateTab:i,onReconTabUpdate:r,onUpdateStep:d,onSearchTextChanged:h,onRefresh:u,onClose:x,onBack:f,resetTransactionCategorizationLocalData:y,updateOperatingExpensesIdsForReview:w,clearJeScheduleLocalData:b,onSaveReconciliation:k}=e,{currentSelectedView:C,allSteps:I,missingReceipts:T,jeSchedules:$,fluxAnalysis:D,monthEndInsights:v,transactionView:S,selectedTransactionCategorizationTab:B,reconciliation:A,selectedPeriod:z}=o,[O,P]=a.useState("expenseAutomationPage"),[H,V]=a.useState(()=>{}),[W,ee]=a.useState(!1),R=we(),xe=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ce=xe?Xi:Qi,{openThread:K,setOpenThread:N}=a.useContext(ce),[F,L]=a.useState(!1),[M,J]=a.useState(!1),U=I.find(ge=>ge.step===C),{nextStep:se,previousStep:q}=Mp(I,C),{uiState:{searchString:Y,pageToken:E},totalCountByTab:G,transactions:j,fetchStateByTransactionTabs:Z,transactionLocalData:ne}=S,{selectedReconAccount:ae,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:pe}}}}=A;let oe="Not-Started",de="complete";switch(C){case"missing_receipts":oe=T.refreshStatus.fetchState,de=T.completionStatus;break;case"je_schedules":oe=$.refreshStatus.fetchState,de=$.completionStatus;break;case"month_end_insights":v!=null&&(oe=v?.fetchState);break;case"flux_analysis":oe=D.refreshStatus.fetchState,de=D.completionStatus;break;case"transaction_categorization":oe=S.refreshStatus.fetchState,de=S.completionStatus;break;case"reconciliation":ae==null?(oe=A.refreshStatus.fetchState,de=A.completionStatus):(oe=A.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",de=A.completionStatus)}const{saveStatus:je,selectedCheckBoxTransactionIds:Be}=S,{primaryBtn:Fe,cancelBtn:Se,leftSideComponent:ke}=(()=>{const ge=Ga(o.fluxAnalysis.sections,o.fluxAnalysis.reviewOperatingExpensesIds),et=Wn(),{month:Ke,year:kt}=z,Le=Wn().set("month",Ke-1).set("year",kt).endOf("month");switch(O){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ge===!0?Re.markAsReviewed:sn.undo,style:{justifyContent:"space-evenly"},isLoading:o.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:ro(o.fluxAnalysis.reviewOperatingExpensesIds.length,Ba,R,sn.vendor,C),cancelBtn:{label:Re.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{w([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Re.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:je.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:ro(Be.length,mn,R,sn.transaction,C),cancelBtn:{label:Re.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{y(B,j.map(it=>it.id),z,!1,G[B],Vo(ne,B),m,E)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Re.next,backBtnLabel:Re.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Re.next,style:{justifyContent:"space-evenly"},isDisabled:c||U?.isNextDisabled,suffixIcon:t.jsx(qi,{}),onClick:()=>{d(se.step)}},cancelBtn:{label:Re.back,isDisabled:c||U?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ji,{}),onClick:()=>{d(q.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Re.reconcile,backBtnLabel:Re.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Re.reconcile,onClick:()=>{k({reconcileAction:"reconcile"})},isDisabled:!(A.reconciliationTabsState.balances.variance.amount===0&&et.isAfter(Le)),isLoading:A.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:ro(pe.length,1/0,R,sn.transaction,C),cancelBtn:{onClick:()=>{k({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:A.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Re.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Re.save,backBtnLabel:Re.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Re.save,isLoading:$.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>{H()},label:Re.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const it=C==="reconciliation"&&o.reconciliation.selectedTab==="review"&&o.reconciliation.selectedAccountId!=null,Ot=C==="reconciliation"&&o.reconciliation.selectedAccountId==null,Gt=C==="reconciliation"&&o.reconciliation.selectedTab==="reconcile"&&o.reconciliation.selectedAccountId!=null,ze=se.step==="month_end_insights"&&(C==="flux_analysis"&&(o.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||o.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||Ot),He=C==="transaction_categorization"&&o.selectedTransactionCategorizationTab==="review",It=C==="transaction_categorization"&&o.selectedTransactionCategorizationTab==="autoCategorized",Ft=o.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(l||U?.isNextDisabled===!1),ot=se.step!=="month_end_insights"||!Ot&&C!=="flux_analysis"?U?.isNextDisabled===!0:!Ft;return{formId:"expenseAutomationPage",nextBtnLabel:Re.next,backBtnLabel:Re.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ze===!0?Pp(o.selectedPeriod.month):Re.next,style:{justifyContent:"space-evenly"},isDisabled:ot,suffixIcon:t.jsx(qi,{}),onClick:()=>{He?i("autoCategorized"):it?r("reconcile"):d(se.step)}},cancelBtn:{label:Re.back,isDisabled:c||U?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Ji,{}),onClick:()=>{It?i("review"):Gt?r("review"):it?f():d(q.step)}}}}}})(),{confirmAction:ue}=(()=>{switch(O){case"expenseAutomationFluxPage":return{confirmAction:()=>{L(!1),w([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{L(!1),y(B,j.map(ge=>ge.id),z,!1,G[B],Vo(ne,B),m,E),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{L(!1),b(),x()}};default:return{confirmAction:()=>{L(!1)},confirmationDescription:dn.empty}}})(),Ne=C==="reconciliation"&&A.selectedAccountId!=null&&A.selectedReconAccount!=null,{month:Me,year:Qe}=z,re=Wn().set("month",Me-1).set("year",Qe),ye=re.startOf("month").format(Ki),be=re.endOf("month").format(Ki),Ie=`${ye} ${dn.hyphen} ${be}`;return t.jsxs(Tp,{children:[F?t.jsx(ls,{containerStyle:{width:356},titleComponent:t.jsx(Up,{children:Rp}),primaryButtonText:Op,secondaryButtonText:Bp,proceedButtonVariant:"danger",action:{onOkClick:()=>{ue()},onCancelClick:()=>L(!1)},descriptionComponent:t.jsx(qp,{children:un.confirmationDescription})}):null,t.jsxs(Lp,{children:[t.jsx(ml,{onBack:f,navBarCustomElement:C==="reconciliation"&&A.selectedAccountId!=null?t.jsx(zp,{reconciliation:A}):void 0,onReconTabUpdate:r,currentRecontab:A.selectedTab,reconcileDetailPageFetchState:A.selectedAccountId!=null?A.accountReconciliationsByAccountID[A.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:Ne?A.selectedAccountId:void 0,currentSelectedView:C,titleStyle:{justifyContent:"center",marginLeft:n.sp0},headerData:Ve(C,G.autoCategorized,Ne?A.selectedAccountId:void 0,Ne?A.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,Ne?Ie:void 0),searchText:Y,currentTab:B,getTabCountAndFetchState:ge=>{if(C==="transaction_categorization"&&(ge==="autoCategorized"||ge==="review"))return{hideCountInTab:G[ge]>un.common.numbers.maximumCount,count:G[ge],isFetching:Z[ge].fetchState==="In-Progress"};if(C==="reconciliation"){const{reconciliation:et}=o,{selectedAccountId:Ke}=et;return Ke==null?{count:0,isFetching:!1}:ge==="review"?{count:et.accountReconciliationsByAccountID[Ke]?.accountReconEntity?.transactionsToReview.length,isFetching:et.accountReconciliationsByAccountID[Ke]?.transactionFetchState.fetchState==="In-Progress"}:{count:et.accountReconciliationsByAccountID[Ke]?.accountReconEntity?.transactionsToReconcile.length,isFetching:et.accountReconciliationsByAccountID[Ke]?.transactionFetchState.fetchState==="In-Progress"}}},completionStatus:de,forceShowSubtitle:W===!0||C==="je_schedules"&&($.fetchState==="In-Progress"||$.accountSettingsView.fetchState==="In-Progress"),refreshStatus:oe,companyId:e.companyId,companyName:o.monthEndInsights?.companyName??dn.empty,isZeniUser:xe,onAllThreadsClick:()=>{K!=null&&N(null),J(!0)},onUpdateTab:i,onSearchTextChanged:h,onRefresh:u,onClose:()=>{O==="expenseAutomationFluxPage"||O==="expenseAutomationJESchedulePage"||O==="expenseAutomationTransactionsPage"?L(!0):x()}}),t.jsx($p,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:ee,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:M,setCurrentFooterFormId:P,currentFooterFormId:O,onCloseAllThreadsSection:()=>J(!1)}),t.jsx(_e,{controller:C!=="month_end_insights",children:t.jsx(ea,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:_p(O),primaryBtn:Fe,leftSideComponent:ke,cancelBtn:Se,separatorStyle:{marginRight:n.sp4}})})]})]})},zp=({reconciliation:e})=>{const o=St(),{clearedBalance:c,variance:l,variancePercentage:m,deposits:p,payments:i}=e.reconciliationTabsState.balances,{balance:r}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:d}=e,{transactionFetchState:h}=d??{};return t.jsx(Jp,{children:t.jsxs(Kp,{children:[t.jsxs(lo,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(co,{children:t.jsx(Gp,{})}),t.jsx(uo,{children:h?.fetchState==="In-Progress"?t.jsxs(mo,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(po,{children:Je("0,0.00",r)}),t.jsx(ho,{children:un.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(lo,{children:[t.jsx(co,{children:t.jsx(Yp,{})}),t.jsx(uo,{children:h?.fetchState==="In-Progress"?t.jsxs(mo,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(po,{children:Je("0,0.00",c)}),t.jsxs(Qp,{children:[t.jsx(ho,{children:un.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(fe,{placement:"bottom",title:t.jsxs(em,{children:[t.jsxs(Gi,{children:[t.jsxs(Zi,{children:[i.count," ",sn.payments]}),t.jsx(Yi,{children:Je("0,0.[00]",i.totalAmount)})]}),t.jsxs(Gi,{children:[t.jsxs(Zi,{children:[p.count," ",sn.deposits]}),t.jsx(Yi,{children:Je("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(Xp,{})})]})]})})]}),t.jsxs(lo,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(co,{children:t.jsx(Zp,{})}),t.jsx(uo,{children:h?.fetchState==="In-Progress"?t.jsxs(mo,{children:[t.jsx(tn,{height:25,width:120}),t.jsx(tn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(po,{children:[t.jsx("span",{style:{color:l.amount===0?o.colors.brandColorJadeDark:o.colors.primary},children:Je("0,0.00",l)}),m!=null&&l.amount!==0?t.jsx("span",{style:{color:o.colors.primary,marginLeft:2},children:`(${m.toFixed(2)}%)`}):null]}),t.jsx(ho,{children:un.accountRecon.reconciliation.headers.variance})]})})]})]})})},ro=(e,o,c,l,m)=>{const p=(e>1?l+"s":l)+" selected";return e>0?t.jsxs(Np,{currentView:m,style:c==="small"?{position:"absolute",top:n.sp2,left:`-${n.sp5}`}:{},children:[t.jsx(Vp,{multiDigit:e>=5,children:e}),t.jsx(Hp,{children:p}),e===o?t.jsx(Wp,{children:`(${Ap})`}):null]}):null},Pp=e=>{const o=Fp[e];return`${Dp}${dn.space}${o}${dn.space}${Ep.insights}`};function Mp(e,o){const c=e.findIndex(p=>p.step===o);if(c===-1)throw new Error("currentStep not found in allSteps array");const l=(c+1)%e.length,m=(c-1+e.length)%e.length;return{nextStep:e[l],previousStep:e[m]}}const _p=e=>`${e}_form`,Np=s.div`
1547
- display: flex;
1548
- justify-content: flex-start;
1549
- align-items: center;
1550
- gap: ${n.sp2};
1551
- margin-left: ${e=>e.currentView==="flux_analysis"?"36px":n.sp8};
1552
- `,Vp=s(mt)`
1553
- height: 18px;
1554
- width: ${e=>e.multiDigit?"auto":"18px"};
1555
- padding: ${n.sp0} 6px;
1556
- border-radius: ${n.sp12};
1557
- border: ${e=>`1px solid ${e.theme.colors.primary}`};
1558
- display: flex;
1559
- justify-content: center;
1560
- align-items: center;
1561
- `,Hp=s(Oe)`
1562
- color: ${e=>e.theme.colors.primary};
1563
- `,Wp=s(jt)`
1564
- color: ${Xe.important};
1565
- `,Up=s(rs)`
1566
- margin-top: ${n.sp5};
1567
- padding-left: ${n.sp8};
1568
- padding-right: ${n.sp8};
1569
- color: ${e=>e.theme.colors.primary};
1570
- word-break: break-word;
1571
- `,qp=s(ds)`
1572
- color: ${e=>e.theme.colors.primary};
1573
- margin-top: ${n.sp2};
1574
- margin-bottom: ${n.sp2};
1575
- `,Jp=s.div`
1576
- display: flex;
1577
- justify-content: center;
1578
- align-items: center;
1579
- padding: ${n.sp3} ${n.sp0};
1580
- `,Kp=s.div`
1581
- width: 100%;
1582
- display: flex;
1583
- justify-content: center;
1584
- align-items: center;
1585
- gap: ${n.sp1};
1586
- `,lo=s.div`
1587
- display: flex;
1588
- justify-content: center;
1589
- align-items: center;
1590
- gap: ${n.sp3};
1591
- `,co=s.div`
1592
- width: ${n.sp7};
1593
- height: ${n.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
- `,uo=s.div`
1600
- display: flex;
1601
- flex-direction: column;
1602
- `,ho=s(jt)`
1603
- color: ${e=>e.theme.colors.hero};
1604
- `,po=s(na)`
1605
- min-width: 180px;
1606
- color: ${e=>e.theme.colors.primary};
1607
- `,Gp=s(gs)`
1608
- color: ${e=>e.theme.colors.primary};
1609
- width: ${n.sp4};
1610
- height: ${n.sp4};
1611
- `,Zp=s(xs)`
1612
- color: ${e=>e.theme.colors.primary};
1613
- width: ${n.sp4};
1614
- height: ${n.sp4};
1615
- `,Yp=s(e=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
1616
- color: ${e=>e.theme.colors.primary};
1617
- width: ${n.sp4};
1618
- height: ${n.sp4};
1619
- `,Xp=s(oa)`
1620
- width: ${n.sp3};
1621
- height: ${n.sp3};
1622
- color: ${e=>e.theme.colors.hero};
1623
- :hover {
1624
- color: ${e=>e.theme.colors.primary};
1625
- }
1626
- `,Qp=s.div`
1627
- display: flex;
1628
- align-items: center;
1629
- gap: ${n.sp1};
1630
- `,em=s.div`
1631
- background-color: ${Xe.overlayDark};
1632
- padding: 2px ${n.sp2};
1633
- border-radius: ${n.sp1};
1634
- `,Gi=s.div`
1635
- display: flex;
1636
- justify-content: space-between;
1637
- gap: ${n.sp2};
1638
- `,Zi=s.div`
1639
- text-transform: capitalize;
1640
- `,Yi=s(jt)`
1641
- color: ${Xe.primaryDark};
1642
- align-self: "flex-end";
1643
- `,tn=s(Bt)`
1644
- border-radius: ${n.sp2};
1645
- `,mo=s.div`
1646
- display: flex;
1647
- flex-direction: column;
1648
- min-width: 180px;
1649
- gap: ${n.sp1};
1650
- `;export{Up as ConfirmationPopUpTitle,xm as default,Mp as getNextAndPreviousSteps,_p as uniqueFormName};