@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
23 lines • 6.4 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 _0x5dac8d=_0x254b;function _0x2b3b(){const _0x3680b8=['2038461isscnV','number','bindTemplate','remove','focusCycler','class','5RDLYkd','arrowdown','top','143aWYnYD','2154912bhUNeY','application','add','delegate','set','element','minHeight','7679791BfXruG','7514379DVkoPR','focusFirst','forEach','source','7671610DpHWqY','ck-reset','change','_updateItemPositionInFocusables','Annotations\x20list','uiLanguageDirection','getIndex','2008182XpZIoC','focusPrevious','2vlBzuA','ck-sidebar','focusNext','listenTo','div','focusTracker','8GieBgJ','Annotations\x20sidebar','arrowup','render','_setupKeyboardNavigation','focus','added','removed','4gAKHCE','933103OdytLa','setTemplate','focusables','list','change:top','length','createCollection'];_0x2b3b=function(){return _0x3680b8;};return _0x2b3b();}(function(_0x1d176d,_0x2b7f1b){const _0x33d6d2=_0x254b,_0x5f2962=_0x1d176d();while(!![]){try{const _0x531668=parseInt(_0x33d6d2(0x1e3))/0x1*(-parseInt(_0x33d6d2(0x1d4))/0x2)+parseInt(_0x33d6d2(0x1ea))/0x3*(-parseInt(_0x33d6d2(0x1e2))/0x4)+-parseInt(_0x33d6d2(0x1bb))/0x5*(-parseInt(_0x33d6d2(0x1d2))/0x6)+parseInt(_0x33d6d2(0x1c6))/0x7*(parseInt(_0x33d6d2(0x1da))/0x8)+-parseInt(_0x33d6d2(0x1c7))/0x9+-parseInt(_0x33d6d2(0x1cb))/0xa+-parseInt(_0x33d6d2(0x1be))/0xb*(-parseInt(_0x33d6d2(0x1bf))/0xc);if(_0x531668===_0x2b7f1b)break;else _0x5f2962['push'](_0x5f2962['shift']());}catch(_0x368d4e){_0x5f2962['push'](_0x5f2962['shift']());}}}(_0x2b3b,0x86ac0));function _0x254b(_0x5ac17e,_0x4b9aed){const _0x2b3b89=_0x2b3b();return _0x254b=function(_0x254b99,_0x17eaed){_0x254b99=_0x254b99-0x1b7;let _0x4319ee=_0x2b3b89[_0x254b99];return _0x4319ee;},_0x254b(_0x5ac17e,_0x4b9aed);}import{View as _0x1a4c42,FocusCycler as _0xe2aa51}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2ce452,toUnit as _0x18ab9a}from'ckeditor5/src/utils.js';import{getTranslation as _0x4fdbf3}from'../../utils/common-translations.js';import'../../../theme/sidebar.css';const Ht=_0x18ab9a('px');export default class F extends _0x1a4c42{[_0x5dac8d(0x1e6)];[_0x5dac8d(0x1e5)];[_0x5dac8d(0x1d9)];[_0x5dac8d(0x1b9)];constructor(_0x5e5739){const _0x14ad65=_0x5dac8d;super(_0x5e5739);const _0x78e6af=this[_0x14ad65(0x1b7)];this[_0x14ad65(0x1c3)](_0x14ad65(0x1c5),0x0),this[_0x14ad65(0x1c3)](_0x14ad65(0x1ba),''),this[_0x14ad65(0x1e6)]=this[_0x14ad65(0x1e9)](),this[_0x14ad65(0x1e5)]=this[_0x14ad65(0x1e9)](),this[_0x14ad65(0x1e6)][_0x14ad65(0x1c2)](_0x14ad65(0x1dc),_0x14ad65(0x1bc))['to'](this),this[_0x14ad65(0x1d9)]=new _0x2ce452(),this[_0x14ad65(0x1b9)]=new _0xe2aa51({'focusables':this[_0x14ad65(0x1e5)],'focusTracker':this[_0x14ad65(0x1d9)]}),this[_0x14ad65(0x1e4)]({'tag':_0x14ad65(0x1d8),'attributes':{'class':['ck',_0x14ad65(0x1d5),_0x14ad65(0x1cc),_0x78e6af['to'](_0x14ad65(0x1ba))],'style':{'minHeight':_0x78e6af['to'](_0x14ad65(0x1c5),_0x51bf55=>_0x14ad65(0x1eb)==typeof _0x51bf55?Ht(_0x51bf55+0xa):null)},'dir':_0x5e5739[_0x14ad65(0x1d0)],'role':_0x14ad65(0x1c0),'aria-label':_0x4fdbf3(_0x5e5739,_0x14ad65(0x1db)),'tabindex':0x0},'children':[{'tag':_0x14ad65(0x1d8),'attributes':{'role':_0x14ad65(0x1e6),'aria-label':_0x4fdbf3(_0x5e5739,_0x14ad65(0x1cf))},'children':this[_0x14ad65(0x1e6)]}]});}[_0x5dac8d(0x1dd)](){const _0x172d89=_0x5dac8d;super[_0x172d89(0x1dd)](),this[_0x172d89(0x1de)]();}[_0x5dac8d(0x1df)](){const _0x10b0a0=_0x5dac8d;this[_0x10b0a0(0x1b9)][_0x10b0a0(0x1c8)]();}[_0x5dac8d(0x1de)](){const _0x235f41=_0x5dac8d;this[_0x235f41(0x1e6)][_0x235f41(0x1c2)](_0x235f41(0x1e7))['to'](this),this['on'](_0x235f41(0x1e7),_0x1b1172=>{const _0x1e6857=_0x235f41;this[_0x1e6857(0x1ce)](_0x1b1172[_0x1e6857(0x1ca)]);}),this[_0x235f41(0x1e6)][_0x235f41(0x1c9)](_0x1cb257=>{const _0x3bdac8=_0x235f41;this[_0x3bdac8(0x1d9)][_0x3bdac8(0x1c1)](_0x1cb257[_0x3bdac8(0x1c4)]),this[_0x3bdac8(0x1ce)](_0x1cb257);}),this[_0x235f41(0x1e6)]['on'](_0x235f41(0x1cd),(_0x3f3d39,_0x53b3d4)=>{const _0x388273=_0x235f41;for(const _0x1c4db2 of _0x53b3d4[_0x388273(0x1e1)])this[_0x388273(0x1d9)][_0x388273(0x1b8)](_0x1c4db2[_0x388273(0x1c4)]),this[_0x388273(0x1e5)][_0x388273(0x1b8)](_0x1c4db2);for(const _0x6b1974 of _0x53b3d4[_0x388273(0x1e0)])this[_0x388273(0x1d9)][_0x388273(0x1c1)](_0x6b1974[_0x388273(0x1c4)]),this[_0x388273(0x1ce)](_0x6b1974);}),this['on'](_0x235f41(0x1dc),()=>{const _0x10fc68=_0x235f41;this[_0x10fc68(0x1b9)][_0x10fc68(0x1d3)]();}),this['on'](_0x235f41(0x1bc),()=>{const _0x2446a6=_0x235f41;this[_0x2446a6(0x1b9)][_0x2446a6(0x1d6)]();}),this[_0x235f41(0x1d7)](this[_0x235f41(0x1c4)],_0x235f41(0x1df),()=>{const _0x1ccf27=_0x235f41;this[_0x1ccf27(0x1df)]();});}[_0x5dac8d(0x1ce)](_0x16719c){const _0xd5bd3c=_0x5dac8d,_0x3df1f1=this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1d1)](_0x16719c);let _0x554f99,_0x145ba1;for(const _0x24c1a0 of this[_0xd5bd3c(0x1e5)])if(_0x16719c[_0xd5bd3c(0x1bd)]<_0x24c1a0[_0xd5bd3c(0x1bd)]){_0x554f99=_0x24c1a0;break;}if(_0x145ba1=_0x554f99?this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1d1)](_0x554f99):this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1e8)],-0x1!==_0x3df1f1){if(_0x3df1f1===_0x145ba1-0x1)return;this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1b8)](_0x16719c),_0x145ba1=_0x554f99?this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1d1)](_0x554f99):this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1e8)];}this[_0xd5bd3c(0x1e5)][_0xd5bd3c(0x1c1)](_0x16719c,_0x145ba1);}}