@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.38 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x5729(){const _0x5a190f=['COMMENTS_ARCHIVE_LIST_LABEL','2731245RBZXln','div','EMPTY_COMMENTS_ARCHIVE','render','set','focusFirst','remove','setTemplate','15128OEnice','listenTo','first','1179616gzLIUX','focus','ck-comments-archive','13433040MGPXhf','change','isEmpty','element','destroy','_annotationViews','list','ck-hidden','presentation','ck-comments-archive__content','arrowup','1662012hFcShU','length','delegate','4066321qOqcsn','isActive','147741OOkpWK','arrowdown','focusNext','auto','_setupKeyboardNavigation','focusTracker','focusPrevious','bindTemplate','ck-comments-archive__info','201LTIHkq','add','focusCycler'];_0x5729=function(){return _0x5a190f;};return _0x5729();}const _0x190845=_0x4495;(function(_0x360869,_0x890a12){const _0x2b258a=_0x4495,_0x2052eb=_0x360869();while(!![]){try{const _0xb63b65=-parseInt(_0x2b258a(0x108))/0x1+-parseInt(_0x2b258a(0xf5))/0x2+-parseInt(_0x2b258a(0x111))/0x3*(-parseInt(_0x2b258a(0xf2))/0x4)+-parseInt(_0x2b258a(0x115))/0x5+parseInt(_0x2b258a(0x103))/0x6+-parseInt(_0x2b258a(0x106))/0x7+parseInt(_0x2b258a(0xf8))/0x8;if(_0xb63b65===_0x890a12)break;else _0x2052eb['push'](_0x2052eb['shift']());}catch(_0x229e66){_0x2052eb['push'](_0x2052eb['shift']());}}}(_0x5729,0x542f9));import{View as _0x3aeb39,FocusCycler as _0x5cf824}from'ckeditor5/src/ui.js';function _0x4495(_0x3e04bf,_0x4e1483){const _0x5729f4=_0x5729();return _0x4495=function(_0x449527,_0x1c4aae){_0x449527=_0x449527-0xed;let _0xa9d5f5=_0x5729f4[_0x449527];return _0xa9d5f5;},_0x4495(_0x3e04bf,_0x4e1483);}import{FocusTracker as _0x51e59d}from'ckeditor5/src/utils.js';import{getTranslation as _0x30ba74}from'../../../utils/common-translations.js';export default class tt extends _0x3aeb39{[_0x190845(0x10d)];[_0x190845(0x113)];[_0x190845(0xfd)];constructor(_0x5eda8b,_0x26ed1c){const _0xd0eb60=_0x190845;super(_0x5eda8b),this[_0xd0eb60(0xee)](_0xd0eb60(0xfa),!_0x26ed1c[_0xd0eb60(0x104)]),this[_0xd0eb60(0x10d)]=new _0x51e59d(),this[_0xd0eb60(0xfd)]=_0x26ed1c,this[_0xd0eb60(0xfd)][_0xd0eb60(0x105)](_0xd0eb60(0x102),_0xd0eb60(0x109))['to'](this),this['on'](_0xd0eb60(0x102),()=>{const _0x5b246d=_0xd0eb60;this[_0x5b246d(0x113)][_0x5b246d(0x10e)]();}),this['on'](_0xd0eb60(0x109),()=>{const _0x4ff1c5=_0xd0eb60;this[_0x4ff1c5(0x113)][_0x4ff1c5(0x10a)]();}),this[_0xd0eb60(0x113)]=new _0x5cf824({'focusables':_0x26ed1c,'focusTracker':this[_0xd0eb60(0x10d)]}),this[_0xd0eb60(0xf3)](_0x26ed1c,_0xd0eb60(0x112),()=>{const _0x5e229a=_0xd0eb60;this[_0x5e229a(0xfa)]=!0x1;}),this[_0xd0eb60(0xf3)](_0x26ed1c,_0xd0eb60(0xf0),(_0x435d8a,_0x347d75)=>{const _0x39d274=_0xd0eb60;_0x347d75[_0x39d274(0x107)]&&this[_0x39d274(0xf6)](),_0x26ed1c[_0x39d274(0x104)]||(this[_0x39d274(0xfa)]=!0x0);});const _0x342117=this[_0xd0eb60(0x10f)];this[_0xd0eb60(0xf1)]({'tag':_0xd0eb60(0x116),'attributes':{'dir':_0xd0eb60(0x10b),'class':['ck',_0xd0eb60(0xf7)],'tabindex':-0x1,'role':_0xd0eb60(0xfe),'aria-label':_0x30ba74(_0x5eda8b,_0xd0eb60(0x114))},'children':[{'tag':_0xd0eb60(0x116),'attributes':{'class':[_0xd0eb60(0x101)],'role':_0xd0eb60(0x100)},'children':[{'tag':_0xd0eb60(0x116),'attributes':{'role':_0xd0eb60(0x100)},'children':_0x26ed1c},{'tag':'p','attributes':{'class':[_0xd0eb60(0x110),_0x342117['if'](_0xd0eb60(0xfa),_0xd0eb60(0xff),_0x17ac15=>!_0x17ac15)]},'children':[{'text':_0x30ba74(_0x5eda8b,_0xd0eb60(0x117))}]}]}]});}[_0x190845(0xed)](){const _0x2f4bf2=_0x190845;super[_0x2f4bf2(0xed)](),this[_0x2f4bf2(0x10c)]();}[_0x190845(0xfc)](){const _0x3ee8e3=_0x190845;super[_0x3ee8e3(0xfc)](),this[_0x3ee8e3(0x10d)][_0x3ee8e3(0xfc)]();}[_0x190845(0xf6)](){const _0x5ead10=_0x190845;this[_0x5ead10(0x113)][_0x5ead10(0xf4)]?this[_0x5ead10(0x113)][_0x5ead10(0xef)]():this[_0x5ead10(0xfb)][_0x5ead10(0xf6)]();}[_0x190845(0x10c)](){const _0x29f783=_0x190845;for(const _0x255aad of this[_0x29f783(0xfd)])this[_0x29f783(0x10d)][_0x29f783(0x112)](_0x255aad[_0x29f783(0xfb)]);this[_0x29f783(0xfd)]['on'](_0x29f783(0xf9),(_0x1833b8,{added:_0x243a42,removed:_0x57ac2e})=>{const _0x4172db=_0x29f783;for(const _0x5655bc of _0x243a42)this[_0x4172db(0x10d)][_0x4172db(0x112)](_0x5655bc[_0x4172db(0xfb)]);for(const _0x449dc8 of _0x57ac2e)this[_0x4172db(0x10d)][_0x4172db(0xf0)](_0x449dc8[_0x4172db(0xfb)]);});}}