@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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-20231214.0",
3
+ "version": "0.0.0-nightly-20231216.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/)",
@@ -29,9 +29,10 @@
29
29
  "real time",
30
30
  "framework"
31
31
  ],
32
+ "type": "module",
32
33
  "main": "src/index.js",
33
34
  "dependencies": {
34
- "ckeditor5": "0.0.0-nightly-20231214.0",
35
+ "ckeditor5": "0.0.0-nightly-20231216.0",
35
36
  "date-fns": "2.30.0"
36
37
  },
37
38
  "files": [
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { LocaleConfig, Users } from './index';
6
- import type { RealTimeCollaborationConfig } from './config';
5
+ import type { LocaleConfig, Users } from './index.js';
6
+ import type { RealTimeCollaborationConfig } from './config.js';
7
7
  declare module '@ckeditor/ckeditor5-core' {
8
8
  interface EditorConfig {
9
9
  /**
@@ -6,7 +6,7 @@
6
6
  * @module collaboration-core/collaborationhistory
7
7
  * @publicApi
8
8
  */
9
- import type { default as CollaborationOperation } from './collaborationoperation';
9
+ import type { default as CollaborationOperation } from './collaborationoperation.js';
10
10
  /**
11
11
  * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
12
12
  * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
@@ -6,7 +6,7 @@
6
6
  * @module collaboration-core/collaborationoperation
7
7
  * @publicApi
8
8
  */
9
- import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine';
9
+ import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine.js';
10
10
  /**
11
11
  * Extends the {@link module:engine/model/operation/operation operation}.
12
12
  */
package/src/index.d.ts CHANGED
@@ -2,18 +2,18 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- export { default as Permissions } from './permissions';
6
- export { default as Users, type User } from './users';
7
- export { default as UserView } from './users/view/userview';
8
- export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
9
- export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
10
- export { default as trimHtml } from './utils/trim-html';
11
- export { default as ConfirmMixin } from './utils/confirmmixin';
12
- export { default as hashObject } from './utils/hashobject';
13
- export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
14
- export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector';
15
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
16
- export { default as CollaborationHistory } from './collaborationhistory';
17
- export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
18
- export * from './suggestionstyles';
19
- import './augmentation';
5
+ export { default as Permissions } from './permissions.js';
6
+ export { default as Users, type User } from './users.js';
7
+ export { default as UserView } from './users/view/userview.js';
8
+ export { default as getDateTimeFormatter } from './utils/getdatetimeformatter.js';
9
+ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement.js';
10
+ export { default as trimHtml } from './utils/trim-html.js';
11
+ export { default as ConfirmMixin } from './utils/confirmmixin.js';
12
+ export { default as hashObject } from './utils/hashobject.js';
13
+ export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig.js';
14
+ export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector.js';
15
+ export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
16
+ export { default as CollaborationHistory } from './collaborationhistory.js';
17
+ export type { LocaleConfig, RealTimeCollaborationConfig } from './config.js';
18
+ export * from './suggestionstyles.js';
19
+ import './augmentation.js';
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{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions.js';export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector.js';export*from'./suggestionstyles.js';import'./augmentation.js';
@@ -6,7 +6,7 @@
6
6
  * @module collaboration-core/permissions
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin } from 'ckeditor5/src/core';
9
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The `Permissions` plugin manages permissions set for the local user.
12
12
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2513=['Permissions','setPermissions','comment:modify_all','forceDisabled','noPermissions','addCommentThread','get','commands','collaboration.channelId','clearForceDisabled','isEnabled','context','CommentsRepository','has','find','no-permissions','includes','permissions-set-permissions-invalid-channel-id','comment:write','CommentsOnly','editors','enableReadOnlyMode','config'];(function(_0x154e5e,_0x2513a1){const _0x53f105=function(_0x4486d2){while(--_0x4486d2){_0x154e5e['push'](_0x154e5e['shift']());}};_0x53f105(++_0x2513a1);}(_0x2513,0xbd));const _0x53f1=function(_0x154e5e,_0x2513a1){_0x154e5e=_0x154e5e-0x0;let _0x53f105=_0x2513[_0x154e5e];return _0x53f105;};import{ContextPlugin as _0x51c2e7,Editor as _0x1d9dec}from'ckeditor5/src/core';import{CKEditorError as _0x20b442}from'ckeditor5/src/utils';export default class n extends _0x51c2e7{static get['pluginName'](){return _0x53f1('0x12');}[_0x53f1('0x13')](_0x3fd2e4,_0x3b8f43){let _0x205978;if(_0x3b8f43||(_0x3b8f43=this['context'][_0x53f1('0x11')][_0x53f1('0x1')]('collaboration.channelId')),this[_0x53f1('0x6')][_0x53f1('0x11')][_0x53f1('0x1')](_0x53f1('0x3'))==_0x3b8f43?_0x205978=this['context']:_0x53f1('0xf')in this[_0x53f1('0x6')]&&this[_0x53f1('0x6')][_0x53f1('0xf')]&&(_0x205978=this[_0x53f1('0x6')][_0x53f1('0xf')][_0x53f1('0x9')](_0x5bc97b=>_0x5bc97b['config'][_0x53f1('0x1')]('collaboration.channelId')==_0x3b8f43)),!_0x205978)throw new _0x20b442(_0x53f1('0xc'),null);const _0x470aef=_0x205978['plugins'],_0x4c78fc=_0x470aef[_0x53f1('0x8')](_0x53f1('0x7'))?_0x470aef[_0x53f1('0x1')](_0x53f1('0x7')):void 0x0,_0x47b776=_0x470aef[_0x53f1('0x8')](_0x53f1('0xe'))&&_0x470aef[_0x53f1('0x1')]('CommentsOnly'),_0x32c4d3=_0x3fd2e4[_0x53f1('0xb')]('document:write'),_0x16a882=_0x3fd2e4[_0x53f1('0xb')](_0x53f1('0x14')),_0x2d79c8=_0x3fd2e4[_0x53f1('0xb')]('comment:admin'),_0x44ee60=_0x3fd2e4[_0x53f1('0xb')](_0x53f1('0xd')),_0x484a36=_0x44ee60||_0x2d79c8,_0x3aadd4=_0x484a36||_0x16a882,_0x3dbc53=_0x32c4d3||_0x484a36;(_0x47b776&&(_0x47b776[_0x53f1('0x5')]=!_0x32c4d3&&_0x3aadd4),_0x205978 instanceof _0x1d9dec)&&(!(_0x32c4d3||_0x3aadd4&&_0x4c78fc)?_0x205978[_0x53f1('0x10')]('no-permissions'):_0x205978['disableReadOnlyMode'](_0x53f1('0xa')));if(_0x4c78fc){_0x4c78fc[_0x53f1('0x13')]({'admin':_0x2d79c8,'modifyAll':_0x16a882,'write':_0x44ee60,'resolve':_0x3dbc53},_0x3b8f43);const _0x5b5c71=_0x205978 instanceof _0x1d9dec&&_0x205978[_0x53f1('0x2')][_0x53f1('0x1')](_0x53f1('0x0'));_0x5b5c71&&(_0x484a36?_0x5b5c71[_0x53f1('0x4')](_0x53f1('0x16')):_0x5b5c71[_0x53f1('0x15')](_0x53f1('0x16')));}}}
23
+ const _0x2ab5=['plugins','has','permissions-set-permissions-invalid-channel-id','clearForceDisabled','CommentsOnly','addCommentThread','noPermissions','config','comment:modify_all','editors','comment:admin','CommentsRepository','get','disableReadOnlyMode','context','find','includes','document:write','commands','isEnabled','collaboration.channelId','comment:write','Permissions','enableReadOnlyMode','no-permissions','forceDisabled','setPermissions'];(function(_0x9331a0,_0x2ab5fd){const _0x56d8ce=function(_0x3b71fd){while(--_0x3b71fd){_0x9331a0['push'](_0x9331a0['shift']());}};_0x56d8ce(++_0x2ab5fd);}(_0x2ab5,0x8a));const _0x56d8=function(_0x9331a0,_0x2ab5fd){_0x9331a0=_0x9331a0-0x0;let _0x56d8ce=_0x2ab5[_0x9331a0];return _0x56d8ce;};import{ContextPlugin as _0x24ea4e,Editor as _0x4f88f7}from'ckeditor5/src/core.js';import{CKEditorError as _0x4277ba}from'ckeditor5/src/utils.js';export default class n extends _0x24ea4e{static get['pluginName'](){return _0x56d8('0x13');}[_0x56d8('0x17')](_0x2c896d,_0x10d38f){let _0x453b11;if(_0x10d38f||(_0x10d38f=this[_0x56d8('0xb')][_0x56d8('0x4')][_0x56d8('0x9')](_0x56d8('0x11'))),this['context'][_0x56d8('0x4')][_0x56d8('0x9')]('collaboration.channelId')==_0x10d38f?_0x453b11=this[_0x56d8('0xb')]:'editors'in this[_0x56d8('0xb')]&&this[_0x56d8('0xb')][_0x56d8('0x6')]&&(_0x453b11=this[_0x56d8('0xb')][_0x56d8('0x6')][_0x56d8('0xc')](_0x4e35d6=>_0x4e35d6['config'][_0x56d8('0x9')](_0x56d8('0x11'))==_0x10d38f)),!_0x453b11)throw new _0x4277ba(_0x56d8('0x1a'),null);const _0x3a0912=_0x453b11[_0x56d8('0x18')],_0x33480f=_0x3a0912[_0x56d8('0x19')]('CommentsRepository')?_0x3a0912['get'](_0x56d8('0x8')):void 0x0,_0x41b241=_0x3a0912[_0x56d8('0x19')]('CommentsOnly')&&_0x3a0912[_0x56d8('0x9')](_0x56d8('0x1')),_0x435cf8=_0x2c896d[_0x56d8('0xd')](_0x56d8('0xe')),_0x98bdcd=_0x2c896d[_0x56d8('0xd')](_0x56d8('0x5')),_0x5d2ecf=_0x2c896d[_0x56d8('0xd')](_0x56d8('0x7')),_0x4a9fd4=_0x2c896d['includes'](_0x56d8('0x12')),_0x2fe463=_0x4a9fd4||_0x5d2ecf,_0x13ca14=_0x2fe463||_0x98bdcd,_0x84f089=_0x435cf8||_0x2fe463;(_0x41b241&&(_0x41b241[_0x56d8('0x10')]=!_0x435cf8&&_0x13ca14),_0x453b11 instanceof _0x4f88f7)&&(!(_0x435cf8||_0x13ca14&&_0x33480f)?_0x453b11[_0x56d8('0x14')](_0x56d8('0x15')):_0x453b11[_0x56d8('0xa')](_0x56d8('0x15')));if(_0x33480f){_0x33480f[_0x56d8('0x17')]({'admin':_0x5d2ecf,'modifyAll':_0x98bdcd,'write':_0x4a9fd4,'resolve':_0x84f089},_0x10d38f);const _0x1819de=_0x453b11 instanceof _0x4f88f7&&_0x453b11[_0x56d8('0xf')][_0x56d8('0x9')](_0x56d8('0x2'));_0x1819de&&(_0x2fe463?_0x1819de[_0x56d8('0x0')](_0x56d8('0x3')):_0x1819de[_0x56d8('0x16')](_0x56d8('0x3')));}}}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module collaboration-core/users/view/userview
7
7
  */
8
- import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { User } from '../../users';
8
+ import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import type { User } from '../../users.js';
11
11
  import '../../../theme/users.css';
12
12
  export default class UserView extends View {
13
13
  name: string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1939=['url(\x27','ck-user__icon','avatar','notificationView','setTemplate','content','extendTemplate','initials','ck-user__anonymous','ck-user__img','ck-user__notification','ck-user__avatar','div','push','ck\x20ck-user__name','name','ck\x20ck-user__name\x20ck-user__name--hidden'];(function(_0x546a34,_0x19393f){const _0x5b9126=function(_0x4ab8f7){while(--_0x4ab8f7){_0x546a34['push'](_0x546a34['shift']());}};_0x5b9126(++_0x19393f);}(_0x1939,0x1c6));const _0x5b91=function(_0x546a34,_0x19393f){_0x546a34=_0x546a34-0x0;let _0x5b9126=_0x1939[_0x546a34];return _0x5b9126;};import{View as _0x561c5d,IconView as _0x175f55}from'ckeditor5/src/ui';import _0x3082e1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x561c5d{constructor(_0x232a50,_0x25fc5b,_0x2ceeeb){super(_0x232a50),this[_0x5b91('0x3')]=_0x25fc5b[_0x5b91('0x3')],this[_0x5b91('0x8')]=null;const _0x3a6dc3=['ck',_0x5b91('0xe')];if(_0x25fc5b['isAnonymous']&&_0x3a6dc3[_0x5b91('0x1')](_0x5b91('0xd')),_0x25fc5b['avatar']&&_0x3a6dc3[_0x5b91('0x1')](_0x5b91('0x10')),_0x2ceeeb){const _0x4a8273=new _0x175f55();_0x4a8273[_0x5b91('0xb')]({'attributes':{'class':[_0x5b91('0x6')]}}),_0x4a8273[_0x5b91('0xa')]=_0x3082e1,this[_0x5b91('0x8')]={'tag':'div','attributes':{'class':['ck',_0x5b91('0xf')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2ceeeb},'children':[_0x4a8273]};}const _0x120f44=[{'tag':'div','attributes':{'class':_0x3a6dc3,'style':{'background-image':_0x25fc5b[_0x5b91('0x7')]?_0x5b91('0x5')+_0x25fc5b[_0x5b91('0x7')]+'\x27)':''}}},{'tag':_0x5b91('0x0'),'attributes':{'class':_0x25fc5b['avatar']?_0x5b91('0x4'):_0x5b91('0x2')},'children':[{'text':_0x25fc5b[_0x5b91('0xc')]}]}];this[_0x5b91('0x8')]&&_0x120f44[_0x5b91('0x1')](this['notificationView']),this[_0x5b91('0x9')]({'tag':_0x5b91('0x0'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x25fc5b['id']},'children':_0x120f44});}}
23
+ const _0x3f98=['avatar','extendTemplate','notificationView','ck-user','ck-user__avatar','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','setTemplate','push','content','initials','ck\x20ck-user__name','div'];(function(_0x5c07fb,_0x3f98e1){const _0x49b4e6=function(_0x2a5e4f){while(--_0x2a5e4f){_0x5c07fb['push'](_0x5c07fb['shift']());}};_0x49b4e6(++_0x3f98e1);}(_0x3f98,0x7c));const _0x49b4=function(_0x5c07fb,_0x3f98e1){_0x5c07fb=_0x5c07fb-0x0;let _0x49b4e6=_0x3f98[_0x5c07fb];return _0x49b4e6;};import{View as _0x174458,IconView as _0x330c7c}from'ckeditor5/src/ui.js';import _0x591da3 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x174458{constructor(_0x5b80cf,_0xcddbeb,_0x1792c2){super(_0x5b80cf),this['name']=_0xcddbeb['name'],this[_0x49b4('0x8')]=null;const _0x435ca2=['ck','ck-user__img'];if(_0xcddbeb['isAnonymous']&&_0x435ca2[_0x49b4('0x1')]('ck-user__anonymous'),_0xcddbeb[_0x49b4('0x6')]&&_0x435ca2[_0x49b4('0x1')](_0x49b4('0xa')),_0x1792c2){const _0x443311=new _0x330c7c();_0x443311[_0x49b4('0x7')]({'attributes':{'class':['ck-user__icon']}}),_0x443311[_0x49b4('0x2')]=_0x591da3,this[_0x49b4('0x8')]={'tag':_0x49b4('0x5'),'attributes':{'class':['ck',_0x49b4('0xc')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1792c2},'children':[_0x443311]};}const _0x1e83d1=[{'tag':_0x49b4('0x5'),'attributes':{'class':_0x435ca2,'style':{'background-image':_0xcddbeb['avatar']?'url(\x27'+_0xcddbeb[_0x49b4('0x6')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0xcddbeb['avatar']?_0x49b4('0xb'):_0x49b4('0x4')},'children':[{'text':_0xcddbeb[_0x49b4('0x3')]}]}];this[_0x49b4('0x8')]&&_0x1e83d1[_0x49b4('0x1')](this['notificationView']),this[_0x49b4('0x0')]({'tag':_0x49b4('0x5'),'attributes':{'class':['ck',_0x49b4('0x9')],'data-user-id':_0xcddbeb['id']},'children':_0x1e83d1});}}
package/src/users.d.ts CHANGED
@@ -6,9 +6,9 @@
6
6
  * @module collaboration-core/users
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import Permissions from './permissions';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import Permissions from './permissions.js';
12
12
  import '../theme/usercolors.css';
13
13
  /**
14
14
  * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1312=['initials','trial-license-key-reached-limit-time','users-me-missing-user','Anonymous','toUpperCase','length','anonymous-user','licenseKeyTrial','_locale','_lastColor','users.colorsCount','get','licenseKeyInvalid','config','licenseKey','_id','destroy','add','licenseKeyValid','trim','users-add-duplicated-id','info','users-me-already-defined','context','addUser','_myId','invalid-license-key','_getNextColor','requires','_isAnonymous','_licenseKeyCheckInterval','_addAnonymousUser','getOperationAuthor','useAnonymousUser','_getInitial','charAt','avatar','decorate','string','ck-user__marker--','init','define','licenseKeyTrialLimit:operations','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.','getMarkerClass','has','color','name','ck-user__bg-color--','licenseKeyTrialLimit:revisions','isAnonymous','trial-license-key-reached-limit-revisions','users.anonymousUserId','users-add-invalid-id','trial-license-key-reached-limit-changes','defineMe','getUser','getSelectionClass'];(function(_0x2e1bee,_0x1312cb){const _0x33c8bc=function(_0x5ab6d3){while(--_0x5ab6d3){_0x2e1bee['push'](_0x2e1bee['shift']());}};_0x33c8bc(++_0x1312cb);}(_0x1312,0x125));const _0x33c8=function(_0x2e1bee,_0x1312cb){_0x2e1bee=_0x2e1bee-0x0;let _0x33c8bc=_0x1312[_0x2e1bee];return _0x33c8bc;};import{ContextPlugin as _0x24c2ab}from'ckeditor5/src/core';import{Collection as _0x108178,CKEditorError as _0x22641b}from'ckeditor5/src/utils';import _0xc48266 from'./permissions';import{getTranslation as _0x5ca5c8}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x24c2ab{static get['pluginName'](){return'Users';}static get[_0x33c8('0x19')](){return[_0xc48266];}constructor(_0x20eb00){super(_0x20eb00),this[_0x33c8('0x14')][_0x33c8('0xa')][_0x33c8('0x26')](_0x33c8('0x31'),_0x33c8('0x3')),this[_0x33c8('0x14')]['config'][_0x33c8('0x26')](_0x33c8('0x7'),0x8),this['users']=new _0x108178(),this[_0x33c8('0x5')]=_0x20eb00['locale'],this[_0x33c8('0x1b')]=null,this[_0x33c8('0x6')]=0x0,this[_0x33c8('0x16')]=null,this[_0x33c8('0x22')](_0x33c8('0x1d'));}[_0x33c8('0x25')](){const _0x1fee24=this['context'];this['licenseKey']=_0x1fee24[_0x33c8('0xa')][_0x33c8('0x8')](_0x33c8('0xb'));const _0x1f0f45=[_0x33c8('0x4'),_0x33c8('0x9'),_0x33c8('0xf'),_0x33c8('0x27'),'licenseKeyTrialLimit:time',_0x33c8('0x2e')];this[_0x33c8('0x1b')]=setInterval(()=>{let _0xb064d;for(const _0xa0639 in _0x1fee24){const _0x255e5f=_0x1fee24[_0xa0639];if(_0x1f0f45['includes'](_0x255e5f)){delete _0x1fee24[_0xa0639],_0xb064d=_0x255e5f;break;}}if(_0x33c8('0x9')===_0xb064d)throw clearInterval(this[_0x33c8('0x1b')]),new _0x22641b(_0x33c8('0x17'),null);if('licenseKeyTrial'===_0xb064d&&console[_0x33c8('0x12')](_0x33c8('0x28')),_0x33c8('0x27')===_0xb064d)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x22641b(_0x33c8('0x33'),null);if('licenseKeyTrialLimit:time'===_0xb064d)throw clearInterval(this[_0x33c8('0x1b')]),new _0x22641b(_0x33c8('0x38'),null);if(_0x33c8('0x2e')===_0xb064d)throw clearInterval(this[_0x33c8('0x1b')]),new _0x22641b(_0x33c8('0x30'),null);_0x33c8('0xf')===_0xb064d&&clearInterval(this[_0x33c8('0x1b')]);},0x3e8),this[_0x33c8('0x1c')]();}get['me'](){return null==this[_0x33c8('0x16')]?null:this[_0x33c8('0x35')](this[_0x33c8('0x16')]);}[_0x33c8('0x15')]({id:_0x3b4804,name:_0x1133fc,..._0x123676}){if(!_0x3b4804||_0x33c8('0x23')!=typeof _0x3b4804)throw new _0x22641b(_0x33c8('0x32'));if(this['users'][_0x33c8('0x2a')](_0x3b4804))throw new _0x22641b(_0x33c8('0x11'),null,{'id':_0x3b4804});const _0x32f845={..._0x123676,'id':_0x3b4804,'name':a(this[_0x33c8('0x5')],_0x1133fc),'color':this[_0x33c8('0x18')]()};_0x32f845[_0x33c8('0x2c')]=a(this['_locale'],_0x32f845['name']);const _0x481f11=new User(_0x32f845);return this['users'][_0x33c8('0xe')](_0x481f11),_0x481f11;}['getUser'](_0x576810){return this['users'][_0x33c8('0x8')](_0x576810);}[_0x33c8('0x1e')](){const _0x3893d2=this[_0x33c8('0x14')][_0x33c8('0xa')][_0x33c8('0x8')](_0x33c8('0x31'));this[_0x33c8('0x16')]||this[_0x33c8('0x34')](_0x3893d2);}['defineMe'](_0x48dbd7){if(this[_0x33c8('0x16')])throw new _0x22641b(_0x33c8('0x13'),null);if(!this[_0x33c8('0x35')](_0x48dbd7))throw new _0x22641b(_0x33c8('0x39'),null);this[_0x33c8('0x16')]=_0x48dbd7;}[_0x33c8('0x1d')](){return this['me'];}[_0x33c8('0xd')](){super[_0x33c8('0xd')](),clearInterval(this[_0x33c8('0x1b')]);}[_0x33c8('0x18')](){const _0x3c1b4b=this[_0x33c8('0x14')][_0x33c8('0xa')][_0x33c8('0x8')]('users.colorsCount');return this[_0x33c8('0x6')]>=_0x3c1b4b&&(this[_0x33c8('0x6')]=0x0),new u(this[_0x33c8('0x6')]++);}[_0x33c8('0x1c')](){const _0x5ae80c=this[_0x33c8('0x14')]['config'][_0x33c8('0x8')](_0x33c8('0x31'));this[_0x33c8('0x15')]({'id':_0x5ae80c,'name':_0x5ca5c8(this[_0x33c8('0x5')],_0x33c8('0x0'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x5e7b6e){this['id']=_0x5e7b6e['id'],this[_0x33c8('0x2b')]=_0x5e7b6e['color'],this[_0x33c8('0x2c')]=_0x5e7b6e['name'],this['avatar']=_0x5e7b6e[_0x33c8('0x21')],this[_0x33c8('0x1a')]=!0x1;}get[_0x33c8('0x2f')](){return this[_0x33c8('0x1a')];}get[_0x33c8('0x37')](){const _0x572f9e=this[_0x33c8('0x2c')]['split']('\x20');return 0x1===_0x572f9e['length']?this[_0x33c8('0x1f')](_0x572f9e[0x0]):this[_0x33c8('0x1f')](_0x572f9e[0x0])+this[_0x33c8('0x1f')](_0x572f9e[_0x572f9e[_0x33c8('0x2')]-0x1]);}[_0x33c8('0x1f')](_0x44ea8a){return _0x44ea8a[_0x33c8('0x20')](0x0)[_0x33c8('0x1')]();}}function a(_0x1f08d7,_0x4886ac=''){return''==(_0x4886ac=_0x4886ac[_0x33c8('0x10')]())?_0x5ca5c8(_0x1f08d7,_0x33c8('0x0')):_0x4886ac;}class u{constructor(_0x422b02){this[_0x33c8('0xc')]=_0x422b02;}['getBackgroundColorClass'](){return _0x33c8('0x2d')+this[_0x33c8('0xc')];}[_0x33c8('0x36')](){return'ck-user__selection--'+this['_id'];}[_0x33c8('0x29')](){return _0x33c8('0x24')+this[_0x33c8('0xc')];}}
23
+ const _0x28ca=['config','licenseKey','init','context','info','decorate','_id','requires','useAnonymousUser','addUser','_addAnonymousUser','get','licenseKeyTrialLimit:time','getSelectionClass','_licenseKeyCheckInterval','getUser','invalid-license-key','has','string','name','users.anonymousUserId','licenseKeyInvalid','_isAnonymous','length','_getInitial','users-me-missing-user','ck-user__bg-color--','getMarkerClass','_lastColor','color','ck-user__selection--','locale','licenseKeyTrialLimit:revisions','licenseKeyValid','users-me-already-defined','Anonymous','toUpperCase','anonymous-user','trial-license-key-reached-limit-time','destroy','users','users-add-invalid-id','getOperationAuthor','trial-license-key-reached-limit-revisions','split','_locale','_myId','licenseKeyTrial','initials','avatar','users-add-duplicated-id','licenseKeyTrialLimit:operations','Users','users.colorsCount','getBackgroundColorClass'];(function(_0x101cd2,_0x28caca){const _0x156b34=function(_0x44354b){while(--_0x44354b){_0x101cd2['push'](_0x101cd2['shift']());}};_0x156b34(++_0x28caca);}(_0x28ca,0xa7));const _0x156b=function(_0x101cd2,_0x28caca){_0x101cd2=_0x101cd2-0x0;let _0x156b34=_0x28ca[_0x101cd2];return _0x156b34;};import{ContextPlugin as _0x43299c}from'ckeditor5/src/core.js';import{Collection as _0x4d6a7c,CKEditorError as _0x1a07c3}from'ckeditor5/src/utils.js';import _0x4f6541 from'./permissions.js';import{getTranslation as _0x431e02}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0x43299c{static get['pluginName'](){return _0x156b('0x32');}static get[_0x156b('0x5')](){return[_0x4f6541];}constructor(_0x4b57a1){super(_0x4b57a1),this['context'][_0x156b('0x35')]['define']('users.anonymousUserId',_0x156b('0x23')),this[_0x156b('0x1')][_0x156b('0x35')]['define']('users.colorsCount',0x8),this[_0x156b('0x26')]=new _0x4d6a7c(),this[_0x156b('0x2b')]=_0x4b57a1[_0x156b('0x1d')],this[_0x156b('0xc')]=null,this[_0x156b('0x1a')]=0x0,this[_0x156b('0x2c')]=null,this[_0x156b('0x3')](_0x156b('0x28'));}[_0x156b('0x0')](){const _0x2905eb=this['context'];this[_0x156b('0x36')]=_0x2905eb[_0x156b('0x35')][_0x156b('0x9')](_0x156b('0x36'));const _0x547b84=[_0x156b('0x2d'),_0x156b('0x13'),'licenseKeyValid',_0x156b('0x31'),_0x156b('0xa'),_0x156b('0x1e')];this[_0x156b('0xc')]=setInterval(()=>{let _0x5d5f04;for(const _0x57f4ac in _0x2905eb){const _0x529130=_0x2905eb[_0x57f4ac];if(_0x547b84['includes'](_0x529130)){delete _0x2905eb[_0x57f4ac],_0x5d5f04=_0x529130;break;}}if(_0x156b('0x13')===_0x5d5f04)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1a07c3(_0x156b('0xe'),null);if('licenseKeyTrial'===_0x5d5f04&&console[_0x156b('0x2')]('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.'),_0x156b('0x31')===_0x5d5f04)throw clearInterval(this[_0x156b('0xc')]),new _0x1a07c3('trial-license-key-reached-limit-changes',null);if(_0x156b('0xa')===_0x5d5f04)throw clearInterval(this[_0x156b('0xc')]),new _0x1a07c3(_0x156b('0x24'),null);if(_0x156b('0x1e')===_0x5d5f04)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x1a07c3(_0x156b('0x29'),null);_0x156b('0x1f')===_0x5d5f04&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x156b('0x2c')]?null:this[_0x156b('0xd')](this[_0x156b('0x2c')]);}[_0x156b('0x7')]({id:_0x3dc56b,name:_0x3f7ed8,..._0x2dfc4c}){if(!_0x3dc56b||_0x156b('0x10')!=typeof _0x3dc56b)throw new _0x1a07c3(_0x156b('0x27'));if(this['users'][_0x156b('0xf')](_0x3dc56b))throw new _0x1a07c3(_0x156b('0x30'),null,{'id':_0x3dc56b});const _0x56536c={..._0x2dfc4c,'id':_0x3dc56b,'name':a(this[_0x156b('0x2b')],_0x3f7ed8),'color':this['_getNextColor']()};_0x56536c['name']=a(this['_locale'],_0x56536c['name']);const _0x3db51c=new User(_0x56536c);return this['users']['add'](_0x3db51c),_0x3db51c;}[_0x156b('0xd')](_0x26d9a7){return this[_0x156b('0x26')]['get'](_0x26d9a7);}[_0x156b('0x6')](){const _0x96a021=this[_0x156b('0x1')][_0x156b('0x35')][_0x156b('0x9')](_0x156b('0x12'));this['_myId']||this['defineMe'](_0x96a021);}['defineMe'](_0x468431){if(this[_0x156b('0x2c')])throw new _0x1a07c3(_0x156b('0x20'),null);if(!this['getUser'](_0x468431))throw new _0x1a07c3(_0x156b('0x17'),null);this[_0x156b('0x2c')]=_0x468431;}[_0x156b('0x28')](){return this['me'];}[_0x156b('0x25')](){super[_0x156b('0x25')](),clearInterval(this[_0x156b('0xc')]);}['_getNextColor'](){const _0x549c6f=this[_0x156b('0x1')][_0x156b('0x35')][_0x156b('0x9')](_0x156b('0x33'));return this[_0x156b('0x1a')]>=_0x549c6f&&(this[_0x156b('0x1a')]=0x0),new u(this[_0x156b('0x1a')]++);}[_0x156b('0x8')](){const _0x88ab40=this[_0x156b('0x1')]['config']['get'](_0x156b('0x12'));this[_0x156b('0x7')]({'id':_0x88ab40,'name':_0x431e02(this[_0x156b('0x2b')],_0x156b('0x21'))})[_0x156b('0x14')]=!0x0;}}export class User{constructor(_0x1ae3bf){this['id']=_0x1ae3bf['id'],this['color']=_0x1ae3bf[_0x156b('0x1b')],this[_0x156b('0x11')]=_0x1ae3bf[_0x156b('0x11')],this[_0x156b('0x2f')]=_0x1ae3bf[_0x156b('0x2f')],this[_0x156b('0x14')]=!0x1;}get['isAnonymous'](){return this[_0x156b('0x14')];}get[_0x156b('0x2e')](){const _0x3fdd5f=this[_0x156b('0x11')][_0x156b('0x2a')]('\x20');return 0x1===_0x3fdd5f[_0x156b('0x15')]?this[_0x156b('0x16')](_0x3fdd5f[0x0]):this['_getInitial'](_0x3fdd5f[0x0])+this[_0x156b('0x16')](_0x3fdd5f[_0x3fdd5f[_0x156b('0x15')]-0x1]);}[_0x156b('0x16')](_0x501585){return _0x501585['charAt'](0x0)[_0x156b('0x22')]();}}function a(_0x4593df,_0x335048=''){return''==(_0x335048=_0x335048['trim']())?_0x431e02(_0x4593df,_0x156b('0x21')):_0x335048;}class u{constructor(_0x2a0df9){this[_0x156b('0x4')]=_0x2a0df9;}[_0x156b('0x34')](){return _0x156b('0x18')+this[_0x156b('0x4')];}[_0x156b('0xb')](){return _0x156b('0x1c')+this[_0x156b('0x4')];}[_0x156b('0x19')](){return'ck-user__marker--'+this[_0x156b('0x4')];}}
@@ -5,5 +5,5 @@
5
5
  /**
6
6
  * @module collaboration-core/utils/common-translations
7
7
  */
8
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
9
  export declare function getTranslation(locale: Locale, id: string): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1fc448,_0x359008){const t=_0x1fc448['t'];switch(_0x359008){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(_0x4111a1,_0x5373ea){const t=_0x4111a1['t'];switch(_0x5373ea){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'';}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module comments/comments/ui/view/confirmmixin
7
7
  */
8
- import type { View } from 'ckeditor5/src/ui';
9
- import type { Locale, Mixed } from 'ckeditor5/src/utils';
8
+ import type { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
10
10
  /**
11
11
  * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
12
12
  * Confirm is always set to the `content` collection at the last position.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x158b=['fire','element','cancel','_removeConfirm','submit','focus','registerChild','appendChild','locale','render','deregisterChild','confirmView','once','set','showConfirm','cancelConfirm','isConfirm'];(function(_0x40c391,_0x158bec){var _0xcca5ae=function(_0x2ab0ba){while(--_0x2ab0ba){_0x40c391['push'](_0x40c391['shift']());}};_0xcca5ae(++_0x158bec);}(_0x158b,0x174));var _0xcca5=function(_0x40c391,_0x158bec){_0x40c391=_0x40c391-0x0;var _0xcca5ae=_0x158b[_0x40c391];return _0xcca5ae;};import _0x290088 from'./confirmview';export default function m(_0x5845a1){return class extends _0x5845a1{[_0xcca5('0x10')](_0x5f3508,_0x370d1c){return this[_0xcca5('0xd')]=new _0x290088(this[_0xcca5('0xa')]),this[_0xcca5('0xd')][_0xcca5('0xb')](),this['confirmView']['message']=_0x5f3508,this[_0xcca5('0xd')]['once'](_0xcca5('0x4'),()=>{this[_0xcca5('0x5')]();}),this[_0xcca5('0xd')][_0xcca5('0xe')]('submit',()=>{this[_0xcca5('0x5')]();}),_0x370d1c[_0xcca5('0x9')](this[_0xcca5('0xd')]['element']),this[_0xcca5('0x8')](this[_0xcca5('0xd')]),this[_0xcca5('0x3')][_0xcca5('0x7')](),this[_0xcca5('0xf')]('isConfirm',!0x0),new Promise(_0x3df7d2=>this['confirmView']['on'](_0xcca5('0x6'),_0x3df7d2));}[_0xcca5('0x0')](){this[_0xcca5('0x1')]&&this[_0xcca5('0xd')][_0xcca5('0x2')](_0xcca5('0x4'));}['_removeConfirm'](){this[_0xcca5('0x3')]&&this[_0xcca5('0xd')]&&this[_0xcca5('0xd')]['element']&&(this[_0xcca5('0x3')]['focus'](),this[_0xcca5('0xd')]['element']['remove'](),this[_0xcca5('0xc')](this[_0xcca5('0xd')]),this['isConfirm']=!0x1,this[_0xcca5('0xd')]['destroy'](),this['confirmView']=void 0x0);}};}
23
+ var _0x58ff=['_removeConfirm','element','cancel','render','locale','showConfirm','isConfirm','focus','deregisterChild','fire','remove','submit','destroy','once','registerChild','confirmView'];(function(_0x278b12,_0x58ff2b){var _0x20658d=function(_0x584143){while(--_0x584143){_0x278b12['push'](_0x278b12['shift']());}};_0x20658d(++_0x58ff2b);}(_0x58ff,0x10a));var _0x2065=function(_0x278b12,_0x58ff2b){_0x278b12=_0x278b12-0x0;var _0x20658d=_0x58ff[_0x278b12];return _0x20658d;};import _0x55be19 from'./confirmview.js';export default function m(_0x479701){return class extends _0x479701{[_0x2065('0xb')](_0x4f2a7e,_0x249dc2){return this['confirmView']=new _0x55be19(this[_0x2065('0xa')]),this[_0x2065('0x5')][_0x2065('0x9')](),this['confirmView']['message']=_0x4f2a7e,this[_0x2065('0x5')]['once'](_0x2065('0x8'),()=>{this[_0x2065('0x6')]();}),this[_0x2065('0x5')][_0x2065('0x3')]('submit',()=>{this[_0x2065('0x6')]();}),_0x249dc2['appendChild'](this[_0x2065('0x5')][_0x2065('0x7')]),this[_0x2065('0x4')](this[_0x2065('0x5')]),this['element'][_0x2065('0xd')](),this['set'](_0x2065('0xc'),!0x0),new Promise(_0x43f216=>this[_0x2065('0x5')]['on'](_0x2065('0x1'),_0x43f216));}['cancelConfirm'](){this[_0x2065('0xc')]&&this[_0x2065('0x5')][_0x2065('0xf')](_0x2065('0x8'));}[_0x2065('0x6')](){this[_0x2065('0x7')]&&this[_0x2065('0x5')]&&this[_0x2065('0x5')]['element']&&(this[_0x2065('0x7')]['focus'](),this[_0x2065('0x5')][_0x2065('0x7')][_0x2065('0x0')](),this[_0x2065('0xe')](this[_0x2065('0x5')]),this[_0x2065('0xc')]=!0x1,this['confirmView'][_0x2065('0x2')](),this[_0x2065('0x5')]=void 0x0);}};}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module comments/comments/ui/view/confirmview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  export default class ConfirmView extends View {
11
11
  message: string;
12
12
  constructor(locale: Locale);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x372c=['cancelView','ck-thread__remove-confirm','icon','setTemplate','ck-thread__remove-confirm-actions','Yes','set','check','ck-thread__remove-confirm-inner','submit','extendTemplate','cancel','label','div','submitView','ck-thread__remove-confirm-','_createButtonView','message','Are\x20you\x20sure?'];(function(_0x4913d6,_0x372cde){const _0x3f1a08=function(_0x5a182){while(--_0x5a182){_0x4913d6['push'](_0x4913d6['shift']());}};_0x3f1a08(++_0x372cde);}(_0x372c,0x197));const _0x3f1a=function(_0x4913d6,_0x372cde){_0x4913d6=_0x4913d6-0x0;let _0x3f1a08=_0x372c[_0x4913d6];return _0x3f1a08;};import{View as _0x49b42e,ButtonView as _0x3efa6f}from'ckeditor5/src/ui';import{icons as _0x713717}from'ckeditor5/src/core';import{getTranslation as _0x3b263d}from'./common-translations';export default class h extends _0x49b42e{constructor(_0x3c405e){super(_0x3c405e);const _0x556a72=this['bindTemplate'];this[_0x3f1a('0x6')]=this['_createButtonView'](_0x3c405e,_0x3b263d(_0x3c405e,_0x3f1a('0x10')),_0x713717[_0x3f1a('0x12')],_0x3f1a('0x1')),this[_0x3f1a('0xb')]=this[_0x3f1a('0x8')](_0x3c405e,_0x3b263d(_0x3c405e,'No'),_0x713717[_0x3f1a('0x3')],'cancel'),this[_0x3f1a('0x11')](_0x3f1a('0x9'),_0x3b263d(_0x3c405e,_0x3f1a('0xa'))),this[_0x3f1a('0xe')]({'tag':_0x3f1a('0x5'),'attributes':{'class':[_0x3f1a('0xc')]},'children':[{'tag':_0x3f1a('0x5'),'attributes':{'class':_0x3f1a('0x0')},'children':[{'tag':'p','children':[{'text':_0x556a72['to'](_0x3f1a('0x9'))}]},{'tag':'div','attributes':{'class':_0x3f1a('0xf')},'children':[this[_0x3f1a('0x6')],this[_0x3f1a('0xb')]]}]}]});}[_0x3f1a('0x8')](_0x341826,_0x499151,_0x2a42c9,_0x3dcde9){const _0x5be649=new _0x3efa6f(_0x341826);return _0x5be649[_0x3f1a('0x4')]=_0x499151,_0x5be649[_0x3f1a('0xd')]=_0x2a42c9,_0x5be649[_0x3f1a('0x2')]({'attributes':{'class':_0x3f1a('0x7')+_0x3dcde9}}),_0x5be649['on']('execute',()=>this['fire'](_0x3dcde9)),_0x5be649;}}
23
+ const _0x5b85=['ck-thread__remove-confirm-','submit','setTemplate','div','fire','submitView','ck-thread__remove-confirm-inner','Yes','ck-thread__remove-confirm','icon','label','bindTemplate','_createButtonView','cancelView','cancel','Are\x20you\x20sure?','execute','extendTemplate','ck-thread__remove-confirm-actions'];(function(_0x57e1cd,_0x5b85e6){const _0xdec776=function(_0x3127e9){while(--_0x3127e9){_0x57e1cd['push'](_0x57e1cd['shift']());}};_0xdec776(++_0x5b85e6);}(_0x5b85,0x1d5));const _0xdec7=function(_0x57e1cd,_0x5b85e6){_0x57e1cd=_0x57e1cd-0x0;let _0xdec776=_0x5b85[_0x57e1cd];return _0xdec776;};import{View as _0x30938e,ButtonView as _0x63b97}from'ckeditor5/src/ui.js';import{icons as _0x1cdcbc}from'ckeditor5/src/core.js';import{getTranslation as _0x2e955b}from'./common-translations.js';export default class h extends _0x30938e{constructor(_0x45e93d){super(_0x45e93d);const _0xf67842=this[_0xdec7('0x11')];this['submitView']=this['_createButtonView'](_0x45e93d,_0x2e955b(_0x45e93d,_0xdec7('0xd')),_0x1cdcbc['check'],_0xdec7('0x7')),this['cancelView']=this[_0xdec7('0x12')](_0x45e93d,_0x2e955b(_0x45e93d,'No'),_0x1cdcbc['cancel'],_0xdec7('0x1')),this['set']('message',_0x2e955b(_0x45e93d,_0xdec7('0x2'))),this[_0xdec7('0x8')]({'tag':_0xdec7('0x9'),'attributes':{'class':[_0xdec7('0xe')]},'children':[{'tag':_0xdec7('0x9'),'attributes':{'class':_0xdec7('0xc')},'children':[{'tag':'p','children':[{'text':_0xf67842['to']('message')}]},{'tag':_0xdec7('0x9'),'attributes':{'class':_0xdec7('0x5')},'children':[this[_0xdec7('0xb')],this[_0xdec7('0x0')]]}]}]});}[_0xdec7('0x12')](_0x2c29cb,_0x517802,_0x25d645,_0x20e2b1){const _0x283299=new _0x63b97(_0x2c29cb);return _0x283299[_0xdec7('0x10')]=_0x517802,_0x283299[_0xdec7('0xf')]=_0x25d645,_0x283299[_0xdec7('0x4')]({'attributes':{'class':_0xdec7('0x6')+_0x20e2b1}}),_0x283299['on'](_0xdec7('0x3'),()=>this[_0xdec7('0xa')](_0x20e2b1)),_0x283299;}}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { LocaleConfig } from '../config';
5
+ import type { LocaleConfig } from '../config.js';
6
6
  /**
7
7
  * Returns a function that formats the date to the set format.
8
8
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cc6=['string','function','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x246e7d,_0x2cc67d){const _0x41c6cd=function(_0x35e425){while(--_0x35e425){_0x246e7d['push'](_0x246e7d['shift']());}};_0x41c6cd(++_0x2cc67d);}(_0x2cc6,0xfd));const _0x41c6=function(_0x246e7d,_0x2cc67d){_0x246e7d=_0x246e7d-0x0;let _0x41c6cd=_0x2cc6[_0x246e7d];return _0x41c6cd;};import _0x574f63 from'date-fns/format';import _0x1e8322 from'date-fns/parseISO';import _0x51e4e9 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2a5dfe}from'ckeditor5/src/utils';export default function E(_0x16fa18={}){if(void 0x0!==_0x16fa18['dateTimeFormat']&&_0x41c6('0x0')!=typeof _0x16fa18[_0x41c6('0x3')])throw new _0x2a5dfe(_0x41c6('0x4'));return _0x21d871=>{const _0x29f136=_0x41c6('0x6')==typeof _0x21d871?_0x1e8322(_0x21d871):_0x21d871,_0x2338b8=new Date(),_0x577975=_0x51e4e9(_0x2338b8,_0x29f136);return _0x16fa18['dateTimeFormat']?_0x16fa18[_0x41c6('0x3')](_0x29f136):_0x574f63(_0x29f136,0x0===_0x577975?_0x41c6('0x2'):0x1===_0x577975?_0x41c6('0x1'):_0x577975<0x7?_0x41c6('0x5'):'MM-dd-yyyy\x20hh:mma');};}
23
+ const _0x497f=['\x27Yesterday\x27\x20hh:mma','invalid-date-time-format','string','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat'];(function(_0x172c55,_0x497f55){const _0x44c2b8=function(_0x3ffaa5){while(--_0x3ffaa5){_0x172c55['push'](_0x172c55['shift']());}};_0x44c2b8(++_0x497f55);}(_0x497f,0xc5));const _0x44c2=function(_0x172c55,_0x497f55){_0x172c55=_0x172c55-0x0;let _0x44c2b8=_0x497f[_0x172c55];return _0x44c2b8;};import _0x35e9e5 from'date-fns/format/index.js';import _0x1553a8 from'date-fns/parseISO/index.js';import _0x3cb59b from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x44091f}from'ckeditor5/src/utils.js';export default function j(_0x1b852e={}){if(void 0x0!==_0x1b852e[_0x44c2('0x5')]&&'function'!=typeof _0x1b852e['dateTimeFormat'])throw new _0x44091f(_0x44c2('0x0'));return _0x11d05c=>{const _0x3c7471=_0x44c2('0x1')==typeof _0x11d05c?_0x1553a8(_0x11d05c):_0x11d05c,_0x274579=new Date(),_0x3b9e5f=_0x3cb59b(_0x274579,_0x3c7471);return _0x1b852e['dateTimeFormat']?_0x1b852e[_0x44c2('0x5')](_0x3c7471):_0x35e9e5(_0x3c7471,0x0===_0x3b9e5f?_0x44c2('0x4'):0x1===_0x3b9e5f?_0x44c2('0x6'):_0x3b9e5f<0x7?_0x44c2('0x2'):_0x44c2('0x3'));};}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { EditingController, Marker } from 'ckeditor5/src/engine';
5
+ import type { EditingController, Marker } from 'ckeditor5/src/engine.js';
6
6
  /**
7
7
  * Returns a first DOM element mapped with the marker.
8
8
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50d8=['domElement','view','getClientRects','markerNameToElements','mapper','length','sort','domConverter','values','name','mapViewToDom'];(function(_0xe31a92,_0x50d810){const _0x4cac4b=function(_0x2b0165){while(--_0x2b0165){_0xe31a92['push'](_0xe31a92['shift']());}};_0x4cac4b(++_0x50d810);}(_0x50d8,0x9f));const _0x4cac=function(_0xe31a92,_0x50d810){_0xe31a92=_0xe31a92-0x0;let _0x4cac4b=_0x50d8[_0xe31a92];return _0x4cac4b;};import{first as _0x18ffd1}from'ckeditor5/src/utils';export default function k(_0x374fe1,_0x356750){const _0x5d28ac=_0x374fe1[_0x4cac('0xa')][_0x4cac('0x9')](_0x356750[_0x4cac('0x4')]);if(!_0x5d28ac)return null;const _0x305b91=_0x18ffd1(_0x5d28ac[_0x4cac('0x3')]());return _0x374fe1[_0x4cac('0x7')][_0x4cac('0x2')][_0x4cac('0x5')](_0x305b91)||null;}export function getAllMarkersDomElementsSorted(_0x349b99,_0xc54703){if(0x0===_0xc54703[_0x4cac('0x0')])return null;const _0x30be19=[],_0x1f5372=_0x349b99[_0x4cac('0x7')][_0x4cac('0x2')];for(const _0x4836c0 of _0xc54703){const _0x24ac28=_0x349b99[_0x4cac('0xa')]['markerNameToElements'](_0x4836c0[_0x4cac('0x4')]);if(!_0x24ac28)continue;const _0x29ac86=Array['from'](_0x24ac28)['map'](_0x4c01d3=>_0x1f5372[_0x4cac('0x5')](_0x4c01d3))['filter'](_0x504537=>!!_0x504537);_0x30be19['push'](..._0x29ac86);}if(0x0===_0x30be19['length'])return null;const _0x216e58=[];for(const _0x56a9f8 of _0x30be19){const _0xd8b3d4=_0x56a9f8[_0x4cac('0x8')]()['item'](0x0);_0xd8b3d4&&_0x216e58['push']({'x':_0xd8b3d4['x'],'y':_0xd8b3d4['y'],'domElement':_0x56a9f8});}return 0x0===_0x216e58[_0x4cac('0x0')]?null:(_0x216e58[_0x4cac('0x1')]((_0x348348,_0x1babd9)=>_0x348348['y']-_0x1babd9['y']||_0x348348['x']-_0x1babd9['x']),_0x216e58['map'](_0x4979ff=>_0x4979ff[_0x4cac('0x6')]));}
23
+ const _0x46f0=['mapViewToDom','length','values','name','markerNameToElements','push','map','mapper','filter','domConverter','sort','domElement','getClientRects','from','item'];(function(_0x1d25fa,_0x46f0ef){const _0x141a76=function(_0x16ff6f){while(--_0x16ff6f){_0x1d25fa['push'](_0x1d25fa['shift']());}};_0x141a76(++_0x46f0ef);}(_0x46f0,0xde));const _0x141a=function(_0x1d25fa,_0x46f0ef){_0x1d25fa=_0x1d25fa-0x0;let _0x141a76=_0x46f0[_0x1d25fa];return _0x141a76;};import{first as _0x1e1500}from'ckeditor5/src/utils.js';export default function k(_0x133c49,_0x1ed24c){const _0xae66d2=_0x133c49[_0x141a('0xa')][_0x141a('0x7')](_0x1ed24c[_0x141a('0x6')]);if(!_0xae66d2)return null;const _0x3358cf=_0x1e1500(_0xae66d2[_0x141a('0x5')]());return _0x133c49['view'][_0x141a('0xc')][_0x141a('0x3')](_0x3358cf)||null;}export function getAllMarkersDomElementsSorted(_0x130e91,_0x3127ee){if(0x0===_0x3127ee['length'])return null;const _0x5e35ee=[],_0x523c1f=_0x130e91['view']['domConverter'];for(const _0x36e476 of _0x3127ee){const _0x157747=_0x130e91[_0x141a('0xa')]['markerNameToElements'](_0x36e476[_0x141a('0x6')]);if(!_0x157747)continue;const _0x3b7a62=Array[_0x141a('0x1')](_0x157747)[_0x141a('0x9')](_0x57ec3a=>_0x523c1f[_0x141a('0x3')](_0x57ec3a))[_0x141a('0xb')](_0x2e5b0f=>!!_0x2e5b0f);_0x5e35ee[_0x141a('0x8')](..._0x3b7a62);}if(0x0===_0x5e35ee[_0x141a('0x4')])return null;const _0x176abf=[];for(const _0x273a3d of _0x5e35ee){const _0x5dcf1a=_0x273a3d[_0x141a('0x0')]()[_0x141a('0x2')](0x0);_0x5dcf1a&&_0x176abf[_0x141a('0x8')]({'x':_0x5dcf1a['x'],'y':_0x5dcf1a['y'],'domElement':_0x273a3d});}return 0x0===_0x176abf[_0x141a('0x4')]?null:(_0x176abf[_0x141a('0xd')]((_0x22314c,_0x1eb9e0)=>_0x22314c['y']-_0x1eb9e0['y']||_0x22314c['x']-_0x1eb9e0['x']),_0x176abf[_0x141a('0x9')](_0x6f9fe0=>_0x6f9fe0[_0x141a('0xe')]));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2824=['isArray','keys','string','sign','sort','number','toString'];(function(_0x49fae7,_0x282412){const _0x2178d1=function(_0x231e4a){while(--_0x231e4a){_0x49fae7['push'](_0x49fae7['shift']());}};_0x2178d1(++_0x282412);}(_0x2824,0x19b));const _0x2178=function(_0x49fae7,_0x282412){_0x49fae7=_0x49fae7-0x0;let _0x2178d1=_0x2824[_0x49fae7];return _0x2178d1;};export default function b(_0x594a9d){let _0x51f471=0x0,_0x4a8ee7=0x0;for(const _0x551dc1 of g(_0x594a9d))_0x51f471=(_0x51f471<<0x5)-_0x51f471+_0x551dc1,_0x51f471&=_0x51f471,[_0x51f471,_0x4a8ee7]=[_0x4a8ee7,_0x51f471];return O(_0x51f471)+O(_0x4a8ee7);}function*j(_0x57c7ed){_0x57c7ed?'boolean'==typeof _0x57c7ed?yield 0x1:Array[_0x2178('0x2')](_0x57c7ed)?yield*function*(_0x25e5f8){for(const _0x2b83dd of _0x25e5f8)yield*j(_0x2b83dd);}(_0x57c7ed):'object'==typeof _0x57c7ed?yield*g(_0x57c7ed):_0x2178('0x4')==typeof _0x57c7ed?yield*A(_0x57c7ed):_0x2178('0x0')==typeof _0x57c7ed&&(yield _0x57c7ed):yield 0x0;}function*g(_0x56a578){if(yield M('{'),_0x56a578){const _0x14f7a4=Object[_0x2178('0x3')](_0x56a578)[_0x2178('0x6')]();for(const _0xb6f198 of _0x14f7a4){yield*A(_0xb6f198),yield M(':');const _0x46c870=_0x56a578[_0xb6f198];yield*j(_0x46c870);}}yield M('}');}function*A(_0x401528){yield M('\x22');for(const _0x203e7a of _0x401528)yield M(_0x203e7a);yield M('\x22');}function M(_0x2f515d){return _0x2f515d['charCodeAt'](0x0);}function O(_0x5e32de){return(_0x5e32de*=Math[_0x2178('0x5')](_0x5e32de))[_0x2178('0x1')](0x24);}
23
+ const _0x2f4a=['toString','sort','charCodeAt','object','keys','isArray','number'];(function(_0x336af3,_0x2f4add){const _0x368860=function(_0x8e9cdf){while(--_0x8e9cdf){_0x336af3['push'](_0x336af3['shift']());}};_0x368860(++_0x2f4add);}(_0x2f4a,0x13c));const _0x3688=function(_0x336af3,_0x2f4add){_0x336af3=_0x336af3-0x0;let _0x368860=_0x2f4a[_0x336af3];return _0x368860;};export default function b(_0x1c0b1d){let _0x4a09c7=0x0,_0x394f16=0x0;for(const _0xe24c7 of A(_0x1c0b1d))_0x4a09c7=(_0x4a09c7<<0x5)-_0x4a09c7+_0xe24c7,_0x4a09c7&=_0x4a09c7,[_0x4a09c7,_0x394f16]=[_0x394f16,_0x4a09c7];return q(_0x4a09c7)+q(_0x394f16);}function*g(_0x2d7d07){_0x2d7d07?'boolean'==typeof _0x2d7d07?yield 0x1:Array[_0x3688('0x4')](_0x2d7d07)?yield*function*(_0x4e337c){for(const _0x53159b of _0x4e337c)yield*g(_0x53159b);}(_0x2d7d07):_0x3688('0x2')==typeof _0x2d7d07?yield*A(_0x2d7d07):'string'==typeof _0x2d7d07?yield*M(_0x2d7d07):_0x3688('0x5')==typeof _0x2d7d07&&(yield _0x2d7d07):yield 0x0;}function*A(_0x4c54d8){if(yield O('{'),_0x4c54d8){const _0x522fd3=Object[_0x3688('0x3')](_0x4c54d8)[_0x3688('0x0')]();for(const _0x2177f1 of _0x522fd3){yield*M(_0x2177f1),yield O(':');const _0x27832c=_0x4c54d8[_0x2177f1];yield*g(_0x27832c);}}yield O('}');}function*M(_0x5a8adc){yield O('\x22');for(const _0xae508 of _0x5a8adc)yield O(_0xae508);yield O('\x22');}function O(_0x32cbd1){return _0x32cbd1[_0x3688('0x1')](0x0);}function q(_0x40ad55){return(_0x40ad55*=Math['sign'](_0x40ad55))[_0x3688('0x6')](0x24);}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module collaboration-core/utils/common-translations
7
7
  */
8
- import type { Editor, EditorConfig } from 'ckeditor5/src/core';
8
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
11
11
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5436=['pluginName','requires','WebSocketGateway','set','find','constructor','includes','plugins','concat','filter','WordCount','length','string','name','every','initialData','removePlugins','get','config','rootsAttributes','map','from','context','_context','Autosave'];(function(_0x311fab,_0x543668){const _0xd22b44=function(_0x1e3707){while(--_0x1e3707){_0x311fab['push'](_0x311fab['shift']());}};_0xd22b44(++_0x543668);}(_0x5436,0x132));const _0xd22b=function(_0x311fab,_0x543668){_0x311fab=_0x311fab-0x0;let _0xd22b44=_0x5436[_0x311fab];return _0xd22b44;};const w=[_0xd22b('0x9'),_0xd22b('0x10'),'toolbar',_0xd22b('0xd')],W=[_0xd22b('0x15'),'RevisionTracker',_0xd22b('0x12'),_0xd22b('0x4'),'DocumentOutline','WProofreader'];function v(_0x1b1e57,_0x3a3e4b,_0x31945,_0x5a18e2=[]){const _0x5a3f88=_0xd22b('0x6')==typeof _0x1b1e57?_0x31945['get'](_0x1b1e57)[_0xd22b('0x18')]:_0x1b1e57,_0x2aed75=_0x5a3f88[_0xd22b('0x13')]||_0x5a3f88[_0xd22b('0x7')];if(_0x3a3e4b['has'](_0x2aed75))return _0x3a3e4b[_0xd22b('0xb')](_0x2aed75);if(_0x3a3e4b['set'](_0x2aed75,!0x0),_0x2aed75&&W[_0xd22b('0x2')](_0x5a18e2)[_0xd22b('0x0')](_0x2aed75))return _0x3a3e4b[_0xd22b('0x16')](_0x2aed75,!0x1),!0x1;if(!_0x5a3f88[_0xd22b('0x14')])return _0x3a3e4b[_0xd22b('0x16')](_0x2aed75,!0x0),!0x0;const _0x43f76e=_0x5a3f88[_0xd22b('0x14')][_0xd22b('0x8')](_0x193343=>v(_0x193343,_0x3a3e4b,_0x31945,_0x5a18e2));return _0x3a3e4b[_0xd22b('0x16')](_0x2aed75,_0x43f76e),_0x43f76e;}export default function D(_0x481678,_0x14687b){const _0x408512={};for(const _0x2d5fef of _0x481678['config']['names']())w['includes'](_0x2d5fef)||(_0x408512[_0x2d5fef]=_0x481678[_0xd22b('0xc')]['get'](_0x2d5fef));const _0x31edcd=_0x408512[_0xd22b('0x1')]||[],_0x20df10=_0x481678[_0xd22b('0x18')]['builtinPlugins']||[],_0x26569c=_0x31edcd[_0xd22b('0x5')]?_0x31edcd:_0x20df10,_0x51e82c=_0x408512['extraPlugins']||[];delete _0x408512['extraPlugins'];const _0x3b2fd7=_0x408512[_0xd22b('0xa')]||[];delete _0x408512['removePlugins'];const _0x266521=_0x481678[_0xd22b('0x11')]['config']['get']('plugins')||[],_0x185679=_0x26569c[_0xd22b('0x2')](_0x51e82c)['concat'](_0x266521)[_0xd22b('0xe')](_0x237b9e=>_0xd22b('0x6')==typeof _0x237b9e?_0x20df10[_0xd22b('0x17')](_0x2aae88=>_0x2aae88['pluginName']==_0x237b9e):_0x237b9e)['filter'](_0x32fd1e=>!_0x3b2fd7[_0xd22b('0x0')](_0x32fd1e)&&!_0x3b2fd7[_0xd22b('0x0')](_0x32fd1e['pluginName'])),_0x2cc8ab=Array[_0xd22b('0xf')](new Set(_0x185679)),_0xbb32bd=new Map();return _0x408512['plugins']=_0x2cc8ab[_0xd22b('0x3')](_0xeaa3dc=>v(_0xeaa3dc,_0xbb32bd,_0x481678[_0xd22b('0x1')],_0x14687b)),_0x408512;}
23
+ const _0x4d51=['extraPlugins','DocumentOutline','rootsAttributes','initialData','every','config','WebSocketGateway','filter','names','includes','set','requires','removePlugins','find','has','WordCount','map','Autosave','_context','get','builtinPlugins','concat','pluginName','length','name','RevisionTracker','WProofreader','toolbar','plugins','constructor'];(function(_0xeef905,_0x4d5114){const _0x117675=function(_0x29884c){while(--_0x29884c){_0xeef905['push'](_0xeef905['shift']());}};_0x117675(++_0x4d5114);}(_0x4d51,0xa2));const _0x1176=function(_0xeef905,_0x4d5114){_0xeef905=_0xeef905-0x0;let _0x117675=_0x4d51[_0xeef905];return _0x117675;};const w=[_0x1176('0x15'),'context',_0x1176('0xf'),_0x1176('0x14')],W=[_0x1176('0x18'),_0x1176('0xd'),_0x1176('0x5'),_0x1176('0x3'),_0x1176('0x13'),_0x1176('0xe')];function v(_0x308c4b,_0x1b8821,_0x141f1d,_0x20263f=[]){const _0x31d6cb='string'==typeof _0x308c4b?_0x141f1d['get'](_0x308c4b)[_0x1176('0x11')]:_0x308c4b,_0x337d19=_0x31d6cb[_0x1176('0xa')]||_0x31d6cb[_0x1176('0xc')];if(_0x1b8821[_0x1176('0x2')](_0x337d19))return _0x1b8821[_0x1176('0x7')](_0x337d19);if(_0x1b8821[_0x1176('0x1c')](_0x337d19,!0x0),_0x337d19&&W[_0x1176('0x9')](_0x20263f)['includes'](_0x337d19))return _0x1b8821[_0x1176('0x1c')](_0x337d19,!0x1),!0x1;if(!_0x31d6cb[_0x1176('0x1d')])return _0x1b8821[_0x1176('0x1c')](_0x337d19,!0x0),!0x0;const _0x4568e8=_0x31d6cb[_0x1176('0x1d')][_0x1176('0x16')](_0x37dc35=>v(_0x37dc35,_0x1b8821,_0x141f1d,_0x20263f));return _0x1b8821['set'](_0x337d19,_0x4568e8),_0x4568e8;}export default function D(_0x136ec,_0x19bfeb){const _0x41e806={};for(const _0x43fcdf of _0x136ec[_0x1176('0x17')][_0x1176('0x1a')]())w[_0x1176('0x1b')](_0x43fcdf)||(_0x41e806[_0x43fcdf]=_0x136ec[_0x1176('0x17')][_0x1176('0x7')](_0x43fcdf));const _0x1a5be0=_0x41e806[_0x1176('0x10')]||[],_0x36b1bd=_0x136ec[_0x1176('0x11')][_0x1176('0x8')]||[],_0x10e72=_0x1a5be0[_0x1176('0xb')]?_0x1a5be0:_0x36b1bd,_0x22fed1=_0x41e806[_0x1176('0x12')]||[];delete _0x41e806[_0x1176('0x12')];const _0x54fdee=_0x41e806['removePlugins']||[];delete _0x41e806[_0x1176('0x0')];const _0x44c4bb=_0x136ec[_0x1176('0x6')]['config'][_0x1176('0x7')](_0x1176('0x10'))||[],_0x9fce80=_0x10e72['concat'](_0x22fed1)[_0x1176('0x9')](_0x44c4bb)[_0x1176('0x4')](_0x1b22f7=>'string'==typeof _0x1b22f7?_0x36b1bd[_0x1176('0x1')](_0xf27d1f=>_0xf27d1f['pluginName']==_0x1b22f7):_0x1b22f7)['filter'](_0x49ad11=>!_0x54fdee[_0x1176('0x1b')](_0x49ad11)&&!_0x54fdee[_0x1176('0x1b')](_0x49ad11[_0x1176('0xa')])),_0x34c563=Array['from'](new Set(_0x9fce80)),_0x442dc3=new Map();return _0x41e806[_0x1176('0x10')]=_0x34c563[_0x1176('0x19')](_0x2d8d38=>v(_0x2d8d38,_0x442dc3,_0x136ec[_0x1176('0x10')],_0x19bfeb)),_0x41e806;}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module collaboration-core/utils/surroundingmarkersdetector
7
7
  */
8
- import type { Marker, Model } from 'ckeditor5/src/engine';
8
+ import type { Marker, Model } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * A utility that responds to range changes in the document selection and detects which markers' ranges
11
11
  * touch or contain (surround) the document selection's focus.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56e2=['getRange','markers','push','length','includes','document','change:range','selection','start','end'];(function(_0x5a07a5,_0x56e296){const _0xc4dc8=function(_0x34090f){while(--_0x34090f){_0x5a07a5['push'](_0x5a07a5['shift']());}};_0xc4dc8(++_0x56e296);}(_0x56e2,0x1de));const _0xc4dc=function(_0x5a07a5,_0x56e296){_0x5a07a5=_0x5a07a5-0x0;let _0xc4dc8=_0x56e2[_0x5a07a5];return _0xc4dc8;};export default function q(_0x4b456e,_0x21e571){const _0x5389b2=[];_0x4b456e[_0xc4dc('0x7')]['selection']['on'](_0xc4dc('0x8'),()=>{const _0x1e0e76=function(_0x14b6a3,_0x58639d){const _0x70172a=[];for(const _0x3e78af of _0x14b6a3[_0xc4dc('0x3')]){const _0x36baa6=_0x3e78af[_0xc4dc('0x2')]();(_0x36baa6['containsPosition'](_0x58639d)||_0x36baa6[_0xc4dc('0x0')]['isEqual'](_0x58639d)||_0x36baa6[_0xc4dc('0x1')]['isEqual'](_0x58639d))&&_0x70172a['push'](_0x3e78af);}return _0x70172a;}(_0x4b456e,_0x4b456e[_0xc4dc('0x7')][_0xc4dc('0x9')]['focus']),_0x578232=[],_0x2f7939=[],_0x3d4ed6=[];for(const _0x339e07 of _0x5389b2)_0x1e0e76[_0xc4dc('0x6')](_0x339e07)||_0x578232[_0xc4dc('0x4')](_0x339e07);for(const _0x4966f3 of _0x1e0e76)_0x5389b2[_0xc4dc('0x6')](_0x4966f3)||_0x2f7939[_0xc4dc('0x4')](_0x4966f3),_0x3d4ed6[_0xc4dc('0x4')](_0x4966f3);(_0x578232['length']||_0x2f7939[_0xc4dc('0x5')])&&_0x21e571({'left':_0x578232,'entered':_0x2f7939}),_0x5389b2[_0xc4dc('0x5')]=0x0,_0x5389b2[_0xc4dc('0x4')](..._0x3d4ed6);});}
23
+ const _0x4e4f=['getRange','push','document','change:range','start','markers','end','includes','selection','isEqual','length'];(function(_0x4607da,_0x4e4fe6){const _0x52cbc2=function(_0x40f259){while(--_0x40f259){_0x4607da['push'](_0x4607da['shift']());}};_0x52cbc2(++_0x4e4fe6);}(_0x4e4f,0x18a));const _0x52cb=function(_0x4607da,_0x4e4fe6){_0x4607da=_0x4607da-0x0;let _0x52cbc2=_0x4e4f[_0x4607da];return _0x52cbc2;};export default function z(_0x2794e5,_0x5fd553){const _0xf6cdcf=[];_0x2794e5[_0x52cb('0x4')][_0x52cb('0xa')]['on'](_0x52cb('0x5'),()=>{const _0x1dac3f=function(_0x11fbdf,_0x401c1b){const _0x3b4f52=[];for(const _0x4b93a9 of _0x11fbdf[_0x52cb('0x7')]){const _0x1cd819=_0x4b93a9[_0x52cb('0x2')]();(_0x1cd819['containsPosition'](_0x401c1b)||_0x1cd819[_0x52cb('0x6')][_0x52cb('0x0')](_0x401c1b)||_0x1cd819[_0x52cb('0x8')][_0x52cb('0x0')](_0x401c1b))&&_0x3b4f52[_0x52cb('0x3')](_0x4b93a9);}return _0x3b4f52;}(_0x2794e5,_0x2794e5[_0x52cb('0x4')][_0x52cb('0xa')]['focus']),_0x385467=[],_0x783b78=[],_0x136570=[];for(const _0x102c1a of _0xf6cdcf)_0x1dac3f[_0x52cb('0x9')](_0x102c1a)||_0x385467[_0x52cb('0x3')](_0x102c1a);for(const _0x81ebe5 of _0x1dac3f)_0xf6cdcf['includes'](_0x81ebe5)||_0x783b78[_0x52cb('0x3')](_0x81ebe5),_0x136570['push'](_0x81ebe5);(_0x385467[_0x52cb('0x1')]||_0x783b78[_0x52cb('0x1')])&&_0x5fd553({'left':_0x385467,'entered':_0x783b78}),_0xf6cdcf['length']=0x0,_0xf6cdcf['push'](..._0x136570);});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9339=['push','startsWith','replace','split','match','...','pop','length','slice'];(function(_0x1ca23b,_0x93392d){const _0x6648=function(_0x137e9d){while(--_0x137e9d){_0x1ca23b['push'](_0x1ca23b['shift']());}};_0x6648(++_0x93392d);}(_0x9339,0xdc));const _0x6648=function(_0x1ca23b,_0x93392d){_0x1ca23b=_0x1ca23b-0x0;let _0x137e9d=_0x9339[_0x1ca23b];return _0x137e9d;};export default function z(_0xb38ba6,{limit:_0x207dbd,suffix:_0x50560c=_0x6648('0x1')}){const _0x2b3803=[];let _0x3c058b=0x0;const _0x5ae7f8=_0xb38ba6[_0x6648('0x7')](/</g,'\x0a<')[_0x6648('0x7')](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x6648('0x7')](/\n$/g,'')[_0x6648('0x8')]('\x0a');for(let _0x284d74=0x0;_0x284d74<_0x5ae7f8[_0x6648('0x3')];_0x284d74++){let _0x2ca637=_0x5ae7f8[_0x284d74];const _0x26e96c=Z(_0x2ca637);if(_0x2ca637[_0x6648('0x6')]('<')){if(_0x3c058b>=_0x207dbd){const _0x490676=_0x2ca637['match'](/[a-zA-Z]+/);if(!_0x490676){_0x5ae7f8[_0x284d74]='';continue;}const _0x3e5a27=_0x490676[0x0];_0x2ca637[_0x6648('0x6')]('</')?(_0x2b3803[_0x6648('0x3')]&&(_0x2ca637=''),_0x2b3803[_0x6648('0x2')]()):(_0x2b3803[_0x6648('0x5')](_0x3e5a27),_0x2ca637='');}}else{if(_0x3c058b>=_0x207dbd)_0x2ca637='';else{if(_0x3c058b+_0x26e96c[_0x6648('0x3')]>=_0x207dbd){let _0x10a8a3=_0x207dbd-_0x3c058b;if('\x20'===_0x26e96c[_0x10a8a3-0x1])_0x10a8a3--;else{const _0x4eee7b=_0x26e96c[_0x6648('0x4')](_0x10a8a3)['indexOf']('\x20');-0x1!==_0x4eee7b?_0x10a8a3+=_0x4eee7b:_0x10a8a3=_0x2ca637[_0x6648('0x3')];}_0x2ca637=_0x26e96c[_0x6648('0x4')](0x0,_0x10a8a3)['join']('')+_0x50560c,_0x3c058b=_0x207dbd;}else _0x3c058b+=_0x26e96c['length'];}}_0x5ae7f8[_0x284d74]=_0x2ca637;}return _0x5ae7f8['join']('\x0a')[_0x6648('0x7')](/\n/g,'');}function Z(_0x238f38){const _0x26de3c=[];for(let _0x283cd5=0x0;_0x283cd5<_0x238f38['length'];_0x283cd5++){const _0x8c0f1a=_0x238f38['substring'](_0x283cd5)[_0x6648('0x0')](/^&[a-z0-9#]+;/);if(_0x8c0f1a){const _0x43ff14=_0x8c0f1a[0x0];_0x26de3c[_0x6648('0x5')](_0x43ff14),_0x283cd5+=_0x43ff14[_0x6648('0x3')]-0x1;}else _0x26de3c[_0x6648('0x5')](_0x238f38[_0x283cd5]);}return _0x26de3c;}
23
+ const _0x54b4=['startsWith','replace','push','length','join','split','match','indexOf','slice','pop','...','substring'];(function(_0xb3682e,_0x54b422){const _0x40214c=function(_0x569407){while(--_0x569407){_0xb3682e['push'](_0xb3682e['shift']());}};_0x40214c(++_0x54b422);}(_0x54b4,0x93));const _0x4021=function(_0xb3682e,_0x54b422){_0xb3682e=_0xb3682e-0x0;let _0x40214c=_0x54b4[_0xb3682e];return _0x40214c;};export default function Z(_0x132b00,{limit:_0x481732,suffix:_0x39f89f=_0x4021('0x7')}){const _0x25701b=[];let _0x10504d=0x0;const _0x3c736e=_0x132b00[_0x4021('0xa')](/</g,'\x0a<')[_0x4021('0xa')](/>/g,'>\x0a')[_0x4021('0xa')](/^\n/g,'')[_0x4021('0xa')](/\n$/g,'')[_0x4021('0x2')]('\x0a');for(let _0x56e0ed=0x0;_0x56e0ed<_0x3c736e[_0x4021('0x0')];_0x56e0ed++){let _0xfffec4=_0x3c736e[_0x56e0ed];const _0x183ddc=$(_0xfffec4);if(_0xfffec4[_0x4021('0x9')]('<')){if(_0x10504d>=_0x481732){const _0x448312=_0xfffec4[_0x4021('0x3')](/[a-zA-Z]+/);if(!_0x448312){_0x3c736e[_0x56e0ed]='';continue;}const _0x29ccc9=_0x448312[0x0];_0xfffec4['startsWith']('</')?(_0x25701b[_0x4021('0x0')]&&(_0xfffec4=''),_0x25701b[_0x4021('0x6')]()):(_0x25701b[_0x4021('0xb')](_0x29ccc9),_0xfffec4='');}}else{if(_0x10504d>=_0x481732)_0xfffec4='';else{if(_0x10504d+_0x183ddc[_0x4021('0x0')]>=_0x481732){let _0x436d56=_0x481732-_0x10504d;if('\x20'===_0x183ddc[_0x436d56-0x1])_0x436d56--;else{const _0x1bd84a=_0x183ddc[_0x4021('0x5')](_0x436d56)[_0x4021('0x4')]('\x20');-0x1!==_0x1bd84a?_0x436d56+=_0x1bd84a:_0x436d56=_0xfffec4[_0x4021('0x0')];}_0xfffec4=_0x183ddc['slice'](0x0,_0x436d56)[_0x4021('0x1')]('')+_0x39f89f,_0x10504d=_0x481732;}else _0x10504d+=_0x183ddc[_0x4021('0x0')];}}_0x3c736e[_0x56e0ed]=_0xfffec4;}return _0x3c736e[_0x4021('0x1')]('\x0a')[_0x4021('0xa')](/\n/g,'');}function $(_0x13767b){const _0x1c65a4=[];for(let _0x5b1035=0x0;_0x5b1035<_0x13767b['length'];_0x5b1035++){const _0x4ce223=_0x13767b[_0x4021('0x8')](_0x5b1035)[_0x4021('0x3')](/^&[a-z0-9#]+;/);if(_0x4ce223){const _0x487bfe=_0x4ce223[0x0];_0x1c65a4['push'](_0x487bfe),_0x5b1035+=_0x487bfe[_0x4021('0x0')]-0x1;}else _0x1c65a4[_0x4021('0xb')](_0x13767b[_0x5b1035]);}return _0x1c65a4;}