UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.8 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 _0x24cb(_0x112ead,_0x24ddee){const _0x2dbca4=_0x2dbc();return _0x24cb=function(_0x24cb57,_0x4ca61c){_0x24cb57=_0x24cb57-0xd7;let _0x144772=_0x2dbca4[_0x24cb57];return _0x144772;},_0x24cb(_0x112ead,_0x24ddee);}function _0x2dbc(){const _0x27cc54=['filter','indentCodeBlock','ELEMENT_CODE_BLOCK','TrackChangesEditing','change','selection','parent','markBlockFormat','languages','codeBlock','enableCommand','commands','type','label','locale','registerDescriptionCallback','371610CVzMQM','language','model','descriptionFactory','schema','afterInit','commandName','from','registerElementLabel','4700898cYFDuy','isLimit','CodeBlock','checkChild','find','123128FMvaNW','has','3973840GTUecA','rootElement','value','formatBlock','blockName','*Set\x20format:*\x20%0','outdentCodeBlock','config','format','toLowerCase','getSelectedBlocks','7xNeMyv','commandParams','get','139565EdZqSt','name','document','2050644Dduyby','*Remove\x20format:*\x20%0','plugins','40844zslWmY','editor','24ezINoL','27LJSbQk','forceValue'];_0x2dbc=function(){return _0x27cc54;};return _0x2dbc();}const _0x1b0cc9=_0x24cb;(function(_0x5606bf,_0x2074a9){const _0x532caa=_0x24cb,_0x2e47fd=_0x5606bf();while(!![]){try{const _0x22435b=parseInt(_0x532caa(0x100))/0x1+-parseInt(_0x532caa(0xeb))/0x2*(-parseInt(_0x532caa(0xee))/0x3)+-parseInt(_0x532caa(0xe8))/0x4+parseInt(_0x532caa(0xe5))/0x5*(parseInt(_0x532caa(0xed))/0x6)+parseInt(_0x532caa(0xe2))/0x7*(parseInt(_0x532caa(0x10e))/0x8)+parseInt(_0x532caa(0x109))/0x9+-parseInt(_0x532caa(0xd7))/0xa;if(_0x22435b===_0x2074a9)break;else _0x2e47fd['push'](_0x2e47fd['shift']());}catch(_0x21e561){_0x2e47fd['push'](_0x2e47fd['shift']());}}}(_0x2dbc,0x47f48));import{Plugin as _0x581b2c}from'ckeditor5/src/core.js';import{getTranslation as _0x4cf974}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x3bf965}from'../utils/utils.js';export default class H extends _0x581b2c{[_0x1b0cc9(0x105)](){const _0x56d780=_0x1b0cc9,_0x376b49=this[_0x56d780(0xec)];if(!_0x376b49[_0x56d780(0xea)][_0x56d780(0x10f)](_0x56d780(0x10b)))return;const _0x3f373a=_0x376b49[_0x56d780(0xea)][_0x56d780(0xe4)](_0x56d780(0xf3)),_0x1b3718=_0x376b49[_0x56d780(0xfe)],_0x399001=_0x376b49[_0x56d780(0xde)][_0x56d780(0xe4)](_0x56d780(0xf9))[_0x56d780(0xf8)],_0x524dd9=_0x376b49[_0x56d780(0xfb)][_0x56d780(0xe4)](_0x56d780(0xf9));_0x3f373a[_0x56d780(0xfa)](_0x56d780(0xf1)),_0x3f373a[_0x56d780(0xfa)](_0x56d780(0xdd)),_0x3f373a[_0x56d780(0xfa)](_0x56d780(0xf9),(_0x2c3427,_0x598770={})=>{const _0x1f03e2=_0x56d780,_0x1899ed=_0x376b49[_0x1f03e2(0x102)],_0x141a2b=_0x376b49[_0x1f03e2(0x102)][_0x1f03e2(0xe7)][_0x1f03e2(0xf5)],_0x4cc358=_0x598770&&void 0x0!==_0x598770[_0x1f03e2(0xef)]?_0x598770[_0x1f03e2(0xef)]:!_0x524dd9[_0x1f03e2(0xd9)];let _0x8092c5;_0x598770[_0x1f03e2(0x101)]||(_0x598770[_0x1f03e2(0x101)]=_0x399001[0x0][_0x1f03e2(0x101)]),_0x8092c5=_0x4cc358?Array[_0x1f03e2(0x107)](_0x141a2b[_0x1f03e2(0xe1)]())[_0x1f03e2(0xf0)](_0xd9d737=>eo(_0xd9d737)||function(_0x5c30e9,_0x105d4c){const _0x2564cd=_0x1f03e2;if(_0x5c30e9['is'](_0x2564cd(0xd8))||_0x105d4c[_0x2564cd(0x10a)](_0x5c30e9))return!0x1;return _0x105d4c[_0x2564cd(0x10c)](_0x5c30e9[_0x2564cd(0xf6)],_0x2564cd(0xf9));}(_0xd9d737,_0x1899ed[_0x1f03e2(0x104)])):Array[_0x1f03e2(0x107)](_0x141a2b[_0x1f03e2(0xe1)]())[_0x1f03e2(0xf0)](_0x24745b=>eo(_0x24745b));const _0x3d2ab4=_0x3bf965(_0x8092c5,_0x1899ed);_0x1899ed[_0x1f03e2(0xf4)](()=>{const _0xfc29af=_0x1f03e2;for(const _0x21b18c of _0x3d2ab4)_0x3f373a[_0xfc29af(0xf7)](_0x21b18c,{'commandName':_0xfc29af(0xf9),'commandParams':[{..._0x598770,'forceValue':_0x4cc358}],'formatGroupId':_0xfc29af(0xdb)});});}),(_0x3f373a[_0x56d780(0x103)][_0x56d780(0x108)](_0x56d780(0xf9),_0x569f97=>_0x4cf974(_0x1b3718,_0x56d780(0xf2),_0x569f97)),_0x3f373a[_0x56d780(0x103)][_0x56d780(0xff)](_0x1db6a3=>{const _0x2f0500=_0x56d780;if(_0x2f0500(0xda)!=_0x1db6a3[_0x2f0500(0xfc)])return;const _0x2196e9=_0x1b3718['t'],{data:_0x5068c2}=_0x1db6a3;if(!_0x5068c2||_0x2f0500(0xf9)!=_0x5068c2[_0x2f0500(0x106)])return;const _0x221365=_0x5068c2[_0x2f0500(0xe3)][0x0][_0x2f0500(0x101)],_0x19f666=_0x2196e9(_0x399001[_0x2f0500(0x10d)](_0x3d7780=>_0x3d7780[_0x2f0500(0x101)]===_0x221365)[_0x2f0500(0xfd)])[_0x2f0500(0xe0)]();return _0x5068c2[_0x2f0500(0xe3)][0x0][_0x2f0500(0xef)]?{'type':_0x2f0500(0xdf),'content':_0x4cf974(_0x1b3718,_0x2f0500(0xdc),_0x4cf974(_0x1b3718,_0x2f0500(0xf2),0x1)+'\x20('+_0x19f666+')')}:{'type':_0x2f0500(0xdf),'content':_0x4cf974(_0x1b3718,_0x2f0500(0xe9),_0x4cf974(_0x1b3718,_0x2f0500(0xf2),0x1))};}));}}function eo(_0x464070){const _0x24720f=_0x1b0cc9;return _0x24720f(0xf9)==_0x464070[_0x24720f(0xe6)];}