@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.29 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 _0x47d5ab=_0x3348;(function(_0x55356b,_0x5b0d46){const _0x4dcb05=_0x3348,_0x1d6f6c=_0x55356b();while(!![]){try{const _0x56ce52=parseInt(_0x4dcb05(0x1ef))/0x1+parseInt(_0x4dcb05(0x1fd))/0x2+-parseInt(_0x4dcb05(0x1f4))/0x3+parseInt(_0x4dcb05(0x1f9))/0x4*(parseInt(_0x4dcb05(0x1f1))/0x5)+-parseInt(_0x4dcb05(0x1f8))/0x6*(-parseInt(_0x4dcb05(0x1f6))/0x7)+parseInt(_0x4dcb05(0x1fc))/0x8*(parseInt(_0x4dcb05(0x205))/0x9)+parseInt(_0x4dcb05(0x1f3))/0xa*(-parseInt(_0x4dcb05(0x1eb))/0xb);if(_0x56ce52===_0x5b0d46)break;else _0x1d6f6c['push'](_0x1d6f6c['shift']());}catch(_0x28974c){_0x1d6f6c['push'](_0x1d6f6c['shift']());}}}(_0x80d9,0xf4050));import{View as _0x21b110,IconView as _0x4e0cba}from'ckeditor5/src/ui.js';function _0x3348(_0xb1c55c,_0x269370){const _0x80d937=_0x80d9();return _0x3348=function(_0x3348e1,_0x230d98){_0x3348e1=_0x3348e1-0x1ea;let _0x2c5e76=_0x80d937[_0x3348e1];return _0x2c5e76;},_0x3348(_0xb1c55c,_0x269370);}import{IconNotification as _0x3b0da5}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0x80d9(){const _0xb67795=['ck-user__notification','40FJwULq','div','30JZGceQ','4351869IWWeDv','avatar','7nvNPun','notificationView','10504410lcSmGX','878728BHeciY','ck\x20ck-user__name','name','3499208JxtGYK','3549426XABpDJ','ck\x20ck-user__name\x20ck-user__name--hidden','isMe','ck-user__icon','ck-user__img','ck-user__avatar','extendTemplate','ck-user__anonymous','9nQPtMK','ck-user_me','isAnonymous','push','content','ck-user','15978127ElOnBH','initials','url(\x27','setTemplate','1087493NxiihH'];_0x80d9=function(){return _0xb67795;};return _0x80d9();}export class UserView extends _0x21b110{[_0x47d5ab(0x1fb)];[_0x47d5ab(0x1f7)];constructor(_0x5c3e2e,_0x2a78b9,_0x54e40c){const _0x554ff9=_0x47d5ab;super(_0x5c3e2e),this[_0x554ff9(0x1fb)]=_0x2a78b9[_0x554ff9(0x1fb)],this[_0x554ff9(0x1f7)]=null;const _0xbf038b=['ck',_0x554ff9(0x1ea)],_0x1d0214=['ck',_0x554ff9(0x201)];if(_0x2a78b9[_0x554ff9(0x207)]&&_0x1d0214[_0x554ff9(0x208)](_0x554ff9(0x204)),!_0x2a78b9[_0x554ff9(0x207)]&&_0x2a78b9[_0x554ff9(0x1ff)]&&_0xbf038b[_0x554ff9(0x208)](_0x554ff9(0x206)),_0x2a78b9[_0x554ff9(0x1f5)]&&_0x1d0214[_0x554ff9(0x208)](_0x554ff9(0x202)),_0x54e40c){const _0x468802=new _0x4e0cba();_0x468802[_0x554ff9(0x203)]({'attributes':{'class':[_0x554ff9(0x200)]}}),_0x468802[_0x554ff9(0x209)]=_0x3b0da5,this[_0x554ff9(0x1f7)]={'tag':_0x554ff9(0x1f2),'attributes':{'class':['ck',_0x554ff9(0x1f0)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x54e40c},'children':[_0x468802]};}const _0x37cccd=[{'tag':_0x554ff9(0x1f2),'attributes':{'class':_0x1d0214,'style':{'background-image':_0x2a78b9[_0x554ff9(0x1f5)]?_0x554ff9(0x1ed)+_0x2a78b9[_0x554ff9(0x1f5)]+'\x27)':''}}},{'tag':_0x554ff9(0x1f2),'attributes':{'class':_0x2a78b9[_0x554ff9(0x1f5)]?_0x554ff9(0x1fe):_0x554ff9(0x1fa),'aria-label':_0x2a78b9[_0x554ff9(0x1fb)]},'children':[{'text':_0x2a78b9[_0x554ff9(0x1ec)]}]}];this[_0x554ff9(0x1f7)]&&_0x37cccd[_0x554ff9(0x208)](this[_0x554ff9(0x1f7)]),this[_0x554ff9(0x1ee)]({'tag':_0x554ff9(0x1f2),'attributes':{'class':_0xbf038b,'data-user-id':_0x2a78b9['id']},'children':_0x37cccd});}}