UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.08 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(_0x39b5a3,_0x155614){const _0x2ca027=_0x4f64,_0x1ea347=_0x39b5a3();while(!![]){try{const _0x39e17c=parseInt(_0x2ca027(0xdd))/0x1+-parseInt(_0x2ca027(0xe8))/0x2*(-parseInt(_0x2ca027(0xe2))/0x3)+-parseInt(_0x2ca027(0xea))/0x4+parseInt(_0x2ca027(0xc2))/0x5*(-parseInt(_0x2ca027(0xd6))/0x6)+parseInt(_0x2ca027(0xdb))/0x7*(parseInt(_0x2ca027(0xed))/0x8)+parseInt(_0x2ca027(0xc6))/0x9*(-parseInt(_0x2ca027(0xef))/0xa)+-parseInt(_0x2ca027(0xe9))/0xb*(-parseInt(_0x2ca027(0xe1))/0xc);if(_0x39e17c===_0x155614)break;else _0x1ea347['push'](_0x1ea347['shift']());}catch(_0x422544){_0x1ea347['push'](_0x1ea347['shift']());}}}(_0x279c,0x6b6d2));export function getRangesWithAttribute(_0x22c936,_0xea1279,_0x367466){const _0x3551c6=_0x4f64,_0x5672d8=[];for(const _0x4c8009 of _0xea1279[_0x3551c6(0xd7)]())_0x4c8009[_0x3551c6(0xdf)](_0x22c936)&&_0x5672d8[_0x3551c6(0xde)](_0x367466[_0x3551c6(0xda)](_0x4c8009));return _0x5672d8;}function _0x4f64(_0x52fc5c,_0x105abc){const _0x279cb8=_0x279c();return _0x4f64=function(_0x4f643c,_0x2f049f){_0x4f643c=_0x4f643c-0xbd;let _0x5b407f=_0x279cb8[_0x4f643c];return _0x5b407f;},_0x4f64(_0x52fc5c,_0x105abc);}function _0x279c(){const _0x54c5dd=['previousPosition','12909228mUgvBz','2637cHctzl','insert','addClass','isContent','start','markerRange','862ibpgND','11EMsBJj','58668xdXmPd','plugins','schema','3466136zxklLR','getCustomProperty','10GaPFsN','isAtEnd','_splitMarkerName','isLimit','getWalker','markerName','elementEnd','model','nextSibling','4345165vOxfka','consumable','get','parent','7579548MrzFiq','bindElementToMarker','mapper','name','TrackChangesEditing','writer','isBlock','test','activeMarkers','ck-suggestion-marker-','type','toViewPosition','includes','createUIElement','addHighlight','item','6mkqcmO','getItems','ck-suggestion-marker--active','span','createRangeOn','7vvFAoJ','toViewElement','278005yDotIj','push','hasAttribute'];_0x279c=function(){return _0x54c5dd;};return _0x279c();}export function downcastSplitMergeMarker(_0x2b529c,_0xa3a304,{showActiveMarker:_0xddd9fd=!0x0}={}){const _0x54312d=_0x4f64,_0xd2c355=_0x2b529c[_0x54312d(0xeb)][_0x54312d(0xc4)](_0x54312d(0xca));return(_0x37d94a,_0x4fcc8e,_0x5636ed)=>{const _0x338dc8=_0x54312d;if(!_0x5636ed[_0x338dc8(0xc3)][_0x338dc8(0xcd)](_0x4fcc8e[_0x338dc8(0xe7)],_0x37d94a[_0x338dc8(0xc9)]))return;const _0x382293=_0x4fcc8e[_0x338dc8(0xe7)][_0x338dc8(0xbd)](),_0x4d6454=_0x4fcc8e[_0x338dc8(0xe7)][_0x338dc8(0xe6)],_0x2a0314=_0x2b529c[_0x338dc8(0xc0)][_0x338dc8(0xec)];let _0x231e12=null,_0x40f396=null,_0x148e34=!0x1,_0x3532b2=!0x1;for(const _0x4ced9f of _0x382293){const _0x44af3f=_0x4ced9f[_0x338dc8(0xd5)];_0x148e34=_0x148e34||_0x2a0314[_0x338dc8(0xe5)](_0x44af3f);const _0xd7c3dd=_0x5636ed[_0x338dc8(0xc8)][_0x338dc8(0xdc)](_0x44af3f);if(_0xd7c3dd&&_0xd7c3dd[_0x338dc8(0xee)](_0x338dc8(0xd4)))return;_0x338dc8(0xbf)==_0x4ced9f[_0x338dc8(0xd0)]&&(_0x2a0314[_0x338dc8(0xcc)](_0x44af3f)&&!_0x2a0314[_0x338dc8(0xf2)](_0x44af3f)&&(_0x44af3f[_0x338dc8(0xc1)]||_0x4d6454[_0x338dc8(0xf0)]?_0x231e12&&_0x231e12[_0x338dc8(0xc5)]==_0x44af3f||(_0x231e12=_0x44af3f,_0x38b24d(_0x4ced9f[_0x338dc8(0xe0)]),_0x3532b2=!0x0):_0x40f396=_0x40f396||_0x4ced9f[_0x338dc8(0xe0)]));}function _0x38b24d(_0x34cf2d){const _0x334887=_0x338dc8,{id:_0xd7abdb,authorId:_0x182351}=_0xd2c355[_0x334887(0xf1)](_0x4fcc8e[_0x334887(0xbe)]),_0x44429d=_0x5636ed[_0x334887(0xcb)][_0x334887(0xd3)](_0x334887(0xd9),{'class':_0x334887(0xcf)+_0xa3a304,'data-suggestion':_0xd7abdb,'data-author-id':_0x182351}),_0x2d3898=_0x5636ed[_0x334887(0xc8)][_0x334887(0xd1)](_0x34cf2d);_0xddd9fd&&_0xd2c355[_0x334887(0xce)][_0x334887(0xd2)](_0x4fcc8e[_0x334887(0xbe)])&&_0x5636ed[_0x334887(0xcb)][_0x334887(0xe4)](_0x334887(0xd8),_0x44429d),_0x5636ed[_0x334887(0xcb)][_0x334887(0xe3)](_0x2d3898,_0x44429d),_0x5636ed[_0x334887(0xc8)][_0x334887(0xc7)](_0x44429d,_0x4fcc8e[_0x334887(0xbe)]);}_0x148e34||_0x3532b2||!_0x40f396||_0x38b24d(_0x40f396);};}