UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 6.29 kB
/* * 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 _0x2b603f=_0x5366;(function(_0x380836,_0x2087c8){const _0x8585ed=_0x5366,_0x230c58=_0x380836();while(!![]){try{const _0x55accb=parseInt(_0x8585ed(0xce))/0x1+parseInt(_0x8585ed(0xd4))/0x2+-parseInt(_0x8585ed(0xc5))/0x3*(-parseInt(_0x8585ed(0xba))/0x4)+parseInt(_0x8585ed(0xad))/0x5+parseInt(_0x8585ed(0xbe))/0x6*(parseInt(_0x8585ed(0xae))/0x7)+parseInt(_0x8585ed(0xc9))/0x8*(-parseInt(_0x8585ed(0xc7))/0x9)+-parseInt(_0x8585ed(0xcc))/0xa*(parseInt(_0x8585ed(0xc3))/0xb);if(_0x55accb===_0x2087c8)break;else _0x230c58['push'](_0x230c58['shift']());}catch(_0x5c2391){_0x230c58['push'](_0x230c58['shift']());}}}(_0x586e,0xabf29));function _0x586e(){const _0x158d3e=['3764289ZssaiN','change','1441431XYXFSY','focusables','8ZvkWhb','add','element','20WKILNv','forEach','807927MqTfNZ','_updateItemPositionInFocusables','list','setTemplate','focusPrevious','length','896570MCcmtO','focusFirst','number','div','set','createCollection','added','focusNext','change:top','removed','focus','class','ck-reset','974310urWfWa','3714179QpVSKU','application','delegate','top','focusTracker','bindTemplate','render','_setupKeyboardNavigation','getIndex','minHeight','ck-sidebar','remove','4cKUzCq','listenTo','arrowdown','arrowup','6mZkwMk','uiLanguageDirection','source','Annotations\x20list','focusCycler','13045879YQGZoX','Annotations\x20sidebar'];_0x586e=function(){return _0x158d3e;};return _0x586e();}import{View as _0x3f344f,FocusCycler as _0x1744e4}from'ckeditor5/src/ui.js';import{FocusTracker as _0x232128,toUnit as _0x1c0448}from'ckeditor5/src/utils.js';function _0x5366(_0x205f7d,_0x3ce3e0){const _0x586e4b=_0x586e();return _0x5366=function(_0x53664c,_0x5137e5){_0x53664c=_0x53664c-0xa9;let _0x13dee1=_0x586e4b[_0x53664c];return _0x13dee1;},_0x5366(_0x205f7d,_0x3ce3e0);}import{getTranslation as _0x5eed59}from'../../utils/common-translations.js';import'../../../theme/sidebar.css';const Ot=/* #__PURE__ -- @preserve */ _0x1c0448('px');export class AnnotationsSidebarView extends _0x3f344f{[_0x2b603f(0xd0)];[_0x2b603f(0xc8)];[_0x2b603f(0xb2)];[_0x2b603f(0xc2)];constructor(_0x1849d2){const _0x331cc3=_0x2b603f;super(_0x1849d2);const _0xa00f3b=this[_0x331cc3(0xb3)];this[_0x331cc3(0xd8)](_0x331cc3(0xb7),0x0),this[_0x331cc3(0xd8)](_0x331cc3(0xab),''),this[_0x331cc3(0xd0)]=this[_0x331cc3(0xd9)](),this[_0x331cc3(0xc8)]=this[_0x331cc3(0xd9)](),this[_0x331cc3(0xd0)][_0x331cc3(0xb0)](_0x331cc3(0xbd),_0x331cc3(0xbc))['to'](this),this[_0x331cc3(0xb2)]=new _0x232128(),this[_0x331cc3(0xc2)]=new _0x1744e4({'focusables':this[_0x331cc3(0xc8)],'focusTracker':this[_0x331cc3(0xb2)]}),this[_0x331cc3(0xd1)]({'tag':_0x331cc3(0xd7),'attributes':{'class':['ck',_0x331cc3(0xb8),_0x331cc3(0xac),_0xa00f3b['to'](_0x331cc3(0xab))],'style':{'minHeight':_0xa00f3b['to'](_0x331cc3(0xb7),_0x54a807=>_0x331cc3(0xd6)==typeof _0x54a807?Ot(_0x54a807+0xa):null)},'dir':_0x1849d2[_0x331cc3(0xbf)],'role':_0x331cc3(0xaf),'aria-label':_0x5eed59(_0x1849d2,_0x331cc3(0xc4)),'tabindex':0x0},'children':[{'tag':_0x331cc3(0xd7),'attributes':{'role':_0x331cc3(0xd0),'aria-label':_0x5eed59(_0x1849d2,_0x331cc3(0xc1))},'children':this[_0x331cc3(0xd0)]}]});}[_0x2b603f(0xb4)](){const _0x37ce29=_0x2b603f;super[_0x37ce29(0xb4)](),this[_0x37ce29(0xb5)]();}[_0x2b603f(0xaa)](){const _0x443805=_0x2b603f;this[_0x443805(0xc2)][_0x443805(0xd5)]();}[_0x2b603f(0xb5)](){const _0x3809a8=_0x2b603f;this[_0x3809a8(0xd0)][_0x3809a8(0xb0)](_0x3809a8(0xdc))['to'](this),this['on'](_0x3809a8(0xdc),_0x38bf1e=>{const _0x44462f=_0x3809a8;this[_0x44462f(0xcf)](_0x38bf1e[_0x44462f(0xc0)]);}),this[_0x3809a8(0xd0)][_0x3809a8(0xcd)](_0x1ed587=>{const _0x4a90fd=_0x3809a8;this[_0x4a90fd(0xb2)][_0x4a90fd(0xca)](_0x1ed587[_0x4a90fd(0xcb)]),this[_0x4a90fd(0xcf)](_0x1ed587);}),this[_0x3809a8(0xd0)]['on'](_0x3809a8(0xc6),(_0x4df343,_0x16f50c)=>{const _0x441788=_0x3809a8;for(const _0x4b47c4 of _0x16f50c[_0x441788(0xa9)])this[_0x441788(0xb2)][_0x441788(0xb9)](_0x4b47c4[_0x441788(0xcb)]),this[_0x441788(0xc8)][_0x441788(0xb9)](_0x4b47c4);for(const _0x38aca8 of _0x16f50c[_0x441788(0xda)])this[_0x441788(0xb2)][_0x441788(0xca)](_0x38aca8[_0x441788(0xcb)]),this[_0x441788(0xcf)](_0x38aca8);}),this['on'](_0x3809a8(0xbd),()=>{const _0x2dcf1c=_0x3809a8;this[_0x2dcf1c(0xc2)][_0x2dcf1c(0xd2)]();}),this['on'](_0x3809a8(0xbc),()=>{const _0x287d3a=_0x3809a8;this[_0x287d3a(0xc2)][_0x287d3a(0xdb)]();}),this[_0x3809a8(0xbb)](this[_0x3809a8(0xcb)],_0x3809a8(0xaa),()=>{const _0x8c933d=_0x3809a8;this[_0x8c933d(0xaa)]();});}[_0x2b603f(0xcf)](_0x5f541d){const _0x36599b=_0x2b603f,_0x3526c3=this[_0x36599b(0xc8)][_0x36599b(0xb6)](_0x5f541d);let _0x13029d,_0x314c1f;for(const _0x2504c4 of this[_0x36599b(0xc8)])if(_0x5f541d[_0x36599b(0xb1)]<_0x2504c4[_0x36599b(0xb1)]){_0x13029d=_0x2504c4;break;}if(_0x314c1f=_0x13029d?this[_0x36599b(0xc8)][_0x36599b(0xb6)](_0x13029d):this[_0x36599b(0xc8)][_0x36599b(0xd3)],-0x1!==_0x3526c3){if(_0x3526c3===_0x314c1f-0x1)return;this[_0x36599b(0xc8)][_0x36599b(0xb9)](_0x5f541d),_0x314c1f=_0x13029d?this[_0x36599b(0xc8)][_0x36599b(0xb6)](_0x13029d):this[_0x36599b(0xc8)][_0x36599b(0xd3)];}this[_0x36599b(0xc8)][_0x36599b(0xca)](_0x5f541d,_0x314c1f);}}