@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 6.2 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 _0x2452(_0xe2139e,_0x1b3ff5){const _0x302fb8=_0x302f();return _0x2452=function(_0x24524f,_0x21deda){_0x24524f=_0x24524f-0x85;let _0x2ca0d3=_0x302fb8[_0x24524f];return _0x2ca0d3;},_0x2452(_0xe2139e,_0x1b3ff5);}const _0x3bf0ee=_0x2452;(function(_0x29a9e2,_0x1125a3){const _0x3873d4=_0x2452,_0x252955=_0x29a9e2();while(!![]){try{const _0x48b90f=-parseInt(_0x3873d4(0xad))/0x1+-parseInt(_0x3873d4(0x90))/0x2*(-parseInt(_0x3873d4(0x99))/0x3)+parseInt(_0x3873d4(0x88))/0x4+-parseInt(_0x3873d4(0x92))/0x5+parseInt(_0x3873d4(0xb2))/0x6+-parseInt(_0x3873d4(0xb0))/0x7+-parseInt(_0x3873d4(0xb3))/0x8*(-parseInt(_0x3873d4(0x87))/0x9);if(_0x48b90f===_0x1125a3)break;else _0x252955['push'](_0x252955['shift']());}catch(_0x2bac34){_0x252955['push'](_0x252955['shift']());}}}(_0x302f,0x78215));function _0x302f(){const _0x351acb=['source','removed','_setupKeyboardNavigation','list','listenTo','Annotations\x20sidebar','arrowdown','forEach','createCollection','length','added','element','bindTemplate','minHeight','ck-reset','render','remove','getIndex','829540SoTxoa','application','_updateItemPositionInFocusables','735966cZaHSZ','focusNext','2094768WowdXm','5370472guHApO','focusTracker','setTemplate','focus','arrowup','delegate','18svZtKz','1704500WTIKEw','top','class','ck-sidebar','uiLanguageDirection','number','add','focusFirst','142BHJYBK','Annotations\x20list','3855430cVSkAu','set','change','focusCycler','change:top','focusPrevious','div','3378UxeeVV','focusables'];_0x302f=function(){return _0x351acb;};return _0x302f();}import{View as _0x47fb7c,FocusCycler as _0x4555ab}from'ckeditor5/src/ui.js';import{FocusTracker as _0xaee8fa,toUnit as _0x52b4ff}from'ckeditor5/src/utils.js';import{getTranslation as _0x4f723c}from'../../utils/common-translations.js';import'../../../theme/sidebar.css';const Ot=/* #__PURE__ -- @preserve */
_0x52b4ff('px');export class AnnotationsSidebarView extends _0x47fb7c{[_0x3bf0ee(0x9e)];[_0x3bf0ee(0x9a)];[_0x3bf0ee(0xb4)];[_0x3bf0ee(0x95)];constructor(_0x56bba2){const _0x569bf4=_0x3bf0ee;super(_0x56bba2);const _0x25370c=this[_0x569bf4(0xa7)];this[_0x569bf4(0x93)](_0x569bf4(0xa8),0x0),this[_0x569bf4(0x93)](_0x569bf4(0x8a),''),this[_0x569bf4(0x9e)]=this[_0x569bf4(0xa3)](),this[_0x569bf4(0x9a)]=this[_0x569bf4(0xa3)](),this[_0x569bf4(0x9e)][_0x569bf4(0x86)](_0x569bf4(0x85),_0x569bf4(0xa1))['to'](this),this[_0x569bf4(0xb4)]=new _0xaee8fa(),this[_0x569bf4(0x95)]=new _0x4555ab({'focusables':this[_0x569bf4(0x9a)],'focusTracker':this[_0x569bf4(0xb4)]}),this[_0x569bf4(0xb5)]({'tag':_0x569bf4(0x98),'attributes':{'class':['ck',_0x569bf4(0x8b),_0x569bf4(0xa9),_0x25370c['to'](_0x569bf4(0x8a))],'style':{'minHeight':_0x25370c['to'](_0x569bf4(0xa8),_0x59385=>_0x569bf4(0x8d)==typeof _0x59385?Ot(_0x59385+0xa):null)},'dir':_0x56bba2[_0x569bf4(0x8c)],'role':_0x569bf4(0xae),'aria-label':_0x4f723c(_0x56bba2,_0x569bf4(0xa0)),'tabindex':0x0},'children':[{'tag':_0x569bf4(0x98),'attributes':{'role':_0x569bf4(0x9e),'aria-label':_0x4f723c(_0x56bba2,_0x569bf4(0x91))},'children':this[_0x569bf4(0x9e)]}]});}[_0x3bf0ee(0xaa)](){const _0x43eef0=_0x3bf0ee;super[_0x43eef0(0xaa)](),this[_0x43eef0(0x9d)]();}[_0x3bf0ee(0xb6)](){const _0x163faa=_0x3bf0ee;this[_0x163faa(0x95)][_0x163faa(0x8f)]();}[_0x3bf0ee(0x9d)](){const _0x16fa4a=_0x3bf0ee;this[_0x16fa4a(0x9e)][_0x16fa4a(0x86)](_0x16fa4a(0x96))['to'](this),this['on'](_0x16fa4a(0x96),_0x16a7d9=>{const _0x4127ac=_0x16fa4a;this[_0x4127ac(0xaf)](_0x16a7d9[_0x4127ac(0x9b)]);}),this[_0x16fa4a(0x9e)][_0x16fa4a(0xa2)](_0x44f7bf=>{const _0x330397=_0x16fa4a;this[_0x330397(0xb4)][_0x330397(0x8e)](_0x44f7bf[_0x330397(0xa6)]),this[_0x330397(0xaf)](_0x44f7bf);}),this[_0x16fa4a(0x9e)]['on'](_0x16fa4a(0x94),(_0x4f6728,_0x4a8e5b)=>{const _0x334a89=_0x16fa4a;for(const _0x5361b9 of _0x4a8e5b[_0x334a89(0x9c)])this[_0x334a89(0xb4)][_0x334a89(0xab)](_0x5361b9[_0x334a89(0xa6)]),this[_0x334a89(0x9a)][_0x334a89(0xab)](_0x5361b9);for(const _0x1cabca of _0x4a8e5b[_0x334a89(0xa5)])this[_0x334a89(0xb4)][_0x334a89(0x8e)](_0x1cabca[_0x334a89(0xa6)]),this[_0x334a89(0xaf)](_0x1cabca);}),this['on'](_0x16fa4a(0x85),()=>{const _0x7b11f1=_0x16fa4a;this[_0x7b11f1(0x95)][_0x7b11f1(0x97)]();}),this['on'](_0x16fa4a(0xa1),()=>{const _0x10cc08=_0x16fa4a;this[_0x10cc08(0x95)][_0x10cc08(0xb1)]();}),this[_0x16fa4a(0x9f)](this[_0x16fa4a(0xa6)],_0x16fa4a(0xb6),()=>{const _0xc6e482=_0x16fa4a;this[_0xc6e482(0xb6)]();});}[_0x3bf0ee(0xaf)](_0x5ca5fc){const _0x2cc2b8=_0x3bf0ee,_0x195f3c=this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xac)](_0x5ca5fc);let _0x1b936a,_0x48d2f7;for(const _0x28fc5f of this[_0x2cc2b8(0x9a)])if(_0x5ca5fc[_0x2cc2b8(0x89)]<_0x28fc5f[_0x2cc2b8(0x89)]){_0x1b936a=_0x28fc5f;break;}if(_0x48d2f7=_0x1b936a?this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xac)](_0x1b936a):this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xa4)],-0x1!==_0x195f3c){if(_0x195f3c===_0x48d2f7-0x1)return;this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xab)](_0x5ca5fc),_0x48d2f7=_0x1b936a?this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xac)](_0x1b936a):this[_0x2cc2b8(0x9a)][_0x2cc2b8(0xa4)];}this[_0x2cc2b8(0x9a)][_0x2cc2b8(0x8e)](_0x5ca5fc,_0x48d2f7);}}