@zeniai/web-cockpit-ui 1.14.42-qa → 1.14.43-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 (228) hide show
  1. package/dist/assets/{ACHDetailsPage-C0Ys2JJm-DO_oU6A_.js → ACHDetailsPage-CmrHphBc-CCjHb-P6.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CsR8PRb9-CR5nd_X3.js → AIPerformancePage-DVLZQQLx-zn-23nDO.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-GuppZ3vX-CeDVgzX0.js → AccountInfoPage-imteGSK1-C9QvJYjb.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BLKO0eIw-bPEBjQFC.js → AccountInfoPageContent-DIjQnfrv-BrFyIq6Y.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DxcSHNgE-D2uL0GmW.js → AccountLockedInfoModal-LYiLlZrv-CQT40dfU.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BoS3J4pw-CHY_XEBy.js → AccountReconDetailsDrawerPage-CSzw7Xdo-Bv21u4kp.js} +1 -1
  7. package/dist/assets/{AccountRow-Dj74AzIh-xP3FLMcB.js → AccountRow-DnMX1pTV-DzyPY1GP.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-MQ_e8aZu-B-b5q7Pi.js → AccountsPromoCardStack-BY9-YdTi-oCbxhKHP.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-LpGynQhq-CazlktNs.js → AddAddressForCardDrawer-BY8rla0d-DeNAiW75.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-wtm2Oua5-BVXzwSjP.js → AddToWalletPage-BND3tkMk-DnGY-X4j.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-e98Qmrut-BLJFH4aK.js → AgingReportsPage-C1HG4wzc-D_51o2Vw.js} +1 -1
  12. package/dist/assets/{AllUserItems-Cyr74U6h-BEjcecnQ.js → AllUserItems-rYc34keO-Cx2yE3IC.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Kjz7NPLx-BSVEV7Qf.js → ApAgingDetailPage-CNG6prpn-C4L_FUMN.js} +1 -1
  14. package/dist/assets/{AppBasePage-DrR3bM5Z-DwrgkTN9.js → AppBasePage-Dk4672v_-krp90oaN.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C2GlTktJ-BervwsJr.js → AppDrawerContent-Y99P1DCR-DnO5NpXg.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-Cy9uHg-R-sb01mezt.js → ApprovalRulesSettingsPage-CO8-E7dA-D6eiQ5KV.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CtxyhI9X-B5YCVZL2.js → ArAgingChart-CsuanjH1-DSoDp9i5.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-GX7S1gNm-I8t7YWod.js → ArAgingDetailPage-D6CHRGxo-d25mgZbl.js} +1 -1
  19. package/dist/assets/{AttachmentView-C8CksG-9-hqMTc_ZB.js → AttachmentView-B3p8mkIi-DG3k711N.js} +1 -1
  20. package/dist/assets/{BankAccountSection-8JPKANMP-C-OF_cda.js → BankAccountSection--gqsJj6B-UPd-Yh1u.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-HW7t6lPN-BxYKpJiW.js → BankAccountWarningSection-BM-Bu8CI-BPZDfXvA.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-C_jyBPLn-Wg4RTCY7.js → BankConnectionsSettingsPage-B_RVLsvX-Chn1l7AE.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BwuHMPBb-BthKHLXO.js → BillDetailPage-Bu20m9VL-BUA39mWG.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-9RqkaWf2-Ce6S7eTt.js → BillPayApprovalRuleDetailPage-CR168utn-CkPCJz8P.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CZmACduz-DMDHXhbZ.js → BillPayApprovalRulesPage-DQbLEENj-DZMa4MYn.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-C2m0GTw3-BiegkzcQ.js → BillPayPromoPage-DqUNPVeq-DgNZSmr8.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-C71BRWUw-C_vuAOSC.js → BillPaySetUpPage-BO8V-KVh-B0fHP_CJ.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-Gc3cUKmE-ClnSz0Xy.js → BillingSettingsPage-clzpJwrI-D8bCm6Ri.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CO1oJuvH-BWr9AvlU.js → BillsBulkReviewDrawerPage-CFldRiX8-CLbuQuW0.js} +1 -1
  30. package/dist/assets/{BoxItem-D09XMKDc-Bw3kfbzM.js → BoxItem-CnpQOIVn-CNkfS6h2.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Ef4KSPWc-FGSd4FWB.js → BusinessVerificationPage-DKmaCoDK-pfIQg2S-.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-Chba_z2--CnmWtDil.js → CardNumberSubText-uaXIushe-Bx2nZV75.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DAM-IJ8V-msI_KaQs.js → CashbackDetailPage-DrW60zjw-Dbf3vfs6.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-U_ZuntGp-DdRX435G.js → ChargeCardDetailPage-X1HoUp96-DOMbUjNw.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-DJ5TbLO--DC8i8t37.js → ChargeCardListPage-_0lUmAxM-B3fy-mzD.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D7BV3Iv9-C5GhRKBn.js → ChargeCardListTable-mfIUvL0A-CPKekIhI.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-CMqzRnza-CJ_g_fWc.js → ChargeCardPromoPage-Bo2JJ5g4-CLbzwd3s.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-dOz2soLF-BNyPEoCo.js → ChargeCardSetupPage-D9IikPGO-RTClLCON.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-S2JH9s6i-DZCRS7UG.js → ChargeCardStatementsPage-Ck3qug5N-Bb-MPmDp.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-Bv0OpE88-aSHBcI_8.js → ChargeCardUtils-BEBqV4Ri-D_Hnspw1.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-4Rv__bdV-BGiRorBN.js → ChaseOverlay-CauClKmi-CFbGjU4W.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-BKogbkJv-BgGR0y3z.js → CheckDepositDrawerPage-DmszT7bh-rDvzmJWy.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-B_qvVX0p-BzLwdCFV.js → CollapsableReportTable-CHthdzdj-ChiC9ii3.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-aAwv9WfC-CXS756Yr.js → CompanyOfficerDetailsSection-BEb3_zYO-DcsmBnYA.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-DchSKG4l-DSlNuaik.js → CompanyPassportCard-FhjZyorS-BMpg0d2K.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-DLIJn7Fp-BtIHuALv.js → CompanyPassportPage-BlhNB8Ah-VPSKwD76.js} +1 -1
  47. package/dist/assets/{CompleteProfile-Bf5sNhdg-CmWt1hc0.js → CompleteProfile-Bk9Oyn1_-BwRdLNNT.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BPWFB4Ty-CXWnM85o.js → ConfettiBurst-DZLI1m4w-CVaN18FA.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BTWihvJ--DyiROacC.js → CreateOrEditVendorPage-C3CFRcUl-Cs6KHLA1.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-B5p_onzw-DA0RqcSj.js → CreditCardPaymentDrawerPage-Drl9yZi5-gMAp6Fc4.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-CTpwe7CS-BwlpGWY3.js → CreditCardPaymentPlgSection-D-Ptzdeo-DV96PY8N.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-Dn9EcyiE-BaNsJGR4.js → CurrencySelectField-CTAalWEI-CLkCFXC5.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage--C7Nj5oq-BhxcUwoR.js → CustomerOnboardingActivationPage-BkPgpEPw-HvYys8Le.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BAZbPHa2-HrAOAIJ-.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BEldzNUC-DgSmlNNg.js → CustomerOnboardingDetailPageSkeleton-DzG4nVbk-Dl9zYjyQ.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BWPx0oGa-CH7bgFJQ.js → CustomerOnboardingNoStepsPage-Czttv30c-DMfPS84t.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-CQsXgrSi-DtqPleyX.js → CustomerOnboardingPage-CNXBzMG5-DJK4W9F2.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Ba-hBJDr-CRi7Fs7-.js → CustomerOnboardingProductSuitePage-BArjfUBb-C4vD90lw.js} +1 -1
  59. package/dist/assets/{Dashboard-D9a8ZSVk-CqZBwIFD.js → Dashboard-DyA5sBz3-BbKJ3Sxy.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DC7almyE-CxGTnBBu.js → DashboardReportPage-DvUvM8lA-BLhDX9Wv.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-BZPfkv0W-C9IxzdCW.js → DashboardSidebarBackgroundAnimation-CAa8yETt-jTqz5gzA.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-D6Pxnskx-CkQ-E6uU.js → DepositAccTransactionItem-VZZvr2Gl-jIVsrsNC.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-RPv15wO3-C1khFOLd.js → DepositAccTransactionListPage-xt11Y65Z-D4SLXGqA.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-C7SMSdym-C6AsUgPa.js → DomesticWireDetailsPage-DmE3TVQk-DloHnEEV.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DSuuIFd2-CtAaHiDX.js → DownloadOverlay-DBhAvmRv-CCJvxfZh.js} +1 -1
  66. package/dist/assets/{DrawerPage-G3indLUm-KDBiLr1g.js → DrawerPage-BSy9zQ8e-BnYB7jC2.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-B3OUzvId-DupE09Ur.js → EditPeoplePage-DyaHesFS-m0sJIT4p.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-BDtXtGDU-BcBuZIRV.js → EditReimbursementDetailPage-EEKR__zQ-C-PImemb.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-Duk7QFjU-BxvKwYnJ.js → EntityDetailPage-BECoxBfR-C7abLrXu.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-Cr7WMJ8D-DJAnI7E2.js → EntitySummarySection-wzMCZjZE-DrhMPVSS.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-hpARiJiY-BasbCxne.js → ExpenseAutomationOverviewPage-MlPZZ_Mz-Dd7OsYXY.js} +1 -1
  72. package/dist/assets/ExpenseAutomationPage-mdYWsafr-qx5nkQ54.js +1650 -0
  73. package/dist/assets/{ExpressPayPage-I-QL4uh--D9TF_lu8.js → ExpressPayPage-Dg03hVzu-B2avGC_K.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-BHb59Q7j-DmfTfLoX.js → FeaturePreviewPage-BePsYONK-B2yH8Fph.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-DONqc9yn-D0mWYYLp.js → FollowStepsSection-BqqrsOIP-DBSaHnE2.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BFAgZIJv-CjcolAPg.js → GlobalReviewListPage-BVpHhHli-BVaUXk67.js} +1 -1
  77. package/dist/assets/{HelpButton-DoSu6q8h-D2QNiRS_.js → HelpButton-DXDj1Qju-DnQQURkZ.js} +1 -1
  78. package/dist/assets/{InformationCardStack-JtvRODJe-BckRaEiX.js → InformationCardStack-CauWOEJQ-QIe84Z5T.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-BEceNZZE-DZzBavNp.js → InsightsCardStack-C-52awo8-BlPifdQR.js} +1 -1
  80. package/dist/assets/{InsightsSection-KsnkYRQw-B7Aa3iSu.js → InsightsSection-Bq2ZlQ8--bZpQBOUU.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-D4cEY5iJ-Xpo32vjI.js → IntegrationsSettingsPage-CQCxjOHh-NHelX_xc.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-Tf_vaD2v-DshYJiDx.js → InternationalWireSwiftDetailsPage-Bi3ERJ96-CaFnSRYh.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-qIIqh0iv-Bta_KUnQ.js → InternationalWireVerificationPage-DhX_OpJ6-BpviOc29.js} +1 -1
  84. package/dist/assets/{InviteFormPage-ByA4uyh2-C8GZgkKz.js → InviteFormPage-BJkMxjIE-C7G5Q0E2.js} +1 -1
  85. package/dist/assets/{InvitePageListView-0_dBCqFt-BFjmWrp0.js → InvitePageListView-0zD-YAJA-CIxbN6SJ.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-C4d-Ov5z-BxDTKzbB.js → InvitePeoplePage-CvQNFpjb-DB6AeZGB.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-MEPQPiCt-th9B9DiY.js → InvoiceUploadSection-BrnUjxIH-DvK-NqPJ.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-C77SyJR9-DFBBjnIj.js → IssueChargeCardPage-agEqgGPg-DtDWJTwt.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-DKKL0jnt-Df_7m6cr.js → LabeledAddressValue-DphNZz4y-BbhziMPr.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-Ca10mEAm-BYXlyxvu.js → LabeledAddressValueField-DBlBlkO_-fjUzU_a0.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-BYk2-ixd-BEj9gH8B.js → LabeledControlledCheckBoxField-CBRqbUDe-zjklDavb.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-DMhTj1GM-CwLykRyb.js → LabeledCreatableSingleSelectField-DOjtbusw-O47c6W6Y.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-DX4zVKkz-WJvH9-Ei.js → LabeledDocumentField-Bxggz66t-Cwirfoo_.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BoizuD7H-v4Q8CQfZ.js → LabeledDropDownFormattedTextField-1dqcE0E4-BkupDBAp.js} +1 -1
  95. package/dist/assets/{LabeledText-4NNrEynJ-DGSkmo9K.js → LabeledText-BJFW2h6S-DNf9x09V.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DaXDpM0N-DvOiGuc2.js → LabeledUserSingleSelectWithSubtitlesField-CLzwYw4O-BiN7ZdIi.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-zRamZWIQ-Dvg7Ba_y.js → LabeledZeniRolesDropDownField-DGsJbILm-D0lgOjM8.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-FMYLsvT_-CYlVNKOt.js → LinkJETransactionPage-CvdbDO5J-BQoBCpbx.js} +4 -4
  99. package/dist/assets/{LowBalancePopup-Ig5iJGIg-KnO8OBAh.js → LowBalancePopup-BhLxnyK0-BxHV5E9i.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-Cf-TvH4n-B0L8_YVG.js → MagicLinkACHDetailsPage-CcD-_iOV-D_4ibNuj.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CLJo-rez-CdiJYIeQ.js → MagicLinkDomesticWireDetailsPage-C-YfhiNr-BjXKGnQe.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-cD6L4u-C0367lWO.js → MagicLinkInternationalWireDetailsPage-DXZBFcUc-DgGAF9HQ.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-cJ0PjYEe-CdKZYAi2.js → MagicLinkSuccessPage-OikwemO4-C9bkoZsD.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-Dc8RKV1p-CofIGuzn.js → MagicLinkTitleSection-CcsVjT5g-CoREkk_L.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-BD9QWumq-BBGbTuq8.js → MailingDetailsSection-ClULuPML-Q3RQkre6.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-D10SioCO-1_HeRLgo.js → MeetingCalenderPopup-DJHrBVXi-BogUsqxG.js} +1 -1
  107. package/dist/assets/{Menu-DV3oFAip-lRllgVp1.js → Menu-C3EXvt9P-B2-q6Czj.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-jrPeCDe3-DnlrQZ-B.js → MyBankConnectionsSettingsPage-Cn-dlR5V-B_zrG4ku.js} +1 -1
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CpaPeIYq-b4lVf6j4.js → MyPendingActivationChargeCardListPage-B3xeafnf-ItSEItx9.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-DLj2PeG9-CmYpnx4K.js → MyProfileSettingsPage-CcyS0ijJ-CPWTUrys.js} +1 -1
  111. package/dist/assets/{NavBarWithPicker-CilKdL1D-CUI5Ot55.js → NavBarWithPicker-C3MsVwsg-CBrULXjZ.js} +1 -1
  112. package/dist/assets/{NavigationArrow-DvGjNVsn-t1BRpFFN.js → NavigationArrow-DSMn_azz-zpYBMo3g.js} +1 -1
  113. package/dist/assets/{NavigationDots-BZNvrGBo-Lo2Iyk3a.js → NavigationDots-BiiEFlFj-zDNVZc4v.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-D5ESBBO5-D03F13z-.js → NewGlobalMerchantPage-DJ0zT8Xy-DWdOFNFW.js} +1 -1
  115. package/dist/assets/{NoDataChart-D9tQhnyu-CFEwB6jg.js → NoDataChart-O6Mg_gf4-DcekUaqa.js} +1 -1
  116. package/dist/assets/{NoDataTable-8FGbkVty-aqfoH-V1.js → NoDataTable-BgKg_U0s-DNuaeMW7.js} +1 -1
  117. package/dist/assets/{NotFoundPage-D8qvMFgl-BdhhCh3s.js → NotFoundPage-DA6cvlNW-DHFTqUjU.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-BSJTBlX6-CxUhyf7Q.js → NotificationSettingsPage-BwqCG-6J-DqpXFIhc.js} +1 -1
  119. package/dist/assets/{NotificationsListConfig-EynMAcn9-BYkKFFfF.js → NotificationsListConfig-DqM-Z8oE-CuDCUFPm.js} +1 -1
  120. package/dist/assets/{NotificationsPage-d4HJEE7S-fSuBY2pQ.js → NotificationsPage-iYF222-C-C2fO1XcZ.js} +1 -1
  121. package/dist/assets/{OpExByVendorPage-CmuEz33W-9eGP2hA8.js → OpExByVendorPage-BwekpbHo-DhL9GePe.js} +1 -1
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-Bjkff-6V.js → OverlayContainerPage-Bmu909Fo-Bsb5IMg7.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-C7WaIZ8e-CVd9unuB.js → PandLWithForecastPage-B7IxSSMo-DudAcLk6.js} +1 -1
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B3m8zs_b-BX8-54k0.js → PaymentAccountSetupBillingAddressSection-CJk4EUwr-D0h0XeO4.js} +1 -1
  125. package/dist/assets/{PeoplePage-BN8tiBew-DktNBsvw.js → PeoplePage-97Qe6dqr-B3BHOXBh.js} +1 -1
  126. package/dist/assets/{PortfolioAllocationFormPage-BD1u1-Or-_9hkXIsm.js → PortfolioAllocationFormPage-Df2lZK30-CgKreoEg.js} +1 -1
  127. package/dist/assets/{PortfolioDetails-fLO6-kOh-DqBirAUP.js → PortfolioDetails-CGVqC5q--BeoFkSLS.js} +1 -1
  128. package/dist/assets/{ProductsCarousel-RHO5BWU--CKeK3hr3.js → ProductsCarousel-DqvLLayZ-DeMZpSQB.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-Bm6GGzhn-NcCsm_GX.js → PromoBaseCards-Bq-mwvkh-DjLYfAja.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-Dp_Zkpup-Bj92J1hC.js → QBOConnectionDialog-DWZd5o0q-uzGQQJYB.js} +1 -1
  131. package/dist/assets/{QBOSetupSection-C1hBKDG3-DuCsXQ2D.js → QBOSetupSection-B_V2Y6DW-SjwVzAFH.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DFUyL8tS-Cdi6rK0Z.js → ReimbursementApprovalRuleDetailPage-hWUoXT59-C-Kz7IOK.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-CGb7oMjB-Dy2cQd1k.js → ReimbursementApprovalRulesPage-C20mPnJH-UI1oZkMb.js} +1 -1
  134. package/dist/assets/{ReimbursementDetailPage-ByD43ffh-DbazdLJO.js → ReimbursementDetailPage-DAVdVUp0-C07knSwN.js} +1 -1
  135. package/dist/assets/{ReimbursementPromoPage-CPFAYaW8-BD2qUwGu.js → ReimbursementPromoPage-TKdLARUD-CCC9lI90.js} +1 -1
  136. package/dist/assets/{ReimbursementSetUpPage-B_jUtf6N-BFBLA9Wl.js → ReimbursementSetUpPage-CW10ZPs7-CoVdJvFs.js} +1 -1
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DU-QA2n3-B6KRALO7.js → ReimbursementsBulkReviewDrawerPage-_rgixsBG-1ORB6LSI.js} +1 -1
  138. package/dist/assets/{ReloadCard-HsDGbgTn-CogYt9k2.js → ReloadCard-Bzt6gIzi-DStfhNjw.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-BzFUam8T-BhaKwC2u.js → ReportTableViewSelector-CPc3yRAI-rxPTNVbQ.js} +1 -1
  140. package/dist/assets/{ReportsPage-MQSNDA98-BzJpYpJ_.js → ReportsPage-DIHjl3Xd-DvAuC-5b.js} +1 -1
  141. package/dist/assets/{RevenueChart-BzYEiXeP-CqwHafPG.js → RevenueChart-MkoD0EoE-Da8rUny4.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-w2tTvIFQ-Cs9m1WmD.js → ReviewDetailsPage-B96vIWt9-DkFTWrbI.js} +1 -1
  143. package/dist/assets/{ReviewOverlay-DbYrvPld-DqEZFPx8.js → ReviewOverlay-CKOAcLzJ-JwWyu_Z9.js} +1 -1
  144. package/dist/assets/{RoleWithToolTip-B_Ivheco-CS2u-SUl.js → RoleWithToolTip-BiydziFE-Q-xg-fVJ.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CSiXckiF-1K9HNlY8.js → ScheduleDetailsFixedAssetsPage-Ce2BDLCX-BfoIrqo1.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsPage-BUprw9Sk-DvPPq-1B.js → ScheduleDetailsPage-ClK-ymjD-Bt58f9EO.js} +1 -1
  147. package/dist/assets/{ScheduleSequenceTable-DnIgU9m6-DHuLrlek.js → ScheduleSequenceTable-BOFaTbv5-88y97LwV.js} +1 -1
  148. package/dist/assets/{ScreenRoutes-BUTzMwOP.js → ScreenRoutes-D1x9fjK_.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-DDxjcjeg-Nsmn_Kay.js → SetUpAccountSection-DPEjJt-s-DbxecFrv.js} +1 -1
  150. package/dist/assets/{SetUpDefaultSection-BSWh5Hvi-BOsknp6D.js → SetUpDefaultSection-Br-a1ECs-Cis1Rx0T.js} +1 -1
  151. package/dist/assets/{SignIn-CImCEnZS-C_paDK6W.js → SignIn-B7p2vrI4-B0gBOkIG.js} +1 -1
  152. package/dist/assets/{SignInScreen-C-BLiTmk.js → SignInScreen-DWtytZ4U.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-B61K65wh-iO25bbcu.js → SpendManagementListViewPage-Ds1WRCNc-BEPVq15t.js} +11 -11
  154. package/dist/assets/SpendManagementPerTabPage-uBi60ESx-GN_GmWoa.js +754 -0
  155. package/dist/assets/{SpendManagementSection-Ddoo9sSg-C6BGVA5R.js → SpendManagementSection-CESND8ho-CRWiaZIA.js} +1 -1
  156. package/dist/assets/{SpendMgmtSetupAccountSection-GjJmiN01-u7mV3Ko6.js → SpendMgmtSetupAccountSection-CiPoUdg_-D55PFMrP.js} +1 -1
  157. package/dist/assets/{StatementItem-D_ctLWr0-BGFGp8G0.js → StatementItem-BSfAH9fl-Bs-0cP-o.js} +1 -1
  158. package/dist/assets/{StatementsPage-D1M95WeY-CfQLlRfA.js → StatementsPage-BQ-wkg9f-CI_Wd3xM.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-ZC7lyTov-CK4-copc.js → StatusSwitcher-CoX1TvcC-BX39ulZO.js} +2 -2
  160. package/dist/assets/{SubTabSwitcher-BNFnbB_T-COPPhMcX.js → SubTabSwitcher-C4Kvmep7-DBYw0ksy.js} +1 -1
  161. package/dist/assets/{SummaryCard-CSo1L2R4-C8XHG3oH.js → SummaryCard-Cdh_w38m-DLTVVQZ4.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CAcMcS83-Dzo6IaaJ.js → TaskManagementPage-CCiARHPO-CUVWW_h-.js} +1 -1
  163. package/dist/assets/{TimeRangeSwitcher-CNdJhUPl-LVlhLdwC.js → TimeRangeSwitcher-CMNnx0hW-D2iXnh9p.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-B7t79hiQ-v3qnXON1.js → TimeframeSwitcher-BAkn3cys-Bpob1MlE.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-gywVFoaK-Dq8bdSg_.js → TimeframeSwitcherWithToggle-Bp8FBsnD-mJytFc_W.js} +1 -1
  166. package/dist/assets/{TopExCard-D_LHVo5q-CiYt7BMD.js → TopExCard-CH7QX8Xe-DZTLNcIB.js} +1 -1
  167. package/dist/assets/{TopExDetailPage-DuiVBT_3-DpY9bqTT.js → TopExDetailPage-CJuOpApW-CCZjCdMZ.js} +1 -1
  168. package/dist/assets/TransactionDetailPage-280hbOwA-DbVllBjK.js +912 -0
  169. package/dist/assets/{TransactionList-Xd2JupaK-Dyt3TjcD.js → TransactionList-BV18tWaE-vlDng4jw.js} +1 -1
  170. package/dist/assets/{TransactionListBig-CnJaFkxR-DoCpmZbP.js → TransactionListBig-DmVgWxvf-s2_CLDsp.js} +1 -1
  171. package/dist/assets/{TransactionListPage-DJXFQaro-D4RWLZFg.js → TransactionListPage-CE61eqZh-7Ng-Dwo6.js} +1 -1
  172. package/dist/assets/{TransactionVendorDetailPage-Yd_VuyUP-BFDTNSi7.js → TransactionVendorDetailPage-CKRUJzG5-BfxXE0nd.js} +1 -1
  173. package/dist/assets/{TransferDrawerPage-DAQ23FUW-BiZn6wvM.js → TransferDrawerPage-DdIXX8dR-QDp_h_zO.js} +1 -1
  174. package/dist/assets/{TreasuryOverviewPage-D7PkIffG-BqGHTe2l.js → TreasuryOverviewPage-D9NcFBhg-CiLY6I-B.js} +1 -1
  175. package/dist/assets/{TreasuryPromoPage-BjVUBF-M-PIDTDbdn.js → TreasuryPromoPage-BKXMayjO-DOitctTn.js} +1 -1
  176. package/dist/assets/{TreasurySetupPage-CTwhrB6V-BUWRZA3R.js → TreasurySetupPage-Bo24F7wL-DZFA_IDY.js} +1 -1
  177. package/dist/assets/{TreasuryStatementsPage-jvmgqTxl-BXKXw881.js → TreasuryStatementsPage-DUKtmwwf-CPfJrl6T.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-CtKw-_Ab-enlCPtr8.js → TreasuryTaxLetterPage-vqThZpY5-h8GfcnUs.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-HDfVKjSA-0NrqZs7l.js → TreasuryTransferOrReviewPage-1Kqod57a-BftVr2x0.js} +1 -1
  180. package/dist/assets/{TrendChart-BqU6zv7L-DKZM8Asl.js → TrendChart-uCE73Vf8-DAeYNFwV.js} +1 -1
  181. package/dist/assets/{TrendWithTransactions-CbzZEtLk-BWdNScRD.js → TrendWithTransactions-lNYrtUkf-Didi-rkf.js} +1 -1
  182. package/dist/assets/{UncategorizedAccountsMappingPage-BqfWXEzv-DliYz2eG.js → UncategorizedAccountsMappingPage-CbLMkBab-C6ijUMSu.js} +1 -1
  183. package/dist/assets/{UnitIntegrationPage-DOt0PQxi-CfxjJMKV.js → UnitIntegrationPage-DzfchgLS-BhcBVaTd.js} +1 -1
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-DCG_biA8-BJmhb05s.js → UploadAdditionalDocumentOverlay-CJwjYpvy-BM1gvPaq.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-AFJ4ji6z-Bm5FuZX1.js → Vendor2FAPopup-BDatjVhv-xckjR8GQ.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-CMZezqhj-vkz7wU-U.js → VendorACHDetailsPage-BTo9s38E-BkO_uBxu.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-iMWNwLtE-C2zNvoxa.js → VendorDetailPage-DOdRZKwE-CiF7RbY2.js} +1 -1
  188. package/dist/assets/{VendorDomesticWireDetailsPage-LLQSi6rq-Cc7eNflp.js → VendorDomesticWireDetailsPage-Ch_HedkY-C-FBXIHe.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BFWuxMl8-C75iU2LR.js → VendorFiling1099EditablePage-ChgTi2cq-bvFFEvbb.js} +1 -1
  190. package/dist/assets/{VendorFirstReviewPage-G_Cr6q5s-D3fFbYJs.js → VendorFirstReviewPage-C_HBOo29-ChTUQzmE.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireDetailsPage-DReuPGpX-yLpvmkH9.js → VendorInternationalWireDetailsPage-Ct42LbtQ-XCBxG3kr.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CmAzQ-7v-C0MV63fk.js → VendorInternationalWireSwiftDetailsPage-CalHOqYH-BbZmA4Jh.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Cjwpb7Ej-Dbu7JZ5x.js → VendorsAccountsSection-Briqd_pt-DRwMIKOs.js} +1 -1
  194. package/dist/assets/{VerifyDevice-CvJ2zJdk-Daj-imTj.js → VerifyDevice-DxP4a4YR-WzF7jf1V.js} +1 -1
  195. package/dist/assets/{VideoPlayer-9UKbocWs-D6ldVshR.js → VideoPlayer-DqRss8fV-CPfVjMmq.js} +1 -1
  196. package/dist/assets/{VideoPopup-DfQxE-EQ-C_Goo9ju.js → VideoPopup-CwEiOVHQ-BFbb_zgA.js} +1 -1
  197. package/dist/assets/{WarningsDrawerPage-2QsB6DYE-BNokYOvg.js → WarningsDrawerPage-Cdd0mag5-jaWJbGg5.js} +1 -1
  198. package/dist/assets/{ZeniAccountDetailPage-gFXGgRzS-iXevsl83.js → ZeniAccountDetailPage-5sn9Wphj-DKdbO4Vy.js} +1 -1
  199. package/dist/assets/{ZeniAccountListViewPage-Daboqhbe-H893CIj9.js → ZeniAccountListViewPage-BLCYWphf-M5fLX64J.js} +1 -1
  200. package/dist/assets/{ZeniAccountNavBarPieces-DhpbtWHu-UFQA7PsK.js → ZeniAccountNavBarPieces-Cwo5QtoT-D1SMOFic.js} +1 -1
  201. package/dist/assets/{ZeniAccountPromoPage-Df5MahOc-Duh5-gql.js → ZeniAccountPromoPage-CKQOu6Ab-CpoFwUjo.js} +1 -1
  202. package/dist/assets/{ZeniAccountSetupPage-DLlRCOCj-BdXC0xKV.js → ZeniAccountSetupPage-BW1l7qJf-Bv0SVArc.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-D-Z193Re-Bvi63P7L.js → ZeniCopyright-B6fSw5kZ-CRgQ6kVa.js} +1 -1
  204. package/dist/assets/{ZeniTransferAmountSlider-D8dT_-Hq-D83Z4tyt.js → ZeniTransferAmountSlider-DgkjDK9D-CVt2TkCY.js} +1 -1
  205. package/dist/assets/{analyticsHelper-c9SRwhe3-snrr44LY.js → analyticsHelper-BIYs-BU5-BBbQGYqz.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CqRk-xPI.js → analyticsHelper-DzajxkoA.js} +1 -1
  207. package/dist/assets/{chartTypes-C2jC2nzT-Dd9Dm_ev.js → chartTypes-BFc-FQm9-BY56epjm.js} +1 -1
  208. package/dist/assets/{commonDimensions-CtVQ1dPI-DOovbubg.js → commonDimensions-B_ShoU61-B2BQjped.js} +1 -1
  209. package/dist/assets/{detailCommon-BBImn49A-CpSlTw_V.js → detailCommon-CoFrLjgw-BialcQVh.js} +1 -1
  210. package/dist/assets/{downloadPdf-BvdzZp_S-nn1wV9jH.js → downloadPdf-yID9qiGz-Dx8pLF3I.js} +1 -1
  211. package/dist/assets/{index-DxZ9Uw7o.js → index-DVFYvj7P.js} +8 -8
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-CKsE235C-Chr95ITX.js → mapLoadingInProgressToTreeNode-xaG_j34l-D4x68Lia.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D1DheCOl-CKCzpetC.js → mapSectionWithAcOnlyToTreeNode-Cf1Q8iLQ-Ck75U1M4.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-DkIeEOlL-BXF8YPij.js → mapSpacerToTreeNode-CiLMcagY-091j94NC.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-Vy-w7j2m-CAANn3O8.js → mapTimeframeBalancesToTreeNode-BpcCExFt-gIWGlkbh.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-BhmM7oKt-CuzK25Ny.js → mapTimeframeBalancesToTreeNode-VuMYRsaA-EBj_hl8w.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CGrrLYwc-c_ZMN85O.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Cfz6o8XS-DL8hiZjS.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-BdeWiors-CAMQCzY4.js → toCOABalancesWithID-CL2W-2Ks-CpVda8Yv.js} +1 -1
  219. package/dist/assets/{toChartData-BCFss2y_-Y9xIvEBL.js → toChartData-CD4rOlNx-BE4t5CeX.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-BJcGoSGt-Ho84Gr1_.js → treasuryColorHelper-DHqBe6al-DjRQFofZ.js} +1 -1
  221. package/dist/assets/{uploadAttachment-PMsRrXUz-CsErn5g7.js → uploadAttachment-Bqf6VI3L-BUGZbe1u.js} +1 -1
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-DPzJ4iG4.js → uploadReceipts-dxsKhm9I-ss2G_wQJ.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +3 -3
  225. package/dist/assets/CustomerOnboardingContainerPage-BDHp6tYk-FIpE3fG6.js +0 -1
  226. package/dist/assets/ExpenseAutomationPage-BC5qS_i3-B75wBbZR.js +0 -1650
  227. package/dist/assets/SpendManagementPerTabPage-Bxo7BTP3-CTkuSFDU.js +0 -754
  228. package/dist/assets/TransactionDetailPage-BWbWafDA-_L4jc956.js +0 -912
