@zeniai/web-app-ui 4.14.28-prod → 4.14.29-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 (494) hide show
  1. package/dist/assets/{ACHDetailsPage-URcYg-_E-CnKQi3u4.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-VILPvNCr-BPT7YRxu.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
  3. package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
  7. package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BMCgd2A5-DYYQJbMt.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
  11. package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
  12. package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
  13. package/dist/assets/{AgingReportsPage-BL_aBNzL-Rfib8YTF.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
  14. package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
  15. package/dist/assets/{AllUserItems-b0wgd0Wz-HghicmNo.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
  16. package/dist/assets/{ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
  17. package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
  18. package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
  19. package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
  20. package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
  21. package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
  22. package/dist/assets/{AttachmentView-ENg9Osic-P9NYY_0P.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
  23. package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
  24. package/dist/assets/{BankAccountSection-oL-aN0I_-Dgtd5LW7.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
  25. package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
  26. package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
  27. package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
  28. package/dist/assets/{BillPayApprovalRoutes-D2WhMQ-d.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
  31. package/dist/assets/{BillPayPromoPage-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-BUUZZuBG.js → BillPayRoutes-DqZf2rOO.js} +13 -13
  33. package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
  34. package/dist/assets/{BillingSettingsPage-Cfe4Vmza-BztoAmNg.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
  35. package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
  36. package/dist/assets/{BoxItem-CTEOx6Nh-C4z3ogUT.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
  37. package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
  38. package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
  39. package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
  40. package/dist/assets/{CardNumberSubText-DijJqFXC-9bJRWO6u.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
  41. package/dist/assets/{CashbackDetailPage-BxIWU0z2-5aSz_QAT.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
  42. package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
  43. package/dist/assets/{ChargeCardListPage-CYhY6c52-CMF1P6xh.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
  44. package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
  46. package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-Bi6qtFGx.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
  48. package/dist/assets/{ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
  49. package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
  50. package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
  51. package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
  52. package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
  53. package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
  54. package/dist/assets/{CompanyPassportPage-DqhT6YL_-C387_Sbn.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
  55. package/dist/assets/{CompanyPassportScreen-Bw3qq-Ht.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
  56. package/dist/assets/{CompleteProfile-DdA-FkwG-CwuL_HZU.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
  57. package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
  61. package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
  62. package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
  63. package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
  64. package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
  67. package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
  70. package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
  71. package/dist/assets/{Dashboard-Cvmg-DzK-puV8ebMR.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-C7bT-gmW-B8nCLsAW.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
  73. package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-RFtlxhsO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
  77. package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
  78. package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
  79. package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
  80. package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
  81. package/dist/assets/{DrawerPage-DGuh6P-6-BcyuUjYZ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
  82. package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
  83. package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
  84. package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
  85. package/dist/assets/{EntityDetailPage-BbeHCNGS-CuhXo5UK.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
  86. package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
  87. package/dist/assets/{EntitySummarySection-BgjWn9vX-B3b1MF7S.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
  88. package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
  89. package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
  91. package/dist/assets/{ExpressPayPage-5VdASApP-D9MlPJBc.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
  92. package/dist/assets/{FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
  94. package/dist/assets/{FollowStepsSection-CTSjTKjT-BGVIDRAe.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
  95. package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
  96. package/dist/assets/{InformationCardStack-D_Z7Ebe0-CrFTMoBP.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
  97. package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
  98. package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
  101. package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
  102. package/dist/assets/{InviteFormPage-C5mS-6c8-CQ3pBA8X.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
  103. package/dist/assets/{InvitePageListView-Yj83_lDA-BObL1UwR.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
  104. package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
  105. package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
  106. package/dist/assets/{IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
  107. package/dist/assets/{LabeledAddressValue-Bb1x9jR--K66XVI1l.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
  109. package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
  110. package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
  112. package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
  113. package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
  114. package/dist/assets/{LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
  115. package/dist/assets/{LabeledNameField-DWKoivcI-Bg7Loxzf.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
  116. package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
  117. package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
  119. package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
  120. package/dist/assets/{LinkJETransactionPage-BbpybbwD-CgRdsDGC.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
  121. package/dist/assets/{LockCardPage-C0XjGES8-DzPwjGzp.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
  122. package/dist/assets/{LowBalancePopup-CkO97HGX-nozhu0WG.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
  123. package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-D99wiuRu.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
  127. package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
  128. package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
  129. package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
  131. package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
  132. package/dist/assets/{MoreMenuButton-BWNCapgP-BFDpJyIR.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
  133. package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
  134. package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
  135. package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
  136. package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
  137. package/dist/assets/{NavigationArrow-CUPvxfZv-CROxnh_J.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
  138. package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
  140. package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
  141. package/dist/assets/{NoDataTable-D1v085Vv-CeExg0EA.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
  142. package/dist/assets/{NotFoundPage-Bf-EPtU9-DffpH6WC.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
  143. package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
  144. package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
  146. package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
  147. package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
  148. package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
  149. package/dist/assets/{OverlayContainerPage-D4QU0p4o-C20bjbix.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
  150. package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
  151. package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
  153. package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
  154. package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
  155. package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
  156. package/dist/assets/{Preview-BI7JdS0A.js → Preview-C63MOKlS.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-Dx8bStwI-DCDAdb91.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
  158. package/dist/assets/{PromoBaseCards-Bauxzwzt-D83UTBk-.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
  159. package/dist/assets/{QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-Bdjj5_fC.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
  161. package/dist/assets/{QBOSetupSection-Cb4AlHU9-D57sQXWJ.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
  162. package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1GmaX--.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
  167. package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
  168. package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
  169. package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
  170. package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
  171. package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
  172. package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
  173. package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
  174. package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
  175. package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
  176. package/dist/assets/{RevenueChart-BHrj8Dy9-CDfFyh6U.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
  177. package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
  178. package/dist/assets/{ReviewOverlay-Be_F1hd--BbTRhL0o.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
  179. package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
  182. package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
  183. package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
  184. package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
  185. package/dist/assets/{SetUpAccountSection-ULABF-Md-zu_CEzKT.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
  186. package/dist/assets/{SettingsRoutes-DjjTCzCe.js → SettingsRoutes-CEWrZV9M.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-n_J03kZN.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
  188. package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
  189. package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
  190. package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
  191. package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
  192. package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
  193. package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
  194. package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
  195. package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
  196. package/dist/assets/{StatusSwitcher-CgzMvf5t-BZOhbmQ7.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
  197. package/dist/assets/{SubTabSwitcher-gc5g6vV0-DPlVBwi9.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
  198. package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
  199. package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
  200. package/dist/assets/{TaskDetailPage-Brq3l5Lm-D1g8XH38.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
  201. package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
  202. package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
  203. package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
  204. package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
  205. package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
  206. package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
  207. package/dist/assets/{TopExCard-CRxFMC50-DI0Ys14u.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-D7dCJGpQ-0fQzChNa.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
  209. package/dist/assets/{TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
  210. package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
  212. package/dist/assets/{TransactionDetailScreen-BB7cA6Qz.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
  213. package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
  214. package/dist/assets/{TransactionListBig-BOKPby7d-BEnm2yMd.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
  215. package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-C8lRyPOF.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
  218. package/dist/assets/{TransferDrawerPage-B5ofYt0y-GqcyFVry.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
  219. package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
  220. package/dist/assets/{TreasuryPromoPage-ofZQDboF-CT-dKX0-.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
  221. package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
  224. package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
  225. package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
  226. package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-C44UiDRH-CnXGyk33.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
  228. package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
  229. package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
  230. package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
  231. package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
  232. package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
  234. package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-D6DinIAj-BpUOgRZp.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
  238. package/dist/assets/{VendorsRoutes-BcdOO99u.js → VendorsRoutes-Dh458IQK.js} +21 -21
  239. package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
  240. package/dist/assets/{VideoPlayer-BuOlZW0M-BMl86S4m.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
  241. package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
  242. package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
  243. package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
  244. package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
  245. package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
  246. package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
  247. package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
  248. package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CG1KriVL.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
  249. package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
  250. package/dist/assets/{ZeniAvatar-CHmpyZc4-D3SEyYvU.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
  251. package/dist/assets/{ZeniCopyright-Cy7xQhak-ScelyO6I.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
  253. package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
  254. package/dist/assets/{accountMappingHelper-CTk3qsZA.js → accountMappingHelper-CZHlLVR_.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-DBixabBc.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
  256. package/dist/assets/{analytics-DeMdmyL7.js → analytics-CDQ7tGpV.js} +1 -1
  257. package/dist/assets/{analyticsHelper-MsboCQcB-CSXrY7fF.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
  258. package/dist/assets/{analyticsHelper-LPY3WkeX.js → analyticsHelper-jTnRtCKB.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CpIzET1p.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-NghmWVqE.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-bHemC5rL.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
  262. package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
  263. package/dist/assets/{calculateSize-DtEgyuiA-CjEqHti4.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
  264. package/dist/assets/{chartTypes-BZL6U2-d-jpm0hHlK.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-7F524_Wn.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
  266. package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
  267. package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
  268. package/dist/assets/{commonTypes-lunwFIdl-CvIuXwQA.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
  269. package/dist/assets/{core-CSCSHf4h.js → core-B0nKoasK.js} +3 -38
  270. package/dist/assets/{dash.all.min-DD8xAjYr.js → dash.all.min-CXMi5GlA.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-CjRggx5I.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
  272. package/dist/assets/{dnd-COr1F31f.js → dnd-NNN-4w0O.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-jCztdMWk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
  274. package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
  275. package/dist/assets/empty-CVZTZ-q9.js +1 -0
  276. package/dist/assets/{empty-CxBrUVur.js → empty-DA-JSLu3.js} +1 -1
  277. package/dist/assets/epic-D0yDPv8O.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-CXXx4fNz.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CKc8hoEH.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C4iKOud4.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-DNYsMVIY.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
  284. package/dist/assets/{helper-2Z01-P8G-6WuzcTRW.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
  285. package/dist/assets/{hyperlink-DQyCeXx2-CQAWbGo_.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
  286. package/dist/assets/{empty-BUd3exG5.js → index-BIjZljJR.js} +1 -1
  287. package/dist/assets/{index-DDbdy58V.js → index-ByxsQZNo.js} +4239 -4303
  288. package/dist/assets/{index-BOP14OKw.js → index-CEBFS-eA.js} +1 -1
  289. package/dist/assets/{index-BRX_XEL-.js → index-CQJQXzZY.js} +1 -1
  290. package/dist/assets/{index-CWdL8pZi.js → index-DrsMeyfs.js} +2 -8
  291. package/dist/assets/index-zhMcpxMF.js +1 -0
  292. package/dist/assets/{lexical-O2a-WmAf.js → lexical-Fl-AogKa.js} +1 -1
  293. package/dist/assets/{liveblocks-CxtxQte5.js → liveblocks-DskTqGyX.js} +3 -8
  294. package/dist/assets/{lottie-BQDwpIDJ.js → lottie-BzV8yd9z.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
  301. package/dist/assets/{media-player-En9R4zy-.js → media-player-eLGyvMHZ.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-Dg41nRSv.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
  303. package/dist/assets/{mui-CVWe5m7x.js → mui-40xepic5.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BOzcKZnj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-CcrLQmlI.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
  306. package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
  307. package/dist/assets/{pathToGoBack-DIP3w2mF.js → pathToGoBack-D0UTUGlT.js} +1 -1
  308. package/dist/assets/{pdf-rNAmIEF5.js → pdf-A8jRKyoC.js} +3 -3
  309. package/dist/assets/{pdf-lib-JWzwvdNX.js → pdf-lib-mQnebn-k.js} +1 -1
  310. package/dist/assets/{plaid-CiVnbkxs.js → plaid-cfgjTkr8.js} +1 -1
  311. package/dist/assets/{pusher-CfFxSIhQ.js → pusher-1O2fsDZq.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-dW1yKl4Q.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
  313. package/dist/assets/{react-DRNApT94.js → react-BEcUyG01.js} +2 -12
  314. package/dist/assets/{react-DreXWt5i.js → react-BEctO-ia.js} +2 -12
  315. package/dist/assets/{react-CWo9VOAE.js → react-C6o6ScF5.js} +2 -12
  316. package/dist/assets/react-CQm7lU_-.js +19 -0
  317. package/dist/assets/{react-BLXPSNxU.js → react-CidUU4N9.js} +2 -12
  318. package/dist/assets/{react-BeMs2FpL.js → react-D8s_m7Vn.js} +2 -12
  319. package/dist/assets/{react-4TAXbemT.js → react-DcRcFJEU.js} +3 -13
  320. package/dist/assets/{react-BQsk4BoF.js → react-QF7HiPHo.js} +2 -12
  321. package/dist/assets/{recharts-C5pBg015.js → recharts-Bbdho9Pi.js} +1 -1
  322. package/dist/assets/{routePaths-fz0y1bUD.js → routePaths-CpPoI1xs.js} +1 -1
  323. package/dist/assets/{sentry-DXG8OAzW.js → sentry-COYnhuxW.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-Cd3QAXsn.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-D2szeI3Z.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
  327. package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B2mLzfbH.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-DSJzH_Tn.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-Do1fnqx6.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
  331. package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
  332. package/dist/assets/{uploadAttachment-DtJo5Tp4-BZBGp8x9.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
  333. package/dist/assets/{uploadReceipts-Dge0cNF1-Bk3l52rk.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
  334. package/dist/assets/{url-DHNwFLzp.js → url-C27bOf0k.js} +1 -1
  335. package/dist/assets/{url-D1_xUHHk.js → url-XCmE-JaB.js} +1 -1
  336. package/dist/assets/{useDeviceId-CbEpWwMZ.js → useDeviceId-UXlBHXyB.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-B5PGidsY.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-BIw6ZPFi.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
  340. package/dist/assets/{utils-CEFC9M68.js → utils-DMEPgX6w.js} +7 -20
  341. package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
  342. package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
  343. package/dist/assets/{zeni-icon-only-CqALPKNP.js → zeni-icon-only-BkUYNged.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/dist/service-worker.js +16 -8
  346. package/package.json +4 -4
  347. package/dist/assets/AccountInfoPage-BTogpO7M-BUQAmyzG.js +0 -18
  348. package/dist/assets/AccountRow-Zjkju8uM-6N6Zy9oH.js +0 -298
  349. package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js +0 -6
  350. package/dist/assets/AddressRoutes-BRhTpo4o.js +0 -1
  351. package/dist/assets/AddressScreen-DDbvTrW2.js +0 -9
  352. package/dist/assets/AiCfoScreen-BMeMMkhN.js +0 -11
  353. package/dist/assets/AppBasePage-BM1NMPdI-DTjsrnRl.js +0 -71
  354. package/dist/assets/AppDrawerContent-XR9dBd-C-BEm_wBDf.js +0 -92
  355. package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js +0 -47
  356. package/dist/assets/ArAgingChart-DePiNxcV-D_qXJGXM.js +0 -24
  357. package/dist/assets/ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js +0 -46
  358. package/dist/assets/BankAccountWarningSection-CtRFcHTv-D_XRICo4.js +0 -51
  359. package/dist/assets/BillDetailPage-CPxVWXx6-1Oioq8DD.js +0 -266
  360. package/dist/assets/BillPaySetUpPage-BVOLWF1M-BteYr6zk.js +0 -42
  361. package/dist/assets/BusinessVerificationPage-D05hRyo1-CBEBIqW_.js +0 -138
  362. package/dist/assets/BusinessVerificationPageScreen-Cmz7lCYf.js +0 -9
  363. package/dist/assets/BusyIndication-Nz8htndZ-DYZEgBsh.js +0 -9
  364. package/dist/assets/ChargeCardListTable-Dblodw9X-CDugn7Oq.js +0 -711
  365. package/dist/assets/ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js +0 -222
  366. package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js +0 -206
  367. package/dist/assets/CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js +0 -2844
  368. package/dist/assets/CompanyPassportCard-DTfKmcGv-De1PPEAL.js +0 -42
  369. package/dist/assets/ConfettiBurst-Dc0iIaw3-B7boQlLF.js +0 -1
  370. package/dist/assets/ConnectionAuthScreen-Du50wdfI.js +0 -11
  371. package/dist/assets/CurrencySelectField-D_D8AUqS-BZdJIXWt.js +0 -139
  372. package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +0 -1
  373. package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +0 -1
  374. package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js +0 -66
  375. package/dist/assets/CustomerOnboardingRoutes-C8nMZVtS.js +0 -23
  376. package/dist/assets/DashboardRoutes-Cs6trW6R.js +0 -21
  377. package/dist/assets/DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js +0 -76
  378. package/dist/assets/DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js +0 -66
  379. package/dist/assets/DomesticWireDetailScreen-CDquLvw_.js +0 -18
  380. package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js +0 -21
  381. package/dist/assets/DownloadOverlay-DE63RFQe-rm17dQJa.js +0 -439
  382. package/dist/assets/DrawerScreen-C-gJlwdg.js +0 -1
  383. package/dist/assets/EditPeoplePage-Dmz2l8uY-DdG9SBff.js +0 -55
  384. package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js +0 -865
  385. package/dist/assets/EntityDetailRoutes-Bjmke2zn.js +0 -1
  386. package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js +0 -2323
  387. package/dist/assets/ExpenseAutomationRoutes-N5IH8NJS.js +0 -20
  388. package/dist/assets/FeaturePreviewScreen-CLKJ2QAB.js +0 -1
  389. package/dist/assets/GlobalReviewListPage-DmrnXFgW-B57SMtSt.js +0 -291
  390. package/dist/assets/InsightsCardStack-Dbpzjgf4-CmY1A9uH.js +0 -79
  391. package/dist/assets/InsightsSection-DgViiL7e-D07WWVHm.js +0 -27
  392. package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js +0 -65
  393. package/dist/assets/InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js +0 -12
  394. package/dist/assets/InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js +0 -140
  395. package/dist/assets/LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js +0 -45
  396. package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js +0 -16
  397. package/dist/assets/LabeledDocumentField-CFtFroDl-BAzH2vry.js +0 -41
  398. package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js +0 -59
  399. package/dist/assets/LabeledText-CZMUFsPf-BzxAzPVQ.js +0 -42
  400. package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js +0 -1
  401. package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js +0 -1
  402. package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js +0 -1
  403. package/dist/assets/MagicLinkSignInScreen-D9jNjUlX.js +0 -12
  404. package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js +0 -31
  405. package/dist/assets/MailingDetailsSection-CRsQVOYi-xwOtQnim.js +0 -21
  406. package/dist/assets/MobileAppDrawer-D_OmB8VL.js +0 -1
  407. package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js +0 -6
  408. package/dist/assets/NavBarWithPicker-ClP6LCUF-D7FqbQNc.js +0 -30
  409. package/dist/assets/NavigationDots-Cu9LZj7T-BoVhghfD.js +0 -15
  410. package/dist/assets/NoDataChart-DcMRzXHU-DbjmTgYu.js +0 -26
  411. package/dist/assets/NotFoundScreen-DykxXNVn.js +0 -1
  412. package/dist/assets/NotificationRoutes-C-lRR8pY.js +0 -1
  413. package/dist/assets/NotificationsListConfig-CO5uOSs7-aAnj3j2i.js +0 -1
  414. package/dist/assets/NotificationsPage-BH6B4Q8b-D1IQhl37.js +0 -685
  415. package/dist/assets/OpExByVendorPage-EjyJRLhn-BhVe3s3b.js +0 -100
  416. package/dist/assets/PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js +0 -107
  417. package/dist/assets/PandLWithForecastRoutes-zzKekdOK.js +0 -1
  418. package/dist/assets/PeoplePage-D2N1XP-O-caSWGUZc.js +0 -720
  419. package/dist/assets/PeopleRoutes-CsdzM7DQ.js +0 -22
  420. package/dist/assets/PerformanceRoutes-DoL3UdHs.js +0 -1
  421. package/dist/assets/ReferralListScreen-CmCz8zc8.js +0 -5
  422. package/dist/assets/ReimbursementApprovalRoutes-Cei43fBO.js +0 -1
  423. package/dist/assets/ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js +0 -314
  424. package/dist/assets/ReimbursementRoutes-CtyvtqmD.js +0 -13
  425. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js +0 -1
  426. package/dist/assets/ReloadCard-BKHKE8Pu-BkEOOlFz.js +0 -26
  427. package/dist/assets/ReportTableViewSelector-gYxUii1M-CxYX420D.js +0 -150
  428. package/dist/assets/ReportsPage-D7rEPLAa-CTGwy7xH.js +0 -121
  429. package/dist/assets/ReportsRoutes-DzvU0X2a.js +0 -1
  430. package/dist/assets/ReviewDetailsPage-B9SMV_va-DpCKxVZs.js +0 -290
  431. package/dist/assets/RewardsRoutes-vGh4ydPL.js +0 -1
  432. package/dist/assets/RoleWithToolTip-D9DCHaph-BK_HFdm8.js +0 -22
  433. package/dist/assets/ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js +0 -324
  434. package/dist/assets/ScreenRoutes-Ddt_3qWB.js +0 -2
  435. package/dist/assets/SignIn-6YH_riJW-CoJmoytJ.js +0 -491
  436. package/dist/assets/SignInScreen-C81bBqwd.js +0 -1
  437. package/dist/assets/SignOutScreen-CEuaozcz.js +0 -9
  438. package/dist/assets/SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js +0 -134
  439. package/dist/assets/SpendManagementPerTabPage-BnugLA94-ISau-F_A.js +0 -754
  440. package/dist/assets/SpendManagementSection-DCk1isQq-DqP3iWuL.js +0 -375
  441. package/dist/assets/StatementItem-BWKA6BsE-B8aggs_N.js +0 -31
  442. package/dist/assets/StatementsPage-C5KuiVH4-BGiHKDOi.js +0 -58
  443. package/dist/assets/SuccessAnimation-CcFXT4sg-BETTrulo.js +0 -13
  444. package/dist/assets/SummaryCard-DgPg2oPm-DQSV3AJ_.js +0 -1
  445. package/dist/assets/TaskListScreen-D_rI0d2T.js +0 -9
  446. package/dist/assets/TaskManagementPage-Dyy-A0ij-BRtOKHgc.js +0 -1063
  447. package/dist/assets/TaskRoutes-CcAxScvl.js +0 -9
  448. package/dist/assets/TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js +0 -64
  449. package/dist/assets/TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js +0 -31
  450. package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js +0 -31
  451. package/dist/assets/TransactionDetailPage-D0_Tjv5D-BzMxrc83.js +0 -903
  452. package/dist/assets/TransactionDetailRoutes-CKp9VtFU.js +0 -1
  453. package/dist/assets/TransactionList-DoYieHoy-Dq8Ds1Cb.js +0 -153
  454. package/dist/assets/TransactionListPage-Bfx0PW2V-Bv5CoGoz.js +0 -35
  455. package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js +0 -708
  456. package/dist/assets/TreasuryRoutes-aZ6pdLcv.js +0 -45
  457. package/dist/assets/TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js +0 -58
  458. package/dist/assets/TrendChart-BJLik8fK-B6jK66HA.js +0 -16
  459. package/dist/assets/TrendWithTransactions-R1FCSydB-BZtJh6Ko.js +0 -116
  460. package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js +0 -38
  461. package/dist/assets/Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js +0 -1
  462. package/dist/assets/VendorDetailPage-BixXt95H-CEzpHcoG.js +0 -257
  463. package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js +0 -1
  464. package/dist/assets/VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js +0 -730
  465. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js +0 -1
  466. package/dist/assets/VerifyDevice-DFug_o82-D9msA2pt.js +0 -112
  467. package/dist/assets/VideoPopup-B03SM83j--LOH40s0.js +0 -31
  468. package/dist/assets/WiseConfirmationScreen-D_LadT7o.js +0 -12
  469. package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js +0 -300
  470. package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js +0 -441
  471. package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js +0 -14
  472. package/dist/assets/ZeniAccountRoutes-DBnPGXKs.js +0 -58
  473. package/dist/assets/ZeniAccountStatementScreen-Br16O1Ed.js +0 -9
  474. package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js +0 -63
  475. package/dist/assets/common-DspMM85g-CC6Rl9Du.js +0 -1
  476. package/dist/assets/commonDimensions-RZ10geET-CKOh47Tk.js +0 -1
  477. package/dist/assets/detailCommon-CxEOrtjx-Ct263sBr.js +0 -38
  478. package/dist/assets/downloadPdf-BpxrRqLr-DZAS6b5B.js +0 -1
  479. package/dist/assets/epic-DybEFF0H.js +0 -2
  480. package/dist/assets/getLocaleForTenant-CjEkOXZy.js +0 -1
  481. package/dist/assets/index-CCO5Gdps.js +0 -1
  482. package/dist/assets/index-iatqQdID.js +0 -1
  483. package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js +0 -1
  484. package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js +0 -1
  485. package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js +0 -1
  486. package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js +0 -1
  487. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js +0 -1
  488. package/dist/assets/panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js +0 -4
  489. package/dist/assets/react-C8m8Qc1h.js +0 -37
  490. package/dist/assets/toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js +0 -1
  491. package/dist/assets/toChartData-BurvmO_S-Dcja8_o1.js +0 -1
  492. package/dist/assets/useInitialThreadRequest-B_AZH90H.js +0 -1
  493. package/dist/assets/withTransactionSidePanel-CV9mcG0R.js +0 -8
  494. package/dist/assets/zeni-epic-state-B_a_iTrR.js +0 -122
@@ -0,0 +1,3614 @@
1
+ import{ba as yi,bb as So,bc as Vu,fK as Qn,k as W,S as Br,O as $e,V as t,o as r,cd as Wu,y as kt,e as Ie,ad as pi,L as Pn,i$ as Hi,j0 as Ku,P as re,d as xe,x as ge,N as Gu,n as zr,ab as rd,aj as ad,er as Yu,j1 as qu,j2 as kr,bt as oi,j3 as Ju,w as yt,C as ot,bn as Se,l as Fe,a8 as ko,j4 as Zu,j as Ot,iL as Qu,s as Xu,fw as eh,bd as $o,aR as th,i as nh,H as lt,j5 as ih,W as oh,bp as rh,bR as ah,aZ as sh,E as dt,a9 as sd,bS as lh,a_ as ch,ht as dh,a5 as pt,cJ as Eo,dR as uh,aT as hh,q as ph,e6 as $n,df as ut,an as Ci,cO as ld,aP as gh,hr as mh,gm as fh,ge as cd,aU as xh,bg as gt,ar as bi,b6 as dd,j6 as yh,by as Ch,at as ud,D as Hr,T as Fn,A as Bn,j7 as bh,cM as hd,j8 as wh,j9 as vh,ja as Sh,fX as Ur,bF as wi,bV as To,aE as pd,aF as gd,c8 as vi,dj as Vr,gU as kh,aM as $h,bI as Eh,bw as Th,f_ as pa,i3 as ga,cK as Si,cs as kn,d3 as it,bO as ki,b_ as $i,c1 as Ei,jb as jh,hC as md,a7 as ma,gg as fd,jc as Nh,b1 as xd,g4 as Sn,hk as Ro,e3 as uo,cc as Wr,v as _h,e4 as yd,bf as Ih,fh as Rh,gq as Cd,aA as Ah,jd as Lh,ag as Kr,gr as Dh,gs as Oh,de as bd,je as wd,fY as ho,it as fa,jf as Mh,ah as Ph,cQ as vd,a as gi,hK as Sd,hT as $r,jg as Yn,dH as kd,dJ as $d,i7 as Er,i8 as Ed,cp as Td,jh as Fh,cq as jo,hL as jd,eT as Nd,ji as Bh,dW as Ao,a1 as Tr,jj as zh,c6 as Hh,h_ as Uh,dh as Vh,jk as Wh,g1 as Kh,al as Lo,dS as Gh,fb as Yh,jl as qh,dd as Jh,h as Zh,dT as Qh,dU as Xh,dV as ep,dY as xa,dZ as ya,d_ as tp,g8 as np,e8 as ip,e9 as op,ea as rp}from"./index-ByxsQZNo.js";import{e as Ca,r as $t,g as ap,a as d,b as _d}from"./sentry-COYnhuxW.js";import{n as x,G as sp,c as ke,k as Ti}from"./mui-40xepic5.js";import{bG as ni,bs as Id,lb as lp,GO as ba,GP as mi,GQ as cp,GR as dp,GS as up,GT as hp,bp as Gr,GU as pp,F6 as wa,GV as gp,GW as mp,mg as ci,bT as Nn,GX as va,GY as fp,c2 as Rd,cp as _n,GZ as xp,G_ as Ad,G$ as Ld,H0 as Dd,H1 as Od,H2 as Md,H3 as Yr,lK as yp}from"./zeni-epic-state-DCforPdM.js";import{m as Cp}from"./BusyIndication-H_iNZOWd-BNmJKxof.js";import{L as bp}from"./common-BGuhvMjF-Ry4gfI81.js";import{t as qr}from"./panelSelectedMixin-Cddsb26L-DgahycaC.js";import{u as wp}from"./plaid-cfgjTkr8.js";import{v as Pd}from"./SuccessAnimation-C-AHWH-M-DYko07lj.js";import{t as vp}from"./clock-CJkylEKt-CjcyjUt4.js";import{K as Sp}from"./LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js";import{e as kp,f as $p}from"./liveblocks-DskTqGyX.js";import{r as et}from"./lexical-Fl-AogKa.js";import{f as Ep,r as fi}from"./core-B0nKoasK.js";import{t as Tp}from"./undo-b_3XZ5CX-Chu3klyO.js";import{m as Fd,n as Bd,a as qn,t as Qt}from"./CollapsableReportTable-BhbPzkAB-C83Y_pXv.js";import{N as Do}from"./AccountRow-G9Hw9KCo-CT1w9ZhF.js";import{o as zd}from"./mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js";import{d as Sa}from"./mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js";import{h as jp}from"./VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js";import{u as Np,c as ka,d as _p,m as Ip}from"./uploadAttachment-DPYv4udq-CXZc-rXm.js";import{t as Rp}from"./bank-letter-BOcVjN6J-ydWr7ZOI.js";import{t as Ap}from"./upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js";import"./pdf-A8jRKyoC.js";import"./lottie-BzV8yd9z.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./recharts-Bbdho9Pi.js";import"./utils-DMEPgX6w.js";import"./calculateSize-DecSvt-d-CIfCbqel.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="615531b8-fd46-4a77-a98e-e76bf3a0f49e",e._sentryDebugIdIdentifier="sentry-dbid-615531b8-fd46-4a77-a98e-e76bf3a0f49e")}catch{}})();var $a,Ge={},Ea={exports:{}};function Lp(){return $a||($a=1,function(e){var n=function(a){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,C={},o={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function u(p){return p instanceof l?new l(p.type,u(p.content),p.alias):Array.isArray(p)?p.map(u):p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(u){return Object.prototype.toString.call(u).slice(8,-1)},objId:function(u){return u.__id||Object.defineProperty(u,"__id",{value:++f}),u.__id},clone:function u(p,E){var $,j;switch(E=E||{},o.util.type(p)){case"Object":if(j=o.util.objId(p),E[j])return E[j];for(var D in $={},E[j]=$,p)p.hasOwnProperty(D)&&($[D]=u(p[D],E));return $;case"Array":return j=o.util.objId(p),E[j]?E[j]:($=[],E[j]=$,p.forEach(function(M,_){$[_]=u(M,E)}),$);default:return p}},getLanguage:function(u){for(;u;){var p=i.exec(u.className);if(p)return p[1].toLowerCase();u=u.parentElement}return"none"},setLanguage:function(u,p){u.className=u.className.replace(RegExp(i,"gi"),""),u.classList.add("language-"+p)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch($){var u=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec($.stack)||[])[1];if(u){var p=document.getElementsByTagName("script");for(var E in p)if(p[E].src==u)return p[E]}return null}},isActive:function(u,p,E){for(var $="no-"+p;u;){var j=u.classList;if(j.contains(p))return!0;if(j.contains($))return!1;u=u.parentElement}return!!E}},languages:{plain:C,plaintext:C,text:C,txt:C,extend:function(u,p){var E=o.util.clone(o.languages[u]);for(var $ in p)E[$]=p[$];return E},insertBefore:function(u,p,E,$){var j=($=$||o.languages)[u],D={};for(var M in j)if(j.hasOwnProperty(M)){if(M==p)for(var _ in E)E.hasOwnProperty(_)&&(D[_]=E[_]);E.hasOwnProperty(M)||(D[M]=j[M])}var I=$[u];return $[u]=D,o.languages.DFS(o.languages,function(A,P){P===I&&A!=u&&(this[A]=D)}),D},DFS:function u(p,E,$,j){j=j||{};var D=o.util.objId;for(var M in p)if(p.hasOwnProperty(M)){E.call(p,M,p[M],$||M);var _=p[M],I=o.util.type(_);I!=="Object"||j[D(_)]?I!=="Array"||j[D(_)]||(j[D(_)]=!0,u(_,E,M,j)):(j[D(_)]=!0,u(_,E,null,j))}}},plugins:{},highlightAll:function(u,p){o.highlightAllUnder(document,u,p)},highlightAllUnder:function(u,p,E){var $={callback:E,container:u,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",$),$.elements=Array.prototype.slice.apply($.container.querySelectorAll($.selector)),o.hooks.run("before-all-elements-highlight",$);for(var j,D=0;j=$.elements[D++];)o.highlightElement(j,p===!0,$.callback)},highlightElement:function(u,p,E){var $=o.util.getLanguage(u),j=o.languages[$];o.util.setLanguage(u,$);var D=u.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(D,$);var M={element:u,language:$,grammar:j,code:u.textContent};function _(A){M.highlightedCode=A,o.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,o.hooks.run("after-highlight",M),o.hooks.run("complete",M),E&&E.call(M.element)}if(o.hooks.run("before-sanity-check",M),(D=M.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!M.code)return o.hooks.run("complete",M),void(E&&E.call(M.element));if(o.hooks.run("before-highlight",M),M.grammar)if(p&&a.Worker){var I=new Worker(o.filename);I.onmessage=function(A){_(A.data)},I.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else _(o.highlight(M.code,M.grammar,M.language));else _(o.util.encode(M.code))},highlight:function(u,p,E){var $={code:u,grammar:p,language:E};if(o.hooks.run("before-tokenize",$),!$.grammar)throw new Error('The language "'+$.language+'" has no grammar.');return $.tokens=o.tokenize($.code,$.grammar),o.hooks.run("after-tokenize",$),l.stringify(o.util.encode($.tokens),$.language)},tokenize:function(u,p){var E=p.rest;if(E){for(var $ in E)p[$]=E[$];delete p.rest}var j=new w;return h(j,j.head,u),S(u,j,p,j.head,0),function(D){for(var M=[],_=D.head.next;_!==D.tail;)M.push(_.value),_=_.next;return M}(j)},hooks:{all:{},add:function(u,p){var E=o.hooks.all;E[u]=E[u]||[],E[u].push(p)},run:function(u,p){var E=o.hooks.all[u];if(E&&E.length)for(var $,j=0;$=E[j++];)$(p)}},Token:l};function l(u,p,E,$){this.type=u,this.content=p,this.alias=E,this.length=0|($||"").length}function m(u,p,E,$){u.lastIndex=p;var j=u.exec(E);if(j&&$&&j[1]){var D=j[1].length;j.index+=D,j[0]=j[0].slice(D)}return j}function S(u,p,E,$,j,D){for(var M in E)if(E.hasOwnProperty(M)&&E[M]){var _=E[M];_=Array.isArray(_)?_:[_];for(var I=0;I<_.length;++I){if(D&&D.cause==M+","+I)return;var A=_[I],P=A.inside,K=!!A.lookbehind,X=!!A.greedy,te=A.alias;if(X&&!A.pattern.global){var Z=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,Z+"g")}for(var B=A.pattern||A,O=$.next,g=j;O!==p.tail&&!(D&&g>=D.reach);g+=O.value.length,O=O.next){var c=O.value;if(p.length>u.length)return;if(!(c instanceof l)){var N,k=1;if(X){if(!(N=m(B,g,u,K))||N.index>=u.length)break;var y=N.index,R=N.index+N[0].length,L=g;for(L+=O.value.length;y>=L;)L+=(O=O.next).value.length;if(g=L-=O.value.length,O.value instanceof l)continue;for(var z=O;z!==p.tail&&(L<R||typeof z.value=="string");z=z.next)k++,L+=z.value.length;k--,c=u.slice(g,L),N.index-=g}else if(!(N=m(B,0,c,K)))continue;y=N.index;var J=N[0],ee=c.slice(0,y),U=c.slice(y+J.length),H=g+c.length;D&&H>D.reach&&(D.reach=H);var V=O.prev;if(ee&&(V=h(p,V,ee),g+=ee.length),s(p,V,k),O=h(p,V,new l(M,P?o.tokenize(J,P):J,te,J)),U&&h(p,O,U),k>1){var G={cause:M+","+I,reach:H};S(u,p,E,O.prev,g,G),D&&G.reach>D.reach&&(D.reach=G.reach)}}}}}}function w(){var u={value:null,prev:null,next:null},p={value:null,prev:u,next:null};u.next=p,this.head=u,this.tail=p,this.length=0}function h(u,p,E){var $=p.next,j={value:E,prev:p,next:$};return p.next=j,$.prev=j,u.length++,j}function s(u,p,E){for(var $=p.next,j=0;j<E&&$!==u.tail;j++)$=$.next;p.next=$,$.prev=p,u.length-=j}if(a.Prism=o,l.stringify=function u(p,E){if(typeof p=="string")return p;if(Array.isArray(p)){var $="";return p.forEach(function(I){$+=u(I,E)}),$}var j={type:p.type,content:u(p.content,E),tag:"span",classes:["token",p.type],attributes:{},language:E},D=p.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(j.classes,D):j.classes.push(D)),o.hooks.run("wrap",j);var M="";for(var _ in j.attributes)M+=" "+_+'="'+(j.attributes[_]||"").replace(/"/g,"&quot;")+'"';return"<"+j.tag+' class="'+j.classes.join(" ")+'"'+M+">"+j.content+"</"+j.tag+">"},!a.document)return a.addEventListener&&(o.disableWorkerMessageHandler||a.addEventListener("message",function(u){var p=JSON.parse(u.data),E=p.language,$=p.code,j=p.immediateClose;a.postMessage(o.highlight($,o.languages[E],E)),j&&a.close()},!1)),o;var v=o.util.currentScript();function b(){o.manual||o.highlightAll()}if(v&&(o.filename=v.src,v.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var T=document.readyState;T==="loading"||T==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",b):window.requestAnimationFrame?window.requestAnimationFrame(b):window.setTimeout(b,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),Ca!==void 0&&(Ca.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(a,i){var f={};f["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[i]},f.cdata=/^<!\[CDATA\[|\]\]>$/i;var C={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}};C["language-"+i]={pattern:/[\s\S]+/,inside:n.languages[i]};var o={};o[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:C},n.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(a){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var f=a.languages.markup;f&&(f.tag.addInlined("style","css"),f.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(n!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",f="loading",C="loaded",o="pre[data-src]:not(["+i+'="'+C+'"]):not(['+i+'="'+f+'"])';n.hooks.add("before-highlightall",function(m){m.selector+=", "+o}),n.hooks.add("before-sanity-check",function(m){var S=m.element;if(S.matches(o)){m.code="",S.setAttribute(i,f);var w=S.appendChild(document.createElement("CODE"));w.textContent="Loading…";var h=S.getAttribute("data-src"),s=m.language;if(s==="none"){var v=(/\.(\w+)$/.exec(h)||[,"none"])[1];s=a[v]||v}n.util.setLanguage(w,s),n.util.setLanguage(S,s);var b=n.plugins.autoloader;b&&b.loadLanguages(s),function(T,u,p){var E=new XMLHttpRequest;E.open("GET",T,!0),E.onreadystatechange=function(){E.readyState==4&&(E.status<400&&E.responseText?u(E.responseText):E.status>=400?p("✖ Error "+E.status+" while fetching file: "+E.statusText):p("✖ Error: File does not exist or is empty"))},E.send(null)}(h,function(T){S.setAttribute(i,C);var u=function(j){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(j||"");if(D){var M=Number(D[1]),_=D[2],I=D[3];return _?I?[M,Number(I)]:[M,void 0]:[M,M]}}(S.getAttribute("data-range"));if(u){var p=T.split(/\r\n?|\n/g),E=u[0],$=u[1]==null?p.length:u[1];E<0&&(E+=p.length),E=Math.max(0,Math.min(E-1,p.length)),$<0&&($+=p.length),$=Math.max(0,Math.min($,p.length)),T=p.slice(E,$).join(`
2
+ `),S.hasAttribute("data-start")||S.setAttribute("data-start",String(E+1))}w.textContent=T,n.highlightElement(w)},function(T){S.setAttribute(i,"failed"),w.textContent=T})}}),n.plugins.fileHighlight={highlight:function(m){for(var S,w=(m||document).querySelectorAll(o),h=0;S=w[h++];)n.highlightElement(S)}};var l=!1;n.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(Ea)),Ea.exports}var Ta,ja,Na,_a,Dp={};function Op(){return _a||(_a=1,function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(S){return S=S.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+S+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),C=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+C+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+C+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+C+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(S){["url","bold","italic","strike","code-snippet"].forEach(function(w){S!==w&&(e.languages.markdown[S].inside.content.inside[w]=e.languages.markdown[w])})}),e.hooks.add("after-tokenize",function(S){S.language!=="markdown"&&S.language!=="md"||function w(h){if(h&&typeof h!="string")for(var s=0,v=h.length;s<v;s++){var b=h[s];if(b.type==="code"){var T=b.content[1],u=b.content[3];if(T&&u&&T.type==="code-language"&&u.type==="code-block"&&typeof T.content=="string"){var p=T.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),E="language-"+(p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase());u.alias?typeof u.alias=="string"?u.alias=[u.alias,E]:u.alias.push(E):u.alias=[E]}}else w(b.content)}}(S.tokens)}),e.hooks.add("wrap",function(S){if(S.type==="code-block"){for(var w="",h=0,s=S.classes.length;h<s;h++){var v=S.classes[h],b=/language-(.+)/.exec(v);if(b){w=b[1];break}}var T,u,p=e.languages[w];if(p)S.content=e.highlight((T=S.content,u=(u=T.replace(o,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function($,j){var D;if((j=j.toLowerCase())[0]==="#")return D=j[1]==="x"?parseInt(j.slice(2),16):Number(j.slice(1)),m(D);var M=l[j];return M||$}),u),p,w);else if(w&&w!=="none"&&e.plugins.autoloader){var E="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());S.attributes.id=E,e.plugins.autoloader.loadLanguages(w,function(){var $=document.getElementById(E);$&&($.innerHTML=e.highlight($.textContent,e.languages[w],w))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},m=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)),Dp}var Ia,Ra,Aa,La,Da,Oa,Ma,Pa,Fa,Ba,za,Ha,Ua,Va,Wa,Ka,Ga,Ya,qa,at={},tt={};function ji(){return Ua?Ha:(Ua=1,Ha=function(){if(za)return tt;za=1;var n=et();let a=new Map;function i(s){for(;s!=null;){if(s.nodeType===Node.TEXT_NODE)return s;s=s.firstChild}return null}function f(s){let v=s.parentNode;if(v==null)throw Error("Should never happen");return[v,Array.from(v.childNodes).indexOf(s)]}function C(s){let v={};s=s.split(";");for(let b of s)if(b!==""){let[T,u]=b.split(/:([^]+)/);v[T.trim()]=u.trim()}return v}function o(s){let v=a.get(s);return v===void 0&&(v=C(s),a.set(s,v)),v}function l(s,v){var b=o("getStyle"in s?s.getStyle():s.style);v=Object.entries(v).reduce((T,[u,p])=>(p===null?delete T[u]:T[u]=p,T),{...b}),b=function(T){let u="";for(let p in T)p&&(u+=`${p}: ${T[p]};`);return u}(v),s.setStyle(b),a.set(b,v)}function m(s){for(;s!==null&&!n.$isRootOrShadowRoot(s);){let v=s.getLatest(),b=s.getParent();v.getChildrenSize()===0&&s.remove(!0),s=b}}function S(s,v,b,T,u=null){if(v.length!==0){var p=v[0],E=new Map,$=[];(p=n.$isElementNode(p)?p:p.getParentOrThrow()).isInline()&&(p=p.getParentOrThrow());for(var j=!1;p!==null;){var D=p.getPreviousSibling();if(D!==null){p=D,j=!0;break}if(p=p.getParentOrThrow(),n.$isRootOrShadowRoot(p))break}D=new Set;for(var M=0;M<b;M++){var _=v[M];n.$isElementNode(_)&&_.getChildrenSize()===0&&D.add(_.getKey())}var I=new Set;for(M=0;M<b;M++){var A=(_=v[M]).getParent();if(A!==null&&A.isInline()&&(A=A.getParent()),A!==null&&n.$isLeafNode(_)&&!I.has(_.getKey())){if(_=A.getKey(),E.get(_)===void 0){let P=T();P.setFormat(A.getFormatType()),P.setIndent(A.getIndent()),$.push(P),E.set(_,P),A.getChildren().forEach(K=>{P.append(K),I.add(K.getKey()),n.$isElementNode(K)&&K.getChildrenKeys().forEach(X=>I.add(X))}),m(A)}}else D.has(_.getKey())&&((A=T()).setFormat(_.getFormatType()),A.setIndent(_.getIndent()),$.push(A),_.remove(!0))}if(u!==null)for(v=0;v<$.length;v++)u.append($[v]);if(v=null,n.$isRootOrShadowRoot(p))if(j)if(u!==null)p.insertAfter(u);else for(u=$.length-1;0<=u;u--)p.insertAfter($[u]);else if(j=p.getFirstChild(),n.$isElementNode(j)&&(p=j),j===null)if(u)p.append(u);else for(u=0;u<$.length;u++)j=$[u],p.append(j),v=j;else if(u!==null)j.insertBefore(u);else for(p=0;p<$.length;p++)u=$[p],j.insertBefore(u),v=u;else if(u)p.insertAfter(u);else for(u=$.length-1;0<=u;u--)j=$[u],p.insertAfter(j),v=j;$=n.$getPreviousSelection(),n.$isRangeSelection($)&&$.anchor.getNode().isAttached()&&$.focus.getNode().isAttached()?n.$setSelection($.clone()):v!==null?v.selectEnd():s.dirty=!0}}function w(s,v,b,T){s.modify(v?"extend":"move",b,T)}function h(s){return s=s.anchor.getNode(),(n.$isRootNode(s)?s:s.getParentOrThrow()).getDirection()==="rtl"}return tt.$addNodeStyle=function(s){let v=C(s=s.getStyle());a.set(s,v)},tt.$cloneWithProperties=function(s){let v=(s=s.getLatest()).constructor.clone(s);return v.__parent=s.__parent,v.__next=s.__next,v.__prev=s.__prev,n.$isElementNode(s)&&n.$isElementNode(v)?(v.__first=s.__first,v.__last=s.__last,v.__size=s.__size,v.__format=s.__format,v.__indent=s.__indent,v.__dir=s.__dir,v):(n.$isTextNode(s)&&n.$isTextNode(v)&&(v.__format=s.__format,v.__style=s.__style,v.__mode=s.__mode,v.__detail=s.__detail),v)},tt.$getSelectionStyleValueForProperty=function(s,v,b=""){let T=null,u=s.getNodes();var p=s.anchor,E=s.focus,$=s.isBackward();let j=$?E.offset:p.offset;if(p=$?E.getNode():p.getNode(),s.style!==""&&(s=o(s.style))!==null&&v in s)return s[v];for(s=0;s<u.length;s++){var D=u[s];if((s===0||j!==0||!D.is(p))&&n.$isTextNode(D)){if(E=v,$=b,E=(D=o(D=D.getStyle()))!==null&&D[E]||$,T===null)T=E;else if(T!==E){T="";break}}}return T===null?b:T},tt.$isAtNodeEnd=function(s){return s.type==="text"?s.offset===s.getNode().getTextContentSize():s.offset===s.getNode().getChildrenSize()},tt.$isParentElementRTL=h,tt.$moveCaretSelection=w,tt.$moveCharacter=function(s,v,b){let T=h(s);w(s,v,b?!T:T,"character")},tt.$patchStyleText=function(s,v){var b=s.getNodes();let T=b.length-1,u=b[0],p=b[T];if(s.isCollapsed())l(s,v);else{var E=s.anchor,$=s.focus,j=u.getTextContent().length,D=$.offset,M=E.offset,_=E.isBefore($),I=_?M:D;s=_?D:M;var A=_?E.type:$.type,P=_?$.type:E.type;if(E=_?$.key:E.key,n.$isTextNode(u)&&I===j&&($=u.getNextSibling(),n.$isTextNode($)&&(I=M=0,u=$)),b.length===1)n.$isTextNode(u)&&(I=A==="element"?0:M>D?D:M)!==(s=P==="element"?j:M>D?M:D)&&(I===0&&s===j?(l(u,v),u.select(I,s)):(b=u.splitText(I,s),l(b=I===0?b[0]:b[1],v),b.select(0,s-I)));else for(n.$isTextNode(u)&&I<u.getTextContentSize()&&(I!==0&&(u=u.splitText(I)[1]),l(u,v)),n.$isTextNode(p)&&(I=p.getTextContent().length,p.__key!==E&&s!==0&&(s=I),s!==I&&([p]=p.splitText(s)),s!==0&&l(p,v)),s=1;s<T;s++)j=(I=b[s]).getKey(),n.$isTextNode(I)&&j!==u.getKey()&&j!==p.getKey()&&!I.isToken()&&l(I,v)}},tt.$selectAll=function(s){let v=s.anchor;s=s.focus;var b=v.getNode().getTopLevelElementOrThrow().getParentOrThrow();let T=b.getFirstDescendant();b=b.getLastDescendant();let u="element",p="element",E=0;n.$isTextNode(T)?u="text":n.$isElementNode(T)||T===null||(T=T.getParentOrThrow()),n.$isTextNode(b)?(p="text",E=b.getTextContentSize()):n.$isElementNode(b)||b===null||(b=b.getParentOrThrow()),T&&b&&(v.set(T.getKey(),0,u),s.set(b.getKey(),E,p))},tt.$setBlocksType=function(s,v){if(s.anchor.key==="root"){v=v();var b=n.$getRoot();(s=b.getFirstChild())?s.replace(v,!0):b.append(v)}else for(b=s.getNodes(),s=s.anchor.getNode().getParentOrThrow(),b.indexOf(s)===-1&&b.push(s),s.isInline()&&(s=s.getParentOrThrow(),b.indexOf(s)===-1&&b.push(s)),s=0;s<b.length;s++){let p=b[s];var T=p;if(!n.$isElementNode(T)||n.$isRootOrShadowRoot(T))T=!1;else{var u=T.getFirstChild();u=u===null||n.$isTextNode(u)||u.isInline(),T=!T.isInline()&&T.canBeEmpty()!==!1&&u}T&&((T=v()).setFormat(p.getFormatType()),T.setIndent(p.getIndent()),p.replace(T,!0))}},tt.$shouldOverrideDefaultCharacterSelection=function(s,v){return s=n.$getAdjacentNode(s.focus,v),n.$isDecoratorNode(s)&&!s.isIsolated()||n.$isElementNode(s)&&!s.isInline()&&!s.canBeEmpty()},tt.$sliceSelectedTextNodeContent=function(s,v){if(v.isSelected()&&!v.isSegmented()&&!v.isToken()&&(n.$isRangeSelection(s)||n.DEPRECATED_$isGridSelection(s))){var b=s.anchor.getNode(),T=s.focus.getNode(),u=v.is(b),p=v.is(T);if(u||p){u=s.isBackward();let E,[$,j]=s.getCharacterOffsets();s=b.is(T),p=v.is(u?T:b),T=v.is(u?b:T),b=0,s?(b=$>j?j:$,E=$>j?$:j):p?(b=u?j:$,E=void 0):T&&(b=0,E=u=u?$:j),v.__text=v.__text.slice(b,E)}}return v},tt.$wrapNodes=function(s,v,b=null){var T=s.getNodes();let u=T.length;var p=s.anchor;if(u===0||u===1&&p.type==="element"&&p.getNode().getChildrenSize()===0){T=(s=p.type==="text"?p.getNode().getParentOrThrow():p.getNode()).getChildren();let $=v();$.setFormat(s.getFormatType()),$.setIndent(s.getIndent()),T.forEach(j=>$.append(j)),b&&($=b.append($)),s.replace($)}else{p=null;var E=[];for(let $=0;$<u;$++){let j=T[$];n.$isRootOrShadowRoot(j)?(S(s,E,E.length,v,b),E=[],p=j):p===null||p!==null&&n.$hasAncestor(j,p)?E.push(j):(S(s,E,E.length,v,b),E=[j])}S(s,E,E.length,v,b)}},tt.createDOMRange=function(s,v,b,T,u){let p=v.getKey(),E=T.getKey(),$=document.createRange(),j=s.getElementByKey(p);if(s=s.getElementByKey(E),n.$isTextNode(v)&&(j=i(j)),n.$isTextNode(T)&&(s=i(s)),v===void 0||T===void 0||j===null||s===null)return null;j.nodeName==="BR"&&([j,b]=f(j)),s.nodeName==="BR"&&([s,u]=f(s)),v=j.firstChild,j===s&&v!=null&&v.nodeName==="BR"&&b===0&&u===0&&(u=1);try{$.setStart(j,b),$.setEnd(s,u)}catch{return null}return!$.collapsed||b===u&&p===E||($.setStart(s,u),$.setEnd(j,b)),$},tt.createRectsFromDOMRange=function(s,v){var b=s.getRootElement();if(b===null)return[];s=b.getBoundingClientRect(),b=getComputedStyle(b),b=parseFloat(b.paddingLeft)+parseFloat(b.paddingRight);let T,u=(v=Array.from(v.getClientRects())).length;for(let p=0;p<u;p++){let E=v[p],$=E.width+b===s.width;T&&T.top===E.top&&T.left===E.left&&T.width===E.width&&T.height===E.height||$?(v.splice(p--,1),u--):T=E}return v},tt.getStyleObjectFromCSS=o,tt.trimTextContentFromAnchor=function(s,v,b){let T=v.getNode();if(n.$isElementNode(T)){var u=T.getDescendantByIndex(v.offset);u!==null&&(T=u)}for(;0<b&&T!==null;){var p=T.getPreviousSibling(),E=0;if(p===null){for(var $=(u=T.getParentOrThrow()).getPreviousSibling();$===null;){if((u=u.getParent())===null){p=null;break}$=u.getPreviousSibling()}u!==null&&(E=u.isInline()?0:2,p=n.$isElementNode($)?$.getLastDescendant():$)}if(($=T.getTextContent())===""&&n.$isElementNode(T)&&!T.isInline()&&($=`
3
+
4
+ `),u=T.getTextContentSize(),!n.$isTextNode(T)||b>=u)$=T.getParent(),T.remove(),$==null||$.getChildrenSize()!==0||n.$isRootNode($)||$.remove(),b-=u+E,T=p;else{let j=T.getKey();E=s.getEditorState().read(()=>{const M=n.$getNodeByKey(j);return n.$isTextNode(M)&&M.isSimpleText()?M.getTextContent():null}),p=u-b;let D=$.slice(0,p);E!==null&&E!==$?(b=n.$getPreviousSelection(),u=T,T.isSimpleText()?T.setTextContent(E):(u=n.$createTextNode(E),T.replace(u)),n.$isRangeSelection(b)&&b.isCollapsed()&&(b=b.anchor.offset,u.select(b,b))):T.isSimpleText()?(E=v.key===j,($=v.offset)<b&&($=u),b=E?$-b:0,u=E?$:p,E&&b===0?([b]=T.splitText(b,u),b.remove()):([,b]=T.splitText(b,u),b.remove())):(b=n.$createTextNode(D),T.replace(b)),b=0}}},tt}())}function Et(){return Ka?Wa:(Ka=1,Wa=function(){if(Va)return at;Va=1;var n=ji(),a=et();function i(o,l){for(let m of l)if(o.type.startsWith(m))return!0;return!1}function f(o,l){for(;o!==a.$getRoot()&&o!=null;){if(l(o))return o;o=o.getParent()}return null}function C(o){return o.nodeType===1}return at.$splitNode=a.$splitNode,at.$dfs=function(o,l){let m=[];o=(o||a.$getRoot()).getLatest(),l=l||(a.$isElementNode(o)?o.getLastDescendant():o);for(var S=o,w=0;(S=S.getParent())!==null;)w++;for(S=w;o!==null&&!o.is(l);)if(m.push({depth:S,node:o}),a.$isElementNode(o)&&0<o.getChildrenSize())o=o.getFirstChild(),S++;else for(w=null;w===null&&o!==null;)(w=o.getNextSibling())===null?(o=o.getParent(),S--):o=w;return o!==null&&o.is(l)&&m.push({depth:S,node:o}),m},at.$findMatchingParent=f,at.$getNearestBlockElementAncestorOrThrow=function(o){if(o=f(o,l=>a.$isElementNode(l)&&!l.isInline()),!a.$isElementNode(o))throw Error("Minified Lexical error #4; visit https://lexical.dev/docs/error?code=4 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return o},at.$getNearestNodeOfType=function(o,l){for(;o!=null;){if(o instanceof l)return o;o=o.getParent()}return null},at.$insertNodeToNearestRoot=function(o){var l=a.$getSelection();if(a.$isRangeSelection(l)){var{focus:m}=l;if(l=m.getNode(),m=m.offset,a.$isRootOrShadowRoot(l))(m=l.getChildAtIndex(m))==null?l.append(o):m.insertBefore(o),o.selectNext();else{let S,w;a.$isTextNode(l)?(S=l.getParentOrThrow(),w=l.getIndexWithinParent(),0<m&&(w+=1,l.splitText(m))):(S=l,w=m),[,l]=a.$splitNode(S,w),l.insertBefore(o),l.selectStart()}}else a.$isNodeSelection(l)||a.DEPRECATED_$isGridSelection(l)?(l=l.getNodes())[l.length-1].getTopLevelElementOrThrow().insertAfter(o):a.$getRoot().append(o),l=a.$createParagraphNode(),o.insertAfter(l),l.select();return o.getLatest()},at.$restoreEditorState=function(o,l){let m=new Map,S=o._pendingEditorState;for(let[w,h]of l._nodeMap){let s=n.$cloneWithProperties(h);a.$isTextNode(s)&&(s.__text=h.__text),m.set(w,s)}S&&(S._nodeMap=m),o._dirtyType=2,o=l._selection,a.$setSelection(o===null?null:o.clone())},at.$wrapNodeInElement=function(o,l){return l=l(),o.replace(l),l.append(o),l},at.addClassNamesToElement=function(o,...l){l.forEach(m=>{typeof m=="string"&&(m=m.split(" ").filter(S=>S!==""),o.classList.add(...m))})},at.isHTMLAnchorElement=function(o){return C(o)&&o.tagName==="A"},at.isHTMLElement=C,at.isMimeType=i,at.mediaFileReader=function(o,l){let m=o[Symbol.iterator]();return new Promise((S,w)=>{let h=[],s=()=>{const{done:v,value:b}=m.next();if(v)return S(h);const T=new FileReader;T.addEventListener("error",w),T.addEventListener("load",()=>{const u=T.result;typeof u=="string"&&h.push({file:b,result:u}),s()}),i(b,l)?T.readAsDataURL(b):s()};s()})},at.mergeRegister=function(...o){return()=>{o.forEach(l=>l())}},at.registerNestedElementResolver=function(o,l,m,S){return o.registerNodeTransform(l,w=>{e:{for(var h=w.getChildren(),s=0;s<h.length;s++)if(h[s]instanceof l){h=null;break e}for(h=w;h!==null;)if(s=h,(h=h.getParent())instanceof l){h={child:s,parent:h};break e}h=null}if(h!==null){const{child:v,parent:b}=h;if(v.is(w)){if(S(b,w),h=(w=v.getNextSiblings()).length,b.insertAfter(v),h!==0){s=m(b),v.insertAfter(s);for(let T=0;T<h;T++)s.append(w[T])}b.canBeEmpty()||b.getChildrenSize()!==0||b.remove()}}})},at.removeClassNamesFromElement=function(o,...l){l.forEach(m=>{typeof m=="string"&&o.classList.remove(...m.split(" "))})},at}())}function Mp(){if(Ga)return Ge;Ga=1;var e=Lp();Ta||(Ta=1,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}),ja||(ja=1,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript),Na||(Na=1,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(k){k.type==="entity"&&(k.attributes.title=k.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(k,y){var R={};R["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[y]},R.cdata=/^<!\[CDATA\[|\]\]>$/i;var L={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:R}};L["language-"+y]={pattern:/[\s\S]+/,inside:Prism.languages[y]};var z={};z[k]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return k}),"i"),lookbehind:!0,greedy:!0,inside:L},Prism.languages.insertBefore("markup","cdata",z)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(k,y){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+k+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[y,"language-"+y],inside:Prism.languages[y]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml),Op(),Ia||(Ia=1,Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean),Ra||(Ra=1,function(k){var y=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;k.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+y.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+y.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+y.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+y.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:y,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},k.languages.css.atrule.inside.rest=k.languages.css;var R=k.languages.markup;R&&(R.tag.addInlined("style","css"),R.tag.addAttribute("style","css"))}(Prism)),Aa||(Aa=1,Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec),La||(La=1,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}),Da||(Da=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),Oa||(Oa=1,function(k){for(var y=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,R=0;R<2;R++)y=y.replace(/<self>/g,function(){return y});y=y.replace(/<self>/g,function(){return/[^\s\S]/.source}),k.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+y),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},k.languages.rust["closure-params"].inside.rest=k.languages.rust,k.languages.rust.attribute.inside.string=k.languages.rust.string}(Prism)),Ma||(Ma=1,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(k){k.inside.interpolation.inside=Prism.languages.swift})),Pa||(Pa=1,function(k){k.languages.typescript=k.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),k.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete k.languages.typescript.parameter,delete k.languages.typescript["literal-property"];var y=k.languages.extend("typescript",{});delete y["class-name"],k.languages.typescript["class-name"].inside=y,k.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:y}}}}),k.languages.ts=k.languages.typescript}(Prism)),Fa||(Fa=1,function(k){var y=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,R=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,L={pattern:RegExp(/(^|[^\w.])/.source+R+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};k.languages.java=k.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[L,{pattern:RegExp(/(^|[^\w.])/.source+R+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:L.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+R+/[A-Z]\w*\b/.source),lookbehind:!0,inside:L.inside}],keyword:y,function:[k.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),k.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),k.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":L,keyword:y,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+R+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:L.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+R+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:L.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return y.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),Ba||(Ba=1,function(k){var y=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,R=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return y.source});k.languages.cpp=k.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return y.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:y,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),k.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return R})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),k.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:k.languages.cpp}}}}),k.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),k.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:k.languages.extend("cpp",{})}}),k.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},k.languages.cpp["base-clause"])}(Prism));var n=Et(),a=et();let i=k=>k!=null&&e.languages.hasOwnProperty(k)?k:void 0;function f(k,y){for(let R of k.childNodes){if(n.isHTMLElement(R)&&R.tagName===y)return!0;f(R,y)}return!1}class C extends a.ElementNode{static getType(){return"code"}static clone(y){return new C(y.__language,y.__key)}constructor(y,R){super(R),this.__language=i(y)}createDOM(y){let R=document.createElement("code");return n.addClassNamesToElement(R,y.theme.code),R.setAttribute("spellcheck","false"),(y=this.getLanguage())&&R.setAttribute("data-highlight-language",y),R}updateDOM(y,R){let L=this.__language;return y=y.__language,L?L!==y&&R.setAttribute("data-highlight-language",L):y&&R.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:y=>y.textContent!=null&&(/\r?\n/.test(y.textContent)||f(y,"BR"))?{conversion:m,priority:1}:null,div:()=>({conversion:S,priority:1}),pre:()=>({conversion:m,priority:0}),table:y=>v(y)?{conversion:w,priority:3}:null,td:y=>{let R=y.closest("table");return y.classList.contains("js-file-line")?{conversion:s,priority:3}:R&&v(R)?{conversion:h,priority:3}:null},tr:y=>(y=y.closest("table"))&&v(y)?{conversion:h,priority:3}:null}}static importJSON(y){let R=o(y.language);return R.setFormat(y.format),R.setIndent(y.indent),R.setDirection(y.direction),R}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(y,R=!0){var L=this.getChildren(),z=L.length;if(2<=z&&L[z-1].getTextContent()===`
5
+ `&&L[z-2].getTextContent()===`
6
+ `&&y.isCollapsed()&&y.anchor.key===this.__key&&y.anchor.offset===z)return L[z-1].remove(),L[z-2].remove(),y=a.$createParagraphNode(),this.insertAfter(y,R),y;if((z=D(R=y.anchor.getNode()))!=null){for(L=0,z=z.getTextContent();L<z.length&&/[\t ]/.test(z[L]);)L+=1;if(0<L)return L=$(L=z.substring(0,L)),R.insertAfter(L),y.insertNodes([a.$createLineBreakNode()]),L.select(),L}return null}canInsertTab(){let y=a.$getSelection();return!(!a.$isRangeSelection(y)||!y.isCollapsed())}canIndent(){return!1}collapseAtStart(){let y=a.$createParagraphNode();return this.getChildren().forEach(R=>y.append(R)),this.replace(y),!0}setLanguage(y){this.getWritable().__language=i(y)}getLanguage(){return this.getLatest().__language}}function o(k){return a.$applyNodeReplacement(new C(k))}function l(k){return k instanceof C}function m(){return{node:o(),preformatted:!0}}function S(k){let y=k.style.fontFamily.match("monospace")!==null;return y||function(R){for(R=R.parentElement;R!==null;){if(R.style.fontFamily.match("monospace")!==null)return!0;R=R.parentElement}return!1}(k)?{after:R=>{let L=k.parentNode;return L!=null&&k!==L.lastChild&&R.push(a.$createLineBreakNode()),R},node:y?o():null,preformatted:y}:{node:null}}function w(){return{node:o(),preformatted:!0}}function h(){return{node:null}}function s(k){return{after:y=>(k.parentNode&&k.parentNode.nextSibling&&y.push(a.$createLineBreakNode()),y),node:null}}function v(k){return k.classList.contains("js-file-line-container")}let b={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},T={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function u(k){return T[k]||k}class p extends a.TextNode{constructor(y,R,L){super(y,L),this.__highlightType=R}static getType(){return"code-highlight"}static clone(y){return new p(y.__text,y.__highlightType||void 0,y.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(y){let R=super.createDOM(y);return y=E(y.theme,this.__highlightType),n.addClassNamesToElement(R,y),R}updateDOM(y,R,L){let z=super.updateDOM(y,R,L);return(y=E(L.theme,y.__highlightType))!==(L=E(L.theme,this.__highlightType))&&(y&&n.removeClassNamesFromElement(R,y),L&&n.addClassNamesToElement(R,L)),z}static importJSON(y){let R=$(y.text,y.highlightType);return R.setFormat(y.format),R.setDetail(y.detail),R.setMode(y.mode),R.setStyle(y.style),R}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return o()}}function E(k,y){return y&&k&&k.codeHighlight&&k.codeHighlight[y]}function $(k,y){return a.$applyNodeReplacement(new p(k,y))}function j(k){return k instanceof p}function D(k){let y=null,R=k.getPreviousSiblings();for(R.push(k);0<R.length&&(j(k=R.pop())&&(y=k),!a.$isLineBreakNode(k)););return y}function M(k){let y=null,R=k.getNextSiblings();for(R.unshift(k);0<R.length&&(j(k=R.shift())&&(y=k),!a.$isLineBreakNode(k)););return y}let _={defaultLanguage:"javascript",tokenize(k,y){return e.tokenize(k,e.languages[y||""]||e.languages[this.defaultLanguage])}};function I(k,y){var R=k.length;let L=-1;if(y)for(y=0;y<R;y++){let z=k[y];if(z!==" "&&z!==" "){L=y;break}}else for(--R;-1<R;R--)if((y=k[R])!==" "&&y!==" "){L=R;break}return L}function A(k){let y=null,R=-1;var L=k.getPreviousSiblings();for(L.push(k);0<L.length;){var z=L.pop();if(j(z)){var J=z.getTextContent();(J=I(J,!0))!==-1&&(y=z,R=J)}if(a.$isLineBreakNode(z))break}if(y===null)for(k=k.getNextSiblings();0<k.length;){if(j(L=k.shift())&&(z=I(z=L.getTextContent(),!0))!==-1){y=L,R=z;break}if(a.$isLineBreakNode(L))break}return{node:y,offset:R}}function P(k){let y=null,R=-1;var L=k.getNextSiblings();for(L.unshift(k);0<L.length;){var z=L.shift();if(j(z)){var J=z.getTextContent();(J=I(J,!1))!==-1&&(y=z,R=J+1)}if(a.$isLineBreakNode(z))break}if(y===null)for(k=k.getPreviousSiblings();0<k.length;){if(j(L=k.pop())&&(z=I(z=L.getTextContent(),!1))!==-1){y=L,R=z+1;break}if(a.$isLineBreakNode(L))break}return{node:y,offset:R}}function K(k,y,R){let L=k.getParent();l(L)?te(L,y,R):j(k)&&k.replace(a.$createTextNode(k.__text))}let X=new Set;function te(k,y,R){let L=k.getKey();X.has(L)||(X.add(L),k.getLanguage()===void 0&&k.setLanguage(R.defaultLanguage),y.update(()=>{(function(z,J){if(z=a.$getNodeByKey(z),l(z)&&z.isAttached()){var ee=a.$getSelection();if(a.$isRangeSelection(ee)){var U=(ee=ee.anchor).offset,H=ee.type==="element"&&a.$isLineBreakNode(z.getChildAtIndex(ee.offset-1)),V=0;if(!H){let G=ee.getNode();V=U+G.getPreviousSiblings().reduce((ae,se)=>ae+se.getTextContentSize(),0)}J()&&(H?ee.getNode().select(U,U):z.getChildren().some(G=>{let ae=a.$isTextNode(G);if(ae||a.$isLineBreakNode(G)){let se=G.getTextContentSize();if(ae&&se>=V)return G.select(V,V),!0;V-=se}return!1}))}else J()}})(L,()=>{var z=a.$getNodeByKey(L);if(!l(z)||!z.isAttached())return!1;var J=z.getTextContent();J=Z(J=R.tokenize(J,z.getLanguage()||R.defaultLanguage));var ee=z.getChildren();for(z=0;z<ee.length&&B(ee[z],J[z]);)z++;var U=ee.length;let H=J.length,V=Math.min(U,H)-z,G=0;for(;G<V;)if(G++,!B(ee[U-G],J[H-G])){G--;break}ee=z,U-=G,J=J.slice(z,H-G);let{from:ae,to:se,nodesForReplacement:q}={from:ee,nodesForReplacement:J,to:U};return!(ae===se&&!q.length)&&(k.splice(ae,se-ae,q),!0)})},{onUpdate:()=>{X.delete(L)},skipTransforms:!0}))}function Z(k){let y=[];return k.forEach(R=>{if(typeof R=="string"){R=R.split(`
7
+ `);for(var L=0;L<R.length;L++){let z=R[L];z.length&&y.push($(z)),L<R.length-1&&y.push(a.$createLineBreakNode())}}else({content:L}=R),typeof L=="string"?y.push($(L,R.type)):Array.isArray(L)&&L.length===1&&typeof L[0]=="string"?y.push($(L[0],R.type)):Array.isArray(L)&&y.push(...Z(L))}),y}function B(k,y){return j(k)&&j(y)?k.__text===y.__text&&k.__highlightType===y.__highlightType:!(!a.$isLineBreakNode(k)||!a.$isLineBreakNode(y))}function O(k){var y=a.$getSelection();if(!a.$isRangeSelection(y)||y.isCollapsed())return!1;y=y.getNodes();for(var R=0;R<y.length;R++){var L=y[R];if(!j(L)&&!a.$isLineBreakNode(L))return!1}for((R=D(y[0]))!=null&&g(R,k),R=1;R<y.length;R++)L=y[R],a.$isLineBreakNode(y[R-1])&&j(L)&&g(L,k);return!0}function g(k,y){let R=k.getTextContent();y===a.INDENT_CONTENT_COMMAND?0<R.length&&/\s/.test(R[0])?k.setTextContent(" "+R):(y=$(" "),k.insertBefore(y)):R.indexOf(" ")===0&&(R.length===1?k.remove():k.setTextContent(R.substring(1)))}function c(k,y){let R=a.$getSelection();if(!a.$isRangeSelection(R))return!1;let{anchor:L,focus:z}=R,J=L.offset,ee=z.offset,U=L.getNode(),H=z.getNode();var V=k===a.KEY_ARROW_UP_COMMAND;if(!j(U)||!j(H))return!1;if(!y.altKey){if(R.isCollapsed()){if(k=U.getParentOrThrow(),V&&J===0&&U.getPreviousSibling()===null){if(k.getPreviousSibling()===null)return k.selectPrevious(),y.preventDefault(),!0}else if(!V&&J===U.getTextContentSize()&&U.getNextSibling()===null&&k.getNextSibling()===null)return k.selectNext(),y.preventDefault(),!0}return!1}var G=D(U);let ae=M(H);if(G==null||ae==null)return!1;let se=G.getNodesBetween(ae);for(let F=0;F<se.length;F++){let Y=se[F];if(!j(Y)&&!a.$isLineBreakNode(Y))return!1}if(y.preventDefault(),y.stopPropagation(),y=V?G.getPreviousSibling():ae.getNextSibling(),!a.$isLineBreakNode(y)||(G=V?y.getPreviousSibling():y.getNextSibling())==null)return!0;let q=(V=V?D(G):M(G))!=null?V:G;return y.remove(),se.forEach(F=>F.remove()),k===a.KEY_ARROW_UP_COMMAND?(se.forEach(F=>q.insertBefore(F)),q.insertBefore(y)):(q.insertAfter(y),q=y,se.forEach(F=>{q.insertAfter(F),q=F})),R.setTextNodeRange(U,J,H,ee),!0}function N(k,y){let R=a.$getSelection();if(!a.$isRangeSelection(R))return!1;let L,z,{anchor:J,focus:ee}=R,U=J.getNode(),H=ee.getNode();return k=k===a.MOVE_TO_START,!(!j(U)||!j(H))&&({node:L,offset:z}=k?A(H):P(H),L!==null&&z!==-1&&R.setTextNodeRange(L,z,L,z),y.preventDefault(),y.stopPropagation(),!0)}return Ge.$createCodeHighlightNode=$,Ge.$createCodeNode=o,Ge.$isCodeHighlightNode=j,Ge.$isCodeNode=l,Ge.CODE_LANGUAGE_FRIENDLY_NAME_MAP=b,Ge.CODE_LANGUAGE_MAP=T,Ge.CodeHighlightNode=p,Ge.CodeNode=C,Ge.DEFAULT_CODE_LANGUAGE="javascript",Ge.PrismTokenizer=_,Ge.getCodeLanguages=()=>Object.keys(e.languages).filter(k=>typeof e.languages[k]!="function").sort(),Ge.getDefaultCodeLanguage=()=>"javascript",Ge.getEndOfCodeInLine=P,Ge.getFirstCodeHighlightNodeOfLine=D,Ge.getLanguageFriendlyName=function(k){return k=u(k),b[k]||k},Ge.getLastCodeHighlightNodeOfLine=M,Ge.getStartOfCodeInLine=A,Ge.normalizeCodeLang=u,Ge.registerCodeHighlighting=function(k,y){if(!k.hasNodes([C,p]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return y==null&&(y=_),n.mergeRegister(k.registerMutationListener(C,R=>{k.update(()=>{for(let[J,ee]of R)if(ee!=="destroyed"){var L=a.$getNodeByKey(J);if(L!==null)e:{var z=L;if((L=k.getElementByKey(z.getKey()))===null)break e;let U=(z=z.getChildren()).length;if(U===L.__cachedChildrenLength)break e;L.__cachedChildrenLength=U;let H="1",V=1;for(let G=0;G<U;G++)a.$isLineBreakNode(z[G])&&(H+=`
8
+ `+ ++V);L.setAttribute("data-gutter",H)}}})}),k.registerNodeTransform(C,R=>te(R,k,y)),k.registerNodeTransform(a.TextNode,R=>K(R,k,y)),k.registerNodeTransform(p,R=>K(R,k,y)),k.registerCommand(a.INDENT_CONTENT_COMMAND,()=>O(a.INDENT_CONTENT_COMMAND),a.COMMAND_PRIORITY_LOW),k.registerCommand(a.OUTDENT_CONTENT_COMMAND,()=>O(a.OUTDENT_CONTENT_COMMAND),a.COMMAND_PRIORITY_LOW),k.registerCommand(a.KEY_ARROW_UP_COMMAND,R=>c(a.KEY_ARROW_UP_COMMAND,R),a.COMMAND_PRIORITY_LOW),k.registerCommand(a.KEY_ARROW_DOWN_COMMAND,R=>c(a.KEY_ARROW_DOWN_COMMAND,R),a.COMMAND_PRIORITY_LOW),k.registerCommand(a.MOVE_TO_END,R=>N(a.MOVE_TO_END,R),a.COMMAND_PRIORITY_LOW),k.registerCommand(a.MOVE_TO_START,R=>N(a.MOVE_TO_START,R),a.COMMAND_PRIORITY_LOW))},Ge}function Hd(){return qa?Ya:(qa=1,Ya=Mp())}var Ja,Za,Qa,jr=Hd(),Wt={};function No(){return Qa?Za:(Qa=1,Za=function(){if(Ja)return Wt;Ja=1;var n=Et(),a=et();class i extends a.ElementNode{static getType(){return"link"}static clone(h){return new i(h.__url,{rel:h.__rel,target:h.__target,title:h.__title},h.__key)}constructor(h,s={},v){super(v);let{target:b=null,rel:T=null,title:u=null}=s;this.__url=h,this.__target=b,this.__rel=T,this.__title=u}createDOM(h){let s=document.createElement("a");return s.href=this.__url,this.__target!==null&&(s.target=this.__target),this.__rel!==null&&(s.rel=this.__rel),this.__title!==null&&(s.title=this.__title),n.addClassNamesToElement(s,h.theme.link),s}updateDOM(h,s){let v=this.__url,b=this.__target,T=this.__rel,u=this.__title;return v!==h.__url&&(s.href=v),b!==h.__target&&(b?s.target=b:s.removeAttribute("target")),T!==h.__rel&&(T?s.rel=T:s.removeAttribute("rel")),u!==h.__title&&(u?s.title=u:s.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:f,priority:1})}}static importJSON(h){let s=C(h.url,{rel:h.rel,target:h.target,title:h.title});return s.setFormat(h.format),s.setIndent(h.indent),s.setDirection(h.direction),s}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(h){this.getWritable().__url=h}getTarget(){return this.getLatest().__target}setTarget(h){this.getWritable().__target=h}getRel(){return this.getLatest().__rel}setRel(h){this.getWritable().__rel=h}getTitle(){return this.getLatest().__title}setTitle(h){this.getWritable().__title=h}insertNewAfter(h,s=!0){return h=this.getParentOrThrow().insertNewAfter(h,s),a.$isElementNode(h)?(s=C(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),h.append(s),s):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(h,s){if(!a.$isRangeSelection(s))return!1;h=s.anchor.getNode();let v=s.focus.getNode();return this.isParentOf(h)&&this.isParentOf(v)&&0<s.getTextContent().length}}function f(w){let h=null;if(n.isHTMLAnchorElement(w)){let s=w.textContent;s!==null&&s!==""&&(h=C(w.getAttribute("href")||"",{rel:w.getAttribute("rel"),target:w.getAttribute("target"),title:w.getAttribute("title")}))}return{node:h}}function C(w,h){return a.$applyNodeReplacement(new i(w,h))}function o(w){return w instanceof i}class l extends i{static getType(){return"autolink"}static clone(h){return new l(h.__url,{rel:h.__rel,target:h.__target,title:h.__title},h.__key)}static importJSON(h){let s=m(h.url,{rel:h.rel,target:h.target,title:h.title});return s.setFormat(h.format),s.setIndent(h.indent),s.setDirection(h.direction),s}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(h,s=!0){return h=this.getParentOrThrow().insertNewAfter(h,s),a.$isElementNode(h)?(s=m(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),h.append(s),s):null}}function m(w,h){return a.$applyNodeReplacement(new l(w,h))}let S=a.createCommand("TOGGLE_LINK_COMMAND");return Wt.$createAutoLinkNode=m,Wt.$createLinkNode=C,Wt.$isAutoLinkNode=function(w){return w instanceof l},Wt.$isLinkNode=o,Wt.AutoLinkNode=l,Wt.LinkNode=i,Wt.TOGGLE_LINK_COMMAND=S,Wt.toggleLink=function(w,h={}){let{target:s,title:v}=h,b=h.rel===void 0?"noopener":h.rel;if(h=a.$getSelection(),a.$isRangeSelection(h))if(h=h.extract(),w===null)h.forEach(u=>{if(o(u=u.getParent())){let p=u.getChildren();for(let E=0;E<p.length;E++)u.insertBefore(p[E]);u.remove()}});else{if(h.length===1){var T=h[0];if(T=o(T)?T:function(E,$){for(;E!==null&&(E=E.getParent())!==null&&!$(E););return E}(T,o),T!==null)return T.setURL(w),s!==void 0&&T.setTarget(s),b!==null&&T.setRel(b),void(v!==void 0&&T.setTitle(v))}let u=null,p=null;h.forEach(E=>{var $=E.getParent();if($!==p&&$!==null&&(!a.$isElementNode(E)||E.isInline()))if(o($))p=$,$.setURL(w),s!==void 0&&$.setTarget(s),b!==null&&p.setRel(b),v!==void 0&&p.setTitle(v);else if($.is(u)||(u=$,p=C(w,{rel:b,target:s}),o($)?E.getPreviousSibling()===null?$.insertBefore(p):$.insertAfter(p):E.insertBefore(p)),o(E)){if(!E.is(p)){if(p!==null){$=E.getChildren();for(let j=0;j<$.length;j++)p.append($[j])}E.remove()}}else p!==null&&p.append(E)})}},Wt}())}var Xa,es,ts,ln=No(),ht={};function Pp(){if(Xa)return ht;Xa=1;var e=et(),n=Et();function a(B){throw Error(`Minified Lexical error #${B}; visit https://lexical.dev/docs/error?code=${B} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(B){let O=1;for(B=B.getParent();B!=null;){if($(B)){if(P(B=B.getParent())){O++,B=B.getParent();continue}a(40)}break}return O}function f(B){P(B=B.getParent())||a(40);let O=B;for(;O!==null;)O=O.getParent(),P(O)&&(B=O);return B}function C(B){let O=[];B=B.getChildren().filter($);for(let g=0;g<B.length;g++){let c=B[g],N=c.getFirstChild();P(N)?O=O.concat(C(N)):O.push(c)}return O}function o(B){return $(B)&&P(B.getFirstChild())}function l(B){return E().append(B)}function m(B,O){return $(B)&&(O.length===0||O.length===1&&B.is(O[0])&&B.getChildrenSize()===0)}function S(B,O){B.splice(B.getChildrenSize(),0,O)}function w(B,O){if(P(B))return B;let g=B.getPreviousSibling(),c=B.getNextSibling(),N=E();return N.setFormat(B.getFormatType()),N.setIndent(B.getIndent()),S(N,B.getChildren()),P(g)&&O===g.getListType()?(g.append(N),B.remove(),P(c)&&O===c.getListType()&&(S(g,c.getChildren()),c.remove()),g):P(c)&&O===c.getListType()?(c.getFirstChildOrThrow().insertBefore(N),B.remove(),c):((O=A(O)).append(N),B.replace(O),s(O),O)}function h(B,O){var g=B.getLastChild();let c=O.getFirstChild();g&&c&&o(g)&&o(c)&&(h(g.getFirstChild(),c.getFirstChild()),c.remove()),0<(g=O.getChildren()).length&&(B.append(...g),s(B)),O.remove()}function s(B,O){if((B=O||B.getChildren())!==void 0)for(O=0;O<B.length;O++){let k=B[O];if($(k)){let y=k.getValue();var g=k,c=g.getParent(),N=1;for(c!=null&&(P(c)?N=c.getStart():a(44)),g=g.getPreviousSiblings(),c=0;c<g.length;c++){let R=g[c];$(R)&&!P(R.getFirstChild())&&N++}y!==N&&k.setValue(N)}}}function v(B){if(!o(B)){var O=B.getParent(),g=O?O.getParent():void 0,c=g?g.getParent():void 0;if(P(c)&&$(g)&&P(O)){var N=O?O.getFirstChild():void 0,k=O?O.getLastChild():void 0;if(B.is(N))g.insertBefore(B),O.isEmpty()&&g.remove();else if(B.is(k))g.insertAfter(B),O.isEmpty()&&g.remove();else{var y=O.getListType();N=E();let R=A(y);N.append(R),B.getPreviousSiblings().forEach(L=>R.append(L)),k=E(),y=A(y),k.append(y),S(y,B.getNextSiblings()),g.insertBefore(N),g.insertAfter(k),g.replace(B)}s(O),s(c)}}}class b extends e.ElementNode{static getType(){return"listitem"}static clone(O){return new b(O.__value,O.__checked,O.__key)}constructor(O,g,c){super(c),this.__value=O===void 0?1:O,this.__checked=g}createDOM(O){let g=document.createElement("li"),c=this.getParent();return P(c)&&c.getListType()==="check"&&u(g,this,null),g.value=this.__value,T(g,O.theme,this),g}updateDOM(O,g,c){let N=this.getParent();return P(N)&&N.getListType()==="check"&&u(g,this,O),g.value=this.__value,T(g,c.theme,this),!1}static transform(){return O=>{let g=O.getParent();P(g)&&(s(g),g.getListType()!=="check"&&O.getChecked()!=null&&O.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:p,priority:0})}}static importJSON(O){let g=new b(O.value,O.checked);return g.setFormat(O.format),g.setDirection(O.direction),g}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...O){for(let g=0;g<O.length;g++){let c=O[g];if(e.$isElementNode(c)&&this.canMergeWith(c)){let N=c.getChildren();this.append(...N),c.remove()}else super.append(c)}return this}replace(O,g){if($(O))return super.replace(O);this.setIndent(0);let c=this.getParentOrThrow();if(!P(c))return O;if(c.__first===this.getKey())c.insertBefore(O);else if(c.__last===this.getKey())c.insertAfter(O);else{let N=A(c.getListType()),k=this.getNextSibling();for(;k;){let y=k;k=k.getNextSibling(),N.append(y)}c.insertAfter(O),O.insertAfter(N)}return g&&this.getChildren().forEach(N=>{O.append(N)}),this.remove(),c.getChildrenSize()===0&&c.remove(),O}insertAfter(O,g=!0){var c=this.getParentOrThrow();P(c)||a(39);var N=this.getNextSiblings();if($(O))return g=super.insertAfter(O,g),P(O=O.getParentOrThrow())&&s(O),g;if(P(O)&&O.getListType()===c.getListType()){for(c=O,N=(O=O.getChildren()).length-1;0<=N;N--)c=O[N],this.insertAfter(c,g);return c}if(c.insertAfter(O,g),N.length!==0){let k=A(c.getListType());N.forEach(y=>k.append(y)),O.insertAfter(k,g)}return O}remove(O){let g=this.getPreviousSibling(),c=this.getNextSibling();super.remove(O),g&&c&&o(g)&&o(c)?(h(g.getFirstChild(),c.getFirstChild()),c.remove()):c&&P(O=c.getParent())&&s(O)}insertNewAfter(O,g=!0){return O=E(this.__checked==null&&void 0),this.insertAfter(O,g),O}collapseAtStart(O){let g=e.$createParagraphNode();this.getChildren().forEach(y=>g.append(y));var c=this.getParentOrThrow(),N=c.getParentOrThrow();let k=$(N);return c.getChildrenSize()===1?k?(c.remove(),N.select()):(c.insertBefore(g),c.remove(),c=O.anchor,O=O.focus,N=g.getKey(),c.type==="element"&&c.getNode().is(this)&&c.set(N,c.offset,"element"),O.type==="element"&&O.getNode().is(this)&&O.set(N,O.offset,"element")):(c.insertBefore(g),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(O){this.getWritable().__value=O}getChecked(){return this.getLatest().__checked}setChecked(O){this.getWritable().__checked=O}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var O=this.getParent();if(O===null)return this.getLatest().__indent;O=O.getParentOrThrow();let g=0;for(;$(O);)O=O.getParentOrThrow().getParentOrThrow(),g++;return g}setIndent(O){typeof O=="number"&&-1<O||a(117);let g=this.getIndent();for(;g!==O;)if(g<O){e:{var c=new Set;if(o(this)||c.has(this.getKey()))break e;let R=this.getParent();var N=this.getNextSibling(),k=this.getPreviousSibling();if(o(N)&&o(k)){if(P(k=k.getFirstChild())){k.append(this);var y=N.getFirstChild();P(y)&&(S(k,y=y.getChildren()),N.remove(),c.add(N.getKey())),s(k)}}else o(N)?P(N=N.getFirstChild())&&((c=N.getFirstChild())!==null&&c.insertBefore(this),s(N)):o(k)?P(N=k.getFirstChild())&&(N.append(this),s(N)):P(R)&&(c=E(),y=A(R.getListType()),c.append(y),y.append(this),k?k.insertAfter(c):N?N.insertBefore(c):R.append(c),s(y));P(R)&&s(R)}g++}else v(this),g--;return this}insertBefore(O){if($(O)){let g=this.getParentOrThrow();P(g)&&s(g,this.getNextSiblings())}return super.insertBefore(O)}canInsertAfter(O){return $(O)}canReplaceWith(O){return $(O)}canMergeWith(O){return e.$isParagraphNode(O)||$(O)}extractWithChild(O,g){if(!e.$isRangeSelection(g))return!1;O=g.anchor.getNode();let c=g.focus.getNode();return this.isParentOf(O)&&this.isParentOf(c)&&this.getTextContent().length===g.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return A("bullet")}}function T(B,O,g){let c=[],N=[];var k=(O=O.list)?O.listitem:void 0;if(O&&O.nested)var y=O.nested.listitem;if(k!==void 0&&(k=k.split(" "),c.push(...k)),O){k=P(k=g.getParent())&&k.getListType()==="check";let R=g.getChecked();k&&!R||N.push(O.listitemUnchecked),k&&R||N.push(O.listitemChecked),k&&c.push(R?O.listitemChecked:O.listitemUnchecked)}y!==void 0&&(y=y.split(" "),g.getChildren().some(R=>P(R))?c.push(...y):N.push(...y)),0<N.length&&n.removeClassNamesFromElement(B,...N),0<c.length&&n.addClassNamesToElement(B,...c)}function u(B,O,g){P(O.getFirstChild())?(B.removeAttribute("role"),B.removeAttribute("tabIndex"),B.removeAttribute("aria-checked")):(B.setAttribute("role","checkbox"),B.setAttribute("tabIndex","-1"),g&&O.__checked===g.__checked||B.setAttribute("aria-checked",O.getChecked()?"true":"false"))}function p(B){return{node:E(B=n.isHTMLElement(B)&&B.getAttribute("aria-checked")==="true")}}function E(B){return e.$applyNodeReplacement(new b(void 0,B))}function $(B){return B instanceof b}class j extends e.ElementNode{static getType(){return"list"}static clone(O){return new j(O.__listType||I[O.__tag],O.__start,O.__key)}constructor(O,g,c){super(c),this.__listType=O=I[O]||O,this.__tag=O==="number"?"ol":"ul",this.__start=g}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(O){let g=document.createElement(this.__tag);return this.__start!==1&&g.setAttribute("start",String(this.__start)),g.__lexicalListType=this.__listType,D(g,O.theme,this),g}updateDOM(O,g,c){return O.__tag!==this.__tag||(D(g,c.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:_,priority:0}),ul:()=>({conversion:_,priority:0})}}static importJSON(O){let g=A(O.listType,O.start);return g.setFormat(O.format),g.setIndent(O.indent),g.setDirection(O.direction),g}exportDOM(O){return{element:O}=super.exportDOM(O),O&&(this.__start!==1&&O.setAttribute("start",String(this.__start)),this.__listType==="check"&&O.setAttribute("__lexicalListType","check")),{element:O}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...O){for(let c=0;c<O.length;c++){var g=O[c];if($(g))super.append(g);else{let N=E();P(g)||e.$isElementNode(g)&&(g=e.$createTextNode(g.getTextContent())),N.append(g),super.append(N)}}return s(this),this}extractWithChild(O){return $(O)}}function D(B,O,g){let c=[],N=[];var k=O.list;if(k!==void 0){let R=k[`${g.__tag}Depth`]||[],L=(O=i(g)-1)%R.length;var y=R[L];let z,J=k[g.__tag];if((k=k.nested)!==void 0&&k.list&&(z=k.list),J!==void 0&&c.push(J),y!==void 0)for(y=y.split(" "),c.push(...y),y=0;y<R.length;y++)y!==L&&N.push(g.__tag+y);z!==void 0&&(g=z.split(" "),1<O?c.push(...g):N.push(...g))}0<N.length&&n.removeClassNamesFromElement(B,...N),0<c.length&&n.addClassNamesToElement(B,...c)}function M(B){let O=[];for(let c=0;c<B.length;c++){var g=B[c];$(g)?(O.push(g),1<(g=g.getChildren()).length&&g.forEach(N=>{P(N)&&O.push(l(N))})):O.push(l(g))}return O}function _(B){let O=B.nodeName.toLowerCase(),g=null;return O==="ol"?g=A("number",B.start):O==="ul"&&(g=n.isHTMLElement(B)&&B.getAttribute("__lexicallisttype")==="check"?A("check"):A("bullet")),{after:M,node:g}}let I={ol:"number",ul:"bullet"};function A(B,O=1){return e.$applyNodeReplacement(new j(B,O))}function P(B){return B instanceof j}let K=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),X=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),te=e.createCommand("INSERT_CHECK_LIST_COMMAND"),Z=e.createCommand("REMOVE_LIST_COMMAND");return ht.$createListItemNode=E,ht.$createListNode=A,ht.$getListDepth=i,ht.$handleListInsertParagraph=function(){var B=e.$getSelection();if(!e.$isRangeSelection(B)||!B.isCollapsed()||!$(B=B.anchor.getNode())||B.getTextContent()!=="")return!1;var O=f(B),g=B.getParent();P(g)||a(40);let c,N=g.getParent();if(e.$isRootOrShadowRoot(N))c=e.$createParagraphNode(),O.insertAfter(c);else{if(!$(N))return!1;c=E(),N.insertAfter(c)}if(c.select(),0<(O=B.getNextSiblings()).length){let k=A(g.getListType());e.$isParagraphNode(c)?c.insertAfter(k):((g=E()).append(k),c.insertAfter(g)),O.forEach(y=>{y.remove(),k.append(y)})}return function(k){for(;k.getNextSibling()==null&&k.getPreviousSibling()==null;){let y=k.getParent();if(y==null||!$(k)&&!P(k))break;k=y}k.remove()}(B),!0},ht.$isListItemNode=$,ht.$isListNode=P,ht.INSERT_CHECK_LIST_COMMAND=te,ht.INSERT_ORDERED_LIST_COMMAND=X,ht.INSERT_UNORDERED_LIST_COMMAND=K,ht.ListItemNode=b,ht.ListNode=j,ht.REMOVE_LIST_COMMAND=Z,ht.insertList=function(B,O){B.update(()=>{var g=e.$getSelection();if(e.$isRangeSelection(g)||e.DEPRECATED_$isGridSelection(g)){var c=g.getNodes(),N=(g=g.anchor.getNode()).getParent();if(m(g,c))c=A(O),e.$isRootOrShadowRoot(N)?(g.replace(c),N=E(),e.$isElementNode(g)&&(N.setFormat(g.getFormatType()),N.setIndent(g.getIndent())),c.append(N)):$(g)&&(S(c,(g=g.getParentOrThrow()).getChildren()),g.replace(c));else for(g=new Set,N=0;N<c.length;N++){var k=c[N];if(e.$isElementNode(k)&&k.isEmpty()&&!g.has(k.getKey()))w(k,O);else if(e.$isLeafNode(k))for(k=k.getParent();k!=null;){let R=k.getKey();if(P(k)){if(!g.has(R)){var y=A(O);S(y,k.getChildren()),k.replace(y),s(y),g.add(R)}break}if(y=k.getParent(),e.$isRootOrShadowRoot(y)&&!g.has(R)){g.add(R),w(k,O);break}k=y}}}})},ht.removeList=function(B){B.update(()=>{let O=e.$getSelection();if(e.$isRangeSelection(O)){var g=new Set,c=O.getNodes(),N=O.anchor.getNode();if(m(N,c))g.add(f(N));else for(N=0;N<c.length;N++){var k=c[N];e.$isLeafNode(k)&&(k=n.$getNearestNodeOfType(k,b))!=null&&g.add(f(k))}for(let y of g){g=y,c=C(y);for(let R of c)S(c=e.$createParagraphNode(),R.getChildren()),g.insertAfter(c),g=c,R.__key===O.anchor.key&&O.anchor.set(c.getKey(),0,"element"),R.__key===O.focus.key&&O.focus.set(c.getKey(),0,"element"),R.remove();y.remove()}}})},ht}function Jr(){return ts?es:(ts=1,es=Pp())}var ns,is,os,rs,as,ss,ls,cs,ds,us,hs,ps,St=Jr(),Ve={},Pt={},Kt={},Ui={};function Ud(){return os?is:(os=1,is=function(){if(ns)return Ui;ns=1;var n=ji(),a=et();function i(o,l,m,S=null){let w=S==null||l.isSelected(),h=a.$isElementNode(l)&&l.excludeFromCopy("html");var s=l;S!==null&&(s=n.$cloneWithProperties(l),s=a.$isTextNode(s)&&S!=null?n.$sliceSelectedTextNodeContent(S,s):s);let v=a.$isElementNode(s)?s.getChildren():[],{element:b,after:T}=s.exportDOM(o);if(!b)return!1;let u=document.createDocumentFragment();for(let p=0;p<v.length;p++){let E=v[p],$=i(o,E,u,S);!w&&a.$isElementNode(l)&&$&&l.extractWithChild(E,S,"html")&&(w=!0)}return w&&!h?(b.append(u),m.append(b),T&&(o=T.call(s,b))&&b.replaceWith(o)):m.append(u),w}let f=new Set(["STYLE","SCRIPT"]);function C(o,l,m=new Map,S,w=!1){let h=[];if(f.has(o.nodeName))return h;let s=null;var{nodeName:v}=o,b=l._htmlConversions.get(v.toLowerCase());if(v=null,b!==void 0)for(T of b)(b=T(o))!==null&&(v===null||v.priority<b.priority)&&(v=b);var T=(T=v!==null?v.conversion:null)?T(o,void 0,w):null;if(v=null,T!==null){if(v=T.after,s=T.node,s!==null){for(var[,u]of m)if(s=u(s,S),!s)break;s&&h.push(s)}T.forChild!=null&&m.set(o.nodeName,T.forChild)}for(o=o.childNodes,S=[],u=0;u<o.length;u++)S.push(...C(o[u],l,new Map(m),s,w||(T&&T.preformatted)===!0));return v!=null&&(S=v(S)),s==null?h=h.concat(S):a.$isElementNode(s)&&s.append(...S),h}return Ui.$generateHtmlFromNodes=function(o,l){if(typeof document>"u"||typeof window>"u")throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let m=document.createElement("div"),S=a.$getRoot().getChildren();for(let w=0;w<S.length;w++)i(o,S[w],m,l);return m.innerHTML},Ui.$generateNodesFromDOM=function(o,l){let m=[];l=l.body?l.body.childNodes:[];for(let w=0;w<l.length;w++){var S=l[w];f.has(S.nodeName)||(S=C(S,o))!==null&&(m=m.concat(S))}return m},Ui}())}function Fp(){if(rs)return Kt;rs=1;var e=Ud(),n=ji(),a=Et(),i=et();function f(v){throw Error(`Minified Lexical error #${v}; visit https://lexical.dev/docs/error?code=${v} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function C(v){let b=i.$getSelection();if(b==null)throw Error("Expected valid LexicalSelection");return i.$isRangeSelection(b)&&b.isCollapsed()||b.getNodes().length===0?"":e.$generateHtmlFromNodes(v,b)}function o(v){let b=i.$getSelection();if(b==null)throw Error("Expected valid LexicalSelection");return i.$isRangeSelection(b)&&b.isCollapsed()||b.getNodes().length===0?null:JSON.stringify(S(v,b))}function l(v,b,T){(i.DEPRECATED_$isGridSelection(T)||a.$findMatchingParent(T.anchor.getNode(),u=>i.DEPRECATED_$isGridCellNode(u))!==null&&a.$findMatchingParent(T.focus.getNode(),u=>i.DEPRECATED_$isGridCellNode(u))!==null)&&b.length===1&&i.DEPRECATED_$isGridNode(b[0])?function(u,p,E,$){u.length===1&&i.DEPRECATED_$isGridNode(u[0])||f(42);var j=u[0];u=j.getChildren(),E=j.getFirstChildOrThrow().getChildrenSize();var D=j.getChildrenSize(),M=a.$findMatchingParent(p.anchor.getNode(),te=>i.DEPRECATED_$isGridCellNode(te));p=(j=M&&a.$findMatchingParent(M,te=>i.DEPRECATED_$isGridRowNode(te)))&&a.$findMatchingParent(j,te=>i.DEPRECATED_$isGridNode(te)),i.DEPRECATED_$isGridCellNode(M)&&i.DEPRECATED_$isGridRowNode(j)&&i.DEPRECATED_$isGridNode(p)||f(43);var _=j.getIndexWithinParent(),I=Math.min(p.getChildrenSize()-1,_+D-1);let A,P;D=M.getIndexWithinParent(),M=Math.min(j.getChildrenSize()-1,D+E-1),E=Math.min(D,M),j=Math.min(_,I),D=Math.max(D,M),_=Math.max(_,I),I=p.getChildren(),M=0;for(let te=j;te<=_;te++){var K=I[te];i.DEPRECATED_$isGridRowNode(K)||f(24);var X=u[M];i.DEPRECATED_$isGridRowNode(X)||f(24),K=K.getChildren(),X=X.getChildren();let Z=0;for(let B=E;B<=D;B++){let O=K[B];i.DEPRECATED_$isGridCellNode(O)||f(25);let g=X[Z];i.DEPRECATED_$isGridCellNode(g)||f(25),te===j&&B===E?A=O.getKey():te===_&&B===D&&(P=O.getKey());let c=O.getChildren();g.getChildren().forEach(N=>{i.$isTextNode(N)&&i.$createParagraphNode().append(N),O.append(N)}),c.forEach(N=>N.remove()),Z++}M++}A&&P&&(u=i.DEPRECATED_$createGridSelection(),u.set(p.getKey(),A,P),i.$setSelection(u),$.dispatchCommand(i.SELECTION_CHANGE_COMMAND,void 0))}(b,T,!1,v):function(u,p){let E=[],$=null;for(let j=0;j<u.length;j++){let D=u[j],M=i.$isLineBreakNode(D);if(M||i.$isDecoratorNode(D)&&D.isInline()||i.$isElementNode(D)&&D.isInline()||i.$isTextNode(D)||D.isParentRequired()){if($===null&&($=D.createParentElementNode(),E.push($),M))continue;$!==null&&$.append(D)}else E.push(D),$=null}i.$isRangeSelection(p)?p.insertNodes(E):i.DEPRECATED_$isGridSelection(p)&&(u=p.anchor.getNode(),i.DEPRECATED_$isGridCellNode(u)||f(41),u.append(...E))}(b,T)}function m(v,b,T,u=[]){let p=b==null||T.isSelected(b),E=i.$isElementNode(T)&&T.excludeFromCopy("html");var $=T;if(b!==null){var j=n.$cloneWithProperties(T);$=j=i.$isTextNode(j)&&b!=null?n.$sliceSelectedTextNodeContent(b,j):j}let D=i.$isElementNode($)?$.getChildren():[];var M=$;(j=M.exportJSON()).type!==M.constructor.getType()&&f(58);var _=j.children;for(i.$isElementNode(M)&&(Array.isArray(_)||f(59)),i.$isTextNode($)&&(0<($=$.__text).length?j.text=$:p=!1),$=0;$<D.length;$++)_=m(v,b,M=D[$],j.children),!p&&i.$isElementNode(T)&&_&&T.extractWithChild(M,b,"clone")&&(p=!0);if(p&&!E)u.push(j);else if(Array.isArray(j.children))for(v=0;v<j.children.length;v++)u.push(j.children[v]);return p}function S(v,b){let T=[],u=i.$getRoot().getChildren();for(let p=0;p<u.length;p++)m(v,b,u[p],T);return{namespace:v._config.namespace,nodes:T}}function w(v){let b=[];for(let T=0;T<v.length;T++){let u=i.$parseSerializedNode(v[T]);i.$isTextNode(u)&&n.$addNodeStyle(u),b.push(u)}return b}let h=null;function s(v,b){var T=window.getSelection();if(!T)return!1;var u=T.anchorNode;if(T=T.focusNode,u!==null&&T!==null&&!i.isSelectionWithinEditor(v,u,T)||(b.preventDefault(),b=b.clipboardData,u=i.$getSelection(),b===null||u===null))return!1;T=C(v),v=o(v);let p="";return u!==null&&(p=u.getTextContent()),T!==null&&b.setData("text/html",T),v!==null&&b.setData("application/x-lexical-editor",v),b.setData("text/plain",p),!0}return Kt.$generateJSONFromSelectedNodes=S,Kt.$generateNodesFromSerializedNodes=w,Kt.$getHtmlContent=C,Kt.$getLexicalContent=o,Kt.$insertDataTransferForPlainText=function(v,b){(v=v.getData("text/plain"))!=null&&b.insertRawText(v)},Kt.$insertDataTransferForRichText=function(v,b,T){var u=v.getData("application/x-lexical-editor");if(u)try{let E=JSON.parse(u);if(E.namespace===T._config.namespace&&Array.isArray(E.nodes))return l(T,w(E.nodes),b)}catch{}if(u=v.getData("text/html"))try{var p=new DOMParser().parseFromString(u,"text/html");return l(T,e.$generateNodesFromDOM(T,p),b)}catch{}if((v=v.getData("text/plain"))!=null)if(i.$isRangeSelection(b))for(T=(v=v.split(/\r?\n/)).length,p=0;p<T;p++)b.insertText(v[p]),p<T-1&&b.insertParagraph();else b.insertRawText(v)},Kt.$insertGeneratedNodes=l,Kt.copyToClipboard=async function(v,b){if(h!==null)return!1;if(b!==null)return new Promise(E=>{v.update(()=>{E(s(v,b))})});var T=v.getRootElement();let u=document.getSelection();if(T===null||u===null)return!1;let p=document.createElement("span");return p.style.cssText="position: fixed; top: -1000px;",p.append(document.createTextNode("#")),T.append(p),(T=new Range).setStart(p,0),T.setEnd(p,1),u.removeAllRanges(),u.addRange(T),new Promise(E=>{let $=v.registerCommand(i.COPY_COMMAND,j=>(j instanceof ClipboardEvent&&($(),h!==null&&(window.clearTimeout(h),h=null),E(s(v,j))),!0),i.COMMAND_PRIORITY_CRITICAL);h=window.setTimeout(()=>{$(),h=null,E(!1)},50),document.execCommand("copy"),p.remove()})},Kt}function Bp(){if(ls)return Pt;ls=1;var e=function(){return ss?as:(ss=1,as=Fp())}(),n=ji(),a=Et(),i=et();function f(_,I){return document.caretRangeFromPoint!==void 0?(_=document.caretRangeFromPoint(_,I))===null?null:{node:_.startContainer,offset:_.startOffset}:document.caretPositionFromPoint!=="undefined"?(_=document.caretPositionFromPoint(_,I))===null?null:{node:_.offsetNode,offset:_.offset}:null}let C=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,o=C&&"documentMode"in document?document.documentMode:null,l=!(!C||!("InputEvent"in window)||o)&&"getTargetRanges"in new window.InputEvent("input"),m=C&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),S=C&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,w=C&&/^(?=.*Chrome).*/i.test(navigator.userAgent),h=C&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!w,s=i.createCommand("DRAG_DROP_PASTE_FILE");class v extends i.ElementNode{static getType(){return"quote"}static clone(I){return new v(I.__key)}constructor(I){super(I)}createDOM(I){let A=document.createElement("blockquote");return a.addClassNamesToElement(A,I.theme.quote),A}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:E,priority:0})}}static importJSON(I){let A=b();return A.setFormat(I.format),A.setIndent(I.indent),A.setDirection(I.direction),A}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(I,A){I=i.$createParagraphNode();let P=this.getDirection();return I.setDirection(P),this.insertAfter(I,A),I}collapseAtStart(){let I=i.$createParagraphNode();return this.getChildren().forEach(A=>I.append(A)),this.replace(I),!0}}function b(){return i.$applyNodeReplacement(new v)}class T extends i.ElementNode{static getType(){return"heading"}static clone(I){return new T(I.__tag,I.__key)}constructor(I,A){super(A),this.__tag=I}getTag(){return this.__tag}createDOM(I){let A=this.__tag,P=document.createElement(A);return(I=I.theme.heading)!==void 0&&a.addClassNamesToElement(P,I[A]),P}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:p,priority:0}),h2:()=>({conversion:p,priority:0}),h3:()=>({conversion:p,priority:0}),h4:()=>({conversion:p,priority:0}),h5:()=>({conversion:p,priority:0}),h6:()=>({conversion:p,priority:0}),p:I=>(I=I.firstChild)!==null&&u(I)?{conversion:()=>({node:null}),priority:3}:null,span:I=>u(I)?{conversion:()=>({node:$("h1")}),priority:3}:null}}static importJSON(I){let A=$(I.tag);return A.setFormat(I.format),A.setIndent(I.indent),A.setDirection(I.direction),A}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(I,A=!0){I=0<(I=I?I.anchor.offset:0)&&I<this.getTextContentSize()?$(this.getTag()):i.$createParagraphNode();let P=this.getDirection();return I.setDirection(P),this.insertAfter(I,A),I}collapseAtStart(){let I=this.isEmpty()?i.$createParagraphNode():$(this.getTag());return this.getChildren().forEach(A=>I.append(A)),this.replace(I),!0}extractWithChild(){return!0}}function u(_){return _.nodeName.toLowerCase()==="span"&&_.style.fontSize==="26pt"}function p(_){let I=null;return(_=_.nodeName.toLowerCase())!=="h1"&&_!=="h2"&&_!=="h3"&&_!=="h4"&&_!=="h5"&&_!=="h6"||(I=$(_)),{node:I}}function E(){return{node:b()}}function $(_){return i.$applyNodeReplacement(new T(_))}function j(_){let I=null;if(_ instanceof DragEvent?I=_.dataTransfer:_ instanceof ClipboardEvent&&(I=_.clipboardData),I===null)return[!1,[],!1];var A=I.types;return _=A.includes("Files"),A=A.includes("text/html")||A.includes("text/plain"),[_,Array.from(I.files),A]}function D(_,I){var A=i.$getSelection();if(i.$isRangeSelection(A)){var P=new Set;A=A.getNodes();for(let K=0;K<A.length;K++){let X=A[K],te=X.getKey();if(P.has(te))continue;let Z=a.$getNearestBlockElementAncestorOrThrow(X),B=Z.getKey();Z.canInsertTab()?(_(X),P.add(te)):Z.canIndent()&&!P.has(B)&&(P.add(B),I(Z))}}}function M(_){return _=i.$getNearestNodeFromDOMNode(_),i.$isDecoratorNode(_)}return Pt.$createHeadingNode=$,Pt.$createQuoteNode=b,Pt.$isHeadingNode=function(_){return _ instanceof T},Pt.$isQuoteNode=function(_){return _ instanceof v},Pt.DRAG_DROP_PASTE=s,Pt.HeadingNode=T,Pt.QuoteNode=v,Pt.eventFiles=j,Pt.registerRichText=function(_){return a.mergeRegister(_.registerCommand(i.CLICK_COMMAND,()=>{const I=i.$getSelection();return!!i.$isNodeSelection(I)&&(I.clear(),!0)},0),_.registerCommand(i.DELETE_CHARACTER_COMMAND,I=>{const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(A.deleteCharacter(I),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.DELETE_WORD_COMMAND,I=>{const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(A.deleteWord(I),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.DELETE_LINE_COMMAND,I=>{const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(A.deleteLine(I),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.CONTROLLED_TEXT_INSERTION_COMMAND,I=>{const A=i.$getSelection();if(typeof I=="string")i.$isRangeSelection(A)?A.insertText(I):i.DEPRECATED_$isGridSelection(A);else{if(!i.$isRangeSelection(A)&&!i.DEPRECATED_$isGridSelection(A))return!1;const P=I.dataTransfer;P!=null?e.$insertDataTransferForRichText(P,A,_):i.$isRangeSelection(A)&&(I=I.data)&&A.insertText(I)}return!0},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.REMOVE_TEXT_COMMAND,()=>{const I=i.$getSelection();return!!i.$isRangeSelection(I)&&(I.removeText(),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.FORMAT_TEXT_COMMAND,I=>{const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(A.formatText(I),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.FORMAT_ELEMENT_COMMAND,I=>{var A=i.$getSelection();if(!i.$isRangeSelection(A)&&!i.$isNodeSelection(A))return!1;A=A.getNodes();for(const P of A)a.$getNearestBlockElementAncestorOrThrow(P).setFormat(I);return!0},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.INSERT_LINE_BREAK_COMMAND,I=>{const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(A.insertLineBreak(I),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.INSERT_PARAGRAPH_COMMAND,()=>{const I=i.$getSelection();return!!i.$isRangeSelection(I)&&(I.insertParagraph(),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.INDENT_CONTENT_COMMAND,()=>(D(()=>{_.dispatchCommand(i.CONTROLLED_TEXT_INSERTION_COMMAND," ")},I=>{const A=I.getIndent();A!==10&&I.setIndent(A+1)}),!0),i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.OUTDENT_CONTENT_COMMAND,()=>(D(I=>{i.$isTextNode(I)&&(I=I.getTextContent())[I.length-1]===" "&&_.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!0)},I=>{const A=I.getIndent();A!==0&&I.setIndent(A-1)}),!0),i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ARROW_UP_COMMAND,I=>{var A=i.$getSelection();if(i.$isNodeSelection(A)&&!M(I.target)){if(0<(I=A.getNodes()).length)return I[0].selectPrevious(),!0}else if(i.$isRangeSelection(A)){if(A=i.$getAdjacentNode(A.focus,!0),i.$isDecoratorNode(A)&&!A.isIsolated()&&!A.isInline())return A.selectPrevious(),I.preventDefault(),!0;if(i.$isElementNode(A)&&!A.isInline()&&!A.canBeEmpty())return A.select(),I.preventDefault(),!0}return!1},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ARROW_DOWN_COMMAND,I=>{var A=i.$getSelection();if(i.$isNodeSelection(A)){if(0<(I=A.getNodes()).length)return I[0].selectNext(0,0),!0}else if(i.$isRangeSelection(A)){let P=A.focus;if(P.key==="root"&&P.offset===i.$getRoot().getChildrenSize())return I.preventDefault(),!0;if(A=i.$getAdjacentNode(A.focus,!1),i.$isDecoratorNode(A)&&!A.isIsolated()&&!A.isInline())return A.selectNext(),I.preventDefault(),!0}return!1},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ARROW_LEFT_COMMAND,I=>{const A=i.$getSelection();if(i.$isNodeSelection(A)){var P=A.getNodes();if(0<P.length)return I.preventDefault(),P[0].selectPrevious(),!0}return!!i.$isRangeSelection(A)&&!!n.$shouldOverrideDefaultCharacterSelection(A,!0)&&(P=I.shiftKey,I.preventDefault(),n.$moveCharacter(A,P,!0),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ARROW_RIGHT_COMMAND,I=>{const A=i.$getSelection();if(i.$isNodeSelection(A)&&!M(I.target)){var P=A.getNodes();if(0<P.length)return I.preventDefault(),P[0].selectNext(0,0),!0}return!!i.$isRangeSelection(A)&&(P=I.shiftKey,!!n.$shouldOverrideDefaultCharacterSelection(A,!1)&&(I.preventDefault(),n.$moveCharacter(A,P,!1),!0))},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_BACKSPACE_COMMAND,I=>{if(M(I.target))return!1;const A=i.$getSelection();if(!i.$isRangeSelection(A))return!1;I.preventDefault(),{anchor:I}=A;const P=I.getNode();return A.isCollapsed()&&I.offset===0&&!i.$isRootNode(P)&&0<a.$getNearestBlockElementAncestorOrThrow(P).getIndent()?_.dispatchCommand(i.OUTDENT_CONTENT_COMMAND,void 0):_.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_DELETE_COMMAND,I=>{if(M(I.target))return!1;const A=i.$getSelection();return!!i.$isRangeSelection(A)&&(I.preventDefault(),_.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!1))},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ENTER_COMMAND,I=>{const A=i.$getSelection();if(!i.$isRangeSelection(A))return!1;if(I!==null){if((S||m||h)&&l)return!1;if(I.preventDefault(),I.shiftKey)return _.dispatchCommand(i.INSERT_LINE_BREAK_COMMAND,!1)}return _.dispatchCommand(i.INSERT_PARAGRAPH_COMMAND,void 0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.KEY_ESCAPE_COMMAND,()=>{const I=i.$getSelection();return!!i.$isRangeSelection(I)&&(_.blur(),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.DROP_COMMAND,I=>{const[,A]=j(I);if(0<A.length){var P=f(I.clientX,I.clientY);if(P!==null){const{offset:X,node:te}=P;var K=i.$getNearestNodeFromDOMNode(te);if(K!==null){if(P=i.$createRangeSelection(),i.$isTextNode(K))P.anchor.set(K.getKey(),X,"text"),P.focus.set(K.getKey(),X,"text");else{const Z=K.getParentOrThrow().getKey();K=K.getIndexWithinParent()+1,P.anchor.set(Z,K,"element"),P.focus.set(Z,K,"element")}P=i.$normalizeSelection__EXPERIMENTAL(P),i.$setSelection(P)}_.dispatchCommand(s,A)}return I.preventDefault(),!0}return I=i.$getSelection(),!!i.$isRangeSelection(I)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.DRAGSTART_COMMAND,I=>{[I]=j(I);const A=i.$getSelection();return!(I&&!i.$isRangeSelection(A))},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.DRAGOVER_COMMAND,I=>{var[A]=j(I);const P=i.$getSelection();return!(A&&!i.$isRangeSelection(P))&&((A=f(I.clientX,I.clientY))!==null&&(A=i.$getNearestNodeFromDOMNode(A.node),i.$isDecoratorNode(A)&&I.preventDefault()),!0)},i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.COPY_COMMAND,I=>(e.copyToClipboard(_,I instanceof ClipboardEvent?I:null),!0),i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.CUT_COMMAND,I=>(async function(A,P){await e.copyToClipboard(P,A instanceof ClipboardEvent?A:null),P.update(()=>{let K=i.$getSelection();i.$isRangeSelection(K)?K.removeText():i.$isNodeSelection(K)&&K.getNodes().forEach(X=>X.remove())})}(I,_),!0),i.COMMAND_PRIORITY_EDITOR),_.registerCommand(i.PASTE_COMMAND,I=>{const[,A,P]=j(I);if(0<A.length&&!P)return _.dispatchCommand(s,A),!0;if(i.isSelectionCapturedInDecoratorInput(I.target))return!1;const K=i.$getSelection();return!(!i.$isRangeSelection(K)&&!i.DEPRECATED_$isGridSelection(K))&&(function(X,te){X.preventDefault(),te.update(()=>{let Z=i.$getSelection(),B=X instanceof InputEvent||X instanceof KeyboardEvent?null:X.clipboardData;B!=null&&(i.$isRangeSelection(Z)||i.DEPRECATED_$isGridSelection(Z))&&e.$insertDataTransferForRichText(B,Z,te)},{tag:"paste"})}(I,_),!0)},i.COMMAND_PRIORITY_EDITOR))},Pt}function Zr(){return ds?cs:(ds=1,cs=Bp())}function zp(){if(us)return Ve;us=1;var e=et(),n=Hd(),a=Jr(),i=Zr(),f=Et(),C=No();function o(F,Y){let Q={};for(let ne of F)Q[F=Y(ne)]?Q[F].push(ne):Q[F]=[ne];return Q}function l(F){return{element:(F=o(F,Y=>Y.type)).element||[],textFormat:F["text-format"]||[],textMatch:F["text-match"]||[]}}let m=/[!-/:-@[-`{-~\s]/;function S(F,Y,Q,ne){for(let oe of Y)if((Y=oe.export(F,ie=>w(ie,Q,ne)))!=null)return Y;return e.$isElementNode(F)?w(F,Q,ne):e.$isDecoratorNode(F)?F.getTextContent():null}function w(F,Y,Q){let ne=[];F=F.getChildren();e:for(let oe of F){for(let ie of Q)if((F=ie.export(oe,de=>w(de,Y,Q),(de,he)=>h(de,he,Y)))!=null){ne.push(F);continue e}e.$isLineBreakNode(oe)?ne.push(`
9
+ `):e.$isTextNode(oe)?ne.push(h(oe,oe.getTextContent(),Y)):e.$isElementNode(oe)?ne.push(w(oe,Y,Q)):e.$isDecoratorNode(oe)&&ne.push(oe.getTextContent())}return ne.join("")}function h(F,Y,Q){let ne=Y.trim(),oe=ne,ie=new Set;for(let he of Q){Q=he.format[0];let ue=he.tag;if(v(F,Q)&&!ie.has(Q)){ie.add(Q);var de=s(F,!0);v(de,Q)||(oe=ue+oe),v(de=s(F,!1),Q)||(oe+=ue)}}return Y.replace(ne,oe)}function s(F,Y){let Q=Y?F.getPreviousSibling():F.getNextSibling();for(Q||(F=F.getParentOrThrow()).isInline()&&(Q=Y?F.getPreviousSibling():F.getNextSibling());Q;){if(e.$isElementNode(Q)){if(!Q.isInline())break;if(F=Y?Q.getLastDescendant():Q.getFirstDescendant(),e.$isTextNode(F))return F;Q=Y?Q.getPreviousSibling():Q.getNextSibling()}if(e.$isTextNode(Q))return Q;if(!e.$isElementNode(Q))break}return null}function v(F,Y){return e.$isTextNode(F)&&F.hasFormat(Y)}let b=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,T=b&&"documentMode"in document?document.documentMode:null;b&&"InputEvent"in window&&!T&&new window.InputEvent("input");let u=b&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),p=b&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,E=b&&/^(?=.*Chrome).*/i.test(navigator.userAgent),$=b&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!E,j=/^\s{0,3}$/,D=/^```(\w{1,10})?\s?$/;function M(F){let Y=l(F),Q=function(ne){let oe={},ie={},de=[];for(let he of ne){({tag:ne}=he),oe[ne]=he;let ue=ne.replace(/(\*|\^|\+)/g,"\\$1");de.push(ue),ie[ne]=u||p||$?new RegExp(`(${ue})(?![${ue}\\s])(.*?[^${ue}\\s])${ue}(?!${ue})`):new RegExp(`(?<![\\\\${ue}])(${ue})((\\\\${ue})?.*?[^${ue}\\s](\\\\${ue})?)((?<!\\\\)|(?<=\\\\\\\\))(${ue})(?![\\\\${ue}])`)}return{fullMatchRegExpByTag:ie,openTagsRegExp:new RegExp((u||p||$?"":"(?<![\\\\])")+"("+de.join("|")+")","g"),transformersByTag:oe}}(Y.textFormat);return(ne,oe)=>{var ie=(ne=ne.split(`
10
+ `)).length;(oe=oe||e.$getRoot()).clear();for(let ye=0;ye<ie;ye++){var de=ne[ye];e:{var he=ne,ue=ye,Ce=oe,be=he[ue].match(D);if(be){for(var fe=ue,le=he.length;++fe<le;)if(he[fe].match(D)){be=n.$createCodeNode(be[1]),he=e.$createTextNode(he.slice(ue+1,fe).join(`
11
+ `)),be.append(he),Ce.append(be),Ce=[be,fe];break e}}Ce=[null,ue]}let[pe,ce]=Ce;if(pe!=null)ye=ce;else{Ce=de,le=oe;var _e=Y.element;fe=Q,he=Y.textMatch,ue=Ce.trim(),be=e.$createTextNode(ue),(de=e.$createParagraphNode()).append(be),le.append(de);for(let{regExp:me,replace:Ee}of _e)if(le=Ce.match(me)){be.setTextContent(Ce.slice(le[0].length)),Ee(de,[be],le,!0);break}_(be,fe,he),de.isAttached()&&0<ue.length&&(Ce=de.getPreviousSibling(),e.$isParagraphNode(Ce)||i.$isQuoteNode(Ce)||a.$isListNode(Ce))&&(fe=Ce,a.$isListNode(Ce)&&(fe=(Ce=Ce.getLastDescendant())==null?null:f.$findMatchingParent(Ce,a.$isListItemNode)),fe!=null&&0<fe.getTextContentSize()&&(fe.splice(fe.getChildrenSize(),0,[e.$createLineBreakNode(),...de.getChildren()]),de.remove()))}}ne=oe.getChildren();for(let ye of ne)ne=ye,e.$isParagraphNode(ne)?(ie=ne.getFirstChild(),ne=ie==null||ne.getChildrenSize()===1&&e.$isTextNode(ie)&&j.test(ie.getTextContent())):ne=!1,ne&&ye.remove();e.$getSelection()!==null&&oe.selectEnd()}}function _(F,Y,Q){var ne=F.getTextContent();let oe=function(ue,Ce){var be=ue.match(Ce.openTagsRegExp);if(be==null)return null;for(let _e of be){var fe=_e.replace(/^\s/,"");if((be=Ce.fullMatchRegExpByTag[fe])!=null&&(be=ue.match(be),fe=Ce.transformersByTag[fe],be!=null&&fe!=null)){if(fe.intraword!==!1)return be;var{index:le=0}=be;if(fe=ue[le-1],le=ue[le+be[0].length],!(fe&&!m.test(fe)||le&&!m.test(le)))return be}}return null}(ne,Y);if(oe){var ie,de;if(oe[0]===ne)var he=F;else{let ue=(ne=oe.index||0)+oe[0].length;ne===0?[he,ie]=F.splitText(ue):[de,he,ie]=F.splitText(ne,ue)}if(he.setTextContent(oe[2]),F=Y.transformersByTag[oe[1]])for(let ue of F.format)he.hasFormat(ue)||he.toggleFormat(ue);he.hasFormat("code")||_(he,Y,Q),de&&_(de,Y,Q),ie&&_(ie,Y,Q)}else I(F,Q)}function I(F,Y){e:for(;F;){for(let Q of Y){let ne=F.getTextContent().match(Q.importRegExp);if(!ne)continue;let oe,ie,de,he=ne.index||0,ue=he+ne[0].length;he===0?[oe,F]=F.splitText(ue):[ie,oe,de]=F.splitText(he,ue),ie&&I(ie,Y),de&&(F=de),Q.replace(oe,ne);continue e}break}}function A(F,Y,Q){let ne=Q.length;for(;Y>=ne;Y--){let oe=Y-ne;if(P(F,oe,Q,0,ne)&&F[oe+ne]!==" ")return oe}return-1}function P(F,Y,Q,ne,oe){for(let ie=0;ie<oe;ie++)if(F[Y+ie]!==Q[ne+ie])return!1;return!0}let K=F=>(Y,Q,ne)=>{(ne=F(ne)).append(...Q),Y.replace(ne),ne.select(0,0)},X=F=>(Y,Q,ne)=>{var oe=Y.getPreviousSibling();const ie=a.$createListItemNode(F==="check"?ne[3]==="x":void 0);a.$isListNode(oe)&&oe.getListType()===F?(oe.append(ie),Y.remove()):((oe=a.$createListNode(F,F==="number"?Number(ne[2]):void 0)).append(ie),Y.replace(oe)),ie.append(...Q),ie.select(0,0),(Y=Math.floor(ne[1].length/4))&&ie.setIndent(Y)},te=(F,Y,Q)=>{const ne=[];var oe=F.getChildren();let ie=0;for(const he of oe)if(a.$isListItemNode(he)){if(he.getChildrenSize()===1&&(oe=he.getFirstChild(),a.$isListNode(oe))){ne.push(te(oe,Y,Q+1));continue}oe=" ".repeat(4*Q);var de=F.getListType();de=de==="number"?`${F.getStart()+ie}. `:de==="check"?`- [${he.getChecked()?"x":" "}] `:"- ",ne.push(oe+de+Y(he)),ie++}return ne.join(`
12
+ `)},Z={dependencies:[i.HeadingNode],export:(F,Y)=>{if(!i.$isHeadingNode(F))return null;const Q=Number(F.getTag().slice(1));return"#".repeat(Q)+" "+Y(F)},regExp:/^(#{1,6})\s/,replace:K(F=>i.$createHeadingNode("h"+F[1].length)),type:"element"},B={dependencies:[i.QuoteNode],export:(F,Y)=>{if(!i.$isQuoteNode(F))return null;F=Y(F).split(`
13
+ `),Y=[];for(const Q of F)Y.push("> "+Q);return Y.join(`
14
+ `)},regExp:/^>\s/,replace:(F,Y,Q,ne)=>{if(ne&&(Q=F.getPreviousSibling(),i.$isQuoteNode(Q)))return Q.splice(Q.getChildrenSize(),0,[e.$createLineBreakNode(),...Y]),Q.select(0,0),void F.remove();(Q=i.$createQuoteNode()).append(...Y),F.replace(Q),Q.select(0,0)},type:"element"},O={dependencies:[n.CodeNode],export:F=>{if(!n.$isCodeNode(F))return null;const Y=F.getTextContent();return"```"+(F.getLanguage()||"")+(Y?`
15
+ `+Y:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:K(F=>n.$createCodeNode(F?F[1]:void 0)),type:"element"},g={dependencies:[a.ListNode,a.ListItemNode],export:(F,Y)=>a.$isListNode(F)?te(F,Y,0):null,regExp:/^(\s*)[-*+]\s/,replace:X("bullet"),type:"element"},c={dependencies:[a.ListNode,a.ListItemNode],export:(F,Y)=>a.$isListNode(F)?te(F,Y,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:X("check"),type:"element"},N={dependencies:[a.ListNode,a.ListItemNode],export:(F,Y)=>a.$isListNode(F)?te(F,Y,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:X("number"),type:"element"},k={format:["code"],tag:"`",type:"text-format"},y={format:["highlight"],tag:"==",type:"text-format"},R={format:["bold","italic"],tag:"***",type:"text-format"},L={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},z={format:["bold"],tag:"**",type:"text-format"},J={format:["bold"],intraword:!1,tag:"__",type:"text-format"},ee={format:["strikethrough"],tag:"~~",type:"text-format"},U={format:["italic"],tag:"*",type:"text-format"},H={format:["italic"],intraword:!1,tag:"_",type:"text-format"},V={dependencies:[C.LinkNode],export:(F,Y,Q)=>{if(!C.$isLinkNode(F))return null;Y=(Y=F.getTitle())?`[${F.getTextContent()}](${F.getURL()} "${Y}")`:`[${F.getTextContent()}](${F.getURL()})`;const ne=F.getFirstChild();return F.getChildrenSize()===1&&e.$isTextNode(ne)?Q(ne,Y):Y},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(F,Y)=>{const[,Q,ne,oe]=Y;Y=C.$createLinkNode(ne,{title:oe});const ie=e.$createTextNode(Q);ie.setFormat(F.getFormat()),Y.append(ie),F.replace(Y)},trigger:")",type:"text-match"},G=[Z,B,O,g,N],ae=[k,R,L,z,J,y,U,H,ee],se=[V],q=[...G,...ae,...se];return Ve.$convertFromMarkdownString=function(F,Y=q,Q){return M(Y)(F,Q)},Ve.$convertToMarkdownString=function(F=q,Y){return function(Q){let ne=l(Q),oe=ne.textFormat.filter(ie=>ie.format.length===1);return ie=>{let de=[];ie=(ie||e.$getRoot()).getChildren();for(let he of ie)(ie=S(he,ne.element,oe,ne.textMatch))!=null&&de.push(ie);return de.join(`
16
+
17
+ `)}}(F)(Y)},Ve.BOLD_ITALIC_STAR=R,Ve.BOLD_ITALIC_UNDERSCORE=L,Ve.BOLD_STAR=z,Ve.BOLD_UNDERSCORE=J,Ve.CHECK_LIST=c,Ve.CODE=O,Ve.ELEMENT_TRANSFORMERS=G,Ve.HEADING=Z,Ve.HIGHLIGHT=y,Ve.INLINE_CODE=k,Ve.ITALIC_STAR=U,Ve.ITALIC_UNDERSCORE=H,Ve.LINK=V,Ve.ORDERED_LIST=N,Ve.QUOTE=B,Ve.STRIKETHROUGH=ee,Ve.TEXT_FORMAT_TRANSFORMERS=ae,Ve.TEXT_MATCH_TRANSFORMERS=se,Ve.TRANSFORMERS=q,Ve.UNORDERED_LIST=g,Ve.registerMarkdownShortcuts=function(F,Y=q){let Q=l(Y),ne=o(Q.textFormat,({tag:ie})=>ie[ie.length-1]),oe=o(Q.textMatch,({trigger:ie})=>ie);for(let ie of Y)if(((Y=ie.type)==="element"||Y==="text-match")&&!F.hasNodes(ie.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return F.registerUpdateListener(({tags:ie,dirtyLeaves:de,editorState:he,prevEditorState:ue})=>{if(!ie.has("historic")){var Ce=he.read(e.$getSelection);if(ie=ue.read(e.$getSelection),e.$isRangeSelection(ie)&&e.$isRangeSelection(Ce)&&Ce.isCollapsed()){ue=Ce.anchor.key;var be=Ce.anchor.offset,fe=he._nodeMap.get(ue);e.$isTextNode(fe)&&de.has(ue)&&(be===1||be===ie.anchor.offset+1)&&F.update(()=>{if(!fe.hasFormat("code")){var le=fe.getParent();if(le!==null&&!n.$isCodeNode(le)){var _e=Ce.anchor.offset;e:{var ye=Q.element,pe=le.getParent();if(e.$isRootOrShadowRoot(pe)&&le.getFirstChild()===fe&&(pe=fe.getTextContent())[_e-1]===" "){for(let{regExp:We,replace:ct}of ye)if((ye=pe.match(We))&&ye[0].length===_e){pe=fe.getNextSiblings();let[Oe,rt]=fe.splitText(_e);Oe.remove(),ct(le,pe=rt?[rt,...pe]:pe,ye,!1),le=!0;break e}}le=!1}if(!le){e:{if(ye=fe.getTextContent(),(le=oe[ye[_e-1]])!=null){for(me of(_e<ye.length&&(ye=ye.slice(0,_e)),le))if((le=ye.match(me.regExp))!==null){pe=(ye=le.index||0)+le[0].length;var ce=void 0;ye===0?[ce]=fe.splitText(pe):[,ce]=fe.splitText(ye,pe),ce.selectNext(0,0),me.replace(ce,le);var me=!0;break e}}me=!1}if(!me)e:{var Ee=(pe=fe.getTextContent())[--_e];if(me=ne[Ee])for(let We of me){var{tag:Le}=We;let ct=_e-(me=Le.length)+1;if(!(1<me&&!P(pe,ct,Le,0,me)||pe[ct-1]===" ")&&(ce=pe[_e+1],We.intraword!==!1||!ce||m.test(ce))){le=ce=fe,ye=A(pe,ct,Le);for(var De=le;0>ye&&(De=De.getPreviousSibling())&&!e.$isLineBreakNode(De);)e.$isTextNode(De)&&(ye=De.getTextContent(),le=De,ye=A(ye,ye.length,Le));if(!(0>ye||le===ce&&ye+me===ct||(Le=le.getTextContent(),0<ye&&Le[ye-1]===Ee||(De=Le[ye-1],We.intraword===!1&&De&&!m.test(De))))){pe=(pe=ce.getTextContent()).slice(0,ct)+pe.slice(_e+1),ce.setTextContent(pe),pe=le===ce?pe:Le,le.setTextContent(pe.slice(0,ye)+pe.slice(ye+me)),pe=e.$getSelection(),Ee=e.$createRangeSelection(),e.$setSelection(Ee),_e=_e-me*(le===ce?2:1)+1,Ee.anchor.set(le.__key,ye,"text"),Ee.focus.set(ce.__key,_e,"text");for(let Oe of We.format)Ee.hasFormat(Oe)||Ee.formatText(Oe);Ee.anchor.set(Ee.focus.key,Ee.focus.offset,Ee.focus.type);for(let Oe of We.format)Ee.hasFormat(Oe)&&Ee.toggleFormat(Oe);e.$isRangeSelection(pe)&&(Ee.format=pe.format);break e}}}}}}}})}}})},Ve}function Vd(){return ps?hs:(ps=1,hs=zp())}var gs,ms,fs,xs,ys,Cs,Hp=Vd(),Oo={},li={};function Rt(){return fs?ms:(fs=1,ms=function(){if(gs)return li;gs=1;var n=$t();let a=n.createContext(null);return li.LexicalComposerContext=a,li.createLexicalComposerContext=function(i,f){let C=null;return i!=null&&(C=i[1]),{getTheme:function(){return f??(C!=null?C.getTheme():null)}}},li.useLexicalComposerContext=function(){let i=n.useContext(a);if(i==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return i},li}())}var bs,ws,vs,Up=function(){return Cs?ys:(Cs=1,ys=function(){if(xs)return Oo;xs=1;var n=Rt(),a=$t();return Oo.AutoFocusPlugin=function({defaultSelection:i}){let[f]=n.useLexicalComposerContext();return a.useEffect(()=>{f.focus(()=>{let C=document.activeElement,o=f.getRootElement();o===null||C!==null&&o.contains(C)||o.focus({preventScroll:!0})},{defaultSelection:i})},[i,f]),null},Oo}())}(),Mo={};function Vp(){if(bs)return Mo;bs=1;var e=Rt(),n=et(),a=$t();let i=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;var f=i?a.useLayoutEffect:a.useEffect;let C={tag:"history-merge"};return Mo.LexicalComposer=function({initialConfig:o,children:l}){let m=a.useMemo(()=>{const{theme:S,namespace:w,editor__DEPRECATED:h,nodes:s,onError:v,editorState:b}=o,T=e.createLexicalComposerContext(null,S);let u=h||null;if(u===null){const p=n.createEditor({editable:o.editable,namespace:w,nodes:s,onError:E=>v(E,p),theme:S});(function(E,$){if($!==null){if($===void 0)E.update(()=>{var j=n.$getRoot();if(j.isEmpty()){let D=n.$createParagraphNode();j.append(D),j=i?document.activeElement:null,(n.$getSelection()!==null||j!==null&&j===E.getRootElement())&&D.select()}},C);else if($!==null)switch(typeof $){case"string":let j=E.parseEditorState($);E.setEditorState(j,C);break;case"object":E.setEditorState($,C);break;case"function":E.update(()=>{n.$getRoot().isEmpty()&&$(E)},C)}}})(p,b),u=p}return[u,T]},[]);return f(()=>{let S=o.editable,[w]=m;w.setEditable(S===void 0||S)},[]),a.createElement(e.LexicalComposerContext.Provider,{value:m},l)},Mo}var Ss,ks,$s,Wp=function(){return vs?ws:(vs=1,ws=Vp())}(),Po={},Es,Ts,js,Ns,Kp=function(){return $s?ks:($s=1,ks=function(){if(Ss)return Po;Ss=1;var n=Rt(),a=$t(),i=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?a.useLayoutEffect:a.useEffect;return Po.ContentEditable=function({ariaActiveDescendant:f,ariaAutoComplete:C,ariaControls:o,ariaDescribedBy:l,ariaExpanded:m,ariaLabel:S,ariaLabelledBy:w,ariaMultiline:h,ariaOwns:s,ariaRequired:v,autoCapitalize:b,className:T,id:u,role:p="textbox",spellCheck:E=!0,style:$,tabIndex:j,"data-testid":D}){let[M]=n.useLexicalComposerContext(),[_,I]=a.useState(!1),A=a.useCallback(P=>{M.setRootElement(P)},[M]);return i(()=>(I(M.isEditable()),M.registerEditableListener(P=>{I(P)})),[M]),a.createElement("div",{"aria-activedescendant":_?f:void 0,"aria-autocomplete":_?C:"none","aria-controls":_?o:void 0,"aria-describedby":l,"aria-expanded":_&&p==="combobox"?!!m:void 0,"aria-label":S,"aria-labelledby":w,"aria-multiline":h,"aria-owns":_?s:void 0,"aria-required":v,autoCapitalize:b,className:T,contentEditable:_,"data-testid":D,id:u,ref:A,role:_?p:void 0,spellCheck:E,style:$,tabIndex:j})},Po}())}();function Gp(){if(Ts)return Es;Ts=1;var e=$t();function n(f,C){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o})(f,C)}var a={error:null},i=function(f){function C(){for(var l,m=arguments.length,S=Array(m),w=0;w<m;w++)S[w]=arguments[w];return(l=f.call.apply(f,[this].concat(S))||this).state=a,l.resetErrorBoundary=function(){for(var h,s=arguments.length,v=Array(s),b=0;b<s;b++)v[b]=arguments[b];l.props.onReset==null||(h=l.props).onReset.apply(h,v),l.reset()},l}(function(l,m){l.prototype=Object.create(m.prototype),l.prototype.constructor=l,n(l,m)})(C,f),C.getDerivedStateFromError=function(l){return{error:l}};var o=C.prototype;return o.reset=function(){this.setState(a)},o.componentDidCatch=function(l,m){var S,w;(S=(w=this.props).onError)==null||S.call(w,l,m)},o.componentDidUpdate=function(l,m){var S,w,h=this.props.resetKeys;this.state.error!==null&&m.error!==null&&function(s,v){return s===void 0&&(s=[]),v===void 0&&(v=[]),s.length!==v.length||s.some(function(b,T){return!Object.is(b,v[T])})}(l.resetKeys,h)&&((S=(w=this.props).onResetKeysChange)==null||S.call(w,l.resetKeys,h),this.reset())},o.render=function(){var l=this.state.error,m=this.props,S=m.fallbackRender,w=m.FallbackComponent;if(m=m.fallback,l!==null){if(l={error:l,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(m))return m;if(typeof S=="function")return S(l);if(w)return e.createElement(w,l);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},C}(e.Component);return Es=function({children:f,onError:C}){return e.createElement(i,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:C},f)}}const Yp=ap(function(){return Ns?js:(Ns=1,js=Gp())}());var _s,Is,Rs,As,Ls,Ds,Vi={},Wi={};function qp(){if(_s)return Wi;_s=1;var e=Et(),n=et();function a(i,f){let C=Date.now(),o=0;return(l,m,S,w,h,s)=>{let v=Date.now();if(s.has("historic"))return o=0,C=v,2;let b=function(u,p,E,$,j){if(u===null||E.size===0&&$.size===0&&!j)return 0;var D=p._selection,M=u._selection;if(j)return 1;if(!(n.$isRangeSelection(D)&&n.$isRangeSelection(M)&&M.isCollapsed()&&D.isCollapsed()))return 0;j=p._nodeMap;let _=[];for(let I of E)(E=j.get(I))!==void 0&&_.push(E);for(let[I,A]of $)A&&(($=j.get(I))===void 0||n.$isRootNode($)||_.push($));return _.length===0?0:1<_.length?(p=($=p._nodeMap).get(D.anchor.key),M=$.get(M.anchor.key),p&&M&&!u._nodeMap.has(p.__key)&&n.$isTextNode(p)&&p.__text.length===1&&D.anchor.offset===1?2:0):(p=_[0],u=u._nodeMap.get(p.__key),n.$isTextNode(u)&&n.$isTextNode(p)&&u.__mode===p.__mode?(u=u.__text)===(p=p.__text)?0:(D=D.anchor,M=M.anchor,D.key!==M.key||D.type!=="text"?0:(D=D.offset,M=M.offset,(u=p.length-u.length)==1&&M===D-1?2:u===-1&&M===D+1?3:u===-1&&M===D?4:0)):0)}(l,m,w,h,i.isComposing()),T=(()=>{var u=S===null||S.editor===i,p=s.has("history-push");if(!p&&u&&s.has("history-merge"))return 0;if(l===null)return 1;var E=m._selection;if(!(0<w.size||0<h.size))return E!==null?0:2;if(p===!1&&b!==0&&b===o&&v<C+f&&u)return 0;if(w.size===1){{p=Array.from(w)[0],u=l._nodeMap.get(p),p=m._nodeMap.get(p),E=l._selection;let $=m._selection,j=!1;n.$isRangeSelection(E)&&n.$isRangeSelection($)&&(j=E.anchor.type==="element"&&E.focus.type==="element"&&$.anchor.type==="text"&&$.focus.type==="text"),u=!(j||!n.$isTextNode(u)||!n.$isTextNode(p))&&u.__type===p.__type&&u.__text===p.__text&&u.__mode===p.__mode&&u.__detail===p.__detail&&u.__style===p.__style&&u.__format===p.__format&&u.__parent===p.__parent}if(u)return 0}return 1})();return C=v,o=b,T}}return Wi.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Wi.registerHistory=function(i,f,C){let o=a(i,C);C=({editorState:S,prevEditorState:w,dirtyLeaves:h,dirtyElements:s,tags:v})=>{const b=f.current,T=f.redoStack,u=f.undoStack,p=b===null?null:b.editorState;if(b===null||S!==p){if((h=o(w,S,b,h,s,v))===1)T.length!==0&&(f.redoStack=[],i.dispatchCommand(n.CAN_REDO_COMMAND,!1)),b!==null&&(u.push({...b,undoSelection:w.read(n.$getSelection)}),i.dispatchCommand(n.CAN_UNDO_COMMAND,!0));else if(h===2)return;f.current={editor:i,editorState:S}}};let l=e.mergeRegister(i.registerCommand(n.UNDO_COMMAND,()=>{let S=f.redoStack,w=f.undoStack;if(w.length!==0){let h=f.current,s=w.pop();h!==null&&(S.push(h),i.dispatchCommand(n.CAN_REDO_COMMAND,!0)),w.length===0&&i.dispatchCommand(n.CAN_UNDO_COMMAND,!1),f.current=s||null,s&&s.editor.setEditorState(s.editorState.clone(s.undoSelection),{tag:"historic"})}return!0},n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.REDO_COMMAND,()=>{let S=f.redoStack;var w=f.undoStack;if(S.length!==0){let h=f.current;h!==null&&(w.push(h),i.dispatchCommand(n.CAN_UNDO_COMMAND,!0)),w=S.pop(),S.length===0&&i.dispatchCommand(n.CAN_REDO_COMMAND,!1),f.current=w||null,w&&w.editor.setEditorState(w.editorState,{tag:"historic"})}return!0},n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.CLEAR_EDITOR_COMMAND,()=>(f.undoStack=[],f.redoStack=[],f.current=null,!1),n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.CLEAR_HISTORY_COMMAND,()=>(f.undoStack=[],f.redoStack=[],f.current=null,i.dispatchCommand(n.CAN_REDO_COMMAND,!1),i.dispatchCommand(n.CAN_UNDO_COMMAND,!1),!0),n.COMMAND_PRIORITY_EDITOR),i.registerUpdateListener(C)),m=i.registerUpdateListener(C);return()=>{l(),m()}},Wi}function Jp(){if(As)return Vi;As=1;var e=Rt(),n=function(){return Rs?Is:(Rs=1,Is=qp())}(),a=$t();return Vi.createEmptyHistoryState=n.createEmptyHistoryState,Vi.HistoryPlugin=function({externalHistoryState:i}){let[f]=e.useLexicalComposerContext();return function(C,o,l=1e3){let m=a.useMemo(()=>o||n.createEmptyHistoryState(),[o]);a.useEffect(()=>n.registerHistory(C,m,l),[l,C,m])}(f,i),null},Vi}var Os,Ms,Ps,Zp=function(){return Ds?Ls:(Ds=1,Ls=Jp())}(),Fo={},Fs,Bs,zs,Qp=function(){return Ps?Ms:(Ps=1,Ms=function(){if(Os)return Fo;Os=1;var n=No(),a=Rt(),i=Et(),f=et(),C=$t();return Fo.LinkPlugin=function({validateUrl:o}){let[l]=a.useLexicalComposerContext();return C.useEffect(()=>{if(!l.hasNodes([n.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return i.mergeRegister(l.registerCommand(n.TOGGLE_LINK_COMMAND,m=>{if(m===null)return n.toggleLink(m),!0;if(typeof m=="string")return!(o!==void 0&&!o(m)||(n.toggleLink(m),0));let{url:S,target:w,rel:h,title:s}=m;return n.toggleLink(S,{rel:h,target:w,title:s}),!0},f.COMMAND_PRIORITY_LOW),o!==void 0?l.registerCommand(f.PASTE_COMMAND,m=>{let S=f.$getSelection();if(!f.$isRangeSelection(S)||S.isCollapsed()||!(m instanceof ClipboardEvent)||m.clipboardData==null)return!1;let w=m.clipboardData.getData("text");return!!o(w)&&!S.getNodes().some(h=>f.$isElementNode(h))&&(l.dispatchCommand(n.TOGGLE_LINK_COMMAND,w),m.preventDefault(),!0)},f.COMMAND_PRIORITY_LOW):()=>{})},[l,o]),null},Fo}())}(),Bo={};function Xp(){if(Fs)return Bo;Fs=1;var e=Jr(),n=Rt(),a=$t(),i=Et(),f=et();return Bo.ListPlugin=function(){let[C]=n.useLexicalComposerContext();return a.useEffect(()=>{if(!C.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[C]),function(o){a.useEffect(()=>i.mergeRegister(o.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,()=>(e.insertList(o,"number"),!0),f.COMMAND_PRIORITY_LOW),o.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,()=>(e.insertList(o,"bullet"),!0),f.COMMAND_PRIORITY_LOW),o.registerCommand(e.REMOVE_LIST_COMMAND,()=>(e.removeList(o),!0),f.COMMAND_PRIORITY_LOW),o.registerCommand(f.INSERT_PARAGRAPH_COMMAND,()=>!!e.$handleListInsertParagraph(),f.COMMAND_PRIORITY_LOW)),[o])}(C),null},Bo}var Hs,Us,Vs,Ws,Ks,Gs,Ys,qs,Js,eg=function(){return zs?Bs:(zs=1,Bs=Xp())}(),Ki={},zn={},zo={};function tg(){return Vs?Us:(Vs=1,Us=function(){if(Hs)return zo;Hs=1;var n=Rt(),a=et(),i=$t();function f(C,o){return C.getEditorState().read(()=>{let l=a.$getNodeByKey(o);return l!==null&&l.isSelected()})}return zo.useLexicalNodeSelection=function(C){let[o]=n.useLexicalComposerContext(),[l,m]=i.useState(()=>f(o,C));i.useEffect(()=>{let h=!0,s=o.registerUpdateListener(()=>{h&&m(f(o,C))});return()=>{h=!1,s()}},[o,C]);let S=i.useCallback(h=>{o.update(()=>{let s=a.$getSelection();a.$isNodeSelection(s)||(s=a.$createNodeSelection(),a.$setSelection(s)),h?s.add(C):s.delete(C)})},[o,C]),w=i.useCallback(()=>{o.update(()=>{const h=a.$getSelection();a.$isNodeSelection(h)&&h.clear()})},[o]);return[l,S,w]},zo}())}function ng(){return Gs?Ks:(Gs=1,Ks=function(){if(Ws)return zn;Ws=1;var n=Rt(),a=tg(),i=Et(),f=et(),C=$t();let o=f.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function l({nodeKey:s}){let[v]=n.useLexicalComposerContext(),[b,T,u]=a.useLexicalNodeSelection(s),p=C.useCallback(E=>(b&&f.$isNodeSelection(f.$getSelection())&&(E.preventDefault(),h(E=f.$getNodeByKey(s))&&E.remove(),T(!1)),!1),[b,s,T]);return C.useEffect(()=>i.mergeRegister(v.registerCommand(f.CLICK_COMMAND,E=>{let $=v.getElementByKey(s);return E.target===$&&(E.shiftKey||u(),T(!b),!0)},f.COMMAND_PRIORITY_LOW),v.registerCommand(f.KEY_DELETE_COMMAND,p,f.COMMAND_PRIORITY_LOW),v.registerCommand(f.KEY_BACKSPACE_COMMAND,p,f.COMMAND_PRIORITY_LOW)),[u,v,b,s,p,T]),C.useEffect(()=>{let E=v.getElementByKey(s);E!==null&&(E.className=b?"selected":"")},[v,b,s]),null}class m extends f.DecoratorNode{static getType(){return"horizontalrule"}static clone(v){return new m(v.__key)}static importJSON(){return w()}static importDOM(){return{hr:()=>({conversion:S,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}getTextContent(){return`
18
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return C.createElement(l,{nodeKey:this.__key})}}function S(){return{node:w()}}function w(){return f.$applyNodeReplacement(new m)}function h(s){return s instanceof m}return zn.$createHorizontalRuleNode=w,zn.$isHorizontalRuleNode=h,zn.HorizontalRuleNode=m,zn.INSERT_HORIZONTAL_RULE_COMMAND=o,zn}())}var Ho,Zs,Qs,Xs,ig=function(){return Js?qs:(Js=1,qs=function(){if(Ys)return Ki;Ys=1;var n=Vd(),a=Rt(),i=ng(),f=$t();let C=[{dependencies:[i.HorizontalRuleNode],export:o=>i.$isHorizontalRuleNode(o)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(o,l,m,S)=>{l=i.$createHorizontalRuleNode(),S||o.getNextSibling()!=null?o.replace(l):o.insertBefore(l),l.selectNext()},type:"element"},...n.TRANSFORMERS];return Ki.DEFAULT_TRANSFORMERS=C,Ki.MarkdownShortcutPlugin=function({transformers:o=C}){let[l]=a.useLexicalComposerContext();return f.useEffect(()=>n.registerMarkdownShortcuts(l,o),[l,o]),null},Ki}())}(),Uo={};function og(){if(Zs)return Ho;Zs=1;var e=Rt(),n=$t(),a=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?n.useLayoutEffect:n.useEffect;function i(f){return{initialValueFn:()=>f.isEditable(),subscribe:C=>f.registerEditableListener(C)}}return Ho=function(){return function(f){let[C]=e.useLexicalComposerContext(),o=n.useMemo(()=>f(C),[C,f]),l=n.useRef(o.initialValueFn()),[m,S]=n.useState(l.current);return a(()=>{let{initialValueFn:w,subscribe:h}=o,s=w();return l.current!==s&&(l.current=s,S(s)),h(v=>{l.current=v,S(v)})},[o,f]),m}(i)},Ho}var el,tl,nl,nn={};function rg(){return nl?tl:(nl=1,tl=function(){if(el)return nn;el=1;var n=et();function a(C,o=!0){return!C&&(C=i(),o&&(C=C.trim()),C==="")}function i(){return n.$getRoot().getTextContent()}function f(C){if(!a(C,!1))return!1;let o=(C=n.$getRoot().getChildren()).length;if(1<o)return!1;for(let m=0;m<o;m++){var l=C[m];if(n.$isDecoratorNode(l))return!1;if(n.$isElementNode(l)){if(!n.$isParagraphNode(l)||l.__indent!==0)return!1;let S=(l=l.getChildren()).length;for(let w=0;w<S;w++)if(!n.$isTextNode(l[m]))return!1}}return!0}return nn.$canShowPlaceholder=f,nn.$canShowPlaceholderCurry=function(C){return()=>f(C)},nn.$findTextIntersectionFromCharacters=function(C,o){var l=C.getFirstChild();C=0;e:for(;l!==null;){if(n.$isElementNode(l)){var m=l.getFirstChild();if(m!==null){l=m;continue}}else if(n.$isTextNode(l)){if(C+(m=l.getTextContentSize())>o)return{node:l,offset:o-C};C+=m}if((m=l.getNextSibling())===null){for(l=l.getParent();l!==null;){if((m=l.getNextSibling())!==null){l=m;continue e}l=l.getParent()}break}l=m}return null},nn.$isRootTextContentEmpty=a,nn.$isRootTextContentEmptyCurry=function(C,o){return()=>a(C,o)},nn.$rootTextContent=i,nn.registerLexicalTextEntity=function(C,o,l,m){let S=h=>{const s=n.$createTextNode(h.getTextContent());s.setFormat(h.getFormat()),h.replace(s)},w=C.registerNodeTransform(n.TextNode,h=>{if(h.isSimpleText()){var s=h.getPreviousSibling(),v=h.getTextContent(),b=h;if(n.$isTextNode(s)){var T=s.getTextContent(),u=o(T+v);if(s instanceof l){if(u===null||s.getLatest().__mode!==0)return void S(s);if(0<(u=u.end-T.length))return b=T+(b=v.slice(0,u)),s.select(),s.setTextContent(b),void(u===v.length?h.remove():(s=v.slice(u),h.setTextContent(s)))}else if(u===null||u.start<T.length)return}for(;;){if(v=u=(h=o(v))===null?"":v.slice(h.end),u===""){if(T=b.getNextSibling(),n.$isTextNode(T)){if(u=b.getTextContent()+T.getTextContent(),(u=o(u))===null){T instanceof l?S(T):T.markDirty();break}if(u.start!==0)break}}else if((T=o(u))!==null&&T.start===0)break;if(h===null)break;if(h.start===0&&n.$isTextNode(s)&&s.isTextEntity())continue;let p;if(h.start===0?[p,b]=b.splitText(h.end):[,p,b]=b.splitText(h.start,h.end),h=m(p),p.replace(h),b==null)break}}});return C=C.registerNodeTransform(l,h=>{var s=h.getTextContent();const v=o(s);v===null||v.start!==0?S(h):s.length>v.end?h.splitText(v.end):(s=h.getPreviousSibling(),n.$isTextNode(s)&&s.isTextEntity()&&(S(s),S(h)),s=h.getNextSibling(),n.$isTextNode(s)&&s.isTextEntity()&&(S(s),h instanceof l&&S(h)))}),[w,C]},nn}())}var il,ol,rl,al,sl,ll,Vo={};function ag(){return rl?ol:(rl=1,ol=function(){if(il)return Vo;il=1;var n=et();return Vo.registerDragonSupport=function(a){let i=window.location.origin,f=C=>{if(C.origin===i){var o=a.getRootElement();if(document.activeElement===o&&typeof(o=C.data)=="string"){try{var l=JSON.parse(o)}catch{return}if(l&&l.protocol==="nuanria_messaging"&&l.type==="request"&&(l=l.payload)&&l.functionId==="makeChanges"&&(l=l.args)){const[m,S,w,h,s]=l;a.update(()=>{const v=n.$getSelection();if(n.$isRangeSelection(v)){var b=v.anchor;let T=b.getNode(),u=0,p=0;n.$isTextNode(T)&&0<=m&&0<=S&&(u=m,p=m+S,v.setTextNodeRange(T,u,T,p)),u===p&&w===""||(v.insertRawText(w),T=b.getNode()),n.$isTextNode(T)&&(u=h,p=h+s,u=u>(b=T.getTextContentSize())?b:u,p=p>b?b:p,v.setTextNodeRange(T,u,T,p)),C.stopImmediatePropagation()}})}}}};return window.addEventListener("message",f,!0),()=>{window.removeEventListener("message",f,!0)}},Vo}())}function sg(){if(al)return Uo;al=1;var e=Rt(),n=function(){return Xs?Qs:(Xs=1,Qs=og())}(),a=$t(),i=rg(),f=Et(),C=Ep(),o=ag(),l=Zr(),m=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?a.useLayoutEffect:a.useEffect;function S(h){return h.getEditorState().read(i.$canShowPlaceholderCurry(h.isComposing()))}function w({content:h}){var[s]=e.useLexicalComposerContext();s=function(b){let[T,u]=a.useState(()=>S(b));return m(()=>{function p(){let E=S(b);u(E)}return p(),f.mergeRegister(b.registerUpdateListener(()=>{p()}),b.registerEditableListener(()=>{p()}))},[b]),T}(s);let v=n();return s?typeof h=="function"?h(v):h:null}return Uo.RichTextPlugin=function({contentEditable:h,placeholder:s,ErrorBoundary:v}){let[b]=e.useLexicalComposerContext();return v=function(T,u){let[p,E]=a.useState(()=>T.getDecorators());return m(()=>T.registerDecoratorListener($=>{C.flushSync(()=>{E($)})}),[T]),a.useEffect(()=>{E(T.getDecorators())},[T]),a.useMemo(()=>{let $=[],j=Object.keys(p);for(let M=0;M<j.length;M++){var D=j[M];let _=a.createElement(u,{onError:I=>T._onError(I)},a.createElement(a.Suspense,{fallback:null},p[D]));(D=T.getElementByKey(D))!==null&&$.push(C.createPortal(_,D))}return $},[u,p,T])}(b,v),function(T){m(()=>f.mergeRegister(l.registerRichText(T),o.registerDragonSupport(T)),[T])}(b),a.createElement(a.Fragment,null,h,a.createElement(w,{content:s}),v)},Uo}var cl,dl,ul,lg=function(){return ll?sl:(ll=1,sl=sg())}(),Nr=Zr(),Ae={};function cg(){if(cl)return Ae;cl=1;var e=et(),n=Et();let a={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class i extends e.DEPRECATED_GridCellNode{static getType(){return"tablecell"}static clone(c){let N=new i(c.__headerState,c.__colSpan,c.__width,c.__key);return N.__rowSpan=c.__rowSpan,N}static importDOM(){return{td:()=>({conversion:f,priority:0}),th:()=>({conversion:f,priority:0})}}static importJSON(c){let N=C(c.headerState,c.colSpan,c.width||void 0);return N.__rowSpan=c.rowSpan,N}constructor(c=a.NO_STATUS,N=1,k,y){super(N,y),this.__headerState=c,this.__width=k}createDOM(c){let N=document.createElement(this.getTag());return this.__width&&(N.style.width=`${this.__width}px`),1<this.__colSpan&&(N.colSpan=this.__colSpan),1<this.__rowSpan&&(N.rowSpan=this.__rowSpan),n.addClassNamesToElement(N,c.theme.tableCell,this.hasHeader()&&c.theme.tableCellHeader),N}exportDOM(c){if({element:c}=super.exportDOM(c),c){let N=this.getParentOrThrow().getChildrenSize();c.style.border="1px solid black",1<this.__colSpan&&(c.colSpan=this.__colSpan),1<this.__rowSpan&&(c.rowSpan=this.__rowSpan),c.style.width=`${this.getWidth()||Math.max(90,700/N)}px`,c.style.verticalAlign="top",c.style.textAlign="start",this.hasHeader()&&(c.style.backgroundColor="#f2f3f5")}return{element:c}}exportJSON(){return{...super.exportJSON(),headerState:this.__headerState,type:"tablecell",width:this.getWidth()}}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(c){return this.getWritable().__headerState=c,this.__headerState}getHeaderStyles(){return this.getLatest().__headerState}setWidth(c){return this.getWritable().__width=c,this.__width}getWidth(){return this.getLatest().__width}toggleHeaderStyle(c){let N=this.getWritable();return N.__headerState=(N.__headerState&c)===c?N.__headerState-c:N.__headerState+c,N}hasHeaderState(c){return(this.getHeaderStyles()&c)===c}hasHeader(){return this.getLatest().__headerState!==a.NO_STATUS}updateDOM(c){return c.__headerState!==this.__headerState||c.__width!==this.__width||c.__colSpan!==this.__colSpan||c.__rowSpan!==this.__rowSpan}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function f(g){var c=g.nodeName.toLowerCase();return(c=C(c==="th"?a.ROW:a.NO_STATUS)).__colSpan=g.colSpan,c.__rowSpan=g.rowSpan,{forChild:(N,k)=>o(k)&&!e.$isElementNode(N)?(k=e.$createParagraphNode(),e.$isLineBreakNode(N)&&N.getTextContent()===`
19
+ `?null:(k.append(N),k)):N,node:c}}function C(g,c=1,N){return e.$applyNodeReplacement(new i(g,c,N))}function o(g){return g instanceof i}class l extends e.DEPRECATED_GridRowNode{static getType(){return"tablerow"}static clone(c){return new l(c.__height,c.__key)}static importDOM(){return{tr:()=>({conversion:m,priority:0})}}static importJSON(c){return S(c.height)}constructor(c,N){super(N),this.__height=c}exportJSON(){return{...super.exportJSON(),type:"tablerow",version:1}}createDOM(c){let N=document.createElement("tr");return this.__height&&(N.style.height=`${this.__height}px`),n.addClassNamesToElement(N,c.theme.tableRow),N}isShadowRoot(){return!0}setHeight(c){return this.getWritable().__height=c,this.__height}getHeight(){return this.getLatest().__height}updateDOM(c){return c.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function m(){return{node:S()}}function S(g){return e.$applyNodeReplacement(new l(g))}function w(g){return g instanceof l}function h(g){throw Error(`Minified Lexical error #${g}; visit https://lexical.dev/docs/error?code=${g} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let s=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;class v{constructor(c,N){this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.listenersToRemove=new Set,this.tableNodeKey=N,this.editor=c,this.grid={cells:[],columns:0,rows:0},this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.trackTableGrid()}getGrid(){return this.grid}removeListeners(){Array.from(this.listenersToRemove).forEach(c=>c())}trackTableGrid(){let c=new MutationObserver(N=>{this.editor.update(()=>{var k=!1;for(let y=0;y<N.length;y++){const R=N[y].target.nodeName;if(R==="TABLE"||R==="TR"){k=!0;break}}if(k){if(!(k=this.editor.getElementByKey(this.tableNodeKey)))throw Error("Expected to find TableElement in DOM");this.grid=T(k)}})});this.editor.update(()=>{let N=this.editor.getElementByKey(this.tableNodeKey);if(!N)throw Error("Expected to find TableElement in DOM");this.grid=T(N),c.observe(N,{childList:!0,subtree:!0})})}clearHighlight(){this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),this.editor.update(()=>{var c=e.$getNodeByKey(this.tableNodeKey);if(!P(c))throw Error("Expected TableNode.");if(!(c=this.editor.getElementByKey(this.tableNodeKey)))throw Error("Expected to find TableElement in DOM");u(c=T(c),null),e.$setSelection(null),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0)})}enableHighlightStyle(){this.editor.update(()=>{let c=this.editor.getElementByKey(this.tableNodeKey);if(!c)throw Error("Expected to find TableElement in DOM");c.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1})}disableHighlightStyle(){this.editor.update(()=>{let c=this.editor.getElementByKey(this.tableNodeKey);if(!c)throw Error("Expected to find TableElement in DOM");c.classList.add("disable-selection"),this.hasHijackedSelectionStyles=!0})}updateTableGridSelection(c){c!=null&&c.gridKey===this.tableNodeKey?(this.gridSelection=c,this.isHighlightingCells=!0,this.disableHighlightStyle(),u(this.grid,this.gridSelection)):c==null&&this.clearHighlight()}setFocusCellForSelection(c,N=!1){this.editor.update(()=>{var k=e.$getNodeByKey(this.tableNodeKey);if(!P(k))throw Error("Expected TableNode.");if(!this.editor.getElementByKey(this.tableNodeKey))throw Error("Expected to find TableElement in DOM");k=c.x;let y=c.y;if(this.focusCell=c,this.anchorCell!==null){let R=s?(this.editor._window||window).getSelection():null;R&&R.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(this.isHighlightingCells||this.anchorX===k&&this.anchorY===y&&!N){if(k===this.focusX&&y===this.focusY)return}else this.isHighlightingCells=!0,this.disableHighlightStyle();this.focusX=k,this.focusY=y,this.isHighlightingCells&&(k=e.$getNearestNodeFromDOMNode(c.elem),this.gridSelection!=null&&this.anchorCellNodeKey!=null&&o(k)&&(k=k.getKey(),this.gridSelection=this.gridSelection.clone()||e.DEPRECATED_$createGridSelection(),this.focusCellNodeKey=k,this.gridSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),e.$setSelection(this.gridSelection),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0),u(this.grid,this.gridSelection)))})}setAnchorCellForSelection(c){this.isHighlightingCells=!1,this.anchorCell=c,this.anchorX=c.x,this.anchorY=c.y,this.editor.update(()=>{var N=e.$getNearestNodeFromDOMNode(c.elem);o(N)&&(N=N.getKey(),this.gridSelection=e.DEPRECATED_$createGridSelection(),this.anchorCellNodeKey=N)})}formatCells(c){this.editor.update(()=>{let N=e.$getSelection();e.DEPRECATED_$isGridSelection(N)||h(11);let k=e.$createRangeSelection(),y=k.anchor,R=k.focus;N.getNodes().forEach(L=>{o(L)&&L.getTextContentSize()!==0&&(y.set(L.getKey(),0,"element"),R.set(L.getKey(),L.getChildrenSize(),"element"),k.formatText(c))}),e.$setSelection(N),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){this.editor.update(()=>{let c=e.$getNodeByKey(this.tableNodeKey);if(!P(c))throw Error("Expected TableNode.");var N=e.$getSelection();e.DEPRECATED_$isGridSelection(N)||h(11),(N=N.getNodes().filter(o)).length===this.grid.columns*this.grid.rows?(c.selectPrevious(),c.remove(),e.$getRoot().selectStart()):(N.forEach(k=>{if(e.$isElementNode(k)){let y=e.$createParagraphNode(),R=e.$createTextNode();y.append(R),k.append(y),k.getChildren().forEach(L=>{L!==y&&L.remove()})}}),u(this.grid,null),e.$setSelection(null),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0))})}}function b(g){for(;g!=null;){let c=g.nodeName;if(c==="TD"||c==="TH"){if((g=g._cell)===void 0)break;return g}g=g.parentNode}return null}function T(g){let c=[],N={cells:c,columns:0,rows:0};var k=g.firstChild;let y=g=0;for(c.length=0;k!=null;){var R=k.nodeName;if(R==="TD"||R==="TH")R={elem:k,highlighted:!1,x:g,y},k._cell=R,c[y]===void 0&&(c[y]=[]),c[y][g]=R;else if((R=k.firstChild)!=null){k=R;continue}if((R=k.nextSibling)!=null)g++,k=R;else if((R=k.parentNode)!=null){if((k=R.nextSibling)==null)break;y++,g=0}}return N.columns=g+1,N.rows=y+1,N}function u(g,c){let N=[],k=new Set(c?c.getNodes():[]);return p(g,(y,R)=>{let L=y.elem;k.has(R)?(y.highlighted=!0,L.style.setProperty("background-color","rgb(172, 206, 247)"),L.style.setProperty("caret-color","transparent"),N.push(y)):(y.highlighted=!1,L.style.removeProperty("background-color"),L.style.removeProperty("caret-color"),L.getAttribute("style")||L.removeAttribute("style"))}),N}function p(g,c){({cells:g}=g);for(let N=0;N<g.length;N++){let k=g[N];for(let y=0;y<k.length;y++){let R=k[y],L=e.$getNearestNodeFromDOMNode(R.elem);L!==null&&c(R,L,{x:y,y:N})}}}function E(g){g.disableHighlightStyle(),p(g.grid,c=>{let N=c.elem;c.highlighted=!0,N.style.setProperty("background-color","rgb(172, 206, 247)"),N.style.setProperty("caret-color","transparent")})}let $=(g,c,N,k,y)=>{const R=y==="forward";switch(y){case"backward":case"forward":return N!==(R?g.grid.columns-1:0)?M(c.getCellNodeFromCordsOrThrow(N+(R?1:-1),k,g.grid)):k!==(R?g.grid.rows-1:0)?M(c.getCellNodeFromCordsOrThrow(R?0:g.grid.columns-1,k+(R?1:-1),g.grid)):R?c.selectNext():c.selectPrevious(),!0;case"up":return k!==0?M(c.getCellNodeFromCordsOrThrow(N,k-1,g.grid)):c.selectPrevious(),!0;case"down":return k!==g.grid.rows-1?M(c.getCellNodeFromCordsOrThrow(N,k+1,g.grid)):c.selectNext(),!0;default:return!1}},j=(g,c,N,k,y)=>{const R=y==="forward";switch(y){case"backward":case"forward":return N!==(R?g.grid.columns-1:0)&&g.setFocusCellForSelection(c.getCellFromCordsOrThrow(N+(R?1:-1),k,g.grid)),!0;case"up":return k!==0&&(g.setFocusCellForSelection(c.getCellFromCordsOrThrow(N,k-1,g.grid)),!0);case"down":return k!==g.grid.rows-1&&(g.setFocusCellForSelection(c.getCellFromCordsOrThrow(N,k+1,g.grid)),!0);default:return!1}};function D(g,c){if(e.$isRangeSelection(g)||e.DEPRECATED_$isGridSelection(g)){let N=c.isParentOf(g.anchor.getNode());return g=c.isParentOf(g.focus.getNode()),N&&g}return!1}function M(g){let c=g.getChildren().find(N=>e.$isParagraphNode(N));e.$isParagraphNode(c)?c.selectEnd():g.selectEnd()}class _ extends e.DEPRECATED_GridNode{static getType(){return"table"}static clone(c){return new _(c.__key)}static importDOM(){return{table:()=>({conversion:I,priority:1})}}static importJSON(){return A()}constructor(c){super(c)}exportJSON(){return{...super.exportJSON(),type:"table",version:1}}createDOM(c){let N=document.createElement("table");return n.addClassNamesToElement(N,c.theme.table),N}updateDOM(){return!1}exportDOM(c){return{...super.exportDOM(c),after:N=>{if(N){let k=N.cloneNode(),y=document.createElement("colgroup"),R=document.createElement("tbody");if(R.append(...N.children),!w(N=this.getFirstChildOrThrow()))throw Error("Expected to find row node.");N=N.getChildrenSize();for(let L=0;L<N;L++){let z=document.createElement("col");y.append(z)}return k.replaceChildren(y,R),k}}}}canExtractContents(){return!1}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(c,N){let{rows:k,cells:y}=N;for(N=0;N<k;N++){var R=y[N];if(R==null)throw Error(`Row not found at y:${N}`);if((R=R.findIndex(({elem:L})=>e.$getNearestNodeFromDOMNode(L)===c))!==-1)return{x:R,y:N}}throw Error("Cell not found in table.")}getCellFromCords(c,N,k){return{cells:k}=k,(N=k[N])==null||(c=N[c])==null?null:c}getCellFromCordsOrThrow(c,N,k){if(!(c=this.getCellFromCords(c,N,k)))throw Error("Cell not found at cords.");return c}getCellNodeFromCords(c,N,k){return(c=this.getCellFromCords(c,N,k))==null?null:o(c=e.$getNearestNodeFromDOMNode(c.elem))?c:null}getCellNodeFromCordsOrThrow(c,N,k){if(!(c=this.getCellNodeFromCords(c,N,k)))throw Error("Node at cords not TableCellNode.");return c}canSelectBefore(){return!0}canIndent(){return!1}}function I(){return{node:A()}}function A(){return e.$applyNodeReplacement(new _)}function P(g){return g instanceof _}function K(g){if(g=n.$findMatchingParent(g,c=>w(c)),w(g))return g;throw Error("Expected table cell to be inside of table row.")}function X(g){if(g=n.$findMatchingParent(g,c=>P(c)),P(g))return g;throw Error("Expected table cell to be inside of table.")}function te(g,c){let N=X(g),{x:k,y}=N.getCordsFromCellNode(g,c);return{above:N.getCellNodeFromCords(k,y-1,c),below:N.getCellNodeFromCords(k,y+1,c),left:N.getCellNodeFromCords(k-1,y,c),right:N.getCellNodeFromCords(k+1,y,c)}}function Z(g){(g=g.getFirstDescendant())===null&&h(124),g.getParentOrThrow().selectStart()}function B(g,c){let N=g.getFirstChild();N!==null?N.insertBefore(c):g.append(c)}let O=e.createCommand("INSERT_TABLE_COMMAND");return Ae.$createTableCellNode=C,Ae.$createTableNode=A,Ae.$createTableNodeWithDimensions=function(g,c,N=!0){let k=A();for(let R=0;R<g;R++){let L=S();for(let z=0;z<c;z++){var y=a.NO_STATUS;typeof N=="object"?(R===0&&N.rows&&(y|=a.ROW),z===0&&N.columns&&(y|=a.COLUMN)):N&&(R===0&&(y|=a.ROW),z===0&&(y|=a.COLUMN)),y=C(y);let J=e.$createParagraphNode();J.append(e.$createTextNode()),y.append(J),L.append(y)}k.append(L)}return k},Ae.$createTableRowNode=S,Ae.$deleteTableColumn=function(g,c){let N=g.getChildren();for(let y=0;y<N.length;y++){var k=N[y];if(w(k)){if(c>=(k=k.getChildren()).length||0>c)throw Error("Table column target index out of range");k[c].remove()}}return g},Ae.$deleteTableColumn__EXPERIMENTAL=function(){var g=e.$getSelection();e.$isRangeSelection(g)||e.DEPRECATED_$isGridSelection(g)||h(118);var c=g.anchor.getNode();g=g.focus.getNode();let[N,,k]=e.DEPRECATED_$getNodeTriplet(c);[c]=e.DEPRECATED_$getNodeTriplet(g);let[y,R,L]=e.DEPRECATED_$computeGridMap(k,N,c);var{startColumn:z}=R;let{startRow:J,startColumn:ee}=L;g=Math.min(z,ee);let U=(z=Math.max(z+N.__colSpan-1,ee+c.__colSpan-1))-g+1;if(y[0].length===z-g+1)k.selectPrevious(),k.remove();else{var H=y.length;for(let V=0;V<H;V++)for(let G=g;G<=z;G++){let{cell:ae,startColumn:se}=y[V][G];se<g?G===g&&ae.setColSpan(ae.__colSpan-Math.min(U,ae.__colSpan-(g-se))):se+ae.__colSpan-1>z?G===z&&ae.setColSpan(ae.__colSpan-(z-se+1)):ae.remove()}(c=(g=y[J])[ee+c.__colSpan])!==void 0?({cell:c}=c,Z(c)):({cell:c}=g[ee-1],Z(c))}},Ae.$deleteTableRow__EXPERIMENTAL=function(){var g=e.$getSelection();e.$isRangeSelection(g)||e.DEPRECATED_$isGridSelection(g)||h(118);var c=g.anchor.getNode();g=g.focus.getNode();let[N,,k]=e.DEPRECATED_$getNodeTriplet(c);[g]=e.DEPRECATED_$getNodeTriplet(g);let[y,R,L]=e.DEPRECATED_$computeGridMap(k,N,g);({startRow:c}=R);var{startRow:z}=L;if(g=z+g.__rowSpan-1,y.length===g-c+1)k.remove();else{z=y[0].length;var J=y[g+1],ee=k.getChildAtIndex(g+1);for(let H=g;H>=c;H--){for(var U=z-1;0<=U;U--){let{cell:V,startRow:G,startColumn:ae}=y[H][U];if(ae===U&&(H===c&&G<c&&V.setRowSpan(V.__rowSpan-(G-c)),G>=c&&G+V.__rowSpan-1>g))if(V.setRowSpan(V.__rowSpan-(g-G+1)),ee===null&&h(122),U===0)B(ee,V);else{let{cell:se}=J[U-1];se.insertAfter(V)}}U=k.getChildAtIndex(H),e.DEPRECATED_$isGridRowNode(U)||h(123),U.remove()}J!==void 0?({cell:c}=J[0],Z(c)):({cell:c}=y[c-1][0],Z(c))}},Ae.$getElementGridForTableNode=function(g,c){if((g=g.getElementByKey(c.getKey()))==null)throw Error("Table Element Not Found");return T(g)},Ae.$getTableCellNodeFromLexicalNode=function(g){return g=n.$findMatchingParent(g,c=>o(c)),o(g)?g:null},Ae.$getTableColumnIndexFromTableCellNode=function(g){return K(g).getChildren().findIndex(c=>c.is(g))},Ae.$getTableNodeFromLexicalNodeOrThrow=X,Ae.$getTableRowIndexFromTableCellNode=function(g){let c=K(g);return X(c).getChildren().findIndex(N=>N.is(c))},Ae.$getTableRowNodeFromTableCellNodeOrThrow=K,Ae.$insertTableColumn=function(g,c,N=!0,k,y){let R=g.getChildren();for(let J=0;J<R.length;J++){let ee=R[J];if(w(ee))for(let U=0;U<k;U++){var L=ee.getChildren();if(c>=L.length||0>c)throw Error("Table column target index out of range");o(L=L[c])||h(12);let{left:H,right:V}=te(L,y);var z=a.NO_STATUS;(H&&H.hasHeaderState(a.ROW)||V&&V.hasHeaderState(a.ROW))&&(z|=a.ROW),(z=C(z)).append(e.$createParagraphNode()),N?L.insertAfter(z):L.insertBefore(z)}}return g},Ae.$insertTableColumn__EXPERIMENTAL=function(g=!0){function c(){let U=C(a.NO_STATUS).append(e.$createParagraphNode());return J===null&&(J=U),U}var N=e.$getSelection();e.$isRangeSelection(N)||e.DEPRECATED_$isGridSelection(N)||h(118),N=N.focus.getNode();let[k,,y]=e.DEPRECATED_$getNodeTriplet(N),[R,L]=e.DEPRECATED_$computeGridMap(y,k,k);N=R.length;var{startColumn:z}=L;g=g?z+k.__colSpan-1:z-1,z=y.getFirstChild(),e.DEPRECATED_$isGridRowNode(z)||h(120);let J=null;var ee=z;e:for(z=0;z<N;z++){z!==0&&(ee=ee.getNextSibling(),e.DEPRECATED_$isGridRowNode(ee)||h(121));let U=R[z];if(0>g){B(ee,c());continue}let{cell:H,startColumn:V,startRow:G}=U[g];if(V+H.__colSpan-1<=g){let ae=H,se=G,q=g;for(;se!==z&&1<ae.__rowSpan;){if(q-=H.__colSpan,!(0<=q)){ee.append(c());continue e}{let{cell:F,startRow:Y}=U[q];ae=F,se=Y}}ae.insertAfter(c())}else H.setColSpan(H.__colSpan+1)}J!==null&&Z(J)},Ae.$insertTableRow=function(g,c,N=!0,k,y){var R=g.getChildren();if(c>=R.length||0>c)throw Error("Table row target index out of range");if(!w(c=R[c]))throw Error("Row before insertion index does not exist.");for(R=0;R<k;R++){let z=c.getChildren(),J=z.length,ee=S();for(let U=0;U<J;U++){var L=z[U];o(L)||h(12);let{above:H,below:V}=te(L,y);L=a.NO_STATUS;let G=H&&H.getWidth()||V&&V.getWidth()||void 0;(H&&H.hasHeaderState(a.COLUMN)||V&&V.hasHeaderState(a.COLUMN))&&(L|=a.COLUMN),(L=C(L,1,G)).append(e.$createParagraphNode()),ee.append(L)}N?c.insertAfter(ee):c.insertBefore(ee)}return g},Ae.$insertTableRow__EXPERIMENTAL=function(g=!0){var c=e.$getSelection();e.$isRangeSelection(c)||e.DEPRECATED_$isGridSelection(c)||h(118),c=c.focus.getNode();let[N,,k]=e.DEPRECATED_$getNodeTriplet(c),[y,R]=e.DEPRECATED_$computeGridMap(k,N,N);c=y[0].length;var{startRow:L}=R;if(g){var z=y[g=L+N.__rowSpan-1];L=S();for(var J=0;J<c;J++){let{cell:ee,startRow:U}=z[J];U+ee.__rowSpan-1<=g?L.append(C(a.NO_STATUS)):ee.setRowSpan(ee.__rowSpan+1)}c=k.getChildAtIndex(g),e.DEPRECATED_$isGridRowNode(c)||h(119),c.insertAfter(L)}else{for(z=y[L],g=S(),J=0;J<c;J++){let{cell:ee,startRow:U}=z[J];U===L?g.append(C(a.NO_STATUS)):ee.setRowSpan(ee.__rowSpan+1)}c=k.getChildAtIndex(L),e.DEPRECATED_$isGridRowNode(c)||h(119),c.insertBefore(g)}},Ae.$isTableCellNode=o,Ae.$isTableNode=P,Ae.$isTableRowNode=w,Ae.$removeTableRowAtIndex=function(g,c){let N=g.getChildren();if(c>=N.length||0>c)throw Error("Expected table cell to be inside of table row.");return N[c].remove(),g},Ae.$unmergeCell=function(){var g=e.$getSelection();e.$isRangeSelection(g)||e.DEPRECATED_$isGridSelection(g)||h(118),g=g.anchor.getNode();let[c,N,k]=e.DEPRECATED_$getNodeTriplet(g);g=c.__colSpan;let y=c.__rowSpan;if(1<g){for(var R=1;R<g;R++)c.insertAfter(C(a.NO_STATUS));c.setColSpan(1)}if(1<y){let[J,ee]=e.DEPRECATED_$computeGridMap(k,c,c),{startColumn:U,startRow:H}=ee;for(R=1;R<y;R++){let V=H+R,G=J[V];var L=N.getNextSibling();e.DEPRECATED_$isGridRowNode(L)||h(125);var z=null;for(let ae=0;ae<U;ae++){let se=G[ae],q=se.cell;se.startRow===V&&(z=q),1<q.__colSpan&&(ae+=q.__colSpan-1)}if(z===null)for(z=0;z<g;z++)B(L,C(a.NO_STATUS));else for(L=0;L<g;L++)z.insertAfter(C(a.NO_STATUS))}c.setRowSpan(1)}},Ae.INSERT_TABLE_COMMAND=O,Ae.TableCellHeaderStates=a,Ae.TableCellNode=i,Ae.TableNode=_,Ae.TableRowNode=l,Ae.TableSelection=v,Ae.applyTableHandlers=function(g,c,N){let k=N.getRootElement();if(k===null)throw Error("No root element.");let y=new v(N,g.getKey());c.__lexicalTableSelection=y;let R=!1,L=!1;c.addEventListener("dblclick",U=>{let H=b(U.target);H!==null&&(U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),y.setAnchorCellForSelection(H),y.setFocusCellForSelection(H,!0),R=!1)}),c.addEventListener("mousedown",U=>{setTimeout(()=>{if(U.button===0){var H=b(U.target);H!==null&&(U.preventDefault(),U.stopPropagation(),U.stopImmediatePropagation(),y.setAnchorCellForSelection(H))}},0)}),c.addEventListener("mousemove",U=>{if(L&&(U.preventDefault(),U.stopPropagation(),U.stopImmediatePropagation()),R){let H=b(U.target);if(H!==null){let V=H.x,G=H.y;R&&(y.anchorX!==V||y.anchorY!==G||y.isHighlightingCells)&&(U.preventDefault(),y.setFocusCellForSelection(H))}}}),c.addEventListener("mouseleave",()=>{});let z=U=>{U.button===0&&N.update(()=>{var H=e.$getSelection();const V=U.target;if(V instanceof Node){if(e.DEPRECATED_$isGridSelection(H)&&H.gridKey===y.tableNodeKey&&k.contains(V))return y.clearHighlight();(H=e.$getNearestNodeFromDOMNode(V))!==null&&n.$findMatchingParent(H,e.DEPRECATED_$isGridNode)&&(R=!0)}})};window.addEventListener("mousedown",z),y.listenersToRemove.add(()=>window.removeEventListener("mousedown",z));let J=U=>{var H;(H=R)&&(H=!(H=(H=U.target)!==null&&H.nodeName==="SPAN")),H&&(U.preventDefault(),U.stopPropagation()),R=!1};window.addEventListener("mouseup",J),y.listenersToRemove.add(()=>window.removeEventListener("mouseup",J)),c.addEventListener("mouseup",J),y.listenersToRemove.add(()=>c.removeEventListener("mouseup",J)),y.listenersToRemove.add(N.registerCommand(e.KEY_ARROW_DOWN_COMMAND,U=>{var H=e.$getSelection();if(!D(H,g))return!1;if(e.$isRangeSelection(H)){if(H.isCollapsed()){var V=n.$findMatchingParent(H.anchor.getNode(),ae=>o(ae));if(!o(V))return!1;var G=g.getCordsFromCellNode(V,y.grid);if(H=n.$findMatchingParent(H.anchor.getNode(),ae=>e.$isElementNode(ae)),H==null)throw Error("Expected BlockNode Parent");if((V=V.getLastChild())&&H.isParentOf(V)||H===V||U.shiftKey)return U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),U.shiftKey?(y.setAnchorCellForSelection(g.getCellFromCordsOrThrow(G.x,G.y,y.grid)),j(y,g,G.x,G.y,"down")):$(y,g,G.x,G.y,"down")}}else if(e.DEPRECATED_$isGridSelection(H)&&U.shiftKey)return!!o(G=H.focus.getNode())&&(G=g.getCordsFromCellNode(G,y.grid),U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),j(y,g,G.x,G.y,"down"));return!1},e.COMMAND_PRIORITY_HIGH)),y.listenersToRemove.add(N.registerCommand(e.KEY_ARROW_UP_COMMAND,U=>{var H=e.$getSelection();if(!D(H,g))return!1;if(e.$isRangeSelection(H)){if(H.isCollapsed()){var V=n.$findMatchingParent(H.anchor.getNode(),ae=>o(ae));if(!o(V))return!1;var G=g.getCordsFromCellNode(V,y.grid);if(H=n.$findMatchingParent(H.anchor.getNode(),ae=>e.$isElementNode(ae)),H==null)throw Error("Expected BlockNode Parent");if((V=V.getLastChild())&&H.isParentOf(V)||H===V||U.shiftKey)return U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),U.shiftKey?(y.setAnchorCellForSelection(g.getCellFromCordsOrThrow(G.x,G.y,y.grid)),j(y,g,G.x,G.y,"up")):$(y,g,G.x,G.y,"up")}}else if(e.DEPRECATED_$isGridSelection(H)&&U.shiftKey)return!!o(G=H.focus.getNode())&&(G=g.getCordsFromCellNode(G,y.grid),U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),j(y,g,G.x,G.y,"up"));return!1},e.COMMAND_PRIORITY_HIGH)),y.listenersToRemove.add(N.registerCommand(e.KEY_ARROW_LEFT_COMMAND,U=>{var H=e.$getSelection();if(!D(H,g))return!1;if(e.$isRangeSelection(H)){if(H.isCollapsed()){var V=n.$findMatchingParent(H.anchor.getNode(),G=>o(G));if(!o(V))return!1;if(V=g.getCordsFromCellNode(V,y.grid),n.$findMatchingParent(H.anchor.getNode(),G=>e.$isElementNode(G))==null)throw Error("Expected BlockNode Parent");if(H.anchor.offset===0||U.shiftKey)return U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),U.shiftKey?(y.setAnchorCellForSelection(g.getCellFromCordsOrThrow(V.x,V.y,y.grid)),j(y,g,V.x,V.y,"backward")):$(y,g,V.x,V.y,"backward")}}else if(e.DEPRECATED_$isGridSelection(H)&&U.shiftKey)return!!o(H=H.focus.getNode())&&(H=g.getCordsFromCellNode(H,y.grid),U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),j(y,g,H.x,H.y,"backward"));return!1},e.COMMAND_PRIORITY_HIGH)),y.listenersToRemove.add(N.registerCommand(e.KEY_ARROW_RIGHT_COMMAND,U=>{var H=e.$getSelection();if(!D(H,g))return!1;if(e.$isRangeSelection(H)){if(H.isCollapsed()){var V=n.$findMatchingParent(H.anchor.getNode(),G=>o(G));if(!o(V))return!1;if(V=g.getCordsFromCellNode(V,y.grid),n.$findMatchingParent(H.anchor.getNode(),G=>e.$isElementNode(G))==null)throw Error("Expected BlockNode Parent");if(H.anchor.offset===H.anchor.getNode().getTextContentSize()||U.shiftKey)return U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),U.shiftKey?(y.setAnchorCellForSelection(g.getCellFromCordsOrThrow(V.x,V.y,y.grid)),j(y,g,V.x,V.y,"forward")):$(y,g,V.x,V.y,"forward")}}else if(e.DEPRECATED_$isGridSelection(H)&&U.shiftKey)return!!o(H=H.focus.getNode())&&(H=g.getCordsFromCellNode(H,y.grid),U.preventDefault(),U.stopImmediatePropagation(),U.stopPropagation(),j(y,g,H.x,H.y,"forward"));return!1},e.COMMAND_PRIORITY_HIGH)),[e.DELETE_WORD_COMMAND,e.DELETE_LINE_COMMAND,e.DELETE_CHARACTER_COMMAND].forEach(U=>{y.listenersToRemove.add(N.registerCommand(U,(H=>()=>{var V=e.$getSelection();if(!D(V,g))return!1;if(e.DEPRECATED_$isGridSelection(V))return y.clearText(),!0;if(e.$isRangeSelection(V)){const se=n.$findMatchingParent(V.anchor.getNode(),q=>o(q));if(!o(se))return!1;var G=V.anchor.getNode(),ae=V.focus.getNode();if(G=g.isParentOf(G),ae=g.isParentOf(ae),G&&!ae||ae&&!G)return y.clearText(),!0;if(G=(ae=n.$findMatchingParent(V.anchor.getNode(),q=>e.$isElementNode(q)))&&n.$findMatchingParent(ae,q=>e.$isElementNode(q)&&o(q.getParent())),!e.$isElementNode(G)||!e.$isElementNode(ae))return!1;if(H===e.DELETE_LINE_COMMAND&&G.getPreviousSibling()===null)return!0;if((H===e.DELETE_CHARACTER_COMMAND||H===e.DELETE_WORD_COMMAND)&&V.isCollapsed()&&V.anchor.offset===0&&ae!==G){V=ae.getChildren();const q=e.$createParagraphNode();return V.forEach(F=>q.append(F)),ae.replace(q),ae.getWritable().__parent=se.getKey(),!0}}return!1})(U),e.COMMAND_PRIORITY_CRITICAL))});let ee=U=>{const H=e.$getSelection();return!!D(H,g)&&(e.DEPRECATED_$isGridSelection(H)?(U.preventDefault(),U.stopPropagation(),y.clearText(),!0):(e.$isRangeSelection(H)&&(U=n.$findMatchingParent(H.anchor.getNode(),V=>o(V)),o(U)),!1))};return y.listenersToRemove.add(N.registerCommand(e.KEY_BACKSPACE_COMMAND,ee,e.COMMAND_PRIORITY_CRITICAL)),y.listenersToRemove.add(N.registerCommand(e.KEY_DELETE_COMMAND,ee,e.COMMAND_PRIORITY_CRITICAL)),y.listenersToRemove.add(N.registerCommand(e.FORMAT_TEXT_COMMAND,U=>{let H=e.$getSelection();return!!D(H,g)&&(e.DEPRECATED_$isGridSelection(H)?(y.formatCells(U),!0):(e.$isRangeSelection(H)&&(U=n.$findMatchingParent(H.anchor.getNode(),V=>o(V)),o(U)),!1))},e.COMMAND_PRIORITY_CRITICAL)),y.listenersToRemove.add(N.registerCommand(e.CONTROLLED_TEXT_INSERTION_COMMAND,()=>{var U=e.$getSelection();return!!D(U,g)&&(e.DEPRECATED_$isGridSelection(U)?y.clearHighlight():e.$isRangeSelection(U)&&(U=n.$findMatchingParent(U.anchor.getNode(),H=>o(H)),o(U)),!1)},e.COMMAND_PRIORITY_CRITICAL)),y.listenersToRemove.add(N.registerCommand(e.KEY_TAB_COMMAND,U=>{var H=e.$getSelection();if(!D(H,g))return!1;if(e.$isRangeSelection(H)){let V=n.$findMatchingParent(H.anchor.getNode(),G=>o(G));if(!o(V))return!1;if(H.isCollapsed())return H=g.getCordsFromCellNode(V,y.grid),U.preventDefault(),$(y,g,H.x,H.y,U.shiftKey?"backward":"forward"),!0}return!1},e.COMMAND_PRIORITY_HIGH)),y.listenersToRemove.add(N.registerCommand(e.FOCUS_COMMAND,()=>g.isSelected(),e.COMMAND_PRIORITY_HIGH)),y.listenersToRemove.add(N.registerCommand(e.SELECTION_CHANGE_COMMAND,()=>{let U=e.$getSelection();var H=e.$getPreviousSelection();if(U&&e.$isRangeSelection(U)&&!U.isCollapsed()){var V=U.anchor.getNode(),G=U.focus.getNode();V=g.isParentOf(V);var ae=g.isParentOf(G);if(G=V&&!ae||ae&&!V,V=V&&ae&&!g.isSelected(),G)return H=U.isBackward(),V=e.$createRangeSelection(),G=g.getKey(),V.anchor.set(U.anchor.key,U.anchor.offset,U.anchor.type),V.focus.set(G,H?0:g.getChildrenSize(),"element"),L=!0,e.$setSelection(V),E(y),!0;if(V&&({grid:V}=y,U.getNodes().filter(o).length===V.rows*V.columns)){V=e.DEPRECATED_$createGridSelection(),G=g.getKey(),ae=g.getFirstChildOrThrow().getFirstChild();let se=g.getLastChildOrThrow().getLastChild();if(ae!=null&&se!=null)return V.set(G,ae.getKey(),se.getKey()),e.$setSelection(V),y.updateTableGridSelection(V),!0}}return U&&!U.is(H)&&(e.DEPRECATED_$isGridSelection(U)||e.DEPRECATED_$isGridSelection(H))&&y.gridSelection&&!y.gridSelection.is(H)?(e.DEPRECATED_$isGridSelection(U)&&U.gridKey===y.tableNodeKey?y.updateTableGridSelection(U):!e.DEPRECATED_$isGridSelection(U)&&e.DEPRECATED_$isGridSelection(H)&&H.gridKey===y.tableNodeKey&&y.updateTableGridSelection(null),!1):(y.hasHijackedSelectionStyles&&!g.isSelected()?(function(se){se.enableHighlightStyle(),p(se.grid,q=>{let F=q.elem;q.highlighted=!1,F.style.removeProperty("background-color"),F.style.removeProperty("caret-color"),F.getAttribute("style")||F.removeAttribute("style")})}(y),L=!1):!y.hasHijackedSelectionStyles&&g.isSelected()&&E(y),!1)},e.COMMAND_PRIORITY_CRITICAL)),y},Ae.getCellFromTarget=b,Ae.getTableSelectionFromTableElement=function(g){return g.__lexicalTableSelection},Ae}var hl,pl,gl,Wo=function(){return ul?dl:(ul=1,dl=cg())}(),Te=et(),Gi={};function dg(){if(hl)return Gi;hl=1;var e=No(),n=Rt(),a=Et(),i=et(),f=$t();function C(h,s){for(let v=0;v<s.length;v++){let b=s[v](h);if(b)return b}return null}let o=/[.,;\s]/;function l(h){var s;return h=h.getPreviousSibling(),i.$isElementNode(h)&&(h=h.getLastDescendant()),!(s=h===null||i.$isLineBreakNode(h))&&(s=i.$isTextNode(h))&&(h=h.getTextContent(),s=o.test(h[h.length-1])),s}function m(h){return h=h.getNextSibling(),i.$isElementNode(h)&&(h=h.getFirstDescendant()),h===null||i.$isLineBreakNode(h)||i.$isTextNode(h)&&o.test(h.getTextContent()[0])}function S(h,s,v){var b=h.getChildren();let T=b.length;for(let u=0;u<T;u++){let p=b[u];if(!i.$isTextNode(p)||!p.isSimpleText())return w(h),void v(null,h.getURL())}(s=C(b=h.getTextContent(),s))===null||s.text!==b?(w(h),v(null,h.getURL())):l(h)&&m(h)?((b=h.getURL())!==s.url&&(h.setURL(s.url),v(s.url,b)),s.attributes&&((b=h.getRel())!==s.attributes.rel&&(h.setRel(s.attributes.rel||null),v(s.attributes.rel||null,b)),(b=h.getTarget())!==s.attributes.target&&(h.setTarget(s.attributes.target||null),v(s.attributes.target||null,b)))):(w(h),v(null,h.getURL()))}function w(h){let s=h.getChildren();var v=s.length;for(--v;0<=v;v--)h.insertAfter(s[v]);return h.remove(),s.map(b=>b.getLatest())}return Gi.AutoLinkPlugin=function({matchers:h,onChange:s}){let[v]=n.useLexicalComposerContext();return function(b,T,u){f.useEffect(()=>{if(!b.hasNodes([e.AutoLinkNode]))throw Error("Minified Lexical error #77; visit https://lexical.dev/docs/error?code=77 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let p=(E,$)=>{u&&u(E,$)};return a.mergeRegister(b.registerNodeTransform(i.TextNode,E=>{var $=E.getParentOrThrow(),j=E.getPreviousSibling();if(e.$isAutoLinkNode($))S($,T,p);else if(!e.$isLinkNode($)){if(E.isSimpleText()&&(o.test(E.getTextContent()[0])||!e.$isAutoLinkNode(j))){j=$=E.getTextContent();let K=0,X=E;for(var D;(D=C(j,T))&&D!==null;){let te=D.index,Z=D.length,B=te+Z;var M=K+te,_=K+B,I=$,A=E;if((0<M?o.test(I[M-1]):l(A))&&(_<I.length?o.test(I[_]):m(A))){var P=void 0;K+te===0?[P,X]=X.splitText(K+Z):[,P,X]=X.splitText(K+te,K+te+Z),M=e.$createAutoLinkNode(D.url,D.attributes),(_=i.$createTextNode(D.text)).setFormat(P.getFormat()),_.setDetail(P.getDetail()),M.append(_),P.replace(M),u&&u(D.url,null),K=0}else K+=B;j=j.substring(B)}}$=E.getPreviousSibling(),D=E.getNextSibling(),P=E.getTextContent(),e.$isAutoLinkNode($)&&!o.test(P[0])&&($.append(E),S($,T,p),E=$.getURL(),u&&u(null,E)),e.$isAutoLinkNode(D)&&!o.test(P[P.length-1])&&(w(D),S(D,T,p),E=D.getURL(),u&&u(null,E))}}))},[b,T,u])}(v,h,s),null},Gi.createLinkMatcherWithRegExp=function(h,s=v=>v){return v=>{let b=h.exec(v);return b===null?null:{index:b.index,length:b[0].length,text:b[0],url:s(v)}}},Gi}var ug=function(){return gl?pl:(gl=1,pl=dg())}(),Ni=Rt(),Yi=Ud(),_r=ji(),po=Et();const{common:{texts:hg}}=$e.getLocalizedStrings();function pg({coords:e,alignment:n="top",style:a,onClick:i}){return t.jsx(gg,{style:{top:e.top,left:e.left,...n==="top"?{transform:`translateY(calc(-100% - ${r.sp1}))`}:{transform:`translateX(calc(-100% - ${r.sp1}))`},userSelect:"none",...a},onClick:f=>{f.stopPropagation(),i()},children:t.jsxs(mg,{children:[t.jsx(fg,{}),t.jsx(xg,{children:hg.addComment})]})})}const gg=x.div`
20
+ position: absolute;
21
+ background-color: ${e=>e.theme.colors.grey5};
22
+ border: 1px solid ${e=>e.theme.colors.grey3};
23
+ padding: ${r.sp1} ${r.sp0};
24
+ border-radius: ${r.sp2};
25
+ z-index: 5;
26
+ width: max-content;
27
+ top: ${r.sp7};
28
+ box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.grey1}3D`};
29
+ `,mg=x.div`
30
+ color: ${e=>e.theme.colors.hero};
31
+ height: ${r.sp6};
32
+ padding: ${r.sp0} ${r.sp3};
33
+ &:hover {
34
+ color: ${e=>e.theme.colors.primary};
35
+ background-color: ${e=>e.theme.colors.background};
36
+ }
37
+ cursor: pointer;
38
+ display: flex;
39
+ align-items: center;
40
+ `,fg=x(Zu)`
41
+ color: inherit;
42
+ margin-right: ${r.sp2};
43
+ height: ${r.sp3};
44
+ width: ${r.sp3};
45
+ `,xg=x(ot)`
46
+ color: inherit;
47
+ `,Wd=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.95093 16.1016V9.94922C9.95093 8.59078 10.6425 7.48828 12.0017 7.48828C13.361 7.48828 14.0525 8.59078 14.0525 9.94922V17.7422C14.0525 19.7815 12.8097 21.4336 10.7712 21.4336C8.73276 21.4336 7.48999 19.7815 7.48999 17.7422V7.48828C7.48999 4.76977 9.28401 2.56641 12.0017 2.56641C14.7194 2.56641 16.5134 4.76977 16.5134 7.48828V14.8711",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),yg=x.div`
48
+ display: flex;
49
+ min-width: ${r.sp5};
50
+ width: ${r.sp5};
51
+ height: ${r.sp5};
52
+ position: relative;
53
+ background-color: ${e=>e.theme.colors.grey5};
54
+ border: ${e=>`1px solid ${e.theme.colors.grey2}`};
55
+ border-radius: ${r.sp3};
56
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
57
+ align-items: center;
58
+ justify-content: center;
59
+ color: ${e=>e.color??xe.neutralGrey2Light};
60
+ cursor: pointer;
61
+ `,Cg=x(Wd)`
62
+ width: ${r.sp4};
63
+ height: ${r.sp4};
64
+ color: ${e=>e.theme.colors.primary};
65
+ `,bg=x(Yu)`
66
+ width: ${r.sp3};
67
+ height: ${r.sp3};
68
+ color: ${xe.important};
69
+ `,ml=x.div`
70
+ position: absolute;
71
+ top: -${r.sp1};
72
+ right: -${r.sp2};
73
+ display: flex;
74
+ align-items: center;
75
+ justify-content: center;
76
+ `;function wg({fileSizeError:e,loading:n,showAnimation:a=!1,setFileSizeError:i}){const[f,C]=d.useState(!1);return d.useEffect(()=>{if(!n&&a){C(!0);const o=setTimeout(()=>C(!1),2e3);return()=>clearTimeout(o)}if(e){const o=setTimeout(()=>i(!1),2e3);return()=>clearTimeout(o)}},[e,n,i,a]),t.jsx(yg,{children:n?t.jsx(Pn,{size:"Small",start:n,style:{alignItems:"center",display:"flex"}}):t.jsxs(t.Fragment,{children:[f&&a&&t.jsx(ml,{children:t.jsx(Pd,{shouldDisplay:f,width:20,height:20,animationInLoop:!1,onAnimationComplete:()=>C(!1)})}),e&&t.jsx(ml,{children:t.jsx(bg,{})}),t.jsx(Cg,{})]})})}const vg=x.div`
77
+ flex: none;
78
+ order: 0;
79
+ flex-grow: 0;
80
+ margin-right: 6px;
81
+ `,Sg=x.div`
82
+ flex: none;
83
+ order: 1;
84
+ flex-grow: 0;
85
+ display: flex;
86
+ align-items: center;
87
+ column-gap: 6px;
88
+ `,kg=x.div`
89
+ flex: none;
90
+ order: 3;
91
+ flex-grow: 0;
92
+ `,$g=x.div`
93
+ margin-right: ${r.sp2};
94
+ `,Eg=x(lt)`
95
+ display: flex;
96
+ color: ${e=>e.theme.colors.hero};
97
+ `,Tg=x(Fe)`
98
+ color: ${e=>e.theme.colors.primary};
99
+ `,jg=x.div`
100
+ display: flex;
101
+ flex-direction: column;
102
+ `,Ng=x.div`
103
+ display: flex;
104
+ flex-direction: row;
105
+ `,_g=x.img`
106
+ height: ${r.sp4};
107
+ width: ${r.sp4};
108
+ border-radius: 50%;
109
+ justify-content: center;
110
+ color: ${e=>e.theme.colors.hero};
111
+ `,Ig=x.div`
112
+ margin: ${r.sp2} 5px 6px;
113
+ border-radius: 50%;
114
+ width: ${r.sp1};
115
+ height: ${r.sp1};
116
+ background-color: ${e=>e.theme.colors.grey1};
117
+ order: 2;
118
+ `,Rg=({time:e,user:n,timeStampLabel:a})=>{const{cockpit:i,dateFormat:{visual:f},timeFormat:C}=$e.getLocalizedStrings();return t.jsxs(Ng,{children:[!!n&&t.jsx($g,{children:n?.photo!==void 0?t.jsx(_g,{src:n?.photo.href,alt:i.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=Xu},loading:"lazy"}):t.jsx(eh,{firstName:n?.firstName??"",lastName:n?.lastName??"",size:`${r.sp4}`})}),t.jsxs(jg,{children:[n&&t.jsx(Tg,{children:`${n.firstName} ${n.lastName}`}),!!e&&t.jsxs(Eg,{children:[a!=null?t.jsx(vg,{children:a}):null,e!=null&&t.jsxs(Sg,{children:[t.jsx(vp,{width:r.sp3,height:r.sp3}),ni(e.toISOString()).format(e.year()===Id().year()?f.MMMDFormat:f.MMMDCommaYYYYformat)]}),t.jsx(Ig,{}),e!=null&&t.jsx(kg,{children:ni(e.toISOString()).format(C.hhmmAFormat)})]})]})]})},qi={iconContainerMaxWidthHeight:new ge(W[6],W[7]),iconContainerMarginRight:new ge(12,W[3]),iconPadding:new ge(10,12)},Ag={title:new Gu("standardMedium","largeMedium")},Lg=x.div`
119
+ background-color: ${e=>e.theme.colors.grey5};
120
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
121
+ border-radius: ${r.sp2};
122
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
123
+ padding: ${r.sp3} ${r.sp4};
124
+ display: flex;
125
+ align-items: center;
126
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
127
+ pointer-events: ${e=>e.disabled?"none":"auto"};
128
+ &:hover {
129
+ outline: ${e=>e.disabled?"none":`1px solid ${e.theme.colors.primary}`};
130
+ }
131
+ `,Dg=x.div`
132
+ display: flex;
133
+ align-items: center;
134
+ column-gap: ${r.sp2};
135
+ justify-content: space-between;
136
+ width: 100%;
137
+ `,Og=x.div`
138
+ display: flex;
139
+ flex-direction: row;
140
+ align-items: center;
141
+ `,Mg=x.div`
142
+ display: flex;
143
+ flex-direction: row;
144
+ align-items: flex-start;
145
+ padding: ${e=>qi.iconPadding.valuePx(e.windowSize)};
146
+ background: ${e=>e.iconColor.toString()};
147
+ border-radius: ${r.sp11};
148
+ width: fit-content;
149
+ height: fit-content;
150
+ color: ${e=>e.isDarkMode?xe.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
151
+ max-width: ${e=>qi.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
152
+ max-height: ${e=>qi.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
153
+ margin-right: ${e=>qi.iconContainerMarginRight.valuePx(e.windowSize)};
154
+ `,Pg=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.20129 8.55841H8.85011",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.20129 11.6004H11.7072",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M16.1623 13.6136V7.20566L16.1668 6.05666C16.1668 5.95589 16.1483 5.85611 16.1123 5.76303C16.0763 5.66994 16.0235 5.58537 15.957 5.51416L12.0839 1.36303C12.0172 1.29154 11.9381 1.23487 11.851 1.19629C11.7638 1.1577 11.6705 1.13796 11.5762 1.13819H2.47558C2.2859 1.13819 2.10398 1.21895 1.96986 1.3627C1.83573 1.50645 1.76038 1.70142 1.76038 1.90472V18.0076C1.76038 18.2109 1.83573 18.4058 1.96986 18.5496C2.10398 18.6934 2.2859 18.7741 2.47558 18.7741H7.60821H15.3642",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M11.2159 1.20715V5.02387C11.2159 5.12591 11.236 5.22694 11.2751 5.32121C11.3141 5.41547 11.3714 5.50113 11.4435 5.57327C11.5157 5.64542 11.6013 5.70265 11.6956 5.7417C11.7898 5.78075 11.8909 5.80084 11.9929 5.80084H15.8088",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.20129 5.5174H8.3145",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.20129 14.6414H8.69612",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M19.4695 22.8615L16.2797 20.9737C15.9998 20.7731 15.7818 20.4979 15.6507 20.1795C15.5196 19.8611 15.4806 19.5123 15.5381 19.1727V17.2044L14.3421 16.0115C14.0743 15.7436 13.9239 15.3803 13.9239 15.0014C13.9239 14.6226 14.0743 14.2593 14.3421 13.9913C14.4085 13.9248 14.4812 13.8648 14.5592 13.8123C14.8341 13.6301 15.1634 13.5484 15.4916 13.581C15.8197 13.6136 16.1266 13.7586 16.3602 13.9913L18.0404 15.6725",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M16.341 8.40369L20.2861 11.8996C20.874 12.7217 21.1899 13.707 21.1898 14.7176V17.0673C21.1888 17.7421 21.4555 18.3898 21.9314 18.8682L22.2396 19.1755",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
155
+ width: ${r.sp4};
156
+ height: ${r.sp4};
157
+ `,Fg=x.div`
158
+ display: flex;
159
+ flex-direction: row;
160
+ align-items: center;
161
+ justify-content: space-between;
162
+ `,Bg=x.div``,zg=x.div`
163
+ display: flex;
164
+ align-items: center;
165
+ column-gap: ${r.sp2};
166
+ `,Hg=x.div`
167
+ ${e=>`${Ag.title.style(e.windowSize)}`};
168
+ color: ${e=>e.theme.colors.primary};
169
+ `,Ug=x(zr)`
170
+ color: ${xe.brandColorGoldDark};
171
+ `,Vg=x.div`
172
+ display: flex;
173
+ align-items: center;
174
+ justify-content: flex-start;
175
+ `,Wg=x(rd)`
176
+ color: ${e=>e.theme.colors.hero};
177
+ `,Kg=x.div`
178
+ display: flex;
179
+ color: ${e=>e.theme.colors.hero};
180
+ justify-content: flex-end;
181
+ `,Gg=x(ad)`
182
+ width: ${r.sp4};
183
+ height: ${r.sp4};
184
+ `;function Yg({totalItems:e,onClickCustomerRequest:n}){const a=$e.getLocalizedStrings(),i=kt(),f=Ie(),C=i.mode==="light"?new pi(i.colors.brandColorJadeLight):new pi(i.colors.brandColorJadeDark);return t.jsx(Lg,{disabled:e===0,onClick:e>0?n:void 0,children:t.jsxs(Dg,{children:[t.jsxs(Og,{children:[t.jsx(Mg,{iconColor:C,windowSize:f,isDarkMode:i.mode==="dark",children:t.jsx(Pg,{width:r.sp4,height:r.sp4})}),t.jsx(Fg,{children:t.jsxs(Bg,{children:[t.jsxs(zg,{children:[t.jsx(Hg,{windowSize:f,children:a.cockpit.monthEndReport.customerRequestSectionTitle}),t.jsx(Ug,{children:e>=0?`${a.common.strings.openingBrace}${e} ${e>1?a.common.texts.items:a.common.texts.item}${a.common.strings.closingBrace}`:a.common.strings.empty})]}),t.jsx(Vg,{children:t.jsx(Wg,{children:a.cockpit.monthEndReport.customerRequestSectionSubtitle})})]})})]}),t.jsx(Kg,{windowSize:f,children:t.jsx(Gg,{width:r.sp4,height:r.sp4})})]})})}const qg=x.div`
185
+ display: flex;
186
+ flex-direction: column;
187
+ `,Jg=x.div`
188
+ display: flex;
189
+ flex-direction: column;
190
+ `,Zg=x.div`
191
+ background-color: ${e=>e.theme.colors.grey5};
192
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
193
+ border-top-left-radius: ${r.sp2};
194
+ border-top-right-radius: ${r.sp2};
195
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
196
+ display: flex;
197
+ align-items: center;
198
+ `,Qg=x.div`
199
+ background-color: ${e=>e.theme.colors.grey5};
200
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
201
+ border-bottom-left-radius: ${r.sp2};
202
+ border-bottom-right-radius: ${r.sp2};
203
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
204
+ padding: 0;
205
+ display: flex;
206
+ align-items: center;
207
+ `;function Xg({previewMode:e,sectionId:n,subject:a}){const i=$e.getLocalizedStrings();return t.jsx(qg,{children:t.jsxs(Jg,{children:[t.jsx(Zg,{children:t.jsx(Sp,{label:`${i.cockpit.monthEndReport.sendEmailTo}${i.common.strings.colon}`,name:fl(n,"recipientEmailList"),registerOptions:{required:!0,disabled:e===!0},style:{paddingTop:r.sp2,paddingBottom:r.sp2,paddingRight:r.sp2},description:i.cockpit.monthEndReport.addUserForInsights,placeholder:i.cockpit.monthEndReport.addEmailAddress})}),t.jsx(Qg,{children:t.jsx(Wu,{text:{type:"text",name:fl(n,"subject"),placeholder:i.cockpit.monthEndReport.addSubject,defaultValue:a,options:{required:!0,disabled:e===!0}},label:{label:i.common.labels.subject,width:150},style:{flex:1}})})]})})}const fl=(e,n)=>`${e}.${n}`,em=x.div`
208
+ background-color: ${e=>e.theme.colors.grey3};
209
+ &:hover {
210
+ background-color: ${e=>e.theme.colors.primary};
211
+ }
212
+ width: fit-content;
213
+ border-radius: ${r.sp1};
214
+ border-color: ${e=>e.theme.colors.primary};
215
+ display: flex;
216
+ align-items: center;
217
+ padding: 6px 12px;
218
+ margin-top: ${r.sp3};
219
+ `,tm=x(Fe)`
220
+ margin-right: ${r.sp2};
221
+ overflow: visible;
222
+ text-overflow: ellipsis;
223
+ white-space: nowrap;
224
+ color: ${e=>e.theme.colors.hero};
225
+ `,nm=x(Fe)`
226
+ color: ${e=>e.theme.colors.grey1};
227
+ margin-right: ${r.sp2};
228
+ `,im=x(ko)`
229
+ width: ${r.sp3};
230
+ height: ${r.sp3};
231
+ background-color: transparent;
232
+ color: ${e=>e.theme.colors.champion};
233
+ &:hover {
234
+ color: ${e=>e.theme.colors.grey5};
235
+ }
236
+ border: none;
237
+ cursor: pointer;
238
+ margin-left: auto;
239
+ `,om=_d.forwardRef(({fileName:e,fileSize:n,onRemove:a,isRemovable:i},f)=>{const C=Ie();return t.jsxs(em,{className:"attachFileSeparator",ref:f,children:[t.jsx(tm,{windowSize:C,children:e}),t.jsx(nm,{windowSize:C,children:n}),i&&t.jsx(im,{onClick:a})]})}),Ir="data-highlight-id";function xl({rect:e,isOpenThread:n,threadId:a}){return t.jsx(rm,{[Ir]:a,rect:e,isOpenThread:n})}const rm=x.div`
240
+ position: absolute;
241
+ background: ${e=>e.isOpenThread?e.theme.mode==="dark"?xe.alertDark:xe.alertLight:e.theme.mode==="dark"?`${xe.alertDark}80`:`${xe.alertLight}80`};
242
+ width: ${e=>e.rect.width}px;
243
+ height: ${e=>e.rect.height}px;
244
+ top: ${e=>e.rect.top}px;
245
+ left: ${e=>e.rect.left}px;
246
+ `,di=726,go="<!--editorComesHere-->",Qr="editor-input",Rr="month-end-email-header-section",xi="month-end-email-editor-section",wo="month-end-email-body-section",yl="monthEndReportCanvas",Cl=W[3],Ar=W[3],{dateFormat:i5,common:{strings:{hash:mo,empty:bn}}}=$e.getLocalizedStrings(),Xn=(e,n)=>{const{startNodeId:a,startPath:i,endPath:f,startOffset:C,endOffset:o}=e;if(a==null||i==null||f==null||C==null||o==null)return null;const l=n&&a===xi?document.getElementsByClassName(Qr)[0]:document.getElementById(a);if(!(l instanceof HTMLElement))return null;const m=kl(i.split(",").map(h=>parseInt(h,10)),l),S=kl(f.split(",").map(h=>parseInt(h,10)),l);if(!m||!S)return null;const w=document.createRange();try{w.setStart(m,Math.min(C,m.textContent?.trim().length??0)),w.setEnd(S,Math.min(o,S.textContent?.trim().length??0))}catch(h){return console.warn("Failed to set range:",h),null}return w},Lr=(e,n)=>Xn(e,n)?.getBoundingClientRect().top??0,bl=e=>{for(;e!=null;){if(e instanceof HTMLElement&&(e.id||e.className===Qr))return e;e=e.parentElement}return null},am=()=>{const e=window.getSelection();if(!e||e.rangeCount===0)return null;const n=e.getRangeAt(0),{startContainer:a,endContainer:i}=n,f=e.anchorNode?.parentElement?.closest(mo+xi),C=bl(a),o=bl(i);if(!C||!o)return null;const l=Sl(a,C),m=Sl(i,o);return{startPath:l,startOffset:wl(a,n.startOffset),endPath:m,endOffset:wl(i,n.endOffset),startNodeId:f!=null?f.id:C.id,endNodeId:f!=null?f.id:o.id}},wl=(e,n)=>{if(e.nodeType===Node.TEXT_NODE){const a=e.textContent??bn,i=a.match(/^\s*/)?.[0],f=n-(i?.length!=null?i.length:0);return Math.max(0,Math.min(f,a.trim().length))}return n},vl=e=>{if(e){let n=e;for(;n;){if(n.nodeType===Node.ELEMENT_NODE){const a=n;if(a.id)return a}n=n.parentNode}}return null},Sl=(e,n)=>{const a=[];let i=e;for(;i!=null&&i!==n;){const f=i.parentNode;if(!f)break;const C=Array.from(f.childNodes).filter(o=>!(o.nodeType===Node.ELEMENT_NODE&&o.tagName==="BR"||o.nodeType===Node.TEXT_NODE&&!o.nodeValue?.trim()||o.nodeType===Node.ELEMENT_NODE&&window.getComputedStyle(o).display==="none"||o.nodeType===Node.ELEMENT_NODE&&o.getAttribute("contenteditable")==="false"&&o.getAttribute("data-lexical-cursor")==="true"||o.nodeType===Node.ELEMENT_NODE&&o.tagName==="P"&&Array.from(o.childNodes).every(l=>l.nodeType===Node.ELEMENT_NODE&&l.tagName==="BR"||l.nodeType===Node.TEXT_NODE&&l.nodeValue?.trim()==="")||o.nodeType===Node.ELEMENT_NODE&&o.tagName==="P"&&o.childNodes.length===0||o.nodeType===Node.COMMENT_NODE)).indexOf(i);a.unshift(C),i=f}return a},kl=(e,n)=>{let a=n;for(const i of e){if(a==null)return null;a=Array.from(a.childNodes).filter(f=>!(f.nodeType===Node.ELEMENT_NODE&&f.tagName==="BR"||f.nodeType===Node.TEXT_NODE&&!f.nodeValue?.trim()||f.nodeType===Node.ELEMENT_NODE&&window.getComputedStyle(f).display==="none"||f.nodeType===Node.ELEMENT_NODE&&f.getAttribute("contenteditable")==="false"&&f.getAttribute("data-lexical-cursor")==="true"||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="P"&&Array.from(f.childNodes).every(C=>C.nodeType===Node.ELEMENT_NODE&&C.tagName==="BR"||C.nodeType===Node.TEXT_NODE&&C.nodeValue?.trim()==="")||f.nodeType===Node.ELEMENT_NODE&&f.tagName==="P"&&f.childNodes.length===0||f.nodeType===Node.COMMENT_NODE))[i]??null}return a},sm=(e,n,a,i,f=!0)=>{const[C,o]=d.useState([]),[l,m]=d.useState(new Set),S=d.useRef([]),w=d.useRef(new Set),[h,s]=d.useState(0),v=d.useRef(),b=f?yi:So,{threads:T,openThread:u,removeThread:p,setOpenThread:E}=d.useContext(b),$=Vu(T,e,!1),j=Array.from($),D=j.map(c=>c[0]).join(","),M=d.useMemo(()=>j.map(c=>c[0]),[D]);d.useEffect(()=>{n.current!=null&&m(new Set([...M]))},[n,M]);const[_,I]=d.useState(!1),[A,P]=d.useState(!1);d.useEffect(()=>{I(i)},[i]),d.useEffect(()=>{let c=null;const N=j.filter(([k])=>w.current.has(k)).filter(([k,{metadata:y}])=>Xn(y,a)?.getClientRects()[0]!=null).map(([k])=>k);return i===!1&&h<3?w.current.size>0?(w.current.size===N.length&&N.every(k=>w.current.has(k))&&P(!0),c=setInterval(()=>{s(k=>k+1)},2e3)):(P(!1),s(0),c!=null&&clearInterval(c)):h>=3&&c!=null&&clearInterval(c),()=>{c&&clearInterval(c)}},[h,i]);const K=d.useMemo(()=>j.sort(([c,{metadata:N}],[k,{metadata:y}])=>{if(i&&!_)return 0;const R=Xn(N,a)?.getClientRects()[0],L=Xn(y,a)?.getClientRects()[0];if(R==null&&(w.current=new Set([...w.current,c])),L==null&&(w.current=new Set([...w.current,k])),R){const ee=new Set([...w.current]);ee.delete(c),w.current=new Set([...ee])}if(L){const ee=new Set([...w.current]);ee.delete(k),w.current=new Set([...ee])}if(!R||!L)return R?-1:L?1:0;const z=R.top-L.top,J=R.left-L.left;return z===0?J:z}),[D,l,i,_,A,a]),X=d.useCallback((c,N)=>{if(u==null)return;const k=K.findIndex(([y])=>y===u);if(k>=0){const y=Lr(K[k][1].metadata,a)-N,R=c[k].top;if(y-R<0){const L=y-R;u.includes(Qn)===!1&&S.current?.[k]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});for(const z of c)z.top+=L}}},[u,K,a]),te=d.useCallback(()=>{if(S.current?.length==null||S.current.length===0||!K.length||!n.current?.getBoundingClientRect())return;v.current=n.current?.getBoundingClientRect();const c=v.current?.top??0,N=L=>Lr(L,a)-c,k=(L,z,J)=>L+z+Cl>J,[,{metadata:y}]=K[0],R=[{top:N(y),left:Ar}];for(let L=1;L<K.length;L++){const z=L-1,J=R[z].top,ee=S.current[z]?.getBoundingClientRect().height??0,[,{metadata:U}]=K[L],H=N(U);R[L]={top:k(J,ee,H)?J+ee+Cl:H,left:Ar}}return X(R,c),R},[n,a,K,X]),Z=d.useCallback(()=>{o(c=>{const N=te();return N&&!Br(c,N)?N:c})},[te]),B=d.useMemo(()=>new ResizeObserver(Z),[Z]);d.useEffect(()=>{const c=te();return c&&o(c),()=>{B.disconnect()}},[te,B,K,l,i]),d.useEffect(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[Z]);const O=d.useCallback(c=>{m(N=>{const k=new Set([...N]);return k.delete(c),k}),p(c),E(null)},[p,E]),g=d.useCallback(c=>{u==null||c.key!=="Escape"||(u&&$.get(u)?.comments.length===0?O(u):E(null))},[O,u,E,$]);return d.useEffect(()=>(document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}),[g]),d.useEffect(()=>{const c=N=>{if(window.getSelection()?.isCollapsed!==!0)return;const k=document.elementsFromPoint(N.clientX,N.clientY).find(y=>y.matches(`[${Ir}]`))?.getAttribute(Ir);k!=null&&E(k)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)}),{observer:B,sortedThreads:K,threadsPositions:C,threadsRefs:S,sheetContainerBoundingClientRect:v,threadsReady:l,unresolvedThreadsMap:$,setThreadsPositions:o,handleRemoveFloatingThread:O}},lm=e=>{let n=bn;const a=cm(e);if(a==null||!a)return n;if(Hi.test(a)){const i=Hi.lastIndex,f=a.substring(0,i).replace("<style>","<div><style>").replace(go,`</div>${go}`).replace(a.match(Hi)?.[0]??bn,"<div>".concat(a.match(Hi)?.[0]??bn,"</div>")),C=a.substring(i),o=Ku.exec(C)?.index,l=`<div id="${Rr}">`.concat(f).concat("</div>");let m=bn,S=bn;if(o!=null){const w=C.substring(0,o-1),h=C.substring(o);m=`<div id="${xi}">`.concat(w).concat("</div>"),S=`<div id="${wo}">`.concat(h).concat("</div>"),n=l.concat(m.concat(S))}else n=l.concat(C)}else{const i=a.split(go),f=i[1]!=null?`<div id="${wo}">`.concat(i[1]).concat("</div>"):bn;n=`<div id="${Rr}">`.concat(i[0]).concat("</div>").concat(f)}return n},cm=e=>{if(e==null)return bn;let n=e.replace(qu,`<span class=${kr}>`);return n=n.replace(/<\/p>/g,"</span>"),n},dm=x.div`
247
+ position: relative;
248
+ `,um=x.div``,hm=x.div`
249
+ align-items: center;
250
+ justify-content: center;
251
+ display: flex;
252
+ width: 300px;
253
+ box-sizing: border-box;
254
+ cursor: pointer;
255
+ flex-direction: column;
256
+ background-color: ${e=>e.theme.colors.grey5};
257
+ border-radius: ${r.sp2};
258
+ ${yt.standardRegular.css};
259
+ `;function pm({observer:e,editorMode:n,threadsPositions:a,canvasContainerRef:i,threadsRefs:f,sortedThreads:C,unresolvedThreadsMap:o,style:l,handleRemoveFloatingThread:m}){const{openThread:S,removeThread:w,setOpenThread:h}=d.useContext(yi),[s,v]=d.useState(S!=null),[b,T]=d.useState(i.current!=null);d.useEffect(()=>{T(i.current!=null)},[i.current]);const u=i.current?.getBoundingClientRect()?.top??0;d.useEffect(()=>{S!=null&&s===!1&&v(!0)},[S]);const p=kp(),E=d.useCallback(({body:$},j,D)=>{j.preventDefault(),j.stopPropagation(),p({body:$,metadata:D}),S!=null&&(w(S),h(null))},[p,S,w,h]);return t.jsx(dm,{style:l,children:C.map(([$,{metadata:j}],D)=>{if(!Xn(j,n)||b===!1)return null;const M=o.get($),_=S===$;return t.jsx(Ot,{onClickAway:()=>{S!=null&&(v(!1),m(S))},children:t.jsx(um,{ref:I=>{f.current&&I instanceof Element&&(f.current[D]=I,e.observe(I))},className:"floating-thread-container "+(S===$?"open ":"")+($.includes(Qn)===!0?"new-thread":""),onClick:I=>{I.stopPropagation(),I.preventDefault()},style:{position:"absolute",left:(a[D]?.left??0)+ +(_?-48:Ar),top:(a[D]?.top??Lr(j,n)-u)-W[6],transition:"all 0.8s ease 0.1s",transitionProperty:S!=null&&S.includes(Qn)===!1?"left, left":"top, left",visibility:o.has($)?"visible":"hidden"},children:M!=null?M.id.includes(Qn)===!0?t.jsx(hm,{children:t.jsx($p,{onComposerSubmit:(I,A)=>E(I,A,M.metadata),onCollapsedChange:I=>{S!==M.id&&I===!1&&h(M.id)},showAttachments:!0,defaultCollapsed:!1,autoFocus:!0,style:{userSelect:"none"}})}):t.jsx(Qu,{thread:M,showDeleted:!1,showActions:!0,showReactions:!0,indentContent:!0,showAttachments:!0,autoExpand:S===M.id,autoFocus:s,style:{width:"300px"},textOverrides:{},onThreadClick:I=>h(M.id),onReplyElementClick:I=>{I&&h(M.id)}},M.id):null})},$)})})}class Kd extends Te.ParagraphNode{__customClass;static getType(){return"custom-paragraph"}constructor(n,a){super(a),this.__customClass=n}createDOM(n){const a=super.createDOM(n);return a.classList.add(this.__customClass),a}updateDOM(n,a,i){const f=super.updateDOM(n,a,i);return this.__customClass!==n.__customClass&&(a.classList.remove(n.__customClass),a.classList.add(this.__customClass)),f}exportJSON(){return{...super.exportJSON(),type:"custom-paragraph",customClass:this.__customClass}}}function $l(e){return Te.$applyNodeReplacement(new Kd(e))}const gm=Ti`
260
+ from {
261
+ background-color: ${xe.brandColorGoldLight};
262
+ }
263
+ to {
264
+ background-color: transparent;
265
+ }
266
+ `,mm=()=>t.jsx(sp,{styles:ke`
267
+ .lexicalEditor__textBold {
268
+ font-weight: ${oi.bold};
269
+ }
270
+
271
+ .lexicalEditor__textItalic {
272
+ font-style: ${Ju.italic};
273
+ }
274
+
275
+ .lexicalEditor__textUnderline {
276
+ text-decoration: underline;
277
+ }
278
+
279
+ .lexicalEditor__ol1 {
280
+ padding: 0;
281
+ margin: 0;
282
+ list-style-position: inside;
283
+ }
284
+
285
+ .lexicalEditor__ol2 {
286
+ padding: 0;
287
+ margin: 0;
288
+ list-style-type: upper-alpha;
289
+ list-style-position: inside;
290
+ }
291
+
292
+ .lexicalEditor__ol3 {
293
+ padding: 0;
294
+ margin: 0;
295
+ list-style-type: lower-alpha;
296
+ list-style-position: inside;
297
+ }
298
+
299
+ .lexicalEditor__ol4 {
300
+ padding: 0;
301
+ margin: 0;
302
+ list-style-type: upper-roman;
303
+ list-style-position: inside;
304
+ }
305
+
306
+ .lexicalEditor__ol5 {
307
+ padding: 0;
308
+ margin: 0;
309
+ list-style-type: lower-roman;
310
+ list-style-position: inside;
311
+ }
312
+
313
+ .lexicalEditor__ul {
314
+ padding: 0;
315
+ margin: 0;
316
+ list-style-position: inside;
317
+ }
318
+
319
+ .lexicalEditor__listItem {
320
+ margin: 0 ${r.sp5};
321
+ }
322
+
323
+ .lexicalEditor__nestedListItem {
324
+ list-style-type: none;
325
+ }
326
+
327
+ .lexicalEditor__nestedListItem:before,
328
+ .lexicalEditor__nestedListItem:after {
329
+ display: none;
330
+ }
331
+ .highlighted {
332
+ animation: ${gm} 2s ease-in-out;
333
+ }
334
+ `}),fm=[e=>{const n=ih.exec(e);return n&&{index:n.index,length:n[0].length,text:n[0],url:n[0]}},e=>{const n=oh.exec(e);return n&&{index:n.index,length:n[0].length,text:n[0],url:`mailto:${n[0]}`}}];function xm(){return t.jsx(ug.AutoLinkPlugin,{matchers:fm})}function ym(){const[e]=Ni.useLexicalComposerContext();return d.useEffect(()=>jr.registerCodeHighlighting(e),[e]),null}const Cm=()=>{const[e]=Ni.useLexicalComposerContext();return e.registerCommand(Te.PASTE_COMMAND,(n,a)=>(a.update(()=>{const i=Te.$getSelection();if(Te.$isRangeSelection(i)&&n.type==="beforeinput"){const f=n.dataTransfer?.getData("text/plain");f!=null&&i.insertText(f)}return!0}),!0),Te.COMMAND_PRIORITY_LOW),null},bm=()=>{const[e]=Ni.useLexicalComposerContext();return e.registerCommand(Te.KEY_TAB_COMMAND,n=>{const a=n;return a.preventDefault(),e.dispatchCommand(a.shiftKey?Te.OUTDENT_CONTENT_COMMAND:Te.INDENT_CONTENT_COMMAND,void 0)},Te.COMMAND_PRIORITY_EDITOR),null};function wm(e){const n=Te.$getSelection();if(!Te.$isRangeSelection(n))return!1;const a=function(f){const C=f?.getNodes();return C?.length===0?new Set([f.anchor.getNode().getParentOrThrow(),f.focus.getNode().getParentOrThrow()]):new Set(C.map(o=>Te.$isElementNode(o)?o:o.getParentOrThrow()))}(n);let i=0;for(const f of a)if(St.$isListNode(f))i=Math.max(St.$getListDepth(f)+1,i);else if(St.$isListItemNode(f)){const C=f.getParent();if(!St.$isListNode(C))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(St.$getListDepth(C)+1,i)}return i<=e}function vm({maxDepth:e}){const[n]=Ni.useLexicalComposerContext();return d.useEffect(()=>n.registerCommand(Te.INDENT_CONTENT_COMMAND,()=>!wm(e??7),Te.COMMAND_PRIORITY_HIGH),[n,e]),null}const Sm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M7.60846 2V21.9982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M7.60847 11.5664H13.2601C14.5285 11.5664 15.7448 11.0626 16.6417 10.1657C17.5385 9.26889 18.0423 8.05252 18.0423 6.7842C18.0423 5.51589 17.5385 4.29952 16.6417 3.40269C15.7448 2.50585 14.5285 2.00201 13.2601 2.00201H5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13.2601 11.5661H14.5644C15.948 11.5661 17.2749 12.1157 18.2533 13.0941C19.2317 14.0725 19.7813 15.3994 19.7813 16.783C19.7813 18.1667 19.2317 19.4936 18.2533 20.472C17.2749 21.4503 15.948 22 14.5644 22H5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),km=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3.78525 5H20.7448",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.67783 9.46301H19.8522",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.57047 18.3891H18.9596",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),$m=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M22.375 3H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M22.375 9H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M22.375 15H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M18.1562 21H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.48409 8L7.7924 11.8119C7.81051 11.8279 7.82501 11.8477 7.83494 11.8698C7.84487 11.8918 7.85001 11.9158 7.85001 11.94C7.85001 11.9642 7.84487 11.9882 7.83494 12.0102C7.82501 12.0323 7.81051 12.0521 7.7924 12.0681L3.48409 15.88",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Em=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M18.9595 1.5L5.57042 22.03",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 22.03H9.14086",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.3891 1.5H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Tm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.979614 5H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M0.979614 9.31012H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M0.979614 13.8163H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M0.979614 18.1265H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),jm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M2 5H19.8522",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 9.46301H16.2817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 18.3891H18.9596",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Nm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13.6039 13.8557C13.6039 14.3291 13.792 14.7832 14.1268 15.118C14.4616 15.4528 14.9157 15.6409 15.3891 15.6409H19.8522C20.5618 15.639 21.2418 15.3563 21.7436 14.8545C22.2454 14.3527 22.5281 13.6727 22.53 12.963V11.1778C22.5279 10.4683 22.2451 9.78839 21.7433 9.28666C21.2416 8.78493 20.5617 8.50212 19.8522 8.5H15.3891C14.9157 8.5 14.4616 8.68809 14.1268 9.02288C13.792 9.35767 13.6039 9.81175 13.6039 10.2852",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.9261 13.8557C10.9261 14.3291 10.738 14.7832 10.4032 15.118C10.0684 15.4528 9.61434 15.6409 9.14087 15.6409H4.67783C3.9682 15.639 3.28818 15.3563 2.7864 14.8545C2.28462 14.3527 2.00188 13.6727 2 12.963V11.1778C2.00212 10.4683 2.28493 9.78839 2.78666 9.28666C3.28839 8.78493 3.96827 8.50212 4.67783 8.5H9.14087C9.61434 8.5 10.0684 8.68809 10.4032 9.02288C10.738 9.35767 10.9261 9.81175 10.9261 10.2852",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M7.35565 12.0696H17.1743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_m=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M2 4.78522C2 5.25869 2.18808 5.71276 2.52288 6.04756C2.85767 6.38235 3.31175 6.57044 3.78522 6.57044C4.25869 6.57044 4.71276 6.38235 5.04756 6.04756C5.38235 5.71276 5.57044 5.25869 5.57044 4.78522C5.57044 4.31175 5.38235 3.85767 5.04756 3.52288C4.71276 3.18809 4.25869 3 3.78522 3C3.31175 3 2.85767 3.18809 2.52288 3.52288C2.18808 3.85767 2 4.31175 2 4.78522Z",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.14087 4.78522H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 11.9261C2 12.3996 2.18808 12.8536 2.52288 13.1884C2.85767 13.5232 3.31175 13.7113 3.78522 13.7113C4.25869 13.7113 4.71276 13.5232 5.04756 13.1884C5.38235 12.8536 5.57044 12.3996 5.57044 11.9261C5.57044 11.4526 5.38235 10.9985 5.04756 10.6637C4.71276 10.329 4.25869 10.1409 3.78522 10.1409C3.31175 10.1409 2.85767 10.329 2.52288 10.6637C2.18808 10.9985 2 11.4526 2 11.9261Z",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.14087 11.9261H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 19.067C2 19.5404 2.18808 19.9945 2.52288 20.3293C2.85767 20.6641 3.31175 20.8522 3.78522 20.8522C4.25869 20.8522 4.71276 20.6641 5.04756 20.3293C5.38235 19.9945 5.57044 19.5404 5.57044 19.067C5.57044 18.5935 5.38235 18.1394 5.04756 17.8046C4.71276 17.4698 4.25869 17.2817 3.78522 17.2817C3.31175 17.2817 2.85767 17.4698 2.52288 17.8046C2.18808 18.1394 2 18.5935 2 19.067Z",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.14087 19.067H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"})),Im=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M1.625 3H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1.625 9H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1.625 15H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.84375 21H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M20.5159 8L16.2076 11.8119C16.1895 11.8279 16.175 11.8477 16.1651 11.8698C16.1551 11.8918 16.15 11.9158 16.15 11.94C16.15 11.9642 16.1551 11.9882 16.1651 12.0102C16.175 12.0323 16.1895 12.0521 16.2076 12.0681L20.5159 15.88",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Rm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M21.74 2V8.24772H15.4923",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M21.74 8.2496C20.129 6.03385 17.709 4.54298 15.0054 4.10065C12.3019 3.65833 9.53293 4.30026 7.29977 5.88707C5.97812 6.83145 4.8993 8.07583 4.15188 9.51804C3.40446 10.9602 3.00976 12.5592 3.00018 14.1835C2.9906 15.8079 3.36641 17.4113 4.09676 18.8623C4.82711 20.3132 5.89117 21.5702 7.20159 22.5301",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Am=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.57047 5H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.24826 9.46307H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.57047 18.3892H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Lm=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3 21.2H21.7",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.25217 2.50165V11.8516C6.25217 13.4689 6.89462 15.0199 8.03819 16.1635C9.18175 17.307 10.7328 17.9495 12.35 17.9495C13.9672 17.9495 15.5183 17.307 16.6618 16.1635C17.8054 15.0199 18.4478 13.4689 18.4478 11.8516V2.50165",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.81304 2.5H8.6913",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M16.0087 2.5H20.887",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function El(){return t.jsx("div",{className:"divider"})}function Tl(e,n){n===null?(e.style.opacity="0",e.style.top="-1000px",e.style.left="-1000px"):(e.style.opacity="1",e.style.top=`${n.top+n.height+window.pageYOffset+10}px`,e.style.left=n.left+window.pageXOffset-e.offsetWidth/2+n.width/2+"px")}function Dm({editor:e}){const n=kt(),a=d.useRef(null),i=d.useRef(null),f=d.useRef(!1),[C,o]=d.useState(""),[l,m]=d.useState(!1),[S,w]=d.useState(null),h=d.useCallback(()=>{const s=Te.$getSelection();if(Te.$isRangeSelection(s)){const p=Gd(s),E=p.getParent();ln.$isLinkNode(E)?o(E.getURL()):ln.$isLinkNode(p)?o(p.getURL()):o("")}const v=a.current,b=window.getSelection(),T=document.activeElement;if(v===null)return;const u=e.getRootElement();if(s!==null&&b!=null&&!b.isCollapsed&&u!==null&&u.contains(b.anchorNode)){const p=b.getRangeAt(0);let E;if(b.anchorNode===u){let $=u;for(;$.firstElementChild!=null;)$=$.firstElementChild;E=$.getBoundingClientRect()}else E=p.getBoundingClientRect();f.current||Tl(v,E),w(s)}else(!T||T.className!=="link-input")&&(Tl(v,null),w(null),m(!1),o(""));return!0},[e]);return d.useEffect(()=>po.mergeRegister(e.registerUpdateListener(({editorState:s})=>{s.read(()=>{h()})}),e.registerCommand(Te.SELECTION_CHANGE_COMMAND,()=>(h(),!0),1)),[e,h]),d.useEffect(()=>{e.getEditorState().read(()=>{h()})},[e,h]),d.useEffect(()=>{l&&i.current!=null&&i.current?.focus()},[l]),t.jsx(Bm,{ref:a,children:l?t.jsx("input",{ref:i,className:"link-input",value:C,onChange:s=>{o(s.target.value)},onKeyDown:s=>{s.key==="Enter"?(s.preventDefault(),S!==null&&(C!==""&&e.dispatchCommand(ln.TOGGLE_LINK_COMMAND,C),m(!1))):s.key==="Escape"&&(s.preventDefault(),m(!1))}}):t.jsxs(zm,{className:"link-input",children:[t.jsx(Hm,{href:C,target:"_blank",rel:"noopener noreferrer",children:C}),t.jsx(ft,{className:"link-edit",type:"button",tabIndex:0,onMouseDown:s=>s.preventDefault(),onClick:()=>{m(!0)},children:t.jsx(th,{style:{width:r.sp3,height:r.sp3,color:n.colors.primary}})})]})})}function Gd(e){const n=e.anchor,a=e.focus,i=e.anchor.getNode(),f=e.focus.getNode();return i===f?i:e?.isBackward()?_r.$isAtNodeEnd(a)?i:f:_r.$isAtNodeEnd(n)?f:i}function Om({fileAttached:e,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,customerRequestData:i,initialHtmlString:f,handleFileInputClick:C,improveUsingZeniGPTClick:o,setZeniRequestsHtml:l}){const[m]=Ni.useLexicalComposerContext(),S=d.useRef(null),[w,h]=d.useState(!1),[s,v]=d.useState(!1),[b,T]=d.useState("paragraph"),[,u]=d.useState(!1),[p,E]=d.useState(!1),[$,j]=d.useState(!1),[D,M]=d.useState(!1),[_,I]=d.useState(!1),A=d.useCallback(g=>{const c=new DOMParser().parseFromString(g,"text/html"),N=c.getElementsByTagName("p");for(let R=N.length-1;R>=0;R--){const L=N[R];L.textContent?.trim()===""&&(L.innerHTML="")}const k=Yi.$generateNodesFromDOM(m,c),y=Te.$getRoot();y.clear(),y.append(...k)},[m]);d.useEffect(()=>{m.update(()=>{f!=null&&f.length>0&&A(f)})},[m,f,A]),d.useEffect(()=>{m.update(()=>{a===!0?m.setEditable(!1):m.setEditable(!0)})},[m,a]),d.useEffect(()=>po.mergeRegister(m.registerCommand(Te.BLUR_COMMAND,()=>{const g=Yi.$generateHtmlFromNodes(m,null);return l?.(g),!0},1)),[m,l]);const P=d.useCallback(g=>{m.update(()=>{const c=new DOMParser,N=$l(kr),k=St.$createListNode("bullet");g.forEach(z=>{const J=c.parseFromString(z,"text/html"),ee=Yi.$generateNodesFromDOM(m,J),U=St.$createListItemNode();ee.forEach(H=>{U.append(H)}),k.append(U)}),N.append(k);const y=$l(kr);y.append(Te.$createTextNode(""));const R=Te.$getRoot(),L=R.getFirstChild();L?L.insertBefore(N):R.append(N),L?L.insertBefore(y):R.append(y),R.getFirstChild()===null&&R.append(Te.$createParagraphNode().append(Te.$createTextNode($e.getLocalizedStrings().common.strings.empty))),setTimeout(()=>{m.update(()=>{const z=St.ListNode.clone(k);N.replace(z)})},1e3)})},[m]);d.useEffect(()=>{i.length>0&&P(i)},[i,P]);const K=d.useCallback(()=>{const g=Te.$getSelection();if(Te.$isRangeSelection(g)){const c=g.anchor.getNode(),N=c.getKey()==="root"?c:c.getTopLevelElementOrThrow(),k=N.getKey();if(m.getElementByKey(k)!==null)if(St.$isListNode(N)){const L=po.$getNearestNodeOfType(c,St.ListNode),z=L?L.getTag():N.getTag();T(z)}else{const L=Nr.$isHeadingNode(N)?N.getTag():N.getType();T(L)}I(g.hasFormat("bold")),j(g.hasFormat("italic")),M(g.hasFormat("underline")),u(_r.$isParentElementRTL(g));const y=Gd(g),R=y.getParent();ln.$isLinkNode(R)||ln.$isLinkNode(y)?E(!0):E(!1)}},[m]);d.useEffect(()=>po.mergeRegister(m.registerUpdateListener(({editorState:g})=>{g.read(()=>{K()})}),m.registerCommand(Te.SELECTION_CHANGE_COMMAND,g=>(K(),!1),1),m.registerCommand(Te.CAN_UNDO_COMMAND,g=>(h(g),!1),1),m.registerCommand(Te.CAN_REDO_COMMAND,g=>(v(g),!1),1)),[m,K]);const X=d.useCallback(()=>{p?m.dispatchCommand(ln.TOGGLE_LINK_COMMAND,null):m.dispatchCommand(ln.TOGGLE_LINK_COMMAND,"https://")},[m,p]),{cockpit:{monthEndReport:{toolbarPluginTooltip:te,editorZeniGPTButton:Z}},common:{documents:B,strings:O}}=$e.getLocalizedStrings();return t.jsxs("div",{className:"toolbar",ref:S,children:[t.jsxs(jl,{children:[t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.bold}),children:t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item spaced "+(_?"active":""),style:{padding:r.sp1},disabled:a,"aria-label":"Format Bold",children:t.jsx(Sm,{className:"format"})})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.italic}),children:t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item spaced "+($?"active":""),style:{padding:r.sp1},disabled:a,"aria-label":"Format Italics",children:t.jsx(Em,{className:"format"})})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.underline}),children:t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item spaced "+(D?"active":""),style:{padding:r.sp1},disabled:a,"aria-label":"Format Underline",children:t.jsx(Lm,{className:"format"})})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.link}),children:t.jsxs(ft,{type:"button",onClick:X,className:"toolbar-item spaced "+(p?"active":""),style:{padding:r.sp1},disabled:a,"aria-label":"Insert Link",children:[t.jsx(Um,{className:"format link"}),t.jsx(Nm,{className:"format"})]})}),p&&fi.createPortal(t.jsx(Dm,{editor:m}),document.body),t.jsx(El,{}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.list}),children:t.jsx(ft,{type:"button",onClick:()=>{b!=="ul"?m.dispatchCommand(St.INSERT_UNORDERED_LIST_COMMAND,void 0):m.dispatchCommand(St.REMOVE_LIST_COMMAND,void 0)},className:"toolbar-item spaced "+(b==="ul"?"active":""),style:{padding:r.sp1},disabled:a,"aria-label":"Format Underline",children:t.jsx(_m,{className:"format"})})}),t.jsx(El,{}),t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_ELEMENT_COMMAND,"left")},className:"toolbar-item spaced",style:{padding:r.sp1},disabled:a,"aria-label":"Left Align",children:t.jsx(jm,{className:"format"})}),t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_ELEMENT_COMMAND,"center")},className:"toolbar-item spaced",style:{padding:r.sp1},disabled:a,"aria-label":"Center Align",children:t.jsx(km,{className:"format"})}),t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_ELEMENT_COMMAND,"right")},className:"toolbar-item spaced",style:{padding:r.sp1},disabled:a,"aria-label":"Right Align",children:t.jsx(Am,{className:"format"})}),t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.FORMAT_ELEMENT_COMMAND,"justify")},className:"toolbar-item",style:{padding:r.sp1},disabled:a,"aria-label":"Justify Align",children:t.jsx(Tm,{className:"format"})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.indent}),children:t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.INDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:r.sp1},disabled:a,"aria-label":"Indent",children:t.jsx($m,{className:"format"})})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.outdent}),children:t.jsx(ft,{type:"button",onClick:()=>{m.dispatchCommand(Te.OUTDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:r.sp1},disabled:a,"aria-label":"Outdent",children:t.jsx(Im,{className:"format"})})}),t.jsx(Se,{placement:"bottom",style:{padding:`2px ${r.sp2}`},title:t.jsxs(Vm,{children:[t.jsxs(Nt,{children:[B.attachFile,O.space]}),t.jsx(Nt,{children:B.formatImageAndDocumentAttachments}),t.jsxs(Nt,{children:[O.space,B.attachmentFileSize700KB]})]}),children:t.jsx(ft,{type:"button",onClick:C,className:"toolbar-item",style:{padding:r.sp1},disabled:a||e,"aria-label":"Attachment",children:t.jsx(Wd,{className:"format"})})})]}),t.jsxs(jl,{children:[n?t.jsx(Se,{placement:"top",title:t.jsx(Nt,{children:Z.tooltip}),children:t.jsxs(Pm,{isZeniGPTResponseLoading:a,type:"button",onClick:()=>{m.update(()=>{const g=Yi.$generateHtmlFromNodes(m,null);o?.(g)})},disabled:a,children:[t.jsx(Fm,{}),t.jsx(Mm,{children:Z.label})]})}):null,t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.undo}),children:t.jsx(ft,{type:"button",disabled:!w||a,onClick:()=>{m.dispatchCommand(Te.UNDO_COMMAND,void 0)},className:"toolbar-item spaced",style:{padding:r.sp1},"aria-label":"Undo",children:t.jsx(Tp,{className:"format"})})}),t.jsx(Se,{placement:"bottom",title:t.jsx(Nt,{children:te.redo}),children:t.jsx(ft,{type:"button",disabled:!s||a,onClick:()=>{m.dispatchCommand(Te.REDO_COMMAND,void 0)},className:"toolbar-item",style:{padding:r.sp1},"aria-label":"Redo",children:t.jsx(Rm,{className:"format"})})})]})]})}const ft=x.button``,jl=x.div`
335
+ display: flex;
336
+ align-items: center;
337
+ gap: ${r.sp1};
338
+ `,Nt=x.div`
339
+ padding: 2px ${r.sp2};
340
+ color: ${xe.neutralGrey4Light};
341
+ `,Mm=x(nh)`
342
+ color: ${xe.neutralGrey5Light};
343
+ `,Pm=x.button`
344
+ display: flex;
345
+ align-items: center;
346
+ justify-content: center;
347
+ min-width: 165px;
348
+ background-color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.brandColorSapphireLight:e.theme.colors.brandColorSapphire};
349
+ color: ${xe.neutralGrey5Light};
350
+ border-radius: ${r.sp1};
351
+ border: none;
352
+ height: 26px;
353
+ &:hover {
354
+ background-color: ${xe.brandColorSapphireDark};
355
+ }
356
+ `,Fm=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.74707 6.07052L11.2433 2.02682C11.5032 1.32439 12.4968 1.32439 12.7567 2.02683L14.2529 6.07052C14.8833 7.77389 16.2261 9.1167 17.9295 9.74707L21.9732 11.2433C22.6756 11.5032 22.6756 12.4968 21.9732 12.7567L17.9295 14.2529C16.2261 14.8833 14.8833 16.2261 14.2529 17.9295L12.7567 21.9732C12.4968 22.6756 11.5032 22.6756 11.2433 21.9732L9.74707 17.9295C9.1167 16.2261 7.77389 14.8833 6.07052 14.2529L2.02682 12.7567C1.32439 12.4968 1.32439 11.5032 2.02683 11.2433L6.07052 9.74707C7.77389 9.1167 9.1167 7.77389 9.74707 6.07052Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.5})))`
357
+ height: ${r.sp3};
358
+ width: ${r.sp3};
359
+ margin-right: ${r.sp1};
360
+ color: ${xe.brandColorPearl};
361
+ `,Bm=x.div`
362
+ position: absolute;
363
+ z-index: 100;
364
+ top: -10000px;
365
+ left: -10000px;
366
+ margin-top: -6px;
367
+ max-width: 300px;
368
+ width: 100%;
369
+ opacity: 0;
370
+ border: 1px solid ${e=>e.theme.colors.grey3};
371
+ background-color: ${e=>e.theme.colors.grey5};
372
+ box-shadow: ${r.sp0} 5px 10px ${xe.overlayLight};
373
+ border-radius: ${r.sp2};
374
+ transition: opacity 0.5s;
375
+ z-index: 10000;
376
+
377
+ .link-input {
378
+ display: block;
379
+ box-sizing: border-box;
380
+ padding: ${r.sp3};
381
+ border-radius: ${r.sp3};
382
+ background-color: ${e=>e.theme.colors.grey5};
383
+ font-size: 15px;
384
+ color: ${e=>e.theme.colors.primary};
385
+ border: 0;
386
+ outline: 0;
387
+ position: relative;
388
+ font-family: inherit;
389
+ }
390
+
391
+ button.link-edit {
392
+ display: flex;
393
+ align-items: center;
394
+ width: 35px;
395
+ position: absolute;
396
+ right: ${r.sp0};
397
+ top: ${r.sp0};
398
+ bottom: ${r.sp0};
399
+ cursor: pointer;
400
+ background: none;
401
+ border: none;
402
+ padding: 0;
403
+ margin: 0;
404
+
405
+ &:focus {
406
+ outline: none;
407
+ }
408
+ }
409
+
410
+ .link-input a {
411
+ color: ${e=>e.theme.colors.link};
412
+ text-decoration: none;
413
+ display: block;
414
+ white-space: nowrap;
415
+ overflow: hidden;
416
+ margin-right: 30px;
417
+ text-overflow: ellipsis;
418
+ }
419
+
420
+ .link-input a:hover {
421
+ text-decoration: underline;
422
+ }
423
+
424
+ .button {
425
+ width: 20px;
426
+ height: 20px;
427
+ display: inline-block;
428
+ padding: 6px;
429
+ border-radius: ${r.sp2};
430
+ cursor: pointer;
431
+ margin: 0 2px;
432
+ }
433
+
434
+ .button.hovered {
435
+ width: 20px;
436
+ height: 20px;
437
+ display: inline-block;
438
+ background-color: ${e=>e.theme.colors.background};
439
+ }
440
+
441
+ .button i,
442
+ .actions i {
443
+ background-size: contain;
444
+ display: inline-block;
445
+ height: 20px;
446
+ width: 20px;
447
+ vertical-align: -0.25em;
448
+ }
449
+ `,zm=x.div``,Hm=x.a``,Um=x.i``,Vm=x.div`
450
+ display: flex;
451
+ flex-direction: column; /* Align children vertically */
452
+ align-items: center; /* Center children horizontally */
453
+ justify-content: center; /* Center children vertically */
454
+ height: 100%; /* Adjust to your desired height */
455
+ width: 100%; /* Adjust to your desired width */
456
+ `,Wm=x(Fe)`
457
+ color: ${e=>e.theme.colors.grey2};
458
+ overflow: hidden;
459
+ position: absolute;
460
+ text-overflow: ellipsis;
461
+ top: ${r.sp3};
462
+ left: 12px;
463
+ user-select: none;
464
+ display: inline-block;
465
+ pointer-events: none;
466
+ `,Km=x(ot)`
467
+ position: relative;
468
+ margin: ${r.sp0};
469
+ border-radius: ${r.sp2};
470
+ color: ${e=>e.theme.colors.primary};
471
+ text-align: left;
472
+ border: 1px solid ${e=>e.theme.colors.grey2};
473
+ overflow: hidden;
474
+
475
+ &:hover {
476
+ border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
477
+
478
+ .toolbar {
479
+ border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
480
+ }
481
+ }
482
+
483
+ &:focus-within {
484
+ border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
485
+
486
+ .toolbar {
487
+ border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
488
+ }
489
+ }
490
+
491
+ .editor-input {
492
+ min-height: 120px;
493
+ max-height: 360px;
494
+ overflow: auto;
495
+ resize: none;
496
+ ${yt.standardRegular.css};
497
+ color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary};
498
+ position: relative;
499
+ tab-size: 1;
500
+ outline: 0;
501
+ padding: ${r.sp3} 12px;
502
+
503
+ .editor__link {
504
+ color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.link};
505
+ text-decoration: none;
506
+ }
507
+ .editor__link:hover {
508
+ text-decoration: underline;
509
+ cursor: pointer;
510
+ }
511
+ }
512
+
513
+ .editor-input p {
514
+ margin: 0;
515
+ }
516
+
517
+ .toolbar {
518
+ display: flex;
519
+ margin-bottom: 1px;
520
+ background: ${e=>e.theme.colors.grey5};
521
+ padding: ${r.sp1};
522
+ border-top-left-radius: 10px;
523
+ border-top-right-radius: 10px;
524
+ vertical-align: middle;
525
+ border-bottom: 1px solid ${e=>e.theme.colors.grey2};
526
+ justify-content: space-between;
527
+ }
528
+
529
+ .toolbar button.toolbar-item {
530
+ border: 0;
531
+ display: flex;
532
+ background: none;
533
+ border-radius: ${r.sp2};
534
+ padding: ${r.sp2};
535
+ cursor: pointer;
536
+ vertical-align: middle;
537
+ }
538
+
539
+ .toolbar button.toolbar-item:disabled {
540
+ cursor: not-allowed;
541
+ }
542
+
543
+ .toolbar button.toolbar-item.spaced {
544
+ margin-right: 2px;
545
+ }
546
+
547
+ .toolbar button.toolbar-item svg.format {
548
+ background-size: contain;
549
+ display: inline-block;
550
+ height: ${r.sp3};
551
+ width: ${r.sp3};
552
+ vertical-align: -0.25em;
553
+ display: flex;
554
+ color: ${e=>e.theme.colors.grey1};
555
+ }
556
+
557
+ .toolbar button.toolbar-item:disabled svg.format {
558
+ opacity: 0.2;
559
+ }
560
+
561
+ .toolbar button.toolbar-item.active {
562
+ svg.format {
563
+ color: ${e=>e.theme.colors.primary};
564
+ }
565
+ }
566
+
567
+ .toolbar .toolbar-item:hover:not([disabled]) {
568
+ svg.format {
569
+ color: ${e=>e.theme.colors.primary};
570
+ }
571
+ }
572
+
573
+ .toolbar .divider {
574
+ width: 1px;
575
+ background-color: ${e=>e.theme.colors.background};
576
+ margin: ${r.sp0} ${r.sp1};
577
+ }
578
+
579
+ .toolbar .toolbar-item .text {
580
+ display: flex;
581
+ width: 200px;
582
+ vertical-align: middle;
583
+ ${yt.smallRegular.css};
584
+ color: ${e=>e.theme.colors.primary};
585
+ text-overflow: ellipsis;
586
+ width: 70px;
587
+ overflow: hidden;
588
+ height: 20px;
589
+ text-align: left;
590
+ }
591
+ `,Gm=x.div`
592
+ position: absolute;
593
+ display: flex;
594
+ justify-content: center;
595
+ align-items: center;
596
+ height: 100%;
597
+ width: 100%;
598
+ z-index: 1;
599
+ `,Ym=x.div`
600
+ background-color: transparent;
601
+ position: relative;
602
+ `;function qm(){return t.jsx(Wm,{children:$e.getLocalizedStrings().cockpit.monthEndReport.editorPlaceholder})}const Jm={namespace:"",onError(e){throw e},nodes:[Nr.HeadingNode,St.ListNode,St.ListItemNode,Nr.QuoteNode,jr.CodeNode,jr.CodeHighlightNode,Wo.TableNode,Wo.TableCellNode,Wo.TableRowNode,ln.AutoLinkNode,ln.LinkNode,Kd],theme:{link:"editor__link",list:{listitem:"lexicalEditor__listItem",nested:{listitem:"lexicalEditor__nestedListItem"},olDepth:["lexicalEditor__ol1","lexicalEditor__ol2","lexicalEditor__ol3","lexicalEditor__ol4","lexicalEditor__ol5"],ul:"lexicalEditor__ul"},text:{bold:"lexicalEditor__textBold",code:"lexicalEditor__textCode",italic:"lexicalEditor__textItalic",underline:"lexicalEditor__textUnderline"}}};function Zm({fileAttached:e,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,initialHtmlString:i,customerRequestData:f,handleFileInputClick:C,improveUsingZeniGPTClick:o,setZeniRequestsHtml:l}){const m=kt();return t.jsxs(Wp.LexicalComposer,{initialConfig:Jm,children:[t.jsx(mm,{}),t.jsxs(Km,{isZeniGPTResponseLoading:a,children:[a?t.jsx(Gm,{children:t.jsx(Pn,{size:"Standard",start:!0,style:{display:"flex",padding:r.sp4,borderRadius:"100%",backgroundColor:m.colors.grey5,border:`2px solid ${m.colors.grey3}`,boxShadow:`${r.sp0} 2px ${r.sp1} ${m.colors.dropShadowNormal}`}})}):null,t.jsx(Om,{handleFileInputClick:C,fileAttached:e,customerRequestData:f,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,initialHtmlString:i,improveUsingZeniGPTClick:o,setZeniRequestsHtml:l}),t.jsxs(Ym,{children:[t.jsx(lg.RichTextPlugin,{contentEditable:t.jsx(Kp.ContentEditable,{className:Qr}),placeholder:t.jsx(qm,{}),ErrorBoundary:Yp}),t.jsx(Cm,{}),t.jsx(bm,{}),t.jsx(Zp.HistoryPlugin,{}),t.jsx(Up.AutoFocusPlugin,{}),t.jsx(ym,{}),t.jsx(eg.ListPlugin,{}),t.jsx(Qp.LinkPlugin,{}),t.jsx(xm,{}),t.jsx(vm,{maxDepth:7}),t.jsx(ig.MarkdownShortcutPlugin,{transformers:Hp.TRANSFORMERS})]})]})]})}const Qm=x.div``;function Xm({canvasContainerRef:e,sortedThreads:n,editorMode:a,isZeniUser:i=!0}){const f=i?yi:So,{openThread:C}=d.useContext(f),[o,l]=d.useState(e.current!=null);d.useEffect(()=>{l(e.current!=null)},[e.current]);const m=d.useRef();return t.jsx(Qm,{children:n.map(([S,{metadata:w}])=>{const h=Xn(w,a);if(!h||o===!1)return null;m.current=e.current?.getBoundingClientRect();const s=m.current?.top??0,v=m.current?.left??0,b=C===S,T=Array.from(h.getClientRects()).filter(u=>u.width>0);if(T.length===0){const u=h.getBoundingClientRect();let p=u.width;return p===0&&(p=6*h.toString().length),t.jsx(xl,{rect:{...u.toJSON(),top:u.top-s,left:u.left-v,width:p},isOpenThread:b,threadId:S},S)}return T.map((u,p)=>t.jsx(xl,{rect:{...u.toJSON(),top:u.top-s,left:u.left-v},isOpenThread:b,threadId:S},p))})})}const e1=x(ot)`
603
+ color: ${e=>e.theme.colors.hero};
604
+ `,t1=x.div`
605
+ justify-content: center;
606
+ align-items: center;
607
+ display: flex;
608
+ flex-direction: column;
609
+ cursor: pointer;
610
+ `,n1=x($o)`
611
+ width: ${r.sp10};
612
+ height: ${r.sp10};
613
+ color: ${e=>e.theme.colors.primary};
614
+ `,i1=({message:e,onReload:n})=>t.jsxs(t1,{onClick:n,"data-testid":re("reload-container"),children:[t.jsx(n1,{}),t.jsx(e1,{children:e})]}),{common:{navBar:{back:o1},texts:{refresh:r1,close:a1,copy:s1,copied:l1,open:c1}},expenseAutomation:{common:{numbers:{maximumCount:d1}}}}=$e.getLocalizedStrings(),u1=x(Ih)`
615
+ display: flex;
616
+ width: ${r.sp4};
617
+ height: ${r.sp4};
618
+ align-items: center;
619
+ justify-content: center;
620
+ `,h1=x.div`
621
+ display: flex;
622
+ align-items: center;
623
+ justify-content: center;
624
+ position: relative;
625
+ cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
626
+ color: ${e=>e.theme.colors.hero};
627
+ &:hover {
628
+ color: ${e=>e.theme.colors.primary};
629
+ }
630
+ `,p1=x.div`
631
+ width: 100%;
632
+ display: flex;
633
+ flex-shrink: 0;
634
+ flex-direction: column;
635
+ background: ${e=>e.theme.colors.grey4};
636
+ box-sizing: border-box;
637
+ position: sticky;
638
+ top: 0;
639
+ z-index: 6;
640
+ `,Nl=x.div`
641
+ display: flex;
642
+ flex-direction: column;
643
+ align-items: center;
644
+ padding-left: ${e=>Il.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
645
+ padding-right: ${e=>Il.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
646
+ `,g1=x.div`
647
+ display: flex;
648
+ align-items: baseline;
649
+ justify-content: end;
650
+ gap: ${r.sp4};
651
+ flex: 1 1 ${r.sp0};
652
+ `,m1=x.div`
653
+ display: flex;
654
+ align-items: baseline;
655
+ justify-content: start;
656
+ gap: ${r.sp4};
657
+ flex: 1 1 ${r.sp0};
658
+ `,f1=x(Cd)`
659
+ width: ${r.sp3};
660
+ height: ${r.sp3};
661
+ cursor: pointer;
662
+ margin-left: ${r.sp1};
663
+ color: inherit;
664
+ `,x1=x(Rh)`
665
+ width: ${r.sp3};
666
+ height: ${r.sp3};
667
+ margin-left: ${r.sp1};
668
+ color: ${xe.success};
669
+ `,y1=x(ko)`
670
+ cursor: pointer;
671
+ width: ${r.sp4};
672
+ height: ${r.sp4};
673
+ color: ${e=>e.theme.colors.hero};
674
+ &:hover {
675
+ color: ${e=>e.theme.colors.primary};
676
+ }
677
+ `,C1=x(Th)`
678
+ cursor: pointer;
679
+ width: ${r.sp4};
680
+ height: ${r.sp4};
681
+ color: ${e=>e.theme.colors.hero};
682
+ &:hover {
683
+ color: ${e=>e.theme.colors.primary};
684
+ }
685
+ `,b1=x(Eh,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
686
+ cursor: pointer;
687
+ width: ${r.sp4};
688
+ height: ${r.sp4};
689
+ color: ${e=>e.theme.colors.hero};
690
+ animation: ${e=>e.$spinning?ke`
691
+ ${w1} 2s linear infinite;
692
+ `:"none"};
693
+ &:hover {
694
+ color: ${e=>e.theme.colors.primary};
695
+ }
696
+ `,w1=Ti`
697
+ 0% {
698
+ transform: rotate(0deg);
699
+ }
700
+ 100% {
701
+ transform: rotate(360deg);
702
+ }
703
+ `,v1=x.div`
704
+ width: 100%;
705
+ `,S1=x.div`
706
+ padding-top: ${r.sp0};
707
+ padding-bottom: ${r.sp0};
708
+ `,_l=x(Fe)`
709
+ color: ${e=>e.theme.colors.hero};
710
+ text-align: center;
711
+ display: flex;
712
+ align-items: center;
713
+ justify-content: center;
714
+ flex-direction: column;
715
+ padding-bottom: ${r.sp4};
716
+ `,k1=x.div`
717
+ display: flex;
718
+ `,$1=x.div`
719
+ border: 1px solid ${e=>e.theme.colors.grey3};
720
+ width: 100%;
721
+ margin-top: -2px;
722
+ border-top-right-radius: ${r.sp2};
723
+ border-top-left-radius: ${r.sp2};
724
+ border-bottom-right-radius: ${r.sp2};
725
+ border-bottom-left-radius: ${r.sp2};
726
+ `,E1=x.div`
727
+ display: flex;
728
+ height: ${r.sp4};
729
+ `,T1=x.div`
730
+ text-align: center;
731
+ display: flex;
732
+ align-items: center;
733
+ justify-content: center;
734
+ flex-wrap: wrap;
735
+ `,j1=x.div`
736
+ display: flex;
737
+ flex-direction: column;
738
+ `,N1=x($n)`
739
+ width: ${r.sp3};
740
+ height: ${r.sp3};
741
+ margin-right: ${r.sp1};
742
+ path {
743
+ stroke-width: 2;
744
+ }
745
+ `,Ji=x.span`
746
+ font-weight: ${oi.regular};
747
+ color: ${e=>e.theme.colors.primary};
748
+ `,_1=x.span`
749
+ font-weight: ${oi.medium};
750
+ color: ${e=>e.theme.colors.primary};
751
+ `,I1=x.span`
752
+ color: ${e=>e.theme.colors.primary};
753
+ text-decoration: underline;
754
+ text-decoration-color: ${e=>e.theme.colors.grey2};
755
+ cursor: pointer;
756
+ display: flex;
757
+ align-items: center;
758
+ transition: text-decoration-color 0.2s;
759
+ .copy-icon {
760
+ color: ${e=>e.theme.colors.hero};
761
+ transition: color 0.2s;
762
+ }
763
+ &:hover {
764
+ .copy-icon {
765
+ color: ${e=>e.theme.colors.primary};
766
+ }
767
+ text-decoration-color: ${e=>e.theme.colors.primary};
768
+ }
769
+ `,Il={subSectionContainerLeftRightPadding:new ge(W[3],W[6],W[8])},R1=({onAllThreadsClick:e,companyId:n,companyName:a})=>{const i={application:"cockpit",companyId:n,entityId:n,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:a,url:window.location.href},{url:f,...C}=i,o={...C},{threads:l,isLoading:m}=kh(o,!1,!1),S=l.filter(w=>w.id.includes(Qn)===!1);return t.jsxs(h1,{isDisabled:m,onClick:e,"data-testid":re("comment-icon"),children:[t.jsx($h,{count:S.length,isLoading:m}),t.jsx(u1,{})]})},A1=({headerData:e,refreshStatus:n,searchText:a,companyName:i,companyId:f,isZeniUser:C,onAllThreadsClick:o,onClose:l,onRefresh:m,onSearchTextChanged:S})=>{const w=()=>{n!=="In-Progress"&&m()};return t.jsx(g1,{children:e.rightSection.map((h,s)=>{switch(h){case"search":return t.jsx(mh,{isSearchOpen:(a.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:a,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:r.sp4},searchIconMarginRight:r.sp0,onSearchTextChanged:v=>{S(v)},downloadPresent:!1},s+h);case"refresh":return t.jsx(Se,{display:"block",placement:"bottom",title:r1,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(b1,{onClick:w,$spinning:n==="In-Progress","data-testid":re("refresh-icon")})},s+h);case"comment":return C===!1?null:t.jsx(R1,{companyId:f,companyName:i,onAllThreadsClick:o});default:return t.jsx(Se,{display:"block",placement:"bottom",title:a1,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(y1,{onClick:l,"data-testid":re("close-icon")})},s+h)}})})},L1=({headerData:e,onBack:n})=>t.jsx(m1,{children:e.leftSection.map((a,i)=>t.jsx(Se,{display:"block",placement:"bottom",title:o1,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(C1,{onClick:n,"data-testid":re("back-button")})},i+a))}),Rl=({text:e,linkText:n,windowSize:a,isCopied:i,onLinkClick:f})=>{if(n==null||!n)return t.jsxs(Ji,{windowSize:a,children:[e," "]});const C=e.indexOf(n);if(C===-1)return t.jsxs(Ji,{windowSize:a,children:[e," "]});const o=e.substring(0,C),l=e.substring(C+n.length);return t.jsxs(t.Fragment,{children:[o?t.jsxs(Ji,{windowSize:a,children:[o.trim()," "]}):null,t.jsx(Se,{display:"flex",placement:"right",title:cd.test(n)?i?l1:s1:c1,enterTouchDelay:600,children:t.jsxs(I1,{onClick:()=>f?.(n),"data-testid":re("pre-link"),children:[n,i?t.jsx(x1,{className:"success-icon"}):t.jsx(f1,{className:"copy-icon"})]})}),l?t.jsxs(Ji,{windowSize:a,children:[l," "]}):null]})},Al=({subTitles:e})=>{const n=Ie(),[,a]=fh(),[i,f]=d.useState(!1),C=d.useRef(null),o=d.useCallback(l=>{cd.test(l)?(a(l),f(!0),C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{f(!1)},2e3)):window.open(l,"_blank","noopener,noreferrer")},[a]);return d.useEffect(()=>()=>{C.current&&clearTimeout(C.current)},[]),t.jsx(j1,{children:e.map((l,m)=>t.jsxs(T1,{"data-testid":re("subtitle-item",m.toString()),children:[l.pre?t.jsx(Rl,{text:l.pre,linkText:l.preLink,windowSize:n,isCopied:i,onLinkClick:o}):null,l.prefixIconName?t.jsx(t.Fragment,{children:l.prefixIconName==="zeniAIIcon"?t.jsx(N1,{}):t.jsx(t.Fragment,{})}):null,l.bold?t.jsx(t.Fragment,{children:t.jsxs(_1,{windowSize:n,children:[l.bold," "]})}):null,l.post?t.jsx(Rl,{text:l.post,linkText:l.postLink,windowSize:n,isCopied:i,onLinkClick:o}):null]},m+l.bold+l.pre+l.post))})};function D1(e){const{headerData:n,currentTab:a,completionStatus:i,onUpdateTab:f,selectedReconAccountId:C,getTabCountAndFetchState:o,reconcileDetailPageFetchState:l,forceShowSubtitle:m,currentSelectedView:S,currentMissingReceiptsTab:w,onMissingReceiptsTabUpdate:h,onReconTabUpdate:s,currentRecontab:v,navBarCustomElement:b,titleStyle:T={},hideEmptyDivBelowTabs:u=!1,belowTabsSlot:p}=e,E=o("autoCategorized")?.count??0,$=o("review")?.count??0,j=o("reconcile")?.count??0,D=n.tabs.length>0||n.subTitle.length>0,M=S==="transaction_categorization"&&a==="autoCategorized"?E>0:S==="reconciliation"&&v==="review"&&C!=null?l==="In-Progress"||$>0:S==="reconciliation"&&v==="reconcile"&&C!=null?l==="In-Progress"||j>0:i!=="complete",_=kt(),I=Ie();let A=[];n.tabs.length>0&&(A=n.tabs.map(K=>({label:K.label,id:K.id,countDetails:o(K.id)})));const P=n.tabs.some(K=>(S==="reconciliation"?K.id===v:S==="missing_receipts"?K.id===w:K.id===a)&&K.subTitle.length>0);return t.jsxs(p1,{children:[t.jsx(ch,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:_.colors.grey4,onBackClick:()=>null,titleStyle:T,ignoreScrollAction:S!=="month_end_insights",keepBackgroundOnScroll:S!=="month_end_insights",leftSideComponent:t.jsx(L1,{...e}),rightSideComponent:t.jsx(A1,{...e}),source:"NavBarWithHeader"}),b??null,t.jsx(dt,{controller:D===!0,children:t.jsx(Nl,{windowSize:I,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(S1,{windowSize:I,children:t.jsx(dh,{allTabs:A,selectedTab:S==="transaction_categorization"?a??A[0].id:S==="missing_receipts"?w??A[0].id:v??A[0].id,onTabChange:K=>{if(S==="transaction_categorization"){const X=cp(K.id);X!=null&&f(X)}else if(S==="reconciliation"){const X=dp(K.id);X!=null&&s(X)}else S==="missing_receipts"&&h?.(K.id)},maximumCountLimit:d1})}),t.jsx($1,{windowSize:I}),u!==!0?t.jsx(E1,{}):null,t.jsx(dt,{controller:(M===!0||m===!0)&&P,children:t.jsx(_l,{windowSize:I,"data-testid":re("subtitle-container"),children:n.tabs.map((K,X)=>(S==="reconciliation"?K.id===v:S==="missing_receipts"?K.id===w:K.id===a)?t.jsx(k1,{"data-testid":re("subtitle-wrapper",K.id),children:t.jsx(Al,{subTitles:K.subTitle})},X+K.id):null)})})]}):t.jsx(dt,{controller:M===!0||m===!0,children:t.jsx(_l,{windowSize:I,children:t.jsx(Al,{subTitles:n.subTitle})})})})}),p!=null?t.jsx(Nl,{windowSize:I,children:t.jsx(v1,{children:p})}):null]})}function O1({name:e,checkBoxes:n,mode:a,isDisabled:i,style:f,labelStyle:C,labelCheckBoxStyle:o,checkBoxStyle:l,width:m,registerOptions:S,checkedIconColor:w,checkBoxIconStyle:h,checkBoxContainerStyle:s,draggable:v=!1,selectionLimit:b,infoIconContainerStyle:T,onDragStart:u,rowHeight:p=40,initialScrollOffSet:E,onScroll:$}){const j=Ie(),D=d.useRef(null),{control:M}=Wr(),_=n.find(K=>K.groupLabel),I=n.filter(K=>!K.groupLabel),A=[];for(const K of I)if(K.isException||A.push(K.value),b!=null&&A.length===b+1)break;const P=n.filter(K=>K.defaultChecked).map(K=>K.value);return t.jsx(yd,{control:M,name:e,rules:S,defaultValue:P,render:({field:{value:K,ref:X,onChange:te}})=>{const Z=B=>{P1({event:B,value:K,allCheckBoxValues:A,groupLabelCheckBox:_,onChange:te})};return t.jsxs(F1,{style:f,windowSize:j,children:[_&&t.jsx(Xr,{checkBox:_,index:0,value:K,allCheckBoxValues:A,mode:a,name:e,checkBoxContainerStyle:s,checkBoxIconStyle:h,checkBoxStyle:l,labelCheckBoxStyle:o,labelStyle:C,width:m,draggable:v,groupLabelCheckBox:_,infoIconContainerStyle:T,checkedIconColor:w,isDisabled:i,selectionLimit:b,onDragStart:u,ref:X,onChangeHandler:Z}),t.jsx(B1,{children:t.jsx(Ci,{style:{height:"100%",width:"100%"},children:({height:B,width:O})=>t.jsx(To,{ref:D,height:B,width:O,itemCount:I.length,itemSize:()=>p,estimatedItemSize:p,initialScrollOffset:E??0,onScroll:({scrollOffset:g})=>{$?.(g)},overscanCount:1,itemKey:g=>I[g].value,itemData:{checkBoxes:I,value:K,allCheckBoxValues:A,mode:a,name:e,checkBoxContainerStyle:s,checkBoxIconStyle:h,checkBoxStyle:l,labelCheckBoxStyle:o,labelStyle:C,width:m,draggable:v,groupLabelCheckBox:_,infoIconContainerStyle:T,checkedIconColor:w,isDisabled:i,selectionLimit:b,onDragStart:u,ref:X,onChange:te,handleChangeEvent:Z,rowHeight:p},children:M1})})})]})}})}const M1=({index:e,style:n,data:a})=>{const i=d.useRef(null),{checkBoxes:f,value:C,allCheckBoxValues:o,mode:l,name:m,checkBoxContainerStyle:S,checkBoxIconStyle:w,checkBoxStyle:h,labelCheckBoxStyle:s,labelStyle:v,width:b,draggable:T,groupLabelCheckBox:u,infoIconContainerStyle:p,checkedIconColor:E,isDisabled:$,selectionLimit:j,onDragStart:D,ref:M,handleChangeEvent:_}=a,I=f[e];return t.jsx(K1,{style:{...n,width:"100%"},ref:i,children:t.jsx(Xr,{checkBox:I,index:e,value:C,allCheckBoxValues:o,mode:l,name:m,checkBoxContainerStyle:S,checkBoxIconStyle:w,checkBoxStyle:h,labelCheckBoxStyle:s,labelStyle:v,width:b,draggable:T,groupLabelCheckBox:u,infoIconContainerStyle:p,checkedIconColor:E,isDisabled:$,selectionLimit:j,onDragStart:D,ref:M,onChangeHandler:_})})},Xr=d.forwardRef((e,n)=>{const{value:a,checkBox:i,groupLabelCheckBox:f,allCheckBoxValues:C,selectionLimit:o,mode:l,checkBoxStyle:m,labelCheckBoxStyle:S,isDisabled:w,draggable:h,checkBoxContainerStyle:s,infoIconContainerStyle:v,name:b,index:T,width:u,checkedIconColor:p,checkBoxIconStyle:E,labelStyle:$,onDragStart:j,onChangeHandler:D}=e,M=Ie();let _=a.includes(i.value);const I=Array.from(new Set([...a,i.value]));return f?.value===i.value&&a.length>0&&(_=o!=null?I.length===C.length||I.length===o+1:C.every(A=>I.includes(A)===!0)),t.jsxs(H1,{mode:l,draggable:h===!0,onDragStart:A=>{j?.(A,i.value)},style:s,isDisabled:w,isSelected:_,exceptionMode:i.exceptionMode,children:[i.prefix?t.jsx(z1,{className:"prefix-box",children:i.prefix}):null,i.isException?t.jsx(U1,{style:v,className:"checkbox-alert",children:t.jsx(Se,{style:{padding:`12px ${r.sp3}`},title:i.exceptionInfo??"",placement:"bottom-start",children:i.exceptionType==="info"?t.jsx(V1,{}):t.jsx(W1,{})})}):t.jsx(zh,{name:`${b}.${i.value}`,checkBoxValue:i.value,value:_,checkedIconColor:p,isDisabled:w||!i.groupLabel&&!_&&o!=null&&I.length===o+1?"disabled":void 0,checkBoxStyle:l==="off"||i.isException?M==="small"?{display:"none",...m}:{visibility:"hidden",...m}:i.groupLabel?C.length===1&&C[0]===f?.value?{visibility:"hidden",...S}:S:m,checkBoxIconStyle:E,ref:A=>{typeof n=="function"?n(A):n&&(n.current=A)},onChange:D}),typeof i.label=="string"&&i.label?t.jsx(Hh,{isDisabled:w,label:i.label,labelStyle:$,htmlFor:`${b}.${i.value}`,style:{display:"flex",flex:1,minHeight:r.sp4,marginLeft:r.sp2,width:u,backgroundColor:"inherit",...$}}):i.label]},`${i.value}_${T}`)});Xr.displayName="CheckBoxWithLabel";const P1=({event:e,value:n,allCheckBoxValues:a,groupLabelCheckBox:i,onChange:f})=>{const C=e.currentTarget.value,o=e.currentTarget.checked,l=i?.value,m=new Set(n);if(C===l)return void f(o?Array.from(new Set([l,...a])):[]);o?m.add(C):m.delete(C);const S=a.every(w=>m.has(w));l!=null&&(S&&!m.has(l)?m.add(l):!S&&m.has(l)&&m.delete(l)),f(Array.from(m))},F1=x.div`
770
+ display: flex;
771
+ flex-direction: column;
772
+ width: 100%;
773
+ height: 100%;
774
+ `,B1=x.div`
775
+ flex: 1;
776
+ overflow: hidden;
777
+ `,z1=x.div`
778
+ opacity: 0;
779
+ `,H1=x.div`
780
+ display: flex;
781
+ align-items: center;
782
+ flex-direction: row;
783
+ width: 100%;
784
+ min-height: ${r.sp4};
785
+
786
+ ${e=>e.mode==="checked_or_hover"&&ke`
787
+ input:not(:checked) ~ .unchecked-icon {
788
+ opacity: 0;
789
+ }
790
+
791
+ :hover {
792
+ input:not(:checked) ~ .unchecked-icon,
793
+ .prefix-box {
794
+ opacity: 1;
795
+ }
796
+ }
797
+ `};
798
+
799
+ ${e=>e.mode==="hover_only"&&ke`
800
+ input:not(:checked) ~ .unchecked-icon,
801
+ input:checked ~ .checked-icon {
802
+ opacity: 0;
803
+ }
804
+
805
+ :hover {
806
+ input:not(:checked) ~ .unchecked-icon,
807
+ input:checked ~ .checked-icon,
808
+ .prefix-box {
809
+ opacity: 1;
810
+ }
811
+ }
812
+ `};
813
+
814
+ label {
815
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
816
+ ${e=>e.isDisabled==="disabled"&&ke`
817
+ color: ${e.theme.colors.grey2};
818
+ `};
819
+ cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
820
+ pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
821
+ }
822
+
823
+ .checkbox-alert {
824
+ opacity: 0;
825
+ }
826
+
827
+ ${e=>e.exceptionMode==="hover_only"&&ke`
828
+ :hover {
829
+ .checkbox-alert {
830
+ opacity: 1;
831
+ }
832
+ }
833
+ `}
834
+
835
+ ${e=>e.exceptionMode==="checked_or_hover"&&ke`
836
+ .checkbox-alert {
837
+ opacity: 1;
838
+ }
839
+ `}
840
+ `,U1=x.div`
841
+ cursor: pointer;
842
+ `,V1=x(dd)`
843
+ height: ${r.sp3};
844
+ width: ${r.sp3};
845
+ color: ${e=>e.theme.colors.hero};
846
+ background-color: ${e=>e.theme.colors.grey4};
847
+ border-radius: 50%;
848
+ `,W1=x(Nd)`
849
+ height: ${r.sp3};
850
+ width: ${r.sp3};
851
+ color: ${e=>e.theme.colors.hero};
852
+ background-color: ${e=>e.theme.colors.grey4};
853
+ border-radius: 50%;
854
+ `,K1=x.div`
855
+ width: 100%;
856
+ box-sizing: border-box;
857
+ `,G1=x.div`
858
+ width: 100%;
859
+ display: flex;
860
+ justify-content: center;
861
+ align-items: center;
862
+ flex: 1;
863
+ background: ${e=>e.theme.colors.grey4};
864
+ box-sizing: border-box;
865
+ `,Y1=x(e=>d.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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}),d.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),d.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}),d.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"}),d.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"}),d.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),d.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),d.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),d.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}),d.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),d.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),d.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})))`
866
+ width: 90px;
867
+ height: 90px;
868
+ `,q1=x(e=>d.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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}),d.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}),d.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}),d.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"}),d.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}),d.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}),d.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}),d.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}),d.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}),d.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}),d.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}),d.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})))`
869
+ width: 90px;
870
+ height: 90px;
871
+ `,J1=x(e=>d.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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}),d.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}),d.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}),d.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}),d.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}),d.createElement("g",{opacity:.2},d.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"})),d.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"}),d.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),d.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.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}),d.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}),d.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}),d.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})))`
872
+ width: 90px;
873
+ height: 90px;
874
+ `,Z1=x(e=>d.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),d.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),d.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"}),d.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"}),d.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"})))`
875
+ width: 90px;
876
+ height: 90px;
877
+ `,Q1=x.div`
878
+ display: flex;
879
+ align-items: center;
880
+ justify-content: center;
881
+ flex-direction: column;
882
+ `,X1=x(Hr)`
883
+ margin-top: ${r.sp2};
884
+ color: ${e=>e.theme.colors.brandColorJade};
885
+ `,ef=x(zr)`
886
+ color: ${e=>e.theme.colors.primary};
887
+ `,tf=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(Y1,{});case"je_schedules":case"reconciliation":return t.jsx(Z1,{});case"flux_analysis":return t.jsx(J1,{});default:return t.jsx(q1,{})}};function Ht(e){const{title:n,subTitle:a}=e;return t.jsx(G1,{children:t.jsxs(Q1,{children:[t.jsx(tf,{...e}),t.jsx(X1,{children:n}),t.jsx(ef,{children:a})]})})}const{common:{headers:{transactions:nf,jeSchedules:of,fluxAnalysis:rf,missingReceipts:af,insights:sf,reconciliation:Ll},strings:{empty:En}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:{missing:lf,unmatched:cf,completed:df}}},expenseAutomation:{transactions:{tabs:Dl,subTitles:{review:{item1:Zi,item2:Qi},autoCategorized:{item1:Xi,item2:uf}},searchPlaceholder:hf,allDoneText:pf},jeSchedules:{subTitles:{item1:gf,item2:mf},searchPlaceholder:ff,allDoneText:xf},missingReceipts:{subTitles:yf,searchPlaceholder:Cf,allDoneText:Ko},fluxAnalysis:{subTitles:{item1:bf,item2:wf},searchPlaceholder:vf,emptyPageTexts:{youDidIt:Sf,allReviewed:kf}},accountRecon:{review:{allDoneText:Ol},reconcile:{allDoneText:$f},tabs:Ml,titles:{item1:Ef,item2:Tf},subTitles:{review:{item1:jf,item2:eo},reconcile:{item1:to,item2:Nf}}}}}=$e.getLocalizedStrings(),nt=(e,n,a,i,f,C)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:nf,subTitle:[],tabs:[{label:Dl.review,id:"review",subTitle:[{pre:Zi.pre,bold:Zi.bold,prefixIconName:Zi.prefixIconName,post:Zi.post},{pre:Qi.pre,bold:Qi.bold,prefixIconName:Qi.prefixIconName,post:Qi.post}]},{label:Dl.autoCategorized,id:"autoCategorized",subTitle:[{pre:Xi.pre,bold:Xi.bold,prefixIconName:Xi.prefixIconName,post:Xi.post.replace("#number",n!=null&&n!=0?n.toString():"")},uf]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:hf,allDoneText:pf};case"je_schedules":return{key:"je_schedules",title:of,subTitle:[gf,mf],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:ff,allDoneText:xf};case"missing_receipts":{const o=C?.includeBulkUploadTabs!==!1;return{key:"missing_receipts",title:C?.navTitle??af,subTitle:[yf],tabs:o?[{label:lf,id:"missing",subTitle:[],allDoneText:Ko},{label:cf,id:"unmatched",subTitle:[]},{label:df,id:"completed",subTitle:[],allDoneText:Ko}]:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Cf,allDoneText:Ko}}case"flux_analysis":return{key:"flux_analysis",title:rf,subTitle:[bf,wf],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:vf,allDoneText:{title:Sf,subTitle:kf}};case"month_end_insights":return{key:"month_end_insights",title:sf,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:En,allDoneText:{title:En,subTitle:En}};case"reconciliation":return a==null?{key:"reconciliation",title:Ll,subTitle:[Ef,Tf],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:En,allDoneText:{title:En,subTitle:En}}:{key:"reconciliation",title:i??Ll,subText:f??void 0,subTitle:[],tabs:[{label:Ml.review,id:"review",subTitle:[jf,{pre:eo.pre,bold:eo.bold,prefixIconName:eo.prefixIconName,post:eo.post}],allDoneText:Ol},{label:Ml.reconcile,id:"reconcile",subTitle:[{pre:to.pre,bold:to.bold,prefixIconName:to.prefixIconName,post:to.post},Nf],allDoneText:$f}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:En,allDoneText:Ol}}},{common:{strings:{empty:_f}},expenseAutomation:{accountRecon:{reconcile:{header:fn}}}}=$e.getLocalizedStrings(),Qe=[{key:"date",value:fn.date,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginLeft:W[4],marginRight:W[3]}},{key:"clearedDate",value:fn.clearedDate,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3],display:"none"}},{key:"type",value:fn.type,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"payee",value:fn.payee,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"account",value:fn.account,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"transactionDirection",value:fn.direction,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"memo",value:fn.memo,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"amount",value:fn.amount,sortOrder:"ascending",width:new ge(12.75,12.75,12.75),customStyle:{marginRight:W[3]}},{key:"recommended",value:_f,sortOrder:"ascending",width:new ge(1.25,1.25,1.25),customStyle:{marginRight:W[4],marginLeft:W[0]}}],Go="date",Pl="descending",If=_d.memo(function({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const a=Ie(),[i,f]=d.useState(Tr(Qe));d.useEffect(()=>{const o=[...i];for(const l of o)l.key===e.sortKey?l.sortOrder=e.sortOrder:l.sortOrder="ascending";f(o)},[e.sortKey,e.sortOrder]);const C=o=>{((l,m)=>{let S=m;e.sortKey===l&&(S=m==="ascending"?"descending":"ascending"),n(l,S)})(o.key,o.sortOrder)};return t.jsx(Lf,{headerHeight:50,children:i.map(o=>t.jsx(Rf,{columnWidth:o.width,windowSize:a,sortDataValue:e.sortKey,actualDataValue:o.key,style:o.customStyle,children:t.jsxs(Ff,{isVisible:o.key!=="recommended",children:[t.jsx(Af,{"data-testid":re("reconcile-tab-list-sort",o.value),onClick:()=>C(o),children:t.jsx(lt,{children:o.value})}),t.jsx(Df,{sortConfig:e,headerData:o,children:t.jsx(Of,{})}),t.jsx(Mf,{isVisible:e.sortKey===o.key&&(e.sortKey!==Go||e.sortOrder!==Pl),children:t.jsx(Pf,{"data-testid":re("reconcile-tab-list-reset-sort",Go),onClick:()=>n(Go,Pl)})})]})},o.key))})}),Rf=x.div`
888
+ color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
889
+ :hover {
890
+ color: ${e=>e.theme.colors.primary};
891
+ }
892
+ width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
893
+ display: flex;
894
+ align-items: center;
895
+ height: 100%;
896
+ justify-content: flex-start;
897
+ gap: 6px;
898
+ z-index: auto;
899
+ position: relative;
900
+ `,Af=x.div`
901
+ display: flex;
902
+ gap: 5px;
903
+ cursor: pointer;
904
+ `,Lf=x(ot)`
905
+ width: fit-content;
906
+ height: ${e=>`${e.headerHeight}px`};
907
+ width: calc(100% - 20px);
908
+ z-index: 6;
909
+ display: flex;
910
+ align-items: center;
911
+ background-color: ${e=>e.theme.colors.grey4};
912
+ box-sizing: border-box;
913
+ padding: ${r.sp3} ${r.sp8} ${r.sp3} ${r.sp0};
914
+ position: sticky;
915
+ color: ${e=>e.theme.colors.grey1};
916
+ `,Df=x.div`
917
+ display: flex;
918
+ align-items: center;
919
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
920
+ ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
921
+ `,Of=x($i)`
922
+ width: ${r.sp2};
923
+ height: ${r.sp2};
924
+ `,Mf=x.div`
925
+ display: ${e=>e.isVisible?"flex":"none"};
926
+ align-items: center;
927
+ padding-top: 2px;
928
+ cursor: pointer;
929
+ color: ${e=>e.theme.colors.grey1};
930
+ &:hover {
931
+ color: ${e=>e.theme.colors.primary};
932
+ }
933
+ `,Pf=x(Ei)`
934
+ width: 12px;
935
+ height: 12px;
936
+ `,Ff=x.div`
937
+ display: ${e=>e.isVisible?"flex":"none"};
938
+ `,{common:{strings:{hyphen:Yo}}}=$e.getLocalizedStrings(),{dateFormat:Fl}=$e.getLocalizedStrings();function Bf({selectedTransactionIds:e,transaction:n,transactionId:a}){const i=Ie(),f=kt(),[C,o]=d.useState(!1),l=e.includes(a),m=C||l;return t.jsx(zf,{id:a,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:t.jsxs(Hf,{isSelected:m,totalHeight:54,children:[t.jsx(on,{windowSize:i,responsiveWidth:Qe[0].width,style:Qe[0].customStyle,children:t.jsx(Tn,{isSelected:m,children:n.date.format(Fl.visual.MMMDCommaYYYYformat)})}),Qe[1].customStyle.display!=="none"?t.jsx(on,{windowSize:i,responsiveWidth:Qe[1].width,style:Qe[1].customStyle,children:t.jsx(Tn,{isSelected:m,children:n.clearedDate!=null?n.clearedDate.format(Fl.visual.MMMDCommaYYYYformat):t.jsx("span",{children:Yo})})}):null,t.jsx(on,{windowSize:i,style:Qe[2].customStyle,responsiveWidth:Qe[2].width,children:t.jsx(Wf,{isSelected:m,children:t.jsx(Uf,{isSelected:m,children:Fh(n.type)})})}),t.jsx(on,{windowSize:i,style:Qe[3].customStyle,responsiveWidth:Qe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(it,{text:n.merchantName,itemTextStyle:{color:m?f.colors.primary:f.colors.hero}}):t.jsx(Tn,{isSelected:m,children:t.jsx("span",{children:Yo})})}),t.jsx(on,{windowSize:i,style:Qe[4].customStyle,responsiveWidth:Qe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(it,{text:n.accountName,itemTextStyle:{color:m?f.colors.primary:f.colors.hero}}):t.jsx(Tn,{isSelected:m,children:t.jsx("span",{children:Yo})})}),t.jsx(on,{windowSize:i,style:Qe[5].customStyle,responsiveWidth:Qe[5].width,children:t.jsx(Tn,{isSelected:m,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(on,{windowSize:i,style:Qe[6].customStyle,responsiveWidth:Qe[6].width,children:t.jsx(it,{text:n.memo,itemTextStyle:{color:m?f.colors.primary:f.colors.hero}})}),t.jsx(on,{windowSize:i,style:Qe[7].customStyle,responsiveWidth:Qe[7].width,children:t.jsx(Tn,{isSelected:m,children:pt("0,0.[00]",n.amount)})}),t.jsx(on,{windowSize:i,responsiveWidth:Qe[8].width,style:Qe[8].customStyle,children:t.jsx(Tn,{isSelected:m,children:n.isZeniRecommended?t.jsx(Vf,{}):null})})]})})}const zf=x.div`
939
+ box-sizing: border-box;
940
+ width: 100%;
941
+ display: flex;
942
+ padding-right: ${r.sp8};
943
+ `,Hf=x.div`
944
+ cursor: pointer;
945
+ display: flex;
946
+ border-radius: ${r.sp2};
947
+ width: 100%;
948
+ align-items: center;
949
+ height: ${e=>`${e.totalHeight}px`};
950
+ background-color: ${e=>e.theme.colors.grey5};
951
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
952
+ border-color: ${e=>e.isSelected===!0?e.theme.colors.primary:"none"};
953
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
954
+ :hover {
955
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
956
+ }
957
+ `,on=x.div`
958
+ width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
959
+ display: flex;
960
+ align-items: center;
961
+ justify-content: flex-start;
962
+ height: 100%;
963
+ z-index: auto;
964
+ position: relative;
965
+ `,Tn=x(Fe)`
966
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
967
+ span {
968
+ padding-left: ${r.sp3};
969
+ }
970
+ `,Uf=x(lt)`
971
+ text-transform: capitalize;
972
+ color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
973
+ `,Vf=x($n)`
974
+ width: ${r.sp3};
975
+ height: ${r.sp3};
976
+ margin-right: ${r.sp1};
977
+ path {
978
+ stroke-width: 2;
979
+ }
980
+ `,Wf=x.div`
981
+ padding: 1px 6px;
982
+ border-radius: ${r.sp1};
983
+ border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
984
+ `,Kf=$e.getLocalizedStrings(),{common:{all:Bl,strings:{empty:zl}}}=Kf,Hl="selectedTransactionIds",Gf=e=>`${e}_form`;function Yf({currentFooterFormId:e,localData:n,matchedTransactions:a,sortConfig:i,onSaveReconciliation:f,selectedAccountId:C,onReconTabColumnSortConfigChanged:o,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:m}){const S=Fn({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),w={label:t.jsx(If,{onReconTabColumnSortConfigChanged:o,sortConfig:i}),value:Bl.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=a.map(b=>({label:t.jsx(Bf,{transaction:b,selectedTransactionIds:n.selectedTransactionIds,transactionId:b.id}),value:b.id,defaultChecked:!1,groupLabel:!1})),s=[w,...h];d.useEffect(()=>{const b=S.watch(T=>{T!=null&&vi(()=>(async u=>{const p=u[Hl].filter(E=>E!=Bl.toLocaleLowerCase());l(p)})(T))});return()=>{b.unsubscribe()}}),d.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&m("expenseAutomationBankReconReconcilePage"),()=>{m("expenseAutomationPage")}),[]);const v=d.useCallback(()=>{f({reconcileAction:"reconcile"})},[f]);if(a.length===0){const b=nt("reconciliation",void 0,C).tabs.find(T=>T.id==="reconcile")?.allDoneText;return t.jsx(Qf,{children:t.jsx(Ht,{tab:"missing_receipts",title:b?.title??zl,subTitle:b?.subTitle??zl})})}return t.jsx(qf,{children:t.jsx(Bn,{...S,children:t.jsx(Jf,{onSubmit:S.handleSubmit(v),id:Gf("expenseAutomationBankReconReconcilePage"),children:t.jsx(Zf,{children:t.jsx(O1,{name:Hl,checkBoxes:s,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:72,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const qf=x.div``,Jf=x.form``,Zf=x.div`
985
+ height: calc(100vh - 350px);
986
+ `,Qf=x.div`
987
+ height: 100%;
988
+ display: flex;
989
+ justify-content: center;
990
+ align-items: center;
991
+ `,sn=187,On=136,Jt=240,Mn=146,Yd=x.div`
992
+ display: flex;
993
+ flex-direction: column;
994
+ background-color: ${e=>e.theme.colors.grey4};
995
+ width: 100%;
996
+ min-height: 100%;
997
+ height: calc(100vh - 500px);
998
+ overflow-x: scroll;
999
+ align-items: center;
1000
+ `,qd=x.div`
1001
+ display: flex;
1002
+ flex-direction: column;
1003
+ gap: ${r.sp5};
1004
+ align-items: flex-start;
1005
+ padding-bottom: ${r.sp9};
1006
+ width: 100%;
1007
+ `,Jd=x.div`
1008
+ width: 100%;
1009
+ `,Zd=x.div`
1010
+ width: 100%;
1011
+ `,ea=x.div`
1012
+ display: flex;
1013
+ flex-direction: row;
1014
+ padding: ${r.sp2};
1015
+ padding-right: ${r.sp3};
1016
+ justify-content: space-between;
1017
+ border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
1018
+ `,ta=x.div`
1019
+ display: flex;
1020
+ flex-direction: row;
1021
+ justify-content: space-between;
1022
+ padding: ${r.sp2};
1023
+ padding-right: ${r.sp3};
1024
+ `,Xf=x.div`
1025
+ border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
1026
+ display: flex;
1027
+ flex-direction: row;
1028
+ justify-content: space-between;
1029
+ padding: ${r.sp2};
1030
+ padding-right: ${r.sp3};
1031
+ `,e0=x.div`
1032
+ padding: ${r.sp2} ${r.sp3};
1033
+ `,na=x.div`
1034
+ display: flex;
1035
+ `,t0=x.div`
1036
+ display: flex;
1037
+ align-items: center;
1038
+ justify-content: center;
1039
+ gap: ${r.sp1};
1040
+ padding: ${r.sp2} ${r.sp0};
1041
+ background-color: ${e=>e.theme.colors.grey3};
1042
+ border-bottom-left-radius: ${r.sp2};
1043
+ border-bottom-right-radius: ${r.sp2};
1044
+ `,ia=x.div`
1045
+ display: flex;
1046
+ flex-direction: column;
1047
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1048
+ border-radius: ${r.sp2};
1049
+ background-color: ${e=>e.theme.colors.grey5};
1050
+ box-shadow: ${e=>e.theme.colors.elevation1};
1051
+ cursor: pointer;
1052
+ border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
1053
+ .highlight {
1054
+ color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
1055
+ }
1056
+ :hover {
1057
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
1058
+ }
1059
+ :hover .highlight {
1060
+ color: ${e=>e.theme.colors.primary};
1061
+ }
1062
+ `,we=x.div`
1063
+ display: flex;
1064
+ flex-direction: column;
1065
+ width: 180px;
1066
+ padding: ${r.sp2};
1067
+ .hover-background {
1068
+ border-radius: ${r.sp1};
1069
+ background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
1070
+ .select-control {
1071
+ background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
1072
+ }
1073
+ :hover {
1074
+ background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
1075
+ .select-control {
1076
+ background-color: ${e=>e.theme.colors.background};
1077
+ }
1078
+ }
1079
+ :focus-within {
1080
+ background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
1081
+ .select-control {
1082
+ background-color: ${e=>e.theme.colors.background};
1083
+ }
1084
+ }
1085
+ }
1086
+ .item-value-container {
1087
+ .grouped-single-select-field__menu {
1088
+ margin-top: ${r.sp2};
1089
+ }
1090
+ }
1091
+ `,Yt=x.div`
1092
+ padding: ${r.sp2} ${r.sp3};
1093
+ `,je=x(lt)`
1094
+ color: ${e=>e.theme.colors.hero};
1095
+ `,Re=x(Fe)`
1096
+ width: 100%;
1097
+ color: ${e=>e.theme.colors.hero};
1098
+ white-space: nowrap;
1099
+ overflow: hidden;
1100
+ text-overflow: ellipsis;
1101
+ `,Ne=x.div`
1102
+ display: flex;
1103
+ gap: ${r.sp1};
1104
+ color: ${e=>e.theme.colors.primary};
1105
+ .select-value-container {
1106
+ .auto-complete-single-select-field__input-container {
1107
+ .auto-complete-single-select-field__input {
1108
+ text-align: left;
1109
+ }
1110
+ }
1111
+ .grouped-single-select-field__input-container {
1112
+ .grouped-single-select-field__input {
1113
+ text-align: left;
1114
+ }
1115
+ }
1116
+ }
1117
+ `,oa=x.div`
1118
+ border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
1119
+ display: flex;
1120
+ flex-direction: column;
1121
+ gap: ${r.sp3};
1122
+ align-items: center;
1123
+ justify-content: center;
1124
+ padding: ${r.sp0} 42px;
1125
+ `,ra=x.div`
1126
+ flex: 1;
1127
+ `,Qd=x(lt)`
1128
+ padding: ${r.sp0} 6px;
1129
+ color: ${xe.info};
1130
+ border: 1px solid ${xe.info};
1131
+ border-radius: ${r.sp1};
1132
+ margin-top: ${r.sp1};
1133
+ `,fo=x(ot)`
1134
+ padding: ${r.sp2};
1135
+ color: ${e=>e.theme.colors.hero};
1136
+ background: ${e=>e.theme.colors.overlayColor};
1137
+ border-radius: ${r.sp1};
1138
+ `,xt=x(fo)`
1139
+ padding: 2px ${r.sp2};
1140
+ `,wn=$e.getLocalizedStrings().expenseAutomation.accountRecon.review.header,an=[{key:"date",value:wn.date,sortOrder:"ascending",width:new ge(20,20),loaderWidth:120},{key:"payee",value:wn.payee,sortOrder:"ascending",width:new ge(20,20),loaderWidth:212},{key:"memo",value:wn.memo,sortOrder:"ascending",width:new ge(20,20),loaderWidth:192},{key:"direction",value:wn.direction,sortOrder:"ascending",width:new ge(15,15),loaderWidth:84},{key:"match",value:wn.match,sortOrder:"ascending",width:new ge(15,15),loaderWidth:152},{key:"amount",value:wn.amount,sortOrder:"ascending",width:new ge(10,10),loaderWidth:64}],Dr=[{key:"payee",value:wn.payee,sortOrder:"ascending",width:new ge(65,65),loaderWidth:212},{key:"amount",value:wn.amount,sortOrder:"ascending",width:new ge(30,30),loaderWidth:64}],n0=d.memo(e=>{const{sortConfig:n,onColumnSortConfigChanged:a}=e,i=Ie(),f=ut()?Dr:an,[C,o]=d.useState(()=>f.map(m=>({...m,sortOrder:m.key===n.sortKey?n.sortOrder:"ascending"})));d.useEffect(()=>{o(f.map(m=>({...m,sortOrder:m.key===n.sortKey?n.sortOrder:"ascending"})))},[n.sortKey,n.sortOrder,f]);const l=(m,S)=>{let w=S;n.sortKey===m&&(w=S==="ascending"?"descending":"ascending"),a(m,w)};return t.jsx(i0,{children:C.map(m=>t.jsxs(o0,{sortDataValue:n.sortKey,actualDataValue:m.key,wrapperWidth:m.width,windowSize:i,isLastColumn:m.key==="amount",children:[t.jsxs(r0,{"data-testid":re("account-reconciliation-review-header",m.value),sortKey:m.key,onClick:()=>l(m.key,m.sortOrder),children:[t.jsx(lt,{children:m.value}),t.jsx(a0,{sortDataValue:n.sortKey,headerData:m,children:t.jsx(s0,{})})]}),t.jsx(l0,{sortDataValue:n.sortKey,windowSize:i,isVisible:n.sortKey===m.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(c0,{"data-testid":re("account-reconciliation-review-sort-by-date"),onClick:()=>l("date","ascending")})})]},m.key))})}),i0=x(ot)`
1141
+ top: 0;
1142
+ left: 0;
1143
+ width: fit-content;
1144
+ min-width: 100%;
1145
+ z-index: 6;
1146
+ display: flex;
1147
+ align-items: center;
1148
+ box-sizing: border-box;
1149
+ padding: ${r.sp3} ${r.sp4};
1150
+ position: sticky;
1151
+ color: ${e=>e.theme.colors.grey1};
1152
+ background-color: ${e=>e.theme.colors.grey4};
1153
+ `,o0=x.div`
1154
+ color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
1155
+ width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
1156
+ min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
1157
+ display: flex;
1158
+ align-items: center;
1159
+ gap: 5px;
1160
+ left: ${r.sp0};
1161
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
1162
+ `,r0=x.div`
1163
+ display: flex;
1164
+ cursor: pointer;
1165
+ gap: ${r.sp1};
1166
+ &:hover {
1167
+ color: ${e=>e.theme.colors.primary};
1168
+ }
1169
+ white-space: nowrap;
1170
+ `,a0=x.div`
1171
+ display: flex;
1172
+ align-items: center;
1173
+ transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1174
+ ${e=>e.headerData.sortOrder==="ascending"?ke`
1175
+ padding-top: 2px;
1176
+ `:ke`
1177
+ padding-bottom: 2px;
1178
+ `}
1179
+ `,s0=x($i)`
1180
+ width: ${r.sp2};
1181
+ height: ${r.sp2};
1182
+ cursor: pointer;
1183
+ color: inherit;
1184
+ `,l0=x.div`
1185
+ display: ${e=>e.isVisible?"flex":"none"};
1186
+ align-items: center;
1187
+ padding-top: 2px;
1188
+ `,c0=x(Ei)`
1189
+ width: 12px;
1190
+ height: 12px;
1191
+ cursor: pointer;
1192
+ color: ${e=>e.theme.colors.hero};
1193
+ `,Bt="accountReconReviewTableSection",{dateFormat:d0,expenseAutomation:u0,common:Zt}=$e.getLocalizedStrings(),{visual:Xd}=d0,{accountRecon:Pe}=u0,eu=e=>[{label:Pe.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],tu=e=>[{label:Pe.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Ul=e=>`${Bt}_${e}_form`,Ye=(e,n)=>`${Bt}.${e}.${n}`,h0=e=>{const{sortKey:n,sortOrder:a,accountReconEntity:i,entitySearchAutoCompleteActions:f,allAccountList:C,classList:o,localData:l,accountListNestedAccountHierarchy:m,classListNestedAccountHierarchy:S,selectedAccountId:w,entitySearchAutoCompleteData:h,excludeFetchById:s,saveFetchById:v,reviewTabSelectedVendorByTransactionId:b,refreshStatus:T,updateLocalData:u,onColumnSortConfigChanged:p,onSaveReconciliation:E,onSaveReconciliationReview:$,onReconMatchedTransactionClick:j,bankAccounts:D,creditCards:M}=e,{transactionsToReview:_,account:{accountType:I}}=i,A=d.useRef(null),[P,K]=d.useState(null),X=Z=>{const B=_[Z],O=Ad(B),g=Ld(B),c=Dd(B,I??"bank"),N=Od(B,I??"bank"),k=Md(B),y=Yr(B),R=B.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return B.transactionId===P?g||c||N||k||y?275+(R?25:0):O?185+40*B.recommendedAction.recommendedTransactions.length+(R?25:0):146:72},te=d.useMemo(()=>({onColumnSortConfigChanged:p,sortConfig:{sortKey:n,sortOrder:a}}),[p,n,a]);if(d.useEffect(()=>{K(_[0]?.transactionId??null),A.current?.resetAfterIndex(0)},[n,a]),d.useEffect(()=>{A.current?.resetAfterIndex(0)},[P]),d.useEffect(()=>{A.current?.resetAfterIndex(0)},[_.length]),d.useEffect(()=>{T.fetchState==="Completed"&&A.current?.resetAfterIndex(0)},[T]),_.length===0){const Z=nt("reconciliation",void 0,w).tabs.find(B=>B.id==="review")?.allDoneText;return t.jsx(L0,{children:t.jsx(Ht,{tab:"reconciliation",title:Z?.title??Zt.strings.empty,subTitle:Z?.subTitle??Zt.strings.empty})})}return t.jsx(b0,{children:t.jsx(nu.Provider,{value:te,children:t.jsx(Ci,{children:({height:Z,width:B})=>t.jsx(To,{width:B,height:Z,innerElementType:iu,ref:A,itemCount:_.length,itemSize:X,itemKey:O=>_[O].transactionId,overscanCount:bp,itemData:{transactionsList:_,expandedRowId:P,allAccountList:C,classList:o,accountListNestedAccountHierarchy:m,classListNestedAccountHierarchy:S,localData:l,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:f,excludeFetchById:s,saveFetchById:v,reviewTabSelectedVendorByTransactionId:b,bankAccounts:D,creditCards:M,accountType:I,updateLocalData:u,setExpandedRowId:K,onSaveReconciliation:E,onSaveReconciliationReview:$,onReconMatchedTransactionClick:j},initialScrollOffset:0,children:p0})})})})},nu=d.createContext(void 0),iu=d.forwardRef((e,n)=>{const{children:a,style:i,...f}=e,C=d.useContext(nu);return t.jsxs(w0,{ref:n,style:{...i,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${r.sp0} ${r.sp8}`},...f,children:[C!=null&&t.jsx(n0,{onColumnSortConfigChanged:C.onColumnSortConfigChanged,sortConfig:C.sortConfig}),t.jsx(v0,{children:a})]})});iu.displayName="Account recon review table inner element type";const p0=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Eo(),{transactionsList:f,expandedRowId:C,setExpandedRowId:o,entitySearchAutoCompleteActions:l,allAccountList:m,classList:S,localData:w,updateLocalData:h,accountListNestedAccountHierarchy:s,classListNestedAccountHierarchy:v,entitySearchAutoCompleteData:b,onSaveReconciliation:T,onSaveReconciliationReview:u,onReconMatchedTransactionClick:p,excludeFetchById:E,saveFetchById:$,reviewTabSelectedVendorByTransactionId:j,bankAccounts:D,creditCards:M,accountType:_}=a,I=f[e],A=i!=null&&i===I.transactionId;return t.jsx(C0,{isPanelSelected:A,style:{...n,width:"100%"},children:t.jsx(g0,{transaction:I,expandedRowId:C,setExpandedRowId:o,entitySearchAutoCompleteActions:l,accountListNestedAccountHierarchy:s,allAccountList:m,classList:S,localData:w,updateLocalData:h,entitySearchAutoCompleteData:b,classListNestedAccountHierarchy:v,onSaveReconciliation:T,onSaveReconciliationReview:u,onReconMatchedTransactionClick:p,excludeFetchById:E,saveFetchById:$,selectedVendor:j[I.transactionId],bankAccounts:D,creditCards:M,accountType:_})})},g0=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:a,entitySearchAutoCompleteActions:i,allAccountList:f,classList:C,classListNestedAccountHierarchy:o,localData:l,entitySearchAutoCompleteData:m,excludeFetchById:S,saveFetchById:w,selectedVendor:h,bankAccounts:s,creditCards:v,accountType:b,setExpandedRowId:T,updateLocalData:u,onSaveReconciliation:p,onSaveReconciliationReview:E,onReconMatchedTransactionClick:$})=>{const j=n===e.transactionId,D=Ie(),M=ut(),_=l[e.transactionId],I=e.recommendedAction.action==="record_bill_payment",A=e.recommendedAction.action==="record_expense",P=Yr(e),K=f.find(Z=>Z.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),X=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(f0,{className:"recon-row-card",isQuickViewMode:M,isExpanded:j,children:[t.jsxs(x0,{isExpanded:j,onClick:()=>T(e.transactionId),"data-testid":re("account-reconciliation-review-row",e.transactionId),children:[M?null:t.jsx(Un,{windowSize:D,responsiveWidth:an[0].width,children:t.jsx(Hn,{children:e.transactionDate.format(Xd.MMMDCommaYYYYformat)})}),t.jsx(Un,{windowSize:D,responsiveWidth:M?Dr[0].width:an[1].width,children:t.jsx(Hn,{children:t.jsx(it,{itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"},text:(te=e,te.recommendedAction.recommendedTransactions.length>0&&te.recommendedAction.recommendedTransactions[0].merchantName!=null?te.recommendedAction.recommendedTransactions[0].merchantName:Zt.strings.hyphen)})})}),M?null:t.jsxs(t.Fragment,{children:[t.jsx(Un,{windowSize:D,responsiveWidth:an[2].width,children:t.jsx(Hn,{children:t.jsx(it,{itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(Un,{windowSize:D,responsiveWidth:an[3].width,children:t.jsx(Hn,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(Un,{windowSize:D,responsiveWidth:an[4].width,children:[t.jsx(dt,{controller:I,children:t.jsx(D0,{children:t.jsx(O0,{children:Pe.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(dt,{controller:!I,children:t.jsx(Hn,{children:K!=null?t.jsxs(t.Fragment,{children:[t.jsx(ou,{}),t.jsx(it,{itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"},text:K.accountName})]}):Zt.strings.hyphen})})]})]}),t.jsx(Un,{windowSize:D,isLastColumn:!0,responsiveWidth:M?Dr[1].width:an[5].width,children:t.jsx(Hn,{children:Kr("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(dt,{controller:j&&_!=null,children:[t.jsx(m0,{onSaveReconciliation:p,onSaveReconciliationReview:E,updateLocalData:u,saveFetchById:w,excludeFetchById:S,localData:_,classListNestedAccountHierarchy:o,allAccountList:f,classList:C,transaction:e,accountListNestedAccountHierarchy:a,entitySearchAutoCompleteActions:i,entitySearchAutoCompleteData:m,selectedVendor:h,bankAccounts:s,creditCards:v,accountType:b,onReconMatchedTransactionClick:$}),t.jsx(dt,{controller:(I||A||P)&&X!=null,children:t.jsx(P0,{children:t.jsxs(F0,{children:[b==="credit_card"?Pe.review.creditCardDetail:Pe.review.bankDetail,Zt.strings.colon," ",X]})})})]})]});var te},m0=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:a,allAccountList:i,classList:f,classListNestedAccountHierarchy:C,localData:o,entitySearchAutoCompleteData:l,excludeFetchById:m,saveFetchById:S,selectedVendor:w,bankAccounts:h,creditCards:s,accountType:v,updateLocalData:b,onSaveReconciliation:T,onSaveReconciliationReview:u,onReconMatchedTransactionClick:p})=>{const E=kt(),$=ut(),[j,D]=d.useState(!o.vendor?.id),[M,_]=d.useState(!o.customer?.id),[I,A]=d.useState(o.categoryId==null),[P,K]=d.useState(o.classId==null),[X,te]=d.useState(o.bankAccountId==null),[Z,B]=d.useState(o.creditCardId==null),[O,g]=d.useState(!o.memo),c=Ad(e),N=Ld(e),k=Od(e,v??"bank"),y=Dd(e,v??"bank"),R=Md(e),L=Yr(e),z=d.useMemo(()=>{if(!N&&!L)return Sn(n);if(w!=null&&w.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return Sn(n,w?.recommendations);const F=i.find(Q=>Q.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),Y=F!=null?{...F,reason:Pe.review.zeniGptRecommendation,min:0,max:0}:void 0;return Sn(n,[{account:Y}])},[N,L,w,e.recommendedAction.recommendedTransactions,i,n]),J=d.useMemo(()=>{if(!N&&!L)return uo(C);if(w!=null&&w.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return uo(C,w?.recommendations);const F=f.find(Q=>Q.classId===e.recommendedAction.recommendedTransactions[0]?.classId),Y=F!=null?{...F,reason:Pe.review.zeniGptRecommendation,min:0,max:0}:void 0;return uo(C,[{class:Y}])},[N,L,w,e.recommendedAction.recommendedTransactions,f,C]),ee=Fn({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:d.useMemo(()=>Vl(e,o,z,i,J,h,s,l),[e,o,J,i,z,h,s,l]),values:d.useMemo(()=>Vl(e,o,z,i,J,h,s,l),[e,o,J,i,z,h,s,l])});d.useEffect(()=>{const F=ee.watch((Y,{name:Q})=>{Q!=null&&Y!=null&&vi(()=>(async(ne,oe)=>{ne.includes("memo")||b(Wl(oe,e,l,i),e.transactionId,ne.includes("vendor"))})(Q,Y))});return()=>{F.unsubscribe()}});const U=d.useCallback(F=>{if(!$){if(N||R||L){if((N||L)&&o.vendor==null)return D(!1),void ee.setError(Ye(e.transactionId,"vendor"),{type:"required"});if(R&&o.customer==null)return _(!1),void ee.setError(Ye(e.transactionId,"customer"),{type:"required"});if(o.categoryId==null)return A(!1),void ee.setError(Ye(e.transactionId,"category"),{type:"required"})}b(Wl(F,e,l,i),e.transactionId,!1),u(e.transactionId)}},[$,N,L,R,b,e,l,i,u,o.categoryId,o.vendor,o.customer]),H=ee.watch(Ye(e.transactionId,"vendor")),V=ee.watch(Ye(e.transactionId,"customer")),G=d.useRef(),ae=d.useMemo(()=>N||L?"vendor":R?"customer":null,[N,L,R]),se=(F,Y)=>{ae!=null&&a.onAutoCompleteInputChange?.(F,ae),G.current=Y};d.useEffect(()=>{l.entityAutoCompleteView.fetchState==="Completed"&&((N||L)&&G.current?.(Sd(l.entityAutoCompleteView)),R&&G.current?.(Kh(l.entityAutoCompleteView)))},[l.entityAutoCompleteView,R,N,L]);const q=d.useMemo(()=>{if(v==="bank")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"]}else switch(e.transactionDirection){case"payment":return["record_expense"];case"deposit":return["record_cc_credit","record_cc_payment"];default:return[]}},[v,e.recommendedAction.action,e.transactionDirection]);return d.useEffect(()=>{I===!1&&o.categoryId==null&&ee.setFocus(Ye(e.transactionId,"category"))},[I]),d.useEffect(()=>{P===!1&&o.classId==null&&ee.setFocus(Ye(e.transactionId,"class"))},[P]),d.useEffect(()=>{j===!1&&o.vendor==null&&ee.setFocus(Ye(e.transactionId,"vendor"))},[j]),d.useEffect(()=>{M===!1&&o.customer==null&&ee.setFocus(Ye(e.transactionId,"customer"))},[M]),d.useEffect(()=>{X===!1&&o.bankAccountId==null&&ee.setFocus(Ye(e.transactionId,"bankAccount"))},[X]),d.useEffect(()=>{Z===!1&&o.creditCardId==null&&ee.setFocus(Ye(e.transactionId,"creditCard"))},[Z]),t.jsx(Bn,{...ee,children:t.jsx("form",{onSubmit:ee.handleSubmit(U),id:Ul(e.transactionId),children:t.jsxs(y0,{children:[t.jsxs(S0,{children:[t.jsxs(E0,{children:[t.jsxs(T0,{children:[t.jsx(ou,{}),t.jsx(Lo,{label:{label:c?Pe.review.formLabels.match:Pe.review.formLabels.categorize},radioField:{name:Ye(e.transactionId,"match_radio"),id:c?"match":"categorize",value:c?"match":"categorize",checked:!0,style:{width:r.sp3,height:r.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(dt,{controller:!c,children:t.jsxs(t.Fragment,{children:[t.jsx(Kl,{}),q.map(F=>t.jsx(Lo,{label:{label:Pe.review.formLabels[F]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ye(e.transactionId,"recommendedActionType"),id:F,value:F,style:{width:r.sp3,height:r.sp3,padding:"2px"}}},F))]})})]}),t.jsxs($0,{children:[t.jsx(gi,{variant:"secondary",size:"small",label:Pe.review.formLabels.exclude,loading:m[e.transactionId]?.fetchState==="In-Progress","data-testid":re("account-reconciliation-review-exclude-button",e.transactionId),style:{width:r.sp10},reverseSpinnerColor:!1,onClick:()=>{$||T({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(gi,{form:Ul(e.transactionId),"data-testid":re("account-reconciliation-review-save-button",e.transactionId),label:Zt.footer.save,style:{width:r.sp10},variant:"primary",size:"small",type:"submit",loading:S[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(dt,{controller:N||R||L,children:t.jsxs(qo,{children:[t.jsx(dt,{controller:N||L,children:t.jsx(Ot,{onClickAway:()=>{o.vendor==null&&j===!1&&D(!0)},children:t.jsx(we,{style:{flex:1,padding:W[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(Yt,{className:"hover-background",style:{padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Zt.texts.vendor}),t.jsx(Ne,{style:{gap:W[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:j===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&D(!1)},"data-testid":re("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.champion,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.addVendor]}):t.jsx($r,{name:Ye(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Pe.review.formLabels.addVendor,valueToId:F=>F,defaultValue:{selectedOption:H?.selectedOption,defaultOptions:H?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:r.sp4})},registerOptions:{required:!0,validate:F=>!!F.selectedOption},loadOptions:se})})})]})})})}),t.jsx(dt,{controller:R,children:t.jsx(Ot,{onClickAway:()=>{o.customer==null&&M===!1&&_(!0)},children:t.jsx(we,{style:{flex:1,padding:W[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(Yt,{className:"hover-background",style:{padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Zt.texts.customer}),t.jsx(Ne,{style:{gap:W[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:M===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&_(!1)},"data-testid":re("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.champion,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.addCustomer]}):t.jsx($r,{name:Ye(e.transactionId,"customer"),allowEmpty:!1,placeholder:Pe.review.formLabels.addCustomer,valueToId:F=>F,defaultValue:{selectedOption:V?.selectedOption,defaultOptions:V?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:r.sp4})},registerOptions:{required:!0,validate:F=>!!F.selectedOption},loadOptions:se})})})]})})})}),t.jsx(Ot,{onClickAway:()=>{o.categoryId==null&&I===!1&&A(!0)},children:t.jsx(we,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Zt.texts.category}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(t.Fragment,{children:I===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&($||A(!1))},"data-testid":re("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.champion,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.addCategory]}):t.jsx(Yn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ye(e.transactionId,"category"),placeholder:Pe.review.formLabels.addCategory,valueToId:F=>(Y=>i.filter(Q=>Q.qboId===Y)[0]?.qboId)(F),defaultValue:{allOptions:z,selectedOption:i.find(F=>F.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:F=>!!F.selectedOption},customStyleConfig:no})})})]})})}),t.jsx(Ot,{onClickAway:()=>{o.classId==null&&P===!1&&K(!0)},children:t.jsx(we,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Zt.texts.class}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(t.Fragment,{children:P===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&K(!1)},"data-testid":re("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.champion,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.addClass]}):t.jsx(Yn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ye(e.transactionId,"class"),placeholder:Pe.review.formLabels.addClass,valueToId:F=>(Y=>f.filter(Q=>Q.classId===Y)[0]?.accountingClassNumber??void 0)(F),defaultValue:{allOptions:J,selectedOption:o.classId},registerOptions:{required:!0,validate:F=>!!F.selectedOption},customStyleConfig:no})})})]})})})]})}),t.jsx(dt,{controller:c,children:t.jsxs(j0,{children:[t.jsxs(N0,{children:[t.jsx("span",{className:"matched-text",children:`${Pe.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Pe.review.matchesFoundFullInfo]}),t.jsx(I0,{children:e.recommendedAction.recommendedTransactions.map(F=>F.bookTransactionId!=null?t.jsxs(R0,{children:[t.jsx(Lo,{label:{label:t.jsxs(_0,{children:[t.jsx(Fe,{children:F.date.format(Xd.MMMDCommaYYYYformat)}),t.jsx(Fe,{children:F.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ye(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:F.bookTransactionId,value:F.bookTransactionId,style:{width:r.sp3,height:r.sp3,padding:"2px"}}}),t.jsxs(M0,{"data-testid":re("account-reconciliation-review-matched-transaction-amount",F.bookTransactionId),onClick:()=>{F.bookTransactionId!=null&&p(F.bookTransactionId)},children:[t.jsx(A0,{children:Kr("0,0.00",F.amount.amount,F.amount.currencySymbol)}),t.jsx(Kl,{})]})]},F.bookTransactionId):null)})]})}),t.jsx(dt,{controller:k,children:t.jsx(qo,{children:t.jsx(Ot,{onClickAway:()=>{o.bankAccountId==null&&X===!1&&te(!0)},children:t.jsx(we,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:v==="credit_card"?Pe.review.formLabels.selectAccount:Pe.review.formLabels.transferTo}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(t.Fragment,{children:X===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&($||te(!1))},"data-testid":re("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.selectAccount]}):t.jsx(Yn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ye(e.transactionId,"bankAccount"),placeholder:Pe.review.formLabels.selectAccount,defaultValue:{allOptions:eu(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:F=>!!F.selectedOption},customStyleConfig:no})})})]})})})})}),t.jsx(dt,{controller:y,children:t.jsx(qo,{children:t.jsx(Ot,{onClickAway:()=>{o.creditCardId==null&&Z===!1&&B(!0)},children:t.jsx(we,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Pe.review.formLabels.creditCard}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(t.Fragment,{children:Z===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&($||B(!1))},"data-testid":re("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.selectCard]}):t.jsx(Yn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ye(e.transactionId,"creditCard"),placeholder:Pe.review.formLabels.selectCard,defaultValue:{allOptions:tu(s),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:F=>!!F.selectedOption},customStyleConfig:no})})})]})})})})}),t.jsx(dt,{controller:!c,children:t.jsx(k0,{children:t.jsx(we,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Pe.review.header.memo}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(t.Fragment,{children:O===!0?t.jsxs(Re,{onClick:F=>{F.stopPropagation(),!$&&g(!1)},"data-testid":re("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:W[1],color:E.colors.champion,cursor:"pointer"},children:[t.jsx(jn,{}),Pe.review.formLabels.addMemo]}):t.jsx(Gh,{name:Ye(e.transactionId,"memo"),placeholder:Pe.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},no={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:r.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${r.sp5})`,marginRight:`-${r.sp3}`,marginLeft:`-${r.sp3}`})},Vl=(e,n,a,i,f,C,o,l)=>{const m=i.find(S=>S.accountId===n.categoryId);return{[Bt]:{[e.transactionId]:{category:{selectedOption:m?.qboId,allOptions:a},class:{selectedOption:n?.classId,allOptions:f},bankAccount:{selectedOption:n?.bankAccountId,allOptions:eu(C)},creditCard:{selectedOption:n?.creditCardId,allOptions:tu(o)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:jd(l.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:np(n?.customer,l.entityAutoCompleteView)}}}}},Wl=(e,n,a,i)=>{const{vendor:f,customer:C}=e[Bt][n.transactionId];let o,l;if(f.selectedOption!=null){const m=f.defaultOptions.find(S=>S.value===f.selectedOption);if(m!=null)o={id:f.selectedOption,name:m.label};else{const S=a.entityAutoCompleteView.vendor.find(w=>w.id===f.selectedOption||w.zeniId===f.selectedOption);S!=null&&(o={id:S.zeniId,name:S.name})}}if(C.selectedOption!=null){const m=C.defaultOptions.find(S=>S.value===C.selectedOption);if(m!=null)l={id:C.selectedOption,name:m.label};else{const S=a.entityAutoCompleteView.customer.find(w=>w.id===C.selectedOption||w.zeniId===C.selectedOption);S!=null&&(l={id:S.zeniId,name:S.name})}}return{categoryId:i.find(m=>m.qboId===e[Bt][n.transactionId].category.selectedOption)?.accountId??e[Bt][n.transactionId].category.selectedOption,classId:e[Bt][n.transactionId].class.selectedOption,memo:e[Bt][n.transactionId].memo,matchedTransactionId:e[Bt][n.transactionId].matchedTransaction,vendor:o,bankAccountId:e[Bt][n.transactionId].bankAccount.selectedOption,creditCardId:e[Bt][n.transactionId].creditCard.selectedOption,customer:l}},Hn=x(Fe)`
1194
+ display: flex;
1195
+ align-items: center;
1196
+ column-gap: ${r.sp1};
1197
+ `,Un=x.div`
1198
+ width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
1199
+ display: flex;
1200
+ justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
1201
+ `,f0=x.div`
1202
+ display: flex;
1203
+ flex-direction: column;
1204
+ box-sizing: border-box;
1205
+ position: relative;
1206
+ background: ${e=>e.theme.colors.grey5};
1207
+ border: 1px solid
1208
+ ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
1209
+ color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
1210
+ &:hover {
1211
+ border: 1px solid ${e=>e.theme.colors.primary};
1212
+ color: ${e=>e.theme.colors.primary};
1213
+ }
1214
+ box-shadow: ${e=>e.theme.colors.elevation1};
1215
+ border-radius: ${r.sp2};
1216
+ `,x0=x.div`
1217
+ display: flex;
1218
+ flex-direction: row;
1219
+ align-items: center;
1220
+ cursor: pointer;
1221
+ padding: ${r.sp3} ${r.sp4};
1222
+ column-gap: ${r.sp2};
1223
+
1224
+ border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
1225
+ `,y0=x.div`
1226
+ padding: ${r.sp2} ${r.sp4};
1227
+ display: flex;
1228
+ flex-direction: column;
1229
+ row-gap: ${r.sp2};
1230
+ `,C0=x.div`
1231
+ top: ${r.sp0};
1232
+ left: ${r.sp0};
1233
+ padding-right: var(--side-panel-list-item-pr, 0px);
1234
+ box-sizing: border-box;
1235
+ ${e=>e.isPanelSelected===!0&&ke`
1236
+ .recon-row-card {
1237
+ ${qr(e.theme)}
1238
+ }
1239
+ `}
1240
+ `,b0=x.div`
1241
+ height: calc(100vh - 350px);
1242
+ max-width: 99.9%;
1243
+ padding: ${r.sp0};
1244
+ `,w0=x.div``,v0=x.div`
1245
+ position: relative;
1246
+ width: auto;
1247
+ height: 100%;
1248
+ display: flex;
1249
+ flex-direction: column;
1250
+ row-gap: ${r.sp3};
1251
+ `,S0=x.div`
1252
+ display: flex;
1253
+ flex-direction: row;
1254
+ align-items: center;
1255
+ justify-content: space-between;
1256
+ padding: 12px ${r.sp3};
1257
+ background-color: ${e=>e.theme.colors.background};
1258
+ border-radius: ${r.sp2};
1259
+ `,qo=x.div`
1260
+ display: flex;
1261
+ flex-direction: row;
1262
+ align-items: center;
1263
+ column-gap: ${r.sp3};
1264
+ `,k0=x.div`
1265
+ width: 100%;
1266
+ `,$0=x.div`
1267
+ display: flex;
1268
+ flex-direction: row;
1269
+ align-items: center;
1270
+ column-gap: ${r.sp3};
1271
+ `,E0=x.div`
1272
+ display: flex;
1273
+ flex-direction: row;
1274
+ align-items: center;
1275
+ column-gap: ${r.sp6};
1276
+ `,T0=x.div`
1277
+ display: flex;
1278
+ flex-direction: row;
1279
+ align-items: center;
1280
+ column-gap: ${r.sp1};
1281
+ `,jn=x(jo)`
1282
+ width: ${r.sp3};
1283
+ height: ${r.sp3};
1284
+ `,Kl=x(ad)`
1285
+ width: ${r.sp3};
1286
+ height: ${r.sp3};
1287
+ color: ${e=>e.theme.colors.hero};
1288
+ `,j0=x.div`
1289
+ display: flex;
1290
+ flex-direction: column;
1291
+ row-gap: ${r.sp3};
1292
+ padding: ${r.sp0} 12px;
1293
+ `,N0=x(Fe)`
1294
+ color: ${e=>e.theme.colors.primary};
1295
+
1296
+ .matched-text {
1297
+ font-weight: ${oi.bold};
1298
+ }
1299
+ `,_0=x.div`
1300
+ display: flex;
1301
+ align-items: center;
1302
+ column-gap: ${r.sp2};
1303
+ `,I0=x.div`
1304
+ display: flex;
1305
+ flex-direction: column;
1306
+ row-gap: ${r.sp2};
1307
+ `,R0=x.div`
1308
+ display: flex;
1309
+ flex-direction: row;
1310
+ align-items: center;
1311
+ justify-content: space-between;
1312
+ padding-bottom: ${r.sp2};
1313
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
1314
+ `,A0=x(Fe)`
1315
+ color: ${e=>e.theme.colors.hero};
1316
+ `,L0=x.div`
1317
+ height: 100%;
1318
+ display: flex;
1319
+ justify-content: center;
1320
+ align-items: center;
1321
+ `,D0=x.div`
1322
+ border: 1px solid ${e=>e.theme.colors.grey2};
1323
+ padding: ${r.sp0} ${r.sp1};
1324
+ border-radius: ${r.sp1};
1325
+ `,O0=x(lt)`
1326
+ color: ${e=>e.theme.colors.hero};
1327
+ `,M0=x.div`
1328
+ display: flex;
1329
+ align-items: center;
1330
+ column-gap: 20px;
1331
+ cursor: pointer;
1332
+ `,P0=x.div`
1333
+ text-align: center;
1334
+ padding: ${r.sp1} ${r.sp0};
1335
+ border-top: 1px solid ${e=>e.theme.colors.grey3};
1336
+ `,F0=x(lt)`
1337
+ color: ${e=>e.theme.colors.hero};
1338
+ `,ou=x($n)`
1339
+ width: ${r.sp3};
1340
+ height: ${r.sp3};
1341
+ margin-right: ${r.sp1};
1342
+ path {
1343
+ stroke-width: 2;
1344
+ }
1345
+ `,B0=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:a,currentFooterFormId:i,entitySearchAutoCompleteActions:f,onUpdateReconcileTabLocalData:C,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:l,updateReviewTabLocalData:m,onReconReviewTabColumnSortConfigChanged:S,onSaveReconciliation:w,onSaveReconciliationReview:h,onReconMatchedTransactionClick:s})=>{const{accountReconciliationsByAccountID:v,reconciliationTabsState:{reconcile:{uiState:{sortKey:b,sortOrder:T}}},selectedReconAccount:u}=e,p=v[a],{transactionFetchState:E}=u??{};return E?.fetchState==="In-Progress"||E?.fetchState==="Not-Started"?t.jsxs(Gl,{style:{paddingLeft:W[8],paddingRight:W[8]},children:[t.jsx(z0,{children:an.map($=>t.jsx(gt,{width:$.loaderWidth,height:18},$.key))}),t.jsxs(U0,{children:[...Array(3).fill(0).map(($,j)=>t.jsx(H0,{children:an.map(D=>t.jsx(gt,{width:D.loaderWidth,height:W[4]},D.key))},`${j}_${$}`))]})]}):t.jsx(Gl,{children:e.selectedTab==="reconcile"?t.jsx(Yf,{selectedAccountId:a,currentFooterFormId:i,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:C,onReconTabColumnSortConfigChanged:l,onSaveReconciliation:w,sortConfig:{sortKey:b,sortOrder:T},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:p?.accountReconEntity.transactionsToReconcile}):t.jsx(h0,{localData:e.reconciliationTabsState.review.localData,reviewTabSelectedVendorByTransactionId:e.reviewTabSelectedVendorByTransactionId,refreshStatus:e.accountReconciliationsByAccountID[a]?.refreshStatus??{fetchState:"Not-Started",error:null},accountReconEntity:e.accountReconciliationsByAccountID[a].accountReconEntity,accountListNestedAccountHierarchy:e.accountListNestedAccountHierarchy,classListNestedAccountHierarchy:e.classListNestedAccountHierarchy,allAccountList:e.allAccountList,classList:e.allClassList,bankAccounts:e.bankAccounts,creditCards:e.creditCards,entitySearchAutoCompleteData:n,updateLocalData:m,entitySearchAutoCompleteActions:f,onColumnSortConfigChanged:S,onSaveReconciliation:w,onSaveReconciliationReview:h,onReconMatchedTransactionClick:s,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:a,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Gl=x.div`
1346
+ width: 100%;
1347
+ height: 100%;
1348
+ `,z0=x.div`
1349
+ display: flex;
1350
+ justify-content: space-between;
1351
+ padding: ${r.sp3} ${r.sp4};
1352
+ column-gap: ${r.sp6};
1353
+ `,H0=x.div`
1354
+ display: flex;
1355
+ justify-content: space-between;
1356
+ padding: ${r.sp3} ${r.sp4};
1357
+ background-color: ${e=>e.theme.colors.grey5};
1358
+ border-radius: ${r.sp2};
1359
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1360
+ box-shadow: ${e=>e.theme.colors.elevation1};
1361
+ column-gap: ${r.sp6};
1362
+ `,U0=x.div`
1363
+ display: flex;
1364
+ gap: ${r.sp3};
1365
+ flex-direction: column;
1366
+ `;function Yl({section:e,allAccountReconciliations:n,title:a,subTitle:i,isLastNode:f,isTitleRowRequired:C,config:o}){const l={children:[],id:Qt("section",[],a),isLastNode:f,reportElementData:{element:{kind:"section",title:a,data:e,numOfBalances:0},config:o}};if(C){const S={children:[],id:Qt("title_string_only",[],a),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a,data:e,numOfBalances:0},config:o}};l.children.push(S)}const m=function({title:S,section:w,config:h,numOfBalances:s,nodeId:v}){return{children:[],id:v??Qt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:S,data:w,numOfBalances:s},config:h}}}({title:i,section:e,config:o,numOfBalances:0});return l.children.push(m),e.accountIDs.forEach((S,w)=>{const h=n[S],s=function({account:v,numOfBalances:b,title:T,isLastNode:u,config:p}){return{children:[],id:Qt("ac_group_report",[],T),isLastNode:u,reportElementData:{element:{kind:"ac_group_report",title:T,data:v,numOfBalances:b},config:p}}}({account:h,numOfBalances:0,title:h.accountReconEntity.account.accountName,isLastNode:w===e.accountIDs.length-1,config:o});l.children.push(s)}),l}function ru({config:e,accountReconForSection:n,nodeId:a}){return{children:[],id:a??Qt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}const V0=(e,n,a,i,f=!0,C="assets")=>{const o=C==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,l=ru({config:n,accountReconForSection:o}),m=[];m.push(l);const S=Array.isArray(a[i])?a[i]:[],{expenseAutomation:{accountRecon:{reconciliation:w}},common:{loading:h}}=$e.getLocalizedStrings(),s=v=>v.filter(b=>!S.includes(b));if(e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress")[...Array(3)].forEach((v,b)=>{m.push(function({title:T,config:u,nodeId:p}){return{children:[],id:p??Qt("loading_in_progress",[],T),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:u}}}({title:`${b}+${h}`,config:n}))});else{const v=s(e.accountReconciliationBySectionID.assets.accountIDs),b=Yl({section:{...e.accountReconciliationBySectionID.assets,accountIDs:v},allAccountReconciliations:e.accountReconciliationsByAccountID,title:w.headers.section.assets.title,subTitle:w.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(m.push(b),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const T=s(e.accountReconciliationBySectionID.liabilities.accountIDs),u=Yl({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:T},allAccountReconciliations:e.accountReconciliationsByAccountID,title:w.headers.section.liabilities.title,subTitle:w.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});m.push(u)}}return{config:n,headerNodes:f?[l]:[],contentNodes:m}},Or={wrapperPadding:new ge(W[2],W[2],W[2],W[8]),contentPaddingLeft:new ge(W[2],W[2],W[2],W[2]),contentPaddingRight:new ge(W[2],W[2],W[2],W[2])},W0=x.div`
1367
+ display: flex;
1368
+ height: 100%;
1369
+ width: 100%;
1370
+ justify-content: center;
1371
+ align-items: center;
1372
+ `,K0=x.div`
1373
+ display: flex;
1374
+ height: 100%;
1375
+ min-height: 100%;
1376
+ flex: 1 1 auto;
1377
+ width: 100%;
1378
+ justify-content: center;
1379
+ padding-left: ${e=>Or.wrapperPadding.valuePx(e.windowSize)};
1380
+ background-color: ${e=>e.theme.colors.grey4};
1381
+ `,G0=x.div`
1382
+ width: 100%;
1383
+ height: 100%;
1384
+ `,{common:Y0}=$e.getLocalizedStrings();function q0({reconciliation:e,companyId:n,onReload:a,onReviewClicked:i,setOpenDrawerClicked:f,onFetchLinkTokenClick:C,onEstablishConnectionClick:o,onAddStatementClick:l}){const[m,S]=d.useState(void 0),[w,h]=d.useState(void 0),s=e.plaidConnectionDetails.link_account_no_microdeposit,v=e.plaidConnectionDetails.update_account,b=w==="update_account"?v:s,[T,u]=d.useState(b.linkToken??null),[p,E]=d.useState(!1),{useDynamicConfig:$}=pd(),{configValue:j}=$(gd.accountReconGLAccountsConfig),D=d.useCallback(H=>{S(H),h("link_account_no_microdeposit")},[]),M=d.useCallback(H=>{const V=P.current.accountReconciliationsByAccountID[H]?.paymentAccountId;S(H),h("update_account"),C("update_account",V)},[]),_=d.useCallback(H=>{f(H)},[]),I=d.useRef(m),A=d.useRef(w),P=d.useRef(e);d.useEffect(()=>{I.current=m},[m]),d.useEffect(()=>{A.current=w},[w]),d.useEffect(()=>{P.current=e},[e]);const K=d.useCallback(H=>{o(H,I.current??"",A.current),S(void 0),h(void 0),E(!1)},[o]),X=d.useCallback((H,V)=>{H!=null&&console.log("Plaid Connection Error",H,V),S(void 0),h(void 0),E(!1)},[]),{open:te,ready:Z}=wp({token:T,onSuccess:K,onExit:X});d.useEffect(()=>{(ni(new Date().toISOString()).isAfter(b.expiration)||b.linkToken==null)&&b.fetchStatus.fetchState==="Not-Started"&&C("link_account_no_microdeposit")},[b.fetchStatus.fetchState]),d.useEffect(()=>{!p&&w!=null&&b.linkToken===T&&b.fetchStatus.fetchState==="Completed"&&Z&&E(!0)},[Z,T,b.fetchStatus.fetchState,b.linkToken,w,p]),d.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==T&&u(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,T]),d.useEffect(()=>{p&&te()},[p,te]);const[B,O]=d.useState(void 0),[g,c]=d.useState(void 0),[N,k]=d.useState("assets"),y=ni("2025-03-31"),R=Ie(),L=kt();wi({componentName:"expense_automation.account_reconciliation_list",enabled:e.fetchStatus.fetchState==="Completed"});const z=!0,J=Array.isArray(j?.[n])?j[n]:[],ee=function(H,V){return V?Do("section")+Do("total")+H*Do("ac_group_report"):1/0}(e.accountReconciliationBySectionID.assets.accountIDs.filter(H=>!J.includes(H)).length,e.accountReconciliationBySectionID.liabilities.accountIDs.length>0),U=d.useCallback(H=>{const V=H.scrollTop>=ee?"liabilities":"assets";V!==N&&k(V)},[ee,N]);return d.useEffect(()=>{const H={reportId:"account_reconciliation",mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:y,firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:i,onConnectClicked:D,onReconnectClicked:M,onOpenDrawerClicked:_,onStatementAddClicked:l}};if(B!=null&&Br(g,e)){const V=function(G,ae,se,q=!1,F="assets"){Object.assign(G.config,se);const Y=ru({config:se,accountReconForSection:F==="liabilities"&&ae.accountReconciliationBySectionID.liabilities.accountIDs.length>0?ae.accountReconciliationBySectionID.liabilities:ae.accountReconciliationBySectionID.assets});return{config:se,headerNodes:q?[Y]:[],contentNodes:[Y,...G.contentNodes.slice(1)]}}(B,e,H,z,N);O(V)}else{const V=V0(e,H,j,n,z,N);c(e),O(V)}},[e,N]),e.fetchStatus.fetchState==="Error"?t.jsx(W0,{children:t.jsx(i1,{onReload:a,message:Y0.errorMessage.somethingWentWrong})}):t.jsx(K0,{windowSize:R,children:B!=null?t.jsx(G0,{windowSize:R,children:t.jsx(Bd,{backgroundColor:new pi(L.colors.grey4),rootNodes:B,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:z,isStickyName:z},treeNodePadding:{left:Or.contentPaddingLeft.value(R),right:Or.contentPaddingRight.value(R)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:U})}):null})}function J0({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:a,reconciliation:i,companyId:f,onReconTabColumnSortConfigChanged:C,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:l,setCurrentFooterFormId:m,onReloadReconciliationListPage:S,onReviewClicked:w,onFetchLinkTokenClick:h,onEstablishConnectionClick:s,onAddStatementClick:v,onReconReviewTabColumnSortConfigChanged:b,onSaveReconciliation:T,onSaveReconciliationReview:u,setOpenDrawerClicked:p,onReconMatchedTransactionClick:E}){return i.selectedAccountId==null?t.jsx(q0,{companyId:f,reconciliation:i,onReload:S,onReviewClicked:w,onFetchLinkTokenClick:h,onEstablishConnectionClick:s,setOpenDrawerClicked:p,onAddStatementClick:v}):t.jsx(B0,{currentFooterFormId:e,setCurrentFooterFormId:m,onUpdateReconcileTabLocalData:l,onReconTabColumnSortConfigChanged:C,reconciliation:i,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:a,onReconReviewTabColumnSortConfigChanged:b,entitySearchAutoCompleteData:n,selectedAccountId:i.selectedAccountId,onSaveReconciliation:T,onSaveReconciliationReview:u,onReconMatchedTransactionClick:E})}function Z0({config:e,isLastNode:n,numOfBalances:a,parentNodeIDs:i,title:f,vendorRowIndex:C,vendorView:o}){const l=Qt("flux_vendor_row",i,o.vendor.id),m={children:[],id:l,isLastNode:n,reportElementData:{element:{kind:"flux_vendor_row",title:f,data:o,numOfBalances:a,index:C},config:e}},S=o.vendorAccountsAndClasses;return m.children=S.map((w,h)=>function({accountAndClassReport:s,numOfBalances:v,title:b,isLastNode:T,isFirstNode:u,config:p,parentNodeIDs:E,ancestorMetadata:$}){let j="";return s.accountBase&&s.classBase?j=`${s.accountBase.accountId}_${s.classBase.classId}`:s.accountBase?j=s.accountBase.accountId:s.classBase&&(j=s.classBase.classId),{children:[],id:Qt("flux_vendor_account_class_row",E,j),isLastNode:T,isFirstNode:u,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:b,data:s,metadata:$,numOfBalances:v},config:p}}}({accountAndClassReport:w,numOfBalances:a,title:w.accountBase?.accountName??"",config:e,isLastNode:h===S.length-1,isFirstNode:h===0,parentNodeIDs:[...i,l],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:S.length>1,hasChildren:!1,isLastNode:h===S.length-1,isFirstNode:h===0,name:w.accountBase?.accountName},isVendorLastChild:n,vendorId:o.vendor.id}})),m}const{common:io,expenseAutomation:{fluxAnalysis:Q0}}=$e.getLocalizedStrings(),X0=(e,n,a=!0)=>{const i=e.sections.generalExpense.balancesByMonth?Object.keys(e.sections.generalExpense.balancesByMonth).length:e.sections.reimbursement.balancesByMonth?Object.keys(e.sections.reimbursement.balancesByMonth).length:2,f=e.sections.generalExpense.balancesByMonth?qn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?qn(e.sections.reimbursement.balancesByMonth):[],C=zd({balances:f,config:n}),o=[],l=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,m=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(l===!0)o.push(function({title:S,balances:w,config:h,nodeId:s}){return{children:[],id:s??Qt("headers_loading_in_progress",[],S),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:w,numOfBalances:w.length},config:h}}}({title:`${io.loading}`,balances:f,config:n})),[...Array(10)].forEach((S,w)=>{o.push(Sa({title:`${w}+${io.loading}`,balances:f,config:n}))});else{o.push(C);let S=0;if(["generalExpense","reimbursement"].forEach(w=>{const h=e.sections[w];if(h.vendors.length>0||h.fetchStatus.fetchState==="Completed"){const s=qn(h.balancesByMonth);o.push(function({section:v,numOfBalances:b,title:T,isLastNode:u,config:p,vendorIndexOffset:E}){const $=v.sectionId,j={children:[],id:$,isLastNode:u,reportElementData:{element:{kind:"section",title:T,data:v,numOfBalances:b,sectionType:v.sectionId},config:p}},D=(v.vendors??[]).map((M,_)=>Z0({config:p,isLastNode:_===v.vendors.length-1,numOfBalances:b,parentNodeIDs:[$],title:M.vendor.name,vendorRowIndex:E+_,vendorView:M}));return j.children.push(...D),j}({section:{sectionId:w,reportId:"flux_analysis_operating_expense",balances:s,vendors:h.vendors,varianceAmount:h.varianceAmount,variancePercentage:h.variancePercentage,currency:e.currency},numOfBalances:i,title:ex(w),isLastNode:!1,config:n,vendorIndexOffset:S})),S+=h.vendors.length}}),e.totalBalancesAndVariance){const w=e.totalBalancesAndVariance.balancesByMonth?qn(e.totalBalancesAndVariance.balancesByMonth):[],h=function({title:s,data:v,isLastNode:b,config:T,numOfBalances:u}){return{children:[],id:Qt("total",[],s),isLastNode:b,reportElementData:{element:{kind:"total",title:s,data:v,numOfBalances:u},config:T}}}({title:io.texts.total,data:{balances:w,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:i});o.push(h)}m===!0&&[...Array(1)].forEach((w,h)=>{o.push(Sa({title:`${h}+${io.loading}`,balances:f,config:n}))})}return{config:n,headerNodes:a&&!l?[C]:[],contentNodes:o}},ex=e=>Q0.sectionTitle[e],tx=e=>e.sections.generalExpense.balancesByMonth?qn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?qn(e.sections.reimbursement.balancesByMonth):[],Mr={contentPaddingLeft:new ge(W[0],W[0],W[0]),contentPaddingRight:new ge(W[3],W[3],W[8]),wrapperPadding:new ge(W[3],W[3],W[8])},nx=x.div`
1385
+ display: flex;
1386
+ position: sticky;
1387
+ width: 100%;
1388
+ justify-content: center;
1389
+ padding-top: ${e=>Mr.wrapperPadding.valuePx(e.windowSize)};
1390
+ padding-left: 20px;
1391
+ background-color: ${e=>e.theme.colors.grey4};
1392
+ `,ix=x.div`
1393
+ width: 100%;
1394
+ height: calc(100vh - ${r.sp11});
1395
+ `,ox=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:a,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:f,onSortOrderChanged:C,updateNodeCollapsableStatus:o,fetchReimbursementView:l,fetchGeneralExpenseView:m}=e,S=Ie(),w=kt(),[h,s]=d.useState(null),[v,b]=d.useState(null),[T,u]=d.useState(null),p=wa([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[E,$]=d.useState(!1),j=ma(p),D=ma(n.refreshStatus.fetchState),M=d.useRef(!1),[_,I]=d.useState(!1),A=d.useRef(Z=>{Z&&!M.current&&(M.current=!0,I(!0))});wi({componentName:"expense_automation.flux_analysis",enabled:_});const P=d.useCallback(Z=>{const B=!(n.uiState.collapsableStatus[Z]??1);o({...n.uiState.collapsableStatus,[Z]:B})},[n.uiState.collapsableStatus,o]),K=d.useCallback((Z,B)=>{let O=n.reviewOperatingExpensesIds;const g=[];let c=n.selectedSectionIds;const N=n.sections[Z].vendors;g.push(...N.map(y=>y.fluxAnalysisEntityId));let k=Fd-O.length;B?(g.forEach(y=>{!O.includes(y)&&k>0&&(O=[...O,y],k--)}),c=[...c,Z]):(O=O.filter(y=>!g.includes(y)),c=c.filter(y=>y!==Z)),i(O),f(c)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,i,f]),X=d.useCallback(Z=>{const B=n.uiState.collapsableStatus[Z]===!1;Z==="generalExpense"&&!B&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&l(n.uiState.paginationInfoByGroup.reimbursement.pageToken),P(Z)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,l,P]),te=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length;return d.useEffect(()=>{const Z={reportId:"flux_analysis_operating_expense",mode:"none",displayOrder:"ascending_date",reportFormat:"summary",firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,fluxAnalysisConfig:{sortOrder:n.uiState.sortOrder,sortKey:n.uiState.sortKey,sortOrSearchInProgress:!1,reviewOpExIds:n.reviewOperatingExpensesIds,reviewSectionIds:n.selectedSectionIds,fetchStatus:n.fetchStatus.fetchState,setIsSortApplied:$,onSectionRowClick:X,updateNodeCollapsableStatus:P,updateOperatingExpensesIdsForReview:i,handleRedirectToVendorDetailPage:a,onSectionCheckboxClick:K,onSortOrderChanged:C}};if(h!=null&&Br(v,n)){const B=function(O,g,c,N=!0){Object.assign(O.config,g);const k=tx(c),y=zd({balances:k,config:g});return{config:g,headerNodes:N?[y]:[],contentNodes:[y,...O.contentNodes.slice(1)]}}(h,Z,n,!0);s(B)}else{const B=X0(n,Z,!0);b(n),s(B)}},[n,v,a,K,X,C,P,i]),t.jsx(nx,{windowSize:S,children:t.jsx(ix,{children:h?t.jsx(rx,{ref:A.current,children:t.jsx(Bd,{backgroundColor:new pi(w.colors.grey4),rootNodes:h,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:Mr.contentPaddingLeft.value(S),right:Mr.contentPaddingRight.value(S)},nodeOpenStatus:Object.keys(n.uiState.collapsableStatus).reduce((Z,B)=>(Z[B]=n.uiState.collapsableStatus[B],Z),{}),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:Z=>Z<te,itemCount:te,loadMoreItems:()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?m(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)}},variableNodeHeightTree:{prevFetchState:j??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:E,setIsSortApplied:$,reducedFetchState:wa([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:D??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:T,setHoveredParentId:u}})}):null})})},rx=x.div`
1396
+ height: 100%;
1397
+ width: 100%;
1398
+ `,{reports:{common:ax}}=$e.getLocalizedStrings(),sx=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:a,markAsReview:i,onReloadPage:f,setCurrentFooterFormId:C,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:l,onUpdateFluxAnalysisUIState:m,redirectToVendorDetailPage:S,fetchFluxViewOnScroll:w,onFetchReimbursementView:h})=>{const{fetchStatus:s,reviewOperatingExpensesIds:v,uiState:b}=n,T=d.useRef(null),u=d.useRef(!1),p=Fn({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:lx(v)}),E=Ie();d.useEffect(()=>()=>{C("expenseAutomationPage")},[C]),d.useEffect(()=>{u.current&&T?.current?.scrollLeft!=null&&b.scrollPosition?.scrollLeft!==T.current.scrollLeft&&b.scrollPosition!=null&&m({scrollPosition:{scrollTop:b.scrollPosition?.scrollTop,scrollLeft:T.current.scrollLeft}})},[b.scrollPosition?.scrollLeft,T.current?.scrollLeft,b.scrollPosition,m]),d.useEffect(()=>{C(v.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[v,C]);const $=_=>{S(_)},j=_=>{w(e,_)},D=(_,I)=>{m({sortOrder:_,sortKey:I}),a(),h(e,null,!1)},M=()=>{const _=au(n.sections,v);i(v,_===!0?"review":"unreview",e,!0)};if(s.fetchState==="Error")return t.jsxs(dx,{children:[t.jsx(ux,{onClick:f,children:t.jsx($o,{})}),t.jsx(hx,{children:ax.failed})]});{const _=A=>{m({collapsableStatus:A})},I=A=>{h(e,A,!0)};return t.jsx(Bn,{...p,children:t.jsx("form",{id:bh("expenseAutomationFluxPage"),onSubmit:p.handleSubmit(M),style:{height:"100%",width:"100%"},children:t.jsx(cx,{windowSize:E,children:t.jsx(ox,{fluxView:n,handleRedirectToVendorDetailPage:$,onSortOrderChanged:D,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:_,fetchReimbursementView:I,updateSectionIdsForReview:l,fetchGeneralExpenseView:j,reportId:"flux_analysis_operating_expense"})})})})}},au=(e,n)=>{let a;return[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(i=>i.status==="Pending Review").forEach(i=>{n.includes(i.fluxAnalysisEntityId)&&(a=!0)}),a},lx=e=>({fluxAnalysisRowIds:e}),cx=x.div`
1399
+ display: flex;
1400
+ flex: 1 1 auto;
1401
+ min-height: 100%;
1402
+ flex-direction: column;
1403
+ background-color: ${e=>e.theme.colors.grey4};
1404
+ padding: ${r.sp0};
1405
+ gap: 2px;
1406
+ height: 100%;
1407
+ .flux-vendor-name-sticky,
1408
+ .flux-vendor-header-sticky,
1409
+ .flux-section-name-container,
1410
+ .flux-class-and-account-value-container,
1411
+ .flux-vendor-name-container,
1412
+ .flux-total-row {
1413
+ border-right: 1px solid transparent;
1414
+ }
1415
+ &:hover {
1416
+ .flux-vendor-name-sticky,
1417
+ .flux-vendor-header-sticky,
1418
+ .flux-section-name-container,
1419
+ .flux-class-and-account-value-container,
1420
+ .flux-vendor-name-container,
1421
+ .flux-total-row {
1422
+ border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
1423
+ }
1424
+ }
1425
+ `,dx=x.div`
1426
+ display: flex;
1427
+ width: 100%;
1428
+ height: 100vh;
1429
+ flex-direction: column;
1430
+ justify-content: center;
1431
+ align-items: center;
1432
+ `,ux=x.div`
1433
+ height: 96px;
1434
+ width: 96px;
1435
+ background: ${e=>e.theme.colors.background};
1436
+ border-radius: 50%;
1437
+ cursor: pointer;
1438
+ & svg {
1439
+ margin: ${r.sp5};
1440
+ color: ${e=>e.theme.colors.grey1};
1441
+ }
1442
+ &:hover {
1443
+ & svg {
1444
+ color: ${e=>e.theme.colors.primary};
1445
+ }
1446
+ }
1447
+ `,hx=x(ot)`
1448
+ margin-top: ${r.sp3};
1449
+ color: ${e=>e.theme.colors.hero};
1450
+ `,su="vendorsAccountSection",px=e=>`${e}_form`;function gx({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:a,setIsJeAccountSettingsOpened:i,onJeAccountSettingsChange:f,setResetJeAccountSettingsForm:C,setCurrentFooterFormId:o}){const l=e.prepaidExpensesRecommendations,m=e.fixedAssetsRecommendations,S=e.accruedExpensesRecommendations,w=d.useMemo(()=>Sn(e.prepaidExpensesAccountHierarchy,l,"Accounts"),[e.prepaidExpensesAccountHierarchy,l]),h=d.useMemo(()=>Sn(e.fixedAssetsAccountHierarchy,m,"Accounts"),[e.fixedAssetsAccountHierarchy,m]),s=d.useMemo(()=>Sn(e.accruedExpensesAccountHierarchy,S,"Accounts"),[e.accruedExpensesAccountHierarchy,S]),v=d.useMemo(()=>fx(e,w,h,s),[e,w,h,s]),b=Fn({mode:"all",reValidateMode:"onBlur",defaultValues:v,values:v,resetOptions:{keepDefaultValues:!0}}),T=b.handleSubmit(u=>{a(u)});return d.useEffect(()=>{const u=b.watch(p=>{p!=null&&vi(()=>(async E=>{f(E)})(p))});return()=>{u.unsubscribe()}}),d.useEffect(()=>(C(()=>b.reset),i(!0),()=>{o("expenseAutomationPage"),i(!1)}),[]),d.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:u,previousPrepaidExpensesAccount:p,selectedFixedAssetsAccountIds:E,previousFixedAssetsAccount:$,selectedAccruedExpensesAccountIds:j,previousAccruedExpensesAccount:D}=e.accountSettingsLocalData,M=Ro(u,p)||Ro(E,$)||Ro(j,D);M===!0&&n!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):M===!1&&n!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,n,o]),t.jsx(mx,{children:t.jsx(Bn,{...b,children:t.jsx("form",{id:px("expenseAutomationJEAccountSettingsPage"),onSubmit:T,children:t.jsx(jp,{showTitle:!1,sectionId:su,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 mx=x.div`
1451
+ padding-top: ${r.sp3};
1452
+ display: flex;
1453
+ align-items: center;
1454
+ min-height: 100%;
1455
+ flex-direction: column;
1456
+ width: 100%;
1457
+ background-color: ${e=>e.theme.colors.grey4};
1458
+ `,fx=(e,n,a,i)=>{const f=e.prepaidExpensesAccountList.filter(w=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(w.accountId)),C=e.fixedAssetsAccountList.filter(w=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(w.accountId)),o=e.accruedExpensesAccountList.filter(w=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(w.accountId)),l=f.map(w=>w.qboId).filter(w=>w!=null),m=C.map(w=>w.qboId).filter(w=>w!=null),S=o.map(w=>w.qboId).filter(w=>w!=null);return{[su]:{prepaidExpensesAccount:{selectedOptions:l,allOptions:n},fixedAssetsAccount:{selectedOptions:m,allOptions:a},accruedExpensesAccount:{selectedOptions:S,allOptions:i}}}},{expenseAutomation:{jeSchedules:xn},common:{currency:oo,review:xx,ignore:yx,strings:{hyphen:rn},texts:ro},dateFormat:Cx,timeframe:{month:ql}}=$e.getLocalizedStrings(),bx=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:a,jeScheduleClickHandler:i,onReviewClickHandler:f})=>t.jsxs(ia,{onClick:C=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&i(C,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":re("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(na,{children:[t.jsxs(ra,{children:[t.jsxs(ea,{children:[t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{children:ro.vendor}),t.jsxs(Ne,{style:{gap:W[2]},children:[e.vendor.logo!=null?t.jsx(vd,{photoUrl:e.vendor.logo.href,styles:{width:W[4],height:W[4]}}):t.jsx(kn,{name:e.vendor.name}),t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(xt,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:e.vendor.name??rn})})]})]}),t.jsxs(we,{children:[t.jsx(je,{children:xn.scheduleHeaders.scheduleCategory}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(xt,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:e.baseTransaction.account.accountName??rn})})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:xn.scheduleHeaders.startMonth}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:e.startDate?.format(Cx.visual.MMMCommaYYYYFormat)??rn})})]}),t.jsxs(we,{style:{width:Jt,paddingLeft:W[3]},children:[t.jsx(je,{children:xn.scheduleHeaders.period}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?ql.slice(0,-1):ql}`:rn})})]}),t.jsxs(we,{style:{alignItems:"flex-end",width:Mn},children:[t.jsx(je,{children:ro.totalAmount}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(xt,{children:pt("0,0.[00]",_n(e.baseTransaction.amount.amount,oo.currencyCode,oo.currencySymbol))??rn}),children:t.jsx(Re,{className:"highlight",children:pt("0,0.[00]",_n(e.baseTransaction.amount.amount,oo.currencyCode,oo.currencySymbol))??rn})})})]})]}),t.jsxs(ta,{children:[t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{children:ro.category}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(xt,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:e.jeDebit.account?.accountName??rn})})})]}),t.jsxs(we,{children:[t.jsx(je,{children:ro.classText}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(xt,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:e.jeDebit.accountingClass?.className??rn})})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:xn.scheduleHeaders.type}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",style:{width:"unset"},children:t.jsx(Qd,{children:xn.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(we,{style:{width:Jt,paddingLeft:W[3]},children:[t.jsx(je,{children:xn.scheduleHeaders.accumulatedCategory}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(xt,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:e.jeCredit.account?.accountName??rn})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(we,{style:{width:Jt}}):null,t.jsx(we,{style:{width:Mn}})]})]}),t.jsxs(oa,{children:[t.jsx(gi,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&f(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":re("je-schedule-draft-component-review-button",e.jeScheduleId),label:xx,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:69}}),t.jsx(gi,{"data-testid":re("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:yx,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&a(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:69}})]})]}),t.jsxs(t0,{children:[t.jsx(wx,{}),t.jsx(vx,{children:xn.aiAccountant}),t.jsx(Sx,{children:xn.zeniGPTText})]})]}),wx=x($n)`
1459
+ height: ${r.sp3};
1460
+ width: ${r.sp3};
1461
+ margin-right: ${r.sp1};
1462
+ path {
1463
+ stroke-width: 2;
1464
+ }
1465
+ `,vx=x(fd)`
1466
+ color: ${e=>e.theme.colors.brandColorSapphire};
1467
+ `,Sx=x(Fe)`
1468
+ color: ${e=>e.theme.colors.primary};
1469
+ `,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:Jl}}},expenseAutomation:{jeSchedules:st},common:{currency:Gt,retry:kx,strings:{hyphen:mt,empty:Zl},texts:Vn},dateFormat:Ql}=$e.getLocalizedStrings(),{common:$x,timeframe:{month:Xl}}=$e.getLocalizedStrings(),It="jeSchedulePage",ec=e=>`${e}_form`,aa=(e,n)=>`${e}.${n}`,tc=aa(It,"vendor"),nc=aa(It,"scheduleExpenseCategory"),ic=aa(It,"accumulatedDepreciationCategory"),Ex=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:a,allClassList:i,allDepAccountGroupedOptions:f,allDepAccountList:C,draft:o,localData:l,postStatus:m,uncategorizedAccounts:S,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:s,onFormDataChange:v,onPostJESchedule:b})=>{const{updatedAccumulatedDepreciationCategoryID:T,updatedCategoryId:u,updatedVendor:p}=l,E={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"},$=d.useRef(),j=Fn({mode:"all",reValidateMode:"onChange",defaultValues:oc(l,e,a,f,n,i,C,h.entityAutoCompleteView),values:oc(l,e,a,f,n,i,C,h.entityAutoCompleteView)}),D={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:r.sp4}),menu:()=>({width:300})},M={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:r.sp4}),menu:()=>({width:350})},_=(o?.scheduledJournalEntry.error??[]).every(L=>{const z=E[L];return!(l!=null&&z&&(z==="updatedAccumulatedDepreciationCategoryID"&&l.updatedAccumulatedDepreciationCategoryID==null||z==="updatedCategoryId"&&l.updatedCategoryId==null||z==="updatedVendor"&&(l.updatedVendor?.id==null||l.updatedVendor?.id===""||l.updatedVendor?.name==null||l.updatedVendor?.name==="")))});d.useEffect(()=>{const L=j.watch((z,{name:J})=>{J!=null&&z!=null&&vi(()=>(async(ee,U)=>{if(ee!=null){const H=U[It],{scheduledJournalEntryID:V,vendor:G}=H;if(ee.includes("vendor")){const ae=G?.defaultOptions.map(se=>se.value);if(G?.selectedOption!=null&&ae?.includes(G.selectedOption)!==!0){const se=h.entityAutoCompleteView.vendor.find(q=>q.id===G.selectedOption);se!=null&&j.setValue(`${It}.vendor.defaultOptions`,[{label:se.name??$x.strings.empty,value:se.id}])}else G?.selectedOption==null&&G?.defaultOptions.length!==0&&j.setValue(`${It}.vendor`,{selectedOption:void 0,defaultOptions:[]})}v(V,{...H,vendor:G})}})(J,z))});return()=>{L.unsubscribe()}}),d.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&$.current?.(Sd(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const I=j.handleSubmit(()=>{b(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),A=L=>[S.expense?.qboId,S.income?.qboId].includes(L),P=j.watch("jeSchedulePage.vendor"),K=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,X=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,te=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,Z=o.vendor.name.split("(deleted)")[0]?.toString(),B=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??Zl,O=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??Zl,[g,c]=d.useState(X===!0&&u==null),[N,k]=d.useState(te===!0&&T==null),[y,R]=d.useState(K&&(p?.id==null||p?.id==""));return d.useEffect(()=>{g===!1&&l.updatedCategoryId==null&&j.setFocus(nc),N===!1&&l.updatedAccumulatedDepreciationCategoryID==null&&j.setFocus(ic),y===!1&&l.updatedVendor?.id==null&&j.setFocus(tc)},[g,N,y,l,j]),t.jsx(Bn,{...j,children:t.jsx("form",{style:{width:"100%"},id:ec(`${It}_${o.jeScheduleId}`),onSubmit:I,children:t.jsx(ia,{showBorder:_,onClick:L=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&s(L,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":re("je-schedule-resolve-component-schedule",`${It}_${o.jeScheduleId}`),children:t.jsxs(na,{children:[t.jsxs(ra,{children:[t.jsxs(ea,{children:[K===!0?t.jsx(we,{style:{width:sn,padding:W[0],justifyContent:"center"},showHoverEffect:K,forceHoverEffect:y===!1&&(l?.updatedVendor?.id==null||l?.updatedVendor?.id==""),children:t.jsxs(Yt,{className:"hover-background",style:{padding:`${r.sp2} ${r.sp3}`},children:[t.jsxs(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:[Vn.vendor,t.jsx(Se,{display:"flex",placement:"top-start",title:t.jsx(fo,{children:st.tooltipText.missingVendor.replace("_deleted_vendor_",Z)}),children:t.jsx(Zo,{})})]}),t.jsx(Ne,{style:{gap:W[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:y===!0?t.jsxs(Re,{onClick:L=>{L.stopPropagation(),R(!1)},"data-testid":re("je-schedule-resolve-component-add-vendor-button",`${It}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:W[2],color:xe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(Jo,{}),Jl]}):t.jsx($r,{name:tc,placeholder:Jl,valueToId:L=>L,defaultValue:{selectedOption:P?.selectedOption,defaultOptions:P?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:r.sp4})},registerOptions:{required:!0,validate:L=>!!L.selectedOption},loadOptions:(L,z)=>{w.onAutoCompleteInputChange?.(L,"vendor"),$.current=z}})})})]})}):t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp0} ${r.sp2} ${r.sp3}`},children:[t.jsx(je,{children:Vn.vendor}),t.jsx(Ne,{children:t.jsxs(t.Fragment,{children:[o.vendor.logo?.href!=null?t.jsx(vd,{photoUrl:o.vendor.logo.href,styles:{width:W[4],height:W[4]}}):t.jsx(kn,{name:o.vendor.name}),t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:o.vendor.name!==null?t.jsx(xt,{children:o.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.vendor.name??mt})})]})})]}),t.jsxs(we,{children:[t.jsx(je,{children:st.scheduleHeaders.scheduleCategory}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?t.jsx(xt,{children:o.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.baseTransaction.account.accountName??mt})})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:st.scheduleHeaders.startMonth}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:o.startDate?.format(Ql.visual.MMMCommaYYYYFormat)??mt})})]}),t.jsxs(we,{style:{width:Jt,paddingLeft:W[3]},children:[t.jsx(je,{children:st.scheduleHeaders.period}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?Xl.slice(0,-1):Xl}`:mt})})]}),t.jsxs(we,{style:{alignItems:"flex-end",width:Mn},children:[t.jsx(je,{children:Vn.totalAmount}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",title:t.jsx(xt,{children:pt("0,0.[00]",_n(o.baseTransaction.amount.amount,Gt.currencyCode,Gt.currencySymbol))??mt}),children:t.jsx(Re,{className:"highlight",children:pt("0,0.[00]",_n(o.baseTransaction.amount.amount,Gt.currencyCode,Gt.currencySymbol))??mt})})})]})]}),t.jsxs(ta,{children:[X===!0?t.jsx(we,{showHoverEffect:X===!0,forceHoverEffect:l?.updatedCategoryId==null&&g===!1,style:{padding:"unset",justifyContent:"center",width:sn},children:t.jsxs(Yt,{className:"hover-background",children:[t.jsxs(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:[Vn.category,X===!0?t.jsx(Se,{display:"flex",placement:"top-start",title:t.jsx(fo,{children:st.tooltipText.missingCategory.replace("_deleted_category_",B)}),children:t.jsx(Zo,{})}):null]}),t.jsx(Ne,{className:"item-value-container",style:{marginLeft:X===!0?-2:0},children:X===!0?t.jsx(t.Fragment,{children:g===!0?t.jsxs(Re,{onClick:L=>{L.stopPropagation(),c(!1)},style:{display:"inline-flex",alignItems:"center",gap:W[1],color:xe.brandColorGoldDark,cursor:"pointer"},"data-testid":re("je-schedule-resolve-component-add-category-button",`${It}_${o.jeScheduleId}`),children:[t.jsx(Jo,{}),st.addCategory]}):t.jsx(Yn,{shouldShowChevronIcon:!1,name:nc,placeholder:st.addCategory,valueToId:L=>(z=>n.filter(J=>J.qboId===z)[0]?.qboId)(L),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:L=>!!L.selectedOption},disableCurrentOption:A,customStyleConfig:D})}):t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?t.jsx(xt,{children:o.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.jeDebit.account?.accountName??mt})})})]})}):t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Vn.category}),t.jsx(Ne,{className:"item-value-container",children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?t.jsx(xt,{children:o.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.jeDebit.account?.accountName??mt})})})]}),t.jsxs(we,{children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:Vn.classText}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?t.jsx(xt,{children:o.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.jeDebit.accountingClass?.className??mt})})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:st.scheduleHeaders.type}),t.jsx(Ne,{className:"test",children:t.jsx(Re,{className:"highlight",style:{width:"unset"},children:t.jsx(Qd,{children:st.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:te===!0?t.jsx(we,{style:{width:Jt,padding:"unset",justifyContent:"center"},showHoverEffect:te,forceHoverEffect:l.updatedAccumulatedDepreciationCategoryID==null&&N===!1,children:t.jsxs(Yt,{className:"hover-background",style:{padding:W[2],paddingLeft:W[3]},children:[t.jsxs(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:[st.scheduleHeaders.accumulatedCategory,te===!0?t.jsx(Se,{display:"flex",placement:"top-end",title:t.jsx(fo,{children:st.tooltipText.missingDepCategory.replace("_deleted_dep_category_",O)}),children:t.jsx(Zo,{})}):null]}),t.jsx(Ne,{className:"item-value-container",style:{marginLeft:te===!0?-2:0},children:te===!0?t.jsx(t.Fragment,{children:N===!0?t.jsxs(Re,{onClick:L=>{L.stopPropagation(),k(!1)},style:{display:"inline-flex",alignItems:"center",gap:W[1],color:xe.brandColorGoldDark,cursor:"pointer"},"data-testid":re("je-schedule-resolve-component-add-depreciation-category-button",`${It}_${o.jeScheduleId}`),children:[t.jsx(Jo,{}),st.addDepCategory]}):t.jsx(Yn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:ic,placeholder:st.addDepCategory,valueToId:L=>(z=>C.filter(J=>J.qboId===z)[0]?.qboId)(L),defaultValue:{allOptions:f},registerOptions:{required:!0,validate:L=>!!L.selectedOption},customStyleConfig:M,disableCurrentOption:A})}):t.jsx(Se,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?t.jsx(xt,{children:o.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.jeCredit.account?.accountName??mt})})})]})}):t.jsxs(we,{style:{width:Jt,padding:`${r.sp2} ${r.sp2} ${r.sp2} ${r.sp3}`,justifyContent:"center"},children:[t.jsx(je,{style:{display:"flex",alignItems:"center",gap:W[1]},children:st.scheduleHeaders.accumulatedCategory}),t.jsx(Se,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?t.jsx(xt,{children:o.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx(Re,{className:"highlight",children:o.jeCredit.account?.accountName??mt})})]})}):null,o.jeScheduleType!=="fixed_assets"?t.jsx(we,{style:{width:Jt}}):null,t.jsx(we,{style:{width:Mn}})]}),t.jsxs(Xf,{children:[t.jsx(we,{style:{padding:"unset",width:sn},children:t.jsxs(e0,{children:[t.jsx(je,{children:st.scheduleHeaders.jePostingDate}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(Ql.visual.MMMDCommaYYFormat)??mt})})]})}),t.jsxs(we,{children:[t.jsx(je,{children:st.scheduleHeaders.balance}),t.jsx(Ne,{children:t.jsx(Se,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(xt,{children:pt("0,0.[00]",_n(o?.scheduledJournalEntry?.runningBalance?.amount??0,Gt.currencyCode,Gt.currencySymbol))??mt}),children:t.jsx(Re,{className:"highlight",children:pt("0,0.[00]",_n(o?.scheduledJournalEntry?.runningBalance?.amount??0,Gt.currencyCode,Gt.currencySymbol))??mt})})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:st.scheduleHeaders.months}),t.jsx(Ne,{children:t.jsxs(Re,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),t.jsx(we,{style:{width:Jt}}),t.jsxs(we,{style:{alignItems:"flex-end",width:Mn},children:[t.jsx(je,{children:st.scheduleHeaders.amountForMonth}),t.jsx(Ne,{children:t.jsx(Re,{className:"highlight",children:pt("0,0.[00]",_n(o.scheduledJournalEntry.amount?.amount??0,Gt.currencyCode,Gt.currencySymbol))??mt})})]})]})]}),t.jsx(oa,{children:t.jsx(gi,{form:ec(`${It}_${o.jeScheduleId}`),label:kx,variant:"primary",className:"item-value-container",type:"submit",loading:m?.fetchState==="In-Progress",size:"small",disabled:!_,style:{minWidth:69}})})]})})})})},oc=(e,n,a,i,f,C,o,l)=>{const m=e.updatedCategoryId,S=e.updatedVendor,w=S!=null?l.vendor.find(u=>u.zeniId===S.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,s=e.updatedClassId,v=m!=null?f.find(u=>u.accountId===m):void 0,b=h!=null?o.find(u=>u.accountId===h):void 0,T=s!=null?C.find(u=>u.classId===s):void 0;return{[It]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:v?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:b?.qboId,allOptions:i},vendor:{selectedOption:w?.id??S?.id,defaultOptions:jd(l,w??S)},scheduleClass:{selectedOption:T?.classId,allOptions:a}}}},Jo=x(jo)`
1470
+ width: ${r.sp3};
1471
+ height: ${r.sp3};
1472
+ `,Zo=x(Nd)`
1473
+ width: 12px;
1474
+ height: 12px;
1475
+ color: ${xe.important};
1476
+ `;function lu(){return t.jsx(Yd,{children:t.jsxs(qd,{children:[t.jsxs(Jd,{children:[t.jsx(Xe,{width:W[9],height:27,style:{marginBottom:W[2]}}),t.jsx(rc,{})]}),t.jsxs(Zd,{children:[t.jsx(Xe,{width:W[9],height:27,style:{marginBottom:W[2]}}),t.jsx(rc,{})]})]})})}const rc=()=>t.jsx(ia,{style:{minWidth:1088},children:t.jsxs(na,{children:[t.jsxs(ra,{children:[t.jsxs(ea,{children:[t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{children:t.jsx(Xe,{width:W[10],height:14})}),t.jsxs(Ne,{style:{gap:W[2]},children:[t.jsx(ki,{height:W[4],width:W[4]}),t.jsx(Xe,{height:W[4],width:W[10]})]})]}),t.jsxs(we,{children:[t.jsx(je,{children:t.jsx(Xe,{width:101,height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:203})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:t.jsx(Xe,{width:W[9],height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:71})})]}),t.jsxs(we,{style:{width:Jt,paddingLeft:W[3]},children:[t.jsx(je,{children:t.jsx(Xe,{width:107,height:14})}),t.jsx(Xe,{height:W[4],width:68})]}),t.jsxs(we,{style:{alignItems:"flex-end",width:Mn},children:[t.jsx(je,{children:t.jsx(Xe,{width:73,height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:49})})]})]}),t.jsxs(ta,{children:[t.jsxs(we,{style:{width:sn,padding:`${r.sp2} ${r.sp3}`},children:[t.jsx(je,{children:t.jsx(Xe,{width:49,height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:158})})]}),t.jsxs(we,{children:[t.jsx(je,{children:t.jsx(Xe,{width:36,height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:88})})]}),t.jsxs(we,{style:{width:On},children:[t.jsx(je,{children:t.jsx(Xe,{width:36,height:14})}),t.jsx(Ne,{children:t.jsx(Xe,{height:W[4],width:100})})]}),t.jsx(we,{style:{width:Jt,paddingLeft:W[3]}}),t.jsx(we,{style:{width:Mn}})]})]}),t.jsxs(oa,{children:[t.jsx(Xe,{height:29,width:53,style:{margin:`${r.sp0} ${r.sp3}`}}),t.jsx(Xe,{height:29,width:53,style:{margin:`${r.sp0} ${r.sp3}`}})]})]})}),Xe=x(gt)`
1477
+ border-radius: ${r.sp1};
1478
+ `,{common:{create:Tx,resolve:jx}}=$e.getLocalizedStrings();function Nx({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:a,onJESchedulesFormDataChange:i,onPostJESchedule:f,ignoreRecommendedJeSchedule:C,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:l}){const m=e.draftSchedules,S=e.jeScheduleLocalDataById,w=e.postStatusById,h=e.ignoreStatusById,s=d.useRef(!1),[v,b]=d.useState(!1),T=d.useRef(P=>{P&&!s.current&&(s.current=!0,b(!0))});wi({componentName:"expense_automation.je_schedules",enabled:v});const u=e.resolveSchedules,p=e.uncategorizedAccounts,{allAccountList:E,allClassList:$,allDepreciationAccountList:j}=e,D=Sn(e.accountListNestedAccountHierarchy),M=Sn(e.allDepreciationAccountListNestedAccountHierarchy),_=uo(e.classListNestedAccountHierarchy),I=(P,K,X)=>{a(P,K,X)},A=(P,K,X,te)=>{let Z=P.target;for(;Z;){if(Z.classList.contains("item-value-container")||Z.classList.contains("hover-background")||Z.classList.contains("auto-complete-single-select-field__input")||Z.classList.contains("auto-complete-single-select-field__option")||Z.classList.contains("grouped-single-select-field__input")||Z.classList.contains("grouped-single-select-field__menu"))return;Z=Z.parentElement}a(K,X,te)};return d.useEffect(()=>{if(u.length!==0){for(const P in S)if(Object.prototype.hasOwnProperty.call(S,P)){const{updatedAccumulatedDepreciationCategoryID:K,updatedCategoryId:X,updatedVendor:te}=S[P];if(K!=null||X!=null||te!=null&&te?.id!==""){l("expenseAutomationJESchedulePage");break}l("expenseAutomationPage")}}else u.length===0&&l("expenseAutomationPage")}),d.useEffect(()=>()=>{l("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx(lu,{}):m.length!==0||u.length!==0?t.jsx(Yd,{children:t.jsxs(qd,{children:[m.length>0?t.jsxs(Jd,{children:[t.jsxs(lc,{children:[Tx,t.jsx(cc,{isCircular:m.length<10,children:t.jsx(dc,{children:m.length})})]}),t.jsx(ac,{"data-testid":re("expense-automation","draft-je-schedules"),children:m.map((P,K)=>t.jsx(sc,{ref:T.current,children:t.jsx(bx,{ignoreStatus:h[P.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:C,onReviewClickHandler:I,jeScheduleClickHandler:A,draft:P})},`${K}_${P.jeScheduleId}`))})]}):null,u.length>0?t.jsxs(Zd,{children:[t.jsxs(lc,{children:[jx,t.jsx(cc,{isCircular:u.length<10,children:t.jsx(dc,{children:u.length})})]}),t.jsx(ac,{"data-testid":re("expense-automation","resolve-je-schedules"),children:u.map((P,K)=>S[P.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(sc,{ref:T.current,children:t.jsx(Ex,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:A,onPostJESchedule:f,uncategorizedAccounts:p,allAccountList:E,allAccountGroupedOptions:D,allClassGroupedOptions:_,allClassList:$,allDepAccountGroupedOptions:M,allDepAccountList:j,draft:P,postStatus:w[P.scheduledJournalEntry.scheduledJournalEntryID],localData:S[P.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:i})},`${K}_${P.jeScheduleTransactionKey}`))})]}):null]})}):null}const ac=x.div`
1479
+ display: flex;
1480
+ flex-direction: column;
1481
+ gap: ${r.sp4};
1482
+ min-width: 1088px;
1483
+ `,sc=x.div``,lc=x(bi)`
1484
+ color: ${e=>e.theme.colors.primary};
1485
+ padding: ${r.sp2} ${r.sp0};
1486
+ display: flex;
1487
+ align-items: center;
1488
+ gap: ${r.sp1};
1489
+ `,cc=x.div`
1490
+ border-radius: ${r.sp12};
1491
+ display: flex;
1492
+ justify-content: center;
1493
+ border: ${e=>`1px solid ${e.theme.colors.grey1}`};
1494
+ color: ${e=>e.theme.colors.hero};
1495
+ ${e=>e.isCircular?ke`
1496
+ height: ${r.sp3};
1497
+ width: ${r.sp3};
1498
+ padding: ${r.sp0};
1499
+ `:ke`
1500
+ height: 18px;
1501
+ padding: ${Mh.padding};
1502
+ `}
1503
+ `,dc=x(Ph)`
1504
+ color: ${e=>e.theme.colors.hero};
1505
+ height: 100%;
1506
+ width: 100%;
1507
+ display: flex;
1508
+ align-items: center;
1509
+ justify-content: center;
1510
+ color: inherit;
1511
+ `;function _x({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:a,vendorSearchAutoCompleteData:i,onJESchedulesFormDataChange:f,onPostJESchedule:C,handleJeScheduleClick:o,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:m,ignoreRecommendedJeSchedule:S,vendorSearchAutoCompleteActions:w,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:s}){const{jeSchedules:v}=e;return v.fetchState==="In-Progress"||v.accountSettingsView.fetchState==="In-Progress"?t.jsx(lu,{}):v.accountSettingsView.fetchState==="Completed"&&v.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&v.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(gx,{setIsJeAccountSettingsOpened:s,setResetJeAccountSettingsForm:a,currentFooterFormId:n,onJeAccountSettingsChange:l,onSaveJeAccountSettingsClick:m,accountSettings:v.accountSettingsView,setCurrentFooterFormId:h}):v.fetchState==="Completed"&&v.draftSchedules.length===0&&v.resolveSchedules.length===0?t.jsx(Ht,{tab:e.currentSelectedView,title:nt(e.currentSelectedView).allDoneText.title,subTitle:nt(e.currentSelectedView).allDoneText.subTitle}):v.fetchState==="Completed"?t.jsx(Nx,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:S,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:f,onPostJESchedule:C,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:i}):null}const Ix=["receipts"],uc=e=>Gr(e,Ix),{common:{texts:{vendor:Rx,amount:Ax,receipts:Lx,category:Dx,classText:Ox,date:Mx}}}=$e.getLocalizedStrings(),cu={key:"vendor",value:Rx,sortOrder:"ascending",width:new ge(18,18)},Px={key:"category",value:Dx,sortOrder:"ascending",width:new ge(18,18)},Fx={key:"class",value:Ox,sortOrder:"ascending",width:new ge(18,18)},Bx={key:"date",value:Mx,sortOrder:"descending",width:new ge(11,11)},zx={key:"receipts",value:Lx,sortOrder:"descending",width:new ge(6,6)},du={key:"amount",value:Ax,sortOrder:"ascending",width:new ge(10,10)},ui=[cu,Px,Fx,Bx,zx,du],uu=[{...cu,width:new ge(65,65)},{...du,width:new ge(30,30)}],hc="date",Hx="descending",hu=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:a})=>{const i=Ie(),f=ut(),C=f?uu:ui,[o,l]=d.useState(C);d.useEffect(()=>{const S=[...C];for(const w of S)w.key===e.sortKey?w.sortOrder=e.sortOrder:w.sortOrder="ascending";l(S)},[e.sortKey,e.sortOrder,f]);const m=(S,w)=>{let h=w;e.sortKey===S&&(h=w==="ascending"?"descending":"ascending"),a(S,h)};return t.jsx(Ux,{windowSize:i,isQuickViewMode:f,children:o.map((S,w)=>{const h=n!=null||uc(S.key)!=null;return t.jsxs(Vx,{sortDataValue:e.sortKey,actualDataValue:S.key,wrapperWidth:S.width,isSortDisabled:h,windowSize:i,isQuickViewMode:f,isLastItem:w===o.length-1,style:S.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(qx,{onClick:()=>h?null:(s=>{uc(s.key)==null&&m(fp(s.key),s.sortOrder)})(S),isSortDisabled:h,children:[t.jsx(Jx,{children:S.value}),h?null:t.jsx(Kx,{sortConfig:e,headerData:S,children:t.jsx(Yx,{})})]}),h?null:t.jsx(Gx,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===S.key&&e.sortKey!==hc,children:t.jsx(Wx,{onClick:()=>{h||m(hc,Hx)},"data-testid":re("missing-receipts-header-close-icon",S.key)})})]},S.key)})})},Ux=x.div`
1512
+ top: ${r.sp0};
1513
+ left: ${r.sp0};
1514
+ height: ${50}px;
1515
+ z-index: 2;
1516
+ display: flex;
1517
+ flex-wrap: nowrap;
1518
+ align-items: center;
1519
+ box-sizing: border-box;
1520
+ background-color: ${e=>e.theme.colors.grey4};
1521
+ position: sticky;
1522
+ width: 100%;
1523
+ justify-content: space-between;
1524
+
1525
+ ${e=>e.isQuickViewMode===!0?ke`
1526
+ width: 32%;
1527
+ max-width: var(--side-panel-list-width, 100%);
1528
+ `:ke`
1529
+ padding: ${r.sp0} ${r.sp3};
1530
+ `}
1531
+ `,Vx=x.div`
1532
+ color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1533
+ padding-left: ${r.sp0};
1534
+ left: ${r.sp0};
1535
+ display: flex;
1536
+ align-items: center;
1537
+ gap: 6px;
1538
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1539
+ position: static;
1540
+ z-index: 0;
1541
+ box-sizing: border-box;
1542
+ flex-shrink: 0;
1543
+ ${e=>e.isQuickViewMode===!0?ke`
1544
+ width: calc(
1545
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1546
+ ${r.sp4}
1547
+ );
1548
+ min-width: calc(
1549
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1550
+ ${r.sp4}
1551
+ );
1552
+ max-width: calc(
1553
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1554
+ ${r.sp4}
1555
+ );
1556
+ `:ke`
1557
+ width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1558
+ min-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1559
+ max-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1560
+ `}
1561
+ `,Wx=x(Ei)`
1562
+ width: ${r.sp2};
1563
+ height: ${r.sp2};
1564
+ cursor: pointer;
1565
+ `,Kx=x.div`
1566
+ display: flex;
1567
+ align-items: center;
1568
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1569
+ `,Gx=x.div`
1570
+ display: ${e=>e.isVisible?"flex":"none"};
1571
+ align-items: center;
1572
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1573
+ &:hover {
1574
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1575
+ }
1576
+ `,Yx=x($i)`
1577
+ width: ${r.sp2};
1578
+ height: ${r.sp2};
1579
+ `,qx=x.div`
1580
+ display: flex;
1581
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1582
+ gap: 6px;
1583
+ &:hover {
1584
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1585
+ }
1586
+ `,Jx=x(lt)`
1587
+ display: flex;
1588
+ `,{common:{strings:{underscore:pu,hyphen:Qo,empty:pc},documents:{singleFileUploadSizeErrorMessage:Zx,multipleFileUploadSizeErrorMessage:Qx},snackBar:{missing_receipts_attachment:{failed:Xx}},tooltips:{addMissingReceipt:ey}},dateFormat:ty}=$e.getLocalizedStrings(),Wn={containerPaddingLeftRight:new ge(W[3],W[4]),containerPaddingTopBottom:new ge(W[2],W[3])},ny=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:a,authParams:i,selectedPeriod:f,onUploadReceiptComplete:C,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:l,onUploadReceiptAttachment:m})=>{const S=Ie(),w=ut(),h=d.useRef(null),s=d.useCallback(async(u,p,E,$,j)=>{l(e.id,"In-Progress"),await Np(u,p,E,$,j).then(({uploadResponse:D,errorMessage:M})=>{D!=null?D.transaction.attachments!=null&&(m(D.transaction),setTimeout(()=>C(D.transaction,f),2e3)):l(e.id,"Error",{code:500,message:Xx},M)}).catch(D=>{l(e.id,"Error",D)})},[e.id,f,m,C,l]),v=d.useCallback(u=>{if(u.target.files!=null){const p=u.target.files,E=[],$=[];for(let j=0;j<p.length;j++)E.push(p[j].name),$.push(p[j]);s(a,i,p[0],p[0].name,{id:e.id,type:e.type})}},[i,s,a,e.id,e.type]),b=d.useCallback(()=>{w||h.current?.click()},[h,w]),T=w?uu:ui;return t.jsx(gu,{className:"missing-receipts-row-card",windowSize:S,isQuickViewMode:w,onClick:()=>o(e.id,e.type),"data-testid":re("missing-receipts-list-row",e.id),children:T.map((u,p)=>{const E=`${e.id}${pu}${u.key}`;switch(u.key){case"vendor":default:return t.jsx(In,{windowSize:S,wrapperWidth:u.width,isQuickViewMode:w,children:t.jsx(Rn,{windowSize:S,isLastItem:p===T.length-1,children:t.jsxs(xo,{children:[t.jsx(Si,{photoUrl:e.vendorId!=null?e.logo?.toString()??pc:pc,styles:{width:r.sp4,height:r.sp4,borderRadius:r.sp0},placeholder:{width:W[4],height:W[4]},fallbackAvatar:t.jsx(cy,{children:t.jsx(kn,{name:e.vendorName??e.description,size:r.sp4})})}),t.jsx(it,{text:e.vendorName??e.description,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})]})})},E);case"category":case"class":{const $=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Qo,j=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Qo,D=u.key==="category"?$:j;return t.jsx(In,{windowSize:S,wrapperWidth:u.width,isQuickViewMode:w,children:t.jsx(Rn,{windowSize:S,isLastItem:p===T.length-1,children:t.jsx(xo,{children:D!==Qo?t.jsx(it,{text:D,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}}):t.jsx(ly,{children:D})})})},E)}case"date":return t.jsx(In,{windowSize:S,wrapperWidth:u.width,isQuickViewMode:w,children:t.jsx(Rn,{windowSize:S,isLastItem:p===T.length-1,children:t.jsx(xo,{children:t.jsx(it,{text:e.date.format(ty.visual.MMMDCommaYYYYformat),itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})})})},E);case"receipts":return t.jsx(In,{windowSize:S,wrapperWidth:u.width,isQuickViewMode:w,children:t.jsx(Rn,{windowSize:S,isLastItem:p===T.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(Pn,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(Pd,{shouldDisplay:!0,width:W[4],height:W[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(sy,{onClick:$=>{$.stopPropagation()},children:t.jsx(Ur,{"data-testid":re("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:h,sizeLimit:ho,multiple:!1,acceptableTypes:[...Rd],onFileChange:v,onFileSizeError:($,j)=>{$&&l(e.id,"Error",{code:500,message:j===!0?Zx.replace("__maxFileSize__",fa(ho,0)):Qx.replace("__maxFileSize__",fa(ho,0))})}})}),t.jsx(Se,{display:"flex",placement:"bottom",title:ey,enterDelay:600,children:t.jsx(ay,{onClick:$=>{$.stopPropagation(),b()}})})]})})},E);case"amount":{const $=pt("0,0.[00]",e.amount);return t.jsx(In,{windowSize:S,wrapperWidth:u.width,isQuickViewMode:w,children:t.jsx(Rn,{windowSize:S,isLastItem:p===T.length-1,children:t.jsx(it,{text:e.amount.amount<0?`-${$}`:$,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})})},E)}}})})},iy=()=>{const e=Ie(),n=ut(),a=d.useRef(null),[i,f]=d.useState(0);return d.useLayoutEffect(()=>{a.current&&f(a.current.offsetWidth)},[e]),t.jsx(gu,{windowSize:e,isQuickViewMode:n,ref:a,children:ui.map((C,o)=>{const l=`${o}${pu}${C.key}`;return C.key==="vendor"?t.jsx(In,{windowSize:e,wrapperWidth:C.width,isQuickViewMode:n,children:t.jsx(Rn,{windowSize:e,isLastItem:o===ui.length-1,children:t.jsxs(xo,{children:[t.jsx(ki,{width:W[4],height:W[4]}),t.jsx(gt,{width:i*C.width.value(e)/100,height:W[4],style:{display:"flex",alignItems:"center"}})]})})},l):t.jsx(In,{windowSize:e,wrapperWidth:C.width,isQuickViewMode:n,children:t.jsx(Rn,{windowSize:e,isLastItem:o===ui.length-1,children:t.jsx(gt,{width:i*C.width.value(e)/100,height:W[4],style:{display:"flex",alignItems:"center"}})})},l)})})},gu=x.div`
1589
+ display: flex;
1590
+ height: 100%;
1591
+ background-color: ${e=>e.theme.colors.grey5};
1592
+ padding-top: ${e=>Wn.containerPaddingTopBottom.valuePx(e.windowSize)};
1593
+ padding-bottom: ${e=>Wn.containerPaddingTopBottom.valuePx(e.windowSize)};
1594
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1595
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
1596
+ border-radius: ${r.sp2};
1597
+ color: ${e=>e.theme.colors.hero};
1598
+ cursor: pointer;
1599
+ &:hover {
1600
+ border-color: ${e=>e.theme.colors.primary};
1601
+ color: ${e=>e.theme.colors.primary};
1602
+ }
1603
+
1604
+ box-sizing: border-box;
1605
+ align-items: center;
1606
+ justify-content: space-between;
1607
+ ${e=>e.isQuickViewMode?ke`
1608
+ flex: 1;
1609
+ padding-left: ${Wn.containerPaddingLeftRight.valuePx(e.windowSize)};
1610
+ padding-right: ${Wn.containerPaddingLeftRight.valuePx(e.windowSize)};
1611
+ width: 95%;
1612
+ `:ke`
1613
+ min-width: min-content;
1614
+ padding-left: ${Wn.containerPaddingLeftRight.valuePx(e.windowSize)};
1615
+ padding-right: ${Wn.containerPaddingLeftRight.valuePx(e.windowSize)};
1616
+ `}
1617
+ `,In=x.div`
1618
+ display: flex;
1619
+ align-items: center;
1620
+ position: relative;
1621
+ :last-of-type {
1622
+ padding-right: ${r.sp0};
1623
+ }
1624
+ ${e=>e.isQuickViewMode===!0?ke`
1625
+ width: calc(
1626
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1627
+ ${r.sp4}
1628
+ );
1629
+ min-width: calc(
1630
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
1631
+ ${r.sp4}
1632
+ );
1633
+ `:ke`
1634
+ width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1635
+ min-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1636
+ `}
1637
+ `,oy=ke`
1638
+ word-break: break-all;
1639
+ white-space: normal;
1640
+ -webkit-line-clamp: 1;
1641
+ -webkit-box-orient: vertical;
1642
+ overflow: hidden;
1643
+ text-overflow: ellipsis;
1644
+ display: -webkit-box;
1645
+ `,ry=ke`
1646
+ height: ${r.sp3};
1647
+ width: ${r.sp3};
1648
+ cursor: pointer;
1649
+ `,ay=x(jo)`
1650
+ ${ry};
1651
+ color: ${e=>e.theme.colors.brandColorJadeDark};
1652
+ &:hover {
1653
+ color: ${e=>e.theme.colors.primary};
1654
+ }
1655
+ `,Rn=x(Fe)`
1656
+ overflow: hidden;
1657
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1658
+ display: flex;
1659
+ width: 100%;
1660
+ align-items: center;
1661
+ `,sy=x.div``,xo=x.div`
1662
+ display: flex;
1663
+ flex-direction: row;
1664
+ column-gap: ${r.sp2};
1665
+ align-items: center;
1666
+ `,ly=x(Fe)`
1667
+ ${oy};
1668
+ color: inherit;
1669
+ `,cy=x.div`
1670
+ display: flex;
1671
+ `,dy=({sortConfig:e,fetchState:n,isDisabled:a,onColumnSortConfigChanged:i})=>{const f=Ie(),C=ut();return t.jsxs(uy,{windowSize:f,children:[t.jsx(hy,{isQuickViewMode:C,children:t.jsx(hu,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i})}),t.jsx(py,{windowSize:f,children:[...Array(3)].map((o,l)=>t.jsx(iy,{},l))})]})},uy=x.div`
1672
+ display: block;
1673
+ min-height: 100%;
1674
+ flex-direction: column;
1675
+ width: 100%;
1676
+ `,hy=x.div`
1677
+ flex: 1;
1678
+ width: auto;
1679
+ padding-left: ${({isQuickViewMode:e})=>e===!0?r.sp8:r.sp0};
1680
+ `,py=x.div`
1681
+ display: flex;
1682
+ min-height: 100%;
1683
+ flex-direction: column;
1684
+ row-gap: ${r.sp3};
1685
+ `,{common:gy}=$e.getLocalizedStrings(),my=({missingReceipts:e,receiptUploadEndpoint:n,authParams:a,selectedPeriod:i,isDisabled:f,onMissingReceiptsRowClick:C,onUploadReceiptComplete:o,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:m,onUpdateMissingReceiptsUIState:S,onFetchMissingReceiptsList:w})=>{const h=Ie(),s=ut(),{fetchState:v,uiState:b,transactions:T}=e;wi({componentName:"expense_automation.missing_receipts",enabled:v==="Completed"});const u=d.useRef(null),[p,E]=d.useState(!1);d.useEffect(()=>{u.current?.resetAfterIndex(0)},[h,u]),d.useEffect(()=>{v==="Completed"&&E(!1)},[v]);const $=D=>72,j=(D,M)=>{S({sortOrder:M,sortKey:D})};return t.jsxs(yy,{children:[t.jsx(Cy,{windowSize:h,children:v==="Error"?t.jsxs(wy,{windowSize:h,children:[t.jsx(vy,{onClick:()=>w(),"data-testid":re("missing-receipts-list-table-reload-button"),children:t.jsx($o,{})}),t.jsx(Sy,{children:gy.reloadPage.label})]}):v==="Completed"&&T.length===0?t.jsx(Ht,{tab:"missing_receipts",title:nt("missing_receipts").allDoneText.title,subTitle:nt("missing_receipts").allDoneText.subTitle}):v==="Not-Started"||v==="In-Progress"&&T.length===0?t.jsx(dy,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},fetchState:v,onColumnSortConfigChanged:j}):t.jsx(by,{windowSize:h,children:t.jsx(Ci,{children:({height:D,width:M})=>t.jsxs($y,{style:{height:D,width:M},children:[t.jsx(xy,{isQuickViewMode:s,children:t.jsx(hu,{sortConfig:{sortKey:b.sortKey,sortOrder:b.sortOrder},isDisabled:v==="In-Progress"?"readonly":f,onColumnSortConfigChanged:j})}),t.jsx(To,{ref:u,height:D-50,innerElementType:mu,itemCount:T.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:a,isDisabled:f,isQuickViewMode:s,selectedPeriod:i,onMissingReceiptsRowClick:C,onUploadReceiptComplete:o,onUploadReceiptAttachment:l,onUploadReceiptFetchStatus:m},itemSize:$,width:M,style:{willChange:"auto"},overscanCount:1,onScroll:({scrollOffset:_})=>{S({scrollPosition:{scrollTop:_}})},initialScrollOffset:b.scrollPosition?.scrollTop,children:fy})]})})})}),t.jsx(dt,{controller:p===!0,children:t.jsx(Ey,{children:t.jsx(Pn,{size:"Small",start:!0})})})]})},fy=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Eo(),{missingReceipts:f,receiptUploadEndpoint:C,authParams:o,isQuickViewMode:l,onMissingReceiptsRowClick:m,onUploadReceiptComplete:S,onUploadReceiptAttachment:w,onUploadReceiptFetchStatus:h,selectedPeriod:s}=a,v=f.transactions[e],b=i!=null&&i===v.id;return t.jsx(ky,{isPanelSelected:b,isQuickViewMode:l,style:{...n,width:"100%"},children:t.jsx(ny,{transaction:v,receiptUploadEndpoint:C,authParams:o,selectedPeriod:s,onMissingReceiptsRowClick:m,onUploadReceiptComplete:S,onUploadReceiptAttachment:w,onUploadReceiptFetchStatus:h,uploadReceiptsFetchState:f.uploadReceiptStatusById[v.id]??{fetchState:"Not-Started",error:void 0}},v.id)})},xy=x.div`
1686
+ flex: 1;
1687
+ width: auto;
1688
+ `,yy=x.div`
1689
+ width: 100%;
1690
+ height: 100%;
1691
+ background-color: ${e=>e.theme.colors.grey4};
1692
+ `,Cy=x.div`
1693
+ height: 100%;
1694
+ `,by=x.div`
1695
+ height: 100%;
1696
+ display: flex;
1697
+ flex-direction: column;
1698
+ max-width: 99.9%;
1699
+ `,wy=x.div`
1700
+ display: flex;
1701
+ width: 100%;
1702
+ height: ${e=>`calc(100% - ${xd.valuePx(e.windowSize)})`};
1703
+ flex-direction: column;
1704
+ justify-content: center;
1705
+ align-items: center;
1706
+ `,vy=x.div`
1707
+ height: 96px;
1708
+ width: 96px;
1709
+ background: ${e=>e.theme.colors.background};
1710
+ border-radius: 50%;
1711
+ cursor: pointer;
1712
+ & svg {
1713
+ margin: ${r.sp5};
1714
+ color: ${e=>e.theme.colors.grey1};
1715
+ }
1716
+ &:hover {
1717
+ & svg {
1718
+ color: ${e=>e.theme.colors.primary};
1719
+ }
1720
+ }
1721
+ `,Sy=x(rd)`
1722
+ margin-top: ${r.sp3};
1723
+ color: ${e=>e.theme.colors.hero};
1724
+ `,ky=x.div`
1725
+ top: ${r.sp0};
1726
+ left: ${r.sp0};
1727
+ padding-bottom: ${r.sp3};
1728
+ box-sizing: border-box;
1729
+ ${e=>e.isPanelSelected===!0&&ke`
1730
+ .missing-receipts-row-card {
1731
+ ${qr(e.theme)}
1732
+ }
1733
+ `}
1734
+ `,$y=x.div`
1735
+ position: relative;
1736
+ `,mu=d.forwardRef((e,n)=>{const{style:a,...i}=e;return t.jsx("div",{ref:n,style:{...a,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",position:"relative"},...i})});mu.displayName="Missing receipts inner element type";const Ey=x.div`
1737
+ display: flex;
1738
+ width: 100%;
1739
+ height: ${r.sp3};
1740
+ flex-direction: row;
1741
+ justify-content: center;
1742
+ align-items: center;
1743
+ margin-top: ${r.sp3};
1744
+ margin-bottom: ${r.sp3};
1745
+ `,Ty=[...hp],jy=x.div`
1746
+ width: ${di}px;
1747
+ `,Xo=x.div`
1748
+ width: ${e=>`${e.availableWidth}px`};
1749
+ min-width: auto;
1750
+ position: relative;
1751
+ height: fit-content;
1752
+ min-height: ${r.sp12};
1753
+ `,Ny=x.div`
1754
+ flex-grow: 1;
1755
+ overflow: auto;
1756
+ min-height: 2em;
1757
+ display: flex;
1758
+ flex-direction: row;
1759
+ position: relative;
1760
+
1761
+ pointer-events: auto;
1762
+ user-select: text;
1763
+ justify-content: space-between;
1764
+ margin-bottom: ${r.sp2};
1765
+
1766
+ // Disable select for Zeni Logo and File Separator
1767
+ #${wo} img[alt*="company logo"],
1768
+ .attachFileSeparator {
1769
+ user-select: none;
1770
+ }
1771
+ `,_y=x.div`
1772
+ display: flex;
1773
+ column-gap: ${r.sp2};
1774
+ align-items: flex-end;
1775
+ margin-top: ${r.sp2};
1776
+ margin-bottom: ${r.sp3};
1777
+ `,Iy=x.div`
1778
+ position: relative;
1779
+ `,gc=x(Fe)`
1780
+ position: relative;
1781
+ `,Ry=x.div`
1782
+ background-color: ${e=>e.theme.colors.grey5};
1783
+ border: ${e=>`1px solid ${e.theme.colors.background}`};
1784
+ border-radius: ${r.sp2};
1785
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
1786
+ padding: ${r.sp5};
1787
+ color: ${e=>e.theme.colors.primary};
1788
+ position: relative;
1789
+ .lexicalEditor__nestedListItem {
1790
+ list-style-type: none;
1791
+ }
1792
+ user-select: text;
1793
+
1794
+ .monthEndReportCanvasWrapper > * {
1795
+ isolation: isolate;
1796
+ z-index: ${W[1]};
1797
+ }
1798
+ `,Ay=x.div`
1799
+ user-select: text;
1800
+ `,Ly=x.div`
1801
+ position: absolute;
1802
+ top: ${r.sp4}; // Attachment icon position from the top
1803
+ right: -${r.sp3}; // To show attachment icon on the edge
1804
+ `,Dy=x.div`
1805
+ margin-top: ${r.sp2};
1806
+ display: flex;
1807
+ flex-direction: column;
1808
+ row-gap: ${r.sp3};
1809
+ margin-bottom: ${r.sp4};
1810
+ position: relative;
1811
+
1812
+ .toolbar {
1813
+ user-select: none;
1814
+ }
1815
+ `,Oy=x(ot)`
1816
+ color: ${e=>e.theme.colors.grey1};
1817
+ user-select: none;
1818
+ `,My=x(fd)`
1819
+ color: ${e=>e.theme.colors.primary};
1820
+ `,Py=x.div`
1821
+ flex-direction: column;
1822
+ row-gap: ${r.sp3};
1823
+ display: flex;
1824
+ `,Fy=Ti`
1825
+ 0% {
1826
+ transform: translateX(100%);
1827
+ }
1828
+ 100% {
1829
+ transform: translateX(0)
1830
+ }
1831
+ `,By=Ti`
1832
+ 0% {
1833
+ transform: translateX(0)
1834
+ }
1835
+ 100% {
1836
+ transform: translateX(100%)
1837
+ }
1838
+ `,zy=x.div`
1839
+ animation: ${e=>e.allThreadsSectionOpen?Fy:By}
1840
+ 0.5s forwards;
1841
+ height: 100vh;
1842
+ position: fixed;
1843
+ right: ${r.sp0};
1844
+ top: ${r.sp0};
1845
+ z-index: ${W[2]};
1846
+ min-width: ${360}px;
1847
+ max-width: ${450}px;
1848
+ `,yo="monthEndReportFormSection",mc="monthEndReportPage",wt=$e.getLocalizedStrings();function Hy({companyId:e,enableZeniGPTFeature:n,monthEndReportView:a,previewMode:i,customerRequestData:f,allThreadsSectionOpen:C,filterMetaData:o,newThreadMetadata:l,isZeniUser:m,selectedPeriod:S,improveUsingZeniGPTClick:w,onRemoveFileAttachment:h,onUpdateFileAttachment:s,onCloseAllThreadsSection:v,previewMonthEndReport:b,saveMonthEndReport:T,onEditClick:u,onOpenFileAttachmentSnackBar:p,onClickCustomerRequest:E,sendMonthEndReport:$}){const j=kt(),[D,M]=d.useState(),[_,I]=d.useState(0),[A,P]=d.useState(0),K=d.useRef(),X=d.useRef(null),te=d.useRef(null),{html:Z,subject:B,improveUsingZeniGPTStatus:O}=a,[g,c]=d.useState(),[N,k]=d.useState(!1),[y,R]=d.useState(!1),L=d.useRef(null),z=d.useRef(null),J=((pe,ce)=>{const[me,Ee]=d.useState(!1);return d.useEffect(()=>{let Le;return pe&&!me?Ee(!0):!pe&&me&&(Le=setTimeout(()=>Ee(!1),ce)),()=>clearTimeout(Le)},[pe,ce,me]),me})(C,250),ee=a.fetchState==="Not-Started"||a.fetchState==="In-Progress"||a.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||a.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:U,sortedThreads:H,threadsPositions:V,observer:G,unresolvedThreadsMap:ae,handleRemoveFloatingThread:se}=sm(o,L,!i,ee,m),q=d.useCallback(()=>{C?z.current!=null&&P(Math.min((z.current.offsetWidth-di-W[4])/2,z.current.offsetWidth-di-450-W[4])):z.current!=null&&I(Math.min((z.current.offsetWidth-di-W[4])/2,z.current.offsetWidth-di-360-W[4]))},[C]);d.useEffect(()=>{q()},[C,q]),d.useEffect(()=>(window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}),[q]);const F=m?yi:So,{openThread:Y,addThread:Q,setOpenThread:ne}=d.useContext(F),oe=((pe,ce,me)=>{const[Ee,Le]=d.useState(),[De,We]=d.useState("top"),ct=d.useCallback(()=>{const Oe=document.getSelection(),rt=Oe?.anchorNode?.parentElement?.closest(mo+pe)!=null&&Oe?.focusNode?.parentElement?.closest(mo+pe)!=null;if(Oe&&!Oe.isCollapsed&&rt===!0){if(Oe.rangeCount>0){const Be=Oe.getRangeAt(0),Tt=vl(Be.startContainer),Ke=vl(Be.endContainer);Tt&&Ke&&Tt.id!==Ke.id&&(Be.setEnd(Be.startContainer,Be.startOffset),Oe.removeAllRanges(),Oe.addRange(Be))}if(Oe.toString().trim().length>0){const Be=Oe.getRangeAt(0),{top:Tt,left:Ke}=Be.getClientRects()[0],Ut=Oe.anchorNode?.parentElement?.closest(mo+xi);We(me&&Ut?"left":"top"),Le({top:me&&Ut?Tt-10:Tt,left:Ke})}}else Le(void 0)},[pe,me,ce]);return d.useEffect(()=>(document.addEventListener("selectionchange",ct),()=>{document.removeEventListener("selectionchange",ct)}),[ct]),{coords:Ee,alignment:De}})(yl,!1,!i),ie=L.current?.getBoundingClientRect(),de=oe!=null&&oe.coords&&ie?{left:oe.coords.left-ie.left,top:oe.coords.top-ie.top}:void 0,he=d.useCallback(()=>{const pe=window.getSelection()?.getRangeAt(0),ce=am();if(!pe||ce==null)return;const me={...l,...ce,startPath:ce.startPath.join(),endPath:ce.endPath.join()},Ee=`${hd()}${Qn}`;Q(Ee,{type:"thread",id:Ee,roomId:`cockpit_${e}`,createdAt:new Date,comments:[],metadata:me,updatedAt:new Date,resolved:!1}),ne(Ee)},[Q,e,l,ne]);d.useEffect(()=>{Y!=null&&C&&v()},[C,Y,v]);const ue=O.fetchState==="In-Progress",Ce=Fn({mode:"all",defaultValues:fc(a),values:fc(a)}),be=Ce.handleSubmit(pe=>{const{recipientEmailList:ce,subject:me}=pe[yo];if(i===!0)$?.(g?.id);else{const Ee=D?.replace(wh,wt.common.strings.empty);ce!=null&&me!=null&&b(ce,me,g?.id,Ee!=null&&Ee.length>0?D:void 0)}});d.useEffect(()=>{M(a.zeniRequestsHtml)},[a.zeniRequestsHtml]),d.useEffect(()=>{K.current=g},[g]),d.useEffect(()=>{c(up(a.attachmentFile)),k(!1)},[a.attachmentFile]),d.useEffect(()=>{y&&p()},[y,p]);const fe=ni(`${S.year}-${S.month}-01`).format(wt.dateFormat.visual.MMMMFormat),le=Z!=null?Z.split(go):[],_e=a.concatenatedHtml,ye=(a.zeniRequestsData??[]).length+vh(a.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(Ny,{ref:z,children:[t.jsx(Xo,{availableWidth:C?A:_}),t.jsxs(jy,{children:[t.jsx(Bn,{...Ce,children:t.jsx("form",{id:xc(mc),onSubmit:be,children:t.jsxs(Py,{children:[t.jsx(Xg,{sectionId:yo,previewMode:i,subject:B}),!i&&ye>0?t.jsx(Yg,{totalItems:ye,onClickCustomerRequest:E}):null,t.jsxs(Ry,{id:yl,ref:L,children:[t.jsxs(Ay,{className:"monthEndReportCanvasWrapper",children:[g!=null||y?t.jsx(Ly,{"data-testid":re("email-attachment-container"),onClick:()=>{te.current&&te.current.scrollIntoView({behavior:"smooth"})},children:t.jsx(wg,{fileSizeError:y,setFileSizeError:R,loading:!1,showAnimation:!i&&N})}):null,i?t.jsx(gc,{dangerouslySetInnerHTML:{__html:lm(_e)}}):t.jsxs(t.Fragment,{children:[t.jsxs(Iy,{id:Rr,children:[t.jsx(Fe,{dangerouslySetInnerHTML:{__html:le[0]!=null?le[0]+"</body></html>":wt.common.strings.empty}}),t.jsxs(_y,{children:[t.jsx(My,{children:wt.cockpit.monthEndReport.editorTitle}),t.jsx(Oy,{children:wt.cockpit.monthEndReport.editorNote})]})]}),t.jsx(Dy,{id:xi,children:t.jsx(Zm,{handleFileInputClick:()=>{X.current!=null&&X.current.click()},fileAttached:g!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:ue,initialHtmlString:a.zeniRequestsHtml,improveUsingZeniGPTClick:w,setZeniRequestsHtml:M,customerRequestData:f})}),t.jsx(gc,{id:wo,dangerouslySetInnerHTML:{__html:le[1]!=null?"<html><body>"+le[1]:wt.common.strings.empty}})]}),g!=null?t.jsx(om,{ref:te,fileName:g.name,fileSize:Sh(g.data),onRemove:()=>{g!==void 0&&g!=null&&(h([g.id]),c(void 0),k(!1))},isRemovable:!i}):null]}),de?t.jsx(pg,{style:{zIndex:15},coords:de,alignment:oe.alignment,onClick:he}):null,t.jsx(Xm,{canvasContainerRef:L,sortedThreads:H,editorMode:!i,isZeniUser:m})]})]})})}),t.jsx(Ur,{name:g?.name??wt.common.strings.empty,fileRef:X,sizeLimit:716800,acceptableTypes:Ty,onFileChange:async pe=>{(ce=>{const me=ce.target.files?ce.target.files[0]:null;if(me)if(!gp(me.type)||y)console.warn("Please select a valid file.");else{const Ee=new FileReader;Ee.onload=function(Le){const De=Le.target?.result;if(typeof De=="string"){const We={data:De.split(",")[1],name:me.name,id:mp(e,me.name)};c(We),k(!0),s([We])}},Ee.readAsDataURL(me)}})(pe)},onFileSizeError:pe=>R(pe),multiple:!1})]}),m===!0?J?t.jsxs(t.Fragment,{children:[t.jsx(zy,{allThreadsSectionOpen:C,children:t.jsx(Nh,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${j.colors.grey3}`,boxShadow:`${r.sp0} 1px 2px ${r.sp0} ${xe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${r.sp5} - ${r.sp5})`,backgroundColor:j.colors.background},threadsContainerStyle:{paddingBottom:i?"160px":r.sp12},collapsibleThreadStyle:{width:`calc(100% - ${r.sp4})`},allowComposer:!1,drawerTitle:wt.common.texts.comments,filter:o,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(pe,ce)=>{ne(ce);const me=H.findIndex(Ee=>Ee[0]===ce);v(),U.current?.[me]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>v()})}),t.jsx(Xo,{availableWidth:_})]}):t.jsx(pm,{observer:G,canvasContainerRef:L,sortedThreads:H,threadsPositions:V,threadsRefs:U,unresolvedThreadsMap:ae,editorMode:!i,style:{minWidth:`${_}px`,position:"relative",height:"fit-content",top:`${L.current?.offsetTop}px`,minHeight:r.sp12},handleRemoveFloatingThread:se}):t.jsx(Xo,{availableWidth:_})]}),t.jsx(sd,{style:{zIndex:10},leftSideComponent:a.lastDraftSavedDate!=null&&i===!1?t.jsx(Rg,{time:a.lastDraftSavedDate,user:a.reportLastSavedByUser,timeStampLabel:wt.cockpit.monthEndReport.timeStampLabel}):null,formId:xc(mc),cancelBtn:{isDisabled:ue,label:i===!0?wt.cockpit.monthEndReport.editButtonLabel:wt.cockpit.monthEndReport.saveChanges,onClick:i===!0?u:()=>{const pe=Ce.getValues(),{recipientEmailList:ce,subject:me}=pe[yo];ce!=null&&me!=null&&T(ce,me,g?.id,D)},style:{width:"136px",padding:`${r.sp0} ${r.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:a.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:ue,isLoading:i===!0?a.sendMonthEndReportStatus.fetchState==="In-Progress":a.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:i===!0?"unset":"136px"},label:i===!0?wt.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",fe):wt.cockpit.monthEndReport.preview,size:"medium"}})]})}const fc=e=>({[yo]:{recipientEmailList:e.recipientEmailList,subject:e.subject??wt.common.strings.empty}}),xc=e=>`${e}_form`;yt.smallBold.lineHeightValue;const Uy=["memo_and_receipt","activity","paymentAccount","receipt"],yc=e=>Gr(e,Uy);function dn(e,n,a,i){const f=n,C=Math.round(1240*n/905),o=Math.round(1440*n/905),l=Math.round(1920*n/905),m=a??o,S=i??m;return new ge(e,n,f,Math.min(C,m),Math.min(o,m),Math.min(l,S))}const{common:{strings:{empty:Vy}},expenseAutomation:{transactions:{header:{vendors:Wy,category:Ky,classText:Gy,date:Yy,type:qy,amount:Jy,paymentAccount:Zy,memoReceipt:Qy}}}}=$e.getLocalizedStrings(),fu={key:"vendor",value:Wy,sortOrder:"ascending",width:dn(200,200,220,360),customStyle:{common:{paddingLeft:W[7]}}},Xy={key:"payment_account",value:Zy,sortOrder:"ascending",width:dn(180,180,200,320),customStyle:{common:{paddingLeft:W[0]}}},eC={key:"category",value:Ky,sortOrder:"ascending",width:dn(200,200,220,360),customStyle:{common:{paddingLeft:W[6]}}},tC={key:"class",value:Gy,sortOrder:"ascending",width:dn(200,200,220,360),customStyle:{common:{paddingLeft:W[6]}}},nC={key:"date",value:Yy,sortOrder:"descending",width:dn(108,108,130,144),customStyle:{common:{paddingLeft:W[0]}}},iC={key:"transaction_type",value:qy,sortOrder:"descending",width:dn(108,108,130,144),customStyle:{common:{paddingLeft:0}}},oC={key:"memo_and_receipt",value:Qy,sortOrder:"ascending",width:dn(108,108,108,120),customStyle:{common:{paddingLeft:0,justifyContent:"center",display:"flex",alignItems:"center"}}},xu={key:"amount",value:Jy,sortOrder:"ascending",width:dn(108,108,140,156),customStyle:{common:{paddingRight:W[0],justifyContent:"flex-end",display:"flex",alignItems:"center"}}},rC={key:"activity",value:Vy,sortOrder:"ascending",width:dn(W[6],W[6],48,54),customStyle:{common:{}}},sa=e=>{const n=[fu,Xy,eC,tC,nC,iC,oC,xu];return e===!0&&n.push(rC),n},la=[{...fu,width:new ge(65,65)},{...xu,width:new ge(30,30)}],Cc="date",aC="descending",yu=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:a,onColumnSortConfigChanged:i})=>{const f=Ie(),C=ut(),o=C?la:sa(a),[l,m]=d.useState(Tr(o));d.useEffect(()=>{const w=Tr(o);for(const h of w)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";m(w)},[e.sortKey,e.sortOrder,C]);const S=(w,h)=>{let s=h;e.sortKey===w&&(s=h==="ascending"?"descending":"ascending"),i(w,s)};return t.jsx(sC,{windowSize:f,isQuickViewMode:C,"data-testid":re("transaction-categorization-header-container"),children:l.map((w,h)=>{const s=n!=null||yc(w.key)!=null;return t.jsxs(lC,{sortDataValue:e.sortKey,actualDataValue:w.key,wrapperWidth:w.width,style:w.customStyle?.common,isSortDisabled:s,isQuickViewMode:C,windowSize:f,isLastItem:h===l.length-1,"data-testid":re("transaction-categorization-header-wrapper",w.key),children:[t.jsxs(pC,{"data-testid":re("transaction-categorization-header",w.value?w.value:w.key),onClick:()=>(v=>{yc(v.key)==null&&S(yp(v.key),v.sortOrder)})(w),isSortDisabled:s,children:[t.jsx(gC,{children:w.value}),s?null:t.jsx(dC,{sortConfig:e,headerData:w,"data-testid":re("transaction-categorization-sort-icon",w.key),children:t.jsx(hC,{})})]}),s?null:t.jsx(uC,{isSortDisabled:s,sortDataValue:e.sortKey,isVisible:e.sortKey===w.key&&e.sortKey!==Cc,"data-testid":re("transaction-categorization-close-icon",w.key),children:t.jsx(cC,{onClick:()=>{S(Cc,aC)},"data-testid":re("transaction-categorization-close-icon-button",w.key)})})]},w.key)})})},sC=x.div`
1849
+ top: ${r.sp0};
1850
+ left: ${r.sp0};
1851
+ height: ${50}px;
1852
+ z-index: 2;
1853
+ display: flex;
1854
+ flex-wrap: nowrap;
1855
+ align-items: center;
1856
+ box-sizing: border-box;
1857
+ background-color: ${e=>e.theme.colors.grey4};
1858
+ position: sticky;
1859
+ ${e=>e.isQuickViewMode?ke`
1860
+ width: 100%;
1861
+ justify-content: space-between;
1862
+ `:ke`
1863
+ column-gap: ${r.sp4};
1864
+ width: max-content;
1865
+ min-width: 100%;
1866
+ `}
1867
+ `,lC=x.div`
1868
+ color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1869
+ padding-left: ${r.sp0};
1870
+ left: ${r.sp0};
1871
+ display: flex;
1872
+ align-items: center;
1873
+ gap: 6px;
1874
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
1875
+ position: static;
1876
+ z-index: 0;
1877
+ box-sizing: border-box;
1878
+ ${e=>e.isQuickViewMode?ke`
1879
+ width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1880
+ max-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
1881
+ `:ke`
1882
+ width: ${e.wrapperWidth.valuePx(e.windowSize)};
1883
+ max-width: ${e.wrapperWidth.valuePx(e.windowSize)};
1884
+ `}
1885
+ `,cC=x(Ei)`
1886
+ width: 12px;
1887
+ height: 12px;
1888
+ `,dC=x.div`
1889
+ display: flex;
1890
+ align-items: center;
1891
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
1892
+ ${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
1893
+ `,uC=x.div`
1894
+ display: ${e=>e.isVisible?"flex":"none"};
1895
+ align-items: center;
1896
+ padding-top: 2px;
1897
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1898
+ &:hover {
1899
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1900
+ }
1901
+ `,hC=x($i)`
1902
+ width: ${r.sp2};
1903
+ height: ${r.sp2};
1904
+ `,pC=x.div`
1905
+ display: flex;
1906
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
1907
+ gap: 6px;
1908
+ &:hover {
1909
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
1910
+ }
1911
+ `,gC=x(lt)`
1912
+ display: flex;
1913
+ `,er="expenseAutomationTransactionsPage",Dn="transactionCategorizationListTable",Je="account",vt="class",zt="lineEntitySelection",mC="lineEntity",fC="recommendations",Cu="lineInfo",xC="vendorDetails",yC="customerDetails",Co="selectedTransactionIds",yn=(e,n,a)=>`${e}.${a}.${n}`,bu=e=>d.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.929688 8.00813C0.929688 8.675 1.02283 9.32014 1.19683 9.93121M2.20132 3.98138C3.46937 2.17826 5.566 1 7.93783 1C11.8083 1 14.946 4.13765 14.946 8.00813C14.946 10.2186 13.9226 12.1901 12.3237 13.4745M2.01692 11.7591C2.35672 12.2943 2.7671 12.7804 3.23498 13.2041M4.80209 14.2773C5.39521 14.5746 6.03636 14.7901 6.7108 14.9092M8.65531 14.98C9.34096 14.9103 9.99736 14.7418 10.6101 14.4888",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),{common:{strings:{underscore:CC,hyphen:Cn,empty:vn,colon:bc},tooltips:{addReceipt:bC,viewReceipt:wC,viewReceipts:vC}},expenseAutomation:{transactions:Ft},dateFormat:SC}=$e.getLocalizedStrings(),cn={containerPaddingLeftRight:new ge(W[3],W[4]),containerPaddingTopBottom:new ge(W[1],W[2]),containerPaddingTopBottomEmpty:new ge(W[2],W[3]),nameLogoWidth:new ge(W[2],W[4]),nameLogoHeight:new ge(W[2],W[4])},kC=({transactionView:e,transaction:n,sectionId:a,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:f,selectedTab:C,containerRef:o,listContainerRef:l,isCOTEnabled:m,cotTracking:S,onTransactionCategorizationRowClick:w,setCurrentTransactionInAction:h,vendorLoadOptions:s,openTooltipId:v,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:T,setActivityLogTransactionId:u,isTransactionActivityEnabled:p,authParams:E,onUploadTransactionReceipt:$})=>{const j=Ie(),D=ut(),[M,_]=d.useState(!1),[I,A]=d.useState(!1),{lineItemById:P,sortedLineItems:K}=n.transactionReviewLocalData,X=n.transactionReviewLocalData.tabSpecificLineItems?.[C]||[],te=K.filter(q=>X.indexOf(q)!==-1),Z=[];te.forEach(q=>{Z.push(P[q])});const{accountList:B,accountsHierarchyList:O,classHierarchyList:g,classList:c,uncategorizedAccounts:N,transactions:k,selectedCheckBoxTransactionIds:y}=e,R=e.uploadReceiptStatusById,L=y.includes(n.transactionId),z=kt(),J={control:()=>({marginLeft:-2,backgroundColor:M?z.colors.background:z.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:W[0]}),menu:()=>({width:"150%",background:z.colors.grey5}),singleValue:()=>({color:M||L?z.colors.primary:z.colors.hero,paddingLeft:W[2]}),input:q=>({...q,color:M||L?z.colors.primary:z.colors.hero,textAlign:"left",paddingLeft:W[2]}),menuPortal:q=>({...q,zIndex:10})},ee={...J,singleValue:q=>({...q,color:M||L?z.colors.primary:z.colors.hero}),menu:()=>({marginTop:W[1],marginLeft:-8}),input:q=>({...q,color:M||L?z.colors.primary:z.colors.hero,textAlign:"left"})},U=k.find(q=>q.id===n.transactionId),H=d.useRef(null),[V,G]=d.useState(void 0),[ae,se]=d.useState("bottom");return d.useEffect(()=>{if(V===void 0)return;const q=l?.current?._outerRef??null,F=()=>{const Y=H.current;if(Y==null||q==null)return;const Q=Y.getBoundingClientRect(),ne=q.getBoundingClientRect(),oe=q.scrollTop+(Q.bottom-ne.top),ie=q.scrollHeight-oe;se(ie>=288?"bottom":"top")};return F(),window.addEventListener("resize",F),q?.addEventListener("scroll",F),()=>{window.removeEventListener("resize",F),q?.removeEventListener("scroll",F)}},[l,V]),t.jsxs(EC,{onMouseEnter:D?void 0:()=>_(!0),onMouseLeave:D?void 0:()=>_(!1),children:[t.jsx(jC,{className:"categorization-row-card",windowSize:j,isSelected:L,isQuickViewMode:D,isHovered:M,children:t.jsx(NC,{children:Z.map((q,F)=>t.jsx(_C,{ref:V===F?H:void 0,"data-testid":re("transaction-categorization-list-row",q.lineId),windowSize:j,isQuickViewMode:D,onClick:Y=>((Q,ne)=>{const{transactionType:oe}=ne.transactionReviewLocalData;let ie=Q.target;for(;ie;){if(ie.classList.contains("select-value-container")||ie.classList.contains("item-value-container")||ie.classList.contains("grouped-single-select-field__value-container")||ie.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||ie.classList.contains("grouped-single-select-field__input")||ie.classList.contains("grouped-single-select-field__menu"))return;ie=ie.parentElement}oe!=null&&w(ne.transactionId,oe)})(Y,n),children:t.jsx($C,{isTransactionActivityEnabled:p,line:q,isHovered:M||L,isSelected:L,isQuickViewMode:D,lineIndex:F,sectionId:a,transaction:n,currentTransaction:U,windowSize:j,accountsHierarchyList:O,classHierarchyList:g,allAccountList:B,allClassList:c,uncategorizedAccounts:N,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:f,setCurrentTransactionInAction:h,vendorLoadOptions:s,customStyle:J,customStyleAutoComplete:ee,recommendations:q.recommendationsWithCOT,selectedTab:C,isCOTEnabled:m,menuPlacement:ae,cotTracking:S,openTooltipId:v,setOpenTooltipId:b,isUncategorizedExpenseCategoryEnabled:T,authParams:E,uploadReceiptStatus:R?.[n.transactionId],onUploadTransactionReceipt:$,onDropdownClose:()=>G(void 0),onDropdownOpen:()=>G(F)})},`${n.transactionId}.${q.lineId}`))},n.transactionId)},n.transactionId),p===!0&&!D&&t.jsx(JC,{className:"activity-log-icon","data-testid":re("activity-log-icon",n.transactionId),onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),onClick:q=>{q.stopPropagation(),u(n.transactionId)},children:t.jsx(Se,{title:Ft.header.activity,placement:"bottom",children:t.jsx(ZC,{style:{color:I?z.colors.primary:z.colors.hero}})})})]})},$C=({accountsHierarchyList:e,allAccountList:n,allClassList:a,classHierarchyList:i,customStyle:f,customStyleAutoComplete:C,line:o,lineIndex:l,transaction:m,currentTransaction:S,windowSize:w,uncategorizedAccounts:h,isHovered:s=!1,isSelected:v=!1,isQuickViewMode:b=!1,sectionId:T,recommendations:u,vendorSearchAutoCompleteData:p,selectedTab:E,isCOTEnabled:$,menuPlacement:j,cotTracking:D,openTooltipId:M,setCurrentTransactionInAction:_,vendorLoadOptions:I,setOpenTooltipId:A,isUncategorizedExpenseCategoryEnabled:P,isTransactionActivityEnabled:K,onDropdownClose:X,onDropdownOpen:te,authParams:Z,uploadReceiptStatus:B,onUploadTransactionReceipt:O})=>{const{transactionDate:g,transactionType:c,transactionTypeName:N,memo:k}=m.transactionReviewLocalData,{setValue:y}=Wr(),R=d.useCallback((ve,Ue)=>{D?.onCOTView!=null&&D.onCOTView(o.lineId,m.transactionId,ve,Ue)},[D,o.lineId,m.transactionId]),L=o.lineDescription,z=d.useMemo(()=>{if(L||k)return[{title:Ft.description,description:L||Cn},{title:Ft.header.memo,description:k||Cn}]},[k,L]),J=yn(T,zt,l.toString()),ee=yn(T,Je,l.toString()),U=yn(T,vt,l.toString()),H=(ve,Ue)=>{if(b)return;let He;switch(Ue){case"vendor":He=J;break;case"category":He=ee;break;case"class":He=U;break;default:return}y(`${He}.selectedOption`,ve,{shouldValidate:!0,shouldDirty:!0})},V=kt(),G=d.useMemo(()=>S!=null&&Nn(S)===!0?{id:m.transactionReviewLocalData.customer?.id??"",logo:m.transactionReviewLocalData.customer?.logo,name:m.transactionReviewLocalData.customer?.name??""}:{id:o.customer?.id??"",logo:o.customer?.logo,name:o.customer?.name??""},[S,o.customer?.id,o.customer?.logo,o.customer?.name,m.transactionReviewLocalData.customer?.id,m.transactionReviewLocalData.customer?.logo,m.transactionReviewLocalData.customer?.name]),ae=d.useMemo(()=>S!=null&&Nn(S)===!0?{id:m.transactionReviewLocalData.vendor?.id??"",logo:m.transactionReviewLocalData.vendor?.logo,name:m.transactionReviewLocalData.vendor?.name??""}:{id:o.vendor?.id??"",logo:o.vendor?.logo,name:o.vendor?.name??""},[S,o.vendor?.id,o.vendor?.logo,o.vendor?.name,m.transactionReviewLocalData.vendor?.id,m.transactionReviewLocalData.vendor?.logo,m.transactionReviewLocalData.vendor?.name]),se=o[vt]?.classId,q=o[Je]?.qboId??o[Je]?.accountId,F=G?.id,Y=ae?.id,Q=ae?.name,[ne,oe]=d.useState(!se),[ie,de]=d.useState(!q||o[Je]?.qboId!=null&&ci(h,o[Je].qboId,P===!0?["income"]:void 0)===!0),[he,ue]=d.useState(!Y||!F),Ce=ve=>u?.find(Ue=>Ue.vendor?.qboId===ve||Ue.vendor?.id===ve||Ue.vendor?.name===ve)?.vendor?.reason??"",be=m.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],fe=$d(e,be),le=kd(i,be),_e=d.useCallback(ve=>ci(h,ve,P===!0?["income"]:void 0),[h,P]),[ye,pe]=d.useState(!1),[ce,me]=d.useState(!1),[Ee,Le]=d.useState(!1),[De,We]=d.useState(0),[ct,Oe]=d.useState(null),[rt,Be]=d.useState([]),[Tt,Ke]=d.useState(void 0),Ut=d.useRef(null),[At,un]=d.useState(0),[hn,pn]=d.useState(0),ri=Bh()?.url,[Xt,Vt]=d.useState(!1),_i=(ve,Ue)=>{_({transactionId:m.transactionId,lineItemId:o.lineId}),I(ve,Ue)},ai=()=>{ue(!(Y||F)),pe(!1),X?.()},Ii=()=>{q&&o[Je]?.qboId!=null&&ci(h,o[Je].qboId,P===!0?["income"]:void 0)===!1?de(!1):de(!0),Vt(!1),X?.()},Ri=()=>{oe(!se),me(!1),X?.()},Ai=()=>{b||(Y||F)&&(pe(!0),te?.())},Li=()=>{b||(me(!0),te?.())},Di=()=>{b||(Vt(!0),te?.())};d.useEffect(()=>{q&&o[Je]?.qboId!=null&&ci(h,o[Je].qboId,P===!0?["income"]:void 0)===!1?de(!1):de(!0)},[q]),d.useEffect(()=>{oe(!se)},[se]),d.useEffect(()=>{ue(!(Y||F))},[Y,F]);const _o=m.transactionReviewLocalData.selectedEntity,ze=m.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,Me=S!=null&&Nn(S)===!0?_o:ze,jt=d.useMemo(()=>{const ve=m.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],Ue=p.entityAutoCompleteView;return{selectedOption:Me?.qboId??Me?.id,defaultOptions:Vr(Ue,Me,ve??[])}},[Me,m.transactionReviewLocalData.lineItemById,o.lineId,p.entityAutoCompleteView]),Oi=(ve,Ue)=>{if(Ue==null||!Ue)return;let He=[];return ve.forEach(en=>{He=He.concat(en.options)}),He.find(en=>en.value===Ue)?.label??Ue},Mi=Oi(le,se),Pi=Oi(fe,q),Mt=E==="review",Fi=Ao("vendor",jt.defaultOptions,jt.selectedOption),Bi=Ao("category",fe,q),zi=Ao("class",le,se),Ct=S?.attachments??[],Io=Tt??Ct[0];return t.jsxs(t.Fragment,{children:[(ve=>{const Ue=b?la:sa(ve);return Ue.map((He,en)=>{const Lt=`${m.transactionId}_${He.key}_${o.lineId}`;if(l>0&&S!=null&&Nn(S)===!0&&He.key==="vendor")return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,isQuickViewMode:b},Lt);if(l>0&&(He.key==="transaction_type"||He.key==="payment_account"||He.key==="memo_and_receipt"))return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,isQuickViewMode:b},Lt);switch(He.key){case"activity":return t.jsx(vu,{},Lt);case"vendor":default:return t.jsxs(_t,{windowSize:w,wrapperWidth:He.width,isQuickViewMode:b,className:"item-value-container",children:[!b&&t.jsx(tr,{isCOTEnabled:$,recommendations:be,type:"vendor",isFirstColumn:!0,isEnabled:!!Me?.isPreFilled,isMisCategorized:Fi,onRecommendationClick:H,selectedValue:Y,selectedValueLabel:Q,isReviewTab:Mt,isAccountOptionDisabled:_e,existingOption:{label:S!=null&&Nn(S)===!0?S?.vendor?.name:void 0,value:S!=null&&Nn(S)===!0?S?.vendor?.id:void 0},cotTracking:D,lineId:o.lineId,transactionId:m.transactionId,openTooltipId:M,setOpenTooltipId:A}),t.jsx(ar,{children:he===!0?t.jsx(or,{isHovered:s,isQuickViewMode:b,children:t.jsxs(ir,{onClick:Ze=>{Ze.stopPropagation(),!b&&(te?.(),ue(!1),pe(!0))},"data-testid":re("add-vendor-button",T),style:{display:"inline-flex",alignItems:"center",color:xe.brandColorGoldDark,cursor:"pointer",height:r.sp6},children:[t.jsx(ao,{}),Ft.addPayee]})}):ye===!0?t.jsx(Ot,{onClickAway:ai,children:t.jsx(GC,{"data-testid":re("vendor-selection-dropdown-container",yn(T,zt,l.toString())),children:t.jsx(Wh,{name:J,placeholder:Ft.addPayee,valueToInfo:Ce,defaultValue:{selectedOption:jt.selectedOption,defaultOptions:jt.defaultOptions},type:"vendor",autoFocus:!he,style:{width:"100%"},pageSource:"list_page",transactionStatus:Mt?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:C,menuIsOpen:ye,onMenuClose:ai,registerOptions:{required:!1},loadOptions:_i,showCOT:$,onCOTView:R,menuPlacement:j})})}):t.jsx(qC,{children:t.jsxs(rr,{isHovered:s,isQuickViewMode:b,showOutline:!b&&Fi&&Me?.isPreFilled!==!0&&!v&&Mt,children:[Me!=null&&Me.logo!=null?t.jsx(Si,{photoUrl:Me.logo.toString(),styles:{width:cn.nameLogoWidth.valuePx(w),height:cn.nameLogoHeight.valuePx(w)},fallbackAvatar:t.jsx(Sc,{children:t.jsx(kn,{name:Me.name,size:r.sp4})})}):Me!=null&&Me.name!=null?t.jsx(Sc,{children:t.jsx(kn,{name:Me.name,size:r.sp4})}):null,t.jsx(KC,{onClick:Ai,"data-testid":re("vendor-name-text",T),children:Me!=null&&Me.name?t.jsx(it,{text:Me.name,itemTextStyle:{color:s?V.colors.primary:V.colors.hero}}):t.jsx(YC,{children:Cn})})]})})})]},Lt);case"category":{const Ze=S?.lines!=null?S?.lines[l]:void 0;return t.jsxs(_t,{windowSize:w,wrapperWidth:He.width,className:"item-value-container",children:[t.jsx(tr,{isCOTEnabled:$,recommendations:be,type:"category",isFirstColumn:!1,isReviewTab:Mt,isEnabled:!!o[Je]?.isPreFilled,isAccountOptionDisabled:_e,isMisCategorized:Bi,onRecommendationClick:H,selectedValue:q,selectedValueLabel:Pi,existingOption:{label:Ze?.account?.accountName,value:Ze?.account?.qboId??Ze?.account?.accountId},cotTracking:D,lineId:o.lineId,transactionId:m.transactionId,openTooltipId:M,setOpenTooltipId:A}),t.jsx(ar,{children:ie===!0?t.jsx(or,{isHovered:s,children:t.jsxs(ir,{onClick:bt=>{bt.stopPropagation(),!b&&(te?.(),de(!1),Vt(!0))},"data-testid":re("category-selection-field",ee),style:{display:"inline-flex",alignItems:"center",color:xe.brandColorGoldDark,cursor:"pointer",height:r.sp6},children:[t.jsx(ao,{}),Ft.addCategory]})}):Xt===!0?t.jsx(Ot,{onClickAway:Ii,children:t.jsx(kc,{isHovered:s,"data-testid":re("category-selection-dropdown-container",ee),children:t.jsx(ka,{name:ee,placeholder:Ft.addCategory,valueToId:bt=>(tn=>n.filter(gn=>gn.qboId===tn)[0]?.qboId)(bt),type:"category",pageSource:"list_page",transactionStatus:Mt?"pending_review":"auto_categorized",showCOT:$,defaultValue:{selectedOption:q,allOptions:fe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:Xt,autoFocus:!ie&&(!q||o[Je]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[Je].qboId)),onMenuClose:Ii,customStyleConfig:f,disableCurrentOption:_e,menuPlacement:j,onCOTView:R})})}):t.jsx(rr,{isHovered:s,showOutline:Bi&&o[Je]?.isPreFilled!==!0&&!v&&Mt,children:t.jsx($c,{onClick:Di,"data-testid":re("category-label-text",ee),children:t.jsx(it,{text:Pi??"",itemTextStyle:{color:s?V.colors.primary:V.colors.hero}})})})})]},Lt)}case"class":{const Ze=S?.lines!=null?S?.lines[l]:void 0;return t.jsxs(_t,{windowSize:w,wrapperWidth:He.width,className:"item-value-container",children:[t.jsx(tr,{isCOTEnabled:$,recommendations:be,type:"class",isFirstColumn:!1,isReviewTab:Mt,isEnabled:!!o[vt]?.isPreFilled,isAccountOptionDisabled:_e,isMisCategorized:zi,onRecommendationClick:H,selectedValue:se,selectedValueLabel:Mi,existingOption:{label:Ze?.class?.className,value:Ze?.class?.classId},cotTracking:D,lineId:o.lineId,transactionId:m.transactionId,openTooltipId:M,setOpenTooltipId:A}),t.jsx(ar,{children:ne===!0?t.jsx(or,{isHovered:s,children:t.jsxs(ir,{onClick:bt=>{bt.stopPropagation(),!b&&(te?.(),oe(!1),me(!0))},"data-testid":re("class-selection-field",U),style:{display:"inline-flex",alignItems:"center",color:xe.brandColorGoldDark,cursor:"pointer",height:r.sp6},children:[t.jsx(ao,{}),Ft.addClass]})}):ce===!0?t.jsx(Ot,{onClickAway:Ri,children:t.jsx(kc,{isHovered:s,"data-testid":re("class-selection-dropdown-container",U),children:t.jsx(ka,{name:U,placeholder:Ft.addClass,valueToId:bt=>(tn=>a.filter(gn=>gn.classId===tn)[0]?.accountingClassNumber??void 0)(bt),type:"class",showCOT:$,defaultValue:{selectedOption:se,allOptions:le},pageSource:"list_page",transactionStatus:Mt?"pending_review":"auto_categorized",menuIsOpen:ce,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!ne&&!se,customStyleConfig:f,onMenuClose:Ri,menuPlacement:j,onCOTView:R})})}):t.jsx(rr,{isHovered:s,showOutline:zi&&o[vt]?.isPreFilled!==!0&&!v&&Mt,children:t.jsx($c,{"data-testid":re("class-selection-field",U),onClick:Li,children:t.jsx(it,{text:Mi??"",itemTextStyle:{color:s?V.colors.primary:V.colors.hero}})})})})]},Lt)}case"date":return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,children:t.jsx(An,{windowSize:w,isLastItem:en===Ue.length-1,children:t.jsx(Pr,{"data-testid":re("date-field",yn(T,vt,l.toString())),children:t.jsx(nr,{style:{color:s?V.colors.primary:V.colors.hero},children:g!=null?g.format(SC.visual.MMMDCommaYYYYformat):null})})})},Lt);case"transaction_type":return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,children:t.jsx(An,{windowSize:w,"data-testid":re("transaction-type-field",yn(T,vt,l.toString())),isLastItem:en===Ue.length-1,children:N!=null?t.jsx(Uh,{textColor:s?new pi(V.colors.primary):Vh(void 0,V),text:N??c}):null})},Lt);case"amount":{const Ze=pt("0,0.[00]",o.amount,!0);return t.jsx(_t,{windowSize:w,style:{marginRight:ve&&!b?W[0]:W[4]},wrapperWidth:He.width,isQuickViewMode:b,children:t.jsx(An,{windowSize:w,isLastItem:en===Ue.length-1,style:{justifyContent:"flex-end"},children:t.jsx(Pr,{"data-testid":re("transaction-amount-field",yn(T,vt,l.toString())),style:{color:s?V.colors.primary:V.colors.hero},children:Ze})})},Lt)}case"payment_account":{if(c!=="expense"&&c!=="check"&&c!=="bill_payment"&&c!=="vendor_credit"&&c!=="credit_card_credit"&&c!=="deposit"&&c!=="sales_receipt"&&c!=="refund"&&c!=="payment")return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,children:t.jsx(An,{windowSize:w,isLastItem:en===Ue.length-1,children:t.jsx(nr,{style:{textAlign:"center",width:"100%"},children:Cn})})},Lt);const Ze=S?.account?.accountName,bt=S?.paymentType,tn=S?.paymentTypeName,gn=bt==="credit_card"?AC:bt==="cash"?LC:bt==="check"?OC:bt==="ach"?tb:DC,Dt={title:vn,items:[{text:Ft.paymentAccountTooltip.accountLabel+bc,amount:Ze??Cn},...tn!=null?[{text:Ft.paymentAccountTooltip.methodLabel+bc,amount:tn}]:[]]};return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,children:t.jsx(An,{windowSize:w,isLastItem:en===Ue.length-1,children:t.jsx(Se,{display:"flex",placement:"bottom",variant:"list-description",data:Dt,title:Ze??Cn,enterDelay:600,style:{overflow:"hidden",minWidth:0},children:t.jsxs(RC,{"data-testid":re("payment-account",T),style:{color:s?V.colors.primary:V.colors.hero},children:[gn!=null&&t.jsx(gn,{style:{color:s?V.colors.primary:V.colors.hero}}),t.jsx(nr,{style:{color:"inherit",whiteSpace:"pre-wrap"},children:Ze??Cn})]})})})},Lt)}case"memo_and_receipt":{const Ze=S?.attachments??[],bt=B?.fetchState==="In-Progress",tn=Dt=>{if(Dt.stopPropagation(),Ze.length===0||S==null)return;if(ri==null)return void console.warn("webV2MicroServiceEndpoint is not available, cannot fetch attachments.");Ke(Ze[0]),We(0),Le(!0);const si=Ze.map(mn=>mn.id);wd(`${ri}/transaction_attachments`,Z,{transaction_key:{transaction_id:S.id,transaction_type:S.type},attachment_ids:si}).then(mn=>{Be(mn),mn.length>0&&Oe(mn[0])})},gn=Dt=>{Dt.stopPropagation(),Ut.current?.click()};return t.jsx(_t,{windowSize:w,wrapperWidth:He.width,"data-testid":re("memo-field",yn(T,vt,l.toString())),children:t.jsxs(QC,{onClick:Dt=>Dt.stopPropagation(),children:[z!=null?t.jsx(Se,{display:"flex",placement:"bottom",data:z,variant:"multi-information-points",style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsx(PC,{"data-testid":re("memo-icon",T),style:{color:s?V.colors.primary:V.colors.hero}})}):t.jsx(MC,{style:{margin:0},children:Cn}),bt?t.jsx(Pn,{size:"Small",style:{display:"flex"},start:!0}):Ze.length===0?t.jsx(Se,{display:"flex",placement:"bottom",title:bC,enterDelay:600,children:t.jsx(ao,{"data-testid":re("upload-receipt-icon",T),style:{margin:0},onClick:Dt=>{Dt.stopPropagation(),gn(Dt)}})}):Ze.length===1?t.jsx(Se,{display:"flex",placement:"bottom",title:wC,enterDelay:600,children:t.jsx(XC,{"data-testid":re("view-receipt-icon",T),style:{color:s?V.colors.primary:V.colors.hero},onClick:tn})}):t.jsx(Se,{display:"flex",placement:"bottom",title:vC,enterDelay:600,children:t.jsx(eb,{"data-testid":re("view-receipts-icon",T),style:{color:s?V.colors.primary:V.colors.hero},onClick:tn})}),t.jsx(Ur,{name:`transaction-receipt-${m.transactionId}`,fileRef:Ut,sizeLimit:ho,multiple:!0,acceptableTypes:[...Rd],onFileChange:Dt=>{const si=Dt.target.files;if(si!=null&&si.length>0){const mn=Array.from(si);O(E,m.transactionId,c??vn,mn,mn.map(Uu=>Uu.name))}},onFileSizeError:()=>{}})]})},Lt)}}})})(K),Ee&&Ct.length>0&&Io!=null?fi.createPortal(t.jsx(md,{allFiles:rt,fileSource:ct,file:Io,title:Io.fileName,attachments:Ct,showNavigation:!1,setFileSource:Oe,setShowFullScreenView:Le,onCrossClick:()=>{Le(!1),Oe(null),Be([]),Ke(void 0),We(0)},onNextClick:()=>{const ve=(De+1)%Ct.length;We(ve),Ke(Ct[ve]),rt[ve]!=null&&Oe(rt[ve])},onPreviousClick:()=>{const ve=(De-1+Ct.length)%Ct.length;We(ve),Ke(Ct[ve]),rt[ve]!=null&&Oe(rt[ve])},setSelectedFileAttachment:ve=>{Ke(typeof ve=="function"?Ue=>ve(Ue??Ct[0]):ve)},handleTouchStart:ve=>un(ve.targetTouches[0].clientX),handleTouchMove:ve=>pn(ve.targetTouches[0].clientX),handleTouchEnd:()=>{if(At-hn>50&&hn!==0&&De<Ct.length-1){const ve=De+1;We(ve),Ke(Ct[ve]),rt[ve]!=null&&Oe(rt[ve]),un(0),pn(0)}else if(At-hn<-50&&hn!==0&&De>0){const ve=De-1;We(ve),Ke(Ct[ve]),rt[ve]!=null&&Oe(rt[ve]),un(0),pn(0)}}}),document.body):null]})},wc=({isEnabled:e,isReviewTab:n,isMisCategorized:a,hasRecommendations:i,isTooltipVisible:f=!1,type:C})=>e?n?f?t.jsx(zC,{"data-testid":re("recommendation-icon",C)}):t.jsx(FC,{"data-testid":re("recommendation-icon",C)}):f?t.jsx(BC,{"data-testid":re("recommendation-icon",C)}):t.jsx(HC,{className:"ai-icon-selected-plain","data-testid":re("recommendation-icon",C)}):!e&&a||i?f?t.jsx(VC,{"data-testid":re("recommendation-icon",C)}):t.jsx(UC,{"data-testid":re("recommendation-icon",C)}):null,vc=({isFirstColumn:e,children:n})=>t.jsx(Su,{isFirstColumn:e,children:n}),tr=({recommendations:e,isCOTEnabled:n,type:a,isReviewTab:i,selectedValueLabel:f,isFirstColumn:C,isEnabled:o=!1,isMisCategorized:l=!1,selectedValue:m,existingOption:S,cotTracking:w,lineId:h,openTooltipId:s,transactionId:v,isAccountOptionDisabled:b,onRecommendationClick:T,setOpenTooltipId:u})=>{const p=d.useMemo(()=>`${v}:${h}:${a}`,[v,h,a]),E=s===p,$=Zh().analytics,{createAlternateRecommendationCallback:j}=Qh(),D=d.useCallback(X=>{const te=e[1],Z=e[0];j(a,{currentValue:f??vn,transactionCurrentStatus:i?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:w?{transactionId:v,lineId:h,onCOTView:(B,O,g,c)=>{w.onCOTView?.(B,O,g,c)}}:void 0},te,Z)(X)},[j,e,f,i,a,w,h,v]),M=Xh(e,a,n,S,"list_page",i?"pending_review":"auto_categorized",T,D,m,b),_=ep(e,a),I=d.useCallback(()=>{u(p);const X=M?.recommendations[0]?.cot??[],te=M?.recommendations[1]?.cot??[],Z=te.length>0;if($.trackTransactionCotView({recommendationFor:a,currentValue:f??vn,recommendation:M?.recommendations[0]?.name??vn,recommendationCot:X,isRecommendationCotAvailable:X.length>0,recommendationReason:M?.recommendations[0]?.reason??vn,recommendationConfidencePercentage:M?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:xa(ya(M?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:M?.recommendations[1]?.name??vn,alternativeRecommendationCot:te,isAlternativeRecommendationCotAvailable:Z,alternativeRecommendationReason:M?.recommendations[1]?.reason??vn,alternativeRecommendationConfidencePercentage:M?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:Z?xa(ya(M?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:i?"pending_review":"auto_categorized",transactionPage:"list_page"}),w?.onCOTView!=null){const B=tp(M);B!=null&&w.onCOTView(h,v,a,B)}},[$,M,i,f,a,h,v,p,u]),A=d.useCallback(()=>{s===p&&u(void 0)},[s,p,u]),P=d.useMemo(()=>!(!m||!_)&&e.some(X=>a==="vendor"&&X.vendor!=null?X.vendor.id===m||X.vendor.qboId===m:a==="category"&&X.account!=null?X.account.qboId===m||X.account.accountId===m:a==="class"&&X.class!=null&&X.class.classId===m),[m,_,e,a]);if(!_)return t.jsx(Su,{isFirstColumn:C});const K=o||P;return M?t.jsx(vc,{isFirstColumn:C,children:t.jsx(Se,{variant:"chain-of-thought",data:M,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:E,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:I,onClose:A,children:t.jsx(WC,{"data-testid":re("recommendation-icon",a),children:t.jsx(wc,{isEnabled:K,isReviewTab:i,isMisCategorized:l,hasRecommendations:_,isTooltipVisible:E})})})}):t.jsx(vc,{isFirstColumn:C,children:t.jsx(wc,{isEnabled:K,isReviewTab:i,isMisCategorized:l,hasRecommendations:_,isTooltipVisible:E,type:a})})},wu=({isTransactionActivityEnabled:e})=>{const n=Ie(),a=ut(),i=a?la:sa(e);return t.jsx(TC,{windowSize:n,isQuickViewMode:a,isTransactionActivityEnabled:e,children:i.map((f,C)=>{const o=`${C}${CC}${f.key}`;switch(f.key){case"activity":return t.jsx(vu,{},o);case"vendor":return t.jsx(_t,{windowSize:n,wrapperWidth:f.width,isQuickViewMode:a,style:a?{paddingLeft:r.sp0}:{paddingLeft:r.sp3},children:t.jsx(An,{windowSize:n,isLastItem:C===i.length-1,children:t.jsxs(Pr,{children:[t.jsx(ki,{width:W[4],height:W[4]}),t.jsx(gt,{width:"100%",height:W[4],style:{display:"flex",alignItems:"center"}})]})})},o);default:{const l=C===i.length-1;return t.jsx(_t,{windowSize:n,wrapperWidth:f.width,isQuickViewMode:a,style:{marginRight:l&&a?W[4]:void 0},children:t.jsx(An,{windowSize:n,isLastItem:l,children:t.jsx(gt,{width:"100%",height:W[4],style:{display:"flex",alignItems:"center"}})})},o)}}})})},vu=x.div`
1914
+ width: ${r.sp0};
1915
+ height: ${r.sp0};
1916
+ `,EC=x.div`
1917
+ display: flex;
1918
+ height: 100%;
1919
+ flex: 1;
1920
+ align-items: center;
1921
+
1922
+ &:hover .activity-log-icon {
1923
+ visibility: visible;
1924
+ }
1925
+ `,TC=x.div`
1926
+ display: flex;
1927
+ flex-direction: row;
1928
+ flex-wrap: nowrap;
1929
+ background-color: ${e=>e.theme.colors.grey5};
1930
+ padding-right: ${e=>e.isTransactionActivityEnabled?r.sp0:cn.containerPaddingLeftRight.valuePx(e.windowSize)};
1931
+ padding-top: ${e=>cn.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1932
+ padding-bottom: ${e=>cn.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
1933
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1934
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
1935
+ border-radius: ${r.sp2};
1936
+ color: ${e=>e.theme.colors.hero};
1937
+ cursor: pointer;
1938
+ &:hover {
1939
+ border-color: ${e=>e.theme.colors.primary};
1940
+ }
1941
+
1942
+ box-sizing: border-box;
1943
+ align-items: center;
1944
+ ${e=>e.isQuickViewMode?ke`
1945
+ flex: 1;
1946
+ justify-content: space-between;
1947
+ padding-left: ${cn.containerPaddingLeftRight.valuePx(e.windowSize)};
1948
+ `:ke`
1949
+ column-gap: ${r.sp4};
1950
+ min-width: min-content;
1951
+ `}
1952
+ `,jC=x.div`
1953
+ display: flex;
1954
+ height: 100%;
1955
+ background-color: ${e=>e.theme.colors.grey5};
1956
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
1957
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
1958
+ border-radius: ${r.sp2};
1959
+ color: ${e=>e.theme.colors.hero};
1960
+ border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
1961
+ cursor: pointer;
1962
+ ${e=>e.isQuickViewMode?ke`
1963
+ flex: 1;
1964
+ padding-left: ${cn.containerPaddingLeftRight.valuePx(e.windowSize)};
1965
+ `:ke`
1966
+ min-width: min-content;
1967
+ `}
1968
+ &:hover {
1969
+ border-color: ${e=>e.theme.colors.primary};
1970
+ }
1971
+
1972
+ box-sizing: border-box;
1973
+ align-items: center;
1974
+ justify-content: space-between;
1975
+
1976
+ .ai-icon-selected-plain {
1977
+ color: ${e=>e.theme.colors.hero};
1978
+ }
1979
+
1980
+ ${({isHovered:e,theme:n})=>e?ke`
1981
+ .ai-icon-selected-plain {
1982
+ color: ${n.colors.primary};
1983
+ }
1984
+ `:null};
1985
+ `,NC=x.div`
1986
+ display: flex;
1987
+ flex: 1;
1988
+ flex-direction: column;
1989
+ min-width: min-content;
1990
+ box-sizing: border-box;
1991
+ align-items: stretch;
1992
+ `,_C=x.div`
1993
+ display: flex;
1994
+ flex: 1;
1995
+ flex-direction: row;
1996
+ flex-wrap: nowrap;
1997
+ align-items: center;
1998
+ height: ${r.sp8};
1999
+ padding-top: ${e=>cn.containerPaddingTopBottom.valuePx(e.windowSize)};
2000
+ padding-bottom: ${e=>cn.containerPaddingTopBottom.valuePx(e.windowSize)};
2001
+ ${e=>e.isQuickViewMode===!0?ke`
2002
+ width: 100%;
2003
+ justify-content: space-between;
2004
+ `:ke`
2005
+ min-width: min-content;
2006
+ column-gap: ${r.sp4};
2007
+ `}
2008
+ `,_t=x.div`
2009
+ display: flex;
2010
+ align-items: center;
2011
+ flex-direction: row;
2012
+ position: relative;
2013
+ :last-of-type {
2014
+ padding-right: ${r.sp0};
2015
+ }
2016
+ ${e=>e.isQuickViewMode===!0?ke`
2017
+ width: calc(
2018
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2019
+ ${r.sp4}
2020
+ );
2021
+ min-width: calc(
2022
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2023
+ ${r.sp4}
2024
+ );
2025
+ `:ke`
2026
+ box-sizing: border-box;
2027
+ width: ${e.wrapperWidth.valuePx(e.windowSize)};
2028
+ min-width: ${e.wrapperWidth.valuePx(e.windowSize)};
2029
+ max-width: ${e.wrapperWidth.valuePx(e.windowSize)};
2030
+ `}
2031
+ `,IC=ke`
2032
+ word-break: break-word;
2033
+ white-space: nowrap;
2034
+ -webkit-line-clamp: 1;
2035
+ -webkit-box-orient: vertical;
2036
+ overflow: hidden;
2037
+ text-overflow: ellipsis;
2038
+ display: -webkit-box;
2039
+ `,An=x(Fe)`
2040
+ overflow: hidden;
2041
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
2042
+ display: flex;
2043
+ width: 100%;
2044
+ align-items: center;
2045
+ `,Pr=x.div`
2046
+ display: flex;
2047
+ flex-direction: row;
2048
+ column-gap: ${r.sp2};
2049
+ align-items: center;
2050
+ `,nr=x(Fe)`
2051
+ ${IC};
2052
+ min-width: 0;
2053
+ color: ${e=>e.theme.colors.hero};
2054
+ `,ir=x(Fe)`
2055
+ color: ${e=>e.theme.colors.hero};
2056
+ `,RC=x.div`
2057
+ display: flex;
2058
+ align-items: center;
2059
+ gap: ${r.sp2};
2060
+ cursor: default;
2061
+ overflow: hidden;
2062
+ min-width: 0;
2063
+ `,AC=x(Yh)`
2064
+ width: ${r.sp3};
2065
+ height: ${r.sp3};
2066
+ flex-shrink: 0;
2067
+ `,LC=x(qh)`
2068
+ width: ${r.sp3};
2069
+ height: ${r.sp3};
2070
+ flex-shrink: 0;
2071
+ `,DC=x(Rp)`
2072
+ width: ${r.sp3};
2073
+ height: ${r.sp3};
2074
+ flex-shrink: 0;
2075
+ `,OC=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.85022 13.5836L5.52057 12.9133C5.63229 12.8016 5.77164 12.7217 5.92438 12.6815C6.07712 12.6413 6.23779 12.6424 6.38999 12.6846C6.54218 12.7268 6.68046 12.8086 6.7907 12.9217C6.90094 13.0348 6.97919 13.1751 7.01747 13.3283L7.08174 13.5836L7.8119 13.0972C7.98361 12.9827 8.1897 12.9312 8.39508 12.9515C8.60046 12.9719 8.79245 13.0628 8.93837 13.2087L9.31326 13.5836H11.0985",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M17.4206 6H2.24629C2.12792 6 2.01441 6.04702 1.93071 6.13072C1.84701 6.21442 1.79999 6.32794 1.79999 6.4463V17.1576C1.79999 17.276 1.84701 17.3895 1.93071 17.4732C2.01441 17.5569 2.12792 17.6039 2.24629 17.6039H21.8837C22.0021 17.6039 22.1156 17.5569 22.1993 17.4732C22.283 17.3895 22.33 17.276 22.33 17.1576V6.4463C22.33 6.32794 22.283 6.21442 22.1993 6.13072C22.1156 6.04702 22.0021 6 21.8837 6H17.4206Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M16.0854 9.6521H19.6559V12.0656H16.0854V9.6521Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
2076
+ width: ${r.sp3};
2077
+ height: ${r.sp3};
2078
+ flex-shrink: 0;
2079
+ `,ao=x(jo)`
2080
+ width: ${r.sp3};
2081
+ height: ${r.sp3};
2082
+ margin: ${r.sp1};
2083
+ cursor: pointer;
2084
+ color: ${e=>e.theme.colors.brandColorGoldDark};
2085
+ &:hover {
2086
+ color: ${e=>e.theme.colors.primary};
2087
+ }
2088
+ `,MC=x.div`
2089
+ margin: ${r.sp3};
2090
+ `,PC=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
2091
+ width: ${r.sp3};
2092
+ height: ${r.sp3};
2093
+ `,FC=x(op)`
2094
+ width: ${r.sp5};
2095
+ height: ${r.sp5};
2096
+ `,BC=x(_p)`
2097
+ width: ${r.sp5};
2098
+ height: ${r.sp5};
2099
+ `,zC=x(ip)`
2100
+ width: ${r.sp5};
2101
+ height: ${r.sp5};
2102
+ `,HC=x(Ip)`
2103
+ width: ${r.sp5};
2104
+ height: ${r.sp5};
2105
+ `,UC=x($n)`
2106
+ width: ${r.sp3};
2107
+ height: ${r.sp3};
2108
+ path {
2109
+ stroke-width: 2;
2110
+ }
2111
+ `,VC=x(rp)`
2112
+ width: ${r.sp3};
2113
+ height: ${r.sp3};
2114
+ `,Su=x.div`
2115
+ display: flex;
2116
+ align-items: center;
2117
+ justify-content: center;
2118
+ width: ${r.sp5};
2119
+ margin-left: ${e=>e.isFirstColumn?r.sp2:r.sp0};
2120
+ height: 100%;
2121
+ `,WC=x.div`
2122
+ display: flex;
2123
+ align-items: center;
2124
+ justify-content: center;
2125
+ width: auto;
2126
+ cursor: pointer;
2127
+ `,KC=x(Fe)`
2128
+ display: flex;
2129
+ max-width: calc(100% - ${r.sp6});
2130
+ flex: 1 1 auto;
2131
+ color: ${e=>e.theme.colors.primary};
2132
+ text-align: center;
2133
+ align-items: center;
2134
+ overflow: hidden;
2135
+ display: flex;
2136
+ `,Sc=x.div`
2137
+ display: flex;
2138
+ `,GC=x.div`
2139
+ width: 100%;
2140
+ padding-left: 10px;
2141
+ margin-left: ${r.sp0};
2142
+ border-radius: ${r.sp1};
2143
+ background-color: ${e=>e.theme.colors.background};
2144
+ display: flex;
2145
+ align-items: center;
2146
+ flex-direction: row;
2147
+ `,or=x.div`
2148
+ padding: ${r.sp0} ${r.sp2};
2149
+ border-radius: ${r.sp1};
2150
+ margin-left: ${r.sp0};
2151
+ width: 100%;
2152
+ background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
2153
+ `,kc=x.div`
2154
+ width: 100%;
2155
+ border-radius: ${r.sp1};
2156
+ padding-left: 2px;
2157
+ background-color: ${e=>e.theme.colors.background};
2158
+ background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
2159
+ display: flex;
2160
+ align-items: center;
2161
+ flex-direction: row;
2162
+ `,YC=x(Fe)``,qC=x.div`
2163
+ width: 100%;
2164
+ display: flex;
2165
+ padding-left: ${r.sp0};
2166
+ `,rr=x.div`
2167
+ width: 100%;
2168
+ display: flex;
2169
+ flex-direction: row;
2170
+ align-items: center;
2171
+ gap: ${r.sp2};
2172
+ padding: ${r.sp2};
2173
+ padding-left: ${r.sp2};
2174
+ border-radius: ${r.sp1};
2175
+ background-color: ${e=>e.isQuickViewMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
2176
+ outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
2177
+ outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
2178
+ `,$c=x.div``,ar=x.div`
2179
+ display: flex;
2180
+ align-items: center;
2181
+ width: calc(100% - ${r.sp5});
2182
+ `,JC=x.div`
2183
+ display: flex;
2184
+ align-items: center;
2185
+ justify-content: center;
2186
+ cursor: pointer;
2187
+ visibility: hidden;
2188
+ flex-shrink: 0;
2189
+ margin-left: ${r.sp3};
2190
+ `,ZC=x(bu)`
2191
+ width: ${r.sp3};
2192
+ height: ${r.sp3};
2193
+ `,QC=x.div`
2194
+ display: flex;
2195
+ align-items: center;
2196
+ justify-content: center;
2197
+ width: 100%;
2198
+ gap: ${r.sp5};
2199
+ `,XC=x(bd)`
2200
+ width: ${r.sp3};
2201
+ height: ${r.sp3};
2202
+ cursor: pointer;
2203
+ `,eb=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M20.25 19.5H6.75C6.55109 19.5 6.36032 19.421 6.21967 19.2803C6.07902 19.1397 6 18.9489 6 18.75V2.25C6 2.05109 6.07902 1.86032 6.21967 1.71967C6.36032 1.57902 6.55109 1.5 6.75 1.5H15.75L21 6.75V18.75C21 18.9489 20.921 19.1397 20.7803 19.2803C20.6397 19.421 20.4489 19.5 20.25 19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.75 1.5V6.75H21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4941 11.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4941 14.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M16.5 22.5H3V5.85315",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
2204
+ width: ${r.sp3};
2205
+ height: ${r.sp3};
2206
+ cursor: pointer;
2207
+ `,tb=x(Jh)`
2208
+ width: ${r.sp3};
2209
+ height: ${r.sp3};
2210
+ cursor: pointer;
2211
+ `,nb=({sortConfig:e,fetchState:n,isDisabled:a,isTransactionActivityEnabled:i,onColumnSortConfigChanged:f})=>{const C=Ie();return t.jsxs(ib,{windowSize:C,children:[t.jsx(yu,{isTransactionActivityEnabled:i,sortConfig:e,isDisabled:n==="In-Progress"?"readonly":a,onColumnSortConfigChanged:f,"data-testid":re("transaction-categorization-list-empty-table-header")}),t.jsx(ob,{windowSize:C,"data-testid":re("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((o,l)=>t.jsx(wu,{isTransactionActivityEnabled:i,"data-testid":re("transaction-categorization-list-empty-row",l.toString())},l))})]})},ib=x.div`
2212
+ display: block;
2213
+ min-height: 100%;
2214
+ flex-direction: column;
2215
+ width: 100%;
2216
+ box-sizing: border-box;
2217
+ overflow-x: auto;
2218
+ padding-left: ${r.sp8};
2219
+ padding-right: ${r.sp8};
2220
+ `,ob=x.div`
2221
+ display: flex;
2222
+ flex: 1;
2223
+ min-height: 100%;
2224
+ flex-direction: column;
2225
+ row-gap: ${r.sp3};
2226
+ `,{common:rb,transactionDetail:{notCategorizedTooltipText:ab}}=$e.getLocalizedStrings(),sr={rowGap:new ge(W[0],W[2],W[3])},sb=({selectedTab:e,transactionView:n,authParams:a,sectionId:i,isCOTEnabled:f,isDisabled:C,vendorSearchAutoCompleteActions:o,isTransactionActivityEnabled:l,vendorSearchAutoCompleteData:m,setCurrentTransactionInAction:S,vendorLoadOptions:w,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:s,onUpdateScrollYOffSetTransactionCategorizationUIState:v,onFetchTransactionCategorizationList:b,containerRef:T,cotTracking:u,isUncategorizedExpenseCategoryEnabled:p,setActivityLogTransactionId:E,onUploadTransactionReceipt:$})=>{const j=Ie(),D=ut(),[M,_]=d.useState(void 0),{fetchState:I,uiState:A,transactionLocalData:P,selectedCheckBoxTransactionIds:K,transactionIdsWithUnsavedData:X,transactions:te,uncategorizedAccounts:Z}=n;wi({componentName:`expense_automation.transaction_categorization.${e}`,enabled:I==="Completed"});const B=d.useRef(null),O=d.useRef({}),{control:g}=Wr();d.useEffect(()=>{B.current?.resetAfterIndex(0,!0)},[j,B,P]),d.useEffect(()=>{B.current?.scrollTo(A.scrollPosition?.scrollTop??0)},[e]);const c=d.useCallback(q=>{if(O.current?.[q]!=null){const Q=j==="small"&&A.pageToken==null&&q===P.length-1?sr.rowGap.value("medium-regular"):sr.rowGap.value(j);return O.current[q]+Q}if(P[q]==null)return 0;const F=P[q].transactionReviewLocalData,Y=Object.keys(F.lineItemById).length;return Y!=null&&!isNaN(Y)&&Y>1?56*Y+sr.rowGap.value(j)*(Y-1):56},[P,j,A.pageToken,A.sortKey,A.sortOrder]),N=d.useCallback((q,F)=>{O.current={...O.current,[q]:F},B.current?.resetAfterIndex(0,!0)},[j,B,P,A.sortKey,A.sortOrder]),k=d.useCallback(()=>{(A.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&b(e,A.searchString,!0,A.pageToken,!0,!1)},[n.refreshStatus.fetchState,b,e,A.pageToken,A.searchString,A.sortKey,A.sortOrder]),y=d.useCallback(()=>{A.pageToken!=null&&k()},[k,A.pageToken,A.sortKey,A.sortOrder]),R=_h(q=>v(e,{scrollPosition:{scrollTop:q}}),1e3,{trailing:!0}),L=q=>q<n.transactionLocalData.length,z=(q,F)=>{s(e,{sortOrder:F,sortKey:q}),b(e,A.searchString,!1,null,!1,!0)};let J=[],ee=[];(I==="Completed"||n.transactionLocalData.length>0)&&(ee=n.transactionLocalData.map((q,F)=>{const Y=(oe=>{if(e==="autoCategorized")return!K.includes(oe);const ie=P.find(he=>he.transactionId===oe)?.transactionReviewLocalData,de=te.find(he=>he.id===oe);return de!=null&&ie!=null?!xp(de,ie,Z,p)||!(p!==!0||!va(Z,ie.lineItemById,["expense"]))&&X.includes(oe)===!1:K.length===0||!K.includes(oe)})(q.transactionId);let Q=!1;p===!0&&Y===!0&&e==="review"&&va(Z,q.transactionReviewLocalData.lineItemById,["expense"])&&(Q=!X.includes(q.transactionId));const ne=q.transactionReviewLocalData;return{label:t.jsx(kC,{isTransactionActivityEnabled:l,transactionView:n,sectionId:`${i}.${F}.${Cu}`,transaction:q,authParams:a,onTransactionCategorizationRowClick:h,vendorLoadOptions:w,setCurrentTransactionInAction:S,vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:m,selectedTab:e,containerRef:T,listContainerRef:B,isCOTEnabled:f,cotTracking:u,openTooltipId:M,setOpenTooltipId:_,isUncategorizedExpenseCategoryEnabled:p,setActivityLogTransactionId:E,onUploadTransactionReceipt:$},`${q.transactionId}.${ne.transactionType}`),value:q.transactionId,defaultChecked:!1,groupLabel:!1,isException:Q,exceptionMode:Q===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:Y===!0?"readonly":void 0,exceptionType:Q===!0?"alert":void 0,exceptionInfo:Q===!0?ab:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${r.sp2}`}}}),J=ee.map(q=>q.value));const U={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:H,subTitle:V}=nt("transaction_categorization").allDoneText,G=P.map(q=>q.transactionId),ae=d.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),se=d.useMemo(()=>P.reduce((q,F)=>{const Y=Object.keys(F.transactionReviewLocalData.lineItemById).length;return q+(Y>0?Y:1)},0)<n.totalCountByTab[e]?P.length+1:P.length,[P,n.totalCountByTab,e]);return t.jsx(hb,{windowSize:j,"data-testid":re("transaction-categorization-list-wrapper"),children:t.jsx(pb,{windowSize:j,"data-testid":re("transaction-categorization-list-container"),children:I==="Error"?t.jsxs(mb,{windowSize:j,"data-testid":re("transaction-categorization-reload-page"),children:[t.jsx(fb,{onClick:()=>b(e,void 0,!0,null,!1,!0),"data-testid":re("transaction-categorization-reload-icon"),children:t.jsx($o,{})}),t.jsx(xb,{"data-testid":re("transaction-categorization-reload-label"),children:rb.reloadPage.label})]}):I==="Completed"&&P.length===0?t.jsx(Ht,{tab:"transaction_categorization",title:H,subTitle:V,"data-testid":re("transaction-categorization-empty-table-section")}):I==="Not-Started"||I==="In-Progress"&&P.length===0?t.jsx(nb,{sortConfig:{sortKey:A.sortKey,sortOrder:A.sortOrder},fetchState:I,onColumnSortConfigChanged:z,"data-testid":re("transaction-categorization-list-empty-table"),isTransactionActivityEnabled:l}):t.jsx(gb,{windowSize:j,"data-testid":re("transaction-categorization-list-view"),children:t.jsx(yd,{control:g,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:q,ref:F,onChange:Y}})=>t.jsx(ku.Provider,{value:{value:q,mode:"off",allCheckBoxValues:J,index:0,isQuickViewMode:D,sortKey:A.sortKey,sortOrder:A.sortOrder,fetchState:I,isDisabled:C,groupLabelCheckBox:U,isTransactionActivityEnabled:l,onColumnSortConfigChanged:z,ref:F,onChange:Y,selectedTab:e},children:t.jsx(Ci,{children:({height:Q,width:ne})=>t.jsx(ld,{isItemLoaded:L,itemCount:ae,loadMoreItems:y,children:({onItemsRendered:oe,ref:ie})=>t.jsx(To,{ref:de=>{ie(de),B.current=de},height:Q,itemCount:se,itemKey:de=>`${P[de]?.transactionId??""}-row-${de}`,innerElementType:lb,onItemsRendered:oe,width:ne,style:{willChange:"auto"},overscanCount:1,itemSize:c,itemData:{checkboxes:ee,value:q,allCheckBoxValues:J,groupLabelCheckBox:U,categorizationGroupValue:G,transactionLocalData:P,isQuickViewMode:D,mode:"always_on",setRowHeight:N,isItemLoaded:L,ref:ie,onChange:Y,selectedCheckBoxTransactionIds:K,isTransactionActivityEnabled:l},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:de})=>{R(de)},children:db})})})})})})})})},lb=e=>{const{isQuickViewMode:n,value:a,allCheckBoxValues:i,groupLabelCheckBox:f,index:C,isDisabled:o,fetchState:l,sortKey:m,sortOrder:S,mode:w,isTransactionActivityEnabled:h,ref:s,onChange:v,onColumnSortConfigChanged:b}=cb(),T=kt(),{children:u,style:p,...E}=e;return l==="Completed"?t.jsxs(yb,{ref:s,style:{...p,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...E,children:[t.jsx(Cb,{children:t.jsx(Er,{selectionLimit:mi,value:a,checkBoxContainerStyle:{width:"auto",backgroundColor:T.colors.grey4},checkBox:{label:t.jsx(ub,{isQuickViewMode:n,children:t.jsx(yu,{isTransactionActivityEnabled:h,sortConfig:{sortKey:m,sortOrder:S},isDisabled:o,onColumnSortConfigChanged:b})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:f,allCheckBoxValues:i,mode:n?"off":w,draggable:!1,checkBoxStyle:n?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:r.sp3},name:"transactionCategorizationHeader",index:C,onChangeHandler:$=>Ed({event:$,value:a,allCheckBoxValues:i,groupLabelCheckBox:f,onChange:v}),ref:s})}),t.jsx(bb,{children:u})]},`${i[C]}-${C}`):null},ku=d.createContext(void 0),cb=()=>{const e=d.useContext(ku);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},db=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Eo(),{checkboxes:f,value:C,groupLabelCheckBox:o,categorizationGroupValue:l,allCheckBoxValues:m,transactionLocalData:S,isQuickViewMode:w,isItemLoaded:h,setRowHeight:s,ref:v,onChange:b,selectedCheckBoxTransactionIds:T,isTransactionActivityEnabled:u}=a,p=d.useRef(null),E=Ie();if(d.useEffect(()=>{p.current?.firstElementChild!=null&&s(e,p.current.firstElementChild.clientHeight)},[e,p,E,S[e]?.transactionReviewLocalData]),h(e)===!0){const $=f[e],j=i!=null&&i===l[e];return t.jsx(Ec,{isPanelSelected:j,isQuickViewMode:w,style:{...n,paddingBottom:r.sp0,width:"100%",flex:"1"},ref:p,children:t.jsx(Er,{selectionLimit:mi,checkBox:w===!0?{...$,isException:!1}:$,value:C,groupLabelCheckBox:o,allCheckBoxValues:m,mode:w===!0||$.isDisabled==="readonly"||T.includes($.value)===!1&&T.length>=mi?"off":"always_on",draggable:!1,isDisabled:$.isDisabled,checkBoxStyle:w===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:r.sp3},infoIconContainerStyle:w===!0?{display:"none"}:{padding:20},name:`${Dn}.${C}`,ref:v,index:e,onChangeHandler:D=>Ed({event:D,value:C,allCheckBoxValues:m,groupLabelCheckBox:o,onChange:b})})},l[e])}return t.jsx(Ec,{isQuickViewMode:w,style:{...n,paddingBottom:r.sp0,width:"100%",flex:"1"},ref:p,children:t.jsx(Er,{checkBox:{label:t.jsx(wu,{isTransactionActivityEnabled:u}),value:"loading",defaultChecked:!1,groupLabel:!1},value:C,groupLabelCheckBox:o,allCheckBoxValues:m,mode:"off",draggable:!1,checkBoxStyle:w===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:r.sp3},infoIconContainerStyle:w===!0?{display:"none"}:{padding:20},name:"loading-placeholder",index:e,onChangeHandler:()=>{}})},hd())},ub=x.div`
2227
+ flex: 1;
2228
+ width: auto;
2229
+ padding-left: ${({isQuickViewMode:e})=>e===!0?r.sp8:r.sp0};
2230
+ padding-right: ${({isQuickViewMode:e})=>e===!0?r.sp0:r.sp8};
2231
+ `,hb=x.div`
2232
+ width: 100%;
2233
+ height: 100%;
2234
+ background-color: ${e=>e.theme.colors.grey4};
2235
+ `,pb=x.div`
2236
+ height: 100%;
2237
+ `,gb=x.div`
2238
+ height: 100%;
2239
+ display: flex;
2240
+ flex-direction: column;
2241
+ max-width: 99.9%;
2242
+ `,mb=x.div`
2243
+ display: flex;
2244
+ width: 100%;
2245
+ height: ${e=>`calc(100% - ${xd.valuePx(e.windowSize)})`};
2246
+ flex-direction: column;
2247
+ justify-content: center;
2248
+ align-items: center;
2249
+ `,fb=x.div`
2250
+ height: 96px;
2251
+ width: 96px;
2252
+ background: ${e=>e.theme.colors.background};
2253
+ border-radius: 50%;
2254
+ cursor: pointer;
2255
+ & svg {
2256
+ margin: ${r.sp5};
2257
+ color: ${e=>e.theme.colors.grey1};
2258
+ }
2259
+ &:hover {
2260
+ & svg {
2261
+ color: ${e=>e.theme.colors.primary};
2262
+ }
2263
+ }
2264
+ `,xb=x(ot)`
2265
+ margin-top: ${r.sp3};
2266
+ color: ${e=>e.theme.colors.hero};
2267
+ `,Ec=x.div`
2268
+ top: ${r.sp0};
2269
+ left: ${r.sp0};
2270
+ padding-bottom: ${r.sp3};
2271
+ padding-left: ${({isQuickViewMode:e})=>e===!0?r.sp8:r.sp0};
2272
+ padding-right: ${({isQuickViewMode:e})=>e===!0?r.sp0:r.sp8};
2273
+ box-sizing: border-box;
2274
+ ${e=>e.isPanelSelected===!0&&ke`
2275
+ .categorization-row-card {
2276
+ ${qr(e.theme)}
2277
+ }
2278
+ `}
2279
+ `,yb=x.div`
2280
+ background-color: ${e=>e.theme.colors.grey4};
2281
+ `,Cb=x.div`
2282
+ top: 0;
2283
+ left: 0;
2284
+ width: 100%;
2285
+ min-width: 100%;
2286
+ z-index: 11;
2287
+ display: flex;
2288
+ align-items: center;
2289
+ position: sticky;
2290
+ background-color: ${e=>e.theme.colors.grey4};
2291
+ `,bb=x.div`
2292
+ position: relative;
2293
+ width: auto;
2294
+ height: 100%;
2295
+ `,wb=({selectedTab:e,transactionView:n,authParams:a,sectionId:i,vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:C,isCOTEnabled:o,isTransactionActivityEnabled:l,setCurrentFooterFormId:m,setLocalDataForCategoryAndClass:S,onTransactionCategorizationRowClick:w,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:s,onFetchTransactionCategorizationList:v,onSaveUpdateTransactionCategorization:b,onUpdateSelectedCheckboxTransactionIds:T,onFetchRecommendationsForEntityCategorization:u,onFetchRecommendationsForEntityCategorizationWithCustomer:p,setActivityLogTransactionId:E,onUploadTransactionReceipt:$})=>{const[j,D]=d.useState({transactionId:void 0,lineItemId:void 0}),M=d.useRef(),_=d.useRef({}),{useDynamicConfig:I}=pd(),{configValue:A}=I(gd.enableUncategorizedExpenseCategory),P=A?.uncategorized_expense_category_enabled===!0,{transactions:K,transactionLocalData:X,accountsHierarchyList:te,classHierarchyList:Z,accountList:B,classList:O,selectedCheckBoxTransactionIds:g,uncategorizedAccounts:c}=n,N=Fn({mode:"all",reValidateMode:"onChange",defaultValues:d.useMemo(()=>jc(g,X,te,Z,f.entityAutoCompleteView),[te,Z,g,X,f.entityAutoCompleteView]),values:d.useMemo(()=>jc(g,X,te,Z,f.entityAutoCompleteView),[te,Z,g,X,f.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});d.useEffect(()=>()=>{m("expenseAutomationPage")},[]),d.useEffect(()=>{g.length>0?m(er):m("expenseAutomationPage")},[g,m]);const k=N.handleSubmit(R=>{const L=R[Co],z=_.current;b(e,L,z),L.forEach(J=>{delete _.current[J]})});d.useEffect(()=>{const R=N.watch((L,{name:z})=>{z!=null&&L!=null&&vi(()=>(async(J,ee)=>{if(J!=null){if(J===Co){const U=N.getValues(Co);if(U.length<g.length||U.length===mi)return void T(e,U);const H=U[U.length-1],V=ee[Dn].findIndex(ae=>ae.transactionId===H),G=N.getValues(`${Dn}.${V}.lineInfo`);if(G!=null){let ae=!1;if(G.every(se=>(ae=ci(c,se[Je].selectedOption,P?["income"]:void 0),!(!se[Je].selectedOption||se[Je].selectedOption==null||ae||!se[vt].selectedOption||!se[zt].selectedOption)))===!0)return void T(e,U);{const se=U.filter(q=>q!==H);return void T(e,se)}}return}if(J.includes(Je)===!0||J.includes(vt)===!0){const U=parseInt(J.split(".")[1]),H=parseInt(J.split(".")[3]),V=N.getValues(`${Dn}.${U}.lineInfo`),G=V[H];if(J.includes(Je)||J.includes(vt)){const{transactionId:ae,lineId:se,recommendations:q}=G;if(V!=null){const F=G[Je].selectedOption,Y=G[vt].selectedOption,Q=G[zt].selectedOption,ne=G[zt].selectedOption,oe=G[zt].defaultOptions,ie=oe?.find(ce=>ce.options?.find(me=>me.value===Q))?.options?.find(ce=>ce.value===Q)?.label,de=oe?.find(ce=>ce.options?.find(me=>me.value===ne))?.options?.find(ce=>ce.value===ne)?.label,he=f.entityAutoCompleteView.vendor.find(ce=>ce.qboId===Q),ue=f.entityAutoCompleteView.customer.find(ce=>ce.qboId===ne),Ce=q.find(ce=>ce.vendor?.qboId===Q)?.vendor,be=Q||he?.qboId||Ce?.qboId?{id:Q??he?.qboId??Ce?.qboId??"",name:ie??he?.name??Ce?.name??"",logo:he?.logo??Ce?.logo}:void 0,fe=ne||ue?.qboId?{id:ne??ue?.qboId??"",name:de??ue?.name??"",logo:ue?.logo}:void 0,le=B.find(ce=>ce.qboId===F),_e=O.find(ce=>ce.classId===Y),ye=n.transactionLocalData.find(ce=>ce.transactionId===ae)?.transactionReviewLocalData.lineItemById[se].account,pe=n.transactionLocalData.find(ce=>ce.transactionId===ae)?.transactionReviewLocalData.lineItemById[se].class;S(e,ae,se,K,be?.id,fe?.id,J.includes(Je)&&le!=null?{...le,isPreFilled:!1}:ye,J.includes(vt)&&_e!=null?{..._e,isPreFilled:!1}:pe,void 0,q,P)}return}}if(J.includes(zt)){const U=parseInt(J.split(".")[1]),H=parseInt(J.split(".")[3]),V=N.getValues(`${Dn}.${U}.lineInfo`);if(V!=null){const G=V[H],{transactionId:ae,recommendations:se}=G,q=G[zt].selectedOption,F=G[zt].selectedOption,Y=G[zt].defaultOptions,Q=Y?.flatMap(le=>le.options)?.find(le=>le.value===q)?.label,ne=Y?.flatMap(le=>le.options)?.find(le=>le.value===F)?.label,oe=f.entityAutoCompleteView.vendor.find(le=>le.qboId===q),ie=f.entityAutoCompleteView.customer.find(le=>le.qboId===F),de=se.find(le=>le.vendor?.qboId===q)?.vendor,he=q!==""&&q!=null?q:Q!==""&&Q!=null?Q:"",ue=(oe?.qboId!=null&&oe.qboId!==""?oe.qboId:null)??(de?.qboId!=null&&de.qboId!==""?de.qboId:null)??(q!=null&&q!==""?q:null),Ce={id:ue??Q??"",name:Q??oe?.name??de?.name??"",logo:oe?.logo??de?.logo},be=ie?.qboId!=null&&ie.qboId!==""?{id:ie.qboId??F??"",name:ne??ie.name??"",logo:ie.logo}:void 0,fe=K.find(le=>le.id===ae);if(fe!=null){const le=n.transactionLocalData.find(me=>me.transactionId===fe.id)?.transactionReviewLocalData,_e=le?.lineItemById[G.lineId],ye=Nn(fe)===!0?le?.selectedEntity:_e?.selectedEntityLine,pe=be?.id!=null&&be.id!==""?{id:be.id,name:be.name,type:"customer",qboId:be.id,zeniId:be.id,logo:be.logo}:Ce.id!==""&&Ce.id!=null?{id:he,name:Q??he,type:"vendor",qboId:he,zeniId:he,logo:Ce.logo,isPreFilled:ye?.id===ue&&ye?.isPreFilled}:void 0,ce={transactionId:{id:fe.id,type:fe.type},transaction:fe,lineIds:fe.type!=="journal_entry"?fe.lines?.map(me=>me.id)??[]:[G.lineId]};pe?.type==="customer"?p(G.amount.amount,ce,!1,e,pe,be,P):u(G.amount.amount,ce,!1,e,pe,Ce,P)}}return void C.onCancelAutoComplete?.()}}})(z,L))});return()=>{R.unsubscribe()}}),d.useEffect(()=>{if(f.entityAutoCompleteView.fetchState==="Completed"){const R=n.transactionLocalData.find(L=>L.transactionId===j.transactionId);if(R){const{transactionReviewLocalData:L}=R,{selectedEntity:z}=L,J=j?.lineItemId??L.sortedLineItems[0],ee=L.lineItemById[J],U=ee.selectedEntityLine;M.current?.(Vr(f.entityAutoCompleteView,z??U,ee?.recommendationsWithCOT??[]))}D({transactionId:void 0,lineItemId:void 0})}},[f.entityAutoCompleteView.fetchState]);const y=d.useRef(null);return t.jsx(Sb,{ref:y,"data-testid":re("transaction-categorization-list-page"),children:t.jsx(Bn,{...N,children:t.jsx("form",{id:Tc(er),onSubmit:k,style:{height:"100%",width:"100%"},"data-testid":re(Tc(er)),children:t.jsx(sb,{isTransactionActivityEnabled:l,selectedTab:e,sectionId:i,transactionView:n,authParams:a,setCurrentTransactionInAction:D,onUpdateTransactionCategorizationUIState:h,onUpdateScrollYOffSetTransactionCategorizationUIState:s,onFetchTransactionCategorizationList:v,onTransactionCategorizationRowClick:w,vendorLoadOptions:(R,L)=>{C.onAutoCompleteInputChange?.(R),M.current=L},vendorSearchAutoCompleteData:f,vendorSearchAutoCompleteActions:C,containerRef:y,isCOTEnabled:o,cotTracking:{onCOTView:(R,L,z,J)=>{const ee={..._.current};ee[L]==null&&(ee[L]=[]);let U=ee[L].findIndex(H=>H.lineId===R);if(U===-1){const H={lineId:R,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};ee[L].push(H),U=ee[L].length-1}else{const H=ee[L][U];ee[L][U]={...H,category:{...H.category,recommendationTypesViewed:[...H.category.recommendationTypesViewed]},class:{...H.class,recommendationTypesViewed:[...H.class.recommendationTypesViewed]},vendor:{...H.vendor,recommendationTypesViewed:[...H.vendor.recommendationTypesViewed]}}}J!=null&&J!==""&&!ee[L][U][z].recommendationTypesViewed.includes(J)&&ee[L][U][z].recommendationTypesViewed.push(J),_.current=ee}},isUncategorizedExpenseCategoryEnabled:P,setActivityLogTransactionId:E,onUploadTransactionReceipt:$})})})})},Tc=e=>`${e}_form`,jc=(e,n,a,i,f)=>({[Dn]:n.map(C=>vb(C.transactionId,C.transactionReviewLocalData,a,i,f)),[Co]:e}),vb=(e,n,a,i,f)=>{const{lineItemById:C,sortedLineItems:o,selectedEntity:l}=n,m=Object.values(C).sort((w,h)=>o.indexOf(w.lineId)-o.indexOf(h.lineId)),S=m[0]?.lineId;return{[Cu]:m.map(w=>{const h=w.account?.qboId??w.account?.accountId,s=w.class?.classId,v=w.selectedEntityLine;return{id:w.id,transactionId:w.transactionId,type:w.type,amount:w.amount,lineDetailType:w.lineDetailType,platformLineDetailType:w.platformLineDetailType,lineTransactionType:w.lineTransactionType,postingType:w.postingType,postingTypeName:w.postingTypeName,customer:w.customer,vendor:w.vendor,billable:w.billable,item:w.item,isCategoryMiscategorized:w.isCategoryMiscategorized,isClassMiscategorized:w.isClassMiscategorized,lineId:w.id,[Je]:{selectedOption:h,allOptions:$d(a,w.recommendationsWithCOT)},[vt]:{selectedOption:s,allOptions:kd(i,w.recommendationsWithCOT)},[zt]:{selectedOption:l?.id??v?.id??l?.name??v?.name,defaultOptions:Vr(f,l??v,n.lineItemById[S]?.recommendationsWithCOT??[])},[mC]:w.lineEntity,[fC]:w.recommendationsWithCOT??[]}}),transactionId:e,[xC]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[yC]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Sb=x.div`
2296
+ display: flex;
2297
+ min-height: 100%;
2298
+ width: 100%;
2299
+ height: 100%;
2300
+ flex-direction: column;
2301
+ background-color: ${e=>e.theme.colors.grey4};
2302
+ z-index: 2;
2303
+ `,Nc={subSectionContainerLeftRightPadding:new ge(W[3],W[6],W[8])},kb=x.div`
2304
+ width: 100%;
2305
+ display: flex;
2306
+ justify-content: center;
2307
+ align-items: center;
2308
+ flex: 1;
2309
+ background: ${e=>e.theme.colors.grey4};
2310
+ box-sizing: border-box;
2311
+ `,$b=x.div`
2312
+ display: flex;
2313
+ flex-direction: column;
2314
+ width: 100%;
2315
+ `,Eb=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:a,onSaveJeAccountSettingsClick:i,setResetJeAccountSettingsForm:f,expenseAutomationViewSelector:C,isTransactionActivityEnabled:o,authParams:l,receiptUploadEndpoint:m,companyId:S,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:h,enableMonthEndInsightsZeniGPTFeature:s,monthEndInsightsPreviewMode:v,monthEndInsightsCustomerRequestData:b,allThreadsSectionOpen:T,loggedInUser:u,isCOTEnabled:p,setCurrentFooterFormId:E,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:j,onTransactionCategorizationRowClick:D,onFetchMissingReceiptsList:M,onMissingReceiptsRowClick:_,onUploadReceiptAttachment:I,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:P,onReconTabColumnSortConfigChanged:K,onReloadReconciliationListPage:X,onUpdateReconcileTabLocalData:te,onUpdateMissingReceiptsUIState:Z,onFetchTransactionCategorizationList:B,onUpdateTransactionCategorizationUIState:O,onUpdateScrollYOffSetTransactionCategorizationUIState:g,handleJeScheduleClick:c,ignoreRecommendedJeSchedule:N,onJESchedulesFormDataChange:k,onPostJESchedule:y,setLocalDataForCategoryAndClass:R,resetTransactionCategorizationLocalData:L,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:J,onUpdateSelectedCheckboxTransactionIds:ee,improveMonthEndInsightsUsingZeniGPTClick:U,onRemoveFileAttachment:H,onUpdateFileAttachment:V,onCloseAllThreadsSection:G,onEditMonthEndInsightsClick:ae,previewMonthEndReport:se,saveMonthEndReport:q,onOpenFileAttachmentSnackBar:F,onCloseFileAttachmentSnackBar:Y,onClickCustomerRequest:Q,sendMonthEndReport:ne,markAsReview:oe,onReloadPage:ie,updateOperatingExpensesIdsForReview:de,onFetchReimbursementView:he,updateSectionIdsForReview:ue,onUpdateFluxAnalysisUIState:Ce,fetchFluxViewOnScroll:be,onFetchFluxViewList:fe,setIsJeAccountSettingsOpened:le,onReviewClicked:_e,setOpenDrawerClicked:ye,onEstablishConnectionClick:pe,onFetchLinkTokenClick:ce,updateReconReviewTabLocalData:me,onReconReviewTabColumnSortConfigChanged:Ee,onSaveReconciliation:Le,onSaveReconciliationReview:De,onReconMatchedTransactionClick:We,onAddStatementClick:ct,redirectToVendorDetailPage:Oe,setActivityLogTransactionId:rt}=e,{currentSelectedView:Be,missingReceipts:Tt,transactionView:Ke,selectedPeriod:Ut,monthEndInsights:At,selectedTransactionCategorizationTab:un,reconciliation:hn}=C;switch(Be){case"transaction_categorization":return Ke.fetchState==="Completed"&&Ke.transactionLocalData.length===0?t.jsx(Ht,{tab:Be,title:nt(Be).allDoneText.title,subTitle:nt(Be).allDoneText.subTitle}):t.jsx(wb,{setCurrentFooterFormId:E,selectedPeriod:Ut,selectedTab:un,sectionId:Dn,transactionView:Ke,authParams:l,isTransactionActivityEnabled:o,onUpdateTransactionCategorizationUIState:O,onUpdateScrollYOffSetTransactionCategorizationUIState:g,onFetchTransactionCategorizationList:B,onTransactionCategorizationRowClick:D,setLocalDataForCategoryAndClass:R,resetTransactionCategorizationLocalData:L,updateSelectedVendorForTransaction:z,onSaveUpdateTransactionCategorization:J,onUpdateSelectedCheckboxTransactionIds:ee,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:h,onFetchRecommendationsForEntityCategorization:$,onFetchRecommendationsForEntityCategorizationWithCustomer:j,isCOTEnabled:p,setActivityLogTransactionId:rt,onUploadTransactionReceipt:e.onUploadTransactionReceipt});case"je_schedules":return t.jsx(_x,{setIsJeAccountSettingsOpened:le,expenseAutomationViewSelector:C,setResetJeAccountSettingsForm:f,currentFooterFormId:n,onJeAccountSettingsChange:a,onSaveJeAccountSettingsClick:i,setCurrentFooterFormId:E,handleJeScheduleClick:c,ignoreRecommendedJeSchedule:N,onJESchedulesFormDataChange:k,onPostJESchedule:y,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:h});case"missing_receipts":return Tt.fetchState==="Completed"&&Tt.transactions.length===0?t.jsx(Ht,{tab:Be,title:nt(Be).allDoneText.title,subTitle:nt(Be).allDoneText.subTitle}):t.jsx(my,{onUpdateMissingReceiptsUIState:Z,onFetchMissingReceiptsList:M,missingReceipts:Tt,receiptUploadEndpoint:m,authParams:l,selectedPeriod:Ut,onMissingReceiptsRowClick:_,onUploadReceiptComplete:A,onUploadReceiptFetchStatus:P,onUploadReceiptAttachment:I});case"month_end_insights":if(At!=null&&C.monthEndCloseChecksView.monthEndCloseChecks!=null){if(At.fetchState==="Not-Started"||At.fetchState==="In-Progress"||At.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||At.companyMonthEndReportTemplatesData.fetchState==="In-Progress")return t.jsx(Cp,{fetchState:"In-Progress"});{const pn={application:"cockpit",companyId:S,entityId:S,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:At.companyName,url:window.location.href},{url:ri,...Xt}=pn,Vt={...Xt};return t.jsx($b,{children:t.jsx(Hy,{allThreadsSectionOpen:T,customerRequestData:b,companyId:S,enableZeniGPTFeature:s,filterMetaData:Vt,selectedPeriod:C.selectedPeriod,improveUsingZeniGPTClick:U,isZeniUser:u?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:At,newThreadMetadata:pn,onClickCustomerRequest:Q,onCloseAllThreadsSection:G,onCloseFileAttachmentSnackBar:Y,onOpenFileAttachmentSnackBar:F,onRemoveFileAttachment:H,onUpdateFileAttachment:V,previewMode:v,previewMonthEndReport:se,saveMonthEndReport:q,onEditClick:ae,sendMonthEndReport:ne})})}}return null;case"flux_analysis":return C.fluxAnalysis.fetchStatus.fetchState==="Completed"&&C.fluxAnalysis.sections.generalExpense.vendors.length===0&&C.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(Ht,{tab:Be,title:nt(Be).allDoneText.title,subTitle:nt(Be).allDoneText.subTitle}):t.jsx(sx,{fluxAnalysis:C.fluxAnalysis,selectedPeriod:C.selectedPeriod,markAsReview:oe,onReloadPage:ie,updateOperatingExpensesIdsForReview:de,updateSectionIdsForReview:ue,onUpdateFluxAnalysisUIState:Ce,setCurrentFooterFormId:E,fetchFluxViewOnScroll:be,onFetchFluxViewList:fe,onFetchReimbursementView:he,redirectToVendorDetailPage:Oe});case"reconciliation":return t.jsx(J0,{onReloadReconciliationListPage:X,currentFooterFormId:n,reconciliation:hn,companyId:S,vendorSearchAutoCompleteActions:w,vendorSearchAutoCompleteData:h,onReviewClicked:_e,setOpenDrawerClicked:ye,setCurrentFooterFormId:E,onReconTabColumnSortConfigChanged:K,onUpdateReconcileTabLocalData:te,onEstablishConnectionClick:pe,onFetchLinkTokenClick:ce,updateReconReviewTabLocalData:me,onReconReviewTabColumnSortConfigChanged:Ee,onSaveReconciliation:Le,onSaveReconciliationReview:De,onReconMatchedTransactionClick:We,onAddStatementClick:ct});default:return t.jsx(Ht,{tab:Be,title:nt(Be).allDoneText.title,subTitle:nt(Be).allDoneText.subTitle})}};function $u(e){const n=Ie(),{currentSelectedView:a}=e.expenseAutomationViewSelector,i=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",f=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(kb,{windowSize:n,style:{...f===!0?{paddingLeft:Nc.subSectionContainerLeftRightPadding.value(n),paddingRight:Nc.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:W[0],paddingRight:W[0]},...i===!0||a==="reconciliation"?{paddingLeft:W[0],paddingRight:W[0]}:{}},children:t.jsx(Eb,{...e})})}const Tb=["receipts"],_c=e=>Gr(e,Tb),{common:{texts:{vendor:jb,amount:Nb,receipts:_b,category:Ib,classText:Rb,date:Ab}}}=$e.getLocalizedStrings(),Eu={key:"vendor",value:jb,sortOrder:"ascending",width:new ge(18,18)},Lb={key:"category",value:Ib,sortOrder:"ascending",width:new ge(18,18)},Db={key:"class",value:Rb,sortOrder:"ascending",width:new ge(18,18)},Ob={key:"date",value:Ab,sortOrder:"descending",width:new ge(11,11)},Mb={key:"receipts",value:_b,sortOrder:"descending",width:new ge(6,6)},Tu={key:"amount",value:Nb,sortOrder:"ascending",width:new ge(10,10)},ca=[Eu,Lb,Db,Ob,Mb,Tu],da=[{...Eu,width:new ge(65,65)},{...Tu,width:new ge(30,30)}],Ic="date",Pb="descending",ju=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:a})=>{const i=Ie(),f=ut(),C=f?da:ca,[o,l]=d.useState(C);d.useEffect(()=>{const S=[...C];for(const w of S)w.key===e.sortKey?w.sortOrder=e.sortOrder:w.sortOrder="ascending";l(S)},[e.sortKey,e.sortOrder,f]);const m=(S,w)=>{let h=w;e.sortKey===S&&(h=w==="ascending"?"descending":"ascending"),a(S,h)};return t.jsx(Fb,{windowSize:i,isQuickViewMode:f,children:o.map((S,w)=>{const h=n!=null||_c(S.key)!=null;return t.jsxs(Bb,{sortDataValue:e.sortKey,actualDataValue:S.key,wrapperWidth:S.width,isSortDisabled:h,windowSize:i,isQuickViewMode:f,isLastItem:w===o.length-1,style:S.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(Wb,{onClick:()=>h?null:(s=>{_c(s.key)==null&&m(pp(s.key),s.sortOrder)})(S),isSortDisabled:h,children:[t.jsx(Kb,{children:S.value}),h?null:t.jsx(Hb,{sortConfig:e,headerData:S,children:t.jsx(Vb,{})})]}),h?null:t.jsx(Ub,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===S.key&&e.sortKey!==Ic,children:t.jsx(zb,{onClick:()=>{h||m(Ic,Pb)},"data-testid":re("completed-tab-header-close-icon",S.key)})})]},S.key)})})},Fb=x.div`
2316
+ top: ${r.sp0};
2317
+ left: ${r.sp0};
2318
+ height: ${50}px;
2319
+ z-index: 2;
2320
+ display: flex;
2321
+ flex-wrap: nowrap;
2322
+ align-items: center;
2323
+ box-sizing: border-box;
2324
+ background-color: ${e=>e.theme.colors.grey4};
2325
+ position: sticky;
2326
+ width: 100%;
2327
+ justify-content: space-between;
2328
+ ${e=>e.isQuickViewMode===!0?ke`
2329
+ width: 32%;
2330
+ max-width: var(--side-panel-list-width, 100%);
2331
+ `:ke`
2332
+ padding: ${r.sp0} ${r.sp3};
2333
+ `}
2334
+ `,Bb=x.div`
2335
+ color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
2336
+ padding-left: ${r.sp0};
2337
+ left: ${r.sp0};
2338
+ display: flex;
2339
+ align-items: center;
2340
+ gap: 6px;
2341
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
2342
+ position: static;
2343
+ z-index: 0;
2344
+ box-sizing: border-box;
2345
+ flex-shrink: 0;
2346
+ ${e=>e.isQuickViewMode===!0?ke`
2347
+ width: calc(
2348
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2349
+ ${r.sp4}
2350
+ );
2351
+ min-width: calc(
2352
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2353
+ ${r.sp4}
2354
+ );
2355
+ max-width: calc(
2356
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2357
+ ${r.sp4}
2358
+ );
2359
+ `:ke`
2360
+ width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
2361
+ min-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
2362
+ max-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
2363
+ `}
2364
+ `,zb=x(Ei)`
2365
+ width: ${r.sp2};
2366
+ height: ${r.sp2};
2367
+ cursor: pointer;
2368
+ `,Hb=x.div`
2369
+ display: flex;
2370
+ align-items: center;
2371
+ transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
2372
+ `,Ub=x.div`
2373
+ display: ${e=>e.isVisible?"flex":"none"};
2374
+ align-items: center;
2375
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
2376
+ &:hover {
2377
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
2378
+ }
2379
+ `,Vb=x($i)`
2380
+ width: ${r.sp2};
2381
+ height: ${r.sp2};
2382
+ `,Wb=x.div`
2383
+ display: flex;
2384
+ cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
2385
+ gap: 6px;
2386
+ &:hover {
2387
+ color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
2388
+ }
2389
+ `,Kb=x(lt)`
2390
+ display: flex;
2391
+ `,{dateFormat:Gb,common:{strings:{underscore:Nu,hyphen:Kn,empty:Rc}}}=$e.getLocalizedStrings(),so={containerPaddingLeftRight:new ge(W[3],W[4])},Yb=({transaction:e,authParams:n,transactionAttachmentsEndpoint:a,onMissingReceiptsRowClick:i})=>{const f=Ie(),C=ut(),o=C?da:ca,[l,m]=d.useState(!1),[S,w]=d.useState([]),[h,s]=d.useState(null),v=e.attachments?.filter(E=>E.contentType!=null&&jh.includes(E.contentType))??[],[b,T]=d.useState(v[0]),u=e.attachments!=null&&e.attachments.length>0,p=e.date?.format?.(Gb.visual.MMMDCommaYYYYformat)??Kn;return t.jsxs(_u,{windowSize:f,isQuickViewMode:C,onClick:()=>i(e.id,e.type),"data-testid":re("completed-tab-list-row",e.id),children:[o.map((E,$)=>{const j=`${e.id}${Nu}${E.key}`;switch(E.key){case"vendor":default:return t.jsx(Ln,{windowSize:f,wrapperWidth:E.width,isQuickViewMode:C,children:t.jsx(Jn,{windowSize:f,isLastItem:$===o.length-1,children:t.jsxs(bo,{children:[t.jsx(Si,{photoUrl:e.vendorId!=null?e.logo?.toString()??Rc:Rc,styles:{width:r.sp4,height:r.sp4,borderRadius:r.sp0},placeholder:{width:W[4],height:W[4]},fallbackAvatar:t.jsx(Zb,{children:t.jsx(kn,{name:e.vendorName??e.description??Kn,size:r.sp4})})}),t.jsx(it,{text:e.vendorName??e.description??Kn,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})]})})},j);case"category":case"class":{const D=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:Kn,M=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:Kn,_=E.key==="category"?D:M;return t.jsx(Ln,{windowSize:f,wrapperWidth:E.width,isQuickViewMode:C,children:t.jsx(Jn,{windowSize:f,isLastItem:$===o.length-1,children:t.jsx(bo,{children:_!==Kn?t.jsx(it,{text:_,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}}):t.jsx(Jb,{children:_})})})},j)}case"date":return t.jsx(Ln,{windowSize:f,wrapperWidth:E.width,isQuickViewMode:C,children:t.jsx(Jn,{windowSize:f,isLastItem:$===o.length-1,children:t.jsx(bo,{children:t.jsx(it,{text:p,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})})})},j);case"receipts":return t.jsx(Ln,{windowSize:f,wrapperWidth:E.width,isQuickViewMode:C,style:{justifyContent:"center"},children:u?t.jsx(Qb,{onClick:D=>{D.stopPropagation(),(()=>{m(!0),T(v[0]);const M=v.map(_=>_.id);wd(a,n,{transaction_key:{transaction_id:e.id,transaction_type:e.type},attachment_ids:M}).then(_=>{w(_),_.length>0&&s(_[0])})})()}}):null},j);case"amount":{const D=pt("0,0.[00]",e.amount);return t.jsx(Ln,{windowSize:f,wrapperWidth:E.width,isQuickViewMode:C,children:t.jsx(Jn,{windowSize:f,isLastItem:$===o.length-1,children:t.jsx(it,{text:e.amount!=null&&e.amount.amount<0?`-${D}`:D,itemTextStyle:{...yt.standardRegular.cssObject,color:"inherit"}})})},j)}}}),l&&v.length>0?fi.createPortal(t.jsx(md,{allFiles:S,fileSource:h,file:b,title:b.fileName,attachments:v,setFileSource:s,setShowFullScreenView:m,onCrossClick:()=>{m(!1),s(null),w([]),v.length>0&&T(v[0])},setSelectedFileAttachment:T,handleTouchStart:()=>{},handleTouchMove:()=>{},handleTouchEnd:()=>{}}),document.body):null]})},qb=()=>{const e=Ie(),n=ut(),a=n?da:ca,i=d.useRef(null),[f,C]=d.useState(0);return d.useLayoutEffect(()=>{i.current&&C(i.current.offsetWidth)},[e]),t.jsx(_u,{windowSize:e,isQuickViewMode:n,ref:i,children:a.map((o,l)=>{const m=`${l}${Nu}${o.key}`;return o.key==="vendor"?t.jsx(Ln,{windowSize:e,wrapperWidth:o.width,isQuickViewMode:n,children:t.jsx(Jn,{windowSize:e,isLastItem:l===a.length-1,children:t.jsxs(bo,{children:[t.jsx(ki,{width:W[4],height:W[4]}),t.jsx(gt,{width:f*o.width.value(e)/100,height:W[4],style:{display:"flex",alignItems:"center"}})]})})},m):t.jsx(Ln,{windowSize:e,wrapperWidth:o.width,isQuickViewMode:n,children:t.jsx(Jn,{windowSize:e,isLastItem:l===a.length-1,children:t.jsx(gt,{width:f*o.width.value(e)/100,height:W[4],style:{display:"flex",alignItems:"center"}})})},m)})})},_u=x.div`
2392
+ display: flex;
2393
+ height: 100%;
2394
+ background-color: ${e=>e.theme.colors.grey5};
2395
+ padding: ${r.sp3};
2396
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
2397
+ box-shadow: ${e=>`${r.sp0} 2px ${r.sp1} ${e.theme.colors.dropShadowNormal}`};
2398
+ border-radius: ${r.sp2};
2399
+ color: ${e=>e.theme.colors.hero};
2400
+ cursor: pointer;
2401
+ &:hover {
2402
+ border-color: ${e=>e.theme.colors.primary};
2403
+ color: ${e=>e.theme.colors.primary};
2404
+ }
2405
+ box-sizing: border-box;
2406
+ align-items: center;
2407
+ justify-content: space-between;
2408
+ ${e=>e.isQuickViewMode?ke`
2409
+ flex: 1;
2410
+ padding-left: ${so.containerPaddingLeftRight.valuePx(e.windowSize)};
2411
+ padding-right: ${so.containerPaddingLeftRight.valuePx(e.windowSize)};
2412
+ width: 95%;
2413
+ `:ke`
2414
+ min-width: min-content;
2415
+ padding-left: ${so.containerPaddingLeftRight.valuePx(e.windowSize)};
2416
+ padding-right: ${so.containerPaddingLeftRight.valuePx(e.windowSize)};
2417
+ `}
2418
+ `,Ln=x.div`
2419
+ display: flex;
2420
+ align-items: center;
2421
+ position: relative;
2422
+ :last-of-type {
2423
+ padding-right: ${r.sp0};
2424
+ }
2425
+ ${e=>e.isQuickViewMode===!0?ke`
2426
+ width: calc(
2427
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2428
+ ${r.sp4}
2429
+ );
2430
+ min-width: calc(
2431
+ ${e.wrapperWidth.valuePercentage(e.windowSize)} -
2432
+ ${r.sp4}
2433
+ );
2434
+ `:ke`
2435
+ width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
2436
+ min-width: ${e.wrapperWidth.valuePercentage(e.windowSize)};
2437
+ `}
2438
+ `,Jn=x(Fe)`
2439
+ overflow: hidden;
2440
+ justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
2441
+ display: flex;
2442
+ width: 100%;
2443
+ align-items: center;
2444
+ `,bo=x.div`
2445
+ display: flex;
2446
+ flex-direction: row;
2447
+ column-gap: ${r.sp2};
2448
+ align-items: center;
2449
+ `,Jb=x(Fe)`
2450
+ word-break: break-all;
2451
+ white-space: normal;
2452
+ -webkit-line-clamp: 1;
2453
+ -webkit-box-orient: vertical;
2454
+ overflow: hidden;
2455
+ text-overflow: ellipsis;
2456
+ display: -webkit-box;
2457
+ color: inherit;
2458
+ `,Zb=x.div`
2459
+ display: flex;
2460
+ `,Qb=x(bd)`
2461
+ width: 16px;
2462
+ height: 16px;
2463
+ color: inherit;
2464
+ `,Xb=({sortConfig:e,fetchState:n,isDisabled:a,onColumnSortConfigChanged:i})=>{const f=Ie(),C=ut();return t.jsxs(ew,{windowSize:f,children:[t.jsx(tw,{isQuickViewMode:C,children:t.jsx(ju,{sortConfig:e,isDisabled:n.fetchState==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i})}),t.jsx(nw,{windowSize:f,children:[...Array(3)].map((o,l)=>t.jsx(qb,{},l))})]})},ew=x.div`
2465
+ display: block;
2466
+ min-height: 100%;
2467
+ flex-direction: column;
2468
+ width: 100%;
2469
+ `,tw=x.div`
2470
+ flex: 1;
2471
+ width: auto;
2472
+ padding-left: ${({isQuickViewMode:e})=>e===!0?r.sp8:r.sp0};
2473
+ `,nw=x.div`
2474
+ display: flex;
2475
+ min-height: 100%;
2476
+ flex-direction: column;
2477
+ row-gap: ${r.sp3};
2478
+ `,iw=({authParams:e,fetchState:n,nextPageToken:a,sortKey:i,sortOrder:f,totalCount:C,transactionAttachmentsEndpoint:o,transactions:l,onFetchMore:m,onMissingReceiptsRowClick:S,onSortConfigChanged:w,onSortReset:h})=>{const s=Ie(),v=ut(),b=d.useRef(null),T=(M,_)=>{w?.(M,_)},u=d.useCallback(M=>M<l.length,[l.length]),p=d.useCallback(()=>{a!=null&&n.fetchState!=="In-Progress"&&m(a)},[a,n.fetchState,m]),E=d.useMemo(()=>C,[C]),$=d.useMemo(()=>l.length<C?l.length+1:l.length,[l.length,C]),j=n.fetchState==="Completed"&&l.length===0,D=n.fetchState==="Not-Started"||n.fetchState==="In-Progress"&&l.length===0;return t.jsx(rw,{children:t.jsx(aw,{windowSize:s,children:j?t.jsx(Ht,{tab:"missing_receipts",title:nt("missing_receipts").allDoneText.title,subTitle:nt("missing_receipts").allDoneText.subTitle}):D?t.jsx(Xb,{sortConfig:{sortKey:i??"date",sortOrder:f},fetchState:n,onColumnSortConfigChanged:T}):t.jsx(sw,{windowSize:s,children:t.jsx(Ci,{children:({height:M,width:_})=>t.jsxs(cw,{style:{height:M,width:_},children:[t.jsx(lw,{isQuickViewMode:v,children:t.jsx(ju,{sortConfig:{sortKey:i??"date",sortOrder:f},isDisabled:n.fetchState==="In-Progress"?"readonly":void 0,onColumnSortConfigChanged:T})}),t.jsx(ld,{isItemLoaded:u,itemCount:E,loadMoreItems:p,children:({onItemsRendered:I,ref:A})=>t.jsx(gh,{ref:P=>{A(P),b.current=P},height:M-50,innerElementType:Iu,itemCount:$,itemSize:70,width:_,style:{willChange:"auto"},overscanCount:3,onItemsRendered:I,itemKey:P=>l[P]?.id??`loading-${P}`,itemData:{transactions:l,isItemLoaded:u,authParams:e,isQuickViewMode:v,transactionAttachmentsEndpoint:o,onMissingReceiptsRowClick:S},children:ow})})]})})})})})},ow=({index:e,style:n,data:a})=>{const{transactions:i,isItemLoaded:f,authParams:C,isQuickViewMode:o,transactionAttachmentsEndpoint:l,onMissingReceiptsRowClick:m}=a;if(f(e)===!1)return t.jsx(Ac,{isQuickViewMode:o,style:{...n,width:"100%"},children:t.jsx(dw,{})});const S=i[e];return t.jsx(Ac,{isQuickViewMode:o,style:{...n,width:"100%"},children:t.jsx(Yb,{transaction:S,authParams:C,transactionAttachmentsEndpoint:l,onMissingReceiptsRowClick:m},S.id)})},rw=x.div`
2479
+ display: flex;
2480
+ flex-direction: column;
2481
+ flex: 1;
2482
+ overflow: hidden;
2483
+ background-color: ${e=>e.theme.colors.grey4};
2484
+ `,aw=x.div`
2485
+ flex: 1;
2486
+ display: flex;
2487
+ flex-direction: column;
2488
+ overflow: hidden;
2489
+ `,sw=x.div`
2490
+ height: 100%;
2491
+ display: flex;
2492
+ flex-direction: column;
2493
+ max-width: 99.9%;
2494
+ `,lw=x.div`
2495
+ flex: 1;
2496
+ width: auto;
2497
+ `,cw=x.div`
2498
+ position: relative;
2499
+ `,Ac=x.div`
2500
+ top: ${r.sp0};
2501
+ left: ${r.sp0};
2502
+ padding-bottom: ${r.sp3};
2503
+ box-sizing: border-box;
2504
+ `,Iu=d.forwardRef((e,n)=>{const{style:a,...i}=e;return t.jsx("div",{ref:n,style:{...a,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",position:"relative"},...i})});Iu.displayName="Completed tab inner element type";const dw=x.div`
2505
+ display: flex;
2506
+ align-items: center;
2507
+ justify-content: space-between;
2508
+ box-sizing: border-box;
2509
+ padding: ${r.sp3} ${r.sp4};
2510
+ background-color: ${e=>e.theme.colors.grey5};
2511
+ border: 1px solid ${e=>e.theme.colors.grey3};
2512
+ border-radius: ${r.sp2};
2513
+ height: 58px;
2514
+ animation: pulse 1.5s ease-in-out infinite;
2515
+
2516
+ @keyframes pulse {
2517
+ 0%,
2518
+ 100% {
2519
+ opacity: 1;
2520
+ }
2521
+ 50% {
2522
+ opacity: 0.4;
2523
+ }
2524
+ }
2525
+ `;function Ru(e){const{bulkUploadSelector:n,isUploading:a}=e;if(n==null)return!1;const i=(n.unmatchedFiles?.length??0)>0||(n.pastUnmatchedFiles?.length??0)>0;if(i)return!1;const f=n.batchListFetchState?.fetchState,C=n.batchDetailsPaginationState?.fetchState,o=f==="In-Progress"||f==="Not-Started",l=C==="In-Progress",m=n.batchList?.length??0,S=n.hasMoreBatchDetails===!0;return a===!0||o||l||f==="Completed"&&C==="Not-Started"&&(S||m>0)||S===!0&&!i}const uw=`calc(
2526
+ 5 * (${r.sp4} + 2 * ${r.sp3}) +
2527
+ (5 - 1) * ${r.sp3}
2528
+ )`,ua=x.div`
2529
+ display: flex;
2530
+ flex-direction: column;
2531
+ gap: ${r.sp3};
2532
+ min-height: 0;
2533
+ max-height: ${uw};
2534
+ overflow-y: auto;
2535
+ overflow-x: hidden;
2536
+ overscroll-behavior: contain;
2537
+ scrollbar-width: thin;
2538
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
2539
+ width: 100%;
2540
+ `,lr=[new ge(50,50),new ge(25,25),new ge(25,25)],Au=()=>t.jsx(yw,{children:t.jsx(gt,{width:"100%",height:W[3],style:{borderRadius:r.sp1,height:W[4],display:"block"}})}),hw=()=>{const e=Ie(),n=d.useRef(null),[a,i]=d.useState(0);return d.useLayoutEffect(()=>{n.current&&i(n.current.offsetWidth)},[e]),t.jsx(Cw,{children:t.jsxs(bw,{ref:n,children:[t.jsx(ww,{children:t.jsxs(vw,{children:[t.jsx(ki,{width:W[4],height:W[4]}),t.jsx(gt,{width:a>0?a*lr[0].value(e)/100:"100%",height:W[4],style:{display:"flex",alignItems:"center"}})]})}),t.jsx(Sw,{children:t.jsx(gt,{width:a>0?a*lr[1].value(e)/100:"100%",height:W[4],style:{display:"flex",alignItems:"center"}})}),t.jsx(kw,{children:t.jsx(gt,{width:a>0?a*lr[2].value(e)/100:"100%",height:W[4],style:{display:"flex",alignItems:"center"}})})]})})},Lu=({rowCount:e=5})=>t.jsx(ua,{"aria-hidden":!0,children:Array.from({length:e},(n,a)=>t.jsx(hw,{},a))}),pw=()=>t.jsxs(mw,{children:[t.jsx(fw,{children:t.jsx(gt,{width:200,height:31,style:{display:"block",borderRadius:r.sp1}})}),t.jsx(Au,{}),t.jsx(Lu,{rowCount:2})]}),gw=()=>t.jsxs(xw,{children:[t.jsx(Au,{}),t.jsx(Lu,{rowCount:1})]}),mw=x.div`
2541
+ display: flex;
2542
+ flex-direction: column;
2543
+ gap: ${r.sp3};
2544
+ min-width: 0;
2545
+ align-items: start;
2546
+ margin-top: ${r.sp6};
2547
+ `;x.div`
2548
+ display: flex;
2549
+ flex-direction: column;
2550
+ gap: ${r.sp2};
2551
+ min-width: 0;
2552
+ `;const fw=x.div``;x.div`
2553
+ display: flex;
2554
+ align-items: center;
2555
+ flex: 1;
2556
+ min-width: 0;
2557
+ height: ${r.sp6};
2558
+ padding: ${r.sp2} 12px;
2559
+ border-radius: ${r.sp2};
2560
+ box-sizing: border-box;
2561
+ background-color: ${e=>e.theme.colors.background};
2562
+ `;const xw=x.div`
2563
+ display: flex;
2564
+ flex-direction: column;
2565
+ gap: ${r.sp2};
2566
+ margin-top: ${r.sp1};
2567
+ `,yw=x.div`
2568
+ width: 100%;
2569
+ box-sizing: border-box;
2570
+ `,Cw=x.div`
2571
+ display: flex;
2572
+ align-items: center;
2573
+ gap: ${r.sp3};
2574
+ `,bw=x.div`
2575
+ display: flex;
2576
+ align-items: center;
2577
+ flex: 1;
2578
+ min-width: 0;
2579
+ padding: ${r.sp3} ${r.sp3};
2580
+ background-color: ${e=>e.theme.colors.grey5};
2581
+ border: 1px solid ${e=>e.theme.colors.grey3};
2582
+ border-radius: ${r.sp2};
2583
+ box-shadow: ${e=>e.theme.colors.elevation1};
2584
+ `,ww=x.div`
2585
+ flex: 2;
2586
+ display: flex;
2587
+ align-items: center;
2588
+ gap: ${r.sp1};
2589
+ min-width: 0;
2590
+ `,vw=x.div`
2591
+ display: flex;
2592
+ flex-direction: row;
2593
+ column-gap: ${r.sp2};
2594
+ align-items: center;
2595
+ min-width: 0;
2596
+ flex: 1;
2597
+ `,Sw=x.div`
2598
+ flex: 1;
2599
+ min-width: 0;
2600
+ padding: ${r.sp0} ${r.sp5};
2601
+ `,kw=x.div`
2602
+ flex: 1;
2603
+ min-width: 0;
2604
+ padding: ${r.sp0} ${r.sp5};
2605
+ text-align: right;
2606
+ `;function Du(){return $e.getLocalizedStrings().dateFormat.visual.MMMDCommaYYYYformat}function $w(e){return e.format(Du())}function Ou(e){if(e==null||String(e).trim()==="")return"";const n=String(e).trim(),a=Du(),i=ni(n);return i!=null&&typeof i.isValid=="function"&&i.isValid()?i.format(a):n}function Mu(e,n){return Kr("0,0.[00]",e,function(a){if(a==null||a==="")return"";if(!/^[A-Z]{3}$/.test(a))return a;try{return new Intl.NumberFormat("en",{style:"currency",currency:a,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??a}catch{return a}}(n))}const{common:{texts:{vendor:Ew,amount:Tw,date:jw}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:cr}}}=$e.getLocalizedStrings(),Nw=({hasCandidates:e,interactionLocked:n=!1,isLoadingMore:a,isSearching:i,manualSearchNextPageToken:f,searchResults:C,selectedTransactionId:o,onClearSelection:l,onSearch:m,onSelectionChange:S,onLoadMore:w})=>{const[h,s]=d.useState(""),v=d.useRef(null),b=d.useRef(null),T=d.useRef(!1),u=d.useCallback(j=>{const[D]=j;n!==!0&&D.isIntersecting&&f!=null&&a!==!0&&i!==!0&&w!=null&&w()},[n,a,i,f,w]);d.useEffect(()=>{const j=v.current,D=b.current;if(j==null||D==null||f==null||w==null)return;const M=new IntersectionObserver(u,{root:j,rootMargin:"120px"});return M.observe(D),()=>M.disconnect()},[u,f,w,C?.length]),d.useEffect(()=>{const j=v.current,D=b.current;if(j==null||D==null||f==null||w==null)return void(T.current=a===!0);const M=T.current===!0&&a!==!0;if(T.current=a===!0,!M)return;const _=j.getBoundingClientRect(),I=D.getBoundingClientRect();I.top<_.bottom&&I.bottom>_.top&&I.left<_.right&&I.right>_.left&&requestAnimationFrame(()=>{w()})},[a,f,w,C?.length]);const p=d.useCallback(j=>{n||j.key==="Enter"&&h.trim().length>=2&&m(h.trim())},[n,h,m]),E=d.useCallback(j=>{if(n)return;const D=j.target.value;s(D);const M=D.trim();M.length>=2?m(M):m("")},[n,m]),$=d.useCallback(()=>{n||(s(""),l(),m(""))},[n,l,m]);return t.jsxs(_w,{hasCandidates:e,$interactionLocked:n,children:[t.jsx(Iw,{children:t.jsx(bi,{children:e?cr.orSearchManually:cr.searchManually})}),t.jsxs(Rw,{children:[t.jsx(Aw,{}),t.jsx(Lw,{type:"text",placeholder:cr.searchByVendorDateAmount,value:h,onChange:E,onKeyDown:p,disabled:n,"data-testid":re("manual-search-input")}),h.length>0?t.jsx(Dw,{type:"button",disabled:n,onClick:$,children:t.jsx(Ow,{})}):null]}),C!=null&&C.length>0?t.jsxs(Mw,{children:[t.jsxs(Pw,{children:[t.jsx(dr,{style:{flex:2},children:t.jsx(lt,{children:Ew})}),t.jsx(dr,{children:t.jsx(lt,{children:jw})}),t.jsx(dr,{style:{textAlign:"right"},children:t.jsx(lt,{children:Tw})})]}),t.jsxs(ua,{ref:v,children:[C.map(j=>t.jsxs(Fw,{onClick:()=>{n||S(j.transactionId,j.transactionType)},"data-testid":re("search-result",j.transactionId),children:[t.jsx(zw,{children:t.jsx(Hw,{type:"radio",name:"manual-search-result",checked:o===j.transactionId,disabled:n,onChange:()=>{n||S(j.transactionId,j.transactionType)}})}),t.jsxs(Bw,{isSelected:o===j.transactionId,children:[t.jsxs(Uw,{children:[t.jsx(Si,{photoUrl:j.vendorLogo??"",styles:{width:r.sp4,height:r.sp4,borderRadius:"50%"},placeholder:{width:W[4],height:W[4]},fallbackAvatar:t.jsx(kn,{name:j.vendorName,size:r.sp4})}),t.jsx(it,{text:j.vendorName,maxWidth:"120px"})]}),t.jsx(Vw,{children:t.jsx(ot,{children:Ou(j.transactionDate)})}),t.jsx(Ww,{children:t.jsx(ot,{children:Mu(j.amount,j.currencyCode)})})]})]},j.transactionId)),f!=null?t.jsx(Kw,{ref:b,"aria-hidden":!0}):null]})]}):i===!0?t.jsx(gw,{}):null]})},_w=x.div`
2607
+ display: flex;
2608
+ flex-direction: column;
2609
+ gap: ${r.sp2};
2610
+ padding-top: ${e=>e.hasCandidates?r.sp4:r.sp0};
2611
+ pointer-events: ${e=>e.$interactionLocked?"none":"auto"};
2612
+ opacity: ${e=>e.$interactionLocked?.65:1};
2613
+ `,Iw=x.div``,Rw=x.div`
2614
+ display: flex;
2615
+ align-items: center;
2616
+ gap: ${r.sp1};
2617
+ height: ${r.sp6};
2618
+ padding: ${r.sp2} 12px;
2619
+ border-radius: ${r.sp2};
2620
+ background-color: ${e=>e.theme.colors.background};
2621
+ box-sizing: border-box;
2622
+ `,Aw=x(Dh)`
2623
+ width: ${r.sp3};
2624
+ height: ${r.sp3};
2625
+ color: ${e=>e.theme.colors.hero};
2626
+ flex-shrink: 0;
2627
+ `,Lw=x(Oh)`
2628
+ flex: 1;
2629
+ border: none;
2630
+ outline: none;
2631
+ color: ${e=>e.theme.colors.grey1};
2632
+ background-color: transparent;
2633
+ `,Dw=x.button`
2634
+ display: flex;
2635
+ align-items: center;
2636
+ justify-content: center;
2637
+ background: none;
2638
+ border: none;
2639
+ cursor: pointer;
2640
+ padding: 0;
2641
+ flex-shrink: 0;
2642
+ `,Ow=x(ko)`
2643
+ width: ${r.sp3};
2644
+ height: ${r.sp3};
2645
+ color: ${e=>e.theme.colors.hero};
2646
+
2647
+ &:hover {
2648
+ color: ${e=>e.theme.colors.primary};
2649
+ }
2650
+ `,Mw=x.div`
2651
+ display: flex;
2652
+ flex-direction: column;
2653
+ gap: ${r.sp3};
2654
+ margin-top: ${r.sp2};
2655
+ margin-left: -${r.sp5};
2656
+ `,Pw=x.div`
2657
+ display: flex;
2658
+ align-items: center;
2659
+ padding: ${r.sp0} ${r.sp3};
2660
+ margin-left: ${r.sp5};
2661
+ `,dr=x.div`
2662
+ flex: 1;
2663
+ color: ${e=>e.theme.colors.hero};
2664
+ `,Fw=x.div`
2665
+ display: flex;
2666
+ align-items: center;
2667
+ gap: ${r.sp2};
2668
+ cursor: pointer;
2669
+ `,Bw=x.div`
2670
+ display: flex;
2671
+ align-items: center;
2672
+ flex: 1;
2673
+ padding: ${r.sp3} ${r.sp3};
2674
+ background-color: ${e=>e.theme.colors.grey5};
2675
+ border: 1px solid
2676
+ ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey3};
2677
+ border-radius: ${r.sp2};
2678
+ box-shadow: ${e=>e.theme.colors.elevation1};
2679
+ transition: border-color 0.15s ease;
2680
+
2681
+ &:hover {
2682
+ border-color: ${e=>e.theme.colors.primary};
2683
+ }
2684
+ `,zw=x.div`
2685
+ flex-shrink: 0;
2686
+ display: flex;
2687
+ align-items: center;
2688
+ `,Hw=x.input`
2689
+ accent-color: ${e=>e.theme.colors.primary};
2690
+ width: ${r.sp3};
2691
+ height: ${r.sp3};
2692
+ cursor: pointer;
2693
+ `,Uw=x.div`
2694
+ flex: 2;
2695
+ display: flex;
2696
+ align-items: center;
2697
+ gap: ${r.sp1};
2698
+ `,Vw=x.div`
2699
+ flex: 1;
2700
+ color: ${e=>e.theme.colors.hero};
2701
+ `,Ww=x.div`
2702
+ flex: 1;
2703
+ text-align: right;
2704
+ `,Kw=x.div`
2705
+ height: 1px;
2706
+ width: 100%;
2707
+ flex-shrink: 0;
2708
+ `,{common:{texts:{vendor:Gw,amount:Yw,date:qw}},uncategorizedTransactionList:{missingReceipt:{bulkUpload:Lc}}}=$e.getLocalizedStrings(),Jw=({attachmentId:e,candidates:n,selectedTransactionId:a,interactionLocked:i=!1,onSelectionChange:f})=>{const C=[...n].sort((l,m)=>m.matchScore-l.matchScore),o=n.length===1?Lc.possibleMatch:Lc.possibleMatches.replace("__count__",n.length.toString());return t.jsxs(Zw,{$interactionLocked:i,children:[t.jsx(Qw,{children:t.jsx(bi,{children:o})}),t.jsxs(Xw,{children:[t.jsx(ur,{style:{flex:2},children:t.jsx(lt,{children:Gw})}),t.jsx(ur,{children:t.jsx(lt,{children:qw})}),t.jsx(ur,{style:{textAlign:"right"},children:t.jsx(lt,{children:Yw})})]}),t.jsx(ua,{children:C.map(l=>t.jsxs(ev,{onClick:()=>f(l.transactionId,l.transactionType),"data-testid":re("candidate-row",l.transactionId),children:[t.jsx(nv,{children:t.jsx(iv,{type:"radio",name:`match-${e}`,checked:a===l.transactionId,onChange:()=>f(l.transactionId,l.transactionType)})}),t.jsxs(tv,{isSelected:a===l.transactionId,children:[t.jsxs(ov,{children:[t.jsx(Si,{photoUrl:l.vendorLogo??"",styles:{width:r.sp4,height:r.sp4,borderRadius:"50%"},placeholder:{width:W[4],height:W[4]},fallbackAvatar:t.jsx(kn,{name:l.vendorName,size:r.sp4})}),t.jsx(it,{text:l.vendorName,maxWidth:"120px"})]}),t.jsx(rv,{children:t.jsx(ot,{children:Ou(l.transactionDate)})}),t.jsx(av,{children:t.jsx(ot,{children:Mu(l.amount,l.currencyCode)})})]})]},l.transactionId))})]})},Zw=x.div`
2709
+ display: flex;
2710
+ flex-direction: column;
2711
+ gap: ${r.sp3};
2712
+ pointer-events: ${e=>e.$interactionLocked?"none":"auto"};
2713
+ opacity: ${e=>e.$interactionLocked?.65:1};
2714
+ `,Qw=x.div``,Xw=x.div`
2715
+ display: flex;
2716
+ align-items: center;
2717
+ padding: ${r.sp0} ${r.sp3};
2718
+ `,ur=x.div`
2719
+ flex: 1;
2720
+ color: ${e=>e.theme.colors.hero};
2721
+ `,ev=x.div`
2722
+ display: flex;
2723
+ align-items: center;
2724
+ gap: ${r.sp2};
2725
+ cursor: pointer;
2726
+ `,tv=x.div`
2727
+ display: flex;
2728
+ align-items: center;
2729
+ flex: 1;
2730
+ padding: ${r.sp3} ${r.sp3};
2731
+ background-color: ${e=>e.theme.colors.grey5};
2732
+ border: 1px solid
2733
+ ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey3};
2734
+ border-radius: ${r.sp2};
2735
+ box-shadow: ${e=>e.theme.colors.elevation1};
2736
+ transition: border-color 0.15s ease;
2737
+
2738
+ &:hover {
2739
+ border-color: ${e=>e.theme.colors.primary};
2740
+ }
2741
+ `,nv=x.div`
2742
+ flex-shrink: 0;
2743
+ display: flex;
2744
+ align-items: center;
2745
+ `,iv=x.input`
2746
+ accent-color: ${e=>e.theme.colors.primary};
2747
+ width: ${r.sp3};
2748
+ height: ${r.sp3};
2749
+ cursor: pointer;
2750
+ `,ov=x.div`
2751
+ flex: 2;
2752
+ display: flex;
2753
+ align-items: center;
2754
+ gap: ${r.sp1};
2755
+ `,rv=x.div`
2756
+ flex: 1;
2757
+ color: ${e=>e.theme.colors.hero};
2758
+ `,av=x.div`
2759
+ flex: 1;
2760
+ text-align: right;
2761
+ `,qt=new Map,hr=new Map;function sv(e,n){const a=qt.get(e);a!=null&&a!==n&&URL.revokeObjectURL(a),qt.delete(e),qt.set(e,n),function(){for(;qt.size>48;){const i=qt.keys().next().value;if(i===void 0)break;const f=qt.get(i);qt.delete(i),f!=null&&URL.revokeObjectURL(f)}}()}function Pu(e){return function(n){const a=qt.get(n);return a!=null&&(qt.delete(n),qt.set(n,a)),a}(e)}function lv(e,n,a,i){const f=Pu(e);if(f!=null)return Promise.resolve(f);const C=hr.get(e);if(C!=null)return C;const o=function(l,m){return fetch(l,{method:"GET",headers:{"zeni-user-id":m.userId,"zeni-tenant-id":m.tenantId,"zeni-session-id":m.sessionId}}).then(S=>{if(!S.ok)throw new Error(`File fetch failed: ${S.status}`);return S.blob()})}(n,a).then(l=>{const m=URL.createObjectURL(l);return sv(e,m),m}).finally(()=>{hr.delete(e)});return hr.set(e,o),o}const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:cv}}}=$e.getLocalizedStrings(),dv=$e.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;function Dc({title:e,windowSize:n,onDeleteClick:a,deleteDataTestId:i}){const f=a!=null;return t.jsxs(gv,{children:[t.jsx(mv,{children:e}),f?t.jsx(fv,{className:"actionIcons",children:n==="small"?t.jsx(yv,{"data-testid":i,onClick:C=>{C.stopPropagation(),a?.()}}):t.jsx(Se,{enterDelay:600,display:"flex",title:dv.delete,placement:"top",children:t.jsx(xv,{"data-testid":i,onClick:C=>{C.stopPropagation(),a?.()}})})}):null]})}const uv=({authParams:e,attachmentTitle:n,attachmentId:a,fileDownloadUrl:i,filename:f,filePreviewUrl:C,onDeleteClick:o})=>{const[l,m]=d.useState(!1),S=Ie(),w=function(p,E,$){const[j,D]=d.useState(null);return d.useLayoutEffect(()=>{if(p==null)return void D(null);const M=function(A,P,K){return P!=null&&P!==""?`${A}::att::${P}`:`${A}::url::${K}`}(E.tenantId,$,p),_=Pu(M);if(_!=null)return void D(_);let I=!1;return lv(M,p,E).then(A=>{I||D(A)}).catch(A=>{(A instanceof Error?A.name:"")!=="AbortError"&&console.error("Failed to fetch file with auth:",A)}),()=>{I=!0}},[p,E.userId,E.tenantId,E.sessionId,$,E]),j}(i,e,a),h=C??w,s=w??C,v=function(p){return p.toLowerCase().endsWith(".pdf")}(f),b=re("receipt-card-delete",a??f),T=d.useCallback(()=>{s!=null&&m(!0)},[s]),u=d.useCallback(()=>{m(!1)},[]);return v&&s!=null?t.jsxs(t.Fragment,{children:[t.jsx(hv,{"data-testid":re("receipt-pdf-preview",f),children:t.jsx(pa,{fileUrl:s,isFullScreen:!1,setShowFullScreenView:m,showTitlebar:!0,pdfTitle:n,showTitlebarIcon:o!=null,showReplaceIcon:!1,onDeleteClick:o,deleteAttachmentDataTestId:o!=null?b:void 0})}),l?fi.createPortal(t.jsxs(Oc,{children:[t.jsxs(Mc,{children:[t.jsx(ga,{children:f}),t.jsx(Pc,{onClick:u,"data-testid":re("close-receipt-preview",f),children:t.jsx(Fc,{})})]}),t.jsx(Ot,{onClickAway:u,children:t.jsx(Bc,{children:t.jsx(pa,{fileUrl:s,isFullScreen:!0,setShowFullScreenView:m,onCrossClick:u})})})]}),document.body):null]}):h!=null&&h!==""?t.jsxs(t.Fragment,{children:[t.jsxs(pv,{windowSize:S,children:[t.jsx(Dc,{title:n,windowSize:S,onDeleteClick:o,deleteDataTestId:b}),t.jsx(Cv,{children:t.jsx(bv,{src:h,alt:f,onClick:T,"data-testid":re("receipt-img-preview",f)})})]}),l&&s!=null?fi.createPortal(t.jsxs(Oc,{children:[t.jsxs(Mc,{children:[t.jsx(ga,{children:f}),t.jsx(Pc,{onClick:u,"data-testid":re("close-receipt-preview",f),children:t.jsx(Fc,{})})]}),t.jsx(Ot,{onClickAway:u,children:t.jsx(Bc,{children:t.jsx(Sv,{src:s,alt:f})})})]}),document.body):null]}):t.jsxs(wv,{windowSize:S,children:[t.jsx(Dc,{title:n,windowSize:S,onDeleteClick:o,deleteDataTestId:b}),t.jsx(vv,{children:t.jsx(ot,{children:cv.noPreview})})]})},hv=x.div`
2762
+ width: 100%;
2763
+ min-height: 300px;
2764
+ max-height: 650px;
2765
+ overflow: hidden;
2766
+ background-color: ${e=>e.theme.colors.grey3};
2767
+ border-radius: 0;
2768
+ `,pv=x.div`
2769
+ display: flex;
2770
+ flex-direction: column;
2771
+ width: 100%;
2772
+ min-height: 300px;
2773
+ overflow: hidden;
2774
+ box-sizing: border-box;
2775
+ padding: ${r.sp3};
2776
+ cursor: pointer;
2777
+ background-color: ${e=>e.theme.colors.grey3};
2778
+ border-radius: 0;
2779
+
2780
+ .actionIcons {
2781
+ ${e=>e.windowSize==="small"&&`
2782
+ display: flex;
2783
+ `}
2784
+ }
2785
+ &:hover {
2786
+ .actionIcons {
2787
+ display: flex;
2788
+ }
2789
+ }
2790
+ `,gv=x.div`
2791
+ position: sticky;
2792
+ background: ${e=>e.theme.colors.grey3};
2793
+ z-index: 1;
2794
+ width: 100%;
2795
+ top: 0;
2796
+ display: flex;
2797
+ flex-direction: row;
2798
+ justify-content: space-between;
2799
+ align-items: center;
2800
+ padding-bottom: ${r.sp3};
2801
+ cursor: default;
2802
+ flex-shrink: 0;
2803
+ `,mv=x(ud)``,fv=x.div`
2804
+ display: none;
2805
+ flex-direction: row;
2806
+ `,xv=x(Td)`
2807
+ cursor: pointer;
2808
+ width: ${r.sp3};
2809
+ height: ${r.sp3};
2810
+ color: ${e=>e.theme.colors.grey1};
2811
+ :hover {
2812
+ color: ${xe.important};
2813
+ }
2814
+ `,yv=x(Td)`
2815
+ cursor: pointer;
2816
+ width: ${r.sp3};
2817
+ height: ${r.sp3};
2818
+ color: ${xe.important};
2819
+ `,Cv=x.div`
2820
+ box-sizing: border-box;
2821
+ width: 100%;
2822
+ flex: 1;
2823
+ min-height: 0;
2824
+ display: flex;
2825
+ align-items: center;
2826
+ justify-content: center;
2827
+ overflow: auto;
2828
+ max-height: 650px;
2829
+ `,bv=x.img`
2830
+ width: 100%;
2831
+ height: auto;
2832
+ object-fit: contain;
2833
+ cursor: pointer;
2834
+ display: block;
2835
+ max-height: 650px;
2836
+ `,wv=x.div`
2837
+ width: 100%;
2838
+ min-height: 300px;
2839
+ max-height: 650px;
2840
+ display: flex;
2841
+ flex-direction: column;
2842
+ box-sizing: border-box;
2843
+ padding: ${r.sp3};
2844
+ background-color: ${e=>e.theme.colors.grey3};
2845
+ border-radius: 0;
2846
+ color: ${e=>e.theme.colors.grey2};
2847
+
2848
+ .actionIcons {
2849
+ ${e=>e.windowSize==="small"&&`
2850
+ display: flex;
2851
+ `}
2852
+ }
2853
+ &:hover {
2854
+ .actionIcons {
2855
+ display: flex;
2856
+ }
2857
+ }
2858
+ `,vv=x.div`
2859
+ flex: 1;
2860
+ display: flex;
2861
+ align-items: center;
2862
+ justify-content: center;
2863
+ min-height: 200px;
2864
+ `,Oc=x.div`
2865
+ position: fixed;
2866
+ top: 0;
2867
+ left: 0;
2868
+ width: 100%;
2869
+ height: 100%;
2870
+ z-index: 1201;
2871
+ display: flex;
2872
+ flex-direction: column;
2873
+ background: ${xe.overlayDark};
2874
+ `,Mc=x.div`
2875
+ width: 100%;
2876
+ height: 59px;
2877
+ display: flex;
2878
+ align-items: center;
2879
+ justify-content: space-between;
2880
+ padding: ${r.sp0} ${r.sp8};
2881
+ color: ${xe.neutralGrey5Light};
2882
+ box-sizing: border-box;
2883
+ flex-shrink: 0;
2884
+ `,Pc=x.button`
2885
+ background: none;
2886
+ border: none;
2887
+ cursor: pointer;
2888
+ padding: ${r.sp0};
2889
+ display: flex;
2890
+ align-items: center;
2891
+ `,Fc=x(ko)`
2892
+ width: ${r.sp4};
2893
+ height: ${r.sp4};
2894
+ color: ${xe.neutralGrey5Light};
2895
+
2896
+ &:hover {
2897
+ color: ${xe.primaryDark};
2898
+ }
2899
+ `,Bc=x.div`
2900
+ flex: 1;
2901
+ display: flex;
2902
+ align-items: center;
2903
+ justify-content: center;
2904
+ overflow: auto;
2905
+ max-width: 90%;
2906
+ margin: 0 auto;
2907
+ `,Sv=x.img`
2908
+ max-width: 100%;
2909
+ max-height: 100%;
2910
+ object-fit: contain;
2911
+ `,{uncategorizedTransactionList:{missingReceipt:{bulkUpload:zc}}}=$e.getLocalizedStrings(),Hc=({authParams:e,file:n,index:a,isLoadingMoreManualSearch:i,isSearching:f,manualSearchUiResetKey:C=0,isConfirmMatchInProgress:o=!1,manualSearchNextPageToken:l,manualSearchTotalCount:m,selectedTransactionId:S,onClearSelection:w,onDelete:h,onLoadMoreManualSearch:s,onSearchTransactions:v,onSelectionChange:b,searchResults:T})=>{const u=n.status==="possible_matches",p=n.status==="no_match",E=u&&n.candidates!=null&&n.candidates.length>0,$=Ie(),j=n.candidates?.map(_=>({amount:_.transaction.amount.amount,currencyCode:_.transaction.amount.currencySymbol||_.transaction.amount.currencyCode||"",matchScore:_.matchScore,transactionDate:$w(_.transaction.date),transactionId:_.transaction.id,transactionType:_.transaction.type??"",vendorName:_.transaction.vendorName??"",vendorLogo:_.transaction.logo?.href})),D=d.useCallback((_,I)=>{o||b(_,I)},[o,b]),M=`${n.attachmentId}-${C}`;return t.jsxs(kv,{windowSize:$,"data-testid":re("receipt-card",n.attachmentId),children:[t.jsx($v,{children:t.jsx(Ev,{children:t.jsx(uv,{authParams:e,attachmentId:n.attachmentId,attachmentTitle:`#${a+1} ${n.filename}`,fileDownloadUrl:n.fileDownloadUrl,filename:n.filename,filePreviewUrl:n.filePreviewUrl,onDeleteClick:h!=null?()=>h(n.attachmentId):void 0})})}),t.jsxs(Tv,{children:[E&&j!=null?t.jsx(Jw,{attachmentId:n.attachmentId,candidates:j,interactionLocked:o,selectedTransactionId:S,onSelectionChange:D}):null,p?t.jsxs(jv,{children:[t.jsx(Nv,{children:t.jsx(bi,{children:zc.noPossibleMatch})}),t.jsx(_v,{children:t.jsx(ot,{children:zc.noMatchFound})})]}):null,u||p?t.jsx(Nw,{hasCandidates:E,interactionLocked:o,isLoadingMore:i,isSearching:f,manualSearchNextPageToken:l,manualSearchTotalCount:m,searchResults:T,selectedTransactionId:S,onClearSelection:w,onLoadMore:s,onSearch:v??(()=>{}),onSelectionChange:D},M):null]})]})},kv=x.div`
2912
+ display: grid;
2913
+ grid-template-columns: ${e=>e.windowSize==="small"?"1fr":"1fr 1fr"};
2914
+ grid-template-rows: ${e=>e.windowSize==="small"?"1fr 1fr 1fr 1fr":"auto"};
2915
+ align-items: start;
2916
+ gap: ${r.sp4};
2917
+ min-width: 0;
2918
+ `,$v=x.div`
2919
+ display: flex;
2920
+ flex-direction: column;
2921
+ min-width: 0;
2922
+ max-width: 94%;
2923
+ `,Ev=x.div`
2924
+ display: flex;
2925
+ flex-direction: column;
2926
+ width: 100%;
2927
+ background-color: ${e=>e.theme.colors.grey3};
2928
+ border-radius: ${r.sp2};
2929
+ overflow: hidden;
2930
+ max-height: 650px;
2931
+ `,Tv=x.div`
2932
+ display: flex;
2933
+ flex-direction: column;
2934
+ min-width: 0;
2935
+ gap: ${r.sp5};
2936
+ margin-top: ${r.sp3};
2937
+ `,jv=x.div`
2938
+ display: flex;
2939
+ flex-direction: column;
2940
+ gap: ${r.sp3};
2941
+ `,Nv=x.div`
2942
+ color: ${e=>e.theme.colors.primary};
2943
+ `,_v=x.div`
2944
+ display: flex;
2945
+ align-items: center;
2946
+ justify-content: center;
2947
+ padding: ${r.sp4} ${r.sp0};
2948
+ width: 100%;
2949
+ background-color: ${e=>e.theme.colors.background};
2950
+ border-radius: ${r.sp2};
2951
+ color: ${e=>e.theme.colors.grey1};
2952
+ `,Iv=()=>t.jsx(Rv,{children:t.jsxs(Av,{children:[t.jsxs(Lv,{children:[t.jsx(Mv,{children:t.jsx(gt,{width:286,height:27,style:{display:"block",borderRadius:r.sp1}})}),t.jsx(Dv,{children:t.jsx(Ov,{children:t.jsx(Pv,{children:t.jsx(Pn,{size:"Large",start:!0})})})})]}),t.jsx(Fv,{children:t.jsx(pw,{})})]})}),Rv=x.div`
2953
+ display: flex;
2954
+ flex-direction: column;
2955
+ flex: 1;
2956
+ min-height: 0;
2957
+ width: 100%;
2958
+ `,Av=x.div`
2959
+ display: grid;
2960
+ grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
2961
+ align-items: start;
2962
+ gap: ${r.sp7};
2963
+ width: 100%;
2964
+ min-width: 0;
2965
+ `,Lv=x.div`
2966
+ display: flex;
2967
+ flex-direction: column;
2968
+ min-width: 0;
2969
+ `,Dv=x.div`
2970
+ display: flex;
2971
+ flex-direction: column;
2972
+ width: 100%;
2973
+ background-color: ${e=>e.theme.colors.grey3};
2974
+ border-radius: ${r.sp2};
2975
+ overflow: hidden;
2976
+ `,Ov=x.div`
2977
+ display: flex;
2978
+ flex-direction: column;
2979
+ width: 100%;
2980
+ min-height: 480px;
2981
+ max-height: 540px;
2982
+ box-sizing: border-box;
2983
+ padding: ${r.sp3};
2984
+ margin-top: ${r.sp6};
2985
+ background-color: ${e=>e.theme.colors.grey3};
2986
+ `,Mv=x.div`
2987
+ display: flex;
2988
+ align-items: center;
2989
+ padding-bottom: ${r.sp3};
2990
+ flex-shrink: 0;
2991
+ margin-top: ${r.sp4};
2992
+ `,Pv=x.div`
2993
+ flex: 1;
2994
+ min-height: 200px;
2995
+ display: flex;
2996
+ align-items: center;
2997
+ justify-content: center;
2998
+ background-color: ${e=>e.theme.colors.grey5};
2999
+ border: 1px solid ${e=>e.theme.colors.grey3};
3000
+ border-radius: ${r.sp2};
3001
+ box-sizing: border-box;
3002
+ color: ${e=>e.theme.colors.grey1};
3003
+ `,Fv=x.div`
3004
+ display: flex;
3005
+ flex-direction: column;
3006
+ gap: ${r.sp5};
3007
+ min-width: 0;
3008
+ margin-top: ${r.sp8};
3009
+ `,{uncategorizedTransactionList:{missingReceipt:{bulkUpload:Uc}}}=$e.getLocalizedStrings(),Bv=({authParams:e,unmatchedFiles:n,pastUnmatchedFiles:a,hasMoreBatchDetails:i,isLoading:f,isLoadingMore:C,isLoadingMoreManualSearch:o,isSearching:l,manualSearchNextPageToken:m,manualSearchTotalCount:S,manualSearchUiResetKey:w=0,isConfirmMatchInProgress:h=!1,pendingMatchAttachmentId:s,pendingMatchTransactionId:v,onDelete:b,onLoadMoreBatchDetails:T,onLoadMoreManualSearch:u,onPendingMatchChange:p,onSearchTransactions:E,manualSearchResultsAttachmentId:$,scrollRoot:j,searchResults:D})=>{const M=d.useRef(null),_=d.useRef(!1),[I,A]=d.useState(null),P=$??I,K=d.useCallback((c,N)=>{h||(N.trim().length>=2&&A(c),E?.(N))},[h,E]);d.useEffect(()=>{$==null&&(D?.length??0)===0&&l!==!0&&A(null)},[D,l,$]);const X=d.useCallback(c=>{const[N]=c;N.isIntersecting&&i===!0&&C!==!0&&T?.()},[i,C,T]);if(d.useEffect(()=>{if(f===!0||j==null)return;const c=M.current;if(c==null)return;const N=new IntersectionObserver(X,{root:j,rootMargin:"200px"});return N.observe(c),()=>N.disconnect()},[X,f,j]),d.useEffect(()=>{if(f===!0||j==null||i!==!0)return void(_.current=C===!0);const c=_.current===!0&&C!==!0;if(_.current=C===!0,!c)return;const N=M.current;if(N==null)return;const k=j.getBoundingClientRect(),y=N.getBoundingClientRect();y.top<k.bottom&&y.bottom>k.top&&y.left<k.right&&y.right>k.left&&requestAnimationFrame(()=>{T?.()})},[f,C,i,j,T]),f===!0)return t.jsx(Iv,{});const te=n.length>0,Z=a!=null&&a.length>0;if(!te&&!Z&&i!==!0&&C!==!0){const{title:c,subTitle:N}=nt("missing_receipts").allDoneText;return t.jsx(zv,{children:t.jsx(Uv,{children:t.jsx(Ht,{tab:"missing_receipts",title:c,subTitle:N})})})}const B=Z,O=Uc.unmatchedReceipts.replace("__count__",n.length.toString()),g=n.length>0;return t.jsxs(Hv,{children:[g?t.jsxs(Kv,{children:[t.jsx(Vc,{"aria-hidden":!0}),t.jsx(Gv,{children:O})]}):null,t.jsx(Vv,{children:t.jsxs(Wv,{children:[n.length>0?t.jsx(Wc,{children:n.map((c,N)=>t.jsx(Hc,{authParams:e,file:c,index:N,isLoadingMoreManualSearch:o,isSearching:l===!0&&P===c.attachmentId,manualSearchNextPageToken:m,manualSearchTotalCount:S,selectedTransactionId:s===c.attachmentId?v:null,onClearSelection:()=>p(null),onDelete:b,onLoadMoreManualSearch:u,onSearchTransactions:E!=null?k=>K(c.attachmentId,k):void 0,onSelectionChange:(k,y)=>{h||p({batchId:c.batchId,attachmentId:c.attachmentId,fileName:c.filename,transactionId:k,transactionType:y})},searchResults:P===c.attachmentId?D:void 0,manualSearchUiResetKey:w,isConfirmMatchInProgress:h},`${c.batchId}-${c.attachmentId}`))}):null,B?t.jsxs(t.Fragment,{children:[t.jsxs(Yv,{children:[t.jsx(Vc,{"aria-hidden":!0}),t.jsx(qv,{children:Uc.pastUnmatchedReceipts.replace("__count__",a.length.toString())})]}),t.jsx(Wc,{children:a.map((c,N)=>t.jsx(Hc,{authParams:e,file:c,index:n.length+N,isLoadingMoreManualSearch:o,isSearching:l===!0&&P===c.attachmentId,manualSearchNextPageToken:m,manualSearchTotalCount:S,selectedTransactionId:s===c.attachmentId?v:null,onClearSelection:()=>p(null),onDelete:b,onLoadMoreManualSearch:u,onSearchTransactions:E!=null?k=>K(c.attachmentId,k):void 0,onSelectionChange:(k,y)=>{h||p({batchId:c.batchId,attachmentId:c.attachmentId,fileName:c.filename,transactionId:k,transactionType:y})},searchResults:P===c.attachmentId?D:void 0,manualSearchUiResetKey:w,isConfirmMatchInProgress:h},`${c.batchId}-${c.attachmentId}`))})]}):null,t.jsx(Jv,{ref:M}),C===!0?t.jsx(Zv,{children:t.jsx(Pn,{size:"Small",start:!0})}):null]})})]})},zv=x.div`
3010
+ display: flex;
3011
+ flex-direction: column;
3012
+ flex: 1;
3013
+ overflow: hidden;
3014
+ align-self: stretch;
3015
+ width: 100%;
3016
+ min-height: 100%;
3017
+ background-color: ${e=>e.theme.colors.grey4};
3018
+ `,Hv=x.div`
3019
+ display: flex;
3020
+ flex-direction: column;
3021
+ flex: 0 0 auto;
3022
+ align-self: stretch;
3023
+ width: 100%;
3024
+ min-height: 100%;
3025
+ gap: ${r.sp3};
3026
+ overflow: visible;
3027
+ `,Uv=x.div`
3028
+ flex: 1;
3029
+ display: flex;
3030
+ flex-direction: column;
3031
+ min-height: 0;
3032
+ width: 100%;
3033
+ overflow: hidden;
3034
+ `,Vv=x.div`
3035
+ width: 100%;
3036
+ flex: 0 0 auto;
3037
+ align-self: stretch;
3038
+ `,Wv=x.div`
3039
+ position: relative;
3040
+ z-index: 1;
3041
+ display: flex;
3042
+ flex-direction: column;
3043
+ width: 100%;
3044
+ gap: ${r.sp3};
3045
+ `,Kv=x.div`
3046
+ display: flex;
3047
+ align-items: center;
3048
+ gap: ${r.sp2};
3049
+ position: relative;
3050
+ z-index: 1;
3051
+ width: 100%;
3052
+ margin-top: ${r.sp4};
3053
+ `,Vc=x(e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M22.7737 11.8149C22.781 14.6922 21.6539 17.4563 19.6368 19.5081C17.6197 21.5598 14.8751 22.7338 11.9982 22.7756C10.5931 22.7967 9.19783 22.5387 7.89323 22.0165C6.58864 21.4942 5.40071 20.7182 4.39835 19.7333C3.39598 18.7484 2.59913 17.5743 2.05399 16.2791C1.50886 14.9839 1.2263 13.5934 1.2227 12.1882C1.21466 9.31044 2.34142 6.54556 4.35861 4.49316C6.3758 2.44076 9.12077 1.26633 11.9982 1.22458C13.4035 1.20356 14.799 1.46178 16.1037 1.98426C17.4084 2.50673 18.5964 3.28306 19.5988 4.26821C20.6012 5.25337 21.398 6.42774 21.943 7.72322C22.488 9.0187 22.7704 10.4095 22.7737 11.8149Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12 13.8571V7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M11.9902 16.8164C11.9582 16.8169 11.9266 16.8238 11.8972 16.8367C11.8679 16.8496 11.8415 16.8682 11.8195 16.8915C11.7975 16.9148 11.7804 16.9423 11.7691 16.9723C11.7579 17.0023 11.7528 17.0342 11.7541 17.0662C11.7564 17.1305 11.7835 17.1914 11.8297 17.2361C11.8759 17.2809 11.9376 17.306 12.0019 17.3062C12.0339 17.3056 12.0655 17.2986 12.0947 17.2856C12.124 17.2727 12.1504 17.254 12.1723 17.2308C12.1943 17.2075 12.2114 17.1801 12.2227 17.1502C12.234 17.1203 12.2392 17.0884 12.238 17.0564C12.2361 16.9935 12.2103 16.9338 12.1659 16.8892C12.1215 16.8446 12.0619 16.8186 11.999 16.8164H11.9941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
3054
+ width: ${r.sp4};
3055
+ height: ${r.sp4};
3056
+ color: ${xe.important};
3057
+ flex-shrink: 0;
3058
+ `,Gv=x(Hr)`
3059
+ color: ${xe.important};
3060
+ `,Yv=x.div`
3061
+ display: flex;
3062
+ align-items: center;
3063
+ gap: ${r.sp2};
3064
+ color: ${xe.important};
3065
+ margin-top: ${r.sp9};
3066
+ position: relative;
3067
+ z-index: 1;
3068
+ width: 100%;
3069
+ `,qv=x(Hr)`
3070
+ color: ${xe.important};
3071
+ `,Wc=x.div`
3072
+ display: flex;
3073
+ flex-direction: column;
3074
+ flex-shrink: 0;
3075
+ border-radius: ${r.sp2};
3076
+ overflow: hidden;
3077
+ gap: ${r.sp11};
3078
+ `,Jv=x.div`
3079
+ height: 1px;
3080
+ width: 100%;
3081
+ `,Zv=x.div`
3082
+ display: flex;
3083
+ justify-content: center;
3084
+ padding: ${r.sp3};
3085
+ `,Qv=e=>{const{missingReceiptsTab:n,missingTransactionCount:a,bulkUploadSelector:i,selectedPeriod:f,authParams:C,bulkUploadEndpoint:o,onBulkUploadFiles:l,onFetchBulkUploadBatches:m,onPendingMatchChange:S,setMissingReceiptsTab:w,tableSectionProps:h,bulkUploadInteractions:s,missingReceiptsBulkUploadChromeInPageBody:v,missingReceiptsCompletedChromeInPageBody:b}=e,T=Ie(),[u,p]=d.useState(null),{isUploading:E,handleDragOver:$,handleDragLeave:j,handleDrop:D}=s,M=i?.phase,_=o!=null||l!=null,I=i?.manualSearch;d.useEffect(()=>{if(_&&M==="completed"){const g=(i?.unmatchedFiles.length??0)+(i?.pastUnmatchedFiles.length??0);a===0&&g===0?w("completed"):g>0&&w("unmatched")}},[_,M,a,i?.unmatchedFiles.length,i?.pastUnmatchedFiles.length,w]);const A=i?.completedTransactions?.fetchState?.fetchState,P=e.onFetchCompletedTransactions;d.useEffect(()=>{_&&n==="completed"&&f!=null&&A==="Not-Started"&&P?.()},[_,n,f,A,P]);const K=i?.batchListFetchState?.fetchState,X=Ru({bulkUploadSelector:i,isUploading:E}),te=d.useRef(null);d.useEffect(()=>{if(!_||f==null)return;const g={month:f.month,tenantId:C.tenantId,year:f.year},c=te.current,N=c!=null&&(c.month!==g.month||c.tenantId!==g.tenantId||c.year!==g.year),k=()=>{te.current=g};if(M!=="uploading"&&M!=="matching"&&(M==="completed"||n==="unmatched")){if(N)return m?.({cacheOverride:!0,invalidateBatchDetailsCache:!0}),void k();if(K==="Not-Started")return m?.(),void k();k()}},[_,M,n,f,K,C.tenantId,m]),d.useEffect(()=>{n!=="unmatched"&&S(null)},[n,S]);const Z=_&&n==="unmatched"&&i!=null&&T!=="small",B=i!=null&&(i.unmatchedFiles.length>0||(i.pastUnmatchedFiles?.length??0)>0),O=Z&&X!==!0&&B;return t.jsxs(Xv,{ref:p,windowSize:T,onDragOver:_?$:void 0,onDragLeave:_?j:void 0,onDrop:_?D:void 0,children:[v,b,n==="missing"?t.jsx(t2,{windowSize:T,children:t.jsx($u,{...h.parentProps,isCOTEnabled:h.isCOTEnabled,setIsJeAccountSettingsOpened:h.setIsJeAccountSettingsOpened,setResetJeAccountSettingsForm:h.setResetJeAccountSettingsForm,allThreadsSectionOpen:h.allThreadsSectionOpen,setCurrentFooterFormId:h.setCurrentFooterFormId,currentFooterFormId:h.currentFooterFormId,onCloseAllThreadsSection:h.onCloseAllThreadsSection})}):null,_&&n==="unmatched"&&i!=null?t.jsx(e2,{$desktopRail:O,"data-testid":O?re("unmatched-page-splitter"):void 0,children:t.jsx(Bv,{authParams:e.authParams,unmatchedFiles:i.unmatchedFiles,pastUnmatchedFiles:i.pastUnmatchedFiles,manualSearchUiResetKey:i.manualSearchUiResetKey??0,isConfirmMatchInProgress:i.confirmMatchStatus.fetchState==="In-Progress",isLoading:X,isLoadingMore:i.batchDetailsPaginationState.fetchState==="In-Progress",hasMoreBatchDetails:i.hasMoreBatchDetails,isLoadingMoreManualSearch:I?.isLoadingMore===!0,isSearching:I?.fetchState.fetchState==="In-Progress"&&I?.isLoadingMore!==!0,manualSearchNextPageToken:I?.nextPageToken,manualSearchTotalCount:I?.totalCount,searchResults:i.manualSearch.results,manualSearchResultsAttachmentId:i.manualSearch.attachmentId,pendingMatchAttachmentId:e.pendingMatchAttachmentId,pendingMatchTransactionId:e.pendingMatchTransactionId,onDelete:e.onDeleteUnmatchedReceipt,onLoadMoreBatchDetails:e.onFetchMoreBatchDetails,onPendingMatchChange:S,onLoadMoreManualSearch:e.onLoadMoreManualSearch,onSearchTransactions:e.onSearchTransactionsForManualMatch,scrollRoot:u})}):null,_&&n==="completed"&&i!=null?t.jsx(iw,{authParams:e.authParams,transactionAttachmentsEndpoint:e.transactionAttachmentsEndpoint??"",transactions:i.completedTransactions.transactions,totalCount:i.completedTransactions.totalCount,nextPageToken:i.completedTransactions.nextPageToken,fetchState:i.completedTransactions.fetchState,sortKey:i.sortKey,sortOrder:i.sortOrder,onMissingReceiptsRowClick:e.onMissingReceiptsRowClick,onSortConfigChanged:e.onSetBulkUploadSortConfig,onSortReset:e.onResetBulkUploadSort,onFetchMore:g=>e.onFetchCompletedTransactions?.(g)}):null]})},vo={contentPadding:new ge(W[3],W[6],W[8])},Xv=x("div",{shouldForwardProp:e=>e!=="windowSize"})`
3086
+ display: flex;
3087
+ flex-direction: column;
3088
+ flex: 1;
3089
+ min-height: 0;
3090
+ width: 100%;
3091
+ position: relative;
3092
+ overflow-x: hidden;
3093
+ overflow-y: auto;
3094
+ /* Scroll works; scrollbar UI hidden (same pattern as DocumentRenderer) */
3095
+ scrollbar-width: none;
3096
+ -ms-overflow-style: none;
3097
+ &::-webkit-scrollbar {
3098
+ display: none;
3099
+ }
3100
+ padding-left: ${e=>vo.contentPadding.valuePx(e.windowSize)};
3101
+ padding-right: ${e=>vo.contentPadding.valuePx(e.windowSize)};
3102
+ box-sizing: border-box;
3103
+ `,e2=x.div`
3104
+ display: flex;
3105
+ flex-direction: column;
3106
+ flex: 0 0 auto;
3107
+ align-self: stretch;
3108
+ width: 100%;
3109
+ min-height: 100%;
3110
+ position: relative;
3111
+ z-index: 0;
3112
+
3113
+ & > * {
3114
+ position: relative;
3115
+ z-index: 1;
3116
+ }
3117
+
3118
+ ${e=>e.$desktopRail===!0?`
3119
+ background-image: linear-gradient(
3120
+ to right,
3121
+ transparent 0,
3122
+ transparent calc(48% - 0.5px),
3123
+ ${e.theme.colors.grey3} calc(48% - 0.5px),
3124
+ ${e.theme.colors.grey3} calc(48% + 0.5px),
3125
+ transparent calc(48% + 0.5px),
3126
+ transparent 100%
3127
+ );
3128
+ background-repeat: no-repeat;
3129
+ background-size: 100% 100%;
3130
+ `:""}
3131
+ `,t2=x.div`
3132
+ margin-left: -${e=>vo.contentPadding.valuePx(e.windowSize)};
3133
+ margin-right: -${e=>vo.contentPadding.valuePx(e.windowSize)};
3134
+ flex: 1;
3135
+ display: flex;
3136
+ `;function Kc({children:e,onDragLeave:n,onDragOver:a,onDrop:i}){return t.jsx("div",{style:{width:"100%"},onDragLeave:n,onDragOverCapture:a,onDrop:i,children:e})}function Fu(e,n,a,i){const f=n===1?a:i;return e.replace("__count__",String(n)).replace("__receiptWord__",f)}const{uncategorizedTransactionList:{missingReceipt:{bulkUpload:pr}}}=$e.getLocalizedStrings(),n2=({total:e})=>{const n=Fu(pr.autoMatchingReceipts,e,pr.receiptWordSingular,pr.receiptWordPlural);return t.jsx(o2,{children:t.jsxs(r2,{children:[t.jsx(a2,{}),t.jsx(s2,{children:n})]})})},i2=Ti`
3137
+ 0% {
3138
+ background-position: -200% center;
3139
+ }
3140
+ 100% {
3141
+ background-position: 200% center;
3142
+ }
3143
+ `,o2=x.div`
3144
+ position: relative;
3145
+ display: flex;
3146
+ align-items: center;
3147
+ height: ${r.sp8};
3148
+ background-color: ${e=>e.theme.colors.grey5};
3149
+ border: 1px solid transparent;
3150
+ border-radius: ${r.sp2};
3151
+ box-sizing: border-box;
3152
+ overflow: hidden;
3153
+ margin-top: ${r.sp3};
3154
+ &::before {
3155
+ content: "";
3156
+ position: absolute;
3157
+ inset: 0;
3158
+ border-radius: ${r.sp2};
3159
+ pointer-events: none;
3160
+ background: ${xe.receiptAgentLinearGradient};
3161
+ padding: 1px;
3162
+ mask: ${xe.gradientMask};
3163
+ -webkit-mask: ${xe.gradientMask};
3164
+ -webkit-mask-composite: xor;
3165
+ mask-composite: exclude;
3166
+ z-index: 0;
3167
+ }
3168
+ `,r2=x.div`
3169
+ position: relative;
3170
+ display: flex;
3171
+ align-items: center;
3172
+ justify-content: center;
3173
+ width: 100%;
3174
+ gap: ${r.sp2};
3175
+ padding: 0 ${r.sp3};
3176
+ z-index: 1;
3177
+ `,a2=x($n)`
3178
+ width: ${r.sp3};
3179
+ height: ${r.sp3};
3180
+ color: ${xe.aiCfoGradient4};
3181
+ flex-shrink: 0;
3182
+ `,s2=x(Fe)`
3183
+ background: linear-gradient(
3184
+ 90deg,
3185
+ ${xe.aiCfoGradient4} 25%,
3186
+ ${xe.aiCfoGradient1} 50%,
3187
+ ${xe.aiCfoGradient4} 75%
3188
+ );
3189
+ background-size: 200% auto;
3190
+ background-clip: text;
3191
+ -webkit-background-clip: text;
3192
+ -webkit-text-fill-color: transparent;
3193
+ animation: ${i2} 2.5s ease-in-out infinite;
3194
+ `,ii=20,ha=["application/pdf","image/jpeg","image/png"],Bu=ha.join(","),l2=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:1088,height:378,viewBox:"0 0 1088 378",fill:"none",preserveAspectRatio:"none",...e},d.createElement("rect",{x:.5,y:.5,width:1087,height:377,rx:8,ry:8,fill:"none",stroke:"currentColor",strokeWidth:1,strokeDasharray:"8 8",vectorEffect:"non-scaling-stroke"})),{uncategorizedTransactionList:{missingReceipt:{bulkUpload:Gc}}}=$e.getLocalizedStrings(),c2=({onFilesSelected:e})=>{const n=d.useRef(null),[a,i]=d.useState(!0);Ch();const f=d.useCallback(l=>{l.preventDefault(),l.stopPropagation(),i(!1);const m=[],{files:S}=l.dataTransfer;for(let w=0;w<S.length;w+=1){const h=S.item(w);if(h==null)continue;const s=String(h.type);if(ha.some(v=>v===s)===!0&&(m.push(h),m.length>=ii))break}m.length>0&&e(m)},[e]),C=d.useCallback(l=>{l.preventDefault(),l.stopPropagation(),l.type==="dragenter"||l.type==="dragover"?i(!0):l.type==="dragleave"&&i(!1)},[]),o=d.useCallback(()=>{n.current?.click()},[]);return t.jsxs(d2,{onClick:o,onDrop:f,onDragEnter:C,onDragLeave:C,onDragOver:C,isDragActive:a,"data-testid":re("bulk-upload-inline-drop-zone"),children:[t.jsx(u2,{"aria-hidden":!0,children:t.jsx(l2,{})}),t.jsxs(h2,{children:[t.jsx(p2,{}),t.jsx(g2,{children:t.jsx(zr,{children:Gc.dropYourFilesHere})}),a?null:t.jsx(m2,{children:t.jsx(ud,{children:Gc.orBrowseFiles})})]}),t.jsx(f2,{ref:n,type:"file",multiple:!0,accept:Bu,onClick:l=>l.stopPropagation(),onChange:l=>{const m=l.target.files?Array.from(l.target.files):[];m.length>0&&e(m.slice(0,ii)),l.target.value=""}})]})},d2=x.div`
3195
+ display: flex;
3196
+ flex-direction: column;
3197
+ justify-content: center;
3198
+ align-items: center;
3199
+ min-height: ${e=>e.isDragActive?378:200}px;
3200
+ box-sizing: border-box;
3201
+ border-radius: ${r.sp2};
3202
+ margin: ${r.sp3} ${r.sp0};
3203
+ margin-bottom: ${e=>e.isDragActive?`calc(-178px + ${r.sp3})`:r.sp3};
3204
+ padding: ${r.sp4};
3205
+ background-color: ${e=>e.theme.colors.background};
3206
+ cursor: pointer;
3207
+ transition: all 0.3s ease;
3208
+ position: relative;
3209
+ z-index: ${e=>e.isDragActive?10:1};
3210
+ margin-top: ${r.sp3};
3211
+ `,u2=x.div`
3212
+ position: absolute;
3213
+ inset: 0;
3214
+ z-index: 0;
3215
+ pointer-events: none;
3216
+ border-radius: inherit;
3217
+ overflow: hidden;
3218
+ color: ${e=>e.theme.colors.grey1};
3219
+
3220
+ svg {
3221
+ display: block;
3222
+ width: 100%;
3223
+ height: 100%;
3224
+ }
3225
+ `,h2=x.div`
3226
+ position: relative;
3227
+ z-index: 1;
3228
+ display: flex;
3229
+ flex-direction: column;
3230
+ align-items: center;
3231
+ justify-content: center;
3232
+ flex-grow: 1;
3233
+ gap: ${r.sp2};
3234
+ `,p2=x(Ap)`
3235
+ width: ${r.sp8};
3236
+ height: ${r.sp8};
3237
+ color: ${e=>e.theme.colors.hero};
3238
+ margin-bottom: ${r.sp2};
3239
+ `,g2=x.div`
3240
+ color: ${e=>e.theme.colors.hero};
3241
+ text-align: center;
3242
+ `,m2=x.div`
3243
+ color: ${e=>e.theme.colors.primary};
3244
+ `,f2=x.input`
3245
+ display: none;
3246
+ `,x2=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:1088,height:56,viewBox:"0 0 1088 56",fill:"none",preserveAspectRatio:"none",...e},d.createElement("rect",{x:.5,y:.5,width:1087,height:55,rx:8,ry:8,fill:"none",stroke:"currentColor",strokeWidth:1,strokeDasharray:"8 8",vectorEffect:"non-scaling-stroke"})),Yc="receipts@zeni.ai",{uncategorizedTransactionList:{missingReceipt:{bulkUpload:lo}},common:{copyToClipBoard:co}}=$e.getLocalizedStrings(),y2=({onFilesSelected:e})=>{const n=d.useRef(null),[a,i]=d.useState(!1),[f,C]=d.useState(0),[o,l]=d.useState(!1),[m,S]=d.useState(0),[w,h]=d.useState(!1);d.useEffect(()=>{const p=window.setInterval(()=>{C(E=>{const $=(E+1)%3;return E===2&&$===0&&l(!0),$})},2e3);return()=>window.clearInterval(p)},[]),d.useEffect(()=>{if(!o)return;const p=requestAnimationFrame(()=>{l(!1)});return()=>cancelAnimationFrame(p)},[o]),d.useEffect(()=>{if(f===1)return h(!1),void S(360);h(!0),S(0);const p=requestAnimationFrame(()=>{h(!1)});return()=>cancelAnimationFrame(p)},[f]);const s=d.useCallback(p=>{p.stopPropagation(),navigator.clipboard.writeText(Yc).then(()=>{i(!0),setTimeout(()=>i(!1),2e3)})},[]),v=d.useCallback(()=>{n.current?.click()},[]),b=d.useCallback(p=>{p.preventDefault(),p.stopPropagation();const E=[],{files:$}=p.dataTransfer;for(let j=0;j<$.length;j+=1){const D=$.item(j);if(D==null)continue;const M=String(D.type);if(ha.some(_=>_===M)===!0&&(E.push(D),E.length>=ii))break}E.length>0&&e(E)},[e]),T=d.useCallback(p=>{p.preventDefault()},[]),u=()=>t.jsxs(k2,{children:[t.jsx(qc,{children:lo.emailBannerUploadLead}),t.jsx(Fr,{children:lo.emailBannerUploadSuffix}),t.jsxs($2,{children:[t.jsx(S2,{children:Yc}),t.jsx(Se,{display:"inline-flex",placement:"top",title:a?co.copied:co.copy,enterDelay:300,leaveDelay:0,children:t.jsx(E2,{type:"button","aria-label":a?co.copied:co.copy,onClick:s,children:a?t.jsx(j2,{}):t.jsx(T2,{})})})]})]});return t.jsxs(b2,{onClick:v,onDrop:b,onDragOver:T,children:[t.jsx(C2,{"aria-hidden":!0,children:t.jsx(x2,{})}),t.jsx(w2,{children:t.jsxs(v2,{$phase:f,$skipTransition:o,children:[t.jsx(gr,{children:u()}),t.jsx(gr,{children:t.jsxs(N2,{children:[t.jsx(_2,{$deg:m,$skipTransition:w,"aria-hidden":!0,children:t.jsx(I2,{})}),t.jsx(qc,{children:lo.emailBannerAiLead}),t.jsx(Fr,{children:lo.emailBannerAiTail})]})}),t.jsx(gr,{children:u()})]})}),t.jsx(R2,{ref:n,type:"file",multiple:!0,accept:Bu,onClick:p=>p.stopPropagation(),onChange:p=>{const E=p.target.files?Array.from(p.target.files):[];E.length>0&&e(E.slice(0,ii)),p.target.value=""}})]})},C2=x.div`
3247
+ position: absolute;
3248
+ inset: 0;
3249
+ z-index: 0;
3250
+ pointer-events: none;
3251
+ border-radius: inherit;
3252
+ overflow: hidden;
3253
+ color: ${e=>e.theme.colors.grey1};
3254
+
3255
+ svg {
3256
+ display: block;
3257
+ width: 100%;
3258
+ height: 100%;
3259
+ }
3260
+ `,b2=x.div`
3261
+ position: relative;
3262
+ display: flex;
3263
+ align-items: center;
3264
+ justify-content: center;
3265
+ gap: ${r.sp2};
3266
+ padding: ${r.sp3};
3267
+ box-sizing: border-box;
3268
+ cursor: pointer;
3269
+ border: none;
3270
+ border-radius: ${r.sp2};
3271
+ background-color: ${e=>e.theme.colors.background};
3272
+ isolation: isolate;
3273
+ margin-top: ${r.sp3};
3274
+ /* Stack frame (first child) under content; avoid Emotion component selectors
3275
+ * in parent rules — Storybook Vite preview omits @emotion/babel-plugin. */
3276
+ > *:not(:first-child) {
3277
+ position: relative;
3278
+ z-index: 1;
3279
+ }
3280
+ `,w2=x.div`
3281
+ flex: 1;
3282
+ min-width: 0;
3283
+ height: ${r.sp4};
3284
+ overflow: hidden;
3285
+ `,v2=x.div`
3286
+ display: flex;
3287
+ flex-direction: column;
3288
+ transition: ${e=>e.$skipTransition?"none":"transform 400ms ease-in-out"};
3289
+ transform: translateY(${e=>`-${e.$phase*W[4]}px`});
3290
+ `,gr=x.div`
3291
+ flex-shrink: 0;
3292
+ height: ${r.sp4};
3293
+ line-height: ${r.sp4};
3294
+ display: flex;
3295
+ align-items: center;
3296
+ justify-content: center;
3297
+ `,zu=x.span`
3298
+ font-family: ${Lh};
3299
+ font-size: ${r.sp3};
3300
+ line-height: ${r.sp4};
3301
+ letter-spacing: 0;
3302
+ color: ${e=>e.theme.colors.primary};
3303
+ text-decoration: none;
3304
+ border-bottom: none;
3305
+ box-shadow: none;
3306
+ `,qc=x(zu)`
3307
+ font-weight: ${oi.medium};
3308
+ `,Fr=x(zu)`
3309
+ font-weight: ${oi.regular};
3310
+ `,S2=x(Fr)`
3311
+ text-decoration: underline;
3312
+ text-decoration-color: ${xe.neutralGrey2Light};
3313
+ text-underline-offset: 0.15em;
3314
+ border-bottom: none;
3315
+ box-shadow: none;
3316
+ `,k2=x.span`
3317
+ display: inline-flex;
3318
+ align-items: center;
3319
+ flex-wrap: nowrap;
3320
+ gap: 0.3em;
3321
+ max-width: 100%;
3322
+ min-width: 0;
3323
+ white-space: nowrap;
3324
+ overflow: hidden;
3325
+ text-overflow: ellipsis;
3326
+ `,$2=x.span`
3327
+ display: inline-flex;
3328
+ align-items: center;
3329
+ align-self: center;
3330
+ gap: 0.35em;
3331
+ flex-shrink: 0;
3332
+ `,E2=x.button`
3333
+ display: inline-flex;
3334
+ align-items: center;
3335
+ justify-content: center;
3336
+ padding: 0;
3337
+ margin: 0;
3338
+ border: none;
3339
+ background: transparent;
3340
+ cursor: pointer;
3341
+ line-height: 1;
3342
+ flex-shrink: 0;
3343
+ `,T2=x(Cd)`
3344
+ width: ${r.sp3};
3345
+ height: ${r.sp3};
3346
+ flex-shrink: 0;
3347
+ color: ${e=>e.theme.colors.primary};
3348
+ `,j2=x(Ah)`
3349
+ width: ${r.sp3};
3350
+ height: ${r.sp3};
3351
+ flex-shrink: 0;
3352
+ color: ${xe.success};
3353
+ `,N2=x.div`
3354
+ display: inline-flex;
3355
+ align-items: center;
3356
+ justify-content: center;
3357
+ gap: 0.35em;
3358
+ min-width: 0;
3359
+ max-width: 100%;
3360
+ white-space: nowrap;
3361
+ overflow: hidden;
3362
+ text-overflow: ellipsis;
3363
+ `,_2=x.div`
3364
+ display: inline-flex;
3365
+ align-items: center;
3366
+ justify-content: center;
3367
+ flex-shrink: 0;
3368
+ align-self: center;
3369
+ transition: ${e=>e.$skipTransition?"none":"transform 1200ms ease-in-out"};
3370
+ transform: rotate(${e=>e.$deg}deg);
3371
+ `,I2=x($n)`
3372
+ width: ${r.sp3};
3373
+ height: ${r.sp3};
3374
+ flex-shrink: 0;
3375
+ display: block;
3376
+ color: ${e=>e.theme.colors.primary};
3377
+ `,R2=x.input`
3378
+ display: none;
3379
+ `,A2=({isDraggingFiles:e,onFilesSelected:n,policyDescription:a,showEmailOrDropZone:i})=>t.jsxs(L2,{children:[i?e?t.jsx(c2,{onFilesSelected:n}):t.jsx(y2,{onFilesSelected:n}):null,a.trim().length>0?t.jsx(D2,{children:t.jsx(Fe,{children:a})}):null]}),L2=x.div`
3380
+ display: flex;
3381
+ flex-direction: column;
3382
+ width: 100%;
3383
+ `,D2=x.div`
3384
+ text-align: center;
3385
+ padding: ${r.sp4} ${r.sp4};
3386
+ color: ${e=>e.theme.colors.hero};
3387
+ `,{uncategorizedTransactionList:{missingReceipt:{bulkUpload:mr}}}=$e.getLocalizedStrings(),fr=3e4,O2=({fileCount:e,percentage:n=0})=>{const[a,i]=d.useState(0);d.useEffect(()=>{const o=performance.now(),l=()=>{const S=performance.now()-o;i(function(w){return w<=fr?w/fr*99:w<=6e4?99+(w-fr)/3e4*1:100}(S))};l();const m=window.setInterval(l,100);return()=>window.clearInterval(m)},[]);const f=Math.min(100,Math.max(a,n)),C=Fu(mr.uploadingReceipts,e,mr.receiptWordSingular,mr.receiptWordPlural);return t.jsxs(M2,{children:[t.jsx(P2,{children:t.jsx(F2,{style:{width:`${f}%`}})}),t.jsx(B2,{children:t.jsx(z2,{children:C})})]})},M2=x.div`
3388
+ position: relative;
3389
+ display: flex;
3390
+ align-items: center;
3391
+ height: ${r.sp8};
3392
+ margin: ${r.sp3} ${r.sp3} ${r.sp0};
3393
+ background-color: ${e=>e.theme.colors.grey5};
3394
+ border: 1px solid ${xe.success};
3395
+ border-radius: ${r.sp2};
3396
+ overflow: hidden;
3397
+ `,P2=x.div`
3398
+ position: absolute;
3399
+ inset: 0;
3400
+ overflow: hidden;
3401
+ `,F2=x.div`
3402
+ height: 100%;
3403
+ background-color: ${xe.successLight};
3404
+ transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
3405
+ `,B2=x.div`
3406
+ position: relative;
3407
+ display: flex;
3408
+ align-items: center;
3409
+ justify-content: center;
3410
+ width: 100%;
3411
+ padding: 0 ${r.sp3};
3412
+ `,z2=x(Fe)`
3413
+ color: ${xe.success};
3414
+ `,Jc=({bulkUploadPhase:e,isDraggingFiles:n,isUploading:a,matchingProgressBannerTotal:i,onFilesSelected:f,policyDescription:C,showEmailOrDropZone:o,uploadError:l,uploadFileCount:m,uploadProgressPercent:S})=>t.jsxs(H2,{children:[a?t.jsx(O2,{fileCount:m,percentage:S}):null,l==null||a?null:t.jsx(U2,{children:l}),e==="matching"?t.jsx(n2,{total:i}):null,t.jsx(A2,{isDraggingFiles:n,onFilesSelected:f,policyDescription:C,showEmailOrDropZone:o})]}),H2=x.div`
3415
+ display: flex;
3416
+ flex-direction: column;
3417
+ width: 100%;
3418
+ `,U2=x(ph)`
3419
+ padding: ${r.sp2} ${r.sp3};
3420
+ margin: ${r.sp2} ${r.sp0} ${r.sp0};
3421
+ background-color: ${xe.importantLight};
3422
+ border: 1px solid ${xe.important};
3423
+ border-radius: ${r.sp2};
3424
+ color: ${xe.important};
3425
+ text-align: center;
3426
+ `,{uncategorizedTransactionList:{missingReceipt:{bulkUpload:ei}}}=$e.getLocalizedStrings(),V2=[{id:"all",label:ei.completedSubTabAll},{id:"ai_accountant",label:ei.completedSubTabAiAccountant},{id:"manual",label:ei.completedSubTabManual}],Zc=({activeSubTab:e,totalCount:n,onSubTabChange:a,completedTransactionsFetchState:i,completedTransactionsLoadedCount:f=0})=>{const C=i?.fetchState,o=(f>0||i!=null&&C!=="Not-Started"&&C!=="In-Progress")&&n>0,l=d.useMemo(()=>{switch(e){case"all":default:return ei.completedDescriptionAll;case"ai_accountant":return ei.completedDescriptionAi.replace("__count__",n.toString());case"manual":return ei.completedDescriptionManual}},[e,n]);return t.jsxs(W2,{children:[t.jsx(K2,{children:V2.map(m=>t.jsx(G2,{isActive:e===m.id,onClick:()=>{a(m.id)},children:t.jsx(ot,{children:m.label})},m.id))}),o?t.jsxs(Y2,{children:[e==="ai_accountant"?t.jsx(q2,{}):null,t.jsx(J2,{children:t.jsx(Fe,{children:l})})]}):null]})},W2=x.div`
3427
+ display: flex;
3428
+ flex-direction: column;
3429
+ width: 100%;
3430
+ margin-top: ${r.sp4};
3431
+ `,K2=x.div`
3432
+ display: flex;
3433
+ align-items: center;
3434
+ gap: ${r.sp3};
3435
+ padding-bottom: ${r.sp3};
3436
+ `,G2=x.button`
3437
+ box-sizing: border-box;
3438
+ padding: ${r.sp1} ${r.sp2};
3439
+ border-radius: ${r.sp1};
3440
+ border: 1px solid
3441
+ ${e=>e.isActive?e.theme.colors.primary:"transparent"};
3442
+ background-color: transparent;
3443
+ color: ${e=>e.isActive?e.theme.colors.primary:e.theme.colors.hero};
3444
+ cursor: ${e=>e.isActive?"default":"pointer"};
3445
+ transition:
3446
+ border-color 0.15s ease,
3447
+ color 0.15s ease;
3448
+
3449
+ &:hover {
3450
+ color: ${e=>e.theme.colors.primary};
3451
+ }
3452
+ `,Y2=x.div`
3453
+ display: flex;
3454
+ align-items: center;
3455
+ justify-content: center;
3456
+ gap: ${r.sp1};
3457
+ padding-bottom: ${r.sp4};
3458
+ `,q2=x($n)`
3459
+ width: ${r.sp3};
3460
+ height: ${r.sp3};
3461
+ flex-shrink: 0;
3462
+ `,J2=x.div`
3463
+ color: ${e=>e.theme.colors.champion};
3464
+ text-align: center;
3465
+ `;function Z2(e){const{authParams:n,bulkUploadEndpoint:a,onBulkUploadFilesFallback:i,onBulkUploadProgress:f,onBulkUploadSuccess:C}=e,[o,l]=d.useState(!1),[m,S]=d.useState(0),[w,h]=d.useState(!1),[s,v]=d.useState(null),b=d.useCallback(async E=>{const $=E.slice(0,ii);if(S($.length),l(!1),v(null),a!=null){h(!0);try{const j=await async function(D,M,_,I){const A=new FormData;_.forEach((P,K)=>{A.append(`attachment_file_${K}`,P);const X=JSON.stringify({file_name:P.name,content_type:P.type,size:P.size});A.append(`attachment_json_${K}`,X)});try{const P=await(await uh(D,{method:"POST",body:A,headers:{"zeni-user-id":M.userId,"zeni-tenant-id":M.tenantId,"zeni-session-id":M.sessionId}})).json();if(P.status.code>=200&&P.status.code<300)return P.data;throw console.error(`Bulk upload failed with ${P.status.message}`),I?.(P.status.message),new Error(`Bulk upload failed: ${P.status.message}`)}catch(P){throw console.error(`Bulk upload failed: ${JSON.stringify(P)}`),P}}(a,n,$,v);f?.(100),await new Promise(D=>{window.setTimeout(D,lp)}),C?.(j.batch_id)}catch{v("Upload failed. Please try again.")}finally{h(!1)}}else i?.($)},[a,n,f,C,i]),T=d.useCallback(E=>{E.preventDefault(),E.stopPropagation(),l(!0)},[]),u=d.useCallback(E=>{const $=E.relatedTarget,j=E.currentTarget;$&&j.contains($)||(E.preventDefault(),E.stopPropagation(),l(!1))},[]),p=d.useCallback(E=>{E.preventDefault(),E.stopPropagation();const $=Array.from(E.dataTransfer.files).slice(0,ii);$.length>0?b($):l(!1)},[b]);return{isDraggingFiles:o,uploadFileCount:m,isUploading:w,uploadError:s,handleBulkUploadFiles:b,handleDragOver:T,handleDragLeave:u,handleDrop:p}}const Q2=x.div`
3466
+ width: 100%;
3467
+ height: 100vh;
3468
+ display: flex;
3469
+ flex-direction: column;
3470
+ background: ${e=>e.theme.colors.grey4};
3471
+ box-shadow: ${e=>e.theme.colors.elevation1};
3472
+ `,X2=x.div`
3473
+ display: flex;
3474
+ flex-direction: column;
3475
+ align-items: center;
3476
+ min-width: 100%;
3477
+ min-height: 0;
3478
+ flex: 1;
3479
+
3480
+ ${e=>e.theme.breakpoints.down("md")} {
3481
+ width: 100%;
3482
+ padding-left: ${r.sp0};
3483
+ }
3484
+ `,Qc=x(hh)`
3485
+ height: ${r.sp3};
3486
+ width: ${r.sp3};
3487
+ cursor: pointer;
3488
+ color: inherit;
3489
+ `,Xc=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
3490
+ height: ${r.sp3};
3491
+ width: ${r.sp3};
3492
+ cursor: pointer;
3493
+ color: inherit;
3494
+ `,{common:{footer:qe,texts:{maxLimitReached:eS,confirmAction:tS},headers:Hu,create:nS,strings:hi,texts:Zn,cancel:iS,confirm:oS,monthsByIndex:rS},dateFormat:{visual:{MMMDCommaYYYYformat:ed}},expenseAutomation:ti,uncategorizedTransactionList:{missingReceipt:{bulkUpload:td}}}=$e.getLocalizedStrings(),aS=({setActivityLogTransactionId:e})=>{const{selectedTransactionId:n}=Eo(),a=kt(),[i,f]=d.useState(!1);return n==null?null:t.jsx(Se,{title:ti.transactions.header.activity,placement:"bottom",children:t.jsx($S,{"data-testid":re("panel-activity-button"),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onClick:C=>{C.stopPropagation(),e(n)},children:t.jsx(ES,{style:{color:i?a.colors.primary:a.colors.hero}})})})},o5=e=>{const{expenseAutomationViewSelector:n,isDisabled:a,isRealtimeInsightsFeatureEnabled:i,isUncategorizedExpenseCategoryEnabled:f,isCOTEnabled:C,onUpdateTab:o,onReconTabUpdate:l,onUpdateStep:m,onSearchTextChanged:S,onRefresh:w,onClose:h,onBack:s,onBulkUploadConfirmMatchAcknowledged:v,onClearMissingReceiptsTabNavigation:b,closeSidePanel:T,initialMissingReceiptsTab:u,resetTransactionCategorizationLocalData:p,updateOperatingExpensesIdsForReview:E,clearJeScheduleLocalData:$,onSaveReconciliation:j}=e,D=e.bulkUploadEndpoint!=null||e.onBulkUploadFiles!=null,M=Z2({authParams:e.authParams,bulkUploadEndpoint:e.bulkUploadEndpoint,onBulkUploadProgress:e.onBulkUploadProgress,onBulkUploadSuccess:e.onBulkUploadSuccess,onBulkUploadFilesFallback:e.onBulkUploadFiles}),{currentSelectedView:_,allSteps:I,missingReceipts:A,jeSchedules:P,fluxAnalysis:K,monthEndInsights:X,transactionView:te,selectedTransactionCategorizationTab:Z,reconciliation:B,selectedPeriod:O}=n,{pendingMissingReceiptsTabNavigation:g}=A,[c,N]=d.useState("expenseAutomationPage"),[k,y]=d.useState(()=>{}),[R,L]=d.useState(!1),z=Ie(),J=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),ee=J?yi:So,{openThread:U,setOpenThread:H}=d.useContext(ee),[V,G]=d.useState(!1),[ae,se]=d.useState(!1),[q,F]=d.useState(u??"missing"),Y=d.useRef(null);d.useEffect(()=>{const ze=Y.current;ze!==null&&ze!==q&&T?.(),Y.current=q},[q,T]);const Q=d.useCallback(ze=>{F(ze)},[]),[ne,oe]=d.useState(null),ie=d.useCallback(ze=>{oe(ze),N(ze!=null?"expenseAutomationMissingReceipts":"expenseAutomationPage")},[N]),de=e.bulkUploadSelector?.confirmMatchStatus.fetchState,he=d.useRef(void 0);d.useEffect(()=>{he.current==="In-Progress"&&de==="Completed"&&ne!=null&&(ie(null),v?.()),he.current=de},[de,ne,ie,v]),d.useEffect(()=>{q!=="unmatched"&&ie(null)},[q,ie]),d.useEffect(()=>{g==="unmatched"&&(D&&Q("unmatched"),b?.())},[g,b,D,Q]),d.useEffect(()=>{D===!1&&(q==="unmatched"||q==="completed")&&Q("missing")},[D,q,Q]);const ue=I.find(ze=>ze.step===_),{nextStep:Ce,previousStep:be}=cS(I,_),{uiState:{searchString:fe,pageToken:le},totalCountByTab:_e,transactions:ye,fetchStateByTransactionTabs:pe,transactionLocalData:ce}=te,{selectedReconAccount:me,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:Ee}}}}=B;let Le="Not-Started",De="complete";switch(_){case"missing_receipts":Le=A.refreshStatus.fetchState,De=A.completionStatus;break;case"je_schedules":Le=P.refreshStatus.fetchState,De=P.completionStatus;break;case"month_end_insights":X!=null&&(Le=X?.fetchState);break;case"flux_analysis":Le=K.refreshStatus.fetchState,De=K.completionStatus;break;case"transaction_categorization":Le=te.refreshStatus.fetchState,De=te.completionStatus;break;case"reconciliation":me==null?(Le=B.refreshStatus.fetchState,De=B.completionStatus):(Le=B.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",De=B.completionStatus)}const{saveStatus:We,selectedCheckBoxTransactionIds:ct}=te,{primaryBtn:Oe,cancelBtn:rt,leftSideComponent:Be}=(()=>{const ze=au(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds);switch(c){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:ze===!0?qe.markAsReviewed:Zn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:xr(n.fluxAnalysis.reviewOperatingExpensesIds.length,Fd,z,Zn.vendor,_),cancelBtn:{label:qe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{E([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:qe.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:We.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:xr(ct.length,mi,z,Zn.transaction,_),cancelBtn:{label:qe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{p(Z,ye.map(Me=>Me.id),O,!1,_e[Z],ba(ce,Z),f,le)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:qe.next,backBtnLabel:qe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:qe.next,style:{justifyContent:"space-evenly"},isDisabled:a||ue?.isNextDisabled,suffixIcon:t.jsx(Qc,{}),onClick:()=>{m(Ce.step)}},cancelBtn:{label:qe.back,isDisabled:a||ue?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Xc,{}),onClick:()=>{m(be.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:qe.reconcile,backBtnLabel:qe.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:qe.reconcile,onClick:()=>{j({reconcileAction:"reconcile"})},isDisabled:B.reconciliationTabsState.balances.variance.amount!==0,isLoading:B.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:xr(Ee.length,1/0,z,Zn.transaction,_),cancelBtn:{onClick:()=>{j({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:B.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:qe.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:qe.save,backBtnLabel:qe.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:qe.save,isLoading:P.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>{k()},label:qe.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};case"expenseAutomationMissingReceipts":return{formId:"expenseAutomationMissingReceipts",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:td.confirmMatch,isLoading:e.bulkUploadSelector?.confirmMatchStatus.fetchState==="In-Progress",isDisabled:ne==null||e.bulkUploadSelector?.confirmMatchStatus.fetchState==="In-Progress",style:{minWidth:"96px",justifyContent:"space-evenly"},onClick:()=>{ne!=null&&e.bulkUploadSelector?.confirmMatchStatus.fetchState!=="In-Progress"&&e.onConfirmBulkUploadMatch?.(ne.batchId,ne.attachmentId,ne.transactionId,ne.transactionType,ne.fileName)}},cancelBtn:{label:qe.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>ie(null)}};default:{const Me=_==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,jt=_==="reconciliation"&&n.reconciliation.selectedAccountId==null,Oi=_==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Mi=Ce.step==="month_end_insights"&&(_==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||jt),Pi=_==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",Mt=_==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",Fi=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(Ct=>Ct.id==="month_end_insights"),Bi=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&Fi?.isDisabled===!1&&(i||ue?.isNextDisabled===!1),zi=Ce.step!=="month_end_insights"||!jt&&_!=="flux_analysis"?ue?.isNextDisabled===!0:!Bi;return{formId:"expenseAutomationPage",nextBtnLabel:qe.next,backBtnLabel:qe.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Mi===!0?lS(n.selectedPeriod.month):qe.next,style:{justifyContent:"space-evenly"},isDisabled:zi,suffixIcon:t.jsx(Qc,{}),onClick:()=>{Pi?o("autoCategorized"):Me?l("reconcile"):m(Ce.step)}},cancelBtn:{label:qe.back,isDisabled:a||ue?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(Xc,{}),onClick:()=>{Mt?o("review"):Oi?l("review"):Me?s():m(be.step)}}}}}})(),{confirmAction:Tt}=(()=>{switch(c){case"expenseAutomationFluxPage":return{confirmAction:()=>{G(!1),E([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{G(!1),p(Z,ye.map(ze=>ze.id),O,!1,_e[Z],ba(ce,Z),f,le),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{G(!1),$(),h()}};default:return{confirmAction:()=>{G(!1)},confirmationDescription:hi.empty}}})(),Ke=_==="reconciliation"&&B.selectedAccountId!=null&&B.selectedReconAccount!=null,{month:Ut,year:At}=O,un=Id().set("month",Ut-1).set("year",At),hn=un.startOf("month").format(ed),pn=un.endOf("month").format(ed),ri=`${hn} ${hi.hyphen} ${pn}`,Xt=e.sidePanelIsOpen??!1,Vt=e.sidePanelIsFullView??!1,_i=_==="missing_receipts"&&q==="missing"&&D,ai=e.bulkUploadSelector?.phase,Ii=e.bulkUploadSelector?.progress.total!=null&&e.bulkUploadSelector.progress.total>0?e.bulkUploadSelector.progress.total:M.uploadFileCount,Ri=q==="completed"&&e.bulkUploadSelector!=null&&e.bulkUploadSelector.completedTransactions.fetchState.fetchState==="Completed"&&e.bulkUploadSelector.completedTransactions.totalCount===0,Ai={bulkUploadPhase:ai,isDraggingFiles:M.isDraggingFiles,isUploading:M.isUploading===!0,matchingProgressBannerTotal:Ii,onFilesSelected:M.handleBulkUploadFiles,policyDescription:Ri?"":td.policyDescription,showEmailOrDropZone:M.isUploading!==!0&&ai!=="matching",uploadError:M.uploadError,uploadFileCount:M.uploadFileCount,uploadProgressPercent:e.bulkUploadSelector?.uploadProgress??0},Li=_==="missing_receipts"&&q==="completed"&&D&&e.bulkUploadSelector!=null,Di={onDragLeave:M.handleDragLeave,onDragOver:M.handleDragOver,onDrop:M.handleDrop},_o=_i!==!0||Xt&&Vt?Li!==!0||Xt&&Vt||e.bulkUploadSelector==null?null:t.jsx(Zc,{activeSubTab:e.bulkUploadSelector.completedSubTab,completedTransactionsFetchState:e.bulkUploadSelector.completedTransactions.fetchState,completedTransactionsLoadedCount:e.bulkUploadSelector.completedTransactions.transactions.length,onSubTabChange:ze=>{e.onSetBulkUploadCompletedSubTab?.(ze)},totalCount:e.bulkUploadSelector.completedTransactions.totalCount}):t.jsx(Kc,{...Di,children:t.jsx(Jc,{...Ai})});return t.jsxs(Q2,{children:[V?t.jsx(ah,{containerStyle:{width:356},titleComponent:t.jsx(mS,{children:tS}),primaryButtonText:oS,secondaryButtonText:iS,proceedButtonVariant:"danger",action:{onOkClick:()=>{Tt()},onCancelClick:()=>G(!1)},descriptionComponent:t.jsx(fS,{children:ti.confirmationDescription})}):null,t.jsx(sh,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,panelActionBarContent:e.isTransactionActivityEnabled?t.jsx(aS,{setActivityLogTransactionId:e.setActivityLogTransactionId}):null,headerContent:t.jsx(D1,{hideEmptyDivBelowTabs:_==="missing_receipts",onBack:s,navBarCustomElement:_==="reconciliation"&&B.selectedAccountId!=null?t.jsx(sS,{reconciliation:B}):void 0,onReconTabUpdate:l,currentRecontab:B.selectedTab,bulkUploadPhase:e.bulkUploadSelector?.phase,currentMissingReceiptsTab:q,onMissingReceiptsTabUpdate:Q,reconcileDetailPageFetchState:B.selectedAccountId!=null?B.accountReconciliationsByAccountID[B.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:Ke?B.selectedAccountId:void 0,currentSelectedView:_,titleStyle:{justifyContent:"center",marginLeft:r.sp0},headerData:nt(_,_e.autoCategorized,Ke?B.selectedAccountId:void 0,Ke?B.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,Ke?ri:void 0,_==="missing_receipts"?{includeBulkUploadTabs:D,navTitle:D?Hu.receipts:void 0}:void 0),searchText:fe,currentTab:Z,getTabCountAndFetchState:ze=>{if(_==="transaction_categorization"&&(ze==="autoCategorized"||ze==="review")){const Me=ze;return{hideCountInTab:_e[Me]>ti.common.numbers.maximumCount,count:_e[Me],isFetching:pe[Me].fetchState==="In-Progress"}}if(_==="reconciliation"){const{reconciliation:Me}=n,{selectedAccountId:jt}=Me;return jt==null?{count:0,isFetching:!1}:ze==="review"?{count:Me.accountReconciliationsByAccountID[jt]?.accountReconEntity?.transactionsToReview.length,isFetching:Me.accountReconciliationsByAccountID[jt]?.transactionFetchState.fetchState==="In-Progress"}:{count:Me.accountReconciliationsByAccountID[jt]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Me.accountReconciliationsByAccountID[jt]?.transactionFetchState.fetchState==="In-Progress"}}if(_==="missing_receipts"){if(ze==="missing")return{count:A.transactions.length,isFetching:A.fetchState==="In-Progress"};if(ze==="unmatched")return{count:(e.bulkUploadSelector?.unmatchedFiles.length??0)+(e.bulkUploadSelector?.pastUnmatchedFiles.length??0),isFetching:q==="unmatched"&&Ru({bulkUploadSelector:e.bulkUploadSelector})};if(ze==="completed")return{count:e.bulkUploadSelector?.completedTransactions?.totalCount??0,isFetching:e.bulkUploadSelector?.completedTransactions?.fetchState?.fetchState==="In-Progress",hideCountInTab:!0}}},completionStatus:De,forceShowSubtitle:R===!0||_==="je_schedules"&&(P.fetchState==="In-Progress"||P.accountSettingsView.fetchState==="In-Progress"),refreshStatus:Le,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??hi.empty,isZeniUser:J,onAllThreadsClick:()=>{U!=null&&H(null),se(!0)},onUpdateTab:o,onSearchTextChanged:S,onRefresh:_==="missing_receipts"?()=>{switch(q){case"missing":e.onFetchMissingReceiptsList();break;case"unmatched":e.onFetchBulkUploadBatches?.({cacheOverride:!0,invalidateBatchDetailsCache:!0});break;case"completed":e.onFetchCompletedTransactions?.(void 0,!0)}}:w,onClose:()=>{c==="expenseAutomationFluxPage"||c==="expenseAutomationJESchedulePage"||c==="expenseAutomationTransactionsPage"?G(!0):h()},belowTabsSlot:_o}),listContent:t.jsxs(X2,{children:[_==="missing_receipts"?t.jsx(Qv,{missingReceiptsTab:q,missingTransactionCount:A.transactions.length,missingReceiptsBulkUploadChromeInPageBody:_i===!0&&Xt&&Vt?t.jsx(Kc,{...Di,children:t.jsx(Jc,{...Ai})}):null,missingReceiptsCompletedChromeInPageBody:Li===!0&&Xt&&Vt&&e.bulkUploadSelector!=null?t.jsx(Zc,{activeSubTab:e.bulkUploadSelector.completedSubTab,completedTransactionsFetchState:e.bulkUploadSelector.completedTransactions.fetchState,completedTransactionsLoadedCount:e.bulkUploadSelector.completedTransactions.transactions.length,onSubTabChange:ze=>{e.onSetBulkUploadCompletedSubTab?.(ze)},totalCount:e.bulkUploadSelector.completedTransactions.totalCount}):null,bulkUploadInteractions:M,bulkUploadSelector:e.bulkUploadSelector,selectedPeriod:O,authParams:e.authParams,bulkUploadEndpoint:e.bulkUploadEndpoint,transactionAttachmentsEndpoint:e.transactionAttachmentsEndpoint,onBulkUploadSuccess:e.onBulkUploadSuccess,onBulkUploadFiles:e.onBulkUploadFiles,onFetchBulkUploadBatches:e.onFetchBulkUploadBatches,onFetchMoreBatchDetails:e.onFetchMoreBatchDetails,onFetchCompletedTransactions:e.onFetchCompletedTransactions,onDeleteUnmatchedReceipt:e.onDeleteUnmatchedReceipt,onLoadMoreManualSearch:e.onLoadMoreManualSearch,onSearchTransactionsForManualMatch:e.onSearchTransactionsForManualMatch,onPendingMatchChange:ie,pendingMatchAttachmentId:ne?.attachmentId??null,pendingMatchTransactionId:ne?.transactionId??null,onMissingReceiptsRowClick:e.onMissingReceiptsRowClick,onSetBulkUploadCompletedSubTab:e.onSetBulkUploadCompletedSubTab,onSetBulkUploadSortConfig:e.onSetBulkUploadSortConfig,onResetBulkUploadSort:e.onResetBulkUploadSort,setMissingReceiptsTab:Q,tableSectionProps:{parentProps:e,isCOTEnabled:C,setIsJeAccountSettingsOpened:L,setResetJeAccountSettingsForm:y,allThreadsSectionOpen:ae,setCurrentFooterFormId:N,currentFooterFormId:c,onCloseAllThreadsSection:()=>se(!1)}}):t.jsx($u,{...e,isCOTEnabled:C,setIsJeAccountSettingsOpened:L,setResetJeAccountSettingsForm:y,allThreadsSectionOpen:ae,setCurrentFooterFormId:N,currentFooterFormId:c,onCloseAllThreadsSection:()=>se(!1)}),t.jsx(dt,{controller:_!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(sd,{style:{width:"-webkit-fill-available",maxHeight:W[8]},formId:dS(c),primaryBtn:Oe,leftSideComponent:Be,cancelBtn:rt,separatorStyle:{marginRight:r.sp4}})})]})})]})},sS=({reconciliation:e})=>{const n=kt(),{clearedBalance:a,variance:i,variancePercentage:f,deposits:C,payments:o}=e.reconciliationTabsState.balances,{balance:l}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:m}=e,{transactionFetchState:S}=m??{};return t.jsx(xS,{children:t.jsxs(yS,{children:[t.jsxs(yr,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(Cr,{children:t.jsx(CS,{})}),t.jsx(br,{children:S?.fetchState==="In-Progress"?t.jsxs(Sr,{children:[t.jsx(Gn,{height:25,width:120}),t.jsx(Gn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(vr,{children:pt("0,0.00",l)}),t.jsx(wr,{children:ti.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(yr,{children:[t.jsx(Cr,{children:t.jsx(wS,{})}),t.jsx(br,{children:S?.fetchState==="In-Progress"?t.jsxs(Sr,{children:[t.jsx(Gn,{height:25,width:120}),t.jsx(Gn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(vr,{children:pt("0,0.00",a)}),t.jsxs(SS,{children:[t.jsx(wr,{children:ti.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Se,{placement:"bottom",title:t.jsxs(kS,{children:[t.jsxs(nd,{children:[t.jsxs(id,{children:[o.count," ",Zn.payments]}),t.jsx(od,{children:pt("0,0.[00]",o.totalAmount)})]}),t.jsxs(nd,{children:[t.jsxs(id,{children:[C.count," ",Zn.deposits]}),t.jsx(od,{children:pt("0,0.[00]",C.totalAmount)})]})]}),display:"flex",children:t.jsx(vS,{})})]})]})})]}),t.jsxs(yr,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(Cr,{children:t.jsx(bS,{})}),t.jsx(br,{children:S?.fetchState==="In-Progress"?t.jsxs(Sr,{children:[t.jsx(Gn,{height:25,width:120}),t.jsx(Gn,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(vr,{children:[t.jsx("span",{style:{color:i.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:pt("0,0.00",i)}),f!=null&&i.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${f.toFixed(2)}%)`}):null]}),t.jsx(wr,{children:ti.accountRecon.reconciliation.headers.variance})]})})]})]})})},xr=(e,n,a,i,f)=>{const C=(e>1?i+"s":i)+" selected";return e>0?t.jsxs(uS,{currentView:f,style:a==="small"?{position:"absolute",top:r.sp2,left:`-${r.sp5}`}:{},children:[t.jsx(hS,{multiDigit:e>=5,children:e}),t.jsx(pS,{children:C}),e===n?t.jsx(gS,{children:`(${eS})`}):null]}):null},lS=e=>{const n=rS[e];return`${nS}${hi.space}${n}${hi.space}${Hu.insights}`};function cS(e,n){const a=e.findIndex(C=>C.step===n);if(a===-1)throw new Error("currentStep not found in allSteps array");const i=(a+1)%e.length,f=(a-1+e.length)%e.length;return{nextStep:e[i],previousStep:e[f]}}const dS=e=>`${e}_form`,uS=x.div`
3495
+ display: flex;
3496
+ justify-content: flex-start;
3497
+ align-items: center;
3498
+ gap: ${r.sp2};
3499
+ margin-left: ${e=>e.currentView==="flux_analysis"?"36px":r.sp8};
3500
+ `,hS=x(lt)`
3501
+ height: 18px;
3502
+ width: ${e=>e.multiDigit?"auto":"18px"};
3503
+ padding: ${r.sp0} 6px;
3504
+ border-radius: ${r.sp12};
3505
+ border: ${e=>`1px solid ${e.theme.colors.primary}`};
3506
+ display: flex;
3507
+ justify-content: center;
3508
+ align-items: center;
3509
+ `,pS=x(Fe)`
3510
+ color: ${e=>e.theme.colors.primary};
3511
+ `,gS=x(ot)`
3512
+ color: ${xe.important};
3513
+ `,mS=x(rh)`
3514
+ margin-top: ${r.sp5};
3515
+ padding-left: ${r.sp8};
3516
+ padding-right: ${r.sp8};
3517
+ color: ${e=>e.theme.colors.primary};
3518
+ word-break: break-word;
3519
+ `,fS=x(lh)`
3520
+ color: ${e=>e.theme.colors.primary};
3521
+ margin-top: ${r.sp2};
3522
+ margin-bottom: ${r.sp2};
3523
+ `,xS=x.div`
3524
+ display: flex;
3525
+ justify-content: center;
3526
+ align-items: center;
3527
+ padding: ${r.sp3} ${r.sp0};
3528
+ `,yS=x.div`
3529
+ width: 100%;
3530
+ display: flex;
3531
+ justify-content: center;
3532
+ align-items: center;
3533
+ gap: ${r.sp1};
3534
+ `,yr=x.div`
3535
+ display: flex;
3536
+ justify-content: center;
3537
+ align-items: center;
3538
+ gap: ${r.sp3};
3539
+ `,Cr=x.div`
3540
+ width: ${r.sp7};
3541
+ height: ${r.sp7};
3542
+ border-radius: 50%;
3543
+ display: flex;
3544
+ justify-content: center;
3545
+ align-items: center;
3546
+ background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
3547
+ `,br=x.div`
3548
+ display: flex;
3549
+ flex-direction: column;
3550
+ `,wr=x(ot)`
3551
+ color: ${e=>e.theme.colors.hero};
3552
+ `,vr=x(bi)`
3553
+ min-width: 180px;
3554
+ color: ${e=>e.theme.colors.primary};
3555
+ `,CS=x(xh)`
3556
+ color: ${e=>e.theme.colors.primary};
3557
+ width: ${r.sp4};
3558
+ height: ${r.sp4};
3559
+ `,bS=x(yh)`
3560
+ color: ${e=>e.theme.colors.primary};
3561
+ width: ${r.sp4};
3562
+ height: ${r.sp4};
3563
+ `,wS=x(e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
3564
+ color: ${e=>e.theme.colors.primary};
3565
+ width: ${r.sp4};
3566
+ height: ${r.sp4};
3567
+ `,vS=x(dd)`
3568
+ width: ${r.sp3};
3569
+ height: ${r.sp3};
3570
+ color: ${e=>e.theme.colors.hero};
3571
+ :hover {
3572
+ color: ${e=>e.theme.colors.primary};
3573
+ }
3574
+ `,SS=x.div`
3575
+ display: flex;
3576
+ align-items: center;
3577
+ gap: ${r.sp1};
3578
+ `,kS=x.div`
3579
+ background-color: ${xe.overlayDark};
3580
+ padding: 2px ${r.sp2};
3581
+ border-radius: ${r.sp1};
3582
+ `,nd=x.div`
3583
+ display: flex;
3584
+ justify-content: space-between;
3585
+ gap: ${r.sp2};
3586
+ `,id=x.div`
3587
+ text-transform: capitalize;
3588
+ `,od=x(ot)`
3589
+ color: ${xe.primaryDark};
3590
+ align-self: "flex-end";
3591
+ `,Gn=x(gt)`
3592
+ border-radius: ${r.sp2};
3593
+ `,Sr=x.div`
3594
+ display: flex;
3595
+ flex-direction: column;
3596
+ min-width: 180px;
3597
+ gap: ${r.sp1};
3598
+ `,$S=x.button`
3599
+ background: none;
3600
+ border: none;
3601
+ cursor: pointer;
3602
+ padding: ${r.sp1};
3603
+ border-radius: ${r.sp1};
3604
+ display: flex;
3605
+ align-items: center;
3606
+ justify-content: center;
3607
+
3608
+ &:hover {
3609
+ background: ${({theme:e})=>e.colors.grey4};
3610
+ }
3611
+ `,ES=x(bu)`
3612
+ width: ${r.sp4};
3613
+ height: ${r.sp4};
3614
+ `;export{mS as ConfirmationPopUpTitle,o5 as default,cS as getNextAndPreviousSteps,dS as uniqueFormName};