@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.74 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x379cbd=_0x23e1;(function(_0xb93755,_0x19c4ac){const _0x29f743=_0x23e1,_0x3e5712=_0xb93755();while(!![]){try{const _0x5a049b=parseInt(_0x29f743(0x13f))/0x1*(-parseInt(_0x29f743(0x12c))/0x2)+parseInt(_0x29f743(0x12e))/0x3*(-parseInt(_0x29f743(0x133))/0x4)+parseInt(_0x29f743(0x13c))/0x5*(parseInt(_0x29f743(0x123))/0x6)+-parseInt(_0x29f743(0x135))/0x7*(parseInt(_0x29f743(0x131))/0x8)+-parseInt(_0x29f743(0x143))/0x9*(-parseInt(_0x29f743(0x12f))/0xa)+parseInt(_0x29f743(0x130))/0xb+parseInt(_0x29f743(0x127))/0xc*(parseInt(_0x29f743(0x126))/0xd);if(_0x5a049b===_0x19c4ac)break;else _0x3e5712['push'](_0x3e5712['shift']());}catch(_0x262260){_0x3e5712['push'](_0x3e5712['shift']());}}}(_0x5a9c,0xcf82d));import{Plugin as _0x25b343}from'ckeditor5/src/core.js';function _0x23e1(_0x4cf4eb,_0x27304a){const _0x5a9c45=_0x5a9c();return _0x23e1=function(_0x23e194,_0x11f852){_0x23e194=_0x23e194-0x121;let _0x3d1833=_0x5a9c45[_0x23e194];return _0x3d1833;},_0x23e1(_0x4cf4eb,_0x27304a);}function _0x5a9c(){const _0x494473=['9420YrXPGe','forEach','track_changes','collaboration_features','Users','2FiteEP','_trackChangesValueDuringImport','19476YBBIeY','353390NxMcOp','13502401sJzuce','1250984bPJDlf','_setSuggestionData','220HDlcpg','enableCommand','49jlKSXX','lowest','TrackChangesEditing','plugins','bind','_handleImportedData','get','53535ErsvUF','dataInsert','afterInit','1291357bSSadK','_trackChangesExecuted','value','high','171YApkNY','commands','execute','importWord','editor','948bRGtUX','listenTo','trackChanges','39GJeWsm'];_0x5a9c=function(){return _0x494473;};return _0x5a9c();}export default class ut extends _0x25b343{[_0x379cbd(0x12d)];[_0x379cbd(0x140)];constructor(_0x452e41){const _0x410406=_0x379cbd;super(_0x452e41),this[_0x410406(0x12d)]=!0x1,this[_0x410406(0x140)]=!0x1;}[_0x379cbd(0x13e)](){const _0x6d1c3e=_0x379cbd,_0x594763=this[_0x6d1c3e(0x122)],_0x13fbc9=_0x594763[_0x6d1c3e(0x144)][_0x6d1c3e(0x13b)](_0x6d1c3e(0x121)),_0x342f53=_0x594763[_0x6d1c3e(0x144)][_0x6d1c3e(0x13b)](_0x6d1c3e(0x125));_0x13fbc9&&(_0x13fbc9['on'](_0x6d1c3e(0x145),(_0xcf78bd,[,_0x169f94])=>{const _0x1301a8=_0x6d1c3e;this[_0x1301a8(0x12d)]=_0x342f53[_0x1301a8(0x141)],_0x169f94[_0x1301a8(0x12a)][_0x1301a8(0x129)]=!this[_0x1301a8(0x12d)];},{'priority':_0x6d1c3e(0x142)}),this[_0x6d1c3e(0x124)](_0x13fbc9,_0x6d1c3e(0x13d),this[_0x6d1c3e(0x13a)][_0x6d1c3e(0x139)](this)),this[_0x6d1c3e(0x124)](_0x13fbc9,_0x6d1c3e(0x13d),()=>{const _0x3991f7=_0x6d1c3e;this[_0x3991f7(0x140)]&&(_0x342f53[_0x3991f7(0x145)](),this[_0x3991f7(0x140)]=!0x1);},{'priority':_0x6d1c3e(0x136)}),_0x594763[_0x6d1c3e(0x138)][_0x6d1c3e(0x13b)](_0x6d1c3e(0x137))[_0x6d1c3e(0x134)](_0x6d1c3e(0x121)));}[_0x379cbd(0x13a)](_0x3d929b,_0x16c89c){const _0x1502d1=_0x379cbd,{suggestions:_0x536960}=_0x16c89c,_0x481d98=this[_0x1502d1(0x122)][_0x1502d1(0x144)][_0x1502d1(0x13b)](_0x1502d1(0x125)),_0x477236=_0x481d98[_0x1502d1(0x141)];this[_0x1502d1(0x12d)]!==_0x477236&&(_0x481d98[_0x1502d1(0x145)](),this[_0x1502d1(0x140)]=!0x0),_0x536960&&_0x536960[_0x1502d1(0x128)](({id:_0x3bc3ba,type:_0x3a3ffe,author:_0x329006,created_at:_0x3211e4})=>{const _0x3cb731=_0x1502d1,_0x3caad1={'id':_0x3bc3ba,'type':_0x3a3ffe,'authorId':this[_0x3cb731(0x122)][_0x3cb731(0x138)][_0x3cb731(0x13b)](_0x3cb731(0x12b))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x329006,'createdAt':_0x3211e4?new Date(_0x3211e4):new Date(),'source':_0x3cb731(0x121)}}};this[_0x3cb731(0x122)][_0x3cb731(0x138)][_0x3cb731(0x13b)](_0x3cb731(0x137))[_0x3cb731(0x132)](_0x3caad1);});}}