@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 6.19 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 _0x148080=_0xba15;(function(_0x4f580a,_0x3e6988){const _0x38d09d=_0xba15,_0x3bc0ff=_0x4f580a();while(!![]){try{const _0x572856=parseInt(_0x38d09d(0x187))/0x1+-parseInt(_0x38d09d(0x190))/0x2*(parseInt(_0x38d09d(0x1a9))/0x3)+-parseInt(_0x38d09d(0x17b))/0x4+-parseInt(_0x38d09d(0x18b))/0x5*(parseInt(_0x38d09d(0x185))/0x6)+-parseInt(_0x38d09d(0x19b))/0x7+parseInt(_0x38d09d(0x182))/0x8+parseInt(_0x38d09d(0x18d))/0x9;if(_0x572856===_0x3e6988)break;else _0x3bc0ff['push'](_0x3bc0ff['shift']());}catch(_0x783d73){_0x3bc0ff['push'](_0x3bc0ff['shift']());}}}(_0x2d66,0xdefd4));import{View as _0x2265b5,FocusCycler as _0x34411e}from'ckeditor5/src/ui.js';function _0xba15(_0x10e57e,_0x5746fa){const _0x2d66d5=_0x2d66();return _0xba15=function(_0xba15d5,_0x4e3b71){_0xba15d5=_0xba15d5-0x17a;let _0x22515b=_0x2d66d5[_0xba15d5];return _0x22515b;},_0xba15(_0x10e57e,_0x5746fa);}import{FocusTracker as _0x8224dd,toUnit as _0x5085e1}from'ckeditor5/src/utils.js';import{getTranslation as _0x137822}from'../../utils/common-translations.js';import'../../../theme/sidebar.css';const qt=_0x5085e1('px');export default class V extends _0x2265b5{constructor(_0x21b395){const _0x41c0d5=_0xba15;super(_0x21b395);const _0x18f0b4=this[_0x41c0d5(0x19c)];this[_0x41c0d5(0x19e)](_0x41c0d5(0x19d),0x0),this[_0x41c0d5(0x19e)](_0x41c0d5(0x18f),''),this[_0x41c0d5(0x186)]=this[_0x41c0d5(0x191)](),this[_0x41c0d5(0x17f)]=this[_0x41c0d5(0x191)](),this[_0x41c0d5(0x186)][_0x41c0d5(0x188)](_0x41c0d5(0x17e),_0x41c0d5(0x19a))['to'](this),this[_0x41c0d5(0x1a6)]=new _0x8224dd(),this[_0x41c0d5(0x197)]=new _0x34411e({'focusables':this[_0x41c0d5(0x17f)],'focusTracker':this[_0x41c0d5(0x1a6)]}),this[_0x41c0d5(0x195)]({'tag':_0x41c0d5(0x181),'attributes':{'class':['ck',_0x41c0d5(0x1a2),_0x41c0d5(0x1a7),_0x18f0b4['to'](_0x41c0d5(0x18f))],'style':{'minHeight':_0x18f0b4['to'](_0x41c0d5(0x19d),_0x118bae=>_0x41c0d5(0x1aa)==typeof _0x118bae?qt(_0x118bae+0xa):null)},'dir':_0x21b395[_0x41c0d5(0x199)],'role':_0x41c0d5(0x198),'aria-label':_0x137822(_0x21b395,_0x41c0d5(0x17d)),'tabindex':0x0},'children':[{'tag':_0x41c0d5(0x181),'attributes':{'role':_0x41c0d5(0x186),'aria-label':_0x137822(_0x21b395,_0x41c0d5(0x17a))},'children':this[_0x41c0d5(0x186)]}]});}[_0x148080(0x18e)](){const _0x2df5b3=_0x148080;super[_0x2df5b3(0x18e)](),this[_0x2df5b3(0x1a8)]();}[_0x148080(0x189)](){const _0xd73711=_0x148080;this[_0xd73711(0x197)][_0xd73711(0x1a4)]();}[_0x148080(0x1a8)](){const _0x5658a4=_0x148080;this[_0x5658a4(0x186)][_0x5658a4(0x188)](_0x5658a4(0x193))['to'](this),this['on'](_0x5658a4(0x193),_0x5f3035=>{const _0x13129b=_0x5658a4;this[_0x13129b(0x196)](_0x5f3035[_0x13129b(0x180)]);}),this[_0x5658a4(0x186)][_0x5658a4(0x192)](_0x573dc1=>{const _0x3a22b6=_0x5658a4;this[_0x3a22b6(0x1a6)][_0x3a22b6(0x19f)](_0x573dc1[_0x3a22b6(0x194)]),this[_0x3a22b6(0x196)](_0x573dc1);}),this[_0x5658a4(0x186)]['on'](_0x5658a4(0x1a3),(_0x52d3b0,_0x533c24)=>{const _0x40668e=_0x5658a4;for(const _0x155513 of _0x533c24[_0x40668e(0x1a0)])this[_0x40668e(0x1a6)][_0x40668e(0x1a1)](_0x155513[_0x40668e(0x194)]),this[_0x40668e(0x17f)][_0x40668e(0x1a1)](_0x155513);for(const _0x49b132 of _0x533c24[_0x40668e(0x183)])this[_0x40668e(0x1a6)][_0x40668e(0x19f)](_0x49b132[_0x40668e(0x194)]),this[_0x40668e(0x196)](_0x49b132);}),this['on'](_0x5658a4(0x17e),()=>{const _0x5dcf66=_0x5658a4;this[_0x5dcf66(0x197)][_0x5dcf66(0x17c)]();}),this['on'](_0x5658a4(0x19a),()=>{const _0x4535b8=_0x5658a4;this[_0x4535b8(0x197)][_0x4535b8(0x18c)]();}),this[_0x5658a4(0x1ab)](this[_0x5658a4(0x194)],_0x5658a4(0x189),()=>{const _0x390c48=_0x5658a4;this[_0x390c48(0x189)]();});}[_0x148080(0x196)](_0x21dd75){const _0x39f309=_0x148080,_0x553292=this[_0x39f309(0x17f)][_0x39f309(0x18a)](_0x21dd75);let _0x52a18d,_0x4c0ea6;for(const _0x5e03d5 of this[_0x39f309(0x17f)])if(_0x21dd75[_0x39f309(0x1a5)]<_0x5e03d5[_0x39f309(0x1a5)]){_0x52a18d=_0x5e03d5;break;}if(_0x4c0ea6=_0x52a18d?this[_0x39f309(0x17f)][_0x39f309(0x18a)](_0x52a18d):this[_0x39f309(0x17f)][_0x39f309(0x184)],-0x1!==_0x553292){if(_0x553292===_0x4c0ea6-0x1)return;this[_0x39f309(0x17f)][_0x39f309(0x1a1)](_0x21dd75),_0x4c0ea6=_0x52a18d?this[_0x39f309(0x17f)][_0x39f309(0x18a)](_0x52a18d):this[_0x39f309(0x17f)][_0x39f309(0x184)];}this[_0x39f309(0x17f)][_0x39f309(0x19f)](_0x21dd75,_0x4c0ea6);}}function _0x2d66(){const _0x31280c=['680ictsCx','focusNext','31738068PTnmyv','render','class','614VfodYf','createCollection','forEach','change:top','element','setTemplate','_updateItemPositionInFocusables','focusCycler','application','uiLanguageDirection','arrowdown','9359980mhbVzc','bindTemplate','minHeight','set','add','removed','remove','ck-sidebar','change','focusFirst','top','focusTracker','ck-reset','_setupKeyboardNavigation','3669gKhRvw','number','listenTo','Annotations\x20list','4236668eULSPD','focusPrevious','Annotations\x20sidebar','arrowup','focusables','source','div','5800880NogeIi','added','length','79854vFbrQQ','list','1243594bfRmvu','delegate','focus','getIndex'];_0x2d66=function(){return _0x31280c;};return _0x2d66();}