@ckeditor/ckeditor5-real-time-collaboration
Version:
A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.
23 lines • 5.07 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 _0x35db(_0x217f93,_0x443d42){const _0x2ed59a=_0x2ed5();return _0x35db=function(_0x35db75,_0x52e062){_0x35db75=_0x35db75-0x16f;let _0x451de9=_0x2ed59a[_0x35db75];return _0x451de9;},_0x35db(_0x217f93,_0x443d42);}function _0x2ed5(){const _0xa9c7ee=['div','element','45VsOFSj','listenTo','presencelist:hide','items','fire','change','176472AyFRAh','2nDVygp','Connected\x20users\x20list\x20dropdown\x20menu','bindTemplate','ariaLabelledBy','282SAepuY','607797PZXwPI','84052kMuXFu','listWrapperView','8lsHpYQ','ck-presence-list__dropdown-list-wrapper_scrollable','ck-presence-list__dropdown-list-wrapper','1549361sfoIQO','max','scrollHeight','role','checkIfScrollable','window','.ck-presence-list__list','relatedTarget','render','application','querySelector','4128648hZYelu','91111TZJUfO','ck-list','clientHeight','innerHeight','resize','set','7091YgypiQ','.ck-balloon-panel_with-arrow','ck-reset','_isScrollable','ck-presence-list__dropdown-list','setTemplate','10wBRiPM','contains','ariaLabel'];_0x2ed5=function(){return _0xa9c7ee;};return _0x2ed5();}const _0x18e0dd=_0x35db;(function(_0x18f66b,_0x3c3555){const _0x549a80=_0x35db,_0x12d234=_0x18f66b();while(!![]){try{const _0x1cd479=-parseInt(_0x549a80(0x189))/0x1*(parseInt(_0x549a80(0x172))/0x2)+-parseInt(_0x549a80(0x171))/0x3+parseInt(_0x549a80(0x178))/0x4*(-parseInt(_0x549a80(0x19a))/0x5)+parseInt(_0x549a80(0x176))/0x6*(parseInt(_0x549a80(0x18f))/0x7)+parseInt(_0x549a80(0x17a))/0x8*(-parseInt(_0x549a80(0x177))/0x9)+-parseInt(_0x549a80(0x195))/0xa*(-parseInt(_0x549a80(0x17d))/0xb)+parseInt(_0x549a80(0x188))/0xc;if(_0x1cd479===_0x3c3555)break;else _0x12d234['push'](_0x12d234['shift']());}catch(_0x3f7052){_0x12d234['push'](_0x12d234['shift']());}}}(_0x2ed5,0x1ebeb));import{ListView as _0xd3881b,View as _0x576427}from'ckeditor5/src/ui.js';import{global as _0x38dd83}from'ckeditor5/src/utils.js';import{getTranslation as _0x3327df}from'../../common-translations.js';export class PresenceDropdownListView extends _0x576427{[_0x18e0dd(0x179)];constructor(_0x182e74,_0x50574a){const _0xb19e8b=_0x18e0dd;super(_0x182e74);const _0x400801=this[_0xb19e8b(0x174)];this[_0xb19e8b(0x179)]=new PresenceDropdownListWrapperView(_0x182e74,_0x50574a),this[_0xb19e8b(0x194)]({'tag':_0xb19e8b(0x198),'attributes':{'tabindex':-0x1,'role':_0xb19e8b(0x186),'class':['ck',_0xb19e8b(0x193)],'aria-label':_0x3327df(_0x182e74,_0xb19e8b(0x173))},'children':[this[_0xb19e8b(0x179)]],'on':{'mouseleave':_0x400801['to'](_0x2e22a6=>{const _0x4582ff=_0xb19e8b,_0x5f5ba6=_0x2e22a6,_0xe68ccb=document[_0x4582ff(0x187)](_0x4582ff(0x183)),_0x5e2dd7=document[_0x4582ff(0x187)](_0x4582ff(0x190));_0xe68ccb?.[_0x4582ff(0x196)](_0x5f5ba6[_0x4582ff(0x184)])||_0x5e2dd7?.[_0x4582ff(0x196)](_0x5f5ba6[_0x4582ff(0x184)])||this[_0x4582ff(0x16f)](_0x4582ff(0x19c));})}});}}export class PresenceDropdownListWrapperView extends _0xd3881b{constructor(_0x4257f8,_0x140ac0){const _0x4e2126=_0x18e0dd;super(_0x4257f8);const _0x2057b6=this[_0x4e2126(0x174)];this[_0x4e2126(0x18e)](_0x4e2126(0x192),!0x1),this[_0x4e2126(0x194)]({'tag':_0x140ac0?_0x4e2126(0x198):'ul','attributes':{'class':['ck',_0x4e2126(0x191),_0x4e2126(0x18a),_0x4e2126(0x17c),_0x2057b6['if'](_0x4e2126(0x192),_0x4e2126(0x17b))],'role':_0x2057b6['to'](_0x4e2126(0x180)),'aria-label':_0x2057b6['to'](_0x4e2126(0x197)),'aria-labelledby':_0x2057b6['to'](_0x4e2126(0x175))},'children':this[_0x4e2126(0x19d)]}),this[_0x4e2126(0x19b)](_0x38dd83[_0x4e2126(0x182)],_0x4e2126(0x18d),()=>this[_0x4e2126(0x181)]()),this[_0x4e2126(0x19d)]['on'](_0x4e2126(0x170),()=>this[_0x4e2126(0x181)]());}[_0x18e0dd(0x185)](){const _0x4bf2c5=_0x18e0dd;super[_0x4bf2c5(0x185)](),this[_0x4bf2c5(0x181)]();}[_0x18e0dd(0x181)](){const _0x2b90ab=_0x18e0dd,_0x119459=this[_0x2b90ab(0x199)];_0x119459&&(this[_0x2b90ab(0x192)]=Math[_0x2b90ab(0x17e)](_0x119459[_0x2b90ab(0x17f)],_0x119459[_0x2b90ab(0x18b)])>0.8*window[_0x2b90ab(0x18c)]);}}