UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.62 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x43a7(_0x36ba37,_0x1ee6c0){const _0x5a6a9c=_0x5a6a();return _0x43a7=function(_0x43a7eb,_0x57fca7){_0x43a7eb=_0x43a7eb-0x10f;let _0xe0fec2=_0x5a6a9c[_0x43a7eb];return _0xe0fec2;},_0x43a7(_0x36ba37,_0x1ee6c0);}const _0x1bf663=_0x43a7;(function(_0x4365b0,_0x2ce712){const _0x140d11=_0x43a7,_0x2b5000=_0x4365b0();while(!![]){try{const _0x2efc7b=-parseInt(_0x140d11(0x12f))/0x1*(-parseInt(_0x140d11(0x125))/0x2)+-parseInt(_0x140d11(0x116))/0x3*(-parseInt(_0x140d11(0x140))/0x4)+-parseInt(_0x140d11(0x124))/0x5*(-parseInt(_0x140d11(0x149))/0x6)+parseInt(_0x140d11(0x121))/0x7+parseInt(_0x140d11(0x11e))/0x8*(-parseInt(_0x140d11(0x14c))/0x9)+parseInt(_0x140d11(0x112))/0xa+parseInt(_0x140d11(0x134))/0xb*(-parseInt(_0x140d11(0x12b))/0xc);if(_0x2efc7b===_0x2ce712)break;else _0x2b5000['push'](_0x2b5000['shift']());}catch(_0x380943){_0x2b5000['push'](_0x2b5000['shift']());}}}(_0x5a6a,0x4a715));import{Plugin as _0x41f1bc}from'ckeditor5/src/core.js';import{LiveRange as _0x1a906a}from'ckeditor5/src/engine.js';import{Delete as _0x35a5b5}from'ckeditor5/src/typing.js';import{downcastSplitMergeMarker as _0x133125}from'./utils.js';function _0x5a6a(){const _0x537714=['commands','TrackChangesEditing','9XnIwIn','addMarker:suggestion:deletion','plugins','delete','2550420BIZNfp','createSelection','remove','unbindElementFromMarkerName','12HHmSiA','editing','selection','writer','buffer','$graveyard','showSuggestionHighlights','setSelection','2616952kkgVue','enableCommand','fromRange','562359zLcgEM','editor','requires','195FaZviH','122358dLBqbp','deleteForward','data','get','createRange','unlock','60QzKgHz','model','enqueueChange','options','3vmgejm','rootName','start','forward','downcastDispatcher','1310551tzKlAz','merge','batch','document','modifySelection','root','lock','bind','isCollapsed','removeMarker:suggestion:deletion','init','markerNameToElements','191412ZXazTb','markerName','high','detach','mapper','end','unit','uiElement','getFirstRange','79602pPzSEs'];_0x5a6a=function(){return _0x537714;};return _0x5a6a();}export default class z extends _0x41f1bc{static get[_0x1bf663(0x123)](){return[_0x35a5b5];}[_0x1bf663(0x13e)](){const _0x13e349=_0x1bf663,_0x288d86=this[_0x13e349(0x122)],_0x2fc4aa=_0x288d86[_0x13e349(0x110)][_0x13e349(0x128)](_0x13e349(0x14b));_0x2fc4aa[_0x13e349(0x11f)](_0x13e349(0x111));const _0x4b4b75=_0x288d86[_0x13e349(0x14a)][_0x13e349(0x128)](_0x13e349(0x126));_0x2fc4aa[_0x13e349(0x11f)](_0x13e349(0x126),(_0x429dd8,_0x3419a2={})=>{const _0x79be1f=_0x13e349,_0x4cd2e4=_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x113)](_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x137)][_0x79be1f(0x118)]);_0x4cd2e4[_0x79be1f(0x13c)]&&_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x138)](_0x4cd2e4,{'direction':_0x79be1f(0x132),'unit':_0x3419a2[_0x79be1f(0x146)]});const _0x1aca1f=_0x4cd2e4[_0x79be1f(0x148)](),_0x289a86=_0x1a906a[_0x79be1f(0x120)](_0x1aca1f);let _0x1c91fc;_0x429dd8(_0x3419a2),_0x1c91fc=_0x79be1f(0x11b)==_0x289a86[_0x79be1f(0x139)][_0x79be1f(0x130)]?_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x129)](_0x1aca1f[_0x79be1f(0x131)]):_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x129)](_0x289a86[_0x79be1f(0x131)],_0x289a86[_0x79be1f(0x145)]),_0x289a86[_0x79be1f(0x143)](),_0x288d86[_0x79be1f(0x12c)][_0x79be1f(0x12d)](_0x4b4b75[_0x79be1f(0x11a)][_0x79be1f(0x136)],_0x3e089f=>{const _0x4771e6=_0x79be1f;_0x4b4b75[_0x4771e6(0x11a)][_0x4771e6(0x13a)](),_0x3e089f[_0x4771e6(0x11d)](_0x3e089f[_0x4771e6(0x129)](_0x1c91fc[_0x4771e6(0x145)])),_0x4b4b75[_0x4771e6(0x11a)][_0x4771e6(0x12a)]();});}),_0x288d86[_0x13e349(0x117)][_0x13e349(0x133)]['on'](_0x13e349(0x10f),_0x133125(_0x288d86,_0x13e349(0x135)),{'priority':_0x13e349(0x142)}),_0x288d86[_0x13e349(0x127)][_0x13e349(0x133)]['on'](_0x13e349(0x10f),(_0x13d522,_0x4dfeaa,_0x4a7918)=>{const _0x2ad15e=_0x13e349;_0x4a7918[_0x2ad15e(0x12e)][_0x2ad15e(0x11c)]&&_0x133125(_0x288d86,_0x2ad15e(0x135),{'showActiveMarker':!0x1})[_0x2ad15e(0x13b)](this)(_0x13d522,_0x4dfeaa,_0x4a7918);},{'priority':_0x13e349(0x142)}),_0x288d86[_0x13e349(0x117)][_0x13e349(0x133)]['on'](_0x13e349(0x13d),(_0x317302,_0x40713d,_0x99f80b)=>{const _0x59f7bc=_0x13e349,_0x243393=_0x99f80b[_0x59f7bc(0x144)][_0x59f7bc(0x13f)](_0x40713d[_0x59f7bc(0x141)]);if(_0x243393){for(const _0x38e1df of _0x243393)_0x38e1df['is'](_0x59f7bc(0x147))&&(_0x99f80b[_0x59f7bc(0x144)][_0x59f7bc(0x115)](_0x38e1df,_0x40713d[_0x59f7bc(0x141)]),_0x99f80b[_0x59f7bc(0x119)][_0x59f7bc(0x114)](_0x38e1df));}},{'priority':_0x13e349(0x142)});}}