@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 5 kB
JavaScript
/*
* 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(_0x11f70f,_0x550105){const _0x3d88b3=_0x5bba,_0x5abff3=_0x11f70f();while(!![]){try{const _0x2350ae=parseInt(_0x3d88b3(0xa4))/0x1*(-parseInt(_0x3d88b3(0xb2))/0x2)+-parseInt(_0x3d88b3(0x9c))/0x3+-parseInt(_0x3d88b3(0xc2))/0x4*(parseInt(_0x3d88b3(0x9b))/0x5)+-parseInt(_0x3d88b3(0xb4))/0x6*(parseInt(_0x3d88b3(0x97))/0x7)+parseInt(_0x3d88b3(0xbc))/0x8+-parseInt(_0x3d88b3(0xb1))/0x9+parseInt(_0x3d88b3(0xa8))/0xa*(parseInt(_0x3d88b3(0x99))/0xb);if(_0x2350ae===_0x550105)break;else _0x5abff3['push'](_0x5abff3['shift']());}catch(_0x5006c2){_0x5abff3['push'](_0x5abff3['shift']());}}}(_0x50b6,0x98f5a));export function getRangesWithAttribute(_0x3f9b4e,_0x55b81f,_0xfa238e){const _0x4d7087=_0x5bba,_0x2a1ecf=[];for(const _0x49a67d of _0x55b81f[_0x4d7087(0xa6)]())_0x49a67d[_0x4d7087(0xa1)](_0x3f9b4e)&&_0x2a1ecf[_0x4d7087(0x93)](_0xfa238e[_0x4d7087(0x94)](_0x49a67d));return _0x2a1ecf;}function _0x5bba(_0x189bca,_0x583276){const _0x50b616=_0x50b6();return _0x5bba=function(_0x5bba6f,_0x1858e0){_0x5bba6f=_0x5bba6f-0x92;let _0x46dc31=_0x50b616[_0x5bba6f];return _0x46dc31;},_0x5bba(_0x189bca,_0x583276);}function _0x50b6(){const _0x4ee224=['includes','type','TrackChangesEditing','plugins','toViewElement','schema','item','test','7159977TzeEYP','1724482YNJJVs','_splitMarkerName','2121474GkGugu','ck-suggestion-marker--active','previousPosition','parent','isAtEnd','nextSibling','mapper','start','4550776AnpTqL','name','isContent','addHighlight','span','getWalker','929428ZTWpgH','writer','bindElementToMarker','toViewPosition','addClass','createUIElement','push','createRangeOn','model','get','14TwiOWu','markerName','11IYKPtn','consumable','5AfFwbB','3483861WbbYRz','insert','getCustomProperty','ck-suggestion-marker-','isBlock','hasAttribute','activeMarkers','isLimit','1pYfRwp','elementEnd','getItems','markerRange','38162710JWEXkE'];_0x50b6=function(){return _0x4ee224;};return _0x50b6();}export function downcastSplitMergeMarker(_0x37acfa,_0x374311,{showActiveMarker:_0x21cdf1=!0x0}={}){const _0x2476c0=_0x5bba,_0x13d3d7=_0x37acfa[_0x2476c0(0xac)][_0x2476c0(0x96)](_0x2476c0(0xab));return(_0x438054,_0x4bb9df,_0x181f28)=>{const _0x48f135=_0x2476c0;if(!_0x181f28[_0x48f135(0x9a)][_0x48f135(0xb0)](_0x4bb9df[_0x48f135(0xa7)],_0x438054[_0x48f135(0xbd)]))return;const _0x17c34e=_0x4bb9df[_0x48f135(0xa7)][_0x48f135(0xc1)](),_0x218138=_0x4bb9df[_0x48f135(0xa7)][_0x48f135(0xbb)],_0x48e4a1=_0x37acfa[_0x48f135(0x95)][_0x48f135(0xae)];let _0x18822a=null,_0x5f5aa3=null,_0x1688a9=!0x1,_0x3560dd=!0x1;for(const _0x2e3ce0 of _0x17c34e){const _0x3511f1=_0x2e3ce0[_0x48f135(0xaf)];_0x1688a9=_0x1688a9||_0x48e4a1[_0x48f135(0xbe)](_0x3511f1);const _0x2276d7=_0x181f28[_0x48f135(0xba)][_0x48f135(0xad)](_0x3511f1);if(_0x2276d7&&_0x2276d7[_0x48f135(0x9e)](_0x48f135(0xbf)))return;_0x48f135(0xa5)==_0x2e3ce0[_0x48f135(0xaa)]&&(_0x48e4a1[_0x48f135(0xa0)](_0x3511f1)&&!_0x48e4a1[_0x48f135(0xa3)](_0x3511f1)&&(_0x3511f1[_0x48f135(0xb9)]||_0x218138[_0x48f135(0xb8)]?_0x18822a&&_0x18822a[_0x48f135(0xb7)]==_0x3511f1||(_0x18822a=_0x3511f1,_0x39e783(_0x2e3ce0[_0x48f135(0xb6)]),_0x3560dd=!0x0):_0x5f5aa3=_0x5f5aa3||_0x2e3ce0[_0x48f135(0xb6)]));}function _0x39e783(_0x517720){const _0xa9b8c0=_0x48f135,{authorId:_0xa42fc7}=_0x13d3d7[_0xa9b8c0(0xb3)](_0x4bb9df[_0xa9b8c0(0x98)]),_0x59be93=_0x181f28[_0xa9b8c0(0xc3)][_0xa9b8c0(0x92)](_0xa9b8c0(0xc0),{'class':_0xa9b8c0(0x9f)+_0x374311,'data-author-id':_0xa42fc7}),_0x58bdde=_0x181f28[_0xa9b8c0(0xba)][_0xa9b8c0(0xc5)](_0x517720);_0x21cdf1&&_0x13d3d7[_0xa9b8c0(0xa2)][_0xa9b8c0(0xa9)](_0x4bb9df[_0xa9b8c0(0x98)])&&_0x181f28[_0xa9b8c0(0xc3)][_0xa9b8c0(0xc6)](_0xa9b8c0(0xb5),_0x59be93),_0x181f28[_0xa9b8c0(0xc3)][_0xa9b8c0(0x9d)](_0x58bdde,_0x59be93),_0x181f28[_0xa9b8c0(0xba)][_0xa9b8c0(0xc4)](_0x59be93,_0x4bb9df[_0xa9b8c0(0x98)]);}_0x1688a9||_0x3560dd||!_0x5f5aa3||_0x39e783(_0x5f5aa3);};}