@@ -0,0 +1,1650 @@
1
+ import{o,br as Hs,e as ke,fP as Pi,fQ as Ni,l as q,R as Ie,j as t,bV as Ws,_ as Pe,a4 as Vi,q as g,bX as Us,u as vt,aX as qs,hu as Ks,a0 as qe,bp as Ce,C as X,aR as Js,W as B,hs as Gs,y as Fe,fj as Ys,gk as Hi,aS as Zs,bh as Rt,am as Wi,w as St,b6 as Ui,f as Xe,jt as Xs,fF as Qs,n as gt,a3 as ea,fR as ta,fS as qi,aK as na,bQ as oa,by as ia,eA as un,bv as po,a as Ht,bg as mo,F as Wt,ju as sa,jv as aa,jw as ra,jx as an,jy as Ki,jz as Ji,jA as la,jB as ca,dj as Gi,jC as da,jD as ua,jE as ha,jF as pa,jG as ma,jH as Lo,jI as ga,jJ as xa,jK as fa,jL as ya,jM as Ca,jN as Yi,jO as wa,jP as ba,jQ as va,jR as Sa,g4 as Zi,aj as Ln,b_ as An,m as Xi,aE as Qi,dP as es,ca as hn,dS as go,g0 as ja,f5 as ka,fl as Ia,r as $a,T as Ta,f2 as La,J as ts,jS as Aa,a8 as xo,a2 as Ao,jT as Ea,jU as Ra,gm as ns,jV as Da,a$ as os,a6 as Oa,ga as Et,hg as On,ey as jn,cn as fo,D as Ma,cw as is,dl as Ba,ia as Fa,dr as yo,c3 as En,c6 as Rn,hV as et,v as Lt,h5 as za,g5 as Mn,iu as Eo,dh as ss,cz as cn,jW as _a,ae as Pa,dq as as,Q as dn,hM as rs,hW as ro,jX as Qt,dY as ls,dZ as cs,jY as ds,jZ as us,j_ as Na,cx as Dn,hN as hs,d1 as ps,eq as Bn,U as Co,j$ as Va,ct as Ha,ab as ms,i1 as Wa,dQ as Ua,p as yt,k0 as qa,k1 as Ka,ah as Fn,cH as Ja,b as Ga,en as Ya,eo as Za,ep as Xa,er as Ro,es as Do,et as Qa,k2 as er,af as tr,eC as nr,eD as or,eE as ir}from"./index-DVFYvj7P.js";import{n as a,b as s,j as Ze,k as wo,f as gs}from"./vendor-rkTZJa59.js";import{r as xs,R as fs,n as en,W as mt}from"./CollapsableReportTable-CHthdzdj-ChiC9ii3.js";import{o as ys}from"./mapTimeframeBalancesToTreeNode-BpcCExFt-gIWGlkbh.js";import{d as Oo}from"./mapLoadingInProgressToTreeNode-xaG_j34l-D4x68Lia.js";import{h as sr}from"./VendorsAccountsSection-Briqd_pt-DRwMIKOs.js";import{u as ar,c as Mo,d as rr,m as lr}from"./uploadAttachment-Bqf6VI3L-BUGZbe1u.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./AccountRow-DnMX1pTV-DzyPY1GP.js";const{common:{navBar:{back:cr},texts:{refresh:dr,close:ur,copy:hr,copied:pr,open:mr}},expenseAutomation:{common:{numbers:{maximumCount:gr}}}}=Ie.getLocalizedStrings(),xr=a(ja)`
2
+ display: flex;
3
+ width: ${o.sp4};
4
+ height: ${o.sp4};
5
+ align-items: center;
6
+ justify-content: center;
7
+ `,fr=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
+ `,yr=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
+ `,Cr=a.div`
28
+ display: flex;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-left: ${e=>Fo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
32
+ padding-right: ${e=>Fo.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
33
+ `,wr=a.div`
34
+ display: flex;
35
+ align-items: baseline;
36
+ justify-content: end;
37
+ gap: ${o.sp4};
38
+ flex: 1 1 ${o.sp0};
39
+ `,br=a.div`
40
+ display: flex;
41
+ align-items: baseline;
42
+ justify-content: start;
43
+ gap: ${o.sp4};
44
+ flex: 1 1 ${o.sp0};
45
+ `,vr=a(Ia)`
46
+ width: ${o.sp3};
47
+ height: ${o.sp3};
48
+ cursor: pointer;
49
+ margin-left: ${o.sp1};
50
+ color: inherit;
51
+ `,Sr=a(ka)`
52
+ width: ${o.sp3};
53
+ height: ${o.sp3};
54
+ margin-left: ${o.sp1};
55
+ color: ${Xe.success};
56
+ `,jr=a(ea)`
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
+ `,kr=a(ia)`
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
+ `,Ir=a(oa,{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?Ze`
78
+ ${$r} 2s linear infinite;
79
+ `:"none"};
80
+ &:hover {
81
+ color: ${e=>e.theme.colors.primary};
82
+ }
83
+ `,$r=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
+ `,Bo=a(Fe)`
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
+ `,Lr=a.div`
102
+ display: flex;
103
+ `,Ar=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
+ `,Er=a.div`
112
+ display: flex;
113
+ height: ${o.sp4};
114
+ `,Rr=a.div`
115
+ text-align: center;
116
+ display: flex;
117
+ align-items: center;
118
+ justify-content: center;
119
+ flex-wrap: wrap;
120
+ `,Dr=a.div`
121
+ display: flex;
122
+ flex-direction: column;
123
+ `,Or=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
+ `,Br=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
+ `,Fo={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},Fr=({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}=ta(i,!1,!1),m=l.filter(u=>u.id.includes(qi)===!1);return t.jsxs(fr,{isDisabled:r,onClick:e,"data-testid":B("comment-icon"),children:[t.jsx(na,{count:m.length,isLoading:r}),t.jsx(xr,{})]})},zr=({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(wr,{children:e.rightSection.map((x,f)=>{switch(x){case"search":return t.jsx(Gs,{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},f+x);case"refresh":return t.jsx(Ce,{display:"block",placement:"bottom",title:dr,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(Ir,{onClick:u,$spinning:n==="In-Progress","data-testid":B("refresh-icon")})},f+x);case"comment":return p===!1?null:t.jsx(Fr,{companyId:h,companyName:c,onAllThreadsClick:i});case"close":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:ur,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(jr,{onClick:l,"data-testid":B("close-icon")})},f+x)}})})},_r=({headerData:e,onBack:n})=>t.jsx(br,{children:e.leftSection.map((d,c)=>{switch(d){case"back":default:return t.jsx(Ce,{display:"block",placement:"bottom",title:cr,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(kr,{onClick:n,"data-testid":B("back-button")})},c+d)}})}),zo=({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(Ce,{display:"flex",placement:"right",title:Hi.test(n)?c?pr:hr:mr,enterTouchDelay:600,children:t.jsxs(Br,{onClick:()=>h?.(n),"data-testid":B("pre-link"),children:[n,c?t.jsx(Sr,{className:"success-icon"}):t.jsx(vr,{className:"copy-icon"})]})}),l?t.jsxs(pn,{windowSize:d,children:[l," "]}):null]})},_o=({subTitles:e})=>{const n=ke(),[,d]=Ys(),[c,h]=s.useState(!1),p=s.useRef(null),i=s.useCallback(l=>{Hi.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(Dr,{children:e.map((l,r)=>t.jsxs(Rr,{children:[l.pre?t.jsx(zo,{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(Or,{}):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(zo,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:c,onLinkClick:i}):null]},r+l.bold+l.pre+l.post))})};function Pr(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:f,titleStyle:C={}}=e,j=i("autoCategorized")?.count??0,w=i("review")?.count??0,I=i("reconcile")?.count??0,y=n.tabs.length>0||n.subTitle.length>0,$=m==="transaction_categorization"&&d==="autoCategorized",R=m==="reconciliation"&&x==="review"&&p!=null,L=m==="reconciliation"&&x==="reconcile"&&p!=null,O=$?j>0:R?l==="In-Progress"?!0:w>0:L?l==="In-Progress"?!0:I>0:c!=="complete",S=vt(),k=ke();let A=[];return n.tabs.length>0&&(A=n.tabs.map(T=>({label:T.label,id:T.id,countDetails:i(T.id)}))),t.jsxs(yr,{children:[t.jsx(qs,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:S.colors.grey4,onBackClick:()=>null,titleStyle:C,ignoreScrollAction:m!=="month_end_insights",keepBackgroundOnScroll:m!=="month_end_insights",leftSideComponent:t.jsx(_r,{...e}),rightSideComponent:t.jsx(zr,{...e}),source:"NavBarWithHeader"}),f??null,t.jsx(Pe,{controller:y===!0,children:t.jsx(Cr,{windowSize:k,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(Tr,{windowSize:k,children:t.jsx(Ks,{allTabs:A,selectedTab:m==="transaction_categorization"?d??A[0].id:x??A[0].id,onTabChange:T=>{if(m==="transaction_categorization"){const P=q.toExpenseAutomationTransactionsTabKey(T.id);P!=null&&h(P)}else if(m==="reconciliation"){const P=q.toReconciliationTabsType(T.id);P!=null&&u(P)}},maximumCountLimit:gr})}),t.jsx(Ar,{windowSize:k}),t.jsx(Er,{}),t.jsx(Pe,{controller:O===!0||r===!0,children:t.jsx(Bo,{windowSize:k,children:n.tabs.map((T,P)=>(m==="reconciliation"?T.id===x:T.id===d)?t.jsx(Lr,{children:t.jsx(_o,{subTitles:T.subTitle})},P+T.id):null)})})]}):t.jsx(Pe,{controller:O===!0||r===!0,children:t.jsx(Bo,{windowSize:k,children:t.jsx(_o,{subTitles:n.subTitle})})})})})]})}const Nr=1;function Vr({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:f,draggable:C=!1,selectionLimit:j,infoIconContainerStyle:w,onDragStart:I,rowHeight:y=40,initialScrollOffSet:$,onScroll:R}){const L=ke(),O=s.useRef(null),{control:S}=fo(),k=n.find(D=>D.groupLabel),A=n.filter(D=>!D.groupLabel),T=[];for(const D of A)if(D.isException||T.push(D.value),j!=null&&T.length===j+1)break;const P=n.filter(D=>D.defaultChecked).map(D=>D.value);return t.jsx(is,{control:S,name:e,rules:m,defaultValue:P,render:({field:{value:D,ref:J,onChange:N}})=>{const V=K=>{Wr({event:K,value:D,allCheckBoxValues:T,groupLabelCheckBox:k,onChange:N})};return t.jsxs(Ur,{style:h,windowSize:L,children:[k&&t.jsx(bo,{checkBox:k,index:0,value:D,allCheckBoxValues:T,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:w,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:I,ref:J,onChangeHandler:V}),t.jsx(qr,{children:t.jsx(Ln,{style:{height:"100%",width:"100%"},children:({height:K,width:Y})=>t.jsx(An,{ref:O,height:K,width:Y,itemCount:A.length,itemSize:()=>y,estimatedItemSize:y,initialScrollOffset:$??0,onScroll:({scrollOffset:M})=>{R?.(M)},overscanCount:Nr,itemKey:M=>A[M].value,itemData:{checkBoxes:A,value:D,allCheckBoxValues:T,mode:d,name:e,checkBoxContainerStyle:f,checkBoxIconStyle:x,checkBoxStyle:l,labelCheckBoxStyle:i,labelStyle:p,width:r,draggable:C,groupLabelCheckBox:k,infoIconContainerStyle:w,checkedIconColor:u,isDisabled:c,selectionLimit:j,onDragStart:I,ref:J,onChange:N,handleChangeEvent:V,rowHeight:y},children:Hr})})})]})}})}const Hr=({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:f,labelStyle:C,width:j,draggable:w,groupLabelCheckBox:I,infoIconContainerStyle:y,checkedIconColor:$,isDisabled:R,selectionLimit:L,onDragStart:O,ref:S,handleChangeEvent:k}=d,A=h[e];return t.jsx(Xr,{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:f,labelStyle:C,width:j,draggable:w,groupLabelCheckBox:I,infoIconContainerStyle:y,checkedIconColor:$,isDisabled:R,selectionLimit:L,onDragStart:O,ref:S,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:f,infoIconContainerStyle:C,name:j,index:w,width:I,checkedIconColor:y,checkBoxIconStyle:$,labelStyle:R,onDragStart:L,onChangeHandler:O}=e,S=ke(),k=D=>{typeof n=="function"?n(D):n&&(n.current=D)};let A=d.includes(c.value);const T=Array.from(new Set([...d,c.value]));h?.value===c.value&&d.length>0&&(i!=null?A=T.length===p.length||T.length===i+1:A=p.every(D=>T.includes(D)===!0));const P=()=>l==="off"||c.isException?S==="small"?{display:"none",...r}:{visibility:"hidden",...r}:c.groupLabel?p.length===1&&p[0]===h?.value?{visibility:"hidden",...m}:m:r;return t.jsxs(Jr,{mode:l,draggable:x===!0,onDragStart:D=>{L?.(D,c.value)},style:f,isDisabled:u,isSelected:A,exceptionMode:c.exceptionMode,children:[c.prefix?t.jsx(Kr,{className:"prefix-box",children:c.prefix}):null,c.isException?t.jsx(Gr,{style:C,className:"checkbox-alert",children:t.jsx(Ce,{style:{padding:`12px ${o.sp3}`},title:c.exceptionInfo??"",placement:"bottom-start",children:c.exceptionType==="info"?t.jsx(Yr,{}):t.jsx(Zr,{})})}):t.jsx(Va,{name:`${j}.${c.value}`,checkBoxValue:c.value,value:A,checkedIconColor:y,isDisabled:u||!c.groupLabel&&!A&&i!=null&&T.length===i+1?"disabled":void 0,checkBoxStyle:P(),checkBoxIconStyle:$,ref:k,onChange:O}),typeof c.label=="string"&&c.label?t.jsx(Ha,{isDisabled:u,label:c.label,labelStyle:R,htmlFor:`${j}.${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))},Ur=a.div`
155
+ display: flex;
156
+ flex-direction: column;
157
+ width: 100%;
158
+ height: 100%;
159
+ `,qr=a.div`
160
+ flex: 1;
161
+ overflow: hidden;
162
+ `,Kr=a.div`
163
+ opacity: 0;
164
+ `,Jr=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"&&Ze`
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"&&Ze`
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"&&Ze`
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"&&Ze`
213
+ :hover {
214
+ .checkbox-alert {
215
+ opacity: 1;
216
+ }
217
+ }
218
+ `}
219
+
220
+ ${e=>e.exceptionMode==="checked_or_hover"&&Ze`
221
+ .checkbox-alert {
222
+ opacity: 1;
223
+ }
224
+ `}
225
+ `,Gr=a.div`
226
+ cursor: pointer;
227
+ `,Yr=a(Ui)`
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
+ `,Zr=a(ps)`
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
+ `,Xr=a.div`
240
+ width: 100%;
241
+ box-sizing: border-box;
242
+ `,Qr=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})),el=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M178 14L19 65L53 76M178 14L123 123.5L90.5 91M178 14L53 76M178 14L78.5 79M78.5 79L62 104M78.5 79L90.5 91M62 104L90.5 91M62 104L53 76",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),s.createElement("path",{d:"M94.495 135.259C83.8632 135.259 75.2592 143.863 75.2592 154.495C75.2592 143.863 66.6318 135.259 56 135.259C66.6318 135.259 75.2592 126.632 75.2592 116C75.2592 126.632 83.8632 135.259 94.495 135.259Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M180.481 94.79C173.445 94.79 167.748 100.506 167.748 107.565C167.748 100.506 162.036 94.79 155 94.79C162.036 94.79 167.748 89.0591 167.748 82C167.748 89.0591 173.445 94.79 180.481 94.79Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M42 35.0047C37.582 35.0047 34.0047 38.582 34.0047 43C34.0047 38.582 30.418 35.0047 26 35.0047C30.418 35.0047 34.0047 31.418 34.0047 27C34.0047 31.418 37.582 35.0047 42 35.0047Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinejoin:"round"}),s.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M26.5625 162.986C28.0625 164.82 32.3625 168.886 37.5625 170.486M48.0625 173.986C50.7292 174.32 57.1625 174.986 61.5625 174.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),s.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})),tl=e=>s.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M197 140.889C186.368 140.889 177.764 149.493 177.764 160.124C177.764 149.493 169.137 140.889 158.505 140.889C169.137 140.889 177.764 132.261 177.764 121.629C177.764 132.261 186.368 140.889 197 140.889Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M43.2928 47.6752C32.661 47.6752 24.0571 56.2792 24.0571 66.911C24.0571 56.2792 15.4297 47.6752 4.79785 47.6752C15.4297 47.6752 24.0571 39.0479 24.0571 28.416C24.0571 39.0479 32.661 47.6752 43.2928 47.6752Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M76.2983 17.0808C70.0153 17.0808 64.9279 22.1681 64.9279 28.4511C64.9279 22.1681 59.8289 17.0808 53.5459 17.0808C59.8289 17.0808 64.9279 11.9817 64.9279 5.69873C64.9279 11.9817 70.0153 17.0808 76.2983 17.0808Z",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M112.065 93.8122C112.065 93.8122 118.524 67.2385 125.499 46.9477C132.473 26.657 141.968 12.825 147.899 9.73043C153.831 6.63583 162.341 5.32297 166.631 15.9196C170.429 25.2738 166.608 36.3393 166.608 36.3393C166.608 36.3393 163.712 48.7295 148.825 70.462C139.647 83.8603 132.626 93.8122 132.626 93.8122H166.76C169.022 93.8122 170.851 95.6408 170.851 97.9032C170.851 100.166 169.022 101.994 166.76 101.994H142.641L143.093 102.006L153.69 178.914C155.284 185.97 147.688 187.916 147.688 187.916C147.688 187.916 144.195 192.441 105.841 192.687C89.1723 192.793 70.6985 190.038 62.9268 187.74C55.1551 185.443 56.9251 174.319 56.9251 174.319L63.4165 119.209C58.0319 119.224 55.4195 115.095 54.4752 107.023C54.2796 105.351 54.2251 103.546 54.3058 101.643L54.276 102.018V102.006H42.1554C39.8931 102.006 38.0645 100.177 38.0645 97.9149C38.0645 95.6526 39.8931 93.8239 42.1554 93.8239H55.2855C57.1676 84.4084 61.6018 73.8826 68.0493 65.2575H68.061C68.061 65.2575 75.4693 56.3253 84.1319 57.2162C94.2714 58.2712 100.308 62.3504 100.308 62.3504L100.11 63.0914L105.841 93.8122H112.065ZM90.1921 93.8122H90.1837L90.1322 93.9283L90.1921 93.8122Z",fill:"#97C3B9"}),s.createElement("path",{d:"M101.841 90.8122L96.5003 60.5H96.0003C96.0003 60.5 91.4672 78.8323 86.2861 90.5894L101.841 90.8122Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M64.0607 62.2576C64.0607 62.2576 71.469 53.3254 80.1316 54.2163C90.2711 55.2713 96.3079 59.3505 96.3079 59.3505L92.3576 74.1437L86.2856 90.5779C86.2856 90.5779 78.2795 109.415 67.3429 114.162C56.4063 118.91 51.7995 115.346 50.4749 104.023C49.1504 92.6995 54.2963 75.3041 64.049 62.2576H64.0607Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M114.126 90.812L127.595 50.4532C127.595 50.4532 134.511 27.5602 142.587 17.8544C150.745 8.05481 159.502 15.6272 154.707 30.901C150.406 44.6157 133.631 70.4275 121.37 90.812H114.126Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M108.065 90.8122C108.065 90.8122 114.524 64.2385 121.499 43.9477C128.473 23.657 137.968 9.82504 143.9 6.73043C149.831 3.63583 158.341 2.32297 162.631 12.9196C166.429 22.2738 162.608 33.3393 162.608 33.3393C162.608 33.3393 159.712 45.7295 144.826 67.462C135.647 80.8603 128.626 90.8122 128.626 90.8122H108.077H108.065Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M86.1926 90.812H162.761C165.023 90.812 166.852 92.6406 166.852 94.903C166.852 97.1653 165.023 98.994 162.761 98.994H81.9727",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M50.276 99.0057H38.1554C35.8931 99.0057 34.0645 97.1771 34.0645 94.9147C34.0645 92.6524 35.8931 90.8237 38.1554 90.8237H51.4247L50.7683 93.9652L50.4752 96.5089L50.276 99.0174V99.0057Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M59.9937 117.105L52.9253 171.319C52.9253 171.319 51.1553 182.443 58.927 184.74C66.6986 187.038 85.1725 189.793 101.841 189.687C140.195 189.441 143.689 184.916 143.689 184.916C143.689 184.916 151.284 182.97 149.69 175.914L139.094 99.0059H81.9021C81.9021 99.0059 76.0119 113.988 59.9937 117.105Z",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10}),s.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})),nl=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"})),ol=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
+ `,il=a(el)`
251
+ width: 90px;
252
+ height: 90px;
253
+ `,sl=a(tl)`
254
+ width: 90px;
255
+ height: 90px;
256
+ `,al=a(Qr)`
257
+ width: 90px;
258
+ height: 90px;
259
+ `,rl=a(nl)`
260
+ width: 90px;
261
+ height: 90px;
262
+ `,ll=a.div`
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: center;
266
+ flex-direction: column;
267
+ `,cl=a($a)`
268
+ margin-top: ${o.sp2};
269
+ color: ${e=>e.theme.colors.brandColorJade};
270
+ `,dl=a(Ta)`
271
+ color: ${e=>e.theme.colors.primary};
272
+ `,ul=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(il,{});case"je_schedules":case"reconciliation":return t.jsx(rl,{});case"flux_analysis":return t.jsx(al,{});case"missing_receipts":default:return t.jsx(sl,{})}};function bt(e){const{title:n,subTitle:d}=e;return t.jsx(ol,{children:t.jsxs(ll,{children:[t.jsx(ul,{...e}),t.jsx(cl,{children:n}),t.jsx(dl,{children:d})]})})}const{common:{headers:{transactions:hl,jeSchedules:pl,fluxAnalysis:ml,missingReceipts:gl,insights:xl,reconciliation:Po},strings:{empty:Ft}},expenseAutomation:{transactions:{tabs:No,subTitles:{review:{item1:mn,item2:gn},autoCategorized:{item1:xn,item2:fl}},searchPlaceholder:yl,allDoneText:Cl},jeSchedules:{subTitles:{item1:wl,item2:bl},searchPlaceholder:vl,allDoneText:Sl},missingReceipts:{subTitles:jl,searchPlaceholder:kl,allDoneText:Il},fluxAnalysis:{subTitles:{item1:$l,item2:Tl},searchPlaceholder:Ll,emptyPageTexts:{youDidIt:Al,allReviewed:El}},accountRecon:{review:{allDoneText:Vo},reconcile:{allDoneText:Rl},tabs:Ho,titles:{item1:Dl,item2:Ol},subTitles:{review:{item1:Ml,item2:fn},reconcile:{item1:yn,item2:Bl}}}}}=Ie.getLocalizedStrings(),Ve=(e,n,d,c,h)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:hl,subTitle:[],tabs:[{label:No.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:No.autoCategorized,id:"autoCategorized",subTitle:[{pre:xn.pre,bold:xn.bold,prefixIconName:xn.prefixIconName,post:xn.post.replace("#number",n!=null&&n!=0?n.toString():"")},fl]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:yl,allDoneText:Cl};case"je_schedules":return{key:"je_schedules",title:pl,subTitle:[wl,bl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:vl,allDoneText:Sl};case"missing_receipts":return{key:"missing_receipts",title:gl,subTitle:[jl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:kl,allDoneText:Il};case"flux_analysis":return{key:"flux_analysis",title:ml,subTitle:[$l,Tl],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ll,allDoneText:{title:Al,subTitle:El}};case"month_end_insights":return{key:"month_end_insights",title:xl,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:Ft,allDoneText:{title:Ft,subTitle:Ft}};case"reconciliation":return d==null?{key:"reconciliation",title:Po,subTitle:[Dl,Ol],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Ft,allDoneText:{title:Ft,subTitle:Ft}}:{key:"reconciliation",title:c??Po,subText:h??void 0,subTitle:[],tabs:[{label:Ho.review,id:"review",subTitle:[Ml,{pre:fn.pre,bold:fn.bold,prefixIconName:fn.prefixIconName,post:fn.post}],allDoneText:Vo},{label:Ho.reconcile,id:"reconcile",subTitle:[{pre:yn.pre,bold:yn.bold,prefixIconName:yn.prefixIconName,post:yn.post},Bl],allDoneText:Rl}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:Ft,allDoneText:Vo}}},{common:{strings:{empty:Fl}},expenseAutomation:{accountRecon:{reconcile:{header:Dt}}}}=Ie.getLocalizedStrings(),zl={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"}},Pl={key:"type",value:Dt.type,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Nl={key:"payee",value:Dt.payee,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Vl={key:"account",value:Dt.account,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},Hl={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]}},Ul={key:"amount",value:Dt.amount,sortOrder:"ascending",width:new X(12.75,12.75,12.75),customStyle:{marginRight:g[3]}},ql={key:"recommended",value:Fl,sortOrder:"ascending",width:new X(1.25,1.25,1.25),customStyle:{marginRight:g[4],marginLeft:g[0]}},Me=[zl,_l,Pl,Nl,Vl,Hl,Wl,Ul,ql],Kl=50,sn={sortKey:"date",sortOrder:"descending"};function Jl({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const d=ke(),[c,h]=s.useState(Co(Me));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(Xl,{headerHeight:Kl,children:c.map(l=>t.jsx(Yl,{columnWidth:l.width,windowSize:d,sortDataValue:e.sortKey,actualDataValue:l.key,style:l.customStyle,children:t.jsxs(oc,{isVisible:l.key!=="recommended",children:[t.jsx(Zl,{"data-testid":B("reconcile-tab-list-sort",l.value),onClick:()=>i(l),children:t.jsx(gt,{children:l.value})}),t.jsx(Ql,{sortConfig:e,headerData:l,children:t.jsx(ec,{})}),t.jsx(tc,{isVisible:e.sortKey===l.key&&(e.sortKey!==sn.sortKey||e.sortOrder!==sn.sortOrder),children:t.jsx(nc,{"data-testid":B("reconcile-tab-list-reset-sort",sn.sortKey),onClick:()=>n(sn.sortKey,sn.sortOrder)})})]})},l.key))})}const Gl=gs.memo(Jl),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
+ `,Zl=a.div`
286
+ display: flex;
287
+ gap: 5px;
288
+ cursor: pointer;
289
+ `,Xl=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
+ `,Ql=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
+ `,ec=a(En)`
307
+ width: ${o.sp2};
308
+ height: ${o.sp2};
309
+ `,tc=a.div`
310
+ display: ${e=>e.isVisible?"flex":"none"};
311
+ align-items: center;
312
+ padding-top: 2px;
313
+ cursor: pointer;
314
+ color: ${e=>e.theme.colors.grey1};
315
+ &:hover {
316
+ color: ${e=>e.theme.colors.primary};
317
+ }
318
+ `,nc=a(Rn)`
319
+ width: 12px;
320
+ height: 12px;
321
+ `,oc=a.div`
322
+ display: ${e=>e.isVisible?"flex":"none"};
323
+ `,ic=54,sc=72,{common:{strings:{hyphen:zn}}}=Ie.getLocalizedStrings(),{dateFormat:Wo}=Ie.getLocalizedStrings();function ac({selectedTransactionIds:e,transaction:n,transactionId:d}){const c=ke(),h=vt(),[p,i]=s.useState(!1),l=e.includes(d),r=p||l;return t.jsx(rc,{id:d,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:t.jsxs(lc,{isSelected:r,totalHeight:ic,children:[t.jsx(xt,{windowSize:c,responsiveWidth:Me[0].width,style:Me[0].customStyle,children:t.jsx(zt,{isSelected:r,children:n.date.format(Wo.visual.MMMDCommaYYYYformat)})}),Me[1].customStyle.display!=="none"?t.jsx(xt,{windowSize:c,responsiveWidth:Me[1].width,style:Me[1].customStyle,children:t.jsx(zt,{isSelected:r,children:n.clearedDate!=null?n.clearedDate.format(Wo.visual.MMMDCommaYYYYformat):t.jsx("span",{children:zn})})}):null,t.jsx(xt,{windowSize:c,style:Me[2].customStyle,responsiveWidth:Me[2].width,children:t.jsx(uc,{isSelected:r,children:t.jsx(cc,{isSelected:r,children:Na(n.type)})})}),t.jsx(xt,{windowSize:c,style:Me[3].customStyle,responsiveWidth:Me[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(et,{text:n.merchantName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(zt,{isSelected:r,children:t.jsx("span",{children:zn})})}),t.jsx(xt,{windowSize:c,style:Me[4].customStyle,responsiveWidth:Me[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(et,{text:n.accountName,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}}):t.jsx(zt,{isSelected:r,children:t.jsx("span",{children:zn})})}),t.jsx(xt,{windowSize:c,style:Me[5].customStyle,responsiveWidth:Me[5].width,children:t.jsx(zt,{isSelected:r,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(xt,{windowSize:c,style:Me[6].customStyle,responsiveWidth:Me[6].width,children:t.jsx(et,{text:n.memo,itemTextStyle:{color:r?h.colors.primary:h.colors.hero}})}),t.jsx(xt,{windowSize:c,style:Me[7].customStyle,responsiveWidth:Me[7].width,children:t.jsx(zt,{isSelected:r,children:qe("0,0.[00]",n.amount)})}),t.jsx(xt,{windowSize:c,responsiveWidth:Me[8].width,style:Me[8].customStyle,children:t.jsx(zt,{isSelected:r,children:n.isZeniRecommended?t.jsx(dc,{}):null})})]})})}const rc=a.div`
324
+ box-sizing: border-box;
325
+ width: 100%;
326
+ display: flex;
327
+ padding-right: ${o.sp8};
328
+ `,lc=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
+ `,zt=a(Fe)`
351
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
352
+ span {
353
+ padding-left: ${o.sp3};
354
+ }
355
+ `,cc=a(gt)`
356
+ text-transform: capitalize;
357
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
358
+ `,dc=a(un)`
359
+ width: ${o.sp3};
360
+ height: ${o.sp3};
361
+ margin-right: ${o.sp1};
362
+ path {
363
+ stroke-width: 2;
364
+ }
365
+ `,uc=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
+ `,hc=Ie.getLocalizedStrings(),{common:{all:Uo,strings:{empty:qo}}}=hc,Ko="selectedTransactionIds",pc="expenseAutomationBankReconReconcilePage",mc=e=>`${e}_form`;function gc({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(Gl,{onReconTabColumnSortConfigChanged:i,sortConfig:c}),value:Uo.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},x=d.map(w=>({label:t.jsx(ac,{transaction:w,selectedTransactionIds:n.selectedTransactionIds,transactionId:w.id}),value:w.id,defaultChecked:!1,groupLabel:!1})),f=[u,...x],C=async w=>{const I=w[Ko].filter(y=>y!=Uo.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 j=s.useCallback(()=>{h({reconcileAction:"reconcile"})},[h]);if(d.length===0){const w=Ve("reconciliation",void 0,p).tabs.find(I=>I.id==="reconcile")?.allDoneText;return t.jsx(Cc,{children:t.jsx(bt,{tab:"missing_receipts",title:w?.title??qo,subTitle:w?.subTitle??qo})})}return t.jsx(xc,{children:t.jsx(Wt,{...m,children:t.jsx(fc,{onSubmit:m.handleSubmit(j),id:mc(pc),children:t.jsx(yc,{children:t.jsx(Vr,{name:Ko,checkBoxes:f,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:sc,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const xc=a.div``,fc=a.form``,yc=a.div`
370
+ height: calc(100vh - 350px);
371
+ `,Cc=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},Cs=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
+ `,ws=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
+ `,bs=a.div`
393
+ width: 100%;
394
+ `,vs=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
+ `,wc=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
+ `,bc=a.div`
417
+ padding: ${o.sp2} ${o.sp3};
418
+ `,jo=a.div`
419
+ display: flex;
420
+ `,vc=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
+ `,Z=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
+ `,te=a(gt)`
479
+ color: ${e=>e.theme.colors.hero};
480
+ `,de=a(Fe)`
481
+ width: 100%;
482
+ color: ${e=>e.theme.colors.hero};
483
+ white-space: nowrap;
484
+ overflow: hidden;
485
+ text-overflow: ellipsis;
486
+ `,se=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
+ `,Ss=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
+ `,Ue=a(kn)`
524
+ padding: 2px ${o.sp2};
525
+ `,qt=Ie.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}],Sc=e=>{const{sortConfig:n,onColumnSortConfigChanged:d}=e,c=ke(),[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(kc,{children:h.map(l=>t.jsxs(Ic,{sortDataValue:n.sortKey,actualDataValue:l.key,wrapperWidth:l.width,windowSize:c,isLastColumn:l.key==="amount",children:[t.jsxs($c,{"data-testid":B("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(Lc,{})})]}),t.jsx(Ac,{sortDataValue:n.sortKey,windowSize:c,isVisible:n.sortKey===l.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Ec,{"data-testid":B("account-reconciliation-review-sort-by-date"),onClick:()=>i("date","ascending")})})]},l.key))})},jc=gs.memo(Sc),kc=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
+ `,Ic=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
+ `,$c=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"?Ze`
560
+ padding-top: 2px;
561
+ `:Ze`
562
+ padding-bottom: 2px;
563
+ `}
564
+ `,Lc=a(En)`
565
+ width: ${o.sp2};
566
+ height: ${o.sp2};
567
+ cursor: pointer;
568
+ color: inherit;
569
+ `,Ac=a.div`
570
+ display: ${e=>e.isVisible?"flex":"none"};
571
+ align-items: center;
572
+ padding-top: 2px;
573
+ `,Ec=a(Rn)`
574
+ width: 12px;
575
+ height: 12px;
576
+ cursor: pointer;
577
+ color: ${e=>e.theme.colors.hero};
578
+ `,rt="accountReconReviewTableSection",{dateFormat:Rc,expenseAutomation:Dc,common:pt}=Ie.getLocalizedStrings(),{visual:js}=Rc,{accountRecon:me}=Dc,ks=e=>[{label:me.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Is=e=>[{label:me.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Jo=e=>`${rt}_${e}_form`,Re=(e,n)=>`${rt}.${e}.${n}`,Oc=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:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:j,refreshStatus:w,updateLocalData:I,onColumnSortConfigChanged:y,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L,bankAccounts:O,creditCards:S}=e,{transactionsToReview:k}=c,A=s.useRef(null),[T,P]=s.useState(null),D=N=>{const V=k[N],K=q.isReviewTransactionBillPaymentType(V),Y=q.isReviewTransactionExpenseType(V),M=q.isReviewTransactionCreditCardPaymentType(V),oe=q.isReviewTransactionBankTransferType(V),ye=q.isReviewTransactionDepositType(V),W=V.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return V.transactionId===T?Y||M||oe||ye?275+(W?25:0):K?185+V.recommendedAction.recommendedTransactions.length*40+(W?25:0):146:72},J=s.useMemo(()=>({onColumnSortConfigChanged:y,sortConfig:{sortKey:n,sortOrder:d}}),[y,n,d]);if(s.useEffect(()=>{P(k[0]?.transactionId??null),A.current?.resetAfterIndex(0)},[n,d]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[T]),s.useEffect(()=>{A.current?.resetAfterIndex(0)},[k.length]),s.useEffect(()=>{w.fetchState==="Completed"&&A.current?.resetAfterIndex(0)},[w]),k.length===0){const N=Ve("reconciliation",void 0,u).tabs.find(V=>V.id==="review")?.allDoneText;return t.jsx(nd,{children:t.jsx(bt,{tab:"reconciliation",title:N?.title??pt.strings.empty,subTitle:N?.subTitle??pt.strings.empty})})}return t.jsx(Vc,{children:t.jsx($s.Provider,{value:J,children:t.jsx(Ln,{children:({height:N,width:V})=>t.jsx(An,{width:V,height:N,innerElementType:Ts,ref:A,itemCount:k.length,itemSize:D,itemKey:K=>k[K].transactionId,overscanCount:Fa,itemData:{transactionsList:k,expandedRowId:T,allAccountList:p,classList:i,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:m,localData:l,entitySearchAutoCompleteData:x,entitySearchAutoCompleteActions:h,excludeFetchById:f,saveFetchById:C,reviewTabSelectedVendorByTransactionId:j,bankAccounts:O,creditCards:S,updateLocalData:I,setExpandedRowId:P,onSaveReconciliation:$,onSaveReconciliationReview:R,onReconMatchedTransactionClick:L},initialScrollOffset:0,children:Mc})})})})},$s=s.createContext(void 0),Ts=s.forwardRef((e,n)=>{const{children:d,style:c,...h}=e,{sortConfig:p,onColumnSortConfigChanged:i}=s.useContext($s);return t.jsxs(Hc,{ref:n,style:{...c,width:"auto",padding:`${o.sp0} ${o.sp8}`},...h,children:[t.jsx(jc,{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:f,entitySearchAutoCompleteData:C,onSaveReconciliation:j,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,reviewTabSelectedVendorByTransactionId:R,bankAccounts:L,creditCards:O}=d,S=c[e];return t.jsx(Nc,{style:{...n,width:"100%"},children:t.jsx(Bc,{transaction:S,expandedRowId:h,setExpandedRowId:p,entitySearchAutoCompleteActions:i,accountListNestedAccountHierarchy:x,allAccountList:l,classList:r,localData:m,updateLocalData:u,entitySearchAutoCompleteData:C,classListNestedAccountHierarchy:f,onSaveReconciliation:j,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I,excludeFetchById:y,saveFetchById:$,selectedVendor:R[S.transactionId],bankAccounts:L,creditCards:O})})},Bc=({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:f,creditCards:C,setExpandedRowId:j,updateLocalData:w,onSaveReconciliation:I,onSaveReconciliationReview:y,onReconMatchedTransactionClick:$})=>{const R=n===e.transactionId,L=ke(),O=l[e.transactionId],S=e.recommendedAction.action==="record_bill_payment",k=e.recommendedAction.action==="record_expense",A=h.find(D=>D.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),T=D=>D.recommendedAction.recommendedTransactions.length>0&&D.recommendedAction.recommendedTransactions[0].merchantName!=null?D.recommendedAction.recommendedTransactions[0].merchantName:pt.strings.hyphen,P=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(zc,{isExpanded:R,children:[t.jsxs(_c,{isExpanded:R,onClick:()=>j(e.transactionId),"data-testid":B("account-reconciliation-review-row",e.transactionId),children:[t.jsx(Jt,{windowSize:L,responsiveWidth:Ct[0].width,children:t.jsx(Kt,{children:e.transactionDate.format(js.MMMDCommaYYYYformat)})}),t.jsx(Jt,{windowSize:L,responsiveWidth:Ct[1].width,children:t.jsx(Kt,{children:t.jsx(et,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:T(e)})})}),t.jsx(Jt,{windowSize:L,responsiveWidth:Ct[2].width,children:t.jsx(Kt,{children:t.jsx(et,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Jt,{windowSize:L,responsiveWidth:Ct[3].width,children:t.jsx(Kt,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Jt,{windowSize:L,responsiveWidth:Ct[4].width,children:[t.jsx(Pe,{controller:S,children:t.jsx(od,{children:t.jsx(id,{children:me.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(Pe,{controller:!S,children:t.jsx(Kt,{children:A!=null?t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),t.jsx(et,{itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"},text:A.accountName})]}):pt.strings.hyphen})})]}),t.jsx(Jt,{windowSize:L,isLastColumn:!0,responsiveWidth:Ct[5].width,children:t.jsx(Kt,{children:ms("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(Pe,{controller:R&&O!=null,children:[t.jsx(Fc,{onSaveReconciliation:I,onSaveReconciliationReview:y,updateLocalData:w,saveFetchById:u,excludeFetchById:m,localData:O,classListNestedAccountHierarchy:i,allAccountList:h,classList:p,transaction:e,accountListNestedAccountHierarchy:d,entitySearchAutoCompleteActions:c,entitySearchAutoCompleteData:r,selectedVendor:x,bankAccounts:f,creditCards:C,onReconMatchedTransactionClick:$}),t.jsx(Pe,{controller:(S||k)&&P!=null,children:t.jsx(ad,{children:t.jsxs(rd,{children:[me.review.bankDetail,pt.strings.colon," ",P]})})})]})]})},Fc=({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:f,updateLocalData:C,onSaveReconciliation:j,onSaveReconciliationReview:w,onReconMatchedTransactionClick:I})=>{const y=vt(),[$,R]=s.useState(!i.vendor?.id),[L,O]=s.useState(!i.customer?.id),[S,k]=s.useState(i.categoryId==null),[A,T]=s.useState(i.classId==null),[P,D]=s.useState(i.bankAccountId==null),[J,N]=s.useState(i.creditCardId==null),[V,K]=s.useState(!i.memo),Y=q.isReviewTransactionBillPaymentType(e),M=q.isReviewTransactionExpenseType(e),oe=q.isReviewTransactionBankTransferType(e),ye=q.isReviewTransactionCreditCardPaymentType(e),W=q.isReviewTransactionDepositType(e),pe=s.useMemo(()=>{if(!M)return Et(n);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Et(n,u?.recommendations);const v=c.find(Se=>Se.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ee=v!=null?{...v,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return Et(n,[{account:ee}])},[M,u,e.recommendedAction.recommendedTransactions,c,n]),ge=s.useMemo(()=>{if(!M)return jn(p);if(u!=null&&u.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return jn(p,u?.recommendations);const v=h.find(Se=>Se.classId===e.recommendedAction.recommendedTransactions[0]?.classId),ee=v!=null?{...v,reason:me.review.zeniGptRecommendation,min:0,max:0}:void 0;return jn(p,[{class:ee}])},[M,u,e.recommendedAction.recommendedTransactions,h,p]),b=Ht({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:s.useMemo(()=>Go(e,i,pe,c,ge,x,f,l),[e,i,ge,c,pe,x,f,l]),values:s.useMemo(()=>Go(e,i,pe,c,ge,x,f,l),[e,i,ge,c,pe,x,f,l])}),z=async(v,ee)=>{v.includes("memo")||C(Yo(ee,e,l,c),e.transactionId,v.includes("vendor"))};s.useEffect(()=>{const v=b.watch((ee,{name:Se})=>{Se!=null&&ee!=null&&hn(()=>z(Se,ee))});return()=>{v.unsubscribe()}});const U=s.useCallback(v=>{if(M||W){if(M&&i.vendor==null){R(!1),b.setError(Re(e.transactionId,"vendor"),{type:"required"});return}if(W&&i.customer==null){O(!1),b.setError(Re(e.transactionId,"customer"),{type:"required"});return}if(i.categoryId==null){k(!1),b.setError(Re(e.transactionId,"category"),{type:"required"});return}}C(Yo(v,e,l,c),e.transactionId,!1),w(e.transactionId)},[M,W,C,e,l,c,w,i.categoryId,i.vendor,i.customer]),F=b.watch(Re(e.transactionId,"vendor")),E=b.watch(Re(e.transactionId,"customer")),H=s.useRef(),Q=s.useMemo(()=>M?"vendor":W?"customer":null,[M,W]),_=(v,ee)=>{Q!=null&&d.onAutoCompleteInputChange?.(v,Q),H.current=ee};s.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&(M&&H.current?.(rs(l.entityAutoCompleteView)),W&&H.current?.(Ka(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,W,M]);const G=v=>h.filter(ee=>ee.classId===v)[0]?.accountingClassNumber??void 0,ae=v=>c.filter(ee=>ee.qboId===v)[0]?.qboId,re=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]),we=()=>{k(!1)},be=()=>{D(!1)},ve=()=>{N(!1)};return s.useEffect(()=>{S===!1&&i.categoryId==null&&b.setFocus(Re(e.transactionId,"category"))},[S]),s.useEffect(()=>{A===!1&&i.classId==null&&b.setFocus(Re(e.transactionId,"class"))},[A]),s.useEffect(()=>{$===!1&&i.vendor==null&&b.setFocus(Re(e.transactionId,"vendor"))},[$]),s.useEffect(()=>{L===!1&&i.customer==null&&b.setFocus(Re(e.transactionId,"customer"))},[L]),s.useEffect(()=>{P===!1&&i.bankAccountId==null&&b.setFocus(Re(e.transactionId,"bankAccount"))},[P]),s.useEffect(()=>{J===!1&&i.creditCardId==null&&b.setFocus(Re(e.transactionId,"creditCard"))},[J]),t.jsx(Wt,{...b,children:t.jsx("form",{onSubmit:b.handleSubmit(U),id:Jo(e.transactionId),children:t.jsxs(Pc,{children:[t.jsxs(Uc,{children:[t.jsxs(Jc,{children:[t.jsxs(Gc,{children:[t.jsx(Ls,{}),t.jsx(Fn,{label:{label:Y?me.review.formLabels.match:me.review.formLabels.categorize},radioField:{name:Re(e.transactionId,"match_radio"),id:Y?"match":"categorize",value:Y?"match":"categorize",checked:!0,style:{width:o.sp3,height:o.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(Pe,{controller:!Y,children:t.jsxs(t.Fragment,{children:[t.jsx(Zo,{}),re.map(v=>t.jsx(Fn,{label:{label:me.review.formLabels[v]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"recommendedActionType"),id:v,value:v,style:{width:o.sp3,height:o.sp3,padding:"2px"}}},v))]})})]}),t.jsxs(Kc,{children:[t.jsx(dn,{variant:"secondary",size:"small",label:me.review.formLabels.exclude,loading:r[e.transactionId]?.fetchState==="In-Progress","data-testid":B("account-reconciliation-review-exclude-button",e.transactionId),style:{width:o.sp10},reverseSpinnerColor:!1,onClick:()=>{j({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(dn,{form:Jo(e.transactionId),"data-testid":B("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(Pe,{controller:M||W,children:t.jsxs(_n,{children:[t.jsx(Pe,{controller:M,children:t.jsx(yt,{onClickAway:()=>{i.vendor==null&&$===!1&&R(!0)},children:t.jsx(Z,{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(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.vendor}),t.jsx(se,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:$===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),R(!1)},"data-testid":B("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.addVendor]}):t.jsx(ro,{name:Re(e.transactionId,"vendor"),allowEmpty:!1,placeholder:me.review.formLabels.addVendor,valueToId:v=>v,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:v=>!!v.selectedOption},loadOptions:_})})})]})})})}),t.jsx(Pe,{controller:W,children:t.jsx(yt,{onClickAway:()=>{i.customer==null&&L===!1&&O(!0)},children:t.jsx(Z,{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(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.customer}),t.jsx(se,{style:{gap:g[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:L===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),O(!1)},"data-testid":B("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.addCustomer]}):t.jsx(ro,{name:Re(e.transactionId,"customer"),allowEmpty:!1,placeholder:me.review.formLabels.addCustomer,valueToId:v=>v,defaultValue:{selectedOption:E?.selectedOption,defaultOptions:E?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:v=>!!v.selectedOption},loadOptions:_})})})]})})})}),t.jsx(yt,{onClickAway:()=>{i.categoryId==null&&S===!1&&k(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.category}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:S===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),we()},"data-testid":B("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"category"),placeholder:me.review.formLabels.addCategory,valueToId:v=>ae(v),defaultValue:{allOptions:pe,selectedOption:c.find(v=>v.accountId===i.categoryId)?.qboId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:Cn})})})]})})}),t.jsx(yt,{onClickAway:()=>{i.classId==null&&A===!1&&T(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:pt.texts.class}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:A===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),T(!1)},"data-testid":B("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.addClass]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"class"),placeholder:me.review.formLabels.addClass,valueToId:v=>G(v),defaultValue:{allOptions:ge,selectedOption:i.classId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:Cn})})})]})})})]})}),t.jsx(Pe,{controller:Y,children:t.jsxs(Yc,{children:[t.jsxs(Zc,{children:[t.jsx("span",{className:"matched-text",children:`${me.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),me.review.matchesFoundFullInfo]}),t.jsx(Qc,{children:e.recommendedAction.recommendedTransactions.map(v=>v.bookTransactionId!=null?t.jsxs(ed,{children:[t.jsx(Fn,{label:{label:t.jsxs(Xc,{children:[t.jsx(Fe,{children:v.date.format(js.MMMDCommaYYYYformat)}),t.jsx(Fe,{children:v.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Re(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:v.bookTransactionId,value:v.bookTransactionId,style:{width:o.sp3,height:o.sp3,padding:"2px"}}}),t.jsxs(sd,{"data-testid":B("account-reconciliation-review-matched-transaction-amount",v.bookTransactionId),onClick:()=>{v.bookTransactionId!=null&&I(v.bookTransactionId)},children:[t.jsx(td,{children:ms("0,0.00",v.amount.amount,v.amount.currencySymbol)}),t.jsx(Zo,{})]})]},v.bookTransactionId):null)})]})}),t.jsx(Pe,{controller:oe,children:t.jsx(_n,{children:t.jsx(yt,{onClickAway:()=>{i.bankAccountId==null&&P===!1&&D(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.transferTo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:P===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),be()},"data-testid":B("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.selectAccount]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"bankAccount"),placeholder:me.review.formLabels.selectAccount,defaultValue:{allOptions:ks(x),selectedOption:i.bankAccountId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(Pe,{controller:ye,children:t.jsx(_n,{children:t.jsx(yt,{onClickAway:()=>{i.creditCardId==null&&J===!1&&N(!0)},children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.formLabels.creditCard}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:J===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),ve()},"data-testid":B("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.selectCard]}):t.jsx(Qt,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Re(e.transactionId,"creditCard"),placeholder:me.review.formLabels.selectCard,defaultValue:{allOptions:Is(f),selectedOption:i.creditCardId},registerOptions:{required:!0,validate:v=>!!v.selectedOption},customStyleConfig:Cn})})})]})})})})}),t.jsx(Pe,{controller:!Y,children:t.jsx(qc,{children:t.jsx(Z,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(ut,{className:"hover-background",children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:me.review.header.memo}),t.jsx(se,{className:"item-value-container",children:t.jsx(t.Fragment,{children:V===!0?t.jsxs(de,{onClick:v=>{v.stopPropagation(),K(!1)},"data-testid":B("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:g[1],color:y.colors.champion,cursor:"pointer"},children:[t.jsx(_t,{}),me.review.formLabels.addMemo]}):t.jsx(Ja,{name:Re(e.transactionId,"memo"),placeholder:me.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}`})},Go=(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:ks(p)},creditCard:{selectedOption:n?.creditCardId,allOptions:Is(i)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:hs(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:er(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(Fe)`
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
+ `,zc=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
+ `,Pc=a.div`
611
+ padding: ${o.sp2} ${o.sp4};
612
+ display: flex;
613
+ flex-direction: column;
614
+ row-gap: ${o.sp2};
615
+ `,Nc=a.div`
616
+ top: ${o.sp0};
617
+ left: ${o.sp0};
618
+ box-sizing: border-box;
619
+ `,Vc=a.div`
620
+ height: calc(100vh - 350px);
621
+ max-width: 99.9%;
622
+ padding: ${o.sp0};
623
+ `,Hc=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
+ `,Uc=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
+ `,_n=a.div`
639
+ display: flex;
640
+ flex-direction: row;
641
+ align-items: center;
642
+ column-gap: ${o.sp3};
643
+ `,qc=a.div`
644
+ width: 100%;
645
+ `,Kc=a.div`
646
+ display: flex;
647
+ flex-direction: row;
648
+ align-items: center;
649
+ column-gap: ${o.sp3};
650
+ `,Jc=a.div`
651
+ display: flex;
652
+ flex-direction: row;
653
+ align-items: center;
654
+ column-gap: ${o.sp6};
655
+ `,Gc=a.div`
656
+ display: flex;
657
+ flex-direction: row;
658
+ align-items: center;
659
+ column-gap: ${o.sp1};
660
+ `,_t=a(Dn)`
661
+ width: ${o.sp3};
662
+ height: ${o.sp3};
663
+ `,Zo=a(tr)`
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
+ `,Zc=a(Fe)`
673
+ color: ${e=>e.theme.colors.primary};
674
+
675
+ .matched-text {
676
+ font-weight: ${po.bold};
677
+ }
678
+ `,Xc=a.div`
679
+ display: flex;
680
+ align-items: center;
681
+ column-gap: ${o.sp2};
682
+ `,Qc=a.div`
683
+ display: flex;
684
+ flex-direction: column;
685
+ row-gap: ${o.sp2};
686
+ `,ed=a.div`
687
+ display: flex;
688
+ flex-direction: row;
689
+ align-items: center;
690
+ justify-content: space-between;
691
+ padding-bottom: ${o.sp2};
692
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
693
+ `,td=a(Fe)`
694
+ color: ${e=>e.theme.colors.hero};
695
+ `,nd=a.div`
696
+ height: 100%;
697
+ display: flex;
698
+ justify-content: center;
699
+ align-items: center;
700
+ `,od=a.div`
701
+ border: 1px solid ${e=>e.theme.colors.grey2};
702
+ padding: ${o.sp0} ${o.sp1};
703
+ border-radius: ${o.sp1};
704
+ `,id=a(gt)`
705
+ color: ${e=>e.theme.colors.hero};
706
+ `,sd=a.div`
707
+ display: flex;
708
+ align-items: center;
709
+ column-gap: 20px;
710
+ cursor: pointer;
711
+ `,ad=a.div`
712
+ text-align: center;
713
+ padding: ${o.sp1} ${o.sp0};
714
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
715
+ `,rd=a(gt)`
716
+ color: ${e=>e.theme.colors.hero};
717
+ `,Ls=a(un)`
718
+ width: ${o.sp3};
719
+ height: ${o.sp3};
720
+ margin-right: ${o.sp1};
721
+ path {
722
+ stroke-width: 2;
723
+ }
724
+ `,ld=({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:f})=>{const{accountReconciliationsByAccountID:C,reconciliationTabsState:{reconcile:{uiState:{sortKey:j,sortOrder:w}}},selectedReconAccount:I}=e,y=C[d],{transactionFetchState:$}=I??{};return $?.fetchState==="In-Progress"||$?.fetchState==="Not-Started"?t.jsxs(Xo,{style:{paddingLeft:g[8],paddingRight:g[8]},children:[t.jsx(cd,{children:Ct.map(R=>t.jsx(Rt,{width:R.loaderWidth,height:18},R.key))}),t.jsxs(ud,{children:[...Array(3).fill(0).map((R,L)=>t.jsx(dd,{children:Ct.map(O=>t.jsx(Rt,{width:O.loaderWidth,height:g[4]},O.key))},`${L}_${R}`))]})]}):t.jsx(Xo,{children:e.selectedTab==="reconcile"?t.jsx(gc,{selectedAccountId:d,currentFooterFormId:c,setCurrentFooterFormId:i,onUpdateReconcileTabLocalData:p,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:u,sortConfig:{sortKey:j,sortOrder:w},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:y?.accountReconEntity.transactionsToReconcile}):t.jsx(Oc,{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:f,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:d,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Xo=a.div`
725
+ width: 100%;
726
+ height: 100%;
727
+ `,cd=a.div`
728
+ display: flex;
729
+ justify-content: space-between;
730
+ padding: ${o.sp3} ${o.sp4};
731
+ column-gap: ${o.sp6};
732
+ `,dd=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
+ `,ud=a.div`
742
+ display: flex;
743
+ gap: ${o.sp3};
744
+ flex-direction: column;
745
+ `;function hd({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 pd({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 md({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 Qo({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=md({title:c,section:e,config:i,numOfBalances:0});return r.children.push(m),e.accountIDs.forEach((u,x)=>{const f=n[u],C=pd({account:f,numOfBalances:0,title:f.accountReconEntity.account.accountName,isLastNode:x===e.accountIDs.length-1,config:i});r.children.push(C)}),r}function As({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 gd=(e,n,d,c,h=!0)=>{const p=As({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}}=Ie.getLocalizedStrings(),u=e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress",x=f=>f.filter(C=>!l.includes(C));if(u)[...Array(3)].forEach((f,C)=>{i.push(hd({title:`${C}+${m}`,config:n}))});else{const f=x(e.accountReconciliationBySectionID.assets.accountIDs),C=Qo({section:{...e.accountReconciliationBySectionID.assets,accountIDs:f},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 j=x(e.accountReconciliationBySectionID.liabilities.accountIDs),w=Qo({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:j},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 xd(e,n,d,c=!1){Object.assign(e.config,d);const h=As({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])},fd=a.div`
746
+ display: flex;
747
+ height: 100%;
748
+ width: 100%;
749
+ justify-content: center;
750
+ align-items: center;
751
+ `,yd=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
+ `,Cd=a.div`
761
+ width: 100%;
762
+ height: 100%;
763
+ `,{common:wd}=Ie.getLocalizedStrings();function bd({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,f]=s.useState(void 0),C=e.plaidConnectionDetails.link_account_no_microdeposit,j=e.plaidConnectionDetails.update_account,w=x==="update_account"?j:C,[I,y]=s.useState(w.linkToken??null),[$,R]=s.useState(!1),{useDynamicConfig:L}=Qi(),{configValue:O}=L(es.accountReconGLAccountsConfig),S=s.useCallback(F=>{u(F),f("link_account_no_microdeposit")},[]),k=s.useCallback(F=>{const E=D.current.accountReconciliationsByAccountID[F]?.paymentAccountId;u(F),f("update_account"),i("update_account",E)},[]),A=s.useCallback(F=>{p(F)},[]),T=s.useRef(m),P=s.useRef(x),D=s.useRef(e);s.useEffect(()=>{T.current=m},[m]),s.useEffect(()=>{P.current=x},[x]),s.useEffect(()=>{D.current=e},[e]);const J=s.useCallback(F=>{l(F,T.current??"",P.current),u(void 0),f(void 0),R(!1)},[l]),N=s.useCallback((F,E)=>{F!=null&&console.log("Plaid Connection Error",F,E),u(void 0),f(void 0),R(!1)},[]),{open:V,ready:K}=La({token:I,onSuccess:J,onExit:N});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"&&K&&R(!0)},[K,I,w.fetchStatus.fetchState,w.linkToken,x,$]),s.useEffect(()=>{w.fetchStatus.fetchState==="Completed"&&w.linkToken!=null&&w.linkToken!==I&&y(w.linkToken)},[w.fetchStatus.fetchState,w.linkToken,I]),s.useEffect(()=>{$&&V()},[$,V]);const[Y,M]=s.useState(void 0),[oe,ye]=s.useState(void 0),W=q.zeniDate("2025-03-31"),pe=1,ge="account_reconciliation",b=ke(),z=vt(),U=!0;return s.useEffect(()=>{const F={reportId:ge,mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:W,firstMonthOfFY:pe,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:h,onConnectClicked:S,onReconnectClicked:k,onOpenDrawerClicked:A,onStatementAddClicked:r}};if(Y==null||!ts(oe,e)){const E=gd(e,F,O,n,U);ye(e),M(E)}else{const E=xd(Y,e,F,U);M(E)}},[e]),e.fetchStatus.fetchState==="Error"?t.jsx(fd,{children:t.jsx(Aa,{onReload:c,message:wd.errorMessage.somethingWentWrong})}):t.jsx(yd,{windowSize:b,children:Y!=null?t.jsx(Cd,{windowSize:b,children:t.jsx(fs,{backgroundColor:new xo(z.colors.grey4),rootNodes:Y,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:U,isStickyName:U},treeNodePadding:{left:co.contentPaddingLeft.value(b),right:co.contentPaddingRight.value(b)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:d})}):null})}function vd({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:f,onAddStatementClick:C,onReconReviewTabColumnSortConfigChanged:j,onSaveReconciliation:w,onSaveReconciliationReview:I,setOpenDrawerClicked:y,onReconMatchedTransactionClick:$,onReconListPageScroll:R}){return c.selectedAccountId==null?t.jsx(bd,{companyId:h,onScroll:R,reconciliation:c,onReload:m,onReviewClicked:u,onFetchLinkTokenClick:x,onEstablishConnectionClick:f,setOpenDrawerClicked:y,onAddStatementClick:C}):t.jsx(ld,{currentFooterFormId:e,setCurrentFooterFormId:r,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:p,reconciliation:c,updateReviewTabLocalData:i,entitySearchAutoCompleteActions:d,onReconReviewTabColumnSortConfigChanged:j,entitySearchAutoCompleteData:n,selectedAccountId:c.selectedAccountId,onSaveReconciliation:w,onSaveReconciliationReview:I,onReconMatchedTransactionClick:$})}function Sd({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 jd({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)=>Sd({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 kd({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)=>jd({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 Id({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 $d({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}}=Ie.getLocalizedStrings(),Ld=(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=ys({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(Id({title:`${wn.loading}`,balances:h,config:n})),[...Array(10)].forEach((m,u)=>{i.push(Oo({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(kd({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:Ad(m),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const m=e.totalBalancesAndVariance.balancesByMonth?en(e.totalBalancesAndVariance.balancesByMonth):[],u=$d({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(Oo({title:`${u}+${wn.loading}`,balances:h,config:n}))})}return{config:n,headerNodes:d&&!l?[p]:[],contentNodes:i}},Ad=e=>Td.sectionTitle[e];function Ed(e,n,d,c=!0){Object.assign(e.config,n);const h=Rd(d),p=ys({balances:h,config:n});return{config:n,headerNodes:c?[p]:[],contentNodes:[p,...e.contentNodes.slice(1)]}}const Rd=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])},Dd=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
+ `,Od=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=ke(),u=vt(),[x,f]=s.useState(null),[C,j]=s.useState(null),[w,I]=s.useState(null),y=q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[$,R]=s.useState(!1),L=Ao(y),O=Ao(n.refreshStatus.fetchState),S=()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?r(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken)},k=()=>Object.keys(n.uiState.collapsableStatus).reduce((N,V)=>(N[V]=n.uiState.collapsableStatus[V],N),{}),A=s.useCallback(N=>{const V=!(n.uiState.collapsableStatus[N]??!0);i({...n.uiState.collapsableStatus,[N]:V})},[n.uiState.collapsableStatus,i]),T=s.useCallback((N,V)=>{let K=n.reviewOperatingExpensesIds;const Y=[];let M=n.selectedSectionIds;const oe=n.sections[N].vendors;Y.push(...oe.map(W=>W.fluxAnalysisEntityId));let ye=xs-K.length;V?(Y.forEach(W=>{!K.includes(W)&&ye>0&&(K=[...K,W],ye--)}),M=[...M,N]):(K=K.filter(W=>!Y.includes(W)),M=M.filter(W=>W!==N)),c(K),h(M)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,c,h]),P=s.useCallback(N=>{const V=n.uiState.collapsableStatus[N]===!1;N==="generalExpense"&&!V&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),A(N)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,A]),D=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length,J=N=>N<D;return s.useEffect(()=>{const N={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:R,onSectionRowClick:P,updateNodeCollapsableStatus:A,updateOperatingExpensesIdsForReview:c,handleRedirectToVendorDetailPage:d,onSectionCheckboxClick:T,onSortOrderChanged:p}};if(x==null||!ts(C,n)){const V=Ld(n,N,!0);j(n),f(V)}else{const V=Ed(x,N,n,!0);f(V)}},[n,C,d,T,P,p,A,c]),t.jsx(Dd,{windowSize:m,children:t.jsx(Od,{children:x?t.jsx(fs,{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:J,itemCount:D,loadMoreItems:S},variableNodeHeightTree:{prevFetchState:L??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:$,setIsSortApplied:R,reducedFetchState:q.reduceAllFetchState([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:O??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:w,setHoveredParentId:I}}):null})})},Bd="expenseAutomationFluxPage",{reports:{common:Fd}}=Ie.getLocalizedStrings(),zd=({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:f,reviewOperatingExpensesIds:C,uiState:j}=n,w=s.useRef(null),I=s.useRef(!1),y=Ht({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:_d(C)}),$=ke();s.useEffect(()=>()=>{p("expenseAutomationPage")},[p]),s.useEffect(()=>{I.current&&w?.current?.scrollLeft!=null&&j.scrollPosition?.scrollLeft!==w.current.scrollLeft&&j.scrollPosition!=null&&r({scrollPosition:{scrollTop:j.scrollPosition?.scrollTop,scrollLeft:w.current.scrollLeft}})},[j.scrollPosition?.scrollLeft,w.current?.scrollLeft,j.scrollPosition,r]),s.useEffect(()=>{p(C.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[C,p]);const R=k=>{m(k)},L=k=>{u(e,k)},O=(k,A)=>{r({sortOrder:k,sortKey:A}),d(),x(e,null,!1)},S=()=>{const k=Es(n.sections,C);c(C,k===!0?"review":"unreview",e,!0)};if(f.fetchState==="Error")return t.jsxs(Nd,{children:[t.jsx(Vd,{onClick:h,children:t.jsx(mo,{})}),t.jsx(Hd,{children:Fd.failed})]});{const k=T=>{r({collapsableStatus:T})},A=T=>{x(e,T,!0)};return t.jsx(Wt,{...y,children:t.jsx("form",{id:sa(Bd),onSubmit:y.handleSubmit(S),style:{height:"100%",width:"100%"},children:t.jsx(Pd,{windowSize:$,children:t.jsx(Md,{fluxView:n,handleRedirectToVendorDetailPage:R,onSortOrderChanged:O,updateOperatingExpensesIdsForReview:i,updateNodeCollapsableStatus:k,fetchReimbursementView:A,updateSectionIdsForReview:l,fetchGeneralExpenseView:L,reportId:"flux_analysis_operating_expense"})})})})}},Es=(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}),Pd=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
+ `,Nd=a.div`
802
+ display: flex;
803
+ width: 100%;
804
+ height: 100vh;
805
+ flex-direction: column;
806
+ justify-content: center;
807
+ align-items: center;
808
+ `,Vd=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
+ `,Hd=a(St)`
824
+ margin-top: ${o.sp3};
825
+ color: ${e=>e.theme.colors.hero};
826
+ `,Wd="expenseAutomationJEAccountSettingsPage",Rs="vendorsAccountSection",Ud=e=>`${e}_form`;function qd({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]),f=s.useMemo(()=>Et(e.accruedExpensesAccountHierarchy,m,"Accounts"),[e.accruedExpensesAccountHierarchy,m]),C=s.useMemo(()=>Jd(e,u,x,f),[e,u,x,f]),j=Ht({mode:"all",reValidateMode:"onBlur",defaultValues:C,values:C,resetOptions:{keepDefaultValues:!0}}),w=j.handleSubmit(y=>{d(y)}),I=async y=>{h(y)};return s.useEffect(()=>{const y=j.watch($=>{$!=null&&hn(()=>I($))});return()=>{y.unsubscribe()}}),s.useEffect(()=>(p(()=>j.reset),c(!0),()=>{i("expenseAutomationPage"),c(!1)}),[]),s.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:y,previousPrepaidExpensesAccount:$,selectedFixedAssetsAccountIds:R,previousFixedAssetsAccount:L,selectedAccruedExpensesAccountIds:O,previousAccruedExpensesAccount:S}=e.accountSettingsLocalData,k=On(y,$)||On(R,L)||On(O,S);k===!0&&n!="expenseAutomationJEAccountSettingsPage"?i("expenseAutomationJEAccountSettingsPage"):k===!1&&n!=="expenseAutomationPage"&&i("expenseAutomationPage")},[e,n,i]),t.jsx(Kd,{children:t.jsx(Wt,{...j,children:t.jsx("form",{id:Ud(Wd),onSubmit:w,children:t.jsx(sr,{showTitle:!1,sectionId:Rs,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 Kd=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
+ `,Jd=(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{[Rs]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:r,allOptions:d},accruedExpensesAccount:{selectedOptions:m,allOptions:c}}}},{expenseAutomation:{jeSchedules:$t},common:{currency:bn,review:Gd,ignore:Yd,strings:{hyphen:ft},texts:vn},dateFormat:Zd,timeframe:{month:ei}}=Ie.getLocalizedStrings(),Xd=({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":B("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.vendor}),t.jsxs(se,{style:{gap:g[2]},children:[e.vendor.logo!=null?t.jsx(as,{photoUrl:e.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:e.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(Ue,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:e.vendor.name??ft})})]})]}),t.jsxs(Z,{children:[t.jsx(te,{children:$t.scheduleHeaders.scheduleCategory}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(Ue,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:e.baseTransaction.account.accountName??ft})})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.startMonth}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:e.startDate?.format(Zd.visual.MMMCommaYYYYFormat)??ft})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.period}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ei.slice(0,-1):ei}`:ft})})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:vn.totalAmount}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ue,{children:qe("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft}),children:t.jsx(de,{className:"highlight",children:qe("0,0.[00]",q.toAmount(e.baseTransaction.amount.amount,bn.currencyCode,bn.currencySymbol))??ft})})})]})]}),t.jsxs(So,{children:[t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:vn.category}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:e.jeDebit.account?.accountName??ft})})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:vn.classText}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(Ue,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:e.jeDebit.accountingClass?.className??ft})})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:$t.scheduleHeaders.type}),t.jsx(se,{children:t.jsx(de,{className:"highlight",style:{width:"unset"},children:t.jsx(Ss,{children:$t.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(Z,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:$t.scheduleHeaders.accumulatedCategory}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:e.jeCredit.account?.accountName??ft})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(Z,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Z,{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":B("je-schedule-draft-component-review-button",e.jeScheduleId),label:Gd,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:lo}}),t.jsx(dn,{"data-testid":B("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(vc,{children:[t.jsx(Qd,{}),t.jsx(eu,{children:$t.aiAccountant}),t.jsx(tu,{children:$t.zeniGPTText})]})]}),Qd=a(un)`
835
+ height: ${o.sp3};
836
+ width: ${o.sp3};
837
+ margin-right: ${o.sp1};
838
+ path {
839
+ stroke-width: 2;
840
+ }
841
+ `,eu=a(ns)`
842
+ color: ${e=>e.theme.colors.brandColorSapphire};
843
+ `,tu=a(Fe)`
844
+ color: ${e=>e.theme.colors.primary};
845
+ `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:ti}}},expenseAutomation:{jeSchedules:_e},common:{currency:dt,retry:nu,strings:{hyphen:We,empty:ni},texts:Gt},dateFormat:oi}=Ie.getLocalizedStrings(),{common:ou,timeframe:{month:ii}}=Ie.getLocalizedStrings(),Qe="jeSchedulePage",si=e=>`${e}_form`,To=(e,n)=>`${e}.${n}`,ai=To(Qe,"vendor"),ri=To(Qe,"scheduleExpenseCategory"),li=To(Qe,"accumulatedDepreciationCategory"),iu=({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:f,onFormDataChange:C,onPostJESchedule:j})=>{const{updatedAccumulatedDepreciationCategoryID:w,updatedCategoryId:I,updatedVendor:y}=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(),L=Ht({mode:"all",reValidateMode:"onChange",defaultValues:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView),values:ci(l,e,d,h,n,c,p,x.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:300})},S={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:o.sp4}),menu:()=>({width:350})},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 Q=H[Qe],{scheduledJournalEntryID:_,vendor:G}=Q;if(E.includes("vendor")){const ae=G?.defaultOptions.map(re=>re.value);if(G?.selectedOption!=null&&ae?.includes(G.selectedOption)!==!0){const re=x.entityAutoCompleteView.vendor.find(we=>we.id===G.selectedOption);re!=null&&L.setValue(`${Qe}.vendor.defaultOptions`,[{label:re.name??ou.strings.empty,value:re.id}])}else G?.selectedOption==null&&G?.defaultOptions.length!==0&&L.setValue(`${Qe}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(_,{...Q,vendor:G})}};s.useEffect(()=>{const E=L.watch((H,{name:Q})=>{Q!=null&&H!=null&&hn(()=>A(Q,H))});return()=>{E.unsubscribe()}}),s.useEffect(()=>{x.entityAutoCompleteView.fetchState==="Completed"&&R.current?.(rs(x.entityAutoCompleteView))},[x.entityAutoCompleteView.fetchState]);const T=L.handleSubmit(()=>{j(i.scheduledJournalEntry.scheduledJournalEntryID,i.jeScheduleTransactionKey)}),P=E=>n.filter(H=>H.qboId===E)[0]?.qboId,D=E=>p.filter(H=>H.qboId===E)[0]?.qboId,J=E=>[m.expense?.qboId,m.income?.qboId].includes(E),N=L.watch("jeSchedulePage.vendor"),V=(E,H)=>{u.onAutoCompleteInputChange?.(E,"vendor"),R.current=H},K=i.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,Y=i.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,M=i.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,oe=i.vendor.name.split("(deleted)")[0]?.toString(),ye=i.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??ni,W=i.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??ni,[pe,ge]=s.useState(Y===!0&&I==null),[b,z]=s.useState(M===!0&&w==null),[U,F]=s.useState(K&&(y?.id==null||y?.id==""));return s.useEffect(()=>{pe===!1&&l.updatedCategoryId==null&&L.setFocus(ri),b===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&L.setFocus(li),U===!1&&l.updatedVendor?.id==null&&L.setFocus(ai)},[pe,b,U,l,L]),t.jsx(Wt,{...L,children:t.jsx("form",{style:{width:"100%"},id:si(`${Qe}_${i.jeScheduleId}`),onSubmit:T,children:t.jsx(ko,{showBorder:k,onClick:E=>{i.jeScheduleType!=null&&i.jeScheduleId!=null&&f(E,i.jeScheduleId,i.jeScheduleTransactionKey,i.jeScheduleType)},"data-testid":B("je-schedule-resolve-component-schedule",`${Qe}_${i.jeScheduleId}`),children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[K===!0?t.jsx(Z,{style:{width:ue.COLUMN_ONE,padding:g[0],justifyContent:"center"},showHoverEffect:K,forceHoverEffect:U===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(ut,{className:"hover-background",style:{padding:`${o.sp2} ${o.sp3}`},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.vendor,t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:_e.tooltipText.missingVendor.replace("_deleted_vendor_",oe)}),children:t.jsx(Nn,{})})]}),t.jsx(se,{style:{gap:g[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:U===!0?t.jsxs(de,{onClick:E=>{E.stopPropagation(),F(!1)},"data-testid":B("je-schedule-resolve-component-add-vendor-button",`${Qe}_${i.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:g[2],color:Xe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Pn,{}),ti]}):t.jsx(ro,{name:ai,placeholder:ti,valueToId:E=>E,defaultValue:{selectedOption:N?.selectedOption,defaultOptions:N?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:o.sp4})},registerOptions:{required:!0,validate:E=>!!E.selectedOption},loadOptions:V})})})]})}):t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp0} ${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:Gt.vendor}),t.jsx(se,{children:t.jsxs(t.Fragment,{children:[i.vendor.logo?.href!=null?t.jsx(as,{photoUrl:i.vendor.logo.href,styles:{width:g[4],height:g[4]}}):t.jsx(cn,{name:i.vendor.name}),t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.vendor.name!==null?t.jsx(Ue,{children:i.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.vendor.name??We})})]})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:_e.scheduleHeaders.scheduleCategory}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.baseTransaction.account.accountName!=null?t.jsx(Ue,{children:i.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.baseTransaction.account.accountName??We})})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.startMonth}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:i.startDate?.format(oi.visual.MMMCommaYYYYFormat)??We})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:_e.scheduleHeaders.period}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:i.period!=null?`${i.period} ${i.period===1?ii.slice(0,-1):ii}`:We})})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:Gt.totalAmount}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",title:t.jsx(Ue,{children:qe("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(de,{className:"highlight",children:qe("0,0.[00]",q.toAmount(i.baseTransaction.amount.amount,dt.currencyCode,dt.currencySymbol))??We})})})]})]}),t.jsxs(So,{children:[Y===!0?t.jsx(Z,{showHoverEffect:Y===!0,forceHoverEffect:l?.updatedCategoryId==null&&pe===!1,style:{padding:"unset",justifyContent:"center",width:ue.COLUMN_ONE},children:t.jsxs(ut,{className:"hover-background",children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[Gt.category,Y===!0?t.jsx(Ce,{display:"flex",placement:"top-start",title:t.jsx(kn,{children:_e.tooltipText.missingCategory.replace("_deleted_category_",ye)}),children:t.jsx(Nn,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:Y===!0?-2:0},children:Y===!0?t.jsx(t.Fragment,{children:pe===!0?t.jsxs(de,{onClick:E=>{E.stopPropagation(),ge(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-category-button",`${Qe}_${i.jeScheduleId}`),children:[t.jsx(Pn,{}),_e.addCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,name:ri,placeholder:_e.addCategory,valueToId:E=>P(E),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:E=>!!E.selectedOption},disableCurrentOption:J,customStyleConfig:O})}):t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.category}),t.jsx(se,{className:"item-value-container",children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.account?.accountName!=null?t.jsx(Ue,{children:i.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.jeDebit.account?.accountName??We})})})]}),t.jsxs(Z,{children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:Gt.classText}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:i.jeDebit.accountingClass?.className!=null?t.jsx(Ue,{children:i.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.jeDebit.accountingClass?.className??We})})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.type}),t.jsx(se,{className:"test",children:t.jsx(de,{className:"highlight",style:{width:"unset"},children:t.jsx(Ss,{children:_e.scheduleTypes[i.jeScheduleType??"prepaid_expenses"]})})})]}),i.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:M===!0?t.jsx(Z,{style:{width:ue.COLUMN_FOUR,padding:"unset",justifyContent:"center"},showHoverEffect:M,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&b===!1,children:t.jsxs(ut,{className:"hover-background",style:{padding:g[2],paddingLeft:g[3]},children:[t.jsxs(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:[_e.scheduleHeaders.accumulatedCategory,M===!0?t.jsx(Ce,{display:"flex",placement:"top-end",title:t.jsx(kn,{children:_e.tooltipText.missingDepCategory.replace("_deleted_dep_category_",W)}),children:t.jsx(Nn,{})}):null]}),t.jsx(se,{className:"item-value-container",style:{marginLeft:M===!0?-2:0},children:M===!0?t.jsx(t.Fragment,{children:b===!0?t.jsxs(de,{onClick:E=>{E.stopPropagation(),z(!1)},style:{display:"inline-flex",alignItems:"center",gap:g[1],color:Xe.brandColorGoldDark,cursor:"pointer"},"data-testid":B("je-schedule-resolve-component-add-depreciation-category-button",`${Qe}_${i.jeScheduleId}`),children:[t.jsx(Pn,{}),_e.addDepCategory]}):t.jsx(Qt,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:li,placeholder:_e.addDepCategory,valueToId:E=>D(E),defaultValue:{allOptions:h},registerOptions:{required:!0,validate:E=>!!E.selectedOption},customStyleConfig:S,disableCurrentOption:J})}):t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.jeCredit.account?.accountName??We})})})]})}):t.jsxs(Z,{style:{width:ue.COLUMN_FOUR,padding:`${o.sp2} ${o.sp2} ${o.sp2} ${o.sp3}`,justifyContent:"center"},children:[t.jsx(te,{style:{display:"flex",alignItems:"center",gap:g[1]},children:_e.scheduleHeaders.accumulatedCategory}),t.jsx(Ce,{display:"block",placement:"bottom",title:i.jeCredit.account?.accountName!=null?t.jsx(Ue,{children:i.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(de,{className:"highlight",children:i.jeCredit.account?.accountName??We})})]})}):null,i.jeScheduleType!=="fixed_assets"?t.jsx(Z,{style:{width:ue.COLUMN_FOUR}}):null,t.jsx(Z,{style:{width:ue.COLUMN_FIVE}})]}),t.jsxs(wc,{children:[t.jsx(Z,{style:{padding:"unset",width:ue.COLUMN_ONE},children:t.jsxs(bc,{children:[t.jsx(te,{children:_e.scheduleHeaders.jePostingDate}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:i.scheduledJournalEntry.expectedPostDate.format(oi.visual.MMMDCommaYYFormat)??We})})]})}),t.jsxs(Z,{children:[t.jsx(te,{children:_e.scheduleHeaders.balance}),t.jsx(se,{children:t.jsx(Ce,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(Ue,{children:qe("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We}),children:t.jsx(de,{className:"highlight",children:qe("0,0.[00]",q.toAmount(i?.scheduledJournalEntry?.runningBalance?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:_e.scheduleHeaders.months}),t.jsx(se,{children:t.jsxs(de,{className:"highlight",children:[i.scheduledJournalEntry.expectedPostDate.diff(i.startDate,"month")+1,"/",i.period]})})]}),t.jsx(Z,{style:{width:ue.COLUMN_FOUR}}),t.jsxs(Z,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:_e.scheduleHeaders.amountForMonth}),t.jsx(se,{children:t.jsx(de,{className:"highlight",children:qe("0,0.[00]",q.toAmount(i.scheduledJournalEntry.amount?.amount??0,dt.currencyCode,dt.currencySymbol))??We})})]})]})]}),t.jsx(Io,{children:t.jsx(dn,{form:si(`${Qe}_${i.jeScheduleId}`),label:nu,variant:"primary",className:"item-value-container",type:"submit",loading:r?.fetchState==="In-Progress",size:"small",disabled:!k,style:{minWidth:lo}})})]})})})})},ci=(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,f=e.updatedClassId,C=r!=null?h.find(I=>I.accountId===r):void 0,j=x!=null?i.find(I=>I.accountId===x):void 0,w=f!=null?p.find(I=>I.classId===f):void 0;return{[Qe]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:j?.qboId,allOptions:c},vendor:{selectedOption:u?.id??m?.id,defaultOptions:hs(l,u??m)},scheduleClass:{selectedOption:w?.classId,allOptions:d}}}},Pn=a(Dn)`
846
+ width: ${o.sp3};
847
+ height: ${o.sp3};
848
+ `,Nn=a(ps)`
849
+ width: 12px;
850
+ height: 12px;
851
+ color: ${Xe.important};
852
+ `;function Ds(){return t.jsx(Cs,{children:t.jsxs(ws,{children:[t.jsxs(bs,{children:[t.jsx(Be,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]}),t.jsxs(vs,{children:[t.jsx(Be,{width:g[9],height:27,style:{marginBottom:g[2]}}),t.jsx(di,{})]})]})})}const di=()=>t.jsx(ko,{style:{minWidth:1088},children:t.jsxs(jo,{children:[t.jsxs($o,{children:[t.jsxs(vo,{children:[t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Be,{width:g[10],height:14})}),t.jsxs(se,{style:{gap:g[2]},children:[t.jsx(yo,{height:g[4],width:g[4]}),t.jsx(Be,{height:g[4],width:g[10]})]})]}),t.jsxs(Z,{children:[t.jsx(te,{children:t.jsx(Be,{width:101,height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:203})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Be,{width:g[9],height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:71})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]},children:[t.jsx(te,{children:t.jsx(Be,{width:107,height:14})}),t.jsx(Be,{height:g[4],width:68})]}),t.jsxs(Z,{style:{alignItems:"flex-end",width:ue.COLUMN_FIVE},children:[t.jsx(te,{children:t.jsx(Be,{width:73,height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:49})})]})]}),t.jsxs(So,{children:[t.jsxs(Z,{style:{width:ue.COLUMN_ONE,padding:`${o.sp2} ${o.sp3}`},children:[t.jsx(te,{children:t.jsx(Be,{width:49,height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:158})})]}),t.jsxs(Z,{children:[t.jsx(te,{children:t.jsx(Be,{width:36,height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:88})})]}),t.jsxs(Z,{style:{width:ue.COLUMN_THREE},children:[t.jsx(te,{children:t.jsx(Be,{width:36,height:14})}),t.jsx(se,{children:t.jsx(Be,{height:g[4],width:100})})]}),t.jsx(Z,{style:{width:ue.COLUMN_FOUR,paddingLeft:g[3]}}),t.jsx(Z,{style:{width:ue.COLUMN_FIVE}})]})]}),t.jsxs(Io,{children:[t.jsx(Be,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}}),t.jsx(Be,{height:29,width:53,style:{margin:`${o.sp0} ${o.sp3}`}})]})]})}),Be=a(Rt)`
853
+ border-radius: ${o.sp1};
854
+ `,{common:{create:su,resolve:au}}=Ie.getLocalizedStrings();function ru({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,f=e.resolveSchedules,C=e.uncategorizedAccounts,{allAccountList:j,allClassList:w,allDepreciationAccountList:I}=e,y=Et(e.accountListNestedAccountHierarchy),$=Et(e.allDepreciationAccountListNestedAccountHierarchy),R=jn(e.classListNestedAccountHierarchy),L=(S,k,A)=>{d(S,k,A)},O=(S,k,A,T)=>{let P=S.target;for(;P;){if(P.classList.contains("item-value-container")||P.classList.contains("hover-background")||P.classList.contains("auto-complete-single-select-field__input")||P.classList.contains("auto-complete-single-select-field__option")||P.classList.contains("grouped-single-select-field__input")||P.classList.contains("grouped-single-select-field__menu"))return;P=P.parentElement}d(k,A,T)};return s.useEffect(()=>{if(f.length!==0){for(const S in m)if(Object.prototype.hasOwnProperty.call(m,S)){const{updatedAccumulatedDepreciationCategoryID:k,updatedCategoryId:A,updatedVendor:T}=m[S];if(k!=null||A!=null||T!=null&&T?.id!==""){l("expenseAutomationJESchedulePage");break}else l("expenseAutomationPage")}}else f.length===0&&l("expenseAutomationPage")}),s.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(Ds,{}):r.length!==0||f.length!==0?t.jsx(Cs,{children:t.jsxs(ws,{children:[r.length>0?t.jsxs(bs,{children:[t.jsxs(hi,{children:[su,t.jsx(pi,{isCircular:r.length<10,children:t.jsx(mi,{children:r.length})})]}),t.jsx(ui,{children:r.map((S,k)=>t.jsx(Xd,{ignoreStatus:x[S.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:p,onReviewClickHandler:L,jeScheduleClickHandler:O,draft:S},`${k}_${S.jeScheduleId}`))})]}):null,f.length>0?t.jsxs(vs,{children:[t.jsxs(hi,{children:[au,t.jsx(pi,{isCircular:f.length<10,children:t.jsx(mi,{children:f.length})})]}),t.jsx(ui,{children:f.map((S,k)=>m[S.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(iu,{vendorSearchAutoCompleteActions:i,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:O,onPostJESchedule:h,uncategorizedAccounts:C,allAccountList:j,allAccountGroupedOptions:y,allClassGroupedOptions:R,allClassList:w,allDepAccountGroupedOptions:$,allDepAccountList:I,draft:S,postStatus:u[S.scheduledJournalEntry.scheduledJournalEntryID],localData:m[S.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:c},`${k}_${S.jeScheduleTransactionKey}`))})]}):null]})}):null}const ui=a.div`
855
+ display: flex;
856
+ flex-direction: column;
857
+ gap: ${o.sp4};
858
+ min-width: 1088px;
859
+ `,hi=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
+ `,pi=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?Ze`
872
+ height: ${o.sp3};
873
+ width: ${o.sp3};
874
+ padding: ${o.sp0};
875
+ `:Ze`
876
+ height: 18px;
877
+ padding: ${_a.padding};
878
+ `}
879
+ `,mi=a(Pa)`
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 lu({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:f}){const{jeSchedules:C}=e;return C.fetchState==="In-Progress"||C.accountSettingsView.fetchState==="In-Progress"?t.jsx(Ds,{}):C.accountSettingsView.fetchState==="Completed"&&C.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&C.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(qd,{setIsJeAccountSettingsOpened:f,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:Ve(e.currentSelectedView).allDoneText.title,subTitle:Ve(e.currentSelectedView).allDoneText.subTitle}):C.fetchState==="Completed"?t.jsx(ru,{setCurrentFooterFormId:x,handleJeScheduleClick:i,ignoreRecommendedJeSchedule:m,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:h,onPostJESchedule:p,vendorSearchAutoCompleteActions:u,vendorSearchAutoCompleteData:c}):null}const cu=72,Os=50,du=1,uu=["receipts"],gi=e=>q.stringToUnionStrict(e,uu),{common:{texts:{vendor:hu,amount:pu,receipts:mu,category:gu,classText:xu,date:fu}}}=Ie.getLocalizedStrings(),yu={key:"vendor",value:hu,sortOrder:"ascending",width:new X(18,18)},Cu={key:"category",value:gu,sortOrder:"ascending",width:new X(18,18)},wu={key:"class",value:xu,sortOrder:"ascending",width:new X(18,18)},bu={key:"date",value:fu,sortOrder:"descending",width:new X(11,11)},vu={key:"receipts",value:mu,sortOrder:"descending",width:new X(6,6)},Su={key:"amount",value:pu,sortOrder:"ascending",width:new X(10,10)},ht=[yu,Cu,wu,bu,vu,Su],Vn={sortKey:"date",sortOrder:"descending"},xi={containerPaddingLeftRight:new X(g[3],g[4])},Ms=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[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=>{gi(r.key)==null&&i(q.toExpenseAutomationMissingReceiptsSortKey(r.key),r.sortOrder)};return t.jsx(ju,{windowSize:c,children:h.map((r,m)=>{const u=n!=null||gi(r.key)!=null;return t.jsxs(ku,{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(Au,{onClick:()=>u?null:l(r),isSortDisabled:u,children:[t.jsx(Eu,{children:r.value}),u?null:t.jsx($u,{sortConfig:e,headerData:r,children:t.jsx(Lu,{})})]}),u?null:t.jsx(Tu,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Vn.sortKey,children:t.jsx(Iu,{onClick:()=>{u||i(Vn.sortKey,Vn.sortOrder)},"data-testid":B("missing-receipts-header-close-icon",r.key)})})]},r.key)})})},ju=a.div`
888
+ top: ${o.sp0};
889
+ left: ${o.sp0};
890
+ height: ${Os}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=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
899
+ padding-right: ${e=>xi.containerPaddingLeftRight.valuePx(e.windowSize)};
900
+ `,ku=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
+ `,Iu=a(Rn)`
914
+ width: ${o.sp2};
915
+ height: ${o.sp2};
916
+ cursor: pointer;
917
+ `,$u=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
+ `,Lu=a(En)`
929
+ width: ${o.sp2};
930
+ height: ${o.sp2};
931
+ `,Au=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
+ `,Eu=a(gt)`
939
+ display: flex;
940
+ `,{common:{strings:{underscore:Bs,hyphen:Hn,empty:fi},documents:{singleFileUploadSizeErrorMessage:Ru,multipleFileUploadSizeErrorMessage:Du},snackBar:{missing_receipts_attachment:{failed:Ou}},tooltips:{addMissingReceipt:Mu}},dateFormat:Bu}=Ie.getLocalizedStrings(),Sn={containerPaddingLeftRight:new X(g[3],g[4]),containerPaddingTopBottom:new X(g[2],g[3])},Fu=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:d,authParams:c,selectedPeriod:h,onUploadReceiptComplete:p,onMissingReceiptsRowClick:i,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:r})=>{const m=ke(),u=s.useRef(null),x=s.useCallback(async(j,w,I,y,$)=>{l(e.id,"In-Progress"),await ar(j,w,I,y,$).then(({uploadResponse:R,errorMessage:L})=>{R!=null?R.transaction.attachments!=null&&(r(R.transaction),setTimeout(()=>p(R.transaction,h),2e3)):l(e.id,"Error",{code:500,message:Ou},L)}).catch(R=>{l(e.id,"Error",R)})},[e.id,h,r,p,l]),f=s.useCallback(j=>{if(j.target.files!=null){const w=j.target.files,I=[],y=[];for(let $=0;$<w.length;$++)I.push(w[$].name),y.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(Fs,{windowSize:m,onClick:()=>i(e.id,e.type),"data-testid":B("missing-receipts-list-row",e.id),children:ht.map((j,w)=>{const I=`${e.id}${Bs}${j.key}`;switch(j.key){case"vendor":default:return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsxs(In,{children:[t.jsx(ss,{photoUrl:e.vendorId!=null?e.logo?.toString()??fi:fi,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(et,{text:e.vendorName??e.description,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})]})})},I);case"category":case"class":{const y=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=j.key==="category"?y:$;return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(In,{children:R!==Hn?t.jsx(et,{text:R,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Hu,{children:R})})})},I)}case"date":return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(In,{children:t.jsx(et,{text:e.date.format(Bu.visual.MMMDCommaYYYYformat),itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})})},I);case"receipts":return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Xi,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(za,{shouldDisplay:!0,width:g[4],height:g[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Vu,{onClick:y=>{y.stopPropagation()},children:t.jsx(Zi,{"data-testid":B("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:u,sizeLimit:Mn,multiple:!1,acceptableTypes:[...q.SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES],onFileChange:f,onFileSizeError:(y,$)=>{y&&l(e.id,"Error",{code:500,message:$===!0?Ru.replace("__maxFileSize__",Eo(Mn,0)):Du.replace("__maxFileSize__",Eo(Mn,0))})}})}),t.jsx(Ce,{display:"flex",placement:"bottom",title:Mu,enterDelay:600,children:t.jsx(Nu,{onClick:y=>{y.stopPropagation(),C()}})})]})})},I);case"amount":{const y=qe("0,0.[00]",e.amount);return t.jsx(Pt,{windowSize:m,wrapperWidth:j.width,children:t.jsx(Nt,{windowSize:m,isLastItem:w===ht.length-1,children:t.jsx(et,{text:e.amount.amount<0?`-${y}`:y,itemTextStyle:{...Lt.standardRegular.cssObject,color:"inherit"}})})},I)}}})})},zu=()=>{const e=ke(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(Fs,{windowSize:e,ref:n,children:ht.map((h,p)=>{const i=`${p}${Bs}${h.key}`;switch(h.key){case"vendor":return t.jsx(Pt,{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(Pt,{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)}})})},Fs=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
+ `,Pt=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=Ze`
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
+ `,Pu=Ze`
978
+ height: ${o.sp3};
979
+ width: ${o.sp3};
980
+ cursor: pointer;
981
+ `,Nu=a(Dn)`
982
+ ${Pu};
983
+ color: ${e=>e.theme.colors.brandColorGoldDark};
984
+ &:hover {
985
+ color: ${e=>e.theme.colors.primary};
986
+ }
987
+ `,Nt=a(Fe)`
988
+ overflow: hidden;
989
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
990
+ display: flex;
991
+ width: 100%;
992
+ align-items: center;
993
+ `,Vu=a.div``,In=a.div`
994
+ display: flex;
995
+ flex-direction: row;
996
+ column-gap: ${o.sp2};
997
+ align-items: center;
998
+ `,Hu=a(Fe)`
999
+ ${_u};
1000
+ color: inherit;
1001
+ `,Wu=a.div`
1002
+ display: flex;
1003
+ `,Uu=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ke();return t.jsxs(qu,{windowSize:h,children:[t.jsx(Ms,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c}),t.jsx(Ku,{windowSize:h,children:[...Array(3)].map((p,i)=>t.jsx(zu,{},i))})]})},qu=a.div`
1004
+ display: block;
1005
+ min-height: 100%;
1006
+ flex-direction: column;
1007
+ width: 100%;
1008
+ `,Ku=a.div`
1009
+ display: flex;
1010
+ min-height: 100%;
1011
+ flex-direction: column;
1012
+ row-gap: ${o.sp3};
1013
+ `,{common:Ju}=Ie.getLocalizedStrings(),Gu=({missingReceipts:e,receiptUploadEndpoint:n,authParams:d,selectedPeriod:c,isDisabled:h,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r,onUpdateMissingReceiptsUIState:m,onFetchMissingReceiptsList:u})=>{const x=ke(),{fetchState:f,uiState:C,transactions:j}=e,w=s.useRef(null),[I,y]=s.useState(!1);s.useEffect(()=>{w.current?.resetAfterIndex(0)},[x,w]),s.useEffect(()=>{f==="Completed"&&y(!1)},[f]);const $=L=>cu,R=(L,O)=>{m({sortOrder:O,sortKey:L})};return t.jsxs(Xu,{children:[t.jsx(Qu,{windowSize:x,children:f==="Error"?t.jsxs(th,{windowSize:x,children:[t.jsx(nh,{onClick:()=>u(),"data-testid":B("missing-receipts-list-table-reload-button"),children:t.jsx(mo,{})}),t.jsx(oh,{children:Ju.reloadPage.label})]}):f==="Completed"&&j.length===0?t.jsx(bt,{tab:"missing_receipts",title:Ve("missing_receipts").allDoneText.title,subTitle:Ve("missing_receipts").allDoneText.subTitle}):f==="Not-Started"||f==="In-Progress"&&j.length===0?t.jsx(Uu,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},fetchState:f,onColumnSortConfigChanged:R}):t.jsx(eh,{windowSize:x,children:t.jsx(Ln,{children:({height:L,width:O})=>t.jsxs(sh,{style:{height:L,width:O},children:[t.jsx(Zu,{children:t.jsx(Ms,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},isDisabled:f==="In-Progress"?"readonly":h,onColumnSortConfigChanged:R})}),t.jsx(An,{ref:w,height:L-Os,itemCount:j.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:d,isDisabled:h,selectedPeriod:c,onMissingReceiptsRowClick:p,onUploadReceiptComplete:i,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:r},itemSize:$,width:O,style:{willChange:"auto"},overscanCount:du,onScroll:({scrollOffset:S})=>{m({scrollPosition:{scrollTop:S}})},initialScrollOffset:C.scrollPosition?.scrollTop,children:Yu})]})})})}),t.jsx(Pe,{controller:I===!0,children:t.jsx(ah,{children:t.jsx(Xi,{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(ih,{style:{...n,width:"100%"},children:t.jsx(Fu,{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)})},Zu=a.div`
1014
+ width: auto;
1015
+ `,Xu=a.div`
1016
+ width: 100%;
1017
+ height: 100%;
1018
+ background-color: ${e=>e.theme.colors.grey4};
1019
+ `,Qu=a.div`
1020
+ height: 100%;
1021
+ `,eh=a.div`
1022
+ height: 100%;
1023
+ display: flex;
1024
+ flex-direction: column;
1025
+ max-width: 99.9%;
1026
+ `,th=a.div`
1027
+ display: flex;
1028
+ width: 100%;
1029
+ height: ${e=>`calc(100% - ${os.valuePx(e.windowSize)})`};
1030
+ flex-direction: column;
1031
+ justify-content: center;
1032
+ align-items: center;
1033
+ `,nh=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
+ `,oh=a(Oa)`
1049
+ margin-top: ${o.sp3};
1050
+ color: ${e=>e.theme.colors.hero};
1051
+ `,ih=a.div`
1052
+ top: ${o.sp0};
1053
+ left: ${o.sp0};
1054
+ padding-bottom: ${o.sp3};
1055
+ box-sizing: border-box;
1056
+ `,sh=a.div`
1057
+ position: relative;
1058
+ `,ah=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
+ `,rh=[...q.SUPPORTED_ATTACHMENT_FILE_TYPES],lh=7*1024*100,ch=a.div`
1068
+ width: ${an}px;
1069
+ `,Wn=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
+ `,dh=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
+ `,uh=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
+ `,hh=a.div`
1100
+ position: relative;
1101
+ `,yi=a(Fe)`
1102
+ position: relative;
1103
+ `,ph=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
+ `,mh=a.div`
1121
+ user-select: text;
1122
+ `,gh=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
+ `,xh=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
+ `,fh=a(St)`
1138
+ color: ${e=>e.theme.colors.grey1};
1139
+ user-select: none;
1140
+ `,yh=a(ns)`
1141
+ color: ${e=>e.theme.colors.primary};
1142
+ `,Ch=a.div`
1143
+ flex-direction: column;
1144
+ row-gap: ${o.sp3};
1145
+ display: flex;
1146
+ `,wh=wo`
1147
+ 0% {
1148
+ transform: translateX(100%);
1149
+ }
1150
+ 100% {
1151
+ transform: translateX(0)
1152
+ }
1153
+ `,bh=wo`
1154
+ 0% {
1155
+ transform: translateX(0)
1156
+ }
1157
+ 100% {
1158
+ transform: translateX(100%)
1159
+ }
1160
+ `,vh=a.div`
1161
+ animation: ${e=>e.allThreadsSectionOpen?wh:bh}
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: ${Ji}px;
1169
+ max-width: ${Ki}px;
1170
+ `,$n="monthEndReportFormSection",Ci="monthEndReportPage",Ge=Ie.getLocalizedStrings();function Sh({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:f,onCloseAllThreadsSection:C,previewMonthEndReport:j,saveMonthEndReport:w,onEditClick:I,onOpenFileAttachmentSnackBar:y,onClickCustomerRequest:$,sendMonthEndReport:R}){const L=vt(),[O,S]=s.useState(),[k,A]=s.useState(0),[T,P]=s.useState(0),D=s.useRef(),J=s.useRef(null),N=s.useRef(null),{html:V,subject:K,improveUsingZeniGPTStatus:Y}=d,[M,oe]=s.useState(),[ye,W]=s.useState(!1),[pe,ge]=s.useState(!1),b=s.useRef(null),z=s.useRef(null),U=aa(p,250),F=d.fetchState==="Not-Started"||d.fetchState==="In-Progress"||d.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||d.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:E,sortedThreads:H,threadsPositions:Q,observer:_,unresolvedThreadsMap:G,handleRemoveFloatingThread:ae}=ra(i,b,!c,F,r),re=s.useCallback(()=>{p?z.current!=null&&P(Math.min((z.current.offsetWidth-an-g[4])/2,z.current.offsetWidth-an-Ki-g[4])):z.current!=null&&A(Math.min((z.current.offsetWidth-an-g[4])/2,z.current.offsetWidth-an-Ji-g[4]))},[p]);s.useEffect(()=>{re()},[p,re]),s.useEffect(()=>(window.addEventListener("resize",re),()=>{window.removeEventListener("resize",re)}),[re]);const we=r?Pi:Ni,{openThread:be,addThread:ve,setOpenThread:v}=s.useContext(we),ee=la(Lo,!1,!c),Se=b.current?.getBoundingClientRect(),xe=ee!=null&&ee.coords&&Se?{left:ee.coords.left-Se.left,top:ee.coords.top-Se.top}:void 0,Le=s.useCallback(()=>{const ce=window.getSelection()?.getRangeAt(0),ne=ca();if(!ce||ne==null)return;const je={...l,...ne,startPath:ne.startPath.join(),endPath:ne.endPath.join()},$e=`${Gi()}${qi}`,Te=`cockpit_${e}`;ve($e,{type:"thread",id:$e,roomId:Te,createdAt:new Date,comments:[],metadata:je,updatedAt:new Date,resolved:!1}),v($e)},[ve,e,l,v]);s.useEffect(()=>{be!=null&&p&&C()},[p,be,C]);const Ae=Y.fetchState==="In-Progress",he=Ht({mode:"all",defaultValues:wi(d),values:wi(d)}),Ke=he.handleSubmit(ce=>{const{recipientEmailList:ne,subject:je}=ce[$n];if(c===!0)R?.(M?.id);else{const $e=O?.replace(da,Ge.common.strings.empty);ne!=null&&je!=null&&j(ne,je,M?.id,$e!=null&&$e.length>0?O:void 0)}}),Je=()=>{J.current!=null&&J.current.click()},He=()=>{M!==void 0&&M!=null&&(x([M.id]),oe(void 0),W(!1))},tt=ce=>{const ne=ce.target.files?ce.target.files[0]:null;if(ne)if(!q.toSupportedAttachmentFileType(ne.type)||pe)console.warn("Please select a valid file.");else{const je=new FileReader;je.onload=function($e){const Te=$e.target?.result;if(typeof Te=="string"){const st={data:Te.split(",")[1],name:ne.name,id:q.getAttachmentFileIdByFileName(e,ne.name)};oe(st),W(!0),f([st])}},je.readAsDataURL(ne)}},le=()=>{N.current&&N.current.scrollIntoView({behavior:"smooth"})},nt=()=>{const ce=he.getValues(),{recipientEmailList:ne,subject:je}=ce[$n];ne!=null&&je!=null&&w(ne,je,M?.id,O)};s.useEffect(()=>{S(d.zeniRequestsHtml)},[d.zeniRequestsHtml]),s.useEffect(()=>{D.current=M},[M]),s.useEffect(()=>{oe(q.mapAttachmentFileToAttachmentFilePayload(d.attachmentFile)),W(!1)},[d.attachmentFile]),s.useEffect(()=>{pe&&y()},[pe,y]);const it=q.zeniDate(`${m.year}-${m.month}-01`).format(Ge.dateFormat.visual.MMMMFormat),ct=V!=null?V.split(ua):[],Ot=d.concatenatedHtml,jt=()=>d.lastDraftSavedDate!=null&&c===!1?t.jsx(Da,{time:d.lastDraftSavedDate,user:d.reportLastSavedByUser,timeStampLabel:Ge.cockpit.monthEndReport.timeStampLabel}):null,Mt=()=>r===!0?U?t.jsxs(t.Fragment,{children:[t.jsx(vh,{allThreadsSectionOpen:p,children:t.jsx(Ea,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${L.colors.grey3}`,boxShadow:`${o.sp0} 1px 2px ${o.sp0} ${Xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${o.sp5} - ${o.sp5})`,backgroundColor:L.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:(ce,ne)=>{v(ne);const je=H.findIndex($e=>$e[0]===ne);C(),E.current?.[je]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(Wn,{availableWidth:k})]}):t.jsx(Ra,{observer:_,canvasContainerRef:b,sortedThreads:H,threadsPositions:Q,threadsRefs:E,unresolvedThreadsMap:G,editorMode:!c,style:{minWidth:`${k}px`,position:"relative",height:"fit-content",top:`${b.current?.offsetTop}px`,minHeight:o.sp12},handleRemoveFloatingThread:ae}):t.jsx(Wn,{availableWidth:k}),kt=(d.zeniRequestsData??[]).length+ha(d.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(dh,{ref:z,children:[t.jsx(Wn,{availableWidth:p?T:k}),t.jsxs(ch,{children:[t.jsx(Wt,{...he,children:t.jsx("form",{id:bi(Ci),onSubmit:Ke,children:t.jsxs(Ch,{children:[t.jsx(pa,{sectionId:$n,previewMode:c,subject:K}),!c&&kt>0?t.jsx(ma,{totalItems:kt,onClickCustomerRequest:$}):null,t.jsxs(ph,{id:Lo,ref:b,children:[t.jsxs(mh,{className:"monthEndReportCanvasWrapper",children:[M!=null||pe?t.jsx(gh,{"data-testid":B("email-attachment-container"),onClick:le,children:t.jsx(ga,{fileSizeError:pe,setFileSizeError:ge,loading:!1,showAnimation:!c&&ye})}):null,c?t.jsx(yi,{dangerouslySetInnerHTML:{__html:xa(Ot)}}):t.jsxs(t.Fragment,{children:[t.jsxs(hh,{id:fa,children:[t.jsx(Fe,{dangerouslySetInnerHTML:{__html:ct[0]!=null?ct[0]+"</body></html>":Ge.common.strings.empty}}),t.jsxs(uh,{children:[t.jsx(yh,{children:Ge.cockpit.monthEndReport.editorTitle}),t.jsx(fh,{children:Ge.cockpit.monthEndReport.editorNote})]})]}),t.jsx(xh,{id:ya,children:t.jsx(Ca,{handleFileInputClick:Je,fileAttached:M!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:Ae,initialHtmlString:d.zeniRequestsHtml,improveUsingZeniGPTClick:u,setZeniRequestsHtml:S,customerRequestData:h})}),t.jsx(yi,{id:Yi,dangerouslySetInnerHTML:{__html:ct[1]!=null?"<html><body>"+ct[1]:Ge.common.strings.empty}})]}),M!=null?t.jsx(wa,{ref:N,fileName:M.name,fileSize:ba(M.data),onRemove:He,isRemovable:!c}):null]}),xe?t.jsx(va,{style:{zIndex:15},coords:xe,alignment:ee.alignment,onClick:Le}):null,t.jsx(Sa,{canvasContainerRef:b,sortedThreads:H,editorMode:!c,isZeniUser:r})]})]})})}),t.jsx(Zi,{name:M?.name??Ge.common.strings.empty,fileRef:J,sizeLimit:lh,acceptableTypes:rh,onFileChange:async ce=>{tt(ce)},onFileSizeError:ce=>ge(ce),multiple:!1})]}),Mt()]}),t.jsx(Vi,{style:{zIndex:10},leftSideComponent:jt(),formId:bi(Ci),cancelBtn:{isDisabled:Ae,label:c===!0?Ge.cockpit.monthEndReport.editButtonLabel:Ge.cockpit.monthEndReport.saveChanges,onClick:c===!0?I:nt,style:{width:"136px",padding:`${o.sp0} ${o.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:d.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:Ae,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 wi=e=>({[$n]:{recipientEmailList:e.recipientEmailList,subject:e.subject??Ge.common.strings.empty}}),bi=e=>`${e}_form`;Lt.smallBold.lineHeightValue;const jh=1,kh=50,vi=56,Ih=["memo"],Si=e=>q.stringToUnionStrict(e,Ih),{expenseAutomation:{transactions:{header:{vendors:$h,category:Th,classText:Lh,date:Ah,type:Eh,amount:Rh,memo:Dh}}}}=Ie.getLocalizedStrings(),Oh={key:"vendor",value:$h,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]}}},Bh={key:"class",value:Lh,sortOrder:"ascending",width:new X(18,18),customStyle:{common:{paddingLeft:g[7]}}},Fh={key:"date",value:Ah,sortOrder:"descending",width:new X(11,11),customStyle:{common:{}}},zh={key:"transaction_type",value:Eh,sortOrder:"descending",width:new X(13,13),customStyle:{common:{}}},_h={key:"memo",value:Dh,sortOrder:"ascending",width:new X(6,6),customStyle:{common:{}}},Ph={key:"amount",value:Rh,sortOrder:"ascending",width:new X(10,10),customStyle:{common:{paddingRight:g[4]}}},wt=[Oh,Mh,Bh,Fh,zh,_h,Ph],Un={sortKey:"date",sortOrder:"descending"},zs=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:d})=>{const c=ke(),[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=>{Si(r.key)==null&&i(q.toTransactionsSortKey(r.key),r.sortOrder)};return t.jsx(Nh,{windowSize:c,"data-testid":B("transaction-categorization-header-container"),children:h.map((r,m)=>{const u=n!=null||Si(r.key)!=null;return t.jsxs(Vh,{sortDataValue:e.sortKey,actualDataValue:r.key,wrapperWidth:r.width,style:r.customStyle?.common,isSortDisabled:u,windowSize:c,isLastItem:m===h.length-1,"data-testid":B("transaction-categorization-header-wrapper",r.key),children:[t.jsxs(Kh,{"data-testid":B("transaction-categorization-header",r.value),onClick:()=>l(r),isSortDisabled:u,children:[t.jsx(Jh,{children:r.value}),u?null:t.jsx(Wh,{sortConfig:e,headerData:r,"data-testid":B("transaction-categorization-sort-icon",r.key),children:t.jsx(qh,{})})]}),u?null:t.jsx(Uh,{isSortDisabled:u,sortDataValue:e.sortKey,isVisible:e.sortKey===r.key&&e.sortKey!==Un.sortKey,"data-testid":B("transaction-categorization-close-icon",r.key),children:t.jsx(Hh,{onClick:()=>{i(Un.sortKey,Un.sortOrder)},"data-testid":B("transaction-categorization-close-icon-button",r.key)})})]},r.key)})})},Nh=a.div`
1171
+ top: ${o.sp0};
1172
+ left: ${o.sp0};
1173
+ height: ${kh}px;
1174
+ z-index: 2;
1175
+ display: flex;
1176
+ align-items: center;
1177
+ justify-content: space-between;
1178
+ box-sizing: border-box;
1179
+ background-color: ${e=>e.theme.colors.grey4};
1180
+ position: sticky;
1181
+ `,Vh=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
+ `,Hh=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
+ `,Uh=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
+ `,qh=a(En)`
1211
+ width: ${o.sp2};
1212
+ height: ${o.sp2};
1213
+ `,Kh=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
+ `,Jh=a(gt)`
1221
+ display: flex;
1222
+ `,qn="expenseAutomationTransactionsPage",Vt="transactionCategorizationListTable",De="account",Ye="class",lt="lineEntitySelection",Gh="lineEntity",Yh="recommendations",_s="lineInfo",Zh="vendorDetails",Xh="customerDetails",Tn="selectedTransactionIds",Tt=(e,n,d)=>`${e}.${d}.${n}`,Qh=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:ep,hyphen:ji,empty:Yt}},expenseAutomation:{transactions:Zt},dateFormat:tp}=Ie.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])},np=({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:f,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:j})=>{const w=ke(),[I,y]=s.useState(!1),{lineItemById:$,sortedLineItems:R}=n.transactionReviewLocalData,L=n.transactionReviewLocalData.tabSpecificLineItems?.[p]||[],O=R.filter(b=>L.indexOf(b)!==-1),S=[];O.forEach(b=>{S.push($[b])});const{accountList:k,accountsHierarchyList:A,classHierarchyList:T,classList:P,uncategorizedAccounts:D,transactions:J,selectedCheckBoxTransactionIds:N}=e,V=N.includes(n.transactionId),K=vt(),Y={control:()=>({marginLeft:-2,backgroundColor:I?K.colors.background:K.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:g[0]}),menu:()=>({width:"150%",background:K.colors.grey5}),singleValue:()=>({color:I||V?K.colors.primary:K.colors.hero,paddingLeft:g[2]}),input:b=>({...b,color:I||V?K.colors.primary:K.colors.hero,textAlign:"left",paddingLeft:g[2]}),menuPortal:b=>({...b,zIndex:10})},M={...Y,singleValue:b=>({...b,color:I||V?K.colors.primary:K.colors.hero}),menu:()=>({marginTop:g[1],marginLeft:-8}),input:b=>({...b,color:I||V?K.colors.primary:K.colors.hero,textAlign:"left"})},oe=J.find(b=>b.id===n.transactionId),ye=(b,z)=>{const{transactionType:U}=z.transactionReviewLocalData;let F=b.target;for(;F;){if(F.classList.contains("select-value-container")||F.classList.contains("item-value-container")||F.classList.contains("grouped-single-select-field__value-container")||F.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||F.classList.contains("grouped-single-select-field__input")||F.classList.contains("grouped-single-select-field__menu"))return;F=F.parentElement}U!=null&&m(z.transactionId,U)},W=s.useRef(null),[pe,ge]=s.useState("auto");return s.useEffect(()=>{const b=()=>{if(i.current!=null&&W.current!=null){const z=i.current.getBoundingClientRect(),U=W.current.getBoundingClientRect().top-z.top;ge(U>285?"top":"bottom")}};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b)}},[i]),t.jsx(sp,{onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),windowSize:w,isSelected:V,isHovered:I,children:t.jsx(ap,{children:S.map((b,z)=>t.jsx(rp,{ref:W,"data-testid":B("transaction-categorization-list-row",b.lineId),windowSize:w,onClick:U=>ye(U,n),children:t.jsx(op,{line:b,isHovered:I||V,isSelected:V,lineIndex:z,sectionId:d,transaction:n,currentTransaction:oe,windowSize:w,accountsHierarchyList:A,classHierarchyList:T,allAccountList:k,allClassList:P,uncategorizedAccounts:D,vendorSearchAutoCompleteData:c,vendorSearchAutoCompleteActions:h,setCurrentTransactionInAction:u,vendorLoadOptions:x,customStyle:Y,customStyleAutoComplete:M,recommendations:b.recommendationsWithCOT,selectedTab:p,isCOTEnabled:l,menuPlacement:pe,cotTracking:r,openTooltipId:f,setOpenTooltipId:C,isUncategorizedExpenseCategoryEnabled:j})},`${n.transactionId}.${b.lineId}`))},n.transactionId)},n.transactionId)},op=({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:f=!1,isSelected:C=!1,sectionId:j,recommendations:w,vendorSearchAutoCompleteData:I,selectedTab:y,isCOTEnabled:$,menuPlacement:R,cotTracking:L,openTooltipId:O,setCurrentTransactionInAction:S,vendorLoadOptions:k,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:T})=>{const{transactionDate:P,transactionType:D,transactionTypeName:J,memo:N}=r.transactionReviewLocalData,{setValue:V}=fo(),K=s.useCallback((ie,fe)=>{L?.onCOTView!=null&&L.onCOTView(i.lineId,r.transactionId,ie,fe)},[L,i.lineId,r.transactionId]),Y=Tt(j,lt,l.toString()),M=Tt(j,De,l.toString()),oe=Tt(j,Ye,l.toString()),ye=(ie,fe)=>{let Ee;switch(fe){case"vendor":Ee=Y;break;case"category":Ee=M;break;case"class":Ee=oe;break;default:return}V(`${Ee}.selectedOption`,ie,{shouldValidate:!0,shouldDirty:!0})},W=vt(),pe=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]),ge=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[Ye]?.classId,z=i[De]?.qboId??i[De]?.accountId,U=pe?.id,F=ge?.id,E=ge?.name,[H,Q]=s.useState(!b),[_,G]=s.useState(!z||i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!0),[ae,re]=s.useState(!F||!U),we=ie=>w?.find(fe=>fe.vendor?.qboId===ie||fe.vendor?.id===ie||fe.vendor?.name===ie)?.vendor?.reason??"",be=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],ve=cs(e,be),v=ls(c,be),ee=ie=>n.filter(fe=>fe.qboId===ie)[0]?.qboId,Se=ie=>d.filter(fe=>fe.classId===ie)[0]?.accountingClassNumber??void 0,xe=s.useCallback(ie=>q.isAccountUncategorized(x,ie,T===!0?["income"]:void 0),[x,T]),[Le,Ae]=s.useState(!1),[he,Ke]=s.useState(!1),[Je,He]=s.useState(!1),tt=(ie,fe)=>{S({transactionId:r.transactionId,lineItemId:i.lineId}),k(ie,fe)},le=()=>{re(!(F||U)),Ae(!1)},nt=()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0),He(!1)},it=()=>{Q(!b),Ke(!1)},ct=()=>{(F||U)&&Ae(!0)},Ot=()=>{Ke(!0)},jt=()=>{He(!0)};s.useEffect(()=>{z&&i[De]?.qboId!=null&&q.isAccountUncategorized(x,i[De].qboId,T===!0?["income"]:void 0)===!1?G(!1):G(!0)},[z]),s.useEffect(()=>{Q(!b)},[b]),s.useEffect(()=>{re(!(F||U))},[F,U]);const Mt=r.transactionReviewLocalData.selectedEntity,kt=r.transactionReviewLocalData.lineItemById[i.lineId].selectedEntityLine,ce=m!=null&&q.isVendorTransaction(m)===!0?Mt:kt,ne=s.useMemo(()=>{const ie=r.transactionReviewLocalData.lineItemById[i.lineId]?.recommendationsWithCOT||[],fe=I.entityAutoCompleteView;return{selectedOption:ce?.qboId??ce?.id,defaultOptions:go(fe,ce,ie??[])}},[ce,r.transactionReviewLocalData.lineItemById,i.lineId,I.entityAutoCompleteView]),je=()=>ce!=null&&ce.logo!=null?t.jsx(ss,{photoUrl:ce.logo.toString(),styles:{width:At.nameLogoWidth.valuePx(u),height:At.nameLogoHeight.valuePx(u)},fallbackAvatar:t.jsx($i,{children:t.jsx(cn,{name:ce.name,size:o.sp4})})}):ce!=null&&ce.name!=null?t.jsx($i,{children:t.jsx(cn,{name:ce.name,size:o.sp4})}):null,$e=(ie,fe)=>{if(fe==null||!fe)return;let Ee=[];return ie.forEach(Ne=>{Ee=Ee.concat(Ne.options)}),Ee.find(Ne=>Ne.value===fe)?.label??fe},Te=$e(v,b),st=$e(ve,z),ze=y==="review",It=Bn("vendor",ne.defaultOptions,ne.selectedOption),ot=Bn("category",ve,z),Ut=Bn("class",v,b),on=()=>wt.map((ie,fe)=>{const Ee=`${r.transactionId}_${ie.key}_${i.lineId}`;if(l>0&&m!=null&&q.isVendorTransaction(m)===!0&&ie.key==="vendor")return t.jsx(at,{windowSize:u,wrapperWidth:ie.width},Ee);if(l>0&&ie.key==="transaction_type")return t.jsx(at,{windowSize:u,wrapperWidth:ie.width},Ee);switch(ie.key){case"vendor":default:return t.jsxs(at,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:be,type:"vendor",isFirstColumn:!0,isEnabled:!!ce?.isPreFilled,isMisCategorized:It,onRecommendationClick:ye,selectedValue:F,selectedValueLabel:E,isReviewTab:ze,isAccountOptionDisabled:xe,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:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:ae===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Jn,{onClick:Ne=>{Ne.stopPropagation(),re(!1),Ae(!0)},"data-testid":B("add-vendor-button",j),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addPayee]})}):Le===!0?t.jsx(yt,{onClickAway:le,children:t.jsx(wp,{"data-testid":B("vendor-selection-dropdown-container",Tt(j,lt,l.toString())),children:t.jsx(qa,{name:Y,placeholder:Zt.addPayee,valueToInfo:we,defaultValue:{selectedOption:ne.selectedOption,defaultOptions:ne.defaultOptions},type:"vendor",autoFocus:!ae,style:{width:"100%"},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:p,menuIsOpen:Le,onMenuClose:le,registerOptions:{required:!1},loadOptions:tt,showCOT:$,onCOTView:K,menuPlacement:R})})}):t.jsx(vp,{children:t.jsxs(Zn,{isHovered:f,showOutline:It&&ce?.isPreFilled!==!0&&!C&&ze,children:[je(),t.jsx(Cp,{onClick:ct,"data-testid":B("vendor-name-text",j),children:ce!=null&&ce.name?t.jsx(et,{text:ce.name,itemTextStyle:{color:f?W.colors.primary:W.colors.hero}}):t.jsx(bp,{children:ji})})]})})})]},Ee);case"category":{const Ne=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:be,type:"category",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[De]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:ot,onRecommendationClick:ye,selectedValue:z,selectedValueLabel:st,existingOption:{label:Ne?.account?.accountName,value:Ne?.account?.qboId??Ne?.account?.accountId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:_===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Jn,{onClick:Bt=>{Bt.stopPropagation(),G(!1),He(!0)},"data-testid":B("category-selection-field",M),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addCategory]})}):Je===!0?t.jsx(yt,{onClickAway:nt,children:t.jsx(Ti,{isHovered:f,"data-testid":B("category-selection-dropdown-container",M),children:t.jsx(Mo,{name:M,placeholder:Zt.addCategory,valueToId:Bt=>ee(Bt),type:"category",pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:z,allOptions:ve},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Je,autoFocus:!_&&(!z||i[De]?.qboId!=null&&[x.expense?.qboId,x.income?.qboId].includes(i[De].qboId)),onMenuClose:nt,customStyleConfig:h,disableCurrentOption:xe,menuPlacement:R,onCOTView:K})})}):t.jsx(Zn,{isHovered:f,showOutline:ot&&i[De]?.isPreFilled!==!0&&!C&&ze,children:t.jsx(Li,{onClick:jt,"data-testid":B("category-label-text",M),children:t.jsx(et,{text:st??"",itemTextStyle:{color:f?W.colors.primary:W.colors.hero}})})})})]},Ee)}case"class":{const Ne=m?.lines!=null?m?.lines[l]:void 0;return t.jsxs(at,{windowSize:u,wrapperWidth:ie.width,className:"item-value-container",children:[t.jsx(Kn,{isCOTEnabled:$,recommendations:be,type:"class",isFirstColumn:!1,isReviewTab:ze,isEnabled:!!i[Ye]?.isPreFilled,isAccountOptionDisabled:xe,isMisCategorized:Ut,onRecommendationClick:ye,selectedValue:b,selectedValueLabel:Te,existingOption:{label:Ne?.class?.className,value:Ne?.class?.classId},cotTracking:L,lineId:i.lineId,transactionId:r.transactionId,openTooltipId:O,setOpenTooltipId:A}),t.jsx(Xn,{children:H===!0?t.jsx(Yn,{isHovered:f,children:t.jsxs(Jn,{onClick:Bt=>{Bt.stopPropagation(),Q(!1),Ke(!0)},"data-testid":B("class-selection-field",oe),style:{display:"inline-flex",alignItems:"center",color:Xe.brandColorGoldDark,cursor:"pointer",height:o.sp6},children:[t.jsx(Gn,{}),Zt.addClass]})}):he===!0?t.jsx(yt,{onClickAway:it,children:t.jsx(Ti,{isHovered:f,"data-testid":B("class-selection-dropdown-container",oe),children:t.jsx(Mo,{name:oe,placeholder:Zt.addClass,valueToId:Bt=>Se(Bt),type:"class",showCOT:$,defaultValue:{selectedOption:b,allOptions:v},pageSource:"list_page",transactionStatus:ze?"pending_review":"auto_categorized",menuIsOpen:he,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!H&&!b,customStyleConfig:h,onMenuClose:it,menuPlacement:R,onCOTView:K})})}):t.jsx(Zn,{isHovered:f,showOutline:Ut&&i[Ye]?.isPreFilled!==!0&&!C&&ze,children:t.jsx(Li,{"data-testid":B("class-selection-field",oe),onClick:Ot,children:t.jsx(et,{text:Te??"",itemTextStyle:{color:f?W.colors.primary:W.colors.hero}})})})})]},Ee)}case"date":return t.jsx(at,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===wt.length-1,children:t.jsx(ho,{"data-testid":B("date-field",Tt(j,Ye,l.toString())),children:t.jsx(cp,{style:{color:f?W.colors.primary:W.colors.hero},children:P!=null?P.format(tp.visual.MMMDCommaYYYYformat):null})})})},Ee);case"transaction_type":return t.jsx(at,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,"data-testid":B("transaction-type-field",Tt(j,Ye,l.toString())),isLastItem:fe===wt.length-1,children:J!=null?t.jsx(Wa,{textColor:f?new xo(W.colors.primary):Ua(void 0,W),text:J??D}):null})},Ee);case"memo":return t.jsx(at,{windowSize:u,wrapperWidth:ie.width,children:t.jsx(tn,{style:{lineHeight:o.sp3},windowSize:u,isLastItem:fe===wt.length-1,"data-testid":B("memo-field",Tt(j,Ye,l.toString())),children:N&&l==0?t.jsx(Ce,{placement:"bottom",title:N,children:t.jsx(up,{style:{color:f?W.colors.primary:W.colors.hero}})}):l==0?t.jsx(dp,{children:ji}):null})},Ee);case"amount":{const Ne=qe("0,0.[00]",i.amount,!0);return t.jsx(at,{windowSize:u,style:{paddingRight:g[4]},wrapperWidth:ie.width,children:t.jsx(tn,{windowSize:u,isLastItem:fe===wt.length-1,children:t.jsx(ho,{"data-testid":B("transaction-amount-field",Tt(j,Ye,l.toString())),style:{color:f?W.colors.primary:W.colors.hero},children:Ne})})},Ee)}}});return t.jsx(t.Fragment,{children:on()})},ki=({isEnabled:e,isReviewTab:n,isMisCategorized:d,hasRecommendations:c,isTooltipVisible:h=!1})=>e?n?h?t.jsx(mp,{}):t.jsx(hp,{}):h?t.jsx(pp,{}):t.jsx(gp,{className:"ai-icon-selected-plain"}):!e&&d||c?h?t.jsx(fp,{}):t.jsx(xp,{}):null,Ii=({isFirstColumn:e,children:n})=>t.jsx(Ns,{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:f,transactionId:C,isAccountOptionDisabled:j,onRecommendationClick:w,setOpenTooltipId:I})=>{const y=s.useMemo(()=>`${C}:${x}:${d}`,[C,x,d]),$=f===y,R=Ga().analytics,{createAlternateRecommendationCallback:L}=Ya(),O=s.useCallback(J=>{const N=e[1],V=e[0];L(d,{currentValue:h??Yt,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:u?{transactionId:C,lineId:x,onCOTView:(K,Y,M,oe)=>{u.onCOTView?.(K,Y,M,oe)}}:void 0},N,V)(J)},[L,e,h,c,d,u,x,C]),S=Za(e,d,n,m,"list_page",c?"pending_review":"auto_categorized",w,O,r,j),k=Xa(e,d),A=s.useCallback(()=>{I(y);const J=S?.recommendations[0]?.cot??[],N=S?.recommendations[1]?.cot??[],V=N.length>0;if(R.trackTransactionCotView({recommendationFor:d,currentValue:h??Yt,recommendation:S?.recommendations[0]?.name??Yt,recommendationCot:J,isRecommendationCotAvailable:J.length>0,recommendationReason:S?.recommendations[0]?.reason??Yt,recommendationConfidencePercentage:S?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:Ro(Do(S?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:S?.recommendations[1]?.name??Yt,alternativeRecommendationCot:N,isAlternativeRecommendationCotAvailable:V,alternativeRecommendationReason:S?.recommendations[1]?.reason??Yt,alternativeRecommendationConfidencePercentage:S?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:V?Ro(Do(S?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:c?"pending_review":"auto_categorized",transactionPage:"list_page"}),u?.onCOTView!=null){const K=Qa(S);K!=null&&u.onCOTView(x,C,d,K)}},[R,S,c,h,d,x,C,y,I]),T=s.useCallback(()=>{f===y&&I(void 0)},[f,y,I]),P=s.useMemo(()=>!r||!k?!1:e.some(J=>d==="vendor"&&J.vendor!=null?J.vendor.id===r||J.vendor.qboId===r:d==="category"&&J.account!=null?J.account.qboId===r||J.account.accountId===r:d==="class"&&J.class!=null?J.class.classId===r:!1),[r,k,e,d]);if(!k)return t.jsx(Ns,{isFirstColumn:p});const D=i||P;return S?t.jsx(Ii,{isFirstColumn:p,children:t.jsx(Ce,{variant:"chain-of-thought",data:S,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:$,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:A,onClose:T,children:t.jsx(yp,{children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})})}):t.jsx(Ii,{isFirstColumn:p,children:t.jsx(ki,{isEnabled:D,isReviewTab:c,isMisCategorized:l,hasRecommendations:k,isTooltipVisible:$})})},Ps=()=>{const e=ke(),n=s.useRef(null),[d,c]=s.useState(0);return s.useLayoutEffect(()=>{n.current&&c(n.current.offsetWidth)},[e]),t.jsx(ip,{windowSize:e,ref:n,children:wt.map((h,p)=>{const i=`${p}${ep}${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)}})})},ip=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
+ `,sp=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?Ze`
1265
+ .ai-icon-selected-plain {
1266
+ color: ${n.colors.primary};
1267
+ }
1268
+ `:null};
1269
+ `,ap=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
+ `,rp=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
+ `,lp=Ze`
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(Fe)`
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
+ `,cp=a(Fe)`
1317
+ ${lp};
1318
+ color: ${e=>e.theme.colors.hero};
1319
+ `,Jn=a(Fe)`
1320
+ color: ${e=>e.theme.colors.hero};
1321
+ `,Gn=a(Dn)`
1322
+ width: ${o.sp3};
1323
+ height: ${o.sp3};
1324
+ margin: ${o.sp1};
1325
+ `,dp=a.div`
1326
+ margin: ${o.sp3};
1327
+ `,up=a(Qh)`
1328
+ width: ${o.sp3};
1329
+ height: ${o.sp3};
1330
+ margin-left: 10px;
1331
+ `,hp=a(or)`
1332
+ width: ${o.sp5};
1333
+ height: ${o.sp5};
1334
+ `,pp=a(rr)`
1335
+ width: ${o.sp5};
1336
+ height: ${o.sp5};
1337
+ `,mp=a(nr)`
1338
+ width: ${o.sp5};
1339
+ height: ${o.sp5};
1340
+ `,gp=a(lr)`
1341
+ width: ${o.sp5};
1342
+ height: ${o.sp5};
1343
+ `,xp=a(un)`
1344
+ width: ${o.sp3};
1345
+ height: ${o.sp3};
1346
+ path {
1347
+ stroke-width: 2;
1348
+ }
1349
+ `,fp=a(ir)`
1350
+ width: ${o.sp3};
1351
+ height: ${o.sp3};
1352
+ `,Ns=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
+ `,yp=a.div`
1360
+ display: flex;
1361
+ align-items: center;
1362
+ justify-content: center;
1363
+ width: auto;
1364
+ cursor: pointer;
1365
+ `,Cp=a(Fe)`
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
+ `,$i=a.div`
1375
+ display: flex;
1376
+ `,wp=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
+ `,Yn=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
+ `,bp=a(Fe)``,vp=a.div`
1401
+ width: 100%;
1402
+ display: flex;
1403
+ padding-left: ${o.sp0};
1404
+ `,Zn=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
+ `,Li=a.div``,Xn=a.div`
1417
+ display: flex;
1418
+ align-items: center;
1419
+ width: calc(100% - ${o.sp5});
1420
+ `,Sp=({sortConfig:e,fetchState:n,isDisabled:d,onColumnSortConfigChanged:c})=>{const h=ke();return t.jsxs(jp,{windowSize:h,children:[t.jsx(zs,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":d,onColumnSortConfigChanged:c,"data-testid":B("transaction-categorization-list-empty-table-header")}),t.jsx(kp,{windowSize:h,"data-testid":B("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((p,i)=>t.jsx(Ps,{"data-testid":B("transaction-categorization-list-empty-row",i.toString())},i))})]})},jp=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
+ `,kp=a.div`
1428
+ display: flex;
1429
+ flex: 1;
1430
+ min-height: 100%;
1431
+ flex-direction: column;
1432
+ row-gap: ${o.sp3};
1433
+ `,{common:Ip}=Ie.getLocalizedStrings(),Qn={rowGap:new X(g[0],g[2],g[3])},$p=({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:f,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:j,containerRef:w,cotTracking:I,isUncategorizedExpenseCategoryEnabled:y})=>{const $=ke(),[R,L]=s.useState(void 0),{fetchState:O,uiState:S,transactionLocalData:k,selectedCheckBoxTransactionIds:A,transactions:T,uncategorizedAccounts:P}=n,D=s.useRef(null),J=s.useRef({}),{control:N}=fo();s.useEffect(()=>{D.current?.resetAfterIndex(0,!0)},[$,D,k]),s.useEffect(()=>{D.current?.scrollTo(S.scrollPosition?.scrollTop??0)},[e]);const V=s.useCallback(_=>{if(J.current?.[_]!=null){const re=$==="small"&&S.pageToken==null&&_===k.length-1?Qn.rowGap.value("medium-regular"):Qn.rowGap.value($);return J.current[_]+re}if(k[_]==null)return 0;const G=k[_].transactionReviewLocalData,ae=Object.keys(G.lineItemById).length;return ae!=null&&!isNaN(ae)&&ae>1?vi*ae+Qn.rowGap.value($)*(ae-1):vi},[k,$,S.pageToken,S.sortKey,S.sortOrder]),K=s.useCallback((_,G)=>{J.current={...J.current,[_]:G},D.current?.resetAfterIndex(0,!0)},[$,D,k,S.sortKey,S.sortOrder]),Y=s.useCallback(()=>{(S.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&j(e,S.searchString,!0,S.pageToken,!0,!1)},[n.refreshStatus.fetchState,j,e,S.pageToken,S.searchString,S.sortKey,S.sortOrder]),M=s.useCallback(()=>{S.pageToken!=null&&Y()},[Y,S.pageToken,S.sortKey,S.sortOrder]),oe=Ma(_=>C(e,{scrollPosition:{scrollTop:_}}),1e3,{trailing:!0}),ye=_=>_<n.transactionLocalData.length,W=(_,G)=>{f(e,{sortOrder:G,sortKey:_}),j(e,S.searchString,!1,null,!1,!0)},pe=_=>{if(e==="autoCategorized")return!A.includes(_);const G=k.find(re=>re.transactionId===_)?.transactionReviewLocalData,ae=T.find(re=>re.id===_);return ae!=null&&G!=null?!q.checkIfAllLineItemsAreCategoryClassFilled(ae,G,P,y):A.length===0?!0:!A.includes(_)};let ge=[],b=[];(O==="Completed"||n.transactionLocalData.length>0)&&(b=n.transactionLocalData.map((_,G)=>{const ae=_.transactionReviewLocalData;return{label:t.jsx(np,{transactionView:n,sectionId:`${h}.${G}.${_s}`,transaction:_,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:L,isUncategorizedExpenseCategoryEnabled:y},`${_.transactionId}.${ae.transactionType}`),value:_.transactionId,defaultChecked:!1,groupLabel:!1,isException:!1,isSticky:!0,isDisabled:pe(_.transactionId)===!0?"readonly":void 0}}),ge=b.map(_=>_.value));const z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:U,subTitle:F}=Ve("transaction_categorization").allDoneText,E=k.map(_=>_.transactionId),H=s.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),Q=s.useMemo(()=>k.reduce((_,G)=>{const ae=Object.keys(G.transactionReviewLocalData.lineItemById).length;return _+(ae>0?ae:1)},0)<n.totalCountByTab[e]?k.length+1:k.length,[k,n.totalCountByTab,e]);return t.jsx(Rp,{windowSize:$,"data-testid":B("transaction-categorization-list-wrapper"),children:t.jsx(Dp,{windowSize:$,"data-testid":B("transaction-categorization-list-container"),children:O==="Error"?t.jsxs(Mp,{windowSize:$,"data-testid":B("transaction-categorization-reload-page"),children:[t.jsx(Bp,{onClick:()=>j(e,void 0,!0,null,!1,!0),"data-testid":B("transaction-categorization-reload-icon"),children:t.jsx(mo,{})}),t.jsx(Fp,{"data-testid":B("transaction-categorization-reload-label"),children:Ip.reloadPage.label})]}):O==="Completed"&&k.length===0?t.jsx(bt,{tab:"transaction_categorization",title:U,subTitle:F,"data-testid":B("transaction-categorization-empty-table-section")}):O==="Not-Started"||O==="In-Progress"&&k.length===0?t.jsx(Sp,{sortConfig:{sortKey:S.sortKey,sortOrder:S.sortOrder},fetchState:O,onColumnSortConfigChanged:W,"data-testid":B("transaction-categorization-list-empty-table")}):t.jsx(Op,{windowSize:$,"data-testid":B("transaction-categorization-list-view"),children:t.jsx(is,{control:N,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:_,ref:G,onChange:ae}})=>t.jsx(Vs.Provider,{value:{value:_,mode:"off",allCheckBoxValues:ge,index:0,sortKey:S.sortKey,sortOrder:S.sortOrder,fetchState:O,isDisabled:i,groupLabelCheckBox:z,onColumnSortConfigChanged:W,ref:G,onChange:ae,selectedTab:e},children:t.jsx(Ln,{children:({height:re,width:we})=>t.jsx(Ba,{isItemLoaded:ye,itemCount:H,loadMoreItems:M,children:({onItemsRendered:be,ref:ve})=>t.jsx(An,{ref:v=>{ve(v),D.current=v},height:re,itemCount:Q,itemKey:v=>k[v]?.transactionId,innerElementType:Tp,onItemsRendered:be,width:we,style:{willChange:"auto"},overscanCount:jh,itemSize:V,itemData:{checkboxes:b,value:_,allCheckBoxValues:ge,groupLabelCheckBox:z,categorizationGroupValue:E,transactionLocalData:k,mode:"always_on",setRowHeight:K,isItemLoaded:ye,ref:ve,onChange:ae,selectedCheckBoxTransactionIds:A},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:v})=>{oe(v)},children:Ap})})})})})})})})},Tp=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:f}=Lp(),{children:C,style:j,...w}=e;return i==="Completed"?t.jsxs(zp,{ref:u,style:{...j,width:"auto"},...w,children:[t.jsx(_p,{children:t.jsx(ds,{selectionLimit:q.MAX_SELECTION_LIMIT,value:n,checkBox:{label:t.jsx(Ep,{children:t.jsx(zs,{sortConfig:{sortKey:l,sortOrder:r},isDisabled:p,onColumnSortConfigChanged:f})}),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=>us({event:I,value:n,allCheckBoxValues:d,groupLabelCheckBox:c,onChange:x}),ref:u})}),t.jsx(Pp,{children:C})]},`${d[h]}-${h}`):null},Vs=s.createContext(void 0),Lp=()=>{const e=s.useContext(Vs);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},Ap=({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:f,selectedCheckBoxTransactionIds:C}=d,j=s.useRef(null),w=ke();if(s.useEffect(()=>{j.current?.firstElementChild!=null&&u(e,j.current.firstElementChild.clientHeight)},[e,j,w,r[e]?.transactionReviewLocalData]),m(e)===!0){const I=c[e];return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(ds,{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},name:`${Vt}.${h}`,ref:x,index:e,onChangeHandler:y=>us({event:y,value:h,allCheckBoxValues:l,groupLabelCheckBox:p,onChange:f})})},i[e])}else return t.jsx(Ai,{style:{...n,paddingBottom:o.sp0,paddingRight:o.sp8,width:"100%",flex:"1"},ref:j,children:t.jsx(Np,{children:t.jsx(Ps,{})})},Gi())},Ep=a.div`
1434
+ flex: 1;
1435
+ width: auto;
1436
+ padding-right: ${o.sp8};
1437
+ `,Rp=a.div`
1438
+ width: 100%;
1439
+ height: 100%;
1440
+ background-color: ${e=>e.theme.colors.grey4};
1441
+ `,Dp=a.div`
1442
+ height: 100%;
1443
+ `,Op=a.div`
1444
+ height: 100%;
1445
+ display: flex;
1446
+ flex-direction: column;
1447
+ max-width: 99.9%;
1448
+ `,Mp=a.div`
1449
+ display: flex;
1450
+ width: 100%;
1451
+ height: ${e=>`calc(100% - ${os.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
+ `,Fp=a(St)`
1471
+ margin-top: ${o.sp3};
1472
+ color: ${e=>e.theme.colors.hero};
1473
+ `,Ai=a.div`
1474
+ top: ${o.sp0};
1475
+ left: ${o.sp0};
1476
+ padding-bottom: ${o.sp3};
1477
+ box-sizing: border-box;
1478
+ `,zp=a.div`
1479
+ background-color: ${e=>e.theme.colors.grey4};
1480
+ `,_p=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
+ `,Pp=a.div`
1491
+ position: relative;
1492
+ width: auto;
1493
+ height: 100%;
1494
+ `,Np=a.div`
1495
+ padding-left: ${o.sp8};
1496
+ `,Vp=({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:f,onFetchTransactionCategorizationList:C,onSaveUpdateTransactionCategorization:j,onUpdateSelectedCheckboxTransactionIds:w,onFetchRecommendationsForEntityCategorization:I,onFetchRecommendationsForEntityCategorizationWithCustomer:y})=>{const[$,R]=s.useState({transactionId:void 0,lineItemId:void 0}),L=s.useRef(),O=s.useRef({}),{useDynamicConfig:S}=Qi(),{configValue:k}=S(es.enableUncategorizedExpenseCategory),A=k?.uncategorized_expense_category_enabled===!0,T=(b,z,U,F)=>{const E={...O.current};E[z]==null&&(E[z]=[]);let H=E[z].findIndex(Q=>Q.lineId===b);if(H===-1){const Q={lineId:b,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};E[z].push(Q),H=E[z].length-1}else{const Q=E[z][H];E[z][H]={...Q,category:{...Q.category,recommendationTypesViewed:[...Q.category.recommendationTypesViewed]},class:{...Q.class,recommendationTypesViewed:[...Q.class.recommendationTypesViewed]},vendor:{...Q.vendor,recommendationTypesViewed:[...Q.vendor.recommendationTypesViewed]}}}F!=null&&F!==""&&!E[z][H][U].recommendationTypesViewed.includes(F)&&E[z][H][U].recommendationTypesViewed.push(F),O.current=E},{transactions:P,transactionLocalData:D,accountsHierarchyList:J,classHierarchyList:N,accountList:V,classList:K,selectedCheckBoxTransactionIds:Y,uncategorizedAccounts:M}=n,oe=Ht({mode:"all",reValidateMode:"onChange",defaultValues:s.useMemo(()=>Ri(Y,D,J,N,p.entityAutoCompleteView),[J,N,Y,D,p.entityAutoCompleteView]),values:s.useMemo(()=>Ri(Y,D,J,N,p.entityAutoCompleteView),[J,N,Y,D,p.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});s.useEffect(()=>()=>{r("expenseAutomationPage")},[]),s.useEffect(()=>{Y.length>0?r(qn):r("expenseAutomationPage")},[Y,r]);const ye=oe.handleSubmit(b=>{const z=b[Tn],U=O.current;j(e,z,U),z.forEach(F=>{delete O.current[F]})}),W=async(b,z)=>{if(b!=null){if(b===Tn){const U=oe.getValues(Tn);if(U.length<Y.length){w(e,U);return}if(U.length===q.MAX_SELECTION_LIMIT){w(e,U);return}const F=U[U.length-1],E=z[Vt].findIndex(Q=>Q.transactionId===F),H=oe.getValues(`${Vt}.${E}.lineInfo`);if(H!=null){let Q=!1;if(H.every(_=>(Q=q.isAccountUncategorized(M,_[De].selectedOption,A?["income"]:void 0),!!_[De].selectedOption&&_[De].selectedOption!=null&&!Q&&!!_[Ye].selectedOption&&!!_[lt].selectedOption))===!0){w(e,U);return}else{const _=U.filter(G=>G!==F);w(e,_);return}}return}if(b.includes(De)===!0||b.includes(Ye)===!0){const U=parseInt(b.split(".")[1]),F=parseInt(b.split(".")[3]),E=oe.getValues(`${Vt}.${U}.lineInfo`),H=E[F];if(b.includes(De)||b.includes(Ye)){const{transactionId:Q,lineId:_,recommendations:G}=H;if(E!=null){const ae=H[De].selectedOption,re=H[Ye].selectedOption,we=H[lt].selectedOption,be=H[lt].selectedOption,ve=H[lt].defaultOptions,v=ve?.find(le=>le.options?.find(nt=>nt.value===we))?.options?.find(le=>le.value===we)?.label,ee=ve?.find(le=>le.options?.find(nt=>nt.value===be))?.options?.find(le=>le.value===be)?.label,Se=p.entityAutoCompleteView.vendor.find(le=>le.qboId===we),xe=p.entityAutoCompleteView.customer.find(le=>le.qboId===be),Le=G.find(le=>le.vendor?.qboId===we)?.vendor,Ae=we||Se?.qboId||Le?.qboId?{id:we??Se?.qboId??Le?.qboId??"",name:v??Se?.name??Le?.name??"",logo:Se?.logo??Le?.logo}:void 0,he=be||xe?.qboId?{id:be??xe?.qboId??"",name:ee??xe?.name??"",logo:xe?.logo}:void 0,Ke=V.find(le=>le.qboId===ae),Je=K.find(le=>le.classId===re),He=n.transactionLocalData.find(le=>le.transactionId===Q)?.transactionReviewLocalData.lineItemById[_].account,tt=n.transactionLocalData.find(le=>le.transactionId===Q)?.transactionReviewLocalData.lineItemById[_].class;m(e,Q,_,P,Ae?.id,he?.id,b.includes(De)&&Ke!=null?{...Ke,isPreFilled:!1}:He,b.includes(Ye)&&Je!=null?{...Je,isPreFilled:!1}:tt,void 0,G,A)}return}}if(b.includes(lt)){const U=parseInt(b.split(".")[1]),F=parseInt(b.split(".")[3]),E=oe.getValues(`${Vt}.${U}.lineInfo`);if(E!=null){const H=E[F],{transactionId:Q,recommendations:_}=H,G=H[lt].selectedOption,ae=H[lt].selectedOption,re=H[lt].defaultOptions,we=re?.flatMap(he=>he.options)?.find(he=>he.value===G)?.label,be=re?.flatMap(he=>he.options)?.find(he=>he.value===ae)?.label,ve=p.entityAutoCompleteView.vendor.find(he=>he.qboId===G),v=p.entityAutoCompleteView.customer.find(he=>he.qboId===ae),ee=_.find(he=>he.vendor?.qboId===G||he.vendor?.name===we)?.vendor,Se=(ve?.id!=null&&ve.id!==""?ve.id:null)??(ee?.id!=null&&ee.id!==""?ee.id:null)??(G!=null&&G!==""?G:null),xe={id:Se??we??"",name:we??ve?.name??ee?.name??G??"",logo:ve?.logo??ee?.logo},Le=v?.qboId!=null&&v.qboId!==""?{id:v.qboId??ae??"",name:be??v.name??"",logo:v.logo}:void 0,Ae=P.find(he=>he.id===Q);if(Ae!=null){const he=n.transactionLocalData.find(le=>le.transactionId===Ae.id)?.transactionReviewLocalData,Ke=he?.lineItemById[H.lineId],Je=q.isVendorTransaction(Ae)===!0?he?.selectedEntity:Ke?.selectedEntityLine,He=xe!=null?{id:xe.id??xe.name,name:xe.name??xe.id??"",type:"vendor",qboId:xe.id??xe.name,zeniId:xe.id??xe.name,logo:xe.logo,isPreFilled:Je?.id===Se&&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,tt={transactionId:{id:Ae.id,type:Ae.type},transaction:Ae,lineIds:Ae.type!=="journal_entry"?Ae.lines?.map(le=>le.id)??[]:[H.lineId]};He?.type==="customer"?y(H.amount.amount,tt,!1,e,He,Le,A):I(H.amount.amount,tt,!1,e,He,xe,A)}}i.onCancelAutoComplete?.();return}}};s.useEffect(()=>{const b=oe.watch((z,{name:U})=>{U!=null&&z!=null&&hn(()=>W(U,z))});return()=>{b.unsubscribe()}}),s.useEffect(()=>{if(p.entityAutoCompleteView.fetchState==="Completed"){const b=n.transactionLocalData.find(z=>z.transactionId===$.transactionId);if(b){const{transactionReviewLocalData:z}=b,{selectedEntity:U}=z,F=$?.lineItemId??z.sortedLineItems[0],E=z.lineItemById[F],H=E.selectedEntityLine;L.current?.(go(p.entityAutoCompleteView,U??H,E?.recommendationsWithCOT??[]))}R({transactionId:void 0,lineItemId:void 0})}},[p.entityAutoCompleteView.fetchState]);const pe=(b,z)=>{i.onAutoCompleteInputChange?.(b),L.current=z},ge=s.useRef(null);return t.jsx(Wp,{ref:ge,"data-testid":B("transaction-categorization-list-page"),children:t.jsx(Wt,{...oe,children:t.jsx("form",{id:Ei(qn),onSubmit:ye,style:{height:"100%",width:"100%"},"data-testid":B(Ei(qn)),children:t.jsx($p,{selectedTab:e,sectionId:h,transactionView:n,receiptUploadEndpoint:d,authParams:c,setCurrentTransactionInAction:R,onUpdateTransactionCategorizationUIState:x,onUpdateScrollYOffSetTransactionCategorizationUIState:f,onFetchTransactionCategorizationList:C,onTransactionCategorizationRowClick:u,vendorLoadOptions:pe,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:i,containerRef:ge,isCOTEnabled:l,cotTracking:{onCOTView:T},isUncategorizedExpenseCategoryEnabled:A})})})})},Ei=e=>`${e}_form`,Ri=(e,n,d,c,h)=>({[Vt]:n.map(p=>Hp(p.transactionId,p.transactionReviewLocalData,d,c,h)),[Tn]:e}),Hp=(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,f=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,[De]:{selectedOption:x,allOptions:cs(d,u.recommendationsWithCOT)},[Ye]:{selectedOption:f,allOptions:ls(c,u.recommendationsWithCOT)},[lt]:{selectedOption:l?.id??C?.id??l?.name??C?.name,defaultOptions:go(h,l??C,n.lineItemById[m]?.recommendationsWithCOT??[])},[Gh]:u.lineEntity,[Yh]:u.recommendationsWithCOT??[]}}),transactionId:e,[Zh]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[Xh]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Wp=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
+ `,Di={subSectionContainerLeftRightPadding:new X(g[3],g[6],g[8])},Up=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
+ `,qp=a.div`
1513
+ display: flex;
1514
+ flex-direction: column;
1515
+ width: 100%;
1516
+ `,Kp=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:f,monthEndInsightsCustomerRequestData:C,allThreadsSectionOpen:j,loggedInUser:w,isCOTEnabled:I,setCurrentFooterFormId:y,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,onTransactionCategorizationRowClick:L,onFetchMissingReceiptsList:O,onMissingReceiptsRowClick:S,onUploadReceiptAttachment:k,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,onReconTabColumnSortConfigChanged:P,onReloadReconciliationListPage:D,onUpdateReconcileTabLocalData:J,onUpdateMissingReceiptsUIState:N,onFetchTransactionCategorizationList:V,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:ye,onPostJESchedule:W,setLocalDataForCategoryAndClass:pe,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:U,improveMonthEndInsightsUsingZeniGPTClick:F,onRemoveFileAttachment:E,onUpdateFileAttachment:H,onCloseAllThreadsSection:Q,onEditMonthEndInsightsClick:_,previewMonthEndReport:G,saveMonthEndReport:ae,onOpenFileAttachmentSnackBar:re,onCloseFileAttachmentSnackBar:we,onClickCustomerRequest:be,sendMonthEndReport:ve,markAsReview:v,onReloadPage:ee,onBackClick:Se,updateOperatingExpensesIdsForReview:xe,updateSectionCollapseStatus:Le,onFetchReimbursementView:Ae,redirectToVendorDetailPage:he,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Je,fetchFluxViewOnScroll:He,onFetchFluxViewList:tt,setIsJeAccountSettingsOpened:le,onReviewClicked:nt,setOpenDrawerClicked:it,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Mt,onSaveReconciliation:kt,onSaveReconciliationReview:ce,onReconMatchedTransactionClick:ne,onReconListPageScroll:je,onAddStatementClick:$e}=e,{currentSelectedView:Te,missingReceipts:st,transactionView:ze,selectedPeriod:It,monthEndInsights:ot,selectedTransactionCategorizationTab:Ut,reconciliation:on}=p;switch(Te){case"transaction_categorization":return ze.fetchState==="Completed"&&ze.transactionLocalData.length===0?t.jsx(bt,{tab:Te,title:Ve(Te).allDoneText.title,subTitle:Ve(Te).allDoneText.subTitle}):t.jsx(Vp,{setCurrentFooterFormId:y,selectedPeriod:It,selectedTab:Ut,sectionId:Vt,transactionView:ze,receiptUploadEndpoint:l,authParams:i,onUpdateTransactionCategorizationUIState:K,onUpdateScrollYOffSetTransactionCategorizationUIState:Y,onFetchTransactionCategorizationList:V,onTransactionCategorizationRowClick:L,setLocalDataForCategoryAndClass:pe,resetTransactionCategorizationLocalData:ge,updateSelectedVendorForTransaction:b,onSaveUpdateTransactionCategorization:z,onUpdateSelectedCheckboxTransactionIds:U,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:R,isCOTEnabled:I});case"je_schedules":return t.jsx(lu,{setIsJeAccountSettingsOpened:le,expenseAutomationViewSelector:p,setResetJeAccountSettingsForm:h,currentFooterFormId:n,onJeAccountSettingsChange:d,onSaveJeAccountSettingsClick:c,setCurrentFooterFormId:y,handleJeScheduleClick:M,ignoreRecommendedJeSchedule:oe,onJESchedulesFormDataChange:ye,onPostJESchedule:W,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u});case"missing_receipts":return st.fetchState==="Completed"&&st.transactions.length===0?t.jsx(bt,{tab:Te,title:Ve(Te).allDoneText.title,subTitle:Ve(Te).allDoneText.subTitle}):t.jsx(Gu,{onUpdateMissingReceiptsUIState:N,onFetchMissingReceiptsList:O,missingReceipts:st,receiptUploadEndpoint:l,authParams:i,selectedPeriod:It,onMissingReceiptsRowClick:S,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:T,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(Qs,{fetchState:"In-Progress"});{const ie={application:"cockpit",companyId:r,entityId:r,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:ot.companyName,url:window.location.href},{url:fe,...Ee}=ie,Ne={...Ee};return t.jsx(qp,{children:t.jsx(Sh,{allThreadsSectionOpen:j,customerRequestData:C,companyId:r,enableZeniGPTFeature:x,filterMetaData:Ne,selectedPeriod:p.selectedPeriod,improveUsingZeniGPTClick:F,isZeniUser:w.userEmail?.includes("zeni.ai")??!1,monthEndReportView:ot,newThreadMetadata:ie,onClickCustomerRequest:be,onCloseAllThreadsSection:Q,onCloseFileAttachmentSnackBar:we,onOpenFileAttachmentSnackBar:re,onRemoveFileAttachment:E,onUpdateFileAttachment:H,previewMode:f,previewMonthEndReport:G,saveMonthEndReport:ae,onEditClick:_,sendMonthEndReport:ve})})}}else return null;case"flux_analysis":return p.fluxAnalysis.fetchStatus.fetchState==="Completed"&&p.fluxAnalysis.sections.generalExpense.vendors.length===0&&p.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(bt,{tab:Te,title:Ve(Te).allDoneText.title,subTitle:Ve(Te).allDoneText.subTitle}):t.jsx(zd,{fluxAnalysis:p.fluxAnalysis,selectedPeriod:p.selectedPeriod,markAsReview:v,onReloadPage:ee,onBackClick:Se,updateOperatingExpensesIdsForReview:xe,updateSectionIdsForReview:Ke,onUpdateFluxAnalysisUIState:Je,setCurrentFooterFormId:y,fetchFluxViewOnScroll:He,onFetchFluxViewList:tt,updateSectionCollapseStatus:Le,onFetchReimbursementView:Ae,redirectToVendorDetailPage:he});case"reconciliation":return t.jsx(vd,{onReconListPageScroll:je,onReloadReconciliationListPage:D,currentFooterFormId:n,reconciliation:on,companyId:r,vendorSearchAutoCompleteActions:m,vendorSearchAutoCompleteData:u,onReviewClicked:nt,setOpenDrawerClicked:it,setCurrentFooterFormId:y,onReconTabColumnSortConfigChanged:P,onUpdateReconcileTabLocalData:J,onEstablishConnectionClick:ct,onFetchLinkTokenClick:Ot,updateReconReviewTabLocalData:jt,onReconReviewTabColumnSortConfigChanged:Mt,onSaveReconciliation:kt,onSaveReconciliationReview:ce,onReconMatchedTransactionClick:ne,onAddStatementClick:$e});default:return t.jsx(bt,{tab:Te,title:Ve(Te).allDoneText.title,subTitle:Ve(Te).allDoneText.subTitle})}};function Jp(e){const n=ke(),{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(Up,{windowSize:n,style:{...h===!0?{paddingLeft:Di.subSectionContainerLeftRightPadding.value(n),paddingRight:Di.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:g[0],paddingRight:g[0]},...c===!0||d==="reconciliation"?{paddingLeft:g[0],paddingRight:g[0]}:{}},children:t.jsx(Kp,{...e})})}const Gp=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"})),Yp=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"})),Zp=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
+ `,Xp=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
+ `,Oi=a(Js)`
1537
+ height: ${o.sp3};
1538
+ width: ${o.sp3};
1539
+ cursor: pointer;
1540
+ color: inherit;
1541
+ `,Mi=a(Gp)`
1542
+ height: ${o.sp3};
1543
+ width: ${o.sp3};
1544
+ cursor: pointer;
1545
+ color: inherit;
1546
+ `,{common:{footer:Oe,texts:{maxLimitReached:Qp,confirmAction:em},headers:tm,create:nm,strings:rn,texts:nn,cancel:om,confirm:im,monthsByIndex:sm},dateFormat:{visual:{MMMDCommaYYYYformat:Bi}},expenseAutomation:ln}=Ie.getLocalizedStrings(),_m=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:f,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:j,clearJeScheduleLocalData:w,onSaveReconciliation:I}=e,{currentSelectedView:y,allSteps:$,missingReceipts:R,jeSchedules:L,fluxAnalysis:O,monthEndInsights:S,transactionView:k,selectedTransactionCategorizationTab:A,reconciliation:T,selectedPeriod:P}=n,[D,J]=s.useState("expenseAutomationPage"),[N,V]=s.useState(()=>{}),[K,Y]=s.useState(!1),M=ke(),oe=!!e.loggedInUser.userEmail?.includes("zeni.ai"),ye=oe?Pi:Ni,{openThread:W,setOpenThread:pe}=s.useContext(ye),[ge,b]=s.useState(!1),[z,U]=s.useState(!1),F=$.find(ne=>ne.step===y),{nextStep:E,previousStep:H}=lm($,y),{uiState:{searchString:Q,pageToken:_},totalCountByTab:G,transactions:ae,fetchStateByTransactionTabs:re,transactionLocalData:we}=k,{selectedReconAccount:be,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:ve}}}}=T;let v="Not-Started",ee="complete";switch(y){case"missing_receipts":v=R.refreshStatus.fetchState,ee=R.completionStatus;break;case"je_schedules":v=L.refreshStatus.fetchState,ee=L.completionStatus;break;case"month_end_insights":S!=null&&(v=S?.fetchState);break;case"flux_analysis":v=O.refreshStatus.fetchState,ee=O.completionStatus;break;case"transaction_categorization":v=k.refreshStatus.fetchState,ee=k.completionStatus;break;case"reconciliation":be==null?(v=T.refreshStatus.fetchState,ee=T.completionStatus):(v=T.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",ee=T.completionStatus)}const Se=()=>{N()},{saveStatus:xe,selectedCheckBoxTransactionIds:Le}=k,Ae=()=>{const ne=Es(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds),je=q.dateNow(),{month:$e,year:Te}=P,st=q.dateNow().set("month",$e-1).set("year",Te).endOf("month");switch(D){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ne===!0?Oe.markAsReviewed:nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(n.fluxAnalysis.reviewOperatingExpensesIds.length,xs,M,nn.vendor,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{j([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:xe.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:eo(Le.length,q.MAX_SELECTION_LIMIT,M,nn.transaction,y),cancelBtn:{label:Oe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(A,ae.map(ze=>ze.id),P,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(we,A),h,_)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.next,style:{justifyContent:"space-evenly"},isDisabled:d||F?.isNextDisabled,suffixIcon:t.jsx(Oi,{}),onClick:()=>{r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Mi,{}),onClick:()=>{r(H.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Oe.reconcile,backBtnLabel:Oe.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.reconcile,onClick:()=>{I({reconcileAction:"reconcile"})},isDisabled:!(T.reconciliationTabsState.balances.variance.amount===0&&je.isAfter(st)),isLoading:T.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:eo(ve.length,1/0,M,nn.transaction,y),cancelBtn:{onClick:()=>{I({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:T.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Oe.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Oe.save,backBtnLabel:Oe.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Oe.save,isLoading:L.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>Se(),label:Oe.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const ze=y==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,It=y==="reconciliation"&&n.reconciliation.selectedAccountId==null,ot=y==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Ut=E.step==="month_end_insights"&&(y==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||It),on=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",ie=y==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",fe=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&(c||F?.isNextDisabled===!1),Ee=E.step==="month_end_insights"&&(It||y==="flux_analysis")?!fe:F?.isNextDisabled===!0;return{formId:"expenseAutomationPage",nextBtnLabel:Oe.next,backBtnLabel:Oe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ut===!0?rm(n.selectedPeriod.month):Oe.next,style:{justifyContent:"space-evenly"},isDisabled:Ee,suffixIcon:t.jsx(Oi,{}),onClick:()=>{on?i("autoCategorized"):ze?l("reconcile"):r(E.step)}},cancelBtn:{label:Oe.back,isDisabled:d||F?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Mi,{}),onClick:()=>{ie?i("review"):ot?l("review"):ze?f():r(H.step)}}}}}},he=()=>{switch(D){case"expenseAutomationFluxPage":return{confirmAction:()=>{b(!1),j([]),x()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{b(!1),C(A,ae.map(ne=>ne.id),P,!1,G[A],q.getLineItemsByTransactionIdsFromLocalData(we,A),h,_),x()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{b(!1),w(),x()}};default:return{confirmAction:()=>{b(!1)},confirmationDescription:rn.empty}}},Ke=()=>{D==="expenseAutomationFluxPage"||D==="expenseAutomationJESchedulePage"||D==="expenseAutomationTransactionsPage"?b(!0):x()},{primaryBtn:Je,cancelBtn:He,leftSideComponent:tt}=Ae(),{confirmAction:le}=he(),nt=ne=>{if(y==="transaction_categorization"&&(ne==="autoCategorized"||ne==="review"))return{hideCountInTab:G[ne]>ln.common.numbers.maximumCount,count:G[ne],isFetching:re[ne].fetchState==="In-Progress"};if(y==="reconciliation"){const{reconciliation:je}=n,{selectedAccountId:$e}=je;return $e==null?{count:0,isFetching:!1}:ne==="review"?{count:je.accountReconciliationsByAccountID[$e]?.accountReconEntity?.transactionsToReview.length,isFetching:je.accountReconciliationsByAccountID[$e]?.transactionFetchState.fetchState==="In-Progress"}:{count:je.accountReconciliationsByAccountID[$e]?.accountReconEntity?.transactionsToReconcile.length,isFetching:je.accountReconciliationsByAccountID[$e]?.transactionFetchState.fetchState==="In-Progress"}}},it=y==="reconciliation"&&T.selectedAccountId!=null&&T.selectedReconAccount!=null,{month:ct,year:Ot}=P,jt=q.dateNow().set("month",ct-1).set("year",Ot),Mt=jt.startOf("month").format(Bi),kt=jt.endOf("month").format(Bi),ce=`${Mt} ${rn.hyphen} ${kt}`;return t.jsxs(Zp,{children:[ge?t.jsx(Ws,{containerStyle:{width:356},titleComponent:t.jsx(mm,{children:em}),primaryButtonText:im,secondaryButtonText:om,proceedButtonVariant:"danger",action:{onOkClick:()=>{le()},onCancelClick:()=>b(!1)},descriptionComponent:t.jsx(gm,{children:ln.confirmationDescription})}):null,t.jsxs(Xp,{children:[t.jsx(Pr,{onBack:f,navBarCustomElement:y==="reconciliation"&&T.selectedAccountId!=null?t.jsx(am,{reconciliation:T}):void 0,onReconTabUpdate:l,currentRecontab:T.selectedTab,reconcileDetailPageFetchState:T.selectedAccountId!=null?T.accountReconciliationsByAccountID[T.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:it?T.selectedAccountId:void 0,currentSelectedView:y,titleStyle:{justifyContent:"center",marginLeft:o.sp0},headerData:Ve(y,G.autoCategorized,it?T.selectedAccountId:void 0,it?T.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,it?ce:void 0),searchText:Q,currentTab:A,getTabCountAndFetchState:nt,completionStatus:ee,forceShowSubtitle:K===!0||y==="je_schedules"&&(L.fetchState==="In-Progress"||L.accountSettingsView.fetchState==="In-Progress"),refreshStatus:v,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??rn.empty,isZeniUser:oe,onAllThreadsClick:()=>{W!=null&&pe(null),U(!0)},onUpdateTab:i,onSearchTextChanged:m,onRefresh:u,onClose:Ke}),t.jsx(Jp,{...e,isCOTEnabled:p,setIsJeAccountSettingsOpened:Y,setResetJeAccountSettingsForm:V,allThreadsSectionOpen:z,setCurrentFooterFormId:J,currentFooterFormId:D,onCloseAllThreadsSection:()=>U(!1)}),t.jsx(Pe,{controller:y!=="month_end_insights",children:t.jsx(Vi,{style:{width:"-webkit-fill-available",maxHeight:g[8]},formId:cm(D),primaryBtn:Je,leftSideComponent:tt,cancelBtn:He,separatorStyle:{marginRight:o.sp4}})})]})]})},am=({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(xm,{children:t.jsxs(fm,{children:[t.jsxs(to,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(no,{children:t.jsx(ym,{})}),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:qe("0,0.00",l)}),t.jsx(io,{children:ln.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(to,{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:qe("0,0.00",d)}),t.jsxs(vm,{children:[t.jsx(io,{children:ln.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ce,{placement:"bottom",title:t.jsxs(Sm,{children:[t.jsxs(Fi,{children:[t.jsxs(zi,{children:[i.count," ",nn.payments]}),t.jsx(_i,{children:qe("0,0.[00]",i.totalAmount)})]}),t.jsxs(Fi,{children:[t.jsxs(zi,{children:[p.count," ",nn.deposits]}),t.jsx(_i,{children:qe("0,0.[00]",p.totalAmount)})]})]}),display:"flex",children:t.jsx(bm,{})})]})]})})]}),t.jsxs(to,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(no,{children:t.jsx(Cm,{})}),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:qe("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(dm,{currentView:h,style:d==="small"?{position:"absolute",top:o.sp2,left:`-${o.sp5}`}:{},children:[t.jsx(um,{multiDigit:e>=5,children:e}),t.jsx(hm,{children:i}),e===n?t.jsx(pm,{children:`(${Qp})`}):null]}):null},rm=e=>{const n=sm[e];return`${nm}${rn.space}${n}${rn.space}${tm.insights}`};function lm(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 cm=e=>`${e}_form`,dm=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
+ `,um=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
+ `,hm=a(Fe)`
1562
+ color: ${e=>e.theme.colors.primary};
1563
+ `,pm=a(St)`
1564
+ color: ${Xe.important};
1565
+ `,mm=a(Hs)`
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
+ `,gm=a(Us)`
1572
+ color: ${e=>e.theme.colors.primary};
1573
+ margin-top: ${o.sp2};
1574
+ margin-bottom: ${o.sp2};
1575
+ `,xm=a.div`
1576
+ display: flex;
1577
+ justify-content: center;
1578
+ align-items: center;
1579
+ padding: ${o.sp3} ${o.sp0};
1580
+ `,fm=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
+ `,ym=a(Zs)`
1608
+ color: ${e=>e.theme.colors.primary};
1609
+ width: ${o.sp4};
1610
+ height: ${o.sp4};
1611
+ `,Cm=a(Xs)`
1612
+ color: ${e=>e.theme.colors.primary};
1613
+ width: ${o.sp4};
1614
+ height: ${o.sp4};
1615
+ `,wm=a(Yp)`
1616
+ color: ${e=>e.theme.colors.primary};
1617
+ width: ${o.sp4};
1618
+ height: ${o.sp4};
1619
+ `,bm=a(Ui)`
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
+ `,vm=a.div`
1627
+ display: flex;
1628
+ align-items: center;
1629
+ gap: ${o.sp1};
1630
+ `,Sm=a.div`
1631
+ background-color: ${Xe.overlayDark};
1632
+ padding: 2px ${o.sp2};
1633
+ border-radius: ${o.sp1};
1634
+ `,Fi=a.div`
1635
+ display: flex;
1636
+ justify-content: space-between;
1637
+ gap: ${o.sp2};
1638
+ `,zi=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{mm as ConfirmationPopUpTitle,_m as default,lm as getNextAndPreviousSteps,cm as uniqueFormName};