@layers-app/editor 0.3.5 → 0.3.7
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{layers.HWxz-tJ3.js → layers.-awhHqjn.js} +1 -1
- package/dist/{layers.Bmw91Wbq.js → layers.32-GLDzG.js} +2 -2
- package/dist/{layers.BoXbCVBF.js → layers.3npLqOfp.js} +1 -1
- package/dist/{layers.DcqukeAl.js → layers.4gF3hpVZ.js} +1 -1
- package/dist/{layers.B3D0ozHh.js → layers.5zYcGGzO.js} +1 -1
- package/dist/{layers.D2ygghSU.js → layers.6V59_M-x.js} +1 -1
- package/dist/{layers.CziY3yM5.js → layers.6bM6IgkZ.js} +1 -1
- package/dist/{layers.BPUQUZOV.js → layers.6d779Ad5.js} +1 -1
- package/dist/{layers.D3ocnEt9.js → layers.AvrFyyy3.js} +1 -1
- package/dist/{layers.Cm2uuuwn.js → layers.B-x1i1zg.js} +1 -1
- package/dist/{layers.DZsdy0DH.js → layers.B1kg-q2l.js} +1 -1
- package/dist/{layers.D_n26XD3.js → layers.B3pRkAOL.js} +1 -1
- package/dist/{layers.SwIVAd47.js → layers.B50fa5Pj.js} +1 -1
- package/dist/{layers.CpbthWYa.js → layers.B5JerXRt.js} +1 -1
- package/dist/{layers.CmmrFN9j.js → layers.B9JYYPWh.js} +1 -1
- package/dist/{layers.WvBWtmCH.js → layers.BAZ0TtxU.js} +1 -1
- package/dist/{layers.DyONIYcr.js → layers.BDykQjKk.js} +1 -1
- package/dist/{layers.aFLgLw_O.js → layers.BEdUwoGx.js} +1 -1
- package/dist/{layers.CN5rweSl.js → layers.BH9yfTOh.js} +1 -1
- package/dist/layers.BILWd0k_.js +1 -0
- package/dist/{layers.BNoEeaBk.js → layers.BJQ3eOqs.js} +1 -1
- package/dist/{layers.B-2Agz6g.js → layers.BKeK3pXv.js} +1 -1
- package/dist/{layers.nsyW2tut.js → layers.BNM7GLFw.js} +4 -4
- package/dist/{layers.CjYZxxVE.js → layers.BSE5OMKV.js} +1 -1
- package/dist/{layers.D8tNnlFJ.js → layers.BWDEgEa3.js} +1 -1
- package/dist/{layers.DpzfdzUl.js → layers.BZs2pOPn.js} +1 -1
- package/dist/{layers.Bmew0wf2.js → layers.B_4_ktmf.js} +1 -1
- package/dist/{layers.DkVg4_Jv.js → layers.Bb9grXZF.js} +1 -1
- package/dist/{layers.CrB3Zb2x.js → layers.BbZMDIQR.js} +1 -1
- package/dist/{layers.BL-oxRdC.js → layers.BhUoHpK8.js} +3 -3
- package/dist/{layers.BNMsRKs9.js → layers.BjGCfc7k.js} +4 -4
- package/dist/{layers.CNhu_k13.js → layers.Bk27HpyT.js} +1 -1
- package/dist/{layers.C-osLaXj.js → layers.BkJwDZZz.js} +1 -1
- package/dist/{layers.BYDe5vrL.js → layers.Bksyc7a6.js} +1 -1
- package/dist/{layers.DFlI7VDJ.js → layers.BlzAE6ZE.js} +1 -1
- package/dist/{layers.CttOELwv.js → layers.Bm6KUEUF.js} +1 -1
- package/dist/{layers.DQaebS92.js → layers.BnxL6dgG.js} +4 -4
- package/dist/{layers.QHG4lBaG.js → layers.BotOa3mT.js} +8 -8
- package/dist/{layers.D_5iJWZ2.js → layers.BqNL8Xmp.js} +1 -1
- package/dist/layers.BrwERhHI.js +8 -0
- package/dist/{layers.Dh1TDZhz.js → layers.Bs7biuk2.js} +1 -1
- package/dist/{layers.DUI3C3j9.js → layers.BtQTaEAJ.js} +3 -3
- package/dist/{layers.COwSqhBl.js → layers.BuASDFSa.js} +1 -1
- package/dist/{layers.DB6hi1y0.js → layers.BuIC548l.js} +1 -1
- package/dist/{layers.BptRHkWH.js → layers.BvuH1NA3.js} +1 -1
- package/dist/layers.BwIMdsaa.js +1 -0
- package/dist/{layers.BrMvV8BA.js → layers.By6ZdlaR.js} +1 -1
- package/dist/{layers.wYQh6HY5.js → layers.ByRI4Rbg.js} +2 -2
- package/dist/{layers.BsuTIILN.js → layers.ByU8ErxT.js} +1 -1
- package/dist/{layers.BOStBqIO.js → layers.BynqlVLl.js} +3 -3
- package/dist/{layers.1QSMi-_x.js → layers.Bz0zcuno.js} +1 -1
- package/dist/{layers.BGvhVXV5.js → layers.BzOWdruG.js} +1 -1
- package/dist/{layers.bJmcOC1E.js → layers.BzcwKg3D.js} +1 -1
- package/dist/{layers.mKWbgtOH.js → layers.Bzg3I3IF.js} +3 -3
- package/dist/{layers.Ccx_jdDc.js → layers.C-UX_C-7.js} +1 -1
- package/dist/{layers.C70E0m20.js → layers.C-l1F8dG.js} +1 -1
- package/dist/{layers.0LpTBNiJ.js → layers.C154iCO6.js} +1 -1
- package/dist/{layers.B2V-AGtO.js → layers.C1HFy3pn.js} +1 -1
- package/dist/{layers.Avw7vzsL.js → layers.C2VT4H3l.js} +1 -1
- package/dist/{layers.DzDUVFKj.js → layers.C3J9F_AC.js} +1 -1
- package/dist/{layers.KIMloKsC.js → layers.C4Gmnbv7.js} +1 -1
- package/dist/{layers.C6I77Qap.js → layers.C4HDznKl.js} +1 -1
- package/dist/{layers.CSVxPHgX.js → layers.C4qLGu6A.js} +1 -1
- package/dist/{layers.B38zMYqc.js → layers.C4szncvP.js} +1 -1
- package/dist/{layers.CmLStJ73.js → layers.C5dE35A0.js} +1 -1
- package/dist/{layers.CfKYFPLY.js → layers.C7FRi0-t.js} +1 -1
- package/dist/{layers.puqicLst.js → layers.C7VYwr2U.js} +1 -1
- package/dist/{layers.D6WpII_G.js → layers.C7cqjkQH.js} +1 -1
- package/dist/{layers.-ISefX3p.js → layers.C9KlVXax.js} +4 -4
- package/dist/{layers.Do8k3TIT.js → layers.C9cgH58y.js} +1 -1
- package/dist/{layers.CrfCFcMZ.js → layers.CAXvPE2v.js} +1 -1
- package/dist/{layers.CvKw-DxT.js → layers.CCGxtbRY.js} +1 -1
- package/dist/{layers.CjkrmuRP.js → layers.CG4ndMir.js} +1 -1
- package/dist/{layers.C_J07V45.js → layers.CGBuwNUR.js} +1 -1
- package/dist/{layers.IeSUpgxC.js → layers.CI4_3idk.js} +1 -1
- package/dist/{layers.BaLepxRQ.js → layers.CIfXJQDm.js} +1 -1
- package/dist/layers.CKKYNL42.js +6 -0
- package/dist/{layers.BRp0_7zN.js → layers.CL719PIM.js} +1 -1
- package/dist/{layers.DZ7MGY88.js → layers.CLehtaL9.js} +1 -1
- package/dist/{layers.c4ZSZVAm.js → layers.CMlGOKr_.js} +332 -332
- package/dist/{layers.DFavHiGU.js → layers.CNEs6Hl1.js} +3 -3
- package/dist/{layers.uu94UlHW.js → layers.CO73zWTC.js} +1 -1
- package/dist/{layers.DPVfa6fS.js → layers.COFsYjRR.js} +1 -1
- package/dist/{layers.BxqcV34r.js → layers.COh3SCDX.js} +1 -1
- package/dist/{layers.CPSDnV9M.js → layers.CR-Q4ocm.js} +1 -1
- package/dist/{layers.Dwf5mgJ1.js → layers.CS_p8SK-.js} +1 -1
- package/dist/{layers.SB3PNmUy.js → layers.CVI52ZT7.js} +1 -1
- package/dist/{layers.CqzlfPSF.js → layers.CVIgcg2u.js} +1 -1
- package/dist/{layers.DXPZsDHJ.js → layers.CZhpT9Cc.js} +1 -1
- package/dist/{layers.Bj2JWvpG.js → layers.C_fHhTXI.js} +6 -6
- package/dist/{layers.DMkddGNO.js → layers.Cb5iMXcP.js} +1 -1
- package/dist/{layers.CF1t_7GJ.js → layers.CdSGuZP6.js} +4 -4
- package/dist/{layers.BtjK1dIG.js → layers.ClZ0AkYl.js} +1 -1
- package/dist/{layers.BTt8miT1.js → layers.CmLJBEea.js} +1 -1
- package/dist/{layers.S65vvX5F.js → layers.CoCfwb1G.js} +1 -1
- package/dist/{layers.Drf0CMox.js → layers.CoRoGHb0.js} +2 -2
- package/dist/{layers.DkUkY53Y.js → layers.CoWcxW6G.js} +1 -1
- package/dist/{layers.CK3zr9KH.js → layers.Cos6PXiD.js} +4 -4
- package/dist/{layers.CWDqV99i.js → layers.CpTplbYo.js} +1 -1
- package/dist/{layers.L954tLhU.js → layers.Cs8xxrkl.js} +1 -1
- package/dist/{layers.B4v9cXcW.js → layers.Cv9UAWr7.js} +1 -1
- package/dist/{layers.DSIe2dHd.js → layers.CwF7nTqy.js} +5 -5
- package/dist/{layers.BkVZt0ju.js → layers.CyVzdFQo.js} +1 -1
- package/dist/{layers.C3zQ2371.js → layers.Czl0F7hh.js} +1 -1
- package/dist/{layers.BtYE_uHn.js → layers.D-EGtOkJ.js} +1 -1
- package/dist/{layers.9kfzWn6n.js → layers.D-P6NZat.js} +1 -1
- package/dist/{layers.B5ZMW42w.js → layers.D1-f7j9d.js} +1 -1
- package/dist/{layers.DB6anrkN.js → layers.D2AVRywg.js} +1 -1
- package/dist/{layers.NvqS56wN.js → layers.D2AfGIEe.js} +1 -1
- package/dist/{layers.Dgsmf1FS.js → layers.D4NMZqyC.js} +1 -1
- package/dist/{layers.DlyA9BuX.js → layers.D4tGb5Xt.js} +1 -1
- package/dist/{layers.jPwPChUh.js → layers.D7rXrMlT.js} +1 -1
- package/dist/{layers.BZBVBeGI.js → layers.D9oMsgRR.js} +1 -1
- package/dist/{layers.Dl1Wykni.js → layers.DA8hfoV7.js} +1 -1
- package/dist/{layers.dzfXP3Qw.js → layers.DBQY5dWN.js} +1 -1
- package/dist/{layers.BVdGknCj.js → layers.DBm8fkuC.js} +1 -1
- package/dist/{layers.Km9VcCuU.js → layers.DBygaKOj.js} +1 -1
- package/dist/{layers.BcZUwFgi.js → layers.DCczQDu2.js} +1 -1
- package/dist/{layers.DW4BQSJ8.js → layers.DD4XLPNN.js} +1 -1
- package/dist/{layers.BmZ693BV.js → layers.DEO8w59Z.js} +1 -1
- package/dist/{layers.C9ImPFrJ.js → layers.DGFOz2Oq.js} +1 -1
- package/dist/{layers.DQNvPUlq.js → layers.DGxXMpYA.js} +1 -1
- package/dist/{layers.PJs6vfib.js → layers.DH1uiYgP.js} +3 -3
- package/dist/{layers.B9-0DFwd.js → layers.DHgaw6JF.js} +1 -1
- package/dist/{layers.CoROu3H7.js → layers.DHpqpF0H.js} +5 -5
- package/dist/{layers.hY2rmLyE.js → layers.DKG6Lfk0.js} +1 -1
- package/dist/{layers.DjUjt1kv.js → layers.DKQYkIkR.js} +1 -1
- package/dist/{layers.ByQQHL7z.js → layers.DKUQHU-0.js} +1 -1
- package/dist/{layers.BJIPGmjL.js → layers.DKpwcSnR.js} +1 -1
- package/dist/{layers.PrcRgP7m.js → layers.DM5uYGEr.js} +1 -1
- package/dist/{layers.DfuGhvO1.js → layers.DMiruzL0.js} +1 -1
- package/dist/{layers.CDW179o_.js → layers.DNbXVYzJ.js} +1 -1
- package/dist/{layers.C-d_E1Ka.js → layers.DOQ43wbr.js} +1 -1
- package/dist/{layers.DOciqx24.js → layers.DTVxoO0M.js} +1 -1
- package/dist/{layers.BT8KfR1M.js → layers.DTnFwC6d.js} +1 -1
- package/dist/{layers.4f0VywGG.js → layers.DWMXa60N.js} +1 -1
- package/dist/{layers.DH5HZa7n.js → layers.DZ6M8Ssj.js} +1 -1
- package/dist/{layers.Bh3gFN_z.js → layers.DZO0_2FZ.js} +1 -1
- package/dist/{layers.xyZn39Nw.js → layers.D_SZuZIF.js} +1 -1
- package/dist/{layers.De1Uc3Vw.js → layers.Dasv815m.js} +1 -1
- package/dist/{layers.DWoWjRJL.js → layers.DbcDBXzk.js} +13 -13
- package/dist/{layers.B6I3YJpy.js → layers.DeUUiLv3.js} +1 -1
- package/dist/{layers.C3DaUVgk.js → layers.DehcnVQT.js} +1 -1
- package/dist/{layers.Cr1DWRto.js → layers.DeqVjDws.js} +1 -1
- package/dist/{layers.7DyghSdd.js → layers.DfSWYFrX.js} +3 -3
- package/dist/{layers.CodmL7NO.js → layers.Dg5GTkfr.js} +1 -1
- package/dist/{layers.BI3RQUVK.js → layers.DgT1cE2m.js} +1 -1
- package/dist/{layers.CC1qZBeR.js → layers.DlFRcbme.js} +1 -1
- package/dist/{layers.DXpfzzGt.js → layers.DncJn_DS.js} +1 -1
- package/dist/{layers.BJ29ESN5.js → layers.DoHZ6_nl.js} +1 -1
- package/dist/{layers.C3EKAF4C.js → layers.DqFGe9F7.js} +2 -2
- package/dist/{layers.9BQ-j9b1.js → layers.DqIgaWgN.js} +1 -1
- package/dist/{layers.lZ1kDwoT.js → layers.DrmRjYTU.js} +24 -24
- package/dist/{layers.uoxQMub-.js → layers.DvdGNepI.js} +1 -1
- package/dist/{layers.BkXEjwFz.js → layers.DwvBq7HS.js} +1 -1
- package/dist/{layers.C0UPWEnP.js → layers.EXDAFgOs.js} +1 -1
- package/dist/{layers.DVZQDO2H.js → layers.Fviao2Nt.js} +1 -1
- package/dist/{layers.CZa6u_49.js → layers.G9RyRKYN.js} +1 -1
- package/dist/{layers.CZaAwSnp.js → layers.ISesG4vk.js} +1 -1
- package/dist/{layers.usBMILM2.js → layers.IWjdtipk.js} +1 -1
- package/dist/{layers.DQ7Nvo_L.js → layers.J9zLf4l3.js} +1 -1
- package/dist/{layers.xaLGXX6n.js → layers.JJZGZMYN.js} +1 -1
- package/dist/{layers.rxmTxykj.js → layers.LKR931RJ.js} +4 -4
- package/dist/{layers.DgiHNGIs.js → layers.LndAm8RD.js} +1 -1
- package/dist/{layers.DevUJEkT.js → layers.Nsa-qldy.js} +1 -1
- package/dist/{layers.BzPqIGLS.js → layers.PplD43nU.js} +2 -2
- package/dist/{layers.CORGsFNw.js → layers.PxHMF5r2.js} +3 -3
- package/dist/{layers.Cg6orZMG.js → layers.Q6lVbGY2.js} +1 -1
- package/dist/{layers.vZ-0Pws1.js → layers.RN6lIOA4.js} +1 -1
- package/dist/{layers.gv3F3_Rx.js → layers.RlcNhii2.js} +1 -1
- package/dist/{layers.Dtaao22P.js → layers.SyqvB7GX.js} +1 -1
- package/dist/{layers.D75L8dNA.js → layers.TTUH8gRV.js} +1 -1
- package/dist/{layers.D1V3WzgA.js → layers.UKzS3EkX.js} +1 -1
- package/dist/{layers.DiIXndSw.js → layers.Uygdt9Pj.js} +1 -1
- package/dist/{layers.Cwpt8FED.js → layers.VbWeRQn6.js} +4 -4
- package/dist/{layers.BG6mY0qN.js → layers.Xn-KVEex.js} +7 -7
- package/dist/{layers.Cwb3OGVv.js → layers.Y7wWyeCL.js} +1 -1
- package/dist/{layers.Df9Krzx8.js → layers.c_CuKfZF.js} +1 -1
- package/dist/{layers.BJLo5JWR.js → layers.dxw4H9Mr.js} +1 -1
- package/dist/{layers.CgE6qQ5L.js → layers.knLsHDoS.js} +1 -1
- package/dist/{layers.R5wDWcDd.js → layers.l7GBzhKw.js} +1 -1
- package/dist/{layers.DVnPMejm.js → layers.m1pqgR2_.js} +1 -1
- package/dist/{layers.B9EQFOJG.js → layers.mMvFRvgo.js} +1 -1
- package/dist/{layers.DHt4or2o.js → layers.nuQu5E-R.js} +1 -1
- package/dist/{layers.MrEIuZzI.js → layers.oIJUD-u3.js} +1 -1
- package/dist/{layers.7H2hk91s.js → layers.oKaRdOjO.js} +4 -4
- package/dist/{layers.D_333SnD.js → layers.pYcVg3Vv.js} +1 -1
- package/dist/{layers.DyNhAzV2.js → layers.pYy2twUx.js} +1 -1
- package/dist/{layers.Bz_62Cl5.js → layers.pfDGI-wZ.js} +1 -1
- package/dist/{layers.BhigGvNe.js → layers.rP9AgAMI.js} +1 -1
- package/dist/{layers.R3Qu3-UZ.js → layers.rWwdH-Oy.js} +1 -1
- package/dist/{layers.BhFgBMN4.js → layers.s_KFw_0J.js} +3 -3
- package/dist/{layers.DFvpMrzH.js → layers.tF7Rpqjy.js} +2 -2
- package/dist/{layers.0eG_3dCm.js → layers.ttKOEvg3.js} +1 -1
- package/dist/{layers.duxpp3Un.js → layers.uW-uRFdd.js} +2 -2
- package/dist/{layers.DyrZPkik.js → layers.vJcFBy2Z.js} +1 -1
- package/dist/{layers.psU6CTXa.js → layers.xxBenIF2.js} +1 -1
- package/dist/{layers.CPqeg0Ra.js → layers.y0J5eKLt.js} +1 -1
- package/dist/{layers.C6gS-yKz.js → layers.y_kPWNcI.js} +1 -1
- package/dist/{layers.gz5WkS5b.js → layers.z-HG5WGz.js} +3 -3
- package/dist/{layers.DWuymhXL.js → layers.z_Oa4Zgr.js} +3 -3
- package/dist/{layers.D8ysDvOA.js → layers.zgT6rJw5.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.CL0HBDKb.js +0 -8
- package/dist/layers.Ct0DRUg_.js +0 -1
- package/dist/layers.TBTzEtmF.js +0 -6
- package/dist/layers.coOwQC7E.js +0 -1
|
@@ -5,9 +5,9 @@ import "@mantine/dropzone";
|
|
|
5
5
|
import { jsx as b, Fragment as Je, jsxs as $ } from "react/jsx-runtime";
|
|
6
6
|
import * as Rf from "react";
|
|
7
7
|
import ol, { useContext as Rt, createContext as Ml, useRef as Fe, useEffect as X, useState as re, useCallback as Be, useMemo as bt, useLayoutEffect as Ms, memo as BP, forwardRef as Gy, lazy as nc, Suspense as Ll, createElement as FP, PureComponent as PP } from "react";
|
|
8
|
-
import { initReactI18next as zP, useTranslation as
|
|
8
|
+
import { initReactI18next as zP, useTranslation as vt, I18nextProvider as UP } from "react-i18next";
|
|
9
9
|
import { createPortal as Mr, flushSync as KP } from "react-dom";
|
|
10
|
-
import { ActionIcon as An, Flex as Ol, UnstyledButton as WP, Loader as $E, Text as nt, Tooltip as
|
|
10
|
+
import { ActionIcon as An, Flex as Ol, UnstyledButton as WP, Loader as $E, Text as nt, Tooltip as St, Box as Jr, Anchor as Jy, Image as At, Popover as ko, Stack as iu, TextInput as HP, Center as jP, Button as Ki, Select as e1, Menu as ve, alpha as t1, Portal as Qy, Input as Bc, Group as Xe, Table as Wr, Checkbox as Ii, Divider as n1, List as Kt, Title as YP, HoverCard as am, Modal as ZP, rem as fn, Transition as ma, Paper as GP, CopyButton as JP, LoadingOverlay as QP } from "@mantine/core";
|
|
11
11
|
import { useClickOutside as r1, useDisclosure as VP, useResizeObserver as XP, useDebouncedCallback as j0 } from "@mantine/hooks";
|
|
12
12
|
import qP from "i18next";
|
|
13
13
|
import { IconFile as ou, IconPalette as i1, IconLayoutSidebarLeftExpand as $P, IconSend as ez, IconReload as o1, IconShieldCheckFilled as tz, IconMessages as nz, IconFilter as rz, IconArrowBackUp as Y0, IconMessage as iz, IconMusic as oz, IconApi as sz, IconX as s1, IconPaperclip as lz, IconAt as az, IconCodeCircle as cz, IconBaseline as l1, IconExclamationCircle as a1, IconAlertTriangle as c1, IconCheck as Fa, IconMoodSmile as uz, IconBrandYoutube as dz, IconCheckupList as fz, IconDropletOff as hz, IconLayersSubtract as gz, IconLayersUnion as pz, IconTableOff as mz, IconContainerOff as Az, IconRowInsertBottom as yz, IconRowInsertTop as bz, IconColumnInsertRight as Bf, IconColumnInsertLeft as u1, IconArrowBarToRight as wz, IconArrowBarToLeft as vz, IconArrowBarToDown as Cz, IconArrowBarToUp as Sz, IconCut as d1, IconClipboard as f1, IconCopy as Ru, IconDotsVertical as xz, IconColumns3 as kz, IconCaretRight as Ez, IconTable as h1, IconTrash as Vf, IconPencil as Tz, IconCircleX as _z, IconCircleCheck as Nz, IconGripVertical as g1, IconChevronRight as Dz, IconChevronDown as Vy, IconPlus as po, IconMinus as Xy, IconSuperscript as Iz, IconSubscript as Mz, IconStrikethrough as Lz, IconFlipHorizontal as Oz, IconAlignJustified as Rz, IconAlignCenter as Bz, IconAlignRight as Fz, IconAlignLeft as cm, IconPhotoCheck as Pz, IconPhoto as zz, IconBucketDroplet as Uz, IconColorPicker as Kz, IconLink as p1, IconUnderline as Wz, IconItalic as Hz, IconBold as jz, IconArrowForwardUp as Yz, IconLetterT as Zz, IconQuote as Gz, IconIndentIncrease as m1, IconListNumbers as A1, IconH3 as Jz, IconH2 as Qz, IconH1 as y1, IconCode as b1, IconListCheck as Vz, IconList as Xz, IconExternalLink as qz, IconMenu2 as $z, IconArrowsDiagonal as w1, IconArrowsDiagonalMinimize2 as v1, IconCircleDashed as eU, IconCursorText as tU, IconPlayerPlayFilled as nU, IconTriangleFilled as da, IconArrowsRightLeft as rU, IconPaint as Z0, IconArrowNarrowLeft as qy, IconReplace as iU, IconTextPlus as oU, IconPlayerPlay as sU, IconWand as lU, IconTextSpellcheck as aU, IconSortAscending as cU, IconSortDescending as uU, IconNotes as dU, IconLanguage as fU, IconScript as hU, IconHelpOctagon as gU, IconSparkles as G0, IconAi as pU, IconColumns2 as mU, IconTemplate as AU, IconApps as yU } from "@tabler/icons-react";
|
|
@@ -2560,13 +2560,13 @@ function cK(n, e, t, r, i, o, s) {
|
|
|
2560
2560
|
const ee = ye.getBoundingClientRect();
|
|
2561
2561
|
ge = ee.top, pe = ee.bottom;
|
|
2562
2562
|
}
|
|
2563
|
-
let
|
|
2564
|
-
if (W < ge ?
|
|
2563
|
+
let te = 0;
|
|
2564
|
+
if (W < ge ? te = -(ge - W) : q > pe && (te = q - pe), te !== 0) if (ke) z.scrollBy(0, te);
|
|
2565
2565
|
else {
|
|
2566
2566
|
const ee = ye.scrollTop;
|
|
2567
|
-
ye.scrollTop +=
|
|
2568
|
-
const
|
|
2569
|
-
W -=
|
|
2567
|
+
ye.scrollTop += te;
|
|
2568
|
+
const ne = ye.scrollTop - ee;
|
|
2569
|
+
W -= ne, q -= ne;
|
|
2570
2570
|
}
|
|
2571
2571
|
if (ke) break;
|
|
2572
2572
|
ye = Yu(ye);
|
|
@@ -12723,7 +12723,7 @@ class yN extends YT {
|
|
|
12723
12723
|
this.shouldConnect = !0, !this.wsconnected && this.ws === null && (AN(this), this.connectBc());
|
|
12724
12724
|
}
|
|
12725
12725
|
}
|
|
12726
|
-
const K8 = "0.3.
|
|
12726
|
+
const K8 = "0.3.7", W8 = {
|
|
12727
12727
|
version: K8
|
|
12728
12728
|
}, H8 = /* @__PURE__ */ JSON.parse(`{"placeholder":"Write something, or press '/' for commands...","heading":{"h1":"Heading 1","h2":"Heading 2","h3":"Heading 3","name":"Heading"},"close":"Close","upload":"Upload","unsavedChanges":{"title":"Unsaved changes","message":"Are you sure you want to close the page? All unsaved data will be lost.","cancel":"Cancel","closeWithoutSaving":"Close without saving"},"menu":{"heading":{"title":"Headings","hintShowCase":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","h1":{"subtitle":"Large Heading","hintDescription":"H1 is used to create the main heading of a page or section, which sets the overall theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header1":"header1","headerOne":"headerone","h1":"h1"}},"h2":{"subtitle":"Medium Heading","hintDescription":"H2 is used to create a secondary heading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header2":"header2","headerTwo":"headertwo","h2":"h2"}},"h3":{"subtitle":"Small Heading","hintDescription":"H3 is used to create a subheading of a page or section, which sets a general theme. It is also used to automatically generate the table of contents for a document.","keywords":{"header3":"header3","headerThree":"headerthree","h3":"h3"}}},"lists":{"title":"Lists","numberList":{"name":"Numbered List","subtitle":"A simple numbered list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically numbered when new rows are added."}},"bulletList":{"name":"Bulleted List","subtitle":"Automatically marked list","hint":{"firstItem":"First item","secondItem":"Second item","firstSubItem":"First sub-item","secondSubItem":"Second sub-item","firstSubSubItem":"First sub-sub-item","secondSubSubItem":"Second sub-sub-item","description":"This tool creates a list with items that are automatically marked with bullets when new rows are added."}},"checkList":{"name":"Checklist","subtitle":"Easy task management","hint":{"indeterminate":"Indeterminate","unchecked":"Unchecked","checked":"Checked","description":"Creates a task list with the ability to mark completed items and sub-items."}}},"main":{"title":"Basics","paragraph":{"name":"Paragraph","subtitle":"Simply start typing regular text","hint":{"text":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A few lines of text, left-aligned, imitating a text block."}},"quote":{"name":"Quote","subtitle":"Write down a quote","hint":{"text":"/quote Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster. Stay focused, stay aligned, and achieve more with Layers.","description":"Used to insert quotes or highlight important text blocks. It is visually separated from the main text."}},"collapse":{"name":"Collapsible","subtitle":"Hide block content","hint":{"firstItemEmpty":"First item is empty","secondItem":"Second item","firstSubItemEmpty":"First sub-item is empty","secondSubItem":"Second sub-item","firstSubSubItemEmpty":"First sub-sub-item is empty","secondSubSubItem":"Second sub-sub-item","description":"Used to create blocks with content that can be hidden or shown when clicked. Almost any other block can be placed inside such a list."}},"horizontal-rule":{"name":"Divider","subtitle":"Visualizes block dividers","hint":{"topText":"Pressed the slash. Then entered something...","bottomText":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","description":"Used to visually separate sections or blocks of text on a page."}},"table":{"name":"Table","subtitle":"Add a simple table to your page","hint":{"firstRow":"First cell filled with text","secondRow":"And another cell with text","description":"A tool for creating tables with multiple rows and columns to organize data."}},"grid":{"name":"Grid","subtitle":"Up to 4 columns of blocks","hint":{"firstColumn":"The next day, everything became clearer and more understandable. As if what was unknown yesterday became completely familiar and ordinary today. Take, for example...","secondColumn":"Your Ideas, Documents, and Plans. United. Welcome to {{projectName}} — this is a connected workspace where work becomes better and faster.","description":"A tool for dividing a document into multiple columns, into which any blocks can be placed."}},"code":{"name":"Code","subtitle":"Write a code snippet","copy":"Copy code","exitCommandText":"Shift + Enter to exit code block","collapsible":{"hidden":"Collapse code","expand":"Expand code"},"hint":{"description":"A tool for inserting code snippets with syntax highlighting."}},"callout":{"name":"Callout","subtitle":"Make writing stand out","hint":{"description":"-."}}},"callout":{"title":"Callout","default":{"name":"Default","hint":{"description":"A few lines of text aligned to the left, simulating a text block.","body":"/callout Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster. Your Ideas, Documents, and Plans. Unified. Welcome to {{projectName}} — a connected workspace where work gets better and faster."},"keywords":{"callout":"callout","type":"default"},"subtitle":"Default callout"},"success":{"name":"Success","subtitle":"Successful notification","keywords":{"callout":"callout","type":"success"}},"warning":{"name":"Warning","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"warning"},"subtitle":"Important notification"},"alert":{"name":"Alert","hint":{"description":"A few lines of text aligned to the left, simulating a text block."},"keywords":{"callout":"callout","type":"alert"},"subtitle":"Critical notification"}},"media":{"title":"Media","photo":{"name":"Image","hint":{"description":"A tool for adding an image to a page."},"subtitle":"Upload and place via link"},"form":{"name":"Form","subtitle":"Add a form"},"video":{"name":"Video","hint":{"description":"A tool for embedding video on a page."},"subtitle":"Add a video"},"file":{"name":"File","hint":{"description":"Upload any files up to 500 MB in size, and they will be available for download to anyone you share the link to this page with."},"subtitle":"Add a file"},"audio":{"name":"Audio","hint":{"description":"Upload any audio files up to 5 MB in size, and they will be available for download and listening to anyone you share the link to this page with."},"subtitle":"Add a audio"},"excalidraw":{"name":"Paint","hint":{"description":"Draw any scheme or kind landscape. Free creativity where everything is in your hands."},"keywords":{"video":"draw"},"subtitle":"Work with vector graphics"}},"other":{"title":"Other","documents":{"empty":"You have no nested documents","name":"Nested Documents","subtitle":"Displays a list of nested documents"},"emoji":{"name":"Emoji","subtitle":"Add emoji"}},"integrations":{"title":"Integrations"}},"toolbar":{"turnInto":"Turn into","bold":"Bold","italic":"Italic","underline":"Underline","strike":"Strikethrough","superscript":"Superscript","subscript":"Subscript","align":"Alignment","left":"Align Left","center":"Align Center","right":"Align Right","justify":"Justify","indent":"Indent","outdent":"Outdent","color":"Color","code":"Code","link":"Add Link","clear":"Clear Formatting","comment":"Comment"},"link":{"linkName":"Link name","link":"Link","save":"Save","remove":"Remove","edit":"Edit","copy":"Copy"},"contextMenu":{"copy":"Copy","cut":"Cut","paste":"Paste","delete":"Delete","add":"Add","selectAll":"Select All","duplicate":"Duplicate","appearance":"Appearance"},"colors":{"lastTimeUsed":"Last Used","color":"Color","background":"Background","theme":"Theme","colors":{"standard":"Standard","gray":"Gray","brown":"Brown","orange":"Orange","yellow":"Yellow","green":"Green","blue":"Blue","purple":"Purple","pink":"Pink","red":"Red"},"callout":{"success":"Success","alert":"Alert","warning":"Warning"}},"video":{"insert":"Embed","apply":"Apply","worksWith":"Works with","add_video":"Add Video"},"swagger":{"insert":"Swagger","worksWith":"Works with","add":"Add Swagger"},"image":{"add_photo":"Add Image","preview":"Preview"},"file":{"add_file":"Add File"},"audio":{"add_audio":"Add Audio"},"mention":{"mark":"Mark someone"},"validation":{"link":"Invalid Link","shouldNotExceed":"File size should not exceed {{maxSize}} MB.","doNotUploadMoreThanSingleFile":"Please upload no more than one file.","swaggerUnavailable":"Swagger documentation is unavailable. Please make sure the URL is correct and the server is responding."},"table":{"background_one":"Cell Background Color","background_other":"Cells background color","settings":"Settings","menu":{"addColAfter":"Add Column Right","addColBefore":"Add Column Left","addRowAbove":"Add Row Above","addRowBelow":"Add Row Below","deleteCol":"Delete Column","deleteRow":"Delete Row","mergeCells":"Merge Cells","disconnectCells":"Disconnect Cells","splitCell":"Split Cell","deleteTable":"Delete Table","insertRow_one":"Insert row","insertRow_other":"Insert {{count}} rows","deleteRow_one":"Delete row","deleteRow_other":"Delete {{count}} rows","insertCol_one":"Insert column","insertCol_other":"Insert {{count}} columns","deleteCol_one":"Delete column","deleteCol_other":"Delete {{count}} columns","headTable_col":"{{value}} row column","headTable_row":"{{value}} row header","below":"Below","above":"Above","left":"Left","right":"Right","row":"Row","rows":"Rows","column":"Column","columns":"Columns"}},"column":{"name":"Insert Grid","insert":"Insert","columns":"Columns","addRight":"Add a column to the right","addLeft":"Add a column to the left","moveLeft":"Move a column to the left","changeColor":"Change the column color","moveRight":"Move a column to the right","deleteColumn":"Delete a column"},"hoverOptions":{"addNewBlockBelow":"Add block below","addNewBlockAbove":"Add block above","drag":"Drag","click":"Click","clickAction":"To open the menu","dragAction":"To move"},"embed":{"placeholder":"Enter a valid embed URL","insert":"Embed","addEmbed":"Add Embed"},"content":"Content","emoji":{"emojis":"Emoji","icons":"Icons","search":"Search","searchResults":"Search result","searchNoResults":"Emoji not found","remove":"Remove","emojiCategory":{"frequent":"Frequently used","people":"Emotions and people","nature":"Animals and nature","foods":"Food and drinks","activity":"Activities","places":"Travel and Places","objects":"Items","symbols":"Symbols","flags":"Flags"}},"form":{"url":"Enter a valid URL."},"noTitle":"No title","gallery":{"download":"Download","close":"Close","errorFile":"Failed to download file"},"emptyPageOptions":{"heading":"A Heading that will automatically generate an interactive table of contents","grid":"The grid will help structure the page horizontally","template":"Create from Template","list":"Numbered list, for easy outlining of the meeting","code":"Code block with syntax support","callout":"Callout for highlighting","table":"Table, to find dependencies in the data","integrations":"Many integrations from third-party services"},"comments":{"title":"Comments","edited":"edited","filter":{"resolved":"Resolved","open":"Open","all":"All","selectUsers":"Filter by users","searchPlaceholder":"Search users","emptyPlaceholder":"No users found","byStatus":"Filter by status","byPerson":"Filter by person"},"generalComment":"Add general comment","addComment":"Add a comment","replyComment":"Enter your reply","inputEditor":{"uploadFiles":"Upload files","sendMessage":"Send message","editMessage":"Edit message","clear":"Clear","clearModal":{"title":"Clear input","description":{"both":"Are you sure you want to delete the text and files?","text":"Are you sure you want to delete the text?","files":"Are you sure you want to delete the files?","empty":"Clear the input field?"}},"discardModal":{"title":"Exit without saving","description":"If you exit now, all unsaved changes will be lost.","labels":{"confirm":"Yes, exit","cancel":"Close"}},"cancelCommentModal":{"description":"If you leave now, your draft comment will be discarded and it won’t be posted."}},"notifications":{"title":"Notify me about:","description":"You will always be notified about mentions","options":{"all":"All comments","replies":"Replies"},"uploadMessages":{"tooManyFiles":"You can upload no more than 10 files!","fileTooLarge":"File(s) larger than 5MB will not be uploaded!","fileLimit":"You have reached the limit of 10 files"}},"actionTooltips":{"resolve":"Resolve","reopen":"Re-open","addReaction":"Add reaction","reactionLimit":"You’ve reached the reaction limit","reply":"Reply"},"menuActions":{"edit":"Edit","delete":"Delete","download":"Download"},"deleteModal":{"title":{"thread":"Delete Thread","general":"Delete General Discussion","comment":"Delete Reply"},"description":{"thread":"Are you sure you want to delete this thread and all its replies?","general":"Are you sure you want to delete this general discussion and all its replies?","comment":"Are you sure you want to delete this reply?"},"actions":{"cancel":"Cancel","remove":"Remove","delete":"Delete"}},"repliesToggle":{"show_one":"Show {{count}} more comment","show_other":"Show {{count}} more comments","hide":"Hide replies"},"emptyState":{"not-resolved":"No open comments","resolved":"No resolved comments","all":"No comments","userFilter":"No comments found for the selected user"}},"ai":{"placeholder":"Custom prompt","copied":"copied","copy":"copy","back":"Back","menu":{"style":{"professional":"Professional","straightforward":"Straightforward","passiveAggressive":"Passive-aggressive","friendly":"Friendly","poetic":"Poetic","passive_aggressive":"Passive aggressive","pirate":"Pirate"},"main":{"modifySelection":"Modify selection","improveWriting":"Improve writing","fixMistakes":"Fix mistakes","simplify":"Simplify","addMoreDetail":"Add more detail","generate":"Generate","summarise":"Summarise","translate":"Translate into...","changeStyle":"Change style to...","explain":"Explain"},"answer":{"replaceSelection":"Replace selection","addTextInline":"Add text inline","addBelowParagraph":"Add below paragraph","modifyFurther":"Modify further","continueWriting":"Continue writing","regenerate":"Regenerate","otherOptions":"Other options","discard":"Discard"},"languages":{"arabic":"Arabic","bengali":"Bengali","chinese":"Chinese","dutch":"Dutch","english":"English","french":"French","german":"German","hindi":"Hindi","japanese":"Japanese","korean":"Korean","nepali":"Nepali","portuguese":"Portuguese","spanish":"Spanish"}}},"actions":{"delete":"Delete","align":"Alignment"},"cancel":"Cancel"}`), j8 = {
|
|
12729
12729
|
editor: H8
|
|
@@ -13533,15 +13533,15 @@ function N6() {
|
|
|
13533
13533
|
z--, Z = v.slice(Q, ge), W.index -= Q;
|
|
13534
13534
|
} else if (W = u(Ae, 0, Z, B), !W)
|
|
13535
13535
|
continue;
|
|
13536
|
-
var ye = W.index, ke = W[0],
|
|
13537
|
-
_ &&
|
|
13536
|
+
var ye = W.index, ke = W[0], te = Z.slice(0, ye), ee = Z.slice(ye + ke.length), ne = Q + Z.length;
|
|
13537
|
+
_ && ne > _.reach && (_.reach = ne);
|
|
13538
13538
|
var he = oe.prev;
|
|
13539
|
-
|
|
13539
|
+
te && (he = g(S, he, te), Q += te.length), m(S, he, z);
|
|
13540
13540
|
var ce = new c(I, j ? l.tokenize(ke, j) : ke, V, ke);
|
|
13541
13541
|
if (oe = g(S, he, ce), ee && g(S, oe, ee), z > 1) {
|
|
13542
13542
|
var be = {
|
|
13543
13543
|
cause: I + "," + O,
|
|
13544
|
-
reach:
|
|
13544
|
+
reach: ne
|
|
13545
13545
|
};
|
|
13546
13546
|
d(v, S, E, oe.prev, Q, be), _ && be.reach > _.reach && (_.reach = be.reach);
|
|
13547
13547
|
}
|
|
@@ -18423,7 +18423,7 @@ const RH = (n, e) => n === yn.BOTH || n === e ? e : yn.NO_STATUS;
|
|
|
18423
18423
|
function Dh(n = !0) {
|
|
18424
18424
|
const e = H();
|
|
18425
18425
|
We(
|
|
18426
|
-
K(e) ||
|
|
18426
|
+
K(e) || Ct(e),
|
|
18427
18427
|
"Expected a RangeSelection or TableSelection"
|
|
18428
18428
|
);
|
|
18429
18429
|
const t = e.focus.getNode(), [r, , i] = Wn(t), [o, s] = $r(i, r, r), l = o[0].length, { startRow: c } = s;
|
|
@@ -18472,7 +18472,7 @@ function Dh(n = !0) {
|
|
|
18472
18472
|
function sy(n = !0) {
|
|
18473
18473
|
const e = H();
|
|
18474
18474
|
We(
|
|
18475
|
-
K(e) ||
|
|
18475
|
+
K(e) || Ct(e),
|
|
18476
18476
|
"Expected a RangeSelection or TableSelection"
|
|
18477
18477
|
);
|
|
18478
18478
|
const t = e.anchor.getNode(), r = e.focus.getNode(), [i] = Wn(t), [o, , s] = Wn(r), [l, c, u] = $r(
|
|
@@ -18544,7 +18544,7 @@ function sy(n = !0) {
|
|
|
18544
18544
|
function BH() {
|
|
18545
18545
|
const n = H();
|
|
18546
18546
|
We(
|
|
18547
|
-
K(n) ||
|
|
18547
|
+
K(n) || Ct(n),
|
|
18548
18548
|
"Expected a RangeSelection or TableSelection"
|
|
18549
18549
|
);
|
|
18550
18550
|
const [e, t] = n.isBackward() ? [n.focus.getNode(), n.anchor.getNode()] : [n.anchor.getNode(), n.focus.getNode()], [r, , i] = Wn(e), [o] = Wn(t), [s, l, c] = $r(
|
|
@@ -18592,7 +18592,7 @@ function BH() {
|
|
|
18592
18592
|
function FH() {
|
|
18593
18593
|
const n = H();
|
|
18594
18594
|
We(
|
|
18595
|
-
K(n) ||
|
|
18595
|
+
K(n) || Ct(n),
|
|
18596
18596
|
"Expected a RangeSelection or TableSelection"
|
|
18597
18597
|
);
|
|
18598
18598
|
const e = n.anchor.getNode(), t = n.focus.getNode(), [r, , i] = Wn(e), [o] = Wn(t), [s, l, c] = $r(
|
|
@@ -18652,7 +18652,7 @@ function hw(n, e) {
|
|
|
18652
18652
|
function PH() {
|
|
18653
18653
|
const n = H();
|
|
18654
18654
|
We(
|
|
18655
|
-
K(n) ||
|
|
18655
|
+
K(n) || Ct(n),
|
|
18656
18656
|
"Expected a RangeSelection or TableSelection"
|
|
18657
18657
|
);
|
|
18658
18658
|
const e = n.anchor.getNode(), [t, r, i] = Wn(e), o = t.__colSpan, s = t.__rowSpan;
|
|
@@ -18836,7 +18836,7 @@ class Tg {
|
|
|
18836
18836
|
this._cachedNodes = e;
|
|
18837
18837
|
}
|
|
18838
18838
|
is(e) {
|
|
18839
|
-
return
|
|
18839
|
+
return Ct(e) ? this.tableKey === e.tableKey && this.anchor.is(e.anchor) && this.focus.is(e.focus) : !1;
|
|
18840
18840
|
}
|
|
18841
18841
|
set(e, t, r) {
|
|
18842
18842
|
this.dirty = !0, this.tableKey = e, this.anchor.key = t, this.focus.key = r, this._cachedNodes = null;
|
|
@@ -19032,7 +19032,7 @@ class Tg {
|
|
|
19032
19032
|
return t;
|
|
19033
19033
|
}
|
|
19034
19034
|
}
|
|
19035
|
-
function
|
|
19035
|
+
function Ct(n) {
|
|
19036
19036
|
return n instanceof Tg;
|
|
19037
19037
|
}
|
|
19038
19038
|
function Ck() {
|
|
@@ -19238,7 +19238,7 @@ class UH {
|
|
|
19238
19238
|
formatCells(e) {
|
|
19239
19239
|
this.editor.update(() => {
|
|
19240
19240
|
const t = H();
|
|
19241
|
-
|
|
19241
|
+
Ct(t) || We(!1, "Expected grid selection");
|
|
19242
19242
|
const r = Rs(), i = r.anchor, o = r.focus, s = t.getNodes().filter(Re), l = s[0].getFirstChild(), c = qn(l) ? l.getFormatFlags(e, null) : null;
|
|
19243
19243
|
s.forEach((u) => {
|
|
19244
19244
|
i.set(u.getKey(), 0, "element"), o.set(u.getKey(), u.getChildrenSize(), "element"), r.formatText(e, c);
|
|
@@ -19252,7 +19252,7 @@ class UH {
|
|
|
19252
19252
|
if (!xt(t))
|
|
19253
19253
|
throw new Error("Expected TableNode.");
|
|
19254
19254
|
const r = H();
|
|
19255
|
-
|
|
19255
|
+
Ct(r) || We(!1, "Expected grid selection");
|
|
19256
19256
|
const i = r.getNodes().filter(Re);
|
|
19257
19257
|
if (i.length === this.table.columns * this.table.rows) {
|
|
19258
19258
|
t.selectPrevious(), t.remove(), Ke().selectStart();
|
|
@@ -19328,7 +19328,7 @@ function WH(n, e, t, r) {
|
|
|
19328
19328
|
const d = (p) => {
|
|
19329
19329
|
p.button === 0 && t.update(() => {
|
|
19330
19330
|
const y = H(), w = p.target;
|
|
19331
|
-
|
|
19331
|
+
Ct(y) && y.tableKey === o.tableNodeKey && i.contains(w) && o.clearHighlight();
|
|
19332
19332
|
});
|
|
19333
19333
|
};
|
|
19334
19334
|
s.addEventListener(
|
|
@@ -19364,7 +19364,7 @@ function WH(n, e, t, r) {
|
|
|
19364
19364
|
const y = H();
|
|
19365
19365
|
if (!Xs(y, n))
|
|
19366
19366
|
return !1;
|
|
19367
|
-
if (
|
|
19367
|
+
if (Ct(y))
|
|
19368
19368
|
return o.clearText(), !0;
|
|
19369
19369
|
if (K(y)) {
|
|
19370
19370
|
const w = Pe(
|
|
@@ -19403,14 +19403,14 @@ function WH(n, e, t, r) {
|
|
|
19403
19403
|
);
|
|
19404
19404
|
const g = (p) => {
|
|
19405
19405
|
const y = H();
|
|
19406
|
-
if (!(
|
|
19406
|
+
if (!(Ct(y) || K(y)))
|
|
19407
19407
|
return !1;
|
|
19408
19408
|
const w = n.isParentOf(y.anchor.getNode()), C = n.isParentOf(y.focus.getNode());
|
|
19409
19409
|
if (w !== C) {
|
|
19410
19410
|
const v = w ? "anchor" : "focus", S = w ? "focus" : "anchor", { key: E, offset: T, type: k } = y[S];
|
|
19411
19411
|
return n[y[v].isBefore(y[S]) ? "selectPrevious" : "selectNext"]()[S].set(E, T, k), !1;
|
|
19412
19412
|
}
|
|
19413
|
-
return
|
|
19413
|
+
return Ct(y) ? (p && (p.preventDefault(), p.stopPropagation()), o.clearText(), !0) : !1;
|
|
19414
19414
|
};
|
|
19415
19415
|
o.listenersToRemove.add(
|
|
19416
19416
|
t.registerCommand(
|
|
@@ -19430,7 +19430,7 @@ function WH(n, e, t, r) {
|
|
|
19430
19430
|
(p) => {
|
|
19431
19431
|
const y = H();
|
|
19432
19432
|
if (y) {
|
|
19433
|
-
if (!(
|
|
19433
|
+
if (!(Ct(y) || K(y)))
|
|
19434
19434
|
return !1;
|
|
19435
19435
|
ty(
|
|
19436
19436
|
t,
|
|
@@ -19451,7 +19451,7 @@ function WH(n, e, t, r) {
|
|
|
19451
19451
|
const y = H();
|
|
19452
19452
|
if (!Xs(y, n))
|
|
19453
19453
|
return !1;
|
|
19454
|
-
if (
|
|
19454
|
+
if (Ct(y))
|
|
19455
19455
|
return o.formatCells(p), !0;
|
|
19456
19456
|
if (K(y)) {
|
|
19457
19457
|
const w = Pe(
|
|
@@ -19470,7 +19470,7 @@ function WH(n, e, t, r) {
|
|
|
19470
19470
|
Vh,
|
|
19471
19471
|
(p) => {
|
|
19472
19472
|
const y = H();
|
|
19473
|
-
if (!
|
|
19473
|
+
if (!Ct(y) || !Xs(y, n))
|
|
19474
19474
|
return !1;
|
|
19475
19475
|
const w = y.anchor.getNode(), C = y.focus.getNode();
|
|
19476
19476
|
if (!Re(w) || !Re(C))
|
|
@@ -19514,7 +19514,7 @@ function WH(n, e, t, r) {
|
|
|
19514
19514
|
}), S && (v.clear(), y.insertText(p));
|
|
19515
19515
|
}), !Xs(y, n))
|
|
19516
19516
|
return !1;
|
|
19517
|
-
if (
|
|
19517
|
+
if (Ct(y))
|
|
19518
19518
|
return o.clearHighlight(), !1;
|
|
19519
19519
|
if (K(y)) {
|
|
19520
19520
|
const E = Pe(
|
|
@@ -19642,7 +19642,7 @@ function WH(n, e, t, r) {
|
|
|
19642
19642
|
const { onMouseUp: B, onMouseMove: P } = c();
|
|
19643
19643
|
o.isSelecting = !0, s.addEventListener("mouseup", B), s.addEventListener("mousemove", P);
|
|
19644
19644
|
}, 0)));
|
|
19645
|
-
} else if (p &&
|
|
19645
|
+
} else if (p && Ct(p) && p.is(y) && p.tableKey === n.getKey()) {
|
|
19646
19646
|
const v = GN(t._window);
|
|
19647
19647
|
if (v && v.anchorNode && v.focusNode) {
|
|
19648
19648
|
const S = He(
|
|
@@ -19663,7 +19663,7 @@ function WH(n, e, t, r) {
|
|
|
19663
19663
|
}
|
|
19664
19664
|
}
|
|
19665
19665
|
}
|
|
19666
|
-
return p && !p.is(y) && (
|
|
19666
|
+
return p && !p.is(y) && (Ct(p) || Ct(y)) && o.tableSelection && !o.tableSelection.is(y) ? (Ct(p) && p.tableKey === o.tableNodeKey ? o.updateTableTableSelection(p) : !Ct(p) && Ct(y) && y.tableKey === o.tableNodeKey && o.updateTableTableSelection(null), !1) : (o.hasHijackedSelectionStyles && !n.isSelected() ? YH(t, o) : !o.hasHijackedSelectionStyles && n.isSelected() && !w && !C && Sk(t, o), !1);
|
|
19667
19667
|
},
|
|
19668
19668
|
Tn
|
|
19669
19669
|
)
|
|
@@ -19844,7 +19844,7 @@ const JN = (n, e, t, r, i) => {
|
|
|
19844
19844
|
}
|
|
19845
19845
|
};
|
|
19846
19846
|
function Xs(n, e) {
|
|
19847
|
-
if (K(n) ||
|
|
19847
|
+
if (K(n) || Ct(n)) {
|
|
19848
19848
|
const t = e.isParentOf(n.anchor.getNode()), r = e.isParentOf(n.focus.getNode());
|
|
19849
19849
|
return t && r;
|
|
19850
19850
|
}
|
|
@@ -20059,7 +20059,7 @@ function Kc(n, e, t, r, i) {
|
|
|
20059
20059
|
);
|
|
20060
20060
|
return !0;
|
|
20061
20061
|
}
|
|
20062
|
-
} else if (
|
|
20062
|
+
} else if (Ct(o)) {
|
|
20063
20063
|
const { anchor: s, focus: l } = o, c = Pe(
|
|
20064
20064
|
s.getNode(),
|
|
20065
20065
|
Re
|
|
@@ -20723,7 +20723,7 @@ const $i = {
|
|
|
20723
20723
|
keyNode: e,
|
|
20724
20724
|
emoji: t
|
|
20725
20725
|
}) => {
|
|
20726
|
-
const { t: r } =
|
|
20726
|
+
const { t: r } = vt(), i = Fe(null);
|
|
20727
20727
|
return X(() => {
|
|
20728
20728
|
n.update(() => {
|
|
20729
20729
|
var l, c;
|
|
@@ -21024,7 +21024,7 @@ const Nk = {
|
|
|
21024
21024
|
onAfterCancel: o,
|
|
21025
21025
|
...s
|
|
21026
21026
|
}) => {
|
|
21027
|
-
const [l] = Me(), { t: c } =
|
|
21027
|
+
const [l] = Me(), { t: c } = vt(), u = () => {
|
|
21028
21028
|
l.update(() => {
|
|
21029
21029
|
const h = Te(i);
|
|
21030
21030
|
h && h.remove();
|
|
@@ -21083,7 +21083,7 @@ const Nk = {
|
|
|
21083
21083
|
icon: yj,
|
|
21084
21084
|
link: bj
|
|
21085
21085
|
}, wj = ({ page: n }) => {
|
|
21086
|
-
const { t: e } =
|
|
21086
|
+
const { t: e } = vt();
|
|
21087
21087
|
return /* @__PURE__ */ $("div", { className: Ym.link, onClick: n.onClick, children: [
|
|
21088
21088
|
/* @__PURE__ */ b("div", { className: Ym.icon, children: n.icon ? /* @__PURE__ */ b(
|
|
21089
21089
|
S1,
|
|
@@ -21094,14 +21094,14 @@ const Nk = {
|
|
|
21094
21094
|
fallback: /* @__PURE__ */ b(ou, { size: "1em" })
|
|
21095
21095
|
}
|
|
21096
21096
|
) : /* @__PURE__ */ b(ou, { size: 16 }) }),
|
|
21097
|
-
/* @__PURE__ */ b(
|
|
21097
|
+
/* @__PURE__ */ b(St, { label: n.title, disabled: !n.title, openDelay: 400, children: /* @__PURE__ */ b(nt, { truncate: !0, className: Ym.title, "data-empty": !n.title, children: n.title || e("editor.noTitle") }) })
|
|
21098
21098
|
] });
|
|
21099
21099
|
}, vj = BP, Cj = vj(wj), $N = ({ page: n }) => /* @__PURE__ */ $("div", { className: "docs-item", children: [
|
|
21100
21100
|
/* @__PURE__ */ b(Cj, { page: n }),
|
|
21101
21101
|
n.children && n.children.length > 0 && /* @__PURE__ */ b(Je, { children: n.children.map((e) => /* @__PURE__ */ b($N, { page: e }, e.id)) })
|
|
21102
21102
|
] });
|
|
21103
21103
|
function Sj({ nodeKey: n }) {
|
|
21104
|
-
const { pages: e } = Rt(Yt), { t } =
|
|
21104
|
+
const { pages: e } = Rt(Yt), { t } = vt();
|
|
21105
21105
|
return e.length === 0 ? /* @__PURE__ */ b("p", { style: { margin: 0 }, children: /* @__PURE__ */ b(
|
|
21106
21106
|
sd,
|
|
21107
21107
|
{
|
|
@@ -21293,11 +21293,11 @@ const kj = (n) => {
|
|
|
21293
21293
|
if (!z || Z.button === 2 || !(W != null && W.isResizing)) return;
|
|
21294
21294
|
const q = z.getBoundingClientRect(), ge = Z.clientX - q.left, pe = Z.clientY - q.top;
|
|
21295
21295
|
B(q, ge, pe);
|
|
21296
|
-
const ye = 0.17, ke = 12,
|
|
21297
|
-
|
|
21296
|
+
const ye = 0.17, ke = 12, te = u === "right", ee = u === "center", ne = W.isLeft, he = W.isTop, ce = W.isBottom, be = W.direction === "y", Ie = W.isRight, Oe = Math.floor(
|
|
21297
|
+
te ? q.right - Z.clientX - (q.right - W.startX) : Z.clientX - W.startX
|
|
21298
21298
|
), Ee = Math.floor(Z.clientY - W.startY);
|
|
21299
21299
|
let ze = 0;
|
|
21300
|
-
|
|
21300
|
+
ne || Ie ? ze = Oe / W.rootWidth * 100 : (he || ce || ee) && (ze = Ee * ye), (ne || he) && (!te || be && !ne) && (!ce || ee) && (ze = -ze), (he && Ie || ce && Ie) && (ze = Oe / W.rootWidth * 100), ze = Math.max(-100, Math.min(100, ze));
|
|
21301
21301
|
const tt = W.startWidthPercent + ze, gt = W.startHeightPercent + ze;
|
|
21302
21302
|
W.currentWidthPercent = R(
|
|
21303
21303
|
Math.max(ke, tt)
|
|
@@ -21329,7 +21329,7 @@ const kj = (n) => {
|
|
|
21329
21329
|
if (q === null) return;
|
|
21330
21330
|
const ge = (Rn = I.current) == null ? void 0 : Rn.getBoundingClientRect();
|
|
21331
21331
|
if (!q.getBoundingClientRect() || !ge) return;
|
|
21332
|
-
const { width: ye, height: ke, top:
|
|
21332
|
+
const { width: ye, height: ke, top: te, left: ee } = ge, ne = Z.clientX - ee, he = Z.clientY - te, ce = he <= Cf, be = he >= ke - Cf, Ie = ne <= Cf, Oe = ne >= ye - Cf, Ee = O.current, ze = window.getComputedStyle(z), tt = parseFloat(ze.paddingTop), gt = parseFloat(ze.paddingBottom), Zt = parseFloat(ze.paddingLeft), Gt = parseFloat(ze.paddingRight);
|
|
21333
21333
|
Ee.rootHeight = W.height - tt - gt || 0, Ee.rootWidth = W.width - Zt - Gt || 0, Ee.ratio = ye / ke, Ee.currentWidth = Ee.currentWidth || ye, Ee.currentWidthPercent = +I.current.style.width.replace(
|
|
21334
21334
|
"%",
|
|
21335
21335
|
""
|
|
@@ -22222,7 +22222,7 @@ function b9({
|
|
|
22222
22222
|
nodeKey: s,
|
|
22223
22223
|
create: l
|
|
22224
22224
|
}) {
|
|
22225
|
-
const [c, u] = re(r || ""), [d, h] = re(!1), [g, m] = re(l || !1), { t: p } =
|
|
22225
|
+
const [c, u] = re(r || ""), [d, h] = re(!1), [g, m] = re(l || !1), { t: p } = vt(), y = bt(
|
|
22226
22226
|
() => fc.find((k) => k.platform === t),
|
|
22227
22227
|
[t]
|
|
22228
22228
|
);
|
|
@@ -22535,7 +22535,7 @@ function Tw(n, e, t, r, i, o) {
|
|
|
22535
22535
|
function Zm(n) {
|
|
22536
22536
|
return n instanceof hc;
|
|
22537
22537
|
}
|
|
22538
|
-
const Dk = nc(() => import("./layers.
|
|
22538
|
+
const Dk = nc(() => import("./layers.ByRI4Rbg.js"));
|
|
22539
22539
|
function v9(n) {
|
|
22540
22540
|
const e = n.getAttribute("data-lexical-excalidraw-json"), t = n.firstChild.style.height || "0", r = n.firstChild.style.width || "0", i = n.style.justifyContent || "left", o = t === "inherit" ? "inherit" : parseInt(t, 10), s = r === "inherit" ? "inherit" : parseInt(r, 10);
|
|
22541
22541
|
return e ? {
|
|
@@ -22851,7 +22851,7 @@ function _9({
|
|
|
22851
22851
|
showExpandButton: s,
|
|
22852
22852
|
isCollapsed: l
|
|
22853
22853
|
}) {
|
|
22854
|
-
const [c, u] = re(!1), { t: d } =
|
|
22854
|
+
const [c, u] = re(!1), { t: d } = vt(), h = () => {
|
|
22855
22855
|
u((g) => {
|
|
22856
22856
|
const m = document.documentElement;
|
|
22857
22857
|
return g ? m.classList.remove("disable-scroll") : m.classList.add("disable-scroll"), !g;
|
|
@@ -22941,7 +22941,7 @@ const N9 = {
|
|
|
22941
22941
|
loader: eU
|
|
22942
22942
|
};
|
|
22943
22943
|
function D9({ copyToClipboard: n, pointerEvents: e }) {
|
|
22944
|
-
const [t, r] = re("copy"), { t: i } =
|
|
22944
|
+
const [t, r] = re("copy"), { t: i } = vt();
|
|
22945
22945
|
async function o() {
|
|
22946
22946
|
await n() && (r("loader"), setTimeout(() => {
|
|
22947
22947
|
r("success"), setTimeout(() => {
|
|
@@ -22984,7 +22984,7 @@ function I9({
|
|
|
22984
22984
|
anchorElem: n
|
|
22985
22985
|
}) {
|
|
22986
22986
|
var R, j;
|
|
22987
|
-
const [e] = Me(), { t } =
|
|
22987
|
+
const [e] = Me(), { t } = vt(), [r, i] = re(""), [o, s] = re(!1), [l, c] = re(
|
|
22988
22988
|
null
|
|
22989
22989
|
), [u, d] = ol.useState(null), [h, g] = re({
|
|
22990
22990
|
right: "0",
|
|
@@ -23203,13 +23203,13 @@ function I9({
|
|
|
23203
23203
|
onClick: _,
|
|
23204
23204
|
ariaLabel: "expand",
|
|
23205
23205
|
children: u ? /* @__PURE__ */ b(
|
|
23206
|
-
|
|
23206
|
+
St,
|
|
23207
23207
|
{
|
|
23208
23208
|
label: t("editor.menu.main.code.collapsible.hidden"),
|
|
23209
23209
|
children: /* @__PURE__ */ b(w1, { size: 14 })
|
|
23210
23210
|
}
|
|
23211
23211
|
) : /* @__PURE__ */ b(
|
|
23212
|
-
|
|
23212
|
+
St,
|
|
23213
23213
|
{
|
|
23214
23214
|
label: t("editor.menu.main.code.collapsible.expand"),
|
|
23215
23215
|
children: /* @__PURE__ */ b(v1, { size: 14 })
|
|
@@ -23218,7 +23218,7 @@ function I9({
|
|
|
23218
23218
|
}
|
|
23219
23219
|
) : null
|
|
23220
23220
|
] }),
|
|
23221
|
-
/* @__PURE__ */ b(
|
|
23221
|
+
/* @__PURE__ */ b(St, { label: t("editor.menu.main.code.exitCommandText"), children: /* @__PURE__ */ b(nt, { truncate: "end", size: "sm", id: "exitCommandParagraph", children: "Shift + Enter" }) })
|
|
23222
23222
|
] }),
|
|
23223
23223
|
w && /* @__PURE__ */ b(
|
|
23224
23224
|
_9,
|
|
@@ -23384,7 +23384,7 @@ function L9({
|
|
|
23384
23384
|
format: e,
|
|
23385
23385
|
nodeKey: r,
|
|
23386
23386
|
children: [
|
|
23387
|
-
/* @__PURE__ */ b(
|
|
23387
|
+
/* @__PURE__ */ b(St, { label: "Удалить", children: /* @__PURE__ */ b(
|
|
23388
23388
|
An,
|
|
23389
23389
|
{
|
|
23390
23390
|
color: "gray",
|
|
@@ -23486,7 +23486,7 @@ class ld extends Zo {
|
|
|
23486
23486
|
function Dw(n) {
|
|
23487
23487
|
return new ld(n);
|
|
23488
23488
|
}
|
|
23489
|
-
const R9 = nc(() => import("./layers.
|
|
23489
|
+
const R9 = nc(() => import("./layers.DNbXVYzJ.js"));
|
|
23490
23490
|
function B9(n) {
|
|
23491
23491
|
const e = n;
|
|
23492
23492
|
if (e.src.startsWith("file:///"))
|
|
@@ -23694,7 +23694,7 @@ function Dg({
|
|
|
23694
23694
|
function Eu(n) {
|
|
23695
23695
|
return n instanceof Go;
|
|
23696
23696
|
}
|
|
23697
|
-
const F9 = nc(() => import("./layers.
|
|
23697
|
+
const F9 = nc(() => import("./layers.EXDAFgOs.js"));
|
|
23698
23698
|
function P9(n) {
|
|
23699
23699
|
if (n instanceof HTMLImageElement) {
|
|
23700
23700
|
const { alt: e, src: t, width: r, height: i } = n;
|
|
@@ -24123,7 +24123,7 @@ const my = Ce(
|
|
|
24123
24123
|
"INSERT_MUSIC_COMMAND"
|
|
24124
24124
|
), pD = Ce("UPLOAD_MUSIC_COMMAND");
|
|
24125
24125
|
function mD() {
|
|
24126
|
-
const [n] = Me(), { t: e } =
|
|
24126
|
+
const [n] = Me(), { t: e } = vt(), { imperativeHandleRef: t, maxFileSize: r } = Rt(Yt);
|
|
24127
24127
|
return X(() => {
|
|
24128
24128
|
if (!n.hasNodes([gc]))
|
|
24129
24129
|
throw new Error("MusicPlugin: MusicNode not registered on editor");
|
|
@@ -24165,7 +24165,7 @@ function Z9({
|
|
|
24165
24165
|
nodeKey: i,
|
|
24166
24166
|
create: o
|
|
24167
24167
|
}) {
|
|
24168
|
-
const { t: s } =
|
|
24168
|
+
const { t: s } = vt(), { t: l } = vt("ui"), [c, u] = re(!1), [d, h] = re(!1), { start: g, cancel: m } = aw(), { fetchUploadMedia: p, maxFileSize: y } = Rt(Yt);
|
|
24169
24169
|
X(() => {
|
|
24170
24170
|
o && h(!0);
|
|
24171
24171
|
}, [o]), X(() => {
|
|
@@ -24604,7 +24604,7 @@ const Ay = Ce(
|
|
|
24604
24604
|
"INSERT_VIDEO_COMMAND"
|
|
24605
24605
|
), bD = Ce("UPLOAD_VIDEO_COMMAND");
|
|
24606
24606
|
function wD() {
|
|
24607
|
-
const [n] = Me(), { t: e } =
|
|
24607
|
+
const [n] = Me(), { t: e } = vt(), { imperativeHandleRef: t, maxFileSize: r } = Rt(Yt);
|
|
24608
24608
|
return X(() => {
|
|
24609
24609
|
if (!n.hasNodes([Jl]))
|
|
24610
24610
|
throw new Error("VideoPlugin: VideoNode not registered on editor");
|
|
@@ -24667,7 +24667,7 @@ const vD = ({
|
|
|
24667
24667
|
onChange: r,
|
|
24668
24668
|
transitionProps: $i,
|
|
24669
24669
|
children: [
|
|
24670
|
-
/* @__PURE__ */ b(ve.Target, { children: /* @__PURE__ */ b(
|
|
24670
|
+
/* @__PURE__ */ b(ve.Target, { children: /* @__PURE__ */ b(St, { label: i("editor.toolbar.align"), disabled: s, children: /* @__PURE__ */ b(
|
|
24671
24671
|
An,
|
|
24672
24672
|
{
|
|
24673
24673
|
size: 24,
|
|
@@ -24721,7 +24721,7 @@ function $9({
|
|
|
24721
24721
|
height: c,
|
|
24722
24722
|
alignment: u
|
|
24723
24723
|
}) {
|
|
24724
|
-
const { t: d } =
|
|
24724
|
+
const { t: d } = vt(), { t: h } = vt("ui"), [g, m] = re(!1), [, p] = re(!1), [y, w] = re(!1), [C, v] = re(!1), { start: S, cancel: E } = aw(), { fetchUploadMedia: T, fetchDeleteMedia: k, maxFileSize: _ } = Rt(Yt), I = bt(() => [
|
|
24725
24725
|
{
|
|
24726
24726
|
key: "link",
|
|
24727
24727
|
enabled: !0
|
|
@@ -24885,7 +24885,7 @@ function $9({
|
|
|
24885
24885
|
nodeKey: o
|
|
24886
24886
|
}
|
|
24887
24887
|
),
|
|
24888
|
-
/* @__PURE__ */ b(
|
|
24888
|
+
/* @__PURE__ */ b(St, { label: "Удалить", children: /* @__PURE__ */ b(
|
|
24889
24889
|
An,
|
|
24890
24890
|
{
|
|
24891
24891
|
color: "gray",
|
|
@@ -25080,7 +25080,7 @@ function Nu(n) {
|
|
|
25080
25080
|
}
|
|
25081
25081
|
const Mh = Ce("INSERT_IMAGE_COMMAND"), eY = Ce("UPLOAD_IMAGE_COMMAND");
|
|
25082
25082
|
function tY() {
|
|
25083
|
-
const [n] = Me(), { t: e } =
|
|
25083
|
+
const [n] = Me(), { t: e } = vt(), { imperativeHandleRef: t } = Rt(Yt), { maxFileSize: r } = Rt(Yt);
|
|
25084
25084
|
return X(() => {
|
|
25085
25085
|
if (!n.hasNodes([Go]))
|
|
25086
25086
|
throw new Error("ImageOlugin: FileNode not registered on editor");
|
|
@@ -25130,7 +25130,7 @@ const Rg = (n) => {
|
|
|
25130
25130
|
"INSERT_FILE_COMMAND"
|
|
25131
25131
|
), CD = Ce("UPLOAD_FILE_COMMAND");
|
|
25132
25132
|
function SD() {
|
|
25133
|
-
const [n] = Me(), { t: e } =
|
|
25133
|
+
const [n] = Me(), { t: e } = vt(), { imperativeHandleRef: t, maxFileSize: r } = Rt(Yt);
|
|
25134
25134
|
return X(() => {
|
|
25135
25135
|
if (!n.hasNodes([Ql]))
|
|
25136
25136
|
throw new Error("FilePlugin: FileNode not registered on editor");
|
|
@@ -25185,7 +25185,7 @@ function rY({
|
|
|
25185
25185
|
nodeKey: i,
|
|
25186
25186
|
create: o
|
|
25187
25187
|
}) {
|
|
25188
|
-
const { t: s } =
|
|
25188
|
+
const { t: s } = vt(), { t: l } = vt("ui"), [c, u] = re(!1), [d, h] = re(!1), g = Fe(null), { fetchUploadMedia: m, maxFileSize: p } = Rt(Yt), { startLoading: y, stopLoading: w } = _6(), { start: C, cancel: v } = aw();
|
|
25189
25189
|
X(() => {
|
|
25190
25190
|
r.update(() => {
|
|
25191
25191
|
var R, j;
|
|
@@ -26135,7 +26135,7 @@ function jk(n, e) {
|
|
|
26135
26135
|
return { leadOffset: t, matchingString: i, replaceableString: r };
|
|
26136
26136
|
}
|
|
26137
26137
|
function Fw() {
|
|
26138
|
-
const [n] = Me(), { t: e } =
|
|
26138
|
+
const [n] = Me(), { t: e } = vt(), [t, r] = re(!1), i = Fe(null), o = Fe(""), s = Fe({
|
|
26139
26139
|
key: null,
|
|
26140
26140
|
offset: null
|
|
26141
26141
|
}), l = Fe({
|
|
@@ -26532,7 +26532,7 @@ function KY({
|
|
|
26532
26532
|
const i = Fe(null), o = Fe(!1), s = Fe(null), l = Fe(null), [c, u] = re(""), [d, h] = re(""), [g, m] = re(!0), [p, y] = re(!1), [w, C] = re(!1), [v, S] = re("delete"), [E, T] = re({
|
|
26533
26533
|
top: 0,
|
|
26534
26534
|
left: 0
|
|
26535
|
-
}), { t: k } =
|
|
26535
|
+
}), { t: k } = vt(), _ = () => {
|
|
26536
26536
|
setTimeout(() => {
|
|
26537
26537
|
o.current = !1, S("delete"), u(""), y(!1), C(!1), T({
|
|
26538
26538
|
top: 0,
|
|
@@ -28468,7 +28468,7 @@ const j5 = ({
|
|
|
28468
28468
|
}
|
|
28469
28469
|
}
|
|
28470
28470
|
),
|
|
28471
|
-
/* @__PURE__ */ b(
|
|
28471
|
+
/* @__PURE__ */ b(St, { disabled: !t, label: n("editor.image.preview"), children: /* @__PURE__ */ b(
|
|
28472
28472
|
An,
|
|
28473
28473
|
{
|
|
28474
28474
|
onClick: () => {
|
|
@@ -28489,7 +28489,7 @@ const j5 = ({
|
|
|
28489
28489
|
const [e] = Me(), [t, r] = re(!1), [i, o] = re(!1), [s, l] = re(null), c = Fe(null), [u, d] = re({
|
|
28490
28490
|
right: "0",
|
|
28491
28491
|
top: "0"
|
|
28492
|
-
}), { t: h } =
|
|
28492
|
+
}), { t: h } = vt(), g = Ng(
|
|
28493
28493
|
(w) => {
|
|
28494
28494
|
if (w.target instanceof HTMLElement && w.target.clientWidth < 100)
|
|
28495
28495
|
return;
|
|
@@ -28564,7 +28564,7 @@ const j5 = ({
|
|
|
28564
28564
|
id: (y = c.current) == null ? void 0 : y.getAttribute("data-id")
|
|
28565
28565
|
}
|
|
28566
28566
|
),
|
|
28567
|
-
/* @__PURE__ */ b(
|
|
28567
|
+
/* @__PURE__ */ b(St, { disabled: !i, label: h("editor.contextMenu.delete"), children: /* @__PURE__ */ b(
|
|
28568
28568
|
An,
|
|
28569
28569
|
{
|
|
28570
28570
|
color: "gray",
|
|
@@ -30696,7 +30696,7 @@ function yI({
|
|
|
30696
30696
|
key: "excalidraw",
|
|
30697
30697
|
hide: e || t.excalidraw,
|
|
30698
30698
|
onSelect: () => {
|
|
30699
|
-
t.excalidraw || import("./layers.
|
|
30699
|
+
t.excalidraw || import("./layers.PplD43nU.js").then(
|
|
30700
30700
|
({ INSERT_EXCALIDRAW_COMMAND: l }) => {
|
|
30701
30701
|
En(
|
|
30702
30702
|
n,
|
|
@@ -30954,7 +30954,7 @@ function Qw({
|
|
|
30954
30954
|
show: !0,
|
|
30955
30955
|
key: "",
|
|
30956
30956
|
isCheck: !0
|
|
30957
|
-
}), [o, s] = re(null), [l, c] = re(0), { t: u } =
|
|
30957
|
+
}), [o, s] = re(null), [l, c] = re(0), { t: u } = vt(), d = (l === 100).toString(), { fetchUploadMedia: h, excludeNodes: g } = Rt(Yt), m = _D("/", {
|
|
30958
30958
|
minLength: 0
|
|
30959
30959
|
}), { options: p, groupOptions: y, groupedInitialOptions: w } = bt(() => {
|
|
30960
30960
|
const { groupedOptions: T, baseOptions: k } = zZ({
|
|
@@ -31178,7 +31178,7 @@ const KZ = (n) => n instanceof HTMLHeadingElement, WZ = ({
|
|
|
31178
31178
|
K(t) && WZ({ selection: t, editor: n, t: e });
|
|
31179
31179
|
});
|
|
31180
31180
|
}, vI = () => {
|
|
31181
|
-
const [n] = Me(), { t: e } =
|
|
31181
|
+
const [n] = Me(), { t: e } = vt();
|
|
31182
31182
|
return X(() => (n.read(() => {
|
|
31183
31183
|
const r = Ke().getChildren();
|
|
31184
31184
|
if (r.length === 1) {
|
|
@@ -31226,7 +31226,7 @@ const jZ = ({
|
|
|
31226
31226
|
r("both");
|
|
31227
31227
|
},
|
|
31228
31228
|
children: /* @__PURE__ */ b(
|
|
31229
|
-
|
|
31229
|
+
St,
|
|
31230
31230
|
{
|
|
31231
31231
|
openDelay: 300,
|
|
31232
31232
|
label: l("editor.hoverOptions.addNewBlockAbove"),
|
|
@@ -31275,7 +31275,7 @@ const jZ = ({
|
|
|
31275
31275
|
r("both");
|
|
31276
31276
|
},
|
|
31277
31277
|
children: /* @__PURE__ */ b(
|
|
31278
|
-
|
|
31278
|
+
St,
|
|
31279
31279
|
{
|
|
31280
31280
|
disabled: i.current || !n,
|
|
31281
31281
|
openDelay: 300,
|
|
@@ -31379,7 +31379,7 @@ function SI({
|
|
|
31379
31379
|
menuProps: l,
|
|
31380
31380
|
onChange: c
|
|
31381
31381
|
}) {
|
|
31382
|
-
const [u, d] = CI(), { t: h, i18n: g } =
|
|
31382
|
+
const [u, d] = CI(), { t: h, i18n: g } = vt(), m = bt(
|
|
31383
31383
|
() => yI({
|
|
31384
31384
|
editor: n,
|
|
31385
31385
|
isToolbar: !0,
|
|
@@ -31411,7 +31411,7 @@ function SI({
|
|
|
31411
31411
|
transitionProps: $i,
|
|
31412
31412
|
...l,
|
|
31413
31413
|
children: [
|
|
31414
|
-
/* @__PURE__ */ b(ve.Target, { children: s || /* @__PURE__ */ b(
|
|
31414
|
+
/* @__PURE__ */ b(ve.Target, { children: s || /* @__PURE__ */ b(St, { label: h("editor.toolbar.turnInto"), children: /* @__PURE__ */ $(
|
|
31415
31415
|
"button",
|
|
31416
31416
|
{
|
|
31417
31417
|
disabled: t,
|
|
@@ -31863,7 +31863,7 @@ function qZ() {
|
|
|
31863
31863
|
["partial", T],
|
|
31864
31864
|
["partialRight", k],
|
|
31865
31865
|
["rearg", I]
|
|
31866
|
-
], pe = "[object Arguments]", ye = "[object Array]", ke = "[object AsyncFunction]",
|
|
31866
|
+
], pe = "[object Arguments]", ye = "[object Array]", ke = "[object AsyncFunction]", te = "[object Boolean]", ee = "[object Date]", ne = "[object DOMException]", he = "[object Error]", ce = "[object Function]", be = "[object GeneratorFunction]", Ie = "[object Map]", Oe = "[object Number]", Ee = "[object Null]", ze = "[object Object]", tt = "[object Promise]", gt = "[object Proxy]", Zt = "[object RegExp]", Gt = "[object Set]", Rn = "[object String]", je = "[object Symbol]", ut = "[object Undefined]", wt = "[object WeakMap]", Bt = "[object WeakSet]", Dt = "[object ArrayBuffer]", it = "[object DataView]", It = "[object Float32Array]", cr = "[object Float64Array]", Ti = "[object Int8Array]", Lr = "[object Int16Array]", si = "[object Int32Array]", zs = "[object Uint8Array]", pc = "[object Uint8ClampedArray]", ur = "[object Uint16Array]", Jo = "[object Uint32Array]", tM = /\b__p \+= '';/g, nM = /\b(__p \+=) '' \+/g, rM = /(__e\(.*?\)|\b__t\)) \+\n'';/g, pv = /&(?:amp|lt|gt|quot|#39);/g, mv = /[&<>"']/g, iM = RegExp(pv.source), oM = RegExp(mv.source), sM = /<%-([\s\S]+?)%>/g, lM = /<%([\s\S]+?)%>/g, Av = /<%=([\s\S]+?)%>/g, aM = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, cM = /^\w*$/, uM = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Vg = /[\\^$.*+?()[\]{}|]/g, dM = RegExp(Vg.source), Xg = /^\s+/, fM = /\s/, hM = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, gM = /\{\n\/\* \[wrapped with (.+)\] \*/, pM = /,? & /, mM = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, AM = /[()=,{}\[\]\/\s]/, yM = /\\(\\)?/g, bM = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, yv = /\w*$/, wM = /^[-+]0x[0-9a-f]+$/i, vM = /^0b[01]+$/i, CM = /^\[object .+?Constructor\]$/, SM = /^0o[0-7]+$/i, xM = /^(?:0|[1-9]\d*)$/, kM = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ad = /($^)/, EM = /['\n\r\u2028\u2029\\]/g, yd = "\\ud800-\\udfff", TM = "\\u0300-\\u036f", _M = "\\ufe20-\\ufe2f", NM = "\\u20d0-\\u20ff", bv = TM + _M + NM, wv = "\\u2700-\\u27bf", vv = "a-z\\xdf-\\xf6\\xf8-\\xff", DM = "\\xac\\xb1\\xd7\\xf7", IM = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", MM = "\\u2000-\\u206f", LM = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Cv = "A-Z\\xc0-\\xd6\\xd8-\\xde", Sv = "\\ufe0e\\ufe0f", xv = DM + IM + MM + LM, qg = "['’]", OM = "[" + yd + "]", kv = "[" + xv + "]", bd = "[" + bv + "]", Ev = "\\d+", RM = "[" + wv + "]", Tv = "[" + vv + "]", _v = "[^" + yd + xv + Ev + wv + vv + Cv + "]", $g = "\\ud83c[\\udffb-\\udfff]", BM = "(?:" + bd + "|" + $g + ")", Nv = "[^" + yd + "]", ep = "(?:\\ud83c[\\udde6-\\uddff]){2}", tp = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xl = "[" + Cv + "]", Dv = "\\u200d", Iv = "(?:" + Tv + "|" + _v + ")", FM = "(?:" + Xl + "|" + _v + ")", Mv = "(?:" + qg + "(?:d|ll|m|re|s|t|ve))?", Lv = "(?:" + qg + "(?:D|LL|M|RE|S|T|VE))?", Ov = BM + "?", Rv = "[" + Sv + "]?", PM = "(?:" + Dv + "(?:" + [Nv, ep, tp].join("|") + ")" + Rv + Ov + ")*", zM = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", UM = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Bv = Rv + Ov + PM, KM = "(?:" + [RM, ep, tp].join("|") + ")" + Bv, WM = "(?:" + [Nv + bd + "?", bd, ep, tp, OM].join("|") + ")", HM = RegExp(qg, "g"), jM = RegExp(bd, "g"), np = RegExp($g + "(?=" + $g + ")|" + WM + Bv, "g"), YM = RegExp([
|
|
31867
31867
|
Xl + "?" + Tv + "+" + Mv + "(?=" + [kv, Xl, "$"].join("|") + ")",
|
|
31868
31868
|
FM + "+" + Lv + "(?=" + [kv, Xl + Iv, "$"].join("|") + ")",
|
|
31869
31869
|
Xl + "?" + Iv + "+" + Mv,
|
|
@@ -31904,9 +31904,9 @@ function qZ() {
|
|
|
31904
31904
|
"parseInt",
|
|
31905
31905
|
"setTimeout"
|
|
31906
31906
|
], QM = -1, Jt = {};
|
|
31907
|
-
Jt[It] = Jt[cr] = Jt[Ti] = Jt[Lr] = Jt[si] = Jt[zs] = Jt[pc] = Jt[ur] = Jt[Jo] = !0, Jt[pe] = Jt[ye] = Jt[Dt] = Jt[
|
|
31907
|
+
Jt[It] = Jt[cr] = Jt[Ti] = Jt[Lr] = Jt[si] = Jt[zs] = Jt[pc] = Jt[ur] = Jt[Jo] = !0, Jt[pe] = Jt[ye] = Jt[Dt] = Jt[te] = Jt[it] = Jt[ee] = Jt[he] = Jt[ce] = Jt[Ie] = Jt[Oe] = Jt[ze] = Jt[Zt] = Jt[Gt] = Jt[Rn] = Jt[wt] = !1;
|
|
31908
31908
|
var jt = {};
|
|
31909
|
-
jt[pe] = jt[ye] = jt[Dt] = jt[it] = jt[
|
|
31909
|
+
jt[pe] = jt[ye] = jt[Dt] = jt[it] = jt[te] = jt[ee] = jt[It] = jt[cr] = jt[Ti] = jt[Lr] = jt[si] = jt[Ie] = jt[Oe] = jt[ze] = jt[Zt] = jt[Gt] = jt[Rn] = jt[je] = jt[zs] = jt[pc] = jt[ur] = jt[Jo] = !0, jt[he] = jt[ce] = jt[wt] = !1;
|
|
31910
31910
|
var VM = {
|
|
31911
31911
|
// Latin-1 Supplement block.
|
|
31912
31912
|
À: "A",
|
|
@@ -33701,7 +33701,7 @@ function qZ() {
|
|
|
33701
33701
|
a = a.buffer, f = f.buffer;
|
|
33702
33702
|
case Dt:
|
|
33703
33703
|
return !(a.byteLength != f.byteLength || !L(new _d(a), new _d(f)));
|
|
33704
|
-
case
|
|
33704
|
+
case te:
|
|
33705
33705
|
case ee:
|
|
33706
33706
|
case Oe:
|
|
33707
33707
|
return ci(+a, +f);
|
|
@@ -33821,7 +33821,7 @@ function qZ() {
|
|
|
33821
33821
|
Vo(f, Wp(a)), a = Nd(a);
|
|
33822
33822
|
return f;
|
|
33823
33823
|
} : sm, Yn = tr;
|
|
33824
|
-
(mp && Yn(new mp(new ArrayBuffer(1))) != it || yc && Yn(new yc()) != Ie || Ap && Yn(Ap.resolve()) != tt || ra && Yn(new ra()) != Gt || bc && Yn(new bc()) !=
|
|
33824
|
+
(mp && Yn(new mp(new ArrayBuffer(1))) != it || yc && Yn(new yc()) != Ie || Ap && Yn(Ap.resolve()) != tt || ra && Yn(new ra()) != Gt || bc && Yn(new bc()) != wt) && (Yn = function(a) {
|
|
33825
33825
|
var f = tr(a), A = f == ze ? a.constructor : t, x = A ? Gs(A) : "";
|
|
33826
33826
|
if (x)
|
|
33827
33827
|
switch (x) {
|
|
@@ -33834,7 +33834,7 @@ function qZ() {
|
|
|
33834
33834
|
case YL:
|
|
33835
33835
|
return Gt;
|
|
33836
33836
|
case ZL:
|
|
33837
|
-
return
|
|
33837
|
+
return wt;
|
|
33838
33838
|
}
|
|
33839
33839
|
return f;
|
|
33840
33840
|
});
|
|
@@ -33884,7 +33884,7 @@ function qZ() {
|
|
|
33884
33884
|
switch (f) {
|
|
33885
33885
|
case Dt:
|
|
33886
33886
|
return Rp(a);
|
|
33887
|
-
case
|
|
33887
|
+
case te:
|
|
33888
33888
|
case ee:
|
|
33889
33889
|
return new x(+a);
|
|
33890
33890
|
case it:
|
|
@@ -34734,7 +34734,7 @@ function qZ() {
|
|
|
34734
34734
|
return tn(a) && fr(a);
|
|
34735
34735
|
}
|
|
34736
34736
|
function CB(a) {
|
|
34737
|
-
return a === !0 || a === !1 || tn(a) && tr(a) ==
|
|
34737
|
+
return a === !0 || a === !1 || tn(a) && tr(a) == te;
|
|
34738
34738
|
}
|
|
34739
34739
|
var rs = BL || lm, SB = Uv ? Sr(Uv) : DO;
|
|
34740
34740
|
function xB(a) {
|
|
@@ -34767,7 +34767,7 @@ function qZ() {
|
|
|
34767
34767
|
if (!tn(a))
|
|
34768
34768
|
return !1;
|
|
34769
34769
|
var f = tr(a);
|
|
34770
|
-
return f == he || f ==
|
|
34770
|
+
return f == he || f == ne || typeof a.message == "string" && typeof a.name == "string" && !Dc(a);
|
|
34771
34771
|
}
|
|
34772
34772
|
function _B(a) {
|
|
34773
34773
|
return typeof a == "number" && sC(a);
|
|
@@ -34840,7 +34840,7 @@ function qZ() {
|
|
|
34840
34840
|
return a === t;
|
|
34841
34841
|
}
|
|
34842
34842
|
function FB(a) {
|
|
34843
|
-
return tn(a) && Yn(a) ==
|
|
34843
|
+
return tn(a) && Yn(a) == wt;
|
|
34844
34844
|
}
|
|
34845
34845
|
function PB(a) {
|
|
34846
34846
|
return tn(a) && tr(a) == Bt;
|
|
@@ -35560,7 +35560,7 @@ function i7(n, e, t) {
|
|
|
35560
35560
|
}), c = Fe(null), [u, d] = re(null), { disable: h } = Rt(Yt), [g, m] = re(!1), [p, y] = re({ opened: !1 }), [w, C] = re(""), [v, S] = re(null), [E, T] = re(!1), [k, _] = re({
|
|
35561
35561
|
left: !1,
|
|
35562
35562
|
right: !1
|
|
35563
|
-
}), [I, N] = re(null), { t: O } =
|
|
35563
|
+
}), [I, N] = re(null), { t: O } = vt(), R = Ng(
|
|
35564
35564
|
(z) => {
|
|
35565
35565
|
const W = z.target;
|
|
35566
35566
|
s.current || Tf(W) && (iZ(W) || n.read(() => {
|
|
@@ -35609,15 +35609,15 @@ function i7(n, e, t) {
|
|
|
35609
35609
|
const [pe] = Ea(ge);
|
|
35610
35610
|
if (pe)
|
|
35611
35611
|
return !1;
|
|
35612
|
-
const { target: ye, dataTransfer: ke } = ge,
|
|
35612
|
+
const { target: ye, dataTransfer: ke } = ge, te = (ke == null ? void 0 : ke.getData(sE)) || "";
|
|
35613
35613
|
n.update(() => {
|
|
35614
35614
|
var ze;
|
|
35615
|
-
let ee = Te(
|
|
35615
|
+
let ee = Te(te);
|
|
35616
35616
|
if (!ee || !Tf(ye))
|
|
35617
35617
|
return !1;
|
|
35618
|
-
const { htmlElement:
|
|
35618
|
+
const { htmlElement: ne, lexicalNode: he, isBottom: ce } = l.current;
|
|
35619
35619
|
let be = he, Ie = null;
|
|
35620
|
-
if (be != null && be.__key && (Ie =
|
|
35620
|
+
if (be != null && be.__key && (Ie = ne), !Ie || !be)
|
|
35621
35621
|
return !1;
|
|
35622
35622
|
if (be === ee)
|
|
35623
35623
|
return !0;
|
|
@@ -35637,7 +35637,7 @@ function i7(n, e, t) {
|
|
|
35637
35637
|
const tt = ee.getParent(), gt = tt.getParent();
|
|
35638
35638
|
Iu(n, tt, gt);
|
|
35639
35639
|
}
|
|
35640
|
-
if (
|
|
35640
|
+
if (ne != null && ne.classList.contains("selected-block"))
|
|
35641
35641
|
return;
|
|
35642
35642
|
let Oe;
|
|
35643
35643
|
const Ee = n._rootElement;
|
|
@@ -35682,7 +35682,7 @@ function i7(n, e, t) {
|
|
|
35682
35682
|
const [ye] = Ea(W);
|
|
35683
35683
|
if (ye || !Tf(ge))
|
|
35684
35684
|
return !1;
|
|
35685
|
-
const ke = He(ge) || Ke(), { htmlElement:
|
|
35685
|
+
const ke = He(ge) || Ke(), { htmlElement: te, lexicalNode: ee } = Ik(
|
|
35686
35686
|
ke,
|
|
35687
35687
|
n,
|
|
35688
35688
|
{
|
|
@@ -35701,13 +35701,13 @@ function i7(n, e, t) {
|
|
|
35701
35701
|
ee == null ? void 0 : ee.getParent()
|
|
35702
35702
|
) || (ee == null ? void 0 : ee.__type) === "layout-item" && ke.__type !== "root")
|
|
35703
35703
|
return !1;
|
|
35704
|
-
|
|
35705
|
-
let
|
|
35706
|
-
|
|
35704
|
+
te && (l.current.htmlElement = te, l.current.lexicalNode = ee);
|
|
35705
|
+
let ne = null;
|
|
35706
|
+
ne = l.current.htmlElement || te, ne != null && ne.closest(".dsd__theme__layoutContainer") && ke.__type === "root" && ee && ((ee == null ? void 0 : ee.__type) === "layout-item" && ke.__type === "root" ? (ne = ne == null ? void 0 : ne.parentElement, l.current.htmlElement = ne, l.current.lexicalNode = ee == null ? void 0 : ee.getParent()) : (ne = (ce = ne.parentElement) == null ? void 0 : ce.parentElement, l.current.htmlElement = ne, l.current.lexicalNode = (be = ee.getParent()) == null ? void 0 : be.getParent()));
|
|
35707
35707
|
const he = i.current;
|
|
35708
|
-
return !
|
|
35708
|
+
return !ne && he ? (he.style.background = "transparent", !1) : ne === null || he === null || ne != null && ne.classList.contains("selected-block") ? !1 : (sZ(
|
|
35709
35709
|
he,
|
|
35710
|
-
|
|
35710
|
+
ne,
|
|
35711
35711
|
q,
|
|
35712
35712
|
pe,
|
|
35713
35713
|
e,
|
|
@@ -35761,24 +35761,24 @@ function i7(n, e, t) {
|
|
|
35761
35761
|
return;
|
|
35762
35762
|
const ge = n._rootElement;
|
|
35763
35763
|
if (q != null && q.classList.contains("selected-block")) {
|
|
35764
|
-
const ke = n._rootElement,
|
|
35764
|
+
const ke = n._rootElement, te = Array.from(
|
|
35765
35765
|
ke.querySelectorAll(".selected-block")
|
|
35766
35766
|
);
|
|
35767
|
-
oZ(z.dataTransfer,
|
|
35767
|
+
oZ(z.dataTransfer, te);
|
|
35768
35768
|
} else
|
|
35769
35769
|
Hm(ge), q.className.includes("_layoutDivider") && q.parentElement ? uE(W, q.parentElement) : uE(W, q);
|
|
35770
35770
|
let pe = "";
|
|
35771
35771
|
n.read(() => {
|
|
35772
|
-
var
|
|
35772
|
+
var te, ee;
|
|
35773
35773
|
const ke = He(q);
|
|
35774
35774
|
if (ke && (pe = ke.getKey()), ke instanceof ki) {
|
|
35775
|
-
const
|
|
35776
|
-
(
|
|
35775
|
+
const ne = Du(
|
|
35776
|
+
(te = q.parentElement) == null ? void 0 : te.parentElement,
|
|
35777
35777
|
q.parentElement
|
|
35778
35778
|
);
|
|
35779
35779
|
(ee = i.current) == null || ee.setAttribute(
|
|
35780
35780
|
"data-index-start",
|
|
35781
|
-
|
|
35781
|
+
ne.toString()
|
|
35782
35782
|
);
|
|
35783
35783
|
}
|
|
35784
35784
|
}), r.current && (m(!0), r.current.style.opacity = "0"), o.current = !0, c.current = pe, W.setData(sE, pe);
|
|
@@ -35817,10 +35817,10 @@ function i7(n, e, t) {
|
|
|
35817
35817
|
return;
|
|
35818
35818
|
const q = n._rootElement;
|
|
35819
35819
|
P(), W.classList.contains("selected-block") || Hm(q), n.update(() => {
|
|
35820
|
-
const pe = H(), ke = ((pe == null ? void 0 : pe.getNodes()) ?? []).filter((ce) => !le(ce) && !rt(ce) && ce.__parent === "root"),
|
|
35820
|
+
const pe = H(), ke = ((pe == null ? void 0 : pe.getNodes()) ?? []).filter((ce) => !le(ce) && !rt(ce) && ce.__parent === "root"), te = ke.map((ce) => {
|
|
35821
35821
|
const be = n.getElementByKey(ce.getKey());
|
|
35822
35822
|
return ce.getType() === "table" ? be == null ? void 0 : be.firstElementChild : be;
|
|
35823
|
-
}).filter((ce) => ce !== null), ee = ke.length &&
|
|
35823
|
+
}).filter((ce) => ce !== null), ee = ke.length && te.includes(W) ? te : [W];
|
|
35824
35824
|
if (ee.length === 1) {
|
|
35825
35825
|
const ce = He(W);
|
|
35826
35826
|
if (!ce) return;
|
|
@@ -35833,12 +35833,12 @@ function i7(n, e, t) {
|
|
|
35833
35833
|
isCreateEventListener: !1
|
|
35834
35834
|
});
|
|
35835
35835
|
});
|
|
35836
|
-
const
|
|
35836
|
+
const ne = Array.from(
|
|
35837
35837
|
document.querySelectorAll(".selected-block")
|
|
35838
35838
|
).reduce((ce, be) => {
|
|
35839
35839
|
const Ie = He(be);
|
|
35840
35840
|
return Ie && ce.push(Ie), ce;
|
|
35841
|
-
}, []), he =
|
|
35841
|
+
}, []), he = ne.length > 0 && ne.every((ce) => qa(ce) || xt(ce) || ei(ce) ? !1 : Y(ce) || le(ce));
|
|
35842
35842
|
C(he ? "text" : "block");
|
|
35843
35843
|
}), OD();
|
|
35844
35844
|
const ge = Number(z == null ? void 0 : z.y) + 240 > window.innerHeight ? Number(z == null ? void 0 : z.y) - 200 : z == null ? void 0 : z.y;
|
|
@@ -35923,7 +35923,7 @@ function i7(n, e, t) {
|
|
|
35923
35923
|
onDragStart: j,
|
|
35924
35924
|
onDragEnd: B,
|
|
35925
35925
|
children: /* @__PURE__ */ b(
|
|
35926
|
-
|
|
35926
|
+
St,
|
|
35927
35927
|
{
|
|
35928
35928
|
openDelay: 300,
|
|
35929
35929
|
multiline: !0,
|
|
@@ -36135,7 +36135,7 @@ function d7({ editor: n }) {
|
|
|
36135
36135
|
X(() => n.registerCommand(
|
|
36136
36136
|
pi,
|
|
36137
36137
|
(T) => {
|
|
36138
|
-
const k = H(), _ =
|
|
36138
|
+
const k = H(), _ = Ct(k);
|
|
36139
36139
|
return u !== _ && d(_), !1;
|
|
36140
36140
|
},
|
|
36141
36141
|
bo
|
|
@@ -36371,7 +36371,7 @@ function g7(n) {
|
|
|
36371
36371
|
}
|
|
36372
36372
|
function p7() {
|
|
36373
36373
|
const n = H();
|
|
36374
|
-
if (K(n) && !n.isCollapsed() ||
|
|
36374
|
+
if (K(n) && !n.isCollapsed() || Ct(n) && !n.anchor.is(n.focus) || !K(n) && !Ct(n))
|
|
36375
36375
|
return !1;
|
|
36376
36376
|
const [e] = Wn(n.anchor);
|
|
36377
36377
|
return e.__colSpan > 1 || e.__rowSpan > 1;
|
|
@@ -36389,7 +36389,7 @@ function m7(n) {
|
|
|
36389
36389
|
function A7(n) {
|
|
36390
36390
|
return n.getEditorState().read(() => {
|
|
36391
36391
|
const e = H();
|
|
36392
|
-
if (K(e) ||
|
|
36392
|
+
if (K(e) || Ct(e)) {
|
|
36393
36393
|
const [t] = Wn(e.anchor);
|
|
36394
36394
|
if (Re(t))
|
|
36395
36395
|
return t.getBackgroundColor();
|
|
@@ -36425,7 +36425,7 @@ const w7 = ({
|
|
|
36425
36425
|
const [u] = Me(), d = Fe(null), [h, g] = re(n), [m, p] = re({
|
|
36426
36426
|
columns: 1,
|
|
36427
36427
|
rows: 1
|
|
36428
|
-
}), [y, w] = re(!1), [C, v] = re(!1), [S, E] = re(""), { t: T } =
|
|
36428
|
+
}), [y, w] = re(!1), [C, v] = re(!1), [S, E] = re(""), { t: T } = vt();
|
|
36429
36429
|
X(() => u.registerMutationListener(yi, (Q) => {
|
|
36430
36430
|
Q.get(h.getKey()) === "updated" && (u.getEditorState().read(() => {
|
|
36431
36431
|
g(h.getLatest());
|
|
@@ -36433,7 +36433,7 @@ const w7 = ({
|
|
|
36433
36433
|
}), [u, h]), X(() => {
|
|
36434
36434
|
i ? u.getEditorState().read(() => {
|
|
36435
36435
|
const Q = o.current;
|
|
36436
|
-
if (Q &&
|
|
36436
|
+
if (Q && Ct(Q)) {
|
|
36437
36437
|
const Z = Qf(Q);
|
|
36438
36438
|
p(Qf(Q)), w(
|
|
36439
36439
|
g7(Q) && (Z.columns > 1 || Z.rows > 1)
|
|
@@ -36460,14 +36460,14 @@ const w7 = ({
|
|
|
36460
36460
|
const ge = Z.getBoundingClientRect(), pe = 5;
|
|
36461
36461
|
let ye = q.right + pe;
|
|
36462
36462
|
if (ye + ge.width > window.innerWidth || ye + ge.width > W.right) {
|
|
36463
|
-
const
|
|
36464
|
-
ye = (
|
|
36463
|
+
const te = q.left - ge.width - pe;
|
|
36464
|
+
ye = (te < 0 ? pe : te) + window.pageXOffset;
|
|
36465
36465
|
}
|
|
36466
36466
|
Z.style.left = `${ye + window.pageXOffset}px`;
|
|
36467
36467
|
let ke = q.top;
|
|
36468
36468
|
if (ke + ge.height > window.innerHeight) {
|
|
36469
|
-
const
|
|
36470
|
-
ke = (
|
|
36469
|
+
const te = q.bottom - ge.height;
|
|
36470
|
+
ke = (te < 0 ? pe : te) + window.pageYOffset;
|
|
36471
36471
|
}
|
|
36472
36472
|
Z.style.top = `${ke + +window.pageYOffset}px`;
|
|
36473
36473
|
}
|
|
@@ -36493,7 +36493,7 @@ const w7 = ({
|
|
|
36493
36493
|
}, [u, h]), _ = () => {
|
|
36494
36494
|
u.update(() => {
|
|
36495
36495
|
const Q = o.current;
|
|
36496
|
-
if (
|
|
36496
|
+
if (Ct(Q)) {
|
|
36497
36497
|
const { columns: Z, rows: z } = Qf(Q), W = Q.getNodes();
|
|
36498
36498
|
let q = null;
|
|
36499
36499
|
for (let ge = 0; ge < W.length; ge++) {
|
|
@@ -36572,10 +36572,10 @@ const w7 = ({
|
|
|
36572
36572
|
const ke = ye.getChildren();
|
|
36573
36573
|
if (z >= ke.length)
|
|
36574
36574
|
continue;
|
|
36575
|
-
const
|
|
36576
|
-
if (!Re(
|
|
36575
|
+
const te = ke[z];
|
|
36576
|
+
if (!Re(te))
|
|
36577
36577
|
throw new Error("Expected table cell");
|
|
36578
|
-
Q ? (
|
|
36578
|
+
Q ? (te.getBackgroundColor() === "rgb(242, 243, 245)" && te.setBackgroundColor(null), te.setHeaderStyles(0, 3)) : te.setHeaderStyles(ge, yn.COLUMN);
|
|
36579
36579
|
}
|
|
36580
36580
|
k();
|
|
36581
36581
|
});
|
|
@@ -36585,9 +36585,9 @@ const w7 = ({
|
|
|
36585
36585
|
(Q) => {
|
|
36586
36586
|
u.update(() => {
|
|
36587
36587
|
const Z = o.current;
|
|
36588
|
-
if (K(Z) ||
|
|
36588
|
+
if (K(Z) || Ct(Z)) {
|
|
36589
36589
|
const [z] = Wn(Z.anchor);
|
|
36590
|
-
if (Re(z) && z.setBackgroundColor(Q),
|
|
36590
|
+
if (Re(z) && z.setBackgroundColor(Q), Ct(Z)) {
|
|
36591
36591
|
const W = Z.getNodes();
|
|
36592
36592
|
for (let q = 0; q < W.length; q++) {
|
|
36593
36593
|
const ge = W[q];
|
|
@@ -36747,7 +36747,7 @@ const w7 = ({
|
|
|
36747
36747
|
const g = Eg(n), m = kg(n);
|
|
36748
36748
|
u.current = g, d.current = m;
|
|
36749
36749
|
const p = H();
|
|
36750
|
-
if (
|
|
36750
|
+
if (Ct(p)) {
|
|
36751
36751
|
const { columns: y, rows: w } = Qf(p);
|
|
36752
36752
|
(y > 1 || w > 1) && (c.current = p);
|
|
36753
36753
|
} else
|
|
@@ -36805,7 +36805,7 @@ function S7({
|
|
|
36805
36805
|
column: !1,
|
|
36806
36806
|
row: !1,
|
|
36807
36807
|
options: !1
|
|
36808
|
-
}), [v, S] = re(!1), E = Fe(null), T = Fe(/* @__PURE__ */ new Set()), k = Fe(null), _ = Fe(null), I = Fe(null), N = Fe(null), O = Fe(null), { t: R } =
|
|
36808
|
+
}), [v, S] = re(!1), E = Fe(null), T = Fe(/* @__PURE__ */ new Set()), k = Fe(null), _ = Fe(null), I = Fe(null), N = Fe(null), O = Fe(null), { t: R } = vt(), j = Ng(
|
|
36809
36809
|
(z) => {
|
|
36810
36810
|
const { isOutside: W, tableDOMNode: q } = x7(
|
|
36811
36811
|
z,
|
|
@@ -36831,11 +36831,11 @@ function S7({
|
|
|
36831
36831
|
_.current = q;
|
|
36832
36832
|
let pe = null, ye = null, ke = null;
|
|
36833
36833
|
r.update(() => {
|
|
36834
|
-
var
|
|
36835
|
-
const
|
|
36834
|
+
var ne, he, ce, be, Ie;
|
|
36835
|
+
const te = He(q), ee = q == null ? void 0 : q.getAttribute(
|
|
36836
36836
|
"data-show-button-near-table"
|
|
36837
36837
|
);
|
|
36838
|
-
if (((
|
|
36838
|
+
if (((ne = O.current) == null ? void 0 : ne.__key) !== (te == null ? void 0 : te.__key) && (C({
|
|
36839
36839
|
top: !1,
|
|
36840
36840
|
bottom: !1,
|
|
36841
36841
|
left: !1,
|
|
@@ -36843,17 +36843,17 @@ function S7({
|
|
|
36843
36843
|
column: !1,
|
|
36844
36844
|
row: !1,
|
|
36845
36845
|
options: !1
|
|
36846
|
-
}), O.current =
|
|
36846
|
+
}), O.current = te, Re(te))) {
|
|
36847
36847
|
const Oe = Pe(
|
|
36848
|
-
|
|
36848
|
+
te,
|
|
36849
36849
|
(Ee) => xt(Ee)
|
|
36850
36850
|
);
|
|
36851
36851
|
if (!xt(Oe))
|
|
36852
36852
|
return;
|
|
36853
36853
|
if (ke = r.getElementByKey(Oe == null ? void 0 : Oe.getKey()), ke) {
|
|
36854
|
-
const Ee = Oe.getChildrenSize(), ze = (he = Oe.getChildAtIndex(0)) == null ? void 0 : he.getChildrenSize(), tt = kg(
|
|
36854
|
+
const Ee = Oe.getChildrenSize(), ze = (he = Oe.getChildAtIndex(0)) == null ? void 0 : he.getChildrenSize(), tt = kg(te), gt = Eg(te);
|
|
36855
36855
|
I.current = (ce = ke.firstChild) == null ? void 0 : ce.childNodes[tt + 1].firstChild, N.current = (Ie = (be = ke.firstChild) == null ? void 0 : be.childNodes[1]) == null ? void 0 : Ie.childNodes[gt], setTimeout(() => {
|
|
36856
|
-
ee === "bottom" ? (pe =
|
|
36856
|
+
ee === "bottom" ? (pe = te, O.current = null, C({
|
|
36857
36857
|
top: !1,
|
|
36858
36858
|
bottom: !1,
|
|
36859
36859
|
left: !1,
|
|
@@ -36861,7 +36861,7 @@ function S7({
|
|
|
36861
36861
|
column: !1,
|
|
36862
36862
|
row: !0,
|
|
36863
36863
|
options: !1
|
|
36864
|
-
})) : ee === "right" ? (ye =
|
|
36864
|
+
})) : ee === "right" ? (ye = te, O.current = null, C({
|
|
36865
36865
|
top: !1,
|
|
36866
36866
|
bottom: !1,
|
|
36867
36867
|
left: !1,
|
|
@@ -36869,7 +36869,7 @@ function S7({
|
|
|
36869
36869
|
column: !0,
|
|
36870
36870
|
row: !1,
|
|
36871
36871
|
options: !1
|
|
36872
|
-
})) : tt === Ee - 1 && gt === ze - 1 ? (pe =
|
|
36872
|
+
})) : tt === Ee - 1 && gt === ze - 1 ? (pe = te, ye = te, C({
|
|
36873
36873
|
top: !1,
|
|
36874
36874
|
bottom: !1,
|
|
36875
36875
|
left: !1,
|
|
@@ -36901,7 +36901,7 @@ function S7({
|
|
|
36901
36901
|
column: !1,
|
|
36902
36902
|
row: !1,
|
|
36903
36903
|
options: !0
|
|
36904
|
-
}) : !gt && tt === Ee - 1 ? (pe =
|
|
36904
|
+
}) : !gt && tt === Ee - 1 ? (pe = te, C({
|
|
36905
36905
|
top: !0,
|
|
36906
36906
|
bottom: !1,
|
|
36907
36907
|
left: !1,
|
|
@@ -36909,7 +36909,7 @@ function S7({
|
|
|
36909
36909
|
column: !1,
|
|
36910
36910
|
row: !0,
|
|
36911
36911
|
options: !0
|
|
36912
|
-
})) : !tt && gt === ze - 1 ? (ye =
|
|
36912
|
+
})) : !tt && gt === ze - 1 ? (ye = te, C({
|
|
36913
36913
|
top: !1,
|
|
36914
36914
|
bottom: !1,
|
|
36915
36915
|
left: !0,
|
|
@@ -36925,7 +36925,7 @@ function S7({
|
|
|
36925
36925
|
column: !1,
|
|
36926
36926
|
row: !1,
|
|
36927
36927
|
options: !0
|
|
36928
|
-
}) : tt === Ee - 1 ? (pe =
|
|
36928
|
+
}) : tt === Ee - 1 ? (pe = te, C({
|
|
36929
36929
|
top: !1,
|
|
36930
36930
|
bottom: !1,
|
|
36931
36931
|
left: !1,
|
|
@@ -36933,7 +36933,7 @@ function S7({
|
|
|
36933
36933
|
column: !1,
|
|
36934
36934
|
row: !0,
|
|
36935
36935
|
options: !0
|
|
36936
|
-
})) : gt === ze - 1 ? (ye =
|
|
36936
|
+
})) : gt === ze - 1 ? (ye = te, C({
|
|
36937
36937
|
top: !1,
|
|
36938
36938
|
bottom: !1,
|
|
36939
36939
|
left: !1,
|
|
@@ -36954,7 +36954,7 @@ function S7({
|
|
|
36954
36954
|
}
|
|
36955
36955
|
}
|
|
36956
36956
|
}), setTimeout(() => {
|
|
36957
|
-
var
|
|
36957
|
+
var te, ee, ne, he, ce;
|
|
36958
36958
|
if (ke) {
|
|
36959
36959
|
const {
|
|
36960
36960
|
width: be,
|
|
@@ -36969,8 +36969,8 @@ function S7({
|
|
|
36969
36969
|
O.current.getKey()
|
|
36970
36970
|
);
|
|
36971
36971
|
if (ut != null) {
|
|
36972
|
-
const
|
|
36973
|
-
let It =
|
|
36972
|
+
const wt = ut.getBoundingClientRect(), Dt = ke.getBoundingClientRect().left + ke.clientWidth, it = wt.top - gt + 6;
|
|
36973
|
+
let It = wt.right - Zt - 20;
|
|
36974
36974
|
It > Dt - Zt && (It = Dt - Zt - 20), v || y({
|
|
36975
36975
|
top: it,
|
|
36976
36976
|
left: It
|
|
@@ -36980,11 +36980,11 @@ function S7({
|
|
|
36980
36980
|
if (N.current) {
|
|
36981
36981
|
const {
|
|
36982
36982
|
top: ut,
|
|
36983
|
-
width:
|
|
36983
|
+
width: wt,
|
|
36984
36984
|
left: Bt,
|
|
36985
36985
|
right: Dt
|
|
36986
36986
|
} = N.current.getBoundingClientRect(), it = ho, It = Bt - Zt - it / 2, cr = ut - gt - it / 2;
|
|
36987
|
-
let Ti =
|
|
36987
|
+
let Ti = wt + it + 2;
|
|
36988
36988
|
Dt > Ee && (Ti = Ti - (Dt - Ee)), h({
|
|
36989
36989
|
width: Ti,
|
|
36990
36990
|
height: it,
|
|
@@ -36993,29 +36993,29 @@ function S7({
|
|
|
36993
36993
|
});
|
|
36994
36994
|
}
|
|
36995
36995
|
if (I.current) {
|
|
36996
|
-
const { top: ut, height:
|
|
36996
|
+
const { top: ut, height: wt } = I.current.getBoundingClientRect(), Bt = ho, Dt = Oe - Zt - Bt / 2, it = ut - gt - Bt / 2;
|
|
36997
36997
|
m({
|
|
36998
|
-
height:
|
|
36998
|
+
height: wt + Bt + 2,
|
|
36999
36999
|
top: it,
|
|
37000
37000
|
left: Dt
|
|
37001
37001
|
});
|
|
37002
37002
|
}
|
|
37003
|
-
const Gt = (
|
|
37003
|
+
const Gt = (te = ke.parentElement) != null && te.classList.contains(
|
|
37004
37004
|
"dsd__theme__callout-container"
|
|
37005
37005
|
) && document.documentElement.getAttribute(
|
|
37006
37006
|
"data-mantine-color-scheme"
|
|
37007
37007
|
) === "light" ? "rgba(173, 181, 189, 0.7)" : "";
|
|
37008
37008
|
if (pe) {
|
|
37009
|
-
const ut = ze - gt + 3,
|
|
37009
|
+
const ut = ze - gt + 3, wt = ((ee = ke.firstElementChild) == null ? void 0 : ee.clientWidth) || 0;
|
|
37010
37010
|
l({
|
|
37011
37011
|
left: Oe - Zt,
|
|
37012
37012
|
top: ut,
|
|
37013
|
-
width: be >
|
|
37013
|
+
width: be > wt ? wt - 2 : be,
|
|
37014
37014
|
padding: 0,
|
|
37015
37015
|
backgroundColor: Gt
|
|
37016
37016
|
});
|
|
37017
37017
|
}
|
|
37018
|
-
const { right: Rn } = (
|
|
37018
|
+
const { right: Rn } = (ne = ke.firstElementChild) == null ? void 0 : ne.getBoundingClientRect(), je = Ee > Rn ? Rn : Ee;
|
|
37019
37019
|
ye && (C7(
|
|
37020
37020
|
Ee,
|
|
37021
37021
|
(ce = (he = r._rootElement) == null ? void 0 : he.parentElement) == null ? void 0 : ce.parentElement
|
|
@@ -37130,7 +37130,7 @@ function S7({
|
|
|
37130
37130
|
cellMerge: t,
|
|
37131
37131
|
setIsMenuOpen: S,
|
|
37132
37132
|
tableDom: k.current,
|
|
37133
|
-
children: /* @__PURE__ */ b(
|
|
37133
|
+
children: /* @__PURE__ */ b(St, { label: R("editor.table.settings"), children: /* @__PURE__ */ b(
|
|
37134
37134
|
An,
|
|
37135
37135
|
{
|
|
37136
37136
|
tabIndex: -1,
|
|
@@ -37161,7 +37161,7 @@ function S7({
|
|
|
37161
37161
|
transition: "fade",
|
|
37162
37162
|
duration: 300,
|
|
37163
37163
|
timingFunction: "ease",
|
|
37164
|
-
children: (z) => /* @__PURE__ */ b(
|
|
37164
|
+
children: (z) => /* @__PURE__ */ b(St, { label: R("editor.table.menu.addRowBelow"), position: "bottom", children: /* @__PURE__ */ b(
|
|
37165
37165
|
Ki,
|
|
37166
37166
|
{
|
|
37167
37167
|
className: "dsd__theme__tableAddRows",
|
|
@@ -37191,7 +37191,7 @@ function S7({
|
|
|
37191
37191
|
transition: "fade",
|
|
37192
37192
|
duration: 300,
|
|
37193
37193
|
timingFunction: "ease",
|
|
37194
|
-
children: (z) => /* @__PURE__ */ b(
|
|
37194
|
+
children: (z) => /* @__PURE__ */ b(St, { label: R("editor.table.menu.addColAfter"), position: "right", children: /* @__PURE__ */ b(
|
|
37195
37195
|
Ki,
|
|
37196
37196
|
{
|
|
37197
37197
|
className: "dsd__theme__tableAddColumns",
|
|
@@ -37228,7 +37228,7 @@ function S7({
|
|
|
37228
37228
|
className: "table-row-add-container",
|
|
37229
37229
|
style: { ...z, ...g },
|
|
37230
37230
|
children: I.current && /* @__PURE__ */ $(iu, { align: "stretch", justify: "space-between", h: "100%", children: [
|
|
37231
|
-
/* @__PURE__ */ b(
|
|
37231
|
+
/* @__PURE__ */ b(St, { label: R("editor.table.menu.addRowAbove"), children: /* @__PURE__ */ b(
|
|
37232
37232
|
An,
|
|
37233
37233
|
{
|
|
37234
37234
|
onClick: () => ue(!1),
|
|
@@ -37244,7 +37244,7 @@ function S7({
|
|
|
37244
37244
|
children: /* @__PURE__ */ b(po, { size: 10, stroke: 1 })
|
|
37245
37245
|
}
|
|
37246
37246
|
) }),
|
|
37247
|
-
/* @__PURE__ */ b(
|
|
37247
|
+
/* @__PURE__ */ b(St, { label: R("editor.table.menu.addRowBelow"), children: /* @__PURE__ */ b(
|
|
37248
37248
|
An,
|
|
37249
37249
|
{
|
|
37250
37250
|
onClick: () => ue(!0),
|
|
@@ -37279,7 +37279,7 @@ function S7({
|
|
|
37279
37279
|
className: "table-cell-add-container",
|
|
37280
37280
|
style: { ...z, ...d },
|
|
37281
37281
|
children: /* @__PURE__ */ $(Xe, { justify: w.left ? "space-between" : "flex-end", children: [
|
|
37282
|
-
/* @__PURE__ */ b(Je, { children: w.left && /* @__PURE__ */ b(
|
|
37282
|
+
/* @__PURE__ */ b(Je, { children: w.left && /* @__PURE__ */ b(St, { label: R("editor.table.menu.addColBefore"), children: /* @__PURE__ */ b(
|
|
37283
37283
|
An,
|
|
37284
37284
|
{
|
|
37285
37285
|
onClick: () => Ae(!1),
|
|
@@ -37291,7 +37291,7 @@ function S7({
|
|
|
37291
37291
|
children: /* @__PURE__ */ b(po, { size: 10, stroke: 1 })
|
|
37292
37292
|
}
|
|
37293
37293
|
) }) }),
|
|
37294
|
-
/* @__PURE__ */ b(Je, { children: w.right && /* @__PURE__ */ b(
|
|
37294
|
+
/* @__PURE__ */ b(Je, { children: w.right && /* @__PURE__ */ b(St, { label: R("editor.table.menu.addColAfter"), children: /* @__PURE__ */ b(
|
|
37295
37295
|
An,
|
|
37296
37296
|
{
|
|
37297
37297
|
onClick: () => Ae(!0),
|
|
@@ -37467,7 +37467,7 @@ function qm(n) {
|
|
|
37467
37467
|
function M7({
|
|
37468
37468
|
tableOfContents: n
|
|
37469
37469
|
}) {
|
|
37470
|
-
const [e, t] = re(""), r = Fe(0), [i] = Me(), { t: o } =
|
|
37470
|
+
const [e, t] = re(""), r = Fe(0), [i] = Me(), { t: o } = vt(), [s, l] = re(!1);
|
|
37471
37471
|
function c(u, d) {
|
|
37472
37472
|
i.getEditorState().read(() => {
|
|
37473
37473
|
const h = i.getElementByKey(u);
|
|
@@ -37877,7 +37877,7 @@ function B7({
|
|
|
37877
37877
|
disabled: t = !1,
|
|
37878
37878
|
setElementFormat: r
|
|
37879
37879
|
}) {
|
|
37880
|
-
const { t: i, i18n: o } =
|
|
37880
|
+
const { t: i, i18n: o } = vt(), s = bt(
|
|
37881
37881
|
() => R7(i),
|
|
37882
37882
|
[o.language]
|
|
37883
37883
|
), l = bt(() => e === "start" || e === "end" ? s.left : s[e || "left"], [e, o.language]), c = (u) => {
|
|
@@ -37890,7 +37890,7 @@ function B7({
|
|
|
37890
37890
|
shadow: "md",
|
|
37891
37891
|
styles: { dropdown: { zIndex: 1e3 } },
|
|
37892
37892
|
children: [
|
|
37893
|
-
/* @__PURE__ */ b(ve.Target, { children: /* @__PURE__ */ b(
|
|
37893
|
+
/* @__PURE__ */ b(ve.Target, { children: /* @__PURE__ */ b(St, { label: i("editor.toolbar.align"), children: /* @__PURE__ */ $(
|
|
37894
37894
|
"button",
|
|
37895
37895
|
{
|
|
37896
37896
|
disabled: t,
|
|
@@ -38627,7 +38627,7 @@ function Y7() {
|
|
|
38627
38627
|
files: []
|
|
38628
38628
|
}), [l, c] = re(!1), [u, d] = re(!1), h = Fe([]), g = Fe(
|
|
38629
38629
|
[]
|
|
38630
|
-
), { i18n: m } =
|
|
38630
|
+
), { i18n: m } = vt(), p = m.language, y = m.getResourceBundle(
|
|
38631
38631
|
p,
|
|
38632
38632
|
"translation"
|
|
38633
38633
|
), [w, C] = re({
|
|
@@ -38641,9 +38641,9 @@ function Y7() {
|
|
|
38641
38641
|
}), N = (S == null ? void 0 : S.commentActions) ?? {}, O = W7(e), R = bt(() => /* @__PURE__ */ new Map(), []);
|
|
38642
38642
|
X(() => (typeof (N == null ? void 0 : N.fetchCommentsApi) == "function" && (d(!0), N.fetchCommentsApi({
|
|
38643
38643
|
pageId: T,
|
|
38644
|
-
onSuccess: async (
|
|
38644
|
+
onSuccess: async (te) => {
|
|
38645
38645
|
await e.initializeComments(
|
|
38646
|
-
|
|
38646
|
+
te,
|
|
38647
38647
|
R,
|
|
38648
38648
|
n,
|
|
38649
38649
|
JSON.stringify(k),
|
|
@@ -38655,7 +38655,7 @@ function Y7() {
|
|
|
38655
38655
|
})), () => {
|
|
38656
38656
|
I(!1);
|
|
38657
38657
|
}), []), X(() => {
|
|
38658
|
-
const
|
|
38658
|
+
const te = setTimeout(() => {
|
|
38659
38659
|
O.forEach((ee) => {
|
|
38660
38660
|
ee.type === "general" && e.updateCurrentQuote(
|
|
38661
38661
|
JSON.stringify(S == null ? void 0 : S.workspaceInfo),
|
|
@@ -38663,13 +38663,13 @@ function Y7() {
|
|
|
38663
38663
|
);
|
|
38664
38664
|
});
|
|
38665
38665
|
}, 300);
|
|
38666
|
-
return () => clearTimeout(
|
|
38666
|
+
return () => clearTimeout(te);
|
|
38667
38667
|
}, [S == null ? void 0 : S.workspaceInfo]);
|
|
38668
|
-
async function j(
|
|
38668
|
+
async function j(te) {
|
|
38669
38669
|
if (g.current.length === 0) return;
|
|
38670
38670
|
const ee = n.getRootElement() === document.activeElement;
|
|
38671
|
-
if ((
|
|
38672
|
-
|
|
38671
|
+
if ((te.metaKey || te.ctrlKey) && te.code === "KeyZ" && !ee && _ && document.activeElement === document.body) {
|
|
38672
|
+
te.preventDefault();
|
|
38673
38673
|
try {
|
|
38674
38674
|
await (N == null ? void 0 : N.restoreCommentApi({
|
|
38675
38675
|
commentId: g.current[0].comments.id,
|
|
@@ -38677,8 +38677,8 @@ function Y7() {
|
|
|
38677
38677
|
e.restoreLastDeleteThreat(g.current[0]), g.current = g.current.slice(1), g.current.length === 0 && (g.current = []);
|
|
38678
38678
|
}
|
|
38679
38679
|
}));
|
|
38680
|
-
} catch (
|
|
38681
|
-
console.log(
|
|
38680
|
+
} catch (ne) {
|
|
38681
|
+
console.log(ne);
|
|
38682
38682
|
}
|
|
38683
38683
|
}
|
|
38684
38684
|
}
|
|
@@ -38687,40 +38687,40 @@ function Y7() {
|
|
|
38687
38687
|
}), [_]);
|
|
38688
38688
|
const B = Be(() => {
|
|
38689
38689
|
n.update(() => {
|
|
38690
|
-
const
|
|
38691
|
-
|
|
38690
|
+
const te = H();
|
|
38691
|
+
te !== null && (te.dirty = !0);
|
|
38692
38692
|
}), c(!1), s({ value: "", files: [] });
|
|
38693
38693
|
}, [n]), P = Be(
|
|
38694
|
-
async (
|
|
38695
|
-
const ee =
|
|
38694
|
+
async (te) => {
|
|
38695
|
+
const ee = te.resolution !== "ACCEPTED" ? "ACCEPTED" : "REJECTED", ne = JSON.parse(
|
|
38696
38696
|
JSON.stringify(e._comments)
|
|
38697
38697
|
);
|
|
38698
38698
|
n.update(() => {
|
|
38699
38699
|
bT(Ar).filter(
|
|
38700
|
-
(ce) => ce.__extendIds[0] ===
|
|
38700
|
+
(ce) => ce.__extendIds[0] === te.id
|
|
38701
38701
|
).forEach((ce) => {
|
|
38702
38702
|
"resolveThreat" in ce && ce.resolveThreat(ee);
|
|
38703
38703
|
});
|
|
38704
|
-
}), e.resolveThreat(
|
|
38705
|
-
threatId:
|
|
38704
|
+
}), e.resolveThreat(te, ee), await (N == null ? void 0 : N.resolveCommentApi({
|
|
38705
|
+
threatId: te.id,
|
|
38706
38706
|
resolveValue: ee,
|
|
38707
38707
|
onSuccess: () => {
|
|
38708
38708
|
},
|
|
38709
38709
|
onError: () => {
|
|
38710
|
-
e._comments =
|
|
38710
|
+
e._comments = ne, Zn(e);
|
|
38711
38711
|
}
|
|
38712
38712
|
}));
|
|
38713
38713
|
},
|
|
38714
38714
|
[e, n, R]
|
|
38715
38715
|
), V = Be(
|
|
38716
|
-
async (
|
|
38716
|
+
async (te, ee, ne) => {
|
|
38717
38717
|
const he = JSON.parse(
|
|
38718
38718
|
JSON.stringify(e._comments)
|
|
38719
|
-
), ce = "temp-" + Date.now() + "-" + Math.random().toString(36).substring(2, 9), be = encodeURIComponent(
|
|
38719
|
+
), ce = "temp-" + Date.now() + "-" + Math.random().toString(36).substring(2, 9), be = encodeURIComponent(te), Ie = {
|
|
38720
38720
|
id: ce,
|
|
38721
38721
|
commentId: ee.id,
|
|
38722
38722
|
userId: (v == null ? void 0 : v.id) ?? "",
|
|
38723
|
-
reaction:
|
|
38723
|
+
reaction: te,
|
|
38724
38724
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
38725
38725
|
deletedAt: "1970-01-01T00:00:00.000+00:00",
|
|
38726
38726
|
version: 0,
|
|
@@ -38728,7 +38728,7 @@ function Y7() {
|
|
|
38728
38728
|
parentId: ee.id,
|
|
38729
38729
|
deleted: !1
|
|
38730
38730
|
};
|
|
38731
|
-
e.addReaction(Ie, ee,
|
|
38731
|
+
e.addReaction(Ie, ee, ne);
|
|
38732
38732
|
try {
|
|
38733
38733
|
await (N == null ? void 0 : N.commentReactionApi({
|
|
38734
38734
|
commentId: ee.id,
|
|
@@ -38739,7 +38739,7 @@ function Y7() {
|
|
|
38739
38739
|
Ie.id,
|
|
38740
38740
|
Oe,
|
|
38741
38741
|
ee,
|
|
38742
|
-
|
|
38742
|
+
ne
|
|
38743
38743
|
);
|
|
38744
38744
|
},
|
|
38745
38745
|
onError: () => {
|
|
@@ -38752,19 +38752,19 @@ function Y7() {
|
|
|
38752
38752
|
},
|
|
38753
38753
|
[e, v, N]
|
|
38754
38754
|
), ue = Be(
|
|
38755
|
-
async (
|
|
38755
|
+
async (te, ee, ne) => {
|
|
38756
38756
|
const he = JSON.parse(
|
|
38757
38757
|
JSON.stringify(e._comments)
|
|
38758
38758
|
);
|
|
38759
38759
|
e.removeImageOrPhoto(
|
|
38760
38760
|
"reactions",
|
|
38761
|
-
|
|
38761
|
+
te,
|
|
38762
38762
|
ee.id,
|
|
38763
|
-
|
|
38763
|
+
ne == null ? void 0 : ne.id
|
|
38764
38764
|
);
|
|
38765
38765
|
try {
|
|
38766
38766
|
await (N == null ? void 0 : N.deleteReactionApi({
|
|
38767
|
-
reactionId:
|
|
38767
|
+
reactionId: te,
|
|
38768
38768
|
onSuccess: async () => {
|
|
38769
38769
|
},
|
|
38770
38770
|
onError: () => {
|
|
@@ -38776,29 +38776,29 @@ function Y7() {
|
|
|
38776
38776
|
}
|
|
38777
38777
|
},
|
|
38778
38778
|
[e, n, R]
|
|
38779
|
-
), Ae = hs((
|
|
38780
|
-
e.updateCurrentQuote(
|
|
38779
|
+
), Ae = hs((te, ee) => {
|
|
38780
|
+
e.updateCurrentQuote(te, ee);
|
|
38781
38781
|
}, 500), oe = Be(
|
|
38782
|
-
async (
|
|
38783
|
-
const
|
|
38782
|
+
async (te, ee) => {
|
|
38783
|
+
const ne = te.id;
|
|
38784
38784
|
try {
|
|
38785
38785
|
await (N == null ? void 0 : N.deleteCommentApi({
|
|
38786
|
-
deleteCommentId:
|
|
38786
|
+
deleteCommentId: ne,
|
|
38787
38787
|
onSuccess: async () => {
|
|
38788
|
-
if (
|
|
38788
|
+
if (te.type === "comment" && ee) {
|
|
38789
38789
|
const he = e.deleteCommentOrThread(
|
|
38790
|
-
|
|
38790
|
+
te,
|
|
38791
38791
|
ee
|
|
38792
38792
|
);
|
|
38793
38793
|
if (g.current = [
|
|
38794
|
-
{ comments:
|
|
38794
|
+
{ comments: te, id: ee.id },
|
|
38795
38795
|
...g.current
|
|
38796
38796
|
], !he) return;
|
|
38797
38797
|
const { markedComment: ce, index: be } = he;
|
|
38798
38798
|
e.addComment(ce, ee, be);
|
|
38799
38799
|
} else {
|
|
38800
|
-
e.deleteCommentOrThread(
|
|
38801
|
-
const he = ee !== void 0 ? ee.id :
|
|
38800
|
+
e.deleteCommentOrThread(te);
|
|
38801
|
+
const he = ee !== void 0 ? ee.id : te.id, ce = R.get(he);
|
|
38802
38802
|
ce !== void 0 && setTimeout(() => {
|
|
38803
38803
|
n.update(() => {
|
|
38804
38804
|
for (const be of ce) {
|
|
@@ -38816,25 +38816,25 @@ function Y7() {
|
|
|
38816
38816
|
},
|
|
38817
38817
|
[e, n, R]
|
|
38818
38818
|
);
|
|
38819
|
-
function Q(
|
|
38819
|
+
function Q(te, ee, ne, he, ce, be) {
|
|
38820
38820
|
e.updateThreadId(
|
|
38821
38821
|
n,
|
|
38822
|
-
ne,
|
|
38823
|
-
ee,
|
|
38824
38822
|
te,
|
|
38823
|
+
ee,
|
|
38824
|
+
ne,
|
|
38825
38825
|
he,
|
|
38826
38826
|
ce,
|
|
38827
38827
|
be
|
|
38828
38828
|
);
|
|
38829
38829
|
}
|
|
38830
38830
|
const Z = Be(
|
|
38831
|
-
(
|
|
38832
|
-
e.addComment(
|
|
38831
|
+
(te, ee, ne, he) => {
|
|
38832
|
+
e.addComment(te, ne, void 0), ee && (n.update(() => {
|
|
38833
38833
|
if (K(he)) {
|
|
38834
|
-
const ce = he.isBackward(), be =
|
|
38834
|
+
const ce = he.isBackward(), be = te.id;
|
|
38835
38835
|
J6(he, ce, be, (Ie) => {
|
|
38836
38836
|
const Oe = new Ar(Ie, null);
|
|
38837
|
-
return _ ||
|
|
38837
|
+
return _ || te.type === "thread" && setTimeout(() => {
|
|
38838
38838
|
n.update(() => {
|
|
38839
38839
|
Oe.selectStart();
|
|
38840
38840
|
});
|
|
@@ -38849,15 +38849,15 @@ function Y7() {
|
|
|
38849
38849
|
[e, n, w.resolved]
|
|
38850
38850
|
);
|
|
38851
38851
|
X(() => {
|
|
38852
|
-
const
|
|
38852
|
+
const te = [];
|
|
38853
38853
|
if (r.length !== 0) {
|
|
38854
38854
|
for (let ee = 0; ee < r.length; ee++) {
|
|
38855
|
-
const
|
|
38855
|
+
const ne = r[0], he = R.get(ne);
|
|
38856
38856
|
if (he !== void 0)
|
|
38857
38857
|
for (const ce of he) {
|
|
38858
38858
|
const be = n.getElementByKey(ce);
|
|
38859
38859
|
if (be !== null) {
|
|
38860
|
-
be.classList.add("selected"),
|
|
38860
|
+
be.classList.add("selected"), te.push(be);
|
|
38861
38861
|
const Ie = be.getAttribute("data-key");
|
|
38862
38862
|
if (Ie) {
|
|
38863
38863
|
if (_) {
|
|
@@ -38873,19 +38873,19 @@ function Y7() {
|
|
|
38873
38873
|
}
|
|
38874
38874
|
}
|
|
38875
38875
|
return h.current = [...r], () => {
|
|
38876
|
-
for (let ee = 0; ee <
|
|
38877
|
-
|
|
38876
|
+
for (let ee = 0; ee < te.length; ee++)
|
|
38877
|
+
te[ee].classList.remove("selected");
|
|
38878
38878
|
};
|
|
38879
38879
|
}
|
|
38880
38880
|
}, [r, n, R]);
|
|
38881
|
-
const z = async (
|
|
38882
|
-
const ce =
|
|
38881
|
+
const z = async (te, ee, ne, he) => {
|
|
38882
|
+
const ce = ne, be = JSON.parse(JSON.stringify(e._comments));
|
|
38883
38883
|
e.updateCurrentContent(
|
|
38884
|
-
|
|
38884
|
+
te.value,
|
|
38885
38885
|
ee,
|
|
38886
|
-
|
|
38886
|
+
ne,
|
|
38887
38887
|
he
|
|
38888
|
-
), ee.deletedFile.map((Ee) => Ee.id ? W(Ee.id,
|
|
38888
|
+
), ee.deletedFile.map((Ee) => Ee.id ? W(Ee.id, ne, he) : Promise.resolve());
|
|
38889
38889
|
const Oe = (await P7(
|
|
38890
38890
|
ce,
|
|
38891
38891
|
ee.newFiles,
|
|
@@ -38895,13 +38895,13 @@ function Y7() {
|
|
|
38895
38895
|
);
|
|
38896
38896
|
if (e.replaceOptimisticPhotos(
|
|
38897
38897
|
Oe,
|
|
38898
|
-
|
|
38898
|
+
ne,
|
|
38899
38899
|
he
|
|
38900
|
-
), !
|
|
38900
|
+
), !te.restore)
|
|
38901
38901
|
try {
|
|
38902
38902
|
await (N == null ? void 0 : N.updateCommentTextApi({
|
|
38903
38903
|
commentId: ce,
|
|
38904
|
-
textValue:
|
|
38904
|
+
textValue: te.value,
|
|
38905
38905
|
onSuccess: () => {
|
|
38906
38906
|
},
|
|
38907
38907
|
onError: () => {
|
|
@@ -38911,26 +38911,26 @@ function Y7() {
|
|
|
38911
38911
|
} catch (Ee) {
|
|
38912
38912
|
console.error(Ee);
|
|
38913
38913
|
}
|
|
38914
|
-
}, W = async (
|
|
38914
|
+
}, W = async (te, ee, ne) => {
|
|
38915
38915
|
try {
|
|
38916
38916
|
await (N == null ? void 0 : N.deleteCommentImageApi({
|
|
38917
|
-
photoToRemove:
|
|
38917
|
+
photoToRemove: te,
|
|
38918
38918
|
onSuccess: () => e.removeImageOrPhoto(
|
|
38919
38919
|
"files",
|
|
38920
|
-
|
|
38920
|
+
te,
|
|
38921
38921
|
ee,
|
|
38922
|
-
|
|
38922
|
+
ne
|
|
38923
38923
|
)
|
|
38924
38924
|
}));
|
|
38925
38925
|
} catch (he) {
|
|
38926
38926
|
console.log(he);
|
|
38927
38927
|
}
|
|
38928
|
-
}, q = async (
|
|
38928
|
+
}, q = async (te) => {
|
|
38929
38929
|
try {
|
|
38930
38930
|
await (N == null ? void 0 : N.restoreCommentApi({
|
|
38931
|
-
commentId:
|
|
38931
|
+
commentId: te.id,
|
|
38932
38932
|
onSuccess: () => {
|
|
38933
|
-
e.restoreLastDeleteThreat(
|
|
38933
|
+
e.restoreLastDeleteThreat(te.id);
|
|
38934
38934
|
}
|
|
38935
38935
|
}));
|
|
38936
38936
|
} catch (ee) {
|
|
@@ -38939,22 +38939,22 @@ function Y7() {
|
|
|
38939
38939
|
};
|
|
38940
38940
|
X(() => {
|
|
38941
38941
|
if (!_) return;
|
|
38942
|
-
const
|
|
38942
|
+
const te = (ee) => {
|
|
38943
38943
|
ee.key === "Escape" && I(!1);
|
|
38944
38944
|
};
|
|
38945
|
-
return document.addEventListener("keydown",
|
|
38946
|
-
document.removeEventListener("keydown",
|
|
38945
|
+
return document.addEventListener("keydown", te), () => {
|
|
38946
|
+
document.removeEventListener("keydown", te);
|
|
38947
38947
|
};
|
|
38948
38948
|
}, [_]), X(() => {
|
|
38949
|
-
const
|
|
38949
|
+
const te = /* @__PURE__ */ new Map();
|
|
38950
38950
|
return ht(
|
|
38951
38951
|
VK(
|
|
38952
38952
|
n,
|
|
38953
38953
|
Ar,
|
|
38954
38954
|
(ee) => NI(ee.getIDs()),
|
|
38955
|
-
(ee,
|
|
38955
|
+
(ee, ne) => {
|
|
38956
38956
|
ee.getIDs().forEach((ce) => {
|
|
38957
|
-
|
|
38957
|
+
ne.addID(ce);
|
|
38958
38958
|
});
|
|
38959
38959
|
}
|
|
38960
38960
|
),
|
|
@@ -38962,18 +38962,18 @@ function Y7() {
|
|
|
38962
38962
|
Ar,
|
|
38963
38963
|
(ee) => {
|
|
38964
38964
|
n.getEditorState().read(() => {
|
|
38965
|
-
for (const [
|
|
38966
|
-
const ce = Te(
|
|
38965
|
+
for (const [ne, he] of ee) {
|
|
38966
|
+
const ce = Te(ne);
|
|
38967
38967
|
let be = [];
|
|
38968
|
-
const Ie = j7(R,
|
|
38969
|
-
if (he === "destroyed" ? be =
|
|
38968
|
+
const Ie = j7(R, ne);
|
|
38969
|
+
if (he === "destroyed" ? be = te.get(ne) || [] : pa(ce) && (be = ce.getIDs()), he === "created" && Ie) {
|
|
38970
38970
|
const Oe = e.getComments().find((Ee) => Ee.id === (ce == null ? void 0 : ce.__extendIds[0]));
|
|
38971
38971
|
Oe && q(Oe);
|
|
38972
38972
|
}
|
|
38973
38973
|
for (let Oe = 0; Oe < be.length; Oe++) {
|
|
38974
38974
|
const Ee = be[Oe];
|
|
38975
38975
|
let ze = R.get(Ee);
|
|
38976
|
-
if (
|
|
38976
|
+
if (te.set(ne, be), he === "destroyed") {
|
|
38977
38977
|
let tt = !1;
|
|
38978
38978
|
for (const [gt, Zt] of ee)
|
|
38979
38979
|
if (Zt === "created") {
|
|
@@ -38981,14 +38981,14 @@ function Y7() {
|
|
|
38981
38981
|
pa(Gt) && Gt.getIDs().some((Rn) => be.includes(Rn)) && (tt = !0);
|
|
38982
38982
|
}
|
|
38983
38983
|
if (!tt) {
|
|
38984
|
-
ze !== void 0 && (ze.delete(
|
|
38984
|
+
ze !== void 0 && (ze.delete(ne), ze.size === 0 && R.delete(Ee));
|
|
38985
38985
|
const gt = e.getComments().find(
|
|
38986
38986
|
(Zt) => Zt.tempId === Ie || Zt.id === Ie
|
|
38987
38987
|
);
|
|
38988
38988
|
gt && oe(gt);
|
|
38989
38989
|
}
|
|
38990
38990
|
} else
|
|
38991
|
-
ze === void 0 && (ze = /* @__PURE__ */ new Set(), R.set(Ee, ze)), ze.has(
|
|
38991
|
+
ze === void 0 && (ze = /* @__PURE__ */ new Set(), R.set(Ee, ze)), ze.has(ne) || ze.add(ne);
|
|
38992
38992
|
}
|
|
38993
38993
|
}
|
|
38994
38994
|
});
|
|
@@ -38997,14 +38997,14 @@ function Y7() {
|
|
|
38997
38997
|
),
|
|
38998
38998
|
n.registerUpdateListener(({ editorState: ee }) => {
|
|
38999
38999
|
ee.read(() => {
|
|
39000
|
-
const
|
|
39000
|
+
const ne = H();
|
|
39001
39001
|
let he = !1;
|
|
39002
|
-
if (K(
|
|
39003
|
-
const ce =
|
|
39002
|
+
if (K(ne)) {
|
|
39003
|
+
const ce = ne.anchor.getNode();
|
|
39004
39004
|
if (er(ce)) {
|
|
39005
39005
|
const be = Q6(
|
|
39006
39006
|
ce,
|
|
39007
|
-
|
|
39007
|
+
ne.anchor.offset
|
|
39008
39008
|
);
|
|
39009
39009
|
if (be !== null) {
|
|
39010
39010
|
i((Oe) => Oe[0] === be[0] ? Oe : be), he = !0;
|
|
@@ -39040,12 +39040,12 @@ function Y7() {
|
|
|
39040
39040
|
(ee) => {
|
|
39041
39041
|
if (!(ee != null && ee.clipboardData)) return !1;
|
|
39042
39042
|
ee.preventDefault();
|
|
39043
|
-
const
|
|
39044
|
-
if (!
|
|
39043
|
+
const ne = H();
|
|
39044
|
+
if (!ne || !ne.getNodes().some(
|
|
39045
39045
|
(Ie) => pa(Ie) || pa(Ie.getParent())
|
|
39046
39046
|
))
|
|
39047
39047
|
return !1;
|
|
39048
|
-
const be =
|
|
39048
|
+
const be = ne.getTextContent();
|
|
39049
39049
|
return ee.clipboardData.setData("text/plain", be), !0;
|
|
39050
39050
|
},
|
|
39051
39051
|
Ne
|
|
@@ -39053,7 +39053,7 @@ function Y7() {
|
|
|
39053
39053
|
);
|
|
39054
39054
|
}, [n, R]);
|
|
39055
39055
|
const ge = Be(
|
|
39056
|
-
(
|
|
39056
|
+
(te, ee, ne) => {
|
|
39057
39057
|
n.getEditorState().read(() => {
|
|
39058
39058
|
const he = H();
|
|
39059
39059
|
if (K(he)) {
|
|
@@ -39065,31 +39065,31 @@ function Y7() {
|
|
|
39065
39065
|
be.getNode(),
|
|
39066
39066
|
be.offset
|
|
39067
39067
|
);
|
|
39068
|
-
if (Ie !== null &&
|
|
39069
|
-
const { left: Oe, bottom: Ee, top: ze, width: tt } = Ie.getBoundingClientRect(), gt = IT(n, Ie), Zt =
|
|
39068
|
+
if (Ie !== null && te !== null) {
|
|
39069
|
+
const { left: Oe, bottom: Ee, top: ze, width: tt } = Ie.getBoundingClientRect(), gt = IT(n, Ie), Zt = te.offsetHeight || 200, Gt = window.pageYOffset || document.documentElement.scrollTop, Rn = window.innerHeight - Ee > Zt + 20;
|
|
39070
39070
|
let je = gt.length === 1 ? Oe + tt / 2 - 125 : Oe - 125;
|
|
39071
|
-
je < 10 && (je = 10),
|
|
39072
|
-
const ut = gt.length, { container:
|
|
39071
|
+
je < 10 && (je = 10), te.style.left = `${je}px`, te.style.top = Rn ? `${Ee + 10 + Gt}px` : `${ze - Zt - 55 + Gt}px`;
|
|
39072
|
+
const ut = gt.length, { container: wt, elements: Bt } = ne, Dt = Bt.length;
|
|
39073
39073
|
for (let it = 0; it < ut; it++) {
|
|
39074
39074
|
const It = gt[it];
|
|
39075
39075
|
let cr = Bt[it];
|
|
39076
|
-
cr === void 0 && (cr = document.createElement("span"), Bt[it] = cr,
|
|
39076
|
+
cr === void 0 && (cr = document.createElement("span"), Bt[it] = cr, wt.appendChild(cr));
|
|
39077
39077
|
const Lr = document.body.scrollHeight > window.innerHeight ? 0 : 8, si = "255, 212, 0";
|
|
39078
39078
|
cr.style.cssText = `position:absolute;top:${It.top + Gt}px;left:${It.left + Lr}px;height:${It.height}px;width:${It.width}px;background-color:rgba(${si}, 0.3);pointer-events:none;z-index:5;`;
|
|
39079
39079
|
}
|
|
39080
39080
|
for (let it = Dt - 1; it >= ut; it--) {
|
|
39081
39081
|
const It = Bt[it];
|
|
39082
|
-
|
|
39082
|
+
wt == null || wt.removeChild(It), Bt.pop();
|
|
39083
39083
|
}
|
|
39084
39084
|
}
|
|
39085
39085
|
}
|
|
39086
39086
|
});
|
|
39087
39087
|
},
|
|
39088
39088
|
[n]
|
|
39089
|
-
), pe = (
|
|
39089
|
+
), pe = (te, ee) => {
|
|
39090
39090
|
n.update(
|
|
39091
39091
|
() => {
|
|
39092
|
-
const he = Array.from(
|
|
39092
|
+
const he = Array.from(te).filter(
|
|
39093
39093
|
(be) => !!Te(be)
|
|
39094
39094
|
)[0], ce = Te(he);
|
|
39095
39095
|
pa(ce) && ce.selectStart();
|
|
@@ -39100,7 +39100,7 @@ function Y7() {
|
|
|
39100
39100
|
}
|
|
39101
39101
|
}
|
|
39102
39102
|
);
|
|
39103
|
-
}, ye = (
|
|
39103
|
+
}, ye = (te) => n.getEditorState().read(() => te ? te.getTextContent() : "") ?? "", ke = {
|
|
39104
39104
|
currentUser: v,
|
|
39105
39105
|
workspaceMembers: E,
|
|
39106
39106
|
commentOptions: S,
|
|
@@ -39121,15 +39121,15 @@ function Y7() {
|
|
|
39121
39121
|
providedUser: v,
|
|
39122
39122
|
provideCommentOptions: S,
|
|
39123
39123
|
composerLocales: y.editor.comments,
|
|
39124
|
-
children: ({ onSubmit:
|
|
39124
|
+
children: ({ onSubmit: te, handleBlur: ee, autoFocus: ne }) => /* @__PURE__ */ b(
|
|
39125
39125
|
H7,
|
|
39126
39126
|
{
|
|
39127
39127
|
initialContent: "",
|
|
39128
39128
|
outputFormat: "html",
|
|
39129
39129
|
debounce: 1,
|
|
39130
39130
|
mode: "comment",
|
|
39131
|
-
autoFocus:
|
|
39132
|
-
onSubmit:
|
|
39131
|
+
autoFocus: ne,
|
|
39132
|
+
onSubmit: te,
|
|
39133
39133
|
handleBlur: ee,
|
|
39134
39134
|
onChange: (he) => {
|
|
39135
39135
|
typeof he == "string" && s((ce) => ({
|
|
@@ -39165,9 +39165,9 @@ function Y7() {
|
|
|
39165
39165
|
updateThreadId: Q,
|
|
39166
39166
|
storeOptions: ke,
|
|
39167
39167
|
getEditor: ({
|
|
39168
|
-
setCommentValue:
|
|
39168
|
+
setCommentValue: te,
|
|
39169
39169
|
initialContent: ee = "",
|
|
39170
|
-
editorRef:
|
|
39170
|
+
editorRef: ne
|
|
39171
39171
|
}) => /* @__PURE__ */ b(
|
|
39172
39172
|
eM,
|
|
39173
39173
|
{
|
|
@@ -39175,9 +39175,9 @@ function Y7() {
|
|
|
39175
39175
|
outputFormat: "html",
|
|
39176
39176
|
debounce: 1,
|
|
39177
39177
|
mode: "comment",
|
|
39178
|
-
editorRef:
|
|
39178
|
+
editorRef: ne,
|
|
39179
39179
|
onChange: (he) => {
|
|
39180
|
-
|
|
39180
|
+
te == null || te((ce) => ({
|
|
39181
39181
|
...ce,
|
|
39182
39182
|
value: he
|
|
39183
39183
|
}));
|
|
@@ -39490,7 +39490,7 @@ const oG = () => {
|
|
|
39490
39490
|
const [n, e] = re({
|
|
39491
39491
|
top: "0px",
|
|
39492
39492
|
bottom: "auto"
|
|
39493
|
-
}), [t, r] = re(!1), [i, o] = re(!1), [s] = Me(), [l, c] = re("main"), [u, d] = re(""), [h, g] = re(""), [m, p] = re(""), [y, w] = re(null), [C, v] = re(!1), { fetchPromptResult: S } = Rt(Yt), { t: E } =
|
|
39493
|
+
}), [t, r] = re(!1), [i, o] = re(!1), [s] = Me(), [l, c] = re("main"), [u, d] = re(""), [h, g] = re(""), [m, p] = re(""), [y, w] = re(null), [C, v] = re(!1), { fetchPromptResult: S } = Rt(Yt), { t: E } = vt(), [T, k] = XP(), _ = () => {
|
|
39494
39494
|
r(!1), o(!1), p(""), c("main"), setTimeout(() => {
|
|
39495
39495
|
e({ top: "0px", bottom: "auto" });
|
|
39496
39496
|
}, 200);
|
|
@@ -39612,7 +39612,7 @@ const oG = () => {
|
|
|
39612
39612
|
}
|
|
39613
39613
|
),
|
|
39614
39614
|
/* @__PURE__ */ b(Jr, { w: "auto", mt: "xs", children: /* @__PURE__ */ b(JP, { value: m, timeout: 2e3, children: ({ copied: P, copy: V }) => /* @__PURE__ */ b(
|
|
39615
|
-
|
|
39615
|
+
St,
|
|
39616
39616
|
{
|
|
39617
39617
|
label: P ? "Copied" : "Copy",
|
|
39618
39618
|
withArrow: !0,
|
|
@@ -39739,7 +39739,7 @@ const oG = () => {
|
|
|
39739
39739
|
children: n,
|
|
39740
39740
|
...e
|
|
39741
39741
|
}) => {
|
|
39742
|
-
const { imagePickerSettings: t, maxFileSize: r } = Rt(Yt), { t: i } =
|
|
39742
|
+
const { imagePickerSettings: t, maxFileSize: r } = Rt(Yt), { t: i } = vt("ui"), { giphyToken: o, unsplashClientId: s, link: l, download: c, maxUploadFiles: u } = t, d = bt(() => [
|
|
39743
39743
|
{ key: "gallery", enabled: !0 },
|
|
39744
39744
|
{ key: "giphy", enabled: o },
|
|
39745
39745
|
{
|
|
@@ -39818,7 +39818,7 @@ const oG = () => {
|
|
|
39818
39818
|
src: l
|
|
39819
39819
|
});
|
|
39820
39820
|
},
|
|
39821
|
-
children: /* @__PURE__ */ b(
|
|
39821
|
+
children: /* @__PURE__ */ b(St, { label: t("editor.image.add_photo"), children: /* @__PURE__ */ b(
|
|
39822
39822
|
"button",
|
|
39823
39823
|
{
|
|
39824
39824
|
disabled: !e,
|
|
@@ -39853,10 +39853,10 @@ function nv({
|
|
|
39853
39853
|
}) {
|
|
39854
39854
|
const [t] = Me(), [r, i] = re(t), [o, s] = re("paragraph"), [l, c] = re("root"), [u, d] = re(
|
|
39855
39855
|
null
|
|
39856
|
-
), [h, g] = re("#000"), [m, p] = re("#fff"), [y, w] = re("left"), [C, v] = re(!1), [S, E] = re(!1), [T, k] = re(!1), [_, I] = re(!1), [N, O] = re(!1), [R, j] = re(!1), [B, P] = re(!1), [V, ue] = re(!1), [Ae, oe] = re(!1), [Q, Z] = re(!1), [z] = CI(), [W, q] = re(!1), [ge, pe] = re(!0), [ye, ke] = re(!0), [
|
|
39856
|
+
), [h, g] = re("#000"), [m, p] = re("#fff"), [y, w] = re("left"), [C, v] = re(!1), [S, E] = re(!1), [T, k] = re(!1), [_, I] = re(!1), [N, O] = re(!1), [R, j] = re(!1), [B, P] = re(!1), [V, ue] = re(!1), [Ae, oe] = re(!1), [Q, Z] = re(!1), [z] = CI(), [W, q] = re(!1), [ge, pe] = re(!0), [ye, ke] = re(!0), [te, ee] = re(0), [ne, he] = re(() => t.isEditable()), ce = n || "default", { excludeNodes: be, fetchUploadMedia: Ie, fetchPromptResult: Oe, commentOptions: Ee } = Rt(Yt), { t: ze } = vt(), tt = Be(() => {
|
|
39857
39857
|
const je = H();
|
|
39858
39858
|
if (K(je)) {
|
|
39859
|
-
const ut = je.anchor.getNode(),
|
|
39859
|
+
const ut = je.anchor.getNode(), wt = je.focus.getNode(), Bt = bn(ut) ? null : ut.getTopLevelElementOrThrow(), Dt = bn(wt) ? null : wt.getTopLevelElementOrThrow();
|
|
39860
39860
|
let it = ut.getKey() === "root" ? ut : Pe(ut, (ur) => {
|
|
39861
39861
|
const Jo = ur.getParent();
|
|
39862
39862
|
return Jo !== null && $n(Jo);
|
|
@@ -39924,8 +39924,8 @@ function nv({
|
|
|
39924
39924
|
r.registerCommand(
|
|
39925
39925
|
W1,
|
|
39926
39926
|
(je) => {
|
|
39927
|
-
const ut = je, { code:
|
|
39928
|
-
if (
|
|
39927
|
+
const ut = je, { code: wt, ctrlKey: Bt, metaKey: Dt } = ut;
|
|
39928
|
+
if (wt === "KeyK" && (Bt || Dt)) {
|
|
39929
39929
|
ut.preventDefault();
|
|
39930
39930
|
let it;
|
|
39931
39931
|
return C ? it = null : it = Wc("https://"), r.dispatchCommand(ul, it);
|
|
@@ -39939,8 +39939,8 @@ function nv({
|
|
|
39939
39939
|
() => {
|
|
39940
39940
|
const je = H();
|
|
39941
39941
|
if (K(je)) {
|
|
39942
|
-
const ut = je.getNodes(),
|
|
39943
|
-
ke(!
|
|
39942
|
+
const ut = je.getNodes(), wt = ut.length > 0 && ut.every((Bt) => qa(Bt) || xt(Bt) || ei(Bt) ? !1 : Y(Bt) || le(Bt));
|
|
39943
|
+
ke(!wt);
|
|
39944
39944
|
}
|
|
39945
39945
|
return !1;
|
|
39946
39946
|
},
|
|
@@ -39950,8 +39950,8 @@ function nv({
|
|
|
39950
39950
|
(je, ut) => {
|
|
39951
39951
|
r.update(
|
|
39952
39952
|
() => {
|
|
39953
|
-
const
|
|
39954
|
-
|
|
39953
|
+
const wt = H();
|
|
39954
|
+
wt !== null && zS(wt, je);
|
|
39955
39955
|
},
|
|
39956
39956
|
ut ? { tag: "historic" } : {}
|
|
39957
39957
|
);
|
|
@@ -39964,13 +39964,13 @@ function nv({
|
|
|
39964
39964
|
}), r.update(() => {
|
|
39965
39965
|
const je = H();
|
|
39966
39966
|
if (K(je)) {
|
|
39967
|
-
const ut = je.anchor,
|
|
39968
|
-
if (ut.key ===
|
|
39967
|
+
const ut = je.anchor, wt = je.focus, Bt = je.getNodes();
|
|
39968
|
+
if (ut.key === wt.key && ut.offset === wt.offset)
|
|
39969
39969
|
return;
|
|
39970
39970
|
Bt.forEach((Dt, it) => {
|
|
39971
39971
|
if (er(Dt)) {
|
|
39972
39972
|
let It = Dt;
|
|
39973
|
-
it === 0 && ut.offset !== 0 && (It = It.splitText(ut.offset)[1] || It), it === Bt.length - 1 && (It = It.splitText(
|
|
39973
|
+
it === 0 && ut.offset !== 0 && (It = It.splitText(ut.offset)[1] || It), it === Bt.length - 1 && (It = It.splitText(wt.offset)[0] || It), It.__style !== "" && It.setStyle(""), It.__format !== 0 && (It.setFormat(0), bl(It).setFormat("")), Dt = It;
|
|
39974
39974
|
} else Do(Dt) || Cu(Dt) ? Dt.replace(_e(), !0) : VA(Dt) && Dt.setFormat("");
|
|
39975
39975
|
});
|
|
39976
39976
|
}
|
|
@@ -39989,10 +39989,10 @@ function nv({
|
|
|
39989
39989
|
};
|
|
39990
39990
|
return /* @__PURE__ */ b("div", { className: "toolbar-wrapper", tabIndex: -1, children: /* @__PURE__ */ $("div", { className: "toolbar", children: [
|
|
39991
39991
|
ce === "full" && /* @__PURE__ */ $(Je, { children: [
|
|
39992
|
-
/* @__PURE__ */ b(
|
|
39992
|
+
/* @__PURE__ */ b(St, { label: "Отменить", children: /* @__PURE__ */ b(
|
|
39993
39993
|
"button",
|
|
39994
39994
|
{
|
|
39995
|
-
disabled: !Ae || !
|
|
39995
|
+
disabled: !Ae || !ne,
|
|
39996
39996
|
onClick: () => {
|
|
39997
39997
|
r.dispatchCommand(Bl, void 0);
|
|
39998
39998
|
},
|
|
@@ -40003,10 +40003,10 @@ function nv({
|
|
|
40003
40003
|
children: /* @__PURE__ */ b(Se, { name: "undo" })
|
|
40004
40004
|
}
|
|
40005
40005
|
) }),
|
|
40006
|
-
/* @__PURE__ */ b(
|
|
40006
|
+
/* @__PURE__ */ b(St, { label: "Вернуть", children: /* @__PURE__ */ b(
|
|
40007
40007
|
"button",
|
|
40008
40008
|
{
|
|
40009
|
-
disabled: !Q || !
|
|
40009
|
+
disabled: !Q || !ne,
|
|
40010
40010
|
onClick: () => {
|
|
40011
40011
|
r.dispatchCommand(Os, void 0);
|
|
40012
40012
|
},
|
|
@@ -40039,10 +40039,10 @@ function nv({
|
|
|
40039
40039
|
/* @__PURE__ */ b(Oc, {})
|
|
40040
40040
|
] }),
|
|
40041
40041
|
/* @__PURE__ */ $(Je, { children: [
|
|
40042
|
-
/* @__PURE__ */ b(
|
|
40042
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.bold"), children: /* @__PURE__ */ b(
|
|
40043
40043
|
"button",
|
|
40044
40044
|
{
|
|
40045
|
-
disabled: !
|
|
40045
|
+
disabled: !ne,
|
|
40046
40046
|
onClick: () => {
|
|
40047
40047
|
r.dispatchCommand(nn, "bold");
|
|
40048
40048
|
},
|
|
@@ -40052,10 +40052,10 @@ function nv({
|
|
|
40052
40052
|
children: /* @__PURE__ */ b(Se, { name: "bold" })
|
|
40053
40053
|
}
|
|
40054
40054
|
) }),
|
|
40055
|
-
/* @__PURE__ */ b(
|
|
40055
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.italic"), children: /* @__PURE__ */ b(
|
|
40056
40056
|
"button",
|
|
40057
40057
|
{
|
|
40058
|
-
disabled: !
|
|
40058
|
+
disabled: !ne,
|
|
40059
40059
|
onClick: () => {
|
|
40060
40060
|
r.dispatchCommand(nn, "italic");
|
|
40061
40061
|
},
|
|
@@ -40065,10 +40065,10 @@ function nv({
|
|
|
40065
40065
|
children: /* @__PURE__ */ b(Se, { name: "italic" })
|
|
40066
40066
|
}
|
|
40067
40067
|
) }),
|
|
40068
|
-
/* @__PURE__ */ b(
|
|
40068
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.underline"), children: /* @__PURE__ */ b(
|
|
40069
40069
|
"button",
|
|
40070
40070
|
{
|
|
40071
|
-
disabled: !
|
|
40071
|
+
disabled: !ne,
|
|
40072
40072
|
onClick: () => {
|
|
40073
40073
|
r.dispatchCommand(nn, "underline");
|
|
40074
40074
|
},
|
|
@@ -40078,10 +40078,10 @@ function nv({
|
|
|
40078
40078
|
children: /* @__PURE__ */ b(Se, { name: "underline" })
|
|
40079
40079
|
}
|
|
40080
40080
|
) }),
|
|
40081
|
-
/* @__PURE__ */ b(
|
|
40081
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.strike"), children: /* @__PURE__ */ b(
|
|
40082
40082
|
"button",
|
|
40083
40083
|
{
|
|
40084
|
-
disabled: !
|
|
40084
|
+
disabled: !ne,
|
|
40085
40085
|
className: "toolbar-item spaced " + (N ? "active" : ""),
|
|
40086
40086
|
onClick: () => {
|
|
40087
40087
|
r.dispatchCommand(
|
|
@@ -40093,10 +40093,10 @@ function nv({
|
|
|
40093
40093
|
children: /* @__PURE__ */ b(Se, { name: "strikethrough" })
|
|
40094
40094
|
}
|
|
40095
40095
|
) }),
|
|
40096
|
-
/* @__PURE__ */ b(
|
|
40096
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.code"), children: /* @__PURE__ */ b(
|
|
40097
40097
|
"button",
|
|
40098
40098
|
{
|
|
40099
|
-
disabled: !
|
|
40099
|
+
disabled: !ne,
|
|
40100
40100
|
onClick: () => {
|
|
40101
40101
|
r.dispatchCommand(nn, "code");
|
|
40102
40102
|
},
|
|
@@ -40106,10 +40106,10 @@ function nv({
|
|
|
40106
40106
|
children: /* @__PURE__ */ b(Se, { name: "code" })
|
|
40107
40107
|
}
|
|
40108
40108
|
) }),
|
|
40109
|
-
/* @__PURE__ */ b(
|
|
40109
|
+
/* @__PURE__ */ b(St, { label: ze("editor.toolbar.clear"), children: /* @__PURE__ */ b(
|
|
40110
40110
|
"button",
|
|
40111
40111
|
{
|
|
40112
|
-
disabled: !
|
|
40112
|
+
disabled: !ne,
|
|
40113
40113
|
className: "toolbar-item",
|
|
40114
40114
|
onClick: gt,
|
|
40115
40115
|
title: "Clear text formatting",
|
|
@@ -40117,7 +40117,7 @@ function nv({
|
|
|
40117
40117
|
children: /* @__PURE__ */ b(Se, { name: "сlear-format" })
|
|
40118
40118
|
}
|
|
40119
40119
|
) }),
|
|
40120
|
-
/* @__PURE__ */ b(
|
|
40120
|
+
/* @__PURE__ */ b(St, { disabled: !ne, label: ze("editor.toolbar.link"), children: /* @__PURE__ */ b(
|
|
40121
40121
|
"button",
|
|
40122
40122
|
{
|
|
40123
40123
|
onClick: Gt,
|
|
@@ -40130,7 +40130,7 @@ function nv({
|
|
|
40130
40130
|
children: /* @__PURE__ */ b(Se, { name: "link" })
|
|
40131
40131
|
}
|
|
40132
40132
|
) }),
|
|
40133
|
-
Ee && n === "editor" && /* @__PURE__ */ b(
|
|
40133
|
+
Ee && n === "editor" && /* @__PURE__ */ b(St, { label: ze("editor.toolbar.comment"), children: /* @__PURE__ */ b(
|
|
40134
40134
|
"button",
|
|
40135
40135
|
{
|
|
40136
40136
|
onClick: Rn,
|
|
@@ -40139,7 +40139,7 @@ function nv({
|
|
|
40139
40139
|
type: "button",
|
|
40140
40140
|
children: /* @__PURE__ */ b(Se, { name: "message" })
|
|
40141
40141
|
}
|
|
40142
|
-
) },
|
|
40142
|
+
) }, te),
|
|
40143
40143
|
/* @__PURE__ */ b(
|
|
40144
40144
|
su,
|
|
40145
40145
|
{
|
|
@@ -40149,7 +40149,7 @@ function nv({
|
|
|
40149
40149
|
"background-color": m,
|
|
40150
40150
|
[je.mode === "color" ? "color" : "background-color"]: je.value
|
|
40151
40151
|
}),
|
|
40152
|
-
disabled: !
|
|
40152
|
+
disabled: !ne,
|
|
40153
40153
|
modes: ["color", "background"]
|
|
40154
40154
|
}
|
|
40155
40155
|
)
|
|
@@ -40158,7 +40158,7 @@ function nv({
|
|
|
40158
40158
|
/* @__PURE__ */ b(
|
|
40159
40159
|
B7,
|
|
40160
40160
|
{
|
|
40161
|
-
disabled: !
|
|
40161
|
+
disabled: !ne,
|
|
40162
40162
|
value: y,
|
|
40163
40163
|
editor: t,
|
|
40164
40164
|
isRTL: W,
|
|
@@ -40167,12 +40167,12 @@ function nv({
|
|
|
40167
40167
|
),
|
|
40168
40168
|
n === "default" && /* @__PURE__ */ $(Je, { children: [
|
|
40169
40169
|
/* @__PURE__ */ b(Oc, {}),
|
|
40170
|
-
/* @__PURE__ */ b(lG, { editor: t, t: ze, isEditable:
|
|
40170
|
+
/* @__PURE__ */ b(lG, { editor: t, t: ze, isEditable: ne })
|
|
40171
40171
|
] }),
|
|
40172
40172
|
z
|
|
40173
40173
|
] }) });
|
|
40174
40174
|
}
|
|
40175
|
-
const EE = nc(() => import("./layers.
|
|
40175
|
+
const EE = nc(() => import("./layers.PplD43nU.js"));
|
|
40176
40176
|
function cG(n) {
|
|
40177
40177
|
const {
|
|
40178
40178
|
floatingAnchorElem: e,
|
|
@@ -42951,16 +42951,16 @@ var QI = HJ(`
|
|
|
42951
42951
|
u.selectFlag = !0;
|
|
42952
42952
|
var ge = i.options, pe = ge.scrollOptions, ye = ge.innerScrollOptions, ke = !1;
|
|
42953
42953
|
if (ye) {
|
|
42954
|
-
for (var
|
|
42954
|
+
for (var te = l.inputEvent, ee = te.target, ne = null, he = ee; he && he !== Ao(_).body; ) {
|
|
42955
42955
|
var ce = getComputedStyle(he).overflow !== "visible";
|
|
42956
42956
|
if (ce) {
|
|
42957
|
-
|
|
42957
|
+
ne = he;
|
|
42958
42958
|
break;
|
|
42959
42959
|
}
|
|
42960
42960
|
he = he.parentElement;
|
|
42961
42961
|
}
|
|
42962
|
-
|
|
42963
|
-
container:
|
|
42962
|
+
ne && (u.innerScrollOptions = gn({
|
|
42963
|
+
container: ne,
|
|
42964
42964
|
checkScrollEvent: !0
|
|
42965
42965
|
}, ye === !0 ? {} : ye), i.dragScroll.dragStart(l, u.innerScrollOptions), ke = !0);
|
|
42966
42966
|
}
|
|
@@ -43681,7 +43681,7 @@ const rQ = ({ editor: n }) => {
|
|
|
43681
43681
|
text: sQ
|
|
43682
43682
|
}, lQ = ({ editor: n }) => {
|
|
43683
43683
|
var u;
|
|
43684
|
-
const [e, t] = re(!1), { t: r, i18n: i } =
|
|
43684
|
+
const [e, t] = re(!1), { t: r, i18n: i } = vt(), { excludeNodes: o } = Rt(Yt), s = (d) => {
|
|
43685
43685
|
const h = document.querySelector(".editor-container");
|
|
43686
43686
|
if (d) {
|
|
43687
43687
|
h.classList.add("empty-editor");
|
|
@@ -43753,7 +43753,7 @@ const rQ = ({ editor: n }) => {
|
|
|
43753
43753
|
title: r("editor.menu.media.excalidraw.hint.description"),
|
|
43754
43754
|
icon: /* @__PURE__ */ b(i1, { stroke: 2, size: 18 }),
|
|
43755
43755
|
onSelect: () => {
|
|
43756
|
-
import("./layers.
|
|
43756
|
+
import("./layers.PplD43nU.js").then(
|
|
43757
43757
|
({ INSERT_EXCALIDRAW_COMMAND: d }) => {
|
|
43758
43758
|
l(n, () => {
|
|
43759
43759
|
n.dispatchCommand(d, void 0);
|
|
@@ -43843,7 +43843,7 @@ const rQ = ({ editor: n }) => {
|
|
|
43843
43843
|
},
|
|
43844
43844
|
d.title
|
|
43845
43845
|
) : null) }) }) : null;
|
|
43846
|
-
}, JE = nc(() => import("./layers.
|
|
43846
|
+
}, JE = nc(() => import("./layers.PplD43nU.js"));
|
|
43847
43847
|
function aQ(n) {
|
|
43848
43848
|
const {
|
|
43849
43849
|
onRef: e,
|
|
@@ -44488,7 +44488,7 @@ function xQ() {
|
|
|
44488
44488
|
}
|
|
44489
44489
|
);
|
|
44490
44490
|
}
|
|
44491
|
-
const QE = nc(() => import("./layers.
|
|
44491
|
+
const QE = nc(() => import("./layers.PplD43nU.js"));
|
|
44492
44492
|
function kQ(n) {
|
|
44493
44493
|
const { historyState: e } = rv(), [t, r] = re(!1), {
|
|
44494
44494
|
onRef: i,
|
|
@@ -45007,10 +45007,10 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45007
45007
|
let j = !!(S != null && S.url);
|
|
45008
45008
|
const { historyState: B } = rv(), P = Fe({}), V = Fe(null), [ue, Ae] = re("initial"), [oe, Q] = re(
|
|
45009
45009
|
null
|
|
45010
|
-
), Z = Be((
|
|
45011
|
-
|
|
45010
|
+
), Z = Be((ne) => {
|
|
45011
|
+
ne.update(() => {
|
|
45012
45012
|
if (typeof R == "string") {
|
|
45013
|
-
const ce = new DOMParser().parseFromString(R, "text/html"), be = ug(
|
|
45013
|
+
const ce = new DOMParser().parseFromString(R, "text/html"), be = ug(ne, ce);
|
|
45014
45014
|
Ke().select(), Ku(be);
|
|
45015
45015
|
}
|
|
45016
45016
|
});
|
|
@@ -45018,8 +45018,8 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45018
45018
|
editorState: null,
|
|
45019
45019
|
namespace: N,
|
|
45020
45020
|
nodes: BQ(O),
|
|
45021
|
-
onError: (
|
|
45022
|
-
throw
|
|
45021
|
+
onError: (ne) => {
|
|
45022
|
+
throw ne;
|
|
45023
45023
|
},
|
|
45024
45024
|
theme: hH(O)
|
|
45025
45025
|
}), []);
|
|
@@ -45027,9 +45027,9 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45027
45027
|
_ && QA.changeLanguage(_);
|
|
45028
45028
|
}, [_]);
|
|
45029
45029
|
const W = j0(
|
|
45030
|
-
(
|
|
45030
|
+
(ne, he) => {
|
|
45031
45031
|
if (t === "html")
|
|
45032
|
-
|
|
45032
|
+
ne.read(() => {
|
|
45033
45033
|
let be = LA(he, null);
|
|
45034
45034
|
const Ie = Ke();
|
|
45035
45035
|
Ie && (py() && (be = ""), Ie.getChildrenSize() === 0 && (he.update(() => {
|
|
@@ -45039,17 +45039,17 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45039
45039
|
e(be, Oe);
|
|
45040
45040
|
});
|
|
45041
45041
|
else {
|
|
45042
|
-
const ce =
|
|
45042
|
+
const ce = ne.toJSON();
|
|
45043
45043
|
e(ce);
|
|
45044
45044
|
}
|
|
45045
45045
|
},
|
|
45046
45046
|
C || 500
|
|
45047
45047
|
), q = j0(
|
|
45048
|
-
(
|
|
45049
|
-
|
|
45048
|
+
(ne) => {
|
|
45049
|
+
ne.dispatchCommand(Io, !0);
|
|
45050
45050
|
},
|
|
45051
45051
|
100
|
|
45052
|
-
), ge = (
|
|
45052
|
+
), ge = (ne, he) => {
|
|
45053
45053
|
if (o)
|
|
45054
45054
|
if (t === "html")
|
|
45055
45055
|
he.update(() => {
|
|
@@ -45057,12 +45057,12 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45057
45057
|
o(ce);
|
|
45058
45058
|
});
|
|
45059
45059
|
else {
|
|
45060
|
-
const ce =
|
|
45060
|
+
const ce = ne.toJSON();
|
|
45061
45061
|
o(ce);
|
|
45062
45062
|
}
|
|
45063
45063
|
}, pe = () => typeof R == "string" ? Z : JSON.stringify(R), ye = Be(
|
|
45064
|
-
(
|
|
45065
|
-
const ce = HQ(
|
|
45064
|
+
(ne, he) => {
|
|
45065
|
+
const ce = HQ(ne, he, S == null ? void 0 : S.url);
|
|
45066
45066
|
return ce.on("status", (be) => {
|
|
45067
45067
|
be.status === "connecting" && Ae(be.status);
|
|
45068
45068
|
}), setTimeout(() => Q(ce), 0), ce;
|
|
@@ -45070,8 +45070,8 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45070
45070
|
[]
|
|
45071
45071
|
), ke = Be(() => {
|
|
45072
45072
|
var be;
|
|
45073
|
-
const
|
|
45074
|
-
|
|
45073
|
+
const ne = oe.awareness, ce = Array.from(
|
|
45074
|
+
ne.getStates().entries()
|
|
45075
45075
|
).map(([Ie, Oe]) => ({
|
|
45076
45076
|
id: String(Ie),
|
|
45077
45077
|
userId: Ie,
|
|
@@ -45088,9 +45088,9 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45088
45088
|
return oe.awareness.on("update", ke), () => oe.awareness.off("update", ke);
|
|
45089
45089
|
}, [oe, ke]), X(() => {
|
|
45090
45090
|
if (oe != null && oe.ws) {
|
|
45091
|
-
const
|
|
45091
|
+
const ne = oe.ws;
|
|
45092
45092
|
let he = 0;
|
|
45093
|
-
|
|
45093
|
+
ne ? (ne.addEventListener("message", (ce) => {
|
|
45094
45094
|
if (typeof ce.data != "string") {
|
|
45095
45095
|
he === 1 && Ae("connected"), he++;
|
|
45096
45096
|
return;
|
|
@@ -45099,16 +45099,16 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45099
45099
|
be["active-users"] && console.log("message", be["active-users"]), be.error && (be.error === "Unauthorized" ? (console.error(
|
|
45100
45100
|
"Connection unauthorized: You are not authorized to access this WebSocket."
|
|
45101
45101
|
), oe.disconnect()) : be.error === "No token provided" ? (console.error("No token provided: You must provide a token."), oe.disconnect()) : (console.error("Unknown error:", be.error), oe.disconnect()), Ae("error"));
|
|
45102
|
-
}),
|
|
45102
|
+
}), ne.addEventListener("close", (ce) => {
|
|
45103
45103
|
console.error("WebSocket connection closed:", ce), Ae("error");
|
|
45104
45104
|
})) : console.error("WebSocket is not initialized yet.");
|
|
45105
45105
|
}
|
|
45106
45106
|
}, [oe == null ? void 0 : oe.ws]), X(() => () => {
|
|
45107
45107
|
oe instanceof yN && (oe.destroy(), oe.disconnect());
|
|
45108
45108
|
}, [oe]), j || (z.editorState = pe());
|
|
45109
|
-
const
|
|
45110
|
-
const
|
|
45111
|
-
return l || (
|
|
45109
|
+
const te = ue === "connecting" && j, ee = bt(() => {
|
|
45110
|
+
const ne = { ...E };
|
|
45111
|
+
return l || (ne.photo = !0, ne.video = !0, ne.audio = !0, ne.file = !0), r !== "editor" && (ne.childDocs = !0), {
|
|
45112
45112
|
fetchDeleteMedia: u,
|
|
45113
45113
|
fetchUploadMedia: l,
|
|
45114
45114
|
fetchRestoreMedia: d,
|
|
@@ -45121,7 +45121,7 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45121
45121
|
workspaceMembers: m,
|
|
45122
45122
|
disable: v || !1,
|
|
45123
45123
|
mode: O,
|
|
45124
|
-
excludeNodes:
|
|
45124
|
+
excludeNodes: ne,
|
|
45125
45125
|
imagePickerSettings: T,
|
|
45126
45126
|
imperativeHandleRef: P,
|
|
45127
45127
|
maxHeight: i,
|
|
@@ -45134,7 +45134,7 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45134
45134
|
/* @__PURE__ */ b(
|
|
45135
45135
|
QP,
|
|
45136
45136
|
{
|
|
45137
|
-
visible:
|
|
45137
|
+
visible: te,
|
|
45138
45138
|
overlayProps: { radius: "sm", blur: 2 }
|
|
45139
45139
|
}
|
|
45140
45140
|
),
|
|
@@ -45163,7 +45163,7 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45163
45163
|
disable: v || !1,
|
|
45164
45164
|
isErrorWs: ue === "error",
|
|
45165
45165
|
content: R,
|
|
45166
|
-
isLoading:
|
|
45166
|
+
isLoading: te,
|
|
45167
45167
|
imperativeHandleRef: P
|
|
45168
45168
|
}
|
|
45169
45169
|
),
|
|
@@ -45173,8 +45173,8 @@ const YQ = ls ? "" : "os-windows", ZQ = ({ children: n }) => /* @__PURE__ */ b("
|
|
|
45173
45173
|
k8,
|
|
45174
45174
|
{
|
|
45175
45175
|
ignoreSelectionChange: !0,
|
|
45176
|
-
onChange: (
|
|
45177
|
-
W(
|
|
45176
|
+
onChange: (ne, he) => {
|
|
45177
|
+
W(ne, he), q(he);
|
|
45178
45178
|
}
|
|
45179
45179
|
}
|
|
45180
45180
|
),
|