@zeniai/web-cockpit-ui 1.14.72-dev-betaSK01 → 1.14.73-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 (319) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-WfBPHoUX.js → ACHDetailsPage-FHBR2PCA-DLva-SPh.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-CinUSJg2.js → AIPerformancePage-CiYLvD6Z-bHSk8bLC.js} +124 -124
  3. package/dist/assets/AccountInfoPage-B0uMPZhx-BIQF2gH2.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-10kK72ec.js → AccountInfoPageContent-CdgOtpop-AHRejHe6.js} +13 -13
  5. package/dist/assets/AccountLockedInfoModal-DnQEp6tD-BW8Fp--s.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-BxjUNX_b-C4CXpIA8.js +239 -0
  7. package/dist/assets/AccountRow-C6z4Ft3r-BFimoTCg.js +298 -0
  8. package/dist/assets/AccountsPromoCardStack-BS-HxQ5z-BoaDvf04.js +207 -0
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js → AddAddressForCardDrawer-qa7RqzlX-DAOW06gk.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-D56Hf4hb.js → AddToWalletPage-DNjsPMFK-r8gZ63eR.js} +22 -22
  11. package/dist/assets/AgingReportsPage-Dmgvzu2b-DiSOGn-n.js +79 -0
  12. package/dist/assets/AllUserItems-BBC-qn-o-D2MAzw4F.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-YWdtNxkt-5BxHOM_M.js +46 -0
  14. package/dist/assets/{AppBasePage-Br0WbQRY-BAK8zLlg.js → AppBasePage-BnA8ceAD-BvanHCQt.js} +5 -5
  15. package/dist/assets/AppDrawerContent-DKHWPZQW-CEAxNC9t.js +91 -0
  16. package/dist/assets/ApprovalRulesSettingsPage-D4Vz_gLv-DJSQNR5P.js +47 -0
  17. package/dist/assets/ArAgingChart-CuHk_U2p-D7juYPVe.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js → ArAgingDetailPage-H77B2AWo-DYwzxBIW.js} +3 -3
  19. package/dist/assets/{AttachmentView-DhluaeAV-DsM43aN0.js → AttachmentView-D1SPuem6-CmH4xHN2.js} +9 -9
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-CmBLlIS1.js → BankAccountSection-ByfDYmEM-WCmaTn1f.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js → BankAccountWarningSection-BTCdQgZV-Bb72qOHU.js} +9 -9
  22. package/dist/assets/BankConnectionsSettingsPage-L62aMW_s-Ce_PfdvA.js +425 -0
  23. package/dist/assets/BillDetailPage-BBQJpRTI-D0MlJ03G.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js → BillPayApprovalRuleDetailPage-ByLLupWf-BGMDsIwH.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js → BillPayApprovalRulesPage-D4d-6Jnf-CF6fIJls.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-CPGYF3vl-DVnbNH0W.js +84 -0
  27. package/dist/assets/BillPaySetUpPage-CeciDq-c-NzaXshML.js +42 -0
  28. package/dist/assets/BillingSettingsPage-DknUlTgB-CcR7ugmH.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-BIjlRcX--CZ4DepwQ.js +1 -0
  30. package/dist/assets/{BoxItem-COIjjFrn-CYZK_lth.js → BoxItem-D4K0YgBP-Bm_px4kT.js} +4 -4
  31. package/dist/assets/BusinessVerificationPage-CWioKmMC--fpYbOGK.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-D70_vfvB.js → CardNumberSubText-C_03r_B--CXrhgc3z.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-D2AlurqK.js → CashbackDetailPage-BaImXBc2-BqUQeIYw.js} +56 -56
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js → ChargeCardDetailPage-Ba7cRz0p-DYtlHHMF.js} +214 -214
  35. package/dist/assets/ChargeCardListPage-BTH_OAht-CJvC6mTi.js +406 -0
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-CcT6S7FA.js → ChargeCardListTable-DpRWVPmZ-CcrBBELQ.js} +54 -54
  37. package/dist/assets/ChargeCardPromoPage-B3bc_Qcj-DVNboRNz.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-3-7oaikG-BYx_BUtm.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js → ChargeCardStatementsPage-3HMKClyw-mCs_-TXo.js} +4 -4
  40. package/dist/assets/ChargeCardUtils-Cx6ntaue-CziTslau.js +1 -0
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-BQqHx8M-.js → ChaseOverlay-1PyDzocW-DV1roPs3.js} +8 -8
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js → CheckDepositDrawerPage-DTADpJQC-sqk-xG07.js} +20 -20
  43. package/dist/assets/CollapsableReportTable-rEGCWPrN-DiziLVLU.js +2932 -0
  44. package/dist/assets/CompanyOfficerDetailsSection-Dpe50aqM-B1Sor9Us.js +260 -0
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-BhEJq4YF.js → CompanyPassportCard-l9sgkbw_-BXrIXjOn.js} +3 -3
  46. package/dist/assets/CompanyPassportPage-DQPGAnFq-DsQ6naIu.js +574 -0
  47. package/dist/assets/CompleteProfile-DJBScNev-5kVXmwEh.js +52 -0
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-S4QyIwiq.js → ConfettiBurst-DukumtTx-CSzALiwF.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js → CreateOrEditVendorPage-C39AEROO-Df_MDMmD.js} +11 -11
  50. package/dist/assets/CreditCardPaymentDrawerPage-D8VUjeG2-Nczpa7J9.js +224 -0
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js → CreditCardPaymentPlgSection-L8WvXQsE-Dx-X3Ggn.js} +10 -10
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-nZHVWMo0.js → CurrencySelectField-yIymL1et-BBkhU934.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js → CustomerOnboardingActivationPage-BKBFtr-o-B3t33ZLt.js} +5 -5
  54. package/dist/assets/CustomerOnboardingContainerPage-BwRlnH01-Di0CtCSz.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js → CustomerOnboardingDetailPageSkeleton-BsnPvucg-BEvywTxp.js} +13 -13
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js → CustomerOnboardingNoStepsPage-Db1DFgQR-DfT9hNRl.js} +2 -2
  57. package/dist/assets/CustomerOnboardingPage-BoF4bXiW-CKAc0RQX.js +107 -0
  58. package/dist/assets/CustomerOnboardingProductSuitePage-BdGFZtH3-DLLnRFgg.js +202 -0
  59. package/dist/assets/{Dashboard-D6Ba5oj0-C5iZr7Dc.js → Dashboard-hADP7IBB-Bk1vjezx.js} +262 -262
  60. package/dist/assets/DashboardReportPage-BwTchCvy-O2bBIky3.js +371 -0
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js → DashboardSidebarBackgroundAnimation-B-w4cVMW-BWggpu2o.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js → DepositAccTransactionItem-BMkCcz-U-g-iJ8Z3m.js} +4 -4
  63. package/dist/assets/DepositAccTransactionListPage-D6h0mu0p-Cba8Z-zG.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-DQG9O9kV-DkLiQ_AK.js +21 -0
  65. package/dist/assets/DownloadOverlay-mXe-oklf-DPD6fOSt.js +439 -0
  66. package/dist/assets/{DrawerPage-BRD6cE6J-1UMYAHb7.js → DrawerPage-DSbF_bCc-BOfcYWDU.js} +13 -13
  67. package/dist/assets/EditPeoplePage-DnE5ud-m-STxMbpu_.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-CtHzBFwx-CcMSn1Z9.js +865 -0
  69. package/dist/assets/EntityDetailPage-CSR_wxIn-C3ytfDma.js +18 -0
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-DQbEIQFx.js → EntitySummarySection-BP9sqkp_-C8j67E3x.js} +28 -28
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js → ExpenseAutomationOverviewPage-C-ZrFIVW-LPRP5OZt.js} +50 -50
  72. package/dist/assets/ExpenseAutomationPage-BEhjUkgs-DU0Mp3Bk.js +1650 -0
  73. package/dist/assets/ExpressPayPage-C9rqylRE-fd6R9yCg.js +168 -0
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-DJXN60Ac.js → FeaturePreviewPage-BcRRbP7e-DlhiW3MZ.js} +3 -3
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-yjJ5FRCa.js → FollowStepsSection-B3Kyt5j4-CgmrU6eD.js} +7 -7
  76. package/dist/assets/GlobalReviewListPage-Bz-YyIK8-B-UTCvpv.js +291 -0
  77. package/dist/assets/HelpButton-38HaKgFL-BugYIsvp.js +28 -0
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-BX2LTL8l.js → InformationCardStack-BY26HFGi-BLGIbInA.js} +4 -4
  79. package/dist/assets/InsightsCardStack-BI7iTuQ_-DQl2fOce.js +79 -0
  80. package/dist/assets/{InsightsSection-JIKb9lz3-Hi0aN8hq.js → InsightsSection-AQ5yTmGG-DS0VgX7W.js} +3 -3
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js → IntegrationsSettingsPage-BEAFHjYf-d2P0RMG5.js} +8 -8
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js → InternationalWireSwiftDetailsPage-DNvv8jLc-dT-poZdm.js} +16 -16
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js → InternationalWireVerificationPage-BdUXxMgU-DhF9zfHu.js} +27 -27
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-eVIYbN0r.js → InviteFormPage-CY-8DzRS-Bfynw6ME.js} +16 -16
  85. package/dist/assets/{InvitePageListView-DUoopPip-D5qrm4ww.js → InvitePageListView-DXjKBR4k-Np2jy73K.js} +164 -164
  86. package/dist/assets/InvitePeoplePage-CIafIgkR-BdmOchmq.js +12 -0
  87. package/dist/assets/InvoiceUploadSection-cXNOY5jR-DGuQgS61.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-BMG4Ljit.js → IssueChargeCardPage-DN1zD_YI-i_-kvzIl.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-CpxXKm9c.js → LabeledAddressValue-Bk3vXfZU-CU4YMzA1.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-6MpVMde--DXTq8JS8.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js → LabeledControlledCheckBoxField-BjYGaRbt-BGdAOJoA.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js → LabeledCreatableSingleSelectField-9q4Lqszf-Csk7xXRk.js} +7 -7
  93. package/dist/assets/LabeledDocumentField-CAWaftIF-CSQ4X3Cr.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js → LabeledDropDownFormattedTextField-WbohTHp8-Bsf-e-tx.js} +5 -5
  95. package/dist/assets/{LabeledText-BESSkt5Z-CPDVK04g.js → LabeledText-B3JYr4tU-laTDcIhJ.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js → LabeledUserSingleSelectWithSubtitlesField-DHOsMX6S-5w6248s9.js} +18 -18
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js → LabeledZeniRolesDropDownField-DcUdbKa4-fYq87dcd.js} +34 -34
  98. package/dist/assets/LinkJETransactionPage-B1XJOlhU-DdWugwxQ.js +98 -0
  99. package/dist/assets/{LockCardPage-DYfgK11k-BFAZ4k7o.js → LockCardPage-B-EvOmPO-B73f-ypE.js} +66 -66
  100. package/dist/assets/LowBalancePopup-BoFHsW5A-B3QtlbXZ.js +34 -0
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js → MagicLinkACHDetailsPage-D5-czDfb-D9jHfcHK.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js → MagicLinkDomesticWireDetailsPage-DxtWixFB-79ayjypJ.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js → MagicLinkInternationalWireDetailsPage-kmj9pdzN-DnNURYN2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js → MagicLinkSuccessPage-BPzk03R8-SXgLVDgR.js} +3 -3
  105. package/dist/assets/MagicLinkTitleSection-CgS4ZMfb-BI5Lq2SW.js +17 -0
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-_UrE81Sw.js → MailingDetailsSection-BktKZ2Nr-DyWKpOiG.js} +2 -2
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js → MeetingCalenderPopup-2tPtQeqB-QatkmFKh.js} +4 -4
  108. package/dist/assets/{Menu-B6iTf2H7-Cu2Vb11u.js → Menu-CV1BBSGW-DKOqAYYS.js} +2 -2
  109. package/dist/assets/MyBankConnectionsSettingsPage-CMyrZ4nS-BheEjXSF.js +110 -0
  110. package/dist/assets/MyPendingActivationChargeCardListPage-DuOoKlPP-thKNb-ry.js +6 -0
  111. package/dist/assets/MyProfileSettingsPage-CA-5gU5k-BFEIvdNu.js +85 -0
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-i4ObGPrS.js → NavBarWithPicker-DuazRsm7-BXAVo-zX.js} +4 -4
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-DolsLofY.js → NavigationArrow-DnZuPnXh-BOLYjEri.js} +2 -2
  114. package/dist/assets/{NavigationDots-BxPgEW_p-Cjr25BX_.js → NavigationDots-DarWlthl-CEtLiSj-.js} +3 -3
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js → NewGlobalMerchantPage-C5zI88lM-DBDRlSHQ.js} +35 -35
  116. package/dist/assets/{NoDataChart-5E72SElf-3CnLxisw.js → NoDataChart-Dwrv5FXT-BktYGhJl.js} +4 -4
  117. package/dist/assets/{NoDataTable-BwHbkm3l-VTHrTfOq.js → NoDataTable-BT9VQUID-B1zJzLW9.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-DUgTbMe0.js → NotFoundPage-BpVYjIy9-CAwSGm4b.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-BVRECpS0.js → NotificationSettingsPage-Br1VS7sj-D72VzMEy.js} +32 -32
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-C0kfEx8A.js → NotificationsListConfig-COCJ7xUp-B665e_3O.js} +1 -1
  121. package/dist/assets/NotificationsPage-CtIcIo4T-DuWbZv_Q.js +685 -0
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-PZB-G7xm.js → OpExByVendorPage-CTdChrGD-CvW5Vepn.js} +6 -6
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-CSsJiY_P.js → OverlayContainerPage-CU1AAMcq-ai6w2Y-V.js} +2 -2
  124. package/dist/assets/PandLWithForecastPage-DVhAvUAV-CoqLEkYS.js +107 -0
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js → PaymentAccountSetupBillingAddressSection-Cqk9_T2U-B2k-ZLJe.js} +9 -9
  126. package/dist/assets/{PeoplePage-CB3T3u_F-BR69e4ui.js → PeoplePage-BR4qd-jm-CBOJNYwE.js} +95 -95
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js → PortfolioAllocationFormPage-T83_xyer-BkoO9beS.js} +13 -13
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-BZAutCbg.js → PortfolioDetails-6ElQWU58-ByHc7XYH.js} +35 -35
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-CKMGS-I4.js → ProductsCarousel-CijsxgpU-C19z6U57.js} +10 -10
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-DjUVr5kX.js → PromoBaseCards-BWsv2pTB-B6b592gJ.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-DCdAj667.js → QBOConnectionDialog-ChKHWoK7-CSeEHm2_.js} +7 -7
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CX61tnWs.js → QBOSetupSection-C4gt0qc8-DTKMvJ4_.js} +12 -12
  133. package/dist/assets/ReimbursementApprovalRuleDetailPage-BwgWdSTd-NVamJEor.js +26 -0
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js → ReimbursementApprovalRulesPage-C2asBtuf-DT1aAQsK.js} +12 -12
  135. package/dist/assets/ReimbursementDetailPage-DS1ewUKC-CVEFgQmR.js +314 -0
  136. package/dist/assets/ReimbursementPromoPage-5OaQjA8F-DErLTtUx.js +84 -0
  137. package/dist/assets/ReimbursementSetUpPage-Bl8jzyRg-3jDcWgfT.js +140 -0
  138. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DIesC2GA-CmjN--dc.js +1 -0
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-_RGkkZLm.js → ReloadCard-0q5pQ13T-CKzHIqK2.js} +5 -5
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-D0sA8766.js → ReportTableViewSelector-C0SiD_xG-BLDdaXUR.js} +29 -29
  141. package/dist/assets/ReportsPage-GTIPR29D-BtSUMj6k.js +121 -0
  142. package/dist/assets/{RevenueChart-CXMBT3cr-BigDcfmP.js → RevenueChart-C099OBIz-BCjETeYD.js} +29 -29
  143. package/dist/assets/ReviewDetailsPage-Dj29qJWr-znzq99Zm.js +290 -0
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-Aab2M4el.js → ReviewOverlay-OPfHsiEH-DYnwxQBa.js} +13 -13
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js → RoleWithToolTip-CnJMJF5X-DPQwf2SV.js} +2 -2
  146. package/dist/assets/ScheduleDetailsFixedAssetsPage-BojehSaf-CqIP5z2b.js +37 -0
  147. package/dist/assets/ScheduleDetailsPage-aZbK93Nq-BFB854u3.js +37 -0
  148. package/dist/assets/ScheduleSequenceTable-By6Dky2k-cVt4Itnj.js +324 -0
  149. package/dist/assets/ScreenRoutes-m-9CX7nW.js +206 -0
  150. package/dist/assets/SetUpAccountSection-B_VtQMHv-v5HWkW-2.js +378 -0
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js → SetUpDefaultSection-CR4EJd0L-DR8b1nlJ.js} +15 -15
  152. package/dist/assets/{SignIn-BlISBvt5-BSeULTEW.js → SignIn-DlL4Ve5C-CS2k0j8x.js} +28 -28
  153. package/dist/assets/SignInScreen-82F821nF.js +1 -0
  154. package/dist/assets/SpendManagementListViewPage-hcbJnpe0-Dx5Mkywb.js +123 -0
  155. package/dist/assets/SpendManagementPerTabPage-CZMtZLLG-BwL9QJKu.js +754 -0
  156. package/dist/assets/SpendManagementSection-v3VQ4WLv-BgJcZL_k.js +230 -0
  157. package/dist/assets/SpendMgmtSetupAccountSection-BstM92cv-D_s447NX.js +206 -0
  158. package/dist/assets/{StatementItem-BVIVLdDn-DWQxeT2X.js → StatementItem-DHN42swg-QQn_8xP5.js} +2 -2
  159. package/dist/assets/StatementsPage-BuWUMrMJ-ClESyfR5.js +58 -0
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-c-jcIGD9.js → StatusSwitcher-BQIZqQby-CwGTf6Yt.js} +2 -2
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-BIZF-iNv.js → SubTabSwitcher-BwULcWpV-KD7oZVm0.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-CGu-GHYa.js → SummaryCard-sp4k0Xek-DgWj-oz4.js} +1 -1
  163. package/dist/assets/TaskManagementPage-N2Egdy4r-qGkYEZ7q.js +508 -0
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js → TimeRangeSwitcher-BbGr7Bdf-CGee3poJ.js} +3 -3
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js → TimeframeSwitcher-CqP9hXqB-r5frPdgi.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js → TimeframeSwitcherWithToggle-C-Nxe_F8-C62_HCuz.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-BsP_HKjG.js → TopExCard-CLw0PDAU-BbYnCf3a.js} +5 -5
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js → TopExDetailPage-GLquKOoy-kMqzF42L.js} +12 -12
  169. package/dist/assets/TransactionDetailPage-cTLfJiHb-1yZP6Zin.js +912 -0
  170. package/dist/assets/TransactionList-SkjGKFn_-BwaaUL7x.js +147 -0
  171. package/dist/assets/TransactionListBig-B4CiUxir-C15l10qy.js +284 -0
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-yaso0Nlb.js → TransactionListPage-eiEKrfCB-CXZ0iEN3.js} +3 -3
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js → TransactionVendorDetailPage-CySokm3L-BpHJwA9m.js} +5 -5
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-CANT8JC_.js → TransferDrawerPage-BSv0D4Zs-BT9NFCI4.js} +27 -27
  175. package/dist/assets/TreasuryOverviewPage-C5hIMuk--DxAuBNvx.js +708 -0
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CkWefV3r.js → TreasuryPromoPage-DSJHOwhj-BeQhN-a8.js} +6 -6
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-DuoYqIOy.js → TreasurySetupPage-B_EmY_UY-DAaCNRGd.js} +5 -5
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR--8vN-IgR.js → TreasuryStatementsPage-BrZVJwAL-Bs1LrL-1.js} +5 -5
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js → TreasuryTaxLetterPage-DsmLrBId-CRVnttNh.js} +5 -5
  180. package/dist/assets/TreasuryTransferOrReviewPage-WB0pVkO6-BWBLW8Tp.js +576 -0
  181. package/dist/assets/TrendChart-CWR5JV7S-Bu3AQa_8.js +16 -0
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-DUVZm_U-.js → TrendWithTransactions-D9x71aZs-CM8kaEfz.js} +4 -4
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js → UncategorizedAccountsMappingPage-Tx1NEXyX-DoWK8o5r.js} +47 -47
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js → UnitIntegrationPage-aTpJwSQj-BYrPkyiL.js} +11 -11
  185. package/dist/assets/UploadAdditionalDocumentOverlay-BVMdCZ9e-BITtYlPW.js +38 -0
  186. package/dist/assets/Vendor2FAPopup-BtVySDI--nsMiWnZu.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-DqnJleBx.js → VendorACHDetailsPage-Cx9VUYTN-CUP3Cq5s.js} +1 -1
  188. package/dist/assets/VendorDetailPage-BTBlddyH-Bc_YJfHo.js +257 -0
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js → VendorDomesticWireDetailsPage-DIQg-f5b-Bwf6L3re.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js → VendorFiling1099EditablePage-CZzpO5dU-BLT7WxiF.js} +32 -32
  191. package/dist/assets/VendorFirstReviewPage-_Bf2O8Hk-B9tTYmRJ.js +730 -0
  192. package/dist/assets/VendorInternationalWireDetailsPage-DmM691ao-Dzdr5mG2.js +152 -0
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js → VendorInternationalWireSwiftDetailsPage-CmfDU583-Dk7aONaM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js → VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js} +4 -4
  195. package/dist/assets/VerifyDevice-pndtId1R-C8OsQHlo.js +112 -0
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-CcmvFcG0.js → VideoPlayer-Cv2VluI6-D2yBmBgw.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-BZRShVLd.js → VideoPopup-DwltINTO-0GPyihNZ.js} +4 -4
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js → WarningsDrawerPage-I6fXTo8V-B0kNeHBS.js} +5 -5
  199. package/dist/assets/ZeniAccountDetailPage-BhqYqyk--DeI4__gE.js +300 -0
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js → ZeniAccountListViewPage-M7S_ZBj4-94TU34gP.js} +12 -12
  201. package/dist/assets/ZeniAccountNavBarPieces-Crjx7iNX-DK8JxCJS.js +14 -0
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js → ZeniAccountPromoPage-rK7P_Dpk-DmoLuwn8.js} +21 -21
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js → ZeniAccountSetupPage-B8yrjDVW-gPUnEzAZ.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-DjtbTVnp.js → ZeniCopyright-BDsnkVlH-C00Fssys.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js → ZeniTransferAmountSlider-BCVTdEWO-p69HMFsD.js} +3 -3
  206. package/dist/assets/{analyticsHelper-L-FpsGLH.js → analyticsHelper-CS2u9ax9.js} +1 -1
  207. package/dist/assets/analyticsHelper-D8CGsPLU-DJI9oEaD.js +1 -0
  208. package/dist/assets/{chartTypes-DCvOVjlS-CF3jsUNb.js → chartTypes-DLnePN0T-B_54UqyM.js} +1 -1
  209. package/dist/assets/{commonDimensions-C32v1F7H-C9uaBJ8J.js → commonDimensions-CWOH4KIa-zIW9i9kk.js} +1 -1
  210. package/dist/assets/{detailCommon-CRAGrqoO-5xMc7u9M.js → detailCommon-COLWOJB--3sJPi-qA.js} +8 -8
  211. package/dist/assets/downloadPdf-DmVZhHLH-D1xNlFUJ.js +1 -0
  212. package/dist/assets/{index-kF4u7Flm.js → index-MAXVX6UR.js} +2202 -2025
  213. package/dist/assets/{lodash-B66NTFTY.js → lodash-D52QloPU.js} +6 -6
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js → mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js → mapSectionWithAcOnlyToTreeNode-gKc2xWyG-DTjSgiEj.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js → mapSpacerToTreeNode-toSXbVwB-B0PNlKW1.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js → mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js → mapTimeframeBalancesToTreeNode-D63QAMZm-BDtNdJWW.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BuAL-Z9U-Ceeq3tsz.js} +1 -1
  220. package/dist/assets/redux-CEhZD0hA.js +12 -0
  221. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-Dj01dEre.js → toCOABalancesWithID-D-AHYPZY-Bomk_rrT.js} +1 -1
  222. package/dist/assets/toChartData-BIN4xqGz-BcU_F8Ix.js +1 -0
  223. package/dist/assets/{treasuryColorHelper-13LJ_xhk-5-aGYtqD.js → treasuryColorHelper--7Rf6Fm8-BdEMhZbj.js} +1 -1
  224. package/dist/assets/{uploadAttachment-DVy2pZeJ-DL6B1oGY.js → uploadAttachment-DwI0nG8D-VCODDzfq.js} +23 -23
  225. package/dist/assets/{uploadReceipts-Dp1dvCjf-BQPyxtgi.js → uploadReceipts-9DTOr0BG-pwNYcimh.js} +1 -1
  226. package/dist/index.html +1 -1
  227. package/package.json +6 -9
  228. package/dist/assets/AccountInfoPage-D-E_-WpE-DJyb7x4k.js +0 -18
  229. package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +0 -59
  230. package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +0 -239
  231. package/dist/assets/AccountRow-Be3LIHO--BjLJB43L.js +0 -298
  232. package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +0 -207
  233. package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +0 -79
  234. package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +0 -192
  235. package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +0 -46
  236. package/dist/assets/AppDrawerContent-BZODvVvi-DQ-V9QL0.js +0 -91
  237. package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +0 -47
  238. package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +0 -24
  239. package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +0 -425
  240. package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +0 -266
  241. package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +0 -84
  242. package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +0 -42
  243. package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +0 -44
  244. package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +0 -1
  245. package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +0 -138
  246. package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +0 -406
  247. package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +0 -222
  248. package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +0 -36
  249. package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +0 -1
  250. package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +0 -2932
  251. package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +0 -260
  252. package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +0 -574
  253. package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +0 -52
  254. package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +0 -224
  255. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +0 -1
  256. package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +0 -107
  257. package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +0 -202
  258. package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +0 -371
  259. package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +0 -66
  260. package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +0 -21
  261. package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +0 -439
  262. package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +0 -55
  263. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +0 -865
  264. package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +0 -18
  265. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +0 -1650
  266. package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +0 -168
  267. package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +0 -291
  268. package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +0 -28
  269. package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +0 -79
  270. package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +0 -12
  271. package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +0 -140
  272. package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +0 -45
  273. package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +0 -41
  274. package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +0 -98
  275. package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +0 -34
  276. package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +0 -17
  277. package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +0 -110
  278. package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +0 -6
  279. package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +0 -85
  280. package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +0 -685
  281. package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +0 -107
  282. package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +0 -26
  283. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +0 -314
  284. package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +0 -84
  285. package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +0 -140
  286. package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +0 -1
  287. package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +0 -121
  288. package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +0 -290
  289. package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +0 -37
  290. package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +0 -37
  291. package/dist/assets/ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js +0 -324
  292. package/dist/assets/ScreenRoutes-Du6t5Ig_.js +0 -206
  293. package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +0 -378
  294. package/dist/assets/SignInScreen-BN2xWnU-.js +0 -1
  295. package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +0 -123
  296. package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +0 -754
  297. package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +0 -230
  298. package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +0 -206
  299. package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +0 -58
  300. package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +0 -508
  301. package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +0 -912
  302. package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +0 -147
  303. package/dist/assets/TransactionListBig-u4SJBZTE-BlGBIBoN.js +0 -284
  304. package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +0 -708
  305. package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +0 -576
  306. package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +0 -16
  307. package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +0 -38
  308. package/dist/assets/Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js +0 -1
  309. package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +0 -257
  310. package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +0 -730
  311. package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +0 -152
  312. package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +0 -112
  313. package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +0 -300
  314. package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +0 -14
  315. package/dist/assets/addSubtractPeriod-CFvkmqm8.js +0 -1
  316. package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +0 -1
  317. package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +0 -1
  318. package/dist/assets/redux-D-TY61DZ.js +0 -12
  319. package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +0 -1
