UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.87 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 _0x5a31(){const _0x2cf324=['filter','afterInit','format','change','language','get','getSelectedBlocks','plugins','46887knWIRe','700581GnAMMv','commandParams','descriptionFactory','commandName','codeBlock','formatBlock','languages','outdentCodeBlock','blockName','commands','ELEMENT_CODE_BLOCK','type','toLowerCase','has','parent','registerElementLabel','isLimit','1457728qnryWg','601370NPccXW','150hAhBOg','835746ONxiNH','locale','117mjmzjg','model','selection','editor','registerDescriptionCallback','config','markBlockFormat','forceValue','enableCommand','84235JJdYgv','value','TrackChangesEditing','find','checkChild','3248576nPdHTM','document','186tswGlO','*Remove\x20format:*\x20%0','from','CodeBlock','indentCodeBlock','rootElement','*Set\x20format:*\x20%0','label','name','schema'];_0x5a31=function(){return _0x2cf324;};return _0x5a31();}const _0x49d45a=_0x304d;(function(_0x33606b,_0x1b9661){const _0xfd73da=_0x304d,_0x250a4a=_0x33606b();while(!![]){try{const _0x2b60f5=-parseInt(_0xfd73da(0x183))/0x1+parseInt(_0xfd73da(0x182))/0x2*(parseInt(_0xfd73da(0x16e))/0x3)+parseInt(_0xfd73da(0x180))/0x4+-parseInt(_0xfd73da(0x18e))/0x5*(parseInt(_0xfd73da(0x15c))/0x6)+parseInt(_0xfd73da(0x16f))/0x7+-parseInt(_0xfd73da(0x15a))/0x8+-parseInt(_0xfd73da(0x185))/0x9*(-parseInt(_0xfd73da(0x181))/0xa);if(_0x2b60f5===_0x1b9661)break;else _0x250a4a['push'](_0x250a4a['shift']());}catch(_0x175361){_0x250a4a['push'](_0x250a4a['shift']());}}}(_0x5a31,0x9fc3c));import{Plugin as _0x171f9b}from'ckeditor5/src/core.js';import{getTranslation as _0x1cd846}from'../utils/common-translations.js';function _0x304d(_0x1cdea5,_0x370cc5){const _0x5a31d9=_0x5a31();return _0x304d=function(_0x304d24,_0x46103f){_0x304d24=_0x304d24-0x15a;let _0x3730f9=_0x5a31d9[_0x304d24];return _0x3730f9;},_0x304d(_0x1cdea5,_0x370cc5);}import{getRangesOfBlockGroups as _0x55e736}from'../utils/utils.js';export default class H extends _0x171f9b{[_0x49d45a(0x167)](){const _0x326b80=_0x49d45a,_0x57348a=this[_0x326b80(0x188)];if(!_0x57348a[_0x326b80(0x16d)][_0x326b80(0x17c)](_0x326b80(0x15f)))return;const _0x560d5d=_0x57348a[_0x326b80(0x16d)][_0x326b80(0x16b)](_0x326b80(0x190)),_0x2f9a7f=_0x57348a[_0x326b80(0x184)],_0x3765d9=_0x57348a[_0x326b80(0x18a)][_0x326b80(0x16b)](_0x326b80(0x173))[_0x326b80(0x175)],_0x19dcc9=_0x57348a[_0x326b80(0x178)][_0x326b80(0x16b)](_0x326b80(0x173));_0x560d5d[_0x326b80(0x18d)](_0x326b80(0x160)),_0x560d5d[_0x326b80(0x18d)](_0x326b80(0x176)),_0x560d5d[_0x326b80(0x18d)](_0x326b80(0x173),(_0x413ef0,_0x3b7182={})=>{const _0x48922b=_0x326b80,_0x5b428c=_0x57348a[_0x48922b(0x186)],_0x394fe1=_0x57348a[_0x48922b(0x186)][_0x48922b(0x15b)][_0x48922b(0x187)],_0x1a8336=_0x3b7182&&void 0x0!==_0x3b7182[_0x48922b(0x18c)]?_0x3b7182[_0x48922b(0x18c)]:!_0x19dcc9[_0x48922b(0x18f)];let _0x786a02;_0x3b7182[_0x48922b(0x16a)]||(_0x3b7182[_0x48922b(0x16a)]=_0x3765d9[0x0][_0x48922b(0x16a)]),_0x786a02=_0x1a8336?Array[_0x48922b(0x15e)](_0x394fe1[_0x48922b(0x16c)]())[_0x48922b(0x166)](_0x289f3d=>eo(_0x289f3d)||function(_0x33a685,_0x133551){const _0x56f852=_0x48922b;if(_0x33a685['is'](_0x56f852(0x161))||_0x133551[_0x56f852(0x17f)](_0x33a685))return!0x1;return _0x133551[_0x56f852(0x192)](_0x33a685[_0x56f852(0x17d)],_0x56f852(0x173));}(_0x289f3d,_0x5b428c[_0x48922b(0x165)])):Array[_0x48922b(0x15e)](_0x394fe1[_0x48922b(0x16c)]())[_0x48922b(0x166)](_0x51af1f=>eo(_0x51af1f));const _0x897240=_0x55e736(_0x786a02,_0x5b428c);_0x5b428c[_0x48922b(0x169)](()=>{const _0x41c1fa=_0x48922b;for(const _0x131b79 of _0x897240)_0x560d5d[_0x41c1fa(0x18b)](_0x131b79,{'commandName':_0x41c1fa(0x173),'commandParams':[{..._0x3b7182,'forceValue':_0x1a8336}],'formatGroupId':_0x41c1fa(0x177)});});}),(_0x560d5d[_0x326b80(0x171)][_0x326b80(0x17e)](_0x326b80(0x173),_0x41ba3e=>_0x1cd846(_0x2f9a7f,_0x326b80(0x179),_0x41ba3e)),_0x560d5d[_0x326b80(0x171)][_0x326b80(0x189)](_0x4776ab=>{const _0x28e6cb=_0x326b80;if(_0x28e6cb(0x174)!=_0x4776ab[_0x28e6cb(0x17a)])return;const _0x25954d=_0x2f9a7f['t'],{data:_0x5583d5}=_0x4776ab;if(!_0x5583d5||_0x28e6cb(0x173)!=_0x5583d5[_0x28e6cb(0x172)])return;const _0x1fbd67=_0x5583d5[_0x28e6cb(0x170)][0x0][_0x28e6cb(0x16a)],_0x44aff8=_0x25954d(_0x3765d9[_0x28e6cb(0x191)](_0x411e5a=>_0x411e5a[_0x28e6cb(0x16a)]===_0x1fbd67)[_0x28e6cb(0x163)])[_0x28e6cb(0x17b)]();return _0x5583d5[_0x28e6cb(0x170)][0x0][_0x28e6cb(0x18c)]?{'type':_0x28e6cb(0x168),'content':_0x1cd846(_0x2f9a7f,_0x28e6cb(0x162),_0x1cd846(_0x2f9a7f,_0x28e6cb(0x179),0x1)+'\x20('+_0x44aff8+')')}:{'type':_0x28e6cb(0x168),'content':_0x1cd846(_0x2f9a7f,_0x28e6cb(0x15d),_0x1cd846(_0x2f9a7f,_0x28e6cb(0x179),0x1))};}));}}function eo(_0x25f895){const _0x1c3d71=_0x49d45a;return _0x1c3d71(0x173)==_0x25f895[_0x1c3d71(0x164)];}