@ckeditor/ckeditor5-collaboration-core 37.0.1 → 37.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": "37.0.1",
3
+ "version": "37.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/)",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "main": "src/index.js",
30
30
  "dependencies": {
31
- "ckeditor5": "^37.0.1",
31
+ "ckeditor5": "^37.1.0",
32
32
  "date-fns": "^2.17.0"
33
33
  },
34
34
  "files": [
@@ -2,7 +2,7 @@
2
2
  * @module collaboration-core/collaborationoperation
3
3
  * @publicApi
4
4
  */
5
- import type { Operation, DocumentFragment, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation } from 'ckeditor5/src/engine';
5
+ import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine';
6
6
  /**
7
7
  * Extends the {@link module:engine/model/operation/operation operation}.
8
8
  */
@@ -13,7 +13,6 @@ export default interface CollaborationOperation extends Operation {
13
13
  createdAt?: Date;
14
14
  wasUndone?: boolean;
15
15
  affectsData?: Record<string, any>;
16
- root?: DocumentFragment;
17
16
  clone(): CollaborationOperation;
18
17
  }
19
18
  export type InsertCollaborationOperation = CollaborationOperation & InsertOperation;
@@ -21,3 +20,5 @@ export type MoveCollaborationOperation = CollaborationOperation & MoveOperation;
21
20
  export type MergeCollaborationOperation = CollaborationOperation & MergeOperation;
22
21
  export type SplitCollaborationOperation = CollaborationOperation & SplitOperation;
23
22
  export type MarkerCollaborationOperation = CollaborationOperation & MarkerOperation;
23
+ export type RootCollaborationOperation = CollaborationOperation & RootOperation;
24
+ export type RootAttributeCollaborationOperation = CollaborationOperation & RootAttributeOperation;
package/src/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from '
6
6
  export { default as trimHtml } from './utils/trim-html';
7
7
  export { default as ConfirmMixin } from './utils/confirmmixin';
8
8
  export { default as hashObject } from './utils/hashobject';
9
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation } from './collaborationoperation';
9
+ export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
10
10
  export { default as CollaborationHistory } from './collaborationhistory';
11
11
  export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
12
12
  export * from './suggestionstyles';
@@ -9,14 +9,14 @@ import { ContextPlugin } from 'ckeditor5/src/core';
9
9
  * Following is the list of all defined permissions:
10
10
  *
11
11
  * * `document:write` - modify the content of the document,
12
- * * `comment:write` - create, edit and remove own comments and create and remove own comment threads,
13
- * * `comment:admin` - remove comment threads created by other users (enables `comment:write`).
14
- * * `comment:modify_all` - edit and remove any comments created by any user.
12
+ * * `comment:write` - create, edit and remove own comments and create, resolve and remove own comment threads,
13
+ * * `comment:admin` - resolve and remove comment threads created by other users (enables `comment:write`).
14
+ * * `comment:modify_all` - edit and remove any comments created by other users.
15
15
  *
16
16
  * For example, a user with `comment:write` permission but with no `document:write` permission will be able to add
17
17
  * comments but will not be able to change the document data (comments-only mode).
18
18
  *
19
- * By default, all the permissions are set to enabled.
19
+ * By default, following permissions are set: `document:write`, `comment:write`, `comment:admin`.
20
20
  *
21
21
  * Permissions are handled separately for each channel id (for each editor instance and context instance).