@@ -0,0 +1,1650 @@
1
+ import{o,c7 as Us,q as Se,gr as Ni,gs as Vi,l as q,O as je,j as t,cD as Ws,ab as Ne,aQ as Hi,u as g,cE as qs,c as vt,bF as Ks,i5 as Js,aN as Ke,c5 as fe,y as X,bz as Gs,aM as z,i3 as Zs,am as ze,fX as Ys,gY as Ui,bA as Xs,b_ as Rt,b6 as Wi,ai as St,bP as qi,h as Xe,k9 as Qs,gh as ea,an as gt,A as ta,gt as na,gu as Ki,bs as oa,cy as ia,cg as sa,eT as un,cd as po,aa as Ht,bZ as mo,ad as Ut,ka as aa,kb as ra,kc as la,kd as an,ke as Ji,kf as Gi,kg as ca,kh as da,dE as Zi,ki as ua,kj as ha,kk as pa,kl as ma,km as ga,kn as To,ko as xa,kp as fa,kq as ya,kr as Ca,ks as wa,kt as Yi,ku as ba,kv as va,kw as Sa,kx as ja,gI as Xi,b3 as Tn,cH as An,P as Qi,Q as es,m as ts,cS as hn,e9 as go,gE as ka,fJ as Ia,fZ as $a,ar as La,s as Ta,fG as Aa,aC as ns,ky as Ea,aU as xo,aP as Ao,kz as Ra,kA as Da,g_ as os,kB as Oa,bJ as is,aS as Fa,gO as Et,hT as On,eR as jn,d3 as fo,az as Ma,kC as Eo,dc as ss,dG as za,iP as Ba,dL as yo,cM as En,cP as Rn,iy as nt,C as Tt,hI as Pa,gJ as Fn,jb as Ro,dC as as,df as cn,kD as _a,a_ as Na,dK as rs,n as dn,ip as ls,iz as ro,kE as Qt,ef as cs,eg as ds,iS as us,iT as hs,kF as Va,dd as Dn,iq as ps,fB as ms,eJ as Mn,aJ as Co,kG as Ha,d9 as Ua,aX as gs,iG as Wa,e7 as qa,ap as yt,kH as Ka,kI as Ja,b1 as zn,dn as Ga,a9 as Za,eG as Ya,eH as Xa,eI as Qa,eK as Do,eL as Oo,eM as er,kJ as tr,a$ as nr,eV as or,eW as ir,eX as sr}from"./index-MAXVX6UR.js";import{n as a,b as s,i as Ye,k as wo,w as xs}from"./vendor-Bs1fkIUX.js";import{r as fs,I as ys,n as en,R as mt}from"./CollapsableReportTable-rEGCWPrN-DiziLVLU.js";import{o as Cs}from"./mapTimeframeBalancesToTreeNode-D0Bib2dl-Cgs41-OD.js";import{d as Fo}from"./mapLoadingInProgressToTreeNode-DzagCSPK-Df3QAuQq.js";import{h as ar}from"./VendorsAccountsSection-VX_qjrvm-R24t7Q7V.js";import{u as rr,c as Mo,d as lr,m as cr}from"./uploadAttachment-DwI0nG8D-VCODDzfq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./AccountRow-C6z4Ft3r-BFimoTCg.js";const{common:{navBar:{back:dr},texts:{refresh:ur,close:hr,copy:pr,copied:mr,open:gr}},expenseAutomation:{common:{numbers:{maximumCount:xr}}}}=je.getLocalizedStrings(),fr=a(ka)`
2
+ display: flex;
3
+ width: ${o.sp4};
4
+ height: ${o.sp4};
5
+ align-items: center;
6
+ justify-content: center;
7
+ `,yr=a.div`
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ position: relative;
12
+ cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
13
+ color: ${e=>e.theme.colors.hero};
14
+ &:hover {
15
+ color: ${e=>e.theme.colors.primary};
16
+ }
17
+ `,Cr=a.div`
18
+ width: 100%;
19
+ display: flex;
20
+ flex-shrink: 0;
21
+ flex-direction: column;
22
+ background: ${e=>e.theme.colors.grey4};
23
+ box-sizing: border-box;
24
+ position: sticky;
25
+ top: 0;
26
+ z-index: 6;
27
+ `,wr=a.div`
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-left: ${e=>Bo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
+ padding-right: ${e=>Bo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
+ `,br=a.div`
34
+ display: flex;
35
+ align-items: baseline;
36
+ justify-content: end;
37
+ gap: ${o.sp4};
38
+ flex: 1 1 ${o.sp0};
39
+ `,vr=a.div`
40
+ display: flex;
41
+ align-items: baseline;
42
+ justify-content: start;
43
+ gap: ${o.sp4};
44
+ flex: 1 1 ${o.sp0};
45
+ `,Sr=a($a)`
46
+ width: ${o.sp3};
47
+ height: ${o.sp3};
48
+ cursor: pointer;
49
+ margin-left: ${o.sp1};
50
+ color: inherit;
51
+ `,jr=a(Ia)`
52
+ width: ${o.sp3};
53
+ height: ${o.sp3};
54
+ margin-left: ${o.sp1};
55
+ color: ${Xe.success};
56
+ `,kr=a(ta)`
57
+ cursor: pointer;
58
+ width: ${o.sp4};
59
+ height: ${o.sp4};
60
+ color: ${e=>e.theme.colors.hero};
61
+ &:hover {
62
+ color: ${e=>e.theme.colors.primary};
63
+ }
64
+ `,Ir=a(sa)`
65
+ cursor: pointer;
66
+ width: ${o.sp4};
67
+ height: ${o.sp4};
68
+ color: ${e=>e.theme.colors.hero};
69
+ &:hover {
70
+ color: ${e=>e.theme.colors.primary};
71
+ }
72
+ `,$r=a(ia,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
73
+ cursor: pointer;
74
+ width: ${o.sp4};
75
+ height: ${o.sp4};
76
+ color: ${e=>e.theme.colors.hero};
77
+ animation: ${e=>e.$spinning?Ye`
78
+ ${Lr} 2s linear infinite;
79
+ `:"none"};
80
+ &:hover {
81
+ color: ${e=>e.theme.colors.primary};
82
+ }
83
+ `,Lr=wo`
84
+ 0% {
85
+ transform: rotate(0deg);
86
+ }
87
+ 100% {
88
+ transform: rotate(360deg);
89
+ }
90
+ `,Tr=a.div`
91
+ padding-top: ${o.sp0};
92
+ padding-bottom: ${o.sp0};
93
+ `,zo=a(ze)`
94
+ color: ${e=>e.theme.colors.hero};
95
+ text-align: center;
96
+ display: flex;
97
+ align-items: center;
98
+ justify-content: center;
99
+ flex-direction: column;
100
+ padding-bottom: ${o.sp4};
101
+ `,Ar=a.div`
102
+ display: flex;
103
+ `,Er=a.div`
104
+ border: 1px solid ${e=>e.theme.colors.grey3};
105
+ width: 100%;
106
+ margin-top: -2px;
107
+ border-top-right-radius: ${o.sp2};
108
+ border-top-left-radius: ${o.sp2};
109
+ border-bottom-right-radius: ${o.sp2};
110
+ border-bottom-left-radius: ${o.sp2};
111
+ `,Rr=a.div`
112
+ display: flex;
113
+ height: ${o.sp4};
114
+ `,Dr=a.div`
115
+ text-align: center;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ flex-wrap: wrap;
120
+ `,Or=a.div`
121
+ display: flex;
122
+ flex-direction: column;
123
+ `,Fr=a(un)`
124
+ width: ${o.sp3};
125
+ height: ${o.sp3};
126
+ margin-right: ${o.sp1};
127
+ path {
128
+ stroke-width: 2;
129
+ }
130
+ `,pn=a.span`
131
+ font-weight: ${po.regular};
132
+ color: ${e=>e.theme.colors.primary};
133
+ `,Mr=a.span`
134
+ font-weight: ${po.medium};
135
+ color: ${e=>e.theme.colors.primary};
136
+ `,zr=a.span`
137
+ color: ${e=>e.theme.colors.primary};
138
+ text-decoration: underline;
139
+ text-decoration-color: ${e=>e.theme.colors.grey2};
140
+ cursor: pointer;
141
+ display: flex;
142
+ align-items: center;
143
+ transition: text-decoration-color 0.2s;
144
+ .copy-icon {
145
+ color: ${e=>e.theme.colors.hero};
146
+ transition: color 0.2s;
147
+ }
148
+ &:hover {
149
+ .copy-icon {
150
+ color: ${e=>e.theme.colors.primary};
151
+ }
152
+ text-decoration-color: ${e=>e.theme.colors.primary};
153
+ }
154
+ `,Bo={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},Br=({onAllThreadsClick:e,companyId:n,companyName:d})=>{const c={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:d,url:window.location.href},{url:h,...p}=c,i={...p},{threads:l,isLoading:r}=na(i,!1,!1),m=l.filter(u=>u.id.includes(Ki)===!1);return t.jsxs(yr,{isDisabled:r,onClick:e,"data-testid":z("comment-icon"),children:[t.jsx(oa,{count:m.length,isLoading:r}),t.jsx(fr,{})]})},Pr=({headerData:e,refreshStatus:n,searchText:d,companyName:c,companyId:h,isZeniUser:p,onAllThreadsClick:i,onClose:l,onRefresh:r,onSearchTextChanged:m})=>{const u=()=>{n!=="In-Progress"&&r()};return t.jsx(br,{children:e.rightSection.map((x,y)=>{switch(x){case"search":return t.jsx(Zs,{isSearchOpen:(d.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:d,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:o.sp4},searchIconMarginRight:o.sp0,onSearchTextChanged:C=>{m(C)},downloadPresent:!1},y+x);case"refresh":return t.jsx(fe,{display:"block",placement:"bottom",title:ur,style:{marginTop:"2px"},enterDelay:600,children:t.jsx($r,{onClick:u,$spinning:n==="In-Progress","data-testid":z("refresh-icon")})},y+x);case"comment":return p===!1?null:t.jsx(Br,{companyId:h,companyName:c,onAllThreadsClick:i});case"close":default:return t.jsx(fe,{display:"block",placement:"bottom",title:hr,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(kr,{onClick:l,"data-testid":z("close-icon")})},y+x)}})})},_r=({headerData:e,onBack:n})=>t.jsx(vr,{children:e.leftSection.map((d,c)=>{switch(d){case"back":default:return t.jsx(fe,{display:"block",placement:"bottom",title:dr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(Ir,{onClick:n,"data-testid":z("back-button")})},c+d)}})}),Po=({text:e,linkText:n,windowSize:d,isCopied:c,onLinkClick:h})=>{if(n==null||!n)return t.jsxs(pn,{windowSize:d,children:[e," "]});const p=e.indexOf(n);if(p===-1)return t.jsxs(pn,{windowSize:d,children:[e," "]});const i=e.substring(0,p),l=e.substring(p+n.length);return t.jsxs(t.Fragment,{children:[i?t.jsxs(pn,{windowSize:d,children:[i.trim()," "]}):null,t.jsx(fe,{display:"flex",placement:"right",title:Ui.test(n)?c?mr:pr:gr,enterTouchDelay:600,children:t.jsxs(zr,{onClick:()=>h?.(n),"data-testid":z("pre-link"),children:[n,c?t.jsx(jr,{className:"success-icon"}):t.jsx(Sr,{className:"copy-icon"})]})}),l?t.jsxs(pn,{windowSize:d,children:[l," "]}):null]})},_o=({subTitles:e})=>{const n=Se(),[,d]=Ys(),[c,h]=s.useState(!1),p=s.useRef(null),i=s.useCallback(l=>{Ui.test(l)?(d(l),h(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{h(!1)},2e3)):window.open(l,"_blank","noopener,noreferrer")},[d]);return s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]),t.jsx(Or,{children:e.map((l,r)=>t.jsxs(Dr,{children:[l.pre?t.jsx(Po,{text:l.pre,linkText:l.preLink,windowSize:n,isCopied:c,onLinkClick:i}):null,l.prefixIconName?t.jsx(t.Fragment,{children:l.prefixIconName==="zeniAIIcon"?t.jsx(Fr,{}):t.jsx(t.Fragment,{})}):null,l.bold?t.jsx(t.Fragment,{children:t.jsxs(Mr,{windowSize:n,children:[l.bold," "]})}):null,l.post?t.jsx(Po,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:c,onLinkClick:i}):null]},r+l.bold+l.pre+l.post))})};function Nr(e){const{headerData:n,currentTab:d,completionStatus:c,onUpdateTab:h,selectedReconAccountId:p,getTabCountAndFetchState:i,reconcileDetailPageFetchState:l,forceShowSubtitle:r,currentSelectedView:m,onReconTabUpdate:u,currentRecontab:x,navBarCustomElement:y,titleStyle:C={}}=e,S=i("autoCategorized")?.count??0,w=i("review")?.count??0,I=i("reconcile")?.count??0,f=n.tabs.length>0||n.subTitle.length>0,$=m==="transaction_categorization"&&d==="autoCategorized",R=m==="reconciliation"&&x==="review"&&p!=null,T=m==="reconciliation"&&x==="reconcile"&&p!=null,F=$?S>0:R?l==="In-Progress"?!0:w>0:T?l==="In-Progress"?!0:I>0:c!=="complete",v=vt(),k=Se();let A=[];return n.tabs.length>0&&(A=n.tabs.map(L=>({label:L.label,id:L.id,countDetails:i(L.id)}))),t.jsxs(Cr,{children:[t.jsx(Ks,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:v.colors.grey4,onBackClick:()=>null,titleStyle:C,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(_r,{...e}),rightSideComponent:t.jsx(Pr,{...e}),source:"NavBarWithHeader"}),y??null,t.jsx(Ne,{controller:f===!0,children:t.jsx(wr,{windowSize:k,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(Tr,{windowSize:k,children:t.jsx(Js,{allTabs:A,selectedTab:m==="transaction_categorization"?d??A[0].id:x??A[0].id,onTabChange:L=>{if(m==="transaction_categorization"){const N=q.toExpenseAutomationTransactionsTabKey(L.id);N!=null&&h(N)}else if(m==="reconciliation"){const N=q.toReconciliationTabsType(L.id);N!=null&&u(N)}},maximumCountLimit:xr})}),t.jsx(Er,{windowSize:k}),t.jsx(Rr,{}),t.jsx(Ne,{controller:F===!0||r===!0,children:t.jsx(zo,{windowSize:k,children:n.tabs.map((L,N)=>(m==="reconciliation"?L.id===x:L.id===d)?t.jsx(Ar,{children:t.jsx(_o,{subTitles:L.subTitle})},N+L.id):null)})})]}):t.jsx(Ne,{controller:F===!0||r===!0,children:t.jsx(zo,{windowSize:k,children:t.jsx(_o,{subTitles:n.subTitle})})})})})]})}const Vr=1;function Hr({name:e,checkBoxes:n,mode:d,isDisabled:c,style:h,labelStyle:p,labelCheckBoxStyle:i,checkBoxStyle:l,width:r,registerOptions:m,checkedIconColor:u,checkBoxIconStyle:x,checkBoxContainerStyle:y,draggable:C=!1,selectionLimit:S,infoIconContainerStyle:w,onDragStart:I,rowHeight:f=40,initialScrollOffSet:$,onScroll:R}){const T=Se(),F=s.useRef(null),{control:v}=fo(),k=n.find(M=>M.groupLabel),A=n.filter(M=>!M.groupLabel),L=[];for(const M of A)if(M.isException||L.push(M.value),S!=null&&L.length===S+1)break;const N=n.filter(M=>M.defaultChecked).map(M=>M.value);return t.jsx(ss,{control:v,name:e,rules:m,defaultValue:N,render:({field:{value:M,ref:K,onChange:B}})=>{const V=J=>{Wr({event:J,value:M,allCheckBoxValues:L,groupLabelCheckBox:k,onChange:B})};return t.jsxs(qr,{style:h,windowSize:T,children:[k&&t.jsx(bo,{checkBox:k,index:0,value:M,allCheckBoxValues:L,mode:d,name:e,checkBoxContainerStyle:y,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:w,checkedIconColor:u,isDisabled:c,selectionLimit:S,onDragStart:I,ref:K,onChangeHandler:V}),t.jsx(Kr,{children:t.jsx(Tn,{style:{height:"100%",width:"100%"},children:({height:J,width:G})=>t.jsx(An,{ref:F,height:J,width:G,itemCount:A.length,itemSize:()=>f,estimatedItemSize:f,initialScrollOffset:$??0,onScroll:({scrollOffset:O})=>{R?.(O)},overscanCount:Vr,itemKey:O=>A[O].value,itemData:{checkBoxes:A,value:M,allCheckBoxValues:L,mode:d,name:e,checkBoxContainerStyle:y,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:w,checkedIconColor:u,isDisabled:c,selectionLimit:S,onDragStart:I,ref:K,onChange:B,handleChangeEvent:V,rowHeight:f},children:Ur})})})]})}})}const Ur=({index:e,style:n,data:d})=>{const c=s.useRef(null),{checkBoxes:h,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:y,labelStyle:C,width:S,draggable:w,groupLabelCheckBox:I,infoIconContainerStyle:f,checkedIconColor:$,isDisabled:R,selectionLimit:T,onDragStart:F,ref:v,handleChangeEvent:k}=d,A=h[e];return t.jsx(Qr,{style:{...n,width:"100%"},ref:c,children:t.jsx(bo,{checkBox:A,index:e,value:p,allCheckBoxValues:i,mode:l,name:r,checkBoxContainerStyle:m,checkBoxIconStyle:u,checkBoxStyle:x,labelCheckBoxStyle:y,labelStyle:C,width:S,draggable:w,groupLabelCheckBox:I,infoIconContainerStyle:f,checkedIconColor:$,isDisabled:R,selectionLimit:T,onDragStart:F,ref:v,onChangeHandler:k})})},bo=s.forwardRef((e,n)=>{const{value:d,checkBox:c,groupLabelCheckBox:h,allCheckBoxValues:p,selectionLimit:i,mode:l,checkBoxStyle:r,labelCheckBoxStyle:m,isDisabled:u,draggable:x,checkBoxContainerStyle:y,infoIconContainerStyle:C,name:S,index:w,width:I,checkedIconColor:f,checkBoxIconStyle:$,labelStyle:R,onDragStart:T,onChangeHandler:F}=e,v=Se(),k=M=>{typeof n=="function"?n(M):n&&(n.current=M)};let A=d.includes(c.value);const L=Array.from(new Set([...d,c.value]));h?.value===c.value&&d.length>0&&(i!=null?A=L.length===p.length||L.length===i+1:A=p.every(M=>L.includes(M)===!0));const N=()=>l==="off"||c.isException?v==="small"?{display:"none",...r}:{visibility:"hidden",...r}:c.groupLabel?p.length===1&&p[0]===h?.value?{visibility:"hidden",...m}:m:r;return t.jsxs(Gr,{mode:l,draggable:x===!0,onDragStart:M=>{T?.(M,c.value)},style:y,isDisabled:u,isSelected:A,exceptionMode:c.exceptionMode,children:[c.prefix?t.jsx(Jr,{className:"prefix-box",children:c.prefix}):null,c.isException?t.jsx(Zr,{style:C,className:"checkbox-alert",children:t.jsx(fe,{style:{padding:`12px ${o.sp3}`},title:c.exceptionInfo??"",placement:"bottom-start",children:c.exceptionType==="info"?t.jsx(Yr,{}):t.jsx(Xr,{})})}):t.jsx(Ha,{name:`${S}.${c.value}`,checkBoxValue:c.value,value:A,checkedIconColor:f,isDisabled:u||!c.groupLabel&&!A&&i!=null&&L.length===i+1?"disabled":void 0,checkBoxStyle:N(),checkBoxIconStyle:$,ref:k,onChange:F}),typeof c.label=="string"&&c.label?t.jsx(Ua,{isDisabled:u,label:c.label,labelStyle:R,htmlFor:`${S}.${c.value}`,style:{display:"flex",flex:1,minHeight:o.sp4,marginLeft:o.sp2,width:I,backgroundColor:"inherit",...R}}):c.label]},`${c.value}_${w}`)});bo.displayName="CheckBoxWithLabel";const Wr=({event:e,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:h})=>{const p=e.currentTarget.value,i=e.currentTarget.checked,l=c?.value,r=new Set(n);if(p===l){h(i?Array.from(new Set([l,...d])):[]);return}i?r.add(p):r.delete(p);const m=d.every(u=>r.has(u));l!=null&&(m&&!r.has(l)?r.add(l):!m&&r.has(l)&&r.delete(l)),h(Array.from(r))},qr=a.div`
155
+ display: flex;
156
+ flex-direction: column;
157
+ width: 100%;
158
+ height: 100%;
159
+ `,Kr=a.div`
160
+ flex: 1;
161
+ overflow: hidden;
162
+ `,Jr=a.div`
163
+ opacity: 0;
164
+ `,Gr=a.div`
165
+ display: flex;
166
+ align-items: center;
167
+ flex-direction: row;
168
+ width: 100%;
169
+ min-height: ${o.sp4};
170
+
171
+ ${e=>e.mode==="checked_or_hover"&&Ye`
172
+ input:not(:checked) ~ .unchecked-icon {
173
+ opacity: 0;
174
+ }
175
+
176
+ :hover {
177
+ input:not(:checked) ~ .unchecked-icon,
178
+ .prefix-box {
179
+ opacity: 1;
180
+ }
181
+ }
182
+ `};
183
+
184
+ ${e=>e.mode==="hover_only"&&Ye`
185
+ input:not(:checked) ~ .unchecked-icon,
186
+ input:checked ~ .checked-icon {
187
+ opacity: 0;
188
+ }
189
+
190
+ :hover {
191
+ input:not(:checked) ~ .unchecked-icon,
192
+ input:checked ~ .checked-icon,
193
+ .prefix-box {
194
+ opacity: 1;
195
+ }
196
+ }
197
+ `};
198
+
199
+ label {
200
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
201
+ ${e=>e.isDisabled==="disabled"&&Ye`
202
+ color: ${e.theme.colors.grey2};
203
+ `};
204
+ cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
205
+ pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
206
+ }
207
+
208
+ .checkbox-alert {
209
+ opacity: 0;
210
+ }
211
+
212
+ ${e=>e.exceptionMode==="hover_only"&&Ye`
213
+ :hover {
214
+ .checkbox-alert {
215
+ opacity: 1;
216
+ }
217
+ }
218
+ `}
219
+
220
+ ${e=>e.exceptionMode==="checked_or_hover"&&Ye`
221
+ .checkbox-alert {
222
+ opacity: 1;
223
+ }
224
+ `}
225
+ `,Zr=a.div`
226
+ cursor: pointer;
227
+ `,Yr=a(qi)`
228
+ height: ${o.sp3};
229
+ width: ${o.sp3};
230
+ color: ${e=>e.theme.colors.hero};
231
+ background-color: ${e=>e.theme.colors.grey4};
232
+ border-radius: 50%;
233
+ `,Xr=a(ms)`
234
+ height: ${o.sp3};
235
+ width: ${o.sp3};
236
+ color: ${e=>e.theme.colors.hero};
237
+ background-color: ${e=>e.theme.colors.grey4};
238
+ border-radius: 50%;
239
+ `,Qr=a.div`
240
+ width: 100%;
241
+ box-sizing: border-box;
242
+ `,el=e=>s.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M72.4185 11.061C72.4185 14.6835 75.357 17.622 78.9795 17.622C80.481 17.649 83.25 17.1 84.717 14.2515H78.912C78.912 14.2515 75.8025 13.9815 75.8025 11.142C75.8025 8.0325 78.912 8.0325 78.912 8.0325H84.798L84.1185 6.984C82.917 5.472 81.063 4.5 78.9795 4.5C75.357 4.5 72.4185 7.4385 72.4185 11.061Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M85.4682 8.03232H78.9117C77.1944 8.03232 75.8022 9.42348 75.8022 11.1396C75.8022 12.8557 77.1944 14.2468 78.9117 14.2468H85.4682C87.1856 14.2468 88.5777 12.8557 88.5777 11.1396C88.5777 9.42348 87.1856 8.03232 85.4682 8.03232Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M28.4263 14.2469H24.0028C22.2883 14.2469 20.8933 12.8564 20.8933 11.1374C20.8933 9.41842 22.2838 8.02792 24.0028 8.02792H28.2625C28.2625 8.02792 26.5813 10.8629 27.9763 14.2424L28.4263 14.2469Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M53.9688 68.3098H15.3093C11.5473 68.3098 8.49634 65.2588 8.49634 61.4968C8.49634 57.7348 11.5473 54.6838 15.3093 54.6838H51.4263",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M65.6235 45.9497L77.8365 18.1982H33.3135L15.7905 54.6572C15.7905 54.6572 37.872 54.6752 51.435 54.6842",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("g",{opacity:.2},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.8128 16.0468C84.7317 18.3797 82.3687 19.998 79.6276 19.998L78.7323 20.0077L67.0499 46.8002L65.4818 47.8361C65.6694 47.9711 65.8535 48.1339 66.0367 48.296C66.4128 48.6286 66.7851 48.9578 67.1764 49.0365C67.5728 49.1158 68.0543 48.9552 68.537 48.7942C69.0956 48.6079 69.6559 48.4211 70.0879 48.6045C70.5193 48.7877 70.7584 49.309 70.996 49.8271C71.202 50.2763 71.4068 50.723 71.7349 50.9445C72.0683 51.1703 72.5689 51.1942 73.0687 51.2181C73.6349 51.2452 74.2002 51.2723 74.5204 51.5925C74.8415 51.9136 74.8691 52.4809 74.8968 53.0485C74.9211 53.5469 74.9454 54.0456 75.1684 54.378C75.3909 54.7076 75.8415 54.9157 76.2933 55.1244C76.8101 55.3631 77.3283 55.6025 77.5084 56.025C77.6876 56.4455 77.5053 56.9915 77.3211 57.5433C77.1583 58.0308 76.9941 58.5228 77.0764 58.9365C77.1553 59.3307 77.4857 59.7039 77.8189 60.0802C78.2085 60.5202 78.6019 60.9645 78.6019 61.452C78.6019 61.9403 78.2072 62.3866 77.817 62.8278L77.8169 62.8279C77.4844 63.2039 77.1551 63.5762 77.0764 63.9675C76.9971 64.3639 77.1577 64.8454 77.3187 65.3282C77.505 65.8867 77.6919 66.447 77.5084 66.879C77.3253 67.3104 76.8039 67.5495 76.2859 67.7871C75.8367 67.9931 75.3899 68.1979 75.1684 68.526C74.9454 68.8564 74.9211 69.355 74.8968 69.854C74.8691 70.4221 74.8414 70.9905 74.5204 71.3115C74.1994 71.6326 73.6321 71.6602 73.0645 71.6879C72.5661 71.7122 72.0674 71.7365 71.7349 71.9595C71.4054 72.182 71.1972 72.6326 70.9886 73.0844C70.7504 73.6 70.5116 74.117 70.0909 74.2982L69.9433 86.6701C69.9388 86.9896 69.6013 87.2011 69.3133 87.0616L63.9853 84.5191C63.8593 84.4561 63.7108 84.4606 63.5848 84.5281L59.0443 87.0031C58.7518 87.1606 58.3963 86.9491 58.3963 86.6161V73.2221C58.375 73.1765 58.3539 73.1307 58.3328 73.0849C58.1243 72.6329 57.9162 72.1818 57.5869 71.9595C57.2565 71.7365 56.7579 71.7122 56.2589 71.6879C55.6909 71.6602 55.1224 71.6325 54.8014 71.3115C54.5284 71.0386 54.4676 70.5876 54.4385 70.1098H16.2094C13.4696 70.1098 11.1069 68.4916 10.0252 66.159H5.3595C3.64217 66.159 2.25 64.7678 2.25 63.0517C2.25 61.3356 3.64217 59.9445 5.3595 59.9445H10.2772C11.4475 57.8784 13.6659 56.4838 16.2094 56.4838H16.8914L34.0978 20.2418C32.0553 19.6588 30.3782 18.0406 29.5344 16.0459L29.3264 16.0469H24.9029C23.1884 16.0469 21.7934 14.6564 21.7934 12.9374C21.7934 11.2184 23.1839 9.82792 24.9029 9.82792H29.8292C31.0005 7.76679 33.2164 6.37645 35.7571 6.37645H78.8745C79.1951 6.32719 79.5233 6.30112 79.8574 6.30002L79.8794 6.29999C82.4104 6.29999 84.6067 7.73319 85.701 9.83231H86.3681C88.0855 9.83231 89.4776 11.2235 89.4776 12.9396C89.4776 14.6557 88.0855 16.0468 86.3681 16.0468H85.8128Z",fill:"#97C3B9"})),s.createElement("path",{d:"M64.1251 65.7C67.7288 65.7 70.6501 62.7787 70.6501 59.175C70.6501 55.5713 67.7288 52.65 64.1251 52.65C60.5214 52.65 57.6001 55.5713 57.6001 59.175C57.6001 62.7787 60.5214 65.7 64.1251 65.7Z",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M50.27 59.202C50.27 58.2975 51.6245 57.537 51.7955 56.6865C51.971 55.8045 51.0215 54.5805 51.3635 53.775C51.7055 52.9695 53.2265 52.8345 53.7035 52.128C54.1805 51.4215 53.7485 49.9455 54.3515 49.3425C54.9545 48.7395 56.426 49.1715 57.137 48.6945C57.848 48.2175 57.992 46.692 58.784 46.3545C59.576 46.017 60.8135 46.962 61.6955 46.7865C62.5505 46.6155 63.3065 45.261 64.211 45.261C65.1155 45.261 65.876 46.6155 66.7265 46.7865C67.5815 46.9575 68.8325 46.0125 69.638 46.3545C70.4435 46.6965 70.5785 48.2175 71.285 48.6945C71.996 49.176 73.4675 48.7395 74.0705 49.3425C74.6735 49.9455 74.2415 51.417 74.7185 52.128C75.1955 52.8345 76.721 52.983 77.0585 53.775C77.396 54.567 76.451 55.8045 76.6265 56.6865C76.7975 57.5415 78.152 58.2975 78.152 59.202C78.152 60.1065 76.7975 60.867 76.6265 61.7175C76.4555 62.5725 77.4005 63.8235 77.0585 64.629C76.7165 65.4345 75.1955 65.5695 74.7185 66.276C74.2415 66.9825 74.6735 68.4585 74.0705 69.0615C73.4675 69.6645 71.996 69.2325 71.285 69.7095C70.5785 70.1865 70.43 71.712 69.638 72.0495C68.846 72.387 67.6085 71.442 66.7265 71.6175C65.8715 71.7885 65.1155 73.143 64.211 73.143C63.3065 73.143 62.546 71.7885 61.6955 71.6175C60.845 71.4465 59.5895 72.3915 58.784 72.0495C57.992 71.7165 57.8435 70.1865 57.137 69.7095C56.4305 69.2325 54.9545 69.6645 54.3515 69.0615C53.7485 68.4585 54.1805 66.987 53.7035 66.276C53.2265 65.565 51.701 65.421 51.3635 64.629C51.026 63.837 51.971 62.5995 51.7955 61.7175C51.6245 60.8625 50.27 60.1065 50.27 59.202Z",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M57.9463 70.5151V84.8161C57.9463 85.1491 58.3018 85.3606 58.5943 85.2031L63.1348 82.7281C63.2608 82.6606 63.4093 82.6561 63.5353 82.7191L68.8633 85.2616C69.1513 85.4011 69.4888 85.1896 69.4933 84.8701L69.6463 72.0496",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M78.228 18.1215C78.1965 18.1215 78.165 18.1215 78.138 18.1215H34.263C30.501 18.1215 27.45 15.0705 27.45 11.3085C27.45 7.5465 30.501 4.5 34.263 4.5C34.263 4.5 78.138 4.5 78.147 4.5",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10}),s.createElement("path",{d:"M9.38255 64.2645H4.90955C3.19505 64.2645 1.80005 62.874 1.80005 61.155C1.80005 59.436 3.19055 58.05 4.90955 58.05H9.22955",stroke:"#97C3B9",strokeWidth:.9,strokeMiterlimit:10})),tl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),nl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),ol=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M8.54492 149.483C8.54492 149.483 31.4705 136.963 39.2741 116.167C39.2741 116.167 43.7687 99.3912 46.3662 81.1928C46.3662 81.1928 47.0668 72.2067 47.5519 68.9204C48.0369 65.6341 50.5483 62.1431 53.2644 62.2401C55.9806 62.3371 57.0368 66.1082 57.4249 68.1446C57.5326 68.7102 57.386 69.962 57.118 71.4755C58.1719 66.7819 59.2474 61.7944 59.4512 60.1175C59.947 56.0339 60.8093 51.2176 63.9027 48.6963C66.9961 46.175 69.2272 45.7979 71.1673 45.8841C71.1673 45.8841 73.3014 40.4644 78.3349 40.2705C78.3349 40.2705 81.5253 39.8826 83.5624 42.4039C83.5624 42.4039 87.6259 40.0766 90.9241 43.7615C94.2222 47.4464 95.0845 52.0903 95.4725 60.5054C95.564 62.4897 95.58 64.8514 95.551 67.3023C96.4299 61.724 98.2955 55.6981 100.161 53.3186C104.86 47.3064 108.396 48.8579 108.396 48.8579C108.396 48.8579 110.573 43.309 114.744 42.8133C118.915 42.3177 118.139 46.2289 118.139 46.2289C120.683 43.9016 123.475 44.5049 123.475 44.5049C126.676 45.2053 128.336 47.5757 126.751 56.2063C125.167 64.8368 127.549 69.7931 127.549 69.7931C135.094 63.9425 137.605 69.1898 138.166 72.3683C138.279 72.9998 138.264 73.8438 138.243 75.1149C138.199 77.7258 138.125 82.1383 139.06 90.2112C140.451 102.214 143.124 105.878 143.124 105.878C144.783 108.353 146.57 110.433 148.29 112.148C148.295 112.041 148.297 111.933 148.297 111.825C148.297 111.825 151.897 107.612 156.898 109.994C159.836 111.392 164.068 115.762 168.352 120.184C171.36 123.29 174.394 126.422 177.022 128.569C177.304 128.8 177.579 129.024 177.849 129.244C183.67 133.994 186.768 136.522 193.804 145.151C193.804 145.151 195.959 147.5 198.805 149.666L162.051 191.569C162.051 191.569 141.316 174.666 118.316 149.666C118.316 149.666 121.603 148.5 125.547 145.509C121.267 140.784 115.527 134.794 110.767 131.047C102.326 124.402 99.325 120.466 99.0785 120.134C96.0268 123.958 90.4968 130.202 83.1636 135.627C83.1636 135.627 74.9289 143.955 68.4511 154.795C61.9733 165.634 50.4405 176.376 44.0489 179.577L8.54492 149.483ZM90.439 96.2235C90.4595 96.2104 90.4799 96.1972 90.5001 96.1839L90.5273 96.1764C90.4685 96.2087 90.439 96.2235 90.439 96.2235Z",fill:"#97C3B9"}),s.createElement("path",{d:"M4.5459 145.483C4.5459 145.483 27.4715 132.963 35.2751 112.168C35.2751 112.168 39.7696 95.3917 42.3672 77.1933C42.3672 77.1933 43.0678 68.2072 43.5528 64.9209C44.0379 61.6346 46.5492 58.1436 49.2654 58.2406C51.9815 58.3376 53.0378 62.1087 53.4258 64.1451C53.8139 66.1815 50.9037 77.1179 50.9037 77.1179C50.9037 77.1179 55.0318 59.5766 55.4522 56.118C55.948 52.0344 56.8102 47.2181 59.9036 44.6968C62.997 42.1755 65.2282 41.7984 67.1683 41.8846C67.1683 41.8846 69.3024 36.4649 74.3359 36.271C74.3359 36.271 77.5263 35.8831 79.5634 38.4044C79.5634 38.4044 83.6269 36.077 86.925 39.762C90.2232 43.4469 91.0855 48.0908 91.4735 56.5059C91.8615 64.9209 90.8915 80.124 90.8915 80.124C90.8915 80.124 90.6975 89.5087 86.44 92.224C86.44 92.224 90.1154 90.3815 97.186 82.8392C104.257 75.2969 105.895 75.674 108.805 76.0619C111.715 76.4498 114.13 79.5422 111.996 87.774C109.861 96.0059 97.7573 112.556 97.7573 112.556C97.7573 112.556 90.6867 123.104 79.1646 131.627C79.1646 131.627 70.9299 139.956 64.4521 150.795C57.9743 161.635 46.4414 172.377 40.0499 175.577",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M60.0654 79.2617C60.0654 79.2617 64.1073 66.1812 64.4738 59.4471C64.8403 52.7129 65.5516 44.5133 67.1684 41.8735",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M71.1992 80.8566C71.1992 80.8566 75.1118 73.8854 75.974 61.419C76.8363 48.9527 76.5237 45.6557 76.8255 43.0805C77.3106 38.9215 79.5632 38.4043 79.5632 38.4043",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.8614 135.143C51.6486 134.887 56.9589 129.594 56.7222 123.32C56.4855 117.047 50.7915 112.168 44.0042 112.424C37.217 112.68 31.9067 117.973 32.1434 124.247C32.3801 130.52 38.0742 135.399 44.8614 135.143Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M44.9719 137.801C53.0975 137.495 59.4577 131.23 59.1777 123.809C58.8977 116.388 52.0836 110.62 43.9579 110.927C35.8323 111.233 29.4721 117.498 29.7521 124.919C30.0321 132.34 36.8462 138.108 44.9719 137.801Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M30.2517 119.117L24.2589 125.614C24.2589 125.614 24.1619 129.676 30.2517 129.773C30.2517 129.773 28.3223 124.602 30.2517 119.117Z",fill:"#97C3B9"}),s.createElement("path",{d:"M55.0212 114.14C55.0212 114.14 57.3385 114.959 60.9062 119.516C60.9062 119.516 71.1564 121.854 77.5588 135.15C77.5588 135.15 71.7708 145.914 67.6103 148.242C67.6103 148.242 57.3601 139.309 52.8871 138.9C52.8871 138.9 49.0284 143.264 40.5997 141.335C32.171 139.406 29.2285 129.763 29.2285 129.763H30.2417C30.2417 129.763 37.3877 141.292 50.214 136.691C50.214 136.691 57.6619 134.03 58.869 127.015C60.0762 120.001 56.6487 116.144 55.0104 114.129L55.0212 114.14Z",fill:"#97C3B9"}),s.createElement("path",{d:"M68.9787 127.92C68.9787 127.92 68.4613 132.844 63.1152 136.885",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M72.7079 132.402C72.7079 132.402 71.824 135.29 70.1318 136.087",stroke:"#FAFAFA",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C152.91 114.667 145.171 110.896 139.124 101.878C139.124 101.878 136.451 98.2143 135.061 86.2113C133.67 74.2083 134.511 70.2971 134.166 68.3684C133.606 65.1899 131.094 59.9426 123.549 65.7933C123.549 65.7933 121.167 60.8369 122.752 52.2064C124.336 43.5759 122.676 41.2054 119.475 40.5051C119.475 40.5051 116.684 39.9017 114.14 42.229C114.14 42.229 114.916 38.3178 110.745 38.8134C106.573 39.3091 104.396 44.858 104.396 44.858C104.396 44.858 100.861 43.3065 96.1616 49.3188C94.2861 51.7107 92.4107 57.7877 91.5377 63.3905L91.1389 75.3935C91.1389 75.3935 91.5592 88.1939 86.4287 92.2021C86.4287 92.2021 91.958 88.6787 99.0717 80.8455C106.185 73.0123 111.025 75.8892 112.372 79.2509C113.72 82.6126 113.536 88.2154 106.94 98.5268C100.344 108.838 95.0622 116.111 95.0622 116.111C95.0622 116.111 97.94 120.098 106.768 127.047C115.595 133.997 127.796 148.661 127.796 148.661C127.796 148.661 143.867 134.676 152.888 114.657L152.91 114.667Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M111.058 108.612C111.058 108.612 111.252 98.1068 115.919 91.4588C115.919 91.4588 118.236 87.2028 118.204 79.8545C118.161 70.4051 123.561 65.772 123.561 65.772",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M114.151 42.2183C114.151 42.2183 110.216 45.2352 108.772 52.9822C106.724 63.9939 107.382 72.8184 107.382 72.8184",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M99.3845 78.1522C99.3845 78.1522 98.8671 67.7546 99.8695 59.0271C100.872 50.2996 104.407 44.8584 104.407 44.8584",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M92.4217 79.1864C92.4217 79.1864 91.3223 63.8002 92.1953 59.6304",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M152.91 114.667C156.09 108.332 150.075 108.623 150.075 108.623",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M118.16 137.833C118.16 137.833 109.699 149.319 119.68 151.194C119.68 151.194 125.856 150.493 127.818 148.672L118.16 137.833Z",fill:"#97C3B9"}),s.createElement("path",{d:"M158.051 187.569C158.051 187.569 139.65 173 116.65 148C116.65 148 124.15 160 140.978 134.256C140.978 134.256 152.263 119.236 152.511 114.01C152.511 114.01 147.284 111.36 144.298 107.826C144.298 107.826 147.898 103.613 152.899 105.994C157.9 108.375 166.652 119.365 173.022 124.569C179.392 129.774 182.443 132.122 189.804 141.152C189.804 141.152 191.96 143.501 194.805 145.666",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M160.746 81.6538C160.746 81.6538 182.443 82.699 184.868 83.3885",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M82.4735 30.474C82.4735 30.474 75.3597 15.9066 62.167 9.48486",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M40.9985 49.3833C40.9985 49.3833 33.3674 39.3305 23.1172 37.0786",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),s.createElement("path",{d:"M28.3231 74.5425C28.3231 74.5425 8.71728 83.2269 1.59277 93.7214",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"})),il=a.div`
243
+ width: 100%;
244
+ display: flex;
245
+ justify-content: center;
246
+ align-items: center;
247
+ flex: 1;
248
+ background: ${e=>e.theme.colors.grey4};
249
+ box-sizing: border-box;
250
+ `,sl=a(tl)`
251
+ width: 90px;
252
+ height: 90px;
253
+ `,al=a(nl)`
254
+ width: 90px;
255
+ height: 90px;
256
+ `,rl=a(el)`
257
+ width: 90px;
258
+ height: 90px;
259
+ `,ll=a(ol)`
260
+ width: 90px;
261
+ height: 90px;
262
+ `,cl=a.div`
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: center;
266
+ flex-direction: column;
267
+ `,dl=a(La)`
268
+ margin-top: ${o.sp2};
269
+ color: ${e=>e.theme.colors.brandColorJade};
270
+ `,ul=a(Ta)`
271
+ color: ${e=>e.theme.colors.primary};
272
+ `,hl=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(sl,{});case"je_schedules":case"reconciliation":return t.jsx(ll,{});case"flux_analysis":return t.jsx(rl,{});case"missing_receipts":default:return t.jsx(al,{})}};function bt(e){const{title:n,subTitle:d}=e;return t.jsx(il,{children:t.jsxs(cl,{children:[t.jsx(hl,{...e}),t.jsx(dl,{children:n}),t.jsx(ul,{children:d})]})})}const{common:{headers:{transactions:pl,jeSchedules:ml,fluxAnalysis:gl,missingReceipts:xl,insights:fl,reconciliation:No},strings:{empty:zt}},expenseAutomation:{transactions:{tabs:Vo,subTitles:{review:{item1:mn,item2:gn},autoCategorized:{item1:xn,item2:yl}},searchPlaceholder:Cl,allDoneText:wl},jeSchedules:{subTitles:{item1:bl,item2:vl},searchPlaceholder:Sl,allDoneText:jl},missingReceipts:{subTitles:kl,searchPlaceholder:Il,allDoneText:$l},fluxAnalysis:{subTitles:{item1:Ll,item2:Tl},searchPlaceholder:Al,emptyPageTexts:{youDidIt:El,allReviewed:Rl}},accountRecon:{review:{allDoneText:Ho},reconcile:{allDoneText:Dl},tabs:Uo,titles:{item1:Ol,item2:Fl},subTitles:{review:{item1:Ml,item2:fn},reconcile:{item1:yn,item2:zl}}}}}=je.getLocalizedStrings(),Ue=(e,n,d,c,h)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:pl,subTitle:[],tabs:[{label:Vo.review,id:"review",subTitle:[{pre:mn.pre,bold:mn.bold,prefixIconName:mn.prefixIconName,post:mn.post},{pre:gn.pre,bold:gn.bold,prefixIconName:gn.prefixIconName,post:gn.post}]},{label:Vo.autoCategorized,id:"autoCategorized",subTitle:[{pre:xn.pre,bold:xn.bold,prefixIconName:xn.prefixIconName,post:xn.post.replace("#number",n!=null&&n!=0?n.toString():"")},yl]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Cl,allDoneText:wl};case"je_schedules":return{key:"je_schedules",title:ml,subTitle:[bl,vl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Sl,allDoneText:jl};case"missing_receipts":return{key:"missing_receipts",title:xl,subTitle:[kl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Il,allDoneText:$l};case"flux_analysis":return{key:"flux_analysis",title:gl,subTitle:[Ll,Tl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Al,allDoneText:{title:El,subTitle:Rl}};case"month_end_insights":return{key:"month_end_insights",title:fl,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}};case"reconciliation":return d==null?{key:"reconciliation",title:No,subTitle:[Ol,Fl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:zt,allDoneText:{title:zt,subTitle:zt}}:{key:"reconciliation",title:c??No,subText:h??void 0,subTitle:[],tabs:[{label:Uo.review,id:"review",subTitle:[Ml,{pre:fn.pre,bold:fn.bold,prefixIconName:fn.prefixIconName,post:fn.post}],allDoneText:Ho},{label:Uo.reconcile,id:"reconcile",subTitle:[{pre:yn.pre,bold:yn.bold,prefixIconName:yn.prefixIconName,post:yn.post},zl],allDoneText:Dl}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:zt,allDoneText:Ho}}},{common:{strings:{empty:Bl}},expenseAutomation:{accountRecon:{reconcile:{header:Dt}}}}=je.getLocalizedStrings(),Pl={key:"date",value:Dt.date,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginLeft:g[4],marginRight:g[3]}},_l={key:"clearedDate",value:Dt.clearedDate,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3],display:"none"}},Nl={key:"type",value:Dt.type,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Vl={key:"payee",value:Dt.payee,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Hl={key:"account",value:Dt.account,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Ul={key:"transactionDirection",value:Dt.direction,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Wl={key:"memo",value:Dt.memo,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},ql={key:"amount",value:Dt.amount,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Kl={key:"recommended",value:Bl,sortOrder:"ascending",width:new X(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}},Oe=[Pl,_l,Nl,Vl,Hl,Ul,Wl,ql,Kl],Jl=50,sn={sortKey:"date",sortOrder:"descending"};function Gl({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const d=Se(),[c,h]=s.useState(Co(Oe));s.useEffect(()=>{const l=[...c];for(const r of l)r.key===e.sortKey?r.sortOrder=e.sortOrder:r.sortOrder="ascending";h(l)},[e.sortKey,e.sortOrder]);const p=(l,r)=>{let m=r;e.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),n(l,m)},i=l=>{p(l.key,l.sortOrder)};return t.jsx(Ql,{headerHeight:Jl,children:c.map(l=>t.jsx(Yl,{columnWidth:l.width,windowSize:d,sortDataValue:e.sortKey,actualDataValue:l.key,style:l.customStyle,children:t.jsxs(ic,{isVisible:l.key!=="recommended",children:[t.jsx(Xl,{"data-testid":z("reconcile-tab-list-sort",l.value),onClick:()=>i(l),children:t.jsx(gt,{children:l.value})}),t.jsx(ec,{sortConfig:e,headerData:l,children:t.jsx(tc,{})}),t.jsx(nc,{isVisible:e.sortKey===l.key&&(e.sortKey!==sn.sortKey||e.sortOrder!==sn.sortOrder),children:t.jsx(oc,{"data-testid":z("reconcile-tab-list-reset-sort",sn.sortKey),onClick:()=>n(sn.sortKey,sn.sortOrder)})})]})},l.key))})}const Zl=xs.memo(Gl),Yl=a.div`
273
+ color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
274
+ :hover {
275
+ color: ${e=>e.theme.colors.primary};
276
+ }
277
+ width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
278
+ display: flex;
279
+ align-items: center;
280
+ height: 100%;
281
+ justify-content: flex-start;
282
+ gap: 6px;
283
+ z-index: auto;
284
+ position: relative;
285
+ `,Xl=a.div`
286
+ display: flex;
287
+ gap: 5px;
288
+ cursor: pointer;
289
+ `,Ql=a(St)`
290
+ width: fit-content;
291
+ height: ${e=>`${e.headerHeight}px`};
292
+ width: calc(100% - 20px);
293
+ z-index: 6;
294
+ display: flex;
295
+ align-items: center;
296
+ background-color: ${e=>e.theme.colors.grey4};
297
+ box-sizing: border-box;
298
+ padding: ${o.sp3} ${o.sp8} ${o.sp3} ${o.sp0};
299
+ position: sticky;
300
+ color: ${e=>e.theme.colors.grey1};
301
+ `,ec=a.div`
302
+ display: flex;
303
+ align-items: center;
304
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
305
+ ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
306
+ `,tc=a(En)`
307
+ width: ${o.sp2};
308
+ height: ${o.sp2};
309
+ `,nc=a.div`
310
+ display: ${e=>e.isVisible?"flex":"none"};
311
+ align-items: center;
312
+ padding-top: 2px;
313
+ cursor: pointer;
314
+ color: ${e=>e.theme.colors.grey1};
315
+ &:hover {
316
+ color: ${e=>e.theme.colors.primary};
317
+ }
318
+ `,oc=a(Rn)`
319
+ width: 12px;
320
+ height: 12px;
321
+ `,ic=a.div`
322
+ display: ${e=>e.isVisible?"flex":"none"};
323
+ `,sc=54,ac=72,{common:{strings:{hyphen:Bn}}}=je.getLocalizedStrings(),{dateFormat:Wo}=je.getLocalizedStrings();function rc({selectedTransactionIds:e,transaction:n,transactionId:d}){const c=Se(),h=vt(),[p,i]=s.useState(!1),l=e.includes(d),r=p||l;return t.jsx(lc,{id:d,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(cc,{isSelected:r,totalHeight:sc,children:[t.jsx(xt,{windowSize:c,responsiveWidth:Oe[0].width,style:Oe[0].customStyle,children:t.jsx(Bt,{isSelected:r,children:n.date.format(Wo.visual.MMMDCommaYYYYformat)})}),Oe[1].customStyle.display!=="none"?t.jsx(xt,{windowSize:c,responsiveWidth:Oe[1].width,style:Oe[1].customStyle,children:t.jsx(Bt,{isSelected:r,children:n.clearedDate!=null?n.clearedDate.format(Wo.visual.MMMDCommaYYYYformat):t.jsx("span",{children:Bn})})}):null,t.jsx(xt,{windowSize:c,style:Oe[2].customStyle,responsiveWidth:Oe[2].width,children:t.jsx(hc,{isSelected:r,children:t.jsx(dc,{isSelected:r,children:Va(n.type)})})}),t.jsx(xt,{windowSize:c,style:Oe[3].customStyle,responsiveWidth:Oe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(nt,{text:n.merchantName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(Bt,{isSelected:r,children:t.jsx("span",{children:Bn})})}),t.jsx(xt,{windowSize:c,style:Oe[4].customStyle,responsiveWidth:Oe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(nt,{text:n.accountName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(Bt,{isSelected:r,children:t.jsx("span",{children:Bn})})}),t.jsx(xt,{windowSize:c,style:Oe[5].customStyle,responsiveWidth:Oe[5].width,children:t.jsx(Bt,{isSelected:r,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(xt,{windowSize:c,style:Oe[6].customStyle,responsiveWidth:Oe[6].width,children:t.jsx(nt,{text:n.memo,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}})}),t.jsx(xt,{windowSize:c,style:Oe[7].customStyle,responsiveWidth:Oe[7].width,children:t.jsx(Bt,{isSelected:r,children:Ke("0,0.[00]",n.amount)})}),t.jsx(xt,{windowSize:c,responsiveWidth:Oe[8].width,style:Oe[8].customStyle,children:t.jsx(Bt,{isSelected:r,children:n.isZeniRecommended?t.jsx(uc,{}):null})})]})})}const lc=a.div`
324
+ box-sizing: border-box;
325
+ width: 100%;
326
+ display: flex;
327
+ padding-right: ${o.sp8};
328
+ `,cc=a.div`
329
+ cursor: pointer;
330
+ display: flex;
331
+ border-radius: ${o.sp2};
332
+ width: 100%;
333
+ align-items: center;
334
+ height: ${e=>`${e.totalHeight}px`};
335
+ background-color: ${e=>e.theme.colors.grey5};
336
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
337
+ border-color: ${e=>e.isSelected===!0?e.theme.colors.primary:"none"};
338
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
339
+ :hover {
340
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
341
+ }
342
+ `,xt=a.div`
343
+ width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
344
+ display: flex;
345
+ align-items: center;
346
+ justify-content: flex-start;
347
+ height: 100%;
348
+ z-index: auto;
349
+ position: relative;
350
+ `,Bt=a(ze)`
351
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
+ span {
353
+ padding-left: ${o.sp3};
354
+ }
355
+ `,dc=a(gt)`
356
+ text-transform: capitalize;
357
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
+ `,uc=a(un)`
359
+ width: ${o.sp3};
360
+ height: ${o.sp3};
361
+ margin-right: ${o.sp1};
362
+ path {
363
+ stroke-width: 2;
364
+ }
365
+ `,hc=a.div`
366
+ padding: 1px 6px;
367
+ border-radius: ${o.sp1};
368
+ border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
369
+ `,pc=je.getLocalizedStrings(),{common:{all:qo,strings:{empty:Ko}}}=pc,Jo="selectedTransactionIds",mc="expenseAutomationBankReconReconcilePage",gc=e=>`${e}_form`;function xc({currentFooterFormId:e,localData:n,matchedTransactions:d,sortConfig:c,onSaveReconciliation:h,selectedAccountId:p,onReconTabColumnSortConfigChanged:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r}){const m=Ht({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),u={label:t.jsx(Zl,{onReconTabColumnSortConfigChanged:i,sortConfig:c}),value:qo.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},x=d.map(w=>({label:t.jsx(rc,{transaction:w,selectedTransactionIds:n.selectedTransactionIds,transactionId:w.id}),value:w.id,defaultChecked:!1,groupLabel:!1})),y=[u,...x],C=async w=>{const I=w[Jo].filter(f=>f!=qo.toLocaleLowerCase());l(I)};s.useEffect(()=>{const w=m.watch(I=>{I!=null&&hn(()=>C(I))});return()=>{w.unsubscribe()}}),s.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&r("expenseAutomationBankReconReconcilePage"),()=>{r("expenseAutomationPage")}),[]);const S=s.useCallback(()=>{h({reconcileAction:"reconcile"})},[h]);if(d.length===0){const w=Ue("reconciliation",void 0,p).tabs.find(I=>I.id==="reconcile")?.allDoneText;return t.jsx(wc,{children:t.jsx(bt,{tab:"missing_receipts",title:w?.title??Ko,subTitle:w?.subTitle??Ko})})}return t.jsx(fc,{children:t.jsx(Ut,{...m,children:t.jsx(yc,{onSubmit:m.handleSubmit(S),id:gc(mc),children:t.jsx(Cc,{children:t.jsx(Hr,{name:Jo,checkBoxes:y,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:ac,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const fc=a.div``,yc=a.form``,Cc=a.div`
370
+ height: calc(100vh - 350px);
371
+ `,wc=a.div`
372
+ height: 100%;
373
+ display: flex;
374
+ justify-content: center;
375
+ align-items: center;
376
+ `,lo=69,ue={COLUMN_ONE:187,COLUMN_THREE:136,COLUMN_FOUR:240,COLUMN_FIVE:146},ws=a.div`
377
+ display: flex;
378
+ flex-direction: column;
379
+ background-color: ${e=>e.theme.colors.grey4};
380
+ width: 100%;
381
+ min-height: 100%;
382
+ height: calc(100vh - 500px);
383
+ overflow-x: scroll;
384
+ align-items: center;
385
+ `,bs=a.div`
386
+ display: flex;
387
+ flex-direction: column;
388
+ gap: ${o.sp5};
389
+ align-items: flex-start;
390
+ padding-bottom: ${o.sp9};
391
+ width: 100%;
392
+ `,vs=a.div`
393
+ width: 100%;
394
+ `,Ss=a.div`
395
+ width: 100%;
396
+ `,vo=a.div`
397
+ display: flex;
398
+ flex-direction: row;
399
+ padding: ${o.sp2};
400
+ padding-right: ${o.sp3};
401
+ justify-content: space-between;
402
+ border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
403
+ `,So=a.div`
404
+ display: flex;
405
+ flex-direction: row;
406
+ justify-content: space-between;
407
+ padding: ${o.sp2};
408
+ padding-right: ${o.sp3};
409
+ `,bc=a.div`
410
+ border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
411
+ display: flex;
412
+ flex-direction: row;
413
+ justify-content: space-between;
414
+ padding: ${o.sp2};
415
+ padding-right: ${o.sp3};
416
+ `,vc=a.div`
417
+ padding: ${o.sp2} ${o.sp3};
418
+ `,jo=a.div`
419
+ display: flex;
420
+ `,Sc=a.div`
421
+ display: flex;
422
+ align-items: center;
423
+ justify-content: center;
424
+ gap: ${o.sp1};
425
+ padding: ${o.sp2} ${o.sp0};
426
+ background-color: ${e=>e.theme.colors.grey3};
427
+ border-bottom-left-radius: ${o.sp2};
428
+ border-bottom-right-radius: ${o.sp2};
429
+ `,ko=a.div`
430
+ display: flex;
431
+ flex-direction: column;
432
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
433
+ border-radius: ${o.sp2};
434
+ background-color: ${e=>e.theme.colors.grey5};
435
+ box-shadow: ${e=>e.theme.colors.elevation1};
436
+ cursor: pointer;
437
+ border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
438
+ .highlight {
439
+ color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
440
+ }
441
+ :hover {
442
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
443
+ }
444
+ :hover .highlight {
445
+ color: ${e=>e.theme.colors.primary};
446
+ }
447
+ `,Y=a.div`
448
+ display: flex;
449
+ flex-direction: column;
450
+ width: 180px;
451
+ padding: ${o.sp2};
452
+ .hover-background {
453
+ border-radius: ${o.sp1};
454
+ background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
455
+ .select-control {
456
+ background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
457
+ }
458
+ :hover {
459
+ background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
460
+ .select-control {
461
+ background-color: ${e=>e.theme.colors.background};
462
+ }
463
+ }
464
+ :focus-within {
465
+ background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
466
+ .select-control {
467
+ background-color: ${e=>e.theme.colors.background};
468
+ }
469
+ }
470
+ }
471
+ .item-value-container {
472
+ .grouped-single-select-field__menu {
473
+ margin-top: ${o.sp2};
474
+ }
475
+ }
476
+ `,ut=a.div`
477
+ padding: ${o.sp2} ${o.sp3};
478
+ `,ne=a(gt)`
479
+ color: ${e=>e.theme.colors.hero};
480
+ `,ce=a(ze)`
481
+ width: 100%;
482
+ color: ${e=>e.theme.colors.hero};
483
+ white-space: nowrap;
484
+ overflow: hidden;
485
+ text-overflow: ellipsis;
486
+ `,ae=a.div`
487
+ display: flex;
488
+ gap: ${o.sp1};
489
+ color: ${e=>e.theme.colors.primary};
490
+ .select-value-container {
491
+ .auto-complete-single-select-field__input-container {
492
+ .auto-complete-single-select-field__input {
493
+ text-align: left;
494
+ }
495
+ }
496
+ .grouped-single-select-field__input-container {
497
+ .grouped-single-select-field__input {
498
+ text-align: left;
499
+ }
500
+ }
501
+ }
502
+ `,Io=a.div`
503
+ border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
504
+ display: flex;
505
+ flex-direction: column;
506
+ gap: ${o.sp3};
507
+ align-items: center;
508
+ justify-content: center;
509
+ padding: ${o.sp0} 42px;
510
+ `,$o=a.div`
511
+ flex: 1;
512
+ `,js=a(gt)`
513
+ padding: ${o.sp0} 6px;
514
+ color: ${Xe.info};
515
+ border: 1px solid ${Xe.info};
516
+ border-radius: ${o.sp1};
517
+ margin-top: ${o.sp1};
518
+ `,kn=a(St)`
519
+ padding: ${o.sp2};
520
+ color: ${e=>e.theme.colors.hero};
521
+ background: ${e=>e.theme.colors.overlayColor};
522
+ border-radius: ${o.sp1};
523
+ `,qe=a(kn)`
524
+ padding: 2px ${o.sp2};
525
+ `,qt=je.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Ct=[{key:"date",value:qt.date,sortOrder:"ascending",width:new X(20,20),loaderWidth:120},{key:"payee",value:qt.payee,sortOrder:"ascending",width:new X(20,20),loaderWidth:212},{key:"memo",value:qt.memo,sortOrder:"ascending",width:new X(20,20),loaderWidth:192},{key:"direction",value:qt.direction,sortOrder:"ascending",width:new X(15,15),loaderWidth:84},{key:"match",value:qt.match,sortOrder:"ascending",width:new X(15,15),loaderWidth:152},{key:"amount",value:qt.amount,sortOrder:"ascending",width:new X(10,10),loaderWidth:64}],jc=e=>{const{sortConfig:n,onColumnSortConfigChanged:d}=e,c=Se(),[h,p]=s.useState(Co(Ct));s.useEffect(()=>{const l=[...h];for(const r of l)r.key===n.sortKey?r.sortOrder=n.sortOrder:r.sortOrder="ascending";p(l)},[n.sortKey,n.sortOrder]);const i=(l,r)=>{let m=r;n.sortKey===l&&(m=r==="ascending"?"descending":"ascending"),d(l,m)};return t.jsx(Ic,{children:h.map(l=>t.jsxs($c,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:c,isLastColumn:l.key==="amount",children:[t.jsxs(Lc,{"data-testid":z("account-reconciliation-review-header",l.value),sortKey:l.key,onClick:()=>i(l.key,l.sortOrder),children:[t.jsx(gt,{children:l.value}),t.jsx(Tc,{sortDataValue:n.sortKey,headerData:l,children:t.jsx(Ac,{})})]}),t.jsx(Ec,{sortDataValue:n.sortKey,windowSize:c,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Rc,{"data-testid":z("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},l.key))})},kc=xs.memo(jc),Ic=a(St)`
526
+ top: 0;
527
+ left: 0;
528
+ width: fit-content;
529
+ min-width: 100%;
530
+ z-index: 6;
531
+ display: flex;
532
+ align-items: center;
533
+ box-sizing: border-box;
534
+ padding: ${o.sp3} ${o.sp4};
535
+ position: sticky;
536
+ color: ${e=>e.theme.colors.grey1};
537
+ background-color: ${e=>e.theme.colors.grey4};
538
+ `,$c=a.div`
539
+ color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
540
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
541
+ min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
542
+ display: flex;
543
+ align-items: center;
544
+ gap: 5px;
545
+ left: ${o.sp0};
546
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
547
+ `,Lc=a.div`
548
+ display: flex;
549
+ cursor: pointer;
550
+ gap: ${o.sp1};
551
+ &:hover {
552
+ color: ${e=>e.theme.colors.primary};
553
+ }
554
+ white-space: nowrap;
555
+ `,Tc=a.div`
556
+ display: flex;
557
+ align-items: center;
558
+ transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
559
+ ${e=>e.headerData.sortOrder==="ascending"?Ye`
560
+ padding-top: 2px;
561
+ `:Ye`
562
+ padding-bottom: 2px;
563
+ `}
564
+ `,Ac=a(En)`
565
+ width: ${o.sp2};
566
+ height: ${o.sp2};
567
+ cursor: pointer;
568
+ color: inherit;
569
+ `,Ec=a.div`
570
+ display: ${e=>e.isVisible?"flex":"none"};
571
+ align-items: center;
572
+ padding-top: 2px;
573
+ `,Rc=a(Rn)`
574
+ width: 12px;
575
+ height: 12px;
576
+ cursor: pointer;
577
+ color: ${e=>e.theme.colors.hero};
578
+ `,rt="accountReconReviewTableSection",{dateFormat:Dc,expenseAutomation:Oc,common:pt}=je.getLocalizedStrings(),{visual:ks}=Dc,{accountRecon:ge}=Oc,Is=e=>[{label:ge.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],$s=e=>[{label:ge.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Go=e=>`${rt}_${e}_form`,Ee=(e,n)=>`${rt}.${e}.${n}`,Fc=e=>{const{sortKey:n,sortOrder:d,accountReconEntity:c,entitySearchAutoCompleteActions:h,allAccountList:p,classList:i,localData:l,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,selectedAccountId:u,entitySearchAutoCompleteData:x,excludeFetchById:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:S,refreshStatus:w,updateLocalData:I,onColumnSortConfigChanged:f,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:T,bankAccounts:F,creditCards:v}=e,{transactionsToReview:k}=c,A=s.useRef(null),[L,N]=s.useState(null),M=B=>{const V=k[B],J=q.isReviewTransactionBillPaymentType(V),G=q.isReviewTransactionExpenseType(V),O=q.isReviewTransactionCreditCardPaymentType(V),ie=q.isReviewTransactionBankTransferType(V),ye=q.isReviewTransactionDepositType(V),U=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===L?G||O||ie||ye?275+(U?25:0):J?185+V.recommendedAction.recommendedTransactions.length*40+(U?25:0):146:72},K=s.useMemo(()=>({onColumnSortConfigChanged:f,sortConfig:{sortKey:n,sortOrder:d}}),[f,n,d]);if(s.useEffect(()=>{N(k[0]?.transactionId??null),A.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[L]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[k.length]),s.useEffect(()=>{w.fetchState==="Completed"&&A.current?.resetAfterIndex(0)},[w]),k.length===0){const B=Ue("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(od,{children:t.jsx(bt,{tab:"reconciliation",title:B?.title??pt.strings.empty,subTitle:B?.subTitle??pt.strings.empty})})}return t.jsx(Hc,{children:t.jsx(Ls.Provider,{value:K,children:t.jsx(Tn,{children:({height:B,width:V})=>t.jsx(An,{width:V,height:B,innerElementType:Ts,ref:A,itemCount:k.length,itemSize:M,itemKey:J=>k[J].transactionId,overscanCount:Ba,itemData:{transactionsList:k,expandedRowId:L,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:y,saveFetchById:C,reviewTabSelectedVendorByTransactionId:S,bankAccounts:F,creditCards:v,updateLocalData:I,setExpandedRowId:N,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:T},initialScrollOffset:0,children:Mc})})})})},Ls=s.createContext(void 0),Ts=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext(Ls);return t.jsxs(Uc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx(kc,{onColumnSortConfigChanged:i,sortConfig:p}),t.jsx(Wc,{children:d})]})});Ts.displayName="Account recon review table inner element type";const Mc=({index:e,style:n,data:d})=>{const{transactionsList:c,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,allAccountList:l,classList:r,localData:m,updateLocalData:u,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:y,entitySearchAutoCompleteData:C,onSaveReconciliation:S,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:T,creditCards:F}=d,v=c[e];return t.jsx(Vc,{style:{...n,width:"100%"},children:t.jsx(zc,{transaction:v,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:C,classListNestedAccountHierarchy:y,onSaveReconciliation:S,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:f,saveFetchById:$,selectedVendor:R[v.transactionId],bankAccounts:T,creditCards:F})})},zc=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,allAccountList:h,classList:p,classListNestedAccountHierarchy:i,localData:l,entitySearchAutoCompleteData:r,excludeFetchById:m,saveFetchById:u,selectedVendor:x,bankAccounts:y,creditCards:C,setExpandedRowId:S,updateLocalData:w,onSaveReconciliation:I,onSaveReconciliationReview:f,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,T=Se(),F=l[e.transactionId],v=e.recommendedAction.action==="record_bill_payment",k=e.recommendedAction.action==="record_expense",A=h.find(M=>M.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),L=M=>M.recommendedAction.recommendedTransactions.length>0&&M.recommendedAction.recommendedTransactions[0].merchantName!=null?M.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,N=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(Pc,{isExpanded:R,children:[t.jsxs(_c,{isExpanded:R,onClick:()=>S(e.transactionId),"data-testid":z("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Jt,{windowSize:T,responsiveWidth:Ct[0].width,children:t.jsx(Kt,{children:e.transactionDate.format(ks.MMMDCommaYYYYformat)})}),t.jsx(Jt,{windowSize:T,responsiveWidth:Ct[1].width,children:t.jsx(Kt,{children:t.jsx(nt,{itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"},text:L(e)})})}),t.jsx(Jt,{windowSize:T,responsiveWidth:Ct[2].width,children:t.jsx(Kt,{children:t.jsx(nt,{itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Jt,{windowSize:T,responsiveWidth:Ct[3].width,children:t.jsx(Kt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Jt,{windowSize:T,responsiveWidth:Ct[4].width,children:[t.jsx(Ne,{controller:v,children:t.jsx(id,{children:t.jsx(sd,{children:ge.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Ne,{controller:!v,children:t.jsx(Kt,{children:A!=null?t.jsxs(t.Fragment,{children:[t.jsx(As,{}),t.jsx(nt,{itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Jt,{windowSize:T,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Kt,{children:gs("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Ne,{controller:R&&F!=null,children:[t.jsx(Bc,{onSaveReconciliation:I,onSaveReconciliationReview:f,updateLocalData:w,saveFetchById:u,excludeFetchById:m,localData:F,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:y,creditCards:C,onReconMatchedTransactionClick:$}),t.jsx(Ne,{controller:(v||k)&&N!=null,children:t.jsx(rd,{children:t.jsxs(ld,{children:[ge.review.bankDetail,pt.strings.colon," ",N]})})})]})]})},Bc=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:d,allAccountList:c,classList:h,classListNestedAccountHierarchy:p,localData:i,entitySearchAutoCompleteData:l,excludeFetchById:r,saveFetchById:m,selectedVendor:u,bankAccounts:x,creditCards:y,updateLocalData:C,onSaveReconciliation:S,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I})=>{const f=vt(),[$,R]=s.useState(!i.vendor?.id),[T,F]=s.useState(!i.customer?.id),[v,k]=s.useState(i.categoryId==null),[A,L]=s.useState(i.classId==null),[N,M]=s.useState(i.bankAccountId==null),[K,B]=s.useState(i.creditCardId==null),[V,J]=s.useState(!i.memo),G=q.isReviewTransactionBillPaymentType(e),O=q.isReviewTransactionExpenseType(e),ie=q.isReviewTransactionBankTransferType(e),ye=q.isReviewTransactionCreditCardPaymentType(e),U=q.isReviewTransactionDepositType(e),he=s.useMemo(()=>{if(!O)return Et(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Et(n,u?.recommendations);const j=c.find(be=>be.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Z=j!=null?{...j,reason:ge.review.zeniGptRecommendation,min:0,max:0}:void 0;return Et(n,[{account:Z}])},[O,u,e.recommendedAction.recommendedTransactions,c,n]),Ce=s.useMemo(()=>{if(!O)return jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return jn(p,u?.recommendations);const j=h.find(be=>be.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Z=j!=null?{...j,reason:ge.review.zeniGptRecommendation,min:0,max:0}:void 0;return jn(p,[{class:Z}])},[O,u,e.recommendedAction.recommendedTransactions,h,p]),b=Ht({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Zo(e,i,he,c,Ce,x,y,l),[e,i,Ce,c,he,x,y,l]),values:s.useMemo(()=>Zo(e,i,he,c,Ce,x,y,l),[e,i,Ce,c,he,x,y,l])}),P=async(j,Z)=>{j.includes("memo")||C(Yo(Z,e,l,c),e.transactionId,j.includes("vendor"))};s.useEffect(()=>{const j=b.watch((Z,{name:be})=>{be!=null&&Z!=null&&hn(()=>P(be,Z))});return()=>{j.unsubscribe()}});const W=s.useCallback(j=>{if(O||U){if(O&&i.vendor==null){R(!1),b.setError(Ee(e.transactionId,"vendor"),{type:"required"});return}if(U&&i.customer==null){F(!1),b.setError(Ee(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){k(!1),b.setError(Ee(e.transactionId,"category"),{type:"required"});return}}C(Yo(j,e,l,c),e.transactionId,!1),w(e.transactionId)},[O,U,C,e,l,c,w,i.categoryId,i.vendor,i.customer]),_=b.watch(Ee(e.transactionId,"vendor")),E=b.watch(Ee(e.transactionId,"customer")),H=s.useRef(),ee=s.useMemo(()=>O?"vendor":U?"customer":null,[O,U]),me=(j,Z)=>{ee!=null&&d.onAutoCompleteInputChange?.(j,ee),H.current=Z};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(O&&H.current?.(ls(l.entityAutoCompleteView)),U&&H.current?.(Ja(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,U,O]);const D=j=>h.filter(Z=>Z.classId===j)[0]?.accountingClassNumber??void 0,re=j=>c.filter(Z=>Z.qboId===j)[0]?.qboId,Q=s.useMemo(()=>{switch(e.recommendedAction.action){case"record_bill_payment":return["record_bill_payment"];case"record_cc_payment":case"record_expense":case"record_transfer":return["record_expense","record_transfer","record_cc_payment"];default:return["record_deposit","record_cc_credit"]}},[e.recommendedAction.action]),te=()=>{k(!1)},we=()=>{M(!1)},ke=()=>{B(!1)};return s.useEffect(()=>{v===!1&&i.categoryId==null&&b.setFocus(Ee(e.transactionId,"category"))},[v]),s.useEffect(()=>{A===!1&&i.classId==null&&b.setFocus(Ee(e.transactionId,"class"))},[A]),s.useEffect(()=>{$===!1&&i.vendor==null&&b.setFocus(Ee(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{T===!1&&i.customer==null&&b.setFocus(Ee(e.transactionId,"customer"))},[T]),s.useEffect(()=>{N===!1&&i.bankAccountId==null&&b.setFocus(Ee(e.transactionId,"bankAccount"))},[N]),s.useEffect(()=>{K===!1&&i.creditCardId==null&&b.setFocus(Ee(e.transactionId,"creditCard"))},[K]),t.jsx(Ut,{...b,children:t.jsx("form",{onSubmit:b.handleSubmit(W),id:Go(e.transactionId),children:t.jsxs(Nc,{children:[t.jsxs(qc,{children:[t.jsxs(Gc,{children:[t.jsxs(Zc,{children:[t.jsx(As,{}),t.jsx(zn,{label:{label:G?ge.review.formLabels.match:ge.review.formLabels.categorize},radioField:{name:Ee(e.transactionId,"match_radio"),id:G?"match":"categorize",value:G?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Ne,{controller:!G,children:t.jsxs(t.Fragment,{children:[t.jsx(Xo,{}),Q.map(j=>t.jsx(zn,{label:{label:ge.review.formLabels[j]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"recommendedActionType"),id:j,value:j,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},j))]})})]}),t.jsxs(Jc,{children:[t.jsx(dn,{variant:"secondary",size:"small",label:ge.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":z("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{S({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(dn,{form:Go(e.transactionId),"data-testid":z("account-reconciliation-review-save-button",e.transactionId),label:pt.footer.save,style:{width:o.sp10},variant:"primary",size:"small",type:"submit",loading:m[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(Ne,{controller:O||U,children:t.jsxs(Pn,{children:[t.jsx(Ne,{controller:O,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(Y,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.vendor}),t.jsx(ae,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),R(!1)},"data-testid":z("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.addVendor]}):t.jsx(ro,{name:Ee(e.transactionId,"vendor"),allowEmpty:!1,placeholder:ge.review.formLabels.addVendor,valueToId:j=>j,defaultValue:{selectedOption:_?.selectedOption,defaultOptions:_?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:me})})})]})})})}),t.jsx(Ne,{controller:U,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&T===!1&&F(!0)},children:t.jsx(Y,{style:{flex:1,padding:g[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.customer}),t.jsx(ae,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:T===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),F(!1)},"data-testid":z("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.addCustomer]}):t.jsx(ro,{name:Ee(e.transactionId,"customer"),allowEmpty:!1,placeholder:ge.review.formLabels.addCustomer,valueToId:j=>j,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:j=>!!j.selectedOption},loadOptions:me})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&v===!1&&k(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.category}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:v===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),te()},"data-testid":z("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"category"),placeholder:ge.review.formLabels.addCategory,valueToId:j=>re(j),defaultValue:{allOptions:he,selectedOption:c.find(j=>j.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Cn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&A===!1&&L(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.class}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:A===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),L(!1)},"data-testid":z("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.addClass]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"class"),placeholder:ge.review.formLabels.addClass,valueToId:j=>D(j),defaultValue:{allOptions:Ce,selectedOption:i.classId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Cn})})})]})})})]})}),t.jsx(Ne,{controller:G,children:t.jsxs(Yc,{children:[t.jsxs(Xc,{children:[t.jsx("span",{className:"matched-text",children:`${ge.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),ge.review.matchesFoundFullInfo]}),t.jsx(ed,{children:e.recommendedAction.recommendedTransactions.map(j=>j.bookTransactionId!=null?t.jsxs(td,{children:[t.jsx(zn,{label:{label:t.jsxs(Qc,{children:[t.jsx(ze,{children:j.date.format(ks.MMMDCommaYYYYformat)}),t.jsx(ze,{children:j.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ee(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:j.bookTransactionId,value:j.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(ad,{"data-testid":z("account-reconciliation-review-matched-transaction-amount",j.bookTransactionId),onClick:()=>{j.bookTransactionId!=null&&I(j.bookTransactionId)},children:[t.jsx(nd,{children:gs("0,0.00",j.amount.amount,j.amount.currencySymbol)}),t.jsx(Xo,{})]})]},j.bookTransactionId):null)})]})}),t.jsx(Ne,{controller:ie,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&N===!1&&M(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ge.review.formLabels.transferTo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),we()},"data-testid":z("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.selectAccount]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"bankAccount"),placeholder:ge.review.formLabels.selectAccount,defaultValue:{allOptions:Is(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(Ne,{controller:ye,children:t.jsx(Pn,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&K===!1&&B(!0)},children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ge.review.formLabels.creditCard}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:K===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),ke()},"data-testid":z("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.selectCard]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ee(e.transactionId,"creditCard"),placeholder:ge.review.formLabels.selectCard,defaultValue:{allOptions:$s(y),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:j=>!!j.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(Ne,{controller:!G,children:t.jsx(Kc,{children:t.jsx(Y,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:ge.review.header.memo}),t.jsx(ae,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(ce,{onClick:j=>{j.stopPropagation(),J(!1)},"data-testid":z("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:f.colors.champion,cursor:"pointer"},children:[t.jsx(Pt,{}),ge.review.formLabels.addMemo]}):t.jsx(Ga,{name:Ee(e.transactionId,"memo"),placeholder:ge.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},Cn={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${o.sp5})`,marginRight:`-${o.sp3}`,marginLeft:`-${o.sp3}`})},Zo=(e,n,d,c,h,p,i,l)=>{const r=c.find(m=>m.accountId===n.categoryId);return{[rt]:{[e.transactionId]:{category:{selectedOption:r?.qboId,allOptions:d},class:{selectedOption:n?.classId,allOptions:h},bankAccount:{selectedOption:n?.bankAccountId,allOptions:Is(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:$s(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:ps(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:tr(n?.customer,l.entityAutoCompleteView)}}}}},Yo=(e,n,d,c)=>{const{vendor:h,customer:p}=e[rt][n.transactionId];let i;if(h.selectedOption!=null){const r=h.defaultOptions.find(m=>m.value===h.selectedOption);if(r!=null)i={id:h.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.vendor.find(u=>u.id===h.selectedOption||u.zeniId===h.selectedOption);m!=null&&(i={id:m.zeniId,name:m.name})}}let l;if(p.selectedOption!=null){const r=p.defaultOptions.find(m=>m.value===p.selectedOption);if(r!=null)l={id:p.selectedOption,name:r.label};else{const m=d.entityAutoCompleteView.customer.find(u=>u.id===p.selectedOption||u.zeniId===p.selectedOption);m!=null&&(l={id:m.zeniId,name:m.name})}}return{categoryId:c.find(r=>r.qboId===e[rt][n.transactionId].category.selectedOption)?.accountId??e[rt][n.transactionId].category.selectedOption,classId:e[rt][n.transactionId].class.selectedOption,memo:e[rt][n.transactionId].memo,matchedTransactionId:e[rt][n.transactionId].matchedTransaction,vendor:i,bankAccountId:e[rt][n.transactionId].bankAccount.selectedOption,creditCardId:e[rt][n.transactionId].creditCard.selectedOption,customer:l}},Kt=a(ze)`
579
+ display: flex;
580
+ align-items: center;
581
+ column-gap: ${o.sp1};
582
+ `,Jt=a.div`
583
+ width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
584
+ display: flex;
585
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
586
+ `,Pc=a.div`
587
+ display: flex;
588
+ flex-direction: column;
589
+ box-sizing: border-box;
590
+ position: relative;
591
+ background: ${e=>e.theme.colors.grey5};
592
+ border: 1px solid
593
+ ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
594
+ color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
595
+ &:hover {
596
+ border: 1px solid ${e=>e.theme.colors.primary};
597
+ color: ${e=>e.theme.colors.primary};
598
+ }
599
+ box-shadow: ${e=>e.theme.colors.elevation1};
600
+ border-radius: ${o.sp2};
601
+ `,_c=a.div`
602
+ display: flex;
603
+ flex-direction: row;
604
+ align-items: center;
605
+ cursor: pointer;
606
+ padding: ${o.sp3} ${o.sp4};
607
+ column-gap: ${o.sp2};
608
+
609
+ border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
610
+ `,Nc=a.div`
611
+ padding: ${o.sp2} ${o.sp4};
612
+ display: flex;
613
+ flex-direction: column;
614
+ row-gap: ${o.sp2};
615
+ `,Vc=a.div`
616
+ top: ${o.sp0};
617
+ left: ${o.sp0};
618
+ box-sizing: border-box;
619
+ `,Hc=a.div`
620
+ height: calc(100vh - 350px);
621
+ max-width: 99.9%;
622
+ padding: ${o.sp0};
623
+ `,Uc=a.div``,Wc=a.div`
624
+ position: relative;
625
+ width: auto;
626
+ height: 100%;
627
+ display: flex;
628
+ flex-direction: column;
629
+ row-gap: ${o.sp3};
630
+ `,qc=a.div`
631
+ display: flex;
632
+ flex-direction: row;
633
+ align-items: center;
634
+ justify-content: space-between;
635
+ padding: 12px ${o.sp3};
636
+ background-color: ${e=>e.theme.colors.background};
637
+ border-radius: ${o.sp2};
638
+ `,Pn=a.div`
639
+ display: flex;
640
+ flex-direction: row;
641
+ align-items: center;
642
+ column-gap: ${o.sp3};
643
+ `,Kc=a.div`
644
+ width: 100%;
645
+ `,Jc=a.div`
646
+ display: flex;
647
+ flex-direction: row;
648
+ align-items: center;
649
+ column-gap: ${o.sp3};
650
+ `,Gc=a.div`
651
+ display: flex;
652
+ flex-direction: row;
653
+ align-items: center;
654
+ column-gap: ${o.sp6};
655
+ `,Zc=a.div`
656
+ display: flex;
657
+ flex-direction: row;
658
+ align-items: center;
659
+ column-gap: ${o.sp1};
660
+ `,Pt=a(Dn)`
661
+ width: ${o.sp3};
662
+ height: ${o.sp3};
663
+ `,Xo=a(nr)`
664
+ width: ${o.sp3};
665
+ height: ${o.sp3};
666
+ color: ${e=>e.theme.colors.hero};
667
+ `,Yc=a.div`
668
+ display: flex;
669
+ flex-direction: column;
670
+ row-gap: ${o.sp3};
671
+ padding: ${o.sp0} 12px;
672
+ `,Xc=a(ze)`
673
+ color: ${e=>e.theme.colors.primary};
674
+
675
+ .matched-text {
676
+ font-weight: ${po.bold};
677
+ }
678
+ `,Qc=a.div`
679
+ display: flex;
680
+ align-items: center;
681
+ column-gap: ${o.sp2};
682
+ `,ed=a.div`
683
+ display: flex;
684
+ flex-direction: column;
685
+ row-gap: ${o.sp2};
686
+ `,td=a.div`
687
+ display: flex;
688
+ flex-direction: row;
689
+ align-items: center;
690
+ justify-content: space-between;
691
+ padding-bottom: ${o.sp2};
692
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
693
+ `,nd=a(ze)`
694
+ color: ${e=>e.theme.colors.hero};
695
+ `,od=a.div`
696
+ height: 100%;
697
+ display: flex;
698
+ justify-content: center;
699
+ align-items: center;
700
+ `,id=a.div`
701
+ border: 1px solid ${e=>e.theme.colors.grey2};
702
+ padding: ${o.sp0} ${o.sp1};
703
+ border-radius: ${o.sp1};
704
+ `,sd=a(gt)`
705
+ color: ${e=>e.theme.colors.hero};
706
+ `,ad=a.div`
707
+ display: flex;
708
+ align-items: center;
709
+ column-gap: 20px;
710
+ cursor: pointer;
711
+ `,rd=a.div`
712
+ text-align: center;
713
+ padding: ${o.sp1} ${o.sp0};
714
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
715
+ `,ld=a(gt)`
716
+ color: ${e=>e.theme.colors.hero};
717
+ `,As=a(un)`
718
+ width: ${o.sp3};
719
+ height: ${o.sp3};
720
+ margin-right: ${o.sp1};
721
+ path {
722
+ stroke-width: 2;
723
+ }
724
+ `,cd=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:d,currentFooterFormId:c,entitySearchAutoCompleteActions:h,onUpdateReconcileTabLocalData:p,setCurrentFooterFormId:i,onReconTabColumnSortConfigChanged:l,updateReviewTabLocalData:r,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:y})=>{const{accountReconciliationsByAccountID:C,reconciliationTabsState:{reconcile:{uiState:{sortKey:S,sortOrder:w}}},selectedReconAccount:I}=e,f=C[d],{transactionFetchState:$}=I??{};return $?.fetchState==="In-Progress"||$?.fetchState==="Not-Started"?t.jsxs(Qo,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(dd,{children:Ct.map(R=>t.jsx(Rt,{width:R.loaderWidth,height:18},R.key))}),t.jsxs(hd,{children:[...Array(3).fill(0).map((R,T)=>t.jsx(ud,{children:Ct.map(F=>t.jsx(Rt,{width:F.loaderWidth,height:g[4]},F.key))},`${T}_${R}`))]})]}):t.jsx(Qo,{children:e.selectedTab==="reconcile"?t.jsx(xc,{selectedAccountId:d,currentFooterFormId:c,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:u,sortConfig:{sortKey:S,sortOrder:w},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:f?.accountReconEntity.transactionsToReconcile}):t.jsx(Fc,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[d]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[d].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:r,entitySearchAutoCompleteActions:h,onColumnSortConfigChanged:m,onSaveReconciliation:u,onSaveReconciliationReview:x,onReconMatchedTransactionClick:y,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:d,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Qo=a.div`
725
+ width: 100%;
726
+ height: 100%;
727
+ `,dd=a.div`
728
+ display: flex;
729
+ justify-content: space-between;
730
+ padding: ${o.sp3} ${o.sp4};
731
+ column-gap: ${o.sp6};
732
+ `,ud=a.div`
733
+ display: flex;
734
+ justify-content: space-between;
735
+ padding: ${o.sp3} ${o.sp4};
736
+ background-color: ${e=>e.theme.colors.grey5};
737
+ border-radius: ${o.sp2};
738
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
739
+ box-shadow: ${e=>e.theme.colors.elevation1};
740
+ column-gap: ${o.sp6};
741
+ `,hd=a.div`
742
+ display: flex;
743
+ gap: ${o.sp3};
744
+ flex-direction: column;
745
+ `;function pd({title:e,config:n,nodeId:d}){return{children:[],id:d??mt("loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:n}}}function md({account:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=mt("ac_group_report",[],d);return{children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"ac_group_report",title:d,data:e,numOfBalances:n},config:h}}}function gd({title:e,section:n,config:d,numOfBalances:c,nodeId:h}){return{children:[],id:h??mt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:c},config:d}}}function ei({section:e,allAccountReconciliations:n,title:d,subTitle:c,isLastNode:h,isTitleRowRequired:p,config:i}){const l=mt("section",[],d),r={children:[],id:l,isLastNode:h,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:0},config:i}};if(p){const u=mt("title_string_only",[],d),x={children:[],id:u,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:d,data:e,numOfBalances:0},config:i}};r.children.push(x)}const m=gd({title:c,section:e,config:i,numOfBalances:0});return r.children.push(m),e.accountIDs.forEach((u,x)=>{const y=n[u],C=md({account:y,numOfBalances:0,title:y.accountReconEntity.account.accountName,isLastNode:x===e.accountIDs.length-1,config:i});r.children.push(C)}),r}function Es({config:e,accountReconForSection:n,nodeId:d}){return{children:[],id:d??mt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}const xd=(e,n,d,c,h=!0)=>{const p=Es({config:n,accountReconForSection:e.accountReconciliationBySectionID.assets}),i=[];i.push(p);const l=Array.isArray(d[c])?d[c]:[],{expenseAutomation:{accountRecon:{reconciliation:r}},common:{loading:m}}=je.getLocalizedStrings(),u=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",x=y=>y.filter(C=>!l.includes(C));if(u)[...Array(3)].forEach((y,C)=>{i.push(pd({title:`${C}+${m}`,config:n}))});else{const y=x(e.accountReconciliationBySectionID.assets.accountIDs),C=ei({section:{...e.accountReconciliationBySectionID.assets,accountIDs:y},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.assets.title,subTitle:r.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(i.push(C),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const S=x(e.accountReconciliationBySectionID.liabilities.accountIDs),w=ei({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:S},allAccountReconciliations:e.accountReconciliationsByAccountID,title:r.headers.section.liabilities.title,subTitle:r.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});i.push(w)}}return{config:n,headerNodes:h?[p]:[],contentNodes:i}};function fd(e,n,d,c=!1){Object.assign(e.config,d);const h=Es({config:d,accountReconForSection:n.accountReconciliationBySectionID.assets});return{config:d,headerNodes:c?[h]:[],contentNodes:[h,...e.contentNodes.slice(1)]}}const co={wrapperPadding:new X(g[2],g[2],g[2],g[8]),contentPaddingLeft:new X(g[2],g[2],g[2],g[2]),contentPaddingRight:new X(g[2],g[2],g[2],g[2])},yd=a.div`
746
+ display: flex;
747
+ height: 100%;
748
+ width: 100%;
749
+ justify-content: center;
750
+ align-items: center;
751
+ `,Cd=a.div`
752
+ display: flex;
753
+ height: 100%;
754
+ min-height: 100%;
755
+ flex: 1 1 auto;
756
+ width: 100%;
757
+ justify-content: center;
758
+ padding-left: ${e=>co.wrapperPadding.valuePx(e.windowSize)};
759
+ background-color: ${e=>e.theme.colors.grey4};
760
+ `,wd=a.div`
761
+ width: 100%;
762
+ height: 100%;
763
+ `,{common:bd}=je.getLocalizedStrings();function vd({reconciliation:e,companyId:n,onScroll:d,onReload:c,onReviewClicked:h,setOpenDrawerClicked:p,onFetchLinkTokenClick:i,onEstablishConnectionClick:l,onAddStatementClick:r}){const[m,u]=s.useState(void 0),[x,y]=s.useState(void 0),C=e.plaidConnectionDetails.link_account_no_microdeposit,S=e.plaidConnectionDetails.update_account,w=x==="update_account"?S:C,[I,f]=s.useState(w.linkToken??null),[$,R]=s.useState(!1),{useDynamicConfig:T}=es(),{configValue:F}=T(ts.accountReconGLAccountsConfig),v=s.useCallback(_=>{u(_),y("link_account_no_microdeposit")},[]),k=s.useCallback(_=>{const E=M.current.accountReconciliationsByAccountID[_]?.paymentAccountId;u(_),y("update_account"),i("update_account",E)},[]),A=s.useCallback(_=>{p(_)},[]),L=s.useRef(m),N=s.useRef(x),M=s.useRef(e);s.useEffect(()=>{L.current=m},[m]),s.useEffect(()=>{N.current=x},[x]),s.useEffect(()=>{M.current=e},[e]);const K=s.useCallback(_=>{l(_,L.current??"",N.current),u(void 0),y(void 0),R(!1)},[l]),B=s.useCallback((_,E)=>{_!=null&&console.log("Plaid Connection Error",_,E),u(void 0),y(void 0),R(!1)},[]),{open:V,ready:J}=Aa({token:I,onSuccess:K,onExit:B});s.useEffect(()=>{(q.zeniDate(new Date().toISOString()).isAfter(w.expiration)||w.linkToken==null)&&w.fetchStatus.fetchState==="Not-Started"&&i("link_account_no_microdeposit")},[w.fetchStatus.fetchState]),s.useEffect(()=>{!$&&x!=null&&w.linkToken===I&&w.fetchStatus.fetchState==="Completed"&&J&&R(!0)},[J,I,w.fetchStatus.fetchState,w.linkToken,x,$]),s.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==I&&f(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,I]),s.useEffect(()=>{$&&V()},[$,V]);const[G,O]=s.useState(void 0),[ie,ye]=s.useState(void 0),U=q.zeniDate("2025-03-31"),he=1,Ce="account_reconciliation",b=Se(),P=vt(),W=!0;return s.useEffect(()=>{const _={reportId:Ce,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:U,firstMonthOfFY:he,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:h,onConnectClicked:v,onReconnectClicked:k,onOpenDrawerClicked:A,onStatementAddClicked:r}};if(G==null||!ns(ie,e)){const E=xd(e,_,F,n,W);ye(e),O(E)}else{const E=fd(G,e,_,W);O(E)}},[e]),e.fetchStatus.fetchState==="Error"?t.jsx(yd,{children:t.jsx(Ea,{onReload:c,message:bd.errorMessage.somethingWentWrong})}):t.jsx(Cd,{windowSize:b,children:G!=null?t.jsx(wd,{windowSize:b,children:t.jsx(ys,{backgroundColor:new xo(P.colors.grey4),rootNodes:G,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:W,isStickyName:W},treeNodePadding:{left:co.contentPaddingLeft.value(b),right:co.contentPaddingRight.value(b)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:d})}):null})}function Sd({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:d,reconciliation:c,companyId:h,onReconTabColumnSortConfigChanged:p,updateReconReviewTabLocalData:i,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:r,onReloadReconciliationListPage:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:y,onAddStatementClick:C,onReconReviewTabColumnSortConfigChanged:S,onSaveReconciliation:w,onSaveReconciliationReview:I,setOpenDrawerClicked:f,onReconMatchedTransactionClick:$,onReconListPageScroll:R}){return c.selectedAccountId==null?t.jsx(vd,{companyId:h,onScroll:R,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:y,setOpenDrawerClicked:f,onAddStatementClick:C}):t.jsx(cd,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:p,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:S,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:w,onSaveReconciliationReview:I,onReconMatchedTransactionClick:$})}function jd({accountAndClassReport:e,numOfBalances:n,title:d,isLastNode:c,isFirstNode:h,config:p,parentNodeIDs:i,ancestorMetadata:l}){let r="";return e.accountBase&&e.classBase?r=`${e.accountBase.accountId}_${e.classBase.classId}`:e.accountBase?r=e.accountBase.accountId:e.classBase&&(r=e.classBase.classId),{children:[],id:mt("flux_vendor_account_class_row",i,r),isLastNode:c,isFirstNode:h,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:d,data:e,metadata:l,numOfBalances:n},config:p}}}function kd({vendorView:e,numOfBalances:n,title:d,isLastNode:c,config:h,parentNodeIDs:p}){const i=mt("flux_vendor_row",p,e.vendor.id),l={children:[],id:i,isLastNode:c,reportElementData:{element:{kind:"flux_vendor_row",title:d,data:e,numOfBalances:n},config:h}},r=e.vendorAccountsAndClasses;return l.children=r.map((m,u)=>jd({accountAndClassReport:m,numOfBalances:n,title:m.accountBase?.accountName??"",config:h,isLastNode:u===r.length-1,isFirstNode:u===0,parentNodeIDs:[...p,i],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:r.length>1,hasChildren:!1,isLastNode:u===r.length-1,isFirstNode:u===0,name:m.accountBase?.accountName},isVendorLastChild:c,vendorId:e.vendor.id}})),l}function Id({section:e,numOfBalances:n,title:d,isLastNode:c,config:h}){const p=e.sectionId,i={children:[],id:p,isLastNode:c,reportElementData:{element:{kind:"section",title:d,data:e,numOfBalances:n,sectionType:e.sectionId},config:h}},l=(e.vendors??[]).map((r,m)=>kd({vendorView:r,numOfBalances:n,title:r.vendor.name,isLastNode:m===e.vendors.length-1,config:h,parentNodeIDs:[p]}));return i.children.push(...l),i}function $d({title:e,balances:n,config:d,nodeId:c}){return{children:[],id:c??mt("headers_loading_in_progress",[],e),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:n,numOfBalances:n.length},config:d}}}function Ld({title:e,data:n,isLastNode:d,config:c,numOfBalances:h}){const p=mt("total",[],e);return{children:[],id:p,isLastNode:d,reportElementData:{element:{kind:"total",title:e,data:n,numOfBalances:h},config:c}}}const{common:wn,expenseAutomation:{fluxAnalysis:Td}}=je.getLocalizedStrings(),Ad=(e,n,d=!0)=>{const c=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,h=e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],p=Cs({balances:h,config:n}),i=[],l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,r=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(l===!0)i.push($d({title:`${wn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{i.push(Fo({title:`${u}+${wn.loading}`,balances:h,config:n}))});else{if(i.push(p),["generalExpense","reimbursement"].forEach(m=>{const u=e.sections[m];if(u.vendors.length>0||u.fetchStatus.fetchState==="Completed"){const x=en(u.balancesByMonth);i.push(Id({section:{sectionId:m,reportId:"flux_analysis_operating_expense",balances:x,vendors:u.vendors,varianceAmount:u.varianceAmount,variancePercentage:u.variancePercentage,currency:e.currency},numOfBalances:c,title:Ed(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?en(e.totalBalancesAndVariance.balancesByMonth):[],u=Ld({title:wn.texts.total,data:{balances:m,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:c});i.push(u)}r===!0&&[...Array(1)].forEach((m,u)=>{i.push(Fo({title:`${u}+${wn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:d&&!l?[p]:[],contentNodes:i}},Ed=e=>Td.sectionTitle[e];function Rd(e,n,d,c=!0){Object.assign(e.config,n);const h=Dd(d),p=Cs({balances:h,config:n});return{config:n,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Dd=e=>e.sections.generalExpense.balancesByMonth?en(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?en(e.sections.reimbursement.balancesByMonth):[],uo={contentPaddingLeft:new X(g[0],g[0],g[0]),contentPaddingRight:new X(g[3],g[3],g[8]),wrapperPadding:new X(g[3],g[3],g[8])},Od=a.div`
764
+ display: flex;
765
+ position: sticky;
766
+ width: 100%;
767
+ justify-content: center;
768
+ padding-top: ${e=>uo.wrapperPadding.valuePx(e.windowSize)};
769
+ padding-left: 20px;
770
+ background-color: ${e=>e.theme.colors.grey4};
771
+ `,Fd=a.div`
772
+ width: 100%;
773
+ height: calc(100vh - ${o.sp11});
774
+ `,Md=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:d,updateOperatingExpensesIdsForReview:c,updateSectionIdsForReview:h,onSortOrderChanged:p,updateNodeCollapsableStatus:i,fetchReimbursementView:l,fetchGeneralExpenseView:r}=e,m=Se(),u=vt(),[x,y]=s.useState(null),[C,S]=s.useState(null),[w,I]=s.useState(null),f=q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),T=Ao(f),F=Ao(n.refreshStatus.fetchState),v=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},k=()=>Object.keys(n.uiState.collapsableStatus).reduce((B,V)=>(B[V]=n.uiState.collapsableStatus[V],B),{}),A=s.useCallback(B=>{const V=!(n.uiState.collapsableStatus[B]??!0);i({...n.uiState.collapsableStatus,[B]:V})},[n.uiState.collapsableStatus,i]),L=s.useCallback((B,V)=>{let J=n.reviewOperatingExpensesIds;const G=[];let O=n.selectedSectionIds;const ie=n.sections[B].vendors;G.push(...ie.map(U=>U.fluxAnalysisEntityId));let ye=fs-J.length;V?(G.forEach(U=>{!J.includes(U)&&ye>0&&(J=[...J,U],ye--)}),O=[...O,B]):(J=J.filter(U=>!G.includes(U)),O=O.filter(U=>U!==B)),c(J),h(O)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,h]),N=s.useCallback(B=>{const V=n.uiState.collapsableStatus[B]===!1;B==="generalExpense"&&!V&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),A(B)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,A]),M=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,K=B=>B<M;return s.useEffect(()=>{const B={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:R,onSectionRowClick:N,updateNodeCollapsableStatus:A,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:L,onSortOrderChanged:p}};if(x==null||!ns(C,n)){const V=Ad(n,B,!0);S(n),y(V)}else{const V=Rd(x,B,n,!0);y(V)}},[n,C,d,L,N,p,A,c]),t.jsx(Od,{windowSize:m,children:t.jsx(Fd,{children:x?t.jsx(ys,{backgroundColor:new xo(u.colors.grey4),rootNodes:x,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:uo.contentPaddingLeft.value(m),right:uo.contentPaddingRight.value(m)},nodeOpenStatus:k(),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:K,itemCount:M,loadMoreItems:v},variableNodeHeightTree:{prevFetchState:T??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:$,setIsSortApplied:R,reducedFetchState:q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:F??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:w,setHoveredParentId:I}}):null})})},zd="expenseAutomationFluxPage",{reports:{common:Bd}}=je.getLocalizedStrings(),Pd=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:d,markAsReview:c,onReloadPage:h,setCurrentFooterFormId:p,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:l,onUpdateFluxAnalysisUIState:r,redirectToVendorDetailPage:m,fetchFluxViewOnScroll:u,onFetchReimbursementView:x})=>{const{fetchStatus:y,reviewOperatingExpensesIds:C,uiState:S}=n,w=s.useRef(null),I=s.useRef(!1),f=Ht({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:_d(C)}),$=Se();s.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),s.useEffect(()=>{I.current&&w?.current?.scrollLeft!=null&&S.scrollPosition?.scrollLeft!==w.current.scrollLeft&&S.scrollPosition!=null&&r({scrollPosition:{scrollTop:S.scrollPosition?.scrollTop,scrollLeft:w.current.scrollLeft}})},[S.scrollPosition?.scrollLeft,w.current?.scrollLeft,S.scrollPosition,r]),s.useEffect(()=>{p(C.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[C,p]);const R=k=>{m(k)},T=k=>{u(e,k)},F=(k,A)=>{r({sortOrder:k,sortKey:A}),d(),x(e,null,!1)},v=()=>{const k=Rs(n.sections,C);c(C,k===!0?"review":"unreview",e,!0)};if(y.fetchState==="Error")return t.jsxs(Vd,{children:[t.jsx(Hd,{onClick:h,children:t.jsx(mo,{})}),t.jsx(Ud,{children:Bd.failed})]});{const k=L=>{r({collapsableStatus:L})},A=L=>{x(e,L,!0)};return t.jsx(Ut,{...f,children:t.jsx("form",{id:aa(zd),onSubmit:f.handleSubmit(v),style:{height:"100%",width:"100%"},children:t.jsx(Nd,{windowSize:$,children:t.jsx(Md,{fluxView:n,handleRedirectToVendorDetailPage:R,onSortOrderChanged:F,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:k,fetchReimbursementView:A,updateSectionIdsForReview:l,fetchGeneralExpenseView:T,reportId:"flux_analysis_operating_expense"})})})})}},Rs=(e,n)=>{const d=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(h=>h.status==="Pending Review");let c;return d.forEach(h=>{n.includes(h.fluxAnalysisEntityId)&&(c=!0)}),c},_d=e=>({fluxAnalysisRowIds:e}),Nd=a.div`
775
+ display: flex;
776
+ flex: 1 1 auto;
777
+ min-height: 100%;
778
+ flex-direction: column;
779
+ background-color: ${e=>e.theme.colors.grey4};
780
+ padding: ${o.sp0};
781
+ gap: 2px;
782
+ height: 100%;
783
+ .flux-vendor-name-sticky,
784
+ .flux-vendor-header-sticky,
785
+ .flux-section-name-container,
786
+ .flux-class-and-account-value-container,
787
+ .flux-vendor-name-container,
788
+ .flux-total-row {
789
+ border-right: 1px solid transparent;
790
+ }
791
+ &:hover {
792
+ .flux-vendor-name-sticky,
793
+ .flux-vendor-header-sticky,
794
+ .flux-section-name-container,
795
+ .flux-class-and-account-value-container,
796
+ .flux-vendor-name-container,
797
+ .flux-total-row {
798
+ border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
799
+ }
800
+ }
801
+ `,Vd=a.div`
802
+ display: flex;
803
+ width: 100%;
804
+ height: 100vh;
805
+ flex-direction: column;
806
+ justify-content: center;
807
+ align-items: center;
808
+ `,Hd=a.div`
809
+ height: 96px;
810
+ width: 96px;
811
+ background: ${e=>e.theme.colors.background};
812
+ border-radius: 50%;
813
+ cursor: pointer;
814
+ & svg {
815
+ margin: ${o.sp5};
816
+ color: ${e=>e.theme.colors.grey1};
817
+ }
818
+ &:hover {
819
+ & svg {
820
+ color: ${e=>e.theme.colors.primary};
821
+ }
822
+ }
823
+ `,Ud=a(St)`
824
+ margin-top: ${o.sp3};
825
+ color: ${e=>e.theme.colors.hero};
826
+ `,Wd="expenseAutomationJEAccountSettingsPage",Ds="vendorsAccountSection",qd=e=>`${e}_form`;function Kd({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:d,setIsJeAccountSettingsOpened:c,onJeAccountSettingsChange:h,setResetJeAccountSettingsForm:p,setCurrentFooterFormId:i}){const l=e.prepaidExpensesRecommendations,r=e.fixedAssetsRecommendations,m=e.accruedExpensesRecommendations,u=s.useMemo(()=>Et(e.prepaidExpensesAccountHierarchy,l,"Accounts"),[e.prepaidExpensesAccountHierarchy,l]),x=s.useMemo(()=>Et(e.fixedAssetsAccountHierarchy,r,"Accounts"),[e.fixedAssetsAccountHierarchy,r]),y=s.useMemo(()=>Et(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),C=s.useMemo(()=>Gd(e,u,x,y),[e,u,x,y]),S=Ht({mode:"all",reValidateMode:"onBlur",defaultValues:C,values:C,resetOptions:{keepDefaultValues:!0}}),w=S.handleSubmit(f=>{d(f)}),I=async f=>{h(f)};return s.useEffect(()=>{const f=S.watch($=>{$!=null&&hn(()=>I($))});return()=>{f.unsubscribe()}}),s.useEffect(()=>(p(()=>S.reset),c(!0),()=>{i("expenseAutomationPage"),c(!1)}),[]),s.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:f,previousPrepaidExpensesAccount:$,selectedFixedAssetsAccountIds:R,previousFixedAssetsAccount:T,selectedAccruedExpensesAccountIds:F,previousAccruedExpensesAccount:v}=e.accountSettingsLocalData,k=On(f,$)||On(R,T)||On(F,v);k===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):k===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(Jd,{children:t.jsx(Ut,{...S,children:t.jsx("form",{id:qd(Wd),onSubmit:w,children:t.jsx(ar,{showTitle:!1,sectionId:Ds,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:e.accruedExpensesAccountHierarchy,accruedExpensesAccountList:e.accruedExpensesAccountList,accruedExpensesRecommendations:e.accruedExpensesRecommendations,fixedAssetsAccountHierarchy:e.fixedAssetsAccountHierarchy,fixedAssetsAccountList:e.fixedAssetsAccountList,fixedAssetsRecommendations:e.fixedAssetsRecommendations,prepaidExpensesAccountHierarchy:e.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:e.prepaidExpensesAccountList,prepaidExpensesRecommendations:e.prepaidExpensesRecommendations,selectedAccruedExpensesAccountIds:e.accountSettingsLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:e.accountSettingsLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:e.accountSettingsLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:!1})})})})}const Jd=a.div`
827
+ padding-top: ${o.sp3};
828
+ display: flex;
829
+ align-items: center;
830
+ min-height: 100%;
831
+ flex-direction: column;
832
+ width: 100%;
833
+ background-color: ${e=>e.theme.colors.grey4};
834
+ `,Gd=(e,n,d,c)=>{const h=e.prepaidExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(u.accountId)),p=e.fixedAssetsAccountList.filter(u=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(u.accountId)),i=e.accruedExpensesAccountList.filter(u=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(u.accountId)),l=h.map(u=>u.qboId).filter(u=>u!=null),r=p.map(u=>u.qboId).filter(u=>u!=null),m=i.map(u=>u.qboId).filter(u=>u!=null);return{[Ds]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:$t},common:{currency:bn,review:Zd,ignore:Yd,strings:{hyphen:ft},texts:vn},dateFormat:Xd,timeframe:{month:ti}}=je.getLocalizedStrings(),Qd=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:d,jeScheduleClickHandler:c,onReviewClickHandler:h})=>t.jsxs(ko,{onClick:p=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&c(p,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:vn.vendor}),t.jsxs(ae,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(rs,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{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(ce,{className:"highlight",children:e.vendor.name??ft})})]})]}),t.jsxs(Y,{children:[t.jsx(ne,{children:$t.scheduleHeaders.scheduleCategory}),t.jsx(ae,{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(ce,{className:"highlight",children:e.baseTransaction.account.accountName??ft})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:$t.scheduleHeaders.startMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:e.startDate?.format(Xd.visual.MMMCommaYYYYFormat)??ft})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:$t.scheduleHeaders.period}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ti.slice(0,-1):ti}`:ft})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(ne,{children:vn.totalAmount}),t.jsx(ae,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Ke("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft})})})]})]}),t.jsxs(So,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:vn.category}),t.jsx(ae,{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(ce,{className:"highlight",children:e.jeDebit.account?.accountName??ft})})})]}),t.jsxs(Y,{children:[t.jsx(ne,{children:vn.classText}),t.jsx(ae,{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(ce,{className:"highlight",children:e.jeDebit.accountingClass?.className??ft})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:$t.scheduleHeaders.type}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(js,{children:$t.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:$t.scheduleHeaders.accumulatedCategory}),t.jsx(ae,{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(ce,{className:"highlight",children:e.jeCredit.account?.accountName??ft})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(dn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&h(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":z("je-schedule-draft-component-review-button",e.jeScheduleId),label:Zd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:lo}}),t.jsx(dn,{"data-testid":z("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:Yd,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&d(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:lo}})]})]}),t.jsxs(Sc,{children:[t.jsx(eu,{}),t.jsx(tu,{children:$t.aiAccountant}),t.jsx(nu,{children:$t.zeniGPTText})]})]}),eu=a(un)`
835
+ height: ${o.sp3};
836
+ width: ${o.sp3};
837
+ margin-right: ${o.sp1};
838
+ path {
839
+ stroke-width: 2;
840
+ }
841
+ `,tu=a(os)`
842
+ color: ${e=>e.theme.colors.brandColorSapphire};
843
+ `,nu=a(ze)`
844
+ color: ${e=>e.theme.colors.primary};
845
+ `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ni}}},expenseAutomation:{jeSchedules:Pe},common:{currency:dt,retry:ou,strings:{hyphen:We,empty:oi},texts:Gt},dateFormat:ii}=je.getLocalizedStrings(),{common:iu,timeframe:{month:si}}=je.getLocalizedStrings(),tt="jeSchedulePage",ai=e=>`${e}_form`,Lo=(e,n)=>`${e}.${n}`,ri=Lo(tt,"vendor"),li=Lo(tt,"scheduleExpenseCategory"),ci=Lo(tt,"accumulatedDepreciationCategory"),su=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:d,allClassList:c,allDepAccountGroupedOptions:h,allDepAccountList:p,draft:i,localData:l,postStatus:r,uncategorizedAccounts:m,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:x,jeScheduleClickHandler:y,onFormDataChange:C,onPostJESchedule:S})=>{const{updatedAccumulatedDepreciationCategoryID:w,updatedCategoryId:I,updatedVendor:f}=l,$={vendor_deleted:"updatedVendor",debit_category_deleted:"updatedCategoryId",credit_category_deleted:"updatedAccumulatedDepreciationCategoryID",qbo_authorization_error:"jeScheduleID",qbo_book_close_date_error:"jeScheduleID",qbo_error:"jeScheduleID",qbo_invalid_company_status_error:"jeScheduleID"},R=s.useRef(),T=Ht({mode:"all",reValidateMode:"onChange",defaultValues:di(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:di(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),F={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},v={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},k=(i?.scheduledJournalEntry.error??[]).every(E=>{const H=$[E];return!(l!=null&&H&&(H==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||H==="updatedCategoryId"&&l.updatedCategoryId==null||H==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))}),A=async(E,H)=>{if(E!=null){const ee=H[tt],{scheduledJournalEntryID:me,vendor:D}=ee;if(E.includes("vendor")){const re=D?.defaultOptions.map(Q=>Q.value);if(D?.selectedOption!=null&&re?.includes(D.selectedOption)!==!0){const Q=x.entityAutoCompleteView.vendor.find(te=>te.id===D.selectedOption);Q!=null&&T.setValue(`${tt}.vendor.defaultOptions`,[{label:Q.name??iu.strings.empty,value:Q.id}])}else D?.selectedOption==null&&D?.defaultOptions.length!==0&&T.setValue(`${tt}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(me,{...ee,vendor:D})}};s.useEffect(()=>{const E=T.watch((H,{name:ee})=>{ee!=null&&H!=null&&hn(()=>A(ee,H))});return()=>{E.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(ls(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const L=T.handleSubmit(()=>{S(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),N=E=>n.filter(H=>H.qboId===E)[0]?.qboId,M=E=>p.filter(H=>H.qboId===E)[0]?.qboId,K=E=>[m.expense?.qboId,m.income?.qboId].includes(E),B=T.watch("jeSchedulePage.vendor"),V=(E,H)=>{u.onAutoCompleteInputChange?.(E,"vendor"),R.current=H},J=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,G=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,O=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,ie=i.vendor.name.split("(deleted)")[0]?.toString(),ye=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??oi,U=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??oi,[he,Ce]=s.useState(G===!0&&I==null),[b,P]=s.useState(O===!0&&w==null),[W,_]=s.useState(J&&(f?.id==null||f?.id==""));return s.useEffect(()=>{he===!1&&l.updatedCategoryId==null&&T.setFocus(li),b===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&T.setFocus(ci),W===!1&&l.updatedVendor?.id==null&&T.setFocus(ri)},[he,b,W,l,T]),t.jsx(Ut,{...T,children:t.jsx("form",{style:{width:"100%"},id:ai(`${tt}_${i.jeScheduleId}`),onSubmit:L,children:t.jsx(ko,{showBorder:k,onClick:E=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&y(E,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":z("je-schedule-resolve-component-schedule",`${tt}_${i.jeScheduleId}`),children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[J===!0?t.jsx(Y,{style:{width:ue.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:J,forceHoverEffect:W===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.vendor,t.jsx(fe,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingVendor.replace("_deleted_vendor_",ie)}),children:t.jsx(Nn,{})})]}),t.jsx(ae,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:W===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),_(!1)},"data-testid":z("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(_n,{}),ni]}):t.jsx(ro,{name:ri,placeholder:ni,valueToId:E=>E,defaultValue:{selectedOption:B?.selectedOption,defaultOptions:B?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:V})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:Gt.vendor}),t.jsx(ae,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(rs,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{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(ce,{className:"highlight",children:i.vendor.name??We})})]})})]}),t.jsxs(Y,{children:[t.jsx(ne,{children:Pe.scheduleHeaders.scheduleCategory}),t.jsx(ae,{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(ce,{className:"highlight",children:i.baseTransaction.account.accountName??We})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:Pe.scheduleHeaders.startMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.startDate?.format(ii.visual.MMMCommaYYYYFormat)??We})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:Pe.scheduleHeaders.period}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?si.slice(0,-1):si}`:We})})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(ne,{children:Gt.totalAmount}),t.jsx(ae,{children:t.jsx(fe,{display:"block",placement:"bottom",title:t.jsx(qe,{children:Ke("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We})})})]})]}),t.jsxs(So,{children:[G===!0?t.jsx(Y,{showHoverEffect:G===!0,forceHoverEffect:l?.updatedCategoryId==null&&he===!1,style:{padding:"unset",justifyContent:"center",width:ue.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.category,G===!0?t.jsx(fe,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:Pe.tooltipText.missingCategory.replace("_deleted_category_",ye)}),children:t.jsx(Nn,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:G===!0?-2:0},children:G===!0?t.jsx(t.Fragment,{children:he===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),Ce(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,name:li,placeholder:Pe.addCategory,valueToId:E=>N(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:K,customStyleConfig:F})}):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(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.category}),t.jsx(ae,{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(ce,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]}),t.jsxs(Y,{children:[t.jsx(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.classText}),t.jsx(ae,{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(ce,{className:"highlight",children:i.jeDebit.accountingClass?.className??We})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:Pe.scheduleHeaders.type}),t.jsx(ae,{className:"test",children:t.jsx(ce,{className:"highlight",style:{width:"unset"},children:t.jsx(js,{children:Pe.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:O===!0?t.jsx(Y,{style:{width:ue.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:O,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&b===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(ne,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Pe.scheduleHeaders.accumulatedCategory,O===!0?t.jsx(fe,{display:"flex",placement:"top-end",title:t.jsx(kn,{children:Pe.tooltipText.missingDepCategory.replace("_deleted_dep_category_",U)}),children:t.jsx(Nn,{})}):null]}),t.jsx(ae,{className:"item-value-container",style:{marginLeft:O===!0?-2:0},children:O===!0?t.jsx(t.Fragment,{children:b===!0?t.jsxs(ce,{onClick:E=>{E.stopPropagation(),P(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":z("je-schedule-resolve-component-add-depreciation-category-button",`${tt}_${i.jeScheduleId}`),children:[t.jsx(_n,{}),Pe.addDepCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:ci,placeholder:Pe.addDepCategory,valueToId:E=>M(E),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:v,disableCurrentOption:K})}):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(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})})]})}):t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(ne,{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(ce,{className:"highlight",children:i.jeCredit.account?.accountName??We})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]}),t.jsxs(bc,{children:[t.jsx(Y,{style:{padding:"unset",width:ue.COLUMN_ONE},children:t.jsxs(vc,{children:[t.jsx(ne,{children:Pe.scheduleHeaders.jePostingDate}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(ii.visual.MMMDCommaYYFormat)??We})})]})}),t.jsxs(Y,{children:[t.jsx(ne,{children:Pe.scheduleHeaders.balance}),t.jsx(ae,{children:t.jsx(fe,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(qe,{children:Ke("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:Pe.scheduleHeaders.months}),t.jsx(ae,{children:t.jsxs(ce,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Y,{style:{width:ue.COLUMN_FOUR}}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(ne,{children:Pe.scheduleHeaders.amountForMonth}),t.jsx(ae,{children:t.jsx(ce,{className:"highlight",children:Ke("0,0.[00]",q.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})]})]})]}),t.jsx(Io,{children:t.jsx(dn,{form:ai(`${tt}_${i.jeScheduleId}`),label:ou,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!k,style:{minWidth:lo}})})]})})})})},di=(e,n,d,c,h,p,i,l)=>{const r=e.updatedCategoryId,m=e.updatedVendor,u=m!=null?l.vendor.find(I=>I.zeniId===m.id):void 0,x=e.updatedAccumulatedDepreciationCategoryID,y=e.updatedClassId,C=r!=null?h.find(I=>I.accountId===r):void 0,S=x!=null?i.find(I=>I.accountId===x):void 0,w=y!=null?p.find(I=>I.classId===y):void 0;return{[tt]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:S?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:ps(l,u??m)},scheduleClass:{selectedOption:w?.classId,allOptions:d}}}},_n=a(Dn)`
846
+ width: ${o.sp3};
847
+ height: ${o.sp3};
848
+ `,Nn=a(ms)`
849
+ width: 12px;
850
+ height: 12px;
851
+ color: ${Xe.important};
852
+ `;function Os(){return t.jsx(ws,{children:t.jsxs(bs,{children:[t.jsxs(vs,{children:[t.jsx(Fe,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(ui,{})]}),t.jsxs(Ss,{children:[t.jsx(Fe,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(ui,{})]})]})})}const ui=()=>t.jsx(ko,{style:{minWidth:1088},children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:t.jsx(Fe,{width:g[10],height:14})}),t.jsxs(ae,{style:{gap:g[2]},children:[t.jsx(yo,{height:g[4],width:g[4]}),t.jsx(Fe,{height:g[4],width:g[10]})]})]}),t.jsxs(Y,{children:[t.jsx(ne,{children:t.jsx(Fe,{width:101,height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:203})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:t.jsx(Fe,{width:g[9],height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:71})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(ne,{children:t.jsx(Fe,{width:107,height:14})}),t.jsx(Fe,{height:g[4],width:68})]}),t.jsxs(Y,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(ne,{children:t.jsx(Fe,{width:73,height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:49})})]})]}),t.jsxs(So,{children:[t.jsxs(Y,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(ne,{children:t.jsx(Fe,{width:49,height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:158})})]}),t.jsxs(Y,{children:[t.jsx(ne,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:88})})]}),t.jsxs(Y,{style:{width:ue.COLUMN_THREE},children:[t.jsx(ne,{children:t.jsx(Fe,{width:36,height:14})}),t.jsx(ae,{children:t.jsx(Fe,{height:g[4],width:100})})]}),t.jsx(Y,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(Y,{style:{width:ue.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(Fe,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),Fe=a(Rt)`
853
+ border-radius: ${o.sp1};
854
+ `,{common:{create:au,resolve:ru}}=je.getLocalizedStrings();function lu({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:d,onJESchedulesFormDataChange:c,onPostJESchedule:h,ignoreRecommendedJeSchedule:p,vendorSearchAutoCompleteActions:i,setCurrentFooterFormId:l}){const r=e.draftSchedules,m=e.jeScheduleLocalDataById,u=e.postStatusById,x=e.ignoreStatusById,y=e.resolveSchedules,C=e.uncategorizedAccounts,{allAccountList:S,allClassList:w,allDepreciationAccountList:I}=e,f=Et(e.accountListNestedAccountHierarchy),$=Et(e.allDepreciationAccountListNestedAccountHierarchy),R=jn(e.classListNestedAccountHierarchy),T=(v,k,A)=>{d(v,k,A)},F=(v,k,A,L)=>{let N=v.target;for(;N;){if(N.classList.contains("item-value-container")||N.classList.contains("hover-background")||N.classList.contains("auto-complete-single-select-field__input")||N.classList.contains("auto-complete-single-select-field__option")||N.classList.contains("grouped-single-select-field__input")||N.classList.contains("grouped-single-select-field__menu"))return;N=N.parentElement}d(k,A,L)};return s.useEffect(()=>{if(y.length!==0){for(const v in m)if(Object.prototype.hasOwnProperty.call(m,v)){const{updatedAccumulatedDepreciationCategoryID:k,updatedCategoryId:A,updatedVendor:L}=m[v];if(k!=null||A!=null||L!=null&&L?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else y.length===0&&l("expenseAutomationPage")}),s.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Os,{}):r.length!==0||y.length!==0?t.jsx(ws,{children:t.jsxs(bs,{children:[r.length>0?t.jsxs(vs,{children:[t.jsxs(pi,{children:[au,t.jsx(mi,{isCircular:r.length<10,children:t.jsx(gi,{children:r.length})})]}),t.jsx(hi,{children:r.map((v,k)=>t.jsx(Qd,{ignoreStatus:x[v.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:T,jeScheduleClickHandler:F,draft:v},`${k}_${v.jeScheduleId}`))})]}):null,y.length>0?t.jsxs(Ss,{children:[t.jsxs(pi,{children:[ru,t.jsx(mi,{isCircular:y.length<10,children:t.jsx(gi,{children:y.length})})]}),t.jsx(hi,{children:y.map((v,k)=>m[v.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(su,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:F,onPostJESchedule:h,uncategorizedAccounts:C,allAccountList:S,allAccountGroupedOptions:f,allClassGroupedOptions:R,allClassList:w,allDepAccountGroupedOptions:$,allDepAccountList:I,draft:v,postStatus:u[v.scheduledJournalEntry.scheduledJournalEntryID],localData:m[v.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${k}_${v.jeScheduleTransactionKey}`))})]}):null]})}):null}const hi=a.div`
855
+ display: flex;
856
+ flex-direction: column;
857
+ gap: ${o.sp4};
858
+ min-width: 1088px;
859
+ `,pi=a(Wi)`
860
+ color: ${e=>e.theme.colors.primary};
861
+ padding: ${o.sp2} ${o.sp0};
862
+ display: flex;
863
+ align-items: center;
864
+ gap: ${o.sp1};
865
+ `,mi=a.div`
866
+ border-radius: ${o.sp12};
867
+ display: flex;
868
+ justify-content: center;
869
+ border: ${e=>`1px solid ${e.theme.colors.grey1}`};
870
+ color: ${e=>e.theme.colors.hero};
871
+ ${e=>e.isCircular?Ye`
872
+ height: ${o.sp3};
873
+ width: ${o.sp3};
874
+ padding: ${o.sp0};
875
+ `:Ye`
876
+ height: 18px;
877
+ padding: ${_a.padding};
878
+ `}
879
+ `,gi=a(Na)`
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 cu({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:d,vendorSearchAutoCompleteData:c,onJESchedulesFormDataChange:h,onPostJESchedule:p,handleJeScheduleClick:i,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,ignoreRecommendedJeSchedule:m,vendorSearchAutoCompleteActions:u,setCurrentFooterFormId:x,setIsJeAccountSettingsOpened:y}){const{jeSchedules:C}=e;return C.fetchState==="In-Progress"||C.accountSettingsView.fetchState==="In-Progress"?t.jsx(Os,{}):C.accountSettingsView.fetchState==="Completed"&&C.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&C.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(Kd,{setIsJeAccountSettingsOpened:y,setResetJeAccountSettingsForm:d,currentFooterFormId:n,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:r,accountSettings:C.accountSettingsView,setCurrentFooterFormId:x}):C.fetchState==="Completed"&&C.draftSchedules.length===0&&C.resolveSchedules.length===0?t.jsx(bt,{tab:e.currentSelectedView,title:Ue(e.currentSelectedView).allDoneText.title,subTitle:Ue(e.currentSelectedView).allDoneText.subTitle}):C.fetchState==="Completed"?t.jsx(lu,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:h,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:c}):null}const du=72,Fs=50,uu=1,hu=["receipts"],xi=e=>q.stringToUnionStrict(e,hu),{common:{texts:{vendor:pu,amount:mu,receipts:gu,category:xu,classText:fu,date:yu}}}=je.getLocalizedStrings(),Cu={key:"vendor",value:pu,sortOrder:"ascending",width:new X(18,18)},wu={key:"category",value:xu,sortOrder:"ascending",width:new X(18,18)},bu={key:"class",value:fu,sortOrder:"ascending",width:new X(18,18)},vu={key:"date",value:yu,sortOrder:"descending",width:new X(11,11)},Su={key:"receipts",value:gu,sortOrder:"descending",width:new X(6,6)},ju={key:"amount",value:mu,sortOrder:"ascending",width:new X(10,10)},ht=[Cu,wu,bu,vu,Su,ju],Vn={sortKey:"date",sortOrder:"descending"},fi={containerPaddingLeftRight:new X(g[3],g[4])},Ms=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=Se(),[h,p]=s.useState(ht);s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{xi(r.key)==null&&i(q.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return t.jsx(ku,{windowSize:c,children:h.map((r,m)=>{const u=n!=null||xi(r.key)!=null;return t.jsxs(Iu,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,style:r.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(Eu,{onClick:()=>u?null:l(r),isSortDisabled:u,children:[t.jsx(Ru,{children:r.value}),u?null:t.jsx(Lu,{sortConfig:e,headerData:r,children:t.jsx(Au,{})})]}),u?null:t.jsx(Tu,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Vn.sortKey,children:t.jsx($u,{onClick:()=>{u||i(Vn.sortKey,Vn.sortOrder)},"data-testid":z("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},ku=a.div`
888
+ top: ${o.sp0};
889
+ left: ${o.sp0};
890
+ height: ${Fs}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=>fi.containerPaddingLeftRight.valuePx(e.windowSize)};
899
+ padding-right: ${e=>fi.containerPaddingLeftRight.valuePx(e.windowSize)};
900
+ `,Iu=a.div`
901
+ color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
902
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
903
+ max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
904
+ padding-left: ${o.sp0};
905
+ left: ${o.sp0};
906
+ display: flex;
907
+ align-items: center;
908
+ gap: 6px;
909
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
910
+ position: static;
911
+ z-index: 0;
912
+ box-sizing: border-box;
913
+ `,$u=a(Rn)`
914
+ width: ${o.sp2};
915
+ height: ${o.sp2};
916
+ cursor: pointer;
917
+ `,Lu=a.div`
918
+ display: flex;
919
+ align-items: center;
920
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
921
+ `,Tu=a.div`
922
+ display: ${e=>e.isVisible?"flex":"none"};
923
+ align-items: center;
924
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
925
+ &:hover {
926
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
927
+ }
928
+ `,Au=a(En)`
929
+ width: ${o.sp2};
930
+ height: ${o.sp2};
931
+ `,Eu=a.div`
932
+ display: flex;
933
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
934
+ gap: 6px;
935
+ &:hover {
936
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
937
+ }
938
+ `,Ru=a(gt)`
939
+ display: flex;
940
+ `,{common:{strings:{underscore:zs,hyphen:Hn,empty:yi},documents:{singleFileUploadSizeErrorMessage:Du,multipleFileUploadSizeErrorMessage:Ou},snackBar:{missing_receipts_attachment:{failed:Fu}},tooltips:{addMissingReceipt:Mu}},dateFormat:zu}=je.getLocalizedStrings(),Sn={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[2],g[3])},Bu=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:d,authParams:c,selectedPeriod:h,onUploadReceiptComplete:p,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:r})=>{const m=Se(),u=s.useRef(null),x=s.useCallback(async(S,w,I,f,$)=>{l(e.id,"In-Progress"),await rr(S,w,I,f,$).then(({uploadResponse:R,errorMessage:T})=>{R!=null?R.transaction.attachments!=null&&(r(R.transaction),setTimeout(()=>p(R.transaction,h),2e3)):l(e.id,"Error",{code:500,message:Fu},T)}).catch(R=>{l(e.id,"Error",R)})},[e.id,h,r,p,l]),y=s.useCallback(S=>{if(S.target.files!=null){const w=S.target.files,I=[],f=[];for(let $=0;$<w.length;$++)I.push(w[$].name),f.push(w[$]);x(d,c,w[0],w[0].name,{id:e.id,type:e.type})}},[c,x,d,e.id,e.type]),C=s.useCallback(()=>{u.current?.click()},[u]);return t.jsx(Bs,{windowSize:m,onClick:()=>i(e.id,e.type),"data-testid":z("missing-receipts-list-row",e.id),children:ht.map((S,w)=>{const I=`${e.id}${zs}${S.key}`;switch(S.key){case"vendor":default:return t.jsx(_t,{windowSize:m,wrapperWidth:S.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsxs(In,{children:[t.jsx(as,{photoUrl:e.vendorId!=null?e.logo?.toString()??yi:yi,styles:{width:o.sp4,height:o.sp4,borderRadius:o.sp0},placeholder:{width:g[4],height:g[4]},fallbackAvatar:t.jsx(Wu,{children:t.jsx(cn,{name:e.vendorName??e.description,size:o.sp4})})}),t.jsx(nt,{text:e.vendorName??e.description,itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"}})]})})},I);case"category":case"class":{const f=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Hn,$=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Hn,R=S.key==="category"?f:$;return t.jsx(_t,{windowSize:m,wrapperWidth:S.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(In,{children:R!==Hn?t.jsx(nt,{text:R,itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Uu,{children:R})})})},I)}case"date":return t.jsx(_t,{windowSize:m,wrapperWidth:S.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(In,{children:t.jsx(nt,{text:e.date.format(zu.visual.MMMDCommaYYYYformat),itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"}})})})},I);case"receipts":return t.jsx(_t,{windowSize:m,wrapperWidth:S.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Qi,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(Pa,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Hu,{onClick:f=>{f.stopPropagation()},children:t.jsx(Xi,{"data-testid":z("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Fn,multiple:!1,acceptableTypes:[...q.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:y,onFileSizeError:(f,$)=>{f&&l(e.id,"Error",{code:500,message:$===!0?Du.replace("__maxFileSize__",Ro(Fn,0)):Ou.replace("__maxFileSize__",Ro(Fn,0))})}})}),t.jsx(fe,{display:"flex",placement:"bottom",title:Mu,enterDelay:600,children:t.jsx(Vu,{onClick:f=>{f.stopPropagation(),C()}})})]})})},I);case"amount":{const f=Ke("0,0.[00]",e.amount);return t.jsx(_t,{windowSize:m,wrapperWidth:S.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(nt,{text:e.amount.amount<0?`-${f}`:f,itemTextStyle:{...Tt.standardRegular.cssObject,color:"inherit"}})})},I)}}})})},Pu=()=>{const e=Se(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(Bs,{windowSize:e,ref:n,children:ht.map((h,p)=>{const i=`${p}${zs}${h.key}`;switch(h.key){case"vendor":return t.jsx(_t,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Nt,{windowSize:e,isLastItem:p===ht.length-1,children:t.jsxs(In,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(_t,{windowSize:e,wrapperWidth:h.width,children:t.jsx(Nt,{windowSize:e,isLastItem:p===ht.length-1,children:t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},Bs=a.div`
941
+ display: flex;
942
+ background-color: ${e=>e.theme.colors.grey5};
943
+ padding-left: ${e=>Sn.containerPaddingLeftRight.valuePx(e.windowSize)};
944
+ padding-right: ${e=>Sn.containerPaddingLeftRight.valuePx(e.windowSize)};
945
+ padding-top: ${e=>Sn.containerPaddingTopBottom.valuePx(e.windowSize)};
946
+ padding-bottom: ${e=>Sn.containerPaddingTopBottom.valuePx(e.windowSize)};
947
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
948
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
949
+ border-radius: ${o.sp2};
950
+ color: ${e=>e.theme.colors.hero};
951
+ cursor: pointer;
952
+ &:hover {
953
+ border-color: ${e=>e.theme.colors.primary};
954
+ color: ${e=>e.theme.colors.primary};
955
+ }
956
+
957
+ box-sizing: border-box;
958
+ align-items: center;
959
+ justify-content: space-between;
960
+ `,_t=a.div`
961
+ display: flex;
962
+ align-items: center;
963
+ position: relative;
964
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
965
+ min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
966
+ :last-of-type {
967
+ padding-right: ${o.sp0};
968
+ }
969
+ `,_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
+ `,Nu=Ye`
978
+ height: ${o.sp3};
979
+ width: ${o.sp3};
980
+ cursor: pointer;
981
+ `,Vu=a(Dn)`
982
+ ${Nu};
983
+ color: ${e=>e.theme.colors.brandColorGoldDark};
984
+ &:hover {
985
+ color: ${e=>e.theme.colors.primary};
986
+ }
987
+ `,Nt=a(ze)`
988
+ overflow: hidden;
989
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
990
+ display: flex;
991
+ width: 100%;
992
+ align-items: center;
993
+ `,Hu=a.div``,In=a.div`
994
+ display: flex;
995
+ flex-direction: row;
996
+ column-gap: ${o.sp2};
997
+ align-items: center;
998
+ `,Uu=a(ze)`
999
+ ${_u};
1000
+ color: inherit;
1001
+ `,Wu=a.div`
1002
+ display: flex;
1003
+ `,qu=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=Se();return t.jsxs(Ku,{windowSize:h,children:[t.jsx(Ms,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c}),t.jsx(Ju,{windowSize:h,children:[...Array(3)].map((p,i)=>t.jsx(Pu,{},i))})]})},Ku=a.div`
1004
+ display: block;
1005
+ min-height: 100%;
1006
+ flex-direction: column;
1007
+ width: 100%;
1008
+ `,Ju=a.div`
1009
+ display: flex;
1010
+ min-height: 100%;
1011
+ flex-direction: column;
1012
+ row-gap: ${o.sp3};
1013
+ `,{common:Gu}=je.getLocalizedStrings(),Zu=({missingReceipts:e,receiptUploadEndpoint:n,authParams:d,selectedPeriod:c,isDisabled:h,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const x=Se(),{fetchState:y,uiState:C,transactions:S}=e,w=s.useRef(null),[I,f]=s.useState(!1);s.useEffect(()=>{w.current?.resetAfterIndex(0)},[x,w]),s.useEffect(()=>{y==="Completed"&&f(!1)},[y]);const $=T=>du,R=(T,F)=>{m({sortOrder:F,sortKey:T})};return t.jsxs(Qu,{children:[t.jsx(eh,{windowSize:x,children:y==="Error"?t.jsxs(nh,{windowSize:x,children:[t.jsx(oh,{onClick:()=>u(),"data-testid":z("missing-receipts-list-table-reload-button"),children:t.jsx(mo,{})}),t.jsx(ih,{children:Gu.reloadPage.label})]}):y==="Completed"&&S.length===0?t.jsx(bt,{tab:"missing_receipts",title:Ue("missing_receipts").allDoneText.title,subTitle:Ue("missing_receipts").allDoneText.subTitle}):y==="Not-Started"||y==="In-Progress"&&S.length===0?t.jsx(qu,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},fetchState:y,onColumnSortConfigChanged:R}):t.jsx(th,{windowSize:x,children:t.jsx(Tn,{children:({height:T,width:F})=>t.jsxs(ah,{style:{height:T,width:F},children:[t.jsx(Xu,{children:t.jsx(Ms,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},isDisabled:y==="In-Progress"?"readonly":h,onColumnSortConfigChanged:R})}),t.jsx(An,{ref:w,height:T-Fs,itemCount:S.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:d,isDisabled:h,selectedPeriod:c,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r},itemSize:$,width:F,style:{willChange:"auto"},overscanCount:uu,onScroll:({scrollOffset:v})=>{m({scrollPosition:{scrollTop:v}})},initialScrollOffset:C.scrollPosition?.scrollTop,children:Yu})]})})})}),t.jsx(Ne,{controller:I===!0,children:t.jsx(rh,{children:t.jsx(Qi,{size:"Small",start:!0})})})]})},Yu=({index:e,style:n,data:d})=>{const{missingReceipts:c,receiptUploadEndpoint:h,authParams:p,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,selectedPeriod:u}=d,x=c.transactions[e];return t.jsx(sh,{style:{...n,width:"100%"},children:t.jsx(Bu,{transaction:x,receiptUploadEndpoint:h,authParams:p,selectedPeriod:u,onMissingReceiptsRowClick:i,onUploadReceiptComplete:l,onUploadReceiptAttachment:r,onUploadReceiptFetchStatus:m,uploadReceiptsFetchState:c.uploadReceiptStatusById[x.id]??{fetchState:"Not-Started",error:void 0}},x.id)})},Xu=a.div`
1014
+ width: auto;
1015
+ `,Qu=a.div`
1016
+ width: 100%;
1017
+ height: 100%;
1018
+ background-color: ${e=>e.theme.colors.grey4};
1019
+ `,eh=a.div`
1020
+ height: 100%;
1021
+ `,th=a.div`
1022
+ height: 100%;
1023
+ display: flex;
1024
+ flex-direction: column;
1025
+ max-width: 99.9%;
1026
+ `,nh=a.div`
1027
+ display: flex;
1028
+ width: 100%;
1029
+ height: ${e=>`calc(100% - ${is.valuePx(e.windowSize)})`};
1030
+ flex-direction: column;
1031
+ justify-content: center;
1032
+ align-items: center;
1033
+ `,oh=a.div`
1034
+ height: 96px;
1035
+ width: 96px;
1036
+ background: ${e=>e.theme.colors.background};
1037
+ border-radius: 50%;
1038
+ cursor: pointer;
1039
+ & svg {
1040
+ margin: ${o.sp5};
1041
+ color: ${e=>e.theme.colors.grey1};
1042
+ }
1043
+ &:hover {
1044
+ & svg {
1045
+ color: ${e=>e.theme.colors.primary};
1046
+ }
1047
+ }
1048
+ `,ih=a(Fa)`
1049
+ margin-top: ${o.sp3};
1050
+ color: ${e=>e.theme.colors.hero};
1051
+ `,sh=a.div`
1052
+ top: ${o.sp0};
1053
+ left: ${o.sp0};
1054
+ padding-bottom: ${o.sp3};
1055
+ box-sizing: border-box;
1056
+ `,ah=a.div`
1057
+ position: relative;
1058
+ `,rh=a.div`
1059
+ display: flex;
1060
+ width: 100%;
1061
+ height: ${o.sp3};
1062
+ flex-direction: row;
1063
+ justify-content: center;
1064
+ align-items: center;
1065
+ margin-top: ${o.sp3};
1066
+ margin-bottom: ${o.sp3};
1067
+ `,lh=[...q.SUPPORTED_ATTACHMENT_FILE_TYPES],ch=7*1024*100,dh=a.div`
1068
+ width: ${an}px;
1069
+ `,Un=a.div`
1070
+ width: ${e=>`${e.availableWidth}px`};
1071
+ min-width: auto;
1072
+ position: relative;
1073
+ height: fit-content;
1074
+ min-height: ${o.sp12};
1075
+ `,uh=a.div`
1076
+ flex-grow: 1;
1077
+ overflow: auto;
1078
+ min-height: 2em;
1079
+ display: flex;
1080
+ flex-direction: row;
1081
+ position: relative;
1082
+
1083
+ pointer-events: auto;
1084
+ user-select: text;
1085
+ justify-content: space-between;
1086
+ margin-bottom: ${o.sp2};
1087
+
1088
+ // Disable select for Zeni Logo and File Separator
1089
+ #${Yi} img[alt*="company logo"],
1090
+ .attachFileSeparator {
1091
+ user-select: none;
1092
+ }
1093
+ `,hh=a.div`
1094
+ display: flex;
1095
+ column-gap: ${o.sp2};
1096
+ align-items: flex-end;
1097
+ margin-top: ${o.sp2};
1098
+ margin-bottom: ${o.sp3};
1099
+ `,ph=a.div`
1100
+ position: relative;
1101
+ `,Ci=a(ze)`
1102
+ position: relative;
1103
+ `,mh=a.div`
1104
+ background-color: ${e=>e.theme.colors.grey5};
1105
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
1106
+ border-radius: ${o.sp2};
1107
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1108
+ padding: ${o.sp5};
1109
+ color: ${e=>e.theme.colors.primary};
1110
+ position: relative;
1111
+ .lexicalEditor__nestedListItem {
1112
+ list-style-type: none;
1113
+ }
1114
+ user-select: text;
1115
+
1116
+ .monthEndReportCanvasWrapper > * {
1117
+ isolation: isolate;
1118
+ z-index: ${g[1]};
1119
+ }
1120
+ `,gh=a.div`
1121
+ user-select: text;
1122
+ `,xh=a.div`
1123
+ position: absolute;
1124
+ top: ${o.sp4}; // Attachment icon position from the top
1125
+ right: -${o.sp3}; // To show attachment icon on the edge
1126
+ `,fh=a.div`
1127
+ margin-top: ${o.sp2};
1128
+ display: flex;
1129
+ flex-direction: column;
1130
+ row-gap: ${o.sp3};
1131
+ margin-bottom: ${o.sp4};
1132
+ position: relative;
1133
+
1134
+ .toolbar {
1135
+ user-select: none;
1136
+ }
1137
+ `,yh=a(St)`
1138
+ color: ${e=>e.theme.colors.grey1};
1139
+ user-select: none;
1140
+ `,Ch=a(os)`
1141
+ color: ${e=>e.theme.colors.primary};
1142
+ `,wh=a.div`
1143
+ flex-direction: column;
1144
+ row-gap: ${o.sp3};
1145
+ display: flex;
1146
+ `,bh=wo`
1147
+ 0% {
1148
+ transform: translateX(100%);
1149
+ }
1150
+ 100% {
1151
+ transform: translateX(0)
1152
+ }
1153
+ `,vh=wo`
1154
+ 0% {
1155
+ transform: translateX(0)
1156
+ }
1157
+ 100% {
1158
+ transform: translateX(100%)
1159
+ }
1160
+ `,Sh=a.div`
1161
+ animation: ${e=>e.allThreadsSectionOpen?bh:vh}
1162
+ 0.5s forwards;
1163
+ height: 100vh;
1164
+ position: fixed;
1165
+ right: ${o.sp0};
1166
+ top: ${o.sp0};
1167
+ z-index: ${g[2]};
1168
+ min-width: ${Gi}px;
1169
+ max-width: ${Ji}px;
1170
+ `,$n="monthEndReportFormSection",wi="monthEndReportPage",Ge=je.getLocalizedStrings();function jh({companyId:e,enableZeniGPTFeature:n,monthEndReportView:d,previewMode:c,customerRequestData:h,allThreadsSectionOpen:p,filterMetaData:i,newThreadMetadata:l,isZeniUser:r,selectedPeriod:m,improveUsingZeniGPTClick:u,onRemoveFileAttachment:x,onUpdateFileAttachment:y,onCloseAllThreadsSection:C,previewMonthEndReport:S,saveMonthEndReport:w,onEditClick:I,onOpenFileAttachmentSnackBar:f,onClickCustomerRequest:$,sendMonthEndReport:R}){const T=vt(),[F,v]=s.useState(),[k,A]=s.useState(0),[L,N]=s.useState(0),M=s.useRef(),K=s.useRef(null),B=s.useRef(null),{html:V,subject:J,improveUsingZeniGPTStatus:G}=d,[O,ie]=s.useState(),[ye,U]=s.useState(!1),[he,Ce]=s.useState(!1),b=s.useRef(null),P=s.useRef(null),W=ra(p,250),_=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:H,threadsPositions:ee,observer:me,unresolvedThreadsMap:D,handleRemoveFloatingThread:re}=la(i,b,!c,_,r),Q=s.useCallback(()=>{p?P.current!=null&&N(Math.min((P.current.offsetWidth-an-g[4])/2,P.current.offsetWidth-an-Ji-g[4])):P.current!=null&&A(Math.min((P.current.offsetWidth-an-g[4])/2,P.current.offsetWidth-an-Gi-g[4]))},[p]);s.useEffect(()=>{Q()},[p,Q]),s.useEffect(()=>(window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q)}),[Q]);const te=r?Ni:Vi,{openThread:we,addThread:ke,setOpenThread:j}=s.useContext(te),Z=ca(To,!1,!c),be=b.current?.getBoundingClientRect(),Me=Z!=null&&Z.coords&&be?{left:Z.coords.left-be.left,top:Z.coords.top-be.top}:void 0,_e=s.useCallback(()=>{const le=window.getSelection()?.getRangeAt(0),oe=da();if(!le||oe==null)return;const ve={...l,...oe,startPath:oe.startPath.join(),endPath:oe.endPath.join()},Ie=`${Zi()}${Ki}`,$e=`cockpit_${e}`;ke(Ie,{type:"thread",id:Ie,roomId:$e,createdAt:new Date,comments:[],metadata:ve,updatedAt:new Date,resolved:!1}),j(Ie)},[ke,e,l,j]);s.useEffect(()=>{we!=null&&p&&C()},[p,we,C]);const Le=G.fetchState==="In-Progress",Ae=Ht({mode:"all",defaultValues:bi(d),values:bi(d)}),pe=Ae.handleSubmit(le=>{const{recipientEmailList:oe,subject:ve}=le[$n];if(c===!0)R?.(O?.id);else{const Ie=F?.replace(ua,Ge.common.strings.empty);oe!=null&&ve!=null&&S(oe,ve,O?.id,Ie!=null&&Ie.length>0?F:void 0)}}),Qe=()=>{K.current!=null&&K.current.click()},Je=()=>{O!==void 0&&O!=null&&(x([O.id]),ie(void 0),U(!1))},et=le=>{const oe=le.target.files?le.target.files[0]:null;if(oe)if(!q.toSupportedAttachmentFileType(oe.type)||he)console.warn("Please select a valid file.");else{const ve=new FileReader;ve.onload=function(Ie){const $e=Ie.target?.result;if(typeof $e=="string"){const st={data:$e.split(",")[1],name:oe.name,id:q.getAttachmentFileIdByFileName(e,oe.name)};ie(st),U(!0),y([st])}},ve.readAsDataURL(oe)}},de=()=>{B.current&&B.current.scrollIntoView({behavior:"smooth"})},Ve=()=>{const le=Ae.getValues(),{recipientEmailList:oe,subject:ve}=le[$n];oe!=null&&ve!=null&&w(oe,ve,O?.id,F)};s.useEffect(()=>{v(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),s.useEffect(()=>{M.current=O},[O]),s.useEffect(()=>{ie(q.mapAttachmentFileToAttachmentFilePayload(d.attachmentFile)),U(!1)},[d.attachmentFile]),s.useEffect(()=>{he&&f()},[he,f]);const it=q.zeniDate(`${m.year}-${m.month}-01`).format(Ge.dateFormat.visual.MMMMFormat),ct=V!=null?V.split(ha):[],Ot=d.concatenatedHtml,jt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Oa,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Ge.cockpit.monthEndReport.timeStampLabel}):null,Ft=()=>r===!0?W?t.jsxs(t.Fragment,{children:[t.jsx(Sh,{allThreadsSectionOpen:p,children:t.jsx(Ra,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${T.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:T.colors.background},threadsContainerStyle:{paddingBottom:c?"160px":o.sp12},collapsibleThreadStyle:{width:`calc(100% - ${o.sp4})`},allowComposer:!1,drawerTitle:Ge.common.texts.comments,filter:i,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(le,oe)=>{j(oe);const ve=H.findIndex(Ie=>Ie[0]===oe);C(),E.current?.[ve]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Un,{availableWidth:k})]}):t.jsx(Da,{observer:me,canvasContainerRef:b,sortedThreads:H,threadsPositions:ee,threadsRefs:E,unresolvedThreadsMap:D,editorMode:!c,style:{minWidth:`${k}px`,position:"relative",height:"fit-content",top:`${b.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:re}):t.jsx(Un,{availableWidth:k}),kt=(d.zeniRequestsData??[]).length+pa(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(uh,{ref:P,children:[t.jsx(Un,{availableWidth:p?L:k}),t.jsxs(dh,{children:[t.jsx(Ut,{...Ae,children:t.jsx("form",{id:vi(wi),onSubmit:pe,children:t.jsxs(wh,{children:[t.jsx(ma,{sectionId:$n,previewMode:c,subject:J}),!c&&kt>0?t.jsx(ga,{totalItems:kt,onClickCustomerRequest:$}):null,t.jsxs(mh,{id:To,ref:b,children:[t.jsxs(gh,{className:"monthEndReportCanvasWrapper",children:[O!=null||he?t.jsx(xh,{"data-testid":z("email-attachment-container"),onClick:de,children:t.jsx(xa,{fileSizeError:he,setFileSizeError:Ce,loading:!1,showAnimation:!c&&ye})}):null,c?t.jsx(Ci,{dangerouslySetInnerHTML:{__html:fa(Ot)}}):t.jsxs(t.Fragment,{children:[t.jsxs(ph,{id:ya,children:[t.jsx(ze,{dangerouslySetInnerHTML:{__html:ct[0]!=null?ct[0]+"</body></html>":Ge.common.strings.empty}}),t.jsxs(hh,{children:[t.jsx(Ch,{children:Ge.cockpit.monthEndReport.editorTitle}),t.jsx(yh,{children:Ge.cockpit.monthEndReport.editorNote})]})]}),t.jsx(fh,{id:Ca,children:t.jsx(wa,{handleFileInputClick:Qe,fileAttached:O!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:Le,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:v,customerRequestData:h})}),t.jsx(Ci,{id:Yi,dangerouslySetInnerHTML:{__html:ct[1]!=null?"<html><body>"+ct[1]:Ge.common.strings.empty}})]}),O!=null?t.jsx(ba,{ref:B,fileName:O.name,fileSize:va(O.data),onRemove:Je,isRemovable:!c}):null]}),Me?t.jsx(Sa,{style:{zIndex:15},coords:Me,alignment:Z.alignment,onClick:_e}):null,t.jsx(ja,{canvasContainerRef:b,sortedThreads:H,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(Xi,{name:O?.name??Ge.common.strings.empty,fileRef:K,sizeLimit:ch,acceptableTypes:lh,onFileChange:async le=>{et(le)},onFileSizeError:le=>Ce(le),multiple:!1})]}),Ft()]}),t.jsx(Hi,{style:{zIndex:10},leftSideComponent:jt(),formId:vi(wi),cancelBtn:{isDisabled:Le,label:c===!0?Ge.cockpit.monthEndReport.editButtonLabel:Ge.cockpit.monthEndReport.saveChanges,onClick:c===!0?I:Ve,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:Le,isLoading:c===!0?d.sendMonthEndReportStatus.fetchState==="In-Progress":d.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:c===!0?"unset":"136px"},label:c===!0?Ge.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",it):Ge.cockpit.monthEndReport.preview,size:"medium"}})]})}const bi=e=>({[$n]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ge.common.strings.empty}}),vi=e=>`${e}_form`;Tt.smallBold.lineHeightValue;const kh=1,Ih=50,Si=56,$h=["memo"],ji=e=>q.stringToUnionStrict(e,$h),{expenseAutomation:{transactions:{header:{vendors:Lh,category:Th,classText:Ah,date:Eh,type:Rh,amount:Dh,memo:Oh}}}}=je.getLocalizedStrings(),Fh={key:"vendor",value:Lh,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[8]}}},Mh={key:"category",value:Th,sortOrder:"ascending",width:new X(20,20),customStyle:{common:{paddingLeft:g[7]}}},zh={key:"class",value:Ah,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[7]}}},Bh={key:"date",value:Eh,sortOrder:"descending",width:new X(11,11),customStyle:{common:{}}},Ph={key:"transaction_type",value:Rh,sortOrder:"descending",width:new X(13,13),customStyle:{common:{}}},_h={key:"memo",value:Oh,sortOrder:"ascending",width:new X(6,6),customStyle:{common:{}}},Nh={key:"amount",value:Dh,sortOrder:"ascending",width:new X(10,10),customStyle:{common:{paddingRight:g[4]}}},wt=[Fh,Mh,zh,Bh,Ph,_h,Nh],Wn={sortKey:"date",sortOrder:"descending"},Ps=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=Se(),[h,p]=s.useState(Co(wt));s.useEffect(()=>{const r=[...h];for(const m of r)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";p(r)},[e.sortKey,e.sortOrder]);const i=(r,m)=>{let u=m;e.sortKey===r&&(u=m==="ascending"?"descending":"ascending"),d(r,u)},l=r=>{ji(r.key)==null&&i(q.toTransactionsSortKey(r.key),r.sortOrder)};return t.jsx(Vh,{windowSize:c,"data-testid":z("transaction-categorization-header-container"),children:h.map((r,m)=>{const u=n!=null||ji(r.key)!=null;return t.jsxs(Hh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,"data-testid":z("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Jh,{"data-testid":z("transaction-categorization-header",r.value),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Gh,{children:r.value}),u?null:t.jsx(Wh,{sortConfig:e,headerData:r,"data-testid":z("transaction-categorization-sort-icon",r.key),children:t.jsx(Kh,{})})]}),u?null:t.jsx(qh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Wn.sortKey,"data-testid":z("transaction-categorization-close-icon",r.key),children:t.jsx(Uh,{onClick:()=>{i(Wn.sortKey,Wn.sortOrder)},"data-testid":z("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},Vh=a.div`
1171
+ top: ${o.sp0};
1172
+ left: ${o.sp0};
1173
+ height: ${Ih}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
+ `,Hh=a.div`
1182
+ color: ${e=>e.sortDataValue===e.actualDataValue&&!e.isSortDisabled?e.theme.colors.primary:e.theme.colors.grey1};
1183
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1184
+ max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1185
+ padding-left: ${o.sp0};
1186
+ left: ${o.sp0};
1187
+ display: flex;
1188
+ align-items: center;
1189
+ gap: 6px;
1190
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1191
+ position: static;
1192
+ z-index: 0;
1193
+ box-sizing: border-box;
1194
+ `,Uh=a(Rn)`
1195
+ width: 12px;
1196
+ height: 12px;
1197
+ `,Wh=a.div`
1198
+ display: flex;
1199
+ align-items: center;
1200
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1201
+ ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
1202
+ `,qh=a.div`
1203
+ display: ${e=>e.isVisible?"flex":"none"};
1204
+ align-items: center;
1205
+ padding-top: 2px;
1206
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1207
+ &:hover {
1208
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1209
+ }
1210
+ `,Kh=a(En)`
1211
+ width: ${o.sp2};
1212
+ height: ${o.sp2};
1213
+ `,Jh=a.div`
1214
+ display: flex;
1215
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1216
+ gap: 6px;
1217
+ &:hover {
1218
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1219
+ }
1220
+ `,Gh=a(gt)`
1221
+ display: flex;
1222
+ `,qn="expenseAutomationTransactionsPage",Vt="transactionCategorizationListTable",Re="account",Ze="class",lt="lineEntitySelection",Zh="lineEntity",Yh="recommendations",_s="lineInfo",Xh="vendorDetails",Qh="customerDetails",Ln="selectedTransactionIds",Lt=(e,n,d)=>`${e}.${d}.${n}`,ep=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M21.7995 14.6384L14.7656 21.6723L11.3086 22.3637L12 18.9067L19.0339 11.8728C19.3997 11.5071 19.8958 11.3016 20.413 11.3016C20.9303 11.3016 21.4263 11.5071 21.7922 11.8728L21.7995 11.8811C21.9808 12.062 22.1246 12.2769 22.2227 12.5134C22.3208 12.75 22.3713 13.0036 22.3713 13.2597C22.3713 13.5158 22.3208 13.7694 22.2227 14.006C22.1246 14.2426 21.9808 14.4575 21.7995 14.6384Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.54295 19.5981H3.0117C2.82886 19.6026 2.64701 19.57 2.47718 19.5021C2.30735 19.4342 2.15309 19.3325 2.02376 19.2032C1.89444 19.0739 1.79275 18.9196 1.72487 18.7498C1.65699 18.58 1.62433 18.3981 1.62888 18.2153V4.48579C1.61644 4.10613 1.75499 3.73703 2.01419 3.45934C2.27339 3.18165 2.63209 3.01804 3.0117 3.00433H16.8398C17.2194 3.01804 17.5781 3.18165 17.8373 3.45934C18.0965 3.73703 18.2351 4.10613 18.2226 4.48579V8.53558",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:tp,hyphen:ki,empty:Zt}},expenseAutomation:{transactions:Yt},dateFormat:np}=je.getLocalizedStrings(),At={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[1],g[2]),containerPaddingTopBottomEmpty:new X(g[2],g[3]),nameLogoWidth:new X(g[2],g[4]),nameLogoHeight:new X(g[2],g[4])},op=({transactionView:e,transaction:n,sectionId:d,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,selectedTab:p,containerRef:i,isCOTEnabled:l,cotTracking:r,onTransactionCategorizationRowClick:m,setCurrentTransactionInAction:u,vendorLoadOptions:x,openTooltipId:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:S})=>{const w=Se(),[I,f]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,T=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],F=R.filter(b=>T.indexOf(b)!==-1),v=[];F.forEach(b=>{v.push($[b])});const{accountList:k,accountsHierarchyList:A,classHierarchyList:L,classList:N,uncategorizedAccounts:M,transactions:K,selectedCheckBoxTransactionIds:B}=e,V=B.includes(n.transactionId),J=vt(),G={control:()=>({marginLeft:-2,backgroundColor:I?J.colors.background:J.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:J.colors.grey5}),singleValue:()=>({color:I||V?J.colors.primary:J.colors.hero,paddingLeft:g[2]}),input:b=>({...b,color:I||V?J.colors.primary:J.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:b=>({...b,zIndex:10})},O={...G,singleValue:b=>({...b,color:I||V?J.colors.primary:J.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:b=>({...b,color:I||V?J.colors.primary:J.colors.hero,textAlign:"left"})},ie=K.find(b=>b.id===n.transactionId),ye=(b,P)=>{const{transactionType:W}=P.transactionReviewLocalData;let _=b.target;for(;_;){if(_.classList.contains("select-value-container")||_.classList.contains("item-value-container")||_.classList.contains("grouped-single-select-field__value-container")||_.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||_.classList.contains("grouped-single-select-field__input")||_.classList.contains("grouped-single-select-field__menu"))return;_=_.parentElement}W!=null&&m(P.transactionId,W)},U=s.useRef(null),[he,Ce]=s.useState("auto");return s.useEffect(()=>{const b=()=>{if(i.current!=null&&U.current!=null){const P=i.current.getBoundingClientRect(),W=U.current.getBoundingClientRect().top-P.top;Ce(W>285?"top":"bottom")}};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b)}},[i]),t.jsx(ap,{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),windowSize:w,isSelected:V,isHovered:I,children:t.jsx(rp,{children:v.map((b,P)=>t.jsx(lp,{ref:U,"data-testid":z("transaction-categorization-list-row",b.lineId),windowSize:w,onClick:W=>ye(W,n),children:t.jsx(ip,{line:b,isHovered:I||V,isSelected:V,lineIndex:P,sectionId:d,transaction:n,currentTransaction:ie,windowSize:w,accountsHierarchyList:A,classHierarchyList:L,allAccountList:k,allClassList:N,uncategorizedAccounts:M,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:G,customStyleAutoComplete:O,recommendations:b.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:he,cotTracking:r,openTooltipId:y,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:S})},`${n.transactionId}.${b.lineId}`))},n.transactionId)},n.transactionId)},ip=({accountsHierarchyList:e,allAccountList:n,allClassList:d,classHierarchyList:c,customStyle:h,customStyleAutoComplete:p,line:i,lineIndex:l,transaction:r,currentTransaction:m,windowSize:u,uncategorizedAccounts:x,isHovered:y=!1,isSelected:C=!1,sectionId:S,recommendations:w,vendorSearchAutoCompleteData:I,selectedTab:f,isCOTEnabled:$,menuPlacement:R,cotTracking:T,openTooltipId:F,setCurrentTransactionInAction:v,vendorLoadOptions:k,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:L})=>{const{transactionDate:N,transactionType:M,transactionTypeName:K,memo:B}=r.transactionReviewLocalData,{setValue:V}=fo(),J=s.useCallback((se,xe)=>{T?.onCOTView!=null&&T.onCOTView(i.lineId,r.transactionId,se,xe)},[T,i.lineId,r.transactionId]),G=Lt(S,lt,l.toString()),O=Lt(S,Re,l.toString()),ie=Lt(S,Ze,l.toString()),ye=(se,xe)=>{let Te;switch(xe){case"vendor":Te=G;break;case"category":Te=O;break;case"class":Te=ie;break;default:return}V(`${Te}.selectedOption`,se,{shouldValidate:!0,shouldDirty:!0})},U=vt(),he=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.customer?.id??"",logo:r.transactionReviewLocalData.customer?.logo,name:r.transactionReviewLocalData.customer?.name??""}:{id:i.customer?.id??"",logo:i.customer?.logo,name:i.customer?.name??""},[m,i.customer?.id,i.customer?.logo,i.customer?.name,r.transactionReviewLocalData.customer?.id,r.transactionReviewLocalData.customer?.logo,r.transactionReviewLocalData.customer?.name]),Ce=s.useMemo(()=>m!=null&&q.isVendorTransaction(m)===!0?{id:r.transactionReviewLocalData.vendor?.id??"",logo:r.transactionReviewLocalData.vendor?.logo,name:r.transactionReviewLocalData.vendor?.name??""}:{id:i.vendor?.id??"",logo:i.vendor?.logo,name:i.vendor?.name??""},[m,i.vendor?.id,i.vendor?.logo,i.vendor?.name,r.transactionReviewLocalData.vendor?.id,r.transactionReviewLocalData.vendor?.logo,r.transactionReviewLocalData.vendor?.name]),b=i[Ze]?.classId,P=i[Re]?.qboId??i[Re]?.accountId,W=he?.id,_=Ce?.id,E=Ce?.name,[H,ee]=s.useState(!b),[me,D]=s.useState(!P||i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,L===!0?["income"]:void 0)===!0),[re,Q]=s.useState(!_||!W),te=se=>w?.find(xe=>xe.vendor?.qboId===se||xe.vendor?.id===se||xe.vendor?.name===se)?.vendor?.reason??"",we=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],ke=ds(e,we),j=cs(c,we),Z=se=>n.filter(xe=>xe.qboId===se)[0]?.qboId,be=se=>d.filter(xe=>xe.classId===se)[0]?.accountingClassNumber??void 0,Me=s.useCallback(se=>q.isAccountUncategorized(x,se,L===!0?["income"]:void 0),[x,L]),[_e,Le]=s.useState(!1),[Ae,pe]=s.useState(!1),[Qe,Je]=s.useState(!1),et=(se,xe)=>{v({transactionId:r.transactionId,lineItemId:i.lineId}),k(se,xe)},de=()=>{Q(!(_||W)),Le(!1)},Ve=()=>{P&&i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,L===!0?["income"]:void 0)===!1?D(!1):D(!0),Je(!1)},it=()=>{ee(!b),pe(!1)},ct=()=>{(_||W)&&Le(!0)},Ot=()=>{pe(!0)},jt=()=>{Je(!0)};s.useEffect(()=>{P&&i[Re]?.qboId!=null&&q.isAccountUncategorized(x,i[Re].qboId,L===!0?["income"]:void 0)===!1?D(!1):D(!0)},[P]),s.useEffect(()=>{ee(!b)},[b]),s.useEffect(()=>{Q(!(_||W))},[_,W]);const Ft=r.transactionReviewLocalData.selectedEntity,kt=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,le=m!=null&&q.isVendorTransaction(m)===!0?Ft:kt,oe=s.useMemo(()=>{const se=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],xe=I.entityAutoCompleteView;return{selectedOption:le?.qboId??le?.id,defaultOptions:go(xe,le,se??[])}},[le,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),ve=()=>le!=null&&le.logo!=null?t.jsx(as,{photoUrl:le.logo.toString(),styles:{width:At.nameLogoWidth.valuePx(u),height:At.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx(Li,{children:t.jsx(cn,{name:le.name,size:o.sp4})})}):le!=null&&le.name!=null?t.jsx(Li,{children:t.jsx(cn,{name:le.name,size:o.sp4})}):null,Ie=(se,xe)=>{if(xe==null||!xe)return;let Te=[];return se.forEach(He=>{Te=Te.concat(He.options)}),Te.find(He=>He.value===xe)?.label??xe},$e=Ie(j,b),st=Ie(ke,P),Be=f==="review",It=Mn("vendor",oe.defaultOptions,oe.selectedOption),ot=Mn("category",ke,P),Wt=Mn("class",j,b),on=()=>wt.map((se,xe)=>{const Te=`${r.transactionId}_${se.key}_${i.lineId}`;if(l>0&&m!=null&&q.isVendorTransaction(m)===!0&&se.key==="vendor")return t.jsx(at,{windowSize:u,wrapperWidth:se.width},Te);if(l>0&&se.key==="transaction_type")return t.jsx(at,{windowSize:u,wrapperWidth:se.width},Te);switch(se.key){case"vendor":default:return t.jsxs(at,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:we,type:"vendor",isFirstColumn:!0,isEnabled:!!le?.isPreFilled,isMisCategorized:It,onRecommendationClick:ye,selectedValue:_,selectedValueLabel:E,isReviewTab:Be,isAccountOptionDisabled:Me,existingOption:{label:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.name:void 0,value:m!=null&&q.isVendorTransaction(m)===!0?m?.vendor?.id:void 0},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:F,setOpenTooltipId:A}),t.jsx(Xn,{children:re===!0?t.jsx(Zn,{isHovered:y,children:t.jsxs(Jn,{onClick:He=>{He.stopPropagation(),Q(!1),Le(!0)},"data-testid":z("add-vendor-button",S),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addPayee]})}):_e===!0?t.jsx(yt,{onClickAway:de,children:t.jsx(bp,{"data-testid":z("vendor-selection-dropdown-container",Lt(S,lt,l.toString())),children:t.jsx(Ka,{name:G,placeholder:Yt.addPayee,valueToInfo:te,defaultValue:{selectedOption:oe.selectedOption,defaultOptions:oe.defaultOptions},type:"vendor",autoFocus:!re,style:{width:"100%"},pageSource:"list_page",transactionStatus:Be?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:_e,onMenuClose:de,registerOptions:{required:!1},loadOptions:et,showCOT:$,onCOTView:J,menuPlacement:R})})}):t.jsx(Sp,{children:t.jsxs(Yn,{isHovered:y,showOutline:It&&le?.isPreFilled!==!0&&!C&&Be,children:[ve(),t.jsx(wp,{onClick:ct,"data-testid":z("vendor-name-text",S),children:le!=null&&le.name?t.jsx(nt,{text:le.name,itemTextStyle:{color:y?U.colors.primary:U.colors.hero}}):t.jsx(vp,{children:ki})})]})})})]},Te);case"category":{const He=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:we,type:"category",isFirstColumn:!1,isReviewTab:Be,isEnabled:!!i[Re]?.isPreFilled,isAccountOptionDisabled:Me,isMisCategorized:ot,onRecommendationClick:ye,selectedValue:P,selectedValueLabel:st,existingOption:{label:He?.account?.accountName,value:He?.account?.qboId??He?.account?.accountId},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:F,setOpenTooltipId:A}),t.jsx(Xn,{children:me===!0?t.jsx(Zn,{isHovered:y,children:t.jsxs(Jn,{onClick:Mt=>{Mt.stopPropagation(),D(!1),Je(!0)},"data-testid":z("category-selection-field",O),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addCategory]})}):Qe===!0?t.jsx(yt,{onClickAway:Ve,children:t.jsx(Ti,{isHovered:y,"data-testid":z("category-selection-dropdown-container",O),children:t.jsx(Mo,{name:O,placeholder:Yt.addCategory,valueToId:Mt=>Z(Mt),type:"category",pageSource:"list_page",transactionStatus:Be?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:P,allOptions:ke},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Qe,autoFocus:!me&&(!P||i[Re]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[Re].qboId)),onMenuClose:Ve,customStyleConfig:h,disableCurrentOption:Me,menuPlacement:R,onCOTView:J})})}):t.jsx(Yn,{isHovered:y,showOutline:ot&&i[Re]?.isPreFilled!==!0&&!C&&Be,children:t.jsx(Ai,{onClick:jt,"data-testid":z("category-label-text",O),children:t.jsx(nt,{text:st??"",itemTextStyle:{color:y?U.colors.primary:U.colors.hero}})})})})]},Te)}case"class":{const He=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:se.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:we,type:"class",isFirstColumn:!1,isReviewTab:Be,isEnabled:!!i[Ze]?.isPreFilled,isAccountOptionDisabled:Me,isMisCategorized:Wt,onRecommendationClick:ye,selectedValue:b,selectedValueLabel:$e,existingOption:{label:He?.class?.className,value:He?.class?.classId},cotTracking:T,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:F,setOpenTooltipId:A}),t.jsx(Xn,{children:H===!0?t.jsx(Zn,{isHovered:y,children:t.jsxs(Jn,{onClick:Mt=>{Mt.stopPropagation(),ee(!1),pe(!0)},"data-testid":z("class-selection-field",ie),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Yt.addClass]})}):Ae===!0?t.jsx(yt,{onClickAway:it,children:t.jsx(Ti,{isHovered:y,"data-testid":z("class-selection-dropdown-container",ie),children:t.jsx(Mo,{name:ie,placeholder:Yt.addClass,valueToId:Mt=>be(Mt),type:"class",showCOT:$,defaultValue:{selectedOption:b,allOptions:j},pageSource:"list_page",transactionStatus:Be?"pending_review":"auto_categorized",menuIsOpen:Ae,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!H&&!b,customStyleConfig:h,onMenuClose:it,menuPlacement:R,onCOTView:J})})}):t.jsx(Yn,{isHovered:y,showOutline:Wt&&i[Ze]?.isPreFilled!==!0&&!C&&Be,children:t.jsx(Ai,{"data-testid":z("class-selection-field",ie),onClick:Ot,children:t.jsx(nt,{text:$e??"",itemTextStyle:{color:y?U.colors.primary:U.colors.hero}})})})})]},Te)}case"date":return t.jsx(at,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(ho,{"data-testid":z("date-field",Lt(S,Ze,l.toString())),children:t.jsx(dp,{style:{color:y?U.colors.primary:U.colors.hero},children:N!=null?N.format(np.visual.MMMDCommaYYYYformat):null})})})},Te);case"transaction_type":return t.jsx(at,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,"data-testid":z("transaction-type-field",Lt(S,Ze,l.toString())),isLastItem:xe===wt.length-1,children:K!=null?t.jsx(Wa,{textColor:y?new xo(U.colors.primary):qa(void 0,U),text:K??M}):null})},Te);case"memo":return t.jsx(at,{windowSize:u,wrapperWidth:se.width,children:t.jsx(tn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:xe===wt.length-1,"data-testid":z("memo-field",Lt(S,Ze,l.toString())),children:B&&l==0?t.jsx(fe,{placement:"bottom",title:B,children:t.jsx(hp,{style:{color:y?U.colors.primary:U.colors.hero}})}):l==0?t.jsx(up,{children:ki}):null})},Te);case"amount":{const He=Ke("0,0.[00]",i.amount,!0);return t.jsx(at,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:se.width,children:t.jsx(tn,{windowSize:u,isLastItem:xe===wt.length-1,children:t.jsx(ho,{"data-testid":z("transaction-amount-field",Lt(S,Ze,l.toString())),style:{color:y?U.colors.primary:U.colors.hero},children:He})})},Te)}}});return t.jsx(t.Fragment,{children:on()})},Ii=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(gp,{}):t.jsx(pp,{}):h?t.jsx(mp,{}):t.jsx(xp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(yp,{}):t.jsx(fp,{}):null,$i=({isFirstColumn:e,children:n})=>t.jsx(Vs,{isFirstColumn:e,children:n}),Kn=({recommendations:e,isCOTEnabled:n,type:d,isReviewTab:c,selectedValueLabel:h,isFirstColumn:p,isEnabled:i=!1,isMisCategorized:l=!1,selectedValue:r,existingOption:m,cotTracking:u,lineId:x,openTooltipId:y,transactionId:C,isAccountOptionDisabled:S,onRecommendationClick:w,setOpenTooltipId:I})=>{const f=s.useMemo(()=>`${C}:${x}:${d}`,[C,x,d]),$=y===f,R=Za().analytics,{createAlternateRecommendationCallback:T}=Ya(),F=s.useCallback(K=>{const B=e[1],V=e[0];T(d,{currentValue:h??Zt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:x,onCOTView:(J,G,O,ie)=>{u.onCOTView?.(J,G,O,ie)}}:void 0},B,V)(K)},[T,e,h,c,d,u,x,C]),v=Xa(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",w,F,r,S),k=Qa(e,d),A=s.useCallback(()=>{I(f);const K=v?.recommendations[0]?.cot??[],B=v?.recommendations[1]?.cot??[],V=B.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Zt,recommendation:v?.recommendations[0]?.name??Zt,recommendationCot:K,isRecommendationCotAvailable:K.length>0,recommendationReason:v?.recommendations[0]?.reason??Zt,recommendationConfidencePercentage:v?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Do(Oo(v?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:v?.recommendations[1]?.name??Zt,alternativeRecommendationCot:B,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:v?.recommendations[1]?.reason??Zt,alternativeRecommendationConfidencePercentage:v?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Do(Oo(v?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const J=er(v);J!=null&&u.onCOTView(x,C,d,J)}},[R,v,c,h,d,x,C,f,I]),L=s.useCallback(()=>{y===f&&I(void 0)},[y,f,I]),N=s.useMemo(()=>!r||!k?!1:e.some(K=>d==="vendor"&&K.vendor!=null?K.vendor.id===r||K.vendor.qboId===r:d==="category"&&K.account!=null?K.account.qboId===r||K.account.accountId===r:d==="class"&&K.class!=null?K.class.classId===r:!1),[r,k,e,d]);if(!k)return t.jsx(Vs,{isFirstColumn:p});const M=i||N;return v?t.jsx($i,{isFirstColumn:p,children:t.jsx(fe,{variant:"chain-of-thought",data:v,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:L,children:t.jsx(Cp,{children:t.jsx(Ii,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})})}):t.jsx($i,{isFirstColumn:p,children:t.jsx(Ii,{isEnabled:M,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})},Ns=()=>{const e=Se(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(sp,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${tp}${h.key}`;switch(h.key){case"vendor":return t.jsx(at,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsxs(ho,{children:[t.jsx(yo,{width:g[4],height:g[4]}),t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})]})})},i);default:return t.jsx(at,{windowSize:e,wrapperWidth:h.width,children:t.jsx(tn,{windowSize:e,isLastItem:p===wt.length-1,children:t.jsx(Rt,{width:d*h.width.value(e)/100,height:g[4],style:{display:"flex",alignItems:"center"}})})},i)}})})},sp=a.div`
1223
+ display: flex;
1224
+ background-color: ${e=>e.theme.colors.grey5};
1225
+ padding-left: ${e=>At.containerPaddingLeftRight.valuePx(e.windowSize)};
1226
+ padding-right: ${e=>At.containerPaddingLeftRight.valuePx(e.windowSize)};
1227
+ padding-top: ${e=>At.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1228
+ padding-bottom: ${e=>At.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1229
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1230
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1231
+ border-radius: ${o.sp2};
1232
+ color: ${e=>e.theme.colors.hero};
1233
+ cursor: pointer;
1234
+ &:hover {
1235
+ border-color: ${e=>e.theme.colors.primary};
1236
+ }
1237
+
1238
+ box-sizing: border-box;
1239
+ align-items: center;
1240
+ justify-content: space-between;
1241
+ `,ap=a.div`
1242
+ display: flex;
1243
+ height: 100%;
1244
+ flex: 1;
1245
+ background-color: ${e=>e.theme.colors.grey5};
1246
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1247
+ box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
1248
+ border-radius: ${o.sp2};
1249
+ color: ${e=>e.theme.colors.hero};
1250
+ border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
1251
+ cursor: pointer;
1252
+ &:hover {
1253
+ border-color: ${e=>e.theme.colors.primary};
1254
+ }
1255
+
1256
+ box-sizing: border-box;
1257
+ align-items: center;
1258
+ justify-content: space-between;
1259
+
1260
+ .ai-icon-selected-plain {
1261
+ color: ${e=>e.theme.colors.hero};
1262
+ }
1263
+
1264
+ ${({isHovered:e,theme:n})=>e?Ye`
1265
+ .ai-icon-selected-plain {
1266
+ color: ${n.colors.primary};
1267
+ }
1268
+ `:null};
1269
+ `,rp=a.div`
1270
+ display: flex;
1271
+ flex: 1;
1272
+ flex-direction: column;
1273
+ width: 100%;
1274
+ box-sizing: border-box;
1275
+ align-items: center;
1276
+ justify-content: space-around;
1277
+ `,lp=a.div`
1278
+ display: flex;
1279
+ flex: 1;
1280
+ flex-direction: row;
1281
+ width: 100%;
1282
+ align-items: center;
1283
+ justify-content: space-between;
1284
+ height: ${o.sp8};
1285
+ padding-top: ${e=>At.containerPaddingTopBottom.valuePx(e.windowSize)};
1286
+ padding-bottom: ${e=>At.containerPaddingTopBottom.valuePx(e.windowSize)};
1287
+ `,at=a.div`
1288
+ display: flex;
1289
+ align-items: center;
1290
+ flex-direction: row;
1291
+ position: relative;
1292
+ width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${o.sp4})`};
1293
+ min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${o.sp4})`};
1294
+ :last-of-type {
1295
+ padding-right: ${o.sp0};
1296
+ }
1297
+ `,cp=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
+ `,tn=a(ze)`
1306
+ overflow: hidden;
1307
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1308
+ display: flex;
1309
+ width: 100%;
1310
+ align-items: center;
1311
+ `,ho=a.div`
1312
+ display: flex;
1313
+ flex-direction: row;
1314
+ column-gap: ${o.sp2};
1315
+ align-items: center;
1316
+ `,dp=a(ze)`
1317
+ ${cp};
1318
+ color: ${e=>e.theme.colors.hero};
1319
+ `,Jn=a(ze)`
1320
+ color: ${e=>e.theme.colors.hero};
1321
+ `,Gn=a(Dn)`
1322
+ width: ${o.sp3};
1323
+ height: ${o.sp3};
1324
+ margin: ${o.sp1};
1325
+ `,up=a.div`
1326
+ margin: ${o.sp3};
1327
+ `,hp=a(ep)`
1328
+ width: ${o.sp3};
1329
+ height: ${o.sp3};
1330
+ margin-left: 10px;
1331
+ `,pp=a(ir)`
1332
+ width: ${o.sp5};
1333
+ height: ${o.sp5};
1334
+ `,mp=a(lr)`
1335
+ width: ${o.sp5};
1336
+ height: ${o.sp5};
1337
+ `,gp=a(or)`
1338
+ width: ${o.sp5};
1339
+ height: ${o.sp5};
1340
+ `,xp=a(cr)`
1341
+ width: ${o.sp5};
1342
+ height: ${o.sp5};
1343
+ `,fp=a(un)`
1344
+ width: ${o.sp3};
1345
+ height: ${o.sp3};
1346
+ path {
1347
+ stroke-width: 2;
1348
+ }
1349
+ `,yp=a(sr)`
1350
+ width: ${o.sp3};
1351
+ height: ${o.sp3};
1352
+ `,Vs=a.div`
1353
+ display: flex;
1354
+ align-items: center;
1355
+ justify-content: center;
1356
+ width: ${o.sp5};
1357
+ margin-left: ${e=>e.isFirstColumn?o.sp2:o.sp0};
1358
+ height: 100%;
1359
+ `,Cp=a.div`
1360
+ display: flex;
1361
+ align-items: center;
1362
+ justify-content: center;
1363
+ width: auto;
1364
+ cursor: pointer;
1365
+ `,wp=a(ze)`
1366
+ display: flex;
1367
+ max-width: calc(100% - ${o.sp6});
1368
+ flex: 1 1 auto;
1369
+ color: ${e=>e.theme.colors.primary};
1370
+ text-align: center;
1371
+ align-items: center;
1372
+ overflow: hidden;
1373
+ display: flex;
1374
+ `,Li=a.div`
1375
+ display: flex;
1376
+ `,bp=a.div`
1377
+ width: 100%;
1378
+ padding-left: 10px;
1379
+ margin-left: ${o.sp0};
1380
+ border-radius: ${o.sp1};
1381
+ background-color: ${e=>e.theme.colors.background};
1382
+ display: flex;
1383
+ align-items: center;
1384
+ flex-direction: row;
1385
+ `,Zn=a.div`
1386
+ padding: ${o.sp0} ${o.sp2};
1387
+ border-radius: ${o.sp1};
1388
+ margin-left: ${o.sp0};
1389
+ width: 100%;
1390
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1391
+ `,Ti=a.div`
1392
+ width: 100%;
1393
+ border-radius: ${o.sp1};
1394
+ padding-left: 2px;
1395
+ background-color: ${e=>e.theme.colors.background};
1396
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1397
+ display: flex;
1398
+ align-items: center;
1399
+ flex-direction: row;
1400
+ `,vp=a(ze)``,Sp=a.div`
1401
+ width: 100%;
1402
+ display: flex;
1403
+ padding-left: ${o.sp0};
1404
+ `,Yn=a.div`
1405
+ width: 100%;
1406
+ display: flex;
1407
+ flex-direction: row;
1408
+ align-items: center;
1409
+ gap: ${o.sp2};
1410
+ padding: ${o.sp2};
1411
+ padding-left: ${o.sp2};
1412
+ border-radius: ${o.sp1};
1413
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
1414
+ outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
1415
+ outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
1416
+ `,Ai=a.div``,Xn=a.div`
1417
+ display: flex;
1418
+ align-items: center;
1419
+ width: calc(100% - ${o.sp5});
1420
+ `,jp=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=Se();return t.jsxs(kp,{windowSize:h,children:[t.jsx(Ps,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c,"data-testid":z("transaction-categorization-list-empty-table-header")}),t.jsx(Ip,{windowSize:h,"data-testid":z("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,i)=>t.jsx(Ns,{"data-testid":z("transaction-categorization-list-empty-row",i.toString())},i))})]})},kp=a.div`
1421
+ display: block;
1422
+ min-height: 100%;
1423
+ flex-direction: column;
1424
+ width: 100%;
1425
+ padding-left: ${o.sp8};
1426
+ padding-right: ${o.sp8};
1427
+ `,Ip=a.div`
1428
+ display: flex;
1429
+ flex: 1;
1430
+ min-height: 100%;
1431
+ flex-direction: column;
1432
+ row-gap: ${o.sp3};
1433
+ `,{common:$p,transactionDetail:{notCategorizedTooltipText:Lp}}=je.getLocalizedStrings(),Qn={rowGap:new X(g[0],g[2],g[3])},Tp=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,isCOTEnabled:p,isDisabled:i,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,setCurrentTransactionInAction:m,vendorLoadOptions:u,onTransactionCategorizationRowClick:x,onUpdateTransactionCategorizationUIState:y,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:S,containerRef:w,cotTracking:I,isUncategorizedExpenseCategoryEnabled:f})=>{const $=Se(),[R,T]=s.useState(void 0),{fetchState:F,uiState:v,transactionLocalData:k,selectedCheckBoxTransactionIds:A,transactionIdsWithUnsavedData:L,transactions:N,uncategorizedAccounts:M}=n,K=s.useRef(null),B=s.useRef({}),{control:V}=fo();s.useEffect(()=>{K.current?.resetAfterIndex(0,!0)},[$,K,k]),s.useEffect(()=>{K.current?.scrollTo(v.scrollPosition?.scrollTop??0)},[e]);const J=s.useCallback(D=>{if(B.current?.[D]!=null){const te=$==="small"&&v.pageToken==null&&D===k.length-1?Qn.rowGap.value("medium-regular"):Qn.rowGap.value($);return B.current[D]+te}if(k[D]==null)return 0;const re=k[D].transactionReviewLocalData,Q=Object.keys(re.lineItemById).length;return Q!=null&&!isNaN(Q)&&Q>1?Si*Q+Qn.rowGap.value($)*(Q-1):Si},[k,$,v.pageToken,v.sortKey,v.sortOrder]),G=s.useCallback((D,re)=>{B.current={...B.current,[D]:re},K.current?.resetAfterIndex(0,!0)},[$,K,k,v.sortKey,v.sortOrder]),O=s.useCallback(()=>{(v.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&S(e,v.searchString,!0,v.pageToken,!0,!1)},[n.refreshStatus.fetchState,S,e,v.pageToken,v.searchString,v.sortKey,v.sortOrder]),ie=s.useCallback(()=>{v.pageToken!=null&&O()},[O,v.pageToken,v.sortKey,v.sortOrder]),ye=Ma(D=>C(e,{scrollPosition:{scrollTop:D}}),1e3,{trailing:!0}),U=D=>D<n.transactionLocalData.length,he=(D,re)=>{y(e,{sortOrder:re,sortKey:D}),S(e,v.searchString,!1,null,!1,!0)},Ce=D=>{if(e==="autoCategorized")return!A.includes(D);const re=k.find(te=>te.transactionId===D)?.transactionReviewLocalData,Q=N.find(te=>te.id===D);return Q!=null&&re!=null?q.checkIfAllLineItemsAreCategoryClassFilled(Q,re,M,f)?f===!0&&Eo.isAnyItemWithUncategorizedExpenseAccount(M,re.lineItemById,["expense"])?L.includes(D)===!1:!1:!0:A.length===0?!0:!A.includes(D)};let b=[],P=[];(F==="Completed"||n.transactionLocalData.length>0)&&(P=n.transactionLocalData.map((D,re)=>{const Q=Ce(D.transactionId);let te=!1;f===!0&&Q===!0&&e==="review"&&Eo.isAnyItemWithUncategorizedExpenseAccount(M,D.transactionReviewLocalData.lineItemById,["expense"])&&(te=!L.includes(D.transactionId));const we=D.transactionReviewLocalData;return{label:t.jsx(op,{transactionView:n,sectionId:`${h}.${re}.${_s}`,transaction:D,receiptUploadEndpoint:d,authParams:c,onTransactionCategorizationRowClick:x,vendorLoadOptions:u,setCurrentTransactionInAction:m,vendorSearchAutoCompleteActions:l,vendorSearchAutoCompleteData:r,selectedTab:e,containerRef:w,isCOTEnabled:p,cotTracking:I,openTooltipId:R,setOpenTooltipId:T,isUncategorizedExpenseCategoryEnabled:f},`${D.transactionId}.${we.transactionType}`),value:D.transactionId,defaultChecked:!1,groupLabel:!1,isException:te,exceptionMode:te===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:Q===!0?"readonly":void 0,exceptionType:te===!0?"alert":void 0,exceptionInfo:te===!0?Lp:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${o.sp2}`}}}),b=P.map(D=>D.value));const W={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:_,subTitle:E}=Ue("transaction_categorization").allDoneText,H=k.map(D=>D.transactionId),ee=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),me=s.useMemo(()=>k.reduce((D,re)=>{const Q=Object.keys(re.transactionReviewLocalData.lineItemById).length;return D+(Q>0?Q:1)},0)<n.totalCountByTab[e]?k.length+1:k.length,[k,n.totalCountByTab,e]);return t.jsx(Op,{windowSize:$,"data-testid":z("transaction-categorization-list-wrapper"),children:t.jsx(Fp,{windowSize:$,"data-testid":z("transaction-categorization-list-container"),children:F==="Error"?t.jsxs(zp,{windowSize:$,"data-testid":z("transaction-categorization-reload-page"),children:[t.jsx(Bp,{onClick:()=>S(e,void 0,!0,null,!1,!0),"data-testid":z("transaction-categorization-reload-icon"),children:t.jsx(mo,{})}),t.jsx(Pp,{"data-testid":z("transaction-categorization-reload-label"),children:$p.reloadPage.label})]}):F==="Completed"&&k.length===0?t.jsx(bt,{tab:"transaction_categorization",title:_,subTitle:E,"data-testid":z("transaction-categorization-empty-table-section")}):F==="Not-Started"||F==="In-Progress"&&k.length===0?t.jsx(jp,{sortConfig:{sortKey:v.sortKey,sortOrder:v.sortOrder},fetchState:F,onColumnSortConfigChanged:he,"data-testid":z("transaction-categorization-list-empty-table")}):t.jsx(Mp,{windowSize:$,"data-testid":z("transaction-categorization-list-view"),children:t.jsx(ss,{control:V,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:D,ref:re,onChange:Q}})=>t.jsx(Hs.Provider,{value:{value:D,mode:"off",allCheckBoxValues:b,index:0,sortKey:v.sortKey,sortOrder:v.sortOrder,fetchState:F,isDisabled:i,groupLabelCheckBox:W,onColumnSortConfigChanged:he,ref:re,onChange:Q,selectedTab:e},children:t.jsx(Tn,{children:({height:te,width:we})=>t.jsx(za,{isItemLoaded:U,itemCount:ee,loadMoreItems:ie,children:({onItemsRendered:ke,ref:j})=>t.jsx(An,{ref:Z=>{j(Z),K.current=Z},height:te,itemCount:me,itemKey:Z=>k[Z]?.transactionId,innerElementType:Ap,onItemsRendered:ke,width:we,style:{willChange:"auto"},overscanCount:kh,itemSize:J,itemData:{checkboxes:P,value:D,allCheckBoxValues:b,groupLabelCheckBox:W,categorizationGroupValue:H,transactionLocalData:k,mode:"always_on",setRowHeight:G,isItemLoaded:U,ref:j,onChange:Q,selectedCheckBoxTransactionIds:A},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:Z})=>{ye(Z)},children:Rp})})})})})})})})},Ap=e=>{const{value:n,allCheckBoxValues:d,groupLabelCheckBox:c,index:h,isDisabled:p,fetchState:i,sortKey:l,sortOrder:r,mode:m,ref:u,onChange:x,onColumnSortConfigChanged:y}=Ep(),{children:C,style:S,...w}=e;return i==="Completed"?t.jsxs(_p,{ref:u,style:{...S,width:"auto"},...w,children:[t.jsx(Np,{children:t.jsx(us,{selectionLimit:q.MAX_SELECTION_LIMIT,value:n,checkBox:{label:t.jsx(Dp,{children:t.jsx(Ps,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:y})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:c,allCheckBoxValues:d,mode:m,draggable:!1,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},name:"transactionCategorizationHeader",index:h,onChangeHandler:I=>hs({event:I,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(Vp,{children:C})]},`${d[h]}-${h}`):null},Hs=s.createContext(void 0),Ep=()=>{const e=s.useContext(Hs);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Rp=({index:e,style:n,data:d})=>{const{checkboxes:c,value:h,groupLabelCheckBox:p,categorizationGroupValue:i,allCheckBoxValues:l,transactionLocalData:r,isItemLoaded:m,setRowHeight:u,ref:x,onChange:y,selectedCheckBoxTransactionIds:C}=d,S=s.useRef(null),w=Se();if(s.useEffect(()=>{S.current?.firstElementChild!=null&&u(e,S.current.firstElementChild.clientHeight)},[e,S,w,r[e]?.transactionReviewLocalData]),m(e)===!0){const I=c[e];return t.jsx(Ei,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:S,children:t.jsx(us,{selectionLimit:q.MAX_SELECTION_LIMIT,checkBox:I,value:h,groupLabelCheckBox:p,allCheckBoxValues:l,mode:I.isDisabled==="readonly"||C.includes(I.value)===!1&&C.length>=q.MAX_SELECTION_LIMIT?"off":"always_on",draggable:!1,isDisabled:I.isDisabled,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:o.sp3},infoIconContainerStyle:{padding:20},name:`${Vt}.${h}`,ref:x,index:e,onChangeHandler:f=>hs({event:f,value:h,allCheckBoxValues:l,groupLabelCheckBox:p,onChange:y})})},i[e])}else return t.jsx(Ei,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:S,children:t.jsx(Hp,{children:t.jsx(Ns,{})})},Zi())},Dp=a.div`
1434
+ flex: 1;
1435
+ width: auto;
1436
+ padding-right: ${o.sp8};
1437
+ `,Op=a.div`
1438
+ width: 100%;
1439
+ height: 100%;
1440
+ background-color: ${e=>e.theme.colors.grey4};
1441
+ `,Fp=a.div`
1442
+ height: 100%;
1443
+ `,Mp=a.div`
1444
+ height: 100%;
1445
+ display: flex;
1446
+ flex-direction: column;
1447
+ max-width: 99.9%;
1448
+ `,zp=a.div`
1449
+ display: flex;
1450
+ width: 100%;
1451
+ height: ${e=>`calc(100% - ${is.valuePx(e.windowSize)})`};
1452
+ flex-direction: column;
1453
+ justify-content: center;
1454
+ align-items: center;
1455
+ `,Bp=a.div`
1456
+ height: 96px;
1457
+ width: 96px;
1458
+ background: ${e=>e.theme.colors.background};
1459
+ border-radius: 50%;
1460
+ cursor: pointer;
1461
+ & svg {
1462
+ margin: ${o.sp5};
1463
+ color: ${e=>e.theme.colors.grey1};
1464
+ }
1465
+ &:hover {
1466
+ & svg {
1467
+ color: ${e=>e.theme.colors.primary};
1468
+ }
1469
+ }
1470
+ `,Pp=a(St)`
1471
+ margin-top: ${o.sp3};
1472
+ color: ${e=>e.theme.colors.hero};
1473
+ `,Ei=a.div`
1474
+ top: ${o.sp0};
1475
+ left: ${o.sp0};
1476
+ padding-bottom: ${o.sp3};
1477
+ box-sizing: border-box;
1478
+ `,_p=a.div`
1479
+ background-color: ${e=>e.theme.colors.grey4};
1480
+ `,Np=a.div`
1481
+ top: 0;
1482
+ left: 0;
1483
+ width: 100%;
1484
+ min-width: 100%;
1485
+ z-index: 11;
1486
+ display: flex;
1487
+ align-items: center;
1488
+ position: sticky;
1489
+ background-color: ${e=>e.theme.colors.grey4};
1490
+ `,Vp=a.div`
1491
+ position: relative;
1492
+ width: auto;
1493
+ height: 100%;
1494
+ `,Hp=a.div`
1495
+ padding-left: ${o.sp8};
1496
+ `,Up=({selectedTab:e,transactionView:n,receiptUploadEndpoint:d,authParams:c,sectionId:h,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,isCOTEnabled:l,setCurrentFooterFormId:r,setLocalDataForCategoryAndClass:m,onTransactionCategorizationRowClick:u,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:S,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:f})=>{const[$,R]=s.useState({transactionId:void 0,lineItemId:void 0}),T=s.useRef(),F=s.useRef({}),{useDynamicConfig:v}=es(),{configValue:k}=v(ts.enableUncategorizedExpenseCategory),A=k?.uncategorized_expense_category_enabled===!0,L=(b,P,W,_)=>{const E={...F.current};E[P]==null&&(E[P]=[]);let H=E[P].findIndex(ee=>ee.lineId===b);if(H===-1){const ee={lineId:b,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};E[P].push(ee),H=E[P].length-1}else{const ee=E[P][H];E[P][H]={...ee,category:{...ee.category,recommendationTypesViewed:[...ee.category.recommendationTypesViewed]},class:{...ee.class,recommendationTypesViewed:[...ee.class.recommendationTypesViewed]},vendor:{...ee.vendor,recommendationTypesViewed:[...ee.vendor.recommendationTypesViewed]}}}_!=null&&_!==""&&!E[P][H][W].recommendationTypesViewed.includes(_)&&E[P][H][W].recommendationTypesViewed.push(_),F.current=E},{transactions:N,transactionLocalData:M,accountsHierarchyList:K,classHierarchyList:B,accountList:V,classList:J,selectedCheckBoxTransactionIds:G,uncategorizedAccounts:O}=n,ie=Ht({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Di(G,M,K,B,p.entityAutoCompleteView),[K,B,G,M,p.entityAutoCompleteView]),values:s.useMemo(()=>Di(G,M,K,B,p.entityAutoCompleteView),[K,B,G,M,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{G.length>0?r(qn):r("expenseAutomationPage")},[G,r]);const ye=ie.handleSubmit(b=>{const P=b[Ln],W=F.current;S(e,P,W),P.forEach(_=>{delete F.current[_]})}),U=async(b,P)=>{if(b!=null){if(b===Ln){const W=ie.getValues(Ln);if(W.length<G.length){w(e,W);return}if(W.length===q.MAX_SELECTION_LIMIT){w(e,W);return}const _=W[W.length-1],E=P[Vt].findIndex(ee=>ee.transactionId===_),H=ie.getValues(`${Vt}.${E}.lineInfo`);if(H!=null){let ee=!1;if(H.every(me=>(ee=q.isAccountUncategorized(O,me[Re].selectedOption,A?["income"]:void 0),!!me[Re].selectedOption&&me[Re].selectedOption!=null&&!ee&&!!me[Ze].selectedOption&&!!me[lt].selectedOption))===!0){w(e,W);return}else{const me=W.filter(D=>D!==_);w(e,me);return}}return}if(b.includes(Re)===!0||b.includes(Ze)===!0){const W=parseInt(b.split(".")[1]),_=parseInt(b.split(".")[3]),E=ie.getValues(`${Vt}.${W}.lineInfo`),H=E[_];if(b.includes(Re)||b.includes(Ze)){const{transactionId:ee,lineId:me,recommendations:D}=H;if(E!=null){const re=H[Re].selectedOption,Q=H[Ze].selectedOption,te=H[lt].selectedOption,we=H[lt].selectedOption,ke=H[lt].defaultOptions,j=ke?.find(de=>de.options?.find(Ve=>Ve.value===te))?.options?.find(de=>de.value===te)?.label,Z=ke?.find(de=>de.options?.find(Ve=>Ve.value===we))?.options?.find(de=>de.value===we)?.label,be=p.entityAutoCompleteView.vendor.find(de=>de.qboId===te),Me=p.entityAutoCompleteView.customer.find(de=>de.qboId===we),_e=D.find(de=>de.vendor?.qboId===te)?.vendor,Le=te||be?.qboId||_e?.qboId?{id:te??be?.qboId??_e?.qboId??"",name:j??be?.name??_e?.name??"",logo:be?.logo??_e?.logo}:void 0,Ae=we||Me?.qboId?{id:we??Me?.qboId??"",name:Z??Me?.name??"",logo:Me?.logo}:void 0,pe=V.find(de=>de.qboId===re),Qe=J.find(de=>de.classId===Q),Je=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[me].account,et=n.transactionLocalData.find(de=>de.transactionId===ee)?.transactionReviewLocalData.lineItemById[me].class;m(e,ee,me,N,Le?.id,Ae?.id,b.includes(Re)&&pe!=null?{...pe,isPreFilled:!1}:Je,b.includes(Ze)&&Qe!=null?{...Qe,isPreFilled:!1}:et,void 0,D,A)}return}}if(b.includes(lt)){const W=parseInt(b.split(".")[1]),_=parseInt(b.split(".")[3]),E=ie.getValues(`${Vt}.${W}.lineInfo`);if(E!=null){const H=E[_],{transactionId:ee,recommendations:me}=H,D=H[lt].selectedOption,re=H[lt].selectedOption,Q=H[lt].defaultOptions,te=Q?.flatMap(pe=>pe.options)?.find(pe=>pe.value===D)?.label,we=Q?.flatMap(pe=>pe.options)?.find(pe=>pe.value===re)?.label,ke=p.entityAutoCompleteView.vendor.find(pe=>pe.qboId===D),j=p.entityAutoCompleteView.customer.find(pe=>pe.qboId===re),Z=me.find(pe=>pe.vendor?.qboId===D)?.vendor,be=D!==""&&D!=null?D:te!==""&&te!=null?te:"",Me=(ke?.qboId!=null&&ke.qboId!==""?ke.qboId:null)??(Z?.qboId!=null&&Z.qboId!==""?Z.qboId:null)??(D!=null&&D!==""?D:null),_e={id:Me??te??"",name:te??ke?.name??Z?.name??"",logo:ke?.logo??Z?.logo},Le=j?.qboId!=null&&j.qboId!==""?{id:j.qboId??re??"",name:we??j.name??"",logo:j.logo}:void 0,Ae=N.find(pe=>pe.id===ee);if(Ae!=null){const pe=n.transactionLocalData.find(Ve=>Ve.transactionId===Ae.id)?.transactionReviewLocalData,Qe=pe?.lineItemById[H.lineId],Je=q.isVendorTransaction(Ae)===!0?pe?.selectedEntity:Qe?.selectedEntityLine,et=_e.id!==""?{id:be,name:te??be,type:"vendor",qboId:be,zeniId:be,logo:_e.logo,isPreFilled:Je?.id===Me&&Je?.isPreFilled}:Le?.id!=null&&Le.id!==""?{id:Le.id,name:Le.name,type:"customer",qboId:Le.id,zeniId:Le.id,logo:Le.logo}:void 0,de={transactionId:{id:Ae.id,type:Ae.type},transaction:Ae,lineIds:Ae.type!=="journal_entry"?Ae.lines?.map(Ve=>Ve.id)??[]:[H.lineId]};et?.type==="customer"?f(H.amount.amount,de,!1,e,et,Le,A):I(H.amount.amount,de,!1,e,et,_e,A)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const b=ie.watch((P,{name:W})=>{W!=null&&P!=null&&hn(()=>U(W,P))});return()=>{b.unsubscribe()}}),s.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const b=n.transactionLocalData.find(P=>P.transactionId===$.transactionId);if(b){const{transactionReviewLocalData:P}=b,{selectedEntity:W}=P,_=$?.lineItemId??P.sortedLineItems[0],E=P.lineItemById[_],H=E.selectedEntityLine;T.current?.(go(p.entityAutoCompleteView,W??H,E?.recommendationsWithCOT??[]))}R({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const he=(b,P)=>{i.onAutoCompleteInputChange?.(b),T.current=P},Ce=s.useRef(null);return t.jsx(qp,{ref:Ce,"data-testid":z("transaction-categorization-list-page"),children:t.jsx(Ut,{...ie,children:t.jsx("form",{id:Ri(qn),onSubmit:ye,style:{height:"100%",width:"100%"},"data-testid":z(Ri(qn)),children:t.jsx(Tp,{selectedTab:e,sectionId:h,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:R,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:y,onFetchTransactionCategorizationList:C,onTransactionCategorizationRowClick:u,vendorLoadOptions:he,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:Ce,isCOTEnabled:l,cotTracking:{onCOTView:L},isUncategorizedExpenseCategoryEnabled:A})})})})},Ri=e=>`${e}_form`,Di=(e,n,d,c,h)=>({[Vt]:n.map(p=>Wp(p.transactionId,p.transactionReviewLocalData,d,c,h)),[Ln]:e}),Wp=(e,n,d,c,h)=>{const{lineItemById:p,sortedLineItems:i,selectedEntity:l}=n,r=Object.values(p).sort((u,x)=>i.indexOf(u.lineId)-i.indexOf(x.lineId)),m=r[0]?.lineId;return{[_s]:r.map(u=>{const x=u.account?.qboId??u.account?.accountId,y=u.class?.classId,C=u.selectedEntityLine;return{id:u.id,transactionId:u.transactionId,type:u.type,amount:u.amount,lineDetailType:u.lineDetailType,platformLineDetailType:u.platformLineDetailType,lineTransactionType:u.lineTransactionType,postingType:u.postingType,postingTypeName:u.postingTypeName,customer:u.customer,vendor:u.vendor,billable:u.billable,item:u.item,isCategoryMiscategorized:u.isCategoryMiscategorized,isClassMiscategorized:u.isClassMiscategorized,lineId:u.id,[Re]:{selectedOption:x,allOptions:ds(d,u.recommendationsWithCOT)},[Ze]:{selectedOption:y,allOptions:cs(c,u.recommendationsWithCOT)},[lt]:{selectedOption:l?.id??C?.id??l?.name??C?.name,defaultOptions:go(h,l??C,n.lineItemById[m]?.recommendationsWithCOT??[])},[Zh]:u.lineEntity,[Yh]:u.recommendationsWithCOT??[]}}),transactionId:e,[Xh]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Qh]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},qp=a.div`
1497
+ display: flex;
1498
+ min-height: 100%;
1499
+ width: 100%;
1500
+ height: 100%;
1501
+ flex-direction: column;
1502
+ background-color: ${e=>e.theme.colors.grey4};
1503
+ z-index: 2;
1504
+ `,Oi={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},Kp=a.div`
1505
+ width: 100%;
1506
+ display: flex;
1507
+ justify-content: center;
1508
+ align-items: center;
1509
+ flex: 1;
1510
+ background: ${e=>e.theme.colors.grey4};
1511
+ box-sizing: border-box;
1512
+ `,Jp=a.div`
1513
+ display: flex;
1514
+ flex-direction: column;
1515
+ width: 100%;
1516
+ `,Gp=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setResetJeAccountSettingsForm:h,expenseAutomationViewSelector:p,authParams:i,receiptUploadEndpoint:l,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,enableMonthEndInsightsZeniGPTFeature:x,monthEndInsightsPreviewMode:y,monthEndInsightsCustomerRequestData:C,allThreadsSectionOpen:S,loggedInUser:w,isCOTEnabled:I,setCurrentFooterFormId:f,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:T,onFetchMissingReceiptsList:F,onMissingReceiptsRowClick:v,onUploadReceiptAttachment:k,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:L,onReconTabColumnSortConfigChanged:N,onReloadReconciliationListPage:M,onUpdateReconcileTabLocalData:K,onUpdateMissingReceiptsUIState:B,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:G,handleJeScheduleClick:O,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:ye,onPostJESchedule:U,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:Ce,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:P,onUpdateSelectedCheckboxTransactionIds:W,improveMonthEndInsightsUsingZeniGPTClick:_,onRemoveFileAttachment:E,onUpdateFileAttachment:H,onCloseAllThreadsSection:ee,onEditMonthEndInsightsClick:me,previewMonthEndReport:D,saveMonthEndReport:re,onOpenFileAttachmentSnackBar:Q,onCloseFileAttachmentSnackBar:te,onClickCustomerRequest:we,sendMonthEndReport:ke,markAsReview:j,onReloadPage:Z,onBackClick:be,updateOperatingExpensesIdsForReview:Me,updateSectionCollapseStatus:_e,onFetchReimbursementView:Le,redirectToVendorDetailPage:Ae,updateSectionIdsForReview:pe,onUpdateFluxAnalysisUIState:Qe,fetchFluxViewOnScroll:Je,onFetchFluxViewList:et,setIsJeAccountSettingsOpened:de,onReviewClicked:Ve,setOpenDrawerClicked:it,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:oe,onReconListPageScroll:ve,onAddStatementClick:Ie}=e,{currentSelectedView:$e,missingReceipts:st,transactionView:Be,selectedPeriod:It,monthEndInsights:ot,selectedTransactionCategorizationTab:Wt,reconciliation:on}=p;switch($e){case"transaction_categorization":return Be.fetchState==="Completed"&&Be.transactionLocalData.length===0?t.jsx(bt,{tab:$e,title:Ue($e).allDoneText.title,subTitle:Ue($e).allDoneText.subTitle}):t.jsx(Up,{setCurrentFooterFormId:f,selectedPeriod:It,selectedTab:Wt,sectionId:Vt,transactionView:Be,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:J,onUpdateScrollYOffSetTransactionCategorizationUIState:G,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:T,setLocalDataForCategoryAndClass:he,resetTransactionCategorizationLocalData:Ce,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:P,onUpdateSelectedCheckboxTransactionIds:W,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(cu,{setIsJeAccountSettingsOpened:de,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:f,handleJeScheduleClick:O,ignoreRecommendedJeSchedule:ie,onJESchedulesFormDataChange:ye,onPostJESchedule:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(bt,{tab:$e,title:Ue($e).allDoneText.title,subTitle:Ue($e).allDoneText.subTitle}):t.jsx(Zu,{onUpdateMissingReceiptsUIState:B,onFetchMissingReceiptsList:F,missingReceipts:st,receiptUploadEndpoint:l,authParams:i,selectedPeriod:It,onMissingReceiptsRowClick:v,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:L,onUploadReceiptAttachment:k});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(ea,{fetchState:"In-Progress"});{const se={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ot.companyName,url:window.location.href},{url:xe,...Te}=se,He={...Te};return t.jsx(Jp,{children:t.jsx(jh,{allThreadsSectionOpen:S,customerRequestData:C,companyId:r,enableZeniGPTFeature:x,filterMetaData:He,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:_,isZeniUser:w.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ot,newThreadMetadata:se,onClickCustomerRequest:we,onCloseAllThreadsSection:ee,onCloseFileAttachmentSnackBar:te,onOpenFileAttachmentSnackBar:Q,onRemoveFileAttachment:E,onUpdateFileAttachment:H,previewMode:y,previewMonthEndReport:D,saveMonthEndReport:re,onEditClick:me,sendMonthEndReport:ke})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(bt,{tab:$e,title:Ue($e).allDoneText.title,subTitle:Ue($e).allDoneText.subTitle}):t.jsx(Pd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:j,onReloadPage:Z,onBackClick:be,updateOperatingExpensesIdsForReview:Me,updateSectionIdsForReview:pe,onUpdateFluxAnalysisUIState:Qe,setCurrentFooterFormId:f,fetchFluxViewOnScroll:Je,onFetchFluxViewList:et,updateSectionCollapseStatus:_e,onFetchReimbursementView:Le,redirectToVendorDetailPage:Ae});case"reconciliation":return t.jsx(Sd,{onReconListPageScroll:ve,onReloadReconciliationListPage:M,currentFooterFormId:n,reconciliation:on,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:Ve,setOpenDrawerClicked:it,setCurrentFooterFormId:f,onReconTabColumnSortConfigChanged:N,onUpdateReconcileTabLocalData:K,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Ft,onSaveReconciliation:kt,onSaveReconciliationReview:le,onReconMatchedTransactionClick:oe,onAddStatementClick:Ie});default:return t.jsx(bt,{tab:$e,title:Ue($e).allDoneText.title,subTitle:Ue($e).allDoneText.subTitle})}};function Zp(e){const n=Se(),{currentSelectedView:d}=e.expenseAutomationViewSelector,c=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",h=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Kp,{windowSize:n,style:{...h===!0?{paddingLeft:Oi.subSectionContainerLeftRightPadding.value(n),paddingRight:Oi.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Gp,{...e})})}const Yp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Xp=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M12 22.0619L11.4825 21.5444C9.66604 19.7284 7.20261 18.7082 4.63406 18.7084H2.17687C1.92268 18.7082 1.67898 18.607 1.49932 18.4272C1.31966 18.2474 1.21875 18.0036 1.21875 17.7494V2.89563C1.21875 2.64152 1.3197 2.39781 1.49938 2.21813C1.67906 2.03845 1.92276 1.9375 2.17687 1.9375H3.94219C5.53731 1.93666 7.10793 2.32989 8.51448 3.08223C9.92104 3.83457 11.12 4.92273 12.0047 6.25L12 22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22.0619L12.5175 21.5444C14.334 19.7284 16.7974 18.7082 19.3659 18.7084H21.8231C22.0773 18.7082 22.321 18.607 22.5007 18.4272C22.6803 18.2474 22.7813 18.0036 22.7812 17.7494V2.89563C22.7812 2.64152 22.6803 2.39781 22.5006 2.21813C22.3209 2.03845 22.0772 1.9375 21.8231 1.9375H20.0625C18.4674 1.93666 16.8968 2.32989 15.4902 3.08223C14.0837 3.83457 12.8847 4.92273 12 6.25V22.0619Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 6.47765C5.88047 6.33155 7.68276 6.84169 9.14781 7.91484",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 10.3118C5.88051 10.1652 7.68295 10.6754 9.14781 11.7489",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.07031 14.1435C5.88058 13.9978 7.68285 14.5083 9.14781 15.5817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.5882 8.40625H16.6392C16.3407 8.40684 16.0516 8.51125 15.8217 8.70157C15.5917 8.8919 15.4351 9.15629 15.3786 9.44943C15.3222 9.74258 15.3695 10.0462 15.5125 10.3083C15.6554 10.5704 15.885 10.7746 16.162 10.8859L18.1392 11.6762C18.4162 11.7876 18.6458 11.9918 18.7887 12.2539C18.9316 12.516 18.9789 12.8196 18.9225 13.1128C18.8661 13.4059 18.7095 13.6703 18.4795 13.8606C18.2495 14.0509 17.9605 14.1553 17.662 14.1559H15.7129",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Qp=a.div`
1517
+ width: 100%;
1518
+ height: 100vh;
1519
+ display: flex;
1520
+ flex-direction: column;
1521
+ background: ${e=>e.theme.colors.grey4};
1522
+ box-shadow: ${e=>e.theme.colors.elevation1};
1523
+ `,em=a.div`
1524
+ height: 100vh;
1525
+
1526
+ display: flex;
1527
+ flex-direction: column;
1528
+ align-items: center;
1529
+ min-width: 100%;
1530
+ flex: 1;
1531
+
1532
+ ${e=>e.theme.breakpoints.down("md")} {
1533
+ width: 100%;
1534
+ padding-left: ${o.sp0};
1535
+ }
1536
+ `,Fi=a(Gs)`
1537
+ height: ${o.sp3};
1538
+ width: ${o.sp3};
1539
+ cursor: pointer;
1540
+ color: inherit;
1541
+ `,Mi=a(Yp)`
1542
+ height: ${o.sp3};
1543
+ width: ${o.sp3};
1544
+ cursor: pointer;
1545
+ color: inherit;
1546
+ `,{common:{footer:De,texts:{maxLimitReached:tm,confirmAction:nm},headers:om,create:im,strings:rn,texts:nn,cancel:sm,confirm:am,monthsByIndex:rm},dateFormat:{visual:{MMMDCommaYYYYformat:zi}},expenseAutomation:ln}=je.getLocalizedStrings(),Nm=e=>{const{expenseAutomationViewSelector:n,isDisabled:d,isRealtimeInsightsFeatureEnabled:c,isUncategorizedExpenseCategoryEnabled:h,isCOTEnabled:p,onUpdateTab:i,onReconTabUpdate:l,onUpdateStep:r,onSearchTextChanged:m,onRefresh:u,onClose:x,onBack:y,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:S,clearJeScheduleLocalData:w,onSaveReconciliation:I}=e,{currentSelectedView:f,allSteps:$,missingReceipts:R,jeSchedules:T,fluxAnalysis:F,monthEndInsights:v,transactionView:k,selectedTransactionCategorizationTab:A,reconciliation:L,selectedPeriod:N}=n,[M,K]=s.useState("expenseAutomationPage"),[B,V]=s.useState(()=>{}),[J,G]=s.useState(!1),O=Se(),ie=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ye=ie?Ni:Vi,{openThread:U,setOpenThread:he}=s.useContext(ye),[Ce,b]=s.useState(!1),[P,W]=s.useState(!1),_=$.find(oe=>oe.step===f),{nextStep:E,previousStep:H}=dm($,f),{uiState:{searchString:ee,pageToken:me},totalCountByTab:D,transactions:re,fetchStateByTransactionTabs:Q,transactionLocalData:te}=k,{selectedReconAccount:we,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ke}}}}=L;let j="Not-Started",Z="complete";switch(f){case"missing_receipts":j=R.refreshStatus.fetchState,Z=R.completionStatus;break;case"je_schedules":j=T.refreshStatus.fetchState,Z=T.completionStatus;break;case"month_end_insights":v!=null&&(j=v?.fetchState);break;case"flux_analysis":j=F.refreshStatus.fetchState,Z=F.completionStatus;break;case"transaction_categorization":j=k.refreshStatus.fetchState,Z=k.completionStatus;break;case"reconciliation":we==null?(j=L.refreshStatus.fetchState,Z=L.completionStatus):(j=L.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",Z=L.completionStatus)}const be=()=>{B()},{saveStatus:Me,selectedCheckBoxTransactionIds:_e}=k,Le=()=>{const oe=Rs(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),ve=q.dateNow(),{month:Ie,year:$e}=N,st=q.dateNow().set("month",Ie-1).set("year",$e).endOf("month");switch(M){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:oe===!0?De.markAsReviewed:nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(n.fluxAnalysis.reviewOperatingExpensesIds.length,fs,O,nn.vendor,f),cancelBtn:{label:De.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{S([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:De.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:Me.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(_e.length,q.MAX_SELECTION_LIMIT,O,nn.transaction,f),cancelBtn:{label:De.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(A,re.map(Be=>Be.id),N,!1,D[A],q.getLineItemsByTransactionIdsFromLocalData(te,A),h,me)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:De.next,backBtnLabel:De.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:De.next,style:{justifyContent:"space-evenly"},isDisabled:d||_?.isNextDisabled,suffixIcon:t.jsx(Fi,{}),onClick:()=>{r(E.step)}},cancelBtn:{label:De.back,isDisabled:d||_?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Mi,{}),onClick:()=>{r(H.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:De.reconcile,backBtnLabel:De.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:De.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(L.reconciliationTabsState.balances.variance.amount===0&&ve.isAfter(st)),isLoading:L.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:eo(ke.length,1/0,O,nn.transaction,f),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:L.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:De.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:De.save,backBtnLabel:De.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:De.save,isLoading:T.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>be(),label:De.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const Be=f==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,It=f==="reconciliation"&&n.reconciliation.selectedAccountId==null,ot=f==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Wt=E.step==="month_end_insights"&&(f==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||It),on=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",se=f==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",xe=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||_?.isNextDisabled===!1),Te=E.step==="month_end_insights"&&(It||f==="flux_analysis")?!xe:_?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:De.next,backBtnLabel:De.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Wt===!0?cm(n.selectedPeriod.month):De.next,style:{justifyContent:"space-evenly"},isDisabled:Te,suffixIcon:t.jsx(Fi,{}),onClick:()=>{on?i("autoCategorized"):Be?l("reconcile"):r(E.step)}},cancelBtn:{label:De.back,isDisabled:d||_?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Mi,{}),onClick:()=>{se?i("review"):ot?l("review"):Be?y():r(H.step)}}}}}},Ae=()=>{switch(M){case"expenseAutomationFluxPage":return{confirmAction:()=>{b(!1),S([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{b(!1),C(A,re.map(oe=>oe.id),N,!1,D[A],q.getLineItemsByTransactionIdsFromLocalData(te,A),h,me),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{b(!1),w(),x()}};default:return{confirmAction:()=>{b(!1)},confirmationDescription:rn.empty}}},pe=()=>{M==="expenseAutomationFluxPage"||M==="expenseAutomationJESchedulePage"||M==="expenseAutomationTransactionsPage"?b(!0):x()},{primaryBtn:Qe,cancelBtn:Je,leftSideComponent:et}=Le(),{confirmAction:de}=Ae(),Ve=oe=>{if(f==="transaction_categorization"&&(oe==="autoCategorized"||oe==="review"))return{hideCountInTab:D[oe]>ln.common.numbers.maximumCount,count:D[oe],isFetching:Q[oe].fetchState==="In-Progress"};if(f==="reconciliation"){const{reconciliation:ve}=n,{selectedAccountId:Ie}=ve;return Ie==null?{count:0,isFetching:!1}:oe==="review"?{count:ve.accountReconciliationsByAccountID[Ie]?.accountReconEntity?.transactionsToReview.length,isFetching:ve.accountReconciliationsByAccountID[Ie]?.transactionFetchState.fetchState==="In-Progress"}:{count:ve.accountReconciliationsByAccountID[Ie]?.accountReconEntity?.transactionsToReconcile.length,isFetching:ve.accountReconciliationsByAccountID[Ie]?.transactionFetchState.fetchState==="In-Progress"}}},it=f==="reconciliation"&&L.selectedAccountId!=null&&L.selectedReconAccount!=null,{month:ct,year:Ot}=N,jt=q.dateNow().set("month",ct-1).set("year",Ot),Ft=jt.startOf("month").format(zi),kt=jt.endOf("month").format(zi),le=`${Ft} ${rn.hyphen} ${kt}`;return t.jsxs(Qp,{children:[Ce?t.jsx(Ws,{containerStyle:{width:356},titleComponent:t.jsx(xm,{children:nm}),primaryButtonText:am,secondaryButtonText:sm,proceedButtonVariant:"danger",action:{onOkClick:()=>{de()},onCancelClick:()=>b(!1)},descriptionComponent:t.jsx(fm,{children:ln.confirmationDescription})}):null,t.jsxs(em,{children:[t.jsx(Nr,{onBack:y,navBarCustomElement:f==="reconciliation"&&L.selectedAccountId!=null?t.jsx(lm,{reconciliation:L}):void 0,onReconTabUpdate:l,currentRecontab:L.selectedTab,reconcileDetailPageFetchState:L.selectedAccountId!=null?L.accountReconciliationsByAccountID[L.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:it?L.selectedAccountId:void 0,currentSelectedView:f,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Ue(f,D.autoCategorized,it?L.selectedAccountId:void 0,it?L.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,it?le:void 0),searchText:ee,currentTab:A,getTabCountAndFetchState:Ve,completionStatus:Z,forceShowSubtitle:J===!0||f==="je_schedules"&&(T.fetchState==="In-Progress"||T.accountSettingsView.fetchState==="In-Progress"),refreshStatus:j,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??rn.empty,isZeniUser:ie,onAllThreadsClick:()=>{U!=null&&he(null),W(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:pe}),t.jsx(Zp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:G,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:P,setCurrentFooterFormId:K,currentFooterFormId:M,onCloseAllThreadsSection:()=>W(!1)}),t.jsx(Ne,{controller:f!=="month_end_insights",children:t.jsx(Hi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:um(M),primaryBtn:Qe,leftSideComponent:et,cancelBtn:Je,separatorStyle:{marginRight:o.sp4}})})]})]})},lm=({reconciliation:e})=>{const n=vt(),{clearedBalance:d,variance:c,variancePercentage:h,deposits:p,payments:i}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:r}=e,{transactionFetchState:m}=r??{};return t.jsx(ym,{children:t.jsxs(Cm,{children:[t.jsxs(to,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(no,{children:t.jsx(wm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Ke("0,0.00",l)}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(to,{children:[t.jsx(no,{children:t.jsx(vm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(so,{children:Ke("0,0.00",d)}),t.jsxs(jm,{children:[t.jsx(io,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(fe,{placement:"bottom",title:t.jsxs(km,{children:[t.jsxs(Bi,{children:[t.jsxs(Pi,{children:[i.count," ",nn.payments]}),t.jsx(_i,{children:Ke("0,0.[00]",i.totalAmount)})]}),t.jsxs(Bi,{children:[t.jsxs(Pi,{children:[p.count," ",nn.deposits]}),t.jsx(_i,{children:Ke("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(Sm,{})})]})]})})]}),t.jsxs(to,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(no,{children:t.jsx(bm,{})}),t.jsx(oo,{children:m?.fetchState==="In-Progress"?t.jsxs(ao,{children:[t.jsx(Xt,{height:25,width:120}),t.jsx(Xt,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(so,{children:[t.jsx("span",{style:{color:c.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:Ke("0,0.00",c)}),h!=null&&c.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${h.toFixed(2)}%)`}):null]}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.variance})]})})]})]})})},eo=(e,n,d,c,h)=>{const p=c,i=(e>1?p+"s":p)+" selected";return e>0?t.jsxs(hm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(pm,{multiDigit:e>=5,children:e}),t.jsx(mm,{children:i}),e===n?t.jsx(gm,{children:`(${tm})`}):null]}):null},cm=e=>{const n=rm[e];return`${im}${rn.space}${n}${rn.space}${om.insights}`};function dm(e,n){const d=e.findIndex(l=>l.step===n);if(d===-1)throw new Error("currentStep not found in allSteps array");const c=(d+1)%e.length,h=(d-1+e.length)%e.length,p=e[c],i=e[h];return{nextStep:p,previousStep:i}}const um=e=>`${e}_form`,hm=a.div`
1547
+ display: flex;
1548
+ justify-content: flex-start;
1549
+ align-items: center;
1550
+ gap: ${o.sp2};
1551
+ margin-left: ${e=>e.currentView==="flux_analysis"?"36px":o.sp8};
1552
+ `,pm=a(gt)`
1553
+ height: 18px;
1554
+ width: ${e=>e.multiDigit?"auto":"18px"};
1555
+ padding: ${o.sp0} 6px;
1556
+ border-radius: ${o.sp12};
1557
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
1558
+ display: flex;
1559
+ justify-content: center;
1560
+ align-items: center;
1561
+ `,mm=a(ze)`
1562
+ color: ${e=>e.theme.colors.primary};
1563
+ `,gm=a(St)`
1564
+ color: ${Xe.important};
1565
+ `,xm=a(Us)`
1566
+ margin-top: ${o.sp5};
1567
+ padding-left: ${o.sp8};
1568
+ padding-right: ${o.sp8};
1569
+ color: ${e=>e.theme.colors.primary};
1570
+ word-break: break-word;
1571
+ `,fm=a(qs)`
1572
+ color: ${e=>e.theme.colors.primary};
1573
+ margin-top: ${o.sp2};
1574
+ margin-bottom: ${o.sp2};
1575
+ `,ym=a.div`
1576
+ display: flex;
1577
+ justify-content: center;
1578
+ align-items: center;
1579
+ padding: ${o.sp3} ${o.sp0};
1580
+ `,Cm=a.div`
1581
+ width: 100%;
1582
+ display: flex;
1583
+ justify-content: center;
1584
+ align-items: center;
1585
+ gap: ${o.sp1};
1586
+ `,to=a.div`
1587
+ display: flex;
1588
+ justify-content: center;
1589
+ align-items: center;
1590
+ gap: ${o.sp3};
1591
+ `,no=a.div`
1592
+ width: ${o.sp7};
1593
+ height: ${o.sp7};
1594
+ border-radius: 50%;
1595
+ display: flex;
1596
+ justify-content: center;
1597
+ align-items: center;
1598
+ background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
1599
+ `,oo=a.div`
1600
+ display: flex;
1601
+ flex-direction: column;
1602
+ `,io=a(St)`
1603
+ color: ${e=>e.theme.colors.hero};
1604
+ `,so=a(Wi)`
1605
+ min-width: 180px;
1606
+ color: ${e=>e.theme.colors.primary};
1607
+ `,wm=a(Xs)`
1608
+ color: ${e=>e.theme.colors.primary};
1609
+ width: ${o.sp4};
1610
+ height: ${o.sp4};
1611
+ `,bm=a(Qs)`
1612
+ color: ${e=>e.theme.colors.primary};
1613
+ width: ${o.sp4};
1614
+ height: ${o.sp4};
1615
+ `,vm=a(Xp)`
1616
+ color: ${e=>e.theme.colors.primary};
1617
+ width: ${o.sp4};
1618
+ height: ${o.sp4};
1619
+ `,Sm=a(qi)`
1620
+ width: ${o.sp3};
1621
+ height: ${o.sp3};
1622
+ color: ${e=>e.theme.colors.hero};
1623
+ :hover {
1624
+ color: ${e=>e.theme.colors.primary};
1625
+ }
1626
+ `,jm=a.div`
1627
+ display: flex;
1628
+ align-items: center;
1629
+ gap: ${o.sp1};
1630
+ `,km=a.div`
1631
+ background-color: ${Xe.overlayDark};
1632
+ padding: 2px ${o.sp2};
1633
+ border-radius: ${o.sp1};
1634
+ `,Bi=a.div`
1635
+ display: flex;
1636
+ justify-content: space-between;
1637
+ gap: ${o.sp2};
1638
+ `,Pi=a.div`
1639
+ text-transform: capitalize;
1640
+ `,_i=a(St)`
1641
+ color: ${Xe.primaryDark};
1642
+ align-self: "flex-end";
1643
+ `,Xt=a(Rt)`
1644
+ border-radius: ${o.sp2};
1645
+ `,ao=a.div`
1646
+ display: flex;
1647
+ flex-direction: column;
1648
+ min-width: 180px;
1649
+ gap: ${o.sp1};
1650
+ `;export{xm as ConfirmationPopUpTitle,Nm as default,dm as getNextAndPreviousSteps,um as uniqueFormName};