@ckeditor/ckeditor5-collaboration-core 41.0.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "41.0.0",
3
+ "version": "41.1.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,7 +32,7 @@
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "dependencies": {
35
- "ckeditor5": "41.0.0",
35
+ "ckeditor5": "41.1.0",
36
36
  "date-fns": "2.30.0"
37
37
  },
38
38
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4191=['config','pluginName','isEnabled','clearForceDisabled','permissions-set-permissions-invalid-channel-id','enableReadOnlyMode','plugins','get','collaboration.channelId','find','CommentsOnly','commands','forceDisabled','CommentsRepository','has','editors','comment:write','addCommentThread','setPermissions','includes','no-permissions','disableReadOnlyMode','context'];(function(_0x4c2beb,_0x4191e9){const _0x47fbb4=function(_0x3f0cfa){while(--_0x3f0cfa){_0x4c2beb['push'](_0x4c2beb['shift']());}};_0x47fbb4(++_0x4191e9);}(_0x4191,0x1a4));const _0x47fb=function(_0x4c2beb,_0x4191e9){_0x4c2beb=_0x4c2beb-0x0;let _0x47fbb4=_0x4191[_0x4c2beb];return _0x47fbb4;};import{ContextPlugin as _0x44473f,Editor as _0x20ba3e}from'ckeditor5/src/core.js';import{CKEditorError as _0x14f882}from'ckeditor5/src/utils.js';export default class n extends _0x44473f{static get[_0x47fb('0x12')](){return'Permissions';}['setPermissions'](_0xd0ab03,_0x4b708c){let _0x23a555;if(_0x4b708c||(_0x4b708c=this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')]('collaboration.channelId')),this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c?_0x23a555=this[_0x47fb('0x10')]:_0x47fb('0x9')in this['context']&&this[_0x47fb('0x10')][_0x47fb('0x9')]&&(_0x23a555=this[_0x47fb('0x10')]['editors'][_0x47fb('0x3')](_0x48f356=>_0x48f356['config'][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c)),!_0x23a555)throw new _0x14f882(_0x47fb('0x15'),null);const _0x1d2a20=_0x23a555[_0x47fb('0x0')],_0x6d3bc3=_0x1d2a20['has'](_0x47fb('0x7'))?_0x1d2a20[_0x47fb('0x1')](_0x47fb('0x7')):void 0x0,_0x4bedff=_0x1d2a20[_0x47fb('0x8')](_0x47fb('0x4'))&&_0x1d2a20[_0x47fb('0x1')]('CommentsOnly'),_0x522032=_0xd0ab03[_0x47fb('0xd')]('document:write'),_0x5be806=_0xd0ab03[_0x47fb('0xd')]('comment:modify_all'),_0x584c54=_0xd0ab03[_0x47fb('0xd')]('comment:admin'),_0x2269e1=_0xd0ab03['includes'](_0x47fb('0xa')),_0x550aea=_0x2269e1||_0x584c54,_0x2ac08a=_0x550aea||_0x5be806,_0x5461f4=_0x522032||_0x550aea;(_0x4bedff&&(_0x4bedff[_0x47fb('0x13')]=!_0x522032&&_0x2ac08a),_0x23a555 instanceof _0x20ba3e)&&(!(_0x522032||_0x2ac08a&&_0x6d3bc3)?_0x23a555[_0x47fb('0x16')](_0x47fb('0xe')):_0x23a555[_0x47fb('0xf')](_0x47fb('0xe')));if(_0x6d3bc3){_0x6d3bc3[_0x47fb('0xc')]({'admin':_0x584c54,'modifyAll':_0x5be806,'write':_0x2269e1,'resolve':_0x5461f4},_0x4b708c);const _0x42bf71=_0x23a555 instanceof _0x20ba3e&&_0x23a555[_0x47fb('0x5')][_0x47fb('0x1')](_0x47fb('0xb'));_0x42bf71&&(_0x550aea?_0x42bf71[_0x47fb('0x14')]('noPermissions'):_0x42bf71[_0x47fb('0x6')]('noPermissions'));}}}
23
+ const _0x2587=['comment:modify_all','comment:admin','has','forceDisabled','collaboration.channelId','config','commands','clearForceDisabled','document:write','pluginName','editors','no-permissions','enableReadOnlyMode','comment:write','permissions-set-permissions-invalid-channel-id','noPermissions','CommentsRepository','setPermissions','addCommentThread','includes','plugins','CommentsOnly','isEnabled','context','get'];(function(_0x4fbf12,_0x258715){const _0x2feb2b=function(_0x4c12af){while(--_0x4c12af){_0x4fbf12['push'](_0x4fbf12['shift']());}};_0x2feb2b(++_0x258715);}(_0x2587,0x1b3));const _0x2feb=function(_0x4fbf12,_0x258715){_0x4fbf12=_0x4fbf12-0x0;let _0x2feb2b=_0x2587[_0x4fbf12];return _0x2feb2b;};import{ContextPlugin as _0x5c0324,Editor as _0x1e0f4f}from'ckeditor5/src/core.js';import{CKEditorError as _0x15ad4d}from'ckeditor5/src/utils.js';export default class n extends _0x5c0324{static get[_0x2feb('0x18')](){return'Permissions';}[_0x2feb('0x7')](_0x3acbe0,_0x2b4cad){let _0x291020;if(_0x2b4cad||(_0x2b4cad=this[_0x2feb('0xd')]['config']['get'](_0x2feb('0x13'))),this[_0x2feb('0xd')][_0x2feb('0x14')][_0x2feb('0xe')]('collaboration.channelId')==_0x2b4cad?_0x291020=this['context']:_0x2feb('0x0')in this['context']&&this[_0x2feb('0xd')][_0x2feb('0x0')]&&(_0x291020=this[_0x2feb('0xd')][_0x2feb('0x0')]['find'](_0x19d12b=>_0x19d12b[_0x2feb('0x14')][_0x2feb('0xe')](_0x2feb('0x13'))==_0x2b4cad)),!_0x291020)throw new _0x15ad4d(_0x2feb('0x4'),null);const _0x2fb7b8=_0x291020[_0x2feb('0xa')],_0x19b679=_0x2fb7b8[_0x2feb('0x11')](_0x2feb('0x6'))?_0x2fb7b8['get']('CommentsRepository'):void 0x0,_0xfaa1e8=_0x2fb7b8['has']('CommentsOnly')&&_0x2fb7b8[_0x2feb('0xe')](_0x2feb('0xb')),_0x2a67c2=_0x3acbe0[_0x2feb('0x9')](_0x2feb('0x17')),_0x230e98=_0x3acbe0[_0x2feb('0x9')](_0x2feb('0xf')),_0xdfd1f3=_0x3acbe0[_0x2feb('0x9')](_0x2feb('0x10')),_0x4b0725=_0x3acbe0[_0x2feb('0x9')](_0x2feb('0x3')),_0x3c1dfc=_0x4b0725||_0xdfd1f3,_0x1594d4=_0x3c1dfc||_0x230e98,_0x4a09e1=_0x2a67c2||_0x3c1dfc;(_0xfaa1e8&&(_0xfaa1e8[_0x2feb('0xc')]=!_0x2a67c2&&_0x1594d4),_0x291020 instanceof _0x1e0f4f)&&(!(_0x2a67c2||_0x1594d4&&_0x19b679)?_0x291020[_0x2feb('0x2')](_0x2feb('0x1')):_0x291020['disableReadOnlyMode'](_0x2feb('0x1')));if(_0x19b679){_0x19b679['setPermissions']({'admin':_0xdfd1f3,'modifyAll':_0x230e98,'write':_0x4b0725,'resolve':_0x4a09e1},_0x2b4cad);const _0xe2d9ff=_0x291020 instanceof _0x1e0f4f&&_0x291020[_0x2feb('0x15')]['get'](_0x2feb('0x8'));_0xe2d9ff&&(_0x3c1dfc?_0xe2d9ff[_0x2feb('0x16')](_0x2feb('0x5')):_0xe2d9ff[_0x2feb('0x12')](_0x2feb('0x5')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30e3=['content','avatar','push','name','isAnonymous','ck-user__anonymous','ck-user','ck-user__icon','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','div','ck-user__img','url(\x27','ck-user__avatar'];(function(_0x4b35a3,_0x30e3ea){const _0x3ea397=function(_0xef9578){while(--_0xef9578){_0x4b35a3['push'](_0x4b35a3['shift']());}};_0x3ea397(++_0x30e3ea);}(_0x30e3,0x1a0));const _0x3ea3=function(_0x4b35a3,_0x30e3ea){_0x4b35a3=_0x4b35a3-0x0;let _0x3ea397=_0x30e3[_0x4b35a3];return _0x3ea397;};import{View as _0x2834d1,IconView as _0x32ccad}from'ckeditor5/src/ui.js';import _0x1ceb2c from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x2834d1{constructor(_0x2fde0f,_0x3975b4,_0x1b2124){super(_0x2fde0f),this[_0x3ea3('0x7')]=_0x3975b4[_0x3ea3('0x7')],this['notificationView']=null;const _0x5d8e44=['ck',_0x3ea3('0x1')];if(_0x3975b4[_0x3ea3('0x8')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x9')),_0x3975b4[_0x3ea3('0x5')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x3')),_0x1b2124){const _0x2b85c4=new _0x32ccad();_0x2b85c4['extendTemplate']({'attributes':{'class':[_0x3ea3('0xb')]}}),_0x2b85c4[_0x3ea3('0x4')]=_0x1ceb2c,this[_0x3ea3('0xc')]={'tag':_0x3ea3('0x0'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1b2124},'children':[_0x2b85c4]};}const _0x427f36=[{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x5d8e44,'style':{'background-image':_0x3975b4[_0x3ea3('0x5')]?_0x3ea3('0x2')+_0x3975b4[_0x3ea3('0x5')]+'\x27)':''}}},{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x3975b4['avatar']?_0x3ea3('0xd'):'ck\x20ck-user__name'},'children':[{'text':_0x3975b4['initials']}]}];this['notificationView']&&_0x427f36[_0x3ea3('0x6')](this[_0x3ea3('0xc')]),this['setTemplate']({'tag':_0x3ea3('0x0'),'attributes':{'class':['ck',_0x3ea3('0xa')],'data-user-id':_0x3975b4['id']},'children':_0x427f36});}}
23
+ const _0x4689=['ck\x20ck-user__name','push','url(\x27','setTemplate','name','isMe','ck-user__notification','div','notificationView','avatar','ck-user__avatar','ck-user','ck-user__img','ck-user_me'];(function(_0x149af9,_0x46892f){const _0x442254=function(_0x4aeac0){while(--_0x4aeac0){_0x149af9['push'](_0x149af9['shift']());}};_0x442254(++_0x46892f);}(_0x4689,0xba));const _0x4422=function(_0x149af9,_0x46892f){_0x149af9=_0x149af9-0x0;let _0x442254=_0x4689[_0x149af9];return _0x442254;};import{View as _0xa542c6,IconView as _0x37b559}from'ckeditor5/src/ui.js';import _0x5a0c25 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0xa542c6{constructor(_0x1431d3,_0x5a0bae,_0x54daf5){super(_0x1431d3),this[_0x4422('0x0')]=_0x5a0bae[_0x4422('0x0')],this[_0x4422('0x4')]=null;const _0x2de4a4=['ck',_0x4422('0x7')],_0x28d250=['ck',_0x4422('0x8')];if(_0x5a0bae['isAnonymous']&&_0x28d250[_0x4422('0xb')]('ck-user__anonymous'),!_0x5a0bae['isAnonymous']&&_0x5a0bae[_0x4422('0x1')]&&_0x2de4a4['push'](_0x4422('0x9')),_0x5a0bae[_0x4422('0x5')]&&_0x28d250[_0x4422('0xb')](_0x4422('0x6')),_0x54daf5){const _0x5a076c=new _0x37b559();_0x5a076c['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5a076c['content']=_0x5a0c25,this[_0x4422('0x4')]={'tag':_0x4422('0x3'),'attributes':{'class':['ck',_0x4422('0x2')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x54daf5},'children':[_0x5a076c]};}const _0x13f305=[{'tag':_0x4422('0x3'),'attributes':{'class':_0x28d250,'style':{'background-image':_0x5a0bae['avatar']?_0x4422('0xc')+_0x5a0bae[_0x4422('0x5')]+'\x27)':''}}},{'tag':_0x4422('0x3'),'attributes':{'class':_0x5a0bae[_0x4422('0x5')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x4422('0xa')},'children':[{'text':_0x5a0bae['initials']}]}];this['notificationView']&&_0x13f305[_0x4422('0xb')](this['notificationView']),this[_0x4422('0xd')]({'tag':'div','attributes':{'class':_0x2de4a4,'data-user-id':_0x5a0bae['id']},'children':_0x13f305});}}
package/src/users.d.ts CHANGED
@@ -121,6 +121,10 @@ export declare class User {
121
121
  * used by "guest" users of your application, or when the original user's account was removed.
122
122
  */
123
123
  get isAnonymous(): boolean;
124
+ /**
125
+ * Is `true` for the {@link module:collaboration-core/users~Users#me local user}.
126
+ */
127
+ get isMe(): boolean;
124
128
  /**
125
129
  * The initials of the user.
126
130
  *
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50d1=['trim','ck-user__bg-color--','_myId','_addAnonymousUser','destroy','getSelectionClass','length','users.colorsCount','licenseKeyTrialLimit:revisions','split','anonymous-user','users-me-missing-user','licenseKeyInvalid','decorate','invalid-license-key','get','info','isAnonymous','getOperationAuthor','_id','licenseKeyTrialLimit:operations','getUser','context','_isAnonymous','color','avatar','users-add-duplicated-id','_licenseKeyCheckInterval','_getInitial','addUser','getMarkerClass','add','users-me-already-defined','Anonymous','_locale','init','define','initials','users.anonymousUserId','licenseKeyValid','locale','string','pluginName','defineMe','users','licenseKeyTrialLimit:time','_getNextColor','getBackgroundColorClass','has','config','licenseKeyTrial','trial-license-key-reached-limit-revisions','_lastColor','name'];(function(_0xcddb31,_0x50d15e){const _0x2da193=function(_0x4945ae){while(--_0x4945ae){_0xcddb31['push'](_0xcddb31['shift']());}};_0x2da193(++_0x50d15e);}(_0x50d1,0x9a));const _0x2da1=function(_0xcddb31,_0x50d15e){_0xcddb31=_0xcddb31-0x0;let _0x2da193=_0x50d1[_0xcddb31];return _0x2da193;};import{ContextPlugin as _0xfba487}from'ckeditor5/src/core.js';import{Collection as _0x32aa87,CKEditorError as _0x54349c}from'ckeditor5/src/utils.js';import _0x23bc1e from'./permissions.js';import{getTranslation as _0xe6ead6}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0xfba487{static get[_0x2da1('0x32')](){return'Users';}static get['requires'](){return[_0x23bc1e];}constructor(_0x99d119){super(_0x99d119),this[_0x2da1('0x1e')]['config'][_0x2da1('0x2c')](_0x2da1('0x2e'),_0x2da1('0x12')),this[_0x2da1('0x1e')][_0x2da1('0x3')]['define'](_0x2da1('0xf'),0x8),this['users']=new _0x32aa87(),this[_0x2da1('0x2a')]=_0x99d119[_0x2da1('0x30')],this['_licenseKeyCheckInterval']=null,this[_0x2da1('0x6')]=0x0,this[_0x2da1('0xa')]=null,this[_0x2da1('0x15')](_0x2da1('0x1a'));}[_0x2da1('0x2b')](){const _0x32a37a=this['context'];this['licenseKey']=_0x32a37a[_0x2da1('0x3')][_0x2da1('0x17')]('licenseKey');const _0xc0a37d=[_0x2da1('0x4'),_0x2da1('0x14'),_0x2da1('0x2f'),_0x2da1('0x1c'),_0x2da1('0x35'),_0x2da1('0x10')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55b2a7;for(const _0xfe926c in _0x32a37a){const _0x31da45=_0x32a37a[_0xfe926c];if(_0xc0a37d['includes'](_0x31da45)){delete _0x32a37a[_0xfe926c],_0x55b2a7=_0x31da45;break;}}if(_0x2da1('0x14')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x16'),null);if(_0x2da1('0x4')===_0x55b2a7&&console[_0x2da1('0x18')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit:operations'===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-changes',null);if(_0x2da1('0x35')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-time',null);if(_0x2da1('0x10')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x5'),null);_0x2da1('0x2f')===_0x55b2a7&&clearInterval(this[_0x2da1('0x23')]);},0x3e8),this[_0x2da1('0xb')]();}get['me'](){return null==this[_0x2da1('0xa')]?null:this['getUser'](this[_0x2da1('0xa')]);}[_0x2da1('0x25')]({id:_0x1836f9,name:_0x5be0fc,..._0x3a1607}){if(!_0x1836f9||_0x2da1('0x31')!=typeof _0x1836f9)throw new _0x54349c('users-add-invalid-id');if(this[_0x2da1('0x34')][_0x2da1('0x2')](_0x1836f9))throw new _0x54349c(_0x2da1('0x22'),null,{'id':_0x1836f9});const _0x2d28de={..._0x3a1607,'id':_0x1836f9,'name':a(this[_0x2da1('0x2a')],_0x5be0fc),'color':this[_0x2da1('0x0')]()};_0x2d28de[_0x2da1('0x7')]=a(this[_0x2da1('0x2a')],_0x2d28de[_0x2da1('0x7')]);const _0x400f45=new User(_0x2d28de);return this[_0x2da1('0x34')][_0x2da1('0x27')](_0x400f45),_0x400f45;}[_0x2da1('0x1d')](_0x267e47){return this[_0x2da1('0x34')][_0x2da1('0x17')](_0x267e47);}['useAnonymousUser'](){const _0x24ed68=this[_0x2da1('0x1e')]['config'][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0xa')]||this[_0x2da1('0x33')](_0x24ed68);}[_0x2da1('0x33')](_0xa65b7a){if(this[_0x2da1('0xa')])throw new _0x54349c(_0x2da1('0x28'),null);if(!this['getUser'](_0xa65b7a))throw new _0x54349c(_0x2da1('0x13'),null);this['_myId']=_0xa65b7a;}[_0x2da1('0x1a')](){return this['me'];}['destroy'](){super[_0x2da1('0xc')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x2da1('0x0')](){const _0x513662=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0xf'));return this['_lastColor']>=_0x513662&&(this[_0x2da1('0x6')]=0x0),new u(this['_lastColor']++);}[_0x2da1('0xb')](){const _0x56d76d=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0x25')]({'id':_0x56d76d,'name':_0xe6ead6(this[_0x2da1('0x2a')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x1c7aaa){this['id']=_0x1c7aaa['id'],this[_0x2da1('0x20')]=_0x1c7aaa[_0x2da1('0x20')],this['name']=_0x1c7aaa['name'],this[_0x2da1('0x21')]=_0x1c7aaa[_0x2da1('0x21')],this[_0x2da1('0x1f')]=!0x1;}get[_0x2da1('0x19')](){return this['_isAnonymous'];}get[_0x2da1('0x2d')](){const _0xd031af=this[_0x2da1('0x7')][_0x2da1('0x11')]('\x20');return 0x1===_0xd031af[_0x2da1('0xe')]?this['_getInitial'](_0xd031af[0x0]):this[_0x2da1('0x24')](_0xd031af[0x0])+this[_0x2da1('0x24')](_0xd031af[_0xd031af[_0x2da1('0xe')]-0x1]);}[_0x2da1('0x24')](_0x2ec958){return _0x2ec958['charAt'](0x0)['toUpperCase']();}}function a(_0x37993f,_0x5de7d4=''){return''==(_0x5de7d4=_0x5de7d4[_0x2da1('0x8')]())?_0xe6ead6(_0x37993f,_0x2da1('0x29')):_0x5de7d4;}class u{constructor(_0xf89760){this[_0x2da1('0x1b')]=_0xf89760;}[_0x2da1('0x1')](){return _0x2da1('0x9')+this[_0x2da1('0x1b')];}[_0x2da1('0xd')](){return'ck-user__selection--'+this[_0x2da1('0x1b')];}[_0x2da1('0x26')](){return'ck-user__marker--'+this['_id'];}}
23
+ const _0x19a7=['config','invalid-license-key','useAnonymousUser','context','_getInitial','color','defineMe','_licenseKeyCheckInterval','trial-license-key-reached-limit-time','info','decorate','length','licenseKeyTrialLimit:operations','_id','getSelectionClass','Anonymous','requires','name','initials','_lastColor','trial-license-key-reached-limit-changes','charAt','ck-user__marker--','add','destroy','addUser','users','licenseKeyTrial','isAnonymous','toUpperCase','licenseKeyInvalid','getOperationAuthor','includes','anonymous-user','licenseKeyTrialLimit:time','_myId','licenseKey','ck-user__selection--','locale','licenseKeyValid','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','_isMe','has','getMarkerClass','users.colorsCount','users.anonymousUserId','_getNextColor','users-me-missing-user','users-add-invalid-id','getBackgroundColorClass','_locale','get','users-add-duplicated-id','_isAnonymous','users-me-already-defined','getUser','init','_addAnonymousUser','pluginName','trial-license-key-reached-limit-revisions'];(function(_0x47610a,_0x19a7ac){const _0x1495ef=function(_0x593831){while(--_0x593831){_0x47610a['push'](_0x47610a['shift']());}};_0x1495ef(++_0x19a7ac);}(_0x19a7,0x190));const _0x1495=function(_0x47610a,_0x19a7ac){_0x47610a=_0x47610a-0x0;let _0x1495ef=_0x19a7[_0x47610a];return _0x1495ef;};import{ContextPlugin as _0x1eb7d3}from'ckeditor5/src/core.js';import{Collection as _0x65548a,CKEditorError as _0x3f2c22}from'ckeditor5/src/utils.js';import _0x4cba61 from'./permissions.js';import{getTranslation as _0x397170}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x1eb7d3{static get[_0x1495('0x12')](){return'Users';}static get[_0x1495('0x24')](){return[_0x4cba61];}constructor(_0x4cb194){super(_0x4cb194),this[_0x1495('0x17')]['config']['define'](_0x1495('0x5'),_0x1495('0x35')),this[_0x1495('0x17')][_0x1495('0x14')]['define'](_0x1495('0x4'),0x8),this[_0x1495('0x2e')]=new _0x65548a(),this[_0x1495('0xa')]=_0x4cb194[_0x1495('0x3a')],this[_0x1495('0x1b')]=null,this[_0x1495('0x27')]=0x0,this[_0x1495('0x37')]=null,this[_0x1495('0x1e')]('getOperationAuthor');}[_0x1495('0x10')](){const _0x4aa670=this[_0x1495('0x17')];this['licenseKey']=_0x4aa670[_0x1495('0x14')]['get'](_0x1495('0x38'));const _0x8628df=[_0x1495('0x2f'),_0x1495('0x32'),_0x1495('0x3b'),_0x1495('0x20'),_0x1495('0x36'),'licenseKeyTrialLimit:revisions'];this[_0x1495('0x1b')]=setInterval(()=>{let _0x298c50;for(const _0x4d74f7 in _0x4aa670){const _0x50cc85=_0x4aa670[_0x4d74f7];if(_0x8628df[_0x1495('0x34')](_0x50cc85)){delete _0x4aa670[_0x4d74f7],_0x298c50=_0x50cc85;break;}}if(_0x1495('0x32')===_0x298c50)throw clearInterval(this[_0x1495('0x1b')]),new _0x3f2c22(_0x1495('0x15'),null);if(_0x1495('0x2f')===_0x298c50&&console[_0x1495('0x1d')](_0x1495('0x0')),_0x1495('0x20')===_0x298c50)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3f2c22(_0x1495('0x28'),null);if(_0x1495('0x36')===_0x298c50)throw clearInterval(this[_0x1495('0x1b')]),new _0x3f2c22(_0x1495('0x1c'),null);if('licenseKeyTrialLimit:revisions'===_0x298c50)throw clearInterval(this[_0x1495('0x1b')]),new _0x3f2c22(_0x1495('0x13'),null);_0x1495('0x3b')===_0x298c50&&clearInterval(this[_0x1495('0x1b')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x1495('0x37')]?null:this[_0x1495('0xf')](this['_myId']);}[_0x1495('0x2d')]({id:_0x2eebb6,name:_0x171d5a,..._0x1b0057}){if(!_0x2eebb6||'string'!=typeof _0x2eebb6)throw new _0x3f2c22(_0x1495('0x8'));if(this[_0x1495('0x2e')][_0x1495('0x2')](_0x2eebb6))throw new _0x3f2c22(_0x1495('0xc'),null,{'id':_0x2eebb6});const _0x54019f={..._0x1b0057,'id':_0x2eebb6,'name':a(this[_0x1495('0xa')],_0x171d5a),'color':this['_getNextColor']()};_0x54019f[_0x1495('0x25')]=a(this[_0x1495('0xa')],_0x54019f[_0x1495('0x25')]);const _0x30fd2c=new User(_0x54019f);return this[_0x1495('0x2e')][_0x1495('0x2b')](_0x30fd2c),_0x30fd2c;}[_0x1495('0xf')](_0x5dd2eb){return this[_0x1495('0x2e')][_0x1495('0xb')](_0x5dd2eb);}[_0x1495('0x16')](){const _0x946e6c=this[_0x1495('0x17')]['config'][_0x1495('0xb')](_0x1495('0x5'));this[_0x1495('0x37')]||this[_0x1495('0x1a')](_0x946e6c);}[_0x1495('0x1a')](_0x3d4ddb){if(this[_0x1495('0x37')])throw new _0x3f2c22(_0x1495('0xe'),null);const _0x2ba2fa=this[_0x1495('0xf')](_0x3d4ddb);if(!_0x2ba2fa)throw new _0x3f2c22(_0x1495('0x7'),null);this[_0x1495('0x37')]=_0x3d4ddb,_0x2ba2fa[_0x1495('0x1')]=!0x0;}[_0x1495('0x33')](){return this['me'];}[_0x1495('0x2c')](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x1495('0x6')](){const _0x489343=this[_0x1495('0x17')][_0x1495('0x14')][_0x1495('0xb')](_0x1495('0x4'));return this['_lastColor']>=_0x489343&&(this[_0x1495('0x27')]=0x0),new u(this['_lastColor']++);}[_0x1495('0x11')](){const _0x584d75=this['context'][_0x1495('0x14')][_0x1495('0xb')](_0x1495('0x5'));this['addUser']({'id':_0x584d75,'name':_0x397170(this[_0x1495('0xa')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x49ea3c){this['id']=_0x49ea3c['id'],this['color']=_0x49ea3c[_0x1495('0x19')],this[_0x1495('0x25')]=_0x49ea3c[_0x1495('0x25')],this['avatar']=_0x49ea3c['avatar'],this['_isAnonymous']=!0x1,this[_0x1495('0x1')]=!0x1;}get[_0x1495('0x30')](){return this[_0x1495('0xd')];}get['isMe'](){return this[_0x1495('0x1')];}get[_0x1495('0x26')](){const _0x489dfb=this[_0x1495('0x25')]['split']('\x20');return 0x1===_0x489dfb[_0x1495('0x1f')]?this['_getInitial'](_0x489dfb[0x0]):this[_0x1495('0x18')](_0x489dfb[0x0])+this[_0x1495('0x18')](_0x489dfb[_0x489dfb[_0x1495('0x1f')]-0x1]);}[_0x1495('0x18')](_0x2d2732){return _0x2d2732[_0x1495('0x29')](0x0)[_0x1495('0x31')]();}}function a(_0x5ca705,_0x3136f5=''){return''==(_0x3136f5=_0x3136f5['trim']())?_0x397170(_0x5ca705,_0x1495('0x23')):_0x3136f5;}class u{constructor(_0x5c5a02){this[_0x1495('0x21')]=_0x5c5a02;}[_0x1495('0x9')](){return'ck-user__bg-color--'+this['_id'];}[_0x1495('0x22')](){return _0x1495('0x39')+this[_0x1495('0x21')];}[_0x1495('0x3')](){return _0x1495('0x2a')+this[_0x1495('0x21')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2d7e4d,_0xd4f217){const t=_0x2d7e4d['t'];switch(_0xd4f217){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x43504f,_0x2e8dc5){const t=_0x43504f['t'];switch(_0x2e8dc5){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x26e4=['locale','cancel','submit','confirmView','deregisterChild','cancelConfirm','showConfirm','fire','_removeConfirm','once','message','destroy','isConfirm','registerChild','render','element'];(function(_0xea0b0e,_0x26e41d){var _0x1fe82e=function(_0x10399){while(--_0x10399){_0xea0b0e['push'](_0xea0b0e['shift']());}};_0x1fe82e(++_0x26e41d);}(_0x26e4,0xa1));var _0x1fe8=function(_0xea0b0e,_0x26e41d){_0xea0b0e=_0xea0b0e-0x0;var _0x1fe82e=_0x26e4[_0xea0b0e];return _0x1fe82e;};import _0xbb96d0 from'./confirmview.js';export default function m(_0x40f35e){return class extends _0x40f35e{[_0x1fe8('0x5')](_0x3f2d3a,_0x1281ff){return this[_0x1fe8('0x2')]=new _0xbb96d0(this[_0x1fe8('0xf')]),this[_0x1fe8('0x2')][_0x1fe8('0xd')](),this[_0x1fe8('0x2')][_0x1fe8('0x9')]=_0x3f2d3a,this[_0x1fe8('0x2')][_0x1fe8('0x8')](_0x1fe8('0x0'),()=>{this[_0x1fe8('0x7')]();}),this[_0x1fe8('0x2')]['once'](_0x1fe8('0x1'),()=>{this[_0x1fe8('0x7')]();}),_0x1281ff['appendChild'](this[_0x1fe8('0x2')][_0x1fe8('0xe')]),this[_0x1fe8('0xc')](this['confirmView']),this[_0x1fe8('0xe')]['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x1bfdd7=>this[_0x1fe8('0x2')]['on'](_0x1fe8('0x1'),_0x1bfdd7));}[_0x1fe8('0x4')](){this[_0x1fe8('0xb')]&&this[_0x1fe8('0x2')][_0x1fe8('0x6')](_0x1fe8('0x0'));}[_0x1fe8('0x7')](){this[_0x1fe8('0xe')]&&this[_0x1fe8('0x2')]&&this[_0x1fe8('0x2')][_0x1fe8('0xe')]&&(this[_0x1fe8('0xe')]['focus'](),this['confirmView'][_0x1fe8('0xe')]['remove'](),this[_0x1fe8('0x3')](this[_0x1fe8('0x2')]),this['isConfirm']=!0x1,this[_0x1fe8('0x2')][_0x1fe8('0xa')](),this[_0x1fe8('0x2')]=void 0x0);}};}
23
+ var _0x1dee=['remove','_removeConfirm','showConfirm','deregisterChild','submit','element','isConfirm','set','cancel','registerChild','render','focus','confirmView'];(function(_0x577462,_0x1dee97){var _0x535867=function(_0x25f64e){while(--_0x25f64e){_0x577462['push'](_0x577462['shift']());}};_0x535867(++_0x1dee97);}(_0x1dee,0x1d3));var _0x5358=function(_0x577462,_0x1dee97){_0x577462=_0x577462-0x0;var _0x535867=_0x1dee[_0x577462];return _0x535867;};import _0x16179d from'./confirmview.js';export default function m(_0x179ef2){return class extends _0x179ef2{[_0x5358('0x3')](_0x155b17,_0x337cf1){return this[_0x5358('0x0')]=new _0x16179d(this['locale']),this[_0x5358('0x0')][_0x5358('0xb')](),this[_0x5358('0x0')]['message']=_0x155b17,this['confirmView']['once'](_0x5358('0x9'),()=>{this[_0x5358('0x2')]();}),this[_0x5358('0x0')]['once'](_0x5358('0x5'),()=>{this[_0x5358('0x2')]();}),_0x337cf1['appendChild'](this[_0x5358('0x0')][_0x5358('0x6')]),this[_0x5358('0xa')](this[_0x5358('0x0')]),this[_0x5358('0x6')]['focus'](),this[_0x5358('0x8')](_0x5358('0x7'),!0x0),new Promise(_0x1d0d2d=>this[_0x5358('0x0')]['on']('submit',_0x1d0d2d));}['cancelConfirm'](){this[_0x5358('0x7')]&&this[_0x5358('0x0')]['fire'](_0x5358('0x9'));}[_0x5358('0x2')](){this[_0x5358('0x6')]&&this[_0x5358('0x0')]&&this['confirmView'][_0x5358('0x6')]&&(this[_0x5358('0x6')][_0x5358('0xc')](),this[_0x5358('0x0')][_0x5358('0x6')][_0x5358('0x1')](),this[_0x5358('0x4')](this['confirmView']),this[_0x5358('0x7')]=!0x1,this[_0x5358('0x0')]['destroy'](),this[_0x5358('0x0')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b7=['submit','div','Are\x20you\x20sure?','fire','submitView','set','cancelView','message','check','Yes','label','cancel','ck-thread__remove-confirm-','extendTemplate','ck-thread__remove-confirm-actions','bindTemplate','setTemplate','_createButtonView','ck-thread__remove-confirm-inner'];(function(_0x4a0a69,_0x11b722){const _0x356824=function(_0x283c59){while(--_0x283c59){_0x4a0a69['push'](_0x4a0a69['shift']());}};_0x356824(++_0x11b722);}(_0x11b7,0x19b));const _0x3568=function(_0x4a0a69,_0x11b722){_0x4a0a69=_0x4a0a69-0x0;let _0x356824=_0x11b7[_0x4a0a69];return _0x356824;};import{View as _0x20996a,ButtonView as _0x4f4a71}from'ckeditor5/src/ui.js';import{icons as _0x1dd890}from'ckeditor5/src/core.js';import{getTranslation as _0x1a863e}from'./common-translations.js';export default class h extends _0x20996a{constructor(_0x4f03d3){super(_0x4f03d3);const _0x1d5bdd=this[_0x3568('0x3')];this[_0x3568('0xb')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,_0x3568('0x10')),_0x1dd890[_0x3568('0xf')],_0x3568('0x7')),this[_0x3568('0xd')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,'No'),_0x1dd890[_0x3568('0x12')],_0x3568('0x12')),this[_0x3568('0xc')](_0x3568('0xe'),_0x1a863e(_0x4f03d3,_0x3568('0x9'))),this[_0x3568('0x4')]({'tag':_0x3568('0x8'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x3568('0x8'),'attributes':{'class':_0x3568('0x6')},'children':[{'tag':'p','children':[{'text':_0x1d5bdd['to'](_0x3568('0xe'))}]},{'tag':'div','attributes':{'class':_0x3568('0x2')},'children':[this[_0x3568('0xb')],this[_0x3568('0xd')]]}]}]});}['_createButtonView'](_0x27ea0e,_0x552a30,_0x394992,_0x11d082){const _0x30a41a=new _0x4f4a71(_0x27ea0e);return _0x30a41a[_0x3568('0x11')]=_0x552a30,_0x30a41a['icon']=_0x394992,_0x30a41a[_0x3568('0x1')]({'attributes':{'class':_0x3568('0x0')+_0x11d082}}),_0x30a41a['on']('execute',()=>this[_0x3568('0xa')](_0x11d082)),_0x30a41a;}}
23
+ const _0x398a=['cancelView','fire','extendTemplate','ck-thread__remove-confirm-actions','submit','ck-thread__remove-confirm-','ck-thread__remove-confirm','submitView','check','Are\x20you\x20sure?','div','ck-thread__remove-confirm-inner','setTemplate','icon','message','cancel','bindTemplate','execute','_createButtonView'];(function(_0x458573,_0x398abb){const _0xdf7307=function(_0x30240f){while(--_0x30240f){_0x458573['push'](_0x458573['shift']());}};_0xdf7307(++_0x398abb);}(_0x398a,0x188));const _0xdf73=function(_0x458573,_0x398abb){_0x458573=_0x458573-0x0;let _0xdf7307=_0x398a[_0x458573];return _0xdf7307;};import{View as _0x42bccd,ButtonView as _0x3e90c1}from'ckeditor5/src/ui.js';import{icons as _0x4fce87}from'ckeditor5/src/core.js';import{getTranslation as _0x5388a9}from'./common-translations.js';export default class h extends _0x42bccd{constructor(_0x53fa57){super(_0x53fa57);const _0x537a39=this[_0xdf73('0x4')];this[_0xdf73('0xe')]=this[_0xdf73('0x6')](_0x53fa57,_0x5388a9(_0x53fa57,'Yes'),_0x4fce87[_0xdf73('0xf')],_0xdf73('0xb')),this['cancelView']=this[_0xdf73('0x6')](_0x53fa57,_0x5388a9(_0x53fa57,'No'),_0x4fce87[_0xdf73('0x3')],_0xdf73('0x3')),this['set'](_0xdf73('0x2'),_0x5388a9(_0x53fa57,_0xdf73('0x10'))),this[_0xdf73('0x0')]({'tag':_0xdf73('0x11'),'attributes':{'class':[_0xdf73('0xd')]},'children':[{'tag':_0xdf73('0x11'),'attributes':{'class':_0xdf73('0x12')},'children':[{'tag':'p','children':[{'text':_0x537a39['to'](_0xdf73('0x2'))}]},{'tag':_0xdf73('0x11'),'attributes':{'class':_0xdf73('0xa')},'children':[this[_0xdf73('0xe')],this[_0xdf73('0x7')]]}]}]});}['_createButtonView'](_0xc22303,_0x5f0600,_0x5604ec,_0x52150c){const _0x2dc678=new _0x3e90c1(_0xc22303);return _0x2dc678['label']=_0x5f0600,_0x2dc678[_0xdf73('0x1')]=_0x5604ec,_0x2dc678[_0xdf73('0x9')]({'attributes':{'class':_0xdf73('0xc')+_0x52150c}}),_0x2dc678['on'](_0xdf73('0x5'),()=>this[_0xdf73('0x8')](_0x52150c)),_0x2dc678;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fb9=['dateTimeFormat','MM-dd-yyyy\x20hh:mma','function','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','string'];(function(_0xd2a053,_0x1fb9b0){const _0x1c4578=function(_0x145ba2){while(--_0x145ba2){_0xd2a053['push'](_0xd2a053['shift']());}};_0x1c4578(++_0x1fb9b0);}(_0x1fb9,0x9b));const _0x1c45=function(_0xd2a053,_0x1fb9b0){_0xd2a053=_0xd2a053-0x0;let _0x1c4578=_0x1fb9[_0xd2a053];return _0x1c4578;};import _0x5421f5 from'date-fns/format/index.js';import _0x11ff26 from'date-fns/parseISO/index.js';import _0x5236ae from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x2d2488}from'ckeditor5/src/utils.js';export default function j(_0x2e5a2c={}){if(void 0x0!==_0x2e5a2c[_0x1c45('0x1')]&&_0x1c45('0x3')!=typeof _0x2e5a2c[_0x1c45('0x1')])throw new _0x2d2488('invalid-date-time-format');return _0x404810=>{const _0x1dd918=_0x1c45('0x0')==typeof _0x404810?_0x11ff26(_0x404810):_0x404810,_0x47114a=new Date(),_0x5f5cf2=_0x5236ae(_0x47114a,_0x1dd918);return _0x2e5a2c['dateTimeFormat']?_0x2e5a2c['dateTimeFormat'](_0x1dd918):_0x5421f5(_0x1dd918,0x0===_0x5f5cf2?_0x1c45('0x4'):0x1===_0x5f5cf2?'\x27Yesterday\x27\x20hh:mma':_0x5f5cf2<0x7?_0x1c45('0x5'):_0x1c45('0x2'));};}
23
+ const _0x275b=['invalid-date-time-format','string','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','function','MM-dd-yyyy\x20hh:mma'];(function(_0x3c85b4,_0x275bdb){const _0x265049=function(_0x22a5eb){while(--_0x22a5eb){_0x3c85b4['push'](_0x3c85b4['shift']());}};_0x265049(++_0x275bdb);}(_0x275b,0x162));const _0x2650=function(_0x3c85b4,_0x275bdb){_0x3c85b4=_0x3c85b4-0x0;let _0x265049=_0x275b[_0x3c85b4];return _0x265049;};import _0x22bfaf from'date-fns/format/index.js';import _0x455249 from'date-fns/parseISO/index.js';import _0x146241 from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x12f927}from'ckeditor5/src/utils.js';export default function j(_0x45a8e3={}){if(void 0x0!==_0x45a8e3[_0x2650('0x0')]&&_0x2650('0x4')!=typeof _0x45a8e3[_0x2650('0x0')])throw new _0x12f927(_0x2650('0x6'));return _0x5c8d40=>{const _0x25831d=_0x2650('0x7')==typeof _0x5c8d40?_0x455249(_0x5c8d40):_0x5c8d40,_0x207e30=new Date(),_0x394cf3=_0x146241(_0x207e30,_0x25831d);return _0x45a8e3[_0x2650('0x0')]?_0x45a8e3[_0x2650('0x0')](_0x25831d):_0x22bfaf(_0x25831d,0x0===_0x394cf3?_0x2650('0x3'):0x1===_0x394cf3?_0x2650('0x2'):_0x394cf3<0x7?_0x2650('0x1'):_0x2650('0x5'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ca3=['domConverter','getClientRects','length','mapViewToDom','map','name','view','sort','domElement','markerNameToElements','mapper'];(function(_0x503869,_0x3ca396){const _0x18ed9c=function(_0x34aa90){while(--_0x34aa90){_0x503869['push'](_0x503869['shift']());}};_0x18ed9c(++_0x3ca396);}(_0x3ca3,0x1b5));const _0x18ed=function(_0x503869,_0x3ca396){_0x503869=_0x503869-0x0;let _0x18ed9c=_0x3ca3[_0x503869];return _0x18ed9c;};import{first as _0x167e4f}from'ckeditor5/src/utils.js';export default function k(_0x1ff2d5,_0x177150){const _0x3288ba=_0x1ff2d5[_0x18ed('0x2')][_0x18ed('0x1')](_0x177150[_0x18ed('0x8')]);if(!_0x3288ba)return null;const _0x4d8c4e=_0x167e4f(_0x3288ba['values']());return _0x1ff2d5['view']['domConverter'][_0x18ed('0x6')](_0x4d8c4e)||null;}export function getAllMarkersDomElementsSorted(_0x5ab5b7,_0x9df3b8){if(0x0===_0x9df3b8[_0x18ed('0x5')])return null;const _0x4bcd45=[],_0x58048b=_0x5ab5b7[_0x18ed('0x9')][_0x18ed('0x3')];for(const _0x265a31 of _0x9df3b8){const _0x49e0b9=_0x5ab5b7[_0x18ed('0x2')][_0x18ed('0x1')](_0x265a31[_0x18ed('0x8')]);if(!_0x49e0b9)continue;const _0xfb28c0=Array['from'](_0x49e0b9)[_0x18ed('0x7')](_0x4c9d57=>_0x58048b['mapViewToDom'](_0x4c9d57))['filter'](_0x23fea2=>!!_0x23fea2);_0x4bcd45['push'](..._0xfb28c0);}if(0x0===_0x4bcd45['length'])return null;const _0x85bc8f=[];for(const _0x494294 of _0x4bcd45){const _0x14aca5=_0x494294[_0x18ed('0x4')]()['item'](0x0);_0x14aca5&&_0x85bc8f['push']({'x':_0x14aca5['x'],'y':_0x14aca5['y'],'domElement':_0x494294});}return 0x0===_0x85bc8f[_0x18ed('0x5')]?null:(_0x85bc8f[_0x18ed('0xa')]((_0x1667a6,_0x70fa75)=>_0x1667a6['y']-_0x70fa75['y']||_0x1667a6['x']-_0x70fa75['x']),_0x85bc8f['map'](_0x2a3fe7=>_0x2a3fe7[_0x18ed('0x0')]));}
23
+ const _0x47f6=['sort','filter','length','mapViewToDom','mapper','push','getClientRects','item','map','values','name','domConverter','from','markerNameToElements','view'];(function(_0x57794c,_0x47f6eb){const _0x203dd6=function(_0x345082){while(--_0x345082){_0x57794c['push'](_0x57794c['shift']());}};_0x203dd6(++_0x47f6eb);}(_0x47f6,0x1d3));const _0x203d=function(_0x57794c,_0x47f6eb){_0x57794c=_0x57794c-0x0;let _0x203dd6=_0x47f6[_0x57794c];return _0x203dd6;};import{first as _0x331007}from'ckeditor5/src/utils.js';export default function k(_0x591813,_0x4f32aa){const _0x22bb01=_0x591813['mapper'][_0x203d('0xb')](_0x4f32aa['name']);if(!_0x22bb01)return null;const _0x3878fd=_0x331007(_0x22bb01[_0x203d('0x7')]());return _0x591813[_0x203d('0xc')][_0x203d('0x9')]['mapViewToDom'](_0x3878fd)||null;}export function getAllMarkersDomElementsSorted(_0x57ea0c,_0x277fda){if(0x0===_0x277fda[_0x203d('0x0')])return null;const _0xd4becd=[],_0x37d32f=_0x57ea0c['view']['domConverter'];for(const _0x155ac4 of _0x277fda){const _0x777dfc=_0x57ea0c[_0x203d('0x2')][_0x203d('0xb')](_0x155ac4[_0x203d('0x8')]);if(!_0x777dfc)continue;const _0x15a871=Array[_0x203d('0xa')](_0x777dfc)[_0x203d('0x6')](_0x57ea9b=>_0x37d32f[_0x203d('0x1')](_0x57ea9b))[_0x203d('0xe')](_0x4b8f10=>!!_0x4b8f10);_0xd4becd[_0x203d('0x3')](..._0x15a871);}if(0x0===_0xd4becd[_0x203d('0x0')])return null;const _0x12a4fb=[];for(const _0x144e7f of _0xd4becd){const _0x492473=_0x144e7f[_0x203d('0x4')]()[_0x203d('0x5')](0x0);_0x492473&&_0x12a4fb[_0x203d('0x3')]({'x':_0x492473['x'],'y':_0x492473['y'],'domElement':_0x144e7f});}return 0x0===_0x12a4fb[_0x203d('0x0')]?null:(_0x12a4fb[_0x203d('0xd')]((_0x56cf1c,_0x107722)=>_0x56cf1c['y']-_0x107722['y']||_0x56cf1c['x']-_0x107722['x']),_0x12a4fb['map'](_0x2af4b0=>_0x2af4b0['domElement']));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11b7=['charCodeAt','object','sign','toString','string'];(function(_0x48b9e5,_0x11b7b1){const _0x1ebf25=function(_0xa259c4){while(--_0xa259c4){_0x48b9e5['push'](_0x48b9e5['shift']());}};_0x1ebf25(++_0x11b7b1);}(_0x11b7,0x195));const _0x1ebf=function(_0x48b9e5,_0x11b7b1){_0x48b9e5=_0x48b9e5-0x0;let _0x1ebf25=_0x11b7[_0x48b9e5];return _0x1ebf25;};export default function b(_0x1353ec){let _0x2e77c1=0x0,_0x1a2c98=0x0;for(const _0x4a996a of A(_0x1353ec))_0x2e77c1=(_0x2e77c1<<0x5)-_0x2e77c1+_0x4a996a,_0x2e77c1&=_0x2e77c1,[_0x2e77c1,_0x1a2c98]=[_0x1a2c98,_0x2e77c1];return q(_0x2e77c1)+q(_0x1a2c98);}function*g(_0x301ff1){null==_0x301ff1||null==_0x301ff1?yield 0x12b9b0a1:0x0===_0x301ff1||!0x1===_0x301ff1?yield 0x0:0x1===_0x301ff1||0x1==_0x301ff1?yield 0x1:Array['isArray'](_0x301ff1)?yield*function*(_0x367ed1){for(const _0x237ebb of _0x367ed1)yield*g(_0x237ebb);}(_0x301ff1):_0x1ebf('0x1')==typeof _0x301ff1?yield*A(_0x301ff1):_0x1ebf('0x4')==typeof _0x301ff1?yield*M(_0x301ff1):'number'==typeof _0x301ff1&&(yield _0x301ff1);}function*A(_0x40c16e){if(yield O('{'),_0x40c16e){const _0x3eb291=Object['keys'](_0x40c16e)['sort']();for(const _0x353b9d of _0x3eb291){yield*M(_0x353b9d),yield O(':');const _0x1e3152=_0x40c16e[_0x353b9d];yield*g(_0x1e3152);}}yield O('}');}function*M(_0x8ed7f5){yield O('\x22');for(const _0x3b2f64 of _0x8ed7f5)yield O(_0x3b2f64);yield O('\x22');}function O(_0x4f6fe5){return _0x4f6fe5[_0x1ebf('0x0')](0x0);}function q(_0xd6381e){return(_0xd6381e*=Math[_0x1ebf('0x2')](_0xd6381e))[_0x1ebf('0x3')](0x24);}
23
+ const _0x56fc=['sign','toString','keys','isArray','object','string','charCodeAt'];(function(_0x4d9f81,_0x56fca6){const _0x3e7a6e=function(_0x3db4fc){while(--_0x3db4fc){_0x4d9f81['push'](_0x4d9f81['shift']());}};_0x3e7a6e(++_0x56fca6);}(_0x56fc,0x1aa));const _0x3e7a=function(_0x4d9f81,_0x56fca6){_0x4d9f81=_0x4d9f81-0x0;let _0x3e7a6e=_0x56fc[_0x4d9f81];return _0x3e7a6e;};export default function b(_0x274d78){let _0x711ae4=0x0,_0x3fe40c=0x0;for(const _0x164dee of A(_0x274d78))_0x711ae4=(_0x711ae4<<0x5)-_0x711ae4+_0x164dee,_0x711ae4&=_0x711ae4,[_0x711ae4,_0x3fe40c]=[_0x3fe40c,_0x711ae4];return q(_0x711ae4)+q(_0x3fe40c);}function*g(_0x327dc9){null==_0x327dc9||null==_0x327dc9?yield 0x12b9b0a1:0x0===_0x327dc9||!0x1===_0x327dc9?yield 0x0:0x1===_0x327dc9||0x1==_0x327dc9?yield 0x1:Array[_0x3e7a('0x4')](_0x327dc9)?yield*function*(_0x4068e8){for(const _0x667be8 of _0x4068e8)yield*g(_0x667be8);}(_0x327dc9):_0x3e7a('0x5')==typeof _0x327dc9?yield*A(_0x327dc9):_0x3e7a('0x6')==typeof _0x327dc9?yield*M(_0x327dc9):'number'==typeof _0x327dc9&&(yield _0x327dc9);}function*A(_0x487adc){if(yield O('{'),_0x487adc){const _0x4bbde2=Object[_0x3e7a('0x3')](_0x487adc)['sort']();for(const _0x1e7fbf of _0x4bbde2){yield*M(_0x1e7fbf),yield O(':');const _0x554b9f=_0x487adc[_0x1e7fbf];yield*g(_0x554b9f);}}yield O('}');}function*M(_0x5525b0){yield O('\x22');for(const _0x55e884 of _0x5525b0)yield O(_0x55e884);yield O('\x22');}function O(_0xfa0115){return _0xfa0115[_0x3e7a('0x0')](0x0);}function q(_0x35344e){return(_0x35344e*=Math[_0x3e7a('0x1')](_0x35344e))[_0x3e7a('0x2')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3620=['Autosave','WordCount','map','config','get','string','toolbar','extraPlugins','RevisionTracker','context','initialData','pluginName','WebSocketGateway','set','removePlugins','rootsAttributes','has','requires','find','concat','every','filter','WProofreader','builtinPlugins','includes','plugins'];(function(_0x269e2a,_0x36200e){const _0x22b72a=function(_0x1da529){while(--_0x1da529){_0x269e2a['push'](_0x269e2a['shift']());}};_0x22b72a(++_0x36200e);}(_0x3620,0x106));const _0x22b7=function(_0x269e2a,_0x36200e){_0x269e2a=_0x269e2a-0x0;let _0x22b72a=_0x3620[_0x269e2a];return _0x22b72a;};const w=[_0x22b7('0x8'),_0x22b7('0x7'),_0x22b7('0x4'),_0x22b7('0xd')],W=[_0x22b7('0xa'),_0x22b7('0x6'),_0x22b7('0x18'),_0x22b7('0x19'),'DocumentOutline',_0x22b7('0x14')];function v(_0x23c3fb,_0x416e97,_0x244301,_0x492c72=[]){const _0x4e01a9='string'==typeof _0x23c3fb?_0x244301[_0x22b7('0x2')](_0x23c3fb)['constructor']:_0x23c3fb,_0x52672a=_0x4e01a9[_0x22b7('0x9')]||_0x4e01a9['name'];if(_0x416e97[_0x22b7('0xe')](_0x52672a))return _0x416e97['get'](_0x52672a);if(_0x416e97[_0x22b7('0xb')](_0x52672a,!0x0),_0x52672a&&W[_0x22b7('0x11')](_0x492c72)[_0x22b7('0x16')](_0x52672a))return _0x416e97[_0x22b7('0xb')](_0x52672a,!0x1),!0x1;if(!_0x4e01a9[_0x22b7('0xf')])return _0x416e97['set'](_0x52672a,!0x0),!0x0;const _0x103fb3=_0x4e01a9[_0x22b7('0xf')][_0x22b7('0x12')](_0x3bc43d=>v(_0x3bc43d,_0x416e97,_0x244301,_0x492c72));return _0x416e97[_0x22b7('0xb')](_0x52672a,_0x103fb3),_0x103fb3;}export default function D(_0x137982,_0x26b9a9){const _0x1cb82c={};for(const _0x18bdae of _0x137982['config']['names']())w[_0x22b7('0x16')](_0x18bdae)||(_0x1cb82c[_0x18bdae]=_0x137982['config'][_0x22b7('0x2')](_0x18bdae));const _0xab0447=_0x1cb82c[_0x22b7('0x17')]||[],_0x217738=_0x137982['constructor'][_0x22b7('0x15')]||[],_0x192f89=_0xab0447['length']?_0xab0447:_0x217738,_0x5a52c4=_0x1cb82c[_0x22b7('0x5')]||[];delete _0x1cb82c['extraPlugins'];const _0x2c2b84=_0x1cb82c[_0x22b7('0xc')]||[];delete _0x1cb82c[_0x22b7('0xc')];const _0x2112d3=_0x137982['_context'][_0x22b7('0x1')]['get'](_0x22b7('0x17'))||[],_0x35be5c=_0x192f89[_0x22b7('0x11')](_0x5a52c4)['concat'](_0x2112d3)[_0x22b7('0x0')](_0x26a232=>_0x22b7('0x3')==typeof _0x26a232?_0x217738[_0x22b7('0x10')](_0x4286a2=>_0x4286a2[_0x22b7('0x9')]==_0x26a232):_0x26a232)['filter'](_0x8164c9=>!_0x2c2b84[_0x22b7('0x16')](_0x8164c9)&&!_0x2c2b84[_0x22b7('0x16')](_0x8164c9['pluginName'])),_0x41f64c=Array['from'](new Set(_0x35be5c)),_0xd3bc9=new Map();return _0x1cb82c[_0x22b7('0x17')]=_0x41f64c[_0x22b7('0x13')](_0x3a77d5=>v(_0x3a77d5,_0xd3bc9,_0x137982[_0x22b7('0x17')],_0x26b9a9)),_0x1cb82c;}
23
+ const _0x5517=['WProofreader','requires','includes','extraPlugins','WebSocketGateway','initialData','find','config','constructor','concat','rootsAttributes','filter','set','RevisionTracker','Autosave','_context','get','name','names','plugins','pluginName','every','context','has','builtinPlugins','removePlugins','string'];(function(_0x57f6aa,_0x551749){const _0x49ae17=function(_0x521294){while(--_0x521294){_0x57f6aa['push'](_0x57f6aa['shift']());}};_0x49ae17(++_0x551749);}(_0x5517,0x1d5));const _0x49ae=function(_0x57f6aa,_0x551749){_0x57f6aa=_0x57f6aa-0x0;let _0x49ae17=_0x5517[_0x57f6aa];return _0x49ae17;};const w=[_0x49ae('0x16'),_0x49ae('0xc'),'toolbar',_0x49ae('0x0')],W=[_0x49ae('0x15'),_0x49ae('0x3'),_0x49ae('0x4'),'WordCount','DocumentOutline',_0x49ae('0x11')];function v(_0x30c582,_0x264d9c,_0x330025,_0x50722a=[]){const _0x2d239a=_0x49ae('0x10')==typeof _0x30c582?_0x330025[_0x49ae('0x6')](_0x30c582)['constructor']:_0x30c582,_0x31818e=_0x2d239a[_0x49ae('0xa')]||_0x2d239a[_0x49ae('0x7')];if(_0x264d9c[_0x49ae('0xd')](_0x31818e))return _0x264d9c[_0x49ae('0x6')](_0x31818e);if(_0x264d9c[_0x49ae('0x2')](_0x31818e,!0x0),_0x31818e&&W[_0x49ae('0x1a')](_0x50722a)[_0x49ae('0x13')](_0x31818e))return _0x264d9c[_0x49ae('0x2')](_0x31818e,!0x1),!0x1;if(!_0x2d239a[_0x49ae('0x12')])return _0x264d9c['set'](_0x31818e,!0x0),!0x0;const _0x20cdb3=_0x2d239a[_0x49ae('0x12')][_0x49ae('0xb')](_0x55aef3=>v(_0x55aef3,_0x264d9c,_0x330025,_0x50722a));return _0x264d9c[_0x49ae('0x2')](_0x31818e,_0x20cdb3),_0x20cdb3;}export default function D(_0x5b7d6f,_0x37369a){const _0x5b9c2f={};for(const _0x30d8f3 of _0x5b7d6f[_0x49ae('0x18')][_0x49ae('0x8')]())w['includes'](_0x30d8f3)||(_0x5b9c2f[_0x30d8f3]=_0x5b7d6f['config'][_0x49ae('0x6')](_0x30d8f3));const _0x7b5a5f=_0x5b9c2f[_0x49ae('0x9')]||[],_0x4c9af3=_0x5b7d6f[_0x49ae('0x19')][_0x49ae('0xe')]||[],_0x55f6af=_0x7b5a5f['length']?_0x7b5a5f:_0x4c9af3,_0x1748df=_0x5b9c2f[_0x49ae('0x14')]||[];delete _0x5b9c2f[_0x49ae('0x14')];const _0xfcd631=_0x5b9c2f[_0x49ae('0xf')]||[];delete _0x5b9c2f[_0x49ae('0xf')];const _0x284c5d=_0x5b7d6f[_0x49ae('0x5')][_0x49ae('0x18')][_0x49ae('0x6')]('plugins')||[],_0x4fd632=_0x55f6af['concat'](_0x1748df)[_0x49ae('0x1a')](_0x284c5d)['map'](_0x196b89=>'string'==typeof _0x196b89?_0x4c9af3[_0x49ae('0x17')](_0x15b03f=>_0x15b03f[_0x49ae('0xa')]==_0x196b89):_0x196b89)[_0x49ae('0x1')](_0x457970=>!_0xfcd631[_0x49ae('0x13')](_0x457970)&&!_0xfcd631[_0x49ae('0x13')](_0x457970[_0x49ae('0xa')])),_0x5c1259=Array['from'](new Set(_0x4fd632)),_0x231ede=new Map();return _0x5b9c2f['plugins']=_0x5c1259[_0x49ae('0x1')](_0x446f23=>v(_0x446f23,_0x231ede,_0x5b7d6f[_0x49ae('0x9')],_0x37369a)),_0x5b9c2f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3486=['length','isEqual','document','start','push','change:range','containsPosition','includes','end','markers','getRange'];(function(_0x306409,_0x3486c3){const _0x47ed40=function(_0x56078f){while(--_0x56078f){_0x306409['push'](_0x306409['shift']());}};_0x47ed40(++_0x3486c3);}(_0x3486,0x12f));const _0x47ed=function(_0x306409,_0x3486c3){_0x306409=_0x306409-0x0;let _0x47ed40=_0x3486[_0x306409];return _0x47ed40;};export default function z(_0x331a3f,_0x7a0ec0){const _0x53d811=[];_0x331a3f[_0x47ed('0x7')]['selection']['on'](_0x47ed('0xa'),()=>{const _0x3c1ae1=function(_0x433055,_0x273cfe){const _0x5e4e0a=[];for(const _0x2dd0fd of _0x433055[_0x47ed('0x3')]){const _0x19e5fa=_0x2dd0fd[_0x47ed('0x4')]();(_0x19e5fa[_0x47ed('0x0')](_0x273cfe)||_0x19e5fa[_0x47ed('0x8')]['isEqual'](_0x273cfe)||_0x19e5fa[_0x47ed('0x2')][_0x47ed('0x6')](_0x273cfe))&&_0x5e4e0a[_0x47ed('0x9')](_0x2dd0fd);}return _0x5e4e0a;}(_0x331a3f,_0x331a3f[_0x47ed('0x7')]['selection']['focus']),_0x295dec=[],_0x570e19=[],_0x438be8=[];for(const _0x45c8d0 of _0x53d811)_0x3c1ae1[_0x47ed('0x1')](_0x45c8d0)||_0x295dec[_0x47ed('0x9')](_0x45c8d0);for(const _0x52d066 of _0x3c1ae1)_0x53d811[_0x47ed('0x1')](_0x52d066)||_0x570e19[_0x47ed('0x9')](_0x52d066),_0x438be8[_0x47ed('0x9')](_0x52d066);(_0x295dec['length']||_0x570e19[_0x47ed('0x5')])&&_0x7a0ec0({'left':_0x295dec,'entered':_0x570e19}),_0x53d811[_0x47ed('0x5')]=0x0,_0x53d811[_0x47ed('0x9')](..._0x438be8);});}
23
+ const _0x5de9=['containsPosition','document','push','getRange','isEqual','length','start','includes','selection','focus','change:range'];(function(_0x1e0104,_0x5de9f6){const _0x10b588=function(_0x45217d){while(--_0x45217d){_0x1e0104['push'](_0x1e0104['shift']());}};_0x10b588(++_0x5de9f6);}(_0x5de9,0xe2));const _0x10b5=function(_0x1e0104,_0x5de9f6){_0x1e0104=_0x1e0104-0x0;let _0x10b588=_0x5de9[_0x1e0104];return _0x10b588;};export default function z(_0x5d44ac,_0x58fd33){const _0x419bd9=[];_0x5d44ac[_0x10b5('0x6')][_0x10b5('0x2')]['on'](_0x10b5('0x4'),()=>{const _0x5d1f07=function(_0x5d439e,_0x32461c){const _0x2b0a79=[];for(const _0x1a1722 of _0x5d439e['markers']){const _0x46f310=_0x1a1722[_0x10b5('0x8')]();(_0x46f310[_0x10b5('0x5')](_0x32461c)||_0x46f310[_0x10b5('0x0')]['isEqual'](_0x32461c)||_0x46f310['end'][_0x10b5('0x9')](_0x32461c))&&_0x2b0a79[_0x10b5('0x7')](_0x1a1722);}return _0x2b0a79;}(_0x5d44ac,_0x5d44ac[_0x10b5('0x6')][_0x10b5('0x2')][_0x10b5('0x3')]),_0x4267cd=[],_0x1787d9=[],_0x20e818=[];for(const _0x268135 of _0x419bd9)_0x5d1f07[_0x10b5('0x1')](_0x268135)||_0x4267cd[_0x10b5('0x7')](_0x268135);for(const _0x168f7d of _0x5d1f07)_0x419bd9[_0x10b5('0x1')](_0x168f7d)||_0x1787d9[_0x10b5('0x7')](_0x168f7d),_0x20e818[_0x10b5('0x7')](_0x168f7d);(_0x4267cd[_0x10b5('0xa')]||_0x1787d9[_0x10b5('0xa')])&&_0x58fd33({'left':_0x4267cd,'entered':_0x1787d9}),_0x419bd9[_0x10b5('0xa')]=0x0,_0x419bd9[_0x10b5('0x7')](..._0x20e818);});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f76=['slice','length','indexOf','join','startsWith','split','replace','substring','match'];(function(_0xe25484,_0x4f76df){const _0x3066b2=function(_0x20d1c6){while(--_0x20d1c6){_0xe25484['push'](_0xe25484['shift']());}};_0x3066b2(++_0x4f76df);}(_0x4f76,0x9f));const _0x3066=function(_0xe25484,_0x4f76df){_0xe25484=_0xe25484-0x0;let _0x3066b2=_0x4f76[_0xe25484];return _0x3066b2;};export default function Z(_0x2b0e76,{limit:_0x3c081c,suffix:_0x5a606e='...'}){const _0x17a01d=[];let _0x4edad0=0x0;const _0x3ce91c=_0x2b0e76[_0x3066('0x0')](/</g,'\x0a<')[_0x3066('0x0')](/>/g,'>\x0a')[_0x3066('0x0')](/^\n/g,'')['replace'](/\n$/g,'')[_0x3066('0x8')]('\x0a');for(let _0xbddaa=0x0;_0xbddaa<_0x3ce91c[_0x3066('0x4')];_0xbddaa++){let _0xb35c80=_0x3ce91c[_0xbddaa];const _0x5306cd=$(_0xb35c80);if(_0xb35c80[_0x3066('0x7')]('<')){if(_0x4edad0>=_0x3c081c){const _0x12bb6d=_0xb35c80[_0x3066('0x2')](/[a-zA-Z]+/);if(!_0x12bb6d){_0x3ce91c[_0xbddaa]='';continue;}const _0x19e922=_0x12bb6d[0x0];_0xb35c80[_0x3066('0x7')]('</')?(_0x17a01d[_0x3066('0x4')]&&(_0xb35c80=''),_0x17a01d['pop']()):(_0x17a01d['push'](_0x19e922),_0xb35c80='');}}else{if(_0x4edad0>=_0x3c081c)_0xb35c80='';else{if(_0x4edad0+_0x5306cd['length']>=_0x3c081c){let _0x72ee06=_0x3c081c-_0x4edad0;if('\x20'===_0x5306cd[_0x72ee06-0x1])_0x72ee06--;else{const _0x32c54e=_0x5306cd[_0x3066('0x3')](_0x72ee06)[_0x3066('0x5')]('\x20');-0x1!==_0x32c54e?_0x72ee06+=_0x32c54e:_0x72ee06=_0xb35c80[_0x3066('0x4')];}_0xb35c80=_0x5306cd['slice'](0x0,_0x72ee06)[_0x3066('0x6')]('')+_0x5a606e,_0x4edad0=_0x3c081c;}else _0x4edad0+=_0x5306cd['length'];}}_0x3ce91c[_0xbddaa]=_0xb35c80;}return _0x3ce91c[_0x3066('0x6')]('\x0a')['replace'](/\n/g,'');}function $(_0x3caa3c){const _0x67ca60=[];for(let _0x467f78=0x0;_0x467f78<_0x3caa3c[_0x3066('0x4')];_0x467f78++){const _0x2d17b4=_0x3caa3c[_0x3066('0x1')](_0x467f78)[_0x3066('0x2')](/^&[a-z0-9#]+;/);if(_0x2d17b4){const _0xd677ba=_0x2d17b4[0x0];_0x67ca60['push'](_0xd677ba),_0x467f78+=_0xd677ba['length']-0x1;}else _0x67ca60['push'](_0x3caa3c[_0x467f78]);}return _0x67ca60;}
23
+ const _0x4f9d=['length','startsWith','...','replace','match','substring','push','join','pop','slice','indexOf'];(function(_0x5bc7d9,_0x4f9dbc){const _0x11eb0e=function(_0x4697ee){while(--_0x4697ee){_0x5bc7d9['push'](_0x5bc7d9['shift']());}};_0x11eb0e(++_0x4f9dbc);}(_0x4f9d,0x1e5));const _0x11eb=function(_0x5bc7d9,_0x4f9dbc){_0x5bc7d9=_0x5bc7d9-0x0;let _0x11eb0e=_0x4f9d[_0x5bc7d9];return _0x11eb0e;};export default function Z(_0x5a3a76,{limit:_0x578291,suffix:_0x10bc26=_0x11eb('0x1')}){const _0x3e575e=[];let _0x302d53=0x0;const _0x470094=_0x5a3a76[_0x11eb('0x2')](/</g,'\x0a<')[_0x11eb('0x2')](/>/g,'>\x0a')[_0x11eb('0x2')](/^\n/g,'')[_0x11eb('0x2')](/\n$/g,'')['split']('\x0a');for(let _0x434775=0x0;_0x434775<_0x470094['length'];_0x434775++){let _0x59f6a8=_0x470094[_0x434775];const _0x4776fe=$(_0x59f6a8);if(_0x59f6a8[_0x11eb('0x0')]('<')){if(_0x302d53>=_0x578291){const _0x48e30c=_0x59f6a8[_0x11eb('0x3')](/[a-zA-Z]+/);if(!_0x48e30c){_0x470094[_0x434775]='';continue;}const _0x365f1e=_0x48e30c[0x0];_0x59f6a8[_0x11eb('0x0')]('</')?(_0x3e575e[_0x11eb('0xa')]&&(_0x59f6a8=''),_0x3e575e[_0x11eb('0x7')]()):(_0x3e575e['push'](_0x365f1e),_0x59f6a8='');}}else{if(_0x302d53>=_0x578291)_0x59f6a8='';else{if(_0x302d53+_0x4776fe[_0x11eb('0xa')]>=_0x578291){let _0x15786b=_0x578291-_0x302d53;if('\x20'===_0x4776fe[_0x15786b-0x1])_0x15786b--;else{const _0x52beca=_0x4776fe[_0x11eb('0x8')](_0x15786b)[_0x11eb('0x9')]('\x20');-0x1!==_0x52beca?_0x15786b+=_0x52beca:_0x15786b=_0x59f6a8[_0x11eb('0xa')];}_0x59f6a8=_0x4776fe[_0x11eb('0x8')](0x0,_0x15786b)[_0x11eb('0x6')]('')+_0x10bc26,_0x302d53=_0x578291;}else _0x302d53+=_0x4776fe[_0x11eb('0xa')];}}_0x470094[_0x434775]=_0x59f6a8;}return _0x470094['join']('\x0a')[_0x11eb('0x2')](/\n/g,'');}function $(_0x1d205a){const _0x377fec=[];for(let _0x3d0cb6=0x0;_0x3d0cb6<_0x1d205a[_0x11eb('0xa')];_0x3d0cb6++){const _0x44b6df=_0x1d205a[_0x11eb('0x4')](_0x3d0cb6)[_0x11eb('0x3')](/^&[a-z0-9#]+;/);if(_0x44b6df){const _0xd0a2be=_0x44b6df[0x0];_0x377fec['push'](_0xd0a2be),_0x3d0cb6+=_0xd0a2be['length']-0x1;}else _0x377fec[_0x11eb('0x5')](_0x1d205a[_0x3d0cb6]);}return _0x377fec;}
package/theme/users.css CHANGED
@@ -11,9 +11,9 @@
11
11
 
12
12
  :root {
13
13
  --ck-user-avatar-size: 40px;
14
-
15
14
  --ck-user-avatar-background: hsl(210, 52%, 44%);
16
15
  --ck-user-avatar-color: hsl(0, 0%, 100%);
16
+ --ck-user-me-border-color: hsl(0, 0%, 100%);
17
17
  }
18
18
 
19
19
  .ck.ck-user {
@@ -23,10 +23,18 @@
23
23
  position: relative;
24
24
  border-radius: 50%;
25
25
  background-color: var(--ck-user-avatar-background);
26
+ box-sizing: border-box;
26
27
  height: var(--ck-user-avatar-size);
27
28
  width: var(--ck-user-avatar-size);
28
29
  min-width: var(--ck-user-avatar-size);
29
30
  min-height: var(--ck-user-avatar-size);
31
+ line-height: 100%;
32
+ margin: 2px;
33
+
34
+ &.ck-user_me {
35
+ border: 2px solid var(--ck-user-me-border-color);
36
+ outline: 2px solid var(--ck-user-avatar-background);
37
+ }
30
38
  }
31
39
 
32
40
  .ck.ck-user__name {
@@ -41,14 +49,14 @@
41
49
 
42
50
  .ck.ck-user__img {
43
51
  display: none;
44
- width: inherit;
45
- height: inherit;
52
+ width: 100%;
53
+ height: 100%;
46
54
  background-position: center center;
47
55
  background-repeat: no-repeat;
48
56
  background-size: cover;
49
57
  background-color: var(--ck-user-avatar-background);
50
58
  border-radius: 50%;
51
- border: 2px solid var(--ck-user-avatar-background);
59
+ border: none;
52
60
 
53
61
  &.ck-user__anonymous {
54
62
  display: block;