@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 9.54 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 _0x55e4(){const _0x4cab11=['LegacyListPropertiesEditing','_LIST_','listType','formatBlock','2662672VSSJAC','*Change\x20to:*\x20%0','from','registerDescriptionCallback','type','backward','config','listStyle','styles','handleDescriptions','push','130ywmLVx','TrackChangesEditing','_getSuggestionBlocks','listReversed','map','listItem','startIndex','9100040USmlwd','*Format:*\x20set\x20start\x20index\x20to\x20%0','getSelectedBlocks','forward','handleListStyleCommand','_getTranslationKeyForListStyle','change','createPositionAt','LegacyListUtils','formatInline','flat','plugins','createRange','has','listStart','before','editor','parent','document','*Format:*\x20set\x20order\x20to\x20regular','getLastPosition','21092FWjSEF','_getSuggestionBlocksForListStyle','bind','replace','descriptionFactory','element','get','commandParams','2152857ydtnRv','enableCommand','selection','markMultiRangeBlockFormat','numbered','list.properties','99606QPGeWg','commandName','2626XnQiuu','reversed','default','getAttribute','length','toUpperCase','model','locale','getFirstPosition','handleListStartCommand','afterInit','*Format:*\x20set\x20order\x20to\x20reversed','format','filter','375pYjlSb','handleListReversedCommand','getSiblingNodes','6032178uuPRsD','getListTypeFromListStyleType','unshift','ELEMENT_','1074NYGKMp'];_0x55e4=function(){return _0x4cab11;};return _0x55e4();}const _0x4dd108=_0x3492;(function(_0x5c63fc,_0x48d98f){const _0x59423f=_0x3492,_0x17aa77=_0x5c63fc();while(!![]){try{const _0x558a94=parseInt(_0x59423f(0x158))/0x1*(parseInt(_0x59423f(0x16d))/0x2)+-parseInt(_0x59423f(0x166))/0x3*(-parseInt(_0x59423f(0x148))/0x4)+parseInt(_0x59423f(0x12c))/0x5*(-parseInt(_0x59423f(0x156))/0x6)+-parseInt(_0x59423f(0x150))/0x7+-parseInt(_0x59423f(0x172))/0x8+parseInt(_0x59423f(0x169))/0x9+-parseInt(_0x59423f(0x133))/0xa;if(_0x558a94===_0x48d98f)break;else _0x17aa77['push'](_0x17aa77['shift']());}catch(_0x48c4fe){_0x17aa77['push'](_0x17aa77['shift']());}}}(_0x55e4,0xb8f0a));import{Plugin as _0x141dda}from'ckeditor5/src/core.js';import{getTranslation as _0x1f64e1}from'../utils/common-translations.js';function _0x3492(_0x3653cd,_0x1e2911){const _0x55e47a=_0x55e4();return _0x3492=function(_0x34924,_0x421ee0){_0x34924=_0x34924-0x129;let _0x3a6485=_0x55e47a[_0x34924];return _0x3a6485;},_0x3492(_0x3653cd,_0x1e2911);}export default class Q extends _0x141dda{[_0x4dd108(0x162)](){const _0x45edd2=_0x4dd108;if(!this[_0x45edd2(0x143)][_0x45edd2(0x13e)][_0x45edd2(0x140)](_0x45edd2(0x16e)))return;const _0x5dbddd=this[_0x45edd2(0x143)][_0x45edd2(0x178)][_0x45edd2(0x14e)](_0x45edd2(0x155)),_0x1bca4e=this[_0x45edd2(0x143)][_0x45edd2(0x13e)][_0x45edd2(0x14e)](_0x45edd2(0x12d));_0x5dbddd[_0x45edd2(0x129)]&&_0x1bca4e[_0x45edd2(0x151)](_0x45edd2(0x179),this[_0x45edd2(0x137)][_0x45edd2(0x14a)](this)),_0x5dbddd[_0x45edd2(0x159)]&&_0x1bca4e[_0x45edd2(0x151)](_0x45edd2(0x12f),this[_0x45edd2(0x167)][_0x45edd2(0x14a)](this)),_0x5dbddd[_0x45edd2(0x132)]&&_0x1bca4e[_0x45edd2(0x151)](_0x45edd2(0x141),this[_0x45edd2(0x161)][_0x45edd2(0x14a)](this)),_0x1bca4e[_0x45edd2(0x14c)][_0x45edd2(0x175)](this[_0x45edd2(0x12a)][_0x45edd2(0x14a)](this));}[_0x4dd108(0x137)](_0x946157,_0x389f79={}){const _0xdb78a1=_0x4dd108,_0x3045da=this[_0xdb78a1(0x143)][_0xdb78a1(0x13e)][_0xdb78a1(0x14e)](_0xdb78a1(0x12d)),_0x54901b=this[_0xdb78a1(0x149)]();this[_0xdb78a1(0x143)][_0xdb78a1(0x15e)][_0xdb78a1(0x139)](()=>{const _0x2e6850=_0xdb78a1;_0x3045da[_0x2e6850(0x153)](_0x54901b,{'commandName':_0x2e6850(0x179),'commandParams':[{'type':_0x389f79[_0x2e6850(0x176)]}],'formatGroupId':_0x2e6850(0x179)});});}[_0x4dd108(0x167)](_0x9091b6,_0x2b1997={}){const _0x457793=_0x4dd108,_0x454c3b=this[_0x457793(0x143)][_0x457793(0x13e)][_0x457793(0x14e)](_0x457793(0x12d)),_0x251905=this[_0x457793(0x12e)](_0x45e766=>_0x45e766['is'](_0x457793(0x14d),_0x457793(0x131))&&_0x457793(0x154)===_0x45e766[_0x457793(0x15b)](_0x457793(0x170)));if(_0x251905[_0x457793(0x15c)]<0x1)return;const _0x4438c7=_0x251905[_0x457793(0x130)](_0x23ea7f=>this[_0x457793(0x143)][_0x457793(0x15e)][_0x457793(0x13f)](this[_0x457793(0x143)][_0x457793(0x15e)][_0x457793(0x13a)](_0x23ea7f,_0x457793(0x142)),this[_0x457793(0x143)][_0x457793(0x15e)][_0x457793(0x13a)](_0x23ea7f,0x0)));this[_0x457793(0x143)][_0x457793(0x15e)][_0x457793(0x139)](()=>{const _0x37da2e=_0x457793;_0x454c3b[_0x37da2e(0x153)](_0x4438c7,{'commandName':_0x37da2e(0x12f),'commandParams':[{'reversed':_0x2b1997[_0x37da2e(0x159)]}],'formatGroupId':_0x37da2e(0x12f)});});}[_0x4dd108(0x161)](_0x251b90,_0x24ec77={}){const _0x4f2882=_0x4dd108,_0x697440=this[_0x4f2882(0x143)][_0x4f2882(0x13e)][_0x4f2882(0x14e)](_0x4f2882(0x12d)),_0x43e671=this[_0x4f2882(0x12e)](_0x2f8c8e=>_0x2f8c8e['is'](_0x4f2882(0x14d),_0x4f2882(0x131))&&_0x4f2882(0x154)===_0x2f8c8e[_0x4f2882(0x15b)](_0x4f2882(0x170)));if(_0x43e671[_0x4f2882(0x15c)]<0x1)return;const _0x35ce0b=_0x43e671[_0x4f2882(0x130)](_0x593a44=>this[_0x4f2882(0x143)][_0x4f2882(0x15e)][_0x4f2882(0x13f)](this[_0x4f2882(0x143)][_0x4f2882(0x15e)][_0x4f2882(0x13a)](_0x593a44,_0x4f2882(0x142)),this[_0x4f2882(0x143)][_0x4f2882(0x15e)][_0x4f2882(0x13a)](_0x593a44,0x0)));this[_0x4f2882(0x143)][_0x4f2882(0x15e)][_0x4f2882(0x139)](()=>{const _0x473600=_0x4f2882;_0x697440[_0x473600(0x153)](_0x35ce0b,{'commandName':_0x473600(0x141),'commandParams':[{'startIndex':_0x24ec77[_0x473600(0x132)]}],'formatGroupId':_0x473600(0x141)});});}[_0x4dd108(0x12a)](_0x43a7a7){const _0x562804=_0x4dd108;if(_0x562804(0x171)!=_0x43a7a7[_0x562804(0x176)]&&_0x562804(0x13c)!=_0x43a7a7[_0x562804(0x176)])return;const _0x37e505=this[_0x562804(0x143)][_0x562804(0x15f)],{data:_0x11d098}=_0x43a7a7;if(!_0x11d098)return;let _0x46c403,_0xe87732;switch(_0x11d098[_0x562804(0x157)]){case _0x562804(0x179):_0x46c403=_0x562804(0x173),_0xe87732={'type':_0x562804(0x164),'content':_0x1f64e1(_0x37e505,_0x46c403,_0x1f64e1(_0x37e505,this[_0x562804(0x138)](_0x11d098[_0x562804(0x14f)][0x0][_0x562804(0x176)])))};break;case _0x562804(0x12f):_0x46c403=_0x11d098[_0x562804(0x14f)][0x0][_0x562804(0x159)]?_0x562804(0x163):_0x562804(0x146),_0xe87732={'type':_0x562804(0x164),'content':_0x1f64e1(_0x37e505,_0x46c403)};break;case _0x562804(0x141):_0x46c403=_0x562804(0x134),_0xe87732={'type':_0x562804(0x164),'content':_0x1f64e1(_0x37e505,_0x46c403,_0x11d098[_0x562804(0x14f)][0x0][_0x562804(0x132)])};}return _0xe87732;}[_0x4dd108(0x149)](){const _0x3baca6=_0x4dd108,_0x4debb8=this[_0x3baca6(0x143)][_0x3baca6(0x13e)][_0x3baca6(0x14e)](_0x3baca6(0x13b));let _0x2693e4=Array[_0x3baca6(0x174)](this[_0x3baca6(0x143)][_0x3baca6(0x15e)][_0x3baca6(0x145)][_0x3baca6(0x152)][_0x3baca6(0x135)]());return _0x2693e4[0x0]?.['is'](_0x3baca6(0x14d),_0x3baca6(0x131))&&_0x2693e4[_0x3baca6(0x16b)](..._0x4debb8[_0x3baca6(0x168)](this[_0x3baca6(0x143)][_0x3baca6(0x15e)][_0x3baca6(0x145)][_0x3baca6(0x152)][_0x3baca6(0x160)](),_0x3baca6(0x177))),_0x2693e4[_0x2693e4[_0x3baca6(0x15c)]-0x1]?.['is'](_0x3baca6(0x14d),_0x3baca6(0x131))&&_0x2693e4[_0x3baca6(0x12b)](..._0x4debb8[_0x3baca6(0x168)](this[_0x3baca6(0x143)][_0x3baca6(0x15e)][_0x3baca6(0x145)][_0x3baca6(0x152)][_0x3baca6(0x147)](),_0x3baca6(0x136))),_0x2693e4=[...new Set(_0x2693e4)],this[_0x3baca6(0x143)][_0x3baca6(0x15e)][_0x3baca6(0x145)][_0x3baca6(0x152)][_0x3baca6(0x160)]()?.[_0x3baca6(0x144)]?.['is'](_0x3baca6(0x14d),_0x3baca6(0x131))&&(_0x2693e4=_0x2693e4[_0x3baca6(0x165)](_0x3abcca=>_0x3abcca['is'](_0x3baca6(0x14d),_0x3baca6(0x131)))),_0x2693e4;}[_0x4dd108(0x12e)](_0x167575){const _0x45aa51=_0x4dd108,_0x4eb275=this[_0x45aa51(0x143)][_0x45aa51(0x13e)][_0x45aa51(0x14e)](_0x45aa51(0x13b));let _0x3a0d93=Array[_0x45aa51(0x174)](this[_0x45aa51(0x143)][_0x45aa51(0x15e)][_0x45aa51(0x145)][_0x45aa51(0x152)][_0x45aa51(0x135)]())[_0x45aa51(0x165)](_0x167575)[_0x45aa51(0x130)](_0x489ab3=>{const _0x5e9399=_0x45aa51,_0x6964ff=this[_0x5e9399(0x143)][_0x5e9399(0x15e)][_0x5e9399(0x13a)](_0x489ab3,0x0);return[..._0x4eb275[_0x5e9399(0x168)](_0x6964ff,_0x5e9399(0x177)),..._0x4eb275[_0x5e9399(0x168)](_0x6964ff,_0x5e9399(0x136))];})[_0x45aa51(0x13d)]();return _0x3a0d93=[...new Set(_0x3a0d93)],_0x3a0d93;}[_0x4dd108(0x138)](_0x19a5a8){const _0x1bdd62=_0x4dd108;return _0x1bdd62(0x16c)+(this[_0x1bdd62(0x143)][_0x1bdd62(0x13e)][_0x1bdd62(0x14e)](_0x1bdd62(0x13b))[_0x1bdd62(0x16a)](_0x19a5a8)||_0x1bdd62(0x15a))[_0x1bdd62(0x15d)]()+_0x1bdd62(0x16f)+_0x19a5a8[_0x1bdd62(0x15d)]()[_0x1bdd62(0x14b)](/-/g,'_');}}