UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 7.86 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x5d49f8=_0x39d4;(function(_0x452736,_0x526b34){const _0x467850=_0x39d4,_0x29055b=_0x452736();while(!![]){try{const _0x41b455=parseInt(_0x467850(0x14e))/0x1+-parseInt(_0x467850(0x15f))/0x2+parseInt(_0x467850(0x152))/0x3+parseInt(_0x467850(0x15c))/0x4*(-parseInt(_0x467850(0x170))/0x5)+parseInt(_0x467850(0x177))/0x6+-parseInt(_0x467850(0x182))/0x7+parseInt(_0x467850(0x164))/0x8;if(_0x41b455===_0x526b34)break;else _0x29055b['push'](_0x29055b['shift']());}catch(_0x51bfec){_0x29055b['push'](_0x29055b['shift']());}}}(_0x5c93,0x9c08b));import{FocusCycler as _0x3bc6db,View as _0x50f256,ViewCollection as _0x1d3973}from'ckeditor5/src/ui.js';import{FocusTracker as _0x50213a,KeystrokeHandler as _0x5ba2be}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x1f9fec,setupThreadKeyboardNavigation as _0x1b5411}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5c93(){const _0x101cf6=['isEnabled','1341185hPdKsP','editorConfig','locale','canDiscard','ariaDescriptionView','length','commentInputView','1959402OCoftc','textContent','body','value','focus','formatDateTime','render','assign','addComment','isActive','commentThread','6219794cEvVAP','keystrokes','_createCommentThreadInputView','isReadOnly','disabledSubmit','commentsListView','editor','isDirty','updateComment','focusCycler','setData','hasDirtyComment','_config','removeComment','set','canAccept','shift+tab','destroy','map','1055043dybTgW','focusables','commentThreadInputView','SUGGESTION_THREAD_ARIA_LABEL','3222642TGXfHv','target','text/html','tab','parseFromString','delegate','showInput','focusTracker','submit','_model','4WPNjpY','join','element','1705410totJYV','_localUser','ariaLabel','name','author','1542200hPKrBZ','SUGGESTION_THREAD_DESCRIPTION','authoredAt','CommentView','disableComments','descriptionParts','bind','_createCommentViews','cancel','fire','content'];_0x5c93=function(){return _0x101cf6;};return _0x5c93();}function _0x39d4(_0x16e8dd,_0x9d80bf){const _0x5c9357=_0x5c93();return _0x39d4=function(_0x39d410,_0x37d4e7){_0x39d410=_0x39d410-0x149;let _0x3ca9f9=_0x5c9357[_0x39d410];return _0x3ca9f9;},_0x39d4(_0x16e8dd,_0x9d80bf);}import{getTranslation as _0x448fc4}from'../../utils/common-translations.js';import{renderDescription as _0xe7fcf9}from'../../utils/utils.js';export class BaseSuggestionThreadView extends _0x50f256{[_0x5d49f8(0x187)];[_0x5d49f8(0x150)];[_0x5d49f8(0x174)];[_0x5d49f8(0x14f)];[_0x5d49f8(0x159)];[_0x5d49f8(0x183)];[_0x5d49f8(0x18b)];[_0x5d49f8(0x15b)];[_0x5d49f8(0x160)];[_0x5d49f8(0x18e)];constructor(_0x5c1a2e,_0x42a9b7,_0x37e074,_0x3c8952){const _0x3346ad=_0x5d49f8;super(_0x5c1a2e),this[_0x3346ad(0x187)]=null,this[_0x3346ad(0x150)]=null,this[_0x3346ad(0x174)]=new _0x1f9fec(_0x5c1a2e,_0x448fc4(_0x5c1a2e,_0x3346ad(0x165))),this[_0x3346ad(0x149)](_0x3346ad(0x180),!0x1),this[_0x3346ad(0x149)](_0x3346ad(0x166),_0x42a9b7[_0x3346ad(0x166)]),this[_0x3346ad(0x16a)](_0x3346ad(0x166))['to'](_0x42a9b7),this[_0x3346ad(0x149)](_0x3346ad(0x169),[]),this[_0x3346ad(0x149)](_0x3346ad(0x189),!0x1),this[_0x3346ad(0x149)](_0x3346ad(0x16f),!0x1),this[_0x3346ad(0x149)](_0x3346ad(0x14a),!0x1),this[_0x3346ad(0x149)](_0x3346ad(0x173),!0x1),this[_0x3346ad(0x16a)](_0x3346ad(0x161))['to'](this,_0x3346ad(0x175),_0x42a9b7,_0x3346ad(0x166),this,_0x3346ad(0x169),(_0x1f96cc,_0x1d23e0,_0x3307ed)=>{const _0x5c5c47=_0x3346ad,_0x242029=_0x3307ed[_0x5c5c47(0x14d)](_0x4176df=>_0xe7fcf9(_0x4176df[_0x5c5c47(0x16e)]))[_0x5c5c47(0x15d)]('.\x20')+'.';return _0x448fc4(this[_0x5c5c47(0x172)],_0x5c5c47(0x151),[_0x1f96cc-0x1,_0x42a9b7[_0x5c5c47(0x163)][_0x5c5c47(0x162)],_0x1d23e0?_0x3c8952[_0x5c5c47(0x17c)](_0x1d23e0):'',new DOMParser()[_0x5c5c47(0x156)](_0x242029,_0x5c5c47(0x154))[_0x5c5c47(0x179)][_0x5c5c47(0x178)]]);}),this[_0x3346ad(0x14f)]=new _0x1d3973(),this[_0x3346ad(0x159)]=new _0x50213a(),this[_0x3346ad(0x183)]=new _0x5ba2be(),this[_0x3346ad(0x18b)]=new _0x3bc6db({'focusables':this[_0x3346ad(0x14f)],'focusTracker':this[_0x3346ad(0x159)],'keystrokeHandler':this[_0x3346ad(0x183)],'keystrokeHandlerOptions':{'filter':_0x1ac2a3=>_0x1ac2a3[_0x3346ad(0x153)]!==this[_0x3346ad(0x15e)]},'actions':{'focusPrevious':_0x3346ad(0x14b),'focusNext':_0x3346ad(0x155)}}),this[_0x3346ad(0x15b)]=_0x42a9b7,this[_0x3346ad(0x160)]=_0x37e074,this[_0x3346ad(0x18e)]=_0x3c8952,_0x3c8952[_0x3346ad(0x168)]?this[_0x3346ad(0x149)](_0x3346ad(0x175),0x1):this[_0x3346ad(0x16b)]();}[_0x5d49f8(0x17d)](){const _0x1662a7=_0x5d49f8;super[_0x1662a7(0x17d)](),_0x1b5411(this,this[_0x1662a7(0x14f)]);}[_0x5d49f8(0x17b)](){const _0x2d4dc2=_0x5d49f8;this[_0x2d4dc2(0x15e)][_0x2d4dc2(0x17b)]();}[_0x5d49f8(0x14c)](){const _0x5c7fce=_0x5d49f8;this[_0x5c7fce(0x187)]&&this[_0x5c7fce(0x187)][_0x5c7fce(0x14c)](),this[_0x5c7fce(0x150)]&&this[_0x5c7fce(0x150)][_0x5c7fce(0x14c)](),super[_0x5c7fce(0x14c)]();}[_0x5d49f8(0x16b)](){const _0x8fde18=_0x5d49f8,{CommentsListView:_0x16367b}=this[_0x8fde18(0x18e)];this[_0x8fde18(0x187)]=new _0x16367b(this[_0x8fde18(0x172)],this[_0x8fde18(0x15b)][_0x8fde18(0x181)],Object[_0x8fde18(0x17e)]({'CommentView':this[_0x8fde18(0x18e)][_0x8fde18(0x167)]},this[_0x8fde18(0x18e)])),this[_0x8fde18(0x187)][_0x8fde18(0x157)](_0x8fde18(0x18f))['to'](this),this[_0x8fde18(0x187)][_0x8fde18(0x157)](_0x8fde18(0x18a))['to'](this),this[_0x8fde18(0x187)][_0x8fde18(0x16a)](_0x8fde18(0x180))['to'](this),this[_0x8fde18(0x149)](_0x8fde18(0x175),this[_0x8fde18(0x187)][_0x8fde18(0x175)]+0x1),this[_0x8fde18(0x16a)](_0x8fde18(0x175))['to'](this[_0x8fde18(0x187)],_0x8fde18(0x175),_0x4f8ca5=>_0x4f8ca5+0x1),this[_0x8fde18(0x150)]=this[_0x8fde18(0x184)](),this['on'](_0x8fde18(0x18f),()=>this[_0x8fde18(0x17b)]()),this[_0x8fde18(0x16a)](_0x8fde18(0x189))['to'](this[_0x8fde18(0x187)],_0x8fde18(0x18d),this[_0x8fde18(0x150)][_0x8fde18(0x176)],_0x8fde18(0x17a),(_0x20fe57,_0x1a8a5a)=>_0x20fe57||!!_0x1a8a5a);}[_0x5d49f8(0x184)](){const _0x1fdf8f=_0x5d49f8,{CommentThreadInputView:_0x472a5f}=this[_0x1fdf8f(0x18e)],_0x4d81e0=new _0x472a5f(this[_0x1fdf8f(0x172)],this[_0x1fdf8f(0x160)],this[_0x1fdf8f(0x18e)][_0x1fdf8f(0x171)]),_0x4925b4=_0x4d81e0[_0x1fdf8f(0x176)];return _0x4d81e0[_0x1fdf8f(0x16a)](_0x1fdf8f(0x158))['to'](this,_0x1fdf8f(0x180),this[_0x1fdf8f(0x15b)][_0x1fdf8f(0x181)],_0x1fdf8f(0x185),_0x4925b4,_0x1fdf8f(0x17a),(_0x117a34,_0x49c8bc,_0x30ce80)=>!!_0x30ce80||_0x117a34&&!_0x49c8bc),_0x4925b4['on'](_0x1fdf8f(0x15a),(_0x2f44e0,_0x4218dc)=>{const _0x328f47=_0x1fdf8f;this[_0x328f47(0x16d)](_0x328f47(0x17f),_0x4218dc),_0x4925b4[_0x328f47(0x188)][_0x328f47(0x18c)]('');}),_0x4925b4['on'](_0x1fdf8f(0x16c),()=>this[_0x1fdf8f(0x17b)]()),_0x4925b4[_0x1fdf8f(0x16a)](_0x1fdf8f(0x186))['to'](this[_0x1fdf8f(0x15b)][_0x1fdf8f(0x181)],_0x1fdf8f(0x185)),_0x4d81e0;}}