@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 5.55 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 _0xad5b39=_0x83c8;function _0x2ae2(){const _0x40d138=['focusFirst','delegate','focusTracker','setTemplate','44SsuUsy','change','render','8qLGCOv','1010UmsPJK','arrowdown','2131510gRmhyD','bindTemplate','COMMENTS_ARCHIVE_LIST_LABEL','focusNext','ck-comments-archive__content','presentation','isEmpty','focusPrevious','1716810ohImHw','_annotationViews','element','7464jRuzdE','focusCycler','2JctfSI','_setupKeyboardNavigation','112107xhmIrM','3816890Iuaqrh','arrowup','ck-comments-archive__info','first','auto','set','destroy','focus','ck-hidden','div','1246842zzgVvK','add','length','list','remove','6498tJXpeF','ck-comments-archive','EMPTY_COMMENTS_ARCHIVE','listenTo','isActive'];_0x2ae2=function(){return _0x40d138;};return _0x2ae2();}function _0x83c8(_0x2514db,_0x4ff2e4){const _0x2ae234=_0x2ae2();return _0x83c8=function(_0x83c8e5,_0x141421){_0x83c8e5=_0x83c8e5-0x1ee;let _0x5a49d3=_0x2ae234[_0x83c8e5];return _0x5a49d3;},_0x83c8(_0x2514db,_0x4ff2e4);}(function(_0x55ddce,_0x4cbb0b){const _0x3e1edd=_0x83c8,_0x3e5dc6=_0x55ddce();while(!![]){try{const _0x151529=-parseInt(_0x3e1edd(0x1f2))/0x1*(-parseInt(_0x3e1edd(0x1f0))/0x2)+parseInt(_0x3e1edd(0x1fd))/0x3+parseInt(_0x3e1edd(0x1ee))/0x4*(parseInt(_0x3e1edd(0x20f))/0x5)+-parseInt(_0x3e1edd(0x219))/0x6+parseInt(_0x3e1edd(0x1f3))/0x7+parseInt(_0x3e1edd(0x20e))/0x8*(parseInt(_0x3e1edd(0x202))/0x9)+parseInt(_0x3e1edd(0x211))/0xa*(-parseInt(_0x3e1edd(0x20b))/0xb);if(_0x151529===_0x4cbb0b)break;else _0x3e5dc6['push'](_0x3e5dc6['shift']());}catch(_0x9be191){_0x3e5dc6['push'](_0x3e5dc6['shift']());}}}(_0x2ae2,0x4c262));import{View as _0x11cd80,FocusCycler as _0x22a1f1}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1eaa3d}from'ckeditor5/src/utils.js';import{getTranslation as _0x3a70d1}from'../../../utils/common-translations.js';export class CommentsArchiveView extends _0x11cd80{[_0xad5b39(0x209)];[_0xad5b39(0x1ef)];[_0xad5b39(0x21a)];constructor(_0x45a39e,_0x26297b){const _0x4e45e6=_0xad5b39;super(_0x45a39e),this[_0x4e45e6(0x1f8)](_0x4e45e6(0x217),!_0x26297b[_0x4e45e6(0x1ff)]),this[_0x4e45e6(0x209)]=new _0x1eaa3d(),this[_0x4e45e6(0x21a)]=_0x26297b,this[_0x4e45e6(0x21a)][_0x4e45e6(0x208)](_0x4e45e6(0x1f4),_0x4e45e6(0x210))['to'](this),this['on'](_0x4e45e6(0x1f4),()=>{const _0x12e2b7=_0x4e45e6;this[_0x12e2b7(0x1ef)][_0x12e2b7(0x218)]();}),this['on'](_0x4e45e6(0x210),()=>{const _0x2d1d8e=_0x4e45e6;this[_0x2d1d8e(0x1ef)][_0x2d1d8e(0x214)]();}),this[_0x4e45e6(0x1ef)]=new _0x22a1f1({'focusables':_0x26297b,'focusTracker':this[_0x4e45e6(0x209)]}),this[_0x4e45e6(0x205)](_0x26297b,_0x4e45e6(0x1fe),()=>{const _0x2b25c3=_0x4e45e6;this[_0x2b25c3(0x217)]=!0x1;}),this[_0x4e45e6(0x205)](_0x26297b,_0x4e45e6(0x201),(_0x58e45e,_0x5f1851)=>{const _0x529bd6=_0x4e45e6;_0x5f1851[_0x529bd6(0x206)]&&this[_0x529bd6(0x1fa)](),_0x26297b[_0x529bd6(0x1ff)]||(this[_0x529bd6(0x217)]=!0x0);});const _0x58df29=this[_0x4e45e6(0x212)];this[_0x4e45e6(0x20a)]({'tag':_0x4e45e6(0x1fc),'attributes':{'dir':_0x4e45e6(0x1f7),'class':['ck',_0x4e45e6(0x203)],'tabindex':-0x1,'role':_0x4e45e6(0x200),'aria-label':_0x3a70d1(_0x45a39e,_0x4e45e6(0x213))},'children':[{'tag':_0x4e45e6(0x1fc),'attributes':{'class':[_0x4e45e6(0x215)],'role':_0x4e45e6(0x216)},'children':[{'tag':_0x4e45e6(0x1fc),'attributes':{'role':_0x4e45e6(0x216)},'children':_0x26297b},{'tag':'p','attributes':{'class':[_0x4e45e6(0x1f5),_0x58df29['if'](_0x4e45e6(0x217),_0x4e45e6(0x1fb),_0x39211d=>!_0x39211d)]},'children':[{'text':_0x3a70d1(_0x45a39e,_0x4e45e6(0x204))}]}]}]});}[_0xad5b39(0x20d)](){const _0x2ebf10=_0xad5b39;super[_0x2ebf10(0x20d)](),this[_0x2ebf10(0x1f1)]();}[_0xad5b39(0x1f9)](){const _0x585ced=_0xad5b39;super[_0x585ced(0x1f9)](),this[_0x585ced(0x209)][_0x585ced(0x1f9)]();}[_0xad5b39(0x1fa)](){const _0xf8d109=_0xad5b39;this[_0xf8d109(0x1ef)][_0xf8d109(0x1f6)]?this[_0xf8d109(0x1ef)][_0xf8d109(0x207)]():this[_0xf8d109(0x21b)][_0xf8d109(0x1fa)]();}[_0xad5b39(0x1f1)](){const _0x3a8a22=_0xad5b39;for(const _0x316fc1 of this[_0x3a8a22(0x21a)])this[_0x3a8a22(0x209)][_0x3a8a22(0x1fe)](_0x316fc1[_0x3a8a22(0x21b)]);this[_0x3a8a22(0x21a)]['on'](_0x3a8a22(0x20c),(_0x1b584b,{added:_0x36f273,removed:_0x5f446b})=>{const _0x5a622e=_0x3a8a22;for(const _0xece2a of _0x36f273)this[_0x5a622e(0x209)][_0x5a622e(0x1fe)](_0xece2a[_0x5a622e(0x21b)]);for(const _0x44222c of _0x5f446b)this[_0x5a622e(0x209)][_0x5a622e(0x201)](_0x44222c[_0x5a622e(0x21b)]);});}}