@layers-app/editor 2.2.15 → 2.2.16
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.DahXv94g.js → layers.0N5qGaoH.js} +1 -1
- package/dist/{layers.C_SFHMhT.js → layers.157-JPzA.js} +1 -1
- package/dist/{layers.L4WvtETF.js → layers.2gy896lT.js} +1 -1
- package/dist/{layers.DRgdytYB.js → layers.3Fgb3Vo2.js} +1 -1
- package/dist/{layers.CeECeaph.js → layers.3QgcC3PV.js} +1 -1
- package/dist/{layers.Dd0lsrdV.js → layers.4tKX8-5p.js} +1 -1
- package/dist/{layers.BAnVQdk1.js → layers.4znFVpfo.js} +1 -1
- package/dist/{layers.kWxuwjOK.js → layers.6-vqJIFs.js} +1 -1
- package/dist/{layers.DojVzqkZ.js → layers.6FcTody4.js} +1 -1
- package/dist/{layers.vb_gQYIH.js → layers.6MasW-Sw.js} +1 -1
- package/dist/{layers.COxPGTLD.js → layers.7cx0C4_N.js} +1 -1
- package/dist/{layers.DXvg_s1v.js → layers.B-bKwbp6.js} +2 -2
- package/dist/{layers.DzoQaN17.js → layers.B0DjV7nH.js} +1 -1
- package/dist/{layers.CKAyIKKo.js → layers.B0HQZQGZ.js} +4 -4
- package/dist/{layers.DSRIeWLB.js → layers.B1Ag0xIn.js} +2 -2
- package/dist/{layers.CfKMVgM-.js → layers.B3aocsTs.js} +1 -1
- package/dist/{layers.DvpS1jTV.js → layers.B6IiLtWG.js} +1 -1
- package/dist/{layers.CDn9MY7X.js → layers.B7KRIPib.js} +1 -1
- package/dist/{layers.CsU4fOrm.js → layers.BAEzDt4D.js} +1 -1
- package/dist/{layers.DPPblCob.js → layers.BBiT-nPD.js} +1 -1
- package/dist/{layers.BIj91s8M.js → layers.BC9K2qyP.js} +1 -1
- package/dist/{layers.Bnv-DwU7.js → layers.BCLK3J5J.js} +1 -1
- package/dist/{layers.BcvdQvm3.js → layers.BF7QG9n2.js} +1 -1
- package/dist/{layers.Djlfabv1.js → layers.BIUx6lq8.js} +1 -1
- package/dist/{layers.BJWwtj05.js → layers.BJqDTWLp.js} +1 -1
- package/dist/{layers.Bb_M2Nbv.js → layers.BOHXD8o_.js} +1 -1
- package/dist/{layers.t7ujVwoH.js → layers.BP0I09Gc.js} +1 -1
- package/dist/{layers.DCzDkApU.js → layers.BPUrT9s3.js} +1 -1
- package/dist/{layers.C3qcp6Wn.js → layers.BPfnB1ss.js} +1 -1
- package/dist/{layers.DJ-N7-bn.js → layers.BQ2-_FCB.js} +1 -1
- package/dist/{layers.Dx5ZkjwQ.js → layers.BQM8yb9G.js} +7 -7
- package/dist/{layers.BCNyGz0l.js → layers.BSK0MpfG.js} +1 -1
- package/dist/{layers.D8vYNGoN.js → layers.BT8wtfEv.js} +1 -1
- package/dist/{layers.EVh_QlEr.js → layers.BTI1eVA_.js} +1 -1
- package/dist/{layers.C3rq_vys.js → layers.BVJ22omw.js} +3 -3
- package/dist/{layers.C_jT8dXa.js → layers.BW6xs31v.js} +2 -2
- package/dist/{layers.DuoVv8Hb.js → layers.BX17Je2C.js} +1 -1
- package/dist/{layers.tW6VrAWA.js → layers.BY1b9Vv1.js} +1 -1
- package/dist/{layers.BkU4AN7i.js → layers.BYSrU1VM.js} +3 -3
- package/dist/{layers.vWwZFH4t.js → layers.BYiCbLGC.js} +1 -1
- package/dist/{layers.BG8piiP6.js → layers.BZVkaHHv.js} +1 -1
- package/dist/{layers.Bl2V5RPb.js → layers.BbGK2VtD.js} +1 -1
- package/dist/{layers.B84tjXVU.js → layers.BbSJiTro.js} +2 -2
- package/dist/{layers.BMJo3GSy.js → layers.BcAbvl4Y.js} +1 -1
- package/dist/{layers.DogbT2sQ.js → layers.BffudDfr.js} +25 -25
- package/dist/{layers.Dqt3rDkE.js → layers.BfqEf9yA.js} +1 -1
- package/dist/{layers.Bwj0Wit4.js → layers.BiTKO2d1.js} +1 -1
- package/dist/layers.BmfpcToL.js +8 -0
- package/dist/{layers.uOU_7yMT.js → layers.BoBUJBs_.js} +1 -1
- package/dist/{layers.D0wALH_j.js → layers.BoO5XktP.js} +6 -6
- package/dist/{layers.Cx98JrJO.js → layers.Bp0oiaF9.js} +3 -3
- package/dist/{layers.BY3IsWRw.js → layers.BpgUZ384.js} +1 -1
- package/dist/{layers.BzWIxNJr.js → layers.Br7OuCZy.js} +1 -1
- package/dist/{layers.CCBzixpF.js → layers.BtIwGTwi.js} +1 -1
- package/dist/{layers.DtY8IMm6.js → layers.Bv3Rq0WZ.js} +4 -4
- package/dist/{layers.YwwtbZte.js → layers.Bwwfm1KF.js} +1 -1
- package/dist/{layers.99mMYy9h.js → layers.Bx3sPS6k.js} +1 -1
- package/dist/{layers.D-eTHfbm.js → layers.BxSW29st.js} +1 -1
- package/dist/{layers.DxebjRcD.js → layers.BxZQolv_.js} +1 -1
- package/dist/{layers.B-ZHB-Bf.js → layers.Bx_LjX61.js} +1 -1
- package/dist/{layers.DmDnRpAI.js → layers.Byvqt2xK.js} +5 -5
- package/dist/{layers.tXvGbLLo.js → layers.C-uq4DLo.js} +1 -1
- package/dist/{layers.D2KeSCbY.js → layers.C0De9pu1.js} +3 -3
- package/dist/{layers.C6VrKY5E.js → layers.C2oxJ2l5.js} +1 -1
- package/dist/{layers.CgQFiexq.js → layers.C3coH_jO.js} +1 -1
- package/dist/{layers.CpUDnDrR.js → layers.C5iO--QV.js} +1 -1
- package/dist/{layers.CNn4A7Qc.js → layers.C5ogoWmE.js} +1 -1
- package/dist/{layers.Ce5eSQF4.js → layers.C6xKuq9T.js} +1 -1
- package/dist/{layers.B_dzMPUL.js → layers.C8Z8jAfP.js} +1 -1
- package/dist/{layers.csfFUyHr.js → layers.C8h_nbEZ.js} +1 -1
- package/dist/{layers.8ejk3zko.js → layers.C9_IMtV6.js} +1 -1
- package/dist/{layers.DwxPC1iD.js → layers.CBDxdqfE.js} +1 -1
- package/dist/{layers.Ar7Q0cYd.js → layers.CCd-d7W-.js} +1 -1
- package/dist/{layers.CD4AbnH-.js → layers.CDDACW3s.js} +1 -1
- package/dist/{layers.mRJBkk-f.js → layers.CE3tW3CX.js} +1 -1
- package/dist/{layers.DyqCj3dP.js → layers.CEogz7kf.js} +1 -1
- package/dist/{layers.BX6tu0oo.js → layers.CFZQ6zXU.js} +1 -1
- package/dist/{layers.E9Ext2HT.js → layers.CGs3cHTA.js} +1 -1
- package/dist/{layers.DzzMhx-l.js → layers.CHsHpfQp.js} +1 -1
- package/dist/{layers.CictkUCB.js → layers.CKfgP-eK.js} +1 -1
- package/dist/{layers.CHoAc92V.js → layers.CLFZYZiY.js} +1 -1
- package/dist/{layers.DG4jbcpC.js → layers.CNun5aSU.js} +3 -3
- package/dist/{layers.BshZZhOJ.js → layers.COV2QRuC.js} +1 -1
- package/dist/{layers.Dem8CmFn.js → layers.CVl5ux-q.js} +1 -1
- package/dist/{layers.DxfoL-9U.js → layers.CX92CuCA.js} +1 -1
- package/dist/{layers.DX2AoDzH.js → layers.CXnfykPn.js} +1 -1
- package/dist/{layers.BvrO7BNd.js → layers.CY1NKTP7.js} +1 -1
- package/dist/{layers.D4OJAduR.js → layers.C_f_VDOp.js} +1 -1
- package/dist/{layers.DD5IFB9e.js → layers.Ca4YZ7KB.js} +1 -1
- package/dist/{layers.n48qAHkM.js → layers.CbgMrQA6.js} +1 -1
- package/dist/{layers.okxozVhc.js → layers.CeKfGYOp.js} +251 -288
- package/dist/{layers.B1ttfAmQ.js → layers.Ciec59mw.js} +1 -1
- package/dist/{layers.C_Z_okpN.js → layers.CjNyxbAx.js} +1 -1
- package/dist/{layers.BA4MRIZH.js → layers.CkR5O-KD.js} +1 -1
- package/dist/{layers.UEwHT_by.js → layers.Clca7TT2.js} +1 -1
- package/dist/{layers.B7nCMFj7.js → layers.CnMipjrw.js} +1 -1
- package/dist/{layers.B201Heem.js → layers.Cnqs5YEy.js} +8 -8
- package/dist/{layers.CNC59Jpm.js → layers.CocbGMUt.js} +3 -3
- package/dist/{layers.Bya3AhdH.js → layers.Cu1zsGM8.js} +1 -1
- package/dist/{layers.Dq4Gy1Jy.js → layers.CvN7Xatf.js} +4 -4
- package/dist/{layers.BuwM8ZGL.js → layers.CvlDnpDS.js} +1 -1
- package/dist/{layers.keZq9JiN.js → layers.CyEGb50c.js} +1 -1
- package/dist/{layers.zcYhb5k2.js → layers.CyHo_WGk.js} +1 -1
- package/dist/{layers.Dup2XYYb.js → layers.CyVzNKI5.js} +1 -1
- package/dist/{layers.CS130O1F.js → layers.CyYm-tOB.js} +1 -1
- package/dist/{layers.YTHG2Apb.js → layers.CzXzQGz1.js} +1 -1
- package/dist/{layers.7uu_dFK8.js → layers.D-966Vme.js} +1 -1
- package/dist/{layers.BFbf-x8T.js → layers.D-SWGQCS.js} +1 -1
- package/dist/{layers.CvLYOfw_.js → layers.D-_R_FCZ.js} +4 -4
- package/dist/{layers.C-PXroz8.js → layers.D08WBCM_.js} +1 -1
- package/dist/{layers.BbpclPxe.js → layers.D37dN0Ig.js} +1 -1
- package/dist/{layers.Cdmrn8XG.js → layers.D4Li_yGu.js} +1 -1
- package/dist/{layers.D6I-6B30.js → layers.D5Oj_Khr.js} +1 -1
- package/dist/{layers.ooRrvrxo.js → layers.D7PVy01c.js} +1 -1
- package/dist/{layers.B1u_VVGI.js → layers.D8O3PmFS.js} +1 -1
- package/dist/{layers.Ceehh2Xx.js → layers.D8uiYOUw.js} +1 -1
- package/dist/layers.D9rEn5oi.js +1 -0
- package/dist/{layers.B8yR20Ny.js → layers.DAba6Obf.js} +1 -1
- package/dist/{layers.D5BE_Leu.js → layers.DBtZyNqB.js} +1 -1
- package/dist/{layers.BkZXbAoU.js → layers.DCogHsuz.js} +1 -1
- package/dist/{layers.BW6AHSw2.js → layers.DJNXjTjV.js} +1 -1
- package/dist/{layers.DLGtdjDD.js → layers.DJPp_sHd.js} +5 -5
- package/dist/{layers.Bgwp65S3.js → layers.DKU-4aBv.js} +1 -1
- package/dist/{layers.Cmr8HLVr.js → layers.DLwynwDg.js} +1 -1
- package/dist/{layers.CDqsvGnF.js → layers.DMr4edyg.js} +1 -1
- package/dist/{layers.CIsgSUWR.js → layers.DPErPSW-.js} +1 -1
- package/dist/{layers.CobjMun3.js → layers.DQ70OuBt.js} +1 -1
- package/dist/{layers.BFhLzOn_.js → layers.DQCUivU9.js} +1 -1
- package/dist/{layers.pGd6B9C1.js → layers.DQJeUNfP.js} +1 -1
- package/dist/{layers.DDHLiCry.js → layers.DQVgxz93.js} +1 -1
- package/dist/{layers.qM1P_DCD.js → layers.DQZrFk4F.js} +1 -1
- package/dist/{layers.DhnzUunp.js → layers.DR8BfgCA.js} +3 -3
- package/dist/{layers.D1ePyfGa.js → layers.DRG5vcL5.js} +3 -3
- package/dist/{layers.DREQfPKh.js → layers.DSZH8L6A.js} +3 -3
- package/dist/{layers.DN7tC8ON.js → layers.DUHXzf5G.js} +1 -1
- package/dist/{layers.Bjw19aIq.js → layers.DV91xp83.js} +1 -1
- package/dist/{layers.CA42dtGg.js → layers.DVr_xmt0.js} +1 -1
- package/dist/{layers.COiVJ7CK.js → layers.DWmPrYDS.js} +1 -1
- package/dist/{layers.D1O76qtk.js → layers.DYphOpq9.js} +1 -1
- package/dist/{layers.uj5aO3Td.js → layers.DabtD55G.js} +1 -1
- package/dist/{layers.BOihU4M6.js → layers.DbAe942p.js} +1 -1
- package/dist/{layers.DNw00Zzf.js → layers.DbdtrrbD.js} +1 -1
- package/dist/{layers.CfB7Kr3T.js → layers.DergqL1A.js} +1 -1
- package/dist/{layers.BH3EDz8J.js → layers.DgAJ8tsL.js} +3 -3
- package/dist/{layers.BmyIaJ5e.js → layers.DieI42DN.js} +1 -1
- package/dist/{layers.BX3ZJedn.js → layers.Dj9MUfoO.js} +1 -1
- package/dist/{layers.D20j9Tr7.js → layers.DlcEylrX.js} +1 -1
- package/dist/{layers.BibJBLE-.js → layers.DlnqeLUt.js} +1 -1
- package/dist/{layers.B68H9kJg.js → layers.Dlq0811t.js} +4 -4
- package/dist/{layers.CstcQOU_.js → layers.DshhUaqV.js} +1 -1
- package/dist/{layers.CUjdx5fM.js → layers.DuihHmzT.js} +1 -1
- package/dist/{layers.CsCWLgyS.js → layers.Duxl6j8i.js} +1 -1
- package/dist/{layers.BFbhYv5x.js → layers.DwdSmj_F.js} +4 -4
- package/dist/{layers.BWV-E96S.js → layers.DzP63nJ0.js} +1 -1
- package/dist/{layers.CR021P7R.js → layers.Dzfhpdlj.js} +1 -1
- package/dist/{layers.C13ay-Pf.js → layers.EFboDGp7.js} +1 -1
- package/dist/{layers.BiU1U41q.js → layers.EIxRP1Ry.js} +4 -4
- package/dist/{layers.B1-tmGD1.js → layers.Esmnh4ux.js} +2 -2
- package/dist/{layers.C0Wp9yqj.js → layers.F6v2L0le.js} +1 -1
- package/dist/{layers.DSq8O3u2.js → layers.IKZRqve8.js} +1 -1
- package/dist/{layers.BNCnk6zD.js → layers.JLK5PNyz.js} +1 -1
- package/dist/{layers.qpCEVrfr.js → layers.LNkI3Kp2.js} +1 -1
- package/dist/{layers.CHOzGR1D.js → layers.Lwkn3Snz.js} +1 -1
- package/dist/{layers.OsyM3TFW.js → layers.LzSsHXqa.js} +1 -1
- package/dist/layers.O4jqny_H.js +1 -0
- package/dist/{layers.DXHAdC9s.js → layers.O6ECywWl.js} +1 -1
- package/dist/{layers.DOwKRBS2.js → layers.QT7-BEOU.js} +1 -1
- package/dist/{layers.CzxrVQZJ.js → layers.RaYLtXBw.js} +1 -1
- package/dist/{layers.DqN5SjrO.js → layers.TJgYZKRG.js} +1 -1
- package/dist/{layers.CT7e3_cA.js → layers.U0mfOOe6.js} +4 -4
- package/dist/{layers.DgqdIjwz.js → layers.WTlC6kbs.js} +4 -4
- package/dist/layers.WaA78wIl.js +6 -0
- package/dist/{layers.BJGAXglq.js → layers.Xgjin0i6.js} +1 -1
- package/dist/{layers.C9f6j1GG.js → layers.XhR4GoN5.js} +4 -4
- package/dist/{layers.CO77WNOM.js → layers.XiEq3JZE.js} +1 -1
- package/dist/{layers.CyS50vo4.js → layers.XxRoBn3w.js} +1 -1
- package/dist/{layers.CCoKYQm7.js → layers.YTNd4CLC.js} +1 -1
- package/dist/{layers.D4k2d_PJ.js → layers.ax_5jBLF.js} +1 -1
- package/dist/{layers.CTjQ04Jm.js → layers.b08Fjb8j.js} +1 -1
- package/dist/{layers.CTdGoti9.js → layers.ffFZ4SbI.js} +4 -4
- package/dist/{layers.kf-8G-tf.js → layers.fx8wlLpG.js} +1 -1
- package/dist/{layers.BK9BVRVU.js → layers.g4uTT6hb.js} +1 -1
- package/dist/{layers.BtzLvQvV.js → layers.hNOezmhf.js} +1 -1
- package/dist/{layers.BxjT9u_f.js → layers.hRgjTbpL.js} +1 -1
- package/dist/{layers.B3KTakx3.js → layers.i6sC9UOr.js} +1 -1
- package/dist/{layers.C5urIO9L.js → layers.kDi-laZd.js} +1 -1
- package/dist/{layers.D0XSoxIh.js → layers.kqa61TFJ.js} +1 -1
- package/dist/{layers.BTcECCp9.js → layers.nTTjo1mD.js} +1 -1
- package/dist/{layers.CNe39u8B.js → layers.ovafEwZ5.js} +1 -1
- package/dist/{layers.DY4aTRUl.js → layers.p_RouZdT.js} +1 -1
- package/dist/{layers.ER4cNuf6.js → layers.q9Bp7jUz.js} +1 -1
- package/dist/{layers.vVoBYMgB.js → layers.qDPqrl9F.js} +1 -1
- package/dist/{layers.Dv-uQR89.js → layers.qIxgoAiM.js} +1 -1
- package/dist/{layers.CtV3MNt1.js → layers.qR95D5PG.js} +1 -1
- package/dist/{layers.DWKxQNZq.js → layers.s0mmoI53.js} +1 -1
- package/dist/{layers.Sq01ui8C.js → layers.tdMS433D.js} +1 -1
- package/dist/{layers.CGfHVR_8.js → layers.tqYW32Gm.js} +1 -1
- package/dist/{layers.DyQhad7c.js → layers.uACb6b2u.js} +3 -3
- package/dist/{layers.1HBRKOCr.js → layers.unr0_LZl.js} +2 -2
- package/dist/{layers.BgxuL32K.js → layers.vl9jKNi7.js} +1 -1
- package/package.json +1 -1
- package/dist/layers.B6KeIG9u.js +0 -1
- package/dist/layers.D3qu_MDj.js +0 -6
- package/dist/layers.DPlUixeN.js +0 -1
- package/dist/layers.uOxzTLi8.js +0 -8
|
@@ -4,9 +4,9 @@ var Be = (e, t, n) => gM(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import "@mantine/dropzone";
|
|
5
5
|
import { CLICK_COMMAND as l0, COMMAND_PRIORITY_NORMAL as Di, $getNodeByKey as Fe, $createParagraphNode as ct, $getNearestNodeFromDOMNode as wt, DecoratorNode as wl, $getSelection as be, $isRangeSelection as Le, $getRoot as Yt, $applyNodeReplacement as bi, TextNode as sc, ElementNode as Yr, $isTextNode as Cn, $isTabNode as l9, $createTabNode as bM, $createLineBreakNode as r6, $isParagraphNode as Gn, $setSelection as Tn, $copyNode as o6, $isElementNode as pt, $createRangeSelection as bc, createCommand as hn, $isNodeSelection as Ic, COMMAND_PRIORITY_LOW as Rt, createEditor as vM, HISTORY_MERGE_TAG as c9, UNDO_COMMAND as rh, REDO_COMMAND as vc, $isRootOrShadowRoot as Ou, $isLeafNode as u9, $createTextNode as Sr, INSERT_PARAGRAPH_COMMAND as c0, $isDecoratorNode as hl, $createNodeSelection as d9, createState as AM, $getState as Is, $setState as Fg, SELECTION_CHANGE_COMMAND as ks, $isLineBreakNode as Wg, TEXT_TYPE_TO_FORMAT as h9, $normalizeSelection__EXPERIMENTAL as yM, isCurrentlyReadOnlyMode as CM, $createPoint as i6, $getEditor as f9, KEY_ARROW_DOWN_COMMAND as oh, COMMAND_PRIORITY_HIGH as eo, KEY_ARROW_UP_COMMAND as ih, KEY_ARROW_LEFT_COMMAND as Hg, KEY_ARROW_RIGHT_COMMAND as Kg, DELETE_WORD_COMMAND as wM, DELETE_LINE_COMMAND as s6, DELETE_CHARACTER_COMMAND as Ug, COMMAND_PRIORITY_CRITICAL as Cr, KEY_BACKSPACE_COMMAND as sh, KEY_DELETE_COMMAND as jg, CUT_COMMAND as Yg, FORMAT_TEXT_COMMAND as tr, FORMAT_ELEMENT_COMMAND as il, CONTROLLED_TEXT_INSERTION_COMMAND as m9, KEY_TAB_COMMAND as p9, FOCUS_COMMAND as u0, SELECTION_INSERT_CLIPBOARD_NODES_COMMAND as kM, $getPreviousSelection as xM, $createRangeSelectionFromDom as SM, setDOMUnmanaged as TM, ParagraphNode as g9, KEY_DOWN_COMMAND as Ws, COPY_COMMAND as ah, INDENT_CONTENT_COMMAND as lh, COMMAND_PRIORITY_EDITOR as wo, RootNode as EM, isModifierMatch as zn, OUTDENT_CONTENT_COMMAND as Zg, $insertNodes as ch, $parseSerializedNode as xs, PASTE_COMMAND as kl, getNearestEditorFromDOMNode as b9, INSERT_LINE_BREAK_COMMAND as LM, $isRootNode as rc, CLEAR_HISTORY_COMMAND as MM, HISTORIC_TAG as IM, COLLABORATION_TAG as NM, CLEAR_EDITOR_COMMAND as RM, KEY_SPACE_COMMAND as DM, $selectAll as BM, KEY_ESCAPE_COMMAND as v9, CAN_UNDO_COMMAND as OM, CAN_REDO_COMMAND as PM, KEY_MODIFIER_COMMAND as zM, BLUR_COMMAND as A9, KEY_ENTER_COMMAND as _M, DROP_COMMAND as FM, DRAGOVER_COMMAND as WM, $nodesOfType as HM } from "lexical";
|
|
6
6
|
import { jsx as h, jsxs as Z, Fragment as tt } from "react/jsx-runtime";
|
|
7
|
-
import * as
|
|
7
|
+
import * as Et from "react";
|
|
8
8
|
import Pu, { forwardRef as d0, createElement as fp, useState as re, useMemo as ft, useRef as Ne, useEffect as oe, useCallback as Ce, lazy as Gg, Suspense as qg, useContext as Pt, useLayoutEffect as xl, createContext as Nc, memo as KM, PureComponent as UM } from "react";
|
|
9
|
-
import { Tooltip as ir, Flex as Rr, ActionIcon as In, Menu as ye, Drawer as jM, Box as
|
|
9
|
+
import { Tooltip as ir, Flex as Rr, ActionIcon as In, Menu as ye, Drawer as jM, Box as St, Text as Qe, Button as bt, Group as At, useCombobox as YM, Combobox as Ga, InputBase as h0, Paper as zu, Stack as Qt, Progress as y9, TextInput as _u, UnstyledButton as to, Loader as C9, Image as ca, Popover as Ss, Modal as Vg, Textarea as a6, ScrollArea as ZM, Switch as Au, Transition as tl, alpha as GM, Table as ei, Checkbox as Ki, Divider as w9, List as Bn, Title as qM, Portal as uh, Input as Xg, Anchor as VM, CopyButton as XM, useMantineColorScheme as QM, Skeleton as dm, Avatar as JM, LoadingOverlay as $M } from "@mantine/core";
|
|
10
10
|
import { useTranslation as yt, initReactI18next as eI, I18nextProvider as tI } from "react-i18next";
|
|
11
11
|
import { LexicalCollaboration as nI } from "@lexical/react/LexicalCollaborationContext";
|
|
12
12
|
import { CollaborationPlugin as rI } from "@lexical/react/LexicalCollaborationPlugin";
|
|
@@ -446,7 +446,7 @@ const Oa = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
446
446
|
navigator.platform ?? navigator.userAgent ?? ""
|
|
447
447
|
), Ur = Oa && /Mac|iPod|iPhone|iPad/i.test(GR);
|
|
448
448
|
Oa && "InputEvent" in window && !ZR && "getTargetRanges" in new window.InputEvent("input");
|
|
449
|
-
const uu = Oa && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), qR = 768,
|
|
449
|
+
const uu = Oa && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), qR = 768, Lt = Oa && navigator.maxTouchPoints > 0 && window.innerWidth <= qR, f0 = Oa && window.matchMedia("(hover: hover)").matches, pa = Oa && !f0 && !Lt, VR = "1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4))", Nr = d0(function({ label: t, icon: n, iconColor: r, tooltipDisabled: o, flexBorder: i, className: s, ...l }, c) {
|
|
450
450
|
const d = ["action-icon", s].filter(Boolean).join(" ");
|
|
451
451
|
return /* @__PURE__ */ h(ir, { label: t, disabled: o || !f0, children: /* @__PURE__ */ h(
|
|
452
452
|
Rr,
|
|
@@ -519,19 +519,19 @@ const uu = Oa && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), qR = 768,
|
|
|
519
519
|
...o,
|
|
520
520
|
children: [
|
|
521
521
|
/* @__PURE__ */ h(
|
|
522
|
-
|
|
522
|
+
St,
|
|
523
523
|
{
|
|
524
524
|
ref: s,
|
|
525
525
|
className: "mobile-drawer__handle-rail",
|
|
526
526
|
onTouchStart: d,
|
|
527
527
|
onTouchMove: f,
|
|
528
528
|
onTouchEnd: m,
|
|
529
|
-
children: /* @__PURE__ */ h(
|
|
529
|
+
children: /* @__PURE__ */ h(St, { className: "mobile-drawer__handle" })
|
|
530
530
|
}
|
|
531
531
|
),
|
|
532
|
-
/* @__PURE__ */ Z(
|
|
532
|
+
/* @__PURE__ */ Z(St, { className: "mobile-drawer__body", children: [
|
|
533
533
|
e ? /* @__PURE__ */ h(Qe, { component: "p", className: "mobile-drawer__title", children: e }) : null,
|
|
534
|
-
/* @__PURE__ */ h(
|
|
534
|
+
/* @__PURE__ */ h(St, { className: "mobile-drawer__main", children: t })
|
|
535
535
|
] })
|
|
536
536
|
]
|
|
537
537
|
}
|
|
@@ -998,7 +998,7 @@ function q9({
|
|
|
998
998
|
}) {
|
|
999
999
|
return e == null ? /* @__PURE__ */ h(zu, { p: "xl", withBorder: !0, radius: "md", children: /* @__PURE__ */ h(Qt, { align: "center", children: /* @__PURE__ */ h(A6, { isPaused: o }) }) }) : /* @__PURE__ */ h(zu, { p: "xl", withBorder: !0, radius: "md", children: /* @__PURE__ */ Z(Qt, { gap: "lg", align: "center", children: [
|
|
1000
1000
|
/* @__PURE__ */ h(A6, { isPaused: o }),
|
|
1001
|
-
/* @__PURE__ */ h(
|
|
1001
|
+
/* @__PURE__ */ h(St, { w: "100%", children: /* @__PURE__ */ h(
|
|
1002
1002
|
sD,
|
|
1003
1003
|
{
|
|
1004
1004
|
progress: e,
|
|
@@ -1600,10 +1600,10 @@ const yD = ({
|
|
|
1600
1600
|
const qt = (Oe = Y.current) == null ? void 0 : Oe.getBoundingClientRect();
|
|
1601
1601
|
if (!wn.getBoundingClientRect() || !qt) return;
|
|
1602
1602
|
if ($.preventDefault(), $.stopPropagation(), !Q.current) {
|
|
1603
|
-
const
|
|
1603
|
+
const Tt = (Kt) => {
|
|
1604
1604
|
G.current.isResizing && (Kt.preventDefault(), Kt.stopPropagation());
|
|
1605
1605
|
};
|
|
1606
|
-
Q.current =
|
|
1606
|
+
Q.current = Tt, document.addEventListener("mousedown", Tt, !0), document.addEventListener("pointerdown", Tt, !0), document.addEventListener("click", Tt, !0);
|
|
1607
1607
|
}
|
|
1608
1608
|
const { width: Nn, height: gr, top: Wn, left: Lr } = qt, br = $.clientX - Lr, Hn = $.clientY - Wn, Xr = le ? ln.startsWith("n") : Hn <= xd, Vn = le ? ln.startsWith("s") : Hn >= gr - xd, _i = le ? ln.includes("w-") : br <= xd, Ko = le ? ln.includes("e-") : br >= Nn - xd, cn = G.current, Ve = window.getComputedStyle(vt), Ht = parseFloat(Ve.paddingTop), kn = parseFloat(Ve.paddingBottom), Se = parseFloat(Ve.paddingLeft), Pe = parseFloat(Ve.paddingRight);
|
|
1609
1609
|
cn.rootHeight = ut.height - Ht - kn || 0, cn.rootWidth = ut.width - Se - Pe || 0, cn.ratio = Nn / gr, cn.currentWidth = cn.currentWidth || Nn, cn.currentWidthPercent = +Y.current.style.width.replace(
|
|
@@ -1613,10 +1613,10 @@ const yD = ({
|
|
|
1613
1613
|
const ze = ((Ge = Y.current.parentElement) == null ? void 0 : Ge.offsetWidth) ?? cn.rootWidth, { maxWidthPercent: Mt, minResizePercent: st } = AD(ze);
|
|
1614
1614
|
document.addEventListener(
|
|
1615
1615
|
"pointermove",
|
|
1616
|
-
(
|
|
1616
|
+
(Tt) => {
|
|
1617
1617
|
var Kt, gt;
|
|
1618
1618
|
return fe(
|
|
1619
|
-
|
|
1619
|
+
Tt,
|
|
1620
1620
|
m === "video" ? 40 : st,
|
|
1621
1621
|
Mt,
|
|
1622
1622
|
(gt = (Kt = Y.current) == null ? void 0 : Kt.parentElement) == null ? void 0 : gt.offsetWidth
|
|
@@ -2641,9 +2641,9 @@ class Av extends pv {
|
|
|
2641
2641
|
this.shouldConnect = !0, !this.wsconnected && this.ws === null && (vv(this), this.connectBc());
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
|
-
const SB = "2.2.
|
|
2644
|
+
const SB = "2.2.16", TB = {
|
|
2645
2645
|
version: SB
|
|
2646
|
-
}, I6 = Gg(() => import("./layers.
|
|
2646
|
+
}, I6 = Gg(() => import("./layers.WTlC6kbs.js"));
|
|
2647
2647
|
function EB(e) {
|
|
2648
2648
|
const t = e.getAttribute("data-lexical-excalidraw-json"), n = e.firstChild.style.height || "0", r = e.firstChild.style.width || "0", o = e.style.justifyContent || "left", i = n === "inherit" ? "inherit" : parseInt(n, 10), s = r === "inherit" ? "inherit" : parseInt(r, 10);
|
|
2649
2649
|
return t ? {
|
|
@@ -3016,7 +3016,7 @@ const R6 = {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
};
|
|
3018
3018
|
return e === "comment" && t.text && (delete t.text.strikethrough, delete t.text.underlineStrikethrough), t;
|
|
3019
|
-
}, BB =
|
|
3019
|
+
}, BB = Et.lazy(() => Promise.resolve().then(() => Ej));
|
|
3020
3020
|
function D6(e) {
|
|
3021
3021
|
const t = e.getAttribute("data-lexical-equation"), n = e.getAttribute("data-lexical-inline") === "true", r = e.getAttribute("data-lexical-equation-preview"), o = e.getAttribute("data-lexical-equation-color") || void 0, i = e.getAttribute("data-lexical-equation-bg") || void 0;
|
|
3022
3022
|
let s = "";
|
|
@@ -3776,7 +3776,7 @@ function EO({ editor: e, headerKey: t }) {
|
|
|
3776
3776
|
}, U = () => {
|
|
3777
3777
|
s(), P();
|
|
3778
3778
|
};
|
|
3779
|
-
return
|
|
3779
|
+
return Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
3780
3780
|
/* @__PURE__ */ Z(
|
|
3781
3781
|
At,
|
|
3782
3782
|
{
|
|
@@ -3788,7 +3788,7 @@ function EO({ editor: e, headerKey: t }) {
|
|
|
3788
3788
|
flex: 1,
|
|
3789
3789
|
miw: 0,
|
|
3790
3790
|
children: [
|
|
3791
|
-
/* @__PURE__ */ h(
|
|
3791
|
+
/* @__PURE__ */ h(St, { className: "code-block-header-mobile__select-host", children: /* @__PURE__ */ h(
|
|
3792
3792
|
h0,
|
|
3793
3793
|
{
|
|
3794
3794
|
component: "button",
|
|
@@ -4373,7 +4373,7 @@ function PO({ editor: e, headerKey: t }) {
|
|
|
4373
4373
|
}, [s]), A = Ce(() => {
|
|
4374
4374
|
s(), m();
|
|
4375
4375
|
}, [s, m]);
|
|
4376
|
-
return r && !d ? null :
|
|
4376
|
+
return r && !d ? null : Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
4377
4377
|
/* @__PURE__ */ h(Qe, { size: "sm", fw: 500, ml: 10, children: n("editor.menu.other.equation.overlayTitle") }),
|
|
4378
4378
|
(!r || d) && /* @__PURE__ */ h(
|
|
4379
4379
|
Nr,
|
|
@@ -4754,7 +4754,7 @@ function KO({
|
|
|
4754
4754
|
xe = !0;
|
|
4755
4755
|
};
|
|
4756
4756
|
}, [e, H]);
|
|
4757
|
-
const ee = Q === !0, q = !i || ee, he =
|
|
4757
|
+
const ee = Q === !0, q = !i || ee, he = Lt && !i ? 1 : (ee ? 1 : 0) + (ee && (P || Y) ? 1 : 0) + (i ? 0 : 1), ge = ft(() => {
|
|
4758
4758
|
var _e, We;
|
|
4759
4759
|
const xe = (We = (_e = N.split("/").pop()) == null ? void 0 : _e.split("?")[0]) == null ? void 0 : We.trim();
|
|
4760
4760
|
return xe && xe.length > 0 ? xe : "file";
|
|
@@ -4818,7 +4818,7 @@ function KO({
|
|
|
4818
4818
|
[e, o]
|
|
4819
4819
|
);
|
|
4820
4820
|
if (!e || e === "upload")
|
|
4821
|
-
return /* @__PURE__ */ h(
|
|
4821
|
+
return /* @__PURE__ */ h(St, { "data-editor-file-picker-drop-root": !0, w: "100%", children: k ? /* @__PURE__ */ h(
|
|
4822
4822
|
q9,
|
|
4823
4823
|
{
|
|
4824
4824
|
progress: C,
|
|
@@ -4857,7 +4857,7 @@ function KO({
|
|
|
4857
4857
|
Rr,
|
|
4858
4858
|
{
|
|
4859
4859
|
ref: g,
|
|
4860
|
-
className: q ? `editor-file-attached editor-file-attached--has-actions${
|
|
4860
|
+
className: q ? `editor-file-attached editor-file-attached--has-actions${Lt ? " editor-file-attached--touch" : ""}` : "editor-file-attached",
|
|
4861
4861
|
style: { "--file-actions-count": he },
|
|
4862
4862
|
align: "center",
|
|
4863
4863
|
w: "100%",
|
|
@@ -4880,10 +4880,10 @@ function KO({
|
|
|
4880
4880
|
className: "editor-file-attached__icon-link",
|
|
4881
4881
|
onClick: ce,
|
|
4882
4882
|
"aria-label": o("editor.gallery.download"),
|
|
4883
|
-
children: /* @__PURE__ */ h(
|
|
4883
|
+
children: /* @__PURE__ */ h(St, { className: "editor-file-attached__icon-slot", children: j })
|
|
4884
4884
|
}
|
|
4885
4885
|
),
|
|
4886
|
-
/* @__PURE__ */ Z(
|
|
4886
|
+
/* @__PURE__ */ Z(St, { className: "editor-file-attached__meta", children: [
|
|
4887
4887
|
/* @__PURE__ */ h(
|
|
4888
4888
|
to,
|
|
4889
4889
|
{
|
|
@@ -4892,12 +4892,12 @@ function KO({
|
|
|
4892
4892
|
className: "editor-file-attached__meta-link",
|
|
4893
4893
|
onClick: ce,
|
|
4894
4894
|
"aria-label": o("editor.gallery.download"),
|
|
4895
|
-
children: /* @__PURE__ */ Z(
|
|
4895
|
+
children: /* @__PURE__ */ Z(St, { className: "editor-file-attached__row", children: [
|
|
4896
4896
|
/* @__PURE__ */ h(
|
|
4897
4897
|
ir,
|
|
4898
4898
|
{
|
|
4899
4899
|
label: N,
|
|
4900
|
-
disabled:
|
|
4900
|
+
disabled: Lt,
|
|
4901
4901
|
withArrow: !0,
|
|
4902
4902
|
openDelay: 300,
|
|
4903
4903
|
children: /* @__PURE__ */ h(
|
|
@@ -4916,7 +4916,7 @@ function KO({
|
|
|
4916
4916
|
),
|
|
4917
4917
|
Je && /* @__PURE__ */ Z(tt, { children: [
|
|
4918
4918
|
/* @__PURE__ */ h(
|
|
4919
|
-
|
|
4919
|
+
St,
|
|
4920
4920
|
{
|
|
4921
4921
|
component: "span",
|
|
4922
4922
|
className: "editor-file-attached__dot",
|
|
@@ -4937,7 +4937,7 @@ function KO({
|
|
|
4937
4937
|
] })
|
|
4938
4938
|
}
|
|
4939
4939
|
),
|
|
4940
|
-
q ? /* @__PURE__ */ h(
|
|
4940
|
+
q ? /* @__PURE__ */ h(St, { className: "editor-file-attached__actions", children: Lt && !i ? /* @__PURE__ */ h(
|
|
4941
4941
|
Nr,
|
|
4942
4942
|
{
|
|
4943
4943
|
label: o("editor.toolbar.more"),
|
|
@@ -4992,7 +4992,7 @@ function KO({
|
|
|
4992
4992
|
]
|
|
4993
4993
|
}
|
|
4994
4994
|
),
|
|
4995
|
-
|
|
4995
|
+
Lt && !i && /* @__PURE__ */ h(
|
|
4996
4996
|
En,
|
|
4997
4997
|
{
|
|
4998
4998
|
opened: f,
|
|
@@ -5336,8 +5336,8 @@ function YO({
|
|
|
5336
5336
|
align: "center",
|
|
5337
5337
|
justify: "space-between",
|
|
5338
5338
|
w: "100%",
|
|
5339
|
-
children:
|
|
5340
|
-
/* @__PURE__ */ h(
|
|
5339
|
+
children: Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
5340
|
+
/* @__PURE__ */ h(St, { className: "image-header__select-host", children: /* @__PURE__ */ h(
|
|
5341
5341
|
h0,
|
|
5342
5342
|
{
|
|
5343
5343
|
component: "button",
|
|
@@ -5487,7 +5487,7 @@ function YO({
|
|
|
5487
5487
|
}
|
|
5488
5488
|
);
|
|
5489
5489
|
}
|
|
5490
|
-
const ZO = Gg(() => import("./layers.
|
|
5490
|
+
const ZO = Gg(() => import("./layers.hNOezmhf.js")), c1 = "upload", W6 = "95%";
|
|
5491
5491
|
function GO(e) {
|
|
5492
5492
|
const t = e;
|
|
5493
5493
|
if (t.src.startsWith("file:///"))
|
|
@@ -5823,8 +5823,8 @@ function XO({
|
|
|
5823
5823
|
align: "center",
|
|
5824
5824
|
justify: "space-between",
|
|
5825
5825
|
w: "100%",
|
|
5826
|
-
children:
|
|
5827
|
-
/* @__PURE__ */ h(
|
|
5826
|
+
children: Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
5827
|
+
/* @__PURE__ */ h(St, { className: "image-header__select-host", children: /* @__PURE__ */ h(
|
|
5828
5828
|
h0,
|
|
5829
5829
|
{
|
|
5830
5830
|
component: "button",
|
|
@@ -6234,7 +6234,7 @@ function oP({
|
|
|
6234
6234
|
className: e,
|
|
6235
6235
|
format: t,
|
|
6236
6236
|
nodeKey: o,
|
|
6237
|
-
children: /* @__PURE__ */ h(
|
|
6237
|
+
children: /* @__PURE__ */ h(St, { w: "100%", children: /* @__PURE__ */ h(
|
|
6238
6238
|
pI,
|
|
6239
6239
|
{
|
|
6240
6240
|
src: n,
|
|
@@ -6253,7 +6253,7 @@ function oP({
|
|
|
6253
6253
|
format: t,
|
|
6254
6254
|
nodeKey: o,
|
|
6255
6255
|
children: /* @__PURE__ */ h(
|
|
6256
|
-
|
|
6256
|
+
St,
|
|
6257
6257
|
{
|
|
6258
6258
|
"data-editor-music-picker-drop-root": !0,
|
|
6259
6259
|
w: "100%",
|
|
@@ -6466,8 +6466,8 @@ function sP({
|
|
|
6466
6466
|
align: "center",
|
|
6467
6467
|
justify: "space-between",
|
|
6468
6468
|
w: "100%",
|
|
6469
|
-
children:
|
|
6470
|
-
/* @__PURE__ */ h(
|
|
6469
|
+
children: Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
6470
|
+
/* @__PURE__ */ h(St, { className: "image-header__select-host", children: /* @__PURE__ */ h(
|
|
6471
6471
|
h0,
|
|
6472
6472
|
{
|
|
6473
6473
|
component: "button",
|
|
@@ -12691,7 +12691,7 @@ const U_ = ({
|
|
|
12691
12691
|
)
|
|
12692
12692
|
}
|
|
12693
12693
|
) }) : /* @__PURE__ */ Z("div", { ref: i, children: [
|
|
12694
|
-
|
|
12694
|
+
Lt ? /* @__PURE__ */ h(
|
|
12695
12695
|
j_,
|
|
12696
12696
|
{
|
|
12697
12697
|
emoji: n,
|
|
@@ -12751,7 +12751,7 @@ const U_ = ({
|
|
|
12751
12751
|
) })
|
|
12752
12752
|
}
|
|
12753
12753
|
),
|
|
12754
|
-
|
|
12754
|
+
Lt ? /* @__PURE__ */ h(K_, { editor: e, keyNode: t }) : /* @__PURE__ */ h(H_, { editor: e, keyNode: t })
|
|
12755
12755
|
] });
|
|
12756
12756
|
};
|
|
12757
12757
|
function j_({
|
|
@@ -13086,7 +13086,7 @@ const O7 = {
|
|
|
13086
13086
|
"data-empty": !e.title,
|
|
13087
13087
|
children: e.title || o("editor.noTitle")
|
|
13088
13088
|
}
|
|
13089
|
-
), f = !n ||
|
|
13089
|
+
), f = !n || Lt || !e.title || !s;
|
|
13090
13090
|
return /* @__PURE__ */ Z(
|
|
13091
13091
|
"div",
|
|
13092
13092
|
{
|
|
@@ -13269,7 +13269,7 @@ const lF = 28, Al = d0(
|
|
|
13269
13269
|
}, [e]), oe(() => {
|
|
13270
13270
|
A && d(A);
|
|
13271
13271
|
}, [A]), /* @__PURE__ */ h(
|
|
13272
|
-
|
|
13272
|
+
St,
|
|
13273
13273
|
{
|
|
13274
13274
|
className: `frame-container ${o ? "selected" : ""}`,
|
|
13275
13275
|
style: {
|
|
@@ -14313,8 +14313,8 @@ function qF({
|
|
|
14313
14313
|
);
|
|
14314
14314
|
oe(() => {
|
|
14315
14315
|
if (v)
|
|
14316
|
-
return
|
|
14317
|
-
|
|
14316
|
+
return Lt || Oc(), () => {
|
|
14317
|
+
Lt || xa();
|
|
14318
14318
|
};
|
|
14319
14319
|
}, [v]);
|
|
14320
14320
|
const U = ft(() => jF(f), [f]);
|
|
@@ -14455,7 +14455,7 @@ function qF({
|
|
|
14455
14455
|
title: G,
|
|
14456
14456
|
zIndex: 1e4,
|
|
14457
14457
|
children: /* @__PURE__ */ h(
|
|
14458
|
-
|
|
14458
|
+
St,
|
|
14459
14459
|
{
|
|
14460
14460
|
style: {
|
|
14461
14461
|
height: "calc(100dvh - 2 * var(--mantine-spacing-xl))",
|
|
@@ -14475,7 +14475,7 @@ function qF({
|
|
|
14475
14475
|
src: H,
|
|
14476
14476
|
allowFullScreen: !0
|
|
14477
14477
|
}
|
|
14478
|
-
) : B != null && B.component ? /* @__PURE__ */ h(
|
|
14478
|
+
) : B != null && B.component ? /* @__PURE__ */ h(St, { style: { height: "100%", minHeight: "60vh" }, children: B.component({
|
|
14479
14479
|
saveUrl: q,
|
|
14480
14480
|
attrs: { href: f },
|
|
14481
14481
|
matches: U == null ? void 0 : U.matches,
|
|
@@ -14495,7 +14495,7 @@ function qF({
|
|
|
14495
14495
|
{
|
|
14496
14496
|
icon: Q,
|
|
14497
14497
|
title: G,
|
|
14498
|
-
actions: E ? null :
|
|
14498
|
+
actions: E ? null : Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
14499
14499
|
/* @__PURE__ */ h(
|
|
14500
14500
|
In,
|
|
14501
14501
|
{
|
|
@@ -14590,7 +14590,7 @@ function qF({
|
|
|
14590
14590
|
),
|
|
14591
14591
|
/* @__PURE__ */ h(Qe, { size: "md", c: "bright", truncate: !0, children: r })
|
|
14592
14592
|
] }),
|
|
14593
|
-
E ? null :
|
|
14593
|
+
E ? null : Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
14594
14594
|
/* @__PURE__ */ h(
|
|
14595
14595
|
In,
|
|
14596
14596
|
{
|
|
@@ -14653,7 +14653,7 @@ function qF({
|
|
|
14653
14653
|
),
|
|
14654
14654
|
/* @__PURE__ */ h(Qe, { size: "md", c: "bright", truncate: !0, children: G })
|
|
14655
14655
|
] }),
|
|
14656
|
-
E ? null :
|
|
14656
|
+
E ? null : Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
14657
14657
|
/* @__PURE__ */ h(
|
|
14658
14658
|
In,
|
|
14659
14659
|
{
|
|
@@ -14710,7 +14710,7 @@ function qF({
|
|
|
14710
14710
|
{
|
|
14711
14711
|
icon: Q,
|
|
14712
14712
|
title: G,
|
|
14713
|
-
actions: E ? null :
|
|
14713
|
+
actions: E ? null : Lt ? /* @__PURE__ */ h(
|
|
14714
14714
|
In,
|
|
14715
14715
|
{
|
|
14716
14716
|
className: "embed-action-btn",
|
|
@@ -14756,7 +14756,7 @@ function qF({
|
|
|
14756
14756
|
)
|
|
14757
14757
|
}
|
|
14758
14758
|
),
|
|
14759
|
-
|
|
14759
|
+
Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
14760
14760
|
/* @__PURE__ */ h(
|
|
14761
14761
|
to,
|
|
14762
14762
|
{
|
|
@@ -15327,7 +15327,7 @@ function uW({ page: e, inlineElement: t, placeholder: n }) {
|
|
|
15327
15327
|
return null;
|
|
15328
15328
|
if (t && !e.id)
|
|
15329
15329
|
return /* @__PURE__ */ Z(
|
|
15330
|
-
|
|
15330
|
+
St,
|
|
15331
15331
|
{
|
|
15332
15332
|
component: "span",
|
|
15333
15333
|
className: `${Va.placeholderInline} ${o ? Va.placeholderInlineDisabled : ""}`,
|
|
@@ -15340,7 +15340,7 @@ function uW({ page: e, inlineElement: t, placeholder: n }) {
|
|
|
15340
15340
|
);
|
|
15341
15341
|
if (t)
|
|
15342
15342
|
return /* @__PURE__ */ h(
|
|
15343
|
-
|
|
15343
|
+
St,
|
|
15344
15344
|
{
|
|
15345
15345
|
component: "span",
|
|
15346
15346
|
className: Va.inlineElement,
|
|
@@ -15353,7 +15353,7 @@ function uW({ page: e, inlineElement: t, placeholder: n }) {
|
|
|
15353
15353
|
e.onClick && e.onClick(s);
|
|
15354
15354
|
};
|
|
15355
15355
|
return /* @__PURE__ */ Z(
|
|
15356
|
-
|
|
15356
|
+
St,
|
|
15357
15357
|
{
|
|
15358
15358
|
component: "div",
|
|
15359
15359
|
className: Va.main,
|
|
@@ -16013,7 +16013,7 @@ const _h = hn(
|
|
|
16013
16013
|
function IW() {
|
|
16014
16014
|
var T;
|
|
16015
16015
|
const [e] = kt(), [t, n] = re([]), [r, o] = re(!1), i = Ne(/* @__PURE__ */ new Map()), s = Ce(() => {
|
|
16016
|
-
|
|
16016
|
+
Lt || xa(), o(!1);
|
|
16017
16017
|
}, []), l = (T = Pt(Ut)) == null ? void 0 : T.commentController, {
|
|
16018
16018
|
onHighlight: c,
|
|
16019
16019
|
activeCommentId: d,
|
|
@@ -16188,7 +16188,7 @@ function IW() {
|
|
|
16188
16188
|
Le(N) && (v.current = N.clone());
|
|
16189
16189
|
});
|
|
16190
16190
|
const R = window.getSelection();
|
|
16191
|
-
return R !== null && R.removeAllRanges(),
|
|
16191
|
+
return R !== null && R.removeAllRanges(), Lt || Oc(), o(!0), !0;
|
|
16192
16192
|
},
|
|
16193
16193
|
wo
|
|
16194
16194
|
),
|
|
@@ -16301,7 +16301,7 @@ function IW() {
|
|
|
16301
16301
|
}
|
|
16302
16302
|
);
|
|
16303
16303
|
};
|
|
16304
|
-
return
|
|
16304
|
+
return Lt ? /* @__PURE__ */ h(En, { opened: r, onClose: s, children: r && /* @__PURE__ */ h(
|
|
16305
16305
|
c6,
|
|
16306
16306
|
{
|
|
16307
16307
|
onSubmit: M(E),
|
|
@@ -31974,7 +31974,7 @@ function Tj({
|
|
|
31974
31974
|
Ze + Q > q - he && (Ze = q - Q - he), Ze = Math.max(he, Ze), ce -= U8, ue && (ce += j8), ce = Math.max(he, Math.min(ce, ee - H - he)), y({ top: ce, left: Ze });
|
|
31975
31975
|
}, [t]);
|
|
31976
31976
|
xl(() => {
|
|
31977
|
-
if (!g ||
|
|
31977
|
+
if (!g || Lt || !C) return;
|
|
31978
31978
|
const P = d.current;
|
|
31979
31979
|
if (!P) return;
|
|
31980
31980
|
const j = () => {
|
|
@@ -32032,8 +32032,8 @@ function Tj({
|
|
|
32032
32032
|
oe(() => {
|
|
32033
32033
|
g || p(e);
|
|
32034
32034
|
}, [e, g]), oe(() => {
|
|
32035
|
-
if (!g ||
|
|
32036
|
-
xa(),
|
|
32035
|
+
if (!g || Lt) {
|
|
32036
|
+
xa(), Lt || k(!1);
|
|
32037
32037
|
return;
|
|
32038
32038
|
}
|
|
32039
32039
|
Oc(), E();
|
|
@@ -32047,7 +32047,7 @@ function Tj({
|
|
|
32047
32047
|
window.cancelAnimationFrame(P), xa();
|
|
32048
32048
|
};
|
|
32049
32049
|
}, [g, E]), oe(() => {
|
|
32050
|
-
if (!g ||
|
|
32050
|
+
if (!g || Lt) return;
|
|
32051
32051
|
const P = (j) => {
|
|
32052
32052
|
const B = j.target, U = c.current, Y = document.querySelector(".equation-block__popup");
|
|
32053
32053
|
B && (U != null && U.contains(B) || Y instanceof HTMLElement && Y.contains(B)) || (t && !m.trim() && i.update(() => {
|
|
@@ -32131,7 +32131,7 @@ function Tj({
|
|
|
32131
32131
|
) });
|
|
32132
32132
|
return /* @__PURE__ */ Z(tt, { children: [
|
|
32133
32133
|
z,
|
|
32134
|
-
|
|
32134
|
+
Lt ? /* @__PURE__ */ h(
|
|
32135
32135
|
En,
|
|
32136
32136
|
{
|
|
32137
32137
|
opened: g,
|
|
@@ -33336,8 +33336,8 @@ function nY({
|
|
|
33336
33336
|
"--editor-layout-column-hover-add-outset": `${P}px`
|
|
33337
33337
|
};
|
|
33338
33338
|
return zi(
|
|
33339
|
-
/* @__PURE__ */ h(
|
|
33340
|
-
/* @__PURE__ */ h(
|
|
33339
|
+
/* @__PURE__ */ h(St, { className: z, style: j, children: N && E ? /* @__PURE__ */ Z(St, { className: "editor-layout-column-hover__inner", children: [
|
|
33340
|
+
/* @__PURE__ */ h(St, { className: "editor-layout-column-hover__menu-slot", children: Lt && I ? /* @__PURE__ */ h(
|
|
33341
33341
|
Vj,
|
|
33342
33342
|
{
|
|
33343
33343
|
editor: t,
|
|
@@ -33410,7 +33410,7 @@ function nY({
|
|
|
33410
33410
|
{
|
|
33411
33411
|
label: S.isMaxColumns ? r("editor.column.addRightMaxReached") : r("editor.column.addRight"),
|
|
33412
33412
|
children: /* @__PURE__ */ h(
|
|
33413
|
-
|
|
33413
|
+
St,
|
|
33414
33414
|
{
|
|
33415
33415
|
component: "span",
|
|
33416
33416
|
className: "editor-layout-column-hover__add-column-wrap",
|
|
@@ -33859,7 +33859,7 @@ function uY(e) {
|
|
|
33859
33859
|
window.removeEventListener("scroll", T, !0), S == null || S.removeEventListener("scroll", T), S == null || S.removeEventListener("resize", T);
|
|
33860
33860
|
};
|
|
33861
33861
|
}, [e, i]), oe(() => {
|
|
33862
|
-
if (!i ||
|
|
33862
|
+
if (!i || Lt) return;
|
|
33863
33863
|
const I = (T) => {
|
|
33864
33864
|
var R;
|
|
33865
33865
|
const S = T.target;
|
|
@@ -33975,7 +33975,7 @@ function kY({
|
|
|
33975
33975
|
}) {
|
|
33976
33976
|
const r = n > 0;
|
|
33977
33977
|
return /* @__PURE__ */ h(
|
|
33978
|
-
|
|
33978
|
+
St,
|
|
33979
33979
|
{
|
|
33980
33980
|
className: r ? Ao.itemNested : Ao.item,
|
|
33981
33981
|
style: { paddingLeft: r ? n * 10 : void 0 },
|
|
@@ -34030,7 +34030,7 @@ function TY(e) {
|
|
|
34030
34030
|
closePicker: d
|
|
34031
34031
|
} = e, { t: f } = yt(), [m, p] = re(null);
|
|
34032
34032
|
xl(() => {
|
|
34033
|
-
if (
|
|
34033
|
+
if (Lt) return;
|
|
34034
34034
|
if (!t || !n) {
|
|
34035
34035
|
p(null);
|
|
34036
34036
|
return;
|
|
@@ -34062,15 +34062,15 @@ function TY(e) {
|
|
|
34062
34062
|
c(E);
|
|
34063
34063
|
}, v = oy({
|
|
34064
34064
|
onCancel: d
|
|
34065
|
-
}), A = i.length === 0 ? /* @__PURE__ */ h(
|
|
34066
|
-
if (
|
|
34065
|
+
}), A = i.length === 0 ? /* @__PURE__ */ h(St, { component: "div", className: Ao.empty, children: /* @__PURE__ */ h(Qe, { size: "sm", c: "dimmed", children: f("editor.menu.other.pageLink.empty") }) }) : /* @__PURE__ */ h(fC, { pages: i, onSelect: g });
|
|
34066
|
+
if (Lt)
|
|
34067
34067
|
return /* @__PURE__ */ h(
|
|
34068
34068
|
En,
|
|
34069
34069
|
{
|
|
34070
34070
|
opened: t,
|
|
34071
34071
|
onClose: d,
|
|
34072
34072
|
title: f("editor.menu.other.pageLink.drawerTitle", "Add content"),
|
|
34073
|
-
children: /* @__PURE__ */ Z(
|
|
34073
|
+
children: /* @__PURE__ */ Z(St, { className: Ao.mobileBody, children: [
|
|
34074
34074
|
/* @__PURE__ */ h(
|
|
34075
34075
|
_u,
|
|
34076
34076
|
{
|
|
@@ -34086,7 +34086,7 @@ function TY(e) {
|
|
|
34086
34086
|
}
|
|
34087
34087
|
}
|
|
34088
34088
|
),
|
|
34089
|
-
/* @__PURE__ */ h(
|
|
34089
|
+
/* @__PURE__ */ h(St, { className: Ao.mobileList, children: A })
|
|
34090
34090
|
] })
|
|
34091
34091
|
}
|
|
34092
34092
|
);
|
|
@@ -34127,7 +34127,7 @@ function TY(e) {
|
|
|
34127
34127
|
scrollbars: "y",
|
|
34128
34128
|
offsetScrollbars: "y",
|
|
34129
34129
|
classNames: { viewport: Ao.scrollViewport },
|
|
34130
|
-
children: /* @__PURE__ */ h(
|
|
34130
|
+
children: /* @__PURE__ */ h(St, { className: Ao.listWrap, children: A })
|
|
34131
34131
|
}
|
|
34132
34132
|
)
|
|
34133
34133
|
]
|
|
@@ -36359,7 +36359,7 @@ const $r = 16, bo = ({
|
|
|
36359
36359
|
}, 200));
|
|
36360
36360
|
});
|
|
36361
36361
|
};
|
|
36362
|
-
return
|
|
36362
|
+
return Lt ? /* @__PURE__ */ h(
|
|
36363
36363
|
eZ,
|
|
36364
36364
|
{
|
|
36365
36365
|
tableCellNode: e,
|
|
@@ -36450,10 +36450,10 @@ function tZ({
|
|
|
36450
36450
|
A((Pe) => {
|
|
36451
36451
|
const ze = typeof Se == "function" ? Se(Pe) : Se, Mt = Pe.row && !ze.row, st = Pe.column && !ze.column;
|
|
36452
36452
|
return (Mt || st) && document.body.classList.contains("table-drag-active") ? Pe : Mt || st ? (y.current && clearTimeout(y.current), y.current = setTimeout(() => {
|
|
36453
|
-
document.body.classList.contains("table-drag-active") || A((
|
|
36454
|
-
...
|
|
36455
|
-
row: Mt ? !1 :
|
|
36456
|
-
column: st ? !1 :
|
|
36453
|
+
document.body.classList.contains("table-drag-active") || A((Tt) => ({
|
|
36454
|
+
...Tt,
|
|
36455
|
+
row: Mt ? !1 : Tt.row,
|
|
36456
|
+
column: st ? !1 : Tt.column
|
|
36457
36457
|
}));
|
|
36458
36458
|
}, 300), {
|
|
36459
36459
|
...ze,
|
|
@@ -36562,7 +36562,7 @@ function tZ({
|
|
|
36562
36562
|
br(
|
|
36563
36563
|
ze.closest("table.dsd__theme__table")
|
|
36564
36564
|
), ut.current = ze;
|
|
36565
|
-
let
|
|
36565
|
+
let Tt = null, Kt = null, gt = null;
|
|
36566
36566
|
r.update(() => {
|
|
36567
36567
|
var $e, lt, et, nt, ht, Nt;
|
|
36568
36568
|
const It = be();
|
|
@@ -36588,7 +36588,7 @@ function tZ({
|
|
|
36588
36588
|
if (gt = r.getElementByKey(_t == null ? void 0 : _t.getKey()), gt) {
|
|
36589
36589
|
const tn = _t.getChildrenSize(), fn = (et = _t.getChildAtIndex(0)) == null ? void 0 : et.getChildrenSize(), gn = Cs(Ue), Rn = qi(Ue);
|
|
36590
36590
|
if (ln.current = (nt = gt.firstChild) == null ? void 0 : nt.childNodes[gn + 1].firstChild, wn.current = (Nt = (ht = gt.firstChild) == null ? void 0 : ht.childNodes[1]) == null ? void 0 : Nt.childNodes[Rn], rt === "bottom")
|
|
36591
|
-
|
|
36591
|
+
Tt = Ue, qt.current = null, C({
|
|
36592
36592
|
top: !1,
|
|
36593
36593
|
bottom: !1,
|
|
36594
36594
|
left: !1,
|
|
@@ -36609,7 +36609,7 @@ function tZ({
|
|
|
36609
36609
|
});
|
|
36610
36610
|
else {
|
|
36611
36611
|
const Mn = gn === tn - 1, Xn = Rn === fn - 1;
|
|
36612
|
-
Mn && (
|
|
36612
|
+
Mn && (Tt = Ue), Xn && (Kt = Ue), C((Qn) => ({
|
|
36613
36613
|
...Qn,
|
|
36614
36614
|
column: Xn,
|
|
36615
36615
|
row: Mn
|
|
@@ -36686,7 +36686,7 @@ function tZ({
|
|
|
36686
36686
|
) && document.documentElement.getAttribute(
|
|
36687
36687
|
"data-mantine-color-scheme"
|
|
36688
36688
|
) === "light" ? "rgba(173, 181, 189, 0.7)" : "", gn = gt.firstElementChild || gt;
|
|
36689
|
-
if (
|
|
36689
|
+
if (Tt) {
|
|
36690
36690
|
const Rn = ia(gn, e);
|
|
36691
36691
|
l({ ...Rn, padding: 0, backgroundColor: fn });
|
|
36692
36692
|
}
|
|
@@ -36776,15 +36776,15 @@ function tZ({
|
|
|
36776
36776
|
return;
|
|
36777
36777
|
}
|
|
36778
36778
|
}
|
|
36779
|
-
const
|
|
36779
|
+
const Tt = e.querySelector(
|
|
36780
36780
|
".dsd__theme__tableAddColumns"
|
|
36781
36781
|
), Kt = e.querySelector(
|
|
36782
36782
|
".dsd__theme__tableAddRows"
|
|
36783
36783
|
);
|
|
36784
36784
|
{
|
|
36785
36785
|
const Ue = Pe.clientX, rt = Pe.clientY;
|
|
36786
|
-
if (
|
|
36787
|
-
const $e =
|
|
36786
|
+
if (Tt) {
|
|
36787
|
+
const $e = Tt.getBoundingClientRect();
|
|
36788
36788
|
if (Ue >= $e.left - 6 && Ue <= $e.right && rt >= $e.top && rt <= $e.bottom) {
|
|
36789
36789
|
Hn.cancel();
|
|
36790
36790
|
return;
|
|
@@ -37151,9 +37151,9 @@ function tZ({
|
|
|
37151
37151
|
}, st = r.registerUpdateListener(() => {
|
|
37152
37152
|
Nn.current && Nn.current(), Mt();
|
|
37153
37153
|
});
|
|
37154
|
-
let
|
|
37154
|
+
let Tt = 0;
|
|
37155
37155
|
const Kt = () => {
|
|
37156
|
-
cancelAnimationFrame(
|
|
37156
|
+
cancelAnimationFrame(Tt), Tt = requestAnimationFrame(() => {
|
|
37157
37157
|
var rt;
|
|
37158
37158
|
(rt = Nn.current) == null || rt.call(Nn), Mt();
|
|
37159
37159
|
});
|
|
@@ -37206,7 +37206,7 @@ function tZ({
|
|
|
37206
37206
|
}));
|
|
37207
37207
|
};
|
|
37208
37208
|
return document.addEventListener("dblclick", Ue), () => {
|
|
37209
|
-
Xr(), Hn.cancel(), document.removeEventListener("click", Pe), document.removeEventListener("dblclick", Ue), document.removeEventListener("mousedown", It, !0), ze(), st(), cancelAnimationFrame(
|
|
37209
|
+
Xr(), Hn.cancel(), document.removeEventListener("click", Pe), document.removeEventListener("dblclick", Ue), document.removeEventListener("mousedown", It, !0), ze(), st(), cancelAnimationFrame(Tt), window.removeEventListener("resize", Kt);
|
|
37210
37210
|
};
|
|
37211
37211
|
}, [o, Hn]), oe(() => {
|
|
37212
37212
|
if (qt.current)
|
|
@@ -37223,37 +37223,37 @@ function tZ({
|
|
|
37223
37223
|
}
|
|
37224
37224
|
let Mt = null, st = null;
|
|
37225
37225
|
if (k) {
|
|
37226
|
-
let
|
|
37226
|
+
let Tt;
|
|
37227
37227
|
try {
|
|
37228
|
-
|
|
37228
|
+
Tt = Cs(Se);
|
|
37229
37229
|
} catch {
|
|
37230
37230
|
return;
|
|
37231
37231
|
}
|
|
37232
|
-
const Kt = ze[
|
|
37232
|
+
const Kt = ze[Tt];
|
|
37233
37233
|
if (pn(Kt)) {
|
|
37234
37234
|
const gt = Kt.getChildren(), Zt = gt[0], It = gt[gt.length - 1];
|
|
37235
37235
|
Ie(Zt) && Ie(It) && (Mt = r.getElementByKey(Zt.getKey()), st = r.getElementByKey(It.getKey()));
|
|
37236
37236
|
}
|
|
37237
37237
|
}
|
|
37238
37238
|
if (M) {
|
|
37239
|
-
let
|
|
37239
|
+
let Tt;
|
|
37240
37240
|
try {
|
|
37241
|
-
|
|
37241
|
+
Tt = qi(Se);
|
|
37242
37242
|
} catch {
|
|
37243
37243
|
return;
|
|
37244
37244
|
}
|
|
37245
37245
|
const Kt = ze[0], gt = ze[ze.length - 1];
|
|
37246
37246
|
if (pn(Kt) && pn(gt)) {
|
|
37247
|
-
const Zt = Kt.getChildAtIndex(
|
|
37247
|
+
const Zt = Kt.getChildAtIndex(Tt), It = gt.getChildAtIndex(Tt);
|
|
37248
37248
|
Ie(Zt) && Ie(It) && (Mt = r.getElementByKey(Zt.getKey()), st = r.getElementByKey(It.getKey()));
|
|
37249
37249
|
}
|
|
37250
37250
|
}
|
|
37251
37251
|
if (Mt && st) {
|
|
37252
|
-
const { y:
|
|
37252
|
+
const { y: Tt, left: Kt } = e.getBoundingClientRect(), gt = Mt.getBoundingClientRect(), Zt = st.getBoundingClientRect(), It = Mt.closest(
|
|
37253
37253
|
".dsd__theme__table-scrollable-wrapper"
|
|
37254
37254
|
), Ue = It == null ? void 0 : It.getBoundingClientRect(), rt = Math.min(gt.top, Zt.top), $e = Math.max(gt.bottom, Zt.bottom), lt = Math.min(gt.left, Zt.left), et = Math.max(gt.right, Zt.right), nt = Ue ? Math.max(rt, Ue.top) : rt, ht = Ue ? Math.min($e, Ue.bottom) : $e, Nt = Ue ? Math.max(lt, Ue.left) : lt, _t = Ue ? Math.min(et, Ue.right) : et;
|
|
37255
37255
|
_t > Nt && ht > nt && ve({
|
|
37256
|
-
top: nt -
|
|
37256
|
+
top: nt - Tt - 1,
|
|
37257
37257
|
left: Nt - Kt,
|
|
37258
37258
|
width: _t - Nt,
|
|
37259
37259
|
height: ht - nt + 1
|
|
@@ -37269,14 +37269,14 @@ function tZ({
|
|
|
37269
37269
|
le.current = !1, $.current && ($.current.classList.remove(
|
|
37270
37270
|
"dsd__theme__tableCellActive"
|
|
37271
37271
|
), $.current = null);
|
|
37272
|
-
const ze = Pe.anchor.getNode(), Mt = Ie(ze) ? ze : at(ze, Ie), st = Pe.focus.getNode(),
|
|
37273
|
-
if (!Ie(Mt) || !Ie(
|
|
37272
|
+
const ze = Pe.anchor.getNode(), Mt = Ie(ze) ? ze : at(ze, Ie), st = Pe.focus.getNode(), Tt = Ie(st) ? st : at(st, Ie);
|
|
37273
|
+
if (!Ie(Mt) || !Ie(Tt))
|
|
37274
37274
|
return;
|
|
37275
|
-
if (Mt.getKey() ===
|
|
37275
|
+
if (Mt.getKey() === Tt.getKey()) {
|
|
37276
37276
|
ee && (q(!1), ve(null), ge(null), Gl(!1));
|
|
37277
37277
|
return;
|
|
37278
37278
|
}
|
|
37279
|
-
const Kt = r.getElementByKey(Mt.getKey()), gt = r.getElementByKey(
|
|
37279
|
+
const Kt = r.getElementByKey(Mt.getKey()), gt = r.getElementByKey(Tt.getKey());
|
|
37280
37280
|
if (!Kt || !gt) return;
|
|
37281
37281
|
const { y: Zt, left: It } = e.getBoundingClientRect(), Ue = Kt.getBoundingClientRect(), rt = gt.getBoundingClientRect(), $e = Math.min(Ue.top, rt.top), lt = Math.max(Ue.bottom, rt.bottom), et = Math.min(Ue.left, rt.left), nt = Math.max(Ue.right, rt.right);
|
|
37282
37282
|
ge(Mt), z({
|
|
@@ -37333,9 +37333,9 @@ function tZ({
|
|
|
37333
37333
|
});
|
|
37334
37334
|
})
|
|
37335
37335
|
), [r]), oe(() => {
|
|
37336
|
-
var Mt, st,
|
|
37336
|
+
var Mt, st, Tt, Kt, gt, Zt;
|
|
37337
37337
|
if (!v.row && !v.column) return;
|
|
37338
|
-
const Se = ((st = (Mt = ut.current) == null ? void 0 : Mt.closest) == null ? void 0 : st.call(Mt, "table.dsd__theme__table")) || ((Kt = (
|
|
37338
|
+
const Se = ((st = (Mt = ut.current) == null ? void 0 : Mt.closest) == null ? void 0 : st.call(Mt, "table.dsd__theme__table")) || ((Kt = (Tt = qe.current) == null ? void 0 : Tt.querySelector) == null ? void 0 : Kt.call(Tt, "table.dsd__theme__table")) || ((Zt = (gt = qe.current) == null ? void 0 : gt.closest) == null ? void 0 : Zt.call(gt, "table.dsd__theme__table"));
|
|
37339
37339
|
if (!Se) return;
|
|
37340
37340
|
let Pe = 0;
|
|
37341
37341
|
const ze = new ResizeObserver(() => {
|
|
@@ -37381,9 +37381,9 @@ function tZ({
|
|
|
37381
37381
|
if (!ze) return;
|
|
37382
37382
|
const Mt = zr(ze);
|
|
37383
37383
|
Pe = Mt.getKey();
|
|
37384
|
-
const st = Mt.getChildren(),
|
|
37385
|
-
if (!pn(
|
|
37386
|
-
const Kt =
|
|
37384
|
+
const st = Mt.getChildren(), Tt = st[st.length - 1];
|
|
37385
|
+
if (!pn(Tt)) return;
|
|
37386
|
+
const Kt = Tt.getChildren(), gt = Kt[Kt.length - 1];
|
|
37387
37387
|
if (Ie(gt))
|
|
37388
37388
|
if (gt.selectEnd(), Se) {
|
|
37389
37389
|
const Zt = Ju(!0), It = Zt == null ? void 0 : Zt.getFirstChild();
|
|
@@ -37417,7 +37417,7 @@ function tZ({
|
|
|
37417
37417
|
column: Se === "column" || Se === "both" || ht.column
|
|
37418
37418
|
}));
|
|
37419
37419
|
const ze = Pe.clientX, Mt = Pe.clientY;
|
|
37420
|
-
let st = 0,
|
|
37420
|
+
let st = 0, Tt = 0;
|
|
37421
37421
|
const Kt = 2, gt = 2;
|
|
37422
37422
|
let Zt = Kt, It = gt;
|
|
37423
37423
|
const Ue = ut.current || qe.current;
|
|
@@ -37478,7 +37478,7 @@ function tZ({
|
|
|
37478
37478
|
}
|
|
37479
37479
|
if (Se === "column" || Se === "both") {
|
|
37480
37480
|
const un = Math.floor(fn / cn);
|
|
37481
|
-
for (;
|
|
37481
|
+
for (; Tt < un; )
|
|
37482
37482
|
try {
|
|
37483
37483
|
r.update(() => {
|
|
37484
37484
|
if (ut.current) {
|
|
@@ -37487,7 +37487,7 @@ function tZ({
|
|
|
37487
37487
|
);
|
|
37488
37488
|
Yn == null || Yn.selectEnd(), D1();
|
|
37489
37489
|
}
|
|
37490
|
-
}),
|
|
37490
|
+
}), Tt++;
|
|
37491
37491
|
const Jn = (Qn = (Xn = ut.current) == null ? void 0 : Xn.closest) == null ? void 0 : Qn.call(
|
|
37492
37492
|
Xn,
|
|
37493
37493
|
".dsd__theme__table-scrollable-wrapper"
|
|
@@ -37496,7 +37496,7 @@ function tZ({
|
|
|
37496
37496
|
} catch {
|
|
37497
37497
|
break;
|
|
37498
37498
|
}
|
|
37499
|
-
for (;
|
|
37499
|
+
for (; Tt > un && !(It + Tt <= gt); )
|
|
37500
37500
|
try {
|
|
37501
37501
|
r.update(() => {
|
|
37502
37502
|
if (ut.current) {
|
|
@@ -37506,7 +37506,7 @@ function tZ({
|
|
|
37506
37506
|
Yn == null || Yn.selectEnd();
|
|
37507
37507
|
}
|
|
37508
37508
|
cA();
|
|
37509
|
-
}),
|
|
37509
|
+
}), Tt--;
|
|
37510
37510
|
} catch {
|
|
37511
37511
|
break;
|
|
37512
37512
|
}
|
|
@@ -38120,12 +38120,12 @@ function sZ({
|
|
|
38120
38120
|
},
|
|
38121
38121
|
children: [
|
|
38122
38122
|
/* @__PURE__ */ h(Ss.Target, { children: /* @__PURE__ */ h(
|
|
38123
|
-
|
|
38123
|
+
St,
|
|
38124
38124
|
{
|
|
38125
38125
|
className: "table-of-contents-container",
|
|
38126
38126
|
onMouseEnter: () => l(!0),
|
|
38127
38127
|
onMouseLeave: () => l(!1),
|
|
38128
|
-
children: /* @__PURE__ */ h(
|
|
38128
|
+
children: /* @__PURE__ */ h(St, { className: "table-of-contents", children: /* @__PURE__ */ h(
|
|
38129
38129
|
Qt,
|
|
38130
38130
|
{
|
|
38131
38131
|
gap: 12,
|
|
@@ -38134,7 +38134,7 @@ function sZ({
|
|
|
38134
38134
|
transition: "all 0.7s"
|
|
38135
38135
|
},
|
|
38136
38136
|
children: e.map(([d, , f], m) => /* @__PURE__ */ h(
|
|
38137
|
-
|
|
38137
|
+
St,
|
|
38138
38138
|
{
|
|
38139
38139
|
onClick: () => c(d, m),
|
|
38140
38140
|
style: {
|
|
@@ -38924,7 +38924,7 @@ const sb = (e, t, n) => {
|
|
|
38924
38924
|
"data-type": n,
|
|
38925
38925
|
style: t ? { backgroundColor: t } : void 0,
|
|
38926
38926
|
children: [
|
|
38927
|
-
/* @__PURE__ */ h(
|
|
38927
|
+
/* @__PURE__ */ h(St, { children: /* @__PURE__ */ h(Qe, { w: 26, mr: "sm", ta: "center", children: e }) }),
|
|
38928
38928
|
/* @__PURE__ */ h(Qe, { size: "sm", lh: "21px", children: r("editor.menu.callout.default.hint.body", {
|
|
38929
38929
|
projectName: "Layers"
|
|
38930
38930
|
}) })
|
|
@@ -39048,7 +39048,7 @@ const sb = (e, t, n) => {
|
|
|
39048
39048
|
backgroundColor: "var(--mantine-color-default-hover)"
|
|
39049
39049
|
},
|
|
39050
39050
|
children: [
|
|
39051
|
-
/* @__PURE__ */ h(At, { px: "sm", pt: "sm", gap: 0, children: /* @__PURE__ */ h(At, { p: 8, pt: "sm", gap: 0, className: "hintBoard", children: /* @__PURE__ */ Z(
|
|
39051
|
+
/* @__PURE__ */ h(At, { px: "sm", pt: "sm", gap: 0, children: /* @__PURE__ */ h(At, { p: 8, pt: "sm", gap: 0, className: "hintBoard", children: /* @__PURE__ */ Z(St, { children: [
|
|
39052
39052
|
/* @__PURE__ */ h(Qe, { size: "sm", lh: "21px", children: e("editor.menu.main.horizontal-rule.hint.topText") }),
|
|
39053
39053
|
/* @__PURE__ */ h(w9, { my: "sm" }),
|
|
39054
39054
|
/* @__PURE__ */ h(Qe, { size: "sm", lh: "21px", children: e("editor.menu.main.horizontal-rule.hint.bottomText") })
|
|
@@ -39236,7 +39236,7 @@ const sb = (e, t, n) => {
|
|
|
39236
39236
|
}
|
|
39237
39237
|
),
|
|
39238
39238
|
/* @__PURE__ */ h(
|
|
39239
|
-
|
|
39239
|
+
St,
|
|
39240
39240
|
{
|
|
39241
39241
|
w: 274,
|
|
39242
39242
|
style: {
|
|
@@ -40081,7 +40081,7 @@ function k4({
|
|
|
40081
40081
|
key: "excalidraw",
|
|
40082
40082
|
hide: t || n.excalidraw,
|
|
40083
40083
|
onSelect: () => {
|
|
40084
|
-
n.excalidraw || import("./layers.
|
|
40084
|
+
n.excalidraw || import("./layers.BbSJiTro.js").then(
|
|
40085
40085
|
({ INSERT_EXCALIDRAW_COMMAND: z }) => {
|
|
40086
40086
|
Un(
|
|
40087
40087
|
e,
|
|
@@ -40349,8 +40349,8 @@ function XZ({
|
|
|
40349
40349
|
"data-selected": t,
|
|
40350
40350
|
"data-test-id": `block-type-${o.key}`,
|
|
40351
40351
|
children: [
|
|
40352
|
-
/* @__PURE__ */ h(
|
|
40353
|
-
/* @__PURE__ */ h(ir, { label: o.title, openDelay: 400, zIndex: 1001, children: /* @__PURE__ */ h(
|
|
40352
|
+
/* @__PURE__ */ h(St, { className: "slash-menu-item-icon", children: o.icon }),
|
|
40353
|
+
/* @__PURE__ */ h(ir, { label: o.title, openDelay: 400, zIndex: 1001, children: /* @__PURE__ */ h(St, { className: "slash-menu-item-text", children: /* @__PURE__ */ h(Qe, { className: "slash-menu-item-label", size: "sm", span: !0, truncate: "end", children: o.title }) }) })
|
|
40354
40354
|
]
|
|
40355
40355
|
}
|
|
40356
40356
|
);
|
|
@@ -40522,7 +40522,7 @@ function nG(e, t) {
|
|
|
40522
40522
|
!1,
|
|
40523
40523
|
"advanced",
|
|
40524
40524
|
{
|
|
40525
|
-
icon: /* @__PURE__ */ h(
|
|
40525
|
+
icon: /* @__PURE__ */ h(St, { className: "icon table" }),
|
|
40526
40526
|
keywords: ["table"],
|
|
40527
40527
|
onSelect: () => e.dispatchCommand(Ih, { columns: s, rows: o })
|
|
40528
40528
|
}
|
|
@@ -40773,7 +40773,7 @@ function oG({
|
|
|
40773
40773
|
position: "bottom-start",
|
|
40774
40774
|
transitionProps: Fr,
|
|
40775
40775
|
children: [
|
|
40776
|
-
/* @__PURE__ */ h(ye.Target, { children: /* @__PURE__ */ h(
|
|
40776
|
+
/* @__PURE__ */ h(ye.Target, { children: /* @__PURE__ */ h(St, { component: "span", w: 0, h: 0, display: "block" }) }, l),
|
|
40777
40777
|
/* @__PURE__ */ Z(ye.Dropdown, { className: "typeahead-popover component-picker-menu", children: [
|
|
40778
40778
|
/* @__PURE__ */ h(
|
|
40779
40779
|
tG,
|
|
@@ -40789,13 +40789,13 @@ function oG({
|
|
|
40789
40789
|
}
|
|
40790
40790
|
),
|
|
40791
40791
|
/* @__PURE__ */ h(
|
|
40792
|
-
|
|
40792
|
+
St,
|
|
40793
40793
|
{
|
|
40794
40794
|
id: "typeahead-menu",
|
|
40795
40795
|
className: "slash-menu-scroll-region",
|
|
40796
|
-
children: /* @__PURE__ */ h(
|
|
40796
|
+
children: /* @__PURE__ */ h(St, { className: "slash-menu-list-column", children: C.map((P) => {
|
|
40797
40797
|
const j = k[P.name].name;
|
|
40798
|
-
return /* @__PURE__ */ Z(
|
|
40798
|
+
return /* @__PURE__ */ Z(St, { className: "slash-menu-group", children: [
|
|
40799
40799
|
/* @__PURE__ */ h(
|
|
40800
40800
|
Qe,
|
|
40801
40801
|
{
|
|
@@ -40806,7 +40806,7 @@ function oG({
|
|
|
40806
40806
|
children: j
|
|
40807
40807
|
}
|
|
40808
40808
|
),
|
|
40809
|
-
/* @__PURE__ */ h(
|
|
40809
|
+
/* @__PURE__ */ h(St, { className: "slash-menu-grid", children: P.items.length > 0 ? P.items.map(
|
|
40810
40810
|
(B) => /* @__PURE__ */ h(
|
|
40811
40811
|
XZ,
|
|
40812
40812
|
{
|
|
@@ -41097,7 +41097,7 @@ function SC({
|
|
|
41097
41097
|
}
|
|
41098
41098
|
return R;
|
|
41099
41099
|
}, [A, i, p, y, C]), E = lG[t] || t, [M, I] = re(!1);
|
|
41100
|
-
if (
|
|
41100
|
+
if (Lt) {
|
|
41101
41101
|
const T = s ? Pu.cloneElement(s, {
|
|
41102
41102
|
onClick: (S) => {
|
|
41103
41103
|
var R, N;
|
|
@@ -41330,7 +41330,7 @@ function TC({
|
|
|
41330
41330
|
},
|
|
41331
41331
|
[e, t, o]
|
|
41332
41332
|
), [M, I] = re(!1);
|
|
41333
|
-
if (
|
|
41333
|
+
if (Lt) {
|
|
41334
41334
|
const T = (R) => {
|
|
41335
41335
|
I(R), i == null || i(R), m == null || m(R);
|
|
41336
41336
|
}, S = Pu.isValidElement(s) ? Pu.cloneElement(s, {
|
|
@@ -41804,7 +41804,7 @@ function mG() {
|
|
|
41804
41804
|
["partial", I],
|
|
41805
41805
|
["partialRight", T],
|
|
41806
41806
|
["rearg", R]
|
|
41807
|
-
], ve = "[object Arguments]", Te = "[object Array]", pe = "[object AsyncFunction]", ce = "[object Boolean]", ue = "[object Date]", Ze = "[object DOMException]", Me = "[object Error]", Je = "[object Function]", xe = "[object GeneratorFunction]", _e = "[object Map]", We = "[object Number]", de = "[object Null]", ke = "[object Object]", $ = "[object Promise]", le = "[object Proxy]", we = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", qe = "[object Symbol]", vt = "[object Undefined]", ut = "[object WeakMap]", ln = "[object WeakSet]", wn = "[object ArrayBuffer]", qt = "[object DataView]", Er = "[object Float32Array]", Nn = "[object Float64Array]", gr = "[object Int8Array]", Wn = "[object Int16Array]", Lr = "[object Int32Array]", br = "[object Uint8Array]", Hn = "[object Uint8ClampedArray]", Xr = "[object Uint16Array]", Vn = "[object Uint32Array]", _i = /\b__p \+= '';/g, Ko = /\b(__p \+=) '' \+/g, cn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ve = /&(?:amp|lt|gt|quot|#39);/g, Ht = /[&<>"']/g, kn = RegExp(Ve.source), Se = RegExp(Ht.source), Pe = /<%-([\s\S]+?)%>/g, ze = /<%([\s\S]+?)%>/g, Mt = /<%=([\s\S]+?)%>/g, st = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
41807
|
+
], ve = "[object Arguments]", Te = "[object Array]", pe = "[object AsyncFunction]", ce = "[object Boolean]", ue = "[object Date]", Ze = "[object DOMException]", Me = "[object Error]", Je = "[object Function]", xe = "[object GeneratorFunction]", _e = "[object Map]", We = "[object Number]", de = "[object Null]", ke = "[object Object]", $ = "[object Promise]", le = "[object Proxy]", we = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", qe = "[object Symbol]", vt = "[object Undefined]", ut = "[object WeakMap]", ln = "[object WeakSet]", wn = "[object ArrayBuffer]", qt = "[object DataView]", Er = "[object Float32Array]", Nn = "[object Float64Array]", gr = "[object Int8Array]", Wn = "[object Int16Array]", Lr = "[object Int32Array]", br = "[object Uint8Array]", Hn = "[object Uint8ClampedArray]", Xr = "[object Uint16Array]", Vn = "[object Uint32Array]", _i = /\b__p \+= '';/g, Ko = /\b(__p \+=) '' \+/g, cn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Ve = /&(?:amp|lt|gt|quot|#39);/g, Ht = /[&<>"']/g, kn = RegExp(Ve.source), Se = RegExp(Ht.source), Pe = /<%-([\s\S]+?)%>/g, ze = /<%([\s\S]+?)%>/g, Mt = /<%=([\s\S]+?)%>/g, st = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Tt = /^\w*$/, Kt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, gt = /[\\^$.*+?()[\]{}|]/g, Zt = RegExp(gt.source), It = /^\s+/, Ue = /\s/, rt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, $e = /\{\n\/\* \[wrapped with (.+)\] \*/, lt = /,? & /, et = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, nt = /[()=,{}\[\]\/\s]/, ht = /\\(\\)?/g, Nt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, _t = /\w*$/, tn = /^[-+]0x[0-9a-f]+$/i, fn = /^0b[01]+$/i, gn = /^\[object .+?Constructor\]$/, Rn = /^0o[0-7]+$/i, Mn = /^(?:0|[1-9]\d*)$/, Xn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Qn = /($^)/, Wr = /['\n\r\u2028\u2029\\]/g, Uo = "\\ud800-\\udfff", ss = "\\u0300-\\u036f", un = "\\ufe20-\\ufe2f", Jn = "\\u20d0-\\u20ff", Yn = ss + un + Jn, jo = "\\u2700-\\u27bf", Or = "a-z\\xdf-\\xf6\\xf8-\\xff", Il = "\\xac\\xb1\\xd7\\xf7", za = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Nl = "\\u2000-\\u206f", Yo = " \\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", ro = "A-Z\\xc0-\\xd6\\xd8-\\xde", as = "\\ufe0e\\ufe0f", Ys = Il + za + Nl + Yo, Ai = "['’]", O0 = "[" + Uo + "]", _4 = "[" + Ys + "]", P0 = "[" + Yn + "]", F4 = "\\d+", gw = "[" + jo + "]", W4 = "[" + Or + "]", H4 = "[^" + Uo + Ys + F4 + jo + Or + ro + "]", tf = "\\ud83c[\\udffb-\\udfff]", bw = "(?:" + P0 + "|" + tf + ")", K4 = "[^" + Uo + "]", nf = "(?:\\ud83c[\\udde6-\\uddff]){2}", rf = "[\\ud800-\\udbff][\\udc00-\\udfff]", Rl = "[" + ro + "]", U4 = "\\u200d", j4 = "(?:" + W4 + "|" + H4 + ")", vw = "(?:" + Rl + "|" + H4 + ")", Y4 = "(?:" + Ai + "(?:d|ll|m|re|s|t|ve))?", Z4 = "(?:" + Ai + "(?:D|LL|M|RE|S|T|VE))?", G4 = bw + "?", q4 = "[" + as + "]?", Aw = "(?:" + U4 + "(?:" + [K4, nf, rf].join("|") + ")" + q4 + G4 + ")*", yw = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Cw = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", V4 = q4 + G4 + Aw, ww = "(?:" + [gw, nf, rf].join("|") + ")" + V4, kw = "(?:" + [K4 + P0 + "?", P0, nf, rf, O0].join("|") + ")", xw = RegExp(Ai, "g"), Sw = RegExp(P0, "g"), of = RegExp(tf + "(?=" + tf + ")|" + kw + V4, "g"), Tw = RegExp([
|
|
41808
41808
|
Rl + "?" + W4 + "+" + Y4 + "(?=" + [_4, Rl, "$"].join("|") + ")",
|
|
41809
41809
|
vw + "+" + Z4 + "(?=" + [_4, Rl + j4, "$"].join("|") + ")",
|
|
41810
41810
|
Rl + "?" + j4 + "+" + Y4,
|
|
@@ -43896,7 +43896,7 @@ function mG() {
|
|
|
43896
43896
|
if (Xt(a))
|
|
43897
43897
|
return !1;
|
|
43898
43898
|
var b = typeof a;
|
|
43899
|
-
return b == "number" || b == "symbol" || b == "boolean" || a == null || Eo(a) ? !0 :
|
|
43899
|
+
return b == "number" || b == "symbol" || b == "boolean" || a == null || Eo(a) ? !0 : Tt.test(a) || !st.test(a) || u != null && a in Dn(u);
|
|
43900
43900
|
}
|
|
43901
43901
|
function qx(a) {
|
|
43902
43902
|
var u = typeof a;
|
|
@@ -46046,7 +46046,7 @@ function fb(e, t) {
|
|
|
46046
46046
|
return { leadOffset: n, matchingString: o, replaceableString: r };
|
|
46047
46047
|
}
|
|
46048
46048
|
function MG() {
|
|
46049
|
-
return
|
|
46049
|
+
return Lt ? /* @__PURE__ */ h(IG, {}) : /* @__PURE__ */ h(NG, {});
|
|
46050
46050
|
}
|
|
46051
46051
|
function IG() {
|
|
46052
46052
|
const [e] = kt(), { t } = yt(), [n, r] = re(!1);
|
|
@@ -46644,7 +46644,7 @@ function ZG({
|
|
|
46644
46644
|
r.current = !1, U(pe), r.current = !0, T("edit");
|
|
46645
46645
|
});
|
|
46646
46646
|
}, [U, t]), oe(() => {
|
|
46647
|
-
if (
|
|
46647
|
+
if (Lt) return;
|
|
46648
46648
|
const pe = (ce) => {
|
|
46649
46649
|
if (e.current) return;
|
|
46650
46650
|
const ue = ce.target;
|
|
@@ -46656,7 +46656,7 @@ function ZG({
|
|
|
46656
46656
|
document.body.removeEventListener("mouseover", pe);
|
|
46657
46657
|
};
|
|
46658
46658
|
}, [U, e]), oe(() => {
|
|
46659
|
-
if (!
|
|
46659
|
+
if (!Lt) return;
|
|
46660
46660
|
const pe = (ce) => {
|
|
46661
46661
|
if (e.current) return;
|
|
46662
46662
|
const ue = ce.target;
|
|
@@ -46675,7 +46675,7 @@ function ZG({
|
|
|
46675
46675
|
document.removeEventListener("click", pe, { capture: !0 }), document.removeEventListener("touchend", pe, { capture: !0 });
|
|
46676
46676
|
};
|
|
46677
46677
|
}, [P, U, j, e]), oe(() => {
|
|
46678
|
-
if (
|
|
46678
|
+
if (Lt) return;
|
|
46679
46679
|
const pe = ph(
|
|
46680
46680
|
(ce) => {
|
|
46681
46681
|
if (r.current) return;
|
|
@@ -46956,7 +46956,7 @@ function GG({
|
|
|
46956
46956
|
onSave: d
|
|
46957
46957
|
}) {
|
|
46958
46958
|
const { t: f } = yt();
|
|
46959
|
-
return /* @__PURE__ */ Z(
|
|
46959
|
+
return /* @__PURE__ */ Z(St, { className: "floating-link-form", children: [
|
|
46960
46960
|
/* @__PURE__ */ Z(Qt, { gap: 5, children: [
|
|
46961
46961
|
/* @__PURE__ */ h(Qe, { fw: 500, size: "xs", c: "var(--mantine-color-text)", children: f("editor.link.link") }),
|
|
46962
46962
|
/* @__PURE__ */ h(
|
|
@@ -47037,7 +47037,7 @@ function qG({
|
|
|
47037
47037
|
onSave: m
|
|
47038
47038
|
}) {
|
|
47039
47039
|
const { t: p } = yt();
|
|
47040
|
-
return /* @__PURE__ */ Z(
|
|
47040
|
+
return /* @__PURE__ */ Z(St, { className: "floating-link-form", children: [
|
|
47041
47041
|
/* @__PURE__ */ Z(Qt, { gap: 10, children: [
|
|
47042
47042
|
/* @__PURE__ */ Z(Qt, { gap: 5, children: [
|
|
47043
47043
|
/* @__PURE__ */ h(Qe, { fw: 500, size: "xs", c: "var(--mantine-color-text)", children: p("editor.link.link") }),
|
|
@@ -47139,7 +47139,7 @@ function XG({
|
|
|
47139
47139
|
const { t: l } = yt(), { notifySuccess: c } = w0(), d = VG[n], f = () => {
|
|
47140
47140
|
i(), c(l("editor.link.copied"));
|
|
47141
47141
|
};
|
|
47142
|
-
return /* @__PURE__ */ Z(
|
|
47142
|
+
return /* @__PURE__ */ Z(St, { className: `floating-link-card floating-link-card--${n}`, children: [
|
|
47143
47143
|
/* @__PURE__ */ Z(At, { className: "floating-link-card__top", wrap: "nowrap", children: [
|
|
47144
47144
|
/* @__PURE__ */ Z(At, { className: "floating-link-card__info", wrap: "nowrap", gap: 6, children: [
|
|
47145
47145
|
/* @__PURE__ */ h(
|
|
@@ -47351,7 +47351,7 @@ function QG({
|
|
|
47351
47351
|
]
|
|
47352
47352
|
}
|
|
47353
47353
|
);
|
|
47354
|
-
return
|
|
47354
|
+
return Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
47355
47355
|
B === "create" || B === "edit" ? /* @__PURE__ */ h(
|
|
47356
47356
|
En,
|
|
47357
47357
|
{
|
|
@@ -47482,7 +47482,7 @@ function rq({
|
|
|
47482
47482
|
(E = v.current) == null ? void 0 : E.isLink,
|
|
47483
47483
|
void 0,
|
|
47484
47484
|
void 0,
|
|
47485
|
-
|
|
47485
|
+
Lt
|
|
47486
47486
|
));
|
|
47487
47487
|
}
|
|
47488
47488
|
oe(() => {
|
|
@@ -47505,7 +47505,7 @@ function rq({
|
|
|
47505
47505
|
n,
|
|
47506
47506
|
void 0,
|
|
47507
47507
|
void 0,
|
|
47508
|
-
|
|
47508
|
+
Lt
|
|
47509
47509
|
), g.current = !1);
|
|
47510
47510
|
}
|
|
47511
47511
|
}, [m, e]), oe(() => {
|
|
@@ -47532,7 +47532,7 @@ function rq({
|
|
|
47532
47532
|
(E = v.current) == null ? void 0 : E.isLink,
|
|
47533
47533
|
void 0,
|
|
47534
47534
|
void 0,
|
|
47535
|
-
|
|
47535
|
+
Lt
|
|
47536
47536
|
), BM(), Lh(e)) : setTimeout(() => {
|
|
47537
47537
|
y();
|
|
47538
47538
|
})), !0) : !1;
|
|
@@ -47549,7 +47549,7 @@ function rq({
|
|
|
47549
47549
|
(k = v.current) == null ? void 0 : k.isLink,
|
|
47550
47550
|
void 0,
|
|
47551
47551
|
void 0,
|
|
47552
|
-
|
|
47552
|
+
Lt
|
|
47553
47553
|
);
|
|
47554
47554
|
}, 100), !1),
|
|
47555
47555
|
Rt
|
|
@@ -47562,14 +47562,14 @@ function rq({
|
|
|
47562
47562
|
const I = e.getRootElement();
|
|
47563
47563
|
let T = !1;
|
|
47564
47564
|
const S = Ab();
|
|
47565
|
-
if (S && S.length > 0 && (T = !0), k !== null && M !== null && (!M.isCollapsed ||
|
|
47565
|
+
if (S && S.length > 0 && (T = !0), k !== null && M !== null && (!M.isCollapsed || Lt) && I !== null && I.contains(M.anchorNode) && (T || Lt)) {
|
|
47566
47566
|
const R = eq(M, I);
|
|
47567
47567
|
if (v.current = {
|
|
47568
47568
|
rect: R,
|
|
47569
47569
|
floatingElem: E,
|
|
47570
47570
|
anchorElem: t,
|
|
47571
47571
|
isLink: n
|
|
47572
|
-
},
|
|
47572
|
+
}, Lt) {
|
|
47573
47573
|
const N = (_ = 0) => {
|
|
47574
47574
|
var B, U;
|
|
47575
47575
|
const z = p.current;
|
|
@@ -47604,7 +47604,7 @@ function rq({
|
|
|
47604
47604
|
(B = v.current) == null ? void 0 : B.isLink,
|
|
47605
47605
|
void 0,
|
|
47606
47606
|
void 0,
|
|
47607
|
-
|
|
47607
|
+
Lt
|
|
47608
47608
|
);
|
|
47609
47609
|
}, 100), !1),
|
|
47610
47610
|
Rt
|
|
@@ -47781,7 +47781,7 @@ function oq(e, t, n) {
|
|
|
47781
47781
|
), q = (ve = (fe = (ge = e.getElementByKey(H.__key)) == null ? void 0 : ge.parentElement) == null ? void 0 : fe.parentElement) == null ? void 0 : ve.classList.contains(
|
|
47782
47782
|
"Collapsible__title"
|
|
47783
47783
|
);
|
|
47784
|
-
!ee && (B.getTextContent() !== "" ||
|
|
47784
|
+
!ee && (B.getTextContent() !== "" || Lt) && !q ? o(
|
|
47785
47785
|
Zr(H) || Gn(H) || Ac(H) || yc(H) || sn(H)
|
|
47786
47786
|
) : o(!1);
|
|
47787
47787
|
const he = B.getTextContent().replace(/\n/g, "");
|
|
@@ -50642,7 +50642,7 @@ function PV({
|
|
|
50642
50642
|
), l = ft(() => t === "start" || t === "end" ? s.left : s[t || "left"], [t, s]), c = (p) => {
|
|
50643
50643
|
r(p), e.dispatchCommand(il, p);
|
|
50644
50644
|
}, d = t === "start" || t === "end" ? "left" : t || "left", [f, m] = re(!1);
|
|
50645
|
-
return
|
|
50645
|
+
return Lt ? /* @__PURE__ */ Z(tt, { children: [
|
|
50646
50646
|
/* @__PURE__ */ Z(
|
|
50647
50647
|
to,
|
|
50648
50648
|
{
|
|
@@ -51170,7 +51170,7 @@ const _V = (e, t, n, r) => {
|
|
|
51170
51170
|
duration: 300,
|
|
51171
51171
|
timingFunction: "ease",
|
|
51172
51172
|
children: (H) => /* @__PURE__ */ h(
|
|
51173
|
-
|
|
51173
|
+
St,
|
|
51174
51174
|
{
|
|
51175
51175
|
ref: z,
|
|
51176
51176
|
"data-test-id": "ai-menu",
|
|
@@ -51235,7 +51235,7 @@ const _V = (e, t, n, r) => {
|
|
|
51235
51235
|
ref: j,
|
|
51236
51236
|
children: [
|
|
51237
51237
|
/* @__PURE__ */ h(
|
|
51238
|
-
|
|
51238
|
+
St,
|
|
51239
51239
|
{
|
|
51240
51240
|
style: {
|
|
51241
51241
|
flex: 1
|
|
@@ -51245,7 +51245,7 @@ const _V = (e, t, n, r) => {
|
|
|
51245
51245
|
children: P
|
|
51246
51246
|
}
|
|
51247
51247
|
),
|
|
51248
|
-
/* @__PURE__ */ h(
|
|
51248
|
+
/* @__PURE__ */ h(St, { w: "auto", mt: "xs", children: /* @__PURE__ */ h(XM, { value: g, timeout: 2e3, children: ({ copied: Q, copy: G }) => /* @__PURE__ */ h(
|
|
51249
51249
|
ir,
|
|
51250
51250
|
{
|
|
51251
51251
|
label: I(Q ? "editor.ai.copied" : "editor.ai.copy"),
|
|
@@ -51269,7 +51269,7 @@ const _V = (e, t, n, r) => {
|
|
|
51269
51269
|
/* @__PURE__ */ h(w9, { my: "0" })
|
|
51270
51270
|
] }),
|
|
51271
51271
|
/* @__PURE__ */ h(
|
|
51272
|
-
|
|
51272
|
+
St,
|
|
51273
51273
|
{
|
|
51274
51274
|
onMouseDown: (Q) => Q.stopPropagation(),
|
|
51275
51275
|
onClick: (Q) => Q.stopPropagation(),
|
|
@@ -51399,7 +51399,7 @@ const _V = (e, t, n, r) => {
|
|
|
51399
51399
|
},
|
|
51400
51400
|
children: [
|
|
51401
51401
|
/* @__PURE__ */ h("span", { className: "toolbar-light-btn__icon toolbar-ai-icon", children: /* @__PURE__ */ h(ne, { icon: PB, size: 20 }) }),
|
|
51402
|
-
!
|
|
51402
|
+
!Lt && /* @__PURE__ */ h("span", { className: "toolbar-light-btn__text toolbar-ai-text", children: I("editor.toolbar.ai", "Improve writing") })
|
|
51403
51403
|
]
|
|
51404
51404
|
}
|
|
51405
51405
|
)
|
|
@@ -51605,7 +51605,7 @@ function eX({
|
|
|
51605
51605
|
opened: e,
|
|
51606
51606
|
onClose: t,
|
|
51607
51607
|
title: l("editor.menu.mobileTitle", "Insert blok"),
|
|
51608
|
-
children: /* @__PURE__ */ h(Qt, { gap: "md", pb: "sm", children: c.map((f) => /* @__PURE__ */ Z(
|
|
51608
|
+
children: /* @__PURE__ */ h(Qt, { gap: "md", pb: "sm", children: c.map((f) => /* @__PURE__ */ Z(St, { className: "mobile-slash-menu__group", children: [
|
|
51609
51609
|
/* @__PURE__ */ h(
|
|
51610
51610
|
Qe,
|
|
51611
51611
|
{
|
|
@@ -51622,7 +51622,7 @@ function eX({
|
|
|
51622
51622
|
onClick: () => d(m),
|
|
51623
51623
|
"data-test-id": m["data-test-id"],
|
|
51624
51624
|
children: [
|
|
51625
|
-
/* @__PURE__ */ h(
|
|
51625
|
+
/* @__PURE__ */ h(St, { className: "mobile-slash-menu__item-icon", children: m.icon }),
|
|
51626
51626
|
/* @__PURE__ */ h(Qe, { className: "mobile-slash-menu__item-text", size: "sm", children: m.name })
|
|
51627
51627
|
]
|
|
51628
51628
|
},
|
|
@@ -51684,7 +51684,7 @@ const tX = {
|
|
|
51684
51684
|
{
|
|
51685
51685
|
...e,
|
|
51686
51686
|
ref: t,
|
|
51687
|
-
disabled:
|
|
51687
|
+
disabled: Lt || e.disabled
|
|
51688
51688
|
}
|
|
51689
51689
|
));
|
|
51690
51690
|
Io.displayName = "Tooltip";
|
|
@@ -51710,7 +51710,7 @@ function _b({
|
|
|
51710
51710
|
return rt !== null && Ou(rt);
|
|
51711
51711
|
});
|
|
51712
51712
|
Ve.getNodes().length === 1 ? pe(!0) : pe(!1), ze === null && (ze = Ht.getTopLevelElementOrThrow());
|
|
51713
|
-
const st = ze.getKey(),
|
|
51713
|
+
const st = ze.getKey(), Tt = i.getElementByKey(st);
|
|
51714
51714
|
n.update(() => {
|
|
51715
51715
|
T(Ve.hasFormat("bold")), R(Ve.hasFormat("italic")), _(Ve.hasFormat("underline")), P(Ve.hasFormat("strikethrough")), B(Ve.hasFormat("subscript")), Y(Ve.hasFormat("superscript")), Q(Ve.hasFormat("code"));
|
|
51716
51716
|
});
|
|
@@ -51732,7 +51732,7 @@ function _b({
|
|
|
51732
51732
|
pt(Zt) ? Zt.getFormatType() : pt(Kt) ? Kt.getFormatType() : (gt == null ? void 0 : gt.getFormatType()) || "left"
|
|
51733
51733
|
);
|
|
51734
51734
|
const It = at(Kt, $t);
|
|
51735
|
-
if ($t(It) ? f("table") : f("root"),
|
|
51735
|
+
if ($t(It) ? f("table") : f("root"), Tt !== null && (Se == null ? void 0 : Se.getKey()) === (Pe == null ? void 0 : Pe.getKey()))
|
|
51736
51736
|
if (p(st), Bt(ze)) {
|
|
51737
51737
|
const Ue = Jg(
|
|
51738
51738
|
Ht,
|
|
@@ -51829,8 +51829,8 @@ function _b({
|
|
|
51829
51829
|
if (Zr(ze)) {
|
|
51830
51830
|
let st = ze;
|
|
51831
51831
|
Mt === 0 && Ht.offset !== 0 && (st = st.splitText(Ht.offset)[1] || st), Mt === Se.length - 1 && (st = st.splitText(kn.offset)[0] || st);
|
|
51832
|
-
const
|
|
51833
|
-
Se.length === 1 && Zr(
|
|
51832
|
+
const Tt = Pe[0];
|
|
51833
|
+
Se.length === 1 && Zr(Tt) && (st = Tt), st.__style !== "" && st.setStyle(""), st.__format !== 0 && st.setFormat(0);
|
|
51834
51834
|
const Kt = hh(st);
|
|
51835
51835
|
Kt.__format !== 0 && Kt.setFormat(""), Kt.__indent !== 0 && Kt.setIndent(0), ze = st;
|
|
51836
51836
|
} else Ac(ze) || yc(ze) ? ze.replace(ct(), !0) : t2(ze) && ze.setFormat("");
|
|
@@ -51850,7 +51850,7 @@ function _b({
|
|
|
51850
51850
|
};
|
|
51851
51851
|
return document.addEventListener("keydown", Ve), () => document.removeEventListener("keydown", Ve);
|
|
51852
51852
|
}, []);
|
|
51853
|
-
const Lr = t &&
|
|
51853
|
+
const Lr = t && Lt, [br, Hn] = re(!1), [Xr, Vn] = re(!1), _i = () => {
|
|
51854
51854
|
Hn(!0);
|
|
51855
51855
|
}, Ko = () => {
|
|
51856
51856
|
i.dispatchCommand(L1, void 0);
|
|
@@ -52211,7 +52211,7 @@ function _b({
|
|
|
52211
52211
|
color: "currentColor"
|
|
52212
52212
|
}
|
|
52213
52213
|
) }),
|
|
52214
|
-
!
|
|
52214
|
+
!Lt && /* @__PURE__ */ h("span", { className: "toolbar-light-btn__text", children: Oe("editor.toolbar.comment") })
|
|
52215
52215
|
]
|
|
52216
52216
|
}
|
|
52217
52217
|
)
|
|
@@ -52583,7 +52583,7 @@ const oX = "_listContainer_1d88b_1", iX = "_list_1d88b_1", sX = "_text_1d88b_28"
|
|
|
52583
52583
|
title: r("editor.menu.media.excalidraw.hint.description"),
|
|
52584
52584
|
icon: /* @__PURE__ */ h(ne, { icon: Iv, size: 18 }),
|
|
52585
52585
|
onSelect: () => {
|
|
52586
|
-
import("./layers.
|
|
52586
|
+
import("./layers.BbSJiTro.js").then(
|
|
52587
52587
|
({ INSERT_EXCALIDRAW_COMMAND: m }) => {
|
|
52588
52588
|
c(e, () => {
|
|
52589
52589
|
e.dispatchCommand(m, void 0);
|
|
@@ -52853,7 +52853,7 @@ function hX(e, t, n, r, o) {
|
|
|
52853
52853
|
);
|
|
52854
52854
|
}
|
|
52855
52855
|
const Hb = Gg(
|
|
52856
|
-
() => import("./layers.
|
|
52856
|
+
() => import("./layers.BbSJiTro.js").then((e) => ({
|
|
52857
52857
|
default: e.ExcalidrawPlugin
|
|
52858
52858
|
}))
|
|
52859
52859
|
);
|
|
@@ -52876,7 +52876,7 @@ function fX(e) {
|
|
|
52876
52876
|
plugins: k,
|
|
52877
52877
|
imperativeHandleRef: E,
|
|
52878
52878
|
disable: M
|
|
52879
|
-
} = Pt(Ut), I =
|
|
52879
|
+
} = Pt(Ut), I = Lt, T = dX(i, C), {
|
|
52880
52880
|
settings: { isRichText: S, showTreeView: R, isMaxLength: N }
|
|
52881
52881
|
} = Xv(), { historyState: _ } = Jv(), { triggerOnChangeCommand: z, onChangeValue: P, onBlurValue: j } = lX({
|
|
52882
52882
|
editor: l,
|
|
@@ -53379,63 +53379,47 @@ function FX({
|
|
|
53379
53379
|
onMouseEnter: r,
|
|
53380
53380
|
option: o
|
|
53381
53381
|
}) {
|
|
53382
|
-
|
|
53383
|
-
"
|
|
53382
|
+
const i = o.avatarUrl ? /* @__PURE__ */ h(
|
|
53383
|
+
"img",
|
|
53384
53384
|
{
|
|
53385
|
-
|
|
53385
|
+
src: o.avatarUrl,
|
|
53386
|
+
alt: "",
|
|
53387
|
+
width: 24,
|
|
53388
|
+
height: 24,
|
|
53389
|
+
style: { borderRadius: "50%", objectFit: "cover", display: "block" }
|
|
53390
|
+
}
|
|
53391
|
+
) : /* @__PURE__ */ h(
|
|
53392
|
+
St,
|
|
53393
|
+
{
|
|
53394
|
+
w: 24,
|
|
53395
|
+
h: 24,
|
|
53396
|
+
style: {
|
|
53397
|
+
borderRadius: "50%",
|
|
53398
|
+
backgroundColor: zX(o.name),
|
|
53399
|
+
display: "flex",
|
|
53400
|
+
alignItems: "center",
|
|
53401
|
+
justifyContent: "center",
|
|
53402
|
+
fontSize: 11,
|
|
53403
|
+
fontWeight: 600,
|
|
53404
|
+
color: "#fff"
|
|
53405
|
+
},
|
|
53406
|
+
children: _X(o.name)
|
|
53407
|
+
}
|
|
53408
|
+
);
|
|
53409
|
+
return /* @__PURE__ */ h(
|
|
53410
|
+
ye.Item,
|
|
53411
|
+
{
|
|
53412
|
+
ref: o.setRefElement,
|
|
53386
53413
|
role: "option",
|
|
53387
53414
|
"aria-selected": t,
|
|
53388
53415
|
id: "mention-item-" + e,
|
|
53389
|
-
|
|
53416
|
+
"data-hovered": t || void 0,
|
|
53390
53417
|
onMouseEnter: r,
|
|
53391
53418
|
onClick: n,
|
|
53392
|
-
|
|
53393
|
-
|
|
53394
|
-
|
|
53395
|
-
|
|
53396
|
-
cursor: "pointer",
|
|
53397
|
-
background: t ? "var(--mantine-color-gray-1, #f1f3f5)" : "transparent",
|
|
53398
|
-
gap: 8,
|
|
53399
|
-
fontSize: 14,
|
|
53400
|
-
listStyle: "none"
|
|
53401
|
-
},
|
|
53402
|
-
children: [
|
|
53403
|
-
o.avatarUrl ? /* @__PURE__ */ h(
|
|
53404
|
-
"img",
|
|
53405
|
-
{
|
|
53406
|
-
src: o.avatarUrl,
|
|
53407
|
-
alt: "",
|
|
53408
|
-
style: {
|
|
53409
|
-
width: 28,
|
|
53410
|
-
height: 28,
|
|
53411
|
-
borderRadius: "50%",
|
|
53412
|
-
objectFit: "cover",
|
|
53413
|
-
flexShrink: 0
|
|
53414
|
-
}
|
|
53415
|
-
}
|
|
53416
|
-
) : /* @__PURE__ */ h(
|
|
53417
|
-
"span",
|
|
53418
|
-
{
|
|
53419
|
-
style: {
|
|
53420
|
-
width: 28,
|
|
53421
|
-
height: 28,
|
|
53422
|
-
borderRadius: "50%",
|
|
53423
|
-
backgroundColor: zX(o.name),
|
|
53424
|
-
display: "flex",
|
|
53425
|
-
alignItems: "center",
|
|
53426
|
-
justifyContent: "center",
|
|
53427
|
-
flexShrink: 0,
|
|
53428
|
-
fontSize: 11,
|
|
53429
|
-
fontWeight: 600,
|
|
53430
|
-
color: "#fff"
|
|
53431
|
-
},
|
|
53432
|
-
children: _X(o.name)
|
|
53433
|
-
}
|
|
53434
|
-
),
|
|
53435
|
-
/* @__PURE__ */ h("span", { children: o.name })
|
|
53436
|
-
]
|
|
53437
|
-
},
|
|
53438
|
-
o.key
|
|
53419
|
+
leftSection: i,
|
|
53420
|
+
fz: 14,
|
|
53421
|
+
children: o.name
|
|
53422
|
+
}
|
|
53439
53423
|
);
|
|
53440
53424
|
}
|
|
53441
53425
|
function WX({
|
|
@@ -53530,41 +53514,20 @@ function WX({
|
|
|
53530
53514
|
}
|
|
53531
53515
|
},
|
|
53532
53516
|
children: [
|
|
53533
|
-
/* @__PURE__ */ h(ye.Target, { children: /* @__PURE__ */ h(
|
|
53534
|
-
/* @__PURE__ */ h(ye.Dropdown, { children: /* @__PURE__ */ h(
|
|
53535
|
-
|
|
53517
|
+
/* @__PURE__ */ h(ye.Target, { children: /* @__PURE__ */ h(St, { component: "span", w: 0, h: 0, display: "block" }) }),
|
|
53518
|
+
/* @__PURE__ */ h(ye.Dropdown, { children: f.length > 0 ? f.map((C, k) => /* @__PURE__ */ h(
|
|
53519
|
+
FX,
|
|
53536
53520
|
{
|
|
53537
|
-
|
|
53538
|
-
|
|
53539
|
-
|
|
53540
|
-
|
|
53521
|
+
index: k,
|
|
53522
|
+
isSelected: v === k,
|
|
53523
|
+
onClick: () => {
|
|
53524
|
+
y(k), A(C);
|
|
53541
53525
|
},
|
|
53542
|
-
|
|
53543
|
-
|
|
53544
|
-
|
|
53545
|
-
|
|
53546
|
-
|
|
53547
|
-
onClick: () => {
|
|
53548
|
-
y(k), A(C);
|
|
53549
|
-
},
|
|
53550
|
-
onMouseEnter: () => y(k),
|
|
53551
|
-
option: C
|
|
53552
|
-
},
|
|
53553
|
-
C.key
|
|
53554
|
-
)) : /* @__PURE__ */ h(
|
|
53555
|
-
"li",
|
|
53556
|
-
{
|
|
53557
|
-
style: {
|
|
53558
|
-
padding: "8px 12px",
|
|
53559
|
-
color: "#999",
|
|
53560
|
-
fontSize: 14,
|
|
53561
|
-
listStyle: "none"
|
|
53562
|
-
},
|
|
53563
|
-
children: n("editor.mention.noUsersFound")
|
|
53564
|
-
}
|
|
53565
|
-
)
|
|
53566
|
-
}
|
|
53567
|
-
) })
|
|
53526
|
+
onMouseEnter: () => y(k),
|
|
53527
|
+
option: C
|
|
53528
|
+
},
|
|
53529
|
+
C.key
|
|
53530
|
+
)) : /* @__PURE__ */ h(ye.Item, { disabled: !0, fz: 14, children: n("editor.mention.noUsersFound") }) })
|
|
53568
53531
|
]
|
|
53569
53532
|
}
|
|
53570
53533
|
) }) : null
|
|
@@ -54019,16 +53982,16 @@ function P4(e) {
|
|
|
54019
53982
|
var AQ = typeof document < "u", yQ = function() {
|
|
54020
53983
|
}, dl = AQ ? xl : yQ;
|
|
54021
53984
|
const CQ = {
|
|
54022
|
-
...
|
|
53985
|
+
...Et
|
|
54023
53986
|
}, wQ = CQ.useInsertionEffect, kQ = wQ || ((e) => e());
|
|
54024
53987
|
function xQ(e) {
|
|
54025
|
-
const t =
|
|
53988
|
+
const t = Et.useRef(() => {
|
|
54026
53989
|
if (process.env.NODE_ENV !== "production")
|
|
54027
53990
|
throw new Error("Cannot call an event handler while rendering.");
|
|
54028
53991
|
});
|
|
54029
53992
|
return kQ(() => {
|
|
54030
53993
|
t.current = e;
|
|
54031
|
-
}),
|
|
53994
|
+
}), Et.useCallback(function() {
|
|
54032
53995
|
for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
|
|
54033
53996
|
r[o] = arguments[o];
|
|
54034
53997
|
return t.current == null ? void 0 : t.current(...r);
|
|
@@ -55016,7 +54979,7 @@ function n9(e, t) {
|
|
|
55016
54979
|
return Math.round(t * n) / n;
|
|
55017
54980
|
}
|
|
55018
54981
|
function hp(e) {
|
|
55019
|
-
const t =
|
|
54982
|
+
const t = Et.useRef(e);
|
|
55020
54983
|
return b1(() => {
|
|
55021
54984
|
t.current = e;
|
|
55022
54985
|
}), t;
|
|
@@ -55035,20 +54998,20 @@ function uJ(e) {
|
|
|
55035
54998
|
transform: l = !0,
|
|
55036
54999
|
whileElementsMounted: c,
|
|
55037
55000
|
open: d
|
|
55038
|
-
} = e, [f, m] =
|
|
55001
|
+
} = e, [f, m] = Et.useState({
|
|
55039
55002
|
x: 0,
|
|
55040
55003
|
y: 0,
|
|
55041
55004
|
strategy: n,
|
|
55042
55005
|
placement: t,
|
|
55043
55006
|
middlewareData: {},
|
|
55044
55007
|
isPositioned: !1
|
|
55045
|
-
}), [p, g] =
|
|
55008
|
+
}), [p, g] = Et.useState(r);
|
|
55046
55009
|
nh(p, r) || g(r);
|
|
55047
|
-
const [v, A] =
|
|
55010
|
+
const [v, A] = Et.useState(null), [y, C] = Et.useState(null), k = Et.useCallback((Q) => {
|
|
55048
55011
|
Q !== T.current && (T.current = Q, A(Q));
|
|
55049
|
-
}, []), E =
|
|
55012
|
+
}, []), E = Et.useCallback((Q) => {
|
|
55050
55013
|
Q !== S.current && (S.current = Q, C(Q));
|
|
55051
|
-
}, []), M = i || v, I = s || y, T =
|
|
55014
|
+
}, []), M = i || v, I = s || y, T = Et.useRef(null), S = Et.useRef(null), R = Et.useRef(f), N = c != null, _ = hp(c), z = hp(o), P = hp(d), j = Et.useCallback(() => {
|
|
55052
55015
|
if (!T.current || !S.current)
|
|
55053
55016
|
return;
|
|
55054
55017
|
const Q = {
|
|
@@ -55076,7 +55039,7 @@ function uJ(e) {
|
|
|
55076
55039
|
isPositioned: !1
|
|
55077
55040
|
})));
|
|
55078
55041
|
}, [d]);
|
|
55079
|
-
const B =
|
|
55042
|
+
const B = Et.useRef(!1);
|
|
55080
55043
|
b1(() => (B.current = !0, () => {
|
|
55081
55044
|
B.current = !1;
|
|
55082
55045
|
}), []), b1(() => {
|
|
@@ -55086,15 +55049,15 @@ function uJ(e) {
|
|
|
55086
55049
|
j();
|
|
55087
55050
|
}
|
|
55088
55051
|
}, [M, I, j, _, N]);
|
|
55089
|
-
const U =
|
|
55052
|
+
const U = Et.useMemo(() => ({
|
|
55090
55053
|
reference: T,
|
|
55091
55054
|
floating: S,
|
|
55092
55055
|
setReference: k,
|
|
55093
55056
|
setFloating: E
|
|
55094
|
-
}), [k, E]), Y =
|
|
55057
|
+
}), [k, E]), Y = Et.useMemo(() => ({
|
|
55095
55058
|
reference: M,
|
|
55096
55059
|
floating: I
|
|
55097
|
-
}), [M, I]), H =
|
|
55060
|
+
}), [M, I]), H = Et.useMemo(() => {
|
|
55098
55061
|
const Q = {
|
|
55099
55062
|
position: n,
|
|
55100
55063
|
left: 0,
|
|
@@ -55115,7 +55078,7 @@ function uJ(e) {
|
|
|
55115
55078
|
top: ee
|
|
55116
55079
|
};
|
|
55117
55080
|
}, [n, l, Y.floating, f.x, f.y]);
|
|
55118
|
-
return
|
|
55081
|
+
return Et.useMemo(() => ({
|
|
55119
55082
|
...f,
|
|
55120
55083
|
update: j,
|
|
55121
55084
|
refs: U,
|
|
@@ -55190,7 +55153,7 @@ const dJ = (e) => {
|
|
|
55190
55153
|
options: [e, t]
|
|
55191
55154
|
};
|
|
55192
55155
|
}, pJ = {
|
|
55193
|
-
...
|
|
55156
|
+
...Et
|
|
55194
55157
|
};
|
|
55195
55158
|
let r9 = !1, gJ = 0;
|
|
55196
55159
|
const o9 = () => (
|
|
@@ -55199,10 +55162,10 @@ const o9 = () => (
|
|
|
55199
55162
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + gJ++
|
|
55200
55163
|
);
|
|
55201
55164
|
function bJ() {
|
|
55202
|
-
const [e, t] =
|
|
55165
|
+
const [e, t] = Et.useState(() => r9 ? o9() : void 0);
|
|
55203
55166
|
return dl(() => {
|
|
55204
55167
|
e == null && t(o9());
|
|
55205
|
-
}, []),
|
|
55168
|
+
}, []), Et.useEffect(() => {
|
|
55206
55169
|
r9 = !0;
|
|
55207
55170
|
}, []), e;
|
|
55208
55171
|
}
|
|
@@ -55234,10 +55197,10 @@ function yJ() {
|
|
|
55234
55197
|
}
|
|
55235
55198
|
};
|
|
55236
55199
|
}
|
|
55237
|
-
const CJ = /* @__PURE__ */
|
|
55200
|
+
const CJ = /* @__PURE__ */ Et.createContext(null), wJ = /* @__PURE__ */ Et.createContext(null), kJ = () => {
|
|
55238
55201
|
var e;
|
|
55239
|
-
return ((e =
|
|
55240
|
-
}, xJ = () =>
|
|
55202
|
+
return ((e = Et.useContext(CJ)) == null ? void 0 : e.id) || null;
|
|
55203
|
+
}, xJ = () => Et.useContext(wJ);
|
|
55241
55204
|
function mw(e) {
|
|
55242
55205
|
return "data-floating-ui-" + e;
|
|
55243
55206
|
}
|
|
@@ -55253,8 +55216,8 @@ const SJ = {
|
|
|
55253
55216
|
width: "1px",
|
|
55254
55217
|
top: 0,
|
|
55255
55218
|
left: 0
|
|
55256
|
-
}, i9 = /* @__PURE__ */
|
|
55257
|
-
const [r, o] =
|
|
55219
|
+
}, i9 = /* @__PURE__ */ Et.forwardRef(function(t, n) {
|
|
55220
|
+
const [r, o] = Et.useState();
|
|
55258
55221
|
dl(() => {
|
|
55259
55222
|
gQ() && o("button");
|
|
55260
55223
|
}, []);
|
|
@@ -55276,13 +55239,13 @@ const SJ = {
|
|
|
55276
55239
|
position: "fixed",
|
|
55277
55240
|
top: 0,
|
|
55278
55241
|
left: 0
|
|
55279
|
-
}, pw = /* @__PURE__ */
|
|
55242
|
+
}, pw = /* @__PURE__ */ Et.createContext(null), s9 = /* @__PURE__ */ mw("portal");
|
|
55280
55243
|
function EJ(e) {
|
|
55281
55244
|
e === void 0 && (e = {});
|
|
55282
55245
|
const {
|
|
55283
55246
|
id: t,
|
|
55284
55247
|
root: n
|
|
55285
|
-
} = e, r = fw(), o = MJ(), [i, s] =
|
|
55248
|
+
} = e, r = fw(), o = MJ(), [i, s] = Et.useState(null), l = Et.useRef(null);
|
|
55286
55249
|
return dl(() => () => {
|
|
55287
55250
|
i == null || i.remove(), queueMicrotask(() => {
|
|
55288
55251
|
l.current = null;
|
|
@@ -55312,14 +55275,14 @@ function LJ(e) {
|
|
|
55312
55275
|
} = e, i = EJ({
|
|
55313
55276
|
id: n,
|
|
55314
55277
|
root: r
|
|
55315
|
-
}), [s, l] =
|
|
55278
|
+
}), [s, l] = Et.useState(null), c = Et.useRef(null), d = Et.useRef(null), f = Et.useRef(null), m = Et.useRef(null), p = s == null ? void 0 : s.modal, g = s == null ? void 0 : s.open, v = (
|
|
55316
55279
|
// The FocusManager and therefore floating element are currently open/
|
|
55317
55280
|
// rendered.
|
|
55318
55281
|
!!s && // Guards are only for non-modal focus management.
|
|
55319
55282
|
!s.modal && // Don't render if unmount is transitioning.
|
|
55320
55283
|
s.open && o && !!(r || i)
|
|
55321
55284
|
);
|
|
55322
|
-
return
|
|
55285
|
+
return Et.useEffect(() => {
|
|
55323
55286
|
if (!i || !o || p)
|
|
55324
55287
|
return;
|
|
55325
55288
|
function A(y) {
|
|
@@ -55328,10 +55291,10 @@ function LJ(e) {
|
|
|
55328
55291
|
return i.addEventListener("focusin", A, !0), i.addEventListener("focusout", A, !0), () => {
|
|
55329
55292
|
i.removeEventListener("focusin", A, !0), i.removeEventListener("focusout", A, !0);
|
|
55330
55293
|
};
|
|
55331
|
-
}, [i, o, p]),
|
|
55294
|
+
}, [i, o, p]), Et.useEffect(() => {
|
|
55332
55295
|
i && (g || qb(i));
|
|
55333
55296
|
}, [g, i]), /* @__PURE__ */ Z(pw.Provider, {
|
|
55334
|
-
value:
|
|
55297
|
+
value: Et.useMemo(() => ({
|
|
55335
55298
|
preserveTabOrder: o,
|
|
55336
55299
|
beforeOutsideRef: c,
|
|
55337
55300
|
afterOutsideRef: d,
|
|
@@ -55370,32 +55333,32 @@ function LJ(e) {
|
|
|
55370
55333
|
})]
|
|
55371
55334
|
});
|
|
55372
55335
|
}
|
|
55373
|
-
const MJ = () =>
|
|
55336
|
+
const MJ = () => Et.useContext(pw);
|
|
55374
55337
|
function IJ(e) {
|
|
55375
55338
|
const {
|
|
55376
55339
|
open: t = !1,
|
|
55377
55340
|
onOpenChange: n,
|
|
55378
55341
|
elements: r
|
|
55379
|
-
} = e, o = fw(), i =
|
|
55342
|
+
} = e, o = fw(), i = Et.useRef({}), [s] = Et.useState(() => yJ()), l = kJ() != null;
|
|
55380
55343
|
if (process.env.NODE_ENV !== "production") {
|
|
55381
55344
|
const g = r.reference;
|
|
55382
55345
|
g && !no(g) && AJ("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
55383
55346
|
}
|
|
55384
|
-
const [c, d] =
|
|
55347
|
+
const [c, d] = Et.useState(r.reference), f = xQ((g, v, A) => {
|
|
55385
55348
|
i.current.openEvent = g ? v : void 0, s.emit("openchange", {
|
|
55386
55349
|
open: g,
|
|
55387
55350
|
event: v,
|
|
55388
55351
|
reason: A,
|
|
55389
55352
|
nested: l
|
|
55390
55353
|
}), n == null || n(g, v, A);
|
|
55391
|
-
}), m =
|
|
55354
|
+
}), m = Et.useMemo(() => ({
|
|
55392
55355
|
setPositionReference: d
|
|
55393
|
-
}), []), p =
|
|
55356
|
+
}), []), p = Et.useMemo(() => ({
|
|
55394
55357
|
reference: c || r.reference || null,
|
|
55395
55358
|
floating: r.floating || null,
|
|
55396
55359
|
domReference: r.reference
|
|
55397
55360
|
}), [c, r.reference, r.floating]);
|
|
55398
|
-
return
|
|
55361
|
+
return Et.useMemo(() => ({
|
|
55399
55362
|
dataRef: i,
|
|
55400
55363
|
open: t,
|
|
55401
55364
|
onOpenChange: f,
|
|
@@ -55416,7 +55379,7 @@ function NJ(e) {
|
|
|
55416
55379
|
floating: null,
|
|
55417
55380
|
...e.elements
|
|
55418
55381
|
}
|
|
55419
|
-
}), r = e.rootContext || n, o = r.elements, [i, s] =
|
|
55382
|
+
}), r = e.rootContext || n, o = r.elements, [i, s] = Et.useState(null), [l, c] = Et.useState(null), f = (o == null ? void 0 : o.domReference) || i, m = Et.useRef(null), p = xJ();
|
|
55420
55383
|
dl(() => {
|
|
55421
55384
|
f && (m.current = f);
|
|
55422
55385
|
}, [f]);
|
|
@@ -55428,27 +55391,27 @@ function NJ(e) {
|
|
|
55428
55391
|
reference: l
|
|
55429
55392
|
}
|
|
55430
55393
|
}
|
|
55431
|
-
}), v =
|
|
55394
|
+
}), v = Et.useCallback((E) => {
|
|
55432
55395
|
const M = no(E) ? {
|
|
55433
55396
|
getBoundingClientRect: () => E.getBoundingClientRect(),
|
|
55434
55397
|
getClientRects: () => E.getClientRects(),
|
|
55435
55398
|
contextElement: E
|
|
55436
55399
|
} : E;
|
|
55437
55400
|
c(M), g.refs.setReference(M);
|
|
55438
|
-
}, [g.refs]), A =
|
|
55401
|
+
}, [g.refs]), A = Et.useCallback((E) => {
|
|
55439
55402
|
(no(E) || E === null) && (m.current = E, s(E)), (no(g.refs.reference.current) || g.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
55440
55403
|
// `null` to support `positionReference` + an unstable `reference`
|
|
55441
55404
|
// callback ref.
|
|
55442
55405
|
E !== null && !no(E)) && g.refs.setReference(E);
|
|
55443
|
-
}, [g.refs]), y =
|
|
55406
|
+
}, [g.refs]), y = Et.useMemo(() => ({
|
|
55444
55407
|
...g.refs,
|
|
55445
55408
|
setReference: A,
|
|
55446
55409
|
setPositionReference: v,
|
|
55447
55410
|
domReference: m
|
|
55448
|
-
}), [g.refs, A, v]), C =
|
|
55411
|
+
}), [g.refs, A, v]), C = Et.useMemo(() => ({
|
|
55449
55412
|
...g.elements,
|
|
55450
55413
|
domReference: f
|
|
55451
|
-
}), [g.elements, f]), k =
|
|
55414
|
+
}), [g.elements, f]), k = Et.useMemo(() => ({
|
|
55452
55415
|
...g,
|
|
55453
55416
|
...r,
|
|
55454
55417
|
refs: y,
|
|
@@ -55459,7 +55422,7 @@ function NJ(e) {
|
|
|
55459
55422
|
r.dataRef.current.floatingContext = k;
|
|
55460
55423
|
const E = p == null ? void 0 : p.nodesRef.current.find((M) => M.id === t);
|
|
55461
55424
|
E && (E.context = k);
|
|
55462
|
-
}),
|
|
55425
|
+
}), Et.useMemo(() => ({
|
|
55463
55426
|
...g,
|
|
55464
55427
|
context: k,
|
|
55465
55428
|
refs: y,
|
|
@@ -55908,7 +55871,7 @@ export {
|
|
|
55908
55871
|
wr as a4,
|
|
55909
55872
|
rD as a5,
|
|
55910
55873
|
V$ as a6,
|
|
55911
|
-
|
|
55874
|
+
Lt as b,
|
|
55912
55875
|
Vd as c,
|
|
55913
55876
|
iF as d,
|
|
55914
55877
|
_r as e,
|