@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.3 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 _0x343045=_0x995f;(function(_0x3fcf9f,_0x127def){const _0x407ac8=_0x995f,_0x154d08=_0x3fcf9f();while(!![]){try{const _0x5e9719=-parseInt(_0x407ac8(0x1f6))/0x1*(parseInt(_0x407ac8(0x1fe))/0x2)+-parseInt(_0x407ac8(0x20b))/0x3+parseInt(_0x407ac8(0x1f5))/0x4*(parseInt(_0x407ac8(0x1ee))/0x5)+parseInt(_0x407ac8(0x1ff))/0x6+parseInt(_0x407ac8(0x205))/0x7+parseInt(_0x407ac8(0x1f4))/0x8+parseInt(_0x407ac8(0x1ec))/0x9;if(_0x5e9719===_0x127def)break;else _0x154d08['push'](_0x154d08['shift']());}catch(_0x38ac83){_0x154d08['push'](_0x154d08['shift']());}}}(_0x1440,0x98289));import{View as _0x429a5e,FocusCycler as _0x513edc}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1f654e,toUnit as _0x186876}from'ckeditor5/src/utils.js';function _0x1440(){const _0x35ab29=['arrowdown','focusCycler','arrowup','focusTracker','2492371HOvRCm','number','add','change:top','setTemplate','bindTemplate','2430777ylElMK','removed','source','focus','uiLanguageDirection','class','Annotations\x20list','_updateItemPositionInFocusables','render','ck-sidebar','list','focusFirst','change','added','getIndex','createCollection','minHeight','ck-reset','delegate','7156062yNgRmF','div','25BkCOVO','length','focusPrevious','set','listenTo','focusables','3740944KfzdKW','41036vfhzBu','11341EEIyZj','element','Annotations\x20sidebar','forEach','remove','focusNext','_setupKeyboardNavigation','top','134VvLiEI','3139578LjSXHs','application'];_0x1440=function(){return _0x35ab29;};return _0x1440();}import{getTranslation as _0x3e25d1}from'../../utils/common-translations.js';function _0x995f(_0x37fd07,_0x1e283b){const _0x144039=_0x1440();return _0x995f=function(_0x995f0e,_0x51683b){_0x995f0e=_0x995f0e-0x1e4;let _0x2bffe0=_0x144039[_0x995f0e];return _0x2bffe0;},_0x995f(_0x37fd07,_0x1e283b);}import'../../../theme/sidebar.css';const Ot=/* #__PURE__ -- @preserve */
_0x186876('px');export class AnnotationsSidebarView extends _0x429a5e{[_0x343045(0x215)];[_0x343045(0x1f3)];[_0x343045(0x204)];[_0x343045(0x202)];constructor(_0x1162e5){const _0x37ebec=_0x343045;super(_0x1162e5);const _0x43c37d=this[_0x37ebec(0x20a)];this[_0x37ebec(0x1f1)](_0x37ebec(0x1e9),0x0),this[_0x37ebec(0x1f1)](_0x37ebec(0x210),''),this[_0x37ebec(0x215)]=this[_0x37ebec(0x1e8)](),this[_0x37ebec(0x1f3)]=this[_0x37ebec(0x1e8)](),this[_0x37ebec(0x215)][_0x37ebec(0x1eb)](_0x37ebec(0x203),_0x37ebec(0x201))['to'](this),this[_0x37ebec(0x204)]=new _0x1f654e(),this[_0x37ebec(0x202)]=new _0x513edc({'focusables':this[_0x37ebec(0x1f3)],'focusTracker':this[_0x37ebec(0x204)]}),this[_0x37ebec(0x209)]({'tag':_0x37ebec(0x1ed),'attributes':{'class':['ck',_0x37ebec(0x214),_0x37ebec(0x1ea),_0x43c37d['to'](_0x37ebec(0x210))],'style':{'minHeight':_0x43c37d['to'](_0x37ebec(0x1e9),_0xd0cbdc=>_0x37ebec(0x206)==typeof _0xd0cbdc?Ot(_0xd0cbdc+0xa):null)},'dir':_0x1162e5[_0x37ebec(0x20f)],'role':_0x37ebec(0x200),'aria-label':_0x3e25d1(_0x1162e5,_0x37ebec(0x1f8)),'tabindex':0x0},'children':[{'tag':_0x37ebec(0x1ed),'attributes':{'role':_0x37ebec(0x215),'aria-label':_0x3e25d1(_0x1162e5,_0x37ebec(0x211))},'children':this[_0x37ebec(0x215)]}]});}[_0x343045(0x213)](){const _0x4f21d1=_0x343045;super[_0x4f21d1(0x213)](),this[_0x4f21d1(0x1fc)]();}[_0x343045(0x20e)](){const _0x3f6304=_0x343045;this[_0x3f6304(0x202)][_0x3f6304(0x1e4)]();}[_0x343045(0x1fc)](){const _0x2243bd=_0x343045;this[_0x2243bd(0x215)][_0x2243bd(0x1eb)](_0x2243bd(0x208))['to'](this),this['on'](_0x2243bd(0x208),_0x51b99b=>{const _0x2c7d92=_0x2243bd;this[_0x2c7d92(0x212)](_0x51b99b[_0x2c7d92(0x20d)]);}),this[_0x2243bd(0x215)][_0x2243bd(0x1f9)](_0x308b6d=>{const _0x57040a=_0x2243bd;this[_0x57040a(0x204)][_0x57040a(0x207)](_0x308b6d[_0x57040a(0x1f7)]),this[_0x57040a(0x212)](_0x308b6d);}),this[_0x2243bd(0x215)]['on'](_0x2243bd(0x1e5),(_0x3f1547,_0x50fe74)=>{const _0x6f03aa=_0x2243bd;for(const _0x5355ae of _0x50fe74[_0x6f03aa(0x20c)])this[_0x6f03aa(0x204)][_0x6f03aa(0x1fa)](_0x5355ae[_0x6f03aa(0x1f7)]),this[_0x6f03aa(0x1f3)][_0x6f03aa(0x1fa)](_0x5355ae);for(const _0x49a02a of _0x50fe74[_0x6f03aa(0x1e6)])this[_0x6f03aa(0x204)][_0x6f03aa(0x207)](_0x49a02a[_0x6f03aa(0x1f7)]),this[_0x6f03aa(0x212)](_0x49a02a);}),this['on'](_0x2243bd(0x203),()=>{const _0x55e649=_0x2243bd;this[_0x55e649(0x202)][_0x55e649(0x1f0)]();}),this['on'](_0x2243bd(0x201),()=>{const _0x214db9=_0x2243bd;this[_0x214db9(0x202)][_0x214db9(0x1fb)]();}),this[_0x2243bd(0x1f2)](this[_0x2243bd(0x1f7)],_0x2243bd(0x20e),()=>{const _0x35a3eb=_0x2243bd;this[_0x35a3eb(0x20e)]();});}[_0x343045(0x212)](_0x493d02){const _0x27e815=_0x343045,_0x377904=this[_0x27e815(0x1f3)][_0x27e815(0x1e7)](_0x493d02);let _0x2882b6,_0x49f333;for(const _0x839742 of this[_0x27e815(0x1f3)])if(_0x493d02[_0x27e815(0x1fd)]<_0x839742[_0x27e815(0x1fd)]){_0x2882b6=_0x839742;break;}if(_0x49f333=_0x2882b6?this[_0x27e815(0x1f3)][_0x27e815(0x1e7)](_0x2882b6):this[_0x27e815(0x1f3)][_0x27e815(0x1ef)],-0x1!==_0x377904){if(_0x377904===_0x49f333-0x1)return;this[_0x27e815(0x1f3)][_0x27e815(0x1fa)](_0x493d02),_0x49f333=_0x2882b6?this[_0x27e815(0x1f3)][_0x27e815(0x1e7)](_0x2882b6):this[_0x27e815(0x1f3)][_0x27e815(0x1ef)];}this[_0x27e815(0x1f3)][_0x27e815(0x207)](_0x493d02,_0x49f333);}}