@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 9.83 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 _0x3d11(){const _0x5f019b=['descriptionFactory','push','todo','checkChild','todoListChecked','LegacyTodoListEditing','8Btvjii','2911515QXznBV','TrackChangesEditing','commandParams','13266710nEbXGo','getAttribute','execute','plugins','listType','document','add','markBlockFormat','change','model','blockName','name','checkTodoList','previousSibling','*Uncheck\x20item*','indentList','3988690kOCrjt','8363124dgpUGo','get','selection','14PeNNvZ','*Change\x20to:*\x20%0','editor','length','commandName','*Check\x20item*','replace','createRange','registerElementLabel','end','element','filter','5060034FitbYT','*Outdent:*\x20%0','nextSibling','formatBlock','listIndent','ELEMENT_LIST_ITEM','has','numberedList','formatInline','_selectedElements','1460192qhwRlb','type','paragraph','registerDescriptionCallback','commands','schema','value','getSelectedBlocks','*Indent:*\x20%0','1693311AkeWiv','enableCommand','from','List','findIndex','format','ELEMENT_NUMBERED_LIST','listItem','bulleted','isObject','LegacyListEditing','outdentList','forceValue','2LCSfwV','locale','createPositionAt','ELEMENT_BULLETED_LIST','slice','numbered','todoList','afterInit','ELEMENT_TODO_LIST','parent','bulletedList','before'];_0x3d11=function(){return _0x5f019b;};return _0x3d11();}const _0x24e8dd=_0x451f;(function(_0x146b75,_0x5b3852){const _0xe63a5=_0x451f,_0x861ee7=_0x146b75();while(!![]){try{const _0x2755ee=-parseInt(_0xe63a5(0xd0))/0x1*(-parseInt(_0xe63a5(0xdd))/0x2)+parseInt(_0xe63a5(0x9a))/0x3+parseInt(_0xe63a5(0x99))/0x4*(-parseInt(_0xe63a5(0xad))/0x5)+parseInt(_0xe63a5(0xae))/0x6+-parseInt(_0xe63a5(0xb1))/0x7*(-parseInt(_0xe63a5(0xc7))/0x8)+-parseInt(_0xe63a5(0xbd))/0x9+-parseInt(_0xe63a5(0x9d))/0xa;if(_0x2755ee===_0x5b3852)break;else _0x861ee7['push'](_0x861ee7['shift']());}catch(_0x4ad48b){_0x861ee7['push'](_0x861ee7['shift']());}}}(_0x3d11,0xe5169));import{Plugin as _0x5cbad6}from'ckeditor5/src/core.js';import{getTranslation as _0xd39cd1}from'../utils/common-translations.js';function _0x451f(_0x345537,_0x3593b8){const _0x3d1170=_0x3d11();return _0x451f=function(_0x451ffe,_0x2acc25){_0x451ffe=_0x451ffe-0x8a;let _0x214f60=_0x3d1170[_0x451ffe];return _0x214f60;},_0x451f(_0x345537,_0x3593b8);}export default class lt extends _0x5cbad6{[_0x24e8dd(0x8e)](){const _0x27f827=_0x24e8dd,_0xbc4d13=this[_0x27f827(0xb3)],_0x27e110=_0xbc4d13[_0x27f827(0xde)];if(!_0xbc4d13[_0x27f827(0xa0)][_0x27f827(0xc3)](_0x27f827(0xda)))return;const _0x57c7c7=_0xbc4d13[_0x27f827(0xa0)][_0x27f827(0xaf)](_0x27f827(0x9b)),_0x12b44d=_0xbc4d13[_0x27f827(0xa0)][_0x27f827(0xc3)](_0x27f827(0x98));function _0x21cd73(_0x52bb4b){return()=>{const _0x116527=_0x451f,_0x673be9=_0xbc4d13[_0x116527(0xa6)][_0x116527(0xa2)][_0x116527(0xb0)],_0x184a2f=_0xbc4d13[_0x116527(0xcb)][_0x116527(0xaf)](_0x52bb4b);if(_0x184a2f[_0x116527(0xcd)])return void _0xbc4d13[_0x116527(0x9f)](_0x116527(0xc9),{});const _0x345a3b=_0x52bb4b[_0x116527(0x8b)](0x0,-0x4),_0x4e8ee8=function(_0x4ffdac,_0x50bd43,_0x2586d8){const _0xf8fe2e=_0x116527;let _0x35dda9=Array[_0xf8fe2e(0xd2)](_0x4ffdac)[_0xf8fe2e(0xbc)](_0x15ec9f=>function(_0x49507f,_0x384353){const _0x1ce3dc=_0xf8fe2e;return _0x384353[_0x1ce3dc(0x96)](_0x49507f[_0x1ce3dc(0x90)],_0x1ce3dc(0xd7))&&!_0x384353[_0x1ce3dc(0xd9)](_0x49507f);}(_0x15ec9f,_0x2586d8));_0x35dda9=_0x35dda9[_0xf8fe2e(0xbc)](_0x536048=>!_0x536048['is'](_0xf8fe2e(0xbb),_0xf8fe2e(0xd7))||_0x536048[_0xf8fe2e(0x9e)](_0xf8fe2e(0xa1))!=_0x50bd43);const _0x5ab8fc=new Set();for(const _0x118608 of _0x35dda9)_0x118608['is'](_0xf8fe2e(0xbb),_0xf8fe2e(0xd7))?_0x5ab8fc[_0xf8fe2e(0xa3)](Le(_0x118608)):_0x5ab8fc[_0xf8fe2e(0xa3)](_0x118608);return Array[_0xf8fe2e(0xd2)](_0x5ab8fc);}(_0x673be9[_0x116527(0xce)](),_0x345a3b,_0xbc4d13[_0x116527(0xa6)][_0x116527(0xcc)]);_0xbc4d13[_0x116527(0xa6)][_0x116527(0xa5)](()=>{const _0x2a0064=_0x116527;for(const _0x3cbd2b of _0x4e8ee8)_0x57c7c7[_0x2a0064(0xa4)](_0x3cbd2b,{'commandName':_0x52bb4b,'commandParams':[{'forceValue':!_0x184a2f[_0x2a0064(0xcd)]}],'formatGroupId':_0x2a0064(0xa7)},Ee(_0x3cbd2b));});};}function _0x232c2e(_0x54ba91){return()=>{const _0x2fdfb9=_0x451f,_0x598263=function(_0x4778ce){const _0x519bf1=_0x451f;let _0x3332f9=Array[_0x519bf1(0xd2)](_0x4778ce);const _0x422b72=_0x3332f9[_0x519bf1(0xd4)](_0x4d01bc=>_0x519bf1(0xd7)!=_0x4d01bc[_0x519bf1(0xa8)]);return _0x422b72>-0x1&&(_0x3332f9=_0x3332f9[_0x519bf1(0x8b)](0x0,_0x422b72)),_0x3332f9;}(_0xbc4d13[_0x2fdfb9(0xa6)][_0x2fdfb9(0xa2)][_0x2fdfb9(0xb0)][_0x2fdfb9(0xce)]()),_0x1feb45=_0xbc4d13[_0x2fdfb9(0xa6)][_0x2fdfb9(0xb8)](_0xbc4d13[_0x2fdfb9(0xa6)][_0x2fdfb9(0xdf)](_0x598263[0x0],_0x2fdfb9(0x92)),_0xbc4d13[_0x2fdfb9(0xa6)][_0x2fdfb9(0xdf)](_0x598263[_0x598263[_0x2fdfb9(0xb4)]-0x1],_0x2fdfb9(0xba)));_0xbc4d13[_0x2fdfb9(0xa6)][_0x2fdfb9(0xa5)](()=>{const _0x2d7cd7=_0x2fdfb9;_0x57c7c7[_0x2d7cd7(0xa4)](_0x1feb45,{'commandName':_0x54ba91,'commandParams':[],'formatGroupId':_0x2d7cd7(0xc1)},function(_0x28bccc){const _0x4695bb=_0x2d7cd7,_0x10095b=new Set();for(const _0x4b9416 of _0x28bccc){let _0x542c02=_0x4b9416[_0x4695bb(0xbf)];for(;_0x542c02&&_0x542c02[_0x4695bb(0x9e)](_0x4695bb(0xc1))>_0x4b9416[_0x4695bb(0x9e)](_0x4695bb(0xc1));)_0x10095b[_0x4695bb(0xa3)](_0x542c02),_0x542c02=_0x542c02[_0x4695bb(0xbf)];}return Array[_0x4695bb(0xd2)](_0x10095b);}(_0x598263));});};}_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0xc4),_0x21cd73(_0x27f827(0xc4))),_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0x91),_0x21cd73(_0x27f827(0x91))),_0x12b44d&&_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0x8d),_0x21cd73(_0x27f827(0x8d))),_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0xac),_0x232c2e(_0x27f827(0xac))),_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0xdb),_0x232c2e(_0x27f827(0xdb))),_0x12b44d&&_0x57c7c7[_0x27f827(0xd1)](_0x27f827(0xa9),()=>{const _0x5f578d=_0x27f827,_0x5b8702=_0xbc4d13[_0x5f578d(0xcb)][_0x5f578d(0xaf)](_0x5f578d(0xa9)),_0xcd30da=Array[_0x5f578d(0xd2)](_0x5b8702[_0x5f578d(0xc6)]);_0xcd30da[_0x5f578d(0xbc)](_0x470863=>_0x470863[_0x5f578d(0x9e)](_0x5f578d(0x97))!=_0x5b8702[_0x5f578d(0xcd)]),_0xbc4d13[_0x5f578d(0xa6)][_0x5f578d(0xa5)](()=>{const _0x5e2ce5=_0x5f578d;for(const _0x2e9f47 of _0xcd30da)_0x57c7c7[_0x5e2ce5(0xa4)](_0x2e9f47,{'commandName':_0x5e2ce5(0xa9),'commandParams':[{'forceValue':!_0x5b8702[_0x5e2ce5(0xcd)]}]});});}),_0x57c7c7[_0x27f827(0x93)][_0x27f827(0xb9)](_0x27f827(0xd7),_0x56f22b=>_0xd39cd1(_0x27e110,_0x27f827(0xc2),_0x56f22b)),_0x57c7c7[_0x27f827(0x93)][_0x27f827(0xca)](_0x4f0dd1=>{const _0x36bef2=_0x27f827;if(_0x36bef2(0xc0)!=_0x4f0dd1[_0x36bef2(0xc8)]&&_0x36bef2(0xc5)!=_0x4f0dd1[_0x36bef2(0xc8)])return;const {data:_0x5d50ca}=_0x4f0dd1;if(_0x5d50ca){if(_0x36bef2(0xc4)==_0x5d50ca[_0x36bef2(0xb5)]||_0x36bef2(0x91)==_0x5d50ca[_0x36bef2(0xb5)]||_0x36bef2(0x8d)==_0x5d50ca[_0x36bef2(0xb5)])switch(_0x5d50ca[_0x36bef2(0xb5)][_0x36bef2(0xb7)](_0x36bef2(0xd3),'')){case _0x36bef2(0xd8):return _0x5df3eb(_0xd39cd1(_0x27e110,_0x36bef2(0x8a)));case _0x36bef2(0x8c):return _0x5df3eb(_0xd39cd1(_0x27e110,_0x36bef2(0xd6)));case _0x36bef2(0x95):return _0x5df3eb(_0xd39cd1(_0x27e110,_0x36bef2(0x8f)));}if(_0x36bef2(0xac)==_0x5d50ca[_0x36bef2(0xb5)])return{'type':_0x36bef2(0xd5),'content':_0xd39cd1(_0x27e110,_0x36bef2(0xcf),_0xd39cd1(_0x27e110,_0x36bef2(0xc2)))};if(_0x36bef2(0xdb)==_0x5d50ca[_0x36bef2(0xb5)])return{'type':_0x36bef2(0xd5),'content':_0xd39cd1(_0x27e110,_0x36bef2(0xbe),_0xd39cd1(_0x27e110,_0x36bef2(0xc2)))};if(_0x36bef2(0xa9)==_0x5d50ca[_0x36bef2(0xb5)])return _0x5d50ca[_0x36bef2(0x9c)][0x0][_0x36bef2(0xdc)]?{'type':_0x36bef2(0xd5),'content':_0xd39cd1(_0x27e110,_0x36bef2(0xb6))}:{'type':_0x36bef2(0xd5),'content':_0xd39cd1(_0x27e110,_0x36bef2(0xab))};}function _0x5df3eb(_0x56ded2){const _0x450444=_0x36bef2;return{'type':_0x450444(0xd5),'content':_0xd39cd1(_0x27e110,_0x450444(0xb2),_0x56ded2)};}});}}function Le(_0x525d11){const _0x29005a=_0x24e8dd,_0x4df8cb=_0x525d11[_0x29005a(0x9e)](_0x29005a(0xc1));if(0x0==_0x4df8cb)return _0x525d11;let _0x5b9192=_0x525d11;for(;_0x525d11[_0x29005a(0xaa)]&&_0x525d11[_0x29005a(0xaa)]['is'](_0x29005a(0xbb),_0x29005a(0xd7));){const _0x26c6a0=_0x525d11[_0x29005a(0xaa)][_0x29005a(0x9e)](_0x29005a(0xc1));if(_0x26c6a0==_0x4df8cb)_0x5b9192=_0x525d11[_0x29005a(0xaa)];else{if(_0x26c6a0<_0x4df8cb)break;}_0x525d11=_0x525d11[_0x29005a(0xaa)];}return _0x5b9192;}function Ee(_0x55bede){const _0x520c9e=_0x24e8dd,_0x17d7dd=[];if(_0x55bede['is'](_0x520c9e(0xbb),_0x520c9e(0xd7))&&_0x55bede[_0x520c9e(0x9e)](_0x520c9e(0xc1))>0x0){let _0x320852=_0x55bede[_0x520c9e(0xbf)];for(;_0x320852&&_0x520c9e(0xd7)==_0x320852[_0x520c9e(0xa8)]&&_0x320852[_0x520c9e(0x9e)](_0x520c9e(0xc1))==_0x55bede[_0x520c9e(0x9e)](_0x520c9e(0xc1));)_0x17d7dd[_0x520c9e(0x94)](_0x320852),_0x320852=_0x320852[_0x520c9e(0xbf)];}return _0x17d7dd;}