@zeniai/web-app-ui 4.14.28-qa → 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.
- package/dist/assets/{ACHDetailsPage-URcYg-_E-Cgyaw_bU.js → ACHDetailsPage-DdI8Zlpr-DP3Ijrzf.js} +6 -6
- package/dist/assets/{AIPerformancePage-VILPvNCr-Cwwj6J5d.js → AIPerformancePage-BCxF5hNI-DwsSzcsx.js} +15 -15
- package/dist/assets/AccountInfoPage-D_PrQwlp-DcHjYUET.js +18 -0
- package/dist/assets/{AccountInfoPageContent-g_X840C3-qxu9MQ5W.js → AccountInfoPageContent-jLGn4-UA-BlSpfvCV.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-C_ICPJ-z.js → AccountLockedInfoModal-CKODwo_y-D1V0TVL_.js} +8 -8
- package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-CMDZeEvJ.js → AccountReconDetailsDrawerPage-B2m7w0mL-C5Y15orT.js} +17 -17
- package/dist/assets/AccountRow-G9Hw9KCo-CT1w9ZhF.js +298 -0
- package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-BglIlica.js → AccountsPromoCardStack-C1-hQWvB-BQ8MpMFD.js} +17 -17
- package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--B4hUfY9b.js +6 -0
- package/dist/assets/{AddToWalletPage-BMCgd2A5-jP1yYMeJ.js → AddToWalletPage-BLdfTvYw-1DCwK82d.js} +15 -15
- package/dist/assets/AddressRoutes-BQkJFfvp.js +1 -0
- package/dist/assets/AddressScreen-Dl895CZ9.js +9 -0
- package/dist/assets/{AgingReportsPage-BL_aBNzL-BMEhVDXZ.js → AgingReportsPage-C6aasTzQ-C63SyJmI.js} +7 -7
- package/dist/assets/AiCfoScreen-IdwAAJXG.js +11 -0
- package/dist/assets/{AllUserItems-b0wgd0Wz-CZ891kMU.js → AllUserItems-CjeF5SWi-CeRsiH4z.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-CD2EkZkg-CoiRS4ai.js → ApAgingDetailPage-BWtvu1dO-Br56Wlkb.js} +4 -4
- package/dist/assets/AppBasePage-MKRsDpmx-DMLcxkrr.js +71 -0
- package/dist/assets/AppDrawerContent-DN2hf6ff-5NhbUBos.js +92 -0
- package/dist/assets/ApprovalRulesSettingsPage-0XbPzs2a-C8UoHZRv.js +47 -0
- package/dist/assets/ArAgingChart-DSx_E9ZM-RnIrRkZm.js +24 -0
- package/dist/assets/ArAgingDetailPage-C8h1id5v-HwBRgj9f.js +46 -0
- package/dist/assets/{AttachmentView-ENg9Osic-CFLP9uHu.js → AttachmentView-CqKnI6Xt-AOGCu7iZ.js} +7 -7
- package/dist/assets/BalancesInsightWithToolTip-CSaW4oJh-DywAYbnn.js +38 -0
- package/dist/assets/{BankAccountSection-oL-aN0I_-tuaETO0_.js → BankAccountSection-Dhp7GLZA-FNVqovjK.js} +5 -5
- package/dist/assets/BankAccountWarningSection-C_OfdR1O-BMVJxE-j.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-DAs4lJR2.js → BankConnectionsSettingsPage-CDPUFu2k-BBx4P7dZ.js} +21 -21
- package/dist/assets/BillDetailPage-BWBGE0pg-CYoOWtCP.js +266 -0
- package/dist/assets/{BillPayApprovalRoutes-BHVZ8537.js → BillPayApprovalRoutes-BvnC9SqN.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-C9r_i-YB.js → BillPayApprovalRuleDetailPage-B_XoB7xi-CXJBKdTH.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-C_BMrvHA.js → BillPayApprovalRulesPage-5okdFn01-D6fpe4cT.js} +12 -12
- package/dist/assets/{BillPayPromoPage-DQJAZi1a-BdT-embc.js → BillPayPromoPage-GoR4wxn7-Cd3jtttJ.js} +11 -11
- package/dist/assets/{BillPayRoutes-CTbVCMt9.js → BillPayRoutes-DqZf2rOO.js} +13 -13
- package/dist/assets/BillPaySetUpPage-CKWIFJ92-Dr75QuFi.js +42 -0
- package/dist/assets/{BillingSettingsPage-Cfe4Vmza-13uWqRc_.js → BillingSettingsPage-AjSQYumd-GqgYiFI4.js} +10 -10
- package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-ClMItAU3.js → BillsBulkReviewDrawerPage-DsNKfhkT-CXzE-Qir.js} +1 -1
- package/dist/assets/{BoxItem-CTEOx6Nh-BFlNqqzJ.js → BoxItem-BWNurtfc-J9WJ61G4.js} +3 -3
- package/dist/assets/BusinessVerificationPage-DN88j0Rn-DzH0PVhP.js +138 -0
- package/dist/assets/BusinessVerificationPageScreen-CJ17INUy.js +9 -0
- package/dist/assets/BusyIndication-H_iNZOWd-BNmJKxof.js +9 -0
- package/dist/assets/{CardNumberSubText-DijJqFXC-CsY-4Pix.js → CardNumberSubText-BAWc12F9-CekGLfjU.js} +5 -5
- package/dist/assets/{CashbackDetailPage-BxIWU0z2-SGhDWItl.js → CashbackDetailPage-BhCHvGxj-nllESilf.js} +21 -21
- package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-DiYand-n.js → ChargeCardDetailPage-D9-V0pjZ-CTp6LwRI.js} +64 -64
- package/dist/assets/{ChargeCardListPage-CYhY6c52-By-D4GaU.js → ChargeCardListPage-CZFi8l0_-CO-jS4Wx.js} +21 -21
- package/dist/assets/ChargeCardListTable-DiJUp9-c-hw3gHlrw.js +711 -0
- package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-mnUI1wBw.js → ChargeCardPaymentHistoryPage-CW9gtO0w-oF9Kbl5Z.js} +11 -11
- package/dist/assets/ChargeCardPromoPage-CiZDV925-B7JK6cJL.js +222 -0
- package/dist/assets/{ChargeCardRoutes-CnifKuME.js → ChargeCardRoutes-BumOjc7r.js} +12 -12
- package/dist/assets/{ChargeCardSetupPage-C59WR7nm-B7_BDfgy.js → ChargeCardSetupPage-C5jXY5P--Da4gT9DT.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-BSFQBDIJ.js → ChargeCardStatementsPage-CetLgQ8l-CHHBhChm.js} +3 -3
- package/dist/assets/CheckDepositDrawerPage-BYfqgSGk-58W0gPrS.js +206 -0
- package/dist/assets/CollapsableReportTable-BhbPzkAB-C83Y_pXv.js +2972 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-BohcManJ.js → CompanyOfficerDetailsSection-CMcuDe-X-CNo7Ot8a.js} +34 -34
- package/dist/assets/CompanyPassportCard-DImW2Dm8-pP6x_qCR.js +42 -0
- package/dist/assets/{CompanyPassportPage-DqhT6YL_-9fmBJGak.js → CompanyPassportPage-DT2W9QE1-DJLwOOR3.js} +18 -18
- package/dist/assets/{CompanyPassportScreen-CRe5P-th.js → CompanyPassportScreen-Ckk3Aa0n.js} +1 -1
- package/dist/assets/{CompleteProfile-DdA-FkwG-BiHuwAkX.js → CompleteProfile-BOabRQRQ-Cdf3T9vg.js} +1 -1
- package/dist/assets/ConfettiBurst-Ix0vYpu--B-yjeAz3.js +1 -0
- package/dist/assets/ConnectionAuthScreen-CJIuvxwT.js +11 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-KpARPyfe.js → ConstrainedInnerElement-CgdnMeoA-CUV-Iost.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CODInbfe-DiFVD6Qj.js → CreateOrEditVendorPage-D86akQ-H-a9byVQeU.js} +21 -21
- package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-Bhxy7Srv.js → CreditCardPaymentDrawerPage-MS34Pxyw-S-FNpO-K.js} +21 -21
- package/dist/assets/CurrencySelectField-BsuzTGXR-DG4V_Nis.js +139 -0
- package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-DsKfu_6g.js → CustomerOnboardingActivationPage-BP-GIrmI-cXKCGBAv.js} +5 -5
- package/dist/assets/CustomerOnboardingAuthScreen-C_Q_XIl1.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BEJOCQX6.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-D-qu4kro.js → CustomerOnboardingDetailPageSkeleton-CISAUodZ-DSVMFFq4.js} +9 -9
- package/dist/assets/CustomerOnboardingNoStepsPage-DgMQ5prq-DEUVMq4v.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-z5jUKu6P.js → CustomerOnboardingPage-QvCZDMFw-pwPfUUii.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-MaxHOFlf.js → CustomerOnboardingProductSuitePage-Bt1cV23--C-IqxjRL.js} +6 -6
- package/dist/assets/CustomerOnboardingRoutes-GPk7JXLd.js +23 -0
- package/dist/assets/{Dashboard-Cvmg-DzK-B4C3yfRb.js → Dashboard-DdAePVSx-CyfCOyra.js} +26 -26
- package/dist/assets/{DashboardReportPage-C7bT-gmW-CnABTNc-.js → DashboardReportPage-ccn0JYfk-DfPZgIh7.js} +40 -40
- package/dist/assets/DashboardRoutes-DbCVxvoA.js +21 -0
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-PqRgrLcG.js → DashboardSidebarBackgroundAnimation-DPDd6e7b-ClZHrJ6l.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Cnbh-hLO.js → DefaultTenantHome-DnjlKX8o.js} +1 -1
- package/dist/assets/DepositAccTransactionItem-BijpyBiZ-CNN7AUw4.js +76 -0
- package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-CxNst2Ko.js +66 -0
- package/dist/assets/DomesticWireDetailScreen-CMHXbUdU.js +18 -0
- package/dist/assets/DomesticWireDetailsPage-B10Vx6K5-BgPOj6ev.js +21 -0
- package/dist/assets/DownloadOverlay-BiIbEvq6-DkggD5hU.js +439 -0
- package/dist/assets/{DrawerPage-DGuh6P-6-vbiOWCGQ.js → DrawerPage-4aE01eRo-CbGkLlgW.js} +14 -14
- package/dist/assets/DrawerScreen-Bqlol_ka.js +1 -0
- package/dist/assets/EditPeoplePage-BWjOJqch-DMjcjWgK.js +55 -0
- package/dist/assets/EditReimbursementDetailPage-Dcw8QlH6-CKpHH0Rb.js +865 -0
- package/dist/assets/{EntityDetailPage-BbeHCNGS-D-w0bQjx.js → EntityDetailPage-DseDMalq-D030AWbJ.js} +1 -1
- package/dist/assets/EntityDetailRoutes-DKPg6KvF.js +1 -0
- package/dist/assets/{EntitySummarySection-BgjWn9vX-LOppYcen.js → EntitySummarySection-D1o-WKT9-B4D8PhFo.js} +26 -26
- package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-DgccKeRs.js → ExpenseAutomationOverviewPage-BIGlSzsy-DDeWTiVS.js} +52 -52
- package/dist/assets/ExpenseAutomationPage-BUARFwSx-BgUO5pJv.js +3614 -0
- package/dist/assets/ExpenseAutomationRoutes-CFAuM0iq.js +20 -0
- package/dist/assets/{ExpressPayPage-5VdASApP-Bbb90acR.js → ExpressPayPage-BKpxo5VW-BeZ2tWeR.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-CA_fxOHn-lBAw00-n.js → FeaturePreviewPage-CfqYjofS-Dw_fXJXh.js} +2 -2
- package/dist/assets/FeaturePreviewScreen-Ctx49exK.js +1 -0
- package/dist/assets/{FollowStepsSection-CTSjTKjT-CfO_mWmk.js → FollowStepsSection-CJzIGe2N-q0pn7uac.js} +11 -11
- package/dist/assets/GlobalReviewListPage-B4qWm75N-BekP71Yj.js +291 -0
- package/dist/assets/{InformationCardStack-D_Z7Ebe0-CdzcV8l3.js → InformationCardStack-BXWxFJnm-DZneOpmz.js} +3 -3
- package/dist/assets/InsightsCardStack-iUppdWya-IGcayZ6m.js +79 -0
- package/dist/assets/InsightsSection-CPg_uo3H-DaY57Nkj.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-BkdxTWi0.js → IntegrationsSettingsPage-DthkTtT9-BfWjdmm5.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-D8dvELa5.js → InternationalWireSwiftDetailsPage-hYeFGjj4-De4TNLmU.js} +19 -19
- package/dist/assets/InternationalWireVerificationPage-0TZuCAzZ-DstpGM2q.js +65 -0
- package/dist/assets/{InviteFormPage-C5mS-6c8-B0IN7EaK.js → InviteFormPage-BC1PH63r-DAB3gVVK.js} +7 -7
- package/dist/assets/{InvitePageListView-Yj83_lDA-CRdOQu_U.js → InvitePageListView-BJDfCvno-Sk3rc3V-.js} +65 -65
- package/dist/assets/InvitePeoplePage-Bl-WUfXO-DagADS45.js +12 -0
- package/dist/assets/InvoiceUploadSection-BgVvYytR-DjoTneQr.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BIOTVOMR-v1cJqLjo.js → IssueChargeCardPage-0JEZpfCu-DLK0riSj.js} +29 -29
- package/dist/assets/{LabeledAddressValue-Bb1x9jR--BEbVa18t.js → LabeledAddressValue-BCsadhSu-lscFDQOa.js} +2 -2
- package/dist/assets/LabeledAddressValueField-D-AO8-Me-DR8Qyzx1.js +45 -0
- package/dist/assets/LabeledControlledCheckBoxField-Do7rlK6F-CTyXPdV4.js +16 -0
- package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-COwPVYGE.js → LabeledCountryMultiSelectField-BHwXHYPO-CYnRn6eD.js} +4 -4
- package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-Cy0xU_nR.js → LabeledCreatableSingleSelectField-gMUp1tXY-y1kl4nd-.js} +7 -7
- package/dist/assets/LabeledDocumentField-DxUq-7nr-DAyGmAsR.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-D51ly333-CZ2VlJWO.js +59 -0
- package/dist/assets/{LabeledEmailInputField-BOEHGgHy-BnfP78Li.js → LabeledEmailInputField-Cd9p7Kj0-DZf49c8n.js} +11 -11
- package/dist/assets/{LabeledNameField-DWKoivcI-CNclT5Xy.js → LabeledNameField-364jsrFK-CaN5hIDf.js} +5 -5
- package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-DEP7xmaE.js → LabeledSingleSelectField-B3pMIEfZ-C8i8zlDG.js} +3 -3
- package/dist/assets/LabeledText-uFTi1qOo-Dh31QRqg.js +42 -0
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-BHV3CQzI.js → LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-Ce4jb_BF.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-C0QgGm5O.js → LabeledZeniRolesDropDownField-CbJ3OtWK-CN-nwhu5.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-BbpybbwD-C4x4kUF5.js → LinkJETransactionPage-B5M6Ojt--C7jEEQdH.js} +12 -12
- package/dist/assets/{LockCardPage-C0XjGES8-COA53Q9C.js → LockCardPage-DN2dvQA9-ptj6YCPt.js} +34 -34
- package/dist/assets/{LowBalancePopup-CkO97HGX-roXJtnln.js → LowBalancePopup-CXTWwEyb-DHi-7FjF.js} +6 -6
- package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-BuBCCqa7.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-9k2m3ge7.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-BA612N6w.js +1 -0
- package/dist/assets/{MagicLinkRoutes-BGp-m3tE.js → MagicLinkRoutes-0gOcNpgv.js} +10 -10
- package/dist/assets/MagicLinkSignInScreen-hqZFIhM7.js +12 -0
- package/dist/assets/MagicLinkSuccessPage-JRpuY47p-CZGcRvVV.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DeKkt3UA.js → MagicLinkTitleSection-BnzImXCX-DsNqMADc.js} +9 -9
- package/dist/assets/MailingDetailsSection-aNMVpaF0-Mi3ceriD.js +21 -0
- package/dist/assets/MobileAppDrawer-CXepfp6e.js +1 -0
- package/dist/assets/{MoreMenuButton-BWNCapgP-DzMadVuo.js → MoreMenuButton-C_jqM-Ix-D5fFt93A.js} +23 -23
- package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-BgARv7Gs.js → MyBankConnectionsSettingsPage-CdW-lOqB-CQAYDmx1.js} +7 -7
- package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-Cn7MG0Rp.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-TcUoiri6.js → MyProfileSettingsPage-ZmPfSk3b-CekXUU4A.js} +6 -6
- package/dist/assets/NavBarWithPicker-BYosIzfk-CHzZbup1.js +30 -0
- package/dist/assets/{NavigationArrow-CUPvxfZv-s1L-Z7hs.js → NavigationArrow-CMLkPq47-BPg7he64.js} +7 -7
- package/dist/assets/NavigationDots-maxhYltq-IyF42HyI.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-BZjrX0Tw.js → NewGlobalMerchantPage-BkDFFysB-BMj84SI3.js} +4 -4
- package/dist/assets/NoDataChart-CKqR_T30-DZpYrIq4.js +26 -0
- package/dist/assets/{NoDataTable-D1v085Vv-WRE6ppwn.js → NoDataTable-BQLSA76V-CA1kwcWh.js} +1 -1
- package/dist/assets/{NotFoundPage-Bf-EPtU9-Dix88l92.js → NotFoundPage-rtS33FV3-CW80Ae7U.js} +4 -4
- package/dist/assets/NotFoundScreen-86VjMapP.js +1 -0
- package/dist/assets/NotificationRoutes-WpVyAd3n.js +1 -0
- package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-DMc4wF7J.js → NotificationSettingsPage-JJ5a6f1u-Dg5nWtfu.js} +15 -15
- package/dist/assets/NotificationsListConfig-CWWrsRBB-BQkEfnwX.js +1 -0
- package/dist/assets/NotificationsPage-9vgLoVxJ-CqhoB5mC.js +685 -0
- package/dist/assets/OpExByVendorPage-Dy7Ll1zE-CncYLP1q.js +100 -0
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-DuZLyKjH.js → OverlayContainerPage-BG9y5C0t-o9B6MYdd.js} +1 -1
- package/dist/assets/PandLWithForecastPage-D-V3dD71-2GY3G9_S.js +123 -0
- package/dist/assets/PandLWithForecastRoutes-NKWly9at.js +1 -0
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-DY_xWf64.js → PaymentAccountSetupBillingAddressSection-B_4cMrVT-DX0VhwXR.js} +9 -9
- package/dist/assets/PeoplePage-B9bxxtaC-BUc8a2C6.js +772 -0
- package/dist/assets/PeopleRoutes-LIAWa-ry.js +22 -0
- package/dist/assets/PerformanceRoutes-647LNvtJ.js +1 -0
- package/dist/assets/{Preview-f_rz4qOg.js → Preview-C63MOKlS.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dx8bStwI-5WXVKcMh.js → ProductsCarousel-BnezAuLA-CWNs-1wI.js} +8 -8
- package/dist/assets/{PromoBaseCards-Bauxzwzt-CEuKIUTF.js → PromoBaseCards-B5vRjrOp-DZnXvun2.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-COlHLDTh-CZNls81U.js → QBOConnectionDialog-mVAyONiQ-BFw_Aijs.js} +4 -4
- package/dist/assets/{QBOConnectionScreen-DHVNs-vu.js → QBOConnectionScreen-DPXluGT3.js} +4 -22
- package/dist/assets/{QBOSetupSection-Cb4AlHU9-BwUUouj5.js → QBOSetupSection-Co4tc3sO-UEf5y5yj.js} +14 -14
- package/dist/assets/ReferralListScreen-C9t9-uma.js +5 -0
- package/dist/assets/ReimbursementApprovalRoutes-DBPigEkQ.js +1 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-OE1Rk5kC.js → ReimbursementApprovalRuleDetailPage-t48xfVQ_-DSouPzhL.js} +6 -6
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C0xqudkd.js → ReimbursementApprovalRuleDetailScreen-iL2FRiSL.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-DOok7S1u.js → ReimbursementApprovalRulesPage-BuOE0xKm-CyQAGb5D.js} +3 -3
- package/dist/assets/ReimbursementDetailPage-oD88KyGk-Z26luXjw.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-BvbfNbzp.js → ReimbursementPromoPage-DC6vQNFr-Df-JQbVt.js} +11 -11
- package/dist/assets/ReimbursementRoutes-DP3Zyw9z.js +13 -0
- package/dist/assets/{ReimbursementSetUpPage-CBKANstD-DthsR-eI.js → ReimbursementSetUpPage-ClkPQCRt-3XXwJA8a.js} +5 -5
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DiWW85PW-CdKgZHg6.js +1 -0
- package/dist/assets/ReloadCard-DcyZqZO5-CwUMwJXU.js +26 -0
- package/dist/assets/ReportTableViewSelector-Be_385i6-D1d1hisQ.js +151 -0
- package/dist/assets/ReportsPage-Dp_uEJ2H-DsQqyldd.js +258 -0
- package/dist/assets/ReportsRoutes-CQDTEzwi.js +1 -0
- package/dist/assets/{RevenueChart-BHrj8Dy9-DkPntOZK.js → RevenueChart-B-iMe_PD-Bi6Ok69j.js} +12 -12
- package/dist/assets/ReviewDetailsPage--0ZUpEVp-CQmlT2je.js +290 -0
- package/dist/assets/{ReviewOverlay-Be_F1hd--DTVVFQpK.js → ReviewOverlay-D_JI48L0-CyNlOwFh.js} +8 -8
- package/dist/assets/RewardsRoutes-BiuOGirU.js +1 -0
- package/dist/assets/RoleWithToolTip-Bqdsc31P-CNmkPW05.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BwfadKPa.js → ScheduleDetailsFixedAssetsPage-vFbciuuA-Diyke3YU.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BVZeWx8N.js → ScheduleDetailsPage-BUxgvyKT-Xmkq7RcC.js} +3 -3
- package/dist/assets/ScheduleSequenceTable-CPf50z9S-CLdzdoca.js +324 -0
- package/dist/assets/ScreenRoutes-IYIFGbR5.js +2 -0
- package/dist/assets/{SetUpAccountSection-ULABF-Md-6cmPJvyE.js → SetUpAccountSection-Bk3RGJCY-2x7H96z3.js} +32 -32
- package/dist/assets/{SettingsRoutes-_v8Kd5Pc.js → SettingsRoutes-CEWrZV9M.js} +7 -7
- package/dist/assets/{SetupPagesScreen-DwKZajDO.js → SetupPagesScreen-BFZeWYvZ.js} +6 -6
- package/dist/assets/SignIn-DbvYG8OW-DIGSru0r.js +491 -0
- package/dist/assets/SignInScreen-B27QEE_5.js +1 -0
- package/dist/assets/SignOutScreen-DfH6txYx.js +9 -0
- package/dist/assets/SpendManagementListViewPage-CSGYJyZu-BweWpc_X.js +134 -0
- package/dist/assets/SpendManagementPerTabPage-DuGeuTYQ-DataZT66.js +754 -0
- package/dist/assets/SpendManagementSection-CZ_i360S-BWGL8ndc.js +375 -0
- package/dist/assets/StatementItem-CDx2knrL-D3uOvDYp.js +31 -0
- package/dist/assets/StatementsPage-BMFYpAPA-D3BvQu9P.js +58 -0
- package/dist/assets/{StatusSwitcher-CgzMvf5t-BwsAKxQf.js → StatusSwitcher-CDnarHSf-meshGWkH.js} +6 -6
- package/dist/assets/{SubTabSwitcher-gc5g6vV0-Cc389X5o.js → SubTabSwitcher-DhIXVTVI-Dm-A1aML.js} +9 -9
- package/dist/assets/SuccessAnimation-C-AHWH-M-DYko07lj.js +13 -0
- package/dist/assets/SummaryCard-4S9PQQ5W-B2YKQ_55.js +1 -0
- package/dist/assets/{TaskDetailPage-Brq3l5Lm-CTeGSq5Z.js → TaskDetailPage-rWt-QUEv-DH6XgxNN.js} +45 -45
- package/dist/assets/TaskListScreen-CWIPHTTl.js +9 -0
- package/dist/assets/TaskManagementPage-D3YvKWVJ-DM0xoyo4.js +1067 -0
- package/dist/assets/TaskRoutes-CgARLANx.js +9 -0
- package/dist/assets/TimeRangeSwitcher-CFJrPhfZ-Bh0bakQI.js +64 -0
- package/dist/assets/TimeframeSwitcher-DS6zgSjT-D1R0FMKh.js +31 -0
- package/dist/assets/TimeframeSwitcherWithToggle-Did8-Dj7-CGwKh4M0.js +53 -0
- package/dist/assets/{TopExCard-CRxFMC50-DMFErWO2.js → TopExCard-ByF-svYM-Ctw9EYS9.js} +6 -6
- package/dist/assets/{TopExDetailPage-D7dCJGpQ-CMGX79Ma.js → TopExDetailPage-ABVezwCx-DzhDJZA8.js} +16 -16
- package/dist/assets/{TransactionActivityLogPage-ByyxovGE-srnxYFyd.js → TransactionActivityLogPage-B8ytNODX-DVytAoU9.js} +9 -9
- package/dist/assets/TransactionDetailPage-CunkyIXB-CNc17TsU.js +903 -0
- package/dist/assets/TransactionDetailRoutes-CK-34SUt.js +1 -0
- package/dist/assets/{TransactionDetailScreen-Cf5V0oOT.js → TransactionDetailScreen-DDeYMLmN.js} +2 -2
- package/dist/assets/TransactionList-CEPVnfZD-ClBHZqTs.js +153 -0
- package/dist/assets/{TransactionListBig-BOKPby7d-DtBWL-yV.js → TransactionListBig-BYFv0irc-pAbEVbC_.js} +24 -24
- package/dist/assets/TransactionListPage-CEVs8CRQ-DxaQpOMD.js +35 -0
- package/dist/assets/{TransactionListRoutes-FXzof8yS.js → TransactionListRoutes-DCJ5Lweu.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CDApXn9_.js → TransactionVendorDetailPage-DYvgQFQS-DSlx2b8r.js} +4 -4
- package/dist/assets/{TransferDrawerPage-B5ofYt0y-DEB7bAJ_.js → TransferDrawerPage-gDUiIE-g-Bvvjaklx.js} +25 -25
- package/dist/assets/TreasuryOverviewPage-DXIqVBWp-B9pyuKCe.js +725 -0
- package/dist/assets/{TreasuryPromoPage-ofZQDboF-9WAzeWsO.js → TreasuryPromoPage-oERSujnm-ClN1OTf6.js} +24 -24
- package/dist/assets/TreasuryRoutes-BjolvDGd.js +45 -0
- package/dist/assets/TreasuryStatementsPage-GWCCDPvf-_h3417p3.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-iwLPWGPo.js → TreasuryTaxLetterPage-pTRWyNYH-BQ_qi0uM.js} +4 -4
- package/dist/assets/TrendChart-B2oLQN05-BkrG4BVH.js +16 -0
- package/dist/assets/TrendWithTransactions-Bx63fv0P-BQ8GiA8P.js +116 -0
- package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-O1FdgaEf.js → UncategorizedAccountsMappingPage-D_QwlpkW-CEr8coR8.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-C44UiDRH-BgZ2EdVh.js → UnitIntegrationPage-EeIQyR4L-D0Uey0gi.js} +4 -4
- package/dist/assets/UploadAdditionalDocumentOverlay-B8_7dtgO-BVpFWtFr.js +38 -0
- package/dist/assets/Vendor2FAPopup-DwTNfggI-QO3FNLHc.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-Dbr0vyn-.js → VendorACHDetailsPage-KDUuJi9g-SMC7hwJD.js} +1 -1
- package/dist/assets/VendorDetailPage-k42A_Pv1-C-eMTgO6.js +257 -0
- package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-B6fOSB2X.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BTWZ-u7c.js → VendorFiling1099EditablePage-BUuhWv_U-D-yHNm5T.js} +16 -16
- package/dist/assets/VendorFirstReviewPage-bN7DO44j-DzTJUqvm.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-DTnVoiG2.js → VendorInternationalWireDetailsPage-DjkOrgs7-CUIWISK5.js} +11 -11
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-BL32YiVm.js +1 -0
- package/dist/assets/{VendorsAccountsSection-D6DinIAj-D7Ln9yoe.js → VendorsAccountsSection-D-7K4aZA-BPnUt7kZ.js} +2 -2
- package/dist/assets/{VendorsRoutes-DoHaVaFK.js → VendorsRoutes-Dh458IQK.js} +21 -21
- package/dist/assets/VerifyDevice-VPfuXUzH-AU1zuQlS.js +112 -0
- package/dist/assets/{VideoPlayer-BuOlZW0M-SyXdcn2w.js → VideoPlayer-2MQyZqi6-DqklpbYT.js} +1 -1
- package/dist/assets/VideoPopup-ZFwt4A81-Ch4C2tup.js +31 -0
- package/dist/assets/WiseConfirmationScreen-Bat277PD.js +12 -0
- package/dist/assets/ZeniAccountDetailPage-CJrpkcjr-CBwTak_Y.js +300 -0
- package/dist/assets/ZeniAccountListViewPage-DvJI3LGF-CKLfdqdE.js +443 -0
- package/dist/assets/ZeniAccountNavBarPieces-UCydmVe7-CXtDBFLP.js +33 -0
- package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-DKlKFYZl.js → ZeniAccountPromoPage-DiGsabvm-C_SqwLVl.js} +22 -22
- package/dist/assets/ZeniAccountRoutes-CAAxW9JY.js +58 -0
- package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CVuTGOWG.js → ZeniAccountSetupPage-hVmIT6tO-tFtJgQAT.js} +4 -4
- package/dist/assets/ZeniAccountStatementScreen-BaoiJX5h.js +9 -0
- package/dist/assets/{ZeniAvatar-CHmpyZc4-CgFMIt8E.js → ZeniAvatar-C2LxBTZ4-YOmVMm4j.js} +3 -3
- package/dist/assets/{ZeniCopyright-Cy7xQhak-XXB-MVSK.js → ZeniCopyright-BTIaEGE9-Di2RxJTA.js} +1 -1
- package/dist/assets/{ZeniDatePicker--Wk1Y9-b-ILzjIY8q.js → ZeniDatePicker-9JxwH7J5-CcV9D7gC.js} +5 -5
- package/dist/assets/ZeniTransferAmountSlider-BlEFrC-Z-rEEslC0z.js +63 -0
- package/dist/assets/{accountMappingHelper-B_bqtQmE.js → accountMappingHelper-CZHlLVR_.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-BJTVCmjO.js → add-to-wallet-DgdBD8_G-BgQLRlhS.js} +1 -1
- package/dist/assets/{analytics-BwviiuqB.js → analytics-CDQ7tGpV.js} +1 -1
- package/dist/assets/{analyticsHelper-MsboCQcB-BLnXrwhy.js → analyticsHelper-CYp9h-KW-6KJErEZC.js} +1 -1
- package/dist/assets/{analyticsHelper-cKb29Ct6.js → analyticsHelper-jTnRtCKB.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BLBs8ugU.js → arrow-south-east-round-PEovUgvH-CvfiHTRY.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BZd_9SiP.js → auto-transfer-rule-mbafm5D3-8rMpx5do.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-BFq-rVXj.js → avatar-Dz7aEm3d-BdKWS97a.js} +1 -1
- package/dist/assets/bank-letter-BOcVjN6J-ydWr7ZOI.js +1 -0
- package/dist/assets/{calculateSize-DtEgyuiA-BxRureQo.js → calculateSize-DecSvt-d-CIfCbqel.js} +1 -1
- package/dist/assets/{chartTypes-BZL6U2-d-6ZTLkQO6.js → chartTypes-D2s_Hwo9-BbhqSw8p.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-D86aDGgx.js → clock-CJkylEKt-CjcyjUt4.js} +1 -1
- package/dist/assets/common-BGuhvMjF-Ry4gfI81.js +1 -0
- package/dist/assets/commonDimensions-u85vL09f-D9VH5FSj.js +1 -0
- package/dist/assets/{commonTypes-lunwFIdl-DX_CuL_U.js → commonTypes-DKKiPW4t-BlYaUk1n.js} +1 -1
- package/dist/assets/{core-tQbf9q8c.js → core-B0nKoasK.js} +3 -38
- package/dist/assets/{dash.all.min-BrwO-Juz.js → dash.all.min-CXMi5GlA.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-DvIz9TKf.js → decodeURIComponentSafe-CHDtTf3Z.js} +1 -1
- package/dist/assets/{dnd-C4z4yHh0.js → dnd-NNN-4w0O.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-DZNtiKOk.js → dollar-round-D18u7nlm-CQw1tD8J.js} +1 -1
- package/dist/assets/downloadPdf-CnXPMbwm-BjEW_jtg.js +1 -0
- package/dist/assets/empty-CVZTZ-q9.js +1 -0
- package/dist/assets/{empty-D8sw2kbY.js → empty-DA-JSLu3.js} +1 -1
- package/dist/assets/epic-D0yDPv8O.js +2 -0
- package/dist/assets/{filter-cZIFUNvj-CE5zJJJ0.js → filter-cZIFUNvj-DAakc3sS.js} +1 -1
- package/dist/assets/getLocaleForTenant-DGG0tVFT.js +1 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-DP-9tFF0.js → gift-box-Cmt9OgIZ-C6pLHK0s.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-OTAmLtfp.js → graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C1xtOjga.js → graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BLfSpPLa.js → handshake-BPg58FML-C47iPdmd.js} +1 -1
- package/dist/assets/{helper-2Z01-P8G-4I-xsv8A.js → helper-C7sZs2qJ-DE63clA9.js} +2 -2
- package/dist/assets/{hyperlink-DQyCeXx2-B5DTBQjH.js → hyperlink-DQyCeXx2-BOSMM7uX.js} +1 -1
- package/dist/assets/{empty-OIMWR8Ju.js → index-BIjZljJR.js} +1 -1
- package/dist/assets/{index-BVjkKCLf.js → index-ByxsQZNo.js} +4237 -4301
- package/dist/assets/{index-14QtSMKx.js → index-CEBFS-eA.js} +1 -1
- package/dist/assets/{index-7BmdvSTY.js → index-CQJQXzZY.js} +1 -1
- package/dist/assets/{index-C4KA_rsP.js → index-DrsMeyfs.js} +2 -8
- package/dist/assets/index-zhMcpxMF.js +1 -0
- package/dist/assets/{lexical-Cxv_EhfG.js → lexical-Fl-AogKa.js} +1 -1
- package/dist/assets/{liveblocks-ClmZMiZG.js → liveblocks-DskTqGyX.js} +3 -8
- package/dist/assets/{lottie-C1jDoN6L.js → lottie-BzV8yd9z.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-DTh9tKjd.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-D7gRkuwi.js → mapSectionWithAcOnlyToTreeNode-Okgefznu-CJAMwNIO.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-pPZFbPSE.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-sCX2cRnL-BfAjp3to.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-BQEyuzFH.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-Cu0SrzZe.js +1 -0
- package/dist/assets/{media-player-CixAJJd1.js → media-player-eLGyvMHZ.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Bg567PNs.js → money-2cg1MuG4-rv31fLm6.js} +1 -1
- package/dist/assets/{mui-Bjwhey0L.js → mui-40xepic5.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BjxkU9bj.js → page-detail-CWX5S47F-BrbO3gtI.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-B63O8toS.js → page-summary-D7_VQHwN-bNTaLAow.js} +1 -1
- package/dist/assets/panelSelectedMixin-Cddsb26L-DgahycaC.js +3 -0
- package/dist/assets/{pathToGoBack-C0-y9K8A.js → pathToGoBack-D0UTUGlT.js} +1 -1
- package/dist/assets/{pdf-DJ-oF9-h.js → pdf-A8jRKyoC.js} +3 -3
- package/dist/assets/{pdf-lib-CRmnAdOL.js → pdf-lib-mQnebn-k.js} +1 -1
- package/dist/assets/{plaid-CFQSLZ5I.js → plaid-cfgjTkr8.js} +1 -1
- package/dist/assets/{pusher-BBjghr5u.js → pusher-1O2fsDZq.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-D0C1Nxwy.js → radio-default-CiSgisfh-Cy5-Jl8l.js} +1 -1
- package/dist/assets/{react-2Ejhu-dV.js → react-BEcUyG01.js} +2 -12
- package/dist/assets/{react-By0Yo34B.js → react-BEctO-ia.js} +2 -12
- package/dist/assets/{react-BXiKrbq0.js → react-C6o6ScF5.js} +2 -12
- package/dist/assets/react-CQm7lU_-.js +19 -0
- package/dist/assets/{react-BV8b3CRD.js → react-CidUU4N9.js} +2 -12
- package/dist/assets/{react-C5-2CZ_j.js → react-D8s_m7Vn.js} +2 -12
- package/dist/assets/{react-BGKYEK8M.js → react-DcRcFJEU.js} +3 -13
- package/dist/assets/{react-CInUMAlk.js → react-QF7HiPHo.js} +2 -12
- package/dist/assets/{recharts-DxWcXnAv.js → recharts-Bbdho9Pi.js} +1 -1
- package/dist/assets/{routePaths-nQF_3DXR.js → routePaths-CpPoI1xs.js} +1 -1
- package/dist/assets/{sentry-Bsfq8iFp.js → sentry-COYnhuxW.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BK5y8PC1.js → shield-DOlUxcFf-wVomU2ew.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-BMKkrJ-o.js → spend-limit-D6SyboD4-BruIkKZj.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DinJUeg4-DkE5puj7.js +1 -0
- package/dist/assets/toChartData-DrYGpr_j-D2GR-55Z.js +1 -0
- package/dist/assets/{transaction-placeholder-CpOwZAMG-PFo9FUbu.js → transaction-placeholder-CpOwZAMG-C-J0dsgn.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-BAh3h0-i.js → undo-b_3XZ5CX-Chu3klyO.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-DEd9hnmz.js → unlock-BPWn2I5L-BGatCFPm.js} +1 -1
- package/dist/assets/upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js +1 -0
- package/dist/assets/{uploadAttachment-DtJo5Tp4-DeK-C7ju.js → uploadAttachment-DPYv4udq-CXZc-rXm.js} +29 -29
- package/dist/assets/{uploadReceipts-Dge0cNF1-D7Fo4MnD.js → uploadReceipts-CIgkuVpu-Mr0MhYx1.js} +1 -1
- package/dist/assets/{url-BaJJd1my.js → url-C27bOf0k.js} +1 -1
- package/dist/assets/{url-gf9VSr2b.js → url-XCmE-JaB.js} +1 -1
- package/dist/assets/{useDeviceId-C7oMV5vx.js → useDeviceId-UXlBHXyB.js} +1 -1
- package/dist/assets/useInitialThreadRequest-BIFRjZze.js +1 -0
- package/dist/assets/{useLongPress-GCK2COYQ-_KCebyG-.js → useLongPress-GCK2COYQ-CqE4OIEm.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Ce0bTbAT.js → usp-line-BBd1wKwW-vz296XX2.js} +1 -1
- package/dist/assets/{utils-BxRS7J8i.js → utils-DMEPgX6w.js} +7 -20
- package/dist/assets/withTransactionSidePanel-BDgDxNYJ.js +8 -0
- package/dist/assets/zeni-epic-state-DCforPdM.js +14 -0
- package/dist/assets/{zeni-icon-only-CYgNDWlk.js → zeni-icon-only-BkUYNged.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +16 -8
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-BTogpO7M-D_v0KOJI.js +0 -18
- package/dist/assets/AccountRow-Zjkju8uM-CGaR_v-A.js +0 -298
- package/dist/assets/AddAddressForCardDrawer-BvGnuIf6-e2c4M17b.js +0 -6
- package/dist/assets/AddressRoutes-zoF4RBjS.js +0 -1
- package/dist/assets/AddressScreen-BGSyJ4PZ.js +0 -9
- package/dist/assets/AiCfoScreen-CFoKGkjU.js +0 -11
- package/dist/assets/AppBasePage-BM1NMPdI-CHojPGrn.js +0 -71
- package/dist/assets/AppDrawerContent-XR9dBd-C-BWr9bkjA.js +0 -92
- package/dist/assets/ApprovalRulesSettingsPage-6unABLlP-YLoMFZPp.js +0 -47
- package/dist/assets/ArAgingChart-DePiNxcV-Byuo2Avb.js +0 -24
- package/dist/assets/ArAgingDetailPage-DiJ6PePf-_AIaQwgF.js +0 -46
- package/dist/assets/BankAccountWarningSection-CtRFcHTv-DFmiiX69.js +0 -51
- package/dist/assets/BillDetailPage-CPxVWXx6-C9i2mOHw.js +0 -266
- package/dist/assets/BillPaySetUpPage-BVOLWF1M-B3PsvONS.js +0 -42
- package/dist/assets/BusinessVerificationPage-D05hRyo1-aQRofHCL.js +0 -138
- package/dist/assets/BusinessVerificationPageScreen-pyooLZWt.js +0 -9
- package/dist/assets/BusyIndication-Nz8htndZ-DK3qiNAN.js +0 -9
- package/dist/assets/ChargeCardListTable-Dblodw9X-xnf7vtTY.js +0 -711
- package/dist/assets/ChargeCardPromoPage-AihUlwys-Do4EWC8a.js +0 -222
- package/dist/assets/CheckDepositDrawerPage-B9-ktuL_-Ck0uGpSM.js +0 -206
- package/dist/assets/CollapsableReportTable-BAz0DbFh-BcvkKcP6.js +0 -2844
- package/dist/assets/CompanyPassportCard-DTfKmcGv-CHazCsBK.js +0 -42
- package/dist/assets/ConfettiBurst-Dc0iIaw3-BJexFSkA.js +0 -1
- package/dist/assets/ConnectionAuthScreen-CdkXEtyU.js +0 -11
- package/dist/assets/CurrencySelectField-D_D8AUqS-CMSYPUvM.js +0 -139
- package/dist/assets/CustomerOnboardingAuthScreen-B9h5R6h7.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-Djr78RES.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CLFh9K94-C-IOhhJS.js +0 -66
- package/dist/assets/CustomerOnboardingRoutes-CTvxPGQo.js +0 -23
- package/dist/assets/DashboardRoutes-BJYzpoZN.js +0 -21
- package/dist/assets/DepositAccTransactionItem-XZgomj7v-DIzmHak6.js +0 -76
- package/dist/assets/DepositAccTransactionListPage-B11lcuip-EcEiN_CO.js +0 -66
- package/dist/assets/DomesticWireDetailScreen-C2_h3QsH.js +0 -18
- package/dist/assets/DomesticWireDetailsPage-Cw4aq8Ar-BB4UsO3F.js +0 -21
- package/dist/assets/DownloadOverlay-DE63RFQe-Crn2Ieq2.js +0 -439
- package/dist/assets/DrawerScreen-CCgZ71G-.js +0 -1
- package/dist/assets/EditPeoplePage-Dmz2l8uY-BViOrN91.js +0 -55
- package/dist/assets/EditReimbursementDetailPage-BrQ60mqq-CiiPaBXi.js +0 -865
- package/dist/assets/EntityDetailRoutes-CDn_Sj24.js +0 -1
- package/dist/assets/ExpenseAutomationPage-BDZ6aX0q-DsIPZFRk.js +0 -2323
- package/dist/assets/ExpenseAutomationRoutes-DGeHwe0Y.js +0 -20
- package/dist/assets/FeaturePreviewScreen-mO_J_upF.js +0 -1
- package/dist/assets/GlobalReviewListPage-DmrnXFgW-BY6NnEtn.js +0 -291
- package/dist/assets/InsightsCardStack-Dbpzjgf4-RDSpnan7.js +0 -79
- package/dist/assets/InsightsSection-DgViiL7e-DSerJB8L.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-HZgqUkj4-CGNhvpQ2.js +0 -65
- package/dist/assets/InvitePeoplePage-C7DlxHsy-BebMBIo7.js +0 -12
- package/dist/assets/InvoiceUploadSection-DdIQCBkC-Cl8PEl5w.js +0 -140
- package/dist/assets/LabeledAddressValueField-D3_DsNPu-736YXF_H.js +0 -45
- package/dist/assets/LabeledControlledCheckBoxField-DdHmj0q2-DW5E7xm-.js +0 -16
- package/dist/assets/LabeledDocumentField-CFtFroDl-CMnHYN21.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-CFsuVVp3-BZagwxlS.js +0 -59
- package/dist/assets/LabeledText-CZMUFsPf-CD_2e2aX.js +0 -42
- package/dist/assets/MagicLinkACHDetailsPage-CcaWGIEm-tnKPve8j.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-6V37rCS5-FOh6a44O.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BKWBDCxr-BhDtlKOU.js +0 -1
- package/dist/assets/MagicLinkSignInScreen-D2ieCdvR.js +0 -12
- package/dist/assets/MagicLinkSuccessPage-L5UJIvTe-CWVlYB8D.js +0 -31
- package/dist/assets/MailingDetailsSection-CRsQVOYi-UNrx0RmS.js +0 -21
- package/dist/assets/MobileAppDrawer-C0MjRK8u.js +0 -1
- package/dist/assets/MyPendingActivationChargeCardListPage-CluWS3nS-28_T6_I6.js +0 -6
- package/dist/assets/NavBarWithPicker-ClP6LCUF-DkWJWEu4.js +0 -30
- package/dist/assets/NavigationDots-Cu9LZj7T-Dck-bGwO.js +0 -15
- package/dist/assets/NoDataChart-DcMRzXHU-D7_5REKF.js +0 -26
- package/dist/assets/NotFoundScreen-OFT7uJSm.js +0 -1
- package/dist/assets/NotificationRoutes-CHaXDc9a.js +0 -1
- package/dist/assets/NotificationsListConfig-CO5uOSs7-DsPdEX8y.js +0 -1
- package/dist/assets/NotificationsPage-BH6B4Q8b-boFjpwya.js +0 -685
- package/dist/assets/OpExByVendorPage-EjyJRLhn-CQJtKQn8.js +0 -100
- package/dist/assets/PandLWithForecastPage-UpDz4Qqu-amIAlSUm.js +0 -107
- package/dist/assets/PandLWithForecastRoutes-CnIh_V-S.js +0 -1
- package/dist/assets/PeoplePage-D2N1XP-O-CJwoERS5.js +0 -720
- package/dist/assets/PeopleRoutes-BhDCeLPU.js +0 -22
- package/dist/assets/PerformanceRoutes-BuAZi3MY.js +0 -1
- package/dist/assets/ReferralListScreen-C3cSD6GP.js +0 -5
- package/dist/assets/ReimbursementApprovalRoutes-BR5Pg3Il.js +0 -1
- package/dist/assets/ReimbursementDetailPage-CuuOsKPv-D_7TSHrP.js +0 -314
- package/dist/assets/ReimbursementRoutes-CqJXKBBa.js +0 -13
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-BXO46shT-BZFw04rn.js +0 -1
- package/dist/assets/ReloadCard-BKHKE8Pu-DDzNv6xf.js +0 -26
- package/dist/assets/ReportTableViewSelector-gYxUii1M-CddF7tJN.js +0 -150
- package/dist/assets/ReportsPage-D7rEPLAa-CzmUwcBX.js +0 -121
- package/dist/assets/ReportsRoutes-CYQKfAgF.js +0 -1
- package/dist/assets/ReviewDetailsPage-B9SMV_va-Dz7Rn666.js +0 -290
- package/dist/assets/RewardsRoutes-DCITkj5z.js +0 -1
- package/dist/assets/RoleWithToolTip-D9DCHaph-nKJIR_IN.js +0 -22
- package/dist/assets/ScheduleSequenceTable-BBbLa0gA-Btbrm5JR.js +0 -324
- package/dist/assets/ScreenRoutes-cViWFW2H.js +0 -2
- package/dist/assets/SignIn-6YH_riJW-Cbh0GUA9.js +0 -491
- package/dist/assets/SignInScreen-CQ0tPRGx.js +0 -1
- package/dist/assets/SignOutScreen-DnZtVxxQ.js +0 -9
- package/dist/assets/SpendManagementListViewPage-D_RrkezV-DBINRHHC.js +0 -134
- package/dist/assets/SpendManagementPerTabPage-BnugLA94-B0bXgpZd.js +0 -754
- package/dist/assets/SpendManagementSection-DCk1isQq-Ctg203qT.js +0 -375
- package/dist/assets/StatementItem-BWKA6BsE-j_qG9rDI.js +0 -31
- package/dist/assets/StatementsPage-C5KuiVH4-xnkoQRuk.js +0 -58
- package/dist/assets/SuccessAnimation-CcFXT4sg-BdtQuwgP.js +0 -13
- package/dist/assets/SummaryCard-DgPg2oPm-2d3grF3d.js +0 -1
- package/dist/assets/TaskListScreen-BEZfxkT_.js +0 -9
- package/dist/assets/TaskManagementPage-Dyy-A0ij-BjtjsR1V.js +0 -1063
- package/dist/assets/TaskRoutes-CmFMqx0S.js +0 -9
- package/dist/assets/TimeRangeSwitcher-PcHPZNOq-BoIkN8Yn.js +0 -64
- package/dist/assets/TimeframeSwitcher-XZjkUS_W-BbzICW0F.js +0 -31
- package/dist/assets/TimeframeSwitcherWithToggle-KxCdrFMS-CZUmEkN6.js +0 -31
- package/dist/assets/TransactionDetailPage-D0_Tjv5D-CTxa80yD.js +0 -903
- package/dist/assets/TransactionDetailRoutes-CJny34aF.js +0 -1
- package/dist/assets/TransactionList-DoYieHoy-BgtAc9_H.js +0 -153
- package/dist/assets/TransactionListPage-Bfx0PW2V-CJeBc1uC.js +0 -35
- package/dist/assets/TreasuryOverviewPage-D4LuhPMd-CuGu_xGc.js +0 -708
- package/dist/assets/TreasuryRoutes-DAJ1nuDy.js +0 -45
- package/dist/assets/TreasuryStatementsPage-D4bGPC_n-CT-z0lr5.js +0 -58
- package/dist/assets/TrendChart-BJLik8fK-DKQC7WiX.js +0 -16
- package/dist/assets/TrendWithTransactions-R1FCSydB-BqoO14_s.js +0 -116
- package/dist/assets/UploadAdditionalDocumentOverlay-CJmvE3y6-OjNfOtyQ.js +0 -38
- package/dist/assets/Vendor2FAPopup-Bt_phaZI-Dci0tpRN.js +0 -1
- package/dist/assets/VendorDetailPage-BixXt95H-Cvkoy_Y0.js +0 -257
- package/dist/assets/VendorDomesticWireDetailsPage-BmFZeCgu-BrnPFu_g.js +0 -1
- package/dist/assets/VendorFirstReviewPage-DZ00XYRi-DOa-NUD4.js +0 -730
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BCafZBL5-a5ZNRrE7.js +0 -1
- package/dist/assets/VerifyDevice-DFug_o82-Cp_iN918.js +0 -112
- package/dist/assets/VideoPopup-B03SM83j-Bz8522QR.js +0 -31
- package/dist/assets/WiseConfirmationScreen-BSiQio9j.js +0 -12
- package/dist/assets/ZeniAccountDetailPage-BJQvxY7D-CD6_hnPE.js +0 -300
- package/dist/assets/ZeniAccountListViewPage-CvwGdUPT-Dfa2vteS.js +0 -441
- package/dist/assets/ZeniAccountNavBarPieces-OGXEdZmI-DYGQS9LW.js +0 -14
- package/dist/assets/ZeniAccountRoutes-XOuwsxr4.js +0 -58
- package/dist/assets/ZeniAccountStatementScreen-xw2x-Y_T.js +0 -9
- package/dist/assets/ZeniTransferAmountSlider-BGK6jY7c-BOtVC5lY.js +0 -63
- package/dist/assets/common-DspMM85g-D8gXTZ7G.js +0 -1
- package/dist/assets/commonDimensions-RZ10geET-D7qPZRI_.js +0 -1
- package/dist/assets/detailCommon-CxEOrtjx-DMWr3OWb.js +0 -38
- package/dist/assets/downloadPdf-BpxrRqLr-CgsZPCp9.js +0 -1
- package/dist/assets/epic-CtBuyKa-.js +0 -2
- package/dist/assets/getLocaleForTenant-x-_ZsHih.js +0 -1
- package/dist/assets/index-Ch36miPU.js +0 -1
- package/dist/assets/index-DztUk-4t.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-BJRnX8Ir-CWTptJHk.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-CQvnRjWo-DwJKT6-z.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CY0Vs8kK-VBbq9rDC.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cytg0KxN-XJ0C0lAw.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-OlNigbrb.js +0 -1
- package/dist/assets/panelSelectedMixin-CzfD5-Zs-C8dW-sTb.js +0 -4
- package/dist/assets/react-D1LHkJvC.js +0 -37
- package/dist/assets/toCOABalancesWithID-DzAIFjHl-CpHF0N9N.js +0 -1
- package/dist/assets/toChartData-BurvmO_S-BSey2eFY.js +0 -1
- package/dist/assets/useInitialThreadRequest-BFyDtASP.js +0 -1
- package/dist/assets/withTransactionSidePanel-D5JSDlfI.js +0 -8
- package/dist/assets/zeni-epic-state-CjVTQ4J3.js +0 -122
|
@@ -1,2323 +0,0 @@
|
|
|
1
|
-
import{fy as Vn,fz as No,iP as Vc,fB as _n,u as G,Q as Bi,O as Ae,V as t,o as p,c4 as Uc,y as vt,J as Me,ad as Fn,f as _o,iQ as Xn,iR as Gc,a6 as ce,e as Oe,b as me,H as Kc,l as El,ab as kl,aj as Tl,ef as Yc,iS as qc,iT as Ti,bm as Ao,iU as Jc,j as $t,x as wt,bg as Ee,s as Be,a8 as $l,iV as Zc,m as Mt,iz as Xc,n as Qc,fm as ed,ba as Ro,aR as td,k as nd,W as Nt,iW as od,a as id,bi as rd,bK as ad,aZ as sd,_ as ot,a9 as Nl,bL as ld,a_ as cd,hg as dd,a4 as ct,aT as ud,hd as pd,gc as hd,g4 as _l,aU as gd,bb as on,ar as Al,b6 as Rl,iX as md,T as xn,A as Cn,iY as fd,cD as Il,iZ as xd,i_ as Cd,i$ as yd,fQ as jl,bz as Un,an as Io,bO as jo,aE as Ll,aF as Dl,b$ as Gn,d7 as zi,fA as bd,aM as vd,bC as wd,bp as Sd,dW as Kn,I as Ed,a7 as rr,g6 as Ol,j0 as kd,b1 as Ml,he as rn,cA as Hi,fY as nn,h6 as Ho,dT as bo,c3 as Wi,z as Td,dU as Pl,cF as $d,fL as Nd,f7 as _d,gf as Ad,cI as Vi,bT as Lo,bW as Do,hG as yt,fR as Wo,ig as ar,cB as Fl,cj as Bn,j1 as Rd,ah as Id,cH as Bl,i as zn,hx as zl,hH as $i,j2 as kn,dv as Hl,dx as Wl,hX as Vl,hY as Ul,j3 as jd,ch as Oo,hy as Gl,eJ as Kl,dK as Vo,a0 as Ni,j4 as Ld,bZ as Dd,ag as Yl,hO as Od,d5 as Md,j5 as Pd,j6 as Fd,al as Uo,dG as Bd,c as zd,dH as Hd,dI as Wd,dJ as Vd,dM as sr,dN as lr,dO as Ud,j7 as Gd,dY as Kd,dZ as Yd,d_ as qd}from"./index-BVjkKCLf.js";import{e as cr,r as gt,g as Jd,a as y,b as ql}from"./sentry-Bsfq8iFp.js";import{n as A,G as Zd,c as We,k as Mo}from"./mui-Bjwhey0L.js";import{bG as Hn,bs as Jl,G1 as dr,G2 as Wn,G3 as Xd,G4 as Qd,G5 as eu,G6 as tu,El as ur,G7 as nu,G8 as ou,lx as jn,bT as dn,G9 as pr,bp as Zl,Ga as iu,c5 as ru,cp as un,Gb as au,Gc as Xl,Gd as Ql,Ge as ec,Gf as tc,Gg as nc,Gh as Ui,lh as su}from"./zeni-epic-state-CjVTQ4J3.js";import{m as lu}from"./BusyIndication-Nz8htndZ-DK3qiNAN.js";import{L as cu}from"./common-DspMM85g-D8gXTZ7G.js";import{l as Gi}from"./panelSelectedMixin-CzfD5-Zs-C8dW-sTb.js";import{u as du}from"./plaid-CFQSLZ5I.js";import{v as oc}from"./SuccessAnimation-CcFXT4sg-BdtQuwgP.js";import{t as uu}from"./clock-CJkylEKt-D86aDGgx.js";import{K as pu}from"./LabeledEmailInputField-BOEHGgHy-BnfP78Li.js";import{e as hu,f as gu}from"./liveblocks-ClmZMiZG.js";import{r as Ze}from"./lexical-Cxv_EhfG.js";import{f as mu,r as fu}from"./core-tQbf9q8c.js";import{t as xu}from"./undo-b_3XZ5CX-BAh3h0-i.js";import{r as ic,I as rc,n as Tn,R as Bt}from"./CollapsableReportTable-BAz0DbFh-BcvkKcP6.js";import{N as Go}from"./AccountRow-Zjkju8uM-CGaR_v-A.js";import{o as ac}from"./mapTimeframeBalancesToTreeNode-CY0Vs8kK-VBbq9rDC.js";import{d as hr}from"./mapLoadingInProgressToTreeNode-BJRnX8Ir-CWTptJHk.js";import{h as Cu}from"./VendorsAccountsSection-D6DinIAj-D7Ln9yoe.js";import{u as yu,c as gr,d as bu,m as vu}from"./uploadAttachment-DtJo5Tp4-DeK-C7ju.js";import"./pdf-DJ-oF9-h.js";import"./lottie-C1jDoN6L.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./recharts-DxWcXnAv.js";import"./utils-BxRS7J8i.js";import"./calculateSize-DtEgyuiA-BxRureQo.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]="9d7bf6d7-1a63-410b-ae33-6a50400b7144",e._sentryDebugIdIdentifier="sentry-dbid-9d7bf6d7-1a63-410b-ae33-6a50400b7144")}catch{}})();var mr,Ue={},fr={exports:{}};function wu(){return mr||(mr=1,function(e){var n=function(a){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,E=0,S={},o={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function s(u){return u instanceof g?new g(u.type,s(u.content),u.alias):Array.isArray(u)?u.map(s):u.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(s){return Object.prototype.toString.call(s).slice(8,-1)},objId:function(s){return s.__id||Object.defineProperty(s,"__id",{value:++E}),s.__id},clone:function s(u,T){var v,N;switch(T=T||{},o.util.type(u)){case"Object":if(N=o.util.objId(u),T[N])return T[N];for(var O in v={},T[N]=v,u)u.hasOwnProperty(O)&&(v[O]=s(u[O],T));return v;case"Array":return N=o.util.objId(u),T[N]?T[N]:(v=[],T[N]=v,u.forEach(function(M,D){v[D]=s(M,T)}),v);default:return u}},getLanguage:function(s){for(;s;){var u=i.exec(s.className);if(u)return u[1].toLowerCase();s=s.parentElement}return"none"},setLanguage:function(s,u){s.className=s.className.replace(RegExp(i,"gi"),""),s.classList.add("language-"+u)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(v){var s=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(v.stack)||[])[1];if(s){var u=document.getElementsByTagName("script");for(var T in u)if(u[T].src==s)return u[T]}return null}},isActive:function(s,u,T){for(var v="no-"+u;s;){var N=s.classList;if(N.contains(u))return!0;if(N.contains(v))return!1;s=s.parentElement}return!!T}},languages:{plain:S,plaintext:S,text:S,txt:S,extend:function(s,u){var T=o.util.clone(o.languages[s]);for(var v in u)T[v]=u[v];return T},insertBefore:function(s,u,T,v){var N=(v=v||o.languages)[s],O={};for(var M in N)if(N.hasOwnProperty(M)){if(M==u)for(var D in T)T.hasOwnProperty(D)&&(O[D]=T[D]);T.hasOwnProperty(M)||(O[M]=N[M])}var R=v[s];return v[s]=O,o.languages.DFS(o.languages,function(j,F){F===R&&j!=s&&(this[j]=O)}),O},DFS:function s(u,T,v,N){N=N||{};var O=o.util.objId;for(var M in u)if(u.hasOwnProperty(M)){T.call(u,M,u[M],v||M);var D=u[M],R=o.util.type(D);R!=="Object"||N[O(D)]?R!=="Array"||N[O(D)]||(N[O(D)]=!0,s(D,T,M,N)):(N[O(D)]=!0,s(D,T,null,N))}}},plugins:{},highlightAll:function(s,u){o.highlightAllUnder(document,s,u)},highlightAllUnder:function(s,u,T){var v={callback:T,container:s,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",v),v.elements=Array.prototype.slice.apply(v.container.querySelectorAll(v.selector)),o.hooks.run("before-all-elements-highlight",v);for(var N,O=0;N=v.elements[O++];)o.highlightElement(N,u===!0,v.callback)},highlightElement:function(s,u,T){var v=o.util.getLanguage(s),N=o.languages[v];o.util.setLanguage(s,v);var O=s.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(O,v);var M={element:s,language:v,grammar:N,code:s.textContent};function D(j){M.highlightedCode=j,o.hooks.run("before-insert",M),M.element.innerHTML=M.highlightedCode,o.hooks.run("after-highlight",M),o.hooks.run("complete",M),T&&T.call(M.element)}if(o.hooks.run("before-sanity-check",M),(O=M.element.parentElement)&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!M.code)return o.hooks.run("complete",M),void(T&&T.call(M.element));if(o.hooks.run("before-highlight",M),M.grammar)if(u&&a.Worker){var R=new Worker(o.filename);R.onmessage=function(j){D(j.data)},R.postMessage(JSON.stringify({language:M.language,code:M.code,immediateClose:!0}))}else D(o.highlight(M.code,M.grammar,M.language));else D(o.util.encode(M.code))},highlight:function(s,u,T){var v={code:s,grammar:u,language:T};if(o.hooks.run("before-tokenize",v),!v.grammar)throw new Error('The language "'+v.language+'" has no grammar.');return v.tokens=o.tokenize(v.code,v.grammar),o.hooks.run("after-tokenize",v),g.stringify(o.util.encode(v.tokens),v.language)},tokenize:function(s,u){var T=u.rest;if(T){for(var v in T)u[v]=T[v];delete u.rest}var N=new b;return h(N,N.head,s),w(s,N,u,N.head,0),function(O){for(var M=[],D=O.head.next;D!==O.tail;)M.push(D.value),D=D.next;return M}(N)},hooks:{all:{},add:function(s,u){var T=o.hooks.all;T[s]=T[s]||[],T[s].push(u)},run:function(s,u){var T=o.hooks.all[s];if(T&&T.length)for(var v,N=0;v=T[N++];)v(u)}},Token:g};function g(s,u,T,v){this.type=s,this.content=u,this.alias=T,this.length=0|(v||"").length}function x(s,u,T,v){s.lastIndex=u;var N=s.exec(T);if(N&&v&&N[1]){var O=N[1].length;N.index+=O,N[0]=N[0].slice(O)}return N}function w(s,u,T,v,N,O){for(var M in T)if(T.hasOwnProperty(M)&&T[M]){var D=T[M];D=Array.isArray(D)?D:[D];for(var R=0;R<D.length;++R){if(O&&O.cause==M+","+R)return;var j=D[R],F=j.inside,Y=!!j.lookbehind,ee=!!j.greedy,te=j.alias;if(ee&&!j.pattern.global){var X=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,X+"g")}for(var H=j.pattern||j,L=v.next,l=N;L!==u.tail&&!(O&&l>=O.reach);l+=L.value.length,L=L.next){var c=L.value;if(u.length>s.length)return;if(!(c instanceof g)){var $,f=1;if(ee){if(!($=x(H,l,s,Y))||$.index>=s.length)break;var d=$.index,_=$.index+$[0].length,I=l;for(I+=L.value.length;d>=I;)I+=(L=L.next).value.length;if(l=I-=L.value.length,L.value instanceof g)continue;for(var B=L;B!==u.tail&&(I<_||typeof B.value=="string");B=B.next)f++,I+=B.value.length;f--,c=s.slice(l,I),$.index-=l}else if(!($=x(H,0,c,Y)))continue;d=$.index;var Z=$[0],q=c.slice(0,d),z=c.slice(d+Z.length),W=l+c.length;O&&W>O.reach&&(O.reach=W);var U=L.prev;if(q&&(U=h(u,U,q),l+=q.length),r(u,U,f),L=h(u,U,new g(M,F?o.tokenize(Z,F):Z,te,Z)),z&&h(u,L,z),f>1){var V={cause:M+","+R,reach:W};w(s,u,T,L.prev,l,V),O&&V.reach>O.reach&&(O.reach=V.reach)}}}}}}function b(){var s={value:null,prev:null,next:null},u={value:null,prev:s,next:null};s.next=u,this.head=s,this.tail=u,this.length=0}function h(s,u,T){var v=u.next,N={value:T,prev:u,next:v};return u.next=N,v.prev=N,s.length++,N}function r(s,u,T){for(var v=u.next,N=0;N<T&&v!==s.tail;N++)v=v.next;u.next=v,v.prev=u,s.length-=N}if(a.Prism=o,g.stringify=function s(u,T){if(typeof u=="string")return u;if(Array.isArray(u)){var v="";return u.forEach(function(R){v+=s(R,T)}),v}var N={type:u.type,content:s(u.content,T),tag:"span",classes:["token",u.type],attributes:{},language:T},O=u.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(N.classes,O):N.classes.push(O)),o.hooks.run("wrap",N);var M="";for(var D in N.attributes)M+=" "+D+'="'+(N.attributes[D]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+M+">"+N.content+"</"+N.tag+">"},!a.document)return a.addEventListener&&(o.disableWorkerMessageHandler||a.addEventListener("message",function(s){var u=JSON.parse(s.data),T=u.language,v=u.code,N=u.immediateClose;a.postMessage(o.highlight(v,o.languages[T],T)),N&&a.close()},!1)),o;var C=o.util.currentScript();function m(){o.manual||o.highlightAll()}if(C&&(o.filename=C.src,C.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var k=document.readyState;k==="loading"||k==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
|
|
2
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
|
-
*
|
|
4
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
5
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
6
|
-
* @namespace
|
|
7
|
-
* @public
|
|
8
|
-
*/e.exports&&(e.exports=n),cr!==void 0&&(cr.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(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(a,i){var E={};E["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[i]},E.cdata=/^<!\[CDATA\[|\]\]>$/i;var S={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:E}};S["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:S},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 E=a.languages.markup;E&&(E.tag.addInlined("style","css"),E.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",E="loading",S="loaded",o="pre[data-src]:not(["+i+'="'+S+'"]):not(['+i+'="'+E+'"])';n.hooks.add("before-highlightall",function(x){x.selector+=", "+o}),n.hooks.add("before-sanity-check",function(x){var w=x.element;if(w.matches(o)){x.code="",w.setAttribute(i,E);var b=w.appendChild(document.createElement("CODE"));b.textContent="Loading…";var h=w.getAttribute("data-src"),r=x.language;if(r==="none"){var C=(/\.(\w+)$/.exec(h)||[,"none"])[1];r=a[C]||C}n.util.setLanguage(b,r),n.util.setLanguage(w,r);var m=n.plugins.autoloader;m&&m.loadLanguages(r),function(k,s,u){var T=new XMLHttpRequest;T.open("GET",k,!0),T.onreadystatechange=function(){T.readyState==4&&(T.status<400&&T.responseText?s(T.responseText):T.status>=400?u("✖ Error "+T.status+" while fetching file: "+T.statusText):u("✖ Error: File does not exist or is empty"))},T.send(null)}(h,function(k){w.setAttribute(i,S);var s=function(N){var O=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(N||"");if(O){var M=Number(O[1]),D=O[2],R=O[3];return D?R?[M,Number(R)]:[M,void 0]:[M,M]}}(w.getAttribute("data-range"));if(s){var u=k.split(/\r\n?|\n/g),T=s[0],v=s[1]==null?u.length:s[1];T<0&&(T+=u.length),T=Math.max(0,Math.min(T-1,u.length)),v<0&&(v+=u.length),v=Math.max(0,Math.min(v,u.length)),k=u.slice(T,v).join(`
|
|
9
|
-
`),w.hasAttribute("data-start")||w.setAttribute("data-start",String(T+1))}b.textContent=k,n.highlightElement(b)},function(k){w.setAttribute(i,"failed"),b.textContent=k})}}),n.plugins.fileHighlight={highlight:function(x){for(var w,b=(x||document).querySelectorAll(o),h=0;w=b[h++];)n.highlightElement(w)}};var g=!1;n.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(fr)),fr.exports}var xr,Cr,yr,br,Su={};function Eu(){return br||(br=1,function(e){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(w){return w=w.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+w+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,E=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),S=/\|?[ \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("^"+E+S+"(?:"+E+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+E+S+")(?:"+E+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+E+")"+S+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+E+"$"),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(w){["url","bold","italic","strike","code-snippet"].forEach(function(b){w!==b&&(e.languages.markdown[w].inside.content.inside[b]=e.languages.markdown[b])})}),e.hooks.add("after-tokenize",function(w){w.language!=="markdown"&&w.language!=="md"||function b(h){if(h&&typeof h!="string")for(var r=0,C=h.length;r<C;r++){var m=h[r];if(m.type==="code"){var k=m.content[1],s=m.content[3];if(k&&s&&k.type==="code-language"&&s.type==="code-block"&&typeof k.content=="string"){var u=k.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),T="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());s.alias?typeof s.alias=="string"?s.alias=[s.alias,T]:s.alias.push(T):s.alias=[T]}}else b(m.content)}}(w.tokens)}),e.hooks.add("wrap",function(w){if(w.type==="code-block"){for(var b="",h=0,r=w.classes.length;h<r;h++){var C=w.classes[h],m=/language-(.+)/.exec(C);if(m){b=m[1];break}}var k,s,u=e.languages[b];if(u)w.content=e.highlight((k=w.content,s=(s=k.replace(o,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,N){var O;if((N=N.toLowerCase())[0]==="#")return O=N[1]==="x"?parseInt(N.slice(2),16):Number(N.slice(1)),x(O);var M=g[N];return M||v}),s),u,b);else if(b&&b!=="none"&&e.plugins.autoloader){var T="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());w.attributes.id=T,e.plugins.autoloader.loadLanguages(b,function(){var v=document.getElementById(T);v&&(v.innerHTML=e.highlight(v.textContent,e.languages[b],b))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),g={amp:"&",lt:"<",gt:">",quot:'"'},x=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)),Su}var vr,wr,Sr,Er,kr,Tr,$r,Nr,_r,Ar,Rr,Ir,jr,Lr,Dr,Or,Mr,Pr,Fr,et={},Qe={};function Yn(){return jr?Ir:(jr=1,Ir=function(){if(Rr)return Qe;Rr=1;var n=Ze();let a=new Map;function i(r){for(;r!=null;){if(r.nodeType===Node.TEXT_NODE)return r;r=r.firstChild}return null}function E(r){let C=r.parentNode;if(C==null)throw Error("Should never happen");return[C,Array.from(C.childNodes).indexOf(r)]}function S(r){let C={};r=r.split(";");for(let m of r)if(m!==""){let[k,s]=m.split(/:([^]+)/);C[k.trim()]=s.trim()}return C}function o(r){let C=a.get(r);return C===void 0&&(C=S(r),a.set(r,C)),C}function g(r,C){var m=o("getStyle"in r?r.getStyle():r.style);C=Object.entries(C).reduce((k,[s,u])=>(u===null?delete k[s]:k[s]=u,k),{...m}),m=function(k){let s="";for(let u in k)u&&(s+=`${u}: ${k[u]};`);return s}(C),r.setStyle(m),a.set(m,C)}function x(r){for(;r!==null&&!n.$isRootOrShadowRoot(r);){let C=r.getLatest(),m=r.getParent();C.getChildrenSize()===0&&r.remove(!0),r=m}}function w(r,C,m,k,s=null){if(C.length!==0){var u=C[0],T=new Map,v=[];(u=n.$isElementNode(u)?u:u.getParentOrThrow()).isInline()&&(u=u.getParentOrThrow());for(var N=!1;u!==null;){var O=u.getPreviousSibling();if(O!==null){u=O,N=!0;break}if(u=u.getParentOrThrow(),n.$isRootOrShadowRoot(u))break}O=new Set;for(var M=0;M<m;M++){var D=C[M];n.$isElementNode(D)&&D.getChildrenSize()===0&&O.add(D.getKey())}var R=new Set;for(M=0;M<m;M++){var j=(D=C[M]).getParent();if(j!==null&&j.isInline()&&(j=j.getParent()),j!==null&&n.$isLeafNode(D)&&!R.has(D.getKey())){if(D=j.getKey(),T.get(D)===void 0){let F=k();F.setFormat(j.getFormatType()),F.setIndent(j.getIndent()),v.push(F),T.set(D,F),j.getChildren().forEach(Y=>{F.append(Y),R.add(Y.getKey()),n.$isElementNode(Y)&&Y.getChildrenKeys().forEach(ee=>R.add(ee))}),x(j)}}else O.has(D.getKey())&&((j=k()).setFormat(D.getFormatType()),j.setIndent(D.getIndent()),v.push(j),D.remove(!0))}if(s!==null)for(C=0;C<v.length;C++)s.append(v[C]);if(C=null,n.$isRootOrShadowRoot(u))if(N)if(s!==null)u.insertAfter(s);else for(s=v.length-1;0<=s;s--)u.insertAfter(v[s]);else if(N=u.getFirstChild(),n.$isElementNode(N)&&(u=N),N===null)if(s)u.append(s);else for(s=0;s<v.length;s++)N=v[s],u.append(N),C=N;else if(s!==null)N.insertBefore(s);else for(u=0;u<v.length;u++)s=v[u],N.insertBefore(s),C=s;else if(s)u.insertAfter(s);else for(s=v.length-1;0<=s;s--)N=v[s],u.insertAfter(N),C=N;v=n.$getPreviousSelection(),n.$isRangeSelection(v)&&v.anchor.getNode().isAttached()&&v.focus.getNode().isAttached()?n.$setSelection(v.clone()):C!==null?C.selectEnd():r.dirty=!0}}function b(r,C,m,k){r.modify(C?"extend":"move",m,k)}function h(r){return r=r.anchor.getNode(),(n.$isRootNode(r)?r:r.getParentOrThrow()).getDirection()==="rtl"}return Qe.$addNodeStyle=function(r){let C=S(r=r.getStyle());a.set(r,C)},Qe.$cloneWithProperties=function(r){let C=(r=r.getLatest()).constructor.clone(r);return C.__parent=r.__parent,C.__next=r.__next,C.__prev=r.__prev,n.$isElementNode(r)&&n.$isElementNode(C)?(C.__first=r.__first,C.__last=r.__last,C.__size=r.__size,C.__format=r.__format,C.__indent=r.__indent,C.__dir=r.__dir,C):(n.$isTextNode(r)&&n.$isTextNode(C)&&(C.__format=r.__format,C.__style=r.__style,C.__mode=r.__mode,C.__detail=r.__detail),C)},Qe.$getSelectionStyleValueForProperty=function(r,C,m=""){let k=null,s=r.getNodes();var u=r.anchor,T=r.focus,v=r.isBackward();let N=v?T.offset:u.offset;if(u=v?T.getNode():u.getNode(),r.style!==""&&(r=o(r.style))!==null&&C in r)return r[C];for(r=0;r<s.length;r++){var O=s[r];if((r===0||N!==0||!O.is(u))&&n.$isTextNode(O)){if(T=C,v=m,T=(O=o(O=O.getStyle()))!==null&&O[T]||v,k===null)k=T;else if(k!==T){k="";break}}}return k===null?m:k},Qe.$isAtNodeEnd=function(r){return r.type==="text"?r.offset===r.getNode().getTextContentSize():r.offset===r.getNode().getChildrenSize()},Qe.$isParentElementRTL=h,Qe.$moveCaretSelection=b,Qe.$moveCharacter=function(r,C,m){let k=h(r);b(r,C,m?!k:k,"character")},Qe.$patchStyleText=function(r,C){var m=r.getNodes();let k=m.length-1,s=m[0],u=m[k];if(r.isCollapsed())g(r,C);else{var T=r.anchor,v=r.focus,N=s.getTextContent().length,O=v.offset,M=T.offset,D=T.isBefore(v),R=D?M:O;r=D?O:M;var j=D?T.type:v.type,F=D?v.type:T.type;if(T=D?v.key:T.key,n.$isTextNode(s)&&R===N&&(v=s.getNextSibling(),n.$isTextNode(v)&&(R=M=0,s=v)),m.length===1)n.$isTextNode(s)&&(R=j==="element"?0:M>O?O:M)!==(r=F==="element"?N:M>O?M:O)&&(R===0&&r===N?(g(s,C),s.select(R,r)):(m=s.splitText(R,r),g(m=R===0?m[0]:m[1],C),m.select(0,r-R)));else for(n.$isTextNode(s)&&R<s.getTextContentSize()&&(R!==0&&(s=s.splitText(R)[1]),g(s,C)),n.$isTextNode(u)&&(R=u.getTextContent().length,u.__key!==T&&r!==0&&(r=R),r!==R&&([u]=u.splitText(r)),r!==0&&g(u,C)),r=1;r<k;r++)N=(R=m[r]).getKey(),n.$isTextNode(R)&&N!==s.getKey()&&N!==u.getKey()&&!R.isToken()&&g(R,C)}},Qe.$selectAll=function(r){let C=r.anchor;r=r.focus;var m=C.getNode().getTopLevelElementOrThrow().getParentOrThrow();let k=m.getFirstDescendant();m=m.getLastDescendant();let s="element",u="element",T=0;n.$isTextNode(k)?s="text":n.$isElementNode(k)||k===null||(k=k.getParentOrThrow()),n.$isTextNode(m)?(u="text",T=m.getTextContentSize()):n.$isElementNode(m)||m===null||(m=m.getParentOrThrow()),k&&m&&(C.set(k.getKey(),0,s),r.set(m.getKey(),T,u))},Qe.$setBlocksType=function(r,C){if(r.anchor.key==="root"){C=C();var m=n.$getRoot();(r=m.getFirstChild())?r.replace(C,!0):m.append(C)}else for(m=r.getNodes(),r=r.anchor.getNode().getParentOrThrow(),m.indexOf(r)===-1&&m.push(r),r.isInline()&&(r=r.getParentOrThrow(),m.indexOf(r)===-1&&m.push(r)),r=0;r<m.length;r++){let u=m[r];var k=u;if(!n.$isElementNode(k)||n.$isRootOrShadowRoot(k))k=!1;else{var s=k.getFirstChild();s=s===null||n.$isTextNode(s)||s.isInline(),k=!k.isInline()&&k.canBeEmpty()!==!1&&s}k&&((k=C()).setFormat(u.getFormatType()),k.setIndent(u.getIndent()),u.replace(k,!0))}},Qe.$shouldOverrideDefaultCharacterSelection=function(r,C){return r=n.$getAdjacentNode(r.focus,C),n.$isDecoratorNode(r)&&!r.isIsolated()||n.$isElementNode(r)&&!r.isInline()&&!r.canBeEmpty()},Qe.$sliceSelectedTextNodeContent=function(r,C){if(C.isSelected()&&!C.isSegmented()&&!C.isToken()&&(n.$isRangeSelection(r)||n.DEPRECATED_$isGridSelection(r))){var m=r.anchor.getNode(),k=r.focus.getNode(),s=C.is(m),u=C.is(k);if(s||u){s=r.isBackward();let T,[v,N]=r.getCharacterOffsets();r=m.is(k),u=C.is(s?k:m),k=C.is(s?m:k),m=0,r?(m=v>N?N:v,T=v>N?v:N):u?(m=s?N:v,T=void 0):k&&(m=0,T=s=s?v:N),C.__text=C.__text.slice(m,T)}}return C},Qe.$wrapNodes=function(r,C,m=null){var k=r.getNodes();let s=k.length;var u=r.anchor;if(s===0||s===1&&u.type==="element"&&u.getNode().getChildrenSize()===0){k=(r=u.type==="text"?u.getNode().getParentOrThrow():u.getNode()).getChildren();let v=C();v.setFormat(r.getFormatType()),v.setIndent(r.getIndent()),k.forEach(N=>v.append(N)),m&&(v=m.append(v)),r.replace(v)}else{u=null;var T=[];for(let v=0;v<s;v++){let N=k[v];n.$isRootOrShadowRoot(N)?(w(r,T,T.length,C,m),T=[],u=N):u===null||u!==null&&n.$hasAncestor(N,u)?T.push(N):(w(r,T,T.length,C,m),T=[N])}w(r,T,T.length,C,m)}},Qe.createDOMRange=function(r,C,m,k,s){let u=C.getKey(),T=k.getKey(),v=document.createRange(),N=r.getElementByKey(u);if(r=r.getElementByKey(T),n.$isTextNode(C)&&(N=i(N)),n.$isTextNode(k)&&(r=i(r)),C===void 0||k===void 0||N===null||r===null)return null;N.nodeName==="BR"&&([N,m]=E(N)),r.nodeName==="BR"&&([r,s]=E(r)),C=N.firstChild,N===r&&C!=null&&C.nodeName==="BR"&&m===0&&s===0&&(s=1);try{v.setStart(N,m),v.setEnd(r,s)}catch{return null}return!v.collapsed||m===s&&u===T||(v.setStart(r,s),v.setEnd(N,m)),v},Qe.createRectsFromDOMRange=function(r,C){var m=r.getRootElement();if(m===null)return[];r=m.getBoundingClientRect(),m=getComputedStyle(m),m=parseFloat(m.paddingLeft)+parseFloat(m.paddingRight);let k,s=(C=Array.from(C.getClientRects())).length;for(let u=0;u<s;u++){let T=C[u],v=T.width+m===r.width;k&&k.top===T.top&&k.left===T.left&&k.width===T.width&&k.height===T.height||v?(C.splice(u--,1),s--):k=T}return C},Qe.getStyleObjectFromCSS=o,Qe.trimTextContentFromAnchor=function(r,C,m){let k=C.getNode();if(n.$isElementNode(k)){var s=k.getDescendantByIndex(C.offset);s!==null&&(k=s)}for(;0<m&&k!==null;){var u=k.getPreviousSibling(),T=0;if(u===null){for(var v=(s=k.getParentOrThrow()).getPreviousSibling();v===null;){if((s=s.getParent())===null){u=null;break}v=s.getPreviousSibling()}s!==null&&(T=s.isInline()?0:2,u=n.$isElementNode(v)?v.getLastDescendant():v)}if((v=k.getTextContent())===""&&n.$isElementNode(k)&&!k.isInline()&&(v=`
|
|
10
|
-
|
|
11
|
-
`),s=k.getTextContentSize(),!n.$isTextNode(k)||m>=s)v=k.getParent(),k.remove(),v==null||v.getChildrenSize()!==0||n.$isRootNode(v)||v.remove(),m-=s+T,k=u;else{let N=k.getKey();T=r.getEditorState().read(()=>{const M=n.$getNodeByKey(N);return n.$isTextNode(M)&&M.isSimpleText()?M.getTextContent():null}),u=s-m;let O=v.slice(0,u);T!==null&&T!==v?(m=n.$getPreviousSelection(),s=k,k.isSimpleText()?k.setTextContent(T):(s=n.$createTextNode(T),k.replace(s)),n.$isRangeSelection(m)&&m.isCollapsed()&&(m=m.anchor.offset,s.select(m,m))):k.isSimpleText()?(T=C.key===N,(v=C.offset)<m&&(v=s),m=T?v-m:0,s=T?v:u,T&&m===0?([m]=k.splitText(m,s),m.remove()):([,m]=k.splitText(m,s),m.remove())):(m=n.$createTextNode(O),k.replace(m)),m=0}}},Qe}())}function mt(){return Or?Dr:(Or=1,Dr=function(){if(Lr)return et;Lr=1;var n=Yn(),a=Ze();function i(o,g){for(let x of g)if(o.type.startsWith(x))return!0;return!1}function E(o,g){for(;o!==a.$getRoot()&&o!=null;){if(g(o))return o;o=o.getParent()}return null}function S(o){return o.nodeType===1}return et.$splitNode=a.$splitNode,et.$dfs=function(o,g){let x=[];o=(o||a.$getRoot()).getLatest(),g=g||(a.$isElementNode(o)?o.getLastDescendant():o);for(var w=o,b=0;(w=w.getParent())!==null;)b++;for(w=b;o!==null&&!o.is(g);)if(x.push({depth:w,node:o}),a.$isElementNode(o)&&0<o.getChildrenSize())o=o.getFirstChild(),w++;else for(b=null;b===null&&o!==null;)(b=o.getNextSibling())===null?(o=o.getParent(),w--):o=b;return o!==null&&o.is(g)&&x.push({depth:w,node:o}),x},et.$findMatchingParent=E,et.$getNearestBlockElementAncestorOrThrow=function(o){if(o=E(o,g=>a.$isElementNode(g)&&!g.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},et.$getNearestNodeOfType=function(o,g){for(;o!=null;){if(o instanceof g)return o;o=o.getParent()}return null},et.$insertNodeToNearestRoot=function(o){var g=a.$getSelection();if(a.$isRangeSelection(g)){var{focus:x}=g;if(g=x.getNode(),x=x.offset,a.$isRootOrShadowRoot(g))(x=g.getChildAtIndex(x))==null?g.append(o):x.insertBefore(o),o.selectNext();else{let w,b;a.$isTextNode(g)?(w=g.getParentOrThrow(),b=g.getIndexWithinParent(),0<x&&(b+=1,g.splitText(x))):(w=g,b=x),[,g]=a.$splitNode(w,b),g.insertBefore(o),g.selectStart()}}else a.$isNodeSelection(g)||a.DEPRECATED_$isGridSelection(g)?(g=g.getNodes())[g.length-1].getTopLevelElementOrThrow().insertAfter(o):a.$getRoot().append(o),g=a.$createParagraphNode(),o.insertAfter(g),g.select();return o.getLatest()},et.$restoreEditorState=function(o,g){let x=new Map,w=o._pendingEditorState;for(let[b,h]of g._nodeMap){let r=n.$cloneWithProperties(h);a.$isTextNode(r)&&(r.__text=h.__text),x.set(b,r)}w&&(w._nodeMap=x),o._dirtyType=2,o=g._selection,a.$setSelection(o===null?null:o.clone())},et.$wrapNodeInElement=function(o,g){return g=g(),o.replace(g),g.append(o),g},et.addClassNamesToElement=function(o,...g){g.forEach(x=>{typeof x=="string"&&(x=x.split(" ").filter(w=>w!==""),o.classList.add(...x))})},et.isHTMLAnchorElement=function(o){return S(o)&&o.tagName==="A"},et.isHTMLElement=S,et.isMimeType=i,et.mediaFileReader=function(o,g){let x=o[Symbol.iterator]();return new Promise((w,b)=>{let h=[],r=()=>{const{done:C,value:m}=x.next();if(C)return w(h);const k=new FileReader;k.addEventListener("error",b),k.addEventListener("load",()=>{const s=k.result;typeof s=="string"&&h.push({file:m,result:s}),r()}),i(m,g)?k.readAsDataURL(m):r()};r()})},et.mergeRegister=function(...o){return()=>{o.forEach(g=>g())}},et.registerNestedElementResolver=function(o,g,x,w){return o.registerNodeTransform(g,b=>{e:{for(var h=b.getChildren(),r=0;r<h.length;r++)if(h[r]instanceof g){h=null;break e}for(h=b;h!==null;)if(r=h,(h=h.getParent())instanceof g){h={child:r,parent:h};break e}h=null}if(h!==null){const{child:C,parent:m}=h;if(C.is(b)){if(w(m,b),h=(b=C.getNextSiblings()).length,m.insertAfter(C),h!==0){r=x(m),C.insertAfter(r);for(let k=0;k<h;k++)r.append(b[k])}m.canBeEmpty()||m.getChildrenSize()!==0||m.remove()}}})},et.removeClassNamesFromElement=function(o,...g){g.forEach(x=>{typeof x=="string"&&o.classList.remove(...x.split(" "))})},et}())}function ku(){if(Mr)return Ue;Mr=1;var e=wu();xr||(xr=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:/[{}[\];(),.:]/}),Cr||(Cr=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),yr||(yr=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(f){f.type==="entity"&&(f.attributes.title=f.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(f,d){var _={};_["language-"+d]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[d]},_.cdata=/^<!\[CDATA\[|\]\]>$/i;var I={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:_}};I["language-"+d]={pattern:/[\s\S]+/,inside:Prism.languages[d]};var B={};B[f]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return f}),"i"),lookbehind:!0,greedy:!0,inside:I},Prism.languages.insertBefore("markup","cdata",B)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(f,d){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+f+")"+/\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:[d,"language-"+d],inside:Prism.languages[d]},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),Eu(),vr||(vr=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),wr||(wr=1,function(f){var d=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;f.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+d.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\\((?:"+d.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+d.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+d.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:d,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:/[(){};:,]/},f.languages.css.atrule.inside.rest=f.languages.css;var _=f.languages.markup;_&&(_.tag.addInlined("style","css"),_.tag.addAttribute("style","css"))}(Prism)),Sr||(Sr=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),Er||(Er=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:/[;[\]()`,.]/}),kr||(kr=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://,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),Tr||(Tr=1,function(f){for(var d=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,_=0;_<2;_++)d=d.replace(/<self>/g,function(){return d});d=d.replace(/<self>/g,function(){return/[^\s\S]/.source}),f.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+d),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},f.languages.rust["closure-params"].inside.rest=f.languages.rust,f.languages.rust.attribute.inside.string=f.languages.rust.string}(Prism)),$r||($r=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(f){f.inside.interpolation.inside=Prism.languages.swift})),Nr||(Nr=1,function(f){f.languages.typescript=f.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/}),f.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 f.languages.typescript.parameter,delete f.languages.typescript["literal-property"];var d=f.languages.extend("typescript",{});delete d["class-name"],f.languages.typescript["class-name"].inside=d,f.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:d}}}}),f.languages.ts=f.languages.typescript}(Prism)),_r||(_r=1,function(f){var d=/\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/,_=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,I={pattern:RegExp(/(^|[^\w.])/.source+_+/[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:/\./}};f.languages.java=f.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[I,{pattern:RegExp(/(^|[^\w.])/.source+_+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:I.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+_+/[A-Z]\w*\b/.source),lookbehind:!0,inside:I.inside}],keyword:d,function:[f.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/}),f.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),f.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":I,keyword:d,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+_+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:I.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+_+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:I.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 d.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),Ar||(Ar=1,function(f){var d=/\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/,_=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return d.source});f.languages.cpp=f.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return d.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:d,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/}),f.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 _})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),f.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:f.languages.cpp}}}}),f.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),f.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:f.languages.extend("cpp",{})}}),f.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},f.languages.cpp["base-clause"])}(Prism));var n=mt(),a=Ze();let i=f=>f!=null&&e.languages.hasOwnProperty(f)?f:void 0;function E(f,d){for(let _ of f.childNodes){if(n.isHTMLElement(_)&&_.tagName===d)return!0;E(_,d)}return!1}class S extends a.ElementNode{static getType(){return"code"}static clone(d){return new S(d.__language,d.__key)}constructor(d,_){super(_),this.__language=i(d)}createDOM(d){let _=document.createElement("code");return n.addClassNamesToElement(_,d.theme.code),_.setAttribute("spellcheck","false"),(d=this.getLanguage())&&_.setAttribute("data-highlight-language",d),_}updateDOM(d,_){let I=this.__language;return d=d.__language,I?I!==d&&_.setAttribute("data-highlight-language",I):d&&_.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:d=>d.textContent!=null&&(/\r?\n/.test(d.textContent)||E(d,"BR"))?{conversion:x,priority:1}:null,div:()=>({conversion:w,priority:1}),pre:()=>({conversion:x,priority:0}),table:d=>C(d)?{conversion:b,priority:3}:null,td:d=>{let _=d.closest("table");return d.classList.contains("js-file-line")?{conversion:r,priority:3}:_&&C(_)?{conversion:h,priority:3}:null},tr:d=>(d=d.closest("table"))&&C(d)?{conversion:h,priority:3}:null}}static importJSON(d){let _=o(d.language);return _.setFormat(d.format),_.setIndent(d.indent),_.setDirection(d.direction),_}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(d,_=!0){var I=this.getChildren(),B=I.length;if(2<=B&&I[B-1].getTextContent()===`
|
|
12
|
-
`&&I[B-2].getTextContent()===`
|
|
13
|
-
`&&d.isCollapsed()&&d.anchor.key===this.__key&&d.anchor.offset===B)return I[B-1].remove(),I[B-2].remove(),d=a.$createParagraphNode(),this.insertAfter(d,_),d;if((B=O(_=d.anchor.getNode()))!=null){for(I=0,B=B.getTextContent();I<B.length&&/[\t ]/.test(B[I]);)I+=1;if(0<I)return I=v(I=B.substring(0,I)),_.insertAfter(I),d.insertNodes([a.$createLineBreakNode()]),I.select(),I}return null}canInsertTab(){let d=a.$getSelection();return!(!a.$isRangeSelection(d)||!d.isCollapsed())}canIndent(){return!1}collapseAtStart(){let d=a.$createParagraphNode();return this.getChildren().forEach(_=>d.append(_)),this.replace(d),!0}setLanguage(d){this.getWritable().__language=i(d)}getLanguage(){return this.getLatest().__language}}function o(f){return a.$applyNodeReplacement(new S(f))}function g(f){return f instanceof S}function x(){return{node:o(),preformatted:!0}}function w(f){let d=f.style.fontFamily.match("monospace")!==null;return d||function(_){for(_=_.parentElement;_!==null;){if(_.style.fontFamily.match("monospace")!==null)return!0;_=_.parentElement}return!1}(f)?{after:_=>{let I=f.parentNode;return I!=null&&f!==I.lastChild&&_.push(a.$createLineBreakNode()),_},node:d?o():null,preformatted:d}:{node:null}}function b(){return{node:o(),preformatted:!0}}function h(){return{node:null}}function r(f){return{after:d=>(f.parentNode&&f.parentNode.nextSibling&&d.push(a.$createLineBreakNode()),d),node:null}}function C(f){return f.classList.contains("js-file-line-container")}let m={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"},k={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function s(f){return k[f]||f}class u extends a.TextNode{constructor(d,_,I){super(d,I),this.__highlightType=_}static getType(){return"code-highlight"}static clone(d){return new u(d.__text,d.__highlightType||void 0,d.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(d){let _=super.createDOM(d);return d=T(d.theme,this.__highlightType),n.addClassNamesToElement(_,d),_}updateDOM(d,_,I){let B=super.updateDOM(d,_,I);return(d=T(I.theme,d.__highlightType))!==(I=T(I.theme,this.__highlightType))&&(d&&n.removeClassNamesFromElement(_,d),I&&n.addClassNamesToElement(_,I)),B}static importJSON(d){let _=v(d.text,d.highlightType);return _.setFormat(d.format),_.setDetail(d.detail),_.setMode(d.mode),_.setStyle(d.style),_}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return o()}}function T(f,d){return d&&f&&f.codeHighlight&&f.codeHighlight[d]}function v(f,d){return a.$applyNodeReplacement(new u(f,d))}function N(f){return f instanceof u}function O(f){let d=null,_=f.getPreviousSiblings();for(_.push(f);0<_.length&&(N(f=_.pop())&&(d=f),!a.$isLineBreakNode(f)););return d}function M(f){let d=null,_=f.getNextSiblings();for(_.unshift(f);0<_.length&&(N(f=_.shift())&&(d=f),!a.$isLineBreakNode(f)););return d}let D={defaultLanguage:"javascript",tokenize(f,d){return e.tokenize(f,e.languages[d||""]||e.languages[this.defaultLanguage])}};function R(f,d){var _=f.length;let I=-1;if(d)for(d=0;d<_;d++){let B=f[d];if(B!==" "&&B!==" "){I=d;break}}else for(--_;-1<_;_--)if((d=f[_])!==" "&&d!==" "){I=_;break}return I}function j(f){let d=null,_=-1;var I=f.getPreviousSiblings();for(I.push(f);0<I.length;){var B=I.pop();if(N(B)){var Z=B.getTextContent();(Z=R(Z,!0))!==-1&&(d=B,_=Z)}if(a.$isLineBreakNode(B))break}if(d===null)for(f=f.getNextSiblings();0<f.length;){if(N(I=f.shift())&&(B=R(B=I.getTextContent(),!0))!==-1){d=I,_=B;break}if(a.$isLineBreakNode(I))break}return{node:d,offset:_}}function F(f){let d=null,_=-1;var I=f.getNextSiblings();for(I.unshift(f);0<I.length;){var B=I.shift();if(N(B)){var Z=B.getTextContent();(Z=R(Z,!1))!==-1&&(d=B,_=Z+1)}if(a.$isLineBreakNode(B))break}if(d===null)for(f=f.getPreviousSiblings();0<f.length;){if(N(I=f.pop())&&(B=R(B=I.getTextContent(),!1))!==-1){d=I,_=B+1;break}if(a.$isLineBreakNode(I))break}return{node:d,offset:_}}function Y(f,d,_){let I=f.getParent();g(I)?te(I,d,_):N(f)&&f.replace(a.$createTextNode(f.__text))}let ee=new Set;function te(f,d,_){let I=f.getKey();ee.has(I)||(ee.add(I),f.getLanguage()===void 0&&f.setLanguage(_.defaultLanguage),d.update(()=>{(function(B,Z){if(B=a.$getNodeByKey(B),g(B)&&B.isAttached()){var q=a.$getSelection();if(a.$isRangeSelection(q)){var z=(q=q.anchor).offset,W=q.type==="element"&&a.$isLineBreakNode(B.getChildAtIndex(q.offset-1)),U=0;if(!W){let V=q.getNode();U=z+V.getPreviousSiblings().reduce((ne,ae)=>ne+ae.getTextContentSize(),0)}Z()&&(W?q.getNode().select(z,z):B.getChildren().some(V=>{let ne=a.$isTextNode(V);if(ne||a.$isLineBreakNode(V)){let ae=V.getTextContentSize();if(ne&&ae>=U)return V.select(U,U),!0;U-=ae}return!1}))}else Z()}})(I,()=>{var B=a.$getNodeByKey(I);if(!g(B)||!B.isAttached())return!1;var Z=B.getTextContent();Z=X(Z=_.tokenize(Z,B.getLanguage()||_.defaultLanguage));var q=B.getChildren();for(B=0;B<q.length&&H(q[B],Z[B]);)B++;var z=q.length;let W=Z.length,U=Math.min(z,W)-B,V=0;for(;V<U;)if(V++,!H(q[z-V],Z[W-V])){V--;break}q=B,z-=V,Z=Z.slice(B,W-V);let{from:ne,to:ae,nodesForReplacement:oe}={from:q,nodesForReplacement:Z,to:z};return!(ne===ae&&!oe.length)&&(f.splice(ne,ae-ne,oe),!0)})},{onUpdate:()=>{ee.delete(I)},skipTransforms:!0}))}function X(f){let d=[];return f.forEach(_=>{if(typeof _=="string"){_=_.split(`
|
|
14
|
-
`);for(var I=0;I<_.length;I++){let B=_[I];B.length&&d.push(v(B)),I<_.length-1&&d.push(a.$createLineBreakNode())}}else({content:I}=_),typeof I=="string"?d.push(v(I,_.type)):Array.isArray(I)&&I.length===1&&typeof I[0]=="string"?d.push(v(I[0],_.type)):Array.isArray(I)&&d.push(...X(I))}),d}function H(f,d){return N(f)&&N(d)?f.__text===d.__text&&f.__highlightType===d.__highlightType:!(!a.$isLineBreakNode(f)||!a.$isLineBreakNode(d))}function L(f){var d=a.$getSelection();if(!a.$isRangeSelection(d)||d.isCollapsed())return!1;d=d.getNodes();for(var _=0;_<d.length;_++){var I=d[_];if(!N(I)&&!a.$isLineBreakNode(I))return!1}for((_=O(d[0]))!=null&&l(_,f),_=1;_<d.length;_++)I=d[_],a.$isLineBreakNode(d[_-1])&&N(I)&&l(I,f);return!0}function l(f,d){let _=f.getTextContent();d===a.INDENT_CONTENT_COMMAND?0<_.length&&/\s/.test(_[0])?f.setTextContent(" "+_):(d=v(" "),f.insertBefore(d)):_.indexOf(" ")===0&&(_.length===1?f.remove():f.setTextContent(_.substring(1)))}function c(f,d){let _=a.$getSelection();if(!a.$isRangeSelection(_))return!1;let{anchor:I,focus:B}=_,Z=I.offset,q=B.offset,z=I.getNode(),W=B.getNode();var U=f===a.KEY_ARROW_UP_COMMAND;if(!N(z)||!N(W))return!1;if(!d.altKey){if(_.isCollapsed()){if(f=z.getParentOrThrow(),U&&Z===0&&z.getPreviousSibling()===null){if(f.getPreviousSibling()===null)return f.selectPrevious(),d.preventDefault(),!0}else if(!U&&Z===z.getTextContentSize()&&z.getNextSibling()===null&&f.getNextSibling()===null)return f.selectNext(),d.preventDefault(),!0}return!1}var V=O(z);let ne=M(W);if(V==null||ne==null)return!1;let ae=V.getNodesBetween(ne);for(let P=0;P<ae.length;P++){let K=ae[P];if(!N(K)&&!a.$isLineBreakNode(K))return!1}if(d.preventDefault(),d.stopPropagation(),d=U?V.getPreviousSibling():ne.getNextSibling(),!a.$isLineBreakNode(d)||(V=U?d.getPreviousSibling():d.getNextSibling())==null)return!0;let oe=(U=U?O(V):M(V))!=null?U:V;return d.remove(),ae.forEach(P=>P.remove()),f===a.KEY_ARROW_UP_COMMAND?(ae.forEach(P=>oe.insertBefore(P)),oe.insertBefore(d)):(oe.insertAfter(d),oe=d,ae.forEach(P=>{oe.insertAfter(P),oe=P})),_.setTextNodeRange(z,Z,W,q),!0}function $(f,d){let _=a.$getSelection();if(!a.$isRangeSelection(_))return!1;let I,B,{anchor:Z,focus:q}=_,z=Z.getNode(),W=q.getNode();return f=f===a.MOVE_TO_START,!(!N(z)||!N(W))&&({node:I,offset:B}=f?j(W):F(W),I!==null&&B!==-1&&_.setTextNodeRange(I,B,I,B),d.preventDefault(),d.stopPropagation(),!0)}return Ue.$createCodeHighlightNode=v,Ue.$createCodeNode=o,Ue.$isCodeHighlightNode=N,Ue.$isCodeNode=g,Ue.CODE_LANGUAGE_FRIENDLY_NAME_MAP=m,Ue.CODE_LANGUAGE_MAP=k,Ue.CodeHighlightNode=u,Ue.CodeNode=S,Ue.DEFAULT_CODE_LANGUAGE="javascript",Ue.PrismTokenizer=D,Ue.getCodeLanguages=()=>Object.keys(e.languages).filter(f=>typeof e.languages[f]!="function").sort(),Ue.getDefaultCodeLanguage=()=>"javascript",Ue.getEndOfCodeInLine=F,Ue.getFirstCodeHighlightNodeOfLine=O,Ue.getLanguageFriendlyName=function(f){return f=s(f),m[f]||f},Ue.getLastCodeHighlightNodeOfLine=M,Ue.getStartOfCodeInLine=j,Ue.normalizeCodeLang=s,Ue.registerCodeHighlighting=function(f,d){if(!f.hasNodes([S,u]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return d==null&&(d=D),n.mergeRegister(f.registerMutationListener(S,_=>{f.update(()=>{for(let[Z,q]of _)if(q!=="destroyed"){var I=a.$getNodeByKey(Z);if(I!==null)e:{var B=I;if((I=f.getElementByKey(B.getKey()))===null)break e;let z=(B=B.getChildren()).length;if(z===I.__cachedChildrenLength)break e;I.__cachedChildrenLength=z;let W="1",U=1;for(let V=0;V<z;V++)a.$isLineBreakNode(B[V])&&(W+=`
|
|
15
|
-
`+ ++U);I.setAttribute("data-gutter",W)}}})}),f.registerNodeTransform(S,_=>te(_,f,d)),f.registerNodeTransform(a.TextNode,_=>Y(_,f,d)),f.registerNodeTransform(u,_=>Y(_,f,d)),f.registerCommand(a.INDENT_CONTENT_COMMAND,()=>L(a.INDENT_CONTENT_COMMAND),a.COMMAND_PRIORITY_LOW),f.registerCommand(a.OUTDENT_CONTENT_COMMAND,()=>L(a.OUTDENT_CONTENT_COMMAND),a.COMMAND_PRIORITY_LOW),f.registerCommand(a.KEY_ARROW_UP_COMMAND,_=>c(a.KEY_ARROW_UP_COMMAND,_),a.COMMAND_PRIORITY_LOW),f.registerCommand(a.KEY_ARROW_DOWN_COMMAND,_=>c(a.KEY_ARROW_DOWN_COMMAND,_),a.COMMAND_PRIORITY_LOW),f.registerCommand(a.MOVE_TO_END,_=>$(a.MOVE_TO_END,_),a.COMMAND_PRIORITY_LOW),f.registerCommand(a.MOVE_TO_START,_=>$(a.MOVE_TO_START,_),a.COMMAND_PRIORITY_LOW))},Ue}function sc(){return Fr?Pr:(Fr=1,Pr=ku())}var Br,zr,Hr,_i=sc(),jt={};function Po(){return Hr?zr:(Hr=1,zr=function(){if(Br)return jt;Br=1;var n=mt(),a=Ze();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,r={},C){super(C);let{target:m=null,rel:k=null,title:s=null}=r;this.__url=h,this.__target=m,this.__rel=k,this.__title=s}createDOM(h){let r=document.createElement("a");return r.href=this.__url,this.__target!==null&&(r.target=this.__target),this.__rel!==null&&(r.rel=this.__rel),this.__title!==null&&(r.title=this.__title),n.addClassNamesToElement(r,h.theme.link),r}updateDOM(h,r){let C=this.__url,m=this.__target,k=this.__rel,s=this.__title;return C!==h.__url&&(r.href=C),m!==h.__target&&(m?r.target=m:r.removeAttribute("target")),k!==h.__rel&&(k?r.rel=k:r.removeAttribute("rel")),s!==h.__title&&(s?r.title=s:r.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:E,priority:1})}}static importJSON(h){let r=S(h.url,{rel:h.rel,target:h.target,title:h.title});return r.setFormat(h.format),r.setIndent(h.indent),r.setDirection(h.direction),r}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,r=!0){return h=this.getParentOrThrow().insertNewAfter(h,r),a.$isElementNode(h)?(r=S(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),h.append(r),r):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(h,r){if(!a.$isRangeSelection(r))return!1;h=r.anchor.getNode();let C=r.focus.getNode();return this.isParentOf(h)&&this.isParentOf(C)&&0<r.getTextContent().length}}function E(b){let h=null;if(n.isHTMLAnchorElement(b)){let r=b.textContent;r!==null&&r!==""&&(h=S(b.getAttribute("href")||"",{rel:b.getAttribute("rel"),target:b.getAttribute("target"),title:b.getAttribute("title")}))}return{node:h}}function S(b,h){return a.$applyNodeReplacement(new i(b,h))}function o(b){return b instanceof i}class g extends i{static getType(){return"autolink"}static clone(h){return new g(h.__url,{rel:h.__rel,target:h.__target,title:h.__title},h.__key)}static importJSON(h){let r=x(h.url,{rel:h.rel,target:h.target,title:h.title});return r.setFormat(h.format),r.setIndent(h.indent),r.setDirection(h.direction),r}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(h,r=!0){return h=this.getParentOrThrow().insertNewAfter(h,r),a.$isElementNode(h)?(r=x(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),h.append(r),r):null}}function x(b,h){return a.$applyNodeReplacement(new g(b,h))}let w=a.createCommand("TOGGLE_LINK_COMMAND");return jt.$createAutoLinkNode=x,jt.$createLinkNode=S,jt.$isAutoLinkNode=function(b){return b instanceof g},jt.$isLinkNode=o,jt.AutoLinkNode=g,jt.LinkNode=i,jt.TOGGLE_LINK_COMMAND=w,jt.toggleLink=function(b,h={}){let{target:r,title:C}=h,m=h.rel===void 0?"noopener":h.rel;if(h=a.$getSelection(),a.$isRangeSelection(h))if(h=h.extract(),b===null)h.forEach(s=>{if(o(s=s.getParent())){let u=s.getChildren();for(let T=0;T<u.length;T++)s.insertBefore(u[T]);s.remove()}});else{if(h.length===1){var k=h[0];if(k=o(k)?k:function(T,v){for(;T!==null&&(T=T.getParent())!==null&&!v(T););return T}(k,o),k!==null)return k.setURL(b),r!==void 0&&k.setTarget(r),m!==null&&k.setRel(m),void(C!==void 0&&k.setTitle(C))}let s=null,u=null;h.forEach(T=>{var v=T.getParent();if(v!==u&&v!==null&&(!a.$isElementNode(T)||T.isInline()))if(o(v))u=v,v.setURL(b),r!==void 0&&v.setTarget(r),m!==null&&u.setRel(m),C!==void 0&&u.setTitle(C);else if(v.is(s)||(s=v,u=S(b,{rel:m,target:r}),o(v)?T.getPreviousSibling()===null?v.insertBefore(u):v.insertAfter(u):T.insertBefore(u)),o(T)){if(!T.is(u)){if(u!==null){v=T.getChildren();for(let N=0;N<v.length;N++)u.append(v[N])}T.remove()}}else u!==null&&u.append(T)})}},jt}())}var Wr,Vr,Ur,Kt=Po(),it={};function Tu(){if(Wr)return it;Wr=1;var e=Ze(),n=mt();function a(H){throw Error(`Minified Lexical error #${H}; visit https://lexical.dev/docs/error?code=${H} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(H){let L=1;for(H=H.getParent();H!=null;){if(v(H)){if(F(H=H.getParent())){L++,H=H.getParent();continue}a(40)}break}return L}function E(H){F(H=H.getParent())||a(40);let L=H;for(;L!==null;)L=L.getParent(),F(L)&&(H=L);return H}function S(H){let L=[];H=H.getChildren().filter(v);for(let l=0;l<H.length;l++){let c=H[l],$=c.getFirstChild();F($)?L=L.concat(S($)):L.push(c)}return L}function o(H){return v(H)&&F(H.getFirstChild())}function g(H){return T().append(H)}function x(H,L){return v(H)&&(L.length===0||L.length===1&&H.is(L[0])&&H.getChildrenSize()===0)}function w(H,L){H.splice(H.getChildrenSize(),0,L)}function b(H,L){if(F(H))return H;let l=H.getPreviousSibling(),c=H.getNextSibling(),$=T();return $.setFormat(H.getFormatType()),$.setIndent(H.getIndent()),w($,H.getChildren()),F(l)&&L===l.getListType()?(l.append($),H.remove(),F(c)&&L===c.getListType()&&(w(l,c.getChildren()),c.remove()),l):F(c)&&L===c.getListType()?(c.getFirstChildOrThrow().insertBefore($),H.remove(),c):((L=j(L)).append($),H.replace(L),r(L),L)}function h(H,L){var l=H.getLastChild();let c=L.getFirstChild();l&&c&&o(l)&&o(c)&&(h(l.getFirstChild(),c.getFirstChild()),c.remove()),0<(l=L.getChildren()).length&&(H.append(...l),r(H)),L.remove()}function r(H,L){if((H=L||H.getChildren())!==void 0)for(L=0;L<H.length;L++){let f=H[L];if(v(f)){let d=f.getValue();var l=f,c=l.getParent(),$=1;for(c!=null&&(F(c)?$=c.getStart():a(44)),l=l.getPreviousSiblings(),c=0;c<l.length;c++){let _=l[c];v(_)&&!F(_.getFirstChild())&&$++}d!==$&&f.setValue($)}}}function C(H){if(!o(H)){var L=H.getParent(),l=L?L.getParent():void 0,c=l?l.getParent():void 0;if(F(c)&&v(l)&&F(L)){var $=L?L.getFirstChild():void 0,f=L?L.getLastChild():void 0;if(H.is($))l.insertBefore(H),L.isEmpty()&&l.remove();else if(H.is(f))l.insertAfter(H),L.isEmpty()&&l.remove();else{var d=L.getListType();$=T();let _=j(d);$.append(_),H.getPreviousSiblings().forEach(I=>_.append(I)),f=T(),d=j(d),f.append(d),w(d,H.getNextSiblings()),l.insertBefore($),l.insertAfter(f),l.replace(H)}r(L),r(c)}}}class m extends e.ElementNode{static getType(){return"listitem"}static clone(L){return new m(L.__value,L.__checked,L.__key)}constructor(L,l,c){super(c),this.__value=L===void 0?1:L,this.__checked=l}createDOM(L){let l=document.createElement("li"),c=this.getParent();return F(c)&&c.getListType()==="check"&&s(l,this,null),l.value=this.__value,k(l,L.theme,this),l}updateDOM(L,l,c){let $=this.getParent();return F($)&&$.getListType()==="check"&&s(l,this,L),l.value=this.__value,k(l,c.theme,this),!1}static transform(){return L=>{let l=L.getParent();F(l)&&(r(l),l.getListType()!=="check"&&L.getChecked()!=null&&L.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:u,priority:0})}}static importJSON(L){let l=new m(L.value,L.checked);return l.setFormat(L.format),l.setDirection(L.direction),l}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...L){for(let l=0;l<L.length;l++){let c=L[l];if(e.$isElementNode(c)&&this.canMergeWith(c)){let $=c.getChildren();this.append(...$),c.remove()}else super.append(c)}return this}replace(L,l){if(v(L))return super.replace(L);this.setIndent(0);let c=this.getParentOrThrow();if(!F(c))return L;if(c.__first===this.getKey())c.insertBefore(L);else if(c.__last===this.getKey())c.insertAfter(L);else{let $=j(c.getListType()),f=this.getNextSibling();for(;f;){let d=f;f=f.getNextSibling(),$.append(d)}c.insertAfter(L),L.insertAfter($)}return l&&this.getChildren().forEach($=>{L.append($)}),this.remove(),c.getChildrenSize()===0&&c.remove(),L}insertAfter(L,l=!0){var c=this.getParentOrThrow();F(c)||a(39);var $=this.getNextSiblings();if(v(L))return l=super.insertAfter(L,l),F(L=L.getParentOrThrow())&&r(L),l;if(F(L)&&L.getListType()===c.getListType()){for(c=L,$=(L=L.getChildren()).length-1;0<=$;$--)c=L[$],this.insertAfter(c,l);return c}if(c.insertAfter(L,l),$.length!==0){let f=j(c.getListType());$.forEach(d=>f.append(d)),L.insertAfter(f,l)}return L}remove(L){let l=this.getPreviousSibling(),c=this.getNextSibling();super.remove(L),l&&c&&o(l)&&o(c)?(h(l.getFirstChild(),c.getFirstChild()),c.remove()):c&&F(L=c.getParent())&&r(L)}insertNewAfter(L,l=!0){return L=T(this.__checked==null&&void 0),this.insertAfter(L,l),L}collapseAtStart(L){let l=e.$createParagraphNode();this.getChildren().forEach(d=>l.append(d));var c=this.getParentOrThrow(),$=c.getParentOrThrow();let f=v($);return c.getChildrenSize()===1?f?(c.remove(),$.select()):(c.insertBefore(l),c.remove(),c=L.anchor,L=L.focus,$=l.getKey(),c.type==="element"&&c.getNode().is(this)&&c.set($,c.offset,"element"),L.type==="element"&&L.getNode().is(this)&&L.set($,L.offset,"element")):(c.insertBefore(l),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(L){this.getWritable().__value=L}getChecked(){return this.getLatest().__checked}setChecked(L){this.getWritable().__checked=L}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var L=this.getParent();if(L===null)return this.getLatest().__indent;L=L.getParentOrThrow();let l=0;for(;v(L);)L=L.getParentOrThrow().getParentOrThrow(),l++;return l}setIndent(L){typeof L=="number"&&-1<L||a(117);let l=this.getIndent();for(;l!==L;)if(l<L){e:{var c=new Set;if(o(this)||c.has(this.getKey()))break e;let _=this.getParent();var $=this.getNextSibling(),f=this.getPreviousSibling();if(o($)&&o(f)){if(F(f=f.getFirstChild())){f.append(this);var d=$.getFirstChild();F(d)&&(w(f,d=d.getChildren()),$.remove(),c.add($.getKey())),r(f)}}else o($)?F($=$.getFirstChild())&&((c=$.getFirstChild())!==null&&c.insertBefore(this),r($)):o(f)?F($=f.getFirstChild())&&($.append(this),r($)):F(_)&&(c=T(),d=j(_.getListType()),c.append(d),d.append(this),f?f.insertAfter(c):$?$.insertBefore(c):_.append(c),r(d));F(_)&&r(_)}l++}else C(this),l--;return this}insertBefore(L){if(v(L)){let l=this.getParentOrThrow();F(l)&&r(l,this.getNextSiblings())}return super.insertBefore(L)}canInsertAfter(L){return v(L)}canReplaceWith(L){return v(L)}canMergeWith(L){return e.$isParagraphNode(L)||v(L)}extractWithChild(L,l){if(!e.$isRangeSelection(l))return!1;L=l.anchor.getNode();let c=l.focus.getNode();return this.isParentOf(L)&&this.isParentOf(c)&&this.getTextContent().length===l.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return j("bullet")}}function k(H,L,l){let c=[],$=[];var f=(L=L.list)?L.listitem:void 0;if(L&&L.nested)var d=L.nested.listitem;if(f!==void 0&&(f=f.split(" "),c.push(...f)),L){f=F(f=l.getParent())&&f.getListType()==="check";let _=l.getChecked();f&&!_||$.push(L.listitemUnchecked),f&&_||$.push(L.listitemChecked),f&&c.push(_?L.listitemChecked:L.listitemUnchecked)}d!==void 0&&(d=d.split(" "),l.getChildren().some(_=>F(_))?c.push(...d):$.push(...d)),0<$.length&&n.removeClassNamesFromElement(H,...$),0<c.length&&n.addClassNamesToElement(H,...c)}function s(H,L,l){F(L.getFirstChild())?(H.removeAttribute("role"),H.removeAttribute("tabIndex"),H.removeAttribute("aria-checked")):(H.setAttribute("role","checkbox"),H.setAttribute("tabIndex","-1"),l&&L.__checked===l.__checked||H.setAttribute("aria-checked",L.getChecked()?"true":"false"))}function u(H){return{node:T(H=n.isHTMLElement(H)&&H.getAttribute("aria-checked")==="true")}}function T(H){return e.$applyNodeReplacement(new m(void 0,H))}function v(H){return H instanceof m}class N extends e.ElementNode{static getType(){return"list"}static clone(L){return new N(L.__listType||R[L.__tag],L.__start,L.__key)}constructor(L,l,c){super(c),this.__listType=L=R[L]||L,this.__tag=L==="number"?"ol":"ul",this.__start=l}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(L){let l=document.createElement(this.__tag);return this.__start!==1&&l.setAttribute("start",String(this.__start)),l.__lexicalListType=this.__listType,O(l,L.theme,this),l}updateDOM(L,l,c){return L.__tag!==this.__tag||(O(l,c.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:D,priority:0}),ul:()=>({conversion:D,priority:0})}}static importJSON(L){let l=j(L.listType,L.start);return l.setFormat(L.format),l.setIndent(L.indent),l.setDirection(L.direction),l}exportDOM(L){return{element:L}=super.exportDOM(L),L&&(this.__start!==1&&L.setAttribute("start",String(this.__start)),this.__listType==="check"&&L.setAttribute("__lexicalListType","check")),{element:L}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...L){for(let c=0;c<L.length;c++){var l=L[c];if(v(l))super.append(l);else{let $=T();F(l)||e.$isElementNode(l)&&(l=e.$createTextNode(l.getTextContent())),$.append(l),super.append($)}}return r(this),this}extractWithChild(L){return v(L)}}function O(H,L,l){let c=[],$=[];var f=L.list;if(f!==void 0){let _=f[`${l.__tag}Depth`]||[],I=(L=i(l)-1)%_.length;var d=_[I];let B,Z=f[l.__tag];if((f=f.nested)!==void 0&&f.list&&(B=f.list),Z!==void 0&&c.push(Z),d!==void 0)for(d=d.split(" "),c.push(...d),d=0;d<_.length;d++)d!==I&&$.push(l.__tag+d);B!==void 0&&(l=B.split(" "),1<L?c.push(...l):$.push(...l))}0<$.length&&n.removeClassNamesFromElement(H,...$),0<c.length&&n.addClassNamesToElement(H,...c)}function M(H){let L=[];for(let c=0;c<H.length;c++){var l=H[c];v(l)?(L.push(l),1<(l=l.getChildren()).length&&l.forEach($=>{F($)&&L.push(g($))})):L.push(g(l))}return L}function D(H){let L=H.nodeName.toLowerCase(),l=null;return L==="ol"?l=j("number",H.start):L==="ul"&&(l=n.isHTMLElement(H)&&H.getAttribute("__lexicallisttype")==="check"?j("check"):j("bullet")),{after:M,node:l}}let R={ol:"number",ul:"bullet"};function j(H,L=1){return e.$applyNodeReplacement(new N(H,L))}function F(H){return H instanceof N}let Y=e.createCommand("INSERT_UNORDERED_LIST_COMMAND"),ee=e.createCommand("INSERT_ORDERED_LIST_COMMAND"),te=e.createCommand("INSERT_CHECK_LIST_COMMAND"),X=e.createCommand("REMOVE_LIST_COMMAND");return it.$createListItemNode=T,it.$createListNode=j,it.$getListDepth=i,it.$handleListInsertParagraph=function(){var H=e.$getSelection();if(!e.$isRangeSelection(H)||!H.isCollapsed()||!v(H=H.anchor.getNode())||H.getTextContent()!=="")return!1;var L=E(H),l=H.getParent();F(l)||a(40);let c,$=l.getParent();if(e.$isRootOrShadowRoot($))c=e.$createParagraphNode(),L.insertAfter(c);else{if(!v($))return!1;c=T(),$.insertAfter(c)}if(c.select(),0<(L=H.getNextSiblings()).length){let f=j(l.getListType());e.$isParagraphNode(c)?c.insertAfter(f):((l=T()).append(f),c.insertAfter(l)),L.forEach(d=>{d.remove(),f.append(d)})}return function(f){for(;f.getNextSibling()==null&&f.getPreviousSibling()==null;){let d=f.getParent();if(d==null||!v(f)&&!F(f))break;f=d}f.remove()}(H),!0},it.$isListItemNode=v,it.$isListNode=F,it.INSERT_CHECK_LIST_COMMAND=te,it.INSERT_ORDERED_LIST_COMMAND=ee,it.INSERT_UNORDERED_LIST_COMMAND=Y,it.ListItemNode=m,it.ListNode=N,it.REMOVE_LIST_COMMAND=X,it.insertList=function(H,L){H.update(()=>{var l=e.$getSelection();if(e.$isRangeSelection(l)||e.DEPRECATED_$isGridSelection(l)){var c=l.getNodes(),$=(l=l.anchor.getNode()).getParent();if(x(l,c))c=j(L),e.$isRootOrShadowRoot($)?(l.replace(c),$=T(),e.$isElementNode(l)&&($.setFormat(l.getFormatType()),$.setIndent(l.getIndent())),c.append($)):v(l)&&(w(c,(l=l.getParentOrThrow()).getChildren()),l.replace(c));else for(l=new Set,$=0;$<c.length;$++){var f=c[$];if(e.$isElementNode(f)&&f.isEmpty()&&!l.has(f.getKey()))b(f,L);else if(e.$isLeafNode(f))for(f=f.getParent();f!=null;){let _=f.getKey();if(F(f)){if(!l.has(_)){var d=j(L);w(d,f.getChildren()),f.replace(d),r(d),l.add(_)}break}if(d=f.getParent(),e.$isRootOrShadowRoot(d)&&!l.has(_)){l.add(_),b(f,L);break}f=d}}}})},it.removeList=function(H){H.update(()=>{let L=e.$getSelection();if(e.$isRangeSelection(L)){var l=new Set,c=L.getNodes(),$=L.anchor.getNode();if(x($,c))l.add(E($));else for($=0;$<c.length;$++){var f=c[$];e.$isLeafNode(f)&&(f=n.$getNearestNodeOfType(f,m))!=null&&l.add(E(f))}for(let d of l){l=d,c=S(d);for(let _ of c)w(c=e.$createParagraphNode(),_.getChildren()),l.insertAfter(c),l=c,_.__key===L.anchor.key&&L.anchor.set(c.getKey(),0,"element"),_.__key===L.focus.key&&L.focus.set(c.getKey(),0,"element"),_.remove();d.remove()}}})},it}function Ki(){return Ur?Vr:(Ur=1,Vr=Tu())}var Gr,Kr,Yr,qr,Jr,Zr,Xr,Qr,ea,ta,na,oa,ht=Ki(),Pe={},Et={},Lt={},Qn={};function lc(){return Yr?Kr:(Yr=1,Kr=function(){if(Gr)return Qn;Gr=1;var n=Yn(),a=Ze();function i(o,g,x,w=null){let b=w==null||g.isSelected(),h=a.$isElementNode(g)&&g.excludeFromCopy("html");var r=g;w!==null&&(r=n.$cloneWithProperties(g),r=a.$isTextNode(r)&&w!=null?n.$sliceSelectedTextNodeContent(w,r):r);let C=a.$isElementNode(r)?r.getChildren():[],{element:m,after:k}=r.exportDOM(o);if(!m)return!1;let s=document.createDocumentFragment();for(let u=0;u<C.length;u++){let T=C[u],v=i(o,T,s,w);!b&&a.$isElementNode(g)&&v&&g.extractWithChild(T,w,"html")&&(b=!0)}return b&&!h?(m.append(s),x.append(m),k&&(o=k.call(r,m))&&m.replaceWith(o)):x.append(s),b}let E=new Set(["STYLE","SCRIPT"]);function S(o,g,x=new Map,w,b=!1){let h=[];if(E.has(o.nodeName))return h;let r=null;var{nodeName:C}=o,m=g._htmlConversions.get(C.toLowerCase());if(C=null,m!==void 0)for(k of m)(m=k(o))!==null&&(C===null||C.priority<m.priority)&&(C=m);var k=(k=C!==null?C.conversion:null)?k(o,void 0,b):null;if(C=null,k!==null){if(C=k.after,r=k.node,r!==null){for(var[,s]of x)if(r=s(r,w),!r)break;r&&h.push(r)}k.forChild!=null&&x.set(o.nodeName,k.forChild)}for(o=o.childNodes,w=[],s=0;s<o.length;s++)w.push(...S(o[s],g,new Map(x),r,b||(k&&k.preformatted)===!0));return C!=null&&(w=C(w)),r==null?h=h.concat(w):a.$isElementNode(r)&&r.append(...w),h}return Qn.$generateHtmlFromNodes=function(o,g){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 x=document.createElement("div"),w=a.$getRoot().getChildren();for(let b=0;b<w.length;b++)i(o,w[b],x,g);return x.innerHTML},Qn.$generateNodesFromDOM=function(o,g){let x=[];g=g.body?g.body.childNodes:[];for(let b=0;b<g.length;b++){var w=g[b];E.has(w.nodeName)||(w=S(w,o))!==null&&(x=x.concat(w))}return x},Qn}())}function $u(){if(qr)return Lt;qr=1;var e=lc(),n=Yn(),a=mt(),i=Ze();function E(C){throw Error(`Minified Lexical error #${C}; visit https://lexical.dev/docs/error?code=${C} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function S(C){let m=i.$getSelection();if(m==null)throw Error("Expected valid LexicalSelection");return i.$isRangeSelection(m)&&m.isCollapsed()||m.getNodes().length===0?"":e.$generateHtmlFromNodes(C,m)}function o(C){let m=i.$getSelection();if(m==null)throw Error("Expected valid LexicalSelection");return i.$isRangeSelection(m)&&m.isCollapsed()||m.getNodes().length===0?null:JSON.stringify(w(C,m))}function g(C,m,k){(i.DEPRECATED_$isGridSelection(k)||a.$findMatchingParent(k.anchor.getNode(),s=>i.DEPRECATED_$isGridCellNode(s))!==null&&a.$findMatchingParent(k.focus.getNode(),s=>i.DEPRECATED_$isGridCellNode(s))!==null)&&m.length===1&&i.DEPRECATED_$isGridNode(m[0])?function(s,u,T,v){s.length===1&&i.DEPRECATED_$isGridNode(s[0])||E(42);var N=s[0];s=N.getChildren(),T=N.getFirstChildOrThrow().getChildrenSize();var O=N.getChildrenSize(),M=a.$findMatchingParent(u.anchor.getNode(),te=>i.DEPRECATED_$isGridCellNode(te));u=(N=M&&a.$findMatchingParent(M,te=>i.DEPRECATED_$isGridRowNode(te)))&&a.$findMatchingParent(N,te=>i.DEPRECATED_$isGridNode(te)),i.DEPRECATED_$isGridCellNode(M)&&i.DEPRECATED_$isGridRowNode(N)&&i.DEPRECATED_$isGridNode(u)||E(43);var D=N.getIndexWithinParent(),R=Math.min(u.getChildrenSize()-1,D+O-1);let j,F;O=M.getIndexWithinParent(),M=Math.min(N.getChildrenSize()-1,O+T-1),T=Math.min(O,M),N=Math.min(D,R),O=Math.max(O,M),D=Math.max(D,R),R=u.getChildren(),M=0;for(let te=N;te<=D;te++){var Y=R[te];i.DEPRECATED_$isGridRowNode(Y)||E(24);var ee=s[M];i.DEPRECATED_$isGridRowNode(ee)||E(24),Y=Y.getChildren(),ee=ee.getChildren();let X=0;for(let H=T;H<=O;H++){let L=Y[H];i.DEPRECATED_$isGridCellNode(L)||E(25);let l=ee[X];i.DEPRECATED_$isGridCellNode(l)||E(25),te===N&&H===T?j=L.getKey():te===D&&H===O&&(F=L.getKey());let c=L.getChildren();l.getChildren().forEach($=>{i.$isTextNode($)&&i.$createParagraphNode().append($),L.append($)}),c.forEach($=>$.remove()),X++}M++}j&&F&&(s=i.DEPRECATED_$createGridSelection(),s.set(u.getKey(),j,F),i.$setSelection(s),v.dispatchCommand(i.SELECTION_CHANGE_COMMAND,void 0))}(m,k,!1,C):function(s,u){let T=[],v=null;for(let N=0;N<s.length;N++){let O=s[N],M=i.$isLineBreakNode(O);if(M||i.$isDecoratorNode(O)&&O.isInline()||i.$isElementNode(O)&&O.isInline()||i.$isTextNode(O)||O.isParentRequired()){if(v===null&&(v=O.createParentElementNode(),T.push(v),M))continue;v!==null&&v.append(O)}else T.push(O),v=null}i.$isRangeSelection(u)?u.insertNodes(T):i.DEPRECATED_$isGridSelection(u)&&(s=u.anchor.getNode(),i.DEPRECATED_$isGridCellNode(s)||E(41),s.append(...T))}(m,k)}function x(C,m,k,s=[]){let u=m==null||k.isSelected(m),T=i.$isElementNode(k)&&k.excludeFromCopy("html");var v=k;if(m!==null){var N=n.$cloneWithProperties(k);v=N=i.$isTextNode(N)&&m!=null?n.$sliceSelectedTextNodeContent(m,N):N}let O=i.$isElementNode(v)?v.getChildren():[];var M=v;(N=M.exportJSON()).type!==M.constructor.getType()&&E(58);var D=N.children;for(i.$isElementNode(M)&&(Array.isArray(D)||E(59)),i.$isTextNode(v)&&(0<(v=v.__text).length?N.text=v:u=!1),v=0;v<O.length;v++)D=x(C,m,M=O[v],N.children),!u&&i.$isElementNode(k)&&D&&k.extractWithChild(M,m,"clone")&&(u=!0);if(u&&!T)s.push(N);else if(Array.isArray(N.children))for(C=0;C<N.children.length;C++)s.push(N.children[C]);return u}function w(C,m){let k=[],s=i.$getRoot().getChildren();for(let u=0;u<s.length;u++)x(C,m,s[u],k);return{namespace:C._config.namespace,nodes:k}}function b(C){let m=[];for(let k=0;k<C.length;k++){let s=i.$parseSerializedNode(C[k]);i.$isTextNode(s)&&n.$addNodeStyle(s),m.push(s)}return m}let h=null;function r(C,m){var k=window.getSelection();if(!k)return!1;var s=k.anchorNode;if(k=k.focusNode,s!==null&&k!==null&&!i.isSelectionWithinEditor(C,s,k)||(m.preventDefault(),m=m.clipboardData,s=i.$getSelection(),m===null||s===null))return!1;k=S(C),C=o(C);let u="";return s!==null&&(u=s.getTextContent()),k!==null&&m.setData("text/html",k),C!==null&&m.setData("application/x-lexical-editor",C),m.setData("text/plain",u),!0}return Lt.$generateJSONFromSelectedNodes=w,Lt.$generateNodesFromSerializedNodes=b,Lt.$getHtmlContent=S,Lt.$getLexicalContent=o,Lt.$insertDataTransferForPlainText=function(C,m){(C=C.getData("text/plain"))!=null&&m.insertRawText(C)},Lt.$insertDataTransferForRichText=function(C,m,k){var s=C.getData("application/x-lexical-editor");if(s)try{let T=JSON.parse(s);if(T.namespace===k._config.namespace&&Array.isArray(T.nodes))return g(k,b(T.nodes),m)}catch{}if(s=C.getData("text/html"))try{var u=new DOMParser().parseFromString(s,"text/html");return g(k,e.$generateNodesFromDOM(k,u),m)}catch{}if((C=C.getData("text/plain"))!=null)if(i.$isRangeSelection(m))for(k=(C=C.split(/\r?\n/)).length,u=0;u<k;u++)m.insertText(C[u]),u<k-1&&m.insertParagraph();else m.insertRawText(C)},Lt.$insertGeneratedNodes=g,Lt.copyToClipboard=async function(C,m){if(h!==null)return!1;if(m!==null)return new Promise(T=>{C.update(()=>{T(r(C,m))})});var k=C.getRootElement();let s=document.getSelection();if(k===null||s===null)return!1;let u=document.createElement("span");return u.style.cssText="position: fixed; top: -1000px;",u.append(document.createTextNode("#")),k.append(u),(k=new Range).setStart(u,0),k.setEnd(u,1),s.removeAllRanges(),s.addRange(k),new Promise(T=>{let v=C.registerCommand(i.COPY_COMMAND,N=>(N instanceof ClipboardEvent&&(v(),h!==null&&(window.clearTimeout(h),h=null),T(r(C,N))),!0),i.COMMAND_PRIORITY_CRITICAL);h=window.setTimeout(()=>{v(),h=null,T(!1)},50),document.execCommand("copy"),u.remove()})},Lt}function Nu(){if(Xr)return Et;Xr=1;var e=function(){return Zr?Jr:(Zr=1,Jr=$u())}(),n=Yn(),a=mt(),i=Ze();function E(D,R){return document.caretRangeFromPoint!==void 0?(D=document.caretRangeFromPoint(D,R))===null?null:{node:D.startContainer,offset:D.startOffset}:document.caretPositionFromPoint!=="undefined"?(D=document.caretPositionFromPoint(D,R))===null?null:{node:D.offsetNode,offset:D.offset}:null}let S=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,o=S&&"documentMode"in document?document.documentMode:null,g=!(!S||!("InputEvent"in window)||o)&&"getTargetRanges"in new window.InputEvent("input"),x=S&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),w=S&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=S&&/^(?=.*Chrome).*/i.test(navigator.userAgent),h=S&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!b,r=i.createCommand("DRAG_DROP_PASTE_FILE");class C extends i.ElementNode{static getType(){return"quote"}static clone(R){return new C(R.__key)}constructor(R){super(R)}createDOM(R){let j=document.createElement("blockquote");return a.addClassNamesToElement(j,R.theme.quote),j}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:T,priority:0})}}static importJSON(R){let j=m();return j.setFormat(R.format),j.setIndent(R.indent),j.setDirection(R.direction),j}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(R,j){R=i.$createParagraphNode();let F=this.getDirection();return R.setDirection(F),this.insertAfter(R,j),R}collapseAtStart(){let R=i.$createParagraphNode();return this.getChildren().forEach(j=>R.append(j)),this.replace(R),!0}}function m(){return i.$applyNodeReplacement(new C)}class k extends i.ElementNode{static getType(){return"heading"}static clone(R){return new k(R.__tag,R.__key)}constructor(R,j){super(j),this.__tag=R}getTag(){return this.__tag}createDOM(R){let j=this.__tag,F=document.createElement(j);return(R=R.theme.heading)!==void 0&&a.addClassNamesToElement(F,R[j]),F}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:u,priority:0}),h2:()=>({conversion:u,priority:0}),h3:()=>({conversion:u,priority:0}),h4:()=>({conversion:u,priority:0}),h5:()=>({conversion:u,priority:0}),h6:()=>({conversion:u,priority:0}),p:R=>(R=R.firstChild)!==null&&s(R)?{conversion:()=>({node:null}),priority:3}:null,span:R=>s(R)?{conversion:()=>({node:v("h1")}),priority:3}:null}}static importJSON(R){let j=v(R.tag);return j.setFormat(R.format),j.setIndent(R.indent),j.setDirection(R.direction),j}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(R,j=!0){R=0<(R=R?R.anchor.offset:0)&&R<this.getTextContentSize()?v(this.getTag()):i.$createParagraphNode();let F=this.getDirection();return R.setDirection(F),this.insertAfter(R,j),R}collapseAtStart(){let R=this.isEmpty()?i.$createParagraphNode():v(this.getTag());return this.getChildren().forEach(j=>R.append(j)),this.replace(R),!0}extractWithChild(){return!0}}function s(D){return D.nodeName.toLowerCase()==="span"&&D.style.fontSize==="26pt"}function u(D){let R=null;return(D=D.nodeName.toLowerCase())!=="h1"&&D!=="h2"&&D!=="h3"&&D!=="h4"&&D!=="h5"&&D!=="h6"||(R=v(D)),{node:R}}function T(){return{node:m()}}function v(D){return i.$applyNodeReplacement(new k(D))}function N(D){let R=null;if(D instanceof DragEvent?R=D.dataTransfer:D instanceof ClipboardEvent&&(R=D.clipboardData),R===null)return[!1,[],!1];var j=R.types;return D=j.includes("Files"),j=j.includes("text/html")||j.includes("text/plain"),[D,Array.from(R.files),j]}function O(D,R){var j=i.$getSelection();if(i.$isRangeSelection(j)){var F=new Set;j=j.getNodes();for(let Y=0;Y<j.length;Y++){let ee=j[Y],te=ee.getKey();if(F.has(te))continue;let X=a.$getNearestBlockElementAncestorOrThrow(ee),H=X.getKey();X.canInsertTab()?(D(ee),F.add(te)):X.canIndent()&&!F.has(H)&&(F.add(H),R(X))}}}function M(D){return D=i.$getNearestNodeFromDOMNode(D),i.$isDecoratorNode(D)}return Et.$createHeadingNode=v,Et.$createQuoteNode=m,Et.$isHeadingNode=function(D){return D instanceof k},Et.$isQuoteNode=function(D){return D instanceof C},Et.DRAG_DROP_PASTE=r,Et.HeadingNode=k,Et.QuoteNode=C,Et.eventFiles=N,Et.registerRichText=function(D){return a.mergeRegister(D.registerCommand(i.CLICK_COMMAND,()=>{const R=i.$getSelection();return!!i.$isNodeSelection(R)&&(R.clear(),!0)},0),D.registerCommand(i.DELETE_CHARACTER_COMMAND,R=>{const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(j.deleteCharacter(R),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.DELETE_WORD_COMMAND,R=>{const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(j.deleteWord(R),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.DELETE_LINE_COMMAND,R=>{const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(j.deleteLine(R),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.CONTROLLED_TEXT_INSERTION_COMMAND,R=>{const j=i.$getSelection();if(typeof R=="string")i.$isRangeSelection(j)?j.insertText(R):i.DEPRECATED_$isGridSelection(j);else{if(!i.$isRangeSelection(j)&&!i.DEPRECATED_$isGridSelection(j))return!1;const F=R.dataTransfer;F!=null?e.$insertDataTransferForRichText(F,j,D):i.$isRangeSelection(j)&&(R=R.data)&&j.insertText(R)}return!0},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.REMOVE_TEXT_COMMAND,()=>{const R=i.$getSelection();return!!i.$isRangeSelection(R)&&(R.removeText(),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.FORMAT_TEXT_COMMAND,R=>{const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(j.formatText(R),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.FORMAT_ELEMENT_COMMAND,R=>{var j=i.$getSelection();if(!i.$isRangeSelection(j)&&!i.$isNodeSelection(j))return!1;j=j.getNodes();for(const F of j)a.$getNearestBlockElementAncestorOrThrow(F).setFormat(R);return!0},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.INSERT_LINE_BREAK_COMMAND,R=>{const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(j.insertLineBreak(R),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.INSERT_PARAGRAPH_COMMAND,()=>{const R=i.$getSelection();return!!i.$isRangeSelection(R)&&(R.insertParagraph(),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.INDENT_CONTENT_COMMAND,()=>(O(()=>{D.dispatchCommand(i.CONTROLLED_TEXT_INSERTION_COMMAND," ")},R=>{const j=R.getIndent();j!==10&&R.setIndent(j+1)}),!0),i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.OUTDENT_CONTENT_COMMAND,()=>(O(R=>{i.$isTextNode(R)&&(R=R.getTextContent())[R.length-1]===" "&&D.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!0)},R=>{const j=R.getIndent();j!==0&&R.setIndent(j-1)}),!0),i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ARROW_UP_COMMAND,R=>{var j=i.$getSelection();if(i.$isNodeSelection(j)&&!M(R.target)){if(0<(R=j.getNodes()).length)return R[0].selectPrevious(),!0}else if(i.$isRangeSelection(j)){if(j=i.$getAdjacentNode(j.focus,!0),i.$isDecoratorNode(j)&&!j.isIsolated()&&!j.isInline())return j.selectPrevious(),R.preventDefault(),!0;if(i.$isElementNode(j)&&!j.isInline()&&!j.canBeEmpty())return j.select(),R.preventDefault(),!0}return!1},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ARROW_DOWN_COMMAND,R=>{var j=i.$getSelection();if(i.$isNodeSelection(j)){if(0<(R=j.getNodes()).length)return R[0].selectNext(0,0),!0}else if(i.$isRangeSelection(j)){let F=j.focus;if(F.key==="root"&&F.offset===i.$getRoot().getChildrenSize())return R.preventDefault(),!0;if(j=i.$getAdjacentNode(j.focus,!1),i.$isDecoratorNode(j)&&!j.isIsolated()&&!j.isInline())return j.selectNext(),R.preventDefault(),!0}return!1},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ARROW_LEFT_COMMAND,R=>{const j=i.$getSelection();if(i.$isNodeSelection(j)){var F=j.getNodes();if(0<F.length)return R.preventDefault(),F[0].selectPrevious(),!0}return!!i.$isRangeSelection(j)&&!!n.$shouldOverrideDefaultCharacterSelection(j,!0)&&(F=R.shiftKey,R.preventDefault(),n.$moveCharacter(j,F,!0),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ARROW_RIGHT_COMMAND,R=>{const j=i.$getSelection();if(i.$isNodeSelection(j)&&!M(R.target)){var F=j.getNodes();if(0<F.length)return R.preventDefault(),F[0].selectNext(0,0),!0}return!!i.$isRangeSelection(j)&&(F=R.shiftKey,!!n.$shouldOverrideDefaultCharacterSelection(j,!1)&&(R.preventDefault(),n.$moveCharacter(j,F,!1),!0))},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_BACKSPACE_COMMAND,R=>{if(M(R.target))return!1;const j=i.$getSelection();if(!i.$isRangeSelection(j))return!1;R.preventDefault(),{anchor:R}=j;const F=R.getNode();return j.isCollapsed()&&R.offset===0&&!i.$isRootNode(F)&&0<a.$getNearestBlockElementAncestorOrThrow(F).getIndent()?D.dispatchCommand(i.OUTDENT_CONTENT_COMMAND,void 0):D.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_DELETE_COMMAND,R=>{if(M(R.target))return!1;const j=i.$getSelection();return!!i.$isRangeSelection(j)&&(R.preventDefault(),D.dispatchCommand(i.DELETE_CHARACTER_COMMAND,!1))},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ENTER_COMMAND,R=>{const j=i.$getSelection();if(!i.$isRangeSelection(j))return!1;if(R!==null){if((w||x||h)&&g)return!1;if(R.preventDefault(),R.shiftKey)return D.dispatchCommand(i.INSERT_LINE_BREAK_COMMAND,!1)}return D.dispatchCommand(i.INSERT_PARAGRAPH_COMMAND,void 0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.KEY_ESCAPE_COMMAND,()=>{const R=i.$getSelection();return!!i.$isRangeSelection(R)&&(D.blur(),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.DROP_COMMAND,R=>{const[,j]=N(R);if(0<j.length){var F=E(R.clientX,R.clientY);if(F!==null){const{offset:ee,node:te}=F;var Y=i.$getNearestNodeFromDOMNode(te);if(Y!==null){if(F=i.$createRangeSelection(),i.$isTextNode(Y))F.anchor.set(Y.getKey(),ee,"text"),F.focus.set(Y.getKey(),ee,"text");else{const X=Y.getParentOrThrow().getKey();Y=Y.getIndexWithinParent()+1,F.anchor.set(X,Y,"element"),F.focus.set(X,Y,"element")}F=i.$normalizeSelection__EXPERIMENTAL(F),i.$setSelection(F)}D.dispatchCommand(r,j)}return R.preventDefault(),!0}return R=i.$getSelection(),!!i.$isRangeSelection(R)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.DRAGSTART_COMMAND,R=>{[R]=N(R);const j=i.$getSelection();return!(R&&!i.$isRangeSelection(j))},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.DRAGOVER_COMMAND,R=>{var[j]=N(R);const F=i.$getSelection();return!(j&&!i.$isRangeSelection(F))&&((j=E(R.clientX,R.clientY))!==null&&(j=i.$getNearestNodeFromDOMNode(j.node),i.$isDecoratorNode(j)&&R.preventDefault()),!0)},i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.COPY_COMMAND,R=>(e.copyToClipboard(D,R instanceof ClipboardEvent?R:null),!0),i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.CUT_COMMAND,R=>(async function(j,F){await e.copyToClipboard(F,j instanceof ClipboardEvent?j:null),F.update(()=>{let Y=i.$getSelection();i.$isRangeSelection(Y)?Y.removeText():i.$isNodeSelection(Y)&&Y.getNodes().forEach(ee=>ee.remove())})}(R,D),!0),i.COMMAND_PRIORITY_EDITOR),D.registerCommand(i.PASTE_COMMAND,R=>{const[,j,F]=N(R);if(0<j.length&&!F)return D.dispatchCommand(r,j),!0;if(i.isSelectionCapturedInDecoratorInput(R.target))return!1;const Y=i.$getSelection();return!(!i.$isRangeSelection(Y)&&!i.DEPRECATED_$isGridSelection(Y))&&(function(ee,te){ee.preventDefault(),te.update(()=>{let X=i.$getSelection(),H=ee instanceof InputEvent||ee instanceof KeyboardEvent?null:ee.clipboardData;H!=null&&(i.$isRangeSelection(X)||i.DEPRECATED_$isGridSelection(X))&&e.$insertDataTransferForRichText(H,X,te)},{tag:"paste"})}(R,D),!0)},i.COMMAND_PRIORITY_EDITOR))},Et}function Yi(){return ea?Qr:(ea=1,Qr=Nu())}function _u(){if(ta)return Pe;ta=1;var e=Ze(),n=sc(),a=Ki(),i=Yi(),E=mt(),S=Po();function o(P,K){let J={};for(let Q of P)J[P=K(Q)]?J[P].push(Q):J[P]=[Q];return J}function g(P){return P=o(P,K=>K.type),{element:P.element||[],textFormat:P["text-format"]||[],textMatch:P["text-match"]||[]}}let x=/[!-/:-@[-`{-~\s]/;function w(P,K,J,Q){for(let ie of K)if((K=ie.export(P,re=>b(re,J,Q)))!=null)return K;return e.$isElementNode(P)?b(P,J,Q):e.$isDecoratorNode(P)?P.getTextContent():null}function b(P,K,J){let Q=[];P=P.getChildren();e:for(let ie of P){for(let re of J)if(P=re.export(ie,ue=>b(ue,K,J),(ue,de)=>h(ue,de,K)),P!=null){Q.push(P);continue e}e.$isLineBreakNode(ie)?Q.push(`
|
|
16
|
-
`):e.$isTextNode(ie)?Q.push(h(ie,ie.getTextContent(),K)):e.$isElementNode(ie)?Q.push(b(ie,K,J)):e.$isDecoratorNode(ie)&&Q.push(ie.getTextContent())}return Q.join("")}function h(P,K,J){let Q=K.trim(),ie=Q,re=new Set;for(let de of J){J=de.format[0];let pe=de.tag;if(C(P,J)&&!re.has(J)){re.add(J);var ue=r(P,!0);C(ue,J)||(ie=pe+ie),C(ue=r(P,!1),J)||(ie+=pe)}}return K.replace(Q,ie)}function r(P,K){let J=K?P.getPreviousSibling():P.getNextSibling();for(J||(P=P.getParentOrThrow()).isInline()&&(J=K?P.getPreviousSibling():P.getNextSibling());J;){if(e.$isElementNode(J)){if(!J.isInline())break;if(P=K?J.getLastDescendant():J.getFirstDescendant(),e.$isTextNode(P))return P;J=K?J.getPreviousSibling():J.getNextSibling()}if(e.$isTextNode(J))return J;if(!e.$isElementNode(J))break}return null}function C(P,K){return e.$isTextNode(P)&&P.hasFormat(K)}let m=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,k=m&&"documentMode"in document?document.documentMode:null;m&&"InputEvent"in window&&!k&&new window.InputEvent("input");let s=m&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=m&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T=m&&/^(?=.*Chrome).*/i.test(navigator.userAgent),v=m&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!T,N=/^\s{0,3}$/,O=/^```(\w{1,10})?\s?$/;function M(P){let K=g(P),J=function(Q){let ie={},re={},ue=[];for(let de of Q){({tag:Q}=de),ie[Q]=de;let pe=Q.replace(/(\*|\^|\+)/g,"\\$1");ue.push(pe),re[Q]=s||u||v?new RegExp(`(${pe})(?![${pe}\\s])(.*?[^${pe}\\s])${pe}(?!${pe})`):new RegExp(`(?<![\\\\${pe}])(${pe})((\\\\${pe})?.*?[^${pe}\\s](\\\\${pe})?)((?<!\\\\)|(?<=\\\\\\\\))(${pe})(?![\\\\${pe}])`)}return{fullMatchRegExpByTag:re,openTagsRegExp:new RegExp((s||u||v?"":"(?<![\\\\])")+"("+ue.join("|")+")","g"),transformersByTag:ie}}(K.textFormat);return(Q,ie)=>{var re=(Q=Q.split(`
|
|
17
|
-
`)).length;(ie=ie||e.$getRoot()).clear();for(let xe=0;xe<re;xe++){var ue=Q[xe];e:{var de=Q,pe=xe,ye=ie,be=de[pe].match(O);if(be){for(var ge=pe,se=de.length;++ge<se;)if(de[ge].match(O)){be=n.$createCodeNode(be[1]),de=e.$createTextNode(de.slice(pe+1,ge).join(`
|
|
18
|
-
`)),be.append(de),ye.append(be),ye=[be,ge];break e}}ye=[null,pe]}let[he,le]=ye;if(he!=null)xe=le;else{ye=ue,se=ie;var Re=K.element;ge=J,de=K.textMatch,pe=ye.trim(),be=e.$createTextNode(pe),(ue=e.$createParagraphNode()).append(be),se.append(ue);for(let{regExp:fe,replace:Ce}of Re)if(se=ye.match(fe)){be.setTextContent(ye.slice(se[0].length)),Ce(ue,[be],se,!0);break}D(be,ge,de),ue.isAttached()&&0<pe.length&&(ye=ue.getPreviousSibling(),e.$isParagraphNode(ye)||i.$isQuoteNode(ye)||a.$isListNode(ye))&&(ge=ye,a.$isListNode(ye)&&(ge=(ye=ye.getLastDescendant())==null?null:E.$findMatchingParent(ye,a.$isListItemNode)),ge!=null&&0<ge.getTextContentSize()&&(ge.splice(ge.getChildrenSize(),0,[e.$createLineBreakNode(),...ue.getChildren()]),ue.remove()))}}Q=ie.getChildren();for(let xe of Q)Q=xe,e.$isParagraphNode(Q)?(re=Q.getFirstChild(),Q=re==null||Q.getChildrenSize()===1&&e.$isTextNode(re)&&N.test(re.getTextContent())):Q=!1,Q&&xe.remove();e.$getSelection()!==null&&ie.selectEnd()}}function D(P,K,J){var Q=P.getTextContent();let ie=function(pe,ye){var be=pe.match(ye.openTagsRegExp);if(be==null)return null;for(let Re of be){var ge=Re.replace(/^\s/,"");if((be=ye.fullMatchRegExpByTag[ge])!=null&&(be=pe.match(be),ge=ye.transformersByTag[ge],be!=null&&ge!=null)){if(ge.intraword!==!1)return be;var{index:se=0}=be;if(ge=pe[se-1],se=pe[se+be[0].length],!(ge&&!x.test(ge)||se&&!x.test(se)))return be}}return null}(Q,K);if(ie){var re,ue;if(ie[0]===Q)var de=P;else{let pe=(Q=ie.index||0)+ie[0].length;Q===0?[de,re]=P.splitText(pe):[ue,de,re]=P.splitText(Q,pe)}if(de.setTextContent(ie[2]),P=K.transformersByTag[ie[1]])for(let pe of P.format)de.hasFormat(pe)||de.toggleFormat(pe);de.hasFormat("code")||D(de,K,J),ue&&D(ue,K,J),re&&D(re,K,J)}else R(P,J)}function R(P,K){e:for(;P;){for(let J of K){let Q=P.getTextContent().match(J.importRegExp);if(!Q)continue;let ie,re,ue,de=Q.index||0,pe=de+Q[0].length;de===0?[ie,P]=P.splitText(pe):[re,ie,ue]=P.splitText(de,pe),re&&R(re,K),ue&&(P=ue),J.replace(ie,Q);continue e}break}}function j(P,K,J){let Q=J.length;for(;K>=Q;K--){let ie=K-Q;if(F(P,ie,J,0,Q)&&P[ie+Q]!==" ")return ie}return-1}function F(P,K,J,Q,ie){for(let re=0;re<ie;re++)if(P[K+re]!==J[Q+re])return!1;return!0}let Y=P=>(K,J,Q)=>{(Q=P(Q)).append(...J),K.replace(Q),Q.select(0,0)},ee=P=>(K,J,Q)=>{var ie=K.getPreviousSibling();const re=a.$createListItemNode(P==="check"?Q[3]==="x":void 0);a.$isListNode(ie)&&ie.getListType()===P?(ie.append(re),K.remove()):((ie=a.$createListNode(P,P==="number"?Number(Q[2]):void 0)).append(re),K.replace(ie)),re.append(...J),re.select(0,0),(K=Math.floor(Q[1].length/4))&&re.setIndent(K)},te=(P,K,J)=>{const Q=[];var ie=P.getChildren();let re=0;for(const de of ie)if(a.$isListItemNode(de)){if(de.getChildrenSize()===1&&(ie=de.getFirstChild(),a.$isListNode(ie))){Q.push(te(ie,K,J+1));continue}ie=" ".repeat(4*J);var ue=P.getListType();ue=ue==="number"?`${P.getStart()+re}. `:ue==="check"?`- [${de.getChecked()?"x":" "}] `:"- ",Q.push(ie+ue+K(de)),re++}return Q.join(`
|
|
19
|
-
`)},X={dependencies:[i.HeadingNode],export:(P,K)=>{if(!i.$isHeadingNode(P))return null;const J=Number(P.getTag().slice(1));return"#".repeat(J)+" "+K(P)},regExp:/^(#{1,6})\s/,replace:Y(P=>i.$createHeadingNode("h"+P[1].length)),type:"element"},H={dependencies:[i.QuoteNode],export:(P,K)=>{if(!i.$isQuoteNode(P))return null;P=K(P).split(`
|
|
20
|
-
`),K=[];for(const J of P)K.push("> "+J);return K.join(`
|
|
21
|
-
`)},regExp:/^>\s/,replace:(P,K,J,Q)=>{if(Q&&(J=P.getPreviousSibling(),i.$isQuoteNode(J)))return J.splice(J.getChildrenSize(),0,[e.$createLineBreakNode(),...K]),J.select(0,0),void P.remove();(J=i.$createQuoteNode()).append(...K),P.replace(J),J.select(0,0)},type:"element"},L={dependencies:[n.CodeNode],export:P=>{if(!n.$isCodeNode(P))return null;const K=P.getTextContent();return"```"+(P.getLanguage()||"")+(K?`
|
|
22
|
-
`+K:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:Y(P=>n.$createCodeNode(P?P[1]:void 0)),type:"element"},l={dependencies:[a.ListNode,a.ListItemNode],export:(P,K)=>a.$isListNode(P)?te(P,K,0):null,regExp:/^(\s*)[-*+]\s/,replace:ee("bullet"),type:"element"},c={dependencies:[a.ListNode,a.ListItemNode],export:(P,K)=>a.$isListNode(P)?te(P,K,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:ee("check"),type:"element"},$={dependencies:[a.ListNode,a.ListItemNode],export:(P,K)=>a.$isListNode(P)?te(P,K,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:ee("number"),type:"element"},f={format:["code"],tag:"`",type:"text-format"},d={format:["highlight"],tag:"==",type:"text-format"},_={format:["bold","italic"],tag:"***",type:"text-format"},I={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},B={format:["bold"],tag:"**",type:"text-format"},Z={format:["bold"],intraword:!1,tag:"__",type:"text-format"},q={format:["strikethrough"],tag:"~~",type:"text-format"},z={format:["italic"],tag:"*",type:"text-format"},W={format:["italic"],intraword:!1,tag:"_",type:"text-format"},U={dependencies:[S.LinkNode],export:(P,K,J)=>{if(!S.$isLinkNode(P))return null;K=(K=P.getTitle())?`[${P.getTextContent()}](${P.getURL()} "${K}")`:`[${P.getTextContent()}](${P.getURL()})`;const Q=P.getFirstChild();return P.getChildrenSize()===1&&e.$isTextNode(Q)?J(Q,K):K},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(P,K)=>{const[,J,Q,ie]=K;K=S.$createLinkNode(Q,{title:ie});const re=e.$createTextNode(J);re.setFormat(P.getFormat()),K.append(re),P.replace(K)},trigger:")",type:"text-match"},V=[X,H,L,l,$],ne=[f,_,I,B,Z,d,z,W,q],ae=[U],oe=[...V,...ne,...ae];return Pe.$convertFromMarkdownString=function(P,K=oe,J){return M(K)(P,J)},Pe.$convertToMarkdownString=function(P=oe,K){return function(J){let Q=g(J),ie=Q.textFormat.filter(re=>re.format.length===1);return re=>{let ue=[];re=(re||e.$getRoot()).getChildren();for(let de of re)(re=w(de,Q.element,ie,Q.textMatch))!=null&&ue.push(re);return ue.join(`
|
|
23
|
-
|
|
24
|
-
`)}}(P)(K)},Pe.BOLD_ITALIC_STAR=_,Pe.BOLD_ITALIC_UNDERSCORE=I,Pe.BOLD_STAR=B,Pe.BOLD_UNDERSCORE=Z,Pe.CHECK_LIST=c,Pe.CODE=L,Pe.ELEMENT_TRANSFORMERS=V,Pe.HEADING=X,Pe.HIGHLIGHT=d,Pe.INLINE_CODE=f,Pe.ITALIC_STAR=z,Pe.ITALIC_UNDERSCORE=W,Pe.LINK=U,Pe.ORDERED_LIST=$,Pe.QUOTE=H,Pe.STRIKETHROUGH=q,Pe.TEXT_FORMAT_TRANSFORMERS=ne,Pe.TEXT_MATCH_TRANSFORMERS=ae,Pe.TRANSFORMERS=oe,Pe.UNORDERED_LIST=l,Pe.registerMarkdownShortcuts=function(P,K=oe){let J=g(K),Q=o(J.textFormat,({tag:re})=>re[re.length-1]),ie=o(J.textMatch,({trigger:re})=>re);for(let re of K)if(((K=re.type)==="element"||K==="text-match")&&!P.hasNodes(re.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 P.registerUpdateListener(({tags:re,dirtyLeaves:ue,editorState:de,prevEditorState:pe})=>{if(!re.has("historic")){var ye=de.read(e.$getSelection);if(re=pe.read(e.$getSelection),e.$isRangeSelection(re)&&e.$isRangeSelection(ye)&&ye.isCollapsed()){pe=ye.anchor.key;var be=ye.anchor.offset,ge=de._nodeMap.get(pe);e.$isTextNode(ge)&&ue.has(pe)&&(be===1||be===re.anchor.offset+1)&&P.update(()=>{if(!ge.hasFormat("code")){var se=ge.getParent();if(se!==null&&!n.$isCodeNode(se)){var Re=ye.anchor.offset;e:{var xe=J.element,he=se.getParent();if(e.$isRootOrShadowRoot(he)&&se.getFirstChild()===ge&&(he=ge.getTextContent())[Re-1]===" "){for(let{regExp:ze,replace:Ve}of xe)if((xe=he.match(ze))&&xe[0].length===Re){he=ge.getNextSiblings();let[je,dt]=ge.splitText(Re);je.remove(),Ve(se,he=dt?[dt,...he]:he,xe,!1),se=!0;break e}}se=!1}if(!se){e:{if(xe=ge.getTextContent(),(se=ie[xe[Re-1]])!=null){for(fe of(Re<xe.length&&(xe=xe.slice(0,Re)),se))if((se=xe.match(fe.regExp))!==null){he=(xe=se.index||0)+se[0].length;var le=void 0;xe===0?[le]=ge.splitText(he):[,le]=ge.splitText(xe,he),le.selectNext(0,0),fe.replace(le,se);var fe=!0;break e}}fe=!1}if(!fe)e:{var Ce=(he=ge.getTextContent())[--Re];if(fe=Q[Ce])for(let ze of fe){var{tag:Te}=ze;let Ve=Re-(fe=Te.length)+1;if(!(1<fe&&!F(he,Ve,Te,0,fe)||he[Ve-1]===" ")&&(le=he[Re+1],ze.intraword!==!1||!le||x.test(le))){se=le=ge,xe=j(he,Ve,Te);for(var _e=se;0>xe&&(_e=_e.getPreviousSibling())&&!e.$isLineBreakNode(_e);)e.$isTextNode(_e)&&(xe=_e.getTextContent(),se=_e,xe=j(xe,xe.length,Te));if(!(0>xe||se===le&&xe+fe===Ve||(Te=se.getTextContent(),0<xe&&Te[xe-1]===Ce||(_e=Te[xe-1],ze.intraword===!1&&_e&&!x.test(_e))))){he=(he=le.getTextContent()).slice(0,Ve)+he.slice(Re+1),le.setTextContent(he),he=se===le?he:Te,se.setTextContent(he.slice(0,xe)+he.slice(xe+fe)),he=e.$getSelection(),Ce=e.$createRangeSelection(),e.$setSelection(Ce),Re=Re-fe*(se===le?2:1)+1,Ce.anchor.set(se.__key,xe,"text"),Ce.focus.set(le.__key,Re,"text");for(let je of ze.format)Ce.hasFormat(je)||Ce.formatText(je);Ce.anchor.set(Ce.focus.key,Ce.focus.offset,Ce.focus.type);for(let je of ze.format)Ce.hasFormat(je)&&Ce.toggleFormat(je);e.$isRangeSelection(he)&&(Ce.format=he.format);break e}}}}}}}})}}})},Pe}function cc(){return oa?na:(oa=1,na=_u())}var ia,ra,aa,sa,la,ca,Au=cc(),Ko={},In={};function bt(){return aa?ra:(aa=1,ra=function(){if(ia)return In;ia=1;var n=gt();let a=n.createContext(null);return In.LexicalComposerContext=a,In.createLexicalComposerContext=function(i,E){let S=null;return i!=null&&(S=i[1]),{getTheme:function(){return E??(S!=null?S.getTheme():null)}}},In.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},In}())}var da,ua,pa,Ru=function(){return ca?la:(ca=1,la=function(){if(sa)return Ko;sa=1;var n=bt(),a=gt();return Ko.AutoFocusPlugin=function({defaultSelection:i}){let[E]=n.useLexicalComposerContext();return a.useEffect(()=>{E.focus(()=>{let S=document.activeElement,o=E.getRootElement();o===null||S!==null&&o.contains(S)||o.focus({preventScroll:!0})},{defaultSelection:i})},[i,E]),null},Ko}())}(),Yo={};function Iu(){if(da)return Yo;da=1;var e=bt(),n=Ze(),a=gt();let i=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;var E=i?a.useLayoutEffect:a.useEffect;let S={tag:"history-merge"};return Yo.LexicalComposer=function({initialConfig:o,children:g}){let x=a.useMemo(()=>{const{theme:w,namespace:b,editor__DEPRECATED:h,nodes:r,onError:C,editorState:m}=o,k=e.createLexicalComposerContext(null,w);let s=h||null;if(s===null){const u=n.createEditor({editable:o.editable,namespace:b,nodes:r,onError:T=>C(T,u),theme:w});(function(T,v){if(v!==null){if(v===void 0)T.update(()=>{var N=n.$getRoot();if(N.isEmpty()){let O=n.$createParagraphNode();N.append(O),N=i?document.activeElement:null,(n.$getSelection()!==null||N!==null&&N===T.getRootElement())&&O.select()}},S);else if(v!==null)switch(typeof v){case"string":let N=T.parseEditorState(v);T.setEditorState(N,S);break;case"object":T.setEditorState(v,S);break;case"function":T.update(()=>{n.$getRoot().isEmpty()&&v(T)},S)}}})(u,m),s=u}return[s,k]},[]);return E(()=>{let w=o.editable,[b]=x;b.setEditable(w===void 0||w)},[]),a.createElement(e.LexicalComposerContext.Provider,{value:x},g)},Yo}var ha,ga,ma,ju=function(){return pa?ua:(pa=1,ua=Iu())}(),qo={},Jo,fa,xa,Ca,Lu=function(){return ma?ga:(ma=1,ga=function(){if(ha)return qo;ha=1;var n=bt(),a=gt(),i=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?a.useLayoutEffect:a.useEffect;return qo.ContentEditable=function({ariaActiveDescendant:E,ariaAutoComplete:S,ariaControls:o,ariaDescribedBy:g,ariaExpanded:x,ariaLabel:w,ariaLabelledBy:b,ariaMultiline:h,ariaOwns:r,ariaRequired:C,autoCapitalize:m,className:k,id:s,role:u="textbox",spellCheck:T=!0,style:v,tabIndex:N,"data-testid":O}){let[M]=n.useLexicalComposerContext(),[D,R]=a.useState(!1),j=a.useCallback(F=>{M.setRootElement(F)},[M]);return i(()=>(R(M.isEditable()),M.registerEditableListener(F=>{R(F)})),[M]),a.createElement("div",{"aria-activedescendant":D?E:void 0,"aria-autocomplete":D?S:"none","aria-controls":D?o:void 0,"aria-describedby":g,"aria-expanded":D&&u==="combobox"?!!x:void 0,"aria-label":w,"aria-labelledby":b,"aria-multiline":h,"aria-owns":D?r:void 0,"aria-required":C,autoCapitalize:m,className:k,contentEditable:D,"data-testid":O,id:s,ref:j,role:D?u:void 0,spellCheck:T,style:v,tabIndex:N})},qo}())}();function Du(){if(fa)return Jo;fa=1;var e=gt();function n(E,S){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,g){return o.__proto__=g,o})(E,S)}var a={error:null},i=function(E){function S(){for(var g,x=arguments.length,w=Array(x),b=0;b<x;b++)w[b]=arguments[b];return(g=E.call.apply(E,[this].concat(w))||this).state=a,g.resetErrorBoundary=function(){for(var h,r=arguments.length,C=Array(r),m=0;m<r;m++)C[m]=arguments[m];g.props.onReset==null||(h=g.props).onReset.apply(h,C),g.reset()},g}(function(g,x){g.prototype=Object.create(x.prototype),g.prototype.constructor=g,n(g,x)})(S,E),S.getDerivedStateFromError=function(g){return{error:g}};var o=S.prototype;return o.reset=function(){this.setState(a)},o.componentDidCatch=function(g,x){var w,b;(w=(b=this.props).onError)==null||w.call(b,g,x)},o.componentDidUpdate=function(g,x){var w,b,h=this.props.resetKeys;this.state.error!==null&&x.error!==null&&function(r,C){return r===void 0&&(r=[]),C===void 0&&(C=[]),r.length!==C.length||r.some(function(m,k){return!Object.is(m,C[k])})}(g.resetKeys,h)&&((w=(b=this.props).onResetKeysChange)==null||w.call(b,g.resetKeys,h),this.reset())},o.render=function(){var g=this.state.error,x=this.props,w=x.fallbackRender,b=x.FallbackComponent;if(x=x.fallback,g!==null){if(g={error:g,resetErrorBoundary:this.resetErrorBoundary},e.isValidElement(x))return x;if(typeof w=="function")return w(g);if(b)return e.createElement(b,g);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},S}(e.Component);return Jo=function({children:E,onError:S}){return e.createElement(i,{fallback:e.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:S},E)},Jo}const Ou=Jd(function(){return Ca?xa:(Ca=1,xa=Du())}());var ya,ba,va,wa,Sa,Ea,eo={},to={};function Mu(){if(ya)return to;ya=1;var e=mt(),n=Ze();function a(i,E){let S=Date.now(),o=0;return(g,x,w,b,h,r)=>{let C=Date.now();if(r.has("historic"))return o=0,S=C,2;let m=function(s,u,T,v,N){if(s===null||T.size===0&&v.size===0&&!N)return 0;var O=u._selection,M=s._selection;if(N)return 1;if(!(n.$isRangeSelection(O)&&n.$isRangeSelection(M)&&M.isCollapsed()&&O.isCollapsed()))return 0;N=u._nodeMap;let D=[];for(let R of T)(T=N.get(R))!==void 0&&D.push(T);for(let[R,j]of v)j&&((v=N.get(R))===void 0||n.$isRootNode(v)||D.push(v));return D.length===0?0:1<D.length?(u=(v=u._nodeMap).get(O.anchor.key),M=v.get(M.anchor.key),u&&M&&!s._nodeMap.has(u.__key)&&n.$isTextNode(u)&&u.__text.length===1&&O.anchor.offset===1?2:0):(u=D[0],s=s._nodeMap.get(u.__key),n.$isTextNode(s)&&n.$isTextNode(u)&&s.__mode===u.__mode?(s=s.__text)===(u=u.__text)?0:(O=O.anchor,M=M.anchor,O.key!==M.key||O.type!=="text"?0:(O=O.offset,M=M.offset,(s=u.length-s.length)==1&&M===O-1?2:s===-1&&M===O+1?3:s===-1&&M===O?4:0)):0)}(g,x,b,h,i.isComposing()),k=(()=>{var s=w===null||w.editor===i,u=r.has("history-push");if(!u&&s&&r.has("history-merge"))return 0;if(g===null)return 1;var T=x._selection;if(!(0<b.size||0<h.size))return T!==null?0:2;if(u===!1&&m!==0&&m===o&&C<S+E&&s)return 0;if(b.size===1){{u=Array.from(b)[0],s=g._nodeMap.get(u),u=x._nodeMap.get(u),T=g._selection;let v=x._selection,N=!1;n.$isRangeSelection(T)&&n.$isRangeSelection(v)&&(N=T.anchor.type==="element"&&T.focus.type==="element"&&v.anchor.type==="text"&&v.focus.type==="text"),s=!(N||!n.$isTextNode(s)||!n.$isTextNode(u))&&s.__type===u.__type&&s.__text===u.__text&&s.__mode===u.__mode&&s.__detail===u.__detail&&s.__style===u.__style&&s.__format===u.__format&&s.__parent===u.__parent}if(s)return 0}return 1})();return S=C,o=m,k}}return to.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},to.registerHistory=function(i,E,S){let o=a(i,S);S=({editorState:w,prevEditorState:b,dirtyLeaves:h,dirtyElements:r,tags:C})=>{const m=E.current,k=E.redoStack,s=E.undoStack,u=m===null?null:m.editorState;if(m===null||w!==u){if((h=o(b,w,m,h,r,C))===1)k.length!==0&&(E.redoStack=[],i.dispatchCommand(n.CAN_REDO_COMMAND,!1)),m!==null&&(s.push({...m,undoSelection:b.read(n.$getSelection)}),i.dispatchCommand(n.CAN_UNDO_COMMAND,!0));else if(h===2)return;E.current={editor:i,editorState:w}}};let g=e.mergeRegister(i.registerCommand(n.UNDO_COMMAND,()=>{let w=E.redoStack,b=E.undoStack;if(b.length!==0){let h=E.current,r=b.pop();h!==null&&(w.push(h),i.dispatchCommand(n.CAN_REDO_COMMAND,!0)),b.length===0&&i.dispatchCommand(n.CAN_UNDO_COMMAND,!1),E.current=r||null,r&&r.editor.setEditorState(r.editorState.clone(r.undoSelection),{tag:"historic"})}return!0},n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.REDO_COMMAND,()=>{let w=E.redoStack;var b=E.undoStack;if(w.length!==0){let h=E.current;h!==null&&(b.push(h),i.dispatchCommand(n.CAN_UNDO_COMMAND,!0)),b=w.pop(),w.length===0&&i.dispatchCommand(n.CAN_REDO_COMMAND,!1),E.current=b||null,b&&b.editor.setEditorState(b.editorState,{tag:"historic"})}return!0},n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.CLEAR_EDITOR_COMMAND,()=>(E.undoStack=[],E.redoStack=[],E.current=null,!1),n.COMMAND_PRIORITY_EDITOR),i.registerCommand(n.CLEAR_HISTORY_COMMAND,()=>(E.undoStack=[],E.redoStack=[],E.current=null,i.dispatchCommand(n.CAN_REDO_COMMAND,!1),i.dispatchCommand(n.CAN_UNDO_COMMAND,!1),!0),n.COMMAND_PRIORITY_EDITOR),i.registerUpdateListener(S)),x=i.registerUpdateListener(S);return()=>{g(),x()}},to}function Pu(){if(wa)return eo;wa=1;var e=bt(),n=function(){return va?ba:(va=1,ba=Mu())}(),a=gt();return eo.createEmptyHistoryState=n.createEmptyHistoryState,eo.HistoryPlugin=function({externalHistoryState:i}){let[E]=e.useLexicalComposerContext();return function(S,o,g=1e3){let x=a.useMemo(()=>o||n.createEmptyHistoryState(),[o]);a.useEffect(()=>n.registerHistory(S,x,g),[g,S,x])}(E,i),null},eo}var ka,Ta,$a,Fu=function(){return Ea?Sa:(Ea=1,Sa=Pu())}(),Zo={},Na,_a,Aa,Bu=function(){return $a?Ta:($a=1,Ta=function(){if(ka)return Zo;ka=1;var n=Po(),a=bt(),i=mt(),E=Ze(),S=gt();return Zo.LinkPlugin=function({validateUrl:o}){let[g]=a.useLexicalComposerContext();return S.useEffect(()=>{if(!g.hasNodes([n.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return i.mergeRegister(g.registerCommand(n.TOGGLE_LINK_COMMAND,x=>{if(x===null)return n.toggleLink(x),!0;if(typeof x=="string")return!(o!==void 0&&!o(x)||(n.toggleLink(x),0));let{url:w,target:b,rel:h,title:r}=x;return n.toggleLink(w,{rel:h,target:b,title:r}),!0},E.COMMAND_PRIORITY_LOW),o!==void 0?g.registerCommand(E.PASTE_COMMAND,x=>{let w=E.$getSelection();if(!E.$isRangeSelection(w)||w.isCollapsed()||!(x instanceof ClipboardEvent)||x.clipboardData==null)return!1;let b=x.clipboardData.getData("text");return!!o(b)&&!w.getNodes().some(h=>E.$isElementNode(h))&&(g.dispatchCommand(n.TOGGLE_LINK_COMMAND,b),x.preventDefault(),!0)},E.COMMAND_PRIORITY_LOW):()=>{})},[g,o]),null},Zo}())}(),Xo={};function zu(){if(Na)return Xo;Na=1;var e=Ki(),n=bt(),a=gt(),i=mt(),E=Ze();return Xo.ListPlugin=function(){let[S]=n.useLexicalComposerContext();return a.useEffect(()=>{if(!S.hasNodes([e.ListNode,e.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[S]),function(o){a.useEffect(()=>i.mergeRegister(o.registerCommand(e.INSERT_ORDERED_LIST_COMMAND,()=>(e.insertList(o,"number"),!0),E.COMMAND_PRIORITY_LOW),o.registerCommand(e.INSERT_UNORDERED_LIST_COMMAND,()=>(e.insertList(o,"bullet"),!0),E.COMMAND_PRIORITY_LOW),o.registerCommand(e.REMOVE_LIST_COMMAND,()=>(e.removeList(o),!0),E.COMMAND_PRIORITY_LOW),o.registerCommand(E.INSERT_PARAGRAPH_COMMAND,()=>!!e.$handleListInsertParagraph(),E.COMMAND_PRIORITY_LOW)),[o])}(S),null},Xo}var Ra,Ia,ja,La,Da,Oa,Ma,Pa,Fa,Hu=function(){return Aa?_a:(Aa=1,_a=zu())}(),no={},yn={},Qo={};function Wu(){return ja?Ia:(ja=1,Ia=function(){if(Ra)return Qo;Ra=1;var n=bt(),a=Ze(),i=gt();function E(S,o){return S.getEditorState().read(()=>{let g=a.$getNodeByKey(o);return g!==null&&g.isSelected()})}return Qo.useLexicalNodeSelection=function(S){let[o]=n.useLexicalComposerContext(),[g,x]=i.useState(()=>E(o,S));i.useEffect(()=>{let h=!0,r=o.registerUpdateListener(()=>{h&&x(E(o,S))});return()=>{h=!1,r()}},[o,S]);let w=i.useCallback(h=>{o.update(()=>{let r=a.$getSelection();a.$isNodeSelection(r)||(r=a.$createNodeSelection(),a.$setSelection(r)),h?r.add(S):r.delete(S)})},[o,S]),b=i.useCallback(()=>{o.update(()=>{const h=a.$getSelection();a.$isNodeSelection(h)&&h.clear()})},[o]);return[g,w,b]},Qo}())}function Vu(){return Oa?Da:(Oa=1,Da=function(){if(La)return yn;La=1;var n=bt(),a=Wu(),i=mt(),E=Ze(),S=gt();let o=E.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function g({nodeKey:r}){let[C]=n.useLexicalComposerContext(),[m,k,s]=a.useLexicalNodeSelection(r),u=S.useCallback(T=>(m&&E.$isNodeSelection(E.$getSelection())&&(T.preventDefault(),h(T=E.$getNodeByKey(r))&&T.remove(),k(!1)),!1),[m,r,k]);return S.useEffect(()=>i.mergeRegister(C.registerCommand(E.CLICK_COMMAND,T=>{let v=C.getElementByKey(r);return T.target===v&&(T.shiftKey||s(),k(!m),!0)},E.COMMAND_PRIORITY_LOW),C.registerCommand(E.KEY_DELETE_COMMAND,u,E.COMMAND_PRIORITY_LOW),C.registerCommand(E.KEY_BACKSPACE_COMMAND,u,E.COMMAND_PRIORITY_LOW)),[s,C,m,r,u,k]),S.useEffect(()=>{let T=C.getElementByKey(r);T!==null&&(T.className=m?"selected":"")},[C,m,r]),null}class x extends E.DecoratorNode{static getType(){return"horizontalrule"}static clone(C){return new x(C.__key)}static importJSON(){return b()}static importDOM(){return{hr:()=>({conversion:w,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}getTextContent(){return`
|
|
25
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return S.createElement(g,{nodeKey:this.__key})}}function w(){return{node:b()}}function b(){return E.$applyNodeReplacement(new x)}function h(r){return r instanceof x}return yn.$createHorizontalRuleNode=b,yn.$isHorizontalRuleNode=h,yn.HorizontalRuleNode=x,yn.INSERT_HORIZONTAL_RULE_COMMAND=o,yn}())}var ei,Ba,za,Ha,Uu=function(){return Fa?Pa:(Fa=1,Pa=function(){if(Ma)return no;Ma=1;var n=cc(),a=bt(),i=Vu(),E=gt();let S=[{dependencies:[i.HorizontalRuleNode],export:o=>i.$isHorizontalRuleNode(o)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(o,g,x,w)=>{g=i.$createHorizontalRuleNode(),w||o.getNextSibling()!=null?o.replace(g):o.insertBefore(g),g.selectNext()},type:"element"},...n.TRANSFORMERS];return no.DEFAULT_TRANSFORMERS=S,no.MarkdownShortcutPlugin=function({transformers:o=S}){let[g]=a.useLexicalComposerContext();return E.useEffect(()=>n.registerMarkdownShortcuts(g,o),[g,o]),null},no}())}(),ti={};function Gu(){if(Ba)return ei;Ba=1;var e=bt(),n=gt(),a=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?n.useLayoutEffect:n.useEffect;function i(E){return{initialValueFn:()=>E.isEditable(),subscribe:S=>E.registerEditableListener(S)}}return ei=function(){return function(E){let[S]=e.useLexicalComposerContext(),o=n.useMemo(()=>E(S),[S,E]),g=n.useRef(o.initialValueFn()),[x,w]=n.useState(g.current);return a(()=>{let{initialValueFn:b,subscribe:h}=o,r=b();return g.current!==r&&(g.current=r,w(r)),h(C=>{g.current=C,w(C)})},[o,E]),x}(i)},ei}var Wa,Va,Ua,zt={};function Ku(){return Ua?Va:(Ua=1,Va=function(){if(Wa)return zt;Wa=1;var n=Ze();function a(S,o=!0){return!S&&(S=i(),o&&(S=S.trim()),S==="")}function i(){return n.$getRoot().getTextContent()}function E(S){if(!a(S,!1))return!1;let o=(S=n.$getRoot().getChildren()).length;if(1<o)return!1;for(let x=0;x<o;x++){var g=S[x];if(n.$isDecoratorNode(g))return!1;if(n.$isElementNode(g)){if(!n.$isParagraphNode(g)||g.__indent!==0)return!1;let w=(g=g.getChildren()).length;for(let b=0;b<w;b++)if(!n.$isTextNode(g[x]))return!1}}return!0}return zt.$canShowPlaceholder=E,zt.$canShowPlaceholderCurry=function(S){return()=>E(S)},zt.$findTextIntersectionFromCharacters=function(S,o){var g=S.getFirstChild();S=0;e:for(;g!==null;){if(n.$isElementNode(g)){var x=g.getFirstChild();if(x!==null){g=x;continue}}else if(n.$isTextNode(g)){if(S+(x=g.getTextContentSize())>o)return{node:g,offset:o-S};S+=x}if((x=g.getNextSibling())===null){for(g=g.getParent();g!==null;){if((x=g.getNextSibling())!==null){g=x;continue e}g=g.getParent()}break}g=x}return null},zt.$isRootTextContentEmpty=a,zt.$isRootTextContentEmptyCurry=function(S,o){return()=>a(S,o)},zt.$rootTextContent=i,zt.registerLexicalTextEntity=function(S,o,g,x){let w=h=>{const r=n.$createTextNode(h.getTextContent());r.setFormat(h.getFormat()),h.replace(r)},b=S.registerNodeTransform(n.TextNode,h=>{if(h.isSimpleText()){var r=h.getPreviousSibling(),C=h.getTextContent(),m=h;if(n.$isTextNode(r)){var k=r.getTextContent(),s=o(k+C);if(r instanceof g){if(s===null||r.getLatest().__mode!==0)return void w(r);if(0<(s=s.end-k.length))return m=k+(m=C.slice(0,s)),r.select(),r.setTextContent(m),void(s===C.length?h.remove():(r=C.slice(s),h.setTextContent(r)))}else if(s===null||s.start<k.length)return}for(;;){if(C=s=(h=o(C))===null?"":C.slice(h.end),s===""){if(k=m.getNextSibling(),n.$isTextNode(k)){if(s=m.getTextContent()+k.getTextContent(),(s=o(s))===null){k instanceof g?w(k):k.markDirty();break}if(s.start!==0)break}}else if((k=o(s))!==null&&k.start===0)break;if(h===null)break;if(h.start===0&&n.$isTextNode(r)&&r.isTextEntity())continue;let u;if(h.start===0?[u,m]=m.splitText(h.end):[,u,m]=m.splitText(h.start,h.end),h=x(u),u.replace(h),m==null)break}}});return S=S.registerNodeTransform(g,h=>{var r=h.getTextContent();const C=o(r);C===null||C.start!==0?w(h):r.length>C.end?h.splitText(C.end):(r=h.getPreviousSibling(),n.$isTextNode(r)&&r.isTextEntity()&&(w(r),w(h)),r=h.getNextSibling(),n.$isTextNode(r)&&r.isTextEntity()&&(w(r),h instanceof g&&w(h)))}),[b,S]},zt}())}var Ga,Ka,Ya,qa,Ja,Za,ni={};function Yu(){return Ya?Ka:(Ya=1,Ka=function(){if(Ga)return ni;Ga=1;var n=Ze();return ni.registerDragonSupport=function(a){let i=window.location.origin,E=S=>{if(S.origin===i){var o=a.getRootElement();if(document.activeElement===o&&typeof(o=S.data)=="string"){try{var g=JSON.parse(o)}catch{return}if(g&&g.protocol==="nuanria_messaging"&&g.type==="request"&&(g=g.payload)&&g.functionId==="makeChanges"&&(g=g.args)){const[x,w,b,h,r]=g;a.update(()=>{const C=n.$getSelection();if(n.$isRangeSelection(C)){var m=C.anchor;let k=m.getNode(),s=0,u=0;n.$isTextNode(k)&&0<=x&&0<=w&&(s=x,u=x+w,C.setTextNodeRange(k,s,k,u)),s===u&&b===""||(C.insertRawText(b),k=m.getNode()),n.$isTextNode(k)&&(s=h,u=h+r,s=s>(m=k.getTextContentSize())?m:s,u=u>m?m:u,C.setTextNodeRange(k,s,k,u)),S.stopImmediatePropagation()}})}}}};return window.addEventListener("message",E,!0),()=>{window.removeEventListener("message",E,!0)}},ni}())}function qu(){if(qa)return ti;qa=1;var e=bt(),n=function(){return Ha?za:(Ha=1,za=Gu())}(),a=gt(),i=Ku(),E=mt(),S=mu(),o=Yu(),g=Yi(),x=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?a.useLayoutEffect:a.useEffect;function w(h){return h.getEditorState().read(i.$canShowPlaceholderCurry(h.isComposing()))}function b({content:h}){var[r]=e.useLexicalComposerContext();r=function(m){let[k,s]=a.useState(()=>w(m));return x(()=>{function u(){let T=w(m);s(T)}return u(),E.mergeRegister(m.registerUpdateListener(()=>{u()}),m.registerEditableListener(()=>{u()}))},[m]),k}(r);let C=n();return r?typeof h=="function"?h(C):h:null}return ti.RichTextPlugin=function({contentEditable:h,placeholder:r,ErrorBoundary:C}){let[m]=e.useLexicalComposerContext();return C=function(k,s){let[u,T]=a.useState(()=>k.getDecorators());return x(()=>k.registerDecoratorListener(v=>{S.flushSync(()=>{T(v)})}),[k]),a.useEffect(()=>{T(k.getDecorators())},[k]),a.useMemo(()=>{let v=[],N=Object.keys(u);for(let M=0;M<N.length;M++){var O=N[M];let D=a.createElement(s,{onError:R=>k._onError(R)},a.createElement(a.Suspense,{fallback:null},u[O]));(O=k.getElementByKey(O))!==null&&v.push(S.createPortal(D,O))}return v},[s,u,k])}(m,C),function(k){x(()=>E.mergeRegister(g.registerRichText(k),o.registerDragonSupport(k)),[k])}(m),a.createElement(a.Fragment,null,h,a.createElement(b,{content:r}),C)},ti}var Xa,Qa,es,Ju=function(){return Za?Ja:(Za=1,Ja=qu())}(),Ai=Yi(),Ne={};function Zu(){if(Xa)return Ne;Xa=1;var e=Ze(),n=mt();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 $=new i(c.__headerState,c.__colSpan,c.__width,c.__key);return $.__rowSpan=c.__rowSpan,$}static importDOM(){return{td:()=>({conversion:E,priority:0}),th:()=>({conversion:E,priority:0})}}static importJSON(c){let $=S(c.headerState,c.colSpan,c.width||void 0);return $.__rowSpan=c.rowSpan,$}constructor(c=a.NO_STATUS,$=1,f,d){super($,d),this.__headerState=c,this.__width=f}createDOM(c){let $=document.createElement(this.getTag());return this.__width&&($.style.width=`${this.__width}px`),1<this.__colSpan&&($.colSpan=this.__colSpan),1<this.__rowSpan&&($.rowSpan=this.__rowSpan),n.addClassNamesToElement($,c.theme.tableCell,this.hasHeader()&&c.theme.tableCellHeader),$}exportDOM(c){if({element:c}=super.exportDOM(c),c){let $=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/$)}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 $=this.getWritable();return $.__headerState=($.__headerState&c)===c?$.__headerState-c:$.__headerState+c,$}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 E(l){var c=l.nodeName.toLowerCase();return(c=S(c==="th"?a.ROW:a.NO_STATUS)).__colSpan=l.colSpan,c.__rowSpan=l.rowSpan,{forChild:($,f)=>o(f)&&!e.$isElementNode($)?(f=e.$createParagraphNode(),e.$isLineBreakNode($)&&$.getTextContent()===`
|
|
26
|
-
`?null:(f.append($),f)):$,node:c}}function S(l,c=1,$){return e.$applyNodeReplacement(new i(l,c,$))}function o(l){return l instanceof i}class g extends e.DEPRECATED_GridRowNode{static getType(){return"tablerow"}static clone(c){return new g(c.__height,c.__key)}static importDOM(){return{tr:()=>({conversion:x,priority:0})}}static importJSON(c){return w(c.height)}constructor(c,$){super($),this.__height=c}exportJSON(){return{...super.exportJSON(),type:"tablerow",version:1}}createDOM(c){let $=document.createElement("tr");return this.__height&&($.style.height=`${this.__height}px`),n.addClassNamesToElement($,c.theme.tableRow),$}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 x(){return{node:w()}}function w(l){return e.$applyNodeReplacement(new g(l))}function b(l){return l instanceof g}function h(l){throw Error(`Minified Lexical error #${l}; visit https://lexical.dev/docs/error?code=${l} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let r=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;class C{constructor(c,$){this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.listenersToRemove=new Set,this.tableNodeKey=$,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($=>{this.editor.update(()=>{var f=!1;for(let d=0;d<$.length;d++){const _=$[d].target.nodeName;if(_==="TABLE"||_==="TR"){f=!0;break}}if(f){if(!(f=this.editor.getElementByKey(this.tableNodeKey)))throw Error("Expected to find TableElement in DOM");this.grid=k(f)}})});this.editor.update(()=>{let $=this.editor.getElementByKey(this.tableNodeKey);if(!$)throw Error("Expected to find TableElement in DOM");this.grid=k($),c.observe($,{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(!F(c))throw Error("Expected TableNode.");if(!(c=this.editor.getElementByKey(this.tableNodeKey)))throw Error("Expected to find TableElement in DOM");s(c=k(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(),s(this.grid,this.gridSelection)):c==null&&this.clearHighlight()}setFocusCellForSelection(c,$=!1){this.editor.update(()=>{var f=e.$getNodeByKey(this.tableNodeKey);if(!F(f))throw Error("Expected TableNode.");if(!this.editor.getElementByKey(this.tableNodeKey))throw Error("Expected to find TableElement in DOM");f=c.x;let d=c.y;if(this.focusCell=c,this.anchorCell!==null){let _=r?(this.editor._window||window).getSelection():null;_&&_.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(this.isHighlightingCells||this.anchorX===f&&this.anchorY===d&&!$){if(f===this.focusX&&d===this.focusY)return}else this.isHighlightingCells=!0,this.disableHighlightStyle();this.focusX=f,this.focusY=d,this.isHighlightingCells&&(f=e.$getNearestNodeFromDOMNode(c.elem),this.gridSelection!=null&&this.anchorCellNodeKey!=null&&o(f)&&(f=f.getKey(),this.gridSelection=this.gridSelection.clone()||e.DEPRECATED_$createGridSelection(),this.focusCellNodeKey=f,this.gridSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),e.$setSelection(this.gridSelection),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0),s(this.grid,this.gridSelection)))})}setAnchorCellForSelection(c){this.isHighlightingCells=!1,this.anchorCell=c,this.anchorX=c.x,this.anchorY=c.y,this.editor.update(()=>{var $=e.$getNearestNodeFromDOMNode(c.elem);o($)&&($=$.getKey(),this.gridSelection=e.DEPRECATED_$createGridSelection(),this.anchorCellNodeKey=$)})}formatCells(c){this.editor.update(()=>{let $=e.$getSelection();e.DEPRECATED_$isGridSelection($)||h(11);let f=e.$createRangeSelection(),d=f.anchor,_=f.focus;$.getNodes().forEach(I=>{o(I)&&I.getTextContentSize()!==0&&(d.set(I.getKey(),0,"element"),_.set(I.getKey(),I.getChildrenSize(),"element"),f.formatText(c))}),e.$setSelection($),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){this.editor.update(()=>{let c=e.$getNodeByKey(this.tableNodeKey);if(!F(c))throw Error("Expected TableNode.");var $=e.$getSelection();e.DEPRECATED_$isGridSelection($)||h(11),($=$.getNodes().filter(o)).length===this.grid.columns*this.grid.rows?(c.selectPrevious(),c.remove(),e.$getRoot().selectStart()):($.forEach(f=>{if(e.$isElementNode(f)){let d=e.$createParagraphNode(),_=e.$createTextNode();d.append(_),f.append(d),f.getChildren().forEach(I=>{I!==d&&I.remove()})}}),s(this.grid,null),e.$setSelection(null),this.editor.dispatchCommand(e.SELECTION_CHANGE_COMMAND,void 0))})}}function m(l){for(;l!=null;){let c=l.nodeName;if(c==="TD"||c==="TH"){if((l=l._cell)===void 0)break;return l}l=l.parentNode}return null}function k(l){let c=[],$={cells:c,columns:0,rows:0};var f=l.firstChild;let d=l=0;for(c.length=0;f!=null;){var _=f.nodeName;if(_==="TD"||_==="TH")_={elem:f,highlighted:!1,x:l,y:d},f._cell=_,c[d]===void 0&&(c[d]=[]),c[d][l]=_;else if((_=f.firstChild)!=null){f=_;continue}if((_=f.nextSibling)!=null)l++,f=_;else if((_=f.parentNode)!=null){if((f=_.nextSibling)==null)break;d++,l=0}}return $.columns=l+1,$.rows=d+1,$}function s(l,c){let $=[],f=new Set(c?c.getNodes():[]);return u(l,(d,_)=>{let I=d.elem;f.has(_)?(d.highlighted=!0,I.style.setProperty("background-color","rgb(172, 206, 247)"),I.style.setProperty("caret-color","transparent"),$.push(d)):(d.highlighted=!1,I.style.removeProperty("background-color"),I.style.removeProperty("caret-color"),I.getAttribute("style")||I.removeAttribute("style"))}),$}function u(l,c){({cells:l}=l);for(let $=0;$<l.length;$++){let f=l[$];for(let d=0;d<f.length;d++){let _=f[d],I=e.$getNearestNodeFromDOMNode(_.elem);I!==null&&c(_,I,{x:d,y:$})}}}function T(l){l.disableHighlightStyle(),u(l.grid,c=>{let $=c.elem;c.highlighted=!0,$.style.setProperty("background-color","rgb(172, 206, 247)"),$.style.setProperty("caret-color","transparent")})}let v=(l,c,$,f,d)=>{const _=d==="forward";switch(d){case"backward":case"forward":return $!==(_?l.grid.columns-1:0)?M(c.getCellNodeFromCordsOrThrow($+(_?1:-1),f,l.grid)):f!==(_?l.grid.rows-1:0)?M(c.getCellNodeFromCordsOrThrow(_?0:l.grid.columns-1,f+(_?1:-1),l.grid)):_?c.selectNext():c.selectPrevious(),!0;case"up":return f!==0?M(c.getCellNodeFromCordsOrThrow($,f-1,l.grid)):c.selectPrevious(),!0;case"down":return f!==l.grid.rows-1?M(c.getCellNodeFromCordsOrThrow($,f+1,l.grid)):c.selectNext(),!0;default:return!1}},N=(l,c,$,f,d)=>{const _=d==="forward";switch(d){case"backward":case"forward":return $!==(_?l.grid.columns-1:0)&&l.setFocusCellForSelection(c.getCellFromCordsOrThrow($+(_?1:-1),f,l.grid)),!0;case"up":return f!==0&&(l.setFocusCellForSelection(c.getCellFromCordsOrThrow($,f-1,l.grid)),!0);case"down":return f!==l.grid.rows-1&&(l.setFocusCellForSelection(c.getCellFromCordsOrThrow($,f+1,l.grid)),!0);default:return!1}};function O(l,c){if(e.$isRangeSelection(l)||e.DEPRECATED_$isGridSelection(l)){let $=c.isParentOf(l.anchor.getNode());return l=c.isParentOf(l.focus.getNode()),$&&l}return!1}function M(l){let c=l.getChildren().find($=>e.$isParagraphNode($));e.$isParagraphNode(c)?c.selectEnd():l.selectEnd()}class D extends e.DEPRECATED_GridNode{static getType(){return"table"}static clone(c){return new D(c.__key)}static importDOM(){return{table:()=>({conversion:R,priority:1})}}static importJSON(){return j()}constructor(c){super(c)}exportJSON(){return{...super.exportJSON(),type:"table",version:1}}createDOM(c){let $=document.createElement("table");return n.addClassNamesToElement($,c.theme.table),$}updateDOM(){return!1}exportDOM(c){return{...super.exportDOM(c),after:$=>{if($){let f=$.cloneNode(),d=document.createElement("colgroup"),_=document.createElement("tbody");if(_.append(...$.children),!b($=this.getFirstChildOrThrow()))throw Error("Expected to find row node.");$=$.getChildrenSize();for(let I=0;I<$;I++){let B=document.createElement("col");d.append(B)}return f.replaceChildren(d,_),f}}}}canExtractContents(){return!1}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(c,$){let{rows:f,cells:d}=$;for($=0;$<f;$++){var _=d[$];if(_==null)throw Error(`Row not found at y:${$}`);if(_=_.findIndex(({elem:I})=>e.$getNearestNodeFromDOMNode(I)===c),_!==-1)return{x:_,y:$}}throw Error("Cell not found in table.")}getCellFromCords(c,$,f){return{cells:f}=f,($=f[$])==null||(c=$[c])==null?null:c}getCellFromCordsOrThrow(c,$,f){if(!(c=this.getCellFromCords(c,$,f)))throw Error("Cell not found at cords.");return c}getCellNodeFromCords(c,$,f){return(c=this.getCellFromCords(c,$,f))==null?null:o(c=e.$getNearestNodeFromDOMNode(c.elem))?c:null}getCellNodeFromCordsOrThrow(c,$,f){if(!(c=this.getCellNodeFromCords(c,$,f)))throw Error("Node at cords not TableCellNode.");return c}canSelectBefore(){return!0}canIndent(){return!1}}function R(){return{node:j()}}function j(){return e.$applyNodeReplacement(new D)}function F(l){return l instanceof D}function Y(l){if(l=n.$findMatchingParent(l,c=>b(c)),b(l))return l;throw Error("Expected table cell to be inside of table row.")}function ee(l){if(l=n.$findMatchingParent(l,c=>F(c)),F(l))return l;throw Error("Expected table cell to be inside of table.")}function te(l,c){let $=ee(l),{x:f,y:d}=$.getCordsFromCellNode(l,c);return{above:$.getCellNodeFromCords(f,d-1,c),below:$.getCellNodeFromCords(f,d+1,c),left:$.getCellNodeFromCords(f-1,d,c),right:$.getCellNodeFromCords(f+1,d,c)}}function X(l){(l=l.getFirstDescendant())===null&&h(124),l.getParentOrThrow().selectStart()}function H(l,c){let $=l.getFirstChild();$!==null?$.insertBefore(c):l.append(c)}let L=e.createCommand("INSERT_TABLE_COMMAND");return Ne.$createTableCellNode=S,Ne.$createTableNode=j,Ne.$createTableNodeWithDimensions=function(l,c,$=!0){let f=j();for(let _=0;_<l;_++){let I=w();for(let B=0;B<c;B++){var d=a.NO_STATUS;typeof $=="object"?(_===0&&$.rows&&(d|=a.ROW),B===0&&$.columns&&(d|=a.COLUMN)):$&&(_===0&&(d|=a.ROW),B===0&&(d|=a.COLUMN)),d=S(d);let Z=e.$createParagraphNode();Z.append(e.$createTextNode()),d.append(Z),I.append(d)}f.append(I)}return f},Ne.$createTableRowNode=w,Ne.$deleteTableColumn=function(l,c){let $=l.getChildren();for(let d=0;d<$.length;d++){var f=$[d];if(b(f)){if(c>=(f=f.getChildren()).length||0>c)throw Error("Table column target index out of range");f[c].remove()}}return l},Ne.$deleteTableColumn__EXPERIMENTAL=function(){var l=e.$getSelection();e.$isRangeSelection(l)||e.DEPRECATED_$isGridSelection(l)||h(118);var c=l.anchor.getNode();l=l.focus.getNode();let[$,,f]=e.DEPRECATED_$getNodeTriplet(c);[c]=e.DEPRECATED_$getNodeTriplet(l);let[d,_,I]=e.DEPRECATED_$computeGridMap(f,$,c);var{startColumn:B}=_;let{startRow:Z,startColumn:q}=I;l=Math.min(B,q);let z=(B=Math.max(B+$.__colSpan-1,q+c.__colSpan-1))-l+1;if(d[0].length===B-l+1)f.selectPrevious(),f.remove();else{var W=d.length;for(let U=0;U<W;U++)for(let V=l;V<=B;V++){let{cell:ne,startColumn:ae}=d[U][V];ae<l?V===l&&ne.setColSpan(ne.__colSpan-Math.min(z,ne.__colSpan-(l-ae))):ae+ne.__colSpan-1>B?V===B&&ne.setColSpan(ne.__colSpan-(B-ae+1)):ne.remove()}(c=(l=d[Z])[q+c.__colSpan])!==void 0?({cell:c}=c,X(c)):({cell:c}=l[q-1],X(c))}},Ne.$deleteTableRow__EXPERIMENTAL=function(){var l=e.$getSelection();e.$isRangeSelection(l)||e.DEPRECATED_$isGridSelection(l)||h(118);var c=l.anchor.getNode();l=l.focus.getNode();let[$,,f]=e.DEPRECATED_$getNodeTriplet(c);[l]=e.DEPRECATED_$getNodeTriplet(l);let[d,_,I]=e.DEPRECATED_$computeGridMap(f,$,l);({startRow:c}=_);var{startRow:B}=I;if(l=B+l.__rowSpan-1,d.length===l-c+1)f.remove();else{B=d[0].length;var Z=d[l+1],q=f.getChildAtIndex(l+1);for(let W=l;W>=c;W--){for(var z=B-1;0<=z;z--){let{cell:U,startRow:V,startColumn:ne}=d[W][z];if(ne===z&&(W===c&&V<c&&U.setRowSpan(U.__rowSpan-(V-c)),V>=c&&V+U.__rowSpan-1>l))if(U.setRowSpan(U.__rowSpan-(l-V+1)),q===null&&h(122),z===0)H(q,U);else{let{cell:ae}=Z[z-1];ae.insertAfter(U)}}z=f.getChildAtIndex(W),e.DEPRECATED_$isGridRowNode(z)||h(123),z.remove()}Z!==void 0?({cell:c}=Z[0],X(c)):({cell:c}=d[c-1][0],X(c))}},Ne.$getElementGridForTableNode=function(l,c){if((l=l.getElementByKey(c.getKey()))==null)throw Error("Table Element Not Found");return k(l)},Ne.$getTableCellNodeFromLexicalNode=function(l){return l=n.$findMatchingParent(l,c=>o(c)),o(l)?l:null},Ne.$getTableColumnIndexFromTableCellNode=function(l){return Y(l).getChildren().findIndex(c=>c.is(l))},Ne.$getTableNodeFromLexicalNodeOrThrow=ee,Ne.$getTableRowIndexFromTableCellNode=function(l){let c=Y(l);return ee(c).getChildren().findIndex($=>$.is(c))},Ne.$getTableRowNodeFromTableCellNodeOrThrow=Y,Ne.$insertTableColumn=function(l,c,$=!0,f,d){let _=l.getChildren();for(let Z=0;Z<_.length;Z++){let q=_[Z];if(b(q))for(let z=0;z<f;z++){var I=q.getChildren();if(c>=I.length||0>c)throw Error("Table column target index out of range");o(I=I[c])||h(12);let{left:W,right:U}=te(I,d);var B=a.NO_STATUS;(W&&W.hasHeaderState(a.ROW)||U&&U.hasHeaderState(a.ROW))&&(B|=a.ROW),(B=S(B)).append(e.$createParagraphNode()),$?I.insertAfter(B):I.insertBefore(B)}}return l},Ne.$insertTableColumn__EXPERIMENTAL=function(l=!0){function c(){let z=S(a.NO_STATUS).append(e.$createParagraphNode());return Z===null&&(Z=z),z}var $=e.$getSelection();e.$isRangeSelection($)||e.DEPRECATED_$isGridSelection($)||h(118),$=$.focus.getNode();let[f,,d]=e.DEPRECATED_$getNodeTriplet($),[_,I]=e.DEPRECATED_$computeGridMap(d,f,f);$=_.length;var{startColumn:B}=I;l=l?B+f.__colSpan-1:B-1,B=d.getFirstChild(),e.DEPRECATED_$isGridRowNode(B)||h(120);let Z=null;var q=B;e:for(B=0;B<$;B++){B!==0&&(q=q.getNextSibling(),e.DEPRECATED_$isGridRowNode(q)||h(121));let z=_[B];if(0>l){H(q,c());continue}let{cell:W,startColumn:U,startRow:V}=z[l];if(U+W.__colSpan-1<=l){let ne=W,ae=V,oe=l;for(;ae!==B&&1<ne.__rowSpan;){if(oe-=W.__colSpan,!(0<=oe)){q.append(c());continue e}{let{cell:P,startRow:K}=z[oe];ne=P,ae=K}}ne.insertAfter(c())}else W.setColSpan(W.__colSpan+1)}Z!==null&&X(Z)},Ne.$insertTableRow=function(l,c,$=!0,f,d){var _=l.getChildren();if(c>=_.length||0>c)throw Error("Table row target index out of range");if(!b(c=_[c]))throw Error("Row before insertion index does not exist.");for(_=0;_<f;_++){let B=c.getChildren(),Z=B.length,q=w();for(let z=0;z<Z;z++){var I=B[z];o(I)||h(12);let{above:W,below:U}=te(I,d);I=a.NO_STATUS;let V=W&&W.getWidth()||U&&U.getWidth()||void 0;(W&&W.hasHeaderState(a.COLUMN)||U&&U.hasHeaderState(a.COLUMN))&&(I|=a.COLUMN),(I=S(I,1,V)).append(e.$createParagraphNode()),q.append(I)}$?c.insertAfter(q):c.insertBefore(q)}return l},Ne.$insertTableRow__EXPERIMENTAL=function(l=!0){var c=e.$getSelection();e.$isRangeSelection(c)||e.DEPRECATED_$isGridSelection(c)||h(118),c=c.focus.getNode();let[$,,f]=e.DEPRECATED_$getNodeTriplet(c),[d,_]=e.DEPRECATED_$computeGridMap(f,$,$);c=d[0].length;var{startRow:I}=_;if(l){var B=d[l=I+$.__rowSpan-1];I=w();for(var Z=0;Z<c;Z++){let{cell:q,startRow:z}=B[Z];z+q.__rowSpan-1<=l?I.append(S(a.NO_STATUS)):q.setRowSpan(q.__rowSpan+1)}c=f.getChildAtIndex(l),e.DEPRECATED_$isGridRowNode(c)||h(119),c.insertAfter(I)}else{for(B=d[I],l=w(),Z=0;Z<c;Z++){let{cell:q,startRow:z}=B[Z];z===I?l.append(S(a.NO_STATUS)):q.setRowSpan(q.__rowSpan+1)}c=f.getChildAtIndex(I),e.DEPRECATED_$isGridRowNode(c)||h(119),c.insertBefore(l)}},Ne.$isTableCellNode=o,Ne.$isTableNode=F,Ne.$isTableRowNode=b,Ne.$removeTableRowAtIndex=function(l,c){let $=l.getChildren();if(c>=$.length||0>c)throw Error("Expected table cell to be inside of table row.");return $[c].remove(),l},Ne.$unmergeCell=function(){var l=e.$getSelection();e.$isRangeSelection(l)||e.DEPRECATED_$isGridSelection(l)||h(118),l=l.anchor.getNode();let[c,$,f]=e.DEPRECATED_$getNodeTriplet(l);l=c.__colSpan;let d=c.__rowSpan;if(1<l){for(var _=1;_<l;_++)c.insertAfter(S(a.NO_STATUS));c.setColSpan(1)}if(1<d){let[Z,q]=e.DEPRECATED_$computeGridMap(f,c,c),{startColumn:z,startRow:W}=q;for(_=1;_<d;_++){let U=W+_,V=Z[U];var I=$.getNextSibling();e.DEPRECATED_$isGridRowNode(I)||h(125);var B=null;for(let ne=0;ne<z;ne++){let ae=V[ne],oe=ae.cell;ae.startRow===U&&(B=oe),1<oe.__colSpan&&(ne+=oe.__colSpan-1)}if(B===null)for(B=0;B<l;B++)H(I,S(a.NO_STATUS));else for(I=0;I<l;I++)B.insertAfter(S(a.NO_STATUS))}c.setRowSpan(1)}},Ne.INSERT_TABLE_COMMAND=L,Ne.TableCellHeaderStates=a,Ne.TableCellNode=i,Ne.TableNode=D,Ne.TableRowNode=g,Ne.TableSelection=C,Ne.applyTableHandlers=function(l,c,$){let f=$.getRootElement();if(f===null)throw Error("No root element.");let d=new C($,l.getKey());c.__lexicalTableSelection=d;let _=!1,I=!1;c.addEventListener("dblclick",z=>{let W=m(z.target);W!==null&&(z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),d.setAnchorCellForSelection(W),d.setFocusCellForSelection(W,!0),_=!1)}),c.addEventListener("mousedown",z=>{setTimeout(()=>{if(z.button===0){var W=m(z.target);W!==null&&(z.preventDefault(),z.stopPropagation(),z.stopImmediatePropagation(),d.setAnchorCellForSelection(W))}},0)}),c.addEventListener("mousemove",z=>{if(I&&(z.preventDefault(),z.stopPropagation(),z.stopImmediatePropagation()),_){let W=m(z.target);if(W!==null){let U=W.x,V=W.y;_&&(d.anchorX!==U||d.anchorY!==V||d.isHighlightingCells)&&(z.preventDefault(),d.setFocusCellForSelection(W))}}}),c.addEventListener("mouseleave",()=>{});let B=z=>{z.button===0&&$.update(()=>{var W=e.$getSelection();const U=z.target;if(U instanceof Node){if(e.DEPRECATED_$isGridSelection(W)&&W.gridKey===d.tableNodeKey&&f.contains(U))return d.clearHighlight();(W=e.$getNearestNodeFromDOMNode(U))!==null&&n.$findMatchingParent(W,e.DEPRECATED_$isGridNode)&&(_=!0)}})};window.addEventListener("mousedown",B),d.listenersToRemove.add(()=>window.removeEventListener("mousedown",B));let Z=z=>{var W;(W=_)&&(W=!(W=(W=z.target)!==null&&W.nodeName==="SPAN")),W&&(z.preventDefault(),z.stopPropagation()),_=!1};window.addEventListener("mouseup",Z),d.listenersToRemove.add(()=>window.removeEventListener("mouseup",Z)),c.addEventListener("mouseup",Z),d.listenersToRemove.add(()=>c.removeEventListener("mouseup",Z)),d.listenersToRemove.add($.registerCommand(e.KEY_ARROW_DOWN_COMMAND,z=>{var W=e.$getSelection();if(!O(W,l))return!1;if(e.$isRangeSelection(W)){if(W.isCollapsed()){var U=n.$findMatchingParent(W.anchor.getNode(),ne=>o(ne));if(!o(U))return!1;var V=l.getCordsFromCellNode(U,d.grid);if(W=n.$findMatchingParent(W.anchor.getNode(),ne=>e.$isElementNode(ne)),W==null)throw Error("Expected BlockNode Parent");if((U=U.getLastChild())&&W.isParentOf(U)||W===U||z.shiftKey)return z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),z.shiftKey?(d.setAnchorCellForSelection(l.getCellFromCordsOrThrow(V.x,V.y,d.grid)),N(d,l,V.x,V.y,"down")):v(d,l,V.x,V.y,"down")}}else if(e.DEPRECATED_$isGridSelection(W)&&z.shiftKey)return!!o(V=W.focus.getNode())&&(V=l.getCordsFromCellNode(V,d.grid),z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),N(d,l,V.x,V.y,"down"));return!1},e.COMMAND_PRIORITY_HIGH)),d.listenersToRemove.add($.registerCommand(e.KEY_ARROW_UP_COMMAND,z=>{var W=e.$getSelection();if(!O(W,l))return!1;if(e.$isRangeSelection(W)){if(W.isCollapsed()){var U=n.$findMatchingParent(W.anchor.getNode(),ne=>o(ne));if(!o(U))return!1;var V=l.getCordsFromCellNode(U,d.grid);if(W=n.$findMatchingParent(W.anchor.getNode(),ne=>e.$isElementNode(ne)),W==null)throw Error("Expected BlockNode Parent");if((U=U.getLastChild())&&W.isParentOf(U)||W===U||z.shiftKey)return z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),z.shiftKey?(d.setAnchorCellForSelection(l.getCellFromCordsOrThrow(V.x,V.y,d.grid)),N(d,l,V.x,V.y,"up")):v(d,l,V.x,V.y,"up")}}else if(e.DEPRECATED_$isGridSelection(W)&&z.shiftKey)return!!o(V=W.focus.getNode())&&(V=l.getCordsFromCellNode(V,d.grid),z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),N(d,l,V.x,V.y,"up"));return!1},e.COMMAND_PRIORITY_HIGH)),d.listenersToRemove.add($.registerCommand(e.KEY_ARROW_LEFT_COMMAND,z=>{var W=e.$getSelection();if(!O(W,l))return!1;if(e.$isRangeSelection(W)){if(W.isCollapsed()){var U=n.$findMatchingParent(W.anchor.getNode(),V=>o(V));if(!o(U))return!1;if(U=l.getCordsFromCellNode(U,d.grid),n.$findMatchingParent(W.anchor.getNode(),V=>e.$isElementNode(V))==null)throw Error("Expected BlockNode Parent");if(W.anchor.offset===0||z.shiftKey)return z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),z.shiftKey?(d.setAnchorCellForSelection(l.getCellFromCordsOrThrow(U.x,U.y,d.grid)),N(d,l,U.x,U.y,"backward")):v(d,l,U.x,U.y,"backward")}}else if(e.DEPRECATED_$isGridSelection(W)&&z.shiftKey)return!!o(W=W.focus.getNode())&&(W=l.getCordsFromCellNode(W,d.grid),z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),N(d,l,W.x,W.y,"backward"));return!1},e.COMMAND_PRIORITY_HIGH)),d.listenersToRemove.add($.registerCommand(e.KEY_ARROW_RIGHT_COMMAND,z=>{var W=e.$getSelection();if(!O(W,l))return!1;if(e.$isRangeSelection(W)){if(W.isCollapsed()){var U=n.$findMatchingParent(W.anchor.getNode(),V=>o(V));if(!o(U))return!1;if(U=l.getCordsFromCellNode(U,d.grid),n.$findMatchingParent(W.anchor.getNode(),V=>e.$isElementNode(V))==null)throw Error("Expected BlockNode Parent");if(W.anchor.offset===W.anchor.getNode().getTextContentSize()||z.shiftKey)return z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),z.shiftKey?(d.setAnchorCellForSelection(l.getCellFromCordsOrThrow(U.x,U.y,d.grid)),N(d,l,U.x,U.y,"forward")):v(d,l,U.x,U.y,"forward")}}else if(e.DEPRECATED_$isGridSelection(W)&&z.shiftKey)return!!o(W=W.focus.getNode())&&(W=l.getCordsFromCellNode(W,d.grid),z.preventDefault(),z.stopImmediatePropagation(),z.stopPropagation(),N(d,l,W.x,W.y,"forward"));return!1},e.COMMAND_PRIORITY_HIGH)),[e.DELETE_WORD_COMMAND,e.DELETE_LINE_COMMAND,e.DELETE_CHARACTER_COMMAND].forEach(z=>{d.listenersToRemove.add($.registerCommand(z,(W=>()=>{var U=e.$getSelection();if(!O(U,l))return!1;if(e.DEPRECATED_$isGridSelection(U))return d.clearText(),!0;if(e.$isRangeSelection(U)){const ae=n.$findMatchingParent(U.anchor.getNode(),oe=>o(oe));if(!o(ae))return!1;var V=U.anchor.getNode(),ne=U.focus.getNode();if(V=l.isParentOf(V),ne=l.isParentOf(ne),V&&!ne||ne&&!V)return d.clearText(),!0;if(V=(ne=n.$findMatchingParent(U.anchor.getNode(),oe=>e.$isElementNode(oe)))&&n.$findMatchingParent(ne,oe=>e.$isElementNode(oe)&&o(oe.getParent())),!e.$isElementNode(V)||!e.$isElementNode(ne))return!1;if(W===e.DELETE_LINE_COMMAND&&V.getPreviousSibling()===null)return!0;if((W===e.DELETE_CHARACTER_COMMAND||W===e.DELETE_WORD_COMMAND)&&U.isCollapsed()&&U.anchor.offset===0&&ne!==V){U=ne.getChildren();const oe=e.$createParagraphNode();return U.forEach(P=>oe.append(P)),ne.replace(oe),ne.getWritable().__parent=ae.getKey(),!0}}return!1})(z),e.COMMAND_PRIORITY_CRITICAL))});let q=z=>{const W=e.$getSelection();return!!O(W,l)&&(e.DEPRECATED_$isGridSelection(W)?(z.preventDefault(),z.stopPropagation(),d.clearText(),!0):(e.$isRangeSelection(W)&&(z=n.$findMatchingParent(W.anchor.getNode(),U=>o(U)),o(z)),!1))};return d.listenersToRemove.add($.registerCommand(e.KEY_BACKSPACE_COMMAND,q,e.COMMAND_PRIORITY_CRITICAL)),d.listenersToRemove.add($.registerCommand(e.KEY_DELETE_COMMAND,q,e.COMMAND_PRIORITY_CRITICAL)),d.listenersToRemove.add($.registerCommand(e.FORMAT_TEXT_COMMAND,z=>{let W=e.$getSelection();return!!O(W,l)&&(e.DEPRECATED_$isGridSelection(W)?(d.formatCells(z),!0):(e.$isRangeSelection(W)&&(z=n.$findMatchingParent(W.anchor.getNode(),U=>o(U)),o(z)),!1))},e.COMMAND_PRIORITY_CRITICAL)),d.listenersToRemove.add($.registerCommand(e.CONTROLLED_TEXT_INSERTION_COMMAND,()=>{var z=e.$getSelection();return!!O(z,l)&&(e.DEPRECATED_$isGridSelection(z)?d.clearHighlight():e.$isRangeSelection(z)&&(z=n.$findMatchingParent(z.anchor.getNode(),W=>o(W)),o(z)),!1)},e.COMMAND_PRIORITY_CRITICAL)),d.listenersToRemove.add($.registerCommand(e.KEY_TAB_COMMAND,z=>{var W=e.$getSelection();if(!O(W,l))return!1;if(e.$isRangeSelection(W)){let U=n.$findMatchingParent(W.anchor.getNode(),V=>o(V));if(!o(U))return!1;if(W.isCollapsed())return W=l.getCordsFromCellNode(U,d.grid),z.preventDefault(),v(d,l,W.x,W.y,z.shiftKey?"backward":"forward"),!0}return!1},e.COMMAND_PRIORITY_HIGH)),d.listenersToRemove.add($.registerCommand(e.FOCUS_COMMAND,()=>l.isSelected(),e.COMMAND_PRIORITY_HIGH)),d.listenersToRemove.add($.registerCommand(e.SELECTION_CHANGE_COMMAND,()=>{let z=e.$getSelection();var W=e.$getPreviousSelection();if(z&&e.$isRangeSelection(z)&&!z.isCollapsed()){var U=z.anchor.getNode(),V=z.focus.getNode();U=l.isParentOf(U);var ne=l.isParentOf(V);if(V=U&&!ne||ne&&!U,U=U&&ne&&!l.isSelected(),V)return W=z.isBackward(),U=e.$createRangeSelection(),V=l.getKey(),U.anchor.set(z.anchor.key,z.anchor.offset,z.anchor.type),U.focus.set(V,W?0:l.getChildrenSize(),"element"),I=!0,e.$setSelection(U),T(d),!0;if(U&&({grid:U}=d,z.getNodes().filter(o).length===U.rows*U.columns)){U=e.DEPRECATED_$createGridSelection(),V=l.getKey(),ne=l.getFirstChildOrThrow().getFirstChild();let ae=l.getLastChildOrThrow().getLastChild();if(ne!=null&&ae!=null)return U.set(V,ne.getKey(),ae.getKey()),e.$setSelection(U),d.updateTableGridSelection(U),!0}}return z&&!z.is(W)&&(e.DEPRECATED_$isGridSelection(z)||e.DEPRECATED_$isGridSelection(W))&&d.gridSelection&&!d.gridSelection.is(W)?(e.DEPRECATED_$isGridSelection(z)&&z.gridKey===d.tableNodeKey?d.updateTableGridSelection(z):!e.DEPRECATED_$isGridSelection(z)&&e.DEPRECATED_$isGridSelection(W)&&W.gridKey===d.tableNodeKey&&d.updateTableGridSelection(null),!1):(d.hasHijackedSelectionStyles&&!l.isSelected()?(function(ae){ae.enableHighlightStyle(),u(ae.grid,oe=>{let P=oe.elem;oe.highlighted=!1,P.style.removeProperty("background-color"),P.style.removeProperty("caret-color"),P.getAttribute("style")||P.removeAttribute("style")})}(d),I=!1):!d.hasHijackedSelectionStyles&&l.isSelected()&&T(d),!1)},e.COMMAND_PRIORITY_CRITICAL)),d},Ne.getCellFromTarget=m,Ne.getTableSelectionFromTableElement=function(l){return l.__lexicalTableSelection},Ne}var ts,ns,os,oi=function(){return es?Qa:(es=1,Qa=Zu())}(),we=Ze(),oo={};function Xu(){if(ts)return oo;ts=1;var e=Po(),n=bt(),a=mt(),i=Ze(),E=gt();function S(h,r){for(let C=0;C<r.length;C++){let m=r[C](h);if(m)return m}return null}let o=/[.,;\s]/;function g(h){var r;return h=h.getPreviousSibling(),i.$isElementNode(h)&&(h=h.getLastDescendant()),!(r=h===null||i.$isLineBreakNode(h))&&(r=i.$isTextNode(h))&&(h=h.getTextContent(),r=o.test(h[h.length-1])),r}function x(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 w(h,r,C){var m=h.getChildren();let k=m.length;for(let s=0;s<k;s++){let u=m[s];if(!i.$isTextNode(u)||!u.isSimpleText())return b(h),void C(null,h.getURL())}(r=S(m=h.getTextContent(),r))===null||r.text!==m?(b(h),C(null,h.getURL())):g(h)&&x(h)?((m=h.getURL())!==r.url&&(h.setURL(r.url),C(r.url,m)),r.attributes&&((m=h.getRel())!==r.attributes.rel&&(h.setRel(r.attributes.rel||null),C(r.attributes.rel||null,m)),(m=h.getTarget())!==r.attributes.target&&(h.setTarget(r.attributes.target||null),C(r.attributes.target||null,m)))):(b(h),C(null,h.getURL()))}function b(h){let r=h.getChildren();var C=r.length;for(--C;0<=C;C--)h.insertAfter(r[C]);return h.remove(),r.map(m=>m.getLatest())}return oo.AutoLinkPlugin=function({matchers:h,onChange:r}){let[C]=n.useLexicalComposerContext();return function(m,k,s){E.useEffect(()=>{if(!m.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 u=(T,v)=>{s&&s(T,v)};return a.mergeRegister(m.registerNodeTransform(i.TextNode,T=>{var v=T.getParentOrThrow(),N=T.getPreviousSibling();if(e.$isAutoLinkNode(v))w(v,k,u);else if(!e.$isLinkNode(v)){if(T.isSimpleText()&&(o.test(T.getTextContent()[0])||!e.$isAutoLinkNode(N))){N=v=T.getTextContent();let Y=0,ee=T;for(var O;(O=S(N,k))&&O!==null;){let te=O.index,X=O.length,H=te+X;var M=Y+te,D=Y+H,R=v,j=T;if((0<M?o.test(R[M-1]):g(j))&&(D<R.length?o.test(R[D]):x(j))){var F=void 0;Y+te===0?[F,ee]=ee.splitText(Y+X):[,F,ee]=ee.splitText(Y+te,Y+te+X),M=e.$createAutoLinkNode(O.url,O.attributes),(D=i.$createTextNode(O.text)).setFormat(F.getFormat()),D.setDetail(F.getDetail()),M.append(D),F.replace(M),s&&s(O.url,null),Y=0}else Y+=H;N=N.substring(H)}}v=T.getPreviousSibling(),O=T.getNextSibling(),F=T.getTextContent(),e.$isAutoLinkNode(v)&&!o.test(F[0])&&(v.append(T),w(v,k,u),T=v.getURL(),s&&s(null,T)),e.$isAutoLinkNode(O)&&!o.test(F[F.length-1])&&(b(O),w(O,k,u),T=O.getURL(),s&&s(null,T))}}))},[m,k,s])}(C,h,r),null},oo.createLinkMatcherWithRegExp=function(h,r=C=>C){return C=>{let m=h.exec(C);return m===null?null:{index:m.index,length:m[0].length,text:m[0],url:r(C)}}},oo}var Qu=function(){return os?ns:(os=1,ns=Xu())}(),qn=bt(),io=lc(),Ri=Yn(),vo=mt();const{common:{texts:ep}}=Ae.getLocalizedStrings();function tp({coords:e,alignment:n="top",style:a,onClick:i}){return t.jsx(np,{style:{top:e.top,left:e.left,...n==="top"?{transform:`translateY(calc(-100% - ${p.sp1}))`}:{transform:`translateX(calc(-100% - ${p.sp1}))`},userSelect:"none",...a},onClick:E=>{E.stopPropagation(),i()},children:t.jsxs(op,{children:[t.jsx(ip,{}),t.jsx(rp,{children:ep.addComment})]})})}const np=A.div`
|
|
27
|
-
position: absolute;
|
|
28
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
29
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
30
|
-
padding: ${p.sp1} ${p.sp0};
|
|
31
|
-
border-radius: ${p.sp2};
|
|
32
|
-
z-index: 5;
|
|
33
|
-
width: max-content;
|
|
34
|
-
top: ${p.sp7};
|
|
35
|
-
box-shadow: ${e=>`${p.sp0} 1px 2px ${p.sp0} ${e.theme.colors.grey1}3D`};
|
|
36
|
-
`,op=A.div`
|
|
37
|
-
color: ${e=>e.theme.colors.hero};
|
|
38
|
-
height: ${p.sp6};
|
|
39
|
-
padding: ${p.sp0} ${p.sp3};
|
|
40
|
-
&:hover {
|
|
41
|
-
color: ${e=>e.theme.colors.primary};
|
|
42
|
-
background-color: ${e=>e.theme.colors.background};
|
|
43
|
-
}
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
`,ip=A(Zc)`
|
|
48
|
-
color: inherit;
|
|
49
|
-
margin-right: ${p.sp2};
|
|
50
|
-
height: ${p.sp3};
|
|
51
|
-
width: ${p.sp3};
|
|
52
|
-
`,rp=A(wt)`
|
|
53
|
-
color: inherit;
|
|
54
|
-
`,dc=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"})),ap=A.div`
|
|
55
|
-
display: flex;
|
|
56
|
-
min-width: ${p.sp5};
|
|
57
|
-
width: ${p.sp5};
|
|
58
|
-
height: ${p.sp5};
|
|
59
|
-
position: relative;
|
|
60
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
61
|
-
border: ${e=>`1px solid ${e.theme.colors.grey2}`};
|
|
62
|
-
border-radius: ${p.sp3};
|
|
63
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
64
|
-
align-items: center;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
color: ${e=>e.color??Oe.neutralGrey2Light};
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
`,sp=A(dc)`
|
|
69
|
-
width: ${p.sp4};
|
|
70
|
-
height: ${p.sp4};
|
|
71
|
-
color: ${e=>e.theme.colors.primary};
|
|
72
|
-
`,lp=A(Yc)`
|
|
73
|
-
width: ${p.sp3};
|
|
74
|
-
height: ${p.sp3};
|
|
75
|
-
color: ${Oe.important};
|
|
76
|
-
`,is=A.div`
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: -${p.sp1};
|
|
79
|
-
right: -${p.sp2};
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
`;function cp({fileSizeError:e,loading:n,showAnimation:a=!1,setFileSizeError:i}){const[E,S]=y.useState(!1);return y.useEffect(()=>{if(!n&&a){S(!0);const o=setTimeout(()=>S(!1),2e3);return()=>clearTimeout(o)}if(e){const o=setTimeout(()=>i(!1),2e3);return()=>clearTimeout(o)}},[e,n,i,a]),t.jsx(ap,{children:n?t.jsx(_o,{size:"Small",start:n,style:{alignItems:"center",display:"flex"}}):t.jsxs(t.Fragment,{children:[E&&a&&t.jsx(is,{children:t.jsx(oc,{shouldDisplay:E,width:20,height:20,animationInLoop:!1,onAnimationComplete:()=>S(!1)})}),e&&t.jsx(is,{children:t.jsx(lp,{})}),t.jsx(sp,{})]})})}const dp=A.div`
|
|
84
|
-
flex: none;
|
|
85
|
-
order: 0;
|
|
86
|
-
flex-grow: 0;
|
|
87
|
-
margin-right: 6px;
|
|
88
|
-
`,up=A.div`
|
|
89
|
-
flex: none;
|
|
90
|
-
order: 1;
|
|
91
|
-
flex-grow: 0;
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
column-gap: 6px;
|
|
95
|
-
`,pp=A.div`
|
|
96
|
-
flex: none;
|
|
97
|
-
order: 3;
|
|
98
|
-
flex-grow: 0;
|
|
99
|
-
`,hp=A.div`
|
|
100
|
-
margin-right: ${p.sp2};
|
|
101
|
-
`,gp=A(Nt)`
|
|
102
|
-
display: flex;
|
|
103
|
-
color: ${e=>e.theme.colors.hero};
|
|
104
|
-
`,mp=A(Be)`
|
|
105
|
-
color: ${e=>e.theme.colors.primary};
|
|
106
|
-
`,fp=A.div`
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
`,xp=A.div`
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: row;
|
|
112
|
-
`,Cp=A.img`
|
|
113
|
-
height: ${p.sp4};
|
|
114
|
-
width: ${p.sp4};
|
|
115
|
-
border-radius: 50%;
|
|
116
|
-
justify-content: center;
|
|
117
|
-
color: ${e=>e.theme.colors.hero};
|
|
118
|
-
`,yp=A.div`
|
|
119
|
-
margin: ${p.sp2} 5px 6px;
|
|
120
|
-
border-radius: 50%;
|
|
121
|
-
width: ${p.sp1};
|
|
122
|
-
height: ${p.sp1};
|
|
123
|
-
background-color: ${e=>e.theme.colors.grey1};
|
|
124
|
-
order: 2;
|
|
125
|
-
`,bp=({time:e,user:n,timeStampLabel:a})=>{const{cockpit:i,dateFormat:{visual:E},timeFormat:S}=Ae.getLocalizedStrings();return t.jsxs(xp,{children:[!!n&&t.jsx(hp,{children:n?.photo!==void 0?t.jsx(Cp,{src:n?.photo.href,alt:i.userProfileAltText,onError:({currentTarget:o})=>{o.onerror=null,o.src=Qc},loading:"lazy"}):t.jsx(ed,{firstName:n?.firstName??"",lastName:n?.lastName??"",size:`${p.sp4}`})}),t.jsxs(fp,{children:[n&&t.jsx(mp,{children:`${n.firstName} ${n.lastName}`}),!!e&&t.jsxs(gp,{children:[a!=null?t.jsx(dp,{children:a}):null,e!=null&&t.jsxs(up,{children:[t.jsx(uu,{width:p.sp3,height:p.sp3}),Hn(e.toISOString()).format(e.year()===Jl().year()?E.MMMDFormat:E.MMMDCommaYYYYformat)]}),t.jsx(yp,{}),e!=null&&t.jsx(pp,{children:Hn(e.toISOString()).format(S.hhmmAFormat)})]})]})]})},ro={iconContainerMaxWidthHeight:new me(G[6],G[7]),iconContainerMarginRight:new me(12,G[3]),iconPadding:new me(10,12)},vp={title:new Kc("standardMedium","largeMedium")},wp=A.div`
|
|
126
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
127
|
-
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
128
|
-
border-radius: ${p.sp2};
|
|
129
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
130
|
-
padding: ${p.sp3} ${p.sp4};
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
134
|
-
pointer-events: ${e=>e.disabled?"none":"auto"};
|
|
135
|
-
&:hover {
|
|
136
|
-
outline: ${e=>e.disabled?"none":`1px solid ${e.theme.colors.primary}`};
|
|
137
|
-
}
|
|
138
|
-
`,Sp=A.div`
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
column-gap: ${p.sp2};
|
|
142
|
-
justify-content: space-between;
|
|
143
|
-
width: 100%;
|
|
144
|
-
`,Ep=A.div`
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: row;
|
|
147
|
-
align-items: center;
|
|
148
|
-
`,kp=A.div`
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: row;
|
|
151
|
-
align-items: flex-start;
|
|
152
|
-
padding: ${e=>ro.iconPadding.valuePx(e.windowSize)};
|
|
153
|
-
background: ${e=>e.iconColor.toString()};
|
|
154
|
-
border-radius: ${p.sp11};
|
|
155
|
-
width: fit-content;
|
|
156
|
-
height: fit-content;
|
|
157
|
-
color: ${e=>e.isDarkMode?Oe.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
|
|
158
|
-
max-width: ${e=>ro.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
159
|
-
max-height: ${e=>ro.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
160
|
-
margin-right: ${e=>ro.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
161
|
-
`,Tp=A(e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M5.20129 8.55841H8.85011",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M5.20129 11.6004H11.7072",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"}),y.createElement("path",{d:"M5.20129 5.5174H8.3145",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M5.20129 14.6414H8.69612",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"})))`
|
|
162
|
-
width: ${p.sp4};
|
|
163
|
-
height: ${p.sp4};
|
|
164
|
-
`,$p=A.div`
|
|
165
|
-
display: flex;
|
|
166
|
-
flex-direction: row;
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: space-between;
|
|
169
|
-
`,Np=A.div``,_p=A.div`
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
column-gap: ${p.sp2};
|
|
173
|
-
`,Ap=A.div`
|
|
174
|
-
${e=>`${vp.title.style(e.windowSize)}`};
|
|
175
|
-
color: ${e=>e.theme.colors.primary};
|
|
176
|
-
`,Rp=A(El)`
|
|
177
|
-
color: ${Oe.brandColorGoldDark};
|
|
178
|
-
`,Ip=A.div`
|
|
179
|
-
display: flex;
|
|
180
|
-
align-items: center;
|
|
181
|
-
justify-content: flex-start;
|
|
182
|
-
`,jp=A(kl)`
|
|
183
|
-
color: ${e=>e.theme.colors.hero};
|
|
184
|
-
`,Lp=A.div`
|
|
185
|
-
display: flex;
|
|
186
|
-
color: ${e=>e.theme.colors.hero};
|
|
187
|
-
justify-content: flex-end;
|
|
188
|
-
`,Dp=A(Tl)`
|
|
189
|
-
width: ${p.sp4};
|
|
190
|
-
height: ${p.sp4};
|
|
191
|
-
`;function Op({totalItems:e,onClickCustomerRequest:n}){const a=Ae.getLocalizedStrings(),i=vt(),E=Me(),S=i.mode==="light"?new Fn(i.colors.brandColorJadeLight):new Fn(i.colors.brandColorJadeDark);return t.jsx(wp,{disabled:e===0,onClick:e>0?n:void 0,children:t.jsxs(Sp,{children:[t.jsxs(Ep,{children:[t.jsx(kp,{iconColor:S,windowSize:E,isDarkMode:i.mode==="dark",children:t.jsx(Tp,{width:p.sp4,height:p.sp4})}),t.jsx($p,{children:t.jsxs(Np,{children:[t.jsxs(_p,{children:[t.jsx(Ap,{windowSize:E,children:a.cockpit.monthEndReport.customerRequestSectionTitle}),t.jsx(Rp,{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(Ip,{children:t.jsx(jp,{children:a.cockpit.monthEndReport.customerRequestSectionSubtitle})})]})})]}),t.jsx(Lp,{windowSize:E,children:t.jsx(Dp,{width:p.sp4,height:p.sp4})})]})})}const Mp=A.div`
|
|
192
|
-
display: flex;
|
|
193
|
-
flex-direction: column;
|
|
194
|
-
`,Pp=A.div`
|
|
195
|
-
display: flex;
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
`,Fp=A.div`
|
|
198
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
199
|
-
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
200
|
-
border-top-left-radius: ${p.sp2};
|
|
201
|
-
border-top-right-radius: ${p.sp2};
|
|
202
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
203
|
-
display: flex;
|
|
204
|
-
align-items: center;
|
|
205
|
-
`,Bp=A.div`
|
|
206
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
207
|
-
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
208
|
-
border-bottom-left-radius: ${p.sp2};
|
|
209
|
-
border-bottom-right-radius: ${p.sp2};
|
|
210
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
211
|
-
padding: 0;
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
`;function zp({previewMode:e,sectionId:n,subject:a}){const i=Ae.getLocalizedStrings();return t.jsx(Mp,{children:t.jsxs(Pp,{children:[t.jsx(Fp,{children:t.jsx(pu,{label:`${i.cockpit.monthEndReport.sendEmailTo}${i.common.strings.colon}`,name:rs(n,"recipientEmailList"),registerOptions:{required:!0,disabled:e===!0},style:{paddingTop:p.sp2,paddingBottom:p.sp2,paddingRight:p.sp2},description:i.cockpit.monthEndReport.addUserForInsights,placeholder:i.cockpit.monthEndReport.addEmailAddress})}),t.jsx(Bp,{children:t.jsx(Uc,{text:{type:"text",name:rs(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 rs=(e,n)=>`${e}.${n}`,Hp=A.div`
|
|
215
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
216
|
-
&:hover {
|
|
217
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
218
|
-
}
|
|
219
|
-
width: fit-content;
|
|
220
|
-
border-radius: ${p.sp1};
|
|
221
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
222
|
-
display: flex;
|
|
223
|
-
align-items: center;
|
|
224
|
-
padding: 6px 12px;
|
|
225
|
-
margin-top: ${p.sp3};
|
|
226
|
-
`,Wp=A(Be)`
|
|
227
|
-
margin-right: ${p.sp2};
|
|
228
|
-
overflow: visible;
|
|
229
|
-
text-overflow: ellipsis;
|
|
230
|
-
white-space: nowrap;
|
|
231
|
-
color: ${e=>e.theme.colors.hero};
|
|
232
|
-
`,Vp=A(Be)`
|
|
233
|
-
color: ${e=>e.theme.colors.grey1};
|
|
234
|
-
margin-right: ${p.sp2};
|
|
235
|
-
`,Up=A($l)`
|
|
236
|
-
width: ${p.sp3};
|
|
237
|
-
height: ${p.sp3};
|
|
238
|
-
background-color: transparent;
|
|
239
|
-
color: ${e=>e.theme.colors.champion};
|
|
240
|
-
&:hover {
|
|
241
|
-
color: ${e=>e.theme.colors.grey5};
|
|
242
|
-
}
|
|
243
|
-
border: none;
|
|
244
|
-
cursor: pointer;
|
|
245
|
-
margin-left: auto;
|
|
246
|
-
`,Gp=ql.forwardRef(({fileName:e,fileSize:n,onRemove:a,isRemovable:i},E)=>{const S=Me();return t.jsxs(Hp,{className:"attachFileSeparator",ref:E,children:[t.jsx(Wp,{windowSize:S,children:e}),t.jsx(Vp,{windowSize:S,children:n}),i&&t.jsx(Up,{onClick:a})]})}),Ii="data-highlight-id";function as({rect:e,isOpenThread:n,threadId:a}){return t.jsx(Kp,{[Ii]:a,rect:e,isOpenThread:n})}const Kp=A.div`
|
|
247
|
-
position: absolute;
|
|
248
|
-
background: ${e=>e.isOpenThread?e.theme.mode==="dark"?Oe.alertDark:Oe.alertLight:e.theme.mode==="dark"?`${Oe.alertDark}80`:`${Oe.alertLight}80`};
|
|
249
|
-
width: ${e=>e.rect.width}px;
|
|
250
|
-
height: ${e=>e.rect.height}px;
|
|
251
|
-
top: ${e=>e.rect.top}px;
|
|
252
|
-
left: ${e=>e.rect.left}px;
|
|
253
|
-
`,Ln=726,wo="<!--editorComesHere-->",qi="editor-input",ji="month-end-email-header-section",Dn="month-end-email-editor-section",$o="month-end-email-body-section",ss="monthEndReportCanvas",ls=G[3],Li=G[3],{dateFormat:QC,common:{strings:{hash:ao,empty:en}}}=Ae.getLocalizedStrings(),An=(e,n)=>{const{startNodeId:a,startPath:i,endPath:E,startOffset:S,endOffset:o}=e;if(a==null||i==null||E==null||S==null||o==null)return null;const g=n&&a===Dn?document.getElementsByClassName(qi)[0]:document.getElementById(a);if(!(g instanceof HTMLElement))return null;const x=hs(i.split(",").map(h=>parseInt(h,10)),g),w=hs(E.split(",").map(h=>parseInt(h,10)),g);if(!x||!w)return null;const b=document.createRange();try{b.setStart(x,Math.min(S,x.textContent?.trim().length??0)),b.setEnd(w,Math.min(o,w.textContent?.trim().length??0))}catch(h){return console.warn("Failed to set range:",h),null}return b},Di=(e,n)=>An(e,n)?.getBoundingClientRect().top??0,cs=e=>{for(;e!=null;){if(e instanceof HTMLElement&&(e.id||e.className===qi))return e;e=e.parentElement}return null},ds=(e,n)=>{if(e.nodeType===Node.TEXT_NODE){const a=e.textContent??en,i=a.match(/^\s*/)?.[0],E=n-(i?.length!=null?i.length:0);return Math.max(0,Math.min(E,a.trim().length))}return n},us=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},ps=(e,n)=>{const a=[];let i=e;for(;i!=null&&i!==n;){const E=i.parentNode;if(!E)break;const S=Array.from(E.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(g=>g.nodeType===Node.ELEMENT_NODE&&g.tagName==="BR"||g.nodeType===Node.TEXT_NODE&&g.nodeValue?.trim()==="")||o.nodeType===Node.ELEMENT_NODE&&o.tagName==="P"&&o.childNodes.length===0||o.nodeType===Node.COMMENT_NODE)).indexOf(i);a.unshift(S),i=E}return a},hs=(e,n)=>{let a=n;for(const i of e){if(a==null)return null;a=Array.from(a.childNodes).filter(E=>!(E.nodeType===Node.ELEMENT_NODE&&E.tagName==="BR"||E.nodeType===Node.TEXT_NODE&&!E.nodeValue?.trim()||E.nodeType===Node.ELEMENT_NODE&&window.getComputedStyle(E).display==="none"||E.nodeType===Node.ELEMENT_NODE&&E.getAttribute("contenteditable")==="false"&&E.getAttribute("data-lexical-cursor")==="true"||E.nodeType===Node.ELEMENT_NODE&&E.tagName==="P"&&Array.from(E.childNodes).every(S=>S.nodeType===Node.ELEMENT_NODE&&S.tagName==="BR"||S.nodeType===Node.TEXT_NODE&&S.nodeValue?.trim()==="")||E.nodeType===Node.ELEMENT_NODE&&E.tagName==="P"&&E.childNodes.length===0||E.nodeType===Node.COMMENT_NODE))[i]??null}return a},Yp=(e,n,a,i,E=!0)=>{const[S,o]=y.useState([]),[g,x]=y.useState(new Set),w=y.useRef([]),b=y.useRef(new Set),[h,r]=y.useState(0),C=y.useRef(),m=E?Vn:No,{threads:k,openThread:s,removeThread:u,setOpenThread:T}=y.useContext(m),v=Vc(k,e,!1),N=Array.from(v),O=N.map(c=>c[0]).join(","),M=y.useMemo(()=>N.map(c=>c[0]),[O]);y.useEffect(()=>{n.current!=null&&x(new Set([...M]))},[n,M]);const[D,R]=y.useState(!1),[j,F]=y.useState(!1);y.useEffect(()=>{R(i)},[i]),y.useEffect(()=>{let c=null;const $=N.filter(([f])=>b.current.has(f)).filter(([f,{metadata:d}])=>An(d,a)?.getClientRects()[0]!=null).map(([f])=>f);return i===!1&&h<3?b.current.size>0?(b.current.size===$.length&&$.every(f=>b.current.has(f))&&F(!0),c=setInterval(()=>{r(f=>f+1)},2e3)):(F(!1),r(0),c!=null&&clearInterval(c)):h>=3&&c!=null&&clearInterval(c),()=>{c&&clearInterval(c)}},[h,i]);const Y=y.useMemo(()=>N.sort(([c,{metadata:$}],[f,{metadata:d}])=>{if(i&&!D)return 0;const _=An($,a)?.getClientRects()[0],I=An(d,a)?.getClientRects()[0];if(_==null&&(b.current=new Set([...b.current,c])),I==null&&(b.current=new Set([...b.current,f])),_){const q=new Set([...b.current]);q.delete(c),b.current=new Set([...q])}if(I){const q=new Set([...b.current]);q.delete(f),b.current=new Set([...q])}if(!_||!I)return _?-1:I?1:0;const B=_.top-I.top,Z=_.left-I.left;return B===0?Z:B}),[O,g,i,D,j,a]),ee=y.useCallback((c,$)=>{if(s==null)return;const f=Y.findIndex(([d])=>d===s);if(f>=0){const d=Di(Y[f][1].metadata,a)-$,_=c[f].top;if(d-_<0){const I=d-_;s.includes(_n)===!1&&w.current?.[f]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});for(const B of c)B.top+=I}}},[s,Y,a]),te=y.useCallback(()=>{if(w.current?.length==null||w.current.length===0||!Y.length||!n.current?.getBoundingClientRect())return;C.current=n.current?.getBoundingClientRect();const c=C.current?.top??0,$=I=>Di(I,a)-c,f=(I,B,Z)=>I+B+ls>Z,[,{metadata:d}]=Y[0],_=[{top:$(d),left:Li}];for(let I=1;I<Y.length;I++){const B=I-1,Z=_[B].top,q=w.current[B]?.getBoundingClientRect().height??0,[,{metadata:z}]=Y[I],W=$(z);_[I]={top:f(Z,q,W)?Z+q+ls:W,left:Li}}return ee(_,c),_},[n,a,Y,ee]),X=y.useCallback(()=>{o(c=>{const $=te();return $&&!Bi(c,$)?$:c})},[te]),H=y.useMemo(()=>new ResizeObserver(X),[X]);y.useEffect(()=>{const c=te();return c&&o(c),()=>{H.disconnect()}},[te,H,Y,g,i]),y.useEffect(()=>(window.addEventListener("resize",X),()=>{window.removeEventListener("resize",X)}),[X]);const L=y.useCallback(c=>{x($=>{const f=new Set([...$]);return f.delete(c),f}),u(c),T(null)},[u,T]),l=y.useCallback(c=>{s==null||c.key!=="Escape"||(s&&v.get(s)?.comments.length===0?L(s):T(null))},[L,s,T,v]);return y.useEffect(()=>(document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l)}),[l]),y.useEffect(()=>{const c=$=>{if(window.getSelection()?.isCollapsed!==!0)return;const f=document.elementsFromPoint($.clientX,$.clientY).find(d=>d.matches(`[${Ii}]`))?.getAttribute(Ii);f!=null&&T(f)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)}),{observer:H,sortedThreads:Y,threadsPositions:S,threadsRefs:w,sheetContainerBoundingClientRect:C,threadsReady:g,unresolvedThreadsMap:v,setThreadsPositions:o,handleRemoveFloatingThread:L}},qp=e=>{let n=en;const a=Jp(e);if(a==null||!a)return n;if(Xn.test(a)){const i=Xn.lastIndex,E=a.substring(0,i).replace("<style>","<div><style>").replace(wo,`</div>${wo}`).replace(a.match(Xn)?.[0]??en,"<div>".concat(a.match(Xn)?.[0]??en,"</div>")),S=a.substring(i),o=Gc.exec(S)?.index,g=`<div id="${ji}">`.concat(E).concat("</div>");let x=en,w=en;if(o!=null){const b=S.substring(0,o-1),h=S.substring(o);x=`<div id="${Dn}">`.concat(b).concat("</div>"),w=`<div id="${$o}">`.concat(h).concat("</div>"),n=g.concat(x.concat(w))}else n=g.concat(S)}else{const i=a.split(wo),E=i[1]!=null?`<div id="${$o}">`.concat(i[1]).concat("</div>"):en;n=`<div id="${ji}">`.concat(i[0]).concat("</div>").concat(E)}return n},Jp=e=>{if(e==null)return en;let n=e.replace(qc,`<span class=${Ti}>`);return n=n.replace(/<\/p>/g,"</span>"),n},Zp=A.div`
|
|
254
|
-
position: relative;
|
|
255
|
-
`,Xp=A.div``,Qp=A.div`
|
|
256
|
-
align-items: center;
|
|
257
|
-
justify-content: center;
|
|
258
|
-
display: flex;
|
|
259
|
-
width: 300px;
|
|
260
|
-
box-sizing: border-box;
|
|
261
|
-
cursor: pointer;
|
|
262
|
-
flex-direction: column;
|
|
263
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
264
|
-
border-radius: ${p.sp2};
|
|
265
|
-
${$t.standardRegular.css};
|
|
266
|
-
`;function eh({observer:e,editorMode:n,threadsPositions:a,canvasContainerRef:i,threadsRefs:E,sortedThreads:S,unresolvedThreadsMap:o,style:g,handleRemoveFloatingThread:x}){const{openThread:w,removeThread:b,setOpenThread:h}=y.useContext(Vn),[r,C]=y.useState(w!=null),[m,k]=y.useState(i.current!=null);y.useEffect(()=>{k(i.current!=null)},[i.current]);const s=i.current?.getBoundingClientRect()?.top??0;y.useEffect(()=>{w!=null&&r===!1&&C(!0)},[w]);const u=hu(),T=y.useCallback(({body:v},N,O)=>{N.preventDefault(),N.stopPropagation(),u({body:v,metadata:O}),w!=null&&(b(w),h(null))},[u,w,b,h]);return t.jsx(Zp,{style:g,children:S.map(([v,{metadata:N}],O)=>{if(!An(N,n)||m===!1)return null;const M=o.get(v),D=w===v;return t.jsx(Mt,{onClickAway:()=>{w!=null&&(C(!1),x(w))},children:t.jsx(Xp,{ref:R=>{E.current&&R instanceof Element&&(E.current[O]=R,e.observe(R))},className:"floating-thread-container "+(w===v?"open ":"")+(v.includes(_n)===!0?"new-thread":""),onClick:R=>{R.stopPropagation(),R.preventDefault()},style:{position:"absolute",left:(a[O]?.left??0)+ +(D?-48:Li),top:(a[O]?.top??Di(N,n)-s)-G[6],transition:"all 0.8s ease 0.1s",transitionProperty:w!=null&&w.includes(_n)===!1?"left, left":"top, left",visibility:o.has(v)?"visible":"hidden"},children:M!=null?M.id.includes(_n)===!0?t.jsx(Qp,{children:t.jsx(gu,{onComposerSubmit:(R,j)=>T(R,j,M.metadata),onCollapsedChange:R=>{w!==M.id&&R===!1&&h(M.id)},showAttachments:!1,defaultCollapsed:!1,autoFocus:!0,style:{userSelect:"none"}})}):t.jsx(Xc,{thread:M,showDeleted:!1,showActions:!0,showReactions:!0,indentContent:!0,showAttachments:!1,autoExpand:w===M.id,autoFocus:r,style:{width:"300px"},textOverrides:{},onThreadClick:R=>h(M.id),onReplyElementClick:R=>{R&&h(M.id)}},M.id):null})},v)})})}let uc=class extends we.ParagraphNode{__customClass;static getType(){return"custom-paragraph"}constructor(e,n){super(n),this.__customClass=e}createDOM(e){const n=super.createDOM(e);return n.classList.add(this.__customClass),n}updateDOM(e,n,a){const i=super.updateDOM(e,n,a);return this.__customClass!==e.__customClass&&(n.classList.remove(e.__customClass),n.classList.add(this.__customClass)),i}exportJSON(){return{...super.exportJSON(),type:"custom-paragraph",customClass:this.__customClass}}};function gs(e){return we.$applyNodeReplacement(new uc(e))}const th=Mo`
|
|
267
|
-
from {
|
|
268
|
-
background-color: ${Oe.brandColorGoldLight};
|
|
269
|
-
}
|
|
270
|
-
to {
|
|
271
|
-
background-color: transparent;
|
|
272
|
-
}
|
|
273
|
-
`,nh=()=>t.jsx(Zd,{styles:We`
|
|
274
|
-
.lexicalEditor__textBold {
|
|
275
|
-
font-weight: ${Ao.bold};
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.lexicalEditor__textItalic {
|
|
279
|
-
font-style: ${Jc.italic};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.lexicalEditor__textUnderline {
|
|
283
|
-
text-decoration: underline;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.lexicalEditor__ol1 {
|
|
287
|
-
padding: 0;
|
|
288
|
-
margin: 0;
|
|
289
|
-
list-style-position: inside;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.lexicalEditor__ol2 {
|
|
293
|
-
padding: 0;
|
|
294
|
-
margin: 0;
|
|
295
|
-
list-style-type: upper-alpha;
|
|
296
|
-
list-style-position: inside;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.lexicalEditor__ol3 {
|
|
300
|
-
padding: 0;
|
|
301
|
-
margin: 0;
|
|
302
|
-
list-style-type: lower-alpha;
|
|
303
|
-
list-style-position: inside;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.lexicalEditor__ol4 {
|
|
307
|
-
padding: 0;
|
|
308
|
-
margin: 0;
|
|
309
|
-
list-style-type: upper-roman;
|
|
310
|
-
list-style-position: inside;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.lexicalEditor__ol5 {
|
|
314
|
-
padding: 0;
|
|
315
|
-
margin: 0;
|
|
316
|
-
list-style-type: lower-roman;
|
|
317
|
-
list-style-position: inside;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.lexicalEditor__ul {
|
|
321
|
-
padding: 0;
|
|
322
|
-
margin: 0;
|
|
323
|
-
list-style-position: inside;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.lexicalEditor__listItem {
|
|
327
|
-
margin: 0 ${p.sp5};
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.lexicalEditor__nestedListItem {
|
|
331
|
-
list-style-type: none;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.lexicalEditor__nestedListItem:before,
|
|
335
|
-
.lexicalEditor__nestedListItem:after {
|
|
336
|
-
display: none;
|
|
337
|
-
}
|
|
338
|
-
.highlighted {
|
|
339
|
-
animation: ${th} 2s ease-in-out;
|
|
340
|
-
}
|
|
341
|
-
`}),oh=[e=>{const n=od.exec(e);return n&&{index:n.index,length:n[0].length,text:n[0],url:n[0]}},e=>{const n=id.exec(e);return n&&{index:n.index,length:n[0].length,text:n[0],url:`mailto:${n[0]}`}}];function ih(){return t.jsx(Qu.AutoLinkPlugin,{matchers:oh})}function rh(){const[e]=qn.useLexicalComposerContext();return y.useEffect(()=>_i.registerCodeHighlighting(e),[e]),null}const ah=()=>{const[e]=qn.useLexicalComposerContext();return e.registerCommand(we.PASTE_COMMAND,(n,a)=>(a.update(()=>{const i=we.$getSelection();if(we.$isRangeSelection(i)&&n.type==="beforeinput"){const E=n.dataTransfer?.getData("text/plain");E!=null&&i.insertText(E)}return!0}),!0),we.COMMAND_PRIORITY_LOW),null},sh=()=>{const[e]=qn.useLexicalComposerContext();return e.registerCommand(we.KEY_TAB_COMMAND,n=>{const a=n;return a.preventDefault(),e.dispatchCommand(a.shiftKey?we.OUTDENT_CONTENT_COMMAND:we.INDENT_CONTENT_COMMAND,void 0)},we.COMMAND_PRIORITY_EDITOR),null};function lh(e){const n=we.$getSelection();if(!we.$isRangeSelection(n))return!1;const a=function(E){const S=E?.getNodes();return S?.length===0?new Set([E.anchor.getNode().getParentOrThrow(),E.focus.getNode().getParentOrThrow()]):new Set(S.map(o=>we.$isElementNode(o)?o:o.getParentOrThrow()))}(n);let i=0;for(const E of a)if(ht.$isListNode(E))i=Math.max(ht.$getListDepth(E)+1,i);else if(ht.$isListItemNode(E)){const S=E.getParent();if(!ht.$isListNode(S))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");i=Math.max(ht.$getListDepth(S)+1,i)}return i<=e}function ch({maxDepth:e}){const[n]=qn.useLexicalComposerContext();return y.useEffect(()=>n.registerCommand(we.INDENT_CONTENT_COMMAND,()=>!lh(e??7),we.COMMAND_PRIORITY_HIGH),[n,e]),null}const dh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M7.60846 2V21.9982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.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"})),uh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M3.78525 5H20.7448",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M4.67783 9.46301H19.8522",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M5.57047 18.3891H18.9596",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ph=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M22.375 3H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M22.375 9H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M22.375 15H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M18.1562 21H13",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"})),hh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M18.9595 1.5L5.57042 22.03",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 22.03H9.14086",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M15.3891 1.5H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),gh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M0.979614 5H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M0.979614 9.31012H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M0.979614 13.8163H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M0.979614 18.1265H23.0204",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),mh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M2 5H19.8522",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 9.46301H16.2817",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 18.3891H18.9596",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),fh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.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"}),y.createElement("path",{d:"M7.35565 12.0696H17.1743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.createElement("path",{d:"M9.14087 4.78522H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M9.14087 11.9261H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M9.14087 19.067H22.53",stroke:"currentColor",strokeWidth:1.46939,strokeLinecap:"round",strokeLinejoin:"round"})),Ch=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M1.625 3H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M1.625 9H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M1.625 15H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M5.84375 21H11",stroke:"currentColor",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"})),yh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M21.74 2V8.24772H15.4923",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"})),bh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M5.57047 5H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M8.24826 9.46307H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M2 13.9261H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M5.57047 18.3892H22.53",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),vh=e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M3 21.2H21.7",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),y.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"}),y.createElement("path",{d:"M3.81304 2.5H8.6913",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M16.0087 2.5H20.887",stroke:"currentColor",strokeWidth:1.35,strokeLinecap:"round",strokeLinejoin:"round"}));function ms(){return t.jsx("div",{className:"divider"})}function fs(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 wh({editor:e}){const n=vt(),a=y.useRef(null),i=y.useRef(null),E=y.useRef(!1),[S,o]=y.useState(""),[g,x]=y.useState(!1),[w,b]=y.useState(null),h=y.useCallback(()=>{const r=we.$getSelection();if(we.$isRangeSelection(r)){const u=pc(r),T=u.getParent();Kt.$isLinkNode(T)?o(T.getURL()):Kt.$isLinkNode(u)?o(u.getURL()):o("")}const C=a.current,m=window.getSelection(),k=document.activeElement;if(C===null)return;const s=e.getRootElement();if(r!==null&&m!=null&&!m.isCollapsed&&s!==null&&s.contains(m.anchorNode)){const u=m.getRangeAt(0);let T;if(m.anchorNode===s){let v=s;for(;v.firstElementChild!=null;)v=v.firstElementChild;T=v.getBoundingClientRect()}else T=u.getBoundingClientRect();E.current||fs(C,T),b(r)}else(!k||k.className!=="link-input")&&(fs(C,null),b(null),x(!1),o(""));return!0},[e]);return y.useEffect(()=>vo.mergeRegister(e.registerUpdateListener(({editorState:r})=>{r.read(()=>{h()})}),e.registerCommand(we.SELECTION_CHANGE_COMMAND,()=>(h(),!0),1)),[e,h]),y.useEffect(()=>{e.getEditorState().read(()=>{h()})},[e,h]),y.useEffect(()=>{g&&i.current!=null&&i.current?.focus()},[g]),t.jsx($h,{ref:a,children:g?t.jsx("input",{ref:i,className:"link-input",value:S,onChange:r=>{o(r.target.value)},onKeyDown:r=>{r.key==="Enter"?(r.preventDefault(),w!==null&&(S!==""&&e.dispatchCommand(Kt.TOGGLE_LINK_COMMAND,S),x(!1))):r.key==="Escape"&&(r.preventDefault(),x(!1))}}):t.jsxs(Nh,{className:"link-input",children:[t.jsx(_h,{href:S,target:"_blank",rel:"noopener noreferrer",children:S}),t.jsx(st,{className:"link-edit",type:"button",tabIndex:0,onMouseDown:r=>r.preventDefault(),onClick:()=>{x(!0)},children:t.jsx(td,{style:{width:p.sp3,height:p.sp3,color:n.colors.primary}})})]})})}function pc(e){const n=e.anchor,a=e.focus,i=e.anchor.getNode(),E=e.focus.getNode();return i===E?i:e?.isBackward()?Ri.$isAtNodeEnd(a)?i:E:Ri.$isAtNodeEnd(n)?E:i}function Sh({fileAttached:e,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,customerRequestData:i,initialHtmlString:E,handleFileInputClick:S,improveUsingZeniGPTClick:o,setZeniRequestsHtml:g}){const[x]=qn.useLexicalComposerContext(),w=y.useRef(null),[b,h]=y.useState(!1),[r,C]=y.useState(!1),[m,k]=y.useState("paragraph"),[,s]=y.useState(!1),[u,T]=y.useState(!1),[v,N]=y.useState(!1),[O,M]=y.useState(!1),[D,R]=y.useState(!1),j=y.useCallback(l=>{const c=new DOMParser().parseFromString(l,"text/html"),$=c.getElementsByTagName("p");for(let _=$.length-1;_>=0;_--){const I=$[_];I.textContent?.trim()===""&&(I.innerHTML="")}const f=io.$generateNodesFromDOM(x,c),d=we.$getRoot();d.clear(),d.append(...f)},[x]);y.useEffect(()=>{x.update(()=>{E!=null&&E.length>0&&j(E)})},[x,E,j]),y.useEffect(()=>{x.update(()=>{a===!0?x.setEditable(!1):x.setEditable(!0)})},[x,a]),y.useEffect(()=>vo.mergeRegister(x.registerCommand(we.BLUR_COMMAND,()=>{const l=io.$generateHtmlFromNodes(x,null);return g?.(l),!0},1)),[x,g]);const F=y.useCallback(l=>{x.update(()=>{const c=new DOMParser,$=gs(Ti),f=ht.$createListNode("bullet");l.forEach(B=>{const Z=c.parseFromString(B,"text/html"),q=io.$generateNodesFromDOM(x,Z),z=ht.$createListItemNode();q.forEach(W=>{z.append(W)}),f.append(z)}),$.append(f);const d=gs(Ti);d.append(we.$createTextNode(""));const _=we.$getRoot(),I=_.getFirstChild();I?I.insertBefore($):_.append($),I?I.insertBefore(d):_.append(d),_.getFirstChild()===null&&_.append(we.$createParagraphNode().append(we.$createTextNode(Ae.getLocalizedStrings().common.strings.empty))),setTimeout(()=>{x.update(()=>{const B=ht.ListNode.clone(f);$.replace(B)})},1e3)})},[x]);y.useEffect(()=>{i.length>0&&F(i)},[i,F]);const Y=y.useCallback(()=>{const l=we.$getSelection();if(we.$isRangeSelection(l)){const c=l.anchor.getNode(),$=c.getKey()==="root"?c:c.getTopLevelElementOrThrow(),f=$.getKey();if(x.getElementByKey(f)!==null)if(ht.$isListNode($)){const I=vo.$getNearestNodeOfType(c,ht.ListNode),B=I?I.getTag():$.getTag();k(B)}else{const I=Ai.$isHeadingNode($)?$.getTag():$.getType();k(I)}R(l.hasFormat("bold")),N(l.hasFormat("italic")),M(l.hasFormat("underline")),s(Ri.$isParentElementRTL(l));const d=pc(l),_=d.getParent();Kt.$isLinkNode(_)||Kt.$isLinkNode(d)?T(!0):T(!1)}},[x]);y.useEffect(()=>vo.mergeRegister(x.registerUpdateListener(({editorState:l})=>{l.read(()=>{Y()})}),x.registerCommand(we.SELECTION_CHANGE_COMMAND,l=>(Y(),!1),1),x.registerCommand(we.CAN_UNDO_COMMAND,l=>(h(l),!1),1),x.registerCommand(we.CAN_REDO_COMMAND,l=>(C(l),!1),1)),[x,Y]);const ee=y.useCallback(()=>{u?x.dispatchCommand(Kt.TOGGLE_LINK_COMMAND,null):x.dispatchCommand(Kt.TOGGLE_LINK_COMMAND,"https://")},[x,u]),{cockpit:{monthEndReport:{toolbarPluginTooltip:te,editorZeniGPTButton:X}},common:{documents:H,strings:L}}=Ae.getLocalizedStrings();return t.jsxs("div",{className:"toolbar",ref:w,children:[t.jsxs(xs,{children:[t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.bold}),children:t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_TEXT_COMMAND,"bold")},className:"toolbar-item spaced "+(D?"active":""),style:{padding:p.sp1},disabled:a,"aria-label":"Format Bold",children:t.jsx(dh,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.italic}),children:t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_TEXT_COMMAND,"italic")},className:"toolbar-item spaced "+(v?"active":""),style:{padding:p.sp1},disabled:a,"aria-label":"Format Italics",children:t.jsx(hh,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.underline}),children:t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_TEXT_COMMAND,"underline")},className:"toolbar-item spaced "+(O?"active":""),style:{padding:p.sp1},disabled:a,"aria-label":"Format Underline",children:t.jsx(vh,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.link}),children:t.jsxs(st,{type:"button",onClick:ee,className:"toolbar-item spaced "+(u?"active":""),style:{padding:p.sp1},disabled:a,"aria-label":"Insert Link",children:[t.jsx(Ah,{className:"format link"}),t.jsx(fh,{className:"format"})]})}),u&&fu.createPortal(t.jsx(wh,{editor:x}),document.body),t.jsx(ms,{}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.list}),children:t.jsx(st,{type:"button",onClick:()=>{m!=="ul"?x.dispatchCommand(ht.INSERT_UNORDERED_LIST_COMMAND,void 0):x.dispatchCommand(ht.REMOVE_LIST_COMMAND,void 0)},className:"toolbar-item spaced "+(m==="ul"?"active":""),style:{padding:p.sp1},disabled:a,"aria-label":"Format Underline",children:t.jsx(xh,{className:"format"})})}),t.jsx(ms,{}),t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_ELEMENT_COMMAND,"left")},className:"toolbar-item spaced",style:{padding:p.sp1},disabled:a,"aria-label":"Left Align",children:t.jsx(mh,{className:"format"})}),t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_ELEMENT_COMMAND,"center")},className:"toolbar-item spaced",style:{padding:p.sp1},disabled:a,"aria-label":"Center Align",children:t.jsx(uh,{className:"format"})}),t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_ELEMENT_COMMAND,"right")},className:"toolbar-item spaced",style:{padding:p.sp1},disabled:a,"aria-label":"Right Align",children:t.jsx(bh,{className:"format"})}),t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.FORMAT_ELEMENT_COMMAND,"justify")},className:"toolbar-item",style:{padding:p.sp1},disabled:a,"aria-label":"Justify Align",children:t.jsx(gh,{className:"format"})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.indent}),children:t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.INDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:p.sp1},disabled:a,"aria-label":"Indent",children:t.jsx(ph,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.outdent}),children:t.jsx(st,{type:"button",onClick:()=>{x.dispatchCommand(we.OUTDENT_CONTENT_COMMAND,void 0)},className:"toolbar-item",style:{padding:p.sp1},disabled:a,"aria-label":"Outdent",children:t.jsx(Ch,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",style:{padding:`2px ${p.sp2}`},title:t.jsxs(Rh,{children:[t.jsxs(ft,{children:[H.attachFile,L.space]}),t.jsx(ft,{children:H.formatImageAndDocumentAttachments}),t.jsxs(ft,{children:[L.space,H.attachmentFileSize700KB]})]}),children:t.jsx(st,{type:"button",onClick:S,className:"toolbar-item",style:{padding:p.sp1},disabled:a||e,"aria-label":"Attachment",children:t.jsx(dc,{className:"format"})})})]}),t.jsxs(xs,{children:[n?t.jsx(Ee,{placement:"top",title:t.jsx(ft,{children:X.tooltip}),children:t.jsxs(kh,{isZeniGPTResponseLoading:a,type:"button",onClick:()=>{x.update(()=>{const l=io.$generateHtmlFromNodes(x,null);o?.(l)})},disabled:a,children:[t.jsx(Th,{}),t.jsx(Eh,{children:X.label})]})}):null,t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.undo}),children:t.jsx(st,{type:"button",disabled:!b||a,onClick:()=>{x.dispatchCommand(we.UNDO_COMMAND,void 0)},className:"toolbar-item spaced",style:{padding:p.sp1},"aria-label":"Undo",children:t.jsx(xu,{className:"format"})})}),t.jsx(Ee,{placement:"bottom",title:t.jsx(ft,{children:te.redo}),children:t.jsx(st,{type:"button",disabled:!r||a,onClick:()=>{x.dispatchCommand(we.REDO_COMMAND,void 0)},className:"toolbar-item",style:{padding:p.sp1},"aria-label":"Redo",children:t.jsx(yh,{className:"format"})})})]})]})}const st=A.button``,xs=A.div`
|
|
342
|
-
display: flex;
|
|
343
|
-
align-items: center;
|
|
344
|
-
gap: ${p.sp1};
|
|
345
|
-
`,ft=A.div`
|
|
346
|
-
padding: 2px ${p.sp2};
|
|
347
|
-
color: ${Oe.neutralGrey4Light};
|
|
348
|
-
`,Eh=A(nd)`
|
|
349
|
-
color: ${Oe.neutralGrey5Light};
|
|
350
|
-
`,kh=A.button`
|
|
351
|
-
display: flex;
|
|
352
|
-
align-items: center;
|
|
353
|
-
justify-content: center;
|
|
354
|
-
min-width: 165px;
|
|
355
|
-
background-color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.brandColorSapphireLight:e.theme.colors.brandColorSapphire};
|
|
356
|
-
color: ${Oe.neutralGrey5Light};
|
|
357
|
-
border-radius: ${p.sp1};
|
|
358
|
-
border: none;
|
|
359
|
-
height: 26px;
|
|
360
|
-
&:hover {
|
|
361
|
-
background-color: ${Oe.brandColorSapphireDark};
|
|
362
|
-
}
|
|
363
|
-
`,Th=A(e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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})))`
|
|
364
|
-
height: ${p.sp3};
|
|
365
|
-
width: ${p.sp3};
|
|
366
|
-
margin-right: ${p.sp1};
|
|
367
|
-
color: ${Oe.brandColorPearl};
|
|
368
|
-
`,$h=A.div`
|
|
369
|
-
position: absolute;
|
|
370
|
-
z-index: 100;
|
|
371
|
-
top: -10000px;
|
|
372
|
-
left: -10000px;
|
|
373
|
-
margin-top: -6px;
|
|
374
|
-
max-width: 300px;
|
|
375
|
-
width: 100%;
|
|
376
|
-
opacity: 0;
|
|
377
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
378
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
379
|
-
box-shadow: ${p.sp0} 5px 10px ${Oe.overlayLight};
|
|
380
|
-
border-radius: ${p.sp2};
|
|
381
|
-
transition: opacity 0.5s;
|
|
382
|
-
z-index: 10000;
|
|
383
|
-
|
|
384
|
-
.link-input {
|
|
385
|
-
display: block;
|
|
386
|
-
box-sizing: border-box;
|
|
387
|
-
padding: ${p.sp3};
|
|
388
|
-
border-radius: ${p.sp3};
|
|
389
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
390
|
-
font-size: 15px;
|
|
391
|
-
color: ${e=>e.theme.colors.primary};
|
|
392
|
-
border: 0;
|
|
393
|
-
outline: 0;
|
|
394
|
-
position: relative;
|
|
395
|
-
font-family: inherit;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
button.link-edit {
|
|
399
|
-
display: flex;
|
|
400
|
-
align-items: center;
|
|
401
|
-
width: 35px;
|
|
402
|
-
position: absolute;
|
|
403
|
-
right: ${p.sp0};
|
|
404
|
-
top: ${p.sp0};
|
|
405
|
-
bottom: ${p.sp0};
|
|
406
|
-
cursor: pointer;
|
|
407
|
-
background: none;
|
|
408
|
-
border: none;
|
|
409
|
-
padding: 0;
|
|
410
|
-
margin: 0;
|
|
411
|
-
|
|
412
|
-
&:focus {
|
|
413
|
-
outline: none;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.link-input a {
|
|
418
|
-
color: ${e=>e.theme.colors.link};
|
|
419
|
-
text-decoration: none;
|
|
420
|
-
display: block;
|
|
421
|
-
white-space: nowrap;
|
|
422
|
-
overflow: hidden;
|
|
423
|
-
margin-right: 30px;
|
|
424
|
-
text-overflow: ellipsis;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.link-input a:hover {
|
|
428
|
-
text-decoration: underline;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.button {
|
|
432
|
-
width: 20px;
|
|
433
|
-
height: 20px;
|
|
434
|
-
display: inline-block;
|
|
435
|
-
padding: 6px;
|
|
436
|
-
border-radius: ${p.sp2};
|
|
437
|
-
cursor: pointer;
|
|
438
|
-
margin: 0 2px;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.button.hovered {
|
|
442
|
-
width: 20px;
|
|
443
|
-
height: 20px;
|
|
444
|
-
display: inline-block;
|
|
445
|
-
background-color: ${e=>e.theme.colors.background};
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.button i,
|
|
449
|
-
.actions i {
|
|
450
|
-
background-size: contain;
|
|
451
|
-
display: inline-block;
|
|
452
|
-
height: 20px;
|
|
453
|
-
width: 20px;
|
|
454
|
-
vertical-align: -0.25em;
|
|
455
|
-
}
|
|
456
|
-
`,Nh=A.div``,_h=A.a``,Ah=A.i``,Rh=A.div`
|
|
457
|
-
display: flex;
|
|
458
|
-
flex-direction: column; /* Align children vertically */
|
|
459
|
-
align-items: center; /* Center children horizontally */
|
|
460
|
-
justify-content: center; /* Center children vertically */
|
|
461
|
-
height: 100%; /* Adjust to your desired height */
|
|
462
|
-
width: 100%; /* Adjust to your desired width */
|
|
463
|
-
`,Ih=A(Be)`
|
|
464
|
-
color: ${e=>e.theme.colors.grey2};
|
|
465
|
-
overflow: hidden;
|
|
466
|
-
position: absolute;
|
|
467
|
-
text-overflow: ellipsis;
|
|
468
|
-
top: ${p.sp3};
|
|
469
|
-
left: 12px;
|
|
470
|
-
user-select: none;
|
|
471
|
-
display: inline-block;
|
|
472
|
-
pointer-events: none;
|
|
473
|
-
`,jh=A(wt)`
|
|
474
|
-
position: relative;
|
|
475
|
-
margin: ${p.sp0};
|
|
476
|
-
border-radius: ${p.sp2};
|
|
477
|
-
color: ${e=>e.theme.colors.primary};
|
|
478
|
-
text-align: left;
|
|
479
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
480
|
-
overflow: hidden;
|
|
481
|
-
|
|
482
|
-
&:hover {
|
|
483
|
-
border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
|
|
484
|
-
|
|
485
|
-
.toolbar {
|
|
486
|
-
border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
&:focus-within {
|
|
491
|
-
border: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
|
|
492
|
-
|
|
493
|
-
.toolbar {
|
|
494
|
-
border-bottom: ${e=>`1px solid ${e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary}`};
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.editor-input {
|
|
499
|
-
min-height: 120px;
|
|
500
|
-
max-height: 360px;
|
|
501
|
-
overflow: auto;
|
|
502
|
-
resize: none;
|
|
503
|
-
${$t.standardRegular.css};
|
|
504
|
-
color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.primary};
|
|
505
|
-
position: relative;
|
|
506
|
-
tab-size: 1;
|
|
507
|
-
outline: 0;
|
|
508
|
-
padding: ${p.sp3} 12px;
|
|
509
|
-
|
|
510
|
-
.editor__link {
|
|
511
|
-
color: ${e=>e.isZeniGPTResponseLoading?e.theme.colors.grey2:e.theme.colors.link};
|
|
512
|
-
text-decoration: none;
|
|
513
|
-
}
|
|
514
|
-
.editor__link:hover {
|
|
515
|
-
text-decoration: underline;
|
|
516
|
-
cursor: pointer;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.editor-input p {
|
|
521
|
-
margin: 0;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.toolbar {
|
|
525
|
-
display: flex;
|
|
526
|
-
margin-bottom: 1px;
|
|
527
|
-
background: ${e=>e.theme.colors.grey5};
|
|
528
|
-
padding: ${p.sp1};
|
|
529
|
-
border-top-left-radius: 10px;
|
|
530
|
-
border-top-right-radius: 10px;
|
|
531
|
-
vertical-align: middle;
|
|
532
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey2};
|
|
533
|
-
justify-content: space-between;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.toolbar button.toolbar-item {
|
|
537
|
-
border: 0;
|
|
538
|
-
display: flex;
|
|
539
|
-
background: none;
|
|
540
|
-
border-radius: ${p.sp2};
|
|
541
|
-
padding: ${p.sp2};
|
|
542
|
-
cursor: pointer;
|
|
543
|
-
vertical-align: middle;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.toolbar button.toolbar-item:disabled {
|
|
547
|
-
cursor: not-allowed;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
.toolbar button.toolbar-item.spaced {
|
|
551
|
-
margin-right: 2px;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.toolbar button.toolbar-item svg.format {
|
|
555
|
-
background-size: contain;
|
|
556
|
-
display: inline-block;
|
|
557
|
-
height: ${p.sp3};
|
|
558
|
-
width: ${p.sp3};
|
|
559
|
-
vertical-align: -0.25em;
|
|
560
|
-
display: flex;
|
|
561
|
-
color: ${e=>e.theme.colors.grey1};
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
.toolbar button.toolbar-item:disabled svg.format {
|
|
565
|
-
opacity: 0.2;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
.toolbar button.toolbar-item.active {
|
|
569
|
-
svg.format {
|
|
570
|
-
color: ${e=>e.theme.colors.primary};
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
.toolbar .toolbar-item:hover:not([disabled]) {
|
|
575
|
-
svg.format {
|
|
576
|
-
color: ${e=>e.theme.colors.primary};
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
.toolbar .divider {
|
|
581
|
-
width: 1px;
|
|
582
|
-
background-color: ${e=>e.theme.colors.background};
|
|
583
|
-
margin: ${p.sp0} ${p.sp1};
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.toolbar .toolbar-item .text {
|
|
587
|
-
display: flex;
|
|
588
|
-
width: 200px;
|
|
589
|
-
vertical-align: middle;
|
|
590
|
-
${$t.smallRegular.css};
|
|
591
|
-
color: ${e=>e.theme.colors.primary};
|
|
592
|
-
text-overflow: ellipsis;
|
|
593
|
-
width: 70px;
|
|
594
|
-
overflow: hidden;
|
|
595
|
-
height: 20px;
|
|
596
|
-
text-align: left;
|
|
597
|
-
}
|
|
598
|
-
`,Lh=A.div`
|
|
599
|
-
position: absolute;
|
|
600
|
-
display: flex;
|
|
601
|
-
justify-content: center;
|
|
602
|
-
align-items: center;
|
|
603
|
-
height: 100%;
|
|
604
|
-
width: 100%;
|
|
605
|
-
z-index: 1;
|
|
606
|
-
`,Dh=A.div`
|
|
607
|
-
background-color: transparent;
|
|
608
|
-
position: relative;
|
|
609
|
-
`;function Oh(){return t.jsx(Ih,{children:Ae.getLocalizedStrings().cockpit.monthEndReport.editorPlaceholder})}const Mh={namespace:"",onError(e){throw e},nodes:[Ai.HeadingNode,ht.ListNode,ht.ListItemNode,Ai.QuoteNode,_i.CodeNode,_i.CodeHighlightNode,oi.TableNode,oi.TableCellNode,oi.TableRowNode,Kt.AutoLinkNode,Kt.LinkNode,uc],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 Ph({fileAttached:e,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,initialHtmlString:i,customerRequestData:E,handleFileInputClick:S,improveUsingZeniGPTClick:o,setZeniRequestsHtml:g}){const x=vt();return t.jsxs(ju.LexicalComposer,{initialConfig:Mh,children:[t.jsx(nh,{}),t.jsxs(jh,{isZeniGPTResponseLoading:a,children:[a?t.jsx(Lh,{children:t.jsx(_o,{size:"Standard",start:!0,style:{display:"flex",padding:p.sp4,borderRadius:"100%",backgroundColor:x.colors.grey5,border:`2px solid ${x.colors.grey3}`,boxShadow:`${p.sp0} 2px ${p.sp1} ${x.colors.dropShadowNormal}`}})}):null,t.jsx(Sh,{handleFileInputClick:S,fileAttached:e,customerRequestData:E,enableZeniGPTFeature:n,isZeniGPTResponseLoading:a,initialHtmlString:i,improveUsingZeniGPTClick:o,setZeniRequestsHtml:g}),t.jsxs(Dh,{children:[t.jsx(Ju.RichTextPlugin,{contentEditable:t.jsx(Lu.ContentEditable,{className:qi}),placeholder:t.jsx(Oh,{}),ErrorBoundary:Ou}),t.jsx(ah,{}),t.jsx(sh,{}),t.jsx(Fu.HistoryPlugin,{}),t.jsx(Ru.AutoFocusPlugin,{}),t.jsx(rh,{}),t.jsx(Hu.ListPlugin,{}),t.jsx(Bu.LinkPlugin,{}),t.jsx(ih,{}),t.jsx(ch,{maxDepth:7}),t.jsx(Uu.MarkdownShortcutPlugin,{transformers:Au.TRANSFORMERS})]})]})]})}const Fh=A.div``;function Bh({canvasContainerRef:e,sortedThreads:n,editorMode:a,isZeniUser:i=!0}){const E=i?Vn:No,{openThread:S}=y.useContext(E),[o,g]=y.useState(e.current!=null);y.useEffect(()=>{g(e.current!=null)},[e.current]);const x=y.useRef();return t.jsx(Fh,{children:n.map(([w,{metadata:b}])=>{const h=An(b,a);if(!h||o===!1)return null;x.current=e.current?.getBoundingClientRect();const r=x.current?.top??0,C=x.current?.left??0,m=S===w,k=Array.from(h.getClientRects()).filter(s=>s.width>0);if(k.length===0){const s=h.getBoundingClientRect();let u=s.width;return u===0&&(u=6*h.toString().length),t.jsx(as,{rect:{...s.toJSON(),top:s.top-r,left:s.left-C,width:u},isOpenThread:m,threadId:w},w)}return k.map((s,u)=>t.jsx(as,{rect:{...s.toJSON(),top:s.top-r,left:s.left-C},isOpenThread:m,threadId:w},u))})})}const zh=A(wt)`
|
|
610
|
-
color: ${e=>e.theme.colors.hero};
|
|
611
|
-
`,Hh=A.div`
|
|
612
|
-
justify-content: center;
|
|
613
|
-
align-items: center;
|
|
614
|
-
display: flex;
|
|
615
|
-
flex-direction: column;
|
|
616
|
-
cursor: pointer;
|
|
617
|
-
`,Wh=A(Ro)`
|
|
618
|
-
width: ${p.sp10};
|
|
619
|
-
height: ${p.sp10};
|
|
620
|
-
color: ${e=>e.theme.colors.primary};
|
|
621
|
-
`,Vh=({message:e,onReload:n})=>t.jsxs(Hh,{onClick:n,"data-testid":ce("reload-container"),children:[t.jsx(Wh,{}),t.jsx(zh,{children:e})]}),{common:{navBar:{back:Uh},texts:{refresh:Gh,close:Kh,copy:Yh,copied:qh,open:Jh}},expenseAutomation:{common:{numbers:{maximumCount:Zh}}}}=Ae.getLocalizedStrings(),Xh=A(Nd)`
|
|
622
|
-
display: flex;
|
|
623
|
-
width: ${p.sp4};
|
|
624
|
-
height: ${p.sp4};
|
|
625
|
-
align-items: center;
|
|
626
|
-
justify-content: center;
|
|
627
|
-
`,Qh=A.div`
|
|
628
|
-
display: flex;
|
|
629
|
-
align-items: center;
|
|
630
|
-
justify-content: center;
|
|
631
|
-
position: relative;
|
|
632
|
-
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
633
|
-
color: ${e=>e.theme.colors.hero};
|
|
634
|
-
&:hover {
|
|
635
|
-
color: ${e=>e.theme.colors.primary};
|
|
636
|
-
}
|
|
637
|
-
`,eg=A.div`
|
|
638
|
-
width: 100%;
|
|
639
|
-
display: flex;
|
|
640
|
-
flex-shrink: 0;
|
|
641
|
-
flex-direction: column;
|
|
642
|
-
background: ${e=>e.theme.colors.grey4};
|
|
643
|
-
box-sizing: border-box;
|
|
644
|
-
position: sticky;
|
|
645
|
-
top: 0;
|
|
646
|
-
z-index: 6;
|
|
647
|
-
`,tg=A.div`
|
|
648
|
-
display: flex;
|
|
649
|
-
flex-direction: column;
|
|
650
|
-
align-items: center;
|
|
651
|
-
padding-left: ${e=>ys.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
652
|
-
padding-right: ${e=>ys.subSectionContainerLeftRightPadding.valuePx(e.windowSize)};
|
|
653
|
-
`,ng=A.div`
|
|
654
|
-
display: flex;
|
|
655
|
-
align-items: baseline;
|
|
656
|
-
justify-content: end;
|
|
657
|
-
gap: ${p.sp4};
|
|
658
|
-
flex: 1 1 ${p.sp0};
|
|
659
|
-
`,og=A.div`
|
|
660
|
-
display: flex;
|
|
661
|
-
align-items: baseline;
|
|
662
|
-
justify-content: start;
|
|
663
|
-
gap: ${p.sp4};
|
|
664
|
-
flex: 1 1 ${p.sp0};
|
|
665
|
-
`,ig=A(Ad)`
|
|
666
|
-
width: ${p.sp3};
|
|
667
|
-
height: ${p.sp3};
|
|
668
|
-
cursor: pointer;
|
|
669
|
-
margin-left: ${p.sp1};
|
|
670
|
-
color: inherit;
|
|
671
|
-
`,rg=A(_d)`
|
|
672
|
-
width: ${p.sp3};
|
|
673
|
-
height: ${p.sp3};
|
|
674
|
-
margin-left: ${p.sp1};
|
|
675
|
-
color: ${Oe.success};
|
|
676
|
-
`,ag=A($l)`
|
|
677
|
-
cursor: pointer;
|
|
678
|
-
width: ${p.sp4};
|
|
679
|
-
height: ${p.sp4};
|
|
680
|
-
color: ${e=>e.theme.colors.hero};
|
|
681
|
-
&:hover {
|
|
682
|
-
color: ${e=>e.theme.colors.primary};
|
|
683
|
-
}
|
|
684
|
-
`,sg=A(Sd)`
|
|
685
|
-
cursor: pointer;
|
|
686
|
-
width: ${p.sp4};
|
|
687
|
-
height: ${p.sp4};
|
|
688
|
-
color: ${e=>e.theme.colors.hero};
|
|
689
|
-
&:hover {
|
|
690
|
-
color: ${e=>e.theme.colors.primary};
|
|
691
|
-
}
|
|
692
|
-
`,lg=A(wd,{shouldForwardProp:e=>typeof e=="string"&&e!=="$spinning"})`
|
|
693
|
-
cursor: pointer;
|
|
694
|
-
width: ${p.sp4};
|
|
695
|
-
height: ${p.sp4};
|
|
696
|
-
color: ${e=>e.theme.colors.hero};
|
|
697
|
-
animation: ${e=>e.$spinning?We`
|
|
698
|
-
${cg} 2s linear infinite;
|
|
699
|
-
`:"none"};
|
|
700
|
-
&:hover {
|
|
701
|
-
color: ${e=>e.theme.colors.primary};
|
|
702
|
-
}
|
|
703
|
-
`,cg=Mo`
|
|
704
|
-
0% {
|
|
705
|
-
transform: rotate(0deg);
|
|
706
|
-
}
|
|
707
|
-
100% {
|
|
708
|
-
transform: rotate(360deg);
|
|
709
|
-
}
|
|
710
|
-
`,dg=A.div`
|
|
711
|
-
padding-top: ${p.sp0};
|
|
712
|
-
padding-bottom: ${p.sp0};
|
|
713
|
-
`,Cs=A(Be)`
|
|
714
|
-
color: ${e=>e.theme.colors.hero};
|
|
715
|
-
text-align: center;
|
|
716
|
-
display: flex;
|
|
717
|
-
align-items: center;
|
|
718
|
-
justify-content: center;
|
|
719
|
-
flex-direction: column;
|
|
720
|
-
padding-bottom: ${p.sp4};
|
|
721
|
-
`,ug=A.div`
|
|
722
|
-
display: flex;
|
|
723
|
-
`,pg=A.div`
|
|
724
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
725
|
-
width: 100%;
|
|
726
|
-
margin-top: -2px;
|
|
727
|
-
border-top-right-radius: ${p.sp2};
|
|
728
|
-
border-top-left-radius: ${p.sp2};
|
|
729
|
-
border-bottom-right-radius: ${p.sp2};
|
|
730
|
-
border-bottom-left-radius: ${p.sp2};
|
|
731
|
-
`,hg=A.div`
|
|
732
|
-
display: flex;
|
|
733
|
-
height: ${p.sp4};
|
|
734
|
-
`,gg=A.div`
|
|
735
|
-
text-align: center;
|
|
736
|
-
display: flex;
|
|
737
|
-
align-items: center;
|
|
738
|
-
justify-content: center;
|
|
739
|
-
flex-wrap: wrap;
|
|
740
|
-
`,mg=A.div`
|
|
741
|
-
display: flex;
|
|
742
|
-
flex-direction: column;
|
|
743
|
-
`,fg=A(Kn)`
|
|
744
|
-
width: ${p.sp3};
|
|
745
|
-
height: ${p.sp3};
|
|
746
|
-
margin-right: ${p.sp1};
|
|
747
|
-
path {
|
|
748
|
-
stroke-width: 2;
|
|
749
|
-
}
|
|
750
|
-
`,so=A.span`
|
|
751
|
-
font-weight: ${Ao.regular};
|
|
752
|
-
color: ${e=>e.theme.colors.primary};
|
|
753
|
-
`,xg=A.span`
|
|
754
|
-
font-weight: ${Ao.medium};
|
|
755
|
-
color: ${e=>e.theme.colors.primary};
|
|
756
|
-
`,Cg=A.span`
|
|
757
|
-
color: ${e=>e.theme.colors.primary};
|
|
758
|
-
text-decoration: underline;
|
|
759
|
-
text-decoration-color: ${e=>e.theme.colors.grey2};
|
|
760
|
-
cursor: pointer;
|
|
761
|
-
display: flex;
|
|
762
|
-
align-items: center;
|
|
763
|
-
transition: text-decoration-color 0.2s;
|
|
764
|
-
.copy-icon {
|
|
765
|
-
color: ${e=>e.theme.colors.hero};
|
|
766
|
-
transition: color 0.2s;
|
|
767
|
-
}
|
|
768
|
-
&:hover {
|
|
769
|
-
.copy-icon {
|
|
770
|
-
color: ${e=>e.theme.colors.primary};
|
|
771
|
-
}
|
|
772
|
-
text-decoration-color: ${e=>e.theme.colors.primary};
|
|
773
|
-
}
|
|
774
|
-
`,ys={subSectionContainerLeftRightPadding:new me(G[3],G[6],G[8])},yg=({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:E,...S}=i,o={...S},{threads:g,isLoading:x}=bd(o,!1,!1),w=g.filter(b=>b.id.includes(_n)===!1);return t.jsxs(Qh,{isDisabled:x,onClick:e,"data-testid":ce("comment-icon"),children:[t.jsx(vd,{count:w.length,isLoading:x}),t.jsx(Xh,{})]})},bg=({headerData:e,refreshStatus:n,searchText:a,companyName:i,companyId:E,isZeniUser:S,onAllThreadsClick:o,onClose:g,onRefresh:x,onSearchTextChanged:w})=>{const b=()=>{n!=="In-Progress"&&x()};return t.jsx(ng,{children:e.rightSection.map((h,r)=>{switch(h){case"search":return t.jsx(pd,{isSearchOpen:(a.length??0)>0,searchPlaceHolder:e.searchPlaceholder,searchText:a,searchTextBoxStyle:{position:"initial",height:"fit-content"},styledSearchIconContainerStyle:{height:p.sp4},searchIconMarginRight:p.sp0,onSearchTextChanged:C=>{w(C)},downloadPresent:!1},r+h);case"refresh":return t.jsx(Ee,{display:"block",placement:"bottom",title:Gh,style:{marginTop:"2px"},enterDelay:600,children:t.jsx(lg,{onClick:b,$spinning:n==="In-Progress","data-testid":ce("refresh-icon")})},r+h);case"comment":return S===!1?null:t.jsx(yg,{companyId:E,companyName:i,onAllThreadsClick:o});default:return t.jsx(Ee,{display:"block",placement:"bottom",title:Kh,enterDelay:600,style:{marginTop:"2px"},children:t.jsx(ag,{onClick:g,"data-testid":ce("close-icon")})},r+h)}})})},vg=({headerData:e,onBack:n})=>t.jsx(og,{children:e.leftSection.map((a,i)=>t.jsx(Ee,{display:"block",placement:"bottom",title:Uh,enterDelay:600,style:{marginTop:"-14px"},children:t.jsx(sg,{onClick:n,"data-testid":ce("back-button")})},i+a))}),bs=({text:e,linkText:n,windowSize:a,isCopied:i,onLinkClick:E})=>{if(n==null||!n)return t.jsxs(so,{windowSize:a,children:[e," "]});const S=e.indexOf(n);if(S===-1)return t.jsxs(so,{windowSize:a,children:[e," "]});const o=e.substring(0,S),g=e.substring(S+n.length);return t.jsxs(t.Fragment,{children:[o?t.jsxs(so,{windowSize:a,children:[o.trim()," "]}):null,t.jsx(Ee,{display:"flex",placement:"right",title:_l.test(n)?i?qh:Yh:Jh,enterTouchDelay:600,children:t.jsxs(Cg,{onClick:()=>E?.(n),"data-testid":ce("pre-link"),children:[n,i?t.jsx(rg,{className:"success-icon"}):t.jsx(ig,{className:"copy-icon"})]})}),g?t.jsxs(so,{windowSize:a,children:[g," "]}):null]})},vs=({subTitles:e})=>{const n=Me(),[,a]=hd(),[i,E]=y.useState(!1),S=y.useRef(null),o=y.useCallback(g=>{_l.test(g)?(a(g),E(!0),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{E(!1)},2e3)):window.open(g,"_blank","noopener,noreferrer")},[a]);return y.useEffect(()=>()=>{S.current&&clearTimeout(S.current)},[]),t.jsx(mg,{children:e.map((g,x)=>t.jsxs(gg,{children:[g.pre?t.jsx(bs,{text:g.pre,linkText:g.preLink,windowSize:n,isCopied:i,onLinkClick:o}):null,g.prefixIconName?t.jsx(t.Fragment,{children:g.prefixIconName==="zeniAIIcon"?t.jsx(fg,{}):t.jsx(t.Fragment,{})}):null,g.bold?t.jsx(t.Fragment,{children:t.jsxs(xg,{windowSize:n,children:[g.bold," "]})}):null,g.post?t.jsx(bs,{text:g.post,linkText:g.postLink,windowSize:n,isCopied:i,onLinkClick:o}):null]},x+g.bold+g.pre+g.post))})};function wg(e){const{headerData:n,currentTab:a,completionStatus:i,onUpdateTab:E,selectedReconAccountId:S,getTabCountAndFetchState:o,reconcileDetailPageFetchState:g,forceShowSubtitle:x,currentSelectedView:w,onReconTabUpdate:b,currentRecontab:h,navBarCustomElement:r,titleStyle:C={}}=e,m=o("autoCategorized")?.count??0,k=o("review")?.count??0,s=o("reconcile")?.count??0,u=n.tabs.length>0||n.subTitle.length>0,T=w==="transaction_categorization"&&a==="autoCategorized"?m>0:w==="reconciliation"&&h==="review"&&S!=null?g==="In-Progress"||k>0:w==="reconciliation"&&h==="reconcile"&&S!=null?g==="In-Progress"||s>0:i!=="complete",v=vt(),N=Me();let O=[];return n.tabs.length>0&&(O=n.tabs.map(M=>({label:M.label,id:M.id,countDetails:o(M.id)}))),t.jsxs(eg,{children:[t.jsx(cd,{title:n.title,subTitle:n.subText,titleTextStyles:{flex:"1 1 0px"},backgroundColor:v.colors.grey4,onBackClick:()=>null,titleStyle:C,ignoreScrollAction:w!=="month_end_insights",keepBackgroundOnScroll:w!=="month_end_insights",leftSideComponent:t.jsx(vg,{...e}),rightSideComponent:t.jsx(bg,{...e}),source:"NavBarWithHeader"}),r??null,t.jsx(ot,{controller:u===!0,children:t.jsx(tg,{windowSize:N,children:n.tabs.length>0?t.jsxs(t.Fragment,{children:[t.jsx(dg,{windowSize:N,children:t.jsx(dd,{allTabs:O,selectedTab:w==="transaction_categorization"?a??O[0].id:h??O[0].id,onTabChange:M=>{if(w==="transaction_categorization"){const D=Xd(M.id);D!=null&&E(D)}else if(w==="reconciliation"){const D=Qd(M.id);D!=null&&b(D)}},maximumCountLimit:Zh})}),t.jsx(pg,{windowSize:N}),t.jsx(hg,{}),t.jsx(ot,{controller:T===!0||x===!0,children:t.jsx(Cs,{windowSize:N,children:n.tabs.map((M,D)=>(w==="reconciliation"?M.id===h:M.id===a)?t.jsx(ug,{children:t.jsx(vs,{subTitles:M.subTitle})},D+M.id):null)})})]}):t.jsx(ot,{controller:T===!0||x===!0,children:t.jsx(Cs,{windowSize:N,children:t.jsx(vs,{subTitles:n.subTitle})})})})})]})}function Sg({name:e,checkBoxes:n,mode:a,isDisabled:i,style:E,labelStyle:S,labelCheckBoxStyle:o,checkBoxStyle:g,width:x,registerOptions:w,checkedIconColor:b,checkBoxIconStyle:h,checkBoxContainerStyle:r,draggable:C=!1,selectionLimit:m,infoIconContainerStyle:k,onDragStart:s,rowHeight:u=40,initialScrollOffSet:T,onScroll:v}){const N=Me(),O=y.useRef(null),{control:M}=Wi(),D=n.find(Y=>Y.groupLabel),R=n.filter(Y=>!Y.groupLabel),j=[];for(const Y of R)if(Y.isException||j.push(Y.value),m!=null&&j.length===m+1)break;const F=n.filter(Y=>Y.defaultChecked).map(Y=>Y.value);return t.jsx(Pl,{control:M,name:e,rules:w,defaultValue:F,render:({field:{value:Y,ref:ee,onChange:te}})=>{const X=H=>{kg({event:H,value:Y,allCheckBoxValues:j,groupLabelCheckBox:D,onChange:te})};return t.jsxs(Tg,{style:E,windowSize:N,children:[D&&t.jsx(Ji,{checkBox:D,index:0,value:Y,allCheckBoxValues:j,mode:a,name:e,checkBoxContainerStyle:r,checkBoxIconStyle:h,checkBoxStyle:g,labelCheckBoxStyle:o,labelStyle:S,width:x,draggable:C,groupLabelCheckBox:D,infoIconContainerStyle:k,checkedIconColor:b,isDisabled:i,selectionLimit:m,onDragStart:s,ref:ee,onChangeHandler:X}),t.jsx($g,{children:t.jsx(Io,{style:{height:"100%",width:"100%"},children:({height:H,width:L})=>t.jsx(jo,{ref:O,height:H,width:L,itemCount:R.length,itemSize:()=>u,estimatedItemSize:u,initialScrollOffset:T??0,onScroll:({scrollOffset:l})=>{v?.(l)},overscanCount:1,itemKey:l=>R[l].value,itemData:{checkBoxes:R,value:Y,allCheckBoxValues:j,mode:a,name:e,checkBoxContainerStyle:r,checkBoxIconStyle:h,checkBoxStyle:g,labelCheckBoxStyle:o,labelStyle:S,width:x,draggable:C,groupLabelCheckBox:D,infoIconContainerStyle:k,checkedIconColor:b,isDisabled:i,selectionLimit:m,onDragStart:s,ref:ee,onChange:te,handleChangeEvent:X,rowHeight:u},children:Eg})})})]})}})}const Eg=({index:e,style:n,data:a})=>{const i=y.useRef(null),{checkBoxes:E,value:S,allCheckBoxValues:o,mode:g,name:x,checkBoxContainerStyle:w,checkBoxIconStyle:b,checkBoxStyle:h,labelCheckBoxStyle:r,labelStyle:C,width:m,draggable:k,groupLabelCheckBox:s,infoIconContainerStyle:u,checkedIconColor:T,isDisabled:v,selectionLimit:N,onDragStart:O,ref:M,handleChangeEvent:D}=a,R=E[e];return t.jsx(jg,{style:{...n,width:"100%"},ref:i,children:t.jsx(Ji,{checkBox:R,index:e,value:S,allCheckBoxValues:o,mode:g,name:x,checkBoxContainerStyle:w,checkBoxIconStyle:b,checkBoxStyle:h,labelCheckBoxStyle:r,labelStyle:C,width:m,draggable:k,groupLabelCheckBox:s,infoIconContainerStyle:u,checkedIconColor:T,isDisabled:v,selectionLimit:N,onDragStart:O,ref:M,onChangeHandler:D})})},Ji=y.forwardRef((e,n)=>{const{value:a,checkBox:i,groupLabelCheckBox:E,allCheckBoxValues:S,selectionLimit:o,mode:g,checkBoxStyle:x,labelCheckBoxStyle:w,isDisabled:b,draggable:h,checkBoxContainerStyle:r,infoIconContainerStyle:C,name:m,index:k,width:s,checkedIconColor:u,checkBoxIconStyle:T,labelStyle:v,onDragStart:N,onChangeHandler:O}=e,M=Me();let D=a.includes(i.value);const R=Array.from(new Set([...a,i.value]));return E?.value===i.value&&a.length>0&&(D=o!=null?R.length===S.length||R.length===o+1:S.every(j=>R.includes(j)===!0)),t.jsxs(_g,{mode:g,draggable:h===!0,onDragStart:j=>{N?.(j,i.value)},style:r,isDisabled:b,isSelected:D,exceptionMode:i.exceptionMode,children:[i.prefix?t.jsx(Ng,{className:"prefix-box",children:i.prefix}):null,i.isException?t.jsx(Ag,{style:C,className:"checkbox-alert",children:t.jsx(Ee,{style:{padding:`12px ${p.sp3}`},title:i.exceptionInfo??"",placement:"bottom-start",children:i.exceptionType==="info"?t.jsx(Rg,{}):t.jsx(Ig,{})})}):t.jsx(Ld,{name:`${m}.${i.value}`,checkBoxValue:i.value,value:D,checkedIconColor:u,isDisabled:b||!i.groupLabel&&!D&&o!=null&&R.length===o+1?"disabled":void 0,checkBoxStyle:g==="off"||i.isException?M==="small"?{display:"none",...x}:{visibility:"hidden",...x}:i.groupLabel?S.length===1&&S[0]===E?.value?{visibility:"hidden",...w}:w:x,checkBoxIconStyle:T,ref:j=>{typeof n=="function"?n(j):n&&(n.current=j)},onChange:O}),typeof i.label=="string"&&i.label?t.jsx(Dd,{isDisabled:b,label:i.label,labelStyle:v,htmlFor:`${m}.${i.value}`,style:{display:"flex",flex:1,minHeight:p.sp4,marginLeft:p.sp2,width:s,backgroundColor:"inherit",...v}}):i.label]},`${i.value}_${k}`)});Ji.displayName="CheckBoxWithLabel";const kg=({event:e,value:n,allCheckBoxValues:a,groupLabelCheckBox:i,onChange:E})=>{const S=e.currentTarget.value,o=e.currentTarget.checked,g=i?.value,x=new Set(n);if(S===g)return void E(o?Array.from(new Set([g,...a])):[]);o?x.add(S):x.delete(S);const w=a.every(b=>x.has(b));g!=null&&(w&&!x.has(g)?x.add(g):!w&&x.has(g)&&x.delete(g)),E(Array.from(x))},Tg=A.div`
|
|
775
|
-
display: flex;
|
|
776
|
-
flex-direction: column;
|
|
777
|
-
width: 100%;
|
|
778
|
-
height: 100%;
|
|
779
|
-
`,$g=A.div`
|
|
780
|
-
flex: 1;
|
|
781
|
-
overflow: hidden;
|
|
782
|
-
`,Ng=A.div`
|
|
783
|
-
opacity: 0;
|
|
784
|
-
`,_g=A.div`
|
|
785
|
-
display: flex;
|
|
786
|
-
align-items: center;
|
|
787
|
-
flex-direction: row;
|
|
788
|
-
width: 100%;
|
|
789
|
-
min-height: ${p.sp4};
|
|
790
|
-
|
|
791
|
-
${e=>e.mode==="checked_or_hover"&&We`
|
|
792
|
-
input:not(:checked) ~ .unchecked-icon {
|
|
793
|
-
opacity: 0;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
:hover {
|
|
797
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
798
|
-
.prefix-box {
|
|
799
|
-
opacity: 1;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
`};
|
|
803
|
-
|
|
804
|
-
${e=>e.mode==="hover_only"&&We`
|
|
805
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
806
|
-
input:checked ~ .checked-icon {
|
|
807
|
-
opacity: 0;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
:hover {
|
|
811
|
-
input:not(:checked) ~ .unchecked-icon,
|
|
812
|
-
input:checked ~ .checked-icon,
|
|
813
|
-
.prefix-box {
|
|
814
|
-
opacity: 1;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
`};
|
|
818
|
-
|
|
819
|
-
label {
|
|
820
|
-
color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
|
|
821
|
-
${e=>e.isDisabled==="disabled"&&We`
|
|
822
|
-
color: ${e.theme.colors.grey2};
|
|
823
|
-
`};
|
|
824
|
-
cursor: ${e=>e.isDisabled==="disabled"?"not-allowed":"pointer"};
|
|
825
|
-
pointer-events: ${e=>e.isDisabled==="disabled"||e.isDisabled==="readonly"?"none":"initial"};
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
.checkbox-alert {
|
|
829
|
-
opacity: 0;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
${e=>e.exceptionMode==="hover_only"&&We`
|
|
833
|
-
:hover {
|
|
834
|
-
.checkbox-alert {
|
|
835
|
-
opacity: 1;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
`}
|
|
839
|
-
|
|
840
|
-
${e=>e.exceptionMode==="checked_or_hover"&&We`
|
|
841
|
-
.checkbox-alert {
|
|
842
|
-
opacity: 1;
|
|
843
|
-
}
|
|
844
|
-
`}
|
|
845
|
-
`,Ag=A.div`
|
|
846
|
-
cursor: pointer;
|
|
847
|
-
`,Rg=A(Rl)`
|
|
848
|
-
height: ${p.sp3};
|
|
849
|
-
width: ${p.sp3};
|
|
850
|
-
color: ${e=>e.theme.colors.hero};
|
|
851
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
852
|
-
border-radius: 50%;
|
|
853
|
-
`,Ig=A(Kl)`
|
|
854
|
-
height: ${p.sp3};
|
|
855
|
-
width: ${p.sp3};
|
|
856
|
-
color: ${e=>e.theme.colors.hero};
|
|
857
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
858
|
-
border-radius: 50%;
|
|
859
|
-
`,jg=A.div`
|
|
860
|
-
width: 100%;
|
|
861
|
-
box-sizing: border-box;
|
|
862
|
-
`,Lg=A.div`
|
|
863
|
-
width: 100%;
|
|
864
|
-
display: flex;
|
|
865
|
-
justify-content: center;
|
|
866
|
-
align-items: center;
|
|
867
|
-
flex: 1;
|
|
868
|
-
background: ${e=>e.theme.colors.grey4};
|
|
869
|
-
box-sizing: border-box;
|
|
870
|
-
`,Dg=A(e=>y.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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}),y.createElement("path",{opacity:.2,d:"M21 68L180 17L125 126.5L92.5 94L64 107L55 79L21 68Z",fill:"#97C3B9"}),y.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}),y.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"}),y.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"}),y.createElement("path",{d:"M21.5625 129.486C22.3958 127.153 24.8625 121.586 28.0625 117.986",stroke:"#97C3B9",strokeWidth:2}),y.createElement("path",{d:"M35.5631 109.486C37.3272 107.746 41.5625 103.486 45.7381 101.468",stroke:"#97C3B9",strokeWidth:2}),y.createElement("path",{d:"M19.0623 140.486C18.8956 142.653 18.9623 148.286 20.5623 153.486",stroke:"#97C3B9",strokeWidth:2}),y.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}),y.createElement("path",{d:"M72.0625 175.486H85.5625M96.0625 175.486H110.562M121.062 175.486H135.062",stroke:"#97C3B9",strokeWidth:2}),y.createElement("path",{d:"M145.562 176.486C148.229 176.486 154.662 176.786 159.062 177.986",stroke:"#97C3B9",strokeWidth:2}),y.createElement("path",{d:"M169.562 180.986C172.062 181.653 178.062 183.686 182.062 186.486",stroke:"#97C3B9",strokeWidth:2})))`
|
|
871
|
-
width: 90px;
|
|
872
|
-
height: 90px;
|
|
873
|
-
`,Og=A(e=>y.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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}),y.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}),y.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}),y.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"}),y.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}),y.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}),y.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}),y.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}),y.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}),y.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}),y.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}),y.createElement("path",{d:"M60.7893 119.993L60.799 119.476H140.794L140.851 119.765L60.7893 119.993Z",fill:"#231F20",stroke:"#97C3B9",strokeWidth:2})))`
|
|
874
|
-
width: 90px;
|
|
875
|
-
height: 90px;
|
|
876
|
-
`,Mg=A(e=>y.createElement("svg",{width:90,height:90,viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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}),y.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}),y.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}),y.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}),y.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}),y.createElement("g",{opacity:.2},y.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"})),y.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"}),y.createElement("path",{d:"M61.2 59.4484L63.4903 61.65L67.5 56.7",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M33.6736 27.0088H66.7216",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M30.2854 35.8198H63.3334",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M26.8962 43.875H59.9442",stroke:"#EEBA7D",strokeWidth:.9,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),y.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}),y.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}),y.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}),y.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})))`
|
|
877
|
-
width: 90px;
|
|
878
|
-
height: 90px;
|
|
879
|
-
`,Pg=A(e=>y.createElement("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M39.6943 121.046L43.4452 127.026L48.7266 119.117",stroke:"#97C3B9",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M145.99 53.8984L169.25 44.8584",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),y.createElement("path",{d:"M122.041 30.474L139.922 14.1719",stroke:"#EEBA7D",strokeWidth:2,strokeMiterlimit:10,strokeLinecap:"round"}),y.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"}),y.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"}),y.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"})))`
|
|
880
|
-
width: 90px;
|
|
881
|
-
height: 90px;
|
|
882
|
-
`,Fg=A.div`
|
|
883
|
-
display: flex;
|
|
884
|
-
align-items: center;
|
|
885
|
-
justify-content: center;
|
|
886
|
-
flex-direction: column;
|
|
887
|
-
`,Bg=A(Ed)`
|
|
888
|
-
margin-top: ${p.sp2};
|
|
889
|
-
color: ${e=>e.theme.colors.brandColorJade};
|
|
890
|
-
`,zg=A(El)`
|
|
891
|
-
color: ${e=>e.theme.colors.primary};
|
|
892
|
-
`,Hg=e=>{const{tab:n}=e;switch(n){case"transaction_categorization":return t.jsx(Dg,{});case"je_schedules":case"reconciliation":return t.jsx(Pg,{});case"flux_analysis":return t.jsx(Mg,{});default:return t.jsx(Og,{})}};function Yt(e){const{title:n,subTitle:a}=e;return t.jsx(Lg,{children:t.jsxs(Fg,{children:[t.jsx(Hg,{...e}),t.jsx(Bg,{children:n}),t.jsx(zg,{children:a})]})})}const{common:{headers:{transactions:Wg,jeSchedules:Vg,fluxAnalysis:Ug,missingReceipts:Gg,insights:Kg,reconciliation:ws},strings:{empty:sn}},expenseAutomation:{transactions:{tabs:Ss,subTitles:{review:{item1:lo,item2:co},autoCategorized:{item1:uo,item2:Yg}},searchPlaceholder:qg,allDoneText:Jg},jeSchedules:{subTitles:{item1:Zg,item2:Xg},searchPlaceholder:Qg,allDoneText:em},missingReceipts:{subTitles:tm,searchPlaceholder:nm,allDoneText:om},fluxAnalysis:{subTitles:{item1:im,item2:rm},searchPlaceholder:am,emptyPageTexts:{youDidIt:sm,allReviewed:lm}},accountRecon:{review:{allDoneText:Es},reconcile:{allDoneText:cm},tabs:ks,titles:{item1:dm,item2:um},subTitles:{review:{item1:pm,item2:po},reconcile:{item1:ho,item2:hm}}}}}=Ae.getLocalizedStrings(),rt=(e,n,a,i,E)=>{switch(e){case"transaction_categorization":return{key:"transaction_categorization",title:Wg,subTitle:[],tabs:[{label:Ss.review,id:"review",subTitle:[{pre:lo.pre,bold:lo.bold,prefixIconName:lo.prefixIconName,post:lo.post},{pre:co.pre,bold:co.bold,prefixIconName:co.prefixIconName,post:co.post}]},{label:Ss.autoCategorized,id:"autoCategorized",subTitle:[{pre:uo.pre,bold:uo.bold,prefixIconName:uo.prefixIconName,post:uo.post.replace("#number",n!=null&&n!=0?n.toString():"")},Yg]}],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:qg,allDoneText:Jg};case"je_schedules":return{key:"je_schedules",title:Vg,subTitle:[Zg,Xg],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:Qg,allDoneText:em};case"missing_receipts":return{key:"missing_receipts",title:Gg,subTitle:[tm],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:nm,allDoneText:om};case"flux_analysis":return{key:"flux_analysis",title:Ug,subTitle:[im,rm],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:am,allDoneText:{title:sm,subTitle:lm}};case"month_end_insights":return{key:"month_end_insights",title:Kg,subTitle:[],tabs:[],rightSection:["comment","refresh","close"],leftSection:[],searchPlaceholder:sn,allDoneText:{title:sn,subTitle:sn}};case"reconciliation":return a==null?{key:"reconciliation",title:ws,subTitle:[dm,um],tabs:[],rightSection:["refresh","close"],leftSection:[],searchPlaceholder:sn,allDoneText:{title:sn,subTitle:sn}}:{key:"reconciliation",title:i??ws,subText:E??void 0,subTitle:[],tabs:[{label:ks.review,id:"review",subTitle:[pm,{pre:po.pre,bold:po.bold,prefixIconName:po.prefixIconName,post:po.post}],allDoneText:Es},{label:ks.reconcile,id:"reconcile",subTitle:[{pre:ho.pre,bold:ho.bold,prefixIconName:ho.prefixIconName,post:ho.post},hm],allDoneText:cm}],rightSection:["refresh"],leftSection:["back"],searchPlaceholder:sn,allDoneText:Es}}},{common:{strings:{empty:gm}},expenseAutomation:{accountRecon:{reconcile:{header:Zt}}}}=Ae.getLocalizedStrings(),qe=[{key:"date",value:Zt.date,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginLeft:G[4],marginRight:G[3]}},{key:"clearedDate",value:Zt.clearedDate,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3],display:"none"}},{key:"type",value:Zt.type,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"payee",value:Zt.payee,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"account",value:Zt.account,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"transactionDirection",value:Zt.direction,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"memo",value:Zt.memo,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"amount",value:Zt.amount,sortOrder:"ascending",width:new me(12.75,12.75,12.75),customStyle:{marginRight:G[3]}},{key:"recommended",value:gm,sortOrder:"ascending",width:new me(1.25,1.25,1.25),customStyle:{marginRight:G[4],marginLeft:G[0]}}],ii="date",Ts="descending",mm=ql.memo(function({sortConfig:e,onReconTabColumnSortConfigChanged:n}){const a=Me(),[i,E]=y.useState(Ni(qe));y.useEffect(()=>{const o=[...i];for(const g of o)g.key===e.sortKey?g.sortOrder=e.sortOrder:g.sortOrder="ascending";E(o)},[e.sortKey,e.sortOrder]);const S=o=>{((g,x)=>{let w=x;e.sortKey===g&&(w=x==="ascending"?"descending":"ascending"),n(g,w)})(o.key,o.sortOrder)};return t.jsx(Cm,{headerHeight:50,children:i.map(o=>t.jsx(fm,{columnWidth:o.width,windowSize:a,sortDataValue:e.sortKey,actualDataValue:o.key,style:o.customStyle,children:t.jsxs(Sm,{isVisible:o.key!=="recommended",children:[t.jsx(xm,{"data-testid":ce("reconcile-tab-list-sort",o.value),onClick:()=>S(o),children:t.jsx(Nt,{children:o.value})}),t.jsx(ym,{sortConfig:e,headerData:o,children:t.jsx(bm,{})}),t.jsx(vm,{isVisible:e.sortKey===o.key&&(e.sortKey!==ii||e.sortOrder!==Ts),children:t.jsx(wm,{"data-testid":ce("reconcile-tab-list-reset-sort",ii),onClick:()=>n(ii,Ts)})})]})},o.key))})}),fm=A.div`
|
|
893
|
-
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
894
|
-
:hover {
|
|
895
|
-
color: ${e=>e.theme.colors.primary};
|
|
896
|
-
}
|
|
897
|
-
width: ${e=>e.columnWidth.valuePercentage(e.windowSize)};
|
|
898
|
-
display: flex;
|
|
899
|
-
align-items: center;
|
|
900
|
-
height: 100%;
|
|
901
|
-
justify-content: flex-start;
|
|
902
|
-
gap: 6px;
|
|
903
|
-
z-index: auto;
|
|
904
|
-
position: relative;
|
|
905
|
-
`,xm=A.div`
|
|
906
|
-
display: flex;
|
|
907
|
-
gap: 5px;
|
|
908
|
-
cursor: pointer;
|
|
909
|
-
`,Cm=A(wt)`
|
|
910
|
-
width: fit-content;
|
|
911
|
-
height: ${e=>`${e.headerHeight}px`};
|
|
912
|
-
width: calc(100% - 20px);
|
|
913
|
-
z-index: 6;
|
|
914
|
-
display: flex;
|
|
915
|
-
align-items: center;
|
|
916
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
917
|
-
box-sizing: border-box;
|
|
918
|
-
padding: ${p.sp3} ${p.sp8} ${p.sp3} ${p.sp0};
|
|
919
|
-
position: sticky;
|
|
920
|
-
color: ${e=>e.theme.colors.grey1};
|
|
921
|
-
`,ym=A.div`
|
|
922
|
-
display: flex;
|
|
923
|
-
align-items: center;
|
|
924
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
925
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
926
|
-
`,bm=A(Lo)`
|
|
927
|
-
width: ${p.sp2};
|
|
928
|
-
height: ${p.sp2};
|
|
929
|
-
`,vm=A.div`
|
|
930
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
931
|
-
align-items: center;
|
|
932
|
-
padding-top: 2px;
|
|
933
|
-
cursor: pointer;
|
|
934
|
-
color: ${e=>e.theme.colors.grey1};
|
|
935
|
-
&:hover {
|
|
936
|
-
color: ${e=>e.theme.colors.primary};
|
|
937
|
-
}
|
|
938
|
-
`,wm=A(Do)`
|
|
939
|
-
width: 12px;
|
|
940
|
-
height: 12px;
|
|
941
|
-
`,Sm=A.div`
|
|
942
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
943
|
-
`,{common:{strings:{hyphen:ri}}}=Ae.getLocalizedStrings(),{dateFormat:$s}=Ae.getLocalizedStrings();function Em({selectedTransactionIds:e,transaction:n,transactionId:a}){const i=Me(),E=vt(),[S,o]=y.useState(!1),g=e.includes(a),x=S||g;return t.jsx(km,{id:a,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:t.jsxs(Tm,{isSelected:x,totalHeight:54,children:[t.jsx(Ht,{windowSize:i,responsiveWidth:qe[0].width,style:qe[0].customStyle,children:t.jsx(ln,{isSelected:x,children:n.date.format($s.visual.MMMDCommaYYYYformat)})}),qe[1].customStyle.display!=="none"?t.jsx(Ht,{windowSize:i,responsiveWidth:qe[1].width,style:qe[1].customStyle,children:t.jsx(ln,{isSelected:x,children:n.clearedDate!=null?n.clearedDate.format($s.visual.MMMDCommaYYYYformat):t.jsx("span",{children:ri})})}):null,t.jsx(Ht,{windowSize:i,style:qe[2].customStyle,responsiveWidth:qe[2].width,children:t.jsx(_m,{isSelected:x,children:t.jsx($m,{isSelected:x,children:jd(n.type)})})}),t.jsx(Ht,{windowSize:i,style:qe[3].customStyle,responsiveWidth:qe[3].width,children:n.merchantName!=null&&n.merchantName.length>0?t.jsx(yt,{text:n.merchantName,itemTextStyle:{color:x?E.colors.primary:E.colors.hero}}):t.jsx(ln,{isSelected:x,children:t.jsx("span",{children:ri})})}),t.jsx(Ht,{windowSize:i,style:qe[4].customStyle,responsiveWidth:qe[4].width,children:n.accountName!=null&&n.accountName.length>0?t.jsx(yt,{text:n.accountName,itemTextStyle:{color:x?E.colors.primary:E.colors.hero}}):t.jsx(ln,{isSelected:x,children:t.jsx("span",{children:ri})})}),t.jsx(Ht,{windowSize:i,style:qe[5].customStyle,responsiveWidth:qe[5].width,children:t.jsx(ln,{isSelected:x,style:{textTransform:"capitalize"},children:n.transactionDirection})}),t.jsx(Ht,{windowSize:i,style:qe[6].customStyle,responsiveWidth:qe[6].width,children:t.jsx(yt,{text:n.memo,itemTextStyle:{color:x?E.colors.primary:E.colors.hero}})}),t.jsx(Ht,{windowSize:i,style:qe[7].customStyle,responsiveWidth:qe[7].width,children:t.jsx(ln,{isSelected:x,children:ct("0,0.[00]",n.amount)})}),t.jsx(Ht,{windowSize:i,responsiveWidth:qe[8].width,style:qe[8].customStyle,children:t.jsx(ln,{isSelected:x,children:n.isZeniRecommended?t.jsx(Nm,{}):null})})]})})}const km=A.div`
|
|
944
|
-
box-sizing: border-box;
|
|
945
|
-
width: 100%;
|
|
946
|
-
display: flex;
|
|
947
|
-
padding-right: ${p.sp8};
|
|
948
|
-
`,Tm=A.div`
|
|
949
|
-
cursor: pointer;
|
|
950
|
-
display: flex;
|
|
951
|
-
border-radius: ${p.sp2};
|
|
952
|
-
width: 100%;
|
|
953
|
-
align-items: center;
|
|
954
|
-
height: ${e=>`${e.totalHeight}px`};
|
|
955
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
956
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
957
|
-
border-color: ${e=>e.isSelected===!0?e.theme.colors.primary:"none"};
|
|
958
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
959
|
-
:hover {
|
|
960
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
961
|
-
}
|
|
962
|
-
`,Ht=A.div`
|
|
963
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
964
|
-
display: flex;
|
|
965
|
-
align-items: center;
|
|
966
|
-
justify-content: flex-start;
|
|
967
|
-
height: 100%;
|
|
968
|
-
z-index: auto;
|
|
969
|
-
position: relative;
|
|
970
|
-
`,ln=A(Be)`
|
|
971
|
-
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
972
|
-
span {
|
|
973
|
-
padding-left: ${p.sp3};
|
|
974
|
-
}
|
|
975
|
-
`,$m=A(Nt)`
|
|
976
|
-
text-transform: capitalize;
|
|
977
|
-
color: ${e=>e.isSelected===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
978
|
-
`,Nm=A(Kn)`
|
|
979
|
-
width: ${p.sp3};
|
|
980
|
-
height: ${p.sp3};
|
|
981
|
-
margin-right: ${p.sp1};
|
|
982
|
-
path {
|
|
983
|
-
stroke-width: 2;
|
|
984
|
-
}
|
|
985
|
-
`,_m=A.div`
|
|
986
|
-
padding: 1px 6px;
|
|
987
|
-
border-radius: ${p.sp1};
|
|
988
|
-
border: ${e=>`1px solid ${e.isSelected?e.theme.colors.primary:e.theme.colors.hero}`};
|
|
989
|
-
`,Am=Ae.getLocalizedStrings(),{common:{all:Ns,strings:{empty:_s}}}=Am,As="selectedTransactionIds",Rm=e=>`${e}_form`;function Im({currentFooterFormId:e,localData:n,matchedTransactions:a,sortConfig:i,onSaveReconciliation:E,selectedAccountId:S,onReconTabColumnSortConfigChanged:o,onUpdateReconcileTabLocalData:g,setCurrentFooterFormId:x}){const w=xn({mode:"all",defaultValues:{selectedTransactionIds:n.selectedTransactionIds},values:{selectedTransactionIds:n.selectedTransactionIds}}),b={label:t.jsx(mm,{onReconTabColumnSortConfigChanged:o,sortConfig:i}),value:Ns.toLocaleLowerCase(),defaultChecked:!1,groupLabel:!0},h=a.map(m=>({label:t.jsx(Em,{transaction:m,selectedTransactionIds:n.selectedTransactionIds,transactionId:m.id}),value:m.id,defaultChecked:!1,groupLabel:!1})),r=[b,...h];y.useEffect(()=>{const m=w.watch(k=>{k!=null&&Gn(()=>(async s=>{const u=s[As].filter(T=>T!=Ns.toLocaleLowerCase());g(u)})(k))});return()=>{m.unsubscribe()}}),y.useEffect(()=>(e!=="expenseAutomationBankReconReconcilePage"&&x("expenseAutomationBankReconReconcilePage"),()=>{x("expenseAutomationPage")}),[]);const C=y.useCallback(()=>{E({reconcileAction:"reconcile"})},[E]);if(a.length===0){const m=rt("reconciliation",void 0,S).tabs.find(k=>k.id==="reconcile")?.allDoneText;return t.jsx(Om,{children:t.jsx(Yt,{tab:"missing_receipts",title:m?.title??_s,subTitle:m?.subTitle??_s})})}return t.jsx(jm,{children:t.jsx(Cn,{...w,children:t.jsx(Lm,{onSubmit:w.handleSubmit(C),id:Rm("expenseAutomationBankReconReconcilePage"),children:t.jsx(Dm,{children:t.jsx(Sg,{name:As,checkBoxes:r,checkBoxStyle:{padding:20},labelCheckBoxStyle:{padding:20},rowHeight:72,mode:n.selectedTransactionIds.length>0?"always_on":"checked_or_hover",checkBoxContainerStyle:{boxSizing:"border-box"}})})})})})}const jm=A.div``,Lm=A.form``,Dm=A.div`
|
|
990
|
-
height: calc(100vh - 350px);
|
|
991
|
-
`,Om=A.div`
|
|
992
|
-
height: 100%;
|
|
993
|
-
display: flex;
|
|
994
|
-
justify-content: center;
|
|
995
|
-
align-items: center;
|
|
996
|
-
`,Gt=187,mn=136,Pt=240,fn=146,hc=A.div`
|
|
997
|
-
display: flex;
|
|
998
|
-
flex-direction: column;
|
|
999
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1000
|
-
width: 100%;
|
|
1001
|
-
min-height: 100%;
|
|
1002
|
-
height: calc(100vh - 500px);
|
|
1003
|
-
overflow-x: scroll;
|
|
1004
|
-
align-items: center;
|
|
1005
|
-
`,gc=A.div`
|
|
1006
|
-
display: flex;
|
|
1007
|
-
flex-direction: column;
|
|
1008
|
-
gap: ${p.sp5};
|
|
1009
|
-
align-items: flex-start;
|
|
1010
|
-
padding-bottom: ${p.sp9};
|
|
1011
|
-
width: 100%;
|
|
1012
|
-
`,mc=A.div`
|
|
1013
|
-
width: 100%;
|
|
1014
|
-
`,fc=A.div`
|
|
1015
|
-
width: 100%;
|
|
1016
|
-
`,Zi=A.div`
|
|
1017
|
-
display: flex;
|
|
1018
|
-
flex-direction: row;
|
|
1019
|
-
padding: ${p.sp2};
|
|
1020
|
-
padding-right: ${p.sp3};
|
|
1021
|
-
justify-content: space-between;
|
|
1022
|
-
border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1023
|
-
`,Xi=A.div`
|
|
1024
|
-
display: flex;
|
|
1025
|
-
flex-direction: row;
|
|
1026
|
-
justify-content: space-between;
|
|
1027
|
-
padding: ${p.sp2};
|
|
1028
|
-
padding-right: ${p.sp3};
|
|
1029
|
-
`,Mm=A.div`
|
|
1030
|
-
border-top: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1031
|
-
display: flex;
|
|
1032
|
-
flex-direction: row;
|
|
1033
|
-
justify-content: space-between;
|
|
1034
|
-
padding: ${p.sp2};
|
|
1035
|
-
padding-right: ${p.sp3};
|
|
1036
|
-
`,Pm=A.div`
|
|
1037
|
-
padding: ${p.sp2} ${p.sp3};
|
|
1038
|
-
`,Qi=A.div`
|
|
1039
|
-
display: flex;
|
|
1040
|
-
`,Fm=A.div`
|
|
1041
|
-
display: flex;
|
|
1042
|
-
align-items: center;
|
|
1043
|
-
justify-content: center;
|
|
1044
|
-
gap: ${p.sp1};
|
|
1045
|
-
padding: ${p.sp2} ${p.sp0};
|
|
1046
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
1047
|
-
border-bottom-left-radius: ${p.sp2};
|
|
1048
|
-
border-bottom-right-radius: ${p.sp2};
|
|
1049
|
-
`,er=A.div`
|
|
1050
|
-
display: flex;
|
|
1051
|
-
flex-direction: column;
|
|
1052
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1053
|
-
border-radius: ${p.sp2};
|
|
1054
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1055
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
1056
|
-
cursor: pointer;
|
|
1057
|
-
border: ${e=>`1px solid ${e.showBorder===!0?e.theme.colors.primary:e.theme.colors.grey3}`};
|
|
1058
|
-
.highlight {
|
|
1059
|
-
color: ${e=>e.showBorder===!0?e.theme.colors.primary:e.theme.colors.hero};
|
|
1060
|
-
}
|
|
1061
|
-
:hover {
|
|
1062
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
1063
|
-
}
|
|
1064
|
-
:hover .highlight {
|
|
1065
|
-
color: ${e=>e.theme.colors.primary};
|
|
1066
|
-
}
|
|
1067
|
-
`,ve=A.div`
|
|
1068
|
-
display: flex;
|
|
1069
|
-
flex-direction: column;
|
|
1070
|
-
width: 180px;
|
|
1071
|
-
padding: ${p.sp2};
|
|
1072
|
-
.hover-background {
|
|
1073
|
-
border-radius: ${p.sp1};
|
|
1074
|
-
background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
|
|
1075
|
-
.select-control {
|
|
1076
|
-
background-color: ${e=>e.forceHoverEffect===!0?e.theme.colors.background:"unset"};
|
|
1077
|
-
}
|
|
1078
|
-
:hover {
|
|
1079
|
-
background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
|
|
1080
|
-
.select-control {
|
|
1081
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
:focus-within {
|
|
1085
|
-
background-color: ${e=>`${e.showHoverEffect===!0?e.theme.colors.background:"unset"}`};
|
|
1086
|
-
.select-control {
|
|
1087
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
.item-value-container {
|
|
1092
|
-
.grouped-single-select-field__menu {
|
|
1093
|
-
margin-top: ${p.sp2};
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
`,Ot=A.div`
|
|
1097
|
-
padding: ${p.sp2} ${p.sp3};
|
|
1098
|
-
`,Se=A(Nt)`
|
|
1099
|
-
color: ${e=>e.theme.colors.hero};
|
|
1100
|
-
`,$e=A(Be)`
|
|
1101
|
-
width: 100%;
|
|
1102
|
-
color: ${e=>e.theme.colors.hero};
|
|
1103
|
-
white-space: nowrap;
|
|
1104
|
-
overflow: hidden;
|
|
1105
|
-
text-overflow: ellipsis;
|
|
1106
|
-
`,ke=A.div`
|
|
1107
|
-
display: flex;
|
|
1108
|
-
gap: ${p.sp1};
|
|
1109
|
-
color: ${e=>e.theme.colors.primary};
|
|
1110
|
-
.select-value-container {
|
|
1111
|
-
.auto-complete-single-select-field__input-container {
|
|
1112
|
-
.auto-complete-single-select-field__input {
|
|
1113
|
-
text-align: left;
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
.grouped-single-select-field__input-container {
|
|
1117
|
-
.grouped-single-select-field__input {
|
|
1118
|
-
text-align: left;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
`,tr=A.div`
|
|
1123
|
-
border-left: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1124
|
-
display: flex;
|
|
1125
|
-
flex-direction: column;
|
|
1126
|
-
gap: ${p.sp3};
|
|
1127
|
-
align-items: center;
|
|
1128
|
-
justify-content: center;
|
|
1129
|
-
padding: ${p.sp0} 42px;
|
|
1130
|
-
`,nr=A.div`
|
|
1131
|
-
flex: 1;
|
|
1132
|
-
`,xc=A(Nt)`
|
|
1133
|
-
padding: ${p.sp0} 6px;
|
|
1134
|
-
color: ${Oe.info};
|
|
1135
|
-
border: 1px solid ${Oe.info};
|
|
1136
|
-
border-radius: ${p.sp1};
|
|
1137
|
-
margin-top: ${p.sp1};
|
|
1138
|
-
`,So=A(wt)`
|
|
1139
|
-
padding: ${p.sp2};
|
|
1140
|
-
color: ${e=>e.theme.colors.hero};
|
|
1141
|
-
background: ${e=>e.theme.colors.overlayColor};
|
|
1142
|
-
border-radius: ${p.sp1};
|
|
1143
|
-
`,lt=A(So)`
|
|
1144
|
-
padding: 2px ${p.sp2};
|
|
1145
|
-
`,tn=Ae.getLocalizedStrings().expenseAutomation.accountRecon.review.header,Ut=[{key:"date",value:tn.date,sortOrder:"ascending",width:new me(20,20),loaderWidth:120},{key:"payee",value:tn.payee,sortOrder:"ascending",width:new me(20,20),loaderWidth:212},{key:"memo",value:tn.memo,sortOrder:"ascending",width:new me(20,20),loaderWidth:192},{key:"direction",value:tn.direction,sortOrder:"ascending",width:new me(15,15),loaderWidth:84},{key:"match",value:tn.match,sortOrder:"ascending",width:new me(15,15),loaderWidth:152},{key:"amount",value:tn.amount,sortOrder:"ascending",width:new me(10,10),loaderWidth:64}],Oi=[{key:"payee",value:tn.payee,sortOrder:"ascending",width:new me(65,65),loaderWidth:212},{key:"amount",value:tn.amount,sortOrder:"ascending",width:new me(30,30),loaderWidth:64}],Bm=y.memo(e=>{const{sortConfig:n,onColumnSortConfigChanged:a}=e,i=Me(),E=rn()?Oi:Ut,[S,o]=y.useState(()=>E.map(x=>({...x,sortOrder:x.key===n.sortKey?n.sortOrder:"ascending"})));y.useEffect(()=>{o(E.map(x=>({...x,sortOrder:x.key===n.sortKey?n.sortOrder:"ascending"})))},[n.sortKey,n.sortOrder,E]);const g=(x,w)=>{let b=w;n.sortKey===x&&(b=w==="ascending"?"descending":"ascending"),a(x,b)};return t.jsx(zm,{children:S.map(x=>t.jsxs(Hm,{sortDataValue:n.sortKey,actualDataValue:x.key,wrapperWidth:x.width,windowSize:i,isLastColumn:x.key==="amount",children:[t.jsxs(Wm,{"data-testid":ce("account-reconciliation-review-header",x.value),sortKey:x.key,onClick:()=>g(x.key,x.sortOrder),children:[t.jsx(Nt,{children:x.value}),t.jsx(Vm,{sortDataValue:n.sortKey,headerData:x,children:t.jsx(Um,{})})]}),t.jsx(Gm,{sortDataValue:n.sortKey,windowSize:i,isVisible:n.sortKey===x.key&&(n.sortKey!=="date"||n.sortOrder==="ascending"),children:t.jsx(Km,{"data-testid":ce("account-reconciliation-review-sort-by-date"),onClick:()=>g("date","ascending")})})]},x.key))})}),zm=A(wt)`
|
|
1146
|
-
top: 0;
|
|
1147
|
-
left: 0;
|
|
1148
|
-
width: fit-content;
|
|
1149
|
-
min-width: 100%;
|
|
1150
|
-
z-index: 6;
|
|
1151
|
-
display: flex;
|
|
1152
|
-
align-items: center;
|
|
1153
|
-
box-sizing: border-box;
|
|
1154
|
-
padding: ${p.sp3} ${p.sp4};
|
|
1155
|
-
position: sticky;
|
|
1156
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1157
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1158
|
-
`,Hm=A.div`
|
|
1159
|
-
color: ${e=>e.sortDataValue===e.actualDataValue?e.theme.colors.primary:e.theme.colors.grey1};
|
|
1160
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1161
|
-
min-width: ${e=>e.isLastColumn===!0?"auto":e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1162
|
-
display: flex;
|
|
1163
|
-
align-items: center;
|
|
1164
|
-
gap: 5px;
|
|
1165
|
-
left: ${p.sp0};
|
|
1166
|
-
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
1167
|
-
`,Wm=A.div`
|
|
1168
|
-
display: flex;
|
|
1169
|
-
cursor: pointer;
|
|
1170
|
-
gap: ${p.sp1};
|
|
1171
|
-
&:hover {
|
|
1172
|
-
color: ${e=>e.theme.colors.primary};
|
|
1173
|
-
}
|
|
1174
|
-
white-space: nowrap;
|
|
1175
|
-
`,Vm=A.div`
|
|
1176
|
-
display: flex;
|
|
1177
|
-
align-items: center;
|
|
1178
|
-
transform: ${e=>e.sortDataValue===e.headerData.key&&e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1179
|
-
${e=>e.headerData.sortOrder==="ascending"?We`
|
|
1180
|
-
padding-top: 2px;
|
|
1181
|
-
`:We`
|
|
1182
|
-
padding-bottom: 2px;
|
|
1183
|
-
`}
|
|
1184
|
-
`,Um=A(Lo)`
|
|
1185
|
-
width: ${p.sp2};
|
|
1186
|
-
height: ${p.sp2};
|
|
1187
|
-
cursor: pointer;
|
|
1188
|
-
color: inherit;
|
|
1189
|
-
`,Gm=A.div`
|
|
1190
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
1191
|
-
align-items: center;
|
|
1192
|
-
padding-top: 2px;
|
|
1193
|
-
`,Km=A(Do)`
|
|
1194
|
-
width: 12px;
|
|
1195
|
-
height: 12px;
|
|
1196
|
-
cursor: pointer;
|
|
1197
|
-
color: ${e=>e.theme.colors.hero};
|
|
1198
|
-
`,kt="accountReconReviewTableSection",{dateFormat:Ym,expenseAutomation:qm,common:Ft}=Ae.getLocalizedStrings(),{visual:Cc}=Ym,{accountRecon:Ie}=qm,yc=e=>[{label:Ie.review.formLabels.allBankAccounts,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],bc=e=>[{label:Ie.review.formLabels.allCreditCards,options:e.map(n=>({label:n.accountName,value:n.accountId}))}],Rs=e=>`${kt}_${e}_form`,Ge=(e,n)=>`${kt}.${e}.${n}`,Jm=e=>{const{sortKey:n,sortOrder:a,accountReconEntity:i,entitySearchAutoCompleteActions:E,allAccountList:S,classList:o,localData:g,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:w,selectedAccountId:b,entitySearchAutoCompleteData:h,excludeFetchById:r,saveFetchById:C,reviewTabSelectedVendorByTransactionId:m,refreshStatus:k,updateLocalData:s,onColumnSortConfigChanged:u,onSaveReconciliation:T,onSaveReconciliationReview:v,onReconMatchedTransactionClick:N,bankAccounts:O,creditCards:M}=e,{transactionsToReview:D,account:{accountType:R}}=i,j=y.useRef(null),[F,Y]=y.useState(null),ee=X=>{const H=D[X],L=Xl(H),l=Ql(H),c=ec(H,R??"bank"),$=tc(H,R??"bank"),f=nc(H),d=Ui(H),_=H.recommendedAction.recommendedTransactions[0]?.merchantName!=null;return H.transactionId===F?l||c||$||f||d?275+(_?25:0):L?185+40*H.recommendedAction.recommendedTransactions.length+(_?25:0):146:72},te=y.useMemo(()=>({onColumnSortConfigChanged:u,sortConfig:{sortKey:n,sortOrder:a}}),[u,n,a]);if(y.useEffect(()=>{Y(D[0]?.transactionId??null),j.current?.resetAfterIndex(0)},[n,a]),y.useEffect(()=>{j.current?.resetAfterIndex(0)},[F]),y.useEffect(()=>{j.current?.resetAfterIndex(0)},[D.length]),y.useEffect(()=>{k.fetchState==="Completed"&&j.current?.resetAfterIndex(0)},[k]),D.length===0){const X=rt("reconciliation",void 0,b).tabs.find(H=>H.id==="review")?.allDoneText;return t.jsx(C1,{children:t.jsx(Yt,{tab:"reconciliation",title:X?.title??Ft.strings.empty,subTitle:X?.subTitle??Ft.strings.empty})})}return t.jsx(i1,{children:t.jsx(vc.Provider,{value:te,children:t.jsx(Io,{children:({height:X,width:H})=>t.jsx(jo,{width:H,height:X,innerElementType:wc,ref:j,itemCount:D.length,itemSize:ee,itemKey:L=>D[L].transactionId,overscanCount:cu,itemData:{transactionsList:D,expandedRowId:F,allAccountList:S,classList:o,accountListNestedAccountHierarchy:x,classListNestedAccountHierarchy:w,localData:g,entitySearchAutoCompleteData:h,entitySearchAutoCompleteActions:E,excludeFetchById:r,saveFetchById:C,reviewTabSelectedVendorByTransactionId:m,bankAccounts:O,creditCards:M,accountType:R,updateLocalData:s,setExpandedRowId:Y,onSaveReconciliation:T,onSaveReconciliationReview:v,onReconMatchedTransactionClick:N},initialScrollOffset:0,children:Zm})})})})},vc=y.createContext(void 0),wc=y.forwardRef((e,n)=>{const{children:a,style:i,...E}=e,S=y.useContext(vc);return t.jsxs(r1,{ref:n,style:{...i,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)",padding:`${p.sp0} ${p.sp8}`},...E,children:[S!=null&&t.jsx(Bm,{onColumnSortConfigChanged:S.onColumnSortConfigChanged,sortConfig:S.sortConfig}),t.jsx(a1,{children:a})]})});wc.displayName="Account recon review table inner element type";const Zm=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Hi(),{transactionsList:E,expandedRowId:S,setExpandedRowId:o,entitySearchAutoCompleteActions:g,allAccountList:x,classList:w,localData:b,updateLocalData:h,accountListNestedAccountHierarchy:r,classListNestedAccountHierarchy:C,entitySearchAutoCompleteData:m,onSaveReconciliation:k,onSaveReconciliationReview:s,onReconMatchedTransactionClick:u,excludeFetchById:T,saveFetchById:v,reviewTabSelectedVendorByTransactionId:N,bankAccounts:O,creditCards:M,accountType:D}=a,R=E[e],j=i!=null&&i===R.transactionId;return t.jsx(o1,{isPanelSelected:j,style:{...n,width:"100%"},children:t.jsx(Xm,{transaction:R,expandedRowId:S,setExpandedRowId:o,entitySearchAutoCompleteActions:g,accountListNestedAccountHierarchy:r,allAccountList:x,classList:w,localData:b,updateLocalData:h,entitySearchAutoCompleteData:m,classListNestedAccountHierarchy:C,onSaveReconciliation:k,onSaveReconciliationReview:s,onReconMatchedTransactionClick:u,excludeFetchById:T,saveFetchById:v,selectedVendor:N[R.transactionId],bankAccounts:O,creditCards:M,accountType:D})})},Xm=({transaction:e,expandedRowId:n,accountListNestedAccountHierarchy:a,entitySearchAutoCompleteActions:i,allAccountList:E,classList:S,classListNestedAccountHierarchy:o,localData:g,entitySearchAutoCompleteData:x,excludeFetchById:w,saveFetchById:b,selectedVendor:h,bankAccounts:r,creditCards:C,accountType:m,setExpandedRowId:k,updateLocalData:s,onSaveReconciliation:u,onSaveReconciliationReview:T,onReconMatchedTransactionClick:v})=>{const N=n===e.transactionId,O=Me(),M=rn(),D=g[e.transactionId],R=e.recommendedAction.action==="record_bill_payment",j=e.recommendedAction.action==="record_expense",F=Ui(e),Y=E.find(X=>X.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),ee=e.recommendedAction.recommendedTransactions[0]?.merchantName;return t.jsxs(e1,{className:"recon-row-card",isCompressedMode:M,isExpanded:N,children:[t.jsxs(t1,{isExpanded:N,onClick:()=>k(e.transactionId),"data-testid":ce("account-reconciliation-review-row",e.transactionId),children:[M?null:t.jsx(vn,{windowSize:O,responsiveWidth:Ut[0].width,children:t.jsx(bn,{children:e.transactionDate.format(Cc.MMMDCommaYYYYformat)})}),t.jsx(vn,{windowSize:O,responsiveWidth:M?Oi[0].width:Ut[1].width,children:t.jsx(bn,{children:t.jsx(yt,{itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"},text:(te=e,te.recommendedAction.recommendedTransactions.length>0&&te.recommendedAction.recommendedTransactions[0].merchantName!=null?te.recommendedAction.recommendedTransactions[0].merchantName:Ft.strings.hyphen)})})}),M?null:t.jsxs(t.Fragment,{children:[t.jsx(vn,{windowSize:O,responsiveWidth:Ut[2].width,children:t.jsx(bn,{children:t.jsx(yt,{itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"},text:e.memo})})}),t.jsx(vn,{windowSize:O,responsiveWidth:Ut[3].width,children:t.jsx(bn,{style:{textTransform:"capitalize"},children:e.transactionDirection})}),t.jsxs(vn,{windowSize:O,responsiveWidth:Ut[4].width,children:[t.jsx(ot,{controller:R,children:t.jsx(y1,{children:t.jsx(b1,{children:Ie.review.matchesCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())})})}),t.jsx(ot,{controller:!R,children:t.jsx(bn,{children:Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(Sc,{}),t.jsx(yt,{itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"},text:Y.accountName})]}):Ft.strings.hyphen})})]})]}),t.jsx(vn,{windowSize:O,isLastColumn:!0,responsiveWidth:M?Oi[1].width:Ut[5].width,children:t.jsx(bn,{children:Yl("0,0.00",e.amount.amount,e.amount.currencySymbol)})})]}),t.jsxs(ot,{controller:N&&D!=null,children:[t.jsx(Qm,{onSaveReconciliation:u,onSaveReconciliationReview:T,updateLocalData:s,saveFetchById:b,excludeFetchById:w,localData:D,classListNestedAccountHierarchy:o,allAccountList:E,classList:S,transaction:e,accountListNestedAccountHierarchy:a,entitySearchAutoCompleteActions:i,entitySearchAutoCompleteData:x,selectedVendor:h,bankAccounts:r,creditCards:C,accountType:m,onReconMatchedTransactionClick:v}),t.jsx(ot,{controller:(R||j||F)&&ee!=null,children:t.jsx(w1,{children:t.jsxs(S1,{children:[m==="credit_card"?Ie.review.creditCardDetail:Ie.review.bankDetail,Ft.strings.colon," ",ee]})})})]})]});var te},Qm=({transaction:e,accountListNestedAccountHierarchy:n,entitySearchAutoCompleteActions:a,allAccountList:i,classList:E,classListNestedAccountHierarchy:S,localData:o,entitySearchAutoCompleteData:g,excludeFetchById:x,saveFetchById:w,selectedVendor:b,bankAccounts:h,creditCards:r,accountType:C,updateLocalData:m,onSaveReconciliation:k,onSaveReconciliationReview:s,onReconMatchedTransactionClick:u})=>{const T=vt(),v=rn(),[N,O]=y.useState(!o.vendor?.id),[M,D]=y.useState(!o.customer?.id),[R,j]=y.useState(o.categoryId==null),[F,Y]=y.useState(o.classId==null),[ee,te]=y.useState(o.bankAccountId==null),[X,H]=y.useState(o.creditCardId==null),[L,l]=y.useState(!o.memo),c=Xl(e),$=Ql(e),f=tc(e,C??"bank"),d=ec(e,C??"bank"),_=nc(e),I=Ui(e),B=y.useMemo(()=>{if(!$&&!I)return nn(n);if(b!=null&&b.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return nn(n,b?.recommendations);const P=i.find(J=>J.accountId===e.recommendedAction.recommendedTransactions[0]?.accountId),K=P!=null?{...P,reason:Ie.review.zeniGptRecommendation,min:0,max:0}:void 0;return nn(n,[{account:K}])},[$,I,b,e.recommendedAction.recommendedTransactions,i,n]),Z=y.useMemo(()=>{if(!$&&!I)return bo(S);if(b!=null&&b.id!==e.recommendedAction.recommendedTransactions[0]?.merchantId)return bo(S,b?.recommendations);const P=E.find(J=>J.classId===e.recommendedAction.recommendedTransactions[0]?.classId),K=P!=null?{...P,reason:Ie.review.zeniGptRecommendation,min:0,max:0}:void 0;return bo(S,[{class:K}])},[$,I,b,e.recommendedAction.recommendedTransactions,E,S]),q=xn({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:y.useMemo(()=>Is(e,o,B,i,Z,h,r,g),[e,o,Z,i,B,h,r,g]),values:y.useMemo(()=>Is(e,o,B,i,Z,h,r,g),[e,o,Z,i,B,h,r,g])});y.useEffect(()=>{const P=q.watch((K,{name:J})=>{J!=null&&K!=null&&Gn(()=>(async(Q,ie)=>{Q.includes("memo")||m(js(ie,e,g,i),e.transactionId,Q.includes("vendor"))})(J,K))});return()=>{P.unsubscribe()}});const z=y.useCallback(P=>{if(!v){if($||_||I){if(($||I)&&o.vendor==null)return O(!1),void q.setError(Ge(e.transactionId,"vendor"),{type:"required"});if(_&&o.customer==null)return D(!1),void q.setError(Ge(e.transactionId,"customer"),{type:"required"});if(o.categoryId==null)return j(!1),void q.setError(Ge(e.transactionId,"category"),{type:"required"})}m(js(P,e,g,i),e.transactionId,!1),s(e.transactionId)}},[v,$,I,_,m,e,g,i,s,o.categoryId,o.vendor,o.customer]),W=q.watch(Ge(e.transactionId,"vendor")),U=q.watch(Ge(e.transactionId,"customer")),V=y.useRef(),ne=y.useMemo(()=>$||I?"vendor":_?"customer":null,[$,I,_]),ae=(P,K)=>{ne!=null&&a.onAutoCompleteInputChange?.(P,ne),V.current=K};y.useEffect(()=>{g.entityAutoCompleteView.fetchState==="Completed"&&(($||I)&&V.current?.(zl(g.entityAutoCompleteView)),_&&V.current?.(Fd(g.entityAutoCompleteView)))},[g.entityAutoCompleteView,_,$,I]);const oe=y.useMemo(()=>{if(C==="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[]}},[C,e.recommendedAction.action,e.transactionDirection]);return y.useEffect(()=>{R===!1&&o.categoryId==null&&q.setFocus(Ge(e.transactionId,"category"))},[R]),y.useEffect(()=>{F===!1&&o.classId==null&&q.setFocus(Ge(e.transactionId,"class"))},[F]),y.useEffect(()=>{N===!1&&o.vendor==null&&q.setFocus(Ge(e.transactionId,"vendor"))},[N]),y.useEffect(()=>{M===!1&&o.customer==null&&q.setFocus(Ge(e.transactionId,"customer"))},[M]),y.useEffect(()=>{ee===!1&&o.bankAccountId==null&&q.setFocus(Ge(e.transactionId,"bankAccount"))},[ee]),y.useEffect(()=>{X===!1&&o.creditCardId==null&&q.setFocus(Ge(e.transactionId,"creditCard"))},[X]),t.jsx(Cn,{...q,children:t.jsx("form",{onSubmit:q.handleSubmit(z),id:Rs(e.transactionId),children:t.jsxs(n1,{children:[t.jsxs(s1,{children:[t.jsxs(d1,{children:[t.jsxs(u1,{children:[t.jsx(Sc,{}),t.jsx(Uo,{label:{label:c?Ie.review.formLabels.match:Ie.review.formLabels.categorize},radioField:{name:Ge(e.transactionId,"match_radio"),id:c?"match":"categorize",value:c?"match":"categorize",checked:!0,style:{width:p.sp3,height:p.sp3,padding:"2px"}},style:{width:"auto"}})]}),t.jsx(ot,{controller:!c,children:t.jsxs(t.Fragment,{children:[t.jsx(Ls,{}),oe.map(P=>t.jsx(Uo,{label:{label:Ie.review.formLabels[P]},style:{width:"auto"},isDisabled:"readonly",changeLabelColorInDisableMode:!0,radioField:{name:Ge(e.transactionId,"recommendedActionType"),id:P,value:P,style:{width:p.sp3,height:p.sp3,padding:"2px"}}},P))]})})]}),t.jsxs(c1,{children:[t.jsx(zn,{variant:"secondary",size:"small",label:Ie.review.formLabels.exclude,loading:x[e.transactionId]?.fetchState==="In-Progress","data-testid":ce("account-reconciliation-review-exclude-button",e.transactionId),style:{width:p.sp10},reverseSpinnerColor:!1,onClick:()=>{v||k({reconcileAction:"exclude",excludeTransactionId:e.transactionId})}}),t.jsx(zn,{form:Rs(e.transactionId),"data-testid":ce("account-reconciliation-review-save-button",e.transactionId),label:Ft.footer.save,style:{width:p.sp10},variant:"primary",size:"small",type:"submit",loading:w[e.transactionId]?.fetchState==="In-Progress"})]})]}),t.jsx(ot,{controller:$||_||I,children:t.jsxs(ai,{children:[t.jsx(ot,{controller:$||I,children:t.jsx(Mt,{onClickAway:()=>{o.vendor==null&&N===!1&&O(!0)},children:t.jsx(ve,{style:{flex:1,padding:G[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(Ot,{className:"hover-background",style:{padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ft.texts.vendor}),t.jsx(ke,{style:{gap:G[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:N===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&O(!1)},"data-testid":ce("account-reconciliation-review-add-vendor-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.champion,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.addVendor]}):t.jsx($i,{name:Ge(e.transactionId,"vendor"),allowEmpty:!1,placeholder:Ie.review.formLabels.addVendor,valueToId:P=>P,defaultValue:{selectedOption:W?.selectedOption,defaultOptions:W?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:p.sp4})},registerOptions:{required:!0,validate:P=>!!P.selectedOption},loadOptions:ae})})})]})})})}),t.jsx(ot,{controller:_,children:t.jsx(Mt,{onClickAway:()=>{o.customer==null&&M===!1&&D(!0)},children:t.jsx(ve,{style:{flex:1,padding:G[0],justifyContent:"center"},showHoverEffect:!0,forceHoverEffect:!1,children:t.jsxs(Ot,{className:"hover-background",style:{padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ft.texts.customer}),t.jsx(ke,{style:{gap:G[3]},className:"item-value-container",children:t.jsx(t.Fragment,{children:M===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&D(!1)},"data-testid":ce("account-reconciliation-review-add-customer-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.champion,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.addCustomer]}):t.jsx($i,{name:Ge(e.transactionId,"customer"),allowEmpty:!1,placeholder:Ie.review.formLabels.addCustomer,valueToId:P=>P,defaultValue:{selectedOption:U?.selectedOption,defaultOptions:U?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:p.sp4})},registerOptions:{required:!0,validate:P=>!!P.selectedOption},loadOptions:ae})})})]})})})}),t.jsx(Mt,{onClickAway:()=>{o.categoryId==null&&R===!1&&j(!0)},children:t.jsx(ve,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ft.texts.category}),t.jsx(ke,{className:"item-value-container",children:t.jsx(t.Fragment,{children:R===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&(v||j(!1))},"data-testid":ce("account-reconciliation-review-add-category-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.champion,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.addCategory]}):t.jsx(kn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ge(e.transactionId,"category"),placeholder:Ie.review.formLabels.addCategory,valueToId:P=>(K=>i.filter(J=>J.qboId===K)[0]?.qboId)(P),defaultValue:{allOptions:B,selectedOption:i.find(P=>P.accountId===o.categoryId)?.qboId},registerOptions:{required:!0,validate:P=>!!P.selectedOption},customStyleConfig:go})})})]})})}),t.jsx(Mt,{onClickAway:()=>{o.classId==null&&F===!1&&Y(!0)},children:t.jsx(ve,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ft.texts.class}),t.jsx(ke,{className:"item-value-container",children:t.jsx(t.Fragment,{children:F===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&Y(!1)},"data-testid":ce("account-reconciliation-review-add-class-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.champion,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.addClass]}):t.jsx(kn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ge(e.transactionId,"class"),placeholder:Ie.review.formLabels.addClass,valueToId:P=>(K=>E.filter(J=>J.classId===K)[0]?.accountingClassNumber??void 0)(P),defaultValue:{allOptions:Z,selectedOption:o.classId},registerOptions:{required:!0,validate:P=>!!P.selectedOption},customStyleConfig:go})})})]})})})]})}),t.jsx(ot,{controller:c,children:t.jsxs(p1,{children:[t.jsxs(h1,{children:[t.jsx("span",{className:"matched-text",children:`${Ie.review.matchedFoundCount.replace("__count__",e.recommendedAction.recommendedTransactions.length.toString())} `}),Ie.review.matchesFoundFullInfo]}),t.jsx(m1,{children:e.recommendedAction.recommendedTransactions.map(P=>P.bookTransactionId!=null?t.jsxs(f1,{children:[t.jsx(Uo,{label:{label:t.jsxs(g1,{children:[t.jsx(Be,{children:P.date.format(Cc.MMMDCommaYYYYformat)}),t.jsx(Be,{children:P.memo})]})},style:{width:"auto"},isDisabled:void 0,changeLabelColorInDisableMode:!0,radioField:{name:Ge(e.transactionId,"matchedTransaction"),registerOptions:{required:!0},id:P.bookTransactionId,value:P.bookTransactionId,style:{width:p.sp3,height:p.sp3,padding:"2px"}}}),t.jsxs(v1,{"data-testid":ce("account-reconciliation-review-matched-transaction-amount",P.bookTransactionId),onClick:()=>{P.bookTransactionId!=null&&u(P.bookTransactionId)},children:[t.jsx(x1,{children:Yl("0,0.00",P.amount.amount,P.amount.currencySymbol)}),t.jsx(Ls,{})]})]},P.bookTransactionId):null)})]})}),t.jsx(ot,{controller:f,children:t.jsx(ai,{children:t.jsx(Mt,{onClickAway:()=>{o.bankAccountId==null&&ee===!1&&te(!0)},children:t.jsx(ve,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:C==="credit_card"?Ie.review.formLabels.selectAccount:Ie.review.formLabels.transferTo}),t.jsx(ke,{className:"item-value-container",children:t.jsx(t.Fragment,{children:ee===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&(v||te(!1))},"data-testid":ce("account-reconciliation-review-add-account-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.selectAccount]}):t.jsx(kn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ge(e.transactionId,"bankAccount"),placeholder:Ie.review.formLabels.selectAccount,defaultValue:{allOptions:yc(h),selectedOption:o.bankAccountId},registerOptions:{required:!0,validate:P=>!!P.selectedOption},customStyleConfig:go})})})]})})})})}),t.jsx(ot,{controller:d,children:t.jsx(ai,{children:t.jsx(Mt,{onClickAway:()=>{o.creditCardId==null&&X===!1&&H(!0)},children:t.jsx(ve,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",flex:1},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ie.review.formLabels.creditCard}),t.jsx(ke,{className:"item-value-container",children:t.jsx(t.Fragment,{children:X===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&(v||H(!1))},"data-testid":ce("account-reconciliation-review-add-credit-card-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.selectCard]}):t.jsx(kn,{shouldShowChevronIcon:!1,menuPortal:document.body,name:Ge(e.transactionId,"creditCard"),placeholder:Ie.review.formLabels.selectCard,defaultValue:{allOptions:bc(r),selectedOption:o.creditCardId},registerOptions:{required:!0,validate:P=>!!P.selectedOption},customStyleConfig:go})})})]})})})})}),t.jsx(ot,{controller:!c,children:t.jsx(l1,{children:t.jsx(ve,{showHoverEffect:!0,forceHoverEffect:!1,style:{padding:"unset",justifyContent:"center",width:"100%"},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:Ie.review.header.memo}),t.jsx(ke,{className:"item-value-container",children:t.jsx(t.Fragment,{children:L===!0?t.jsxs($e,{onClick:P=>{P.stopPropagation(),!v&&l(!1)},"data-testid":ce("account-reconciliation-review-add-memo-button",e.transactionId),style:{display:"inline-flex",alignItems:"center",gap:G[1],color:T.colors.champion,cursor:"pointer"},children:[t.jsx(cn,{}),Ie.review.formLabels.addMemo]}):t.jsx(Bd,{name:Ge(e.transactionId,"memo"),placeholder:Ie.review.formLabels.addMemo,type:"text",style:{padding:0,textAlign:"left",width:"100%",background:"transparent"}})})})]})})})})]})})})},go={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:p.sp4}),singleValue:()=>({margin:0}),menuPortal:()=>({zIndex:9999}),menu:()=>({width:`calc(100% + ${p.sp5})`,marginRight:`-${p.sp3}`,marginLeft:`-${p.sp3}`})},Is=(e,n,a,i,E,S,o,g)=>{const x=i.find(w=>w.accountId===n.categoryId);return{[kt]:{[e.transactionId]:{category:{selectedOption:x?.qboId,allOptions:a},class:{selectedOption:n?.classId,allOptions:E},bankAccount:{selectedOption:n?.bankAccountId,allOptions:yc(S)},creditCard:{selectedOption:n?.creditCardId,allOptions:bc(o)},memo:n?.memo,recommendedActionType:e.recommendedAction.action,matchedTransaction:n?.matchedTransactionId,vendor:{selectedOption:n?.vendor?.id,defaultOptions:Gl(g.entityAutoCompleteView,n?.vendor)},customer:{selectedOption:n?.customer?.id,defaultOptions:Gd(n?.customer,g.entityAutoCompleteView)}}}}},js=(e,n,a,i)=>{const{vendor:E,customer:S}=e[kt][n.transactionId];let o,g;if(E.selectedOption!=null){const x=E.defaultOptions.find(w=>w.value===E.selectedOption);if(x!=null)o={id:E.selectedOption,name:x.label};else{const w=a.entityAutoCompleteView.vendor.find(b=>b.id===E.selectedOption||b.zeniId===E.selectedOption);w!=null&&(o={id:w.zeniId,name:w.name})}}if(S.selectedOption!=null){const x=S.defaultOptions.find(w=>w.value===S.selectedOption);if(x!=null)g={id:S.selectedOption,name:x.label};else{const w=a.entityAutoCompleteView.customer.find(b=>b.id===S.selectedOption||b.zeniId===S.selectedOption);w!=null&&(g={id:w.zeniId,name:w.name})}}return{categoryId:i.find(x=>x.qboId===e[kt][n.transactionId].category.selectedOption)?.accountId??e[kt][n.transactionId].category.selectedOption,classId:e[kt][n.transactionId].class.selectedOption,memo:e[kt][n.transactionId].memo,matchedTransactionId:e[kt][n.transactionId].matchedTransaction,vendor:o,bankAccountId:e[kt][n.transactionId].bankAccount.selectedOption,creditCardId:e[kt][n.transactionId].creditCard.selectedOption,customer:g}},bn=A(Be)`
|
|
1199
|
-
display: flex;
|
|
1200
|
-
align-items: center;
|
|
1201
|
-
column-gap: ${p.sp1};
|
|
1202
|
-
`,vn=A.div`
|
|
1203
|
-
width: ${e=>e.responsiveWidth.valuePercentage(e.windowSize)};
|
|
1204
|
-
display: flex;
|
|
1205
|
-
justify-content: ${e=>e.isLastColumn===!0?"flex-end":"flex-start"};
|
|
1206
|
-
`,e1=A.div`
|
|
1207
|
-
display: flex;
|
|
1208
|
-
flex-direction: column;
|
|
1209
|
-
box-sizing: border-box;
|
|
1210
|
-
position: relative;
|
|
1211
|
-
background: ${e=>e.theme.colors.grey5};
|
|
1212
|
-
border: 1px solid
|
|
1213
|
-
${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.grey3};
|
|
1214
|
-
color: ${e=>e.isExpanded?e.theme.colors.primary:e.theme.colors.hero};
|
|
1215
|
-
${e=>!e.isCompressedMode&&We`
|
|
1216
|
-
&:hover {
|
|
1217
|
-
border: 1px solid ${e.theme.colors.primary};
|
|
1218
|
-
color: ${e.theme.colors.primary};
|
|
1219
|
-
}
|
|
1220
|
-
`}
|
|
1221
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
1222
|
-
border-radius: ${p.sp2};
|
|
1223
|
-
`,t1=A.div`
|
|
1224
|
-
display: flex;
|
|
1225
|
-
flex-direction: row;
|
|
1226
|
-
align-items: center;
|
|
1227
|
-
cursor: pointer;
|
|
1228
|
-
padding: ${p.sp3} ${p.sp4};
|
|
1229
|
-
column-gap: ${p.sp2};
|
|
1230
|
-
|
|
1231
|
-
border-bottom: ${e=>e.isExpanded?"1px solid "+e.theme.colors.primary:"none"};
|
|
1232
|
-
`,n1=A.div`
|
|
1233
|
-
padding: ${p.sp2} ${p.sp4};
|
|
1234
|
-
display: flex;
|
|
1235
|
-
flex-direction: column;
|
|
1236
|
-
row-gap: ${p.sp2};
|
|
1237
|
-
`,o1=A.div`
|
|
1238
|
-
top: ${p.sp0};
|
|
1239
|
-
left: ${p.sp0};
|
|
1240
|
-
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
1241
|
-
box-sizing: border-box;
|
|
1242
|
-
${e=>e.isPanelSelected===!0&&We`
|
|
1243
|
-
.recon-row-card {
|
|
1244
|
-
${Gi(e.theme)}
|
|
1245
|
-
}
|
|
1246
|
-
`}
|
|
1247
|
-
`,i1=A.div`
|
|
1248
|
-
height: calc(100vh - 350px);
|
|
1249
|
-
max-width: 99.9%;
|
|
1250
|
-
padding: ${p.sp0};
|
|
1251
|
-
`,r1=A.div``,a1=A.div`
|
|
1252
|
-
position: relative;
|
|
1253
|
-
width: auto;
|
|
1254
|
-
height: 100%;
|
|
1255
|
-
display: flex;
|
|
1256
|
-
flex-direction: column;
|
|
1257
|
-
row-gap: ${p.sp3};
|
|
1258
|
-
`,s1=A.div`
|
|
1259
|
-
display: flex;
|
|
1260
|
-
flex-direction: row;
|
|
1261
|
-
align-items: center;
|
|
1262
|
-
justify-content: space-between;
|
|
1263
|
-
padding: 12px ${p.sp3};
|
|
1264
|
-
background-color: ${e=>e.theme.colors.background};
|
|
1265
|
-
border-radius: ${p.sp2};
|
|
1266
|
-
`,ai=A.div`
|
|
1267
|
-
display: flex;
|
|
1268
|
-
flex-direction: row;
|
|
1269
|
-
align-items: center;
|
|
1270
|
-
column-gap: ${p.sp3};
|
|
1271
|
-
`,l1=A.div`
|
|
1272
|
-
width: 100%;
|
|
1273
|
-
`,c1=A.div`
|
|
1274
|
-
display: flex;
|
|
1275
|
-
flex-direction: row;
|
|
1276
|
-
align-items: center;
|
|
1277
|
-
column-gap: ${p.sp3};
|
|
1278
|
-
`,d1=A.div`
|
|
1279
|
-
display: flex;
|
|
1280
|
-
flex-direction: row;
|
|
1281
|
-
align-items: center;
|
|
1282
|
-
column-gap: ${p.sp6};
|
|
1283
|
-
`,u1=A.div`
|
|
1284
|
-
display: flex;
|
|
1285
|
-
flex-direction: row;
|
|
1286
|
-
align-items: center;
|
|
1287
|
-
column-gap: ${p.sp1};
|
|
1288
|
-
`,cn=A(Oo)`
|
|
1289
|
-
width: ${p.sp3};
|
|
1290
|
-
height: ${p.sp3};
|
|
1291
|
-
`,Ls=A(Tl)`
|
|
1292
|
-
width: ${p.sp3};
|
|
1293
|
-
height: ${p.sp3};
|
|
1294
|
-
color: ${e=>e.theme.colors.hero};
|
|
1295
|
-
`,p1=A.div`
|
|
1296
|
-
display: flex;
|
|
1297
|
-
flex-direction: column;
|
|
1298
|
-
row-gap: ${p.sp3};
|
|
1299
|
-
padding: ${p.sp0} 12px;
|
|
1300
|
-
`,h1=A(Be)`
|
|
1301
|
-
color: ${e=>e.theme.colors.primary};
|
|
1302
|
-
|
|
1303
|
-
.matched-text {
|
|
1304
|
-
font-weight: ${Ao.bold};
|
|
1305
|
-
}
|
|
1306
|
-
`,g1=A.div`
|
|
1307
|
-
display: flex;
|
|
1308
|
-
align-items: center;
|
|
1309
|
-
column-gap: ${p.sp2};
|
|
1310
|
-
`,m1=A.div`
|
|
1311
|
-
display: flex;
|
|
1312
|
-
flex-direction: column;
|
|
1313
|
-
row-gap: ${p.sp2};
|
|
1314
|
-
`,f1=A.div`
|
|
1315
|
-
display: flex;
|
|
1316
|
-
flex-direction: row;
|
|
1317
|
-
align-items: center;
|
|
1318
|
-
justify-content: space-between;
|
|
1319
|
-
padding-bottom: ${p.sp2};
|
|
1320
|
-
border-bottom: 1px solid ${e=>e.theme.colors.grey3};
|
|
1321
|
-
`,x1=A(Be)`
|
|
1322
|
-
color: ${e=>e.theme.colors.hero};
|
|
1323
|
-
`,C1=A.div`
|
|
1324
|
-
height: 100%;
|
|
1325
|
-
display: flex;
|
|
1326
|
-
justify-content: center;
|
|
1327
|
-
align-items: center;
|
|
1328
|
-
`,y1=A.div`
|
|
1329
|
-
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
1330
|
-
padding: ${p.sp0} ${p.sp1};
|
|
1331
|
-
border-radius: ${p.sp1};
|
|
1332
|
-
`,b1=A(Nt)`
|
|
1333
|
-
color: ${e=>e.theme.colors.hero};
|
|
1334
|
-
`,v1=A.div`
|
|
1335
|
-
display: flex;
|
|
1336
|
-
align-items: center;
|
|
1337
|
-
column-gap: 20px;
|
|
1338
|
-
cursor: pointer;
|
|
1339
|
-
`,w1=A.div`
|
|
1340
|
-
text-align: center;
|
|
1341
|
-
padding: ${p.sp1} ${p.sp0};
|
|
1342
|
-
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
1343
|
-
`,S1=A(Nt)`
|
|
1344
|
-
color: ${e=>e.theme.colors.hero};
|
|
1345
|
-
`,Sc=A(Kn)`
|
|
1346
|
-
width: ${p.sp3};
|
|
1347
|
-
height: ${p.sp3};
|
|
1348
|
-
margin-right: ${p.sp1};
|
|
1349
|
-
path {
|
|
1350
|
-
stroke-width: 2;
|
|
1351
|
-
}
|
|
1352
|
-
`,E1=({reconciliation:e,entitySearchAutoCompleteData:n,selectedAccountId:a,currentFooterFormId:i,entitySearchAutoCompleteActions:E,onUpdateReconcileTabLocalData:S,setCurrentFooterFormId:o,onReconTabColumnSortConfigChanged:g,updateReviewTabLocalData:x,onReconReviewTabColumnSortConfigChanged:w,onSaveReconciliation:b,onSaveReconciliationReview:h,onReconMatchedTransactionClick:r})=>{const{accountReconciliationsByAccountID:C,reconciliationTabsState:{reconcile:{uiState:{sortKey:m,sortOrder:k}}},selectedReconAccount:s}=e,u=C[a],{transactionFetchState:T}=s??{};return T?.fetchState==="In-Progress"||T?.fetchState==="Not-Started"?t.jsxs(Ds,{style:{paddingLeft:G[8],paddingRight:G[8]},children:[t.jsx(k1,{children:Ut.map(v=>t.jsx(on,{width:v.loaderWidth,height:18},v.key))}),t.jsxs($1,{children:[...Array(3).fill(0).map((v,N)=>t.jsx(T1,{children:Ut.map(O=>t.jsx(on,{width:O.loaderWidth,height:G[4]},O.key))},`${N}_${v}`))]})]}):t.jsx(Ds,{children:e.selectedTab==="reconcile"?t.jsx(Im,{selectedAccountId:a,currentFooterFormId:i,setCurrentFooterFormId:o,onUpdateReconcileTabLocalData:S,onReconTabColumnSortConfigChanged:g,onSaveReconciliation:b,sortConfig:{sortKey:m,sortOrder:k},localData:e.reconciliationTabsState.reconcile.localData,matchedTransactions:u?.accountReconEntity.transactionsToReconcile}):t.jsx(Jm,{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:x,entitySearchAutoCompleteActions:E,onColumnSortConfigChanged:w,onSaveReconciliation:b,onSaveReconciliationReview:h,onReconMatchedTransactionClick:r,excludeFetchById:e.actionFetchStates.excludeFetchById,saveFetchById:e.actionFetchStates.saveReconciliationReviewFetch,selectedAccountId:a,sortKey:e.reconciliationTabsState.review.uiState.sortKey,sortOrder:e.reconciliationTabsState.review.uiState.sortOrder})})},Ds=A.div`
|
|
1353
|
-
width: 100%;
|
|
1354
|
-
height: 100%;
|
|
1355
|
-
`,k1=A.div`
|
|
1356
|
-
display: flex;
|
|
1357
|
-
justify-content: space-between;
|
|
1358
|
-
padding: ${p.sp3} ${p.sp4};
|
|
1359
|
-
column-gap: ${p.sp6};
|
|
1360
|
-
`,T1=A.div`
|
|
1361
|
-
display: flex;
|
|
1362
|
-
justify-content: space-between;
|
|
1363
|
-
padding: ${p.sp3} ${p.sp4};
|
|
1364
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1365
|
-
border-radius: ${p.sp2};
|
|
1366
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1367
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
1368
|
-
column-gap: ${p.sp6};
|
|
1369
|
-
`,$1=A.div`
|
|
1370
|
-
display: flex;
|
|
1371
|
-
gap: ${p.sp3};
|
|
1372
|
-
flex-direction: column;
|
|
1373
|
-
`;function Os({section:e,allAccountReconciliations:n,title:a,subTitle:i,isLastNode:E,isTitleRowRequired:S,config:o}){const g={children:[],id:Bt("section",[],a),isLastNode:E,reportElementData:{element:{kind:"section",title:a,data:e,numOfBalances:0},config:o}};if(S){const w={children:[],id:Bt("title_string_only",[],a),isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a,data:e,numOfBalances:0},config:o}};g.children.push(w)}const x=function({title:w,section:b,config:h,numOfBalances:r,nodeId:C}){return{children:[],id:C??Bt("total",[]),isLastNode:!1,reportElementData:{element:{kind:"total",title:w,data:b,numOfBalances:r},config:h}}}({title:i,section:e,config:o,numOfBalances:0});return g.children.push(x),e.accountIDs.forEach((w,b)=>{const h=n[w],r=function({account:C,numOfBalances:m,title:k,isLastNode:s,config:u}){return{children:[],id:Bt("ac_group_report",[],k),isLastNode:s,reportElementData:{element:{kind:"ac_group_report",title:k,data:C,numOfBalances:m},config:u}}}({account:h,numOfBalances:0,title:h.accountReconEntity.account.accountName,isLastNode:b===e.accountIDs.length-1,config:o});g.children.push(r)}),g}function Ec({config:e,accountReconForSection:n,nodeId:a}){return{children:[],id:a??Bt("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:"timeframe_headers",title:"",data:n,numOfBalances:0},config:e}}}const N1=(e,n,a,i,E=!0,S="assets")=>{const o=S==="liabilities"&&e.accountReconciliationBySectionID.liabilities.accountIDs.length>0?e.accountReconciliationBySectionID.liabilities:e.accountReconciliationBySectionID.assets,g=Ec({config:n,accountReconForSection:o}),x=[];x.push(g);const w=Array.isArray(a[i])?a[i]:[],{expenseAutomation:{accountRecon:{reconciliation:b}},common:{loading:h}}=Ae.getLocalizedStrings(),r=C=>C.filter(m=>!w.includes(m));if(e.fetchStatus.fetchState==="Not-Started"||e.fetchStatus.fetchState==="In-Progress")[...Array(3)].forEach((C,m)=>{x.push(function({title:k,config:s,nodeId:u}){return{children:[],id:u??Bt("loading_in_progress",[],k),isLastNode:!1,reportElementData:{element:{kind:"loading_in_progress",title:"",data:[],numOfBalances:0},config:s}}}({title:`${m}+${h}`,config:n}))});else{const C=r(e.accountReconciliationBySectionID.assets.accountIDs),m=Os({section:{...e.accountReconciliationBySectionID.assets,accountIDs:C},allAccountReconciliations:e.accountReconciliationsByAccountID,title:b.headers.section.assets.title,subTitle:b.headers.section.assets.subTitle,isLastNode:!1,isTitleRowRequired:!1,config:n});if(x.push(m),e.accountReconciliationBySectionID.liabilities.accountIDs.length>0){const k=r(e.accountReconciliationBySectionID.liabilities.accountIDs),s=Os({section:{...e.accountReconciliationBySectionID.liabilities,accountIDs:k},allAccountReconciliations:e.accountReconciliationsByAccountID,title:b.headers.section.liabilities.title,subTitle:b.headers.section.liabilities.subTitle,isLastNode:!1,isTitleRowRequired:!0,config:n});x.push(s)}}return{config:n,headerNodes:E?[g]:[],contentNodes:x}},Mi={wrapperPadding:new me(G[2],G[2],G[2],G[8]),contentPaddingLeft:new me(G[2],G[2],G[2],G[2]),contentPaddingRight:new me(G[2],G[2],G[2],G[2])},_1=A.div`
|
|
1374
|
-
display: flex;
|
|
1375
|
-
height: 100%;
|
|
1376
|
-
width: 100%;
|
|
1377
|
-
justify-content: center;
|
|
1378
|
-
align-items: center;
|
|
1379
|
-
`,A1=A.div`
|
|
1380
|
-
display: flex;
|
|
1381
|
-
height: 100%;
|
|
1382
|
-
min-height: 100%;
|
|
1383
|
-
flex: 1 1 auto;
|
|
1384
|
-
width: 100%;
|
|
1385
|
-
justify-content: center;
|
|
1386
|
-
padding-left: ${e=>Mi.wrapperPadding.valuePx(e.windowSize)};
|
|
1387
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1388
|
-
`,R1=A.div`
|
|
1389
|
-
width: 100%;
|
|
1390
|
-
height: 100%;
|
|
1391
|
-
`,{common:I1}=Ae.getLocalizedStrings();function j1({reconciliation:e,companyId:n,onReload:a,onReviewClicked:i,setOpenDrawerClicked:E,onFetchLinkTokenClick:S,onEstablishConnectionClick:o,onAddStatementClick:g}){const[x,w]=y.useState(void 0),[b,h]=y.useState(void 0),r=e.plaidConnectionDetails.link_account_no_microdeposit,C=e.plaidConnectionDetails.update_account,m=b==="update_account"?C:r,[k,s]=y.useState(m.linkToken??null),[u,T]=y.useState(!1),{useDynamicConfig:v}=Ll(),{configValue:N}=v(Dl.accountReconGLAccountsConfig),O=y.useCallback(U=>{w(U),h("link_account_no_microdeposit")},[]),M=y.useCallback(U=>{const V=F.current.accountReconciliationsByAccountID[U]?.paymentAccountId;w(U),h("update_account"),S("update_account",V)},[]),D=y.useCallback(U=>{E(U)},[]),R=y.useRef(x),j=y.useRef(b),F=y.useRef(e);y.useEffect(()=>{R.current=x},[x]),y.useEffect(()=>{j.current=b},[b]),y.useEffect(()=>{F.current=e},[e]);const Y=y.useCallback(U=>{o(U,R.current??"",j.current),w(void 0),h(void 0),T(!1)},[o]),ee=y.useCallback((U,V)=>{U!=null&&console.log("Plaid Connection Error",U,V),w(void 0),h(void 0),T(!1)},[]),{open:te,ready:X}=du({token:k,onSuccess:Y,onExit:ee});y.useEffect(()=>{(Hn(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&m.fetchStatus.fetchState==="Not-Started"&&S("link_account_no_microdeposit")},[m.fetchStatus.fetchState]),y.useEffect(()=>{!u&&b!=null&&m.linkToken===k&&m.fetchStatus.fetchState==="Completed"&&X&&T(!0)},[X,k,m.fetchStatus.fetchState,m.linkToken,b,u]),y.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==k&&s(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,k]),y.useEffect(()=>{u&&te()},[u,te]);const[H,L]=y.useState(void 0),[l,c]=y.useState(void 0),[$,f]=y.useState("assets"),d=Hn("2025-03-31"),_=Me(),I=vt();Un({componentName:"expense_automation.account_reconciliation_list",enabled:e.fetchStatus.fetchState==="Completed"});const B=!0,Z=Array.isArray(N?.[n])?N[n]:[],q=e.accountReconciliationBySectionID.assets.accountIDs.filter(U=>!Z.includes(U)).length,z=function(U,V){return V?Go("section")+Go("total")+U*Go("ac_group_report"):1/0}(q,e.accountReconciliationBySectionID.liabilities.accountIDs.length>0),W=y.useCallback(U=>{const V=U.scrollTop>=z?"liabilities":"assets";V!==$&&f(V)},[z,$]);return y.useEffect(()=>{const U={reportId:"account_reconciliation",mode:"none",displayOrder:"ascending_date",reportFormat:"more_detailed",bookCloseDate:d,firstMonthOfFY:1,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,dataAvailable:void 0,accountReconciliationConfig:{selectedDrawerAccountId:e.selectedDrawerAccountId,onReviewClicked:i,onConnectClicked:O,onReconnectClicked:M,onOpenDrawerClicked:D,onStatementAddClicked:g}};if(H!=null&&Bi(l,e)){const V=function(ne,ae,oe,P=!1,K="assets"){Object.assign(ne.config,oe);const J=Ec({config:oe,accountReconForSection:K==="liabilities"&&ae.accountReconciliationBySectionID.liabilities.accountIDs.length>0?ae.accountReconciliationBySectionID.liabilities:ae.accountReconciliationBySectionID.assets});return{config:oe,headerNodes:P?[J]:[],contentNodes:[J,...ne.contentNodes.slice(1)]}}(H,e,U,B,$);L(V)}else{const V=N1(e,U,N,n,B,$);c(e),L(V)}},[e,$]),e.fetchStatus.fetchState==="Error"?t.jsx(_1,{children:t.jsx(Vh,{onReload:a,message:I1.errorMessage.somethingWentWrong})}):t.jsx(A1,{windowSize:_,children:H!=null?t.jsx(R1,{windowSize:_,children:t.jsx(rc,{backgroundColor:new Fn(I.colors.grey4),rootNodes:H,type:"name+balances_actual",compareMode:"compare_mode_percent",isSticky:{isStickyHeader:B,isStickyName:B},treeNodePadding:{left:Mi.contentPaddingLeft.value(_),right:Mi.contentPaddingRight.value(_)},nodeOpenStatus:{},scrollPosition:e.reconListUIState.scrollPosition,onCompareModeChanged:()=>{},onScroll:W})}):null})}function L1({currentFooterFormId:e,vendorSearchAutoCompleteData:n,vendorSearchAutoCompleteActions:a,reconciliation:i,companyId:E,onReconTabColumnSortConfigChanged:S,updateReconReviewTabLocalData:o,onUpdateReconcileTabLocalData:g,setCurrentFooterFormId:x,onReloadReconciliationListPage:w,onReviewClicked:b,onFetchLinkTokenClick:h,onEstablishConnectionClick:r,onAddStatementClick:C,onReconReviewTabColumnSortConfigChanged:m,onSaveReconciliation:k,onSaveReconciliationReview:s,setOpenDrawerClicked:u,onReconMatchedTransactionClick:T}){return i.selectedAccountId==null?t.jsx(j1,{companyId:E,reconciliation:i,onReload:w,onReviewClicked:b,onFetchLinkTokenClick:h,onEstablishConnectionClick:r,setOpenDrawerClicked:u,onAddStatementClick:C}):t.jsx(E1,{currentFooterFormId:e,setCurrentFooterFormId:x,onUpdateReconcileTabLocalData:g,onReconTabColumnSortConfigChanged:S,reconciliation:i,updateReviewTabLocalData:o,entitySearchAutoCompleteActions:a,onReconReviewTabColumnSortConfigChanged:m,entitySearchAutoCompleteData:n,selectedAccountId:i.selectedAccountId,onSaveReconciliation:k,onSaveReconciliationReview:s,onReconMatchedTransactionClick:T})}function D1({vendorView:e,numOfBalances:n,title:a,isLastNode:i,config:E,parentNodeIDs:S}){const o=Bt("flux_vendor_row",S,e.vendor.id),g={children:[],id:o,isLastNode:i,reportElementData:{element:{kind:"flux_vendor_row",title:a,data:e,numOfBalances:n},config:E}},x=e.vendorAccountsAndClasses;return g.children=x.map((w,b)=>function({accountAndClassReport:h,numOfBalances:r,title:C,isLastNode:m,isFirstNode:k,config:s,parentNodeIDs:u,ancestorMetadata:T}){let v="";return h.accountBase&&h.classBase?v=`${h.accountBase.accountId}_${h.classBase.classId}`:h.accountBase?v=h.accountBase.accountId:h.classBase&&(v=h.classBase.classId),{children:[],id:Bt("flux_vendor_account_class_row",u,v),isLastNode:m,isFirstNode:k,reportElementData:{element:{kind:"flux_vendor_account_class_row",title:C,data:h,metadata:T,numOfBalances:r},config:s}}}({accountAndClassReport:w,numOfBalances:n,title:w.accountBase?.accountName??"",config:E,isLastNode:b===x.length-1,isFirstNode:b===0,parentNodeIDs:[...S,o],ancestorMetadata:{accountAndClassRowMetadata:{depth:0,hasSibling:x.length>1,hasChildren:!1,isLastNode:b===x.length-1,isFirstNode:b===0,name:w.accountBase?.accountName},isVendorLastChild:i,vendorId:e.vendor.id}})),g}const{common:mo,expenseAutomation:{fluxAnalysis:O1}}=Ae.getLocalizedStrings(),M1=(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,E=e.sections.generalExpense.balancesByMonth?Tn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Tn(e.sections.reimbursement.balancesByMonth):[],S=ac({balances:E,config:n}),o=[],g=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken==null,x=e.sections.generalExpense.fetchStatus.fetchState==="In-Progress"&&e.uiState.paginationInfoByGroup.generalExpense.pageToken!=null||e.sections.reimbursement.fetchStatus.fetchState==="In-Progress";if(g===!0)o.push(function({title:w,balances:b,config:h,nodeId:r}){return{children:[],id:r??Bt("headers_loading_in_progress",[],w),isLastNode:!1,reportElementData:{element:{kind:"headers_loading_in_progress",title:"",data:b,numOfBalances:b.length},config:h}}}({title:`${mo.loading}`,balances:E,config:n})),[...Array(10)].forEach((w,b)=>{o.push(hr({title:`${b}+${mo.loading}`,balances:E,config:n}))});else{if(o.push(S),["generalExpense","reimbursement"].forEach(w=>{const b=e.sections[w];if(b.vendors.length>0||b.fetchStatus.fetchState==="Completed"){const h=Tn(b.balancesByMonth);o.push(function({section:r,numOfBalances:C,title:m,isLastNode:k,config:s}){const u=r.sectionId,T={children:[],id:u,isLastNode:k,reportElementData:{element:{kind:"section",title:m,data:r,numOfBalances:C,sectionType:r.sectionId},config:s}},v=(r.vendors??[]).map((N,O)=>D1({vendorView:N,numOfBalances:C,title:N.vendor.name,isLastNode:O===r.vendors.length-1,config:s,parentNodeIDs:[u]}));return T.children.push(...v),T}({section:{sectionId:w,reportId:"flux_analysis_operating_expense",balances:h,vendors:b.vendors,varianceAmount:b.varianceAmount,variancePercentage:b.variancePercentage,currency:e.currency},numOfBalances:i,title:P1(w),isLastNode:!1,config:n}))}}),e.totalBalancesAndVariance){const w=e.totalBalancesAndVariance.balancesByMonth?Tn(e.totalBalancesAndVariance.balancesByMonth):[],b=function({title:h,data:r,isLastNode:C,config:m,numOfBalances:k}){return{children:[],id:Bt("total",[],h),isLastNode:C,reportElementData:{element:{kind:"total",title:h,data:r,numOfBalances:k},config:m}}}({title:mo.texts.total,data:{balances:w,varianceAmount:e.totalBalancesAndVariance.varianceAmount,variancePercentage:e.totalBalancesAndVariance.variancePercentage,currency:e.currency},config:n,isLastNode:!0,numOfBalances:i});o.push(b)}x===!0&&[...Array(1)].forEach((w,b)=>{o.push(hr({title:`${b}+${mo.loading}`,balances:E,config:n}))})}return{config:n,headerNodes:a&&!g?[S]:[],contentNodes:o}},P1=e=>O1.sectionTitle[e],F1=e=>e.sections.generalExpense.balancesByMonth?Tn(e.sections.generalExpense.balancesByMonth):e.sections.reimbursement.balancesByMonth?Tn(e.sections.reimbursement.balancesByMonth):[],Pi={contentPaddingLeft:new me(G[0],G[0],G[0]),contentPaddingRight:new me(G[3],G[3],G[8]),wrapperPadding:new me(G[3],G[3],G[8])},B1=A.div`
|
|
1392
|
-
display: flex;
|
|
1393
|
-
position: sticky;
|
|
1394
|
-
width: 100%;
|
|
1395
|
-
justify-content: center;
|
|
1396
|
-
padding-top: ${e=>Pi.wrapperPadding.valuePx(e.windowSize)};
|
|
1397
|
-
padding-left: 20px;
|
|
1398
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1399
|
-
`,z1=A.div`
|
|
1400
|
-
width: 100%;
|
|
1401
|
-
height: calc(100vh - ${p.sp11});
|
|
1402
|
-
`,H1=e=>{const{fluxView:n,handleRedirectToVendorDetailPage:a,updateOperatingExpensesIdsForReview:i,updateSectionIdsForReview:E,onSortOrderChanged:S,updateNodeCollapsableStatus:o,fetchReimbursementView:g,fetchGeneralExpenseView:x}=e,w=Me(),b=vt(),[h,r]=y.useState(null),[C,m]=y.useState(null),[k,s]=y.useState(null),u=ur([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,[T,v]=y.useState(!1),N=rr(u),O=rr(n.refreshStatus.fetchState),M=y.useRef(!1),[D,R]=y.useState(!1),j=y.useRef(X=>{X&&!M.current&&(M.current=!0,R(!0))});Un({componentName:"expense_automation.flux_analysis",enabled:D});const F=y.useCallback(X=>{const H=!(n.uiState.collapsableStatus[X]??1);o({...n.uiState.collapsableStatus,[X]:H})},[n.uiState.collapsableStatus,o]),Y=y.useCallback((X,H)=>{let L=n.reviewOperatingExpensesIds;const l=[];let c=n.selectedSectionIds;const $=n.sections[X].vendors;l.push(...$.map(d=>d.fluxAnalysisEntityId));let f=ic-L.length;H?(l.forEach(d=>{!L.includes(d)&&f>0&&(L=[...L,d],f--)}),c=[...c,X]):(L=L.filter(d=>!l.includes(d)),c=c.filter(d=>d!==X)),i(L),E(c)},[n.reviewOperatingExpensesIds,n.selectedSectionIds,n.sections,i,E]),ee=y.useCallback(X=>{const H=n.uiState.collapsableStatus[X]===!1;X==="generalExpense"&&!H&&n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&g(n.uiState.paginationInfoByGroup.reimbursement.pageToken),F(X)},[n.uiState.collapsableStatus,n.sections.reimbursement.fetchStatus.fetchState,n.uiState.paginationInfoByGroup.reimbursement.pageToken,g,F]),te=n.sections.generalExpense.vendors.length+n.sections.reimbursement.vendors.length;return y.useEffect(()=>{const X={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:v,onSectionRowClick:ee,updateNodeCollapsableStatus:F,updateOperatingExpensesIdsForReview:i,handleRedirectToVendorDetailPage:a,onSectionCheckboxClick:Y,onSortOrderChanged:S}};if(h!=null&&Bi(C,n)){const H=function(L,l,c,$=!0){Object.assign(L.config,l);const f=F1(c),d=ac({balances:f,config:l});return{config:l,headerNodes:$?[d]:[],contentNodes:[d,...L.contentNodes.slice(1)]}}(h,X,n,!0);r(H)}else{const H=M1(n,X,!0);m(n),r(H)}},[n,C,a,Y,ee,S,F,i]),t.jsx(B1,{windowSize:w,children:t.jsx(z1,{children:h?t.jsx(W1,{ref:j.current,children:t.jsx(rc,{backgroundColor:new Fn(b.colors.grey4),rootNodes:h,type:"name+balances_actual",isSticky:{isStickyHeader:!0,isStickyName:!0},treeNodePadding:{left:Pi.contentPaddingLeft.value(w),right:Pi.contentPaddingRight.value(w)},nodeOpenStatus:Object.keys(n.uiState.collapsableStatus).reduce((X,H)=>(X[H]=n.uiState.collapsableStatus[H],X),{}),compareMode:"compare_mode_amount",infiniteLoadingProps:{isItemLoaded:X=>X<te,itemCount:te,loadMoreItems:()=>{n.uiState.collapsableStatus.generalExpense?n.uiState.paginationInfoByGroup.generalExpense.hasMore===!0&&n.sections.generalExpense.fetchStatus.fetchState==="Completed"?x(n.uiState.paginationInfoByGroup.generalExpense.pageToken):n.sections.reimbursement.fetchStatus.fetchState==="Not-Started"&&g(n.uiState.paginationInfoByGroup.reimbursement.pageToken):n.uiState.collapsableStatus.reimbursement&&n.uiState.paginationInfoByGroup.reimbursement.hasMore===!0&&n.sections.reimbursement.fetchStatus.fetchState==="Completed"&&g(n.uiState.paginationInfoByGroup.reimbursement.pageToken)}},variableNodeHeightTree:{prevFetchState:N??"Not-Started",fetchState:n.fetchStatus.fetchState,isSortApplied:T,setIsSortApplied:v,reducedFetchState:ur([n.sections.generalExpense.fetchStatus,n.sections.reimbursement.fetchStatus]).fetchState,prevRefreshFetchState:O??"Not-Started",refreshFetchState:n.refreshStatus.fetchState},hoveredParentIdProps:{hoveredParentId:k,setHoveredParentId:s}})}):null})})},W1=A.div`
|
|
1403
|
-
height: 100%;
|
|
1404
|
-
width: 100%;
|
|
1405
|
-
`,{reports:{common:V1}}=Ae.getLocalizedStrings(),U1=({selectedPeriod:e,fluxAnalysis:n,onFetchFluxViewList:a,markAsReview:i,onReloadPage:E,setCurrentFooterFormId:S,updateOperatingExpensesIdsForReview:o,updateSectionIdsForReview:g,onUpdateFluxAnalysisUIState:x,redirectToVendorDetailPage:w,fetchFluxViewOnScroll:b,onFetchReimbursementView:h})=>{const{fetchStatus:r,reviewOperatingExpensesIds:C,uiState:m}=n,k=y.useRef(null),s=y.useRef(!1),u=xn({mode:"all",reValidateMode:"onChange",resetOptions:{keepDefaultValues:!0},defaultValues:G1(C)}),T=Me();y.useEffect(()=>()=>{S("expenseAutomationPage")},[S]),y.useEffect(()=>{s.current&&k?.current?.scrollLeft!=null&&m.scrollPosition?.scrollLeft!==k.current.scrollLeft&&m.scrollPosition!=null&&x({scrollPosition:{scrollTop:m.scrollPosition?.scrollTop,scrollLeft:k.current.scrollLeft}})},[m.scrollPosition?.scrollLeft,k.current?.scrollLeft,m.scrollPosition,x]),y.useEffect(()=>{S(C.length>0?"expenseAutomationFluxPage":"expenseAutomationPage")},[C,S]);const v=D=>{w(D)},N=D=>{b(e,D)},O=(D,R)=>{x({sortOrder:D,sortKey:R}),a(),h(e,null,!1)},M=()=>{const D=kc(n.sections,C);i(C,D===!0?"review":"unreview",e,!0)};if(r.fetchState==="Error")return t.jsxs(Y1,{children:[t.jsx(q1,{onClick:E,children:t.jsx(Ro,{})}),t.jsx(J1,{children:V1.failed})]});{const D=j=>{x({collapsableStatus:j})},R=j=>{h(e,j,!0)};return t.jsx(Cn,{...u,children:t.jsx("form",{id:fd("expenseAutomationFluxPage"),onSubmit:u.handleSubmit(M),style:{height:"100%",width:"100%"},children:t.jsx(K1,{windowSize:T,children:t.jsx(H1,{fluxView:n,handleRedirectToVendorDetailPage:v,onSortOrderChanged:O,updateOperatingExpensesIdsForReview:o,updateNodeCollapsableStatus:D,fetchReimbursementView:R,updateSectionIdsForReview:g,fetchGeneralExpenseView:N,reportId:"flux_analysis_operating_expense"})})})})}},kc=(e,n)=>{const a=[...e.generalExpense.vendors,...e.reimbursement.vendors].filter(E=>E.status==="Pending Review");let i;return a.forEach(E=>{n.includes(E.fluxAnalysisEntityId)&&(i=!0)}),i},G1=e=>({fluxAnalysisRowIds:e}),K1=A.div`
|
|
1406
|
-
display: flex;
|
|
1407
|
-
flex: 1 1 auto;
|
|
1408
|
-
min-height: 100%;
|
|
1409
|
-
flex-direction: column;
|
|
1410
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1411
|
-
padding: ${p.sp0};
|
|
1412
|
-
gap: 2px;
|
|
1413
|
-
height: 100%;
|
|
1414
|
-
.flux-vendor-name-sticky,
|
|
1415
|
-
.flux-vendor-header-sticky,
|
|
1416
|
-
.flux-section-name-container,
|
|
1417
|
-
.flux-class-and-account-value-container,
|
|
1418
|
-
.flux-vendor-name-container,
|
|
1419
|
-
.flux-total-row {
|
|
1420
|
-
border-right: 1px solid transparent;
|
|
1421
|
-
}
|
|
1422
|
-
&:hover {
|
|
1423
|
-
.flux-vendor-name-sticky,
|
|
1424
|
-
.flux-vendor-header-sticky,
|
|
1425
|
-
.flux-section-name-container,
|
|
1426
|
-
.flux-class-and-account-value-container,
|
|
1427
|
-
.flux-vendor-name-container,
|
|
1428
|
-
.flux-total-row {
|
|
1429
|
-
border-right: ${e=>` 1px solid ${e.theme.colors.grey3}`};
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
`,Y1=A.div`
|
|
1433
|
-
display: flex;
|
|
1434
|
-
width: 100%;
|
|
1435
|
-
height: 100vh;
|
|
1436
|
-
flex-direction: column;
|
|
1437
|
-
justify-content: center;
|
|
1438
|
-
align-items: center;
|
|
1439
|
-
`,q1=A.div`
|
|
1440
|
-
height: 96px;
|
|
1441
|
-
width: 96px;
|
|
1442
|
-
background: ${e=>e.theme.colors.background};
|
|
1443
|
-
border-radius: 50%;
|
|
1444
|
-
cursor: pointer;
|
|
1445
|
-
& svg {
|
|
1446
|
-
margin: ${p.sp5};
|
|
1447
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1448
|
-
}
|
|
1449
|
-
&:hover {
|
|
1450
|
-
& svg {
|
|
1451
|
-
color: ${e=>e.theme.colors.primary};
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
`,J1=A(wt)`
|
|
1455
|
-
margin-top: ${p.sp3};
|
|
1456
|
-
color: ${e=>e.theme.colors.hero};
|
|
1457
|
-
`,Tc="vendorsAccountSection",Z1=e=>`${e}_form`;function X1({accountSettings:e,currentFooterFormId:n,onSaveJeAccountSettingsClick:a,setIsJeAccountSettingsOpened:i,onJeAccountSettingsChange:E,setResetJeAccountSettingsForm:S,setCurrentFooterFormId:o}){const g=e.prepaidExpensesRecommendations,x=e.fixedAssetsRecommendations,w=e.accruedExpensesRecommendations,b=y.useMemo(()=>nn(e.prepaidExpensesAccountHierarchy,g,"Accounts"),[e.prepaidExpensesAccountHierarchy,g]),h=y.useMemo(()=>nn(e.fixedAssetsAccountHierarchy,x,"Accounts"),[e.fixedAssetsAccountHierarchy,x]),r=y.useMemo(()=>nn(e.accruedExpensesAccountHierarchy,w,"Accounts"),[e.accruedExpensesAccountHierarchy,w]),C=y.useMemo(()=>ef(e,b,h,r),[e,b,h,r]),m=xn({mode:"all",reValidateMode:"onBlur",defaultValues:C,values:C,resetOptions:{keepDefaultValues:!0}}),k=m.handleSubmit(s=>{a(s)});return y.useEffect(()=>{const s=m.watch(u=>{u!=null&&Gn(()=>(async T=>{E(T)})(u))});return()=>{s.unsubscribe()}}),y.useEffect(()=>(S(()=>m.reset),i(!0),()=>{o("expenseAutomationPage"),i(!1)}),[]),y.useEffect(()=>{const{selectedPrepaidExpensesAccountIds:s,previousPrepaidExpensesAccount:u,selectedFixedAssetsAccountIds:T,previousFixedAssetsAccount:v,selectedAccruedExpensesAccountIds:N,previousAccruedExpensesAccount:O}=e.accountSettingsLocalData,M=Ho(s,u)||Ho(T,v)||Ho(N,O);M===!0&&n!="expenseAutomationJEAccountSettingsPage"?o("expenseAutomationJEAccountSettingsPage"):M===!1&&n!=="expenseAutomationPage"&&o("expenseAutomationPage")},[e,n,o]),t.jsx(Q1,{children:t.jsx(Cn,{...m,children:t.jsx("form",{id:Z1("expenseAutomationJEAccountSettingsPage"),onSubmit:k,children:t.jsx(Cu,{showTitle:!1,sectionId:Tc,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 Q1=A.div`
|
|
1458
|
-
padding-top: ${p.sp3};
|
|
1459
|
-
display: flex;
|
|
1460
|
-
align-items: center;
|
|
1461
|
-
min-height: 100%;
|
|
1462
|
-
flex-direction: column;
|
|
1463
|
-
width: 100%;
|
|
1464
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1465
|
-
`,ef=(e,n,a,i)=>{const E=e.prepaidExpensesAccountList.filter(b=>e.accountSettingsLocalData.selectedPrepaidExpensesAccountIds.includes(b.accountId)),S=e.fixedAssetsAccountList.filter(b=>e.accountSettingsLocalData.selectedFixedAssetsAccountIds.includes(b.accountId)),o=e.accruedExpensesAccountList.filter(b=>e.accountSettingsLocalData.selectedAccruedExpensesAccountIds.includes(b.accountId)),g=E.map(b=>b.qboId).filter(b=>b!=null),x=S.map(b=>b.qboId).filter(b=>b!=null),w=o.map(b=>b.qboId).filter(b=>b!=null);return{[Tc]:{prepaidExpensesAccount:{selectedOptions:g,allOptions:n},fixedAssetsAccount:{selectedOptions:x,allOptions:a},accruedExpensesAccount:{selectedOptions:w,allOptions:i}}}},{expenseAutomation:{jeSchedules:Xt},common:{currency:fo,review:tf,ignore:nf,strings:{hyphen:Wt},texts:xo},dateFormat:of,timeframe:{month:Ms}}=Ae.getLocalizedStrings(),rf=({draft:e,ignoreStatus:n,ignoreRecommendedJeSchedule:a,jeScheduleClickHandler:i,onReviewClickHandler:E})=>t.jsxs(er,{onClick:S=>{e.jeScheduleType!=null&&e.jeScheduleId!=null&&i(S,e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":ce("je-schedule-draft-component",e.jeScheduleId),children:[t.jsxs(Qi,{children:[t.jsxs(nr,{children:[t.jsxs(Zi,{children:[t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{children:xo.vendor}),t.jsxs(ke,{style:{gap:G[2]},children:[e.vendor.logo!=null?t.jsx(Bl,{photoUrl:e.vendor.logo.href,styles:{width:G[4],height:G[4]}}):t.jsx(Bn,{name:e.vendor.name}),t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:e.vendor.name!=null?t.jsx(lt,{children:e.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:e.vendor.name??Wt})})]})]}),t.jsxs(ve,{children:[t.jsx(Se,{children:Xt.scheduleHeaders.scheduleCategory}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:e.baseTransaction.account.accountName!=null?t.jsx(lt,{children:e.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:e.baseTransaction.account.accountName??Wt})})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:Xt.scheduleHeaders.startMonth}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:e.startDate?.format(of.visual.MMMCommaYYYYFormat)??Wt})})]}),t.jsxs(ve,{style:{width:Pt,paddingLeft:G[3]},children:[t.jsx(Se,{children:Xt.scheduleHeaders.period}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:e.period!=null?`${e.period} ${e.period===1?Ms.slice(0,-1):Ms}`:Wt})})]}),t.jsxs(ve,{style:{alignItems:"flex-end",width:fn},children:[t.jsx(Se,{children:xo.totalAmount}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(lt,{children:ct("0,0.[00]",un(e.baseTransaction.amount.amount,fo.currencyCode,fo.currencySymbol))??Wt}),children:t.jsx($e,{className:"highlight",children:ct("0,0.[00]",un(e.baseTransaction.amount.amount,fo.currencyCode,fo.currencySymbol))??Wt})})})]})]}),t.jsxs(Xi,{children:[t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{children:xo.category}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.account?.accountName!=null?t.jsx(lt,{children:e.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:e.jeDebit.account?.accountName??Wt})})})]}),t.jsxs(ve,{children:[t.jsx(Se,{children:xo.classText}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:e.jeDebit.accountingClass?.className!=null?t.jsx(lt,{children:e.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:e.jeDebit.accountingClass?.className??Wt})})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:Xt.scheduleHeaders.type}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",style:{width:"unset"},children:t.jsx(xc,{children:Xt.scheduleTypes[e.jeScheduleType??"prepaid_expenses"]})})})]}),e.jeScheduleType==="fixed_assets"?t.jsxs(ve,{style:{width:Pt,paddingLeft:G[3]},children:[t.jsx(Se,{children:Xt.scheduleHeaders.accumulatedCategory}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",title:e.jeCredit.account?.accountName!=null?t.jsx(lt,{children:e.jeCredit.account?.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:e.jeCredit.account?.accountName??Wt})})})]}):null,e.jeScheduleType!=="fixed_assets"?t.jsx(ve,{style:{width:Pt}}):null,t.jsx(ve,{style:{width:fn}})]})]}),t.jsxs(tr,{children:[t.jsx(zn,{onClick:()=>{e.jeScheduleId!=null&&e.jeScheduleType!=null&&E(e.jeScheduleId,e.jeScheduleTransactionKey,e.jeScheduleType)},"data-testid":ce("je-schedule-draft-component-review-button",e.jeScheduleId),label:tf,variant:"primary",size:"small",className:"item-value-container",style:{minWidth:69}}),t.jsx(zn,{"data-testid":ce("je-schedule-draft-component-ignore-button",e.jeScheduleId),className:"item-value-container",label:nf,size:"small",reverseSpinnerColor:!1,loading:n?.fetchState==="In-Progress",onClick:()=>{e.jeScheduleType!=null&&a(e.jeScheduleTransactionKey,e.jeScheduleType)},style:{minWidth:69}})]})]}),t.jsxs(Fm,{children:[t.jsx(af,{}),t.jsx(sf,{children:Xt.aiAccountant}),t.jsx(lf,{children:Xt.zeniGPTText})]})]}),af=A(Kn)`
|
|
1466
|
-
height: ${p.sp3};
|
|
1467
|
-
width: ${p.sp3};
|
|
1468
|
-
margin-right: ${p.sp1};
|
|
1469
|
-
path {
|
|
1470
|
-
stroke-width: 2;
|
|
1471
|
-
}
|
|
1472
|
-
`,sf=A(Ol)`
|
|
1473
|
-
color: ${e=>e.theme.colors.brandColorSapphire};
|
|
1474
|
-
`,lf=A(Be)`
|
|
1475
|
-
color: ${e=>e.theme.colors.primary};
|
|
1476
|
-
`,{jeSchedules:{scheduleDetails:{scheduleTransactionsHeader:{addVendor:Ps}}},expenseAutomation:{jeSchedules:tt},common:{currency:Dt,retry:cf,strings:{hyphen:at,empty:Fs},texts:wn},dateFormat:Bs}=Ae.getLocalizedStrings(),{common:df,timeframe:{month:zs}}=Ae.getLocalizedStrings(),Ct="jeSchedulePage",Hs=e=>`${e}_form`,or=(e,n)=>`${e}.${n}`,Ws=or(Ct,"vendor"),Vs=or(Ct,"scheduleExpenseCategory"),Us=or(Ct,"accumulatedDepreciationCategory"),uf=({allAccountGroupedOptions:e,allAccountList:n,allClassGroupedOptions:a,allClassList:i,allDepAccountGroupedOptions:E,allDepAccountList:S,draft:o,localData:g,postStatus:x,uncategorizedAccounts:w,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:h,jeScheduleClickHandler:r,onFormDataChange:C,onPostJESchedule:m})=>{const{updatedAccumulatedDepreciationCategoryID:k,updatedCategoryId:s,updatedVendor:u}=g,T={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"},v=y.useRef(),N=xn({mode:"all",reValidateMode:"onChange",defaultValues:Gs(g,e,a,E,n,i,S,h.entityAutoCompleteView),values:Gs(g,e,a,E,n,i,S,h.entityAutoCompleteView)}),O={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:p.sp4}),menu:()=>({width:300})},M={valueContainer:()=>({justifyContent:"flex-start",paddingLeft:0}),control:()=>({height:p.sp4}),menu:()=>({width:350})},D=(o?.scheduledJournalEntry.error??[]).every(I=>{const B=T[I];return!(g!=null&&B&&(B==="updatedAccumulatedDepreciationCategoryID"&&g.updatedAccumulatedDepreciationCategoryID==null||B==="updatedCategoryId"&&g.updatedCategoryId==null||B==="updatedVendor"&&(g.updatedVendor?.id==null||g.updatedVendor?.id===""||g.updatedVendor?.name==null||g.updatedVendor?.name==="")))});y.useEffect(()=>{const I=N.watch((B,{name:Z})=>{Z!=null&&B!=null&&Gn(()=>(async(q,z)=>{if(q!=null){const W=z[Ct],{scheduledJournalEntryID:U,vendor:V}=W;if(q.includes("vendor")){const ne=V?.defaultOptions.map(ae=>ae.value);if(V?.selectedOption!=null&&ne?.includes(V.selectedOption)!==!0){const ae=h.entityAutoCompleteView.vendor.find(oe=>oe.id===V.selectedOption);ae!=null&&N.setValue(`${Ct}.vendor.defaultOptions`,[{label:ae.name??df.strings.empty,value:ae.id}])}else V?.selectedOption==null&&V?.defaultOptions.length!==0&&N.setValue(`${Ct}.vendor`,{selectedOption:void 0,defaultOptions:[]})}C(U,{...W,vendor:V})}})(Z,B))});return()=>{I.unsubscribe()}}),y.useEffect(()=>{h.entityAutoCompleteView.fetchState==="Completed"&&v.current?.(zl(h.entityAutoCompleteView))},[h.entityAutoCompleteView.fetchState]);const R=N.handleSubmit(()=>{m(o.scheduledJournalEntry.scheduledJournalEntryID,o.jeScheduleTransactionKey)}),j=I=>[w.expense?.qboId,w.income?.qboId].includes(I),F=N.watch("jeSchedulePage.vendor"),Y=o.scheduledJournalEntry.error?.includes("vendor_deleted")===!0,ee=o.scheduledJournalEntry.error?.includes("debit_category_deleted")===!0,te=o.scheduledJournalEntry.error?.includes("credit_category_deleted")===!0,X=o.vendor.name.split("(deleted)")[0]?.toString(),H=o.jeDebit.account?.accountName.split("(deleted)")?.[0]?.toString()??Fs,L=o.jeCredit.account?.accountName.split("(deleted)")[0]?.toString()??Fs,[l,c]=y.useState(ee===!0&&s==null),[$,f]=y.useState(te===!0&&k==null),[d,_]=y.useState(Y&&(u?.id==null||u?.id==""));return y.useEffect(()=>{l===!1&&g.updatedCategoryId==null&&N.setFocus(Vs),$===!1&&g.updatedAccumulatedDepreciationCategoryID==null&&N.setFocus(Us),d===!1&&g.updatedVendor?.id==null&&N.setFocus(Ws)},[l,$,d,g,N]),t.jsx(Cn,{...N,children:t.jsx("form",{style:{width:"100%"},id:Hs(`${Ct}_${o.jeScheduleId}`),onSubmit:R,children:t.jsx(er,{showBorder:D,onClick:I=>{o.jeScheduleType!=null&&o.jeScheduleId!=null&&r(I,o.jeScheduleId,o.jeScheduleTransactionKey,o.jeScheduleType)},"data-testid":ce("je-schedule-resolve-component-schedule",`${Ct}_${o.jeScheduleId}`),children:t.jsxs(Qi,{children:[t.jsxs(nr,{children:[t.jsxs(Zi,{children:[Y===!0?t.jsx(ve,{style:{width:Gt,padding:G[0],justifyContent:"center"},showHoverEffect:Y,forceHoverEffect:d===!1&&(g?.updatedVendor?.id==null||g?.updatedVendor?.id==""),children:t.jsxs(Ot,{className:"hover-background",style:{padding:`${p.sp2} ${p.sp3}`},children:[t.jsxs(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:[wn.vendor,t.jsx(Ee,{display:"flex",placement:"top-start",title:t.jsx(So,{children:tt.tooltipText.missingVendor.replace("_deleted_vendor_",X)}),children:t.jsx(li,{})})]}),t.jsx(ke,{style:{gap:G[3],marginLeft:-2},className:"item-value-container",children:t.jsx(t.Fragment,{children:d===!0?t.jsxs($e,{onClick:I=>{I.stopPropagation(),_(!1)},"data-testid":ce("je-schedule-resolve-component-add-vendor-button",`${Ct}_${o.jeScheduleId}`),style:{display:"inline-flex",alignItems:"center",gap:G[2],color:Oe.brandColorGoldDark,cursor:"pointer"},children:[t.jsx(si,{}),Ps]}):t.jsx($i,{name:Ws,placeholder:Ps,valueToId:I=>I,defaultValue:{selectedOption:F?.selectedOption,defaultOptions:F?.defaultOptions??[]},style:{width:"100%"},customStyleConfig:{valueContainer:()=>({justifyContent:"flex-start"}),control:()=>({height:p.sp4})},registerOptions:{required:!0,validate:I=>!!I.selectedOption},loadOptions:(I,B)=>{b.onAutoCompleteInputChange?.(I,"vendor"),v.current=B}})})})]})}):t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp0} ${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{children:wn.vendor}),t.jsx(ke,{children:t.jsxs(t.Fragment,{children:[o.vendor.logo?.href!=null?t.jsx(Bl,{photoUrl:o.vendor.logo.href,styles:{width:G[4],height:G[4]}}):t.jsx(Bn,{name:o.vendor.name}),t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:o.vendor.name!==null?t.jsx(lt,{children:o.vendor.name}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.vendor.name??at})})]})})]}),t.jsxs(ve,{children:[t.jsx(Se,{children:tt.scheduleHeaders.scheduleCategory}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:o.baseTransaction.account.accountName!=null?t.jsx(lt,{children:o.baseTransaction.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.baseTransaction.account.accountName??at})})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:tt.scheduleHeaders.startMonth}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:o.startDate?.format(Bs.visual.MMMCommaYYYYFormat)??at})})]}),t.jsxs(ve,{style:{width:Pt,paddingLeft:G[3]},children:[t.jsx(Se,{children:tt.scheduleHeaders.period}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:o.period!=null?`${o.period} ${o.period===1?zs.slice(0,-1):zs}`:at})})]}),t.jsxs(ve,{style:{alignItems:"flex-end",width:fn},children:[t.jsx(Se,{children:wn.totalAmount}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",title:t.jsx(lt,{children:ct("0,0.[00]",un(o.baseTransaction.amount.amount,Dt.currencyCode,Dt.currencySymbol))??at}),children:t.jsx($e,{className:"highlight",children:ct("0,0.[00]",un(o.baseTransaction.amount.amount,Dt.currencyCode,Dt.currencySymbol))??at})})})]})]}),t.jsxs(Xi,{children:[ee===!0?t.jsx(ve,{showHoverEffect:ee===!0,forceHoverEffect:g?.updatedCategoryId==null&&l===!1,style:{padding:"unset",justifyContent:"center",width:Gt},children:t.jsxs(Ot,{className:"hover-background",children:[t.jsxs(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:[wn.category,ee===!0?t.jsx(Ee,{display:"flex",placement:"top-start",title:t.jsx(So,{children:tt.tooltipText.missingCategory.replace("_deleted_category_",H)}),children:t.jsx(li,{})}):null]}),t.jsx(ke,{className:"item-value-container",style:{marginLeft:ee===!0?-2:0},children:ee===!0?t.jsx(t.Fragment,{children:l===!0?t.jsxs($e,{onClick:I=>{I.stopPropagation(),c(!1)},style:{display:"inline-flex",alignItems:"center",gap:G[1],color:Oe.brandColorGoldDark,cursor:"pointer"},"data-testid":ce("je-schedule-resolve-component-add-category-button",`${Ct}_${o.jeScheduleId}`),children:[t.jsx(si,{}),tt.addCategory]}):t.jsx(kn,{shouldShowChevronIcon:!1,name:Vs,placeholder:tt.addCategory,valueToId:I=>(B=>n.filter(Z=>Z.qboId===B)[0]?.qboId)(I),defaultValue:{allOptions:e},registerOptions:{required:!0,validate:I=>!!I.selectedOption},disableCurrentOption:j,customStyleConfig:O})}):t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?t.jsx(lt,{children:o.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.jeDebit.account?.accountName??at})})})]})}):t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:wn.category}),t.jsx(ke,{className:"item-value-container",children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.account?.accountName!=null?t.jsx(lt,{children:o.jeDebit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.jeDebit.account?.accountName??at})})})]}),t.jsxs(ve,{children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:wn.classText}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:o.jeDebit.accountingClass?.className!=null?t.jsx(lt,{children:o.jeDebit.accountingClass.className}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.jeDebit.accountingClass?.className??at})})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:tt.scheduleHeaders.type}),t.jsx(ke,{className:"test",children:t.jsx($e,{className:"highlight",style:{width:"unset"},children:t.jsx(xc,{children:tt.scheduleTypes[o.jeScheduleType??"prepaid_expenses"]})})})]}),o.jeScheduleType==="fixed_assets"?t.jsx(t.Fragment,{children:te===!0?t.jsx(ve,{style:{width:Pt,padding:"unset",justifyContent:"center"},showHoverEffect:te,forceHoverEffect:g.updatedAccumulatedDepreciationCategoryID==null&&$===!1,children:t.jsxs(Ot,{className:"hover-background",style:{padding:G[2],paddingLeft:G[3]},children:[t.jsxs(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:[tt.scheduleHeaders.accumulatedCategory,te===!0?t.jsx(Ee,{display:"flex",placement:"top-end",title:t.jsx(So,{children:tt.tooltipText.missingDepCategory.replace("_deleted_dep_category_",L)}),children:t.jsx(li,{})}):null]}),t.jsx(ke,{className:"item-value-container",style:{marginLeft:te===!0?-2:0},children:te===!0?t.jsx(t.Fragment,{children:$===!0?t.jsxs($e,{onClick:I=>{I.stopPropagation(),f(!1)},style:{display:"inline-flex",alignItems:"center",gap:G[1],color:Oe.brandColorGoldDark,cursor:"pointer"},"data-testid":ce("je-schedule-resolve-component-add-depreciation-category-button",`${Ct}_${o.jeScheduleId}`),children:[t.jsx(si,{}),tt.addDepCategory]}):t.jsx(kn,{shouldShowChevronIcon:!1,showDownChevronWithValue:!1,name:Us,placeholder:tt.addDepCategory,valueToId:I=>(B=>S.filter(Z=>Z.qboId===B)[0]?.qboId)(I),defaultValue:{allOptions:E},registerOptions:{required:!0,validate:I=>!!I.selectedOption},customStyleConfig:M,disableCurrentOption:j})}):t.jsx(Ee,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?t.jsx(lt,{children:o.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.jeCredit.account?.accountName??at})})})]})}):t.jsxs(ve,{style:{width:Pt,padding:`${p.sp2} ${p.sp2} ${p.sp2} ${p.sp3}`,justifyContent:"center"},children:[t.jsx(Se,{style:{display:"flex",alignItems:"center",gap:G[1]},children:tt.scheduleHeaders.accumulatedCategory}),t.jsx(Ee,{display:"block",placement:"bottom",title:o.jeCredit.account?.accountName!=null?t.jsx(lt,{children:o.jeCredit.account.accountName}):t.jsx(t.Fragment,{}),children:t.jsx($e,{className:"highlight",children:o.jeCredit.account?.accountName??at})})]})}):null,o.jeScheduleType!=="fixed_assets"?t.jsx(ve,{style:{width:Pt}}):null,t.jsx(ve,{style:{width:fn}})]}),t.jsxs(Mm,{children:[t.jsx(ve,{style:{padding:"unset",width:Gt},children:t.jsxs(Pm,{children:[t.jsx(Se,{children:tt.scheduleHeaders.jePostingDate}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:o.scheduledJournalEntry.expectedPostDate.format(Bs.visual.MMMDCommaYYFormat)??at})})]})}),t.jsxs(ve,{children:[t.jsx(Se,{children:tt.scheduleHeaders.balance}),t.jsx(ke,{children:t.jsx(Ee,{display:"block",placement:"bottom",style:{width:"100%"},title:t.jsx(lt,{children:ct("0,0.[00]",un(o?.scheduledJournalEntry?.runningBalance?.amount??0,Dt.currencyCode,Dt.currencySymbol))??at}),children:t.jsx($e,{className:"highlight",children:ct("0,0.[00]",un(o?.scheduledJournalEntry?.runningBalance?.amount??0,Dt.currencyCode,Dt.currencySymbol))??at})})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:tt.scheduleHeaders.months}),t.jsx(ke,{children:t.jsxs($e,{className:"highlight",children:[o.scheduledJournalEntry.expectedPostDate.diff(o.startDate,"month")+1,"/",o.period]})})]}),t.jsx(ve,{style:{width:Pt}}),t.jsxs(ve,{style:{alignItems:"flex-end",width:fn},children:[t.jsx(Se,{children:tt.scheduleHeaders.amountForMonth}),t.jsx(ke,{children:t.jsx($e,{className:"highlight",children:ct("0,0.[00]",un(o.scheduledJournalEntry.amount?.amount??0,Dt.currencyCode,Dt.currencySymbol))??at})})]})]})]}),t.jsx(tr,{children:t.jsx(zn,{form:Hs(`${Ct}_${o.jeScheduleId}`),label:cf,variant:"primary",className:"item-value-container",type:"submit",loading:x?.fetchState==="In-Progress",size:"small",disabled:!D,style:{minWidth:69}})})]})})})})},Gs=(e,n,a,i,E,S,o,g)=>{const x=e.updatedCategoryId,w=e.updatedVendor,b=w!=null?g.vendor.find(s=>s.zeniId===w.id):void 0,h=e.updatedAccumulatedDepreciationCategoryID,r=e.updatedClassId,C=x!=null?E.find(s=>s.accountId===x):void 0,m=h!=null?o.find(s=>s.accountId===h):void 0,k=r!=null?S.find(s=>s.classId===r):void 0;return{[Ct]:{jeScheduleID:e.jeScheduleID,scheduledJournalEntryID:e.scheduledJournalEntryID,jeScheduleType:e.jeScheduleType,scheduleExpenseCategory:{selectedOption:C?.qboId,allOptions:n},accumulatedDepreciationCategory:{selectedOption:m?.qboId,allOptions:i},vendor:{selectedOption:b?.id??w?.id,defaultOptions:Gl(g,b??w)},scheduleClass:{selectedOption:k?.classId,allOptions:a}}}},si=A(Oo)`
|
|
1477
|
-
width: ${p.sp3};
|
|
1478
|
-
height: ${p.sp3};
|
|
1479
|
-
`,li=A(Kl)`
|
|
1480
|
-
width: 12px;
|
|
1481
|
-
height: 12px;
|
|
1482
|
-
color: ${Oe.important};
|
|
1483
|
-
`;function $c(){return t.jsx(hc,{children:t.jsxs(gc,{children:[t.jsxs(mc,{children:[t.jsx(Je,{width:G[9],height:27,style:{marginBottom:G[2]}}),t.jsx(Ks,{})]}),t.jsxs(fc,{children:[t.jsx(Je,{width:G[9],height:27,style:{marginBottom:G[2]}}),t.jsx(Ks,{})]})]})})}const Ks=()=>t.jsx(er,{style:{minWidth:1088},children:t.jsxs(Qi,{children:[t.jsxs(nr,{children:[t.jsxs(Zi,{children:[t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{children:t.jsx(Je,{width:G[10],height:14})}),t.jsxs(ke,{style:{gap:G[2]},children:[t.jsx(Vi,{height:G[4],width:G[4]}),t.jsx(Je,{height:G[4],width:G[10]})]})]}),t.jsxs(ve,{children:[t.jsx(Se,{children:t.jsx(Je,{width:101,height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:203})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:t.jsx(Je,{width:G[9],height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:71})})]}),t.jsxs(ve,{style:{width:Pt,paddingLeft:G[3]},children:[t.jsx(Se,{children:t.jsx(Je,{width:107,height:14})}),t.jsx(Je,{height:G[4],width:68})]}),t.jsxs(ve,{style:{alignItems:"flex-end",width:fn},children:[t.jsx(Se,{children:t.jsx(Je,{width:73,height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:49})})]})]}),t.jsxs(Xi,{children:[t.jsxs(ve,{style:{width:Gt,padding:`${p.sp2} ${p.sp3}`},children:[t.jsx(Se,{children:t.jsx(Je,{width:49,height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:158})})]}),t.jsxs(ve,{children:[t.jsx(Se,{children:t.jsx(Je,{width:36,height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:88})})]}),t.jsxs(ve,{style:{width:mn},children:[t.jsx(Se,{children:t.jsx(Je,{width:36,height:14})}),t.jsx(ke,{children:t.jsx(Je,{height:G[4],width:100})})]}),t.jsx(ve,{style:{width:Pt,paddingLeft:G[3]}}),t.jsx(ve,{style:{width:fn}})]})]}),t.jsxs(tr,{children:[t.jsx(Je,{height:29,width:53,style:{margin:`${p.sp0} ${p.sp3}`}}),t.jsx(Je,{height:29,width:53,style:{margin:`${p.sp0} ${p.sp3}`}})]})]})}),Je=A(on)`
|
|
1484
|
-
border-radius: ${p.sp1};
|
|
1485
|
-
`,{common:{create:pf,resolve:hf}}=Ae.getLocalizedStrings();function gf({jeSchedules:e,vendorSearchAutoCompleteData:n,handleJeScheduleClick:a,onJESchedulesFormDataChange:i,onPostJESchedule:E,ignoreRecommendedJeSchedule:S,vendorSearchAutoCompleteActions:o,setCurrentFooterFormId:g}){const x=e.draftSchedules,w=e.jeScheduleLocalDataById,b=e.postStatusById,h=e.ignoreStatusById,r=y.useRef(!1),[C,m]=y.useState(!1),k=y.useRef(F=>{F&&!r.current&&(r.current=!0,m(!0))});Un({componentName:"expense_automation.je_schedules",enabled:C});const s=e.resolveSchedules,u=e.uncategorizedAccounts,{allAccountList:T,allClassList:v,allDepreciationAccountList:N}=e,O=nn(e.accountListNestedAccountHierarchy),M=nn(e.allDepreciationAccountListNestedAccountHierarchy),D=bo(e.classListNestedAccountHierarchy),R=(F,Y,ee)=>{a(F,Y,ee)},j=(F,Y,ee,te)=>{let X=F.target;for(;X;){if(X.classList.contains("item-value-container")||X.classList.contains("hover-background")||X.classList.contains("auto-complete-single-select-field__input")||X.classList.contains("auto-complete-single-select-field__option")||X.classList.contains("grouped-single-select-field__input")||X.classList.contains("grouped-single-select-field__menu"))return;X=X.parentElement}a(Y,ee,te)};return y.useEffect(()=>{if(s.length!==0){for(const F in w)if(Object.prototype.hasOwnProperty.call(w,F)){const{updatedAccumulatedDepreciationCategoryID:Y,updatedCategoryId:ee,updatedVendor:te}=w[F];if(Y!=null||ee!=null||te!=null&&te?.id!==""){g("expenseAutomationJESchedulePage");break}g("expenseAutomationPage")}}else s.length===0&&g("expenseAutomationPage")}),y.useEffect(()=>()=>{g("expenseAutomationPage")},[]),e.fetchState==="In-Progress"?t.jsx($c,{}):x.length!==0||s.length!==0?t.jsx(hc,{children:t.jsxs(gc,{children:[x.length>0?t.jsxs(mc,{children:[t.jsxs(Js,{children:[pf,t.jsx(Zs,{isCircular:x.length<10,children:t.jsx(Xs,{children:x.length})})]}),t.jsx(Ys,{"data-testid":ce("expense-automation","draft-je-schedules"),children:x.map((F,Y)=>t.jsx(qs,{ref:k.current,children:t.jsx(rf,{ignoreStatus:h[F.jeScheduleTransactionKey],ignoreRecommendedJeSchedule:S,onReviewClickHandler:R,jeScheduleClickHandler:j,draft:F})},`${Y}_${F.jeScheduleId}`))})]}):null,s.length>0?t.jsxs(fc,{children:[t.jsxs(Js,{children:[hf,t.jsx(Zs,{isCircular:s.length<10,children:t.jsx(Xs,{children:s.length})})]}),t.jsx(Ys,{"data-testid":ce("expense-automation","resolve-je-schedules"),children:s.map((F,Y)=>w[F.scheduledJournalEntry.scheduledJournalEntryID]==null?null:t.jsx(qs,{ref:k.current,children:t.jsx(uf,{vendorSearchAutoCompleteActions:o,vendorSearchAutoCompleteData:n,jeScheduleClickHandler:j,onPostJESchedule:E,uncategorizedAccounts:u,allAccountList:T,allAccountGroupedOptions:O,allClassGroupedOptions:D,allClassList:v,allDepAccountGroupedOptions:M,allDepAccountList:N,draft:F,postStatus:b[F.scheduledJournalEntry.scheduledJournalEntryID],localData:w[F.scheduledJournalEntry.scheduledJournalEntryID],onFormDataChange:i})},`${Y}_${F.jeScheduleTransactionKey}`))})]}):null]})}):null}const Ys=A.div`
|
|
1486
|
-
display: flex;
|
|
1487
|
-
flex-direction: column;
|
|
1488
|
-
gap: ${p.sp4};
|
|
1489
|
-
min-width: 1088px;
|
|
1490
|
-
`,qs=A.div``,Js=A(Al)`
|
|
1491
|
-
color: ${e=>e.theme.colors.primary};
|
|
1492
|
-
padding: ${p.sp2} ${p.sp0};
|
|
1493
|
-
display: flex;
|
|
1494
|
-
align-items: center;
|
|
1495
|
-
gap: ${p.sp1};
|
|
1496
|
-
`,Zs=A.div`
|
|
1497
|
-
border-radius: ${p.sp12};
|
|
1498
|
-
display: flex;
|
|
1499
|
-
justify-content: center;
|
|
1500
|
-
border: ${e=>`1px solid ${e.theme.colors.grey1}`};
|
|
1501
|
-
color: ${e=>e.theme.colors.hero};
|
|
1502
|
-
${e=>e.isCircular?We`
|
|
1503
|
-
height: ${p.sp3};
|
|
1504
|
-
width: ${p.sp3};
|
|
1505
|
-
padding: ${p.sp0};
|
|
1506
|
-
`:We`
|
|
1507
|
-
height: 18px;
|
|
1508
|
-
padding: ${Rd.padding};
|
|
1509
|
-
`}
|
|
1510
|
-
`,Xs=A(Id)`
|
|
1511
|
-
color: ${e=>e.theme.colors.hero};
|
|
1512
|
-
height: 100%;
|
|
1513
|
-
width: 100%;
|
|
1514
|
-
display: flex;
|
|
1515
|
-
align-items: center;
|
|
1516
|
-
justify-content: center;
|
|
1517
|
-
color: inherit;
|
|
1518
|
-
`;function mf({expenseAutomationViewSelector:e,currentFooterFormId:n,setResetJeAccountSettingsForm:a,vendorSearchAutoCompleteData:i,onJESchedulesFormDataChange:E,onPostJESchedule:S,handleJeScheduleClick:o,onJeAccountSettingsChange:g,onSaveJeAccountSettingsClick:x,ignoreRecommendedJeSchedule:w,vendorSearchAutoCompleteActions:b,setCurrentFooterFormId:h,setIsJeAccountSettingsOpened:r}){const{jeSchedules:C}=e;return C.fetchState==="In-Progress"||C.accountSettingsView.fetchState==="In-Progress"?t.jsx($c,{}):C.accountSettingsView.fetchState==="Completed"&&C.accountSettingsView.accountSettingsLocalData.previousPrepaidExpensesAccount.length===0&&C.accountSettingsView.accountSettingsLocalData.previousFixedAssetsAccount.length===0?t.jsx(X1,{setIsJeAccountSettingsOpened:r,setResetJeAccountSettingsForm:a,currentFooterFormId:n,onJeAccountSettingsChange:g,onSaveJeAccountSettingsClick:x,accountSettings:C.accountSettingsView,setCurrentFooterFormId:h}):C.fetchState==="Completed"&&C.draftSchedules.length===0&&C.resolveSchedules.length===0?t.jsx(Yt,{tab:e.currentSelectedView,title:rt(e.currentSelectedView).allDoneText.title,subTitle:rt(e.currentSelectedView).allDoneText.subTitle}):C.fetchState==="Completed"?t.jsx(gf,{setCurrentFooterFormId:h,handleJeScheduleClick:o,ignoreRecommendedJeSchedule:w,jeSchedules:e.jeSchedules,onJESchedulesFormDataChange:E,onPostJESchedule:S,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:i}):null}const ff=["receipts"],Qs=e=>Zl(e,ff),{common:{texts:{vendor:xf,amount:Cf,receipts:yf,category:bf,classText:vf,date:wf}}}=Ae.getLocalizedStrings(),Nc={key:"vendor",value:xf,sortOrder:"ascending",width:new me(18,18)},Sf={key:"category",value:bf,sortOrder:"ascending",width:new me(18,18)},Ef={key:"class",value:vf,sortOrder:"ascending",width:new me(18,18)},kf={key:"date",value:wf,sortOrder:"descending",width:new me(11,11)},Tf={key:"receipts",value:yf,sortOrder:"descending",width:new me(6,6)},_c={key:"amount",value:Cf,sortOrder:"ascending",width:new me(10,10)},On=[Nc,Sf,Ef,kf,Tf,_c],Ac=[{...Nc,width:new me(65,65)},{..._c,width:new me(30,30)}],el="date",$f="descending",tl={containerPaddingLeftRight:new me(G[3],G[4])},Rc=({sortConfig:e,isDisabled:n,onColumnSortConfigChanged:a})=>{const i=Me(),E=rn(),S=E?Ac:On,[o,g]=y.useState(S);y.useEffect(()=>{const w=[...S];for(const b of w)b.key===e.sortKey?b.sortOrder=e.sortOrder:b.sortOrder="ascending";g(w)},[e.sortKey,e.sortOrder,E]);const x=(w,b)=>{let h=b;e.sortKey===w&&(h=b==="ascending"?"descending":"ascending"),a(w,h)};return t.jsx(Nf,{windowSize:i,children:o.map((w,b)=>{const h=n!=null||Qs(w.key)!=null;return t.jsxs(_f,{sortDataValue:e.sortKey,actualDataValue:w.key,wrapperWidth:w.width,isSortDisabled:h,windowSize:i,isLastItem:b===o.length-1,style:w.key==="receipts"?{justifyContent:"center"}:void 0,children:[t.jsxs(Lf,{onClick:()=>h?null:(r=>{Qs(r.key)==null&&x(iu(r.key),r.sortOrder)})(w),isSortDisabled:h,children:[t.jsx(Df,{children:w.value}),h?null:t.jsx(Rf,{sortConfig:e,headerData:w,children:t.jsx(jf,{})})]}),h?null:t.jsx(If,{isSortDisabled:h,sortDataValue:e.sortKey,isVisible:e.sortKey===w.key&&e.sortKey!==el,children:t.jsx(Af,{onClick:()=>{h||x(el,$f)},"data-testid":ce("missing-receipts-header-close-icon",w.key)})})]},w.key)})})},Nf=A.div`
|
|
1519
|
-
top: ${p.sp0};
|
|
1520
|
-
left: ${p.sp0};
|
|
1521
|
-
height: ${50}px;
|
|
1522
|
-
z-index: 2;
|
|
1523
|
-
display: flex;
|
|
1524
|
-
align-items: center;
|
|
1525
|
-
justify-content: space-between;
|
|
1526
|
-
box-sizing: border-box;
|
|
1527
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1528
|
-
position: sticky;
|
|
1529
|
-
padding-left: ${e=>tl.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1530
|
-
padding-right: ${e=>tl.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1531
|
-
`,_f=A.div`
|
|
1532
|
-
color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1533
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1534
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1535
|
-
padding-left: ${p.sp0};
|
|
1536
|
-
left: ${p.sp0};
|
|
1537
|
-
display: flex;
|
|
1538
|
-
align-items: center;
|
|
1539
|
-
gap: 6px;
|
|
1540
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1541
|
-
position: static;
|
|
1542
|
-
z-index: 0;
|
|
1543
|
-
box-sizing: border-box;
|
|
1544
|
-
`,Af=A(Do)`
|
|
1545
|
-
width: ${p.sp2};
|
|
1546
|
-
height: ${p.sp2};
|
|
1547
|
-
cursor: pointer;
|
|
1548
|
-
`,Rf=A.div`
|
|
1549
|
-
display: flex;
|
|
1550
|
-
align-items: center;
|
|
1551
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1552
|
-
`,If=A.div`
|
|
1553
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
1554
|
-
align-items: center;
|
|
1555
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1556
|
-
&:hover {
|
|
1557
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1558
|
-
}
|
|
1559
|
-
`,jf=A(Lo)`
|
|
1560
|
-
width: ${p.sp2};
|
|
1561
|
-
height: ${p.sp2};
|
|
1562
|
-
`,Lf=A.div`
|
|
1563
|
-
display: flex;
|
|
1564
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1565
|
-
gap: 6px;
|
|
1566
|
-
&:hover {
|
|
1567
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1568
|
-
}
|
|
1569
|
-
`,Df=A(Nt)`
|
|
1570
|
-
display: flex;
|
|
1571
|
-
`,{common:{strings:{underscore:Ic,hyphen:ci,empty:nl},documents:{singleFileUploadSizeErrorMessage:Of,multipleFileUploadSizeErrorMessage:Mf},snackBar:{missing_receipts_attachment:{failed:Pf}},tooltips:{addMissingReceipt:Ff}},dateFormat:Bf}=Ae.getLocalizedStrings(),Co={containerPaddingLeftRight:new me(G[3],G[4]),containerPaddingTopBottom:new me(G[2],G[3])},zf=({transaction:e,uploadReceiptsFetchState:n,receiptUploadEndpoint:a,authParams:i,selectedPeriod:E,onUploadReceiptComplete:S,onMissingReceiptsRowClick:o,onUploadReceiptFetchStatus:g,onUploadReceiptAttachment:x})=>{const w=Me(),b=rn(),h=y.useRef(null),r=y.useCallback(async(s,u,T,v,N)=>{g(e.id,"In-Progress"),await yu(s,u,T,v,N).then(({uploadResponse:O,errorMessage:M})=>{O!=null?O.transaction.attachments!=null&&(x(O.transaction),setTimeout(()=>S(O.transaction,E),2e3)):g(e.id,"Error",{code:500,message:Pf},M)}).catch(O=>{g(e.id,"Error",O)})},[e.id,E,x,S,g]),C=y.useCallback(s=>{if(s.target.files!=null){const u=s.target.files,T=[],v=[];for(let N=0;N<u.length;N++)T.push(u[N].name),v.push(u[N]);r(a,i,u[0],u[0].name,{id:e.id,type:e.type})}},[i,r,a,e.id,e.type]),m=y.useCallback(()=>{b||h.current?.click()},[h,b]),k=b?Ac:On;return t.jsx(jc,{className:"missing-receipts-row-card",windowSize:w,isCompressedMode:b,onClick:()=>o(e.id,e.type),"data-testid":ce("missing-receipts-list-row",e.id),children:k.map((s,u)=>{const T=`${e.id}${Ic}${s.key}`;switch(s.key){case"vendor":default:return t.jsx(pn,{windowSize:w,wrapperWidth:s.width,children:t.jsx(hn,{windowSize:w,isLastItem:u===k.length-1,children:t.jsxs(Eo,{children:[t.jsx(Fl,{photoUrl:e.vendorId!=null?e.logo?.toString()??nl:nl,styles:{width:p.sp4,height:p.sp4,borderRadius:p.sp0},placeholder:{width:G[4],height:G[4]},fallbackAvatar:t.jsx(Yf,{children:t.jsx(Bn,{name:e.vendorName??e.description,size:p.sp4})})}),t.jsx(yt,{text:e.vendorName??e.description,itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"}})]})})},T);case"category":case"class":{const v=e.lines!=null&&e.lines.length>0&&e.lines[0]?.account!=null&&e.lines[0].account.accountName?e.lines[0].account.accountName:ci,N=e.lines!=null&&e.lines.length>0&&e.lines[0]?.class!=null&&e.lines[0].class.className?e.lines[0].class.className:ci,O=s.key==="category"?v:N;return t.jsx(pn,{windowSize:w,wrapperWidth:s.width,children:t.jsx(hn,{windowSize:w,isLastItem:u===k.length-1,children:t.jsx(Eo,{children:O!==ci?t.jsx(yt,{text:O,itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"}}):t.jsx(Kf,{children:O})})})},T)}case"date":return t.jsx(pn,{windowSize:w,wrapperWidth:s.width,children:t.jsx(hn,{windowSize:w,isLastItem:u===k.length-1,children:t.jsx(Eo,{children:t.jsx(yt,{text:e.date.format(Bf.visual.MMMDCommaYYYYformat),itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"}})})})},T);case"receipts":return t.jsx(pn,{windowSize:w,wrapperWidth:s.width,children:t.jsx(hn,{windowSize:w,isLastItem:u===k.length-1,style:{justifyContent:"center"},children:n.fetchState==="In-Progress"?t.jsx(_o,{size:"Small",style:{display:"flex"},start:!0}):n.fetchState==="Completed"||e.attachments!=null&&e.attachments.length>0?t.jsx(oc,{shouldDisplay:!0,width:G[4],height:G[4],animationInLoop:!1,shouldFade:!1,onAnimationComplete:()=>null}):t.jsxs(t.Fragment,{children:[t.jsx(Gf,{onClick:v=>{v.stopPropagation()},children:t.jsx(jl,{"data-testid":ce("missing-receipts-file-input",e.id),name:`missing-receipts-${e.id}`,fileRef:h,sizeLimit:Wo,multiple:!1,acceptableTypes:[...ru],onFileChange:C,onFileSizeError:(v,N)=>{v&&g(e.id,"Error",{code:500,message:N===!0?Of.replace("__maxFileSize__",ar(Wo,0)):Mf.replace("__maxFileSize__",ar(Wo,0))})}})}),t.jsx(Ee,{display:"flex",placement:"bottom",title:Ff,enterDelay:600,children:t.jsx(Uf,{onClick:v=>{v.stopPropagation(),m()}})})]})})},T);case"amount":{const v=ct("0,0.[00]",e.amount);return t.jsx(pn,{windowSize:w,wrapperWidth:s.width,children:t.jsx(hn,{windowSize:w,isLastItem:u===k.length-1,children:t.jsx(yt,{text:e.amount.amount<0?`-${v}`:v,itemTextStyle:{...$t.standardRegular.cssObject,color:"inherit"}})})},T)}}})})},Hf=()=>{const e=Me(),n=y.useRef(null),[a,i]=y.useState(0);return y.useLayoutEffect(()=>{n.current&&i(n.current.offsetWidth)},[e]),t.jsx(jc,{windowSize:e,isCompressedMode:!1,ref:n,children:On.map((E,S)=>{const o=`${S}${Ic}${E.key}`;return E.key==="vendor"?t.jsx(pn,{windowSize:e,wrapperWidth:E.width,children:t.jsx(hn,{windowSize:e,isLastItem:S===On.length-1,children:t.jsxs(Eo,{children:[t.jsx(Vi,{width:G[4],height:G[4]}),t.jsx(on,{width:a*E.width.value(e)/100,height:G[4],style:{display:"flex",alignItems:"center"}})]})})},o):t.jsx(pn,{windowSize:e,wrapperWidth:E.width,children:t.jsx(hn,{windowSize:e,isLastItem:S===On.length-1,children:t.jsx(on,{width:a*E.width.value(e)/100,height:G[4],style:{display:"flex",alignItems:"center"}})})},o)})})},jc=A.div`
|
|
1572
|
-
display: flex;
|
|
1573
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1574
|
-
padding-left: ${e=>Co.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1575
|
-
padding-right: ${e=>Co.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1576
|
-
padding-top: ${e=>Co.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1577
|
-
padding-bottom: ${e=>Co.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1578
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1579
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1580
|
-
border-radius: ${p.sp2};
|
|
1581
|
-
color: ${e=>e.theme.colors.hero};
|
|
1582
|
-
cursor: pointer;
|
|
1583
|
-
${e=>!e.isCompressedMode&&We`
|
|
1584
|
-
&:hover {
|
|
1585
|
-
border-color: ${e.theme.colors.primary};
|
|
1586
|
-
color: ${e.theme.colors.primary};
|
|
1587
|
-
}
|
|
1588
|
-
`}
|
|
1589
|
-
|
|
1590
|
-
box-sizing: border-box;
|
|
1591
|
-
align-items: center;
|
|
1592
|
-
justify-content: space-between;
|
|
1593
|
-
`,pn=A.div`
|
|
1594
|
-
display: flex;
|
|
1595
|
-
align-items: center;
|
|
1596
|
-
position: relative;
|
|
1597
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1598
|
-
min-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1599
|
-
:last-of-type {
|
|
1600
|
-
padding-right: ${p.sp0};
|
|
1601
|
-
}
|
|
1602
|
-
`,Wf=We`
|
|
1603
|
-
word-break: break-all;
|
|
1604
|
-
white-space: normal;
|
|
1605
|
-
-webkit-line-clamp: 1;
|
|
1606
|
-
-webkit-box-orient: vertical;
|
|
1607
|
-
overflow: hidden;
|
|
1608
|
-
text-overflow: ellipsis;
|
|
1609
|
-
display: -webkit-box;
|
|
1610
|
-
`,Vf=We`
|
|
1611
|
-
height: ${p.sp3};
|
|
1612
|
-
width: ${p.sp3};
|
|
1613
|
-
cursor: pointer;
|
|
1614
|
-
`,Uf=A(Oo)`
|
|
1615
|
-
${Vf};
|
|
1616
|
-
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
1617
|
-
&:hover {
|
|
1618
|
-
color: ${e=>e.theme.colors.primary};
|
|
1619
|
-
}
|
|
1620
|
-
`,hn=A(Be)`
|
|
1621
|
-
overflow: hidden;
|
|
1622
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1623
|
-
display: flex;
|
|
1624
|
-
width: 100%;
|
|
1625
|
-
align-items: center;
|
|
1626
|
-
`,Gf=A.div``,Eo=A.div`
|
|
1627
|
-
display: flex;
|
|
1628
|
-
flex-direction: row;
|
|
1629
|
-
column-gap: ${p.sp2};
|
|
1630
|
-
align-items: center;
|
|
1631
|
-
`,Kf=A(Be)`
|
|
1632
|
-
${Wf};
|
|
1633
|
-
color: inherit;
|
|
1634
|
-
`,Yf=A.div`
|
|
1635
|
-
display: flex;
|
|
1636
|
-
`,qf=({sortConfig:e,fetchState:n,isDisabled:a,onColumnSortConfigChanged:i})=>{const E=Me();return t.jsxs(Jf,{windowSize:E,children:[t.jsx(Rc,{sortConfig:e,isDisabled:n==="In-Progress"?"readonly":a,onColumnSortConfigChanged:i}),t.jsx(Zf,{windowSize:E,children:[...Array(3)].map((S,o)=>t.jsx(Hf,{},o))})]})},Jf=A.div`
|
|
1637
|
-
display: block;
|
|
1638
|
-
min-height: 100%;
|
|
1639
|
-
flex-direction: column;
|
|
1640
|
-
width: 100%;
|
|
1641
|
-
`,Zf=A.div`
|
|
1642
|
-
display: flex;
|
|
1643
|
-
min-height: 100%;
|
|
1644
|
-
flex-direction: column;
|
|
1645
|
-
row-gap: ${p.sp3};
|
|
1646
|
-
`,{common:Xf}=Ae.getLocalizedStrings(),Qf=({missingReceipts:e,receiptUploadEndpoint:n,authParams:a,selectedPeriod:i,isDisabled:E,onMissingReceiptsRowClick:S,onUploadReceiptComplete:o,onUploadReceiptAttachment:g,onUploadReceiptFetchStatus:x,onUpdateMissingReceiptsUIState:w,onFetchMissingReceiptsList:b})=>{const h=Me(),{fetchState:r,uiState:C,transactions:m}=e;Un({componentName:"expense_automation.missing_receipts",enabled:r==="Completed"});const k=y.useRef(null),[s,u]=y.useState(!1);y.useEffect(()=>{k.current?.resetAfterIndex(0)},[h,k]),y.useEffect(()=>{r==="Completed"&&u(!1)},[r]);const T=N=>72,v=(N,O)=>{w({sortOrder:O,sortKey:N})};return t.jsxs(n0,{children:[t.jsx(o0,{windowSize:h,children:r==="Error"?t.jsxs(r0,{windowSize:h,children:[t.jsx(a0,{onClick:()=>b(),"data-testid":ce("missing-receipts-list-table-reload-button"),children:t.jsx(Ro,{})}),t.jsx(s0,{children:Xf.reloadPage.label})]}):r==="Completed"&&m.length===0?t.jsx(Yt,{tab:"missing_receipts",title:rt("missing_receipts").allDoneText.title,subTitle:rt("missing_receipts").allDoneText.subTitle}):r==="Not-Started"||r==="In-Progress"&&m.length===0?t.jsx(qf,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},fetchState:r,onColumnSortConfigChanged:v}):t.jsx(i0,{windowSize:h,children:t.jsx(Io,{children:({height:N,width:O})=>t.jsxs(c0,{style:{height:N,width:O},children:[t.jsx(t0,{children:t.jsx(Rc,{sortConfig:{sortKey:C.sortKey,sortOrder:C.sortOrder},isDisabled:r==="In-Progress"?"readonly":E,onColumnSortConfigChanged:v})}),t.jsx(jo,{ref:k,height:N-50,innerElementType:Lc,itemCount:m.length,itemData:{missingReceipts:e,receiptUploadEndpoint:n,authParams:a,isDisabled:E,selectedPeriod:i,onMissingReceiptsRowClick:S,onUploadReceiptComplete:o,onUploadReceiptAttachment:g,onUploadReceiptFetchStatus:x},itemSize:T,width:O,style:{willChange:"auto"},overscanCount:1,onScroll:({scrollOffset:M})=>{w({scrollPosition:{scrollTop:M}})},initialScrollOffset:C.scrollPosition?.scrollTop,children:e0})]})})})}),t.jsx(ot,{controller:s===!0,children:t.jsx(d0,{children:t.jsx(_o,{size:"Small",start:!0})})})]})},e0=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Hi(),{missingReceipts:E,receiptUploadEndpoint:S,authParams:o,onMissingReceiptsRowClick:g,onUploadReceiptComplete:x,onUploadReceiptAttachment:w,onUploadReceiptFetchStatus:b,selectedPeriod:h}=a,r=E.transactions[e],C=i!=null&&i===r.id;return t.jsx(l0,{isPanelSelected:C,style:{...n,width:"100%"},children:t.jsx(zf,{transaction:r,receiptUploadEndpoint:S,authParams:o,selectedPeriod:h,onMissingReceiptsRowClick:g,onUploadReceiptComplete:x,onUploadReceiptAttachment:w,onUploadReceiptFetchStatus:b,uploadReceiptsFetchState:E.uploadReceiptStatusById[r.id]??{fetchState:"Not-Started",error:void 0}},r.id)})},t0=A.div`
|
|
1647
|
-
width: auto;
|
|
1648
|
-
max-width: var(--side-panel-list-width, 100%);
|
|
1649
|
-
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
1650
|
-
`,n0=A.div`
|
|
1651
|
-
width: 100%;
|
|
1652
|
-
height: 100%;
|
|
1653
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1654
|
-
`,o0=A.div`
|
|
1655
|
-
height: 100%;
|
|
1656
|
-
`,i0=A.div`
|
|
1657
|
-
height: 100%;
|
|
1658
|
-
display: flex;
|
|
1659
|
-
flex-direction: column;
|
|
1660
|
-
max-width: 99.9%;
|
|
1661
|
-
`,r0=A.div`
|
|
1662
|
-
display: flex;
|
|
1663
|
-
width: 100%;
|
|
1664
|
-
height: ${e=>`calc(100% - ${Ml.valuePx(e.windowSize)})`};
|
|
1665
|
-
flex-direction: column;
|
|
1666
|
-
justify-content: center;
|
|
1667
|
-
align-items: center;
|
|
1668
|
-
`,a0=A.div`
|
|
1669
|
-
height: 96px;
|
|
1670
|
-
width: 96px;
|
|
1671
|
-
background: ${e=>e.theme.colors.background};
|
|
1672
|
-
border-radius: 50%;
|
|
1673
|
-
cursor: pointer;
|
|
1674
|
-
& svg {
|
|
1675
|
-
margin: ${p.sp5};
|
|
1676
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1677
|
-
}
|
|
1678
|
-
&:hover {
|
|
1679
|
-
& svg {
|
|
1680
|
-
color: ${e=>e.theme.colors.primary};
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1683
|
-
`,s0=A(kl)`
|
|
1684
|
-
margin-top: ${p.sp3};
|
|
1685
|
-
color: ${e=>e.theme.colors.hero};
|
|
1686
|
-
`,l0=A.div`
|
|
1687
|
-
top: ${p.sp0};
|
|
1688
|
-
left: ${p.sp0};
|
|
1689
|
-
padding-bottom: ${p.sp3};
|
|
1690
|
-
padding-right: var(--side-panel-list-item-pr, 0px);
|
|
1691
|
-
box-sizing: border-box;
|
|
1692
|
-
${e=>e.isPanelSelected===!0&&We`
|
|
1693
|
-
.missing-receipts-row-card {
|
|
1694
|
-
${Gi(e.theme)}
|
|
1695
|
-
}
|
|
1696
|
-
`}
|
|
1697
|
-
`,c0=A.div`
|
|
1698
|
-
position: relative;
|
|
1699
|
-
`,Lc=y.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})});Lc.displayName="Missing receipts inner element type";const d0=A.div`
|
|
1700
|
-
display: flex;
|
|
1701
|
-
width: 100%;
|
|
1702
|
-
height: ${p.sp3};
|
|
1703
|
-
flex-direction: row;
|
|
1704
|
-
justify-content: center;
|
|
1705
|
-
align-items: center;
|
|
1706
|
-
margin-top: ${p.sp3};
|
|
1707
|
-
margin-bottom: ${p.sp3};
|
|
1708
|
-
`,u0=[...tu],p0=A.div`
|
|
1709
|
-
width: ${Ln}px;
|
|
1710
|
-
`,di=A.div`
|
|
1711
|
-
width: ${e=>`${e.availableWidth}px`};
|
|
1712
|
-
min-width: auto;
|
|
1713
|
-
position: relative;
|
|
1714
|
-
height: fit-content;
|
|
1715
|
-
min-height: ${p.sp12};
|
|
1716
|
-
`,h0=A.div`
|
|
1717
|
-
flex-grow: 1;
|
|
1718
|
-
overflow: auto;
|
|
1719
|
-
min-height: 2em;
|
|
1720
|
-
display: flex;
|
|
1721
|
-
flex-direction: row;
|
|
1722
|
-
position: relative;
|
|
1723
|
-
|
|
1724
|
-
pointer-events: auto;
|
|
1725
|
-
user-select: text;
|
|
1726
|
-
justify-content: space-between;
|
|
1727
|
-
margin-bottom: ${p.sp2};
|
|
1728
|
-
|
|
1729
|
-
// Disable select for Zeni Logo and File Separator
|
|
1730
|
-
#${$o} img[alt*="company logo"],
|
|
1731
|
-
.attachFileSeparator {
|
|
1732
|
-
user-select: none;
|
|
1733
|
-
}
|
|
1734
|
-
`,g0=A.div`
|
|
1735
|
-
display: flex;
|
|
1736
|
-
column-gap: ${p.sp2};
|
|
1737
|
-
align-items: flex-end;
|
|
1738
|
-
margin-top: ${p.sp2};
|
|
1739
|
-
margin-bottom: ${p.sp3};
|
|
1740
|
-
`,m0=A.div`
|
|
1741
|
-
position: relative;
|
|
1742
|
-
`,ol=A(Be)`
|
|
1743
|
-
position: relative;
|
|
1744
|
-
`,f0=A.div`
|
|
1745
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1746
|
-
border: ${e=>`1px solid ${e.theme.colors.background}`};
|
|
1747
|
-
border-radius: ${p.sp2};
|
|
1748
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1749
|
-
padding: ${p.sp5};
|
|
1750
|
-
color: ${e=>e.theme.colors.primary};
|
|
1751
|
-
position: relative;
|
|
1752
|
-
.lexicalEditor__nestedListItem {
|
|
1753
|
-
list-style-type: none;
|
|
1754
|
-
}
|
|
1755
|
-
user-select: text;
|
|
1756
|
-
|
|
1757
|
-
.monthEndReportCanvasWrapper > * {
|
|
1758
|
-
isolation: isolate;
|
|
1759
|
-
z-index: ${G[1]};
|
|
1760
|
-
}
|
|
1761
|
-
`,x0=A.div`
|
|
1762
|
-
user-select: text;
|
|
1763
|
-
`,C0=A.div`
|
|
1764
|
-
position: absolute;
|
|
1765
|
-
top: ${p.sp4}; // Attachment icon position from the top
|
|
1766
|
-
right: -${p.sp3}; // To show attachment icon on the edge
|
|
1767
|
-
`,y0=A.div`
|
|
1768
|
-
margin-top: ${p.sp2};
|
|
1769
|
-
display: flex;
|
|
1770
|
-
flex-direction: column;
|
|
1771
|
-
row-gap: ${p.sp3};
|
|
1772
|
-
margin-bottom: ${p.sp4};
|
|
1773
|
-
position: relative;
|
|
1774
|
-
|
|
1775
|
-
.toolbar {
|
|
1776
|
-
user-select: none;
|
|
1777
|
-
}
|
|
1778
|
-
`,b0=A(wt)`
|
|
1779
|
-
color: ${e=>e.theme.colors.grey1};
|
|
1780
|
-
user-select: none;
|
|
1781
|
-
`,v0=A(Ol)`
|
|
1782
|
-
color: ${e=>e.theme.colors.primary};
|
|
1783
|
-
`,w0=A.div`
|
|
1784
|
-
flex-direction: column;
|
|
1785
|
-
row-gap: ${p.sp3};
|
|
1786
|
-
display: flex;
|
|
1787
|
-
`,S0=Mo`
|
|
1788
|
-
0% {
|
|
1789
|
-
transform: translateX(100%);
|
|
1790
|
-
}
|
|
1791
|
-
100% {
|
|
1792
|
-
transform: translateX(0)
|
|
1793
|
-
}
|
|
1794
|
-
`,E0=Mo`
|
|
1795
|
-
0% {
|
|
1796
|
-
transform: translateX(0)
|
|
1797
|
-
}
|
|
1798
|
-
100% {
|
|
1799
|
-
transform: translateX(100%)
|
|
1800
|
-
}
|
|
1801
|
-
`,k0=A.div`
|
|
1802
|
-
animation: ${e=>e.allThreadsSectionOpen?S0:E0}
|
|
1803
|
-
0.5s forwards;
|
|
1804
|
-
height: 100vh;
|
|
1805
|
-
position: fixed;
|
|
1806
|
-
right: ${p.sp0};
|
|
1807
|
-
top: ${p.sp0};
|
|
1808
|
-
z-index: ${G[2]};
|
|
1809
|
-
min-width: ${360}px;
|
|
1810
|
-
max-width: ${450}px;
|
|
1811
|
-
`,ko="monthEndReportFormSection",il="monthEndReportPage",ut=Ae.getLocalizedStrings();function T0({companyId:e,enableZeniGPTFeature:n,monthEndReportView:a,previewMode:i,customerRequestData:E,allThreadsSectionOpen:S,filterMetaData:o,newThreadMetadata:g,isZeniUser:x,selectedPeriod:w,improveUsingZeniGPTClick:b,onRemoveFileAttachment:h,onUpdateFileAttachment:r,onCloseAllThreadsSection:C,previewMonthEndReport:m,saveMonthEndReport:k,onEditClick:s,onOpenFileAttachmentSnackBar:u,onClickCustomerRequest:T,sendMonthEndReport:v}){const N=vt(),[O,M]=y.useState(),[D,R]=y.useState(0),[j,F]=y.useState(0),Y=y.useRef(),ee=y.useRef(null),te=y.useRef(null),{html:X,subject:H,improveUsingZeniGPTStatus:L}=a,[l,c]=y.useState(),[$,f]=y.useState(!1),[d,_]=y.useState(!1),I=y.useRef(null),B=y.useRef(null),Z=((he,le)=>{const[fe,Ce]=y.useState(!1);return y.useEffect(()=>{let Te;return he&&!fe?Ce(!0):!he&&fe&&(Te=setTimeout(()=>Ce(!1),le)),()=>clearTimeout(Te)},[he,le,fe]),fe})(S,250),q=a.fetchState==="Not-Started"||a.fetchState==="In-Progress"||a.companyMonthEndReportTemplatesData.fetchState==="Not-Started"||a.companyMonthEndReportTemplatesData.fetchState==="In-Progress",{threadsRefs:z,sortedThreads:W,threadsPositions:U,observer:V,unresolvedThreadsMap:ne,handleRemoveFloatingThread:ae}=Yp(o,I,!i,q,x),oe=y.useCallback(()=>{S?B.current!=null&&F(Math.min((B.current.offsetWidth-Ln-G[4])/2,B.current.offsetWidth-Ln-450-G[4])):B.current!=null&&R(Math.min((B.current.offsetWidth-Ln-G[4])/2,B.current.offsetWidth-Ln-360-G[4]))},[S]);y.useEffect(()=>{oe()},[S,oe]),y.useEffect(()=>(window.addEventListener("resize",oe),()=>{window.removeEventListener("resize",oe)}),[oe]);const P=x?Vn:No,{openThread:K,addThread:J,setOpenThread:Q}=y.useContext(P),ie=((he,le,fe)=>{const[Ce,Te]=y.useState(),[_e,ze]=y.useState("top"),Ve=y.useCallback(()=>{const je=document.getSelection(),dt=je?.anchorNode?.parentElement?.closest(ao+he)!=null&&je?.focusNode?.parentElement?.closest(ao+he)!=null;if(je&&!je.isCollapsed&&dt===!0){if(je.rangeCount>0){const Le=je.getRangeAt(0),De=us(Le.startContainer),nt=us(Le.endContainer);De&&nt&&De.id!==nt.id&&(Le.setEnd(Le.startContainer,Le.startOffset),je.removeAllRanges(),je.addRange(Le))}if(je.toString().trim().length>0){const Le=je.getRangeAt(0),{top:De,left:nt}=Le.getClientRects()[0],_t=je.anchorNode?.parentElement?.closest(ao+Dn);ze(fe&&_t?"left":"top"),Te({top:fe&&_t?De-10:De,left:nt})}}else Te(void 0)},[he,fe,le]);return y.useEffect(()=>(document.addEventListener("selectionchange",Ve),()=>{document.removeEventListener("selectionchange",Ve)}),[Ve]),{coords:Ce,alignment:_e}})(ss,!1,!i),re=I.current?.getBoundingClientRect(),ue=ie!=null&&ie.coords&&re?{left:ie.coords.left-re.left,top:ie.coords.top-re.top}:void 0,de=y.useCallback(()=>{const he=window.getSelection()?.getRangeAt(0),le=(()=>{const Te=window.getSelection();if(!Te||Te.rangeCount===0)return null;const _e=Te.getRangeAt(0),{startContainer:ze,endContainer:Ve}=_e,je=Te.anchorNode?.parentElement?.closest(ao+Dn),dt=cs(ze),Le=cs(Ve);if(!dt||!Le)return null;const De=ps(ze,dt),nt=ps(Ve,Le);return{startPath:De,startOffset:ds(ze,_e.startOffset),endPath:nt,endOffset:ds(Ve,_e.endOffset),startNodeId:je!=null?je.id:dt.id,endNodeId:je!=null?je.id:Le.id}})();if(!he||le==null)return;const fe={...g,...le,startPath:le.startPath.join(),endPath:le.endPath.join()},Ce=`${Il()}${_n}`;J(Ce,{type:"thread",id:Ce,roomId:`cockpit_${e}`,createdAt:new Date,comments:[],metadata:fe,updatedAt:new Date,resolved:!1}),Q(Ce)},[J,e,g,Q]);y.useEffect(()=>{K!=null&&S&&C()},[S,K,C]);const pe=L.fetchState==="In-Progress",ye=xn({mode:"all",defaultValues:rl(a),values:rl(a)}),be=ye.handleSubmit(he=>{const{recipientEmailList:le,subject:fe}=he[ko];if(i===!0)v?.(l?.id);else{const Ce=O?.replace(xd,ut.common.strings.empty);le!=null&&fe!=null&&m(le,fe,l?.id,Ce!=null&&Ce.length>0?O:void 0)}});y.useEffect(()=>{M(a.zeniRequestsHtml)},[a.zeniRequestsHtml]),y.useEffect(()=>{Y.current=l},[l]),y.useEffect(()=>{c(eu(a.attachmentFile)),f(!1)},[a.attachmentFile]),y.useEffect(()=>{d&&u()},[d,u]);const ge=Hn(`${w.year}-${w.month}-01`).format(ut.dateFormat.visual.MMMMFormat),se=X!=null?X.split(wo):[],Re=a.concatenatedHtml,xe=(a.zeniRequestsData??[]).length+Cd(a.companyMonthEndReportTemplatesData).length;return t.jsxs(t.Fragment,{children:[t.jsxs(h0,{ref:B,children:[t.jsx(di,{availableWidth:S?j:D}),t.jsxs(p0,{children:[t.jsx(Cn,{...ye,children:t.jsx("form",{id:al(il),onSubmit:be,children:t.jsxs(w0,{children:[t.jsx(zp,{sectionId:ko,previewMode:i,subject:H}),!i&&xe>0?t.jsx(Op,{totalItems:xe,onClickCustomerRequest:T}):null,t.jsxs(f0,{id:ss,ref:I,children:[t.jsxs(x0,{className:"monthEndReportCanvasWrapper",children:[l!=null||d?t.jsx(C0,{"data-testid":ce("email-attachment-container"),onClick:()=>{te.current&&te.current.scrollIntoView({behavior:"smooth"})},children:t.jsx(cp,{fileSizeError:d,setFileSizeError:_,loading:!1,showAnimation:!i&&$})}):null,i?t.jsx(ol,{dangerouslySetInnerHTML:{__html:qp(Re)}}):t.jsxs(t.Fragment,{children:[t.jsxs(m0,{id:ji,children:[t.jsx(Be,{dangerouslySetInnerHTML:{__html:se[0]!=null?se[0]+"</body></html>":ut.common.strings.empty}}),t.jsxs(g0,{children:[t.jsx(v0,{children:ut.cockpit.monthEndReport.editorTitle}),t.jsx(b0,{children:ut.cockpit.monthEndReport.editorNote})]})]}),t.jsx(y0,{id:Dn,children:t.jsx(Ph,{handleFileInputClick:()=>{ee.current!=null&&ee.current.click()},fileAttached:l!=null,enableZeniGPTFeature:n,isZeniGPTResponseLoading:pe,initialHtmlString:a.zeniRequestsHtml,improveUsingZeniGPTClick:b,setZeniRequestsHtml:M,customerRequestData:E})}),t.jsx(ol,{id:$o,dangerouslySetInnerHTML:{__html:se[1]!=null?"<html><body>"+se[1]:ut.common.strings.empty}})]}),l!=null?t.jsx(Gp,{ref:te,fileName:l.name,fileSize:yd(l.data),onRemove:()=>{l!==void 0&&l!=null&&(h([l.id]),c(void 0),f(!1))},isRemovable:!i}):null]}),ue?t.jsx(tp,{style:{zIndex:15},coords:ue,alignment:ie.alignment,onClick:de}):null,t.jsx(Bh,{canvasContainerRef:I,sortedThreads:W,editorMode:!i,isZeniUser:x})]})]})})}),t.jsx(jl,{name:l?.name??ut.common.strings.empty,fileRef:ee,sizeLimit:716800,acceptableTypes:u0,onFileChange:async he=>{(le=>{const fe=le.target.files?le.target.files[0]:null;if(fe)if(!nu(fe.type)||d)console.warn("Please select a valid file.");else{const Ce=new FileReader;Ce.onload=function(Te){const _e=Te.target?.result;if(typeof _e=="string"){const ze={data:_e.split(",")[1],name:fe.name,id:ou(e,fe.name)};c(ze),f(!0),r([ze])}},Ce.readAsDataURL(fe)}})(he)},onFileSizeError:he=>_(he),multiple:!1})]}),x===!0?Z?t.jsxs(t.Fragment,{children:[t.jsx(k0,{allThreadsSectionOpen:S,children:t.jsx(kd,{autoExpand:!0,autoFocus:!1,style:{borderLeft:`1px solid ${N.colors.grey3}`,boxShadow:`${p.sp0} 1px 2px ${p.sp0} ${Oe.boxShadowElevation}`},drawerSectionStyle:{width:`calc(100% - ${p.sp5} - ${p.sp5})`,backgroundColor:N.colors.background},threadsContainerStyle:{paddingBottom:i?"160px":p.sp12},collapsibleThreadStyle:{width:`calc(100% - ${p.sp4})`},allowComposer:!1,drawerTitle:ut.common.texts.comments,filter:o,textOverrides:{},preventResolvedThreadClick:!0,onThreadClick:(he,le)=>{Q(le);const fe=W.findIndex(Ce=>Ce[0]===le);C(),z.current?.[fe]?.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},onCloseAllThreadsDrawer:()=>C()})}),t.jsx(di,{availableWidth:D})]}):t.jsx(eh,{observer:V,canvasContainerRef:I,sortedThreads:W,threadsPositions:U,threadsRefs:z,unresolvedThreadsMap:ne,editorMode:!i,style:{minWidth:`${D}px`,position:"relative",height:"fit-content",top:`${I.current?.offsetTop}px`,minHeight:p.sp12},handleRemoveFloatingThread:ae}):t.jsx(di,{availableWidth:D})]}),t.jsx(Nl,{style:{zIndex:10},leftSideComponent:a.lastDraftSavedDate!=null&&i===!1?t.jsx(bp,{time:a.lastDraftSavedDate,user:a.reportLastSavedByUser,timeStampLabel:ut.cockpit.monthEndReport.timeStampLabel}):null,formId:al(il),cancelBtn:{isDisabled:pe,label:i===!0?ut.cockpit.monthEndReport.editButtonLabel:ut.cockpit.monthEndReport.saveChanges,onClick:i===!0?s:()=>{const he=ye.getValues(),{recipientEmailList:le,subject:fe}=he[ko];le!=null&&fe!=null&&k(le,fe,l?.id,O)},style:{width:"136px",padding:`${p.sp0} ${p.sp3}`,boxSizing:"border-box"},size:"medium",isLoading:a.saveMonthEndReportStatus.fetchState==="In-Progress",reverseSpinnerColor:!1},primaryBtn:{isDisabled:pe,isLoading:i===!0?a.sendMonthEndReportStatus.fetchState==="In-Progress":a.previewMonthEndReportStatus.fetchState==="In-Progress",style:{width:i===!0?"unset":"136px"},label:i===!0?ut.cockpit.monthEndReport.sendEmailButtonLabel.replace("__month__",ge):ut.cockpit.monthEndReport.preview,size:"medium"}})]})}const rl=e=>({[ko]:{recipientEmailList:e.recipientEmailList,subject:e.subject??ut.common.strings.empty}}),al=e=>`${e}_form`;$t.smallBold.lineHeightValue;const $0=["memo","activity"],sl=e=>Zl(e,$0),{common:{strings:{empty:Dc}},expenseAutomation:{transactions:{header:{vendors:N0,category:_0,classText:A0,date:R0,type:I0,amount:j0}}}}=Ae.getLocalizedStrings(),Oc={key:"vendor",value:N0,sortOrder:"ascending",width:new me(18,18),customStyle:{common:{paddingLeft:G[7]}}},L0={key:"category",value:_0,sortOrder:"ascending",width:new me(20,20),customStyle:{common:{paddingLeft:G[7]}}},D0={key:"class",value:A0,sortOrder:"ascending",width:new me(18,18),customStyle:{common:{paddingLeft:G[7]}}},O0={key:"date",value:R0,sortOrder:"descending",width:new me(11,11),customStyle:{common:{paddingLeft:12}}},M0={key:"transaction_type",value:I0,sortOrder:"descending",width:new me(13,13),customStyle:{common:{paddingLeft:G[3]}}},P0={key:"memo",value:Dc,sortOrder:"ascending",width:new me(6,6),customStyle:{common:{}}},Mc={key:"amount",value:j0,sortOrder:"ascending",width:new me(10,10),customStyle:{common:{paddingRight:G[4]}}},F0={key:"activity",value:Dc,sortOrder:"ascending",width:new me(4,4),customStyle:{common:{}}},ir=e=>{const n=[Oc,L0,D0,O0,M0,P0,Mc];return e===!0&&n.push(F0),n},Pc=[{...Oc,width:new me(65,65)},{...Mc,width:new me(30,30)}],ll="date",B0="descending",Fc=({sortConfig:e,isDisabled:n,isTransactionActivityEnabled:a,onColumnSortConfigChanged:i})=>{const E=Me(),S=rn(),o=S?Pc:ir(a),[g,x]=y.useState(Ni(o));y.useEffect(()=>{const b=Ni(o);for(const h of b)h.key===e.sortKey?h.sortOrder=e.sortOrder:h.sortOrder="ascending";x(b)},[e.sortKey,e.sortOrder,S]);const w=(b,h)=>{let r=h;e.sortKey===b&&(r=h==="ascending"?"descending":"ascending"),i(b,r)};return t.jsx(z0,{windowSize:E,"data-testid":ce("transaction-categorization-header-container"),children:g.map((b,h)=>{const r=n!=null||sl(b.key)!=null;return t.jsxs(H0,{sortDataValue:e.sortKey,actualDataValue:b.key,wrapperWidth:b.width,style:b.customStyle?.common,isSortDisabled:r,windowSize:E,isLastItem:h===g.length-1,"data-testid":ce("transaction-categorization-header-wrapper",b.key),children:[t.jsxs(K0,{"data-testid":ce("transaction-categorization-header",b.value?b.value:b.key),onClick:()=>(C=>{sl(C.key)==null&&w(su(C.key),C.sortOrder)})(b),isSortDisabled:r,children:[t.jsx(Y0,{children:b.value}),r?null:t.jsx(V0,{sortConfig:e,headerData:b,"data-testid":ce("transaction-categorization-sort-icon",b.key),children:t.jsx(G0,{})})]}),r?null:t.jsx(U0,{isSortDisabled:r,sortDataValue:e.sortKey,isVisible:e.sortKey===b.key&&e.sortKey!==ll,"data-testid":ce("transaction-categorization-close-icon",b.key),children:t.jsx(W0,{onClick:()=>{w(ll,B0)},"data-testid":ce("transaction-categorization-close-icon-button",b.key)})})]},b.key)})})},z0=A.div`
|
|
1812
|
-
top: ${p.sp0};
|
|
1813
|
-
left: ${p.sp0};
|
|
1814
|
-
height: ${50}px;
|
|
1815
|
-
z-index: 2;
|
|
1816
|
-
display: flex;
|
|
1817
|
-
align-items: center;
|
|
1818
|
-
justify-content: space-between;
|
|
1819
|
-
box-sizing: border-box;
|
|
1820
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
1821
|
-
position: sticky;
|
|
1822
|
-
`,H0=A.div`
|
|
1823
|
-
color: ${e=>e.sortDataValue!==e.actualDataValue||e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1824
|
-
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1825
|
-
max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
1826
|
-
padding-left: ${p.sp0};
|
|
1827
|
-
left: ${p.sp0};
|
|
1828
|
-
display: flex;
|
|
1829
|
-
align-items: center;
|
|
1830
|
-
gap: 6px;
|
|
1831
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1832
|
-
position: static;
|
|
1833
|
-
z-index: 0;
|
|
1834
|
-
box-sizing: border-box;
|
|
1835
|
-
`,W0=A(Do)`
|
|
1836
|
-
width: 12px;
|
|
1837
|
-
height: 12px;
|
|
1838
|
-
`,V0=A.div`
|
|
1839
|
-
display: flex;
|
|
1840
|
-
align-items: center;
|
|
1841
|
-
transform: ${e=>e.headerData.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
1842
|
-
${e=>e.headerData.sortOrder==="ascending"?"padding-top: 2px":"padding-bottom: 2px"};
|
|
1843
|
-
`,U0=A.div`
|
|
1844
|
-
display: ${e=>e.isVisible?"flex":"none"};
|
|
1845
|
-
align-items: center;
|
|
1846
|
-
padding-top: 2px;
|
|
1847
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1848
|
-
&:hover {
|
|
1849
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1850
|
-
}
|
|
1851
|
-
`,G0=A(Lo)`
|
|
1852
|
-
width: ${p.sp2};
|
|
1853
|
-
height: ${p.sp2};
|
|
1854
|
-
`,K0=A.div`
|
|
1855
|
-
display: flex;
|
|
1856
|
-
cursor: ${e=>e.isSortDisabled===!0?"not-allowed":"pointer"};
|
|
1857
|
-
gap: 6px;
|
|
1858
|
-
&:hover {
|
|
1859
|
-
color: ${e=>e.isSortDisabled?e.theme.colors.grey1:e.theme.colors.primary};
|
|
1860
|
-
}
|
|
1861
|
-
`,Y0=A(Nt)`
|
|
1862
|
-
display: flex;
|
|
1863
|
-
`,ui="expenseAutomationTransactionsPage",gn="transactionCategorizationListTable",Ke="account",pt="class",Tt="lineEntitySelection",q0="lineEntity",J0="recommendations",Bc="lineInfo",Z0="vendorDetails",X0="customerDetails",To="selectedTransactionIds",Qt=(e,n,a)=>`${e}.${a}.${n}`,{common:{strings:{underscore:Q0,hyphen:yo,empty:Sn}},expenseAutomation:{transactions:Vt},dateFormat:ex}=Ae.getLocalizedStrings(),qt={containerPaddingLeftRight:new me(G[3],G[4]),containerPaddingTopBottom:new me(G[1],G[2]),containerPaddingTopBottomEmpty:new me(G[2],G[3]),nameLogoWidth:new me(G[2],G[4]),nameLogoHeight:new me(G[2],G[4])},tx=({transactionView:e,transaction:n,sectionId:a,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:E,selectedTab:S,containerRef:o,listContainerRef:g,isCOTEnabled:x,cotTracking:w,onTransactionCategorizationRowClick:b,setCurrentTransactionInAction:h,vendorLoadOptions:r,openTooltipId:C,setOpenTooltipId:m,isUncategorizedExpenseCategoryEnabled:k,setActivityLogTransactionId:s,isTransactionActivityEnabled:u})=>{const T=Me(),v=rn(),[N,O]=y.useState(!1),[M,D]=y.useState(!1),{lineItemById:R,sortedLineItems:j}=n.transactionReviewLocalData,F=n.transactionReviewLocalData.tabSpecificLineItems?.[S]||[],Y=j.filter(V=>F.indexOf(V)!==-1),ee=[];Y.forEach(V=>{ee.push(R[V])});const{accountList:te,accountsHierarchyList:X,classHierarchyList:H,classList:L,uncategorizedAccounts:l,transactions:c,selectedCheckBoxTransactionIds:$}=e,f=$.includes(n.transactionId),d=vt(),_={control:()=>({marginLeft:-2,backgroundColor:N?d.colors.background:d.colors.grey5}),valueContainer:()=>({justifyContent:"flex-start",paddingLeft:G[0]}),menu:()=>({width:"150%",background:d.colors.grey5}),singleValue:()=>({color:N||f?d.colors.primary:d.colors.hero,paddingLeft:G[2]}),input:V=>({...V,color:N||f?d.colors.primary:d.colors.hero,textAlign:"left",paddingLeft:G[2]}),menuPortal:V=>({...V,zIndex:10})},I={..._,singleValue:V=>({...V,color:N||f?d.colors.primary:d.colors.hero}),menu:()=>({marginTop:G[1],marginLeft:-8}),input:V=>({...V,color:N||f?d.colors.primary:d.colors.hero,textAlign:"left"})},B=c.find(V=>V.id===n.transactionId),Z=y.useRef(null),[q,z]=y.useState(void 0),[W,U]=y.useState("bottom");return y.useEffect(()=>{if(q===void 0)return;const V=g?.current?._outerRef??null,ne=()=>{const ae=Z.current;if(ae==null||V==null)return;const oe=ae.getBoundingClientRect(),P=V.getBoundingClientRect(),K=V.scrollTop+(oe.bottom-P.top),J=V.scrollHeight-K;U(J>=288?"bottom":"top")};return ne(),window.addEventListener("resize",ne),V?.addEventListener("scroll",ne),()=>{window.removeEventListener("resize",ne),V?.removeEventListener("scroll",ne)}},[g,q]),t.jsxs(ox,{onMouseEnter:v?void 0:()=>O(!0),onMouseLeave:v?void 0:()=>O(!1),children:[t.jsx(rx,{className:"categorization-row-card",windowSize:T,isSelected:f,isCompressedMode:v,isHovered:N,children:t.jsx(ax,{children:ee.map((V,ne)=>t.jsx(sx,{ref:q===ne?Z:void 0,"data-testid":ce("transaction-categorization-list-row",V.lineId),windowSize:T,onClick:ae=>((oe,P)=>{const{transactionType:K}=P.transactionReviewLocalData;let J=oe.target;for(;J;){if(J.classList.contains("select-value-container")||J.classList.contains("item-value-container")||J.classList.contains("grouped-single-select-field__value-container")||J.classList.contains("auto-complete-grouped-creatable-single-custom-group-select-field__option")||J.classList.contains("grouped-single-select-field__input")||J.classList.contains("grouped-single-select-field__menu"))return;J=J.parentElement}K!=null&&b(P.transactionId,K)})(ae,n),children:t.jsx(nx,{isTransactionActivityEnabled:u,line:V,isHovered:N||f,isSelected:f,isCompressedMode:v,lineIndex:ne,sectionId:a,transaction:n,currentTransaction:B,windowSize:T,accountsHierarchyList:X,classHierarchyList:H,allAccountList:te,allClassList:L,uncategorizedAccounts:l,vendorSearchAutoCompleteData:i,vendorSearchAutoCompleteActions:E,setCurrentTransactionInAction:h,vendorLoadOptions:r,customStyle:_,customStyleAutoComplete:I,recommendations:V.recommendationsWithCOT,selectedTab:S,isCOTEnabled:x,menuPlacement:W,cotTracking:w,openTooltipId:C,setOpenTooltipId:m,isUncategorizedExpenseCategoryEnabled:k,onDropdownClose:()=>z(void 0),onDropdownOpen:()=>z(ne)})},`${n.transactionId}.${V.lineId}`))},n.transactionId)},n.transactionId),u===!0&&t.jsx(Sx,{className:"activity-log-icon",onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),onClick:V=>{V.stopPropagation(),s(n.transactionId)},children:t.jsx(Ee,{title:Vt.header.activity,placement:"bottom",children:t.jsx(Ex,{style:{color:M?d.colors.primary:d.colors.hero}})})})]})},nx=({accountsHierarchyList:e,allAccountList:n,allClassList:a,classHierarchyList:i,customStyle:E,customStyleAutoComplete:S,line:o,lineIndex:g,transaction:x,currentTransaction:w,windowSize:b,uncategorizedAccounts:h,isHovered:r=!1,isSelected:C=!1,isCompressedMode:m=!1,sectionId:k,recommendations:s,vendorSearchAutoCompleteData:u,selectedTab:T,isCOTEnabled:v,menuPlacement:N,cotTracking:O,openTooltipId:M,setCurrentTransactionInAction:D,vendorLoadOptions:R,setOpenTooltipId:j,isUncategorizedExpenseCategoryEnabled:F,isTransactionActivityEnabled:Y,onDropdownClose:ee,onDropdownOpen:te})=>{const{transactionDate:X,transactionType:H,transactionTypeName:L,memo:l}=x.transactionReviewLocalData,{setValue:c}=Wi(),$=y.useCallback((Xe,He)=>{O?.onCOTView!=null&&O.onCOTView(o.lineId,x.transactionId,Xe,He)},[O,o.lineId,x.transactionId]),f=o.lineDescription,d=y.useMemo(()=>{if(f||l)return[{title:Vt.description,description:f||yo},{title:Vt.header.memo,description:l||yo}]},[l,f]),_=Qt(k,Tt,g.toString()),I=Qt(k,Ke,g.toString()),B=Qt(k,pt,g.toString()),Z=(Xe,He)=>{if(m)return;let Fe;switch(He){case"vendor":Fe=_;break;case"category":Fe=I;break;case"class":Fe=B;break;default:return}c(`${Fe}.selectedOption`,Xe,{shouldValidate:!0,shouldDirty:!0})},q=vt(),z=y.useMemo(()=>w!=null&&dn(w)===!0?{id:x.transactionReviewLocalData.customer?.id??"",logo:x.transactionReviewLocalData.customer?.logo,name:x.transactionReviewLocalData.customer?.name??""}:{id:o.customer?.id??"",logo:o.customer?.logo,name:o.customer?.name??""},[w,o.customer?.id,o.customer?.logo,o.customer?.name,x.transactionReviewLocalData.customer?.id,x.transactionReviewLocalData.customer?.logo,x.transactionReviewLocalData.customer?.name]),W=y.useMemo(()=>w!=null&&dn(w)===!0?{id:x.transactionReviewLocalData.vendor?.id??"",logo:x.transactionReviewLocalData.vendor?.logo,name:x.transactionReviewLocalData.vendor?.name??""}:{id:o.vendor?.id??"",logo:o.vendor?.logo,name:o.vendor?.name??""},[w,o.vendor?.id,o.vendor?.logo,o.vendor?.name,x.transactionReviewLocalData.vendor?.id,x.transactionReviewLocalData.vendor?.logo,x.transactionReviewLocalData.vendor?.name]),U=o[pt]?.classId,V=o[Ke]?.qboId??o[Ke]?.accountId,ne=z?.id,ae=W?.id,oe=W?.name,[P,K]=y.useState(!U),[J,Q]=y.useState(!V||o[Ke]?.qboId!=null&&jn(h,o[Ke].qboId,F===!0?["income"]:void 0)===!0),[ie,re]=y.useState(!ae||!ne),ue=Xe=>s?.find(He=>He.vendor?.qboId===Xe||He.vendor?.id===Xe||He.vendor?.name===Xe)?.vendor?.reason??"",de=x.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],pe=Wl(e,de),ye=Hl(i,de),be=y.useCallback(Xe=>jn(h,Xe,F===!0?["income"]:void 0),[h,F]),[ge,se]=y.useState(!1),[Re,xe]=y.useState(!1),[he,le]=y.useState(!1),fe=(Xe,He)=>{D({transactionId:x.transactionId,lineItemId:o.lineId}),R(Xe,He)},Ce=()=>{re(!(ae||ne)),se(!1),ee?.()},Te=()=>{V&&o[Ke]?.qboId!=null&&jn(h,o[Ke].qboId,F===!0?["income"]:void 0)===!1?Q(!1):Q(!0),le(!1),ee?.()},_e=()=>{K(!U),xe(!1),ee?.()},ze=()=>{m||(ae||ne)&&(se(!0),te?.())},Ve=()=>{m||(xe(!0),te?.())},je=()=>{m||(le(!0),te?.())};y.useEffect(()=>{V&&o[Ke]?.qboId!=null&&jn(h,o[Ke].qboId,F===!0?["income"]:void 0)===!1?Q(!1):Q(!0)},[V]),y.useEffect(()=>{K(!U)},[U]),y.useEffect(()=>{re(!(ae||ne))},[ae,ne]);const dt=x.transactionReviewLocalData.selectedEntity,Le=x.transactionReviewLocalData.lineItemById[o.lineId].selectedEntityLine,De=w!=null&&dn(w)===!0?dt:Le,nt=y.useMemo(()=>{const Xe=x.transactionReviewLocalData.lineItemById[o.lineId]?.recommendationsWithCOT||[],He=u.entityAutoCompleteView;return{selectedOption:De?.qboId??De?.id,defaultOptions:zi(He,De,Xe??[])}},[De,x.transactionReviewLocalData.lineItemById,o.lineId,u.entityAutoCompleteView]),_t=(Xe,He)=>{if(He==null||!He)return;let Fe=[];return Xe.forEach(Jt=>{Fe=Fe.concat(Jt.options)}),Fe.find(Jt=>Jt.value===He)?.label??He},At=_t(ye,U),Jn=_t(pe,V),St=T==="review",Rn=Vo("vendor",nt.defaultOptions,nt.selectedOption),Fo=Vo("category",pe,V),Zn=Vo("class",ye,U);return t.jsx(t.Fragment,{children:(Xe=>{const He=m?Pc:ir(Xe);return He.map((Fe,Jt)=>{const Rt=`${x.transactionId}_${Fe.key}_${o.lineId}`;if(g>0&&w!=null&&dn(w)===!0&&Fe.key==="vendor")return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width},Rt);if(g>0&&Fe.key==="transaction_type")return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width},Rt);switch(Fe.key){case"activity":return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width},Rt);case"vendor":default:return t.jsxs(xt,{windowSize:b,wrapperWidth:Fe.width,className:"item-value-container",children:[!m&&t.jsx(pi,{isCOTEnabled:v,recommendations:de,type:"vendor",isFirstColumn:!0,isEnabled:!!De?.isPreFilled,isMisCategorized:Rn,onRecommendationClick:Z,selectedValue:ae,selectedValueLabel:oe,isReviewTab:St,isAccountOptionDisabled:be,existingOption:{label:w!=null&&dn(w)===!0?w?.vendor?.name:void 0,value:w!=null&&dn(w)===!0?w?.vendor?.id:void 0},cotTracking:O,lineId:o.lineId,transactionId:x.transactionId,openTooltipId:M,setOpenTooltipId:j}),t.jsx(xi,{children:ie===!0?t.jsx(mi,{isHovered:r,isCompressedMode:m,children:t.jsxs(hi,{onClick:It=>{It.stopPropagation(),!m&&(te?.(),re(!1),se(!0))},"data-testid":ce("add-vendor-button",k),style:{display:"inline-flex",alignItems:"center",color:Oe.brandColorGoldDark,cursor:"pointer",height:p.sp6},children:[t.jsx(gi,{}),Vt.addPayee]})}):ge===!0?t.jsx(Mt,{onClickAway:Ce,children:t.jsx(bx,{"data-testid":ce("vendor-selection-dropdown-container",Qt(k,Tt,g.toString())),children:t.jsx(Pd,{name:_,placeholder:Vt.addPayee,valueToInfo:ue,defaultValue:{selectedOption:nt.selectedOption,defaultOptions:nt.defaultOptions},type:"vendor",autoFocus:!ie,style:{width:"100%"},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",isOptionRemovable:!1,customStyleConfig:S,menuIsOpen:ge,onMenuClose:Ce,registerOptions:{required:!1},loadOptions:fe,showCOT:v,onCOTView:$,menuPlacement:N})})}):t.jsx(wx,{children:t.jsxs(fi,{isHovered:r,isCompressedMode:m,showOutline:!m&&Rn&&De?.isPreFilled!==!0&&!C&&St,children:[De!=null&&De.logo!=null?t.jsx(Fl,{photoUrl:De.logo.toString(),styles:{width:qt.nameLogoWidth.valuePx(b),height:qt.nameLogoHeight.valuePx(b)},fallbackAvatar:t.jsx(ul,{children:t.jsx(Bn,{name:De.name,size:p.sp4})})}):De!=null&&De.name!=null?t.jsx(ul,{children:t.jsx(Bn,{name:De.name,size:p.sp4})}):null,t.jsx(yx,{onClick:ze,"data-testid":ce("vendor-name-text",k),children:De!=null&&De.name?t.jsx(yt,{text:De.name,itemTextStyle:{color:r?q.colors.primary:q.colors.hero}}):t.jsx(vx,{children:yo})})]})})})]},Rt);case"category":{const It=w?.lines!=null?w?.lines[g]:void 0;return t.jsxs(xt,{windowSize:b,wrapperWidth:Fe.width,className:"item-value-container",children:[t.jsx(pi,{isCOTEnabled:v,recommendations:de,type:"category",isFirstColumn:!1,isReviewTab:St,isEnabled:!!o[Ke]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:Fo,onRecommendationClick:Z,selectedValue:V,selectedValueLabel:Jn,existingOption:{label:It?.account?.accountName,value:It?.account?.qboId??It?.account?.accountId},cotTracking:O,lineId:o.lineId,transactionId:x.transactionId,openTooltipId:M,setOpenTooltipId:j}),t.jsx(xi,{children:J===!0?t.jsx(mi,{isHovered:r,children:t.jsxs(hi,{onClick:an=>{an.stopPropagation(),!m&&(te?.(),Q(!1),le(!0))},"data-testid":ce("category-selection-field",I),style:{display:"inline-flex",alignItems:"center",color:Oe.brandColorGoldDark,cursor:"pointer",height:p.sp6},children:[t.jsx(gi,{}),Vt.addCategory]})}):he===!0?t.jsx(Mt,{onClickAway:Te,children:t.jsx(pl,{isHovered:r,"data-testid":ce("category-selection-dropdown-container",I),children:t.jsx(gr,{name:I,placeholder:Vt.addCategory,valueToId:an=>(Bo=>n.filter(zo=>zo.qboId===Bo)[0]?.qboId)(an),type:"category",pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",showCOT:v,defaultValue:{selectedOption:V,allOptions:pe},style:{display:"flex",flexGrow:1,width:"100%",cursor:"inherit"},registerOptions:{required:!1},menuIsOpen:he,autoFocus:!J&&(!V||o[Ke]?.qboId!=null&&[h.expense?.qboId,h.income?.qboId].includes(o[Ke].qboId)),onMenuClose:Te,customStyleConfig:E,disableCurrentOption:be,menuPlacement:N,onCOTView:$})})}):t.jsx(fi,{isHovered:r,showOutline:Fo&&o[Ke]?.isPreFilled!==!0&&!C&&St,children:t.jsx(hl,{onClick:je,"data-testid":ce("category-label-text",I),children:t.jsx(yt,{text:Jn??"",itemTextStyle:{color:r?q.colors.primary:q.colors.hero}})})})})]},Rt)}case"class":{const It=w?.lines!=null?w?.lines[g]:void 0;return t.jsxs(xt,{windowSize:b,wrapperWidth:Fe.width,className:"item-value-container",children:[t.jsx(pi,{isCOTEnabled:v,recommendations:de,type:"class",isFirstColumn:!1,isReviewTab:St,isEnabled:!!o[pt]?.isPreFilled,isAccountOptionDisabled:be,isMisCategorized:Zn,onRecommendationClick:Z,selectedValue:U,selectedValueLabel:At,existingOption:{label:It?.class?.className,value:It?.class?.classId},cotTracking:O,lineId:o.lineId,transactionId:x.transactionId,openTooltipId:M,setOpenTooltipId:j}),t.jsx(xi,{children:P===!0?t.jsx(mi,{isHovered:r,children:t.jsxs(hi,{onClick:an=>{an.stopPropagation(),!m&&(te?.(),K(!1),xe(!0))},"data-testid":ce("class-selection-field",B),style:{display:"inline-flex",alignItems:"center",color:Oe.brandColorGoldDark,cursor:"pointer",height:p.sp6},children:[t.jsx(gi,{}),Vt.addClass]})}):Re===!0?t.jsx(Mt,{onClickAway:_e,children:t.jsx(pl,{isHovered:r,"data-testid":ce("class-selection-dropdown-container",B),children:t.jsx(gr,{name:B,placeholder:Vt.addClass,valueToId:an=>(Bo=>a.filter(zo=>zo.classId===Bo)[0]?.accountingClassNumber??void 0)(an),type:"class",showCOT:v,defaultValue:{selectedOption:U,allOptions:ye},pageSource:"list_page",transactionStatus:St?"pending_review":"auto_categorized",menuIsOpen:Re,registerOptions:{required:!1},style:{width:"100%"},autoFocus:!P&&!U,customStyleConfig:E,onMenuClose:_e,menuPlacement:N,onCOTView:$})})}):t.jsx(fi,{isHovered:r,showOutline:Zn&&o[pt]?.isPreFilled!==!0&&!C&&St,children:t.jsx(hl,{"data-testid":ce("class-selection-field",B),onClick:Ve,children:t.jsx(yt,{text:At??"",itemTextStyle:{color:r?q.colors.primary:q.colors.hero}})})})})]},Rt)}case"date":return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width,children:t.jsx($n,{windowSize:b,isLastItem:Jt===He.length-1,children:t.jsx(Fi,{"data-testid":ce("date-field",Qt(k,pt,g.toString())),children:t.jsx(cx,{style:{color:r?q.colors.primary:q.colors.hero},children:X!=null?X.format(ex.visual.MMMDCommaYYYYformat):null})})})},Rt);case"transaction_type":return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width,children:t.jsx($n,{windowSize:b,"data-testid":ce("transaction-type-field",Qt(k,pt,g.toString())),isLastItem:Jt===He.length-1,children:L!=null?t.jsx(Od,{textColor:r?new Fn(q.colors.primary):Md(void 0,q),text:L??H}):null})},Rt);case"memo":return t.jsx(xt,{windowSize:b,wrapperWidth:Fe.width,children:t.jsx($n,{style:{lineHeight:p.sp3},windowSize:b,isLastItem:Jt===He.length-1,"data-testid":ce("memo-field",Qt(k,pt,g.toString())),children:d!=null?t.jsx(Ee,{placement:"bottom",data:d,variant:"multi-information-points",style:{maxHeight:"min(60vh, 360px)",overflowY:"auto",overflowX:"hidden"},children:t.jsx(ux,{style:{color:r?q.colors.primary:q.colors.hero}})}):t.jsx(dx,{children:yo})})},Rt);case"amount":{const It=ct("0,0.[00]",o.amount,!0);return t.jsx(xt,{windowSize:b,style:{paddingRight:G[4]},wrapperWidth:Fe.width,children:t.jsx($n,{windowSize:b,isLastItem:Jt===He.length-1,children:t.jsx(Fi,{"data-testid":ce("transaction-amount-field",Qt(k,pt,g.toString())),style:{color:r?q.colors.primary:q.colors.hero},children:It})})},Rt)}}})})(Y)})},cl=({isEnabled:e,isReviewTab:n,isMisCategorized:a,hasRecommendations:i,isTooltipVisible:E=!1})=>e?n?E?t.jsx(gx,{}):t.jsx(px,{}):E?t.jsx(hx,{}):t.jsx(mx,{className:"ai-icon-selected-plain"}):!e&&a||i?E?t.jsx(xx,{}):t.jsx(fx,{}):null,dl=({isFirstColumn:e,children:n})=>t.jsx(Hc,{isFirstColumn:e,children:n}),pi=({recommendations:e,isCOTEnabled:n,type:a,isReviewTab:i,selectedValueLabel:E,isFirstColumn:S,isEnabled:o=!1,isMisCategorized:g=!1,selectedValue:x,existingOption:w,cotTracking:b,lineId:h,openTooltipId:r,transactionId:C,isAccountOptionDisabled:m,onRecommendationClick:k,setOpenTooltipId:s})=>{const u=y.useMemo(()=>`${C}:${h}:${a}`,[C,h,a]),T=r===u,v=zd().analytics,{createAlternateRecommendationCallback:N}=Hd(),O=y.useCallback(ee=>{const te=e[1],X=e[0];N(a,{currentValue:E??Sn,transactionCurrentStatus:i?"pending_review":"auto_categorized",transactionPage:"list_page",cotTracking:b?{transactionId:C,lineId:h,onCOTView:(H,L,l,c)=>{b.onCOTView?.(H,L,l,c)}}:void 0},te,X)(ee)},[N,e,E,i,a,b,h,C]),M=Wd(e,a,n,w,"list_page",i?"pending_review":"auto_categorized",k,O,x,m),D=Vd(e,a),R=y.useCallback(()=>{s(u);const ee=M?.recommendations[0]?.cot??[],te=M?.recommendations[1]?.cot??[],X=te.length>0;if(v.trackTransactionCotView({recommendationFor:a,currentValue:E??Sn,recommendation:M?.recommendations[0]?.name??Sn,recommendationCot:ee,isRecommendationCotAvailable:ee.length>0,recommendationReason:M?.recommendations[0]?.reason??Sn,recommendationConfidencePercentage:M?.recommendations[0]?.confidencePercentage??null,recommendationConfidenceLevel:sr(lr(M?.recommendations[0]?.confidencePercentage).toLocaleLowerCase()),alternativeRecommendation:M?.recommendations[1]?.name??Sn,alternativeRecommendationCot:te,isAlternativeRecommendationCotAvailable:X,alternativeRecommendationReason:M?.recommendations[1]?.reason??Sn,alternativeRecommendationConfidencePercentage:M?.recommendations[1]?.confidencePercentage??null,alternativeRecommendationConfidenceLevel:X?sr(lr(M?.recommendations[1]?.confidencePercentage).toLocaleLowerCase()):null,transactionCurrentStatus:i?"pending_review":"auto_categorized",transactionPage:"list_page"}),b?.onCOTView!=null){const H=Ud(M);H!=null&&b.onCOTView(h,C,a,H)}},[v,M,i,E,a,h,C,u,s]),j=y.useCallback(()=>{r===u&&s(void 0)},[r,u,s]),F=y.useMemo(()=>!(!x||!D)&&e.some(ee=>a==="vendor"&&ee.vendor!=null?ee.vendor.id===x||ee.vendor.qboId===x:a==="category"&&ee.account!=null?ee.account.qboId===x||ee.account.accountId===x:a==="class"&&ee.class!=null&&ee.class.classId===x),[x,D,e,a]);if(!D)return t.jsx(Hc,{isFirstColumn:S});const Y=o||F;return M?t.jsx(dl,{isFirstColumn:S,children:t.jsx(Ee,{variant:"chain-of-thought",data:M,placement:"bottom-start",disableIntersectionObserver:!0,position:"static",display:"block",open:T,style:{width:"auto",height:"auto"},leaveDelay:200,onOpen:R,onClose:j,children:t.jsx(Cx,{children:t.jsx(cl,{isEnabled:Y,isReviewTab:i,isMisCategorized:g,hasRecommendations:D,isTooltipVisible:T})})})}):t.jsx(dl,{isFirstColumn:S,children:t.jsx(cl,{isEnabled:Y,isReviewTab:i,isMisCategorized:g,hasRecommendations:D,isTooltipVisible:T})})},zc=({isTransactionActivityEnabled:e})=>{const n=Me(),a=y.useRef(null),[i,E]=y.useState(0);y.useLayoutEffect(()=>{a.current&&E(a.current.offsetWidth)},[n]);const S=ir(e);return t.jsx(ix,{windowSize:n,ref:a,children:S.map((o,g)=>{const x=`${g}${Q0}${o.key}`;switch(o.key){case"activity":return t.jsx(xt,{windowSize:n,wrapperWidth:o.width},x);case"vendor":return t.jsx(xt,{windowSize:n,wrapperWidth:o.width,children:t.jsx($n,{windowSize:n,isLastItem:g===S.length-1,children:t.jsxs(Fi,{children:[t.jsx(Vi,{width:G[4],height:G[4]}),t.jsx(on,{width:i*o.width.value(n)/100,height:G[4],style:{display:"flex",alignItems:"center"}})]})})},x);default:return t.jsx(xt,{windowSize:n,wrapperWidth:o.width,children:t.jsx($n,{windowSize:n,isLastItem:g===S.length-1,children:t.jsx(on,{width:i*o.width.value(n)/100,height:G[4],style:{display:"flex",alignItems:"center"}})})},x)}})})},ox=A.div`
|
|
1864
|
-
display: flex;
|
|
1865
|
-
height: 100%;
|
|
1866
|
-
flex: 1;
|
|
1867
|
-
align-items: center;
|
|
1868
|
-
|
|
1869
|
-
&:hover .activity-log-icon {
|
|
1870
|
-
visibility: visible;
|
|
1871
|
-
}
|
|
1872
|
-
`,ix=A.div`
|
|
1873
|
-
display: flex;
|
|
1874
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1875
|
-
padding-left: ${e=>qt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1876
|
-
padding-right: ${e=>qt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1877
|
-
padding-top: ${e=>qt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1878
|
-
padding-bottom: ${e=>qt.containerPaddingTopBottomEmpty.valuePx(e.windowSize)};
|
|
1879
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1880
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1881
|
-
border-radius: ${p.sp2};
|
|
1882
|
-
color: ${e=>e.theme.colors.hero};
|
|
1883
|
-
cursor: pointer;
|
|
1884
|
-
&:hover {
|
|
1885
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
box-sizing: border-box;
|
|
1889
|
-
align-items: center;
|
|
1890
|
-
justify-content: space-between;
|
|
1891
|
-
`,rx=A.div`
|
|
1892
|
-
display: flex;
|
|
1893
|
-
height: 100%;
|
|
1894
|
-
flex: 1;
|
|
1895
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
1896
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
1897
|
-
box-shadow: ${e=>`${p.sp0} 2px ${p.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
1898
|
-
border-radius: ${p.sp2};
|
|
1899
|
-
color: ${e=>e.theme.colors.hero};
|
|
1900
|
-
border-color: ${e=>e.isSelected?e.theme.colors.primary:"none"};
|
|
1901
|
-
cursor: pointer;
|
|
1902
|
-
${e=>e.isCompressedMode&&We`
|
|
1903
|
-
padding-left: ${qt.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
1904
|
-
`}
|
|
1905
|
-
${e=>!e.isCompressedMode&&We`
|
|
1906
|
-
&:hover {
|
|
1907
|
-
border-color: ${e.theme.colors.primary};
|
|
1908
|
-
}
|
|
1909
|
-
`}
|
|
1910
|
-
|
|
1911
|
-
box-sizing: border-box;
|
|
1912
|
-
align-items: center;
|
|
1913
|
-
justify-content: space-between;
|
|
1914
|
-
|
|
1915
|
-
.ai-icon-selected-plain {
|
|
1916
|
-
color: ${e=>e.theme.colors.hero};
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
${({isHovered:e,theme:n})=>e?We`
|
|
1920
|
-
.ai-icon-selected-plain {
|
|
1921
|
-
color: ${n.colors.primary};
|
|
1922
|
-
}
|
|
1923
|
-
`:null};
|
|
1924
|
-
`,ax=A.div`
|
|
1925
|
-
display: flex;
|
|
1926
|
-
flex: 1;
|
|
1927
|
-
flex-direction: column;
|
|
1928
|
-
width: 100%;
|
|
1929
|
-
box-sizing: border-box;
|
|
1930
|
-
align-items: center;
|
|
1931
|
-
justify-content: space-around;
|
|
1932
|
-
`,sx=A.div`
|
|
1933
|
-
display: flex;
|
|
1934
|
-
flex: 1;
|
|
1935
|
-
flex-direction: row;
|
|
1936
|
-
width: 100%;
|
|
1937
|
-
align-items: center;
|
|
1938
|
-
justify-content: space-between;
|
|
1939
|
-
height: ${p.sp8};
|
|
1940
|
-
padding-top: ${e=>qt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1941
|
-
padding-bottom: ${e=>qt.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
1942
|
-
`,xt=A.div`
|
|
1943
|
-
display: flex;
|
|
1944
|
-
align-items: center;
|
|
1945
|
-
flex-direction: row;
|
|
1946
|
-
position: relative;
|
|
1947
|
-
width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${p.sp4})`};
|
|
1948
|
-
min-width: ${e=>`calc(${e.wrapperWidth.valuePercentage(e.windowSize)} - ${p.sp4})`};
|
|
1949
|
-
:last-of-type {
|
|
1950
|
-
padding-right: ${p.sp0};
|
|
1951
|
-
}
|
|
1952
|
-
`,lx=We`
|
|
1953
|
-
word-break: break-word;
|
|
1954
|
-
white-space: nowrap;
|
|
1955
|
-
-webkit-line-clamp: 1;
|
|
1956
|
-
-webkit-box-orient: vertical;
|
|
1957
|
-
overflow: hidden;
|
|
1958
|
-
text-overflow: ellipsis;
|
|
1959
|
-
display: -webkit-box;
|
|
1960
|
-
`,$n=A(Be)`
|
|
1961
|
-
overflow: hidden;
|
|
1962
|
-
justify-content: ${e=>e.isLastItem?"flex-end":"flex-start"};
|
|
1963
|
-
display: flex;
|
|
1964
|
-
width: 100%;
|
|
1965
|
-
align-items: center;
|
|
1966
|
-
`,Fi=A.div`
|
|
1967
|
-
display: flex;
|
|
1968
|
-
flex-direction: row;
|
|
1969
|
-
column-gap: ${p.sp2};
|
|
1970
|
-
align-items: center;
|
|
1971
|
-
`,cx=A(Be)`
|
|
1972
|
-
${lx};
|
|
1973
|
-
color: ${e=>e.theme.colors.hero};
|
|
1974
|
-
`,hi=A(Be)`
|
|
1975
|
-
color: ${e=>e.theme.colors.hero};
|
|
1976
|
-
`,gi=A(Oo)`
|
|
1977
|
-
width: ${p.sp3};
|
|
1978
|
-
height: ${p.sp3};
|
|
1979
|
-
margin: ${p.sp1};
|
|
1980
|
-
`,dx=A.div`
|
|
1981
|
-
margin: ${p.sp3};
|
|
1982
|
-
`,ux=A(e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.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"}),y.createElement("path",{d:"M14.055 8.06982L5.80499 8.06982",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M10.305 12.5698L5.80499 12.5698",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
|
|
1983
|
-
width: ${p.sp3};
|
|
1984
|
-
height: ${p.sp3};
|
|
1985
|
-
margin-left: 10px;
|
|
1986
|
-
`,px=A(Yd)`
|
|
1987
|
-
width: ${p.sp5};
|
|
1988
|
-
height: ${p.sp5};
|
|
1989
|
-
`,hx=A(bu)`
|
|
1990
|
-
width: ${p.sp5};
|
|
1991
|
-
height: ${p.sp5};
|
|
1992
|
-
`,gx=A(Kd)`
|
|
1993
|
-
width: ${p.sp5};
|
|
1994
|
-
height: ${p.sp5};
|
|
1995
|
-
`,mx=A(vu)`
|
|
1996
|
-
width: ${p.sp5};
|
|
1997
|
-
height: ${p.sp5};
|
|
1998
|
-
`,fx=A(Kn)`
|
|
1999
|
-
width: ${p.sp3};
|
|
2000
|
-
height: ${p.sp3};
|
|
2001
|
-
path {
|
|
2002
|
-
stroke-width: 2;
|
|
2003
|
-
}
|
|
2004
|
-
`,xx=A(qd)`
|
|
2005
|
-
width: ${p.sp3};
|
|
2006
|
-
height: ${p.sp3};
|
|
2007
|
-
`,Hc=A.div`
|
|
2008
|
-
display: flex;
|
|
2009
|
-
align-items: center;
|
|
2010
|
-
justify-content: center;
|
|
2011
|
-
width: ${p.sp5};
|
|
2012
|
-
margin-left: ${e=>e.isFirstColumn?p.sp2:p.sp0};
|
|
2013
|
-
height: 100%;
|
|
2014
|
-
`,Cx=A.div`
|
|
2015
|
-
display: flex;
|
|
2016
|
-
align-items: center;
|
|
2017
|
-
justify-content: center;
|
|
2018
|
-
width: auto;
|
|
2019
|
-
cursor: pointer;
|
|
2020
|
-
`,yx=A(Be)`
|
|
2021
|
-
display: flex;
|
|
2022
|
-
max-width: calc(100% - ${p.sp6});
|
|
2023
|
-
flex: 1 1 auto;
|
|
2024
|
-
color: ${e=>e.theme.colors.primary};
|
|
2025
|
-
text-align: center;
|
|
2026
|
-
align-items: center;
|
|
2027
|
-
overflow: hidden;
|
|
2028
|
-
display: flex;
|
|
2029
|
-
`,ul=A.div`
|
|
2030
|
-
display: flex;
|
|
2031
|
-
`,bx=A.div`
|
|
2032
|
-
width: 100%;
|
|
2033
|
-
padding-left: 10px;
|
|
2034
|
-
margin-left: ${p.sp0};
|
|
2035
|
-
border-radius: ${p.sp1};
|
|
2036
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2037
|
-
display: flex;
|
|
2038
|
-
align-items: center;
|
|
2039
|
-
flex-direction: row;
|
|
2040
|
-
`,mi=A.div`
|
|
2041
|
-
padding: ${p.sp0} ${p.sp2};
|
|
2042
|
-
border-radius: ${p.sp1};
|
|
2043
|
-
margin-left: ${p.sp0};
|
|
2044
|
-
width: 100%;
|
|
2045
|
-
background-color: ${e=>e.isCompressedMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
2046
|
-
`,pl=A.div`
|
|
2047
|
-
width: 100%;
|
|
2048
|
-
border-radius: ${p.sp1};
|
|
2049
|
-
padding-left: 2px;
|
|
2050
|
-
background-color: ${e=>e.theme.colors.background};
|
|
2051
|
-
background-color: ${e=>e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
2052
|
-
display: flex;
|
|
2053
|
-
align-items: center;
|
|
2054
|
-
flex-direction: row;
|
|
2055
|
-
`,vx=A(Be)``,wx=A.div`
|
|
2056
|
-
width: 100%;
|
|
2057
|
-
display: flex;
|
|
2058
|
-
padding-left: ${p.sp0};
|
|
2059
|
-
`,fi=A.div`
|
|
2060
|
-
width: 100%;
|
|
2061
|
-
display: flex;
|
|
2062
|
-
flex-direction: row;
|
|
2063
|
-
align-items: center;
|
|
2064
|
-
gap: ${p.sp2};
|
|
2065
|
-
padding: ${p.sp2};
|
|
2066
|
-
padding-left: ${p.sp2};
|
|
2067
|
-
border-radius: ${p.sp1};
|
|
2068
|
-
background-color: ${e=>e.isCompressedMode===!0?"transparent":e.isHovered?e.theme.colors.background:e.theme.colors.grey5};
|
|
2069
|
-
outline: ${e=>e.showOutline?`1px dashed ${e.theme.colors.grey1}`:"none"};
|
|
2070
|
-
outline-color: ${e=>e.isHovered&&e.theme.colors.primary};
|
|
2071
|
-
`,hl=A.div``,xi=A.div`
|
|
2072
|
-
display: flex;
|
|
2073
|
-
align-items: center;
|
|
2074
|
-
width: calc(100% - ${p.sp5});
|
|
2075
|
-
`,Sx=A.div`
|
|
2076
|
-
display: flex;
|
|
2077
|
-
align-items: center;
|
|
2078
|
-
justify-content: center;
|
|
2079
|
-
cursor: pointer;
|
|
2080
|
-
visibility: hidden;
|
|
2081
|
-
flex-shrink: 0;
|
|
2082
|
-
margin-left: ${p.sp3};
|
|
2083
|
-
`,Ex=A(e=>y.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.createElement("path",{d:"M8 4.66602V7.93891L11.0228 10.9322",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M4.1813 4.23989L1.83594 4.24014V1.89453",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})))`
|
|
2084
|
-
width: ${p.sp3};
|
|
2085
|
-
height: ${p.sp3};
|
|
2086
|
-
`,kx=({sortConfig:e,fetchState:n,isDisabled:a,isTransactionActivityEnabled:i,onColumnSortConfigChanged:E})=>{const S=Me();return t.jsxs(Tx,{windowSize:S,children:[t.jsx(Fc,{isTransactionActivityEnabled:i,sortConfig:e,isDisabled:n==="In-Progress"?"readonly":a,onColumnSortConfigChanged:E,"data-testid":ce("transaction-categorization-list-empty-table-header")}),t.jsx($x,{windowSize:S,"data-testid":ce("transaction-categorization-list-empty-rows-container"),children:[...Array(3)].map((o,g)=>t.jsx(zc,{isTransactionActivityEnabled:i,"data-testid":ce("transaction-categorization-list-empty-row",g.toString())},g))})]})},Tx=A.div`
|
|
2087
|
-
display: block;
|
|
2088
|
-
min-height: 100%;
|
|
2089
|
-
flex-direction: column;
|
|
2090
|
-
width: 100%;
|
|
2091
|
-
padding-left: ${p.sp8};
|
|
2092
|
-
padding-right: ${p.sp8};
|
|
2093
|
-
`,$x=A.div`
|
|
2094
|
-
display: flex;
|
|
2095
|
-
flex: 1;
|
|
2096
|
-
min-height: 100%;
|
|
2097
|
-
flex-direction: column;
|
|
2098
|
-
row-gap: ${p.sp3};
|
|
2099
|
-
`,{common:Nx,transactionDetail:{notCategorizedTooltipText:_x}}=Ae.getLocalizedStrings(),Ci={rowGap:new me(G[0],G[2],G[3])},Ax=({selectedTab:e,transactionView:n,receiptUploadEndpoint:a,authParams:i,sectionId:E,isCOTEnabled:S,isDisabled:o,vendorSearchAutoCompleteActions:g,isTransactionActivityEnabled:x,vendorSearchAutoCompleteData:w,setCurrentTransactionInAction:b,vendorLoadOptions:h,onTransactionCategorizationRowClick:r,onUpdateTransactionCategorizationUIState:C,onUpdateScrollYOffSetTransactionCategorizationUIState:m,onFetchTransactionCategorizationList:k,containerRef:s,cotTracking:u,isUncategorizedExpenseCategoryEnabled:T,setActivityLogTransactionId:v})=>{const N=Me(),O=rn(),[M,D]=y.useState(void 0),{fetchState:R,uiState:j,transactionLocalData:F,selectedCheckBoxTransactionIds:Y,transactionIdsWithUnsavedData:ee,transactions:te,uncategorizedAccounts:X}=n;Un({componentName:`expense_automation.transaction_categorization.${e}`,enabled:R==="Completed"});const H=y.useRef(null),L=y.useRef({}),{control:l}=Wi();y.useEffect(()=>{H.current?.resetAfterIndex(0,!0)},[N,H,F]),y.useEffect(()=>{H.current?.scrollTo(j.scrollPosition?.scrollTop??0)},[e]);const c=y.useCallback(oe=>{if(L.current?.[oe]!=null){const J=N==="small"&&j.pageToken==null&&oe===F.length-1?Ci.rowGap.value("medium-regular"):Ci.rowGap.value(N);return L.current[oe]+J}if(F[oe]==null)return 0;const P=F[oe].transactionReviewLocalData,K=Object.keys(P.lineItemById).length;return K!=null&&!isNaN(K)&&K>1?56*K+Ci.rowGap.value(N)*(K-1):56},[F,N,j.pageToken,j.sortKey,j.sortOrder]),$=y.useCallback((oe,P)=>{L.current={...L.current,[oe]:P},H.current?.resetAfterIndex(0,!0)},[N,H,F,j.sortKey,j.sortOrder]),f=y.useCallback(()=>{(j.pageToken!=null&&n.refreshStatus.fetchState!=="In-Progress"||n.refreshStatus.fetchState==="Completed")&&k(e,j.searchString,!0,j.pageToken,!0,!1)},[n.refreshStatus.fetchState,k,e,j.pageToken,j.searchString,j.sortKey,j.sortOrder]),d=y.useCallback(()=>{j.pageToken!=null&&f()},[f,j.pageToken,j.sortKey,j.sortOrder]),_=Td(oe=>m(e,{scrollPosition:{scrollTop:oe}}),1e3,{trailing:!0}),I=oe=>oe<n.transactionLocalData.length,B=(oe,P)=>{C(e,{sortOrder:P,sortKey:oe}),k(e,j.searchString,!1,null,!1,!0)};let Z=[],q=[];(R==="Completed"||n.transactionLocalData.length>0)&&(q=n.transactionLocalData.map((oe,P)=>{const K=(ie=>{if(e==="autoCategorized")return!Y.includes(ie);const re=F.find(de=>de.transactionId===ie)?.transactionReviewLocalData,ue=te.find(de=>de.id===ie);return ue!=null&&re!=null?!au(ue,re,X,T)||!(T!==!0||!pr(X,re.lineItemById,["expense"]))&&ee.includes(ie)===!1:Y.length===0||!Y.includes(ie)})(oe.transactionId);let J=!1;T===!0&&K===!0&&e==="review"&&pr(X,oe.transactionReviewLocalData.lineItemById,["expense"])&&(J=!ee.includes(oe.transactionId));const Q=oe.transactionReviewLocalData;return{label:t.jsx(tx,{isTransactionActivityEnabled:x,transactionView:n,sectionId:`${E}.${P}.${Bc}`,transaction:oe,receiptUploadEndpoint:a,authParams:i,onTransactionCategorizationRowClick:r,vendorLoadOptions:h,setCurrentTransactionInAction:b,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:w,selectedTab:e,containerRef:s,listContainerRef:H,isCOTEnabled:S,cotTracking:u,openTooltipId:M,setOpenTooltipId:D,isUncategorizedExpenseCategoryEnabled:T,setActivityLogTransactionId:v},`${oe.transactionId}.${Q.transactionType}`),value:oe.transactionId,defaultChecked:!1,groupLabel:!1,isException:J,exceptionMode:J===!0?"checked_or_hover":void 0,isSticky:!0,isDisabled:K===!0?"readonly":void 0,exceptionType:J===!0?"alert":void 0,exceptionInfo:J===!0?_x:void 0,exceptionTooltipStyle:{textAlign:"center",maxWidth:"250px",padding:`12px ${p.sp2}`}}}),Z=q.map(oe=>oe.value));const z={label:"All",value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},{title:W,subTitle:U}=rt("transaction_categorization").allDoneText,V=F.map(oe=>oe.transactionId),ne=y.useMemo(()=>n.totalCountByTab[e],[e,n.totalCountByTab]),ae=y.useMemo(()=>F.reduce((oe,P)=>{const K=Object.keys(P.transactionReviewLocalData.lineItemById).length;return oe+(K>0?K:1)},0)<n.totalCountByTab[e]?F.length+1:F.length,[F,n.totalCountByTab,e]);return t.jsx(Dx,{windowSize:N,"data-testid":ce("transaction-categorization-list-wrapper"),children:t.jsx(Ox,{windowSize:N,"data-testid":ce("transaction-categorization-list-container"),children:R==="Error"?t.jsxs(Px,{windowSize:N,"data-testid":ce("transaction-categorization-reload-page"),children:[t.jsx(Fx,{onClick:()=>k(e,void 0,!0,null,!1,!0),"data-testid":ce("transaction-categorization-reload-icon"),children:t.jsx(Ro,{})}),t.jsx(Bx,{"data-testid":ce("transaction-categorization-reload-label"),children:Nx.reloadPage.label})]}):R==="Completed"&&F.length===0?t.jsx(Yt,{tab:"transaction_categorization",title:W,subTitle:U,"data-testid":ce("transaction-categorization-empty-table-section")}):R==="Not-Started"||R==="In-Progress"&&F.length===0?t.jsx(kx,{sortConfig:{sortKey:j.sortKey,sortOrder:j.sortOrder},fetchState:R,onColumnSortConfigChanged:B,"data-testid":ce("transaction-categorization-list-empty-table"),isTransactionActivityEnabled:x}):t.jsx(Mx,{windowSize:N,"data-testid":ce("transaction-categorization-list-view"),children:t.jsx(Pl,{control:l,name:"selectedTransactionIds",defaultValue:[],render:({field:{value:oe,ref:P,onChange:K}})=>t.jsx(Wc.Provider,{value:{value:oe,mode:"off",allCheckBoxValues:Z,index:0,isCompressedMode:O,sortKey:j.sortKey,sortOrder:j.sortOrder,fetchState:R,isDisabled:o,groupLabelCheckBox:z,isTransactionActivityEnabled:x,onColumnSortConfigChanged:B,ref:P,onChange:K,selectedTab:e},children:t.jsx(Io,{children:({height:J,width:Q})=>t.jsx($d,{isItemLoaded:I,itemCount:ne,loadMoreItems:d,children:({onItemsRendered:ie,ref:re})=>t.jsx(jo,{ref:ue=>{re(ue),H.current=ue},height:J,itemCount:ae,itemKey:ue=>`${F[ue]?.transactionId??""}-row-${ue}`,innerElementType:Rx,onItemsRendered:ie,width:Q,style:{willChange:"auto"},overscanCount:1,itemSize:c,itemData:{checkboxes:q,value:oe,allCheckBoxValues:Z,groupLabelCheckBox:z,categorizationGroupValue:V,transactionLocalData:F,isCompressedMode:O,mode:"always_on",setRowHeight:$,isItemLoaded:I,ref:re,onChange:K,selectedCheckBoxTransactionIds:Y,isTransactionActivityEnabled:x},initialScrollOffset:n.uiState.scrollPosition?.scrollTop,onScroll:({scrollOffset:ue})=>{_(ue)},children:jx})})})})})})})})},Rx=e=>{const{isCompressedMode:n,value:a,allCheckBoxValues:i,groupLabelCheckBox:E,index:S,isDisabled:o,fetchState:g,sortKey:x,sortOrder:w,mode:b,isTransactionActivityEnabled:h,ref:r,onChange:C,onColumnSortConfigChanged:m}=Ix(),{children:k,style:s,...u}=e;return g==="Completed"?t.jsxs(zx,{ref:r,style:{...s,width:"auto",maxWidth:"var(--side-panel-list-width, 100%)"},...u,children:[t.jsx(Hx,{children:t.jsx(Vl,{selectionLimit:Wn,value:a,checkBox:{label:t.jsx(Lx,{isCompressedMode:n,children:t.jsx(Fc,{isTransactionActivityEnabled:h,sortConfig:{sortKey:x,sortOrder:w},isDisabled:o,onColumnSortConfigChanged:m})}),value:"allTransactionOptionId",defaultChecked:!1,groupLabel:!1},isDisabled:"disabled",groupLabelCheckBox:E,allCheckBoxValues:i,mode:n?"off":b,draggable:!1,checkBoxStyle:n?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:p.sp3},name:"transactionCategorizationHeader",index:S,onChangeHandler:T=>Ul({event:T,value:a,allCheckBoxValues:i,groupLabelCheckBox:E,onChange:C}),ref:r})}),t.jsx(Wx,{children:k})]},`${i[S]}-${S}`):null},Wc=y.createContext(void 0),Ix=()=>{const e=y.useContext(Wc);if(!e)throw new Error("useStickyContext must be used within a StickyProvider");return e},jx=({index:e,style:n,data:a})=>{const{selectedTransactionId:i}=Hi(),{checkboxes:E,value:S,groupLabelCheckBox:o,categorizationGroupValue:g,allCheckBoxValues:x,transactionLocalData:w,isCompressedMode:b,isItemLoaded:h,setRowHeight:r,ref:C,onChange:m,selectedCheckBoxTransactionIds:k,isTransactionActivityEnabled:s}=a,u=y.useRef(null),T=Me();if(y.useEffect(()=>{u.current?.firstElementChild!=null&&r(e,u.current.firstElementChild.clientHeight)},[e,u,T,w[e]?.transactionReviewLocalData]),h(e)===!0){const v=E[e],N=i!=null&&i===g[e];return t.jsx(gl,{isPanelSelected:N,isCompressedMode:b,style:{...n,paddingBottom:p.sp0,width:"100%",flex:"1"},ref:u,children:t.jsx(Vl,{selectionLimit:Wn,checkBox:b===!0?{...v,isException:!1}:v,value:S,groupLabelCheckBox:o,allCheckBoxValues:x,mode:b===!0||v.isDisabled==="readonly"||k.includes(v.value)===!1&&k.length>=Wn?"off":"always_on",draggable:!1,isDisabled:v.isDisabled,checkBoxStyle:b===!0?{display:"none"}:{padding:20},labelCheckBoxStyle:{padding:p.sp3},infoIconContainerStyle:b===!0?{display:"none"}:{padding:20},name:`${gn}.${S}`,ref:C,index:e,onChangeHandler:O=>Ul({event:O,value:S,allCheckBoxValues:x,groupLabelCheckBox:o,onChange:m})})},g[e])}return t.jsx(gl,{isCompressedMode:b,style:{...n,paddingBottom:p.sp0,width:"100%",flex:"1"},ref:u,children:t.jsx(Vx,{children:t.jsx(zc,{isTransactionActivityEnabled:s})})},Il())},Lx=A.div`
|
|
2100
|
-
flex: 1;
|
|
2101
|
-
width: auto;
|
|
2102
|
-
padding-left: ${({isCompressedMode:e})=>e===!0?p.sp8:p.sp0};
|
|
2103
|
-
padding-right: ${({isCompressedMode:e})=>e===!0?p.sp0:p.sp8};
|
|
2104
|
-
`,Dx=A.div`
|
|
2105
|
-
width: 100%;
|
|
2106
|
-
height: 100%;
|
|
2107
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
2108
|
-
`,Ox=A.div`
|
|
2109
|
-
height: 100%;
|
|
2110
|
-
`,Mx=A.div`
|
|
2111
|
-
height: 100%;
|
|
2112
|
-
display: flex;
|
|
2113
|
-
flex-direction: column;
|
|
2114
|
-
max-width: 99.9%;
|
|
2115
|
-
`,Px=A.div`
|
|
2116
|
-
display: flex;
|
|
2117
|
-
width: 100%;
|
|
2118
|
-
height: ${e=>`calc(100% - ${Ml.valuePx(e.windowSize)})`};
|
|
2119
|
-
flex-direction: column;
|
|
2120
|
-
justify-content: center;
|
|
2121
|
-
align-items: center;
|
|
2122
|
-
`,Fx=A.div`
|
|
2123
|
-
height: 96px;
|
|
2124
|
-
width: 96px;
|
|
2125
|
-
background: ${e=>e.theme.colors.background};
|
|
2126
|
-
border-radius: 50%;
|
|
2127
|
-
cursor: pointer;
|
|
2128
|
-
& svg {
|
|
2129
|
-
margin: ${p.sp5};
|
|
2130
|
-
color: ${e=>e.theme.colors.grey1};
|
|
2131
|
-
}
|
|
2132
|
-
&:hover {
|
|
2133
|
-
& svg {
|
|
2134
|
-
color: ${e=>e.theme.colors.primary};
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
`,Bx=A(wt)`
|
|
2138
|
-
margin-top: ${p.sp3};
|
|
2139
|
-
color: ${e=>e.theme.colors.hero};
|
|
2140
|
-
`,gl=A.div`
|
|
2141
|
-
top: ${p.sp0};
|
|
2142
|
-
left: ${p.sp0};
|
|
2143
|
-
padding-bottom: ${p.sp3};
|
|
2144
|
-
padding-left: ${({isCompressedMode:e})=>e===!0?p.sp8:p.sp0};
|
|
2145
|
-
padding-right: ${({isCompressedMode:e})=>e===!0?p.sp0:p.sp8};
|
|
2146
|
-
box-sizing: border-box;
|
|
2147
|
-
${e=>e.isPanelSelected===!0&&We`
|
|
2148
|
-
.categorization-row-card {
|
|
2149
|
-
${Gi(e.theme)}
|
|
2150
|
-
}
|
|
2151
|
-
`}
|
|
2152
|
-
`,zx=A.div`
|
|
2153
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
2154
|
-
`,Hx=A.div`
|
|
2155
|
-
top: 0;
|
|
2156
|
-
left: 0;
|
|
2157
|
-
width: 100%;
|
|
2158
|
-
min-width: 100%;
|
|
2159
|
-
z-index: 11;
|
|
2160
|
-
display: flex;
|
|
2161
|
-
align-items: center;
|
|
2162
|
-
position: sticky;
|
|
2163
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
2164
|
-
`,Wx=A.div`
|
|
2165
|
-
position: relative;
|
|
2166
|
-
width: auto;
|
|
2167
|
-
height: 100%;
|
|
2168
|
-
`,Vx=A.div`
|
|
2169
|
-
padding-left: ${p.sp8};
|
|
2170
|
-
`,Ux=({selectedTab:e,transactionView:n,receiptUploadEndpoint:a,authParams:i,sectionId:E,vendorSearchAutoCompleteData:S,vendorSearchAutoCompleteActions:o,isCOTEnabled:g,isTransactionActivityEnabled:x,setCurrentFooterFormId:w,setLocalDataForCategoryAndClass:b,onTransactionCategorizationRowClick:h,onUpdateTransactionCategorizationUIState:r,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:m,onSaveUpdateTransactionCategorization:k,onUpdateSelectedCheckboxTransactionIds:s,onFetchRecommendationsForEntityCategorization:u,onFetchRecommendationsForEntityCategorizationWithCustomer:T,setActivityLogTransactionId:v})=>{const[N,O]=y.useState({transactionId:void 0,lineItemId:void 0}),M=y.useRef(),D=y.useRef({}),{useDynamicConfig:R}=Ll(),{configValue:j}=R(Dl.enableUncategorizedExpenseCategory),F=j?.uncategorized_expense_category_enabled===!0,{transactions:Y,transactionLocalData:ee,accountsHierarchyList:te,classHierarchyList:X,accountList:H,classList:L,selectedCheckBoxTransactionIds:l,uncategorizedAccounts:c}=n,$=xn({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>fl(l,ee,te,X,S.entityAutoCompleteView),[te,X,l,ee,S.entityAutoCompleteView]),values:y.useMemo(()=>fl(l,ee,te,X,S.entityAutoCompleteView),[te,X,l,ee,S.entityAutoCompleteView]),resetOptions:{keepDefaultValues:!0,keepDirty:!1}});y.useEffect(()=>()=>{w("expenseAutomationPage")},[]),y.useEffect(()=>{l.length>0?w(ui):w("expenseAutomationPage")},[l,w]);const f=$.handleSubmit(_=>{const I=_[To],B=D.current;k(e,I,B),I.forEach(Z=>{delete D.current[Z]})});y.useEffect(()=>{const _=$.watch((I,{name:B})=>{B!=null&&I!=null&&Gn(()=>(async(Z,q)=>{if(Z!=null){if(Z===To){const z=$.getValues(To);if(z.length<l.length||z.length===Wn)return void s(e,z);const W=z[z.length-1],U=q[gn].findIndex(ne=>ne.transactionId===W),V=$.getValues(`${gn}.${U}.lineInfo`);if(V!=null){let ne=!1;if(V.every(ae=>(ne=jn(c,ae[Ke].selectedOption,F?["income"]:void 0),!(!ae[Ke].selectedOption||ae[Ke].selectedOption==null||ne||!ae[pt].selectedOption||!ae[Tt].selectedOption)))===!0)return void s(e,z);{const ae=z.filter(oe=>oe!==W);return void s(e,ae)}}return}if(Z.includes(Ke)===!0||Z.includes(pt)===!0){const z=parseInt(Z.split(".")[1]),W=parseInt(Z.split(".")[3]),U=$.getValues(`${gn}.${z}.lineInfo`),V=U[W];if(Z.includes(Ke)||Z.includes(pt)){const{transactionId:ne,lineId:ae,recommendations:oe}=V;if(U!=null){const P=V[Ke].selectedOption,K=V[pt].selectedOption,J=V[Tt].selectedOption,Q=V[Tt].selectedOption,ie=V[Tt].defaultOptions,re=ie?.find(le=>le.options?.find(fe=>fe.value===J))?.options?.find(le=>le.value===J)?.label,ue=ie?.find(le=>le.options?.find(fe=>fe.value===Q))?.options?.find(le=>le.value===Q)?.label,de=S.entityAutoCompleteView.vendor.find(le=>le.qboId===J),pe=S.entityAutoCompleteView.customer.find(le=>le.qboId===Q),ye=oe.find(le=>le.vendor?.qboId===J)?.vendor,be=J||de?.qboId||ye?.qboId?{id:J??de?.qboId??ye?.qboId??"",name:re??de?.name??ye?.name??"",logo:de?.logo??ye?.logo}:void 0,ge=Q||pe?.qboId?{id:Q??pe?.qboId??"",name:ue??pe?.name??"",logo:pe?.logo}:void 0,se=H.find(le=>le.qboId===P),Re=L.find(le=>le.classId===K),xe=n.transactionLocalData.find(le=>le.transactionId===ne)?.transactionReviewLocalData.lineItemById[ae].account,he=n.transactionLocalData.find(le=>le.transactionId===ne)?.transactionReviewLocalData.lineItemById[ae].class;b(e,ne,ae,Y,be?.id,ge?.id,Z.includes(Ke)&&se!=null?{...se,isPreFilled:!1}:xe,Z.includes(pt)&&Re!=null?{...Re,isPreFilled:!1}:he,void 0,oe,F)}return}}if(Z.includes(Tt)){const z=parseInt(Z.split(".")[1]),W=parseInt(Z.split(".")[3]),U=$.getValues(`${gn}.${z}.lineInfo`);if(U!=null){const V=U[W],{transactionId:ne,recommendations:ae}=V,oe=V[Tt].selectedOption,P=V[Tt].selectedOption,K=V[Tt].defaultOptions,J=K?.flatMap(se=>se.options)?.find(se=>se.value===oe)?.label,Q=K?.flatMap(se=>se.options)?.find(se=>se.value===P)?.label,ie=S.entityAutoCompleteView.vendor.find(se=>se.qboId===oe),re=S.entityAutoCompleteView.customer.find(se=>se.qboId===P),ue=ae.find(se=>se.vendor?.qboId===oe)?.vendor,de=oe!==""&&oe!=null?oe:J!==""&&J!=null?J:"",pe=(ie?.qboId!=null&&ie.qboId!==""?ie.qboId:null)??(ue?.qboId!=null&&ue.qboId!==""?ue.qboId:null)??(oe!=null&&oe!==""?oe:null),ye={id:pe??J??"",name:J??ie?.name??ue?.name??"",logo:ie?.logo??ue?.logo},be=re?.qboId!=null&&re.qboId!==""?{id:re.qboId??P??"",name:Q??re.name??"",logo:re.logo}:void 0,ge=Y.find(se=>se.id===ne);if(ge!=null){const se=n.transactionLocalData.find(fe=>fe.transactionId===ge.id)?.transactionReviewLocalData,Re=se?.lineItemById[V.lineId],xe=dn(ge)===!0?se?.selectedEntity:Re?.selectedEntityLine,he=be?.id!=null&&be.id!==""?{id:be.id,name:be.name,type:"customer",qboId:be.id,zeniId:be.id,logo:be.logo}:ye.id!==""&&ye.id!=null?{id:de,name:J??de,type:"vendor",qboId:de,zeniId:de,logo:ye.logo,isPreFilled:xe?.id===pe&&xe?.isPreFilled}:void 0,le={transactionId:{id:ge.id,type:ge.type},transaction:ge,lineIds:ge.type!=="journal_entry"?ge.lines?.map(fe=>fe.id)??[]:[V.lineId]};he?.type==="customer"?T(V.amount.amount,le,!1,e,he,be,F):u(V.amount.amount,le,!1,e,he,ye,F)}}return void o.onCancelAutoComplete?.()}}})(B,I))});return()=>{_.unsubscribe()}}),y.useEffect(()=>{if(S.entityAutoCompleteView.fetchState==="Completed"){const _=n.transactionLocalData.find(I=>I.transactionId===N.transactionId);if(_){const{transactionReviewLocalData:I}=_,{selectedEntity:B}=I,Z=N?.lineItemId??I.sortedLineItems[0],q=I.lineItemById[Z],z=q.selectedEntityLine;M.current?.(zi(S.entityAutoCompleteView,B??z,q?.recommendationsWithCOT??[]))}O({transactionId:void 0,lineItemId:void 0})}},[S.entityAutoCompleteView.fetchState]);const d=y.useRef(null);return t.jsx(Kx,{ref:d,"data-testid":ce("transaction-categorization-list-page"),children:t.jsx(Cn,{...$,children:t.jsx("form",{id:ml(ui),onSubmit:f,style:{height:"100%",width:"100%"},"data-testid":ce(ml(ui)),children:t.jsx(Ax,{isTransactionActivityEnabled:x,selectedTab:e,sectionId:E,transactionView:n,receiptUploadEndpoint:a,authParams:i,setCurrentTransactionInAction:O,onUpdateTransactionCategorizationUIState:r,onUpdateScrollYOffSetTransactionCategorizationUIState:C,onFetchTransactionCategorizationList:m,onTransactionCategorizationRowClick:h,vendorLoadOptions:(_,I)=>{o.onAutoCompleteInputChange?.(_),M.current=I},vendorSearchAutoCompleteData:S,vendorSearchAutoCompleteActions:o,containerRef:d,isCOTEnabled:g,cotTracking:{onCOTView:(_,I,B,Z)=>{const q={...D.current};q[I]==null&&(q[I]=[]);let z=q[I].findIndex(W=>W.lineId===_);if(z===-1){const W={lineId:_,category:{recommendationTypesViewed:[]},class:{recommendationTypesViewed:[]},vendor:{recommendationTypesViewed:[]}};q[I].push(W),z=q[I].length-1}else{const W=q[I][z];q[I][z]={...W,category:{...W.category,recommendationTypesViewed:[...W.category.recommendationTypesViewed]},class:{...W.class,recommendationTypesViewed:[...W.class.recommendationTypesViewed]},vendor:{...W.vendor,recommendationTypesViewed:[...W.vendor.recommendationTypesViewed]}}}Z!=null&&Z!==""&&!q[I][z][B].recommendationTypesViewed.includes(Z)&&q[I][z][B].recommendationTypesViewed.push(Z),D.current=q}},isUncategorizedExpenseCategoryEnabled:F,setActivityLogTransactionId:v})})})})},ml=e=>`${e}_form`,fl=(e,n,a,i,E)=>({[gn]:n.map(S=>Gx(S.transactionId,S.transactionReviewLocalData,a,i,E)),[To]:e}),Gx=(e,n,a,i,E)=>{const{lineItemById:S,sortedLineItems:o,selectedEntity:g}=n,x=Object.values(S).sort((b,h)=>o.indexOf(b.lineId)-o.indexOf(h.lineId)),w=x[0]?.lineId;return{[Bc]:x.map(b=>{const h=b.account?.qboId??b.account?.accountId,r=b.class?.classId,C=b.selectedEntityLine;return{id:b.id,transactionId:b.transactionId,type:b.type,amount:b.amount,lineDetailType:b.lineDetailType,platformLineDetailType:b.platformLineDetailType,lineTransactionType:b.lineTransactionType,postingType:b.postingType,postingTypeName:b.postingTypeName,customer:b.customer,vendor:b.vendor,billable:b.billable,item:b.item,isCategoryMiscategorized:b.isCategoryMiscategorized,isClassMiscategorized:b.isClassMiscategorized,lineId:b.id,[Ke]:{selectedOption:h,allOptions:Wl(a,b.recommendationsWithCOT)},[pt]:{selectedOption:r,allOptions:Hl(i,b.recommendationsWithCOT)},[Tt]:{selectedOption:g?.id??C?.id??g?.name??C?.name,defaultOptions:zi(E,g??C,n.lineItemById[w]?.recommendationsWithCOT??[])},[q0]:b.lineEntity,[J0]:b.recommendationsWithCOT??[]}}),transactionId:e,[Z0]:n.vendorDetails!=null&&n.vendorDetails.id!=null?{id:n.vendorDetails.id,qboId:n.vendorDetails.qboId,name:n.vendorDetails.name}:void 0,[X0]:n.customerDetails!=null&&n.customerDetails.id!=null?{id:n.customerDetails.id,qboId:n.customerDetails.qboId,name:n.customerDetails.name}:void 0}},Kx=A.div`
|
|
2171
|
-
display: flex;
|
|
2172
|
-
min-height: 100%;
|
|
2173
|
-
width: 100%;
|
|
2174
|
-
height: 100%;
|
|
2175
|
-
flex-direction: column;
|
|
2176
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
2177
|
-
z-index: 2;
|
|
2178
|
-
`,xl={subSectionContainerLeftRightPadding:new me(G[3],G[6],G[8])},Yx=A.div`
|
|
2179
|
-
width: 100%;
|
|
2180
|
-
display: flex;
|
|
2181
|
-
justify-content: center;
|
|
2182
|
-
align-items: center;
|
|
2183
|
-
flex: 1;
|
|
2184
|
-
background: ${e=>e.theme.colors.grey4};
|
|
2185
|
-
box-sizing: border-box;
|
|
2186
|
-
`,qx=A.div`
|
|
2187
|
-
display: flex;
|
|
2188
|
-
flex-direction: column;
|
|
2189
|
-
width: 100%;
|
|
2190
|
-
`,Jx=e=>{const{currentFooterFormId:n,onJeAccountSettingsChange:a,onSaveJeAccountSettingsClick:i,setResetJeAccountSettingsForm:E,expenseAutomationViewSelector:S,isTransactionActivityEnabled:o,authParams:g,receiptUploadEndpoint:x,companyId:w,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:h,enableMonthEndInsightsZeniGPTFeature:r,monthEndInsightsPreviewMode:C,monthEndInsightsCustomerRequestData:m,allThreadsSectionOpen:k,loggedInUser:s,isCOTEnabled:u,setCurrentFooterFormId:T,onFetchRecommendationsForEntityCategorization:v,onFetchRecommendationsForEntityCategorizationWithCustomer:N,onTransactionCategorizationRowClick:O,onFetchMissingReceiptsList:M,onMissingReceiptsRowClick:D,onUploadReceiptAttachment:R,onUploadReceiptComplete:j,onUploadReceiptFetchStatus:F,onReconTabColumnSortConfigChanged:Y,onReloadReconciliationListPage:ee,onUpdateReconcileTabLocalData:te,onUpdateMissingReceiptsUIState:X,onFetchTransactionCategorizationList:H,onUpdateTransactionCategorizationUIState:L,onUpdateScrollYOffSetTransactionCategorizationUIState:l,handleJeScheduleClick:c,ignoreRecommendedJeSchedule:$,onJESchedulesFormDataChange:f,onPostJESchedule:d,setLocalDataForCategoryAndClass:_,resetTransactionCategorizationLocalData:I,updateSelectedVendorForTransaction:B,onSaveUpdateTransactionCategorization:Z,onUpdateSelectedCheckboxTransactionIds:q,improveMonthEndInsightsUsingZeniGPTClick:z,onRemoveFileAttachment:W,onUpdateFileAttachment:U,onCloseAllThreadsSection:V,onEditMonthEndInsightsClick:ne,previewMonthEndReport:ae,saveMonthEndReport:oe,onOpenFileAttachmentSnackBar:P,onCloseFileAttachmentSnackBar:K,onClickCustomerRequest:J,sendMonthEndReport:Q,markAsReview:ie,onReloadPage:re,updateOperatingExpensesIdsForReview:ue,onFetchReimbursementView:de,updateSectionIdsForReview:pe,onUpdateFluxAnalysisUIState:ye,fetchFluxViewOnScroll:be,onFetchFluxViewList:ge,setIsJeAccountSettingsOpened:se,onReviewClicked:Re,setOpenDrawerClicked:xe,onEstablishConnectionClick:he,onFetchLinkTokenClick:le,updateReconReviewTabLocalData:fe,onReconReviewTabColumnSortConfigChanged:Ce,onSaveReconciliation:Te,onSaveReconciliationReview:_e,onReconMatchedTransactionClick:ze,onAddStatementClick:Ve,redirectToVendorDetailPage:je,setActivityLogTransactionId:dt}=e,{currentSelectedView:Le,missingReceipts:De,transactionView:nt,selectedPeriod:_t,monthEndInsights:At,selectedTransactionCategorizationTab:Jn,reconciliation:St}=S;switch(Le){case"transaction_categorization":return nt.fetchState==="Completed"&&nt.transactionLocalData.length===0?t.jsx(Yt,{tab:Le,title:rt(Le).allDoneText.title,subTitle:rt(Le).allDoneText.subTitle}):t.jsx(Ux,{setCurrentFooterFormId:T,selectedPeriod:_t,selectedTab:Jn,sectionId:gn,transactionView:nt,receiptUploadEndpoint:x,authParams:g,isTransactionActivityEnabled:o,onUpdateTransactionCategorizationUIState:L,onUpdateScrollYOffSetTransactionCategorizationUIState:l,onFetchTransactionCategorizationList:H,onTransactionCategorizationRowClick:O,setLocalDataForCategoryAndClass:_,resetTransactionCategorizationLocalData:I,updateSelectedVendorForTransaction:B,onSaveUpdateTransactionCategorization:Z,onUpdateSelectedCheckboxTransactionIds:q,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:h,onFetchRecommendationsForEntityCategorization:v,onFetchRecommendationsForEntityCategorizationWithCustomer:N,isCOTEnabled:u,setActivityLogTransactionId:dt});case"je_schedules":return t.jsx(mf,{setIsJeAccountSettingsOpened:se,expenseAutomationViewSelector:S,setResetJeAccountSettingsForm:E,currentFooterFormId:n,onJeAccountSettingsChange:a,onSaveJeAccountSettingsClick:i,setCurrentFooterFormId:T,handleJeScheduleClick:c,ignoreRecommendedJeSchedule:$,onJESchedulesFormDataChange:f,onPostJESchedule:d,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:h});case"missing_receipts":return De.fetchState==="Completed"&&De.transactions.length===0?t.jsx(Yt,{tab:Le,title:rt(Le).allDoneText.title,subTitle:rt(Le).allDoneText.subTitle}):t.jsx(Qf,{onUpdateMissingReceiptsUIState:X,onFetchMissingReceiptsList:M,missingReceipts:De,receiptUploadEndpoint:x,authParams:g,selectedPeriod:_t,onMissingReceiptsRowClick:D,onUploadReceiptComplete:j,onUploadReceiptFetchStatus:F,onUploadReceiptAttachment:R});case"month_end_insights":if(At!=null&&S.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(lu,{fetchState:"In-Progress"});{const Rn={application:"cockpit",companyId:w,entityId:w,tab:"expense_automation",isGlobalComment:!1,entityType:"expense_automation.monthEndEmail",companyName:At.companyName,url:window.location.href},{url:Fo,...Zn}=Rn,Xe={...Zn};return t.jsx(qx,{children:t.jsx(T0,{allThreadsSectionOpen:k,customerRequestData:m,companyId:w,enableZeniGPTFeature:r,filterMetaData:Xe,selectedPeriod:S.selectedPeriod,improveUsingZeniGPTClick:z,isZeniUser:s?.userEmail?.includes("zeni.ai")??!1,monthEndReportView:At,newThreadMetadata:Rn,onClickCustomerRequest:J,onCloseAllThreadsSection:V,onCloseFileAttachmentSnackBar:K,onOpenFileAttachmentSnackBar:P,onRemoveFileAttachment:W,onUpdateFileAttachment:U,previewMode:C,previewMonthEndReport:ae,saveMonthEndReport:oe,onEditClick:ne,sendMonthEndReport:Q})})}}return null;case"flux_analysis":return S.fluxAnalysis.fetchStatus.fetchState==="Completed"&&S.fluxAnalysis.sections.generalExpense.vendors.length===0&&S.fluxAnalysis.sections.reimbursement.vendors.length===0?t.jsx(Yt,{tab:Le,title:rt(Le).allDoneText.title,subTitle:rt(Le).allDoneText.subTitle}):t.jsx(U1,{fluxAnalysis:S.fluxAnalysis,selectedPeriod:S.selectedPeriod,markAsReview:ie,onReloadPage:re,updateOperatingExpensesIdsForReview:ue,updateSectionIdsForReview:pe,onUpdateFluxAnalysisUIState:ye,setCurrentFooterFormId:T,fetchFluxViewOnScroll:be,onFetchFluxViewList:ge,onFetchReimbursementView:de,redirectToVendorDetailPage:je});case"reconciliation":return t.jsx(L1,{onReloadReconciliationListPage:ee,currentFooterFormId:n,reconciliation:St,companyId:w,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:h,onReviewClicked:Re,setOpenDrawerClicked:xe,setCurrentFooterFormId:T,onReconTabColumnSortConfigChanged:Y,onUpdateReconcileTabLocalData:te,onEstablishConnectionClick:he,onFetchLinkTokenClick:le,updateReconReviewTabLocalData:fe,onReconReviewTabColumnSortConfigChanged:Ce,onSaveReconciliation:Te,onSaveReconciliationReview:_e,onReconMatchedTransactionClick:ze,onAddStatementClick:Ve});default:return t.jsx(Yt,{tab:Le,title:rt(Le).allDoneText.title,subTitle:rt(Le).allDoneText.subTitle})}};function Zx(e){const n=Me(),{currentSelectedView:a}=e.expenseAutomationViewSelector,i=e.expenseAutomationViewSelector.currentSelectedView==="transaction_categorization",E=e.expenseAutomationViewSelector.currentSelectedView!=="month_end_insights"&&e.expenseAutomationViewSelector.currentSelectedView!=="flux_analysis";return t.jsx(Yx,{windowSize:n,style:{...E===!0?{paddingLeft:xl.subSectionContainerLeftRightPadding.value(n),paddingRight:xl.subSectionContainerLeftRightPadding.value(n)}:{paddingLeft:G[0],paddingRight:G[0]},...i===!0||a==="reconciliation"?{paddingLeft:G[0],paddingRight:G[0]}:{}},children:t.jsx(Jx,{...e})})}const Xx=A.div`
|
|
2191
|
-
width: 100%;
|
|
2192
|
-
height: 100vh;
|
|
2193
|
-
display: flex;
|
|
2194
|
-
flex-direction: column;
|
|
2195
|
-
background: ${e=>e.theme.colors.grey4};
|
|
2196
|
-
box-shadow: ${e=>e.theme.colors.elevation1};
|
|
2197
|
-
`,Qx=A.div`
|
|
2198
|
-
display: flex;
|
|
2199
|
-
flex-direction: column;
|
|
2200
|
-
align-items: center;
|
|
2201
|
-
min-width: 100%;
|
|
2202
|
-
min-height: 0;
|
|
2203
|
-
flex: 1;
|
|
2204
|
-
|
|
2205
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
2206
|
-
width: 100%;
|
|
2207
|
-
padding-left: ${p.sp0};
|
|
2208
|
-
}
|
|
2209
|
-
`,Cl=A(ud)`
|
|
2210
|
-
height: ${p.sp3};
|
|
2211
|
-
width: ${p.sp3};
|
|
2212
|
-
cursor: pointer;
|
|
2213
|
-
color: inherit;
|
|
2214
|
-
`,yl=A(e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M22.9902 12.0403L1.12726 12.0403",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M7.68994 5.60718L1.00953 12.0402L7.68994 18.4732",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
|
|
2215
|
-
height: ${p.sp3};
|
|
2216
|
-
width: ${p.sp3};
|
|
2217
|
-
cursor: pointer;
|
|
2218
|
-
color: inherit;
|
|
2219
|
-
`,{common:{footer:Ye,texts:{maxLimitReached:eC,confirmAction:tC},headers:nC,create:oC,strings:Mn,texts:Nn,cancel:iC,confirm:rC,monthsByIndex:aC},dateFormat:{visual:{MMMDCommaYYYYformat:bl}},expenseAutomation:Pn}=Ae.getLocalizedStrings(),ey=e=>{const{expenseAutomationViewSelector:n,isDisabled:a,isRealtimeInsightsFeatureEnabled:i,isUncategorizedExpenseCategoryEnabled:E,isCOTEnabled:S,onUpdateTab:o,onReconTabUpdate:g,onUpdateStep:x,onSearchTextChanged:w,onRefresh:b,onClose:h,onBack:r,resetTransactionCategorizationLocalData:C,updateOperatingExpensesIdsForReview:m,clearJeScheduleLocalData:k,onSaveReconciliation:s}=e,{currentSelectedView:u,allSteps:T,missingReceipts:v,jeSchedules:N,fluxAnalysis:O,monthEndInsights:M,transactionView:D,selectedTransactionCategorizationTab:R,reconciliation:j,selectedPeriod:F}=n,[Y,ee]=y.useState("expenseAutomationPage"),[te,X]=y.useState(()=>{}),[H,L]=y.useState(!1),l=Me(),c=!!e.loggedInUser?.userEmail?.includes("zeni.ai"),$=c?Vn:No,{openThread:f,setOpenThread:d}=y.useContext($),[_,I]=y.useState(!1),[B,Z]=y.useState(!1),q=T.find(Ce=>Ce.step===u),{nextStep:z,previousStep:W}=cC(T,u),{uiState:{searchString:U,pageToken:V},totalCountByTab:ne,transactions:ae,fetchStateByTransactionTabs:oe,transactionLocalData:P}=D,{selectedReconAccount:K,reconciliationTabsState:{reconcile:{localData:{selectedTransactionIds:J}}}}=j;let Q="Not-Started",ie="complete";switch(u){case"missing_receipts":Q=v.refreshStatus.fetchState,ie=v.completionStatus;break;case"je_schedules":Q=N.refreshStatus.fetchState,ie=N.completionStatus;break;case"month_end_insights":M!=null&&(Q=M?.fetchState);break;case"flux_analysis":Q=O.refreshStatus.fetchState,ie=O.completionStatus;break;case"transaction_categorization":Q=D.refreshStatus.fetchState,ie=D.completionStatus;break;case"reconciliation":K==null?(Q=j.refreshStatus.fetchState,ie=j.completionStatus):(Q=j.selectedReconAccount?.refreshStatus.fetchState??"Not-Started",ie=j.completionStatus)}const{saveStatus:re,selectedCheckBoxTransactionIds:ue}=D,{primaryBtn:de,cancelBtn:pe,leftSideComponent:ye}=(()=>{const Ce=kc(n.fluxAnalysis.sections,n.fluxAnalysis.reviewOperatingExpensesIds);switch(Y){case"expenseAutomationFluxPage":return{formId:"expenseAutomationFluxPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ce===!0?Ye.markAsReviewed:Nn.undo,style:{justifyContent:"space-evenly"},isLoading:n.fluxAnalysis.bulkReviewStatus.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:yi(n.fluxAnalysis.reviewOperatingExpensesIds.length,ic,l,Nn.vendor,u),cancelBtn:{label:Ye.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{m([])}}};case"expenseAutomationTransactionsPage":return{formId:"expenseAutomationTransactionsPage",isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ye.save,style:{minWidth:"96px",justifyContent:"space-evenly"},isLoading:re.fetchState==="In-Progress",isDisabled:!1},leftSideComponent:yi(ue.length,Wn,l,Nn.transaction,u),cancelBtn:{label:Ye.cancel,style:{width:"96px",justifyContent:"space-evenly"},onClick:()=>{C(R,ae.map(Te=>Te.id),F,!1,ne[R],dr(P,R),E,V)}}};case"expenseAutomationJESchedulePage":return{formId:"expenseAutomationJESchedulePage",nextBtnLabel:Ye.next,backBtnLabel:Ye.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ye.next,style:{justifyContent:"space-evenly"},isDisabled:a||q?.isNextDisabled,suffixIcon:t.jsx(Cl,{}),onClick:()=>{x(z.step)}},cancelBtn:{label:Ye.back,isDisabled:a||q?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(yl,{}),onClick:()=>{x(W.step)}}};case"expenseAutomationBankReconReconcilePage":return{formId:"expenseAutomationBankReconReconcilePage",nextBtnLabel:Ye.reconcile,backBtnLabel:Ye.saveForLater,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ye.reconcile,onClick:()=>{s({reconcileAction:"reconcile"})},isDisabled:j.reconciliationTabsState.balances.variance.amount!==0,isLoading:j.actionFetchStates.reconcileFetch.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:132}},leftSideComponent:yi(J.length,1/0,l,Nn.transaction,u),cancelBtn:{onClick:()=>{s({reconcileAction:"save_reconcile_for_later"})},reverseSpinnerColor:!1,isLoading:j.actionFetchStates.saveForLaterFetch.fetchState==="In-Progress",label:Ye.saveForLater,style:{minWidth:132,justifyContent:"space-evenly"}}};case"expenseAutomationJEAccountSettingsPage":return{formId:"expenseAutomationJEAccountSettingsPage",nextBtnLabel:Ye.save,backBtnLabel:Ye.cancel,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ye.save,isLoading:N.accountSettingsView.saveState.fetchState==="In-Progress",style:{justifyContent:"space-evenly",minWidth:82}},cancelBtn:{onClick:()=>{te()},label:Ye.cancel,style:{minWidth:82,justifyContent:"space-evenly"}}};default:{const Te=u==="reconciliation"&&n.reconciliation.selectedTab==="review"&&n.reconciliation.selectedAccountId!=null,_e=u==="reconciliation"&&n.reconciliation.selectedAccountId==null,ze=u==="reconciliation"&&n.reconciliation.selectedTab==="reconcile"&&n.reconciliation.selectedAccountId!=null,Ve=z.step==="month_end_insights"&&(u==="flux_analysis"&&(n.fluxAnalysis.sections.generalExpense?.balancesByMonth!=null||n.fluxAnalysis.sections.reimbursement?.balancesByMonth!=null)||_e),je=u==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="review",dt=u==="transaction_categorization"&&n.selectedTransactionCategorizationTab==="autoCategorized",Le=n.monthEndCloseChecksView.monthEndCloseChecks?.monthEndCloseCheckList.find(_t=>_t.id==="month_end_insights"),De=n.monthEndCloseChecksView.monthEndCloseChecks?.reportEmailSentDate==null&&Le?.isDisabled===!1&&(i||q?.isNextDisabled===!1),nt=z.step!=="month_end_insights"||!_e&&u!=="flux_analysis"?q?.isNextDisabled===!0:!De;return{formId:"expenseAutomationPage",nextBtnLabel:Ye.next,backBtnLabel:Ye.back,isNextDisabled:!1,isPrevDisabled:!1,primaryBtn:{label:Ve===!0?lC(n.selectedPeriod.month):Ye.next,style:{justifyContent:"space-evenly"},isDisabled:nt,suffixIcon:t.jsx(Cl,{}),onClick:()=>{je?o("autoCategorized"):Te?g("reconcile"):x(z.step)}},cancelBtn:{label:Ye.back,isDisabled:a||q?.isPrevDisabled,style:{width:"96px",justifyContent:"space-evenly"},prefixIcon:t.jsx(yl,{}),onClick:()=>{dt?o("review"):ze?g("review"):Te?r():x(W.step)}}}}}})(),{confirmAction:be}=(()=>{switch(Y){case"expenseAutomationFluxPage":return{confirmAction:()=>{I(!1),m([]),h()}};case"expenseAutomationTransactionsPage":return{confirmAction:()=>{I(!1),C(R,ae.map(Ce=>Ce.id),F,!1,ne[R],dr(P,R),E,V),h()}};case"expenseAutomationJESchedulePage":return{confirmAction:()=>{I(!1),k(),h()}};default:return{confirmAction:()=>{I(!1)},confirmationDescription:Mn.empty}}})(),ge=u==="reconciliation"&&j.selectedAccountId!=null&&j.selectedReconAccount!=null,{month:se,year:Re}=F,xe=Jl().set("month",se-1).set("year",Re),he=xe.startOf("month").format(bl),le=xe.endOf("month").format(bl),fe=`${he} ${Mn.hyphen} ${le}`;return t.jsxs(Xx,{children:[_?t.jsx(ad,{containerStyle:{width:356},titleComponent:t.jsx(mC,{children:tC}),primaryButtonText:rC,secondaryButtonText:iC,proceedButtonVariant:"danger",action:{onOkClick:()=>{be()},onCancelClick:()=>I(!1)},descriptionComponent:t.jsx(fC,{children:Pn.confirmationDescription})}):null,t.jsx(sd,{isOpen:e.sidePanelIsOpen??!1,isFullView:e.sidePanelIsFullView??!1,panelContent:e.panelContent,headerContent:t.jsx(wg,{onBack:r,navBarCustomElement:u==="reconciliation"&&j.selectedAccountId!=null?t.jsx(sC,{reconciliation:j}):void 0,onReconTabUpdate:g,currentRecontab:j.selectedTab,reconcileDetailPageFetchState:j.selectedAccountId!=null?j.accountReconciliationsByAccountID[j.selectedAccountId]?.transactionFetchState.fetchState:"Not-Started",selectedReconAccountId:ge?j.selectedAccountId:void 0,currentSelectedView:u,titleStyle:{justifyContent:"center",marginLeft:p.sp0},headerData:rt(u,ne.autoCategorized,ge?j.selectedAccountId:void 0,ge?j.selectedReconAccount?.accountReconEntity?.account.accountName:void 0,ge?fe:void 0),searchText:U,currentTab:R,getTabCountAndFetchState:Ce=>{if(u==="transaction_categorization"&&(Ce==="autoCategorized"||Ce==="review"))return{hideCountInTab:ne[Ce]>Pn.common.numbers.maximumCount,count:ne[Ce],isFetching:oe[Ce].fetchState==="In-Progress"};if(u==="reconciliation"){const{reconciliation:Te}=n,{selectedAccountId:_e}=Te;return _e==null?{count:0,isFetching:!1}:Ce==="review"?{count:Te.accountReconciliationsByAccountID[_e]?.accountReconEntity?.transactionsToReview.length,isFetching:Te.accountReconciliationsByAccountID[_e]?.transactionFetchState.fetchState==="In-Progress"}:{count:Te.accountReconciliationsByAccountID[_e]?.accountReconEntity?.transactionsToReconcile.length,isFetching:Te.accountReconciliationsByAccountID[_e]?.transactionFetchState.fetchState==="In-Progress"}}},completionStatus:ie,forceShowSubtitle:H===!0||u==="je_schedules"&&(N.fetchState==="In-Progress"||N.accountSettingsView.fetchState==="In-Progress"),refreshStatus:Q,companyId:e.companyId,companyName:n.monthEndInsights?.companyName??Mn.empty,isZeniUser:c,onAllThreadsClick:()=>{f!=null&&d(null),Z(!0)},onUpdateTab:o,onSearchTextChanged:w,onRefresh:b,onClose:()=>{Y==="expenseAutomationFluxPage"||Y==="expenseAutomationJESchedulePage"||Y==="expenseAutomationTransactionsPage"?I(!0):h()}}),listContent:t.jsxs(Qx,{children:[t.jsx(Zx,{...e,isCOTEnabled:S,setIsJeAccountSettingsOpened:L,setResetJeAccountSettingsForm:X,allThreadsSectionOpen:B,setCurrentFooterFormId:ee,currentFooterFormId:Y,onCloseAllThreadsSection:()=>Z(!1)}),t.jsx(ot,{controller:u!=="month_end_insights"&&e.sidePanelIsOpen!==!0,children:t.jsx(Nl,{style:{width:"-webkit-fill-available",maxHeight:G[8]},formId:dC(Y),primaryBtn:de,leftSideComponent:ye,cancelBtn:pe,separatorStyle:{marginRight:p.sp4}})})]})})]})},sC=({reconciliation:e})=>{const n=vt(),{clearedBalance:a,variance:i,variancePercentage:E,deposits:S,payments:o}=e.reconciliationTabsState.balances,{balance:g}=e.selectedReconAccount?.accountReconEntity??{},{selectedReconAccount:x}=e,{transactionFetchState:w}=x??{};return t.jsx(xC,{children:t.jsxs(CC,{children:[t.jsxs(bi,{style:{justifyContent:"flex-end",width:"50%"},children:[t.jsx(vi,{children:t.jsx(yC,{})}),t.jsx(wi,{children:w?.fetchState==="In-Progress"?t.jsxs(ki,{children:[t.jsx(En,{height:25,width:120}),t.jsx(En,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Ei,{children:ct("0,0.00",g)}),t.jsx(Si,{children:Pn.accountRecon.reconciliation.headers.bankBalance})]})})]}),t.jsxs(bi,{children:[t.jsx(vi,{children:t.jsx(vC,{})}),t.jsx(wi,{children:w?.fetchState==="In-Progress"?t.jsxs(ki,{children:[t.jsx(En,{height:25,width:120}),t.jsx(En,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsx(Ei,{children:ct("0,0.00",a)}),t.jsxs(SC,{children:[t.jsx(Si,{children:Pn.accountRecon.reconciliation.headers.clearedBalance}),t.jsx(Ee,{placement:"bottom",title:t.jsxs(EC,{children:[t.jsxs(vl,{children:[t.jsxs(wl,{children:[o.count," ",Nn.payments]}),t.jsx(Sl,{children:ct("0,0.[00]",o.totalAmount)})]}),t.jsxs(vl,{children:[t.jsxs(wl,{children:[S.count," ",Nn.deposits]}),t.jsx(Sl,{children:ct("0,0.[00]",S.totalAmount)})]})]}),display:"flex",children:t.jsx(wC,{})})]})]})})]}),t.jsxs(bi,{style:{justifyContent:"flex-start",width:"50%"},children:[t.jsx(vi,{children:t.jsx(bC,{})}),t.jsx(wi,{children:w?.fetchState==="In-Progress"?t.jsxs(ki,{children:[t.jsx(En,{height:25,width:120}),t.jsx(En,{height:19,width:120})]}):t.jsxs(t.Fragment,{children:[t.jsxs(Ei,{children:[t.jsx("span",{style:{color:i.amount===0?n.colors.brandColorJadeDark:n.colors.primary},children:ct("0,0.00",i)}),E!=null&&i.amount!==0?t.jsx("span",{style:{color:n.colors.primary,marginLeft:2},children:`(${E.toFixed(2)}%)`}):null]}),t.jsx(Si,{children:Pn.accountRecon.reconciliation.headers.variance})]})})]})]})})},yi=(e,n,a,i,E)=>{const S=(e>1?i+"s":i)+" selected";return e>0?t.jsxs(uC,{currentView:E,style:a==="small"?{position:"absolute",top:p.sp2,left:`-${p.sp5}`}:{},children:[t.jsx(pC,{multiDigit:e>=5,children:e}),t.jsx(hC,{children:S}),e===n?t.jsx(gC,{children:`(${eC})`}):null]}):null},lC=e=>{const n=aC[e];return`${oC}${Mn.space}${n}${Mn.space}${nC.insights}`};function cC(e,n){const a=e.findIndex(S=>S.step===n);if(a===-1)throw new Error("currentStep not found in allSteps array");const i=(a+1)%e.length,E=(a-1+e.length)%e.length;return{nextStep:e[i],previousStep:e[E]}}const dC=e=>`${e}_form`,uC=A.div`
|
|
2220
|
-
display: flex;
|
|
2221
|
-
justify-content: flex-start;
|
|
2222
|
-
align-items: center;
|
|
2223
|
-
gap: ${p.sp2};
|
|
2224
|
-
margin-left: ${e=>e.currentView==="flux_analysis"?"36px":p.sp8};
|
|
2225
|
-
`,pC=A(Nt)`
|
|
2226
|
-
height: 18px;
|
|
2227
|
-
width: ${e=>e.multiDigit?"auto":"18px"};
|
|
2228
|
-
padding: ${p.sp0} 6px;
|
|
2229
|
-
border-radius: ${p.sp12};
|
|
2230
|
-
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
2231
|
-
display: flex;
|
|
2232
|
-
justify-content: center;
|
|
2233
|
-
align-items: center;
|
|
2234
|
-
`,hC=A(Be)`
|
|
2235
|
-
color: ${e=>e.theme.colors.primary};
|
|
2236
|
-
`,gC=A(wt)`
|
|
2237
|
-
color: ${Oe.important};
|
|
2238
|
-
`,mC=A(rd)`
|
|
2239
|
-
margin-top: ${p.sp5};
|
|
2240
|
-
padding-left: ${p.sp8};
|
|
2241
|
-
padding-right: ${p.sp8};
|
|
2242
|
-
color: ${e=>e.theme.colors.primary};
|
|
2243
|
-
word-break: break-word;
|
|
2244
|
-
`,fC=A(ld)`
|
|
2245
|
-
color: ${e=>e.theme.colors.primary};
|
|
2246
|
-
margin-top: ${p.sp2};
|
|
2247
|
-
margin-bottom: ${p.sp2};
|
|
2248
|
-
`,xC=A.div`
|
|
2249
|
-
display: flex;
|
|
2250
|
-
justify-content: center;
|
|
2251
|
-
align-items: center;
|
|
2252
|
-
padding: ${p.sp3} ${p.sp0};
|
|
2253
|
-
`,CC=A.div`
|
|
2254
|
-
width: 100%;
|
|
2255
|
-
display: flex;
|
|
2256
|
-
justify-content: center;
|
|
2257
|
-
align-items: center;
|
|
2258
|
-
gap: ${p.sp1};
|
|
2259
|
-
`,bi=A.div`
|
|
2260
|
-
display: flex;
|
|
2261
|
-
justify-content: center;
|
|
2262
|
-
align-items: center;
|
|
2263
|
-
gap: ${p.sp3};
|
|
2264
|
-
`,vi=A.div`
|
|
2265
|
-
width: ${p.sp7};
|
|
2266
|
-
height: ${p.sp7};
|
|
2267
|
-
border-radius: 50%;
|
|
2268
|
-
display: flex;
|
|
2269
|
-
justify-content: center;
|
|
2270
|
-
align-items: center;
|
|
2271
|
-
background-color: ${e=>e.theme.mode==="dark"?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
2272
|
-
`,wi=A.div`
|
|
2273
|
-
display: flex;
|
|
2274
|
-
flex-direction: column;
|
|
2275
|
-
`,Si=A(wt)`
|
|
2276
|
-
color: ${e=>e.theme.colors.hero};
|
|
2277
|
-
`,Ei=A(Al)`
|
|
2278
|
-
min-width: 180px;
|
|
2279
|
-
color: ${e=>e.theme.colors.primary};
|
|
2280
|
-
`,yC=A(gd)`
|
|
2281
|
-
color: ${e=>e.theme.colors.primary};
|
|
2282
|
-
width: ${p.sp4};
|
|
2283
|
-
height: ${p.sp4};
|
|
2284
|
-
`,bC=A(md)`
|
|
2285
|
-
color: ${e=>e.theme.colors.primary};
|
|
2286
|
-
width: ${p.sp4};
|
|
2287
|
-
height: ${p.sp4};
|
|
2288
|
-
`,vC=A(e=>y.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.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"}),y.createElement("path",{d:"M17.1504 8.40656V7.6875",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),y.createElement("path",{d:"M17.1504 14.8753V14.1562",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))`
|
|
2289
|
-
color: ${e=>e.theme.colors.primary};
|
|
2290
|
-
width: ${p.sp4};
|
|
2291
|
-
height: ${p.sp4};
|
|
2292
|
-
`,wC=A(Rl)`
|
|
2293
|
-
width: ${p.sp3};
|
|
2294
|
-
height: ${p.sp3};
|
|
2295
|
-
color: ${e=>e.theme.colors.hero};
|
|
2296
|
-
:hover {
|
|
2297
|
-
color: ${e=>e.theme.colors.primary};
|
|
2298
|
-
}
|
|
2299
|
-
`,SC=A.div`
|
|
2300
|
-
display: flex;
|
|
2301
|
-
align-items: center;
|
|
2302
|
-
gap: ${p.sp1};
|
|
2303
|
-
`,EC=A.div`
|
|
2304
|
-
background-color: ${Oe.overlayDark};
|
|
2305
|
-
padding: 2px ${p.sp2};
|
|
2306
|
-
border-radius: ${p.sp1};
|
|
2307
|
-
`,vl=A.div`
|
|
2308
|
-
display: flex;
|
|
2309
|
-
justify-content: space-between;
|
|
2310
|
-
gap: ${p.sp2};
|
|
2311
|
-
`,wl=A.div`
|
|
2312
|
-
text-transform: capitalize;
|
|
2313
|
-
`,Sl=A(wt)`
|
|
2314
|
-
color: ${Oe.primaryDark};
|
|
2315
|
-
align-self: "flex-end";
|
|
2316
|
-
`,En=A(on)`
|
|
2317
|
-
border-radius: ${p.sp2};
|
|
2318
|
-
`,ki=A.div`
|
|
2319
|
-
display: flex;
|
|
2320
|
-
flex-direction: column;
|
|
2321
|
-
min-width: 180px;
|
|
2322
|
-
gap: ${p.sp1};
|
|
2323
|
-
`;export{mC as ConfirmationPopUpTitle,ey as default,cC as getNextAndPreviousSteps,dC as uniqueFormName};
|