22
22
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cdd=['Permissions','plugins','editors','context','CommentsRepository','setPermissions','comment:modify_all','forceDisabled','get','isEnabled','permissions-set-permissions-invalid-channel-id','clearForceDisabled','noPermissions','comment:admin','includes','CommentsOnly','commands','pluginName','enableReadOnlyMode','has','document:write','collaboration.channelId','config'];(function(_0x3b963f,_0x4cddf8){const _0x40f754=function(_0x579cc7){while(--_0x579cc7){_0x3b963f['push'](_0x3b963f['shift']());}};_0x40f754(++_0x4cddf8);}(_0x4cdd,0x15e));const _0x40f7=function(_0x3b963f,_0x4cddf8){_0x3b963f=_0x3b963f-0x0;let _0x40f754=_0x4cdd[_0x3b963f];return _0x40f754;};import{ContextPlugin as _0x3c4e20,Editor as _0x5eb281}from'ckeditor5/src/core';import{CKEditorError as _0xc070b3}from'ckeditor5/src/utils';export default class n extends _0x3c4e20{static get[_0x40f7('0xc')](){return _0x40f7('0x12');}[_0x40f7('0x0')](_0x48374a,_0x238e33){let _0x16505f;if(_0x238e33||(_0x238e33=this[_0x40f7('0x15')]['config']['get'](_0x40f7('0x10'))),this[_0x40f7('0x15')][_0x40f7('0x11')][_0x40f7('0x3')](_0x40f7('0x10'))==_0x238e33?_0x16505f=this[_0x40f7('0x15')]:_0x40f7('0x14')in this['context']&&this['context'][_0x40f7('0x14')]&&(_0x16505f=this[_0x40f7('0x15')]['editors']['find'](_0x26949d=>_0x26949d[_0x40f7('0x11')][_0x40f7('0x3')](_0x40f7('0x10'))==_0x238e33)),!_0x16505f)throw new _0xc070b3(_0x40f7('0x5'),null);const _0x149ade=_0x16505f[_0x40f7('0x13')],_0x350213=_0x149ade['has'](_0x40f7('0x16'))?_0x149ade[_0x40f7('0x3')]('CommentsRepository'):void 0x0,_0x521fb9=_0x149ade[_0x40f7('0xe')](_0x40f7('0xa'))&&_0x149ade[_0x40f7('0x3')](_0x40f7('0xa')),_0x15ea4f=_0x48374a['includes'](_0x40f7('0xf')),_0x3139a2=_0x48374a[_0x40f7('0x9')](_0x40f7('0x1')),_0x39a64e=_0x48374a[_0x40f7('0x9')](_0x40f7('0x8')),_0x5a2bac=_0x48374a[_0x40f7('0x9')]('comment:write'),_0x40aca5=_0x5a2bac||_0x39a64e,_0x107ef9=_0x40aca5||_0x3139a2;(_0x521fb9&&(_0x521fb9[_0x40f7('0x4')]=!_0x15ea4f&&_0x107ef9),_0x16505f instanceof _0x5eb281)&&(!(_0x15ea4f||_0x107ef9&&_0x350213)?_0x16505f[_0x40f7('0xd')]('no-permissions'):_0x16505f['disableReadOnlyMode']('no-permissions'));if(_0x350213){_0x350213[_0x40f7('0x0')]({'admin':_0x39a64e,'modifyAll':_0x3139a2,'write':_0x5a2bac},_0x238e33);const _0x210996=_0x16505f instanceof _0x5eb281&&_0x16505f[_0x40f7('0xb')][_0x40f7('0x3')]('addCommentThread');_0x210996&&(_0x40aca5?_0x210996[_0x40f7('0x6')](_0x40f7('0x7')):_0x210996[_0x40f7('0x2')](_0x40f7('0x7')));}}}
23
+ const _0x5796=['commands','clearForceDisabled','addCommentThread','has','includes','Permissions','permissions-set-permissions-invalid-channel-id','config','enableReadOnlyMode','no-permissions','get','disableReadOnlyMode','plugins','noPermissions','context','CommentsOnly','find','setPermissions','collaboration.channelId','editors','CommentsRepository','comment:modify_all'];(function(_0x1dd992,_0x579616){const _0x3eb819=function(_0x467028){while(--_0x467028){_0x1dd992['push'](_0x1dd992['shift']());}};_0x3eb819(++_0x579616);}(_0x5796,0xe1));const _0x3eb8=function(_0x1dd992,_0x579616){_0x1dd992=_0x1dd992-0x0;let _0x3eb819=_0x5796[_0x1dd992];return _0x3eb819;};import{ContextPlugin as _0x3c07fc,Editor as _0x403369}from'ckeditor5/src/core';import{CKEditorError as _0x51a11b}from'ckeditor5/src/utils';export default class n extends _0x3c07fc{static get['pluginName'](){return _0x3eb8('0x0');}['setPermissions'](_0x11b159,_0x11340e){let _0x2f6bd8;if(_0x11340e||(_0x11340e=this[_0x3eb8('0x9')]['config'][_0x3eb8('0x5')](_0x3eb8('0xd'))),this['context'][_0x3eb8('0x2')][_0x3eb8('0x5')](_0x3eb8('0xd'))==_0x11340e?_0x2f6bd8=this[_0x3eb8('0x9')]:_0x3eb8('0xe')in this['context']&&this['context'][_0x3eb8('0xe')]&&(_0x2f6bd8=this['context']['editors'][_0x3eb8('0xb')](_0x3da4cf=>_0x3da4cf['config']['get'](_0x3eb8('0xd'))==_0x11340e)),!_0x2f6bd8)throw new _0x51a11b(_0x3eb8('0x1'),null);const _0xec0329=_0x2f6bd8[_0x3eb8('0x7')],_0x12cd3f=_0xec0329[_0x3eb8('0x14')](_0x3eb8('0xf'))?_0xec0329[_0x3eb8('0x5')]('CommentsRepository'):void 0x0,_0x58c4ff=_0xec0329['has'](_0x3eb8('0xa'))&&_0xec0329[_0x3eb8('0x5')](_0x3eb8('0xa')),_0x224900=_0x11b159['includes']('document:write'),_0x5a0d4e=_0x11b159[_0x3eb8('0x15')](_0x3eb8('0x10')),_0x128323=_0x11b159['includes']('comment:admin'),_0x26bb1b=_0x11b159[_0x3eb8('0x15')]('comment:write'),_0x5b5971=_0x26bb1b||_0x128323,_0x2d156c=_0x5b5971||_0x5a0d4e;(_0x58c4ff&&(_0x58c4ff['isEnabled']=!_0x224900&&_0x2d156c),_0x2f6bd8 instanceof _0x403369)&&(!(_0x224900||_0x2d156c&&_0x12cd3f)?_0x2f6bd8[_0x3eb8('0x3')]('no-permissions'):_0x2f6bd8[_0x3eb8('0x6')](_0x3eb8('0x4')));if(_0x12cd3f){_0x12cd3f[_0x3eb8('0xc')]({'admin':_0x128323,'modifyAll':_0x5a0d4e,'write':_0x26bb1b},_0x11340e);const _0x586c44=_0x2f6bd8 instanceof _0x403369&&_0x2f6bd8[_0x3eb8('0x11')][_0x3eb8('0x5')](_0x3eb8('0x13'));_0x586c44&&(_0x5b5971?_0x586c44[_0x3eb8('0x12')]('noPermissions'):_0x586c44['forceDisabled'](_0x3eb8('0x8')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x529a=['avatar','push','extendTemplate','initials','content','div','ck-user__anonymous','ck-user','notificationView','ck-user__img','name','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous'];(function(_0x40cac0,_0x529a09){const _0x56b65a=function(_0x2047b7){while(--_0x2047b7){_0x40cac0['push'](_0x40cac0['shift']());}};_0x56b65a(++_0x529a09);}(_0x529a,0x174));const _0x56b6=function(_0x40cac0,_0x529a09){_0x40cac0=_0x40cac0-0x0;let _0x56b65a=_0x529a[_0x40cac0];return _0x56b65a;};import{View as _0x3787ea,IconView as _0x30a61c}from'ckeditor5/src/ui';import _0x267df1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x3787ea{constructor(_0x1b46b1,_0x567eeb,_0x36fd55){super(_0x1b46b1),this[_0x56b6('0x2')]=_0x567eeb['name'],this[_0x56b6('0x0')]=null;const _0x46943f=['ck',_0x56b6('0x1')];if(_0x567eeb[_0x56b6('0x4')]&&_0x46943f['push'](_0x56b6('0xb')),_0x567eeb['avatar']&&_0x46943f[_0x56b6('0x6')]('ck-user__avatar'),_0x36fd55){const _0x1b8d85=new _0x30a61c();_0x1b8d85[_0x56b6('0x7')]({'attributes':{'class':['ck-user__icon']}}),_0x1b8d85[_0x56b6('0x9')]=_0x267df1,this[_0x56b6('0x0')]={'tag':_0x56b6('0xa'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x36fd55},'children':[_0x1b8d85]};}const _0x2d923e=[{'tag':_0x56b6('0xa'),'attributes':{'class':_0x46943f,'style':{'background-image':_0x567eeb[_0x56b6('0x5')]?'url(\x27'+_0x567eeb[_0x56b6('0x5')]+'\x27)':''}}},{'tag':_0x56b6('0xa'),'attributes':{'class':_0x567eeb[_0x56b6('0x5')]?_0x56b6('0x3'):'ck\x20ck-user__name'},'children':[{'text':_0x567eeb[_0x56b6('0x8')]}]}];this[_0x56b6('0x0')]&&_0x2d923e[_0x56b6('0x6')](this[_0x56b6('0x0')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x56b6('0xc')],'data-user-id':_0x567eeb['id']},'children':_0x2d923e});}}
23
+ const _0x4ae4=['name','push','content','ck-user__notification','ck-user__avatar','isAnonymous','initials','url(\x27','notificationView','ck\x20ck-user__name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user','extendTemplate','div','ck-user__img','avatar'];(function(_0x532bba,_0x4ae47b){const _0x4e4522=function(_0x13363d){while(--_0x13363d){_0x532bba['push'](_0x532bba['shift']());}};_0x4e4522(++_0x4ae47b);}(_0x4ae4,0x1c1));const _0x4e45=function(_0x532bba,_0x4ae47b){_0x532bba=_0x532bba-0x0;let _0x4e4522=_0x4ae4[_0x532bba];return _0x4e4522;};import{View as _0x1fb550,IconView as _0x2de454}from'ckeditor5/src/ui';import _0x1f4589 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x1fb550{constructor(_0x13d038,_0x19942b,_0x5f17f4){super(_0x13d038),this['name']=_0x19942b[_0x4e45('0xf')],this[_0x4e45('0x7')]=null;const _0x1bf1bd=['ck',_0x4e45('0xd')];if(_0x19942b[_0x4e45('0x4')]&&_0x1bf1bd['push']('ck-user__anonymous'),_0x19942b[_0x4e45('0xe')]&&_0x1bf1bd[_0x4e45('0x0')](_0x4e45('0x3')),_0x5f17f4){const _0x2d82fa=new _0x2de454();_0x2d82fa[_0x4e45('0xb')]({'attributes':{'class':['ck-user__icon']}}),_0x2d82fa[_0x4e45('0x1')]=_0x1f4589,this[_0x4e45('0x7')]={'tag':'div','attributes':{'class':['ck',_0x4e45('0x2')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5f17f4},'children':[_0x2d82fa]};}const _0x115cea=[{'tag':'div','attributes':{'class':_0x1bf1bd,'style':{'background-image':_0x19942b[_0x4e45('0xe')]?_0x4e45('0x6')+_0x19942b['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x19942b[_0x4e45('0xe')]?_0x4e45('0x9'):_0x4e45('0x8')},'children':[{'text':_0x19942b[_0x4e45('0x5')]}]}];this['notificationView']&&_0x115cea[_0x4e45('0x0')](this['notificationView']),this['setTemplate']({'tag':_0x4e45('0xc'),'attributes':{'class':['ck',_0x4e45('0xa')],'data-user-id':_0x19942b['id']},'children':_0x115cea});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b5c=['has','init','trim','info','users-me-already-defined','addUser','_licenseKeyCheckInterval','Users','trial-license-key-reached-limit-time','users.anonymousUserId','_addAnonymousUser','users-add-invalid-id','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.','length','users.colorsCount','_myId','split','licenseKeyTrial','toUpperCase','licenseKeyTrialLimit:revisions','requires','get','getUser','_isAnonymous','initials','users-me-missing-user','define','destroy','_getInitial','users','getOperationAuthor','avatar','trial-license-key-reached-limit-changes','invalid-license-key','licenseKeyTrialLimit:time','string','licenseKeyValid','_lastColor','name','licenseKey','ck-user__bg-color--','locale','add','config','_locale','ck-user__marker--','_getNextColor','licenseKeyTrialLimit:operations','useAnonymousUser','trial-license-key-reached-limit-revisions','color','defineMe','decorate','_id','includes','pluginName','isAnonymous','context','anonymous-user','Anonymous'];(function(_0x5b182d,_0x1b5cea){const _0x6d6ce3=function(_0x439742){while(--_0x439742){_0x5b182d['push'](_0x5b182d['shift']());}};_0x6d6ce3(++_0x1b5cea);}(_0x1b5c,0x1e3));const _0x6d6c=function(_0x5b182d,_0x1b5cea){_0x5b182d=_0x5b182d-0x0;let _0x6d6ce3=_0x1b5c[_0x5b182d];return _0x6d6ce3;};import{ContextPlugin as _0xd4747c}from'ckeditor5/src/core';import{Collection as _0x54d82b,CKEditorError as _0x5c3f8e}from'ckeditor5/src/utils';import _0xcce377 from'./permissions';import{getTranslation as _0x10e641}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0xd4747c{static get[_0x6d6c('0x34')](){return _0x6d6c('0x4');}static get[_0x6d6c('0x11')](){return[_0xcce377];}constructor(_0x2daf6f){super(_0x2daf6f),this[_0x6d6c('0x36')][_0x6d6c('0x28')][_0x6d6c('0x17')](_0x6d6c('0x6'),_0x6d6c('0x37')),this[_0x6d6c('0x36')][_0x6d6c('0x28')]['define'](_0x6d6c('0xb'),0x8),this['users']=new _0x54d82b(),this[_0x6d6c('0x29')]=_0x2daf6f[_0x6d6c('0x26')],this[_0x6d6c('0x3')]=null,this[_0x6d6c('0x22')]=0x0,this[_0x6d6c('0xc')]=null,this[_0x6d6c('0x31')](_0x6d6c('0x1b'));}[_0x6d6c('0x3a')](){const _0x2185bb=this[_0x6d6c('0x36')];this[_0x6d6c('0x24')]=_0x2185bb[_0x6d6c('0x28')][_0x6d6c('0x12')](_0x6d6c('0x24'));const _0x52211a=[_0x6d6c('0xe'),'licenseKeyInvalid',_0x6d6c('0x21'),_0x6d6c('0x2c'),_0x6d6c('0x1f'),_0x6d6c('0x10')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e235a;for(const _0x10a014 in _0x2185bb){const _0x10db0f=_0x2185bb[_0x10a014];if(_0x52211a[_0x6d6c('0x33')](_0x10db0f)){delete _0x2185bb[_0x10a014],_0x2e235a=_0x10db0f;break;}}if('licenseKeyInvalid'===_0x2e235a)throw clearInterval(this[_0x6d6c('0x3')]),new _0x5c3f8e(_0x6d6c('0x1e'),null);if(_0x6d6c('0xe')===_0x2e235a&&console[_0x6d6c('0x0')](_0x6d6c('0x9')),'licenseKeyTrialLimit:operations'===_0x2e235a)throw clearInterval(this[_0x6d6c('0x3')]),new _0x5c3f8e(_0x6d6c('0x1d'),null);if('licenseKeyTrialLimit:time'===_0x2e235a)throw clearInterval(this[_0x6d6c('0x3')]),new _0x5c3f8e(_0x6d6c('0x5'),null);if(_0x6d6c('0x10')===_0x2e235a)throw clearInterval(this[_0x6d6c('0x3')]),new _0x5c3f8e(_0x6d6c('0x2e'),null);'licenseKeyValid'===_0x2e235a&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x6d6c('0x7')]();}get['me'](){return null==this[_0x6d6c('0xc')]?null:this['getUser'](this['_myId']);}[_0x6d6c('0x2')]({id:_0x40dbd7,name:_0x4a8002,..._0x34f9ff}){if(!_0x40dbd7||_0x6d6c('0x20')!=typeof _0x40dbd7)throw new _0x5c3f8e(_0x6d6c('0x8'));if(this['users'][_0x6d6c('0x39')](_0x40dbd7))throw new _0x5c3f8e('users-add-duplicated-id',null,{'id':_0x40dbd7});const _0xedde82={..._0x34f9ff,'id':_0x40dbd7,'name':a(this['_locale'],_0x4a8002),'color':this['_getNextColor']()};_0xedde82['name']=a(this[_0x6d6c('0x29')],_0xedde82[_0x6d6c('0x23')]);const _0x8f730e=new User(_0xedde82);return this[_0x6d6c('0x1a')][_0x6d6c('0x27')](_0x8f730e),_0x8f730e;}[_0x6d6c('0x13')](_0xba8f12){return this['users'][_0x6d6c('0x12')](_0xba8f12);}[_0x6d6c('0x2d')](){const _0x2f07ec=this[_0x6d6c('0x36')][_0x6d6c('0x28')][_0x6d6c('0x12')](_0x6d6c('0x6'));this['_myId']||this[_0x6d6c('0x30')](_0x2f07ec);}[_0x6d6c('0x30')](_0x550422){if(this[_0x6d6c('0xc')])throw new _0x5c3f8e(_0x6d6c('0x1'),null);if(!this['getUser'](_0x550422))throw new _0x5c3f8e(_0x6d6c('0x16'),null);this['_myId']=_0x550422;}[_0x6d6c('0x1b')](){return this['me'];}['destroy'](){super[_0x6d6c('0x18')](),clearInterval(this[_0x6d6c('0x3')]);}[_0x6d6c('0x2b')](){const _0x584f32=this[_0x6d6c('0x36')][_0x6d6c('0x28')][_0x6d6c('0x12')]('users.colorsCount');return this[_0x6d6c('0x22')]>=_0x584f32&&(this[_0x6d6c('0x22')]=0x0),new u(this[_0x6d6c('0x22')]++);}['_addAnonymousUser'](){const _0x3a6062=this[_0x6d6c('0x36')][_0x6d6c('0x28')]['get'](_0x6d6c('0x6'));this['addUser']({'id':_0x3a6062,'name':_0x10e641(this[_0x6d6c('0x29')],'Anonymous')})[_0x6d6c('0x14')]=!0x0;}}export class User{constructor(_0x402731){this['id']=_0x402731['id'],this[_0x6d6c('0x2f')]=_0x402731[_0x6d6c('0x2f')],this['name']=_0x402731[_0x6d6c('0x23')],this['avatar']=_0x402731[_0x6d6c('0x1c')],this[_0x6d6c('0x14')]=!0x1;}get[_0x6d6c('0x35')](){return this[_0x6d6c('0x14')];}get[_0x6d6c('0x15')](){const _0x51bac6=this[_0x6d6c('0x23')][_0x6d6c('0xd')]('\x20');return 0x1===_0x51bac6['length']?this[_0x6d6c('0x19')](_0x51bac6[0x0]):this[_0x6d6c('0x19')](_0x51bac6[0x0])+this['_getInitial'](_0x51bac6[_0x51bac6[_0x6d6c('0xa')]-0x1]);}[_0x6d6c('0x19')](_0x525688){return _0x525688['charAt'](0x0)[_0x6d6c('0xf')]();}}function a(_0x5293f3,_0xb2419b=''){return''==(_0xb2419b=_0xb2419b[_0x6d6c('0x3b')]())?_0x10e641(_0x5293f3,_0x6d6c('0x38')):_0xb2419b;}class u{constructor(_0x2bc723){this[_0x6d6c('0x32')]=_0x2bc723;}['getBackgroundColorClass'](){return _0x6d6c('0x25')+this[_0x6d6c('0x32')];}['getSelectionClass'](){return'ck-user__selection--'+this[_0x6d6c('0x32')];}['getMarkerClass'](){return _0x6d6c('0x2a')+this[_0x6d6c('0x32')];}}
23
+ const _0x2641=['getUser','requires','getSelectionClass','_getInitial','length','licenseKeyTrial','licenseKeyValid','getMarkerClass','licenseKeyTrialLimit:operations','config','decorate','get','getBackgroundColorClass','users-me-missing-user','_lastColor','users-add-duplicated-id','isAnonymous','users-add-invalid-id','Anonymous','avatar','licenseKeyTrialLimit:revisions','trim','_myId','split','users','_locale','_getNextColor','init','trial-license-key-reached-limit-revisions','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.','getOperationAuthor','ck-user__marker--','invalid-license-key','destroy','pluginName','addUser','defineMe','licenseKey','has','licenseKeyInvalid','includes','ck-user__selection--','_id','info','string','ck-user__bg-color--','context','Users','users.colorsCount','color','charAt','_isAnonymous','_addAnonymousUser','trial-license-key-reached-limit-time','_licenseKeyCheckInterval','name','toUpperCase','anonymous-user','users.anonymousUserId','licenseKeyTrialLimit:time'];(function(_0x2c2f9f,_0x264194){const _0x2e89b2=function(_0x34d99d){while(--_0x34d99d){_0x2c2f9f['push'](_0x2c2f9f['shift']());}};_0x2e89b2(++_0x264194);}(_0x2641,0x6f));const _0x2e89=function(_0x2c2f9f,_0x264194){_0x2c2f9f=_0x2c2f9f-0x0;let _0x2e89b2=_0x2641[_0x2c2f9f];return _0x2e89b2;};import{ContextPlugin as _0x38de3c}from'ckeditor5/src/core';import{Collection as _0xb6d25a,CKEditorError as _0x21035b}from'ckeditor5/src/utils';import _0x5503ea from'./permissions';import{getTranslation as _0x18f740}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x38de3c{static get[_0x2e89('0x2b')](){return _0x2e89('0x38');}static get[_0x2e89('0xa')](){return[_0x5503ea];}constructor(_0x12af95){super(_0x12af95),this[_0x2e89('0x37')][_0x2e89('0x12')]['define']('users.anonymousUserId',_0x2e89('0x6')),this[_0x2e89('0x37')][_0x2e89('0x12')]['define'](_0x2e89('0x39'),0x8),this['users']=new _0xb6d25a(),this[_0x2e89('0x22')]=_0x12af95['locale'],this['_licenseKeyCheckInterval']=null,this[_0x2e89('0x17')]=0x0,this[_0x2e89('0x1f')]=null,this[_0x2e89('0x13')](_0x2e89('0x27'));}[_0x2e89('0x24')](){const _0x2e7bbf=this[_0x2e89('0x37')];this['licenseKey']=_0x2e7bbf['config'][_0x2e89('0x14')](_0x2e89('0x2e'));const _0xa63572=[_0x2e89('0xe'),_0x2e89('0x30'),_0x2e89('0xf'),_0x2e89('0x11'),_0x2e89('0x8'),'licenseKeyTrialLimit:revisions'];this[_0x2e89('0x3')]=setInterval(()=>{let _0x43b213;for(const _0x19315f in _0x2e7bbf){const _0x22a306=_0x2e7bbf[_0x19315f];if(_0xa63572[_0x2e89('0x31')](_0x22a306)){delete _0x2e7bbf[_0x19315f],_0x43b213=_0x22a306;break;}}if(_0x2e89('0x30')===_0x43b213)throw clearInterval(this[_0x2e89('0x3')]),new _0x21035b(_0x2e89('0x29'),null);if(_0x2e89('0xe')===_0x43b213&&console[_0x2e89('0x34')](_0x2e89('0x26')),'licenseKeyTrialLimit:operations'===_0x43b213)throw clearInterval(this[_0x2e89('0x3')]),new _0x21035b('trial-license-key-reached-limit-changes',null);if(_0x2e89('0x8')===_0x43b213)throw clearInterval(this[_0x2e89('0x3')]),new _0x21035b(_0x2e89('0x2'),null);if(_0x2e89('0x1d')===_0x43b213)throw clearInterval(this[_0x2e89('0x3')]),new _0x21035b(_0x2e89('0x25'),null);'licenseKeyValid'===_0x43b213&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x2e89('0x1')]();}get['me'](){return null==this[_0x2e89('0x1f')]?null:this['getUser'](this['_myId']);}[_0x2e89('0x2c')]({id:_0x393843,name:_0x3de0ba,..._0x2ff19e}){if(!_0x393843||_0x2e89('0x35')!=typeof _0x393843)throw new _0x21035b(_0x2e89('0x1a'));if(this['users'][_0x2e89('0x2f')](_0x393843))throw new _0x21035b(_0x2e89('0x18'),null,{'id':_0x393843});const _0x351d27={..._0x2ff19e,'id':_0x393843,'name':a(this[_0x2e89('0x22')],_0x3de0ba),'color':this[_0x2e89('0x23')]()};_0x351d27[_0x2e89('0x4')]=a(this[_0x2e89('0x22')],_0x351d27[_0x2e89('0x4')]);const _0x446a55=new User(_0x351d27);return this[_0x2e89('0x21')]['add'](_0x446a55),_0x446a55;}[_0x2e89('0x9')](_0x131015){return this[_0x2e89('0x21')][_0x2e89('0x14')](_0x131015);}['useAnonymousUser'](){const _0x18f1a1=this['context'][_0x2e89('0x12')][_0x2e89('0x14')](_0x2e89('0x7'));this['_myId']||this[_0x2e89('0x2d')](_0x18f1a1);}[_0x2e89('0x2d')](_0x56e78e){if(this['_myId'])throw new _0x21035b('users-me-already-defined',null);if(!this[_0x2e89('0x9')](_0x56e78e))throw new _0x21035b(_0x2e89('0x16'),null);this['_myId']=_0x56e78e;}[_0x2e89('0x27')](){return this['me'];}[_0x2e89('0x2a')](){super[_0x2e89('0x2a')](),clearInterval(this[_0x2e89('0x3')]);}[_0x2e89('0x23')](){const _0x5d3912=this['context']['config'][_0x2e89('0x14')]('users.colorsCount');return this[_0x2e89('0x17')]>=_0x5d3912&&(this[_0x2e89('0x17')]=0x0),new u(this['_lastColor']++);}[_0x2e89('0x1')](){const _0x1657ec=this[_0x2e89('0x37')][_0x2e89('0x12')][_0x2e89('0x14')](_0x2e89('0x7'));this[_0x2e89('0x2c')]({'id':_0x1657ec,'name':_0x18f740(this[_0x2e89('0x22')],'Anonymous')})[_0x2e89('0x0')]=!0x0;}}export class User{constructor(_0x280c25){this['id']=_0x280c25['id'],this[_0x2e89('0x3a')]=_0x280c25[_0x2e89('0x3a')],this[_0x2e89('0x4')]=_0x280c25[_0x2e89('0x4')],this[_0x2e89('0x1c')]=_0x280c25[_0x2e89('0x1c')],this[_0x2e89('0x0')]=!0x1;}get[_0x2e89('0x19')](){return this[_0x2e89('0x0')];}get['initials'](){const _0x5b3788=this[_0x2e89('0x4')][_0x2e89('0x20')]('\x20');return 0x1===_0x5b3788[_0x2e89('0xd')]?this[_0x2e89('0xc')](_0x5b3788[0x0]):this[_0x2e89('0xc')](_0x5b3788[0x0])+this[_0x2e89('0xc')](_0x5b3788[_0x5b3788[_0x2e89('0xd')]-0x1]);}[_0x2e89('0xc')](_0x406e3d){return _0x406e3d[_0x2e89('0x3b')](0x0)[_0x2e89('0x5')]();}}function a(_0xbc9287,_0x36c4e8=''){return''==(_0x36c4e8=_0x36c4e8[_0x2e89('0x1e')]())?_0x18f740(_0xbc9287,_0x2e89('0x1b')):_0x36c4e8;}class u{constructor(_0x43ed77){this[_0x2e89('0x33')]=_0x43ed77;}[_0x2e89('0x15')](){return _0x2e89('0x36')+this[_0x2e89('0x33')];}[_0x2e89('0xb')](){return _0x2e89('0x32')+this[_0x2e89('0x33')];}[_0x2e89('0x10')](){return _0x2e89('0x28')+this[_0x2e89('0x33')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2750e8,_0x5ac867){const t=_0x2750e8['t'];switch(_0x5ac867){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(_0x573393,_0x477a3b){const t=_0x573393['t'];switch(_0x477a3b){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 _0x3caa=['fire','_removeConfirm','message','isConfirm','once','confirmView','showConfirm','remove','set','focus','destroy','cancel','render','registerChild','appendChild','locale','element','deregisterChild','cancelConfirm'];(function(_0x4a3538,_0x3caaaf){var _0x36e72d=function(_0x1af477){while(--_0x1af477){_0x4a3538['push'](_0x4a3538['shift']());}};_0x36e72d(++_0x3caaaf);}(_0x3caa,0x19c));var _0x36e7=function(_0x4a3538,_0x3caaaf){_0x4a3538=_0x4a3538-0x0;var _0x36e72d=_0x3caa[_0x4a3538];return _0x36e72d;};import _0x5ed910 from'./confirmview';export default function m(_0x143788){return class extends _0x143788{[_0x36e7('0xc')](_0x4cfa15,_0x49f3f9){return this[_0x36e7('0xb')]=new _0x5ed910(this[_0x36e7('0x2')]),this['confirmView'][_0x36e7('0x12')](),this['confirmView'][_0x36e7('0x8')]=_0x4cfa15,this['confirmView'][_0x36e7('0xa')](_0x36e7('0x11'),()=>{this[_0x36e7('0x7')]();}),this[_0x36e7('0xb')][_0x36e7('0xa')]('submit',()=>{this['_removeConfirm']();}),_0x49f3f9[_0x36e7('0x1')](this[_0x36e7('0xb')][_0x36e7('0x3')]),this[_0x36e7('0x0')](this[_0x36e7('0xb')]),this[_0x36e7('0x3')][_0x36e7('0xf')](),this[_0x36e7('0xe')](_0x36e7('0x9'),!0x0),new Promise(_0x311f41=>this[_0x36e7('0xb')]['on']('submit',_0x311f41));}[_0x36e7('0x5')](){this['isConfirm']&&this[_0x36e7('0xb')][_0x36e7('0x6')](_0x36e7('0x11'));}[_0x36e7('0x7')](){this[_0x36e7('0x3')]&&this[_0x36e7('0xb')]&&this['confirmView'][_0x36e7('0x3')]&&(this[_0x36e7('0x3')][_0x36e7('0xf')](),this[_0x36e7('0xb')][_0x36e7('0x3')][_0x36e7('0xd')](),this[_0x36e7('0x4')](this[_0x36e7('0xb')]),this['isConfirm']=!0x1,this[_0x36e7('0xb')][_0x36e7('0x10')](),this[_0x36e7('0xb')]=void 0x0);}};}
23
+ var _0x2570=['appendChild','destroy','render','cancel','focus','confirmView','deregisterChild','locale','registerChild','element','isConfirm','_removeConfirm','submit','cancelConfirm','message','showConfirm','set','once'];(function(_0xab9676,_0x257045){var _0x2f12fe=function(_0x42d98f){while(--_0x42d98f){_0xab9676['push'](_0xab9676['shift']());}};_0x2f12fe(++_0x257045);}(_0x2570,0x91));var _0x2f12=function(_0xab9676,_0x257045){_0xab9676=_0xab9676-0x0;var _0x2f12fe=_0x2570[_0xab9676];return _0x2f12fe;};import _0x5afaca from'./confirmview';export default function m(_0xb4b1f0){return class extends _0xb4b1f0{[_0x2f12('0xe')](_0x1112c4,_0x31ad32){return this[_0x2f12('0x4')]=new _0x5afaca(this[_0x2f12('0x6')]),this['confirmView'][_0x2f12('0x1')](),this[_0x2f12('0x4')][_0x2f12('0xd')]=_0x1112c4,this[_0x2f12('0x4')][_0x2f12('0x10')]('cancel',()=>{this[_0x2f12('0xa')]();}),this[_0x2f12('0x4')][_0x2f12('0x10')](_0x2f12('0xb'),()=>{this[_0x2f12('0xa')]();}),_0x31ad32[_0x2f12('0x11')](this['confirmView'][_0x2f12('0x8')]),this[_0x2f12('0x7')](this['confirmView']),this[_0x2f12('0x8')][_0x2f12('0x3')](),this[_0x2f12('0xf')](_0x2f12('0x9'),!0x0),new Promise(_0x252224=>this[_0x2f12('0x4')]['on'](_0x2f12('0xb'),_0x252224));}[_0x2f12('0xc')](){this[_0x2f12('0x9')]&&this[_0x2f12('0x4')]['fire'](_0x2f12('0x2'));}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this[_0x2f12('0x8')][_0x2f12('0x3')](),this[_0x2f12('0x4')][_0x2f12('0x8')]['remove'](),this[_0x2f12('0x5')](this[_0x2f12('0x4')]),this[_0x2f12('0x9')]=!0x1,this[_0x2f12('0x4')][_0x2f12('0x0')](),this[_0x2f12('0x4')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bf1=['_createButtonView','set','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-actions','cancelView','ck-thread__remove-confirm','label','ck-thread__remove-confirm-','check','icon','bindTemplate','cancel','message','div','submitView','fire','extendTemplate'];(function(_0x4b008c,_0x1bf126){const _0x2a12de=function(_0x532f5c){while(--_0x532f5c){_0x4b008c['push'](_0x4b008c['shift']());}};_0x2a12de(++_0x1bf126);}(_0x1bf1,0x19f));const _0x2a12=function(_0x4b008c,_0x1bf126){_0x4b008c=_0x4b008c-0x0;let _0x2a12de=_0x1bf1[_0x4b008c];return _0x2a12de;};import{View as _0x5bf315,ButtonView as _0x491eb1}from'ckeditor5/src/ui';import{icons as _0x2d9530}from'ckeditor5/src/core';import{getTranslation as _0x31dc2f}from'./common-translations';export default class h extends _0x5bf315{constructor(_0xf9173f){super(_0xf9173f);const _0x448a4d=this[_0x2a12('0x3')];this[_0x2a12('0x7')]=this[_0x2a12('0xa')](_0xf9173f,_0x31dc2f(_0xf9173f,'Yes'),_0x2d9530[_0x2a12('0x1')],'submit'),this[_0x2a12('0xe')]=this[_0x2a12('0xa')](_0xf9173f,_0x31dc2f(_0xf9173f,'No'),_0x2d9530[_0x2a12('0x4')],_0x2a12('0x4')),this[_0x2a12('0xb')](_0x2a12('0x5'),_0x31dc2f(_0xf9173f,'Are\x20you\x20sure?')),this['setTemplate']({'tag':_0x2a12('0x6'),'attributes':{'class':[_0x2a12('0xf')]},'children':[{'tag':_0x2a12('0x6'),'attributes':{'class':_0x2a12('0xc')},'children':[{'tag':'p','children':[{'text':_0x448a4d['to']('message')}]},{'tag':'div','attributes':{'class':_0x2a12('0xd')},'children':[this[_0x2a12('0x7')],this[_0x2a12('0xe')]]}]}]});}['_createButtonView'](_0x59b3eb,_0x125898,_0x48fa14,_0x2cdc4d){const _0x45e89d=new _0x491eb1(_0x59b3eb);return _0x45e89d[_0x2a12('0x10')]=_0x125898,_0x45e89d[_0x2a12('0x2')]=_0x48fa14,_0x45e89d[_0x2a12('0x9')]({'attributes':{'class':_0x2a12('0x0')+_0x2cdc4d}}),_0x45e89d['on']('execute',()=>this[_0x2a12('0x8')](_0x2cdc4d)),_0x45e89d;}}
23
+ const _0x4bfa=['message','fire','Yes','div','bindTemplate','ck-thread__remove-confirm','submit','submitView','extendTemplate','ck-thread__remove-confirm-actions','ck-thread__remove-confirm-','set','cancelView','check','cancel','icon','_createButtonView','Are\x20you\x20sure?'];(function(_0x153bc,_0x4bfa8f){const _0x51849e=function(_0x1190e6){while(--_0x1190e6){_0x153bc['push'](_0x153bc['shift']());}};_0x51849e(++_0x4bfa8f);}(_0x4bfa,0x64));const _0x5184=function(_0x153bc,_0x4bfa8f){_0x153bc=_0x153bc-0x0;let _0x51849e=_0x4bfa[_0x153bc];return _0x51849e;};import{View as _0x31f6d2,ButtonView as _0x1c7199}from'ckeditor5/src/ui';import{icons as _0x2a8935}from'ckeditor5/src/core';import{getTranslation as _0x413a9a}from'./common-translations';export default class h extends _0x31f6d2{constructor(_0x5a35a9){super(_0x5a35a9);const _0x2b0576=this[_0x5184('0xc')];this[_0x5184('0xf')]=this[_0x5184('0x6')](_0x5a35a9,_0x413a9a(_0x5a35a9,_0x5184('0xa')),_0x2a8935[_0x5184('0x3')],_0x5184('0xe')),this['cancelView']=this[_0x5184('0x6')](_0x5a35a9,_0x413a9a(_0x5a35a9,'No'),_0x2a8935[_0x5184('0x4')],_0x5184('0x4')),this[_0x5184('0x1')]('message',_0x413a9a(_0x5a35a9,_0x5184('0x7'))),this['setTemplate']({'tag':_0x5184('0xb'),'attributes':{'class':[_0x5184('0xd')]},'children':[{'tag':_0x5184('0xb'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x2b0576['to'](_0x5184('0x8'))}]},{'tag':_0x5184('0xb'),'attributes':{'class':_0x5184('0x11')},'children':[this[_0x5184('0xf')],this[_0x5184('0x2')]]}]}]});}['_createButtonView'](_0x46653c,_0x59b2c4,_0x2b8eb2,_0x507b52){const _0x3da840=new _0x1c7199(_0x46653c);return _0x3da840['label']=_0x59b2c4,_0x3da840[_0x5184('0x5')]=_0x2b8eb2,_0x3da840[_0x5184('0x10')]({'attributes':{'class':_0x5184('0x0')+_0x507b52}}),_0x3da840['on']('execute',()=>this[_0x5184('0x9')](_0x507b52)),_0x3da840;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c04=['dateTimeFormat','MM-dd-yyyy\x20hh:mma','invalid-date-time-format','\x27Today\x27\x20hh:mma','function','\x27Yesterday\x27\x20hh:mma','string'];(function(_0xfa29c8,_0x5c0411){const _0x11cd0c=function(_0x9f9349){while(--_0x9f9349){_0xfa29c8['push'](_0xfa29c8['shift']());}};_0x11cd0c(++_0x5c0411);}(_0x5c04,0xa5));const _0x11cd=function(_0xfa29c8,_0x5c0411){_0xfa29c8=_0xfa29c8-0x0;let _0x11cd0c=_0x5c04[_0xfa29c8];return _0x11cd0c;};import _0x487bd3 from'date-fns/format';import _0x5e0ebb from'date-fns/parseISO';import _0x1f9211 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2d779f}from'ckeditor5/src/utils';export default function E(_0x226888={}){if(void 0x0!==_0x226888[_0x11cd('0x3')]&&_0x11cd('0x0')!=typeof _0x226888['dateTimeFormat'])throw new _0x2d779f(_0x11cd('0x5'));return _0x16f622=>{const _0x46d877=_0x11cd('0x2')==typeof _0x16f622?_0x5e0ebb(_0x16f622):_0x16f622,_0x432ac8=new Date(),_0x569c98=_0x1f9211(_0x432ac8,_0x46d877);return _0x226888['dateTimeFormat']?_0x226888[_0x11cd('0x3')](_0x46d877):_0x487bd3(_0x46d877,0x0===_0x569c98?_0x11cd('0x6'):0x1===_0x569c98?_0x11cd('0x1'):_0x569c98<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x11cd('0x4'));};}
23
+ const _0x418d=['\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','string','function'];(function(_0x3b817b,_0x418d95){const _0x3a3a10=function(_0x23c9ff){while(--_0x23c9ff){_0x3b817b['push'](_0x3b817b['shift']());}};_0x3a3a10(++_0x418d95);}(_0x418d,0x15e));const _0x3a3a=function(_0x3b817b,_0x418d95){_0x3b817b=_0x3b817b-0x0;let _0x3a3a10=_0x418d[_0x3b817b];return _0x3a3a10;};import _0x2605aa from'date-fns/format';import _0x18a987 from'date-fns/parseISO';import _0x4b9652 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x243f23}from'ckeditor5/src/utils';export default function E(_0x57cb18={}){if(void 0x0!==_0x57cb18[_0x3a3a('0x1')]&&_0x3a3a('0x3')!=typeof _0x57cb18[_0x3a3a('0x1')])throw new _0x243f23('invalid-date-time-format');return _0x14081b=>{const _0x266ad3=_0x3a3a('0x2')==typeof _0x14081b?_0x18a987(_0x14081b):_0x14081b,_0x2d0a6c=new Date(),_0x52a1e0=_0x4b9652(_0x2d0a6c,_0x266ad3);return _0x57cb18['dateTimeFormat']?_0x57cb18['dateTimeFormat'](_0x266ad3):_0x2605aa(_0x266ad3,0x0===_0x52a1e0?'\x27Today\x27\x20hh:mma':0x1===_0x52a1e0?_0x3a3a('0x0'):_0x52a1e0<0x7?_0x3a3a('0x4'):_0x3a3a('0x5'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3946=['length','getClientRects','view','mapViewToDom','markerNameToElements','sort','mapper','map','name','values','domConverter','push'];(function(_0x5a6045,_0x3946af){const _0x234349=function(_0x828642){while(--_0x828642){_0x5a6045['push'](_0x5a6045['shift']());}};_0x234349(++_0x3946af);}(_0x3946,0x1e0));const _0x2343=function(_0x5a6045,_0x3946af){_0x5a6045=_0x5a6045-0x0;let _0x234349=_0x3946[_0x5a6045];return _0x234349;};import{first as _0x104d4b}from'ckeditor5/src/utils';export default function k(_0x55340f,_0x64519e){const _0x55bfa3=_0x55340f[_0x2343('0x6')][_0x2343('0x4')](_0x64519e[_0x2343('0x8')]);if(!_0x55bfa3)return null;const _0x3c6090=_0x104d4b(_0x55bfa3[_0x2343('0x9')]());return _0x55340f[_0x2343('0x2')][_0x2343('0xa')][_0x2343('0x3')](_0x3c6090)||null;}export function getAllMarkersDomElementsSorted(_0x263fc3,_0x5bd882){if(0x0===_0x5bd882['length'])return null;const _0x2171d6=[],_0x25816a=_0x263fc3[_0x2343('0x2')][_0x2343('0xa')];for(const _0x161d5e of _0x5bd882){const _0x45a899=_0x263fc3['mapper']['markerNameToElements'](_0x161d5e['name']);if(!_0x45a899)continue;const _0x3aea31=Array['from'](_0x45a899)[_0x2343('0x7')](_0xf74ec5=>_0x25816a['mapViewToDom'](_0xf74ec5))['filter'](_0x306480=>!!_0x306480);_0x2171d6[_0x2343('0xb')](..._0x3aea31);}if(0x0===_0x2171d6[_0x2343('0x0')])return null;const _0x51ec61=[];for(const _0x49cf6d of _0x2171d6){const _0x1f7ca0=_0x49cf6d[_0x2343('0x1')]()['item'](0x0);_0x1f7ca0&&_0x51ec61[_0x2343('0xb')]({'x':_0x1f7ca0['x'],'y':_0x1f7ca0['y'],'domElement':_0x49cf6d});}return 0x0===_0x51ec61['length']?null:(_0x51ec61[_0x2343('0x5')]((_0xb4b52,_0xf9a4d7)=>_0xb4b52['y']-_0xf9a4d7['y']||_0xb4b52['x']-_0xf9a4d7['x']),_0x51ec61[_0x2343('0x7')](_0x40375e=>_0x40375e['domElement']));}
23
+ const _0x4628=['getClientRects','view','push','filter','mapViewToDom','sort','name','item','map','domConverter','values','length','from','mapper'];(function(_0x588a32,_0x46287f){const _0x585e92=function(_0x487367){while(--_0x487367){_0x588a32['push'](_0x588a32['shift']());}};_0x585e92(++_0x46287f);}(_0x4628,0x1d8));const _0x585e=function(_0x588a32,_0x46287f){_0x588a32=_0x588a32-0x0;let _0x585e92=_0x4628[_0x588a32];return _0x585e92;};import{first as _0x33c7c8}from'ckeditor5/src/utils';export default function k(_0x16663a,_0x501e00){const _0x1f6a3c=_0x16663a['mapper']['markerNameToElements'](_0x501e00[_0x585e('0xa')]);if(!_0x1f6a3c)return null;const _0x3b6894=_0x33c7c8(_0x1f6a3c[_0x585e('0x0')]());return _0x16663a[_0x585e('0x5')]['domConverter']['mapViewToDom'](_0x3b6894)||null;}export function getAllMarkersDomElementsSorted(_0x490c33,_0x36d4c6){if(0x0===_0x36d4c6[_0x585e('0x1')])return null;const _0x148f52=[],_0x215149=_0x490c33[_0x585e('0x5')][_0x585e('0xd')];for(const _0x108821 of _0x36d4c6){const _0x2fab55=_0x490c33[_0x585e('0x3')]['markerNameToElements'](_0x108821[_0x585e('0xa')]);if(!_0x2fab55)continue;const _0x334c81=Array[_0x585e('0x2')](_0x2fab55)[_0x585e('0xc')](_0x33a3f7=>_0x215149[_0x585e('0x8')](_0x33a3f7))[_0x585e('0x7')](_0x107a40=>!!_0x107a40);_0x148f52[_0x585e('0x6')](..._0x334c81);}if(0x0===_0x148f52[_0x585e('0x1')])return null;const _0x4f0a22=[];for(const _0x1215f2 of _0x148f52){const _0x21f022=_0x1215f2[_0x585e('0x4')]()[_0x585e('0xb')](0x0);_0x21f022&&_0x4f0a22[_0x585e('0x6')]({'x':_0x21f022['x'],'y':_0x21f022['y'],'domElement':_0x1215f2});}return 0x0===_0x4f0a22[_0x585e('0x1')]?null:(_0x4f0a22[_0x585e('0x9')]((_0x308369,_0x1851ab)=>_0x308369['y']-_0x1851ab['y']||_0x308369['x']-_0x1851ab['x']),_0x4f0a22['map'](_0x577b68=>_0x577b68['domElement']));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f72=['string','isArray','toString','number','sign','sort','keys'];(function(_0x208436,_0x4f721a){const _0x5a5d53=function(_0x46eae0){while(--_0x46eae0){_0x208436['push'](_0x208436['shift']());}};_0x5a5d53(++_0x4f721a);}(_0x4f72,0xec));const _0x5a5d=function(_0x208436,_0x4f721a){_0x208436=_0x208436-0x0;let _0x5a5d53=_0x4f72[_0x208436];return _0x5a5d53;};export default function b(_0x2f2597){let _0x503bcd=0x0,_0xa33245=0x0;for(const _0x1c146a of g(_0x2f2597))_0x503bcd=(_0x503bcd<<0x5)-_0x503bcd+_0x1c146a,_0x503bcd&=_0x503bcd,[_0x503bcd,_0xa33245]=[_0xa33245,_0x503bcd];return O(_0x503bcd)+O(_0xa33245);}function*j(_0x23263b){_0x23263b?'boolean'==typeof _0x23263b?yield 0x1:Array[_0x5a5d('0x3')](_0x23263b)?yield*function*(_0x4c2f93){for(const _0x4897db of _0x4c2f93)yield*j(_0x4897db);}(_0x23263b):'object'==typeof _0x23263b?yield*g(_0x23263b):_0x5a5d('0x2')==typeof _0x23263b?yield*A(_0x23263b):_0x5a5d('0x5')==typeof _0x23263b&&(yield _0x23263b):yield 0x0;}function*g(_0x73524c){if(yield M('{'),_0x73524c){const _0x49f857=Object[_0x5a5d('0x1')](_0x73524c)[_0x5a5d('0x0')]();for(const _0x55cff0 of _0x49f857){yield*A(_0x55cff0),yield M(':');const _0x5a9c91=_0x73524c[_0x55cff0];yield*j(_0x5a9c91);}}yield M('}');}function*A(_0x24955d){yield M('\x22');for(const _0xe6a8ca of _0x24955d)yield M(_0xe6a8ca);yield M('\x22');}function M(_0x338fb7){return _0x338fb7['charCodeAt'](0x0);}function O(_0x29ea10){return(_0x29ea10*=Math[_0x5a5d('0x6')](_0x29ea10))[_0x5a5d('0x4')](0x24);}
23
+ const _0x17ef=['isArray','boolean','object','toString','keys','charCodeAt'];(function(_0x4b22c7,_0x17ef5a){const _0x4916fc=function(_0x5a9962){while(--_0x5a9962){_0x4b22c7['push'](_0x4b22c7['shift']());}};_0x4916fc(++_0x17ef5a);}(_0x17ef,0x19f));const _0x4916=function(_0x4b22c7,_0x17ef5a){_0x4b22c7=_0x4b22c7-0x0;let _0x4916fc=_0x17ef[_0x4b22c7];return _0x4916fc;};export default function b(_0x4b1742){let _0x2623f7=0x0,_0x233f0d=0x0;for(const _0x4ff715 of g(_0x4b1742))_0x2623f7=(_0x2623f7<<0x5)-_0x2623f7+_0x4ff715,_0x2623f7&=_0x2623f7,[_0x2623f7,_0x233f0d]=[_0x233f0d,_0x2623f7];return O(_0x2623f7)+O(_0x233f0d);}function*j(_0x55bdd4){_0x55bdd4?_0x4916('0x0')==typeof _0x55bdd4?yield 0x1:Array[_0x4916('0x5')](_0x55bdd4)?yield*function*(_0xb9c0d4){for(const _0x5a3d7e of _0xb9c0d4)yield*j(_0x5a3d7e);}(_0x55bdd4):_0x4916('0x1')==typeof _0x55bdd4?yield*g(_0x55bdd4):'string'==typeof _0x55bdd4?yield*A(_0x55bdd4):'number'==typeof _0x55bdd4&&(yield _0x55bdd4):yield 0x0;}function*g(_0x399d5f){if(yield M('{'),_0x399d5f){const _0x3e977b=Object[_0x4916('0x3')](_0x399d5f)['sort']();for(const _0x20a8d4 of _0x3e977b){yield*A(_0x20a8d4),yield M(':');const _0x2c6670=_0x399d5f[_0x20a8d4];yield*j(_0x2c6670);}}yield M('}');}function*A(_0x15d945){yield M('\x22');for(const _0x5df750 of _0x15d945)yield M(_0x5df750);yield M('\x22');}function M(_0x4ebf69){return _0x4ebf69[_0x4916('0x4')](0x0);}function O(_0x845f0e){return(_0x845f0e*=Math['sign'](_0x845f0e))[_0x4916('0x2')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d73=['replace','push','length','substring','slice','startsWith','join','indexOf','match','...','split'];(function(_0x3554ea,_0x4d733a){const _0x37090e=function(_0xa997bd){while(--_0xa997bd){_0x3554ea['push'](_0x3554ea['shift']());}};_0x37090e(++_0x4d733a);}(_0x4d73,0x144));const _0x3709=function(_0x3554ea,_0x4d733a){_0x3554ea=_0x3554ea-0x0;let _0x37090e=_0x4d73[_0x3554ea];return _0x37090e;};export default function z(_0x518109,{limit:_0x276112,suffix:_0x53e999=_0x3709('0x4')}){const _0x12347b=[];let _0x8b2ce6=0x0;const _0x91cf99=_0x518109[_0x3709('0x6')](/</g,'\x0a<')[_0x3709('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')[_0x3709('0x5')]('\x0a');for(let _0x2557fb=0x0;_0x2557fb<_0x91cf99['length'];_0x2557fb++){let _0x449af4=_0x91cf99[_0x2557fb];const _0x4a5d61=Z(_0x449af4);if(_0x449af4[_0x3709('0x0')]('<')){if(_0x8b2ce6>=_0x276112){const _0x1184ab=_0x449af4['match'](/[a-zA-Z]+/);if(!_0x1184ab){_0x91cf99[_0x2557fb]='';continue;}const _0xc8bebc=_0x1184ab[0x0];_0x449af4[_0x3709('0x0')]('</')?(_0x12347b[_0x3709('0x8')]&&(_0x449af4=''),_0x12347b['pop']()):(_0x12347b[_0x3709('0x7')](_0xc8bebc),_0x449af4='');}}else{if(_0x8b2ce6>=_0x276112)_0x449af4='';else{if(_0x8b2ce6+_0x4a5d61[_0x3709('0x8')]>=_0x276112){let _0x16441f=_0x276112-_0x8b2ce6;if('\x20'===_0x4a5d61[_0x16441f-0x1])_0x16441f--;else{const _0x4fd1e1=_0x4a5d61[_0x3709('0xa')](_0x16441f)[_0x3709('0x2')]('\x20');-0x1!==_0x4fd1e1?_0x16441f+=_0x4fd1e1:_0x16441f=_0x449af4[_0x3709('0x8')];}_0x449af4=_0x4a5d61[_0x3709('0xa')](0x0,_0x16441f)[_0x3709('0x1')]('')+_0x53e999,_0x8b2ce6=_0x276112;}else _0x8b2ce6+=_0x4a5d61[_0x3709('0x8')];}}_0x91cf99[_0x2557fb]=_0x449af4;}return _0x91cf99[_0x3709('0x1')]('\x0a')['replace'](/\n/g,'');}function Z(_0x5dd233){const _0x521e23=[];for(let _0x4e1dc1=0x0;_0x4e1dc1<_0x5dd233[_0x3709('0x8')];_0x4e1dc1++){const _0x15ff73=_0x5dd233[_0x3709('0x9')](_0x4e1dc1)[_0x3709('0x3')](/^&[a-z0-9#]+;/);if(_0x15ff73){const _0x5b46cf=_0x15ff73[0x0];_0x521e23[_0x3709('0x7')](_0x5b46cf),_0x4e1dc1+=_0x5b46cf[_0x3709('0x8')]-0x1;}else _0x521e23[_0x3709('0x7')](_0x5dd233[_0x4e1dc1]);}return _0x521e23;}
23
+ const _0x89f8=['split','indexOf','slice','substring','length','pop','replace','join','push','startsWith','...','match'];(function(_0x2c514b,_0x89f8ba){const _0x177d4c=function(_0x49a7ee){while(--_0x49a7ee){_0x2c514b['push'](_0x2c514b['shift']());}};_0x177d4c(++_0x89f8ba);}(_0x89f8,0x6f));const _0x177d=function(_0x2c514b,_0x89f8ba){_0x2c514b=_0x2c514b-0x0;let _0x177d4c=_0x89f8[_0x2c514b];return _0x177d4c;};export default function z(_0x3c04b3,{limit:_0x374691,suffix:_0x2c3c1b=_0x177d('0x7')}){const _0x1be301=[];let _0xa1f0f=0x0;const _0x137da1=_0x3c04b3['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x177d('0x3')](/^\n/g,'')[_0x177d('0x3')](/\n$/g,'')[_0x177d('0x9')]('\x0a');for(let _0x317ff2=0x0;_0x317ff2<_0x137da1['length'];_0x317ff2++){let _0x18402a=_0x137da1[_0x317ff2];const _0x579f78=Z(_0x18402a);if(_0x18402a['startsWith']('<')){if(_0xa1f0f>=_0x374691){const _0x3f9e4e=_0x18402a[_0x177d('0x8')](/[a-zA-Z]+/);if(!_0x3f9e4e){_0x137da1[_0x317ff2]='';continue;}const _0xd739eb=_0x3f9e4e[0x0];_0x18402a[_0x177d('0x6')]('</')?(_0x1be301[_0x177d('0x1')]&&(_0x18402a=''),_0x1be301[_0x177d('0x2')]()):(_0x1be301[_0x177d('0x5')](_0xd739eb),_0x18402a='');}}else{if(_0xa1f0f>=_0x374691)_0x18402a='';else{if(_0xa1f0f+_0x579f78[_0x177d('0x1')]>=_0x374691){let _0x50ba08=_0x374691-_0xa1f0f;if('\x20'===_0x579f78[_0x50ba08-0x1])_0x50ba08--;else{const _0x7eb00b=_0x579f78['slice'](_0x50ba08)[_0x177d('0xa')]('\x20');-0x1!==_0x7eb00b?_0x50ba08+=_0x7eb00b:_0x50ba08=_0x18402a['length'];}_0x18402a=_0x579f78[_0x177d('0xb')](0x0,_0x50ba08)[_0x177d('0x4')]('')+_0x2c3c1b,_0xa1f0f=_0x374691;}else _0xa1f0f+=_0x579f78[_0x177d('0x1')];}}_0x137da1[_0x317ff2]=_0x18402a;}return _0x137da1[_0x177d('0x4')]('\x0a')[_0x177d('0x3')](/\n/g,'');}function Z(_0x1703f7){const _0x56f1b1=[];for(let _0x4923bc=0x0;_0x4923bc<_0x1703f7[_0x177d('0x1')];_0x4923bc++){const _0x3a6886=_0x1703f7[_0x177d('0x0')](_0x4923bc)[_0x177d('0x8')](/^&[a-z0-9#]+;/);if(_0x3a6886){const _0x502291=_0x3a6886[0x0];_0x56f1b1[_0x177d('0x5')](_0x502291),_0x4923bc+=_0x502291[_0x177d('0x1')]-0x1;}else _0x56f1b1[_0x177d('0x5')](_0x1703f7[_0x4923bc]);}return _0x56f1b1;}