@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 • 4.64 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 _0x4574(){const _0x2d6b06=['removeAttribute','.ck-balloon-panel_with-arrow','change:hasPopup','presencelist:show','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','bindTemplate','hasPopup','.ck-presence-list__dropdown-list','748528fXhAmz','createCollection','fire','isExpanded','render','63uvxdgU','element','presencelist:hide','set','keystrokes','182864ukDFyD','querySelector','contains','631449dhqqoC','408896vcAtux','setTemplate','186481lJyZHD','Connected\x20users\x20list','div','list','listenTo','aria-expanded','relatedTarget','focus','770262yQVjAB','474630kFaSqC','setAttribute','ck-presence-list__list','items'];_0x4574=function(){return _0x2d6b06;};return _0x4574();}const _0x1ba262=_0x2ec4;function _0x2ec4(_0x1e6dcb,_0x338057){const _0x457485=_0x4574();return _0x2ec4=function(_0x2ec4f7,_0x18a465){_0x2ec4f7=_0x2ec4f7-0x1de;let _0x2f5991=_0x457485[_0x2ec4f7];return _0x2f5991;},_0x2ec4(_0x1e6dcb,_0x338057);}(function(_0x243268,_0x46a30f){const _0x3b79f2=_0x2ec4,_0x2e6281=_0x243268();while(!![]){try{const _0x1c6d68=parseInt(_0x3b79f2(0x1f7))/0x1+parseInt(_0x3b79f2(0x1f5))/0x2+parseInt(_0x3b79f2(0x1f4))/0x3+-parseInt(_0x3b79f2(0x1e7))/0x4+parseInt(_0x3b79f2(0x200))/0x5+-parseInt(_0x3b79f2(0x1ff))/0x6+parseInt(_0x3b79f2(0x1ec))/0x7*(-parseInt(_0x3b79f2(0x1f1))/0x8);if(_0x1c6d68===_0x46a30f)break;else _0x2e6281['push'](_0x2e6281['shift']());}catch(_0x4b9285){_0x2e6281['push'](_0x2e6281['shift']());}}}(_0x4574,0x2ac03));import{View as _0x3de3aa}from'ckeditor5/src/ui.js';import{KeystrokeHandler as _0x21d9dd}from'ckeditor5/src/utils.js';import{getTranslation as _0x2c7d68}from'../../common-translations.js';export class PresenceInlineListView extends _0x3de3aa{[_0x1ba262(0x1de)];[_0x1ba262(0x1f0)];constructor(_0x5c9183){const _0x397af8=_0x1ba262;super(_0x5c9183);const _0x354b26=this[_0x397af8(0x1e4)];this[_0x397af8(0x1de)]=this[_0x397af8(0x1e8)](),this[_0x397af8(0x1f0)]=new _0x21d9dd(),this[_0x397af8(0x1ef)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x397af8(0x1f6)]({'tag':_0x397af8(0x1f9),'attributes':{'aria-haspopup':_0x354b26['if'](_0x397af8(0x1e5)),'aria-expanded':_0x354b26['to'](_0x397af8(0x1ea),_0x28673b=>this[_0x397af8(0x1e5)]&&String(_0x28673b)),'aria-label':_0x354b26['to'](_0x397af8(0x1e5),_0x356faf=>_0x2c7d68(_0x5c9183,_0x356faf?_0x397af8(0x1e3):_0x397af8(0x1f8))),'role':_0x397af8(0x1fa),'tabindex':_0x354b26['to'](_0x397af8(0x1e5),_0x58e313=>!!_0x58e313&&0x0),'class':['ck',_0x397af8(0x202)]},'children':this[_0x397af8(0x1de)],'on':{'mouseenter':_0x354b26['to'](()=>this[_0x397af8(0x1e9)](_0x397af8(0x1e2))),'mouseleave':_0x354b26['to'](_0x1f08c7=>{const _0x1af93b=_0x397af8,_0x3668b8=_0x1f08c7,_0x58e679=document[_0x1af93b(0x1f2)](_0x1af93b(0x1e6)),_0x10d212=document[_0x1af93b(0x1f2)](_0x1af93b(0x1e0));_0x58e679?.[_0x1af93b(0x1f3)](_0x3668b8[_0x1af93b(0x1fd)])||_0x10d212?.[_0x1af93b(0x1f3)](_0x3668b8[_0x1af93b(0x1fd)])||this[_0x1af93b(0x1e9)](_0x1af93b(0x1ee));})}}),this['on'](_0x397af8(0x1e1),(_0x2af6a3,_0x28b420,_0xd5f652)=>{const _0x3e342b=_0x397af8;this[_0x3e342b(0x1ed)]&&(_0xd5f652?this[_0x3e342b(0x1ed)][_0x3e342b(0x201)](_0x3e342b(0x1fc),String(this[_0x3e342b(0x1ea)])):this[_0x3e342b(0x1ed)][_0x3e342b(0x1df)](_0x3e342b(0x1fc)));});}[_0x1ba262(0x1fe)](){const _0x3de6ee=_0x1ba262;this[_0x3de6ee(0x1ed)][_0x3de6ee(0x1fe)]();}[_0x1ba262(0x1eb)](){const _0x2f0bc2=_0x1ba262;super[_0x2f0bc2(0x1eb)](),this[_0x2f0bc2(0x1f0)][_0x2f0bc2(0x1fb)](this[_0x2f0bc2(0x1ed)]);}}