UNPKG

@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.02 kB
/* * 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 _0x5ca77a=_0x258f;(function(_0x180ced,_0x408e3b){const _0x3a3a58=_0x258f,_0xc1ecc8=_0x180ced();while(!![]){try{const _0x1a017e=parseInt(_0x3a3a58(0x1fc))/0x1*(parseInt(_0x3a3a58(0x1eb))/0x2)+parseInt(_0x3a3a58(0x202))/0x3*(parseInt(_0x3a3a58(0x207))/0x4)+parseInt(_0x3a3a58(0x205))/0x5+-parseInt(_0x3a3a58(0x1f5))/0x6*(parseInt(_0x3a3a58(0x1f9))/0x7)+parseInt(_0x3a3a58(0x1fd))/0x8+-parseInt(_0x3a3a58(0x1e1))/0x9*(-parseInt(_0x3a3a58(0x1e8))/0xa)+-parseInt(_0x3a3a58(0x1fb))/0xb;if(_0x1a017e===_0x408e3b)break;else _0xc1ecc8['push'](_0xc1ecc8['shift']());}catch(_0x13ff8f){_0xc1ecc8['push'](_0xc1ecc8['shift']());}}}(_0x821e,0x21b65));import{ListView as _0x29edf5,View as _0x436c48}from'ckeditor5/src/ui.js';import{global as _0x878c3b}from'ckeditor5/src/utils.js';import{getTranslation as _0x1fdb53}from'../../common-translations.js';export class PresenceDropdownListView extends _0x436c48{[_0x5ca77a(0x20e)];constructor(_0x17b005,_0x504afb){const _0x1789cb=_0x5ca77a;super(_0x17b005);const _0x5acd98=this[_0x1789cb(0x1e6)];this[_0x1789cb(0x20e)]=new PresenceDropdownListWrapperView(_0x17b005,_0x504afb),this[_0x1789cb(0x1e3)]({'tag':_0x1789cb(0x20d),'attributes':{'tabindex':-0x1,'role':_0x1789cb(0x20b),'class':['ck',_0x1789cb(0x1fa)],'aria-label':_0x1fdb53(_0x17b005,_0x1789cb(0x206))},'children':[this[_0x1789cb(0x20e)]],'on':{'mouseleave':_0x5acd98['to'](_0x2f6165=>{const _0x394124=_0x1789cb,_0x504e91=_0x2f6165,_0x11647e=document[_0x394124(0x1e9)](_0x394124(0x208)),_0x455442=document[_0x394124(0x1e9)](_0x394124(0x1ef));_0x11647e?.[_0x394124(0x1e5)](_0x504e91[_0x394124(0x209)])||_0x455442?.[_0x394124(0x1e5)](_0x504e91[_0x394124(0x209)])||this[_0x394124(0x1ec)](_0x394124(0x1ed));})}});}}export class PresenceDropdownListWrapperView extends _0x29edf5{constructor(_0x2e94d0,_0x5e882b){const _0x1e3023=_0x5ca77a;super(_0x2e94d0);const _0x4273db=this[_0x1e3023(0x1e6)];this[_0x1e3023(0x1f2)](_0x1e3023(0x1f3),!0x1),this[_0x1e3023(0x1e3)]({'tag':_0x5e882b?_0x1e3023(0x20d):'ul','attributes':{'class':['ck',_0x1e3023(0x1f1),_0x1e3023(0x204),_0x1e3023(0x1f0),_0x4273db['if'](_0x1e3023(0x1f3),_0x1e3023(0x1f6))],'role':_0x4273db['to'](_0x1e3023(0x203)),'aria-label':_0x4273db['to'](_0x1e3023(0x1f8)),'aria-labelledby':_0x4273db['to'](_0x1e3023(0x1ee))},'children':this[_0x1e3023(0x1fe)]}),this[_0x1e3023(0x1f4)](_0x878c3b[_0x1e3023(0x1e7)],_0x1e3023(0x201),()=>this[_0x1e3023(0x1ff)]()),this[_0x1e3023(0x1fe)]['on'](_0x1e3023(0x200),()=>this[_0x1e3023(0x1ff)]());}[_0x5ca77a(0x1f7)](){const _0x2a94b5=_0x5ca77a;super[_0x2a94b5(0x1f7)](),this[_0x2a94b5(0x1ff)]();}[_0x5ca77a(0x1ff)](){const _0x28aed1=_0x5ca77a,_0x2e840e=this[_0x28aed1(0x20c)];_0x2e840e&&(this[_0x28aed1(0x1f3)]=Math[_0x28aed1(0x1e2)](_0x2e840e[_0x28aed1(0x1e4)],_0x2e840e[_0x28aed1(0x1ea)])>0.8*window[_0x28aed1(0x20a)]);}}function _0x258f(_0x4f62d2,_0x41ea24){const _0x821e97=_0x821e();return _0x258f=function(_0x258f8c,_0x39d493){_0x258f8c=_0x258f8c-0x1e1;let _0x703167=_0x821e97[_0x258f8c];return _0x703167;},_0x258f(_0x4f62d2,_0x41ea24);}function _0x821e(){const _0x3a1fc3=['resize','1539WMoCvN','role','ck-list','1277060vfjPbP','Connected\x20users\x20list\x20dropdown\x20menu','1116cgOjuk','.ck-presence-list__list','relatedTarget','innerHeight','application','element','div','listWrapperView','2095047sWWKfq','max','setTemplate','scrollHeight','contains','bindTemplate','window','10MGmQCZ','querySelector','clientHeight','60440JcgvAj','fire','presencelist:hide','ariaLabelledBy','.ck-balloon-panel_with-arrow','ck-presence-list__dropdown-list-wrapper','ck-reset','set','_isScrollable','listenTo','41526Kvidoc','ck-presence-list__dropdown-list-wrapper_scrollable','render','ariaLabel','63GmZody','ck-presence-list__dropdown-list','8682949CgbjAp','8wGuEPu','933208hxrEnX','items','checkIfScrollable','change'];_0x821e=function(){return _0x3a1fc3;};return _0x821e();}