@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 7.86 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 _0x222114=_0x2244;(function(_0x33293c,_0x2f8b37){const _0x1e3479=_0x2244,_0x542ffc=_0x33293c();while(!![]){try{const _0x1be168=-parseInt(_0x1e3479(0x105))/0x1+parseInt(_0x1e3479(0xea))/0x2+-parseInt(_0x1e3479(0x115))/0x3+-parseInt(_0x1e3479(0x118))/0x4*(parseInt(_0x1e3479(0xe6))/0x5)+parseInt(_0x1e3479(0x11c))/0x6*(-parseInt(_0x1e3479(0xe4))/0x7)+-parseInt(_0x1e3479(0x121))/0x8*(parseInt(_0x1e3479(0x113))/0x9)+parseInt(_0x1e3479(0x102))/0xa;if(_0x1be168===_0x2f8b37)break;else _0x542ffc['push'](_0x542ffc['shift']());}catch(_0x17755c){_0x542ffc['push'](_0x542ffc['shift']());}}}(_0x22ef,0x1b7b2));function _0x2244(_0x5bc187,_0x21faa3){const _0x22ef01=_0x22ef();return _0x2244=function(_0x2244e6,_0x1da27d){_0x2244e6=_0x2244e6-0xe3;let _0x387294=_0x22ef01[_0x2244e6];return _0x387294;},_0x2244(_0x5bc187,_0x21faa3);}import{FocusCycler as _0x17b4db,View as _0x3f5e42,ViewCollection as _0x3659c6}from'ckeditor5/src/ui.js';import{FocusTracker as _0xd08dad,KeystrokeHandler as _0x50fb7b}from'ckeditor5/src/utils.js';function _0x22ef(){const _0x3e3d3c=['parseFromString','3505GSvGjT','editor','fire','render','115206pSPWVn','descriptionParts','SUGGESTION_THREAD_DESCRIPTION','disableComments','focusCycler','CommentView','isEnabled','content','bind','isReadOnly','destroy','set','focusTracker','ariaLabel','hasDirtyComment','canDiscard','join','keystrokes','_createCommentThreadInputView','authoredAt','_config','commentThread','author','value','7861850UdOSmt','isActive','length','125195FazOXn','_model','target','locale','assign','setData','showInput','commentThreadInputView','commentsListView','commentInputView','editorConfig','tab','focusables','_localUser','1153071BwPgvx','_createCommentViews','451245YzRtnh','canAccept','element','1076CmLFOo','delegate','SUGGESTION_THREAD_ARIA_LABEL','text/html','104196EhrCLi','textContent','removeComment','isDirty','ariaDescriptionView','8LkVAcr','cancel','addComment','disabledSubmit','formatDateTime','name','updateComment','map','focus','shift+tab','body','submit','56zFoRYm'];_0x22ef=function(){return _0x3e3d3c;};return _0x22ef();}import{AriaDescriptionView as _0x3031fe,setupThreadKeyboardNavigation as _0x4b7a6e}from'ckeditor5-collaboration/src/collaboration-core.js';import{getTranslation as _0xb2fdd7}from'../../utils/common-translations.js';import{renderDescription as _0x825360}from'../../utils/utils.js';export default class us extends _0x3f5e42{[_0x222114(0x10d)];[_0x222114(0x10c)];[_0x222114(0x120)];[_0x222114(0x111)];[_0x222114(0xf6)];[_0x222114(0xfb)];[_0x222114(0xee)];[_0x222114(0x106)];[_0x222114(0x112)];[_0x222114(0xfe)];constructor(_0xf88efb,_0x56194f,_0xd7a330,_0x543ea7){const _0x21d32d=_0x222114;super(_0xf88efb),this[_0x21d32d(0x10d)]=null,this[_0x21d32d(0x10c)]=null,this[_0x21d32d(0x120)]=new _0x3031fe(_0xf88efb,_0xb2fdd7(_0xf88efb,_0x21d32d(0xec))),this[_0x21d32d(0xf5)](_0x21d32d(0x103),!0x1),this[_0x21d32d(0xf5)](_0x21d32d(0xfd),_0x56194f[_0x21d32d(0xfd)]),this[_0x21d32d(0xf2)](_0x21d32d(0xfd))['to'](_0x56194f),this[_0x21d32d(0xf5)](_0x21d32d(0xeb),[]),this[_0x21d32d(0xf5)](_0x21d32d(0x11f),!0x1),this[_0x21d32d(0xf5)](_0x21d32d(0xf0),!0x1),this[_0x21d32d(0xf5)](_0x21d32d(0x116),!0x1),this[_0x21d32d(0xf5)](_0x21d32d(0xf9),!0x1),this[_0x21d32d(0xf2)](_0x21d32d(0xf7))['to'](this,_0x21d32d(0x104),_0x56194f,_0x21d32d(0xfd),this,_0x21d32d(0xeb),(_0x2c5eb8,_0xa1c12c,_0x205541)=>{const _0x5036de=_0x21d32d,_0xbb962d=_0x205541[_0x5036de(0x128)](_0x4e26b6=>_0x825360(_0x4e26b6[_0x5036de(0xf1)]))[_0x5036de(0xfa)]('.\x20')+'.';return _0xb2fdd7(this[_0x5036de(0x108)],_0x5036de(0x11a),[_0x2c5eb8-0x1,_0x56194f[_0x5036de(0x100)][_0x5036de(0x126)],_0xa1c12c?_0x543ea7[_0x5036de(0x125)](_0xa1c12c):'',new DOMParser()[_0x5036de(0xe5)](_0xbb962d,_0x5036de(0x11b))[_0x5036de(0x12b)][_0x5036de(0x11d)]]);}),this[_0x21d32d(0x111)]=new _0x3659c6(),this[_0x21d32d(0xf6)]=new _0xd08dad(),this[_0x21d32d(0xfb)]=new _0x50fb7b(),this[_0x21d32d(0xee)]=new _0x17b4db({'focusables':this[_0x21d32d(0x111)],'focusTracker':this[_0x21d32d(0xf6)],'keystrokeHandler':this[_0x21d32d(0xfb)],'keystrokeHandlerOptions':{'filter':_0x54e296=>_0x54e296[_0x21d32d(0x107)]!==this[_0x21d32d(0x117)]},'actions':{'focusPrevious':_0x21d32d(0x12a),'focusNext':_0x21d32d(0x110)}}),this[_0x21d32d(0x106)]=_0x56194f,this[_0x21d32d(0x112)]=_0xd7a330,this[_0x21d32d(0xfe)]=_0x543ea7,_0x543ea7[_0x21d32d(0xed)]?this[_0x21d32d(0xf5)](_0x21d32d(0x104),0x1):this[_0x21d32d(0x114)]();}[_0x222114(0xe9)](){const _0x4b6d26=_0x222114;super[_0x4b6d26(0xe9)](),_0x4b7a6e(this,this[_0x4b6d26(0x111)]);}[_0x222114(0x129)](){const _0x47db6c=_0x222114;this[_0x47db6c(0x117)][_0x47db6c(0x129)]();}[_0x222114(0xf4)](){const _0x27c771=_0x222114;this[_0x27c771(0x10d)]&&this[_0x27c771(0x10d)][_0x27c771(0xf4)](),this[_0x27c771(0x10c)]&&this[_0x27c771(0x10c)][_0x27c771(0xf4)](),super[_0x27c771(0xf4)]();}[_0x222114(0x114)](){const _0x571048=_0x222114,{CommentsListView:_0x4d312b}=this[_0x571048(0xfe)];this[_0x571048(0x10d)]=new _0x4d312b(this[_0x571048(0x108)],this[_0x571048(0x106)][_0x571048(0xff)],Object[_0x571048(0x109)]({'CommentView':this[_0x571048(0xfe)][_0x571048(0xef)]},this[_0x571048(0xfe)])),this[_0x571048(0x10d)][_0x571048(0x119)](_0x571048(0x11e))['to'](this),this[_0x571048(0x10d)][_0x571048(0x119)](_0x571048(0x127))['to'](this),this[_0x571048(0x10d)][_0x571048(0xf2)](_0x571048(0x103))['to'](this),this[_0x571048(0xf5)](_0x571048(0x104),this[_0x571048(0x10d)][_0x571048(0x104)]+0x1),this[_0x571048(0xf2)](_0x571048(0x104))['to'](this[_0x571048(0x10d)],_0x571048(0x104),_0x5435b8=>_0x5435b8+0x1),this[_0x571048(0x10c)]=this[_0x571048(0xfc)](),this['on'](_0x571048(0x11e),()=>this[_0x571048(0x129)]()),this[_0x571048(0xf2)](_0x571048(0x11f))['to'](this[_0x571048(0x10d)],_0x571048(0xf8),this[_0x571048(0x10c)][_0x571048(0x10e)],_0x571048(0x101),(_0x554719,_0x264c55)=>_0x554719||!!_0x264c55);}[_0x222114(0xfc)](){const _0xeb0124=_0x222114,{CommentThreadInputView:_0x515a8f}=this[_0xeb0124(0xfe)],_0x5c0b9a=new _0x515a8f(this[_0xeb0124(0x108)],this[_0xeb0124(0x112)],this[_0xeb0124(0xfe)][_0xeb0124(0x10f)]),_0x224ff6=_0x5c0b9a[_0xeb0124(0x10e)];return _0x5c0b9a[_0xeb0124(0xf2)](_0xeb0124(0x10b))['to'](this,_0xeb0124(0x103),this[_0xeb0124(0x106)][_0xeb0124(0xff)],_0xeb0124(0xf3),_0x224ff6,_0xeb0124(0x101),(_0x2ca13a,_0x5c5865,_0x105688)=>!!_0x105688||_0x2ca13a&&!_0x5c5865),_0x224ff6['on'](_0xeb0124(0xe3),(_0x3c4823,_0x3e6c4a)=>{const _0x1de876=_0xeb0124;this[_0x1de876(0xe8)](_0x1de876(0x123),_0x3e6c4a),_0x224ff6[_0x1de876(0xe7)][_0x1de876(0x10a)]('');}),_0x224ff6['on'](_0xeb0124(0x122),()=>this[_0xeb0124(0x129)]()),_0x224ff6[_0xeb0124(0xf2)](_0xeb0124(0x124))['to'](this[_0xeb0124(0x106)][_0xeb0124(0xff)],_0xeb0124(0xf3)),_0x5c0b9a;}}