@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
23 lines • 4.2 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 _0x18cb8c=_0x57e0;(function(_0x282ca0,_0x1d90b5){const _0x20fc3a=_0x57e0,_0x14117c=_0x282ca0();while(!![]){try{const _0x4f9e17=-parseInt(_0x20fc3a(0xca))/0x1+-parseInt(_0x20fc3a(0xcd))/0x2+parseInt(_0x20fc3a(0xb9))/0x3*(parseInt(_0x20fc3a(0xce))/0x4)+parseInt(_0x20fc3a(0xba))/0x5+-parseInt(_0x20fc3a(0xc3))/0x6*(-parseInt(_0x20fc3a(0xc9))/0x7)+-parseInt(_0x20fc3a(0xc4))/0x8*(-parseInt(_0x20fc3a(0xc0))/0x9)+-parseInt(_0x20fc3a(0xd5))/0xa;if(_0x4f9e17===_0x1d90b5)break;else _0x14117c['push'](_0x14117c['shift']());}catch(_0x4e449d){_0x14117c['push'](_0x14117c['shift']());}}}(_0x2428,0xdd429));function _0x57e0(_0x19321a,_0x498071){const _0x242831=_0x2428();return _0x57e0=function(_0x57e006,_0x43c919){_0x57e006=_0x57e006-0xb8;let _0x2a6eed=_0x242831[_0x57e006];return _0x2a6eed;},_0x57e0(_0x19321a,_0x498071);}import{View as _0x8fbb1d,IconView as _0x9f583a}from'ckeditor5/src/ui.js';import{IconNotification as _0x1351cb}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0x2428(){const _0x3df8b0=['push','180819lFjzkL','isMe','ck\x20ck-user__name','6PtAvvZ','200SYQVUN','setTemplate','ck-user_me','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','11708102pjfIVI','925321dWaqSC','ck-user','ck-user__icon','2734608ibGQeN','3068168FZVocf','avatar','ck-user__img','div','extendTemplate','ck-user__avatar','initials','10998080wWXrgu','notificationView','ck-user__notification','6CyVBBn','2948845tCjwpR','url(\x27','content','ck-user__anonymous','name'];_0x2428=function(){return _0x3df8b0;};return _0x2428();}export class UserView extends _0x8fbb1d{[_0x18cb8c(0xbe)];[_0x18cb8c(0xd6)];constructor(_0x51f423,_0x2204f9,_0x4a1c40){const _0x102900=_0x18cb8c;super(_0x51f423),this[_0x102900(0xbe)]=_0x2204f9[_0x102900(0xbe)],this[_0x102900(0xd6)]=null;const _0x29f327=['ck',_0x102900(0xcb)],_0x458205=['ck',_0x102900(0xd0)];if(_0x2204f9[_0x102900(0xc7)]&&_0x458205[_0x102900(0xbf)](_0x102900(0xbd)),!_0x2204f9[_0x102900(0xc7)]&&_0x2204f9[_0x102900(0xc1)]&&_0x29f327[_0x102900(0xbf)](_0x102900(0xc6)),_0x2204f9[_0x102900(0xcf)]&&_0x458205[_0x102900(0xbf)](_0x102900(0xd3)),_0x4a1c40){const _0x9938ab=new _0x9f583a();_0x9938ab[_0x102900(0xd2)]({'attributes':{'class':[_0x102900(0xcc)]}}),_0x9938ab[_0x102900(0xbc)]=_0x1351cb,this[_0x102900(0xd6)]={'tag':_0x102900(0xd1),'attributes':{'class':['ck',_0x102900(0xb8)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4a1c40},'children':[_0x9938ab]};}const _0x3232f3=[{'tag':_0x102900(0xd1),'attributes':{'class':_0x458205,'style':{'background-image':_0x2204f9[_0x102900(0xcf)]?_0x102900(0xbb)+_0x2204f9[_0x102900(0xcf)]+'\x27)':''}}},{'tag':_0x102900(0xd1),'attributes':{'class':_0x2204f9[_0x102900(0xcf)]?_0x102900(0xc8):_0x102900(0xc2),'aria-label':_0x2204f9[_0x102900(0xbe)]},'children':[{'text':_0x2204f9[_0x102900(0xd4)]}]}];this[_0x102900(0xd6)]&&_0x3232f3[_0x102900(0xbf)](this[_0x102900(0xd6)]),this[_0x102900(0xc5)]({'tag':_0x102900(0xd1),'attributes':{'class':_0x29f327,'data-user-id':_0x2204f9['id']},'children':_0x3232f3});}}