@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.54 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 _0x3082(_0x606798,_0x3aecf2){const _0x57659c=_0x5765();return _0x3082=function(_0x308217,_0x469bcb){_0x308217=_0x308217-0xf2;let _0x427231=_0x57659c[_0x308217];return _0x427231;},_0x3082(_0x606798,_0x3aecf2);}const _0x3671bc=_0x3082;function _0x5765(){const _0x36194c=['remove','_setupKeyboardNavigation','focusNext','isEmpty','_annotationViews','7249956CFGEih','arrowdown','ck-comments-archive__content','auto','list','EMPTY_COMMENTS_ARCHIVE','destroy','element','7WbzNgl','setTemplate','2lqwEfJ','ck-comments-archive__info','96kosSyS','first','arrowup','bindTemplate','focusPrevious','5084gyPFdq','ck-hidden','3475566kUqVkF','13xQIpDl','change','73249wDNtTW','div','ck-comments-archive','40EpIAnO','COMMENTS_ARCHIVE_LIST_LABEL','focusTracker','7319112nSdJKQ','1010TofRIP','isActive','length','focus','render','focusFirst','487727IZlAOb','28752kDemmu','set','listenTo','focusCycler','add','presentation','delegate'];_0x5765=function(){return _0x36194c;};return _0x5765();}(function(_0x5df125,_0x3aab0d){const _0x356d47=_0x3082,_0x5a6986=_0x5df125();while(!![]){try{const _0xbe603a=-parseInt(_0x356d47(0x119))/0x1*(parseInt(_0x356d47(0x100))/0x2)+-parseInt(_0x356d47(0x102))/0x3*(-parseInt(_0x356d47(0x107))/0x4)+-parseInt(_0x356d47(0x113))/0x5*(-parseInt(_0x356d47(0x11a))/0x6)+-parseInt(_0x356d47(0xfe))/0x7*(parseInt(_0x356d47(0x112))/0x8)+parseInt(_0x356d47(0x109))/0x9+parseInt(_0x356d47(0x10f))/0xa*(parseInt(_0x356d47(0x10c))/0xb)+parseInt(_0x356d47(0xf6))/0xc*(parseInt(_0x356d47(0x10a))/0xd);if(_0xbe603a===_0x3aab0d)break;else _0x5a6986['push'](_0x5a6986['shift']());}catch(_0x2485f0){_0x5a6986['push'](_0x5a6986['shift']());}}}(_0x5765,0x981a5));import{View as _0x181ba0,FocusCycler as _0xac0497}from'ckeditor5/src/ui.js';import{FocusTracker as _0x144396}from'ckeditor5/src/utils.js';import{getTranslation as _0x2a284f}from'../../../utils/common-translations.js';export default class tt extends _0x181ba0{constructor(_0x65b42b,_0x211ee2){const _0x1d2ad1=_0x3082;super(_0x65b42b),this[_0x1d2ad1(0x11b)](_0x1d2ad1(0xf4),!_0x211ee2[_0x1d2ad1(0x115)]),this[_0x1d2ad1(0x111)]=new _0x144396(),this[_0x1d2ad1(0xf5)]=_0x211ee2,this[_0x1d2ad1(0xf5)][_0x1d2ad1(0x120)](_0x1d2ad1(0x104),_0x1d2ad1(0xf7))['to'](this),this['on'](_0x1d2ad1(0x104),()=>{const _0x1b6035=_0x1d2ad1;this[_0x1b6035(0x11d)][_0x1b6035(0x106)]();}),this['on'](_0x1d2ad1(0xf7),()=>{const _0x5a89cf=_0x1d2ad1;this[_0x5a89cf(0x11d)][_0x5a89cf(0xf3)]();}),this[_0x1d2ad1(0x11d)]=new _0xac0497({'focusables':_0x211ee2,'focusTracker':this[_0x1d2ad1(0x111)]}),this[_0x1d2ad1(0x11c)](_0x211ee2,_0x1d2ad1(0x11e),()=>{const _0x4e873f=_0x1d2ad1;this[_0x4e873f(0xf4)]=!0x1;}),this[_0x1d2ad1(0x11c)](_0x211ee2,_0x1d2ad1(0x121),(_0x187feb,_0xb4c44d)=>{const _0x2b3558=_0x1d2ad1;_0xb4c44d[_0x2b3558(0x114)]&&this[_0x2b3558(0x116)](),_0x211ee2[_0x2b3558(0x115)]||(this[_0x2b3558(0xf4)]=!0x0);});const _0x3eddef=this[_0x1d2ad1(0x105)];this[_0x1d2ad1(0xff)]({'tag':_0x1d2ad1(0x10d),'attributes':{'dir':_0x1d2ad1(0xf9),'class':['ck',_0x1d2ad1(0x10e)],'tabindex':-0x1,'role':_0x1d2ad1(0xfa),'aria-label':_0x2a284f(_0x65b42b,_0x1d2ad1(0x110))},'children':[{'tag':_0x1d2ad1(0x10d),'attributes':{'class':[_0x1d2ad1(0xf8)],'role':_0x1d2ad1(0x11f)},'children':[{'tag':_0x1d2ad1(0x10d),'attributes':{'role':_0x1d2ad1(0x11f)},'children':_0x211ee2},{'tag':'p','attributes':{'class':[_0x1d2ad1(0x101),_0x3eddef['if'](_0x1d2ad1(0xf4),_0x1d2ad1(0x108),_0x155aec=>!_0x155aec)]},'children':[{'text':_0x2a284f(_0x65b42b,_0x1d2ad1(0xfb))}]}]}]});}[_0x3671bc(0x117)](){const _0x93f085=_0x3671bc;super[_0x93f085(0x117)](),this[_0x93f085(0xf2)]();}[_0x3671bc(0xfc)](){const _0x19f7dd=_0x3671bc;super[_0x19f7dd(0xfc)](),this[_0x19f7dd(0x111)][_0x19f7dd(0xfc)]();}[_0x3671bc(0x116)](){const _0x5d9630=_0x3671bc;this[_0x5d9630(0x11d)][_0x5d9630(0x103)]?this[_0x5d9630(0x11d)][_0x5d9630(0x118)]():this[_0x5d9630(0xfd)][_0x5d9630(0x116)]();}[_0x3671bc(0xf2)](){const _0x48779c=_0x3671bc;for(const _0x4cbd03 of this[_0x48779c(0xf5)])this[_0x48779c(0x111)][_0x48779c(0x11e)](_0x4cbd03[_0x48779c(0xfd)]);this[_0x48779c(0xf5)]['on'](_0x48779c(0x10b),(_0x22f79b,{added:_0x5697ce,removed:_0x64b9e3})=>{const _0x27a211=_0x48779c;for(const _0x30d9d9 of _0x5697ce)this[_0x27a211(0x111)][_0x27a211(0x11e)](_0x30d9d9[_0x27a211(0xfd)]);for(const _0x3dc104 of _0x64b9e3)this[_0x27a211(0x111)][_0x27a211(0x121)](_0x3dc104[_0x27a211(0xfd)]);});}}