@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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": "0.0.0-nightly-20230710.1",
3
+ "version": "0.0.0-nightly-20230712.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/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20230710.1",
34
+ "ckeditor5": "0.0.0-nightly-20230712.0",
35
35
  "date-fns": "^2.17.0"
36
36
  },
37
37
  "engines": {
package/src/index.d.ts CHANGED
@@ -6,6 +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 sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
9
10
  export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
10
11
  export { default as CollaborationHistory } from './collaborationhistory';
11
12
  export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export*from'./suggestionstyles';import'./augmentation';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e06=['find','editors','document:write','clearForceDisabled','comment:write','no-permissions','collaboration.channelId','setPermissions','forceDisabled','has','comment:modify_all','CommentsRepository','commands','context','get','isEnabled','CommentsOnly','config','comment:admin','noPermissions','includes'];(function(_0x475e95,_0x2e0692){const _0x2b3bd3=function(_0x26db56){while(--_0x26db56){_0x475e95['push'](_0x475e95['shift']());}};_0x2b3bd3(++_0x2e0692);}(_0x2e06,0x190));const _0x2b3b=function(_0x475e95,_0x2e0692){_0x475e95=_0x475e95-0x0;let _0x2b3bd3=_0x2e06[_0x475e95];return _0x2b3bd3;};import{ContextPlugin as _0x5df5ca,Editor as _0x5b7722}from'ckeditor5/src/core';import{CKEditorError as _0x62882b}from'ckeditor5/src/utils';export default class n extends _0x5df5ca{static get['pluginName'](){return'Permissions';}[_0x2b3b('0x6')](_0x169dff,_0x13cd69){let _0x2ff319;if(_0x13cd69||(_0x13cd69=this[_0x2b3b('0xc')][_0x2b3b('0x10')][_0x2b3b('0xd')](_0x2b3b('0x5'))),this['context']['config'][_0x2b3b('0xd')](_0x2b3b('0x5'))==_0x13cd69?_0x2ff319=this[_0x2b3b('0xc')]:_0x2b3b('0x0')in this[_0x2b3b('0xc')]&&this['context'][_0x2b3b('0x0')]&&(_0x2ff319=this['context'][_0x2b3b('0x0')][_0x2b3b('0x14')](_0x28e39c=>_0x28e39c[_0x2b3b('0x10')]['get']('collaboration.channelId')==_0x13cd69)),!_0x2ff319)throw new _0x62882b('permissions-set-permissions-invalid-channel-id',null);const _0x199acd=_0x2ff319['plugins'],_0x279695=_0x199acd[_0x2b3b('0x8')]('CommentsRepository')?_0x199acd[_0x2b3b('0xd')](_0x2b3b('0xa')):void 0x0,_0x30acf2=_0x199acd[_0x2b3b('0x8')](_0x2b3b('0xf'))&&_0x199acd[_0x2b3b('0xd')]('CommentsOnly'),_0x1dbd27=_0x169dff[_0x2b3b('0x13')](_0x2b3b('0x1')),_0x4b8dc1=_0x169dff[_0x2b3b('0x13')](_0x2b3b('0x9')),_0x1c0f8f=_0x169dff[_0x2b3b('0x13')](_0x2b3b('0x11')),_0x1736eb=_0x169dff['includes'](_0x2b3b('0x3')),_0x5346d=_0x1736eb||_0x1c0f8f,_0x54fd46=_0x5346d||_0x4b8dc1,_0x5d9e77=_0x1dbd27||_0x5346d;(_0x30acf2&&(_0x30acf2[_0x2b3b('0xe')]=!_0x1dbd27&&_0x54fd46),_0x2ff319 instanceof _0x5b7722)&&(!(_0x1dbd27||_0x54fd46&&_0x279695)?_0x2ff319['enableReadOnlyMode'](_0x2b3b('0x4')):_0x2ff319['disableReadOnlyMode'](_0x2b3b('0x4')));if(_0x279695){_0x279695['setPermissions']({'admin':_0x1c0f8f,'modifyAll':_0x4b8dc1,'write':_0x1736eb,'resolve':_0x5d9e77},_0x13cd69);const _0x4e0c63=_0x2ff319 instanceof _0x5b7722&&_0x2ff319[_0x2b3b('0xb')]['get']('addCommentThread');_0x4e0c63&&(_0x5346d?_0x4e0c63[_0x2b3b('0x2')](_0x2b3b('0x12')):_0x4e0c63[_0x2b3b('0x7')](_0x2b3b('0x12')));}}}
23
+ const _0x38a8=['pluginName','enableReadOnlyMode','noPermissions','config','document:write','includes','disableReadOnlyMode','no-permissions','editors','CommentsOnly','permissions-set-permissions-invalid-channel-id','comment:modify_all','comment:write','CommentsRepository','context','addCommentThread','clearForceDisabled','setPermissions','get','find','has','commands','collaboration.channelId'];(function(_0x1e326b,_0x38a80d){const _0x40ecd9=function(_0x2921b8){while(--_0x2921b8){_0x1e326b['push'](_0x1e326b['shift']());}};_0x40ecd9(++_0x38a80d);}(_0x38a8,0xe2));const _0x40ec=function(_0x1e326b,_0x38a80d){_0x1e326b=_0x1e326b-0x0;let _0x40ecd9=_0x38a8[_0x1e326b];return _0x40ecd9;};import{ContextPlugin as _0xbea5d9,Editor as _0x38b363}from'ckeditor5/src/core';import{CKEditorError as _0x1343a5}from'ckeditor5/src/utils';export default class n extends _0xbea5d9{static get[_0x40ec('0x4')](){return'Permissions';}[_0x40ec('0x15')](_0x413635,_0x49eb85){let _0x422b87;if(_0x49eb85||(_0x49eb85=this['context'][_0x40ec('0x7')][_0x40ec('0x16')](_0x40ec('0x3'))),this[_0x40ec('0x12')][_0x40ec('0x7')][_0x40ec('0x16')]('collaboration.channelId')==_0x49eb85?_0x422b87=this[_0x40ec('0x12')]:'editors'in this['context']&&this[_0x40ec('0x12')][_0x40ec('0xc')]&&(_0x422b87=this[_0x40ec('0x12')][_0x40ec('0xc')][_0x40ec('0x0')](_0x3403a4=>_0x3403a4['config']['get'](_0x40ec('0x3'))==_0x49eb85)),!_0x422b87)throw new _0x1343a5(_0x40ec('0xe'),null);const _0x1f9b03=_0x422b87['plugins'],_0x5a7afd=_0x1f9b03[_0x40ec('0x1')](_0x40ec('0x11'))?_0x1f9b03[_0x40ec('0x16')](_0x40ec('0x11')):void 0x0,_0x220096=_0x1f9b03[_0x40ec('0x1')](_0x40ec('0xd'))&&_0x1f9b03[_0x40ec('0x16')](_0x40ec('0xd')),_0x294df3=_0x413635['includes'](_0x40ec('0x8')),_0x9b1082=_0x413635[_0x40ec('0x9')](_0x40ec('0xf')),_0x22332f=_0x413635['includes']('comment:admin'),_0x34a6ff=_0x413635[_0x40ec('0x9')](_0x40ec('0x10')),_0x17d165=_0x34a6ff||_0x22332f,_0x17b4fe=_0x17d165||_0x9b1082,_0x44975e=_0x294df3||_0x17d165;(_0x220096&&(_0x220096['isEnabled']=!_0x294df3&&_0x17b4fe),_0x422b87 instanceof _0x38b363)&&(!(_0x294df3||_0x17b4fe&&_0x5a7afd)?_0x422b87[_0x40ec('0x5')](_0x40ec('0xb')):_0x422b87[_0x40ec('0xa')](_0x40ec('0xb')));if(_0x5a7afd){_0x5a7afd['setPermissions']({'admin':_0x22332f,'modifyAll':_0x9b1082,'write':_0x34a6ff,'resolve':_0x44975e},_0x49eb85);const _0x3a20bf=_0x422b87 instanceof _0x38b363&&_0x422b87[_0x40ec('0x2')][_0x40ec('0x16')](_0x40ec('0x13'));_0x3a20bf&&(_0x17d165?_0x3a20bf[_0x40ec('0x14')](_0x40ec('0x6')):_0x3a20bf['forceDisabled'](_0x40ec('0x6')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x99e9=['notificationView','ck-user__icon','avatar','ck-user','extendTemplate','div','ck-user__img','push','content','url(\x27','ck-user__anonymous','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','name'];(function(_0x4502ea,_0x99e903){const _0x2a8208=function(_0x1131d6){while(--_0x1131d6){_0x4502ea['push'](_0x4502ea['shift']());}};_0x2a8208(++_0x99e903);}(_0x99e9,0x186));const _0x2a82=function(_0x4502ea,_0x99e903){_0x4502ea=_0x4502ea-0x0;let _0x2a8208=_0x99e9[_0x4502ea];return _0x2a8208;};import{View as _0x451b9a,IconView as _0x24fd19}from'ckeditor5/src/ui';import _0x592cfe from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x451b9a{constructor(_0x1f945a,_0x13019c,_0x31a5c5){super(_0x1f945a),this[_0x2a82('0xe')]=_0x13019c['name'],this[_0x2a82('0x0')]=null;const _0x544c8a=['ck',_0x2a82('0x6')];if(_0x13019c[_0x2a82('0xb')]&&_0x544c8a[_0x2a82('0x7')](_0x2a82('0xa')),_0x13019c[_0x2a82('0x2')]&&_0x544c8a[_0x2a82('0x7')]('ck-user__avatar'),_0x31a5c5){const _0x4c2cfa=new _0x24fd19();_0x4c2cfa[_0x2a82('0x4')]({'attributes':{'class':[_0x2a82('0x1')]}}),_0x4c2cfa[_0x2a82('0x8')]=_0x592cfe,this[_0x2a82('0x0')]={'tag':_0x2a82('0x5'),'attributes':{'class':['ck',_0x2a82('0xd')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x31a5c5},'children':[_0x4c2cfa]};}const _0x3e8784=[{'tag':_0x2a82('0x5'),'attributes':{'class':_0x544c8a,'style':{'background-image':_0x13019c[_0x2a82('0x2')]?_0x2a82('0x9')+_0x13019c[_0x2a82('0x2')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x13019c[_0x2a82('0x2')]?_0x2a82('0xc'):'ck\x20ck-user__name'},'children':[{'text':_0x13019c['initials']}]}];this[_0x2a82('0x0')]&&_0x3e8784[_0x2a82('0x7')](this[_0x2a82('0x0')]),this['setTemplate']({'tag':_0x2a82('0x5'),'attributes':{'class':['ck',_0x2a82('0x3')],'data-user-id':_0x13019c['id']},'children':_0x3e8784});}}
23
+ const _0x6bba=['ck-user__anonymous','setTemplate','notificationView','ck-user__img','url(\x27','initials','div','extendTemplate','ck-user__avatar','isAnonymous','push','content','ck\x20ck-user__name\x20ck-user__name--hidden','name','ck-user__icon','avatar'];(function(_0x42cc0b,_0x6bba6d){const _0x51dfa9=function(_0x15c3c2){while(--_0x15c3c2){_0x42cc0b['push'](_0x42cc0b['shift']());}};_0x51dfa9(++_0x6bba6d);}(_0x6bba,0x17c));const _0x51df=function(_0x42cc0b,_0x6bba6d){_0x42cc0b=_0x42cc0b-0x0;let _0x51dfa9=_0x6bba[_0x42cc0b];return _0x51dfa9;};import{View as _0x47b0a3,IconView as _0x19d924}from'ckeditor5/src/ui';import _0x4aeef8 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x47b0a3{constructor(_0x4142fc,_0x1dbacc,_0x44a410){super(_0x4142fc),this['name']=_0x1dbacc[_0x51df('0x1')],this['notificationView']=null;const _0x115d94=['ck',_0x51df('0x7')];if(_0x1dbacc[_0x51df('0xd')]&&_0x115d94[_0x51df('0xe')](_0x51df('0x4')),_0x1dbacc[_0x51df('0x3')]&&_0x115d94['push'](_0x51df('0xc')),_0x44a410){const _0x53cbea=new _0x19d924();_0x53cbea[_0x51df('0xb')]({'attributes':{'class':[_0x51df('0x2')]}}),_0x53cbea[_0x51df('0xf')]=_0x4aeef8,this[_0x51df('0x6')]={'tag':_0x51df('0xa'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x44a410},'children':[_0x53cbea]};}const _0x352674=[{'tag':_0x51df('0xa'),'attributes':{'class':_0x115d94,'style':{'background-image':_0x1dbacc['avatar']?_0x51df('0x8')+_0x1dbacc['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1dbacc[_0x51df('0x3')]?_0x51df('0x0'):'ck\x20ck-user__name'},'children':[{'text':_0x1dbacc[_0x51df('0x9')]}]}];this[_0x51df('0x6')]&&_0x352674[_0x51df('0xe')](this['notificationView']),this[_0x51df('0x5')]({'tag':_0x51df('0xa'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x1dbacc['id']},'children':_0x352674});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2496=['getMarkerClass','anonymous-user','licenseKey','ck-user__marker--','licenseKeyTrialLimit:revisions','define','useAnonymousUser','users','Anonymous','_getNextColor','toUpperCase','_myId','pluginName','users-me-already-defined','split','users-me-missing-user','_getInitial','users.colorsCount','ck-user__selection--','getUser','users-add-duplicated-id','destroy','_addAnonymousUser','licenseKeyInvalid','_id','users.anonymousUserId','isAnonymous','color','initials','info','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.','add','includes','Users','decorate','_locale','config','has','getSelectionClass','licenseKeyTrial','defineMe','addUser','invalid-license-key','avatar','trial-license-key-reached-limit-time','getOperationAuthor','length','_lastColor','trial-license-key-reached-limit-revisions','ck-user__bg-color--','context','_licenseKeyCheckInterval','licenseKeyValid','licenseKeyTrialLimit:operations','users-add-invalid-id','get','trial-license-key-reached-limit-changes','trim','name','licenseKeyTrialLimit:time','string','_isAnonymous','init'];(function(_0x79c5a9,_0x24961c){const _0x23ddc6=function(_0x45e950){while(--_0x45e950){_0x79c5a9['push'](_0x79c5a9['shift']());}};_0x23ddc6(++_0x24961c);}(_0x2496,0x83));const _0x23dd=function(_0x79c5a9,_0x24961c){_0x79c5a9=_0x79c5a9-0x0;let _0x23ddc6=_0x2496[_0x79c5a9];return _0x23ddc6;};import{ContextPlugin as _0x47c615}from'ckeditor5/src/core';import{Collection as _0x3d2b63,CKEditorError as _0x4426fb}from'ckeditor5/src/utils';import _0x1bba2e from'./permissions';import{getTranslation as _0x5e19f1}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x47c615{static get[_0x23dd('0x7')](){return _0x23dd('0x1c');}static get['requires'](){return[_0x1bba2e];}constructor(_0x10f4c6){super(_0x10f4c6),this[_0x23dd('0x2d')]['config']['define'](_0x23dd('0x14'),_0x23dd('0x3b')),this[_0x23dd('0x2d')][_0x23dd('0x1f')][_0x23dd('0x0')](_0x23dd('0xc'),0x8),this[_0x23dd('0x2')]=new _0x3d2b63(),this[_0x23dd('0x1e')]=_0x10f4c6['locale'],this[_0x23dd('0x2e')]=null,this[_0x23dd('0x2a')]=0x0,this[_0x23dd('0x6')]=null,this[_0x23dd('0x1d')](_0x23dd('0x28'));}[_0x23dd('0x39')](){const _0x1ea8b6=this[_0x23dd('0x2d')];this[_0x23dd('0x3c')]=_0x1ea8b6[_0x23dd('0x1f')][_0x23dd('0x32')](_0x23dd('0x3c'));const _0x288fcd=[_0x23dd('0x22'),'licenseKeyInvalid',_0x23dd('0x2f'),_0x23dd('0x30'),'licenseKeyTrialLimit:time',_0x23dd('0x3e')];this[_0x23dd('0x2e')]=setInterval(()=>{let _0x1a9b8d;for(const _0x3c849f in _0x1ea8b6){const _0x15e40d=_0x1ea8b6[_0x3c849f];if(_0x288fcd[_0x23dd('0x1b')](_0x15e40d)){delete _0x1ea8b6[_0x3c849f],_0x1a9b8d=_0x15e40d;break;}}if(_0x23dd('0x12')===_0x1a9b8d)throw clearInterval(this[_0x23dd('0x2e')]),new _0x4426fb(_0x23dd('0x25'),null);if('licenseKeyTrial'===_0x1a9b8d&&console[_0x23dd('0x18')](_0x23dd('0x19')),'licenseKeyTrialLimit:operations'===_0x1a9b8d)throw clearInterval(this[_0x23dd('0x2e')]),new _0x4426fb(_0x23dd('0x33'),null);if(_0x23dd('0x36')===_0x1a9b8d)throw clearInterval(this[_0x23dd('0x2e')]),new _0x4426fb(_0x23dd('0x27'),null);if(_0x23dd('0x3e')===_0x1a9b8d)throw clearInterval(this[_0x23dd('0x2e')]),new _0x4426fb(_0x23dd('0x2b'),null);'licenseKeyValid'===_0x1a9b8d&&clearInterval(this[_0x23dd('0x2e')]);},0x3e8),this[_0x23dd('0x11')]();}get['me'](){return null==this['_myId']?null:this[_0x23dd('0xe')](this['_myId']);}[_0x23dd('0x24')]({id:_0x3adc35,name:_0x22e36a,..._0x3fe250}){if(!_0x3adc35||_0x23dd('0x37')!=typeof _0x3adc35)throw new _0x4426fb(_0x23dd('0x31'));if(this[_0x23dd('0x2')][_0x23dd('0x20')](_0x3adc35))throw new _0x4426fb(_0x23dd('0xf'),null,{'id':_0x3adc35});const _0x2090b9={..._0x3fe250,'id':_0x3adc35,'name':a(this['_locale'],_0x22e36a),'color':this['_getNextColor']()};_0x2090b9[_0x23dd('0x35')]=a(this[_0x23dd('0x1e')],_0x2090b9[_0x23dd('0x35')]);const _0x4c9900=new User(_0x2090b9);return this[_0x23dd('0x2')][_0x23dd('0x1a')](_0x4c9900),_0x4c9900;}[_0x23dd('0xe')](_0x4c190a){return this[_0x23dd('0x2')]['get'](_0x4c190a);}[_0x23dd('0x1')](){const _0x3d16be=this[_0x23dd('0x2d')]['config'][_0x23dd('0x32')]('users.anonymousUserId');this[_0x23dd('0x6')]||this[_0x23dd('0x23')](_0x3d16be);}[_0x23dd('0x23')](_0x3e4800){if(this[_0x23dd('0x6')])throw new _0x4426fb(_0x23dd('0x8'),null);if(!this[_0x23dd('0xe')](_0x3e4800))throw new _0x4426fb(_0x23dd('0xa'),null);this[_0x23dd('0x6')]=_0x3e4800;}[_0x23dd('0x28')](){return this['me'];}['destroy'](){super[_0x23dd('0x10')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x23dd('0x4')](){const _0x330b73=this['context'][_0x23dd('0x1f')][_0x23dd('0x32')](_0x23dd('0xc'));return this[_0x23dd('0x2a')]>=_0x330b73&&(this[_0x23dd('0x2a')]=0x0),new u(this[_0x23dd('0x2a')]++);}[_0x23dd('0x11')](){const _0xf6deb6=this['context'][_0x23dd('0x1f')]['get'](_0x23dd('0x14'));this[_0x23dd('0x24')]({'id':_0xf6deb6,'name':_0x5e19f1(this[_0x23dd('0x1e')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x2bff8b){this['id']=_0x2bff8b['id'],this[_0x23dd('0x16')]=_0x2bff8b[_0x23dd('0x16')],this[_0x23dd('0x35')]=_0x2bff8b[_0x23dd('0x35')],this[_0x23dd('0x26')]=_0x2bff8b[_0x23dd('0x26')],this[_0x23dd('0x38')]=!0x1;}get[_0x23dd('0x15')](){return this['_isAnonymous'];}get[_0x23dd('0x17')](){const _0x38f10a=this[_0x23dd('0x35')][_0x23dd('0x9')]('\x20');return 0x1===_0x38f10a[_0x23dd('0x29')]?this[_0x23dd('0xb')](_0x38f10a[0x0]):this['_getInitial'](_0x38f10a[0x0])+this[_0x23dd('0xb')](_0x38f10a[_0x38f10a[_0x23dd('0x29')]-0x1]);}[_0x23dd('0xb')](_0x57fab0){return _0x57fab0['charAt'](0x0)[_0x23dd('0x5')]();}}function a(_0x2cac9e,_0xd8498e=''){return''==(_0xd8498e=_0xd8498e[_0x23dd('0x34')]())?_0x5e19f1(_0x2cac9e,_0x23dd('0x3')):_0xd8498e;}class u{constructor(_0x47bf51){this[_0x23dd('0x13')]=_0x47bf51;}['getBackgroundColorClass'](){return _0x23dd('0x2c')+this[_0x23dd('0x13')];}[_0x23dd('0x21')](){return _0x23dd('0xd')+this[_0x23dd('0x13')];}[_0x23dd('0x3a')](){return _0x23dd('0x3d')+this[_0x23dd('0x13')];}}
23
+ const _0x18d4=['_getInitial','destroy','licenseKeyInvalid','init','licenseKey','_isAnonymous','users-me-missing-user','trim','_id','licenseKeyTrial','anonymous-user','getOperationAuthor','pluginName','_locale','decorate','_licenseKeyCheckInterval','info','licenseKeyTrialLimit:revisions','includes','users-me-already-defined','Users','name','_myId','toUpperCase','color','define','trial-license-key-reached-limit-time','licenseKeyTrialLimit:operations','_addAnonymousUser','ck-user__marker--','_lastColor','ck-user__selection--','ck-user__bg-color--','avatar','get','addUser','config','trial-license-key-reached-limit-changes','_getNextColor','defineMe','length','getBackgroundColorClass','has','users.anonymousUserId','getUser','licenseKeyTrialLimit:time','context','getMarkerClass','Anonymous','users','users.colorsCount','useAnonymousUser','getSelectionClass','charAt','trial-license-key-reached-limit-revisions','licenseKeyValid'];(function(_0x1bf923,_0x18d453){const _0x5442a2=function(_0x292302){while(--_0x292302){_0x1bf923['push'](_0x1bf923['shift']());}};_0x5442a2(++_0x18d453);}(_0x18d4,0xd9));const _0x5442=function(_0x1bf923,_0x18d453){_0x1bf923=_0x1bf923-0x0;let _0x5442a2=_0x18d4[_0x1bf923];return _0x5442a2;};import{ContextPlugin as _0x12c85c}from'ckeditor5/src/core';import{Collection as _0x35e550,CKEditorError as _0x13778c}from'ckeditor5/src/utils';import _0x198217 from'./permissions';import{getTranslation as _0x30ace5}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x12c85c{static get[_0x5442('0x13')](){return _0x5442('0x1b');}static get['requires'](){return[_0x198217];}constructor(_0x2e09af){super(_0x2e09af),this['context'][_0x5442('0x2b')]['define'](_0x5442('0x32'),_0x5442('0x11')),this[_0x5442('0x35')][_0x5442('0x2b')][_0x5442('0x20')](_0x5442('0x1'),0x8),this[_0x5442('0x0')]=new _0x35e550(),this[_0x5442('0x14')]=_0x2e09af['locale'],this[_0x5442('0x16')]=null,this[_0x5442('0x25')]=0x0,this[_0x5442('0x1d')]=null,this[_0x5442('0x15')](_0x5442('0x12'));}[_0x5442('0xa')](){const _0x8094cd=this[_0x5442('0x35')];this[_0x5442('0xb')]=_0x8094cd['config'][_0x5442('0x29')](_0x5442('0xb'));const _0x21a7d2=[_0x5442('0x10'),_0x5442('0x9'),'licenseKeyValid',_0x5442('0x22'),'licenseKeyTrialLimit:time',_0x5442('0x18')];this[_0x5442('0x16')]=setInterval(()=>{let _0x109763;for(const _0x28453f in _0x8094cd){const _0x58b9ed=_0x8094cd[_0x28453f];if(_0x21a7d2[_0x5442('0x19')](_0x58b9ed)){delete _0x8094cd[_0x28453f],_0x109763=_0x58b9ed;break;}}if(_0x5442('0x9')===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c('invalid-license-key',null);if(_0x5442('0x10')===_0x109763&&console[_0x5442('0x17')]('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'===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x2c'),null);if(_0x5442('0x34')===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x21'),null);if('licenseKeyTrialLimit:revisions'===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x5'),null);_0x5442('0x6')===_0x109763&&clearInterval(this[_0x5442('0x16')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5442('0x1d')]?null:this[_0x5442('0x33')](this['_myId']);}[_0x5442('0x2a')]({id:_0x292d3a,name:_0xf8e077,..._0x5496c3}){if(!_0x292d3a||'string'!=typeof _0x292d3a)throw new _0x13778c('users-add-invalid-id');if(this[_0x5442('0x0')][_0x5442('0x31')](_0x292d3a))throw new _0x13778c('users-add-duplicated-id',null,{'id':_0x292d3a});const _0x292e07={..._0x5496c3,'id':_0x292d3a,'name':a(this[_0x5442('0x14')],_0xf8e077),'color':this[_0x5442('0x2d')]()};_0x292e07['name']=a(this['_locale'],_0x292e07[_0x5442('0x1c')]);const _0x4201d4=new User(_0x292e07);return this['users']['add'](_0x4201d4),_0x4201d4;}[_0x5442('0x33')](_0x30e031){return this[_0x5442('0x0')][_0x5442('0x29')](_0x30e031);}[_0x5442('0x2')](){const _0x579d26=this[_0x5442('0x35')][_0x5442('0x2b')][_0x5442('0x29')]('users.anonymousUserId');this['_myId']||this[_0x5442('0x2e')](_0x579d26);}['defineMe'](_0x2fb547){if(this[_0x5442('0x1d')])throw new _0x13778c(_0x5442('0x1a'),null);if(!this[_0x5442('0x33')](_0x2fb547))throw new _0x13778c(_0x5442('0xd'),null);this[_0x5442('0x1d')]=_0x2fb547;}[_0x5442('0x12')](){return this['me'];}[_0x5442('0x8')](){super[_0x5442('0x8')](),clearInterval(this[_0x5442('0x16')]);}['_getNextColor'](){const _0x210643=this[_0x5442('0x35')][_0x5442('0x2b')]['get'](_0x5442('0x1'));return this[_0x5442('0x25')]>=_0x210643&&(this[_0x5442('0x25')]=0x0),new u(this['_lastColor']++);}[_0x5442('0x23')](){const _0x3acf95=this['context'][_0x5442('0x2b')][_0x5442('0x29')](_0x5442('0x32'));this[_0x5442('0x2a')]({'id':_0x3acf95,'name':_0x30ace5(this[_0x5442('0x14')],_0x5442('0x37'))})[_0x5442('0xc')]=!0x0;}}export class User{constructor(_0x2cf011){this['id']=_0x2cf011['id'],this[_0x5442('0x1f')]=_0x2cf011[_0x5442('0x1f')],this[_0x5442('0x1c')]=_0x2cf011['name'],this['avatar']=_0x2cf011[_0x5442('0x28')],this[_0x5442('0xc')]=!0x1;}get['isAnonymous'](){return this[_0x5442('0xc')];}get['initials'](){const _0xdb48ff=this[_0x5442('0x1c')]['split']('\x20');return 0x1===_0xdb48ff['length']?this['_getInitial'](_0xdb48ff[0x0]):this[_0x5442('0x7')](_0xdb48ff[0x0])+this[_0x5442('0x7')](_0xdb48ff[_0xdb48ff[_0x5442('0x2f')]-0x1]);}[_0x5442('0x7')](_0x158c31){return _0x158c31[_0x5442('0x4')](0x0)[_0x5442('0x1e')]();}}function a(_0x1ab0ce,_0x133dac=''){return''==(_0x133dac=_0x133dac[_0x5442('0xe')]())?_0x30ace5(_0x1ab0ce,_0x5442('0x37')):_0x133dac;}class u{constructor(_0xd445a1){this['_id']=_0xd445a1;}[_0x5442('0x30')](){return _0x5442('0x27')+this['_id'];}[_0x5442('0x3')](){return _0x5442('0x26')+this[_0x5442('0xf')];}[_0x5442('0x36')](){return _0x5442('0x24')+this['_id'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x314c83,_0x486499){const t=_0x314c83['t'];switch(_0x486499){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(_0x15b2bd,_0x4f738c){const t=_0x15b2bd['t'];switch(_0x4f738c){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 _0x4962=['showConfirm','appendChild','render','registerChild','submit','cancel','element','isConfirm','set','remove','focus','fire','_removeConfirm','message','confirmView','once','cancelConfirm','destroy','deregisterChild'];(function(_0x55b97b,_0x496240){var _0xd4dba1=function(_0x28bcab){while(--_0x28bcab){_0x55b97b['push'](_0x55b97b['shift']());}};_0xd4dba1(++_0x496240);}(_0x4962,0x1cc));var _0xd4db=function(_0x55b97b,_0x496240){_0x55b97b=_0x55b97b-0x0;var _0xd4dba1=_0x4962[_0x55b97b];return _0xd4dba1;};import _0x27fc25 from'./confirmview';export default function m(_0x4a16b7){return class extends _0x4a16b7{[_0xd4db('0xf')](_0x12d928,_0x1c2129){return this[_0xd4db('0xa')]=new _0x27fc25(this['locale']),this[_0xd4db('0xa')][_0xd4db('0x11')](),this[_0xd4db('0xa')][_0xd4db('0x9')]=_0x12d928,this[_0xd4db('0xa')]['once'](_0xd4db('0x1'),()=>{this[_0xd4db('0x8')]();}),this[_0xd4db('0xa')][_0xd4db('0xb')](_0xd4db('0x0'),()=>{this[_0xd4db('0x8')]();}),_0x1c2129[_0xd4db('0x10')](this[_0xd4db('0xa')][_0xd4db('0x2')]),this[_0xd4db('0x12')](this[_0xd4db('0xa')]),this['element'][_0xd4db('0x6')](),this[_0xd4db('0x4')](_0xd4db('0x3'),!0x0),new Promise(_0x40662f=>this[_0xd4db('0xa')]['on']('submit',_0x40662f));}[_0xd4db('0xc')](){this[_0xd4db('0x3')]&&this[_0xd4db('0xa')][_0xd4db('0x7')](_0xd4db('0x1'));}[_0xd4db('0x8')](){this[_0xd4db('0x2')]&&this[_0xd4db('0xa')]&&this[_0xd4db('0xa')][_0xd4db('0x2')]&&(this[_0xd4db('0x2')][_0xd4db('0x6')](),this['confirmView'][_0xd4db('0x2')][_0xd4db('0x5')](),this[_0xd4db('0xe')](this[_0xd4db('0xa')]),this['isConfirm']=!0x1,this[_0xd4db('0xa')][_0xd4db('0xd')](),this[_0xd4db('0xa')]=void 0x0);}};}
23
+ var _0x17aa=['element','cancel','appendChild','showConfirm','remove','_removeConfirm','submit','focus','cancelConfirm','deregisterChild','isConfirm','confirmView','message','once','set'];(function(_0x56fea4,_0x17aa73){var _0x3e5a78=function(_0x33fafc){while(--_0x33fafc){_0x56fea4['push'](_0x56fea4['shift']());}};_0x3e5a78(++_0x17aa73);}(_0x17aa,0x1d1));var _0x3e5a=function(_0x56fea4,_0x17aa73){_0x56fea4=_0x56fea4-0x0;var _0x3e5a78=_0x17aa[_0x56fea4];return _0x3e5a78;};import _0x2cc246 from'./confirmview';export default function m(_0x1f86d8){return class extends _0x1f86d8{[_0x3e5a('0x3')](_0x49815d,_0x193056){return this['confirmView']=new _0x2cc246(this['locale']),this[_0x3e5a('0xb')]['render'](),this['confirmView'][_0x3e5a('0xc')]=_0x49815d,this[_0x3e5a('0xb')]['once'](_0x3e5a('0x1'),()=>{this[_0x3e5a('0x5')]();}),this['confirmView'][_0x3e5a('0xd')](_0x3e5a('0x6'),()=>{this[_0x3e5a('0x5')]();}),_0x193056[_0x3e5a('0x2')](this[_0x3e5a('0xb')][_0x3e5a('0x0')]),this['registerChild'](this[_0x3e5a('0xb')]),this[_0x3e5a('0x0')][_0x3e5a('0x7')](),this[_0x3e5a('0xe')](_0x3e5a('0xa'),!0x0),new Promise(_0x50500e=>this[_0x3e5a('0xb')]['on']('submit',_0x50500e));}[_0x3e5a('0x8')](){this[_0x3e5a('0xa')]&&this[_0x3e5a('0xb')]['fire'](_0x3e5a('0x1'));}['_removeConfirm'](){this[_0x3e5a('0x0')]&&this['confirmView']&&this[_0x3e5a('0xb')][_0x3e5a('0x0')]&&(this[_0x3e5a('0x0')][_0x3e5a('0x7')](),this[_0x3e5a('0xb')][_0x3e5a('0x0')][_0x3e5a('0x4')](),this[_0x3e5a('0x9')](this['confirmView']),this[_0x3e5a('0xa')]=!0x1,this[_0x3e5a('0xb')]['destroy'](),this[_0x3e5a('0xb')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b87=['_createButtonView','Are\x20you\x20sure?','ck-thread__remove-confirm-inner','ck-thread__remove-confirm-','execute','message','cancelView','label','check','Yes','icon','fire','set','ck-thread__remove-confirm','submitView','ck-thread__remove-confirm-actions','cancel','div'];(function(_0x2ce56d,_0x1b87b4){const _0x44d9cd=function(_0xbcdb9e){while(--_0xbcdb9e){_0x2ce56d['push'](_0x2ce56d['shift']());}};_0x44d9cd(++_0x1b87b4);}(_0x1b87,0x120));const _0x44d9=function(_0x2ce56d,_0x1b87b4){_0x2ce56d=_0x2ce56d-0x0;let _0x44d9cd=_0x1b87[_0x2ce56d];return _0x44d9cd;};import{View as _0x1c5881,ButtonView as _0x149845}from'ckeditor5/src/ui';import{icons as _0x457237}from'ckeditor5/src/core';import{getTranslation as _0x515b3e}from'./common-translations';export default class h extends _0x1c5881{constructor(_0x1934d9){super(_0x1934d9);const _0x2b7574=this['bindTemplate'];this[_0x44d9('0xe')]=this[_0x44d9('0x0')](_0x1934d9,_0x515b3e(_0x1934d9,_0x44d9('0x9')),_0x457237[_0x44d9('0x8')],'submit'),this[_0x44d9('0x6')]=this['_createButtonView'](_0x1934d9,_0x515b3e(_0x1934d9,'No'),_0x457237[_0x44d9('0x10')],_0x44d9('0x10')),this[_0x44d9('0xc')](_0x44d9('0x5'),_0x515b3e(_0x1934d9,_0x44d9('0x1'))),this['setTemplate']({'tag':'div','attributes':{'class':[_0x44d9('0xd')]},'children':[{'tag':_0x44d9('0x11'),'attributes':{'class':_0x44d9('0x2')},'children':[{'tag':'p','children':[{'text':_0x2b7574['to'](_0x44d9('0x5'))}]},{'tag':_0x44d9('0x11'),'attributes':{'class':_0x44d9('0xf')},'children':[this[_0x44d9('0xe')],this[_0x44d9('0x6')]]}]}]});}[_0x44d9('0x0')](_0xe82c54,_0x4b4c38,_0x27efda,_0x244814){const _0x30db39=new _0x149845(_0xe82c54);return _0x30db39[_0x44d9('0x7')]=_0x4b4c38,_0x30db39[_0x44d9('0xa')]=_0x27efda,_0x30db39['extendTemplate']({'attributes':{'class':_0x44d9('0x3')+_0x244814}}),_0x30db39['on'](_0x44d9('0x4'),()=>this[_0x44d9('0xb')](_0x244814)),_0x30db39;}}
23
+ const _0x4e68=['Yes','execute','ck-thread__remove-confirm','label','div','bindTemplate','Are\x20you\x20sure?','cancel','icon','submitView','setTemplate','message','cancelView','submit','ck-thread__remove-confirm-actions','ck-thread__remove-confirm-inner','extendTemplate','_createButtonView'];(function(_0x5263cd,_0x4e683b){const _0x3dd54a=function(_0x60c65d){while(--_0x60c65d){_0x5263cd['push'](_0x5263cd['shift']());}};_0x3dd54a(++_0x4e683b);}(_0x4e68,0x1be));const _0x3dd5=function(_0x5263cd,_0x4e683b){_0x5263cd=_0x5263cd-0x0;let _0x3dd54a=_0x4e68[_0x5263cd];return _0x3dd54a;};import{View as _0x1b0303,ButtonView as _0x174590}from'ckeditor5/src/ui';import{icons as _0x249ff7}from'ckeditor5/src/core';import{getTranslation as _0x24ecb9}from'./common-translations';export default class h extends _0x1b0303{constructor(_0x486c3e){super(_0x486c3e);const _0xbe352=this[_0x3dd5('0x9')];this[_0x3dd5('0xd')]=this[_0x3dd5('0x3')](_0x486c3e,_0x24ecb9(_0x486c3e,_0x3dd5('0x4')),_0x249ff7['check'],_0x3dd5('0x11')),this['cancelView']=this['_createButtonView'](_0x486c3e,_0x24ecb9(_0x486c3e,'No'),_0x249ff7[_0x3dd5('0xb')],'cancel'),this['set'](_0x3dd5('0xf'),_0x24ecb9(_0x486c3e,_0x3dd5('0xa'))),this[_0x3dd5('0xe')]({'tag':'div','attributes':{'class':[_0x3dd5('0x6')]},'children':[{'tag':_0x3dd5('0x8'),'attributes':{'class':_0x3dd5('0x1')},'children':[{'tag':'p','children':[{'text':_0xbe352['to'](_0x3dd5('0xf'))}]},{'tag':_0x3dd5('0x8'),'attributes':{'class':_0x3dd5('0x0')},'children':[this['submitView'],this[_0x3dd5('0x10')]]}]}]});}[_0x3dd5('0x3')](_0x506cfe,_0x57d551,_0x447c52,_0x280200){const _0x6dbf3c=new _0x174590(_0x506cfe);return _0x6dbf3c[_0x3dd5('0x7')]=_0x57d551,_0x6dbf3c[_0x3dd5('0xc')]=_0x447c52,_0x6dbf3c[_0x3dd5('0x2')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x280200}}),_0x6dbf3c['on'](_0x3dd5('0x5'),()=>this['fire'](_0x280200)),_0x6dbf3c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bec=['\x27Last\x27\x20EEEE\x20hh:mma','function','string','dateTimeFormat','invalid-date-time-format'];(function(_0x30b504,_0x1becbb){const _0x37bcbc=function(_0x5c7ac2){while(--_0x5c7ac2){_0x30b504['push'](_0x30b504['shift']());}};_0x37bcbc(++_0x1becbb);}(_0x1bec,0x130));const _0x37bc=function(_0x30b504,_0x1becbb){_0x30b504=_0x30b504-0x0;let _0x37bcbc=_0x1bec[_0x30b504];return _0x37bcbc;};import _0x4e5c2f from'date-fns/format';import _0x180f0a from'date-fns/parseISO';import _0x18f39f from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x36720}from'ckeditor5/src/utils';export default function E(_0x2d5df8={}){if(void 0x0!==_0x2d5df8[_0x37bc('0x4')]&&_0x37bc('0x2')!=typeof _0x2d5df8[_0x37bc('0x4')])throw new _0x36720(_0x37bc('0x0'));return _0x124e5b=>{const _0x5aef2c=_0x37bc('0x3')==typeof _0x124e5b?_0x180f0a(_0x124e5b):_0x124e5b,_0x4ebc20=new Date(),_0x192179=_0x18f39f(_0x4ebc20,_0x5aef2c);return _0x2d5df8['dateTimeFormat']?_0x2d5df8[_0x37bc('0x4')](_0x5aef2c):_0x4e5c2f(_0x5aef2c,0x0===_0x192179?'\x27Today\x27\x20hh:mma':0x1===_0x192179?'\x27Yesterday\x27\x20hh:mma':_0x192179<0x7?_0x37bc('0x1'):'MM-dd-yyyy\x20hh:mma');};}
23
+ const _0x2bf8=['dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','function'];(function(_0x32953e,_0x2bf8eb){const _0x27b8b0=function(_0x338c00){while(--_0x338c00){_0x32953e['push'](_0x32953e['shift']());}};_0x27b8b0(++_0x2bf8eb);}(_0x2bf8,0x138));const _0x27b8=function(_0x32953e,_0x2bf8eb){_0x32953e=_0x32953e-0x0;let _0x27b8b0=_0x2bf8[_0x32953e];return _0x27b8b0;};import _0x6dab38 from'date-fns/format';import _0x54a0b9 from'date-fns/parseISO';import _0x40a12d from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4830f7}from'ckeditor5/src/utils';export default function E(_0x57fb6d={}){if(void 0x0!==_0x57fb6d[_0x27b8('0x3')]&&_0x27b8('0x2')!=typeof _0x57fb6d[_0x27b8('0x3')])throw new _0x4830f7('invalid-date-time-format');return _0x5c52dc=>{const _0x3459ab='string'==typeof _0x5c52dc?_0x54a0b9(_0x5c52dc):_0x5c52dc,_0x384239=new Date(),_0x377e05=_0x40a12d(_0x384239,_0x3459ab);return _0x57fb6d['dateTimeFormat']?_0x57fb6d['dateTimeFormat'](_0x3459ab):_0x6dab38(_0x3459ab,0x0===_0x377e05?_0x27b8('0x1'):0x1===_0x377e05?_0x27b8('0x0'):_0x377e05<0x7?_0x27b8('0x4'):'MM-dd-yyyy\x20hh:mma');};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1baa=['markerNameToElements','length','values','push','view','name','mapViewToDom','map','domConverter','sort','from','item'];(function(_0x47d898,_0x1baae2){const _0x151759=function(_0x320902){while(--_0x320902){_0x47d898['push'](_0x47d898['shift']());}};_0x151759(++_0x1baae2);}(_0x1baa,0x192));const _0x1517=function(_0x47d898,_0x1baae2){_0x47d898=_0x47d898-0x0;let _0x151759=_0x1baa[_0x47d898];return _0x151759;};import{first as _0x59f577}from'ckeditor5/src/utils';export default function k(_0x3cffd8,_0x23c4ee){const _0x2ec4e9=_0x3cffd8['mapper'][_0x1517('0x6')](_0x23c4ee[_0x1517('0xb')]);if(!_0x2ec4e9)return null;const _0x558e02=_0x59f577(_0x2ec4e9[_0x1517('0x8')]());return _0x3cffd8[_0x1517('0xa')][_0x1517('0x2')][_0x1517('0x0')](_0x558e02)||null;}export function getAllMarkersDomElementsSorted(_0x246a3f,_0x3f4cef){if(0x0===_0x3f4cef[_0x1517('0x7')])return null;const _0x3a115f=[],_0x5e83e3=_0x246a3f[_0x1517('0xa')][_0x1517('0x2')];for(const _0x4ebcf3 of _0x3f4cef){const _0x36192d=_0x246a3f['mapper'][_0x1517('0x6')](_0x4ebcf3['name']);if(!_0x36192d)continue;const _0x2ac2c1=Array[_0x1517('0x4')](_0x36192d)[_0x1517('0x1')](_0x2b580d=>_0x5e83e3[_0x1517('0x0')](_0x2b580d))['filter'](_0x2bcbf1=>!!_0x2bcbf1);_0x3a115f[_0x1517('0x9')](..._0x2ac2c1);}if(0x0===_0x3a115f[_0x1517('0x7')])return null;const _0x293067=[];for(const _0x1f97b3 of _0x3a115f){const _0x580853=_0x1f97b3['getClientRects']()[_0x1517('0x5')](0x0);_0x580853&&_0x293067[_0x1517('0x9')]({'x':_0x580853['x'],'y':_0x580853['y'],'domElement':_0x1f97b3});}return 0x0===_0x293067[_0x1517('0x7')]?null:(_0x293067[_0x1517('0x3')]((_0xf8bd82,_0x2f7617)=>_0xf8bd82['y']-_0x2f7617['y']||_0xf8bd82['x']-_0x2f7617['x']),_0x293067[_0x1517('0x1')](_0x2429ee=>_0x2429ee['domElement']));}
23
+ const _0x9703=['length','filter','values','domConverter','from','sort','item','view','map','domElement','markerNameToElements','push','mapViewToDom'];(function(_0x12f144,_0x970333){const _0x439033=function(_0x568977){while(--_0x568977){_0x12f144['push'](_0x12f144['shift']());}};_0x439033(++_0x970333);}(_0x9703,0xb3));const _0x4390=function(_0x12f144,_0x970333){_0x12f144=_0x12f144-0x0;let _0x439033=_0x9703[_0x12f144];return _0x439033;};import{first as _0x3df303}from'ckeditor5/src/utils';export default function k(_0x1b32ea,_0x56becb){const _0x1f6209=_0x1b32ea['mapper'][_0x4390('0x0')](_0x56becb['name']);if(!_0x1f6209)return null;const _0x2f4e75=_0x3df303(_0x1f6209[_0x4390('0x5')]());return _0x1b32ea[_0x4390('0xa')]['domConverter'][_0x4390('0x2')](_0x2f4e75)||null;}export function getAllMarkersDomElementsSorted(_0x1c8071,_0x40776f){if(0x0===_0x40776f[_0x4390('0x3')])return null;const _0x1bc95e=[],_0x47fd02=_0x1c8071[_0x4390('0xa')][_0x4390('0x6')];for(const _0x3d857b of _0x40776f){const _0x1042fe=_0x1c8071['mapper']['markerNameToElements'](_0x3d857b['name']);if(!_0x1042fe)continue;const _0x30dfa1=Array[_0x4390('0x7')](_0x1042fe)[_0x4390('0xb')](_0xfea45=>_0x47fd02[_0x4390('0x2')](_0xfea45))[_0x4390('0x4')](_0x3e031f=>!!_0x3e031f);_0x1bc95e['push'](..._0x30dfa1);}if(0x0===_0x1bc95e[_0x4390('0x3')])return null;const _0x5e9279=[];for(const _0x24a665 of _0x1bc95e){const _0x1cfe59=_0x24a665['getClientRects']()[_0x4390('0x9')](0x0);_0x1cfe59&&_0x5e9279[_0x4390('0x1')]({'x':_0x1cfe59['x'],'y':_0x1cfe59['y'],'domElement':_0x24a665});}return 0x0===_0x5e9279['length']?null:(_0x5e9279[_0x4390('0x8')]((_0x45ba6d,_0x1e7285)=>_0x45ba6d['y']-_0x1e7285['y']||_0x45ba6d['x']-_0x1e7285['x']),_0x5e9279['map'](_0x452e91=>_0x452e91[_0x4390('0xc')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2034=['sign','string','number','sort','toString','isArray','charCodeAt','object','keys'];(function(_0x4c3c8d,_0x20340d){const _0x97ee40=function(_0x3191f4){while(--_0x3191f4){_0x4c3c8d['push'](_0x4c3c8d['shift']());}};_0x97ee40(++_0x20340d);}(_0x2034,0x1a4));const _0x97ee=function(_0x4c3c8d,_0x20340d){_0x4c3c8d=_0x4c3c8d-0x0;let _0x97ee40=_0x2034[_0x4c3c8d];return _0x97ee40;};export default function b(_0x17a45d){let _0x1a88e6=0x0,_0xb713c2=0x0;for(const _0x43f886 of g(_0x17a45d))_0x1a88e6=(_0x1a88e6<<0x5)-_0x1a88e6+_0x43f886,_0x1a88e6&=_0x1a88e6,[_0x1a88e6,_0xb713c2]=[_0xb713c2,_0x1a88e6];return O(_0x1a88e6)+O(_0xb713c2);}function*j(_0x469e79){_0x469e79?'boolean'==typeof _0x469e79?yield 0x1:Array[_0x97ee('0x8')](_0x469e79)?yield*function*(_0x355665){for(const _0x2e2dae of _0x355665)yield*j(_0x2e2dae);}(_0x469e79):_0x97ee('0x1')==typeof _0x469e79?yield*g(_0x469e79):_0x97ee('0x4')==typeof _0x469e79?yield*A(_0x469e79):_0x97ee('0x5')==typeof _0x469e79&&(yield _0x469e79):yield 0x0;}function*g(_0x2bc4d3){if(yield M('{'),_0x2bc4d3){const _0x3b6e84=Object[_0x97ee('0x2')](_0x2bc4d3)[_0x97ee('0x6')]();for(const _0x16fa5c of _0x3b6e84){yield*A(_0x16fa5c),yield M(':');const _0x4c31b9=_0x2bc4d3[_0x16fa5c];yield*j(_0x4c31b9);}}yield M('}');}function*A(_0x4b2dec){yield M('\x22');for(const _0x94523f of _0x4b2dec)yield M(_0x94523f);yield M('\x22');}function M(_0x3d26cd){return _0x3d26cd[_0x97ee('0x0')](0x0);}function O(_0x4c850a){return(_0x4c850a*=Math[_0x97ee('0x3')](_0x4c850a))[_0x97ee('0x7')](0x24);}
23
+ const _0x57a3=['string','keys','sign','object','sort','toString'];(function(_0x2d03e6,_0x57a3f1){const _0x563786=function(_0x2d0dea){while(--_0x2d0dea){_0x2d03e6['push'](_0x2d03e6['shift']());}};_0x563786(++_0x57a3f1);}(_0x57a3,0x121));const _0x5637=function(_0x2d03e6,_0x57a3f1){_0x2d03e6=_0x2d03e6-0x0;let _0x563786=_0x57a3[_0x2d03e6];return _0x563786;};export default function b(_0x19fa2c){let _0x2d9e44=0x0,_0x3928e0=0x0;for(const _0x8ba55a of g(_0x19fa2c))_0x2d9e44=(_0x2d9e44<<0x5)-_0x2d9e44+_0x8ba55a,_0x2d9e44&=_0x2d9e44,[_0x2d9e44,_0x3928e0]=[_0x3928e0,_0x2d9e44];return O(_0x2d9e44)+O(_0x3928e0);}function*j(_0x27af63){_0x27af63?'boolean'==typeof _0x27af63?yield 0x1:Array['isArray'](_0x27af63)?yield*function*(_0x552911){for(const _0x26cf89 of _0x552911)yield*j(_0x26cf89);}(_0x27af63):_0x5637('0x2')==typeof _0x27af63?yield*g(_0x27af63):_0x5637('0x5')==typeof _0x27af63?yield*A(_0x27af63):'number'==typeof _0x27af63&&(yield _0x27af63):yield 0x0;}function*g(_0x35ad88){if(yield M('{'),_0x35ad88){const _0x40340d=Object[_0x5637('0x0')](_0x35ad88)[_0x5637('0x3')]();for(const _0x2e6d19 of _0x40340d){yield*A(_0x2e6d19),yield M(':');const _0x422939=_0x35ad88[_0x2e6d19];yield*j(_0x422939);}}yield M('}');}function*A(_0x175915){yield M('\x22');for(const _0xa61872 of _0x175915)yield M(_0xa61872);yield M('\x22');}function M(_0x4c06a2){return _0x4c06a2['charCodeAt'](0x0);}function O(_0x1d7ded){return(_0x1d7ded*=Math[_0x5637('0x1')](_0x1d7ded))[_0x5637('0x4')](0x24);}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @module collaboration-core/utils/common-translations
3
+ */
4
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core';
5
+ /**
6
+ * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
7
+ *
8
+ * @param editor The instance of the source editor.
9
+ * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
10
+ */
11
+ export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1d3b=['concat','has','toolbar','find','plugins','set','names','WordCount','includes','initialData','constructor','removePlugins','function','DocumentOutline','WProofreader','map','get','requires','name','config','pluginName','every','filter','builtinPlugins','WebSocketGateway','extraPlugins','rootsAttributes'];(function(_0x5bd21f,_0x1d3bae){const _0x24deb5=function(_0x148276){while(--_0x148276){_0x5bd21f['push'](_0x5bd21f['shift']());}};_0x24deb5(++_0x1d3bae);}(_0x1d3b,0x1e6));const _0x24de=function(_0x5bd21f,_0x1d3bae){_0x5bd21f=_0x5bd21f-0x0;let _0x24deb5=_0x1d3b[_0x5bd21f];return _0x24deb5;};const w=[_0x24de('0x9'),'context',_0x24de('0x2'),_0x24de('0x1a')],W=[_0x24de('0x18'),'RevisionTracker','Autosave',_0x24de('0x7'),_0x24de('0xd'),_0x24de('0xe')];function v(_0x2bb0b3,_0x350562,_0x6b1d2b=[]){const _0x40025a=_0x24de('0xc')==typeof _0x2bb0b3?_0x2bb0b3[_0x24de('0x14')]||_0x2bb0b3[_0x24de('0x12')]:_0x2bb0b3;if(_0x350562[_0x24de('0x1')](_0x40025a))return _0x350562[_0x24de('0x10')](_0x40025a);if(_0x350562[_0x24de('0x5')](_0x40025a,!0x0),_0x40025a&&W[_0x24de('0x0')](_0x6b1d2b)[_0x24de('0x8')](_0x40025a))return _0x350562[_0x24de('0x5')](_0x40025a,!0x1),!0x1;if(!_0x2bb0b3[_0x24de('0x11')])return _0x350562[_0x24de('0x5')](_0x40025a,!0x0),!0x0;const _0x3c4c65=_0x2bb0b3[_0x24de('0x11')][_0x24de('0x15')](_0x575a01=>v(_0x575a01,_0x350562,_0x6b1d2b));return _0x350562[_0x24de('0x5')](_0x40025a,_0x3c4c65),_0x3c4c65;}export default function D(_0x220a9e,_0x36885f){const _0x40fcbd={};for(const _0x83dfa0 of _0x220a9e[_0x24de('0x13')][_0x24de('0x6')]())w[_0x24de('0x8')](_0x83dfa0)||(_0x40fcbd[_0x83dfa0]=_0x220a9e[_0x24de('0x13')][_0x24de('0x10')](_0x83dfa0));const _0x49369a=_0x40fcbd[_0x24de('0x4')]||[],_0x331bb0=_0x220a9e[_0x24de('0xa')][_0x24de('0x17')]||[],_0x16ed8c=_0x49369a['length']?_0x49369a:_0x331bb0,_0xa01185=_0x40fcbd[_0x24de('0x19')]||[];delete _0x40fcbd[_0x24de('0x19')];const _0x25b6d9=_0x40fcbd[_0x24de('0xb')]||[];delete _0x40fcbd[_0x24de('0xb')];const _0x5c79cf=_0x220a9e['_context'][_0x24de('0x13')][_0x24de('0x10')](_0x24de('0x4'))||[],_0x381344=_0x16ed8c['concat'](_0xa01185)[_0x24de('0x0')](_0x5c79cf)[_0x24de('0xf')](_0x38c483=>'string'==typeof _0x38c483?_0x331bb0[_0x24de('0x3')](_0x35772a=>_0x35772a[_0x24de('0x14')]==_0x38c483):_0x38c483)[_0x24de('0x16')](_0x1ef8d7=>!_0x25b6d9[_0x24de('0x8')](_0x1ef8d7)),_0x29e867=Array['from'](new Set(_0x381344)),_0x3f02f5=new Map();return _0x40fcbd[_0x24de('0x4')]=_0x29e867[_0x24de('0x16')](_0x344827=>v(_0x344827,_0x3f02f5,_0x36885f)),_0x40fcbd;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4137=['pop','join','push','startsWith','replace','length','match','indexOf','split','slice'];(function(_0x537e90,_0x4137c9){const _0x356842=function(_0x182ea4){while(--_0x182ea4){_0x537e90['push'](_0x537e90['shift']());}};_0x356842(++_0x4137c9);}(_0x4137,0x1c3));const _0x3568=function(_0x537e90,_0x4137c9){_0x537e90=_0x537e90-0x0;let _0x356842=_0x4137[_0x537e90];return _0x356842;};export default function z(_0x41c9bd,{limit:_0x488bfb,suffix:_0x149c02='...'}){const _0x18c678=[];let _0x54c93c=0x0;const _0x5226fb=_0x41c9bd['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x3568('0x3')](/^\n/g,'')['replace'](/\n$/g,'')[_0x3568('0x7')]('\x0a');for(let _0x393fee=0x0;_0x393fee<_0x5226fb[_0x3568('0x4')];_0x393fee++){let _0x1ba834=_0x5226fb[_0x393fee];const _0x3d44b2=Z(_0x1ba834);if(_0x1ba834[_0x3568('0x2')]('<')){if(_0x54c93c>=_0x488bfb){const _0x1bfc31=_0x1ba834[_0x3568('0x5')](/[a-zA-Z]+/);if(!_0x1bfc31){_0x5226fb[_0x393fee]='';continue;}const _0x31ed68=_0x1bfc31[0x0];_0x1ba834[_0x3568('0x2')]('</')?(_0x18c678['length']&&(_0x1ba834=''),_0x18c678[_0x3568('0x9')]()):(_0x18c678[_0x3568('0x1')](_0x31ed68),_0x1ba834='');}}else{if(_0x54c93c>=_0x488bfb)_0x1ba834='';else{if(_0x54c93c+_0x3d44b2[_0x3568('0x4')]>=_0x488bfb){let _0x3285c3=_0x488bfb-_0x54c93c;if('\x20'===_0x3d44b2[_0x3285c3-0x1])_0x3285c3--;else{const _0x4ea21f=_0x3d44b2[_0x3568('0x8')](_0x3285c3)[_0x3568('0x6')]('\x20');-0x1!==_0x4ea21f?_0x3285c3+=_0x4ea21f:_0x3285c3=_0x1ba834['length'];}_0x1ba834=_0x3d44b2['slice'](0x0,_0x3285c3)['join']('')+_0x149c02,_0x54c93c=_0x488bfb;}else _0x54c93c+=_0x3d44b2[_0x3568('0x4')];}}_0x5226fb[_0x393fee]=_0x1ba834;}return _0x5226fb[_0x3568('0x0')]('\x0a')['replace'](/\n/g,'');}function Z(_0x4b2b7b){const _0x2bfad6=[];for(let _0x4e925f=0x0;_0x4e925f<_0x4b2b7b[_0x3568('0x4')];_0x4e925f++){const _0x2d87a2=_0x4b2b7b['substring'](_0x4e925f)[_0x3568('0x5')](/^&[a-z0-9#]+;/);if(_0x2d87a2){const _0x2a0ff5=_0x2d87a2[0x0];_0x2bfad6['push'](_0x2a0ff5),_0x4e925f+=_0x2a0ff5['length']-0x1;}else _0x2bfad6[_0x3568('0x1')](_0x4b2b7b[_0x4e925f]);}return _0x2bfad6;}
23
+ const _0x468f=['startsWith','join','...','indexOf','length','match','pop','push','slice','replace'];(function(_0x2d32f1,_0x468fe1){const _0x49529e=function(_0x353dd2){while(--_0x353dd2){_0x2d32f1['push'](_0x2d32f1['shift']());}};_0x49529e(++_0x468fe1);}(_0x468f,0x122));const _0x4952=function(_0x2d32f1,_0x468fe1){_0x2d32f1=_0x2d32f1-0x0;let _0x49529e=_0x468f[_0x2d32f1];return _0x49529e;};export default function z(_0x599331,{limit:_0x536b8a,suffix:_0x469ae0=_0x4952('0x2')}){const _0x388f72=[];let _0x588fc4=0x0;const _0x31cf8f=_0x599331[_0x4952('0x9')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x4952('0x9')](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x338509=0x0;_0x338509<_0x31cf8f[_0x4952('0x4')];_0x338509++){let _0x1bcd49=_0x31cf8f[_0x338509];const _0x5d0207=Z(_0x1bcd49);if(_0x1bcd49[_0x4952('0x0')]('<')){if(_0x588fc4>=_0x536b8a){const _0x2157a3=_0x1bcd49[_0x4952('0x5')](/[a-zA-Z]+/);if(!_0x2157a3){_0x31cf8f[_0x338509]='';continue;}const _0x19cfa8=_0x2157a3[0x0];_0x1bcd49[_0x4952('0x0')]('</')?(_0x388f72[_0x4952('0x4')]&&(_0x1bcd49=''),_0x388f72[_0x4952('0x6')]()):(_0x388f72[_0x4952('0x7')](_0x19cfa8),_0x1bcd49='');}}else{if(_0x588fc4>=_0x536b8a)_0x1bcd49='';else{if(_0x588fc4+_0x5d0207['length']>=_0x536b8a){let _0x30b0d2=_0x536b8a-_0x588fc4;if('\x20'===_0x5d0207[_0x30b0d2-0x1])_0x30b0d2--;else{const _0x4b1f09=_0x5d0207[_0x4952('0x8')](_0x30b0d2)[_0x4952('0x3')]('\x20');-0x1!==_0x4b1f09?_0x30b0d2+=_0x4b1f09:_0x30b0d2=_0x1bcd49[_0x4952('0x4')];}_0x1bcd49=_0x5d0207[_0x4952('0x8')](0x0,_0x30b0d2)[_0x4952('0x1')]('')+_0x469ae0,_0x588fc4=_0x536b8a;}else _0x588fc4+=_0x5d0207['length'];}}_0x31cf8f[_0x338509]=_0x1bcd49;}return _0x31cf8f[_0x4952('0x1')]('\x0a')[_0x4952('0x9')](/\n/g,'');}function Z(_0x531e48){const _0x14ce0f=[];for(let _0x400433=0x0;_0x400433<_0x531e48[_0x4952('0x4')];_0x400433++){const _0x1966d3=_0x531e48['substring'](_0x400433)[_0x4952('0x5')](/^&[a-z0-9#]+;/);if(_0x1966d3){const _0x25fd15=_0x1966d3[0x0];_0x14ce0f[_0x4952('0x7')](_0x25fd15),_0x400433+=_0x25fd15[_0x4952('0x4')]-0x1;}else _0x14ce0f[_0x4952('0x7')](_0x531e48[_0x400433]);}return _0x14ce0f;}