@layers-app/editor 0.3.5 → 0.3.6
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.BPUQUZOV.js → layers.-5Lgclnz.js} +1 -1
- package/dist/{layers.Ccx_jdDc.js → layers.0g5uO7I6.js} +1 -1
- package/dist/{layers.DjUjt1kv.js → layers.5ygE1JlC.js} +1 -1
- package/dist/{layers.BaLepxRQ.js → layers.69-vt3oR.js} +1 -1
- package/dist/{layers.BhigGvNe.js → layers.7HJK2Y5U.js} +1 -1
- package/dist/{layers.SB3PNmUy.js → layers.7mUOhrZY.js} +1 -1
- package/dist/{layers.CF1t_7GJ.js → layers.9I3HFrmI.js} +4 -4
- package/dist/{layers.BYDe5vrL.js → layers.A3ZwZgRQ.js} +1 -1
- package/dist/{layers.DOciqx24.js → layers.B2feTekR.js} +1 -1
- package/dist/{layers.CziY3yM5.js → layers.B3Kvqzw-.js} +1 -1
- package/dist/layers.B3Zp-Is3.js +1 -0
- package/dist/{layers.CpbthWYa.js → layers.B52lyuur.js} +1 -1
- package/dist/{layers.CrfCFcMZ.js → layers.B77VL9sx.js} +1 -1
- package/dist/{layers.CrB3Zb2x.js → layers.B8C13Ne1.js} +1 -1
- package/dist/{layers.C0UPWEnP.js → layers.B8uKn2Dw.js} +1 -1
- package/dist/{layers.KIMloKsC.js → layers.B9R3eGyK.js} +1 -1
- package/dist/{layers.R3Qu3-UZ.js → layers.BBXHTLj8.js} +1 -1
- package/dist/{layers.9kfzWn6n.js → layers.BCd7w2yt.js} +1 -1
- package/dist/{layers.B9EQFOJG.js → layers.BF7ESV6n.js} +1 -1
- package/dist/{layers.B2V-AGtO.js → layers.BFAu9m8Q.js} +1 -1
- package/dist/{layers.BxqcV34r.js → layers.BHpJ2UOG.js} +1 -1
- package/dist/{layers.BptRHkWH.js → layers.BJxi0js0.js} +1 -1
- package/dist/{layers.C3zQ2371.js → layers.BKPQwMm-.js} +1 -1
- package/dist/{layers.puqicLst.js → layers.BKtNAtd_.js} +1 -1
- package/dist/{layers.CZaAwSnp.js → layers.BOx7BRj4.js} +1 -1
- package/dist/{layers.BI3RQUVK.js → layers.BPxJmeST.js} +1 -1
- package/dist/{layers.BTt8miT1.js → layers.BQkR8-LU.js} +1 -1
- package/dist/{layers.C6I77Qap.js → layers.BSQ5l9NA.js} +1 -1
- package/dist/{layers.DW4BQSJ8.js → layers.BSgo83_G.js} +1 -1
- package/dist/{layers.B-2Agz6g.js → layers.BTEUd5-p.js} +1 -1
- package/dist/{layers.CoROu3H7.js → layers.BTJS2yG2.js} +5 -5
- package/dist/{layers.CWDqV99i.js → layers.BTya_-T3.js} +1 -1
- package/dist/{layers.D75L8dNA.js → layers.BULuTh-j.js} +1 -1
- package/dist/{layers.B3D0ozHh.js → layers.BUdVoOcC.js} +1 -1
- package/dist/{layers.DQNvPUlq.js → layers.BUpmcCIw.js} +1 -1
- package/dist/{layers.DpzfdzUl.js → layers.BWuMHnce.js} +1 -1
- package/dist/{layers.DFvpMrzH.js → layers.BY1a3ViB.js} +2 -2
- package/dist/{layers.D6WpII_G.js → layers.BZX5VcOn.js} +1 -1
- package/dist/{layers.DcqukeAl.js → layers.BbOkYmVx.js} +1 -1
- package/dist/{layers.Cwpt8FED.js → layers.BbU_xIau.js} +4 -4
- package/dist/{layers.BtYE_uHn.js → layers.Bcsxz2tt.js} +1 -1
- package/dist/{layers.B4v9cXcW.js → layers.Bdnzxj8_.js} +1 -1
- package/dist/{layers.D1V3WzgA.js → layers.Ben2ZMRU.js} +1 -1
- package/dist/{layers.CodmL7NO.js → layers.BfLb8PrM.js} +1 -1
- package/dist/{layers.-ISefX3p.js → layers.BfnTfjck.js} +4 -4
- package/dist/{layers.PrcRgP7m.js → layers.BhqRHV2T.js} +1 -1
- package/dist/{layers.DkVg4_Jv.js → layers.BhtPQriH.js} +1 -1
- package/dist/{layers.gz5WkS5b.js → layers.Bi2yhH1u.js} +3 -3
- package/dist/{layers.DZ7MGY88.js → layers.BjZ4UDDE.js} +1 -1
- package/dist/{layers.CfKYFPLY.js → layers.Bjars8Cx.js} +1 -1
- package/dist/{layers.B38zMYqc.js → layers.Bjh1G9wV.js} +1 -1
- package/dist/{layers.C6gS-yKz.js → layers.Bl_IT9DR.js} +1 -1
- package/dist/{layers.DSIe2dHd.js → layers.BnJr2kCq.js} +5 -5
- package/dist/{layers.Cwb3OGVv.js → layers.BnRfAu3v.js} +1 -1
- package/dist/{layers.CC1qZBeR.js → layers.Bo7hyvnS.js} +1 -1
- package/dist/{layers.DiIXndSw.js → layers.Bo8fthgW.js} +1 -1
- package/dist/{layers.Df9Krzx8.js → layers.BoDwUuQc.js} +1 -1
- package/dist/{layers.R5wDWcDd.js → layers.BoOSv3Vi.js} +1 -1
- package/dist/{layers.CDW179o_.js → layers.Br6bn7So.js} +1 -1
- package/dist/{layers.BL-oxRdC.js → layers.BrzjJAFH.js} +3 -3
- package/dist/{layers.BhFgBMN4.js → layers.Btp0Yost.js} +3 -3
- package/dist/{layers.C_J07V45.js → layers.BvE7TiK1.js} +1 -1
- package/dist/{layers.BJ29ESN5.js → layers.ByIjh3sh.js} +1 -1
- package/dist/{layers.DyrZPkik.js → layers.C15flB1q.js} +1 -1
- package/dist/{layers.BmZ693BV.js → layers.C2QulvSs.js} +1 -1
- package/dist/{layers.DFavHiGU.js → layers.C2XV1h41.js} +3 -3
- package/dist/{layers.DzDUVFKj.js → layers.C5_EKLgn.js} +1 -1
- package/dist/{layers.Bh3gFN_z.js → layers.C5dLt_-K.js} +1 -1
- package/dist/{layers.C-d_E1Ka.js → layers.C5gPMUPR.js} +1 -1
- package/dist/{layers.Avw7vzsL.js → layers.C5o_gsY7.js} +1 -1
- package/dist/{layers.BGvhVXV5.js → layers.C7D5zbGN.js} +1 -1
- package/dist/{layers.CgE6qQ5L.js → layers.C7xGgVlp.js} +1 -1
- package/dist/{layers.4f0VywGG.js → layers.C8NoujKy.js} +1 -1
- package/dist/{layers.Cm2uuuwn.js → layers.CFv5izLy.js} +1 -1
- package/dist/{layers.lZ1kDwoT.js → layers.CHu6tcpX.js} +24 -24
- package/dist/{layers.HWxz-tJ3.js → layers.CI7rG8Pn.js} +1 -1
- package/dist/{layers.Dgsmf1FS.js → layers.CJL1_Xcw.js} +1 -1
- package/dist/{layers.DVZQDO2H.js → layers.CLKb0-1V.js} +1 -1
- package/dist/{layers.Cr1DWRto.js → layers.CNEzboKv.js} +1 -1
- package/dist/{layers.DVnPMejm.js → layers.CNLpufBG.js} +1 -1
- package/dist/{layers.DlyA9BuX.js → layers.CNYodF0g.js} +1 -1
- package/dist/{layers.CPSDnV9M.js → layers.COl0FFvb.js} +1 -1
- package/dist/{layers.DkUkY53Y.js → layers.CQLq20d8.js} +1 -1
- package/dist/{layers.BG6mY0qN.js → layers.CR8olQUJ.js} +7 -7
- package/dist/{layers.DyNhAzV2.js → layers.CRf0n1f0.js} +1 -1
- package/dist/{layers.DgiHNGIs.js → layers.CSnBgk6s.js} +1 -1
- package/dist/{layers.CvKw-DxT.js → layers.CTRLJqxG.js} +1 -1
- package/dist/{layers.D_5iJWZ2.js → layers.CT_kcb0H.js} +1 -1
- package/dist/{layers.DXpfzzGt.js → layers.CWH_fiy-.js} +1 -1
- package/dist/{layers.DZsdy0DH.js → layers.CWjh5K2k.js} +1 -1
- package/dist/{layers.0eG_3dCm.js → layers.CZxnvXXE.js} +1 -1
- package/dist/{layers.Bmw91Wbq.js → layers.C_zFlE8t.js} +2 -2
- package/dist/{layers.rxmTxykj.js → layers.Cc285eCr.js} +4 -4
- package/dist/{layers.DPVfa6fS.js → layers.Ccy_X90r.js} +1 -1
- package/dist/{layers.gv3F3_Rx.js → layers.CfXc3qKg.js} +1 -1
- package/dist/{layers.BT8KfR1M.js → layers.Cf_Vv8pR.js} +1 -1
- package/dist/{layers.DMkddGNO.js → layers.Cft4spLi.js} +1 -1
- package/dist/{layers.IeSUpgxC.js → layers.CkRRtY8y.js} +1 -1
- package/dist/{layers.BOStBqIO.js → layers.CmWz2p8R.js} +3 -3
- package/dist/{layers.Bz_62Cl5.js → layers.CmwA-UWj.js} +1 -1
- package/dist/{layers.C70E0m20.js → layers.CoOupyZi.js} +1 -1
- package/dist/{layers.Km9VcCuU.js → layers.CoYACQ51.js} +1 -1
- package/dist/{layers.DevUJEkT.js → layers.CqW0WH8h.js} +1 -1
- package/dist/{layers.B5ZMW42w.js → layers.CssrNTYY.js} +1 -1
- package/dist/{layers.C3EKAF4C.js → layers.CvsUduRC.js} +2 -2
- package/dist/{layers.DQ7Nvo_L.js → layers.CylMkEpz.js} +1 -1
- package/dist/{layers.aFLgLw_O.js → layers.CzDpU9XP.js} +1 -1
- package/dist/{layers.hY2rmLyE.js → layers.D-jANxcz.js} +1 -1
- package/dist/{layers.PJs6vfib.js → layers.D03V-o0Q.js} +3 -3
- package/dist/{layers.BkVZt0ju.js → layers.D0caFr3k.js} +1 -1
- package/dist/{layers.COwSqhBl.js → layers.D1bYVxit.js} +1 -1
- package/dist/{layers.0LpTBNiJ.js → layers.D2fuAtZe.js} +1 -1
- package/dist/{layers.7DyghSdd.js → layers.D4iE_lkf.js} +3 -3
- package/dist/{layers.bJmcOC1E.js → layers.D4yEvADR.js} +1 -1
- package/dist/{layers.DB6anrkN.js → layers.D5brU7Lw.js} +1 -1
- package/dist/{layers.D8ysDvOA.js → layers.D61aPtly.js} +1 -1
- package/dist/{layers.CK3zr9KH.js → layers.D6UMp7Cc.js} +4 -4
- package/dist/layers.D6l2gBA7.js +8 -0
- package/dist/layers.D7aK5FRQ.js +1 -0
- package/dist/{layers.BNMsRKs9.js → layers.D9HiMTqt.js} +4 -4
- package/dist/{layers.xaLGXX6n.js → layers.D9dUjuKM.js} +1 -1
- package/dist/{layers.mKWbgtOH.js → layers.DBPElbyW.js} +3 -3
- package/dist/{layers.psU6CTXa.js → layers.DDDYvCKp.js} +1 -1
- package/dist/{layers.dzfXP3Qw.js → layers.DDqpHjPk.js} +1 -1
- package/dist/{layers.CmLStJ73.js → layers.DFZwPqkp.js} +1 -1
- package/dist/{layers.Bmew0wf2.js → layers.DFsVVjwM.js} +1 -1
- package/dist/{layers.CmmrFN9j.js → layers.DGTuPehg.js} +1 -1
- package/dist/{layers.BNoEeaBk.js → layers.DIgPhktH.js} +1 -1
- package/dist/{layers.BzPqIGLS.js → layers.DJQYObhk.js} +2 -2
- package/dist/{layers.duxpp3Un.js → layers.DMO2Y-6o.js} +2 -2
- package/dist/{layers.WvBWtmCH.js → layers.DMpbYOvF.js} +1 -1
- package/dist/{layers.Dwf5mgJ1.js → layers.DNWTLSIo.js} +1 -1
- package/dist/{layers.c4ZSZVAm.js → layers.DOOralMp.js} +216 -216
- package/dist/{layers.jPwPChUh.js → layers.DSh6q60l.js} +1 -1
- package/dist/{layers.Drf0CMox.js → layers.DT_RyX3d.js} +2 -2
- package/dist/{layers.uoxQMub-.js → layers.DTqJVEPr.js} +1 -1
- package/dist/{layers.CttOELwv.js → layers.DWJ44u5w.js} +1 -1
- package/dist/{layers.C9ImPFrJ.js → layers.DWY3TwTy.js} +1 -1
- package/dist/{layers.BJLo5JWR.js → layers.DX9U3IPB.js} +1 -1
- package/dist/{layers.xyZn39Nw.js → layers.DYeXS-QP.js} +1 -1
- package/dist/{layers.CqzlfPSF.js → layers.Da6d8nGX.js} +1 -1
- package/dist/{layers.BZBVBeGI.js → layers.Da_RFxgR.js} +1 -1
- package/dist/{layers.SwIVAd47.js → layers.Dckz5wNw.js} +1 -1
- package/dist/{layers.MrEIuZzI.js → layers.Dct_E2bD.js} +1 -1
- package/dist/{layers.7H2hk91s.js → layers.Dd1wvnBt.js} +4 -4
- package/dist/{layers.D3ocnEt9.js → layers.DdbqeOnV.js} +1 -1
- package/dist/{layers.BtjK1dIG.js → layers.Dei31eCT.js} +1 -1
- package/dist/{layers.B6I3YJpy.js → layers.DepmS99X.js} +1 -1
- package/dist/{layers.DFlI7VDJ.js → layers.Dffum43a.js} +1 -1
- package/dist/layers.DfuykROG.js +6 -0
- package/dist/{layers.1QSMi-_x.js → layers.DgETXCcq.js} +1 -1
- package/dist/{layers.C3DaUVgk.js → layers.DgEW0s-H.js} +1 -1
- package/dist/{layers.DH5HZa7n.js → layers.Dk-4LLsv.js} +1 -1
- package/dist/{layers.BRp0_7zN.js → layers.DlWF_FuW.js} +1 -1
- package/dist/{layers.DfuGhvO1.js → layers.DlpxmYw_.js} +1 -1
- package/dist/{layers.CjYZxxVE.js → layers.Do2-VgDh.js} +1 -1
- package/dist/{layers.DUI3C3j9.js → layers.Dokm132B.js} +3 -3
- package/dist/{layers.wYQh6HY5.js → layers.DqhjH09U.js} +2 -2
- package/dist/{layers.DXPZsDHJ.js → layers.Ds2D3ty8.js} +1 -1
- package/dist/{layers.BcZUwFgi.js → layers.DsHU8tA8.js} +1 -1
- package/dist/{layers.D_n26XD3.js → layers.DsnA2jLL.js} +1 -1
- package/dist/{layers.D2ygghSU.js → layers.DsqzdOBW.js} +1 -1
- package/dist/{layers.DWuymhXL.js → layers.Du4Gnblm.js} +3 -3
- package/dist/{layers.DWoWjRJL.js → layers.DvACRSHS.js} +12 -12
- package/dist/{layers.BVdGknCj.js → layers.DvSGOk-1.js} +1 -1
- package/dist/{layers.DyONIYcr.js → layers.DxPWMjZU.js} +1 -1
- package/dist/{layers.CZa6u_49.js → layers.Dzb2PSmw.js} +1 -1
- package/dist/{layers.S65vvX5F.js → layers.DzleFxEN.js} +1 -1
- package/dist/{layers.vZ-0Pws1.js → layers.GUSw4uEA.js} +1 -1
- package/dist/{layers.ByQQHL7z.js → layers.HZJ6Cawq.js} +1 -1
- package/dist/{layers.DQaebS92.js → layers.HfjxV8B4.js} +4 -4
- package/dist/{layers.CSVxPHgX.js → layers.KFrwBDhr.js} +1 -1
- package/dist/{layers.Cg6orZMG.js → layers.Ke4AoyXy.js} +1 -1
- package/dist/{layers.BJIPGmjL.js → layers.PEe5xYey.js} +1 -1
- package/dist/{layers.De1Uc3Vw.js → layers.Qau2jjLW.js} +1 -1
- package/dist/{layers.D8tNnlFJ.js → layers.Qn6rj2ot.js} +1 -1
- package/dist/{layers.Dh1TDZhz.js → layers.Tt2GcbtA.js} +1 -1
- package/dist/{layers.Do8k3TIT.js → layers.V4QTGZbB.js} +1 -1
- package/dist/{layers.9BQ-j9b1.js → layers.WpHz0Xam.js} +1 -1
- package/dist/{layers.CN5rweSl.js → layers.X-eOT0WC.js} +1 -1
- package/dist/{layers.D_333SnD.js → layers.YB1th7fM.js} +1 -1
- package/dist/{layers.B9-0DFwd.js → layers.Z4qUARQA.js} +1 -1
- package/dist/{layers.CPqeg0Ra.js → layers.Zy0PnGjh.js} +1 -1
- package/dist/{layers.CjkrmuRP.js → layers._x3_Pk5g.js} +1 -1
- package/dist/{layers.Dtaao22P.js → layers.b6sGEvIQ.js} +1 -1
- package/dist/{layers.BsuTIILN.js → layers.c4PKeflp.js} +1 -1
- package/dist/{layers.QHG4lBaG.js → layers.dGYaKjQH.js} +8 -8
- package/dist/{layers.L954tLhU.js → layers.emEs-NMs.js} +1 -1
- package/dist/{layers.CORGsFNw.js → layers.enkF-CY_.js} +3 -3
- package/dist/{layers.BoXbCVBF.js → layers.f2fxMC-j.js} +1 -1
- package/dist/{layers.DHt4or2o.js → layers.fplzivY8.js} +1 -1
- package/dist/{layers.BrMvV8BA.js → layers.jNI1nzCq.js} +1 -1
- package/dist/{layers.nsyW2tut.js → layers.k8sPjLzr.js} +4 -4
- package/dist/{layers.Bj2JWvpG.js → layers.mfLe_yN6.js} +6 -6
- package/dist/{layers.Dl1Wykni.js → layers.qHfl1H7e.js} +1 -1
- package/dist/{layers.usBMILM2.js → layers.qXX7ynxp.js} +1 -1
- package/dist/{layers.DB6hi1y0.js → layers.r7DIxmHh.js} +1 -1
- package/dist/{layers.CNhu_k13.js → layers.uQ3-_A9Z.js} +1 -1
- package/dist/{layers.NvqS56wN.js → layers.ujqgKtGL.js} +1 -1
- package/dist/{layers.C-osLaXj.js → layers.vAHmcXqT.js} +1 -1
- package/dist/{layers.uu94UlHW.js → layers.vomzBr7w.js} +1 -1
- package/dist/{layers.BkXEjwFz.js → layers.xbdb26bz.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
|
@@ -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.6", 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
|
}
|
|
@@ -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
|
""
|
|
@@ -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.DqhjH09U.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 ? {
|
|
@@ -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.Br6bn7So.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.B8uKn2Dw.js"));
|
|
23698
23698
|
function P9(n) {
|
|
23699
23699
|
if (n instanceof HTMLImageElement) {
|
|
23700
23700
|
const { alt: e, src: t, width: r, height: i } = n;
|
|
@@ -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.DJQYObhk.js").then(
|
|
30700
30700
|
({ INSERT_EXCALIDRAW_COMMAND: l }) => {
|
|
30701
30701
|
En(
|
|
30702
30702
|
n,
|
|
@@ -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]", St = "[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[St] = !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[St] = !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);
|
|
@@ -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);
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -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
|
});
|
|
@@ -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,
|
|
@@ -37000,7 +37000,7 @@ function S7({
|
|
|
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"
|
|
@@ -37015,7 +37015,7 @@ function S7({
|
|
|
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
|
|
@@ -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,11 +39065,11 @@ 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: St, elements: Bt } =
|
|
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: St, 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];
|
|
@@ -39086,10 +39086,10 @@ function Y7() {
|
|
|
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
|
}));
|
|
@@ -39853,7 +39853,7 @@ 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 } = wt(), tt = Be(() => {
|
|
39857
39857
|
const je = H();
|
|
39858
39858
|
if (K(je)) {
|
|
39859
39859
|
const ut = je.anchor.getNode(), St = je.focus.getNode(), Bt = bn(ut) ? null : ut.getTopLevelElementOrThrow(), Dt = bn(St) ? null : St.getTopLevelElementOrThrow();
|
|
@@ -39992,7 +39992,7 @@ function nv({
|
|
|
39992
39992
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40006,7 +40006,7 @@ function nv({
|
|
|
40006
40006
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40042,7 +40042,7 @@ function nv({
|
|
|
40042
40042
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40055,7 +40055,7 @@ function nv({
|
|
|
40055
40055
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40068,7 +40068,7 @@ function nv({
|
|
|
40068
40068
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40081,7 +40081,7 @@ function nv({
|
|
|
40081
40081
|
/* @__PURE__ */ b(Ct, { 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(
|
|
@@ -40096,7 +40096,7 @@ function nv({
|
|
|
40096
40096
|
/* @__PURE__ */ b(Ct, { 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
|
},
|
|
@@ -40109,7 +40109,7 @@ function nv({
|
|
|
40109
40109
|
/* @__PURE__ */ b(Ct, { 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(Ct, { disabled: !
|
|
40120
|
+
/* @__PURE__ */ b(Ct, { disabled: !ne, label: ze("editor.toolbar.link"), children: /* @__PURE__ */ b(
|
|
40121
40121
|
"button",
|
|
40122
40122
|
{
|
|
40123
40123
|
onClick: Gt,
|
|
@@ -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.DJQYObhk.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
|
}
|
|
@@ -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.DJQYObhk.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.DJQYObhk.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.DJQYObhk.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
|
),
|