@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.55 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x1d864f=_0x2951;(function(_0x284ca9,_0x732542){const _0x18ebf6=_0x2951,_0x29df62=_0x284ca9();while(!![]){try{const _0x1867b9=parseInt(_0x18ebf6(0x154))/0x1+parseInt(_0x18ebf6(0x150))/0x2*(-parseInt(_0x18ebf6(0x153))/0x3)+-parseInt(_0x18ebf6(0x15b))/0x4+parseInt(_0x18ebf6(0x166))/0x5*(-parseInt(_0x18ebf6(0x15a))/0x6)+parseInt(_0x18ebf6(0x169))/0x7*(-parseInt(_0x18ebf6(0x159))/0x8)+-parseInt(_0x18ebf6(0x155))/0x9+-parseInt(_0x18ebf6(0x15e))/0xa*(-parseInt(_0x18ebf6(0x14d))/0xb);if(_0x1867b9===_0x732542)break;else _0x29df62['push'](_0x29df62['shift']());}catch(_0x2e43ee){_0x29df62['push'](_0x29df62['shift']());}}}(_0x5d7d,0x76bc8));import{View as _0x251c4c,FocusCycler as _0x14b04f}from'ckeditor5/src/ui.js';function _0x5d7d(){const _0x190736=['setTemplate','focusFirst','render','ck-comments-archive__info','_annotationViews','element','arrowup','530630ndgHAF','EMPTY_COMMENTS_ARCHIVE','focusNext','91cXmaJc','add','focus','focusCycler','arrowdown','div','ck-comments-archive','remove','ck-comments-archive__content','ck-hidden','first','presentation','COMMENTS_ARCHIVE_LIST_LABEL','focusPrevious','delegate','focusTracker','destroy','list','34266397ZthsTC','auto','length','102KvXrxs','listenTo','_setupKeyboardNavigation','24357geKKqU','113500FEeioG','6571314KEjBiO','change','isActive','isEmpty','431344CVRJrZ','6bLpafc','3164032NZpXXz','set','bindTemplate','10TAcQHl'];_0x5d7d=function(){return _0x190736;};return _0x5d7d();}function _0x2951(_0x51cb3a,_0x4748a7){const _0x5d7dc0=_0x5d7d();return _0x2951=function(_0x295198,_0x5938b1){_0x295198=_0x295198-0x147;let _0x419bde=_0x5d7dc0[_0x295198];return _0x419bde;},_0x2951(_0x51cb3a,_0x4748a7);}import{FocusTracker as _0x214eb9}from'ckeditor5/src/utils.js';import{getTranslation as _0x23f425}from'../../../utils/common-translations.js';export class CommentsArchiveView extends _0x251c4c{[_0x1d864f(0x14a)];[_0x1d864f(0x16c)];[_0x1d864f(0x163)];constructor(_0x2f4313,_0x613399){const _0x2eea7c=_0x1d864f;super(_0x2f4313),this[_0x2eea7c(0x15c)](_0x2eea7c(0x158),!_0x613399[_0x2eea7c(0x14f)]),this[_0x2eea7c(0x14a)]=new _0x214eb9(),this[_0x2eea7c(0x163)]=_0x613399,this[_0x2eea7c(0x163)][_0x2eea7c(0x149)](_0x2eea7c(0x165),_0x2eea7c(0x16d))['to'](this),this['on'](_0x2eea7c(0x165),()=>{const _0x9647d=_0x2eea7c;this[_0x9647d(0x16c)][_0x9647d(0x148)]();}),this['on'](_0x2eea7c(0x16d),()=>{const _0x1d7efc=_0x2eea7c;this[_0x1d7efc(0x16c)][_0x1d7efc(0x168)]();}),this[_0x2eea7c(0x16c)]=new _0x14b04f({'focusables':_0x613399,'focusTracker':this[_0x2eea7c(0x14a)]}),this[_0x2eea7c(0x151)](_0x613399,_0x2eea7c(0x16a),()=>{const _0x516ab9=_0x2eea7c;this[_0x516ab9(0x158)]=!0x1;}),this[_0x2eea7c(0x151)](_0x613399,_0x2eea7c(0x170),(_0x389aeb,_0x5c0be2)=>{const _0x583886=_0x2eea7c;_0x5c0be2[_0x583886(0x157)]&&this[_0x583886(0x16b)](),_0x613399[_0x583886(0x14f)]||(this[_0x583886(0x158)]=!0x0);});const _0x1740e6=this[_0x2eea7c(0x15d)];this[_0x2eea7c(0x15f)]({'tag':_0x2eea7c(0x16e),'attributes':{'dir':_0x2eea7c(0x14e),'class':['ck',_0x2eea7c(0x16f)],'tabindex':-0x1,'role':_0x2eea7c(0x14c),'aria-label':_0x23f425(_0x2f4313,_0x2eea7c(0x147))},'children':[{'tag':_0x2eea7c(0x16e),'attributes':{'class':[_0x2eea7c(0x171)],'role':_0x2eea7c(0x174)},'children':[{'tag':_0x2eea7c(0x16e),'attributes':{'role':_0x2eea7c(0x174)},'children':_0x613399},{'tag':'p','attributes':{'class':[_0x2eea7c(0x162),_0x1740e6['if'](_0x2eea7c(0x158),_0x2eea7c(0x172),_0x796bc6=>!_0x796bc6)]},'children':[{'text':_0x23f425(_0x2f4313,_0x2eea7c(0x167))}]}]}]});}[_0x1d864f(0x161)](){const _0x14987d=_0x1d864f;super[_0x14987d(0x161)](),this[_0x14987d(0x152)]();}[_0x1d864f(0x14b)](){const _0x2043df=_0x1d864f;super[_0x2043df(0x14b)](),this[_0x2043df(0x14a)][_0x2043df(0x14b)]();}[_0x1d864f(0x16b)](){const _0x1455eb=_0x1d864f;this[_0x1455eb(0x16c)][_0x1455eb(0x173)]?this[_0x1455eb(0x16c)][_0x1455eb(0x160)]():this[_0x1455eb(0x164)][_0x1455eb(0x16b)]();}[_0x1d864f(0x152)](){const _0x471a23=_0x1d864f;for(const _0x351468 of this[_0x471a23(0x163)])this[_0x471a23(0x14a)][_0x471a23(0x16a)](_0x351468[_0x471a23(0x164)]);this[_0x471a23(0x163)]['on'](_0x471a23(0x156),(_0xae981e,{added:_0x5baa7e,removed:_0x39e158})=>{const _0x22009f=_0x471a23;for(const _0x27fd13 of _0x5baa7e)this[_0x22009f(0x14a)][_0x22009f(0x16a)](_0x27fd13[_0x22009f(0x164)]);for(const _0x54487f of _0x39e158)this[_0x22009f(0x14a)][_0x22009f(0x170)](_0x54487f[_0x22009f(0x164)]);});}}