UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.4 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x33bb5d=_0x4963;function _0x4963(_0x2ce01e,_0x29cc9d){const _0x3e1616=_0x3e16();return _0x4963=function(_0x496345,_0x493d41){_0x496345=_0x496345-0x1d9;let _0x2efa75=_0x3e1616[_0x496345];return _0x2efa75;},_0x4963(_0x2ce01e,_0x29cc9d);}function _0x3e16(){const _0x416994=['createRange','enableCommand','_isInDeletionRange','find','2175424sIJuQD','FindAndReplaceEditing','921812rZaage','799020oTYPiZ','handleFindCommand','createPositionAt','get','findPrevious','model','1626207SUprvU','getRange','1359524TViDmp','markers','results','replaceAll','replace','string','afterInit','suggestion:deletion','findByTextCallback','start','getMarkersGroup','282KlcOTB','16425896qpvWbn','end','plugins','editor','TrackChangesEditing','getIntersection','item','isArray','findNext','bind','9751FPiijU','filter','FindAndReplaceUtils','has'];_0x3e16=function(){return _0x416994;};return _0x3e16();}(function(_0x59d45d,_0x4abd7c){const _0x7c8665=_0x4963,_0x5e5d08=_0x59d45d();while(!![]){try{const _0x400446=-parseInt(_0x7c8665(0x1db))/0x1+-parseInt(_0x7c8665(0x1e4))/0x2+parseInt(_0x7c8665(0x1e2))/0x3+-parseInt(_0x7c8665(0x1d9))/0x4+parseInt(_0x7c8665(0x1dc))/0x5+parseInt(_0x7c8665(0x1ef))/0x6*(-parseInt(_0x7c8665(0x1fa))/0x7)+parseInt(_0x7c8665(0x1f0))/0x8;if(_0x400446===_0x4abd7c)break;else _0x5e5d08['push'](_0x5e5d08['shift']());}catch(_0x27ce17){_0x5e5d08['push'](_0x5e5d08['shift']());}}}(_0x3e16,0x84dd1));import{Plugin as _0x4fd0ed}from'ckeditor5/src/core.js';export default class Z extends _0x4fd0ed{[_0x33bb5d(0x1ea)](){const _0x568619=_0x33bb5d;if(!this[_0x568619(0x1f3)][_0x568619(0x1f2)][_0x568619(0x1fd)](_0x568619(0x1da)))return;const _0x4ba1c0=this[_0x568619(0x1f3)][_0x568619(0x1f2)][_0x568619(0x1df)](_0x568619(0x1f4));_0x4ba1c0[_0x568619(0x1ff)](_0x568619(0x201),this[_0x568619(0x1dd)][_0x568619(0x1f9)](this)),_0x4ba1c0[_0x568619(0x1ff)](_0x568619(0x1f8)),_0x4ba1c0[_0x568619(0x1ff)](_0x568619(0x1e0)),_0x4ba1c0[_0x568619(0x1ff)](_0x568619(0x1e8)),_0x4ba1c0[_0x568619(0x1ff)](_0x568619(0x1e7));}[_0x33bb5d(0x1dd)](_0xe5cbb0,_0x486f83,_0x386d48={}){const _0x504615=_0x33bb5d,_0x21ad77=this[_0x504615(0x1f3)][_0x504615(0x1f2)][_0x504615(0x1df)](_0x504615(0x1fc));return _0xe5cbb0(_0x327ef7=>{const _0x5dd47b=_0x504615;let _0x3e53fe=(_0x5dd47b(0x1e9)==typeof _0x486f83?_0x21ad77[_0x5dd47b(0x1ec)](_0x486f83,_0x386d48):_0x486f83)(_0x327ef7);Array[_0x5dd47b(0x1f7)](_0x3e53fe)&&(_0x3e53fe={'results':_0x3e53fe,'searchText':_0x5dd47b(0x1e9)==typeof _0x486f83?_0x486f83:''});const _0x4740aa=_0x3e53fe[_0x5dd47b(0x1e6)][_0x5dd47b(0x1fb)](_0x41293f=>!0x1===this[_0x5dd47b(0x200)](_0x41293f,_0x327ef7[_0x5dd47b(0x1f6)]));return{..._0x3e53fe,'results':_0x4740aa};},_0x386d48);}[_0x33bb5d(0x200)](_0x58c31e,_0x19c951){const _0xd8e332=_0x33bb5d,_0x17d1ba=this[_0xd8e332(0x1f3)][_0xd8e332(0x1e1)][_0xd8e332(0x1fe)](this[_0xd8e332(0x1f3)][_0xd8e332(0x1e1)][_0xd8e332(0x1de)](_0x19c951,_0x58c31e[_0xd8e332(0x1ed)]),this[_0xd8e332(0x1f3)][_0xd8e332(0x1e1)][_0xd8e332(0x1de)](_0x19c951,_0x58c31e[_0xd8e332(0x1f1)]));for(const _0x5f10ad of this[_0xd8e332(0x1f3)][_0xd8e332(0x1e1)][_0xd8e332(0x1e5)][_0xd8e332(0x1ee)](_0xd8e332(0x1eb)))if(null!==_0x17d1ba[_0xd8e332(0x1f5)](_0x5f10ad[_0xd8e332(0x1e3)]()))return!0x0;return!0x1;}}